PageSourceSearch

https://newaccount.wecu.com/_next/static/chunks/pages/login/sso/consume/[jobId]-7d71b7e43c60e155.js

js wecu.com collected 2026-10-02 06:16:11 UTC 10,256 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[529],{7633:(e,n,t)=>{"use strict";t.d(n,{A:()=>M});var i=t(65437),r=t(12043),o=t(55239),c=t.n(o),a=t(53239),s=t(43331),l=t(85209),u=t(48863),d=t(86739),p=t(48933);function h(){let e=(0,d._)(["\n  0% {\n    background-position: -200px 0;\n  }\n  100% {\n    background-position: calc(200px + 100%) 0;\n  }\n"]);return h=function(){return e},e}let{colors:{grey3:m,grey5:f}}=u.Ay,g=(0,p.keyframes)(h()),y={container:{backgroundColor:m,backgroundImage:"linear-gradient(\n      90deg,\n      ".concat(m,",\n      ").concat(f,",\n      ").concat(m,"\n    )"),backgroundSize:"200px 100%",backgroundRepeat:"no-repeat",borderRadius:4,display:"inline-block",lineHeight:1,width:"100%",animation:"".concat(g," 1.2s ease-in-out infinite")}},E={circle:{borderRadius:"50%",width:32,height:32}},v=e=>{let{count:n=1,width:t,height:r,theme:o}=e;return(0,i.Y)(i.FK,{children:[...Array(n).keys()].map((e,n)=>{let c={};return null!==t&&(c.width=t),null!==r&&(c.height=r),(0,i.Y)("span",{css:[y.container,o&&E[o]],style:c,children:"‌"},n)})})};var x=t(47111),b=t(56142);function S(){let e=(0,d._)(["\n  to {transform: rotate(360deg)}\n"]);return S=function(){return e},e}let T=(0,p.keyframes)(S()),{rawSpeeds:{slow:Y,default:w},easingFunctions:{easeOutQuint:A,easeOutBack:k}}=u.Ay.animations,C="transform ".concat(Y,"ms ").concat(k),_="opacity ".concat(Y,"ms ").concat(A),I={container:{width:24,height:24},loadingIcon:{animation:"".concat(T," 0.7s 0s infinite linear"),transformOrigin:"12px 12.5px"},loadingTransition:{transition:_},loadingTransitionExiting:{opacity:0},completedTransition:{transition:"".concat(_,", ").concat(C),willChange:"transform"},completedTransitionExiting:{opacity:0,transform:"scale(0.1)"}},O=()=>(0,i.Y)("div",{css:I.loadingIcon,children:(0,i.Y)(b.A,{name:"spinner"})}),D=e=>{let{isLoading:n,index:t}=e;return(0,i.Y)(x.A,{children:(0,i.Y)(l.Ay,{timeout:{appear:Y,enter:Y,exit:w},appear:!0,onEnter:e=>e.offsetHeight,children:e=>(0,i.Y)("div",{css:[I.container,n?I.loadingTransition:I.completedTransition,("exited"===e||"exiting"===e)&&(n?I.loadingTransitionExiting:I.completedTransitionExiting)],children:n?(0,i.Y)(O,{}):(0,i.Y)(b.A,{name:"circle-check"})})},t)})},{rawSpeeds:{xSlow:F},easingFunctions:{easeOutQuint:R}}=u.Ay.animations,P={container:{position:"relative"},step:{height:24,display:"flex",marginBottom:21},stepTransition:{transition:"opacity ".concat(F,"ms ").concat(R),willChange:"opacity"},stepTransitionExiting:{opacity:0},icon:{width:24,height:24,marginRight:6,display:"flex",alignItems:"center",justifyContent:"center"},placeholderTransition:{transition:"opacity ".concat(F,"ms ").concat(R),opacity:1,willChange:"opacity, transform"},placeholderTransitionExiting:{transition:"opacity ".concat(F,"ms ").concat(R,", transform ").concat(F,"ms ").concat(R),position:"absolute",top:0,left:0,height:"100%",width:"100%",transform:"scaleY(0.5)",opacity:0},content:{flexGrow:1,position:"relative"},contentSkeleton:{width:"100%",position:"absolute"},hiddenContent:{visibility:"hidden"}},L=e=>{let{icon:n,children:t}=e;return(0,i.FD)("div",{css:[P.step],children:[(0,i.Y)("div",{css:[P.icon],children:n}),(0,i.Y)("div",{css:P.content,children:t})]})},J=e=>{let{isActive:n,isCurrent:t,timeout:o,waitForCompletion:c,index:s,children:u,isLoading:d}=e,[p,h]=(0,r.i)({prop:d,defaultProp:!1});(0,a.useEffect)(()=>{let e;return t&&(h(!0),e=setTimeout(()=>{h(!1)},Math.max(o-F,0))),()=>clearTimeout(e)},[t]);let m={timeout:F,mountOnEnter:!0,unmountOnExit:!0,appear:!0},f=p||!!(n&&c);return(0,i.FD)("div",{css:P.container,children:[(0,i.Y)(l.Ay,{...m,in:n,children:e=>(0,i.Y)("div",{css:[P.stepTransition,("exiting"===e||"exited"===e)&&P.stepTransitionExiting],children:(0,i.Y)(L,{icon:(0,i.Y)(D,{isLoading:f,index:s}),children:u})})}),(0,i.Y)(l.Ay,{...m,in:!n,children:e=>(0,i.Y)("div",{css:[P.placeholderTransition,("exiting"===e||"exited"===e)&&P.placeholderTransitionExiting],children:(0,i.FD)(L,{icon:(0,i.Y)(v,{width:15,height:15}),children:[(0,i.Y)("div",{css:P.contentSkeleton,children:(0,i.Y)(v,{})}),(0,i.Y)("div",{css:P.hiddenContent,children:u})]})})})]})},M=e=>{let{steps:n=[],stepTimer:t=2e3,isComplete:o=!1,onComplete:l,showFollowup:u,currentStep:d,currentStepIsLoading:p}=e,[h,m]=(0,r.i)({prop:d,defaultProp:0}),f=!c()(d)||!c()(p),g=(0,a.useMemo)(()=>!!f||o,[f,o]),y=(0,a.useMemo)(()=>n.map(()=>(e=>{let n=.6*e;return Math.random()*(1.4*e-n)+n})(t)),[n,t]);return(0,a.useEffect)(()=>{let e=h<n.length?setTimeout(()=>m(h+1),y[h]):null;return()=>{e&&clearTimeout(e)}},[h]),(0,a.useEffect)(()=>{h>=n.length&&g&&(setTimeout(()=>{u&&u(!0)},500),setTimeout(()=>null==l?void 0:l(),u?5e3:500))},[h,g]),(0,i.Y)("div",{...(0,s.F)({isPrivate:!1}),children:n.map((e,t)=>{let r=t===h;return(0,i.Y)(J,{index:t,isActive:t<=h,isCurrent:r,timeout:y[t],waitForCompletion:t===n.length-1&&!g,
1isLoading:void 0===p?void 0:r&&p,children:e},t)})})}},12043:(e,n,t)=>{"use strict";t.d(n,{i:()=>a});var i=t(53239),r=t.t(i,2),o=globalThis?.document?i.useLayoutEffect:()=>{},c=r[" useInsertionEffect ".trim().toString()]||o;function a({prop:e,defaultProp:n,onChange:t=()=>{},caller:r}){let[o,a,s]=function({defaultProp:e,onChange:n}){let[t,r]=i.useState(e),o=i.useRef(t),a=i.useRef(n);return c(()=>{a.current=n},[n]),i.useEffect(()=>{o.current!==t&&(a.current?.(t),o.current=t)},[t,o]),[t,r,a]}({defaultProp:n,onChange:t}),l=void 0!==e,u=l?e:o;{let n=i.useRef(void 0!==e);i.useEffect(()=>{let e=n.current;if(e!==l){let n=l?"controlled":"uncontrolled";console.warn(`${r} is changing from ${e?"controlled":"uncontrolled"} to ${n}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}n.current=l},[l,r])}return[u,i.useCallback(n=>{if(l){let t="function"==typeof n?n(e):n;t!==e&&s.current?.(t)}else a(n)},[l,e,a,s])]}Symbol("RADIX:SYNC_STATE")},47111:(e,n,t)=>{"use strict";t.d(n,{A:()=>m});var i,r,o=t(43697),c=t(53239),a=t(85209),s=t(30441),l={out:"out-in",in:"in-out"},u=function(e,n,t){return function(){var i;e.props[n]&&(i=e.props)[n].apply(i,arguments),t()}},d=((i={})[l.out]=function(e){var n=e.current,t=e.changeState;return c.cloneElement(n,{in:!1,onExited:u(n,"onExited",function(){t(a.ns,null)})})},i[l.in]=function(e){var n=e.current,t=e.changeState,i=e.children;return[n,c.cloneElement(i,{in:!0,onEntered:u(i,"onEntered",function(){t(a.ns)})})]},i),p=((r={})[l.out]=function(e){var n=e.children,t=e.changeState;return c.cloneElement(n,{in:!0,onEntered:u(n,"onEntered",function(){t(a._K,c.cloneElement(n,{in:!0}))})})},r[l.in]=function(e){var n=e.current,t=e.children,i=e.changeState;return[c.cloneElement(n,{in:!1,onExited:u(n,"onExited",function(){i(a._K,c.cloneElement(t,{in:!0}))})}),c.cloneElement(t,{in:!0})]},r),h=function(e){function n(){for(var n,t=arguments.length,i=Array(t),r=0;r<t;r++)i[r]=arguments[r];return(n=e.call.apply(e,[this].concat(i))||this).state={status:a._K,current:null},n.appeared=!1,n.changeState=function(e,t){void 0===t&&(t=n.state.current),n.setState({status:e,current:t})},n}(0,o.A)(n,e);var t=n.prototype;return t.componentDidMount=function(){this.appeared=!0},n.getDerivedStateFromProps=function(e,n){var t,i;return null==e.children?{current:null}:n.status===a.ns&&e.mode===l.in?{status:a.ns}:n.current&&!((t=n.current)===(i=e.children)||c.isValidElement(t)&&c.isValidElement(i)&&null!=t.key&&t.key===i.key)&&1?{status:a.ze}:{current:c.cloneElement(e.children,{in:!0})}},t.render=function(){var e,n=this.props,t=n.children,i=n.mode,r=this.state,o=r.status,l=r.current,u={children:t,current:l,changeState:this.changeState,status:o};switch(o){case a.ns:e=p[i](u);break;case a.ze:e=d[i](u);break;case a._K:e=l}return c.createElement(s.A.Provider,{value:{isMounting:!this.appeared}},e)},n}(c.Component);h.propTypes={},h.defaultProps={mode:l.out};let m=h},55239:e=>{"use strict";e.exports=function(e){return null==e}},57138:(e,n,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/login/sso/consume/[jobId]",function(){return t(76964)}])},76964:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>T});var i=t(65437),r=t(5489),o=t(86739),c=t(38595),a=t(49542),s=t(39102),l=t(29124),u=t(90726),d=t(7633),p=t(43331);let h={container:{display:"flex",flexDirection:"column",alignItems:"center"},heading:{textAlign:"center",marginBottom:34}},m=e=>{let{isComplete:n,onComplete:t}=e;return(0,i.FD)("div",{css:h.container,style:{transition:"opacity ".concat(600,"ms ease-in-out"),opacity:1},children:[(0,i.FD)("div",{css:h.heading,...(0,p.F)({isPrivate:!1}),children:[(0,i.Y)(u.A.H1,{theme:"large",children:"We're Redirecting You to Account Opening"}),(0,i.Y)(u.A.H2,{theme:"small",children:"Please note, this process may take up to 60 seconds to complete."})]}),(0,i.Y)(d.A,{steps:["Connecting","Authenticating","Syncing Information","Moving to Account Opening"],stepTimer:3e3,isComplete:n,onComplete:t})]})};var f=t(38338),g=t.n(f),y=t(53239);function E(){let e=(0,o._)(["\n  query ssoJob($jobId: ID!) {\n    ssoJob(jobId: $jobId) {\n      authCompletedAt\n      coreSyncCompletedAt\n      redirectUrl\n      error\n    }\n  }\n"]);return E=function(){return e},e}let{publicRuntimeConfig:{MANTL_ENV:v}}=g()(),x=["production","demo"].includes(v),b=(0,c.J1)(E()),S=e=>{var n;let{jobId:t}=e,o=(0,r.useRouter)(),{data:c,error:u,stopPolling:d}=(0,a.I)(b,{variables:{jobId:t},pollInterval:1e3,skip:!t}),{redirectUrl:p,error:h}=null!=(n=null==c?void 0:c.ssoJob)?n:{},[f,g]=(0,y.useState)(!1),{triggerMessage:E}=(0,l.d)();return(0,y.useEffect)(()=>{u&&s.L.addError(Error("Query errored for SSO Job",{cause:u}),{jobId:t})},[u]),(0,y.useEffect)(()=>{p&&(d(),g(!0))},[p]),(0,y.useEffect)(()=>{h&&(d(),s.L.addError(Error("Inbound SSO Job failed: ".concat(h)),{jobId:t}),x?o.push("/products"):E("SSO Error [Testing Display Only]: ".concat(h),{theme:"error"}))},[h]),(0,y.useEffect)(()=>{let e=setTimeout(()=>{s.L.addError("Timed out of inbound SSO loading. SSO Job: ".concat(t)),g(!0)},6e4);return()=>clearTimeout(e)},[]),(0,i.Y)(m,{isComplete:f,onComplete:()=>{if(p){window.location.href=p;return}o.push("/products")}})},T=()=>{let{jobId:e}=(0,r.useRouter)().query;return(0,i.Y)(S,{jobId:"string"==typeof e?e:""})}}},e=>{e.O(0,[593,636,792],()=>e(e.s=57138)),_N_E=e.O()}]);

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.