"use strict";(self.webpackChunkui=self.webpackChunkui||[]).push([[57],{17:(t,i,o)=>{o.r(i),o.d(i,{default:()=>a});const a={checkoutButton:"e1yuB0Es",subtotalContainer:"ejXF2VW9",originalPrice:"hjlJrKyq",priceContainer:"yrz7qHpi",continueShopping:"haQJXprg"}},226:(t,i,o)=>{const a=o(96);(0,o(2).createEntrypoint)("cart_subtotals",a.CartSubtotals)},96:function(t,i,o){var a=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(i,"__esModule",{value:!0}),i.CartSubtotals=function(t){var i,o,a,n,u;const s=t.useSharedState()((t=>({subtotal:t.cartTotal,itemCount:t.itemCount,cartOriginalTotal:t.cartOriginalTotal,cart:t.cart}))),c=t.showRouteInCart?(null===(i=s.cart)||void 0===i?void 0:i.total_price)&&(null===(o=s.cart)||void 0===o?void 0:o.total_price)/100:s.subtotal,d=t.showRouteInCart?null===(a=s.cart)||void 0===a?void 0:a.item_count:s.itemCount;if(void 0===c||void 0===d)return(0,r.jsx)(e.Fragment,{});const v=t.showRouteInCart?(null===(n=s.cart)||void 0===n?void 0:n.original_total_price)&&(null===(u=s.cart)||void 0===u?void 0:u.original_total_price)/100:s.cartOriginalTotal;return(0,r.jsxs)("div",{class:l.default.subtotalContainer,children:[(0,r.jsxs)("div",{children:["Subtotal (",d," item",d>1?"s":"",")"]}),(0,r.jsxs)("div",{class:l.default.priceContainer,children:[(0,r.jsxs)("div",{children:["$",null==c?void 0:c.toFixed(2)]}),v&&v>c?(0,r.jsxs)("div",{class:l.default.originalPrice,children:["$",null==v?void 0:v.toFixed(2)]}):null]})]})};const r=o(0),e=o(1),l=a(o(17))}},t=>{t.O(0,[1],(()=>t(t.s=226))),t.O()}]);