{"version":3,"file":"shared-lib.OoS8LmZo.mjs","names":[],"sources":["https:/framerusercontent.com/modules/UaghCQWDEHvhOfhFApaD/zpBZnHq0JszvvcSXGVG8/ChatbaseEmbed.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect}from\"react\";import{addPropertyControls,ControlType}from\"framer\";const CHATBASE_ID=\"nrkUnlfR0r-h9MybNi41S\";const CHATBASE_SRC=\"https://www.chatbase.co/embed.min.js\";/**\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */export default function ChatbaseEmbed(props){const{enabled}=props;useEffect(()=>{if(!enabled)return;if(typeof window===\"undefined\"||typeof document===\"undefined\")return;if(!window.chatbase||window.chatbase(\"getState\")!==\"initialized\"){window.chatbase=(...args)=>{if(!window.chatbase.q){window.chatbase.q=[];}window.chatbase.q.push(args);};window.chatbase=new Proxy(window.chatbase,{get(target,prop){if(prop===\"q\"){return target.q;}return(...args)=>target(prop,...args);}});}const appendScript=()=>{if(document.getElementById(CHATBASE_ID))return;const script=document.createElement(\"script\");script.src=CHATBASE_SRC;script.id=CHATBASE_ID;script.domain=\"www.chatbase.co\";document.body.appendChild(script);};if(document.readyState===\"complete\"){appendScript();return;}window.addEventListener(\"load\",appendScript);return()=>window.removeEventListener(\"load\",appendScript);},[enabled]);return /*#__PURE__*/_jsx(\"div\",{\"aria-hidden\":\"true\",style:{position:\"relative\",width:1,height:1,opacity:0,pointerEvents:\"none\",overflow:\"hidden\"}});}addPropertyControls(ChatbaseEmbed,{enabled:{type:ControlType.Boolean,title:\"Enabled\",defaultValue:true}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ChatbaseEmbed\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"fixed\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ChatbaseEmbed.map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