/* COPYRIGHT Esri - https://js.arcgis.com/1.2/LICENSE.txt */
import{a}from"./GLKVZ7A5.js";import"./CEJ32AIK.js";import"./GVM4XYEI.js";import"./NGDVSE4Z.js";import"./BTNJZZQQ.js";import{a as s,b as r}from"./N7JNPC6K.js";import"./CV4O7JUV.js";import"./J4G5O37H.js";import"./5MKH4QDV.js";import{a as o}from"./GJ2ILN5E.js";import{a as i}from"./XTIVEFHG.js";import"./RQIYSS6T.js";import"./WRC6VEWK.js";import"./JEJ23R3P.js";import"./TONS7KZJ.js";import"./Q62UEPOL.js";import"./RQFHSMWM.js";import"./TBHFGSW5.js";import"./YPYVBSI2.js";import"./7ETQT3G4.js";import"./QNRKUIIZ.js";import"./GQCZRU3J.js";import"./REIYPTAV.js";import"./2OU4FEWW.js";import"./VV7FJXQ5.js";import"./DSY5AB5O.js";import"./GN3QLDHM.js";import"./44A5XEM4.js";import"./TTLT7RGV.js";import"./ZMQIXHQT.js";import"./ON4BNIHV.js";import"./7HFNWEO7.js";import"./U3ZSY3PW.js";import"./S63WKB2G.js";import"./CWR7ZYKZ.js";import"./2WOAXFRU.js";import"./5WGXAZJH.js";import"./S2YYP65L.js";import"./TS3CE2TS.js";import"./3QPJ2JCA.js";var c=async(e,t,l)=>({type:"Layout",elements:[{type:"Section",labelKey:`${e}.sections.basic.title`,options:{helperText:{labelKey:`${e}.sections.basic.helperText`}},elements:[{labelKey:`${e}.fields.title.label`,scope:"/properties/name",type:"Control",options:{helperText:{labelKey:`${e}.fields.title.hint`},messages:[{type:"ERROR",keyword:"required",icon:!0,labelKey:`${e}.fields.title.requiredError`},{type:"ERROR",keyword:"maxLength",icon:!0,labelKey:"shared.fields.title.maxLengthError"}]}},{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:"shared.fields.summary.maxLengthError"}]}},...a(e,t.thumbnail,t.thumbnailUrl,"content",l.requestOptions),{type:"Section",labelKey:`${e}.sections.description.label`,options:{section:"block"},elements:[{labelKey:`${e}.fields.description.label`,scope:"/properties/description",type:"Control",options:{control:"hub-field-input-rich-text",type:"textarea"}}]},{type:"Section",labelKey:`${e}.sections.discoverability.label`,options:{section:"block",helperText:{labelKey:`${e}.sections.discoverability.helperText`}},elements:[{labelKey:`${e}.fields.tags.label`,scope:"/properties/tags",type:"Control",options:{control:"hub-field-input-combobox",items:await i(t.tags,l.portal.id,l.hubRequestOptions),allowCustomValues:!0,selectionMode:"multiple",placeholderIcon:"label"}},...await o(e,l)]},{labelKey:`${e}.fields.license.label`,scope:"/properties/licenseInfo",type:"Control",options:{control:"arcgis-hub-license-picker"}}]},{type:"Section",labelKey:`${e}.sections.location.label`,elements:[{scope:"/properties/location",type:"Control",options:{control:"hub-field-input-location-picker",extent:await s(t.location,l.hubRequestOptions),options:await r(t.id,t.type,t.location,l.portal.name,l.hubRequestOptions),noticeTitleElementAriaLevel:3}}]}]});export{c as buildUiSchema};
