"use strict";(globalThis.webpackChunk_clerk_ui=globalThis.webpackChunk_clerk_ui||[]).push([["723"],{1616:function(e,t,n){n.d(t,{O_:()=>g,gX:()=>k,lL:()=>S,lY:()=>f,pq:()=>d,qx:()=>s,u3:()=>c,z1:()=>a});var r=n(5580),l=n(8628),o=n(5074),u=n(4964),i=n(4132);let s=(0,o.createContext)(null),a=()=>{let e=(0,o.useContext)(s),{navigate:t,basePath:n,startPath:a}=(0,u.r)(),f=(0,l.ho)();if(null===e)throw Error("Clerk: useSessionTasksContext called outside of the mounted SessionTasks component.");let c=async({session:e,redirectUrlComplete:l,decorateUrl:o})=>{let u=e.currentTask;if(!u){let e=o(l);if(e!==l&&/^https?:\/\//.test(e)){window.location.href=e;return}return t(l)}let s=f.__internal_getOption("taskUrls")?.[u.key];if(s)return t(s);let c=(0,r.ru)(u);if(n===i.I)return t(`/${n+a+c}`);let d=f.buildSignInUrl();return t((0,r.tv)(u,{base:d}))};return{...e,navigateOnSetActive:c}},f=(0,o.createContext)(null),c=()=>{let e=(0,o.useContext)(f);if(null===e)throw Error("Clerk: useTaskChooseOrganizationContext called outside of the mounted TaskChooseOrganization component.");return e},d=(0,o.createContext)(null),g=()=>{let e=(0,o.useContext)(d);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}},9599:function(e,t,n){n.d(t,{g:()=>o});var r=n(8628),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()}}}}]);