"use strict";(self.webpackChunkui=self.webpackChunkui||[]).push([[10],{42:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.priceBlock=t.productPrice=t.itemPrice=t.getCurrentCoupons=void 0,t.getCurrentCoupons=e=>{const t=new Date;return e.filter((e=>{const r=new Date(e.start_date),o=new Date(e.end_date);return t>=r&&t<=o}))},t.itemPrice=({item:e,activeDiscount:t,getDiscountByProductHandle:r,isCouponApplied:o})=>{const n=e.price/100;let i=n;o&&(i=n-n*((null==t?void 0:t.discount)||0));const c=r(e.handle);return c&&(i=n-n*((c||0)/100)),{regularPrice:n,salePrice:i,discount:c}},t.productPrice=({product:e,activeDiscount:t,getDiscountByProductHandle:r,isCouponApplied:o})=>{const n=parseFloat(e.oldPrice),i=parseFloat(e.price),c=isNaN(n)?i:n;let u=i,s=u;o&&(s=u-u*((null==t?void 0:t.discount)||0));const l=r(e.handle);l&&(s=u-u*((l||0)/100));const a=s{const i=parseFloat(null==t?void 0:t.compareAtPrice),c=parseFloat(t.price.amount),u=isNaN(i)?c:i,s=c;let l=r?s-s*((null==o?void 0:o.discount)||0):s;const a=n(e.handle);return a&&(l=s-s*((a||0)/100)),{compareAtPrice:i,price:c,regularPrice:u,salePrice:s,discountedPrice:l}}},10:function(e,t,r){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const n=o(r(26));t.default=e=>(0,n.default)(Object.assign({rounded:!0},e))},27:function(e,t,r){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const n=o(r(155));t.default=e=>(0,n.default)(Object.assign({size:"large",font:"font-roboto"},e))},155:function(e,t,r){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const n=r(0),i=o(r(2));t.default=function({size:e="normal",font:t="font-roboto",color:r="text-black",formatPrice:o=(e=>`$${Number(e).toFixed(2)}`),children:c,strikeThrough:u}){if(null===c)return null;let s;switch(e){case"small":s="text-xs";break;case"normal":s="text-sm";break;case"large":s="text-base sm:text-lg";break;case"extra-large":s="text-lg sm:text-xl"}const l={className:(0,i.default)(t,r,"leading-6",s,u&&"line-through")};return(0,n.jsx)("div",Object.assign({},l,{children:o(c)}))}}}]);