{"version":3,"file":"Intercom_Chat.C_f9hQp3.mjs","names":["_jsx","__esmMin","init_npm_react_18_3_1","window","init_ssg_sandbox_shims","init_jsx_runtime","c","withIntercomChat","Component","props","init_Intercom_Chat"],"sources":["https:/framerusercontent.com/modules/ifNnu8c96KqamtrEhr5o/rRdueev4Ynf5GEZlpLc5/Intercom_Chat.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect}from\"react\";// Apply to Page Frame — обновляет виджет при навигации\nexport function withIntercomRefresh(Component){return props=>{useEffect(()=>{if(window.Intercom){window.Intercom(\"update\");}},[]);return /*#__PURE__*/_jsx(Component,{...props});};}// Apply to кнопке \"Online chat\" — открывает чат по клику\nexport function withIntercomChat(Component){return props=>{return /*#__PURE__*/_jsx(Component,{...props,onClick:()=>window.Intercom?.(\"show\")});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withIntercomChat\":{\"type\":\"reactHoc\",\"name\":\"withIntercomChat\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withIntercomRefresh\":{\"type\":\"reactHoc\",\"name\":\"withIntercomRefresh\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Intercom_Chat.map"],"mappings":"A,yHAEA,SAAgBO,EAAiBC,EAAU,CAAC,MAAOC,IAA4BT,gBAAKQ,EAAU,CAAC,GAAGC,EAAM,YAAYN,EAAO,WAAW,MAAM,CAAC,CAAC,CAAI,C"}