{"version":3,"file":"Embed_code.DfeWiFto.mjs","names":[],"sources":["https:/framerusercontent.com/modules/AJODnQS3lFieDLrb7Jo9/fHU6gQD90hSETXtyO6ic/Embed_code.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect}from\"react\";import{addPropertyControls,ControlType}from\"framer\";/**\n * @framerSupportedLayoutWidth auto\n * @framerSupportedLayoutHeight auto\n */export default function EmbedTest(props){const{urlPrefix}=props;useEffect(()=>{if(document){let embedContainer=document.getElementById(\"studioyou-embed\");const date=Date.now();const url=`https://${urlPrefix}.onbookee.com/embed/index.js`;const xscript=document.createElement(\"script\");xscript.setAttribute(\"type\",\"application/javascript\");xscript.setAttribute(\"src\",url);if(!embedContainer){embedContainer=document.createElement(\"div\");embedContainer.id=\"studioyou-embed\";document.body.appendChild(embedContainer);}xscript.onload=function(){new StudioYouEmbed(`${urlPrefix}.onbookee.com`,null,true);};document.body.appendChild(xscript);return()=>{if(xscript){xscript.parentNode.removeChild(xscript);}};}},[urlPrefix]);return /*#__PURE__*/_jsx(\"div\",{id:\"studioyou-embed\",style:{minHeight:\"100vh\"}});}addPropertyControls(EmbedTest,{urlPrefix:{title:\"URL Prefix\",type:ControlType.String,defaultValue:\"selahstudio\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"EmbedTest\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"auto\",\"framerSupportedLayoutWidth\":\"auto\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Embed_code.map"],"mappings":"qKAGG,SAAwB,EAAU,EAAM,CAAC,GAAK,CAAC,aAAW,EAAmpB,OAA7oB,MAAc,CAAC,GAAG,SAAS,CAAC,IAAI,EAAe,SAAS,eAAe,iBAAiB,EAA8B,EAAI,WAAW,EAAU,8BAAoC,EAAQ,SAAS,cAAc,QAAQ,EAAiW,OAA/V,EAAQ,aAAa,OAAO,wBAAwB,EAAE,EAAQ,aAAa,MAAM,CAAG,EAAM,IAAgB,EAAe,SAAS,cAAc,KAAK,EAAE,EAAe,GAAG,kBAAkB,SAAS,KAAK,YAAY,CAAc,GAAG,EAAQ,OAAO,UAAU,CAAC,IAAI,eAAe,GAAG,EAAU,eAAe,KAAK,EAAI,CAAE,EAAE,SAAS,KAAK,YAAY,CAAO,MAAY,CAAI,GAAS,EAAQ,WAAW,YAAY,CAAO,CAAG,CAAE,CAAC,EAAE,CAAC,CAAS,CAAC,EAAsB,EAAK,MAAM,CAAC,GAAG,kBAAkB,MAAM,CAAC,UAAU,OAAO,CAAC,CAAC,CAAE,iBAHvvB,IAA6B,IAAoD,EAGuqB,EAAoB,EAAU,CAAC,UAAU,CAAC,MAAM,aAAa,KAAK,EAAY,OAAO,aAAa,aAAa,CAAC,CAAC"}