@arcgis/portal-components 6.0.0-next.30 → 6.0.0-next.32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (202) hide show
  1. package/dist/cdn/22DNGXFY.js +2 -0
  2. package/dist/cdn/25K5D5HL.js +2 -0
  3. package/dist/cdn/2CC4MNQP.js +2 -0
  4. package/dist/cdn/{BPFX6I6Z.js → 3CXU5CCM.js} +1 -1
  5. package/dist/cdn/{4PL5CXXD.js → 3DTSKTHB.js} +1 -1
  6. package/dist/cdn/3MUI6DF4.js +2 -0
  7. package/dist/cdn/{L2P23REA.js → 3QWNGHAK.js} +1 -1
  8. package/dist/cdn/3T3QBPC3.js +2 -0
  9. package/dist/cdn/4X4EYM3Q.js +2 -0
  10. package/dist/cdn/4Y73LE7P.js +2 -0
  11. package/dist/cdn/5CEFJTG4.js +2 -0
  12. package/dist/cdn/5VFGR7LA.js +2 -0
  13. package/dist/cdn/5Y32T5IJ.js +2 -0
  14. package/dist/cdn/{4XFXM76G.js → 6EMK2BU6.js} +1 -1
  15. package/dist/cdn/6HNKQNS5.js +2 -0
  16. package/dist/cdn/{BNDM7DRY.js → 7BFTXD5J.js} +1 -1
  17. package/dist/cdn/{SF7P7MND.js → 7DAB2CEU.js} +1 -1
  18. package/dist/cdn/7ZWYPQMW.js +2 -0
  19. package/dist/cdn/{OUFJRLPQ.js → AM3UTQWH.js} +1 -1
  20. package/dist/cdn/ASLKTYLX.js +2 -0
  21. package/dist/cdn/{WQOCWSJC.js → B343BOVA.js} +1 -1
  22. package/dist/cdn/BHZKSSVZ.js +2 -0
  23. package/dist/cdn/BOEGDK4D.js +2 -0
  24. package/dist/cdn/{DSJOBYW5.js → BRWHEYLW.js} +1 -1
  25. package/dist/cdn/{TABWX4F2.js → BX2LXI3N.js} +1 -1
  26. package/dist/cdn/{COET6FWR.js → C3F24ZOM.js} +1 -1
  27. package/dist/cdn/C4GK263H.js +2 -0
  28. package/dist/cdn/CBFFZMX4.js +2 -0
  29. package/dist/cdn/CJ4S56BE.js +2 -0
  30. package/dist/cdn/{BDMPW4YT.js → CMNTOT5D.js} +1 -1
  31. package/dist/cdn/CVU6YKOA.js +2 -0
  32. package/dist/cdn/{Z7DRFGQ6.js → D52TYBRX.js} +1 -1
  33. package/dist/cdn/{EY37MGL2.js → DMS3R2W5.js} +1 -1
  34. package/dist/cdn/{S4Y7FPSQ.js → DV57AOBF.js} +1 -1
  35. package/dist/cdn/{UOY4FZLR.js → EDQSL2P3.js} +1 -1
  36. package/dist/cdn/{YKFYCIOS.js → ERBRAY5U.js} +1 -1
  37. package/dist/cdn/{TP5IFB74.js → FAZVQI4K.js} +1 -1
  38. package/dist/cdn/{KWZIYNDC.js → FGDSHTJ5.js} +1 -1
  39. package/dist/cdn/{5MZ64QM7.js → FKOSVY5D.js} +1 -1
  40. package/dist/cdn/FOWOLUC3.js +2 -0
  41. package/dist/cdn/{XLR4JEUA.js → FVHP6PFG.js} +1 -1
  42. package/dist/cdn/{XX6BL3DR.js → G7DJPREL.js} +1 -1
  43. package/dist/cdn/GBXFX37Y.js +2 -0
  44. package/dist/cdn/{657KMT6Y.js → GC4BV7IZ.js} +1 -1
  45. package/dist/cdn/H6MGSC3Y.js +2 -0
  46. package/dist/cdn/{MDYX3ON3.js → HBO7XTIL.js} +1 -1
  47. package/dist/cdn/HKHDBGNN.js +2 -0
  48. package/dist/cdn/HVQ7FKJ5.js +2 -0
  49. package/dist/cdn/{CFNR4XS2.js → HXR7GUM3.js} +1 -1
  50. package/dist/cdn/IGOSZ2LL.js +2 -0
  51. package/dist/cdn/IX4WEZZ2.js +2 -0
  52. package/dist/cdn/{W2MFAJEG.js → JA3GGSJJ.js} +1 -1
  53. package/dist/cdn/{GRQLUOSD.js → JEVNGG2O.js} +1 -1
  54. package/dist/cdn/JLT5GCLY.js +2 -0
  55. package/dist/cdn/KHA6NJ4N.js +2 -0
  56. package/dist/cdn/{5BVGWSPJ.js → KTTPPUQ7.js} +1 -1
  57. package/dist/cdn/{MSOJ4BDB.js → L25GEXL6.js} +1 -1
  58. package/dist/cdn/LBW47BJG.js +2 -0
  59. package/dist/cdn/LR33CLTB.js +2 -0
  60. package/dist/cdn/{QE64NUUD.js → M664QA6J.js} +1 -1
  61. package/dist/cdn/MJVKDAYF.js +2 -0
  62. package/dist/cdn/MVC6LIQ6.js +2 -0
  63. package/dist/cdn/{EQZYUMUN.js → NENAFJEC.js} +1 -1
  64. package/dist/cdn/NLFBHNSX.js +2 -0
  65. package/dist/cdn/{WUPQROF4.js → NYBLHT3F.js} +1 -1
  66. package/dist/cdn/{VZPUDARW.js → PJZZIITX.js} +1 -1
  67. package/dist/cdn/{2XRZP4QI.js → PRBP4AP6.js} +1 -1
  68. package/dist/cdn/{XMFA6QY6.js → PST62OKJ.js} +1 -1
  69. package/dist/cdn/{76IANSI7.js → Q2CCAKI4.js} +1 -1
  70. package/dist/cdn/{7HNMTPSD.js → QF626JXP.js} +1 -1
  71. package/dist/cdn/{AHJDGTDG.js → QMIVFHQE.js} +1 -1
  72. package/dist/cdn/{PU7NVVTN.js → QRHXMIMW.js} +1 -1
  73. package/dist/cdn/RJ3SU3EV.js +2 -0
  74. package/dist/cdn/{CHJAALGF.js → RJRTGF33.js} +1 -1
  75. package/dist/cdn/{HH5DBWJ2.js → SO3IBFEU.js} +1 -1
  76. package/dist/cdn/SUA7ZZUH.js +2 -0
  77. package/dist/cdn/SV6SGTR6.js +2 -0
  78. package/dist/cdn/TAZDV6DB.js +2 -0
  79. package/dist/cdn/TJANHZ25.js +2 -0
  80. package/dist/cdn/{7ECLKNGV.js → TO666HVV.js} +1 -1
  81. package/dist/cdn/{L3JSQQUK.js → UBPCKCW2.js} +1 -1
  82. package/dist/cdn/US37IXWO.js +2 -0
  83. package/dist/cdn/UZW2KV4X.js +2 -0
  84. package/dist/cdn/{2W3O3KBH.js → VFECPSKA.js} +1 -1
  85. package/dist/cdn/VLD3MVSG.js +2 -0
  86. package/dist/cdn/{GQTAE72S.js → VWV2LCNA.js} +1 -1
  87. package/dist/cdn/{R3IQ7OYN.js → WC3MDSMP.js} +1 -1
  88. package/dist/cdn/{GJP72ONW.js → WCZJXBW3.js} +1 -1
  89. package/dist/cdn/{O2H6SPV3.js → WIUFH5SJ.js} +1 -1
  90. package/dist/cdn/{YG5ZZUE4.js → WZFGZEQI.js} +1 -1
  91. package/dist/cdn/XE3DCC5D.js +2 -0
  92. package/dist/cdn/{NK474LV6.js → XEVOU7SJ.js} +1 -1
  93. package/dist/cdn/{YWWBQUH2.js → XH6RD5BO.js} +1 -1
  94. package/dist/cdn/{OW67EEOH.js → XJNEK5Q7.js} +1 -1
  95. package/dist/cdn/XK3WIW4R.js +2 -0
  96. package/dist/cdn/{JD6QT6IC.js → XOM3GLYF.js} +1 -1
  97. package/dist/cdn/YGZICQBT.js +2 -0
  98. package/dist/cdn/{WRP5SUB4.js → YP7T6NKR.js} +1 -1
  99. package/dist/cdn/{47EZWWY7.js → YYKKXL62.js} +1 -1
  100. package/dist/cdn/Z5OZYZYV.js +2 -0
  101. package/dist/cdn/{CB3UEA5V.js → ZGSAH7Z7.js} +1 -1
  102. package/dist/cdn/assets/portal-item-preview/t9n/messages.en.json +1 -0
  103. package/dist/cdn/assets/portal-item-type/t9n/messages.en.json +1 -1
  104. package/dist/cdn/index.js +1 -1
  105. package/dist/cdn/main.css +1 -1
  106. package/dist/chunks/FieldIcons.js +24 -0
  107. package/dist/chunks/item.js +50 -50
  108. package/dist/chunks/layers.js +196 -0
  109. package/dist/chunks/portal-browser.js +49 -46
  110. package/dist/chunks/portal-item-preview-sublayer.js +214 -0
  111. package/dist/chunks/portal2.js +23 -23
  112. package/dist/chunks/services.js +4 -4
  113. package/dist/chunks/user2.js +10 -10
  114. package/dist/chunks/utils4.js +94 -95
  115. package/dist/components/arcgis-portal-browser/customElement.d.ts +3 -0
  116. package/dist/components/arcgis-portal-browser/customElement.js +3 -2
  117. package/dist/components/arcgis-portal-browser/index.js +1 -0
  118. package/dist/components/arcgis-portal-field-delete/customElement.js +79 -95
  119. package/dist/components/arcgis-portal-group-browser/customElement.js +9 -7
  120. package/dist/components/arcgis-portal-group-browser-preview/customElement.js +40 -31
  121. package/dist/components/arcgis-portal-group-browser-preview/index.js +1 -0
  122. package/dist/components/arcgis-portal-item-badges/customElement.js +4 -4
  123. package/dist/components/arcgis-portal-item-card-sublayer-select/customElement.js +101 -272
  124. package/dist/components/arcgis-portal-item-favorite/customElement.js +42 -29
  125. package/dist/components/arcgis-portal-item-preview/customElement.d.ts +263 -0
  126. package/dist/components/arcgis-portal-item-preview/customElement.js +137 -0
  127. package/dist/components/arcgis-portal-item-preview/index.d.ts +1 -0
  128. package/dist/components/arcgis-portal-item-preview/index.js +20 -0
  129. package/dist/components/arcgis-portal-item-preview/types.d.ts +14 -0
  130. package/dist/components/arcgis-portal-item-preview-copy/customElement.d.ts +215 -0
  131. package/dist/components/arcgis-portal-item-preview-copy/customElement.js +46 -0
  132. package/dist/components/arcgis-portal-item-preview-copy/index.d.ts +1 -0
  133. package/dist/components/arcgis-portal-item-preview-copy/index.js +5 -0
  134. package/dist/components/arcgis-portal-item-preview-field/customElement.d.ts +216 -0
  135. package/dist/components/arcgis-portal-item-preview-field/customElement.js +34 -0
  136. package/dist/components/arcgis-portal-item-preview-field/index.d.ts +1 -0
  137. package/dist/components/arcgis-portal-item-preview-field/index.js +6 -0
  138. package/dist/components/arcgis-portal-item-preview-sublayer/customElement.d.ts +216 -0
  139. package/dist/components/arcgis-portal-item-preview-sublayer/customElement.js +15 -0
  140. package/dist/components/arcgis-portal-item-preview-sublayer/index.d.ts +1 -0
  141. package/dist/components/arcgis-portal-item-preview-sublayer/index.js +11 -0
  142. package/dist/components/arcgis-portal-item-type/customElement.d.ts +16 -14
  143. package/dist/components/arcgis-portal-item-type/customElement.js +25 -28
  144. package/dist/components/arcgis-portal-navigation/index.js +4 -4
  145. package/dist/components/arcgis-portal-preview-panel/customElement.d.ts +40 -0
  146. package/dist/components/arcgis-portal-preview-panel/customElement.js +40 -0
  147. package/dist/components/arcgis-portal-preview-panel/index.d.ts +1 -0
  148. package/dist/components/arcgis-portal-preview-panel/index.js +1 -0
  149. package/dist/components/arcgis-portal-user-avatar/customElement.d.ts +2 -3
  150. package/dist/components/arcgis-portal-user-avatar/customElement.js +15 -16
  151. package/dist/components/arcgis-portal-user-popup/customElement.d.ts +3 -6
  152. package/dist/components/arcgis-portal-user-popup/customElement.js +128 -112
  153. package/dist/docs/api.json +1 -1
  154. package/dist/docs/docs.json +1 -1
  155. package/dist/docs/vscode.css-custom-data.json +1 -1
  156. package/dist/docs/vscode.html-custom-data.json +1 -1
  157. package/dist/docs/web-types.json +1 -1
  158. package/dist/index.d.ts +32 -0
  159. package/dist/loader.js +5 -0
  160. package/dist/types/item.d.ts +6 -0
  161. package/dist/types/layer.d.ts +27 -0
  162. package/dist/types/lumina.d.ts +32 -0
  163. package/dist/types/preact.d.ts +37 -0
  164. package/dist/types/react.d.ts +42 -0
  165. package/dist/types/services.d.ts +1 -0
  166. package/dist/types/stencil.d.ts +32 -0
  167. package/dist/types/user.d.ts +14 -10
  168. package/package.json +8 -7
  169. package/dist/cdn/6P7WYZZS.js +0 -2
  170. package/dist/cdn/7DBQRL5U.js +0 -2
  171. package/dist/cdn/AEJPC2Q5.js +0 -2
  172. package/dist/cdn/DOU2QZP5.js +0 -2
  173. package/dist/cdn/F5T3DTCW.js +0 -2
  174. package/dist/cdn/FCGMSMBW.js +0 -2
  175. package/dist/cdn/FICE62PO.js +0 -2
  176. package/dist/cdn/GW6SI25C.js +0 -2
  177. package/dist/cdn/HNVQMOOU.js +0 -2
  178. package/dist/cdn/IMFTTYIV.js +0 -2
  179. package/dist/cdn/ITGOCCZZ.js +0 -2
  180. package/dist/cdn/JTSFNRWR.js +0 -2
  181. package/dist/cdn/K6NEES4K.js +0 -2
  182. package/dist/cdn/K6YTIB74.js +0 -2
  183. package/dist/cdn/L3A3L7FY.js +0 -2
  184. package/dist/cdn/LGRW3SGR.js +0 -2
  185. package/dist/cdn/MDOMTVQY.js +0 -2
  186. package/dist/cdn/MLTZSPZQ.js +0 -2
  187. package/dist/cdn/NNILBERZ.js +0 -2
  188. package/dist/cdn/NO5VHQVY.js +0 -2
  189. package/dist/cdn/NYOXMT6S.js +0 -2
  190. package/dist/cdn/OHEJPZ35.js +0 -2
  191. package/dist/cdn/P4XDOAK2.js +0 -2
  192. package/dist/cdn/PKA745KL.js +0 -2
  193. package/dist/cdn/SCZ2GY3E.js +0 -2
  194. package/dist/cdn/TOVMYLXB.js +0 -2
  195. package/dist/cdn/TRPOPI34.js +0 -2
  196. package/dist/cdn/UPVGSEFX.js +0 -2
  197. package/dist/cdn/W5AV2JMK.js +0 -2
  198. package/dist/cdn/X4EHFUD4.js +0 -2
  199. package/dist/cdn/YF4HTCBB.js +0 -2
  200. package/dist/cdn/YMVVEC2R.js +0 -2
  201. package/dist/cdn/Z55T6COF.js +0 -2
  202. package/dist/cdn/ZJQ55GQG.js +0 -2
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
+ import{a as Z}from"./5VFGR7LA.js";import{b as Y}from"./WIUFH5SJ.js";import a from"./CJ4S56BE.js";import"./4KTRAA2J.js";import{a as N}from"./4VLEUN7I.js";import"./KV4ZZSNW.js";import"./FN2QMDEW.js";import{a as J}from"./B343BOVA.js";import"./G7DJPREL.js";import"./GC4BV7IZ.js";import{L as A,M as S,N as R,R as x,T as j,h as k,j as g,o as I,q as D,r as M,v as F}from"./AM3UTQWH.js";import"./KHKREBVZ.js";import"./5PV2GUZW.js";export default $arcgis.t(([le,be,we,Ie,T,de,v,pe,fe,C,K,E,ee,{i:B,k:W,l:q,m:z,n:G,o:V,p:U,q:H,r:Q,s:X}])=>{var P=(i=>(i.expression="expression/",i))(P||{});function w(i){return i!=null}function se(i,e,s){let t=e.fieldName;if(t.includes(P.expression)){let r=s.get(t);return r?.title?r.title:t}else return ee.supportsFieldConfiguration(i)&&i.getFieldConfiguration(t)?i.getFieldAlias(t)||t:e.label||t}function te(i,e,s){let t="";if(/^raster.(?:item|service)pixelvalue/iu.test(i))t="number";else if(e.has(i)){let r=e.get(i);t=r.type?r.type.toLowerCase():""}else if(s.has(i)){let r=s.get(i);t=r.returnType?r.returnType.toLowerCase():""}else t="number";return t}async function ie(i){return new Map((await me(i)).filter(e=>e.visible).map(e=>[e.name,e]))}function re(i){let e=new Map;return i?.expressionInfos&&i.expressionInfos.forEach(s=>{let t=`${P.expression}${s.name}`;e.set(t,s)}),e}async function me(i){return await new Promise((e,s)=>{switch(i.type){case"feature":case"ogc-feature":case"stream":e(i.fields);break;case"sublayer":{let t=i,r=t?.layer;r?.portalItem&&r.url.includes("https://demographics")&&r.url.includes(".arcgis.com")?r.portalItem?.fetchData().then(a=>{if(a?.thematicGroup){let n=new Map(t.fields.map(o=>[o.name,o])),c=a.thematicGroup.fieldNames,p=[];c.forEach(o=>{n.has(o)&&p.push(n.get(o))}),e(p)}else e(t.fields)}).catch(a=>{s(new Error(a))}):e(t.fields);break}case"imagery":case"imagery-tile":case"wcs":e(i.rasterFields);break;default:e("fields"in i?i.fields??[]:[])}})}function d(i,e){return!i||!e?!1:i.toLocaleLowerCase()===e.toLocaleLowerCase()}async function ae(i,e,s,t){if(!s)return!1;let r=["feature","oriented-imagery"].includes(e.type),a=t?.item??e.portalItem,n=e.sourceJSON;if(!r||!a||!a.portal.user||!z(a)||q(a)||G(a)||V(n)||a.portal.isPortal&&W(a)||["oid","global-id","geometry"].includes(s.type)||await ue(e,s.name,t))return!1;let c=e.sourceJSON.geometryProperties,p=c?.shapeLengthFieldName,o=c?.shapeAreaFieldName;if(d(p,s.name)||d(o,s.name))return!1;let l=e.editFieldsInfo;if(l&&(d(l.creationDateField,s.name)||d(l.creatorField,s.name)||d(l.editDateField,s.name)||d(l.editorField,s.name))||d(e.objectIdField,s.name)||d(e.displayField,s.name)||d(e.typeIdField,s.name)||d(e.subtypeField,s.name)||e.timeInfo&&(d(e.timeInfo.startField,s.name)||d(e.timeInfo.endField,s.name)||d(e.timeInfo.trackIdField,s.name)))return!1;if(!t?.ignoreLayerRenderer&&e.featureReduction){let f=new Set;if(await v.collectFeatureReductionFields(f,e,e.featureReduction),Array.from(f).some(_=>d(_,s.name)))return!1}if(!t?.ignoreLayerRenderer&&(await v.getRendererFields(e.renderer,e.fieldsIndex)).some(f=>d(f,s.name)))return!1;if(!t?.ignoreLayerLabelingInfo){let f=e.labelingInfo?.map(_=>_.labelExpressionInfo?.expression);if(f&&((await v.getExpressionFields(e,f)).some(_=>d(_,s.name))||await ne(e,s,"layer")))return!1}if(!t?.ignoreLayerDefinitionExpression&&e.definitionExpression&&(await E.parseWhereClause(e.definitionExpression,e.fieldsIndex)).fieldNames.some(f=>d(f,s.name))||await ge(e,s,t)||await _e(e,s))return!1;if(await ye(e,s))return await Promise.resolve(!1);if(await ve(e,s))return await Promise.resolve(!1);if(he(i,e,s)||e.relationships?.map(f=>f.keyField)?.some(f=>d(f,s.name)))return!1;let u=B(a,a.portal.user),b=t?.userItemInfo?.userGroups??await U(e)??[],h=t?.userItemInfo?.itemGroups??await H(e)??[],y=X(b,h);if(!u&&!y)return!1;let m=t?.userItemInfo?.relatedItems??await Q(a.id,a.portal,{relationshipType:"Service2Service"});return!(m?.data?.relatedItems&&m.data.relatedItems.some(f=>["WMTS","Map Service","Vector Tile Service"].includes(f.type)))}async function ue(i,e,s){let t=`${i.url}/${i.layerId}/fieldGroups`;try{let r=s?.userItemInfo&&"fieldGroups"in s.userItemInfo?s.userItemInfo.fieldGroups:(await K(t,{query:{f:"json"},responseType:"json"}))?.data?.fieldGroups;return r?r.some(a=>a.fields.some(n=>d(n,e))):!1}catch{return!1}}function he(i,e,s){if(!i)return!1;let t=i.map?.applicationProperties?.viewing?.search;if(t){let r=t.layers?.find(a=>a.id===e.id);if(r){let a=r?.field?.name;if(a)return d(a,s.name)}}return!1}async function ne(i,e,s){let t=s==="layer"?i.labelingInfo?.filter(n=>w(n.where)):i.sourceJSON?.drawingInfo?.labelingInfo?.filter(n=>w(n.where));if(!t?.length)return!1;let r=[...await Promise.all(t.map(async n=>await E.parseWhereClause(n.where,i.fieldsIndex)))],a=!1;for(let n=0;n<r.length;n++){let c=r[n].fieldNames?.some(p=>d(p,e.name));if(!a&&c){a=!0;break}}return await Promise.resolve(a)}async function ge(i,e,s){let t=i.portalItem;if(!t)return!1;let r=`${N(t.portal)}content/items/${t.id}/data`,a=(s?.userItemInfo?.itemData??await K(r,{query:{f:"json"},responseType:"json"}))?.data;if(!a)return!1;if(a?.layers){let n=a.layers.find(l=>l.id===i.layerId),c=n?.layerDefinition?.drawingInfo?.renderer,p=n?.layerDefinition?.featureReduction,o=n?.layerDefinition?.definitionExpression;if(!c&&!p&&!o)return!1;if(!s?.ignoreItemRenderer&&c){let l=C.fromJSON(c);if((await v.getRendererFields(l,i.fieldsIndex)).some(u=>d(u,e.name)))return!0}if(!s?.ignoreItemFeatureReduction&&p&&await oe(i,e,p)||o&&(await E.parseWhereClause(o,i.fieldsIndex)).fieldNames.some(l=>d(l,e.name)))return!0}return!1}async function _e(i,e){let s=i.sourceJSON,t=s?.drawingInfo?.renderer,r=s?.featureReduction;if(!t&&!r)return!1;if(t){let a=C.fromJSON(t);if((await v.getRendererFields(a,i.fieldsIndex)).some(n=>d(n,e.name)))return!0}return!!(r&&await oe(i,e,r))}async function ye(i,e){let s=i.sourceJSON?.drawingInfo?.labelingInfo;if(!s)return await Promise.resolve(!1);let t=s?.map(r=>r.labelExpressionInfo?.expression);if(t){if((await v.getExpressionFields(i,t)).some(r=>d(r,e.name)))return await Promise.resolve(!0);if(await ne(i,e,"service"))return await Promise.resolve(!0)}return await Promise.resolve(!1)}async function ve(i,e){let s=i.sourceJSON?.definitionQuery;return s?(await E.parseWhereClause(s,i.fieldsIndex)).fieldNames.some(t=>d(t,e.name))?await Promise.resolve(!0):await Promise.resolve(!1):await Promise.resolve(!1)}async function oe(i,e,s){let t=s.type==="binning"?pe.fromJSON(s):fe.fromJSON(s),r=new Set;return await v.collectFeatureReductionFields(r,i,t),!!Array.from(r).some(a=>d(a,e.name))}var Fe=["esrignss_speed","esrignss_direction","esrisnsr_azimuth","esrignss_positionsourcetype","esrignss_receiver","esrignss_h_rms","esrignss_v_rms","esrignss_latitude","esrignss_longitude","esrignss_altitude","esrignss_pdop","esrignss_hdop","esrignss_vdop","esrignss_fixtype","esrignss_correctionage","esrignss_stationid","esrignss_numsats","esrignss_fixdatetime","esrignss_avg_h_rms","esrignss_avg_v_rms","esrignss_avg_positions","esrignss_h_stddev","esrignss_correction_source_name","esrignss_correction_source_type","esrignss_custom_attributes","esrignss_h_95_status","esrignss_ntrip_mount_point","esrignss_antenna_height","esrignss_orthometric_height","esrignss_profile_has_hor_xform","esrignss_profile_hor_xform","esrignss_receiver_gcs","esrignss_receiver_gcs_wkid","esrignss_receiver_geoid","esrignss_receiver_ref_epoch","esrisnsr_tilt_azimuth_accuracy","esrisnsr_tilt_azimuth","esrisnsr_tilt_angle_accuracy","esrisnsr_tilt_angle","esrignss_tilt_compensated","esrignss_cp1_latitude","esrignss_cp1_longitude","esrignss_cp1_altitude","esrignss_cp1_h_rms","esrignss_cp1_v_rms","esrignss_cp1_fixdatetime","esrignss_cp1_fixtype","esrignss_cp1_corr_age","esrignss_cp1_stationid","esrignss_cp1_numsats","esrignss_cp1_pdop","esrignss_cp1_hdop","esrignss_cp1_vdop","esrignss_cp1_avg_h_rms","esrignss_cp1_avg_v_rms","esrignss_cp1_avg_positions","esrignss_cp1_h_stddev","esrisnsr_cp1_slope_dist","esrisnsr_cp1_inclination","esrisnsr_cp1_azimuth","esrignss_cp2_latitude","esrignss_cp2_longitude","esrignss_cp2_altitude","esrignss_cp2_h_rms","esrignss_cp2_v_rms","esrignss_cp2_fixdatetime","esrignss_cp2_fixtype","esrignss_cp2_corr_age","esrignss_cp2_stationid","esrignss_cp2_numsats","esrignss_cp2_pdop","esrignss_cp2_hdop","esrignss_cp2_vdop","esrignss_cp2_avg_h_rms","esrignss_cp2_avg_v_rms","esrignss_cp2_avg_positions","esrignss_cp2_h_stddev","esrisnsr_cp2_slope_dist","esrisnsr_cp2_inclination","esrisnsr_cp2_azimuth","esrisnsr_offset_method","esrisnsr_offset_device","esrisnsr_offset_laser_height","esrisnsr_offset_laser_target_ht","esrisnsr_offset_mag_var","esrignss_worst_h_rms","esrignss_worst_v_rms","esrignss_worst_fixtype","esrignss_manual_locations"],Ne=k`.dialog{--calcite-dialog-max-size-y: 60%}.dialog-content-wrapper{position:relative;min-height:100px}.hide-overflow{overflow:hidden}.field-icons{padding:0 var(--calcite-space-lg);display:flex;align-items:center}.warning{border-bottom:var(--calcite-border-width-sm) solid var(--calcite-color-border-3);margin-bottom:var(--calcite-space-md)}.warning-message{font-size:var(--calcite-font-size--1);font-weight:var(--calcite-font-weight-bold)}.loader-container{position:absolute;height:100%;width:100%;top:0;right:0;display:none;z-index:40;overflow:hidden;background:#fffffff2;padding:0}.active{display:flex;flex-direction:column;align-items:center;justify-content:center}.loader{padding:0}.loader-text{font-weight:var(--calcite-font-weight-medium);text-align:center;margin-right:6.25rem;margin-left:6.25rem}`,L=class extends R{constructor(){super(...arguments),this.arcadeExpMap=new Map,this.cancelNode=A(),this.dialogNode=A(),this.layerFields=[],this.layerFieldsMap=new Map,this.messages=J({blocking:!0}),this.deleteInProgress=!1,this.fieldsAreDeletable=!1,this._propWatcherTask=new Y(this,{task:async([e,s])=>{let t=w(e)&&w(s);if(w(e)||I("error",this,D("layer")),w(s)||I("error",this,D("fieldNames")),!t)throw new Error("Required properties are missing");this._propWatcherTask.autoRun=!1,await this.processProps()},args:()=>[this.layer,this.fieldNames]}),this.arcgisBeforeModalClose=F(),this.arcgisClose=F(),this.arcgisBeforeDelete=F(),this.arcgisFieldsDeleted=F()}static{this.properties={config:0,fieldNames:0,layer:0,mapView:0,options:0}}static{this.styles=Ne}async processProps(){let{layer:e,mapView:s,fieldNames:t}=this;if(!e||!t){this.fieldsAreDeletable=!1;return}e.loaded||await e.load(),this.layerFields=e.fields.filter(a=>t.includes(a.name));let r=t.some(a=>!e.fields.find(n=>n.name===a));if(!this.layerFields?.length||r)this.fieldsAreDeletable=!1;else{let a=await Promise.all(this.layerFields.map(async n=>await ae(s,e,n,this.options)));if(this.fieldsAreDeletable=a.every(n=>n),!this.fieldsAreDeletable)return}if(this.layerFieldsMap=await ie(e),this.options?.ignorePopupTemplate||(this.arcadeExpMap=re(e.popupTemplate)),this.portal=e.portalItem?.portal??this.options?.portal,this.item=e.portalItem??this.options?.item,!this.item){this.fieldsAreDeletable=!1;return}await Ie.getCredential(this.item.url.replace("rest/services","rest/admin/services"))}getFieldLabel(e){let{layer:s,arcadeExpMap:t}=this;if(this.options?.ignorePopupTemplate)return this.getFieldDisplayNameFromLayerFields(e);{let r=(s.popupTemplate??s.createPopupTemplate())?.fieldInfos?.find(a=>a.fieldName===e);return r?se(s,r,t):this.getFieldDisplayNameFromLayerFields(e)}}getFieldDisplayNameFromLayerFields(e){let{layer:s}=this,t=this.layerFieldsMap.get(e);return de.supportsFieldConfiguration(s)?s.getFieldAlias(e):t.alias??t.name}async deleteFields(){let{layer:e,fieldNames:s}=this,t=`${e.url.replace("/rest/services","/rest/admin/services")}/${e.layerId}/deleteFromDefinition`,r={fields:s.map(n=>({name:n}))},a={deleteFromDefinition:JSON.stringify(r)};await T(t,{query:{...a,f:"json",async:!1},method:"post",responseType:"json"}).then(async n=>{if(n.data?.success){let c=`${e.url}/${e.layerId}`;s.forEach(o=>{e.type==="feature"&&e.floorInfo?.floorField===o&&(e.floorInfo=null)});let p=await T(c,{query:{f:"json"},responseType:"json"});if(p){let o=p.data;this.currentLayerInfo=p.data,o&&(this.updateTypesAndTemplatesOnLayer(),s.forEach(l=>{o.templates?.length?o.templates.forEach(u=>delete u.prototype.attributes[l]):o.types?.forEach(u=>{u.templates.forEach(b=>delete b.prototype.attributes[l])})}),this.updateFeatureService(o))}else this.handleError()}else this.handleError()},()=>this.handleError())}updateTypesAndTemplatesOnLayer(){let{currentLayerInfo:e}=this,s=e;if(s.templates?.length){let t=this.updateTemplatesList(s.templates);s.templates=t}else if(s.types){let t=s.types;s.types=[],t.forEach(r=>{r.templates=this.updateTemplatesList(r.templates),this.addType(s,r)})}}updateTemplatesList(e){let{currentLayerInfo:s,messages:t}=this,r=[];return(e??[]).forEach(a=>{let n=new be;n.description=a.description??"",n.name=a.name||t.newFeature,n.drawingTool=a.drawingTool||"point";let c={};s.fields.forEach(o=>{let l=!1;for(let u=0;u<a.prototype.attributes.length;u++)if(a.prototype.attributes[u]===o.name){l=!0,c[o.name]=a.prototype.attributes[o.name];break}!l&&o.editable&&!Fe.includes(o.name)&&(c[o.name]=o.defaultValue||null)});let p=new we({attributes:c});n.prototype=p,r.push(n)}),r}addType(e,s){e.types?e.types.some(t=>t.id===s.id)||e.types.push(s):e.types=[s]}async updateFeatureService(e){let{layer:s,fieldNames:t}=this,r={templates:e.templates,types:e.types},a=`${s.url.replace("/rest/services","/rest/admin/services")}/${s.layerId}/updateDefinition`,n={f:"json",updateDefinition:JSON.stringify(r)};await T(a,{query:{...n,f:"json"},method:"post",responseType:"json"}).then(async c=>{if(c.data?.success){let p=`${N(this.portal)}content/items/${this.item.id}/data`;if(this.options?.ignorePopupTemplate||t.forEach(o=>{s.popupTemplate?.fieldInfos&&(s.popupTemplate.fieldInfos=s.popupTemplate.fieldInfos.filter(l=>l.fieldName!==o)),s.popupTemplate?.content?.forEach((l,u)=>{l.type==="fields"&&l.fieldInfos&&((s.popupTemplate?.content)[u].fieldInfos=(s.popupTemplate?.content)[u].fieldInfos?.filter(b=>b.fieldName!==o))})}),s.attributeTableTemplate){let o=s.attributeTableTemplate.clone();o.elements=o.elements.filter(l=>!(l.type==="field"&&t.includes(l.fieldName))),o.orderByFields=o.orderByFields.filter(l=>!t.includes(l.field)),s.attributeTableTemplate=o}if(s.fieldConfigurations?.length){let o=le.clone(s.fieldConfigurations).filter(l=>!t.includes(l.name));s.fieldConfigurations=o}await T(p,{query:{f:"json"},responseType:"json"}).then(async o=>{let l=o.data;if(l?.layers||l?.tables){let u=s.isTable,b=u?l.tables:l.layers,h=b?.find(y=>y.id===s.layerId);if(t.forEach(y=>{h?.attributeTableInfo?.attributeTableElements&&(h.attributeTableInfo.attributeTableElements=h.attributeTableInfo.attributeTableElements.map(m=>{if(m.type==="field")return m.fieldName===y?void 0:m;if(m.type==="group"&&Array.isArray(m.attributeTableElements)){let f=m.attributeTableElements.filter(_=>!(_.type==="field"&&_.fieldName===y));return f.length?{...m,attributeTableElements:f}:void 0}return m}).filter(Boolean),h.attributeTableInfo.orderByFields=h.attributeTableInfo.orderByFields.filter(m=>m.field!==y))}),h?.layerDefinition?.fieldConfigurations&&(h.layerDefinition.fieldConfigurations=h.layerDefinition.fieldConfigurations.filter(y=>!t.includes(y.name))),h?.popupInfo){t.forEach(_=>{h.popupInfo.fieldInfos=h.popupInfo.fieldInfos.filter($=>$.fieldName!==_),h.popupInfo.popupElements?.forEach(($,O)=>{$.type==="fields"&&$.fieldInfos&&(h.popupInfo.popupElements[O].fieldInfos=h.popupInfo.popupElements[O].fieldInfos.filter(ce=>ce.fieldName!==_))})});let y=`${N(this.portal)}content/users/${this.item.owner}/items/${this.item.id}/update`,m={};u?(m.tables=b,l.layers&&(m.layers=l.layers)):(m.layers=b,l.tables&&(m.tables=l.tables));let f={f:"json",text:JSON.stringify(m)};await T(y,{query:{...f},method:"post",responseType:"json"}).then(_=>{_.data?.success?this.handleSuccess():this.handleError()},()=>this.handleError())}else this.handleSuccess()}else o.httpStatus===200&&(!o.data||JSON.stringify(o.data)==="{}")?this.handleSuccess():this.handleError()},()=>this.handleError())}},()=>this.handleError())}handleSuccess(){this.arcgisFieldsDeleted.emit(),this.dialogNode?.value&&(this.dialogNode.value.open=!1),this.options?.handleCloseOnConsumer?this.arcgisBeforeModalClose.emit("success"):this.displaySuccessAlert()}handleError(e){this.dialogNode?.value&&(this.dialogNode.value.open=!1),e?this.options?.handleCloseOnConsumer?this.arcgisBeforeModalClose.emit("read-only-error"):this.displayReadOnlyErrorAlert():this.options?.handleCloseOnConsumer?this.arcgisBeforeModalClose.emit("error"):this.displayErrorAlert()}displaySuccessAlert(){let{messages:e,fieldNames:s}=this;this.successAlertNode&&(this.successAlertNode.parentElement?.removeChild(this.successAlertNode),this.successAlertNode=void 0),this.successAlertNode=x(g`<calcite-alert .label=${s.length===1?e.fieldDeleted:e.fieldsDeleted} kind=success icon=check-circle auto-close open><div slot=message>${s.length===1?e.fieldDeleted:e.fieldsDeleted}</div></calcite-alert>`),document.body.append(this.successAlertNode)}displayErrorAlert(){let{messages:e}=this;this.errorAlertNode&&(this.errorAlertNode.parentElement?.removeChild(this.errorAlertNode),this.errorAlertNode=void 0),this.errorAlertNode=x(g`<calcite-alert .label=${e.fieldDeletionUnsuccessful} kind=danger icon=exclamation-mark-triangle auto-close open><div slot=message>${e.fieldDeletionUnsuccessful}</div></calcite-alert>`),document.body.append(this.errorAlertNode)}displayReadOnlyErrorAlert(){let{messages:e,portal:s}=this;this.errorAlertNode&&(this.errorAlertNode.parentElement?.removeChild(this.errorAlertNode),this.errorAlertNode=void 0),this.errorAlertNode=x(g`<calcite-alert .label=${e.fieldDeletionUnsuccessful} kind=danger icon=exclamation-mark-triangle auto-close auto-close-duration=slow open><div slot=title>${e.error}</div><div slot=message>${s.isPortal?e.readOnlyErrorMessageEnterprise:e.readOnlyErrorMessage}</div>${!s.isPortal&&g`<calcite-link slot=link target=_blank href=https://status.arcgis.com>${e.healthDashboard}</calcite-link>`||""}</calcite-alert>`),document.body.append(this.errorAlertNode)}render(){let{messages:e,fieldsAreDeletable:s,fieldNames:t,deleteInProgress:r}=this;return g`<calcite-dialog class="dialog" width=s open modal outside-close-disabled escape-disabled @calciteDialogClose=${()=>this.arcgisClose.emit()} .heading=${t?.length===1?e.deleteField:e.deleteFields} ${S(this.dialogNode)}>${this._propWatcherTask.render({pending:()=>g`<div class="dialog-content-wrapper hide-overflow"><div class="loader-container active"><calcite-loader class="loader" .label=${e.fields}></calcite-loader></div></div>`,error:()=>g`<div class="dialog-content-wrapper">${this.renderError()}</div>`,complete:()=>(s||(t?.length?t?.length===1?I("error",this,"Field cannot be deleted"):I("error",this,"One or more fields cannot be deleted"):I("error",this,M("fieldNames"))),s?g`<div class=${`dialog-content-wrapper ${r?"hide-overflow":""}`}>${this.renderDeleteLoader()}<calcite-label>${t.length===1?e.deletePrompt:e.deleteMultiplePrompt}</calcite-label>${this.renderFieldsPreview()}</div>${this.renderCancelButton()}${this.renderDeleteButton()}`:g`<div class="dialog-content-wrapper">${this.renderError()}</div>`)})}</calcite-dialog>`}renderError(){let{messages:e}=this;return g`<div class="loader-container active"><div class="loader-text">${e.errorOccurred}</div></div>`}renderDeleteLoader(){let{messages:e,fieldNames:s,deleteInProgress:t}=this;return g`<div class=${`loader-container ${t?"active":""}`}><calcite-loader class="loader" .label=${s.length===1?e.deletingField:e.deletingFields} .hidden=${!t}></calcite-loader><div class="loader-text">${s.length===1?e.deletingField:e.deletingFields}</div></div>`}renderFieldsPreview(){let{fieldNames:e,layerFields:s,layerFieldsMap:t,arcadeExpMap:r,messages:a}=this;return g`<calcite-list .label=${a.fields}>${e.map(n=>{let c=s.find(p=>p.name===n);return g`<calcite-list-item .label=${this.getFieldLabel(n)} .description=${`{${n}}`} .value=${n} .disabled=${!c.editable}><div slot=actions-end class="field-icons">${Z({fieldType:te(n,t,r)})}</div></calcite-list-item>`})}</calcite-list>`}renderCancelButton(){let{messages:e}=this;return g`<calcite-button @click=${()=>this.dialogNode.value.open=!1} slot=footer-end appearance=outline ${S(this.cancelNode)}>${e.cancel}</calcite-button>`}renderDeleteButton(){let{messages:e,fieldNames:s}=this;return g`<calcite-button kind=danger slot=footer-end @click=${async t=>{let{portal:r}=this;t.currentTarget.disabled=!0,this.cancelNode.value.disabled=!0,this.dialogNode.value.closeDisabled=!0,r.sourceJSON?.isReadOnly?this.handleError(!0):(this.deleteInProgress=!0,this.requestUpdate(),this.arcgisBeforeDelete.emit(),await this.deleteFields())}}>${s.length===1?e.deleteField:e.deleteFieldsWithNumber.replace("${number}",`${s.length}`)}</calcite-button>`}};j("arcgis-portal-field-delete",L);return L},"core/lang","layers/support/FeatureTemplate","Graphic","identity/IdentityManager","request","applications/PortalApp/layerUtils","layers/support/fieldUtils","layers/support/FeatureReductionBinning","layers/support/FeatureReductionCluster","renderers/support/jsonUtils","request","core/sql","applications/PortalApp/layerUtils",a)
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
+ import c from"./GBXFX37Y.js";import"./IX4WEZZ2.js";import b from"./5CEFJTG4.js";import"./NHVPNSNH.js";import"./5VFGR7LA.js";import"./WIUFH5SJ.js";import"./VDXESPJK.js";import"./DAAON2UO.js";import"./4KTRAA2J.js";import a from"./OQ2JULON.js";import"./4VLEUN7I.js";import"./KV4ZZSNW.js";import"./FN2QMDEW.js";import"./B343BOVA.js";import"./G7DJPREL.js";import"./GC4BV7IZ.js";import"./AM3UTQWH.js";import"./KHKREBVZ.js";import"./5PV2GUZW.js";export default $arcgis.t(([,,,{d:r}])=>{return r},"core/promiseUtils",a,b,c)
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
+ import h from"./QRHXMIMW.js";import"./SRWFOV5W.js";import g from"./OHAQPQAP.js";import"./WFPUAEJQ.js";import f from"./7DAB2CEU.js";import"./4QYVBXZT.js";import e from"./QMIVFHQE.js";import d from"./PJZZIITX.js";import"./JLT5GCLY.js";import"./VDXESPJK.js";import"./ULGME5RT.js";import"./DAAON2UO.js";import c from"./365ICWHN.js";import b from"./TIPQ2ZWK.js";import"./DV57AOBF.js";import"./NLFBHNSX.js";import"./4KTRAA2J.js";import a from"./OQ2JULON.js";import"./4VLEUN7I.js";import"./KV4ZZSNW.js";import"./FN2QMDEW.js";import"./B343BOVA.js";import"./G7DJPREL.js";import"./GC4BV7IZ.js";import"./AM3UTQWH.js";import"./KHKREBVZ.js";import"./5PV2GUZW.js";export default $arcgis.t(([,,,,,,,a])=>{return a},a,b,c,d,e,f,g,h)
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
+ import e from"./IUIFCQQU.js";import{f as T,g as z}from"./WFPUAEJQ.js";import{a as E}from"./JLT5GCLY.js";import{b as B}from"./WIUFH5SJ.js";import{a as q}from"./CMNTOT5D.js";import{a as I}from"./VDXESPJK.js";import"./DAAON2UO.js";import d from"./365ICWHN.js";import c from"./TIPQ2ZWK.js";import{c as U}from"./4KTRAA2J.js";import a from"./OQ2JULON.js";import{a as w}from"./4VLEUN7I.js";import{c as N}from"./KV4ZZSNW.js";import"./FN2QMDEW.js";import{a as L}from"./B343BOVA.js";import"./G7DJPREL.js";import"./GC4BV7IZ.js";import{L as g,M as b,N as A,O as $,P as R,T as C,h as P,j as u,o as f,v}from"./AM3UTQWH.js";import"./KHKREBVZ.js";import"./5PV2GUZW.js";export default $arcgis.t(([{isAbortError:F},{a:k,d:_},,{a:y},M])=>{async function j(l,e,o,r){let t=l.owner??"";if(U(l)==="public_authoritative"){let s=await M(l,o,e,r);if(s){let{description:i,name:n,thumbnail:p,url:a}=s;return{description:i?I(i):"",fullName:n,username:t,thumbnail:p,id:e.id??"",url:a}}}return await y(t,e,r)}var J=P`:host{display:flex}.button{display:flex;align-items:center;max-width:100%;cursor:pointer;white-space:normal;border-style:none;padding:0;font-size:.75rem;color:var(--calcite-color-text-2);outline:2px solid transparent;outline-offset:2px;transition-property:all;outline-color:transparent;background:transparent;font-family:inherit;line-height:1.5;&:focus{outline:2px solid var(--calcite-color-brand);outline-offset:2px}}.button--outline{box-sizing:border-box;width:100%;padding:.5rem .75rem;transition-property:all;border:1px solid var(--calcite-color-border-3);&:hover{box-shadow:inset 0 0 0 1px var(--calcite-color-foreground-3)}}.name{overflow:hidden;white-space:nowrap;margin-inline-start:.5rem;text-overflow:ellipsis}.popover__wrapper{background-color:var(--calcite-color-foreground-1);width:min(32rem,80vw)}.popover__header{padding:1.25rem 1rem}.popover__avatar{max-width:100%}.popover__content{padding:.5rem 1rem 1.25rem}.popover__description{margin:0;overflow:auto;padding:0;padding-bottom:1rem;font-size:.875rem;color:var(--calcite-color-text-2);max-height:21.25rem}.popover__fade{position:relative;z-index:10;margin-bottom:.25rem;display:block;height:1rem;width:100%;background:linear-gradient(to bottom,transparent,var(--calcite-color-foreground-1) 100%);margin-top:-1rem}.popover__buttons{display:grid;grid-auto-flow:column;grid-gap:.5rem}.popover__buttons--no-description{padding-top:1rem}.popover__button{min-width:0px}.popover__loader{--calcite-loader-padding: 0}`;async function V(l,e,o){let r=o?"https://www.arcgis.com/sharing/rest/":w(e),t=o?{disableIdentityLookup:!0,addTokenManually:!1}:{};return await k({requester:async()=>await _({url:`${r}community/groups`,portal:e,params:{q:`(owner:"${l}")`,num:100},options:t}),key:"userGroups",id:`${r}${l}`})}async function Q(l,e,o){let r=o?"https://www.arcgis.com/sharing/rest/":w(e),t=o?{disableIdentityLookup:!0,addTokenManually:!1}:{};return await k({requester:async()=>(await _({url:`${r}search`,portal:e,params:{q:`(owner:"${l}") -typekeywords:"recyclebin"`,num:1},options:t})).total,key:"userItemsTotal",id:`${r}${l}`})}function G({baseUrl:l,user:e,type:o}){let r=z(l),t=encodeURIComponent(e.username||"");return t?`${r}/${o}.html?user=${t}`:`${r}/${o}.html`}var x=class extends A{constructor(){super(...arguments),this.messages=L({blocking:!0}),this.buttonRef=g(),this.popoverRef=g(),this.identityTask=new B(this,{args:()=>[this.item,this.user,this.username,this.fullName,this.portal,this.checkOnline,this.messages._lang],task:async([e,o,r,t,s,i,n],{signal:p})=>{if(!s||!n||o)return;let a=e?await j(e,s,n,i):r?await y(r,s,i):void 0;return p.throwIfAborted(),a&&!a.fullName&&t?{...a,fullName:t}:a},onComplete:e=>{this.itemUserInfo=e},onError:e=>{F(e)||f("error",this,"Unable to load the item owner.",{detail:{error:e}})}}),this.isPopoverOpen=!1,this.scale="m",this.showAvatar=!0,this.showName=!0,this.showUsername=!1,this.appearance="transparent",this.arcgisUserPopupInternalUIAction=v(),this.arcgisUserPopupClose=v()}static{this.properties={itemUserInfo:16,groups:16,total:16,isPopoverOpen:16,user:0,username:1,fullName:1,item:0,scale:3,portal:0,baseUrl:1,underline:5,showAvatar:5,showName:5,showUsername:5,wrap:5,appearance:1,zIndex:9,avatarAriaHidden:5,checkOnline:5}}static{this.styles=J}async setFocus(){this.buttonRef.value?.focus()}async openPopup(){this.buttonRef.value?.click()}connectedCallback(){super.connectedCallback(),this.hasUpdated&&this.identityTask.run()}disconnectedCallback(){super.disconnectedCallback(),this.identityTask.abort(),this.detailsRequest?.abort()}willUpdate(e){(e.has("item")||e.has("user")||e.has("username")||e.has("fullName")||e.has("portal")||e.has("checkOnline"))&&(this.detailsRequest?.abort(),this.itemUserInfo=void 0,this.groups=void 0,this.total=void 0,this.isPopoverOpen=!1)}updated(e){e.has("isPopoverOpen")&&this.isPopoverOpen&&this.setPopoverOpen(!0)}get resolvedBaseUrl(){return this.baseUrl||N({portal:this.portal})}async fetchItemsAndGroups(){let{user:e,itemUserInfo:o,item:r,portal:t,username:s,checkOnline:i}=this,n=s||e?.username||r?.owner||o?.username;if(!n||!t)return;this.detailsRequest?.abort();let p=new AbortController;this.detailsRequest=p;let{signal:a}=p;try{let m=this.groups??await V(n,t,i);a.throwIfAborted();let c=await Q(n,t,i);a.throwIfAborted(),this.groups=m,this.total=c}catch(m){!a.aborted&&!F(m)&&f("error",this,"Unable to load the owner's groups and items.",{detail:{error:m}})}}setPopoverOpen(e){requestAnimationFrame(()=>{this.popoverRef.value&&(this.popoverRef.value.open=e)})}openLink(e,o){e.preventDefault(),window.open(o,"_blank")}renderOrgButtons(e){let{messages:o}=this,r=("url"in e&&typeof e.url=="string"&&e.url||this.resolvedBaseUrl).replace(/\/$/u,"");return u`<calcite-button appearance=outline-fill kind=neutral .href=${r} target=_blank @click=${t=>this.openLink(t,r)}>${o.homepage}</calcite-button><calcite-button appearance=outline-fill kind=neutral .href=${`${r}/gallery.html`} target=_blank @click=${t=>this.openLink(t,`${r}/gallery.html`)}>${o.gallery}</calcite-button>`}renderUserButtons(e){let{total:o,groups:r,messages:t}=this,s=e.username||"";if(typeof o!="number"||!r)return u`<calcite-loader .label=${t.loadingUserInformation} scale=s class="popover__loader"></calcite-loader>`;let i=G({baseUrl:this.resolvedBaseUrl,user:{username:s},type:"groups"}),n=G({baseUrl:this.resolvedBaseUrl,user:{username:s},type:"content"}),p=`${this.resolvedBaseUrl.replace(/\/$/u,"")}/user.html?user=${encodeURIComponent(s)}`;return u`${!!r.total&&u`<calcite-button class="popover__button" appearance=outline-fill kind=neutral .href=${i} target=_blank @click=${a=>{this.openLink(a,i),this.arcgisUserPopupInternalUIAction.emit({category:"profile popup",action:"view all groups"})}}>${t.groups.replace("${number}",new Intl.NumberFormat(t._lang).format(r.total))}</calcite-button>`||""}${!!o&&u`<calcite-button class="popover__button" appearance=outline-fill kind=neutral .href=${n} target=_blank @click=${a=>{this.openLink(a,n),this.arcgisUserPopupInternalUIAction.emit({category:"profile popup",action:"view all content"})}}>${t.items.replace("${number}",new Intl.NumberFormat(t._lang).format(o))}</calcite-button>`||""}<calcite-button class="popover__button" appearance=outline-fill kind=neutral .href=${p} target=_blank @click=${a=>{this.openLink(a,p),this.arcgisUserPopupInternalUIAction.emit({category:"profile popup",action:"view profile"})}}>${t.profile}</calcite-button>`}render(){let{user:e,itemUserInfo:o,portal:r,item:t,appearance:s,scale:i,isPopoverOpen:n,showName:p,showUsername:a,messages:m}=this,c=e||o;if(!m._lang||!c)return u`<arcgis-portal-user-avatar scale=s show-name .checkOnline=${this.checkOnline}></arcgis-portal-user-avatar>`;let O=t&&U(t)==="public_authoritative",h=c.username||"",d=T(c.description||"")||"",H=E(c,m._lang),S=O?m.itemManagedBy.replace("${username}",h):h;return u`<button class=${$({button:!0,"button--outline":s==="outline"})} @click=${()=>{this.isPopoverOpen||(this.isPopoverOpen=!0),this.fetchItemsAndGroups()}} ${b(this.buttonRef)}><slot><arcgis-portal-user-avatar .user=${c} .scale=${i} .portal=${r} .showName=${p} .description=${a?h:""} .hideAvatar=${!this.showAvatar} .underline=${this.underline} .checkOnline=${this.checkOnline} .wrap=${this.wrap}></arcgis-portal-user-avatar></slot></button>${n&&this.buttonRef.value&&c&&u`<calcite-popover class="popover" .label=${H} pointer-disabled .referenceElement=${this.buttonRef.value} placement=auto .id=${`${h}-popover`} auto-close style=${R({"--calcite-popover-z-index":this.zIndex?.toString()||"12"})} @calcitePopoverOpen=${()=>{this.arcgisUserPopupInternalUIAction.emit({category:"profile popup",action:"open profile popup"})}} @calcitePopoverClose=${()=>{this.isPopoverOpen=!1,this.arcgisUserPopupClose.emit()}} @keydown=${D=>{D.key==="Escape"&&setTimeout(()=>{this.buttonRef.value?.focus()},200)}} ${b(this.popoverRef)}><div class="popover__wrapper"><div class="popover__header"><arcgis-portal-user-avatar class="popover__avatar" .user=${c} scale=l .portal=${r} show-name .description=${S} .checkOnline=${this.checkOnline}></arcgis-portal-user-avatar></div><div class="popover__content">${!!d&&u`<p class="popover__description">${q(I(d))}</p>`||""}${!!d&&u`<div class="popover__fade"></div>`||""}<div class=${$({popover__buttons:!0,"popover__buttons--no-description":!d})}>${O?this.renderOrgButtons(c):this.renderUserButtons(c)}</div></div></div></calcite-popover>`||""}`}};C("arcgis-portal-user-popup",x);return x},"core/promiseUtils",a,c,d,e)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import{a as g}from"./WQOCWSJC.js";import{K as m,N as l,Q as u,h as p,j as s,v as d}from"./OUFJRLPQ.js";var w=p`.sort-accordion-wrap{border-bottom:1px solid var(--calcite-color-border-2)}.sort-title{font-weight:var(--calcite-font-weight-medium);color:var(--calcite-color-text-1);font-size:var(--calcite-font-size-0);padding:1rem .5rem;margin:0 0 -1px;line-height:1;border-bottom:1px solid var(--calcite-color-border-2)}.dropdown-sort-order-items--in-dialog{max-height:var(--arcgis-browser-sort-max-height, none)}.sort-accordion-item{--calcite-accordion-item-content-space: .75rem .25rem;--calcite-accordion-icon-margin: .5rem;border-top:1px solid var(--calcite-color-border-1)}.sort-accordion-content{margin:-.75rem .5rem 0}`,b={title:["asc","alphabetical"],owner:["asc","alphabetical"],numviews:["desc","num"],relevance:["desc"],modified:["desc","recent"],created:["desc","recent"],size:["desc","size"],fullname:["asc","alphabetical"],username:["asc","alphabetical"],name:["asc","alphabetical"],membertype:["asc","alphabetical"],joined:["desc","recent"],lastlogin:["desc","recent"],added:["desc","recent"],dataset:["asc","alphabetical"],mfaenabled:["desc","default"],description:["asc","alphabetical"],lastSyncFailureCount:["desc","num"],invitationsPendingCount:["desc","num"],participantGroupLinksCount:["desc","num"]};function n(a,e,r){let[t,o]=b[a],i=a==="modified"&&r?e.deleted||"Date deleted":e[a]||a,c={asc:(o?e[`${o}Asc`]:void 0)||e.defaultAsc,desc:(o?e[`${o}Desc`]:void 0)||e.defaultDesc};return{label:i,showSortOrder:!!o,defaultSortOrder:t,sortOrderLabels:c}}var h=class extends m{constructor(){super(...arguments),this._messages=g({name:"portal-browser",blocking:!0}),this.sortOrders=["asc","desc"],this.options=[],this.appearance="dropdown",this.showText=!0,this.useDeleted=!1,this.arcgisBrowserSortFieldChange=d(),this.arcgisBrowserSortOrderChange=d()}static{this.properties={options:0,field:1,order:1,appearance:1,showText:5,useDeleted:5}}static{this.styles=w}getI18n(){return this._messages.sort}renderFieldOption(e,r){let t=this.getI18n(),o=n(e,t,this.useDeleted);return s`<calcite-dropdown-item .selected=${r===e} @calciteDropdownItemSelect=${()=>this.arcgisBrowserSortFieldChange.emit(e)}>${o.label}</calcite-dropdown-item>`}renderButton(e){let r=this.getI18n(),t=n(e,r,this.useDeleted),o=`${r.sortBy} ${t.label}`;return s`<calcite-button class="button" slot=trigger scale=m appearance=outline-fill kind=neutral icon-start=sort-descending icon-flip-rtl=start .label=${o}>${this.showText?t.label:null}</calcite-button>`}renderDropdown(){if(!this.options.length)return null;let e=this.getI18n(),r=this.field&&this.options.includes(this.field)?this.field:this.options[0],t=n(r,e,this.useDeleted),o=this.order||t.defaultSortOrder;return s`<calcite-dropdown placement=bottom-end scale=m overlay-positioning=fixed width=m>${this.renderButton(r)}<calcite-dropdown-group selection-mode=single .groupTitle=${e.sortBy}>${this.options.map(i=>this.renderFieldOption(i,r))}</calcite-dropdown-group>${t.showSortOrder&&s`<calcite-dropdown-group selection-mode=single .groupTitle=${e.sortDirection}>${this.sortOrders.map(i=>s`<calcite-dropdown-item .selected=${o===i} @calciteDropdownItemSelect=${()=>this.arcgisBrowserSortOrderChange.emit(i)}>${t.sortOrderLabels[i]}</calcite-dropdown-item>`)}</calcite-dropdown-group>`||""}</calcite-dropdown>`}renderTreeItem(e,r){let t=this.getI18n(),o=n(e,t,this.useDeleted);return s`<calcite-tree-item data-value=${e??l} .selected=${r===e}><a>${o.label}</a></calcite-tree-item>`}renderAccordion(e,r,t){return t?null:s`<calcite-accordion-item .heading=${e} class="sort-accordion-item"><div class="sort-accordion-content">${r}</div></calcite-accordion-item>`}renderAccordions(){if(!this.options.length)return null;let e=this.getI18n(),r=this.field&&this.options.includes(this.field)?this.field:this.options[0],t=n(r,e,this.useDeleted),o=this.order||t.defaultSortOrder;return s`<div class="sort-accordion-wrap"><h3 class="sort-title">${e.sort}</h3><calcite-accordion appearance=transparent icon-type=chevron scale=m icon-position=start>${this.renderAccordion(e.sortBy,s`<calcite-tree @calciteTreeSelect=${i=>{let c=i.target.selectedItems?.[0]?.dataset.value;c&&typeof c=="string"&&this.arcgisBrowserSortFieldChange.emit(c)}}>${this.options.map(i=>this.renderTreeItem(i,r))}</calcite-tree>`)}${this.renderAccordion(e.sortDirection,s`<calcite-tree @calciteTreeSelect=${i=>{let c=i.target.selectedItems?.[0]?.dataset.value;(c==="asc"||c==="desc")&&this.arcgisBrowserSortOrderChange.emit(c)}}>${this.sortOrders.map(i=>s`<calcite-tree-item data-value=${i??l} .selected=${o===i}><a>${t.sortOrderLabels[i]}</a></calcite-tree-item>`)}</calcite-tree>`,!t.showSortOrder)}</calcite-accordion></div>`}render(){return this.appearance==="accordion"?this.renderAccordions():this.renderDropdown()}};u("arcgis-portal-browser-sort",h);export{h as a};
2
+ import{a as g}from"./B343BOVA.js";import{N as m,Q as l,T as u,h as p,j as s,v as d}from"./AM3UTQWH.js";var w=p`.sort-accordion-wrap{border-bottom:1px solid var(--calcite-color-border-2)}.sort-title{font-weight:var(--calcite-font-weight-medium);color:var(--calcite-color-text-1);font-size:var(--calcite-font-size-0);padding:1rem .5rem;margin:0 0 -1px;line-height:1;border-bottom:1px solid var(--calcite-color-border-2)}.dropdown-sort-order-items--in-dialog{max-height:var(--arcgis-browser-sort-max-height, none)}.sort-accordion-item{--calcite-accordion-item-content-space: .75rem .25rem;--calcite-accordion-icon-margin: .5rem;border-top:1px solid var(--calcite-color-border-1)}.sort-accordion-content{margin:-.75rem .5rem 0}`,b={title:["asc","alphabetical"],owner:["asc","alphabetical"],numviews:["desc","num"],relevance:["desc"],modified:["desc","recent"],created:["desc","recent"],size:["desc","size"],fullname:["asc","alphabetical"],username:["asc","alphabetical"],name:["asc","alphabetical"],membertype:["asc","alphabetical"],joined:["desc","recent"],lastlogin:["desc","recent"],added:["desc","recent"],dataset:["asc","alphabetical"],mfaenabled:["desc","default"],description:["asc","alphabetical"],lastSyncFailureCount:["desc","num"],invitationsPendingCount:["desc","num"],participantGroupLinksCount:["desc","num"]};function n(a,e,r){let[t,o]=b[a],i=a==="modified"&&r?e.deleted||"Date deleted":e[a]||a,c={asc:(o?e[`${o}Asc`]:void 0)||e.defaultAsc,desc:(o?e[`${o}Desc`]:void 0)||e.defaultDesc};return{label:i,showSortOrder:!!o,defaultSortOrder:t,sortOrderLabels:c}}var h=class extends m{constructor(){super(...arguments),this._messages=g({name:"portal-browser",blocking:!0}),this.sortOrders=["asc","desc"],this.options=[],this.appearance="dropdown",this.showText=!0,this.useDeleted=!1,this.arcgisBrowserSortFieldChange=d(),this.arcgisBrowserSortOrderChange=d()}static{this.properties={options:0,field:1,order:1,appearance:1,showText:5,useDeleted:5}}static{this.styles=w}getI18n(){return this._messages.sort}renderFieldOption(e,r){let t=this.getI18n(),o=n(e,t,this.useDeleted);return s`<calcite-dropdown-item .selected=${r===e} @calciteDropdownItemSelect=${()=>this.arcgisBrowserSortFieldChange.emit(e)}>${o.label}</calcite-dropdown-item>`}renderButton(e){let r=this.getI18n(),t=n(e,r,this.useDeleted),o=`${r.sortBy} ${t.label}`;return s`<calcite-button class="button" slot=trigger scale=m appearance=outline-fill kind=neutral icon-start=sort-descending icon-flip-rtl=start .label=${o}>${this.showText?t.label:null}</calcite-button>`}renderDropdown(){if(!this.options.length)return null;let e=this.getI18n(),r=this.field&&this.options.includes(this.field)?this.field:this.options[0],t=n(r,e,this.useDeleted),o=this.order||t.defaultSortOrder;return s`<calcite-dropdown placement=bottom-end scale=m overlay-positioning=fixed width=m>${this.renderButton(r)}<calcite-dropdown-group selection-mode=single .groupTitle=${e.sortBy}>${this.options.map(i=>this.renderFieldOption(i,r))}</calcite-dropdown-group>${t.showSortOrder&&s`<calcite-dropdown-group selection-mode=single .groupTitle=${e.sortDirection}>${this.sortOrders.map(i=>s`<calcite-dropdown-item .selected=${o===i} @calciteDropdownItemSelect=${()=>this.arcgisBrowserSortOrderChange.emit(i)}>${t.sortOrderLabels[i]}</calcite-dropdown-item>`)}</calcite-dropdown-group>`||""}</calcite-dropdown>`}renderTreeItem(e,r){let t=this.getI18n(),o=n(e,t,this.useDeleted);return s`<calcite-tree-item data-value=${e??l} .selected=${r===e}><a>${o.label}</a></calcite-tree-item>`}renderAccordion(e,r,t){return t?null:s`<calcite-accordion-item .heading=${e} class="sort-accordion-item"><div class="sort-accordion-content">${r}</div></calcite-accordion-item>`}renderAccordions(){if(!this.options.length)return null;let e=this.getI18n(),r=this.field&&this.options.includes(this.field)?this.field:this.options[0],t=n(r,e,this.useDeleted),o=this.order||t.defaultSortOrder;return s`<div class="sort-accordion-wrap"><h3 class="sort-title">${e.sort}</h3><calcite-accordion appearance=transparent icon-type=chevron scale=m icon-position=start>${this.renderAccordion(e.sortBy,s`<calcite-tree @calciteTreeSelect=${i=>{let c=i.target.selectedItems?.[0]?.dataset.value;c&&typeof c=="string"&&this.arcgisBrowserSortFieldChange.emit(c)}}>${this.options.map(i=>this.renderTreeItem(i,r))}</calcite-tree>`)}${this.renderAccordion(e.sortDirection,s`<calcite-tree @calciteTreeSelect=${i=>{let c=i.target.selectedItems?.[0]?.dataset.value;(c==="asc"||c==="desc")&&this.arcgisBrowserSortOrderChange.emit(c)}}>${this.sortOrders.map(i=>s`<calcite-tree-item data-value=${i??l} .selected=${o===i}><a>${t.sortOrderLabels[i]}</a></calcite-tree-item>`)}</calcite-tree>`,!t.showSortOrder)}</calcite-accordion></div>`}render(){return this.appearance==="accordion"?this.renderAccordions():this.renderDropdown()}};u("arcgis-portal-browser-sort",h);export{h as a};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import b from"./47EZWWY7.js";import{d}from"./FN2QMDEW.js";import{a as p}from"./WQOCWSJC.js";import{I as a,J as l,K as o,L as n,Q as c,h as i,j as t,v as s}from"./OUFJRLPQ.js";export default $arcgis.t(([{a:h,c:b}])=>{var f=i`:host{position:relative;display:block;background-color:var(--arcgis-browser-top-bar-background, var(--calcite-color-foreground-1));container-type:inline-size;container-name:browser-top-bar}.wrapper{display:flex;margin-inline:auto;max-width:var(--arcgis-browser-max-width)}.bucket{display:flex}.search-and-sort{display:flex;flex:1;align-items:center;padding-inline-end:1.5rem;min-height:3rem}.search{flex:1}.filter{margin-block:.25rem;padding-inline:.5rem;display:flex;justify-content:center;align-items:center}.bucket--mobile{display:none;text-align:center;border-bottom:1px solid var(--calcite-color-border-3)}.rel{position:relative}.bucket--desktop{display:flex}.indicator{width:.5rem;height:.5rem;position:absolute;border-radius:999px;top:0;pointer-events:none;z-index:20;background-color:var(--calcite-color-brand);inset-inline-start:0}.filter-status--with-toggle{display:none}@container browser-top-bar (min-width: 769px){.filter{display:none}.filter-status--with-toggle{display:inline-flex}}@container browser-top-bar (max-width: 640px){.bucket--mobile{display:block}.bucket--desktop{display:none}.search-and-sort{padding-inline-end:0}}`,r=class extends o{constructor(){super(...arguments),this.searchWrapper=a(),this.resizeObserver=null,this._messages=p({name:"portal-browser",blocking:!0}),this.width=0,this.store=b(),this.filtersDisabled=!1,this.arcgisBrowserFilterClear=s(),this.arcgisBrowserFilterRemove=s()}static{this.properties={width:16,store:0,filtersDisabled:5}}static{this.styles=f}firstUpdated(){this.updateWidth(),!(typeof ResizeObserver>"u"||!this.searchWrapper.value)&&(this.resizeObserver=new ResizeObserver(()=>this.updateWidth()),this.resizeObserver.observe(this.searchWrapper.value))}disconnectedCallback(){this.resizeObserver?.disconnect(),this.resizeObserver=null,super.disconnectedCallback()}updateWidth(){requestAnimationFrame(()=>{this.width=this.searchWrapper.value?.offsetWidth||0})}hasActiveFilter(){return Object.values(this.store.filters).some(e=>!!e.value&&!d(h,e.id))}handleClick(){this.store.preview=null,this.store.filtersExpanded=!this.store.filtersExpanded}render(){let e=(!this.store.filtersEmpty||!this.store.sortEmpty&&this.store.panel)&&!this.filtersDisabled,m=this._messages.topBar.filter;return t`<div><div class="bucket bucket--mobile"><slot name=bucket></slot></div><slot name=primary-filter></slot><div class="wrapper"><slot name=content-start></slot><div class="bucket bucket--desktop"><slot name=bucket></slot></div><div class="search-and-sort" ${l(this.searchWrapper)}><div class="search"><slot name=search></slot></div>${!this.filtersDisabled&&t`<arcgis-portal-browser-filter-status .componentWidth=${this.width} .browserWidth=${this.width} class=${n({"filter-status":!0,"filter-status--with-toggle":e})} .filters=${this.store.filters} .hiddenFilterIds=${this.store.hiddenFilters||[]} @arcgisBrowserFilterClear=${()=>{this.arcgisBrowserFilterClear.emit(null)}} @arcgisBrowserFilterRemove=${u=>{this.arcgisBrowserFilterRemove.emit(u.detail)}}></arcgis-portal-browser-filter-status>`||""}</div>${e&&t`<div class="filter"><div class="rel">${this.hasActiveFilter()&&t`<span class="indicator"></span>`||""}<calcite-button class="filter-toggle" scale=s appearance=transparent kind=neutral icon-start=sliders .label=${m} @click=${()=>this.handleClick()} aria-expanded=${this.store.filtersExpanded?"true":"false"}></calcite-button></div></div>`||""}<slot name=content-end></slot></div></div>`}};c("arcgis-portal-browser-top-bar",r);return r},b)
2
+ import b from"./YYKKXL62.js";import{d}from"./FN2QMDEW.js";import{a as p}from"./B343BOVA.js";import{L as a,M as l,N as o,O as n,T as c,h as i,j as t,v as s}from"./AM3UTQWH.js";export default $arcgis.t(([{a:h,c:b}])=>{var f=i`:host{position:relative;display:block;background-color:var(--arcgis-browser-top-bar-background, var(--calcite-color-foreground-1));container-type:inline-size;container-name:browser-top-bar}.wrapper{display:flex;margin-inline:auto;max-width:var(--arcgis-browser-max-width)}.bucket{display:flex}.search-and-sort{display:flex;flex:1;align-items:center;padding-inline-end:1.5rem;min-height:3rem}.search{flex:1}.filter{margin-block:.25rem;padding-inline:.5rem;display:flex;justify-content:center;align-items:center}.bucket--mobile{display:none;text-align:center;border-bottom:1px solid var(--calcite-color-border-3)}.rel{position:relative}.bucket--desktop{display:flex}.indicator{width:.5rem;height:.5rem;position:absolute;border-radius:999px;top:0;pointer-events:none;z-index:20;background-color:var(--calcite-color-brand);inset-inline-start:0}.filter-status--with-toggle{display:none}@container browser-top-bar (min-width: 769px){.filter{display:none}.filter-status--with-toggle{display:inline-flex}}@container browser-top-bar (max-width: 640px){.bucket--mobile{display:block}.bucket--desktop{display:none}.search-and-sort{padding-inline-end:0}}`,r=class extends o{constructor(){super(...arguments),this.searchWrapper=a(),this.resizeObserver=null,this._messages=p({name:"portal-browser",blocking:!0}),this.width=0,this.store=b(),this.filtersDisabled=!1,this.arcgisBrowserFilterClear=s(),this.arcgisBrowserFilterRemove=s()}static{this.properties={width:16,store:0,filtersDisabled:5}}static{this.styles=f}firstUpdated(){this.updateWidth(),!(typeof ResizeObserver>"u"||!this.searchWrapper.value)&&(this.resizeObserver=new ResizeObserver(()=>this.updateWidth()),this.resizeObserver.observe(this.searchWrapper.value))}disconnectedCallback(){this.resizeObserver?.disconnect(),this.resizeObserver=null,super.disconnectedCallback()}updateWidth(){requestAnimationFrame(()=>{this.width=this.searchWrapper.value?.offsetWidth||0})}hasActiveFilter(){return Object.values(this.store.filters).some(e=>!!e.value&&!d(h,e.id))}handleClick(){this.store.preview=null,this.store.filtersExpanded=!this.store.filtersExpanded}render(){let e=(!this.store.filtersEmpty||!this.store.sortEmpty&&this.store.panel)&&!this.filtersDisabled,m=this._messages.topBar.filter;return t`<div><div class="bucket bucket--mobile"><slot name=bucket></slot></div><slot name=primary-filter></slot><div class="wrapper"><slot name=content-start></slot><div class="bucket bucket--desktop"><slot name=bucket></slot></div><div class="search-and-sort" ${l(this.searchWrapper)}><div class="search"><slot name=search></slot></div>${!this.filtersDisabled&&t`<arcgis-portal-browser-filter-status .componentWidth=${this.width} .browserWidth=${this.width} class=${n({"filter-status":!0,"filter-status--with-toggle":e})} .filters=${this.store.filters} .hiddenFilterIds=${this.store.hiddenFilters||[]} @arcgisBrowserFilterClear=${()=>{this.arcgisBrowserFilterClear.emit(null)}} @arcgisBrowserFilterRemove=${u=>{this.arcgisBrowserFilterRemove.emit(u.detail)}}></arcgis-portal-browser-filter-status>`||""}</div>${e&&t`<div class="filter"><div class="rel">${this.hasActiveFilter()&&t`<span class="indicator"></span>`||""}<calcite-button class="filter-toggle" scale=s appearance=transparent kind=neutral icon-start=sliders .label=${m} @click=${()=>this.handleClick()} aria-expanded=${this.store.filtersExpanded?"true":"false"}></calcite-button></div></div>`||""}<slot name=content-end></slot></div></div>`}};c("arcgis-portal-browser-top-bar",r);return r},b)
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
+ import a from"./CJ4S56BE.js";export default $arcgis.t(([{b:v,c:f,e:h,f:S,g:w,h:P,i:u,j:d}])=>{var C=r=>typeof r?.role=="string"&&r?.role?r?.role:r?.roleId??r?.sourceJSON?.id;function M(r){return r?["org_admin","account_admin"].includes(C(r))&&!r?.roleId:!1}function L(r){return!!(r?.roleId&&r.roleId.length>0)}function E(r){return!!r?.privileges?.includes("portal:admin:deleteItems")}function W(r,t){return t?u(r,t)||r.itemControl==="update"||d([r],t)&&M(t):!1}function T(r,t){if(!t)return!1;let e=d([r],t),a=u(r,t)||M(t)&&e,i=L(t)&&E(t);return!!(a||e&&i)}function O({item:r,messages:t,user:e,serviceInfo:a,portal:i}){let n=F(r),o=B(r,t,i);return{displayName:I(o,{item:r,user:e,messages:t,serviceInfo:a},!1),displayNameHosted:I(o,{item:r,user:e,messages:t,serviceInfo:a},!0),icon:n}}function K(r,t){let e=r?.typeKeywords;return e?.includes("IntegratedMesh")?t?.meshLayer||"Mesh layer":e?.includes("3DObject")?t?.object3dLayer||"3D object layer":e?.includes("PointCloud")?t?.pointCloudLayer||"Point cloud layer":e?.includes("Point")?t?.point3dLayer||"3D point layer":e?.includes("Building")?t?.buildingLayer||"Building layer":e?.includes("Voxel")?t?.voxelLayer||"Voxel layer":e?.includes("GaussianSplat")?t?.gaussianSplatLayer||"Gaussian splat layer":r?.type==="Scene Service"?"Scene layer":"3D tiles layer"}function R(r,t,e,a){return t&&e?a?r.hostedCollectionMultidimensional:r.hostedCollection:t?a?r.hostedMultidimensional:r.hosted:e?a?r.collectionMultidimensional:r.collection:a?r.multidimensional:void 0}function I(r,{item:t,user:e,messages:a,serviceInfo:i},n=!0){let o=t.type==="Image Service";if(!(n&&e)&&!o)return r;let c=t.type==="Feature Service"&&t.typeKeywords?.includes("UtilityNetwork"),l=t.type==="Feature Service"&&t.typeKeywords?.includes("ParcelFabric"),D=t.type==="Feature Service"&&t.typeKeywords?.includes("Query Layer"),g=e&&W(t,e),m=e&&T(t,e),p=v(t),y=(g||m)&&p,k=(g||m)&&n;if(D)return`${r} (${a.query})`;if(l)return`${r} (${y?a.parcelFabricHosted:a.parcelFabric})`;if(c){let s=y?`, ${a.hosted}`:"";return`${r} (${a.utilityNetwork}${s})`}if(o){let s=t.typeKeywords?.includes("Elevation 3D Layer"),A=!!(k&&p),x=P(t,i)&&!s,G=w(t,i)&&!s,b=R(a,A,G,x),j=b===void 0?"":` (${b})`;return`${r}${j}`}if(k){if(p){let s=` (${f(t)?a.hostedView:a.hosted})`;return`${r}${s}`}return h(t)?`${r} (${a.locatorView})`:S(t)?`${r} (${a.photoLocations})`:r}return r}var V={"360 VR Experience":"360 VR experience","3DTiles Package":"3D tiles package","3DTiles Service":"3D tiles layer","Addin Package":"Add-in package","Administrative Report":"Administrative report","Analysis Model":"Analysis model","Apache Parquet":"Apache Parquet","API Key":"API key","AppBuilder Extension":"AppBuilder extension","AppBuilder Widget Package":"AppBuilder widget package","Application Theme":"Application theme","ArcGIS Explorer Application Configuration":"ArcGIS Explorer application configuration","ArcGIS Pro Add In":"ArcGIS Pro add-in","ArcGIS Pro Configuration":"ArcGIS Pro configuration","ArcMap Document":"ArcMap document","ArcPad Package":"ArcPad package","Basemap Package":"Basemap package","Big Data Analytic":"Big data analytic","Big Data File Share":"Big data file share","CAD Drawing":"CAD drawing","CityEngine Web Scene":"CityEngine web scene","Code Attachment":"Code attachment","Code Sample":"Code sample","Color Set":"Color set","Compact Tile Package":"Compact tile package","Content Category Set":"Content category set","CSV Collection":"CSV collection","Data Pipeline":"Data pipeline","datastore catalog service":"Datastore catalog service","Deep Learning Package":"Deep learning package","Deep Learning Studio Project":"Deep Learning Studio project","Desktop Add In":"Desktop add-in","Desktop Application":"Desktop application","Desktop Application Template":"Desktop application template","Desktop Style":"Desktop style","Dictionary Style":"Dictionary style","Document Link":"Document link","Earth Configuration":"Earth configuration","Esri Classification Schema":"Esri classification schema","Esri Classifier Definition":"Esri classifier definition","Excalibur Imagery Project":"Excalibur imagery project","Experience Builder Widget":"Experience Builder widget","Experience Builder Widget Package":"Experience Builder widget package","Explorer Add In":"Explorer add-in","Explorer Layer":"Explorer layer","Explorer Map":"Explorer map","Export Package":"Export package","Feature Collection Template":"Feature collection template","Feature Service":"Feature layer","File Geodatabase":"File geodatabase","GeoBIM Application":"GeoBIM application","GeoBIM Project":"GeoBIM project","Geocoding Service":"Geocoding service","Geodata Service":"Geodata service","Geoenrichment Service":"GeoEnrichment service","Geometry Service":"Geometry service","Geoprocessing Package":"Geoprocessing package","Geoprocessing Sample":"Geoprocessing sample","Globe Document":"Globe document","Globe Layer":"Globe layer","Globe Service":"Globe service","Group Layer":"Group layer","Hub Event":"Hub event","Hub Initiative":"Hub initiative","Hub Initiative Template":"Hub initiative template","Hub Page":"Hub page","Hub Project":"Hub project","Hub Site Application":"Hub site application","Image Collection":"Image collection","Image Service":"Image service","Imagery Layer":"Imagery layer","Insights Data Engineering Model":"Insights data engineering model","Insights Data Engineering Workbook":"Insights data engineering workbook","Insights Model":"Insights model","Insights Page":"Insights page","Insights Script":"Insights script","Insights Theme":"Insights theme","Insights Workbook":"Insights workbook","Insights Workbook Package":"Insights workbook package","Integration Info":"Integration info","iWork Keynote":"iWork Keynote","iWork Numbers":"iWork Numbers","iWork Pages":"iWork Pages","Kernel Gateway Connection":"Kernel gateway connection","KML Collection":"KML collection","Knowledge Graph":"Knowledge graph","Knowledge Graph Configuration":"Knowledge graph configuration","Knowledge Graph Layer":"Knowledge graph layer","Knowledge Graph Web Investigation":"Knowledge graph web investigation","Knowledge Studio Project":"Knowledge Studio project","Layer Package":"Layer package","Layer Template":"Layer template","Living Atlas Export Package":"Living Atlas export package","Locator Package":"Locator package","Map Area":"Map area","Map Document":"Map document","Map Package":"Map package","Map Service":"Map service","Map Showcase":"Map showcase","Map Template":"Map template","Media Layer":"Media layer","Mission Report":"Mission report","Mission Template":"Mission template","Mobile Application":"Mobile application","Mobile Basemap Package":"Mobile basemap package","Mobile Map Package":"Mobile map package","Mobile Scene Package":"Mobile scene package","Native Application":"Native application","Native Application Installer":"Native application installer","Network Analysis Service":"Network analysis service","Notebook Code Snippet Library":"Notebook code snippet library","Notebook Code Snippets":"Notebook code snippets","Operation View":"Operation view","Operations Dashboard Add In":"Operations Dashboard add-in","Operations Dashboard Extension":"Operations Dashboard extension","Oriented Imagery Catalog":"Oriented imagery catalog","Ortho Mapping Project":"Ortho mapping project","Ortho Mapping Template":"Ortho mapping template","Parquet Feature Layer":"Parquet feature layer","Parquet Collection":"Parquet collection","Pro Map":"Pro map","Pro Presentation":"Pro presentation","Pro Project":"Pro project","Pro Report":"Pro report","Pro Report Template":"Pro report template","Project Package":"Project package","Project Template":"Project template","Published Map":"Published map","QuickCapture Project":"QuickCapture project","Raster function template":"Raster function template","Real Time Analytic":"Real time analytic","Reality Studio Project":"Reality Studio project","Reality Mapping Project":"Reality mapping project","Relational Database Connection":"Relational database connection","Replication Package":"Replication package","Report Template":"Report template","Route Layer":"Route layer","Rule Package":"Rule package","Scene Document":"Scene document","Scene Service":"Scene service","Service Connection":"Service connection","Service Definition":"Service definition","SQLite Geodatabase":"SQLite geodatabase","Statistical Data Collection":"Statistical data collection","StoryMap Theme":"StoryMap theme","Suitability Model":"Suitability model","Survey123 Add In":"Survey123 add-in","Symbol Set":"Symbol set","Task File":"Task file","Tile Layer":"Tile layer","Tile Package":"Tile package","Urban Model":"Urban model","Urban Project":"Urban project","Vector Tile Package":"Vector tile package","Vector Tile Service":"Vector tile service","Visio Document":"Visio document","Web AppBuilder Widget":"Web AppBuilder widget","Web Experience":"Web experience","Web Experience Template":"Web experience template","Web Link Chart":"Web link chart","Web Map":"Web map","Web Mapping Application":"Web mapping application","Web Scene":"Web scene","Windows Mobile Package":"Windows mobile package","Workflow Manager Package":"Workflow Manager package","Workflow Manager Service":"Workflow Manager service","Workforce Project":"Workforce project","Viewer Configuration":"Viewer configuration","XR Experience":"XR experience"};function B(r,t,e){let a=r.typeKeywords||[];switch(r.type){case null:case void 0:return"";case"Stream Service":return"Stream layer";case"Feature Service":case"Feature Collection":return a.includes("Sketch Layer")?"Sketch layer":a.includes("IndoorPositioningDataService")?"Indoor positioning data service":a.includes("EditExtensionIndoorsSpaces")?"Indoors Spaces feature layer":a.includes("ArcgisWorkflowJobLocation")&&a.includes("View Service")?"Workflow job location view":a.includes("ArcgisWorkflowManager")?a.includes("View Service")?"Workflow view":"Workflow layer":a.includes("Table")?"Table":a.includes("Route Layer")?"Route layer":a.includes("Markup")?"Markup":"Feature layer";case"Image Service":return a.includes("Elevation 3D Layer")?"Elevation layer":a.includes("Tiled Imagery")?"Tiled imagery layer":"Imagery layer";case"Data Store":if(!a.length)return"Data store";let n=["cloudStore_amazon","cloudStore_azure","cloudStore_azureDataLakeStore","cloudStore_Google","cloudStore_Alibaba","Cloud"].some(l=>a.includes(l)),o=t?.dataStore||{bigdata:"big data file share",cloud:"cloud",cloudStorage:"cloud storage",database:"database",folder:"folder"};return n?`Data store (${e?.isPortal?o.cloudStorage:o.cloud})`:a.includes("egdb")||a.includes("nosql")?`Data store (${o.database})`:a.includes("folder")||a.includes("ArcGIS Server")&&(a.includes("dedicated")||a.includes("global"))?`Data store (${o.folder})`:!a.includes("fileShare")||!a.includes("hdfs")||!a.includes("hive")||!a.includes("dataStore")?`Data store (${o.bigdata})`:"Data store";case"Scene Service":case"3DTiles Service":return K(r,t);case"Video Service":return"Video layer";case"Scene Package":return"Scene layer package";case"Geoprocessing Service":return a.includes("Web Tool")?"Tool":"Geoprocessing service";case"StoryMap":let c=a.includes("storymaptemplate");return a.includes("storymapbriefing")?c?"StoryMap template (briefing)":"StoryMap briefing":a.includes("storymapcollection")?c?"StoryMap template (collection)":"StoryMap collection":a.includes("storymapframe")?c?"StoryMap template (frame)":"StoryMap frame":c?"StoryMap template (story)":"StoryMap story";case"Geocoding Service":return"Locator";case"Geoenrichment Service":return"GeoEnrichment service";case"Microsoft Powerpoint":return"Microsoft PowerPoint";case"GeoJson":return"GeoJSON";case"Globe Service":return"Globe layer";case"Vector Tile Service":return"Tile layer";case"netCDF":return"NetCDF";case"Site Application":return"Hub site application";case"Site Page":return"Hub page";case"SQLite Geodatabase":return"Mobile geodatabase";case"Style":return a.includes("Dictionary")?"Dictionary style":"Style";case"Desktop Style":return a.includes("Dictionary")?"Desktop dictionary style":"Desktop style";case"Map Service":return!a.includes("Spatiotemporal")&&(a.includes("Hosted Service")||a.includes("Tiled"))&&!a.includes("Relational")?"Tile layer":"Map image layer";case"Compact Tile Package":return"Tile package (tpkx)";case"OGCFeatureServer":return"OGC feature layer";case"3DTiles Package":return"3D tiles package";case"API Key":return"API key (legacy)";case"Knowledge Graph Configuration":if(a.includes("Data Loading"))return"Knowledge Graph Data Loading Configuration";break;case"Web Mapping Application":if(a.includes("configurableApp"))return"Instant App";if(a.includes("IndoorsApp"))return"Indoors Viewer";if(a.includes("IndoorsSpaceplannerApp"))return"Indoors Space Planner";if(a.includes("IndoorsFloorPlanEditorApp"))return"Indoors Floor Plan Editor";if(a.includes("IndoorsKiosk2App"))return"Indoors Kiosk";break;case"Application":case"Mobile Application":case"Operation View":case"Desktop Application":if(a.includes("configurableApp"))return"Instant App";break}let i=V[r.type]||r.type;return i?.toLowerCase().includes("add in")?i.replace(/(add in)/giu,"add-in"):i}function F(r){let t=r.type?.toLowerCase()||"",e=r.typeKeywords||[],a=e.includes("Hosted Service");switch(t.trim()){case"360 vr experience":return"360vr";case"3dtiles package":return"3dtileslayerpackage";case"3dtiles service":return e.includes("3DObject")?"3dobjecttileslayer":e.includes("IntegratedMesh")?"integratedmeshtileslayer":e.includes("GaussianSplat")?"gaussianSplatLayer":"3dobjecttileslayer";case"feature service":case"feature collection":case"kml":case"wfs":if(e.includes("ParcelFabric"))return"parcellayer";if(e.includes("IndoorPositioningDataService"))return"indoorpositioningdataservice";let i=e.includes("Spatiotemporal");return e.includes("Table")?i?"spatiotemporaltable":"table":t==="feature collection"&&e.includes("Sketch Layer")?"sketchlayer":e.includes("Route Layer")?"routelayer":e.includes("Markup")?"markup":i?"spatiotemporal":e.includes("UtilityNetwork")?"utilitynetwork":a?"featureshosted":"features";case"group layer":return e.includes("Map")?"layergroup2d":e.includes("Scene")?"layergroup3d":"layergroup";case"wmts":return"maptiles";case"map service":case"wms":return a||e.includes("Tiled")?"maptiles":"mapimages";case"scene service":return e.includes("Line")?"sceneweblayerline":e.includes("3DObject")?"sceneweblayermultipatch":e.includes("Point")?"sceneweblayerpoint":e.includes("IntegratedMesh")?"sceneweblayermesh":e.includes("PointCloud")?"sceneweblayerpointcloud":e.includes("Polygon")?"sceneweblayerpolygon":e.includes("Building")?"sceneweblayerbuilding":e.includes("Voxel")?"sceneweblayervoxel":"sceneweblayer";case"wcs":return"imagery";case"image service":return e.includes("Elevation 3D Layer")?"elevationlayer":e.includes("Tiled Imagery")?"tiledimagerylayer":"imagery";case"stream service":return"streamlayer";case"video service":return e.includes("Live Stream")?"livestreamvideolayer":"mediaservice";case"vector tile service":return"vectortile";case"datastore catalog service":return"datastorecollection";case"geocoding service":return"geocodeservice";case"geoprocessing service":return e.includes("Web Tool")?"tool":"layers";case"geodata service":return"geodataservice";case"layout":return"layout";case"web map":case"cityengine web scene":return"maps";case"web scene":return e.includes("ViewingMode-Local")?"webscenelocal":"websceneglobal";case"application":case"web mapping application":case"mobile application":case"operation view":case"desktop application":return e?.some(n=>["IndoorsApp","IndoorsSpaceplannerApp","IndoorsFloorPlanEditorApp","IndoorsKiosk2App"].includes(n))?"indoors":e.includes("configurableApp")?"instantapps":"apps";case"map document":case"map package":case"published map":case"scene document":case"globe document":case"basemap package":case"mobile basemap package":case"mobile map package":case"project package":case"project template":case"pro map":return"mapsgray";case"layer":if(e.includes("ArcGIS Pro"))return"mapsgray";break;case"explorer map":if(e.indexOf("Explorer Document"))return"mapsgray";if(e.includes("Explorer Mapping Application"))return"datafilesgray";break;case"pro presentation":return"propresentation";case"api key":return"key";case"csv":return"csv";case"shapefile":return"shapefile";case"csv collection":return"csvcollection";case"media layer":return"medialayer";case"microsoft excel":return"excel";case"microsoft powerpoint":return"powerpoint";case"microsoft word":return"word";case"pdf":return"pdf";case"sqlite geodatabase":return"sqlite";case"administrative report":return"report";case"cad drawing":return"cad";case"service definition":case"geojson":case"netcdf":return"data";case"explorer add in":case"desktop add in":case"windows viewer add in":case"windows viewer configuration":return"appsgray";case"arcgis pro add in":case"arcgis pro configuration":return"addindesktop";case"rule package":case"file geodatabase":case"kml collection":case"windows mobile package":case"map template":case"desktop application template":case"gml":case"arcpad package":case"code sample":case"document link":case"earth configuration":case"operations dashboard add in":case"rules package":case"workflow manager package":return"datafilesgray";case"form":return e.includes("Survey123")?"survey":"datafilesgray";case"network analysis service":case"geometry service":case"geoprocessing package":case"locator package":case"geoprocessing sample":case"workflow manager service":return"toolsgray";case"layer package":case"explorer layer":return"layersgray";case"scene package":return"scenepackage";case"mobile scene package":return"mobilescenepackage";case"tile package":case"compact tile package":return"tilepackage";case"task file":return"taskfile";case"report template":return"reporttemplate";case"statistical data collection":return"statisticaldatacollection";case"analysis model":return"geoprocessingmodel";case"map showcase":return"mapshowcase";case"application theme":return"applicationtheme";case"insights workbook":return"workbook";case"insights model":return"insightsmodel";case"insights page":return"insightspage";case"insights theme":return"insightstheme";case"discussion":return"discussion";case"hub initiative":return"hubinitiative";case"hub page":case"site page":return"hubpage";case"hub event":return"hubevent";case"hub site application":case"site application":return"hubsite";case"hub project":return"hubproject";case"relational database connection":return"relationaldatabaseconnection";case"image":return"image";case"image collection":return"imagecollection";case"style":return e.includes("Dictionary")?"dictionarystyle":"style";case"desktop style":return e.includes("Dictionary")?"dictionarydesktopstyle":"desktopstyle";case"dashboard":return"dashboard";case"raster function template":return"rasterprocessingtemplate";case"vector tile package":return"vectortilepackage";case"ortho mapping project":return"orthomappingproject";case"ortho mapping template":return"orthomappingtemplate";case"solution":return"solutions";case"geopackage":return"geopackage";case"deep learning package":return"deeplearningpackage";case"real time analytic":return"realtimeanalytics";case"big data analytic":return"bigdataanalytics";case"feed":return"feed";case"excalibur imagery project":return"excaliburimageryproject";case"notebook":return"notebook";case"reality mapping project":return"realitymappingproject";case"storymap":return e.includes("storymaptemplate")?"storymapstemplate":e.includes("storymapcollection")?"storymapcollection":e.includes("storymapbriefing")?"storymapbriefing":e.includes("storymapframe")?"storymapframe":"storymap";case"survey123 add in":return"survey123addin";case"mission":return"mission";case"mission report":return"missionreport";case"mission template":return"missiontemplate";case"quickcapture project":return"quickcaptureproject";case"pro report":return"proreport";case"urban model":return"urbanmodel";case"urban project":return"urbanproject";case"web experience":return"experiencebuilder";case"web experience template":return"webexperiencetemplate";case"experience builder widget":return"experiencebuilderwidget";case"experience builder widget package":return"experiencebuilderwidgetpackage";case"workflow":return"workflow";case"insights script":return"insightsscript";case"kernel gateway connection":return"kernelgatewayconnection";case"hub initiative template":return"hubinitiativetemplate";case"storymap theme":return"storymaptheme";case"knowledge graph":return"knowledgegraph";case"knowledge graph configuration":if(e.includes("Data Loading"))return"knowledgegraphconfiguration";break;case"knowledge studio project":return"knowledgestudio";case"knowledge graph layer":return"knowledgegraphlayer";case"native application":return"nativeapp";case"native application installer":return"nativeappinstaller";case"web link chart":return"linkchart";case"knowledge graph web investigation":return"investigation";case"ogcfeatureserver":return"features";case"pro project":return"proproject";case"insights workbook package":return"insightsworkbookpackage";case"apache parquet":return"apacheparquet";case"notebook code snippets":case"notebook code snippet library":return"notebookcodesnippets";case"suitability model":return"suitabilitymodel";case"esri classifier definition":return"classifierdefinition";case"esri classification schema":return"classificationschema";case"esri spectral library":return"spectrallibrary";case"insights data engineering workbook":return"dataengineeringworkbook";case"insights data engineering model":return"dataengineeringmodel";case"deep learning studio project":return"deeplearningproject";case"data store":return"datastore";case"data pipeline":return"datapipeline";case"parquet collection":return"datafilesgray";case"parquet feature layer":return"parquetfeaturelayer";case"service connection":return"serviceconnection";case"xr experience":return"xrexperience"}return e.includes("Document")?"datafilesgray":t.includes("service")?"layers":"maps"}return{a:M,b:O,c:B}},a)
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
+ import i from"./QRHXMIMW.js";import"./SRWFOV5W.js";import h from"./OHAQPQAP.js";import"./WFPUAEJQ.js";import g from"./7DAB2CEU.js";import"./4QYVBXZT.js";import f from"./QMIVFHQE.js";import d from"./PJZZIITX.js";import"./JLT5GCLY.js";import"./VDXESPJK.js";import"./ULGME5RT.js";import"./DAAON2UO.js";import c from"./365ICWHN.js";import b from"./TIPQ2ZWK.js";import"./DV57AOBF.js";import"./NLFBHNSX.js";import"./4KTRAA2J.js";import a from"./OQ2JULON.js";import"./4VLEUN7I.js";import"./KV4ZZSNW.js";import"./FN2QMDEW.js";import"./B343BOVA.js";import"./G7DJPREL.js";import"./GC4BV7IZ.js";import{T as e}from"./AM3UTQWH.js";import"./KHKREBVZ.js";import"./5PV2GUZW.js";export default $arcgis.t(([,,,,,,,r])=>{var t=class extends r{constructor(){super(...arguments),this.entityType="item",this.selected=null}static{this.properties={entityType:32,selected:0}}};e("arcgis-portal-item-picker",t);return t},a,b,c,d,f,g,h,i)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import{h as e}from"./OUFJRLPQ.js";var a=e`:host{--calcite-dialog-max-size-y: 75vh;--calcite-dialog-background-color: var(--calcite-color-surface-1);--max-message-width: 65vw;--max-message-multiplier: .75;display:block;font-family:var(--calcite-font-family)}calcite-notice{--calcite-notice-spacing-token-large: var(--calcite-space-md)}.provider-chip{margin-inline-start:.5rem}.current-account-block{margin-bottom:var(--calcite-space-lg)}.current-account,.linked-account{--calcite-block-border-color: transparent;border:1px solid var(--calcite-color-border-3)}.linked-account:not(:last-of-type){border-bottom-width:0}.linked-accounts-block{margin-bottom:var(--calcite-space-sm)}.current-account-list,.linked-accounts-list{border:1px solid var(--calcite-color-border-2)}.bold{font-weight:var(--calcite-font-weight-medium)}.notice-title{font-weight:var(--calcite-font-weight-regular);font-size:var(--calcite-font-size-relative-base)}.account-title{font-weight:var(--calcite-font-weight-medium);font-size:var(--calcite-font-size-relative-base)}.account-description{font-weight:var(--calcite-font-weight-regular);font-size:var(--calcite-font-size-relative-sm);color:var(--calcite-color-text-2);overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2}.separator{opacity:.85}.link-account-button{margin-block:var(--calcite-space-md)}.alert-title,.alert-message{margin:0}.alert-message{margin-top:var(--calcite-space-2xs);max-width:min(var(--max-message-width),var(--calcite-alert-width, var(--calcite-dialog-max-size-x, 32rem)) * var(--max-message-multiplier))}.short-message{--max-message-width: 45vw;--max-message-multiplier: .65}.empty-accounts-info{display:flex;flex-direction:column;align-items:center;gap:var(--calcite-space-md);h4,p{margin:0}h4{font-size:var(--calcite-font-size-relative-md);line-height:var(--calcite-font-line-height-relative-snug);font-weight:var(--calcite-font-weight-medium)}}`;export{a};
2
+ import{h as e}from"./AM3UTQWH.js";var a=e`:host{--calcite-dialog-max-size-y: 75vh;--calcite-dialog-background-color: var(--calcite-color-surface-1);--max-message-width: 65vw;--max-message-multiplier: .75;display:block;font-family:var(--calcite-font-family)}calcite-notice{--calcite-notice-spacing-token-large: var(--calcite-space-md)}.provider-chip{margin-inline-start:.5rem}.current-account-block{margin-bottom:var(--calcite-space-lg)}.current-account,.linked-account{--calcite-block-border-color: transparent;border:1px solid var(--calcite-color-border-3)}.linked-account:not(:last-of-type){border-bottom-width:0}.linked-accounts-block{margin-bottom:var(--calcite-space-sm)}.current-account-list,.linked-accounts-list{border:1px solid var(--calcite-color-border-2)}.bold{font-weight:var(--calcite-font-weight-medium)}.notice-title{font-weight:var(--calcite-font-weight-regular);font-size:var(--calcite-font-size-relative-base)}.account-title{font-weight:var(--calcite-font-weight-medium);font-size:var(--calcite-font-size-relative-base)}.account-description{font-weight:var(--calcite-font-weight-regular);font-size:var(--calcite-font-size-relative-sm);color:var(--calcite-color-text-2);overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2}.separator{opacity:.85}.link-account-button{margin-block:var(--calcite-space-md)}.alert-title,.alert-message{margin:0}.alert-message{margin-top:var(--calcite-space-2xs);max-width:min(var(--max-message-width),var(--calcite-alert-width, var(--calcite-dialog-max-size-x, 32rem)) * var(--max-message-multiplier))}.short-message{--max-message-width: 45vw;--max-message-multiplier: .65}.empty-accounts-info{display:flex;flex-direction:column;align-items:center;gap:var(--calcite-space-md);h4,p{margin:0}h4{font-size:var(--calcite-font-size-relative-md);line-height:var(--calcite-font-line-height-relative-snug);font-weight:var(--calcite-font-weight-medium)}}`;export{a};
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
+ import b from"./DMS3R2W5.js";import a from"./YP7T6NKR.js";import"./JLT5GCLY.js";import"./KV4ZZSNW.js";import"./B343BOVA.js";import"./G7DJPREL.js";import"./GC4BV7IZ.js";import"./AM3UTQWH.js";import"./KHKREBVZ.js";import"./5PV2GUZW.js";export default $arcgis.t(([,{b:r}])=>{return r},a,b)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import b from"./TGCJUIEL.js";import a from"./TIPQ2ZWK.js";import{a as o}from"./MDYX3ON3.js";import{a as h}from"./WQOCWSJC.js";import"./XX6BL3DR.js";import"./657KMT6Y.js";import{K as n,Q as r,h as c,j as e}from"./OUFJRLPQ.js";import"./KHKREBVZ.js";import"./5PV2GUZW.js";export default $arcgis.t(([{c:f,d:d},{f:v}])=>{var C=c`.select-favorite-label{display:flex;justify-content:space-between;align-items:center}.favorite-actions{display:flex;justify-content:flex-end;gap:1.5rem;align-items:center}.classification-favorite-dialog{--calcite-dialog-content-space: 0;--calcite-dialog-background-color: var(--calcite-color-surface-3)}.save-new-favorite-button{display:flex;justify-content:flex-end;margin-top:.25rem;margin-bottom:1rem}.classification-favorite-item{display:flex;justify-content:space-between;padding-top:.5rem;padding-bottom:.5rem;border-bottom:1px solid var(--calcite-color-border-1)}.classification-favorite-list,.classification-favorite-input-section{margin:1.75rem 1rem}`,l=class extends n{constructor(){super(...arguments),this.messages=h(),this.selectFavoriteClassification=i=>{let a=i.target.value;if(a){this.hasUpdateError=!1;let t=this.favoriteClassifications.find(({name:s})=>s===a);t&&this.updateClassificationData(t)}},this.uploadFavoriteClassificationValueHandle=async i=>{let a=await d(this.portalItem,this.favoriteClassifications);if(this.renderFavoriteClassificationError({alertIndicatorType:"success",alertIndicatorIcon:"check",alertIndicatorInfo:i}),a){let{result:t,error:s}=a;if(s){console.error(s),this.renderFavoriteClassificationError({alertIndicatorType:"danger",alertIndicatorIcon:"exclamation-mark-triangle",alertIndicatorInfo:this.messages.uploadClassificationFavoriteError??"Failed to upload classification favorites"});return}t&&this.renderFavoriteClassificationError({alertIndicatorType:"success",alertIndicatorIcon:"check",alertIndicatorInfo:i})}},this.retrieveFavoriteClassificationHandle=async()=>{let i=await f(this.portalItem);if(i){let{result:a,error:t}=i;if(t){console.error(t),this.renderFavoriteClassificationError({alertIndicatorType:"danger",alertIndicatorIcon:"exclamation-mark-triangle",alertIndicatorInfo:this.messages.retrieveClassificationFavoriteError??"Failed to retrieve classification favorites"});return}a&&this.resetFavoriteClassification(a.favorites)}},this.changeFavoriteClassificationName=i=>{let a=i.target.value;this.newFavoriteClassificationName=a,this.hasDuplicatedClassificationError=this.favoriteClassifications.some(t=>t.name===a)},this.saveNewFavoriteClassification=async()=>{let i=this.newFavoriteClassificationName;if(this.favoriteClassifications.some(s=>s.name===i)){this.hasDuplicatedClassificationError=!0;return}if(!i)return;let a=this.deleteNonEnabledAttributes(),t={name:i,classification:a};this.favoriteClassifications=[...this.favoriteClassifications,t],await this.uploadFavoriteClassificationValueHandle(this.messages.addClassificationFavoriteSuccessMessage??"Classification Favorite added successfully"),await this.retrieveFavoriteClassificationHandle(),this.showSaveClassificationDialog=!1},this.updateFavoriteClassification=async()=>{if(!this.selectedFavoriteClassificationName){this.hasUpdateError=!0;return}await this.addFavoriteClassification(this.selectedFavoriteClassificationName),await this.retrieveFavoriteClassificationHandle()},this.deleteNonEnabledAttributes=()=>{let i=structuredClone(this.portalItem?.classification??{}),a=Object.fromEntries(Object.entries(i).filter(([t])=>this.attributeExpressionResults?.get(t)?.enabled!==!1));return{...a,...v(this.portalItem,a)}},this.addFavoriteClassification=async i=>{let a=this.deleteNonEnabledAttributes(),t={name:i,classification:a},s=this.favoriteClassifications.findIndex(m=>m.name===i);s>=0?this.favoriteClassifications[s].classification=a:this.favoriteClassifications=[...this.favoriteClassifications,t],await this.uploadFavoriteClassificationValueHandle(this.messages.updateClassificationFavoriteSuccessMessage??"Classification Favorite updated successfully")},this.removeFavoriteClassification=async i=>{this.favoriteClassifications=this.favoriteClassifications.filter(a=>a.name!==i),this.favoriteClassifications.length===0&&(this.showManageClassificationDialog=!1),await this.uploadFavoriteClassificationValueHandle(this.messages.removeClassificationFavoriteSuccessMessage??"Classification Favorite removed successfully"),await this.retrieveFavoriteClassificationHandle()},this.newFavoriteClassificationName="",this.showManageClassificationDialog=!1,this.showSaveClassificationDialog=!1,this.hasDuplicatedClassificationError=!1,this.hasUpdateError=!1,this.alertIndicator={alertIndicatorType:"danger",alertIndicatorIcon:"exclamation-mark-triangle",alertIndicatorInfo:""},this.isNotificationModalActive=!1,this.favoriteClassifications=[],this.selectedFavoriteClassificationName="",this.resetFavoriteClassification=()=>{},this.updateClassificationData=()=>{},this.renderFavoriteClassificationError=i=>{let{alertIndicatorType:a,alertIndicatorIcon:t,alertIndicatorInfo:s}=i;return e`<calcite-alert .icon=${t} .label=${this.messages.classificationNotificationHandler??"Classification notification handler"} auto-close-duration=medium open .kind=${a} @calciteAlertClose=${()=>this.alertIndicator===null}><div slot=message>${s}</div></calcite-alert>`}}static{this.properties={newFavoriteClassificationName:16,showManageClassificationDialog:16,showSaveClassificationDialog:16,hasDuplicatedClassificationError:16,hasUpdateError:16,alertIndicator:16,isNotificationModalActive:16,portalItem:0,classificationValue:0,favoriteClassifications:0,selectedFavoriteClassificationName:1,attributeExpressionResults:0,resetFavoriteClassification:0,updateClassificationData:0}}static{this.styles=C}load(){this.newFavoriteClassificationName=this.classificationValue?.banner??""}onOpenFavoriteClassificationModal(){this.newFavoriteClassificationName=this.classificationValue?.banner??"",this.showSaveClassificationDialog=!0}getValidationMessage(){return this.newFavoriteClassificationName?this.hasDuplicatedClassificationError?this.messages.duplicatedClassificationError:"":this.messages.emptyFavoriteError}render(){return e`<div>${this.favoriteClassifications.length>0?e`<div><calcite-label><div class="select-favorite-label">${this.messages.applyClassificationFavoriteLabel}<calcite-link @click=${()=>this.showManageClassificationDialog=!0}>${this.messages.manageClassificationFavoriteBtn}</calcite-link></div><calcite-combobox label=select-calcite-combobox selection-mode=single .placeholder=${this.messages.selectFavoritePlaceholder} placeholder-icon=folder-star @calciteComboboxChange=${this.selectFavoriteClassification} .status=${this.hasUpdateError?"invalid":"idle"} .validationIcon=${this.hasUpdateError?"exclamation-mark-triangle":void 0} .validationMessage=${this.hasUpdateError?this.messages.updateWarning:""}>${o(this.favoriteClassifications,({name:i})=>i,({name:i})=>e`<calcite-combobox-item .selected=${this.selectedFavoriteClassificationName===i} icon=folder-star .value=${i} .heading=${i}></calcite-combobox-item>`)}</calcite-combobox></calcite-label><div class="favorite-actions"><calcite-link icon-start=refresh @click=${this.updateFavoriteClassification}>${this.messages.updateClassificationFavoriteBtn}</calcite-link><calcite-link icon-start=star @click=${this.onOpenFavoriteClassificationModal}>${this.messages.saveNewClassificationBtn}</calcite-link></div></div>`:e`<div class="save-new-favorite-button"><calcite-link icon-start=folder-star @click=${this.onOpenFavoriteClassificationModal}>${this.messages.saveNewClassificationFavoriteBtn}</calcite-link></div>`}<calcite-dialog class="classification-favorite-dialog" overlay-positioning=fixed .heading=${this.messages.manageClassificationFavoriteLabel} .open=${this.showManageClassificationDialog} modal placement=center scale=m outside-close-disabled @calciteDialogClose=${()=>this.showManageClassificationDialog=!1}><calcite-list class="classification-favorite-list" .label=${this.messages.classificationFavoriteListLabel??"Classification Favorite list label"} selection-appearance=border selection-mode=single-persist>${o(this.favoriteClassifications,({name:i})=>i,({name:i})=>e`<calcite-list-item .label=${i} .value=${i} class="classification-favorite-item"><div slot=content-end><calcite-icon icon=trash scale=s @click=${async()=>await this.removeFavoriteClassification(i)}></calcite-icon></div></calcite-list-item>`)}</calcite-list><calcite-button slot=footer-end scale=l @click=${()=>this.showManageClassificationDialog=!1}><div>${this.messages.favoriteClassificationBtnDone}</div></calcite-button></calcite-dialog><calcite-dialog class="classification-favorite-dialog" overlay-positioning=fixed .heading=${this.messages.addFavoriteDialogHeading} .open=${this.showSaveClassificationDialog} modal placement=center scale=m outside-close-disabled @calciteDialogClose=${()=>this.showSaveClassificationDialog=!1}><calcite-label class="classification-favorite-input-section">${this.messages.addClassificationFavorite}<calcite-input id=classification-favorite-name name=classification-favorite-name scale=m .value=${this.newFavoriteClassificationName} @calciteInputInput=${this.changeFavoriteClassificationName} .status=${!this.newFavoriteClassificationName||this.hasDuplicatedClassificationError?"invalid":"idle"} validation-icon=exclamation-mark-triangle .validationMessage=${this.getValidationMessage()}></calcite-input></calcite-label><calcite-button scale=l slot=footer-end @click=${this.saveNewFavoriteClassification}>${this.messages.favoriteClassificationBtnDone}</calcite-button></calcite-dialog></div>`}};r("arcgis-portal-classification-favorite",l);return l},a,b)
2
+ import b from"./TGCJUIEL.js";import a from"./TIPQ2ZWK.js";import{a as o}from"./HBO7XTIL.js";import{a as h}from"./B343BOVA.js";import"./G7DJPREL.js";import"./GC4BV7IZ.js";import{N as n,T as r,h as c,j as e}from"./AM3UTQWH.js";import"./KHKREBVZ.js";import"./5PV2GUZW.js";export default $arcgis.t(([{c:f,d:d},{f:v}])=>{var C=c`.select-favorite-label{display:flex;justify-content:space-between;align-items:center}.favorite-actions{display:flex;justify-content:flex-end;gap:1.5rem;align-items:center}.classification-favorite-dialog{--calcite-dialog-content-space: 0;--calcite-dialog-background-color: var(--calcite-color-surface-3)}.save-new-favorite-button{display:flex;justify-content:flex-end;margin-top:.25rem;margin-bottom:1rem}.classification-favorite-item{display:flex;justify-content:space-between;padding-top:.5rem;padding-bottom:.5rem;border-bottom:1px solid var(--calcite-color-border-1)}.classification-favorite-list,.classification-favorite-input-section{margin:1.75rem 1rem}`,l=class extends n{constructor(){super(...arguments),this.messages=h(),this.selectFavoriteClassification=i=>{let a=i.target.value;if(a){this.hasUpdateError=!1;let t=this.favoriteClassifications.find(({name:s})=>s===a);t&&this.updateClassificationData(t)}},this.uploadFavoriteClassificationValueHandle=async i=>{let a=await d(this.portalItem,this.favoriteClassifications);if(this.renderFavoriteClassificationError({alertIndicatorType:"success",alertIndicatorIcon:"check",alertIndicatorInfo:i}),a){let{result:t,error:s}=a;if(s){console.error(s),this.renderFavoriteClassificationError({alertIndicatorType:"danger",alertIndicatorIcon:"exclamation-mark-triangle",alertIndicatorInfo:this.messages.uploadClassificationFavoriteError??"Failed to upload classification favorites"});return}t&&this.renderFavoriteClassificationError({alertIndicatorType:"success",alertIndicatorIcon:"check",alertIndicatorInfo:i})}},this.retrieveFavoriteClassificationHandle=async()=>{let i=await f(this.portalItem);if(i){let{result:a,error:t}=i;if(t){console.error(t),this.renderFavoriteClassificationError({alertIndicatorType:"danger",alertIndicatorIcon:"exclamation-mark-triangle",alertIndicatorInfo:this.messages.retrieveClassificationFavoriteError??"Failed to retrieve classification favorites"});return}a&&this.resetFavoriteClassification(a.favorites)}},this.changeFavoriteClassificationName=i=>{let a=i.target.value;this.newFavoriteClassificationName=a,this.hasDuplicatedClassificationError=this.favoriteClassifications.some(t=>t.name===a)},this.saveNewFavoriteClassification=async()=>{let i=this.newFavoriteClassificationName;if(this.favoriteClassifications.some(s=>s.name===i)){this.hasDuplicatedClassificationError=!0;return}if(!i)return;let a=this.deleteNonEnabledAttributes(),t={name:i,classification:a};this.favoriteClassifications=[...this.favoriteClassifications,t],await this.uploadFavoriteClassificationValueHandle(this.messages.addClassificationFavoriteSuccessMessage??"Classification Favorite added successfully"),await this.retrieveFavoriteClassificationHandle(),this.showSaveClassificationDialog=!1},this.updateFavoriteClassification=async()=>{if(!this.selectedFavoriteClassificationName){this.hasUpdateError=!0;return}await this.addFavoriteClassification(this.selectedFavoriteClassificationName),await this.retrieveFavoriteClassificationHandle()},this.deleteNonEnabledAttributes=()=>{let i=structuredClone(this.portalItem?.classification??{}),a=Object.fromEntries(Object.entries(i).filter(([t])=>this.attributeExpressionResults?.get(t)?.enabled!==!1));return{...a,...v(this.portalItem,a)}},this.addFavoriteClassification=async i=>{let a=this.deleteNonEnabledAttributes(),t={name:i,classification:a},s=this.favoriteClassifications.findIndex(m=>m.name===i);s>=0?this.favoriteClassifications[s].classification=a:this.favoriteClassifications=[...this.favoriteClassifications,t],await this.uploadFavoriteClassificationValueHandle(this.messages.updateClassificationFavoriteSuccessMessage??"Classification Favorite updated successfully")},this.removeFavoriteClassification=async i=>{this.favoriteClassifications=this.favoriteClassifications.filter(a=>a.name!==i),this.favoriteClassifications.length===0&&(this.showManageClassificationDialog=!1),await this.uploadFavoriteClassificationValueHandle(this.messages.removeClassificationFavoriteSuccessMessage??"Classification Favorite removed successfully"),await this.retrieveFavoriteClassificationHandle()},this.newFavoriteClassificationName="",this.showManageClassificationDialog=!1,this.showSaveClassificationDialog=!1,this.hasDuplicatedClassificationError=!1,this.hasUpdateError=!1,this.alertIndicator={alertIndicatorType:"danger",alertIndicatorIcon:"exclamation-mark-triangle",alertIndicatorInfo:""},this.isNotificationModalActive=!1,this.favoriteClassifications=[],this.selectedFavoriteClassificationName="",this.resetFavoriteClassification=()=>{},this.updateClassificationData=()=>{},this.renderFavoriteClassificationError=i=>{let{alertIndicatorType:a,alertIndicatorIcon:t,alertIndicatorInfo:s}=i;return e`<calcite-alert .icon=${t} .label=${this.messages.classificationNotificationHandler??"Classification notification handler"} auto-close-duration=medium open .kind=${a} @calciteAlertClose=${()=>this.alertIndicator===null}><div slot=message>${s}</div></calcite-alert>`}}static{this.properties={newFavoriteClassificationName:16,showManageClassificationDialog:16,showSaveClassificationDialog:16,hasDuplicatedClassificationError:16,hasUpdateError:16,alertIndicator:16,isNotificationModalActive:16,portalItem:0,classificationValue:0,favoriteClassifications:0,selectedFavoriteClassificationName:1,attributeExpressionResults:0,resetFavoriteClassification:0,updateClassificationData:0}}static{this.styles=C}load(){this.newFavoriteClassificationName=this.classificationValue?.banner??""}onOpenFavoriteClassificationModal(){this.newFavoriteClassificationName=this.classificationValue?.banner??"",this.showSaveClassificationDialog=!0}getValidationMessage(){return this.newFavoriteClassificationName?this.hasDuplicatedClassificationError?this.messages.duplicatedClassificationError:"":this.messages.emptyFavoriteError}render(){return e`<div>${this.favoriteClassifications.length>0?e`<div><calcite-label><div class="select-favorite-label">${this.messages.applyClassificationFavoriteLabel}<calcite-link @click=${()=>this.showManageClassificationDialog=!0}>${this.messages.manageClassificationFavoriteBtn}</calcite-link></div><calcite-combobox label=select-calcite-combobox selection-mode=single .placeholder=${this.messages.selectFavoritePlaceholder} placeholder-icon=folder-star @calciteComboboxChange=${this.selectFavoriteClassification} .status=${this.hasUpdateError?"invalid":"idle"} .validationIcon=${this.hasUpdateError?"exclamation-mark-triangle":void 0} .validationMessage=${this.hasUpdateError?this.messages.updateWarning:""}>${o(this.favoriteClassifications,({name:i})=>i,({name:i})=>e`<calcite-combobox-item .selected=${this.selectedFavoriteClassificationName===i} icon=folder-star .value=${i} .heading=${i}></calcite-combobox-item>`)}</calcite-combobox></calcite-label><div class="favorite-actions"><calcite-link icon-start=refresh @click=${this.updateFavoriteClassification}>${this.messages.updateClassificationFavoriteBtn}</calcite-link><calcite-link icon-start=star @click=${this.onOpenFavoriteClassificationModal}>${this.messages.saveNewClassificationBtn}</calcite-link></div></div>`:e`<div class="save-new-favorite-button"><calcite-link icon-start=folder-star @click=${this.onOpenFavoriteClassificationModal}>${this.messages.saveNewClassificationFavoriteBtn}</calcite-link></div>`}<calcite-dialog class="classification-favorite-dialog" overlay-positioning=fixed .heading=${this.messages.manageClassificationFavoriteLabel} .open=${this.showManageClassificationDialog} modal placement=center scale=m outside-close-disabled @calciteDialogClose=${()=>this.showManageClassificationDialog=!1}><calcite-list class="classification-favorite-list" .label=${this.messages.classificationFavoriteListLabel??"Classification Favorite list label"} selection-appearance=border selection-mode=single-persist>${o(this.favoriteClassifications,({name:i})=>i,({name:i})=>e`<calcite-list-item .label=${i} .value=${i} class="classification-favorite-item"><div slot=content-end><calcite-icon icon=trash scale=s @click=${async()=>await this.removeFavoriteClassification(i)}></calcite-icon></div></calcite-list-item>`)}</calcite-list><calcite-button slot=footer-end scale=l @click=${()=>this.showManageClassificationDialog=!1}><div>${this.messages.favoriteClassificationBtnDone}</div></calcite-button></calcite-dialog><calcite-dialog class="classification-favorite-dialog" overlay-positioning=fixed .heading=${this.messages.addFavoriteDialogHeading} .open=${this.showSaveClassificationDialog} modal placement=center scale=m outside-close-disabled @calciteDialogClose=${()=>this.showSaveClassificationDialog=!1}><calcite-label class="classification-favorite-input-section">${this.messages.addClassificationFavorite}<calcite-input id=classification-favorite-name name=classification-favorite-name scale=m .value=${this.newFavoriteClassificationName} @calciteInputInput=${this.changeFavoriteClassificationName} .status=${!this.newFavoriteClassificationName||this.hasDuplicatedClassificationError?"invalid":"idle"} validation-icon=exclamation-mark-triangle .validationMessage=${this.getValidationMessage()}></calcite-input></calcite-label><calcite-button scale=l slot=footer-end @click=${this.saveNewFavoriteClassification}>${this.messages.favoriteClassificationBtnDone}</calcite-button></calcite-dialog></div>`}};r("arcgis-portal-classification-favorite",l);return l},a,b)
@@ -1,5 +1,5 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import{a as ee}from"./BDMPW4YT.js";import{e as $e}from"./R5LNWMD4.js";import{a as Se}from"./DAAON2UO.js";import{a as we}from"./S4Y7FPSQ.js";import{a as ye}from"./FN2QMDEW.js";import{a as Y}from"./WQOCWSJC.js";import"./XX6BL3DR.js";import"./657KMT6Y.js";import{I as de,J as fe,K as xe,N as me,Q as be,h as ke,j as S,v as V}from"./OUFJRLPQ.js";import"./KHKREBVZ.js";import"./K3GAZFRI.js";import"./5PV2GUZW.js";function ie(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var q=ie();function qe(r){q=r}var C={exec:()=>null};function P(r){let e=[];return t=>{let i=Math.max(0,Math.min(3,t-1)),n=e[i];return n||(n=r(i),e[i]=n),n}}function h(r,e=""){let t=typeof r=="string"?r:r.source,i={replace:(n,s)=>{let a=typeof s=="string"?s:s.source;return a=a.replace(w.caret,"$1"),t=t.replace(n,a),i},getRegex:()=>new RegExp(t,e)};return i}var Fe=((r="")=>{try{return!!new RegExp("(?<=1)(?<!1)"+r)}catch{return!1}})(),w={codeRemoveIndent:/^(?: {0,3}\t| {1,4})/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,endingSpaceTabChar:/[ \t]$/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,leadingSpaceTab:/^[ \t]+/,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,blockquoteMarkerWhitespace:/^( {0,3}>)([ \t]+)/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,numericCharacterReference:/&#(?:(\d{1,7})|[Xx]([A-Fa-f0-9]{1,6}));/,numericCharacterReferenceOrAmpersand:/&#(?:(\d{1,7})|[Xx]([A-Fa-f0-9]{1,6}));|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:r=>new RegExp(`^( {0,3}${r})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:P(r=>new RegExp(`^ {0,${r}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),hrRegex:P(r=>new RegExp(`^ {0,${r}}((?:-[ ]*){3,}|(?:_[ ]*){3,}|(?:\\*[ ]*){3,})(?:\\n+|$)`)),fencesBeginRegex:P(r=>new RegExp(`^ {0,${r}}(?:\`\`\`|~~~)`)),headingBeginRegex:P(r=>new RegExp(`^ {0,${r}}#{1,6}(?:\\s|$)`)),pedanticHeadingBeginRegex:P(r=>new RegExp(`^ {0,${r}}#`)),htmlBeginRegex:P(r=>new RegExp(`^ {0,${r}}(?:</?(?:${N})(?: +|$|/?>)|<(?:(?:script|pre|style|textarea)(?:[\\s>]|$)|!--)|<\\?|<![A-Za-z]|<!\\[CDATA\\[)`,"i")),blockquoteBeginRegex:P(r=>new RegExp(`^ {0,${r}}>`))},Ge=/^(?:[ \t]*(?:\n|$))+/,Xe=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Ue=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,H=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,We=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,se=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,Le=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |fences|blockquote|heading|hr|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Be=h(Le).replace(/bull/g,se).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/hr/g,/ {0,3}(?:(?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),Ke=h(Le).replace(/bull/g,se).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/hr/g,/ {0,3}(?:(?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),le=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table|[ \t]+\n)[^\n]+)*)/,Je=/^[^\n]+/,ae=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,Ve=h(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",ae).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Ye=h(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g,se).getRegex(),N="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",oe=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,et=h("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n*|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>[^\\n]*\\n*|$)|<![A-Z][\\s\\S]*?(?:>[^\\n]*\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>[^\\n]*\\n*|$)|</?(tag)(?:[ \\t]+|\\n|/?>|$)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!(?:script|pre|style|textarea)(?![a-z0-9-]))([a-z][a-z0-9-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</[a-z][a-z0-9-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",oe).replace("tag",N).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Ze=r=>h(le).replace("hr",H).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list",r).replace("html"," {0,3}(?:</?(?:tag)(?: +|\\n|/?>)|<(?:(?:script|pre|style|textarea)(?:[\\s>]|$)|!--)|<\\?|<![A-Za-z]|<!\\[CDATA\\[)").replace("tag",N).getRegex(),tt=Ze(/ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/),nt=Ze(/ {0,3}(?:[*+-]|\d{1,9}[.)])(?:[ \t]|\n|$)/),rt=h(/^( {0,3}> ?(?:(?![ \t]*(?:\n|$))(paragraph)|[^\n]*)(?:\n|$))+/).replace("paragraph",nt).getRegex(),ce={blockquote:rt,code:Xe,def:Ve,fences:Ue,heading:We,hr:H,html:et,lheading:Be,list:Ye,newline:Ge,paragraph:tt,table:C,text:Je},Re=h("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",H).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html"," {0,3}(?:</?(?:tag)(?: +|\\n|/?>)|<(?:(?:script|pre|style|textarea)(?:[\\s>]|$)|!--)|<\\?|<![A-Za-z]|<!\\[CDATA\\[)").replace("tag",N).getRegex(),it={...ce,lheading:Ke,table:Re,paragraph:h(le).replace("hr",H).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Re).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html"," {0,3}(?:</?(?:tag)(?: +|\\n|/?>)|<(?:(?:script|pre|style|textarea)(?:[\\s>]|$)|!--)|<\\?|<![A-Za-z]|<!\\[CDATA\\[)").replace("tag",N).getRegex()},st={...ce,html:h(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",oe).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:C,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:h(le).replace("hr",H).replace("heading",` *#{1,6} *[^
2
+ import{a as ee}from"./CMNTOT5D.js";import{e as $e}from"./R5LNWMD4.js";import{a as Se}from"./DAAON2UO.js";import{a as we}from"./DV57AOBF.js";import{a as ye}from"./FN2QMDEW.js";import{a as Y}from"./B343BOVA.js";import"./G7DJPREL.js";import"./GC4BV7IZ.js";import{L as de,M as fe,N as xe,Q as me,T as be,h as ke,j as S,v as V}from"./AM3UTQWH.js";import"./KHKREBVZ.js";import"./K3GAZFRI.js";import"./5PV2GUZW.js";function ie(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var q=ie();function qe(r){q=r}var C={exec:()=>null};function P(r){let e=[];return t=>{let i=Math.max(0,Math.min(3,t-1)),n=e[i];return n||(n=r(i),e[i]=n),n}}function h(r,e=""){let t=typeof r=="string"?r:r.source,i={replace:(n,s)=>{let a=typeof s=="string"?s:s.source;return a=a.replace(w.caret,"$1"),t=t.replace(n,a),i},getRegex:()=>new RegExp(t,e)};return i}var Fe=((r="")=>{try{return!!new RegExp("(?<=1)(?<!1)"+r)}catch{return!1}})(),w={codeRemoveIndent:/^(?: {0,3}\t| {1,4})/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,endingSpaceTabChar:/[ \t]$/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,leadingSpaceTab:/^[ \t]+/,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,blockquoteMarkerWhitespace:/^( {0,3}>)([ \t]+)/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,numericCharacterReference:/&#(?:(\d{1,7})|[Xx]([A-Fa-f0-9]{1,6}));/,numericCharacterReferenceOrAmpersand:/&#(?:(\d{1,7})|[Xx]([A-Fa-f0-9]{1,6}));|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:r=>new RegExp(`^( {0,3}${r})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:P(r=>new RegExp(`^ {0,${r}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),hrRegex:P(r=>new RegExp(`^ {0,${r}}((?:-[ ]*){3,}|(?:_[ ]*){3,}|(?:\\*[ ]*){3,})(?:\\n+|$)`)),fencesBeginRegex:P(r=>new RegExp(`^ {0,${r}}(?:\`\`\`|~~~)`)),headingBeginRegex:P(r=>new RegExp(`^ {0,${r}}#{1,6}(?:\\s|$)`)),pedanticHeadingBeginRegex:P(r=>new RegExp(`^ {0,${r}}#`)),htmlBeginRegex:P(r=>new RegExp(`^ {0,${r}}(?:</?(?:${N})(?: +|$|/?>)|<(?:(?:script|pre|style|textarea)(?:[\\s>]|$)|!--)|<\\?|<![A-Za-z]|<!\\[CDATA\\[)`,"i")),blockquoteBeginRegex:P(r=>new RegExp(`^ {0,${r}}>`))},Ge=/^(?:[ \t]*(?:\n|$))+/,Xe=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Ue=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,H=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,We=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,se=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,Le=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |fences|blockquote|heading|hr|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Be=h(Le).replace(/bull/g,se).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/hr/g,/ {0,3}(?:(?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),Ke=h(Le).replace(/bull/g,se).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/hr/g,/ {0,3}(?:(?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),le=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table|[ \t]+\n)[^\n]+)*)/,Je=/^[^\n]+/,ae=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,Ve=h(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",ae).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Ye=h(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g,se).getRegex(),N="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",oe=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,et=h("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n*|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>[^\\n]*\\n*|$)|<![A-Z][\\s\\S]*?(?:>[^\\n]*\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>[^\\n]*\\n*|$)|</?(tag)(?:[ \\t]+|\\n|/?>|$)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!(?:script|pre|style|textarea)(?![a-z0-9-]))([a-z][a-z0-9-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</[a-z][a-z0-9-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",oe).replace("tag",N).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Ze=r=>h(le).replace("hr",H).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list",r).replace("html"," {0,3}(?:</?(?:tag)(?: +|\\n|/?>)|<(?:(?:script|pre|style|textarea)(?:[\\s>]|$)|!--)|<\\?|<![A-Za-z]|<!\\[CDATA\\[)").replace("tag",N).getRegex(),tt=Ze(/ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/),nt=Ze(/ {0,3}(?:[*+-]|\d{1,9}[.)])(?:[ \t]|\n|$)/),rt=h(/^( {0,3}> ?(?:(?![ \t]*(?:\n|$))(paragraph)|[^\n]*)(?:\n|$))+/).replace("paragraph",nt).getRegex(),ce={blockquote:rt,code:Xe,def:Ve,fences:Ue,heading:We,hr:H,html:et,lheading:Be,list:Ye,newline:Ge,paragraph:tt,table:C,text:Je},Re=h("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",H).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html"," {0,3}(?:</?(?:tag)(?: +|\\n|/?>)|<(?:(?:script|pre|style|textarea)(?:[\\s>]|$)|!--)|<\\?|<![A-Za-z]|<!\\[CDATA\\[)").replace("tag",N).getRegex(),it={...ce,lheading:Ke,table:Re,paragraph:h(le).replace("hr",H).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Re).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html"," {0,3}(?:</?(?:tag)(?: +|\\n|/?>)|<(?:(?:script|pre|style|textarea)(?:[\\s>]|$)|!--)|<\\?|<![A-Za-z]|<!\\[CDATA\\[)").replace("tag",N).getRegex()},st={...ce,html:h(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",oe).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:C,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:h(le).replace("hr",H).replace("heading",` *#{1,6} *[^
3
3
  ]`).replace("lheading",Be).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},lt=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,at=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,De=/^( {2,}|\\)\n(?!\s*$)[ \t]*/,ot=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,A=/[\p{P}\p{S}]/u,Z=/[\s\p{P}\p{S}]/u,F=/[^\s\p{P}\p{S}]/u,ct=h(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,Z).getRegex(),pt=/[\p{Pi}\p{Ps}"']/u,Me=/(?!~)[\p{P}\p{S}]/u,ht=/(?!~)[\s\p{P}\p{S}]/u,ut=/(?:[^\s\p{P}\p{S}]|~)/u,gt=h(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",Fe?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),Oe=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,kt=h(Oe,"u").replace(/punct/g,A).getRegex(),dt=h(Oe,"u").replace(/punct/g,Me).getRegex(),ft=/^(?:\*+(?:((?!\*)(?!openQuote)punct)|([^\s*]))?)|^_+(?:((?!_)(?!openQuote)punct)|([^\s_]))?/,xt=h(ft,"u").replace(/openQuote/g,pt).replace(/punct/g,A).getRegex(),Qe="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",mt=h(Qe,"gu").replace(/notPunctSpace/g,F).replace(/punctSpace/g,Z).replace(/punct/g,A).getRegex(),bt=h(Qe,"gu").replace(/notPunctSpace/g,ut).replace(/punctSpace/g,ht).replace(/punct/g,Me).getRegex(),wt="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)[\\s](\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|(?:(?!\\*)punct|notPunctSpace)(\\*+)(?!\\*)(?=notPunctSpace)",yt=h(wt,"gu").replace(/notPunctSpace/g,F).replace(/punctSpace/g,Z).replace(/punct/g,A).getRegex(),$t=h("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,F).replace(/punctSpace/g,Z).replace(/punct/g,A).getRegex(),St="^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)[\\s](_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)|(?:(?!_)punct|notPunctSpace)(_+)(?!_)(?=notPunctSpace)",Rt=h(St,"gu").replace(/notPunctSpace/g,F).replace(/punctSpace/g,Z).replace(/punct/g,A).getRegex(),zt=h(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,A).getRegex(),At="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",Tt=h(At,"gu").replace(/notPunctSpace/g,F).replace(/punctSpace/g,Z).replace(/punct/g,A).getRegex(),_t=h(/\\(punct)/,"gu").replace(/punct/g,A).getRegex(),vt=h(/(`+)(?:[^`]|[^`][\s\S]*?[^`])\1(?!`)|`+|\\(punct)/,"gu").replace(/punct/g,A).getRegex(),Pt=h(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),It=h(oe).replace("(?:-->|$)","-->").getRegex(),Ct=h("^comment|^</[a-zA-Z][a-zA-Z0-9-]*\\s*>|^<[a-zA-Z][a-zA-Z0-9-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",It).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),je=/\[(?:\\[\s\S]|[^\[\]\\])*\]/,U=h(/(?:\[(?:brackets|\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/).replace("brackets",je).getRegex(),Et=h(/^!?\[(label)\]\([ \t\n]*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?[ \t\n]*\)/).replace("label",U).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]+|(?=\))/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),qt=h(/^!?\[(label)\]\[(ref)\]/).replace("label",U).replace("ref",ae).getRegex(),Lt=h(/^!?\[(ref)\](?:\[\])?/).replace("ref",ae).getRegex(),ze=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\]){1,999}/,Bt=h(/(?:[^\[\]\\`]*(?:\[(?:brackets|\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\]))){0,999}?[^\[\]\\`]*?/).replace("brackets",je).getRegex(),Zt=h("reflink|nolink(?!\\()","g").replace("reflink",h(/^!?\[(label)\]\[(ref)\]/).replace("label",Bt).replace("ref",ze).getRegex()).replace("nolink",h(/^!?\[(ref)\](?:\[\])?/).replace("ref",ze).getRegex()).getRegex(),Ae=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,Dt=/[A-Za-z0-9._+-]+@[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![\w-])/,Mt=h(/(?:mailto:email|xmpp:email(?:\/[A-Za-z0-9@.]+)?)/).replace(/email/g,Dt).getRegex(),pe={_backpedal:C,anyPunctuation:_t,anyPunctuationOutsideCode:vt,autolink:Pt,blockSkip:gt,br:De,code:at,del:C,delLDelim:C,delRDelim:C,emStrongLDelim:kt,emStrongRDelimAst:mt,emStrongRDelimUnd:$t,escape:lt,link:Et,nolink:Lt,punctuation:ct,reflink:qt,reflinkSearch:Zt,tag:Ct,text:ot,url:C},Ot={...pe,emStrongLDelim:xt,emStrongRDelimAst:yt,emStrongRDelimUnd:Rt,link:h(/^!?\[(label)\]\((.*?)\)/).replace("label",U).getRegex(),reflink:h(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",U).getRegex()},te={...pe,emStrongRDelimAst:bt,emStrongLDelim:dt,delLDelim:zt,delRDelim:Tt,url:h(/^emailProtocol|^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("emailProtocol",Mt).replace("protocol",Ae).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![\w-])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:h(/^(?:[^a-zA-Z0-9](?=emailProtocol)|(`+|~+|[^`~])(?:(?=[`~])|(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9](?=emailProtocol)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))))/).replace("protocol",Ae).replace(/emailProtocol/g,/(?:mailto|xmpp):/).getRegex()},Qt={...te,br:h(De).replace("{2,}","*").getRegex(),text:h(te.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},G={normal:ce,gfm:it,pedantic:st},Q={normal:pe,gfm:te,breaks:Qt,pedantic:Ot},jt={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Te=r=>jt[r];function $(r,e){if(e){if(w.escapeTest.test(r))return r.replace(w.escapeReplace,Te)}else if(w.escapeTestNoEncode.test(r))return r.replace(w.escapeReplaceNoEncode,Te);return r}function Ht(r){return w.numericCharacterReference.test(r)?r.replace(w.numericCharacterReferenceOrAmpersand,(e,t,i)=>{if(t===void 0&&i===void 0)return"&amp;";let n=t===void 0?Number.parseInt(i,16):Number.parseInt(t,10);return n===0||n>1114111||n>=55296&&n<=57343?"\uFFFD":n===38?"&amp;":String.fromCodePoint(n)}):r}function _e(r){try{r=encodeURI(r).replace(w.percentDecode,"%")}catch{return null}return r}function ve(r,e){let t=r.replace(w.findPipe,(s,a,l)=>{let p=!1,c=a;for(;--c>=0&&l[c]==="\\";)p=!p;return p?"|":" |"}),i=t.split(w.splitPipe),n=0;if(i[0].trim()||i.shift(),i.length>0&&!i.at(-1)?.trim()&&i.pop(),e)if(i.length>e)i.splice(e);else for(;i.length<e;)i.push("");for(;n<i.length;n++)i[n]=i[n].trim().replace(w.slashPipe,"|");return i}function _(r,e,t){let i=r.length;if(i===0)return"";let n=0;for(;n<i;){let s=r.charAt(i-n-1);if(s===e&&!t)n++;else if(s!==e&&t)n++;else break}return r.slice(0,i-n)}function Pe(r){let e=r.split(`
4
4
  `),t=e.length-1;for(;t>=0&&w.blankLine.test(e[t]);)t--;return e.length-t<=2?r:e.slice(0,t+1).join(`
5
5
  `)}function W(r){return r.trim().toLowerCase().toUpperCase().toLowerCase()}function Ie(r,e){if(r.indexOf(e[0])===-1&&r.indexOf(e[1])===-1)return-1;let t=0;for(let i=0;i<r.length;i++)if(r[i]==="\\")i++;else if(r[i]===e[0])t++;else if(r[i]===e[1]&&(t--,t<0))return i;return t>0?-2:-1}function X(r,e=0){let t=e,i="";for(let n of r)if(n===" "){let s=4-t%4;i+=" ".repeat(s),t+=s}else i+=n,t++;return i}function Ce(r,e,t,i,n){let s=e.href,a=e.title||null,l=r[1].replace(n.other.outputLinkReplace,"$1"),p=r[0].charAt(0)==="!",c=i.state.inLink,o=i.state.linkEmitted,u=i.state.inRawBlock;i.state.inLink=!0,i.state.linkEmitted=!1;let f=i.inlineTokens(l),g=i.state.linkEmitted;if(i.state.linkEmitted=o,i.state.inLink=c,!p){if(g){i.state.inRawBlock=u;return}i.state.linkEmitted=!0}return{type:p?"image":"link",raw:t,href:s,title:a,text:l,tokens:f}}function Nt(r,e,t){let i=r.match(t.other.indentCodeCompensation);if(i===null)return e;let n=i[1];return e.split(`
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import{a}from"./7ECLKNGV.js";import"./WQOCWSJC.js";import"./XX6BL3DR.js";import"./657KMT6Y.js";import"./OUFJRLPQ.js";import"./KHKREBVZ.js";import"./5PV2GUZW.js";export{a as ArcgisPortalBrowserSort};
2
+ import{a}from"./TO666HVV.js";import"./B343BOVA.js";import"./G7DJPREL.js";import"./GC4BV7IZ.js";import"./AM3UTQWH.js";import"./KHKREBVZ.js";import"./5PV2GUZW.js";export{a as ArcgisPortalBrowserSort};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import{i as o}from"./OUFJRLPQ.js";var c={INITIAL:0,PENDING:1,COMPLETE:2,ERROR:3},n=Symbol(),e=class{get taskComplete(){return this.t||(this.i===1?this.t=new Promise(((t,s)=>{this.o=t,this.h=s})):this.i===3?this.t=Promise.reject(this.l):this.t=Promise.resolve(this.u)),this.t}constructor(t,s,r){this.p=0,this.i=0,(this._=t).addController(this);let i=typeof s=="object"?s:{task:s,args:r};this.v=i.task,this.j=i.args,this.m=i.argsEqual??u,this.k=i.onComplete,this.A=i.onError,this.autoRun=i.autoRun??!0,"initialValue"in i&&(this.u=i.initialValue,this.i=2,this.O=this.T?.())}hostUpdate(){this.autoRun===!0&&this.S()}hostUpdated(){this.autoRun==="afterUpdate"&&this.S()}T(){if(this.j===void 0)return;let t=this.j();if(!Array.isArray(t))throw Error("The args function must return an array");return t}async S(){let t=this.T(),s=this.O;this.O=t,t===s||t===void 0||s!==void 0&&this.m(s,t)||await this.run(t)}async run(t){let s,r;t??=this.T(),this.O=t,this.i===1?this.q?.abort():(this.t=void 0,this.o=void 0,this.h=void 0),this.i=1,this.autoRun==="afterUpdate"?queueMicrotask((()=>this._.requestUpdate())):this._.requestUpdate();let i=++this.p;this.q=new AbortController;let a=!1;try{s=await this.v(t,{signal:this.q.signal})}catch(l){a=!0,r=l}if(this.p===i){if(s===n)this.i=0;else{if(a===!1){try{this.k?.(s)}catch{}this.i=2,this.o?.(s)}else{try{this.A?.(r)}catch{}this.i=3,this.h?.(r)}this.u=s,this.l=r}this._.requestUpdate()}}abort(t){this.i===1&&this.q?.abort(t)}get value(){return this.u}get error(){return this.l}get status(){return this.i}render(t){switch(this.i){case 0:return t.initial?.();case 1:return t.pending?.();case 2:return t.complete?.(this.value);case 3:return t.error?.(this.error);default:throw Error("Unexpected status: "+this.i)}}},u=(h,t)=>h===t||h.length===t.length&&h.every(((s,r)=>!o(s,t[r])));export{c as a,e as b};
2
+ import{i as o}from"./AM3UTQWH.js";var c={INITIAL:0,PENDING:1,COMPLETE:2,ERROR:3},n=Symbol(),e=class{get taskComplete(){return this.t||(this.i===1?this.t=new Promise(((t,s)=>{this.o=t,this.h=s})):this.i===3?this.t=Promise.reject(this.l):this.t=Promise.resolve(this.u)),this.t}constructor(t,s,r){this.p=0,this.i=0,(this._=t).addController(this);let i=typeof s=="object"?s:{task:s,args:r};this.v=i.task,this.j=i.args,this.m=i.argsEqual??u,this.k=i.onComplete,this.A=i.onError,this.autoRun=i.autoRun??!0,"initialValue"in i&&(this.u=i.initialValue,this.i=2,this.O=this.T?.())}hostUpdate(){this.autoRun===!0&&this.S()}hostUpdated(){this.autoRun==="afterUpdate"&&this.S()}T(){if(this.j===void 0)return;let t=this.j();if(!Array.isArray(t))throw Error("The args function must return an array");return t}async S(){let t=this.T(),s=this.O;this.O=t,t===s||t===void 0||s!==void 0&&this.m(s,t)||await this.run(t)}async run(t){let s,r;t??=this.T(),this.O=t,this.i===1?this.q?.abort():(this.t=void 0,this.o=void 0,this.h=void 0),this.i=1,this.autoRun==="afterUpdate"?queueMicrotask((()=>this._.requestUpdate())):this._.requestUpdate();let i=++this.p;this.q=new AbortController;let a=!1;try{s=await this.v(t,{signal:this.q.signal})}catch(l){a=!0,r=l}if(this.p===i){if(s===n)this.i=0;else{if(a===!1){try{this.k?.(s)}catch{}this.i=2,this.o?.(s)}else{try{this.A?.(r)}catch{}this.i=3,this.h?.(r)}this.u=s,this.l=r}this._.requestUpdate()}}abort(t){this.i===1&&this.q?.abort(t)}get value(){return this.u}get error(){return this.l}get status(){return this.i}render(t){switch(this.i){case 0:return t.initial?.();case 1:return t.pending?.();case 2:return t.complete?.(this.value);case 3:return t.error?.(this.error);default:throw Error("Unexpected status: "+this.i)}}},u=(h,t)=>h===t||h.length===t.length&&h.every(((s,r)=>!o(s,t[r])));export{c as a,e as b};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import{a as v}from"./657KMT6Y.js";import{s as y,t as m,x as h}from"./OUFJRLPQ.js";export default $arcgis.t(([{on:B,watch:E},{createObservable:x,trackAccess:w},{property:C,subclass:b},g])=>{var Y=(r,e)=>n=>P(n,r),u=class extends h{constructor(e,n){super(e),this.Y=new Map,this.A=void 0,this.#o=x();let t=this;t.#e=n,t.Z(),t.setProvisionalExports(k(e,new WeakRef(t),e.M.length-1,t.instance,t.Y),!1),y(e,s=>{if(s){let c=E(()=>e[s],o=>{if(o===t.instance)return;let i=t.instance;t.exports=o,t.instance=o,t.Y.forEach((a,l)=>e.requestUpdate(a,i[l])),t.#t&&i.destroy(),t.#t=!1},{sync:!0});t.onDestroy(c.remove)}},t.exports)}#t;#o;#e;get exports(){return w(this.#o),super.exports}set exports(e){super.exports=e,this.#o.notify()}Z(){let e=this;e.instance="prototype"in e.#e&&"declaredClass"in e.#e.prototype?new e.#e:e.#e(),e.#t=!0}hostConnected(){this.exports=this.instance}hostDestroy(){this.#t&&this.instance.destroy?.()}},P=v(u),k=(r,e,n,t,s)=>new Proxy(t,{get:(c,o)=>{let i=c[o];if(typeof o=="symbol"||s.has(o))return i;let a=r.M[n];return a.A=o,m(r,l=>{if(a.A=void 0,l!==void 0){let p=l.key;s.set(o,p);let d=r.constructor.getPropertyOptions(p),f=o!==p&&p.toLowerCase().includes("disable");A(e,d,o,p,f),d.i===void 0&&O(d,n,o,f)}},i)}}),A=(r,e,n,t,s,c)=>c=E(()=>{let o=r.deref();return o===void 0||o.component.manager.destroyed?c=c.remove():o.exports[n]},(o,i)=>{if(!c)return;r.deref().component?.requestUpdate(t,s?!i:i),e.c=!1},{sync:!0}),O=(r,e,n,t)=>{r.d.get=function(){let s=this.M[e]?.exports[n];return t?!s:s},r.d.set=function(s){let c=this.M[e];c.A!==n&&(c.exports[n]=t?!s:s)}};var T=r=>{let e=class extends g{},n=typeof r=="function"?r():r,t=Object.getOwnPropertyDescriptors(n);for(let[c,o]of Object.entries(t))Object.defineProperty(e.prototype,c,o),C()(e.prototype,c);let s=b()(e);return new s};return{a:Y,b:T}},"core/reactiveUtils","applications/Components/reactiveUtils","core/accessorSupport/decorators","core/Accessor")
2
+ import{a as v}from"./GC4BV7IZ.js";import{s as y,t as m,x as h}from"./AM3UTQWH.js";export default $arcgis.t(([{on:B,watch:E},{createObservable:x,trackAccess:w},{property:C,subclass:b},g])=>{var Y=(r,e)=>n=>P(n,r),u=class extends h{constructor(e,n){super(e),this.Y=new Map,this.A=void 0,this.#o=x();let t=this;t.#e=n,t.Z(),t.setProvisionalExports(k(e,new WeakRef(t),e.M.length-1,t.instance,t.Y),!1),y(e,s=>{if(s){let c=E(()=>e[s],o=>{if(o===t.instance)return;let i=t.instance;t.exports=o,t.instance=o,t.Y.forEach((a,l)=>e.requestUpdate(a,i[l])),t.#t&&i.destroy(),t.#t=!1},{sync:!0});t.onDestroy(c.remove)}},t.exports)}#t;#o;#e;get exports(){return w(this.#o),super.exports}set exports(e){super.exports=e,this.#o.notify()}Z(){let e=this;e.instance="prototype"in e.#e&&"declaredClass"in e.#e.prototype?new e.#e:e.#e(),e.#t=!0}hostConnected(){this.exports=this.instance}hostDestroy(){this.#t&&this.instance.destroy?.()}},P=v(u),k=(r,e,n,t,s)=>new Proxy(t,{get:(c,o)=>{let i=c[o];if(typeof o=="symbol"||s.has(o))return i;let a=r.M[n];return a.A=o,m(r,l=>{if(a.A=void 0,l!==void 0){let p=l.key;s.set(o,p);let d=r.constructor.getPropertyOptions(p),f=o!==p&&p.toLowerCase().includes("disable");A(e,d,o,p,f),d.i===void 0&&O(d,n,o,f)}},i)}}),A=(r,e,n,t,s,c)=>c=E(()=>{let o=r.deref();return o===void 0||o.component.manager.destroyed?c=c.remove():o.exports[n]},(o,i)=>{if(!c)return;r.deref().component?.requestUpdate(t,s?!i:i),e.c=!1},{sync:!0}),O=(r,e,n,t)=>{r.d.get=function(){let s=this.M[e]?.exports[n];return t?!s:s},r.d.set=function(s){let c=this.M[e];c.A!==n&&(c.exports[n]=t?!s:s)}};var T=r=>{let e=class extends g{},n=typeof r=="function"?r():r,t=Object.getOwnPropertyDescriptors(n);for(let[c,o]of Object.entries(t))Object.defineProperty(e.prototype,c,o),C()(e.prototype,c);let s=b()(e);return new s};return{a:Y,b:T}},"core/reactiveUtils","applications/Components/reactiveUtils","core/accessorSupport/decorators","core/Accessor")
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
+ import b from"./TIPQ2ZWK.js";import a from"./OQ2JULON.js";import{a as e}from"./4VLEUN7I.js";export default $arcgis.t(([u,{a:n,d:o},{e:t}])=>{async function m(s){let r=`${s.restUrl}/portals/${s.id}/approvedApps`;return await t(r,{query:{returnAllApps:!1}})}async function d(s){let r=`${s.restUrl}/portals/self/subscriptionInfo`,{result:a}=await t(r);return a?.orgCapabilities||[]}async function w(s,r){let a=`${s.restUrl}/portals/self/settings`,{result:i}=await t(a,r);return i}async function g(s){let r=`${s.restUrl}/portals/self/servers`;return(await t(r))?.result?.servers||[]}async function l(s){let r=`${s.restUrl}/portals/self/signinSettings`;return(await t(r)).result||{}}async function $(s){return s?.user?(await l(s))?.blockedApps||[]:[]}async function b(s){return(await n({requester:async()=>await u(`${e(s)}portals/self/userDefaultSettings`,{query:{f:"json"}}),key:"memberDefaults",id:s.id})).data}async function U(s){try{return{result:await n({requester:async()=>await o({url:`${e(s)}portals/self/resources/home.page.json`,portal:s}),key:"homePageConfig",id:s.id})}}catch{return{result:void 0}}}return{a:m,b:d,c:w,d:g,e:l,f:$,g:b,h:U}},"request",a,b)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import{b as v}from"./FN2QMDEW.js";import{a as w}from"./WQOCWSJC.js";import"./XX6BL3DR.js";import"./657KMT6Y.js";import{I as r,J as a,K as u,N as p,Q as m,h as d,j as s}from"./OUFJRLPQ.js";import"./KHKREBVZ.js";import"./5PV2GUZW.js";var b=d`:host{display:flex;justify-content:flex-end;margin-inline:1rem;position:relative}.wrapper{padding-inline-start:.25rem;display:flex;border-inline-start:1px solid var(--calcite-color-border-1);border-inline-end:1px solid var(--calcite-color-border-1)}.tooltip-container{width:9rem}.button{margin-inline-end:.25rem}.measure-container{position:absolute;width:100%;height:0;overflow:hidden}.measure-text{visibility:hidden;height:0;width:auto;overflow:hidden;font-size:var(--calcite-font-size--1)}`,c=class extends u{constructor(){super(...arguments),this.measureText=r(),this.overflowButton=r(),this.resizeObserver=null,this.actionWidths=[],this._messages=w({name:"portal-browser",blocking:!0}),this.buttonPadding=88,this.moreWidth=0,this.elementWidth=0,this.visibleActions=[],this.overflowActions=[],this.calculating=!1,this.actions=[]}static{this.properties={visibleActions:16,overflowActions:16,calculating:16,actions:0,selection:0}}static{this.styles=b}async restoreFocus(){this.lastExecutedAction?.setFocus()}willUpdate(t){t.has("actions")&&(this.measureAndCacheWidths(this.actions),this.calculateOverflow()),t.has("selection")&&(this.hasSelection()?v(100).then(()=>{this.calculating=!1}):this.calculating=!0)}firstUpdated(){this.measureAndCacheWidths(this.actions),this.calculateOverflow(),!(typeof ResizeObserver>"u")&&(this.resizeObserver=new ResizeObserver(t=>{for(let e of t)e.contentRect.width>0&&(this.elementWidth=e.contentRect.width,this.calculateOverflow())}),this.resizeObserver.observe(this.el))}disconnectedCallback(){this.resizeObserver?.disconnect(),this.resizeObserver=null,super.disconnectedCallback()}measureAndCacheWidths(t){let e=this.measureText.value;if(!e)return;this.actionWidths=t.map(o=>(e.textContent=o.text,{action:o,width:e.offsetWidth+this.buttonPadding}));let i=this._messages.actions.more;e.textContent=i,this.moreWidth=e.scrollWidth+this.buttonPadding}calculateOverflow(){let t=this.moreWidth,e=this.actionWidths.reduce(({width:i,visible:o,overflow:l},{action:h,width:f})=>{let n=i+f;return n>=this.elementWidth?{width:n,visible:o,overflow:[...l,h]}:{width:n,visible:[...o,h],overflow:l}},{visible:[],overflow:[],width:t});this.visibleActions=e.visible,this.overflowActions=e.overflow}hasSelection(){return!!this.selection?.length}renderButton(t){let e=t.id||`${t.text}-${t.icon||"none"}`;return s`<div><calcite-button class="button" .iconStart=${t.icon} @click=${i=>{this.lastExecutedAction=i.currentTarget,t.onClick()}} appearance=transparent kind=neutral id=${e??p}>${t.text}</calcite-button>${t.tooltip&&s`<calcite-tooltip .referenceElement=${e}><span class="tooltip-container">${t.tooltip}</span></calcite-tooltip>`||""}</div>`}render(){let t=this.overflowActions.length>0,e=this._messages.actions.more;return s`<div><span class="measure-container"><span class="measure-text" aria-hidden ${a(this.measureText)}></span></span>${this.hasSelection()&&(this.visibleActions.length>0||t)&&!this.calculating&&s`<nav class="wrapper">${this.visibleActions.map(i=>this.renderButton(i))}${t&&s`<calcite-dropdown width=m placement=bottom-end><calcite-button slot=trigger kind=neutral icon-end=chevron-down appearance=transparent ${a(this.overflowButton)}>${e}</calcite-button><calcite-dropdown-group selection-mode=none>${this.overflowActions.map(i=>s`<calcite-dropdown-item .iconStart=${i.icon||"blank"} @calciteDropdownItemSelect=${()=>{this.lastExecutedAction=this.overflowButton.value||void 0,i.onClick()}}>${i.text}</calcite-dropdown-item>`)}</calcite-dropdown-group></calcite-dropdown>`||""}</nav>`||""}</div>`}};m("arcgis-portal-browser-actions",c);export{c as ArcgisPortalBrowserActions};
2
+ import{b as v}from"./FN2QMDEW.js";import{a as w}from"./B343BOVA.js";import"./G7DJPREL.js";import"./GC4BV7IZ.js";import{L as r,M as a,N as u,Q as p,T as m,h as d,j as s}from"./AM3UTQWH.js";import"./KHKREBVZ.js";import"./5PV2GUZW.js";var b=d`:host{display:flex;justify-content:flex-end;margin-inline:1rem;position:relative}.wrapper{padding-inline-start:.25rem;display:flex;border-inline-start:1px solid var(--calcite-color-border-1);border-inline-end:1px solid var(--calcite-color-border-1)}.tooltip-container{width:9rem}.button{margin-inline-end:.25rem}.measure-container{position:absolute;width:100%;height:0;overflow:hidden}.measure-text{visibility:hidden;height:0;width:auto;overflow:hidden;font-size:var(--calcite-font-size--1)}`,c=class extends u{constructor(){super(...arguments),this.measureText=r(),this.overflowButton=r(),this.resizeObserver=null,this.actionWidths=[],this._messages=w({name:"portal-browser",blocking:!0}),this.buttonPadding=88,this.moreWidth=0,this.elementWidth=0,this.visibleActions=[],this.overflowActions=[],this.calculating=!1,this.actions=[]}static{this.properties={visibleActions:16,overflowActions:16,calculating:16,actions:0,selection:0}}static{this.styles=b}async restoreFocus(){this.lastExecutedAction?.setFocus()}willUpdate(t){t.has("actions")&&(this.measureAndCacheWidths(this.actions),this.calculateOverflow()),t.has("selection")&&(this.hasSelection()?v(100).then(()=>{this.calculating=!1}):this.calculating=!0)}firstUpdated(){this.measureAndCacheWidths(this.actions),this.calculateOverflow(),!(typeof ResizeObserver>"u")&&(this.resizeObserver=new ResizeObserver(t=>{for(let e of t)e.contentRect.width>0&&(this.elementWidth=e.contentRect.width,this.calculateOverflow())}),this.resizeObserver.observe(this.el))}disconnectedCallback(){this.resizeObserver?.disconnect(),this.resizeObserver=null,super.disconnectedCallback()}measureAndCacheWidths(t){let e=this.measureText.value;if(!e)return;this.actionWidths=t.map(o=>(e.textContent=o.text,{action:o,width:e.offsetWidth+this.buttonPadding}));let i=this._messages.actions.more;e.textContent=i,this.moreWidth=e.scrollWidth+this.buttonPadding}calculateOverflow(){let t=this.moreWidth,e=this.actionWidths.reduce(({width:i,visible:o,overflow:l},{action:h,width:f})=>{let n=i+f;return n>=this.elementWidth?{width:n,visible:o,overflow:[...l,h]}:{width:n,visible:[...o,h],overflow:l}},{visible:[],overflow:[],width:t});this.visibleActions=e.visible,this.overflowActions=e.overflow}hasSelection(){return!!this.selection?.length}renderButton(t){let e=t.id||`${t.text}-${t.icon||"none"}`;return s`<div><calcite-button class="button" .iconStart=${t.icon} @click=${i=>{this.lastExecutedAction=i.currentTarget,t.onClick()}} appearance=transparent kind=neutral id=${e??p}>${t.text}</calcite-button>${t.tooltip&&s`<calcite-tooltip .referenceElement=${e}><span class="tooltip-container">${t.tooltip}</span></calcite-tooltip>`||""}</div>`}render(){let t=this.overflowActions.length>0,e=this._messages.actions.more;return s`<div><span class="measure-container"><span class="measure-text" aria-hidden ${a(this.measureText)}></span></span>${this.hasSelection()&&(this.visibleActions.length>0||t)&&!this.calculating&&s`<nav class="wrapper">${this.visibleActions.map(i=>this.renderButton(i))}${t&&s`<calcite-dropdown width=m placement=bottom-end><calcite-button slot=trigger kind=neutral icon-end=chevron-down appearance=transparent ${a(this.overflowButton)}>${e}</calcite-button><calcite-dropdown-group selection-mode=none>${this.overflowActions.map(i=>s`<calcite-dropdown-item .iconStart=${i.icon||"blank"} @calciteDropdownItemSelect=${()=>{this.lastExecutedAction=this.overflowButton.value||void 0,i.onClick()}}>${i.text}</calcite-dropdown-item>`)}</calcite-dropdown-group></calcite-dropdown>`||""}</nav>`||""}</div>`}};m("arcgis-portal-browser-actions",c);export{c as ArcgisPortalBrowserActions};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import{K as n,Q as c,j as d,v as a}from"./OUFJRLPQ.js";var i=class extends n{constructor(){super(...arguments),this.cardProps={},this.arcgisGroupCardSelect=a(),this.arcgisGroupBrowserCardPreview=a()}static{this.properties={group:0,browser:0,cardProps:0}}async restoreFocus(){await this.renderRoot.querySelector("arcgis-portal-group-card")?.restoreFocus?.()}getBrowser(){let r=this.el.closest("arcgis-portal-group-browser");return this.browser??r}isSelected(r,t){if(!r)return!1;let e=t.selectedGroupsState;return Array.isArray(e)&&e.some(({id:o})=>o===r)}render(){let r=this.getBrowser(),t=this.group;if(!r||!t)return;let e=this.cardProps,o=r.store.view??"list";return d`<arcgis-portal-group-card .portal=${r.portal} .group=${t} .user=${e.user} .indeterminate=${e.indeterminate} .view=${o} .selection=${r.selection} .selected=${e.selected??this.isSelected(t.id,r)} .preview=${e.preview??r.preview} .previewed=${e.previewed??r.previewedGroupId===t.id} .name=${e.name} .showSummary=${e.showSummary??!0} .hideBadges=${e.hideBadges??!1} .hideDateUpdated=${e.hideDateUpdated??!1} .showDateCreated=${e.showDateCreated??!1} .hideViewableBy=${e.hideViewableBy??!1} .hideOwner=${e.hideOwner??!1} .link=${e.link} .linkHandler=${e.linkHandler} .newTab=${e.newTab??!1} .disabled=${e.disabled??!1} @arcgisGroupCardSelect=${s=>{s.stopPropagation(),this.arcgisGroupCardSelect.emit(s.detail)}} @arcgisGroupBrowserCardPreview=${s=>{s.stopPropagation(),this.arcgisGroupBrowserCardPreview.emit(s.detail)}}><slot name=content-top slot=content-top></slot><div slot=content-end><slot name=content-end></slot></div><slot name=actions-start slot=actions-start></slot><slot name=actions-end slot=actions-end></slot></arcgis-portal-group-card>`}};c("arcgis-portal-group-browser-card",i);export{i as a};
2
+ import{N as n,T as c,j as d,v as a}from"./AM3UTQWH.js";var i=class extends n{constructor(){super(...arguments),this.cardProps={},this.arcgisGroupCardSelect=a(),this.arcgisGroupBrowserCardPreview=a()}static{this.properties={group:0,browser:0,cardProps:0}}async restoreFocus(){await this.renderRoot.querySelector("arcgis-portal-group-card")?.restoreFocus?.()}getBrowser(){let r=this.el.closest("arcgis-portal-group-browser");return this.browser??r}isSelected(r,t){if(!r)return!1;let e=t.selectedGroupsState;return Array.isArray(e)&&e.some(({id:o})=>o===r)}render(){let r=this.getBrowser(),t=this.group;if(!r||!t)return;let e=this.cardProps,o=r.store.view??"list";return d`<arcgis-portal-group-card .portal=${r.portal} .group=${t} .user=${e.user} .indeterminate=${e.indeterminate} .view=${o} .selection=${r.selection} .selected=${e.selected??this.isSelected(t.id,r)} .preview=${e.preview??r.preview} .previewed=${e.previewed??r.previewedGroupId===t.id} .name=${e.name} .showSummary=${e.showSummary??!0} .hideBadges=${e.hideBadges??!1} .hideDateUpdated=${e.hideDateUpdated??!1} .showDateCreated=${e.showDateCreated??!1} .hideViewableBy=${e.hideViewableBy??!1} .hideOwner=${e.hideOwner??!1} .link=${e.link} .linkHandler=${e.linkHandler} .newTab=${e.newTab??!1} .disabled=${e.disabled??!1} @arcgisGroupCardSelect=${s=>{s.stopPropagation(),this.arcgisGroupCardSelect.emit(s.detail)}} @arcgisGroupBrowserCardPreview=${s=>{s.stopPropagation(),this.arcgisGroupBrowserCardPreview.emit(s.detail)}}><slot name=content-top slot=content-top></slot><div slot=content-end><slot name=content-end></slot></div><slot name=actions-start slot=actions-start></slot><slot name=actions-end slot=actions-end></slot></arcgis-portal-group-card>`}};c("arcgis-portal-group-browser-card",i);export{i as a};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import{a as N}from"./GUL7EIJ4.js";import f from"./H6OQOEHS.js";import{a as g,b as _,c as F}from"./SRWFOV5W.js";import e from"./OHAQPQAP.js";import"./WFPUAEJQ.js";import{a as R,c as v}from"./MSSJRDR7.js";import"./VDXESPJK.js";import"./DAAON2UO.js";import c from"./365ICWHN.js";import b from"./TIPQ2ZWK.js";import{a as E}from"./S4Y7FPSQ.js";import a from"./OQ2JULON.js";import"./4VLEUN7I.js";import"./KV4ZZSNW.js";import"./FN2QMDEW.js";import{c as L}from"./XX6BL3DR.js";import"./657KMT6Y.js";import{I as S,J as y,K as k,L as w,Q as P,h as T,j as o,v as d}from"./OUFJRLPQ.js";import"./KHKREBVZ.js";import"./5PV2GUZW.js";export default $arcgis.t(([{a:C},,{b:D},{b:U},{d:O}])=>{var q=n=>g.includes(n)?n:"@",V=L(n=>{let e=[],a=async s=>await C({requester:async()=>await O(n.portal,s,{num:3}),key:"items",id:s}),l=async s=>await C({requester:async()=>await U(n.portal,{query:`title:${s}`,num:3}),key:"groups",id:s}),i=N(async(s,t)=>{n.isFetchingEntities=!0;let r=s.toLowerCase();switch(q(t)){case"@":let h=10;n.filteredItemsInfo={type:"user",items:e.filter(c=>c.username?.toLowerCase().includes(r)||c.fullName?.toLowerCase().includes(r)).slice(0,h)};break;case"#":let{result:u}=await a(r);n.filteredItemsInfo={type:"item",items:u?.results??[]};break;case"$":let{results:m}=await l(r);n.filteredItemsInfo={type:"group",items:m};break}(n.filteredItemsInfo?.items?.length??0)===0&&await n.closePopover(),n.isFetchingEntities=!1},400);return{fetchUsers:async()=>{try{let{users:s}=await D(n.portal);e=s??[]}catch(s){e=[],console.error("error fetching org users:",s)}},filterItems:i,getItemText:(s,t)=>{let r="";switch(q(t)){case"@":r=s.username;break;case"#":r=s.title??"";break;case"$":r=s.title??"";break}return r.trim()}}}),A=({id:n,label:e,selected:a,description:l,contentStart:i,onSelect:s})=>E(n,o`<calcite-list-item class=${w({selected:a})} .label=${e} .description=${l} .selected=${a} @pointerdown=${async t=>{t.preventDefault(),t.stopPropagation(),await s()}} ${y(t=>{a&&t&&t.scrollIntoView({block:"nearest",behavior:"smooth"})})}>${i}</calcite-list-item>`),j=T`.selected{--calcite-list-background-color: var(--calcite-color-foreground-2)}.mentionable-list{max-height:13rem;overflow-y:auto;padding:.25rem;width:min(100vw,24rem)}.mentionable-list--loading{min-height:10rem}`,M=class extends k{constructor(){super(...arguments),this.calciteTextAreaRef=S(),this.mentionableEntityController=V(this),this.handleInput=e=>{let{bubbleNewValueChange:a,checkForMention:l}=this,i=e.target.value;i||v(this.el),this._value=i,a(this._value);let s=this.nativeTextAreaRef?.selectionStart??0;l(i,s)},this.handleKeyDown=e=>{if(!this.popoverOpen){this.arcgisUserMentionableTextAreaKeyDown.emit(e),this.arcgisMentionableTextAreaKeyDown.emit(e);return}switch(e.key){case"ArrowDown":e.preventDefault(),this.selectedItemIndex=Math.min(this.selectedItemIndex+1,this.filteredItems.length-1);break;case"ArrowUp":e.preventDefault(),this.selectedItemIndex=Math.max(this.selectedItemIndex-1,0);break;case"Enter":e.preventDefault(),this.selectItem(this.filteredItems[this.selectedItemIndex]);break;case"Escape":e.preventDefault(),this.closePopover.bind(this)();break}},this.handleClosePopover=()=>{this.popoverOpen=!1,this.currentMentionQuery="",this.selectedItemIndex=0,this.currentStarter=null},this.bubbleNewValueChange=e=>{this.arcgisUserMentionableTextAreaChange.emit(e),this.arcgisMentionableTextAreaChange.emit(e)},this.checkForMention=(e,a)=>{let l=e.substring(0,a),i=F(l,this.starters??g);if(i){let{starter:s}=i;this.currentStarter=s,this.filterMentionItems(i),this.popoverOpen=!0;return}this.handleClosePopover()},this.filterMentionItems=e=>{let{mentionText:a,query:l,starter:i,startIndex:s}=e;this.currentMentionQuery=a,this.mentionStartPosition=s;let t=l.toLowerCase();this.mentionableEntityController.filterItems(t,i),this.selectedItemIndex=0},this.popoverOpen=!1,this.currentMentionQuery="",this.mentionStartPosition=0,this.selectedItemIndex=0,this.currentStarter=null,this._value="",this.filteredItemsInfo=null,this.isFetchingEntities=!1,this.popoverPlacement="bottom-start",this.disabled=!1,this.scale="m",this.rows=3,this.starters=g,this.readOnly=!1,this.arcgisMentionableSelectedIndexChange=d(),this.arcgisMentionableTextAreaChange=d(),this.arcgisMentionableTextAreaKeyDown=d(),this.arcgisUserMentionableTextAreaChange=d(),this.arcgisUserMentionableTextAreaKeyDown=d(),this.renderItemInfo=()=>{let{filteredItemsInfo:e,selectedItemIndex:a,portal:l}=this;if(!e)return null;let{items:i,type:s}=e;switch(s){case"user":return i.map((t,r)=>A({id:t.id,label:`@${t.username}`,description:t.fullName,selected:r===a,contentStart:o`<arcgis-portal-user-avatar slot=content-start .user=${t} .portal=${l} scale=m></arcgis-portal-user-avatar>`,onSelect:async()=>await this.selectItem(t)}));case"item":return i.map((t,r)=>A({id:t.id??`item-${r}`,label:`#${t.title}`,description:t.id??void 0,selected:r===a,onSelect:async()=>await this.selectItem(t),contentStart:o`<calcite-avatar slot=content-start .fullName=${t.title??void 0} .thumbnail=${t.thumbnailUrl??void 0} scale=m></calcite-avatar>`}));case"group":return i.map((t,r)=>A({id:t.id??`group-${r}`,label:`${t.title}`,description:t.id??void 0,selected:r===a,onSelect:async()=>await this.selectItem(t),contentStart:o`<calcite-avatar slot=content-start .fullName=${t.title??void 0} .thumbnail=${t.thumbnailUrl??void 0} scale=m></calcite-avatar>`}))}}}static{this.properties={popoverOpen:16,currentMentionQuery:16,mentionStartPosition:16,selectedItemIndex:16,currentStarter:16,_value:16,filteredItemsInfo:16,isFetchingEntities:16,popoverListLabel:1,popoverPlacement:1,disabled:5,portal:0,user:0,scale:1,value:1,maxLength:9,rows:9,starters:0,placeholder:1,readOnly:5}}static{this.styles=j}get filteredItems(){return this.filteredItemsInfo?.items??[]}async closePopover(){this.handleClosePopover()}async focusTextArea(){await this.calciteTextAreaRef.value?.setFocus()}async selectItem(e){let{currentStarter:a,_value:l,mentionStartPosition:i,currentMentionQuery:s,handleClosePopover:t,calciteTextAreaRef:r,nativeTextAreaRef:h,bubbleNewValueChange:u}=this;if(!e||!a)return;let m=this.mentionableEntityController.getItemText(e,a),c=m.replaceAll('"',"").trim(),p=/\s/u.test(c)?`${a}"${c}"`:`${a}${c}`,f=(l??"").substring(0,i),x=(l??"").substring(i+s.length),$=`${f}${p} ${x}`,b=_(e,a,m);b&&R(this.el,{text:p,part:b}),this._value=$,u(this._value);let I=i+p.length+1;t(),await this.updateComplete,r.value?.setFocus(),h&&(h.selectionEnd=I)}willUpdate(e){e.has("value")&&(this._value=this.value??"",this._value||v(this.el)),(e.has("portal")||e.has("user"))&&v(this.el),e.has("selectedItemIndex")&&this.arcgisMentionableSelectedIndexChange.emit(this.selectedItemIndex)}loaded(){this.updateComplete.then(()=>{let e=this.calciteTextAreaRef.value?.shadowRoot?.querySelector("textarea");e&&(this.nativeTextAreaRef=e)}),this.mentionableEntityController.fetchUsers()}render(){let{popoverPlacement:e,scale:a,_value:l,maxLength:i,rows:s,placeholder:t,readOnly:r,popoverOpen:h,closePopover:u,handleInput:m,handleKeyDown:c,disabled:p,isFetchingEntities:f,filteredItemsInfo:x,renderItemInfo:$,popoverListLabel:b}=this,I=this.calciteTextAreaRef.value,K=x?.items??[];return o`<calcite-text-area .placeholder=${t} .value=${l} .maxLength=${i} .rows=${s} .scale=${a} .readOnly=${r} .disabled=${p} @blur=${u} @calciteTextAreaInput=${m} @keydown=${c} ${y(this.calciteTextAreaRef)}></calcite-text-area>${I&&o`<calcite-popover .open=${h} .placement=${e} class="mention-popover" .label=${b} .referenceElement=${I} trigger-disabled pointer-disabled focus-trap-disabled><div class=${w({"mentionable-list":!0,"mentionable-list--loading":f})}>${f&&o`<calcite-scrim .loading=${f}></calcite-scrim>`||""}${K.length>0&&o`<calcite-list .label=${b}>${$()}</calcite-list>`||""}</div></calcite-popover>`||""}`}};P("arcgis-portal-mentionable-text-area",M);return M},a,b,c,e,f)
2
+ import{a as N}from"./GUL7EIJ4.js";import{a as g,b as _,c as F}from"./SRWFOV5W.js";import f from"./OHAQPQAP.js";import e from"./H6OQOEHS.js";import"./WFPUAEJQ.js";import{a as R,c as v}from"./MSSJRDR7.js";import"./VDXESPJK.js";import"./DAAON2UO.js";import c from"./365ICWHN.js";import b from"./TIPQ2ZWK.js";import{a as E}from"./DV57AOBF.js";import a from"./OQ2JULON.js";import"./4VLEUN7I.js";import"./KV4ZZSNW.js";import"./FN2QMDEW.js";import{c as L}from"./G7DJPREL.js";import"./GC4BV7IZ.js";import{L as S,M as y,N as k,O as w,T as P,h as T,j as o,v as d}from"./AM3UTQWH.js";import"./KHKREBVZ.js";import"./5PV2GUZW.js";export default $arcgis.t(([{a:C},,{b:D},{d:O},{b:U}])=>{var q=n=>g.includes(n)?n:"@",V=L(n=>{let e=[],a=async s=>await C({requester:async()=>await O(n.portal,s,{num:3}),key:"items",id:s}),l=async s=>await C({requester:async()=>await U(n.portal,{query:`title:${s}`,num:3}),key:"groups",id:s}),i=N(async(s,t)=>{n.isFetchingEntities=!0;let r=s.toLowerCase();switch(q(t)){case"@":let h=10;n.filteredItemsInfo={type:"user",items:e.filter(c=>c.username?.toLowerCase().includes(r)||c.fullName?.toLowerCase().includes(r)).slice(0,h)};break;case"#":let{result:u}=await a(r);n.filteredItemsInfo={type:"item",items:u?.results??[]};break;case"$":let{results:m}=await l(r);n.filteredItemsInfo={type:"group",items:m};break}(n.filteredItemsInfo?.items?.length??0)===0&&await n.closePopover(),n.isFetchingEntities=!1},400);return{fetchUsers:async()=>{try{let{users:s}=await D(n.portal);e=s??[]}catch(s){e=[],console.error("error fetching org users:",s)}},filterItems:i,getItemText:(s,t)=>{let r="";switch(q(t)){case"@":r=s.username;break;case"#":r=s.title??"";break;case"$":r=s.title??"";break}return r.trim()}}}),A=({id:n,label:e,selected:a,description:l,contentStart:i,onSelect:s})=>E(n,o`<calcite-list-item class=${w({selected:a})} .label=${e} .description=${l} .selected=${a} @pointerdown=${async t=>{t.preventDefault(),t.stopPropagation(),await s()}} ${y(t=>{a&&t&&t.scrollIntoView({block:"nearest",behavior:"smooth"})})}>${i}</calcite-list-item>`),j=T`.selected{--calcite-list-background-color: var(--calcite-color-foreground-2)}.mentionable-list{max-height:13rem;overflow-y:auto;padding:.25rem;width:min(100vw,24rem)}.mentionable-list--loading{min-height:10rem}`,M=class extends k{constructor(){super(...arguments),this.calciteTextAreaRef=S(),this.mentionableEntityController=V(this),this.handleInput=e=>{let{bubbleNewValueChange:a,checkForMention:l}=this,i=e.target.value;i||v(this.el),this._value=i,a(this._value);let s=this.nativeTextAreaRef?.selectionStart??0;l(i,s)},this.handleKeyDown=e=>{if(!this.popoverOpen){this.arcgisUserMentionableTextAreaKeyDown.emit(e),this.arcgisMentionableTextAreaKeyDown.emit(e);return}switch(e.key){case"ArrowDown":e.preventDefault(),this.selectedItemIndex=Math.min(this.selectedItemIndex+1,this.filteredItems.length-1);break;case"ArrowUp":e.preventDefault(),this.selectedItemIndex=Math.max(this.selectedItemIndex-1,0);break;case"Enter":e.preventDefault(),this.selectItem(this.filteredItems[this.selectedItemIndex]);break;case"Escape":e.preventDefault(),this.closePopover.bind(this)();break}},this.handleClosePopover=()=>{this.popoverOpen=!1,this.currentMentionQuery="",this.selectedItemIndex=0,this.currentStarter=null},this.bubbleNewValueChange=e=>{this.arcgisUserMentionableTextAreaChange.emit(e),this.arcgisMentionableTextAreaChange.emit(e)},this.checkForMention=(e,a)=>{let l=e.substring(0,a),i=F(l,this.starters??g);if(i){let{starter:s}=i;this.currentStarter=s,this.filterMentionItems(i),this.popoverOpen=!0;return}this.handleClosePopover()},this.filterMentionItems=e=>{let{mentionText:a,query:l,starter:i,startIndex:s}=e;this.currentMentionQuery=a,this.mentionStartPosition=s;let t=l.toLowerCase();this.mentionableEntityController.filterItems(t,i),this.selectedItemIndex=0},this.popoverOpen=!1,this.currentMentionQuery="",this.mentionStartPosition=0,this.selectedItemIndex=0,this.currentStarter=null,this._value="",this.filteredItemsInfo=null,this.isFetchingEntities=!1,this.popoverPlacement="bottom-start",this.disabled=!1,this.scale="m",this.rows=3,this.starters=g,this.readOnly=!1,this.arcgisMentionableSelectedIndexChange=d(),this.arcgisMentionableTextAreaChange=d(),this.arcgisMentionableTextAreaKeyDown=d(),this.arcgisUserMentionableTextAreaChange=d(),this.arcgisUserMentionableTextAreaKeyDown=d(),this.renderItemInfo=()=>{let{filteredItemsInfo:e,selectedItemIndex:a,portal:l}=this;if(!e)return null;let{items:i,type:s}=e;switch(s){case"user":return i.map((t,r)=>A({id:t.id,label:`@${t.username}`,description:t.fullName,selected:r===a,contentStart:o`<arcgis-portal-user-avatar slot=content-start .user=${t} .portal=${l} scale=m></arcgis-portal-user-avatar>`,onSelect:async()=>await this.selectItem(t)}));case"item":return i.map((t,r)=>A({id:t.id??`item-${r}`,label:`#${t.title}`,description:t.id??void 0,selected:r===a,onSelect:async()=>await this.selectItem(t),contentStart:o`<calcite-avatar slot=content-start .fullName=${t.title??void 0} .thumbnail=${t.thumbnailUrl??void 0} scale=m></calcite-avatar>`}));case"group":return i.map((t,r)=>A({id:t.id??`group-${r}`,label:`${t.title}`,description:t.id??void 0,selected:r===a,onSelect:async()=>await this.selectItem(t),contentStart:o`<calcite-avatar slot=content-start .fullName=${t.title??void 0} .thumbnail=${t.thumbnailUrl??void 0} scale=m></calcite-avatar>`}))}}}static{this.properties={popoverOpen:16,currentMentionQuery:16,mentionStartPosition:16,selectedItemIndex:16,currentStarter:16,_value:16,filteredItemsInfo:16,isFetchingEntities:16,popoverListLabel:1,popoverPlacement:1,disabled:5,portal:0,user:0,scale:1,value:1,maxLength:9,rows:9,starters:0,placeholder:1,readOnly:5}}static{this.styles=j}get filteredItems(){return this.filteredItemsInfo?.items??[]}async closePopover(){this.handleClosePopover()}async focusTextArea(){await this.calciteTextAreaRef.value?.setFocus()}async selectItem(e){let{currentStarter:a,_value:l,mentionStartPosition:i,currentMentionQuery:s,handleClosePopover:t,calciteTextAreaRef:r,nativeTextAreaRef:h,bubbleNewValueChange:u}=this;if(!e||!a)return;let m=this.mentionableEntityController.getItemText(e,a),c=m.replaceAll('"',"").trim(),p=/\s/u.test(c)?`${a}"${c}"`:`${a}${c}`,f=(l??"").substring(0,i),x=(l??"").substring(i+s.length),$=`${f}${p} ${x}`,b=_(e,a,m);b&&R(this.el,{text:p,part:b}),this._value=$,u(this._value);let I=i+p.length+1;t(),await this.updateComplete,r.value?.setFocus(),h&&(h.selectionEnd=I)}willUpdate(e){e.has("value")&&(this._value=this.value??"",this._value||v(this.el)),(e.has("portal")||e.has("user"))&&v(this.el),e.has("selectedItemIndex")&&this.arcgisMentionableSelectedIndexChange.emit(this.selectedItemIndex)}loaded(){this.updateComplete.then(()=>{let e=this.calciteTextAreaRef.value?.shadowRoot?.querySelector("textarea");e&&(this.nativeTextAreaRef=e)}),this.mentionableEntityController.fetchUsers()}render(){let{popoverPlacement:e,scale:a,_value:l,maxLength:i,rows:s,placeholder:t,readOnly:r,popoverOpen:h,closePopover:u,handleInput:m,handleKeyDown:c,disabled:p,isFetchingEntities:f,filteredItemsInfo:x,renderItemInfo:$,popoverListLabel:b}=this,I=this.calciteTextAreaRef.value,K=x?.items??[];return o`<calcite-text-area .placeholder=${t} .value=${l} .maxLength=${i} .rows=${s} .scale=${a} .readOnly=${r} .disabled=${p} @blur=${u} @calciteTextAreaInput=${m} @keydown=${c} ${y(this.calciteTextAreaRef)}></calcite-text-area>${I&&o`<calcite-popover .open=${h} .placement=${e} class="mention-popover" .label=${b} .referenceElement=${I} trigger-disabled pointer-disabled focus-trap-disabled><div class=${w({"mentionable-list":!0,"mentionable-list--loading":f})}>${f&&o`<calcite-scrim .loading=${f}></calcite-scrim>`||""}${K.length>0&&o`<calcite-list .label=${b}>${$()}</calcite-list>`||""}</div></calcite-popover>`||""}`}};P("arcgis-portal-mentionable-text-area",M);return M},a,b,c,e,f)