"use strict";(self.webpackChunkhost=self.webpackChunkhost||[]).push([[38],{37038:function(a,e,l){l.r(e),l.d(e,{BRAForm:function(){return m}});var s=l(6405),u=l(94496);let r=[{displayValue:"Acre",value:"AC"},{displayValue:"Alagoas",value:"AL"},{displayValue:"Amap\xe1",value:"AP"},{displayValue:"Amazonas",value:"AM"},{displayValue:"Bahia",value:"BA"},{displayValue:"Cear\xe1",value:"CE"},{displayValue:"Distrito Federal",value:"DF"},{displayValue:"Esp\xedrito Santo",value:"ES"},{displayValue:"Goi\xe1s",value:"GO"},{displayValue:"Maranh\xe3o",value:"MA"},{displayValue:"Mato Grosso",value:"MT"},{displayValue:"Mato Grosso do Sul",value:"MS"},{displayValue:"Minas Gerais",value:"MG"},{displayValue:"Par\xe1",value:"PA"},{displayValue:"Para\xedba",value:"PB"},{displayValue:"Paran\xe1",value:"PR"},{displayValue:"Pernambuco",value:"PE"},{displayValue:"Piau\xed",value:"PI"},{displayValue:"Rio de Janeiro",value:"RJ"},{displayValue:"Rio Grande do Norte",value:"RN"},{displayValue:"Rio Grande do Sul",value:"RS"},{displayValue:"Rond\xf4nia",value:"RO"},{displayValue:"Roraima",value:"RR"},{displayValue:"Santa Catarina",value:"SC"},{displayValue:"S\xe3o Paulo",value:"SP"},{displayValue:"Sergipe",value:"SE"},{displayValue:"Tocantins",value:"TO"}];var d=l(76922),t=l(45576),o=l(36995),i=l(4106),n=l(27363);let p=/^([\d]{5})-?([\d]{3})$/,m=a=>{let{formMethods:e,isDisabled:l}=a,m=(0,u.A)(),{control:v}=e,y=[{displayValue:"",value:""},...r];return(0,s.jsxs)("div",{className:n.Z,children:[(0,s.jsx)(t.C,{disabled:l,label:m.formatMessage(i.p.street),name:"address.street",control:v,rules:{required:(0,o.mw)({intl:m,name:"street"})}}),(0,s.jsx)(t.C,{disabled:l,label:m.formatMessage(i.p.complement),name:"address.complement",control:v,rules:{maxLength:(0,o.Ru)({intl:m,name:"complement",maxLength:750})}}),(0,s.jsx)(d.f,{disabled:l,optionList:y,label:m.formatMessage(i.p.state),name:"state"}),(0,s.jsx)(t.C,{disabled:l,label:m.formatMessage(i.p.city),name:"address.city",control:v}),(0,s.jsx)(t.C,{disabled:l,label:m.formatMessage(i.p.postalCode),name:"address.postalCode",control:v,rules:{required:(0,o.mw)({intl:m,name:"postalCode"}),maxLength:(0,o.Ru)({intl:m,name:"postalCode",maxLength:50}),pattern:(0,o.T1)({intl:m,name:"postalCode",regex:p})}})]})}},45576:function(a,e,l){l.d(e,{C:function(){return d}});var s=l(6405),u=l(86885),r=l(72549);let d=(0,l(36496).forwardRef)(function(a,e){var l;let{label:d,...t}=a,{name:o,control:i,defaultValue:n,disabled:p,rules:m,shouldUnregister:v,id:y,...V}=t,{field:c,formState:{errors:f}}=(0,r.as)({name:o,control:i,defaultValue:n,disabled:p,rules:m,shouldUnregister:v}),C=(0,u.SV)(c.ref,e),b=null!==(l=o.split(".")[1])&&void 0!==l?l:o,R=!!f.address&&Object.prototype.hasOwnProperty.call(f.address,b);return(0,s.jsxs)(u.L9,{children:[(0,s.jsx)(u.ks,{label:d,error:R,...V,...c,ref:C}),(0,s.jsx)(u.jQ,{errors:f,name:o,id:y})]})})}}]);