"use strict";(self.webpackChunkui=self.webpackChunkui||[]).push([[47],{16:(t,u,n)=>{n.r(u),n.d(u,{default:()=>o});const o={checkoutButton:"e1yuB0Es",subtotalContainer:"ejXF2VW9",originalPrice:"hjlJrKyq",priceContainer:"yrz7qHpi",continueShopping:"haQJXprg"}},194:(t,u,n)=>{const o=n(83);(0,n(2).createEntrypoint)("checkout_button",o.CheckoutButtonsContainer)},83:function(t,u,n){var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(u,"__esModule",{value:!0}),u.CheckoutButtonsContainer=function(t){const u=t.useSharedState()((t=>{var u;return{item_count:null===(u=t.cart)||void 0===u?void 0:u.item_count,cartStatus:t.cartStatus}}));return(0,c.jsx)("form",{action:"/checkout",children:(0,c.jsxs)("button",{class:r.default.checkoutButton,disabled:0===u.item_count||u.cartStatus.status===e.Status.updating,children:[(0,c.jsx)(s,{checkoutButtonIcon:t.checkoutButtonIcon})," Checkout"]})})};const c=n(0),e=(n(1),n(13)),r=o(n(16)),a=n(113);function s(t){return"truck"===t.checkoutButtonIcon?(0,c.jsx)(a.TruckSVG,{}):"padlock"===t.checkoutButtonIcon?(0,c.jsx)(a.PadlockSVG,{}):null}}},t=>{t.O(0,[1,2,3,4,5,6,7,8,9,10,24],(()=>t(t.s=194))),t.O()}]);