"use strict";(self.webpackChunkwebpackWcBlocksCartCheckoutFrontendJsonp=self.webpackChunkwebpackWcBlocksCartCheckoutFrontendJsonp||[]).push([[8127],{4722:(e,c,o)=>{o.r(c),o.d(c,{default:()=>m});var t=o(1609),l=o(7723),s=o(5738),a=o(8509),r=o(1e3),n=o(7143),p=o(7594),i=o(8531),u=o(5683);const m=({className:e=""})=>{const{cartNeedsShipping:c,shippingRates:o,shippingAddress:m}=(0,a.V)(),d=(0,n.useSelect)((e=>e(p.CHECKOUT_STORE_KEY).prefersCollection()));if(!c)return null;const _=(0,i.PU)((0,i.uo)(o,null!=d&&d)),h=(0,u.KY)(m,["state","country","postcode","city"]);return(0,t.createElement)(r.TotalsWrapper,{className:e},(0,t.createElement)(s.w7,{label:_?(0,l.__)("Collection","woocommerce"):(0,l.__)("Delivery","woocommerce"),placeholder:(0,t.createElement)("span",{className:"wc-block-components-shipping-placeholder__value"},h?(0,l.__)("No available delivery option","woocommerce"):(0,l.__)("Enter address to calculate","woocommerce"))}))}}}]);