/* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
import{a as s}from"./OCJK42MK.js";import"./MBISQ27L.js";import"./XYWNICC6.js";import"./T5HS6V2W.js";import"./UKRALD6X.js";import"./LNLMLBWQ.js";import"./P5YTFAF2.js";import"./YM3BZKEU.js";import"./35D5FZVV.js";import"./HQK5RHHT.js";import"./ZQ37ZZNF.js";import"./5UWT66A7.js";import"./SFG2REQW.js";import"./CUJCDLHI.js";import"./VU3T4WSA.js";import"./W4UTR6WU.js";import"./SE7GHLP3.js";import"./EQUAUHBX.js";import"./YEY4KEHA.js";import"./X5H73PHG.js";import"./OCUMDT2M.js";import"./TUP3HPO4.js";import"./WKMAPRRW.js";import"./OR4HXHSY.js";var c=async(e,l,n)=>{let{isSharedUpdate:i,leavingDisallowed:t}=l;return{type:"Layout",elements:[{type:"Section",labelKey:`${e}.sections.membershipAccess.label`,elements:[{labelKey:`${e}.fields.membershipAccess.label`,scope:"/properties/membershipAccess",type:"Control",options:{control:"hub-field-input-tile-select",labels:[`{{${e}.fields.membershipAccess.org.description:translate}}`,`{{${e}.fields.membershipAccess.collab.description:translate}}`,`{{${e}.fields.membershipAccess.any.description:translate}}`],rules:[[{effect:s.NONE}],[{effect:s.DISABLE,conditions:[t]}],[{effect:s.DISABLE,conditions:[t]},{effect:s.DISABLE,conditions:[i]}]]},rules:[{effect:s.RESET,conditions:[t]},{effect:s.RESET,conditions:[i,{scope:"/properties/membershipAccess",schema:{const:"anyone"}}]}]},{labelKey:`${e}.fields.contributeContent.label`,scope:"/properties/isViewOnly",type:"Control",options:{control:"hub-field-input-tile-select",labels:[`{{${e}.fields.contributeContent.members.description:translate}}`,`{{${e}.fields.contributeContent.admins.description:translate}}`]}}]}]}};export{c as buildUiSchema};
