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