"use strict";(self.webpackChunkhost=self.webpackChunkhost||[]).push([[82],{86082:function(a,e,l){l.r(e),l.d(e,{USAForm:function(){return y}});var s=l(6405),u=l(94496);let i=[{displayValue:"Alabama",value:"AL"},{displayValue:"Alaska",value:"AK"},{displayValue:"American Samoa",value:"AS"},{displayValue:"Arizona",value:"AZ"},{displayValue:"Arkansas",value:"AR"},{displayValue:"Armed Forces Americas",value:"AA"},{displayValue:"Armed Forces Europe, the Middle East, and Canada",value:"AE"},{displayValue:"Armed Forces Pacific",value:"AP"},{displayValue:"California",value:"CA"},{displayValue:"Colorado",value:"CO"},{displayValue:"Connecticut",value:"CT"},{displayValue:"Delaware",value:"DE"},{displayValue:"District Of Columbia (Washington, D.C.)",value:"DC"},{displayValue:"Federated States of Micronesia",value:"FM"},{displayValue:"Florida",value:"FL"},{displayValue:"Georgia",value:"GA"},{displayValue:"Guam",value:"GU"},{displayValue:"Hawaii",value:"HI"},{displayValue:"Idaho",value:"ID"},{displayValue:"Illinois",value:"IL"},{displayValue:"Indiana",value:"IN"},{displayValue:"Iowa",value:"IA"},{displayValue:"Kansas",value:"KS"},{displayValue:"Kentucky",value:"KY"},{displayValue:"Louisiana",value:"LA"},{displayValue:"Maine",value:"ME"},{displayValue:"Marshall Islands",value:"MH"},{displayValue:"Maryland",value:"MD"},{displayValue:"Massachusetts",value:"MA"},{displayValue:"Michigan",value:"MI"},{displayValue:"Minnesota",value:"MN"},{displayValue:"Mississippi",value:"MS"},{displayValue:"Missouri",value:"MO"},{displayValue:"Montana",value:"MT"},{displayValue:"Nebraska",value:"NE"},{displayValue:"Nevada",value:"NV"},{displayValue:"New Hampshire",value:"NH"},{displayValue:"New Jersey",value:"NJ"},{displayValue:"New Mexico",value:"NM"},{displayValue:"New York",value:"NY"},{displayValue:"North Carolina",value:"NC"},{displayValue:"North Dakota",value:"ND"},{displayValue:"Northern Mariana Islands",value:"MP"},{displayValue:"Ohio",value:"OH"},{displayValue:"Oklahoma",value:"OK"},{displayValue:"Oregon",value:"OR"},{displayValue:"Palau",value:"PW"},{displayValue:"Pennsylvania",value:"PA"},{displayValue:"Puerto Rico",value:"PR"},{displayValue:"Rhode Island",value:"RI"},{displayValue:"South Carolina",value:"SC"},{displayValue:"South Dakota",value:"SD"},{displayValue:"Tennessee",value:"TN"},{displayValue:"Texas",value:"TX"},{displayValue:"U.S. Minor Outlying Islands",value:"UM"},{displayValue:"U.S. Virgin Islands",value:"VI"},{displayValue:"Utah",value:"UT"},{displayValue:"Vermont",value:"VT"},{displayValue:"Virginia",value:"VA"},{displayValue:"Washington",value:"WA"},{displayValue:"West Virginia",value:"WV"},{displayValue:"Wisconsin",value:"WI"},{displayValue:"Wyoming",value:"WY"}];var d=l(36995),r=l(27363),n=l(76922),o=l(45576),p=l(4106);let t=/^([\d]{5}((-)?[\d]{4})?)$/,y=a=>{let{formMethods:e,isDisabled:l}=a,y=(0,u.A)(),{control:V}=e,v=[{displayValue:"",value:""},...i];return(0,s.jsxs)("div",{className:r.Z,children:[(0,s.jsx)(o.C,{disabled:l,label:y.formatMessage(p.p.street),name:"address.street",control:V,rules:{required:(0,d.mw)({intl:y,name:"street"})}}),(0,s.jsx)(o.C,{disabled:l,label:y.formatMessage(p.p.complement),name:"address.complement",control:V,rules:{maxLength:(0,d.Ru)({intl:y,name:"complement",maxLength:750})}}),(0,s.jsx)(n.f,{disabled:l,optionList:v,label:y.formatMessage(p.p.state),name:"state"}),(0,s.jsx)(o.C,{disabled:l,label:y.formatMessage(p.p.city),name:"address.city",control:V}),(0,s.jsx)(o.C,{disabled:l,label:y.formatMessage(p.p.postalCode),name:"address.postalCode",control:V,rules:{required:(0,d.mw)({intl:y,name:"postalCode"}),maxLength:(0,d.Ru)({intl:y,name:"postalCode",maxLength:50}),pattern:(0,d.T1)({intl:y,name:"postalCode",regex:t})}})]})}},45576:function(a,e,l){l.d(e,{C:function(){return d}});var s=l(6405),u=l(86885),i=l(72549);let d=(0,l(36496).forwardRef)(function(a,e){var l;let{label:d,...r}=a,{name:n,control:o,defaultValue:p,disabled:t,rules:y,shouldUnregister:V,id:v,...m}=r,{field:c,formState:{errors:M}}=(0,i.as)({name:n,control:o,defaultValue:p,disabled:t,rules:y,shouldUnregister:V}),h=(0,u.SV)(c.ref,e),A=null!==(l=n.split(".")[1])&&void 0!==l?l:n,C=!!M.address&&Object.prototype.hasOwnProperty.call(M.address,A);return(0,s.jsxs)(u.L9,{children:[(0,s.jsx)(u.ks,{label:d,error:C,...m,...c,ref:h}),(0,s.jsx)(u.jQ,{errors:M,name:n,id:v})]})})}}]);