class CheckoutController extends Stimulus.Controller{static get targets(){return["postcode","deliveryCost","cartCost","totalCost"]}initialize(){}async connect(){const cartCost=parseInt(this.cartCostTarget.dataset.cost),deliveryCost=await fieldDoctorAPI.getDeliveryCost(),totalCost=cartCost+deliveryCost;deliveryCost==0}clearPostcode(){fieldDoctorAPI.delivery.setPostcode(""),window.location.href="/collections/shop"}}
//# sourceMappingURL=/cdn/shop/t/104/assets/checkout_controller.js.map