{"version":3,"file":"Compare-B72yeh9L.js","sources":["../../../app/frontend/stores/Compare.js"],"sourcesContent":["import { defineStore } from 'pinia';\n\nconst sharedState = {\n profiles: []\n}\n\nexport default defineStore('CompareStore', {\n state: () => sharedState,\n actions: {\n addProfile(profile) {\n if (this.profiles.length < 3 && !this.profiles.find(o=>o.id==profile.id)) {\n this.profiles.push(profile);\n }\n },\n removeProfile(profile) {\n const index = this.profiles.findIndex(o=>o.id===profile.id);\n if (index >= 0) this.profiles.splice(index, 1);\n },\n removeAllProfiles() {\n this.profiles = [];\n }\n }\n})"],"names":["sharedState","useCompareStore","defineStore","profile","o","index"],"mappings":"wCAEA,MAAMA,EAAc,CAChB,SAAU,CAAE,CAChB,EAEeC,EAAAC,EAAY,eAAgB,CACvC,MAAO,IAAMF,EACb,QAAS,CACL,WAAWG,EAAS,CACZ,KAAK,SAAS,OAAS,GAAK,CAAC,KAAK,SAAS,KAAKC,GAAGA,EAAE,IAAID,EAAQ,EAAE,GACnE,KAAK,SAAS,KAAKA,CAAO,CAEjC,EACD,cAAcA,EAAS,CACnB,MAAME,EAAQ,KAAK,SAAS,UAAUD,GAAGA,EAAE,KAAKD,EAAQ,EAAE,EACtDE,GAAS,GAAG,KAAK,SAAS,OAAOA,EAAO,CAAC,CAChD,EACD,mBAAoB,CAChB,KAAK,SAAW,EACnB,CACJ,CACL,CAAC"}