{"version":3,"file":"FixReload.DGHCbh4L.mjs","names":["__legacyOverrideHOC_DataObserverContext","_jsx"],"sources":["https:/framerusercontent.com/modules/mK1xzB5Lc1GbhtWcTDxk/koR3ITMHtmDWxAzWRxk9/FixReload.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";export function HighlightCurrent(props){return{onClick(event){event.preventDefault();event.stopPropagation();const rawHref=props[\"href\"]||\"\";const cleanedHref=rawHref.replace(/^\\.{1,2}\\//,\"\");const baseDomain=window.location.origin;const currentParams=window.location.search;let finalUrl=\"\";// ✅ Build final URL dynamically\nif(cleanedHref.startsWith(\"project-gallery\")){finalUrl=baseDomain+\"/academy/project-gallery\"+cleanedHref.replace(\"project-gallery\",\"\")+currentParams;}else{finalUrl=baseDomain+\"/academy/project-gallery/\"+cleanedHref+currentParams;}// ✅ Compare full paths\nconst currentFullPath=window.location.pathname+window.location.search;const targetUrl=new URL(finalUrl);const targetPath=targetUrl.pathname+targetUrl.search;// ✅ Same page → scroll to top\nif(currentFullPath===targetPath){window.scrollTo({top:0,behavior:\"smooth\"});return;}// console.log(finalUrl)\nwindow.open(finalUrl,\"_self\");}};}import{useContext as __legacyOverrideHOC_useContext}from\"react\";import{DataObserverContext as __legacyOverrideHOC_DataObserverContext}from\"framer\";export function withHighlightCurrent(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...HighlightCurrent(props)});};}withHighlightCurrent.displayName=\"HighlightCurrent\";\nexport const __FramerMetadata__ = {\"exports\":{\"withHighlightCurrent\":{\"type\":\"reactHoc\",\"name\":\"withHighlightCurrent\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"HighlightCurrent\":{\"type\":\"override\",\"name\":\"HighlightCurrent\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./FixReload.map"],"mappings":"4KAA2C,SAAgB,EAAiB,EAAM,CAAC,MAAM,CAAC,QAAQ,EAAM,CAAC,EAAM,gBAAgB,CAAC,EAAM,iBAAiB,CAAiC,IAAM,GAAxB,EAAM,MAAS,IAA6B,QAAQ,aAAa,GAAG,CAAO,EAAW,EAAO,SAAS,OAAa,EAAc,EAAO,SAAS,OAAW,EAAS,GAC3U,AAA2J,EAAxJ,EAAY,WAAW,kBAAkB,CAAW,EAAW,2BAA2B,EAAY,QAAQ,kBAAkB,GAAG,CAAC,EAA6B,EAAW,4BAA4B,EAAY,EACvN,IAAM,EAAgB,EAAO,SAAS,SAAS,EAAO,SAAS,OAAa,EAAU,IAAI,IAAI,EAAS,CACvG,GAAG,IADsH,EAAU,SAAS,EAAU,OACtH,CAAC,EAAO,SAAS,CAAC,IAAI,EAAE,SAAS,SAAS,CAAC,CAAC,OAC5E,EAAO,KAAK,EAAS,QAAQ,EAAG,CAAqJ,SAAgB,EAAqB,EAAE,CAAC,MAAO,KAAQ,EAA+BA,EAAwC,CAAQC,EAAK,EAAE,CAAC,GAAG,EAAM,GAAG,EAAiB,EAAM,CAAC,CAAC,uBAJ7T,IAIuD,IAAmF,CAAuL,EAAqB,YAAY"}