{"version":3,"file":"Embed_code.CIGfx6wL.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,kBAAkB,CAA6B,EAAI,WAAW,EAAU,8BAAoC,EAAQ,SAAS,cAAc,SAAS,CAAgW,OAA/V,EAAQ,aAAa,OAAO,yBAAyB,CAAC,EAAQ,aAAa,MAAM,EAAI,CAAK,IAAgB,EAAe,SAAS,cAAc,MAAM,CAAC,EAAe,GAAG,kBAAkB,SAAS,KAAK,YAAY,EAAe,EAAE,EAAQ,OAAO,UAAU,CAAC,IAAI,eAAe,GAAG,EAAU,eAAe,KAAK,GAAK,EAAG,SAAS,KAAK,YAAY,EAAQ,KAAW,CAAI,GAAS,EAAQ,WAAW,YAAY,EAAQ,IAAO,CAAC,EAAU,CAAC,CAAqB,EAAK,MAAM,CAAC,GAAG,kBAAkB,MAAM,CAAC,UAAU,QAAQ,CAAC,CAAC,kBAHrvB,IAA6B,IAAoD,CAGsqB,EAAoB,EAAU,CAAC,UAAU,CAAC,MAAM,aAAa,KAAK,EAAY,OAAO,aAAa,cAAc,CAAC,CAAC"}