{"version":3,"file":"SearchStore.DCB51CyZ.mjs","names":[],"sources":["https:/framerusercontent.com/modules/DWzP1Es6eLVEhr2Evhku/sDsDtG2um40fog9Q1zCA/SearchStore.js"],"sourcesContent":["function _define_property(obj,key,value){if(key in obj){Object.defineProperty(obj,key,{value:value,enumerable:true,configurable:true,writable:true});}else{obj[key]=value;}return obj;}class SearchStoreClass{setQuery(storeId,query){this.queries.set(storeId,query);this.listeners.get(storeId)?.forEach(l=>l(query));}getQuery(storeId){return this.queries.get(storeId)||\"\";}clear(storeId){this.queries.set(storeId,\"\");this.listeners.get(storeId)?.forEach(l=>l(\"\"));}subscribe(storeId,listener){if(!this.listeners.has(storeId)){this.listeners.set(storeId,new Set);}this.listeners.get(storeId).add(listener);return()=>this.listeners.get(storeId)?.delete(listener);}constructor(){_define_property(this,\"queries\",new Map);_define_property(this,\"listeners\",new Map);}}const globalKey=\"__SEARCH_STORE__\";if(typeof window!==\"undefined\"&&!window[globalKey]){window[globalKey]=new SearchStoreClass;}export const searchStore=typeof window!==\"undefined\"?window[globalKey]:new SearchStoreClass;export function getSearchStore(storeId=\"default\"){return{setQuery:query=>searchStore.setQuery(storeId,query),getQuery:()=>searchStore.getQuery(storeId),clear:()=>searchStore.clear(storeId),subscribe:listener=>searchStore.subscribe(storeId,listener)};}\nexport const __FramerMetadata__ = {\"exports\":{\"getSearchStore\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"searchStore\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./SearchStore.map"],"mappings":"oGAAA,SAAS,EAAiB,EAAI,EAAI,EAAM,CAAmI,OAA/H,KAAO,EAAK,OAAO,eAAe,EAAI,EAAI,CAAO,QAAM,WAAW,GAAK,aAAa,GAAK,SAAS,GAAK,CAAC,CAAO,EAAI,GAAK,EAAc,EAA+xB,SAAgB,EAAe,EAAQ,UAAU,CAAC,MAAM,CAA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