"use strict";(self.webpackChunkwebpackWcBlocksJsonp=self.webpackChunkwebpackWcBlocksJsonp||[]).push([[9662],{6284:(e,i,s)=>{s.r(i),s.d(i,{default:()=>F});var l=s(69307),n=s(89814),t=s.n(n),r=s(80721),o=s(40711),c=s(27277),d=s(9818),p=s(94801),u=s(95649),h=s(87107),a=s(1141),w=s(70596);const F=(0,r.withFilteredAttributes)(h.Z)((({title:e,description:i,showStepNumber:s,children:n,className:r})=>{const h=(0,d.useSelect)((e=>e(p.CHECKOUT_STORE_KEY).isProcessing())),{requireCompanyField:F,requirePhoneField:m,showApartmentField:b,showCompanyField:f,showPhoneField:g}=(0,a.s4)(),{showBillingFields:k,forcedBillingAddress:C,useBillingAsShipping:B,useShippingAsBilling:E}=(0,c.B)(),S=(0,l.useRef)(E);return(0,l.useEffect)((()=>{E&&(S.current=!0)}),[E]),k||B?(e=(0,w.F)(e,C),i=(0,w.y)(i,C),(0,l.createElement)(o.FormStep,{id:"billing-fields",disabled:h,className:t()("wc-block-checkout__billing-fields",r),title:e,description:i,showStepNumber:s},(0,l.createElement)(u.Z,{requireCompanyField:F,showApartmentField:b,showCompanyField:f,showPhoneField:g,requirePhoneField:m,forceEditing:S.current}),n)):null}))}}]);