{"version":3,"file":"TellyouInline.CutcW2rc.mjs","names":[],"sources":["https:/framerusercontent.com/modules/U0nyrfyPo2BcFIFDIV8s/CR4VpeP6BFkF6vCA7qwX/TellyouInline.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect}from\"react\";import{addPropertyControls,ControlType}from\"framer\";/**\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any\n */export default function TellyouInline(props){const{entityId}=props;useEffect(()=>{if(!entityId)return;// Prevent duplicate script injection\nconst existing=document.querySelector(`script[data-tellyou=\"${entityId}\"]`);if(existing)return;// Inject config script\nconst configScript=document.createElement(\"script\");configScript.innerHTML=`\n            window.tellyouai = {\n                ...(window.tellyouai || {}),\n                displayMode: \"inline\",\n                entityId: \"${entityId}\",\n                target: \"tellyou-inline\",\n                options: {\n                    withAvatar: true,\n                    withName: true,\n                    background: \"none\",\n                    theme: \"light\",\n                }\n            };\n        `;// Inject plugin script\nconst pluginScript=document.createElement(\"script\");pluginScript.type=\"module\";pluginScript.src=\"https://app.tellyou.ai/tellyouai-plugin.js?entityId=\"+entityId;pluginScript.setAttribute(\"data-tellyou\",entityId);document.body.appendChild(configScript);document.body.appendChild(pluginScript);return()=>{pluginScript.remove();};},[entityId]);return /*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",height:\"100%\",display:\"flex\"},children:/*#__PURE__*/_jsx(\"div\",{id:\"tellyou-inline\",style:{flex:1,minHeight:0,width:\"100%\"}})});}addPropertyControls(TellyouInline,{entityId:{type:ControlType.String,title:\"Tellyou ID\",placeholder:\"Enter UUID...\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"TellyouInline\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"any\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"any\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./TellyouInline.map"],"mappings":"0KAGG,SAAwB,EAAc,EAAM,CAAC,GAAK,CAAC,YAAU,EAgBoR,OAhB9Q,MAAc,CACR,GADY,CAAC,GAC1E,SAAS,cAAc,wBAAwB,EAAS,IAAI,CAAa,OACxF,IAAM,EAAa,SAAS,cAAc,SAAS,CAAC,EAAa,UAAU;;;;6BAI9C,EAAS;;;;;;;;;UAUtC,IAAM,EAAa,SAAS,cAAc,SAAS,CAAgP,MAA/O,GAAa,KAAK,SAAS,EAAa,IAAI,uDAAuD,EAAS,EAAa,aAAa,eAAe,EAAS,CAAC,SAAS,KAAK,YAAY,EAAa,CAAC,SAAS,KAAK,YAAY,EAAa,KAAW,CAAC,EAAa,QAAQ,GAAK,CAAC,EAAS,CAAC,CAAqB,EAAK,MAAM,CAAC,MAAM,CAAC,MAAM,OAAO,OAAO,OAAO,QAAQ,OAAO,CAAC,SAAsB,EAAK,MAAM,CAAC,GAAG,iBAAiB,MAAM,CAAC,KAAK,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,CAAC,kBAnB5d,IAA6B,IAAoD,CAmB6Y,EAAoB,EAAc,CAAC,SAAS,CAAC,KAAK,EAAY,OAAO,MAAM,aAAa,YAAY,gBAAgB,CAAC,CAAC"}