{"version":3,"file":"AnalyticsSDK.DirWC6Vw.mjs","names":["useRef","_window"],"sources":["https:/framerusercontent.com/modules/UFfB6KssTcaGrtAKUt1c/bvHu8Kpxq3rxXDHKZLFv/AnalyticsSDK.js"],"sourcesContent":["/* eslint-disable react/display-name */import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useRef}from\"react\";export function CheckButtonOverride(Component){return props=>{return /*#__PURE__*/_jsx(Component,{...props,onClick:()=>alert(\"Clicked\")});};}export function LoginCtaButtonAnalytics(Component){return props=>{return /*#__PURE__*/_jsx(Component,{...props,as:\"button\",onClick:event=>{try{var _window;if((_window=window)===null||_window===void 0?void 0:_window.universeAnalytics){window.universeAnalytics.track_EXPERIMENTAL({name:\"Login CTA Clicked\"},{l1FunnelStage:props.l1Funnel,l2FunnelStage:props.l2Funnel,label:props.buttonLabel,section:props.sectionName,subSection:props.subsection,service:props.service});}}catch{var _window_Sentry,_window1;(_window1=window)===null||_window1===void 0?void 0:(_window_Sentry=_window1.Sentry)===null||_window_Sentry===void 0?void 0:_window_Sentry.captureException(\"Something went wrong in framer analytics\",{tags:\"framer\",rank:\"P0\"});}}});};}export function SignUpCtaButtonAnalytics(Component){return props=>{return /*#__PURE__*/_jsx(Component,{...props,as:\"button\",onClick:event=>{try{var _window;if((_window=window)===null||_window===void 0?void 0:_window.universeAnalytics){var _props_buttonLabel;window.universeAnalytics.track_EXPERIMENTAL({name:\"Signup CTA Clicked\"},{l1FunnelStage:props.l1Funnel,l2FunnelStage:props.l2Funnel,label:(_props_buttonLabel=props.buttonLabel)!==null&&_props_buttonLabel!==void 0?_props_buttonLabel:props.buttonText,section:props.sectionName,subSection:props.subsection,service:props.service});}}catch{var _window_Sentry,_window1;(_window1=window)===null||_window1===void 0?void 0:(_window_Sentry=_window1.Sentry)===null||_window_Sentry===void 0?void 0:_window_Sentry.captureException(\"Something went wrong in framer analytics\",{tags:\"framer\",rank:\"P0\"});}}});};}export function TopNavCtaAnalytics(Component){return props=>{return /*#__PURE__*/_jsx(Component,{...props,onClick:()=>{try{var _window;if((_window=window)===null||_window===void 0?void 0:_window.universeAnalytics){window.universeAnalytics.track_EXPERIMENTAL({name:\"Top Nav Link Clicked\"},{label:props.productName,type:\"Original Top Nav Bar\",section:props.productName,subSection:props.productName,l1FunnelStage:\"Pre-signup flow\",l2FunnelStage:\"Top Nav\"});}}catch{var _window_Sentry,_window1;(_window1=window)===null||_window1===void 0?void 0:(_window_Sentry=_window1.Sentry)===null||_window_Sentry===void 0?void 0:_window_Sentry.captureException(\"Something went wrong in framer analytics\",{tags:\"framer\",rank:\"P0\"});}}});};}export function TopNavOrgCtaAnalytics(Component){return props=>{const label=props.link.includes(\"razorpay\")?\"India\":\"Malaysia\";return /*#__PURE__*/_jsx(Component,{...props,onClick:()=>{try{var _window;if((_window=window)===null||_window===void 0?void 0:_window.universeAnalytics){window.universeAnalytics.track_EXPERIMENTAL({name:\"Top Nav Link Clicked\"},{label:label,type:\"Original Top Nav Bar\",section:props.productName,subSection:props.productName,l1FunnelStage:\"Pre-signup flow\",l2FunnelStage:\"Top Nav\"});}}catch{var _window_Sentry,_window1;(_window1=window)===null||_window1===void 0?void 0:(_window_Sentry=_window1.Sentry)===null||_window_Sentry===void 0?void 0:_window_Sentry.captureException(\"Something went wrong in framer analytics\",{tags:\"framer\",rank:\"P0\"});}}});};}export function TopNavCtaViewedAnalytics(Component){return props=>{return /*#__PURE__*/_jsx(Component,{...props,onMouseOver:()=>{try{var _window;if((_window=window)===null||_window===void 0?void 0:_window.universeAnalytics){window.universeAnalytics.track_EXPERIMENTAL({name:\"Top Nav Menu Viewed\"},{label:props.analyticsLabel,type:\"Original Top Nav Bar\",section:props.analyticsLabel,subSection:props.analyticsLabel,l1FunnelStage:\"Pre-signup flow\",l2FunnelStage:\"Top Nav\"});}}catch{var _window_Sentry,_window1;(_window1=window)===null||_window1===void 0?void 0:(_window_Sentry=_window1.Sentry)===null||_window_Sentry===void 0?void 0:_window_Sentry.captureException(\"Something went wrong in framer analytics\",{tags:\"framer\",rank:\"P0\"});}}});};}export function BottomNavLinkAnalytics(Component){return props=>{return /*#__PURE__*/_jsx(Component,{...props,onClick:()=>{try{var _window;if((_window=window)===null||_window===void 0?void 0:_window.universeAnalytics){window.universeAnalytics.track_EXPERIMENTAL({name:\"Bottom Nav Link Clicked\"},{label:props.buttonText,whatsAppUpdates:\"NA\",l1FunnelStage:\"Pre-signup flow\",l2FunnelStage:\"CTR\",section:\"Footer\",subSection:props.buttonText});}}catch{var _window_Sentry,_window1;(_window1=window)===null||_window1===void 0?void 0:(_window_Sentry=_window1.Sentry)===null||_window_Sentry===void 0?void 0:_window_Sentry.captureException(\"Something went wrong in framer analytics\",{tags:\"framer\",rank:\"P0\"});}}});};}export function IconClickedAnalytics(Component){return props=>{return /*#__PURE__*/_jsx(Component,{...props,onClick:()=>{try{var _window;if((_window=window)===null||_window===void 0?void 0:_window.universeAnalytics){window.universeAnalytics.track_EXPERIMENTAL({name:\"Icon Clicked\"},{label:props.buttonText,whatsAppUpdates:\"NA\",l1FunnelStage:\"Pre-signup flow\",l2FunnelStage:\"CTR\",section:\"Footer\",subSection:props[\"data-framer-name\"]});}}catch{var _window_Sentry,_window1;(_window1=window)===null||_window1===void 0?void 0:(_window_Sentry=_window1.Sentry)===null||_window_Sentry===void 0?void 0:_window_Sentry.captureException(\"Something went wrong in framer analytics\",{tags:\"framer\",rank:\"P0\"});}}});};}export function IconHeaderClickedAnalytics(Component){return props=>{return /*#__PURE__*/_jsx(Component,{...props,onClick:()=>{try{var _window;if((_window=window)===null||_window===void 0?void 0:_window.universeAnalytics){window.universeAnalytics.track_EXPERIMENTAL({name:\"Icon Clicked\"},{label:\"Nav Icon\",whatsAppUpdates:\"NA\",l1FunnelStage:\"Pre-signup flow\",l2FunnelStage:\"CTR\",section:\"Top Nav\",subSection:\"Top Nav\"});}}catch{var _window_Sentry,_window1;(_window1=window)===null||_window1===void 0?void 0:(_window_Sentry=_window1.Sentry)===null||_window_Sentry===void 0?void 0:_window_Sentry.captureException(\"Something went wrong in framer analytics\",{tags:\"framer\",rank:\"P0\"});}}});};}export function TopNavCtaViewedAndClickedAnalytics(Component){return props=>{return /*#__PURE__*/_jsx(Component,{...props,onMouseOver:()=>{try{var _window;if((_window=window)===null||_window===void 0?void 0:_window.universeAnalytics){window.universeAnalytics.track_EXPERIMENTAL({name:\"Top Nav Menu Viewed\"},{type:\"Original Top Nav Bar\",section:props.analyticsLabel,subSection:props.analyticsLabel,l1FunnelStage:\"Pre-signup flow\",l2FunnelStage:\"Top Nav\",label:props.analyticsLabel});}}catch{var _window_Sentry,_window1;(_window1=window)===null||_window1===void 0?void 0:(_window_Sentry=_window1.Sentry)===null||_window_Sentry===void 0?void 0:_window_Sentry.captureException(\"Something went wrong in framer analytics\",{tags:\"framer\",rank:\"P0\"});}},onClick:()=>{try{var _window;if((_window=window)===null||_window===void 0?void 0:_window.universeAnalytics){window.universeAnalytics.track_EXPERIMENTAL({name:\"Top Nav Link Clicked\"},{label:props.analyticsLabel,type:\"Original Top Nav Bar\",section:props.analyticsLabel,subSection:props.analyticsLabel,l1FunnelStage:\"Pre-signup flow\",l2FunnelStage:\"Top Nav\"});}}catch{var _window_Sentry,_window1;(_window1=window)===null||_window1===void 0?void 0:(_window_Sentry=_window1.Sentry)===null||_window_Sentry===void 0?void 0:_window_Sentry.captureException(\"Something went wrong in framer analytics\",{tags:\"framer\",rank:\"P0\"});}}});};}export function FAQAccordionAnalytics(Component){return props=>{console.log(props);return /*#__PURE__*/_jsx(Component,{...props});};}export function LinkAnalytics(Component){return props=>{return /*#__PURE__*/_jsx(Component,{...props,onClick:()=>{try{var _window;if((_window=window)===null||_window===void 0?void 0:_window.universeAnalytics){window.universeAnalytics.track_EXPERIMENTAL({name:\"Link Clicked\"},{label:props.buttonLabel||props.title||props.buttonText,section:props.sectionName,subSection:props.subsection,l1FunnelStage:props.l1Funnel,l2FunnelStage:props.l2Funnel,whatsAppUpdates:\"NA\"});}}catch{var _window_Sentry,_window1;(_window1=window)===null||_window1===void 0?void 0:(_window_Sentry=_window1.Sentry)===null||_window_Sentry===void 0?void 0:_window_Sentry.captureException(\"Something went wrong in framer analytics\",{tags:\"framer\",rank:\"P0\"});}}});};}export function WebsiteCtaButtonAnalytics(Component){return props=>{return /*#__PURE__*/_jsx(Component,{...props,onClick:()=>{try{var _window;if((_window=window)===null||_window===void 0?void 0:_window.universeAnalytics){window.universeAnalytics.track_EXPERIMENTAL({name:\"Website Cta Clicked\"},{label:props.buttonLabel||props.label,section:props.sectionName,subSection:props.subsection,l1FunnelStage:props.l1Funnel,l2FunnelStage:props.l2Funnel,whatsAppUpdates:\"NA\",service:props.service});}}catch{var _window_Sentry,_window1;(_window1=window)===null||_window1===void 0?void 0:(_window_Sentry=_window1.Sentry)===null||_window_Sentry===void 0?void 0:_window_Sentry.captureException(\"Something went wrong in framer analytics\",{tags:\"framer\",rank:\"P0\"});}}});};}export function PageSectionViewedAnalytics(Component){return props=>{const intersectionRef=useRef(null);useEffect(()=>{try{let isEventCalled=false;const observer=new IntersectionObserver(entries=>{entries.forEach(entry=>{if(entry.isIntersecting&&!isEventCalled){var _window;if((_window=window)===null||_window===void 0?void 0:_window.universeAnalytics){isEventCalled=true;window.universeAnalytics.track_EXPERIMENTAL({name:\"Page Section Viewed\"},{section:props.name,l1FunnelStage:\"Pre-signup flow\",l2FunnelStage:\"Page Section View\"});}}});});if(intersectionRef.current)observer.observe(intersectionRef.current);return()=>{if(intersectionRef.current)observer.unobserve(intersectionRef.current);};}catch{var _window_Sentry,_window;(_window=window)===null||_window===void 0?void 0:(_window_Sentry=_window.Sentry)===null||_window_Sentry===void 0?void 0:_window_Sentry.captureException(\"Something went wrong in framer analytics\",{tags:\"framer\",rank:\"P0\"});}},[props.name]);return /*#__PURE__*/_jsx(Component,{ref:intersectionRef,...props});};}export function FramerCarouselScrolledAnalytic(Component){return props=>{function debounce(func,timeout){let timer;return(...args)=>{clearTimeout(timer);timer=setTimeout(()=>{func.apply(this,args);},timeout);};}const trackCarouselScroll=value=>{try{var _window;if(!value)return;if((_window=window)===null||_window===void 0?void 0:_window.universeAnalytics){window.universeAnalytics.track_EXPERIMENTAL({name:\"Carousel Scrolled\"},{label:value});}}catch{var _window_Sentry,_window1;(_window1=window)===null||_window1===void 0?void 0:(_window_Sentry=_window1.Sentry)===null||_window_Sentry===void 0?void 0:_window_Sentry.captureException(\"Something went wrong in framer analytics\",{tags:\"framer\",rank:\"P0\"});}};const debouncedTrackCarouselScroll=debounce(trackCarouselScroll,500);useEffect(()=>{try{if(window){if(window.__FRAMER_CAROUSEL_SCROLL_EVENT__)return;// Get all the framer carousel component\nconst framerCarousels=document.querySelectorAll(\".framer--carousel\");// Add a scroll event listener to all of them\nfor(let i=0;i<framerCarousels.length;i++){framerCarousels[i].addEventListener(\"scroll\",e=>{//Debounce the scroll event calls\nconst carouselTrackValue=framerCarousels[i].parentElement.getAttribute(\"aria-title\");debouncedTrackCarouselScroll(carouselTrackValue);});}window.__FRAMER_CAROUSEL_SCROLL_EVENT__=true;}}catch{var _window_Sentry,_window;(_window=window)===null||_window===void 0?void 0:(_window_Sentry=_window.Sentry)===null||_window_Sentry===void 0?void 0:_window_Sentry.captureException(\"Something went wrong in framer carousel analytics\",{tags:\"framer\",rank:\"P0\"});}},[]);return /*#__PURE__*/_jsx(Component,{...props});};}\nexport const __FramerMetadata__ = {\"exports\":{\"WebsiteCtaButtonAnalytics\":{\"type\":\"reactHoc\",\"name\":\"WebsiteCtaButtonAnalytics\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"CheckButtonOverride\":{\"type\":\"reactHoc\",\"name\":\"CheckButtonOverride\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"TopNavOrgCtaAnalytics\":{\"type\":\"reactHoc\",\"name\":\"TopNavOrgCtaAnalytics\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"TopNavCtaViewedAnalytics\":{\"type\":\"reactHoc\",\"name\":\"TopNavCtaViewedAnalytics\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"TopNavCtaAnalytics\":{\"type\":\"reactHoc\",\"name\":\"TopNavCtaAnalytics\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"PageSectionViewedAnalytics\":{\"type\":\"reactHoc\",\"name\":\"PageSectionViewedAnalytics\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"SignUpCtaButtonAnalytics\":{\"type\":\"reactHoc\",\"name\":\"SignUpCtaButtonAnalytics\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"IconHeaderClickedAnalytics\":{\"type\":\"reactHoc\",\"name\":\"IconHeaderClickedAnalytics\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"IconClickedAnalytics\":{\"type\":\"reactHoc\",\"name\":\"IconClickedAnalytics\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"LoginCtaButtonAnalytics\":{\"type\":\"reactHoc\",\"name\":\"LoginCtaButtonAnalytics\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"FramerCarouselScrolledAnalytic\":{\"type\":\"reactHoc\",\"name\":\"FramerCarouselScrolledAnalytic\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"FAQAccordionAnalytics\":{\"type\":\"reactHoc\",\"name\":\"FAQAccordionAnalytics\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"TopNavCtaViewedAndClickedAnalytics\":{\"type\":\"reactHoc\",\"name\":\"TopNavCtaViewedAndClickedAnalytics\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"BottomNavLinkAnalytics\":{\"type\":\"reactHoc\",\"name\":\"BottomNavLinkAnalytics\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"LinkAnalytics\":{\"type\":\"reactHoc\",\"name\":\"LinkAnalytics\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./AnalyticsSDK.map"],"mappings":"uIAA8gP,SAAgB,EAAc,EAAU,CAAC,MAAO,IAA4B,EAAK,EAAU,CAAC,GAAG,EAAM,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