1 2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="9d2ea1f0-d90c-59ef-8364-5e6782ba23be")}catch(e){}}(); 3import{c as de,d as me}from"./chunk-GA3KK3T7.js";import{b as se}from"./chunk-QWPHY7A3.js";import{c as F}from"./chunk-W7PVCVL5.js";import{q as ne}from"./chunk-MPRX6WRO.js";import{a as ae,b as le}from"./chunk-JEZTBI4E.js";import{a as oe,d as ce}from"./chunk-FJ4ZOLGT.js";import{B as te,C as ie,b as J,c as K,e as u,f as Q,g as X,s as Y,t as Z,z as ee}from"./chunk-R5XMVSYY.js";import{b as re}from"./chunk-K5Q7KIV2.js";import{$a as r,Aa as n,Ab as h,Ad as $,Bb as L,Cd as S,Dd as I,Ed as B,Ga as o,Ia as C,Ja as N,K as M,M as E,Ma as x,Qc as w,R as _,Sc as b,Ta as l,Va as d,Y as D,_a as v,ab as a,bb as f,ca as U,da as V,ed as z,fd as G,i as g,ib as O,kb as W,mb as s,mc as q,ua as j,va as H,wc as y,yb as m,zb as R}from"./chunk-SBKZPI4X.js";function xe(t,p){if(t&1&&(r(0,"div",2),m(1),a()),t&2){let e=s(2);n(),h(" ",e.sen["reg-verify-failed"]," ")}}function ye(t,p){if(t&1&&(r(0,"div",2),m(1),a()),t&2){let e=s(2);n(),h(" ",e.sen["app-captcha-failed"]," ")}}function we(t,p){if(t&1&&f(0,"cmp-val-msg",11),t&2){let e=s(3);v("msg",e.passwordSvc.passwordPolicyMessage(e.verifyForm.controls.password.value))}}function be(t,p){if(t&1&&f(0,"cmp-val-msg",11),t&2){let e=s(3);v("msg",e.sen["cart-user-password-confirm-invalid"])}}function Se(t,p){if(t&1&&(m(0),r(1,"a",18),m(2),a(),m(3,". ")),t&2){let e=s(3);h(" ",e.sen["cart-terms-3b"]," "),n(),v("href",e.gdprUrl,H),n(),R(e.sen["cart-terms-3"])}}function Ie(t,p){if(t&1&&m(0),t&2){let e=s(3);L(" ",e.sen["cart-terms-3a"]," ",e.sen["cart-terms-3"],". ")}}function Be(t,p){if(t&1&&f(0,"cmp-val-msg",11),t&2){let e=s(3);v("msg",e.sen["cart-must-gdpr"])}}function Fe(t,p){if(t&1){let e=O();r(0,"div",3)(1,"div",4),f(2,"label",5),r(3,"div",6),f(4,"input",7),a()(),r(5,"div",4),f(6,"label",8),r(7,"div",6),f(8,"input",9),r(9,"div",10),l(10,we,1,1,"cmp-val-msg",11),a()()(),r(11,"div",4)(12,"label",12),m(13),a(),r(14,"div",6),f(15,"input",13),r(16,"div",10),l(17,be,1,1,"cmp-val-msg",11),a()()(),r(18,"div",14),f(19,"input",15),r(20,"label",16),m(21),l(22,Se,4,3)(23,Ie,1,2),a(),r(24,"div",10),l(25,Be,1,1,"cmp-val-msg",11),a()(),r(26,"div",4)(27,"div",6)(28,"button",17),W("click",function(){U(e);let c=s(2);return V(c.executeCaptcha())}),m(29),a()()()()}if(t&2){let e=s(2);v("formGroup",e.verifyForm),n(2),v("innerHTML",e.sen["login-email"],j),n(4),v("innerHTML",e.sen["login-password"],j),n(4),d(e.verifyForm.dirty&&e.verifyForm.controls.password.invalid?10:-1),n(3),h(" ",e.sen["confirm-password"],": "),n(4),d(e.verifyForm.dirty&&e.differentPasswords&&e.triedSubmit?17:-1),n(4),h(" ",e.sen["create-password"]," "),n(),d(e.gdprUrl?22:23),n(3),d(e.verifyForm.dirty&&e.verifyForm.controls.agree.invalid&&e.triedSubmit?25:-1),n(3),v("disabled",e.isButtonDisabled),n(),h(" ",e.sen["reg-verify-button"]," ")}}function Ae(t,p){if(t&1&&(r(0,"div",0)(1,"h1",1),m(2),a(),l(3,xe,2,1,"div",2),l(4,ye,2,1,"div",2),l(5,Fe,30,11,"div",3),a()),t&2){let e=s();n(2),h(" ",e.sen["reg-verify-h1"]," "),n(),d(e.showWarning?3:-1),n(),d(e.captchaFailed?4:-1),n(),d(e.showWarning?-1:5)}}function Pe(t,p){if(t&1&&m(0),t&2){let e=s();h(" ",e.sen["create-password-activate-wrong-hash"],` 4`)}}function Te(t,p){t&1&&m(0,` ...moment 5`)}var Le=(()=>{class t extends B{constructor(e,i,c,A,P,T,k,fe,ve){super(e,i),this.route=c,this.http=A,this.fb=P,this.digestSvc=T,this.fcSvc=k,this.router=fe,this.passwordSvc=ve,this.showWarning=!1,this.captchaFailed=!1,this.differentPasswords=!1,this.triedSubmit=!1,this.ngUnsubscribe=new g,this.wrongHash=!1,this.hashOk=!1,this.isButtonDisabled=!1,this.userLoggedIn&&this.router.navigateByUrl("/").then(()=>{}),this.gdprUrl=this.seSvc.settings.termsAndConditions[this.seSvc.culture.cultureId].gdprUrl}ngOnInit(){this.dataSvc.setTitle(`${this.seSvc.settings.shopSeo.ShopName} - ${this.sen["reg-verify-h1"]}
5`,this.sen["reg-verify-desc"]),this.guid=this.route.snapshot.params.guid,this.email=G(this.route.snapshot.params.email),this.createForm(),this.checkHash()}checkHash(){this.http.get("api/registration/check-hash/"+this.guid).pipe(M(1)).subscribe(e=>{e?this.hashOk=!0:this.wrongHash=!0})}createForm(){this.verifyForm=this.fb.group({email:[this.email],password:["",[u.required,u.pattern(new RegExp(this.seSvc.passwordRegExpPattern))]],confirmPassword:["",[u.required]],agree:[!1,[u.requiredTrue]]}),this.verifyForm.valueChanges.pipe(_(this.ngUnsubscribe)).subscribe(()=>{this.triedSubmit=!1,this.differentPasswords=!1})}checkForm(){this.triedSubmit=!0;let e=this.verifyForm.get("password")?.value,i=this.verifyForm.get("confirmPassword")?.value;return e!=i?(this.differentPasswords=!0,!1):!this.verifyForm.invalid}executeCaptcha(){this.isButtonDisabled=!0,this.fcSvc.executeCaptcha("activation","create-password-activate.component.onCaptchaExecuted").pipe(E(()=>{this.isButtonDisabled=!1})).subscribe(e=>{this.captchaFailed=!e.success,e.success&&this.verify(e.secret)})}verify(e){if(!this.checkForm())return;this.isButtonDisabled=!0;let i={email:z(this.email),guid:this.guid,password:this.verifyForm.get("password")?.value};this.http.post("api/registration/createPasswordActivate",i).pipe(M(1),E(()=>{this.isButtonDisabled=!1})).subscribe(c=>{c.status?this.digestSvc.login(this.email,i.password,e):this.showWarning=!0})}ngOnDestroy(){this.ngUnsubscribe.next(),this.ngUnsubscribe.complete()}static{this.\u0275fac=function(i){return new(i||t)(o(I),o(S),o(w),o(y),o(ee),o(F),o(re),o(b),o($))}}static{this.\u0275cmp=C({type:t,selectors:[["ng-component"]],standalone:!1,features:[x],decls:3,vars:3,consts:[[1,"register-verify"],[1,"register-verify__main-title","h1"],[1,"register-verify__warning"],[1,"register-verify__form",3,"formGroup"],[1,"register-verify__row"],["for","email",1,"register-verify__label",3,"innerHTML"],[1,"register-verify__value"],["type","text","id","email","formControlName","email","readonly","",1,"form-input"],["for","password",1,"register-verify__label",3,"innerHTML"],["type","password","id","password","formControlName","password",1,"form-input"],[1,"validation"],[3,"msg"],["for","confirmPassword",1,"register-verify__label"],["type","password","id","confirmPassword","formControlName","confirmPassword",1,"form-input"],[1,"register-verify__checkbox"],["formControlName","agree","type","checkbox","id","delivery",1,"register-verify__checkbox-input"],["for","delivery",1,"register-verify__checkbox-label"],["type","button",1,"btn","btn--medium","btn--primary",3,"click","disabled"],["target","_blank","rel","noopener",3,"href"]],template:function(i,c){i&1&&(l(0,Ae,6,4,"div",0),l(1,Pe,1,1),l(2,Te,1,0)),i&2&&(d(c.hashOk?0:-1),n(),d(c.wrongHash?1:-1),n(),d(!c.hashOk&&!c.wrongHash?2:-1))},dependencies:[K,J,Q,X,Z,Y,oe],styles:[`.register-verify__row{display:flex;flex-direction:column;margin-bottom:16px}.register-verify__label{margin-bottom:8px}.register-verify__value{max-width:420px;position:relative}.register-verify__checkbox{position:relative;margin-bottom:30px} 6`],encapsulation:2})}}return t})();function ke(t,p){if(t&1&&f(0,"cmp-alert",2),t&2){let e=s(2);v("alertType","success")("message",e.sen["reg-activate-ok"])}}function Me(t,p){if(t&1&&f(0,"cmp-alert",2),t&2){let e=s(2);v("alertType","error")("message",e.sen["reg-activate-failed"])}}function Ee(t,p){if(t&1&&(l(0,ke,1,2,"cmp-alert",2),l(1,Me,1,2,"cmp-alert",2)),t&2){let e=s();d(e.showWarning?-1:0),n(),d(e.showWarning?1:-1)}}var Qe=(()=>{class t extends B{constructor(e,i,c,A,P,T,k){super(e,i),this.route=c,this.http=A,this.digestSvc=P,this.flexMarketingEventsSvc=T,this.router=k,this.done=!1,this.showWarning=!1,this.ngUnsubscribe=new g,this.userLoggedIn&&this.router.navigateByUrl("/").then(()=>{})}ngOnInit(){this.dataSvc.setTitle(`${this.seSvc.settings.shopSeo.ShopName} - ${this.sen["reg-verify-h1"]}`),this.guid=this.route.snapshot.params.guid,this.email=this.route.snapshot.params.email,this.verify()}ngOnDestroy(){this.ngUnsubscribe.next(),this.ngUnsubscribe.complete()}verify(){let e={email:this.email,guid:this.guid,password:null};this.http.post("api/registration/verifyActivate",e).pipe(_(this.ngUnsubscribe)).subscribe(i=>{this.done=!0,i.status&&this.flexMarketingEventsSvc.registrationConfirm(i.userId),this.showWarning=!i.status})}static{this.\u0275fac=function(i){return new(i||t)(o(I),o(S),o(w),o(y),o(F),o(ne),o(b))}}static{this.\u0275cmp=C({type:t,selectors:[["ng-component"]],standalone:!1,features:[x],decls:4,vars:2,consts:[[1,"register-verify"],[1,"register-verify__main-title","h1"],[3,"alertType","message"]],template:function(i,c){i&1&&(r(0,"div",0)(1,"h1",1),m(2),a(),l(3,Ee,2,2),a()),i&2&&(n(2),h(" ",c.sen["reg-verify-h1"]," "),n(),d(c.done?3:-1))},dependencies:[ae],styles:[`.register-verify__row{display:flex;flex-direction:column;margin-bottom:16px}.register-verify__label{margin-bottom:8px}.register-verify__value{max-width:420px;position:relative}.register-verify__checkbox{position:relative;margin-bottom:30px} 7`],encapsulation:2})}}return t})();var lt=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=N({type:t})}static{this.\u0275inj=D({imports:[se,q,te,ie,ce,me,de,le]})}}return t})();export{Le as a,Qe as b,lt as c}; 8 9//# debugId=9d2ea1f0-d90c-59ef-8364-5e6782ba23be
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.