"use strict";(self.webpackChunkhost=self.webpackChunkhost||[]).push([[283],{283:function(a,e,l){l.r(e),l.d(e,{USAForm:function(){return y}});var s=l(57913),u=l(67879);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(80337),r=l(50827),n=l(32017),o=l(79826),t=l(11079);let p=/^([\d]{5}((-)?[\d]{4})?)$/,y=a=>{let{formMethods:e,isDisabled:l}=a,y=(0,u.Z)(),{control:V}=e,v=[{displayValue:"",value:""},...i];return(0,s.jsxs)("div",{className:r.c,children:[(0,s.jsx)(o.F,{disabled:l,label:y.formatMessage(t.O.street),name:"address.street",control:V,rules:{required:(0,d.C1)({intl:y,name:"street"})}}),(0,s.jsx)(o.F,{disabled:l,label:y.formatMessage(t.O.complement),name:"address.complement",control:V,rules:{maxLength:(0,d.BS)({intl:y,name:"complement",maxLength:750})}}),(0,s.jsx)(n.h,{disabled:l,optionList:v,label:y.formatMessage(t.O.state),name:"state"}),(0,s.jsx)(o.F,{disabled:l,label:y.formatMessage(t.O.city),name:"address.city",control:V}),(0,s.jsx)(o.F,{disabled:l,label:y.formatMessage(t.O.postalCode),name:"address.postalCode",control:V,rules:{required:(0,d.C1)({intl:y,name:"postalCode"}),maxLength:(0,d.BS)({intl:y,name:"postalCode",maxLength:50}),pattern:(0,d.uj)({intl:y,name:"postalCode",regex:p})}})]})}},79826:function(a,e,l){l.d(e,{F:function(){return d}});var s=l(57913),u=l(27351),i=l(65834);let d=(0,l(74979).forwardRef)(function(a,e){var l;let{label:d,...r}=a,{name:n,control:o,defaultValue:t,disabled:p,rules:y,shouldUnregister:V,id:v,...m}=r,{field:c,formState:{errors:M}}=(0,i.bc)({name:n,control:o,defaultValue:t,disabled:p,rules:y,shouldUnregister:V}),h=(0,u.qq)(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.ai,{children:[(0,s.jsx)(u.oi,{label:d,error:C,...m,...c,ref:h}),(0,s.jsx)(u.Xq,{errors:M,name:n,id:v})]})})}}]);