{"version":3,"file":"SetPageURL.CaBCbipS.mjs","names":["useState","__legacyOverrideHOC_DataObserverContext","_jsx"],"sources":["https:/framerusercontent.com/modules/9xnbGzVlTuDaZW8YYQYI/OScCHmeKBe1daDSvN2QD/SetPageURL.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useState}from\"react\";export function SetPageURL(){const[url,setUrl]=useState(\"\");useEffect(()=>{if(typeof window!==\"undefined\"){const currentUrl=window.location.href;setUrl(currentUrl);console.log(\"URL capturada:\",currentUrl);}},[]);return{defaultValue:url,readOnly:true};}import{useContext as __legacyOverrideHOC_useContext}from\"react\";import{DataObserverContext as __legacyOverrideHOC_DataObserverContext}from\"framer\";export function withSetPageURL(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...SetPageURL(props)});};}withSetPageURL.displayName=\"SetPageURL\";\nexport const __FramerMetadata__ = {\"exports\":{\"SetPageURL\":{\"type\":\"override\",\"name\":\"SetPageURL\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withSetPageURL\":{\"type\":\"reactHoc\",\"name\":\"withSetPageURL\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./SetPageURL.map"],"mappings":"+LAAiF,SAAgB,GAAY,CAAC,GAAK,CAAC,EAAI,GAAQA,EAAS,GAAG,CAAyJ,OAAxJ,MAAc,CAAC,GAAU,IAAS,OAAY,CAAC,IAAM,EAAW,EAAO,SAAS,KAAK,EAAO,EAAW,CAAC,QAAQ,IAAI,iBAAiB,EAAW,GAAI,EAAE,CAAC,CAAO,CAAC,aAAa,EAAI,SAAS,GAAK,CAAqJ,SAAgB,EAAe,EAAE,CAAC,MAAO,KAAQ,EAA+BC,EAAwC,CAAQC,EAAK,EAAE,CAAC,GAAG,EAAM,GAAG,EAAW,EAAM,CAAC,CAAC,uBAA5lB,IAAsC,IAA+Y,CAA2K,EAAe,YAAY"}