1"use strict";(self.webpackChunkbiztogo=self.webpackChunkbiztogo||[]).push([[3739],{98330:function(e,t,n){n.r(t),n.d(t,{RegistrationComponent:function(){return J},RegistrationModule:function(){return q}});var o=n(38583),i=n(3679),a=n(51095),r=n(7539),s=n(98295),l=n(76627),c=n(83166),d=n(82613),p=n(11436),g=n(57391),u=n(85673),m=n(66077),f=n(38554),h=n(73500),b=n(82755),v=n(27605),x=n(37716),y=n(9359);const w=()=>new y.x,k=new x.InjectionToken("registrationData");function C(e,t){1&e&&x.\u0275\u0275elementContainer(0)}function O(e,t){if(1&e&&(x.\u0275\u0275elementStart(0,"p"),x.\u0275\u0275elementContainerStart(1),x.\u0275\u0275i18n(2,6),x.\u0275\u0275elementContainerEnd(),x.\u0275\u0275elementStart(3,"span",7),x.\u0275\u0275text(4),x.\u0275\u0275elementEnd(),x.\u0275\u0275elementEnd(),x.\u0275\u0275elementStart(5,"p"),x.\u0275\u0275elementContainerStart(6),x.\u0275\u0275i18n(7,8),x.\u0275\u0275elementContainerEnd(),x.\u0275\u0275elementStart(8,"span",7),x.\u0275\u0275text(9),x.\u0275\u0275elementEnd(),x.\u0275\u0275elementEnd()),2&e){const e=t.username,n=t.password;x.\u0275\u0275advance(4),x.\u0275\u0275textInterpolate1("\xa0 ",e,""),x.\u0275\u0275advance(5),x.\u0275\u0275textInterpolate1("\xa0 ",n,"")}}let j=(()=>{class e extends v.fS{constructor(e,t,n){super(),this.checkSubject=e,this.appTitle=t,this.registrationData$=n}}return e.\u0275fac=function(t){return new(t||e)(x.\u0275\u0275directiveInject(m.UC),x.\u0275\u0275directiveInject(f.XIs),x.\u0275\u0275directiveInject(k))},e.\u0275cmp=x.\u0275\u0275defineComponent({type:e,selectors:[["registration-success-page"]],features:[x.\u0275\u0275ProvidersFeature([{provide:m.UC,useFactory:m.Cm}]),x.\u0275\u0275InheritDefinitionFeature],decls:10,vars:5,consts:function(){let e,t,n,o,i;return e="Thanks",t="You have successfully registered on the portal " + "\ufffd0\ufffd" + ".",n="Write it down or change it in your personal account to a new one.",o="Your phone:",i="Your password:",[[1,"heading"],e,t,[4,"ngTemplateOutlet","ngTemplateOutletContext"],n,["successRef",""],o,[1,"reg-info_hidden"],i]},template:function(e,t){if(1&e&&(x.\u0275\u0275elementStart(0,"div",0),x.\u0275\u0275i18n(1,1),x.\u0275\u0275elementEnd(),x.\u0275\u0275elementStart(2,"p"),x.\u0275\u0275i18n(3,2),x.\u0275\u0275elementEnd(),x.\u0275\u0275template(4,C,1,0,"ng-container",3),x.\u0275\u0275pipe(5,"async"),x.\u0275\u0275elementStart(6,"p"),x.\u0275\u0275i18n(7,4),x.\u0275\u0275elementEnd(),x.\u0275\u0275template(8,O,10,2,"ng-template",null,5,x.\u0275\u0275templateRefExtractor)),2&e){const e=x.\u0275\u0275reference(9);x.\u0275\u0275advance(3),x.\u0275\u0275i18nExp(t.appTitle),x.\u0275\u0275i18nApply(3),x.\u0275\u0275advance(1),x.\u0275\u0275property("ngTemplateOutlet",e)("ngTemplateOutletContext",x.\u0275\u0275pipeBind1(5,3,t.registrationData$))}},directives:[o.tP],pipes:[o.Ov],styles:[".heading[_ngcontent-%COMP%]{color:#2a2d70;font-size:24px;line-height:32px;font-weight:bold;text-align:center;margin-bottom:30px}.reg-info_hidden[_ngcontent-%COMP%]{color:#25d9f3;font-weight:bold}"],changeDetection:0}),e})(),z=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=x.\u0275\u0275defineNgModule({type:e}),e.\u0275inj=x.\u0275\u0275defineInjector({imports:[[[o.ez],[h.X0.forChild({types:[{name:"field-registration-success-page",component:j}]})]]]}),e})();var P=n(20011);const I=(e,t=[])=>({templateOptions:{label:e},fieldGroup:t}),$=(e=[])=>({fieldGroupClassName:"display-grid",fieldGroup:e});var R=n(73773);const T=(e=[])=>({fieldGroup:e});var _=n(13785),M=n(37748),S=n(59663),E=n(84945),F=n(54121),N=n(61528),D=n(33568),G=n(25220),V=n(22373),L=n(74970),X=n(98168),A=n(61541),K=n(27969),Y=n(49867);const B=new x.InjectionToken("buttonRegistrate",{providedIn:"root",factory:()=>{return e=(0,x.inject)(U),()=>({type:"mat-button-pending",templateOptions:{appearance:"flat",color:"accent",label:"Continue",events:e,attributes:{"data-test":"next"}}});var e}}),U=new x.InjectionToken("buttonRegistrate",{providedIn:"root",factory:()=>{return e=(0,x.inject)(f.D7y),t=(0,x.inject)(f.Cme),({injector:n,click$:o,data:i,disable:a,enable:r})=>{const s=n.get(m.Lf),l=n.get(m.St),c=n.get(k,new y.x),d=(0,V.p)(n,G.M);
1return o.pipe((0,L.h)(()=>s.isAllValid()),(0,X.b)(()=>{l.setPending(),a()}),(0,A.c)((0,E.of)(void 0).pipe((0,K.U)(()=>i.field.model),(0,N.w)(e),(0,X.b)(e=>{null==d||d.reachGoal("registration"),c.next(e)}),(0,Y.g)(500),(0,N.w)(t),(0,X.b)(()=>{s.next()}),(0,D.K)(()=>(0,E.of)(void 0)))),(0,X.b)(()=>{l.setNone(),r()}))};var e,t}}),H=new x.InjectionToken("registrationFieldConfig",{providedIn:"root",factory:()=>{return e=(0,x.inject)(_.Kx),t=(0,x.inject)(_.xK),n=new F.X(!0),o=(0,x.inject)(B),i=(0,x.inject)(P.Vk),[{key:"source",defaultValue:S.s.self},{type:"field-multi-step",templateOptions:{linear:!0},fieldGroup:[I("Registration",[$([e(),t(),(0,_.lt)()]),(0,R.d)([(0,_._r)(),(0,M.zF)((0,N.w)(e=>i.sendDataRegistrationLid(e).pipe((0,D.K)(()=>(0,E.of)(void 0)))))])]),T([$([(0,_.BV)(),(0,_.CV)(),(0,_.V2)(["userProfile","country"],"f16 grid-column-wide"),(0,_.Aj)()]),(0,_.ob)(),(0,R.d)([(0,M.Fv)(),(0,M.zF)((0,N.w)(e=>i.sendDataRegistrationLid(e).pipe((0,D.K)(()=>(0,E.of)(void 0)))))])]),T([$([(0,_.OO)(),(0,_.Bj)({expressionProperties:{"templateOptions.disabled":e=>"manual"!==e.passwordType}},{isHidden:n}),(0,_.DX)({expressionProperties:{"templateOptions.disabled":e=>"manual"!==e.passwordType}},{isHidden:n}),(0,_.yP)()]),(0,R.d)([(0,M.Fv)(),o()])]),T([{type:"field-registration-success-page"},{template:`<div class="heading"><span>${"Start work as:"}</span></div>`},(0,R.d)([{type:"mat-stroked-router-link",className:"grow",templateOptions:{color:"accent",label:"Continue as self-employed",routerLink:["/catalog/create/category"],attributes:{"data-test":"as-self-employed"}}},{type:"mat-flat-router-link",className:"grow",templateOptions:{color:"accent",label:"Register a company",routerLink:["/registration-company"],attributes:{"data-test":"as-company"}}}])])]}];var e,t,n,o,i}});let J=(()=>{class e{constructor(e,t){var n;this.fields=e,this.activatedRoute=t,this.model={},this.form=new i.cw({}),this.options={};const o=null===(n=this.activatedRoute.snapshot.data)||void 0===n?void 0:n.source;o&&(this.model.source=o)}}return e.\u0275fac=function(t){return new(t||e)(x.\u0275\u0275directiveInject(H),x.\u0275\u0275directiveInject(g.gz))},e.\u0275cmp=x.\u0275\u0275defineComponent({type:e,selectors:[["b2go-registration"]],features:[x.\u0275\u0275ProvidersFeature([{provide:k,useFactory:w},m.IX])],decls:2,vars:5,consts:[[1,"reg-block",3,"formGroup"],["data-test","registration",3,"model","fields","options","form"]],template:function(e,t){1&e&&(x.\u0275\u0275elementStart(0,"form",0),x.\u0275\u0275element(1,"formly-form",1),x.\u0275\u0275elementEnd()),2&e&&(x.\u0275\u0275property("formGroup",t.form),x.\u0275\u0275advance(1),x.\u0275\u0275property("model",t.model)("fields",t.fields)("options",t.options)("form",t.form))},directives:[i._Y,i.JL,i.sg,h.T7],styles:["@-webkit-keyframes ghost-lines{0%{background-position:-100px}40%{background-position:40vw}to{background-position:60vw}}@-webkit-keyframes ghost-avatar{0%{background-position:-32px}40%,to{background-position:208px}}@keyframes ghost-lines{0%{background-position:-100px}40%{background-position:40vw}to{background-position:60vw}}@keyframes ghost-avatar{0%{background-position:-32px}40%,to{background-position:208px}}[_nghost-%COMP%]{display:flex;justify-content:center;align-items:center;flex:.7 0 100%}.reg-block[_ngcontent-%COMP%]{background:#fff;width:100%;max-width:765px;margin:auto;padding:40px}[_nghost-%COMP%] .grow{flex:1 0 auto}[_nghost-%COMP%] .heading{color:#2a2d70;font-size:24px;line-height:32px;font-weight:bold;text-align:center;margin-bottom:30px}[_nghost-%COMP%] .display-grid{display:grid;grid-gap:20px;gap:20px;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));margin-bottom:20px}[_nghost-%COMP%] .grid-column-next{grid-column:1}[_nghost-%COMP%] .grid-column-wide{grid-column:1/-1}[_nghost-%COMP%] .grid-radio-group mat-radio-group{grid-area:auto/1/1 span/-1;display:grid;grid-gap:16px;gap:16px}@media (min-width: 768px){[_nghost-%COMP%] .grid-radio-group mat-radio-group{grid-template-columns:repeat(2,1fr)}}"],changeDetection:0}),e})(),q=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=x.\u0275\u0275defineNgModule({type:e}),e.\u0275inj=x.\u0275\u0275defineInjector({imports:[[[o.ez,i.UX,g.Bz,i.u5],[f.Aw$],[b.o,m.rG,m.R8,m.NJ,m.NY,m.mf,m.zs,m.p$,m.sz,m.OV,m.bc,m.k,m.tQ,m.Ye,m.aP,m.Kq,m.ZV,m.hS,z,m.NC,h.X0.forRoot({extras:{checkExpressionOn:"modelChange",resetFieldOnHide:!0},extensions:[(0,m.Rl)()]})],[u.Lbg,f.nyr],[c.c,s.lN,a.ot,r.p9,d.Fk,l.Ps,r.p9,p.AV],[u.Jx1]]]}),e})()}}]);
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.