PageSourceSearch

https://polona.pl/chunk-HV2TSQJ4.js

js polona.pl collected 2026-09-24 08:55:50 UTC 47,551 bytes, 2 lines download raw bytes

1import{a as Ct,c as M,f as yt,g as It}from"./chunk-H4NSM3JV.js";import{b as te}from"./chunk-OMW3JWRT.js";import{a as bt}from"./chunk-YJN4GHJR.js";import{f as ee}from"./chunk-FA7RFLIP.js";import{a as Et}from"./chunk-F5V4KQRJ.js";import"./chunk-DJ4MWB7K.js";import{a as ye}from"./chunk-SDEXWJFZ.js";import"./chunk-TFHR46GW.js";import"./chunk-C2OZ5VIJ.js";import"./chunk-YHGV6QH6.js";import"./chunk-Z2CDZQYV.js";import{a as xt}from"./chunk-UMML3JAR.js";import"./chunk-RROIVT22.js";import{Ic as St,Jc as q,dc as ht,w as tt}from"./chunk-BBL5L3AG.js";import{$b as Ce,Ab as _t,Ba as ut,Hb as Ee,M as ke,Q as mt,R as dt,_a as ft,_b as C,j as ot,k as at,t as Z,tb as Oe,u as z,v as Q,yb as vt,za as gt}from"./chunk-AKU5GAYX.js";import{M as H,O as pt}from"./chunk-JZDUZIAB.js";import"./chunk-EQ6XWJD4.js";import{i as et}from"./chunk-L2Z7W5UZ.js";import"./chunk-Z6A5YTGQ.js";import{Ba as _e,Ea as he,M as it,Na as Se,P as k,Pa as xe,Qb as lt,T as J,W as L,cb as st,fb as Be,ma as O,pa as ue,qa as fe,xa as ve,yb as be,zb as ct}from"./chunk-LJKVQBIQ.js";import{c as Ze,d as W,e as Y,j as I}from"./chunk-2QBA4IEN.js";import{B as Qe,Bd as oe,Cb as o,D as Ae,Db as a,Eb as g,Fb as A,Gb as N,H as qe,Hb as ce,Ib as y,Lc as pe,Mc as me,Nb as h,Nc as de,Ob as c,Qc as Ye,T as $e,Ta as Xe,Ua as Ne,Xb as T,Y as Ke,Ya as r,Yb as d,Zb as E,Zc as Je,_b as S,b as We,bb as b,e as re,ea as K,eb as G,f as He,fb as j,fc as le,ia as R,ib as X,kb as u,na as P,oa as U,ob as B,oc as l,p as ze,pc as p,qb as n,ra as F,tc as w,u as ne,vd as rt,xa as f,ya as v,yd as nt,zd as ge}from"./chunk-ETTKQ4R2.js";import{a as Me,b as Ge,i as je}from"./chunk-66YHNWRR.js";function Ut(t,m){if(t&1&&(o(0,"div",3)(1,"div",4),g(2,"bn-icon",5),o(3,"h3",6),d(4),l(5,"translate"),a(),o(6,"p",7),d(7),l(8,"translate"),a()()()),t&2){let e=c();r(2),n("svg",e.EBnIcon.WARNING_ROUND),r(2),E(p(5,3,e.translatePrefix+"subtitle")),r(3),E(p(8,5,e.translatePrefix+"info"))}}function Gt(t,m){if(t&1){let e=y();o(0,"bn-button",8),h("clickEvent",function(){f(e);let s=c();return v(s.close())}),a()}t&2&&n("cssButton","btn-primary")("value","components.bn-button.close")}var Le=(()=>{class t extends Q{constructor(e){super(e),this.bnModalService=e,this.translatePrefix="register.account-linked-info-modal."}static{this.\u0275fac=function(i){return new(i||t)(b(Z))}}static{this.\u0275cmp=G({type:t,selectors:[["ng-component"]],standalone:!1,features:[X],decls:5,vars:5,consts:[["bodyTemplate",""],["footer",""],[3,"textHeader","templateBody","templateFooter","cssHeader","cssFooter"],[1,"text-center"],[1,"mb-4"],["height","66","width","66","cssIcon","",3,"svg"],["tabindex","0",1,"mb-3"],["tabindex","0"],[3,"clickEvent","cssButton","value"]],template:function(i,s){if(i&1&&(g(0,"bn-modal",2),u(1,Ut,9,7,"ng-template",null,0,w)(3,Gt,1,2,"ng-template",null,1,w)),i&2){let x=T(2),V=T(4);n("textHeader",s.translatePrefix+"title")("templateBody",x)("templateFooter",V)("cssHeader","modal-header col-12 ps-3")("cssFooter","modal-footer pt-0 col-12 d-flex justify-content-start")}},dependencies:[Q,z,H,W],encapsulation:2})}}return t})();var wt=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=j({type:t})}static{this.\u0275inj=U({imports:[te,ee,Y.forChild(),q]})}}return t})();var _=(function(t){return t.EMAIL="email",t.NAME="name",t.PASSWORD="password",t.REPASSWORD="repassword",t.CONSENT="consent",t.REGULATION="regulation",t.OTHER_SERVICE_REGULATION="otherServiceRegulation",t.OTHER_SERVICE_CONSENT="otherServiceConsent",t.NEWSLETTER="newsletter",t})(_||{});var jt="Email is not on the approved list.",Ie=(()=>{class t{get emailControl(){return this.form.get(_.EMAIL)}get nameControl(){return this.form.get(_.NAME)}get passwordControl(){return this.form.get(_.PASSWORD)}get repasswordControl(){return this.form.get(_.REPASSWORD)}get consentControl(){return this.form.get(_.CONSENT)}get regulationControl(){return this.form.get(_.REGULATION)}get otherServiceRegulationControl(){return this.form.get(_.OTHER_SERVICE_REGULATION)}get otherServiceConsentControl(){return this.form.get(_.OTHER_SERVICE_CONSENT)}get newsletterControl(){return this.form.get(_.NEWSLETTER)}get step1Invalid(){return this.emailControl.invalid||this.nameControl.invalid||this.passwordControl.invalid||this.repasswordControl.invalid||this.form.hasError("fieldsMatch")}get step2Invalid(){return this.consentControl.invalid||this.regulationControl.invalid}constructor(e){this.fb=e,this.recaptchaSendAgain=!1,this.buildForm()}setOtherServiceRegulation(e){this.otherServiceRegulation=e,this.otherServiceRegulationControl.setValidators([O.requiredTrue]),this.otherServiceRegulationControl.updateValueAndValidity()}setOtherServiceConsent(e){this.otherServiceConsent=e,this.otherServiceConsentControl.setValidators([O.requiredTrue]),this.otherServiceConsentControl.updateValueAndValidity()}setPasswordPolicy(e){this.passwordControl.clearValidators(),this.passwordControl.setValidators([O.required,...Object.keys(e).map(i=>
1Be[i]?Be[i](e[i]):null).filter(i=>i)]),this.passwordControl.updateValueAndValidity()}catchResponseErrors(e,i){if([406,409].indexOf(e.status)!==-1){let s;i?s=this.form:s=this.emailControl,e.status===409?s.setErrors({emailAlreadyInUse:!0}):e.error?.message===jt?s.setErrors({emailNotWhitelisted:!0}):s.setErrors({accountNotVerified:!0})}else e.status===400?this.passwordControl.setErrors({backendInvalidPassword:!0}):e.status===417?this.form.setErrors({invalidCaptcha:!0}):this.form.setErrors({serverError:!0})}buildForm(){this.form=this.fb.group({[_.EMAIL]:["",[O.required,be()]],[_.NAME]:["",[ct(),O.maxLength(100)]],[_.PASSWORD]:["",[O.required]],[_.REPASSWORD]:["",[O.required]],[_.CONSENT]:[!1,[O.requiredTrue]],[_.REGULATION]:[!1,[O.requiredTrue]],[_.OTHER_SERVICE_REGULATION]:[!1],[_.OTHER_SERVICE_CONSENT]:[!1],[_.NEWSLETTER]:[!1]},{validators:st(_.PASSWORD,_.REPASSWORD)})}static{this.\u0275fac=function(i){return new(i||t)(F(Se))}}static{this.\u0275prov=P({token:t,factory:t.\u0275fac})}}return t})();var ae="login-gov-register",Te=(()=>{class t{constructor(e,i,s,x,V){this.usersCommandService=e,this.usersQueryService=i,this.consentQueryService=s,this.regulationQueryService=x,this.usersSocialProviderQueryService=V}getConfig(){return this.usersQueryService.usersConfig()}getGoogleAuthUrl(){return this.usersSocialProviderQueryService.getGoogleAuthUrl(this.instanceType)}getFacebookAuthUrl(){return this.usersSocialProviderQueryService.getFacebookAuthUrl(this.instanceType)}getLoginGovAuthUrl(){let e=ke;return`${e.url}/realms/${e.realm}/broker/login.gov.pl/endpoint/auth-info?client_id=${ke.clientId}&nonce=${ae}&redirect_uri=${location.href}`}getGoogleUserData(e){return this.usersSocialProviderQueryService.redirectUriForGoogleUserInfo({service:this.instanceType,code:e}).pipe(R(i=>this.socialMediaUserData=i),ne(Boolean))}getFacebookUserData(e){return this.usersSocialProviderQueryService.redirectUriForFacebookUserInfo({service:this.instanceType,code:e}).pipe(R(i=>this.socialMediaUserData=i),ne(Boolean))}getLoginGovUserData(){return this.usersQueryService.getSocialBrokerAuthInfo().pipe(R(e=>this.socialMediaUserData=e),K(()=>this.getSocialBrokerAuthStatus()),ne(()=>!!this.socialMediaUserData))}getSocialBrokerAuthStatus(){return this.usersQueryService.getSocialBrokerAuthStatus({socialId:this.socialMediaUserData?.principalSubject,providerId:this.socialMediaUserData?.providerId}).pipe(ne(e=>this.isLoginGovPeselLinked=e==="linked"))}getConsent(e){return this.consentQueryService.getTheNewestValidConsentForUserRegistrationByType({registerServiceType:e||Oe.POLONA})}getRegulation(e){return this.regulationQueryService.getTheNewestValidRegulationForUserRegistrationByType({registerServiceType:e||Oe.POLONA})}createUser(e){return this.usersCommandService.createUser({body:e,service:this.instanceType})}sendConfirmationLink(e){return this.usersCommandService.sendConfirmationCode({body:e,service:this.instanceType})}verifyConfirmationCode(e){return this.usersCommandService.verifyConfirmationCode({body:e,service:this.instanceType})}clear(){this.instanceType=null,this.socialMediaUserData=null}static{this.\u0275fac=function(i){return new(i||t)(F(mt),F(dt),F(ut),F(gt),F(ft))}}static{this.\u0275prov=P({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var $=(function(t){return t.WrongCode="wrong-code",t.ActiveAccount="active-account",t.ServerError="server-error",t})($||{});var se=(function(t){return t.EMAIL="email",t})(se||{}),we=(()=>{class t{get emailControl(){return this.form.get(se.EMAIL)}constructor(e){this.formBuilder=e,this.form=this.formBuilder.group({[se.EMAIL]:[null,[O.required,be(),O.maxLength(255)]]})}static{this.\u0275fac=function(i){return new(i||t)(F(Se))}}static{this.\u0275prov=P({token:t,factory:t.\u0275fac})}}return t})();function Qt(t,m){if(t&1&&(g(0,"p",3),o(1,"form",4),g(2,"bn-input",5),o(3,"div",6),g(4,"bn-icon",7),o(5,"p",8),d(6),l(7,"translate"),a()()()),t&2){let e=c();n("translate",e.translationPath+"subtitle"),r(),n("formGroup",e.socialMediaEmailModalFormService.form),r(),n("labelValue",e.translationPath+"label")("formControlName",e.ESocialMediaEmailModalForm.EMAIL)("attrName",e.ESocialMediaEmailModalForm.EMAIL),r(2),n("svg",e.EBnIcon.WARNING_ROUND),r(2),E(p(7,7,e.translationPath+"info"))}}function qt(t,m){if(t&1){let e=y();o(0,"bn-button",9),h("clickEvent",function(){f(e);let s=c();return v(s.confirm())}),a(),o(1,"bn-button",10),h("clickEvent",function(){f(e);let s=c();return v(s.close())}),a()}if(t&2){let e=c();n("cssButton","btn-primary")("attrDisabled",e.socialMediaEmailModalFormService.form.invali
1d)("value","components.bn-button.confirm"),r(),n("cssButton","btn-secondary")("value","components.bn-button.cancel")}}var Mt=(()=>{class t extends Q{get ESocialMediaEmailModalForm(){return se}constructor(e,i){super(i),this.socialMediaEmailModalFormService=e,this.bnModalService=i,this.translationPath="register.social-media-email-modal."}confirm(){this.confirm$.next(this.socialMediaEmailModalFormService.emailControl.value)}close(){this.confirm$.next(""),super.close()}static{this.\u0275fac=function(i){return new(i||t)(b(we),b(Z))}}static{this.\u0275cmp=G({type:t,selectors:[["ng-component"]],standalone:!1,features:[le([we]),X],decls:5,vars:5,consts:[["bodyTemplate",""],["footer",""],[3,"textHeader","templateBody","templateFooter","cssHeader","cssFooter"],["tabIndex","0",1,"mb-4",3,"translate"],[3,"formGroup"],[3,"labelValue","formControlName","attrName"],[1,"d-flex","mb-3"],["height","14","width","14","cssIcon","",3,"svg"],["tabindex","0",1,"ps-2","text-start","fs-85"],[3,"clickEvent","cssButton","attrDisabled","value"],[3,"clickEvent","cssButton","value"]],template:function(i,s){if(i&1&&(g(0,"bn-modal",2),u(1,Qt,8,9,"ng-template",null,0,w)(3,qt,2,5,"ng-template",null,1,w)),i&2){let x=T(2),V=T(4);n("textHeader",s.translationPath+"title")("templateBody",x)("templateFooter",V)("cssHeader","modal-header col-12 ps-3")("cssFooter","modal-footer pt-0 col-12 d-flex justify-content-start")}},dependencies:[ve,ue,fe,_e,he,Q,z,Ee,Ze,H,W],encapsulation:2})}}return t})();var Ue=[{id:M.CREATION,active:!0,done:!1,disabled:!1,invalid:!1},{id:M.CONSENTS,active:!1,done:!1,disabled:!0,invalid:!1},{id:M.CONFIRMATION,active:!1,done:!1,disabled:!0,invalid:!1}];var At=(()=>{class t{constructor(){this._steps=new He(Ue),this._changeActiveStep=new re,this.steps$=this._steps.asObservable()}getChangeActiveStepSubject(){return this._changeActiveStep.asObservable()}setChangeActiveStepSubject(e){this._changeActiveStep.next(e)}get steps(){return this._steps.getValue()}set steps(e){this._steps.next(e)}get activeStep(){return this.steps.find(e=>e.active)||{}}updateStep(e){this.steps=this.steps.map(i=>i.id===e.id?Me({},e):i)}setActive(e){this.steps=this.steps.map(i=>Ge(Me({},i),{active:i.id===e,disabled:i.id===e?!1:i.disabled}))}getInvalid(){return!!this.steps.find(e=>e.invalid)}resetSteps(){this._changeActiveStep.complete(),this._changeActiveStep=new re,this.steps=[...et(Ue)]}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=P({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function Jt(t,m){t&1&&(o(0,"p",10),l(1,"translate"),d(2),l(3,"translate"),a()),t&2&&(B("aria-label",p(1,2,"register.verify.success.profile-created")),r(2),S(" ",p(3,4,"register.verify.success.profile-created")," "))}function Zt(t,m){t&1&&(o(0,"p",10),l(1,"translate"),d(2),l(3,"translate"),a()),t&2&&(B("aria-label",p(1,2,"register.verify.success.profile-created-pdn")),r(2),S(" ",p(3,4,"register.verify.success.profile-created-pdn")," "))}function ei(t,m){if(t&1){let e=y();o(0,"div",2)(1,"div",3),g(2,"bn-icon",4),o(3,"h3",5),l(4,"translate"),d(5),l(6,"translate"),a(),u(7,Jt,4,6,"p",6)(8,Zt,4,6,"p",6),o(9,"p"),l(10,"translate"),d(11),l(12,"translate"),a()(),o(13,"div",7)(14,"bn-button",8),h("clickEvent",function(){f(e);let s=c();return v(s.login())}),a(),g(15,"bn-button",9),a()()}if(t&2){let e=c();r(2),n("svg",e.EBnIcon.SUCCESSROUND),r(),B("aria-label",p(4,12,"register.verify.success.account-verified")),r(2),S(" ",p(6,14,"register.verify.success.account-verified")," "),r(2),n("ngIf",!e.registerDataService.instanceType),r(),n("ngIf",e.registerDataService.instanceType===e.EInstanceType.PDN),r(),B("aria-label",p(10,16,"register.verify.success.can-login")),r(2),S(" ",p(12,18,"register.verify.success.can-login")," "),r(3),n("cssButton","btn-primary mb-2 mb-md-0")("value","register.verify.success.login"),r(),n("routerLink",e.mainPage)("cssButton","btn-secondary ms-0 ms-md-3")("value","register.verify.success.main-page")}}function ti(t,m){t&1&&(A(0),o(1,"h3",5),l(2,"translate"),d(3),l(4,"translate"),a(),o(5,"p"),l(6,"translate"),d(7),l(8,"translate"),a(),N()),t&2&&(r(),B("aria-label",p(2,4,"register.verify.error.wrong-code.first")),r(2),S(" ",p(4,6,"register.verify.error.wrong-code.first")," "),r(2),B("aria-label",p(6,8,"register.verify.error.wrong-code.second")),r(2),S(" ",p(8,10,"register.verify.error.wrong-code.second")," "))}function ii(t,m){t&1&&(A(0),o(1,"h3",5),l(2,"translate"),d(3),l(4,"translate"),a(),o(5,"p"),l(6,"translate"),d(7),l(8,"translate"),a(),N()),t&2&&(r(),B("aria-label",p(2,4,"register.verify.error.active-account.first")),r(2),S(" ",p(4,6,"register.verify.error.active-account.first")," "),r(2),B("aria-label",p(6,8,"register.verify.error.active-account.second")),r(2),S(" ",p(8,10,"register.verify.error.active-account.second")," "))}function ri(t,m){t&1&&(A(0),o(1,"h3",5),l(2,"translate"),d(3),l(4,"translate"),a(),o(5,"p"),l(6,"translate"),d(7),l(8,"translate"),a(),N()),t&2&&(r(),B("aria-label",p(2,4,"register.verify.error.server-error.first")),r(2),S(" ",p(4,6,"register.verify.error.server-error.first")," "),r(2),B("aria-label",p(6,8,"register.verify.error.server-error.second")),r(2),S(" ",p(8,10,"register.verify.error.server-error.second")," "))}function ni(t,m){if(t&1){let e=y();o(0,"div",2)(1,"div",3),g(2,"bn-icon",4),A(3,11),u(4,ti,9,12,"ng-container",12)(5,ii,9,12,"ng-container",12)(6,ri,9,12,"ng-container",12),N(),a(),o(7,"div",7)(8,"bn-button",8),h("clickEvent",function(){f(e);let s=c();return v(s.login())}),a(),g(9,"bn-button",9),a()()}if(t&2){let e=c();r(2),n("svg",e.EBnIcon.FAIL_ROUND),r(),n("ngSwitch",e.error),r(),n("ngSwitchCase",e.EverifyError.WrongCode),r(),n("ngSwitchCase",e.EverifyError.ActiveAccount),r(),n("ngSwitchCase",e.EverifyError.ServerError),r(2),n("cssButton","btn-primary mb-2 mb-md-0")("value","register.verify.error.login"),r(),n("routerLink",e.mainPage)("cssButton","btn-secondary ms-0 ms-md-3")("value","register.verify.error.main-page")}}var Nt=(()=>{class t{get EBnIcon(){return J}get EverifyError(){return $}get EInstanceType(){return k}get mainPage(){return this.registerDataService.instanceType?I[this.registerDataService.instanceType]:I.POLONA}constructor(e,i){this.registerDataService=e,this.authService=i}login(){this.registerDataService.instanceType?this.authService.login({redirectUri:window.location.origin+I[this.registerDataService.instanceType]}):this.authService.login({redirectUri:window.location.origin+I.POLONA})}static{this.\u0275fac=function(i){return new(i||t)(b(Te),b(Ce))}}static{this.\u0275cmp=G({type:t,selectors:[["bn-verify"]],inputs:{error:"error"},standalone:!1,decls:3,vars:2,consts:[["errorTemplate",""],["class","d-flex flex-column h-100",4,"ngIf","ngIfElse"],[1,"d-flex","flex-column","h-100"],[1,"d-flex","flex-column","flex-fill","justify-content-center","pb-5"],["height","66","width","66","cssIcon","",3,"svg"],[1,"mt-3"],["class","mb-0",4,"ngIf"],[1,"text-start","bottom-buttons"],[3,"clickEvent","cssButton","value"],[3,"routerLink","cssButton","value"],[1,"mb-0"],[3,"ngSwitch"],[4,"ngSwitchCase"]],template:function(i,s){if(i&1&&u(0,ei,16,20,"div",1)(1,ni,10,10,"ng-template",null,0,w),i&2){let x=T(2);n("ngIf",!s.error)("ngIfElse",x)}},dependencies:[pe,me,de,H,ge,z,W],styles:["[_nghost-%COMP%]{height:inherit}"],changeDetection:0})}}return t})();function ai(t,m){if(t&1&&(o(0,"p",26),d(1),l(2,"translate"),a()),t&2){let e=c(2);r(),E(p(2,1,e.instanceName))}}function si(t,m){if(t&1){let e=y();o(0,"div",16)(1,"div",17),h("click",function(){f(e);let s=c();return v(s.goToMainPage())})("keyup.enter",function(){f(e);let s=c();return v(s.goToMainPage())}),g(2,"bn-icon",18),u(3,ai,3,3,"p",19),a(),o(4,"div",20)(5,"bn-steps",21),h("actionEvent",function(s){f(e);let x=c();return v(x.onActionEvent(s))}),a()(),g(6,"div",22),o(7,"div",23)(8,"span"),d(9),l(10,"translate"),a(),o(11,"bn-button",24),h("clickEvent",function(){f(e);let s=c();return v(s.login())}),a(),o(12,"a",25),d(13),l(14,"translate"),a()()()}if(t&2){let e=c();r(2),n("height",24)("svg",e.EBnIcon.POLONA_LOGO)("width",154),r(),n("ngIf",e.instanceName),r(2),n("steps",e.registerStateService.steps)("view",e.EStepsView.REGISTER),r(4),E(p(10,9,"register.sidebar.bottom-section")),r(3),n("href",e.skipLinkPath,Ne),r(),E(p(14,11,"register.step1.wcag"))}}function ci(t,m){t&1&&(o(0,"h1",30),d(1),l(2,"translate"),a()),t&2&&(r(),S(" ",p(2,1,"register.headers.create-account")," "))}function li(t,m){t&1&&(o(0,"h1",30),d(1),l(2,"translate"),a()),t&2&&(r(),S(" ",p(2,1,"register.headers.consents")," "))}function pi(t,m){if(t&1&&(A(0),d(1),l(2,"translate"),N()),t&2){let e=c(4);r(),E(p(2,1,"register.headers."+(e.verifyError?"verify-error":"verify-success")))}}function mi(t,m){t&1&&(A(0),d(1),l(2,"translate"),N()),t&2&&(r(),E(p(2,1,"register.headers.confirmation")))}function di(t,m){if(t&1&&(o(0,"h1",30),u(1,pi,3,3,"ng-container",31)(2,mi,3,3,"ng-container",31),a()),t&2){let e=c(3);r(),n("ngIf",e.verificationMode),r(),n("ngIf",!e.verificationMode)}}function gi(t,m){if(t&1&&(A(0,28),u(1,ci,3,3,"h1",29)(2,li,3,3,"h1",29)(3,di,3,2,"h1",29),N()),t&2){let e=c(2);n("ngSwitch",e.registerStateService.activeStep.id),r(),n("ngSwitchCase",e.ERegisterStep.CREATION),r(),n("ngSwitchCase",e.ERegisterStep.CONSENTS),r(),n("ngSwitchCase",e.ERegisterStep.CONFIRMATION)}}function ui(t,m){if(t&1&&u(0,gi,4,4,"ng-container",27),t&2){let e=c();n("ngIf",!e.verifyInProgress)}}function fi(t,m){if(t&1&&(o(0,"div",53)(1,"p"),d(2),l(3,"translate"),a()()),t&2){let e=c(4);r(2),E(p(3,1,"modal.identity-confirmation-required-warning."+e.govPlErrorMessage))}}function vi(t,m){t&1&&(o(0,"div",54),d(1),l(2,"translate"),a()),t&2&&(r(),S(" ",p(2,1,"validator.error.serverError")," "))}function _i(t,m){t&1&&(o(0,"div",54),d(1),l(2,"translate"),a()),t&2&&(r(),S(" ",p(2,1,"validator.error.invali
1dCaptcha")," "))}function hi(t,m){t&1&&(o(0,"div",54),d(1),l(2,"translate"),a()),t&2&&(r(),S(" ",p(2,1,"validator.error.emailAlreadyInUse")," "))}function Si(t,m){if(t&1){let e=y();o(0,"div",61)(1,"span",62),d(2),a(),o(3,"bn-button",50),h("clickEvent",function(){f(e);let s=c(5);return v(s.editSocialMediaEmail())}),a()()}if(t&2){let e=c(5);r(2),E(e.socialUser.email),r(),n("cssButton","btn btn-outline btn-sm")("value","register.step1.social-media-edit-email")}}function xi(t,m){if(t&1&&(A(0),o(1,"div",55)(2,"div",56),g(3,"img",57),l(4,"trustResourceUrl"),g(5,"bn-icon",58),a(),g(6,"span",59),l(7,"translate"),a(),u(8,Si,4,3,"div",60),N()),t&2){let e=c(4);r(3),n("src",p(4,5,e.socialUser.pictureUrl)||"/assets/icons/profile.svg",Ne)("alt",e.socialUser.email),r(2),n("svg",e.socialMediaIcon),r(),n("innerHTML",p(7,7,"register.step1.social-media-connected"),Xe),r(2),n("ngIf",!e.newSocialMediaEmail)}}function bi(t,m){if(t&1){let e=y();o(0,"div",44)(1,"bn-input",63),h("blurEvent",function(s){f(e);let x=c(4);return v(x.checkTypedEmailAsSocial(s))}),a()()}if(t&2){let e=c(4);r(),n("labelValue","register.step1.email.label")("formControlName",e.ERegisterForm.EMAIL)("attrName",e.ERegisterForm.EMAIL)("cssContainer",e.newSocialMediaEmail?"row mb-0":"row")}}function Ei(t,m){if(t&1&&(o(0,"div",64),g(1,"bn-icon",65),o(2,"p",66),d(3),l(4,"translate"),a()()),t&2){let e=c(4);r(),n("svg",e.EBnIcon.WARNING_ROUND),r(2),S(" ",p(4,2,"register.step1.social-media-email-changed")," ")}}function Ci(t,m){t&1&&(o(0,"div",67),d(1),l(2,"translate"),a()),t&2&&(r(),S(" ",p(2,1,"validator.error.fieldsMatch")," "))}function yi(t,m){if(t&1){let e=y();A(0),o(1,"div",68),d(2),l(3,"translate"),a(),o(4,"div",69)(5,"bn-button",70),h("clickEvent",function(){f(e);let s=c(4);return v(s.getSocialAuthUrl(s.socialMediaTypes.LOGIN_GOV_PL))}),a()(),N()}if(t&2){let e=c(4);r(2),E(p(3,7,"register.step1.register")),r(3),n("icon",e.EBnIcon.LOGIN_GOV_PL)("labelAndIcon",!0)("iconReversed",!0)("cssButton","btn-gov-pl px-0")("cssLabelIcon","label-gov-pl ms-2")("value","register.step1.login-gov-pl")}}function Ii(t,m){if(t&1){let e=y();o(0,"div",38),u(1,fi,4,3,"div",39),o(2,"div",40)(3,"p"),d(4),l(5,"translate"),a()(),u(6,vi,3,3,"div",41)(7,_i,3,3,"div",41)(8,hi,3,3,"div",41)(9,xi,9,9,"ng-container",31),o(10,"div",13),u(11,bi,2,4,"div",42)(12,Ei,5,4,"div",43),o(13,"div",44),g(14,"bn-input",45),a(),o(15,"div",44),g(16,"bn-input",46),a(),o(17,"div",44),g(18,"bn-input",46),u(19,Ci,3,3,"div",47),a(),u(20,yi,6,9,"ng-container",31),o(21,"div",48)(22,"bn-button",49),h("clickEvent",function(){f(e);let s=c(3);return v(s.nextStepAction())}),a(),o(23,"bn-button",50),h("clickEvent",function(){f(e);let s=c(3);return v(s.cancel())}),a()(),o(24,"div",51)(25,"span"),d(26),l(27,"translate"),a(),o(28,"bn-button",52),h("clickEvent",function(){f(e);let s=c(3);return v(s.login())}),a()()()()}if(t&2){let e=c(3),i=T(19),s=T(21);r(),n("ngIf",e.govPlErrorMessage),r(3),E(p(5,31,"register.step1.fill-fields")),r(2),n("ngIf",e.registerFormService.form.hasError("serverError")),r(),n("ngIf",e.registerFormService.form.hasError("invalidCaptcha")),r(),n("ngIf",e.registerFormService.form.hasError("emailAlreadyInUse")),r(),n("ngIf",e.socialUser&&e.socialMediaIcon),r(2),n("ngIf",!(e.socialUser&&!e.newSocialMediaEmail)),r(),n("ngIf",e.newSocialMediaEmail&&e.socialMediaType&&e.socialMediaType!==e.ELoginIdentityProvider.LOGIN_GOV_PL),r(2),n("labelValue","register.step1.name.label")("formControlName",e.ERegisterForm.NAME)("attrName",e.ERegisterForm.NAME),r(2),n("attrType",e.passwordType)("cssInput","col-12 position-relative")("labelValue","register.step1.password.label")("formControlName",e.ERegisterForm.PASSWORD)("templateInputIcon",i)("attrName",e.ERegisterForm.PASSWORD),r(2),n("attrType",e.repasswordType)("cssInput","col-12 position-relative")("labelValue","register.step1.repassword.label")("formControlName",e.ERegisterForm.REPASSWORD)("templateInputIcon",s)("attrName",e.ERegisterForm.REPASSWORD),r(),n("ngIf",e.registerFormService.form.hasError("fieldsMatch")),r(),n("ngIf",!e.socialUser&&!e.socialMediaIcon),r(2),n("attrDisabled",e.registerFormService.step1Invalid)("cssButton","btn-primary mb-md-0")("value","register.step1.next"),r(),n("cssButton","btn-secondary mx-sm-3 mt-3 mt-sm-0")("value","register.step1.cancel"),r(3),E(p(27,33,"register.sidebar.bottom-section"))}}function Ti(t,m){if(t&1&&(o(0,"div",72)(1,"div",33),g(2,"bn-checkbox",73),a()()),t&2){let e=c(4);r(2),n("formControlName",e.ERegisterForm.OTHER_SERVICE_REGULATION)("labelValue",e.registerFormService.otherServiceRegulation.content)("labelRequired",!0)}}function wi(t,m){if(t&1&&(o(0,"div",72)(1,"div",33),g(2,"bn-checkbox",73),a()()),t&2){let e=c(4);r(2),n("formControlName",e.ERegisterForm.OTHER_SERVICE_CONSENT)("labelValue",e.registerFormService.otherServiceConsent.content)("labelRequired",!0)}}function Ri(t,m){if(t&1){let e=y();o(0,"div",13)(1,"div",40)(2,"p",71),d(3),l(4,"translate"),a()(),o(5,"div",22)(6,"div",72)(7,"div",33),g(8,"bn-checkbox",73),a()(),o(9,"div",72)(10,"div",33),g(11,"bn-checkbox",73),a()(),u(12,Ti,3,3,"div",74)(13,wi,3,3,"div",74),o(14,"div",72)(15,"div",33),g(16,"bn-checkbox",73),a()()(),o(17,"div",75)(18,"bn-button",49),h("clickEvent",function(){f(e);let s=c(3);return v(s.submit())}),a(),o(19,"bn-button",50),h("clickEvent",function(){f(e);let s=c(3);return v(s.previousStepAction())}),a()()()}if(t&2){let e=c(3);r(3),E(p(4,17,"register.step2.read")),r(5),n("formControlName",e.ERegisterForm.CONSENT)("labelValue",e.registerFormService.consent.content)("labelRequired",!0),r(3),n("formControlName",e.ERegisterForm.REGULATION)("labelValue",e.registerFormService.regulation.content)("labelRequired",!0),r(),n("ngIf",e.registerFormService.otherServiceRegulation),r(),n("ngIf",e.registerFormService.otherServiceConsent),r(3),n("formControlName",e.ERegisterForm.NEWSLETTER)("labelValue","register.step2.newsletter")("labelRequired",!1),r(2),n("attrDisabled",e.registerFormService.form.invali
1d)("cssButton","btn-primary mb-2 mb-md-0")("value","register.step2.register"),r(),n("cssButton","btn-secondary mx-0 mx-md-3")("value","register.step2.back")}}function Mi(t,m){t&1&&(o(0,"h3",84),d(1),l(2,"translate"),a()),t&2&&(r(),S(" ",p(2,1,"register.step3.verified")," "))}function Ai(t,m){t&1&&(o(0,"h3",84),d(1),l(2,"translate"),a()),t&2&&(r(),S(" ",p(2,1,"register.step3.verified-pdn")," "))}function Ni(t,m){if(t&1&&(A(0),u(1,Mi,3,3,"h3",82)(2,Ai,3,3,"h3",82),o(3,"p",83),d(4),l(5,"translate"),a(),N()),t&2){let e=c(5);r(),n("ngIf",!e.registerDataService.instanceType),r(),n("ngIf",e.registerDataService.instanceType===e.EInstanceType.PDN),r(2),E(p(5,3,"register.step3.verified-details"))}}function Bi(t,m){if(t&1){let e=y();o(0,"h3",84),d(1),l(2,"translate"),a(),o(3,"p",83),d(4),l(5,"translate"),a(),o(6,"bn-button",85),h("clickEvent",function(){f(e);let s=c(5);return v(s.sendLinkAgain())}),a()}if(t&2){let e=c(5);r(),S(" ",p(2,5,"register.step3.link-send")," "),r(3),E(p(5,7,"register.step3.confirm")),r(2),n("value","register.step3.send-again")("attrAriaHidden",!0)("attrDisabled",e.blockSendingLinkAgain)}}function ki(t,m){if(t&1&&(A(0),o(1,"div",78),g(2,"bn-icon",79),u(3,Ni,6,5,"ng-container",77)(4,Bi,7,9,"ng-template",null,6,w),a(),o(6,"div",80),g(7,"bn-button",81),a(),N()),t&2){let e=T(5),i=c(4);r(2),n("svg",i.EBnIcon.SUCCESSROUND),r(),n("ngIf",i.socialUser&&!i.newSocialMediaEmail)("ngIfElse",e),r(4),n("routerLink",i.mainPage)("cssButton","btn-primary mb-2 mb-md-0")("value","register.step3.main-page")}}function Oi(t,m){if(t&1&&(o(0,"div",76),u(1,ki,8,6,"ng-container",77),a()),t&2){let e=c(3),i=T(23);r(),n("ngIf",!e.verificationMode)("ngIfElse",i)}}function Vi(t,m){if(t&1&&(A(0,28),u(1,Ii,29,35,"div",35)(2,Ri,20,19,"div",36)(3,Oi,2,2,"div",37),N()),t&2){let e=c(2);n("ngSwitch",e.registerStateService.activeStep.id),r(),n("ngSwitchCase",e.ERegisterStep.CREATION),r(),n("ngSwitchCase",e.ERegisterStep.CONSENTS),r(),n("ngSwitchCase",e.ERegisterStep.CONFIRMATION)}}function Di(t,m){if(t&1&&(o(0,"div",32)(1,"div",33)(2,"form",34),u(3,Vi,4,4,"ng-container",27),a()()()),t&2){let e=c();r(2),n("formGroup",e.registerFormService.form),r(),n("ngIf",!e.verifyInProgress)}}function Fi(t,m){if(t&1){let e=y();o(0,"bn-icon-button",86),h("clickEvent",function(){f(e);let s=c();return v(s.togglePassword())}),a()}if(t&2){let e=c();n("attrAriaLabel","register.step1.password.toggle-"+(e.passwordType===e.EInputType.TEXT?"on":"off"))("cssButton","icon-button password-input-button "+(e.passwordType===e.EInputType.TEXT?"active":""))("svg",e.passwordType===e.EInputType.TEXT?e.EBnIcon.EYE:e.EBnIcon.EYE_CROSSED)("svgColor",e.EColorPalette.cBrandSecondary)("svgHoverColor",e.EColorPalette.cBrandSecondary)("svgWidth",24)("svgHeight",24)}}function Li(t,m){if(t&1){let e=y();o(0,"bn-icon-button",86),h("clickEvent",function(){f(e);let s=c();return v(s.toggleRepassword())}),a()}if(t&2){let e=c();n("attrAriaLabel","register.step1.password.toggle-"+(e.repasswordType===e.EInputType.TEXT?"on":"off"))("cssButton","icon-button password-input-button "+(e.repasswordType===e.EInputType.TEXT?"active":""))("svg",e.repasswordType===e.EInputType.TEXT?e.EBnIcon.EYE:e.EBnIcon.EYE_CROSSED)("svgColor",e.EColorPalette.cBrandSecondary)("svgHoverColor",e.EColorPalette.cBrandSecondary)("svgWidth",24)("svgHeight",24)}}function Pi(t,m){if(t&1&&g(0,"bn-verify",87),t&2){let e=c();n("error",e.verifyError)}}var ie=(function(t){return t.AUTHN_FAILED="govpl_response_failed_authnfailed",t.REQUEST_DENIED="govpl_response_failed_requestdenied",t.UNKNOWN_PRINCIPAL="govpl_response_failed_unknownprincipal",t.REQUESTER_GENERAL="govpl_response_failed_requestergeneral",t.REQUESTER="govpl_response_failed_requester",t.NO_MESSAGE="govpl_response_failed_no_message",t.S3_FAILED="govpl_response_failed_s3_save_file",t})(ie||{}),Bt=(()=>{class t extends lt{get ELoginIdentityProvider(){return C}get EStepsView(){return Ct}get EInputType(){return L}get ERegisterStep(){return M}get ERegisterForm(){return _}get instanceName(){switch(this.registerDataService.instanceType){case k.PDB:return"logotype.pdb";case k.PDN:return"logotype.pdn";case k.PDW:return"logotype.pdw";default:return""}}get mainPage(){return this.registerDataService.instanceType?I[this.registerDataService.instanceType]:I.POLONA}get socialUser(){return this.socialMediaType?this.registerDataService.socialMediaUserData:null}set socialUser(e){this.registerDataService.socialMediaUserData=e}constructor(e,i,s,x,V,Re,Vt,Dt,Ft,Lt){super(),this.registerFormService=e,this.registerStateService=i,this.registerDataService=s,this.authService=x,this.bnSpinnerService=V,this.route=Re,this.recaptchaV3Service=Vt,this.bnModalService=Dt,this.router=Ft,this.bnNotificationService=Lt,this.blockSendingLinkAgain=!1,this.sendAgainClicks=0,this.showPassword=!1,this.showRePassword=!1,this.showChangeEmailModal=!1,this.emailToVerify=!1,this.passwordType=L.PASSWORD,this.repasswordType=L.PASSWORD,this.socialMediaTypes=C,this.verificationMode=!1,this.verifyInProgress=!0,this.newSocialMediaEmail=!1,this.socialMediaEmailChanged$=new re,this.subscription=new We,this.govPlResponseFails=[ie.AUTHN_FAILED,ie.REQUEST_DENIED,ie.UNKNOWN_PRINCIPAL,ie.REQUESTER_GENERAL,ie.REQUESTER]}ngOnInit(){this.registerDataService.clear(),this.getChangeActiveStep();
1let e=this.route.snapshot.queryParams;this.skipLinkPath=`${this.router.url}#skipToRegister`,e.service&&e.service in k&&(this.registerDataService.instanceType=e.service),((e.google||e.facebook)&&e.code||e.nonce===ae&&e.auth_info_success==="ok")&&(this.socialCode=e.code,this.socialMediaType=e.google?C.GOOGLE:e.facebook?C.FACEBOOK:e.nonce===ae?C.LOGIN_GOV_PL:null),e.nonce===ae&&this.govPlResponseFails.includes(e.identity_error)&&(this.govPlErrorMessage=e.identity_error,this.socialMediaType=null,this.socialUser=null),this.socialMediaType&&this.subscription.add(this.getSocialMediaData().subscribe(()=>{},()=>{this.socialMediaType=null,this.socialUser=null})),e.authCode?(this.verificationMode=!0,this.bnSpinnerService.showMask(),this.registerStateService.setChangeActiveStepSubject(M.CONFIRMATION),this.verifyCode(e.authCode)):(this.verifyInProgress=!1,this.subscription.add(this.subscribeEmailChanges()),this.subscription.add(this.subscribeConfig())),this.resetRouterParams()}login(){this.registerDataService.instanceType?this.authService.login({redirectUri:window.location.origin+I[this.registerDataService.instanceType]}):this.authService.login({redirectUri:window.location.origin+I.POLONA})}goToMainPage(){let e;switch(this.authService.activeProfile.instanceType){case k.READER:e=[I.POLONA];break;case k.PDN:case k.SCIENTIST:e=[I.PDN];break;case k.PDW:e=[I.PDW];break;case k.PDB:e=[I.PDB];break;case k.ADM:e=[I.ADM];break;default:e=[I.POLONA];break}this.router.navigate(e)}nextStepAction(){this.registerFormService.form.setErrors({serverError:null}),this.registerFormService.form.updateValueAndValidity(),this.registerStateService.setChangeActiveStepSubject(this.registerStateService.activeStep.id+1)}previousStepAction(){this.registerStateService.setChangeActiveStepSubject(this.registerStateService.activeStep.id-1)}updateStep(e=!1){let i=!1;switch(this.registerStateService.activeStep.id){case M.CREATION:i=this.registerFormService.step1Invalid;break;case M.CONSENTS:i=this.registerFormService.step2Invalid;break}e?(this.registerStateService.updateStep({id:M.CREATION,active:!1,done:!0,invalid:!1,disabled:!0}),this.registerStateService.updateStep({id:M.CONSENTS,active:!1,done:!0,invalid:!1,disabled:!0}),this.registerStateService.updateStep({id:M.CONFIRMATION,active:!0,done:!0,invalid:!1,disabled:!1})):this.registerStateService.updateStep({id:this.registerStateService.activeStep.id,active:!1,done:!i,invalid:i,disabled:!1})}onActionEvent(e){this.registerStateService.setChangeActiveStepSubject(e.id)}cancel(){this.router.navigate([I.POLONA])}getSocialAuthUrl(e){return je(this,null,function*(){let i;switch(e){case C.GOOGLE:i=yield this.registerDataService.getGoogleAuthUrl().toPromise();break;case C.FACEBOOK:i=yield this.registerDataService.getFacebookAuthUrl().toPromise();break;case C.LOGIN_GOV_PL:i=this.registerDataService.getLoginGovAuthUrl();break;default:i=null;break}this.redirectToAuthUrl(i)})}redirectToAuthUrl(e){e&&window.location.replace(e)}togglePassword(){this.passwordType===L.PASSWORD?this.passwordType=L.TEXT:this.passwordType=L.PASSWORD}toggleRepassword(){this.repasswordType===L.PASSWORD?this.repasswordType=L.TEXT:this.repasswordType=L.PASSWORD}editSocialMediaEmail(){this.bnModalService.open(Mt,{confirm$:this.socialMediaEmailChanged$}),this.subscription.add(this.socialMediaEmailChanged$.pipe(Ke(),qe(e=>!!e),R(e=>{this.registerFormService.emailControl.setValue(e),this.newSocialMediaEmail=!0,this.bnModalService.close()})).subscribe())}checkTypedEmailAsSocial(e){this.socialUser&&e.target.value===this.socialUser.email&&(this.newSocialMediaEmail=!1)}submit(){this.bnSpinnerService.showMask(),this.subscription.add(this.recaptchaV3Service.execute("register").pipe(K(e=>{let i=this.registerFormService.form.getRawValue(),s={email:i.email.trim(),username:i.name.trim(),password:i.password,captcha:{response:e,from:"site",version:"V3"},consents:{[this.registerFormService.consent.id]:this.registerFormService.consentControl.value,[this.registerFormService.otherServiceConsent?.id]:this.registerFormService.otherServiceConsent?this.registerFormService.otherServiceConsentControl.value:void 0},newsletterAcceptance:this.registerFormService.newsletterControl.value,regulations:{[this.registerFormService.regulation.id]:this.registerFormService.regulationControl.value,[this.registerFormService.otherServiceRegulation?.id]:this.registerFormService.otherServiceRegulation?this.registerFormService.otherServiceRegulationControl.value:void 0},socialAccount:this.socialMediaType?{providerId:this.socialMediaType,socialAccountName:`${this.socialMediaType}
1.${this.getSocialAccountId()}`,socialAccountId:this.getSocialAccountId()}:void 0};return Ae(()=>this.socialMediaType===C.LOGIN_GOV_PL,this.registerDataService.getSocialBrokerAuthStatus().pipe(K(x=>Ae(()=>x,ze(null).pipe(R(()=>{this.bnModalService.open(Le,{}),this.socialMediaType=null})),this.registerDataService.createUser(s)))),this.registerDataService.createUser(s))})).subscribe(()=>{this.blockSendingLinkAgain=!0,this.bnSpinnerService.hideMask(),setTimeout(()=>{this.blockSendingLinkAgain=!1},3e4),this.registerStateService.setChangeActiveStepSubject(M.CONFIRMATION)},e=>{this.bnSpinnerService.hideMask(),this.registerStateService.setChangeActiveStepSubject(M.CREATION),setTimeout(()=>{this.registerFormService.catchResponseErrors(e,this.socialMediaType&&!this.newSocialMediaEmail)})}))}sendLinkAgain(){this.blockSendingLinkAgain=!0;let e=this.registerFormService.form.getRawValue();this.bnSpinnerService.showMask(),this.subscription.add(this.recaptchaV3Service.execute("sendVerifyLinkAgain").pipe(K(i=>this.registerDataService.sendConfirmationLink({loginOrEmail:e.email.trim(),captcha:this.registerFormService.recaptchaSendAgain?{response:i}:void 0}).pipe(R(()=>{this.sendAgainClicks++,this.sendAgainClicks===3&&(this.registerFormService.recaptchaSendAgain=!0),this.bnSpinnerService.hideMask(),this.bnNotificationService.addNotification(it.SUCCESS,"register.step3.link-send-again")}),$e(3e4),R(()=>{this.blockSendingLinkAgain=!1})))).subscribe())}getSocialAccountId(){switch(this.socialMediaType){case C.FACEBOOK:return this.socialUser.facebookId;case C.GOOGLE:return this.socialUser.googleId;case C.LOGIN_GOV_PL:return this.socialUser.principalSubject;default:return null}}getSocialMediaData(){let e;switch(this.socialMediaType){case C.FACEBOOK:e=()=>this.registerDataService.getFacebookUserData(this.socialCode);break;case C.GOOGLE:e=()=>this.registerDataService.getGoogleUserData(this.socialCode);break;case C.LOGIN_GOV_PL:e=()=>this.registerDataService.getLoginGovUserData();break}return e().pipe(R(()=>{switch(this.socialUser.email?this.registerFormService.emailControl.setValue(this.socialUser.email):this.newSocialMediaEmail=!0,this.registerDataService.isLoginGovPeselLinked&&(this.bnModalService.open(Le,{}),this.socialMediaType=null),this.socialMediaType){case C.FACEBOOK:this.socialMediaIcon=J.FACEBOOK_B;break;case C.GOOGLE:this.socialMediaIcon=J.GOOGLE_CIRCLE,this.registerFormService.nameControl.patchValue(`${this.socialUser.firstName} ${this.socialUser.lastName}`);break;case C.LOGIN_GOV_PL:this.socialMediaIcon=J.LOGIN_GOV_PL_CIRCLE,this.registerFormService.nameControl.patchValue(`${this.socialUser.firstName} ${this.socialUser.lastName}`);break}}))}verifyCode(e){this.subscription.add(this.registerDataService.verifyConfirmationCode({authCode:e}).subscribe(()=>{this.verifyError=null,this.verifyInProgress=!1,this.bnSpinnerService.hideMask()},i=>{i.status===400?this.verifyError=$.WrongCode:i.status===409?this.verifyError=$.ActiveAccount:this.verifyError=$.ServerError,this.verifyInProgress=!1,this.bnSpinnerService.hideMask()}))}getChangeActiveStep(){this.subscription.add(this.registerStateService.getChangeActiveStepSubject().subscribe(e=>{e===M.CONFIRMATION?this.updateStep(!0):this.updateStep(),this.registerStateService.setActive(e)}))}subscribeEmailChanges(){let e=this.registerFormService.nameControl,i="";this.subscription.add(this.registerFormService.emailControl.valueChanges.subscribe(s=>{let x=e.value,V=s.split("@")[0].replace(/\./g," ");(e.untouched||!x||x===i)&&(e.markAsUntouched(),e.setValue(V),i=V)}))}subscribeConfig(){let e=[this.registerDataService.getConfig().pipe(R(i=>this.registerFormService.setPasswordPolicy(i.passwordPolicy))),this.registerDataService.getConsent().pipe(R(i=>this.registerFormService.consent=i)),this.registerDataService.getRegulation().pipe(R(i=>this.registerFormService.regulation=i))];this.registerDataService.instanceType&&(e.push(this.registerDataService.getRegulation(this.registerDataService.instanceType).pipe(R(i=>this.registerFormService.setOtherServiceRegulation(i)))),e.push(this.registerDataService.getConsent(this.registerDataService.instanceType).pipe(R(i=>this.registerFormService.setOtherServiceConsent(i))))),Qe(e).subscribe()}resetRouterParams(){let e={};this.router.navigate([],{relativeTo:this.route,queryParams:e,queryParamsHandling:""})}ngOnDestroy(){this.registerStateService.resetSteps(),this.registerDataService.instanceType=void 0,this.subscription.unsubscribe()}static{this.\u0275fac=function(i){return new(i||t)(b(Ie),b(At),b(Te),b(Ce),b(at),b(rt),b(ht),b(Z),b(nt),b(ot))}}static{this.\u0275cmp=G({type:t,selectors:[["bn-register"]],standalone:!1,features:[le([Ie]),X],decls:24,vars:7,consts:[["templateSideBox",""],["templateHeader",""],["templateBody",""],["templatePasswordIcon",""],["templateRepasswordIcon",""],["verificationTemplate",""],["verifyEmail",""],[1,"d-flex","justify-content-center","align-items-start","align-items-md-center","register-container"],[3,"fullScreen"],[1,"row","register-form-container"],[1,"col-12","col-md-4","p-0"],[3,"ngTemplateOutlet"],[1,"col-12","col-md-8","px-0"],[1,"d-flex","flex-column","h-100"],[1,"d-flex","align-items-center","justify-content-center","justify-content-md-start","container-border","header","p-md-3","px-1"],[1,"flex-fill","m-0","p-3","register-form-body"],[1,"d-flex","flex-column","h-100","sidebox"],["tabindex","0",1,"top-section","d-flex","align-items-center","p-4",3,"click","keyup.enter"],[3,"height","svg","width"],["class","logotype",4,"ngIf"],[1,"mx-md-2"],[3,"actionEvent","steps","view"],[1,"flex-fill"],[1,"bottom-section","d-none","d-md-flex","flex-column","p-3"],["cssButton","btn-link fw-bold p-0","cssLabel","m-0","value","register.sidebar.login",3,"clickEvent"],[1,"skipToRegister",3,"href"],[1,"logotype"],[3,"ngSwitch",4,"ngIf"],[3,"ngSwitch"],["class","mb-0",4,"ngSwitchCase"],[1,"mb-0"],[4,"ngIf"],[1,"row","h-100"],[1,"col-12"],[1,"h-100",3,"formGroup"],["class","d-flex flex-column text-center text-md-start h-100",4,"ngSwitchCase"],["class","d-flex flex-column h-100",4,"ngSwitchCase"],["class","d-flex flex-column h-100 text-center",4,"ngSwitchCase"],[1,"d-flex","flex-column","text-center","text-md-start","h-100"],["class","mb-3 text-danger fw-bold",4,"ngIf"],[1,"mb-3"],["class","error-message mb-3",4,"ngIf"],["class","text-start",4,"ngIf"],["class","d-flex mb-3",4,"ngIf"],[1,"text-start"],[3,"labelValue","formControlName","attrName"],[3,"attrType","cssInput","labelValue","formControlName","templateInputIcon","attrName"],["class","error-message mt-n3 mb-3",4,"ngIf"],[1,"mt-4","bottom-buttons","text-start"],[3,"clickEvent","attrDisabled","cssButton","value"],[3,"clickEvent","cssButton","value"],[1,"d-block","d-md-none","mt-4"],["cssButton","btn-link fw-bold d-block my-2 ms-auto me-auto","cssLabel","m-0","value","register.sidebar.login",3,"clickEvent"],[1,"mb-3","text-danger","fw-bold"],[1,"error-message","mb-3"],[1,"d-flex","flex-column","align-items-center","flex-md-row","mb-5"],[1,"social-media-avatar","mb-3","mb-md-0","me-md-3"],[1,"avatar",3,"src","alt"],["height","26","width","26","cssIcon","social-media-type",3,"svg"],[1,"flex-fill",3,"innerHTML"],["class","d-flex justify-content-between mb-4",4,"ngIf"],[1,"d-flex","justify-content-between","mb-4"],[1,"fw-bold"],[1,"ut-input-email",3,"blurEvent","labelValue","formControlName","attrName","cssContainer"],[1,"d-flex","mb-3"],["height","14","
1width","14","cssIcon","",3,"svg"],[1,"mt-1","ps-2","text-start","fs-85"],[1,"error-message","mt-n3","mb-3"],[1,"mb-1","text-start"],["id","skipToRegister",1,"flex-fill","d-flex","flex-column","d-md-block","align-items-start"],[3,"clickEvent","icon","labelAndIcon","iconReversed","cssButton","cssLabelIcon","value"],[1,"text-center","text-md-start"],[1,"row"],[3,"formControlName","labelValue","labelRequired"],["class","row",4,"ngIf"],[1,"bottom-buttons"],[1,"d-flex","flex-column","h-100","text-center"],[4,"ngIf","ngIfElse"],[1,"d-flex","flex-column","flex-fill","justify-content-center","align-items-center","pb-5"],["height","66","width","66","cssIcon","",3,"svg"],[1,"text-start","bottom-buttons"],[3,"routerLink","cssButton","value"],["class","mt-3",4,"ngIf"],[1,"mb-4"],[1,"mt-3"],["cssButton","btn-primary",3,"clickEvent","value","attrAriaHidden","attrDisabled"],[3,"clickEvent","attrAriaLabel","cssButton","svg","svgColor","svgHoverColor","svgWidth","svgHeight"],[3,"error"]],template:function(i,s){if(i&1&&(o(0,"div",7),g(1,"bn-spinner",8),o(2,"div",9),l(3,"translate"),o(4,"div",10),ce(5,11),a(),o(6,"div",12)(7,"div",13)(8,"div",14),ce(9,11),a(),o(10,"div",15),ce(11,11),a()()()()(),u(12,si,15,13,"ng-template",null,0,w)(14,ui,1,1,"ng-template",null,1,w)(16,Di,4,2,"ng-template",null,2,w)(18,Fi,1,7,"ng-template",null,3,w)(20,Li,1,7,"ng-template",null,4,w)(22,Pi,1,1,"ng-template",null,5,w)),i&2){let x=T(13),V=T(15),Re=T(17);r(),n("fullScreen",!0),r(),B("aria-label",p(3,5,"register.headers.create-account")),r(3),n("ngTemplateOutlet",x),r(4),n("ngTemplateOutlet",V),r(2),n("ngTemplateOutlet",Re)}},dependencies:[pe,Ye,me,de,H,ge,z,yt,ve,ue,fe,_e,he,Ee,vt,pt,_t,Nt,W,tt],styles:[`.font-size-base{font-size:1rem}.font-size-small{font-size:.75rem}.font-size-medium{font-size:.85rem!important}.font-size-lg{font-size:.85rem}.font-size-large-2{font-size:1.5rem}.font-size-h1{font-size:2.5rem}.font-size-xl{font-size:1.7rem}.font-size-xl-2{font-size:1.6rem}.text-xs{font-size:.85rem}.text-md{font-size:1rem}.width-auto{width:auto}.width-100{width:100%}@media(min-width:480px){.xs\\:text-xs{font-size:.85rem}.xs\\:text-md{font-size:1rem}.sm\\:width-auto{width:auto}.sm\\:width-100{width:100%}}@media(min-width:768px){.md\\:text-xs{font-size:.85rem}.md\\:text-md{font-size:1rem}.md\\:width-auto{width:auto}.md\\:width-100{width:100%}}.sidebox{background:url("./media/login-modal-background-P6Q4CVCT.png") left -1px bottom 50px no-repeat;background-color:#fbfbfb}.sidebox .top-section{border-right:1px solid #e2e2e2;border-bottom:1px solid #e2e2e2;height:70px;cursor:pointer}.sidebox .top-section .logotype{color:#216fd1;font-size:.85rem;margin:0;line-height:13px;width:70px}@media(max-width:479.98px){.sidebox .top-section .logotype{width:auto;font-size:.75rem}}.sidebox>.flex-fill{border-right:1px solid #e2e2e2}.sidebox .bottom-section{border-top:1px solid #e2e2e2;border-right:1px solid #e2e2e2;background-color:inherit}@media(max-width:479.98px){.sidebox{background:none}}.skipToRegister{left:100%;position:absolute;transform:translateY(-100%)}.skipToRegister:focus{left:0%;transform:translateY(0);position:relative}.register-container{min-height:100vh;width:100vw;background-color:#dedede}@media(max-width:479.98px){.register-container{height:auto}}.register-container .header{height:70px}.register-container .header h1{font-size:1.7rem}@media(max-width:479.98px){.register-container .header h1{font-size:1.4rem;text-align:center}}.register-container .register-form-container{width:880px;min-height:710px;background-color:#fbfbfb}@media(max-width:479.98px){.register-container .register-form-container{height:auto;width:100%}}@media(max-width:479.98px){.register-container .register-form-container .bottom-buttons button.btn{width:100%}}.register-container .register-form-body{background-color:#fff}.register-container .register-form-body .social-media-avatar{position:relative}.register-container .register-form-body .social-media-avatar img.avatar{display:inline-block;width:55px;height:55px;border-radius:50%;overflow:hidden;text-overflow:ellipsis}.register-container .register-form-body .social-media-avatar .social-media-type{position:absolute;right:-5px;bottom:-5px}.register-container .container-border{border-bottom:1px solid #e2e2e2}.register-container .password-input-button{position:absolute;right:13px;top:6px;padding:5px}
2`],encapsulation:2})}}return t})();var Ui=[{path:"",component:Bt}],kt=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=j({type:t})}static{this.\u0275inj=U({imports:[oe.forChild(Ui),oe]})}}return t})();var Ot=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=j({type:t})}static{this.\u0275inj=U({imports:[xe,te,ee,ye,Y.forChild(),q]})}}return t})();var Mn=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=j({type:t})}static{this.\u0275inj=U({imports:[Je,Y,q,oe,ee,kt,It,xe,ye,bt,xt,q,Et,Ot,te,St,wt]})}}return t})();export{Mn as RegisterModule};

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.