PageSourceSearch

https://www.geteverwise.com/milos-chunk-1266-1266.7f916bb75fea3d24.js

js geteverwise.com collected 2026-09-24 18:14:05 UTC 4,697 bytes, 1 lines download raw bytes

1"use strict";(globalThis.webpackChunkspas=globalThis.webpackChunkspas||[]).push([[1266],{41540(e,t,n){n.r(t),n.d(t,{default:()=>Y});var i=n(96540),a=n(55015),o=n.n(a),r=n(41479),s=n(10086),c=n(17988),l=n(53506),u=n(69602),g=n(17905),d=n(21498),h=n(56987),m=n(62684),_=n(44150),p=n(84291),f=n(10343),w=n(38117),v=n(42211),b=n(92254),A=n(96341),P=n(96780);const k=n.p+"images/common/components/Branding/logo_new.c8c397b71ad883bc.png",y=n.p+"images/common/components/Branding/logo_new_secondary.ffd9e39f03b4affb.png";var E=n(20549),T=n(6457),C=n(23829),F=n(50403);const x={maxWidth:P.V1.lg.width+20},V={display:"flex",justifyContent:"center",alignItems:"center"},S=["sign_in","custom_challenge","sign_up","link_up","confirm_sign_up","accept_invitation","recover_password","reset_verification","magic_link","set_password","auth_identity"],W={account_deactivation:["info","Your account has been deactivated"],session_timeout:["info","Your session has timed out. Please log in again to continue on to the site"],sign_in_required:["info","Please log in to access this page"],password_set:["info","Your password has been set. Please log in"],try_again:["danger","Something went wrong. Please try again"],duplicate_session:["info","You had a duplicate session. You have been logged out, please log in again"]},Y=()=>{var e;const[t,n]=i.useState(!1),a=(0,d.xo)(),P=(0,s.wA)(),Y=(0,s.d4)(u.HW),L=(0,r.W6)(),N=(0,r.zy)(),R=(0,g.um)(N),q=(0,r.W5)().params.auth_method,$=R.invitation_token,I=R.email_verification_token,z=(0,c.useMediaQuery)({maxWidth:h.en}),B=(e=>e&&S.includes(e)?e:null)(q),H=R.email||(null==a||null===(e=a.tokenStore)||void 0===e?void 0:e.emailHint)||"";let j=(0,m.c)(R.role_id);const G=(0,F.iT)("new_torch_logo"),M=(0,F.iT)("auth_verbose_logging"),O=(0,F.iT)("torchui_auth_flows");i.useEffect(()=>{if(Y)return;if(!a.canLoginFromReact())return;const{message_key:e}=R;if(e){L.replace((0,g.YX)({message_key:void 0},N));const t=W[e];t&&P((0,l.Iw)(...t))}},[a,Y,P,L,N,R]);const Q=i.useCallback(e=>{M&&console.info("<AuthPage> Triggering handleOnChangeView",{changedView:e,location:N.toString()}),L.push({...N,pathname:`/users/${e}`})},[M,L,N]),U=R.target_path,X=i.useCallback(e=>{t||(n(!0),(0,p.d)(e)||(0,w.qv)(e)?(M&&console.info("<AuthPage> redirectToTargetPath(): triggering external redirect",{targetPath:e}),window.location.replace(e)):(M&&console.info("<AuthPage> redirectToTargetPath(): triggering internal redirect",{targetPath:e}),L.replace(e)))},[M,L,t,n]),D=i.useCallback(e=>{const t=(0,f.WG)(e,U,"true"===(R.force||"").toLowerCase());v.A.debug(`Authentication successful, requesting redirect to ${t}`),M&&console.info("<AuthPage> handleAuthenticate(): triggering redirect",{targetPath:t}),X(t)},[M,U,R,X]);if(i.useEffect(()=>{Y&&"set_password"!==B&&U&&(v.A.debug(`Found authenticated user for ${B||"unknown"} view, requesting redirect to ${U}`),M&&console.info("<AuthPage> handleAuthenticate(): triggering redirect because current user is set and we are not on the set_password view",{targetPath:U}),X(U))},[M,Y,B,U,X]),"accept_invitation"===B&&!$&&!t)return M&&console.info("<AuthPage> redirecting to url because authFormView is accept_invitation and invitationToken is not set and isRedirecting is false",{url:U}),i.createElement(r.rd,{to:U||"/"});if("sign_up"===B&&$&&(M&&console.info("<AuthPage> redirecting to accept_invitation because authFormView is sign_up and invitationToken is set",{url:U}),Q("accept_invitation")),!B){if(!H)return M&&console.info("<AuthPage> redirecting to auth_identity because authFormView is not set and initialEmail is not set",{location:N.toString()}),i.createElement(r.rd,{to:{...N,pathname:"/users/auth_identity"}});M&&console.info("<AuthPage> redirecting to sign_in because authFormView is not set and initialEmail is set",{location:N.toString()});const e=O?"/v2/auth/login":"/users/sign_in";return i.createElement(r.rd,{to:{...N,pathname:e}})}return a.canLoginFromReact()||R.milos_auth?(j||"sign_up"!==B||(j="default"),t?(M&&console.info("<AuthPage> isRedirecting is true, returning null"),null):i.createElement(i.Fragment,null,i.createElement(T.El,{
1Component:o(),className:"AuthPage",style:x,py:70},i.createElement(T.El,{centerText:!0,style:V},i.createElement(C.Ay,{className:"default_logo",logo:G?k:A.FN.logo,whiteLogo:G?y:A.FN.logo_secondary,label:A.FN.label,size:"md",white:!0})),i.createElement(T.El,{backgroundColor:"white",borderRadius:"lg",mx:z?0:25,mt:45,px:z?40:80,py:z?20:30},i.createElement(b.A,{view:B,onChangeView:Q,centerText:!0,invitationToken:$,emailVerificationToken:I,roleId:j,onAuthenticate:D,targetPath:U,initialEmail:H,currentUser:Y}))),i.createElement(E.A,null))):(_.A.redirectToLogin({auth_method:q,role_id:j}),null)}}}]);

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.