{"version":3,"file":"IframeWithParameters.DObbbXkQ.mjs","names":["useRef"],"sources":["https:/framerusercontent.com/modules/yuSjGwSnWqaL9X2CaXHS/Gvw97FZ4wto7SzBL1Bba/IframeWithParameters.js"],"sourcesContent":["// Get Started: https://www.framer.com/developers\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{useEffect,useRef}from\"react\";/**\n * @framerSupportedLayoutWidth fill\n * @framerSupportedLayoutHeight fill\n */export default function IframeWithParameters(props){const iframeRef=useRef(null);const{url}=props;useEffect(()=>{if(!iframeRef.current)return;var params=window.location.search||\"\";// preserve the iframe base, avoid duplicating params\nvar base=iframeRef.current.src.split(\"?\")[0];iframeRef.current.src=params?base+params:base;},[]);return /*#__PURE__*/_jsx(\"iframe\",{style:{...frameStyle},ref:iframeRef,src:url,frameBorder:\"0\"});}addPropertyControls(IframeWithParameters,{url:{title:\"URL\",type:ControlType.String,defaultValue:\"\"}});const frameStyle={width:\"100%\",height:\"100%\",border:0,zIndex:9999};\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"IframeWithParameters\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"fill\",\"framerSupportedLayoutHeight\":\"fill\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./IframeWithParameters.map"],"mappings":"+LAIG,SAAwB,EAAqB,EAAM,CAAC,IAAM,EAAUA,EAAO,KAAK,CAAM,CAAC,OAAK,EACE,OADI,MAAc,CAAK,KAAU,QAAe,KAAI,EAAO,EAAO,SAAS,QAAQ,GAChL,EAAK,EAAU,QAAQ,IAAI,MAAM,IAAI,CAAC,GAAG,EAAU,QAAQ,IAAI,EAAO,EAAK,EAAO,IAAO,EAAE,CAAC,CAAqB,EAAK,SAAS,CAAC,MAAM,CAAC,GAAG,EAAW,CAAC,IAAI,EAAU,IAAI,EAAI,YAAY,IAAI,CAAC,wBAJtJ,IAAoD,IAAoC,CAIgE,EAAoB,EAAqB,CAAC,IAAI,CAAC,MAAM,MAAM,KAAK,EAAY,OAAO,aAAa,GAAG,CAAC,CAAC,CAAO,EAAW,CAAC,MAAM,OAAO,OAAO,OAAO,OAAO,EAAE,OAAO,KAAK"}