{"version":3,"file":"FeaturePages.TnEmZXbR.mjs","names":[],"sources":["https:/framerusercontent.com/modules/K3mqDzmp0AWFRB480DHH/93A2Z6PTGA7nHlBYwN78/FeaturePages.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{forwardRef}from\"react\";// Learn more: https://www.framer.com/developers/overrides/\nconst IS_PRD=()=>{const origin=window?.location.origin;return origin===\"https://xmind.ai\"||origin===\"https://xmind.com\";};const findParentAnchor=element=>{let current=element;let depth=0;while(current){if(current.tagName===\"A\"){return current;}current=current.parentElement;depth++;if(depth>5){break;}}return null;};const handleFeatureSectionClick=(event,index)=>{const anchor=findParentAnchor(event.target);if(!anchor)return;const href=anchor.getAttribute(\"href\");let btn=\"\";if(href?.includes(\"/contact-sales\")){btn=\"contact_sales\";}else if(href?.includes(\"xmind.ai\")){btn=\"try_xmind_free\";}if(!btn)return;window?.mixpanel?.track(\"button_click\",{btn,platform:\"framer\",index});window?.dataLayer?.push?.({event:\"button_click\",btn,index,platform:\"framer\"});if(!IS_PRD()){console.log(\"button_click\",{btn,platform:\"framer\",index});}};export const trackFeatureSection1=Component=>{return /*#__PURE__*/forwardRef((props,ref)=>{const{onClick,...restProps}=props;const handleClick=event=>{handleFeatureSectionClick(event,1);if(onClick)onClick(event);};return /*#__PURE__*/_jsx(Component,{ref:ref,...restProps,onClick:handleClick});});};export const trackFeatureSection2=Component=>{return /*#__PURE__*/forwardRef((props,ref)=>{const{onClick,...restProps}=props;const handleClick=event=>{handleFeatureSectionClick(event,2);if(onClick)onClick(event);};return /*#__PURE__*/_jsx(Component,{ref:ref,...restProps,onClick:handleClick});});};export const trackFeatureSection3=Component=>{return /*#__PURE__*/forwardRef((props,ref)=>{const{onClick,...restProps}=props;const handleClick=event=>{handleFeatureSectionClick(event,3);if(onClick)onClick(event);};return /*#__PURE__*/_jsx(Component,{ref:ref,...restProps,onClick:handleClick});});};export const trackFeatureSection4=Component=>{return /*#__PURE__*/forwardRef((props,ref)=>{const{onClick,...restProps}=props;const handleClick=event=>{handleFeatureSectionClick(event,4);if(onClick)onClick(event);};return /*#__PURE__*/_jsx(Component,{ref:ref,...restProps,onClick:handleClick});});};export const trackFeatureSection5=Component=>{return /*#__PURE__*/forwardRef((props,ref)=>{const{onClick,...restProps}=props;const handleClick=event=>{handleFeatureSectionClick(event,5);if(onClick)onClick(event);};return /*#__PURE__*/_jsx(Component,{ref:ref,...restProps,onClick:handleClick});});};\nexport const __FramerMetadata__ = {\"exports\":{\"trackFeatureSection4\":{\"type\":\"reactHoc\",\"name\":\"trackFeatureSection4\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"trackFeatureSection5\":{\"type\":\"reactHoc\",\"name\":\"trackFeatureSection5\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"trackFeatureSection3\":{\"type\":\"reactHoc\",\"name\":\"trackFeatureSection3\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"trackFeatureSection1\":{\"type\":\"reactHoc\",\"name\":\"trackFeatureSection1\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"trackFeatureSection2\":{\"type\":\"reactHoc\",\"name\":\"trackFeatureSection2\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./FeaturePages.map"],"mappings":"4OACM,MAAW,CAAC,IAAM,EAAO,GAAQ,SAAS,OAAO,OAAO,IAAS,oBAAoB,IAAS,mBAAqB,EAAO,EAAiB,GAAS,CAAC,IAAI,EAAQ,EAAY,EAAM,EAAE,KAAM,GAAQ,CAAC,GAAG,EAAQ,UAAU,IAAK,OAAO,EAA+C,GAAtC,EAAQ,EAAQ,cAAc,IAAW,EAAM,EAAG,KAAQ,QAAO,IAAM,EAAO,GAA2B,EAAM,IAAQ,CAAC,IAAM,EAAO,EAAiB,EAAM,QAAQ,GAAG,CAAC,EAAO,OAAO,IAAM,EAAK,EAAO,aAAa,QAAY,EAAI,GAAM,GAAM,SAAS,kBAAmB,EAAI,gBAAyB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