PageSourceSearch

https://app.gallabox.com/assets/Home-C7ZYhY3O.js

js gallabox.com collected 2026-09-24 12:02:31 UTC 2,977 bytes, 1 lines download raw bytes

1import{importShared as r}from"./__federation_fn_import-wplON-6D.js";import{j as d}from"./iconBase-hw0CKlfC.js";import{u as k}from"./index-C2xEgYuP.js";import{L as E}from"./__federation_expose_Wa-templatesTemplateMessageDrawer-DC39OHNs.js";import{u as C}from"./account-CbrW8Wne.js";import{u as S}from"./useLocalStorage-BeyPxPML.js";import{updateOnboardingState as O}from"./__federation_expose_StoreAuthedReducerFunctions-BVEMgrFR.js";import{J as L,u as R}from"./__federation_expose_UtilsCommonUtils-B1mvlWkB.js";import{u as _}from"./history-BBlzUKQG.js";import{T}from"./TwoFANudge-fgZkiCRr.js";const{Grid:x}=await r("@chakra-ui/react"),{useEffect:f,useRef:y}=await r("react"),{useDispatch:v}=await r("react-redux"),{useHistory:F}=await r("react-router"),q=()=>{const{_:b}=k(),e=F(),a=L(),h=v(),o=_(),g=!o?.get("twoFANudge")||o?.get("twoFANudge")==="true",[A]=S(T,!0,{}),{isTwoFactorEnabled:N}=R(),n=!N&&A&&g,t=e.location.state?.from?.pathname,c=y(t??null),i=a?.type==="partner"&&!a.managedBy,u=a?.id,{mutateAsync:w}=C({accountId:u,onError:()=>{e.push(c.current??"/conversations")}});return f(()=>{!t||t==="/"||t==="/home"?c.current=null:c.current=t},[t]),f(()=>{(async()=>{try{const s=await w(),{webPage:l,onboarding:p}=s,m=c.current??(i?"/sub-accounts/dashboard":"/getting-started");switch(p&&h(O(u,p)),l){case"ACTIVATE_TRIAL":{e.push("/sub-account-onboarding");break}case"connect-to-instagram":e.replace("/channels/instagram/create/onboarding");break;case"ACCOUNT_BASIC_INFO":e.replace("/account-basic-info");break;case"ig-account-basic-info":e.replace("/ig/account-basic-info");break;case"about-business":case"customize-home":case"whatsapp-connection-method":case"ask-previous-provider":case"connect-api":e.replace(`/account-basic-info?step=${l}`);break;case"connect-channel":e.replace("/channels/whatsapp/list");break;case"free-trial-plan":e.replace("/pick-free-trial-plan");break;case"SELECT_CHANNEL":e.replace("/channel-onboarding");break;case"CONVERSATION":case"completed":if(n&&!a?.samlConfig){e.replace("/enable-two-fa");return}e.replace(m);break;case"CHANNEL_ONBOARDING":if(n&&!a?.samlConfig){e.replace("/enable-two-fa");return}e.replace("/channel-onboarding");break;case"UPGRADE":a?.onboardingState==="trial"?e.replace("/account-suspended"):i?e.replace("/sub-accounts/dashboard"):e.replace("/getting-started");break;case"ACCOUNT_DISABLED":e.replace("/account-disconnect");break;case"CONNECT_OWN_NUMBER":e.replace("/channels/whatsapp/list");break;default:e.replace(m);break}}catch(s){console.log("home::redirection::error",JSON.stringify(s))}})()},[]),d.jsxDEV(x,{placeItems:"center",bg:"white",h:"100vh",w:"full",maxW:"full",children:d.jsxDEV(E,{title:b({id:"Z3FXyt",message:"Loading..."}),spinnerSize:30},void 0,!1,{fileName:"/vercel/path0/packages/web/src/app/screens/Auth/Home.tsx",lineNumber:148,columnNumber:13},void 0)},void 0,!1,{fileName:"/vercel/path0/packages/web/src/app/screens/Auth/Home.tsx",lineNumber:147,columnNumber:5},void 0)};export{q as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.