1import{e as b}from"./chunk-B63DOPR3.js";import"./chunk-KJ2DTZTE.js";import"./chunk-EKXRV2PZ.js";import"./chunk-IJVUT4FL.js";import"./chunk-XJNXF36J.js";import"./chunk-OQWTUUQ3.js";import"./chunk-BYUXZABT.js";import"./chunk-CSKO464Y.js";import{A as B,z as G}from"./chunk-RFZ65DFT.js";import"./chunk-ZAELU3GP.js";import"./chunk-KCBWTIVH.js";import"./chunk-Q7LOV5U2.js";import"./chunk-V7OSM6MA.js";import"./chunk-DIZWDXBB.js";import{Q as N,R as x}from"./chunk-Q4MTVQC2.js";import"./chunk-RRAYDVNW.js";import{Fc as R,Na as g,Nd as O,qe as U,re as y,uc as I}from"./chunk-WGWIBZ2L.js";import{$b as m,Ib as s,Oc as i,Oe as v,Pc as n,Tb as e,Ub as o,Vb as _,db as E,dc as S,hb as t,pc as r,qc as l,rc as C,tb as A,td as h,wd as f,ya as p}from"./chunk-6LP6WHZQ.js";import"./chunk-5KTCK5IS.js";var X=(()=>{class u{#t;#i;#e;#n;constructor(){this.#t=p(v),this.#i=p(O),this.#e=p(R),this.#n=p(b),this.resourceItems=g,this.contactUs=this.#n.contactUsUtilityItem(),this.contactUsUrl=this.getContactUsUrl(this.contactUs)}redirectToBusinessAccount(){this.#t.navigate([this.#e.getPathByAppRouteFeatureModule(I.CreateCashCustomer)])}redirectToIndividualAccount(){this.#t.navigate([this.#e.getPathByAppRouteFeatureModule(I.CreateB2CCustomer)])}goToLogin(){this.#i.logOut()}getContactUsUrl(a){return a?this.isMenuItemDataWithRouterUrl(a.data)?a.data.routerLink:a.data.url:""}isMenuItemDataWithRouterUrl(a){return a.routerLink!==void 0}static{this.\u0275fac=function(d){return new(d||u)}}static{this.\u0275cmp=A({type:u,selectors:[["ng-component"]],decls:39,vars:35,consts:[[1,"flex","flex-column","justify-content-center","align-items-center"],[1,"mt-4","border-round-sm"],["data-test-id","selectAccountType.header",1,"text-center","p-0"],[1,"line-height-normal"],["data-test-id","selectAccountType.description",1,"sm:text-center","px-2","pt-4"],[1,"p-button","p-button-link","p-0",3,"target","href"],[1,"grid","col-8","mt-3","justify-content-center","align-items-center"],[1,"col-md-6","lg:col-6","mt-3","text-center","flex","justify-content-center","flex-column"],["width","40","height","36","ngSrc","/assets/img/business_account.svg","alt","business_account"],["styleClass"," mt-2 font-normal w-full lg:w-auto h-auto","data-test-id","selectAccountType.redirect-business-account",3,"onClick","outlined"],["width","44","height","32","ngSrc","/assets/img/individual_account.svg","alt","individual_account"],["id","redirect-individual-account-button","styleClass"," mt-2 font-normal w-full lg:w-auto text-center h-auto","data-test-id","selectAccountType.redirect-individual-account",3,"onClick","outlined"],[1,"text-center","mt-4"],["styleClass","pt-0 font-normal pb-4","data-test-id","selectAccountType.redirect-to-login",3,"onClick","label","link"]],template:function(d,c){d&1&&(e(0,"section")(1,"div",0)(2,"div",1)(3,"h1",2),r(4),i(5,"transloco"),o(),e(6,"div",3)(7,"div",4),r(8),i(9,"transloco"),e(10,"a",5),r(11),i(12,"transloco"),o()()()(),e(13,"div",6)(14,"p-card",7),_(15,"img",8),e(16,"h2"),r(17),i(18,"transloco"),o(),e(19,"div"),r(20),i(21,"transloco"),o(),e(22,"p-button",9),m("onClick",function(){return c.redirectToBusinessAccount()}),r(23),i(24,"transloco"),o()(),e(25,"p-card",7),_(26,"img",10),e(27,"h2"),r(28),i(29,"transloco"),o(),e(30,"div"),r(31),i(32,"transloco"),o(),e(33,"p-button",11),m("onClick",function(){return c.redirectToIndividualAccount()}),r(34),i(35,"transloco"),o()()(),e(36,"div",12)(37,"p-button",13),i(38,"transloco"),m("onClick",function(){return c.goToLogin()}),o()()()()),d&2&&(t(4),C(" ",n(5,15,"REGISTRATION_CHOICE_PAGE.CREATE_NEW_ACCOUNT")," "),t(4),C(" ",n(9,17,"REGISTRATION_CHOICE_PAGE.NOT_SURE_ACCOUNT_TYPE")," "),t(2),S("href",c.contactUsUrl,E),s("target",c.contactUs==null||c.contactUs.data==null?null:c.contactUs.data.target),t(),C(" ",n(12,19,"REGISTRATION_CHOICE_PAGE.CREATE_ACCOUNT_CONTACT_US")," "),t(6),l(n(18,21,"REGISTRATION_CHOICE_PAGE.BUSINESS_ACCOUNT")),t(3),l(n(21,23,"REGISTRATION_CHOICE_PAGE.SHOP_FOR_BUSINESS")),t(2),s("outlined",!0),t(),l(n(24,25,"REGISTRATION_CHOICE_PAGE.CREATE_BUSINESS_ACCOUNT")),t(5),l(n(29,27,"REGISTRATION_CHOICE_PAGE.INDIVIDUAL_ACCOUNT")),t(3),l(n(32,29,"REGISTRATION_CHOICE_PAGE.SHOP_FOR_YOURSELF")),t(2),s("outlined",!0),t(),l(n(35,31,"REGISTRATION_CHOICE_PAGE.CREATE_INDIVIDUAL_ACCOUNT")),t(3),s("label",n(38,33,"REGISTRATION_CHOICE_PAGE.RETURN_LOGIN"))("link",!0))},dependencies:[B,G,h,x,N,y,U,f],encapsulation:2,changeDetection:0})}}return u})();
1export{X as AccountTypeComponent};
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.