1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[339],{28634:function(e,t,n){var i,a,o,l;n.d(t,{I:function(){return i},j:function(){return a}}),(o=i||(i={})).mainContent="mainContent",o.sidebar="sidebar",o.both="both",(l=a||(a={})).forceWithVat="forceWithVat",l.forceWithoutVat="forceWithoutVat",l.default="default"},62134:function(e,t,n){var i,a,o,l;n.d(t,{RC:function(){return i},ZI:function(){return d},xO:function(){return s},xn:function(){return a}}),(o=i||(i={}))[o.DPDPrivate=1]="DPDPrivate",o[o.takeAway=2]="takeAway",o[o.DPDPickup=3]="DPDPickup",o[o.DPDClassic=4]="DPDClassic",o[o.bestDelivery=7]="bestDelivery",o[o.takeAwaySpitalka=9]="takeAwaySpitalka",o[o.pplBusiness=11]="pplBusiness",o[o.expressOne=13]="expressOne",o[o.balikovna=15]="balikovna",o[o.SlovakPostToHand=16]="SlovakPostToHand",o[o.HUPostToHand=10]="HUPostToHand",o[o.HUDPDClassic=17]="HUDPDClassic",o[o.balikovnaPickup=18]="balikovnaPickup",o[o.HUPPLConnect=19]="HUPPLConnect",o[o.SKGls=20]="SKGls",o[o.GlsPickup=21]="GlsPickup";let d=[2,9],s=[3,18,21];(l=a||(a={}))[l.sm=31]="sm",l[l.base=50]="base",l[l.lg=60]="lg"},17058:function(e,t,n){n.d(t,{Qk:function(){return d},VA:function(){return l},dt:function(){return o},r1:function(){return s}});var i=n(16275);let a=(0,n(34293).oM)({name:"BasketDraft",initialState:i.$4,reducers:{basketDraftRecieved:(e,t)=>{let{data:n,shouldResetProducts:a,lastUpdatedProductId:o,preventUpdateLastAddedProductId:l}=t.payload;return{...e,...(0,i.J9)(e,n,a,o,l)}},basketDraftFetchingStatusChanged:(e,t)=>{e.basketFetchingStatus=t.payload},basketDraftReset:()=>i.$4}}),{basketDraftReset:o,basketDraftRecieved:l,basketDraftFetchingStatusChanged:d}=a.actions,s=a.reducer},25902:function(e,t,n){n.d(t,{AT:function(){return M},G2:function(){return A},GL:function(){return c},HU:function(){return w},I6:function(){return y},K4:function(){return u},LL:function(){return m},Lc:function(){return b},PV:function(){return D},TO:function(){return f},XK:function(){return v},cg:function(){return T},gj:function(){return O},jH:function(){return h},jP:function(){return C},jQ:function(){return k},mN:function(){return S},qm:function(){return p},rK:function(){return P},uN:function(){return U},vl:function(){return r},yM:function(){return L},zB:function(){return d}});var i=n(73027),a=n(28634),o=n(62134),l=n(34293);let d={initUserLoadingStatus:i.h.loading,initShippingLoadingStatus:i.h.loading,initInvoicingLoadingStatus:i.h.loading,debouncedLoadingStatus:i.h.unset,loadingStatus:i.h.loading,invoicingFormSubmitCount:0,isShippingMethodsModalOpen:!1,isPaymentMethodsModalOpen:!1,isProductsOverviewModalOpen:!1,isInfoModalOpened:!1,infoModalType:null,isDPDPickupModalOpened:!1,isBalikovnaPickupModalOpened:!1,isGlsPickupModalOpened:!1,isDatePickerModalOpened:!1,isProgressbarRunning:!0,loadingSpinnerScope:a.I.both,isSeparatedModalOpened:!1,closingModalType:null,isOrderCreating:!1,redirectURL:null},s=(0,l.oM)({name:"CheckoutConfiguration",initialState:d,reducers:{initUserLoadingStatusChanged:(e,t)=>{e.initUserLoadingStatus=t.payload},shippingLoadingStatusChanged:(e,t)=>{let{initShippingLoadingStatus:n}=e;if(n===i.h.successed){e.loadingStatus=t.payload,t.payload===i.h.loading&&(e.loadingSpinnerScope=a.I.mainContent,e.isProgressbarRunning=!0);return}e.initShippingLoadingStatus=t.payload},invoicingLoadingStatusChanged:(e,t)=>{let{initInvoicingLoadingStatus:n}=e;if(n===i.h.successed){e.loadingStatus=t.payload;return}e.initInvoicingLoadingStatus=t.payload},loadingStatusChanged:(e,t)=>{let{isProgressbarRunning:n}=e;if(t.payload.status===i.h.loading){n&&t.payload.scope?e.loadingSpinnerScope=a.I.both:e.loadingSpinnerScope=t.payload.scope||a.I.mainContent,e.isProgressbarRunning=!0,e.loadingStatus=t.payload.status;return}e.loadingStatus=t.payload.status},initLoadingStatusChanged:(e,t)=>{e.loadingStatus=t.payload},debouncedLoadingStatusChanged:(e,t)=>{let{isProgressbarRunning:n}=e;t.payload.status===i.h.loading&&(n&&t.payload.scope?e.loadingSpinnerScope=a.I.both:e.loadingSpinnerScope=t.payload.scope||a.I.mainContent),e.debouncedLoadingStatus=t.payload.status},invoicingFormSubmitted:e=>{e.invoicingFormSubmitCount+=1},pickupModalOpened:(e,t)=>{if(t.payload===o.RC.balikovnaPickup){e.isDPDPickupModalOpened=!1,e.isGlsPickupModalOpened=!1,e.isBalikovnaPickupModalOpened=!0;return}t.payload===o.RC.DPDPickup&&(e.isDPDPickupModalOpened=!0,e.isBalikovnaPickupModalOpened=!1,e.isGlsPickupModalOpened=!1),t.payload===o.RC.GlsPickup&&(e.isGlsPickupModalOpened=!0,e.isBalikovnaPickupModalOpened=!1,e.isDPDPickupModalOpened=!1),e.closingModalType=null},pickupModalClosed:e=>{e.isDPDPickupModalOpened=!1,e.isBalikovnaPickupModalOpened=!1,e.isGlsPickupModalOpened=!1,e.closingModalType=null},datePickerModalOpened:e=>{e.isDatePickerModalOpened=!0,e.closingModalType=null},datePickerModalClosed:e=>{e.isDatePickerModalOpened=!1,e.closingModalType=null},shippingMethodsModalToggled:(e,t)=>{e.isShippingMethodsModalOpen=t.payload,e.closingModalType=null},paymentMethodsModalToggled:(e,t)=>{e.isPaymentMethodsModalOpen=t.payload,e.closingModalType=null},productsOverviewModalToggled:(e,t)=>{e.isProductsOverviewModalOpen=t.payload,e.closingModalType=null},infoModalOpened:(e,t)=>{e.isInfoModalOpened=!0,e.infoModalType=t.payload,e.closingModalType=null},infoModalClosed:e=>{e.isInfoModalOpened=!1,e.infoModalType=null,e.closingModalType=null},progressbarFinished:e=>{e.isProgressbarRunning=!1,e.loadingSpinnerScope=a.I.mainContent},progressbarStarted:e=>{e.isProgressbarRunning=!0},separatedModalToggled:(e,t)=>{e.isSeparatedModalOpened=t.payload,e.closingModalType=null},childModalClosing:(e,t)=>
1{e.closingModalType=t.payload},orderCreating:(e,t)=>{e.isOrderCreating=t.payload},redirectRequired:(e,t)=>{e.redirectURL=t.payload},resetCheckoutConfiguration:()=>d}}),{initUserLoadingStatusChanged:r,shippingLoadingStatusChanged:u,invoicingLoadingStatusChanged:p,debouncedLoadingStatusChanged:c,initLoadingStatusChanged:g,loadingStatusChanged:h,invoicingFormSubmitted:P,pickupModalOpened:k,pickupModalClosed:f,datePickerModalOpened:M,datePickerModalClosed:y,shippingMethodsModalToggled:m,paymentMethodsModalToggled:D,productsOverviewModalToggled:S,infoModalOpened:b,infoModalClosed:v,progressbarFinished:C,progressbarStarted:R,separatedModalToggled:O,childModalClosing:w,orderCreating:T,redirectRequired:A,resetCheckoutConfiguration:U}=s.actions,L=s.reducer},17567:function(e,t,n){n.d(t,{DX:function(){return d},O$:function(){return s},c_:function(){return a},e1:function(){return r},xB:function(){return o}});var i=n(34293);let a={messages:[]},o=(e,t)=>{let n={...e};return n.messages=(null==t?void 0:t.messages)||[],n},l=(0,i.oM)({name:"ProductMessages",initialState:a,reducers:{productMessageUpdated:(e,t)=>{let{messages:n}=t.payload;e.messages=n||null},productMessageReset:e=>{e.messages=null}}}),{productMessageUpdated:d,productMessageReset:s}=l.actions,r=l.reducer},3838:function(e,t,n){n.d(t,{VL:function(){return l},jO:function(){return a},yR:function(){return d}});var i=n(34293);let a={error:null,isPromoProductModalOpened:!1},o=(0,i.oM)({name:"PromoProducts",initialState:a,reducers:{lowPriceRemoved:(e,t)=>{e.isPromoProductModalOpened=t.payload.isPromoProductModalOpened;let{error:n}=t.payload;e.error=n||null,t.payload||(e.error=null)}}}),{lowPriceRemoved:l}=o.actions,d=o.reducer},78946:function(e,t,n){n.d(t,{HO:function(){return u},de:function(){return M},ds:function(){return D},fO:function(){return h},hZ:function(){return m},io:function(){return g},sd:function(){return k},uV:function(){return P},y5:function(){return f},z0:function(){return y},zs:function(){return S}});var i=n(5028),a=n(69454),o=n(62134),l=n(34293),d=n(10075),s=n(92443),r=n(28289);let u={shippingMethods:[],otherShippingMethods:[],paymentMethods:[],selectedShippingMethod:null,selectedPaymentMethod:null,balikovnaPickupPoint:null,glsPickupPoint:null,DPDPickupPoint:null,balikovnaPickupPointDraft:null,glsPickupPointDraft:null,DPDPickupPointDraft:null,pickupPointSelectionMode:a.A.updateShippingMethod,smallestPriceWithVat:null,smallestPriceWithoutVat:null,isUpdateShippingMethodAllowed:!1,isUpdatePaymentMethodAllowed:!1},p=(e,t)=>e&&e.length&&t&&t.length?e.map(e=>{let n=t.find(t=>t.id===e.id);return n?{...e,deliveryDate:n.deliveryDate}:e}):e,c=(0,l.oM)({initialState:u,name:"ShippingAndPayment",reducers:{shippingMethodsReceived:(e,t)=>{let n=(0,d.VM)(t.payload),a=n.filter(e=>e.inMainSection),o=n.filter(e=>!e.inMainSection);a.length||(a=o,o=[]);let{smallestPriceWithoutVat:l,smallestPriceWithVat:s}=(0,d.a_)(o),u=i.g.helpers.convertShippingMethodsResponse(a),p=i.g.helpers.convertShippingMethodsResponse(o);e.shippingMethods=u,e.otherShippingMethods=p,e.smallestPriceWithVat=(0,r.V_)(s,!1,2),e.smallestPriceWithoutVat=(0,r.V_)(l,!1,2)},shippingAndPaymentMethodsReceived:(e,t)=>{let{shippingMethods:n,otherShippingMethods:a,isUpdateShippingMethodAllowed:l,isUpdatePaymentMethodAllowed:r}=e,u=t.payload.shipping?i.g.helpers.convertShippingMethodResponse(t.payload.shipping):null,p=(0,d.G3)([...n,...a],u),c=t.payload.payment?i.g.helpers.convertPaymentMethodResponse(t.payload.payment):null,g=(0,s.aQ)(p,c);e.selectedShippingMethod=p,e.selectedPaymentMethod=g,p.id===o.RC.balikovnaPickup&&p.pickupPoint&&(e.balikovnaPickupPoint=p.pickupPoint,e.balikovnaPickupPointDraft=p.pickupPoint),p.id===o.RC.GlsPickup&&p.pickupPoint&&(e.glsPickupPoint=p.pickupPoint,e.glsPickupPointDraft=p.pickupPoint),p.id===o.RC.DPDPickup&&p.pickupPoint&&(e.DPDPickupPoint=p.pickupPoint,e.DPDPickupPointDraft=p.pickupPoint),e.paymentMethods=(0,s.Wu)(p.payments),l||(e.isUpdateShippingMethodAllowed=!t.payload.shipping||p.id!==t.payload.shipping.id),r||(e.isUpdatePaymentMethodAllowed=!t.payload.payment||g.id!==t.payload.payment.id)},pickupPointDraftUpdated:(e,t)=>{let{type:n,pickupPoint:i}=t.payload;null!==i&&(n===o.RC.balikovnaPickup&&(e.balikovnaPickupPointDraft=i),n===o.RC.GlsPickup&&(e.glsPickupPointDraft=i),n===o.RC.DPDPickup&&(e.DPDPickupPointDraft=i))},pickupPointsCopiedFromDraft:e=>{let{balikovnaPickupPointDraft:t,DPDPickupPointDraft:n,glsPickupPointDraft:i}=e;t&&(e.balikovnaPickupPoint=t),n&&(e.DPDPickupPoint=n),i&&(e.glsPickupPoint=i)},pickupPointSelectionModeChanged:(e,t)=>{let{balikovnaPickupPoint:n,DPDPickupPoint:i,glsPickupPoint:a}=e;e.balikovnaPickupPointDraft=n,e.DPDPickupPointDraft=i,e.glsPickupPointDraft=a,e.pickupPointSelectionMode=t.payload},shippingMethodChanged:(e,t)=>{let{selectedPaymentMethod:n,shippingMethods:i,otherShippingMethods:a,isUpdatePaymentMethodAllowed:o}=e,l=(0,d.G3)([...i,...a],t.payload),{payments:r}=l,u=(0,s.aQ)(l,n);e.selectedShippingMethod=t.payload,e.paymentMethods=(0,s.Wu)(r),e.selectedPaymentMethod=u,e.isUpdateShippingMethodAllowed=!0,o||(e.isUpdatePaymentMethodAllowed=!n||u.id!==n.id
1)},paymentMethodChanged:(e,t)=>{let{selectedShippingMethod:n}=e;if(!n)return;let i=(0,s.aQ)(n,t.payload);e.selectedPaymentMethod=i,e.isUpdatePaymentMethodAllowed=!0},pickupPointUpdated:(e,t)=>{let{type:n,pickupPoint:i}=t.payload;null!==i&&(n===o.RC.balikovnaPickup&&(e.balikovnaPickupPoint=i),n===o.RC.DPDPickup&&(e.DPDPickupPoint=i),n===o.RC.GlsPickup&&(e.glsPickupPoint=i))},shippingsDeliveryDateReceived:(e,t)=>{let{hasSeparatedShipping:n,dates:i}=t.payload.separatedShipping,{shippingMethods:a,otherShippingMethods:o}=e,l=[...a,...o];if(!l||!l.length||!i.immediate&&!i.latest)return;let d=[];!i.immediate&&i.latest&&(d=i.latest.methods),i.immediate&&!i.latest&&(d=i.immediate.methods),i.immediate&&i.latest&&(d=!0===n?i.immediate.methods:i.latest.methods);let s=p(a,d),r=p(o,d);e.shippingMethods=s,e.otherShippingMethods=r}}}),{shippingMethodsReceived:g,shippingAndPaymentMethodsReceived:h,pickupPointDraftUpdated:P,pickupPointsCopiedFromDraft:k,pickupPointSelectionModeChanged:f,shippingMethodChanged:M,paymentMethodChanged:y,pickupPointUpdated:m,shippingsDeliveryDateReceived:D}=c.actions,S=c.reducer},69454:function(e,t,n){var i,a;n.d(t,{A:function(){return i}}),(a=i||(i={}))[a.updateShippingMethod=0]="updateShippingMethod",a[a.saveAsDraft=1]="saveAsDraft"},10075:function(e,t,n){n.d(t,{G3:function(){return p},JA:function(){return s},V7:function(){return d},VM:function(){return c},a_:function(){return r},cE:function(){return g},vg:function(){return o}});var i=n(82059),a=n(62134);let o=e=>!!e&&(e.id===a.RC.balikovnaPickup||e.id===a.RC.DPDPickup||e.id===a.RC.GlsPickup),l=e=>!o(e),d=(e,t,n)=>!!e||n===i.hr||n===i.A$||!t||t.id!==a.RC.takeAway&&t.id!==a.RC.takeAwaySpitalka&&l(t),s=(e,t)=>e.find(e=>e.id===t)||null,r=e=>{let t=[],n=[];return e&&e.length?(e.forEach(e=>{!e.disabled&&e.enabled&&(t.push(e.priceWithoutVat||0),n.push(e.priceWithVat||0))}),{smallestPriceWithoutVat:Math.min.apply(0,t),smallestPriceWithVat:Math.min.apply(0,n)}):{smallestPriceWithoutVat:0,smallestPriceWithVat:0}},u=e=>{let t=e.find(e=>e.id===a.RC.bestDelivery);if(t&&t.enabled&&!t.disabled)return t;let n=e.find(e=>e.enabled&&!e.disabled&&!e.withPickupPoint);if(!n)throw Error("no available methods found");return n},p=(e,t)=>{if(!t)return u(e);let n=s(e,t.id);return n&&!n.disabled&&n.enabled?t:u(e)},c=e=>!e||e.length<=1?e:e.slice().sort((e,t)=>e.sequence&&t.sequence?e.sequence-t.sequence:0),g=(e,t)=>{switch(e){case a.RC.DPDPrivate:return{src:"/img/basket/logo-dpd.png",width:50,height:21};
1case a.RC.takeAway:return{src:"/img/basket/logo-topobaly.png",width:60,height:11};case a.RC.DPDPickup:return{src:"/img/basket/logo-dpdpickup.png",width:50,height:44};case a.RC.DPDClassic:return{src:"/img/basket/logo-dpd.png",width:50,height:21};case a.RC.bestDelivery:return{src:"/img/basket/logo-best.svg",width:31,height:16};case a.RC.takeAwaySpitalka:return{src:"/img/basket/logo-topobaly.png",width:60,height:11};case a.RC.pplBusiness:return{src:"/img/basket/logo-ppl.png",width:50,height:18};case a.RC.expressOne:return{src:"/img/basket/logo-express-one.png",width:50,height:18};case a.RC.balikovna:return{src:"/img/basket/logo-balikovna.svg",width:50,height:18};case a.RC.balikovnaPickup:return{src:"/img/basket/logo-bal-pickup.png",width:50,height:44};case a.RC.SKGls:return{src:"/img/basket/logo-gls.png",width:50,height:18};case a.RC.GlsPickup:return{src:"/img/basket/logo-gls-pickup.png",width:50,height:44};case a.RC.SlovakPostToHand:return{src:"/img/basket/logo-sp-do-ruky.svg",width:40,height:35};case a.RC.HUPostToHand:return{src:"/img/basket/logo-hu-post.png",width:50,height:18};case a.RC.HUDPDClassic:return{src:"/img/basket/logo-dpd.png",width:50,height:21};case a.RC.HUPPLConnect:return{src:"/img/basket/logo-hu-post.png",width:50,height:21};default:return}}}}]);
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.