{"version":3,"file":"NeonEmbed.CL-e7qDI.mjs","names":["useRef","nanoid","__esmMin","init_npm_react_18_3_1","de","c","init_jsx_runtime","ce","init_framer_DxfB3JJo","addPropertyControls","ControlType","en","init_nanoid","init_iframeResizer$1","a","NeonEmbed","iframeRef","id","iframe","props","containerStyle","init_NeonEmbed"],"sources":["https:/framerusercontent.com/modules/UGjHY9ZXxoFltu5kUKup/kXA5XKojYDvBuy6Gdsfn/NeonEmbed.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import iframeResize from\"https://esm.sh/iframe-resizer/js/iframeResizer\";import{nanoid}from\"https://esm.sh/nanoid\";import{useEffect,useRef}from\"react\";/**\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight auto\n */export default function NeonEmbed(props){const iframeRef=useRef(null);const id=nanoid();useEffect(()=>{const iframe=iframeRef.current;iframeResize({autoResize:true,log:false,checkOrigin:false,// inPageLinks: true,\nminHeight:320,warningTimeout:0,license:\"GPLv3\"},iframe);return()=>{return iframe.iFrameResizer&&iframe.iFrameResizer.removeListeners();};},[props]);return /*#__PURE__*/_jsx(\"div\",{style:containerStyle,children:/*#__PURE__*/_jsx(\"iframe\",{id:id,src:props.url,style:{width:\"1px\",minWidth:\"100%\"},frameBorder:\"0\",ref:iframeRef})});}NeonEmbed.defaultProps={url:\"\"};addPropertyControls(NeonEmbed,{url:{title:\"URL\",type:ControlType.String},height:{title:\"Height\",type:ControlType.Number},width:{title:\"Width\",type:ControlType.Number}});const containerStyle={width:\"100%\",height:\"auto\"};\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"NeonEmbed\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"fixed\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"auto\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./NeonEmbed.map"],"mappings":"A,gPAGG,SAAwBe,EAAU,EAAM,CAAC,IAAMC,EAAUhB,EAAO,IAAI,EAAQiB,EAAGhB,EAAO,EAC2D,OADzDM,MAAc,CAAC,IAAMW,EAAOF,EAAU,QACzE,OADiFL,EAAa,CAAC,WAAW,GAAK,IAAI,GAAM,YAAY,GAC7L,UAAU,IAAI,eAAe,EAAE,QAAQ,OAAO,EAAEO,CAAM,MAAoBA,EAAO,eAAeA,EAAO,cAAc,gBAAgB,CAAI,EAAE,CAACC,CAAK,CAAC,EAAsB,gBAAK,MAAM,CAAC,MAAMC,EAAe,SAAsB,gBAAK,SAAS,CAAI,KAAG,IAAID,EAAM,IAAI,MAAM,CAAC,MAAM,MAAM,SAAS,MAAM,EAAE,YAAY,IAAI,IAAIH,CAAS,CAAC,CAAC,CAAC,CAAE,C,wDAAC,EAAU,aAAa,CAAC,IAAI,EAAE,EAAEP,EAAoBM,EAAU,CAAC,IAAI,CAAC,MAAM,MAAM,KAAKL,EAAY,MAAM,EAAE,OAAO,CAAC,MAAM,SAAS,KAAKA,EAAY,MAAM,EAAE,MAAM,CAAC,MAAM,QAAQ,KAAKA,EAAY,MAAM,CAAC,CAAC,EAAQ,EAAe,CAAC,MAAM,OAAO,OAAO,MAAM,C"}