{"version":3,"file":"TestComponent.B3IBd_YN.mjs","names":[],"sources":["https:/framerusercontent.com/modules/CHjhxtZGnQZOi74ycLzV/2U3LuEnGwOCZZzjj7vSE/TestComponent.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect}from\"react\";import{addPropertyControls,ControlType}from\"framer\";export default function Parent(props){const{iframeSrc,dataSrc}=props;useEffect(()=>{var _document_getElementById;(_document_getElementById=document.getElementById(\"bokun_widget\"))===null||_document_getElementById===void 0?void 0:_document_getElementById.classList.add(\"bokunWidget\");// Dynamically load the script\nconst script=document.createElement(\"script\");script.src=iframeSrc;script.async=true;document.body.appendChild(script);// Cleanup script when component unmounts\nreturn()=>{document.body.removeChild(script);};},[]);// Empty dependency array to run only once on mount\nreturn /*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",height:\"auto\"},id:\"bokun_widget\",className:\"bokunWidget\",\"data-src\":dataSrc});}Parent.defaultProps={iframeSrc:\"asd\",dataSrc:\"asdasd\"};addPropertyControls(Parent,{iframeSrc:{title:\"iframe-src\",type:ControlType.String},dataSrc:{title:\"data-src\",type:ControlType.String}})// import { addPropertyControls, ControlType } from \"framer\"\n// export function MyComponent(props) {\n//     return <div>{props.text}</div>\n// }\n// MyComponent.defaultProps = {\n//     text: \"Hello World!\",\n// }\n// addPropertyControls(MyComponent, {\n//     text: { type: ControlType.String, title: \"Hello World\" },\n// })\n;\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Parent\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./TestComponent.map"],"mappings":"kQAA4H,SAAwB,EAAO,EAAM,CAAC,GAAK,CAAC,YAAU,WAAS,EAG3L,OAHiM,MAAc,CAAC,IAAI,GAA0B,EAAyB,SAAS,eAAe,eAAe,GAAI,MAA+C,EAAyB,UAAU,IAAI,cAAc,CACtZ,IAAM,EAAO,SAAS,cAAc,SAAS,CAC7C,MAD8C,GAAO,IAAI,EAAU,EAAO,MAAM,GAAK,SAAS,KAAK,YAAY,EAAO,KAC5G,CAAC,SAAS,KAAK,YAAY,EAAO,GAAK,EAAE,CAAC,CAChC,EAAK,MAAM,CAAC,MAAM,CAAC,MAAM,OAAO,OAAO,OAAO,CAAC,GAAG,eAAe,UAAU,cAAc,WAAW,EAAQ,CAAC,kBAHtF,IAA6B,IAAoD,CAGO,EAAO,aAAa,CAAC,UAAU,MAAM,QAAQ,SAAS,CAAC,EAAoB,EAAO,CAAC,UAAU,CAAC,MAAM,aAAa,KAAK,EAAY,OAAO,CAAC,QAAQ,CAAC,MAAM,WAAW,KAAK,EAAY,OAAO,CAAC,CAAC"}