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