1(self.webpackChunkwebapp=self.webpackChunkwebapp||[]).push([[1469,57535,79916],{79916(Z,R,l){l.d(R,{f:()=>$});var r=l(29604),h=l(68366),d=l(51908),O=l(83614),o=l(11371),k=l(52607),e=l(71545),P=l(99886),B=l(54235),D=l(41020),C=l(84184),S=l(20943),y=l(12652),I=l(36988),U=l(26904),G=l(53635),v=l(20468),x=l(58554),u=l(99063),T=l(44238);let $=(()=>{class V{static{this.\u0275fac=function(J){return new(J||V)}}static{this.\u0275mod=T.\u0275\u0275defineNgModule({type:V})}static{this.\u0275inj=T.\u0275\u0275defineInjector({imports:[r.CommonModule,h.aP,d.t,I.LayoutsModule,O.j,o.o,k.D,e.h,P.ReactiveFormsModule,D.M,C.K,S._L,y.MatIconModule,U.L,G.k,v.Z,x.x,B.N,u.MW]})}}return V})()},57379(Z,R,l){l.d(R,{s:()=>jo});var r=l(88830),h=l(15580),d=l(65933),O=l(63880),o=l(44238),k=l(81395),e=l(44128),P=l(81380),B=l(41134),D=l(33928),C=l(99886),S=l(24449),y=l(38003),I=function(c){return c.onlyDirector="onlyDirector",c.UnsupportedDirector="unsupportedDirector",c.singleDirector="singleDirector",c.UnsupportedJointDirectors="unsupportedJointDirectors",c}(I||{}),U=l(68750),G=l(90045),v=l(14213),x=l(58304),u=l(68366),T=l(97024),$=l(82490),V=l(27245),X=l(16346);function F(c,M){if(1&c){const t=o.\u0275\u0275getCurrentView();o.\u0275\u0275elementStart(0,"div",12),o.\u0275\u0275element(1,"img",13),o.\u0275\u0275elementStart(2,"h3"),o.\u0275\u0275i18n(3,0),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(4,"p",14),o.\u0275\u0275i18n(5,1),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(6,"form",15)(7,"mat-checkbox",16)(8,"p",14),o.\u0275\u0275i18nStart(9,2),o.\u0275\u0275elementStart(10,"a",17),o.\u0275\u0275listener("click",function(i){o.\u0275\u0275restoreView(t);const w=o.\u0275\u0275nextContext();return o.\u0275\u0275resetView(w.showSoleUboDialog(i))}),o.\u0275\u0275elementEnd(),o.\u0275\u0275i18nEnd(),o.\u0275\u0275elementEnd()(),o.\u0275\u0275controlCreate(),o.\u0275\u0275elementStart(11,"p",18),o.\u0275\u0275i18n(12,3),o.\u0275\u0275elementEnd()(),o.\u0275\u0275elementStart(13,"footer")(14,"button",19),o.\u0275\u0275listener("click",function(){o.\u0275\u0275restoreView(t);const i=o.\u0275\u0275nextContext();return o.\u0275\u0275resetView(i.gotoStep(i.uboSteps.UnsupportedDirector))}),o.\u0275\u0275i18n(15,4),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(16,"button",20),o.\u0275\u0275listener("click",function(){o.\u0275\u0275restoreView(t);const i=o.\u0275\u0275nextContext();return o.\u0275\u0275resetView(i.updateApplication())}),o.\u0275\u0275i18n(17,5),o.\u0275\u0275elementEnd()()()}if(2&c){const t=o.\u0275\u0275nextContext();o.\u0275\u0275advance(),o.\u0275\u0275property("src",t.illustrations.Feedback.Contextual.DocumentDetails,o.\u0275\u0275sanitizeUrl),o.\u0275\u0275advance(2),o.\u0275\u0275i18nExp(t.ubo.firstName)(t.ubo.lastName),o.\u0275\u0275i18nApply(3),o.\u0275\u0275advance(3),o.\u0275\u0275property("formGroup",t.formGroup),o.\u0275\u0275advance(),o.\u0275\u0275control(),o.\u0275\u0275advance(3),o.\u0275\u0275i18nExp(t.registeredName()),o.\u0275\u0275i18nApply(9),o.\u0275\u0275advance(4),o.\u0275\u0275property("variant",t.variants.Tertiary),o.\u0275\u0275advance(2),o.\u0275\u0275property("variant",t.variants.Primary)("disabled",!t.formGroup.value.soleUBO)("loading",t.loading)}}function J(c,M){if(1&c&&(o.\u0275\u0275elementStart(0,"div",12),o.\u0275\u0275element(1,"img",21),o.\u0275\u0275elementStart(2,"h3"),o.\u0275\u0275i18n(3,6),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(4,"p",14),o.\u0275\u0275i18n(5,7),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(6,"footer")(7,"button",22),o.\u0275\u0275i18n(8,8),o.\u0275\u0275elementEnd()()()),2&c){const t=o.\u0275\u0275nextContext();o.\u0275\u0275advance(),o.\u0275\u0275property("src",t.illustrations.Feedback.Error.ApplicationRejected,o.\u0275\u0275sanitizeUrl),o.\u0275\u0275advance(6),o.\u0275\u0275property("variant",t.eButtonVariantTypes.Primary)}}let oo=(()=>{class c{constructor(t,n,i,w,L,W,q){this._stepperService=t,this._uboDataService=n,this._dialogService=i,this._store=w,this._utilService=L,this._cdr=W,this._onboardingService=q,this.illustrations=D.A,this.variants=y.Me,this.uboSteps=I,this.loading=!1,this.eButtonVariantTypes=y.Me,this.formGroup=new C.FormGroup({soleUBO:new C.FormControl(!1)}),this._subscriptions=new r.Subscription,this.registeredName=(0,U.toSignal)(this._store.select(h.P6).pipe((0,r.map)(z=>z?.business?.registeredName||""),(0,r.filter)(z=>!!z))),this.parentStepId=this._stepperService.activeStepId}ngOnInit(){this._subscriptions.add(this._uboDataService.ubos$.subscribe(t=>{this.ubo=t[0],this._uboDataService.applicationUbos?.find(({dateOfBirth:n})=>this.ubo.dateOfBirth===n)&&this.formGroup.get("soleUBO")?.setValue(!0),this._cdr.markForCheck()}))}gotoStep(t){t===I.UnsupportedDirector&&this._onboardingService.trackEvent("registrationNonApplicantUbo"),this._stepperService.goToNestedStep(t)}showSoleUboDialog(t){t.preventDefault(),this._dialogService.openDialog(S.U)}updateApplication(){this.loading=!0;const{firstName:t,lastName:n}=this.ubo;this._utilService.updateApplication({applicant:{firstName:t,lastName:n},business:{ubos:this._uboDataService.ubos}}).pipe((0,r.take)(1)).subscribe(L=>{this.loading=!1,L&&(this._store.dispatch((0,d.A0C)()),this._stepperService.goNext()),this._cdr.markForCheck()})}ngOnDestroy(){this._subscriptions.unsubscribe()}static{this.\u0275fac=function(n){return new(n||c)(o.\u0275\u0275directiveInject(k.y),o.\u0275\u0275directiveInject(e.G),o.\u0275\u0275directiveInject(G.o),o.\u0275\u0275directiveInject(P.Store),o.\u0275\u0275directiveInject(v.d),o.\u0275\u0275directiveInject(o.ChangeDetectorRef),o.\u0275\u0275directiveInject(x.x))}}static{this.\u0275cmp=o.\u0275\u0275defineComponent({type:c,selectors:[["twa-ob-applicant-ubo"]],standalone:!1,decls:5,vars:4,consts:()=>{let t,n,i,w,L,W,q,z,yo,wo;return t="Loading",n="Are you " + "\ufffd0\ufffd" + " " + "\ufffd1\ufffd" + "?",i=" We've found 1 Ultimate Beneficial Owner for your company. This public information is taken from the Handelsregister. ",w=" I confirm that I have 100% ownership of " + "\ufffd0\ufffd" + " and I am the " + "\ufffd#10\ufffd" + "sole UBO" + "\ufffd/#10\ufffd" + "",L=" We\u2019ll need to verify your identity before opening your Tide account ",W=" No, that\u2019s not me ",q=" Next ",z="Unfortunately, we can't open an account for you",yo=" Only certain authorised individuals can open a Tide account for this business ",wo="Ok",[n,i,w,L,W,q,z,yo,wo,["twaOnboardingNestedStepper","",3,"parentStepId","enableStepRestore"],[3,"twaOnboardingNestedStep"],["matStepContent",""],[1,"step"],["alt","Document Details",3,"src"],[1,"tide-body-1"],[3,"formGroup"],["formControlName","soleUBO","color","primary"],[3,"click"],[1,"tide-body-2"],["tide-button","",3,"click","variant"],["tide-button","","loadingText",t,3,"click","variant","disabled","loading"],["alt","Rejected",3,"src"],["tide-button","",3,"variant"]]},template:function(n,i){1&n&&(o.\u0275\u0275elementStart(0,"mat-horizontal-stepper",9)(1,"mat-step",10),o.\u0275\u0275template(2,F,18,9,"ng-template",11),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(3,"mat-step",10),o.\u0275\u0275template(4,J,9,2,"ng-template",11),o.\u0275\u0275elementEnd()()),2&n&&(o.\u0275\u0275property("parentStepId",i.parentStepId)("enableStepRestore",!0),o.\u0275\u0275advance(),o.\u0275\u0275property("twaOnboardingNestedStep",i.uboSteps.onlyDirector),o.\u0275\u0275advance(2),o.\u0275\u0275property("twaOnboardingNestedStep",i.uboSteps.UnsupportedDirector))},dependencies:[C.\u0275NgNoValidate,C.NgControlStatus,C.NgControlStatusGroup,C.FormGroupDirective,C.FormControlName,u.V5,u.M6,u.yS,T.So,$.o,
1V.l,X.k],styles:['[_ngcontent-%COMP%]:root{--color-background-standard: #f0f4ff;--color-background-inverse: #ffffff;--color-background-subtler: #f3f3f4;--color-background-brand: #1929d6;--color-background-brand-bolder: #00106a;--color-background-brand-subtle: #c5d8ff;--color-background-brand-subtler: #dde8ff;--color-background-disabled: #ececee;--color-background-subtle: #cdcfd5;--color-background-success-subtle: #ecfdf3;--color-background-success-bold: #75e0a7;--color-background-success-bolder: #089b5d;--color-background-warning-subtle: #fffaeb;--color-background-warning-bold: #ffc142;--color-background-warning-bolder: #4e1d09;--color-background-error-subtle: #fef3f2;--color-background-error-bold: #d92d20;--color-background-bold: #9095a2;--color-background-boldest: #1d1f2a;--color-decorative-orange-subtle: #feead5;--color-decorative-blue-subtle: #cfecfd;--color-decorative-purple-subtle: #eee0ff;--color-decorative-teal-subtle: #e8f9fd;--color-decorative-magenta-subtle: #ffe6e6;--color-decorative-brown-subtle: #f7ecdd;--color-decorative-yellow-subtle: #fdf4ce;--color-decorative-green-subtle: #dcfae6;--color-decorative-yellow: #fedf89;--color-decorative-green: #a9efc5;--color-decorative-orange: #f9af82;--color-decorative-blue: #70b8f3;--color-decorative-purple: #bc87ff;--color-decorative-teal: #56cccc;--color-decorative-magenta: #f582a0;--color-decorative-brown: #d2ae90;--color-decorative-yellow-bold: #dc6803;--color-decorative-green-bold: #17b26a;--color-decorative-orange-bold: #a92518;--color-decorative-blue-bold: #0b409a;--color-decorative-purple-bold: #5a11b0;--color-decorative-teal-bold: #007d8c;--color-decorative-magenta-bold: #8d0450;--color-border-standard: #cdcfd5;--color-border-subtle: #e4e4e7;--color-border-brand: #1929d6;--color-border-disabled: #ececee;--color-border-bold: #9095a2;--color-border-success-subtle: #75e0a7;--color-border-success-bold: #089b5d;--color-border-warning-subtle: #ffc142;--color-border-error-subtle: #fa887f;--color-border-warning-bold: #dc6803;--color-border-error-bold: #f04438;--color-border-focus: #5273ff;--color-border-brand-subtler: #c5d8ff;--color-border-brand-subtlest: #dde8ff;--color-border-brand-subtle: #a4bcff;--color-border-brand-bolder: #00106a;--color-text-standard: #282b3a;--color-text-secondary: #494d5f;--color-text-tertiary: #6f7281;--color-text-brand-bold: #00106a;--color-text-brand: #1929d6;--color-text-disabled: #a6aab4;--color-text-success-subtle: #75e0a7;--color-text-success-bold: #067647;--color-text-success-bolder: #067647;--color-text-warning-subtle: #ffc142;--color-text-warning-bold: #b54708;--color-text-warning-bolder: #b54708;--color-text-error-subtle: #fa887f;--color-text-error-bold: #d92d20;--color-text-error-bolder: #6e0b32;--color-text-inverse: #ffffff;--color-text-brand-subtle: #6b91fd;--color-icon-standard: #616371;--color-icon-secondary: #9095a2;--color-icon-brand: #1929d6;--color-icon-brand-bold: #00106a;--color-icon-brand-subtle: #6b91fd;--color-icon-success-subtle: #75e0a7;--color-icon-success-bold: #089b5d;--color-icon-warning-subtle: #ffc142;--color-icon-warning-bold: #b54708;--color-icon-warning-bolder: #b54708;--color-icon-error-subtle: #fa887f;--color-icon-error-bold: #d92d20;--color-icon-orange-subtle: #ec5c31;--color-icon-blue-subtle: #176fd7;--color-icon-purple-subtle: #9346ed;--color-icon-teal-subtle: #01a3ae;--color-icon-magenta-subtle: #cd1d5c;--color-icon-brown-subtle: #6b4533;--color-icon-error-bolder: #d92d20;--color-icon-orange-bold: #a92518;--color-icon-blue-bold: #0b409a;--color-icon-teal-bold: #007d8c;--color-icon-magenta-bold: #8d0450;--color-icon-purple-bold: #5a11b0;--color-icon-brown-bold: #4d2319;--color-icon-inverse: #ffffff;--color-icon-disabled: #6f7281;--color-link-standard: #1929d6;--color-link-active: #00106a;--color-link-hover: #0c008a;--color-link-visited: #1209ae;--color-opacity-0: rgba(#1d1f2a, .2)}[_ngcontent-%COMP%]:root{--color-indigo-100: #f0f4ff;--color-indigo-200: #dde8ff;--color-indigo-300: #c5d8ff;--color-indigo-400: #a4bcff;--color-indigo-500: #6b91fd;--color-indigo-600: #5273ff;--color-indigo-700: #3746ec;--color-indigo-800: #1929d6;--color-indigo-900: #1209ae;--color-indigo-1000: #0c008a;--color-indigo-1100: #00106a;--color-indigo-1200: #030047;--color-grey-0: #ffffff;--color-grey-100: #f3f3f4;
1--color-grey-200: #ececee;--color-grey-300: #e4e4e7;--color-grey-400: #cdcfd5;--color-grey-500: #a6aab4;--color-grey-600: #9095a2;--color-grey-700: #6f7281;--color-grey-800: #616371;--color-grey-900: #494d5f;--color-grey-1000: #31333f;--color-grey-1100: #282b3a;--color-grey-1200: #1d1f2a;--color-green-100: #ecfdf3;--color-green-200: #dcfae6;--color-green-250: #d2fad1;--color-green-300: #a9efc5;--color-green-400: #75e0a7;--color-green-450: #74e489;--color-green-500: #47cd89;--color-green-600: #17b26a;--color-green-700: #089b5d;--color-green-800: #067647;--color-green-900: #044e2e;--color-green-1000: #053321;--color-green-1100: #055040;--color-red-50: #fde3d7;--color-red-100: #fef3f2;--color-red-200: #fee4e2;--color-red-300: #fecdca;--color-red-350: #f79788;--color-red-400: #fda7a0;--color-red-500: #fa887f;--color-red-600: #f97066;--color-red-700: #f04438;--color-red-800: #d92d20;--color-red-900: #b42318;--color-red-1000: #912018;--color-red-1100: #6e0b32;--color-yellow-100: #fffaeb;--color-yellow-200: #fdf4ce;--color-yellow-300: #fedf89;--color-yellow-400: #ffc142;--color-yellow-450: #e8a011;--color-yellow-500: #fdb022;--color-yellow-600: #f79009;--color-yellow-700: #dc6803;--color-yellow-800: #b54708;--color-yellow-900: #93370d;--color-yellow-1000: #4e1d09;--color-yellow-1100: #6f3c03;--color-purple-50: #eee0ff;--color-purple-100: #dabaff;--color-purple-300: #bc87ff;--color-purple-500: #9346ed;--color-purple-700: #5a11b0;--color-purple-900: #33087e;--color-blue-100: #cfecfd;--color-blue-300: #70b8f3;--color-blue-500: #176fd7;--color-blue-700: #0b409a;--color-blue-900: #041f67;--color-teal-50: #e8f9fd;--color-teal-100: #9de2e5;--color-teal-300: #56cccc;--color-teal-500: #01a3ae;--color-teal-700: #007d8c;--color-teal-900: #02576a;--color-orange-100: #feead5;--color-orange-300: #f9af82;--color-orange-500: #ec5c31;--color-orange-700: #a92518;--color-orange-900: #71090f;--color-magenta-50: #ffe6e6;--color-magenta-100: #ffbdcc;--color-magenta-300: #f582a0;--color-magenta-500: #cd1d5c;--color-magenta-700: #8d0450;--color-magenta-900: #62054b;--color-brown-100: #f7ecdd;--color-brown-300: #d2ae90;--color-brown-500: #6b4533;--color-brown-700: #4d2319;--color-brown-900: #330c09;--color-slate-100: #f1f1f3;--color-slate-200: #e6e6ea;--color-slate-300: #dedee3;--color-slate-400: #ced0d6;--color-slate-500: #aeb2bc;--color-slate-600: #9da0a8;--color-slate-700: #7f838a;--color-slate-800: #45484f;--color-slate-900: #393b41;--color-slate-1000: #2b2c31;--color-slate-1100: #18191b;--color-slate-1200: #0f0f0f;--color-slate-000: #ffffff}.light-theme[_ngcontent-%COMP%]{--color-background-standard: #f0f4ff;--color-background-inverse: #ffffff;--color-background-subtler: #f3f3f4;--color-background-brand: #1929d6;--color-background-brand-bolder: #00106a;--color-background-brand-subtle: #c5d8ff;--color-background-brand-subtler: #dde8ff;--color-background-disabled: #ececee;--color-background-subtle: #cdcfd5;--color-background-success-subtle: #ecfdf3;--color-background-success-bold: #75e0a7;--color-background-success-bolder: #089b5d;--color-background-warning-subtle: #fffaeb;--color-background-warning-bold: #ffc142;--color-background-warning-bolder: #4e1d09;--color-background-error-subtle: #fef3f2;--color-background-error-bold: #d92d20;--color-background-bold: #9095a2;--color-background-boldest: #1d1f2a;--color-decorative-orange-subtle: #feead5;--color-decorative-blue-subtle: #cfecfd;--color-decorative-purple-subtle: #eee0ff;--color-decorative-teal-subtle: #e8f9fd;--color-decorative-magenta-subtle: #ffe6e6;--color-decorative-brown-subtle: #f7ecdd;--color-decorative-yellow-subtle: #fdf4ce;--color-decorative-green-subtle: #dcfae6;--color-decorative-yellow: #fedf89;--color-decorative-green: #a9efc5;--color-decorative-orange: #f9af82;--color-decorative-blue: #70b8f3;--color-decorative-purple: #bc87ff;--color-decorative-teal: #56cccc;--color-decorative-magenta: #f582a0;--color-decorative-brown: #d2ae90;--color-decorative-yellow-bold: #dc6803;--color-decorative-green-bold: #17b26a;--color-decorative-orange-bold: #a92518;--color-decorative-blue-bold: #0b409a;--color-decorative-purple-bold: #5a11b0;
1--color-decorative-teal-bold: #007d8c;--color-decorative-magenta-bold: #8d0450;--color-border-standard: #cdcfd5;--color-border-subtle: #e4e4e7;--color-border-brand: #1929d6;--color-border-disabled: #ececee;--color-border-bold: #9095a2;--color-border-success-subtle: #75e0a7;--color-border-success-bold: #089b5d;--color-border-warning-subtle: #ffc142;--color-border-error-subtle: #fa887f;--color-border-warning-bold: #dc6803;--color-border-error-bold: #f04438;--color-border-focus: #5273ff;--color-border-brand-subtler: #c5d8ff;--color-border-brand-subtlest: #dde8ff;--color-border-brand-subtle: #a4bcff;--color-border-brand-bolder: #00106a;--color-text-standard: #282b3a;--color-text-secondary: #494d5f;--color-text-tertiary: #6f7281;--color-text-brand-bold: #00106a;--color-text-brand: #1929d6;--color-text-disabled: #a6aab4;--color-text-success-subtle: #75e0a7;--color-text-success-bold: #067647;--color-text-success-bolder: #067647;--color-text-warning-subtle: #ffc142;--color-text-warning-bold: #b54708;--color-text-warning-bolder: #b54708;--color-text-error-subtle: #fa887f;--color-text-error-bold: #d92d20;--color-text-error-bolder: #6e0b32;--color-text-inverse: #ffffff;--color-text-brand-subtle: #6b91fd;--color-icon-standard: #616371;--color-icon-secondary: #9095a2;--color-icon-brand: #1929d6;--color-icon-brand-bold: #00106a;--color-icon-brand-subtle: #6b91fd;--color-icon-success-subtle: #75e0a7;--color-icon-success-bold: #089b5d;--color-icon-warning-subtle: #ffc142;--color-icon-warning-bold: #b54708;--color-icon-warning-bolder: #b54708;--color-icon-error-subtle: #fa887f;--color-icon-error-bold: #d92d20;--color-icon-orange-subtle: #ec5c31;--color-icon-blue-subtle: #176fd7;--color-icon-purple-subtle: #9346ed;--color-icon-teal-subtle: #01a3ae;--color-icon-magenta-subtle: #cd1d5c;--color-icon-brown-subtle: #6b4533;--color-icon-error-bolder: #d92d20;--color-icon-orange-bold: #a92518;--color-icon-blue-bold: #0b409a;--color-icon-teal-bold: #007d8c;--color-icon-magenta-bold: #8d0450;--color-icon-purple-bold: #5a11b0;--color-icon-brown-bold: #4d2319;--color-icon-inverse: #ffffff;--color-icon-disabled: #6f7281;--color-link-standard: #1929d6;--color-link-active: #00106a;--color-link-hover: #0c008a;--color-link-visited: #1209ae;--color-opacity-0: rgba(#1d1f2a, .2)}.mat-mdc-tooltip[_ngcontent-%COMP%]{--mat-tooltip-supporting-text-font: Figtree;--mat-tooltip-supporting-text-weight: 525;--mat-tooltip-supporting-text-size: .75rem;--mat-tooltip-supporting-text-line-height: 1rem}.mat-mdc-tooltip-panel[_ngcontent-%COMP%] .mdc-tooltip[_ngcontent-%COMP%]{position:relative;overflow:initial}.mat-mdc-tooltip-panel[_ngcontent-%COMP%] .mdc-tooltip[_ngcontent-%COMP%]:after{width:1rem;height:.75rem;content:url(\'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 9"><path d="M5.20759 1.02937C5.6079 0.509358 6.3921 0.509358 6.79241 1.02937L11.6888 7.39001C12.195 8.04757 11.7263 9 10.8964 9H1.10358C0.273737 9 -0.195026 8.04757 0.311171 7.39001L5.20759 1.02937Z" fill="%2300106a"/></svg>\');display:inline-block;position:absolute}.dark-theme[_ngcontent-%COMP%] .mat-mdc-tooltip-panel[_ngcontent-%COMP%] .mdc-tooltip[_ngcontent-%COMP%]:after{content:url(\'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 9"><path d="M5.20759 1.02937C5.6079 0.509358 6.3921 0.509358 6.79241 1.02937L11.6888 7.39001C12.195 8.04757 11.7263 9 10.8964 9H1.10358C0.273737 9 -0.195026 8.04757 0.311171 7.39001L5.20759 1.02937Z" fill="%236B91FD"/></svg>\')}.mat-mdc-tooltip-panel-below[_ngcontent-%COMP%] .mdc-tooltip[_ngcontent-%COMP%]:after{top:-.75rem;right:calc(50% - .5rem);transform:rotate(0)}.mat-mdc-tooltip-panel-above[_ngcontent-%COMP%] .mdc-tooltip[_ngcontent-%COMP%]:after{bottom:-.75rem;right:calc(50% - .5rem);transform:rotate(180deg)}.mat-mdc-tooltip-panel-right[_ngcontent-%COMP%] .mdc-tooltip[_ngcontent-%COMP%]:after{left:-.875rem;top:calc(50% - .375rem);transform:rotate(270deg)}.mat-mdc-tooltip-panel-left[_ngcontent-%COMP%] .mdc-tooltip[_ngcontent-%COMP%]:after{right:-.875rem;top:calc(50% - .375rem);transform:rotate(90deg)}.mat-mdc-tooltip.mat-mdc-tooltip[_ngcontent-%COMP%] .mdc-tooltip__surface[_ngcontent-%COMP%]{background-color:var(--color-background-brand-bolder);padding:.5rem .75rem;border-radius:.5rem}@font-face{font-family:Material Icons;font-style:normal;font-weight:400;
1src:url(https://fonts.gstatic.com/s/materialicons/v92/flUhRq6tzZclQEJ-Vdg-IuiaDsNcIhQ8tQ.eot);src:local("Material Icons"),local("MaterialIcons-Regular"),url(https://fonts.gstatic.com/s/materialicons/v92/flUhRq6tzZclQEJ-Vdg-IuiaDsNcIhQ8tQ.woff2) format("woff2"),url(https://fonts.gstatic.com/s/materialicons/v92/flUhRq6tzZclQEJ-Vdg-IuiaDsNcIhQ8tQ.woff) format("woff"),url(https://fonts.gstatic.com/s/materialicons/v92/flUhRq6tzZclQEJ-Vdg-IuiaDsNcIhQ8tQ.ttf) format("truetype");font-display:block}.tide-currency-sub-unit[_ngcontent-%COMP%]{font-size:.78125rem}.balance-currency-sub-unit[_ngcontent-%COMP%]{font-size:1.3671875rem}[_nghost-%COMP%] .step{display:flex;flex-direction:column;gap:1rem}[_nghost-%COMP%] .step img{max-width:21.875rem;align-self:center;margin-bottom:1rem}[_nghost-%COMP%] .step form{margin-top:.5rem}[_nghost-%COMP%] .step footer{margin-top:1.5rem}[_nghost-%COMP%] .step footer button:first-child{margin-right:1rem}[_nghost-%COMP%] .step mat-checkbox{background-color:var(--color-background-inverse);border-radius:.5rem;border:1px solid var(--color-grey-300);padding:1rem 1rem 1rem .5rem;margin-bottom:.5rem}[_nghost-%COMP%] .step p.tide-bode-2{color:var(--color-text-tertiary)}']})}}return c})();function Y(c,M){if(1&c&&(o.\u0275\u0275element(0,"img",4),o.\u0275\u0275elementStart(1,"h3"),o.\u0275\u0275i18n(2,0),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(3,"p",5),o.\u0275\u0275i18n(4,1),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(5,"p",5),o.\u0275\u0275i18n(6,2),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(7,"footer")(8,"button",6),o.\u0275\u0275i18n(9,3),o.\u0275\u0275elementEnd()()),2&c){const t=o.\u0275\u0275nextContext();o.\u0275\u0275property("src",t.illustrations.Feedback.Error.ApplicationRejected,o.\u0275\u0275sanitizeUrl),o.\u0275\u0275advance(8),o.\u0275\u0275property("variant",t.eButtonVariantTypes.Primary)}}function no(c,M){if(1&c){const t=o.\u0275\u0275getCurrentView();o.\u0275\u0275elementStart(0,"h3"),o.\u0275\u0275text(1,"Missing UBOs"),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(2,"section")(3,"p",7),o.\u0275\u0275text(4," We\u2019ve been unable to find sufficient information about your shareholders and directors but will do some manual checks. "),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(5,"p",7),o.\u0275\u0275text(6,"In the meantime please continue creating an account."),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(7,"footer")(8,"button",8),o.\u0275\u0275listener("click",function(){o.\u0275\u0275restoreView(t);const i=o.\u0275\u0275nextContext();return o.\u0275\u0275resetView(i.gotoNextStep())}),o.\u0275\u0275text(9,"Next"),o.\u0275\u0275elementEnd()()()}if(2&c){const t=o.\u0275\u0275nextContext();o.\u0275\u0275advance(8),o.\u0275\u0275property("variant",t.eButtonVariantTypes.Primary)}}let eo=(()=>{class c{constructor(t,n,i){this._onboardingService=t,this._stepperService=n,this._environment=i,this.illustrations=D.A,this.eButtonVariantTypes=y.Me,this.eButtonSizeTypes=y.IE,this.eCountryOfBusiness=O.ECountryOfBusiness}ngOnInit(){this.countryOfBusiness=this._environment.COUNTRY_OF_BUSINESS,this._onboardingService.trackEvent("registrationNoUbosFound")}gotoNextStep(){this._stepperService.goNext()}static{this.\u0275fac=function(n){return new(n||c)(o.\u0275\u0275directiveInject(x.x),o.\u0275\u0275directiveInject(k.y),o.\u0275\u0275directiveInject(O.ENVIRONMENT))}}static{this.\u0275cmp=o.\u0275\u0275defineComponent({type:c,selectors:[["twa-ob-no-ubos"]],standalone:!1,decls:2,vars:1,consts:()=>{let t,n,i,w;return t="Unfortunately, we can't open an account for you",n=" According to the Handelsregister, you are not listed as an individual with authority over the business. ",i=" If this is incorrect, please update your business details on the Handelsregister and try again. ",w="Ok",[t,n,i,w,["alt","Rejected",3,"src"],[1,"tide-body-1"],["tide-button","",3,"variant"],[1,"tide-body-2"],["tide-button","",3,"click","variant"]]},template:function(n,i){1&n&&o.\u0275\u0275conditionalCreate(0,Y,10,2)(1,no,10,1),2&n&&o.\u0275\u0275conditional(i.countryOfBusiness===i.eCountryOfBusiness.DE?0:1)},dependencies:[$.o],styles:['[_ngcontent-%COMP%]:root{--color-background-standard: #f0f4ff;--color-background-inverse: #ffffff;--color-background-subtler: #f3f3f4;--color-background-brand: #1929d6;--color-background-brand-bolder: #00106a;--color-background-brand-subtle: #c5d8ff;--color-background-brand-subtler: #dde8ff;--color-background-disabled: #ececee;--color-background-subtle: #cdcfd5;--color-background-success-subtle: #ecfdf3;--color-background-success-bold: #75e0a7;--color-background-success-bolder: #089b5d;--color-background-warning-subtle: #fffaeb;--color-background-warning-bold: #ffc142;--color-background-warning-bolder: #4e1d09;--color-background-error-subtle: #fef3f2;--color-background-error-bold: #d92d20;--color-background-bold: #9095a2;--color-background-boldest: #1d1f2a;--color-decorative-orange-subtle: #feead5;--color-decorative-blue-subtle: #cfecfd;--color-decorative-purple-subtle: #eee0ff;--color-decorative-teal-subtle: #e8f9fd;--color-decorative-magenta-subtle: #ffe6e6;--color-decorative-brown-subtle: #f7ecdd;--color-decorative-yellow-subtle: #fdf4ce;--color-decorative-green-subtle: #dcfae6;--color-decorative-yellow: #fedf89;--color-decorative-green: #a9efc5;--color-decorative-orange: #f9af82;--color-decorative-blue: #70b8f3;--color-decorative-purple: #bc87ff;--color-decorative-teal: #56cccc;--color-decorative-magenta: #f582a0;--color-decorative-brown: #d2ae90;--color-decorative-yellow-bold: #dc6803;--color-decorative-green-bold: #17b26a;--color-decorative-orange-bold: #a92518;--color-decorative-blue-bold: #0b409a;--color-decorative-purple-bold: #5a11b0;
1--color-decorative-teal-bold: #007d8c;--color-decorative-magenta-bold: #8d0450;--color-border-standard: #cdcfd5;--color-border-subtle: #e4e4e7;--color-border-brand: #1929d6;--color-border-disabled: #ececee;--color-border-bold: #9095a2;--color-border-success-subtle: #75e0a7;--color-border-success-bold: #089b5d;--color-border-warning-subtle: #ffc142;--color-border-error-subtle: #fa887f;--color-border-warning-bold: #dc6803;--color-border-error-bold: #f04438;--color-border-focus: #5273ff;--color-border-brand-subtler: #c5d8ff;--color-border-brand-subtlest: #dde8ff;--color-border-brand-subtle: #a4bcff;--color-border-brand-bolder: #00106a;--color-text-standard: #282b3a;--color-text-secondary: #494d5f;--color-text-tertiary: #6f7281;--color-text-brand-bold: #00106a;--color-text-brand: #1929d6;--color-text-disabled: #a6aab4;--color-text-success-subtle: #75e0a7;--color-text-success-bold: #067647;--color-text-success-bolder: #067647;--color-text-warning-subtle: #ffc142;--color-text-warning-bold: #b54708;--color-text-warning-bolder: #b54708;--color-text-error-subtle: #fa887f;--color-text-error-bold: #d92d20;--color-text-error-bolder: #6e0b32;--color-text-inverse: #ffffff;--color-text-brand-subtle: #6b91fd;--color-icon-standard: #616371;--color-icon-secondary: #9095a2;--color-icon-brand: #1929d6;--color-icon-brand-bold: #00106a;--color-icon-brand-subtle: #6b91fd;--color-icon-success-subtle: #75e0a7;--color-icon-success-bold: #089b5d;--color-icon-warning-subtle: #ffc142;--color-icon-warning-bold: #b54708;--color-icon-warning-bolder: #b54708;--color-icon-error-subtle: #fa887f;--color-icon-error-bold: #d92d20;--color-icon-orange-subtle: #ec5c31;--color-icon-blue-subtle: #176fd7;--color-icon-purple-subtle: #9346ed;--color-icon-teal-subtle: #01a3ae;--color-icon-magenta-subtle: #cd1d5c;--color-icon-brown-subtle: #6b4533;--color-icon-error-bolder: #d92d20;--color-icon-orange-bold: #a92518;--color-icon-blue-bold: #0b409a;--color-icon-teal-bold: #007d8c;--color-icon-magenta-bold: #8d0450;--color-icon-purple-bold: #5a11b0;--color-icon-brown-bold: #4d2319;--color-icon-inverse: #ffffff;--color-icon-disabled: #6f7281;--color-link-standard: #1929d6;--color-link-active: #00106a;--color-link-hover: #0c008a;--color-link-visited: #1209ae;--color-opacity-0: rgba(#1d1f2a, .2)}[_ngcontent-%COMP%]:root{--color-indigo-100: #f0f4ff;--color-indigo-200: #dde8ff;--color-indigo-300: #c5d8ff;--color-indigo-400: #a4bcff;--color-indigo-500: #6b91fd;--color-indigo-600: #5273ff;--color-indigo-700: #3746ec;--color-indigo-800: #1929d6;--color-indigo-900: #1209ae;--color-indigo-1000: #0c008a;--color-indigo-1100: #00106a;--color-indigo-1200: #030047;--color-grey-0: #ffffff;--color-grey-100: #f3f3f4;--color-grey-200: #ececee;--color-grey-300: #e4e4e7;--color-grey-400: #cdcfd5;--color-grey-500: #a6aab4;--color-grey-600: #9095a2;--color-grey-700: #6f7281;--color-grey-800: #616371;--color-grey-900: #494d5f;--color-grey-1000: #31333f;--color-grey-1100: #282b3a;--color-grey-1200: #1d1f2a;--color-green-100: #ecfdf3;--color-green-200: #dcfae6;--color-green-250: #d2fad1;--color-green-300: #a9efc5;--color-green-400: #75e0a7;--color-green-450: #74e489;--color-green-500: #47cd89;--color-green-600: #17b26a;--color-green-700: #089b5d;--color-green-800: #067647;--color-green-900: #044e2e;--color-green-1000: #053321;--color-green-1100: #055040;--color-red-50: #fde3d7;--color-red-100: #fef3f2;--color-red-200: #fee4e2;--color-red-300: #fecdca;--color-red-350: #f79788;--color-red-400: #fda7a0;--color-red-500: #fa887f;--color-red-600: #f97066;--color-red-700: #f04438;--color-red-800: #d92d20;--color-red-900: #b42318;--color-red-1000: #912018;--color-red-1100: #6e0b32;--color-yellow-100: #fffaeb;--color-yellow-200: #fdf4ce;--color-yellow-300: #fedf89;--color-yellow-400: #ffc142;--color-yellow-450: #e8a011;--color-yellow-500: #fdb022;--color-yellow-600: #f79009;--color-yellow-700: #dc6803;--color-yellow-800: #b54708;--color-yellow-900: #93370d;--color-yellow-1000: #4e1d09;--color-yellow-1100: #6f3c03;--color-purple-50: #eee0ff;--color-purple-100: #dabaff;--color-purple-300: #bc87ff;--color-purple-500: #9346ed;--color-purple-700: #5a11b0;
1--color-purple-900: #33087e;--color-blue-100: #cfecfd;--color-blue-300: #70b8f3;--color-blue-500: #176fd7;--color-blue-700: #0b409a;--color-blue-900: #041f67;--color-teal-50: #e8f9fd;--color-teal-100: #9de2e5;--color-teal-300: #56cccc;--color-teal-500: #01a3ae;--color-teal-700: #007d8c;--color-teal-900: #02576a;--color-orange-100: #feead5;--color-orange-300: #f9af82;--color-orange-500: #ec5c31;--color-orange-700: #a92518;--color-orange-900: #71090f;--color-magenta-50: #ffe6e6;--color-magenta-100: #ffbdcc;--color-magenta-300: #f582a0;--color-magenta-500: #cd1d5c;--color-magenta-700: #8d0450;--color-magenta-900: #62054b;--color-brown-100: #f7ecdd;--color-brown-300: #d2ae90;--color-brown-500: #6b4533;--color-brown-700: #4d2319;--color-brown-900: #330c09;--color-slate-100: #f1f1f3;--color-slate-200: #e6e6ea;--color-slate-300: #dedee3;--color-slate-400: #ced0d6;--color-slate-500: #aeb2bc;--color-slate-600: #9da0a8;--color-slate-700: #7f838a;--color-slate-800: #45484f;--color-slate-900: #393b41;--color-slate-1000: #2b2c31;--color-slate-1100: #18191b;--color-slate-1200: #0f0f0f;--color-slate-000: #ffffff}.light-theme[_ngcontent-%COMP%]{--color-background-standard: #f0f4ff;--color-background-inverse: #ffffff;--color-background-subtler: #f3f3f4;--color-background-brand: #1929d6;--color-background-brand-bolder: #00106a;--color-background-brand-subtle: #c5d8ff;--color-background-brand-subtler: #dde8ff;--color-background-disabled: #ececee;--color-background-subtle: #cdcfd5;--color-background-success-subtle: #ecfdf3;--color-background-success-bold: #75e0a7;--color-background-success-bolder: #089b5d;--color-background-warning-subtle: #fffaeb;--color-background-warning-bold: #ffc142;--color-background-warning-bolder: #4e1d09;--color-background-error-subtle: #fef3f2;--color-background-error-bold: #d92d20;--color-background-bold: #9095a2;--color-background-boldest: #1d1f2a;--color-decorative-orange-subtle: #feead5;--color-decorative-blue-subtle: #cfecfd;--color-decorative-purple-subtle: #eee0ff;--color-decorative-teal-subtle: #e8f9fd;--color-decorative-magenta-subtle: #ffe6e6;--color-decorative-brown-subtle: #f7ecdd;--color-decorative-yellow-subtle: #fdf4ce;--color-decorative-green-subtle: #dcfae6;--color-decorative-yellow: #fedf89;--color-decorative-green: #a9efc5;--color-decorative-orange: #f9af82;--color-decorative-blue: #70b8f3;--color-decorative-purple: #bc87ff;--color-decorative-teal: #56cccc;--color-decorative-magenta: #f582a0;--color-decorative-brown: #d2ae90;--color-decorative-yellow-bold: #dc6803;--color-decorative-green-bold: #17b26a;--color-decorative-orange-bold: #a92518;--color-decorative-blue-bold: #0b409a;--color-decorative-purple-bold: #5a11b0;--color-decorative-teal-bold: #007d8c;--color-decorative-magenta-bold: #8d0450;--color-border-standard: #cdcfd5;--color-border-subtle: #e4e4e7;--color-border-brand: #1929d6;--color-border-disabled: #ececee;--color-border-bold: #9095a2;--color-border-success-subtle: #75e0a7;--color-border-success-bold: #089b5d;--color-border-warning-subtle: #ffc142;--color-border-error-subtle: #fa887f;--color-border-warning-bold: #dc6803;--color-border-error-bold: #f04438;--color-border-focus: #5273ff;--color-border-brand-subtler: #c5d8ff;--color-border-brand-subtlest: #dde8ff;--color-border-brand-subtle: #a4bcff;--color-border-brand-bolder: #00106a;--color-text-standard: #282b3a;--color-text-secondary: #494d5f;--color-text-tertiary: #6f7281;--color-text-brand-bold: #00106a;--color-text-brand: #1929d6;--color-text-disabled: #a6aab4;--color-text-success-subtle: #75e0a7;--color-text-success-bold: #067647;--color-text-success-bolder: #067647;--color-text-warning-subtle: #ffc142;--color-text-warning-bold: #b54708;--color-text-warning-bolder: #b54708;--color-text-error-subtle: #fa887f;--color-text-error-bold: #d92d20;--color-text-error-bolder: #6e0b32;--color-text-inverse: #ffffff;--color-text-brand-subtle: #6b91fd;--color-icon-standard: #616371;--color-icon-secondary: #9095a2;--color-icon-brand: #1929d6;--color-icon-brand-bold: #00106a;--color-icon-brand-subtle: #6b91fd;--color-icon-success-subtle: #75e0a7;--color-icon-success-bold: #089b5d;--color-icon-warning-subtle: #ffc142;--color-icon-warning-bold: #b54708;--color-icon-warning-bolder: #b54708;--color-icon-error-subtle: #fa887f;--color-icon-error-bold: #d92d20;--color-icon-orange-subtle: #ec5c31;--color-icon-blue-subtle: #176fd7;--color-icon-purple-subtle: #9346ed;--color-icon-teal-subtle: #01a3ae;--color-icon-magenta-subtle: #cd1d5c;--color-icon-brown-subtle: #6b4533;--color-icon-error-bolder: #d92d20;--color-icon-orange-bold: #a92518;--color-icon-blue-bold: #0b409a;--color-icon-teal-bold: #007d8c;--color-icon-magenta-bold: #8d0450;--color-icon-purple-bold: #5a11b0;
1--color-icon-brown-bold: #4d2319;--color-icon-inverse: #ffffff;--color-icon-disabled: #6f7281;--color-link-standard: #1929d6;--color-link-active: #00106a;--color-link-hover: #0c008a;--color-link-visited: #1209ae;--color-opacity-0: rgba(#1d1f2a, .2)}.mat-mdc-tooltip[_ngcontent-%COMP%]{--mat-tooltip-supporting-text-font: Figtree;--mat-tooltip-supporting-text-weight: 525;--mat-tooltip-supporting-text-size: .75rem;--mat-tooltip-supporting-text-line-height: 1rem}.mat-mdc-tooltip-panel[_ngcontent-%COMP%] .mdc-tooltip[_ngcontent-%COMP%]{position:relative;overflow:initial}.mat-mdc-tooltip-panel[_ngcontent-%COMP%] .mdc-tooltip[_ngcontent-%COMP%]:after{width:1rem;height:.75rem;content:url(\'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 9"><path d="M5.20759 1.02937C5.6079 0.509358 6.3921 0.509358 6.79241 1.02937L11.6888 7.39001C12.195 8.04757 11.7263 9 10.8964 9H1.10358C0.273737 9 -0.195026 8.04757 0.311171 7.39001L5.20759 1.02937Z" fill="%2300106a"/></svg>\');display:inline-block;position:absolute}.dark-theme[_ngcontent-%COMP%] .mat-mdc-tooltip-panel[_ngcontent-%COMP%] .mdc-tooltip[_ngcontent-%COMP%]:after{content:url(\'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 9"><path d="M5.20759 1.02937C5.6079 0.509358 6.3921 0.509358 6.79241 1.02937L11.6888 7.39001C12.195 8.04757 11.7263 9 10.8964 9H1.10358C0.273737 9 -0.195026 8.04757 0.311171 7.39001L5.20759 1.02937Z" fill="%236B91FD"/></svg>\')}.mat-mdc-tooltip-panel-below[_ngcontent-%COMP%] .mdc-tooltip[_ngcontent-%COMP%]:after{top:-.75rem;right:calc(50% - .5rem);transform:rotate(0)}.mat-mdc-tooltip-panel-above[_ngcontent-%COMP%] .mdc-tooltip[_ngcontent-%COMP%]:after{bottom:-.75rem;right:calc(50% - .5rem);transform:rotate(180deg)}.mat-mdc-tooltip-panel-right[_ngcontent-%COMP%] .mdc-tooltip[_ngcontent-%COMP%]:after{left:-.875rem;top:calc(50% - .375rem);transform:rotate(270deg)}.mat-mdc-tooltip-panel-left[_ngcontent-%COMP%] .mdc-tooltip[_ngcontent-%COMP%]:after{right:-.875rem;top:calc(50% - .375rem);transform:rotate(90deg)}.mat-mdc-tooltip.mat-mdc-tooltip[_ngcontent-%COMP%] .mdc-tooltip__surface[_ngcontent-%COMP%]{background-color:var(--color-background-brand-bolder);padding:.5rem .75rem;border-radius:.5rem}@font-face{font-family:Material Icons;font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/materialicons/v92/flUhRq6tzZclQEJ-Vdg-IuiaDsNcIhQ8tQ.eot);src:local("Material Icons"),local("MaterialIcons-Regular"),url(https://fonts.gstatic.com/s/materialicons/v92/flUhRq6tzZclQEJ-Vdg-IuiaDsNcIhQ8tQ.woff2) format("woff2"),url(https://fonts.gstatic.com/s/materialicons/v92/flUhRq6tzZclQEJ-Vdg-IuiaDsNcIhQ8tQ.woff) format("woff"),url(https://fonts.gstatic.com/s/materialicons/v92/flUhRq6tzZclQEJ-Vdg-IuiaDsNcIhQ8tQ.ttf) format("truetype");font-display:block}.tide-currency-sub-unit[_ngcontent-%COMP%]{font-size:.78125rem}.balance-currency-sub-unit[_ngcontent-%COMP%]{font-size:1.3671875rem}[_nghost-%COMP%]{display:flex;flex-direction:column;gap:1rem}[_nghost-%COMP%] img[_ngcontent-%COMP%]{max-width:21.875rem;margin-bottom:1.5rem}[_nghost-%COMP%] footer[_ngcontent-%COMP%]{margin-top:1.5rem}']})}}return c})();const ao={title:"Support for multiple-owner businesses is coming soon!",body1:"According to the Handelsregister, there are multiple directors in your business.",body2:"Tide business current accounts are not currently available to business with multiple directors/Ultimate Beneficial Owners.",body3:"Register your interest and we\u2019ll let you know
1when you can open a Tide account."},io={title:"Support for business with joint authority is coming soon!",body1:"According to the Handelsregister, you do not have sole authority to open a Tide account for this business.",body2:"Tide business current account are not currently available to business with joint authority.",body3:"Register your interest and we\u2019ll let you know when you can open a Tide account."};var so=l(35729);let ro=(()=>{class c{constructor(t,n,i){this._onboardingService=t,this._snackbarService=n,this._store=i,this.allowMultiple=!1,this.illustrations=D.A,this.unsupportedData=ao,this.interestSubmitted=!1}ngOnInit(){this.allowMultiple?this.unsupportedData=io:this._onboardingService.trackEvent("registrationUnsupportedMultipleUbos")}registerInterest(){this._onboardingService.trackEvent("registrationMultipleUbosInterest"),this.interestSubmitted=!0,this._snackbarService.open({message:"Registered interest"})}cancelRegistration(){this._onboardingService.trackEvent("registrationCancelApplication"),this._store.dispatch((0,d.PCW)())}static{this.\u0275fac=function(n){return new(n||c)(o.\u0275\u0275directiveInject(x.x),o.\u0275\u0275directiveInject(so.z),o.\u0275\u0275directiveInject(P.Store))}}static{this.\u0275cmp=o.\u0275\u0275defineComponent({type:c,selectors:[["twa-ob-unsupported-multiple-ubos"]],inputs:{allowMultiple:"allowMultiple"},standalone:!1,decls:14,vars:8,consts:()=>{let t,n;return t=" Cancel registration ",n=" Register interest ",[t,n,["alt","Coming Soon",3,"src"],[1,"tide-body-1"],["tide-button","",3,"click","variant"],["tide-button","",3,"click","variant","disabled"]]},template:function(n,i){1&n&&(o.\u0275\u0275element(0,"img",2),o.\u0275\u0275elementStart(1,"h3"),o.\u0275\u0275text(2),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(3,"p",3),o.\u0275\u0275text(4),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(5,"p",3),o.\u0275\u0275text(6),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(7,"p",3),o.\u0275\u0275text(8),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(9,"footer")(10,"button",4),o.\u0275\u0275listener("click",function(){return i.cancelRegistration()}),o.\u0275\u0275i18n(11,0),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(12,"button",5),o.\u
10275\u0275listener("click",function(){return i.registerInterest()}),o.\u0275\u0275i18n(13,1),o.\u0275\u0275elementEnd()()),2&n&&(o.\u0275\u0275property("src",i.illustrations.Feedback.ComingSoon.Stamp,o.\u0275\u0275sanitizeUrl),o.\u0275\u0275advance(2),o.\u0275\u0275textInterpolate(i.unsupportedData?.title),o.\u0275\u0275advance(2),o.\u0275\u0275textInterpolate1(" ",i.unsupportedData?.body1,"\n"),o.\u0275\u0275advance(2),o.\u0275\u0275textInterpolate1(" ",i.unsupportedData?.body2,"\n"),o.\u0275\u0275advance(2),o.\u0275\u0275textInterpolate1(" ",i.unsupportedData?.body3,"\n"),o.\u0275\u0275advance(2),o.\u0275\u0275property("variant","tertiary"),o.\u0275\u0275advance(2),o.\u0275\u0275property("variant","primary")("disabled",i.interestSubmitted))},dependencies:[$.o],styles:['[_ngcontent-%COMP%]:root{--color-background-standard: #f0f4ff;--color-background-inverse: #ffffff;--color-background-subtler: #f3f3f4;--color-background-brand: #1929d6;--color-background-brand-bolder: #00106a;--color-background-brand-subtle: #c5d8ff;--color-background-brand-subtler: #dde8ff;--color-background-disabled: #ececee;--color-background-subtle: #cdcfd5;--color-background-success-subtle: #ecfdf3;--color-background-success-bold: #75e0a7;--color-background-success-bolder: #089b5d;--color-background-warning-subtle: #fffaeb;--color-background-warning-bold: #ffc142;--color-background-warning-bolder: #4e1d09;--color-background-error-subtle: #fef3f2;--color-background-error-bold: #d92d20;--color-background-bold: #9095a2;--color-background-boldest: #1d1f2a;--color-decorative-orange-subtle: #feead5;--color-decorative-blue-subtle: #cfecfd;--color-decorative-purple-subtle: #eee0ff;--color-decorative-teal-subtle: #e8f9fd;--color-decorative-magenta-subtle: #ffe6e6;--color-decorative-brown-subtle: #f7ecdd;--color-decorative-yellow-subtle: #fdf4ce;--color-decorative-green-subtle: #dcfae6;--color-decorative-yellow: #fedf89;--color-decorative-green: #a9efc5;--color-decorative-orange: #f9af82;--color-decorative-blue: #70b8f3;--color-decorative-purple: #bc87ff;--color-decorative-teal: #56cccc;--color-decorative-magenta: #f582a0;--color-decorative-brown: #d2ae90;--color-decorative-yellow-bold: #dc6803;--color-decorative-green-bold: #17b26a;--color-decorative-orange-bold: #a92518;--color-decorative-blue-bold: #0b409a;--color-decorative-purple-bold: #5a11b0;--color-decorative-teal-bold: #007d8c;--color-decorative-magenta-bold: #8d0450;--color-border-standard: #cdcfd5;--color-border-subtle: #e4e4e7;--color-border-brand: #1929d6;--color-border-disabled: #ececee;--color-border-bold: #9095a2;--color-border-success-subtle: #75e0a7;--color-border-success-bold: #089b5d;--color-border-warning-subtle: #ffc142;--color-border-error-subtle: #fa887f;--color-border-warning-bold: #dc6803;--color-border-error-bold: #f04438;--color-border-focus: #5273ff;--color-border-brand-subtler: #c5d8ff;--color-border-brand-subtlest: #dde8ff;--color-border-brand-subtle: #a4bcff;--color-border-brand-bolder: #00106a;--color-text-standard: #282b3a;--color-text-secondary: #494d5f;--color-text-tertiary: #6f7281;--color-text-brand-bold: #00106a;--color-text-brand: #1929d6;--color-text-disabled: #a6aab4;--color-text-success-subtle: #75e0a7;--color-text-success-bold: #067647;--color-text-success-bolder: #067647;--color-text-warning-subtle: #ffc142;--color-text-warning-bold: #b54708;--color-text-warning-bolder: #b54708;--color-text-error-subtle: #fa887f;--color-text-error-bold: #d92d20;--color-text-error-bolder: #6e0b32;--color-text-inverse: #ffffff;--color-text-brand-subtle: #6b91fd;--color-icon-standard: #616371;--color-icon-secondary: #9095a2;--color-icon-brand: #1929d6;--color-icon-brand-bold: #00106a;--color-icon-brand-subtle: #6b91fd;--color-icon-success-subtle: #75e0a7;--color-icon-success-bold: #089b5d;--color-icon-warning-subtle: #ffc142;--color-icon-warning-bold: #b54708;--color-icon-warning-bolder: #b54708;--color-icon-error-subtle: #fa887f;--color-icon-error-bold: #d92d20;--color-icon-orange-subtle: #ec5c31;--color-icon-blue-subtle: #176fd7;--color-icon-purple-subtle: #9346ed;--color-icon-teal-subtle: #01a3ae;--color-icon-magenta-subtle: #cd1d5c;--color-icon-brown-subtle: #6b4533;--color-icon-error-bolder: #d92d20;--color-icon-orange-bold: #a92518;--color-icon-blue-bold: #0b409a;--color-icon-teal-bold: #007d8c;--color-icon-magenta-bold: #8d0450;--color-icon-purple-bold: #5a11b0;
1--color-icon-brown-bold: #4d2319;--color-icon-inverse: #ffffff;--color-icon-disabled: #6f7281;--color-link-standard: #1929d6;--color-link-active: #00106a;--color-link-hover: #0c008a;--color-link-visited: #1209ae;--color-opacity-0: rgba(#1d1f2a, .2)}[_ngcontent-%COMP%]:root{--color-indigo-100: #f0f4ff;--color-indigo-200: #dde8ff;--color-indigo-300: #c5d8ff;--color-indigo-400: #a4bcff;--color-indigo-500: #6b91fd;--color-indigo-600: #5273ff;--color-indigo-700: #3746ec;--color-indigo-800: #1929d6;--color-indigo-900: #1209ae;--color-indigo-1000: #0c008a;--color-indigo-1100: #00106a;--color-indigo-1200: #030047;--color-grey-0: #ffffff;--color-grey-100: #f3f3f4;--color-grey-200: #ececee;--color-grey-300: #e4e4e7;--color-grey-400: #cdcfd5;--color-grey-500: #a6aab4;--color-grey-600: #9095a2;--color-grey-700: #6f7281;--color-grey-800: #616371;--color-grey-900: #494d5f;--color-grey-1000: #31333f;--color-grey-1100: #282b3a;--color-grey-1200: #1d1f2a;--color-green-100: #ecfdf3;--color-green-200: #dcfae6;--color-green-250: #d2fad1;--color-green-300: #a9efc5;--color-green-400: #75e0a7;--color-green-450: #74e489;--color-green-500: #47cd89;--color-green-600: #17b26a;--color-green-700: #089b5d;--color-green-800: #067647;--color-green-900: #044e2e;--color-green-1000: #053321;--color-green-1100: #055040;--color-red-50: #fde3d7;--color-red-100: #fef3f2;--color-red-200: #fee4e2;--color-red-300: #fecdca;--color-red-350: #f79788;--color-red-400: #fda7a0;--color-red-500: #fa887f;--color-red-600: #f97066;--color-red-700: #f04438;--color-red-800: #d92d20;--color-red-900: #b42318;--color-red-1000: #912018;--color-red-1100: #6e0b32;--color-yellow-100: #fffaeb;--color-yellow-200: #fdf4ce;--color-yellow-300: #fedf89;--color-yellow-400: #ffc142;--color-yellow-450: #e8a011;--color-yellow-500: #fdb022;--color-yellow-600: #f79009;--color-yellow-700: #dc6803;--color-yellow-800: #b54708;--color-yellow-900: #93370d;--color-yellow-1000: #4e1d09;--color-yellow-1100: #6f3c03;--color-purple-50: #eee0ff;--color-purple-100: #dabaff;--color-purple-300: #bc87ff;--color-purple-500: #9346ed;--color-purple-700: #5a11b0;--color-purple-900: #33087e;--color-blue-100: #cfecfd;--color-blue-300: #70b8f3;--color-blue-500: #176fd7;--color-blue-700: #0b409a;--color-blue-900: #041f67;--color-teal-50: #e8f9fd;--color-teal-100: #9de2e5;--color-teal-300: #56cccc;--color-teal-500: #01a3ae;--color-teal-700: #007d8c;--color-teal-900: #02576a;--color-orange-100: #feead5;--color-orange-300: #f9af82;--color-orange-500: #ec5c31;--color-orange-700: #a92518;--color-orange-900: #71090f;--color-magenta-50: #ffe6e6;--color-magenta-100: #ffbdcc;--color-magenta-300: #f582a0;--color-magenta-500: #cd1d5c;--color-magenta-700: #8d0450;--color-magenta-900: #62054b;--color-brown-100: #f7ecdd;--color-brown-300: #d2ae90;--color-brown-500: #6b4533;--color-brown-700: #4d2319;--color-brown-900: #330c09;--color-slate-100: #f1f1f3;--color-slate-200: #e6e6ea;--color-slate-300: #dedee3;--color-slate-400: #ced0d6;--color-slate-500: #aeb2bc;--color-slate-600: #9da0a8;--color-slate-700: #7f838a;--color-slate-800: #45484f;--color-slate-900: #393b41;--color-slate-1000: #2b2c31;--color-slate-1100: #18191b;--color-slate-1200: #0f0f0f;--color-slate-000: #ffffff}.light-theme[_ngcontent-%COMP%]{--color-background-standard: #f0f4ff;--color-background-inverse: #ffffff;--color-background-subtler: #f3f3f4;--color-background-brand: #1929d6;--color-background-brand-bolder: #00106a;--color-background-brand-subtle: #c5d8ff;--color-background-brand-subtler: #dde8ff;--color-background-disabled: #ececee;--color-background-subtle: #cdcfd5;--color-background-success-subtle: #ecfdf3;--color-background-success-bold: #75e0a7;--color-background-success-bolder: #089b5d;--color-background-warning-subtle: #fffaeb;--color-background-warning-bold: #ffc142;--color-background-warning-bolder: #4e1d09;--color-background-error-subtle: #fef3f2;--color-background-error-bold: #d92d20;--color-background-bold: #9095a2;--color-background-boldest: #1d1f2a;--color-decorative-orange-subtle: #feead5;--color-decorative-blue-subtle: #cfecfd;--color-decorative-purple-subtle: #eee0ff;--color-decorative-teal-subtle: #e8f9fd;--color-decorative-magenta-subtle: #ffe6e6;--color-decorative-brown-subtle: #f7ecdd;--color-decorative-yellow-subtle: #fdf4ce;--color-decorative-green-subtle: #dcfae6;--color-decorative-yellow: #fedf89;--color-decorative-green: #a9efc5;--color-decorative-orange: #f9af82;--color-decorative-blue: #70b8f3;--color-decorative-purple: #bc87ff;--color-decorative-teal: #56cccc;--color-decorative-magenta: #f582a0;--color-decorative-brown: #d2ae90;--color-decorative-yellow-bold: #dc6803;--color-decorative-green-bold: #17b26a;--color-decorative-orange-bold: #a92518;--color-decorative-blue-bold: #0b409a;--color-decorative-purple-bold: #5a11b0;
1--color-decorative-teal-bold: #007d8c;--color-decorative-magenta-bold: #8d0450;--color-border-standard: #cdcfd5;--color-border-subtle: #e4e4e7;--color-border-brand: #1929d6;--color-border-disabled: #ececee;--color-border-bold: #9095a2;--color-border-success-subtle: #75e0a7;--color-border-success-bold: #089b5d;--color-border-warning-subtle: #ffc142;--color-border-error-subtle: #fa887f;--color-border-warning-bold: #dc6803;--color-border-error-bold: #f04438;--color-border-focus: #5273ff;--color-border-brand-subtler: #c5d8ff;--color-border-brand-subtlest: #dde8ff;--color-border-brand-subtle: #a4bcff;--color-border-brand-bolder: #00106a;--color-text-standard: #282b3a;--color-text-secondary: #494d5f;--color-text-tertiary: #6f7281;--color-text-brand-bold: #00106a;--color-text-brand: #1929d6;--color-text-disabled: #a6aab4;--color-text-success-subtle: #75e0a7;--color-text-success-bold: #067647;--color-text-success-bolder: #067647;--color-text-warning-subtle: #ffc142;--color-text-warning-bold: #b54708;--color-text-warning-bolder: #b54708;--color-text-error-subtle: #fa887f;--color-text-error-bold: #d92d20;--color-text-error-bolder: #6e0b32;--color-text-inverse: #ffffff;--color-text-brand-subtle: #6b91fd;--color-icon-standard: #616371;--color-icon-secondary: #9095a2;--color-icon-brand: #1929d6;--color-icon-brand-bold: #00106a;--color-icon-brand-subtle: #6b91fd;--color-icon-success-subtle: #75e0a7;--color-icon-success-bold: #089b5d;--color-icon-warning-subtle: #ffc142;--color-icon-warning-bold: #b54708;--color-icon-warning-bolder: #b54708;--color-icon-error-subtle: #fa887f;--color-icon-error-bold: #d92d20;--color-icon-orange-subtle: #ec5c31;--color-icon-blue-subtle: #176fd7;--color-icon-purple-subtle: #9346ed;--color-icon-teal-subtle: #01a3ae;--color-icon-magenta-subtle: #cd1d5c;--color-icon-brown-subtle: #6b4533;--color-icon-error-bolder: #d92d20;--color-icon-orange-bold: #a92518;--color-icon-blue-bold: #0b409a;--color-icon-teal-bold: #007d8c;--color-icon-magenta-bold: #8d0450;--color-icon-purple-bold: #5a11b0;--color-icon-brown-bold: #4d2319;--color-icon-inverse: #ffffff;--color-icon-disabled: #6f7281;--color-link-standard: #1929d6;--color-link-active: #00106a;--color-link-hover: #0c008a;--color-link-visited: #1209ae;--color-opacity-0: rgba(#1d1f2a, .2)}.mat-mdc-tooltip[_ngcontent-%COMP%]{--mat-tooltip-supporting-text-font: Figtree;--mat-tooltip-supporting-text-weight: 525;--mat-tooltip-supporting-text-size: .75rem;--mat-tooltip-supporting-text-line-height: 1rem}.mat-mdc-tooltip-panel[_ngcontent-%COMP%] .mdc-tooltip[_ngcontent-%COMP%]{position:relative;overflow:initial}.mat-mdc-tooltip-panel[_ngcontent-%COMP%] .mdc-tooltip[_ngcontent-%COMP%]:after{width:1rem;height:.75rem;content:url(\'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 9"><path d="M5.20759 1.02937C5.6079 0.509358 6.3921 0.509358 6.79241 1.02937L11.6888 7.39001C12.195 8.04757 11.7263 9 10.8964 9H1.10358C0.273737 9 -0.195026 8.04757 0.311171 7.39001L5.20759 1.02937Z" fill="%2300106a"/></svg>\');display:inline-block;position:absolute}.dark-theme[_ngcontent-%COMP%] .mat-mdc-tooltip-panel[_ngcontent-%COMP%] .mdc-tooltip[_ngcontent-%COMP%]:after{content:url(\'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 9"><path d="M5.20759 1.02937C5.6079 0.509358 6.3921 0.509358 6.79241 1.02937L11.6888 7.39001C12.195 8.04757 11.7263 9 10.8964 9H1.10358C0.273737 9 -0.195026 8.04757 0.311171 7.39001L5.20759 1.02937Z" fill="%236B91FD"/></svg>\')}.mat-mdc-tooltip-panel-below[_ngcontent-%COMP%] .mdc-tooltip[_ngcontent-%COMP%]:after{top:-.75rem;right:calc(50% - .5rem);transform:rotate(0)}.mat-mdc-tooltip-panel-above[_ngcontent-%COMP%] .mdc-tooltip[_ngcontent-%COMP%]:after{bottom:-.75rem;right:calc(50% - .5rem);transform:rotate(180deg)}.mat-mdc-tooltip-panel-right[_ngcontent-%COMP%] .mdc-tooltip[_ngcontent-%COMP%]:after{left:-.875rem;top:calc(50% - .375rem);transform:rotate(270deg)}.mat-mdc-tooltip-panel-left[_ngcontent-%COMP%] .mdc-tooltip[_ngcontent-%COMP%]:after{right:-.875rem;top:calc(50% - .375rem);transform:rotate(90deg)}.mat-mdc-tooltip.mat-mdc-tooltip[_ngcontent-%COMP%] .mdc-tooltip__surface[_ngcontent-%COMP%]{background-color:var(--color-background-brand-bolder);padding:.5rem .75rem;border-radius:.5rem}@font-face{font-family:Material Icons;font-style:normal;font-weight:400;
1src:url(https://fonts.gstatic.com/s/materialicons/v92/flUhRq6tzZclQEJ-Vdg-IuiaDsNcIhQ8tQ.eot);src:local("Material Icons"),local("MaterialIcons-Regular"),url(https://fonts.gstatic.com/s/materialicons/v92/flUhRq6tzZclQEJ-Vdg-IuiaDsNcIhQ8tQ.woff2) format("woff2"),url(https://fonts.gstatic.com/s/materialicons/v92/flUhRq6tzZclQEJ-Vdg-IuiaDsNcIhQ8tQ.woff) format("woff"),url(https://fonts.gstatic.com/s/materialicons/v92/flUhRq6tzZclQEJ-Vdg-IuiaDsNcIhQ8tQ.ttf) format("truetype");font-display:block}.tide-currency-sub-unit[_ngcontent-%COMP%]{font-size:.78125rem}.balance-currency-sub-unit[_ngcontent-%COMP%]{font-size:1.3671875rem}[_nghost-%COMP%]{display:flex;flex-direction:column;gap:1rem}[_nghost-%COMP%] img[_ngcontent-%COMP%]{align-self:center;max-width:21.875rem;margin-bottom:1.5rem}[_nghost-%COMP%] footer[_ngcontent-%COMP%]{margin-top:1.5rem}[_nghost-%COMP%] footer[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:first-child{margin-right:1.25rem}']})}}return c})();var to=l(81128),bo=l(71093),fo=l(93587),j=l(50574),uo=l(60130),lo=l(16337),co=l(85563),go=l(12652),Q=l(90353),mo=l(41025),_o=l(20943),po=l(93204),vo=l(88453),_=l(48765),N=l(29604),s=l(56118);const b=c=>({title:"",rightIcon:c,isRightIconPdsSvg:!0});function g(c,M){if(1&c&&(o.\u0275\u0275text(0),o.\u0275\u0275pipe(1,"tideInitials")),2&c){const t=o.\u0275\u0275nextContext().$implicit;o.\u0275\u0275textInterpolate1(" ",o.\u0275\u0275pipeBind1(1,1,t.firstName+" "+t.lastName)," ")}}function f(c,M){if(1&c&&(o.\u0275\u0275text(0),o.\u0275\u0275pipe(1,"tideInitials")),2&c){const t=o.\u0275\u0275nextContext().$implicit;o.\u0275\u0275textInterpolate1(" ",o.\u0275\u0275pipeBind1(1,1,t.name)," ")}}function A(c,M){1&c&&(o.\u0275\u0275elementStart(0,"span"),o.\u0275\u0275text(1,"(you)"),o.\u0275\u0275elementEnd())}function a(c,M){if(1&c&&(o.\u0275\u0275text(0),o.\u0275\u0275pipe(1,"titlecase"),o.\u0275\u0275pipe(2,"titlecase"),o.\u0275\u0275conditionalCreate(3,A,2,0,"span")),2&c){const t=o.\u0275\u0275nextContext().$implicit;o.\u0275\u0275textInterpolate2(" ",o.\u0275\u0275pipeBind1(1,3,t.firstName.toString().trim())," ",o.\u0275\u0275pipeBind1(2,5,t.lastName.toString().trim())," "),o.\u0275\u0275advance(3),o.\u0275\u0275conditional(t?.isApplicant?3:-1)}}function m(c,M){if(1&c&&(o.\u0275\u0275text(0),o.\u0275\u0275pipe(1,"titlecase")),2&c){const t=o.\u0275\u0275nextContext().$implicit;o.\u0275\u0275textInterpolate1(" ",o.\u0275\u0275pipeBind1(1,1,t.name.toString())," ")}}function p(c,M){1&c&&o.\u0275\u0275text(0," / Director ")}function E(c,M){if(1&c&&(o.\u0275\u0275text(0," UBO "),o.\u0275\u0275conditionalCreate(1,p,1,0)),2&c){const t=o.\u0275\u0275nextContext().$implicit;o.\u0275\u0275advance(),o.\u0275\u0275conditional(t?.director?1:-1)}}function H(c,M){1&c&&(o.\u0275\u0275elementContainerStart(0),o.\u0275\u0275i18n(1,0),o.\u0275\u0275elementContainerEnd())}function Oo(c,M){1&c&&(o.\u0275\u0275elementStart(0,"tide-tag",9),o.\u0275\u0275text(1," Details needed "),o.\u0275\u0275elementEnd())}function Mo(c,M){1&c&&(o.\u0275\u0275elementStart(0,"tide-tag",10),o.\u0275\u0275text(1," Confirmed "),o.\u0275\u0275elementEnd())}function Po(c,M){if(1&c&&(o.\u0275\u0275elementStart(0,"div"),o.\u0275\u0275conditionalCreate(1,Oo,2,0,"tide-tag",9),o.\u0275\u0275conditionalCreate(2,Mo,2,0,"tide-tag",10),o.\u0275\u0275elementEnd()),2&c){const t=o.\u0275\u0275nextContext().$implicit,n=o.\u0275\u0275nextContext();o.\u0275\u0275advance(),o.\u0275\u0275conditional(n.isUboValid(t)?-1:1),o.\u
10275\u0275advance(),o.\u0275\u0275conditional(n.isUboValid(t)?2:-1)}}function xo(c,M){if(1&c){const t=o.\u0275\u0275getCurrentView();o.\u0275\u0275elementStart(0,"tide-list-item",3),o.\u0275\u0275listener("click",function(){const i=o.\u0275\u0275restoreView(t).$implicit,w=o.\u0275\u0275nextContext();return o.\u0275\u0275resetView(w.openUbo(i))}),o.\u0275\u0275elementStart(1,"div",4)(2,"span",5),o.\u0275\u0275conditionalCreate(3,g,2,3)(4,f,2,3),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(5,"div",6)(6,"span",7),o.\u0275\u0275conditionalCreate(7,a,4,7)(8,m,2,3),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(9,"span",8),o.\u0275\u0275conditionalCreate(10,E,2,1),o.\u0275\u0275conditionalCreate(11,H,2,0,"ng-container"),o.\u0275\u0275elementEnd(),o.\u0275\u0275conditionalCreate(12,Po,3,2,"div"),o.\u0275\u0275elementEnd()()()}if(2&c){const t=M.$implicit,n=o.\u0275\u0275nextContext();o.\u0275\u0275property("autoHeight",!0)("data",o.\u0275\u0275pureFunction1(11,b,n.ePdsIcons.ChevronRight)),o.\u0275\u0275advance(3),o.\u0275\u0275conditional(t.type===n.eShareholderType.Individual?3:4),o.\u0275\u0275advance(3),o.\u0275\u0275classProp("confirmed",n.showProgress&&n.isUboValid(t)),o.\u0275\u0275advance(),o.\u0275\u0275conditional(t.type===n.eShareholderType.Individual?7:8),o.\u0275\u0275advance(2),o.\u0275\u0275classProp("confirmed",n.showProgress&&n.isUboValid(t)),o.\u0275\u0275advance(),o.\u0275\u0275conditional(t?.shareholder&&!n.showDirectorsOnly?10:-1),o.\u0275\u0275advance(),o.\u0275\u0275conditional(!t?.director||!n.showDirectorsOnly&&t?.shareholder?-1:11),o.\u0275\u0275advance(),o.\u0275\u0275conditional(n.showProgress?12:-1)}}let ho=(()=>{class c{constructor(t){this._uboDataService=t,this.eShareholderType=j.Lx,this.showProgress=!1,this.showDirectorsOnly=!1,this.uboSelected=new o.EventEmitter,this.ePdsIcons=mo.b}openUbo(t){if(!t.shareholder&&t.isApplicant&&t.director&&this.isUboValid(t))return null;this.uboSelected.emit(t)}isUboValid(t){return this._uboDataService.isUboValid(t)}static{this.\u0275fac=function(n){return new(n||c)(o.\u0275\u0275directiveInject(e.G))}}static{this.\u0275cmp=o.\u0275\u0275defineComponent({type:c,selectors:[["twa-ubo-shared-multi-list"]],inputs:{ubosList:"ubosList",showProgress:"showProgress",showDirectorsOnly:"showDirectorsOnly"},outputs:{uboSelected:"uboSelected"},standalone:!1,decls:3,vars:0,consts:()=>{let t;return t=" Director ",[t,["tideList",""],["type","navigation","data-testid","ubo-details",3,"autoHeight","data"],["type","navigation","data-testid","ubo-details",3,"click","autoHeight","data"],["top-left","",1,"header"],[1,"tide-initials-circle"],[1,"name"],[1,"tide-body-1","mb"],[1,"tide-body-3","description","mb"],["status","input-needed","size","sm"],["status","success","size","sm"]]},template:function(n,i){1&n&&(o.\u0275\u0275elementStart(0,"mat-nav-list",1),o.\u0275\u0275repeaterCreate(1,xo,13,13,"tide-list-item",2,o.\u0275\u0275repeaterTrackByIdentity),o.\u0275\u0275elementEnd()),2&n&&(o.\u0275\u0275advance(),o.\u0275\u0275repeater(i.ubosList))},dependencies:[_o._L,po.P,vo.U,_.e,N.TitleCasePipe,s.G],styles:['[_ngcontent-%COMP%]:root{--color-background-standard: #f0f4ff;--color-background-inverse: #ffffff;--color-background-subtler: #f3f3f4;--color-background-brand: #1929d6;--color-background-brand-bolder: #00106a;--color-background-brand-subtle: #c5d8ff;--color-background-brand-subtler: #dde8ff;--color-background-disabled: #ececee;--color-background-subtle: #cdcfd5;--color-background-success-subtle: #ecfdf3;--color-background-success-bold: #75e0a7;--color-background-success-bolder: #089b5d;--color-background-warning-subtle: #fffaeb;--color-background-warning-bold: #ffc142;--color-background-warning-bolder: #4e1d09;--color-background-error-subtle: #fef3f2;--color-background-error-bold: #d92d20;--color-background-bold: #9095a2;--color-background-boldest: #1d1f2a;--color-decorative-orange-subtle: #feead5;--color-decorative-blue-subtle: #cfecfd;--color-decorative-purple-subtle: #eee0ff;--color-decorative-teal-subtle: #e8f9fd;--color-decorative-magenta-subtle: #ffe6e6;--color-decorative-brown-subtle: #f7ecdd;--color-decorative-yellow-subtle: #fdf4ce;--color-decorative-green-subtle: #dcfae6;--color-decorative-yellow: #fedf89;--color-decorative-green: #a9efc5;--color-decorative-orange: #f9af82;--color-decorative-blue: #70b8f3;--color-decorative-purple: #bc87ff;--color-decorative-teal: #56cccc;--color-decorative-magenta: #f582a0;--color-decorative-brown: #d2ae90;--color-decorative-yellow-bold: #dc6803;--color-decorative-green-bold: #17b26a;--color-decorative-orange-bold: #a92518;--color-decorative-blue-bold: #0b409a;--color-decorative-purple-bold: #5a11b0;
1--color-decorative-teal-bold: #007d8c;--color-decorative-magenta-bold: #8d0450;--color-border-standard: #cdcfd5;--color-border-subtle: #e4e4e7;--color-border-brand: #1929d6;--color-border-disabled: #ececee;--color-border-bold: #9095a2;--color-border-success-subtle: #75e0a7;--color-border-success-bold: #089b5d;--color-border-warning-subtle: #ffc142;--color-border-error-subtle: #fa887f;--color-border-warning-bold: #dc6803;--color-border-error-bold: #f04438;--color-border-focus: #5273ff;--color-border-brand-subtler: #c5d8ff;--color-border-brand-subtlest: #dde8ff;--color-border-brand-subtle: #a4bcff;--color-border-brand-bolder: #00106a;--color-text-standard: #282b3a;--color-text-secondary: #494d5f;--color-text-tertiary: #6f7281;--color-text-brand-bold: #00106a;--color-text-brand: #1929d6;--color-text-disabled: #a6aab4;--color-text-success-subtle: #75e0a7;--color-text-success-bold: #067647;--color-text-success-bolder: #067647;--color-text-warning-subtle: #ffc142;--color-text-warning-bold: #b54708;--color-text-warning-bolder: #b54708;--color-text-error-subtle: #fa887f;--color-text-error-bold: #d92d20;--color-text-error-bolder: #6e0b32;--color-text-inverse: #ffffff;--color-text-brand-subtle: #6b91fd;--color-icon-standard: #616371;--color-icon-secondary: #9095a2;--color-icon-brand: #1929d6;--color-icon-brand-bold: #00106a;--color-icon-brand-subtle: #6b91fd;--color-icon-success-subtle: #75e0a7;--color-icon-success-bold: #089b5d;--color-icon-warning-subtle: #ffc142;--color-icon-warning-bold: #b54708;--color-icon-warning-bolder: #b54708;--color-icon-error-subtle: #fa887f;--color-icon-error-bold: #d92d20;--color-icon-orange-subtle: #ec5c31;--color-icon-blue-subtle: #176fd7;--color-icon-purple-subtle: #9346ed;--color-icon-teal-subtle: #01a3ae;--color-icon-magenta-subtle: #cd1d5c;--color-icon-brown-subtle: #6b4533;--color-icon-error-bolder: #d92d20;--color-icon-orange-bold: #a92518;--color-icon-blue-bold: #0b409a;--color-icon-teal-bold: #007d8c;--color-icon-magenta-bold: #8d0450;--color-icon-purple-bold: #5a11b0;--color-icon-brown-bold: #4d2319;--color-icon-inverse: #ffffff;--color-icon-disabled: #6f7281;--color-link-standard: #1929d6;--color-link-active: #00106a;--color-link-hover: #0c008a;--color-link-visited: #1209ae;--color-opacity-0: rgba(#1d1f2a, .2)}[_ngcontent-%COMP%]:root{--color-indigo-100: #f0f4ff;--color-indigo-200: #dde8ff;--color-indigo-300: #c5d8ff;--color-indigo-400: #a4bcff;--color-indigo-500: #6b91fd;--color-indigo-600: #5273ff;--color-indigo-700: #3746ec;--color-indigo-800: #1929d6;--color-indigo-900: #1209ae;--color-indigo-1000: #0c008a;--color-indigo-1100: #00106a;--color-indigo-1200: #030047;--color-grey-0: #ffffff;--color-grey-100: #f3f3f4;--color-grey-200: #ececee;--color-grey-300: #e4e4e7;--color-grey-400: #cdcfd5;--color-grey-500: #a6aab4;--color-grey-600: #9095a2;--color-grey-700: #6f7281;--color-grey-800: #616371;--color-grey-900: #494d5f;--color-grey-1000: #31333f;--color-grey-1100: #282b3a;--color-grey-1200: #1d1f2a;--color-green-100: #ecfdf3;--color-green-200: #dcfae6;--color-green-250: #d2fad1;--color-green-300: #a9efc5;--color-green-400: #75e0a7;--color-green-450: #74e489;--color-green-500: #47cd89;--color-green-600: #17b26a;--color-green-700: #089b5d;--color-green-800: #067647;--color-green-900: #044e2e;--color-green-1000: #053321;--color-green-1100: #055040;--color-red-50: #fde3d7;--color-red-100: #fef3f2;--color-red-200: #fee4e2;--color-red-300: #fecdca;--color-red-350: #f79788;--color-red-400: #fda7a0;--color-red-500: #fa887f;--color-red-600: #f97066;--color-red-700: #f04438;--color-red-800: #d92d20;--color-red-900: #b42318;--color-red-1000: #912018;--color-red-1100: #6e0b32;--color-yellow-100: #fffaeb;--color-yellow-200: #fdf4ce;--color-yellow-300: #fedf89;--color-yellow-400: #ffc142;--color-yellow-450: #e8a011;--color-yellow-500: #fdb022;--color-yellow-600: #f79009;--color-yellow-700: #dc6803;--color-yellow-800: #b54708;--color-yellow-900: #93370d;--color-yellow-1000: #4e1d09;--color-yellow-1100: #6f3c03;--color-purple-50: #eee0ff;--color-purple-100: #dabaff;--color-purple-300: #bc87ff;--color-purple-500: #9346ed;--color-purple-700: #5a11b0;
1--color-purple-900: #33087e;--color-blue-100: #cfecfd;--color-blue-300: #70b8f3;--color-blue-500: #176fd7;--color-blue-700: #0b409a;--color-blue-900: #041f67;--color-teal-50: #e8f9fd;--color-teal-100: #9de2e5;--color-teal-300: #56cccc;--color-teal-500: #01a3ae;--color-teal-700: #007d8c;--color-teal-900: #02576a;--color-orange-100: #feead5;--color-orange-300: #f9af82;--color-orange-500: #ec5c31;--color-orange-700: #a92518;--color-orange-900: #71090f;--color-magenta-50: #ffe6e6;--color-magenta-100: #ffbdcc;--color-magenta-300: #f582a0;--color-magenta-500: #cd1d5c;--color-magenta-700: #8d0450;--color-magenta-900: #62054b;--color-brown-100: #f7ecdd;--color-brown-300: #d2ae90;--color-brown-500: #6b4533;--color-brown-700: #4d2319;--color-brown-900: #330c09;--color-slate-100: #f1f1f3;--color-slate-200: #e6e6ea;--color-slate-300: #dedee3;--color-slate-400: #ced0d6;--color-slate-500: #aeb2bc;--color-slate-600: #9da0a8;--color-slate-700: #7f838a;--color-slate-800: #45484f;--color-slate-900: #393b41;--color-slate-1000: #2b2c31;--color-slate-1100: #18191b;--color-slate-1200: #0f0f0f;--color-slate-000: #ffffff}.light-theme[_ngcontent-%COMP%]{--color-background-standard: #f0f4ff;--color-background-inverse: #ffffff;--color-background-subtler: #f3f3f4;--color-background-brand: #1929d6;--color-background-brand-bolder: #00106a;--color-background-brand-subtle: #c5d8ff;--color-background-brand-subtler: #dde8ff;--color-background-disabled: #ececee;--color-background-subtle: #cdcfd5;--color-background-success-subtle: #ecfdf3;--color-background-success-bold: #75e0a7;--color-background-success-bolder: #089b5d;--color-background-warning-subtle: #fffaeb;--color-background-warning-bold: #ffc142;--color-background-warning-bolder: #4e1d09;--color-background-error-subtle: #fef3f2;--color-background-error-bold: #d92d20;--color-background-bold: #9095a2;--color-background-boldest: #1d1f2a;--color-decorative-orange-subtle: #feead5;--color-decorative-blue-subtle: #cfecfd;--color-decorative-purple-subtle: #eee0ff;--color-decorative-teal-subtle: #e8f9fd;--color-decorative-magenta-subtle: #ffe6e6;--color-decorative-brown-subtle: #f7ecdd;--color-decorative-yellow-subtle: #fdf4ce;--color-decorative-green-subtle: #dcfae6;--color-decorative-yellow: #fedf89;--color-decorative-green: #a9efc5;--color-decorative-orange: #f9af82;--color-decorative-blue: #70b8f3;--color-decorative-purple: #bc87ff;--color-decorative-teal: #56cccc;--color-decorative-magenta: #f582a0;--color-decorative-brown: #d2ae90;--color-decorative-yellow-bold: #dc6803;--color-decorative-green-bold: #17b26a;--color-decorative-orange-bold: #a92518;--color-decorative-blue-bold: #0b409a;--color-decorative-purple-bold: #5a11b0;--color-decorative-teal-bold: #007d8c;--color-decorative-magenta-bold: #8d0450;--color-border-standard: #cdcfd5;--color-border-subtle: #e4e4e7;--color-border-brand: #1929d6;--color-border-disabled: #ececee;--color-border-bold: #9095a2;--color-border-success-subtle: #75e0a7;--color-border-success-bold: #089b5d;--color-border-warning-subtle: #ffc142;--color-border-error-subtle: #fa887f;--color-border-warning-bold: #dc6803;--color-border-error-bold: #f04438;--color-border-focus: #5273ff;--color-border-brand-subtler: #c5d8ff;--color-border-brand-subtlest: #dde8ff;--color-border-brand-subtle: #a4bcff;--color-border-brand-bolder: #00106a;--color-text-standard: #282b3a;--color-text-secondary: #494d5f;--color-text-tertiary: #6f7281;--color-text-brand-bold: #00106a;--color-text-brand: #1929d6;--color-text-disabled: #a6aab4;--color-text-success-subtle: #75e0a7;--color-text-success-bold: #067647;--color-text-success-bolder: #067647;--color-text-warning-subtle: #ffc142;--color-text-warning-bold: #b54708;--color-text-warning-bolder: #b54708;--color-text-error-subtle: #fa887f;--color-text-error-bold: #d92d20;--color-text-error-bolder: #6e0b32;--color-text-inverse: #ffffff;--color-text-brand-subtle: #6b91fd;--color-icon-standard: #616371;--color-icon-secondary: #9095a2;--color-icon-brand: #1929d6;--color-icon-brand-bold: #00106a;--color-icon-brand-subtle: #6b91fd;--color-icon-success-subtle: #75e0a7;--color-icon-success-bold: #089b5d;--color-icon-warning-subtle: #ffc142;--color-icon-warning-bold: #b54708;--color-icon-warning-bolder: #b54708;--color-icon-error-subtle: #fa887f;--color-icon-error-bold: #d92d20;--color-icon-orange-subtle: #ec5c31;--color-icon-blue-subtle: #176fd7;--color-icon-purple-subtle: #9346ed;--color-icon-teal-subtle: #01a3ae;--color-icon-magenta-subtle: #cd1d5c;--color-icon-brown-subtle: #6b4533;--color-icon-error-bolder: #d92d20;--color-icon-orange-bold: #a92518;--color-icon-blue-bold: #0b409a;--color-icon-teal-bold: #007d8c;--color-icon-magenta-bold: #8d0450;--color-icon-purple-bold: #5a11b0;
1--color-icon-brown-bold: #4d2319;--color-icon-inverse: #ffffff;--color-icon-disabled: #6f7281;--color-link-standard: #1929d6;--color-link-active: #00106a;--color-link-hover: #0c008a;--color-link-visited: #1209ae;--color-opacity-0: rgba(#1d1f2a, .2)}.mat-mdc-tooltip[_ngcontent-%COMP%]{--mat-tooltip-supporting-text-font: Figtree;--mat-tooltip-supporting-text-weight: 525;--mat-tooltip-supporting-text-size: .75rem;--mat-tooltip-supporting-text-line-height: 1rem}.mat-mdc-tooltip-panel[_ngcontent-%COMP%] .mdc-tooltip[_ngcontent-%COMP%]{position:relative;overflow:initial}.mat-mdc-tooltip-panel[_ngcontent-%COMP%] .mdc-tooltip[_ngcontent-%COMP%]:after{width:1rem;height:.75rem;content:url(\'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 9"><path d="M5.20759 1.02937C5.6079 0.509358 6.3921 0.509358 6.79241 1.02937L11.6888 7.39001C12.195 8.04757 11.7263 9 10.8964 9H1.10358C0.273737 9 -0.195026 8.04757 0.311171 7.39001L5.20759 1.02937Z" fill="%2300106a"/></svg>\');display:inline-block;position:absolute}.dark-theme[_ngcontent-%COMP%] .mat-mdc-tooltip-panel[_ngcontent-%COMP%] .mdc-tooltip[_ngcontent-%COMP%]:after{content:url(\'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 9"><path d="M5.20759 1.02937C5.6079 0.509358 6.3921 0.509358 6.79241 1.02937L11.6888 7.39001C12.195 8.04757 11.7263 9 10.8964 9H1.10358C0.273737 9 -0.195026 8.04757 0.311171 7.39001L5.20759 1.02937Z" fill="%236B91FD"/></svg>\')}.mat-mdc-tooltip-panel-below[_ngcontent-%COMP%] .mdc-tooltip[_ngcontent-%COMP%]:after{top:-.75rem;right:calc(50% - .5rem);transform:rotate(0)}.mat-mdc-tooltip-panel-above[_ngcontent-%COMP%] .mdc-tooltip[_ngcontent-%COMP%]:after{bottom:-.75rem;right:calc(50% - .5rem);transform:rotate(180deg)}.mat-mdc-tooltip-panel-right[_ngcontent-%COMP%] .mdc-tooltip[_ngcontent-%COMP%]:after{left:-.875rem;top:calc(50% - .375rem);transform:rotate(270deg)}.mat-mdc-tooltip-panel-left[_ngcontent-%COMP%] .mdc-tooltip[_ngcontent-%COMP%]:after{right:-.875rem;top:calc(50% - .375rem);transform:rotate(90deg)}.mat-mdc-tooltip.mat-mdc-tooltip[_ngcontent-%COMP%] .mdc-tooltip__surface[_ngcontent-%COMP%]{background-color:var(--color-background-brand-bolder);padding:.5rem .75rem;border-radius:.5rem}@font-face{font-family:Material Icons;font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/materialicons/v92/flUhRq6tzZclQEJ-Vdg-IuiaDsNcIhQ8tQ.eot);src:local("Material Icons"),local("MaterialIcons-Regular"),url(https://fonts.gstatic.com/s/materialicons/v92/flUhRq6tzZclQEJ-Vdg-IuiaDsNcIhQ8tQ.woff2) format("woff2"),url(https://fonts.gstatic.com/s/materialicons/v92/flUhRq6tzZclQEJ-Vdg-IuiaDsNcIhQ8tQ.woff) format("woff"),url(https://fonts.gstatic.com/s/materialicons/v92/flUhRq6tzZclQEJ-Vdg-IuiaDsNcIhQ8tQ.ttf) format("truetype");font-display:block}.tide-currency-sub-unit[_ngcontent-%COMP%]{font-size:.78125rem}.balance-currency-sub-unit[_ngcontent-%COMP%]{font-size:1.3671875rem}[_nghost-%COMP%] .tide-list.mdc-list[_ngcontent-%COMP%]{background-color:var(--color-indigo-100)}[_nghost-%COMP%] .header[_ngcontent-%COMP%]{display:flex;flex-grow:1;gap:.75rem}[_nghost-%COMP%] .header[_ngcontent-%COMP%] .name[_ngcontent-%COMP%]{display:flex;flex-direction:column}[_nghost-%COMP%] .header[_ngcontent-%COMP%] .name[_ngcontent-%COMP%] .description[_ngcontent-%COMP%]{color:var(--color-grey-700)}[_nghost-%COMP%] .header[_ngcontent-%COMP%] .name[_ngcontent-%COMP%] .description.confirmed[_ngcontent-%COMP%]{color:var(--color-green-700)}[_nghost-%COMP%] .header[_ngcontent-%COMP%] .name[_ngcontent-%COMP%]{flex-grow:1}[_nghost-%COMP%] .header[_ngcontent-%COMP%] span.confirmed[_ngcontent-%COMP%]{color:var(--color-green-700)}[_nghost-%COMP%] tide-tag span.tide-status{text-transform:none!important}[_nghost-%COMP%] tide-list-item {background-color:var(--color-grey-0);margin-bottom:.25rem;border-radius:.5rem!important}[_nghost-%COMP%] .mb[_ngcontent-%COMP%]{margin-bottom:.25rem}[_nghost-%COMP%] .tide-initials-circle[_ngcontent-%COMP%]{display:inline-block;text-align:center;width:2rem;height:2rem;line-height:2rem;font-weight:400;font-size:.875rem;color:var(--color-indigo-1100);border-radius:50%;border:.0625rem solid var(--color-grey-300)}']})}}return c})();function So(c,M){if(1&c&&(o.\u0275\u0275elementStart(0,"section",0)(1,"h2"),o.\u0275\u0275text(2),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(3,"p",5),o.\u
10275\u0275text(4,"Select an individual to add any required details"),o.\u0275\u0275elementEnd()()),2&c){const t=o.\u0275\u0275nextContext();o.\u0275\u0275advance(2),o.\u0275\u0275textInterpolate1("We've found ",t.headerText)}}function Eo(c,M){if(1&c){const t=o.\u0275\u0275getCurrentView();o.\u0275\u0275elementStart(0,"div",2)(1,"button",6),o.\u0275\u0275listener("click",function(){o.\u0275\u0275restoreView(t);const i=o.\u0275\u0275nextContext();return o.\u0275\u0275resetView(i.addAnotherUbo())}),o.\u0275\u0275elementStart(2,"mat-icon"),o.\u0275\u0275text(3,"add"),o.\u0275\u0275elementEnd(),o.\u0275\u0275text(4,"Add another UBO"),o.\u0275\u0275elementEnd()()}}function No(c,M){1&c&&(o.\u0275\u0275elementStart(0,"mat-accordion",3)(1,"mat-expansion-panel")(2,"mat-expansion-panel-header")(3,"div",7)(4,"mat-panel-title")(5,"h5",5),o.\u0275\u0275text(6,"What is a UBO?"),o.\u0275\u0275elementEnd()()()(),o.\u0275\u0275elementStart(7,"p"),o.\u0275\u0275text(8," Ultimate Beneficial Owner (UBO) are individuals who directly or indirectly influence or exercise control on the business, or hold more than 25% of shares of your business, or hold more than 25% voting rights in the business or can appoint or remove board of directors from your business. "),o.\u0275\u0275elementEnd()(),o.\u0275\u0275elementStart(9,"mat-expansion-panel")(10,"mat-expansion-panel-header")(11,"div",7)(12,"mat-panel-title")(13,"h5",5),o.\u0275\u0275text(14,"What is a director?"),o.\u0275\u0275elementEnd()()()(),o.\u0275\u0275elementStart(15,"p"),o.\u0275\u0275text(16," A director is responsible for managing a company's day-to-day activities and finances. They must also make sure that information required by Companies House is filed on time and accurately. "),o.\u0275\u0275elementEnd()()())}function Io(c,M){if(1&c){const t=o.\u0275\u0275getCurrentView();o.\u0275\u0275elementStart(0,"button",8),o.\u0275\u0275listener("click",function(){o.\u0275\u0275restoreView(t);const i=o.\u0275\u0275nextContext();return o.\u0275\u0275resetView(i.next())}),o.\u0275\u0275text(1," Next "),o.\u0275\u0275elementEnd()}if(2&c){const t=o.\u0275\u0275nextContext();o.\u0275\u0275property("disabled",!t.isAllUbosValid())("loading",t.loading)}}let ko=(()=>{class c{constructor(t,n,i,w,L,W){this._stepperService=t,this._uboDataService=n,this._cd=i,this._store=w,this._sharedService=L,this._onboardingService=W,this.loading=!1,this._router=(0,o.inject)(to.Router),this._activatedRoute=(0,o.inject)(to.ActivatedRoute),this._subscription=new r.Subscription,this.headerText="",this.shouldShowHeader=!1,this.isUboNewAddFlowEnabled=!1}ngOnInit(){this.isUboNewAddFlowEnabled=this._onboardingService.isUboNewAddFlowEnabled,this._subscription.add(this._uboDataService?.submitUbo$?.pipe((0,fo.u5)()).subscribe(t=>{this.ubosList=this.ubosList?.map(n=>n.type===j.Lx.Individual&&n.firstName===t.firstName&&n.lastName===t.lastName||n.type===j.Lx.Business&&n.name===t.name&&n.number===t.number?{...n,...t}:n),this._uboDataService.setSubmitUbo(null),this._cd.detectChanges()})),this.uboCount=this.ubosList?.filter(t=>t?.shareholder)?.length||0,this.directorCount=this.ubosList?.filter(t=>t?.director)?.length||0,this._updateComputedValues()}openUbo(t){this._uboDataService.setUboData(t),this._router.navigate([co.G.UBO_INFO],{relativeTo:this._activatedRoute,state:{uboInfo:t}})}addAnotherUbo(){this._router.navigate([co.G.ADD_UBO],{relativeTo:this._activatedRoute})}next(){this.loading=!0;const n={business:{ubos:this.ubosList.map(i=>i.type===j.Lx.Individual&&i?.dateOfBirth?{...i,dateOfBirth:(0,uo.A)(new Date(i.dateOfBirth),bo.dY.DateFnsFormatYearMonthDate)}:i)}};this._store.dispatch((0,d.K3R)({payload:n})),this._sharedService.isApplicationUpdated().pipe((0,r.filter)(i=>i),(0,r.withLatestFrom)(this._store.select(h.S$)),(0,r.take)(1)).subscribe(([i,w])=>{i&&(this._store.dispatch((0,d.dRX)({applicationId:w})),this.loading=!1,this._stepperService.goNext(),this._cd.markForCheck())})}isAllUbosValid(){return this.ubosList.every(t=>this._uboDataService.isUboValid(t))}_updateComputedValues(){this.headerText=(0,lo.wj)(this.uboCount,this.directorCount),this.shouldShowHeader=(0,lo.e1)(this.uboCount,this.directorCount)}
1ngOnDestroy(){this._subscription.unsubscribe()}static{this.\u0275fac=function(n){return new(n||c)(o.\u0275\u0275directiveInject(k.y),o.\u0275\u0275directiveInject(e.G),o.\u0275\u0275directiveInject(o.ChangeDetectorRef),o.\u0275\u0275directiveInject(P.Store),o.\u0275\u0275directiveInject(v.d),o.\u0275\u0275directiveInject(x.x))}}static{this.\u0275cmp=o.\u0275\u0275defineComponent({type:c,selectors:[["twa-ubo-multi-list-view"]],inputs:{ubosList:"ubosList"},standalone:!1,decls:6,vars:6,consts:[[1,"ubo-header"],[3,"uboSelected","ubosList","showProgress"],[1,"add-ubo-container"],[1,"info"],["tide-button","","color","primary","variant","primary","data-testid","ubo-next",3,"disabled","loading"],[1,"tide-body-1"],["actions","","tide-button","","variant","tertiary","size","small",3,"click"],[1,"header"],["tide-button","","color","primary","variant","primary","data-testid","ubo-next",3,"click","disabled","loading"]],template:function(n,i){1&n&&(o.\u0275\u0275conditionalCreate(0,So,5,1,"section",0),o.\u0275\u0275elementStart(1,"twa-ubo-shared-multi-list",1),o.\u0275\u0275listener("uboSelected",function(L){return i.openUbo(L)}),o.\u0275\u0275elementEnd(),o.\u0275\u0275conditionalCreate(2,Eo,5,0,"div",2),o.\u0275\u0275conditionalCreate(3,No,17,0,"mat-accordion",3),o.\u0275\u0275elementStart(4,"footer"),o.\u0275\u0275conditionalCreate(5,Io,2,2,"button",4),o.\u0275\u0275elementEnd()),2&n&&(o.\u0275\u0275conditional(i.shouldShowHeader?0:-1),o.\u0275\u0275advance(),o.\u0275\u0275property("ubosList",i.ubosList)("showProgress",!0),o.\u0275\u0275advance(),o.\u0275\u0275conditional(i.isUboNewAddFlowEnabled?2:-1),o.\u0275\u0275advance(),o.\u0275\u0275conditional(i.ubosList?.length?3:-1),o.\u0275\u0275advance(2),o.\u0275\u0275conditional(i.ubosList?.length?5:-1))},dependencies:[go.MatIcon,Q.BS,Q.GK,Q.Z2,Q.WN,$.o,ho],styles:['[_ngcontent-%COMP%]:root{--color-background-standard: #f0f4ff;--color-background-inverse: #ffffff;--color-background-subtler: #f3f3f4;--color-background-brand: #1929d6;--color-background-brand-bolder: #00106a;--color-background-brand-subtle: #c5d8ff;--color-background-brand-subtler: #dde8ff;--color-background-disabled: #ececee;--color-background-subtle: #cdcfd5;--color-background-success-subtle: #ecfdf3;--color-background-success-bold: #75e0a7;--color-background-success-bolder: #089b5d;--color-background-warning-subtle: #fffaeb;--color-background-warning-bold: #ffc142;--color-background-warning-bolder: #4e1d09;--color-background-error-subtle: #fef3f2;--color-background-error-bold: #d92d20;--color-background-bold: #9095a2;--color-background-boldest: #1d1f2a;--color-decorative-orange-subtle: #feead5;--color-decorative-blue-subtle: #cfecfd;--color-decorative-purple-subtle: #eee0ff;--color-decorative-teal-subtle: #e8f9fd;--color-decorative-magenta-subtle: #ffe6e6;--color-decorative-brown-subtle: #f7ecdd;--color-decorative-yellow-subtle: #fdf4ce;--color-decorative-green-subtle: #dcfae6;--color-decorative-yellow: #fedf89;--color-decorative-green: #a9efc5;--color-decorative-orange: #f9af82;--color-decorative-blue: #70b8f3;--color-decorative-purple: #bc87ff;--color-decorative-teal: #56cccc;--color-decorative-magenta: #f582a0;--color-decorative-brown: #d2ae90;--color-decorative-yellow-bold: #dc6803;--color-decorative-green-bold: #17b26a;--color-decorative-orange-bold: #a92518;--color-decorative-blue-bold: #0b409a;--color-decorative-purple-bold: #5a11b0;--color-decorative-teal-bold: #007d8c;--color-decorative-magenta-bold: #8d0450;--color-border-standard: #cdcfd5;--color-border-subtle: #e4e4e7;--color-border-brand: #1929d6;--color-border-disabled: #ececee;--color-border-bold: #9095a2;--color-border-success-subtle: #75e0a7;--color-border-success-bold: #089b5d;--color-border-warning-subtle: #ffc142;--color-border-error-subtle: #fa887f;--color-border-warning-bold: #dc6803;--color-border-error-bold: #f04438;--color-border-focus: #5273ff;--color-border-brand-subtler: #c5d8ff;--color-border-brand-subtlest: #dde8ff;--color-border-brand-subtle: #a4bcff;--color-border-brand-bolder: #00106a;--color-text-standard: #282b3a;--color-text-secondary: #494d5f;--color-text-tertiary: #6f7281;
1--color-text-brand-bold: #00106a;--color-text-brand: #1929d6;--color-text-disabled: #a6aab4;--color-text-success-subtle: #75e0a7;--color-text-success-bold: #067647;--color-text-success-bolder: #067647;--color-text-warning-subtle: #ffc142;--color-text-warning-bold: #b54708;--color-text-warning-bolder: #b54708;--color-text-error-subtle: #fa887f;--color-text-error-bold: #d92d20;--color-text-error-bolder: #6e0b32;--color-text-inverse: #ffffff;--color-text-brand-subtle: #6b91fd;--color-icon-standard: #616371;--color-icon-secondary: #9095a2;--color-icon-brand: #1929d6;--color-icon-brand-bold: #00106a;--color-icon-brand-subtle: #6b91fd;--color-icon-success-subtle: #75e0a7;--color-icon-success-bold: #089b5d;--color-icon-warning-subtle: #ffc142;--color-icon-warning-bold: #b54708;--color-icon-warning-bolder: #b54708;--color-icon-error-subtle: #fa887f;--color-icon-error-bold: #d92d20;--color-icon-orange-subtle: #ec5c31;--color-icon-blue-subtle: #176fd7;--color-icon-purple-subtle: #9346ed;--color-icon-teal-subtle: #01a3ae;--color-icon-magenta-subtle: #cd1d5c;--color-icon-brown-subtle: #6b4533;--color-icon-error-bolder: #d92d20;--color-icon-orange-bold: #a92518;--color-icon-blue-bold: #0b409a;--color-icon-teal-bold: #007d8c;--color-icon-magenta-bold: #8d0450;--color-icon-purple-bold: #5a11b0;--color-icon-brown-bold: #4d2319;--color-icon-inverse: #ffffff;--color-icon-disabled: #6f7281;--color-link-standard: #1929d6;--color-link-active: #00106a;--color-link-hover: #0c008a;--color-link-visited: #1209ae;--color-opacity-0: rgba(#1d1f2a, .2)}[_ngcontent-%COMP%]:root{--color-indigo-100: #f0f4ff;--color-indigo-200: #dde8ff;--color-indigo-300: #c5d8ff;--color-indigo-400: #a4bcff;--color-indigo-500: #6b91fd;--color-indigo-600: #5273ff;--color-indigo-700: #3746ec;--color-indigo-800: #1929d6;--color-indigo-900: #1209ae;--color-indigo-1000: #0c008a;--color-indigo-1100: #00106a;--color-indigo-1200: #030047;--color-grey-0: #ffffff;--color-grey-100: #f3f3f4;--color-grey-200: #ececee;--color-grey-300: #e4e4e7;--color-grey-400: #cdcfd5;--color-grey-500: #a6aab4;--color-grey-600: #9095a2;--color-grey-700: #6f7281;--color-grey-800: #616371;--color-grey-900: #494d5f;--color-grey-1000: #31333f;--color-grey-1100: #282b3a;--color-grey-1200: #1d1f2a;--color-green-100: #ecfdf3;--color-green-200: #dcfae6;--color-green-250: #d2fad1;--color-green-300: #a9efc5;--color-green-400: #75e0a7;--color-green-450: #74e489;--color-green-500: #47cd89;--color-green-600: #17b26a;--color-green-700: #089b5d;--color-green-800: #067647;--color-green-900: #044e2e;--color-green-1000: #053321;--color-green-1100: #055040;--color-red-50: #fde3d7;--color-red-100: #fef3f2;--color-red-200: #fee4e2;--color-red-300: #fecdca;--color-red-350: #f79788;--color-red-400: #fda7a0;--color-red-500: #fa887f;--color-red-600: #f97066;--color-red-700: #f04438;--color-red-800: #d92d20;--color-red-900: #b42318;--color-red-1000: #912018;--color-red-1100: #6e0b32;--color-yellow-100: #fffaeb;--color-yellow-200: #fdf4ce;--color-yellow-300: #fedf89;--color-yellow-400: #ffc142;--color-yellow-450: #e8a011;--color-yellow-500: #fdb022;--color-yellow-600: #f79009;--color-yellow-700: #dc6803;--color-yellow-800: #b54708;--color-yellow-900: #93370d;--color-yellow-1000: #4e1d09;--color-yellow-1100: #6f3c03;--color-purple-50: #eee0ff;--color-purple-100: #dabaff;--color-purple-300: #bc87ff;--color-purple-500: #9346ed;--color-purple-700: #5a11b0;--color-purple-900: #33087e;--color-blue-100: #cfecfd;--color-blue-300: #70b8f3;--color-blue-500: #176fd7;--color-blue-700: #0b409a;--color-blue-900: #041f67;--color-teal-50: #e8f9fd;--color-teal-100: #9de2e5;--color-teal-300: #56cccc;--color-teal-500: #01a3ae;--color-teal-700: #007d8c;--color-teal-900: #02576a;--color-orange-100: #feead5;--color-orange-300: #f9af82;--color-orange-500: #ec5c31;--color-orange-700: #a92518;--color-orange-900: #71090f;--color-magenta-50: #ffe6e6;--color-magenta-100: #ffbdcc;--color-magenta-300: #f582a0;--color-magenta-500: #cd1d5c;--color-magenta-700: #8d0450;--color-magenta-900: #62054b;--color-brown-100: #f7ecdd;--color-brown-300: #d2ae90;--color-brown-500: #6b4533;--color-brown-700: #4d2319;--color-brown-900: #330c09;--color-slate-100: #f1f1f3;--color-slate-200: #e6e6ea;--color-slate-300: #dedee3;--color-slate-400: #ced0d6;--color-slate-500: #aeb2bc;--color-slate-600: #9da0a8;--color-slate-700: #7f838a;--color-slate-800: #45484f;--color-slate-900: #393b41;--color-slate-1000: #2b2c31;--color-slate-1100: #18191b;--color-slate-1200: #0f0f0f;--color-slate-000: #ffffff}.light-theme[_ngcontent-%COMP%]{--color-background-standard: #f0f4ff;--color-background-inverse: #ffffff;--color-background-subtler: #f3f3f4;--color-background-brand: #1929d6;--color-background-brand-bolder: #00106a;--color-background-brand-subtle: #c5d8ff;--color-background-brand-subtler: #dde8ff;--color-background-disabled: #ececee;--color-background-subtle: #cdcfd5;--color-background-success-subtle: #ecfdf3;--color-background-success-bold: #75e0a7;--color-background-success-bolder: #089b5d;--color-background-warning-subtle: #fffaeb;--color-background-warning-bold: #ffc142;--color-background-warning-bolder: #4e1d09;--color-background-error-subtle: #fef3f2;--color-background-error-bold: #d92d20;--color-background-bold: #9095a2;--color-background-boldest: #1d1f2a;--color-decorative-orange-subtle: #feead5;--color-decorative-blue-subtle: #cfecfd;--color-decorative-purple-subtle: #eee0ff;--color-decorative-teal-subtle: #e8f9fd;--color-decorative-magenta-subtle: #ffe6e6;--color-decorative-brown-subtle: #f7ecdd;--color-decorative-yellow-subtle: #fdf4ce;--color-decorative-green-subtle: #dcfae6;--color-decorative-yellow: #fedf89;--color-decorative-green: #a9efc5;--color-decorative-orange: #f9af82;--color-decorative-blue: #70b8f3;--color-decorative-purple: #bc87ff;--color-decorative-teal: #56cccc;--color-decorative-magenta: #f582a0;--color-decorative-brown: #d2ae90;--color-decorative-yellow-bold: #dc6803;--color-decorative-green-bold: #17b26a;--color-decorative-orange-bold: #a92518;--color-decorative-blue-bold: #0b409a;--color-decorative-purple-bold: #5a11b0;
1--color-decorative-teal-bold: #007d8c;--color-decorative-magenta-bold: #8d0450;--color-border-standard: #cdcfd5;--color-border-subtle: #e4e4e7;--color-border-brand: #1929d6;--color-border-disabled: #ececee;--color-border-bold: #9095a2;--color-border-success-subtle: #75e0a7;--color-border-success-bold: #089b5d;--color-border-warning-subtle: #ffc142;--color-border-error-subtle: #fa887f;--color-border-warning-bold: #dc6803;--color-border-error-bold: #f04438;--color-border-focus: #5273ff;--color-border-brand-subtler: #c5d8ff;--color-border-brand-subtlest: #dde8ff;--color-border-brand-subtle: #a4bcff;--color-border-brand-bolder: #00106a;--color-text-standard: #282b3a;--color-text-secondary: #494d5f;--color-text-tertiary: #6f7281;--color-text-brand-bold: #00106a;--color-text-brand: #1929d6;--color-text-disabled: #a6aab4;--color-text-success-subtle: #75e0a7;--color-text-success-bold: #067647;--color-text-success-bolder: #067647;--color-text-warning-subtle: #ffc142;--color-text-warning-bold: #b54708;--color-text-warning-bolder: #b54708;--color-text-error-subtle: #fa887f;--color-text-error-bold: #d92d20;--color-text-error-bolder: #6e0b32;--color-text-inverse: #ffffff;--color-text-brand-subtle: #6b91fd;--color-icon-standard: #616371;--color-icon-secondary: #9095a2;--color-icon-brand: #1929d6;--color-icon-brand-bold: #00106a;--color-icon-brand-subtle: #6b91fd;--color-icon-success-subtle: #75e0a7;--color-icon-success-bold: #089b5d;--color-icon-warning-subtle: #ffc142;--color-icon-warning-bold: #b54708;--color-icon-warning-bolder: #b54708;--color-icon-error-subtle: #fa887f;--color-icon-error-bold: #d92d20;--color-icon-orange-subtle: #ec5c31;--color-icon-blue-subtle: #176fd7;--color-icon-purple-subtle: #9346ed;--color-icon-teal-subtle: #01a3ae;--color-icon-magenta-subtle: #cd1d5c;--color-icon-brown-subtle: #6b4533;--color-icon-error-bolder: #d92d20;--color-icon-orange-bold: #a92518;--color-icon-blue-bold: #0b409a;--color-icon-teal-bold: #007d8c;--color-icon-magenta-bold: #8d0450;--color-icon-purple-bold: #5a11b0;--color-icon-brown-bold: #4d2319;--color-icon-inverse: #ffffff;--color-icon-disabled: #6f7281;--color-link-standard: #1929d6;--color-link-active: #00106a;--color-link-hover: #0c008a;--color-link-visited: #1209ae;--color-opacity-0: rgba(#1d1f2a, .2)}.mat-mdc-tooltip[_ngcontent-%COMP%]{--mat-tooltip-supporting-text-font: Figtree;--mat-tooltip-supporting-text-weight: 525;--mat-tooltip-supporting-text-size: .75rem;--mat-tooltip-supporting-text-line-height: 1rem}.mat-mdc-tooltip-panel[_ngcontent-%COMP%] .mdc-tooltip[_ngcontent-%COMP%]{position:relative;overflow:initial}.mat-mdc-tooltip-panel[_ngcontent-%COMP%] .mdc-tooltip[_ngcontent-%COMP%]:after{width:1rem;height:.75rem;content:url(\'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 9"><path d="M5.20759 1.02937C5.6079 0.509358 6.3921 0.509358 6.79241 1.02937L11.6888 7.39001C12.195 8.04757 11.7263 9 10.8964 9H1.10358C0.273737 9 -0.195026 8.04757 0.311171 7.39001L5.20759 1.02937Z" fill="%2300106a"/></svg>\');display:inline-block;position:absolute}.dark-theme[_ngcontent-%COMP%] .mat-mdc-tooltip-panel[_ngcontent-%COMP%] .mdc-tooltip[_ngcontent-%COMP%]:after{content:url(\'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 9"><path d="M5.20759 1.02937C5.6079 0.509358 6.3921 0.509358 6.79241 1.02937L11.6888 7.39001C12.195 8.04757 11.7263 9 10.8964 9H1.10358C0.273737 9 -0.195026 8.04757 0.311171 7.39001L5.20759 1.02937Z" fill="%236B91FD"/></svg>\')}.mat-mdc-tooltip-panel-below[_ngcontent-%COMP%] .mdc-tooltip[_ngcontent-%COMP%]:after{top:-.75rem;right:calc(50% - .5rem);transform:rotate(0)}.mat-mdc-tooltip-panel-above[_ngcontent-%COMP%] .mdc-tooltip[_ngcontent-%COMP%]:after{bottom:-.75rem;right:calc(50% - .5rem);transform:rotate(180deg)}.mat-mdc-tooltip-panel-right[_ngcontent-%COMP%] .mdc-tooltip[_ngcontent-%COMP%]:after{left:-.875rem;top:calc(50% - .375rem);transform:rotate(270deg)}.mat-mdc-tooltip-panel-left[_ngcontent-%COMP%] .mdc-tooltip[_ngcontent-%COMP%]:after{right:-.875rem;top:calc(50% - .375rem);transform:rotate(90deg)}.mat-mdc-tooltip.mat-mdc-tooltip[_ngcontent-%COMP%] .mdc-tooltip__surface[_ngcontent-%COMP%]{background-color:var(--color-background-brand-bolder);padding:.5rem .75rem;border-radius:.5rem}@font-face{font-family:Material Icons;font-style:normal;font-weight:400;
1src:url(https://fonts.gstatic.com/s/materialicons/v92/flUhRq6tzZclQEJ-Vdg-IuiaDsNcIhQ8tQ.eot);src:local("Material Icons"),local("MaterialIcons-Regular"),url(https://fonts.gstatic.com/s/materialicons/v92/flUhRq6tzZclQEJ-Vdg-IuiaDsNcIhQ8tQ.woff2) format("woff2"),url(https://fonts.gstatic.com/s/materialicons/v92/flUhRq6tzZclQEJ-Vdg-IuiaDsNcIhQ8tQ.woff) format("woff"),url(https://fonts.gstatic.com/s/materialicons/v92/flUhRq6tzZclQEJ-Vdg-IuiaDsNcIhQ8tQ.ttf) format("truetype");font-display:block}.tide-currency-sub-unit[_ngcontent-%COMP%]{font-size:.78125rem}.balance-currency-sub-unit[_ngcontent-%COMP%]{font-size:1.3671875rem}[_nghost-%COMP%]{display:flex;flex-direction:column;flex-grow:1}[_nghost-%COMP%] .header[_ngcontent-%COMP%]{display:flex;flex-grow:1;align-items:center;gap:.75rem}[_nghost-%COMP%] .header[_ngcontent-%COMP%] .name[_ngcontent-%COMP%]{display:flex;flex-direction:column}[_nghost-%COMP%] .header[_ngcontent-%COMP%] .name[_ngcontent-%COMP%] .description[_ngcontent-%COMP%]{color:var(--color-grey-700)}[_nghost-%COMP%] .header[_ngcontent-%COMP%] .name[_ngcontent-%COMP%] .description.confirmed[_ngcontent-%COMP%]{color:var(--color-green-700)}[_nghost-%COMP%] .header[_ngcontent-%COMP%] .name[_ngcontent-%COMP%]{flex-grow:1}[_nghost-%COMP%] .header[_ngcontent-%COMP%] span.confirmed[_ngcontent-%COMP%]{color:var(--color-green-700)}[_nghost-%COMP%] .ubo-status[_ngcontent-%COMP%]{padding:.125rem;border-radius:.25rem;border:.0625rem solid var(--color-yellow-400);background:var(--color-yellow-100);color:var(--color-yellow-800)}[_nghost-%COMP%] .ubo-status.confirmed[_ngcontent-%COMP%]{border:.0625rem solid var(--color-green-400);background:var(--color-green-100);color:var(--color-green-700)}[_nghost-%COMP%] .tide-initials-circle[_ngcontent-%COMP%]{display:inline-block;text-align:center;width:1.5rem;height:1.5rem;line-height:1.5rem;font-weight:400;font-size:.875rem;color:var(--color-indigo-1100);border-radius:50%;border:.0625rem solid var(--color-grey-300)}[_nghost-%COMP%] mat-accordion.info[_ngcontent-%COMP%]{display:block;padding-top:1.5rem}[_nghost-%COMP%] mat-accordion.info[_ngcontent-%COMP%] mat-expansion-panel[_ngcontent-%COMP%]{background:transparent;box-shadow:none;border-top:.0625rem solid var(--color-grey-400)}[_nghost-%COMP%] mat-accordion.info[_ngcontent-%COMP%] mat-expansion-panel[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]{color:var(--color-grey-900)}[_nghost-%COMP%] mat-accordion.info[_ngcontent-%COMP%] mat-expansion-panel[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:var(--color-grey-700)}[_nghost-%COMP%] button[_ngcontent-%COMP%]{margin-top:1rem}[_nghost-%COMP%] .ubo-header[_ngcontent-%COMP%]{margin-bottom:1.5rem}[_nghost-%COMP%] .ubo-header[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:.5rem 0}[_nghost-%COMP%] .add-ubo-container[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center}']})}}return c})();var Co=l(28624);const Do=["missingDirectorDialog"];function To(c,M){if(1&c){const t=o.\u0275\u0275getCurrentView();o.\u0275\u0275elementStart(0,"div",11),o.\u0275\u0275element(1,"img",12),o.\u0275\u0275elementStart(2,"section")(3,"h2"),o.\u0275\u0275i18n(4,1),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(5,"p",13),o.\u0275\u0275i18n(6,2),o.\u0275\u0275elementEnd()(),o.\u0275\u0275elementStart(7,"section")(8,"twa-ubo-shared-multi-list",14),o.\u0275\u0275listener("uboSelected",function(i){o.\u0275\u0275restoreView(t);const w=o.\u0275\u0275nextContext();return o.\u0275\u0275resetView(w.confirm(i))}),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(9,"a",15),o.\u0275\u0275listener("click",function(){o.\u0275\u0275restoreView(t);const i=o.\u0275\u0275nextContext();return o.\u0275\u0275resetView(i.missingDirector())}),o.\u0275\u0275i18n(10,3),o.\u0275\u0275elementEnd()()(),o.\u0275\u0275elementStart(11,"mat-accordion",16)(12,"mat-expansion-panel")(13,"mat-expansion-panel-header")(14,"div",17)(15,"mat-panel-title")(16,"h5",13),o.\u0275\u0275i18n(17,4),o.\u0275\u0275elementEnd()()()(),o.\u0275\u0275elementStart(18,"p"),o.\u0275\u0275i18
1n(19,5),o.\u0275\u0275elementEnd()()()}if(2&c){const t=o.\u0275\u0275nextContext();o.\u0275\u0275advance(),o.\u0275\u0275property("src",t.illustrations.Feature.Account.MultiUser,o.\u0275\u0275sanitizeUrl),o.\u0275\u0275advance(5),o.\u0275\u0275i18nExp(t.ubosList?.length),o.\u0275\u0275i18nApply(6),o.\u0275\u0275advance(2),o.\u0275\u0275property("ubosList",t.ubosList)("showDirectorsOnly",!0)}}function Ao(c,M){1&c&&o.\u0275\u0275element(0,"twa-ob-unsupported-multiple-ubos",18),2&c&&o.\u0275\u0275property("allowMultiple",!0)}function Lo(c,M){1&c&&(o.\u0275\u0275elementStart(0,"div",19)(1,"p",13),o.\u0275\u0275i18n(2,6),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(3,"p",13),o.\u0275\u0275i18n(4,7),o.\u0275\u0275elementEnd()())}let Bo=(()=>{class c{constructor(t,n,i,w){this._utilService=t,this._store=n,this._stepperService=i,this._dialogService=w,this.illustrations=D.A,this.eUboSteps=I,this._onboardingService=(0,o.inject)(x.x),this.parentStepId=this._stepperService.activeStepId}confirm(t){this._dialogService.openDialog({header:{title:"Confirm profile"},body:"Please confirm that you selected yourself (" + t.firstName + " " + t.lastName + ") from the list.",actions:[{text:"Cancel",type:Co._.Cancel,variant:y.Me.Secondary},{text:"Confirm",type:Co._.Confirm,variant:y.Me.Primary}]}),this._dialogService.dialogClose$.pipe((0,r.take)(1)).subscribe(n=>{n===Co._.Confirm&&(t.directorAuthority===j.zX.ActAlone?this.updateApplication(t):this._onboardingService.trackEvent("registrationUnsupportedJointAuthorityUbos"))})}updateApplication(t){const{firstName:n,lastName:i}=t;this._utilService.updateApplication({applicant:{firstName:n,lastName:i},business:{ubos:[t]}}).pipe((0,r.take)(1)).subscribe(W=>{W&&(this._onboardingService.trackEvent("registrationSingleDirectorUbo"),this._store.dispatch((0,d.A0C)()),this._stepperService.goNext())})}missingDirector(){this._dialogService.openDialog({header:{title:"Don\u2019t see your name?"},template:this.missingDirectorDialogTpl,actions:[{text:"Close",type:Co._.Confirm,variant:y.Me.Primary}]})}static{this.\u0275fac=function(n){return new(n||c)(o.\u0275\u0275directiveInject(v.d),o.\u0275\u0275directiveInject(P.Store),o.\u0275\u0275directiveInject(k.y),o.\u0275\u0275directiveInject(G.o))}}static{this.\u0275cmp=o.\u0275\u0275defineComponent({type:c,selectors:[["twa-ob-ubo-multi-single-director"]],viewQuery:function(n,i){if(1&n&&o.\u0275\u0275viewQuery(Do,5),2&n){let w;o.\u0275\u0275queryRefresh(w=o.\u0275\u0275loadQuery())&&(i.missingDirectorDialogTpl=w.first)}},inputs:{ubosList:"ubosList"},standalone:!1,decls:7,vars:4,consts:()=>{let t,n,i,w,L,W,q;return t="Select yourself from the list",n="We found " + "\ufffd0\ufffd" + " directors of your company",i="Don\u2019t see your name?",w="What is a director?",L=" A director is the legal representative and executive of the GmbH. They have the authority to act on behalf of the company in legal and business matters. Directors must be registered in the Handelsregister. ",W=" Tide accounts can only be opened by company directors. The people listed are the directors of your company, according to the Handelsregister. ",q=" If your name should be on the list, check your company's details in the Handelsregister. ",[["missingDirectorDialog",""],t,n,i,w,L,W,q,["twaOnboardingNestedStepper","",3,"parentStepId","enableStepRestore"],[3,"twaOnboardingNestedStep"],["matStepContent",""],[1,"container"],["alt","MultiUser",3,"src"],[1,"tide-body-1"],[3,"uboSelected","ubosList","showDirectorsOnly"],[3,"click"],[1,"info"],[1,"header"],[3,"allowMultiple"],[1,"dialog-container"]]},template:function(n,i){1&n&&(o.\u0275\u0275elementStart(0,"mat-horizontal-stepper",8)(1,"mat-step",9),o.\u0275\u0275template(2,To,20,4,"ng-template",10),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementStart(3,"mat-step",9),o.\u0275\u0275template(4,Ao,1,1,"ng-template",10),o.\u0275\u0275elementEnd()(),o.\u0275\u0275template(5,Lo,5,0,"ng-template",null,0,o.\u0275\u0275templateRefExtractor)),2&n&&(o.\u0275\u0275property("parentStepId",i.parentStepId)("enableStepRestore",!0),o.\u0275\u0275advance(),o.\u0275\u0275property("twaOnboardingNestedStep",i.eUboSteps.singleDirector),o.\u0275\u0275advance(2),o.\u0275\u0275property("twaOnboardingNestedStep",i.eUboSteps.UnsupportedJointDirectors))},dependencies:[u.V5,u.M6,u.yS,Q.BS,Q.GK,Q.Z2,Q.WN,V.l,X.k,ro,ho],styles:['[_ngcontent-%COMP%]:root{--color-background-standard: #f0f4ff;--color-background-inverse: #ffffff;--color-background-subtler: #f3f3f4;--color-background-brand: #1929d6;--color-background-brand-bolder: #00106a;--color-background-brand-subtle: #c5d8ff;--color-background-brand-subtler: #dde8ff;--color-background-disabled: #ececee;--color-background-subtle: #cdcfd5;--color-background-success-subtle: #ecfdf3;--color-background-success-bold: #75e0a7;--color-background-success-bolder: #089b5d;--color-background-warning-subtle: #fffaeb;--color-background-warning-bold: #ffc142;--color-background-warning-bolder: #4e1d09;--color-background-error-subtle: #fef3f2;--color-background-error-bold: #d92d20;--color-background-bold: #9095a2;--color-background-boldest: #1d1f2a;--color-decorative-orange-subtle: #feead5;--color-decorative-blue-subtle: #cfecfd;--color-decorative-purple-subtle: #eee0ff;--color-decorative-teal-subtle: #e8f9fd;--color-decorative-magenta-subtle: #ffe6e6;--color-decorative-brown-subtle: #f7ecdd;--color-decorative-yellow-subtle: #fdf4ce;--color-decorative-green-subtle: #dcfae6;--color-decorative-yellow: #fedf89;--color-decorative-green: #a9efc5;--color-decorative-orange: #f9af82;--color-decorative-blue: #70b8f3;--color-decorative-purple: #bc87ff;--color-decorative-teal: #56cccc;--color-decorative-magenta: #f582a0;--color-decorative-brown: #d2ae90;--color-decorative-yellow-bold: #dc6803;--color-decorative-green-bold: #17b26a;--color-decorative-orange-bold: #a92518;--color-decorative-blue-bold: #0b409a;--color-decorative-purple-bold: #5a11b0;
1--color-decorative-teal-bold: #007d8c;--color-decorative-magenta-bold: #8d0450;--color-border-standard: #cdcfd5;--color-border-subtle: #e4e4e7;--color-border-brand: #1929d6;--color-border-disabled: #ececee;--color-border-bold: #9095a2;--color-border-success-subtle: #75e0a7;--color-border-success-bold: #089b5d;--color-border-warning-subtle: #ffc142;--color-border-error-subtle: #fa887f;--color-border-warning-bold: #dc6803;--color-border-error-bold: #f04438;--color-border-focus: #5273ff;--color-border-brand-subtler: #c5d8ff;--color-border-brand-subtlest: #dde8ff;--color-border-brand-subtle: #a4bcff;--color-border-brand-bolder: #00106a;--color-text-standard: #282b3a;--color-text-secondary: #494d5f;--color-text-tertiary: #6f7281;--color-text-brand-bold: #00106a;--color-text-brand: #1929d6;--color-text-disabled: #a6aab4;--color-text-success-subtle: #75e0a7;--color-text-success-bold: #067647;--color-text-success-bolder: #067647;--color-text-warning-subtle: #ffc142;--color-text-warning-bold: #b54708;--color-text-warning-bolder: #b54708;--color-text-error-subtle: #fa887f;--color-text-error-bold: #d92d20;--color-text-error-bolder: #6e0b32;--color-text-inverse: #ffffff;--color-text-brand-subtle: #6b91fd;--color-icon-standard: #616371;--color-icon-secondary: #9095a2;--color-icon-brand: #1929d6;--color-icon-brand-bold: #00106a;--color-icon-brand-subtle: #6b91fd;--color-icon-success-subtle: #75e0a7;--color-icon-success-bold: #089b5d;--color-icon-warning-subtle: #ffc142;--color-icon-warning-bold: #b54708;--color-icon-warning-bolder: #b54708;--color-icon-error-subtle: #fa887f;--color-icon-error-bold: #d92d20;--color-icon-orange-subtle: #ec5c31;--color-icon-blue-subtle: #176fd7;--color-icon-purple-subtle: #9346ed;--color-icon-teal-subtle: #01a3ae;--color-icon-magenta-subtle: #cd1d5c;--color-icon-brown-subtle: #6b4533;--color-icon-error-bolder: #d92d20;--color-icon-orange-bold: #a92518;--color-icon-blue-bold: #0b409a;--color-icon-teal-bold: #007d8c;--color-icon-magenta-bold: #8d0450;--color-icon-purple-bold: #5a11b0;--color-icon-brown-bold: #4d2319;--color-icon-inverse: #ffffff;--color-icon-disabled: #6f7281;--color-link-standard: #1929d6;--color-link-active: #00106a;--color-link-hover: #0c008a;--color-link-visited: #1209ae;--color-opacity-0: rgba(#1d1f2a, .2)}[_ngcontent-%COMP%]:root{--color-indigo-100: #f0f4ff;--color-indigo-200: #dde8ff;--color-indigo-300: #c5d8ff;--color-indigo-400: #a4bcff;--color-indigo-500: #6b91fd;--color-indigo-600: #5273ff;--color-indigo-700: #3746ec;--color-indigo-800: #1929d6;--color-indigo-900: #1209ae;--color-indigo-1000: #0c008a;--color-indigo-1100: #00106a;--color-indigo-1200: #030047;--color-grey-0: #ffffff;--color-grey-100: #f3f3f4;--color-grey-200: #ececee;--color-grey-300: #e4e4e7;--color-grey-400: #cdcfd5;--color-grey-500: #a6aab4;--color-grey-600: #9095a2;--color-grey-700: #6f7281;--color-grey-800: #616371;--color-grey-900: #494d5f;--color-grey-1000: #31333f;--color-grey-1100: #282b3a;--color-grey-1200: #1d1f2a;--color-green-100: #ecfdf3;--color-green-200: #dcfae6;--color-green-250: #d2fad1;--color-green-300: #a9efc5;--color-green-400: #75e0a7;--color-green-450: #74e489;--color-green-500: #47cd89;--color-green-600: #17b26a;--color-green-700: #089b5d;--color-green-800: #067647;--color-green-900: #044e2e;--color-green-1000: #053321;--color-green-1100: #055040;--color-red-50: #fde3d7;--color-red-100: #fef3f2;--color-red-200: #fee4e2;--color-red-300: #fecdca;--color-red-350: #f79788;--color-red-400: #fda7a0;--color-red-500: #fa887f;--color-red-600: #f97066;--color-red-700: #f04438;--color-red-800: #d92d20;--color-red-900: #b42318;--color-red-1000: #912018;--color-red-1100: #6e0b32;--color-yellow-100: #fffaeb;--color-yellow-200: #fdf4ce;--color-yellow-300: #fedf89;--color-yellow-400: #ffc142;--color-yellow-450: #e8a011;--color-yellow-500: #fdb022;--color-yellow-600: #f79009;--color-yellow-700: #dc6803;--color-yellow-800: #b54708;--color-yellow-900: #93370d;--color-yellow-1000: #4e1d09;--color-yellow-1100: #6f3c03;--color-purple-50: #eee0ff;--color-purple-100: #dabaff;--color-purple-300: #bc87ff;--color-purple-500: #9346ed;--color-purple-700: #5a11b0;
1--color-purple-900: #33087e;--color-blue-100: #cfecfd;--color-blue-300: #70b8f3;--color-blue-500: #176fd7;--color-blue-700: #0b409a;--color-blue-900: #041f67;--color-teal-50: #e8f9fd;--color-teal-100: #9de2e5;--color-teal-300: #56cccc;--color-teal-500: #01a3ae;--color-teal-700: #007d8c;--color-teal-900: #02576a;--color-orange-100: #feead5;--color-orange-300: #f9af82;--color-orange-500: #ec5c31;--color-orange-700: #a92518;--color-orange-900: #71090f;--color-magenta-50: #ffe6e6;--color-magenta-100: #ffbdcc;--color-magenta-300: #f582a0;--color-magenta-500: #cd1d5c;--color-magenta-700: #8d0450;--color-magenta-900: #62054b;--color-brown-100: #f7ecdd;--color-brown-300: #d2ae90;--color-brown-500: #6b4533;--color-brown-700: #4d2319;--color-brown-900: #330c09;--color-slate-100: #f1f1f3;--color-slate-200: #e6e6ea;--color-slate-300: #dedee3;--color-slate-400: #ced0d6;--color-slate-500: #aeb2bc;--color-slate-600: #9da0a8;--color-slate-700: #7f838a;--color-slate-800: #45484f;--color-slate-900: #393b41;--color-slate-1000: #2b2c31;--color-slate-1100: #18191b;--color-slate-1200: #0f0f0f;--color-slate-000: #ffffff}.light-theme[_ngcontent-%COMP%]{--color-background-standard: #f0f4ff;--color-background-inverse: #ffffff;--color-background-subtler: #f3f3f4;--color-background-brand: #1929d6;--color-background-brand-bolder: #00106a;--color-background-brand-subtle: #c5d8ff;--color-background-brand-subtler: #dde8ff;--color-background-disabled: #ececee;--color-background-subtle: #cdcfd5;--color-background-success-subtle: #ecfdf3;--color-background-success-bold: #75e0a7;--color-background-success-bolder: #089b5d;--color-background-warning-subtle: #fffaeb;--color-background-warning-bold: #ffc142;--color-background-warning-bolder: #4e1d09;--color-background-error-subtle: #fef3f2;--color-background-error-bold: #d92d20;--color-background-bold: #9095a2;--color-background-boldest: #1d1f2a;--color-decorative-orange-subtle: #feead5;--color-decorative-blue-subtle: #cfecfd;--color-decorative-purple-subtle: #eee0ff;--color-decorative-teal-subtle: #e8f9fd;--color-decorative-magenta-subtle: #ffe6e6;--color-decorative-brown-subtle: #f7ecdd;--color-decorative-yellow-subtle: #fdf4ce;--color-decorative-green-subtle: #dcfae6;--color-decorative-yellow: #fedf89;--color-decorative-green: #a9efc5;--color-decorative-orange: #f9af82;--color-decorative-blue: #70b8f3;--color-decorative-purple: #bc87ff;--color-decorative-teal: #56cccc;--color-decorative-magenta: #f582a0;--color-decorative-brown: #d2ae90;--color-decorative-yellow-bold: #dc6803;--color-decorative-green-bold: #17b26a;--color-decorative-orange-bold: #a92518;--color-decorative-blue-bold: #0b409a;--color-decorative-purple-bold: #5a11b0;--color-decorative-teal-bold: #007d8c;--color-decorative-magenta-bold: #8d0450;--color-border-standard: #cdcfd5;--color-border-subtle: #e4e4e7;--color-border-brand: #1929d6;--color-border-disabled: #ececee;--color-border-bold: #9095a2;--color-border-success-subtle: #75e0a7;--color-border-success-bold: #089b5d;--color-border-warning-subtle: #ffc142;--color-border-error-subtle: #fa887f;--color-border-warning-bold: #dc6803;--color-border-error-bold: #f04438;--color-border-focus: #5273ff;--color-border-brand-subtler: #c5d8ff;--color-border-brand-subtlest: #dde8ff;--color-border-brand-subtle: #a4bcff;--color-border-brand-bolder: #00106a;--color-text-standard: #282b3a;--color-text-secondary: #494d5f;--color-text-tertiary: #6f7281;--color-text-brand-bold: #00106a;--color-text-brand: #1929d6;--color-text-disabled: #a6aab4;--color-text-success-subtle: #75e0a7;--color-text-success-bold: #067647;--color-text-success-bolder: #067647;--color-text-warning-subtle: #ffc142;--color-text-warning-bold: #b54708;--color-text-warning-bolder: #b54708;--color-text-error-subtle: #fa887f;--color-text-error-bold: #d92d20;--color-text-error-bolder: #6e0b32;--color-text-inverse: #ffffff;--color-text-brand-subtle: #6b91fd;--color-icon-standard: #616371;--color-icon-secondary: #9095a2;--color-icon-brand: #1929d6;--color-icon-brand-bold: #00106a;--color-icon-brand-subtle: #6b91fd;--color-icon-success-subtle: #75e0a7;--color-icon-success-bold: #089b5d;--color-icon-warning-subtle: #ffc142;--color-icon-warning-bold: #b54708;--color-icon-warning-bolder: #b54708;--color-icon-error-subtle: #fa887f;--color-icon-error-bold: #d92d20;--color-icon-orange-subtle: #ec5c31;--color-icon-blue-subtle: #176fd7;--color-icon-purple-subtle: #9346ed;--color-icon-teal-subtle: #01a3ae;--color-icon-magenta-subtle: #cd1d5c;--color-icon-brown-subtle: #6b4533;--color-icon-error-bolder: #d92d20;--color-icon-orange-bold: #a92518;--color-icon-blue-bold: #0b409a;--color-icon-teal-bold: #007d8c;--color-icon-magenta-bold: #8d0450;--color-icon-purple-bold: #5a11b0;
1--color-icon-brown-bold: #4d2319;--color-icon-inverse: #ffffff;--color-icon-disabled: #6f7281;--color-link-standard: #1929d6;--color-link-active: #00106a;--color-link-hover: #0c008a;--color-link-visited: #1209ae;--color-opacity-0: rgba(#1d1f2a, .2)}.mat-mdc-tooltip[_ngcontent-%COMP%]{--mat-tooltip-supporting-text-font: Figtree;--mat-tooltip-supporting-text-weight: 525;--mat-tooltip-supporting-text-size: .75rem;--mat-tooltip-supporting-text-line-height: 1rem}.mat-mdc-tooltip-panel[_ngcontent-%COMP%] .mdc-tooltip[_ngcontent-%COMP%]{position:relative;overflow:initial}.mat-mdc-tooltip-panel[_ngcontent-%COMP%] .mdc-tooltip[_ngcontent-%COMP%]:after{width:1rem;height:.75rem;content:url(\'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 9"><path d="M5.20759 1.02937C5.6079 0.509358 6.3921 0.509358 6.79241 1.02937L11.6888 7.39001C12.195 8.04757 11.7263 9 10.8964 9H1.10358C0.273737 9 -0.195026 8.04757 0.311171 7.39001L5.20759 1.02937Z" fill="%2300106a"/></svg>\');display:inline-block;position:absolute}.dark-theme[_ngcontent-%COMP%] .mat-mdc-tooltip-panel[_ngcontent-%COMP%] .mdc-tooltip[_ngcontent-%COMP%]:after{content:url(\'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 9"><path d="M5.20759 1.02937C5.6079 0.509358 6.3921 0.509358 6.79241 1.02937L11.6888 7.39001C12.195 8.04757 11.7263 9 10.8964 9H1.10358C0.273737 9 -0.195026 8.04757 0.311171 7.39001L5.20759 1.02937Z" fill="%236B91FD"/></svg>\')}.mat-mdc-tooltip-panel-below[_ngcontent-%COMP%] .mdc-tooltip[_ngcontent-%COMP%]:after{top:-.75rem;right:calc(50% - .5rem);transform:rotate(0)}.mat-mdc-tooltip-panel-above[_ngcontent-%COMP%] .mdc-tooltip[_ngcontent-%COMP%]:after{bottom:-.75rem;right:calc(50% - .5rem);transform:rotate(180deg)}.mat-mdc-tooltip-panel-right[_ngcontent-%COMP%] .mdc-tooltip[_ngcontent-%COMP%]:after{left:-.875rem;top:calc(50% - .375rem);transform:rotate(270deg)}.mat-mdc-tooltip-panel-left[_ngcontent-%COMP%] .mdc-tooltip[_ngcontent-%COMP%]:after{right:-.875rem;top:calc(50% - .375rem);transform:rotate(90deg)}.mat-mdc-tooltip.mat-mdc-tooltip[_ngcontent-%COMP%] .mdc-tooltip__surface[_ngcontent-%COMP%]{background-color:var(--color-background-brand-bolder);padding:.5rem .75rem;border-radius:.5rem}@font-face{font-family:Material Icons;font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/materialicons/v92/flUhRq6tzZclQEJ-Vdg-IuiaDsNcIhQ8tQ.eot);src:local("Material Icons"),local("MaterialIcons-Regular"),url(https://fonts.gstatic.com/s/materialicons/v92/flUhRq6tzZclQEJ-Vdg-IuiaDsNcIhQ8tQ.woff2) format("woff2"),url(https://fonts.gstatic.com/s/materialicons/v92/flUhRq6tzZclQEJ-Vdg-IuiaDsNcIhQ8tQ.woff) format("woff"),url(https://fonts.gstatic.com/s/materialicons/v92/flUhRq6tzZclQEJ-Vdg-IuiaDsNcIhQ8tQ.ttf) format("truetype");font-display:block}.tide-currency-sub-unit[_ngcontent-%COMP%]{font-size:.78125rem}.balance-currency-sub-unit[_ngcontent-%COMP%]{font-size:1.3671875rem}[_nghost-%COMP%] .container[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:2.5rem}[_nghost-%COMP%] .container[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-height:9.375rem}[_nghost-%COMP%] .container[_ngcontent-%COMP%] section[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}[_nghost-%COMP%] .container[_ngcontent-%COMP%] section[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:var(--color-background-brand);font-weight:500}[_nghost-%COMP%] mat-accordion.info[_ngcontent-%COMP%]{display:block;padding-top:2.5rem}[_nghost-%COMP%] mat-accordion.info[_ngcontent-%COMP%] mat-expansion-panel[_ngcontent-%COMP%]{background:transparent;box-shadow:none;border-top:.0625rem solid var(--color-grey-400)}[_nghost-%COMP%] mat-accordion.info[_ngcontent-%COMP%] mat-expansion-panel[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]{color:var(--color-grey-900)}[_nghost-%COMP%] mat-accordion.info[_ngcontent-%COMP%] mat-expansion-panel[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:var(--color-grey-700)} .dialog-container p:first-child{bottom:1rem}']})}}return c})();function Uo(c,M){1&c&&o.\u0275\u0275element(0,"mat-spinner",0)}function Ro(c,M){1&c&&o.\u0275\u0275element(0,"twa-ob-no-ubos")}function Fo(c,M){1&c&&o.\u0275\u0275element(0,"twa-ob-unsupported-multiple-ubos")}function $o(c,M){1&c&&o.\u0275\u0275element(0,"twa-ob-applicant-ubo")}function Go(c,M){if(1&c&&o.\u0275\u0275element(0,"twa-ob-ubo-multi-single-director",1),2&c){const t=o.\u0275\u0275nextContext(3);o.\u0275\u0275property("ubosList",t.ubos)}}function Vo(c,M){if(1&c&&o.\u0275\u0275conditionalCreate(0,Ro,1,0,"twa-ob-no-ubos")(1,Fo,1,0,"twa-ob-unsupported-multiple-ubos")(2,$o,1,0,"twa-ob-applicant-ubo")(3,Go,1,1,"twa-ob-ubo-multi-single-director",1),2&c){const t=o.\u0275\u0275nextContext(2);o.\u0275\u0275conditional(0===t.ubos?.length?0:!t.allowMultiple&&t.ubos?.length>1?1:1===t.ubos?.length?2:t.allowMultiple&&t.ubos?.length>1&&t.allowSingleAuthorityOnly?3:-1)}}function zo(c,M){1&c&&o.\u0275\u0275element(0,"twa-ob-no-ubos")}function Qo(c,M){if(1&c&&o.\u0275\u0275element(0,"twa-ubo-multi-l
1ist-view",1),2&c){const t=o.\u0275\u0275nextContext(3);o.\u0275\u0275property("ubosList",t.ubos)}}function Wo(c,M){if(1&c&&o.\u0275\u0275conditionalCreate(0,zo,1,0,"twa-ob-no-ubos")(1,Qo,1,1,"twa-ubo-multi-list-view",1),2&c){const t=o.\u0275\u0275nextContext(2);o.\u0275\u0275conditional(0===t.ubos?.length?0:1)}}function Ho(c,M){if(1&c&&o.\u0275\u0275conditionalCreate(0,Vo,4,1)(1,Wo,2,1),2&c){const t=o.\u0275\u0275nextContext();o.\u0275\u0275conditional(t.countryOfBusiness===t.eCountryOfBusiness.DE?0:1)}}let jo=(()=>{class c{constructor(t,n,i,w,L){this._stepperService=t,this._uboDataService=n,this._store=i,this._cdr=w,this._environment=L,this.allowMultiple=!0,this.allowSingleAuthorityOnly=!1,this.isUbosLoading$=this._store.select(h.xy),this.eCountryOfBusiness=O.ECountryOfBusiness,this._subscriptions=new r.Subscription}ngOnInit(){this.countryOfBusiness=this._environment.COUNTRY_OF_BUSINESS,this._store.dispatch((0,d.A0C)()),this._subscriptions.add((0,r.combineLatest)([this._stepperService.stepLoaded$,this._store.select(h.S$),this._store.select(h.P6)]).pipe((0,r.filter)(([t,n,i])=>t===this.stepId&&!!n&&!!i?.business?.registeredName),(0,r.withLatestFrom)(this._store.select(h.W7),this._store.select(h.Ne)),(0,r.filter)(([,t,n])=>!t||0===t?.length||null===n||(this._uboDataService.fetchUbos(),!1))).subscribe(()=>{this._store.dispatch((0,d.rfx)({})),this._uboDataService.fetchUbos()})),this._subscriptions.add(this._uboDataService.ubos$.subscribe(t=>{this.ubos=t,this._cdr.markForCheck()}))}ngOnDestroy(){this._subscriptions.unsubscribe()}static{this.\u0275fac=function(n){return new(n||c)(o.\u0275\u0275directiveInject(k.y),o.\u0275\u0275directiveInject(e.G),o.\u0275\u0275directiveInject(P.Store),o.\u0275\u0275directiveInject(o.ChangeDetectorRef),o.\u0275\u0275directiveInject(O.ENVIRONMENT))}}static{this.\u0275cmp=o.\u0275\u0275defineComponent({type:c,selectors:[["twa-ob-ubo-list"]],inputs:{allowMultiple:"allowMultiple",allowSingleAuthorityOnly:"allowSingleAuthorityOnly",stepId:"stepId"},standalone:!1,decls:3,vars:3,consts:[["diameter","50"],[3,"ubosList"]],template:function(n,i){1&n&&(o.\u0275\u0275conditionalCreate(0,Uo,1,0,"mat-spinner",0),o.\u0275\u0275pipe(1,"async"),o.\u0275\u0275conditionalBranchCreate(2,Ho,2,1)),2&n&&o.\u0275\u0275conditional(o.\u0275\u0275pipeBind1(1,1,i.isUbosLoading$)?0:2)},dependencies:[B.LG,oo,eo,ro,ko,Bo,N.AsyncPipe],styles:['[_ngcontent-%COMP%]:root{--color-background-standard: #f0f4ff;--color-background-inverse: #ffffff;--color-background-subtler: #f3f3f4;--color-background-brand: #1929d6;--color-background-brand-bolder: #00106a;--color-background-brand-subtle: #c5d8ff;--color-background-brand-subtler: #dde8ff;--color-background-disabled: #ececee;--color-background-subtle: #cdcfd5;--color-background-success-subtle: #ecfdf3;--color-background-success-bold: #75e0a7;--color-background-success-bolder: #089b5d;--color-background-warning-subtle: #fffaeb;--color-background-warning-bold: #ffc142;--color-background-warning-bolder: #4e1d09;--color-background-error-subtle: #fef3f2;--color-background-error-bold: #d92d20;--color-background-bold: #9095a2;--color-background-boldest: #1d1f2a;--color-decorative-orange-subtle: #feead5;--color-decorative-blue-subtle: #cfecfd;--color-decorative-purple-subtle: #eee0ff;--color-decorative-teal-subtle: #e8f9fd;--color-decorative-magenta-subtle: #ffe6e6;--color-decorative-brown-subtle: #f7ecdd;--color-decorative-yellow-subtle: #fdf4ce;--color-decorative-green-subtle: #dcfae6;--color-decorative-yellow: #fedf89;--color-decorative-green: #a9efc5;--color-decorative-orange: #f9af82;--color-decorative-blue: #70b8f3;--color-decorative-purple: #bc87ff;--color-decorative-teal: #56cccc;--color-decorative-magenta: #f582a0;--color-decorative-brown: #d2ae90;--color-decorative-yellow-bold: #dc6803;--color-decorative-green-bold: #17b26a;--color-decorative-orange-bold: #a92518;--color-decorative-blue-bold: #0b409a;--color-decorative-purple-bold: #5a11b0;--color-decorative-teal-bold: #007d8c;--color-decorative-magenta-bold: #8d0450;--color-border-standard: #cdcfd5;--color-border-subtle: #e4e4e7;--color-border-brand: #1929d6;--color-border-disabled: #ececee;--color-border-bold: #9095a2;--color-border-success-subtle: #75e0a7;--color-border-success-bold: #089b5d;--color-border-warning-subtle: #ffc142;--color-border-error-subtle: #fa887f;--color-border-warning-bold: #dc6803;--color-border-error-bold: #f04438;--color-border-focus: #5273ff;--color-border-brand-subtler: #c5d8ff;--color-border-brand-subtlest: #dde8ff;--color-border-brand-subtle: #a4bcff;--color-border-brand-bolder: #00106a;--color-text-standard: #282b3a;--color-text-secondary: #494d5f;--color-text-tertiary: #6f7281;
1--color-text-brand-bold: #00106a;--color-text-brand: #1929d6;--color-text-disabled: #a6aab4;--color-text-success-subtle: #75e0a7;--color-text-success-bold: #067647;--color-text-success-bolder: #067647;--color-text-warning-subtle: #ffc142;--color-text-warning-bold: #b54708;--color-text-warning-bolder: #b54708;--color-text-error-subtle: #fa887f;--color-text-error-bold: #d92d20;--color-text-error-bolder: #6e0b32;--color-text-inverse: #ffffff;--color-text-brand-subtle: #6b91fd;--color-icon-standard: #616371;--color-icon-secondary: #9095a2;--color-icon-brand: #1929d6;--color-icon-brand-bold: #00106a;--color-icon-brand-subtle: #6b91fd;--color-icon-success-subtle: #75e0a7;--color-icon-success-bold: #089b5d;--color-icon-warning-subtle: #ffc142;--color-icon-warning-bold: #b54708;--color-icon-warning-bolder: #b54708;--color-icon-error-subtle: #fa887f;--color-icon-error-bold: #d92d20;--color-icon-orange-subtle: #ec5c31;--color-icon-blue-subtle: #176fd7;--color-icon-purple-subtle: #9346ed;--color-icon-teal-subtle: #01a3ae;--color-icon-magenta-subtle: #cd1d5c;--color-icon-brown-subtle: #6b4533;--color-icon-error-bolder: #d92d20;--color-icon-orange-bold: #a92518;--color-icon-blue-bold: #0b409a;--color-icon-teal-bold: #007d8c;--color-icon-magenta-bold: #8d0450;--color-icon-purple-bold: #5a11b0;--color-icon-brown-bold: #4d2319;--color-icon-inverse: #ffffff;--color-icon-disabled: #6f7281;--color-link-standard: #1929d6;--color-link-active: #00106a;--color-link-hover: #0c008a;--color-link-visited: #1209ae;--color-opacity-0: rgba(#1d1f2a, .2)}[_ngcontent-%COMP%]:root{--color-indigo-100: #f0f4ff;--color-indigo-200: #dde8ff;--color-indigo-300: #c5d8ff;--color-indigo-400: #a4bcff;--color-indigo-500: #6b91fd;--color-indigo-600: #5273ff;--color-indigo-700: #3746ec;--color-indigo-800: #1929d6;--color-indigo-900: #1209ae;--color-indigo-1000: #0c008a;--color-indigo-1100: #00106a;--color-indigo-1200: #030047;--color-grey-0: #ffffff;--color-grey-100: #f3f3f4;--color-grey-200: #ececee;--color-grey-300: #e4e4e7;--color-grey-400: #cdcfd5;--color-grey-500: #a6aab4;--color-grey-600: #9095a2;--color-grey-700: #6f7281;--color-grey-800: #616371;--color-grey-900: #494d5f;--color-grey-1000: #31333f;--color-grey-1100: #282b3a;--color-grey-1200: #1d1f2a;--color-green-100: #ecfdf3;--color-green-200: #dcfae6;--color-green-250: #d2fad1;--color-green-300: #a9efc5;--color-green-400: #75e0a7;--color-green-450: #74e489;--color-green-500: #47cd89;--color-green-600: #17b26a;--color-green-700: #089b5d;--color-green-800: #067647;--color-green-900: #044e2e;--color-green-1000: #053321;--color-green-1100: #055040;--color-red-50: #fde3d7;--color-red-100: #fef3f2;--color-red-200: #fee4e2;--color-red-300: #fecdca;--color-red-350: #f79788;--color-red-400: #fda7a0;--color-red-500: #fa887f;--color-red-600: #f97066;--color-red-700: #f04438;--color-red-800: #d92d20;--color-red-900: #b42318;--color-red-1000: #912018;--color-red-1100: #6e0b32;--color-yellow-100: #fffaeb;--color-yellow-200: #fdf4ce;--color-yellow-300: #fedf89;--color-yellow-400: #ffc142;--color-yellow-450: #e8a011;--color-yellow-500: #fdb022;--color-yellow-600: #f79009;--color-yellow-700: #dc6803;--color-yellow-800: #b54708;--color-yellow-900: #93370d;--color-yellow-1000: #4e1d09;--color-yellow-1100: #6f3c03;--color-purple-50: #eee0ff;--color-purple-100: #dabaff;--color-purple-300: #bc87ff;--color-purple-500: #9346ed;--color-purple-700: #5a11b0;--color-purple-900: #33087e;--color-blue-100: #cfecfd;--color-blue-300: #70b8f3;--color-blue-500: #176fd7;--color-blue-700: #0b409a;--color-blue-900: #041f67;--color-teal-50: #e8f9fd;--color-teal-100: #9de2e5;--color-teal-300: #56cccc;--color-teal-500: #01a3ae;--color-teal-700: #007d8c;--color-teal-900: #02576a;--color-orange-100: #feead5;--color-orange-300: #f9af82;--color-orange-500: #ec5c31;--color-orange-700: #a92518;--color-orange-900: #71090f;--color-magenta-50: #ffe6e6;--color-magenta-100: #ffbdcc;--color-magenta-300: #f582a0;--color-magenta-500: #cd1d5c;--color-magenta-700: #8d0450;--color-magenta-900: #62054b;--color-brown-100: #f7ecdd;--color-brown-300: #d2ae90;--color-brown-500: #6b4533;--color-brown-700: #4d2319;--color-brown-900: #330c09;--color-slate-100: #f1f1f3;--color-slate-200: #e6e6ea;--color-slate-300: #dedee3;--color-slate-400: #ced0d6;--color-slate-500: #aeb2bc;--color-slate-600: #9da0a8;--color-slate-700: #7f838a;--color-slate-800: #45484f;--color-slate-900: #393b41;--color-slate-1000: #2b2c31;--color-slate-1100: #18191b;--color-slate-1200: #0f0f0f;--color-slate-000: #ffffff}.light-theme[_ngcontent-%COMP%]{--color-background-standard: #f0f4ff;--color-background-inverse: #ffffff;--color-background-subtler: #f3f3f4;--color-background-brand: #1929d6;--color-background-brand-bolder: #00106a;--color-background-brand-subtle: #c5d8ff;--color-background-brand-subtler: #dde8ff;--color-background-disabled: #ececee;--color-background-subtle: #cdcfd5;--color-background-success-subtle: #ecfdf3;--color-background-success-bold: #75e0a7;--color-background-success-bolder: #089b5d;--color-background-warning-subtle: #fffaeb;--color-background-warning-bold: #ffc142;--color-background-warning-bolder: #4e1d09;--color-background-error-subtle: #fef3f2;--color-background-error-bold: #d92d20;--color-background-bold: #9095a2;--color-background-boldest: #1d1f2a;--color-decorative-orange-subtle: #feead5;--color-decorative-blue-subtle: #cfecfd;--color-decorative-purple-subtle: #eee0ff;--color-decorative-teal-subtle: #e8f9fd;--color-decorative-magenta-subtle: #ffe6e6;--color-decorative-brown-subtle: #f7ecdd;--color-decorative-yellow-subtle: #fdf4ce;--color-decorative-green-subtle: #dcfae6;--color-decorative-yellow: #fedf89;--color-decorative-green: #a9efc5;--color-decorative-orange: #f9af82;--color-decorative-blue: #70b8f3;--color-decorative-purple: #bc87ff;--color-decorative-teal: #56cccc;--color-decorative-magenta: #f582a0;--color-decorative-brown: #d2ae90;--color-decorative-yellow-bold: #dc6803;--color-decorative-green-bold: #17b26a;--color-decorative-orange-bold: #a92518;--color-decorative-blue-bold: #0b409a;--color-decorative-purple-bold: #5a11b0;
1--color-decorative-teal-bold: #007d8c;--color-decorative-magenta-bold: #8d0450;--color-border-standard: #cdcfd5;--color-border-subtle: #e4e4e7;--color-border-brand: #1929d6;--color-border-disabled: #ececee;--color-border-bold: #9095a2;--color-border-success-subtle: #75e0a7;--color-border-success-bold: #089b5d;--color-border-warning-subtle: #ffc142;--color-border-error-subtle: #fa887f;--color-border-warning-bold: #dc6803;--color-border-error-bold: #f04438;--color-border-focus: #5273ff;--color-border-brand-subtler: #c5d8ff;--color-border-brand-subtlest: #dde8ff;--color-border-brand-subtle: #a4bcff;--color-border-brand-bolder: #00106a;--color-text-standard: #282b3a;--color-text-secondary: #494d5f;--color-text-tertiary: #6f7281;--color-text-brand-bold: #00106a;--color-text-brand: #1929d6;--color-text-disabled: #a6aab4;--color-text-success-subtle: #75e0a7;--color-text-success-bold: #067647;--color-text-success-bolder: #067647;--color-text-warning-subtle: #ffc142;--color-text-warning-bold: #b54708;--color-text-warning-bolder: #b54708;--color-text-error-subtle: #fa887f;--color-text-error-bold: #d92d20;--color-text-error-bolder: #6e0b32;--color-text-inverse: #ffffff;--color-text-brand-subtle: #6b91fd;--color-icon-standard: #616371;--color-icon-secondary: #9095a2;--color-icon-brand: #1929d6;--color-icon-brand-bold: #00106a;--color-icon-brand-subtle: #6b91fd;--color-icon-success-subtle: #75e0a7;--color-icon-success-bold: #089b5d;--color-icon-warning-subtle: #ffc142;--color-icon-warning-bold: #b54708;--color-icon-warning-bolder: #b54708;--color-icon-error-subtle: #fa887f;--color-icon-error-bold: #d92d20;--color-icon-orange-subtle: #ec5c31;--color-icon-blue-subtle: #176fd7;--color-icon-purple-subtle: #9346ed;--color-icon-teal-subtle: #01a3ae;--color-icon-magenta-subtle: #cd1d5c;--color-icon-brown-subtle: #6b4533;--color-icon-error-bolder: #d92d20;--color-icon-orange-bold: #a92518;--color-icon-blue-bold: #0b409a;--color-icon-teal-bold: #007d8c;--color-icon-magenta-bold: #8d0450;--color-icon-purple-bold: #5a11b0;--color-icon-brown-bold: #4d2319;--color-icon-inverse: #ffffff;--color-icon-disabled: #6f7281;--color-link-standard: #1929d6;--color-link-active: #00106a;--color-link-hover: #0c008a;--color-link-visited: #1209ae;--color-opacity-0: rgba(#1d1f2a, .2)}.mat-mdc-tooltip[_ngcontent-%COMP%]{--mat-tooltip-supporting-text-font: Figtree;--mat-tooltip-supporting-text-weight: 525;--mat-tooltip-supporting-text-size: .75rem;--mat-tooltip-supporting-text-line-height: 1rem}.mat-mdc-tooltip-panel[_ngcontent-%COMP%] .mdc-tooltip[_ngcontent-%COMP%]{position:relative;overflow:initial}.mat-mdc-tooltip-panel[_ngcontent-%COMP%] .mdc-tooltip[_ngcontent-%COMP%]:after{width:1rem;height:.75rem;content:url(\'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 9"><path d="M5.20759 1.02937C5.6079 0.509358 6.3921 0.509358 6.79241 1.02937L11.6888 7.39001C12.195 8.04757 11.7263 9 10.8964 9H1.10358C0.273737 9 -0.195026 8.04757 0.311171 7.39001L5.20759 1.02937Z" fill="%2300106a"/></svg>\');display:inline-block;position:absolute}.dark-theme[_ngcontent-%COMP%] .mat-mdc-tooltip-panel[_ngcontent-%COMP%] .mdc-tooltip[_ngcontent-%COMP%]:after{content:url(\'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 9"><path d="M5.20759 1.02937C5.6079 0.509358 6.3921 0.509358 6.79241 1.02937L11.6888 7.39001C12.195 8.04757 11.7263 9 10.8964 9H1.10358C0.273737 9 -0.195026 8.04757 0.311171 7.39001L5.20759 1.02937Z" fill="%236B91FD"/></svg>\')}.mat-mdc-tooltip-panel-below[_ngcontent-%COMP%] .mdc-tooltip[_ngcontent-%COMP%]:after{top:-.75rem;right:calc(50% - .5rem);transform:rotate(0)}.mat-mdc-tooltip-panel-above[_ngcontent-%COMP%] .mdc-tooltip[_ngcontent-%COMP%]:after{bottom:-.75rem;right:calc(50% - .5rem);transform:rotate(180deg)}.mat-mdc-tooltip-panel-right[_ngcontent-%COMP%] .mdc-tooltip[_ngcontent-%COMP%]:after{left:-.875rem;top:calc(50% - .375rem);transform:rotate(270deg)}.mat-mdc-tooltip-panel-left[_ngcontent-%COMP%] .mdc-tooltip[_ngcontent-%COMP%]:after{right:-.875rem;top:calc(50% - .375rem);transform:rotate(90deg)}.mat-mdc-tooltip.mat-mdc-tooltip[_ngcontent-%COMP%] .mdc-tooltip__surface[_ngcontent-%COMP%]{background-color:var(--color-background-brand-bolder);padding:.5rem .75rem;border-radius:.5rem}@font-face{font-family:Material Icons;font-style:normal;font-weight:400;
1src:url(https://fonts.gstatic.com/s/materialicons/v92/flUhRq6tzZclQEJ-Vdg-IuiaDsNcIhQ8tQ.eot);src:local("Material Icons"),local("MaterialIcons-Regular"),url(https://fonts.gstatic.com/s/materialicons/v92/flUhRq6tzZclQEJ-Vdg-IuiaDsNcIhQ8tQ.woff2) format("woff2"),url(https://fonts.gstatic.com/s/materialicons/v92/flUhRq6tzZclQEJ-Vdg-IuiaDsNcIhQ8tQ.woff) format("woff"),url(https://fonts.gstatic.com/s/materialicons/v92/flUhRq6tzZclQEJ-Vdg-IuiaDsNcIhQ8tQ.ttf) format("truetype");font-display:block}.tide-currency-sub-unit[_ngcontent-%COMP%]{font-size:.78125rem}.balance-currency-sub-unit[_ngcontent-%COMP%]{font-size:1.3671875rem}[_nghost-%COMP%]:has(>mat-spinner){display:flex;height:31.25rem}[_nghost-%COMP%] mat-spinner[_ngcontent-%COMP%]{margin:auto}']})}}return c})()},24449(Z,R,l){l.d(R,{U:()=>O,V:()=>o});var r=l(28624),h=l(38003),d=l(57153);const O={header:{title:"Sole UBO"},body:"A Sole UBO refers to a Sole Ultimate Beneficial Owner. This is a legal term used in business and finance to describe the individual who ultimately owns or controls a company or entity. In the context of a \"sole\" UBO, it means there is only one individual who has the final ownership or control of the business.",actions:[{variant:h.Me.Primary,text:"Ok",type:r._.Ok}]},o=(k,e)=>({header:{title:`You're about to remove ${k} ${e}`},body:"This will permanently delete this person from your company's list.",customClassName:"add-new-ubo-dialog",actions:[{text:"Remove UBO",type:r._.Confirm,variant:h.Me.Secondary,color:d._.Warn,size:h.IE.Normal},{text:"Cancel",type:r._.Cancel,variant:h.Me.Tertiary}]})},85563(Z,R,l){l.d(R,{G:()=>b,B:()=>g});var r=l(99886),h=l(15580),d=l(33218),O=l(50574),o=l(88830),k=l(24449),e=l(44238),P=l(81128),B=l(81380),D=l(44128),C=l(90045),S=l(58304),y=l(36988),I=l(82490),U=l(94226),G=l(62954),v=l(84619),x=l(29604);function u(f,A){if(1&f&&(e.\u0275\u0275text(0),e.\u0275\u0275pipe(1,"titlecase"),e.\u0275\u0275pipe(2,"titlecase")),2&f){const a=e.\u0275\u0275nextContext();e.\u0275\u0275textInterpolate2(" ",e.\u0275\u0275pipeBind1(1,2,a.uboInfo?.firstName.toString().trim())," ",e.\u0275\u0275pipeBind1(2,4,a.uboInfo?.lastName.toString().trim())," ")}}function T(f,A){if(1&f&&(e.\u0275\u0275text(0),e.\u0275\u0275pipe(1,"titlecase")),2&f){const a=e.\u0275\u0275nextContext();e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(1,1,a.uboInfo?.name.toString())," ")}}function $(f,A){if(1&f){const a=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"button",12),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(a);const p=e.\u0275\u0275nextContext();return e.\u0275\u0275resetView(p.removeUbo())}),e.\u0275\u0275text(1," Remove UBO "),e.\u0275\u0275elementEnd()}}let V=(()=>{class f{constructor(a,m,p,E,H,Oo){this._router=a,this._activatedRoute=m,this._store=p,this._uboDataService=E,this._dialogService=H,this._onboardingService=Oo,this.formGroup=this._initForm(),this.authToken$=this._store.select(h.gf),this.loading=!1,this.eShareholderType=O.Lx,this.isUboNewAddFlowEnabled=!1}ngOnInit(){this.uboInfo=this._router?.lastSuccessfulNavigation()?.extras?.state?.uboInfo,this.isUboNewAddFlowEnabled=this._onboardingService.isUboNewAddFlowEnabled,this.uboInfo||this.closePersonalDetails(),this.uboInfo?.isApplicant?this.next():this._uboDataService.uboData$.pipe((0,o.take)(1)).subscribe(a=>{a||this.closePersonalDetails(),this.formGroup.patchValue({dateOfBirth:a.dateOfBirth||"",address:a.address||(0,d.U$)()?.value,nationalities:a.nationalities?.length?{code:a.nationalities[0]}:null})})}_initForm(){return new r.FormGroup({dateOfBirth:new r.FormControl("",{validators:[r.Validators.required]}),address:(0,d.U$)(),nationalities:new r.FormControl(null,[r.Validators.required])})}closePersonalDetails(){this._router.navigate(["./"],{relativeTo:this._activatedRoute.parent})}businessDetails(){const a=this.formGroup.getRawValue();a.nationalities=[a.nationalities?.code],this._uboDataService.uboData$.pipe((0,o.take)(1)).subscribe(m=>{const p={...this.uboInfo,...m,...a};this._uboDataService.setUboData(p)}),this.next()}removeUbo(){this._dialogService.openDialog((0,k.V)(this.uboInfo?.firstName,this.uboInfo?.lastName),"auto","343px")}
1next(){let a=b.BUSINESS_DETAILS;this.uboInfo?.director&&!this.uboInfo?.shareholder&&(a=b.REVIEW_DETAILS),this._router.navigate([a],{relativeTo:this._activatedRoute})}static{this.\u0275fac=function(m){return new(m||f)(e.\u0275\u0275directiveInject(P.Router),e.\u0275\u0275directiveInject(P.ActivatedRoute),e.\u0275\u0275directiveInject(B.Store),e.\u0275\u0275directiveInject(D.G),e.\u0275\u0275directiveInject(C.o),e.\u0275\u0275directiveInject(S.x))}}static{this.\u0275cmp=e.\u0275\u0275defineComponent({type:f,selectors:[["twa-ubo-personal-details"]],standalone:!1,decls:27,vars:16,consts:[[3,"disableSidenavClose"],["heading","",3,"closeClick"],[1,"tide-sub-1"],[1,"form-container"],[3,"formGroup"],[1,"tide-sub-2"],["formControlName","dateOfBirth"],["formControlName","nationalities","data-testid","nationality",3,"authToken"],["label","Residential address",3,"modelChange","model","authToken","disableAddressLabel"],[1,"buttons-container"],["type","button","tide-button","","variant","secondary","color","warn","size","medium",1,"remove-ubo"],["type","button","tide-button","","variant","primary","data-testid","ubopersonal-next",1,"next-ubo",3,"click","disabled","size"],["type","button","tide-button","","variant","secondary","color","warn","size","medium",1,"remove-ubo",3,"click"]],template:function(m,p){if(1&m&&(e.\u0275\u0275elementStart(0,"twa-sidesheet",0)(1,"twa-sidesheet-header",1),e.\u0275\u0275listener("closeClick",function(){return p.closePersonalDetails()}),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(2,"main")(3,"h3"),e.\u0275\u0275text(4," Add "),e.\u0275\u0275conditionalCreate(5,u,3,6)(6,T,2,3),e.\u0275\u0275text(7," 's personal details "),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(8,"p",2),e.\u0275\u0275text(9,"We'll use these details to verify their identity"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(10,"div",3)(11,"form",4)(12,"p",5),e.\u0275\u0275text(13,"Date of birth"),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(14,"twa-date-of-birth",6),e.\u0275\u0275controlCreate(),e.\u0275\u0275element(15,"p",5),e.\u0275\u0275elementStart(16,"p",5),e.\u0275\u0275text(17,"Nationality"),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(18,"twa-nationality-country",7),e.\u0275\u0275pipe(19,"async"),e.\u0275\u0275controlCreate(),e.\u0275\u0275elementStart(20,"twa-onboarding-address-lookup",8),e.\u0275\u0275pipe(21,"async"),e.\u0275\u0275listener("modelChange",function(H){return p.formGroup.get("address")?.reset(H)}),e.\u0275\u0275elementEnd()()()(),e.\u0275\u0275elementStart(22,"twa-sidesheet-footer")(23,"div",9),e.\u0275\u0275conditionalCreate(24,$,2,0,"button",10),e.\u0275\u0275elementStart(25,"button",11),e.\u0275\u0275listener("click",function(){return p.businessDetails()}),e.\u0275\u0275text(26," Next "),e.\u0275\u0275elementEnd()()()()),2&m){let E;e.\u0275\u0275property("disableSidenavClose",!0),e.\u0275\u0275advance(5),e.\u0275\u0275conditional(p.uboInfo?.type===p.eShareholderType.Individual?5:6),e.\u0275\u0275advance(6),e.\u0275\u0275property("formGroup",p.formGroup),e.\u0275\u0275advance(3),e.\u0275\u0275control(),e.\u0275\u0275advance(4),e.\u0275\u0275property("authToken",e.\u0275\u0275pipeBind1(19,12,p.authToken$)),e.\u0275\u0275control(),e.\u0275\u0275advance(2),e.\u0275\u0275property("model",null==(E=p.formGroup.get("address"))?null:E.value)("authToken",e.\u0275\u0275pipeBind1(21,14,p.authToken$))("disableAddressLabel",!1),e.\u0275\u0275advance(3),e.\u0275\u0275classProp("custom-button-styling",p.isUboNewAddFlowEnabled),e.\u0275\u0275advance(),e.\u0275\u0275conditional(p.isUboNewAddFlowEnabled?24:-1),e.\u0275\u0275advance(),e.\u0275\u0275property("disabled",p.formGroup.invalid)("size",p.isUboNewAddFlowEnabled?"medium":"full-width")}},dependencies:[r.\u0275NgNoValidate,r.NgControlStatus,r.NgControlStatusGroup,r.FormGroupDirective,r.FormControlName,y.SidesheetComponent,y.SidesheetFooterComponent,y.SidesheetHeaderComponent,I.o,U.H,G.C,v.n,x.AsyncPipe,x.TitleCasePipe],styles:['[_ngcontent-%COMP%]:root{--color-background-standard: #f0f4ff;--color-background-inverse: #ffffff;--color-background-subtler: #f3f3f4;--color-background-brand: #1929d6;--color-background-brand-bolder: #00106a;--color-background-brand-subtle: #c5d8ff;--color-background-brand-subtler: #dde8ff;--color-background-disabled: #ececee;--color-background-subtle: #cdcfd5;--color-background-success-subtle: #ecfdf3;--color-background-success-bold: #75e0a7;--color-background-success-bolder: #089b5d;--color-background-warning-subtle: #fffaeb;--color-background-warning-bold: #ffc142;--color-background-warning-bolder: #4e1d09;--color-background-error-subtle: #fef3f2;--color-background-error-bold: #d92d20;--color-background-bold: #9095a2;--color-background-boldest: #1d1f2a;--color-decorative-orange-subtle: #feead5;--color-decorative-blue-subtle: #cfecfd;--color-decorative-purple-subtle: #eee0ff;--color-decorative-teal-subtle: #e8f9fd;--color-decorative-magenta-subtle: #ffe6e6;--color-decorative-brown-subtle: #f7ecdd;--color-decorative-yellow-subtle: #fdf4ce;--color-decorative-green-subtle: #dcfae6;--color-decorative-yellow: #fedf89;--color-decorative-green: #a9efc5;--color-decorative-orange: #f9af82;--color-decorative-blue: #70b8f3;--color-decorative-purple: #bc87ff;--color-decorative-teal: #56cccc;--color-decorative-magenta: #f582a0;--color-decorative-brown: #d2ae90;--color-decorative-yellow-bold: #dc6803;--color-decorative-green-bold: #17b26a;--color-decorative-orange-bold: #a92518;--color-decorative-blue-bold: #0b409a;--color-decorative-purple-bold: #5a11b0;
1--color-decorative-teal-bold: #007d8c;--color-decorative-magenta-bold: #8d0450;--color-border-standard: #cdcfd5;--color-border-subtle: #e4e4e7;--color-border-brand: #1929d6;--color-border-disabled: #ececee;--color-border-bold: #9095a2;--color-border-success-subtle: #75e0a7;--color-border-success-bold: #089b5d;--color-border-warning-subtle: #ffc142;--color-border-error-subtle: #fa887f;--color-border-warning-bold: #dc6803;--color-border-error-bold: #f04438;--color-border-focus: #5273ff;--color-border-brand-subtler: #c5d8ff;--color-border-brand-subtlest: #dde8ff;--color-border-brand-subtle: #a4bcff;--color-border-brand-bolder: #00106a;--color-text-standard: #282b3a;--color-text-secondary: #494d5f;--color-text-tertiary: #6f7281;--color-text-brand-bold: #00106a;--color-text-brand: #1929d6;--color-text-disabled: #a6aab4;--color-text-success-subtle: #75e0a7;--color-text-success-bold: #067647;--color-text-success-bolder: #067647;--color-text-warning-subtle: #ffc142;--color-text-warning-bold: #b54708;--color-text-warning-bolder: #b54708;--color-text-error-subtle: #fa887f;--color-text-error-bold: #d92d20;--color-text-error-bolder: #6e0b32;--color-text-inverse: #ffffff;--color-text-brand-subtle: #6b91fd;--color-icon-standard: #616371;--color-icon-secondary: #9095a2;--color-icon-brand: #1929d6;--color-icon-brand-bold: #00106a;--color-icon-brand-subtle: #6b91fd;--color-icon-success-subtle: #75e0a7;--color-icon-success-bold: #089b5d;--color-icon-warning-subtle: #ffc142;--color-icon-warning-bold: #b54708;--color-icon-warning-bolder: #b54708;--color-icon-error-subtle: #fa887f;--color-icon-error-bold: #d92d20;--color-icon-orange-subtle: #ec5c31;--color-icon-blue-subtle: #176fd7;--color-icon-purple-subtle: #9346ed;--color-icon-teal-subtle: #01a3ae;--color-icon-magenta-subtle: #cd1d5c;--color-icon-brown-subtle: #6b4533;--color-icon-error-bolder: #d92d20;--color-icon-orange-bold: #a92518;--color-icon-blue-bold: #0b409a;--color-icon-teal-bold: #007d8c;--color-icon-magenta-bold: #8d0450;--color-icon-purple-bold: #5a11b0;--color-icon-brown-bold: #4d2319;--color-icon-inverse: #ffffff;--color-icon-disabled: #6f7281;--color-link-standard: #1929d6;--color-link-active: #00106a;--color-link-hover: #0c008a;--color-link-visited: #1209ae;--color-opacity-0: rgba(#1d1f2a, .2)}[_ngcontent-%COMP%]:root{--color-indigo-100: #f0f4ff;--color-indigo-200: #dde8ff;--color-indigo-300: #c5d8ff;--color-indigo-400: #a4bcff;--color-indigo-500: #6b91fd;--color-indigo-600: #5273ff;--color-indigo-700: #3746ec;--color-indigo-800: #1929d6;--color-indigo-900: #1209ae;--color-indigo-1000: #0c008a;--color-indigo-1100: #00106a;--color-indigo-1200: #030047;--color-grey-0: #ffffff;--color-grey-100: #f3f3f4;--color-grey-200: #ececee;--color-grey-300: #e4e4e7;--color-grey-400: #cdcfd5;--color-grey-500: #a6aab4;--color-grey-600: #9095a2;--color-grey-700: #6f7281;--color-grey-800: #616371;--color-grey-900: #494d5f;--color-grey-1000: #31333f;--color-grey-1100: #282b3a;--color-grey-1200: #1d1f2a;--color-green-100: #ecfdf3;--color-green-200: #dcfae6;--color-green-250: #d2fad1;--color-green-300: #a9efc5;--color-green-400: #75e0a7;--color-green-450: #74e489;--color-green-500: #47cd89;--color-green-600: #17b26a;--color-green-700: #089b5d;--color-green-800: #067647;--color-green-900: #044e2e;--color-green-1000: #053321;--color-green-1100: #055040;--color-red-50: #fde3d7;--color-red-100: #fef3f2;--color-red-200: #fee4e2;--color-red-300: #fecdca;--color-red-350: #f79788;--color-red-400: #fda7a0;--color-red-500: #fa887f;--color-red-600: #f97066;--color-red-700: #f04438;--color-red-800: #d92d20;--color-red-900: #b42318;--color-red-1000: #912018;--color-red-1100: #6e0b32;--color-yellow-100: #fffaeb;--color-yellow-200: #fdf4ce;--color-yellow-300: #fedf89;--color-yellow-400: #ffc142;--color-yellow-450: #e8a011;--color-yellow-500: #fdb022;--color-yellow-600: #f79009;--color-yellow-700: #dc6803;--color-yellow-800: #b54708;--color-yellow-900: #93370d;--color-yellow-1000: #4e1d09;--color-yellow-1100: #6f3c03;--color-purple-50: #eee0ff;--color-purple-100: #dabaff;--color-purple-300: #bc87ff;--color-purple-500: #9346ed;--color-purple-700: #5a11b0;
1--color-purple-900: #33087e;--color-blue-100: #cfecfd;--color-blue-300: #70b8f3;--color-blue-500: #176fd7;--color-blue-700: #0b409a;--color-blue-900: #041f67;--color-teal-50: #e8f9fd;--color-teal-100: #9de2e5;--color-teal-300: #56cccc;--color-teal-500: #01a3ae;--color-teal-700: #007d8c;--color-teal-900: #02576a;--color-orange-100: #feead5;--color-orange-300: #f9af82;--color-orange-500: #ec5c31;--color-orange-700: #a92518;--color-orange-900: #71090f;--color-magenta-50: #ffe6e6;--color-magenta-100: #ffbdcc;--color-magenta-300: #f582a0;--color-magenta-500: #cd1d5c;--color-magenta-700: #8d0450;--color-magenta-900: #62054b;--color-brown-100: #f7ecdd;--color-brown-300: #d2ae90;--color-brown-500: #6b4533;--color-brown-700: #4d2319;--color-brown-900: #330c09;--color-slate-100: #f1f1f3;--color-slate-200: #e6e6ea;--color-slate-300: #dedee3;--color-slate-400: #ced0d6;--color-slate-500: #aeb2bc;--color-slate-600: #9da0a8;--color-slate-700: #7f838a;--color-slate-800: #45484f;--color-slate-900: #393b41;--color-slate-1000: #2b2c31;--color-slate-1100: #18191b;--color-slate-1200: #0f0f0f;--color-slate-000: #ffffff}.light-theme[_ngcontent-%COMP%]{--color-background-standard: #f0f4ff;--color-background-inverse: #ffffff;--color-background-subtler: #f3f3f4;--color-background-brand: #1929d6;--color-background-brand-bolder: #00106a;--color-background-brand-subtle: #c5d8ff;--color-background-brand-subtler: #dde8ff;--color-background-disabled: #ececee;--color-background-subtle: #cdcfd5;--color-background-success-subtle: #ecfdf3;--color-background-success-bold: #75e0a7;--color-background-success-bolder: #089b5d;--color-background-warning-subtle: #fffaeb;--color-background-warning-bold: #ffc142;--color-background-warning-bolder: #4e1d09;--color-background-error-subtle: #fef3f2;--color-background-error-bold: #d92d20;--color-background-bold: #9095a2;--color-background-boldest: #1d1f2a;--color-decorative-orange-subtle: #feead5;--color-decorative-blue-subtle: #cfecfd;--color-decorative-purple-subtle: #eee0ff;--color-decorative-teal-subtle: #e8f9fd;--color-decorative-magenta-subtle: #ffe6e6;--color-decorative-brown-subtle: #f7ecdd;--color-decorative-yellow-subtle: #fdf4ce;--color-decorative-green-subtle: #dcfae6;--color-decorative-yellow: #fedf89;--color-decorative-green: #a9efc5;--color-decorative-orange: #f9af82;--color-decorative-blue: #70b8f3;--color-decorative-purple: #bc87ff;--color-decorative-teal: #56cccc;--color-decorative-magenta: #f582a0;--color-decorative-brown: #d2ae90;--color-decorative-yellow-bold: #dc6803;--color-decorative-green-bold: #17b26a;--color-decorative-orange-bold: #a92518;--color-decorative-blue-bold: #0b409a;--color-decorative-purple-bold: #5a11b0;--color-decorative-teal-bold: #007d8c;--color-decorative-magenta-bold: #8d0450;--color-border-standard: #cdcfd5;--color-border-subtle: #e4e4e7;--color-border-brand: #1929d6;--color-border-disabled: #ececee;--color-border-bold: #9095a2;--color-border-success-subtle: #75e0a7;--color-border-success-bold: #089b5d;--color-border-warning-subtle: #ffc142;--color-border-error-subtle: #fa887f;--color-border-warning-bold: #dc6803;--color-border-error-bold: #f04438;--color-border-focus: #5273ff;--color-border-brand-subtler: #c5d8ff;--color-border-brand-subtlest: #dde8ff;--color-border-brand-subtle: #a4bcff;--color-border-brand-bolder: #00106a;--color-text-standard: #282b3a;--color-text-secondary: #494d5f;--color-text-tertiary: #6f7281;--color-text-brand-bold: #00106a;--color-text-brand: #1929d6;--color-text-disabled: #a6aab4;--color-text-success-subtle: #75e0a7;--color-text-success-bold: #067647;--color-text-success-bolder: #067647;--color-text-warning-subtle: #ffc142;--color-text-warning-bold: #b54708;--color-text-warning-bolder: #b54708;--color-text-error-subtle: #fa887f;--color-text-error-bold: #d92d20;--color-text-error-bolder: #6e0b32;--color-text-inverse: #ffffff;--color-text-brand-subtle: #6b91fd;--color-icon-standard: #616371;--color-icon-secondary: #9095a2;--color-icon-brand: #1929d6;--color-icon-brand-bold: #00106a;--color-icon-brand-subtle: #6b91fd;--color-icon-success-subtle: #75e0a7;--color-icon-success-bold: #089b5d;--color-icon-warning-subtle: #ffc142;--color-icon-warning-bold: #b54708;--color-icon-warning-bolder: #b54708;--color-icon-error-subtle: #fa887f;--color-icon-error-bold: #d92d20;--color-icon-orange-subtle: #ec5c31;--color-icon-blue-subtle: #176fd7;--color-icon-purple-subtle: #9346ed;--color-icon-teal-subtle: #01a3ae;--color-icon-magenta-subtle: #cd1d5c;--color-icon-brown-subtle: #6b4533;--color-icon-error-bolder: #d92d20;--color-icon-orange-bold: #a92518;--color-icon-blue-bold: #0b409a;--color-icon-teal-bold: #007d8c;--color-icon-magenta-bold: #8d0450;--color-icon-purple-bold: #5a11b0;
1--color-icon-brown-bold: #4d2319;--color-icon-inverse: #ffffff;--color-icon-disabled: #6f7281;--color-link-standard: #1929d6;--color-link-active: #00106a;--color-link-hover: #0c008a;--color-link-visited: #1209ae;--color-opacity-0: rgba(#1d1f2a, .2)}.mat-mdc-tooltip[_ngcontent-%COMP%]{--mat-tooltip-supporting-text-font: Figtree;--mat-tooltip-supporting-text-weight: 525;--mat-tooltip-supporting-text-size: .75rem;--mat-tooltip-supporting-text-line-height: 1rem}.mat-mdc-tooltip-panel[_ngcontent-%COMP%] .mdc-tooltip[_ngcontent-%COMP%]{position:relative;overflow:initial}.mat-mdc-tooltip-panel[_ngcontent-%COMP%] .mdc-tooltip[_ngcontent-%COMP%]:after{width:1rem;height:.75rem;content:url(\'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 9"><path d="M5.20759 1.02937C5.6079 0.509358 6.3921 0.509358 6.79241 1.02937L11.6888 7.39001C12.195 8.04757 11.7263 9 10.8964 9H1.10358C0.273737 9 -0.195026 8.04757 0.311171 7.39001L5.20759 1.02937Z" fill="%2300106a"/></svg>\');display:inline-block;position:absolute}.dark-theme[_ngcontent-%COMP%] .mat-mdc-tooltip-panel[_ngcontent-%COMP%] .mdc-tooltip[_ngcontent-%COMP%]:after{content:url(\'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 9"><path d="M5.20759 1.02937C5.6079 0.509358 6.3921 0.509358 6.79241 1.02937L11.6888 7.39001C12.195 8.04757 11.7263 9 10.8964 9H1.10358C0.273737 9 -0.195026 8.04757 0.311171 7.39001L5.20759 1.02937Z" fill="%236B91FD"/></svg>\')}.mat-mdc-tooltip-panel-below[_ngcontent-%COMP%] .mdc-tooltip[_ngcontent-%COMP%]:after{top:-.75rem;right:calc(50% - .5rem);transform:rotate(0)}.mat-mdc-tooltip-panel-above[_ngcontent-%COMP%] .mdc-tooltip[_ngcontent-%COMP%]:after{bottom:-.75rem;right:calc(50% - .5rem);transform:rotate(180deg)}.mat-mdc-tooltip-panel-right[_ngcontent-%COMP%] .mdc-tooltip[_ngcontent-%COMP%]:after{left:-.875rem;top:calc(50% - .375rem);transform:rotate(270deg)}.mat-mdc-tooltip-panel-left[_ngcontent-%COMP%] .mdc-tooltip[_ngcontent-%COMP%]:after{right:-.875rem;top:calc(50% - .375rem);transform:rotate(90deg)}.mat-mdc-tooltip.mat-mdc-tooltip[_ngcontent-%COMP%] .mdc-tooltip__surface[_ngcontent-%COMP%]{background-color:var(--color-background-brand-bolder);padding:.5rem .75rem;border-radius:.5rem}@font-face{font-family:Material Icons;font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/materialicons/v92/flUhRq6tzZclQEJ-Vdg-IuiaDsNcIhQ8tQ.eot);src:local("Material Icons"),local("MaterialIcons-Regular"),url(https://fonts.gstatic.com/s/materialicons/v92/flUhRq6tzZclQEJ-Vdg-IuiaDsNcIhQ8tQ.woff2) format("woff2"),url(https://fonts.gstatic.com/s/materialicons/v92/flUhRq6tzZclQEJ-Vdg-IuiaDsNcIhQ8tQ.woff) format("woff"),url(https://fonts.gstatic.com/s/materialicons/v92/flUhRq6tzZclQEJ-Vdg-IuiaDsNcIhQ8tQ.ttf) format("truetype");font-display:block}.tide-currency-sub-unit[_ngcontent-%COMP%]{font-size:.78125rem}.balance-currency-sub-unit[_ngcontent-%COMP%]{font-size:1.3671875rem}[_nghost-%COMP%] h3[_ngcontent-%COMP%]{margin-bottom:.5rem}[_nghost-%COMP%] .form-container[_ngcontent-%COMP%]{margin-top:2rem}[_nghost-%COMP%] .form-container[_ngcontent-%COMP%] .form-section[_ngcontent-%COMP%]{margin-bottom:1.5rem}[_nghost-%COMP%] .form-container[_ngcontent-%COMP%] .form-section[_ngcontent-%COMP%]:last-child{margin-bottom:0}[_nghost-%COMP%] .form-container[_ngcontent-%COMP%] .form-section[_ngcontent-%COMP%] p.tide-sub-2[_ngcontent-%COMP%]{margin-bottom:.5rem;font-weight:500}[_nghost-%COMP%] .buttons-container[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;gap:.5rem}[_nghost-%COMP%] .buttons-container.custom-button-styling[_ngcontent-%COMP%] button.remove-ubo[_ngcontent-%COMP%], [_nghost-%COMP%] .buttons-container.custom-button-styling[_ngcontent-%COMP%] button.next-ubo[_ngcontent-%COMP%]{width:12.5rem;height:2.75rem;border-radius:62.4375rem} .add-new-ubo-dialog mat-dialog-actions .button-container{width:49%!important}']})}}return f})();var X=l(93587),F=l(59868),J=l(207),oo=l(52795);const Y=()=>["label"];function no(f,A){if(1&f&&(e.\u0275\u0275elementStart(0,"h3"),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"titlecase"),e.\u0275\u0275pipe(3,"titlecase"),e.\u0275\u0275elementEnd()),2&f){const a=A;e.\u0275\u0275advance(),e.\u0275\u0275textInterpolate2("What's the nature of ",e.\u0275\u0275pipeBind1(2,2,a.firstName)," ",e.\u0275\u0275pipeBind1(3,4,a.lastName),"'s control?")}}let eo=(()=>{class f{constructor(a,m,p){this._router=a,this._activatedRoute=m,this._uboDataService=p,this.formGroup=this._initForm(),this.uboData$=new o.Observable,this.options=[{label:"Yes",value:"Yes"},{label:"No",value:"No"},{label:"Don't know",value:"Empty"}]}ngOnInit(){this.uboData$=this._uboDataService.uboData$,this._uboDataService.uboData$.pipe((0,o.take)(1),(0,X.u5)()).subscribe(a=>{this.formGroup.patchValue({sharesOwned:a?.sharesOwned||a?.naturesOfControl?.find(m=>m.type===O.g8.Ownership)?.shares||"",votingRights:a?.votingRights||a?.naturesOfControl?.find(m=>m.type===O.g8.VotingRights)?.shares||"",removeDirectors:a?.removeDirectors||(a?.naturesOfControl?.find(m=>m.type===O.g8.RightToAppointAndRemoveDirectors)?{label:"Yes",value:"Yes"}:null),componyControl:a?.componyControl||(a?.naturesOfControl?.find(m=>m.type===O.g8.OtherMeans)?{label:"Yes",value:"Yes"}:null)})})}_initForm(){return new r.FormGroup({sharesOwned:new r.FormControl("",{validators:[r.Validators.required,F.CustomValidators.maxValue(100),F.CustomValidators.minAmount(0)]}),votingRights:new r.FormControl("",{validators:[r.Validators.required,F.CustomValidators.maxValue(100),F.CustomValidators.minAmount(0)]}),removeDirectors:new r.FormControl(null,[r.Validators.required]),componyControl:new r.FormControl(null,[r.Validators.required])})}
1closeBusinessDetails(){this._router.navigate(["../"],{relativeTo:this._activatedRoute.parent})}review(){this._uboDataService.uboData$.pipe((0,o.take)(1)).subscribe(a=>{const m=this.formGroup.getRawValue();this._uboDataService.setUboData({...a,...m})}),this._router.navigate(["..","review-details"],{relativeTo:this._activatedRoute})}static{this.\u0275fac=function(m){return new(m||f)(e.\u0275\u0275directiveInject(P.Router),e.\u0275\u0275directiveInject(P.ActivatedRoute),e.\u0275\u0275directiveInject(D.G))}}static{this.\u0275cmp=e.\u0275\u0275defineComponent({type:f,selectors:[["twa-ubo-business-details"]],standalone:!1,decls:20,vars:15,consts:[["heading","",3,"closeClick"],[1,"tide-sub-1"],[1,"form-container"],[3,"formGroup"],["formControlName","sharesOwned","data-testid","sharesOwned",3,"controlType","prefix"],["formControlName","votingRights","data-testid","votingRights",3,"controlType","prefix"],["formControlName","removeDirectors","data-testid","remove-directors",3,"options","display"],["formControlName","componyControl","data-testid","significant-control",3,"options","display"],["type","button","tide-button","","variant","primary","size","full-width","data-testid","uboBusiness-next",3,"click","disabled"]],template:function(m,p){if(1&m&&(e.\u0275\u0275elementStart(0,"twa-sidesheet")(1,"twa-sidesheet-header",0),e.\u0275\u0275listener("closeClick",function(){return p.closeBusinessDetails()}),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(2,"main"),e.\u0275\u0275conditionalCreate(3,no,4,6,"h3"),e.\u0275\u0275pipe(4,"async"),e.\u0275\u0275elementStart(5,"p",1),e.\u0275\u0275text(6,"We need a few details about their relationship to the company"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(7,"div",2)(8,"form",3)(9,"tide-input",4),e.\u0275\u0275text(10," Percentage of shares owned "),e.\u0275\u0275elementEnd(),e.\u0275\u0275controlCreate(),e.\u0275\u0275elementStart(11,"tide-input",5),e.\u0275\u0275text(12," Percentage of voting rights "),e.\u0275\u0275elementEnd(),e.\u0275\u0275controlCreate(),e.\u0275\u0275elementStart(13,"tide-select",6),e.\u0275\u0275text(14,"Do they have the right to appoint or remove directors?"),e.\u0275\u0275elementEnd(),e.\u0275\u0275controlCreate(),e.\u0275\u0275elementStart(15,"tide-select",7),e.\u0275\u0275text(16,"Do they have significant control of the company?"),e.\u0275\u0275elementEnd(),e.\u0275\u0275controlCreate(),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(17,"twa-sidesheet-footer")(18,"button",8),e.\u0275\u0275listener("click",function(){return p.review()}),e.\u0275\u0275text(19," Next "),e.\u0275\u0275elementEnd()()()),2&m){let E;e.\u0275\u0275advance(3),e.\u0275\u0275conditional((E=e.\u0275\u0275pipeBind1(4,11,p.uboData$))?3:-1,E),e.\u0275\u0275advance(5),e.\u0275\u0275property("formGroup",p.formGroup),e.\u0275\u0275advance(),e.\u0275\u0275property("controlType","number")("prefix","%"),e.\u0275\u0275control(),e.\u0275\u0275advance(2),e.\u0275\u0275property("controlType","number")("prefix","%"),e.\u0275\u0275control(),e.\u0275\u0275advance(2),e.\u0275\u0275property("options",p.options)("display",e.\u0275\u0275pureFunction0(13,Y)),e.\u0275\u0275control(),e.\u0275\u0275advance(2),e.\u0275\u0275property("options",p.options)("display",e.\u0275\u0275pureFunction0(14,Y)),e.\u0275\u0275control(),e.\u0275\u0275advance(3),e.\u0275\u0275property("disabled",p.formGroup.invalid)}},dependencies:[r.\u0275NgNoValidate,r.NgControlStatus,r.NgControlStatusGroup,r.FormGroupDirective,r.FormControlName,y.SidesheetComponent,y.SidesheetFooterComponent,y.SidesheetHeaderComponent,I.o,J.S,oo.w,x.AsyncPipe,x.TitleCasePipe],styles:['[_ngcontent-%COMP%]:root{--color-background-standard: #f0f4ff;--color-background-inverse: #ffffff;--color-background-subtler: #f3f3f4;--color-background-brand: #1929d6;--color-background-brand-bolder: #00106a;--color-background-brand-subtle: #c5d8ff;--color-background-brand-subtler: #dde8ff;--color-background-disabled: #ececee;--color-background-subtle: #cdcfd5;--color-background-success-subtle: #ecfdf3;--color-background-success-bold: #75e0a7;--color-background-success-bolder: #089b5d;--color-background-warning-subtle: #fffaeb;--color-background-warning-bold: #ffc142;--color-background-warning-bolder: #4e1d09;--color-background-error-subtle: #fef3f2;--color-background-error-bold: #d92d20;--color-background-bold: #9095a2;--color-background-boldest: #1d1f2a;--color-decorative-orange-subtle: #feead5;--color-decorative-blue-subtle: #cfecfd;--color-decorative-purple-subtle: #eee0ff;--color-decorative-teal-subtle: #e8f9fd;--color-decorative-magenta-subtle: #ffe6e6;--color-decorative-brown-subtle: #f7ecdd;--color-decorative-yellow-subtle: #fdf4ce;--color-decorative-green-subtle: #dcfae6;--color-decorative-yellow: #fedf89;--color-decorative-green: #a9efc5;--color-decorative-orange: #f9af82;--color-decorative-blue: #70b8f3;--color-decorative-purple: #bc87ff;--color-decorative-teal: #56cccc;--color-decorative-magenta: #f582a0;--color-decorative-brown: #d2ae90;--color-decorative-yellow-bold: #dc6803;--color-decorative-green-bold: #17b26a;--color-decorative-orange-bold: #a92518;--color-decorative-blue-bold: #0b409a;--color-decorative-purple-bold: #5a11b0;
1--color-decorative-teal-bold: #007d8c;--color-decorative-magenta-bold: #8d0450;--color-border-standard: #cdcfd5;--color-border-subtle: #e4e4e7;--color-border-brand: #1929d6;--color-border-disabled: #ececee;--color-border-bold: #9095a2;--color-border-success-subtle: #75e0a7;--color-border-success-bold: #089b5d;--color-border-warning-subtle: #ffc142;--color-border-error-subtle: #fa887f;--color-border-warning-bold: #dc6803;--color-border-error-bold: #f04438;--color-border-focus: #5273ff;--color-border-brand-subtler: #c5d8ff;--color-border-brand-subtlest: #dde8ff;--color-border-brand-subtle: #a4bcff;--color-border-brand-bolder: #00106a;--color-text-standard: #282b3a;--color-text-secondary: #494d5f;--color-text-tertiary: #6f7281;--color-text-brand-bold: #00106a;--color-text-brand: #1929d6;--color-text-disabled: #a6aab4;--color-text-success-subtle: #75e0a7;--color-text-success-bold: #067647;--color-text-success-bolder: #067647;--color-text-warning-subtle: #ffc142;--color-text-warning-bold: #b54708;--color-text-warning-bolder: #b54708;--color-text-error-subtle: #fa887f;--color-text-error-bold: #d92d20;--color-text-error-bolder: #6e0b32;--color-text-inverse: #ffffff;--color-text-brand-subtle: #6b91fd;--color-icon-standard: #616371;--color-icon-secondary: #9095a2;--color-icon-brand: #1929d6;--color-icon-brand-bold: #00106a;--color-icon-brand-subtle: #6b91fd;--color-icon-success-subtle: #75e0a7;--color-icon-success-bold: #089b5d;--color-icon-warning-subtle: #ffc142;--color-icon-warning-bold: #b54708;--color-icon-warning-bolder: #b54708;--color-icon-error-subtle: #fa887f;--color-icon-error-bold: #d92d20;--color-icon-orange-subtle: #ec5c31;--color-icon-blue-subtle: #176fd7;--color-icon-purple-subtle: #9346ed;--color-icon-teal-subtle: #01a3ae;--color-icon-magenta-subtle: #cd1d5c;--color-icon-brown-subtle: #6b4533;--color-icon-error-bolder: #d92d20;--color-icon-orange-bold: #a92518;--color-icon-blue-bold: #0b409a;--color-icon-teal-bold: #007d8c;--color-icon-magenta-bold: #8d0450;--color-icon-purple-bold: #5a11b0;--color-icon-brown-bold: #4d2319;--color-icon-inverse: #ffffff;--color-icon-disabled: #6f7281;--color-link-standard: #1929d6;--color-link-active: #00106a;--color-link-hover: #0c008a;--color-link-visited: #1209ae;--color-opacity-0: rgba(#1d1f2a, .2)}[_ngcontent-%COMP%]:root{--color-indigo-100: #f0f4ff;--color-indigo-200: #dde8ff;--color-indigo-300: #c5d8ff;--color-indigo-400: #a4bcff;--color-indigo-500: #6b91fd;--color-indigo-600: #5273ff;--color-indigo-700: #3746ec;--color-indigo-800: #1929d6;--color-indigo-900: #1209ae;--color-indigo-1000: #0c008a;--color-indigo-1100: #00106a;--color-indigo-1200: #030047;--color-grey-0: #ffffff;--color-grey-100: #f3f3f4;--color-grey-200: #ececee;--color-grey-300: #e4e4e7;--color-grey-400: #cdcfd5;--color-grey-500: #a6aab4;--color-grey-600: #9095a2;--color-grey-700: #6f7281;--color-grey-800: #616371;--color-grey-900: #494d5f;--color-grey-1000: #31333f;--color-grey-1100: #282b3a;--color-grey-1200: #1d1f2a;--color-green-100: #ecfdf3;--color-green-200: #dcfae6;--color-green-250: #d2fad1;--color-green-300: #a9efc5;--color-green-400: #75e0a7;--color-green-450: #74e489;--color-green-500: #47cd89;--color-green-600: #17b26a;--color-green-700: #089b5d;--color-green-800: #067647;--color-green-900: #044e2e;--color-green-1000: #053321;--color-green-1100: #055040;--color-red-50: #fde3d7;--color-red-100: #fef3f2;--color-red-200: #fee4e2;--color-red-300: #fecdca;--color-red-350: #f79788;--color-red-400: #fda7a0;--color-red-500: #fa887f;--color-red-600: #f97066;--color-red-700: #f04438;--color-red-800: #d92d20;--color-red-900: #b42318;--color-red-1000: #912018;--color-red-1100: #6e0b32;--color-yellow-100: #fffaeb;--color-yellow-200: #fdf4ce;--color-yellow-300: #fedf89;--color-yellow-400: #ffc142;--color-yellow-450: #e8a011;--color-yellow-500: #fdb022;--color-yellow-600: #f79009;--color-yellow-700: #dc6803;--color-yellow-800: #b54708;--color-yellow-900: #93370d;--color-yellow-1000: #4e1d09;--color-yellow-1100: #6f3c03;--color-purple-50: #eee0ff;--color-purple-100: #dabaff;--color-purple-300: #bc87ff;--color-purple-500: #9346ed;--color-purple-700: #5a11b0;
1--color-purple-900: #33087e;--color-blue-100: #cfecfd;--color-blue-300: #70b8f3;--color-blue-500: #176fd7;--color-blue-700: #0b409a;--color-blue-900: #041f67;--color-teal-50: #e8f9fd;--color-teal-100: #9de2e5;--color-teal-300: #56cccc;--color-teal-500: #01a3ae;--color-teal-700: #007d8c;--color-teal-900: #02576a;--color-orange-100: #feead5;--color-orange-300: #f9af82;--color-orange-500: #ec5c31;--color-orange-700: #a92518;--color-orange-900: #71090f;--color-magenta-50: #ffe6e6;--color-magenta-100: #ffbdcc;--color-magenta-300: #f582a0;--color-magenta-500: #cd1d5c;--color-magenta-700: #8d0450;--color-magenta-900: #62054b;--color-brown-100: #f7ecdd;--color-brown-300: #d2ae90;--color-brown-500: #6b4533;--color-brown-700: #4d2319;--color-brown-900: #330c09;--color-slate-100: #f1f1f3;--color-slate-200: #e6e6ea;--color-slate-300: #dedee3;--color-slate-400: #ced0d6;--color-slate-500: #aeb2bc;--color-slate-600: #9da0a8;--color-slate-700: #7f838a;--color-slate-800: #45484f;--color-slate-900: #393b41;--color-slate-1000: #2b2c31;--color-slate-1100: #18191b;--color-slate-1200: #0f0f0f;--color-slate-000: #ffffff}.light-theme[_ngcontent-%COMP%]{--color-background-standard: #f0f4ff;--color-background-inverse: #ffffff;--color-background-subtler: #f3f3f4;--color-background-brand: #1929d6;--color-background-brand-bolder: #00106a;--color-background-brand-subtle: #c5d8ff;--color-background-brand-subtler: #dde8ff;--color-background-disabled: #ececee;--color-background-subtle: #cdcfd5;--color-background-success-subtle: #ecfdf3;--color-background-success-bold: #75e0a7;--color-background-success-bolder: #089b5d;--color-background-warning-subtle: #fffaeb;--color-background-warning-bold: #ffc142;--color-background-warning-bolder: #4e1d09;--color-background-error-subtle: #fef3f2;--color-background-error-bold: #d92d20;--color-background-bold: #9095a2;--color-background-boldest: #1d1f2a;--color-decorative-orange-subtle: #feead5;--color-decorative-blue-subtle: #cfecfd;--color-decorative-purple-subtle: #eee0ff;--color-decorative-teal-subtle: #e8f9fd;--color-decorative-magenta-subtle: #ffe6e6;--color-decorative-brown-subtle: #f7ecdd;--color-decorative-yellow-subtle: #fdf4ce;--color-decorative-green-subtle: #dcfae6;--color-decorative-yellow: #fedf89;--color-decorative-green: #a9efc5;--color-decorative-orange: #f9af82;--color-decorative-blue: #70b8f3;--color-decorative-purple: #bc87ff;--color-decorative-teal: #56cccc;--color-decorative-magenta: #f582a0;--color-decorative-brown: #d2ae90;--color-decorative-yellow-bold: #dc6803;--color-decorative-green-bold: #17b26a;--color-decorative-orange-bold: #a92518;--color-decorative-blue-bold: #0b409a;--color-decorative-purple-bold: #5a11b0;--color-decorative-teal-bold: #007d8c;--color-decorative-magenta-bold: #8d0450;--color-border-standard: #cdcfd5;--color-border-subtle: #e4e4e7;--color-border-brand: #1929d6;--color-border-disabled: #ececee;--color-border-bold: #9095a2;--color-border-success-subtle: #75e0a7;--color-border-success-bold: #089b5d;--color-border-warning-subtle: #ffc142;--color-border-error-subtle: #fa887f;--color-border-warning-bold: #dc6803;--color-border-error-bold: #f04438;--color-border-focus: #5273ff;--color-border-brand-subtler: #c5d8ff;--color-border-brand-subtlest: #dde8ff;--color-border-brand-subtle: #a4bcff;--color-border-brand-bolder: #00106a;--color-text-standard: #282b3a;--color-text-secondary: #494d5f;--color-text-tertiary: #6f7281;--color-text-brand-bold: #00106a;--color-text-brand: #1929d6;--color-text-disabled: #a6aab4;--color-text-success-subtle: #75e0a7;--color-text-success-bold: #067647;--color-text-success-bolder: #067647;--color-text-warning-subtle: #ffc142;--color-text-warning-bold: #b54708;--color-text-warning-bolder: #b54708;--color-text-error-subtle: #fa887f;--color-text-error-bold: #d92d20;--color-text-error-bolder: #6e0b32;--color-text-inverse: #ffffff;--color-text-brand-subtle: #6b91fd;--color-icon-standard: #616371;--color-icon-secondary: #9095a2;--color-icon-brand: #1929d6;--color-icon-brand-bold: #00106a;--color-icon-brand-subtle: #6b91fd;--color-icon-success-subtle: #75e0a7;--color-icon-success-bold: #089b5d;--color-icon-warning-subtle: #ffc142;--color-icon-warning-bold: #b54708;--color-icon-warning-bolder: #b54708;--color-icon-error-subtle: #fa887f;--color-icon-error-bold: #d92d20;--color-icon-orange-subtle: #ec5c31;--color-icon-blue-subtle: #176fd7;--color-icon-purple-subtle: #9346ed;--color-icon-teal-subtle: #01a3ae;--color-icon-magenta-subtle: #cd1d5c;--color-icon-brown-subtle: #6b4533;--color-icon-error-bolder: #d92d20;--color-icon-orange-bold: #a92518;--color-icon-blue-bold: #0b409a;--color-icon-teal-bold: #007d8c;--color-icon-magenta-bold: #8d0450;--color-icon-purple-bold: #5a11b0;
1--color-icon-brown-bold: #4d2319;--color-icon-inverse: #ffffff;--color-icon-disabled: #6f7281;--color-link-standard: #1929d6;--color-link-active: #00106a;--color-link-hover: #0c008a;--color-link-visited: #1209ae;--color-opacity-0: rgba(#1d1f2a, .2)}.mat-mdc-tooltip[_ngcontent-%COMP%]{--mat-tooltip-supporting-text-font: Figtree;--mat-tooltip-supporting-text-weight: 525;--mat-tooltip-supporting-text-size: .75rem;--mat-tooltip-supporting-text-line-height: 1rem}.mat-mdc-tooltip-panel[_ngcontent-%COMP%] .mdc-tooltip[_ngcontent-%COMP%]{position:relative;overflow:initial}.mat-mdc-tooltip-panel[_ngcontent-%COMP%] .mdc-tooltip[_ngcontent-%COMP%]:after{width:1rem;height:.75rem;content:url(\'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 9"><path d="M5.20759 1.02937C5.6079 0.509358 6.3921 0.509358 6.79241 1.02937L11.6888 7.39001C12.195 8.04757 11.7263 9 10.8964 9H1.10358C0.273737 9 -0.195026 8.04757 0.311171 7.39001L5.20759 1.02937Z" fill="%2300106a"/></svg>\');display:inline-block;position:absolute}.dark-theme[_ngcontent-%COMP%] .mat-mdc-tooltip-panel[_ngcontent-%COMP%] .mdc-tooltip[_ngcontent-%COMP%]:after{content:url(\'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 9"><path d="M5.20759 1.02937C5.6079 0.509358 6.3921 0.509358 6.79241 1.02937L11.6888 7.39001C12.195 8.04757 11.7263 9 10.8964 9H1.10358C0.273737 9 -0.195026 8.04757 0.311171 7.39001L5.20759 1.02937Z" fill="%236B91FD"/></svg>\')}.mat-mdc-tooltip-panel-below[_ngcontent-%COMP%] .mdc-tooltip[_ngcontent-%COMP%]:after{top:-.75rem;right:calc(50% - .5rem);transform:rotate(0)}.mat-mdc-tooltip-panel-above[_ngcontent-%COMP%] .mdc-tooltip[_ngcontent-%COMP%]:after{bottom:-.75rem;right:calc(50% - .5rem);transform:rotate(180deg)}.mat-mdc-tooltip-panel-right[_ngcontent-%COMP%] .mdc-tooltip[_ngcontent-%COMP%]:after{left:-.875rem;top:calc(50% - .375rem);transform:rotate(270deg)}.mat-mdc-tooltip-panel-left[_ngcontent-%COMP%] .mdc-tooltip[_ngcontent-%COMP%]:after{right:-.875rem;top:calc(50% - .375rem);transform:rotate(90deg)}.mat-mdc-tooltip.mat-mdc-tooltip[_ngcontent-%COMP%] .mdc-tooltip__surface[_ngcontent-%COMP%]{background-color:var(--color-background-brand-bolder);padding:.5rem .75rem;border-radius:.5rem}@font-face{font-family:Material Icons;font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/materialicons/v92/flUhRq6tzZclQEJ-Vdg-IuiaDsNcIhQ8tQ.eot);src:local("Material Icons"),local("MaterialIcons-Regular"),url(https://fonts.gstatic.com/s/materialicons/v92/flUhRq6tzZclQEJ-Vdg-IuiaDsNcIhQ8tQ.woff2) format("woff2"),url(https://fonts.gstatic.com/s/materialicons/v92/flUhRq6tzZclQEJ-Vdg-IuiaDsNcIhQ8tQ.woff) format("woff"),url(https://fonts.gstatic.com/s/materialicons/v92/flUhRq6tzZclQEJ-Vdg-IuiaDsNcIhQ8tQ.ttf) format("truetype");font-display:block}.tide-currency-sub-unit[_ngcontent-%COMP%]{font-size:.78125rem}.balance-currency-sub-unit[_ngcontent-%COMP%]{font-size:1.3671875rem}[_nghost-%COMP%] h3[_ngcontent-%COMP%]{margin-bottom:.5rem}[_nghost-%COMP%] .form-container[_ngcontent-%COMP%]{margin-top:2rem}']})}}return f})();var ao=l(71093),io=l(20943),so=l(88908),ro=l(93204),to=l(88453);const bo=()=>({title:"Personal details",rightIcon:"edit",isRightIconPdsSvg:!0}),fo=f=>({title:f,description:"Date of birth"}),j=()=>({title:"",description:""}),uo=()=>({title:"Nature of control",rightIcon:"edit",isRightIconPdsSvg:!0}),lo=f=>({title:f,description:"Percentage of shares owned"}),co=f=>({title:f,description:"Percentage of voting rights"}),go=f=>({title:f,description:"Right to add or remove directors"}),Q=f=>({title:f,description:"Significant control"});function mo(f,A){if(1&f&&(e.\u0275\u0275elementStart(0,"h3"),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"titlecase"),e.\u0275\u0275pipe(3,"titlecase"),e.\u0275\u0275elementEnd()),2&f){const a=A;e.\u0275\u0275advance(),e.\u0275\u0275textInterpolate2("Review ",e.\u0275\u0275pipeBind1(2,2,a.firstName)," ",e.\u0275\u0275pipeBind1(3,4,a.lastName),"'s details")}}function _o(f,A){if(1&f){const a=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"mat-list",5)(1,"tide-list-item",6),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(a);const p=e.\u0275\u0275nextContext(2);
1return e.\u0275\u0275resetView(p.editDetails("personal"))}),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(2,"tide-list-item",7),e.\u0275\u0275pipe(3,"date"),e.\u0275\u0275elementStart(4,"tide-list-item",7)(5,"section",8),e.\u0275\u0275element(6,"twa-onboarding-address",9),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(7,"section",10)(8,"p",11),e.\u0275\u0275text(9,"Residential address"),e.\u0275\u0275elementEnd()()()()}if(2&f){const a=e.\u0275\u0275nextContext(),m=e.\u0275\u0275nextContext();e.\u0275\u0275advance(),e.\u0275\u0275property("autoHeight",!0)("data",e.\u0275\u0275pureFunction0(11,bo)),e.\u0275\u0275advance(),e.\u0275\u0275property("autoHeight",!0)("data",e.\u0275\u0275pureFunction1(12,fo,e.\u0275\u0275pipeBind2(3,8,a.dateOfBirth,m.eCalendarFormat))),e.\u0275\u0275advance(2),e.\u0275\u0275property("autoHeight",!0)("data",e.\u0275\u0275pureFunction0(14,j)),e.\u0275\u0275advance(2),e.\u0275\u0275property("address",a.address)("inline",!0)}}function po(f,A){if(1&f){const a=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"mat-list",5)(1,"tide-list-item",6),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(a);const p=e.\u0275\u0275nextContext(2);return e.\u0275\u0275resetView(p.editDetails("business"))}),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(2,"tide-list-item",7)(3,"tide-list-item",7)(4,"tide-list-item",7)(5,"tide-list-item",7),e.\u0275\u0275elementEnd()}if(2&f){const a=e.\u0275\u0275nextContext();e.\u0275\u0275advance(),e.\u0275\u0275property("autoHeight",!0)("data",e.\u0275\u0275pureFunction0(10,uo)),e.\u0275\u0275advance(),e.\u0275\u0275property("autoHeight",!0)("data",e.\u0275\u0275pureFunction1(11,lo,a.sharesOwned+"%")),e.\u0275\u0275advance(),e.\u0275\u0275property("autoHeight",!0)("data",e.\u0275\u0275pureFunction1(13,co,a.votingRights+"%")),e.\u0275\u0275advance(),e.\u0275\u0275property("autoHeight",!0)("data",e.\u0275\u0275pureFunction1(15,go,null==a.removeDirectors?null:a.removeDirectors.value)),e.\u0275\u0275advance(),e.\u0275\u0275property("autoHeight",!0)("data",e.\u0275\u0275pureFunction1(17,Q,null==a.componyControl?null:a.componyControl.value))}}function vo(f,A){if(1&f&&(e.\u0275\u0275conditionalCreate(0,_o,10,15,"mat-list",5),e.\u0275\u0275conditionalCreate(1,po,6,19,"mat-list",5)),2&f){const a=A;e.\u0275\u0275conditional(a?.isApplicant?-1:0),e.\u0275\u0275advance(),e.\u0275\u0275conditional(a?.sharesOwned?1:-1)}}let _=(()=>{class f{constructor(a,m,p){this._router=a,this._activatedRoute=m,this._uboDataService=p,this.uboData$=new o.Observable,this.eCalendarFormat=ao.dY.DateFnsDefaultDateFormat}ngOnInit(){this.uboData$=this._uboDataService.uboData$}closeSideSheet(){this._router.navigate(["../"],{relativeTo:this._activatedRoute.parent})}confirm(){this._uboDataService.uboData$.pipe((0,o.tap)(a=>{this._uboDataService.setSubmitUbo(this._formatUBOData(a))}),(0,o.take)(1)).subscribe(),this.closeSideSheet()}editDetails(a){this._router.navigate("personal"===a?[".."]:["..","business-details"],{relativeTo:this._activatedRoute})}_formatUBOData(a){let m=[];return a.shareholder&&(m=[{type:O.g8.Ownership,shares:a.sharesOwned},{type:O.g8.VotingRights,shares:a.votingRights}],"Yes"===a.removeDirectors?.value&&m.push({type:O.g8.RightToAppointAndRemoveDirectors}),"Yes"===a.componyControl?.value&&m.push({type:O.g8.OtherMeans})),{firstName:a.firstName,lastName:a.lastName,dateOfBirth:a.dateOfBirth,type:a.type,address:a.address,shareholder:a.shareholder,director:a.director,naturesOfControl:m,nationalities:a.nationalities,directorAuthority:a.directorAuthority,personId:a?.personId,isApplicant:a.isApplicant,name:a.name,number:a.number}}static{this.\u0275fac=function(m){return new(m||f)(e.\u0275\u0275directiveInject(P.Router),e.\u0275\u0275directiveInject(P.ActivatedRoute),e.\u0275\u0275directiveInject(D.G))}}static{this.\u0275cmp=e.\u0275\u0275defineComponent({type:f,selectors:[["twa-review-details"]],standalone:!1,decls:13,vars:7,consts:[[3,"disableSidenavClose"],["heading","",3,"closeClick"],[1,"tide-sub-1"],[1,"form-container"],["type","button","tide-button","","variant","primary","size","full-width","data-testid","confirm-details",3,"click"],["tideList",""],["type","navigation",3,"click","autoHeight","data"],["type","navigation",3,"autoHeight","data"],["top-left",""],[3,"address","inline"],["bottom-left",""],[1,"tide-body-2"]],template:function(m,p){if(1&m&&(e.\u0275\u0275elementStart(0,"twa-sidesheet",0)(1,"twa-sidesheet-header",1),e.\u0275\u0275listener("closeClick",function(){return p.closeSideSheet()}),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(2,"main"),e.\u0275\u0275conditionalCreate(3,mo,4,6,"h3"),e.\u0275\u0275pipe(4,"async"),e.\u0275\u0275elementStart(5,"p",2),e.\u0275\u0275text(6,"We'll use these details to verify their identity"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(7,"div",3),e.\u0275\u0275conditionalCreate(8,vo,2,2),e.\u0275\u0275pipe(9,"async"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(10,"twa-sidesheet-footer")(11,"button",4),e.\u0275\u0275listener("click",function(){return p.confirm()}),e.\u0275\u0275text(12,"Confirm"),e.\u0275\u0275elementEnd()()()),2&m){let E,H;e.\u0275\u0275property("disableSidenavClose",!0),e.\u0275\u0275advance(3),e.\u0275\u0275conditional((E=e.\u0275\u0275pipeBind1(4,3,p.uboData$))?3:-1,E),e.\u0275\u0275advance(5),e.\u0275\u0275conditional((H=e.\u0275\u0275pipeBind1(9,5,p.uboData$))?8:-1,H)}},dependencies:[io.jt,y.SidesheetComponent,y.SidesheetFooterComponent,y.SidesheetHeaderComponent,I.o,so.n,ro.P,to.U,x.AsyncPipe,x.TitleCasePipe,x.DatePipe],styles:['[_ngcontent-%COMP%]:root{--color-background-standard: #f0f4ff;--color-background-inverse: #ffffff;--color-background-subtler: #f3f3f4;--color-background-brand: #1929d6;--color-background-brand-bolder: #00106a;--color-background-brand-subtle: #c5d8ff;--color-background-brand-subtler: #dde8ff;--color-background-disabled: #ececee;--color-background-subtle: #cdcfd5;--color-background-success-subtle: #ecfdf3;--color-background-success-bold: #75e0a7;--color-background-success-bolder: #089b5d;--color-background-warning-subtle: #fffaeb;--color-background-warning-bold: #ffc142;--color-background-warning-bolder: #4e1d09;--color-background-error-subtle: #fef3f2;--color-background-error-bold: #d92d20;--color-background-bold: #9095a2;--color-background-boldest: #1d1f2a;--color-decorative-orange-subtle: #feead5;--color-decorative-blue-subtle: #cfecfd;--color-decorative-purple-subtle: #eee0ff;--color-decorative-teal-subtle: #e8f9fd;--color-decorative-magenta-subtle: #ffe6e6;--color-decorative-brown-subtle: #f7ecdd;--color-decorative-yellow-subtle: #fdf4ce;--color-decorative-green-subtle: #dcfae6;--color-decorative-yellow: #fedf89;--color-decorative-green: #a9efc5;--color-decorative-orange: #f9af82;--color-decorative-blue: #70b8f3;--color-decorative-purple: #bc87ff;--color-decorative-teal: #56cccc;--color-decorative-magenta: #f582a0;--color-decorative-brown: #d2ae90;--color-decorative-yellow-bold: #dc6803;--color-decorative-green-bold: #17b26a;--color-decorative-orange-bold: #a92518;--color-decorative-blue-bold: #0b409a;--color-decorative-purple-bold: #5a11b0;
1--color-decorative-teal-bold: #007d8c;--color-decorative-magenta-bold: #8d0450;--color-border-standard: #cdcfd5;--color-border-subtle: #e4e4e7;--color-border-brand: #1929d6;--color-border-disabled: #ececee;--color-border-bold: #9095a2;--color-border-success-subtle: #75e0a7;--color-border-success-bold: #089b5d;--color-border-warning-subtle: #ffc142;--color-border-error-subtle: #fa887f;--color-border-warning-bold: #dc6803;--color-border-error-bold: #f04438;--color-border-focus: #5273ff;--color-border-brand-subtler: #c5d8ff;--color-border-brand-subtlest: #dde8ff;--color-border-brand-subtle: #a4bcff;--color-border-brand-bolder: #00106a;--color-text-standard: #282b3a;--color-text-secondary: #494d5f;--color-text-tertiary: #6f7281;--color-text-brand-bold: #00106a;--color-text-brand: #1929d6;--color-text-disabled: #a6aab4;--color-text-success-subtle: #75e0a7;--color-text-success-bold: #067647;--color-text-success-bolder: #067647;--color-text-warning-subtle: #ffc142;--color-text-warning-bold: #b54708;--color-text-warning-bolder: #b54708;--color-text-error-subtle: #fa887f;--color-text-error-bold: #d92d20;--color-text-error-bolder: #6e0b32;--color-text-inverse: #ffffff;--color-text-brand-subtle: #6b91fd;--color-icon-standard: #616371;--color-icon-secondary: #9095a2;--color-icon-brand: #1929d6;--color-icon-brand-bold: #00106a;--color-icon-brand-subtle: #6b91fd;--color-icon-success-subtle: #75e0a7;--color-icon-success-bold: #089b5d;--color-icon-warning-subtle: #ffc142;--color-icon-warning-bold: #b54708;--color-icon-warning-bolder: #b54708;--color-icon-error-subtle: #fa887f;--color-icon-error-bold: #d92d20;--color-icon-orange-subtle: #ec5c31;--color-icon-blue-subtle: #176fd7;--color-icon-purple-subtle: #9346ed;--color-icon-teal-subtle: #01a3ae;--color-icon-magenta-subtle: #cd1d5c;--color-icon-brown-subtle: #6b4533;--color-icon-error-bolder: #d92d20;--color-icon-orange-bold: #a92518;--color-icon-blue-bold: #0b409a;--color-icon-teal-bold: #007d8c;--color-icon-magenta-bold: #8d0450;--color-icon-purple-bold: #5a11b0;--color-icon-brown-bold: #4d2319;--color-icon-inverse: #ffffff;--color-icon-disabled: #6f7281;--color-link-standard: #1929d6;--color-link-active: #00106a;--color-link-hover: #0c008a;--color-link-visited: #1209ae;--color-opacity-0: rgba(#1d1f2a, .2)}[_ngcontent-%COMP%]:root{--color-indigo-100: #f0f4ff;--color-indigo-200: #dde8ff;--color-indigo-300: #c5d8ff;--color-indigo-400: #a4bcff;--color-indigo-500: #6b91fd;--color-indigo-600: #5273ff;--color-indigo-700: #3746ec;--color-indigo-800: #1929d6;--color-indigo-900: #1209ae;--color-indigo-1000: #0c008a;--color-indigo-1100: #00106a;--color-indigo-1200: #030047;--color-grey-0: #ffffff;--color-grey-100: #f3f3f4;--color-grey-200: #ececee;--color-grey-300: #e4e4e7;--color-grey-400: #cdcfd5;--color-grey-500: #a6aab4;--color-grey-600: #9095a2;--color-grey-700: #6f7281;--color-grey-800: #616371;--color-grey-900: #494d5f;--color-grey-1000: #31333f;--color-grey-1100: #282b3a;--color-grey-1200: #1d1f2a;--color-green-100: #ecfdf3;--color-green-200: #dcfae6;--color-green-250: #d2fad1;--color-green-300: #a9efc5;--color-green-400: #75e0a7;--color-green-450: #74e489;--color-green-500: #47cd89;--color-green-600: #17b26a;--color-green-700: #089b5d;--color-green-800: #067647;--color-green-900: #044e2e;--color-green-1000: #053321;--color-green-1100: #055040;--color-red-50: #fde3d7;--color-red-100: #fef3f2;--color-red-200: #fee4e2;--color-red-300: #fecdca;--color-red-350: #f79788;--color-red-400: #fda7a0;--color-red-500: #fa887f;--color-red-600: #f97066;--color-red-700: #f04438;--color-red-800: #d92d20;--color-red-900: #b42318;--color-red-1000: #912018;--color-red-1100: #6e0b32;--color-yellow-100: #fffaeb;--color-yellow-200: #fdf4ce;--color-yellow-300: #fedf89;--color-yellow-400: #ffc142;--color-yellow-450: #e8a011;--color-yellow-500: #fdb022;--color-yellow-600: #f79009;--color-yellow-700: #dc6803;--color-yellow-800: #b54708;--color-yellow-900: #93370d;--color-yellow-1000: #4e1d09;--color-yellow-1100: #6f3c03;--color-purple-50: #eee0ff;--color-purple-100: #dabaff;--color-purple-300: #bc87ff;--color-purple-500: #9346ed;--color-purple-700: #5a11b0;
1--color-purple-900: #33087e;--color-blue-100: #cfecfd;--color-blue-300: #70b8f3;--color-blue-500: #176fd7;--color-blue-700: #0b409a;--color-blue-900: #041f67;--color-teal-50: #e8f9fd;--color-teal-100: #9de2e5;--color-teal-300: #56cccc;--color-teal-500: #01a3ae;--color-teal-700: #007d8c;--color-teal-900: #02576a;--color-orange-100: #feead5;--color-orange-300: #f9af82;--color-orange-500: #ec5c31;--color-orange-700: #a92518;--color-orange-900: #71090f;--color-magenta-50: #ffe6e6;--color-magenta-100: #ffbdcc;--color-magenta-300: #f582a0;--color-magenta-500: #cd1d5c;--color-magenta-700: #8d0450;--color-magenta-900: #62054b;--color-brown-100: #f7ecdd;--color-brown-300: #d2ae90;--color-brown-500: #6b4533;--color-brown-700: #4d2319;--color-brown-900: #330c09;--color-slate-100: #f1f1f3;--color-slate-200: #e6e6ea;--color-slate-300: #dedee3;--color-slate-400: #ced0d6;--color-slate-500: #aeb2bc;--color-slate-600: #9da0a8;--color-slate-700: #7f838a;--color-slate-800: #45484f;--color-slate-900: #393b41;--color-slate-1000: #2b2c31;--color-slate-1100: #18191b;--color-slate-1200: #0f0f0f;--color-slate-000: #ffffff}.light-theme[_ngcontent-%COMP%]{--color-background-standard: #f0f4ff;--color-background-inverse: #ffffff;--color-background-subtler: #f3f3f4;--color-background-brand: #1929d6;--color-background-brand-bolder: #00106a;--color-background-brand-subtle: #c5d8ff;--color-background-brand-subtler: #dde8ff;--color-background-disabled: #ececee;--color-background-subtle: #cdcfd5;--color-background-success-subtle: #ecfdf3;--color-background-success-bold: #75e0a7;--color-background-success-bolder: #089b5d;--color-background-warning-subtle: #fffaeb;--color-background-warning-bold: #ffc142;--color-background-warning-bolder: #4e1d09;--color-background-error-subtle: #fef3f2;--color-background-error-bold: #d92d20;--color-background-bold: #9095a2;--color-background-boldest: #1d1f2a;--color-decorative-orange-subtle: #feead5;--color-decorative-blue-subtle: #cfecfd;--color-decorative-purple-subtle: #eee0ff;--color-decorative-teal-subtle: #e8f9fd;--color-decorative-magenta-subtle: #ffe6e6;--color-decorative-brown-subtle: #f7ecdd;--color-decorative-yellow-subtle: #fdf4ce;--color-decorative-green-subtle: #dcfae6;--color-decorative-yellow: #fedf89;--color-decorative-green: #a9efc5;--color-decorative-orange: #f9af82;--color-decorative-blue: #70b8f3;--color-decorative-purple: #bc87ff;--color-decorative-teal: #56cccc;--color-decorative-magenta: #f582a0;--color-decorative-brown: #d2ae90;--color-decorative-yellow-bold: #dc6803;--color-decorative-green-bold: #17b26a;--color-decorative-orange-bold: #a92518;--color-decorative-blue-bold: #0b409a;--color-decorative-purple-bold: #5a11b0;--color-decorative-teal-bold: #007d8c;--color-decorative-magenta-bold: #8d0450;--color-border-standard: #cdcfd5;--color-border-subtle: #e4e4e7;--color-border-brand: #1929d6;--color-border-disabled: #ececee;--color-border-bold: #9095a2;--color-border-success-subtle: #75e0a7;--color-border-success-bold: #089b5d;--color-border-warning-subtle: #ffc142;--color-border-error-subtle: #fa887f;--color-border-warning-bold: #dc6803;--color-border-error-bold: #f04438;--color-border-focus: #5273ff;--color-border-brand-subtler: #c5d8ff;--color-border-brand-subtlest: #dde8ff;--color-border-brand-subtle: #a4bcff;--color-border-brand-bolder: #00106a;--color-text-standard: #282b3a;--color-text-secondary: #494d5f;--color-text-tertiary: #6f7281;--color-text-brand-bold: #00106a;--color-text-brand: #1929d6;--color-text-disabled: #a6aab4;--color-text-success-subtle: #75e0a7;--color-text-success-bold: #067647;--color-text-success-bolder: #067647;--color-text-warning-subtle: #ffc142;--color-text-warning-bold: #b54708;--color-text-warning-bolder: #b54708;--color-text-error-subtle: #fa887f;--color-text-error-bold: #d92d20;--color-text-error-bolder: #6e0b32;--color-text-inverse: #ffffff;--color-text-brand-subtle: #6b91fd;--color-icon-standard: #616371;--color-icon-secondary: #9095a2;--color-icon-brand: #1929d6;--color-icon-brand-bold: #00106a;--color-icon-brand-subtle: #6b91fd;--color-icon-success-subtle: #75e0a7;--color-icon-success-bold: #089b5d;--color-icon-warning-subtle: #ffc142;--color-icon-warning-bold: #b54708;--color-icon-warning-bolder: #b54708;--color-icon-error-subtle: #fa887f;--color-icon-error-bold: #d92d20;--color-icon-orange-subtle: #ec5c31;--color-icon-blue-subtle: #176fd7;--color-icon-purple-subtle: #9346ed;--color-icon-teal-subtle: #01a3ae;--color-icon-magenta-subtle: #cd1d5c;--color-icon-brown-subtle: #6b4533;--color-icon-error-bolder: #d92d20;--color-icon-orange-bold: #a92518;--color-icon-blue-bold: #0b409a;--color-icon-teal-bold: #007d8c;--color-icon-magenta-bold: #8d0450;--color-icon-purple-bold: #5a11b0;
1--color-icon-brown-bold: #4d2319;--color-icon-inverse: #ffffff;--color-icon-disabled: #6f7281;--color-link-standard: #1929d6;--color-link-active: #00106a;--color-link-hover: #0c008a;--color-link-visited: #1209ae;--color-opacity-0: rgba(#1d1f2a, .2)}.mat-mdc-tooltip[_ngcontent-%COMP%]{--mat-tooltip-supporting-text-font: Figtree;--mat-tooltip-supporting-text-weight: 525;--mat-tooltip-supporting-text-size: .75rem;--mat-tooltip-supporting-text-line-height: 1rem}.mat-mdc-tooltip-panel[_ngcontent-%COMP%] .mdc-tooltip[_ngcontent-%COMP%]{position:relative;overflow:initial}.mat-mdc-tooltip-panel[_ngcontent-%COMP%] .mdc-tooltip[_ngcontent-%COMP%]:after{width:1rem;height:.75rem;content:url(\'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 9"><path d="M5.20759 1.02937C5.6079 0.509358 6.3921 0.509358 6.79241 1.02937L11.6888 7.39001C12.195 8.04757 11.7263 9 10.8964 9H1.10358C0.273737 9 -0.195026 8.04757 0.311171 7.39001L5.20759 1.02937Z" fill="%2300106a"/></svg>\');display:inline-block;position:absolute}.dark-theme[_ngcontent-%COMP%] .mat-mdc-tooltip-panel[_ngcontent-%COMP%] .mdc-tooltip[_ngcontent-%COMP%]:after{content:url(\'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 9"><path d="M5.20759 1.02937C5.6079 0.509358 6.3921 0.509358 6.79241 1.02937L11.6888 7.39001C12.195 8.04757 11.7263 9 10.8964 9H1.10358C0.273737 9 -0.195026 8.04757 0.311171 7.39001L5.20759 1.02937Z" fill="%236B91FD"/></svg>\')}.mat-mdc-tooltip-panel-below[_ngcontent-%COMP%] .mdc-tooltip[_ngcontent-%COMP%]:after{top:-.75rem;right:calc(50% - .5rem);transform:rotate(0)}.mat-mdc-tooltip-panel-above[_ngcontent-%COMP%] .mdc-tooltip[_ngcontent-%COMP%]:after{bottom:-.75rem;right:calc(50% - .5rem);transform:rotate(180deg)}.mat-mdc-tooltip-panel-right[_ngcontent-%COMP%] .mdc-tooltip[_ngcontent-%COMP%]:after{left:-.875rem;top:calc(50% - .375rem);transform:rotate(270deg)}.mat-mdc-tooltip-panel-left[_ngcontent-%COMP%] .mdc-tooltip[_ngcontent-%COMP%]:after{right:-.875rem;top:calc(50% - .375rem);transform:rotate(90deg)}.mat-mdc-tooltip.mat-mdc-tooltip[_ngcontent-%COMP%] .mdc-tooltip__surface[_ngcontent-%COMP%]{background-color:var(--color-background-brand-bolder);padding:.5rem .75rem;border-radius:.5rem}@font-face{font-family:Material Icons;font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/materialicons/v92/flUhRq6tzZclQEJ-Vdg-IuiaDsNcIhQ8tQ.eot);src:local("Material Icons"),local("MaterialIcons-Regular"),url(https://fonts.gstatic.com/s/materialicons/v92/flUhRq6tzZclQEJ-Vdg-IuiaDsNcIhQ8tQ.woff2) format("woff2"),url(https://fonts.gstatic.com/s/materialicons/v92/flUhRq6tzZclQEJ-Vdg-IuiaDsNcIhQ8tQ.woff) format("woff"),url(https://fonts.gstatic.com/s/materialicons/v92/flUhRq6tzZclQEJ-Vdg-IuiaDsNcIhQ8tQ.ttf) format("truetype");font-display:block}.tide-currency-sub-unit[_ngcontent-%COMP%]{font-size:.78125rem}.balance-currency-sub-unit[_ngcontent-%COMP%]{font-size:1.3671875rem}[_nghost-%COMP%] h3[_ngcontent-%COMP%]{margin-bottom:.5rem}[_nghost-%COMP%] .form-container[_ngcontent-%COMP%]{margin-top:2rem}[_nghost-%COMP%] .tide-body-2[_ngcontent-%COMP%]{color:var(--color-text-tertiary)}']})}}return f})(),s=(()=>{class f{constructor(a,m,p,E){this._router=a,this._activatedRoute=m,this._store=p,this._uboDataService=E,this.formGroup=this._initForm(),this.authToken$=this._store.select(h.gf),this.eShareholderType=O.Lx}_initForm(){return new r.FormGroup({firstName:new r.FormControl("",{validators:[r.Validators.required]}),lastName:new r.FormControl("",{validators:[r.Validators.required]}),dateOfBirth:new r.FormControl("",{validators:[r.Validators.required]}),address:(0,d.U$)(),nationalities:new r.FormControl(null,[r.Validators.required])})}closeAddUboDetails(){this._router.navigate(["./"],{relativeTo:this._activatedRoute.parent})}businessDetails(){const a=this.formGroup.getRawValue();a.nationalities=[a.nationalities?.code];const m={...a,type:O.Lx.Individual};this._uboDataService.setUboData(m),this.next()}next(){let a=b.BUSINESS_DETAILS;this.uboInfo?.director&&!this.uboInfo?.shareholder&&(a=b.REVIEW_DETAILS),this._router.navigate([b.ADD_UBO,a],{relativeTo:this._activatedRoute.parent})}static{this.\u0275fac=function(m){return new(m||f)(e.\u0275\u0275directiveInject(P.Router),e.\u0275\u0275directiveInject(P.ActivatedRoute),e.\u0275\u0275directiveInject(B.Store),e.\u0275\u0275directiveInject(D.G))}}static{this.\u0275cmp=e.\u0275\u0275defineComponent({type:f,selectors:[["twa-add-ubo"]],standalone:!1,decls:27,vars:13,consts:[[3,"disableSidenavClose"],["heading","",3,"closeClick"],[1,"tide-sub-1"],[1,"form-container"],[3,"formGroup"],["formControlName","firstName","data-testid","firstName",3,"controlType"],["formControlName","lastName","data-testid","lastName",3,"controlType"],[1,"tide-sub-2"],["formControlName","nationalities","data-testid","nationality",3,"authToken"],["formControlName","dateOfBirth"],["label","Residential address",3,"modelChange","model","authToken","disableAddressLabel"],["type","button","tide-button","","variant","primary","size","full-width",3,"click","disabled"]],template:function(m,p){if(1&m&&(e.\u0275\u0275elementStart(0,"twa-sidesheet",0)(1,"twa-sidesheet-header",1),e.\u0275\u0275listener("closeClick",function(){return p.closeAddUboDetail
1s()}),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(2,"main")(3,"h3"),e.\u0275\u0275text(4,"Add a UBO of the company"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(5,"p",2),e.\u0275\u0275text(6,"We\u2019ll use these details to verify their identity"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(7,"div",3)(8,"form",4)(9,"tide-input",5),e.\u0275\u0275text(10," Name "),e.\u0275\u0275elementEnd(),e.\u0275\u0275controlCreate(),e.\u0275\u0275elementStart(11,"tide-input",6),e.\u0275\u0275text(12," Surname "),e.\u0275\u0275elementEnd(),e.\u0275\u0275controlCreate(),e.\u0275\u0275elementStart(13,"p",7),e.\u0275\u0275text(14,"Nationality"),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(15,"twa-nationality-country",8),e.\u0275\u0275pipe(16,"async"),e.\u0275\u0275controlCreate(),e.\u0275\u0275elementStart(17,"p",7),e.\u0275\u0275text(18,"Date of birth"),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(19,"twa-date-of-birth",9),e.\u0275\u0275controlCreate(),e.\u0275\u0275element(20,"p",7),e.\u0275\u0275elementStart(21,"twa-onboarding-address-lookup",10),e.\u0275\u0275pipe(22,"async"),e.\u0275\u0275listener("modelChange",function(H){return p.formGroup.get("address")?.reset(H)}),e.\u0275\u0275elementEnd()()()(),e.\u0275\u0275elementStart(23,"twa-sidesheet-footer")(24,"div")(25,"button",11),e.\u0275\u0275listener("click",function(){return p.businessDetails()}),e.\u0275\u0275text(26," Next "),e.\u0275\u0275elementEnd()()()()),2&m){let E;e.\u0275\u0275property("disableSidenavClose",!0),e.\u0275\u0275advance(8),e.\u0275\u0275property("formGroup",p.formGroup),e.\u0275\u0275advance(),e.\u0275\u0275property("controlType","text"),e.\u0275\u0275control(),e.\u0275\u0275advance(2),e.\u0275\u0275property("controlType","text"),e.\u0275\u0275control(),e.\u0275\u0275advance(4),e.\u0275\u0275property("authToken",e.\u0275\u0275pipeBind1(16,9,p.authToken$)),e.\u0275\u0275control(),e.\u0275\u0275advance(4),e.\u0275\u0275control(),e.\u0275\u0275advance(2),e.\u0275\u0275property("model",null==(E=p.formGroup.get("address"))?null:E.value)("authToken",e.\u0275\u0275pipeBind1(22,11,p.authToken$))("disableAddressLabel",!1),e.\u0275\u0275advance(4),e.\u0275\u0275property("disabled",p.formGroup.invalid)}},dependencies:[r.\u0275NgNoValidate,r.NgControlStatus,r.NgControlStatusGroup,r.FormGroupDirective,r.FormControlName,y.SidesheetComponent,y.SidesheetFooterComponent,y.SidesheetHeaderComponent,I.o,U.H,G.C,v.n,J.S,x.AsyncPipe],styles:['[_ngcontent-%COMP%]:root{--color-background-standard: #f0f4ff;--color-background-inverse: #ffffff;--color-background-subtler: #f3f3f4;--color-background-brand: #1929d6;--color-background-brand-bolder: #00106a;--color-background-brand-subtle: #c5d8ff;--color-background-brand-subtler: #dde8ff;--color-background-disabled: #ececee;--color-background-subtle: #cdcfd5;--color-background-success-subtle: #ecfdf3;--color-background-success-bold: #75e0a7;--color-background-success-bolder: #089b5d;--color-background-warning-subtle: #fffaeb;--color-background-warning-bold: #ffc142;--color-background-warning-bolder: #4e1d09;--color-background-error-subtle: #fef3f2;--color-background-error-bold: #d92d20;--color-background-bold: #9095a2;--color-background-boldest: #1d1f2a;--color-decorative-orange-subtle: #feead5;--color-decorative-blue-subtle: #cfecfd;--color-decorative-purple-subtle: #eee0ff;--color-decorative-teal-subtle: #e8f9fd;--color-decorative-magenta-subtle: #ffe6e6;--color-decorative-brown-subtle: #f7ecdd;--color-decorative-yellow-subtle: #fdf4ce;--color-decorative-green-subtle: #dcfae6;--color-decorative-yellow: #fedf89;--color-decorative-green: #a9efc5;--color-decorative-orange: #f9af82;--color-decorative-blue: #70b8f3;--color-decorative-purple: #bc87ff;--color-decorative-teal: #56cccc;--color-decorative-magenta: #f582a0;--color-decorative-brown: #d2ae90;--color-decorative-yellow-bold: #dc6803;--color-decorative-green-bold: #17b26a;--color-decorative-orange-bold: #a92518;--color-decorative-blue-bold: #0b409a;--color-decorative-purple-bold: #5a11b0;--color-decorative-teal-bold: #007d8c;--color-decorative-magenta-bold: #8d0450;--color-border-standard: #cdcfd5;--color-border-subtle: #e4e4e7;--color-border-brand: #1929d6;--color-border-disabled: #ececee;--color-border-bold: #9095a2;--color-border-success-subtle: #75e0a7;--color-border-success-bold: #089b5d;--color-border-warning-subtle: #ffc142;--color-border-error-subtle: #fa887f;--color-border-warning-bold: #dc6803;--color-border-error-bold: #f04438;--color-border-focus: #5273ff;--color-border-brand-subtler: #c5d8ff;--color-border-brand-subtlest: #dde8ff;--color-border-brand-subtle: #a4bcff;--color-border-brand-bolder: #00106a;--color-text-standard: #282b3a;--color-text-secondary: #494d5f;--color-text-tertiary: #6f7281;
1--color-text-brand-bold: #00106a;--color-text-brand: #1929d6;--color-text-disabled: #a6aab4;--color-text-success-subtle: #75e0a7;--color-text-success-bold: #067647;--color-text-success-bolder: #067647;--color-text-warning-subtle: #ffc142;--color-text-warning-bold: #b54708;--color-text-warning-bolder: #b54708;--color-text-error-subtle: #fa887f;--color-text-error-bold: #d92d20;--color-text-error-bolder: #6e0b32;--color-text-inverse: #ffffff;--color-text-brand-subtle: #6b91fd;--color-icon-standard: #616371;--color-icon-secondary: #9095a2;--color-icon-brand: #1929d6;--color-icon-brand-bold: #00106a;--color-icon-brand-subtle: #6b91fd;--color-icon-success-subtle: #75e0a7;--color-icon-success-bold: #089b5d;--color-icon-warning-subtle: #ffc142;--color-icon-warning-bold: #b54708;--color-icon-warning-bolder: #b54708;--color-icon-error-subtle: #fa887f;--color-icon-error-bold: #d92d20;--color-icon-orange-subtle: #ec5c31;--color-icon-blue-subtle: #176fd7;--color-icon-purple-subtle: #9346ed;--color-icon-teal-subtle: #01a3ae;--color-icon-magenta-subtle: #cd1d5c;--color-icon-brown-subtle: #6b4533;--color-icon-error-bolder: #d92d20;--color-icon-orange-bold: #a92518;--color-icon-blue-bold: #0b409a;--color-icon-teal-bold: #007d8c;--color-icon-magenta-bold: #8d0450;--color-icon-purple-bold: #5a11b0;--color-icon-brown-bold: #4d2319;--color-icon-inverse: #ffffff;--color-icon-disabled: #6f7281;--color-link-standard: #1929d6;--color-link-active: #00106a;--color-link-hover: #0c008a;--color-link-visited: #1209ae;--color-opacity-0: rgba(#1d1f2a, .2)}[_ngcontent-%COMP%]:root{--color-indigo-100: #f0f4ff;--color-indigo-200: #dde8ff;--color-indigo-300: #c5d8ff;--color-indigo-400: #a4bcff;--color-indigo-500: #6b91fd;--color-indigo-600: #5273ff;--color-indigo-700: #3746ec;--color-indigo-800: #1929d6;--color-indigo-900: #1209ae;--color-indigo-1000: #0c008a;--color-indigo-1100: #00106a;--color-indigo-1200: #030047;--color-grey-0: #ffffff;--color-grey-100: #f3f3f4;--color-grey-200: #ececee;--color-grey-300: #e4e4e7;--color-grey-400: #cdcfd5;--color-grey-500: #a6aab4;--color-grey-600: #9095a2;--color-grey-700: #6f7281;--color-grey-800: #616371;--color-grey-900: #494d5f;--color-grey-1000: #31333f;--color-grey-1100: #282b3a;--color-grey-1200: #1d1f2a;--color-green-100: #ecfdf3;--color-green-200: #dcfae6;--color-green-250: #d2fad1;--color-green-300: #a9efc5;--color-green-400: #75e0a7;--color-green-450: #74e489;--color-green-500: #47cd89;--color-green-600: #17b26a;--color-green-700: #089b5d;--color-green-800: #067647;--color-green-900: #044e2e;--color-green-1000: #053321;--color-green-1100: #055040;--color-red-50: #fde3d7;--color-red-100: #fef3f2;--color-red-200: #fee4e2;--color-red-300: #fecdca;--color-red-350: #f79788;--color-red-400: #fda7a0;--color-red-500: #fa887f;--color-red-600: #f97066;--color-red-700: #f04438;--color-red-800: #d92d20;--color-red-900: #b42318;--color-red-1000: #912018;--color-red-1100: #6e0b32;--color-yellow-100: #fffaeb;--color-yellow-200: #fdf4ce;--color-yellow-300: #fedf89;--color-yellow-400: #ffc142;--color-yellow-450: #e8a011;--color-yellow-500: #fdb022;--color-yellow-600: #f79009;--color-yellow-700: #dc6803;--color-yellow-800: #b54708;--color-yellow-900: #93370d;--color-yellow-1000: #4e1d09;--color-yellow-1100: #6f3c03;--color-purple-50: #eee0ff;--color-purple-100: #dabaff;--color-purple-300: #bc87ff;--color-purple-500: #9346ed;--color-purple-700: #5a11b0;--color-purple-900: #33087e;--color-blue-100: #cfecfd;--color-blue-300: #70b8f3;--color-blue-500: #176fd7;--color-blue-700: #0b409a;--color-blue-900: #041f67;--color-teal-50: #e8f9fd;--color-teal-100: #9de2e5;--color-teal-300: #56cccc;--color-teal-500: #01a3ae;--color-teal-700: #007d8c;--color-teal-900: #02576a;--color-orange-100: #feead5;--color-orange-300: #f9af82;--color-orange-500: #ec5c31;--color-orange-700: #a92518;--color-orange-900: #71090f;--color-magenta-50: #ffe6e6;--color-magenta-100: #ffbdcc;--color-magenta-300: #f582a0;--color-magenta-500: #cd1d5c;--color-magenta-700: #8d0450;--color-magenta-900: #62054b;--color-brown-100: #f7ecdd;--color-brown-300: #d2ae90;--color-brown-500: #6b4533;--color-brown-700: #4d2319;--color-brown-900: #330c09;--color-slate-100: #f1f1f3;--color-slate-200: #e6e6ea;--color-slate-300: #dedee3;--color-slate-400: #ced0d6;--color-slate-500: #aeb2bc;--color-slate-600: #9da0a8;--color-slate-700: #7f838a;--color-slate-800: #45484f;--color-slate-900: #393b41;--color-slate-1000: #2b2c31;--color-slate-1100: #18191b;--color-slate-1200: #0f0f0f;--color-slate-000: #ffffff}.light-theme[_ngcontent-%COMP%]{--color-background-standard: #f0f4ff;--color-background-inverse: #ffffff;--color-background-subtler: #f3f3f4;--color-background-brand: #1929d6;--color-background-brand-bolder: #00106a;--color-background-brand-subtle: #c5d8ff;--color-background-brand-subtler: #dde8ff;--color-background-disabled: #ececee;--color-background-subtle: #cdcfd5;--color-background-success-subtle: #ecfdf3;--color-background-success-bold: #75e0a7;--color-background-success-bolder: #089b5d;--color-background-warning-subtle: #fffaeb;--color-background-warning-bold: #ffc142;--color-background-warning-bolder: #4e1d09;--color-background-error-subtle: #fef3f2;--color-background-error-bold: #d92d20;--color-background-bold: #9095a2;--color-background-boldest: #1d1f2a;--color-decorative-orange-subtle: #feead5;--color-decorative-blue-subtle: #cfecfd;--color-decorative-purple-subtle: #eee0ff;--color-decorative-teal-subtle: #e8f9fd;--color-decorative-magenta-subtle: #ffe6e6;--color-decorative-brown-subtle: #f7ecdd;--color-decorative-yellow-subtle: #fdf4ce;--color-decorative-green-subtle: #dcfae6;--color-decorative-yellow: #fedf89;--color-decorative-green: #a9efc5;--color-decorative-orange: #f9af82;--color-decorative-blue: #70b8f3;--color-decorative-purple: #bc87ff;--color-decorative-teal: #56cccc;--color-decorative-magenta: #f582a0;--color-decorative-brown: #d2ae90;--color-decorative-yellow-bold: #dc6803;--color-decorative-green-bold: #17b26a;--color-decorative-orange-bold: #a92518;--color-decorative-blue-bold: #0b409a;--color-decorative-purple-bold: #5a11b0;
1--color-decorative-teal-bold: #007d8c;--color-decorative-magenta-bold: #8d0450;--color-border-standard: #cdcfd5;--color-border-subtle: #e4e4e7;--color-border-brand: #1929d6;--color-border-disabled: #ececee;--color-border-bold: #9095a2;--color-border-success-subtle: #75e0a7;--color-border-success-bold: #089b5d;--color-border-warning-subtle: #ffc142;--color-border-error-subtle: #fa887f;--color-border-warning-bold: #dc6803;--color-border-error-bold: #f04438;--color-border-focus: #5273ff;--color-border-brand-subtler: #c5d8ff;--color-border-brand-subtlest: #dde8ff;--color-border-brand-subtle: #a4bcff;--color-border-brand-bolder: #00106a;--color-text-standard: #282b3a;--color-text-secondary: #494d5f;--color-text-tertiary: #6f7281;--color-text-brand-bold: #00106a;--color-text-brand: #1929d6;--color-text-disabled: #a6aab4;--color-text-success-subtle: #75e0a7;--color-text-success-bold: #067647;--color-text-success-bolder: #067647;--color-text-warning-subtle: #ffc142;--color-text-warning-bold: #b54708;--color-text-warning-bolder: #b54708;--color-text-error-subtle: #fa887f;--color-text-error-bold: #d92d20;--color-text-error-bolder: #6e0b32;--color-text-inverse: #ffffff;--color-text-brand-subtle: #6b91fd;--color-icon-standard: #616371;--color-icon-secondary: #9095a2;--color-icon-brand: #1929d6;--color-icon-brand-bold: #00106a;--color-icon-brand-subtle: #6b91fd;--color-icon-success-subtle: #75e0a7;--color-icon-success-bold: #089b5d;--color-icon-warning-subtle: #ffc142;--color-icon-warning-bold: #b54708;--color-icon-warning-bolder: #b54708;--color-icon-error-subtle: #fa887f;--color-icon-error-bold: #d92d20;--color-icon-orange-subtle: #ec5c31;--color-icon-blue-subtle: #176fd7;--color-icon-purple-subtle: #9346ed;--color-icon-teal-subtle: #01a3ae;--color-icon-magenta-subtle: #cd1d5c;--color-icon-brown-subtle: #6b4533;--color-icon-error-bolder: #d92d20;--color-icon-orange-bold: #a92518;--color-icon-blue-bold: #0b409a;--color-icon-teal-bold: #007d8c;--color-icon-magenta-bold: #8d0450;--color-icon-purple-bold: #5a11b0;--color-icon-brown-bold: #4d2319;--color-icon-inverse: #ffffff;--color-icon-disabled: #6f7281;--color-link-standard: #1929d6;--color-link-active: #00106a;--color-link-hover: #0c008a;--color-link-visited: #1209ae;--color-opacity-0: rgba(#1d1f2a, .2)}.mat-mdc-tooltip[_ngcontent-%COMP%]{--mat-tooltip-supporting-text-font: Figtree;--mat-tooltip-supporting-text-weight: 525;--mat-tooltip-supporting-text-size: .75rem;--mat-tooltip-supporting-text-line-height: 1rem}.mat-mdc-tooltip-panel[_ngcontent-%COMP%] .mdc-tooltip[_ngcontent-%COMP%]{position:relative;overflow:initial}.mat-mdc-tooltip-panel[_ngcontent-%COMP%] .mdc-tooltip[_ngcontent-%COMP%]:after{width:1rem;height:.75rem;content:url(\'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 9"><path d="M5.20759 1.02937C5.6079 0.509358 6.3921 0.509358 6.79241 1.02937L11.6888 7.39001C12.195 8.04757 11.7263 9 10.8964 9H1.10358C0.273737 9 -0.195026 8.04757 0.311171 7.39001L5.20759 1.02937Z" fill="%2300106a"/></svg>\');display:inline-block;position:absolute}.dark-theme[_ngcontent-%COMP%] .mat-mdc-tooltip-panel[_ngcontent-%COMP%] .mdc-tooltip[_ngcontent-%COMP%]:after{content:url(\'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 9"><path d="M5.20759 1.02937C5.6079 0.509358 6.3921 0.509358 6.79241 1.02937L11.6888 7.39001C12.195 8.04757 11.7263 9 10.8964 9H1.10358C0.273737 9 -0.195026 8.04757 0.311171 7.39001L5.20759 1.02937Z" fill="%236B91FD"/></svg>\')}.mat-mdc-tooltip-panel-below[_ngcontent-%COMP%] .mdc-tooltip[_ngcontent-%COMP%]:after{top:-.75rem;right:calc(50% - .5rem);transform:rotate(0)}.mat-mdc-tooltip-panel-above[_ngcontent-%COMP%] .mdc-tooltip[_ngcontent-%COMP%]:after{bottom:-.75rem;right:calc(50% - .5rem);transform:rotate(180deg)}.mat-mdc-tooltip-panel-right[_ngcontent-%COMP%] .mdc-tooltip[_ngcontent-%COMP%]:after{left:-.875rem;top:calc(50% - .375rem);transform:rotate(270deg)}.mat-mdc-tooltip-panel-left[_ngcontent-%COMP%] .mdc-tooltip[_ngcontent-%COMP%]:after{right:-.875rem;top:calc(50% - .375rem);transform:rotate(90deg)}.mat-mdc-tooltip.mat-mdc-tooltip[_ngcontent-%COMP%] .mdc-tooltip__surface[_ngcontent-%COMP%]{background-color:var(--color-background-brand-bolder);padding:.5rem .75rem;border-radius:.5rem}@font-face{font-family:Material Icons;font-style:normal;font-weight:400;
1src:url(https://fonts.gstatic.com/s/materialicons/v92/flUhRq6tzZclQEJ-Vdg-IuiaDsNcIhQ8tQ.eot);src:local("Material Icons"),local("MaterialIcons-Regular"),url(https://fonts.gstatic.com/s/materialicons/v92/flUhRq6tzZclQEJ-Vdg-IuiaDsNcIhQ8tQ.woff2) format("woff2"),url(https://fonts.gstatic.com/s/materialicons/v92/flUhRq6tzZclQEJ-Vdg-IuiaDsNcIhQ8tQ.woff) format("woff"),url(https://fonts.gstatic.com/s/materialicons/v92/flUhRq6tzZclQEJ-Vdg-IuiaDsNcIhQ8tQ.ttf) format("truetype");font-display:block}.tide-currency-sub-unit[_ngcontent-%COMP%]{font-size:.78125rem}.balance-currency-sub-unit[_ngcontent-%COMP%]{font-size:1.3671875rem}[_nghost-%COMP%] h3[_ngcontent-%COMP%]{margin-bottom:.5rem}[_nghost-%COMP%] .form-container[_ngcontent-%COMP%]{margin-top:2rem}']})}}return f})();var b=function(f){return f.UBO_INFO="uboInfo",f.BUSINESS_DETAILS="business-details",f.REVIEW_DETAILS="review-details",f.ADD_UBO="add",f}(b||{});const g=[{path:b.UBO_INFO,canActivate:[()=>{const f=(0,e.inject)(P.Router),A=(0,e.inject)(D.G);return"/"===f.url||A.uboData$.pipe((0,o.take)(1),(0,o.map)(a=>!!a))}],component:V,data:{title:"Ubo Personal Details | Onboarding | Tide Business",sidesheet:!0},children:[{path:b.BUSINESS_DETAILS,component:eo,data:{title:"Ubo Business Details | Onboarding | Tide Business",drawer:!0}},{path:b.REVIEW_DETAILS,component:_,data:{title:"Ubo Review Details | Onboarding | Tide Business",drawer:!0}}]},{path:b.ADD_UBO,component:s,data:{title:"Add another UBO | Onboarding | Tide Business",sidesheet:!0},children:[{path:b.BUSINESS_DETAILS,component:eo,data:{title:"Ubo Business Details | Onboarding | Tide Business",drawer:!0}},{path:b.REVIEW_DETAILS,component:_,data:{title:"Ubo Review Details | Onboarding | Tide Business",drawer:!0}}]}]},44128(Z,R,l){l.d(R,{G:()=>P});var r=l(88830),h=l(15580),d=l(93587),O=l(16337),o=l(50574),k=l(44238),e=l(81380);let P=(()=>{class B{constructor(C){this._store=C,this._uboData$=new r.BehaviorSubject(null),this.uboData$=this._uboData$.asObservable(),this._ubos$=new r.ReplaySubject(1),this.ubos$=this._ubos$.asObservable(),this._submitUbo$=new r.Subject,this.submitUbo$=this._submitUbo$.asObservable()}setUboData(C){this._uboData$.next(C)}setSubmitUbo(C){this._submitUbo$.next(C)}fetchUbos(){this._store.select(h.Ne).pipe((0,d.u5)(),(0,r.withLatestFrom)(this._store.select(h.P6)),(0,r.take)(1),(0,r.map)(([C,S])=>{this.applicationUbos=S.business?.ubos||[];const y=C.map(I=>I.isApplicant?{...I,dateOfBirth:S.applicant.dateOfBirth,address:S.applicant.currentAddress}:I);return(0,O.Ku)(this.applicationUbos,y).filter(I=>I.type===o.Lx.Individual)})).subscribe(C=>{this.ubos=C,this._ubos$.next(C)})}isUboValid(C){const S=!!C?.naturesOfControl?.some(U=>U.type===o.g8.VotingRights&&!!U.shares),y=!!C?.naturesOfControl?.some(U=>U.type===o.g8.Ownership&&!!U.shares);return C.type===o.Lx.Business?!!(C.name&&C.number&&S&&y):!!(C.firstName&&C.lastName&&C.dateOfBirth&&C.address&&(!C.shareholder||S&&y))}static{this.\u0275fac=function(S){return new(S||B)(k.\u0275\u0275inject(e.Store))}}static{this.\u0275prov=k.\u0275\u0275defineInjectable({token:B,factory:B.\u0275fac})}}return B})()},4460(Z,R,l){l.d(R,{B:()=>X});var r=l(99886),h=l(29604),d=l(51908),O=l(36988),o=l(20943),k=l(12652),e=l(83614),P=l(84184),B=l(81021),D=l(52607),C=l(71545),S=l(44128),y=l(68366),I=l(3443),U=l(97024),G=l(41134),v=l(90353),x=l(58554),u=l(39104),T=l(44238);const $=[O.LayoutsModule,d.t,C.h,B.a,e.j,P.K,D.D,I.h,x.x,u.$],V=[r.ReactiveFormsModule,r.FormsModule,o.Fg,k.MatIconModule,y.aP,U.g7,G.LG,v.MY];let X=(()=>{class F{static{this.\u0275fac=function(Y){return new(Y||F)}}static{this.\u0275mod=T.\u0275\u0275defineNgModule({type:F})}static{this.\u0275inj=T.\u0275\u0275defineInjector({providers:[S.G],imports:[h.CommonModule,V,$]})}}return F})()},84619(Z,R,l){l.d(R,{n:()=>vo});var r=l(44238),h=l(99886),d=l(79771),O=l(88830),o=l(2814),k=l(33218),e=l(71738),P=l(63880),B=l(80122),D=l(71792),C=l(59868),S=l(1346);let y=(()=>{class _{constructor(s,b){this._apiService=s,this._environment=b}getAddresses(s,b,g){const f=(0,C.getApiV4RequestOptions)({authToken:b},{postcode:s,country_code:g||this._environment.COUNTRY_ISO_CODE});return this._apiService.get(`${this._environment.API_V4_URL}/address-lookup/addresses`,f).pipe((0,O.map)(A=>A.addresses))}getAddress(s,b,g){const f=(0,C.getApiV4RequestOptions)({authToken:b},{country_code:g||this._environment.COUNTRY_ISO_CODE});return this._apiService.get(`${this._environment.API_V4_URL}/address-lookup/addresses/${encodeURIComponent(s)}`,f)}static{this.\u0275fac=function(b){return new(b||_)(r.\u0275\u0275inject(S.G),r.\u0275\u0275inject(P.ENVIRONMENT))}}static{this.\u0275prov=r.\u0275\u0275defineInjectable({token:_,factory:_.\u0275fac,providedIn:"root"})}}return _})();var I=l(35729),U=l(88470),G=l(58304),v=l(82490),x=l(86811),u=l(59791),T=l(80423),$=l(41134),V=l(18953),X=l(12652),F=l(20943),J=l(88453),oo=l(88908),Y=l(29604);const no=["container"],eo=(_,N)=>N.code,ao=(_,N)=>N.providerId;function io(_,N){if(1&_&&(r.\u0275\u0275elementStart(0,"label",16),r.\u0275\u0275text(1),r.\u0275\u0275elementEnd()),2&_){const s=r.\u0275\u0275nextContext(3);r.\u0275\u0275advance(),r.\u0275\u0275textInterpolate(s.addressLabel?s.addressLabel:s.label)}}function so(_,N){if(1&_&&r.\u0275\u0275conditionalCreate(0,io,2,1,"label",16),2&_){const s=r.\u0275\u0275nextContext(2);r.\u0275\u0275conditional(s.addressLabel||s.label?0:-1)}}function ro(_,N){if(1&_){const s=r.\u0275\u0275getCurrentView();r.\u0275\u0275conditionalCreate(0,so,1,1),r.\u0275\u0275elementStart(1,"mat-list",11)(2,"mat-list-item",12),r.\u0275\u0275element(3,"twa-onboarding-address",13),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(4,"mat-list-item",12)(5,"button",14),r.\u0275\u0275listener("click",function(){r.\u0275\u0275restoreView(s);const g=r.\u0275\u0275nextContext();
1return r.\u0275\u0275resetView(g.edit())}),r.\u0275\u0275i18n(6,4),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(7,"button",15),r.\u0275\u0275listener("click",function(){r.\u0275\u0275restoreView(s);const g=r.\u0275\u0275nextContext();return r.\u0275\u0275resetView(g.remove())}),r.\u0275\u0275i18n(8,5),r.\u0275\u0275elementEnd()()()}if(2&_){const s=r.\u0275\u0275nextContext();r.\u0275\u0275conditional(s.disableAddressLabel?-1:0),r.\u0275\u0275advance(),r.\u0275\u0275property("elevated",!0)("disableRipple",!0),r.\u0275\u0275advance(2),r.\u0275\u0275property("address",null==s.addressForm?null:s.addressForm.value)("inline",s.inline)("isForeignAddressEnabled",s.isForeignAddressEnabled)("countryName",s.countryHelper.displayCountryName(s.addressForm?.value?.countryCode)),r.\u0275\u0275advance(4),r.\u0275\u0275property("color","warn")}}function to(_,N){if(1&_&&(r.\u0275\u0275elementStart(0,"label",16),r.\u0275\u0275text(1),r.\u0275\u0275elementEnd()),2&_){const s=r.\u0275\u0275nextContext(2);r.\u0275\u0275advance(),r.\u0275\u0275textInterpolate(s.label)}}function bo(_,N){if(1&_&&(r.\u0275\u0275elementStart(0,"mat-option",25),r.\u0275\u0275text(1),r.\u0275\u0275elementEnd()),2&_){const s=N.$implicit;r.\u0275\u0275property("value",s.code),r.\u0275\u0275advance(),r.\u0275\u0275textInterpolate(s.name)}}function fo(_,N){if(1&_){const s=r.\u0275\u0275getCurrentView();r.\u0275\u0275elementStart(0,"label",16),r.\u0275\u0275i18n(1,6),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(2,"mat-form-field"),r.\u0275\u0275element(3,"input",24),r.\u0275\u0275controlCreate(),r.\u0275\u0275elementStart(4,"mat-autocomplete",21,3),r.\u0275\u0275listener("optionSelected",function(g){r.\u0275\u0275restoreView(s);const f=r.\u0275\u0275nextContext(2);return r.\u0275\u0275resetView(f.countryHelper.selectCountry(g.option.value))}),r.\u0275\u0275repeaterCreate(6,bo,2,2,"mat-option",25,eo),r.\u0275\u0275elementEnd()(),r.\u0275\u0275elementStart(8,"label",16),r.\u0275\u0275i18n(9,7),r.\u0275\u0275elementEnd()}if(2&_){const s=r.\u0275\u0275reference(5),b=r.\u0275\u0275nextContext(2);r.\u0275\u0275advance(3),r.\u0275\u0275property("formControl",b.countryHelper.countrySearchControl)("matAutocomplete",s),r.\u0275\u0275control(),r.\u0275\u0275advance(),r.\u0275\u0275property("displayWith",b.countryHelper.displayCountryName.bind(b.countryHelper)),r.\u0275\u0275advance(2),r.\u0275\u0275repeater(b.countryHelper.filteredCountries)}}function j(_,N){1&_&&r.\u0275\u0275element(0,"mat-spinner",18)}function uo(_,N){1&_&&r.\u0275\u0275element(0,"mat-icon",19)}function lo(_,N){1&_&&(r.\u0275\u0275elementStart(0,"mat-option",26),r.\u0275\u0275i18n(1,8),r.\u0275\u0275elementEnd())}function co(_,N){if(1&_&&(r.\u0275\u0275elementStart(0,"mat-option",25),r.\u0275\u0275text(1),r.\u0275\u0275elementEnd()),2&_){const s=N.$implicit;r.\u0275\u0275property("value",s),r.\u0275\u0275advance(),r.\u0275\u0275textInterpolate1(" ",s.displayAddress," ")}}function go(_,N){if(1&_&&(r.\u0275\u0275conditionalCreate(0,lo,2,0,"mat-option",26),r.\u0275\u0275pipe(1,"async"),r.\u0275\u0275repeaterCreate(2,co,2,2,"mat-option",25,ao)),2&_){const s=N,b=r.\u0275\u0275nextContext(2);r.\u0275\u0275conditional(!s?.length&&!1===r.\u0275\u0275pipeBind1(1,1,b.loading$)&&b.addressForm?.get("postalCode")?.valid?0:-1),r.\u0275\u0275advance(2),r.\u0275\u0275repeater(s)}}function Q(_,N){1&_&&(r.\u0275\u0275elementStart(0,"mat-hint"),r.\u0275\u0275i18n(1,9),r.\u0275\u0275elementEnd())}function mo(_,N){if(1&_&&(r.\u0275\u0275elementStart(0,"mat-hint",22),r.\u0275\u0275text(1),r.\u0275\u0275elementEnd()),2&_){const s=r.\u0275\u0275nextContext(2);r.\u0275\u0275advance(),r.\u0275\u0275textInterpolate(s.hint)}}function _o(_,N){1&_&&(r.\u0275\u0275elementStart(0,"mat-error"),r.\u0275\u0275element(1,"tide-error-message"),r.\u0275\u0275elementEnd())}function po(_,N){if(1&_){const s=r.\u0275\u0275getCurrentView();r.\u0275\u0275elementStart(0,"form",10,0),r.\u0275\u0275conditionalCreate(2,to,2,1,"label",16),r.\u0275\u0275conditionalCreate(3,fo,10,3),r.\u0275\u0275elementStart(4,"mat-form-field")(5,"span",17),r.\u0275\u0275conditionalCreate(6,j,1,0,"mat-spinner",18),r.\u0275\u0275pipe(7,"async"),r.\u0275\u0275conditionalBranchCreate(8,uo,1,0,"mat-icon",19),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(9,"input",20,1),r.\u0275\u0275listener("click",function(){r.\u0275\u0275restoreView(s);const g=r.\u0275\u0275nextContext();
1return r.\u0275\u0275resetView(g.openDropdownOnClick())})("keydown.enter",function(g){r.\u0275\u0275restoreView(s);const f=r.\u0275\u0275nextContext();return r.\u0275\u0275resetView(f.openDropdownOnEnter(g))}),r.\u0275\u0275elementEnd(),r.\u0275\u0275controlCreate(),r.\u0275\u0275elementStart(11,"mat-autocomplete",21,2),r.\u0275\u0275listener("optionSelected",function(g){r.\u0275\u0275restoreView(s);const f=r.\u0275\u0275nextContext();return r.\u0275\u0275resetView(f.getAddressDetails(g.option.value))}),r.\u0275\u0275conditionalCreate(13,go,4,3),r.\u0275\u0275pipe(14,"async"),r.\u0275\u0275elementEnd(),r.\u0275\u0275conditionalCreate(15,Q,2,0,"mat-hint")(16,mo,2,1,"mat-hint",22),r.\u0275\u0275conditionalCreate(17,_o,2,0,"mat-error"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(18,"a",23),r.\u0275\u0275listener("click",function(){r.\u0275\u0275restoreView(s);const g=r.\u0275\u0275nextContext();return r.\u0275\u0275resetView(g.edit())}),r.\u0275\u0275text(19),r.\u0275\u0275elementEnd()()}if(2&_){let s;const b=r.\u0275\u0275reference(12),g=r.\u0275\u0275nextContext();r.\u0275\u0275property("formGroup",g.addressForm),r.\u0275\u0275advance(2),r.\u0275\u0275conditional(g.label?2:-1),r.\u0275\u0275advance(),r.\u0275\u0275conditional(g.isForeignAddressEnabled?3:-1),r.\u0275\u0275advance(3),r.\u0275\u0275conditional(r.\u0275\u0275pipeBind1(7,10,g.loading$)?6:8),r.\u0275\u0275advance(3),r.\u0275\u0275property("matAutocomplete",b),r.\u0275\u0275control(),r.\u0275\u0275advance(2),r.\u0275\u0275property("displayWith",g.displayPostcode),r.\u0275\u0275advance(2),r.\u0275\u0275conditional((s=r.\u0275\u0275pipeBind1(14,12,g.addresses$))?13:-1,s),r.\u0275\u0275advance(2),r.\u0275\u0275conditional(g.addressForm.get("postalCode")?.disabled?15:g.hint?16:-1),r.\u0275\u0275advance(2),r.\u0275\u0275conditional(g.isForeignAddressEnabled?-1:17),r.\u0275\u0275advance(2),r.\u0275\u0275textInterpolate(g.manualLabel||"Can't find the address?")}}let vo=(()=>{class _{set container(s){(s?.nativeElement.querySelector("[autofocus]")||null)?.focus()}constructor(s,b,g,f,A,a){this._addressService=s,this._snackbarService=b,this._dialog=g,this._cdr=f,this._onboardingService=A,this._environment=a,this.inline=!1,this.disableAddressLabel=!1,this.allowForeignAddress=!1,this.modelChange=new r.EventEmitter,this.addressForm=(0,k.U$)([],this._environment.COUNTRY_ISO_CODE===B.S.DE),this.loading$=new O.BehaviorSubject(!1),this.addresses$=(0,O.of)([]),this.addressSelected=!1,this.countryHelper=new D.B(this._onboardingService),this._subscriptions=new O.Subscription}get isForeignAddressEnabled(){return this.allowForeignAddress&&this._onboardingService.isForeignAddressInputEnabled}ngOnChanges(s){const b=s.model;b&&JSON.stringify(b.currentValue)!==JSON.stringify(this._model)&&(this._model=b.currentValue,this._initForm(this._model))}ngOnInit(){if(this.isForeignAddressEnabled){this._subscriptions.add(this.countryHelper.fetchCountries(this.authToken).subscribe(()=>this._cdr.markForCheck())),this._subscriptions.add(this.countryHelper.watchSearch().subscribe(()=>this._cdr.markForCheck())),this.countryHelper.countrySelectionControl.setValue(this._model?.countryCode||this._environment.COUNTRY_ISO_CODE||"",{emitEvent:!1}),this.countryHelper.countrySelectionControl.setValidators([h.Validators.required]),this.countryHelper.countrySelectionControl.updateValueAndValidity({emitEvent:!1});const b=this.countryHelper.countrySelectionControl.valueChanges.pipe((0,O.startWith)(this.countryHelper.countrySelectionControl.value),(0,o.filter)(g=>!!g),(0,o.distinctUntilChanged)());this._subscriptions.add(b.subscribe(g=>this._applyCountryValidators(g))),this._subscriptions.add(this.countryHelper.countrySelectionControl.valueChanges.pipe((0,o.map)(g=>!!g),(0,O.startWith)(!!this.countryHelper.countrySelectionControl.value),(0,o.distinctUntilChanged)()).subscribe(g=>this._toggleSearchAvailability(g)))}this._initFormObservables()}_applyCountryValidators(s){(0,k.o8)(this.addressForm,s,[],this.isForeignAddressEnabled),this._cdr.markForCheck()}_toggleSearchAvailability(s){const b=this.addressForm.get("postalCode");b&&(s?b.enable({emitEvent:!1}):b.disable({emitEvent:!1}),this._cdr.markForCheck())}_initForm(s){this.addressForm.reset(s),this.isForeignAddressEnabled&&this._applyCountryValidators(s?.countryCode||this.countryHelper.countrySelectionControl.value||void 0),this.addressForm.updateValueAndValidity(),this.addressSelected=this.addressForm.valid}_initFormObservables(){const s=this.addressForm.get("postalCode");s&&(this.addresses$=s.valueChanges.pipe((0,o.filter)(b=>"string"==typeof b),(0,o.map)(b=>{const g=(b||"").toUpperCase();return g!==b&&s.setValue(b=g,{emitEvent:!1}),b}),(0,o.map)(b=>b.trim()),(0,o.debounceTime)(500),(0,o.distinctUntilChanged)(),(0,o.switchMap)(b=>(this.isForeignAddressEnabled?b:this._environment.COUNTRY_OF_BUSINESS!==P.ECountryOfBusiness.GB||s.valid)&&!this.addressSelected?(this.loading$.next(!0),this._addressService.getAddresses(b,this.authToken,this._selectedCountryCode()).pipe((0,o.finalize)(()=>this.loading$.next(!1)),(0,o.catchError)(()=>(this._snackbarService.open({message:"Please search again or edit your address manually"}),(0,O.of)([]))))):(0,O.of)([])))),this._subscriptions.add(this.addressForm.valueChanges.subscribe(b=>{this.modelChange.emit(b)}))}_selectedCountryCode(){return this.isForeignAddressEnabled&&this.countryHelper.countrySelectionControl.value||void 0}
1edit(s){const b=this._dialog.open(e.X,{width:"500px",autoFocus:!1,data:{address:this.addressForm.value,showErrors:s,title:this.dialogTitle,subtitle:this.dialogSubtitle,isForeignAddressEnabled:this.isForeignAddressEnabled,countryCode:this._selectedCountryCode(),authToken:this.authToken}});this._subscriptions.add(b.afterClosed().subscribe(g=>{g&&(this.isForeignAddressEnabled&&g.countryCode&&(this.countryHelper.countrySelectionControl.setValue(g.countryCode,{emitEvent:!1}),this.countryHelper.countrySearchControl.setValue(g.countryCode,{emitEvent:!1})),this._initForm(g),this._cdr.markForCheck())})),this._subscriptions.add(b.afterOpened().subscribe(()=>this.inputAutoComplete?.closePanel()))}remove(){this._initForm({})}openDropdownOnClick(){this.inputAutoComplete?.openPanel()}openDropdownOnEnter(s){this.matAutocomplete?.isOpen||(s.stopPropagation(),s.preventDefault(),this.inputAutoComplete?.openPanel())}getAddressDetails(s){const b=this.addressForm.get("postalCode");b&&(this.loading$.next(!0),b.disable(),this._subscriptions.add(this._addressService.getAddress(s.providerId,this.authToken,this._selectedCountryCode()).pipe((0,O.tap)(g=>{g.postalCode=g.postcode,this.isForeignAddressEnabled&&(g.countryCode=this._selectedCountryCode()||g.countryCode),b.enable(),b.setValue(g.postalCode,{emitEvent:!1}),this._initForm(g),this.addressForm.valid||(this.edit(!0),this._snackbarService.open({message:"The selected address is missing some important information"}))}),(0,o.finalize)(()=>{this.loading$.next(!1),b.enable()}),(0,o.catchError)(()=>(this._snackbarService.open({message:"Please search again or edit your address manually"}),O.EMPTY))).subscribe()))}displayPostcode(s){return"string"==typeof s?s:null}ngOnDestroy(){this._subscriptions.unsubscribe()}static{this.\u0275fac=function(b){return new(b||_)(r.\u0275\u0275directiveInject(y),r.\u0275\u0275directiveInject(I.z),r.\u0275\u0275directiveInject(U.MatDialog),r.\u0275\u0275directiveInject(r.ChangeDetectorRef),r.\u0275\u0275directiveInject(G.x),r.\u0275\u0275directiveInject(P.ENVIRONMENT))}}static{this.\u0275cmp=r.\u0275\u0275defineComponent({type:_,selectors:[["twa-onboarding-address-lookup"]],viewQuery:function(b,g){if(1&b&&r.\u0275\u0275viewQuery(d.$3,5)(d.pN,5,d.pN)(no,5),2&b){let f;r.\u0275\u0275queryRefresh(f=r.\u0275\u0275loadQuery())&&(g.matAutocomplete=f.first),r.\u0275\u0275queryRefresh(f=r.\u0275\u0275loadQuery())&&(g.inputAutoComplete=f.first),r.\u0275\u0275queryRefresh(f=r.\u0275\u0275loadQuery())&&(g.container=f.first)}},inputs:{model:"model",authToken:"authToken",inline:"inline",label:"label",addressLabel:"addressLabel",hint:"hint",disableAddressLabel:"disableAddressLabel",manualLabel:"manualLabel",dialogTitle:"dialogTitle",dialogSubtitle:"dialogSubtitle",allowForeignAddress:"allowForeignAddress"},outputs:{modelChange:"modelChange"},standalone:!1,features:[r.\u0275\u0275NgOnChangesFeature],decls:2,vars:1,consts:()=>{let s,b,g,f,A,a;return s="Edit",b="Remove",g="Country of Residence",f="Postcode or address",A="No address found",a="Select a country to search",[["container",""],["inputAutoComplete",""],["auto","matAutocomplete"],["countryAuto","matAutocomplete"],s,b,g,f,A,a,["novalidate","",3,"formGroup"],["tideList","",3,"elevated","disableRipple"],["role","listitem"],["data-testid","manual-trading-address",3,"address","inline","isForeignAddressEnabled","countryName"],["tide-button","","variant","tertiary",3,"click"],["tide-button","","variant","tertiary",3,"click","color"],[1,"tide-sub-2"],["matPrefix",""],["diameter","20"],["svgIcon","search"],["matInput","","formControlName","postalCode","matAutocompletePosition","auto","autocomplete","postal-code","data-testid","postal-code",3,"click","keydown.enter","matAutocomplete"],[3,"optionSelected","displayWith"],[1,"tide-body-2"],[3,"click"],["matInput","","autocomplete","off","data-testid","address-country",3,"formControl","matAutocomplete"],[3,"value"],["disabled",""]]},template:function(b,g){1&b&&r.\u0275\u0275conditionalCreate(0,ro,9,8)(1,po,20,14,"form",10),2&b&&r.\u0275\u0275conditional(g.addressSelected?0:1)},dependencies:[v.o,x.f,h.\u0275NgNoValidate,h.DefaultValueAccessor,h.NgControlStatus,h.NgControlStatusGroup,h.FormControlDirective,h.FormGroupDirective,h.FormControlName,u.fg,T.rl,T.MV,T.TL,T.JW,$.LG,d.$3,V.wT,d.pN,X.MatIcon,F.jt,F.YE,J.U,oo.n,Y.AsyncPipe],styles:['[_ngcontent-%COMP%]:root{--color-background-standard: #f0f4ff;--color-background-inverse: #ffffff;--color-background-subtler: #f3f3f4;--color-background-brand: #1929d6;--color-background-brand-bolder: #00106a;--color-background-brand-subtle: #c5d8ff;--color-background-brand-subtler: #dde8ff;--color-background-disabled: #ececee;--color-background-subtle: #cdcfd5;--color-background-success-subtle: #ecfdf3;--color-background-success-bold: #75e0a7;--color-background-success-bolder: #089b5d;--color-background-warning-subtle: #fffaeb;--color-background-warning-bold: #ffc142;--color-background-warning-bolder: #4e1d09;--color-background-error-subtle: #fef3f2;--color-background-error-bold: #d92d20;--color-background-bold: #9095a2;--color-background-boldest: #1d1f2a;--color-decorative-orange-subtle: #feead5;--color-decorative-blue-subtle: #cfecfd;--color-decorative-purple-subtle: #eee0ff;--color-decorative-teal-subtle: #e8f9fd;--color-decorative-magenta-subtle: #ffe6e6;--color-decorative-brown-subtle: #f7ecdd;--color-decorative-yellow-subtle: #fdf4ce;--color-decorative-green-subtle: #dcfae6;--color-decorative-yellow: #fedf89;--color-decorative-green: #a9efc5;--color-decorative-orange: #f9af82;--color-decorative-blue: #70b8f3;--color-decorative-purple: #bc87ff;--color-decorative-teal: #56cccc;--color-decorative-magenta: #f582a0;--color-decorative-brown: #d2ae90;--color-decorative-yellow-bold: #dc6803;--color-decorative-green-bold: #17b26a;--color-decorative-orange-bold: #a92518;--color-decorative-blue-bold: #0b409a;--color-decorative-purple-bold: #5a11b0;
1--color-decorative-teal-bold: #007d8c;--color-decorative-magenta-bold: #8d0450;--color-border-standard: #cdcfd5;--color-border-subtle: #e4e4e7;--color-border-brand: #1929d6;--color-border-disabled: #ececee;--color-border-bold: #9095a2;--color-border-success-subtle: #75e0a7;--color-border-success-bold: #089b5d;--color-border-warning-subtle: #ffc142;--color-border-error-subtle: #fa887f;--color-border-warning-bold: #dc6803;--color-border-error-bold: #f04438;--color-border-focus: #5273ff;--color-border-brand-subtler: #c5d8ff;--color-border-brand-subtlest: #dde8ff;--color-border-brand-subtle: #a4bcff;--color-border-brand-bolder: #00106a;--color-text-standard: #282b3a;--color-text-secondary: #494d5f;--color-text-tertiary: #6f7281;--color-text-brand-bold: #00106a;--color-text-brand: #1929d6;--color-text-disabled: #a6aab4;--color-text-success-subtle: #75e0a7;--color-text-success-bold: #067647;--color-text-success-bolder: #067647;--color-text-warning-subtle: #ffc142;--color-text-warning-bold: #b54708;--color-text-warning-bolder: #b54708;--color-text-error-subtle: #fa887f;--color-text-error-bold: #d92d20;--color-text-error-bolder: #6e0b32;--color-text-inverse: #ffffff;--color-text-brand-subtle: #6b91fd;--color-icon-standard: #616371;--color-icon-secondary: #9095a2;--color-icon-brand: #1929d6;--color-icon-brand-bold: #00106a;--color-icon-brand-subtle: #6b91fd;--color-icon-success-subtle: #75e0a7;--color-icon-success-bold: #089b5d;--color-icon-warning-subtle: #ffc142;--color-icon-warning-bold: #b54708;--color-icon-warning-bolder: #b54708;--color-icon-error-subtle: #fa887f;--color-icon-error-bold: #d92d20;--color-icon-orange-subtle: #ec5c31;--color-icon-blue-subtle: #176fd7;--color-icon-purple-subtle: #9346ed;--color-icon-teal-subtle: #01a3ae;--color-icon-magenta-subtle: #cd1d5c;--color-icon-brown-subtle: #6b4533;--color-icon-error-bolder: #d92d20;--color-icon-orange-bold: #a92518;--color-icon-blue-bold: #0b409a;--color-icon-teal-bold: #007d8c;--color-icon-magenta-bold: #8d0450;--color-icon-purple-bold: #5a11b0;--color-icon-brown-bold: #4d2319;--color-icon-inverse: #ffffff;--color-icon-disabled: #6f7281;--color-link-standard: #1929d6;--color-link-active: #00106a;--color-link-hover: #0c008a;--color-link-visited: #1209ae;--color-opacity-0: rgba(#1d1f2a, .2)}[_ngcontent-%COMP%]:root{--color-indigo-100: #f0f4ff;--color-indigo-200: #dde8ff;--color-indigo-300: #c5d8ff;--color-indigo-400: #a4bcff;--color-indigo-500: #6b91fd;--color-indigo-600: #5273ff;--color-indigo-700: #3746ec;--color-indigo-800: #1929d6;--color-indigo-900: #1209ae;--color-indigo-1000: #0c008a;--color-indigo-1100: #00106a;--color-indigo-1200: #030047;--color-grey-0: #ffffff;--color-grey-100: #f3f3f4;--color-grey-200: #ececee;--color-grey-300: #e4e4e7;--color-grey-400: #cdcfd5;--color-grey-500: #a6aab4;--color-grey-600: #9095a2;--color-grey-700: #6f7281;--color-grey-800: #616371;--color-grey-900: #494d5f;--color-grey-1000: #31333f;--color-grey-1100: #282b3a;--color-grey-1200: #1d1f2a;--color-green-100: #ecfdf3;--color-green-200: #dcfae6;--color-green-250: #d2fad1;--color-green-300: #a9efc5;--color-green-400: #75e0a7;--color-green-450: #74e489;--color-green-500: #47cd89;--color-green-600: #17b26a;--color-green-700: #089b5d;--color-green-800: #067647;--color-green-900: #044e2e;--color-green-1000: #053321;--color-green-1100: #055040;--color-red-50: #fde3d7;--color-red-100: #fef3f2;--color-red-200: #fee4e2;--color-red-300: #fecdca;--color-red-350: #f79788;--color-red-400: #fda7a0;--color-red-500: #fa887f;--color-red-600: #f97066;--color-red-700: #f04438;--color-red-800: #d92d20;--color-red-900: #b42318;--color-red-1000: #912018;--color-red-1100: #6e0b32;--color-yellow-100: #fffaeb;--color-yellow-200: #fdf4ce;--color-yellow-300: #fedf89;--color-yellow-400: #ffc142;--color-yellow-450: #e8a011;--color-yellow-500: #fdb022;--color-yellow-600: #f79009;--color-yellow-700: #dc6803;--color-yellow-800: #b54708;--color-yellow-900: #93370d;--color-yellow-1000: #4e1d09;--color-yellow-1100: #6f3c03;--color-purple-50: #eee0ff;--color-purple-100: #dabaff;--color-purple-300: #bc87ff;--color-purple-500: #9346ed;--color-purple-700: #5a11b0;
1--color-purple-900: #33087e;--color-blue-100: #cfecfd;--color-blue-300: #70b8f3;--color-blue-500: #176fd7;--color-blue-700: #0b409a;--color-blue-900: #041f67;--color-teal-50: #e8f9fd;--color-teal-100: #9de2e5;--color-teal-300: #56cccc;--color-teal-500: #01a3ae;--color-teal-700: #007d8c;--color-teal-900: #02576a;--color-orange-100: #feead5;--color-orange-300: #f9af82;--color-orange-500: #ec5c31;--color-orange-700: #a92518;--color-orange-900: #71090f;--color-magenta-50: #ffe6e6;--color-magenta-100: #ffbdcc;--color-magenta-300: #f582a0;--color-magenta-500: #cd1d5c;--color-magenta-700: #8d0450;--color-magenta-900: #62054b;--color-brown-100: #f7ecdd;--color-brown-300: #d2ae90;--color-brown-500: #6b4533;--color-brown-700: #4d2319;--color-brown-900: #330c09;--color-slate-100: #f1f1f3;--color-slate-200: #e6e6ea;--color-slate-300: #dedee3;--color-slate-400: #ced0d6;--color-slate-500: #aeb2bc;--color-slate-600: #9da0a8;--color-slate-700: #7f838a;--color-slate-800: #45484f;--color-slate-900: #393b41;--color-slate-1000: #2b2c31;--color-slate-1100: #18191b;--color-slate-1200: #0f0f0f;--color-slate-000: #ffffff}.light-theme[_ngcontent-%COMP%]{--color-background-standard: #f0f4ff;--color-background-inverse: #ffffff;--color-background-subtler: #f3f3f4;--color-background-brand: #1929d6;--color-background-brand-bolder: #00106a;--color-background-brand-subtle: #c5d8ff;--color-background-brand-subtler: #dde8ff;--color-background-disabled: #ececee;--color-background-subtle: #cdcfd5;--color-background-success-subtle: #ecfdf3;--color-background-success-bold: #75e0a7;--color-background-success-bolder: #089b5d;--color-background-warning-subtle: #fffaeb;--color-background-warning-bold: #ffc142;--color-background-warning-bolder: #4e1d09;--color-background-error-subtle: #fef3f2;--color-background-error-bold: #d92d20;--color-background-bold: #9095a2;--color-background-boldest: #1d1f2a;--color-decorative-orange-subtle: #feead5;--color-decorative-blue-subtle: #cfecfd;--color-decorative-purple-subtle: #eee0ff;--color-decorative-teal-subtle: #e8f9fd;--color-decorative-magenta-subtle: #ffe6e6;--color-decorative-brown-subtle: #f7ecdd;--color-decorative-yellow-subtle: #fdf4ce;--color-decorative-green-subtle: #dcfae6;--color-decorative-yellow: #fedf89;--color-decorative-green: #a9efc5;--color-decorative-orange: #f9af82;--color-decorative-blue: #70b8f3;--color-decorative-purple: #bc87ff;--color-decorative-teal: #56cccc;--color-decorative-magenta: #f582a0;--color-decorative-brown: #d2ae90;--color-decorative-yellow-bold: #dc6803;--color-decorative-green-bold: #17b26a;--color-decorative-orange-bold: #a92518;--color-decorative-blue-bold: #0b409a;--color-decorative-purple-bold: #5a11b0;--color-decorative-teal-bold: #007d8c;--color-decorative-magenta-bold: #8d0450;--color-border-standard: #cdcfd5;--color-border-subtle: #e4e4e7;--color-border-brand: #1929d6;--color-border-disabled: #ececee;--color-border-bold: #9095a2;--color-border-success-subtle: #75e0a7;--color-border-success-bold: #089b5d;--color-border-warning-subtle: #ffc142;--color-border-error-subtle: #fa887f;--color-border-warning-bold: #dc6803;--color-border-error-bold: #f04438;--color-border-focus: #5273ff;--color-border-brand-subtler: #c5d8ff;--color-border-brand-subtlest: #dde8ff;--color-border-brand-subtle: #a4bcff;--color-border-brand-bolder: #00106a;--color-text-standard: #282b3a;--color-text-secondary: #494d5f;--color-text-tertiary: #6f7281;--color-text-brand-bold: #00106a;--color-text-brand: #1929d6;--color-text-disabled: #a6aab4;--color-text-success-subtle: #75e0a7;--color-text-success-bold: #067647;--color-text-success-bolder: #067647;--color-text-warning-subtle: #ffc142;--color-text-warning-bold: #b54708;--color-text-warning-bolder: #b54708;--color-text-error-subtle: #fa887f;--color-text-error-bold: #d92d20;--color-text-error-bolder: #6e0b32;--color-text-inverse: #ffffff;--color-text-brand-subtle: #6b91fd;--color-icon-standard: #616371;--color-icon-secondary: #9095a2;--color-icon-brand: #1929d6;--color-icon-brand-bold: #00106a;--color-icon-brand-subtle: #6b91fd;--color-icon-success-subtle: #75e0a7;--color-icon-success-bold: #089b5d;--color-icon-warning-subtle: #ffc142;--color-icon-warning-bold: #b54708;--color-icon-warning-bolder: #b54708;--color-icon-error-subtle: #fa887f;--color-icon-error-bold: #d92d20;--color-icon-orange-subtle: #ec5c31;--color-icon-blue-subtle: #176fd7;--color-icon-purple-subtle: #9346ed;--color-icon-teal-subtle: #01a3ae;--color-icon-magenta-subtle: #cd1d5c;--color-icon-brown-subtle: #6b4533;--color-icon-error-bolder: #d92d20;--color-icon-orange-bold: #a92518;--color-icon-blue-bold: #0b409a;--color-icon-teal-bold: #007d8c;--color-icon-magenta-bold: #8d0450;--color-icon-purple-bold: #5a11b0;
1--color-icon-brown-bold: #4d2319;--color-icon-inverse: #ffffff;--color-icon-disabled: #6f7281;--color-link-standard: #1929d6;--color-link-active: #00106a;--color-link-hover: #0c008a;--color-link-visited: #1209ae;--color-opacity-0: rgba(#1d1f2a, .2)}.mat-mdc-tooltip[_ngcontent-%COMP%]{--mat-tooltip-supporting-text-font: Figtree;--mat-tooltip-supporting-text-weight: 525;--mat-tooltip-supporting-text-size: .75rem;--mat-tooltip-supporting-text-line-height: 1rem}.mat-mdc-tooltip-panel[_ngcontent-%COMP%] .mdc-tooltip[_ngcontent-%COMP%]{position:relative;overflow:initial}.mat-mdc-tooltip-panel[_ngcontent-%COMP%] .mdc-tooltip[_ngcontent-%COMP%]:after{width:1rem;height:.75rem;content:url(\'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 9"><path d="M5.20759 1.02937C5.6079 0.509358 6.3921 0.509358 6.79241 1.02937L11.6888 7.39001C12.195 8.04757 11.7263 9 10.8964 9H1.10358C0.273737 9 -0.195026 8.04757 0.311171 7.39001L5.20759 1.02937Z" fill="%2300106a"/></svg>\');display:inline-block;position:absolute}.dark-theme[_ngcontent-%COMP%] .mat-mdc-tooltip-panel[_ngcontent-%COMP%] .mdc-tooltip[_ngcontent-%COMP%]:after{content:url(\'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 9"><path d="M5.20759 1.02937C5.6079 0.509358 6.3921 0.509358 6.79241 1.02937L11.6888 7.39001C12.195 8.04757 11.7263 9 10.8964 9H1.10358C0.273737 9 -0.195026 8.04757 0.311171 7.39001L5.20759 1.02937Z" fill="%236B91FD"/></svg>\')}.mat-mdc-tooltip-panel-below[_ngcontent-%COMP%] .mdc-tooltip[_ngcontent-%COMP%]:after{top:-.75rem;right:calc(50% - .5rem);transform:rotate(0)}.mat-mdc-tooltip-panel-above[_ngcontent-%COMP%] .mdc-tooltip[_ngcontent-%COMP%]:after{bottom:-.75rem;right:calc(50% - .5rem);transform:rotate(180deg)}.mat-mdc-tooltip-panel-right[_ngcontent-%COMP%] .mdc-tooltip[_ngcontent-%COMP%]:after{left:-.875rem;top:calc(50% - .375rem);transform:rotate(270deg)}.mat-mdc-tooltip-panel-left[_ngcontent-%COMP%] .mdc-tooltip[_ngcontent-%COMP%]:after{right:-.875rem;top:calc(50% - .375rem);transform:rotate(90deg)}.mat-mdc-tooltip.mat-mdc-tooltip[_ngcontent-%COMP%] .mdc-tooltip__surface[_ngcontent-%COMP%]{background-color:var(--color-background-brand-bolder);padding:.5rem .75rem;border-radius:.5rem}@font-face{font-family:Material Icons;font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/materialicons/v92/flUhRq6tzZclQEJ-Vdg-IuiaDsNcIhQ8tQ.eot);src:local("Material Icons"),local("MaterialIcons-Regular"),url(https://fonts.gstatic.com/s/materialicons/v92/flUhRq6tzZclQEJ-Vdg-IuiaDsNcIhQ8tQ.woff2) format("woff2"),url(https://fonts.gstatic.com/s/materialicons/v92/flUhRq6tzZclQEJ-Vdg-IuiaDsNcIhQ8tQ.woff) format("woff"),url(https://fonts.gstatic.com/s/materialicons/v92/flUhRq6tzZclQEJ-Vdg-IuiaDsNcIhQ8tQ.ttf) format("truetype");font-display:block}.tide-currency-sub-unit[_ngcontent-%COMP%]{font-size:.78125rem}.balance-currency-sub-unit[_ngcontent-%COMP%]{font-size:1.3671875rem}[_nghost-%COMP%] form[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start}[_nghost-%COMP%] mat-form-field[_ngcontent-%COMP%]{display:block;width:100%}[_nghost-%COMP%] mat-list[_ngcontent-%COMP%]{margin-top:.5rem}[_nghost-%COMP%] mat-list[_ngcontent-%COMP%] > mat-list-item[_ngcontent-%COMP%]{height:auto}[_nghost-%COMP%] mat-list[_ngcontent-%COMP%] > mat-list-item[_ngcontent-%COMP%]:last-child{padding:1rem .5rem;border:0}[_nghost-%COMP%] .mat-mdc-form-field-error[_ngcontent-%COMP%]{color:var(--color-red-700)}[_nghost-%COMP%] .mat-mdc-list-item[_ngcontent-%COMP%]{padding:1rem;width:auto}[_nghost-%COMP%] .mat-mdc-form-field-hint.static[_ngcontent-%COMP%]{font-size:.875rem;margin-top:.5rem;display:block}[_nghost-%COMP%] .remove-button[_ngcontent-%COMP%]{color:var(--color-red-700)}[_nghost-%COMP%] .remove-button[_ngcontent-%COMP%] .mat-mdc-focus-indicator{background-color:var(--color-red-700)}[_nghost-%COMP%] .search-icon[_ngcontent-%COMP%]{display:inline-block!important;line-height:1.875rem}[_nghost-%COMP%] a[_ngcontent-%COMP%]{font-weight:500} .cdk-overlay-pane{margin-top:.5rem}']})}}return _})()},88908(Z,R,l){l.d(R,{n:()=>G});var r=l(63880),h=l(80122),d=l(44238),O=l(29604);const o=v=>({inline:v});function k(v,x){if(1&v&&d.\u0275\u0275text(0),2&v){const u=d.\u0275\u0275nextContext(3);d.\u0275\u0275textInterpolate1(" ",u.address.streetName||u.address?.addressLine1," ")}}
1function e(v,x){if(1&v&&d.\u0275\u0275text(0),2&v){const u=d.\u0275\u0275nextContext(3);d.\u0275\u0275textInterpolate1(" ",u.address.buildingNumber,", ")}}function P(v,x){if(1&v&&(d.\u0275\u0275conditionalCreate(0,k,1,1),d.\u0275\u0275conditionalCreate(1,e,1,1),d.\u0275\u0275text(2)),2&v){const u=d.\u0275\u0275nextContext(2);d.\u0275\u0275conditional(u.address.streetName||u.address.addressLine1?0:-1),d.\u0275\u0275advance(),d.\u0275\u0275conditional(u.address.buildingNumber?1:-1),d.\u0275\u0275advance(),d.\u0275\u0275textInterpolate3(" ",u.address.postalCode," ",u.address.city," ",u.isForeignAddressEnabled&&u.address.countryCode?u.countryName||u.address.countryCode:""," ")}}function B(v,x){if(1&v&&(d.\u0275\u0275elementStart(0,"span"),d.\u0275\u0275text(1),d.\u0275\u0275elementEnd()),2&v){const u=d.\u0275\u0275nextContext(3);d.\u0275\u0275advance(),d.\u0275\u0275textInterpolate1(" ",(u.shouldAddFlatCopy(u.address.subBuilding)?"Flat ":"")+(u.address.subBuilding||"")+(u.address.subBuilding&&u.address.buildingName?", ":"")+(u.address.buildingName||"")," ")}}function D(v,x){if(1&v&&(d.\u0275\u0275elementStart(0,"span"),d.\u0275\u0275text(1),d.\u0275\u0275elementEnd()),2&v){const u=d.\u0275\u0275nextContext(3);d.\u0275\u0275advance(),d.\u0275\u0275textInterpolate1(" ",(u.address.buildingNumber||"")+(u.address.buildingNumber&&u.address.streetName?", ":"")+(u.address.streetName||"")," ")}}function C(v,x){if(1&v&&(d.\u0275\u0275elementStart(0,"span"),d.\u0275\u0275text(1),d.\u0275\u0275elementEnd()),2&v){const u=d.\u0275\u0275nextContext(3);d.\u0275\u0275advance(),d.\u0275\u0275textInterpolate1(" ",(u.address.city||"")+(u.address.city&&u.address.province?", ":"")+(u.address.province||"")," ")}}function S(v,x){if(1&v&&(d.\u0275\u0275elementStart(0,"span"),d.\u0275\u0275text(1),d.\u0275\u0275elementEnd()),2&v){const u=d.\u0275\u0275nextContext(3);d.\u0275\u0275advance(),d.\u0275\u0275textInterpolate(u.address.postalCode)}}function y(v,x){if(1&v&&(d.\u0275\u0275elementStart(0,"span"),d.\u0275\u0275text(1),d.\u0275\u0275elementEnd()),2&v){const u=d.\u0275\u0275nextContext(3);d.\u0275\u0275advance(),d.\u0275\u0275textInterpolate(u.countryName||u.address.countryCode)}}function I(v,x){if(1&v&&(d.\u0275\u0275conditionalCreate(0,B,2,1,"span"),d.\u0275\u0275conditionalCreate(1,D,2,1,"span"),d.\u0275\u0275conditionalCreate(2,C,2,1,"span"),d.\u0275\u0275conditionalCreate(3,S,2,1,"span"),d.\u0275\u0275conditionalCreate(4,y,2,1,"span")),2&v){const u=d.\u0275\u0275nextContext(2);d.\u0275\u0275conditional(u.address.subBuilding||u.address.buildingName?0:-1),d.\u0275\u0275advance(),d.\u0275\u0275conditional(u.address.buildingNumber||u.address.streetName?1:-1),d.\u0275\u0275advance(),d.\u0275\u0275conditional(u.address.city||u.address.province?2:-1),d.\u0275\u0275advance(),d.\u0275\u0275conditional(u.address.postalCode?3:-1),d.\u0275\u0275advance(),d.\u0275\u0275conditional(u.isForeignAddressEnabled&&u.address.countryCode?4:-1)}}function U(v,x){if(1&v&&(d.\u0275\u0275elementStart(0,"section",0),d.\u0275\u0275conditionalCreate(1,P,3,5)(2,I,5,5),d.\u0275\u0275elementEnd()),2&v){const u=d.\u0275\u0275nextContext();d.\u0275\u0275property("ngClass",d.\u0275\u0275pureFunction1(2,o,u.inline)),d.\u0275\u0275advance(),d.\u0275\u0275conditional(u.isDeSignup?1:2)}}let G=(()=>{class v{constructor(u){this._environment=u,this.inline=!1,this.isForeignAddressEnabled=!1,this.isDeSignup=this._environment.COUNTRY_ISO_CODE===h.S.DE}shouldAddFlatCopy(u){if(u){const T=parseInt(u,10);return!(!T&&0!==T)}return!1}static{this.\u0275fac=function(T){return new(T||v)(d.\u0275\u0275directiveInject(r.ENVIRONMENT))}}static{this.\u0275cmp=d.\u0275\u0275defineComponent({type:v,selectors:[["twa-onboarding-address"]],inputs:{address:"address",inline:"inline",isForeignAddressEnabled:"isForeignAddressEnabled",countryName:"countryName"},standalone:!1,decls:1,vars:1,consts:[[3,"ngClass"]],template:function(T,$){1&T&&d.\u0275\u0275conditionalCreate(0,U,3,4,"section",0),2&T&&d.\u0275\u0275conditional($.address?0:-1)},dependencies:[O.NgClass],styles:['[_nghost-%COMP%] p[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{display:block}[_nghost-%COMP%] p.inline[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:after{content:", "}[_nghost-%COMP%] p.inline[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:last-child:after{content:none}']})}}return v})()},76235(Z,R,l){l.d(R,{p:()=>e});var r=l(44238),h=l(38003),d=l(81395),O=l(82490),o=l(29604);const k=["*"];let e=(()=>{class P{constructor(D){this._stepperService=D,this.variant=h.Me.Primary,this.isMobile=!1,this.click=new r.EventEmitter,this.canGoNext$=this._stepperService.canGoNext$,this.loading$=this._stepperService.loading$,this.loadingText="Loading",this.eButtonSizeTypes=h.IE}ngOnInit(){if(this.click.observed)throw new Error("Use [action] instead of (click)")}goNext(){this._stepperService.goNext(this.action)}static{this.\u0275fac=function(C){return new(C||P)(r.\u0275\u0275directiveInject(d.y))}}static{this.\u0275cmp=r.\u0275\u0275defineComponent({type:P,selectors:[["twa-onboarding-stepper-next-button"]],inputs:{variant:"variant",action:"action",isMobile:"isMobile"},outputs:{click:"click"},standalone:!1,ngContentSelectors:k,decls:5,vars:10,consts:[["tide-button","","type","submit",3,"click","variant","disabled","loading","loadingText"]],template:function(C,S){1&C&&(r.\u0275\u0275projectionDef(),r.\u0275\u0275elementStart(0,"button",0),r.\u0275\u0275pipe(1,"async"),r.\u0275\u0275pipe(2,"async"),r.\u0275\u0275pipe(3,"async"),r.\u0275\u0275listener("click",function(){return S.goNext()}),r.\u0275\u0275projection(4),r.\u0275\u0275elementEnd()),2&C&&r.\u0275\u0275property("variant",S.variant)("disabled",!1===r.\u0275\u0275pipeBind1(1,4,S.canGoNext$)||r.\u0275\u0275pipeBind1(2,6,S.loading$))("loading",r.\u0275\u0275pipeBind1(3,8,S.loading$))("loadingText",S.loadingText)},dependencies:[O.o,o.AsyncPipe],styles:['[_ngcontent-%COMP%]:root{--color-background-standard: #f0f4ff;--color-background-inverse: #ffffff;--color-background-subtler: #f3f3f4;--color-background-brand: #1929d6;--color-background-brand-bolder: #00106a;--color-background-brand-subtle: #c5d8ff;--color-background-brand-subtler: #dde8ff;--color-background-disabled: #ececee;--color-background-subtle: #cdcfd5;--color-background-success-subtle: #ecfdf3;--color-background-success-bold: #75e0a7;--color-background-success-bolder: #089b5d;--color-background-warning-subtle: #fffaeb;--color-background-warning-bold: #ffc142;--color-background-warning-bolder: #4e1d09;--color-background-error-subtle: #fef3f2;--color-background-error-bold: #d92d20;--color-background-bold: #9095a2;--color-background-boldest: #1d1f2a;--color-decorative-orange-subtle: #feead5;--color-decorative-blue-subtle: #cfecfd;--color-decorative-purple-subtle: #eee0ff;--color-decorative-teal-subtle: #e8f9fd;--color-decorative-magenta-subtle: #ffe6e6;--color-decorative-brown-subtle: #f7ecdd;--color-decorative-yellow-subtle: #fdf4ce;--color-decorative-green-subtle: #dcfae6;--color-decorative-yellow: #fedf89;--color-decorative-green: #a9efc5;--color-decorative-orange: #f9af82;--color-decorative-blue: #70b8f3;--color-decorative-purple: #bc87ff;--color-decorative-teal: #56cccc;--color-decorative-magenta: #f582a0;--color-decorative-brown: #d2ae90;--color-decorative-yellow-bold: #dc6803;--color-decorative-green-bold: #17b26a;--color-decorative-orange-bold: #a92518;--color-decorative-blue-bold: #0b409a;--color-decorative-purple-bold: #5a11b0;
1--color-decorative-teal-bold: #007d8c;--color-decorative-magenta-bold: #8d0450;--color-border-standard: #cdcfd5;--color-border-subtle: #e4e4e7;--color-border-brand: #1929d6;--color-border-disabled: #ececee;--color-border-bold: #9095a2;--color-border-success-subtle: #75e0a7;--color-border-success-bold: #089b5d;--color-border-warning-subtle: #ffc142;--color-border-error-subtle: #fa887f;--color-border-warning-bold: #dc6803;--color-border-error-bold: #f04438;--color-border-focus: #5273ff;--color-border-brand-subtler: #c5d8ff;--color-border-brand-subtlest: #dde8ff;--color-border-brand-subtle: #a4bcff;--color-border-brand-bolder: #00106a;--color-text-standard: #282b3a;--color-text-secondary: #494d5f;--color-text-tertiary: #6f7281;--color-text-brand-bold: #00106a;--color-text-brand: #1929d6;--color-text-disabled: #a6aab4;--color-text-success-subtle: #75e0a7;--color-text-success-bold: #067647;--color-text-success-bolder: #067647;--color-text-warning-subtle: #ffc142;--color-text-warning-bold: #b54708;--color-text-warning-bolder: #b54708;--color-text-error-subtle: #fa887f;--color-text-error-bold: #d92d20;--color-text-error-bolder: #6e0b32;--color-text-inverse: #ffffff;--color-text-brand-subtle: #6b91fd;--color-icon-standard: #616371;--color-icon-secondary: #9095a2;--color-icon-brand: #1929d6;--color-icon-brand-bold: #00106a;--color-icon-brand-subtle: #6b91fd;--color-icon-success-subtle: #75e0a7;--color-icon-success-bold: #089b5d;--color-icon-warning-subtle: #ffc142;--color-icon-warning-bold: #b54708;--color-icon-warning-bolder: #b54708;--color-icon-error-subtle: #fa887f;--color-icon-error-bold: #d92d20;--color-icon-orange-subtle: #ec5c31;--color-icon-blue-subtle: #176fd7;--color-icon-purple-subtle: #9346ed;--color-icon-teal-subtle: #01a3ae;--color-icon-magenta-subtle: #cd1d5c;--color-icon-brown-subtle: #6b4533;--color-icon-error-bolder: #d92d20;--color-icon-orange-bold: #a92518;--color-icon-blue-bold: #0b409a;--color-icon-teal-bold: #007d8c;--color-icon-magenta-bold: #8d0450;--color-icon-purple-bold: #5a11b0;--color-icon-brown-bold: #4d2319;--color-icon-inverse: #ffffff;--color-icon-disabled: #6f7281;--color-link-standard: #1929d6;--color-link-active: #00106a;--color-link-hover: #0c008a;--color-link-visited: #1209ae;--color-opacity-0: rgba(#1d1f2a, .2)}[_ngcontent-%COMP%]:root{--color-indigo-100: #f0f4ff;--color-indigo-200: #dde8ff;--color-indigo-300: #c5d8ff;--color-indigo-400: #a4bcff;--color-indigo-500: #6b91fd;--color-indigo-600: #5273ff;--color-indigo-700: #3746ec;--color-indigo-800: #1929d6;--color-indigo-900: #1209ae;--color-indigo-1000: #0c008a;--color-indigo-1100: #00106a;--color-indigo-1200: #030047;--color-grey-0: #ffffff;--color-grey-100: #f3f3f4;--color-grey-200: #ececee;--color-grey-300: #e4e4e7;--color-grey-400: #cdcfd5;--color-grey-500: #a6aab4;--color-grey-600: #9095a2;--color-grey-700: #6f7281;--color-grey-800: #616371;--color-grey-900: #494d5f;--color-grey-1000: #31333f;--color-grey-1100: #282b3a;--color-grey-1200: #1d1f2a;--color-green-100: #ecfdf3;--color-green-200: #dcfae6;--color-green-250: #d2fad1;--color-green-300: #a9efc5;--color-green-400: #75e0a7;--color-green-450: #74e489;--color-green-500: #47cd89;--color-green-600: #17b26a;--color-green-700: #089b5d;--color-green-800: #067647;--color-green-900: #044e2e;--color-green-1000: #053321;--color-green-1100: #055040;--color-red-50: #fde3d7;--color-red-100: #fef3f2;--color-red-200: #fee4e2;--color-red-300: #fecdca;--color-red-350: #f79788;--color-red-400: #fda7a0;--color-red-500: #fa887f;--color-red-600: #f97066;--color-red-700: #f04438;--color-red-800: #d92d20;--color-red-900: #b42318;--color-red-1000: #912018;--color-red-1100: #6e0b32;--color-yellow-100: #fffaeb;--color-yellow-200: #fdf4ce;--color-yellow-300: #fedf89;--color-yellow-400: #ffc142;--color-yellow-450: #e8a011;--color-yellow-500: #fdb022;--color-yellow-600: #f79009;--color-yellow-700: #dc6803;--color-yellow-800: #b54708;--color-yellow-900: #93370d;--color-yellow-1000: #4e1d09;--color-yellow-1100: #6f3c03;--color-purple-50: #eee0ff;--color-purple-100: #dabaff;--color-purple-300: #bc87ff;--color-purple-500: #9346ed;--color-purple-700: #5a11b0;
1--color-purple-900: #33087e;--color-blue-100: #cfecfd;--color-blue-300: #70b8f3;--color-blue-500: #176fd7;--color-blue-700: #0b409a;--color-blue-900: #041f67;--color-teal-50: #e8f9fd;--color-teal-100: #9de2e5;--color-teal-300: #56cccc;--color-teal-500: #01a3ae;--color-teal-700: #007d8c;--color-teal-900: #02576a;--color-orange-100: #feead5;--color-orange-300: #f9af82;--color-orange-500: #ec5c31;--color-orange-700: #a92518;--color-orange-900: #71090f;--color-magenta-50: #ffe6e6;--color-magenta-100: #ffbdcc;--color-magenta-300: #f582a0;--color-magenta-500: #cd1d5c;--color-magenta-700: #8d0450;--color-magenta-900: #62054b;--color-brown-100: #f7ecdd;--color-brown-300: #d2ae90;--color-brown-500: #6b4533;--color-brown-700: #4d2319;--color-brown-900: #330c09;--color-slate-100: #f1f1f3;--color-slate-200: #e6e6ea;--color-slate-300: #dedee3;--color-slate-400: #ced0d6;--color-slate-500: #aeb2bc;--color-slate-600: #9da0a8;--color-slate-700: #7f838a;--color-slate-800: #45484f;--color-slate-900: #393b41;--color-slate-1000: #2b2c31;--color-slate-1100: #18191b;--color-slate-1200: #0f0f0f;--color-slate-000: #ffffff}.light-theme[_ngcontent-%COMP%]{--color-background-standard: #f0f4ff;--color-background-inverse: #ffffff;--color-background-subtler: #f3f3f4;--color-background-brand: #1929d6;--color-background-brand-bolder: #00106a;--color-background-brand-subtle: #c5d8ff;--color-background-brand-subtler: #dde8ff;--color-background-disabled: #ececee;--color-background-subtle: #cdcfd5;--color-background-success-subtle: #ecfdf3;--color-background-success-bold: #75e0a7;--color-background-success-bolder: #089b5d;--color-background-warning-subtle: #fffaeb;--color-background-warning-bold: #ffc142;--color-background-warning-bolder: #4e1d09;--color-background-error-subtle: #fef3f2;--color-background-error-bold: #d92d20;--color-background-bold: #9095a2;--color-background-boldest: #1d1f2a;--color-decorative-orange-subtle: #feead5;--color-decorative-blue-subtle: #cfecfd;--color-decorative-purple-subtle: #eee0ff;--color-decorative-teal-subtle: #e8f9fd;--color-decorative-magenta-subtle: #ffe6e6;--color-decorative-brown-subtle: #f7ecdd;--color-decorative-yellow-subtle: #fdf4ce;--color-decorative-green-subtle: #dcfae6;--color-decorative-yellow: #fedf89;--color-decorative-green: #a9efc5;--color-decorative-orange: #f9af82;--color-decorative-blue: #70b8f3;--color-decorative-purple: #bc87ff;--color-decorative-teal: #56cccc;--color-decorative-magenta: #f582a0;--color-decorative-brown: #d2ae90;--color-decorative-yellow-bold: #dc6803;--color-decorative-green-bold: #17b26a;--color-decorative-orange-bold: #a92518;--color-decorative-blue-bold: #0b409a;--color-decorative-purple-bold: #5a11b0;--color-decorative-teal-bold: #007d8c;--color-decorative-magenta-bold: #8d0450;--color-border-standard: #cdcfd5;--color-border-subtle: #e4e4e7;--color-border-brand: #1929d6;--color-border-disabled: #ececee;--color-border-bold: #9095a2;--color-border-success-subtle: #75e0a7;--color-border-success-bold: #089b5d;--color-border-warning-subtle: #ffc142;--color-border-error-subtle: #fa887f;--color-border-warning-bold: #dc6803;--color-border-error-bold: #f04438;--color-border-focus: #5273ff;--color-border-brand-subtler: #c5d8ff;--color-border-brand-subtlest: #dde8ff;--color-border-brand-subtle: #a4bcff;--color-border-brand-bolder: #00106a;--color-text-standard: #282b3a;--color-text-secondary: #494d5f;--color-text-tertiary: #6f7281;--color-text-brand-bold: #00106a;--color-text-brand: #1929d6;--color-text-disabled: #a6aab4;--color-text-success-subtle: #75e0a7;--color-text-success-bold: #067647;--color-text-success-bolder: #067647;--color-text-warning-subtle: #ffc142;--color-text-warning-bold: #b54708;--color-text-warning-bolder: #b54708;--color-text-error-subtle: #fa887f;--color-text-error-bold: #d92d20;--color-text-error-bolder: #6e0b32;--color-text-inverse: #ffffff;--color-text-brand-subtle: #6b91fd;--color-icon-standard: #616371;--color-icon-secondary: #9095a2;--color-icon-brand: #1929d6;--color-icon-brand-bold: #00106a;--color-icon-brand-subtle: #6b91fd;--color-icon-success-subtle: #75e0a7;--color-icon-success-bold: #089b5d;--color-icon-warning-subtle: #ffc142;--color-icon-warning-bold: #b54708;--color-icon-warning-bolder: #b54708;--color-icon-error-subtle: #fa887f;--color-icon-error-bold: #d92d20;--color-icon-orange-subtle: #ec5c31;--color-icon-blue-subtle: #176fd7;--color-icon-purple-subtle: #9346ed;--color-icon-teal-subtle: #01a3ae;--color-icon-magenta-subtle: #cd1d5c;--color-icon-brown-subtle: #6b4533;--color-icon-error-bolder: #d92d20;--color-icon-orange-bold: #a92518;--color-icon-blue-bold: #0b409a;--color-icon-teal-bold: #007d8c;--color-icon-magenta-bold: #8d0450;--color-icon-purple-bold: #5a11b0;
1--color-icon-brown-bold: #4d2319;--color-icon-inverse: #ffffff;--color-icon-disabled: #6f7281;--color-link-standard: #1929d6;--color-link-active: #00106a;--color-link-hover: #0c008a;--color-link-visited: #1209ae;--color-opacity-0: rgba(#1d1f2a, .2)}.mat-mdc-tooltip[_ngcontent-%COMP%]{--mat-tooltip-supporting-text-font: Figtree;--mat-tooltip-supporting-text-weight: 525;--mat-tooltip-supporting-text-size: .75rem;--mat-tooltip-supporting-text-line-height: 1rem}.mat-mdc-tooltip-panel[_ngcontent-%COMP%] .mdc-tooltip[_ngcontent-%COMP%]{position:relative;overflow:initial}.mat-mdc-tooltip-panel[_ngcontent-%COMP%] .mdc-tooltip[_ngcontent-%COMP%]:after{width:1rem;height:.75rem;content:url(\'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 9"><path d="M5.20759 1.02937C5.6079 0.509358 6.3921 0.509358 6.79241 1.02937L11.6888 7.39001C12.195 8.04757 11.7263 9 10.8964 9H1.10358C0.273737 9 -0.195026 8.04757 0.311171 7.39001L5.20759 1.02937Z" fill="%2300106a"/></svg>\');display:inline-block;position:absolute}.dark-theme[_ngcontent-%COMP%] .mat-mdc-tooltip-panel[_ngcontent-%COMP%] .mdc-tooltip[_ngcontent-%COMP%]:after{content:url(\'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 9"><path d="M5.20759 1.02937C5.6079 0.509358 6.3921 0.509358 6.79241 1.02937L11.6888 7.39001C12.195 8.04757 11.7263 9 10.8964 9H1.10358C0.273737 9 -0.195026 8.04757 0.311171 7.39001L5.20759 1.02937Z" fill="%236B91FD"/></svg>\')}.mat-mdc-tooltip-panel-below[_ngcontent-%COMP%] .mdc-tooltip[_ngcontent-%COMP%]:after{top:-.75rem;right:calc(50% - .5rem);transform:rotate(0)}.mat-mdc-tooltip-panel-above[_ngcontent-%COMP%] .mdc-tooltip[_ngcontent-%COMP%]:after{bottom:-.75rem;right:calc(50% - .5rem);transform:rotate(180deg)}.mat-mdc-tooltip-panel-right[_ngcontent-%COMP%] .mdc-tooltip[_ngcontent-%COMP%]:after{left:-.875rem;top:calc(50% - .375rem);transform:rotate(270deg)}.mat-mdc-tooltip-panel-left[_ngcontent-%COMP%] .mdc-tooltip[_ngcontent-%COMP%]:after{right:-.875rem;top:calc(50% - .375rem);transform:rotate(90deg)}.mat-mdc-tooltip.mat-mdc-tooltip[_ngcontent-%COMP%] .mdc-tooltip__surface[_ngcontent-%COMP%]{background-color:var(--color-background-brand-bolder);padding:.5rem .75rem;border-radius:.5rem}@font-face{font-family:Material Icons;font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/materialicons/v92/flUhRq6tzZclQEJ-Vdg-IuiaDsNcIhQ8tQ.eot);src:local("Material Icons"),local("MaterialIcons-Regular"),url(https://fonts.gstatic.com/s/materialicons/v92/flUhRq6tzZclQEJ-Vdg-IuiaDsNcIhQ8tQ.woff2) format("woff2"),url(https://fonts.gstatic.com/s/materialicons/v92/flUhRq6tzZclQEJ-Vdg-IuiaDsNcIhQ8tQ.woff) format("woff"),url(https://fonts.gstatic.com/s/materialicons/v92/flUhRq6tzZclQEJ-Vdg-IuiaDsNcIhQ8tQ.ttf) format("truetype");font-display:block}.tide-currency-sub-unit[_ngcontent-%COMP%]{font-size:.78125rem}.balance-currency-sub-unit[_ngcontent-%COMP%]{font-size:1.3671875rem}[_nghost-%COMP%] button[_ngcontent-%COMP%]{min-width:10rem}@media screen and (max-width:959px){[_nghost-%COMP%] button[_ngcontent-%COMP%]{width:100%}}']})}}return P})()}}]);
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.