{"version":3,"file":"QueryParam.CUeajToC.mjs","names":["__legacyOverrideHOC_DataObserverContext","_jsx"],"sources":["https:/framerusercontent.com/modules/4w1ib0XkRMq3wEtSTFnl/9SIgt49pweBwAZewdFle/QueryParam.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";export function withQueryParams(){return{onClick(event){event.preventDefault();event.stopPropagation();let target=event.target;while(target&&target.tagName!==\"A\"){target=target.parentElement;}if(!target)return;const anchor=target;// Start with destination URL — this already includes ?id=3994\nconst destinationUrl=new URL(anchor.href);// Append current page params WITHOUT overwriting existing ones\nconst currentParams=new URLSearchParams(window.location.search);currentParams.forEach((value,key)=>{if(!destinationUrl.searchParams.has(key)){// New param — add it\ndestinationUrl.searchParams.set(key,value);}else{// Already exists in destination — append as additional value\ndestinationUrl.searchParams.append(key,value);}});window.location.href=destinationUrl.toString();},style:{touchAction:\"manipulation\"}};}import{useContext as __legacyOverrideHOC_useContext}from\"react\";import{DataObserverContext as __legacyOverrideHOC_DataObserverContext}from\"framer\";export function withwithQueryParams(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...withQueryParams(props)});};}withwithQueryParams.displayName=\"withQueryParams\";\nexport const __FramerMetadata__ = {\"exports\":{\"withwithQueryParams\":{\"type\":\"reactHoc\",\"name\":\"withwithQueryParams\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withQueryParams\":{\"type\":\"override\",\"name\":\"withQueryParams\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./QueryParam.map"],"mappings":"kLAA2C,SAAgB,GAAiB,CAAC,MAAM,CAAC,QAAQ,EAAM,CAAC,EAAM,gBAAgB,CAAC,EAAM,iBAAiB,CAAC,IAAI,EAAO,EAAM,OAAO,KAAM,GAAQ,EAAO,UAAU,KAAK,EAAO,EAAO,cAAe,GAAG,CAAC,EAAO,OAAO,IAAM,EAAO,EACpQ,EAAe,IAAI,IAAI,EAAO,KAAK,CACrB,IAAI,gBAAgB,EAAO,SAAS,OAAO,CAAe,SAAS,EAAM,IAAM,CAAK,EAAe,aAAa,IAAI,EAAI,CAE5I,EAAe,aAAa,OAAO,EAAI,EAAM,CAD7C,EAAe,aAAa,IAAI,EAAI,EAAM,EACO,CAAC,EAAO,SAAS,KAAK,EAAe,UAAU,EAAG,MAAM,CAAC,YAAY,eAAe,CAAC,CAAqJ,SAAgB,EAAoB,EAAE,CAAC,MAAO,KAAQ,EAA+BA,EAAwC,CAAQC,EAAK,EAAE,CAAC,GAAG,EAAM,GAAG,EAAgB,EAAM,CAAC,CAAC,uBAJja,IAI6J,IAAmF,CAAqL,EAAoB,YAAY"}