1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,70977,e=>{"use strict";let s={GBP:{symbol:"£",displaySymbol:"£",rate:1,locale:"en-GB"},USD:{symbol:"$",displaySymbol:"$",rate:1.27,locale:"en-US"},CAD:{symbol:"$",displaySymbol:"CA$",rate:1.72,locale:"en-CA"},AUD:{symbol:"$",displaySymbol:"A$",rate:1.95,locale:"en-AU"},EUR:{symbol:"â¬",displaySymbol:"â¬",rate:1.17,locale:"en-GB"}};e.s(["convertPrice",0,(e,t)=>e*s[t].rate,"formatPrice",0,(e,t)=>{let{locale:a,displaySymbol:r}=s[t],l=new Intl.NumberFormat(a,{style:"currency",currency:t,currencyDisplay:"symbol"}).format(e);return"CAD"===t||"AUD"===t?l.replace(/\$/g,r):l}],70977)},960,e=>{"use strict";var s=e.i(43476),t=e.i(75157);function a({className:e,...a}){return(0,s.jsx)("div",{className:(0,t.cn)("animate-pulse rounded-md bg-primary/10",e),...a})}e.s(["Skeleton",()=>a])},13015,30275,57181,e=>{"use strict";var s=e.i(43476),t=e.i(71645),a=e.i(22016),r=e.i(57688),l=e.i(95187),c=(0,l.createServerReference)("40ec6b0666f3572d745bddcf4d3f0feab8c5c360c1",l.callServer,void 0,l.findSourceMapURL,"fetchWooCommerceProduct");let i=async e=>{let s=[];for(let t of e)try{let e=await c(t.id);e&&s.push({...t,price:parseFloat(e.price)})}catch(e){console.error(`Error fetching product details for ID ${t.id}:`,e)}let t=s.reduce((e,s)=>e+s.price*s.quantity,0),a=parseFloat((t+0).toFixed(2));return{updatedCart:s,subtotal:t,shipping:0,total:a}};e.s(["updateCartAndCalculateTotals",0,i],30275);var n=e.i(30911),o=e.i(70977),m=e.i(960);let d=()=>(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"flex items-center space-x-4",children:[(0,s.jsx)(m.Skeleton,{className:"h-12 w-12 rounded-full"}),(0,s.jsxs)("div",{className:"space-y-2",children:[(0,s.jsx)(m.Skeleton,{className:"h-4 w-[250px]"}),(0,s.jsx)(m.Skeleton,{className:"h-4 w-[200px]"})]})]}),(0,s.jsxs)("div",{className:"flex gap-4",children:[(0,s.jsx)(m.Skeleton,{className:"w-3/4 h-6"}),(0,s.jsx)(m.Skeleton,{className:"w-1/4 h-6"})]}),(0,s.jsxs)("div",{className:"flex gap-4",children:[(0,s.jsx)(m.Skeleton,{className:"w-3/4 h-6"}),(0,s.jsx)(m.Skeleton,{className:"w-1/4 h-6"})]}),(0,s.jsxs)("div",{className:"flex gap-4",children:[(0,s.jsx)(m.Skeleton,{className:"w-3/4 h-6"}),(0,s.jsx)(m.Skeleton,{className:"w-1/4 h-6"})]})]});e.s(["default",0,d],57181),e.s(["default",0,({cartPage:e})=>{let[l,c]=(0,t.useState)([]),[m,x]=(0,t.useState)(!1),[p,h]=(0,t.useState)({subtotal:0,shipping:0,total:0}),u=(0,n.useAppSelector)(e=>e.cart.items),j=(0,n.useAppSelector)(e=>e.currency.current);(0,t.useEffect)(()=>{(async()=>{try{if(!u)return;let{updatedCart:e,subtotal:s,shipping:t,total:a}=await i(u);c(e),h({subtotal:s,shipping:t,total:a}),localStorage.setItem("cart",JSON.stringify(e)),x(!0)}catch(e){console.error("Error updating cart:",e)}})()},[u]);let b=(0,o.convertPrice)(p.subtotal,j),y=(0,o.convertPrice)(p.total,j);return(0,s.jsx)("div",{className:"col-span-12 lg:col-span-4 space-y-6",children:m?(0,s.jsxs)("div",{className:"border border-gray-300 rounded-lg sm:p-6 p-4 shadow-sm",children:[(0,s.jsx)("h5",{className:"text-lg sm:text-xl font-semibold tracking-tight text-gray-900 border-b pb-4",children:e?"Cart Totals":"Order Summary"}),!e&&(0,s.jsx)("div",{className:"py-3 space-y-3",children:l.map(e=>{let t=e.price*e.quantity,a=(0,o.convertPrice)(t,j);return(0,s.jsxs)("div",{className:"flex items-center gap-x-3.5",children:[(0,s.jsx)(r.default,{src:e.image,alt:e.name,width:55,height:100}),(0,s.jsxs)("div",{children:[(0,s.jsx)("p",{className:"text-sm",children:e.name}),(0,s.jsxs)("span",{className:"text-xs",children:[e.quantity," Ã"," ",(0,o.formatPrice)((0,o.convertPrice)(e.price,j),j)]}),(0,s.jsx)("p",{className:"text-sm font-medium",children:(0,o.formatPrice)(a,j)})]})]},e.id)})}),(0,s.jsxs)("div",{className:"space-y-3 text-sm sm:text-base",children:[(0,s.jsxs)("div",{className:"flex justify-between border-t pt-3",children:[(0,s.jsx)("p",{className:"text-gray-700",children:"Sub-total"}),(0,s.jsx)("p",{className:"text-gray-700",children:(0,o.formatPrice)(b,j)})]}),(0,s.jsxs)("div",{className:"flex justify-between",children:[(0,s.jsx)("p",{className:"text-gray-700",children:"Shipping"}),(0,s.jsx)("p",{className:"text-gray-700",children:"Free"})]}),(0,s.jsxs)("div",{className:"flex justify-between border-t pt-3",children:[(0,s.jsx)("p",{className:"text-gray-900 font-semibold",children:"Total"}),(0,s.jsx)("p",{className:"text-gray-900 font-semibold",children:(0,o.formatPrice)(y,j)})]})]}),e&&(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(a.default,{className:`block text-center mt-5 ${0===p.total?"bg-gray-300 text-gray-500 cursor-not-allowed":"bg-[#333333] text-white hover:bg-gray-800"} rounded-lg px-6 py-3`,href:p.total>0?"/checkout":"#","aria-disabled":0===p.total,children:"Proceed to Checkout"})})]}):(0,s.jsx)(d,{})})}],13015)},69990,e=>{"use strict";var s=e.i(43476),t=e.i(71645),a=e.i(57688),r=e.i(11488),l=e.i(68757),c=e.i(960),i=e.i(30911),n=e.i(46696),o=e.i(70977);e.s(["default",0,()=>{let[e,m]=(0,t.useState)(!1),d=(0,i.useAppSelector)(e=>e.cart.items),x=(0,i.useAppSelector)(e=>e.currency.current),p=(0,i.useAppDispatch)();return((0,t.useEffect)(()=>{m(!0)},[]),e)?0===d.length?(0,s.jsx)("div",{className:"text-center text-gray-600 text-lg mt-5",children:(0,s.jsx)("p",{children:"Cart is empty"})}):(0,s.jsx)(s.Fragment,{children:d.map(e=>{let t=e.price,c=e.price*e.quantity,i=(0,o.convertPrice)(t,x),m=(0,o.convertPrice)(c,x);return(0,s.jsxs)("div",{className:" grid grid-cols-12 gap-y-2 gap-x-4 px-4 pt-4 pb-2.5 border-b last:border-b-0 items-start sm:items-center [&_p]:text-gray-700 [&_p]:text-sm",children:[(0,s.jsxs)("div",{className:"col-span-12 sm:col-span-6 flex items-start sm:items-center gap-4 relative",children:[(0,s.jsx)("button",{onClick:()=>p((0,n.removeFromCart)(e.id)),className:" mt-1 sm:mt-0 text-gray-400 hover:text-black [&_svg]:w-4 [&_svg]:h-5 sm:static absolute -right-1.5 -top-2.5",children:(0,s.jsx)(r.FontAwesomeIcon,{icon:l.faTrashCan,fontWeight:400,color:"#333"})}),(0,s.jsx)(a.default,{src:e.image,alt:e.name,width:100,height:100,className:"w-16 h-24 object-cover rounded"}),(0,s.jsx)("div",{className:"space-y-1 sm:pr-0 pr-4",children:(0,s.jsx)("p",{className:"font-medium leading-4 sm:leading-5",children:e.name})})]}),(0,s.jsxs)("div",{className:" col-span-12 sm:col-span-2 flex justify-between sm:block border-t sm:border-t-0 pt-2 sm:pt-0",children:[(0,s.jsx)("p",{className:"text-sm font-semibold text-[#333] sm:hidden",children:"Price"}),(0,s.jsx)("p",{className:"sm:text-center font-medium",children:(0,o.formatPrice)(i,x)})]}),(0,s.jsxs)("div",{className:" col-span-12 sm:col-span-2 flex justify-between sm:block border-t sm:border-t-0 pt-2 sm:pt-0",children:[(0,s.jsx)("p",{className:"text-xs font-semibold text-[#333] sm:hidden",children:"Quantity"}),(0,s.jsx)("p",{className:"sm:text-center",children:e.quantity})]}),(0,s.jsxs)("div",{className:" col-span-12 sm:col-span-2 flex justify-between sm:block border-t sm:border-t-0 pt-2 sm:pt-0",children:[(0,s.jsx)("p",{className:"text-xs font-semibold text-[#333] sm:hidden",children:"Subtotal"}),(0,s.jsx)("p",{className:"font-medium sm:text-right",children:(0,o.formatPrice)(m,x)})]})]},e.id)})}):(0,s.jsxs)("div",{className:"space-y-2 m-3",children:[(0,s.jsx)(c.Skeleton,{className:"h-5 w-[9%] inline-block mr-[1%]"}),(0,s.jsx)(c.Skeleton,{className:"h-5 w-[69%] inline-block mr-[1%]"}),(0,s.jsx)(c.Skeleton,{className:"h-5 w-[20%] inline-block"})]})}])}]);
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.