1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[222],{8838:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>R});var i=n(56455),a=n(53239),l=n(11172),c=n(43644),r=n(93832),p=n(91353),o=n(49514),s=n(71054),d=n(78923),u=n(37856),h=n(48333);let m=[{key:"incomplete",label:"Incomplete",reviewStatus:"incomplete"},{key:"actionRequired",label:"Action Required",reviewStatus:"actionRequired"},{key:"manualReviewRequired",label:"Manual Review Required",reviewStatus:"manualReviewRequired"},{key:"submitted",label:"Submitted",reviewStatus:"submitted"},{key:"approved",label:"Approved",reviewStatus:"approved"},{key:"rejected",label:"Rejected",reviewStatus:"rejected"}],v={key:"unknown",label:"Unknown"},A=[...m,v],g=new Map(m.map(e=>[e.reviewStatus,e.key])),w=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=e.reduce((e,t)=>{var n,i;let a=null!=(n=g.get(t.reviewStatus))?n:v.key,l=null!=(i=e.get(a))?i:[];return l.push(t),e.set(a,l)},new Map);return A.map(e=>{var n;return{key:e.key,label:e.label,applications:null!=(n=t.get(e.key))?n:[]}}).filter(e=>e.applications.length>0)};var y=n(83531);let S={sectionHeading:{display:"flex",alignItems:"center",gap:4,marginBottom:16},sectionLabel:e=>{let{fontScales:t}=e;return{...t.default,fontWeight:"bold"}},section:{marginBottom:16},emptyState:{textAlign:"center"},emptyStateIllustration:{width:130,height:130,margin:"0 auto 36px"},emptyStateText:{marginBottom:36}},b=e=>{let{applications:t=[],onSelectApplication:n,onCancelApplication:m,onStartApplication:v}=e,{mantlProducts:{accountOpening:{selfServeBusiness:{enabled:A},selfServeConsumer:{enabled:g}}}}=(0,p.t)(),{isWrappedByAlkami:b}=(0,o.Pk)(),[k,Y]=(0,a.useState)(),f=w(t),C=(g||A)&&!b;return f.length?(0,i.Y)(d.A,{children:(0,i.FD)(s.A,{heading:{heading:"Applications"},children:[f.map(e=>(0,i.FD)("div",{css:S.section,children:[(0,i.FD)("div",{css:S.sectionHeading,children:[(0,i.Y)("span",{css:S.sectionLabel,children:e.label}),(0,i.Y)(r.A,{theme:"info",children:e.applications.length})]}),(0,i.Y)(u.A,{applications:e.applications,onSelectApplication:n,onClickCancelApplication:Y,theme:"page"})]},e.key)),(0,i.Y)(h.A,{applicationToCancel:k,setApplicationToCancel:Y,onCancelApplication:m}),C&&(0,i.Y)(y.A,{onStartApplication:v})]})}):(0,i.Y)(d.A,{children:(0,i.Y)(s.A,{centerContent:!0,children:(0,i.FD)("div",{css:S.emptyState,children:[(0,i.Y)("div",{css:S.emptyStateIllustration,children:(0,i.Y)(c.A,{name:"illustration-success",size:"fill"})}),(0,i.Y)("div",{css:S.emptyStateText,children:(0,i.Y)(l.A,{heading:"You have no in-progress applications",subheading:"In-progress application can be found here",theme:"small",isCentered:!0})}),C&&(0,i.Y)(y.A,{theme:"primary",text:"Apply for a New Account",onStartApplication:v})]})})})};var k=n(5945),Y=n(78498),f=n(96536),C=n.n(f),_=n(14350);let R=()=>{let{hydratedApplications:e,isLoading:t,called:n}=(0,Y.i)({excludeCanceled:!0,excludeApproved:!0}),{goToApplication:a,cancelApplication:l,startApplication:c}=(0,k.$)(e);return t||!n?(0,i.Y)(_.A,{}):(0,i.FD)(i.FK,{children:[(0,i.Y)(C(),{children:(0,i.Y)("title",{children:"Applications"})}),(0,i.Y)(b,{applications:e,onSelectApplication:a,onCancelApplication:l,onStartApplication:c})]})}},23097:(e,t,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/my-applications",function(){return n(8838)}])}},e=>{e.O(0,[328,570,115,338,263,593,636,792],()=>e(e.s=23097)),_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.