PageSourceSearch

https://www.biesse.cz/script/dist/browser/chunk-P5VS2F5V.js

js biesse.cz collected 2026-10-06 13:59:48 UTC 312,035 bytes, 43 lines download raw bytes

1
2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="52148216-16ba-5cc5-b41e-d90ccdcb03be")}catch(e){}}();
3import{b as Xe,c as ge}from"./chunk-5VBTXJVY.js";import{a as Ki,b as ti}from"./chunk-42M6NCOQ.js";import{a as la}from"./chunk-TOUTTMLG.js";import{b as ca}from"./chunk-CK42FIAO.js";import{e as U,h as ia}from"./chunk-VO3VR43M.js";import{a as aa,b as na}from"./chunk-EPUFGMJF.js";import{a as ra,d as Le,f as oa,g as Oe}from"./chunk-GA3KK3T7.js";import"./chunk-67ZL44O5.js";import"./chunk-FVWVPSNZ.js";import{a as Jt,b as ie}from"./chunk-LCIOIOE2.js";import{b as Yi}from"./chunk-QWPHY7A3.js";import{a as $i,b as Ne,c as qi,d as Qi,f as Ji,g as Xi,h as ta,i as ea}from"./chunk-53HV3NJJ.js";import{a as Bt,b as vt,c as ee}from"./chunk-LUP4JBG7.js";import{a as W}from"./chunk-64QJVREX.js";import{c as Nt}from"./chunk-W7PVCVL5.js";import{a as st,b as fe,c as Ut,d as Ye,e as Ve,f as Gi,g as Je,h as je,i as Pt,l as Zt,p as zt,q as ze,r as T}from"./chunk-MPRX6WRO.js";import{a as bt}from"./chunk-HSXPIWEL.js";import{a as dt,b as Be}from"./chunk-JEZTBI4E.js";import{a as Yt,d as te}from"./chunk-FJ4ZOLGT.js";import{A as It,B as Vt,C as jt,b as Te,c as Dt,e as X,f as ot,g as ct,i as Fe,l as Ri,o as Ui,s as gt,t as lt,z as Me}from"./chunk-R5XMVSYY.js";import{b as Hi}from"./chunk-K5Q7KIV2.js";import"./chunk-Q6YC4QEL.js";import{b as Et,f as Zi,h as Xt}from"./chunk-GK6575UR.js";import{a as At}from"./chunk-F4I7SJ6J.js";import{a as tt}from"./chunk-DKLXHHLQ.js";import{$a as o,$c as xe,Aa as n,Ab as u,Bb as q,Bc as ji,Cb as ue,Cd as I,Db as Ze,Dc as ft,Dd as P,Ea as vi,Eb as ki,Ec as zi,Ed as E,Fa as Ft,Fb as Di,Fc as Ni,Ga as m,Gb as Ii,Hb as Ct,Ia as C,Ic as Bi,J as Ke,Ja as ut,K as M,Ka as Qe,Kb as Ie,M as _t,Ma as k,Mb as mt,Na as yi,Nb as xt,Ob as N,Qb as Pe,Qc as Ae,R as A,Rb as Pi,Sa as it,Sb as Ei,Sc as R,Ta as x,Tc as rt,Va as f,Vc as qt,X as et,Xa as K,Y as ht,Ya as B,Yb as Ai,Yc as Qt,Z as hi,Za as L,_ as Q,_a as p,ab as c,bb as _,ca as v,cb as Kt,da as y,db as Rt,fb as Se,fc as Ti,gb as ke,ha as _e,hd as Li,i as z,ib as w,ja as wt,ka as ui,kb as b,kc as Fi,lb as wi,lc as Ee,mb as s,mc as kt,md as Oi,na as xi,nb as Ci,oa as $t,ob as Si,oc as Mi,qa as he,qb as nt,qd as Wi,rb as Y,sa as fi,sb as J,sc as Vi,tb as St,ua as at,va as qe,vb as O,wa as gi,wc as Mt,xa as bi,xb as De,ya as Wt,yb as d,zb as D,zd as Z}from"./chunk-SBKZPI4X.js";function Ha(i,l){if(i&1&&d(0),i&2){let t=s(3);u(" ",t.sen["cart-payment-title-picker"]," ")}}function $a(i,l){if(i&1&&d(0),i&2){let t=s(),e=t.name1,a=t.street,r=t.city;ue(" ",e," - ",a,", ",r," ")}}function Ka(i,l){if(i&1&&d(0),i&2){let t=s(5);u(" ",t.sen["cart-payment-shoppicker"]," ")}}function qa(i,l){if(i&1&&x(0,$a,1,3)(1,Ka,1,1),i&2){let t=l.name1;f(t?0:1)}}function Qa(i,l){if(i&1&&(o(0,"cmp-select-box",7),yi(1,qa,2,1,"ng-template"),c()),i&2){let t=s(3);p("items",t.branchList)}}function Za(i,l){if(i&1&&(Se(0,5),x(1,Ha,1,1),x(2,Qa,2,1,"cmp-select-box",7),ke()),i&2){let t=s(2);p("formGroup",t.branchForm),n(),f(!t.branchList||t.branchList.length<1?1:-1),n(),f(t.branchList&&t.branchList.length>0?2:-1)}}function Ya(i,l){if(i&1&&(o(0,"div"),d(1),c()),i&2){let t=s(2);n(),u(" ",t.sen["delivery-modal-loading"]," ")}}function Ja(i,l){if(i&1){let t=w();o(0,"div",6)(1,"button",8),b("click",function(){v(t);let a=s(2);return y(a.chooseDelivery())}),d(2),c()()}if(i&2){let t=s(2);n(2),u(" ",t.sen["delivery-payment-choose-ok"]," ")}}function Xa(i,l){if(i&1){let t=w();o(0,"div",1)(1,"div",2),d(2),c(),o(3,"div",3)(4,"input",4,0),b("input",function(){v(t);let a=St(5),r=s();return y(r.onDeliveryBalikInput(a.value,r.transport))}),c()()(),x(6,Za,3,3,"ng-container",5),x(7,Ya,2,1,"div"),x(8,Ja,3,1,"div",6)}if(i&2){let t=s();n(2),u(" ",t.sen["cart-payment-title-picker2"]," "),n(4),f(t.branchList?6:-1),n(),f(t.loading?7:-1),n(),f(t.branchIsSelected?8:-1)}}var da=(()=>{class i extends E{constructor(t,e,a,r,h,g,V,j){super(t,e),this.dataSvc=t,this.seSvc=e,this.digestSvc=a,this.cartSvc=r,this.delPaySrv=h,this.config=g,this.dialogRef=V,this.fb=j,this.loading=!1,this.ngUnsubscribe=new z,this.createForm(),this.config&&this.config.data&&(this.transport=this.config.data.transport)}createForm(){this.branchForm=this.fb.group({branchId:[""]}),this.branchForm.get("branchId")?.valueChanges.pipe(A(this.ngUnsubscribe)).subscribe(t=>{this.branchIsSelected=this.branchList.find(e=>e.value===t)?.data})}ngAfterViewInit(){$("#pplModalComponentSearch").focus()}onDeliveryBalikInput(t,e){e.carrierService.code==="ppl_parcel"&&(this._timeOut&&clearTimeout(this._timeOut),this._timeOut=setTimeout(()=>{this.loading=!0,this.callPplInformation(t)},1e3))}chooseDelivery(){this.branchIsSelected!=null&&this.dialogRef.close(this.branchIsSelected)}callPplInformation(t){if(!t||!t.trim().length)return;let e=this.seSvc.culture.htmlLangAttribute,a={query:t,cultureCode:e},r={value:"",data:null,isDisabled:!1,selected:null};this.delPaySrv.pplInformation(a).pipe(A(this.ngUnsubscribe)).subscribe({next:h=>{h&&(this.loading=!1,this.branchList=h.map(g=>({value:g.id,data:g,isDisabled:!1,selected:null})),this.branchList.unshift(r))},error:()=>{this.loading=!1}})}ngOnDestroy(){this.ngUnsubscribe.next(),this.ngUnsubscribe.complete()}static{this.\u0275fac=function(e){return new(e||i)(m(P),m(I),m(Nt),m(T),m(bt),m(je),m(Pt),m(It))}}static{this.\u0275cmp=C({type:i,selectors:[["ng-component"]],standalone:!1,features:[
3k],decls:1,vars:1,consts:[["deliveryInput",""],[1,"modal-search"],[1,"modal-search__label"],[1,"modal-search__value"],["id","pplModalComponentSearch","type","text",1,"form-input",3,"input"],[3,"formGroup"],[1,"modal__actions"],["formControlName","branchId",3,"items"],[1,"btn","btn--medium","btn--primary",3,"click"]],template:function(e,a){e&1&&x(0,Xa,9,4),e&2&&f(a.transport?0:-1)},dependencies:[ot,ct,lt,gt,Jt],encapsulation:2})}}return i})();var pa=(()=>{class i extends E{widgetListener(t){if(t.data.message==="pickerResult"){let e=t.data.id,a=t.data.point.name,r=t.data.point.country.toLowerCase(),h=this.seSvc.settings.countries.find(V=>V.code===r)?.name,g={id:e,city:t.data.point.municipality_name,street:t.data.point.address,zipcode:t.data.point.zip,name1:a,name2:"",deliveryId:e,deliveryBranch:null,nameStreet:null,country:h};this.dialogRef.close(g)}}constructor(t,e,a,r,h){super(t,e),this.dataSvc=t,this.seSvc=e,this.config=a,this.dialogRef=r,this.san=h,this.config&&this.config.data&&(this.config.data.transport.carrierService.code==="cpost_balikovna"?this.srcUrl=this.san.bypassSecurityTrustResourceUrl("https://b2c.cpost.cz/locations/?type=BALIKOVNY&phone=false&skipLocation=false"):this.srcUrl=this.san.bypassSecurityTrustResourceUrl("https://b2c.cpost.cz/locations/?type=POST_OFFICE&phone=false&skipLocation=false"))}static{this.\u0275fac=function(e){return new(e||i)(m(P),m(I),m(je),m(Pt),m(ji))}}static{this.\u0275cmp=C({type:i,selectors:[["ng-component"]],hostBindings:function(e,a){e&1&&b("message",function(h){return a.widgetListener(h)},Wt)},standalone:!1,features:[k],decls:1,vars:1,consts:[["sandbox","allow-scripts allow-same-origin allow-forms","allow","geolocation https://b2c.cpost.cz;",1,"cp-iframe",2,"background-color","white",3,"src"]],template:function(e,a){e&1&&_(0,"iframe",0),e&2&&p("src",a.srcUrl,gi)},encapsulation:2})}}return i})();function tn(i,l){if(i&1&&d(0),i&2){let t=s(2);u(" ",t.store.companyName,", ")}}function en(i,l){if(i&1&&d(0),i&2){let t=s(2);u(" ",t.store.street,", ")}}function an(i,l){if(i&1&&d(0),i&2){let t=s(2);u(" ",t.store.city," ")}}function nn(i,l){if(i&1&&d(0),i&2){let t=s(3);u(" ",t.openingHoursFormatted.join(", ")," ")}}function rn(i,l){if(i&1&&(Kt(0,"div"),d(1),Rt()),i&2){let t=l.$implicit;n(),D(t)}}function on(i,l){if(i&1&&B(0,rn,2,1,"div",null,K),i&2){let t=s(3);L(t.openingHoursFormatted)}}function cn(i,l){if(i&1&&(Kt(0,"div",4),x(1,nn,1,1)(2,on,2,0),Rt()),i&2){let t=s(2);n(),f(t.renderAsOneString?1:2)}}function ln(i,l){if(i&1){let t=w();Kt(0,"div",0)(1,"div",1)(2,"div",2),d(3),Rt(),Kt(4,"div",3),x(5,tn,1,1),x(6,en,1,1),x(7,an,1,1),Rt(),x(8,cn,3,1,"div",4),Rt(),Kt(9,"div",5)(10,"button",6),wi("click",function(){v(t);let a=s();return y(a.selectStore())}),d(11),Rt()()()}if(i&2){let t=s();n(3),u(" ",t.store.name," "),n(2),f(t.store!=null&&t.store.companyName?5:-1),n(),f(t.store!=null&&t.store.street?6:-1),n(),f(t.store!=null&&t.store.city?7:-1),n(),f(t.openingHoursFormatted!=null&&t.openingHoursFormatted.length?8:-1),n(3),u(" ",t.sen["select-store-button"]," ")}}var ma=(()=>{class i extends E{constructor(t,e){super(t,e),this.dataSvc=t,this.seSvc=e,this.renderAsOneString=!1,this.storeSelected=new wt,this.openingHoursFormatted=[],this.imagePathPrefix=this.seSvc.settings.newImageServerUrl}ngOnChanges(){this.openingHoursFormatted=this.seSvc.formatOpeningHours(this.store?.openingHours,!0)}selectStore(){this.storeSelected.emit(this.store)}static{this.\u0275fac=function(e){return new(e||i)(m(P),m(I))}}static{this.\u0275cmp=C({type:i,selectors:[["cmp-store-dialog-tile"]],inputs:{store:"store",renderAsOneString:"renderAsOneString"},outputs:{storeSelected:"storeSelected"},features:[k,$t],decls:1,vars:1,consts:[[1,"modal-stores-item"],[1,"modal-stores-item__content"],[1,"modal-stores-item__title"],[1,"modal-stores-item__address"],[1,"modal-stores-item__opening"],[1,"modal-stores-item__actions"],["type","button",1,"btn","btn--primary","btn--small",3,"click"]],template:function(e,a){e&1&&x(0,ln,12,6,"div",0),e&2&&f(a.store?0:-1)},encapsulation:2})}}return i})();var sn=["searchInput"];function dn(i,l){if(i&1){let t=w();o(0,"cmp-store-dialog-tile",6),b("storeSelected",function(a){v(t);let r=s();return y(r.storeSelected(a))}),c()}if(i&2){let t=l.$implicit;p("store",t)}}var _a=(()=>
3{class i extends E{constructor(t,e,a,r){super(t,e),this.dataSvc=t,this.seSvc=e,this.dialogRef=a,this.http=r,this.searchPhrase=null,this.imagePathPrefix=this.seSvc.settings.newImageServerUrl,this.getStores()}getStores(){this.http.post("api/store/get-for-personal-pickup",{phrase:this.searchPhrase}).pipe(M(1)).subscribe(t=>{this.stores=t})}ngAfterViewInit(){this.searchInput.nativeElement.focus()}search(t){this.searchPhrase=t,clearTimeout(this.timeOut),this.timeOut=setTimeout(()=>{this.getStores()},300)}storeSelected(t){this.dialogRef.close(t)}static{this.\u0275fac=function(e){return new(e||i)(m(P),m(I),m(Pt),m(Mt))}}static{this.\u0275cmp=C({type:i,selectors:[["cmp-store-list-dialog"]],viewQuery:function(e,a){if(e&1&&nt(sn,5),e&2){let r;Y(r=J())&&(a.searchInput=r.first)}},features:[k],decls:7,vars:1,consts:[["searchInput",""],[1,"modal-search"],[1,"modal-search__value"],["type","text",1,"form-input",3,"input","placeholder"],[1,"modal-stores"],[3,"store"],[3,"storeSelected","store"]],template:function(e,a){if(e&1){let r=w();o(0,"div",1)(1,"div",2)(2,"input",3,0),b("input",function(){v(r);let g=St(3);return y(a.search(g.value))}),c()()(),o(4,"div",4),B(5,dn,1,1,"cmp-store-dialog-tile",5,K),c()}e&2&&(n(2),p("placeholder",a.sen["stores-search-by-address-placeholder"]),n(3),L(a.stores))},dependencies:[ma],styles:[`.modal-stores{display:flex;flex-direction:column;row-gap:4px}cmp-store-dialog-tile:last-child .modal-stores-item{padding-bottom:0;margin-bottom:0;border-bottom:none}.modal-stores-item{display:flex;flex-direction:column;gap:12px 16px;padding:12px 20px;background-color:#f5f7f9;border-radius:4px}@media screen and (min-width:480px){.modal-stores-item{flex-direction:row;align-items:center}}.modal-stores-item__content{display:flex;flex-direction:column;row-gap:4px;flex:1;min-width:1px}.modal-stores-item__title{font-weight:600}.modal-stores-item__address,.modal-stores-item__opening{font-size:13px}.modal-stores-item__actions{flex-shrink:0}@media screen and (max-width:479.98px){.modal-stores-item__actions .btn{width:100%}}
4`],encapsulation:2})}}return i})();var ha=(()=>{class i extends E{widgetListener(t){if(t.data.dpdWidget.message==="widgetClose"){this.dialogRef.close();return}let e=t.data.dpdWidget.id,a=t.data.dpdWidget.contactInfo.name,r=t.data.dpdWidget.location.address,h=r.country.toLowerCase(),g=this.seSvc.settings.countries.find(j=>j.code===h)?.name,V={id:e,city:r.city,street:r.street,zipcode:r.zip,name1:a,name2:"",deliveryId:e,deliveryBranch:null,nameStreet:null,country:g};this.dialogRef.close(V)}constructor(t,e,a){super(t,e),this.dataSvc=t,this.seSvc=e,this.dialogRef=a}closeWidget(){this.dialogRef.close()}static{this.\u0275fac=function(e){return new(e||i)(m(P),m(I),m(Pt))}}static{this.\u0275cmp=C({type:i,selectors:[["cmp-dpd-pickup"]],hostBindings:function(e,a){e&1&&b("message",function(h){return a.widgetListener(h)},Wt)},standalone:!1,features:[k],decls:1,vars:0,consts:[["sandbox","allow-scripts allow-same-origin","allow","geolocation https://api.dpd.cz;","id","packeta-widget","src",bi`https://api.dpd.cz/widget/latest/index.html`,1,"dpd-iframe",2,"background-color","white"]],template:function(e,a){e&1&&_(0,"iframe",0)},encapsulation:2})}}return i})();var xa=(i,l)=>({withVat:i,withoutVat:l});function pn(i,l){if(i&1&&_(0,"cmp-picture",20),i&2){let t=s().$implicit;De("delivery-payment-item"),p("imagePath",t.logo)("fotoCacheKey","delivery_payment")("width",80)("height",50)("alt",t.name)}}function mn(i,l){if(i&1&&(o(0,"div",15),d(1),c()),i&2){let t=s().$implicit;n(),u(" ",t.description," ")}}function _n(i,l){if(i&1&&(o(0,"div",16),d(1),c()),i&2){let t=s(2);n(),u(" ",t.sen["cart-must-be-branch"]," ")}}function hn(i,l){if(i&1&&(o(0,"div",17)(1,"strong"),d(2),c(),_(3,"br"),d(4),_(5,"br"),d(6),c()),i&2){let t=s(2);n(2),q("",t.delPaySvc.deliveryPayment.delivery.branch.name1?t.delPaySvc.deliveryPayment.delivery.branch.name1:""," ",t.delPaySvc.deliveryPayment.delivery.branch.name2?t.delPaySvc.deliveryPayment.delivery.branch.name2:""," "),n(2),u(" ",t.delPaySvc.deliveryPayment.delivery.branch.nameStreet?t.delPaySvc.deliveryPayment.delivery.branch.nameStreet:t.delPaySvc.deliveryPayment.delivery.branch.city+" "," "),n(2),u(" ",t.delPaySvc.deliveryPayment.delivery.branch.street?t.delPaySvc.deliveryPayment.delivery.branch.street:" "," ")}}function un(i,l){if(i&1&&_(0,"cmp-price",19),i&2){let t=s().$implicit;p("price",N(1,xa,t.priceWithVat,t.priceWithOutVAT))}}function xn(i,l){if(i&1&&d(0),i&2){let t=s(2);u(" ",t.sen["app-free"]," ")}}function fn(i,l){if(i&1){let t=w();o(0,"div",8),b("click",function(){v(t);let a=s();return y(a.deliveryClick())})("keydown",function(a){let r=v(t).$implicit,h=s();return y(h.deliveryKeyDown(a,r))}),o(1,"input",9),b("change",function(){let a=v(t).$implicit,r=s();return y(r.deliveryChange(a))})("click",function(){let a=v(t).$implicit,r=s();return y(r.setTransport(a))}),c(),o(2,"label",10)(3,"div",11),x(4,pn,1,7,"cmp-picture",12),c(),o(5,"div",13)(6,"div",14),d(7),c(),x(8,mn,2,1,"div",15),x(9,_n,2,1,"div",16),x(10,hn,7,4,"div",17),c(),o(11,"div",18),x(12,un,1,4,"cmp-price",19)(13,xn,1,1),c()()()}if(i&2){let t=l.$implicit,e=s();it("aria-label",t.name)("aria-checked",t.id===(e.delPaySvc.deliveryPayment.delivery==null?null:e.delPaySvc.deliveryPayment.delivery.id)),n(),O("disabled",!e.editable),p("id",Ct("d"+t.id))("value",t.id)("checked",t.id===(e.delPaySvc.deliveryPayment.delivery==null?null:e.delPaySvc.deliveryPayment.delivery.id))("disabled",!e.editable),n(),p("for",Ct("d"+t.id)),n(2),f(t.logo?4:-1),n(3),u(" ",t.name," "),n(),f(t.description?8:-1),n(),f(t.id===(e.delPaySvc.deliveryPayment.delivery==null?null:e.delPaySvc.deliveryPayment.delivery.id)&&e.branchWarning?9:-1),n(),f(!(e.delPaySvc==null||e.delPaySvc.deliveryPayment==null||e.delPaySvc.deliveryPayment.delivery==null)&&e.delPaySvc.deliveryPayment.delivery.branch&&(e.delPaySvc==null||e.delPaySvc.deliveryPayment==null||e.delPaySvc.deliveryPayment.delivery==null?null:e.delPaySvc.deliveryPayment.delivery.id)===t.id?10:-1),n(2),f(t.priceWithVat>0?12:13)}}function gn(i,l){if(i&1){let t=w();o(0,"div",21),b("click",function(){v(t);let a=s();return y(a.showAllDeliveries=!a.showAllDeliveries)}),o(1,"div"),d(2),_(3,"cmp-svg",22),c()()}if(i&2){let t=s();O("delivery-payment__actions--active",t.showAllDeliveries),n(2),u(" ",t.showAllDeliveries?t.sen["detail-show-less"]:t.sen["detail-show-more"]," ")}}function bn(i,l){if(i&1&&_(0,"cmp-picture",20),i&2){let t=s().$implicit;p("imagePath",t.logo)("fotoCacheKey","delivery_payment")("width",80)("height",50)("alt",t.name)}}function vn(i,l){if(i&1&&(o(0,"div",15),d(1),c()),i&2){let t=s().$implicit;n(),u(" ",t.description," ")}}function yn(i,l){if(i&1&&_(0,"cmp-price",19),i&2){let t=s().$implicit;p("price",N(1,xa,t.priceWithVat,t.priceWithOutVAT))}}function wn(i,l){if(i&1&&d(0),i&2){let t=s(2);u(" ",t.sen["app-free"]," ")}}function Cn(i,l){if(i&1){let t=w();o(0,"div",23),b("keydown",function(a){let r=v(t).$implicit,h=s();return y(h.paymentKeyDown(a,r))}),o(1,"input",24),b("change",function(){let a=v(t).$implicit,r=s();return y(r.paymentChange(a))}),c(),o(2,"label",10)(3,"div",11),x(4,bn,1,5,"cmp-picture",20),c(),o(5,"div",13)(6,"div",14),d(7),c(),x(8,vn,2,1,"div",15),c(),o(9,"div",18),x(10,yn,1,4,"cmp-price",19)(11,wn,1,1),c()()()}if(i&2){let t=l.$implicit,e=s();it("aria-label",t.name)("aria-checked",t.id===(e.delPaySvc.deliveryPayment==null||e.delPaySvc.deliveryPayment.payment==null?null:e.delPaySvc.deliveryPayment.payment.id)),n(),O("disabled",!e.editable),p("id",Ct("p"+t.id))("checked",t.id===(e.delPaySvc.deliveryPayment==null||e.delPaySvc.deliveryPayment.payment==null?null:e.delPaySvc.deliveryPayment.payment.id))("value",t.id)("disabled",!e.editable),n(),p("for",Ct("p"+t.id)),n(2),f(t.logo?4:-1),n(3),u(" ",t.name," "),n(),f(t.description?8:-1),n(2),f(t.priceWithVat>0?10:11)}}function Sn(i,l){if(i&1){let t=w();o(0,"div",21),b("click",function(){v(t);let a=s();return y(a.showAllPayments=!a.showAllPayments)}),o(1,"div"),d(2),_(3,"cmp-svg",22),c()()}if(i&2){let t=s();O("delivery-payment__actions--active",t.showAllPayments),n(2),u(" ",t.showAllPayments?t.sen["detail-show-less"]:t.sen["detail-show-more"]," ")}}var fa=(()=>
4{class i extends E{get visibleDeliveries(){return this.showAllDeliveries?this.delPaySvc.deliveries:this.delPaySvc.deliveries.slice(0,this.pageSize)}get availablePayments(){return this.delPaySvc.payments.filter(t=>!this.isPaymentDisabled(t.id))}get visiblePayments(){return this.showAllPayments?this.availablePayments:this.availablePayments.slice(0,this.pageSize)}constructor(t,e,a,r,h){super(t,e),this.dataSvc=t,this.seSvc=e,this.delPaySvc=a,this.cartSvc=r,this.generalDialogSvc=h,this.cartPrice=0,this.editable=!0,this.branchWarning=!1,this.clearBranchWarning=new wt,this.ngUnsubscribe=new z,this.decimalPattern="1.0-0",this.pageSize=5,this.showAllDeliveries=!1,this.showAllPayments=!1,this.currencySymbol=this.seSvc.settings.currencies[this.seSvc.currencyId],this.decimalPattern=`1.${this.seSvc.settings.decimalSettings.ProductBox}-${this.seSvc.settings.decimalSettings.Basket}`,this.delPaySvc.deliveryPaymentSetFromPersistence.pipe(A(this.ngUnsubscribe)).subscribe(g=>{this.setRelation(g.delivery?.id,g.payment?.id)}),this.cartSvc.cartInvoiceAddressChanged.pipe(Ke(100),A(this.ngUnsubscribe)).subscribe(g=>{g&&g.countryId&&this.delPaySvc.destinationCountryId!=g.countryId&&!this.cartSvc.cart.withDeliveryAddress&&(this.delPaySvc.destinationCountryId=g.countryId,this.delPaySvc.getData().subscribe(()=>{this.cartSvc.cart.delivery=null,this.cartSvc.cart.payment=null,this.delPaySvc.deliveryPayment.delivery&&(this.delPaySvc.deliveryPayment.delivery.id=0)}))}),this.cartSvc.cartDeliveryAddressChanged.pipe(Ke(100),A(this.ngUnsubscribe)).subscribe(g=>{if(this.cartSvc.cart.withDeliveryAddress&&g&&g.countryId){if(this.delPaySvc.destinationCountryId===g.countryId)return;this.delPaySvc.destinationCountryId=g.countryId,this.delPaySvc.getData().subscribe(()=>{this.cartSvc.cart.delivery=null,this.cartSvc.cart.payment=null,this.delPaySvc.deliveryPayment.delivery&&(this.delPaySvc.deliveryPayment.delivery.id=0)})}}),this.cartSvc.cartWithDeliveryAddressChanged.pipe(A(this.ngUnsubscribe)).subscribe(()=>{this.cartSvc.cart.deliveryAddress&&this.cartSvc.cart.deliveryAddress.countryId&&this.cartSvc.cart.withDeliveryAddress&&this.delPaySvc.destinationCountryId!=this.cartSvc.cart.deliveryAddress.countryId?(this.delPaySvc.destinationCountryId=this.cartSvc.cart.deliveryAddress.countryId,this.delPaySvc.getData().subscribe(()=>{})):this.cartSvc.cart.invoiceAddress&&this.cartSvc.cart.invoiceAddress.countryId&&!this.cartSvc.cart.withDeliveryAddress&&this.delPaySvc.destinationCountryId!=this.cartSvc.cart.invoiceAddress.countryId&&(this.delPaySvc.destinationCountryId=this.cartSvc.cart.invoiceAddress.countryId,this.delPaySvc.getData().subscribe(()=>{}))})}setTransport(t){if(this.delPaySvc.deliveryPayment.delivery=t,this.delPaySvc.delPayNotAvailableWarning=!1,t.carrierService)switch(t.carrierService.code){case"ppl_parcel":this.showPplModal();break;case"cpost_posta":case"cpost_balikovna":this.showCzpostModal();break;case"zasilkovna":this.showWidgetModal();break;case"internal_personal_pickup":this.showStores(t);break;case"dpd_pickup":this.showDpdPickupModal();break}else this.delPaySvc.deliveryPayment={delivery:t,payment:this.delPaySvc.deliveryPayment.payment};Ut(this.delPaySvc?.deliveryPayment?.delivery?.carrierService)||this.clearBranchWarning.emit(!0)}showPplModal(){let e={data:{transport:this.delPaySvc.deliveryPayment.delivery},title:this.sen["ulozenka-select-branch"],cssClassModifier:"transport",isCloseAble:!0};this.generalDialogSvc.open(da,e).afterClosed.pipe(A(this.ngUnsubscribe)).subscribe(r=>{r&&this.branchModalClosed(r)})}showCzpostModal(){let e={data:{transport:this.delPaySvc.deliveryPayment.delivery},title:null,cssClassModifier:"no-style-cp",isCloseAble:!0};this.generalDialogSvc.open(pa,e).afterClosed.pipe(A(this.ngUnsubscribe)).subscribe(r=>{r&&this.branchModalClosed(r)})}showWidgetModal(){let t={language:this.seSvc.culture.htmlLangAttribute,valueFormat:'"Packeta",id,carrierId,carrierPickupPointId,name,city,street',view:"modal"};window.Packeta.Widget.pick(this.zasilkovnaApiKey,e=>{this.zasilkovnaModalClosed(e)},t)}zasilkovnaModalClosed(t){if(!t)return;let e=t?.country.toLowerCase(),a=this.seSvc.settings.countries.find(h=>
4h.code===e)?.name,r={city:t?.city,name1:t?.place,street:t?.street,zipcode:t?.zip,deliveryBranch:null,deliveryId:null,id:t?.id,extraData:null,name2:null,nameStreet:null,country:a};this.branchModalClosed(r)}showDpdPickupModal(){let e={data:{transport:this.delPaySvc.deliveryPayment.delivery},title:null,cssClassModifier:"dpd",isCloseAble:!0};this.generalDialogSvc.open(ha,e).afterClosed.pipe(M(1)).subscribe(r=>{r&&this.branchModalClosed(r)})}branchModalClosed(t){let e=this.delPaySvc.deliveryPayment.delivery;e&&(e.branch=t,this.delPaySvc.deliveryPayment={delivery:e,payment:this.delPaySvc.deliveryPayment.payment},this.delPaySvc.deliveryPaymentChanged.emit(this.delPaySvc.deliveryPayment),t&&this.clearBranchWarning.emit(!0))}ngOnInit(){this.getDeliveryFreeFrom(),this.delPaySvc.deliveries?.length&&this.delPaySvc.deliveries.find(t=>t.carrierService?.code=="zasilkovna")&&this.getZasilkovnaApiKey()}insertZasilkovnaScript(){if(document.getElementById("zasilkovnaScriptElement"))return;let t=document.createElement("script");t.defer=!0,t.src="https://widget.packeta.com/v6/www/js/library.js",t.setAttribute("id","zasilkovnaScriptElement"),document.body.appendChild(t)}getZasilkovnaApiKey(){this.delPaySvc.zasilkovnaApi().pipe(A(this.ngUnsubscribe)).subscribe({next:t=>{t&&(this.insertZasilkovnaScript(),this.zasilkovnaApiKey=t)},error:()=>{}})}ngOnChanges(t){t.delivery&&this.delPaySvc.deliveries&&this.delPaySvc.deliveries.length&&(this.delPaySvc.deliveryPayment.delivery=this.delPaySvc.deliveries.find(r=>r.id==t.delivery.currentValue.id));let e=t.cartPrice;e&&(this.delPaySvc.cartPrice=e.currentValue,this.getData());let a=t.cartWeight;a&&(this.delPaySvc.cartWeight=a.currentValue,this.getData())}getData(){this.delPaySvc.getData().subscribe(t=>{this.setRelation(t.delivery?.id,t.payment?.id)})}setRelation(t,e){let a;if((t??0)>0&&!e?(a=null,this.delPaySvc.deliveryPayment.payment!=null&&(a=this.delPaySvc.relations.find(r=>r.deliveryId==t&&r.paymentId==this.delPaySvc.deliveryPayment.payment?.id)),a||(a=this.delPaySvc.relations.find(r=>r.deliveryId==t)),e=a?.paymentId):(e??0)>0&&!t&&(a=null,this.delPaySvc.deliveryPayment.delivery!=null&&(a=this.delPaySvc.relations.find(r=>r.paymentId==e&&r.deliveryId==this.delPaySvc.deliveryPayment.delivery?.id)),a||(a=this.delPaySvc.relations.find(r=>r.paymentId==e)),t=a?.deliveryId),(t??0)>0&&(e??0)>0){this.delPaySvc.deliveryPayment.delivery||(this.delPaySvc.deliveryPayment.delivery=this.delPaySvc.deliveries.find(h=>h.id==t));let r=this.delPaySvc.relations.find(h=>h.deliveryId==this.delPaySvc.deliveryPayment.delivery?.id&&h.paymentId==e);r?this.delPaySvc.deliveryPayment.payment=this.delPaySvc.payments.find(h=>h.id==r.paymentId):this.delPaySvc.deliveryPayment.payment=this.getFirstAvailablePayment(this.delPaySvc.deliveryPayment.delivery?.id??0),this.delPaySvc.deliveryPaymentChanged.emit(this.delPaySvc.deliveryPayment)}}getFirstAvailablePayment(t){let e=null;return this.delPaySvc.payments.forEach(a=>{if(this.delPaySvc.relations.find(r=>r.deliveryId==t&&r.paymentId==a.id)){e=a;return}}),e}isPaymentDisabled(t){let e;return this.delPaySvc.deliveryPayment&&this.delPaySvc.deliveryPayment.delivery&&(e=this.delPaySvc.relations.find(a=>a.deliveryId==this.delPaySvc.deliveryPayment.delivery?.id&&a.paymentId==t)),e==null}deliveryClick(){this.delPaySvc.deliveryPayment.delivery&&(this.delPaySvc.deliveryPayment.delivery.branch=null)}deliveryChange(t){this.delPaySvc.deliveryPayment.delivery=t,this.setRelation(t.id,null)}deliveryKeyDown(t,e){(t.key==="Enter"||t.code==="Space")&&(this.deliveryClick(),this.setTransport(e),this.deliveryChange(e))}paymentChange(t){this.delPaySvc.deliveryPayment.payment=t,this.setRelation(null,t.id),this.delPaySvc.delPayNotAvailableWarning=!1}paymentKeyDown(t,e){(t.key==="Enter"||t.code==="Space")&&this.paymentChange(e)}ngOnDestroy(){this.ngUnsubscribe.next(),this.ngUnsubscribe.complete()}getDeliveryFreeFrom(){this.delPaySvc.getDeliveryFreeFrom(this.delPaySvc.destinationCountryId).pipe(M(1)).subscribe(t=>{this.delPaySvc.deliveryFreeFrom=t[this.seSvc.currencyId]})}showStores(t){let a={data:{},title:this.sen["select-store"],cssClassModifier:"select-store",isCloseAble:!0};this.generalDialogSvc.open(_a,a).afterClosed.pipe(A(this.ngUnsubscribe)).subscribe(h=>{h&&this.storeSelected(t,h)})}storeSelected(t,e){let a={id:e.id.toString(),deliveryId:t.id,nameStreet:null,street:e.street,name1:e.name,name2:e.companyName,city:e.city,zipcode:e.zip,deliveryBranch:null,extraData:null,country:this.seSvc.settings.countries.find(r=>r.id===e.countryId)?.name};this.branchModalClosed(a)}static{this.\u0275fac=function(e){return new(e||i)(m(P),m(I),m(bt),m(T),m(Zt))}}static{this.\u0275cmp=C({type:i,selectors:[["cmp-delivery-payment"]],inputs:{cartPrice:"cartPrice",editable:"editable",branchWarning:"branchWarning"},outputs:{clearBranchWarning:"clearBranchWarning"}
4,standalone:!1,features:[k,$t],decls:15,vars:4,consts:[[1,"delivery-payment"],[1,"delivery-payment__section"],["id","deliverySectionTitle",1,"delivery-payment__title","h3"],["role","radiogroup","id","deliveryItemGroup","aria-labelledby","deliverySectionTitle",1,"delivery-payment__list"],["tabindex","0","role","radio",1,"delivery-payment-item"],[1,"delivery-payment__actions",3,"delivery-payment__actions--active"],["id","paymentSectionTitle",1,"delivery-payment__title","h3"],["role","radiogroup","id","paymentItemGroup","aria-labelledby","paymentSectionTitle",1,"delivery-payment__list"],["tabindex","0","role","radio",1,"delivery-payment-item",3,"click","keydown"],["tabindex","0","name","delivery","type","radio",1,"delivery-payment-item__input",3,"change","click","id","value","checked","disabled"],[1,"delivery-payment-item__label",3,"for"],[1,"delivery-payment-item__image"],[3,"imagePath","fotoCacheKey","width","height","class","alt"],[1,"delivery-payment-item__content"],[1,"delivery-payment-item__title"],[1,"delivery-payment-item__description"],[1,"delivery-payment-item__notice"],[1,"delivery-payment-item__address"],[1,"delivery-payment-item__price"],[3,"price"],[3,"imagePath","fotoCacheKey","width","height","alt"],[1,"delivery-payment__actions",3,"click"],["symbolId","arrow-simple"],["tabindex","0","role","radio",1,"delivery-payment-item",3,"keydown"],["type","radio","name","payment",1,"delivery-payment-item__input",3,"change","id","checked","value","disabled"]],template:function(e,a){e&1&&(o(0,"div",0)(1,"div",1)(2,"h2",2),d(3),c(),o(4,"div",3),B(5,fn,14,17,"div",4,K),c(),x(7,gn,4,3,"div",5),c(),o(8,"div",1)(9,"h2",6),d(10),c(),o(11,"div",7),B(12,Cn,12,15,"div",4,K),c(),x(14,Sn,4,3,"div",5),c()()),e&2&&(n(3),u(" ",a.sen["cart-delivery-title"]," "),n(2),L(a.visibleDeliveries),n(2),f(a.delPaySvc.deliveries.length>a.pageSize?7:-1),n(3),u(" ",a.sen["cart-payment-title"]," "),n(2),L(a.visiblePayments),n(2),f(a.availablePayments.length>a.pageSize?14:-1))},dependencies:[vt,Et,tt],styles:[`.delivery-payment{display:flex;flex-direction:column;row-gap:24px}.delivery-payment__section{display:flex;flex-direction:column;row-gap:16px}.delivery-payment__list{display:flex;flex-direction:column;row-gap:8px}.delivery-payment__actions{display:flex;align-items:center}.delivery-payment__actions:before,.delivery-payment__actions:after{flex:1;content:"";height:1px;background-color:#d9e0ec}.delivery-payment__actions>div{display:flex;align-items:center;column-gap:8px;padding:0 16px;cursor:pointer;font-weight:500}.delivery-payment__actions>div .icon{width:8px;transform:rotate(90deg)}.delivery-payment__actions--active>div .icon{transform:rotate(-90deg)}.delivery-payment-item__input{display:none}.delivery-payment-item__input:checked+.delivery-payment-item__label{border-color:#2b3848}.delivery-payment-item__input:checked+.delivery-payment-item__label:before{background-color:#2b3848;border-color:#2b3848;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 8'%3E%3Cpath d='M1 4l2.5 2.5L9 1' stroke='white' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-size:12px;background-repeat:no-repeat;background-position:center}.delivery-payment-item__input:checked+.delivery-payment-item__label:after{display:none}.delivery-payment-item__label{display:flex;flex-wrap:nowrap;align-items:center;gap:12px;position:relative;padding:16px 20px 16px 48px;transition:border-color .15s ease;cursor:pointer;border:1px solid #D9E0EC;border-radius:6px;transition:box-shadow .2s ease}.delivery-payment-item__label:before{height:20px;width:20px;border-radius:50%;content:"";border:1px solid #e2e2e2;background-color:#fff;box-shadow:0 1px 3px #0000001a}.delivery-payment-item__label:after{width:8px;height:8px;content:"";transition:all .3s ease;opacity:0;scale:0;border-radius:50%;background-color:#fff}.delivery-payment-item__label:before,.delivery-payment-item__label:after{position:absolute}.delivery-payment-item__label:before{top:50%;transform:translateY(-50%);left:16px;border:1.5px solid #D0D6DE;box-shadow:none}.delivery-payment-item__label:after{display:none}.delivery-payment-item__label:hover{box-shadow:0 0 10px #b4b4b4}.delivery-payment-item__image{display:flex;align-items:center;justify-content:center;width:80px;height:50px;flex-shrink:0}@media screen and (max-width:479.98px){.delivery-payment-item__image{width:60px;height:38px}}@media screen and (max-width:374.98px){.delivery-payment-item__image{display:none}}.delivery-payment-item__image cmp-picture,.delivery-payment-item__image picture{display:flex;width:100%;height:100%}.delivery-payment-item__image img{width:100%;height:100%;object-fit:contain}.delivery-payment-item__content{display:flex;flex-direction:column;row-gap:8px;flex:1;min-width:1px}.delivery-payment-item__title{font-weight:600}.delivery-payment-item__price{flex-shrink:0;font-weight:600;text-align:right}.delivery-payment-item__description{font-size:13px}.delivery-payment-item__notice{color:#dd202b;font-size:13px}.delivery-payment-item__address{padding:8px;background-color:#fff;border-radius:5px;font-size:13px}
5`],encapsulation:2})}}return i})();var Dn=i=>[i];function In(i,l){if(i&1&&(o(0,"a",9)(1,"div",5)(2,"div",6),d(3," 1 "),c()(),o(4,"div",8),d(5),c()()),i&2){let t=s();O("cart-steps__item--active",t.cartStep===1)("cart-steps__item--done",t.cartStep>1),p("routerLink",xt(6,Dn,t.links[0])),n(5),u(" ",t.sen["cart-overview-title"]," ")}}function Pn(i,l){if(i&1&&(o(0,"div",4)(1,"div",5)(2,"div",6),d(3," 1 "),c()(),o(4,"div",8),d(5),c()()),i&2){let t=s();O("cart-steps__item--active",t.cartStep===1)("cart-steps__item--done",t.cartStep>1),n(5),u(" ",t.sen["cart-overview-title"]," ")}}function En(i,l){if(i&1&&(o(0,"a",9)(1,"div",5)(2,"div",6),d(3," 2 "),c()(),o(4,"div",8),d(5),c()()),i&2){let t=s();O("cart-steps__item--active",t.cartStep===2)("cart-steps__item--done",t.cartStep>2),p("routerLink",t.links[1]),n(5),u(" ",t.sen["cart-shippay-title"]," ")}}function An(i,l){if(i&1&&(o(0,"div",4)(1,"div",5)(2,"div",6),d(3," 2 "),c()(),o(4,"div",8),d(5),c()()),i&2){let t=s();O("cart-steps__item--active",t.cartStep===2)("cart-steps__item--done",t.cartStep>2),n(5),u(" ",t.sen["cart-shippay-title"]," ")}}function Tn(i,l){if(i&1&&(o(0,"a",9)(1,"div",5)(2,"div",6),d(3," 3 "),c()(),o(4,"div",8),d(5),c()()),i&2){let t=s();O("cart-steps__item--active",t.cartStep===3)("cart-steps__item--done",t.cartStep>3),p("routerLink",t.links[2]),n(5),u(" ",t.sen["cart-shippay-title"]," ")}}function Fn(i,l){if(i&1&&(o(0,"div",4)(1,"div",5)(2,"div",6),d(3," 3 "),c()(),o(4,"div",8),d(5),c()()),i&2){let t=s();O("cart-steps__item--active",t.cartStep===3)("cart-steps__item--done",t.cartStep>3),n(5),u(" ",t.sen["cart-delivery-info"]," ")}}var ae=(()=>
5{class i extends E{constructor(t,e){super(t,e),this.cartStep=1,this.links=[]}static{this.\u0275fac=function(e){return new(e||i)(m(P),m(I))}}static{this.\u0275cmp=C({type:i,selectors:[["cmp-cart-step-header"]],inputs:{cartStep:"cartStep",links:"links"},standalone:!1,features:[k],decls:14,vars:6,consts:[[1,"cart-steps"],[1,"cart-steps__inner"],[1,"cart-steps__item",3,"routerLink","cart-steps__item--active","cart-steps__item--done"],[1,"cart-steps__item",3,"cart-steps__item--active","cart-steps__item--done"],[1,"cart-steps__item"],[1,"cart-steps__number-wrapper"],[1,"cart-steps__number"],["symbolId","check-circle"],[1,"cart-steps__text"],[1,"cart-steps__item",3,"routerLink"]],template:function(e,a){e&1&&(o(0,"div",0)(1,"div",1),x(2,In,6,8,"a",2)(3,Pn,6,5,"div",3),x(4,En,6,6,"a",2)(5,An,6,5,"div",3),x(6,Tn,6,6,"a",2)(7,Fn,6,5,"div",3),o(8,"div",4)(9,"div",5)(10,"div",6),_(11,"cmp-svg",7),c()(),o(12,"div",8),d(13),c()()()()),e&2&&(n(2),f(a.cartStep>1&&a.links[0]?2:3),n(2),f(a.cartStep>2&&a.links[1]?4:5),n(2),f(a.cartStep>3&&a.links[2]?6:7),n(2),O("cart-steps__item--active",a.cartStep===4),n(5),u(" ",a.sen["cart-cart-title"]," "))},dependencies:[rt,tt],styles:[`.cart-steps{display:block;margin-top:20px;margin-bottom:40px}@media screen and (min-width:1280px){.cart-steps{margin-bottom:60px}}.cart-steps__inner{display:flex;position:relative}.cart-steps__item{display:flex;flex-direction:column;align-items:center;flex:1;row-gap:8px;position:relative;z-index:2;min-width:1px;text-decoration:none}.cart-steps__item:first-child .cart-steps__number-wrapper:before{opacity:0}.cart-steps__item:last-child .cart-steps__number-wrapper:after{opacity:0}.cart-steps__item--done .cart-steps__number-wrapper:before,.cart-steps__item--done .cart-steps__number-wrapper:after{background-color:#cb2c30}.cart-steps__item--done .cart-steps__number{background-color:transparent;border:1px solid #CB2C30;color:#cb2c30}.cart-steps__item--done .cart-steps__text{font-weight:600}.cart-steps__item--active .cart-steps__number-wrapper:before{background-color:#cb2c30}.cart-steps__item--active .cart-steps__number{background-color:#cb2c30;color:#fff;font-weight:600}.cart-steps__item--active .cart-steps__text{font-weight:600}.cart-steps__number-wrapper{display:flex;align-items:center;justify-content:center;gap:8px;width:100%}.cart-steps__number-wrapper:before,.cart-steps__number-wrapper:after{flex:1;min-width:0;height:4px;content:"";background-color:#f5f7f9}.cart-steps__number{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:40px;height:40px;border-radius:50%;background-color:#f5f7f9;font-size:16px;font-weight:500;color:#6e757c}.cart-steps__number svg,.cart-steps__number .icon{width:18px;height:18px;color:#6e757c}.cart-steps__text{font-size:14px;line-height:24px;text-align:center;color:#2b3848;font-weight:400}@media screen and (max-width:479.98px){.cart-steps__text{font-size:12px;line-height:unset}}
6`],encapsulation:2})}}return i})();var ne=(i,l)=>({withVat:i,withoutVat:l}),Vn=(i,l)=>l.productDetail.id,jn=(i,l)=>l.couponDetail.code;function zn(i,l){if(i&1&&(o(0,"div",3)(1,"span",5),_(2,"cmp-picture",6),c(),o(3,"span",7),d(4),_(5,"br"),o(6,"span",8),d(7),c()(),o(8,"span",9),_(9,"cmp-price",10),c()()),i&2){let t=l.$implicit,e=s();n(2),p("width",80)("height",80)("fotoCacheKey","cart_product")("imagePath",t.productDetail==null?null:t.productDetail.imagePath)("alt",(t.productDetail==null?null:t.productDetail.name)||(t.productDetail==null?null:t.productDetail.commonName)),n(2),q(" ",t.count," x ",(t.productDetail==null?null:t.productDetail.name)||(t.productDetail==null?null:t.productDetail.commonName)),n(3),D(t.productDetail==null?null:t.productDetail.code),n(2),p("currencyId",e.currencyId)("price",N(11,ne,(t.productDetail==null?null:t.productDetail.priceWithVAT)*t.count,(t.productDetail==null?null:t.productDetail.priceWithoutVAT)*t.count))("isStacked",!0)}}function Nn(i,l){if(i&1&&(o(0,"span"),d(1),Pe(2,"number"),c()),i&2){let t=s().$implicit;n(),u(" ",Ei(2,1,-t.couponDetail.percent,"1.0-0")," % ")}}function Bn(i,l){if(i&1&&_(0,"cmp-price",10),i&2){let t=s().$implicit,e=s(2);p("currencyId",e.currencyId)("price",N(3,ne,-(t.couponDetail==null?null:t.couponDetail.couponImpactOnOrderPrice),-(t.couponDetail==null?null:t.couponDetail.couponImpactOnOrderPriceWithoutVAT)))("isStacked",!0)}}function Ln(i,l){if(i&1&&(o(0,"div",11)(1,"span",24),d(2),c(),o(3,"span",25),x(4,Nn,3,4,"span")(5,Bn,1,6,"cmp-price",10),c()()),i&2){let t=l.$implicit,e=s(2);n(2),q("",e.sen["summary-coupon-title"],": ",t.couponDetail==null?null:t.couponDetail.code),n(2),f(t.couponDetail!=null&&t.couponDetail.percent?4:5)}}function On(i,l){if(i&1&&_(0,"cmp-price",17),i&2){let t=s(2);p("price",N(2,ne,t.deliveryPrice,t.deliveryPriceNoVat))("isStacked",!0)}}function Wn(i,l){if(i&1&&(o(0,"span",18),d(1),c()),i&2){let t=s(2);n(),D(t.sen["app-free"])}}function Rn(i,l){if(i&1&&_(0,"cmp-price",17),i&2){let t=s(2);p("price",N(2,ne,t.paymentPrice,t.paymentPriceNoVat))("isStacked",!0)}}function Un(i,l){if(i&1&&(o(0,"span",18),d(1),c()),i&2){let t=s(2);n(),D(t.sen["app-free"])}}function Gn(i,l){if(i&1&&(B(0,Ln,6,3,"div",11,jn),o(2,"div",12)(3,"div",13)(4,"div",14),d(5),c(),o(6,"div",15)(7,"span",16),d(8),c(),x(9,On,1,5,"cmp-price",17)(10,Wn,2,1,"span",18),c()(),o(11,"div",13)(12,"div",14),d(13),c(),o(14,"div",15)(15,"span",16),d(16),c(),x(17,Rn,1,5,"cmp-price",17)(18,Un,2,1,"span",18),c()()(),o(19,"div",19)(20,"div",20)(21,"div",21),d(22),c(),o(23,"div",22),_(24,"cmp-price",23),c()(),o(25,"div",20)(26,"div",21),d(27),c(),o(28,"div",22),_(29,"cmp-price",23),c()()()),i&2){let t=s();L(t.coupons),n(5),u("",t.sen["cart-delivery-title"],":"),n(3),D(t.deliveryName),n(),f(t.deliveryPrice>0?9:10),n(4),u("",t.sen["cart-payment-title"],":"),n(3),D(t.paymentName),n(),f(t.paymentPrice>0?17:18),n(5),u(" ",t.sen["cart-grand-total"],": "),n(2),p("price",N(17,ne,t.totalPrice,t.totalPriceNoVat))("currencyId",t.currencyId)("isVatInfoVisible",!1)("isStacked",!0),n(3),q(" ",t.sen["cart-grand-total"]," ",t.priceVatSvc.isWithVat?t.sen["without-vat"]:t.sen["with-vat"]," "),n(2),p("price",N(20,ne,t.totalPriceNoVat,t.totalPrice))("currencyId",t.currencyId)("isVatInfoVisible",!1)("isStacked",!0)}}function Hn(i,l){if(i&1&&(o(0,"div",4)(1,"div",26),d(2),c(),o(3,"div"),d(4),c()()),i&2){let t=s();n(2),u("",t.sen["summary-note"],":"),n(2),u(" ",t.demandNote," ")}}var re=(()=>
6{class i extends E{set demandData(t){t&&(this.mapProductsFromDemand(t.demandItems),this.demandNote=t.note)}set orderData(t){t&&(this.mapProductsFromOrder(t.items),this.mapCouponsFromOrder(t.items),this.deliveryName=t.header.shippingType,this.deliveryPrice=t.header.shippingTypePriceWithVat,this.deliveryPriceNoVat=t.header.shippingTypePriceWithoutVat,this.paymentName=t.header.payment,this.paymentPrice=t.header.paymentTypePriceWithVat,this.paymentPriceNoVat=t.header.paymentTypePriceWithoutVat,this.totalPriceNoVat=t.header.priceSumWithoutVat,this.totalPrice=t.header.priceSumWithVat)}get viewMode(){return this._viewMode}set viewMode(t){switch(this._viewMode=t,t){case"orderContent":this.titleKey="summary-order-content";break;case"orderRecap":this.titleKey="summary-order-recap";break;case"demandRecap":this.titleKey="summary-demand-recap";break}}constructor(t,e,a,r,h){super(t,e),this.cartSvc=a,this.dpSvc=r,this.priceVatSvc=h,this.classModifier="",this.currencyId=this.seSvc.currencyId,this._viewMode="orderContent",this.ngUnsubscribe=new z,this.titleKey="summary-order-content",this.products=[],this.coupons=[]}ngOnInit(){this.viewMode==="orderContent"&&(this.cartSvc.cartContentChanged.pipe(A(this.ngUnsubscribe)).subscribe(()=>{this.prepareCartData()}),this.dpSvc.deliveryPaymentChanged.pipe(A(this.ngUnsubscribe)).subscribe(()=>{this.prepareCartData()}))}ngOnDestroy(){this.ngUnsubscribe.next(),this.ngUnsubscribe.complete()}prepareCartData(){this.mapProductsFromCartData(),this.mapCouponsFromCartData(),this.deliveryName=this.cartSvc.cart.delivery?.name,this.deliveryPrice=this.cartSvc.cart.delivery?.priceWithVat,this.deliveryPriceNoVat=this.cartSvc.cart.delivery?.priceWithOutVAT,this.paymentName=this.cartSvc.cart.payment?.name,this.paymentPrice=this.cartSvc.cart.payment?.priceWithVat,this.paymentPriceNoVat=this.cartSvc.cart.payment?.priceWithOutVAT,this.totalPrice=this.cartSvc.cart.priceTotalWithVat,this.totalPriceNoVat=this.cartSvc.cart.priceTotalWithOutVat}mapProductsFromCartData(){let t=this.cartSvc.cart.cartContent.filter(e=>e.productDetail);this.products=t.map(e=>({count:e.count,productDetail:{code:e.productDetail.code,commonName:e.productDetail.commonName,id:e.productDetail.id,imagePath:e.productDetail.imagePath,name:e.productDetail.name,priceWithoutVAT:e.productDetail.priceWithoutVAT,priceWithVAT:e.productDetail.priceWithVAT},couponDetail:null}))}mapCouponsFromCartData(){let t=this.cartSvc.cart.cartContent.filter(e=>e.couponDetail);this.coupons=t.map(e=>({count:e.count,productDetail:null,couponDetail:{code:e.couponDetail.code,couponImpactOnOrderPrice:e.couponDetail.couponImpactOnOrderPrice,couponImpactOnOrderPriceWithoutVAT:this.getCouponImpactWithoutVat(e.couponDetail.couponImpactOnOrderPrice,e.couponDetail.couponImpactOnOrderPriceWithoutVAT),id:e.couponDetail.id,percent:e.couponDetail.percent}}))}mapProductsFromDemand(t){this.products=t.map(e=>({count:e.count,couponDetail:null,productDetail:{code:e.code,commonName:e.name,id:e.productId,imagePath:e.imagePath,name:e.name,priceWithoutVAT:e.priceWithoutVat,priceWithVAT:e.priceWithVat}}))}mapProductsFromOrder(t){this.products=t.filter(e=>e.typeItem==="PRODUCT").map(e=>({count:e.count,couponDetail:null,productDetail:{code:e.code,commonName:e.name,name:e.name,id:e.productId,imagePath:e.imagePath,priceWithVAT:e.priceWithVat,priceWithoutVAT:e.priceWithoutVat}}))}mapCouponsFromOrder(t){this.coupons=t.filter(e=>e.typeItem==="COUPON").map(e=>({count:e.count,productDetail:null,couponDetail:{percent:e.discountPercent,couponImpactOnOrderPrice:Math.abs(e.priceWithVat),couponImpactOnOrderPriceWithoutVAT:this.getCouponImpactWithoutVat(Math.abs(e.priceWithVat),Math.abs(e.priceWithoutVat)),id:e.productId,code:e.code}}))}getCouponImpactWithoutVat(t,e){let a=Number(e);return isFinite(a)&&a!==0?a:this.priceVatSvc.getPriceWithoutVat(t)}static{this.\u0275fac=function(e){return new(e||i)(m(P),m(I),m(T),m(bt),m(Bt))}}static{this.\u0275cmp=C({type:i,selectors:[["cmp-cart-summary"]],inputs:{classModifier:"classModifier",demandData:"demandData",orderData:"orderData",viewMode:"viewMode"}
6,standalone:!1,features:[k],decls:8,vars:3,consts:[[1,"cart-summary",3,"ngClass"],[1,"cart-summary__title"],[1,"cart-summary__products"],[1,"cart-summary__product"],[1,"cart-summary__note"],[1,"cart-summary__product-img"],[3,"width","height","fotoCacheKey","imagePath","alt"],[1,"cart-summary__product-info"],[1,"cart-summary__product-code"],[1,"cart-summary__product-price"],[3,"currencyId","price","isStacked"],[1,"cart-summary__coupon"],[1,"cart-summary__delpay"],[1,"cart-summary__delpay-item"],[1,"cart-summary__delpay-label"],[1,"cart-summary__delpay-row"],[1,"cart-summary__delpay-name"],[3,"price","isStacked"],[1,"cart-summary__delpay-free"],[1,"cart-summary__total"],[1,"cart-summary__total-item"],[1,"cart-summary__total-label"],[1,"cart-summary__total-value"],[3,"price","currencyId","isVatInfoVisible","isStacked"],[1,"cart-summary__coupon-label"],[1,"cart-summary__coupon-price"],[1,"cart-summary__note-label"]],template:function(e,a){e&1&&(o(0,"div",0)(1,"div",1),d(2),c(),o(3,"div",2),B(4,zn,10,14,"div",3,Vn),c(),x(6,Gn,30,23)(7,Hn,5,2,"div",4),c()),e&2&&(p("ngClass",a.classModifier?"cart-summary--"+a.classModifier:""),n(2),D(a.sen[a.titleKey]),n(2),L(a.products),n(2),f(a.viewMode==="orderContent"||a.viewMode==="orderRecap"?6:7))},dependencies:[Ti,Et,vt,Fi],styles:[`.cart-summary{padding:20px;border-radius:6px}.cart-summary--gray{background:#f5f7f9}.cart-summary--white{background:#fff}@media screen and (min-width:600px){.cart-summary{padding:30px}}.cart-summary__title{font-size:18px;font-weight:700;margin-bottom:20px}.cart-summary__products{border-bottom:1px solid #e0e0e0;padding-bottom:20px}.cart-summary__product{display:flex;align-items:flex-start;gap:12px}.cart-summary__product:not(:first-child){margin-top:10px}.cart-summary__product-img{flex-shrink:0;width:40px;height:40px}.cart-summary__product-img img{width:100%;height:100%;object-fit:contain;border-radius:4px}.cart-summary__product-info{flex:1;font-size:14px;line-height:22px;min-width:0}.cart-summary__product-code{color:#6b6f73;font-size:12px}.cart-summary__product-price{font-weight:700;white-space:nowrap;font-size:14px}.cart-summary__coupon{display:flex;justify-content:space-between;align-items:center;padding:12px 0;border-bottom:1px solid #e0e0e0;font-size:14px}.cart-summary__coupon-label{font-weight:600}.cart-summary__coupon-price{font-weight:700;white-space:nowrap;margin-left:16px}.cart-summary__delpay{padding:16px 0 20px;border-bottom:1px solid #e0e0e0;display:flex;flex-direction:column;gap:12px}.cart-summary__delpay-item{display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;gap:6px;font-size:14px}.cart-summary__delpay-label{font-weight:700;min-width:60px}.cart-summary__delpay-row{display:flex;justify-content:space-between;align-items:center;gap:20px;width:100%}.cart-summary__delpay-row cmp-price,.cart-summary__delpay-row .cart-summary__delpay-free{min-width:60px;text-align:right}.cart-summary__delpay-name{color:#111}.cart-summary__delpay-free{font-weight:700}.cart-summary__total{display:flex;flex-direction:column;gap:4px;padding-top:20px}.cart-summary__total-item{display:flex;justify-content:space-between;align-items:center;width:100%;font-size:14px}.cart-summary__total-item:first-child{font-size:18px;font-weight:700}.cart-summary__total-label{font-weight:inherit}.cart-summary__total-value{white-space:nowrap;text-align:right}.cart-summary__total-value .price__value{font-size:inherit;font-weight:inherit}.cart-summary__total-vat{display:flex;justify-content:space-between;align-items:center;margin-top:8px;font-size:14px;color:#8e8e8e}.cart-summary__note{font-size:14px}.cart-summary__note-label{font-weight:700;margin-bottom:8px;margin-top:20px}
7`],encapsulation:2})}}return i})();var $n=["deliveryAddressComponentRef"],Kn=()=>["/kosik/obsah","/kosik/doprava-a-platba"],qn=()=>["/kosik/obsah"];function Qn(i,l){if(i&1&&_(0,"cmp-alert",2),i&2){let t=s();p("alertType","info")("innerHTML",t.sen["del-pay-not-available-warning"],at)}}function Zn(i,l){if(i&1){let t=w();o(0,"div",6),_(1,"cmp-svg",16),o(2,"div",17),d(3),o(4,"a",18),b("click",function(){v(t);let a=s();return y(a.showDialog())}),d(5),c(),d(6),c()()}if(i&2){let t=s();n(3),u(" ",t.sen["cart-contact-login-proposal"]," "),n(2),D(t.sen["cart-contact-login"]),n(),u(". ",t.sen["cart-contact-login-proposal-2"]," ")}}function Yn(i,l){if(i&1&&_(0,"cmp-alert",2),i&2){let t=s();p("alertType","info")("innerHTML",t.sen["cart-must-be-branch"],at)}}function Jn(i,l){if(i&1&&(o(0,"div",11),_(1,"cmp-alert",2),c()),i&2){let t=s();n(),p("alertType","info")("innerHTML",t.sen["cart-select-delpay"],at)}}var ga=(()=>
7{class i extends E{constructor(t,e,a,r,h,g,V,j){super(t,e),this.dataSvc=t,this.seSvc=e,this.cartSvc=a,this.router=r,this.fb=h,this.digestSvc=g,this.delPaySvc=V,this.userSvc=j,this.decimalPattern="1.0-0",this.missingBranch=!1,this.ngUnsubscribe=new z,this.userContactDataAreValid=!0,this.canBeBoughtChecked=!1,this.decimalPattern=`1.${this.seSvc.settings.decimalSettings.Basket}-${this.seSvc.settings.decimalSettings.Basket}`,this.currencySymbol=this.seSvc.settings.currencies[this.seSvc.currencyId],this.mainForm=new Fe({}),this.cartSvc.cartContentChanged.pipe(A(this.ngUnsubscribe)).subscribe(()=>{if(this.cartSvc.cart&&(!this.cartSvc.cart.cartContent||!this.cartSvc.cart.cartContent.length)&&this.cartSvc.isNextStep4==!1&&this.router.navigateByUrl("/kosik").then(),!this.canBeBoughtChecked){let S={ids:this.cartSvc.productIds(!0)};this.cartSvc.checkProductsCanBeBought(S).pipe(M(1)).subscribe(me=>{me?this.canBeBoughtChecked=!0:this.router.navigateByUrl("/kosik").then(()=>{})})}}),this.userSvc.user.pipe(A(this.ngUnsubscribe)).subscribe(()=>{let S=this.getSelectedDeliveryAddress();this.mainForm.patchValue({deliveryAddressesOptions:S})}),this.deliveryAddress=this.cartSvc.cart?.deliveryAddress,this.company=this.cartSvc.cart?.company?this.cartSvc.cart.company:this.userSvc.company,this.invoiceAddress=this.cartSvc.cart?.invoiceAddress?this.cartSvc.cart.invoiceAddress:this.userSvc.invoiceAddress,this.user=this.cartSvc.cart?.user?this.cartSvc.cart.user:this.userSvc.user.value,this.withCompany=this.cartSvc.withCompanyEffectiveValue()}ngOnInit(){this.dataSvc.setTitle(`${this.seSvc.settings.shopSeo.ShopName} - ${this.sen["cart-shippay-title"]}`,this.sen["cart-2-desc"]),(!this.cartSvc.cart.cartContent||this.cartSvc.cart.cartContent.length==0)&&this.router.navigateByUrl("/kosik").then(()=>{}),this.createForm(),this.checkMissingBranch(!1)}checkMissingBranch(t){return Ut(this.delPaySvc?.deliveryPayment?.delivery?.carrierService)?this.delPaySvc.deliveryPayment?.delivery?.branch?!0:(this.missingBranch=!0,t&&W.scrollToAnchor(".js-delivery",0),!1):!0}createForm(){let t=this.getSelectedDeliveryAddress();this.mainForm=this.fb.group({cartNote:[this.cartSvc.cart.note,[X.maxLength(1e3)]],deliveryAddressesOptions:[t],withDeliveryAddress:[this.cartSvc.cart.withDeliveryAddress]}),this.mainForm.valueChanges.pipe(A(this.ngUnsubscribe)).subscribe(e=>{e.withDeliveryAddress!=null&&e.withDeliveryAddress!=this.cartSvc.cart.withDeliveryAddress&&this.cartSvc.onWithDeliveryAddressChanged(e.withDeliveryAddress),e.cartNote!=null&&e.cartNote!=this.cartSvc.cart.note&&(this.cartSvc.cart.note=e.cartNote,this.cartSvc.persist(this.cartSvc.defaultPersistMilliseconds))})}withDeliveryAddressKeyDown(t){(t.key==="Enter"||t.code==="Space")&&this.mainForm.patchValue({withDeliveryAddress:!this.mainForm.controls.withDeliveryAddress.value})}ngAfterViewInit(){W.scrollUp(0)}ngOnDestroy(){this.ngUnsubscribe.next(),this.ngUnsubscribe.complete()}getFormValues(){let t=this.mainForm.get("withDeliveryAddress")?.value;if(!this.userContactDataAreValid){this.forceTouchedUserContact=!0,W.scrollToFirstInvalid(null);return}if(this.mainForm.invalid||t&&this.deliveryAddressComponent.addressForm.invalid){t&&this.deliveryAddressComponent.forceTouched(),this.mainForm.markAllAsTouched(),W.scrollToFirstInvalid(null);return}this.cartSvc.cart.invoiceAddress.country=this.seSvc.settings.countries.find(r=>r.id===this.cartSvc.cart.invoiceAddress.countryId)?.name,t?(this.cartSvc.cart.deliveryAddress=this.deliveryAddressComponent.getAddress(),this.cartSvc.cart.deliveryAddress.country=this.seSvc.settings.countries.find(r=>r.id===this.cartSvc.cart.deliveryAddress.countryId)?.name):this.cartSvc.cart.deliveryAddress=null,this.cartSvc.cart.note=this.mainForm.get("cartNote")?.value,this.cartSvc.cart.maxStep=2,ft(this.seSvc.cartMaxStepSessionKey,2),this.cartSvc.cart.withDeliveryAddress=t;let e=this.checkMissingBranch(!0),a=this.cartSvc.cart.delivery!==null&&this.cartSvc.cart.payment!==null;e=e&&a,e&&this.router.navigateByUrl("/kosik/dodaci-udaje").then(()=>{})}showDialog(){this.digestSvc.queryLogin()}onDeliveryAddressChanged(t){t.name=this.deliveryAddress?.name,this.cartSvc.onDeliveryAddressChanged(t)}onClearBranchWarning(){this.missingBranch=!1}isWithDeliveryCheckboxVisible(){let t;return t=!Ut(this.delPaySvc?.deliveryPayment?.delivery?.carrierService),t}deliveryAddressChanged(t){let e=parseInt(t);this.cartSvc.cart.deliveryAddress=this.userSvc.deliveryAddresses?.find(r=>r.id===e),this.deliveryAddress=this.cartSvc.cart.deliveryAddress;let a=this.getSelectedDeliveryAddress();this.mainForm.patchValue({deliveryAddressesOptions:a}),this.cartSvc.onDeliveryAddressChanged(this.cartSvc.cart.deliveryAddress)}companyDataChanged(t){this.cartSvc.onCompanyChanged(t)}contactDataChanged(t){this.cartSvc.onUserChanged(t)}withCompanyChanged(t){this.cartSvc.onWithCompanyChanged(t)}setUserContactDataValid(t){this.userContactDataAreValid=t}invoiceAddressChanged(t){this.cartSvc.onInvoiceAddressChanged(t)}getSelectedDeliveryAddress(){let t={value:-1,data:this.sen["cart-delivery-address-no-preset"],isDisabled:!1,selected:null},e=this.userSvc.deliveryAddresses.map(r=>
7({value:r.id,data:this.getDeliveryAddressName(r),isDisabled:!1,selected:null}));this.userDeliveryAddresses=[t,...e];let a=-1;if(this.cartSvc.cart?.deliveryAddress&&(this.cartSvc.cart?.deliveryAddress?.id??0)>0){let r=this.cartSvc.cart?.deliveryAddress?.id,h=this.userDeliveryAddresses.find(g=>g.value===r);h&&(a=h.value)}return a}getDeliveryAddressName(t){if(t.name)return t.name;let e=t.company?`${t.company},`:"";return`${t.firstName}, ${t.lastName}, ${e} ${t.street}, ${t.zipCode}, ${t.city}`}static{this.\u0275fac=function(e){return new(e||i)(m(P),m(I),m(T),m(R),m(It),m(Nt),m(bt),m(Z))}}static{this.\u0275cmp=C({type:i,selectors:[["ng-component"]],viewQuery:function(e,a){if(e&1&&nt($n,5),e&2){let r;Y(r=J())&&(a.deliveryAddressComponent=r.first)}},standalone:!1,features:[k],decls:20,vars:17,consts:[[1,"cart","js-anchor-cart",3,"formGroup"],[3,"links","cartStep"],[3,"alertType","innerHTML"],[1,"cart__in"],[1,"cart__main"],[1,"cart__title","h1"],[1,"cart-login"],[1,"cart__col","js-delivery"],[3,"clearBranchWarning","cartPrice","branchWarning"],[1,"cart__side"],[3,"classModifier","viewMode"],[1,"cart__alert"],[1,"cart__actions"],[1,"cart__back",3,"routerLink"],["symbolId","arrow-simple"],["type","button",1,"cart__next","btn","btn--large","btn--conversion",3,"click"],["symbolId","user",1,"cart-login__icon"],[1,"cart-login__text"],["href","javascript:void(0);",1,"cart-login__link",3,"click"]],template:function(e,a){e&1&&(o(0,"div",0),_(1,"cmp-cart-step-header",1),x(2,Qn,1,2,"cmp-alert",2),o(3,"div",3)(4,"div",4)(5,"h1",5),d(6),c(),x(7,Zn,7,3,"div",6),o(8,"div",7)(9,"cmp-delivery-payment",8),b("clearBranchWarning",function(){return a.onClearBranchWarning()}),c()()(),o(10,"aside",9),_(11,"cmp-cart-summary",10),c()(),x(12,Yn,1,2,"cmp-alert",2),x(13,Jn,2,2,"div",11),o(14,"div",12)(15,"a",13),_(16,"cmp-svg",14),d(17),c(),o(18,"button",15),b("click",function(){return a.getFormValues()}),d(19),c()()()),e&2&&(p("formGroup",a.mainForm),n(),p("links",mt(15,Kn))("cartStep",2),n(),f(a.delPaySvc.delPayNotAvailableWarning?2:-1),n(4),u(" ",a.sen["cart-shippay-title"]," "),n(),f(a.userLoggedIn?-1:7),n(2),p("cartPrice",a.cartSvc.cart.priceWithoutPaymentAndDeliveryWithVat)("branchWarning",a.missingBranch),n(2),p("classModifier","gray")("viewMode","orderContent"),n(),f(a.missingBranch?12:-1),n(),f(a.cartSvc.cart.delivery===null||a.cartSvc.cart.payment===null?13:-1),n(2),p("routerLink",mt(16,qn)),n(2),u(" ",a.sen["cart-back-to-step1"]," "),n(2),u(" ",a.sen["cart-place-order"]," "))},dependencies:[ct,lt,fa,rt,ae,dt,tt,re],styles:[`.cart-coupon{position:relative}.cart-coupon__toggle{margin-bottom:12px}.cart-coupon__form{display:flex;column-gap:8px}.cart-coupon__input{flex:1}@media screen and (min-width:920px){.cart-coupon__input{width:300px}}.cart-gifts{display:flex;flex-direction:column;row-gap:32px;margin-bottom:32px}.cart-gifts__section{display:flex;flex-direction:column;row-gap:12px}.cart-gifts__title{display:flex;align-items:center;column-gap:8px;font-weight:600}.cart-gifts__title .icon{font-size:8px}.cart-gifts__list{display:grid}@media screen and (max-width:767.98px){.cart-gifts__list{grid-template-columns:repeat(2,1fr);grid-gap:12px}}@media screen and (min-width:768px){.cart-gifts__list{grid-template-columns:repeat(4,1fr);grid-gap:16px}}@media screen and (min-width:1280px){.cart-gifts__list{grid-template-columns:repeat(6,1fr)}}.cart-gifts-item{height:100%}.cart-gifts-item--disabled{opacity:.5}.cart-gifts-item--disabled .cart-gifts-item__label{cursor:auto}.cart-gifts-item:not(.cart-gifts-item--disabled) .cart-gifts-item__label:hover{box-shadow:0 3px 12px #00000040;border-color:transparent}.cart-gifts-item__input{display:none}.cart-gifts-item__input:checked+.cart-gifts-item__label{border-color:#4d9cde;box-shadow:0 3px 12px #00000040}.cart-gifts-item__label{display:flex;flex-direction:column;row-gap:12px;padding:16px;height:100%;background-color:#fff;transition:box-shadow .3s ease,border-color .3s ease;border-radius:8px;box-shadow:0 1px 4px #00000014;cursor:pointer}.cart-gifts-item__image{display:flex;align-items:center;justify-content:center}.cart-gifts-item__image picture{display:flex;align-items:center;justify-content:center;aspect-ratio:1/1}.cart-gifts-item__image picture img{width:100%;height:100%;object-fit:contain}.cart-gifts-item__content{display:flex;flex-direction:column;justify-content:space-between;row-gap:8px;flex:1}.cart-gifts-item__title{line-height:1.5;text-decoration:none;font-weight:500;color:#2b3848}.cart-gifts-item__prices{display:flex;flex-direction:column;gap:4px}.cart-gifts-item__price{margin-top:auto;color:#2b8800;font-weight:600}.cart-login{display:flex;flex-direction:row;align-items:center;column-gap:16px;margin-bottom:32px;padding:0 16px;min-height:60px;background-color:#fff;border:1px solid #D0D6DE;border-radius:6px;box-shadow:0 2px 6px #2b38481a}.cart-login__icon{flex-shrink:0}.cart-login__icon .icon{display:flex;width:24px;height:24px;color:#6e757c}.cart-login__icon .icon svg{width:100%;height:100%}.cart-login__text{font-weight:500}.cart-login__link{color:#cb2c30;text-decoration:underline}.cart-login__link:hover{text-decoration:none}.cart-price{display:flex;justify-content:flex-end;margin-bottom:30px}.cart-price__in{display:flex;flex-direction:column;gap:4px;width:100%;padding:20px 24px;background-color:#f5f7f9;border-radius:6px}@media screen and (min-width:768px){.cart-price__in{max-width:460px}}.cart-price__item{display:flex;align-items:center;justify-content:space-between;column-gap:16px}.cart-price__item:first-child .cart-price__label{font-size:18px;font-weight:700;line-height:26px;color:#000}.cart-price__item:first-child cmp-price .price__value{font-size:18px;font-weight:700;line-height:26px;color:#000}.cart-price__item:last-child .cart-price__label{font-size:14px;font-weight:400;line-height:26px;color:#6b6f73}.cart-price__item:last-child cmp-price .price__value{font-size:14px;font-weight:400;line-height:26px;color:#6b6f73}.cart-table{margin-bottom:32px}.cart-table__head{display:none}@media screen and (min-width:1280px){.cart-table__head{display:flex;align-items:center;column-gap:20px;padding:12px 20px;border-bottom:1px solid #D9E0EC;font-size:13px;font-weight:500;color:#6e757c}}@media screen and (min-width:1440px){.cart-table__head{column-gap:40px}}.cart-table__col--product{flex:1;min-width:1px}
7.cart-table__col--availability{width:200px;text-align:center}.cart-table__col--unit-price{width:110px;text-align:right}.cart-table__col--amount{width:120px;text-align:center}.cart-table__col--price{width:110px;text-align:right}.cart-table__col--remove{width:20px}.cart-table-item{display:flex;align-items:center;flex-wrap:wrap;position:relative;padding:16px 16px 16px 96px;border-bottom:1px solid #D9E0EC}@media screen and (max-width:767.98px){.cart-table-item{gap:8px 12px;padding:24px 16px 24px 64px}}@media screen and (min-width:768px){.cart-table-item{gap:12px;padding:20px}}@media screen and (min-width:1280px){.cart-table-item{column-gap:20px}}@media screen and (min-width:1440px){.cart-table-item{column-gap:40px}}@media screen and (max-width:767.98px){.cart-table-item--coupon{flex-direction:row;flex-wrap:nowrap}}.cart-table-item__main{display:flex}@media screen and (max-width:767.98px){.cart-table-item__main{align-items:flex-start;column-gap:8px;width:calc(100% + 48px);margin-left:-48px}}@media screen and (min-width:768px){.cart-table-item__main{align-items:center;column-gap:12px;flex:1;width:auto;min-width:1px;margin-left:0}}.cart-table-item__image{flex-shrink:0}@media screen and (max-width:767.98px){.cart-table-item__image{width:40px}}@media screen and (min-width:768px){.cart-table-item__image{width:80px}}.cart-table-item__image picture{display:block}.cart-table-item__image img{border-radius:6px}.cart-table-item__content{display:flex;flex-direction:column;flex:1;min-width:1px;row-gap:8px}.cart-table-item__title{font-size:16px;font-weight:500;line-height:28px;color:#2b3848}.cart-table-item__title:hover{text-decoration:none}.cart-table-item__code{font-size:13px;font-weight:500;line-height:18px;color:#6e757c}.cart-table-item__availability--desktop{width:200px}.cart-table-item__availability--desktop .availability--simple{align-items:center}@media screen and (max-width:1279.98px){.cart-table-item__availability--desktop{display:none}}@media screen and (max-width:1279.98px){.cart-table-item__availability--mobile{font-size:13px}}@media screen and (min-width:1280px){.cart-table-item__availability--mobile{display:none}}.cart-table-item__unit{font-size:12px;font-weight:600;line-height:1.4;color:#6e757c}.cart-table-item__store-availability{margin-top:4px;font-size:14px;font-weight:400;line-height:22px;color:#2b3848}@media screen and (min-width:1280px){.cart-table-item__store-availability{text-align:center}}.cart-table-item__store-availability span{text-decoration:underline}@media screen and (max-width:479.98px){.cart-table-item__unit-price{width:100%}}@media screen and (min-width:480px){.cart-table-item__unit-price{width:calc((100% - 24px)/2)}}@media screen and (max-width:767.98px){.cart-table-item__unit-price .price--stacked{flex-direction:row;align-items:baseline;gap:4px}.cart-table-item__unit-price .price--stacked .price__value,.cart-table-item__unit-price .price--stacked .price__vat{line-height:unset}}@media screen and (min-width:768px){.cart-table-item__unit-price{width:110px;text-align:right}}.cart-table-item__amount{display:flex;align-items:center;column-gap:4px}@media screen and (max-width:479.98px){.cart-table-item__amount{width:100%}}@media screen and (min-width:480px){.cart-table-item__amount{width:calc((100% - 24px)/2);justify-content:flex-end}}@media screen and (min-width:768px){.cart-table-item__amount{width:120px;justify-content:center}}@media screen and (max-width:479.98px){.cart-table-item__price{width:100%}}@media screen and (min-width:480px){.cart-table-item__price{text-align:right;width:100%}}@media screen and (max-width:767.98px){.cart-table-item__price{display:flex;justify-content:space-between;align-items:center}.cart-table-item__price .price--stacked{flex-direction:row;align-items:baseline;gap:4px}.cart-table-item__price .price--stacked .price__value,.cart-table-item__price .price--stacked .price__vat{line-height:unset}}@media screen and (min-width:768px){.cart-table-item__price{width:110px;text-align:right}}.cart-table-item__price strong{font-size:16px;font-weight:600;line-height:28px}.cart-table-item__price--coupon{width:fit-content}.cart-table-item__price--coupon strong{white-space:nowrap}.cart-table-item__vat-label{display:block;font-size:13px;font-weight:400;line-height:18px;color:#6e757c}.cart-table-item__remove{color:#6e757c;cursor:pointer}@media screen and (max-width:1279.98px){.cart-table-item__remove{position:absolute;right:0;top:0}.cart-table-item__remove a{display:flex;align-items:center;justify-content:center;width:32px;height:32px}}@media screen and (min-width:1280px){.cart-table-item__remove{width:20px;text-align:right}.cart-table-item__remove a{display:flex}}.cart-table-item__bottom{width:calc(100% + 80px);margin-left:-80px}@media screen and (min-width:480px){.cart-table-item__bottom{width:calc(100% + 100px);margin-left:-100px}}@media screen and (min-width:768px){.cart-table-item__bottom{width:100%;margin-left:0}}.cart-table-item__bottom .alert{margin:0}.cart-table-item__label{margin-bottom:4px;font-size:12px;font-weight:500;color:#6e757c}@media screen and (max-width:767.98px){.cart-table-item__label--total{font-size:14px}}@media screen and (min-width:1280px){.cart-table-item__label{display:none}}
7.cart-table-item__availability .availability .availability__text{font-size:16px}.cart-table-item__store-availability{margin-top:4px;font-size:16px}.cart-table-item__store-availability a{cursor:pointer;text-decoration:underline}.cart-table-item__store-availability a:hover,.cart-table-item__store-availability a:focus{text-decoration:none}.cart-table-coupon{color:#a56830}.cart-table-coupon cmp-price .price__value,.cart-table-coupon cmp-price .price__vat{font-size:inherit;font-weight:inherit;line-height:inherit;color:inherit}@media screen and (min-width:1280px){.cart{margin:0 20px}}.cart__header{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px 16px;margin-bottom:32px}.cart__header .cart__title{margin-bottom:0}.cart__title,.cart .table{margin-bottom:32px}.cart__in{display:grid;grid-template-columns:1fr;grid-gap:32px;margin-bottom:32px}@media screen and (min-width:920px){.cart__in{grid-template-columns:1fr auto;align-items:start}}@media screen and (min-width:1280px){.cart__in{grid-template-columns:1fr 440px}}.cart__main--step3 .user-data__section{margin-bottom:0;padding-bottom:0;border:none}.cart__main--step3 .user-data__wrapper{padding-bottom:32px;margin-bottom:32px;border-bottom:1px solid #D0D6DE}@media screen and (min-width:920px){.cart__main--step3 .user-data__wrapper{max-width:580px}}@media screen and (min-width:600px){.cart__main--step3 .user-data__item{display:grid;align-items:center;grid-template-columns:120px 1fr;gap:40px}}@media screen and (min-width:920px){.cart__main--step3 .user-data__item .form-input{min-width:300px}}@media screen and (min-width:1280px){.cart__main--step3 .user-data__item .form-input{min-width:340px}}@media screen and (min-width:920px){.cart__side{position:sticky;top:80px}}@media screen and (min-width:1280px){.cart__side{top:24px}}.cart__side--thx{position:relative}.cart__actions{display:flex;flex-direction:column;align-items:center;row-gap:20px}@media screen and (min-width:768px){.cart__actions{flex-direction:row;justify-content:space-between;align-items:baseline;column-gap:20px}}.cart__actions-btns{display:flex;column-gap:80px}@media screen and (max-width:919.98px){.cart__actions-btns{column-gap:20px}}@media screen and (max-width:767.98px){.cart__actions-btns{flex-direction:column;align-items:center;row-gap:20px;width:100%}.cart__actions-btns .btn{width:100%}}.cart__actions-b2b{display:flex;column-gap:20px}@media screen and (max-width:767.98px){.cart__actions-b2b{flex-direction:column;align-items:center;row-gap:20px;width:100%}.cart__actions-b2b .btn{width:100%}}.cart__back{display:inline-flex;align-items:center;column-gap:4px;color:#cb2c30}.cart__back .icon{width:8px;transform:rotate(-180deg)}.cart__back:hover{text-decoration:none}.cart__next{margin-bottom:16px}@media screen and (max-width:767.98px){.cart__next{width:100%}}@media screen and (min-width:768px){.cart__next{margin-bottom:0}}.cart__next--finish{flex-direction:column}.cart__next--finish span{font-size:10px}.cart__alert{margin-bottom:20px}@media screen and (min-width:1280px){.cart__alert{margin-bottom:32px}}.cart__notice{display:flex;justify-content:flex-end}
8`],encapsulation:2})}}return i})();var ce=(()=>{class i{static{this.\u0275fac=function(e){return new(e||i)}}static{this.\u0275mod=ut({type:i})}static{this.\u0275inj=ht({imports:[kt,Xt,ee]})}}return i})();function Xn(i,l){if(i&1&&_(0,"cmp-val-msg",7),i&2){let t=s(2);p("msg",t.sen["address-invalid-name"])}}function tr(i,l){if(i&1&&_(0,"cmp-val-msg",7),i&2){let t=s(2);p("msg",t.sen["address-invalid-company"])}}function er(i,l){if(i&1&&_(0,"cmp-val-msg",7),i&2){let t=s(2);p("msg",t.sen["address-invalid-streetname"])}}function ir(i,l){if(i&1&&_(0,"cmp-val-msg",7),i&2){let t=s(2);p("msg",t.sen["address-invalid-city"])}}function ar(i,l){if(i&1&&_(0,"cmp-val-msg",7),i&2){let t=s(2);p("msg",t.sen["address-invalid-zipcode"])}}function nr(i,l){if(i&1&&_(0,"cmp-val-msg",7),i&2){let t=s(2);p("msg",t.sen["address-invalid-country"])}}function rr(i,l){if(i&1&&_(0,"cmp-val-msg",7),i&2){let t=s(2);p("msg",t.sen["address-invalid-contact-name"])}}function or(i,l){if(i&1&&_(0,"cmp-val-msg",7),i&2){let t=s(2);p("msg",t.sen["address-invalid-contact-phone"])}}function cr(i,l){if(i&1){let t=w();o(0,"div",0)(1,"div",1)(2,"div",2)(3,"label",3),d(4),o(5,"span"),d(6,"*"),c()(),o(7,"div",4),_(8,"input",5),o(9,"div",6),x(10,Xn,1,1,"cmp-val-msg",7),c()()(),o(11,"div",2)(12,"label",8),d(13),c(),o(14,"div",4),_(15,"input",9),o(16,"div",6),x(17,tr,1,1,"cmp-val-msg",7),c()()(),o(18,"div",2)(19,"label",10),d(20),o(21,"span"),d(22,"*"),c()(),o(23,"div",4),_(24,"input",11),o(25,"div",6),x(26,er,1,1,"cmp-val-msg",7),c()()(),o(27,"div",2)(28,"label",12),d(29),o(30,"span"),d(31,"*"),c()(),o(32,"div",4),_(33,"input",13),o(34,"div",6),x(35,ir,1,1,"cmp-val-msg",7),c()()(),o(36,"div",2)(37,"label",14),d(38),o(39,"span"),d(40,"*"),c()(),o(41,"div",4),_(42,"input",15),o(43,"div",6),x(44,ar,1,1,"cmp-val-msg",7),c()()(),o(45,"div",2)(46,"label",16),d(47),o(48,"span"),d(49,"*"),c()(),o(50,"div",4),_(51,"cmp-select-box",17),o(52,"div",6),x(53,nr,1,1,"cmp-val-msg",7),c()()(),o(54,"div",2)(55,"label",18),d(56),c(),o(57,"div",4),_(58,"
8input",19),c()(),_(59,"hr",20),o(60,"div",2)(61,"div",21),d(62),c()(),o(63,"div",2)(64,"label",22),d(65),o(66,"span"),d(67,"*"),c()(),o(68,"div",4),_(69,"input",23),o(70,"div",6),x(71,rr,1,1,"cmp-val-msg",7),c()()(),o(72,"div",2)(73,"label",24),d(74),o(75,"span"),d(76,"*"),c()(),o(77,"div",4),_(78,"input",25),o(79,"div",6),x(80,or,1,1,"cmp-val-msg",7),c()()()()(),o(81,"div",26)(82,"button",27),b("click",function(){v(t);let a=s();return y(a.save())}),d(83),c(),o(84,"a",28),b("click",function(){v(t);let a=s();return y(a.cancel())}),d(85),c()()}if(i&2){let t,e,a,r,h,g,V,j,S=s();p("formGroup",S.form),n(4),u(" ",S.sen["address-name"],":"),n(6),f((t=S.form.get("name"))!=null&&t.touched&&((t=S.form.get("name"))!=null&&t.invalid)?10:-1),n(3),u(" ",S.sen["address-company"],": "),n(4),f((e=S.form.get("company"))!=null&&e.touched&&((e=S.form.get("company"))!=null&&e.invalid)?17:-1),n(3),u(" ",S.sen["address-street"],":"),n(6),f((a=S.form.get("street"))!=null&&a.touched&&((a=S.form.get("street"))!=null&&a.invalid)?26:-1),n(3),u(" ",S.sen["address-city"],":"),n(6),f((r=S.form.get("city"))!=null&&r.touched&&((r=S.form.get("city"))!=null&&r.invalid)?35:-1),n(3),u(" ",S.sen["address-zipcode"],":"),n(6),f((h=S.form.get("zipCode"))!=null&&h.touched&&((h=S.form.get("zipCode"))!=null&&h.invalid)?44:-1),n(3),u(" ",S.sen["address-country"],":"),n(4),p("items",S.countries),n(2),f((g=S.form.get("countryId"))!=null&&g.touched&&((g=S.form.get("countryId"))!=null&&g.invalid)?53:-1),n(3),u(" ",S.sen["address-note"]," "),n(6),u(" ",S.sen["account-delivery-address-contact"]," "),n(3),u(" ",S.sen["address-contact-name"]),n(6),f((V=S.form.get("contactName"))!=null&&V.touched&&((V=S.form.get("contactName"))!=null&&V.invalid)?71:-1),n(3),u(" ",S.sen["address-contact-phone"]),n(6),f((j=S.form.get("contactPhone"))!=null&&j.touched&&((j=S.form.get("contactPhone"))!=null&&j.invalid)?80:-1),n(2),p("disabled",S.isSaveButtonDisabled),n(),u(" ",S.sen["app-save"]," "),n(2),u(" ",S.sen["app-close"]," ")}}function lr(i,l){if(i&1){let t=w();_(0,"cmp-alert",29),o(1,"div",30)(2,"button",31),b("click",function(){v(t);let a=s();return y(a.close())}),d(3),c()()}if(i&2){let t=s();p("alertType","success")("message",t.sen["address-edit-success"]),n(3),u(" ",t.sen["app-close"]," ")}}var va=(()=>{class i extends E{constructor(t,e,a,r,h,g,V){super(t,e),this.dataSvc=t,this.seSvc=e,this.userSvc=a,this.fb=r,this.http=h,this.fcSvc=g,this.dialogRef=V,this.countries=[],this.isSaveButtonDisabled=!1,this.addressSaved=!1,this.ngUnsubscribe=new z,this.companyId=null,this.zipCodePattern=this.seSvc.settings.validationPatterns.zipCodeCz,this.countries=this.seSvc.settings.countries.map(j=>({value:j.id,data:j.name,isDisabled:!1,selected:!1})),this.userSvc.user.pipe(A(this.ngUnsubscribe)).subscribe(()=>{this.companyId=this.userSvc.user?.value?.companyId??null}),this.createForm()}ngAfterViewInit(){try{$("#da-name").focus()}catch(t){}}ngOnDestroy(){this.ngUnsubscribe.next(),this.ngUnsubscribe.complete()}createForm(){this.form=this.fb.group({name:[null,[X.required]],company:[null,[X.maxLength(100)]],street:[null,[X.required]],city:[null,[X.required]],zipCode:[null,[X.required,X.pattern(this.zipCodePattern)]],countryId:[326,[X.required]],addressNote:[null],contactName:[null,[X.required]],contactPhone:[null,[X.required]]})}save(){if(this.form.invalid){this.form.markAllAsTouched(),W.scrollToFirstInvalid(null);return}this.isSaveButtonDisabled=!0,this.fcSvc.executeCaptcha("user_account","delivery_address_dialog.save").pipe(A(this.ngUnsubscribe)).subscribe(t=>{t.success?this.doSave(t.secret):this.isSaveButtonDisabled=!1})}doSave(t){let e=this.buildAddress(),a=new Vi({"Captcha-Secret":t});this.http.post(`api/${Qt}/account/save-delivery-address`,e,{headers:a}).pipe(M(1)).subscribe({next:r=>{this.isSaveButtonDisabled=!1,r>0&&(this.userSvc.reloadUserContactInfo().pipe(M(1)).subscribe(),this.addressSaved=!0)},error:()=>{this.isSaveButtonDisabled=!1}})}buildAddress(){let t=this.form.value,a=(t.contactName??"").trim().split(/\s+/).filter(Boolean),r=a.length?a[0]:null,h=a.length>1?a.slice(1).join(" "):null;return{id:0,name:t.name,company:t.company,street:t.street,city:t.city,zipCode:t.zipCode,countryId:t.countryId,addressNote:t.addressNote,firstName:r,lastName:h,contactPhone:t.contactPhone,addressType:"Delivery",writtenInAccountancy:!1,companyId:this.companyId}}cancel(){this.dialogRef.close(null)}close(){this.dialogRef.close(!0)}static{this.\u0275fac=function(e){return new(e||i)(m(P),m(I),m(Z),m(It),m(Mt),m(Hi),m(Pt))}}static{this.\u0275cmp=C({type:i,selectors:[["cmp-delivery-address-dialog"]],standalone:!1,features:[
8k],decls:2,vars:2,consts:[[1,"modal-form",3,"formGroup"],[1,"modal-form__in","modal-form__in--one-column"],[1,"modal-form__item","modal-form__item--grid"],["for","da-name",1,"form-label"],[1,"modal-form__value"],["type","text","formControlName","name","id","da-name",1,"form-input"],[1,"validation"],[3,"msg"],["for","da-company",1,"form-label"],["type","text","formControlName","company","id","da-company",1,"form-input"],["for","da-street",1,"form-label"],["type","text","formControlName","street","id","da-street",1,"form-input"],["for","da-city",1,"form-label"],["type","text","formControlName","city","id","da-city",1,"form-input"],["for","da-zip",1,"form-label"],["type","text","formControlName","zipCode","id","da-zip",1,"form-input"],["for","da-country",1,"form-label"],["formControlName","countryId","id","da-country",3,"items"],["for","da-note",1,"form-label"],["type","text","formControlName","addressNote","id","da-note",1,"form-input"],[1,"modal-form__divider"],[1,"modal-form__section-title"],["for","da-contact-name",1,"form-label"],["type","text","formControlName","contactName","id","da-contact-name",1,"form-input"],["for","da-phone",1,"form-label"],["type","text","formControlName","contactPhone","id","da-phone",1,"form-input"],[1,"modal__actions","modal__actions--col"],["type","button",1,"btn","btn--primary","btn--medium",3,"click","disabled"],["href","javascript:void(0);",1,"modal__cancel-link",3,"click"],[3,"alertType","message"],[1,"modal__actions"],["type","button",1,"btn","btn--outline","btn--medium",3,"click"]],template:function(e,a){e&1&&(x(0,cr,86,23),x(1,lr,4,3)),e&2&&(f(a.addressSaved?-1:0),n(),f(a.addressSaved?1:-1))},dependencies:[Dt,ot,ct,lt,gt,Yt,Jt,dt],encapsulation:2})}}return i})();var sr=(i,l)=>l.id;function dr(i,l){if(i&1&&(o(0,"p"),d(1),c()),i&2){let t=s();n(),q("",t.sen["cart-ico"],": ",t.company.ic)}}function pr(i,l){if(i&1&&(o(0,"p"),d(1),c()),i&2){let t=s();n(),q("",t.sen["cart-dic"],": ",t.company.dic)}}function mr(i,l){if(i&1&&d(0),i&2){let t=s();u(" - ",t.user.phone," ")}}function _r(i,l){if(i&1&&(o(0,"p",25)(1,"strong"),d(2),c(),d(3),c()),i&2){let t=s().$implicit,e=s(2);n(2),D(e.sen["cart-address-note"]),n(),u(" ",t.addressNote," ")}}function hr(i,l){if(i&1){let t=w();o(0,"div",17),b("click",function(){let a=v(t).$implicit,r=s(2);return y(r.selectDeliveryAddress(a))}),o(1,"div",18)(2,"input",19),b("change",function(){let a=v(t).$implicit,r=s(2);return y(r.selectDeliveryAddress(a))}),c()(),o(3,"div",20)(4,"p",21),d(5),c(),o(6,"div",22)(7,"div",23)(8,"p",24),d(9),c(),o(10,"p"),d(11),c(),x(12,_r,4,2,"p",25),c(),o(13,"div",26)(14,"p",27),d(15),c(),o(16,"p"),d(17),c()()()()()}if(i&2){let t=l.$implicit,e=s(2);O("b2b-address-tile--selected",t.id===e.selectedDeliveryAddressId),n(2),p("value",t.id)("checked",t.id===e.selectedDeliveryAddressId),it("aria-label",t.name),n(3),D(t.name),n(4),D(t.company),n(2),Ze(" ",t.street,", ",t.zipCode," ",t.city,", ",t.country," "),n(),f(t.addressNote?12:-1),n(3),D(e.sen["cart-contact-person"]),n(2),D(e.getContactPersonStr(t))}}function ur(i,l){if(i&1){let t=w();o(0,"div",28),b("click",function(){v(t);let a=s(2);return y(a.showAllAddresses=!a.showAllAddresses)}),o(1,"div"),d(2),_(3,"cmp-svg",29),c()()}if(i&2){let t=s(2);O("b2b-addresses__actions--active",t.showAllAddresses),n(2),u(" ",t.showAllAddresses?t.sen["detail-show-less"]:t.sen["detail-show-more"]," ")}}function xr(i,l){if(i&1){let t=w();o(0,"button",30),b("click",function(){v(t);let a=s(2);return y(a.openNewAddressDialog())}),d(1),c()}if(i&2){let t=s(2);n(),u(" ",t.sen["cart-add-delivery-address"]," ")}}function fr(i,l){if(i&1&&(o(0,"section",3)(1,"h2",4),d(2),c(),o(3,"div",13),B(4,hr,18,14,"div",14,sr),c(),x(6,ur,4,3,"div",15),x(7,xr,2,1,"button",16),c()),i&2){let t=s();n(2),D(t.sen["cart-choose-delivery-place"]),n(2),L(t.visibleAddresses),n(2),f(t.deliveryAddresses.length>t.addressPageSize?6:-1),n(),f(t.userSvc.canEditDeliveryAddresses?7:-1)}}function gr(i,l){if(i&1&&_(0,"cmp-val-msg",12),i&2){let t=s();p("msg",t.sen["cart-email-maxlength"])}}var le=(()=>{class i extends E{get visibleAddresses(){return this.showAllAddresses?this.deliveryAddresses:this.deliveryAddresses.slice(0,this.addressPageSize)}get isPersonalPickup(){return this.cartSvc.cart?.delivery?.carrierService?.code==="internal_personal_pickup"}constructor(t,e,a,r,h,g){super(t,e),this.dataSvc=t,this.seSvc=e,this.userSvc=a,this.cartSvc=r,this.fb=h,this.dialogSvc=g,this.ngUnsubscribe=new z,this.deliveryAddresses=[],this.selectedDeliveryAddressId=null,this.addressPageSize=5,this.showAllAddresses=!1,this.isSubmitting=!1,this.userSvc.user.pipe(A(this.ngUnsubscribe)).subscribe(()=>{this.loadUserData()})}ngOnInit(){this.loadUserData(),this.createMainForm(),W.scrollUp(0)}ngOnDestroy(){this.ngUnsubscribe.next(),this.ngUnsubscribe.complete()}loadUserData(){if(this.company=this.cartSvc.cart?.company??this.userSvc.company,this.invoiceAddress=this.cartSvc.cart?.invoiceAddress??this.userSvc.invoiceAddress,this.user=this.cartSvc.cart?.user??this.userSvc.user.value,this.deliveryAddresses=this.userSvc.deliveryAddresses??[],this.isPersonalPickup){this.clearDeliveryAddress();return}if(!this.selectedDeliveryAddressId){let t=this.cartSvc.cart?.deliveryAddress?.id;t&&this.deliveryAddresses.some(e=>e.id===t)?this.selectedDeliveryAddressId=t:this.deliveryAddresses.length&&(this.selectedDeliveryAddressId=this.deliveryAddresses[0].id,this.cartSvc.onDeliveryAddressChanged(this.deliveryAddresses[0]))}}createMainForm(){this.mainForm=this.fb.group({cartNote:[this.cartSvc.cart?.note??"",[X.maxLength(1e3)]]}),this.mainForm.valueChanges.pipe(A(this.ngUnsubscribe)).subscribe(t=>{t.cartNote!=null&&t.cartNote!==this.cartSvc.cart?.note&&(this.cartSvc.cart.note=t.cartNote,this.cartSvc.persist(this.cartSvc.defaultPersistMilliseconds))})}selectDeliveryAddress(t){this.selectedDeliveryAddressId=t.id,this.cartSvc.onDeliveryAddressChanged(t)}openNewAddressDialog(){let t={data:null,cssClassModifier:"address-edit-modal",isCloseAble:!0,title:this.seSvc.sen["delivery-address-add"]};this.dialogSvc.open(va,t).afterClosed.pipe(M(1)).subscribe(a=>{a&&this.loadUserData()})}
8triggerSubmit(){if(this.mainForm.invalid){this.mainForm.markAllAsTouched(),W.scrollToFirstInvalid(null);return}if(!this.isPersonalPickup&&!this.selectedDeliveryAddressId){W.scrollToFirstInvalid(null);return}this.isPersonalPickup&&this.clearDeliveryAddress(),!this.isSubmitting&&(this.isSubmitting=!0,this.cartSvc.cart.company=this.company,this.cartSvc.cart.invoiceAddress=this.invoiceAddress,this.cartSvc.cart.user=this.user,this.cartSvc.cart.withCompany=!!this.company,this.cartSvc.cart.note=this.mainForm.get("cartNote")?.value,this.cartSvc.cart.maxStep=3,ft(this.seSvc.cartMaxStepSessionKey,3),this.cartSvc.sendOrderAndHandleResult().pipe(_t(()=>{this.isSubmitting=!1})).subscribe())}clearDeliveryAddress(){this.selectedDeliveryAddressId=null,this.cartSvc.cart.deliveryAddress=null,this.cartSvc.cart.withDeliveryAddress=!1}getContactPersonStr(t){let e=[t.firstName,t.lastName].filter(Boolean).join(" "),a=t.contactPhone;return[e,a].filter(Boolean).join(" - ")}static{this.\u0275fac=function(e){return new(e||i)(m(P),m(I),m(Z),m(T),m(It),m(Zt))}}static{this.\u0275cmp=C({type:i,selectors:[["cmp-cart-step3-b2b"]],features:[k],decls:27,vars:20,consts:[[1,"cart__main","cart__main--step3",3,"formGroup"],[1,"cart__title","h1"],[1,"cart__col","cart__col--full"],[1,"b2b-section","b2b-section--border"],[1,"b2b-section__title"],[1,"b2b-infobox"],[1,"b2b-infobox__left"],[1,"b2b-infobox__company"],[1,"b2b-infobox__right"],[1,"b2b-infobox__contact-label"],[1,"b2b-section"],["formControlName","cartNote",1,"form-textarea","b2b-textarea",3,"placeholder","id"],[3,"msg"],[1,"b2b-addresses"],[1,"b2b-address-tile",3,"b2b-address-tile--selected"],[1,"b2b-addresses__actions",3,"b2b-addresses__actions--active"],["type","button",1,"btn","btn--secondary","btn--outline","btn--medium","b2b-add-address-btn"],[1,"b2b-address-tile",3,"click"],[1,"b2b-address-tile__radio"],["type","radio","name","deliveryAddress",3,"change","value","checked"],[1,"b2b-address-tile__content"],[1,"b2b-address-tile__name"],[1,"b2b-address-tile__body"],[1,"b2b-address-tile__addr"],[1,"b2b-address-tile__company"],[1,"b2b-address-tile__note"],[1,"b2b-address-tile__contact"],[1,"b2b-address-tile__contact-label"],[1,"b2b-addresses__actions",3,"click"],["symbolId","arrow-simple"],["type","button",1,"btn","btn--secondary","btn--outline","btn--medium","b2b-add-address-btn",3,"click"]],template:function(e,a){e&1&&(o(0,"div",0)(1,"h1",1),d(2),c(),o(3,"div",2)(4,"section",3)(5,"h2",4),d(6),c(),o(7,"div",5)(8,"div",6)(9,"p",7),d(10),c(),o(11,"p"),d(12),c(),x(13,dr,2,2,"p"),x(14,pr,2,2,"p"),c(),o(15,"div",8)(16,"p",9),d(17),c(),o(18,"p"),d(19),x(20,mr,1,1),c()()()(),x(21,fr,8,3,"section",3),o(22,"section",10)(23,"h2",4),d(24),c(),_(25,"textarea",11),x(26,gr,1,1,"cmp-val-msg",12),c()()()),e&2&&(p("formGroup",a.mainForm),n(2),u(" ",a.sen["cart-delivery-info"]," "),n(4),D(a.sen["cart-billing-info"]),n(4),D(a.company==null?null:a.company.name),n(2),Ze(" ",a.invoiceAddress==null?null:a.invoiceAddress.street,", ",a.invoiceAddress==null?null:a.invoiceAddress.zipCode," ",a.invoiceAddress==null?null:a.invoiceAddress.city,", ",a.invoiceAddress==null?null:a.invoiceAddress.country," "),n(),f(a.company!=null&&a.company.ic?13:-1),n(),f(a.company!=null&&a.company.dic?14:-1),n(3),D(a.sen["cart-contact-person"]),n(2),q(" ",a.user==null?null:a.user.firstName," ",a.user==null?null:a.user.lastName," "),n(),f(a.user!=null&&a.user.phone?20:-1),n(),f(a.isPersonalPickup?-1:21),n(3),D(a.sen["cart-note"]),n(),p("placeholder",a.sen["cart-note"])("id","cartNote"),it("aria-label",a.sen["cart-note"]),n(),f(a.mainForm.controls.cartNote.hasError("maxlength")&&a.mainForm.controls.cartNote.touched?26:-1))},dependencies:[Vt,Dt,ot,ct,jt,lt,gt,ce,te,Yt,qt,At,tt],styles:[`.cart__col--full{width:100%}.b2b-section{margin-bottom:32px}.b2b-section--border{border-bottom:1px solid #D9E0EC;padding-bottom:32px}.b2b-section__title{font-size:18px;margin-bottom:20px}.b2b-divider{border:none;border-top:1px solid #3A3A3A;margin-bottom:32px}.b2b-infobox{display:grid;grid-template-columns:1fr;gap:16px;padding:28px 32px;border-radius:6px;background-color:#f5f7f9}@media screen and (min-width:600px){.b2b-infobox{grid-template-columns:2fr 1fr}}.b2b-infobox p{margin:0;line-height:1.6;font-size:14px}.b2b-infobox__company,.b2b-infobox__contact-label{font-weight:700;font-size:14px!important;margin-bottom:4px!important}@media screen and (min-width:600px){.b2b-infobox__right{text-align:left;white-space:nowrap}}.b2b-addresses{display:flex;flex-direction:column;gap:12px;margin-bottom:20px}.b2b-addresses__actions{display:flex;align-items:center;margin-bottom:20px}.b2b-addresses__actions:before,.b2b-addresses__actions:after{flex:1;content:"";height:1px;background-color:#d9e0ec}.b2b-addresses__actions>div{display:flex;align-items:center;column-gap:8px;padding:0 16px;cursor:pointer;font-weight:500}.b2b-addresses__actions>div .icon{width:8px;transform:rotate(90deg)}.b2b-addresses__actions--active>div .icon{transform:rotate(-90deg)}.b2b-address-tile{display:flex;align-items:flex-start;gap:16px;padding:28px 32px;border:1px solid #D9E0EC;border-radius:6px;cursor:pointer;transition:border-color .15s ease}.b2b-address-tile:hover{box-shadow:0 0 10px #d9e0ec}.b2b-address-tile--selected{border-color:#2b3848}.b2b-address-tile__radio{padding-top:2px;flex-shrink:0}.b2b-address-tile__radio input[type=radio]{width:20px;height:20px;cursor:pointer;appearance:none;-webkit-appearance:none;border:1.5px solid #D0D6DE;border-radius:50%;background-color:#fff;flex-shrink:0}.b2b-address-tile__radio input[type=radio]:checked{background-color:#2b3848;border-color:#2b3848;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 8'%3E%3Cpath d='M1 4l2.5 2.5L9 1' stroke='white' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-size:12px;background-repeat:no-repeat;background-position:center}.b2b-address-tile__content{flex:1;min-width:0}.b2b-address-tile__name{font-weight:700;font-size:14px;margin:0 0 8px}.b2b-address-tile__body{display:grid;grid-template-columns:2fr 1fr;gap:12px}@media screen and (min-width:600px){.b2b-address-tile__body{grid-template-columns:1fr auto}}.b2b-address-tile__body p{margin:0;font-size:14px;line-height:1.6}.b2b-address-tile__company{font-weight:600;margin-bottom:4px!important}.b2b-address-tile__note{margin-top:8px!important}.b2b-address-tile__contact-label{font-weight:700;margin-bottom:4px!important}@media screen and (min-width:600px){.b2b-address-tile__contact{text-align:left;white-space:nowrap}}.b2b-address-tile__contact p{margin:0;font-size:14px;line-height:1.6}.b2b-add-address-btn{margin-top:8px}@media screen and (max-width:599.98px){.b2b-add-address-btn{width:100%}}.b2b-textarea{width:100%;min-height:100px;resize:vertical}.b2b-policy{font-size:14px;color:var(--supplement-text);margin-bottom:12px}.b2b-policy a{color:#2b3848;text-decoration:underline}.cart__next-wrap{display:flex;flex-direction:column;align-items:flex-end;
8gap:8px}.b2b-modal-cancel{display:block;text-align:center;color:#cb2c30;margin-top:8px;font-size:14px}.b2b-modal-cancel:hover{text-decoration:underline}.b2b-address-saved{display:flex;flex-direction:column;align-items:center;gap:20px;padding:24px;text-align:center}.b2b-address-saved p{color:#2b8800;font-weight:600}
9`,`.cart-coupon{position:relative}.cart-coupon__toggle{margin-bottom:12px}.cart-coupon__form{display:flex;column-gap:8px}.cart-coupon__input{flex:1}@media screen and (min-width:920px){.cart-coupon__input{width:300px}}.cart-gifts{display:flex;flex-direction:column;row-gap:32px;margin-bottom:32px}.cart-gifts__section{display:flex;flex-direction:column;row-gap:12px}.cart-gifts__title{display:flex;align-items:center;column-gap:8px;font-weight:600}.cart-gifts__title .icon{font-size:8px}.cart-gifts__list{display:grid}@media screen and (max-width:767.98px){.cart-gifts__list{grid-template-columns:repeat(2,1fr);grid-gap:12px}}@media screen and (min-width:768px){.cart-gifts__list{grid-template-columns:repeat(4,1fr);grid-gap:16px}}@media screen and (min-width:1280px){.cart-gifts__list{grid-template-columns:repeat(6,1fr)}}.cart-gifts-item{height:100%}.cart-gifts-item--disabled{opacity:.5}.cart-gifts-item--disabled .cart-gifts-item__label{cursor:auto}.cart-gifts-item:not(.cart-gifts-item--disabled) .cart-gifts-item__label:hover{box-shadow:0 3px 12px #00000040;border-color:transparent}.cart-gifts-item__input{display:none}.cart-gifts-item__input:checked+.cart-gifts-item__label{border-color:#4d9cde;box-shadow:0 3px 12px #00000040}.cart-gifts-item__label{display:flex;flex-direction:column;row-gap:12px;padding:16px;height:100%;background-color:#fff;transition:box-shadow .3s ease,border-color .3s ease;border-radius:8px;box-shadow:0 1px 4px #00000014;cursor:pointer}.cart-gifts-item__image{display:flex;align-items:center;justify-content:center}.cart-gifts-item__image picture{display:flex;align-items:center;justify-content:center;aspect-ratio:1/1}.cart-gifts-item__image picture img{width:100%;height:100%;object-fit:contain}.cart-gifts-item__content{display:flex;flex-direction:column;justify-content:space-between;row-gap:8px;flex:1}.cart-gifts-item__title{line-height:1.5;text-decoration:none;font-weight:500;color:#2b3848}.cart-gifts-item__prices{display:flex;flex-direction:column;gap:4px}.cart-gifts-item__price{margin-top:auto;color:#2b8800;font-weight:600}.cart-login{display:flex;flex-direction:row;align-items:center;column-gap:16px;margin-bottom:32px;padding:0 16px;min-height:60px;background-color:#fff;border:1px solid #D0D6DE;border-radius:6px;box-shadow:0 2px 6px #2b38481a}.cart-login__icon{flex-shrink:0}.cart-login__icon .icon{display:flex;width:24px;height:24px;color:#6e757c}.cart-login__icon .icon svg{width:100%;height:100%}.cart-login__text{font-weight:500}.cart-login__link{color:#cb2c30;text-decoration:underline}.cart-login__link:hover{text-decoration:none}.cart-price{display:flex;justify-content:flex-end;margin-bottom:30px}.cart-price__in{display:flex;flex-direction:column;gap:4px;width:100%;padding:20px 24px;background-color:#f5f7f9;border-radius:6px}@media screen and (min-width:768px){.cart-price__in{max-width:460px}}.cart-price__item{display:flex;align-items:center;justify-content:space-between;column-gap:16px}.cart-price__item:first-child .cart-price__label{font-size:18px;font-weight:700;line-height:26px;color:#000}.cart-price__item:first-child cmp-price .price__value{font-size:18px;font-weight:700;line-height:26px;color:#000}.cart-price__item:last-child .cart-price__label{font-size:14px;font-weight:400;line-height:26px;color:#6b6f73}.cart-price__item:last-child cmp-price .price__value{font-size:14px;font-weight:400;line-height:26px;color:#6b6f73}.cart-table{margin-bottom:32px}.cart-table__head{display:none}@media screen and (min-width:1280px){.cart-table__head{display:flex;align-items:center;column-gap:20px;padding:12px 20px;border-bottom:1px solid #D9E0EC;font-size:13px;font-weight:500;color:#6e757c}}@media screen and (min-width:1440px){.cart-table__head{column-gap:40px}}.cart-table__col--product{flex:1;min-width:1px}
9.cart-table__col--availability{width:200px;text-align:center}.cart-table__col--unit-price{width:110px;text-align:right}.cart-table__col--amount{width:120px;text-align:center}.cart-table__col--price{width:110px;text-align:right}.cart-table__col--remove{width:20px}.cart-table-item{display:flex;align-items:center;flex-wrap:wrap;position:relative;padding:16px 16px 16px 96px;border-bottom:1px solid #D9E0EC}@media screen and (max-width:767.98px){.cart-table-item{gap:8px 12px;padding:24px 16px 24px 64px}}@media screen and (min-width:768px){.cart-table-item{gap:12px;padding:20px}}@media screen and (min-width:1280px){.cart-table-item{column-gap:20px}}@media screen and (min-width:1440px){.cart-table-item{column-gap:40px}}@media screen and (max-width:767.98px){.cart-table-item--coupon{flex-direction:row;flex-wrap:nowrap}}.cart-table-item__main{display:flex}@media screen and (max-width:767.98px){.cart-table-item__main{align-items:flex-start;column-gap:8px;width:calc(100% + 48px);margin-left:-48px}}@media screen and (min-width:768px){.cart-table-item__main{align-items:center;column-gap:12px;flex:1;width:auto;min-width:1px;margin-left:0}}.cart-table-item__image{flex-shrink:0}@media screen and (max-width:767.98px){.cart-table-item__image{width:40px}}@media screen and (min-width:768px){.cart-table-item__image{width:80px}}.cart-table-item__image picture{display:block}.cart-table-item__image img{border-radius:6px}.cart-table-item__content{display:flex;flex-direction:column;flex:1;min-width:1px;row-gap:8px}.cart-table-item__title{font-size:16px;font-weight:500;line-height:28px;color:#2b3848}.cart-table-item__title:hover{text-decoration:none}.cart-table-item__code{font-size:13px;font-weight:500;line-height:18px;color:#6e757c}.cart-table-item__availability--desktop{width:200px}.cart-table-item__availability--desktop .availability--simple{align-items:center}@media screen and (max-width:1279.98px){.cart-table-item__availability--desktop{display:none}}@media screen and (max-width:1279.98px){.cart-table-item__availability--mobile{font-size:13px}}@media screen and (min-width:1280px){.cart-table-item__availability--mobile{display:none}}.cart-table-item__unit{font-size:12px;font-weight:600;line-height:1.4;color:#6e757c}.cart-table-item__store-availability{margin-top:4px;font-size:14px;font-weight:400;line-height:22px;color:#2b3848}@media screen and (min-width:1280px){.cart-table-item__store-availability{text-align:center}}.cart-table-item__store-availability span{text-decoration:underline}@media screen and (max-width:479.98px){.cart-table-item__unit-price{width:100%}}@media screen and (min-width:480px){.cart-table-item__unit-price{width:calc((100% - 24px)/2)}}@media screen and (max-width:767.98px){.cart-table-item__unit-price .price--stacked{flex-direction:row;align-items:baseline;gap:4px}.cart-table-item__unit-price .price--stacked .price__value,.cart-table-item__unit-price .price--stacked .price__vat{line-height:unset}}@media screen and (min-width:768px){.cart-table-item__unit-price{width:110px;text-align:right}}.cart-table-item__amount{display:flex;align-items:center;column-gap:4px}@media screen and (max-width:479.98px){.cart-table-item__amount{width:100%}}@media screen and (min-width:480px){.cart-table-item__amount{width:calc((100% - 24px)/2);justify-content:flex-end}}@media screen and (min-width:768px){.cart-table-item__amount{width:120px;justify-content:center}}@media screen and (max-width:479.98px){.cart-table-item__price{width:100%}}@media screen and (min-width:480px){.cart-table-item__price{text-align:right;width:100%}}@media screen and (max-width:767.98px){.cart-table-item__price{display:flex;justify-content:space-between;align-items:center}.cart-table-item__price .price--stacked{flex-direction:row;align-items:baseline;gap:4px}.cart-table-item__price .price--stacked .price__value,.cart-table-item__price .price--stacked .price__vat{line-height:unset}}@media screen and (min-width:768px){.cart-table-item__price{width:110px;text-align:right}}.cart-table-item__price strong{font-size:16px;font-weight:600;line-height:28px}.cart-table-item__price--coupon{width:fit-content}.cart-table-item__price--coupon strong{white-space:nowrap}.cart-table-item__vat-label{display:block;font-size:13px;font-weight:400;line-height:18px;color:#6e757c}.cart-table-item__remove{color:#6e757c;cursor:pointer}@media screen and (max-width:1279.98px){.cart-table-item__remove{position:absolute;right:0;top:0}.cart-table-item__remove a{display:flex;align-items:center;justify-content:center;width:32px;height:32px}}@media screen and (min-width:1280px){.cart-table-item__remove{width:20px;text-align:right}.cart-table-item__remove a{display:flex}}.cart-table-item__bottom{width:calc(100% + 80px);margin-left:-80px}@media screen and (min-width:480px){.cart-table-item__bottom{width:calc(100% + 100px);margin-left:-100px}}@media screen and (min-width:768px){.cart-table-item__bottom{width:100%;margin-left:0}}.cart-table-item__bottom .alert{margin:0}.cart-table-item__label{margin-bottom:4px;font-size:12px;font-weight:500;color:#6e757c}@media screen and (max-width:767.98px){.cart-table-item__label--total{font-size:14px}}@media screen and (min-width:1280px){.cart-table-item__label{display:none}}
9.cart-table-item__availability .availability .availability__text{font-size:16px}.cart-table-item__store-availability{margin-top:4px;font-size:16px}.cart-table-item__store-availability a{cursor:pointer;text-decoration:underline}.cart-table-item__store-availability a:hover,.cart-table-item__store-availability a:focus{text-decoration:none}.cart-table-coupon{color:#a56830}.cart-table-coupon cmp-price .price__value,.cart-table-coupon cmp-price .price__vat{font-size:inherit;font-weight:inherit;line-height:inherit;color:inherit}@media screen and (min-width:1280px){.cart{margin:0 20px}}.cart__header{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px 16px;margin-bottom:32px}.cart__header .cart__title{margin-bottom:0}.cart__title,.cart .table{margin-bottom:32px}.cart__in{display:grid;grid-template-columns:1fr;grid-gap:32px;margin-bottom:32px}@media screen and (min-width:920px){.cart__in{grid-template-columns:1fr auto;align-items:start}}@media screen and (min-width:1280px){.cart__in{grid-template-columns:1fr 440px}}.cart__main--step3 .user-data__section{margin-bottom:0;padding-bottom:0;border:none}.cart__main--step3 .user-data__wrapper{padding-bottom:32px;margin-bottom:32px;border-bottom:1px solid #D0D6DE}@media screen and (min-width:920px){.cart__main--step3 .user-data__wrapper{max-width:580px}}@media screen and (min-width:600px){.cart__main--step3 .user-data__item{display:grid;align-items:center;grid-template-columns:120px 1fr;gap:40px}}@media screen and (min-width:920px){.cart__main--step3 .user-data__item .form-input{min-width:300px}}@media screen and (min-width:1280px){.cart__main--step3 .user-data__item .form-input{min-width:340px}}@media screen and (min-width:920px){.cart__side{position:sticky;top:80px}}@media screen and (min-width:1280px){.cart__side{top:24px}}.cart__side--thx{position:relative}.cart__actions{display:flex;flex-direction:column;align-items:center;row-gap:20px}@media screen and (min-width:768px){.cart__actions{flex-direction:row;justify-content:space-between;align-items:baseline;column-gap:20px}}.cart__actions-btns{display:flex;column-gap:80px}@media screen and (max-width:919.98px){.cart__actions-btns{column-gap:20px}}@media screen and (max-width:767.98px){.cart__actions-btns{flex-direction:column;align-items:center;row-gap:20px;width:100%}.cart__actions-btns .btn{width:100%}}.cart__actions-b2b{display:flex;column-gap:20px}@media screen and (max-width:767.98px){.cart__actions-b2b{flex-direction:column;align-items:center;row-gap:20px;width:100%}.cart__actions-b2b .btn{width:100%}}.cart__back{display:inline-flex;align-items:center;column-gap:4px;color:#cb2c30}.cart__back .icon{width:8px;transform:rotate(-180deg)}.cart__back:hover{text-decoration:none}.cart__next{margin-bottom:16px}@media screen and (max-width:767.98px){.cart__next{width:100%}}@media screen and (min-width:768px){.cart__next{margin-bottom:0}}.cart__next--finish{flex-direction:column}.cart__next--finish span{font-size:10px}.cart__alert{margin-bottom:20px}@media screen and (min-width:1280px){.cart__alert{margin-bottom:32px}}.cart__notice{display:flex;justify-content:flex-end}
10`],encapsulation:2})}}return i})();var Ue=(()=>{class i{static{this.\u0275fac=function(e){return new(e||i)}}static{this.\u0275mod=ut({type:i})}static{this.\u0275inj=ht({imports:[kt,Vt,jt,la,ie,Be,ee,Xt,At]})}}return i})();var vr=["deliveryAddressComponentRef"];function yr(i,l){if(i&1){let t=w();o(0,"div",2),_(1,"cmp-svg",22),o(2,"div",23),d(3),o(4,"a",24),b("click",function(){v(t);let a=s();return y(a.showDialog())}),d(5),c(),d(6),c()()}if(i&2){let t=s();n(3),u(" ",t.sen["cart-contact-login-proposal"]," "),n(2),D(t.sen["cart-contact-login"]),n(),u(". ",t.sen["cart-contact-login-proposal-2"]," ")}}function wr(i,l){if(i&1){let t=w();o(0,"div",25),b("keydown",function(a){v(t);let r=s();return y(r.withDeliveryAddressKeyDown(a))}),_(1,"input",26),o(2,"label",27),d(3),c()()}if(i&2){let t=s();it("aria-checked",t.mainForm.get("withDeliveryAddress").value),n(3),u(" ",t.sen["cart-reg-delivery-different"]," ")}}function Cr(i,l){if(i&1&&_(0,"cmp-val-msg",21),i&2){let t=s();p("msg",t.sen["cart-email-maxlength"])}}var se=(()=>
10{class i extends E{constructor(t,e,a,r,h,g,V,j){super(t,e),this.dataSvc=t,this.seSvc=e,this.cartSvc=a,this.router=r,this.fb=h,this.digestSvc=g,this.userSvc=V,this.delPaySvc=j,this.decimalPattern="1.0-0",this.ngUnsubscribe=new z,this.userContactDataAreValid=!0,this.canBeBoughtChecked=!1,this.isSubmitting=!1,this.decimalPattern=`1.${this.seSvc.settings.decimalSettings.Basket}-${this.seSvc.settings.decimalSettings.Basket}`,this.currencySymbol=this.seSvc.settings.currencies[this.seSvc.currencyId],this.mainForm=new Fe({}),this.cartSvc.cartContentChanged.pipe(A(this.ngUnsubscribe)).subscribe(()=>{if(this.cartSvc.cart&&(!this.cartSvc.cart.cartContent||!this.cartSvc.cart.cartContent.length)&&this.cartSvc.isNextStep4==!1&&this.router.navigateByUrl("/kosik").then(),!this.canBeBoughtChecked){let S={ids:this.cartSvc.productIds(!0)};this.cartSvc.checkProductsCanBeBought(S).pipe(M(1)).subscribe(me=>{me?this.canBeBoughtChecked=!0:this.router.navigateByUrl("/kosik").then(()=>{})})}}),this.userSvc.user.pipe(A(this.ngUnsubscribe)).subscribe(()=>{let S=this.getSelectedDeliveryAddress();this.mainForm.patchValue({deliveryAddressesOptions:S})}),this.deliveryAddress=this.cartSvc.cart?.deliveryAddress,this.company=this.cartSvc.cart?.company?this.cartSvc.cart.company:this.userSvc.company,this.invoiceAddress=this.cartSvc.cart?.invoiceAddress?this.cartSvc.cart.invoiceAddress:this.userSvc.invoiceAddress,this.user=this.cartSvc.cart?.user?this.cartSvc.cart.user:this.userSvc.user.value,this.withCompany=this.cartSvc.withCompanyEffectiveValue()}ngOnInit(){(!this.cartSvc.cart.cartContent||this.cartSvc.cart.cartContent.length==0)&&this.router.navigateByUrl("/kosik").then(()=>{}),this.createForm()}ngAfterViewInit(){W.scrollUp(0)}ngOnDestroy(){this.ngUnsubscribe.next(),this.ngUnsubscribe.complete()}createForm(){let t=this.getSelectedDeliveryAddress();this.mainForm=this.fb.group({cartNote:[this.cartSvc.cart.note,[X.maxLength(1e3)]],deliveryAddressesOptions:[t],withDeliveryAddress:[this.cartSvc.cart.withDeliveryAddress]}),this.mainForm.valueChanges.pipe(A(this.ngUnsubscribe)).subscribe(e=>{e.withDeliveryAddress!=null&&e.withDeliveryAddress!=this.cartSvc.cart.withDeliveryAddress&&this.cartSvc.onWithDeliveryAddressChanged(e.withDeliveryAddress),e.cartNote!=null&&e.cartNote!=this.cartSvc.cart.note&&(this.cartSvc.cart.note=e.cartNote,this.cartSvc.persist(this.cartSvc.defaultPersistMilliseconds))})}withDeliveryAddressKeyDown(t){(t.key==="Enter"||t.code==="Space")&&this.mainForm.patchValue({withDeliveryAddress:!this.mainForm.controls.withDeliveryAddress.value})}triggerSubmit(){let t=this.mainForm.get("withDeliveryAddress")?.value;if(!this.userContactDataAreValid){this.forceTouchedUserContact=!0,W.scrollToFirstInvalid(null);return}if(this.mainForm.invalid||t&&this.deliveryAddressComponent.addressForm.invalid){t&&this.deliveryAddressComponent.forceTouched(),this.mainForm.markAllAsTouched(),W.scrollToFirstInvalid(null);return}this.isSubmitting||(this.cartSvc.cart.invoiceAddress.country=this.seSvc.settings.countries.find(e=>e.id===this.cartSvc.cart.invoiceAddress.countryId)?.name,t?(this.cartSvc.cart.deliveryAddress=this.deliveryAddressComponent.getAddress(),this.cartSvc.cart.deliveryAddress.country=this.seSvc.settings.countries.find(e=>e.id===this.cartSvc.cart.deliveryAddress.countryId)?.name):this.cartSvc.cart.deliveryAddress=null,this.cartSvc.cart.note=this.mainForm.get("cartNote")?.value,this.cartSvc.cart.maxStep=3,ft(this.seSvc.cartMaxStepSessionKey,3),this.cartSvc.cart.withDeliveryAddress=t,this.isSubmitting=!0,this.cartSvc.sendOrderAndHandleResult().pipe(_t(()=>{this.isSubmitting=!1})).subscribe())}showDialog(){this.digestSvc.queryLogin()}onDeliveryAddressChanged(t){t.name=this.deliveryAddress?.name,this.cartSvc.onDeliveryAddressChanged(t)}isWithDeliveryCheckboxVisible(){let t;return t=!Ut(this.delPaySvc?.deliveryPayment?.delivery?.carrierService),t}deliveryAddressChanged(t){let e=parseInt(t);this.cartSvc.cart.deliveryAddress=this.userSvc.deliveryAddresses?.find(r=>r.id===e),this.deliveryAddress=this.cartSvc.cart.deliveryAddress;let a=this.getSelectedDeliveryAddress();this.mainForm.patchValue({deliveryAddressesOptions:a}),this.cartSvc.onDeliveryAddressChanged(this.cartSvc.cart.deliveryAddress)}companyDataChanged(t){this.cartSvc.onCompanyChanged(t)}contactDataChanged(t){this.cartSvc.onUserChanged(t)}withCompanyChanged(t){this.cartSvc.onWithCompanyChanged(t)}setUserContactDataValid(t){this.userContactDataAreValid=t}invoiceAddressChanged(t){this.cartSvc.onInvoiceAddressChanged(t)}getSelectedDeliveryAddress(){let t={value:-1,data:this.sen["cart-delivery-address-no-preset"],isDisabled:!1,selected:null},e=this.userSvc.deliveryAddresses.map(r=>
10({value:r.id,data:this.getDeliveryAddressName(r),isDisabled:!1,selected:null}));this.userDeliveryAddresses=[t,...e];let a=-1;if(this.cartSvc.cart?.deliveryAddress&&(this.cartSvc.cart?.deliveryAddress.id??0)>0){let r=this.cartSvc.cart?.deliveryAddress.id,h=this.userDeliveryAddresses.find(g=>g.value===r);h&&(a=h.value)}return a}getDeliveryAddressName(t){if(t.name)return t.name;let e=t.company?`${t.company},`:"";return`${t.firstName}, ${t.lastName}, ${e} ${t.street}, ${t.zipCode}, ${t.city}`}static{this.\u0275fac=function(e){return new(e||i)(m(P),m(I),m(T),m(R),m(It),m(Nt),m(Z),m(bt))}}static{this.\u0275cmp=C({type:i,selectors:[["cmp-cart-step3-b2c"]],viewQuery:function(e,a){if(e&1&&nt(vr,5),e&2){let r;Y(r=J())&&(a.deliveryAddressComponent=r.first)}},features:[k],decls:28,vars:28,consts:[["deliverySelect",""],["deliveryAddressComponentRef",""],[1,"cart-login"],[1,"cart__main","cart__main--step3",3,"formGroup"],[1,"cart__title","h1"],[1,"cart__col"],[3,"companyDataChange","contactDataChange","withCompanyChanged","formsValidityChanged","invoiceAddressDataChange","showCredentials","user","invoiceAddress","company","withCompany","checkForExistingUser","checkForExistingIco","userNameReadOnly","forceTouched"],["role","checkbox","tabindex","0","aria-labelledby","addrDeliveryIsDifferentLabel",1,"user-data__checkbox","form-checkbox"],[1,"user-data__section"],[1,"user-data__title","h3"],[1,"user-data__wrapper"],[1,"user-data__inner"],[1,"user-data__item","user-data__item--full"],["for","deliveryAddressesOptions",1,"form-label"],[1,"user-data__value"],["formControlName","deliveryAddressesOptions","id","deliveryAddressesOptions",1,"",3,"selectionChange","items"],[3,"changes","id","addressType","address"],[1,"cart","user-data"],[1,"user-data__value--full"],["formControlName","cartNote",1,"form-textarea","b2b-textarea",3,"placeholder","id"],[1,"validation"],[3,"msg"],["symbolId","user",1,"cart-login__icon"],[1,"cart-login__text"],["href","javascript:void(0);",1,"cart-login__link",3,"click"],["role","checkbox","tabindex","0","aria-labelledby","addrDeliveryIsDifferentLabel",1,"user-data__checkbox","form-checkbox",3,"keydown"],["formControlName","withDeliveryAddress","id","addrDeliveryIsDifferent","type","checkbox"],["id","addrDeliveryIsDifferentLabel","for","addrDeliveryIsDifferent"]],template:function(e,a){if(e&1){let r=w();x(0,yr,7,3,"div",2),o(1,"div",3)(2,"h1",4),d(3),c(),o(4,"div",5)(5,"cmp-user-contact-data",6),b("companyDataChange",function(g){return a.companyDataChanged(g)})("contactDataChange",function(g){return a.contactDataChanged(g)})("withCompanyChanged",function(g){return a.withCompanyChanged(g)})("formsValidityChanged",function(g){return a.setUserContactDataValid(g)})("invoiceAddressDataChange",function(g){return a.invoiceAddressChanged(g)}),c(),x(6,wr,4,2,"div",7),o(7,"div",8)(8,"h2",9),d(9),c(),o(10,"div",10)(11,"div",11)(12,"div",12)(13,"label",13),d(14),c(),o(15,"div",14)(16,"cmp-select-box",15,0),b("selectionChange",function(){v(r);let g=St(17);return y(a.deliveryAddressChanged(g.selectedValues[0].toString()))}),c()()()(),o(18,"cmp-address",16,1),b("changes",function(g){return a.onDeliveryAddressChanged(g)}),c()()(),o(20,"div",17)(21,"div",8)(22,"h2",9),d(23),c(),o(24,"div",18),_(25,"textarea",19),o(26,"div",20),x(27,Cr,1,1,"cmp-val-msg",21),c()()()()()()}e&2&&(f(a.userLoggedIn?-1:0),n(),p("formGroup",a.mainForm),n(2),u(" ",a.sen["cart-delivery-info"]," "),n(2),p("showCredentials",!1)("user",a.user)("invoiceAddress",a.invoiceAddress)("company",a.company)("withCompany",a.withCompany)("checkForExistingUser",!0)("checkForExistingIco",!0)("userNameReadOnly",a.userLoggedIn)("forceTouched",a.forceTouchedUserContact),n(),f(a.isWithDeliveryCheckboxVisible()?6:-1),n(),O("display-none",!(a.isWithDeliveryCheckboxVisible()&&a.mainForm.get("withDeliveryAddress").value)),n(2),u(" ",a.sen["cart-delivery-address"]," "),n(3),O("display-none",!a.userLoggedIn),n(2),u(" ",a.sen["cart-delivery-address-options"],": "),n(2),p("items",a.userDeliveryAddresses),n(2),p("id","deliveryAddress")("addressType","Delivery")("address",a.deliveryAddress),n(5),u(" ",a.sen["cart-note"]," "),n(2),p("placeholder",a.sen["cart-note"])("id","cartNote"),it("aria-label",a.sen["cart-note"]),n(2),f(a.mainForm.controls.cartNote.hasError("maxlength")&&a.mainForm.controls.cartNote.touched?27:-1))},dependencies:[Le,ra,ce,Ue,Vt,Dt,Te,ot,ct,jt,lt,gt,ie,Jt,At,tt,Oe,oa,te,Yt],styles:[`.cart-coupon{position:relative}.cart-coupon__toggle{margin-bottom:12px}.cart-coupon__form{display:flex;column-gap:8px}.cart-coupon__input{flex:1}@media screen and (min-width:920px){.cart-coupon__input{width:300px}}.cart-gifts{display:flex;flex-direction:column;row-gap:32px;margin-bottom:32px}
10.cart-gifts__section{display:flex;flex-direction:column;row-gap:12px}.cart-gifts__title{display:flex;align-items:center;column-gap:8px;font-weight:600}.cart-gifts__title .icon{font-size:8px}.cart-gifts__list{display:grid}@media screen and (max-width:767.98px){.cart-gifts__list{grid-template-columns:repeat(2,1fr);grid-gap:12px}}@media screen and (min-width:768px){.cart-gifts__list{grid-template-columns:repeat(4,1fr);grid-gap:16px}}@media screen and (min-width:1280px){.cart-gifts__list{grid-template-columns:repeat(6,1fr)}}.cart-gifts-item{height:100%}.cart-gifts-item--disabled{opacity:.5}.cart-gifts-item--disabled .cart-gifts-item__label{cursor:auto}.cart-gifts-item:not(.cart-gifts-item--disabled) .cart-gifts-item__label:hover{box-shadow:0 3px 12px #00000040;border-color:transparent}.cart-gifts-item__input{display:none}.cart-gifts-item__input:checked+.cart-gifts-item__label{border-color:#4d9cde;box-shadow:0 3px 12px #00000040}.cart-gifts-item__label{display:flex;flex-direction:column;row-gap:12px;padding:16px;height:100%;background-color:#fff;transition:box-shadow .3s ease,border-color .3s ease;border-radius:8px;box-shadow:0 1px 4px #00000014;cursor:pointer}.cart-gifts-item__image{display:flex;align-items:center;justify-content:center}.cart-gifts-item__image picture{display:flex;align-items:center;justify-content:center;aspect-ratio:1/1}.cart-gifts-item__image picture img{width:100%;height:100%;object-fit:contain}.cart-gifts-item__content{display:flex;flex-direction:column;justify-content:space-between;row-gap:8px;flex:1}.cart-gifts-item__title{line-height:1.5;text-decoration:none;font-weight:500;color:#2b3848}.cart-gifts-item__prices{display:flex;flex-direction:column;gap:4px}.cart-gifts-item__price{margin-top:auto;color:#2b8800;font-weight:600}.cart-login{display:flex;flex-direction:row;align-items:center;column-gap:16px;margin-bottom:32px;padding:0 16px;min-height:60px;background-color:#fff;border:1px solid #D0D6DE;border-radius:6px;box-shadow:0 2px 6px #2b38481a}.cart-login__icon{flex-shrink:0}.cart-login__icon .icon{display:flex;width:24px;height:24px;color:#6e757c}.cart-login__icon .icon svg{width:100%;height:100%}.cart-login__text{font-weight:500}.cart-login__link{color:#cb2c30;text-decoration:underline}.cart-login__link:hover{text-decoration:none}.cart-price{display:flex;justify-content:flex-end;margin-bottom:30px}.cart-price__in{display:flex;flex-direction:column;gap:4px;width:100%;padding:20px 24px;background-color:#f5f7f9;border-radius:6px}@media screen and (min-width:768px){.cart-price__in{max-width:460px}}.cart-price__item{display:flex;align-items:center;justify-content:space-between;column-gap:16px}.cart-price__item:first-child .cart-price__label{font-size:18px;font-weight:700;line-height:26px;color:#000}.cart-price__item:first-child cmp-price .price__value{font-size:18px;font-weight:700;line-height:26px;color:#000}.cart-price__item:last-child .cart-price__label{font-size:14px;font-weight:400;line-height:26px;color:#6b6f73}.cart-price__item:last-child cmp-price .price__value{font-size:14px;font-weight:400;line-height:26px;color:#6b6f73}.cart-table{margin-bottom:32px}.cart-table__head{display:none}@media screen and (min-width:1280px){.cart-table__head{display:flex;align-items:center;column-gap:20px;padding:12px 20px;border-bottom:1px solid #D9E0EC;font-size:13px;font-weight:500;color:#6e757c}}@media screen and (min-width:1440px){.cart-table__head{column-gap:40px}}.cart-table__col--product{flex:1;min-width:1px}.cart-table__col--availability{width:200px;text-align:center}.cart-table__col--unit-price{width:110px;text-align:right}.cart-table__col--amount{width:120px;text-align:center}.cart-table__col--price{width:110px;text-align:right}.cart-table__col--remove{width:20px}.cart-table-item{display:flex;align-items:center;flex-wrap:wrap;position:relative;padding:16px 16px 16px 96px;border-bottom:1px solid #D9E0EC}@media screen and (max-width:767.98px){.cart-table-item{gap:8px 12px;padding:24px 16px 24px 64px}}@media screen and (min-width:768px){.cart-table-item{gap:12px;padding:20px}}@media screen and (min-width:1280px){.cart-table-item{column-gap:20px}}@media screen and (min-width:1440px){.cart-table-item{column-gap:40px}}@media screen and (max-width:767.98px){.cart-table-item--coupon{flex-direction:row;flex-wrap:nowrap}}.cart-table-item__main{display:flex}@media screen and (max-width:767.98px){.cart-table-item__main{align-items:flex-start;column-gap:8px;width:calc(100% + 48px);margin-left:-48px}}@media screen and (min-width:768px){.cart-table-item__main{align-items:center;column-gap:12px;flex:1;width:auto;min-width:1px;margin-left:0}}.cart-table-item__image{flex-shrink:0}@media screen and (max-width:767.98px){.cart-table-item__image{width:40px}}@media screen and (min-width:768px){.cart-table-item__image{width:80px}}.cart-table-item__image picture{display:block}
10.cart-table-item__image img{border-radius:6px}.cart-table-item__content{display:flex;flex-direction:column;flex:1;min-width:1px;row-gap:8px}.cart-table-item__title{font-size:16px;font-weight:500;line-height:28px;color:#2b3848}.cart-table-item__title:hover{text-decoration:none}.cart-table-item__code{font-size:13px;font-weight:500;line-height:18px;color:#6e757c}.cart-table-item__availability--desktop{width:200px}.cart-table-item__availability--desktop .availability--simple{align-items:center}@media screen and (max-width:1279.98px){.cart-table-item__availability--desktop{display:none}}@media screen and (max-width:1279.98px){.cart-table-item__availability--mobile{font-size:13px}}@media screen and (min-width:1280px){.cart-table-item__availability--mobile{display:none}}.cart-table-item__unit{font-size:12px;font-weight:600;line-height:1.4;color:#6e757c}.cart-table-item__store-availability{margin-top:4px;font-size:14px;font-weight:400;line-height:22px;color:#2b3848}@media screen and (min-width:1280px){.cart-table-item__store-availability{text-align:center}}.cart-table-item__store-availability span{text-decoration:underline}@media screen and (max-width:479.98px){.cart-table-item__unit-price{width:100%}}@media screen and (min-width:480px){.cart-table-item__unit-price{width:calc((100% - 24px)/2)}}@media screen and (max-width:767.98px){.cart-table-item__unit-price .price--stacked{flex-direction:row;align-items:baseline;gap:4px}.cart-table-item__unit-price .price--stacked .price__value,.cart-table-item__unit-price .price--stacked .price__vat{line-height:unset}}@media screen and (min-width:768px){.cart-table-item__unit-price{width:110px;text-align:right}}.cart-table-item__amount{display:flex;align-items:center;column-gap:4px}@media screen and (max-width:479.98px){.cart-table-item__amount{width:100%}}@media screen and (min-width:480px){.cart-table-item__amount{width:calc((100% - 24px)/2);justify-content:flex-end}}@media screen and (min-width:768px){.cart-table-item__amount{width:120px;justify-content:center}}@media screen and (max-width:479.98px){.cart-table-item__price{width:100%}}@media screen and (min-width:480px){.cart-table-item__price{text-align:right;width:100%}}@media screen and (max-width:767.98px){.cart-table-item__price{display:flex;justify-content:space-between;align-items:center}.cart-table-item__price .price--stacked{flex-direction:row;align-items:baseline;gap:4px}.cart-table-item__price .price--stacked .price__value,.cart-table-item__price .price--stacked .price__vat{line-height:unset}}@media screen and (min-width:768px){.cart-table-item__price{width:110px;text-align:right}}.cart-table-item__price strong{font-size:16px;font-weight:600;line-height:28px}.cart-table-item__price--coupon{width:fit-content}.cart-table-item__price--coupon strong{white-space:nowrap}.cart-table-item__vat-label{display:block;font-size:13px;font-weight:400;line-height:18px;color:#6e757c}.cart-table-item__remove{color:#6e757c;cursor:pointer}@media screen and (max-width:1279.98px){.cart-table-item__remove{position:absolute;right:0;top:0}.cart-table-item__remove a{display:flex;align-items:center;justify-content:center;width:32px;height:32px}}@media screen and (min-width:1280px){.cart-table-item__remove{width:20px;text-align:right}.cart-table-item__remove a{display:flex}}.cart-table-item__bottom{width:calc(100% + 80px);margin-left:-80px}@media screen and (min-width:480px){.cart-table-item__bottom{width:calc(100% + 100px);margin-left:-100px}}@media screen and (min-width:768px){.cart-table-item__bottom{width:100%;margin-left:0}}.cart-table-item__bottom .alert{margin:0}.cart-table-item__label{margin-bottom:4px;font-size:12px;font-weight:500;color:#6e757c}@media screen and (max-width:767.98px){.cart-table-item__label--total{font-size:14px}}@media screen and (min-width:1280px){.cart-table-item__label{display:none}}.cart-table-item__availability .availability .availability__text{font-size:16px}.cart-table-item__store-availability{margin-top:4px;font-size:16px}.cart-table-item__store-availability a{cursor:pointer;text-decoration:underline}.cart-table-item__store-availability a:hover,.cart-table-item__store-availability a:focus{text-decoration:none}.cart-table-coupon{color:#a56830}.cart-table-coupon cmp-price .price__value,.cart-table-coupon cmp-price .price__vat{font-size:inherit;font-weight:inherit;line-height:inherit;color:inherit}@media screen and (min-width:1280px){.cart{margin:0 20px}}.cart__header{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px 16px;margin-bottom:32px}.cart__header .cart__title{margin-bottom:0}.cart__title,.cart .table{margin-bottom:32px}.cart__in{display:grid;grid-template-columns:1fr;grid-gap:32px;margin-bottom:32px}@media screen and (min-width:920px){.cart__in{grid-template-columns:1fr auto;align-items:start}}@media screen and (min-width:1280px){.cart__in{grid-template-columns:1fr 440px}}.cart__main--step3 .user-data__section{margin-bottom:0;padding-bottom:0;border:none}.cart__main--step3 .user-data__wrapper{padding-bottom:32px;margin-bottom:32px;border-bottom:1px solid #D0D6DE}@media screen and (min-width:920px){.cart__main--step3 .user-data__wrapper{max-width:580px}}@media screen and (min-width:600px){.cart__main--step3 .user-data__item{display:grid;align-items:center;grid-template-columns:120px 1fr;gap:40px}}@media screen and (min-width:920px){.cart__main--step3 .user-data__item .form-input{min-width:300px}}@media screen and (min-width:1280px){.cart__main--step3 .user-data__item .form-input{min-width:340px}}@media screen and (min-width:920px){.cart__side{position:sticky;top:80px}}@media screen and (min-width:1280px){.cart__side{top:24px}}.cart__side--thx{position:relative}.cart__actions{display:flex;flex-direction:column;align-items:center;row-gap:20px}@media screen and (min-width:768px){.cart__actions{flex-direction:row;justify-content:space-between;align-items:baseline;column-gap:20px}}
10.cart__actions-btns{display:flex;column-gap:80px}@media screen and (max-width:919.98px){.cart__actions-btns{column-gap:20px}}@media screen and (max-width:767.98px){.cart__actions-btns{flex-direction:column;align-items:center;row-gap:20px;width:100%}.cart__actions-btns .btn{width:100%}}.cart__actions-b2b{display:flex;column-gap:20px}@media screen and (max-width:767.98px){.cart__actions-b2b{flex-direction:column;align-items:center;row-gap:20px;width:100%}.cart__actions-b2b .btn{width:100%}}.cart__back{display:inline-flex;align-items:center;column-gap:4px;color:#cb2c30}.cart__back .icon{width:8px;transform:rotate(-180deg)}.cart__back:hover{text-decoration:none}.cart__next{margin-bottom:16px}@media screen and (max-width:767.98px){.cart__next{width:100%}}@media screen and (min-width:768px){.cart__next{margin-bottom:0}}.cart__next--finish{flex-direction:column}.cart__next--finish span{font-size:10px}.cart__alert{margin-bottom:20px}@media screen and (min-width:1280px){.cart__alert{margin-bottom:32px}}.cart__notice{display:flex;justify-content:flex-end}
11`],encapsulation:2})}}return i})();var kr=()=>["/kosik/obsah","/kosik/doprava-a-platba"],Dr=()=>["/kosik/doprava-a-platba"];function Ir(i,l){i&1&&_(0,"cmp-cart-step3-b2b")}function Pr(i,l){i&1&&_(0,"cmp-cart-step3-b2c")}function Er(i,l){if(i&1&&(o(0,"a",9),d(1),c()),i&2){let t=s();p("href",t.termsAndConditionsUrl,qe),n(),D(t.sen["cart-terms-2"])}}function Ar(i,l){if(i&1&&d(0),i&2){let t=s();u(" ",t.sen["cart-terms-2"]," ")}}function Tr(i,l){if(i&1&&(d(0),o(1,"a",9),d(2),c(),d(3,". ")),i&2){let t=s();u(" ",t.sen["cart-terms-3a"]," "),n(),p("href",t.gdprUrl,qe),n(),D(t.sen["cart-terms-3"])}}function Fr(i,l){if(i&1&&d(0),i&2){let t=s();q(" ",t.sen["cart-terms-3a"]," ",t.sen["cart-terms-3"],". ")}}var oi=(()=>{class i extends E{isUserB2b(){return this.userSvc.isB2b}isUserLoggedIn(){return Bi.userLoggedIn}constructor(t,e,a){super(t,e),this.dataSvc=t,this.seSvc=e,this.userSvc=a,this.termsAndConditionsUrl=this.seSvc.settings.termsAndConditions?.[this.seSvc.culture.cultureId]?.termsUrl,this.gdprUrl=this.seSvc.settings.termsAndConditions?.[this.seSvc.culture.cultureId]?.gdprUrl}ngOnInit(){this.dataSvc.setTitle(`${this.seSvc.settings.shopSeo.ShopName} - ${this.sen["cart-delivery-info"]}`,this.sen["cart-3-desc"])}onOrderButtonClick(){this.userSvc.canOrders&&(this.isUserB2b()?this.b2bRef?.triggerSubmit():this.b2cRef?.triggerSubmit())}static{this.\u0275fac=function(e){return new(e||i)(m(P),m(I),m(Z))}}static{this.\u0275cmp=C({type:i,selectors:[["ng-component"]],viewQuery:function(e,a){if(e&1&&nt(le,5)(se,5),e&2){let r;Y(r=J())&&(a.b2bRef=r.first),Y(r=J())&&(a.b2cRef=r.first)}},standalone:!1,features:[k],decls:19,vars:14,consts:[[1,"cart","cart-step3","js-anchor-cart"],[3,"links","cartStep"],[1,"cart__in"],[1,"cart__side"],[3,"classModifier","viewMode"],[1,"cart__actions"],[1,"cart__back",3,"routerLink"],[1,"cart__actions-wrapper"],[1,"cart__policy"],["target","_blank","rel","noopener",3,"href"],["type","button",1,"btn","btn--conversion","btn--large","cart__next",3,"click","disabled"]],template:function(e,a){e&1&&(o(0,"div",0),_(1,"cmp-cart-step-header",1),o(2,"div",2),x(3,Ir,1,0,"cmp-cart-step3-b2b")(4,Pr,1,0,"cmp-cart-step3-b2c"),o(5,"aside",3),_(6,"cmp-cart-summary",4),c()(),o(7,"div",5)(8,"a",6),d(9),c(),o(10,"div",7)(11,"p",8),d(12),x(13,Er,2,2,"a",9)(14,Ar,1,1),x(15,Tr,4,3)(16,Fr,1,2),c(),o(17,"button",10),b("click",function(){return a.onOrderButtonClick()}),d(18),c()()()()),e&2&&(n(),p("links",mt(12,kr))("cartStep",3),n(2),f(a.isUserB2b()?3:4),n(3),p("classModifier","gray")("viewMode","orderContent"),n(2),p("routerLink",mt(13,Dr)),n(),u(" \xAB ",a.sen["cart-back-to-delivery"]," "),n(3),u(" ",a.sen["cart-terms-1"]," "),n(),f(a.termsAndConditionsUrl?13:14),n(2),f(a.gdprUrl?15:16),n(2),p("disabled",!a.userSvc.canOrders),n(),u(" ",a.sen["cart-order-with-payment"]," "))},dependencies:[rt,ae,re,se,le],styles:[`@media screen and (max-width:767.98px){.cart-step3 .cart__actions{flex-direction:column;align-items:center;row-gap:20px}}@media screen and (min-width:768px){.cart-step3 .cart__actions{flex-direction:row;column-gap:20px}}.cart-step3 .cart__back{order:2}@media screen and (min-width:768px){.cart-step3 .cart__back{order:1;white-space:nowrap}}@media screen and (max-width:767.98px){.cart-step3 .cart__next{width:100%}}.cart-step3 .cart__actions-wrapper{display:flex;flex-direction:column;align-items:center;row-gap:8px;order:1}@media screen and (min-width:768px){.cart-step3 .cart__actions-wrapper{order:2;flex-direction:row;column-gap:12px}}@media screen and (min-width:920px){.cart-step3 .cart__actions-wrapper{column-gap:20px}}.cart-step3 .cart__policy{font-size:14px;text-align:center}.cart-step3 .cart__policy a{text-decoration:underline}
12`,`.cart-coupon{position:relative}.cart-coupon__toggle{margin-bottom:12px}.cart-coupon__form{display:flex;column-gap:8px}.cart-coupon__input{flex:1}@media screen and (min-width:920px){.cart-coupon__input{width:300px}}.cart-gifts{display:flex;flex-direction:column;row-gap:32px;margin-bottom:32px}
12.cart-gifts__section{display:flex;flex-direction:column;row-gap:12px}.cart-gifts__title{display:flex;align-items:center;column-gap:8px;font-weight:600}.cart-gifts__title .icon{font-size:8px}.cart-gifts__list{display:grid}@media screen and (max-width:767.98px){.cart-gifts__list{grid-template-columns:repeat(2,1fr);grid-gap:12px}}@media screen and (min-width:768px){.cart-gifts__list{grid-template-columns:repeat(4,1fr);grid-gap:16px}}@media screen and (min-width:1280px){.cart-gifts__list{grid-template-columns:repeat(6,1fr)}}.cart-gifts-item{height:100%}.cart-gifts-item--disabled{opacity:.5}.cart-gifts-item--disabled .cart-gifts-item__label{cursor:auto}.cart-gifts-item:not(.cart-gifts-item--disabled) .cart-gifts-item__label:hover{box-shadow:0 3px 12px #00000040;border-color:transparent}.cart-gifts-item__input{display:none}.cart-gifts-item__input:checked+.cart-gifts-item__label{border-color:#4d9cde;box-shadow:0 3px 12px #00000040}.cart-gifts-item__label{display:flex;flex-direction:column;row-gap:12px;padding:16px;height:100%;background-color:#fff;transition:box-shadow .3s ease,border-color .3s ease;border-radius:8px;box-shadow:0 1px 4px #00000014;cursor:pointer}.cart-gifts-item__image{display:flex;align-items:center;justify-content:center}.cart-gifts-item__image picture{display:flex;align-items:center;justify-content:center;aspect-ratio:1/1}.cart-gifts-item__image picture img{width:100%;height:100%;object-fit:contain}.cart-gifts-item__content{display:flex;flex-direction:column;justify-content:space-between;row-gap:8px;flex:1}.cart-gifts-item__title{line-height:1.5;text-decoration:none;font-weight:500;color:#2b3848}.cart-gifts-item__prices{display:flex;flex-direction:column;gap:4px}.cart-gifts-item__price{margin-top:auto;color:#2b8800;font-weight:600}.cart-login{display:flex;flex-direction:row;align-items:center;column-gap:16px;margin-bottom:32px;padding:0 16px;min-height:60px;background-color:#fff;border:1px solid #D0D6DE;border-radius:6px;box-shadow:0 2px 6px #2b38481a}.cart-login__icon{flex-shrink:0}.cart-login__icon .icon{display:flex;width:24px;height:24px;color:#6e757c}.cart-login__icon .icon svg{width:100%;height:100%}.cart-login__text{font-weight:500}.cart-login__link{color:#cb2c30;text-decoration:underline}.cart-login__link:hover{text-decoration:none}.cart-price{display:flex;justify-content:flex-end;margin-bottom:30px}.cart-price__in{display:flex;flex-direction:column;gap:4px;width:100%;padding:20px 24px;background-color:#f5f7f9;border-radius:6px}@media screen and (min-width:768px){.cart-price__in{max-width:460px}}.cart-price__item{display:flex;align-items:center;justify-content:space-between;column-gap:16px}.cart-price__item:first-child .cart-price__label{font-size:18px;font-weight:700;line-height:26px;color:#000}.cart-price__item:first-child cmp-price .price__value{font-size:18px;font-weight:700;line-height:26px;color:#000}.cart-price__item:last-child .cart-price__label{font-size:14px;font-weight:400;line-height:26px;color:#6b6f73}.cart-price__item:last-child cmp-price .price__value{font-size:14px;font-weight:400;line-height:26px;color:#6b6f73}.cart-table{margin-bottom:32px}.cart-table__head{display:none}@media screen and (min-width:1280px){.cart-table__head{display:flex;align-items:center;column-gap:20px;padding:12px 20px;border-bottom:1px solid #D9E0EC;font-size:13px;font-weight:500;color:#6e757c}}@media screen and (min-width:1440px){.cart-table__head{column-gap:40px}}.cart-table__col--product{flex:1;min-width:1px}.cart-table__col--availability{width:200px;text-align:center}.cart-table__col--unit-price{width:110px;text-align:right}.cart-table__col--amount{width:120px;text-align:center}.cart-table__col--price{width:110px;text-align:right}.cart-table__col--remove{width:20px}.cart-table-item{display:flex;align-items:center;flex-wrap:wrap;position:relative;padding:16px 16px 16px 96px;border-bottom:1px solid #D9E0EC}@media screen and (max-width:767.98px){.cart-table-item{gap:8px 12px;padding:24px 16px 24px 64px}}@media screen and (min-width:768px){.cart-table-item{gap:12px;padding:20px}}@media screen and (min-width:1280px){.cart-table-item{column-gap:20px}}@media screen and (min-width:1440px){.cart-table-item{column-gap:40px}}@media screen and (max-width:767.98px){.cart-table-item--coupon{flex-direction:row;flex-wrap:nowrap}}.cart-table-item__main{display:flex}@media screen and (max-width:767.98px){.cart-table-item__main{align-items:flex-start;column-gap:8px;width:calc(100% + 48px);margin-left:-48px}}@media screen and (min-width:768px){.cart-table-item__main{align-items:center;column-gap:12px;flex:1;width:auto;min-width:1px;margin-left:0}}.cart-table-item__image{flex-shrink:0}@media screen and (max-width:767.98px){.cart-table-item__image{width:40px}}@media screen and (min-width:768px){.cart-table-item__image{width:80px}}.cart-table-item__image picture{display:block}
12.cart-table-item__image img{border-radius:6px}.cart-table-item__content{display:flex;flex-direction:column;flex:1;min-width:1px;row-gap:8px}.cart-table-item__title{font-size:16px;font-weight:500;line-height:28px;color:#2b3848}.cart-table-item__title:hover{text-decoration:none}.cart-table-item__code{font-size:13px;font-weight:500;line-height:18px;color:#6e757c}.cart-table-item__availability--desktop{width:200px}.cart-table-item__availability--desktop .availability--simple{align-items:center}@media screen and (max-width:1279.98px){.cart-table-item__availability--desktop{display:none}}@media screen and (max-width:1279.98px){.cart-table-item__availability--mobile{font-size:13px}}@media screen and (min-width:1280px){.cart-table-item__availability--mobile{display:none}}.cart-table-item__unit{font-size:12px;font-weight:600;line-height:1.4;color:#6e757c}.cart-table-item__store-availability{margin-top:4px;font-size:14px;font-weight:400;line-height:22px;color:#2b3848}@media screen and (min-width:1280px){.cart-table-item__store-availability{text-align:center}}.cart-table-item__store-availability span{text-decoration:underline}@media screen and (max-width:479.98px){.cart-table-item__unit-price{width:100%}}@media screen and (min-width:480px){.cart-table-item__unit-price{width:calc((100% - 24px)/2)}}@media screen and (max-width:767.98px){.cart-table-item__unit-price .price--stacked{flex-direction:row;align-items:baseline;gap:4px}.cart-table-item__unit-price .price--stacked .price__value,.cart-table-item__unit-price .price--stacked .price__vat{line-height:unset}}@media screen and (min-width:768px){.cart-table-item__unit-price{width:110px;text-align:right}}.cart-table-item__amount{display:flex;align-items:center;column-gap:4px}@media screen and (max-width:479.98px){.cart-table-item__amount{width:100%}}@media screen and (min-width:480px){.cart-table-item__amount{width:calc((100% - 24px)/2);justify-content:flex-end}}@media screen and (min-width:768px){.cart-table-item__amount{width:120px;justify-content:center}}@media screen and (max-width:479.98px){.cart-table-item__price{width:100%}}@media screen and (min-width:480px){.cart-table-item__price{text-align:right;width:100%}}@media screen and (max-width:767.98px){.cart-table-item__price{display:flex;justify-content:space-between;align-items:center}.cart-table-item__price .price--stacked{flex-direction:row;align-items:baseline;gap:4px}.cart-table-item__price .price--stacked .price__value,.cart-table-item__price .price--stacked .price__vat{line-height:unset}}@media screen and (min-width:768px){.cart-table-item__price{width:110px;text-align:right}}.cart-table-item__price strong{font-size:16px;font-weight:600;line-height:28px}.cart-table-item__price--coupon{width:fit-content}.cart-table-item__price--coupon strong{white-space:nowrap}.cart-table-item__vat-label{display:block;font-size:13px;font-weight:400;line-height:18px;color:#6e757c}.cart-table-item__remove{color:#6e757c;cursor:pointer}@media screen and (max-width:1279.98px){.cart-table-item__remove{position:absolute;right:0;top:0}.cart-table-item__remove a{display:flex;align-items:center;justify-content:center;width:32px;height:32px}}@media screen and (min-width:1280px){.cart-table-item__remove{width:20px;text-align:right}.cart-table-item__remove a{display:flex}}.cart-table-item__bottom{width:calc(100% + 80px);margin-left:-80px}@media screen and (min-width:480px){.cart-table-item__bottom{width:calc(100% + 100px);margin-left:-100px}}@media screen and (min-width:768px){.cart-table-item__bottom{width:100%;margin-left:0}}.cart-table-item__bottom .alert{margin:0}.cart-table-item__label{margin-bottom:4px;font-size:12px;font-weight:500;color:#6e757c}@media screen and (max-width:767.98px){.cart-table-item__label--total{font-size:14px}}@media screen and (min-width:1280px){.cart-table-item__label{display:none}}.cart-table-item__availability .availability .availability__text{font-size:16px}.cart-table-item__store-availability{margin-top:4px;font-size:16px}.cart-table-item__store-availability a{cursor:pointer;text-decoration:underline}.cart-table-item__store-availability a:hover,.cart-table-item__store-availability a:focus{text-decoration:none}.cart-table-coupon{color:#a56830}.cart-table-coupon cmp-price .price__value,.cart-table-coupon cmp-price .price__vat{font-size:inherit;font-weight:inherit;line-height:inherit;color:inherit}@media screen and (min-width:1280px){.cart{margin:0 20px}}.cart__header{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px 16px;margin-bottom:32px}.cart__header .cart__title{margin-bottom:0}.cart__title,.cart .table{margin-bottom:32px}.cart__in{display:grid;grid-template-columns:1fr;grid-gap:32px;margin-bottom:32px}@media screen and (min-width:920px){.cart__in{grid-template-columns:1fr auto;align-items:start}}@media screen and (min-width:1280px){.cart__in{grid-template-columns:1fr 440px}}.cart__main--step3 .user-data__section{margin-bottom:0;padding-bottom:0;border:none}.cart__main--step3 .user-data__wrapper{padding-bottom:32px;margin-bottom:32px;border-bottom:1px solid #D0D6DE}@media screen and (min-width:920px){.cart__main--step3 .user-data__wrapper{max-width:580px}}@media screen and (min-width:600px){.cart__main--step3 .user-data__item{display:grid;align-items:center;grid-template-columns:120px 1fr;gap:40px}}@media screen and (min-width:920px){.cart__main--step3 .user-data__item .form-input{min-width:300px}}@media screen and (min-width:1280px){.cart__main--step3 .user-data__item .form-input{min-width:340px}}@media screen and (min-width:920px){.cart__side{position:sticky;top:80px}}@media screen and (min-width:1280px){.cart__side{top:24px}}.cart__side--thx{position:relative}.cart__actions{display:flex;flex-direction:column;align-items:center;row-gap:20px}@media screen and (min-width:768px){.cart__actions{flex-direction:row;justify-content:space-between;align-items:baseline;column-gap:20px}}
12.cart__actions-btns{display:flex;column-gap:80px}@media screen and (max-width:919.98px){.cart__actions-btns{column-gap:20px}}@media screen and (max-width:767.98px){.cart__actions-btns{flex-direction:column;align-items:center;row-gap:20px;width:100%}.cart__actions-btns .btn{width:100%}}.cart__actions-b2b{display:flex;column-gap:20px}@media screen and (max-width:767.98px){.cart__actions-b2b{flex-direction:column;align-items:center;row-gap:20px;width:100%}.cart__actions-b2b .btn{width:100%}}.cart__back{display:inline-flex;align-items:center;column-gap:4px;color:#cb2c30}.cart__back .icon{width:8px;transform:rotate(-180deg)}.cart__back:hover{text-decoration:none}.cart__next{margin-bottom:16px}@media screen and (max-width:767.98px){.cart__next{width:100%}}@media screen and (min-width:768px){.cart__next{margin-bottom:0}}.cart__next--finish{flex-direction:column}.cart__next--finish span{font-size:10px}.cart__alert{margin-bottom:20px}@media screen and (min-width:1280px){.cart__alert{margin-bottom:32px}}.cart__notice{display:flex;justify-content:flex-end}
13`],encapsulation:2})}}return i})();function Mr(i,l){if(i&1){let t=w();o(0,"button",12),b("click",function(){v(t);let a=s();return y(a.goAccount())}),d(1),c()}if(i&2){let t=s();n(),u(" ",t.sen["cart-go-account"]," ")}}function Vr(i,l){if(i&1&&_(0,"cmp-cart-summary",10),i&2){let t=s();p("classModifier","white")("viewMode","demandRecap")("demandData",t.demandModel)}}function jr(i,l){if(i&1&&_(0,"cmp-cart-summary",11),i&2){let t=s();p("classModifier","white")("viewMode","orderRecap")("orderData",t.orderModel)}}var Ot=(()=>{class i extends E{get demandModel(){return this._demandModel}set demandModel(t){this._demandModel=t,this.prepareDemandText()}get orderModel(){return this._orderModel}set orderModel(t){this._orderModel=t,this.prepareOrderText()}constructor(t,e,a,r){super(t,e),this.usrSvc=a,this.router=r}goAccount(){this.router.navigateByUrl("/muj-ucet").then(()=>{})}prepareDemandText(){return this.acceptedTitle=this.sen["demand-accepted-title"],this.acceptedStatus=this.sen["demand-accepted-status"],this.acceptedText=this.sen["demand-accepted-text"].replace("%DEMAND_ID%",this.demandModel.id.toString()).replace("%USER_EMAIL%",this.demandModel.userName)}prepareOrderText(){return this.acceptedTitle=this.sen["order-accepted-title"],this.acceptedStatus=this.sen["order-accepted-status"],this.acceptedText=this.sen["order-accepted-text"].replace("%ORDER_ID%",this.orderModel.header.id.toString()).replace("%USER_EMAIL%",this.orderModel.header.email)}static{this.\u0275fac=function(e){return new(e||i)(m(P),m(I),m(Z),m(R))}}static{this.\u0275cmp=C({type:i,selectors:[["cmp-cart-thx"]],standalone:!1,features:[k],decls:13,vars:6,consts:[[1,"cart__in"],[1,"cart__main","cart-thx"],[1,"cart-thx__img"],["src","/app/assets/img/img-finish.png","alt","","width","64","height","64"],[1,"cart-thx__title"],[1,"cart-thx__text",3,"innerHTML"],[1,"cart-thx__status",3,"innerHTML"],[1,"cart-thx__actions"],[1,"btn","btn--medium","btn--primary"],[1,"cart__side","cart__side--thx"],[3,"classModifier","viewMode","demandData"],[3,"classModifier","viewMode","orderData"],[1,"btn","btn--medium","btn--primary",3,"click"]],template:function(e,a){e&1&&(o(0,"div",0)(1,"div",1)(2,"div",2),_(3,"img",3),c(),o(4,"div",4),d(5),c(),_(6,"div",5)(7,"div",6),o(8,"div",7),x(9,Mr,2,1,"button",8),c()(),o(10,"aside",9),x(11,Vr,1,3,"cmp-cart-summary",10),x(12,jr,1,3,"cmp-cart-summary",11),c()()),e&2&&(n(5),u(" ",a.acceptedTitle," "),n(),p("innerHTML",a.acceptedText,at),n(),p("innerHTML",a.acceptedStatus,at),n(2),f(a.userLoggedIn&&a.usrSvc.isB2b?9:-1),n(2),f(a.thxMo
13de==="demand"?11:-1),n(),f(a.thxMode==="order"?12:-1))},dependencies:[re],styles:[`.cart-coupon{position:relative}.cart-coupon__toggle{margin-bottom:12px}.cart-coupon__form{display:flex;column-gap:8px}.cart-coupon__input{flex:1}@media screen and (min-width:920px){.cart-coupon__input{width:300px}}.cart-gifts{display:flex;flex-direction:column;row-gap:32px;margin-bottom:32px}.cart-gifts__section{display:flex;flex-direction:column;row-gap:12px}.cart-gifts__title{display:flex;align-items:center;column-gap:8px;font-weight:600}.cart-gifts__title .icon{font-size:8px}.cart-gifts__list{display:grid}@media screen and (max-width:767.98px){.cart-gifts__list{grid-template-columns:repeat(2,1fr);grid-gap:12px}}@media screen and (min-width:768px){.cart-gifts__list{grid-template-columns:repeat(4,1fr);grid-gap:16px}}@media screen and (min-width:1280px){.cart-gifts__list{grid-template-columns:repeat(6,1fr)}}.cart-gifts-item{height:100%}.cart-gifts-item--disabled{opacity:.5}.cart-gifts-item--disabled .cart-gifts-item__label{cursor:auto}.cart-gifts-item:not(.cart-gifts-item--disabled) .cart-gifts-item__label:hover{box-shadow:0 3px 12px #00000040;border-color:transparent}.cart-gifts-item__input{display:none}.cart-gifts-item__input:checked+.cart-gifts-item__label{border-color:#4d9cde;box-shadow:0 3px 12px #00000040}.cart-gifts-item__label{display:flex;flex-direction:column;row-gap:12px;padding:16px;height:100%;background-color:#fff;transition:box-shadow .3s ease,border-color .3s ease;border-radius:8px;box-shadow:0 1px 4px #00000014;cursor:pointer}.cart-gifts-item__image{display:flex;align-items:center;justify-content:center}.cart-gifts-item__image picture{display:flex;align-items:center;justify-content:center;aspect-ratio:1/1}.cart-gifts-item__image picture img{width:100%;height:100%;object-fit:contain}.cart-gifts-item__content{display:flex;flex-direction:column;justify-content:space-between;row-gap:8px;flex:1}.cart-gifts-item__title{line-height:1.5;text-decoration:none;font-weight:500;color:#2b3848}.cart-gifts-item__prices{display:flex;flex-direction:column;gap:4px}.cart-gifts-item__price{margin-top:auto;color:#2b8800;font-weight:600}.cart-login{display:flex;flex-direction:row;align-items:center;column-gap:16px;margin-bottom:32px;padding:0 16px;min-height:60px;background-color:#fff;border:1px solid #D0D6DE;border-radius:6px;box-shadow:0 2px 6px #2b38481a}.cart-login__icon{flex-shrink:0}.cart-login__icon .icon{display:flex;width:24px;height:24px;color:#6e757c}.cart-login__icon .icon svg{width:100%;height:100%}.cart-login__text{font-weight:500}.cart-login__link{color:#cb2c30;text-decoration:underline}.cart-login__link:hover{text-decoration:none}.cart-price{display:flex;justify-content:flex-end;margin-bottom:30px}.cart-price__in{display:flex;flex-direction:column;gap:4px;width:100%;padding:20px 24px;background-color:#f5f7f9;border-radius:6px}@media screen and (min-width:768px){.cart-price__in{max-width:460px}}.cart-price__item{display:flex;align-items:center;justify-content:space-between;column-gap:16px}.cart-price__item:first-child .cart-price__label{font-size:18px;font-weight:700;line-height:26px;color:#000}.cart-price__item:first-child cmp-price .price__value{font-size:18px;font-weight:700;line-height:26px;color:#000}.cart-price__item:last-child .cart-price__label{font-size:14px;font-weight:400;line-height:26px;color:#6b6f73}.cart-price__item:last-child cmp-price .price__value{font-size:14px;font-weight:400;line-height:26px;color:#6b6f73}.cart-table{margin-bottom:32px}.cart-table__head{display:none}@media screen and (min-width:1280px){.cart-table__head{display:flex;align-items:center;column-gap:20px;padding:12px 20px;border-bottom:1px solid #D9E0EC;font-size:13px;font-weight:500;color:#6e757c}}@media screen and (min-width:1440px){.cart-table__head{column-gap:40px}}.cart-table__col--product{flex:1;min-width:1px}.cart-table__col--availability{width:200px;text-align:center}.cart-table__col--unit-price{width:110px;text-align:right}.cart-table__col--amount{width:120px;text-align:center}.cart-table__col--price{width:110px;text-align:right}.cart-table__col--remove{width:20px}.cart-table-item{display:flex;align-items:center;flex-wrap:wrap;position:relative;padding:16px 16px 16px 96px;border-bottom:1px solid #D9E0EC}@media screen and (max-width:767.98px){.cart-table-item{gap:8px 12px;padding:24px 16px 24px 64px}}@media screen and (min-width:768px){.cart-table-item{gap:12px;padding:20px}}@media screen and (min-width:1280px){.cart-table-item{column-gap:20px}}@media screen and (min-width:1440px){.cart-table-item{column-gap:40px}}@media screen and (max-width:767.98px){.cart-table-item--coupon{flex-direction:row;flex-wrap:nowrap}}.cart-table-item__main{display:flex}@media screen and (max-width:767.98px){.cart-table-item__main{align-items:flex-start;column-gap:8px;width:calc(100% + 48px);margin-left:-48px}}@media screen and (min-width:768px){.cart-table-item__main{align-items:center;column-gap:12px;flex:1;width:auto;min-width:1px;margin-left:0}}.cart-table-item__image{flex-shrink:0}@media screen and (max-width:767.98px){.cart-table-item__image{width:40px}}@media screen and (min-width:768px){.cart-table-item__image{width:80px}}.cart-table-item__image picture{display:block}
13.cart-table-item__image img{border-radius:6px}.cart-table-item__content{display:flex;flex-direction:column;flex:1;min-width:1px;row-gap:8px}.cart-table-item__title{font-size:16px;font-weight:500;line-height:28px;color:#2b3848}.cart-table-item__title:hover{text-decoration:none}.cart-table-item__code{font-size:13px;font-weight:500;line-height:18px;color:#6e757c}.cart-table-item__availability--desktop{width:200px}.cart-table-item__availability--desktop .availability--simple{align-items:center}@media screen and (max-width:1279.98px){.cart-table-item__availability--desktop{display:none}}@media screen and (max-width:1279.98px){.cart-table-item__availability--mobile{font-size:13px}}@media screen and (min-width:1280px){.cart-table-item__availability--mobile{display:none}}.cart-table-item__unit{font-size:12px;font-weight:600;line-height:1.4;color:#6e757c}.cart-table-item__store-availability{margin-top:4px;font-size:14px;font-weight:400;line-height:22px;color:#2b3848}@media screen and (min-width:1280px){.cart-table-item__store-availability{text-align:center}}.cart-table-item__store-availability span{text-decoration:underline}@media screen and (max-width:479.98px){.cart-table-item__unit-price{width:100%}}@media screen and (min-width:480px){.cart-table-item__unit-price{width:calc((100% - 24px)/2)}}@media screen and (max-width:767.98px){.cart-table-item__unit-price .price--stacked{flex-direction:row;align-items:baseline;gap:4px}.cart-table-item__unit-price .price--stacked .price__value,.cart-table-item__unit-price .price--stacked .price__vat{line-height:unset}}@media screen and (min-width:768px){.cart-table-item__unit-price{width:110px;text-align:right}}.cart-table-item__amount{display:flex;align-items:center;column-gap:4px}@media screen and (max-width:479.98px){.cart-table-item__amount{width:100%}}@media screen and (min-width:480px){.cart-table-item__amount{width:calc((100% - 24px)/2);justify-content:flex-end}}@media screen and (min-width:768px){.cart-table-item__amount{width:120px;justify-content:center}}@media screen and (max-width:479.98px){.cart-table-item__price{width:100%}}@media screen and (min-width:480px){.cart-table-item__price{text-align:right;width:100%}}@media screen and (max-width:767.98px){.cart-table-item__price{display:flex;justify-content:space-between;align-items:center}.cart-table-item__price .price--stacked{flex-direction:row;align-items:baseline;gap:4px}.cart-table-item__price .price--stacked .price__value,.cart-table-item__price .price--stacked .price__vat{line-height:unset}}@media screen and (min-width:768px){.cart-table-item__price{width:110px;text-align:right}}.cart-table-item__price strong{font-size:16px;font-weight:600;line-height:28px}.cart-table-item__price--coupon{width:fit-content}.cart-table-item__price--coupon strong{white-space:nowrap}.cart-table-item__vat-label{display:block;font-size:13px;font-weight:400;line-height:18px;color:#6e757c}.cart-table-item__remove{color:#6e757c;cursor:pointer}@media screen and (max-width:1279.98px){.cart-table-item__remove{position:absolute;right:0;top:0}.cart-table-item__remove a{display:flex;align-items:center;justify-content:center;width:32px;height:32px}}@media screen and (min-width:1280px){.cart-table-item__remove{width:20px;text-align:right}.cart-table-item__remove a{display:flex}}.cart-table-item__bottom{width:calc(100% + 80px);margin-left:-80px}@media screen and (min-width:480px){.cart-table-item__bottom{width:calc(100% + 100px);margin-left:-100px}}@media screen and (min-width:768px){.cart-table-item__bottom{width:100%;margin-left:0}}.cart-table-item__bottom .alert{margin:0}.cart-table-item__label{margin-bottom:4px;font-size:12px;font-weight:500;color:#6e757c}@media screen and (max-width:767.98px){.cart-table-item__label--total{font-size:14px}}@media screen and (min-width:1280px){.cart-table-item__label{display:none}}.cart-table-item__availability .availability .availability__text{font-size:16px}.cart-table-item__store-availability{margin-top:4px;font-size:16px}.cart-table-item__store-availability a{cursor:pointer;text-decoration:underline}.cart-table-item__store-availability a:hover,.cart-table-item__store-availability a:focus{text-decoration:none}.cart-table-coupon{color:#a56830}.cart-table-coupon cmp-price .price__value,.cart-table-coupon cmp-price .price__vat{font-size:inherit;font-weight:inherit;line-height:inherit;color:inherit}@media screen and (min-width:1280px){.cart{margin:0 20px}}.cart__header{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px 16px;margin-bottom:32px}.cart__header .cart__title{margin-bottom:0}.cart__title,.cart .table{margin-bottom:32px}.cart__in{display:grid;grid-template-columns:1fr;grid-gap:32px;margin-bottom:32px}@media screen and (min-width:920px){.cart__in{grid-template-columns:1fr auto;align-items:start}}@media screen and (min-width:1280px){.cart__in{grid-template-columns:1fr 440px}}.cart__main--step3 .user-data__section{margin-bottom:0;padding-bottom:0;border:none}.cart__main--step3 .user-data__wrapper{padding-bottom:32px;margin-bottom:32px;border-bottom:1px solid #D0D6DE}@media screen and (min-width:920px){.cart__main--step3 .user-data__wrapper{max-width:580px}}@media screen and (min-width:600px){.cart__main--step3 .user-data__item{display:grid;align-items:center;grid-template-columns:120px 1fr;gap:40px}}@media screen and (min-width:920px){.cart__main--step3 .user-data__item .form-input{min-width:300px}}@media screen and (min-width:1280px){.cart__main--step3 .user-data__item .form-input{min-width:340px}}@media screen and (min-width:920px){.cart__side{position:sticky;top:80px}}@media screen and (min-width:1280px){.cart__side{top:24px}}.cart__side--thx{position:relative}.cart__actions{display:flex;flex-direction:column;align-items:center;row-gap:20px}@media screen and (min-width:768px){.cart__actions{flex-direction:row;justify-content:space-between;align-items:baseline;column-gap:20px}}
13.cart__actions-btns{display:flex;column-gap:80px}@media screen and (max-width:919.98px){.cart__actions-btns{column-gap:20px}}@media screen and (max-width:767.98px){.cart__actions-btns{flex-direction:column;align-items:center;row-gap:20px;width:100%}.cart__actions-btns .btn{width:100%}}.cart__actions-b2b{display:flex;column-gap:20px}@media screen and (max-width:767.98px){.cart__actions-b2b{flex-direction:column;align-items:center;row-gap:20px;width:100%}.cart__actions-b2b .btn{width:100%}}.cart__back{display:inline-flex;align-items:center;column-gap:4px;color:#cb2c30}.cart__back .icon{width:8px;transform:rotate(-180deg)}.cart__back:hover{text-decoration:none}.cart__next{margin-bottom:16px}@media screen and (max-width:767.98px){.cart__next{width:100%}}@media screen and (min-width:768px){.cart__next{margin-bottom:0}}.cart__next--finish{flex-direction:column}.cart__next--finish span{font-size:10px}.cart__alert{margin-bottom:20px}@media screen and (min-width:1280px){.cart__alert{margin-bottom:32px}}.cart__notice{display:flex;justify-content:flex-end}body.page-type-thanks main.content{background-color:#f5f7f9}.cart-thx{display:flex;flex-direction:column;align-items:center;text-align:center;gap:20px;padding:40px 32px}.cart-thx__img img{display:block}.cart-thx__title{font-size:40px;font-weight:700;line-height:52px;color:#0b884c}.cart-thx__text{font-size:16px;line-height:28px;color:#2b3848}.cart-thx__text p+p{margin-top:10px}.cart-thx__status{font-size:16px;line-height:28px;color:#2b3848}
14`],encapsulation:2})}}return i})();var wa=(()=>{class i extends E{constructor(t,e,a,r,h,g,V,j,S){super(t,e),this.dataSvc=t,this.seSvc=e,this.cartSvc=a,this.router=r,this.http=h,this.rend=g,this.userSvc=V,this.flexMarketingEventsSvc=j,this.renderer2=S,this.ngUnsubscribe=new z,this.requestReturned=!1,this.domain=/localhost/.test(location.hostname)?this.seSvc.settings.localDomain:this.seSvc.settings.currentServerUrl,this.userSvc.reloadUserContactInfo()}ngOnInit(){this.dataSvc.setTitle(`${this.seSvc.settings.shopSeo.ShopName} - ${this.sen["cart-finish-title"]}`,this.sen["cart-4-desc"]),this.orderHash=this.cartSvc.orderHash,this.orderHash||this.router.navigateByUrl("/kosik").then(()=>{}),this.getOrder(),W.scrollUp(0),this.rend.addClass(document.body,"page-type-thanks")}ngAfterViewInit(){W.scrollToAnchor("js-anchor-cart",0)}getOrder(){this.http.get(`api/${Qt}/order/${this.orderHash}`).pipe(A(this.ngUnsubscribe)).subscribe({next:t=>{this.requestReturned=!0,t.header&&(this.orderHeader=t.header,this.items=t.items,this.cartThx.orderModel=t,this.cartThx.thxMode="order",this.flexMarketingEventsSvc.purchase(t,this.renderer2))},error:()=>{this.requestReturned=!0}})}ngOnDestroy(){this.rend.removeClass(document.body,"page-type-thanks"),this.ngUnsubscribe.next(),this.ngUnsubscribe.complete();let t="zbozi-conversion-script",e="heureka-conversion-script",a=document.querySelector("body"),r=document.querySelector(`script[id="${t}"]`);r&&this.rend.removeChild(a,r);let h=document.querySelector(`script[id="${e}"]`);h&&this.rend.removeChild(a,h)}printOrder(){let t=`${this.domain}/printorder/`,e={guids:this.orderHeader.guid,cultureId:this.seSvc.culture.cultureId};this.post(e,t)}post(t,e){let a=document.createElement("form");a.target="_blank",a.method="POST",a.action=e,Object.keys(t).forEach(function(r){var h=document.createElement("input");h.type="hidden",h.name=r,h.setAttribute("value",t[r]),a.appendChild(h)}),document.body.appendChild(a),a.submit(),document.body.removeChild(a)}static{this.\u0275fac=function(e){return new(e||i)(m(P),m(I),m(T),m(R),m(Mt),m(Ft),m(Z),m(ze),m(Ft))}}static{this.\u0275cmp=C({type:i,selectors:[["ng-component"]],viewQuery:function(e,a){if(e&1&&nt(Ot,5),e&2){let r;Y(r=J())&&(a.cartThx=r.first)}},standalone:!1,features:[k],decls:2,vars:0,consts:[[1,"cart-done","js-anchor-cart"]],template:function(e,a){e&1&&(o(0,"div",0),_(1,"cmp-cart-thx"),c())},dependencies:[Ot],styles:[`.cart-done{width:100%;margin-left:auto;margin-right:auto;margin-top:20px}@media screen and (min-width:1280px){.cart-done{margin-top:60px}}.cart-done__qr{display:flex;justify-content:center;margin-bottom:32px}.cart-done__text{margin-bottom:32px}.cart-done__actions{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:center;gap:8px}
15`,`.cart-coupon{position:relative}.cart-coupon__toggle{margin-bottom:12px}.cart-coupon__form{display:flex;column-gap:8px}.cart-coupon__input{flex:1}@media screen and (min-width:920px){.cart-coupon__input{width:300px}}.cart-gifts{display:flex;flex-direction:column;row-gap:32px;margin-bottom:32px}
15.cart-gifts__section{display:flex;flex-direction:column;row-gap:12px}.cart-gifts__title{display:flex;align-items:center;column-gap:8px;font-weight:600}.cart-gifts__title .icon{font-size:8px}.cart-gifts__list{display:grid}@media screen and (max-width:767.98px){.cart-gifts__list{grid-template-columns:repeat(2,1fr);grid-gap:12px}}@media screen and (min-width:768px){.cart-gifts__list{grid-template-columns:repeat(4,1fr);grid-gap:16px}}@media screen and (min-width:1280px){.cart-gifts__list{grid-template-columns:repeat(6,1fr)}}.cart-gifts-item{height:100%}.cart-gifts-item--disabled{opacity:.5}.cart-gifts-item--disabled .cart-gifts-item__label{cursor:auto}.cart-gifts-item:not(.cart-gifts-item--disabled) .cart-gifts-item__label:hover{box-shadow:0 3px 12px #00000040;border-color:transparent}.cart-gifts-item__input{display:none}.cart-gifts-item__input:checked+.cart-gifts-item__label{border-color:#4d9cde;box-shadow:0 3px 12px #00000040}.cart-gifts-item__label{display:flex;flex-direction:column;row-gap:12px;padding:16px;height:100%;background-color:#fff;transition:box-shadow .3s ease,border-color .3s ease;border-radius:8px;box-shadow:0 1px 4px #00000014;cursor:pointer}.cart-gifts-item__image{display:flex;align-items:center;justify-content:center}.cart-gifts-item__image picture{display:flex;align-items:center;justify-content:center;aspect-ratio:1/1}.cart-gifts-item__image picture img{width:100%;height:100%;object-fit:contain}.cart-gifts-item__content{display:flex;flex-direction:column;justify-content:space-between;row-gap:8px;flex:1}.cart-gifts-item__title{line-height:1.5;text-decoration:none;font-weight:500;color:#2b3848}.cart-gifts-item__prices{display:flex;flex-direction:column;gap:4px}.cart-gifts-item__price{margin-top:auto;color:#2b8800;font-weight:600}.cart-login{display:flex;flex-direction:row;align-items:center;column-gap:16px;margin-bottom:32px;padding:0 16px;min-height:60px;background-color:#fff;border:1px solid #D0D6DE;border-radius:6px;box-shadow:0 2px 6px #2b38481a}.cart-login__icon{flex-shrink:0}.cart-login__icon .icon{display:flex;width:24px;height:24px;color:#6e757c}.cart-login__icon .icon svg{width:100%;height:100%}.cart-login__text{font-weight:500}.cart-login__link{color:#cb2c30;text-decoration:underline}.cart-login__link:hover{text-decoration:none}.cart-price{display:flex;justify-content:flex-end;margin-bottom:30px}.cart-price__in{display:flex;flex-direction:column;gap:4px;width:100%;padding:20px 24px;background-color:#f5f7f9;border-radius:6px}@media screen and (min-width:768px){.cart-price__in{max-width:460px}}.cart-price__item{display:flex;align-items:center;justify-content:space-between;column-gap:16px}.cart-price__item:first-child .cart-price__label{font-size:18px;font-weight:700;line-height:26px;color:#000}.cart-price__item:first-child cmp-price .price__value{font-size:18px;font-weight:700;line-height:26px;color:#000}.cart-price__item:last-child .cart-price__label{font-size:14px;font-weight:400;line-height:26px;color:#6b6f73}.cart-price__item:last-child cmp-price .price__value{font-size:14px;font-weight:400;line-height:26px;color:#6b6f73}.cart-table{margin-bottom:32px}.cart-table__head{display:none}@media screen and (min-width:1280px){.cart-table__head{display:flex;align-items:center;column-gap:20px;padding:12px 20px;border-bottom:1px solid #D9E0EC;font-size:13px;font-weight:500;color:#6e757c}}@media screen and (min-width:1440px){.cart-table__head{column-gap:40px}}.cart-table__col--product{flex:1;min-width:1px}.cart-table__col--availability{width:200px;text-align:center}.cart-table__col--unit-price{width:110px;text-align:right}.cart-table__col--amount{width:120px;text-align:center}.cart-table__col--price{width:110px;text-align:right}.cart-table__col--remove{width:20px}.cart-table-item{display:flex;align-items:center;flex-wrap:wrap;position:relative;padding:16px 16px 16px 96px;border-bottom:1px solid #D9E0EC}@media screen and (max-width:767.98px){.cart-table-item{gap:8px 12px;padding:24px 16px 24px 64px}}@media screen and (min-width:768px){.cart-table-item{gap:12px;padding:20px}}@media screen and (min-width:1280px){.cart-table-item{column-gap:20px}}@media screen and (min-width:1440px){.cart-table-item{column-gap:40px}}@media screen and (max-width:767.98px){.cart-table-item--coupon{flex-direction:row;flex-wrap:nowrap}}.cart-table-item__main{display:flex}@media screen and (max-width:767.98px){.cart-table-item__main{align-items:flex-start;column-gap:8px;width:calc(100% + 48px);margin-left:-48px}}@media screen and (min-width:768px){.cart-table-item__main{align-items:center;column-gap:12px;flex:1;width:auto;min-width:1px;margin-left:0}}.cart-table-item__image{flex-shrink:0}@media screen and (max-width:767.98px){.cart-table-item__image{width:40px}}@media screen and (min-width:768px){.cart-table-item__image{width:80px}}.cart-table-item__image picture{display:block}
15.cart-table-item__image img{border-radius:6px}.cart-table-item__content{display:flex;flex-direction:column;flex:1;min-width:1px;row-gap:8px}.cart-table-item__title{font-size:16px;font-weight:500;line-height:28px;color:#2b3848}.cart-table-item__title:hover{text-decoration:none}.cart-table-item__code{font-size:13px;font-weight:500;line-height:18px;color:#6e757c}.cart-table-item__availability--desktop{width:200px}.cart-table-item__availability--desktop .availability--simple{align-items:center}@media screen and (max-width:1279.98px){.cart-table-item__availability--desktop{display:none}}@media screen and (max-width:1279.98px){.cart-table-item__availability--mobile{font-size:13px}}@media screen and (min-width:1280px){.cart-table-item__availability--mobile{display:none}}.cart-table-item__unit{font-size:12px;font-weight:600;line-height:1.4;color:#6e757c}.cart-table-item__store-availability{margin-top:4px;font-size:14px;font-weight:400;line-height:22px;color:#2b3848}@media screen and (min-width:1280px){.cart-table-item__store-availability{text-align:center}}.cart-table-item__store-availability span{text-decoration:underline}@media screen and (max-width:479.98px){.cart-table-item__unit-price{width:100%}}@media screen and (min-width:480px){.cart-table-item__unit-price{width:calc((100% - 24px)/2)}}@media screen and (max-width:767.98px){.cart-table-item__unit-price .price--stacked{flex-direction:row;align-items:baseline;gap:4px}.cart-table-item__unit-price .price--stacked .price__value,.cart-table-item__unit-price .price--stacked .price__vat{line-height:unset}}@media screen and (min-width:768px){.cart-table-item__unit-price{width:110px;text-align:right}}.cart-table-item__amount{display:flex;align-items:center;column-gap:4px}@media screen and (max-width:479.98px){.cart-table-item__amount{width:100%}}@media screen and (min-width:480px){.cart-table-item__amount{width:calc((100% - 24px)/2);justify-content:flex-end}}@media screen and (min-width:768px){.cart-table-item__amount{width:120px;justify-content:center}}@media screen and (max-width:479.98px){.cart-table-item__price{width:100%}}@media screen and (min-width:480px){.cart-table-item__price{text-align:right;width:100%}}@media screen and (max-width:767.98px){.cart-table-item__price{display:flex;justify-content:space-between;align-items:center}.cart-table-item__price .price--stacked{flex-direction:row;align-items:baseline;gap:4px}.cart-table-item__price .price--stacked .price__value,.cart-table-item__price .price--stacked .price__vat{line-height:unset}}@media screen and (min-width:768px){.cart-table-item__price{width:110px;text-align:right}}.cart-table-item__price strong{font-size:16px;font-weight:600;line-height:28px}.cart-table-item__price--coupon{width:fit-content}.cart-table-item__price--coupon strong{white-space:nowrap}.cart-table-item__vat-label{display:block;font-size:13px;font-weight:400;line-height:18px;color:#6e757c}.cart-table-item__remove{color:#6e757c;cursor:pointer}@media screen and (max-width:1279.98px){.cart-table-item__remove{position:absolute;right:0;top:0}.cart-table-item__remove a{display:flex;align-items:center;justify-content:center;width:32px;height:32px}}@media screen and (min-width:1280px){.cart-table-item__remove{width:20px;text-align:right}.cart-table-item__remove a{display:flex}}.cart-table-item__bottom{width:calc(100% + 80px);margin-left:-80px}@media screen and (min-width:480px){.cart-table-item__bottom{width:calc(100% + 100px);margin-left:-100px}}@media screen and (min-width:768px){.cart-table-item__bottom{width:100%;margin-left:0}}.cart-table-item__bottom .alert{margin:0}.cart-table-item__label{margin-bottom:4px;font-size:12px;font-weight:500;color:#6e757c}@media screen and (max-width:767.98px){.cart-table-item__label--total{font-size:14px}}@media screen and (min-width:1280px){.cart-table-item__label{display:none}}.cart-table-item__availability .availability .availability__text{font-size:16px}.cart-table-item__store-availability{margin-top:4px;font-size:16px}.cart-table-item__store-availability a{cursor:pointer;text-decoration:underline}.cart-table-item__store-availability a:hover,.cart-table-item__store-availability a:focus{text-decoration:none}.cart-table-coupon{color:#a56830}.cart-table-coupon cmp-price .price__value,.cart-table-coupon cmp-price .price__vat{font-size:inherit;font-weight:inherit;line-height:inherit;color:inherit}@media screen and (min-width:1280px){.cart{margin:0 20px}}.cart__header{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px 16px;margin-bottom:32px}.cart__header .cart__title{margin-bottom:0}.cart__title,.cart .table{margin-bottom:32px}.cart__in{display:grid;grid-template-columns:1fr;grid-gap:32px;margin-bottom:32px}@media screen and (min-width:920px){.cart__in{grid-template-columns:1fr auto;align-items:start}}@media screen and (min-width:1280px){.cart__in{grid-template-columns:1fr 440px}}.cart__main--step3 .user-data__section{margin-bottom:0;padding-bottom:0;border:none}.cart__main--step3 .user-data__wrapper{padding-bottom:32px;margin-bottom:32px;border-bottom:1px solid #D0D6DE}@media screen and (min-width:920px){.cart__main--step3 .user-data__wrapper{max-width:580px}}@media screen and (min-width:600px){.cart__main--step3 .user-data__item{display:grid;align-items:center;grid-template-columns:120px 1fr;gap:40px}}@media screen and (min-width:920px){.cart__main--step3 .user-data__item .form-input{min-width:300px}}@media screen and (min-width:1280px){.cart__main--step3 .user-data__item .form-input{min-width:340px}}@media screen and (min-width:920px){.cart__side{position:sticky;top:80px}}@media screen and (min-width:1280px){.cart__side{top:24px}}.cart__side--thx{position:relative}.cart__actions{display:flex;flex-direction:column;align-items:center;row-gap:20px}@media screen and (min-width:768px){.cart__actions{flex-direction:row;justify-content:space-between;align-items:baseline;column-gap:20px}}
15.cart__actions-btns{display:flex;column-gap:80px}@media screen and (max-width:919.98px){.cart__actions-btns{column-gap:20px}}@media screen and (max-width:767.98px){.cart__actions-btns{flex-direction:column;align-items:center;row-gap:20px;width:100%}.cart__actions-btns .btn{width:100%}}.cart__actions-b2b{display:flex;column-gap:20px}@media screen and (max-width:767.98px){.cart__actions-b2b{flex-direction:column;align-items:center;row-gap:20px;width:100%}.cart__actions-b2b .btn{width:100%}}.cart__back{display:inline-flex;align-items:center;column-gap:4px;color:#cb2c30}.cart__back .icon{width:8px;transform:rotate(-180deg)}.cart__back:hover{text-decoration:none}.cart__next{margin-bottom:16px}@media screen and (max-width:767.98px){.cart__next{width:100%}}@media screen and (min-width:768px){.cart__next{margin-bottom:0}}.cart__next--finish{flex-direction:column}.cart__next--finish span{font-size:10px}.cart__alert{margin-bottom:20px}@media screen and (min-width:1280px){.cart__alert{margin-bottom:32px}}.cart__notice{display:flex;justify-content:flex-end}
16`],encapsulation:2})}}return i})();var de=i=>[i],pe=(i,l)=>({withVat:i,withoutVat:l});function Nr(i,l){if(i&1&&(o(0,"div",33),_(1,"cmp-alert",34),c()),i&2){let t=s(5);n(),p("message",t.sen["cart-product-not-buyable"])("alertType","info")}}function Br(i,l){if(i&1&&(o(0,"div",11)(1,"div",16)(2,"a",17),_(3,"cmp-picture",18),c(),o(4,"div",19)(5,"a",20),d(6),c(),o(7,"div",21),d(8),c(),_(9,"cmp-product-flags",22),o(10,"div",23),_(11,"cmp-availability",24),c()()(),o(12,"div",25),_(13,"cmp-availability",24),c(),o(14,"div",26)(15,"div",27),d(16),c(),_(17,"cmp-price",28),c(),o(18,"div",29),d(19),_(20,"div",30),c(),o(21,"div",31)(22,"div",32),d(23),c(),o(24,"strong"),_(25,"cmp-price",28),c()(),_(26,"div",13),x(27,Nr,2,2,"div",33),c()),i&2){let t=l.$implicit,e=s(2).$implicit,a=s(2);p("id","cart-offer"+e.offerId+"-product-"+t.code),n(2),p("routerLink",xt(31,de,"/v/"+t.id+"/"+(t.productDetail==null?null:t.productDetail.seoUrl))),n(),p("imagePath",t.productDetail==null?null:t.productDetail.imagePath)("fotoCacheKey",a.isExternalImage(t.productDetail==null?null:t.productDetail.imagePath)?"ext/cart_product":"cart_product")("width",80)("height",80)("alt",t.name),n(2),p("routerLink",xt(33,de,"/v/"+t.productId+"/"+t.code)),n(),u(" ",t.name," "),n(2),D(t.code),n(),p("displayType","list")("displayModel",a.castToProductDetailModel(t.productDetail)),n(2),p("type","simple")("qtyInStock",t==null||t.productDetail==null?null:t.productDetail.qtyInStock)("minQtyOrder",t==null||t.productDetail==null?null:t.productDetail.minQtyOrder)("availabilityName",t==null||t.productDetail==null||t.productDetail.availability==null?null:t.productDetail.availability.name)("unitShortCut",t==null||t.productDetail==null||t.productDetail.unit==null?null:t.productDetail.unit.shortCut),n(2),p("type","simple")("qtyInStock",t==null||t.productDetail==null?null:t.productDetail.qtyInStock)("minQtyOrder",t==null||t.productDetail==null?null:t.productDetail.minQtyOrder)("availabilityName",t==null||t.productDetail==null||t.productDetail.availability==null?null:t.productDetail.availability.name)("unitShortCut",t==null||t.productDetail==null||t.productDetail.unit==null?null:t.productDetail.unit.shortCut),n(3),u(" ",a.sen["cart-header-unit-price"]," "),n(),p("price",N(35,pe,e.productDetail==null?null:e.productDetail.priceWithVAT,e.productDetail==null?null:e.productDetail.priceWithoutVAT))("isStacked",!0),n(2),u(" ",t.count," "),n(),p("innerHTML",e.productDetail==null?null:e.productDetail.unit.shortCut,at),n(3),u(" ",a.sen["cart-header-row-price"]," "),n(2),p("price",N(38,pe,t.priceWithVat*t.count,t.priceWithoutVat*t.count))("isStacked",!0),n(2),f(t.productDetail!=null&&t.productDetail.discontinued||t.productDetail!=null&&t.productDetail.disabled?27:-1)}}function Lr(i,l){if(i&1){let t=w();o(0,"div",10)(1,"a",12),d(2),c(),o(3,"div",13)(4,"a",14),b("click",function(){v(t);let a=s().$implicit,r=s(2);return y(r.removeFromCart(a.id))}),_(5,"cmp-svg",15),c()(),B(6,Br,28,41,"div",11,K),c()}if(i&2){let t=s().$implicit,e=s(2);p("id","cart-offer-"+t.offerId),n(),p("routerLink","/muj-ucet/nabidka/"+t.offerId),n(),q("",e.sen["offer-detail-title"]," ",t.offerId),n(2),p("title",e.sen["cart-item-remove"]),n(2),L(t.offerDetail.offerItems)}}function Or(i,l){if(i&1){let t=w();o(0,"div",35),d(1),o(2,"a",37),b("click",function(){v(t);let a=s(2).$implicit,r=s(2);return y(r.showStoreAvailabilityDialog(a))}),d(3),c()()}if(i&2){let t=l;n(),u(" ",t.prefix),n(2),D(t.linkText)}}function Wr(i,l){if(i&1){let t=w();o(0,"div",35),d(1),o(2,"a",37),b("click",function(){v(t);let a=s(2).$implicit,r=s(2);return y(r.showStoreAvailabilityDialog(a))}),d(3),c()()}if(i&2){let t=l;n(),u(" ",t.prefix),n(2),D(t.linkText)}}function Rr(i,l){if(i&1&&(o(0,"div",33),_(1,"cmp-alert",34),c()),i&2){let t=s(4);n(),p("message",t.sen["cart-product-not-buyable"])("alertType","info")}}function Ur(i,l){if(i&1){let t=w();o(0,"div",11)(1,"div",16)(2,"a",17),_(3,"cmp-picture",18),c(),o(4,"div",19)(5,"a",20),d(6),c(),o(7,"div",21),d(8),c(),_(9,"cmp-product-flags",22),o(10,"div",23),_(11,"cmp-availability",24),x(12,Or,4,2,"div",35),c()()(),o(13,"div",25),_(14,"cmp-availability",24),x(15,Wr,4,2,"div",35),c(),o(16,"div",26)(17,"div",27),d(18),c(),_(19,"cmp-price",28),c(),o(20,"div",29)(21,"cmp-product-amount",36,0),Pe(23,"VariantAmount"),b("amountChanged",function(a){v(t);let r=s().$implicit,h=s(2);return y(h.onAmountChange(a,r.id))}),c(),_(24,"div",30),c(),o(25,"div",31)(26,"div",32),d(27),c(),o(28,"strong"),_(29,"cmp-price",28),c()(),o(30,"div",13)(31,"a",14),b("click",function(){v(t);let a=s().$implicit,r=s(2);return y(r.removeFromCart(a.id))}),_(32,"cmp-svg",15),c()(),x(33,Rr,2,2,"div",33),c()}if(i&2){let t,e,a=St(22),r=s().$implicit,h=s(2);p("id","cart-product-"+(r.productDetail==null?null:r.productDetail.code)),n(),O("js-invalid-product",(r.productDetail==null?null:r.productDetail.discontinued)||(r.productDetail==null?null:r.productDetail.disabled)||!a.isValid),n(),p("routerLink",xt(41,de,"/v/"+(r.productDetail==null?null:r.productDetail.id)+"/"+(r.productDetail==null?null:r.productDetail.seoUrl))),n(),p("imagePath",r.productDetail==null?null:r.productDetail.imagePath)("fotoCacheKey",h.isExternalImage(r.productDetail==null?null:r.productDetail.imagePath)?"ext/cart_product":"cart_product")("width",80)("height",80)("alt",r.productDetail==null?null:r.productDetail.name),n(2),p("routerLink",xt(43,de,"/v/"+(r.productDetail==null?null:r.productDetail.id)+"/"+(r.productDetail==null?null:r.productDetail.seoUrl))),n(),u(" ",r.productDetail==null?null:r.productDetail.name," "),n(2),D(r.productDetail==null?null:r.productDetail.code),n(),p("displayType","list")("displayModel",r.productDetail),n(2),p("type","simple")("qtyInStock",r==null||r.productDetail==null?null:r.productDetail.qtyInStock)("minQtyOrder",r==null||r.productDetail==null?null:r.productDetail.minQtyOrder)("availabilityName",r==null||r.productDetail==null||r.productDetail.availability==null?null:r.productDetail.availability.name)("unitShortCut",r==null||r.productDetail==null||r.productDetail.unit==null?null:r.productDetail.unit.shortCut),n(),f((t=h.storesAvailPartsByVariantId.get(r.productDetail==null?null:r.productDetail.id))?12:-1,t),n(2),p("type","simple")("qtyInStock",r==null||r.productDetail==null?null:r.productDetail.qtyInStock)("minQtyOrder",r==null||r.productDetail==null?null:r.productDetail.minQtyOrder)("availabilityName",r==null||r.productDetail==null||r.productDetail.availability==null?null:r.productDetail.availability.name)("unitShortCut",r==null||r.productDetail==null||r.productDetail.unit==null?null:r.productDetail.unit.shortCut),n(),f((e=h.storesAvailPartsByVariantId.get(r.productDetail==null?null:r.productDetail.id))?15:-1,e),n(3),u(" ",h.sen["cart-header-unit-price"]," "),n(),p("price",N(45,pe,r.productDetail==null?null:r.productDetail.priceWithVAT,r.productDetail==null?null:r.productDetail.priceWithoutVAT))("isStacked",!0),n(2),p("isDisabled",h.cartSvc.changeCountProgress)("showProgress",h.cartSvc.changeCountItemId===r.id)("settings",Pi(23,39,r.productDetail))("amount",r.count),n(3),p("innerHTML",r.productDetail==null?null:r.productDetail.unit.shortCut,at),n(3),u(" ",h.sen["cart-header-row-price"]," "),n(2),p("price",N(48,pe,(r.productDetail==null?null:r.productDetail.priceWithVAT)*r.count,(r.productDetail==null?null:r.productDetail.priceWithoutVAT)*r.count))("isStacked",!0),n(2),p("title",h.sen["cart-item-remove"]),n(2),f(r.productDetail!=null&&r.productDetail.discontinued||r.productDetail!=null&&r.productDetail.disabled?33:-1)}}function Gr(i,l){if(i&1&&x(0,Lr,8,5,"div",10)(1,Ur,34,51,"div",11),i&2){let t=l.$implicit;f(t.offerDetail?0:1)}}function Hr(i,l){if(i&1&&(o(0,"div",39)(1,"div",42),d(2),c()()),i&2){let t=s().$implicit,e=s(3);n(2),ue(" ",t.giftProductDetail==null?null:t.giftProductDetail.product.variants[0].qtyInStock," ",e.sen["app-pcs"]," ",e.sen["product-in-stock"]," ")}}function $r(i,l){if(i&1&&(o(0,"div",40),d(1),c()),i&2){let t=s(4);n(),u(" ",t.sen["product-not-in-stock"]," ")}}function Kr(i,l){if(i&1&&(o(0,"div",39)(1,"div",42),d(2),c()()),i&2){let t=s().$implicit,e=s(3);n(2),ue(" ",t.giftProductDetail==null?null:t.giftProductDetail.product.variants[0].qtyInStock," ",e.sen["app-pcs"]," ",e.sen["product-in-stock"]," ")}}function qr(i,l){if(i&1&&(o(0,"div",41),d(1),c()),i&2){let t=s(4);n(),u(" ",t.sen["product-not-in-stock"]," ")}}function Qr(i,l){if(i&1&&(o(0,"div",33),_(1,"cmp-alert",34),c()),i&2){let t=s(4);n(),p("message",t.sen["cart-product-not-buyable"])("alertType","info")}}function Zr(i,l){if(i&1){let t=w();o(0,"div",38)(1,"div",16)(2,"a",17),_(3,"cmp-picture",18),c(),o(4,"div",19)(5,"a",20),d(6),c(),o(7,"div",23),x(8,Hr,3,3,"div",39)(9,$r,2,1,"div",40),c()()(),o(10,"div",25),x(11,Kr,3,3,"div",39)(12,qr,2,1,"div",41),c(),o(13,"div",26),_(14,"cmp-price",28),c(),o(15,"div",29),d(16),c(),o(17,"div",31)(18,"strong"),_(19,"cmp-price",28),c()(),o(20,"div",13)(21,"a",14),b("click",function(){let a=v(t).$implicit,r=s(3);return y(r.removeGiftFromCart(a.id))}),_(22,"cmp-svg",15),c()(),x(23,Qr,2,2,"div",33),c()}if(i&2){let t=l.$implicit,e=s(3);n(2),p("routerLink",xt(17,de,"/v/"+(t.giftProductDetail==null?null:t.giftProductDetail.product.variants[0].id)+"/"+(t.giftProductDetail==null?null:t.giftProductDetail.product.variants[0].seoUrl))),n(),p("imagePath",t.giftProductDetail==null?null:t.giftProductDetail.product.variants[0].imagePath)("fotoCacheKey",e.isExternalImage(t.giftProductDetail==null?null:t.giftProductDetail.product.variants[0].imagePath)?"ext/cart_product":"cart_product")("width",80)("height",80)("alt",t.giftProductDetail==null?null:t.giftProductDetail.product.variants[0].name),n(2),p("routerLink",xt(19,de,"/v/"+(t.giftProductDetail==null?null:t.giftProductDetail.product.variants[0].id)+"/"+(t.giftProductDetail==null?null:t.giftProductDetail.product.variants[0].seoUrl))),n(),u(" ",t.giftProductDetail==null?null:t.giftProductDetail.product.variants[0].name," "),n(2),f((t.giftProductDetail==null?null:t.giftProductDetail.product.variants[0].qtyInStock)>0?8:9),n(3),f((t.giftProductDetail==null?null:t.giftProductDetail.product.variants[0].qtyInStock)>
160?11:12),n(3),p("price",N(21,pe,t.giftProductDetail==null?null:t.giftProductDetail.product.variants[0].priceWithVAT,t.giftProductDetail==null?null:t.giftProductDetail.product.variants[0].priceWithoutVAT))("isStacked",!0),n(2),u(" 1 ",t.giftProductDetail==null||t.giftProductDetail.product.variants[0].unit==null?null:t.giftProductDetail.product.variants[0].unit.shortCut," "),n(3),p("price",N(24,pe,t.giftProductDetail==null?null:t.giftProductDetail.product.variants[0].priceWithVAT,t.giftProductDetail==null?null:t.giftProductDetail.product.variants[0].priceWithoutVAT))("isStacked",!0),n(2),p("title",e.sen["cart-item-remove"]),n(2),f(t.giftProductDetail.product.variants[0].discontinued||t.giftProductDetail.product.variants[0].disabled?23:-1)}}function Yr(i,l){if(i&1&&B(0,Zr,24,27,"div",38,K),i&2){let t=s(2);L(t.chosenGiftList)}}function Jr(i,l){if(i&1&&(o(0,"span"),d(1),c()),i&2){let t=s().$implicit;n(),D(t.couponDetail!=null&&t.couponDetail.percent?t.couponDetail.percent+" %":"")}}function Xr(i,l){if(i&1&&(o(0,"span"),_(1,"cmp-price",48),c()),i&2){let t=s().$implicit,e=s(3);n(),p("price",e.getCouponValuePrice(t))}}function to(i,l){if(i&1){let t=w();o(0,"div",43)(1,"div",16)(2,"div",44),_(3,"img",45),c(),o(4,"div",19)(5,"div",46),d(6),o(7,"strong"),d(8),c(),d(9),x(10,Jr,2,1,"span"),x(11,Xr,2,1,"span"),c()()(),o(12,"div",47)(13,"strong"),d(14," - "),_(15,"cmp-price",48),c()(),o(16,"div",13)(17,"a",14),b("click",function(){let a=v(t).$implicit,r=s(3);return y(r.removeFromCart(a.id))}),_(18,"cmp-svg",15),c()()()}if(i&2){let t=l.$implicit,e=s(3);n(6),u(" ",e.sen["cart-coupon-title"]," "),n(2),D(t.couponDetail==null?null:t.couponDetail.code),n(),q(" (",t.couponDetail==null?null:t.couponDetail.name,") ",e.sen["coupon-value"]," "),n(),f(t.couponDetail!=null&&t.couponDetail.percent?10:-1),n(),f(t.couponDetail!=null&&t.couponDetail.percent?-1:11),n(4),p("price",e.getCouponImpactPrice(t)),n(2),p("title",e.sen["cart-item-remove"])}}function eo(i,l){if(i&1&&B(0,to,19,8,"div",43,K),i&2){let t=s(2);L(t.coupons)}}function io(i,l){if(i&1&&(o(0,"div",1)(1,"div",2)(2,"div",3),d(3),c(),o(4,"div",4),d(5),c(),o(6,"div",5),d(7),c(),o(8,"div",6),d(9),c(),o(10,"div",7),d(11),c(),_(12,"div",8),c(),o(13,"div",9),B(14,Gr,2,1,null,null,K),x(16,Yr,2,0),x(17,eo,2,0),c()()),i&2){let t=s();n(3),u(" ",t.sen["cart-header-product"]," "),n(2),u(" ",t.sen["cart-header-stock"]," "),n(2),u(" ",t.sen["cart-header-unit-price"]," "),n(2),u(" ",t.sen["cart-header-amount"]," "),n(2),u(" ",t.sen["cart-header-row-price"]," "),n(3),L(t.productList()),n(2),f(t.showGifts&&(t.chosenGiftList==null?null:t.chosenGiftList.length)>0?16:-1),n(),f(t.showCoupons&&(t.coupons==null?null:t.coupons.length)>0?17:-1)}}var Ge=(()=>{class i extends E{constructor(t,e,a,r,h,g){super(t,e),this.cartSvc=a,this.priceVatSvc=r,this.generalDialogSvc=h,this.storesAvailSvc=g,this.productList=Ai([]),this.chosenGiftList=[],this.showGifts=!0,this.showCoupons=!0,this.storesByVariantId=new Map,this.storesAvailPartsByVariantId=new Map,xi(()=>{this.productList(),this.loadStoreAvailability()})}isExternalImage(t){return!xe(t)}onAmountChange(t,e){this.cartSvc.changeCountItemId=e;let a={count:t.amount,id:e,fromCart:!0,offerId:null};this.cartSvc.changeCount(a)}removeFromCart(t){if(this.dataSvc.dataLoading)return;let e={count:0,id:t,fromCart:!0,offerId:null};this.cartSvc.removeFromCart(e)}removeGiftFromCart(t){this.removeFromCart(t)}castToProductVariant(t){return t}castToProductDetailModel(t){return t?{variantsCount:1,productFlags:t.productFlags,variantKey:t.variantKey,discontinued:t.discontinued}:null}getCouponValuePrice(t){let e=t?.couponDetail?.value;return{withVat:e,withoutVat:this.priceVatSvc.getPriceWithoutVat(e)}}getCouponImpactPrice(t){let e=t?.couponDetail?.couponImpactOnOrderPrice,a=t?.couponDetail?.couponImpactOnOrderPriceWithoutVAT;return{withVat:e,withoutVat:this.getValidPrice(a,this.priceVatSvc.getPriceWithoutVat(e))}}showStoreAvailabilityDialog(t){let e=t?.productDetail?.id;if(e==null)return;let a={data:{stores:this.storesByVariantId.get(e)??[],minQtyOrder:t.productDetail?.minQtyOrder,unitShortCut:t.productDetail?.unit?.shortCut,availabilityName:""},cssClassModifier:"stores-avail",isCloseAble:!0,title:this.sen["stores-avail-dialog-title"]};this.generalDialogSvc.open(aa,a)}loadStoreAvailability(){let t=(this.productList()??[]).filter(e=>
16!e.offerDetail&&e.productDetail?.id!=null).map(e=>e.productDetail.id);this.storesByVariantId.clear(),this.storesAvailPartsByVariantId.clear(),t.length!==0&&this.storesAvailSvc.getStoresAvailForProducts(t).pipe(M(1)).subscribe(e=>{let a=this.sen["detail-stores-avail"],r=e??[];for(let h of t){let g=r.filter(j=>j.productId===h),V=g.filter(j=>j.quantity>0).length;V!==0&&(this.storesByVariantId.set(h,g),this.storesAvailPartsByVariantId.set(h,this.storesAvailSvc.formatStoresAvailParts(a,V)))}})}getValidPrice(t,e){let a=Number(t);return isFinite(a)&&a!==0?a:e}static{this.\u0275fac=function(e){return new(e||i)(m(P),m(I),m(T),m(Bt),m(Zt),m(na))}}static{this.\u0275cmp=C({type:i,selectors:[["cmp-cart-product-list"]],inputs:{productList:[1,"productList"],chosenGiftList:"chosenGiftList",coupons:"coupons",showGifts:"showGifts",showCoupons:"showCoupons"},standalone:!1,features:[k],decls:1,vars:1,consts:[["amount",""],[1,"cart-table"],[1,"cart-table__head"],[1,"cart-table__col","cart-table__col--product"],[1,"cart-table__col","cart-table__col--availability"],[1,"cart-table__col","cart
16-table__col--unit-price"],[1,"cart-table__col","cart-table__col--amount"],[1,"cart-table__col","cart-table__col--price"],[1,"cart-table__col","cart-table__col--remove"],[1,"cart-table__body"],[1,"cart-table-item",2,"background-color","white","box-shadow","10px 10px 10px rgba(0,0,0,0.3)","border","2px solid #555555","border-radius","10px",3,"id"],[1,"cart-table-item",3,"id"],[2,"font-weight","bold","font-size","2em",3,"routerLink"],[1,"cart-table-item__remove"],["href","javascript:void(0);",3,"click","title"],["symbolId","trash"],[1,"cart-table-item__main"],[1,"cart-table-item__image",3,"routerLink"],[3,"imagePath","fotoCacheKey","width","height","alt"],[1,"cart-table-item__content"],[1,"cart-table-item__title",3,"routerLink"],[1,"cart-table-item__code"],[3,"displayType","displayModel"],[1,"cart-table-item__availability","cart-table-item__availability--mobile"],[3,"type","qtyInStock","minQtyOrder","availabilityName","unitShortCut"],[1,"cart-table-item__availability","cart-table-item__availability--desktop"],[1,"cart-table-item__unit-price"],[1,"cart-table-item__label"],[3,"price","isStacked"],[1,"cart-table-item__amount"],[1,"cart-table-item__unit",3,"innerHTML"],[1,"cart-table-item__price"],[1,"cart-table-item__label","cart-table-item__label--total"],[1,"cart-table-item__bottom"],[3,"message","alertType"],[1,"cart-table-item__store-availability"],[3,"amountChanged","isDisabled","showProgress","settings","amount"],[3,"click"],[1,"cart-table-item"],[1,"availability","availability--simple","availability--green"],[1,"availability","availability--red"],[1,"availability","table__availability--red"],[1,"availability__text"],[1,"cart-table-item","cart-table-item--coupon"],[1,"cart-table-item__image"],["src","/app/assets/img/img-coupon.png","alt",""],[1,"cart-table-coupon"],[1,"cart-table-item__price","cart-table-item__price--coupon"],[3,"price"]],template:function(e,a){if(e&1&&x(0,io,18,7,"div",1),e&2){let r;f(((r=a.productList())==null?null:r.length)>0||(a.coupons==null?null:a.coupons.length)>0?0:-1)}},dependencies:[rt,dt,$i,Ne,vt,tt,Et,Qi,qi],styles:[`.cart .quick-order{margin-bottom:32px}.cart__bottom{display:flex;margin-bottom:30px}@media screen and (max-width:1279.98px){.cart__bottom{flex-direction:column;row-gap:8px}}@media screen and (min-width:1280px){.cart__bottom{flex-direction:row;align-items:center;justify-content:space-between}}.cart .cart-coupon{margin-bottom:16px}@media screen and (min-width:1280px){.cart .cart-coupon{margin-bottom:0}}
17`,`.cart-coupon{position:relative}.cart-coupon__toggle{margin-bottom:12px}.cart-coupon__form{display:flex;column-gap:8px}.cart-coupon__input{flex:1}@media screen and (min-width:920px){.cart-coupon__input{width:300px}}.cart-gifts{display:flex;flex-direction:column;row-gap:32px;margin-bottom:32px}.cart-gifts__section{display:flex;flex-direction:column;row-gap:12px}.cart-gifts__title{display:flex;align-items:center;column-gap:8px;font-weight:600}.cart-gifts__title .icon{font-size:8px}.cart-gifts__list{display:grid}@media screen and (max-width:767.98px){.cart-gifts__list{grid-template-columns:repeat(2,1fr);grid-gap:12px}}@media screen and (min-width:768px){.cart-gifts__list{grid-template-columns:repeat(4,1fr);grid-gap:16px}}@media screen and (min-width:1280px){.cart-gifts__list{grid-template-columns:repeat(6,1fr)}}.cart-gifts-item{height:100%}.cart-gifts-item--disabled{opacity:.5}.cart-gifts-item--disabled .cart-gifts-item__label{cursor:auto}.cart-gifts-item:not(.cart-gifts-item--disabled) .cart-gifts-item__label:hover{box-shadow:0 3px 12px #00000040;border-color:transparent}.cart-gifts-item__input{display:none}.cart-gifts-item__input:checked+.cart-gifts-item__label{border-color:#4d9cde;box-shadow:0 3px 12px #00000040}.cart-gifts-item__label{display:flex;flex-direction:column;row-gap:12px;padding:16px;height:100%;background-color:#fff;transition:box-shadow .3s ease,border-color .3s ease;border-radius:8px;box-shadow:0 1px 4px #00000014;cursor:pointer}.cart-gifts-item__image{display:flex;align-items:center;justify-content:center}.cart-gifts-item__image picture{display:flex;align-items:center;justify-content:center;aspect-ratio:1/1}.cart-gifts-item__image picture img{width:100%;height:100%;object-fit:contain}.cart-gifts-item__content{display:flex;flex-direction:column;justify-content:space-between;row-gap:8px;flex:1}.cart-gifts-item__title{line-height:1.5;text-decoration:none;font-weight:500;color:#2b3848}.cart-gifts-item__prices{display:flex;flex-direction:column;gap:4px}.cart-gifts-item__price{margin-top:auto;color:#2b8800;font-weight:600}.cart-login{display:flex;flex-direction:row;align-items:center;column-gap:16px;margin-bottom:32px;padding:0 16px;min-height:60px;background-color:#fff;border:1px solid #D0D6DE;border-radius:6px;box-shadow:0 2px 6px #2b38481a}.cart-login__icon{flex-shrink:0}.cart-login__icon .icon{display:flex;width:24px;height:24px;color:#6e757c}.cart-login__icon .icon svg{width:100%;height:100%}.cart-login__text{font-weight:500}.cart-login__link{color:#cb2c30;text-decoration:underline}.cart-login__link:hover{text-decoration:none}.cart-price{display:flex;justify-content:flex-end;margin-bottom:30px}.cart-price__in{display:flex;flex-direction:column;gap:4px;width:100%;padding:20px 24px;background-color:#f5f7f9;border-radius:6px}@media screen and (min-width:768px){.cart-price__in{max-width:460px}}.cart-price__item{display:flex;align-items:center;justify-content:space-between;column-gap:16px}.cart-price__item:first-child .cart-price__label{font-size:18px;font-weight:700;line-height:26px;color:#000}.cart-price__item:first-child cmp-price .price__value{font-size:18px;font-weight:700;line-height:26px;color:#000}.cart-price__item:last-child .cart-price__label{font-size:14px;font-weight:400;line-height:26px;color:#6b6f73}.cart-price__item:last-child cmp-price .price__value{font-size:14px;font-weight:400;line-height:26px;color:#6b6f73}.cart-table{margin-bottom:32px}.cart-table__head{display:none}@media screen and (min-width:1280px){.cart-table__head{display:flex;align-items:center;column-gap:20px;padding:12px 20px;border-bottom:1px solid #D9E0EC;font-size:13px;font-weight:500;color:#6e757c}}@media screen and (min-width:1440px){.cart-table__head{column-gap:40px}}.cart-table__col--product{flex:1;min-width:1px}
17.cart-table__col--availability{width:200px;text-align:center}.cart-table__col--unit-price{width:110px;text-align:right}.cart-table__col--amount{width:120px;text-align:center}.cart-table__col--price{width:110px;text-align:right}.cart-table__col--remove{width:20px}.cart-table-item{display:flex;align-items:center;flex-wrap:wrap;position:relative;padding:16px 16px 16px 96px;border-bottom:1px solid #D9E0EC}@media screen and (max-width:767.98px){.cart-table-item{gap:8px 12px;padding:24px 16px 24px 64px}}@media screen and (min-width:768px){.cart-table-item{gap:12px;padding:20px}}@media screen and (min-width:1280px){.cart-table-item{column-gap:20px}}@media screen and (min-width:1440px){.cart-table-item{column-gap:40px}}@media screen and (max-width:767.98px){.cart-table-item--coupon{flex-direction:row;flex-wrap:nowrap}}.cart-table-item__main{display:flex}@media screen and (max-width:767.98px){.cart-table-item__main{align-items:flex-start;column-gap:8px;width:calc(100% + 48px);margin-left:-48px}}@media screen and (min-width:768px){.cart-table-item__main{align-items:center;column-gap:12px;flex:1;width:auto;min-width:1px;margin-left:0}}.cart-table-item__image{flex-shrink:0}@media screen and (max-width:767.98px){.cart-table-item__image{width:40px}}@media screen and (min-width:768px){.cart-table-item__image{width:80px}}.cart-table-item__image picture{display:block}.cart-table-item__image img{border-radius:6px}.cart-table-item__content{display:flex;flex-direction:column;flex:1;min-width:1px;row-gap:8px}.cart-table-item__title{font-size:16px;font-weight:500;line-height:28px;color:#2b3848}.cart-table-item__title:hover{text-decoration:none}.cart-table-item__code{font-size:13px;font-weight:500;line-height:18px;color:#6e757c}.cart-table-item__availability--desktop{width:200px}.cart-table-item__availability--desktop .availability--simple{align-items:center}@media screen and (max-width:1279.98px){.cart-table-item__availability--desktop{display:none}}@media screen and (max-width:1279.98px){.cart-table-item__availability--mobile{font-size:13px}}@media screen and (min-width:1280px){.cart-table-item__availability--mobile{display:none}}.cart-table-item__unit{font-size:12px;font-weight:600;line-height:1.4;color:#6e757c}.cart-table-item__store-availability{margin-top:4px;font-size:14px;font-weight:400;line-height:22px;color:#2b3848}@media screen and (min-width:1280px){.cart-table-item__store-availability{text-align:center}}.cart-table-item__store-availability span{text-decoration:underline}@media screen and (max-width:479.98px){.cart-table-item__unit-price{width:100%}}@media screen and (min-width:480px){.cart-table-item__unit-price{width:calc((100% - 24px)/2)}}@media screen and (max-width:767.98px){.cart-table-item__unit-price .price--stacked{flex-direction:row;align-items:baseline;gap:4px}.cart-table-item__unit-price .price--stacked .price__value,.cart-table-item__unit-price .price--stacked .price__vat{line-height:unset}}@media screen and (min-width:768px){.cart-table-item__unit-price{width:110px;text-align:right}}.cart-table-item__amount{display:flex;align-items:center;column-gap:4px}@media screen and (max-width:479.98px){.cart-table-item__amount{width:100%}}@media screen and (min-width:480px){.cart-table-item__amount{width:calc((100% - 24px)/2);justify-content:flex-end}}@media screen and (min-width:768px){.cart-table-item__amount{width:120px;justify-content:center}}@media screen and (max-width:479.98px){.cart-table-item__price{width:100%}}@media screen and (min-width:480px){.cart-table-item__price{text-align:right;width:100%}}@media screen and (max-width:767.98px){.cart-table-item__price{display:flex;justify-content:space-between;align-items:center}.cart-table-item__price .price--stacked{flex-direction:row;align-items:baseline;gap:4px}.cart-table-item__price .price--stacked .price__value,.cart-table-item__price .price--stacked .price__vat{line-height:unset}}@media screen and (min-width:768px){.cart-table-item__price{width:110px;text-align:right}}.cart-table-item__price strong{font-size:16px;font-weight:600;line-height:28px}.cart-table-item__price--coupon{width:fit-content}.cart-table-item__price--coupon strong{white-space:nowrap}.cart-table-item__vat-label{display:block;font-size:13px;font-weight:400;line-height:18px;color:#6e757c}.cart-table-item__remove{color:#6e757c;cursor:pointer}@media screen and (max-width:1279.98px){.cart-table-item__remove{position:absolute;right:0;top:0}.cart-table-item__remove a{display:flex;align-items:center;justify-content:center;width:32px;height:32px}}@media screen and (min-width:1280px){.cart-table-item__remove{width:20px;text-align:right}.cart-table-item__remove a{display:flex}}.cart-table-item__bottom{width:calc(100% + 80px);margin-left:-80px}@media screen and (min-width:480px){.cart-table-item__bottom{width:calc(100% + 100px);margin-left:-100px}}@media screen and (min-width:768px){.cart-table-item__bottom{width:100%;margin-left:0}}.cart-table-item__bottom .alert{margin:0}.cart-table-item__label{margin-bottom:4px;font-size:12px;font-weight:500;color:#6e757c}@media screen and (max-width:767.98px){.cart-table-item__label--total{font-size:14px}}@media screen and (min-width:1280px){.cart-table-item__label{display:none}}
17.cart-table-item__availability .availability .availability__text{font-size:16px}.cart-table-item__store-availability{margin-top:4px;font-size:16px}.cart-table-item__store-availability a{cursor:pointer;text-decoration:underline}.cart-table-item__store-availability a:hover,.cart-table-item__store-availability a:focus{text-decoration:none}.cart-table-coupon{color:#a56830}.cart-table-coupon cmp-price .price__value,.cart-table-coupon cmp-price .price__vat{font-size:inherit;font-weight:inherit;line-height:inherit;color:inherit}@media screen and (min-width:1280px){.cart{margin:0 20px}}.cart__header{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px 16px;margin-bottom:32px}.cart__header .cart__title{margin-bottom:0}.cart__title,.cart .table{margin-bottom:32px}.cart__in{display:grid;grid-template-columns:1fr;grid-gap:32px;margin-bottom:32px}@media screen and (min-width:920px){.cart__in{grid-template-columns:1fr auto;align-items:start}}@media screen and (min-width:1280px){.cart__in{grid-template-columns:1fr 440px}}.cart__main--step3 .user-data__section{margin-bottom:0;padding-bottom:0;border:none}.cart__main--step3 .user-data__wrapper{padding-bottom:32px;margin-bottom:32px;border-bottom:1px solid #D0D6DE}@media screen and (min-width:920px){.cart__main--step3 .user-data__wrapper{max-width:580px}}@media screen and (min-width:600px){.cart__main--step3 .user-data__item{display:grid;align-items:center;grid-template-columns:120px 1fr;gap:40px}}@media screen and (min-width:920px){.cart__main--step3 .user-data__item .form-input{min-width:300px}}@media screen and (min-width:1280px){.cart__main--step3 .user-data__item .form-input{min-width:340px}}@media screen and (min-width:920px){.cart__side{position:sticky;top:80px}}@media screen and (min-width:1280px){.cart__side{top:24px}}.cart__side--thx{position:relative}.cart__actions{display:flex;flex-direction:column;align-items:center;row-gap:20px}@media screen and (min-width:768px){.cart__actions{flex-direction:row;justify-content:space-between;align-items:baseline;column-gap:20px}}.cart__actions-btns{display:flex;column-gap:80px}@media screen and (max-width:919.98px){.cart__actions-btns{column-gap:20px}}@media screen and (max-width:767.98px){.cart__actions-btns{flex-direction:column;align-items:center;row-gap:20px;width:100%}.cart__actions-btns .btn{width:100%}}.cart__actions-b2b{display:flex;column-gap:20px}@media screen and (max-width:767.98px){.cart__actions-b2b{flex-direction:column;align-items:center;row-gap:20px;width:100%}.cart__actions-b2b .btn{width:100%}}.cart__back{display:inline-flex;align-items:center;column-gap:4px;color:#cb2c30}.cart__back .icon{width:8px;transform:rotate(-180deg)}.cart__back:hover{text-decoration:none}.cart__next{margin-bottom:16px}@media screen and (max-width:767.98px){.cart__next{width:100%}}@media screen and (min-width:768px){.cart__next{margin-bottom:0}}.cart__next--finish{flex-direction:column}.cart__next--finish span{font-size:10px}.cart__alert{margin-bottom:20px}@media screen and (min-width:1280px){.cart__alert{margin-bottom:32px}}.cart__notice{display:flex;justify-content:flex-end}
18`,`.availability--red .availability__text{color:#dd202b}.availability--red .availability__text:before{background-color:#dd202b}.availability--green .availability__text{color:#018302}.availability--green .availability__text:before{background-color:#018302}.availability--orange .availability__text{color:#fa8e00}.availability--orange .availability__text:before{background-color:#fa8e00}.availability--simple{display:flex;flex-direction:column;align-items:flex-start}.availability--simple .availability__text{display:flex;align-items:center;gap:4px;font-size:13px;font-weight:700;line-height:18px}.availability--simple .availability__text:before{content:"";display:inline-block;flex-shrink:0;width:6px;height:6px;border-radius:50%}.availability--simple .availability__link{font-size:16px}.availability--extended{display:flex;align-items:center;column-gap:16px}.availability--extended.availability--green .availability__image{background-color:#4ba370}.availability--extended.availability--red .availability__image{background-color:#dd202b}.availability--extended.availability--orange .availability__image{background-color:#fa8e00}.availability--extended .availability__image{display:flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:50%;color:#fff}.availability--extended .availability__image .icon{width:20px}.availability--extended .availability__content{display:flex;flex-direction:column;align-items:flex-start;flex:1}.availability--extended .availability__text{font-size:18px;font-weight:600}
19`],encapsulation:2})}}return i})();var ao=["showMessageBox"],no=()=>["/kosik/obsah","/kosik/doprava-a-platba"],ro=()=>["/"],Sa=i=>[i],ci=(i,l)=>({withVat:i,withoutVat:l});function oo(i,l){if(i&1&&_(0,"cmp-alert",5),i&2){let t=s();p("alertType","info")("message",t.sen["cart-empty"])}}function co(i,l){if(i&1){let t=w();o(0,"div",23)(1,"input",25,0),b("input",function(a){v(t);let r=s(2);return y(r.onCouponInput(a))}),c(),o(3,"button",26),b("click",function(){v(t);let a=St(2),r=s(2);return y(r.getCoupon(a.value))}),d(4),c()()}if(i&2){let t=s(2);n(),p("placeholder",t.sen["kod-slevoveho-kuponu"]),it("aria-label",t.sen["kod-slevoveho-kuponu"]),n(2),p("disabled",!t.couponInputValue||t.isCouponButtonDisabled),n(),u(" ",t.sen["cart-apply-discount"]," ")}}function lo(i,l){i&1&&d(0," , ")}function so(i,l){if(i&1&&(x(0,lo,1,0),o(1,"a",28),d(2),c()),i&2){let t=l.$implicit,e=l.$index,a=s(4);f(e>0?0:-1),n(),p("routerLink",xt(3,Sa,"/v/"+t+"/"+a.couponVariantNames[e])),n(),D(a.couponVariantNames[e])}}
19function po(i,l){if(i&1&&B(0,so,3,5,null,null,K),i&2){let t=s(3);L(t.couponVariantIds)}}function mo(i,l){i&1&&d(0," , ")}function _o(i,l){if(i&1&&(x(0,mo,1,0),o(1,"a",28),d(2),c()),i&2){let t=l.$implicit,e=l.$index,a=s(4);f(e>0?0:-1),n(),p("routerLink",xt(3,Sa,"/c/"+t+"/kategorie")),n(),D(a.couponCategoryNames[e])}}function ho(i,l){if(i&1&&B(0,_o,3,5,null,null,K),i&2){let t=s(3);L(t.couponCategoryIds)}}function uo(i,l){if(i&1&&(o(0,"div",24)(1,"div",27),d(2),x(3,po,2,0),x(4,ho,2,0),c()()),i&2){let t=s(2);n(2),u(" ",t.couponMessage," "),n(),f(t.couponVariantIds?3:-1),n(),f(t.couponCategoryIds?4:-1)}}function xo(i,l){if(i&1){let t=w();o(0,"div",7)(1,"div",19)(2,"div",20)(3,"input",21),Ii("ngModelChange",function(a){v(t);let r=s();return Di(r.showCoupons,a)||(r.showCoupons=a),y(a)}),c(),o(4,"label",22),d(5),c()(),x(6,co,5,4,"div",23),x(7,uo,5,3,"div",24),c(),_(8,"cmp-free-delivery"),c()}if(i&2){let t=s();n(3),ki("ngModel",t.showCoupons),n(2),D(t.sen["cart-use-coupon"]),n(),f(t.showCoupons?6:-1),n(),f(t.couponMessage?7:-1)}}function fo(i,l){if(i&1&&(o(0,"div",30),_(1,"span",33),c()),i&2){let t=s().$implicit;n(),p("innerHtml",t==null?null:t.thankYouText,at)}}function go(i,l){if(i&1&&(o(0,"div",30),_(1,"span",33),c()),i&2){let t=s().$implicit,e=s(2);n(),p("innerHtml",t==null||t.description==null?null:t.description.replace("%DIFF%",e.getPriceDifference(t)),at)}}function bo(i,l){if(i&1&&(o(0,"div",41),_(1,"cmp-price",42),c()),i&2){let t=s().$implicit;n(),p("price",N(1,ci,t.product.variants[0].priceWithVAT,t.product.variants[0].priceWithoutVAT))}}function vo(i,l){if(i&1&&(o(0,"div",41),d(1),c()),i&2){let t=s(4);n(),u(" ",t.sen["app-free"].toUpperCase()," ")}}function yo(i,l){if(i&1){let t=w();o(0,"div",34),b("click",function(){let a=v(t).$implicit,r=s().$implicit,h=s(2);return y(h.onGiftChosenByGift(r,a.id))})("keydown",function(a){let r=v(t).$implicit,h=s().$implicit,g=s(2);return y(g.onGiftKeyDown(a,h,r.id))}),o(1,"label",35)(2,"div",36),_(3,"cmp-picture",37),c(),o(4,"div",38)(5,"div",39),d(6),c(),o(7,"div",40),x(8,bo,2,4,"div",41),x(9,vo,2,1,"div",41),c()()()()}if(i&2){let t=l.$implicit,e=s().$implicit,a=s(2);O("cart-gifts-item--disabled",a.getTotalPriceWithoutGifts()>=e.priceLevel?null:"default"),n(),p("for",Ct("p"+t.id)),n(2),p("imagePath",t.product.imagePath)("fotoCacheKey",a.getFotoCacheKey(t.product.imagePath))("width",100)("height",91)("alt",t.product.variants[0].name),n(3),u(" ",t.product.variants[0].name," "),n(2),f(!t.isFree&&t.product.variants[0].priceWithVAT>0?8:-1),n(),f(t.isFree?9:-1)}}function wo(i,l){if(i&1&&(o(0,"div",29),x(1,fo,2,1,"div",30),x(2,go,2,1,"div",30),o(3,"div",31),B(4,yo,10,12,"div",32,K),c()()),i&2){let t=l.$implicit,e=s(2);n(),f(e.getTotalPriceWithoutGifts()>=t.priceLevel?1:-1),n(),f(e.getTotalPriceWithoutGifts()<t.priceLevel?2:-1),n(),O("js__needs-to-be-closed",!e.isGiftInCart(t)),p("id",Ct("giftProducts"+t.id)),n(),L(t.products)}}function Co(i,l){if(i&1&&(o(0,"div",8),B(1,wo,6,6,"div",29,K),c()),i&2){let t=s();n(),L(t.filteredGifts)}}function So(i,l){if(i&1&&(o(0,"div",9)(1,"div",43)(2,"div",44)(3,"div",45),d(4),c(),o(5,"div",46),_(6,"cmp-price",47),c()(),o(7,"div",44)(8,"div",45),d(9),c(),o(10,"div",46),_(11,"cmp-price",47),c()()()()),i&2){let t=s();n(4),u(" ",t.sen["cart-grand-total"],": "),n(2),p("price",N(7,ci,t.cartSvc.cart.priceWithoutPaymentAndDeliveryWithVat,t.cartSvc.cart.priceWithoutPaymentAndDeliveryWithOutVat))("isVatInfoVisible",!1),n(3),q(" ",t.sen["cart-grand-total"]," ",t.priceVatSvc.isWithVat?t.sen["without-vat"]:t.sen["with-vat"]," "),n(2),p("price",N(10,ci,t.cartSvc.cart.priceWithoutPaymentAndDeliveryWithOutVat,t.cartSvc.cart.priceWithoutPaymentAndDeliveryWithVat))("isVatInfoVisible",!1)}}function ko(i,l){if(i&1&&_(0,"cmp-alert",11),i&2){let t=s();p("innerHTML",t.sen[t.cartSvc.overdueNotificationSenKey],at)("alertType","error")}}function Do(i,l){if(i&1&&_(0,"cmp-alert",12),i&2){let t=s();p("message",t.mustAdjustMsg)("alertType","info")}}function Io(i,l){if(i&1){let t=w();o(0,"button",49),b("click",function(){v(t);let a=s(2);return y(a.onCreateBudgetClick())}),d(1),c()}if(i&2){let t=s(2);n(),u(" ",t.sen["budget-create-button"]," ")}}function Po(i,l){if(i&1){let t=w();o(0,"button",49),b("click",function(){v(t);let a=s(2);return y(a.createDemand())}),d(1),c()}if(i&2){let t=s(2);n(),u(" ",t.sen["demand-create-button"]," ")}}function Eo(i,l){if(i&1&&(o(0,"div",17),x(1,Io,2,1,"button",48),x(2,Po,2,1,"button",48),c()),i&2){let t=s();n(),f(t.usrSvc.canBudgets?1:-1),n(),f(t.usrSvc.canDemandsOffers?2:-1)}}function Ao(i,l){if(i&1){let t=w();o(0,"button",50),b("click",function(){v(t);let a=s();return y(a.moveToStep2())}),d(1),c()}if(i&2){let t=s();p("disabled",t.atLeastOneWrongCount||t.isMoveToStep2ButtonDisabled||t.cartSvc.isPurchaseProhibitedDueToInvoiceOverdue.value||!t.usrSvc.canOrders),n(),u(" ",t.sen["cart-go-shippayment"]," ")}}var ka=(()=>
19{class i extends E{getFilteredGifts(){if(!this.gifts||!this.cartSvc||!this.cartSvc.cart||!this.cartSvc.cart.priceWithoutPaymentAndDeliveryWithVat)return null;let t=[];return this.gifts.forEach(e=>{let a=JSON.parse(JSON.stringify(e)),r=a.products?.filter(h=>this.cartSvc.cart.cartContent.find(g=>g.giftProductDetail?.giftId==e.id&&g.giftProductDetail?.product?.variants[0]?.id==h.product?.variants[0]?.id)==null);r?.length&&(a.products=r,t.push(a))}),t.length?t:null}constructor(t,e,a,r,h,g,V,j,S,me){super(t,e),this.dataSvc=t,this.seSvc=e,this.digestSvc=a,this.currencyPipe=r,this.cartSvc=h,this.delPaySvc=g,this.router=V,this.flexMarketingEventsSvc=j,this.usrSvc=S,this.priceVatSvc=me,this.showCoupons=!1,this.couponAlreadyApplied=!1,this.atLeastOneWrongCount=!1,this.ngUnsubscribe=new z,this.couponVariantIds=null,this.couponVariantNames=null,this.couponCategoryIds=null,this.couponCategoryNames=null,this.decimalPattern="1.0-0",this.amountErrors={},this.showChooseGiftModal=!1,this.mustAdjustMsg=null,this.assetImagePathPrefix=`${this.seSvc.settings.assetPathPrefix}`,this.filteredGifts=null,this.isMoveToStep2ButtonDisabled=!1,this.oldChosenGifts=null,this.isCouponButtonDisabled=!1,this.oldPriceLevel=null,this.getGiftsSubscription=null,this.decimalPattern=`1.${this.seSvc.settings.decimalSettings.Basket}-${this.seSvc.settings.decimalSettings.Basket}`,this.currencySymbol=this.seSvc.settings.currencies[this.seSvc.currencyId],this.currencyId=this.seSvc.currencyId,this.selectedDestinationCountryId=this.seSvc.settings.countries[0].id,this.cartSvc.cartContentChanged.pipe(A(this.ngUnsubscribe)).subscribe(we=>{this.getCartContent();let Ra=this.productList?.find(Ce=>Ce.productDetail?.disabled||Ce.productDetail?.discontinued),Ua=Ni(Ve);Ra&&Ua?(W.scrollToAnchor(Ye,0),zi(Ve)):we?.reason!="changeCount",we?.cart?.cartContent&&(this.chosenGiftList=this.cartSvc.cart.cartContent.filter(Ce=>Ce.giftProductDetail),this.checkMustAdjustCart()),this.getGifts(this.getTotalPriceWithoutGifts())}),this.cartSvc.viewCartEvent.pipe(M(1)).subscribe(()=>{let we=this.cartSvc.getCheckoutEventData(!1);this.flexMarketingEventsSvc.viewCart(we)})}ngAfterViewInit(){W.scrollUp(0)}ngOnInit(){this.dataSvc.setTitle(`${this.seSvc.settings.shopSeo.ShopName} - ${this.sen["cart-title"]}`,this.sen["cart-1-desc"]),this.init(!0),this.cartSvc.isNextStep4=!1}getTotalPriceWithoutGifts(){if(this.cartSvc.cart&&this.cartSvc.cart.cartContent){let t=this.cartSvc.cart.priceWithoutPaymentAndDeliveryWithVat;return this.cartSvc.cart.cartContent.forEach(e=>{e.giftProductDetail&&(t-=e.giftProductDetail.product.variants[0]?.priceWithVAT??0)}),t}return 0}init(t,e){t?this.cartSvc.getCartContentForToken(!0):this.cartSvc.getCartContentForToken(),this.getCartContent(),this.getDeliveryFreeFrom(),e&&W.scrollToAnchor(e,0)}checkMustAdjustCart(){let t=this.productList?.find(r=>r.productDetail?.disabled||r.productDetail?.discontinued),e=this.chosenGiftList?.find(r=>r.giftProductDetail?.product.variants[0]?.disabled||r.giftProductDetail?.product.variants[0]?.discontinued);t||e?this.mustAdjustMsg=this.sen["cart-pls-adjust"]:this.mustAdjustMsg=null}getFotoCacheKey(t){return(xe(t)?"":"ext/")+"gift"}getPriceDifference(t){let e=(t.priceLevel??0)-this.getTotalPriceWithoutGifts();return this.currencyPipe.transform(e,"CZK","symbol-narrow","1.0-0")}giftChecked(t,e){let a=this.cartSvc.cart.cartContent.find(r=>r.giftProductDetail&&r.giftProductDetail.giftId==e.id);if(a){let r=a.giftProductDetail;if(t.id==r?.id)return!0}return!1}isGiftInCart(t){return!!this.cartSvc.cart.cartContent.find(a=>a.giftProductDetail&&a.giftProductDetail.giftId==t.id)}getGifts(t){this.oldPriceLevel===t&&this.chosenGiftsAreTheSame()||(this.oldPriceLevel=t,this.getGiftsSubscription&&this.getGiftsSubscription.unsubscribe(),this.getGiftsSubscription=this.cartSvc.getGifts(t).pipe(M(1)).subscribe(e=>{e&&(e.forEach(a=>{a.products=a.products?.filter(r=>!r.product?.variants[0]?.discontinued)}),this.gifts=e,this.filteredGifts=this.getFilteredGifts())}))}onGiftChosen(t,e){let r={giftProductDetail:t.products?.find(h=>h.id==e),offerId:null};r.count=1,this.cartSvc.addGiftToCart(r),this.showChooseGiftModal=!1}onGiftChosenByGift(t,e){if(!(this.getTotalPriceWithoutGifts()>=(t.priceLevel??0)))return;let h={giftProductDetail:t.products?.find(g=>g.id==e),offerId:null};h.count=1,this.cartSvc.addGiftToCart(h)}onGiftKeyDown(t,e,a){(t.key==="Enter"||t.code==="Space")&&this.onGiftChosenByGift(e,a)}showGift(t){if(t.products?.length==1){this.onGiftChosen(t,t.products[0].id);return}}onGiftClicked(t){this.getTotalPriceWithoutGifts()>=(t.priceLevel??0)&&this.showGift(t)}removeGiftFromCart(t){this.removeFromCart(t)}getCartContent(){this.cartContent=this.cartSvc.cart,this.productList=this.cartSvc.productList,this.coupons=this.cartSvc.coupons}getDeliveryFreeFrom(){this.cartSvc.cart&&this.cartSvc.cart.deliveryAddress&&this.cartSvc.cart.deliveryAddress.countryId>0?this.selectedDestinationCountryId=this.cartSvc.cart.deliveryAddress.countryId:this.cartSvc.cart&&this.cartSvc.cart.invoiceAddress&&this.cartSvc.cart.invoiceAddress.countryId>0&&(this.selectedDestinationCountryId=this.cartSvc.cart.invoiceAddress.countryId),this.delPaySvc.getDeliveryFreeFrom(this.selectedDestinationCountryId).pipe(M(1)).subscribe(t=>{t&&(this.minFreeDeliveryFrom=t[this.currencyId],this.cartSvc.cart&&(this.cartSvc.cart.deliveryFreeFrom=this.minFreeDeliveryFrom))})}removeFromCart(t){if(this.dataSvc.dataLoading)return;let e={count:0,id:t,fromCart:!0,offerId:null};this.cartSvc.removeFromCart(e)}getValueControl(t){return t||0}getCoupon(t){t&&(this.isCouponButtonDisabled=!0,this.cartSvc.getCouponFromServer(t).pipe(M(1),_t(()=>{this.isCouponButtonDisabled=!1})).subscribe(e=>{if(e.success)this.couponMessage=null,this.cartSvc.addCouponToCart(t).subscribe(a=>
19{a&&(a.cartActionResult.success||(this.couponMessage=this.sen[a.cartActionResult.errorCode]))});else{let a=this.sen[e.errorCode];e.extra&&e.errorCode==fe.OrderPriceLimitWasNotReached&&e.extra[st.PriceLimit]&&(a+=" - "+e.extra.PriceLimit+this.currencySymbol+" "+this.sen["with-vat"]),e.extra&&e.errorCode==fe.CouponIsApplicableOnlyOnCategoryAndProducts&&e.extra[st.VariantIds]&&e.extra[st.CategoryIds]?(this.couponVariantIds=this.parseVariantIds(e.extra[st.VariantIds]),this.couponVariantNames=this.parseVariantNames(e.extra[st.ProductNames]),this.couponCategoryIds=this.parseIds(e.extra[st.CategoryIds]),this.couponCategoryNames=this.parseCategoryNames(e.extra[st.CategoryNames])):(this.couponVariantIds=null,this.couponVariantNames=null,this.couponCategoryIds=null,this.couponCategoryNames=null,e.extra&&e.errorCode==fe.CouponIsApplicableOnlyOnProducts&&e.extra[st.VariantIds]?(this.couponVariantIds=this.parseVariantIds(e.extra[st.VariantIds]),this.couponVariantNames=this.parseVariantNames(e.extra[st.ProductNames])):(this.couponVariantIds=null,this.couponVariantNames=null),e.extra&&e.errorCode==fe.CouponIsApplicableOnlyOnCategory&&e.extra[st.CategoryIds]?(this.couponCategoryIds=this.parseIds(e.extra[st.CategoryIds]),this.couponCategoryNames=this.parseCategoryNames(e.extra[st.CategoryNames])):(this.couponCategoryIds=null,this.couponCategoryNames=null)),this.couponMessage=a}}))}parseIds(t){if(!t)return null;let e=t.split(",");if(!e)return null;let a=new Array;return e.forEach(r=>{let h=parseInt(r);isNaN(h)||a.push(h)}),a}parseCategoryNames(t){return t?t.split(","):null}parseVariantIds(t){if(!t||!t.length)return null;let a=t.split(",").map(r=>parseInt(r));return a.find(r=>isNaN(r))?null:a}parseVariantNames(t){let e="--|--";return!t||!t.length?null:t.split(e)}onCouponInput(t){this.couponInputValue=t.target.value,this.couponMessage=null}isExternalImage(t){return!xe(t)}moveToStep2(){if(this.productAmountComps.some(a=>a.isValid===!1)){this.init(!1,Ye);return}let e={ids:this.cartSvc.productIds(!0)};this.isMoveToStep2ButtonDisabled=!0,this.cartSvc.checkProductsCanBeBought(e).pipe(M(1)).subscribe({next:a=>{if(a){let r=this.cartSvc.getCheckoutEventData(!0);this.flexMarketingEventsSvc.startCheckout(r),this.router.navigateByUrl("/kosik/doprava-a-platba").then(()=>{})}else ft(Ve,!0),this.init(!1),this.isMoveToStep2ButtonDisabled=!1},error:()=>{this.isMoveToStep2ButtonDisabled=!1}})}onAmountChange(t,e){this.cartSvc.changeCountItemId=e;let a={count:t.amount,id:e,fromCart:!0,offerId:null};this.cartSvc.changeCount(a)}createDemand(){if(!this.userLoggedIn){this.digestSvc.queryLogin();return}this.router.navigateByUrl("/kosik/poptavka").then(()=>{})}chosenGiftsAreTheSame(){let t=JSON.stringify(this.chosenGiftList);return t==this.oldChosenGifts?!0:(this.oldChosenGifts=t,!1)}onCreateBudgetClick(){this.router.navigateByUrl("/muj-ucet/rozpocty/-2").then(()=>{})}static{this.\u0275fac=function(e){return new(e||i)(m(P),m(I),m(Nt),m(Ee),m(T),m(bt),m(R),m(ze),m(Z),m(Bt))}}static{this.\u0275cmp=C({type:i,selectors:[["ng-component"]],viewQuery:function(e,a){if(e&1&&nt(ao,5)(Ne,5),e&2){let r;Y(r=J())&&(a.showMessageBox=r.first),Y(r=J())&&(a.productAmountComps=r)}},standalone:!1,features:[k],decls:20,vars:18,consts:[["couponInput",""],[1,"cart","js-anchor-cart"],[3,"links","cartStep"],[1,"cart__header"],[1,"cart__title","h1"],[3,"alertType","message"],[3,"productList","chosenGiftList","coupons"],[1,"cart__bottom"],[1,"cart-gifts"],[1,"cart-price"],[1,"cart__notice"],[3,"innerHTML","alertType"],[3,"message","alertType"],[1,"cart__actions"],[1,"cart__actions-btns"],[1,"cart__back",3,"routerLink"],["symbolId","arrow-simple"],[1,"cart__actions-b2b"],[1,"cart__next","btn","btn--large","btn--conversion",3,"disabled"],[1,"cart-coupon"],[1,"cart-coupon__toggle","form-checkbox"],["type","checkbox","id","couponToggle",3,"ngModelChange","ngModel"],["for","couponToggle"],[1,"cart-coupon__form"],[1,"validation"],["name","couponInput","type","text",1,"cart-coupon__input","form-input",3,"input","placeholder"],[1,"btn","btn--medium","btn--primary",3,"click","disabled"],[1,"validation__item"],[3,"routerLink"],[1,"cart-gifts__section"],[1,"cart-gifts__title"],[1,"cart-gifts__list",3,"id"],["tabindex","0","role","button",1,"cart-gifts-item",3,"cart-gifts-item--disabled"],[3,"innerHtml"],["tabindex","0","role","button",1,"cart-gifts-item",3,"click","keydown"],[1,"cart-gifts-item__label",3,"for"],[1,"cart-gifts-item__image"],[3,"imagePath","fotoCacheKey","width","height","alt"],[1,"cart-gifts-item__content"],[1,"cart-gifts-item__title"],[1,"cart-gifts-item__prices"],[1,"cart-gifts-item__price"],[3,"price"],[1,"cart-price__in"],[1,"cart-price__item"],[1,"cart-price__label"],[1,"cart-price__value"],[3,"price","isVatInfoVisible"],[1,"btn","btn--medium","btn--secondary"],[1,"btn","btn--medium","btn--secondary",3,"click"],[1,"cart__next","btn","btn--large","btn--conversion",3,"click","disabled"]],template:function(e,a){e&1&&(o(0,"div",1),_(1,"cmp-cart-step-header",2),o(2,"div",3)(3,"h1",4),d(4),c()(),x(5,oo,1,2,"cmp-alert",5),_(6,"cmp-cart-product-list",6),x(7,xo,9,4,"div",7),x(8,Co,3,0,"div",8),x(9,So,12,13,"div",9),o(10,"div",10),x(11,ko,1,2,"cmp-alert",11),c(),x(12,Do,1,2,"cmp-alert",12),o(13,"div",13)(14,"div",14)(15,"a",15),_(16,"cmp-svg",16),d(17),c(),x(18,Eo,3,2,"div",17),c(),x(19,Ao,2,2,"button",18),c()()),e&2&&(n(),p("links",mt(16,no))("c
19artStep",1),n(3),u(" ",a.sen["cart-title"]," "),n(),f((a.productList==null?null:a.productList.length)===0&&(a.coupons==null?null:a.coupons.length)===0?5:-1),n(),p("productList",a.productList)("chosenGiftList",a.chosenGiftList)("coupons",a.coupons),n(),f((a.cartContent==null||a.cartContent.cartContent==null?null:a.cartContent.cartContent.length)>0?7:-1),n(),f(a.filteredGifts!=null&&a.filteredGifts.length?8:-1),n(),f((a.productList==null?null:a.productList.length)>0?9:-1),n(2),f(a.cartSvc.isInvoiceOverdueNotification.value?11:-1),n(),f(a.mustAdjustMsg?12:-1),n(3),p("routerLink",mt(17,ro)),n(2),u(" ",a.sen["cart-back-to-shopping"]," "),n(),f(a.userLoggedIn&&a.usrSvc.isB2b&&(a.productList==null?null:a.productList.length)>0?18:-1),n(),f((a.productList==null?null:a.productList.length)>0?19:-1))},dependencies:[Te,ot,Ri,rt,ae,dt,vt,tt,Et,Ki,Ge],styles:[`.cart .quick-order{margin-bottom:32px}.cart__bottom{display:flex;margin-bottom:30px}@media screen and (max-width:1279.98px){.cart__bottom{flex-direction:column;row-gap:8px}}@media screen and (min-width:1280px){.cart__bottom{flex-direction:row;align-items:center;justify-content:space-between}}.cart .cart-coupon{margin-bottom:16px}@media screen and (min-width:1280px){.cart .cart-coupon{margin-bottom:0}}
20`,`.cart-coupon{position:relative}.cart-coupon__toggle{margin-bottom:12px}.cart-coupon__form{display:flex;column-gap:8px}.cart-coupon__input{flex:1}@media screen and (min-width:920px){.cart-coupon__input{width:300px}}.cart-gifts{display:flex;flex-direction:column;row-gap:32px;margin-bottom:32px}.cart-gifts__section{display:flex;flex-direction:column;row-gap:12px}.cart-gifts__title{display:flex;align-items:center;column-gap:8px;font-weight:600}.cart-gifts__title .icon{font-size:8px}.cart-gifts__list{display:grid}@media screen and (max-width:767.98px){.cart-gifts__list{grid-template-columns:repeat(2,1fr);grid-gap:12px}}@media screen and (min-width:768px){.cart-gifts__list{grid-template-columns:repeat(4,1fr);grid-gap:16px}}@media screen and (min-width:1280px){.cart-gifts__list{grid-template-columns:repeat(6,1fr)}}.cart-gifts-item{height:100%}.cart-gifts-item--disabled{opacity:.5}.cart-gifts-item--disabled .cart-gifts-item__label{cursor:auto}.cart-gifts-item:not(.cart-gifts-item--disabled) .cart-gifts-item__label:hover{box-shadow:0 3px 12px #00000040;border-color:transparent}.cart-gifts-item__input{display:none}.cart-gifts-item__input:checked+.cart-gifts-item__label{border-color:#4d9cde;box-shadow:0 3px 12px #00000040}.cart-gifts-item__label{display:flex;flex-direction:column;row-gap:12px;padding:16px;height:100%;background-color:#fff;transition:box-shadow .3s ease,border-color .3s ease;border-radius:8px;box-shadow:0 1px 4px #00000014;cursor:pointer}.cart-gifts-item__image{display:flex;align-items:center;justify-content:center}.cart-gifts-item__image picture{display:flex;align-items:center;justify-content:center;aspect-ratio:1/1}.cart-gifts-item__image picture img{width:100%;height:100%;object-fit:contain}.cart-gifts-item__content{display:flex;flex-direction:column;justify-content:space-between;row-gap:8px;flex:1}.cart-gifts-item__title{line-height:1.5;text-decoration:none;font-weight:500;color:#2b3848}.cart-gifts-item__prices{display:flex;flex-direction:column;gap:4px}.cart-gifts-item__price{margin-top:auto;color:#2b8800;font-weight:600}.cart-login{display:flex;flex-direction:row;align-items:center;column-gap:16px;margin-bottom:32px;padding:0 16px;min-height:60px;background-color:#fff;border:1px solid #D0D6DE;border-radius:6px;box-shadow:0 2px 6px #2b38481a}.cart-login__icon{flex-shrink:0}.cart-login__icon .icon{display:flex;width:24px;height:24px;color:#6e757c}.cart-login__icon .icon svg{width:100%;height:100%}.cart-login__text{font-weight:500}.cart-login__link{color:#cb2c30;text-decoration:underline}.cart-login__link:hover{text-decoration:none}.cart-price{display:flex;justify-content:flex-end;margin-bottom:30px}.cart-price__in{display:flex;flex-direction:column;gap:4px;width:100%;padding:20px 24px;background-color:#f5f7f9;border-radius:6px}@media screen and (min-width:768px){.cart-price__in{max-width:460px}}.cart-price__item{display:flex;align-items:center;justify-content:space-between;column-gap:16px}.cart-price__item:first-child .cart-price__label{font-size:18px;font-weight:700;line-height:26px;color:#000}.cart-price__item:first-child cmp-price .price__value{font-size:18px;font-weight:700;line-height:26px;color:#000}.cart-price__item:last-child .cart-price__label{font-size:14px;font-weight:400;line-height:26px;color:#6b6f73}.cart-price__item:last-child cmp-price .price__value{font-size:14px;font-weight:400;line-height:26px;color:#6b6f73}.cart-table{margin-bottom:32px}.cart-table__head{display:none}@media screen and (min-width:1280px){.cart-table__head{display:flex;align-items:center;column-gap:20px;padding:12px 20px;border-bottom:1px solid #D9E0EC;font-size:13px;font-weight:500;color:#6e757c}}@media screen and (min-width:1440px){.cart-table__head{column-gap:40px}}.cart-table__col--product{flex:1;min-width:1px}
20.cart-table__col--availability{width:200px;text-align:center}.cart-table__col--unit-price{width:110px;text-align:right}.cart-table__col--amount{width:120px;text-align:center}.cart-table__col--price{width:110px;text-align:right}.cart-table__col--remove{width:20px}.cart-table-item{display:flex;align-items:center;flex-wrap:wrap;position:relative;padding:16px 16px 16px 96px;border-bottom:1px solid #D9E0EC}@media screen and (max-width:767.98px){.cart-table-item{gap:8px 12px;padding:24px 16px 24px 64px}}@media screen and (min-width:768px){.cart-table-item{gap:12px;padding:20px}}@media screen and (min-width:1280px){.cart-table-item{column-gap:20px}}@media screen and (min-width:1440px){.cart-table-item{column-gap:40px}}@media screen and (max-width:767.98px){.cart-table-item--coupon{flex-direction:row;flex-wrap:nowrap}}.cart-table-item__main{display:flex}@media screen and (max-width:767.98px){.cart-table-item__main{align-items:flex-start;column-gap:8px;width:calc(100% + 48px);margin-left:-48px}}@media screen and (min-width:768px){.cart-table-item__main{align-items:center;column-gap:12px;flex:1;width:auto;min-width:1px;margin-left:0}}.cart-table-item__image{flex-shrink:0}@media screen and (max-width:767.98px){.cart-table-item__image{width:40px}}@media screen and (min-width:768px){.cart-table-item__image{width:80px}}.cart-table-item__image picture{display:block}.cart-table-item__image img{border-radius:6px}.cart-table-item__content{display:flex;flex-direction:column;flex:1;min-width:1px;row-gap:8px}.cart-table-item__title{font-size:16px;font-weight:500;line-height:28px;color:#2b3848}.cart-table-item__title:hover{text-decoration:none}.cart-table-item__code{font-size:13px;font-weight:500;line-height:18px;color:#6e757c}.cart-table-item__availability--desktop{width:200px}.cart-table-item__availability--desktop .availability--simple{align-items:center}@media screen and (max-width:1279.98px){.cart-table-item__availability--desktop{display:none}}@media screen and (max-width:1279.98px){.cart-table-item__availability--mobile{font-size:13px}}@media screen and (min-width:1280px){.cart-table-item__availability--mobile{display:none}}.cart-table-item__unit{font-size:12px;font-weight:600;line-height:1.4;color:#6e757c}.cart-table-item__store-availability{margin-top:4px;font-size:14px;font-weight:400;line-height:22px;color:#2b3848}@media screen and (min-width:1280px){.cart-table-item__store-availability{text-align:center}}.cart-table-item__store-availability span{text-decoration:underline}@media screen and (max-width:479.98px){.cart-table-item__unit-price{width:100%}}@media screen and (min-width:480px){.cart-table-item__unit-price{width:calc((100% - 24px)/2)}}@media screen and (max-width:767.98px){.cart-table-item__unit-price .price--stacked{flex-direction:row;align-items:baseline;gap:4px}.cart-table-item__unit-price .price--stacked .price__value,.cart-table-item__unit-price .price--stacked .price__vat{line-height:unset}}@media screen and (min-width:768px){.cart-table-item__unit-price{width:110px;text-align:right}}.cart-table-item__amount{display:flex;align-items:center;column-gap:4px}@media screen and (max-width:479.98px){.cart-table-item__amount{width:100%}}@media screen and (min-width:480px){.cart-table-item__amount{width:calc((100% - 24px)/2);justify-content:flex-end}}@media screen and (min-width:768px){.cart-table-item__amount{width:120px;justify-content:center}}@media screen and (max-width:479.98px){.cart-table-item__price{width:100%}}@media screen and (min-width:480px){.cart-table-item__price{text-align:right;width:100%}}@media screen and (max-width:767.98px){.cart-table-item__price{display:flex;justify-content:space-between;align-items:center}.cart-table-item__price .price--stacked{flex-direction:row;align-items:baseline;gap:4px}.cart-table-item__price .price--stacked .price__value,.cart-table-item__price .price--stacked .price__vat{line-height:unset}}@media screen and (min-width:768px){.cart-table-item__price{width:110px;text-align:right}}.cart-table-item__price strong{font-size:16px;font-weight:600;line-height:28px}.cart-table-item__price--coupon{width:fit-content}.cart-table-item__price--coupon strong{white-space:nowrap}.cart-table-item__vat-label{display:block;font-size:13px;font-weight:400;line-height:18px;color:#6e757c}.cart-table-item__remove{color:#6e757c;cursor:pointer}@media screen and (max-width:1279.98px){.cart-table-item__remove{position:absolute;right:0;top:0}.cart-table-item__remove a{display:flex;align-items:center;justify-content:center;width:32px;height:32px}}@media screen and (min-width:1280px){.cart-table-item__remove{width:20px;text-align:right}.cart-table-item__remove a{display:flex}}.cart-table-item__bottom{width:calc(100% + 80px);margin-left:-80px}@media screen and (min-width:480px){.cart-table-item__bottom{width:calc(100% + 100px);margin-left:-100px}}@media screen and (min-width:768px){.cart-table-item__bottom{width:100%;margin-left:0}}.cart-table-item__bottom .alert{margin:0}.cart-table-item__label{margin-bottom:4px;font-size:12px;font-weight:500;color:#6e757c}@media screen and (max-width:767.98px){.cart-table-item__label--total{font-size:14px}}@media screen and (min-width:1280px){.cart-table-item__label{display:none}}
20.cart-table-item__availability .availability .availability__text{font-size:16px}.cart-table-item__store-availability{margin-top:4px;font-size:16px}.cart-table-item__store-availability a{cursor:pointer;text-decoration:underline}.cart-table-item__store-availability a:hover,.cart-table-item__store-availability a:focus{text-decoration:none}.cart-table-coupon{color:#a56830}.cart-table-coupon cmp-price .price__value,.cart-table-coupon cmp-price .price__vat{font-size:inherit;font-weight:inherit;line-height:inherit;color:inherit}@media screen and (min-width:1280px){.cart{margin:0 20px}}.cart__header{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px 16px;margin-bottom:32px}.cart__header .cart__title{margin-bottom:0}.cart__title,.cart .table{margin-bottom:32px}.cart__in{display:grid;grid-template-columns:1fr;grid-gap:32px;margin-bottom:32px}@media screen and (min-width:920px){.cart__in{grid-template-columns:1fr auto;align-items:start}}@media screen and (min-width:1280px){.cart__in{grid-template-columns:1fr 440px}}.cart__main--step3 .user-data__section{margin-bottom:0;padding-bottom:0;border:none}.cart__main--step3 .user-data__wrapper{padding-bottom:32px;margin-bottom:32px;border-bottom:1px solid #D0D6DE}@media screen and (min-width:920px){.cart__main--step3 .user-data__wrapper{max-width:580px}}@media screen and (min-width:600px){.cart__main--step3 .user-data__item{display:grid;align-items:center;grid-template-columns:120px 1fr;gap:40px}}@media screen and (min-width:920px){.cart__main--step3 .user-data__item .form-input{min-width:300px}}@media screen and (min-width:1280px){.cart__main--step3 .user-data__item .form-input{min-width:340px}}@media screen and (min-width:920px){.cart__side{position:sticky;top:80px}}@media screen and (min-width:1280px){.cart__side{top:24px}}.cart__side--thx{position:relative}.cart__actions{display:flex;flex-direction:column;align-items:center;row-gap:20px}@media screen and (min-width:768px){.cart__actions{flex-direction:row;justify-content:space-between;align-items:baseline;column-gap:20px}}.cart__actions-btns{display:flex;column-gap:80px}@media screen and (max-width:919.98px){.cart__actions-btns{column-gap:20px}}@media screen and (max-width:767.98px){.cart__actions-btns{flex-direction:column;align-items:center;row-gap:20px;width:100%}.cart__actions-btns .btn{width:100%}}.cart__actions-b2b{display:flex;column-gap:20px}@media screen and (max-width:767.98px){.cart__actions-b2b{flex-direction:column;align-items:center;row-gap:20px;width:100%}.cart__actions-b2b .btn{width:100%}}.cart__back{display:inline-flex;align-items:center;column-gap:4px;color:#cb2c30}.cart__back .icon{width:8px;transform:rotate(-180deg)}.cart__back:hover{text-decoration:none}.cart__next{margin-bottom:16px}@media screen and (max-width:767.98px){.cart__next{width:100%}}@media screen and (min-width:768px){.cart__next{margin-bottom:0}}.cart__next--finish{flex-direction:column}.cart__next--finish span{font-size:10px}.cart__alert{margin-bottom:20px}@media screen and (min-width:1280px){.cart__alert{margin-bottom:32px}}.cart__notice{display:flex;justify-content:flex-end}
21`,`.availability--red .availability__text{color:#dd202b}.availability--red .availability__text:before{background-color:#dd202b}.availability--green .availability__text{color:#018302}.availability--green .availability__text:before{background-color:#018302}.availability--orange .availability__text{color:#fa8e00}.availability--orange .availability__text:before{background-color:#fa8e00}.availability--simple{display:flex;flex-direction:column;align-items:flex-start}.availability--simple .availability__text{display:flex;align-items:center;gap:4px;font-size:13px;font-weight:700;line-height:18px}.availability--simple .availability__text:before{content:"";display:inline-block;flex-shrink:0;width:6px;height:6px;border-radius:50%}.availability--simple .availability__link{font-size:16px}.availability--extended{display:flex;align-items:center;column-gap:16px}.availability--extended.availability--green .availability__image{background-color:#4ba370}.availability--extended.availability--red .availability__image{background-color:#dd202b}.availability--extended.availability--orange .availability__image{background-color:#fa8e00}.availability--extended .availability__image{display:flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:50%;color:#fff}.availability--extended .availability__image .icon{width:20px}.availability--extended .availability__content{display:flex;flex-direction:column;align-items:flex-start;flex:1}.availability--extended .availability__text{font-size:18px;font-weight:600}
22`],encapsulation:2})}}return i})();var ye=(()=>{class i{constructor(t,e){this.router=t,this.cartSvc=e}navigateFirstStep(){this.router.navigateByUrl("/kosik/obsah").then(()=>!1)}canActivate(t,e){if(this.dummy=t,this.cartSvc.isPurchaseProhibitedDueToInvoiceOverdue.value==null){let h=this.cartSvc.isPurchaseProhibitedDueToInvoiceOverdue.subscribe(g=>{g!=null&&(g&&e.url!="/kosik/obsah"&&this.navigateFirstStep(),h.unsubscribe())})}else if(this.cartSvc.isPurchaseProhibitedDueToInvoiceOverdue.value&&e.url!="/kosik/obsah")return this.navigateFirstStep(),!1;if(this.cartSvc.cart&&this.cartSvc.cart.cartContent&&this.cartSvc.cart.cartContent.length){let h=this.cartSvc.cart;switch(e.url){case"/kosik/doprava-a-platba":if(h.cartContent.length>0)return!0;this.navigateFirstStep();break;case"/kosik/dodaci-udaje":if(h.cartContent.length&&h.maxStep>=2)return!0;this.navigateFirstStep();break;case"/kosik/podekovani":if(h.maxStep>=3)return!0;this.navigateFirstStep();break;default:this.navigateFirstStep()}}let a=new z,r=new z;return this.cartSvc.cartContentChanged.pipe(A(r)).subscribe(h=>
22{if(!h||!h.cart||!h.reason)return;if(r.next(),r.complete(),!this.cartSvc.cart||!this.cartSvc.cart.cartContent){a.complete(),this.navigateFirstStep();return}let g=this.cartSvc.cart;switch(e.url){case"/kosik/doprava-a-platba":g.cartContent.length>0?a.next(!0):(a.complete(),this.navigateFirstStep());break;case"/kosik/souhrn":g.cartContent.length&&g.maxStep>=2?a.next(!0):(a.complete(),this.navigateFirstStep());break;case"/kosik/dodaci-udaje":g.cartContent.length&&g.maxStep>=2?a.next(!0):(a.complete(),this.navigateFirstStep());break;case"/kosik/podekovani":g.maxStep>=3?a.next(!0):(a.complete(),this.navigateFirstStep());break;default:a.complete(),this.navigateFirstStep()}}),a}static{this.\u0275fac=function(e){return new(e||i)(Q(R),Q(T))}}static{this.\u0275prov=et({token:i,factory:i.\u0275fac})}}return i})();var li=(()=>{class i{constructor(t,e){this.router=t,this.cartSvc=e}canActivate(t,e){return this.cartSvc.demandSubmitted?(this.cartSvc.demandSubmitted=!1,!0):(this.router.navigateByUrl("/kosik/obsah"),!1)}static{this.\u0275fac=function(e){return new(e||i)(Q(R),Q(T))}}static{this.\u0275prov=et({token:i,factory:i.\u0275fac})}}return i})();var To=()=>["/"];function Fo(i,l){if(i&1&&(o(0,"h1",1),d(1),c()),i&2){let t=s();n(),u(" ",t.sen["cart-web-pay-finish-title"]," ")}}function Mo(i,l){if(i&1&&(o(0,"h1",1),d(1),c()),i&2){let t=s();n(),u(" ",t.sen["cart-web-pay-finish-title-failed"]," ")}}function Vo(i,l){if(i&1&&_(0,"cmp-alert",2),i&2){let t=s();p("alertType","success")("message",t.sen["cart-web-pay-finish-success-1"])}}function jo(i,l){if(i&1&&_(0,"cmp-alert",2),i&2){let t=s();p("alertType","error")("message",t.sen["cart-web-pay-finish-failed"])}}function zo(i,l){if(i&1&&_(0,"cmp-alert",2),i&2){let t=s(2);p("alertType","error")("message",t.sen["cart-web-pay-finish-error"])}}function No(i,l){if(i&1&&_(0,"cmp-alert",2),i&2){let t=s(2);p("alertType","error")("message",t.sen["cart-order-error"])}}function Bo(i,l){if(i&1&&x(0,zo,1,2,"cmp-alert",2)(1,No,1,2,"cmp-alert",2),i&2){let t=s();f(t.webPay!=="general"?0:1)}}function Lo(i,l){if(i&1&&_(0,"cmp-alert",2),i&2){let t=s();p("alertType","info")("message",t.sen["cart-web-pay-finish-pending"])}}var si=(()=>{class i extends E{constructor(t,e,a,r,h){super(t,e),this.dataSvc=t,this.seSvc=e,this.cartSvc=a,this.route=r,this.router=h,this.ngUnsubscribe=new z}ngOnInit(){this.route.params.pipe(M(1),_t(()=>{this.dataSvc.dataLoading=!1})).subscribe(t=>{this.orderhash=t.orderhash,this.setWebPay(t["web-pay"],t.state)})}ngOnDestroy(){this.ngUnsubscribe.next(),this.ngUnsubscribe.complete()}setWebPay(t,e){if(this.webPay=t,this.status=e,e==="success"){if(this.orderhash){this.cartSvc.orderHash=this.orderhash,this.cartSvc.cart&&(this.cartSvc.cart.maxStep=4),ft(this.seSvc.cartMaxStepSessionKey,4),this.router.navigate(["/kosik/podekovani"]).then(()=>{this.cartSvc.emptyCartNextStep()});return}this.cartSvc.emptyCart()}}static{this.\u0275fac=function(e){return new(e||i)(m(P),m(I),m(T),m(Ae),m(R))}}static{this.\u0275cmp=C({type:i,selectors:[["cmp-web-pay-finish"]],standalone:!1,features:[k],decls:10,vars:9,consts:[[1,"cart"],[1,"cart__title"],[3,"alertType","message"],[1,"cart__actions"],[1,"cart__back",3,"routerLink"]],template:function(e,a){e&1&&(o(0,"div",0),x(1,Fo,2,1,"h1",1),x(2,Mo,2,1,"h1",1),x(3,Vo,1,2,"cmp-alert",2),x(4,jo,1,2,"cmp-alert",2),x(5,Bo,2,1),x(6,Lo,1,2,"cmp-alert",2),o(7,"div",3)(8,"a",4),d(9),c()()()),e&2&&(n(),f(a.status==="success"?1:-1),n(),f(a.status==="failed"||a.status==="error"?2:-1),n(),f(a.status==="success"?3:-1),n(),f(a.status==="failed"?4:-1),n(),f(a.status==="error"?5:-1),n(),f(a.status==="pending"?6:-1),n(2),p("routerLink",mt(8,To)),n(),u(" ",a.sen["cart-finish-btn-back"]," "))},dependencies:[rt,dt],styles:[`cmp-web-pay-finish{display:block;margin-top:40px}
23`,`.cart-coupon{position:relative}.cart-coupon__toggle{margin-bottom:12px}.cart-coupon__form{display:flex;column-gap:8px}.cart-coupon__input{flex:1}@media screen and (min-width:920px){.cart-coupon__input{width:300px}}.cart-gifts{display:flex;flex-direction:column;row-gap:32px;margin-bottom:32px}.cart-gifts__section{display:flex;flex-direction:column;row-gap:12px}.cart-gifts__title{display:flex;align-items:center;column-gap:8px;font-weight:600}.cart-gifts__title .icon{font-size:8px}.cart-gifts__list{display:grid}@media screen and (max-width:767.98px){.cart-gifts__list{grid-template-columns:repeat(2,1fr);grid-gap:12px}}@media screen and (min-width:768px){.cart-gifts__list{grid-template-columns:repeat(4,1fr);grid-gap:16px}}@media screen and (min-width:1280px){.cart-gifts__list{grid-template-columns:repeat(6,1fr)}}.cart-gifts-item{height:100%}.cart-gifts-item--disabled{opacity:.5}.cart-gifts-item--disabled .cart-gifts-item__label{cursor:auto}.cart-gifts-item:not(.cart-gifts-item--disabled) .cart-gifts-item__label:hover{box-shadow:0 3px 12px #00000040;border-color:transparent}.cart-gifts-item__input{display:none}.cart-gifts-item__input:checked+.cart-gifts-item__label{border-color:#4d9cde;box-shadow:0 3px 12px #00000040}.cart-gifts-item__label{display:flex;flex-direction:column;row-gap:12px;padding:16px;height:100%;background-color:#fff;
23transition:box-shadow .3s ease,border-color .3s ease;border-radius:8px;box-shadow:0 1px 4px #00000014;cursor:pointer}.cart-gifts-item__image{display:flex;align-items:center;justify-content:center}.cart-gifts-item__image picture{display:flex;align-items:center;justify-content:center;aspect-ratio:1/1}.cart-gifts-item__image picture img{width:100%;height:100%;object-fit:contain}.cart-gifts-item__content{display:flex;flex-direction:column;justify-content:space-between;row-gap:8px;flex:1}.cart-gifts-item__title{line-height:1.5;text-decoration:none;font-weight:500;color:#2b3848}.cart-gifts-item__prices{display:flex;flex-direction:column;gap:4px}.cart-gifts-item__price{margin-top:auto;color:#2b8800;font-weight:600}.cart-login{display:flex;flex-direction:row;align-items:center;column-gap:16px;margin-bottom:32px;padding:0 16px;min-height:60px;background-color:#fff;border:1px solid #D0D6DE;border-radius:6px;box-shadow:0 2px 6px #2b38481a}.cart-login__icon{flex-shrink:0}.cart-login__icon .icon{display:flex;width:24px;height:24px;color:#6e757c}.cart-login__icon .icon svg{width:100%;height:100%}.cart-login__text{font-weight:500}.cart-login__link{color:#cb2c30;text-decoration:underline}.cart-login__link:hover{text-decoration:none}.cart-price{display:flex;justify-content:flex-end;margin-bottom:30px}.cart-price__in{display:flex;flex-direction:column;gap:4px;width:100%;padding:20px 24px;background-color:#f5f7f9;border-radius:6px}@media screen and (min-width:768px){.cart-price__in{max-width:460px}}.cart-price__item{display:flex;align-items:center;justify-content:space-between;column-gap:16px}.cart-price__item:first-child .cart-price__label{font-size:18px;font-weight:700;line-height:26px;color:#000}.cart-price__item:first-child cmp-price .price__value{font-size:18px;font-weight:700;line-height:26px;color:#000}.cart-price__item:last-child .cart-price__label{font-size:14px;font-weight:400;line-height:26px;color:#6b6f73}.cart-price__item:last-child cmp-price .price__value{font-size:14px;font-weight:400;line-height:26px;color:#6b6f73}.cart-table{margin-bottom:32px}.cart-table__head{display:none}@media screen and (min-width:1280px){.cart-table__head{display:flex;align-items:center;column-gap:20px;padding:12px 20px;border-bottom:1px solid #D9E0EC;font-size:13px;font-weight:500;color:#6e757c}}@media screen and (min-width:1440px){.cart-table__head{column-gap:40px}}.cart-table__col--product{flex:1;min-width:1px}.cart-table__col--availability{width:200px;text-align:center}.cart-table__col--unit-price{width:110px;text-align:right}.cart-table__col--amount{width:120px;text-align:center}.cart-table__col--price{width:110px;text-align:right}.cart-table__col--remove{width:20px}.cart-table-item{display:flex;align-items:center;flex-wrap:wrap;position:relative;padding:16px 16px 16px 96px;border-bottom:1px solid #D9E0EC}@media screen and (max-width:767.98px){.cart-table-item{gap:8px 12px;padding:24px 16px 24px 64px}}@media screen and (min-width:768px){.cart-table-item{gap:12px;padding:20px}}@media screen and (min-width:1280px){.cart-table-item{column-gap:20px}}@media screen and (min-width:1440px){.cart-table-item{column-gap:40px}}@media screen and (max-width:767.98px){.cart-table-item--coupon{flex-direction:row;flex-wrap:nowrap}}.cart-table-item__main{display:flex}@media screen and (max-width:767.98px){.cart-table-item__main{align-items:flex-start;column-gap:8px;width:calc(100% + 48px);margin-left:-48px}}@media screen and (min-width:768px){.cart-table-item__main{align-items:center;column-gap:12px;flex:1;width:auto;min-width:1px;margin-left:0}}.cart-table-item__image{flex-shrink:0}@media screen and (max-width:767.98px){.cart-table-item__image{width:40px}}@media screen and (min-width:768px){.cart-table-item__image{width:80px}}.cart-table-item__image picture{display:block}.cart-table-item__image img{border-radius:6px}.cart-table-item__content{display:flex;flex-direction:column;flex:1;min-width:1px;row-gap:8px}.cart-table-item__title{font-size:16px;font-weight:500;line-height:28px;color:#2b3848}.cart-table-item__title:hover{text-decoration:none}.cart-table-item__code{font-size:13px;font-weight:500;line-height:18px;color:#6e757c}
23.cart-table-item__availability--desktop{width:200px}.cart-table-item__availability--desktop .availability--simple{align-items:center}@media screen and (max-width:1279.98px){.cart-table-item__availability--desktop{display:none}}@media screen and (max-width:1279.98px){.cart-table-item__availability--mobile{font-size:13px}}@media screen and (min-width:1280px){.cart-table-item__availability--mobile{display:none}}.cart-table-item__unit{font-size:12px;font-weight:600;line-height:1.4;color:#6e757c}.cart-table-item__store-availability{margin-top:4px;font-size:14px;font-weight:400;line-height:22px;color:#2b3848}@media screen and (min-width:1280px){.cart-table-item__store-availability{text-align:center}}.cart-table-item__store-availability span{text-decoration:underline}@media screen and (max-width:479.98px){.cart-table-item__unit-price{width:100%}}@media screen and (min-width:480px){.cart-table-item__unit-price{width:calc((100% - 24px)/2)}}@media screen and (max-width:767.98px){.cart-table-item__unit-price .price--stacked{flex-direction:row;align-items:baseline;gap:4px}.cart-table-item__unit-price .price--stacked .price__value,.cart-table-item__unit-price .price--stacked .price__vat{line-height:unset}}@media screen and (min-width:768px){.cart-table-item__unit-price{width:110px;text-align:right}}.cart-table-item__amount{display:flex;align-items:center;column-gap:4px}@media screen and (max-width:479.98px){.cart-table-item__amount{width:100%}}@media screen and (min-width:480px){.cart-table-item__amount{width:calc((100% - 24px)/2);justify-content:flex-end}}@media screen and (min-width:768px){.cart-table-item__amount{width:120px;justify-content:center}}@media screen and (max-width:479.98px){.cart-table-item__price{width:100%}}@media screen and (min-width:480px){.cart-table-item__price{text-align:right;width:100%}}@media screen and (max-width:767.98px){.cart-table-item__price{display:flex;justify-content:space-between;align-items:center}.cart-table-item__price .price--stacked{flex-direction:row;align-items:baseline;gap:4px}.cart-table-item__price .price--stacked .price__value,.cart-table-item__price .price--stacked .price__vat{line-height:unset}}@media screen and (min-width:768px){.cart-table-item__price{width:110px;text-align:right}}.cart-table-item__price strong{font-size:16px;font-weight:600;line-height:28px}.cart-table-item__price--coupon{width:fit-content}.cart-table-item__price--coupon strong{white-space:nowrap}.cart-table-item__vat-label{display:block;font-size:13px;font-weight:400;line-height:18px;color:#6e757c}.cart-table-item__remove{color:#6e757c;cursor:pointer}@media screen and (max-width:1279.98px){.cart-table-item__remove{position:absolute;right:0;top:0}.cart-table-item__remove a{display:flex;align-items:center;justify-content:center;width:32px;height:32px}}@media screen and (min-width:1280px){.cart-table-item__remove{width:20px;text-align:right}.cart-table-item__remove a{display:flex}}.cart-table-item__bottom{width:calc(100% + 80px);margin-left:-80px}@media screen and (min-width:480px){.cart-table-item__bottom{width:calc(100% + 100px);margin-left:-100px}}@media screen and (min-width:768px){.cart-table-item__bottom{width:100%;margin-left:0}}.cart-table-item__bottom .alert{margin:0}.cart-table-item__label{margin-bottom:4px;font-size:12px;font-weight:500;color:#6e757c}@media screen and (max-width:767.98px){.cart-table-item__label--total{font-size:14px}}@media screen and (min-width:1280px){.cart-table-item__label{display:none}}.cart-table-item__availability .availability .availability__text{font-size:16px}.cart-table-item__store-availability{margin-top:4px;font-size:16px}.cart-table-item__store-availability a{cursor:pointer;text-decoration:underline}.cart-table-item__store-availability a:hover,.cart-table-item__store-availability a:focus{text-decoration:none}.cart-table-coupon{color:#a56830}.cart-table-coupon cmp-price .price__value,.cart-table-coupon cmp-price .price__vat{font-size:inherit;font-weight:inherit;line-height:inherit;color:inherit}@media screen and (min-width:1280px){.cart{margin:0 20px}}.cart__header{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px 16px;margin-bottom:32px}.cart__header .cart__title{margin-bottom:0}.cart__title,.cart .table{margin-bottom:32px}.cart__in{display:grid;grid-template-columns:1fr;grid-gap:32px;margin-bottom:32px}@media screen and (min-width:920px){.cart__in{grid-template-columns:1fr auto;align-items:start}}@media screen and (min-width:1280px){.cart__in{grid-template-columns:1fr 440px}}.cart__main--step3 .user-data__section{margin-bottom:0;padding-bottom:0;border:none}.cart__main--step3 .user-data__wrapper{padding-bottom:32px;margin-bottom:32px;border-bottom:1px solid #D0D6DE}@media screen and (min-width:920px){.cart__main--step3 .user-data__wrapper{max-width:580px}}@media screen and (min-width:600px){.cart__main--step3 .user-data__item{display:grid;align-items:center;grid-template-columns:120px 1fr;gap:40px}}@media screen and (min-width:920px){.cart__main--step3 .user-data__item .form-input{min-width:300px}}@media screen and (min-width:1280px){.cart__main--step3 .user-data__item .form-input{min-width:340px}}@media screen and (min-width:920px){.cart__side{position:sticky;top:80px}}@media screen and (min-width:1280px){.cart__side{top:24px}}.cart__side--thx{position:relative}.cart__actions{display:flex;flex-direction:column;align-items:center;row-gap:20px}@media screen and (min-width:768px){.cart__actions{flex-direction:row;justify-content:space-between;align-items:baseline;column-gap:20px}}
23.cart__actions-btns{display:flex;column-gap:80px}@media screen and (max-width:919.98px){.cart__actions-btns{column-gap:20px}}@media screen and (max-width:767.98px){.cart__actions-btns{flex-direction:column;align-items:center;row-gap:20px;width:100%}.cart__actions-btns .btn{width:100%}}.cart__actions-b2b{display:flex;column-gap:20px}@media screen and (max-width:767.98px){.cart__actions-b2b{flex-direction:column;align-items:center;row-gap:20px;width:100%}.cart__actions-b2b .btn{width:100%}}.cart__back{display:inline-flex;align-items:center;column-gap:4px;color:#cb2c30}.cart__back .icon{width:8px;transform:rotate(-180deg)}.cart__back:hover{text-decoration:none}.cart__next{margin-bottom:16px}@media screen and (max-width:767.98px){.cart__next{width:100%}}@media screen and (min-width:768px){.cart__next{margin-bottom:0}}.cart__next--finish{flex-direction:column}.cart__next--finish span{font-size:10px}.cart__alert{margin-bottom:20px}@media screen and (min-width:1280px){.cart__alert{margin-bottom:32px}}.cart__notice{display:flex;justify-content:flex-end}
24`],encapsulation:2})}}return i})();function Da(i){return i!=null&&`${i}`!="false"}var di;try{di=typeof Intl<"u"&&Intl.v8BreakIterator}catch(i){di=!1}var Pa=(()=>{class i{constructor(t){this._platformId=t,this.isBrowser=this._platformId?Mi(this._platformId):typeof document=="object"&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!!(window.chrome||di)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}static{this.\u0275fac=function(e){return new(e||i)(Q(fi))}}static{this.\u0275prov=et({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();var Ea=(()=>{class i{constructor(t){this._platform=t}isDisabled(t){return t.hasAttribute("disabled")}isVisible(t){return Wo(t)&&getComputedStyle(t).visibility==="visible"}isTabbable(t){if(!this._platform.isBrowser)return!1;let e=Oo(Qo(t));if(e&&(Ia(e)===-1||!this.isVisible(e)))return!1;let a=t.nodeName.toLowerCase(),r=Ia(t);return t.hasAttribute("contenteditable")?r!==-1:a==="iframe"||a==="object"||this._platform.WEBKIT&&this._platform.IOS&&!Ko(t)?!1:a==="audio"?t.hasAttribute("controls")?r!==-1:!1:a==="video"?r===-1?!1:r!==null?!0:this._platform.FIREFOX||t.hasAttribute("controls"):t.tabIndex>=0}isFocusable(t,e){return qo(t)&&!this.isDisabled(t)&&(e?.ignoreVisibility||this.isVisible(t))}static{this.\u0275fac=function(e){return new(e||i)(Q(Pa))}}static{this.\u0275prov=et({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();function Oo(i){try{return i.frameElement}catch(l){return null}}function Wo(i){return!!(i.offsetWidth||i.offsetHeight||typeof i.getClientRects=="function"&&i.getClientRects().length)}function Ro(i){let l=i.nodeName.toLowerCase();return l==="input"||l==="select"||l==="button"||l==="textarea"}function Uo(i){return Ho(i)&&i.type=="hidden"}function Go(i){return $o(i)&&i.hasAttribute("href")}function Ho(i){return i.nodeName.toLowerCase()=="input"}function $o(i){return i.nodeName.toLowerCase()=="a"}function Aa(i){if(!i.hasAttribute("tabindex")||i.tabIndex===void 0)return!1;let l=i.getAttribute("tabindex");return l=="-32768"?!1:!!(l&&!isNaN(parseInt(l,10)))}function Ia(i){if(!Aa(i))return null;let l=parseInt(i.getAttribute("tabindex")||"",10);return isNaN(l)?-1:l}function Ko(i){let l=i.nodeName.toLowerCase(),t=l==="input"&&i.type;return t==="text"||t==="password"||l==="select"||l==="textarea"}function qo(i){return Uo(i)?!1:Ro(i)||Go(i)||i.hasAttribute("contenteditable")||Aa(i)}function Qo(i){return i.ownerDocument&&i.ownerDocument.defaultView||window}var Zo=(()=>{class i{constructor(){this._focusTrapStack=[]}register(t){this._focusTrapStack=this._focusTrapStack.filter(a=>a!==t);let e=this._focusTrapStack;e.length&&e[e.length-1]._disable(),e.push(t),t._enable()}deregister(t){t._disable();let e=this._focusTrapStack,a=e.indexOf(t);a!==-1&&(e.splice(a,1),e.length&&e[e.length-1]._enable())}static{this.\u0275fac=function(e){return new(e||i)}}static{this.\u0275prov=et({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();var pi=class{get enabled(){return this._enabled}set enabled(l){this._enabled=l,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(l,this._startAnchor),this._toggleAnchorTabIndex(l,this._endAnchor))}constructor(l,t,e,a,r=!1){this._element=l,this._checker=t,this._ngZone=e,this._document=a,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,r||this.attachAnchors()}destroy(){let l=this._startAnchor,t=this._endAnchor;l&&(l.removeEventListener("focus",this.startAnchorListener),l.parentNode&&l.parentNode.removeChild(l)),t&&(t.removeEventListener("focus",this.endAnchorListener),t.parentNode&&t.parentNode.removeChild(t)),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return this._hasAttached?!0:(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(){return new Promise(l=>{this._executeOnStable(()=>l(this.focusInitialElement()))})}focusFirstTabbableElementWhenReady(){return new Promise(l=>{this._executeOnStable(()=>l(this.focusFirstTabbableElement()))})}focusLastTabbableElementWhenReady(){return new Promise(l=>{this._executeOnStable(()=>l(this.focusLastTabbableElement()))})}_getRegionBoundary(l){let t=this._element.querySelectorAll(`[cdk-focus-region-${l}], [cdkFocusRegion${l}], [cdk-focus-${l}]`);for(let e=0;e<t.length;e++)t[e].hasAttribute(`cdk-focus-${l}`)?console.warn(`Found use of deprecated attribute 'cdk-focus-${l}', use 'cdkFocusRegion${l}' instead. The deprecated attribute will be removed in 8.0.0.`,t[e]):t[e].hasAttribute(`cdk-focus-region-${l}`)&&console.warn(`Found use of deprecated attribute 'cdk-focus-region-${l}', use 'cdkFocusRegion${l}' instead. The deprecated attribute will be removed in 8.0.0.`,t[e]);return l=="start"?t.length?t[0]:this._getFirstTabbableElement(this._element):t.length?t[t.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(){let l=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(l){if(l.hasAttribute("cdk-focus-initial")&&console.warn("Found use of deprecated attribute 'cdk-focus-initial', use 'cdkFocusInitial' instead. The deprecated attribute will be removed in 8.0.0",l),!this._checker.isFocusable(l)){let t=this._getFirstTabbableElement(l);return t?.focus(),!!t}return l.focus(),!0}return this.focusFirstTabbableElement()}focusFirstTabbableElement(){let l=this._getRegionBoundary("start");return l&&l.focus(),!!l}focusLastTabbableElement(){let l=this._getRegionBoundary("end");return l&&l.focus(),!!l}hasAttached(){return this._hasAttached}_getFirstTabbableElement(l){if(this._checker.isFocusable(l)&&this._checker.isTabbable(l))return l;let t=l.children||l.childNodes;for(let e=0;e<t.length;e++){let a=t[e].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(t[e]):null;if(a)return a}return null}_getLastTabbableElement(l){if(this._checker.isFocusable(l)&&this._checker.isTabbable(l))return l;let t=l.children||l.childNodes;for(let e=t.length-1;e>=0;e--){let a=t[e].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(t[e]):null;if(a)return a}return null}_createAnchor(){let l=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,l),l.classList.add("cdk-visually-hidden"),l.classList.add("cdk-focus-trap-anchor"),l.setAttribute("aria-hidden","true"),l}_toggleAnchorTabIndex(l,t){l?t.setAttribute("tabindex","0"):t.removeAttribute("tabindex")}toggleAnchors(l){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(l,this._startAnchor),this._toggleAnchorTabIndex(l,this._endAnchor))}_executeOnStable(l){this._ngZone.isStable?l():this._ngZone.onStable.pipe(M(1)).subscribe(l)}},Yo=(()=>{class i{constructor(t,e,a){this._checker=t,this._ngZone=e,this._document=a}create(t,e=!1){return new pi(t,this._checker,this._ngZone,this._document,e)}static{this.\u0275fac=function(e){return new(e||i)(Q(Ea),Q(ui),Q(_e))}}static{this.\u0275prov=et({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})(),Ta=(()=>{class i{get enabled(){return this.focusTrap.enabled}set enabled(t){this.focusTrap.enabled=Da(t)}get autoCapture(){return this._autoCapture}set autoCapture(t){this._autoCapture=Da(t)}constructor(t,e,a){this._elementRef=t,this._focusTrapFactory=e,this._previouslyFocusedElement=null,this._autoCapture=!1,this._document=a,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}ngOnDestroy(){this.focusTrap.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}ngAfterContentInit(){this.focusTrap.attachAnchors(),this.autoCapture&&this._captureFocus()}ngDoCheck(){this.focusTrap.hasAttached()||this.focusTrap.attachAnchors()}ngOnChanges(t){let e=t.autoCapture;e&&!e.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=this._document.activeElement,this.focusTrap.focusInitialElementWhenReady()}static{this.\u0275fac=function(e){return new(e||i)(m(he),m(Yo),m(_e))}}static{this.\u0275dir=Qe({type:i,selectors:[["","focusTrap",""]],inputs:{enabled:[0,"cdkTrapFocus","enabled"],autoCapture:[0,"cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["focusTrap"],features:[Ie([Zo,Pa,Ea]),$t]})}}return i})(),Fa=(()=>
24{class i{static forRoot(){return{ngModule:i,providers:[]}}static{this.\u0275fac=function(e){return new(e||i)}}static{this.\u0275mod=ut({type:i})}static{this.\u0275inj=ht({imports:[kt]})}}return i})();var Jo=["*"],Ma=(()=>{class i{constructor(){this.hide=()=>{},this.setClass=()=>{}}static{this.\u0275fac=function(e){return new(e||i)}}static{this.\u0275prov=et({token:i,factory:i.\u0275fac,providedIn:"platform"})}}return i})();var Va=(()=>{class i{static{this.\u0275fac=function(e){return new(e||i)}}static{this.\u0275prov=et({token:i,factory:i.\u0275fac,providedIn:"platform"})}}return i})(),He={backdrop:!0,keyboard:!0,focus:!0,show:!1,ignoreBackdropClick:!1,class:"",animated:!0,initialState:{},closeInterceptor:void 0},Xo=new hi("override-default-config"),Tt={SCROLLBAR_MEASURER:"modal-scrollbar-measure",BACKDROP:"modal-backdrop",OPEN:"modal-open",FADE:"fade",IN:"in",SHOW:"show"};var $e={MODAL:300,BACKDROP:150},mi={BACKRDOP:"backdrop-click",ESC:"esc",BACK:"browser-back-navigation-clicked"},tc=(()=>{class i{get isAnimated(){return this._isAnimated}set isAnimated(t){this._isAnimated=t}get isShown(){return this._isShown}set isShown(t){this._isShown=t,t?this.renderer.addClass(this.element.nativeElement,`${Tt.SHOW}`):this.renderer.removeClass(this.element.nativeElement,`${Tt.SHOW}`)}constructor(t,e){this._isAnimated=!1,this._isShown=!1,this.element=t,this.renderer=e}ngOnInit(){this.isAnimated&&(this.renderer.addClass(this.element.nativeElement,`${Tt.FADE}`),ia.reflow(this.element.nativeElement)),this.isShown=!0}static{this.\u0275fac=function(e){return new(e||i)(m(he),m(Ft))}}static{this.\u0275cmp=C({type:i,selectors:[["bs-modal-backdrop"]],hostAttrs:[1,"modal-backdrop"],decls:0,vars:0,template:function(e,a){},encapsulation:2})}}return i})(),ec=1,_i=(()=>{class i{constructor(t,e,a){this.clf=e,this.modalDefaultOption=a,this.onShow=new wt,this.onShown=new wt,this.onHide=new wt,this.onHidden=new wt,this.isBodyOverflowing=!1,this.originalBodyPadding=0,this.scrollbarWidth=0,this.modalsCount=0,this.lastHiddenId=null,this.loaders=[],this._focusEl=null,this._backdropLoader=this.clf.createLoader(),this._renderer=t.createRenderer(null,null),this.config=a?Object.assign({},He,a):He}show(t,e){this._focusEl=U.activeElement,this.modalsCount++,this.lastHiddenId=null,this._createLoaders();let a=e?.id||ec++;return this.config=this.modalDefaultOption?Object.assign({},He,this.modalDefaultOption,e):Object.assign({},He,e),this.config.id=a,this._showBackdrop(),this.lastDismissReason=void 0,this._showModal(t)}hide(t){this.lastHiddenId!==t&&(this.lastHiddenId=t,(this.modalsCount===1||t==null)&&(this._hideBackdrop(),this.resetScrollbar()),this.modalsCount=this.modalsCount>=1&&t!=null?this.modalsCount-1:0,setTimeout(()=>{this._hideModal(t),this.removeLoaders(t)},this.config.animated?$e.BACKDROP:0),this._focusEl&&this._focusEl.focus())}_showBackdrop(){let t=this.config.backdrop===!0||this.config.backdrop==="static",e=!this.backdropRef||!this.backdropRef.instance.isShown;this.modalsCount===1&&(this.removeBackdrop(),t&&e&&(this._backdropLoader.attach(tc).to("body").show({isAnimated:this.config.animated}),this.backdropRef=this._backdropLoader._componentRef))}_hideBackdrop(){if(!this.backdropRef)return;this.backdropRef.instance.isShown=!1;let t=this.config.animated?$e.BACKDROP:0;setTimeout(()=>this.removeBackdrop(),t)}_showModal(t){let e=this.loaders[this.loaders.length-1];if(this.config&&this.config.providers)for(let h of this.config.providers)e.provide(h);let a=new Ma,r=e.provide({provide:Va,useValue:this.config}).provide({provide:Ma,useValue:a}).attach(ic).to("body");return a.hide=()=>r.instance?.hide(),a.setClass=h=>{r.instance&&(r.instance.config.class=h)},a.onHidden=new wt,a.onHide=new wt,this.copyEvent(e.onBeforeHide,a.onHide),this.copyEvent(e.onHidden,a.onHidden),r.show({content:t,isAnimated:this.config.animated,initialState:this.config.initialState,bsModalService:this,id:this.config.id}),r.instance&&(r.instance.level=this.getModalsCount(),a.content=e.getInnerComponent(),a.id=r.instance.config?.id),a}_hideModal(t){if(t!=null){let e=this.loaders.findIndex(r=>
24r.instance?.config.id===t),a=this.loaders[e];a&&a.hide(t)}else this.loaders.forEach(e=>{e.instance&&e.hide(e.instance.config.id)})}getModalsCount(){return this.modalsCount}setDismissReason(t){this.lastDismissReason=t}removeBackdrop(){this._renderer.removeClass(U.body,Tt.OPEN),this._renderer.setStyle(U.body,"overflow-y",""),this._backdropLoader.hide(),this.backdropRef=void 0}checkScrollbar(){this.isBodyOverflowing=U.body.clientWidth<window.innerWidth,this.scrollbarWidth=this.getScrollbarWidth()}setScrollbar(){U&&(this.originalBodyPadding=parseInt(window.getComputedStyle(U.body).getPropertyValue("padding-right")||"0",10),this.isBodyOverflowing&&(U.body.style.paddingRight=`${this.originalBodyPadding+this.scrollbarWidth}px`))}resetScrollbar(){U.body.style.paddingRight=`${this.originalBodyPadding}px`}getScrollbarWidth(){let t=this._renderer.createElement("div");this._renderer.addClass(t,Tt.SCROLLBAR_MEASURER),this._renderer.appendChild(U.body,t);let e=t.offsetWidth-t.clientWidth;return this._renderer.removeChild(U.body,t),e}_createLoaders(){let t=this.clf.createLoader();this.copyEvent(t.onBeforeShow,this.onShow),this.copyEvent(t.onShown,this.onShown),this.copyEvent(t.onBeforeHide,this.onHide),this.copyEvent(t.onHidden,this.onHidden),this.loaders.push(t)}removeLoaders(t){if(t!=null){let e=this.loaders.findIndex(a=>a.instance?.config.id===t);e>=0&&(this.loaders.splice(e,1),this.loaders.forEach((a,r)=>{a.instance&&(a.instance.level=r+1)}))}else this.loaders.splice(0,this.loaders.length)}copyEvent(t,e){t.subscribe(a=>{e.emit(this.lastDismissReason||a)})}static{this.\u0275fac=function(e){return new(e||i)(Q(vi),Q(ge),Q(Xo,8))}}static{this.\u0275prov=et({token:i,factory:i.\u0275fac,providedIn:"platform"})}}return i})(),ic=(()=>{class i{constructor(t,e,a){this._element=e,this._renderer=a,this.isShown=!1,this.isAnimated=!1,this._focusEl=null,this.isModalHiding=!1,this.clickStartedInContent=!1,this.config=Object.assign({},t)}ngOnInit(){this._focusEl=U.activeElement,this.isAnimated&&this._renderer.addClass(this._element.nativeElement,Tt.FADE),this._renderer.setStyle(this._element.nativeElement,"display","block"),setTimeout(()=>{this.isShown=!0,this._renderer.addClass(this._element.nativeElement,Tt.SHOW)},this.isAnimated?$e.BACKDROP:0),U&&U.body&&(this.bsModalService&&this.bsModalService.getModalsCount()===1&&(this.bsModalService.checkScrollbar(),this.bsModalService.setScrollbar()),this._renderer.addClass(U.body,Tt.OPEN),this._renderer.setStyle(U.body,"overflow-y","hidden")),this._element.nativeElement&&this._element.nativeElement.focus()}onClickStarted(t){if(!(t.target instanceof Element)){this.clickStartedInContent=!1;return}this.clickStartedInContent=t.target!==this._element.nativeElement}onClickStop(t){if(!(t.target instanceof Element)){this.clickStartedInContent=!1;return}let e=t.target===this._element.nativeElement&&!this.clickStartedInContent;if(this.config.ignoreBackdropClick||this.config.backdrop==="static"||!e){this.clickStartedInContent=!1;return}this.bsModalService?.setDismissReason(mi.BACKRDOP),this.hide()}onPopState(){this.bsModalService?.setDismissReason(mi.BACK),this.hide()}onEsc(t){if(!this.isShown)return;let e=t,a=h=>"keyCode"in h;(e.key==="Escape"||e.key==="Esc"||a(e)&&e.keyCode===27)&&(e.preventDefault(),this.config.keyboard&&this.level===this.bsModalService?.getModalsCount()&&(this.bsModalService?.setDismissReason(mi.ESC),this.hide()))}ngOnDestroy(){this.isShown&&this._hide()}hide(){if(!this.isModalHiding){if(this.config.closeInterceptor){this.config.closeInterceptor().then(()=>this._hide(),()=>{});return}this._hide()}}_hide(){this.isModalHiding=!0,this._renderer.removeClass(this._element.nativeElement,Tt.SHOW),setTimeout(()=>{this.isShown=!1,this.bsModalService?.hide(this.config.id),U&&U.body&&this.bsModalService?.getModalsCount()===0&&(this._renderer.removeClass(U.body,Tt.OPEN),this._renderer.setStyle(U.body,"overflow-y","")),this.bsModalService?.hide(this.config.id),this.isModalHiding=!1,this._focusEl&&this._focusEl.focus()},this.isAnimated?$e.MODAL:0)}static{this.\u0275fac=function(e){return new(e||i)(m(Va),m(he),m(Ft))}}
24static{this.\u0275cmp=C({type:i,selectors:[["modal-container"]],hostAttrs:["role","dialog","tabindex","-1",1,"modal"],hostVars:3,hostBindings:function(e,a){e&1&&b("mousedown",function(h){return a.onClickStarted(h)})("click",function(h){return a.onClickStop(h)})("popstate",function(){return a.onPopState()},Wt)("keydown.esc",function(h){return a.onEsc(h)},Wt),e&2&&it("aria-modal",!0)("aria-labelledby",a.config.ariaLabelledBy)("aria-describedby",a.config.ariaDescribedby)},features:[Ie([_i])],ngContentSelectors:Jo,decls:3,vars:2,consts:[["role","document","focusTrap",""],[1,"modal-content"]],template:function(e,a){e&1&&(Ci(),o(0,"div",0)(1,"div",1),Si(2),c()()),e&2&&De("modal-dialog"+(a.config.class?" "+a.config.class:""))},dependencies:[Ta],encapsulation:2})}}return i})();var ja=(()=>{class i{static forRoot(){return{ngModule:i,providers:[_i,ge,Xe]}}static forChild(){return{ngModule:i,providers:[_i,ge,Xe]}}static{this.\u0275fac=function(e){return new(e||i)}}static{this.\u0275mod=ut({type:i})}static{this.\u0275inj=ht({imports:[Fa]})}}return i})();var za=(()=>{class i{static{this.\u0275fac=function(e){return new(e||i)}}static{this.\u0275mod=ut({type:i})}static{this.\u0275inj=ht({imports:[kt,qt,At]})}}return i})();var ac=(i,l)=>({withVat:i,withoutVat:l});function nc(i,l){if(i&1&&_(0,"cmp-alert",1),i&2){let t=s();p("alertType","info")("message",t.sen["web-pay-not-paid--already-paid-alert-box-text"])}}function rc(i,l){if(i&1&&_(0,"cmp-alert",1),i&2){let t=s();p("alertType","info")("message",t.sen["web-pay-not-paid--not-exists-alert-box-text"])}}function oc(i,l){if(i&1&&_(0,"cmp-alert",1),i&2){let t=s();p("alertType","info")("message",t.sen["web-pay-not-paid--not-web-pay-alert-box-text"])}}function cc(i,l){if(i&1&&(o(0,"div",14),_(1,"cmp-picture",20),c()),i&2){let t=s().$implicit;n(),p("imagePath",t.logo)("fotoCacheKey","delivery_payment")("width",133)("height",100)("alt",t.name)}}function lc(i,l){if(i&1&&(o(0,"div",17),_(1,"cmp-price",21),c()),i&2){let t=s().$implicit;n(),p("price",N(1,ac,t.priceWithVat,t.priceWithOutVAT))}}function sc(i,l){if(i&1&&(o(0,"div",18),d(1),c()),i&2){let t=s(3);n(),u(" ",t.sen["app-free"]," ")}}function dc(i,l){if(i&1&&(o(0,"div",19),d(1),c()),i&2){let t=s().$implicit;n(),u(" ",t.description," ")}}function pc(i,l){if(i&1&&(o(0,"div",9),_(1,"input",12),o(2,"label",13),x(3,cc,2,5,"div",14),o(4,"div",15)(5,"div",16),d(6),c()(),x(7,lc,2,4,"div",17),x(8,sc,2,1,"div",18),x(9,dc,2,1,"div",19),c()()),i&2){let t=l.$implicit;n(),p("id",Ct("p"+t.id))("checked",!0)("value",t.id),n(),p("for",Ct("p"+t.id)),n(),f(t.logo?3:-1),n(3),u(" ",t.name," "),n(),f(t.priceWithVat>0?7:-1),n(),f(t.priceWithVat===0?8:-1),n(),f(t.description?9:-1)}}function mc(i,l){if(i&1){let t=w();Se(0,2),o(1,"h1",3),d(2),c(),o(3,"div",4),d(4),c(),o(5,"div",5)(6,"strong"),d(7),c(),d(8),c(),o(9,"div",6)(10,"div",7)(11,"div",8),B(12,pc,10,11,"div",9,K),c()()(),o(14,"div",10)(15,"button",11),b("click",function(){v(t);let a=s();return y(a.onSaveClick())}),d(16),c()(),ke()}if(i&2){let t=s();p("formGroup",t.form),n(2),u(" ",t.sen["web-pay-not-paid--payment-title"]," "),n(2),u(" ",t.sen["web-pay-not-paid--header-text"]," "),n(3),D(t.sen["web-pay-not-paid--delivery-title"]),n(),u(" ",t.webPayNotPaidData.delivery.name," "),n(4),L(t.webPayNotPaidData.payments),n(4),u(" ",t.sen["web-pay-not-paid--save"]," ")}}var Na=(()=>{class i extends E{constructor(t,e,a,r,h,g){super(t,e),this.activatedRoute=a,this.cartSvc=r,this.fb=h,this.router=g,this.getWebPayNotPaidStatus=Gi,this.webPayNotPaidData=null,this.paymentItems=null,this.form=null,this.ngUnsubscribe=new z,this.createForm(),this.dataSvc.dataLoading=!0,this.activatedRoute.params.pipe(M(1)).pipe(_t(()=>{this.dataSvc.dataLoading=!1})).subscribe(V=>{this.orderGuid=V.orderGuid,this.orderGuid&&(this.dataSvc.dataLoading=!0,this.cartSvc.getWebPayNotPaidData(this.orderGuid).pipe(A(this.ngUnsubscribe)).pipe(_t(()=>{this.dataSvc.dataLoading=!1})).subscribe(j=>{this.webPayNotPaidData=j,this.setPayments()}))})}ngOnDestroy(){this.ngUnsubscribe.next(),this.ngUnsubscribe.complete()}onSaveClick(){this.saveOrderPayment()}saveOrderPayment(){let t={orderGuid:this.orderGuid,paymentId:this.form.get("paymentId")?.value};this.dataSvc.dataLoading=!0,this.cartSvc.saveOrderPayment(t).pipe(A(this.ngUnsubscribe)).pipe(_t(()=>{this.dataSvc.dataLoading=!1})).subscribe(e=>{e.status===Je.SavedAndWebPayCreated?window.location.href=e.gatewayUrl:e.status===Je.Saved?(this.cartSvc.orderHash=this.orderGuid,this.cartSvc.cart.maxStep=4,ft(this.seSvc.cartMaxStepSessionKey,4),this.router.navigate(["/kosik/podekovani"]).then(()=>{this.cartSvc.emptyCartNextStep()})):this.router.navigate(["/kosik/gpwebpay/error/finish"]).then(()=>{})})}createForm(){this.form=this.fb.group({paymentId:this.fb.control(null)})}setPayments(){this.paymentItems=(this.webPayNotPaidData.payments??[]).map((t,e)=>({value:t.id,data:t.name,selected:e==0,isDisabled:!1})),this.paymentItems?.length&&this.form.patchValue({paymentId:this.paymentItems.find(t=>t.value===this.webPayNotPaidData.selectedPaymentId)?.value})}static{this.\u0275fac=function(e){return new(e||i)(m(P),m(I),m(Ae),m(T),m(Me),m(R))}}static{this.\u0275cmp=C({type:i,selectors:[["ng-component"]],standalone:!1,features:[
24k],decls:5,vars:4,consts:[[1,"global-page"],[3,"alertType","message"],[3,"formGroup"],[1,"global-page__title","h1"],[1,"global-page__text"],[1,"global-page__text","global-page__text--mb16"],[1,"delivery-payment"],[1,"delivery-payment__section"],[1,"delivery-payment__list"],[1,"delivery-payment-item"],[1,"global-page__actions"],[1,"btn","btn--medium","btn--primary",3,"click"],["type","radio","name","payment","formControlName","paymentId",1,"delivery-payment-item__input",3,"id","checked","value"],[1,"delivery-payment-item__label",3,"for"],[1,"delivery-payment-item__image"],[1,"delivery-payment-item__content"],[1,"delivery-payment-item__title"],[1,"delivery-payment-item__price"],[1,"delivery-payment-item__price","delivery-payment-item__price--free"],[1,"delivery-payment-item__description"],[3,"imagePath","fotoCacheKey","width","height","alt"],[3,"price"]],template:function(e,a){e&1&&(o(0,"div",0),x(1,nc,1,2,"cmp-alert",1),x(2,rc,1,2,"cmp-alert",1),x(3,oc,1,2,"cmp-alert",1),x(4,mc,17,6,"ng-container",2),c()),e&2&&(n(),f((a.webPayNotPaidData==null?null:a.webPayNotPaidData.status)===a.getWebPayNotPaidStatus.AlreadyPaid?1:-1),n(),f((a.webPayNotPaidData==null?null:a.webPayNotPaidData.status)===a.getWebPayNotPaidStatus.NotExists?2:-1),n(),f((a.webPayNotPaidData==null?null:a.webPayNotPaidData.status)===a.getWebPayNotPaidStatus.NotWebPay?3:-1),n(),f((a.webPayNotPaidData==null?null:a.webPayNotPaidData.status)===a.getWebPayNotPaidStatus.Success?4:-1))},dependencies:[Dt,Ui,ot,ct,lt,gt,dt,vt,Et],styles:['.delivery-payment[_ngcontent-%COMP%]{display:flex;flex-direction:column;row-gap:24px}.delivery-payment__section[_ngcontent-%COMP%]{display:flex;flex-direction:column;row-gap:16px}.delivery-payment__list[_ngcontent-%COMP%]{display:flex;flex-direction:column;row-gap:8px}.delivery-payment-item__input[_ngcontent-%COMP%]{display:none}.delivery-payment-item__input[_ngcontent-%COMP%]:checked + .delivery-payment-item__label[_ngcontent-%COMP%]{background-color:#ecf7ff;border-color:#4d9cde}.delivery-payment-item__input[_ngcontent-%COMP%]:checked + .delivery-payment-item__label[_ngcontent-%COMP%]:before{border-color:#2b3848;background-color:#2b3848}.delivery-payment-item__input[_ngcontent-%COMP%]:checked + .delivery-payment-item__label[_ngcontent-%COMP%]:after{scale:1;opacity:1}.delivery-payment-item__label[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;position:relative;padding:16px 16px 16px 48px;transition:all .3s ease;cursor:pointer;border:1px solid #3A3A3A;border-radius:8px}.delivery-payment-item__label[_ngcontent-%COMP%]:before{height:20px;width:20px;border-radius:50%;content:"";border:1px solid #e2e2e2;background-color:#fff;box-shadow:0 1px 3px #0000001a}.delivery-payment-item__label[_ngcontent-%COMP%]:after{width:8px;height:8px;content:"";transition:all .3s ease;opacity:0;scale:0;border-radius:50%;background-color:#fff}.delivery-payment-item__label[_ngcontent-%COMP%]:before, .delivery-payment-item__label[_ngcontent-%COMP%]:after{position:absolute}.delivery-payment-item__label[_ngcontent-%COMP%]:before{top:16px;left:16px}.delivery-payment-item__label[_ngcontent-%COMP%]:after{top:22px;left:22px}.delivery-payment-item__label[_ngcontent-%COMP%]:hover{border-color:#4d9cde}.delivery-payment-item__image[_ngcontent-%COMP%]{display:none}.delivery-payment-item__content[_ngcontent-%COMP%]{display:flex;flex-direction:column;row-gap:8px;flex:1;min-width:1px}.delivery-payment-item__title[_ngcontent-%COMP%]{font-weight:600}.delivery-payment-item__price[_ngcontent-%COMP%]{flex-shrink:0;font-weight:600;text-align:right}.delivery-payment-item__description[_ngcontent-%COMP%]{width:100%;font-size:13px}.delivery-payment-item__notice[_ngcontent-%COMP%]{color:#dd202b;font-size:13px}.delivery-payment-item__address[_ngcontent-%COMP%]{padding:8px;background-color:#fff;border-radius:5px;font-size:13px}']})}}return i})();var Ba=(()=>{class i{constructor(t){this.document=t}postRedirect(t,e){let a=this.document.createElement("form");a.method="POST",a.target="_self",a.action=t,e.forEach((r,h)=>{let g=this.document.createElement("input");g.type="hidden",g.name=h,g.value=r,a.append(g)}),this.document.body.appendChild(a),a.submit()}static{this.\u0275fac=function(e){return new(e||i)(Q(_e))}}static{this.\u0275prov=et({token:i,factory:i.\u0275fac})}}return i})();var _c=()=>["/kosik/obsah"],La=(i,l)=>({withVat:i,withoutVat:l});function hc(i,l){if(i&1&&_(0,"cmp-alert",3),i&2){let t=s();p("alertType","info")("message",t.sen["demand-empty"])}}function uc(i,l){if(i&1&&(o(0,"div",8),d(1),c(),_(2,"cmp-cart-product-list",9),o(3,"div",10)(4,"div",11)(5,"div",12),d(6),c(),o(7,"div",13),d(8),c()(),o(9,"div",14),_(10,"textarea",15),c()(),o(11,"div",16)(12,"div",17)(13,"div",18)(14,"div",19),d(15),c(),o(16,"div",20),_(17,"cmp-price",21),c()(),o(18,"div",18)(19,"div",19),d(20),c(),o(21,"div",20),_(22,"cmp-price",21),c()()()()),i&2){let t=s();n(),u(" ",t.sen["demand-intro"]," "),n(),p("productList",t.productList)("chosenGiftList",t.chosenGiftList)("coupons",t.coupons)("showCoupons",!1)("showGifts",!1),n(4),u("",t.sen["demand-note-title"],":"),n(2),D(t.sen["demand-note-text"]),n(),p("formGroup",t.demandForm),n(),p("placeholder",t.sen["demand-note-placeholder"]),it("aria-label",t.sen["demand-note-title"]),n(5),u(" ",t.sen["cart-grand-total"],": "),n(2),p("price",N(18,La,t.cartContent.priceWithoutPaymentAndDeliveryWithVat,t.cartContent.priceWithoutPaymentAndDeliveryWithOutVat))("isVatInfoVisible",!1),n(3),q(" ",t.sen["cart-grand-total"]," ",t.priceVatSvc.isWithVat?t.sen["without-vat"]:t.sen["with-vat"]," "),n(2),p("price",N(21,La,t.cartContent.priceWithoutPaymentAndDeliveryWithOutVat,t.cartContent.priceWithoutPaymentAndDeliveryWithVat))("isVatInfoVisible",!1)}}function xc(i,l){if(i&1){let t=w();o(0,"button",22),b("click",function(){v(t);let a=s();return y(a.sendDemand())}),d(1),c()}if(i&2){let t=s();n(),u(" ",t.sen["demand-send"]," ")}}var Oa=(()=>
24{class i extends E{constructor(t,e,a,r,h,g,V,j){super(t,e),this.cartSvc=a,this.fb=r,this.http=h,this.router=g,this.priceVatSvc=V,this.userSvc=j,this.productList=[],this.coupons=[],this.chosenGiftList=[],this.demandForm=this.fb.group({note:[""]}),this.ngUnsubscribe=new z,this.cartSvc.cartContentChanged.pipe(A(this.ngUnsubscribe)).subscribe(()=>{this.getCartContent()})}ngOnInit(){if(!this.userSvc.isB2b||!this.userSvc.canDemandsOffers){this.router.navigateByUrl("/kosik/obsah");return}this.getCartContent(),this.dataSvc.setBc([{displayName:this.sen["demand-new"],targetSeoTail:""}],`${this.seSvc.settings.shopSeo.ShopName} -  ${this.seSvc.settings?.shopSeo?.ShopTitle}`,this.seSvc.settings?.shopSeo?.ShopDescription)}ngOnDestroy(){this.ngUnsubscribe.next(),this.ngUnsubscribe.complete()}sendDemand(){let t={id:-1,companyId:-1,currencyId:-1,cultureId:-1,note:this.demandForm.value.note,userName:this.cartContent.user.userName,demandItems:this.createDemandItems(this.productList),totalPriceWithoutVat:this.cartContent.priceWithoutPaymentAndDeliveryWithOutVat,totalPriceWithVat:this.cartContent.priceWithoutPaymentAndDeliveryWithVat,createdOn:null,state:Li.WaitingForOffer};this.http.post(`/api/${Qt}/demand/save`,t).subscribe(e=>{e&&(this.cartSvc.emptyCart(),this.cartSvc.demandSubmitted=!0,this.cartSvc.submittedDemand=e,this.router.navigateByUrl(`/kosik/poptavka-odeslana/${e.id}`).then(()=>{}))})}getCartContent(){this.cartContent=this.cartSvc.cart,this.productList=this.cartSvc.productList,this.coupons=this.cartSvc.coupons}createDemandItems(t){return t?.map(e=>{var a=e.productDetail;return{id:-1,demandId:-1,count:e.count,code:a.code,name:a.name,imagePath:a.imagePath,priceWithoutVat:a.priceWithoutVAT,priceWithVat:a.priceWithVAT,productId:a.id,unit:a.unit.shortCut}})}static{this.\u0275fac=function(e){return new(e||i)(m(P),m(I),m(T),m(Me),m(Mt),m(R),m(Bt),m(Z))}}static{this.\u0275cmp=C({type:i,selectors:[["ng-component"]],standalone:!1,features:[k],decls:11,vars:7,consts:[[1,"cart"],[1,"cart__header"],[1,"cart__title","h1"],[3,"alertType","message"],[1,"cart__actions"],[1,"cart__back",3,"routerLink"],["symbolId","arrow-simple"],[1,"cart__next","btn","btn--large","btn--conversion"],[1,"demand__intro"],[3,"productList","chosenGiftList","coupons","showCoupons","showGifts"],[1,"demand-note"],[1,"demand-note__left"],[1,"demand-note__title"],[1,"demand-note__text"],[1,"demand-note__right",3,"formGroup"],["formControlName","note",1,"demand-note__textarea",3,"placeholder"],[1,"demand-price"],[1,"demand-price__in"],[1,"demand-price__item"],[1,"demand-price__label"],[1,"demand-price__value"],[3,"price","isVatInfoVisible"],[1,"cart__next","btn","btn--large","btn--conversion",3,"click"]],template:function(e,a){e&1&&(o(0,"div",0)(1,"div",1)(2,"h1",2),d(3),c()(),x(4,hc,1,2,"cmp-alert",3),x(5,uc,23,24),o(6,"div",4)(7,"a",5),_(8,"cmp-svg",6),d(9),c(),x(10,xc,2,1,"button",7),c()()),e&2&&(n(3),u(" ",a.sen["demand-new"]," "),n(),f((a.productList==null?null:a.productList.length)===0?4:-1),n(),f((a.productList==null?null:a.productList.length)>0?5:-1),n(2),p("routerLink",mt(6,_c)),n(2),u(" ",a.sen["demand-back-to-cart"]," "),n(),f((a.productList==null?null:a.productList.length)>0?10:-1))},dependencies:[Dt,ot,ct,lt,gt,rt,dt,vt,tt,Ge],styles:[`.cart .quick-order{margin-bottom:32px}.cart__bottom{display:flex;margin-bottom:30px}@media screen and (max-width:1279.98px){.cart__bottom{flex-direction:column;row-gap:8px}}@media screen and (min-width:1280px){.cart__bottom{flex-direction:row;align-items:center;justify-content:space-between}}.cart .cart-coupon{margin-bottom:16px}@media screen and (min-width:1280px){.cart .cart-coupon{margin-bottom:0}}
25`,`.cart-coupon{position:relative}.cart-coupon__toggle{margin-bottom:12px}.cart-coupon__form{display:flex;column-gap:8px}.cart-coupon__input{flex:1}@media screen and (min-width:920px){.cart-coupon__input{width:300px}}.cart-gifts{display:flex;flex-direction:column;row-gap:32px;margin-bottom:32px}.cart-gifts__section{display:flex;flex-direction:column;row-gap:12px}.cart-gifts__title{display:flex;align-items:center;column-gap:8px;font-weight:600}.cart-gifts__title .icon{font-size:8px}.cart-gifts__list{display:grid}@media screen and (max-width:767.98px){.cart-gifts__list{grid-template-columns:repeat(2,1fr);grid-gap:12px}}@media screen and (min-width:768px){.cart-gifts__list{grid-template-columns:repeat(4,1fr);grid-gap:16px}}@media screen and (min-width:1280px){.cart-gifts__list{grid-template-columns:repeat(6,1fr)}}.cart-gifts-item{height:100%}.cart-gifts-item--disabled{opacity:.5}.cart-gifts-item--disabled .cart-gifts-item__label{cursor:auto}.cart-gifts-item:not(.cart-gifts-item--disabled) .cart-gifts-item__label:hover{box-shadow:0 3px 12px #00000040;border-color:transparent}.cart-gifts-item__input{display:none}.cart-gifts-item__input:checked+.cart-gifts-item__label{border-color:#4d9cde;box-shadow:0 3px 12px #00000040}.cart-gifts-item__label{display:flex;flex-direction:column;row-gap:12px;padding:16px;height:100%;background-color:#fff;
25transition:box-shadow .3s ease,border-color .3s ease;border-radius:8px;box-shadow:0 1px 4px #00000014;cursor:pointer}.cart-gifts-item__image{display:flex;align-items:center;justify-content:center}.cart-gifts-item__image picture{display:flex;align-items:center;justify-content:center;aspect-ratio:1/1}.cart-gifts-item__image picture img{width:100%;height:100%;object-fit:contain}.cart-gifts-item__content{display:flex;flex-direction:column;justify-content:space-between;row-gap:8px;flex:1}.cart-gifts-item__title{line-height:1.5;text-decoration:none;font-weight:500;color:#2b3848}.cart-gifts-item__prices{display:flex;flex-direction:column;gap:4px}.cart-gifts-item__price{margin-top:auto;color:#2b8800;font-weight:600}.cart-login{display:flex;flex-direction:row;align-items:center;column-gap:16px;margin-bottom:32px;padding:0 16px;min-height:60px;background-color:#fff;border:1px solid #D0D6DE;border-radius:6px;box-shadow:0 2px 6px #2b38481a}.cart-login__icon{flex-shrink:0}.cart-login__icon .icon{display:flex;width:24px;height:24px;color:#6e757c}.cart-login__icon .icon svg{width:100%;height:100%}.cart-login__text{font-weight:500}.cart-login__link{color:#cb2c30;text-decoration:underline}.cart-login__link:hover{text-decoration:none}.cart-price{display:flex;justify-content:flex-end;margin-bottom:30px}.cart-price__in{display:flex;flex-direction:column;gap:4px;width:100%;padding:20px 24px;background-color:#f5f7f9;border-radius:6px}@media screen and (min-width:768px){.cart-price__in{max-width:460px}}.cart-price__item{display:flex;align-items:center;justify-content:space-between;column-gap:16px}.cart-price__item:first-child .cart-price__label{font-size:18px;font-weight:700;line-height:26px;color:#000}.cart-price__item:first-child cmp-price .price__value{font-size:18px;font-weight:700;line-height:26px;color:#000}.cart-price__item:last-child .cart-price__label{font-size:14px;font-weight:400;line-height:26px;color:#6b6f73}.cart-price__item:last-child cmp-price .price__value{font-size:14px;font-weight:400;line-height:26px;color:#6b6f73}.cart-table{margin-bottom:32px}.cart-table__head{display:none}@media screen and (min-width:1280px){.cart-table__head{display:flex;align-items:center;column-gap:20px;padding:12px 20px;border-bottom:1px solid #D9E0EC;font-size:13px;font-weight:500;color:#6e757c}}@media screen and (min-width:1440px){.cart-table__head{column-gap:40px}}.cart-table__col--product{flex:1;min-width:1px}.cart-table__col--availability{width:200px;text-align:center}.cart-table__col--unit-price{width:110px;text-align:right}.cart-table__col--amount{width:120px;text-align:center}.cart-table__col--price{width:110px;text-align:right}.cart-table__col--remove{width:20px}.cart-table-item{display:flex;align-items:center;flex-wrap:wrap;position:relative;padding:16px 16px 16px 96px;border-bottom:1px solid #D9E0EC}@media screen and (max-width:767.98px){.cart-table-item{gap:8px 12px;padding:24px 16px 24px 64px}}@media screen and (min-width:768px){.cart-table-item{gap:12px;padding:20px}}@media screen and (min-width:1280px){.cart-table-item{column-gap:20px}}@media screen and (min-width:1440px){.cart-table-item{column-gap:40px}}@media screen and (max-width:767.98px){.cart-table-item--coupon{flex-direction:row;flex-wrap:nowrap}}.cart-table-item__main{display:flex}@media screen and (max-width:767.98px){.cart-table-item__main{align-items:flex-start;column-gap:8px;width:calc(100% + 48px);margin-left:-48px}}@media screen and (min-width:768px){.cart-table-item__main{align-items:center;column-gap:12px;flex:1;width:auto;min-width:1px;margin-left:0}}.cart-table-item__image{flex-shrink:0}@media screen and (max-width:767.98px){.cart-table-item__image{width:40px}}@media screen and (min-width:768px){.cart-table-item__image{width:80px}}.cart-table-item__image picture{display:block}.cart-table-item__image img{border-radius:6px}.cart-table-item__content{display:flex;flex-direction:column;flex:1;min-width:1px;row-gap:8px}.cart-table-item__title{font-size:16px;font-weight:500;line-height:28px;color:#2b3848}.cart-table-item__title:hover{text-decoration:none}.cart-table-item__code{font-size:13px;font-weight:500;line-height:18px;color:#6e757c}
25.cart-table-item__availability--desktop{width:200px}.cart-table-item__availability--desktop .availability--simple{align-items:center}@media screen and (max-width:1279.98px){.cart-table-item__availability--desktop{display:none}}@media screen and (max-width:1279.98px){.cart-table-item__availability--mobile{font-size:13px}}@media screen and (min-width:1280px){.cart-table-item__availability--mobile{display:none}}.cart-table-item__unit{font-size:12px;font-weight:600;line-height:1.4;color:#6e757c}.cart-table-item__store-availability{margin-top:4px;font-size:14px;font-weight:400;line-height:22px;color:#2b3848}@media screen and (min-width:1280px){.cart-table-item__store-availability{text-align:center}}.cart-table-item__store-availability span{text-decoration:underline}@media screen and (max-width:479.98px){.cart-table-item__unit-price{width:100%}}@media screen and (min-width:480px){.cart-table-item__unit-price{width:calc((100% - 24px)/2)}}@media screen and (max-width:767.98px){.cart-table-item__unit-price .price--stacked{flex-direction:row;align-items:baseline;gap:4px}.cart-table-item__unit-price .price--stacked .price__value,.cart-table-item__unit-price .price--stacked .price__vat{line-height:unset}}@media screen and (min-width:768px){.cart-table-item__unit-price{width:110px;text-align:right}}.cart-table-item__amount{display:flex;align-items:center;column-gap:4px}@media screen and (max-width:479.98px){.cart-table-item__amount{width:100%}}@media screen and (min-width:480px){.cart-table-item__amount{width:calc((100% - 24px)/2);justify-content:flex-end}}@media screen and (min-width:768px){.cart-table-item__amount{width:120px;justify-content:center}}@media screen and (max-width:479.98px){.cart-table-item__price{width:100%}}@media screen and (min-width:480px){.cart-table-item__price{text-align:right;width:100%}}@media screen and (max-width:767.98px){.cart-table-item__price{display:flex;justify-content:space-between;align-items:center}.cart-table-item__price .price--stacked{flex-direction:row;align-items:baseline;gap:4px}.cart-table-item__price .price--stacked .price__value,.cart-table-item__price .price--stacked .price__vat{line-height:unset}}@media screen and (min-width:768px){.cart-table-item__price{width:110px;text-align:right}}.cart-table-item__price strong{font-size:16px;font-weight:600;line-height:28px}.cart-table-item__price--coupon{width:fit-content}.cart-table-item__price--coupon strong{white-space:nowrap}.cart-table-item__vat-label{display:block;font-size:13px;font-weight:400;line-height:18px;color:#6e757c}.cart-table-item__remove{color:#6e757c;cursor:pointer}@media screen and (max-width:1279.98px){.cart-table-item__remove{position:absolute;right:0;top:0}.cart-table-item__remove a{display:flex;align-items:center;justify-content:center;width:32px;height:32px}}@media screen and (min-width:1280px){.cart-table-item__remove{width:20px;text-align:right}.cart-table-item__remove a{display:flex}}.cart-table-item__bottom{width:calc(100% + 80px);margin-left:-80px}@media screen and (min-width:480px){.cart-table-item__bottom{width:calc(100% + 100px);margin-left:-100px}}@media screen and (min-width:768px){.cart-table-item__bottom{width:100%;margin-left:0}}.cart-table-item__bottom .alert{margin:0}.cart-table-item__label{margin-bottom:4px;font-size:12px;font-weight:500;color:#6e757c}@media screen and (max-width:767.98px){.cart-table-item__label--total{font-size:14px}}@media screen and (min-width:1280px){.cart-table-item__label{display:none}}.cart-table-item__availability .availability .availability__text{font-size:16px}.cart-table-item__store-availability{margin-top:4px;font-size:16px}.cart-table-item__store-availability a{cursor:pointer;text-decoration:underline}.cart-table-item__store-availability a:hover,.cart-table-item__store-availability a:focus{text-decoration:none}.cart-table-coupon{color:#a56830}.cart-table-coupon cmp-price .price__value,.cart-table-coupon cmp-price .price__vat{font-size:inherit;font-weight:inherit;line-height:inherit;color:inherit}@media screen and (min-width:1280px){.cart{margin:0 20px}}.cart__header{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px 16px;margin-bottom:32px}.cart__header .cart__title{margin-bottom:0}.cart__title,.cart .table{margin-bottom:32px}.cart__in{display:grid;grid-template-columns:1fr;grid-gap:32px;margin-bottom:32px}@media screen and (min-width:920px){.cart__in{grid-template-columns:1fr auto;align-items:start}}@media screen and (min-width:1280px){.cart__in{grid-template-columns:1fr 440px}}.cart__main--step3 .user-data__section{margin-bottom:0;padding-bottom:0;border:none}.cart__main--step3 .user-data__wrapper{padding-bottom:32px;margin-bottom:32px;border-bottom:1px solid #D0D6DE}@media screen and (min-width:920px){.cart__main--step3 .user-data__wrapper{max-width:580px}}@media screen and (min-width:600px){.cart__main--step3 .user-data__item{display:grid;align-items:center;grid-template-columns:120px 1fr;gap:40px}}@media screen and (min-width:920px){.cart__main--step3 .user-data__item .form-input{min-width:300px}}@media screen and (min-width:1280px){.cart__main--step3 .user-data__item .form-input{min-width:340px}}@media screen and (min-width:920px){.cart__side{position:sticky;top:80px}}@media screen and (min-width:1280px){.cart__side{top:24px}}.cart__side--thx{position:relative}.cart__actions{display:flex;flex-direction:column;align-items:center;row-gap:20px}@media screen and (min-width:768px){.cart__actions{flex-direction:row;justify-content:space-between;align-items:baseline;column-gap:20px}}
25.cart__actions-btns{display:flex;column-gap:80px}@media screen and (max-width:919.98px){.cart__actions-btns{column-gap:20px}}@media screen and (max-width:767.98px){.cart__actions-btns{flex-direction:column;align-items:center;row-gap:20px;width:100%}.cart__actions-btns .btn{width:100%}}.cart__actions-b2b{display:flex;column-gap:20px}@media screen and (max-width:767.98px){.cart__actions-b2b{flex-direction:column;align-items:center;row-gap:20px;width:100%}.cart__actions-b2b .btn{width:100%}}.cart__back{display:inline-flex;align-items:center;column-gap:4px;color:#cb2c30}.cart__back .icon{width:8px;transform:rotate(-180deg)}.cart__back:hover{text-decoration:none}.cart__next{margin-bottom:16px}@media screen and (max-width:767.98px){.cart__next{width:100%}}@media screen and (min-width:768px){.cart__next{margin-bottom:0}}.cart__next--finish{flex-direction:column}.cart__next--finish span{font-size:10px}.cart__alert{margin-bottom:20px}@media screen and (min-width:1280px){.cart__alert{margin-bottom:32px}}.cart__notice{display:flex;justify-content:flex-end}
26`,`.availability--red .availability__text{color:#dd202b}.availability--red .availability__text:before{background-color:#dd202b}.availability--green .availability__text{color:#018302}.availability--green .availability__text:before{background-color:#018302}.availability--orange .availability__text{color:#fa8e00}.availability--orange .availability__text:before{background-color:#fa8e00}.availability--simple{display:flex;flex-direction:column;align-items:flex-start}.availability--simple .availability__text{display:flex;align-items:center;gap:4px;font-size:13px;font-weight:700;line-height:18px}.availability--simple .availability__text:before{content:"";display:inline-block;flex-shrink:0;width:6px;height:6px;border-radius:50%}.availability--simple .availability__link{font-size:16px}.availability--extended{display:flex;align-items:center;column-gap:16px}.availability--extended.availability--green .availability__image{background-color:#4ba370}.availability--extended.availability--red .availability__image{background-color:#dd202b}.availability--extended.availability--orange .availability__image{background-color:#fa8e00}.availability--extended .availability__image{display:flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:50%;color:#fff}.availability--extended .availability__image .icon{width:20px}.availability--extended .availability__content{display:flex;flex-direction:column;align-items:flex-start;flex:1}.availability--extended .availability__text{font-size:18px;font-weight:600}
27`,`.demand__intro{font-size:16px;font-weight:400;line-height:28px;color:#2b3848;margin-bottom:32px}.demand-note{display:flex;flex-direction:column;background:#f5f7f9;border-radius:6px;margin-bottom:32px}@media screen and (min-width:1280px){.demand-note{flex-direction:row}}.demand-note__left{padding:24px}@media screen and (min-width:1280px){.demand-note__left{flex:0 0 480px;padding:30px}}.demand-note__title{font-size:18px;font-weight:600;line-height:26px;color:#2b3848;margin-bottom:10px}.demand-note__text{font-size:14px;font-weight:400;line-height:24px;color:#2b3848}.demand-note__right{padding:0 24px 24px}@media screen and (min-width:1280px){.demand-note__right{flex:1;padding:30px 30px 30px 0}}.demand-note__textarea{display:block;width:100%;height:150px;border:1px solid #D0D6DE;border-radius:6px;padding:14px 20px;background:#fff;font-size:14px;font-family:inherit;resize:none;outline:none}.demand-note__textarea:focus{border-color:#94a2b4}.demand-price{display:flex;justify-content:flex-end;margin-bottom:30px}.demand-price__in{display:flex;flex-direction:column;gap:4px;width:100%;padding:20px 24px;background-color:#f5f7f9;border-radius:6px}@media screen and (min-width:768px){.demand-price__in{max-width:460px}}.demand-price__item{display:flex;align-items:center;justify-content:space-between;column-gap:16px}.demand-price__item:first-child .demand-price__label{font-size:18px;font-weight:700;line-height:26px;color:#000}.demand-price__item:first-child cmp-price .price__value{font-size:18px;font-weight:700;line-height:26px;color:#000}.demand-price__item:last-child .demand-price__label{font-size:14px;font-weight:400;line-height:26px;color:#6b6f73}.demand-price__item:last-child cmp-price .price__value{font-size:14px;font-weight:400;line-height:26px;color:#6b6f73}
28`],encapsulation:2})}}return i})();var Wa=(()=>
28{class i extends E{constructor(t,e,a,r){super(t,e),this.rend=a,this.cartSvc=r,this.productList=[],this.coupons=[],this.chosenGiftList=[],this.demandModel=null}ngOnInit(){this.demandModel=this.cartSvc.submittedDemand,this.cartSvc.submittedDemand=null,this.rend.addClass(document.body,"page-type-thanks")}ngAfterViewInit(){this.cartThx.demandModel=this.demandModel,this.cartThx.thxMode="demand"}ngOnDestroy(){this.rend.removeClass(document.body,"page-type-thanks")}static{this.\u0275fac=function(e){return new(e||i)(m(P),m(I),m(Ft),m(T))}}static{this.\u0275cmp=C({type:i,selectors:[["ng-component"]],viewQuery:function(e,a){if(e&1&&nt(Ot,5),e&2){let r;Y(r=J())&&(a.cartThx=r.first)}},standalone:!1,features:[k],decls:2,vars:0,consts:[[1,"cart-done","js-anchor-cart"]],template:function(e,a){e&1&&(o(0,"div",0),_(1,"cmp-cart-thx"),c())},dependencies:[Ot],styles:[`.cart-coupon{position:relative}.cart-coupon__toggle{margin-bottom:12px}.cart-coupon__form{display:flex;column-gap:8px}.cart-coupon__input{flex:1}@media screen and (min-width:920px){.cart-coupon__input{width:300px}}.cart-gifts{display:flex;flex-direction:column;row-gap:32px;margin-bottom:32px}.cart-gifts__section{display:flex;flex-direction:column;row-gap:12px}.cart-gifts__title{display:flex;align-items:center;column-gap:8px;font-weight:600}.cart-gifts__title .icon{font-size:8px}.cart-gifts__list{display:grid}@media screen and (max-width:767.98px){.cart-gifts__list{grid-template-columns:repeat(2,1fr);grid-gap:12px}}@media screen and (min-width:768px){.cart-gifts__list{grid-template-columns:repeat(4,1fr);grid-gap:16px}}@media screen and (min-width:1280px){.cart-gifts__list{grid-template-columns:repeat(6,1fr)}}.cart-gifts-item{height:100%}.cart-gifts-item--disabled{opacity:.5}.cart-gifts-item--disabled .cart-gifts-item__label{cursor:auto}.cart-gifts-item:not(.cart-gifts-item--disabled) .cart-gifts-item__label:hover{box-shadow:0 3px 12px #00000040;border-color:transparent}.cart-gifts-item__input{display:none}.cart-gifts-item__input:checked+.cart-gifts-item__label{border-color:#4d9cde;box-shadow:0 3px 12px #00000040}.cart-gifts-item__label{display:flex;flex-direction:column;row-gap:12px;padding:16px;height:100%;background-color:#fff;transition:box-shadow .3s ease,border-color .3s ease;border-radius:8px;box-shadow:0 1px 4px #00000014;cursor:pointer}.cart-gifts-item__image{display:flex;align-items:center;justify-content:center}.cart-gifts-item__image picture{display:flex;align-items:center;justify-content:center;aspect-ratio:1/1}.cart-gifts-item__image picture img{width:100%;height:100%;object-fit:contain}.cart-gifts-item__content{display:flex;flex-direction:column;justify-content:space-between;row-gap:8px;flex:1}.cart-gifts-item__title{line-height:1.5;text-decoration:none;font-weight:500;color:#2b3848}.cart-gifts-item__prices{display:flex;flex-direction:column;gap:4px}.cart-gifts-item__price{margin-top:auto;color:#2b8800;font-weight:600}.cart-login{display:flex;flex-direction:row;align-items:center;column-gap:16px;margin-bottom:32px;padding:0 16px;min-height:60px;background-color:#fff;border:1px solid #D0D6DE;border-radius:6px;box-shadow:0 2px 6px #2b38481a}.cart-login__icon{flex-shrink:0}.cart-login__icon .icon{display:flex;width:24px;height:24px;color:#6e757c}.cart-login__icon .icon svg{width:100%;height:100%}.cart-login__text{font-weight:500}.cart-login__link{color:#cb2c30;text-decoration:underline}.cart-login__link:hover{text-decoration:none}.cart-price{display:flex;justify-content:flex-end;margin-bottom:30px}.cart-price__in{display:flex;flex-direction:column;gap:4px;width:100%;padding:20px 24px;background-color:#f5f7f9;border-radius:6px}@media screen and (min-width:768px){.cart-price__in{max-width:460px}}.cart-price__item{display:flex;align-items:center;justify-content:space-between;column-gap:16px}.cart-price__item:first-child .cart-price__label{font-size:18px;font-weight:700;line-height:26px;color:#000}.cart-price__item:first-child cmp-price .price__value{font-size:18px;font-weight:700;line-height:26px;color:#000}.cart-price__item:last-child .cart-price__label{font-size:14px;font-weight:400;line-height:26px;color:#6b6f73}.cart-price__item:last-child cmp-price .price__value{font-size:14px;font-weight:400;line-height:26px;color:#6b6f73}.cart-table{margin-bottom:32px}.cart-table__head{display:none}@media screen and (min-width:1280px){.cart-table__head{display:flex;align-items:center;column-gap:20px;padding:12px 20px;border-bottom:1px solid #D9E0EC;font-size:13px;font-weight:500;color:#6e757c}}@media screen and (min-width:1440px){.cart-table__head{column-gap:40px}}.cart-table__col--product{flex:1;min-width:1px}
28.cart-table__col--availability{width:200px;text-align:center}.cart-table__col--unit-price{width:110px;text-align:right}.cart-table__col--amount{width:120px;text-align:center}.cart-table__col--price{width:110px;text-align:right}.cart-table__col--remove{width:20px}.cart-table-item{display:flex;align-items:center;flex-wrap:wrap;position:relative;padding:16px 16px 16px 96px;border-bottom:1px solid #D9E0EC}@media screen and (max-width:767.98px){.cart-table-item{gap:8px 12px;padding:24px 16px 24px 64px}}@media screen and (min-width:768px){.cart-table-item{gap:12px;padding:20px}}@media screen and (min-width:1280px){.cart-table-item{column-gap:20px}}@media screen and (min-width:1440px){.cart-table-item{column-gap:40px}}@media screen and (max-width:767.98px){.cart-table-item--coupon{flex-direction:row;flex-wrap:nowrap}}.cart-table-item__main{display:flex}@media screen and (max-width:767.98px){.cart-table-item__main{align-items:flex-start;column-gap:8px;width:calc(100% + 48px);margin-left:-48px}}@media screen and (min-width:768px){.cart-table-item__main{align-items:center;column-gap:12px;flex:1;width:auto;min-width:1px;margin-left:0}}.cart-table-item__image{flex-shrink:0}@media screen and (max-width:767.98px){.cart-table-item__image{width:40px}}@media screen and (min-width:768px){.cart-table-item__image{width:80px}}.cart-table-item__image picture{display:block}.cart-table-item__image img{border-radius:6px}.cart-table-item__content{display:flex;flex-direction:column;flex:1;min-width:1px;row-gap:8px}.cart-table-item__title{font-size:16px;font-weight:500;line-height:28px;color:#2b3848}.cart-table-item__title:hover{text-decoration:none}.cart-table-item__code{font-size:13px;font-weight:500;line-height:18px;color:#6e757c}.cart-table-item__availability--desktop{width:200px}.cart-table-item__availability--desktop .availability--simple{align-items:center}@media screen and (max-width:1279.98px){.cart-table-item__availability--desktop{display:none}}@media screen and (max-width:1279.98px){.cart-table-item__availability--mobile{font-size:13px}}@media screen and (min-width:1280px){.cart-table-item__availability--mobile{display:none}}.cart-table-item__unit{font-size:12px;font-weight:600;line-height:1.4;color:#6e757c}.cart-table-item__store-availability{margin-top:4px;font-size:14px;font-weight:400;line-height:22px;color:#2b3848}@media screen and (min-width:1280px){.cart-table-item__store-availability{text-align:center}}.cart-table-item__store-availability span{text-decoration:underline}@media screen and (max-width:479.98px){.cart-table-item__unit-price{width:100%}}@media screen and (min-width:480px){.cart-table-item__unit-price{width:calc((100% - 24px)/2)}}@media screen and (max-width:767.98px){.cart-table-item__unit-price .price--stacked{flex-direction:row;align-items:baseline;gap:4px}.cart-table-item__unit-price .price--stacked .price__value,.cart-table-item__unit-price .price--stacked .price__vat{line-height:unset}}@media screen and (min-width:768px){.cart-table-item__unit-price{width:110px;text-align:right}}.cart-table-item__amount{display:flex;align-items:center;column-gap:4px}@media screen and (max-width:479.98px){.cart-table-item__amount{width:100%}}@media screen and (min-width:480px){.cart-table-item__amount{width:calc((100% - 24px)/2);justify-content:flex-end}}@media screen and (min-width:768px){.cart-table-item__amount{width:120px;justify-content:center}}@media screen and (max-width:479.98px){.cart-table-item__price{width:100%}}@media screen and (min-width:480px){.cart-table-item__price{text-align:right;width:100%}}@media screen and (max-width:767.98px){.cart-table-item__price{display:flex;justify-content:space-between;align-items:center}.cart-table-item__price .price--stacked{flex-direction:row;align-items:baseline;gap:4px}.cart-table-item__price .price--stacked .price__value,.cart-table-item__price .price--stacked .price__vat{line-height:unset}}@media screen and (min-width:768px){.cart-table-item__price{width:110px;text-align:right}}.cart-table-item__price strong{font-size:16px;font-weight:600;line-height:28px}.cart-table-item__price--coupon{width:fit-content}.cart-table-item__price--coupon strong{white-space:nowrap}.cart-table-item__vat-label{display:block;font-size:13px;font-weight:400;line-height:18px;color:#6e757c}.cart-table-item__remove{color:#6e757c;cursor:pointer}@media screen and (max-width:1279.98px){.cart-table-item__remove{position:absolute;right:0;top:0}.cart-table-item__remove a{display:flex;align-items:center;justify-content:center;width:32px;height:32px}}@media screen and (min-width:1280px){.cart-table-item__remove{width:20px;text-align:right}.cart-table-item__remove a{display:flex}}.cart-table-item__bottom{width:calc(100% + 80px);margin-left:-80px}@media screen and (min-width:480px){.cart-table-item__bottom{width:calc(100% + 100px);margin-left:-100px}}@media screen and (min-width:768px){.cart-table-item__bottom{width:100%;margin-left:0}}.cart-table-item__bottom .alert{margin:0}.cart-table-item__label{margin-bottom:4px;font-size:12px;font-weight:500;color:#6e757c}@media screen and (max-width:767.98px){.cart-table-item__label--total{font-size:14px}}@media screen and (min-width:1280px){.cart-table-item__label{display:none}}
28.cart-table-item__availability .availability .availability__text{font-size:16px}.cart-table-item__store-availability{margin-top:4px;font-size:16px}.cart-table-item__store-availability a{cursor:pointer;text-decoration:underline}.cart-table-item__store-availability a:hover,.cart-table-item__store-availability a:focus{text-decoration:none}.cart-table-coupon{color:#a56830}.cart-table-coupon cmp-price .price__value,.cart-table-coupon cmp-price .price__vat{font-size:inherit;font-weight:inherit;line-height:inherit;color:inherit}@media screen and (min-width:1280px){.cart{margin:0 20px}}.cart__header{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px 16px;margin-bottom:32px}.cart__header .cart__title{margin-bottom:0}.cart__title,.cart .table{margin-bottom:32px}.cart__in{display:grid;grid-template-columns:1fr;grid-gap:32px;margin-bottom:32px}@media screen and (min-width:920px){.cart__in{grid-template-columns:1fr auto;align-items:start}}@media screen and (min-width:1280px){.cart__in{grid-template-columns:1fr 440px}}.cart__main--step3 .user-data__section{margin-bottom:0;padding-bottom:0;border:none}.cart__main--step3 .user-data__wrapper{padding-bottom:32px;margin-bottom:32px;border-bottom:1px solid #D0D6DE}@media screen and (min-width:920px){.cart__main--step3 .user-data__wrapper{max-width:580px}}@media screen and (min-width:600px){.cart__main--step3 .user-data__item{display:grid;align-items:center;grid-template-columns:120px 1fr;gap:40px}}@media screen and (min-width:920px){.cart__main--step3 .user-data__item .form-input{min-width:300px}}@media screen and (min-width:1280px){.cart__main--step3 .user-data__item .form-input{min-width:340px}}@media screen and (min-width:920px){.cart__side{position:sticky;top:80px}}@media screen and (min-width:1280px){.cart__side{top:24px}}.cart__side--thx{position:relative}.cart__actions{display:flex;flex-direction:column;align-items:center;row-gap:20px}@media screen and (min-width:768px){.cart__actions{flex-direction:row;justify-content:space-between;align-items:baseline;column-gap:20px}}.cart__actions-btns{display:flex;column-gap:80px}@media screen and (max-width:919.98px){.cart__actions-btns{column-gap:20px}}@media screen and (max-width:767.98px){.cart__actions-btns{flex-direction:column;align-items:center;row-gap:20px;width:100%}.cart__actions-btns .btn{width:100%}}.cart__actions-b2b{display:flex;column-gap:20px}@media screen and (max-width:767.98px){.cart__actions-b2b{flex-direction:column;align-items:center;row-gap:20px;width:100%}.cart__actions-b2b .btn{width:100%}}.cart__back{display:inline-flex;align-items:center;column-gap:4px;color:#cb2c30}.cart__back .icon{width:8px;transform:rotate(-180deg)}.cart__back:hover{text-decoration:none}.cart__next{margin-bottom:16px}@media screen and (max-width:767.98px){.cart__next{width:100%}}@media screen and (min-width:768px){.cart__next{margin-bottom:0}}.cart__next--finish{flex-direction:column}.cart__next--finish span{font-size:10px}.cart__alert{margin-bottom:20px}@media screen and (min-width:1280px){.cart__alert{margin-bottom:32px}}.cart__notice{display:flex;justify-content:flex-end}
29`],encapsulation:2})}}return i})();var $p=(()=>{class i{static{this.\u0275fac=function(e){return new(e||i)}}static{this.\u0275mod=ut({type:i})}static{this.\u0275inj=ht({providers:[ye,li,Oi,Wi,Ee,Ba],imports:[kt,Vt,jt,Yi,ca,ja.forRoot(),Ue,Le,qt.forChild([{path:"obsah",data:{gtmPageType:zt.cart},component:ka},{path:"doprava-a-platba",data:{gtmPageType:zt.cart},component:ga,canActivate:[ye],runGuardsAndResolvers:"always"},{path:"dodaci-udaje",data:{gtmPageType:zt.cart},component:oi,canActivate:[ye],runGuardsAndResolvers:"always"},{path:"podekovani",data:{gtmPageType:zt.purchase},component:wa,canActivate:[ye],runGuardsAndResolvers:"always"},{path:"poptavka",component:Oa},{path:"poptavka-odeslana/:id",component:Wa,canActivate:[li]},{path:"po-platbe",data:{gtmPageType:zt.cart},component:oi},{path:"finish/not-paid/:orderGuid",component:Na},{path:":web-pay/:state/finish/:orderhash",data:{gtmPageType:zt.cart},component:si},{path:":web-pay/:state/finish",data:{gtmPageType:zt.cart},component:si},{path:"",redirectTo:"obsah"}]),te,Zi,za,Oe,ie,Be,Ji,ta,ea,ee,At,Xt,ti,ce,Xi,se,le,ti]})}}return i})();export{$p as CartModule};
30/*! Bundled license information:
31
32ngx-bootstrap/focus-trap/fesm2022/ngx-bootstrap-focus-trap.mjs:
33ngx-bootstrap/focus-trap/fesm2022/ngx-bootstrap-focus-trap.mjs:
34  (**
35   * @license
36   * Copyright Google LLC All Rights Reserved.
37   *
38   * Use of this source code is governed by an MIT-style license that can be
39   * found in the LICENSE file at https://angular.io/license
40   *)
41*/
42
43//# debugId=52148216-16ba-5cc5-b41e-d90ccdcb03be

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.