{"version":3,"file":"QueryIframer.Ckuc69e2.mjs","names":[],"sources":["https:/framerusercontent.com/modules/CMdFtmOOLc4rsFKFQqok/2JMtOcI3EBPuqZctaY7c/QueryIframer.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect}from\"react\";export function withQueryParams(Component){return props=>{const baseUrl=props.url||\"https://www.autostay.co.kr/qr\";const urlParams=new URLSearchParams(window.location.search);const[url,existingParams]=baseUrl.split(\"?\");const combinedParams=new URLSearchParams(existingParams||\"\");urlParams.forEach((value,key)=>{combinedParams.set(key,value);});const iframeSrc=combinedParams.toString()?`${url}?${combinedParams.toString()}`:url;useEffect(()=>{const handleMessage=event=>{if(event.data.type===\"deeplink\"){// iOS 처리\nif(event.data.isIOS){const timer=setTimeout(()=>{window.location.href=event.data.marketUrl;},2e3);document.addEventListener(\"visibilitychange\",()=>{if(document.visibilityState===\"hidden\"){clearTimeout(timer);}});}window.location.href=event.data.url;}};window.addEventListener(\"message\",handleMessage);return()=>window.removeEventListener(\"message\",handleMessage);},[]);return /*#__PURE__*/_jsx(Component,{...props,url:iframeSrc});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withQueryParams\":{\"type\":\"reactHoc\",\"name\":\"withQueryParams\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./QueryIframer.map"],"mappings":"2HAAwE,SAAgB,EAAgB,EAAU,CAAC,MAAO,IAAO,CAAC,IAAM,EAAQ,EAAM,KAAK,gCAAsC,EAAU,IAAI,gBAAgB,EAAO,SAAS,OAAO,CAAM,CAAC,EAAI,GAAgB,EAAQ,MAAM,IAAI,CAAO,EAAe,IAAI,gBAAgB,GAAgB,GAAG,CAAC,EAAU,SAAS,EAAM,IAAM,CAAC,EAAe,IAAI,EAAI,EAAM,EAAG,CAAC,IAAM,EAAU,EAAe,UAAU,CAAC,GAAG,EAAI,GAAG,EAAe,UAAU,GAAG,EACjI,OADqI,MAAc,CAAC,IAAM,EAAc,GAAO,CAAC,GAAG,EAAM,KAAK,OAAO,WAAW,CACjkB,GAAG,EAAM,KAAK,MAAM,CAAC,IAAM,EAAM,eAAe,CAAC,EAAO,SAAS,KAAK,EAAM,KAAK,WAAY,IAAI,CAAC,SAAS,iBAAiB,uBAAuB,CAAI,SAAS,kBAAkB,UAAU,aAAa,EAAM,EAAI,CAAE,EAAO,SAAS,KAAK,EAAM,KAAK,MAAwD,OAAjD,EAAO,iBAAiB,UAAU,EAAc,KAAW,EAAO,oBAAoB,UAAU,EAAc,EAAG,EAAE,CAAC,CAAqB,EAAK,EAAU,CAAC,GAAG,EAAM,IAAI,EAAU,CAAC,uBADlY,IAA6B"}