1"use strict";(self.webpackChunkyumapos_web_client_mobile=self.webpackChunkyumapos_web_client_mobile||[]).push([[5560],{85560(y,p,a){a.r(p),a.d(p,{DialogCustomerEmailEditorComponent:()=>L});var E=a(17705),e=a(35547),l=a(85802),r=a(89417),m=a(34006),C=a(26920),_=a(40100),c=a(68018),d=a(38008),T=a(15307),t=a(96645),h=a(13004),g=a(85988),f=a(30995),D=a(70578),M=a(41940);function O(o,s){1&o&&(e.j41(0,"yp-dialog-header"),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&o&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"MAIN.ADD_INFO")," "))}function A(o,s){1&o&&(e.j41(0,"mat-error"),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&o&&(e.R7$(),e.JRh(e.bMT(2,1,"PROFILE.EMAIL.REQUIRED")))}function v(o,s){1&o&&(e.j41(0,"mat-error"),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&o&&(e.R7$(),e.JRh(e.bMT(2,1,"PROFILE.EMAIL.INVALID")))}function I(o,s){1&o&&(e.j41(0,"div",9)(1,"mat-error"),e.EFF(2),e.nI1(3,"translate"),e.k0s()()),2&o&&(e.R7$(2),e.JRh(e.bMT(3,1,"TERMS_AGREEMENT.CHECKBOX.ERROR")))}function P(o,s){if(1&o&&(e.j41(0,"div"),e.nrm(1,"yp-legal-agreement",8),e.nI1(2,"translate"),e.nV
1h(3,I,4,3,"div",9),e.k0s()),2&o){const n=e.XpG();e.R7$(),e.Y8G("legalAgreementType",n.tenant.legalAgreementSignIn)("continueButtonText",e.bMT(2,4,"COMMON.OK"))("formControl",n.emailEditorFormGroup.controls.legalAgreement),e.R7$(2),e.vxM(n.emailEditorFormGroup.controls.legalAgreement.invalid&&(n.emailEditorFormGroup.controls.legalAgreement.dirty||n.emailEditorFormGroup.controls.legalAgreement.touched)?3:-1)}}function F(o,s){if(1&o){const n=e.RV6();e.j41(0,"div",10)(1,"button",11),e.bIt("click",function(){l.eBV(n);const i=e.XpG();return l.Njj(i.closeModal())}),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"button",12),e.bIt("click",function(){l.eBV(n);const i=e.XpG();return l.Njj(i.saveEmail())}),e.EFF(5),e.nI1(6,"translate"),e.k0s()()}if(2&o){const n=e.XpG();e.R7$(),e.Y8G("disabled",n.updatingProfileEmail),e.R7$(),e.SpI(" ",e.bMT(3,4,"COMMON.CANCEL")," "),e.R7$(2),e.Y8G("disabled",n.updatingProfileEmail),e.R7$(),e.SpI(" ",e.bMT(6,6,"COMMON.OK")," ")}}let L=(()=>{class o{constructor(){this.tenant=(0,l.WQX)(T.$),this.profileInfoEmailDialogData=(0,l.WQX)(m.Vh),this.localeId=(0,l.WQX)(e.xe9),this.matDialogRef=(0,l.WQX)(m.CP),this.profileHttpService=(0,l.WQX)(h.J),this.changeDetectorRef=(0,l.WQX)(E.gRc),this.TermsAgreementType=t.C,this.COUNTRY_ISO3166_CODES_MAP=d.t,this.emailEditorFormGroup=new r.gE({email:new r.MJ(this.profileInfoEmailDialogData.email??"",{nonNullable:!0,validators:[r.k0.required,r.k0.email]}),legalAgreement:new r.MJ(!1,{nonNullable:!0})}),this.updatingProfileEmail=!1}closeModal(){this.matDialogRef.close()}saveEmail(){this.emailEditorFormGroup.invalid?this.emailEditorFormGroup.markAllAsTouched():(this.emailEditorFormGroup.disable({emitEvent:!1}),this.updatingProfileEmail=!0,this.profileInfoEmailDialogData.email?this.profileHttpService.updateContact({oldContact:this.profileInfoEmailDialogData.email??"",newContact:this.emailEditorFormGroup.controls.email.value,type:1,captchaResponse:void 0,confirmationType:void 0}).subscribe({next:()=>{this.matDialogRef.close({email:this.emailEditorFormGroup.controls.email.value}),this.changeDetectorRef.markForCheck()},error:()=>{this.emailEditorFormGroup.enable({emitEvent:!1}),this.updatingProfileEmail=!1,this.changeDetectorRef.markForCheck()}}):this.profileHttpService.addContact({contact:this.emailEditorFormGroup.controls.email.value,type:1,captchaResponse:void 0,language:this.localeId.substring(0,2),confirmationType:void 0}).subscribe({next:()=>{this.matDialogRef.close({email:this.emailEditorFormGroup.controls.email.value}),this.changeDetectorRef.markForCheck()},error:()=>{this.emailEditorFormGroup.enable({emitEvent:!1}),this.updatingProfileEmail=!1,this.changeDetectorRef.markForCheck()}}))}static{this.\u0275fac=function(u){return new(u||o)}}static{this.\u0275cmp=e.VBU({type:o,selectors:[["yp-dialog-customer-email-editor"]],decls:14,vars:10,consts:[[3,"footerUnderflowEnabled"],[4,"ypProjectedHeader"],[1,"form-wrapper"],["novalidate","",1,"form-controls-wrapper",3,"submit"],["type","submit",1,"d-none"],[3,"appearance","subscriptSizing"],["type","email","matInput","",3,"formControl","ypLengthLimit"],["class","yp-bottom-buttons-wrapper",4,"ypProjectedFooter"],[3,"legalAgreementType","continueButtonText","formControl"],[1,"yp-form-field-error-wrapper"],[1,"yp-bottom-buttons-wrapper"],["type","button",1,"yp-btn","yp-btn-lg","yp-btn-secondary",3,"click","disabled"],["type","button",1,"yp-btn","yp-btn-lg","yp-btn-primary",3,"click","disabled"]],template:function(u,i){1&u&&(e.j41(0,"yp-fixed-header-footer",0),e.DNE(1,O,3,3,"yp-dialog-header",1),e.j41(2,"div",2)(3,"form",3),e.bIt("submit",function(){return i.saveEmail()}),e.nrm(4,"input",4),e.j41(5,"mat-form-field",5)(6,"mat-label"),e.EFF(7),e.nI1(8,"translate"),e.k0s(),e.nrm(9,"input",6),e.nVh(10,A,3,3,"mat-error")(11,v,3,3,"mat-error"),e.k0s(),e.nVh(12,P,4,6,"div"),e.k0s()(),e.DNE(13,F,7,8,"div",7),e.k0s()),2&u&&(e.Y8G("footerUnderflowEnabled",!0),e.R7$(5),e.Y8G("appearance","outline")("subscriptSizing","dynamic"),e.R7$(2),e.JRh(e.bMT(8,8,"PROFILE.EMAIL.LABEL")),e.R7$(2),e.Y8G("formControl",i.emailEditorFormGroup.controls.email)("ypLengthLimit",1e3),e.R7$(),e.vxM(i.emailEditorFormGroup.controls.email.hasError("required")?10:i.emailEditorFormGroup.controls.email.hasError("email")?11:-1),e.R7$(2),e.vxM(i.tenant.legalAgreementSignIn!==i.TermsAgreementType.empty&&i.tenant.country===i.COUNTRY_ISO3166_CODES_MAP.RU?12:-1))},dependencies:[r.X1,r.qT,r.me,r.BC,r.cb,r.l_,C.rl,_.fg,C.TL,C.nJ,f.cU,g.B,D.F,M.v,f.xp,f.J0,c.D9],encapsulation:2,changeDetection:0})}}return o}
1)()},70578(y,p,a){a.d(p,{F:()=>L});var E=a(89417),e=a(82765),l=a(93049),r=a(68018),m=a(63792),C=a(38008),_=a(15307),c=a(16120),d=a(96645),T=a(17705),t=a(35547),h=a(85802);const g=o=>["/",o],f=o=>({buttonText:o});function D(o,s){if(1&o&&(t.EFF(0),t.j41(1,"a",2),t.EFF(2," \u0441\u0431\u043e\u0440\u043e\u043c \u0438 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u043e\u0439 \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u043b\u044c\u043d\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445 "),t.k0s(),t.EFF(3," \u0438 "),t.j41(4,"a",2),t.EFF(5," \u043f\u043e\u043b\u0438\u0442\u0438\u043a\u043e\u0439 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u043b\u044c\u043d\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445. "),t.k0s()),2&o){const n=t.XpG(2);t.SpI(' \u041d\u0430\u0436\u0438\u043c\u0430\u044f \u043a\u043d\u043e\u043f\u043a\u0443 "',n.continueButtonText,'", \u0432\u044b \u0441\u043e\u0433\u043b\u0430\u0448\u0430\u0435\u0442\u0435\u0441\u044c \u0441\u043e '),t.R7$(),t.Y8G("routerLink",t.eq3(3,g,n.appRoutes.agreement.path)),t.R7$(3),t.Y8G("routerLink",t.eq3(5,g,n.appRoutes.privacyPolicy.path))}}function M(o,s){1&o&&t.EFF(0," Age-restricted items are not for sale to anyone under the age of 18. The recipient of the order may need to provide a valid ID upon receiving the order. ")}function O(o,s){if(1&o&&(t.EFF(0),t.nI1(1,"translate"),t.j41(2,"a",3),t.EFF(3),t.nI1(4,"translate"),t.k0s(),t.EFF(5),t.nI1(6,"translate"),t.j41(7,"a",3),t.EFF(8),t.nI1(9,"translate"),t.k0s(),t.EFF(10,". "),t.nVh(11,M,1,0)),2&o){const n=t.XpG(2);t.SpI(" ",t.i5U(1,7,"TERMS_AGREEMENT.TEXT.PART1",t.eq3(16,f,n.continueButtonText))," "),t.R7$(2),t.Y8G("routerLink",n.staticRoutePaths.privacyPolicyPath),t.R7$(),t.SpI(" ",t.bMT(4,10,"TERMS_AGREEMENT.TEXT.LINK1")," "),t.R7$(2),t.SpI(" ",t.bMT(6,12,"TERMS_AGREEMENT.TEXT.PART2")," "),t.R7$(2),t.Y8G("routerLink",n.staticRoutePaths.termsOfServicePath),t.R7$(),t.JRh(t.bMT(9,14,"TERMS_AGREEMENT.TEXT.LINK2")),t.R7$(3),t.vxM(n.tenant.country===n.COUNTRY_ISO3166_CODES_MAP.GB||n.tenant.country===n.COUNTRY_ISO3166_CODES_MAP.IE?11:-1)}}function A(o,s){if(1&o&&(t.j41(0,"div",0),t.nVh(1,D,6,7)(2,O,12,18),t.k0s()),2&o){const n=t.XpG();t.R7$(),t.vxM(n.tenant.country===n.COUNTRY_ISO3166_CODES_MAP.RU||n.tenant.country===n.COUNTRY_ISO3166_CODES_MAP.KZ?1:2)}}function v(o,s){if(1&o&&(t.EFF(0," \u041f\u043e\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u0435 \u0441\u043e\u0433\u043b\u0430\u0441\u0438\u0435 \u0441 \u0443\u0441\u043b\u043e\u0432\u0438\u044f\u043c\u0438 "),t.j41(1,"a",2),t.EFF(2," \u0441\u0431\u043e\u0440\u0430 \u0438 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u043b\u044c\u043d\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445 "),t.k0s(),t.EFF(3," \u0438 "),t.j41(4,"a",2),t.EFF(5," \u043f\u043e\u043b\u0438\u0442\u0438\u043a\u0438 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u043b\u044c\u043d\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445. "),t.k0s()),2&o){const n=t.XpG(2);t.R7$(),t.Y8G("routerLink",t.eq3(2,g,n.appRoutes.agreement.path)),t.R7$(3),t.Y8G("routerLink",t.eq3(4,g,n.appRoutes.privacyPolicy.path))}}function I(o,s){1&o&&t.EFF(0," Age-restricted items are not for sale to anyone under the age of 18. The recipient of the order may need to provide a valid ID upon receiving the order. ")}function P(o,s){if(1&o&&(t.EFF(0),t.nI1(1,"translate"),t.j41(2,"a",3),t.EFF(3),t.nI1(4,"translate"),t.k0s(),t.EFF(5),t.nI1(6,"translate"),t.j41(7,"a",3),t.EFF(8),t.nI1(9,"translate"),t.k0s(),t.EFF(10,". "),t.nVh(11,I,1,0)),2&o){const n=t.XpG(2);t.SpI(" ",t.bMT(1,7,"TERMS_AGREEMENT.CHECKBOX.LABEL.PART1")," "),t.R7$(2),t.Y8G("routerLink",n.staticRoutePaths.privacyPolicyPath),t.R7$(),t.SpI(" ",t.bMT(4,9,"TERMS_AGREEMENT.CHECKBOX.LABEL.LINK1")," "),t.R7$(2),t.SpI(" ",t.bMT(6,11,"TERMS_AGREEMENT.CHECKBOX.LABEL.PART2")," "),t.R7$(2),t.Y8G("routerLink",n.staticRoutePaths.termsOfServicePath),t.R7$(),t.JRh(t.bMT(9,13,"TERMS_AGREEMENT.CHECKBOX.LABEL.LINK2")),t.R7$(3),t.vxM(n.tenant.country===n.COUNTRY_ISO3166_CODES_MAP.GB||n.tenant.country===n.COUNTRY_ISO3166_CODES_MAP.IE?11:-1)}}function F(o,s){if(1&o){const n=t.RV6();t.j41(0,"mat-checkbox",4),t.bIt("change",function(i){h.eBV(n);const R=t.XpG();return h.Njj(R.formControlOnChange(i.checked))})("focusout",function(){h.eBV(n);const i=t.XpG();return h.Njj(i.formControlOnTouched())}),t.nVh(1,v,6,6)(2,P,12,15),t.k0s()}if(2&o){const n=t.XpG();t.Y8G("checked",n.checked)("disabled",n.isDisabled),t.R7$(),t.vxM(n.tenant.country===n.COUNTRY_ISO3166_CODES_MAP.RU||n.tenant.country===n.COUNTRY_ISO3166_CODES_MAP.KZ?1:2)}}let L=(()=>{class o{constructor(n,u){this.tenant=n,this.changeDetectorRef=u,this.staticRoutePaths=c.g,this.COUNTRY_ISO3166_CODES_MAP=C.t,this.TermsAgreementType=d.C,this.appRoutes=m.G,this.checked=!1,this.isDisabled=!1,this.validate=()=>null}ngOnChanges(n){n.legalAgreementType&&n.legalAgreementType.previousValue!==n.legalAgreementType.currentValue&&(this.validate=this.legalAgreementType===d.C.checkbox?E.k0.requiredTrue:()=>null,this.onValidatorChange&&this.onValidatorChange())}writeValue(n){this.checked=n,this.changeDetectorRef.markForCheck()}registerOnChange(n){this.formControlOnChange=n}registerOnTouched(n){this.formControlOnTouched=n}setDisabledState(n){this.isDisabled=n,this.changeDetectorRef.markForCheck()}registerOnValidatorChange(n){this.onValidatorChange=n}static{this.\u0275fac=function(u){return new(u||o)(t.rXU(_.$),t.rXU(T.gRc))}}static{this.\u0275cmp=t.VBU({type:o,selectors:[["yp-legal-agreement"]],inputs:{legalAgreementType:"legalAgreementType",continueButtonText:"continueButtonText"},features:[t.Jv_([{provide:E.kq,multi:!0,useExisting:o},{provide:E.cz,multi:!0,useExisting:o}]),t.OA$],decls:2,vars:1,consts:[[1,"fs-3"],[1,"text-start",3,"checked","disabled"],["target","_blank",3,"routerLink"],["target","_blank",1,"fw-bold",3,"routerLink"],[1,"text-start",3,"change","focusout","checked","disabled"]],template:function(u,i){if(1&u&&t.nVh(0,A,3,1,"div",0)(1,F,3,3,"mat-checkbox",1),2&u){let R;t.vxM((R=i.legalAgreementType)===i.TermsAgreementType.message?0:R===i.TermsAgreementType.checkbox?1:-1)}},dependencies:[l.Wk,e.So,r.D9],encapsulation:2,changeDetection:0})}}return o}
1)()},41940(y,p,a){a.d(p,{v:()=>r});var E=a(17705),e=a(35547),l=a(85802);let r=(()=>{class m{constructor(){this.ypLengthLimit=E.hFB.required(),this.elementRef=(0,l.WQX)(e.aKT)}beforeinput(_){if(_ instanceof InputEvent&&_.data){const c=Math.abs(this.elementRef.nativeElement.selectionStart-this.elementRef.nativeElement.selectionEnd);this.elementRef.nativeElement.value.length-c+_.data.length>this.ypLengthLimit()&&_.preventDefault()}}static{this.\u0275fac=function(c){return new(c||m)}}static{this.\u0275dir=e.FsC({type:m,selectors:[["textarea","ypLengthLimit",""],["input","ypLengthLimit",""]],hostBindings:function(c,d){1&c&&e.bIt("beforeinput",function(t){return d.beforeinput(t)})},inputs:{ypLengthLimit:[1,"ypLengthLimit"]}})}}return m})()}}]);
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.