PageSourceSearch

https://www.smallcase.com/_next/static/chunks/pages/gateway-onboarding/[account]-76d9298bcb42e2d9.js

js smallcase.com collected 2026-10-01 13:52:19 UTC 4,394 bytes, 2 lines download raw bytes

1!function(){try{var e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{},r=(new e.Error).stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="a76bc23a-d8e1-4ea1-8c9a-bd0166cfe2e4",e._sentryDebugIdIdentifier="sentry-dbid-a76bc23a-d8e1-4ea1-8c9a-bd0166cfe2e4")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6756],{2508:(e,r,t)=>{"use strict";t.d(r,{Vp:()=>n.Vp,W5:()=>n.Ay,bv:()=>n.bv,tH:()=>o.A});var n=t(6384),o=t(91958)},2788:(e,r,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/gateway-onboarding/[account]",function(){return t(69908)}])},69908:(e,r,t)=>{"use strict";t.r(r),t.d(r,{default:()=>m});var n=t(37876),o=t(25458),s=t(19802),a=t(1901),i=t(14232),c=t(67274),l=t(59945),d=t(41111),u=t(7791),h=t(117);let p=()=>{let[e,r,t]=(0,h.c)(!0),s=(0,i.useCallback)(e=>{e===c.J.init_sdk&&(t(),(0,u.Y)({isPliftUser:!0}).finally(()=>{r()}))},[t,r]);return(0,i.useEffect)(()=>l.g.subscribe(s),[s]),(0,d.TN)({onFinish:()=>{}}),(0,n.jsx)(o.wv,{when:e,children:(0,n.jsx)(o.DM,{containerStyle:{background:"unset",height:"100vh"}})})},f=e=>{let{accountType:r}=e;if("mutual-funds"===r)return(0,n.jsx)(p,{});throw Error(`Unsupported account type: ${r}`)};var g=t(2508),b=t(52267);class w extends i.Component{static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e,r){(0,b.Cp)(e,{level:b.AI.ERROR,errorInfo:{...r,context:"Gateway onboarding scene failed to render"}})}render(){let{children:e,onReturn:r}=this.props,{hasError:t}=this.state;return t?(0,n.jsx)(o.aF,{open:!0,hideHeader:!0,hideBackdrop:!0,variant:o.wz.modal,onClose:r,className:"GatewayOnboardingErrorBoundary-module__dialog__gWuGe",children:(0,n.jsx)("div",{className:"GatewayOnboardingErrorBoundary-module__content__MSo3o p24 flex-center",children:(0,n.jsx)(g.W5,{title:"Something went wrong",description:"Head back and start again from where you left off.",showRefreshBtn:!0,refreshBtnLabel:"Go back",onRefreshBtnClick:r,variant:g.Vp.COMPACT})})}):e}constructor(...e){super(...e),this.state={hasError:!1}}}var y=t(10110),_=t(67001),v=t(18339);let E=e=>{let{account:r}=e,[t,c]=(0,h.c)(!1),l=()=>{};return!function(){let{onSuccess:e,onError:r,onIdle:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{isAuthCheckComplete:n,sessionExtension:o}=(0,y.GV)(_.m),s=(0,i.useRef)({onSuccess:e,onError:r,onIdle:t});s.current={onSuccess:e,onError:r,onIdle:t};let a=(0,i.useRef)(!1);(0,i.useEffect)(()=>{if(!n||a.current)return;a.current=!0;let{onSuccess:e,onError:r,onIdle:t}=s.current;Promise.resolve().then(()=>{switch(o){case"success":return null==e?void 0:e();case"error":return null==r?void 0:r();default:return null==t?void 0:t()}}).catch(e=>{(0,b.Cp)(e,{level:b.AI.ERROR,errorInfo:{context:"Session extension callback failed"}})})},[n,o])}({onSuccess:()=>c(),onError:()=>l(),onIdle:()=>(0,v.p)({skipBrokerConnect:!0,skipNameInput:!0,skipOnboarding:!0}).then(()=>{c()}).catch(()=>{l()})}),(0,n.jsxs)(a.A,{children:[(0,n.jsx)(s.A,{title:"Onboarding",url:"https://www.smallcase.com/gateway-onboarding",description:"Account Onboarding Page for gateways",keywords:[],noindex:!0}),(0,n.jsx)(o.wv,{when:t,fallback:(0,n.jsx)(o.DM,{containerStyle:{background:"unset",height:"100vh"}}),children:(0,n.jsx)(w,{onReturn:l,children:(0,n.jsx)(f,{accountType:r})})})]})};E.getInitialProps=e=>{let{query:r}=e;return{account:r.account}};let m=E},91958:(e,r,t)=>{"use strict";t.d(r,{A:()=>d});var n=t(37876),o=t(14232),s=t(95062),a=t.n(s),i=t(73952),c=t(52267);class l extends o.Component{constructor(e){super(e),this.state={hasError:!1}}componentDidCatch(e,r){this.setState({hasError:!0}),this.props.onError?this.props.onError(e,r):(0,c.Cp)(e,{errorInfo:r})}render(){let{size:e,showNothing:r}=this.props;return this.state.hasError?r?null:"SMALL"===e?(0,n.jsx)("div",{className:"grid-container mt56",children:(0,n.jsx)(i.Ay,{showRefreshBtn:!0,variant:i.Vp.COMPACT})}):(0,n.jsx)("div",{className:"ErrorBoundary-module__container__f9xH5 grid-container",children:(0,n.jsx)(i.Ay,{showRefreshBtn:!0,variant:i.Vp.DEFAULT})}):this.props.children}}
1l.propTypes={children:a().node.isRequired,size:a().string,showNothing:a().bool,onError:a().func},l.defaultProps={size:"DEFAULT",showNothing:!1,onError:void 0};let d=(0,o.memo)(l)}},e=>{e.O(0,[636,6593,8792],()=>e(e.s=2788)),_N_E=e.O()}]);
2//# sourceMappingURL=[account]-76d9298bcb42e2d9.js.map

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.