{"version":3,"file":"Search_Parameter.DLXP1c_B.mjs","names":[],"sources":["https:/framerusercontent.com/modules/NTaW5wWOMsTfFs5jaZhE/2RFRfLlDpNAbit1jBzch/Search_Parameter.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{forwardRef,useEffect}from\"react\";export function withURLSearch(Component){return /*#__PURE__*/forwardRef((props,ref)=>{useEffect(()=>{const params=new URLSearchParams(window.location.search);const searchQuery=params.get(\"search\");if(!searchQuery)return;// Wait for component to mount, then find the input and populate it\nsetTimeout(()=>{const input=document.querySelector(\"input[type='search'], input[placeholder*='search' i], input[placeholder*='filter' i]\");if(input){const nativeInputValueSetter=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,\"value\")?.set;nativeInputValueSetter?.call(input,searchQuery);input.dispatchEvent(new Event(\"input\",{bubbles:true}));input.dispatchEvent(new Event(\"change\",{bubbles:true}));}},300);},[]);return /*#__PURE__*/_jsx(Component,{ref:ref,...props});});}\nexport const __FramerMetadata__ = {\"exports\":{\"withURLSearch\":{\"type\":\"reactHoc\",\"name\":\"withURLSearch\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Search_Parameter.map"],"mappings":"uIAAmF,SAAgB,EAAc,EAAU,CAAC,OAAoB,GAAY,EAAM,KAAO,MAAc,CAA0D,IAAM,EAAlD,IAAI,gBAAgB,EAAO,SAAS,OAAO,CAA0B,IAAI,SAAS,CAAK,GAC5R,eAAe,CAAC,IAAM,EAAM,SAAS,cAAc,uFAAuF,CAAI,KAAoC,OAAO,yBAAyB,EAAO,iBAAiB,UAAU,QAAQ,EAAE,MAA4B,KAAK,EAAM,EAAY,CAAC,EAAM,cAAc,IAAI,MAAM,QAAQ,CAAC,QAAQ,GAAK,CAAC,CAAC,CAAC,EAAM,cAAc,IAAI,MAAM,SAAS,CAAC,QAAQ,GAAK,CAAC,CAAC,GAAI,IAAI,EAAG,EAAE,CAAC,CAAqB,EAAK,EAAU,CAAK,MAAI,GAAG,EAAM,CAAC,EAAG,sBAD7b,IAAwC"}