{"version":3,"file":"NavActive.DYHickyK.mjs","names":["useState","__legacyOverrideHOC_DataObserverContext","_jsx"],"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":"+LAAmG,SAAS,GAAc,CAAC,IAAI,EAAK,EAAO,SAAS,SAAkH,MAAzG,GAAK,EAAK,QAAQ,sBAAsB,EAAE,EAAK,EAAK,OAAO,GAAG,EAAK,SAAS,GAAG,IAAG,EAAK,EAAK,MAAM,EAAE,EAAE,GAAU,GAAM,GAAI,CAAY,SAAS,EAAkB,EAAW,CAAC,GAAK,CAAC,EAAQ,GAAYA,EAAS,EAAK,EAAO,CAAC,EAAK,GAASA,EAAS,EAAa,CA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