{"version":3,"file":"Intercom.CSgDAJFI.mjs","names":[],"sources":["https:/framerusercontent.com/modules/VXKTnqL4XhqTtL9yFwip/r02TFWfHjMGSUCriq6DZ/Intercom.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,forwardRef}from\"react\";export function withIntercomOnClick(Component){return /*#__PURE__*/forwardRef((props,ref)=>{useEffect(()=>{if(window.Intercom)return;const script=document.createElement(\"script\");script.src=\"https://widget.intercom.io/widget/lzp2drht\"// Replace with your actual app ID\n;script.async=true;document.head.appendChild(script);script.onload=()=>{window.Intercom(\"boot\",{app_id:\"lzp2drht\"});};},[]);const handleClick=()=>{if(window.Intercom){window.Intercom(\"show\");}else{console.warn(\"Intercom not ready yet\");}};return /*#__PURE__*/_jsx(Component,{ref:ref,...props,onClick:handleClick});});}\nexport const __FramerMetadata__ = {\"exports\":{\"withIntercomOnClick\":{\"type\":\"reactHoc\",\"name\":\"withIntercomOnClick\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Intercom.map"],"mappings":"kIAAmF,SAAgB,EAAoB,EAAU,CAAC,OAAoB,GAAY,EAAM,IAAM,CAAC,MAAc,CAAC,GAAG,EAAO,SAAS,OAAO,IAAM,EAAO,SAAS,cAAc,SAAS,CAAC,EAAO,IAAI,6CAChR,EAAO,MAAM,GAAK,SAAS,KAAK,YAAY,EAAO,CAAC,EAAO,WAAW,CAAC,EAAO,SAAS,OAAO,CAAC,OAAO,WAAW,CAAC,GAAK,EAAE,CAAC,CAAC,IAAM,MAAgB,CAAI,EAAO,SAAU,EAAO,SAAS,OAAO,CAAO,QAAQ,KAAK,yBAAyB,EAAI,OAAoB,EAAK,EAAU,CAAK,MAAI,GAAG,EAAM,QAAQ,EAAY,CAAC,EAAG,sBADjR,IAAwC"}