"use strict";(globalThis.webpackChunk_clerk_ui=globalThis.webpackChunk_clerk_ui||[]).push([["723"],{81616:function(e,t,n){n.d(t,{O_:()=>g,gX:()=>k,lL:()=>S,lY:()=>c,pq:()=>f,qx:()=>s,u3:()=>d,z1:()=>a}),n(98114),n(22501);var r=n(5580),l=n(91806),o=n(35074),u=n(4964),i=n(54132);let s=(0,o.createContext)(null),a=()=>{let e=(0,o.useContext)(s),{navigate:t,basePath:n,startPath:a}=(0,u.r)(),c=(0,l.ho)();if(null===e)throw Error("Clerk: useSessionTasksContext called outside of the mounted SessionTasks component.");let d=async e=>{var l;let{session:o,redirectUrlComplete:u,decorateUrl:s}=e,d=o.currentTask;if(!d){let e=s(u);if(e!==u&&/^https?:\/\//.test(e)){window.location.href=e;return}return t(u)}let f=null==(l=c.__internal_getOption("taskUrls"))?void 0:l[d.key];if(f)return t(f);let g=(0,r.ru)(d);if(n===i.I)return t("/".concat(n+a+g));let k=c.buildSignInUrl();return t((0,r.tv)(d,{base:k}))};return{...e,navigateOnSetActive:d}},c=(0,o.createContext)(null),d=()=>{let e=(0,o.useContext)(c);if(null===e)throw Error("Clerk: useTaskChooseOrganizationContext called outside of the mounted TaskChooseOrganization component.");return e},f=(0,o.createContext)(null),g=()=>{let e=(0,o.useContext)(f);if(null===e)throw Error("Clerk: useTaskResetPasswordContext called outside of the mounted TaskResetPassword component.");return e},k=(0,o.createContext)(null),S=()=>{let e=(0,o.useContext)(k);if(null===e)throw Error("Clerk: useTaskSetupMFAContext called outside of the mounted TaskSetupMFA component.");return e}},49599:function(e,t,n){n.d(t,{g:()=>o});var r=n(91806),l=n(4964);let o=()=>{let{navigate:e}=(0,l.r)(),t=(0,r.ho)();return{navigateAfterSignOut:()=>e(t.buildAfterSignOutUrl()),navigateAfterMultiSessionSingleSignOutUrl:()=>e(t.buildAfterMultiSessionSingleSignOutUrl()),afterSignOutUrl:t.buildAfterSignOutUrl(),afterMultiSessionSingleSignOutUrl:t.buildAfterMultiSessionSingleSignOutUrl()}}}}]);