1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4017],{84017:function(e,t,s){s.r(t),s.d(t,{default:function(){return g}});var r=s(85893),a=s(92987),n=s(83969),i=s(41609),l=s.n(i),d=s(75472),c=s.n(d);let m=e=>{var t;let{item:s}=e,{price:n}=(0,a.ZP)({amount:s.itemTotal,currencyCode:"USD"});return(0,r.jsxs)("div",{className:"flex py-4 items-center lg:px-3 border-b border-gray-300",children:[(0,r.jsx)("div",{className:"flex border rounded-md border-gray-300 w-16 h-16 flex-shrink-0",children:(0,r.jsx)("img",{src:null!==(t=s.image)&&void 0!==t?t:"/assets/placeholder/order-product.svg",width:"64",height:"64",className:"object-cover"})}),(0,r.jsx)("h6",{className:"text-sm ps-3 font-regular text-heading",children:function(e,t){if(!l()(t)){let s=c()(t);return"".concat(e," - ").concat(s.join(", "))}return e}(s.name,s.attributes)}),(0,r.jsx)("div",{className:"flex ms-auto text-heading text-sm ps-2 flex-shrink-0",children:n})]})},x=e=>{let{item:t}=e;return(0,r.jsxs)("div",{className:"flex items-center py-4 lg:py-5 border-b border-gray-300 text-sm lg:px-3 w-full font-semibold text-heading last:border-b-0 last:text-base last:pb-0",children:[t.name,(0,r.jsx)("span",{className:"ms-auto flex-shrink-0",children:t.price})]})};var o=s(50899),p=s(28368),h=s(25675),u=s.n(h);let b=e=>{let{selectedMethod:t=0}=e,{items:s,total:i,subtotal:l,isEmpty:d,deliveryFee:c,vat:h,stripeFee:b,tabbyFee:g}=(0,n.jD)(),{price:f}=(0,a.ZP)({amount:l}),{price:j}=(0,a.ZP)({amount:c}),{price:N}=(0,a.ZP)({amount:0===t?b:g}),{price:v}=(0,a.ZP)({amount:h}),{price:w}=(0,a.ZP)({amount:i}),{t:y}=(0,o.$G)("common"),k=[{id:1,name:y("text-sub-total"),price:f},{id:2,name:y("text-shipping"),price:j},{id:3,name:y("text-service-fees"),price:N},{id:4,name:y("text-vat"),price:v},{id:5,name:y("text-total"),price:w}];return(0,r.jsx)("div",{className:"md:pt-0 2xl:ps-4 bg-white rounded-xl p-5 md:p-0",children:(0,r.jsx)(p.p,{children:e=>{let{open:t}=e;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(p.p.Button,{className:"w-full flex items-center justify-between md:hidden px-4 py-3 bg-white md:bg-gray-100 rounded-md font-bold text-heading",children:[(0,r.jsx)("span",{children:w}),(0,r.jsx)("div",{className:"rotate-180",children:(0,r.jsx)(u(),{src:"/assets/images/backArrow.png",alt:"arrow",width:25,height:25,className:"".concat(t?"rotate-90":"rotate-0"," transition-all duration-300 ease-in-out")})})]}),(0,r.jsx)("h2",{className:"hidden md:block text-lg md:text-xl xl:text-2xl font-bold text-heading mb-6 xl:mb-8",children:y("text-your-order")}),(0,r.jsxs)(p.p.Panel,{static:window&&window.innerWidth>768,className:"md:block",children:[(0,r.jsxs)("div",{className:"flex p-4 rounded-md mt-6 md:mt-7 xl:mt-9 bg-gray-150 text-sm font-semibold text-heading",children:[(0,r.jsx)("span",{children:y("text-product")}),(0,r.jsx)("span",{className:"ms-auto flex-shrink-0",children:y("text-sub-total")})]}),d?(0,r.jsx)("p",{className:"text-red-500 lg:px-3 py-4",children:y("text-empty-cart")}):s.map(e=>(0,r.jsx)(m,{item:e},e.id)),k.map(e=>(0,r.jsx)(x,{item:e},e.id))]})]})}})})};var g=b}}]);
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.