{"version":3,"file":"Intercom_Chat.DD7ffV_B.mjs","names":[],"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":"yHAEA,SAAgB,EAAiB,EAAU,CAAC,MAAO,IAA4B,EAAK,EAAU,CAAC,GAAG,EAAM,YAAY,EAAO,WAAW,OAAO,CAAC,CAAC,sBAFpG,IAA6B"}