1"use strict";(self.webpackChunkweb_front_end_angular_cli=self.webpackChunkweb_front_end_angular_cli||[]).push([[1208],{32131:(x,C,n)=>{n.d(C,{l:()=>f});var a=n(12481);let f=(()=>{var d;class h{transform(_,i){let r,c,m,l,u=_/1e3;return r=Math.floor(u/86400),u-=86400*r,c=Math.floor(u/3600)%24,u-=3600*c,m=Math.floor(u/60)%60,u-=60*m,l=Math.floor(u%60),r>0?`${r}${i?.daysTitle||""} ${c<10?"0"+c:c}:${m<10?"0"+m:m}:${l<10?"0"+l:l}`:c>0?`${c<10?"0"+c:c}:${m<10?"0"+m:m}:${l<10?"0"+l:l}`:`${m<10?"0"+m:m}:${l<10?"0"+l:l}`}}return(d=h).\u0275fac=function(_){return new(_||d)},d.\u0275pipe=a.EJ8({name:"timeLeft",type:d,pure:!0,standalone:!1}),h})()},49323:(x,C,n)=>{n.d(C,{H:()=>f});var a=n(12481);let f=(()=>{var d;class h{constructor(){this._maskSpecialCharacters=["/","(",")",".",":","-"," ","+","3","8","0"],this._maskAwaliablePatterns={9:/\d/,$:/\d/,C:/[0-9*]/,A:/[a-zA-Z0-9]/,S:/[a-zA-Z]/}}transform(_,i){return this._applyMask(_,i)}_applyMask(_,i){if(null==_)return"";let r=0,c="";const m=_.toString().split("");for(let l=0,u=m[0];l<m.length&&c.length!==i.length;l++,u=m[l])if(this._checkSymbolMask(u,i[r]))c+=u,r++;else if(-1!==this._maskSpecialCharacters.indexOf(i[r]))c+=i[r],r++,l--;else if("9"===i[r])break;return c.length+1===i.length&&-1!==this._maskSpecialCharacters.indexOf(i[i.length-1])&&(c+=i[i.length-1]),c}_checkSymbolMask(_,i){return _===i||this._maskAwaliablePatterns[i]&&this._maskAwaliablePatterns[i].test(_)}_applyValueChanges(_,i){return this._applyMask(_,i)}}return(d=h).\u0275fac=function(_){return new(_||d)},d.\u0275pipe=a.EJ8({name:"mask",type:d,pure:!1,standalone:!1}),h})()},71208:(x,C,n)=>{n.r(C),n.d(C,{AcceptContractComponent:()=>V});var a=n(85240),f=n(93683),d=n(26368),h=n(84205),M=n(19240),_=n(33900),i=n(52971),r=n(34456),c=n(48503),m=n(63037),l=n(70271),u=n(11249),v=n(51567),I=n(64334),D=n(89475),T=n(1522),P=n(79864),k=n(98509),A=n(25004),R=n(21445),B=n(85663),E=n(97024),L=n(23679),O=n(90031),y=n(26751),W=n(11753),t=n(12481),b=n(46679),j=n(86521),$=n(16929),U=n(97887),w=n(60247),K=n(49323),F=n(32131);const S=(s,g)=>({contextInfo:s,timer:g});function X(s,g){if(1&s){const o=t.RV6();t.j41(0,"div",24),t.nI1(1,"safeHtml"),t.bIt("click",function(){a.eBV(o);const p=t.XpG(2);return a.Njj(p.removeError())}),t.k0s()}if(2&s){const o=t.XpG(2);t.Y8G("innerHtml",t.bMT(1,1,o.error.message),t.npT)}}function G(s,g){if(1&s&&(t.j41(0,"div",25),t.EFF(1),t.nI1(2,"timeLeft"),t.k0s()),2&s){const o=t.XpG().ngLet;t.R7$(),t.JRh(t.bMT(2,1,o.timer))}}function N(s,g){if(1&s){const o=t.RV6();t.j41(0,"button",26),t.bIt("click",function(){a.eBV(o);const p=t.XpG(2);return a.Njj(p.sendAgain())})("mousedown",function(){a.eBV(o);const p=t.XpG(2);return a.Njj(p.sendAgain())}),t.EFF(1),t.nI1(2,"translate"),t.k0s()}2&s&&(t.R7$(),t.SpI(" ",t.bMT(2,1,"auth.logIn.confirm-repeat")," "))}function z(s,g){if(1&s){const o=t.RV6();t.j41(0,"section",2),t.nrm(1,"app-product-info",3),t.j41(2,"div",4)(3,"div")(4,"button",5),t.bIt("click",function(){a.eBV(o);const p=t.XpG();return a.Njj(p.showPopUp())}),t.EFF(5),t.nI1(6,"translate"),t.k0s()(),t.j41(7,"div",6,0),t.DNE(9,X,2,3,"div",7),t.nI1(10,"async"),t.k0s(),t.j41(11,"p",8),t.EFF(12),t.nI1(13,"translate"),t.k0s(),t.j41(14,"div",9),t.EFF(15),t.nI1(16,"mask"),t.k0s(),t.j41(17,"form",10),t.bIt("ngSubmit",function(){a.eBV(o);const p=t.XpG();return a.Njj(p.submit())}),t.j41(18,"fieldset",11)(19,"legend",12),t.EFF(20),t.nI1(21,"translate"),t.k0s(),t.j41(22,"mat-form-field",13)(23,"input",14),t.bIt("blur",function(){a.eBV(o);const p=t.XpG();return a.Njj(p.clearEmptyFieldError(null==p.form?null:p.form.get("code")))}),t.k0s(),t.j41(24,"mat-error"),t.nrm(25,"app-control-validation-messages",15),t.k0s()(),t.j41(26,"div",16),t.DNE(27,G,3,3,"div",17)(28,N,3,3,"button",18),t.k0s()(),t.j41(29,"div",19)(30,"p",20),t.EFF(31),t.nI1(32,"translate"),t.k0s(),t.j41(33,"mat-checkbox",21)(34,"div",22),t.EFF(35),t.nI1(36,"translate"),t.k0s()()(),t.j41(37,"button",23),t.EFF(38),t.nI1(39,"translate"),t.k0s()()()()}if(2&s){const o=g.ngLet,e=t.XpG();t.R7$(),t.Y8G("contextInfo",null==o?null:o.contextInfo),t.R7$(4),t.JRh(t.bMT(6,19,"shared.buttons.back")),t.R7$(4),t.Y8G("ngIf",!1===t.bMT(10,21,null==e.error?null:e.error.$isNoErrors)),t.R7$(3),t.SpI(" ",t.bMT(13,23,"oscpv.accept.form-title")," "),t.R7$(3),t.SpI(" ",t.i5U(16,25,null==o.contextInfo||null==o.contextInfo.customer?null:o.contextInfo.customer.phone,"+99 999 999 99 99")," "),t.R7$(2),t.Y8G("formGroup",e.form),t.R7$(3),t.Lme("",t.bMT(21,28,"oscpv.accept.agreement-label"),"",null==o||null==o.contextInfo||null==o.contextInfo.insuranceContract?null:o.contextInfo.insuranceContract.policyNumber),t.R7$(3),t.Y8G("inputMask","99-99-99")("specialCharacters",!1),t.R7$(2),t.Y8G("mainForm",e.form)("fieldName","code")("formErrors",e.formErrors),t.R7$(2),t.Y8G("ngIf",o.timer),t.R7$(),t.Y8G("ngIf",!(null!=o&&o.timer)),t.R7$(3),t.SpI(" ",t.bMT(32,30,"oscpv.accept.title")," "),t.R7$(4),t.SpI(" ",t.bMT(36,32,"oscpv.accept.checkbox-label")," "),t.R7$(2),t.Y8G("disabled",!(null!=e.form&&e.form.valid)),t.R7$(),t.JRh(t.bMT(39,34,"oscpv.shared.sign-and-pay"))}}let V=(()=>{var s;class g extends d.I{constructor(){super(...arguments),this.insuranceService=(0,a.WQX)(i.m),this.loaderService=(0,a.WQX)(y.Z),this.router=(0,a.WQX)(k.Ix),this.fb=(0,a.WQX)(r.ok),this.translateService=(0,a.WQX)(c.c$),this.insuranceDialogService=(0,a.WQX)(W.u),this.contextInfo$=this.insuranceService.contextInfo$,this.form=null,this.timerTimeSec=120,this.stopTimer$=new h.B,this.sendAgainDelayTimeMs=1e3*this.timerTimeSec}ngOnInit(){this.initContextInfo(),this.initForm(),this.initFormErrors(),this.getBaseValidationMessages()}initForm(){this.form=this.fb.group({code:["",r.k0.compose([r.k0.required,r.k0.minLength(6)])],accept:[!1,r.k0.requiredTrue]})}initFormErrors(){this.formErrors.code=new T.b}getBaseValidationMessages(){this.translateService.get("validate-messages.required").subscribe(e=>{this.setBaseValidationMessages(e,"required")})}sendAgain(){this.initializeContract()}stopTimer(){this.stopTimer$.next()}resetTimer(){return(0,M.Y)(1e3).pipe((0,m.Z)(-1),(0,l.T)(e=>this.sendAgainDelayTimeMs-1e3*(e+1)),(0,u.v)(e=>e>=0),(0,_.Q)(this.stopTimer$))}submit(){this.insuranceService.verify(this.form?.value?.code).subscribe({next:e=>this.handleContractState(e?.insuranceContract?.state),error:e=>this.setError(e)})}initContextInfo(){this.insuranceService.contextInfo$.pipe((0,v.p)(Boolean),(0,I.s)(1),(0,l.T)(e=>e?.insuranceContract?.state)).subscribe(e=>this.handleContractState(e))}handleContractState(e){switch(e?.toLowerCase()){case O.s.NeedConfirm?.toLowerCase():this.initializeContract();break;case O.s.Confirmed?.toLowerCase():this.router.navigate(["/car-insurance/pay"]);break;default:this.timer$=this.resetTimer()}}initializeContract(){this.loaderService.startManual(),this.insuranceService.initialize().pipe((0,D.j)(()=>this.loaderService.finishManual())).subscribe({next:()=>{this.stopTimer(),this.timer$=this.resetTimer()},error:e=>this.setError(e)})}
1showPopUp(){this.insuranceDialogService.showDocumentReady()}}return(s=g).\u0275fac=(()=>{let o;return function(p){return(o||(o=t.xGo(s)))(p||s)}})(),s.\u0275cmp=t.VBU({type:s,selectors:[["app-accept-contract"]],features:[t.Vt3],decls:3,vars:8,consts:[["errorBlock",""],["class","confirm-data page-with-product",4,"ngLet"],[1,"confirm-data","page-with-product"],[1,"selected-product-info",3,"contextInfo"],[1,"inner-info-container"],["type","button",1,"insurance-back","show-ins-dialog",3,"click"],[1,"scroll-offset"],["class","insurance-error",3,"innerHtml","click",4,"ngIf"],[1,"accept-form__title","regular","mt-24"],[1,"accept-form__phone","semibold"],[1,"accept-form","mt-24",3,"ngSubmit","formGroup"],[1,"control-wide-405"],[1,"accept-form__title","accept-form__legend","regular"],["appearance","outline",1,"control-wide-405"],["matInput","","type","tel","inputmode","numeric","autocomplete","off","formControlName","code","placeholder","XX-XX-XX","input-mask","",3,"blur","inputMask","specialCharacters"],[3,"mainForm","fieldName","formErrors"],[1,"accept-form__timer","text-center"],["class","accept-form__timer-countdown regular",4,"ngIf"],["class","accept-form__timer-reset pointer","type","button",3,"click","mousedown",4,"ngIf"],[1,"accept-form__checkbox-wrapper","mt-24"],[1,"accept-form__title","semibold"],["color","primary","formControlName","accept",1,"insurance-checkbox","ep-checkbox","absolute-checkbox"],[1,"insurance-checkbox__label"],["type","submit",1,"button","light-blue","button--wide-405","mt-24",3,"disabled"],[1,"insurance-error",3,"click","innerHtml"],[1,"accept-form__timer-countdown","regular"],["type","button",1,"accept-form__timer-reset","pointer",3,"click","mousedown"]],template:function(e,p){1&e&&(t.DNE(0,z,40,36,"section",1),t.nI1(1,"async"),t.nI1(2,"async")),2&e&&t.Y8G("ngLet",t.l_i(5,S,t.bMT(1,1,p.contextInfo$),t.bMT(2,3,p.timer$)))},dependencies:[f.MD,f.bT,P.fS,P.fg,b.j,b.b,r.X1,r.qT,r.me,r.BC,r.cb,r.j4,r.JD,A.d,j.g,R.h,$.I,U.N,B.n,E.g7,E.So,L.Y,c.h,f.Jj,w.$,K.H,F.l,c.D9],styles:['.insurance-error[_ngcontent-%COMP%]{border-radius:5px;background-color:#fff8d080;padding:12px 12px 12px 38px;background-image:url(https://cdn.easypay.ua/images/svg/oscpv/attention-orange.svg);background-repeat:no-repeat;background-size:14px;background-position:12px 12px;margin-top:16px;margin-bottom:24px}.accept-form__title[_ngcontent-%COMP%], .accept-form__phone[_ngcontent-%COMP%], .accept-form__timer-countdown[_ngcontent-%COMP%]{font-size:16px;line-height:20px;color:#202020}.mt-24[_ngcontent-%COMP%]{margin-top:24px}.mt-8[_ngcontent-%COMP%]{margin-top:8px}.button--wide-405[_ngcontent-%COMP%]{height:44px;line-height:44px;box-shadow:0 8px 20px #1f83fe4d;max-width:405px}.control-wide-405[_ngcontent-%COMP%]{max-width:405px}.insurance-checkbox.mat-mdc-checkbox.mat-primary[_ngcontent-%COMP%]{--mdc-checkbox-unselected-icon-color: #CCCCCC;--mdc-checkbox-unselected-hover-icon-color: #CCCCCC}.insurance-checkbox__label[_ngcontent-%COMP%]{font-size:12px;line-height:16px;font-weight:400;color:#202020}.insurance-back[_ngcontent-%COMP%]{display:inline-block;background-image:url(https://cdn.easypay.ua/images/svg/arrows/arrow-brand-blue.svg);background-repeat:no-repeat;background-size:17px 16px;background-position:4px center;padding:4px 0 4px 28px;font-size:16px;line-height:16px;font-weight:400}.insurance-back.show-ins-dialog[_ngcontent-%COMP%]{color:#1f83fe;cursor:pointer}.insurance-back.show-ins-dialog[_ngcontent-%COMP%]:focus, .insurance-back.show-ins-dialog[_ngcontent-%COMP%]:hover{color:#055b9d}.ins__tooltip[_ngcontent-%COMP%]{display:inline-block;width:14px;height:14px;position:relative;top:2px;transition:.15s}.ins__tooltip[_ngcontent-%COMP%]:before{content:"";position:absolute;width:40px;height:40px;left:-13px;top:-13px;background-image:url(https://cdn.easypay.ua/images/svg/info-new.svg);background-repeat:no-repeat;background-size:14px;background-position:center;transition:.15s}.insurance-toggle[_ngcontent-%COMP%]{align-self:flex-end;position:relative;margin:12px 0 0 auto;color:#1f83fe;font-size:16px;cursor:pointer}@media only screen and (min-width: 640px){.insurance-toggle[_ngcontent-%COMP%]{margin-top:24px}}.insurance-toggle[_ngcontent-%COMP%]:before{position:absolute;content:"";top:-8px;bottom:-8px;left:-8px;right:-8px}.insurance-toggle[_ngcontent-%COMP%]:after{content:url(\'data:image/svg+xml;utf8,<svg width="13" height="8" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill="none"><path d="M12.54.55c.25.25.25.65 0 .9l-5.9 5.91-5.92-5.9a.64.64 0 0 1 .91-.91l5 5 5-5a.64.64 0 0 1 .91 0Z" fill="dodgerBlue"/></svg>\');display:inline-block;transition:transform .5s;margin-left:10px}@media only screen and (max-width: 639.8px){.insurance-toggle.extended[_ngcontent-%COMP%]{position:absolute;bottom:16px;right:16px;z-index:1}}.insurance-toggle.extended[_ngcontent-%COMP%]:after{transform:rotateX(180deg)}.insurance-toggle[_ngcontent-%COMP%]:focus-visible{box-shadow:#fff 0 0 0 4px,#dff1ff 0 0 2px 6px}.page-with-product[_ngcontent-%COMP%]{display:flex;flex-direction:column}@media only screen and (min-width: 1024px){.page-with-product[_ngcontent-%COMP%]{flex-direction:row;column-gap:24px}}.page-with-product[_ngcontent-%COMP%] .inner-info-container[_ngcontent-%COMP%]{padding:16px 12px;background-color:#fff;margin-top:8px;border-radius:5px}@media only screen and (min-width: 640px){.page-with-product[_ngcontent-%COMP%] .inner-info-container[_ngcontent-%COMP%]{margin-top:12px}}@media only screen and (min-width: 1024px){.page-with-product[_ngcontent-%COMP%] .inner-info-container[_ngcontent-%COMP%]{flex:1 1 auto;margin-top:0}}@media only screen and (min-width: 1024px){.page-with-product[_ngcontent-%COMP%] .selected-product-info[_ngcontent-%COMP%]{order:1;flex:0 0 320px}}.flag-ua[_ngcontent-%COMP%]{position:relative;height:10px;width:16px;margin-bottom:7px}.flag-ua[_ngcontent-%COMP%]:before, .flag-ua[_ngcontent-%COMP%]:after{content:"";position:absolute;
1left:0;height:5px;width:16px}.flag-ua[_ngcontent-%COMP%]:before{background-color:#007ef6;top:0}.flag-ua[_ngcontent-%COMP%]:after{background-color:#f8d347;top:5px}.customer-info__flag[_ngcontent-%COMP%]{position:absolute;left:0;top:5px;margin-bottom:0}.accept-form__checkbox-wrapper[_ngcontent-%COMP%]{padding:12px;background:linear-gradient(0deg,#32aa550d,#32aa550d),#fff;border-radius:8px}.accept-form__title[_ngcontent-%COMP%]{margin-bottom:0}.accept-form__legend[_ngcontent-%COMP%]{color:#9e9e9e;margin-bottom:17px}.accept-form[_ngcontent-%COMP%] .insurance-checkbox[_ngcontent-%COMP%]{margin-top:16px}.accept-form__phone[_ngcontent-%COMP%]{background-color:#e5f1ff;border-radius:3px;margin-top:5px;display:inline-block;padding:3px 14px 3px 8px}.accept-form__timer-reset[_ngcontent-%COMP%]{color:#1f83fe}'],changeDetection:0}),g})()}}]); 2//# sourceMappingURL=1208.d8e23d2156e34e09.js.map
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.