import{j as a}from"./app-BgLa5dit.js";import{c as t}from"./DlWawfes.chunk.js";import{A as m}from"./BbLwn0px.chunk.js";function l(e){return a.jsx(t,{view:m.AutomaticAccess,options:["none","allowed"],errors:e.errors,appLinks:e.appLinks,classname:e.classname,onSelectValue:s=>e.formikProps.setFieldValue("automaticAccess.selectedOption",s),addDomainField:()=>e.formikProps.setFieldValue("automaticAccess.domains",[...e.formikProps.values.automaticAccess.domains,{domain:""}]),onChangeDomain:(s,i)=>e.formikProps.setFieldValue(`automaticAccess.domains[${i}]`,s),removeDomainField:s=>{const i=e.formikProps.values.automaticAccess.domains;i.length>1?(e.formikProps.setFieldValue("automaticAccess.domains",i.filter((c,o)=>o!==s)),e.formikProps.setFieldError("automaticAccess.domains",void 0)):(e.formikProps.setFieldValue("automaticAccess.domains[0]",{domain:""}),e.formikProps.setFieldError("automaticAccess.domains[0]",void 0))},setFieldError:(s,i)=>e.formikProps.setFieldError(s,i),selectedOption:e.formikProps.values.automaticAccess.selectedOption,domains:e.formikProps.values.automaticAccess.domains})}export{l as A};
//# sourceMappingURL=MscBOfIw.chunk.js.map
