PageSourceSearch

https://www.top-obaly.cz/_next/static/chunks/5021-6fa53f6bcb302e13.js

js top-obaly.cz collected 2026-10-03 21:22:34 UTC 8,024 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5021],{25021:function(e,r,a){a.d(r,{Z:function(){return D}});var i,s=a(27573),t=a(94715),d=a(28289),n=a(27264),l=a(71059),o=a(19742),c=a(57698),h=a(30116),m=a(4325);function _(){return(_=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var a=arguments[r];for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(e[i]=a[i])}return e}).apply(this,arguments)}var p=function(e){return m.createElement("svg",_({width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),i||(i=m.createElement("g",{id:"ic-car-32px"},m.createElement("path",{id:"van",fillRule:"evenodd",clipRule:"evenodd",d:"M21 12V8H7C5.9 8 5 8.9 5 10V21H7C7 22.66 8.34 24 10 24C11.66 24 13 22.66 13 21H19C19 22.66 20.34 24 22 24C23.66 24 25 22.66 25 21H27V16L24 12H21ZM8.5 21C8.5 20.17 9.17 19.5 10 19.5C10.83 19.5 11.5 20.17 11.5 21C11.5 21.83 10.83 22.5 10 22.5C9.17 22.5 8.5 21.83 8.5 21ZM25.46 16H21V13.5H23.5L25.46 16ZM20.5 21C20.5 20.17 21.17 19.5 22 19.5C22.83 19.5 23.5 20.17 23.5 21C23.5 21.83 22.83 22.5 22 22.5C21.17 22.5 20.5 21.83 20.5 21Z",fill:"currentColor"}))))},u=a(68071),x=a(62687),j=a(10054),v=a(85394),g=a(7653),f=a(86075),N=a(47138),y=a.n(N),V=a(38521),w=a(596),C=e=>{var r,a,i;let{orderDetailPath:m,orderId:_,createDate:N,expeditionDate:C,isOrderPaidWithVat:P,orderSummary:b,invoices:Z,orderProducts:W,status:k,changePaymentServicePath:S,orderToken:D,withVatOnly:H}=e,I=(0,n.useTranslations)(),{route:O}=(0,w.Z)(),{isPriceWithVatApplied:T}=(0,V.Z)(),[E,A]=(0,g.useState)(!1),[M,z]=(0,g.useState)(!1),L=()=>{z(!1)};return(0,s.jsxs)("div",{className:y()("order__header"),children:[(0,s.jsxs)("div",{className:y()("order__header-inner"),children:[(0,s.jsxs)("div",{className:y()("order__header-info"),children:[(0,s.jsx)("a",{href:m,className:y()("order__header-info-order-number"),children:_}),(0,s.jsx)("span",{className:y()("order__header-info-order-number"),children:", "}),(0,s.jsxs)("span",{className:y()("order__header-info-order-date"),children:[I.raw("orders.ordered")," ",N]}),!!Z.length&&(0,s.jsxs)("div",{className:y()("order__header-info-invoices"),children:[(0,s.jsx)("span",{children:I("orders.invoice",{count:Z.length})}),(0,s.jsx)("div",{className:y()("order__header-info-invoices-wrapper"),children:Z.map(e=>(0,s.jsxs)(u.Z,{id:e.id,fileName:e.fileName,className:y()("order__header-info-invoice"),children:[(0,s.jsx)(c.Z,{className:y()("order__header-info-invoice-icon")}),(0,s.jsx)("span",{children:e.id})]},e.id))})]}),k.estimateDelivery&&(0,s.jsxs)("div",{className:y()("order__estimate-delivery"),children:[(0,s.jsx)(p,{className:y()("order__estimate-delivery-icon")}),(0,s.jsx)("div",{className:y()("order-detail__progress-section-estimate"),dangerouslySetInnerHTML:{__html:k.estimateDelivery}})]})]}),(0,s.jsxs)("div",{className:y()("order__header-delivery-payment"),children:[k.status&&(0,s.jsx)(j.Z,{className:y()("order__header-delivery-status"),label:k.status,expeditionDate:C}),(null===(r=k.paymentStatus)||void 0===r?void 0:r.status)&&(null===(a=k.paymentStatus)||void 0===a?void 0:a.status)!==k.status&&(0,s.jsx)(v.Z,{label:null===(i=k.paymentStatus)||void 0===i?void 0:i.status,changePaymentServicePath:S,orderToken:D,labelOnly:!0})]}),(0,s.jsx)("div",{className:y()("order__header-prices"),children:P?(0,s.jsx)(s.Fragment,{children:H?(0,s.jsx)(s.Fragment,{children:(0,s.jsx)("p",{className:y()("order__header-price","order__header-price--main"),children:(0,s.jsx)(t.t,{priceWithVat:(0,d.V_)(b.finalPriceWithVat,!0),priceWithoutVat:(0,d.V_)(b.finalPriceWithoutVat,!0),withVatInfo:!0,isPriceWithVatApplied:!0})})}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("p",{className:y()("order__header-price","order__header-price--main"),children:(0,s.jsx)(t.t,{priceWithVat:(0,d.V_)(b.finalPriceWithVat,!0),priceWithoutVat:(0,d.V_)(b.finalPriceWithoutVat,!0),withVatInfo:!1,isPriceWithVatApplied:T})}),(0,s.jsx)("p",{className:y()("order__header-price"),children:(0,s.jsx)(t.t,{priceWithVat:(0,d.V_)(b.finalPriceWithVat,!0),priceWithoutVat:(0,d.V_)(b.finalPriceWithoutVat,!0),strong:!1,isPriceWithVatApplied:!T})})]})}):(0,s.jsx)("p",{className:y()("order__header-price","order__header-price--main"),children:(0,s.jsx)(t.t,{priceWithVat:(0,d.V_)(b.finalPriceWithVat,!0),priceWithoutVat:(0,d.V_)(b.finalPriceWithoutVat,!0),withVatInfo:!1,isPriceWithVatApplied:!1})})}),(0,s.jsxs)("div",{className:y()("order__header-buttons-wrapper"),children:[(0,s.jsx)(l.Z,{variant:"tertiary",size:"small",startIcon:(0,s.jsx)(h.Z,{}),onClick:e=>{e.preventDefault(),o.Z.pushRepeatOrder(),A(!0)},children:(0,s.jsx)("span",{children:I.raw("orders.repeat")})}),(0,s.jsx)(l.Z,{size:"small",href:m,children:I.raw("orders.detail_button")})]})]}),E&&(0,s.jsx)(f.Z,{orderProducts:W,onClose:()=>A(!1),onSuccess:()=>{z(!0),A(!1)}}),M&&(0,s.jsx)(x.Z,{id:"reorder-modal-confirmation",type:"success",size:1200,title:I.raw("orders.reorder.added_to_basket"),buttons:[{children:I.raw("orders.reorder.go_to_basket"),onClick:L,href:O("/basket",{}),variant:"primary",size:"small"},{children:I.raw("orders.reorder.continue_shopping"),onClick:L,variant:"secondary",size:"small"}],onClose:L})]})},P=a(20644),b=a(77716),Z=a(90618),W=a(54320),k=e=>{let{image:r,amount:a,primaryUnit:i,name:t,path:d,description:n,descriptionAddition:l}=e;return(0,s.jsx)(W.Z,{placement:"bottom-start",content:(0,s.jsxs)("div",{className:y()("order__item-tooltip-content"),children:[t&&(0,s.jsx)("p",{children:t}),n&&(0,s.jsx)("p",{children:(0,s.jsx)("strong",{children:n})}),l&&(0,s.jsx)("p",{children:l})]}),component:(0,s.jsx)("div",{className:y()("order__item"),children:d?(0,s.jsxs)(Z.Z,{href:d,className:y()("order__item-link"),children:[(0,s.jsx)(b.Z,{strategy:P.J.EXACT,imagePath:r,imageClassName:y()("order__item-image"),width:40,height:40}),(0,s.jsxs)("span",{className:y()("order__item-amount"),children:[a," ",i||""]}
1)]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(b.Z,{strategy:P.J.EXACT,imagePath:r,imageClassName:y()("order__item-image"),width:40,height:40}),(0,s.jsxs)("p",{className:y()("order__item-amount"),children:[a," ",i||""]})]})}),offset:[0,8]})},S=e=>{let{shipment:{id:r,status:a,expeditionDate:i},orderProducts:t}=e,d=(0,n.useTranslations)();return(0,s.jsxs)("div",{className:y()("order__separate"),children:[(0,s.jsxs)("div",{className:y()("order__separate-info"),children:[(0,s.jsxs)("div",{className:y()("order__separate-info-package"),children:[(0,s.jsx)("strong",{className:y()("order__separate-info-package-label"),children:d("orders.package_number",{count:r})}),(0,s.jsx)(j.Z,{label:a.statusLabel,expeditionDate:i})]}),a.estimateDelivery&&(0,s.jsxs)("div",{className:y()("order__estimate-delivery"),children:[(0,s.jsx)("img",{src:"/img/ico-svg/lorry.svg",className:y()("order__estimate-delivery-icon")}),(0,s.jsx)("div",{className:y()("order__estimate-delivery-date"),dangerouslySetInnerHTML:{__html:a.estimateDelivery}})]})]}),(0,s.jsx)("div",{className:y()("order__items-wrapper"),children:t.map(e=>(0,s.jsx)(k,{primaryUnit:e.primaryUnit,amount:e.amount,name:e.title,image:e.image,description:e.dimensions,path:e.path},e.id))})]})},D=e=>{let{order:{orderDetailPath:r,orderId:a,createDate:i,isOrderPaidWithVat:t,summary:d,invoices:n,products:l,status:o,changePaymentServicePath:c,orderToken:h,shipments:m,expeditionDate:_},withVatOnly:p=!1}=e;return(0,s.jsxs)("div",{className:y()("order"),"data-cy":"order",children:[(0,s.jsx)(C,{orderDetailPath:r,orderId:a,createDate:i,isOrderPaidWithVat:t,orderSummary:d,invoices:n,orderProducts:l,status:o,changePaymentServicePath:c,orderToken:h,withVatOnly:p,expeditionDate:_}),(0,s.jsx)("div",{className:y()("order__inner"),children:1===m.length?(0,s.jsx)("div",{className:y()("order__items-wrapper"),children:l.map(e=>(0,s.jsx)(k,{primaryUnit:e.primaryUnit,amount:e.amount,name:e.title,image:e.image,description:e.subtitle,path:e.path},e.id))}):m.map(e=>(0,s.jsx)(S,{orderProducts:l.filter(r=>r.shipmentId===e.id),shipment:e},"".concat(a,"-").concat(e.id)))})]})}}}]);

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.