{"version":3,"file":"NavActive.B2f8bAN1.mjs","names":["useState","useEffect","__legacyOverrideHOC_useContext","__legacyOverrideHOC_DataObserverContext","_jsx","__esmMin","oe","init_ssg_sandbox_shims","window","_e","init_jsx_runtime","c","init_npm_react_18_3_1","ce","init_framer_ChujFWHC","DataObserverContext","getCleanPath","path","createNavOverride","targetPath","isHover","setIsHover","setPath","handleChange","isActive","voiceAiUnderline","featuresUnderline","pricingUnderline","integrationUnderline","newDesignVoiceUnderline","newDesignCallAnalysisUnderline","newDesignFeaturesUnderline","newDesignPricingUnderline","newDesignBookDemoUnderline","withvoiceAiUnderline","C","props","withfeaturesUnderline","withpricingUnderline","withintegrationUnderline","withnewDesignVoiceUnderline","withnewDesignCallAnalysisUnderline","withnewDesignFeaturesUnderline","withnewDesignPricingUnderline","withnewDesignBookDemoUnderline","init_NavActive"],"sources":["https:/framerusercontent.com/modules/RVOPSxNNYX1BeVzDsjZ7/TkJDjOe9TUTuHI3dvH2c/NavActive.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useState,useEffect}from\"react\";/* PATH TEMİZLE */function getCleanPath(){let path=window.location.pathname;path=path.replace(/^\\/[a-z]{2}(?=\\/|$)/,\"\");if(path.length>1&&path.endsWith(\"/\")){path=path.slice(0,-1);}return path||\"/\";}/* STYLE */function createNavOverride(targetPath){const[isHover,setIsHover]=useState(false);const[path,setPath]=useState(getCleanPath());useEffect(()=>{const handleChange=()=>setPath(getCleanPath());window.addEventListener(\"popstate\",handleChange);return()=>window.removeEventListener(\"popstate\",handleChange);},[]);const isActive=path===targetPath;return{onMouseEnter(){setIsHover(true);},onMouseLeave(){setIsHover(false);},style:{color:isActive?\"#FFFFFF\"// Active rengi\n:isHover?\"#1239D9\"// Hover rengi\n:\"#000000\",textDecoration:isActive?\"underline\":\"none\",textDecorationColor:\"#1239D9\",textDecorationThickness:\"2px\",textUnderlineOffset:\"6px\",transition:\"all 0.2s ease\"}};}/* NAV ITEMS */export function homeUnderline(){return createNavOverride(\"/\");}export function voiceAiUnderline(){return createNavOverride(\"/voice-ai-assistant\");}export function featuresUnderline(){return createNavOverride(\"/features\");}export function pricingUnderline(){return createNavOverride(\"/pricing\");}export function integrationUnderline(){return createNavOverride(\"/integration\");}export function bookDemoUnderline(){return createNavOverride(\"/book-a-demo\");}/* NEW DESIGN NAV ITEMS */export function newDesignHomeUnderline(){return createNavOverride(\"/\");}export function newDesignVoiceUnderline(){return createNavOverride(\"/voice-ai-assistant\");}export function newDesignCallAnalysisUnderline(){return createNavOverride(\"/call-analytics\");}export function newDesignFeaturesUnderline(){return createNavOverride(\"/features\");}export function newDesignPricingUnderline(){return createNavOverride(\"/pricing\");}export function newDesignIntegrationUnderline(){return{style:{textDecoration:\"none\"}};}export function newDesignBookDemoUnderline(){return createNavOverride(\"/book-a-demo\");}import{useContext as __legacyOverrideHOC_useContext}from\"react\";import{DataObserverContext as __legacyOverrideHOC_DataObserverContext}from\"framer\";export function withcreateNavOverride(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...createNavOverride(props)});};}withcreateNavOverride.displayName=\"createNavOverride\";export function withhomeUnderline(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...homeUnderline(props)});};}withhomeUnderline.displayName=\"homeUnderline\";export function withvoiceAiUnderline(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...voiceAiUnderline(props)});};}withvoiceAiUnderline.displayName=\"voiceAiUnderline\";export function withfeaturesUnderline(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...featuresUnderline(props)});};}withfeaturesUnderline.displayName=\"featuresUnderline\";export function withpricingUnderline(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...pricingUnderline(props)});};}withpricingUnderline.displayName=\"pricingUnderline\";export function withintegrationUnderline(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...integrationUnderline(props)});};}withintegrationUnderline.displayName=\"integrationUnderline\";export function withbookDemoUnderline(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...bookDemoUnderline(props)});};}withbookDemoUnderline.displayName=\"bookDemoUnderline\";export function withnewDesignHomeUnderline(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...newDesignHomeUnderline(props)});};}withnewDesignHomeUnderline.displayName=\"newDesignHomeUnderline\";export function withnewDesignVoiceUnderline(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...newDesignVoiceUnderline(props)});};}withnewDesignVoiceUnderline.displayName=\"newDesignVoiceUnderline\";export function withnewDesignCallAnalysisUnderline(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...newDesignCallAnalysisUnderline(props)});};}withnewDesignCallAnalysisUnderline.displayName=\"newDesignCallAnalysisUnderline\";export function withnewDesignFeaturesUnderline(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...newDesignFeaturesUnderline(props)});};}withnewDesignFeaturesUnderline.displayName=\"newDesignFeaturesUnderline\";export function withnewDesignPricingUnderline(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...newDesignPricingUnderline(props)});};}withnewDesignPricingUnderline.displayName=\"newDesignPricingUnderline\";export function withnewDesignIntegrationUnderline(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...newDesignIntegrationUnderline(props)});};}withnewDesignIntegrationUnderline.displayName=\"newDesignIntegrationUnderline\";export function withnewDesignBookDemoUnderline(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...newDesignBookDemoUnderline(props)});};}withnewDesignBookDemoUnderline.displayName=\"newDesignBookDemoUnderline\";\nexport const __FramerMetadata__ = {\"exports\":{\"newDesignBookDemoUnderline\":{\"type\":\"override\",\"name\":\"newDesignBookDemoUnderline\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withcreateNavOverride\":{\"type\":\"reactHoc\",\"name\":\"withcreateNavOverride\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withnewDesignHomeUnderline\":{\"type\":\"reactHoc\",\"name\":\"withnewDesignHomeUnderline\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withhomeUnderline\":{\"type\":\"reactHoc\",\"name\":\"withhomeUnderline\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"featuresUnderline\":{\"type\":\"override\",\"name\":\"featuresUnderline\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"newDesignIntegrationUnderline\":{\"type\":\"override\",\"name\":\"newDesignIntegrationUnderline\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"newDesignPricingUnderline\":{\"type\":\"override\",\"name\":\"newDesignPricingUnderline\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withvoiceAiUnderline\":{\"type\":\"reactHoc\",\"name\":\"withvoiceAiUnderline\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withnewDesignVoiceUnderline\":{\"type\":\"reactHoc\",\"name\":\"withnewDesignVoiceUnderline\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withnewDesignBookDemoUnderline\":{\"type\":\"reactHoc\",\"name\":\"withnewDesignBookDemoUnderline\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"bookDemoUnderline\":{\"type\":\"override\",\"name\":\"bookDemoUnderline\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"newDesignVoiceUnderline\":{\"type\":\"override\",\"name\":\"newDesignVoiceUnderline\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withfeaturesUnderline\":{\"type\":\"reactHoc\",\"name\":\"withfeaturesUnderline\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withnewDesignPricingUnderline\":{\"type\":\"reactHoc\",\"name\":\"withnewDesignPricingUnderline\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withnewDesignFeaturesUnderline\":{\"type\":\"reactHoc\",\"name\":\"withnewDesignFeaturesUnderline\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"newDesignCallAnalysisUnderline\":{\"type\":\"override\",\"name\":\"newDesignCallAnalysisUnderline\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withpricingUnderline\":{\"type\":\"reactHoc\",\"name\":\"withpricingUnderline\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"newDesignFeaturesUnderline\":{\"type\":\"override\",\"name\":\"newDesignFeaturesUnderline\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withnewDesignCallAnalysisUnderline\":{\"type\":\"reactHoc\",\"name\":\"withnewDesignCallAnalysisUnderline\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"voiceAiUnderline\":{\"type\":\"override\",\"name\":\"voiceAiUnderline\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"newDesignHomeUnderline\":{\"type\":\"override\",\"name\":\"newDesignHomeUnderline\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withnewDesignIntegrationUnderline\":{\"type\":\"reactHoc\",\"name\":\"withnewDesignIntegrationUnderline\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"pricingUnderline\":{\"type\":\"override\",\"name\":\"pricingUnderline\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withbookDemoUnderline\":{\"type\":\"reactHoc\",\"name\":\"withbookDemoUnderline\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"integrationUnderline\":{\"type\":\"override\",\"name\":\"integrationUnderline\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withintegrationUnderline\":{\"type\":\"reactHoc\",\"name\":\"withintegrationUnderline\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"homeUnderline\":{\"type\":\"override\",\"name\":\"homeUnderline\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./NavActive.map"],"mappings":"A,+LAAmG,SAASgB,GAAc,CAAC,IAAIC,EAAKT,EAAO,SAAS,SAAkH,MAAzGS,GAAKA,EAAK,QAAQ,sBAAsB,EAAE,EAAKA,EAAK,OAAO,GAAGA,EAAK,SAAS,GAAG,IAAGA,EAAKA,EAAK,MAAM,EAAE,EAAE,GAAUA,GAAM,GAAI,CAAY,SAASC,EAAkBC,EAAW,CAAC,GAAK,CAACC,EAAQC,GAAYrB,EAAS,EAAK,EAAO,CAACiB,EAAKK,GAAStB,EAASgB,EAAa,CAAC,EAAEf,MAAc,CAAC,IAAMsB,MAAiBD,EAAQN,EAAa,CAAC,EAAmD,OAAjDR,EAAO,iBAAiB,WAAWe,CAAY,MAAYf,EAAO,oBAAoB,WAAWe,CAAY,CAAE,EAAE,CAAC,CAAC,EAAE,IAAMC,EAASP,IAAOE,EAAW,MAAM,CAAC,cAAc,CAACE,EAAW,EAAI,CAAE,EAAE,cAAc,CAACA,EAAW,EAAK,CAAE,EAAE,MAAM,CAAC,MAAMG,EAAS,UACttBJ,EAAQ,UACR,UAAU,eAAeI,EAAS,YAAY,OAAO,oBAAoB,UAAU,wBAAwB,MAAM,oBAAoB,MAAM,WAAW,eAAe,CAAC,CAAE,CAA+E,SAAgBC,GAAkB,CAAC,OAAOP,EAAkB,qBAAqB,CAAE,CAAC,SAAgBQ,GAAmB,CAAC,OAAOR,EAAkB,WAAW,CAAE,CAAC,SAAgBS,GAAkB,CAAC,OAAOT,EAAkB,UAAU,CAAE,CAAC,SAAgBU,GAAsB,CAAC,OAAOV,EAAkB,cAAc,CAAE,CAAiL,SAAgBW,GAAyB,CAAC,OAAOX,EAAkB,qBAAqB,CAAE,CAAC,SAAgBY,GAAgC,CAAC,OAAOZ,EAAkB,iBAAiB,C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