1"use strict";(self.webpackChunkweb=self.webpackChunkweb||[]).push([[62],{9062:(X,p,e)=>{e.r(p),e.d(p,{OrderValidateModule:()=>B});var v=e(2410),y=e(8128),g=e(1467),s=e(2816),F=e(4534),m=e(8487),t=e(8284),T=e(9607),f=e(8991),C=e(5714),b=e(5478),c=e(2943),O=e(8961),u=e(6081),h=e(4447),E=e(6061);function I(a,l){if(1&a){const n=t.RV6();t.j41(0,"app-button",8),t.nI1(1,"appTranslation"),t.nI1(2,"async"),t.bIt("clickButton",function(){t.eBV(n);const r=t.XpG(2);return t.Njj(r.onRetry())}),t.EFF(3,"\n "),t.k0s()}2&a&&t.Y8G("buttonText",t.bMT(2,4,t.bMT(1,2,"button_retry")))("showLoader",!1)}function M(a,l){if(1&a){const n=t.RV6();t.qex(0),t.EFF(1,"\n "),t.nrm(2,"app-direct-html",4),t.nI1(3,"appTranslation"),t.nI1(4,"async"),t.EFF(5,"\n "),t.j41(6,"div",5),t.EFF(7,"\n "),t.DNE(8,I,4,6,"app-button",6),t.EFF(9,"\n "),t.j41(10,"app-button",7),t.nI1(11,"appTranslation"),t.nI1(12,"async"),t.bIt("clickButton",function(){t.eBV(n);const r=t.XpG();return t.Njj(r.onClose())}),t.EFF(13,"\n "),t.k0s(),t.EFF(14,"\n "),t.k0s(),t.EFF(15,"\n "),t.bVm()}if(2&a){const n=l.ngIf;t.R7$(2),t.Y8G("value",t.bMT(4,7,t.bMT(3,5,n)))("ngClass","dialogue_payment_not_completed"===n?"payment__error":"payment__message"),t.R7$(6),t.Y8G("ngIf","dialogue_payment_not_completed"===n),t.R7$(2),t.Y8G("buttonText",t.bMT(12,11,t.bMT(11,9,"dialogue_payment_not_completed"!==n?"button_ok":"button_cancel")))("showLoader",!1)}}function x(a,l){1&a&&(t.EFF(0,"\n "),t.nrm(1,"app-loader-spinner",9),t.EFF(2,"\n "))}let V=(()=>{class a{constructor(n,o,r,d){this.activatedRoute=n,this.routerWrapper=o,this.configService=r,this.checkoutService=d,this.orderInfo$=this.activatedRoute.queryParams.pipe((0,s.T)(i=>({orderId:+i.orderId,zeroSum:"true"===i.zeroSum,valid:!0})),(0,F.p)(i=>!!i)),this.stackItems$=this.activatedRoute.queryParams.pipe((0,s.T)(i=>i.stack?i.stack.split(",").map(R=>{const[S,_,U,G]=R.split("_");return{id:+S,type:_,currency:G}}):[])),this.orderValidationTranslationKey$=new v.t(null)}ngOnInit(){this.validateOrder()}onRetry(){this.validateOrder()}onClose(){this.routerWrapper.closeModal()}validateOrder(){this.orderInfo$.pipe((0,y.n)(n=>n.orderId>0?this.checkoutService.validatePaymentOrder(n.orderId).pipe((0,s.T)(o=>({...n,valid:o}))):(0,g.of)({...n,valid:n.valid})),(0,m.s)(1)).subscribe(n=>{n.valid&&(this.checkStackedItems(),this.checkoutService.paymentCompleted(n.orderId)),this.orderValidationTranslationKey$.next(n.valid?n.zeroSum?"dialogue_product_purchased_without_payment":"dialogue_product_purchased":"dialogue_payment_not_completed")})}checkStackedItems(){this.stackItems$.pipe((0,m.s)(1)).subscribe(n=>{n.length?this.checkoutService.addItemsToCheckoutCart(n,!1,!0,!1):this.checkoutService.resetCart()})}static{this.\u0275fac=function(o){return new(o||a)(t.rXU(T.nX),t.rXU(f.E),t.rXU(C.w),t.rXU(b._))}}static{this.\u0275cmp=t.VBU({type:a,selectors:[["app-product-order-validate"]],decls:12,vars:4,consts:[["loadingTemplate",""],[1,"component","payment","product-order-validate"],[1,"component__container"],[4,"ngIf","ngIfElse"],[3,"value","ngClass"],[1,"payment__actions"],["class","app-button__small",3,"buttonText","showLoader","clickButton",4,"ngIf"],[1,"app-button__small","button-close",3,"clickButton","buttonText","showLoader"],[1,"app-button__small",3,"clickButton","buttonText","showLoader"],[1,"payment__loader"]],template:function(o,r){if(1&o&&(t.j41(0,"div",1),t.EFF(1,"\n "),t.j41(2,"section",2),t.EFF(3,"\n "),t.DNE(4,M,16,13,"ng-container",3),t.nI1(5,"async"),t.EFF(6,"\n "),t.DNE(7,x,3,0,"ng-template",null,0,t.C5r),t.EFF(9,"\n "),t.k0s(),t.EFF(10,"\n"),t.k0s(),t.EFF(11,"\n")),2&o){const d=t.sdS(8);t.R7$(4),t.Y8G("ngIf",t.bMT(5,2,r.orderValidationTranslationKey$))("ngIfElse",d)}},dependencies:[c.YU,c.bT,O._,u.y,h.Q,c.Jj,E.c],styles:["@media screen and (min-width: 769px){.mobile-only[_ngcontent-%COMP%]{display:none}}@media screen and (max-width: 768px){.tablet-only[_ngcontent-%COMP%]{display:none}}@media screen and (min-width: 1024px){.tablet-only[_ngcontent-%COMP%]{display:none}}@media screen and (max-width: 1023px){.desktop-only[_ngcontent-%COMP%]{display:none}}.product-order-validate[_ngcontent-%COMP%] .payment__actions[_ngcontent-%COMP%] .button-close[_ngcontent-%COMP%]{margin:0 0 0 1rem}@media screen and (max-width: 768px){.product-order-validate[_ngcontent-%COMP%] .payment__actions[_ngcontent-%COMP%] .button-close[_ngcontent-%COMP%]{margin:1rem 0 0}}"],changeDetection:0})}}return a})();var k=e(5171),P=e(7213),j=e(3282);const $=[{path:"",component:V}];let B=(()=>{class a{static{this.\u0275fac=function(o){return new(o||a)}}static{this.\u0275mod=t.$C({type:a})}static{this.\u0275inj=t.G2t({imports:[P.Z,u.y,h.Q,k.n,j.K.forChild($)]})}}return a})()}}]);
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.