{"version":3,"file":"Navigate.Bp-e2Ihm.mjs","names":[],"sources":["https:/framerusercontent.com/modules/iOIsIpJ2XfU3OIxG7YtW/f5Ztb6KpkrVcHFMxFdL4/Navigate.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{forwardRef}from\"react\";import{getConfig}from\"https://framerusercontent.com/modules/at8yitFAR9QPO5xO7Kvc/hJfNaImn7OSGTsWyUpJa/Config.js\";const studioPage=[\"ai-studio\",\"ai-avatar\"];export function withNavigate(Component){return /*#__PURE__*/forwardRef((props,ref)=>{return /*#__PURE__*/_jsx(Component,{ref:ref,...props,onClick:()=>{const searchParams=new URLSearchParams(location.search);const path=window.location.pathname?.split(\"/\")[2]??\"\";const isStudioPage=studioPage.includes(path);if(isStudioPage){window.location.href=\"/kr/enterprise-ai-studio\";return;}window.open(`${getConfig().workspaceURL}/login?callbackUrl=https://perso.ai/workspace/vt?${searchParams.toString()}`,\"_blank\");}});});}\nexport const __FramerMetadata__ = {\"exports\":{\"withNavigate\":{\"type\":\"reactHoc\",\"name\":\"withNavigate\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Navigate.map"],"mappings":"mLAAqO,SAAgB,EAAa,EAAU,CAAC,OAAoB,GAAY,EAAM,IAA2B,EAAK,EAAU,CAAK,MAAI,GAAG,EAAM,YAAY,CAAC,IAAM,EAAa,IAAI,gBAAgB,SAAS,OAAO,CAAO,EAAK,EAAO,SAAS,UAAU,MAAM,IAAI,CAAC,IAAI,GAAgD,GAA1B,EAAW,SAAS,EAAK,CAAiB,CAAC,EAAO,SAAS,KAAK,2BAA2B,OAAQ,EAAO,KAAK,GAAG,GAAW,CAAC,aAAa,mDAAmD,EAAa,UAAU,GAAG,SAAS,EAAG,CAAC,CAAG,wBAA3rB,IAA8B,IAAiH,CAAM,EAAW,CAAC,YAAY,YAAY"}