PageSourceSearch

https://citydeals.hu/774.d7f7eeff570acccc.js

js citydeals.hu collected 2026-10-08 20:31:59 UTC 175,447 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkclient=self.webpackChunkclient||[]).push([[774],{4774:(Pe,H,p)=>{p.r(H),p.d(H,{PagesBasketModule:()=>Bi});var u=p(9808),k=p(4202),P=p(2116),c=p(6317),_=p(655),l=p(3075),y=p(4987),f=p(5932),F=p(4004),v=p(8389),ie=p(5592),e=p(5e3),Qe=p(9300),Ye=p(8675),Xe=p(3900),ge=p(9841),w=p(9751),O=p(6367);const xt=function(n){return{"basket-stepper__step--active":n}},yt=function(n){return{"d-none d-md-block":n}};function bt(n,o){if(1&n&&(e.\u0275\u0275elementStart(0,"button",3)(1,"div",4),e.\u0275\u0275text(2),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(3,"div",5),e.\u0275\u0275text(4),e.\u0275\u0275elementEnd()()),2&n){const t=o.$implicit,i=e.\u0275\u0275nextContext().ngIf;e.\u0275\u0275property("disabled",t.disabled)("ngClass",e.\u0275\u0275pureFunction1(6,xt,i===t.position))("routerLink",t.route),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate1(" ",t.position," "),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(8,yt,i!==t.position)),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",t.name," ")}}function kt(n,o){if(1&n&&(e.\u0275\u0275elementStart(0,"div",1),e.\u0275\u0275template(1,bt,5,10,"button",2),e.\u0275\u0275pipe(2,"async"),e.\u0275\u0275elementEnd()),2&n){const t=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",e.\u0275\u0275pipeBind1(2,1,t.steps$))}}class L{constructor(o,t,i,r,a){this.store=o,this.router=t,this.route=i,this.basketService=r,this.translocoService=a,this.defaultSteps=[{route:c.bF.overview,position:1,name:"",disabled:!1},{route:c.bF.paymentMethod,position:2,name:"",disabled:!0}],this.translocoService.selectTranslateObject("PAGE.BASKET_STEPPER.STEPPER").subscribe(s=>{this.defaultSteps[0].name=s.FIRST_STEP_TEXT,this.defaultSteps[1].name=s.SECOND_STEP_TEXT}),this.activeStepPosition$=this.router.events.pipe((0,Qe.h)(s=>s instanceof k.m2),(0,Ye.O)(null),(0,Xe.w)(()=>{var s;return null===(s=this.route.firstChild)||void 0===s?void 0:s.data}),(0,F.U)(s=>s.step))}ngOnInit(){this.steps$=(0,ge.a)([this.offersCount$,this.addressForm$,this.decorativePackaging$,this.basketService.basketFormValid$]).pipe((0,F.U)(([o,t,i,r])=>[...this.defaultSteps].map(a=>{var s;if(2===a.position){const m=null!==(s=null==i?void 0:i.some(d=>!d.assigned.some(C=>C.selected)))&&void 0!==s&&s;a.disabled=0===o||m||!r}return 3===a.position&&(a.disabled=0===o||(0,v.kK)(t)),a})))}}L.\u0275fac=function(o){return new(o||L)(e.\u0275\u0275directiveInject(f.yh),e.\u0275\u0275directiveInject(k.F0),e.\u0275\u0275directiveInject(k.gz),e.\u0275\u0275directiveInject(c.vD),e.\u0275\u0275directiveInject(O.Vn))},L.\u0275cmp=e.\u0275\u0275defineComponent({type:L,selectors:[["citydeals-basket-stepper"]],decls:2,vars:3,consts:[["class","d-flex justify-content-center justify-content-md-between mt-1 mb-4",4,"ngIf"],[1,"d-flex","justify-content-center","justify-content-md-between","mt-1","mb-4"],["class","basket-stepper__step d-flex align-items-center border-0 p-0 bg-transparent text-start fs-7",3,"disabled","ngClass","routerLink",4,"ngFor","ngForOf"],[1,"basket-stepper__step","d-flex","align-items-center","border-0","p-0","bg-transparent","text-start","fs-7",3,"disabled","ngClass","routerLink"],[1,"basket-stepper__step-position","d-flex","justify-content-center","align-items-center","me-2","rounded-circle","border","border-primary"],[1,"me-1",3,"ngClass"]],template:function(o,t){1&o&&(e.\u0275\u0275template(0,kt,3,3,"div",0),e.\u0275\u0275pipe(1,"async")),2&o&&e.\u0275\u0275property("ngIf",e.\u0275\u0275pipeBind1(1,1,t.activeStepPosition$))},directives:[u.NgIf,u.NgForOf,u.NgClass,k.rH],pipes:[u.AsyncPipe],styles:[".basket-stepper__step-position[_ngcontent-%COMP%]{min-width:30px;min-height:30px}.basket-stepper__step[disabled][_ngcontent-%COMP%]{color:#959cac}.basket-stepper__step[disabled][_ngcontent-%COMP%] > .basket-stepper__step-position[_ngcontent-%COMP%]{border-color:#959cac!important;color:#959cac!important}.basket-stepper__step.basket-stepper__step--active[_ngcontent-%COMP%]{font-weight:700}.basket-stepper__step.basket-stepper__step--active[_ngcontent-%COMP%] > .basket-stepper__step-position[_ngcontent-%COMP%]{background:#454f63;color:#fff}"]}),(0,_.gn)([(0,f.Ph)(P.AuthState.isLoggedIn),(0,_.w6)("design:type",w.y)],L.prototype,"isLoggedIn$",void 0),(0,_.gn)([(0,f.Ph)(c.Kk.addressForm),(0,_.w6)("design:type",w.y)],L.prototype,"addressForm$",void 0),(0,_.gn)([(0,f.Ph)(c.Kk.offersCount),(0,_.w6)("design:type",w.y)],L.prototype,"offersCount$",void 0),(0,_.gn)([(0,f.Ph)(c.Kk.decorativePackaging),(0,_.w6)("design:type",w.y)],L.prototype,"decorativePackaging$",void 0);let X=class{constructor(o,t,i){this.store=o,this.route=t,this.scriptService=i,this.addressForm=new l.cw({}),this.trustTokenBasketURL=ie.N.trustTokenBasketURL}ngOnInit(){var o,t;null===(t=null===(o=this.route)||void 0===o?void 0:o.firstChild)||void 0===t||t.data.pipe((0,y.t)(this),(0,F.U)(i=>i.step)).subscribe(i=>{this.store.dispatch(new c.Vr(i))}),this.loadScript()}loadScript(){const o=this.scriptService.loadJsScript(this.trustTokenBasketURL);o.onload=()=>{console.log("TrustIndexBasket script loaded.")},o.onerror=()=>{console.error("Could not load the TrustIndexBasket API Script!")};const t=document.getElementById("trustIndexBasket");(0,v.kK)(t)?console.log("Element not found"):t.appendChild(o)}};X.\u0275fac=function(o){return new(o||X)(e.\u0275\u0275directiveInject(f.yh),e.\u0275\u0275directiveInject(k.gz),e.\u0275\u0275directiveInject(v.YI))},X.\u0275cmp=e.\u0275\u0275defineComponent({type:X,selectors:[["citydeals-basket"]],decls:7,vars:0,consts:[[1,"d-flex","justify-content-center"],[1,"container","d-flex","flex-column","align-items-center"],[1,"basket-layout__stepper","container-lg"],[1,"w-100","p-3","p-md-0"],[1,"d-md-none"],["id","trustIndexBasket",1,"container","pt-3"]],template:function(o,t){1&o&&(e.\u0275\u0275elementStart(0,"div",0)(1,"div",1),e.\u0275\u0275element(2,"citydeals-basket-stepper",2),e.\u0275\u0275elementStart(3,"div",3),e.\u0275\u0275element(4,"router-outlet"),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(5,"div",4),e.\u0275\u0275elementEnd()(),e.\u0275\u0275element(6,"div",5))},directives:[L,k.lC],styles:[".basket-layout__stepper[_ngcontent-%COMP%]{max-width:730px}"]}),X=(0,_.gn)([(0,y.c)(),(0,_.w6)("design:paramtypes",[f.yh,k.gz,v.YI])],X);var De=p(1135),wt=p(4128),fe=p(1884),Ze=p(8372),Et=p(453),Ot=p(2181),It=p(4244),re=p(5698),ce=p(520),U=p(7261),Mt=p(5054),Re=p(5245),qe=p(6287),I=p(8966),Je=p(7423),Fe=p(773),de=p(7095);function Tt(n,o){1&n&&(e.\u0275\u0275elementStart(0,"p",20),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"transloco"),e.\u0275\u0275elementEnd()),2&n&&(e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(2,1,"PAGE.GIFT.SELECTED_GIFT_THEME_INFORMATION")))}function St(n,o){1&n&&(e.\u0275\u0275elementStart(0,"p",20),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"transloco"),e.\u0275\u0275elementEnd()),2&n&&(e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(2,1,"PAGE.GIFT.SELECTED_GIFT_THEME_INFORMATION")))}const Pt=function(n){return{"selected-voucher":n}
1},Dt=function(n){return{"selected-voucher-image-text":n}};function Rt(n,o){if(1&n){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",27),e.\u0275\u0275listener("click",function(){const a=e.\u0275\u0275restoreView(t).$implicit;return e.\u0275\u0275nextContext(2).onImageClick(a)}),e.\u0275\u0275elementStart(1,"div"),e.\u0275\u0275element(2,"img",28),e.\u0275\u0275pipe(3,"setImageUrl"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"div")(5,"p",29),e.\u0275\u0275text(6),e.\u0275\u0275elementEnd()()()}if(2&n){const t=o.$implicit,i=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(2),e.\u0275\u0275property("src",e.\u0275\u0275pipeBind1(3,4,t.thumbnail_image_url),e.\u0275\u0275sanitizeUrl)("ngClass",e.\u0275\u0275pureFunction1(6,Pt,t.id===(null==i.selected?null:i.selected.id))),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(8,Dt,t.id===(null==i.selected?null:i.selected.id))),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",t.title," ")}}function Ft(n,o){if(1&n&&(e.\u0275\u0275element(0,"img",30),e.\u0275\u0275pipe(1,"setImageUrl")),2&n){const t=e.\u0275\u0275nextContext(2);e.\u0275\u0275property("src",e.\u0275\u0275pipeBind1(1,1,t.selected.preview_image_url),e.\u0275\u0275sanitizeUrl)}}function Bt(n,o){if(1&n&&(e.\u0275\u0275elementStart(0,"div",2)(1,"div",21)(2,"div",22)(3,"div",23),e.\u0275\u0275template(4,Rt,7,10,"div",24),e.\u0275\u0275pipe(5,"async"),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(6,"div",25),e.\u0275\u0275template(7,Ft,2,3,"img",26),e.\u0275\u0275elementEnd()()),2&n){const t=e.\u0275\u0275nextContext();e.\u0275\u0275advance(4),e.\u0275\u0275property("ngForOf",e.\u0275\u0275pipeBind1(5,2,t.images$)),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngIf",t.selected)}}function At(n,o){1&n&&(e.\u0275\u0275elementStart(0,"div",31),e.\u0275\u0275element(1,"mat-progress-spinner",32),e.\u0275\u0275elementEnd())}let Z=class{constructor(o,t,i){this.data=o,this.dialogRef=t,this.httpClient=i,this.loading=!0,this.images$=new De.X([]),o&&(this.selected=o),this.getImages()}getImages(){this.httpClient.get(`${ie.N.backendUrl}/voucher-designs/`).subscribe(o=>{this.loading=!1,this.images$.next(o.result)})}onImageClick(o){this.selected=o}onCloseDialog(){this.dialogRef.close()}onApprovesDialog(){this.dialogRef.close(this.selected)}};Z.\u0275fac=function(o){return new(o||Z)(e.\u0275\u0275directiveInject(I.WI),e.\u0275\u0275directiveInject(I.so),e.\u0275\u0275directiveInject(ce.eN))},Z.\u0275cmp=e.\u0275\u0275defineComponent({type:Z,selectors:[["citydeals-basket-gift-images-form"]],decls:42,vars:18,consts:[[1,"mat-dialog-title"],[1,"mobile-title"],[1,"row"],[1,"col-8","col-md-8","col-sm-8"],[1,"col-4","col-md-4","col-sm-4"],["mat-button","",1,"close-icon","close-button",3,"click"],[1,"mobile-mat-icon"],["mat-button","",1,"save-button",3,"click"],[1,"col-md-6","col-sm-12","selected-voucher-container"],[1,"selected-voucher-title"],["class","selected-voucher-text",4,"ngIf"],[1,"no-mobile-title"],[1,"col-md-6","col-sm-12"],[1,"mat-dialog-content"],["class","row",4,"ngIf","ngIfElse"],["loadingTpl",""],[1,"mat-dialog-actions"],[1,"p-2"],["type","button",1,"cd-btn","cd-btn","cd-btn--rounded",3,"click"],["type","button",1,"cd-btn","cd-btn--green","cd-btn--rounded",3,"click"],[1,"selected-voucher-text"],[1,"col-md-12","col-sm-12","col-lg-8"],[1,"container"],[1,"row","image-row"],["class","col-12 col-sm-6 col-md-6 col-lg-3","style","text-align: center",3,"click",4,"ngFor","ngForOf"],[1,"col-md-12","col-sm-12","col-lg-4","text-center","visible-voucher-template"],["alt","voucher-preview-image","class","voucher-preview-image",3,"src",4,"ngIf"],[1,"col-12","col-sm-6","col-md-6","col-lg-3",2,"text-align","center",3,"click"],[1,"voucher-image",3,"src","ngClass"],[1,"voucher-image-title",3,"ngClass"],["alt","voucher-preview-image",1,"voucher-preview-image",3,"src"],[1,"d-flex","justify-content-center","w-100","h-100",2,"align-items","center"],["mode","indeterminate","diameter","40"]],template:function(o,t){if(1&o&&(e.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"h1"),e.\u0275\u0275text(5),e.\u0275\u0275pipe(6,"transloco"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(7,"div",4)(8,"button",5),e.\u0275\u0275listener("click",function(){return t.onCloseDialog()}),e.\u0275\u0275elementStart(9,"mat-icon",6),e.\u0275\u0275text(10,"cancel"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(11,"button",7),e.\u0275\u0275listener("click",function(){return t.onApprovesDialog()}),e.\u0275\u0275elementStart(12,"mat-icon",6),e.\u0275\u0275text(13,"check_circle"),e.\u0275\u0275elementEnd()()()(),e.\u0275\u0275elementStart(14,"div",2)(15,"div",8)(16,"p",9),e.\u0275\u0275text(17),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(18,Tt,3,3,"p",10),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(19,"div",11)(20,"div",2)(21,"div",12)(22,"h1"),e.\u0275\u0275text(23),e.\u0275\u0275pipe(24,"transloco"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(25,"div",8)(26,"p",9),e.\u0275\u0275text(27),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(28,St,3,3,"p",10),e.\u0275\u0275elementEnd()()()(),e.\u0275\u0275elementStart(29,"div",13),e.\u0275\u0275template(30,Bt,8,4,"div",14),e.\u0275\u0275template(31,At,2,0,"ng-template",null,15,e.\u0275\u0275templateRefExtractor),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(33,"div",16)(34,"div",17)(35,"button",18),e.\u0275\u0275listener("click",function(){return t.onCloseDialog()}),e.\u0275\u0275text(36),e.\u0275\u0275pipe(37,"transloco"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(38,"div",17)(39,"button",19),e.\u0275\u0275listener("click",function(){return t.onApprovesDialog()}),e.\u0275\u0275text(40),e.\u0275\u0275pipe(41,"transloco"),e.\u0275\u0275elementEnd()()()),2&o){const i=e.\u0275\u0275reference(32);e.\u0275\u0275advance(5),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(6,10,"PAGE.GIFT.HEADER_TEXT")),e.\u0275\u0275advance(12),e.\u0275\u0275textInterpolate(null==t.selected?null:t.selected.title),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",t.selected),e.\u0275\u0275advance(5),e.\u0275\u0275textInterpolate1("",e.\u0275\u0275pipeBind1(24,12,"PAGE.GIFT.HEADER_TEXT")," "),e.\u0275\u0275advance(4),e.\u0275\u0275textInterpolate(null==t.selected?null:t.selected.title),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",t.selected),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",!t.loading)("ngIfElse",i),e.\u0275\u0275advance(6),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(37,14,"PAGE.GIFT.CANCEL_BUTTON_TEXT")," "),e.\u0275\u0275advance(4),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(41,16,"PAGE.GIFT.APPROVE_BUTTON_TEXT")," ")}},directives:[Je.lW,Re.Hw,u.NgIf,u.NgForOf,u.NgClass,Fe.Ou],pipes:[O.Ot,u.AsyncPipe,de.E],styles:[".mat-dialog-title[_ngcontent-%COMP%]{display:block}.mat-dialog-actions[_ngcontent-%COMP%]{display:flex;float:right;width:100%;justify-content:flex-end;align-content:flex-end}.mat-dialog-content[_ngcontent-%COMP%]{overflow:auto;display:block;width:70vw;min-height:60vh;max-height:60vh}h1[_ngcontent-%COMP%]{color:#454f63;font-weight:700;font-size:2.1rem;padding-top:10px;padding-bottom:14px;font-family:Montserrat}.selected-voucher-container[_ngcontent-%COMP%]{color:#959cac;text-align:end}.selected-voucher-title[_ngcontent-%COMP%]{font-size:1.1rem;margin:0;font-weight:500;font-family:Montserrat;color:#454f63!important;line-height:normal}.selected-voucher-text[_ngcontent-%COMP%]{font-size:1rem;margin:0;font-family:Montserrat;color:#c0c4cc;font-weight:200;line-height:normal}.selected-voucher[_ngcontent-%COMP%]{opacity:.7;color:#fff!important;border-radius:5px!important;background-color:#218437!important}.selected-voucher-image-text[_ngcontent-%COMP%]{color:#00b267!important}.voucher-image[_ngcontent-%COMP%]{max-width:100%;height:auto;padding:5px;background-color:#f0f0f0;border-radius:5px}.voucher-image-title[_ngcontent-%COMP%]{font-size:.8rem;padding-top:10px;margin-bottom:2px;font-weight:800;color:#454f63;text-align:center}.voucher-preview-image[_ngcontent-%COMP%]{height:auto;max-width:100%;width:-webkit-fill-available;background-color:#fff;border:1px solid lightgray;box-shadow:0 4px 8px #0003,0 6px 20px #00000030}.voucher-image[_ngcontent-%COMP%]:hover{cursor:pointer;background-color:#00b267;color:#fff}
1.mat-progress-spinner[_ngcontent-%COMP%]   circle[_ngcontent-%COMP%], .mat-spinner[_ngcontent-%COMP%]   circle[_ngcontent-%COMP%]{stroke:#00b267!important}.visible-voucher-template[_ngcontent-%COMP%]{display:block}.image-row[_ngcontent-%COMP%]{overflow:auto;max-height:60vh}.mobile-title[_ngcontent-%COMP%]{display:none}.no-mobile-title[_ngcontent-%COMP%]{display:block}.mobile-mat-icon[_ngcontent-%COMP%]{width:34px;height:28px;font-size:34px}.close-button[_ngcontent-%COMP%]{float:right;padding:0;margin:0;border:0;color:#959cac;font-size:28px;background-color:transparent}.save-button[_ngcontent-%COMP%]{float:right;padding:0;margin:0;border:0;color:#00b267;font-size:28px;background-color:transparent}@media (max-width: 900px) and (orientation: landscape){[_nghost-%COMP%]   .mobile-title[_ngcontent-%COMP%]{display:block}[_nghost-%COMP%]   .no-mobile-title[_ngcontent-%COMP%]{display:none}[_nghost-%COMP%]   .mat-dialog-actions[_ngcontent-%COMP%]{display:none}[_nghost-%COMP%]   .mat-dialog-content[_ngcontent-%COMP%]{width:auto!important;overflow:hidden!important}[_nghost-%COMP%]   .selected-voucher-container[_ngcontent-%COMP%]{text-align:center!important}[_nghost-%COMP%]   h1[_ngcontent-%COMP%]{font-size:1.6rem!important;padding-top:0!important}[_nghost-%COMP%]   .visible-voucher-template[_ngcontent-%COMP%]{display:none!important}[_nghost-%COMP%]   .voucher-image[_ngcontent-%COMP%]{width:100%!important}}@media (max-width: 995px) and (orientation: portrait){[_nghost-%COMP%]   .mobile-title[_ngcontent-%COMP%]{display:block}[_nghost-%COMP%]   .no-mobile-title[_ngcontent-%COMP%]{display:none}[_nghost-%COMP%]   .mat-dialog-actions[_ngcontent-%COMP%]{display:none}[_nghost-%COMP%]   .mat-dialog-content[_ngcontent-%COMP%]{width:auto!important;overflow:hidden!important}[_nghost-%COMP%]   .selected-voucher-container[_ngcontent-%COMP%]{text-align:center!important}[_nghost-%COMP%]   h1[_ngcontent-%COMP%]{font-size:1.1rem!important;padding-top:0!important}[_nghost-%COMP%]   .visible-voucher-template[_ngcontent-%COMP%]{display:none!important}[_nghost-%COMP%]   .voucher-image[_ngcontent-%COMP%]{width:100%!important}}"]}),Z=(0,_.gn)([(0,y.c)(),(0,_.w6)("design:paramtypes",[Object,I.so,ce.eN])],Z);var he=p(2313);function Nt(n,o){1&n&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275elementStart(1,"div",5),e.\u0275\u0275element(2,"mat-spinner",6),e.\u0275\u0275elementStart(3,"p"),e.\u0275\u0275text(4,"PDF bet\xf6lt\xe9se folyamatban..."),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementContainerEnd())}function Lt(n,o){if(1&n&&e.\u0275\u0275element(0,"iframe",8),2&n){const t=e.\u0275\u0275nextContext(2);e.\u0275\u0275property("src",t.pdfUrl,e.\u0275\u0275sanitizeResourceUrl)}}function Gt(n,o){if(1&n&&e.\u0275\u0275template(0,Lt,1,1,"iframe",7),2&n){const t=e.\u0275\u0275nextContext();e.\u0275\u0275property("ngIf",t.pdfUrl)}}let q=class{constructor(o,t,i,r){this.sanitizer=o,this.basketService=t,this.dialogRef=i,this.data=r,this.loading=!0}ngOnInit(){this.loadPdf()}loadPdf(){this.basketService.getGiftPdf(this.data.payload).pipe((0,y.t)(this)).subscribe({next:o=>{const t=URL.createObjectURL(o);this.pdfUrl=this.sanitizer.bypassSecurityTrustResourceUrl(t),this.loading=!1},error:o=>{console.error("PDF bet\xf6lt\xe9si hiba",o),this.loading=!1}})}close(){this.dialogRef.close()}};q.\u0275fac=function(o){return new(o||q)(e.\u0275\u0275directiveInject(he.DomSanitizer),e.\u0275\u0275directiveInject(c.vD),e.\u0275\u0275directiveInject(I.so),e.\u0275\u0275directiveInject(I.WI))},q.\u0275cmp=e.\u0275\u0275defineComponent({type:q,selectors:[["citydeals-basket-gift-pdf-modal"]],decls:7,vars:2,consts:[[1,"pdf-dialog-container"],[4,"ngIf","ngIfElse"],["pdfContent",""],["align","end",1,"dialog-actions"],[1,"cd-btn","cd-btn--green","cd-btn--rounded",3,"click"],[1,"loading-container"],["diameter","60"],["width","100%","height","100%","frameborder","0",3,"src",4,"ngIf"],["width","100%","height","100%","frameborder","0",3,"src"]],template:function(o,t){if(1&o&&(e.\u0275\u0275elementStart(0,"div",0),e.\u0275\u0275template(1,Nt,5,0,"ng-container",1),e.\u0275\u0275template(2,Gt,1,1,"ng-template",null,2,e.\u0275\u0275templateRefExtractor),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"mat-dialog-actions",3)(5,"button",4),e.\u0275\u0275listener("click",function(){return t.close()}),e.\u0275\u0275text(6," Bez\xe1r\xe1s "),e.\u0275\u0275elementEnd()()),2&o){const i=e.\u0275\u0275reference(3);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",t.loading)("ngIfElse",i)}},directives:[u.NgIf,Fe.$g,I.H8],styles:[".pdf-dialog-container[_ngcontent-%COMP%]{position:relative;width:100%;height:calc(100% - 64px);background:#f9f9f9;display:flex;align-items:center;justify-content:center}.loading-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;text-align:center;color:#555}.loading-container[_ngcontent-%COMP%]   mat-spinner[_ngcontent-%COMP%]{margin-bottom:16px}iframe[_ngcontent-%COMP%]{border:none;display:block}.dialog-actions[_ngcontent-%COMP%]{border-top:1px solid #ddd;padding:20px 0;background-color:#fff}  .mat-dialog-container.pdf-dialog{padding:0;border-radius:8px;overflow:hidden;background:#fff}  .mat-progress-spinner circle, .mat-spinner[_ngcontent-%COMP%]   circle[_ng
1content-%COMP%]{stroke:#00b267!important}"]}),q=(0,_.gn)([(0,y.c)(),(0,_.w6)("design:paramtypes",[he.DomSanitizer,c.vD,I.so,Object])],q);var Be=p(5221),G=p(9814);const Vt=["measurer"];function jt(n,o){if(1&n&&(e.\u0275\u0275element(0,"img",39),e.\u0275\u0275pipe(1,"setImageUrl")),2&n){const t=e.\u0275\u0275nextContext(3);e.\u0275\u0275property("src",e.\u0275\u0275pipeBind1(1,1,null==t.giftForm.value?null:t.giftForm.value.voucherDesign.preview_image_url),e.\u0275\u0275sanitizeUrl)}}const Ae=function(n){return{type:"required",msg:n}},zt=function(n){return{type:"email",msg:n}},et=function(n,o){return[n,o]};function Wt(n,o){if(1&n&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275elementStart(1,"div",40),e.\u0275\u0275element(2,"input",41)(3,"citydeals-form-control-error-messages",18),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementContainerEnd()),2&n){const t=e.\u0275\u0275nextContext().$implicit,i=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(2),e.\u0275\u0275propertyInterpolate("placeholder",t("CART.GIFTED_PERSON_EMAIL")),e.\u0275\u0275advance(1),e.\u0275\u0275property("parentFormGroup",i.giftForm)("control",i.emailControl)("messageTypes",e.\u0275\u0275pureFunction2(8,et,e.\u0275\u0275pureFunction1(4,Ae,t("VALIDATION_TEXT.REQUIRED")),e.\u0275\u0275pureFunction1(6,zt,t("VALIDATION_TEXT.INVALID_EMAIL_FORMAT"))))}}const Ht=function(n){return[n]},Ut=function(n){return{type:"overflow",msg:n}};function $t(n,o){if(1&n){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",3)(1,"div",4)(2,"div",5)(3,"div",4)(4,"div",6)(5,"p",7),e.\u0275\u0275text(6),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(7,"div",8)(8,"div",9)(9,"div",10),e.\u0275\u0275text(10," 1 "),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(11,"span",11),e.\u0275\u0275text(12),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(13,"div",9)(14,"div",10),e.\u0275\u0275text(15," 2 "),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(16,"span",11),e.\u0275\u0275text(17),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(18,"div",4)(19,"div",12)(20,"img",13),e.\u0275\u0275listener("click",function(){return e.\u0275\u0275restoreView(t),e.\u0275\u0275nextContext(2).openGiftImageDialog()}),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(21,"div",14)(22,"div",15)(23,"div",16)(24,"span"),e.\u0275\u0275text(25,"Kedves"),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(26,"input",17),e.\u0275\u0275elementStart(27,"span"),e.\u0275\u0275text(28,"\xa0!"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275element(29,"citydeals-form-control-error-messages",18),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(30,"div",19)(31,"span",20)(32,"strong"),e.\u0275\u0275text(33,"Fontos:"),e.\u0275\u0275elementEnd(),e.\u0275\u0275text(34," az aj\xe1nd\xe9kk\xe1rty\xe1ra "),e.\u0275\u0275elementStart(35,"strong"),e.\u0275\u0275text(36,"maximum 3 soros \xfczenet f\xe9r r\xe1"),e.\u0275\u0275elementEnd(),e.\u0275\u0275text(37,". A hosszabb sz\xf6veg nem fog megjelenni. "),e.\u0275\u0275elementStart(38,"strong"),e.\u0275\u0275text(39,"G\xe9peld be az \xfczeneted az al\xe1bbi mez\u0151be:"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(40,"textarea",21),e.\u0275\u0275listener("paste",function(r){return e.\u0275\u0275restoreView(t),e.\u0275\u0275nextContext(2).onMessagePaste(r)})("input",function(r){return e.\u0275\u0275restoreView(t),e.\u0275\u0275nextContext(2).onMessageChange(r)})("keydown",function(r){return e.\u0275\u0275restoreView(t),e.\u0275\u0275nextContext(2).onMessageKeyDown(r)}),e.\u0275\u0275text(41,"              "),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(42,"citydeals-form-control-error-messages",18),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(43,"div",22,23),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(45,"div",24)(46,"div",25),e.\u0275\u0275template(47,jt,2,3,"img",26),e.\u0275\u0275elementStart(48,"div",27)(49,"button",28),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(t);const r=e.\u0275\u0275nextContext(2);return r.getGiftPdf(r.giftForm.value)}),e.\u0275\u0275text(50," El\u0151n\xe9zet "),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(51,"div")(52,"span",29),e.\u0275\u0275text(53),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(54,"span",30),e.\u0275\u0275text(55),e.\u0275\u0275elementEnd()()()(),e.\u0275\u0275elementStart(56,"div",31)(57,"mat-radio-group",32)(58,"div",33)(59,"div",34)(60,"span",35),e.\u0275\u0275text(61,"Hogyan k\xe9red?"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(62,"mat-radio-button",36),e.\u0275\u0275text(63," Online voucherk\xe9nt "),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(64,"div",37)(65,"mat-radio-button",36),e.\u0275\u0275text(66," D\xedszcsomagol\xe1sban kisz\xe1ll\xedt\xe1ssal "),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275template(67,Wt,4,11,"ng-container",38),e.\u0275\u0275elementEnd()()}if(2&n){const t=o.$implicit,i=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(6),e.\u0275\u0275textInterpolate1(" ",t("CART.GIFT_INFORMATION_TEXT")," "),e.\u0275\u0275advance(6),e.\u0275\u0275textInterpolate(t("CART.GIFT_STEP_ONE")),e.\u0275\u0275advance(5),e.\u0275\u0275textInterpolate(t("CART.GIFT_STEP_TWO")),e.\u0275\u0275advance(3),e.\u0275\u0275propertyInterpolate("alt",t("CART.GIFT_IMAGE_SELECTOR_ALT_TEXT")),e.\u0275\u0275advance(6),e.\u0275\u0275propertyInterpolate("placeholder",t("CART.GIFTED_PERSON_NAME")),e.\u0275\u0275advance(3),e.\u0275\u0275property("parentFormGroup",i.giftForm)("control",i.nameControl)("messageTypes",e.\u0275\u0275pureFunction1(20,Ht,e.\u0275\u0275pureFunction1(18,Ae,t("VALIDATION_TEXT.REQUIRED")))),e.\u0275\u0275advance(11),e.\u0275\u0275propertyInterpolate1("placeholder","",t("CART.GIFTED_PERSON_MESSAGE"),"*"),e.\u0275\u0275advance(2),e.\u0275\u0275property("parentFormGroup",i.giftForm)("control",i.messageControl)("messageTypes",e.\u0275\u0275pureFunction2(26,et,e.\u0275\u0275pureFunction1(22,Ae,t("VALIDATION_TEXT.REQUIRED")),e.\u0275\u0275pureFunction1(24,Ut,t("VALIDATION_TEXT.OVERFLOW")))),e.\u0275\u0275advance(5),e.\u0275\u0275property("ngIf",null==i.giftForm.value?null:i.giftForm.value.voucherDesign),e.\u0275\u0275advance(6),e.\u0275\u0275textInterpolate(null==i.giftForm.value?null:i.giftForm.value.voucherDesign.title),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(t("CART.SELECTED_GIFT_THEME_INFORMATION")),e.\u0275\u0275advance(7),e.\u0275\u0275property("value",i.deliveryTypeEnum.EMAIL),e.\u0275\u0275advance(3),e.\u0275\u0275property("value",i.deliveryTypeEnum.DELIVERY),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",(null==i.giftForm.value?null:i.giftForm.value.deliveryType)===i.deliveryTypeEnum.EMAIL)}}function Kt(n,o){if(1&n&&(e.\u0275\u0275elementStart(0,"div",1),e.\u0275\u0275template(1,$t,68,29,"div",2),e.\u0275\u0275elementEnd()),2&n){const t=e.\u0275\u0275nextContext();e.\u0275\u0275property("@fadeIn2XFastEnter",void 0)("formGroup",t.giftForm),e.\u0275\u0275advance(1),e.\u0275\u0275property("translocoRead","PAGE")}}let J=class{constructor(o,t){this.dialog=o,this.matSnackBar=t,this.deliveryTypeEnum=c.eo,this.measurerValid=!0,this.measurerErrorText="A megadott \xfczenet t\xfal hossz\xfa!",this.pasteOverflowMessage="A beillesztett sz\xf6veg nem f\xe9r el az aj\xe1nd\xe9kk\xe1rty\xe1n, ez\xe9rt nem ker\xfclt beilleszt\xe9sre.",this.snackBarConfig={panelClass:["snackBarStyleForError"],duration:4e3}}ngOnInit(){this.parentForm.valueChanges.pipe((0,y.t)(this)).subscribe(o=>{this.setGiftForm()})}ngOnChanges(o){(0,v.kK)(o.parentForm)||this.setGiftForm()}setGiftForm(){(0,v.kK)(this.parentForm.value[this.giftFormControlName])||(this.giftForm=this.parentForm.controls[this.giftFormControlName],this.nameControl=this.giftForm.controls.name,this.emailControl=this.giftForm.controls.email,this.messageControl=this.giftForm.controls.message,this.deliveryTypeControl=this.giftForm.controls.deliveryType,this.voucherDesignControl=this.giftForm.controls.voucherDesign)}openGiftImageDialog(){const o=new I.vA;o.autoFocus=!0,o.data=this.voucherDesignControl.value,this.voucherDesignDialogRef=this.dialog.open(Z,o),this.voucherDesignDialogRef.afterClosed().subscribe(t=>{void 0!==t&&(this.selectedVoucherDesign=t,this.voucherDesignControl.patchValue(this.selectedVoucherDesign))})}getGiftPdf(o){this.dialog.open(q,{width:"80vw",height:"80vh",data:{payload:{package_id:this.packageId,design_id:o.voucherDesign.id,name:o.name,message:o.message}},panelClass:"pdf-dialog"})}fitsInFrame(o){const t=this.measurerRef.nativeElement;return t.textContent=o,t.scrollHeight<=t.clientHeight+.5&&t.scrollWidth<=t.clientWidth+.5}setOverflowError(o){const t=this.giftForm.controls.message;o?null==t||t.setErrors({overflow:!0}):(null==t?void 0:t.hasError("overflow"))&&t.setErrors(null)}onMessageChange({target:o}){this.measurerValid=this.fitsInFrame(o.value),this.setOverflowError(!this.measurerValid)}onMessageKeyDown(o){!this.measurerValid&&!(o.ctrlKey||o.metaKey||o.altKey)&&!["Backspace","Delete","ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Home","End","Tab"].includes(o.key)&&o.preventDefault()}onMessagePaste(o){var t,i,r,a,s;o.preventDefault();const m=null!==(i=null===(t=o.clipboardData)||void 0===t?void 0:t.getData("text"))&&void 0!==i?i:"";if(!m)return;const d=o.target,C=null!==(r=d.selectionStart)&&void 0!==r?r:d.value.length,x=null!==(a=d.selectionEnd)&&void 0!==a?a:d.value.length,g=d.value.slice(0,C)+m+d.value.slice(x);if(this.fitsInFrame(g))return null===(s=this.giftForm.controls.message)||void 0===s||s.setValue(g),this.measurerValid=!0,void this.setOverflowError(!1);this.fitsInFrame(d.value),this.setOverflowError(!0),this.matSnackBar.open(this.pasteOverflowMessage,void 0,this.snackBarConfig),setTimeout(()=>{this.measurerValid&&this.setOverflowError(!1)},this.snackBarConfig.duration)}};J.\u0275fac=function(o){return new(o||J)(e.\u0275\u0275directiveInject(I.uw),e.\u0275\u0275directiveInject(U.ux))},J.\u0275cmp=e.\u0275\u0275defineComponent({type:J,selectors:[["citydeals-basket-overview-gift"]],viewQuery:function(o,t){if(1&o&&e.\u0275\u0275viewQuery(Vt,5),2&o){let i;e.\u0275\u0275queryRefresh(i=e.\u0275\u0275loadQuery())&&(t.measurerRef=i.first)}},inputs:{packageId:"packageId",parentForm:"parentForm",giftFormControlName:"giftFormControlName",isVisibility:"isVisibility"},features:[e.\u0275\u0275NgOnChangesFeature],decls:1,vars:1,consts:[[3,"formGroup",4,"ngIf"],[3,"formGroup"],["class","container",4,"transloco","translocoRead"],[1,"container"],[1,"row"],[1,"col-md-9","p-0"],[1,"col-md-12"],[1,"text-dark-grey","voucher-design-selector-info-text"],[1,"row","mb-4"],[1,"col-md-6","pt-1"],[1,"circle-step"],[1,"voucher-design-step-text"],[1,"col-md-6","pb-1"],["src","assets/img/voucherek_banner.jpg",1,"voucher-design-selector-image",3,"alt","click"],[1,"col-md-6"],[1,"flex-column","pt-3"],[1,"input-box-with-prefix"],["type","text","formControlName","name",1,"cd-input","basket-overview-gift__input","pr-2",3,"placeholder"],[3,"parentFormGroup","control","messageTypes"],[1,"d-flex","flex-column","pt-3"],[1,"basket-overview-gift-message-label-justify"],["formControlName","message",1,"cd-textarea","basket-overview-gift__input",3,"placeholder","paste","input","keydown"],[1,"measurer"],["measurer",""],[1,"col-md-3","p-0","text-center"],[1,"voucher-preview-wrapper"],["class","voucher-preview-image","alt","voucher-preview-image","style","box-shadow:none !important;",3,"src",4,"ngIf"],[1,"voucher-preview-overlay"],[1,"voucher-preview-btn",3,"click"],[1,"selected-voucher-design-text-1"],[1,"selected-voucher-design-text-2"],[1,"row","pt-4","pb-4","align-items-center"],["formControlName","deliveryType",1,"d-flex","row"],[1,"col","d-flex","flex-column"],[1,"d-flex","align-items-center","justify-content-end"],[1,"delivery-type-text"],[1,"cd-button-radio",3,"value"],[1,"col","d-flex","align-items-center","justify-content-start"],[4,"ngIf"],["alt","voucher-preview-image",1,"voucher-preview-image",2,"box-shadow","none !important",3,"src"],[1,"col-12","col-md-6","d-flex","flex-column","pt-2"],["type","email","formControlName","email",1,"cd-input","basket-overview-gift__input",3,"placeholder"]],template:function(o,t){1&o&&e.\u0275\u0275template(0,Kt,2,3,"div",0),2&o&&e.\u0275\u0275property("ngIf",t.isVisibility&&t.giftForm)},directives:[u.NgIf,l.JL,l.sg,O.KI,l.Fj,l.JJ,l.u,Be.w,G.VQ,G.U0],pipes:[de.E],styles:['.basket-overview-gift__input[_ngcontent-%COMP%]{max-height:109px}.voucher-design-selector-info-text[_ngcontent-%COMP%]{font-size:15px;text-align:justify;color:#454f63!important;font-family:Montserrat!important}.voucher-design-selector-image[_ngcontent-%COMP%]{cursor:pointer;max-width:100%;height:auto}.voucher-preview-image[_ngcontent-%COMP%]{width:100%;background-color:#fff;box-shadow:0 4px 8px #0003,0 6px 20px #00000030}.voucher-preview-image-wrap[_ngcontent-%COMP%]:after{content:"";display:block;height:9999px}.voucher-preview-image-wrap[_ngcontent-%COMP%]:before{content:"";background-image:linear-gradient(to top,#efefef,rgba(239,239,239,0)
1);position:absolute;height:100px;right:0;bottom:0;left:0}.selected-voucher-design-text-1[_ngcontent-%COMP%]{display:block;text-align:center;font-weight:800;padding-top:5px;color:#454f63!important}.selected-voucher-design-text-2[_ngcontent-%COMP%]{display:block;text-align:center;color:#959cac;font-size:12px}.circle-step[_ngcontent-%COMP%]{border-radius:50%;width:34px;height:34px;padding:7px;background-color:var(--bs-green);color:#fff;text-align:center;font:inherit;font-weight:600;display:inline-block}.voucher-design-step-text[_ngcontent-%COMP%]{padding-left:15px;font-weight:600;color:#454f63!important}.input-box-with-prefix[_ngcontent-%COMP%]{display:flex;align-items:center}.input-box-with-prefix[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{padding-right:5px}.delivery-type-text[_ngcontent-%COMP%]{color:#454f63;font-size:14px;font-weight:700;padding-right:10px}.delivery-type-item-text[_ngcontent-%COMP%]{color:#454f63;font-weight:600}.cd-button-radio[_ngcontent-%COMP%]{border:2px solid #00B267;border-radius:40px;padding:10px 20px;margin-right:12px;cursor:pointer;display:inline-block;transition:all .2s;-webkit-user-select:none;user-select:none;color:#454f63;font-weight:600;max-height:47px}.cd-button-radio[_ngcontent-%COMP%]     .mat-radio-container{display:none!important}.cd-button-radio[_ngcontent-%COMP%]     .mat-radio-label{justify-content:center}.cd-button-radio[_ngcontent-%COMP%]:not(.mat-radio-checked):hover{opacity:.7;cursor:pointer}.cd-button-radio.mat-radio-checked[_ngcontent-%COMP%]{color:#fff;background-color:#00b267}.cd-button-radio.mat-radio-checked[_ngcontent-%COMP%]   .delivery-type-item-text[_ngcontent-%COMP%]{fontt-size:14px;font-weight:600;color:#fff!important}.cd-button-radio.mat-radio-checked[_ngcontent-%COMP%]:hover{opacity:.7;cursor:pointer}.measurer[_ngcontent-%COMP%]{border:0px;position:absolute;visibility:hidden;pointer-events:none;z-index:0;width:318px;height:85px;box-sizing:border-box;font-family:Caveat;font-size:17pt;line-height:1;padding:0 0 0 10px;white-space:pre-wrap;word-break:break-word;overflow:auto}.measurer-error-text[_ngcontent-%COMP%]{color:red;font-size:13px;font-weight:600}.voucher-preview-wrapper[_ngcontent-%COMP%]{position:relative;display:inline-block;max-height:288px;overflow:hidden}.voucher-preview-image[_ngcontent-%COMP%]{display:block;max-height:288px;width:auto}.voucher-preview-overlay[_ngcontent-%COMP%]{position:absolute;bottom:0;left:0;width:100%;display:flex;justify-content:center;padding:6px 0}.voucher-preview-btn[_ngcontent-%COMP%]{background-color:#00b267;color:#fff;border:none;padding:6px 12px;cursor:pointer;font-size:.9rem;transition:background .3s ease;font-weight:500;border-radius:40px}.voucher-preview-btn[_ngcontent-%COMP%]:hover{background-color:#007846}.cd-textarea[_ngcontent-%COMP%]{height:80px!important}.basket-overview-gift-message-label-justify[_ngcontent-%COMP%]{text-align:justify;font-size:12px;margin-bottom:6px}@media (max-width: 768px){.mat-radio-group.row[_ngcontent-%COMP%]{flex-direction:column!important;align-items:center!important;text-align:center}.mat-radio-group[_ngcontent-%COMP%]   .col[_ngcontent-%COMP%]{width:100%;display:flex;justify-content:center!important;text-align:center}.mat-radio-group[_ngcontent-%COMP%]   .col[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{flex-direction:column!important;align-items:center!important;text-align:center}.delivery-type-text[_ngcontent-%COMP%]{display:block;width:100%;margin-bottom:8px}.cd-button-radio[_ngcontent-%COMP%]{margin:6px 0}.basket-overview-gift__input[_ngcontent-%COMP%]{width:100%;max-width:280px;margin:0 auto;display:block}citydeals-form-control-error-messages[_ngcontent-%COMP%]{display:block;text-align:center}}'],data:{animation:[qe.Qx]}}),J=(0,_.gn)([(0,y.c)(),(0,_.w6)("design:paramtypes",[I.uw,U.ux])],J);var ee=p(1042),pe=p(8879),Ne=p(9485);function Qt(n,o){if(1&n&&(e.\u0275\u0275element(0,"img",9),e.\u0275\u0275pipe(1,"setImageUrl")),2&n){const t=e.\u0275\u0275nextContext().$implicit,i=e.\u0275\u0275nextContext();e.\u0275\u0275property("src",e.\u0275\u0275pipeBind1(1,2,t),e.\u0275\u0275sanitizeUrl)("alt",i.data.name)}}function Yt(n,o){1&n&&e.\u0275\u0275template(0,Qt,2,4,"ng-template",8)}const Xt=function(){return{nextEl:".custom-next",prevEl:".custom-prev"}},Zt=function(){return{clickable:!0}};pe.ZP.use([pe.pt,pe.W_,pe.o3,pe.Rv]);let qt=(()=>{class n{constructor(t,i){this.dialogRef=t,this.data=i}close(){this.dialogRef.close()}}return n.\u0275fac=function(t){return new(t||n)(e.\u0275\u0275directiveInject(I.so),e.\u0275\u0275directiveInject(I.WI))},n.\u0275cmp=e.\u0275\u0275defineComponent({type:n,selectors:[["citydeals-basket-wrapper-box-images"]],decls:9,vars:6,consts:[[1,"dialog-content"],[1,"swiper-container-wrapper"],[1,"swiper-button-prev","custom-prev"],[1,"gift-swiper",3,"slidesPerView","navigation","pagination"],[4,"ngFor","ngForOf"],[1,"swiper-button-next","custom-next"],["align","center"],[1,"cd-btn","cd-btn--green","cd-btn--rounded",3,"click"],["swiperSlide",""],[1,"gift-image",3,"src","alt"]],template:function(t,i){1&t&&(e.\u0275\u0275elementStart(0,"mat-dialog-content",0)(1,"div",1),e.\u0275\u0275element(2,"div",2),e.\u0275\u0275elementStart(3,"swiper",3),e.\u0275\u0275template(4,Yt,1,0,null,4),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(5,"div",5),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(6,"mat-dialog-actions",6)(7,"button",7),e.\u0275\u0275listener("click",function(){return i.close()}),e.\u0275\u0275text(8,"Bez\xe1r\xe1s"),e.\u0275\u0275elementEnd()()),2&t&&(e.\u0275\u0275advance(3),e.\u0275\u0275property("slidesPerView",1)("navigation",e.\u0275\u0275pureFunction0(4,Xt))("pagination",e.\u0275\u0275pureFunction0(5,Zt)),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",i.data.pictures))},directives:[I.xY,Ne.nF,u.NgForOf,Ne.YC,I.H8],pipes:[de.E],styles:['.swiper-container-wrapper[_ngcontent-%COMP%]{position:relative;display:flex;align-items:center;justify-content:center;width:100%;padding:0;aspect-ratio:1/1;margin:0 auto}@supports not (aspect-ratio: 1/1){.swiper-container-wrapper[_ngcontent-%COMP%]:before{content:"";display:block;padding-top:100%}.swiper-container-wrapper[_ngcontent-%COMP%]   .gift-swiper[_ngcontent-%COMP%]{top:0;left:0;width:100%;height:100%;position:absolute}}.swiper-container-wrapper[_ngcontent-%COMP%]   .gift-swiper[_ngcontent-%COMP%]{height:100%;width:100%}.swiper-container-wrapper[_ngcontent-%COMP%]   .swiper-button-prev[_ngcontent-%COMP%], .swiper-container-wrapper[_ngcontent-%COMP%]   .swiper-button-next[_ngcontent-%COMP%]{position:absolute;top:50%;transform:translateY(-50%);width:40px;height:40px;color:#007846;display:flex;align-items:center;justify-content:center;cursor:pointer;z-index:10}.swiper-container-wrapper[_ngcontent-%COMP%]   .swiper-button-prev[_ngcontent-%COMP%]{left:10px}.swiper-container-wrapper[_ngcontent-%COMP%]   .swiper-button-next[_ngcontent-%COMP%]{right:10px}.swiper-container-wrapper[_ngcontent-%COMP%]   .slide-image[_ngcontent-%COMP%]{width:100%;border-radius:12px}.dialog-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;overflow:hidden!important;max-height:unset!important}.gift-swiper[_ngcontent-%COMP%]{width:100%;height:100%}.gift-swiper[_ngcontent-%COMP%]   .gift-image[_ngcontent-%COMP%]{width:100%;height:100%;border-radius:8px;object-fit:contain}mat-dialog-actions[_ngcontent-%COMP%]{display:flex;padding-top:0!important;justify-content:center;min-height:unset!important}  .mat-dialog-container{overflow:hidden!important;max-height:unset!important}@media (max-width: 768px){.swiper-container-wrapper[_ngcontent-%COMP%]{max-width:90vw}}@media (min-width: 769px) and (max-width: 1024px){.swiper-container-wrapper[_ngcontent-%COMP%]{max-width:80vw}}@media (min-width: 1025px){.swiper-container-wrapper[_ngcontent-%COMP%]{max-width:600px}}@media (orientation: landscape){.swiper-container-wrapper[_ngcontent-%COMP%]{width:60vh}}']}),n})();var tt=p(7238),ve=p(7446),nt=p(5458);function Jt(n,o){1&n&&e.\u0275\u0275element(0,"span",10)}function en(n,o){if(1&n){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",7)(1,"img",8),e.\u0275\u0275listener("click",function(){const a=e.\u0275\u0275restoreView(t).$implicit;return e.\u0275\u0275nextContext(2).changeWrapper(a)}),e.\u0275\u0275pipe(2,"setImageUrl"),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(3,Jt,1,0,"span",9),e.\u0275\u0275elementEnd()}if(2&n){const t=o.$implicit,i=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275classProp("active",i.selectedWrapper===t),e.\u0275\u0275propertyInterpolate("matTooltip",t.name),e.\u0275\u0275property("alt",t.name)("src",e.\u0275\u0275pipeBind1(2,6,t.base_picture),e.\u0275\u0275sanitizeUrl),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",i.selectedWrapper===t)}}function tn(n,o){if(1&n&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275template(1,en,4,8,"div",6),e.\u0275\u0275elementContainerEnd()),2&n){const t=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",t.availableWrappings)}}function nn(n,o){if(1&n&&(e.\u0275\u0275elementStart(0,"div",7),e.\u0275\u0275element(1,"img",11),e.\u0275\u0275pipe(2,"setImageUrl"),e.\u0275\u0275element(3,"span",10),e.\u0275\u0275elementEnd()),2&n){const t=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275classProp("active",!0),e.\u0275\u0275propertyInterpolate("matTooltip",t.selectedWrapper.name),e.\u0275\u0275property("alt",t.selectedWrapper.name)("src",e.\u0275\u0275pipeBind1(2,5,t.selectedWrapper.base_picture),e.\u0275\u0275sanitizeUrl)}}function on(n,o){if(1&n){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"button",19),e.\u0275\u0275listener("click",function(){return e.\u0275\u0275restoreView(t),e.\u0275\u0275nextContext(3).onRemoveBox()}),e.\u0275\u0275element(1,"img",20),e.\u0275\u0275elementEnd()}}function rn(n,o){if(1&n){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275elementStart(1,"button",16),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(t);const r=e.\u0275\u0275nextContext(2);return r.openGiftWrapImagesDialog(r.selectedWrapper)}),e.\u0275\u0275element(2,"img",17),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(3,on,2,0,"button",18),e.\u0275\u0275elementContainerEnd()}if(2&n){const t=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(3),e.\u0275\u0275property("ngIf",!t.hasOneBox)}}function an(n,o){if(1&n&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275text(1),e.\u0275\u0275elementContainerEnd()),2&n){const t=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",t.note," ")}}function sn(n,o){if(1&n){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275elementStart(1,"button",22),e.\u0275\u0275listener("click",function(){return e.\u0275\u0275restoreView(t),e.\u0275\u0275nextContext(3).onAddBox()}),e.\u0275\u0275element(2,"img",23),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementContainerEnd()}}function ln(n,o){if(1&n&&(e.\u0275\u0275elementStart(0,"div",21),e.\u0275\u0275template(1,sn,3,0,"ng-container",5),e.\u0275\u0275elementEnd()),2&n){const t=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",t.justAddBox)}}function cn(n,o){if(1&n&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275elementStart(1,"div",12),e.\u0275\u0275template(2,rn,4,1,"ng-container",5),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(3,"div",13),e.\u0275\u0275template(4,an,2,1,"ng-container",5),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(5,"div",14),e.\u0275\u0275text(6),e.\u0275\u0275pipe(7,"currency"),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(8,ln,2,1,"div",15),e.\u0275\u0275elementContainerEnd()),2&n){const t=e.\u0275\u0275nextContext();e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",!t.justAddBox&&!t.reducedDisplay),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",!t.justAddBox&&!t.reducedDisplay),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind4(7,4,t.selectedWrapper.gross_price,"HUF","symbol","1.0-0")," "),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",!t.reducedDisplay)}}function dn(n,o){if(1&n&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275text(1),e.\u0275\u0275elementContainerEnd()),2&n){const t=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",t.note," ")}}function pn(n,o){if(1&n){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"button",19),e.\u0275\u0275listener("click",function(){return e.\u0275\u0275restoreView(t),e.\u0275\u0275nextContext(3).onRemoveBox()}),e.\u0275\u0275element(1,"img",20),e.\u0275\u0275elementEnd()}}function mn(n,o){if(1&n){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275elementStart(1,"button",16),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(t);const r=e.\u0275\u0275nextContext(2);return r.openGiftWrapImagesDialog(r.selectedWrapper)}),e.\u0275\u0275element(2,"img",17),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(3,pn,2,0,"button",18),e.\u0275\u0275elementContainerEnd()}if(2&n){const t=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(3),e.\u0275\u0275property("ngIf",!t.hasOneBox)}}function _n(n,o){if(1&n){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275elementStart(1,"button",22),e.\u0275\u0275listener("click",function(){return e.\u0275\u0275restoreView(t),e.\u0275\u0275nextContext(3).onAddBox()}),e.\u0275\u0275element(2,"img",23),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementContainerEnd()}}function un(n,o){if(1&n&&(e.\u0275\u0275elementStart(0,"div"),e.\u0275\u0275template(1,_n,3,0,"ng-container",5),e.\u0275\u0275elementEnd()),2&n){const t=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",t.justAddBox)}}function gn(n,o){if(1&n&&(e.\u0275\u0275elementStart(0,"div",24)(1,"div",25)(2,"div",26)(3,"div",14),e.\u0275\u0275text(4),e.\u0275\u0275pipe(5,"currency"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(6,"div",13),e.\u0275\u0275template(7,dn,2,1,"ng-container",5),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(8,"div",27)(9,"div",21),e.\u0275\u0275template(10,mn,4,1,"ng-container",5),e.\u0275\u0275template(11,un,2,1,"div",5),e.\u0275\u0275elementEnd()()()),2&n){const t=e.\u0275\u0275nextContext();e.\u0275\u0275advance(4),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind4(5,4,t.selectedWrapper.gross_price,"HUF","symbol","1.0-0")," "),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngIf",!t.justAddBox&&!t.reducedDisplay),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngIf",!t.justAddBox),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!t.reducedDisplay)}}function fn(n,o){if(1&n){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",39)(1,"mat-checkbox",40),e.\u0275\u0275listener("click",function(r){e.\u0275\u0275restoreView(t);const a=e.\u0275\u0275nextContext(2).$implicit;return e.\u0275\u0275nextContext(2).onCheckboxClick(r,a)}),e.\u0275\u0275elementEnd()()}if(2&n){const t=e.\u0275\u0275nextContext(2).$implicit;e.\u0275\u0275advance(1),e.\u0275\u0275property("checked",t.selected)}}const ot=function(n){return{top:n}};function hn(n,o){if(1&n&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275elementStart(1,"div",31),e.\u0275\u0275element(2,"img",32),e.\u0275\u0275pipe(3,"setImageUrl"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"div",33)(5,"div",34),e.\u0275\u0275text(6),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(7,"div",35),e.\u0275\u0275text(8),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(9,"div",31)(10,"div",36),e.\u0275\u0275text(11,"1 db"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(12,"div",31)(13,"div",37),e.\u0275\u0275text(14),e.\u0275\u0275pipe(15,"currency"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275template(16,fn,2,1,"div",38),e.\u0275\u0275elementContainerEnd()),2&n){const t=e.\u0275\u0275nextContext().$implicit,i=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(2),e.\u0275\u0275property("alt",null==t.basket||null==t.basket.picture?null:t.basket.picture.alt)("src",e.\u0275\u0275pipeBind1(3,7,null==t.basket||null==t.basket.picture?null:t.basket.picture.big),e.\u0275\u0275sanitizeUrl),e.\
1u0275\u0275advance(2),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(14,ot,i.reducedDisplay)),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(null==t.basket?null:t.basket.name),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(null==t.basket?null:t.basket.voucherTitle),e.\u0275\u0275advance(6),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind4(15,9,null==t.basket?null:t.basket.price,"HUF","symbol","1.0-0")),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",!i.reducedDisplay)}}function vn(n,o){if(1&n){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",39)(1,"mat-checkbox",40),e.\u0275\u0275listener("click",function(r){e.\u0275\u0275restoreView(t);const a=e.\u0275\u0275nextContext(2).$implicit;return e.\u0275\u0275nextContext(2).onCheckboxClick(r,a)}),e.\u0275\u0275elementEnd()()}if(2&n){const t=e.\u0275\u0275nextContext(2).$implicit;e.\u0275\u0275advance(1),e.\u0275\u0275property("checked",t.selected)}}function Cn(n,o){if(1&n&&(e.\u0275\u0275elementStart(0,"div",24)(1,"div",41)(2,"div",31),e.\u0275\u0275element(3,"img",32),e.\u0275\u0275pipe(4,"setImageUrl"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(5,"div",42)(6,"div",43)(7,"div",33)(8,"div",34),e.\u0275\u0275text(9),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(10,"div",35),e.\u0275\u0275text(11),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(12,"div",44)(13,"div",36),e.\u0275\u0275text(14,"1 db"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(15,"div",37),e.\u0275\u0275text(16),e.\u0275\u0275pipe(17,"currency"),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(18,vn,2,1,"div",38),e.\u0275\u0275elementEnd()()()()),2&n){const t=e.\u0275\u0275nextContext().$implicit,i=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(3),e.\u0275\u0275property("alt",null==t.basket||null==t.basket.picture?null:t.basket.picture.alt)("src",e.\u0275\u0275pipeBind1(4,7,null==t.basket||null==t.basket.picture?null:t.basket.picture.big),e.\u0275\u0275sanitizeUrl),e.\u0275\u0275advance(4),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(14,ot,i.reducedDisplay)),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(null==t.basket?null:t.basket.name),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(null==t.basket?null:t.basket.voucherTitle),e.\u0275\u0275advance(5),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind4(17,9,null==t.basket?null:t.basket.price,"HUF","symbol","1.0-0")),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",!i.reducedDisplay)}}const xn=function(n){return{"five-cols-summary":n}};function yn(n,o){if(1&n&&(e.\u0275\u0275elementStart(0,"div",29),e.\u0275\u0275template(1,hn,17,16,"ng-container",2),e.\u0275\u0275pipe(2,"isMobileDevice"),e.\u0275\u0275template(3,Cn,19,16,"ng-template",null,30,e.\u0275\u0275templateRefExtractor),e.\u0275\u0275elementEnd()),2&n){const t=o.$implicit,i=o.index,r=e.\u0275\u0275reference(4),a=e.\u0275\u0275nextContext(2);e.\u0275\u0275classProp("first-row",0===i)("disable",t.disabled),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(9,xn,a.reducedDisplay)),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!e.\u0275\u0275pipeBind1(2,7,""))("ngIfElse",r)}}function bn(n,o){if(1&n&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275template(1,yn,5,11,"div",28),e.\u0275\u0275elementContainerEnd()),2&n){const t=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",t.box.assigned)}}const kn=function(n){return{"header-summary":n}};let wn=(()=>{class n{constructor(t,i){this.dialog=t,this.cdr=i,this.hasOneBox=!0,this.justAddBox=!1,this.reducedDisplay=!1,this.availableWrappings=[],this.addBox=new e.EventEmitter,this.removeBox=new e.EventEmitter,this.boxChange=new e.EventEmitter,this.itemSelectionChange=new e.EventEmitter,this.note="Egy d\xedszcsomagol\xe1sban 3 db voucher f\xe9r el.",this._selectedWrapper=null}get selectedWrapper(){return(0,v.kK)(this._selectedWrapper)?((0,v.kK)(this.box)||(this._selectedWrapper=this.availableWrappings.find(t=>t.id===this.box.wrap_id)||this.availableWrappings[0]),this.availableWrappings[0]):this._selectedWrapper}set selectedWrapper(t){this._selectedWrapper=t}ngAfterViewInit(){this.cdr.detectChanges()}changeWrapper(t){this.selectedWrapper=t,this.justAddBox||(this.box.wrap_id=t.id,this.box.gross_price=t.gross_price,this.boxChange.emit(this.box))}onRemoveBox(){this.removeBox.emit(this.box.id)}onAddBox(){this.addBox.emit(this.selectedWrapper)}openGiftWrapImagesDialog(t){this.dialog.open(qt,{maxWidth:"75vw",maxHeight:"75vh",width:"auto",height:"auto",data:t})}onCheckboxClick(t,i){t.preventDefault(),this.itemSelectionChange.emit({item:i,box_id:this.box.id,value:!i.selected}),this.cdr.detectChanges()}}return n.\u0275fac=function(t){return new(t||n)(e.\u0275\u0275directiveInject(I.uw),e.\u0275\u0275directiveInject(e.ChangeDetectorRef))},n.\u0275cmp=e.\u0275\u0275defineComponent({type:n,selectors:[["citydeals-basket-wrapper-box"]],inputs:{hasOneBox:"hasOneBox",justAddBox:"justAddBox",reducedDisplay:"reducedDisplay",box:"box",availableWrappings:"availableWrappings"}
1,outputs:{addBox:"addBox",removeBox:"removeBox",boxChange:"boxChange",itemSelectionChange:"itemSelectionChange"},decls:10,vars:10,consts:[[1,"header",3,"ngClass"],[1,"wrap-thumbs"],[4,"ngIf","ngIfElse"],["reducedDisplayTpl",""],["mobileWrapActionTpl",""],[4,"ngIf"],["class","image-wrapper",4,"ngFor","ngForOf"],[1,"image-wrapper"],[1,"thumb",3,"matTooltip","alt","src","click"],["class","circle-check selected",4,"ngIf"],[1,"circle-check","selected"],[1,"thumb",3,"matTooltip","alt","src"],[1,"wrap-actions","align-start"],[1,"wrap-note"],[1,"wrap-price"],["class","wrap-actions",4,"ngIf"],["matTooltip","D\xedszcsomagol\xe1s megtekint\xe9se",3,"click"],["src","../../assets/img/eye.svg","alt","D\xedszcsomagol\xe1s megtekint\xe9se"],["matTooltip","Csomag t\xf6rl\xe9se",3,"click",4,"ngIf"],["matTooltip","Csomag t\xf6rl\xe9se",3,"click"],["src","../../assets/img/trash.svg","alt","Csomag t\xf6rl\xe9se"],[1,"wrap-actions"],["matTooltip","Csomag hozz\xe1ad\xe1sa",3,"click"],["src","../../assets/img/plus.svg","alt","Csomag hozz\xe1ad\xe1sa"],[1,"row"],[1,"d-flex","col-8","align-items-center"],[1,"d-flex","flex-column"],[1,"d-flex","col-4","align-items-center","justify-content-end"],["class","grid five-cols table-row",3,"first-row","disable","ngClass",4,"ngFor","ngForOf"],[1,"grid","five-cols","table-row",3,"ngClass"],["mobileBoxTpl",""],[1,"cell"],[1,"prod-thumb",3,"alt","src"],[1,"cell",3,"ngClass"],[1,"name"],[1,"desc"],[1,"quantity"],[1,"price"],["class","item-checkbox-cell",4,"ngIf"],[1,"item-checkbox-cell"],["matTooltip","Csomagba helyez\xe9s",3,"checked","click"],[1,"col-4","d-flex"],[1,"col-8","pr-0"],[1,"d-flex","flex-column","ms-3"],[1,"cell","d-flex","justify-content-between"]],template:function(t,i){if(1&t&&(e.\u0275\u0275elementStart(0,"div",0)(1,"div",1),e.\u0275\u0275template(2,tn,2,1,"ng-container",2),e.\u0275\u0275template(3,nn,4,7,"ng-template",null,3,e.\u0275\u0275templateRefExtractor),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(5,cn,9,9,"ng-container",2),e.\u0275\u0275pipe(6,"isMobileDevice"),e.\u0275\u0275template(7,gn,12,9,"ng-template",null,4,e.\u0275\u0275templateRefExtractor),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(9,bn,2,1,"ng-container",5)),2&t){const r=e.\u0275\u0275reference(4),a=e.\u0275\u0275reference(8);e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(8,kn,i.reducedDisplay)),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",!i.reducedDisplay)("ngIfElse",r),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngIf",!e.\u0275\u0275pipeBind1(6,6,""))("ngIfElse",a),e.\u0275\u0275advance(4),e.\u0275\u0275property("ngIf",!i.justAddBox)}},directives:[u.NgClass,u.NgIf,u.NgForOf,tt.gM,ve.oG],pipes:[de.E,nt.h,u.CurrencyPipe],styles:['[_nghost-%COMP%]   .header[_ngcontent-%COMP%]{grid-gap:12px;gap:12px;display:grid;padding:8px 0;align-items:center;grid-template-columns:auto 300px 1fr 120px 100px}@media (max-width: 1024px){[_nghost-%COMP%]   .header[_ngcontent-%COMP%]{display:grid;grid-template-columns:.5fr;grid-auto-rows:auto;grid-gap:12px;gap:12px}[_nghost-%COMP%]   .header[_ngcontent-%COMP%]   .wrap-thumbs[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(2,.5fr);grid-gap:8px;gap:8px}[_nghost-%COMP%]   .header[_ngcontent-%COMP%]   .wrap-note[_ngcontent-%COMP%], [_nghost-%COMP%]   .header[_ngcontent-%COMP%]   .wrap-actions[_ngcontent-%COMP%], [_nghost-%COMP%]   .header[_ngcontent-%COMP%]   .wrap-price[_ngcontent-%COMP%]{text-align:left}}@media (max-width: 768px){[_nghost-%COMP%]   .header[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr;grid-auto-rows:auto;grid-gap:12px;gap:12px}[_nghost-%COMP%]   .header[_ngcontent-%COMP%]   .wrap-thumbs[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(2,.5fr);grid-gap:8px;gap:8px}[_nghost-%COMP%]   .header[_ngcontent-%COMP%]   .wrap-note[_ngcontent-%COMP%], [_nghost-%COMP%]   .header[_ngcontent-%COMP%]   .wrap-actions[_ngcontent-%COMP%], [_nghost-%COMP%]   .header[_ngcontent-%COMP%]   .wrap-price[_ngcontent-%COMP%]{text-align:left}}[_nghost-%COMP%]   .header-summary[_ngcontent-%COMP%]{grid-template-columns:auto 300px 1fr 220px}@media (max-width: 1024px){[_nghost-%COMP%]   .header-summary[_ngcontent-%COMP%]{grid-template-columns:1fr}}[_nghost-%COMP%]   .wrap-thumbs[_ngcontent-%COMP%]{display:flex}[_nghost-%COMP%]   .wrap-thumbs[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:200
1px;padding:2px;cursor:pointer;object-fit:cover;background:#fff;border:2px solid transparent}@media (max-width: 768px){[_nghost-%COMP%]   .wrap-thumbs[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:100%}}[_nghost-%COMP%]   .wrap-thumbs[_ngcontent-%COMP%]   img.active[_ngcontent-%COMP%]{border-radius:4px;border-color:#00b267}[_nghost-%COMP%]   .wrap-thumbs[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]:hover{opacity:.8}[_nghost-%COMP%]   .image-wrapper[_ngcontent-%COMP%]{position:relative;display:inline-block;width:-moz-fit-content;width:fit-content}[_nghost-%COMP%]   .image-wrapper[_ngcontent-%COMP%]   .circle-check[_ngcontent-%COMP%]{width:27px;height:27px;border:2px solid #ffffff;background-color:#00b267;border-radius:50%;display:flex;align-items:center;justify-content:center;position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);overflow:hidden}[_nghost-%COMP%]   .image-wrapper[_ngcontent-%COMP%]   .circle-check[_ngcontent-%COMP%]:after{content:"";width:10px;height:6px;border-left:2px solid #fff;border-bottom:2px solid #fff;transform:rotate(-45deg);transform-origin:center;z-index:2}[_nghost-%COMP%]   .image-wrapper[_ngcontent-%COMP%]   .circle-check.selected[_ngcontent-%COMP%]:before{content:"";position:absolute;top:-50%;left:-50%;width:50%;height:200%;background:linear-gradient(120deg,rgba(255,255,255,0) 0%,rgba(255,255,255,.6) 50%,rgba(255,255,255,0) 100%);transform:rotate(25deg);animation:shine .5s forwards}@keyframes shine{0%{transform:translate(-120%) rotate(25deg);opacity:0}
120%{opacity:1}80%{opacity:1}to{transform:translate(220%) rotate(25deg);opacity:0}}[_nghost-%COMP%]   .wrap-name[_ngcontent-%COMP%]{color:#454f63;font-size:18px;font-weight:600}[_nghost-%COMP%]   .wrap-note[_ngcontent-%COMP%]{font-size:14px;font-weight:400;color:#959cac;text-align:center}[_nghost-%COMP%]   .wrap-price[_ngcontent-%COMP%]{color:#454f63;font-size:18px;font-weight:400;text-align:right;white-space:nowrap}[_nghost-%COMP%]   .wrap-actions[_ngcontent-%COMP%]{gap:8px;display:flex;justify-content:flex-end}[_nghost-%COMP%]   .wrap-actions.align-start[_ngcontent-%COMP%]{justify-content:flex-start}[_nghost-%COMP%]   .wrap-actions[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{width:42px!important;height:42px!important;border:2px solid #00B267;border-radius:50%!important;background-color:#fff!important}[_nghost-%COMP%]   .wrap-actions[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]:hover{color:#fff!important;background-color:#00b267!important}[_nghost-%COMP%]   .wrap-actions[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]:hover   img[_ngcontent-%COMP%]{filter:brightness(0) invert(1)}[_nghost-%COMP%]   .five-cols[_ngcontent-%COMP%]{grid-gap:12px;gap:12px;display:grid;align-items:center;padding-left:40px!important;grid-template-columns:120px 1.5fr 60px 90px 100px}@media (max-width: 768px),(orientation: landscape) and (max-height: 600px){[_nghost-%COMP%]   .five-cols[_ngcontent-%COMP%]{grid-gap:12px;gap:12px;display:grid;grid-template-columns:1fr;grid-auto-rows:auto;padding-left:0!important}}[_nghost-%COMP%]   .five-cols-summary[_ngcontent-%COMP%]{grid-template-columns:120px 1.5fr 60px 150px}@media (max-width: 768px),(orientation: landscape) and (max-height: 600px){[_nghost-%COMP%]   .five-cols-summary[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr;grid-auto-rows:auto;grid-gap:12px;gap:12px}}[_nghost-%COMP%]   .table-head[_ngcontent-%COMP%]{font-weight:600;padding:8px 0;border-bottom:1px solid #ddd}[_nghost-%COMP%]   .table-row[_ngcontent-%COMP%]{padding:8px 0;border-bottom:1px solid #eee}[_nghost-%COMP%]   .first-row[_ngcontent-%COMP%]{border-top:1px solid #eee}[_nghost-%COMP%]   .cell.top[_ngcontent-%COMP%]{top:0;height:100%;position:relative}[_nghost-%COMP%]   .cell[_ngcontent-%COMP%]   .price[_ngcontent-%COMP%]{font-size:18px;color:#454f63;font-weight:400;text-align:right}[_nghost-%COMP%]   .cell[_ngcontent-%COMP%]   .name[_ngcontent-%COMP%]{color:#454f63;font-weight:700}[_nghost-%COMP%]   .cell[_ngcontent-%COMP%]   .desc[_ngcontent-%COMP%]{font-size:14px;color:#454f63;font-weight:400}[_nghost-%COMP%]   .cell[_ngcontent-%COMP%]   .quantity[_ngcontent-%COMP%]{color:#454f63;font-size:18px}[_nghost-%COMP%]   .center[_ngcontent-%COMP%]{text-align:center}[_nghost-%COMP%]   .item-checkbox-cell[_ngcontent-%COMP%]{text-align:right;padding-right:12px}[_nghost-%COMP%]   .prod-thumb[_ngcontent-%COMP%]{min-height:80px;max-height:80px;max-width:110px;object-fit:cover}[_nghost-%COMP%]   .disable[_ngcontent-%COMP%]{opacity:.5;pointer-events:none}[_nghost-%COMP%]     .mat-checkbox .mat-checkbox-frame{border-color:#00b267}[_nghost-%COMP%]     .mat-checkbox-checked .mat-checkbox-background, [_nghost-%COMP%]     .mat-checkbox-indeterminate .mat-checkbox-background{background-color:#00b267!important}[_nghost-%COMP%]     .mat-checkbox-checked .mat-checkbox-checkmark-path{stroke:#fff!important}']}),n})();function En(n,o){1&n&&(e.\u0275\u0275elementStart(0,"div",9)(1,"div",10),e.\u0275\u0275text(2,"3"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(3,"span",11),e.\u0275\u0275text(4,"V\xe1lassz d\xedszbor\xedt\xe9kot"),e.\u0275\u0275elementEnd()())}const On=function(n){return{"reduced-display":n}};function In(n,o){if(1&n){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",12)(1,"citydeals-basket-wrapper-box",13),e.\u0275\u0275listener("removeBox",function(r){return e.\u0275\u0275restoreView(t),e.\u0275\u0275nextContext(2).onRemoveBox(r)})("boxChange",function(r){return e.\u0275\u0275restoreView(t),e.\u0275\u0275nextContext(2).onBoxChange(r)})("itemSelectionChange",function(r){return e.\u0275\u0275restoreView(t),e.\u0275\u0275nextContext(2).onItemSelectionChange(r)}),e.\u0275\u0275elementEnd()()}if(2&n){const t=o.$implicit,i=e.\u0275\u0275nextContext(2);e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(5,On,i.reducedDisplay)),e.\u0275\u0275advance(1),e.\u0275\u0275property("box",t)("reducedDisplay",i.reducedDisplay)("availableWrappings",i.availableWrappings)("hasOneBox",1===i.activeWrapperBoxes.length)}}function Mn(n,o){if(1&n){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"div",14)(1,"citydeals-basket-wrapper-box",15),e.\u0275\u0275listener("addBox",function(r){return e.\u0275\u0275restoreView(t),e.\u0275\u0275nextContext(2).onAddBox(r)}),e.\u0275\u0275elementEnd()()}if(2&n){const t=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275property("justAddBox",!0)("availableWrappings",t.availableWrappings)}}function Tn(n,o){if(1&n&&(e.\u0275\u0275elementStart(0,"div",5),e.\u0275\u0275template(1,En,5,0,"div",6),e.\u0275\u0275template(2,In,2,7,"div",7),e.\u0275\u0275template(3,Mn,2,2,"div",8),e.\u0275\u0275elementEnd()),2&n){const t=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!t.reducedDisplay),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",t.activeWrapperBoxes),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!t.reducedDisplay)}}let te=class{constructor(o,t,i){this.matSnackBar=o,this.store=t,this.cdr=i,this.gitFormReady=!1,this.reducedDisplay=!1,this.baskets=[],this.giftForm=null,this.availableWrappings=[],this.activeWrapperBoxes=[],this.decorativePackaging=null,this.snackBarConfig={panelClass:["snackBarStyleForError"],duration:4e3},this.tooManyItemInBoxMessage=r=>"Ez a d\xedszcsomagol\xe1s betelt! Adj hozz\xe1 egy \xfajat, hogy minden aj\xe1nd\xe9k sz\xe9p csomagban \xe9rkezzen!"}ngOnChanges(o){if(o.gitFormReady&&o.gitFormReady.currentValue&&!(0,v.kK)(this.giftForm)&&(this.initActiveWrapperBoxes(),this.giftForm.valueChanges.pipe((0,y.t)(this)).subscribe(()=>{this.updateActiveWrapperBoxes()})),!(0,v.kK)(this.giftForm)&&this.gitFormReady&&o.baskets){const t=o.baskets.previousValue,i=o.baskets.currentValue,r=this.hasQuantityChanged(t,i);((0,v.kK)(t)||r)&&(r&&this.activeWrapperBoxes.flatMap(a=>a.assigned).filter(a=>{var s;return(null===(s=a.basket)||void 0===s?void 0:s.idx)===i[0].idx}
1).forEach(a=>{a.selected=!1,a.disabled=!1}),this.updateActiveWrapperBoxes())}}onRemoveBox(o){const t=this.activeWrapperBoxes.find(i=>i.id===o);if(t){if(t.assigned.some(i=>i.selected))for(const i of this.activeWrapperBoxes)if(i.id!==o)for(const r of i.assigned)r.disabled=!1;this.activeWrapperBoxes=this.activeWrapperBoxes.filter(i=>i.id!==o),this.saveToStore()}}onBoxChange(o){const t=this.activeWrapperBoxes.find(i=>i.id===o.id);(0,v.kK)(t)||(t.wrap_id=o.wrap_id,t.gross_price=o.gross_price,this.saveToStore())}onItemSelectionChange(o){var t;if(o.value){const r=this.activeWrapperBoxes.find(a=>a.id===o.box_id);if(r){const a=r.assigned.filter(m=>m.selected).reduce((m,d)=>m+(d.basket?d.basket.voucher_number:0),0),s=(null===(t=this.availableWrappings.find(m=>m.id===r.wrap_id))||void 0===t?void 0:t.max_voucher_number)||0;if(a+o.item.basket.voucher_number>s)return void this.matSnackBar.open(this.tooManyItemInBoxMessage(s),void 0,this.snackBarConfig)}}if(o.item.selected=!o.item.selected,this.activeWrapperBoxes.length<=1)return void this.saveToStore();const i=o.value;this.activeWrapperBoxes.filter(r=>r.id!==o.box_id).forEach(r=>{r.assigned.forEach(a=>{a.basket_row_id===o.item.basket_row_id&&a.index===o.item.index&&(a.disabled=i)})}),this.saveToStore()}onAddBox(o){this.getSelectedItemIds();const i=this.getSelectedItemCounts(),a=this.getAvailableBasketItems().flatMap(m=>{const d=i.get(m.basket_row_id)||0;return Array(m.quantity).fill(null).map((x,g)=>{const h=g<d;return{id:(0,ee.Z)(),index:g,selected:!1,basket_row_id:m.basket_row_id,disabled:h,basket:this.baskets.find(b=>String(b.idx)===String(m.basket_row_id))}})}),s={id:(0,ee.Z)(),wrap_id:o.id,assigned:a,gross_price:o.gross_price};this.activeWrapperBoxes.push(s),this.saveToStore()}saveToStore(){const o=this.activeWrapperBoxes.map(t=>({...t,assigned:t.assigned.map(i=>({...i}))}));this.store.dispatch(new c.zb(o)),this.cdr.detectChanges()}hasQuantityChanged(o,t){return!(!o||!t)&&o.some((i,r)=>i.quantity!==t[r].quantity)}getSelectedItemCounts(o){const t=new Map;for(const i of this.activeWrapperBoxes)if(!o||i.id!==o)for(const r of i.assigned)if(r.selected){const a=t.get(r.basket_row_id)||0;t.set(r.basket_row_id,a+1)}return t}getSelectedItemIds(o){const t=new Set;for(const i of this.activeWrapperBoxes)if(!o||i.id!==o)for(const r of i.assigned)r.selected&&t.add(r.basket_row_id);return t}getAvailableBasketItems(){return this.giftForm?Object.entries(this.giftForm.controls).filter(([o,t])=>{var i;return(null===(i=t.get("deliveryType"))||void 0===i?void 0:i.value)===c.eo.DELIVERY}).map(([o])=>{const t=this.baskets.find(i=>String(i.idx)===String(o));return{basket_row_id:o,quantity:(null==t?void 0:t.quantity)?t.quantity:0}}):[]}initActiveWrapperBoxes(){if(this.giftForm)if(this.decorativePackaging=this.store.selectSnapshot(c.Kk.decorativePackaging),this.decorativePackaging&&this.decorativePackaging.length>0){const o=JSON.parse(JSON.stringify(this.decorativePackaging));this.activeWrapperBoxes=this.reducedDisplay?o.map(t=>({...t,assigned:t.assigned.filter(i=>i.selected&&!i.disabled)})):o}else{const o=this.getAvailableBasketItems();if(0===o.length)this.activeWrapperBoxes=[];else{const t=o.flatMap(i=>i.quantity>0?Array(i.quantity).fill(null).map((r,a)=>({id:(0,ee.Z)(),index:a,disabled:!1,selected:!1,basket_row_id:i.basket_row_id,basket:this.baskets.find(s=>String(s.idx)===String(i.basket_row_id))})):[]);this.activeWrapperBoxes.push({id:(0,ee.Z)(),assigned:t,wrap_id:this.availableWrappings[0].id,gross_price:this.availableWrappings[0].gross_price}),this.saveToStore()}}}updateActiveWrapperBoxes(){const o=this.getAvailableBasketItems();if(0===o.length)return this.activeWrapperBoxes=[],void this.saveToStore();const t=o.flatMap(r=>r.quantity>0?Array(r.quantity).fill(null).map((a,s)=>({id:(0,ee.Z)(),index:s,selected:!1,disabled:!1,basket_row_id:r.basket_row_id,basket:this.baskets.find(m=>String(m.idx)===String(r.basket_row_id))})):[]);if(0===this.activeWrapperBoxes.length)return this.activeWrapperBoxes=[{id:(0,ee.Z)(),assigned:t,wrap_id:this.availableWrappings[0].id,gross_price:this.availableWrappings[0].gross_price}],void this.saveToStore();const i=this.getSelectedItemIds();for(const r of this.activeWrapperBoxes){const a=new Map(r.assigned.map(d=>[d.basket_row_id,d])),s=new Set(r.assigned.filter(d=>d.selected).map(d=>d.basket_row_id)),m=new Set([...i].filter(d=>!s.has(d)));r.assigned=o.flatMap(d=>Array(d.quantity).fill(null).map((C,x)=>{const g=a.get(d.basket_row_id),h=!(!g||!g.selected),b=!h&&m.has(d.basket_row_id);return{id:g&&g.id?g.id:(0,ee.Z)(),index:x,selected:h,disabled:b,basket_row_id:d.basket_row_id,basket:this.baskets.find(M=>String(M.idx)===String(d.basket_row_id))}}))}this.saveToStore()}};function Sn(n,o){if(1&n){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"button",5),e.\u0275\u0275listener("click",function(){return e.\u0275\u0275restoreView(t),e.\u0275\u0275nextContext().onClickOpenLoginPanel()}),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"transloco"),e.\u0275\u0275elementEnd()}2&n&&(e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(2,1,"PAGE.COMMON.LOGIN")," "))}te.\u0275fac=function(o){return new(o||te)(e.\u0275\u0275directiveInject(U.ux),e.\u0275\u0275directiveInject(f.yh),e.\u0275\u0275directiveInject(e.ChangeDetectorRef))},te.\u0275cmp=e.\u0275\u0275defineComponent({type:te,selectors:[["citydeals-basket-wrapper-manager"]],inputs:{gitFormReady:"gitFormReady",reducedDisplay:"reducedDisplay",baskets:"baskets",giftForm:"giftForm",availableWrappings:"availableWrappings"},features:[e.\u0275\u0275NgOnChangesFeature],decls:5,vars:1,consts:[[1,"row"],[1,"d-flex","flex-column","p-0"],[1,"flex-mb-row","mb-4"],[1,"col-md-12","pt-1"],["class","manager-container",4,"ngIf"],[1,"manager-container"],["class","pt-3",4,"ngIf"],["class","boxes",3,"ngClass",4,"ngFor","ngForOf"],["class","add-box",4,"ngIf"],[1,"pt-3"],[1,"circle-step"],[1,"voucher-design-step-text"],[1,"boxes",3,"ngClass"],[3,"box","reducedDisplay","availableWrappings","hasOneBox","removeBox","boxChange","itemSelectionChange"],[1,"add-box"],[3,"justAddBox","availableWrappings","addBox"]],template:function(o,t){1&o&&(e.\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),e.\u0275\u0275template(4,Tn,4,3,"div",4),e.\u0275\u0275elementEnd()()()()),2&o&&(e.\u0275\u0275advance(4),e.\u0275\u0275property("ngIf",t.gitFormReady&&t.activeWrapperBoxes.length>0))},directives:[u.NgIf,u.NgForOf,u.NgClass,wn],styles:[".manager-container[_ngcontent-%COMP%]{grid-gap:16px;gap:16px;display:grid}.manager-container[_ngcontent-%COMP%]   .boxes[_ngcontent-%COMP%]{padding-top:1rem;padding-left:3rem;padding-right:3rem}@media (max-width: 768px){.manager-container[_ngcontent-%COMP%]   .boxes[_ngcontent-%COMP%]{padding-left:0;padding-right:0}}.manager-container[_ngcontent-%COMP%]   .add-box[_ngcontent-%COMP%]{padding-top:1rem;padding-left:3rem;padding-right:3rem;border-top:1px solid #eee;border-bottom:1px solid #eee}@media (max-width: 768px){.manager-container[_ngcontent-%COMP%]   .add-box[_ngcontent-%COMP%]{padding-left:0;padding-right:0}}.manager-container[_ngcontent-%COMP%]   .circle-step[_ngcontent-%COMP%]{border-radius:50%;width:34px;height:34px;padding:7px;background-color:var(--bs-green);color:#fff;text-align:center;font:inherit;font-weight:600;display:inline-block}.manager-container[_ngcontent-%COMP%]   .voucher-design-step-text[_ngcontent-%COMP%]{padding-left:15px;font-weight:600;color:#454f63!important}.reduced-display[_ngcontent-%COMP%]{padding-right:5px!important}"],changeDetection:0}),te=(0,_.gn)([(0,y.c)(),(0,_.w6)("design:paramtypes",[U.ux,f.yh,e.ChangeDetectorRef])],te);class ne{constructor(o){this.store=o,this.continueText="Tov\xe1bb a fizet\xe9shez",this.continueDisabled=!1,this.continueClick=new e.EventEmitter}onClickOpenLoginPanel(){this.store.selectSnapshot(P.AuthState.isLoggedIn)||this.store.dispatch(new P.LoginInModalAction)}}ne.\u0275fac=function(o){return new(o||ne)(e.\u0275\u0275directiveInject(f.yh))},ne.\u0275cmp=e.\u0275\u0275defineComponent({type:ne,selectors:[["citydeals-basket-footer"]],inputs:{continueText:"continueText",continueDisabled:"continueDisabled"},outputs:{continueClick:"continueClick"},decls:9,vars:8,consts:[[1,"d-flex","flex-column","flex-md-row","justify-content-md-between","w-100","mt-4"],["routerLink","/","type","button",1,"cd-btn","cd-btn--green","cd-btn--rounded","cd-btn--stroked","mb-2","mb-md-0"],[1,"d-flex","flex-column","flex-md-row","gap-2"],["type","button","class","cd-btn cd-btn--green cd-btn--rounded cd-btn--stroked mb-2 mb-md-0",3,"click",4,"ngIf"],["type","button",1,"cd-btn","cd-btn--green","cd-btn--rounded",3,"disabled","click"],["type","button",1,"cd-btn","cd-btn--green","cd-btn--rounded","cd-btn--stroked","mb-2","mb-md-0",3,"click"]],template:function(o,t){1&o&&(e.\u0275\u0275elementStart(0,"div",0)(1,"button",1),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"transloco"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"div",2),e.\u0275\u0275template(5,Sn,3,3,"button",3),e.\u0275\u0275pipe(6,"async"),e.\u0275\u0275elementStart(7,"button",4),e.\u0275\u0275listener("click",function(){return t.continueClick.emit()}),e.\u0275\u0275text(8),e.\u0275\u0275elementEnd()()()),2&o&&(e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(3,4,"PAGE.COMMON.OTHER_OFFERS")," "),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngIf",!1===e.\u0275\u0275pipeBind1(6,6,t.isLoggedIn$)),e.\u0275\u0275advance(2),e.\u0275\u0275property("disabled",t.continueDisabled),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",t.continueText," "))},directives:[k.rH,u.NgIf],pipes:[O.Ot,u.AsyncPipe],styles:[".cd-btn[_ngcontent-%COMP%]{padding:12px 25px;border-radius:4px;font-weight:700;font-size:14px;line-height:16px;text-align:center;cursor:pointer;border:1px solid transparent}.cd-btn--sm[_ngcontent-%COMP%]{padding-top:8px;padding-bottom:8px}.cd-btn--green[_ngcontent-%COMP%]{background-color:#00b267;color:#fff;transition:background-color 1s ease-out,border-color 1s ease-out}.cd-btn--green[_ngcontent-%COMP%]:hover{background-color:#959cac}.cd-btn--green.cd-btn--stroked[_ngcontent-%COMP%]{color:#00b267!important;border-color:#00b267}.cd-btn--green.cd-btn--stroked[_ngcontent-%COMP%]:hover{color:#218437!important;border-color:#218437!important}.cd-btn--rounded[_ngcontent-%COMP%]{border-radius:20px}.cd-btn--stroked[_ngcontent-%COMP%]{color:#000;border:3px solid black;background-color:transparent!important;transition:color 1s ease-out,border-color 1s ease-out}.cd-btn[disabled][_ngcontent-%COMP%]{opacity:.5;pointer-events:none}"]}),(0,_.gn)([(0,f.Ph)(P.AuthState.isLoggedIn),(0,_.w6)("design:type",w.y)],ne.prototype,"isLoggedIn$",void 0);
1var Pn=p(16),Dn=p(7943);function Rn(n,o){if(1&n){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"mat-icon",30),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(t);const r=e.\u0275\u0275nextContext().$implicit;return e.\u0275\u0275nextContext(6).removeOffer(r.idx,r.quantity)}),e.\u0275\u0275text(1," close "),e.\u0275\u0275elementEnd()}}function Fn(n,o){1&n&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275element(1,"br"),e.\u0275\u0275elementStart(2,"span",31),e.\u0275\u0275text(3,"Online voucher"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementContainerEnd())}function Bn(n,o){if(1&n){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275elementStart(1,"div",33),e.\u0275\u0275text(2),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(3,"div",38)(4,"button",39),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(t);const r=e.\u0275\u0275nextContext(2).$implicit;return e.\u0275\u0275nextContext(6).removeQTY(r)}),e.\u0275\u0275text(5," - "),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(6,"div",40),e.\u0275\u0275text(7),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(8,"button",41),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(t);const r=e.\u0275\u0275nextContext(2).$implicit;return e.\u0275\u0275nextContext(6).addQTY(r)}),e.\u0275\u0275text(9," + "),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementContainerEnd()}if(2&n){const t=e.\u0275\u0275nextContext(2).$implicit,i=e.\u0275\u0275nextContext(6);e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate1("",i.headers.count,":"),e.\u0275\u0275advance(5),e.\u0275\u0275textInterpolate(t.quantity)}}function An(n,o){if(1&n&&(e.\u0275\u0275elementStart(0,"div",42),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&n){const t=e.\u0275\u0275nextContext(2).$implicit;e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1("",t.quantity," db")}}const Nn=function(n){return{"basket-value":n}};function Ln(n,o){if(1&n&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275elementStart(1,"div",32)(2,"div",33),e.\u0275\u0275text(3),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"div",34),e.\u0275\u0275text(5),e.\u0275\u0275pipe(6,"number"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(7,"div",35),e.\u0275\u0275template(8,Bn,10,2,"ng-container",23),e.\u0275\u0275template(9,An,2,1,"ng-template",null,36,e.\u0275\u0275templateRefExtractor),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(11,"div",37)(12,"div",33),e.\u0275\u0275text(13),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(14,"div",34),e.\u0275\u0275text(15),e.\u0275\u0275pipe(16,"number"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementContainerEnd()),2&n){const t=e.\u0275\u0275reference(10),i=e.\u0275\u0275nextContext().$implicit,r=e.\u0275\u0275nextContext(6);e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate1("",r.headers.price,":"),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate1("",e.\u0275\u0275pipeBind1(6,7,i.price)," Ft"),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngIf",!r.reducedDisplay)("ngIfElse",t),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngClass",e.\u0275\u0275pureFunction1(11,Nn,r.reducedDisplay)),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate1("",r.headers.total,":"),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(16,9,i.price*i.quantity)," Ft ")}}function Gn(n,o){if(1&n){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275elementStart(1,"div",38)(2,"button",39),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(t);const r=e.\u0275\u0275nextContext(2).$implicit;return e.\u0275\u0275nextContext(6).removeQTY(r)}),e.\u0275\u0275text(3," - "),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"div",40),e.\u0275\u0275text(5),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(6,"button",41),e.\u0275\u0275listener("click",function(){e.\u0275\u0275restoreView(t);const r=e.\u0275\u0275nextContext(2).$implicit;return e.\u0275\u0275nextContext(6).addQTY(r)}),e.\u0275\u0275text(7," + "),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementContainerEnd()}if(2&n){const t=e.\u0275\u0275nextContext(2).$implicit;e.\u0275\u0275advance(5),e.\u0275\u0275textInterpolate(t.quantity)}}function Vn(n,o){if(1&n&&(e.\u0275\u0275elementStart(0,"div",52),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&n){const t=e.\u0275\u0275nextContext(2).$implicit;e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1("",t.quantity," db")}}function jn(n,o){if(1&n&&(e.\u0275\u0275elementStart(0,"div",43)(1,"div",44),e.\u0275\u0275text(2," \xc1r "),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(3,"div",45)(4,"div",46)(5,"div",47),e.\u0275\u0275text(6),e.\u0275\u0275pipe(7,"number"),e.\u0275\u0275elementEnd()()()(),e.\u0275\u0275elementStart(8,"div",48)(9,"div",44),e.\u0275\u0275text(10),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(11,"div",49),e.\u0275\u0275template(12,Gn,8,1,"ng-container",23),e.\u0275\u0275template(13,Vn,2,1,"ng-template",null,50,e.\u0275\u0275templateRefExtractor),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(15,"div",51)(16,"div",44),e.\u0275\u0275text(17),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(18,"div",45)(19,"div",46)(20,"div",47),e.\u0275\u0275text(2
11),e.\u0275\u0275pipe(22,"number"),e.\u0275\u0275elementEnd()()()()),2&n){const t=e.\u0275\u0275reference(14),i=e.\u0275\u0275nextContext().$implicit,r=e.\u0275\u0275nextContext(6);e.\u0275\u0275advance(6),e.\u0275\u0275textInterpolate1("",e.\u0275\u0275pipeBind1(7,6,i.price)," Ft"),e.\u0275\u0275advance(4),e.\u0275\u0275textInterpolate1(" ",r.headers.count,": "),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",!r.reducedDisplay)("ngIfElse",t),e.\u0275\u0275advance(5),e.\u0275\u0275textInterpolate1(" ",r.headers.total,": "),e.\u0275\u0275advance(4),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(22,8,i.price*i.quantity)," Ft ")}}function zn(n,o){1&n&&(e.\u0275\u0275elementStart(0,"span",58),e.\u0275\u0275text(1,"\u2714"),e.\u0275\u0275elementEnd())}function Wn(n,o){if(1&n){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"button",53),e.\u0275\u0275listener("mouseenter",function(){e.\u0275\u0275restoreView(t);const r=e.\u0275\u0275nextContext().$implicit;return e.\u0275\u0275nextContext(6).giftButtonHovering[r.idx]=!0})("mouseleave",function(){e.\u0275\u0275restoreView(t);const r=e.\u0275\u0275nextContext().$implicit;return e.\u0275\u0275nextContext(6).giftButtonHovering[r.idx]=!1})("click",function(){e.\u0275\u0275restoreView(t);const r=e.\u0275\u0275nextContext().$implicit;return e.\u0275\u0275nextContext(6).onGiftFormChecked(r.idx.toString())}),e.\u0275\u0275elementStart(1,"div",54),e.\u0275\u0275element(2,"img",55),e.\u0275\u0275elementStart(3,"div",56)(4,"b"),e.\u0275\u0275text(5,"AJ\xc1ND\xc9KBA ADN\xc1D?"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(6,"span"),e.\u0275\u0275text(7,"Egyedi \xfczenettel, \xe1r megjelen\xedt\xe9s n\xe9lk\xfcl."),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(8,zn,2,0,"span",57),e.\u0275\u0275elementEnd()()()}if(2&n){const t=e.\u0275\u0275nextContext().$implicit,i=e.\u0275\u0275nextContext(6);e.\u0275\u0275advance(2),e.\u0275\u0275property("src",i.giftButtonHovering[t.idx]?"assets/img/gift-white.png":"/assets/img/gift.png",e.\u0275\u0275sanitizeUrl),e.\u0275\u0275advance(6),e.\u0275\u0275property("ngIf",i.form.controls.gifts.value.hasOwnProperty(t.idx))}}function Hn(n,o){if(1&n&&(e.\u0275\u0275elementStart(0,"div",59),e.\u0275\u0275element(1,"div",26),e.\u0275\u0275elementStart(2,"div",60),e.\u0275\u0275element(3,"citydeals-basket-overview-gift",61),e.\u0275\u0275elementEnd()()),2&n){const t=e.\u0275\u0275nextContext().$implicit,i=e.\u0275\u0275nextContext(6);e.\u0275\u0275advance(3),e.\u0275\u0275property("packageId",t.id)("parentForm",i.giftForm)("giftFormControlName",t.idx.toString())("isVisibility",i.form.controls.gifts.value.hasOwnProperty(t.idx)&&!i.reducedDisplay)}}function Un(n,o){if(1&n&&(e.\u0275\u0275elementStart(0,"div",14)(1,"div",15)(2,"div",16),e.\u0275\u0275template(3,Rn,2,0,"mat-icon",17),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"div",18),e.\u0275\u0275element(5,"img",19),e.\u0275\u0275pipe(6,"setImageUrl"),e.\u0275\u0275elementStart(7,"div",20)(8,"a",21),e.\u0275\u0275text(9),e.\u0275\u0275element(10,"br"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(11,"span",22),e.\u0275\u0275text(12),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(13,Fn,4,0,"ng-container",2),e.\u0275\u0275element(14,"br"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275template(15,Ln,17,13,"ng-container",23),e.\u0275\u0275pipe(16,"isMobileDevice"),e.\u0275\u0275template(17,jn,23,10,"ng-template",null,24,e.\u0275\u0275templateRefExtractor),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(19,"div",25),e.\u0275\u0275element(20,"div",26),e.\u0275\u0275elementStart(21,"div",27),e.\u0275\u0275template(22,Wn,9,2,"button",28),e.\u0275\u0275elementEnd()(),e.\u0275\u0275template(23,Hn,4,4,"div",29),e.\u0275\u0275elementEnd()),2&n){const t=o.$implicit,i=e.\u0275\u0275reference(18),r=e.\u0275\u0275nextContext(6);e.\u0275\u0275advance(3),e.\u0275\u0275property("ngIf",!r.reducedDisplay),e.\u0275\u0275advance(2),e.\u0275\u0275property("src",e.\u0275\u0275pipeBind1(6,12,t.picture.big),e.\u0275\u0275sanitizeUrl)("alt",t.picture.alt)("routerLink","/"+t.selected_slug+"/"+t.slug),e.\u0275\u0275advance(3),e.\u0275\u0275property("routerLink","/"+t.selected_slug+"/"+t.slug),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",t.voucherTitle," "),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate1(" ",null==t?null:t.name," "),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",r.reducedDisplay),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",!e.\u0275\u0275pipeBind1(16,14,""))("ngIfElse",i),e.\u0275\u0275advance(7),e.\u0275\u0275property("ngIf",!r.reducedDisplay),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",r.form.controls.gifts.value.hasOwnProperty(t.idx)&&!r.reducedDisplay)}}function $n(n,o){if(1&n&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275template(1,Un,24,16,"div",13),e.\u0275\u0275elementContainerEnd()),2&n){const t=o.ngIf;e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",t)}}function Kn(n,o){if(1&n&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275template(1,$n,2,1,"ng-container",2),e.\u0275\u0275pipe(2,"async"),e.\u0275\u0275elementContainerEnd()),2&n){const t=e.\u0275\u0275nextContext(4);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",e.\u0275\u0275pipeBind1(2,1,t.filteredOffers$))}}function Qn(n,o){if(1&n&&e.\u0275\u0275element(0,"citydeals-basket-wrapper-manager",63),2&n){const t=e.\u0275\u0275nextContext().ngIf,i=e.\u0275\u0275nextContext(5);e.\u0275\u0275property("baskets",t)("reducedDisplay",i.reducedDisplay)("giftForm",i.giftForm)("gitFormReady",i.loadGiftFormLoaded)("availableWrappings",i.availableWrappings)}}function Yn(n,o){if(1&n&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275template(1,Qn,1,5,"citydeals-basket-wrapper-manager",62),e.\u0275\u0275elementContainerEnd()),2&n){const t=o.ngIf;e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",t.length>0)}}function Xn(n,o){if(1&n&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275template(1,Yn,2,1,"ng-container",2),e.\u0275\u0275pipe(2,"async"),e.\u0275\u0275elementContainerEnd()),2&n){const t=e.\u0275\u0275nextContext(4);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",e.\u0275\u0275pipeBind1(2,1,t.offers$))}}function Zn(n,o){if(1&n&&(e.\u0275\u0275elementContainerStart(0)(1,11),e.\u0275\u0275template(2,Kn,3,3,"ng-container",12),e.\u0275\u0275template(3,Xn,3,3,"ng-container",12),e.\u0275\u0275elementContainerEnd()()),2&n){const t=o.$implicit,i=e.\u0275\u0275nextContext(3);e.\u0275\u0275advance(1),e.\u0275\u0275property("ngSwitch",t),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngSwitchCase",i.basketOverviewListEnum.BASKET),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngSwitchCase",i.basketOverviewListEnum.GIFT_PACKAGE)}}function qn(n,o){if(1&n){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275elementStart(1,"div",67)(2,"div",68),e.\u0275\u0275text(3),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(4,"div",69)(5,"div"),e.\u0275\u0275text(6),e.\u0275\u0275pipe(7,"discount"),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(8,"mat-icon",30),e.\u0275\u0275listener("click",function(){return e.\u0275\u0275restoreView(t),e.\u0275\u0275nextContext(4).removeCoupon()}),e.\u0275\u0275text(9," close "),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementContainerEnd()}if(2&n){const t=o.ngIf,i=e.\u0275\u0275nextContext(4);e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate1(" ",t.name," "),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate1("(",e.\u0275\u0275pipeBind2(7,2,t.discount,t.discount_type===i.discountTypeEnum.FIX),")")}}function Jn(n,o){if(1&n){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementStart(0,"input",70),e.\u0275\u0275listener("keyup.enter",function(){return e.\u0275\u0275restoreView(t),e.\u0275\u0275nextContext(4).validateCoupon()}),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(1,"button",71),e.\u0275\u0275listener("click",function(){return e.\u0275\u0275restoreView(t),e.\u0275\u0275nextContext(4).validateCoupon()}),e.\u0275\u0275text(2),e.\u0275\u0275elementEnd()}if(2&n){const t=e.\u0275\u0275nextContext(3).$implicit;e.\u0275\u0275propertyInterpolate("placeholder",t("CART.COUPON_CODE")),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate1(" ",t("CART.USE_COUPON_CODE")," ")}}function eo(n,o){if(1&n&&(e.\u0275\u0275elementStart(0,"div",64)(1,"div",65),e.\u0275\u0275template(2,qn,10,5,"ng-container",23),e.\u0275\u0275pipe(3,"async"),e.\u0275\u0275template(4,Jn,3,2,"ng-template",null,66,e.\u0275\u0275templateRefExtractor),e.\u0275\u0275elementEnd()()),2&n){const t=e.\u0275\u0275reference(5),i=e.\u0275\u0275nextContext(3);e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",e.\u0275\u0275pipeBind1(3,2,i.coupon$))("ngIfElse",t)}}function to(n,o){if(1&n&&(e.\u0275\u0275elementStart(0,"div",67)(1,"div",68),e.\u0275\u0275text(2),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(3,"div",69),e.\u0275\u0275text(4),e.\u0275\u0275pipe(5,"number"),e.\u0275\u0275elementEnd()()),2&n){const t=e.\u0275\u0275nextContext().ngIf,i=e.\u0275\u0275nextContext(2).$implicit;e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate1("",i("COMMON.GIFT_PACKAGES_PRICE"),":"),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate2(" ",e.\u0275\u0275pipeBind2(5,3,t.giftPackagesTotal,"1.0-0")," ",i("COMMON.CURRENCY_SHORT")," ")}}function no(n,o){if(1&n&&(e.\u0275\u0275elementStart(0,"div",67)(1,"div",68),e.\u0275\u0275text(2),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(3,"div",69),e.\u0275\u0275text(4),e.\u0275\u0275pipe(5,"number"),e.\u0275\u0275elementEnd()()),2&n){const t=e.\u0275\u0275nextContext().ngIf,i=e.\u0275\u0275nextContext(2).$implicit;e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate1("",i("COMMON.SHIPPING_PRICE"),":"),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate2(" ",e.\u0275\u0275pipeBind2(5,3,t.shippingPrice,"1.0-0")," ",i("COMMON.CURRENCY_SHORT")," ")}}function oo(n,o){if(1&n&&(e.\u0275\u0275elementStart(0,"div",72),e.\u0275\u0275template(1,to,6,6,"div",73),e.\u0275\u0275template(2,no,6,6,"div",73),e.\u0275\u0275elementStart(3,"div",67)(4,"div",68),e.\u0275\u0275text(5),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(6,"div",69),e.\u0275\u0275text(7),e.\u0275\u0275pipe(8,"number"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(9,"div",67)(10,"div",68),e.\u0275\u0275text(11),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(12,"div",69),e.\u0275\u0275text(13),e.\u0275\u0275pipe(14,"number"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(15,"div",67)(16,"div",68),e.\u0275\u0275text(17),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(18,"div",74),e.\u0275\u0275text(19),e.\u0275\u0275pipe(20,"number"),e.\u0275\u0275elementEnd()()()),2&n){const t=o.ngIf,i=e.\u0275\u0275nextContext(2).$implicit;e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",t.giftPackagesTotal>0),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",t.giftPackagesTotal>0&&t.shippingPrice>0),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate1("",i("COMMON.TOTAL_PRICE"),":"),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate2(" ",e.\u0275\u0275pipeBind2(8,11,t.total+t.discount,"1.0-0")," ",i("COMMON.CURRENCY_SHORT")," "),e.\u0275\u0275advance(4),e.\u0275\u0275textInterpolate1("",i("COMMON.DISCOUNT"),":"),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate2(" ",e.\u0275\u0275pipeBind2(14,14,t.discount,"1.0-0")," ",i("COMMON.CURRENCY_SHORT")," "),e.\u0275\u0275advance(4),e.\u0275\u0275textInterpolate1(" ",i("COMMON.TOTAL_AMOUNT"),": "),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate2(" ",e.\u0275\u0275pipeBind1(20,17,t.total)," ",i("COMMON.CURRENCY_SHORT")," ")}}function io(n,o){if(1&n&&(e.\u0275\u0275elementContainerStart(0,6),e.\u0275\u0275elementStart(1,"div",7),e.\u0275\u0275template(2,Zn,4,3,"ng-container",8),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(3,eo,6,4,"div",9),e.\u0275\u0275template(4,oo,21,19,"div",10),e.\u0275\u0275pipe(5,"async"),e.\u0275\u0275elementContainerEnd()),2&n){const t=e.\u0275\u0275nextContext(2);e.\u0275\u0275property("formGroup",t.form),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngForOf",t.displayOrder),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!t.reducedDisplay),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",e.\u0275\u0275pipeBind1(5,4,t.price$))}}function ro(n,o){1&n&&(e.\u0275\u0275elementStart(0,"div",75),e.\u0275\u0275element(1,"div",76),e.\u0275\u0275elementEnd())}function ao(n,o){if(1&n&&(e.\u0275\u0275elementStart(0,"div",3),e.\u0275\u0275template(1,io,6,6,"ng-container",4),e.\u0275\u0275template(2,ro,2,0,"ng-template",null,5,e.\u0275\u0275templateRefExtractor),e.\u0275\u0275elementEnd()),2&n){const t=e.\u0275\u0275reference(3),i=e.\u0275\u0275nextContext();e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!i.loading)("ngIfElse",t)}}function so(n,o){if(1&n&&(e.\u0275\u0275elementStart(0,"div")(1,"h5"),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"transloco"),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(4,"citydeals-voucher-list",78),e.\u0275\u0275pipe(5,"async"),e.\u0275\u0275elementEnd()),2&n){const t=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(3,2,"PAGE.BASKET_STEPPER.VOUCHER_BY_ZIP_CODE")),e.\u0275\u0275advance(2),e.\u0275\u0275property("vouchers",e.\u0275\u0275pipeBind1(5,4,t.vouchersByZipCode$))}}function lo(n,o){if(1&n){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275elementStart(1,"citydeals-basket-footer",77),e.\u0275\u0275listener("continueClick",function(){return e.\u0275\u0275restoreView(t),e.\u0275\u0275nextContext().nextStep()}),e.\u0275\u0275pipe(2,"transloco"),e.\u0275\u0275pipe(3,"async"),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(4,"hr"),e.\u0275\u0275template(5,so,6,6,"div",2),e.\u0275\u0275elementContainerEnd()}if(2&n){const t=e.\u0275\u0275nextContext();let i;e.\u0275\u0275advance(1),e.\u0275\u0275propertyInterpolate("continueText",e.\u0275\u0275pipeBind1(2,3,"PAGE.CART.PROCEED_TO_PAYMENT")),e.\u0275\u0275property("continueDisabled",!(null!=(i=e.\u0275\u0275pipeBind1(3,5,t.offers$))&&i.length)||t.form.invali
1d),e.\u0275\u0275advance(4),e.\u0275\u0275property("ngIf",t.showVouchersByZipCode)}}let D=class{constructor(o,t,i,r,a,s,m){this.store=o,this.router=t,this.http=i,this.matSnackBar=r,this.purchaseService=a,this.basketStepperService=s,this.translocoService=m,this.reducedDisplay=!1,this.displayOrder=[c.yx.BASKET,c.yx.GIFT_PACKAGE],this.continue=new e.EventEmitter,this.giftForm=new v.TY({}),this.couponFormControl=new l.NI(""),this.form=new v.TY({gifts:this.giftForm,coupon:this.couponFormControl}),this.loading=!1,this.loadGiftFormLoaded=!1,this.defaultVoucherDesignItem={id:19,preview_image_url:"/storage/static/voucher_designs/preview/sok_szeretettel.jpg",thumbnail_image_url:"/storage/static/voucher_designs/sok_szeretettel.png",title:"Sok szeretettel"},this.availableWrappings=[],this.firstItem=!0,this.showVouchersByZipCode=!1,this.vouchersByZipCode$=new De.X([]),this.giftButtonHovering={},this.hasBoxesWithoutSelectedItemMessage="Van olyan d\xedszcsomagol\xe1s a kosaradban, amihez m\xe9g nem v\xe1lasztott\xe1l aj\xe1nd\xe9kot.",this.snackBarConfig={panelClass:["snackBarStyleForError"],duration:4e3},this.basketOverviewListEnum=c.yx,this.discountTypeEnum=Mt.k,this.natural=()=>0}ngOnInit(){this.giftKeyCheck(),this.store.select(c.Kk.offers).pipe((0,y.t)(this),(0,fe.x)()).subscribe(t=>{!this.firstItem&&t.length>0?this.getVoucherByZipCode(4).subscribe(i=>{this.showVouchersByZipCode=i.result.length>0,this.vouchersByZipCode$.next(i.result)}):this.showVouchersByZipCode=!1,this.firstItem=!1}),this.translocoService.selectTranslateObject("PAGE.COMMON").subscribe(t=>{this.headers=Object({close:"",picture:t.OFFER,price:t.PRICE,count:t.QUANTITY,total:t.SUM})}),this.loadForm(),this.autoSaveForm(),this.filteredOffers$=(0,ge.a)([this.offers$,this.decorativePackaging$]).pipe((0,F.U)(([t,i])=>{if(!this.reducedDisplay||(0,v.kK)(i)||0===i.length)return t;const r=new Set(i.flatMap(a=>a.assigned.map(s=>String(s.basket_row_id))).filter(Boolean));return t.filter(a=>!r.has(String(a.idx)))})),this.store.selectSnapshot(c.Kk.offers).length>0&&this.getVoucherByZipCode(4).subscribe(t=>this.vouchersByZipCode$.next(t.result)),this.form.statusChanges.pipe((0,y.t)(this),(0,Ye.O)(this.form.status),(0,F.U)(()=>this.form.valid)).subscribe(t=>this.basketStepperService.setBasketFormValid(t))}removeOffer(o,t){this.giftForm.removeControl(o),this.store.dispatch(new c.$Z(o,t))}removeQTY(o){this.store.dispatch(new c.$Z(o.idx,1))}addQTY(o){this.store.dispatch(new c.vB(o,1))}validateCoupon(){(0,v.ke)(this.couponFormControl.value)||this.store.dispatch(new c.Z2(this.couponFormControl.value))}removeCoupon(){this.store.dispatch(new c.PH)}nextStep(){const o=this.store.selectSnapshot(c.Kk.decorativePackaging);(null==o?void 0:o.some(i=>!i.assigned.some(r=>r.selected)))?this.matSnackBar.open(this.hasBoxesWithoutSelectedItemMessage,void 0,this.snackBarConfig):this.router.navigate(["basket",c.bF.paymentMethod])}onGiftFormChecked(o){const t=this.giftForm.get(o);(0,v.kK)(t)?this.giftForm.addControl(o,this.createGiftFormGroup()):this.giftForm.removeControl(o)}createGiftFormGroup(o){var t,i,r,a,s;const m=new v.TY({name:new l.NI(null!==(t=null==o?void 0:o.name)&&void 0!==t?t:null,l.kI.required),email:new l.NI(null!==(i=null==o?void 0:o.email)&&void 0!==i?i:null),message:new l.NI(null!==(r=null==o?void 0:o.message)&&void 0!==r?r:null,l.kI.required),voucherDesign:new l.NI(null!==(a=null==o?void 0:o.voucherDesign)&&void 0!==a?a:this.defaultVoucherDesignItem),deliveryType:new l.NI(null!==(s=null==o?void 0:o.deliveryType)&&void 0!==s?s:null,l.kI.required)}),d=m.get("email"),C=m.get("deliveryType");return null==C||C.valueChanges.pipe((0,y.t)(this)).subscribe(x=>{x===c.eo.EMAIL?null==d||d.setValidators([l.kI.required,l.kI.email]):null==d||d.clearValidators(),null==d||d.updateValueAndValidity({emitEvent:!1})}),m}autoSaveForm(){const o=this.form.valueChanges.pipe((0,Ze.b)(1e3));this.form.valueChanges.pipe((0,Et.e)(1e3)).pipe((0,Ot.b)(o),(0,fe.x)(),(0,y.t)(this),(0,Xe.w)(()=>this.store.dispatch(new c.cK(this.form.value)))).subscribe()}loadForm(){(0,wt.D)({overview:this.overviewForm$.pipe((0,It.n)(o=>(0,v.kK)(o)),(0,re.q)(1)),wrappings:this.purchaseService.getWrappings()}).pipe((0,y.t)(this)).subscribe(({overview:o,wrappings:t})=>{this.availableWrappings=t,this.loadGiftForm(o.gifts),this.form.patchValue(o)})}
1loadGiftForm(o){Object.keys(o).forEach(t=>{this.giftForm.addControl(t,this.createGiftFormGroup(o[t]))}),this.loadGiftFormLoaded=!0}getVoucherByZipCode(o){const i=this.store.selectSnapshot(c.Kk.offers).map(a=>a.id),r=(new ce.LE).set("offer_limit",`${o}`).set("packages",i.toString());return this.http.get(`${ie.N.backendUrl}/client/offers/additional-offers/by-zip-code`,{params:r})}giftKeyCheck(){(0,ge.a)([this.offers$,this.overviewForm$]).pipe((0,re.q)(1),(0,y.t)(this)).subscribe(([o,t])=>{const i=o.map(a=>a.idx.toString()),r=Object.keys(t.gifts).filter(a=>!i.includes(a));r.length>0&&this.store.dispatch(new c.UP(r))})}};D.\u0275fac=function(o){return new(o||D)(e.\u0275\u0275directiveInject(f.yh),e.\u0275\u0275directiveInject(k.F0),e.\u0275\u0275directiveInject(ce.eN),e.\u0275\u0275directiveInject(U.ux),e.\u0275\u0275directiveInject(c.B3),e.\u0275\u0275directiveInject(c.vD),e.\u0275\u0275directiveInject(O.Vn))},D.\u0275cmp=e.\u0275\u0275defineComponent({type:D,selectors:[["citydeals-basket-overview"]],inputs:{reducedDisplay:"reducedDisplay",displayOrder:"displayOrder"},outputs:{continue:"continue"},decls:5,vars:5,consts:[[1,"mb-5","fw-bold","fs-2","header-title-text"],["class","basket-overview__card p-3 rounded-3",4,"transloco","translocoRead"],[4,"ngIf"],[1,"basket-overview__card","p-3","rounded-3"],[3,"formGroup",4,"ngIf","ngIfElse"],["spinner",""],[3,"formGroup"],[1,"basket-overview__offers"],[4,"ngFor","ngForOf"],["class","mt-2",4,"ngIf"],["class","d-flex flex-column align-items-end w-100 pt-2",4,"ngIf"],[3,"ngSwitch"],[4,"ngSwitchCase"],["class","d-flex flex-column border-bottom border-light pt-md-2",4,"ngFor","ngForOf"],[1,"d-flex","flex-column","border-bottom","border-light","pt-md-2"],[1,"d-flex","flex-column","flex-md-row","py-2"],[1,"basket-overview__column","mt-md-4"],["class","basket-overview__close-icon text-dark-grey fs-5","role","button",3,"click",4,"ngIf"],[1,"basket-overview__column","align-items-start"],["role","button",1,"basket-overview__offer-image",3,"src","alt","routerLink"],[1,"ms-3"],["role","button",1,"basket-overview__offer-title","fw-bold","fs-6","text-primary",3,"routerLink"],[1,"selected-package-text"],[4,"ngIf","ngIfElse"],["mobileTpl",""],[1,"d-flex","flex-column","flex-md-row","py-2","pt-0"],[1,"basket-overview__column"],[1,"basket-overview__column","flex-grow-1","pt-0","pt-md-3"],["class","cd-btn cd-btn--sm cd-btn--green cd-btn--rounded cd-btn--stroked cd-btn--sm-width cd-btn-basket",3,"mouseenter","mouseleave","click",4,"ngIf"],["class","d-flex flex-column flex-md-row py-1 py-md-2",4,"ngIf"],["role","button",1,"basket-overview__close-icon","text-dark-grey","fs-5",3,"click"],[1,"on-line-text"],[1,"basket-overview__column","mt-md-3"],[1,"d-md-none"],[1,"price-value"],[1,"basket-overview__column","mt-md-2","pt-md-1"],["justQuantityTpl",""],[1,"basket-overview__column","mt-md-3",3,"ngClass"],[1,"basket-quantity-counter"],[1,"decrement",3,"click"],[1,"value"],[1,"increment",3,"click"],[1,"quantity-value"],[1,"row"],[1,"col-3","align-items-center","d-flex"],[1,"col-9"],[1,"d-flex","justify-content-end"],[1,"price-value","px-1"],[1,"row","pt-1"],[1,"col-9","d-flex","justify-content-end"],["mobileJustQuantityTpl",""],[1,"row","text-align-right","pt-1"],[1,"quantity-value","p-0","px-1"],[1,"cd-btn","cd-btn--sm","cd-btn--green","cd-btn--rounded","cd-btn--stroked","cd-btn--sm-width","cd-btn-basket",3,"mouseenter","mouseleave","click"],[1,"d-flex","justify-content-center","align-items-center","gap-3","cd-bnt-basket-container"],["alt","gift.png",3,"src"],[1,"d-flex","align-items-center","position-relative","gap-1","cdn-bnt-basket-container-text"],["class","checkmark-icon",4,"ngIf"],[1,"checkmark-icon"],[1,"d-flex","flex-column","flex-md-row","py-1","py-md-2"],[1,"basket-overview__column","flex-grow-1"],[3,"packageId","parentForm","giftFormControlName","isVisibility"],[3,"baskets","reducedDisplay","giftForm","gitFormReady","availableWrappings",4,"ngIf"],[3,"baskets","reducedDisplay","giftForm","gitFormReady","availableWrappings"],[1,"mt-2"],[1,"d-flex","align-items-center","justify-content-end"],["noCoupon",""],[1,"basket-overview__summary-price-box"],[1,"basket-overview__summary-price-box-key"],[1,"basket-overview__summary-price-box-value"],["type","text","formControlName","coupon",1,"cd-input","basket-overview__coupon-input","me-2","mb-3",3,"placeholder","keyup.enter"],[1,"cd-btn","cd-btn--sm","cd-btn--green","cd-btn--rounded","cd-btn--stroked","cd-btn--sm-width","mb-3",3,"click"],[1,"d-flex","flex-column","align-items-end","w-100","pt-2"],["class","basket-overview__summary-price-box",4,"ngIf"],[1,"basket-overview__summary-price-box-value","fw-bold","text-green","total-value"],[1,"w-100","d-flex","justify-content-center","my-4"],["role","status",1,"spinner-border"],[1,"w-100",3,"continueText","continueDisabled","continueClick"],["hasFilter","false","autoLoad","false","maybeRowCount","1","maybeRowItemCount","4","maybeRowItemHeight","353",3,"vouchers"]],template:function(o,t){1&o&&(e.\u0275\u0275elementStart(0,"h1",0),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"transloco"),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(3,ao,4,2,"div",1),e.\u0275\u0275template(4,lo,6,7,"ng-container",2)),2&o&&(e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(2,3,"PAGE.CART.HEADER_TEXT")),e.\u0275\u0275advance(2),e.\u0275\u0275property("translocoRead","PAGE"),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",!t.reducedDisplay))},directives:[O.KI,u.NgIf,l.JL,l.sg,u.NgForOf,u.NgSwitch,u.NgSwitchCase,Re.Hw,k.rH,k.yS,u.NgClass,J,te,l.Fj,l.JJ,l.u,ne,Pn.J],pipes:[O.Ot,u.AsyncPipe,de.E,nt.h,u.DecimalPipe,Dn.B],styles:[".basket-overview__card[_ngcontent-%COMP%]{box-shadow:0 2px 6px #0000001a}.basket-overview__column[_ngcontent-%COMP%]{display:flex;justify-content:space-between;margin-bottom:12px;font-size:14px;align-items:center}.basket-overview__column[_ngcontent-%COMP%]   .image-checkbox[_ngcontent-%COMP%]     .mat-checkbox-inner-container{display:none}.basket-overview__column[_ngcontent-%COMP%]   .image-checkbox[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{display:flex;width:100%;object-fit:cover}.basket-overview__column[_ngcontent-%COMP%]:nth-child(2){justify-content:flex-start}.basket-overview__column[_ngcontent-%COMP%]   .price-value[_ngcontent-%COMP%]{color:#454f63;font-size:18px;font-weight:400}@media (min-width: 768px){.basket-overview__column[_ngcontent-%COMP%]{justify-content:flex-start;margin-bottom:0}.basket-overview__column[_ngcontent-%COMP%]:nth-child(1){width:44px}.basket-overview__column[_ngcontent-%COMP%]:nth-child(2){width:716px}.basket-overview__column[_ngcontent-%COMP%]:nth-child(3){justify-content:center;width:170px}.basket-overview__column[_ngcontent-%COMP%]:nth-child(4){justify-content:center;width:176px}.basket-overview__column[_ngcontent-%COMP%]:nth-child(5){justify-content:center;width:158px}}.basket-overview__close-icon[_ngcontent-%COMP%]:hover{color:#ff1866!important}.basket-overview__offer-title[_ngcontent-%COMP%]{transition:color .2s ease-in-out;min-height:52px;text-decoration:none}.basket-overview__offer-title[_ngcontent-%COMP%]:hover{color:#00b267!important}.basket-overview__offer-image[_ngcontent-%COMP%]{min-height:80px;max-height:80px;max-width:110px;object-fit:cover}.basket-overview__counter-button[_ngcontent-%COMP%]{height:30px;width:30px;border-radius:100%;background-color:#fff;border:1px solid #e3e3e3}.basket-overview__coupon-input[_ngcontent-%COMP%]{max-width:220px}.basket-overview__summary-price-box[_ngcontent-%COMP%]{display:flex;margin-bottom:10px;font-size:14px}.basket-overview__summary-price-box-key[_ngcontent-%COMP%]{color:#959cac;display:flex;align-items:center;padding-right:20px}.basket-overview__summary-price-box-value[_ngcontent-%COMP%]{display:flex;min-width:100px;color:#454f63;font-size:18px;font-weight:400;justify-content:flex-end}.basket-overview__summary-price-box[_ngcontent-%COMP%]   .total-value[_ngcontent-%COMP%]{font-size:21px}[_nghost-%COMP%]  .mat-checkbox-layout{white-space:normal!important}[_nghost-%COMP%]  .mat-checkbox-inner-container{margin-top:4px}.voucher-design-checkbox-text[_ngcontent-%COMP%]{font-size:15px;font-family:Montserrat!important;color:#454f63}.selected-package-text[_ngcontent-%COMP%]{color:#454f63;font-family:Montserrat!important}.on-line-text[_ngcontent-%COMP%]{color:#454f63;font-style:italic;font-family:Montserrat!important}h5[_ngcontent-%COMP%]{margin-bottom:15px;font-size:20px;line-height:24px;color:#959cac}.basket-quantity-counter[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;border:1px solid #454F63;border-radius:35px;padding:10px;width:120px;height:42px}.basket-quantity-counter[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{border:none;background-color:transparent;font-size:20px;cursor:pointer;width:30px;height:30px;display:flex;justify-content:center;align-items:center}.basket-quantity-counter[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]:focus{outline:none}.basket-quantity-counter[_ngcontent-%COMP%]   .decrement[_ngcontent-%COMP%], .basket-quantity-counter[_ngcontent-%COMP%]   .increment[_ngcontent-%COMP%]{border-radius:50%}.basket-quantity-counter[_ngcontent-%COMP%]   .value[_ngcontent-%COMP%]{height:30px;width:30px;font-size:20px;font-weight:400;text-align:center}.cd-btn-basket[_ngcontent-%COMP%]{min-height:46px;font-weight:400;border-width:2px}.cd-btn-basket[_ngcontent-%COMP%]:hover{background-color:#00b267!important;border-color:#00b267!important}.cd-btn-basket[_ngcontent-%COMP%]:hover   .cdn-bnt-basket-container-text[_ngcontent-%COMP%]{color:#fff!important}.cd-bnt-basket-container[_ngcontent-%COMP%]{padding-left:25px;padding-right:25px}@media (max-width: 430px){.cd-bnt-basket-container[_ngcontent-%COMP%]{padding-right:0;padding-left:20px}}.cdn-bnt-basket-container-text[_ngcontent-%COMP%]{top:1px;flex-direction:row}@media (max-width: 430px){.cdn-bnt-basket-container-text[_ngcontent-%COMP%]{text-align:left!important;flex-direction:column;align-items:flex-start!important}}.checkmark-icon[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:50%;background-color:#00b267;color:#fff;font-weight:700;position:absolute;right:-60px;border:1px solid white}@media (max-width: 430px){.checkmark-icon[_ngcontent-%COMP%]{top:25%;right:-37px}}.quantity-value[_ngcontent-%COMP%]{color:#454f63;font-size:18px;padding-left:4.6rem}.price-value[_ngcontent-%COMP%]{color:#454f63;font-size:18px;font-weight:400}.basket-value[_ngcontent-%COMP%]{color:#454f63;padding-right:4px!important;justify-content:flex-end!important}.header-title-text[_ngcontent-%COMP%]{font-weight:300!important}.text-align-right[_ngcontent-%COMP%]{text-align:right}"]}),(0,_.gn)([(0,f.Ph)(c.Kk.offers),(0,_.w6)("design:type",w.y)],D.prototype,"offers$",void 0),(0,_.gn)([(0,f.Ph)(c.Kk.price),(0,_.w6)("design:type",w.y)],D.prototype,"price$",void 0),(0,_.gn)([(0,f.Ph)(c.Kk.coupon),(0,_.w6)("design:type",w.y)],D.prototype,"coupon$",void 0),(0,_.gn)([(0,f.Ph)(c.Kk.overviewForm),(0,_.w6)("design:type",w.y)],D.prototype,"overviewForm$",void 0),(0,_.gn)([(0,f.Ph)(c.Kk.decorativePackaging),(0,_.w6)("design:type",w.y)],D.prototype,"decorativePackaging$",void 0),D=(0,_.gn)([(0,y.c)(),(0,_.w6)("design:paramtypes",[f.yh,k.F0,ce.eN,U.ux,c.B3,c.vD,O.Vn])],D);var Ce=p(72),co=p(6099);const po=["lastName"],mo=["phoneNumber"],B=function(n){return{type:"required",msg:n}},A=function(n){return{type:"pattern",msg:n}},$=function(n){return{length:n}},K=function(n){return{type:"maxlength",msg:n}},N=function(n,o,t){return[n,o,t]},it=function(n){return{type:"email",msg:n}};function _o(n,o){if(1&n){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275elementStart(1,"div",14)(2,"div",15),e.\u0275\u0275element(3,"span",16),e.\u0275\u0275elementStart(4,"div",17),e.\u0275\u0275element(5,"input",18,19),e.\u0275\u0275pipe(7,"transloco"),e.\u0275\u0275element(8,"citydeals-form-control-error-messages",20),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(9,"div",21),e.\u0275\u0275element(10,"input",22),e.\u0275\u0275pipe(11,"transloco"),e.\u0275\u0275element(12,"citydeals-form-control-error-messages",20),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(13,"div",15)(14,"div",17),e.\u0275\u0275element(15,"input",23),e.\u0275\u0275pipe(16,"transloco"),e.\u0275\u0275element(17,"citydeals-form-control-error-messages",20),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(18,"div",21)(19,"input",24),e.\u0275\u0275listener("keypress",function(r){return e.\u0275\u0275restoreView(t),e.\u0275\u0275nextContext(4).allowPlusNumber(r)})("paste",function(r){return e.\u0275\u0275restoreView(t),e.\u0275\u0275nextContext(4).onPastePhone(r)}),e.\u0275\u0275pipe(20,"transloco"),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(21,"citydeals-form-control-error-messages",20),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(22,"div",15)(23,"div",25),e.\u0275\u0275element(24,"input",26),e.\u0275\u0275pipe(25,"transloco"),e.\u0275\u0275element(26,"citydeals-form-control-error-messages",20),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(27,"div",27),e.\u0275\u0275element(28,"input",28),e.\u0275\u0275pipe(29,"transloco"),e.\u0275\u0275element(30,"citydeals-form-control-error-messages",20),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(31,"div",15)(32,"div",27),e.\u0275\u0275element(33,"input",29),e.\u0275\u0275pipe(34,"transloco"),e.\u0275\u0275element(35,"citydeals-form-control-error-messages",20),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(36,"div",25),e.\u0275\u0275element(37,"input",30),e.\u0275\u0275pipe(38,"transloco"),e.\u0275\u0275element(39,"citydeals-form-control-error-messages",20),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementContainerEnd()}if(2&n){const t=e.\u0275\u0275nextContext().$implicit,i=e.\u0275\u0275nextContext().$implicit,r=e.\u0275\u0275nextContext(2);let a,s,m,d,C,x,g;e.\u0275\u0275advance(3),e.\u0275\u0275property("innerHTML",i("CART.SHIPPING."+t.id.toUpperCase()+".DESCRIPTION"),e.\u0275\u0275sanitizeHtml),e.\u0275\u0275advance(2),e.\u0275\u0275propertyInterpolate1("placeholder","",e.\u0275\u0275pipeBind1(7,33,"PAGE.COMMON.LAST_NAME"),"*"),e.\u0275\u0275advance(3),e.\u0275\u0275property("parentFormGroup",r.shippingForm)("control",r.lastNameControl)("messageTypes",e.\u0275\u0275pureFunction3(57,N,e.\u0275\u0275pureFunction1(49,B,i("VALIDATION_TEXT.REQUIRED")),e.\u0275\u0275pureFunction1(51,A,i("VALIDATION_TEXT.REQUIRED")),e.\u0275\u0275pureFunction1(55,K,i("VALIDATION_TEXT.TOO_LONG",e.\u0275\u0275pureFunction1(53,$,null!==(a=null==r.lastNameControl||null==(a=r.lastNameControl.getError("maxlength"))?null:a.requiredLength)&&void 0!==a?a:""))))),e.\u0275\u0275advance(2),e.\u0275\u0275propertyInterpolate1("placeholder","",e.\u0275\u0275pipeBind1(11,35,"PAGE.COMMON.FIRST_NAME"),"*"),e.\u0275\u0275advance(2),e.\u0275\u0275property("parentFormGroup",r.shippingForm)("control",r.firstNameControl)("messageTypes",e.\u0275\u0275pureFunction3(69,N,e.\u0275\u0275pureFunction1(61,B,i("VALIDATION_TEXT.REQUIRED")),e.\u0275\u0275pureFunction1(63,A,i("VALIDATION_TEXT.REQUIRED")),e.\u0275\u0275pureFunction1(67,K,i("VALIDATION_TEXT.TOO_LONG",e.\u0275\u0275pureFunction1(65,$,null!==(s=null==r.firstNameControl||null==(s=r.firstNameControl.getError("maxlength"))?null:s.requiredLength)&&void 0!==s?s:""))))),e.\u0275\u0275advance(3),e.\u0275\u0275propertyInterpolate1("placeholder","",e.\u0275\u0275pipeBind1(16,37,"PAGE.COMMON.EMAIL_ADDRESS"),"*"),e.\u0275\u0275advance(2),e.\u0275\u0275property("parentFormGroup",r.shippingForm)("control",r.emailControl)("messageTypes",e.\u0275\u0275pureFunction3(79,N,e.\u0275\u0275pureFunction1(73,B,i("VALIDATION_TEXT.REQUIRED")),e.\u0275\u0275pureFunction1(75,A,i("VALIDATION_TEXT.REQUIRED")),e.\u0275\u0275pureFunction1(77,it,i("VALIDATION_TEXT.INVALID_EMAIL_FORMAT")))),e.\u0275\u0275advance(2),e.\u0275\u0275propertyInterpolate1("placeholder","",e.\u0275\u0275pipeBind1(20,39,"PAGE.COMMON.TELEPHONE"),"*"),e.\u0275\u0275advance(2),e.\u0275\u0275property("parentFormGroup",r.shippingForm)("control",r.phoneControl)("messageTypes",e.\u0275\u0275pureFunction3(91,N,e.\u0275\u0275pureFunction1(83,B,i("VALIDATION_TEXT.REQUIRED")),e.\u0275\u0275pureFunction1(85,A,i("VALIDATION_TEXT.REQUIRED")),e.\u0275\u0275pureFunction1(89,K,i("VALIDATION_TEXT.TOO_LONG",e.\u027
15\u0275pureFunction1(87,$,null!==(m=null==r.phoneControl||null==(m=r.phoneControl.getError("maxlength"))?null:m.requiredLength)&&void 0!==m?m:""))))),e.\u0275\u0275advance(3),e.\u0275\u0275propertyInterpolate1("placeholder","",e.\u0275\u0275pipeBind1(25,41,"PAGE.REGISTRATION.FORM.ZIPCODE"),"*"),e.\u0275\u0275advance(2),e.\u0275\u0275property("parentFormGroup",r.shippingForm)("control",r.zipcodeControl)("messageTypes",e.\u0275\u0275pureFunction3(103,N,e.\u0275\u0275pureFunction1(95,B,i("VALIDATION_TEXT.REQUIRED")),e.\u0275\u0275pureFunction1(97,A,i("VALIDATION_TEXT.REQUIRED")),e.\u0275\u0275pureFunction1(101,K,i("VALIDATION_TEXT.TOO_LONG",e.\u0275\u0275pureFunction1(99,$,null!==(d=null==r.zipcodeControl||null==(d=r.zipcodeControl.getError("maxlength"))?null:d.requiredLength)&&void 0!==d?d:""))))),e.\u0275\u0275advance(2),e.\u0275\u0275propertyInterpolate1("placeholder","",e.\u0275\u0275pipeBind1(29,43,"PAGE.REGISTRATION.FORM.SETTLEMENT"),"*"),e.\u0275\u0275advance(2),e.\u0275\u0275property("parentFormGroup",r.shippingForm)("control",r.settlementControl)("messageTypes",e.\u0275\u0275pureFunction3(115,N,e.\u0275\u0275pureFunction1(107,B,i("VALIDATION_TEXT.REQUIRED")),e.\u0275\u0275pureFunction1(109,A,i("VALIDATION_TEXT.REQUIRED")),e.\u0275\u0275pureFunction1(113,K,i("VALIDATION_TEXT.TOO_LONG",e.\u0275\u0275pureFunction1(111,$,null!==(C=null==r.settlementControl||null==(C=r.settlementControl.getError("maxlength"))?null:C.requiredLength)&&void 0!==C?C:""))))),e.\u0275\u0275advance(3),e.\u0275\u0275propertyInterpolate1("placeholder","",e.\u0275\u0275pipeBind1(34,45,"PAGE.REGISTRATION.FORM.ADDRESS"),"*"),e.\u0275\u0275advance(2),e.\u0275\u0275property("parentFormGroup",r.shippingForm)("control",r.addressNameControl)("messageTypes",e.\u0275\u0275pureFunction3(127,N,e.\u0275\u0275pureFunction1(119,B,i("VALIDATION_TEXT.REQUIRED")),e.\u0275\u0275pureFunction1(121,A,i("VALIDATION_TEXT.REQUIRED")),e.\u0275\u0275pureFunction1(125,K,i("VALIDATION_TEXT.TOO_LONG",e.\u0275\u0275pureFunction1(123,$,null!==(x=null==r.addressNameControl||null==(x=r.addressNameControl.getError("maxlength"))?null:x.requiredLength)&&void 0!==x?x:""))))),e.\u0275\u0275advance(2),e.\u0275\u0275propertyInterpolate1("placeholder","",e.\u0275\u0275pipeBind1(38,47,"PAGE.REGISTRATION.FORM.ADDRESS_NUM"),"*"),e.\u0275\u0275advance(2),e.\u0275\u0275property("parentFormGroup",r.shippingForm)("control",r.addressNumControl)("messageTypes",e.\u0275\u0275pureFunction3(139,N,e.\u0275\u0275pureFunction1(131,B,i("VALIDATION_TEXT.REQUIRED")),e.\u0275\u0275pureFunction1(133,A,i("VALIDATION_TEXT.REQUIRED")),e.\u0275\u0275pureFunction1(137,K,i("VALIDATION_TEXT.TOO_LONG",e.\u0275\u0275pureFunction1(135,$,null!==(g=null==r.addressNumControl||null==(g=r.addressNumControl.getError("maxlength"))?null:g.requiredLength)&&void 0!==g?g:"")))))}}function uo(n,o){if(1&n&&(e.\u0275\u0275elementStart(0,"div")(1,"strong"),e.\u0275\u0275text(2),e.\u0275\u0275elementEnd()()),2&n){const t=o.ngIf;e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate4("Kiv\xe1laszottt csomagpont: ",t.name," ",t.contact.postalCode," ",t.contact.city," ",t.contact.address," ")}}function go(n,o){if(1&n){const t=e.\u0275\u0275getCurrentView();e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275template(1,uo,3,4,"div",13),e.\u0275\u0275elementStart(2,"div",31),e.\u0275\u0275element(3,"span",16),e.\u0275\u0275elementStart(4,"div",15)(5,"div",32),e.\u0275\u0275element(6,"input",23,33),e.\u0275\u0275pipe(8,"transloco"),e.\u0275\u0275element(9,"citydeals-form-control-error-messages",20),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(10,"div",21)(11,"input",34),e.\u0275\u0275listener("paste",function(r){return e.\u0275\u0275restoreView(t),e.\u0275\u0275nextContext(4).onPastePhone(r)})("keypress",function(r){return e.\u0275\u0275restoreView(t),e.\u0275\u0275nextContext(4).allowPlusNumber(r)}),e.\u0275\u0275pipe(12,"transloco"),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(13,"citydeals-form-control-error-messages",20),e.\u0275\u0275elementEnd()(),e.\u0275\u0275element(14,"gls-dpm",35),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementContainerEnd()}if(2&n){const t=e.\u0275\u0275nextContext(2).$implicit,i=e.\u0275\u0275nextContext(2);let r;e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",i.glsPickupControl.value),e.\u0275\u0275advance(2),e.\u0275\u0275property("innerHTML",t("CART.SHIPPING.GLS_PICKUP_POINTS.DESCRIPTION"),e.\u0275\u0275sanitizeHtml),e.\u0275\u0275advance(3),e.\u0275\u0275propertyInterpolate1("placeholder","",e.\u0275\u0275pipeBind1(8,10,"PAGE.COMMON.EMAIL_ADDRESS"),"*"),e.\u0275\u0275advance(3),e.\u0275\u0275property("parentFormGroup",i.shippingForm)("control",i.emailControl)("messageTypes",e.\u0275\u0275pureFunction3(20,N,e.\u0275\u0275pureFunction1(14,B,t("VALIDATION_TEXT.REQUIRED")),e.\u0275\u0275pureFunction1(16,A,t("VALIDATION_TEXT.REQUIRED")),e.\u0275\u0275pureFunction1(18,it,t("VALIDATION_TEXT.INVALID_EMAIL_FORMAT")))),e.\u0275\u0275advance(2),e.\u0275\u0275propertyInterpolate1("placeholder","",e.\u0275\u0275pipeBind1(12,12,"PAGE.COMMON.TELEPHONE"),"*"),e.\u0275\u0275advance(2),e.\u0275\u0275property("parentFormGroup",i.shippingForm)("control",i.phoneControl)("messageTypes",e.\u0275\u0275pureFunction3(32,N,e.\u0275\u0275pureFunction1(24,B,t("VALIDATION_TEXT.REQUIRED")),e.\u0275\u0275pureFunction1(26,A,t("VALIDATION_TEXT.REQUIRED")),e.\u0275\u0275pureFunction1(30,K,t("VALIDATION_TEXT.TOO_LONG",e.\u0275\u0275pureFunction1(28,$,null!==(r=null==i.phoneControl||null==(r=i.phoneControl.getError("maxlength"))?null:r.requiredLength)&&void 0!==r?r:"")))))}}function fo(n,o){if(1&n&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275element(1,"span",36)(2,"span",37),e.\u0275\u0275elementContainerEnd()),2&n){const t=e.\u0275\u0275nextContext(2).$implicit,i=e.\u0275\u0275nextContext(2);e.\u0275\u0275advance(1),e.\u0275\u0275property("innerHTML",t("CART.SHIPPING.PERSONAL_PICKUP.DESCRIPTION"),e.\u0275\u0275sanitizeHtml),e.\u0275\u0275advance(1),e.\u0275\u0275property("innerHTML",i.personalPickupPicture,e.\u0275\u0275sanitizeHtml)}}const ho=function(n,o){return[n,o]};function vo(n,o){if(1&n&&(e.\u0275\u0275elementStart(0,"div",9)(1,"mat-radio-button",10)(2,"div",11)(3,"div"),e.\u0275\u0275text(4),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(5,"div",12),e.\u0275\u0275text(6),e.\u0275\u0275pipe(7,"number"),e.\u0275\u0275pipe(8,"transloco"),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275template(9,_o,40,143,"
1ng-container",13),e.\u0275\u0275template(10,go,15,36,"ng-container",13),e.\u0275\u0275template(11,fo,3,2,"ng-container",13),e.\u0275\u0275elementEnd()),2&n){const t=o.$implicit,i=e.\u0275\u0275nextContext(3);e.\u0275\u0275advance(1),e.\u0275\u0275property("value",t),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate1(" ",t.display_name," "),e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate2(" ",e.\u0275\u0275pipeBind2(7,7,t.gross_price,"1.0-0")," ",e.\u0275\u0275pipeBind1(8,10,"PAGE.COMMON.CURRENCY_SHORT")," "),e.\u0275\u0275advance(3),e.\u0275\u0275property("ngIf",i.shippingModeFormControl.value===t&&e.\u0275\u0275pureFunction2(12,ho,i.basketShippingEnum.MPL_DELIVERY,i.basketShippingEnum.GLS_DELIVERY).includes(t.id)),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",i.shippingModeFormControl.value===t&&t.id===i.basketShippingEnum.GLS_PICKUP),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",i.shippingModeFormControl.value===t&&t.id===i.basketShippingEnum.PERSONAL_PICKUP)}}function Co(n,o){if(1&n&&(e.\u0275\u0275elementStart(0,"form",3)(1,"div",4)(2,"h1",5),e.\u0275\u0275text(3),e.\u0275\u0275pipe(4,"transloco"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(5,"div",4)(6,"div",6)(7,"mat-radio-group",7),e.\u0275\u0275template(8,vo,12,15,"div",8),e.\u0275\u0275elementEnd()()()()),2&n){const t=e.\u0275\u0275nextContext(2);e.\u0275\u0275property("formGroup",t.shippingForm),e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(4,4,"PAGE.CART.SHIPPING_METHOD")),e.\u0275\u0275advance(4),e.\u0275\u0275property("formControl",t.shippingModeFormControl),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngForOf",t.shippingModes)}}function xo(n,o){1&n&&(e.\u0275\u0275elementStart(0,"div",1),e.\u0275\u0275template(1,Co,9,6,"form",2),e.\u0275\u0275elementEnd()),2&n&&(e.\u0275\u0275advance(1),e.\u0275\u0275property("translocoRead","PAGE"))}let oe=class{constructor(o,t,i,r,a){this.store=o,this.sanitizer=t,this.scriptService=i,this.purchaseService=r,this.translocoService=a,this.shippingModes=[],this.basketShippingEnum=c.iR,this.shippingModeFormControl=new l.NI(null,[l.kI.required]),this.addressNameControl=new l.NI("",[l.kI.required,l.kI.maxLength(100),l.kI.pattern(/[\S]/)]),this.addressNumControl=new l.NI("",[l.kI.required,l.kI.maxLength(20),l.kI.pattern(/[\S]/)]),this.firstNameControl=new l.NI("",[l.kI.required,l.kI.maxLength(50),l.kI.pattern(/[\S]/)]),this.lastNameControl=new l.NI("",[l.kI.required,l.kI.maxLength(50),l.kI.pattern(/[\S]/)]),this.settlementControl=new l.NI("",[l.kI.required,l.kI.maxLength(50),l.kI.pattern(/[\S]/)]),this.zipcodeControl=new l.NI("",[l.kI.required,l.kI.maxLength(4),l.kI.pattern(/[\S]/)]),this.phoneControl=new l.NI("",[l.kI.required,l.kI.maxLength(50),l.kI.pattern(/[\S]/)]),this.glsPickupControl=new l.NI("",[l.kI.required,l.kI.pattern(/[\S]/)]),this.emailControl=new l.NI("",[l.kI.required,l.kI.email]),this.GLSMapURL=ie.N.GLSMapURL}get shippingForm(){return this._shippingForm}set shippingForm(o){o&&(this._shippingForm=o,this._shippingForm.addControl("shippingMode",this.shippingModeFormControl))}ngOnInit(){this.translocoService.selectTranslate("PAGE.CART.SHIPPING.PERSONAL_PICKUP.DESCRIPTION_PICTURE").subscribe(o=>{this.personalPickupPicture=this.sanitizer.bypassSecurityTrustHtml(o)}),this.store.select(c.Kk.decorativePackaging).pipe((0,y.t)(this),(0,fe.x)(),(0,re.q)(1)).subscribe(o=>{o&&o.length>0&&(this.loadGLSScript(),this.purchaseService.getShippingModes().subscribe(t=>{this.shippingModes=t.filter(i=>i.id!==this.basketShippingEnum.EMAIL)}),this.subscribeShippingModeChange())})}createOrUpdateControls(o){const t=o.value;[{name:"address_name",instance:this.addressNameControl},{name:"first_name",instance:this.firstNameControl},{name:"last_name",instance:this.lastNameControl},{name:"settlement",instance:this.settlementControl},{name:"zipcode",instance:this.zipcodeControl},{name:"address_num",instance:this.addressNumControl},{name:"phone",instance:this.phoneControl}].forEach(r=>{o.controls?(o.setControl(r.name,r.instance),o.patchValue(t)):o.addControl(r.name,r.instance)})}loadGLSScript(){const o=this.scriptService.loadJsScript(this.GLSMapURL,!0);o.onload=()=>{console.log("GLS-MAP script loaded.")},o.onerror=()=>{console.error("Could not load the GLS-MAP API Script!")};const t=document.getElementById("GLSMapScriptContainer");(0,v.kK)(t)?console.log("GLSMapScriptContainer element not found"):t.appendChild(o)}subscribeShippingModeChange(){this.shippingModeFormControl.valueChanges.pipe((0,y.t)(this)).subscribe(o=>{switch(o.id){case c.iR.GLS_PICKUP:this.addGlsListener(),this.toggleAddressControls("contact"),this._shippingForm.addControl("mode_data",this.glsPickupControl),setTimeout(()=>{this.phoneNumberElement.nativeElement.focus()});break;case c.iR.GLS_DELIVERY:case c.iR.MPL_DELIVERY:this.removeGlsListener(),this.glsPickupControl.setValue(null),this.toggleAddressControls("all"),this.shippingForm.get("mode_data")&&this._shippingForm.removeControl("mode_data"),setTimeout(()=>{this.lastNameElement.nativeElement.focus()});break;case c.iR.PERSONAL_PICKUP:this.removeGlsListener(),this.glsPickupControl.setValue(null),this.toggleAddressControls("none"),this.shippingForm.get("mode_data")&&this._shippingForm.removeControl("mode_data")}const t={price:o.gross_price,shipping_method:o.id};(0,v.kK)(this.glsPickupControl.value)||(t.pickup_point_address=this.glsPickupControl.value),this.store.dispatch(new c.Dz(t))})}
1removeGlsListener(){if(this.glsChangeListener){const o=document.getElementById("glsMap");o&&o.removeEventListener("change",this.glsChangeListener),this.glsChangeListener=void 0}}addGlsListener(){setTimeout(()=>{const o=document.getElementById("glsMap");o&&!this.glsChangeListener&&(this.glsChangeListener=t=>{t.detail&&this.glsPickupControl.setValue(t.detail)},o.addEventListener("change",this.glsChangeListener))})}toggleAddressControls(o){Object.entries({address_name:this.addressNameControl,address_num:this.addressNumControl,first_name:this.firstNameControl,last_name:this.lastNameControl,settlement:this.settlementControl,zipcode:this.zipcodeControl,phone:this.phoneControl,email:this.emailControl}).forEach(([i,r])=>{if("all"===o||"contact"===o&&["phone","email"].includes(i))this.shippingForm.contains(i)||this.shippingForm.addControl(i,r),r.reset(),r.setErrors(null),r.markAsPristine(),r.markAsUntouched(),r.updateValueAndValidity();else if(this.shippingForm.contains(i)){const s=this.shippingForm.get(i);s&&(s.reset(),s.setErrors(null),s.markAsPristine(),s.markAsUntouched(),s.updateValueAndValidity()),this.shippingForm.removeControl(i)}})}allowPlusNumber(o){/^[0-9+]$/.test(o.key)||o.preventDefault()}onPastePhone(o){const t=o.clipboardData,i=t?t.getData("text"):"";/^\+?[0-9]*$/.test(i)||o.preventDefault()}};oe.\u0275fac=function(o){return new(o||oe)(e.\u0275\u0275directiveInject(f.yh),e.\u0275\u0275directiveInject(he.DomSanitizer),e.\u0275\u0275directiveInject(v.YI),e.\u0275\u0275directiveInject(c.B3),e.\u0275\u0275directiveInject(O.Vn))},oe.\u0275cmp=e.\u0275\u0275defineComponent({type:oe,selectors:[["citydeals-basket-shipping"]],viewQuery:function(o,t){if(1&o&&(e.\u0275\u0275viewQuery(po,5),e.\u0275\u0275viewQuery(mo,5)),2&o){let i;e.\u0275\u0275queryRefresh(i=e.\u0275\u0275loadQuery())&&(t.lastNameElement=i.first),e.\u0275\u0275queryRefresh(i=e.\u0275\u0275loadQuery())&&(t.phoneNumberElement=i.first)}},inputs:{shippingForm:"shippingForm"},decls:1,vars:1,consts:[["class","row pb-5",4,"ngIf"],[1,"row","pb-5"],[3,"formGroup",4,"transloco","translocoRead"],[3,"formGroup"],[1,"col-12"],[1,"mb-5","fw-bold","fs-2","header-title-text"],[1,"basket-payment-method__options"],[1,"w-100",3,"formControl"],["class","basket-payment-method__box w-100",4,"ngFor","ngForOf"],[1,"basket-payment-method__box","w-100"],[1,"cd-radio","cd-radio-shipping","pt-2",3,"value"],[1,"d-flex","w-100","justify-content-between","white-space-normal"],[1,"d-flex","align-items-center","white-space-nowrap"],[4,"ngIf"],[1,"pt-2","pb-2"],[1,"row","mb-2"],[1,"d-block","pb-2","text-align-justify",3,"innerHTML"],[1,"col-md-6","col-12","mb-2","mb-md-0","pr-md-0"],["type","text","formControlName","last_name",1,"cd-input","basket-address__input",3,"placeholder"],["lastName",""],[1,"mt-2",3,"parentFormGroup","control","messageTypes"],[1,"col-md-6","col-12","responsive-gap","mb-md-0","pr-md-0"],["type","text","formControlName","first_name",1,"cd-input","basket-address__input",3,"placeholder"],["type","text","formControlName","email",1,"cd-input","basket-address__input",3,"placeholder"],["type","text","maxlength","15","formControlName","phone",1,"cd-input","basket-address__input",3,"placeholder","keypress","paste"],[1,"col-md-4","col-4","responsive-gap","mb-md-0","pr-md-0"],["type","text","formControlName","zipcode",1,"cd-input","basket-address__input",3,"placeholder"],[1,"col-md-8","col-8","responsive-gap","mb-md-0","pr-md-0"],["type","text","formControlName","settlement",1,"cd-input","basket-address__input",3,"placeholder"],["type","text","formControlName","address_name",1,"cd-input","basket-address__input",3,"placeholder"],["type","text","formControlName","address_num",1,"cd-input","basket-address__input",3,"placeholder"],[1,"gls-map-container"],[1,"col-md-6","mb-2","col-12","mb-md-0","pr-md-0"],["phoneNumber",""],["type","text","maxlength","15","formControlName","phone",1,"cd-input","basket-address__input",3,"placeholder","paste","keypress"],["id","glsMap","country","hu"],[1,"d-block","pt-2","pb-2","text-align-justify",3,"innerHTML"],[1,"d-block","pt-2","pb-2","text-align-justify","personal-pickup-picture",3,"innerHTML"]],template:function(o,t){1&o&&e.\u0275\u0275template(0,xo,2,1,"div",0),2&o&&e.\u0275\u0275property("ngIf",t.shippingModes.length>0)},directives:[u.NgIf,O.KI,l._Y,l.JL,l.sg,G.VQ,l.JJ,l.oH,u.NgForOf,G.U0,l.Fj,l.u,Be.w,l.nD],pipes:[O.Ot,u.DecimalPipe],styles:[".basket-payment-method__options[_ngcontent-%COMP%]{border-radius:6px;margin:0 0 10px}.basket-payment-method__box[_ngcontent-%COMP%]{padding:5px 15px;height:-moz-fit-content;height:fit-content;min-height:50px;border-bottom:1px solid var(--bs-light)}@media (max-width: 575.98px){.basket-payment-method__box[_ngcontent-%COMP%]{padding:15px;min-height:50px;height:-moz-fit-content;height:fit-content}}.basket-payment-method__box[_ngcontent-%COMP%]:last-of-type{border-bottom:0}.basket-payment-method__info[_ngcontent-%COMP%]{font-size:20px;line-height:18px;color:var(--bs-dark-grey);margin:0 0 20px;font-weight:400}.basket-payment-method__title[_ngcontent-%COMP%]{color:#5d6065;font-size:14px;line-height:21px;padding-right:8px}@media (max-width: 575.98px){.basket-payment-method__title[_ngcontent-%COMP%]{white-space:pre-wrap}}.basket-payment-method__title[_ngcontent-%COMP%]   strong[_ngcontent-%COMP%]{padding-right:25px}@media (max-width: 575.98px){.basket-payment-method__otp[_ngcontent-%COMP%]{display:block}}.basket-payment-method__content[_ngcontent-%COMP%]{color:#454f63;font-weight:400;font-size:14px;line-height:22px;flex:1;white-space:pre-wrap;margin:8px 0;text-align:justify}.basket-payment-method__image[_ngcontent-%COMP%]{height:60px;margin:3px}.basket-payment-method__image--small[_ngcontent-%COMP%]{height:25px;margin:6px 3px 0}@media (max-width: 767.98px){.basket-payment-method__image--small[_ngcontent-%COMP%]{height:20px;margin:23px 3px}}@media (max-width: 575.98px){.basket-payment-method__image--small[_ngcontent-%COMP%]{margin:8px 3px}}.basket-payment-method__image--normal[_ngcontent-%COMP%]{height:35px;margin:6px 3px 0}@media (max-width: 767.98px){.basket-payment-method__image--normal[_ngcontent-%COMP%]{height:20px;margin:23px 3px}}@media (max-width: 575.98px){.basket-payment-method__image--normal[_ngcontent-%COMP%]{margin:8px 3px}}.basket-payment-method__image--big[_ngcontent-%COMP%]{height:45px;margin:6px 3px 0}@media (max-width: 767.98px){.basket-payment-method__image--big[_ngcontent-%COMP%]{height:40px;margin:23px 3px}}@media (max-width: 575.98px){.basket-payment-method__image--big[_ngcontent-%COMP%]{margin:8px 3px}}.basket-payment-method__total-price[_ngcontent-%COMP%]{line-height:21px;color:var(--bs-dark-grey)}.basket-payment-method__total-price[_ngcontent-%COMP%]   strong[_ngcontent-%COMP%]{font-size:21px;color:var(--bs-green)}.basket-payment-method__aszf-container[_ngcontent-%COMP%]{background-color:#eecf0240;border-top:1px solid #D5DAE2;font-size:15px!important;color:#454f63}.basket-payment-method__aszf-container[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:15px!important;color:#454f63}.basket-payment-method__aszf-container[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{font-weight:600;color:#454f63}.cd-radio-shipping[_ngcontent-%COMP%]{width:100%;color:#454f63;font-size:18px!important}.cd-radio-shipping[_ngcontent-%COMP%]     .mat-radio-label-content{display:flex;width:100%;align-items:center;justify-content:space-between}.gls-map-container[_ngcontent-%COMP%]{height:450px;display:inline-block;padding-top:10px;padding-bottom:10px}.pr-0[_ngcontent-%COMP%]{padding-right:0!important}.header-title-text[_ngcontent-%COMP%]{padding-top:2rem;font-weight:200!important}.text-align-justify[_ngcontent-%COMP%]{text-align:justify}.white-space-nowrap[_ngcontent-%COMP%]{white-space:nowrap}.white-space-normal[_ngcontent-%COMP%]{white-space:normal}  .personal-pickup-picture img{width:80%;height:auto;display:block;padding:10px 0}.responsive-gap[_ngcontent-%COMP%]{padding-bottom:0!important}@media (min-width: 768px){.responsive-gap[_ngcontent-%COMP%]{padding-bottom:1rem!important}}"]}),oe=(0,_.gn)([(0,y.c)(),(0,_.w6)("design:paramtypes",[f.yh,he.DomSanitizer,v.YI,c.B3,O.Vn])],oe);const V=function(n){return{type:"required",msg:n}},Q=function(n){return{type:"pattern",msg:n}},j=function(n,o){return[n,o]};function yo(n,o){if(1&n&&(e.\u0275\u0275elementStart(0,"div",5)(1,"div",6),e.\u0275\u0275element(2,"input",19),e.\u0275\u0275pipe(3,"transloco"),e.\u0275\u0275element(4,"citydeals-form-control-error-messages",8),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(5,"div",9),e.\u0275\u0275element(6,"input",20),e.\u0275\u0275pipe(7,"transloco"),e.\u0275\u0275element(8,"citydeals-form-control-error-messages",8),e.\u0275\u0275elementEnd()()),2&n){const t=e.\u0275\u0275nextContext().$implicit,i=e.\u0275\u0275nextContext(2);e.\u0275\u0275property("@fadeIn2XFastEnter",void 0),e.\u0275\u0275advance(2),e.\u0275\u0275propertyInterpolate1("placeholder","",e.\u0275\u0275pipeBind1(3,9,"PAGE.REGISTRATION.FORM.COMPANY_NAME"),"*"),e.\u0275\u0275advance(2),e.\u0275\u0275property("parentFormGroup",i.parentForm)("control",i.companyNameControl)("messageTypes",e.\u0275\u0275pureFunction2(17,j,e.\u0275\u0275pureFunction1(13,V,t("VALIDATION_TEXT.REQUIRED")),e.\u0275\u0275pureFunction1(15,Q,t("VALIDATION_TEXT.REQUIRED")))),e.\u0275\u0275advance(2),e.\u0275\u0275propertyInterpolate1("placeholder","",e.\u0275\u0275pipeBind1(7,11,"PAGE.REGISTRATION.FORM.COMPANY_TAX_NUMBER"),"*"),e.\u0275\u0275advance(2),e.\u0275\u0275property("parentFormGroup",i.parentForm)("control",i.taxNumberControl)("messageTypes",e.\u0275\u0275pureFunction2(24,j,e.\u0275\u0275pureFunction1(20,V,t("VALIDATION_TEXT.REQUIRED")),e.\u0275\u0275pureFunction1(22,Q,t("VALIDATION_TEXT.REQUIRED"))))}}const bo=function(n){return{type:"email",msg:n}};function ko(n,o){if(1&n&&(e.\u0275\u0275elementStart(0,"form",2)(1,"mat-checkbox",3),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"transloco"),e.\u0275\u0275elementEnd(),e.\u0275\u0275template(4,yo,9,27,"div",4),e.\u0275\u0275elementStart(5,"div",5)(6,"div",6),e.\u0275\u0275element(7,"input",7),e.\u0275\u0275pipe(8,"transloco"),e.\u0275\u0275element(9,"citydeals-form-control-error-messages",8),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(10,"div",9),e.\u0275\u0275element(11,"input",10),e.\u0275\u0275pipe(12,"transloco"),e.\u0275\u0275element(13,"citydeals-form-control-error-messages",8),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(14,"div",11),e.\u0275\u0275element(15,"input",12),e.\u0275\u0275pipe(16,"transloco"),e.\u0275\u0275element(17,"citydeals-form-control-error-messages",8),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(18,"div",5)(19,"div",13),e.\u0275\u0275element(2
10,"input",14),e.\u0275\u0275pipe(21,"transloco"),e.\u0275\u0275element(22,"citydeals-form-control-error-messages",8),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(23,"div",9),e.\u0275\u0275element(24,"input",15),e.\u0275\u0275pipe(25,"transloco"),e.\u0275\u0275element(26,"citydeals-form-control-error-messages",8),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(27,"div",16)(28,"div",6),e.\u0275\u0275element(29,"input",17),e.\u0275\u0275pipe(30,"transloco"),e.\u0275\u0275element(31,"citydeals-form-control-error-messages",8),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(32,"div",9),e.\u0275\u0275element(33,"input",18),e.\u0275\u0275pipe(34,"transloco"),e.\u0275\u0275element(35,"citydeals-form-control-error-messages",8),e.\u0275\u0275elementEnd()()()),2&n){const t=o.$implicit,i=e.\u0275\u0275nextContext(2);e.\u0275\u0275property("formGroup",i.parentForm),e.\u0275\u0275advance(1),e.\u0275\u0275property("formControl",i.companyRegistrationControl),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",e.\u0275\u0275pipeBind1(3,32,"PAGE.CART.BUY_AS_COMPANY")," "),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",i.companyRegistrationControl.value),e.\u0275\u0275advance(3),e.\u0275\u0275propertyInterpolate1("placeholder","",e.\u0275\u0275pipeBind1(8,34,"PAGE.COMMON.LAST_NAME"),"*"),e.\u0275\u0275advance(2),e.\u0275\u0275property("parentFormGroup",i.parentForm)("control",i.lastNameControl)("messageTypes",e.\u0275\u0275pureFunction2(52,j,e.\u0275\u0275pureFunction1(48,V,t("VALIDATION_TEXT.REQUIRED")),e.\u0275\u0275pureFunction1(50,Q,t("VALIDATION_TEXT.REQUIRED")))),e.\u0275\u0275advance(2),e.\u0275\u0275propertyInterpolate1("placeholder","",e.\u0275\u0275pipeBind1(12,36,"PAGE.COMMON.FIRST_NAME"),"*"),e.\u0275\u0275advance(2),e.\u0275\u0275property("parentFormGroup",i.parentForm)("control",i.firstNameControl)("messageTypes",e.\u0275\u0275pureFunction2(59,j,e.\u0275\u0275pureFunction1(55,V,t("VALIDATION_TEXT.REQUIRED")),e.\u0275\u0275pureFunction1(57,Q,t("VALIDATION_TEXT.REQUIRED")))),e.\u0275\u0275advance(2),e.\u0275\u0275propertyInterpolate1("placeholder","",e.\u0275\u0275pipeBind1(16,38,"PAGE.COMMON.EMAIL_ADDRESS"),"*"),e.\u0275\u0275advance(2),e.\u0275\u0275property("parentFormGroup",i.parentForm)("control",i.emailControl)("messageTypes",e.\u0275\u0275pureFunction2(66,j,e.\u0275\u0275pureFunction1(62,V,t("VALIDATION_TEXT.REQUIRED")),e.\u0275\u0275pureFunction1(64,bo,t("VALIDATION_TEXT.INVALID_EMAIL_FORMAT")))),e.\u0275\u0275advance(3),e.\u0275\u0275propertyInterpolate1("placeholder","",e.\u0275\u0275pipeBind1(21,40,"PAGE.REGISTRATION.FORM.ZIPCODE"),"*"),e.\u0275\u0275advance(2),e.\u0275\u0275property("parentFormGroup",i.parentForm)("control",i.zipcodeControl)("messageTypes",e.\u0275\u0275pureFunction2(73,j,e.\u0275\u0275pureFunction1(69,V,t("VALIDATION_TEXT.REQUIRED")),e.\u0275\u0275pureFunction1(71,Q,t("VALIDATION_TEXT.REQUIRED")))),e.\u0275\u0275advance(2),e.\u0275\u0275propertyInterpolate1("placeholder","",e.\u0275\u0275pipeBind1(25,42,"PAGE.REGISTRATION.FORM.SETTLEMENT"),"*"),e.\u0275\u0275advance(2),e.\u0275\u0275property("parentFormGroup",i.parentForm)("control",i.settlementControl)("messageTypes",e.\u0275\u0275pureFunction2(80,j,e.\u0275\u0275pureFunction1(76,V,t("VALIDATION_TEXT.REQUIRED")),e.\u0275\u0275pureFunction1(78,Q,t("VALIDATION_TEXT.REQUIRED")))),e.\u0275\u0275advance(3),e.\u0275\u0275propertyInterpolate1("placeholder","",e.\u0275\u0275pipeBind1(30,44,"PAGE.REGISTRATION.FORM.ADDRESS"),"*"),e.\u0275\u0275advance(2),e.\u0275\u0275property("parentFormGroup",i.parentForm)("control",i.addressNameControl)("messageTypes",e.\u0275\u0275pureFunction2(87,j,e.\u0275\u0275pureFunction1(83,V,t("VALIDATION_TEXT.REQUIRED")),e.\u0275\u0275pureFunction1(85,Q,t("VALIDATION_TEXT.REQUIRED")))),e.\u0275\u0275advance(2),e.\u0275\u0275propertyInterpolate1("placeholder","",e.\u0275\u0275pipeBind1(34,46,"PAGE.REGISTRATION.FORM.ADDRESS_NUM"),"*"),e.\u0275\u0275advance(2),e.\u0275\u0275property("parentFormGroup",i.parentForm)("control",i.addressNumControl)("messageTypes",e.\u0275\u0275pureFunction2(94,j,e.\u0275\u0275pureFunction1(90,V,t("VALIDATION_TEXT.REQUIRED")),e.\u0275\u0275pureFunction1(92,Q,t("VALIDATION_TEXT.REQUIRED"))))}}function wo(n,o){1&n&&(e.\u0275\u0275elementStart(0,"div"),e.\u0275\u0275template(1,ko,36,97,"form",1),e.\u0275\u0275elementEnd()),2&n&&(e.\u0275\u0275advance(1),e.\u0275\u0275property("translocoRead","PAGE"))}let Y=class{constructor(o){this.store=o,this.addressNameControl=new l.NI("",[l.kI.required,l.kI.pattern(/[\S]/)]),this.addressNumControl=new l.NI("",[l.kI.required,l.kI.pattern(/[\S]/)]),this.emailControl=new l.NI("",l.kI.compose([l.kI.required,l.kI.email])),this.firstNameControl=new l.NI("",[l.kI.required,l.kI.pattern(/[\S]/)]),this.lastNameControl=new l.NI("",[l.kI.required,l.kI.pattern(/[\S]/)]),this.settlementControl=new l.NI("",[l.kI.required,l.kI.pattern(/[\S]/)]),this.zipcodeControl=new l.NI("",[l.kI.required,l.kI.pattern(/[\S]/)]),this.companyNameControl=new l.NI(""),this.taxNumberControl=new l.NI(""),this.companyRegistrationControl
1=new l.NI(!1)}get parentForm(){return this._parentForm}set parentForm(o){o&&(this._parentForm=o,this.createOrUpdateControls(o))}get defaultUser(){return this._defaultUser}set defaultUser(o){(0,v.kK)(o)||((0,v.kK)(o.companyName)||(this.companyRegistrationControl.patchValue(!0),this.companyNameControl.patchValue(o.companyName),this.taxNumberControl.patchValue(o.taxNumber)),this.firstNameControl.patchValue(o.firstName),this.lastNameControl.patchValue(o.lastName),this.emailControl.patchValue(o.email),this.zipcodeControl.patchValue(o.zipcode),this.settlementControl.patchValue(o.settlement),this.addressNameControl.patchValue(o.addressName),this.addressNumControl.patchValue(o.addressNum),this._defaultUser=o)}ngOnInit(){this.companyRegistrationControl.valueChanges.pipe((0,y.t)(this)).subscribe(o=>{!0===o?(this.firstNameControl.setValidators(null),this.lastNameControl.setValidators(null),this.companyNameControl.setValidators([l.kI.required,l.kI.pattern(/[\S]/)]),this.taxNumberControl.setValidators([l.kI.required,l.kI.pattern(/[\S]/)])):(this.firstNameControl.setValidators([l.kI.required,l.kI.pattern(/[\S]/)]),this.lastNameControl.setValidators([l.kI.required,l.kI.pattern(/[\S]/)]),this.companyNameControl.setValidators(null),this.taxNumberControl.setValidators(null)),this.firstNameControl.updateValueAndValidity(),this.lastNameControl.updateValueAndValidity(),this.companyNameControl.updateValueAndValidity(),this.taxNumberControl.updateValueAndValidity()}),this.setForm(),this.onChanges(),(0,v.kK)(this.defaultUser)||this._parentForm.updateValueAndValidity()}createOrUpdateControls(o){const t=o.value;[{name:"addressName",instance:this.addressNameControl},{name:"email",instance:this.emailControl},{name:"firstName",instance:this.firstNameControl},{name:"lastName",instance:this.lastNameControl},{name:"settlement",instance:this.settlementControl},{name:"zipcode",instance:this.zipcodeControl},{name:"companyName",instance:this.companyNameControl},{name:"taxNumber",instance:this.taxNumberControl},{name:"companyRegistration",instance:this.companyRegistrationControl},{name:"addressNum",instance:this.addressNumControl}].forEach(r=>{o.controls?(o.setControl(r.name,r.instance),o.patchValue(t)):o.addControl(r.name,r.instance)})}setForm(){this.addressForm$.pipe((0,re.q)(1),(0,y.t)(this)).subscribe(o=>{(0,v.kK)(o)||this._parentForm.patchValue(o)})}onChanges(){this._parentForm.valueChanges.pipe((0,y.t)(this),(0,Qe.h)(()=>this._parentForm.valid),(0,Ze.b)(500)).subscribe(o=>{this.store.dispatch(new c.dz(o))})}};Y.\u0275fac=function(o){return new(o||Y)(e.\u0275\u0275directiveInject(f.yh))},Y.\u0275cmp=e.\u0275\u0275defineComponent({type:Y,selectors:[["citydeals-basket-address-form"]],inputs:{parentForm:"parentForm",defaultUser:"defaultUser"},decls:1,vars:1,consts:[[4,"ngIf"],[3,"formGroup",4,"transloco","translocoRead"],[3,"formGroup"],["color","accent",1,"cd-checkbox","mb-3",3,"formControl"],["class","d-flex mb-3",4,"ngIf"],[1,"d-flex","mb-3"],[1,"d-flex","flex-column","w-100","me-2"],["type","text","formControlName","lastName",1,"cd-input","basket-address__input",3,"placeholder"],[1,"mt-2",3,"parentFormGroup","control","messageTypes"],[1,"d-flex","flex-column","w-100"],["type","text","formControlName","firstName",1,"cd-input","basket-address__input",3,"placeholder"],[1,"d-flex","flex-column","mb-3"],["type","text","formControlName","email",1,"cd-input","basket-address__input",3,"placeholder"],[1,"d-flex","flex-column","me-2","w-50"],["type","text","formControlName","zipcode",1,"cd-input","basket-address__input",3,"placeholder"],["type","text","formControlName","settlement",1,"cd-input","basket-address__input",3,"placeholder"],[1,"d-flex"],["type","text","formControlName","addressName",1,"cd-input","basket-address__input",3,"placeholder"],["type","text","formControlName","addressNum",1,"cd-input","basket-address__input",3,"placeholder"],["type","text","formControlName","companyName",1,"cd-input","basket-address__input",3,"placeholder"],["type","text","formControlName","taxNumber",1,"cd-input","basket-address__input",3,"placeholder"]],template:function(o,t){1&o&&e.\u0275\u0275template(0,wo,2,1,"div",0),2&o&&e.\u0275\u0275property("ngIf",t.parentForm)},directives:[u.NgIf,O.KI,l._Y,l.JL,l.sg,ve.oG,l.JJ,l.oH,l.Fj,l.u,Be.w],pipes:[O.Ot],styles:["[_nghost-%COMP%]   .ng-invalid[_ngcontent-%COMP%]:not(form){border-left:5px solid var(--bs-green)}[_nghost-%COMP%]   .ng-valid[_ngcontent-%COMP%]:not(form):not(mat-checkbox){padding-left:14px}"],data:{animation:[qe.Qx]}}),(0,_.gn)([(0,f.Ph)(c.Kk.addressForm),(0,_.w6)("design:type",w.y)],Y.prototype,"addressForm$",void 0),Y=(0,_.gn)([(0,y.c)(),(0,_.w6)("design:paramtypes",[f.yh])],Y);const Eo=["simplepay"];function Oo(n,o){if(1&n&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275elementStart(1,"span",24)(2,"strong"),e.\u0275\u0275text(3),e.\u0275\u0275pipe(4,"transloco"),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(5,"img",25),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementContainerEnd()),2&n){const t=e.\u0275\u0275nextContext().$implicit;e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate2("",e.\u0275\u0275pipeBind1(4,2,"PAGE.CART.PAYMENT_METHOD_DEBITCARD")," (",t,")")}}function Io(n,o){1&n&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275elementStart(1,"span",24)(2,"strong"),e.\u0275\u0275text(3),e.\u0275\u0275pipe(4,"transloco"),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(5,"img",26),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementContainerEnd()),2&n&&(e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(4,1,"PAGE.CART.PAYMENT_METHOD_OTP_SZEPKARTYA")))}function Mo(n,o){1&n&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275elementStart(1,"span",24)(2,"strong"),e.\u0275\u0275text(3),e.\u0275\u0275pipe(4,"transloco"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementContainerEnd()),2&n&&(e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(4,1,"PAGE.CART.PAYMENT_METHOD_TRANSFER")))}function To(n,o){1&n&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275elementStart(1,"span",24)(2,"strong"),e.\u0275\u0275text(3),e.\u0275\u0275pipe(4,"transloco"),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(5,"img",27),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementContainerEnd()),2&n&&(e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(4,1,"PAGE.CART.PAYMENT_METHOD_TRANSFER_KH_SZEPKARTYA")))}function So(n,o){1&n&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275elementStart(1,"span",24)(2,"strong"),e.\u0275\u0275text(3),e.\u0275\u0275pipe(4,"transloco"),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(5,"img",28),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementContainerEnd()),2&n&&(e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(4,1,"PAGE.CART.PAYMENT_METHOD_PAYPAL")))}function Po(n,o){if(1&n&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275elementStart(1,"span",24)(2,"strong"),e.\u0275\u0275text(3),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(4,"img",29),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementContainerEnd()),2&n){const t=e.\u0275\u0275nextContext().$implicit;e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate1("Bankk\xe1rtya (",t,")")}}function Do(n,o){1&n&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275elementStart(1,"span",30)(2,"strong"),e.\u0275\u0275text(3),e.\u0275\u0275pipe(4,"transloco"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementContainerEnd()),2&n&&(e.\u0275\u0275advance(3),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(4,1,"PAGE.CART.PAYMENT_METHOD_CASH")))}function Ro(n,o){1&n&&e.\u0275\u0275element(0,"span",32)}function Fo(n,o){if(1&n&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275template(1,Ro,1,0,"span",31),e.\u0275\u0275elementContainerEnd()),2&n){const t=e.\u0275\u0275nextContext(2);let i;e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",(null==(i=t.form.get("paymentType"))?null:i.value)===t.BasketPaymentType.SIMPLEPAY)}}function Bo(n,o){1&n&&(e.\u0275\u0275elementStart(0,"span",32),e.\u0275\u0275element(1,"span",33),e.\u0275\u0275elementEnd())}function Ao(n,o){if(1&n&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275template(1,Bo,2,0,"span",31),e.\u0275\u0275elementContainerEnd()),2&n){const t=e.\u0275\u0275nextContext(2);let i;e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",(null==(i=t.form.get("paymentType"))?null:i.value)===t.BasketPaymentType.OTP_SZEPKARTYA)}}function No(n,o){1&n&&(e.\u0275\u0275elementStart(0,"span",32)(1,"span",30),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"transloco"),e.\u0275\u0275elementEnd()()),2&n&&(e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(3,1,"PAGE.CART.PAYMENT_METHOD_TRANSFER_TEXT")))}function Lo(n,o){if(1&n&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275template(1,No,4,3,"span",31),e.\u0275\u0275elementContainerEnd()),2&n){const t=e.\u0275\u0275nextContext(2);let i;e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",(null==(i=t.form.get("paymentType"))?null:i.value)===t.BasketPaymentType.TRANSFER)}}function Go(n,o){1&n&&(e.\u0275\u0275elementStart(0,"span",32)(1,"span",30),e.\u0275\u0275text(2),e.\u0275\u0275pipe(3,"transloco"),e.\u0275\u0275elementEnd()()),2&n&&(e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(3,1,"PAGE.CART.PAYMENT_METHOD_TRANSFER_KH_SZEPKARTYA_TEXT")))}function Vo(n,o){if(1&n&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275template(1,Go,4,3,"span",31),e.\u0275\u0275elementContainerEnd()),2&n){const t=e.\u0275\u0275nextContext(2);let i;e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",(null==(i=t.form.get("paymentType"))?null:i.value)===t.BasketPaymentType.TRANSFER_SZEPKARTYA)}}function jo(n,o){1&n&&e.\u0275\u0275element(0,"span",32)}function zo(n,o){if(1&n&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275template(1,jo,1,0,"span",31),e.\u0275\u0275elementContainerEnd()),2&n){const t=e.\u0275\u0275nextContext(2);let i;e.\u0275\u0275advance(1),e.\u0275\u0275property("ngIf",(null==(i=t.form.get("paymentType"))?null:i.value)===t.BasketPaymentType.PAYPAL)}}function Wo(n,o){if(1&n&&(e.\u0275\u0275elementStart(0,"span",30),e.\u0275\u0275text(1),e.\u0275\u0275elementEnd()),2&n){const t=e.\u0275\u0275nextContext(2).$implicit;e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1("Bankk\xe1rtya (",t,")")}}function Ho(n,o){if(1&n&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275elementStart(1,"span",32),e.\u0275\u0275template(2,Wo,2,1,"span",34),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementContainerEnd()),2&n){const t=e.\u0275\u0275nextContext(2);let i;e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",(null==(i=t.form.get("paymentType"))?null:i.value)===t.BasketPaymentType.SOFORT)}}function Uo(n,o){1&n&&(e.\u0275\u0275elementStart(0,"span",30),e.\u0275\u0275text(1),e.\u0275\u0275pipe(2,"transloco"),e.\u0275\u0275elementEnd()),2&n&&(e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(2,1,"PAGE.CART.PAYMENT_METHOD_CASH_TEXT")))}function $o(n,o){if(1&n&&(e.\u0275\u0275elementContainerStart(0),e.\u0275\u0275elementStart(1,"span",32),e.\u0275\u0275template(2,Uo,3,3,"span",34),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementContainerEnd()),2&n){const t=e.\u0275\u0275nextContext(2);let i;e.\u0275\u0275advance(2),e.\u0275\u0275property("ngIf",(null==(i=t.form.get("paymentType"))?null:i.value)===t.BasketPaymentType.CASH)}}function Ko(n,o){if(1&n&&(e.\u0275\u0275elementStart(0,"div",19)(1,"div",20)(2,"div")(3,"mat-radio-button",21),e.\u0275\u0275elementContainerStart(4,22),e.\u0275\u0275template(5,Oo,6,4,"ng-container",23),e.\u0275\u0275template(6,Io,6,3,"ng-container",23),e.\u0275\u0275template(7,Mo,5,3,"ng-container",23),e.\u0275\u0275template(8,To,6,3,"ng-container",23),e.\u0275\u0275template(9,So,6,3,"ng-container",23),e.\u0275\u0275template(10,Po,5,1,"ng-container",23),e.\u0275\u0275template(11,Do,5,3,"ng-container",23),e.\u0275\u0275elementContainerEnd(),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(12,"div"),e.\u0275\u0275elementContainerStart(13,22),e.\u0275\u0275template(14,Fo,2,1,"ng-container",23),e.\u0275\u0275template(15,Ao,2,1,"ng-container",23),e.\u0275\u0275template(16,Lo,2,1,"ng-container",23),e.\u0275\u0275template(17,Vo,2,1,"ng-container",23),e.\u0275\u0275template(18,zo,2,1,"ng-container",23),e.\u0275\u0275template(19,Ho,3,1,"ng-container",23),e.\u0275\u0275template(20,$o,3,1,"ng-container",23),e.\u0275\u0275elementContainerEnd(),e.\u0275\u0275elementEnd()()()),2&n){const t=o.$implicit,i=e.\u0275\u0275nextContext();e.\u0275\u0275advance(3),e.\u0275\u0275property("value",t),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngSwitch",t),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngSwitchCase",i.BasketPaymentType.SIMPLEPAY),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngSwitchCase",i.BasketPaymentType.OTP_SZEPKARTYA),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngSwitchCase",i.BasketPaymentType.TRANSFER),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngSwitchCase",i.BasketPaymentType.TRANSFER_SZEPKARTYA),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngSwitchCase",i.BasketPaymentType.PAYPAL),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngSwitchCase",i.BasketPaymentType.SOFORT),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngSwitchCase",i.BasketPaymentType.CASH),e.\u0275\u0275advance(2),e.\u0275\u0275property("ngSwitch",t),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngSwitchCase",i.BasketPaymentType.SIMPLEPAY),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngSwitchCase",i.BasketPaymentType.OTP_SZEPKARTYA),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngSwitchCase",i.BasketPaymentType.TRANSFER),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngSwitchCase",i.BasketPaymentType.TRANSFER_SZEPKARTYA),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngSwitchCase",i.BasketPaymentType.PAYPAL),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngSwitchCase",i.BasketPaymentType.SOFORT),e.\u0275\u0275advance(1),e.\u0275\u0275property("ngSwitchCase",i.BasketPaymentType.CASH)}}const rt=function(n){return["/","pages",n]};function Qo(n,o){if(1&n&&(e.\u0275\u0275elementStart(0,"mat-checkbox",35)(1,"span"),e.\u0275\u0275text(2),e.\u0275\u0275elementStart(3,"a",36),e.\u0275\u0275text(4),e.\u0275\u0275elementEnd(),e.\u0275\u0275text(5),e.\u0275\u0275elementStart(6,"a",36),e.\u0275\u0275text(7),e.\u0275\u0275elementEnd(),e.\u0275\u0275text(8,"."),e.\u0275\u0275elementEnd()()),2&n){const t=o.$implicit;e.\u0275\u0275advance(2),e.\u0275\u0275textInterpolate1("",t("CART.PAY_PRIVACY_POLICY_P1")," "),e.\u0275\u0275advance(1),e.\u0275\u0275property("routerLink",e.\u0275\u0275pureFunction1(6,rt,t("COMMON.ASZF_STATIC_CONTENT_LINK"))),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(t("CART.PAY_PRIVACY_POLICY_P2")),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate1(" ",t("CART.PAY_PRIVACY_POLICY_P3")," "),e.\u0275\u0275advance(1),e.\u0275\u0275property("routerLink",e.\u0275\u0275pureFunction1(8,rt,t("COMMON.PRIVACY_POLICY_STATIC_CONTENT_LINK"))),e.\u0275\u0275advance(1),e.\u0275\u0275textInterpolate(t("CART.PAY_PRIVACY_POLICY_P4"))}}const Yo=function(n,o){return[n,o]};let S=class{constructor(o,t,i,r,a){this.store=o,this.router=t,this.matSnackBar=i,this.basketService=r,this.spinnerService=a,this.paymentTypes=[c.tB.SIMPLEPAY,c.tB.OTP_SZEPKARTYA,c.tB.TRANSFER,c.tB.TRANSFER_SZEPKARTYA,c.tB.PAYPAL,c.tB.CASH],this.BasketPaymentType=c.tB,this.consentFormControl=new l.NI(!1),this.form=new l.cw({paymentType:new l.NI(c.tB.SIMPLEPAY),consent:this.consentFormControl}),this.addressFormGroup=new v.TY({}),this.shippingFormGroup=new v.TY({}),this.basketOverviewListEnum=c.yx}ngOnInit(){this.basketService.trackSteps(3),this.store.select(c.Kk.offers).pipe((0,y.t)(this),(0,fe.x)()).subscribe(o=>{const t=[c.tB.OTP_SZEPKARTYA,c.tB.TRANSFER_SZEPKARTYA],i=o.every(r=>r.otp_szepkartya)||!1;t.forEach(r=>{const a=this.paymentTypes.indexOf(r);i?-1===a&&(r===c.tB.OTP_SZEPKARTYA?this.paymentTypes.splice(1,0,c.tB.OTP_SZEPKARTYA):this.paymentTypes.splice(3,0,c.tB.TRANSFER_SZEPKARTYA)):a>-1&&this.paymentTypes.splice(a,1)})})}buy(){this.spinnerService.show(),(0,ge.a)([this.offers$,this.overviewForm$,this.coupon$,this.addressForm$,this.decorativePackaging$]).pipe((0,y.t)(this),(0,F.U)(([o,t,i,r,a])=>{var s,m;const d=o.map(g=>{var h,b,M;const E=t.gifts&&t.gifts[g.idx];return{qua
1ntity:g.quantity,sku:g.id,type:"voucher",giftData:E?{name:E.name,email:E.email,message:E.message,voucher_design_id:null!==(b=null===(h=E.voucherDesign)||void 0===h?void 0:h.id)&&void 0!==b?b:null}:void 0,delivery_type:null!==(M=null==E?void 0:E.deliveryType)&&void 0!==M?M:c.eo.EMAIL}});if((0,v.kK)(r))throw new c.sc("Hiba az adatokban, k\xe9rj\xfck ellen\u0151rizze a megadott adatokat.");let C=null,x=null;if(!(0,v.kK)(a)&&a.length>0&&this.shippingFormGroup.invalid)throw new c.wR("Hiba a sz\xe1ll\xedt\xe1si m\xf3d adatokban, k\xe9rj\xfck ellen\u0151rizze a megadott adatokat+");if(!(0,v.kK)(a)){x=a.map(h=>({wrap_type_id:h.wrap_id,package_ids:h.assigned.filter(b=>b.selected&&!b.disabled).map(b=>{var M;return null===(M=b.basket)||void 0===M?void 0:M.id}).filter(b=>null!=b)}));const g=null===(s=this.shippingFormGroup.value.shippingMode)||void 0===s?void 0:s.id;if(C={mode:g},g===c.iR.GLS_PICKUP){const{phone:h,email:b}=this.shippingFormGroup.value;C={...C,phone:h,email:b,mode_data:this.shippingFormGroup.value.mode_data}}else if(g===c.iR.GLS_DELIVERY||g===c.iR.MPL_DELIVERY){const{first_name:h,last_name:b,zipcode:M,settlement:E,address_name:T,address_num:Se,phone:Ai,email:Ni}=this.shippingFormGroup.value;C={...C,first_name:h,last_name:b,zipcode:M,settlement:E,address_name:T,address_num:Se,phone:Ai,email:Ni}}}return{items:d,wrapping:x,shipping:C,payer:r,provider:this.form.value.paymentType.toLowerCase(),couponCode:null!==(m=null==i?void 0:i.code)&&void 0!==m?m:null}}),(0,co.z)(o=>this.basketService.paymentInit(o))).subscribe({next:o=>{this.spinnerService.hide(),window.open(o.data.redirect,"_self")},error:o=>{var t;this.spinnerService.hide();const i=o instanceof c.sc||o instanceof c.wR?o:o.error;this.form.value.paymentType!==c.tB.SIMPLEPAY||(0,v.kK)(i.text)?(this.matSnackBar.open(i.message,void 0,{panelClass:["snackBarStyleForError"],duration:2e3}),i instanceof c.sc&&this.router.navigate(["/","basket",c.bF.overview])):(0,v.kK)(this.simplepayEl)||(this.simplepayEl.nativeElement.innerHTML=`${i.text}`,null===(t=this.simplepayEl.nativeElement.querySelector("button"))||void 0===t||t.click())}})}openSimplePayDocument(){window.open("http://simplepartner.hu/PaymentService/Fizetesi_tajekoztato.pdf","_blank")}};S.\u0275fac=function(o){return new(o||S)(e.\u0275\u0275directiveInject(f.yh),e.\u0275\u0275directiveInject(k.F0),e.\u0275\u0275directiveInject(U.ux),e.\u0275\u0275directiveInject(c.vD),e.\u0275\u0275directiveInject(Ce.t2))},S.\u0275cmp=e.\u0275\u0275defineComponent({type:S,selectors:[["citydeals-basket-payment-method"]],viewQuery:function(o,t){if(1&o&&e.\u0275\u0275viewQuery(Eo,7),2&o){let i;e.\u0275\u0275queryRefresh(i=e.\u0275\u0275loadQuery())&&(t.simplepayEl=i.first)}},decls:30,vars:20,consts:[[3,"shippingForm"],[1,"row","pb-5"],[3,"reducedDisplay","displayOrder"],[1,"col-12","col-md-4"],[1,"basket-payment-method__info"],[1,"col-12","col-md-8"],[3,"parentForm","defaultUser"],[3,"formGroup"],[1,"basket-payment-method__options"],["formControlName","paymentType"],["class","basket-payment-method__box",4,"ngFor","ngForOf"],[1,"row","py-2","mb-2","text-center","basket-payment-method__aszf-container"],["formControlName","consent","class","cd-checkbox black-border-checkbox",4,"transloco","translocoRead"],[1,"w-100",3,"continueDisabled","continueClick"],["hidden",""],["simplepay",""],["color","#00b267","size","medium","type","ball-spin-clockwise-fade"],[2,"font-size","20px","color","white"],["id","GLSMapScriptContainer"],[1,"basket-payment-method__box"],[1,"d-flex","flex-column","gap-1"],[1,"cd-radio",3,"value"],[3,"ngSwitch"],[4,"ngSwitchCase"],[1,"basket-payment-method__title"],["src","assets/img/payments/simplepay_2.png","role","presentation","alt","Bank k\xe1rtya",1,"basket-payment-method__image","basket-payment-method__image--big"],["src","assets/img/payments/otp-szepkartya.jpg","role","presentation","alt","otp szepkartya",1,"basket-payment-method__image","basket-payment-method__image--small"],["src","assets/img/payments/kh_szepkartya_transfer.png","role","presentation","alt","kh szepkartya",1,"basket-payment-method__image","basket-payment-method__image--normal"],["src","assets/img/payments/pp_logo.png","role","presentation","alt","paypal",1,"basket-payment-method__image","basket-payment-method__image--small"],["src","assets/img/payments/sofort.png","role","presentation","alt","sofort",1,"basket-payment-method__image","basket-payment-method__image--small"],[1,"basket-payment-method__content"],["class","d-block d-sm-flex align-items-center",4,"ngIf"],[1,"d-block","d-sm-flex","align-items-center"],[1,"basket-payment-method__otp"],["class","basket-payment-method__content",4,"ngIf"],["formControlName","consent",1,"cd-checkbox","black-border-checkbox"],[3,"routerLink"]],template:function(o,t){1&o&&(e.\u0275\u0275element(0,"citydeals-basket-shipping",0),e.\u0275\u0275elementStart(1,"div",1),e.\u0275\u0275element(2,"citydeals-basket-overview",2),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(3,"div",1)(4,"div",3)(5,"p",4),e.\u0275\u0275text(6,"Sz\xe1ml\xe1z\xe1si adatok megad\xe1sa"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(7,"div",5),e.\u0275\u0275element(8,"citydeals-basket-address-form",6),e.\u0275\u0275pipe(9,"async"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(10,"form",7)(11,"div",1)(12,"div",3)(13,"p",4),e.\u0275\u0275text(14),e.\u0275\u0275pipe(15,"transloco"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(16,"div",5)(17,"div",8)(18,"mat-radio-group",9),e.\u0275\u0275template(19,Ko,21,17,"div",10),e.\u0275\u0275elementEnd()()()(),e.\u0275\u0275elementStart(20,"div",11),e.\u0275\u0275template(21,Qo,9,10,"mat-checkbox",12),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(22,"citydeals-basket-footer",13),e.\u0275\u0275listener("continueClick",function(){return t.buy()}),e.\u0275\u0275elementEnd(),e.\u0275\u0275element(23,"div",14,15),e.\u0275\u0275elementStart(25,"ngx-spinner",16)(26,"p",17),e.\u0275\u0275text(27),e.\u0275\u0275pipe(28,"transloco"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275element(29,"div",18)),2&o&&(e.\u0275\u0275property("shippingForm",t.shippingFormGroup),e.\u0275\u0275advance(2),e.\u0275\u0275property("reducedDisplay",!0)("displayOrder",e.\u0275\u0275pureFunction2(17,Yo,t.basketOverviewListEnum.GIFT_PACKAGE,t.basketOverviewListEnum.BASKET)),e.\u0275\u0275advance(6),e.\u0275\u0275property("parentForm",t.addressFormGroup)("defaultUser",e.\u0275\u0275pipeBind1(9,11,t.currentUser$)),e.\u0275\u0275advance(2),e.\u0275\u0275property("formGroup",t.form),e.\u0275\u0275advance(4),e.\u0275\u0275textInterpolate(e.\u0275\u0275pipeBind1(15,13,"PAGE.CART.PAYMENT_METHOD")),e.\u0275\u0275advance(5),e.\u0275\u0275property("ngForOf",t.paymentTypes),e.\u0275\u0275advance(2),e.\u0275\u0275property("translocoRead","PAGE"),e.\u0275\u0275advance(1),e.\u0275\u0275property("continueDisabled",!t.consentFormControl.value),e.\u0275\u0275advance(5),e.\u0275\u0275textInterpolate1("",e.\u0275\u0275pipeBind1(28,15,"PAGE.COMMON.PROGRESS_TEXT"),"!"))},directives:[oe,D,Y,l._Y,l.JL,l.sg,G.VQ,l.JJ,l.u,u.NgForOf,G.U0,u.NgSwitch,u.NgSwitchCase,u.NgIf,O.KI,ve.oG,k.yS,ne,Ce.Ro],pipes:[u.AsyncPipe,O.Ot],styles:[".basket-payment-method__options[_ngcontent-%COMP%]{border-radius:6px;margin:0 0 10px}.basket-payment-method__box[_ngcontent-%COMP%]{padding:5px 15px;height:-moz-fit-content;height:fit-content;min-height:50px;border-bottom:1px solid var(--bs-light)}@media (max-width: 575.98px){.basket-payment-method__box[_ngcontent-%COMP%]{padding:15px;height:-moz-fit-content;height:fit-content;min-height:50px}}.basket-payment-method__box[_ngcontent-%COMP%]:last-of-type{border-bottom:0}.basket-payment-method__info[_ngcontent-%COMP%]{font-size:20px;line-height:18px;color:var(--bs-dark-grey);margin:0 0 20px;font-weight:400}.basket-payment-method__title[_ngcontent-%COMP%]{color:#5d6065;font-size:14px;line-height:21px;padding-right:8px}@media (max-width: 575.98px){.basket-payment-method__title[_ngcontent-%COMP%]{white-space:pre-wrap}}.basket-payment-method__title[_ngcontent-%COMP%]   strong[_ngcontent-%COMP%]{padding-right:25px}@media (max-width: 575.98px){.basket-payment-method__otp[_ngcontent-%COMP%]{display:block}}.basket-payment-method__content[_ngcontent-%COMP%]{color:#454f63;font-weight:400;font-size:14px;line-height:22px;flex:1;white-space:pre-wrap;margin:8px 0;text-align:justify}.basket-payment-method__image[_ngcontent-%COMP%]{height:60px;margin:3px}.basket-payment-method__image--small[_ngcontent-%COMP%]{height:25px;margin:6px 3px 0}@media (max-width: 767.98px){.basket-payment-method__image--small[_ngcontent-%COMP%]{height:20px;margin:23px 3px}}@media (max-width: 575.98px){.basket-payment-method__image--small[_ngcontent-%COMP%]{margin:8px 3px}}.basket-payment-method__image--normal[_ngcontent-%COMP%]{height:35px;margin:6px 3px 0}@media (max-width: 767.98px){.basket-payment-method__image--normal[_ngcontent-%COMP%]{height:20px;margin:23px 3px}}@media (max-width: 575.98px){.basket-payment-method__image--normal[_ngcontent-%COMP%]{margin:8px 3px}}.basket-payment-method__image--big[_ngcontent-%COMP%]{height:45px;margin:6px 3px 0}@media (max-width: 767.98px){.basket-payment-method__image--big[_ngcontent-%COMP%]{height:auto;margin:23px 3px;width:100%}}@media (max-width: 575.98px){.basket-payment-method__image--big[_ngcontent-%COMP%]{margin:8px 3px}}.basket-payment-method__total-price[_ngcontent-%COMP%]{line-height:21px;color:var(--bs-dark-grey)}.basket-payment-method__total-price[_ngcontent-%COMP%]   strong[_ngcontent-%COMP%]{font-size:21px;color:var(--bs-green)}.basket-payment-method__aszf-container[_ngcontent-%COMP%]{background-color:#eecf0240;border-top:1px solid #D5DAE2;font-size:15px!important;color:#454f63}.basket-payment-method__aszf-container[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:15px!important;color:#454f63}.basket-payment-method__aszf-container[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{font-weight:600;color:#454f63}.padding-left-25px[_ngcontent-%COMP%]{padding-left:25px!important}  .mat-checkbox-label{font-size:14px!important}  .black-border-checkbox .mat-checkbox-frame{border-color:#000!important}"]}),(0,_.gn)([(0,f.Ph)(c.Kk.price),(0,_.w6)("design:type",w.y)],S.prototype,"price$",void 0),(0,_.gn)([(0,f.Ph)(c.Kk.offers),(0,_.w6)("design:type",w.y)],S.prototype,"offers$",void 0),(0,_.gn)([(0,f.Ph)(c.Kk.overviewForm),(0,_.w6)("design:type",w.y)],S.prototype,"overviewForm$",void 0),(0,_.gn)([(0,f.Ph)(c.Kk.coupon),(0,_.w6)("design:type",w.y)],S.prototype,"coupon$",void 0),(0,_.gn)([(0,f.Ph)(c.Kk.addressForm),(0,_.w6)("design:type",w.y)],S.prototype,"addressForm$",void 0),(0,_.gn)([(0,f.Ph)(P.AuthState.currentUser),(0,_.w6)("design:type",w.y)],S.prototype,"currentUser$",void 0),(0,_.gn)([(0,f.Ph)(c.Kk.decorativePackaging),(0,_.w6)("design:type",w.y)],S.prototype,"decorativePackaging$",void 0),S=(0,_.gn)([(0,y.c)(),(0,_.w6)("design:paramtypes",[f.yh,k.F0,U.ux,c.vD,Ce.t2])],S);const Xo=[{path:"",component:X,children:[{path:c.bF.overview,component:D,canActivate:[P.AuthTokenGuard],data:{step:+c.bF.overview,userType:"CLIENT"}},{path:c.bF.paymentMethod,component:S,data:{step:+c.bF.paymentMethod}}]}];let Zo=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.\u0275\u0275defineNgModule({type:n}),n.\u0275inj=e.\u0275\u0275defineInjector({providers:[P.AuthTokenGuard],imports:[[u.CommonModule,k.Bz.forChild(Xo)],k.Bz]}),n})();var qo=p(7719),lt=(p(3191),p(449),p(6758),p(188),p(5191),p(9646),p(2722),p(226),p(925),p(9071));let fi=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.\u0275\u0275defineNgModule({type:n}),n.\u0275inj=e.\u0275\u0275defineInjector({imports:[[lt.Cl]]}),n})();var ut=p(508);let Ri=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.\u0275\u0275defineNgModule({type:n}),n.\u0275inj=e.\u0275\u0275defineInjector({imports:[[fi,ut.BQ],ut.BQ]}),n})(),Bi=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.\u0275\u0275defineNgModule({type:n}),n.\u0275inj=e.\u0275\u0275defineInjector({imports:[[u.CommonModule,Zo,l.u5,l.UX,ve.p9,G.Fk,Re.Ps,v.SK,v._r,Ce.ef,O.y4,Fe.Cq,qo.VoucherListModule,Je.ot,G.Fk,G.Fk,tt.AV,Ne.kz,I.Is,Ri,v.Xf,v.dR]]}),n})()},2181:(Pe,H,p)=>{p.d(H,{b:()=>y});var u=p(4482),k=p(2279),P=p(8189),c=p(3269),_=p(188);function y(...f){return function l(...f){const F=(0,c.yG)(f),v=(0,c._6)(f,1/0);return f=(0,k.k)(f),(0,u.e)((ie,e)=>{(0,P.J)(v)((0,_.D)([ie,...f],F)).subscribe(e)})}(...f)}},4244:(Pe,H,p)=>{p.d(H,{n:()=>P});var u=p(4482),k=p(5403);function P(c){return(0,u.e)((_,l)=>{let y=!1,f=0;_.subscribe(new k.Q(l,F=>(y||(y=!c(F,f++)))&&l.next(F)))})}},5191:(Pe,H,p)=>{p.d(H,{b:()=>P});var u=p(9751),k=p(576);function P(c){return!!c&&(c instanceof u.y||(0,k.m)(c.lift)&&(0,k.m)(c.subscribe))}}}]);

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.