/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
import{a as o}from"./5IIGQVJO.js";import{d as r}from"./GF4QELNV.js";import"./5O53T3SW.js";import"./AJZDBHB6.js";import{a as s}from"./NEKIHEPY.js";import"./UKXDAOCN.js";import"./D3WYLHYH.js";import"./MPGXSCG5.js";import"./TT5Y2WZP.js";import"./JBGQX4DF.js";import"./OQWMBY4L.js";import"./MHD543E6.js";import"./N72IW5CX.js";import"./SNXCUFG4.js";import"./ZDGVCOLK.js";import"./FES7B3SJ.js";import"./4UBLWDFJ.js";import"./SBEC53RV.js";import"./LDQDYCD2.js";import"./RNAN4RW6.js";import"./W5V64SBG.js";import"./TTODV2R4.js";import"./CEZMBNEQ.js";import"./BJMJWUHS.js";import"./NPZQAHW4.js";import"./FKCIW6NV.js";import"./YF26KIY5.js";import"./EXBEKVP5.js";var p=async(e,l,t)=>({type:"Layout",elements:[{type:"Section",options:{section:"stepper",scale:"l"},elements:[{type:"Section",labelKey:`${e}.sections.details.label`,options:{section:"step"},elements:[{labelKey:`${e}.fields.name.label`,scope:"/properties/name",type:"Control",options:{messages:[{type:"ERROR",keyword:"required",icon:!0,labelKey:`${e}.fields.name.requiredError`},{type:"ERROR",keyword:"maxLength",icon:!0,labelKey:`${e}.fields.name.maxLengthError`},{type:"ERROR",keyword:"format",icon:!0,labelKey:`${e}.fields.name.entityTitleValidatorError`}]}},{labelKey:`${e}.fields.summary.label`,scope:"/properties/summary",type:"Control",options:{control:"hub-field-input-input",type:"textarea",rows:4,messages:[{type:"ERROR",keyword:"maxLength",icon:!0,labelKey:`${e}.fields.summary.maxLengthError`}]}}]},{type:"Section",labelKey:`${e}.sections.membershipAccess.label`,options:{section:"step"},rule:{effect:s.DISABLE,condition:{scope:"/properties/name",schema:{const:""}}},elements:[{labelKey:`${e}.fields.membershipAccess.label`,scope:"/properties/membershipAccess",type:"Control",options:{control:"hub-field-input-radio",labels:[`{{${e}.fields.membershipAccess.org.description:translate}}`,`{{${e}.fields.membershipAccess.collab.description:translate}}`,`{{${e}.fields.membershipAccess.any.description:translate}}`],disabled:[!1,!r("platform:portal:user:addExternalMembersToGroup",t).access,!0]}},{labelKey:`${e}.fields.contributeContent.label`,scope:"/properties/isViewOnly",type:"Control",options:{control:"hub-field-input-radio",labels:[`{{${e}.fields.contributeContent.members.description:translate}}`,`{{${e}.fields.contributeContent.admins.description:translate}}`]}}]}]}]}),m=async(e,l,t)=>Object.assign({},o("hubEditGroup",t));export{m as buildDefaults,p as buildUiSchema};
