@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 e from"./FKOSVY5D.js";import"./V6A6MKLU.js";import d from"./IUIFCQQU.js";import"./SLQQ44IA.js";import"./JLT5GCLY.js";import"./VDXESPJK.js";import"./DAAON2UO.js";import c from"./365ICWHN.js";import b from"./TIPQ2ZWK.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(([,,,,{b:r}])=>{return r},a,b,c,d,e)
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
+ import c from"./FGDSHTJ5.js";import b from"./YYKKXL62.js";import a from"./WZFGZEQI.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)
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
+ import f from"./MVC6LIQ6.js";import e from"./XE3DCC5D.js";import d from"./ZGSAH7Z7.js";import"./QF626JXP.js";import"./4QYVBXZT.js";import"./JLT5GCLY.js";import"./VDXESPJK.js";import"./DAAON2UO.js";import c from"./365ICWHN.js";import b from"./TIPQ2ZWK.js";import"./DV57AOBF.js";import"./HBO7XTIL.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(([,,,,,{g:a}])=>{return a},a,b,c,d,e,f)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import{b as d}from"./O2H6SPV3.js";import b from"./YG5ZZUE4.js";import a from"./TIPQ2ZWK.js";export default $arcgis.t(([C,{property:n,subclass:g},{a:p,b:f},{a:m}])=>{var h=m;var P=Object.defineProperty,y=Object.getOwnPropertyDescriptor,i=(t,s,o,r)=>{for(var a=r>1?void 0:r?y(s,o):s,l=t.length-1,c;l>=0;l--)(c=t[l])&&(a=(r?c(s,o,a):c(a))||a);return r&&a&&P(s,o,a),a},e=class extends C{constructor(){super(...arguments),this.fetching=!1,this.status="idle",this.error=void 0,this.portalUrl=void 0,this._itemClassificationValidationErrors=new Map,this.fetchingPromise=Promise.withResolvers()}get primaryAttribute(){return this.portalClassificationSchema?.classificationMetadata.primaryAttribute}setPortalClassificationData({portalUrl:t,schema:s}){this.portalUrl=t,this.portalClassificationSchema=s,this.status="loaded",this.fetchingPromise.resolve(!0)}setFetching(t){this.fetching=t}async loadPortalClassificationData(t,{signal:s}){this.status="loading";let{result:o,error:r}=await p(t,s);if(r){r.name==="AbortError"?console.log("Request aborted."):(this.error=r,this.status="error",this.fetchingPromise.reject(r));return}else this.setPortalClassificationData({schema:o,portalUrl:t})}async validateClassification(t,s,o,r){if(!s)return"";let a=t?this._itemClassificationValidationErrors.get(t):void 0;if(a)return await a;let l=(async()=>{let{error:c}=await f(o,s,r??{});return c?c?.details.raw.messages.join(", "):""})();return t&&this._itemClassificationValidationErrors.set(t,l),t?await this._itemClassificationValidationErrors.get(t):await l}};i([n()],e.prototype,"portalClassificationSchema",2);i([n()],e.prototype,"fetching",2);i([n()],e.prototype,"status",2);i([n()],e.prototype,"error",2);i([n()],e.prototype,"portalUrl",2);i([n()],e.prototype,"_itemClassificationValidationErrors",2);e=i([g("custom.ClassificationModel")],e);var u;function w(t){return u??=new e(t),u}var _=h(w),$=t=>new d(t,{task:async([s],{signal:o})=>{if(!s)throw new Error("Portal item is required to load classification data");if(s.loaded||await s.load({signal:o}),t.itemClassification=s.classification,t.classificationModel.status==="loading"&&await t.classificationModel.fetchingPromise.promise,!t.portalItem?.portal.hasClassificationSchema){t.classificationModel.setPortalClassificationData({portalUrl:s.portal.restUrl,schema:void 0});return}(t.classificationModel.status==="idle"||t.classificationModel.status==="loaded"&&t.classificationModel.portalUrl!==s.portal.restUrl)&&await t.classificationModel.loadPortalClassificationData(s.portal.restUrl,{signal:o})},args:()=>[t.portalItem]});return{a:_,b:$}},"core/Accessor","core/accessorSupport/decorators",a,b)
2
+ import{b as d}from"./WIUFH5SJ.js";import b from"./WZFGZEQI.js";import a from"./TIPQ2ZWK.js";export default $arcgis.t(([C,{property:n,subclass:g},{a:p,b:f},{a:m}])=>{var h=m;var P=Object.defineProperty,y=Object.getOwnPropertyDescriptor,i=(t,s,o,r)=>{for(var a=r>1?void 0:r?y(s,o):s,l=t.length-1,c;l>=0;l--)(c=t[l])&&(a=(r?c(s,o,a):c(a))||a);return r&&a&&P(s,o,a),a},e=class extends C{constructor(){super(...arguments),this.fetching=!1,this.status="idle",this.error=void 0,this.portalUrl=void 0,this._itemClassificationValidationErrors=new Map,this.fetchingPromise=Promise.withResolvers()}get primaryAttribute(){return this.portalClassificationSchema?.classificationMetadata.primaryAttribute}setPortalClassificationData({portalUrl:t,schema:s}){this.portalUrl=t,this.portalClassificationSchema=s,this.status="loaded",this.fetchingPromise.resolve(!0)}setFetching(t){this.fetching=t}async loadPortalClassificationData(t,{signal:s}){this.status="loading";let{result:o,error:r}=await p(t,s);if(r){r.name==="AbortError"?console.log("Request aborted."):(this.error=r,this.status="error",this.fetchingPromise.reject(r));return}else this.setPortalClassificationData({schema:o,portalUrl:t})}async validateClassification(t,s,o,r){if(!s)return"";let a=t?this._itemClassificationValidationErrors.get(t):void 0;if(a)return await a;let l=(async()=>{let{error:c}=await f(o,s,r??{});return c?c?.details.raw.messages.join(", "):""})();return t&&this._itemClassificationValidationErrors.set(t,l),t?await this._itemClassificationValidationErrors.get(t):await l}};i([n()],e.prototype,"portalClassificationSchema",2);i([n()],e.prototype,"fetching",2);i([n()],e.prototype,"status",2);i([n()],e.prototype,"error",2);i([n()],e.prototype,"portalUrl",2);i([n()],e.prototype,"_itemClassificationValidationErrors",2);e=i([g("custom.ClassificationModel")],e);var u;function w(t){return u??=new e(t),u}var _=h(w),$=t=>new d(t,{task:async([s],{signal:o})=>{if(!s)throw new Error("Portal item is required to load classification data");if(s.loaded||await s.load({signal:o}),t.itemClassification=s.classification,t.classificationModel.status==="loading"&&await t.classificationModel.fetchingPromise.promise,!t.portalItem?.portal.hasClassificationSchema){t.classificationModel.setPortalClassificationData({portalUrl:s.portal.restUrl,schema:void 0});return}(t.classificationModel.status==="idle"||t.classificationModel.status==="loaded"&&t.classificationModel.portalUrl!==s.portal.restUrl)&&await t.classificationModel.loadPortalClassificationData(s.portal.restUrl,{signal:o})},args:()=>[t.portalItem]});return{a:_,b:$}},"core/Accessor","core/accessorSupport/decorators",a,b)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import c from"./H6OQOEHS.js";import a from"./OQ2JULON.js";import{a as g}from"./4VLEUN7I.js";import{a as $}from"./WQOCWSJC.js";import{I as d,J as m,K as y,N as x,Q as w,h as v,j as n,v as b}from"./OUFJRLPQ.js";export default $arcgis.t(([{d:u},{b:G,c:z}])=>{async function D(a,t,r={}){try{let e=await u({url:`${g(a)}content/items/${t}/groups`,portal:a,options:r});return{result:[...e.admin,...e.member,...e.other]}}catch(e){return r.signal?.aborted||console.error("Unable to fetch item sharing groups",e),{error:{code:"unhandledError"}}}}async function O(a,t,r,e={}){if(!r.length)return{result:[]};try{let s=g(a),o=await u({url:`${s}content/items/${t.id}`,portal:a,options:e});if(o.itemControl!=="admin"&&o.itemControl!=="update"){let i=await z(a,{groups:r},[t],e);return i.error?{error:i.error}:{result:i.result?.[t.id]??[]}}let l=t.ownerFolder?`${t.ownerFolder}/`:"",c=await u({url:`${s}content/users/${t.owner}/${l}items/${t.id}`,portal:a,options:e}),h=new Set(r.map(({id:i})=>i));return{result:c.sharing.groups.filter(i=>h.has(i))}}catch(s){return e.signal?.aborted||console.error("Unable to resolve item sharing group IDs",s),{error:{code:"unhandledError"}}}}async function S(a,t,r={}){try{return{result:(await Promise.all(G([...new Set(t)],100).map(async e=>(await u({url:`${g(a)}community/groups`,portal:a,params:{q:`id:(${e.join(" OR ")})`,num:100},options:r})).results))).flat().sort((e,s)=>e.title.localeCompare(s.title))}}catch(e){return r.signal?.aborted||console.error("Unable to fetch sharing group details",e),{error:{code:"unhandledError"}}}}var R=v`:host{display:inline-flex;align-items:center;justify-content:center;min-inline-size:var(--arcgis-portal-item-share-summary-spacing, 1rem);--text-size: var(--arcgis-portal-item-share-summary-text-size, .875rem);--spacing: var(--arcgis-portal-item-share-summary-spacing, 1rem);--padding: var(--arcgis-portal-item-share-summary-padding, 7px)}:host([scale="s"]){--text-size: var(--arcgis-portal-item-share-summary-text-size, .75rem);--padding: var(--arcgis-portal-item-share-summary-padding, 3px)}:host([scale="l"]){--text-size: var(--arcgis-portal-item-share-summary-text-size, 1rem);--padding: var(--arcgis-portal-item-share-summary-padding, 9px)}:host([scale="s"][show-text]){--padding: var(--arcgis-portal-item-share-summary-padding, 3px 8px)}:host([scale="m"][show-text]){--padding: var(--arcgis-portal-item-share-summary-padding, 7px 12px)}:host([scale="l"][show-text]){--padding: var(--arcgis-portal-item-share-summary-padding, 9px 16px)}.wrapper{display:flex;align-items:center;padding:var(--padding);border:1px solid var(--arcgis-portal-item-share-summary-border-color, var(--calcite-color-border-1));border-radius:calc(var(--spacing) + .5rem);background:var(--arcgis-portal-item-share-summary-background-color, var(--calcite-color-foreground-1));color:var(--calcite-color-text-1);font:inherit;font-size:var(--text-size);line-height:1;cursor:pointer}.wrapper:hover{background:var(--calcite-color-foreground-2)}.wrapper:focus-visible{outline:2px solid var(--calcite-color-focus);outline-offset:2px}.icon{display:block;flex:0 0 auto;inline-size:var(--spacing);block-size:var(--spacing)}.text{margin-inline-start:calc(var(--spacing) / 4);font-weight:400}calcite-tooltip{--calcite-tooltip-z-index: calc(var(--calcite-z-index-overlay) + 1)}.tooltip{inline-size:18rem;padding-block-start:.25rem;margin:-1rem}.section-header{display:flex;align-items:center;justify-content:space-between;margin:0;padding:.75rem;background:var(--calcite-color-background);color:var(--calcite-color-text-2);font-size:.875rem;font-weight:700}.section-header h4{margin:0;font:inherit}.section{box-sizing:border-box;max-block-size:10rem;overflow:auto;margin:0;padding:.75rem;background:var(--calcite-color-foreground-1)}.status{color:var(--calcite-color-text-1);font-size:.875rem}.groups{list-style:none}.group{display:flex;align-items:center;padding-block:.25rem}.avatar{flex-shrink:0}.group-text{flex:1;min-inline-size:0;margin-inline-start:.75rem}.group-text h5,.group-text p{margin:0;padding:0;line-height:1.35}.group-text h5{overflow-wrap:anywhere;color:var(--calcite-color-text-1);font-size:.875rem;font-weight:500}.group-text p{color:var(--calcite-color-text-3);font-size:.75rem}calcite-loader{--calcite-loader-padding: 2rem}`,k={private:"user",shared:"user",org:"organization",public:"globe"};function F(a,t,r,e,s){let o=a==="shared"&&!t?.length&&r?"private":a,l=new Intl.NumberFormat(s).format(t?.length??0);return{icon:k[o],access:t?.length&&o==="shared"?e.private:e[o],groups:t?.length?e.groups.replace("${num}",l):o==="shared"?e.shared:"",tooltip:t?.length?e[`${o}Groups`].replace("${num}",l):e[o],tooltipNoCount:t?.length?e[`${o}Groups`].replace("(${num})","").trim():e[o]}}var f=class extends y{constructor(){super(...arguments),this.messages=$({blocking:!0,name:"portal-item-share-summary"}),this.buttonRef=d(),this.tooltipRef=d(),this.tooltipOpen=!1,this.loadingDetails=!1,this.showText=!0,this.scale="m",this.overlayPositioning="absolute",this.autoFetchGroups=!1,this.arcgisInternalShareSummaryActivate=b({bubbles:!1,composed:!1})}static{this.properties={groupData:16,loadingDetails:16,favoriteOnlySource:16,item:0,portal:0,groups:0,userGroups:0,showText:7,showHoverText:5,scale:3,overlayPositioning:1,autoFetchGroups:5,messageOverrides:0}}static{this.styles=R}async fetchGroups(){await this.updateComplete,await this.refreshGroups()}async setFocus(){await this.updateComplete,this.buttonRef.value?.focus()}willUpdate(t){let r=t.has("item")||t.has("portal"),e=t.has("groups")&&this.groups!==this.fetchedGroups;(r||t.has("groups")||t.has("userGroups"))&&(this.detailsRequest?.abort(),this.groupData=void 0,this.loadingDetails=!1,this.favoriteOnlySource==="details"&&(this.favoriteOnlySource=void 0)),(r||e)&&(this.groupsRequest?.abort(),this.favoriteOnlySource=void 0,r&&this.fetchedGroups&&this.groups===this.fetchedGroups&&(this.groups=void 0),this.fetchedGroups=void 0),this.autoFetchGroups&&this.groups===void 0&&this.item?.id&&this.portal&&(r||e||t.has("autoFetchGroups"))&&this.refreshGroups(),(this.showHoverText??!this.showText)||(this.tooltipOpen=!1),this.tooltipOpen&&(r||t.has("groups")||t.has("userGroups"))&&this.item?.id&&this.portal&&this.loadGroupData()}updated(){this.tooltipRef.value&&this.buttonRef.value&&(this.tooltipRef.value.referenceElement=this.buttonRef.value)}async refreshGroups(){let{item:t,portal:r,groups:e}=this;if(!t?.id||!r){console.error("A saved item and portal are required to fetch sharing groups");return}this.groupsRequest?.abort();let s=new AbortController;this.groupsRequest=s;let{result:o,error:l}=await D(r,t.id,{signal:s.signal});if(!(s.signal.aborted||this.item!==t||this.portal!==r||this.groups!==e)){if(l||!o){console.error("Unable to refresh the sharing summary",l);return}this.fetchedGroups=o.filter(c=>!c.isFav).map(({id:c})=>c),this.favoriteOnlySource=o.length>0&&this.fetchedGroups.length===0?"refresh":void 0,this.groups=this.fetchedGroups}}async loadGroupData(){let{item:t,portal:r,groups:e,userGroups:s}=this;if(!t?.id||!t.owner||!r){console.error("A saved item, owner, and portal are required to load sharing details");return}this.detailsRequest?.abort();let o=new AbortController;this.detailsRequest=o;let l={signal:o.signal},c=()=>!o.signal.aborted&&this.item===t&&this.portal===r&&this.groups===e&&this.userGroups===s;this.loadingDetails=!0;try{let h=e;if(s){let p=await O(r,{id:t.id,owner:t.owner,ownerFolder:t.ownerFolder},s,l);if(!c())return;if(p.error){console.error("Unable to resolve sharing details",p.error);return}p.result?.length&&(h=p.result)}let i=await S(r,h??[],l);if(!c())return;if(i.error||!i.result){console.error("Unable to load sharing details",i.error);return}this.groupData=i.result.filter(p=>!p.isFav),i.result.length?this.favoriteOnlySource=this.groupData.length?void 0:this.favoriteOnlySource??"details":this.favoriteOnlySource==="details"&&(this.favoriteOnlySource=void 0)}finally{c()&&(this.loadingDetails=!1)}}renderGroupData(){let{messages:t,groupData:r}=this;return r?.length?n`<h4 class="section-header">${t.groups.replace("${num}",new Intl.NumberFormat(t._lang).format(r.length))}</h4><ul class="section groups">${r.map(e=>n`<li class="group"><arcgis-portal-group-thumbnail .group=${e} .portal=${this.portal} class="avatar"></arcgis-portal-group-thumbnail><div class="group-text"><h5>${e.title}</h5><p>${t.viewableBy.replace("${level}",e.access==="public"?t.everyone:e.access==="org"?t.organization:t.groupMembers)}</p></div></li>`)}</ul>`:null}render(){if(!this.item?.access)return null;let{messages:t,showText:r}=this,e=F(this.item.access,this.groups??this.groupData?.map(({id:s})=>s),this.favoriteOnlySource!==void 0,t,t._lang);return n`<button type=button class="wrapper" aria-label=${e.tooltip??x} @click=${()=>this.arcgisInternalShareSummaryActivate.emit()} ${m(this.buttonRef)}><calcite-icon class="icon" .icon=${e.icon} scale=s></calcite-icon>${r&&e.groups!==e.access&&n`<span class="text">${e.access}</span>`||""}${e.groups&&n`<calcite-icon class="icon" icon=plus scale=s></calcite-icon><calcite-icon class="icon" icon=group scale=s></calcite-icon>${r&&n`<span class="text">${e.groups}</span>`||""}`||""}</button>${(this.showHoverText??!r)&&n`<calcite-tooltip close-on-click placement=bottom-start offset-distance=6 offset-skidding=0 .overlayPositioning=${this.overlayPositioning} @calciteTooltipBeforeOpen=${()=>{this.tooltipOpen=!0,this.loadGroupData()}} @calciteTooltipBeforeClose=${()=>{this.tooltipOpen=!1}} ${m(this.tooltipRef)}><div class="tooltip">${this.loadingDetails?n`<calcite-loader .label=${t.sharing} scale=s></calcite-loader>`:n`<div class="section-header"><h4>${t.sharing}</h4><slot name=tooltip-header-end></slot></div><p class="section status">${this.groupData?.length?e.tooltipNoCount:e.tooltip}</p>${this.renderGroupData()}`}</div></calcite-tooltip>`||""}`}};w("arcgis-portal-item-share-summary",f);return f},a,c)
2
+ import c from"./H6OQOEHS.js";import a from"./OQ2JULON.js";import{a as g}from"./4VLEUN7I.js";import{a as $}from"./B343BOVA.js";import{L as d,M as m,N as y,Q as x,T as w,h as v,j as n,v as b}from"./AM3UTQWH.js";export default $arcgis.t(([{d:u},{b:G,c:z}])=>{async function D(a,t,r={}){try{let e=await u({url:`${g(a)}content/items/${t}/groups`,portal:a,options:r});return{result:[...e.admin,...e.member,...e.other]}}catch(e){return r.signal?.aborted||console.error("Unable to fetch item sharing groups",e),{error:{code:"unhandledError"}}}}async function O(a,t,r,e={}){if(!r.length)return{result:[]};try{let s=g(a),o=await u({url:`${s}content/items/${t.id}`,portal:a,options:e});if(o.itemControl!=="admin"&&o.itemControl!=="update"){let i=await z(a,{groups:r},[t],e);return i.error?{error:i.error}:{result:i.result?.[t.id]??[]}}let l=t.ownerFolder?`${t.ownerFolder}/`:"",c=await u({url:`${s}content/users/${t.owner}/${l}items/${t.id}`,portal:a,options:e}),h=new Set(r.map(({id:i})=>i));return{result:c.sharing.groups.filter(i=>h.has(i))}}catch(s){return e.signal?.aborted||console.error("Unable to resolve item sharing group IDs",s),{error:{code:"unhandledError"}}}}async function S(a,t,r={}){try{return{result:(await Promise.all(G([...new Set(t)],100).map(async e=>(await u({url:`${g(a)}community/groups`,portal:a,params:{q:`id:(${e.join(" OR ")})`,num:100},options:r})).results))).flat().sort((e,s)=>e.title.localeCompare(s.title))}}catch(e){return r.signal?.aborted||console.error("Unable to fetch sharing group details",e),{error:{code:"unhandledError"}}}}var R=v`:host{display:inline-flex;align-items:center;justify-content:center;min-inline-size:var(--arcgis-portal-item-share-summary-spacing, 1rem);--text-size: var(--arcgis-portal-item-share-summary-text-size, .875rem);--spacing: var(--arcgis-portal-item-share-summary-spacing, 1rem);--padding: var(--arcgis-portal-item-share-summary-padding, 7px)}:host([scale="s"]){--text-size: var(--arcgis-portal-item-share-summary-text-size, .75rem);--padding: var(--arcgis-portal-item-share-summary-padding, 3px)}:host([scale="l"]){--text-size: var(--arcgis-portal-item-share-summary-text-size, 1rem);--padding: var(--arcgis-portal-item-share-summary-padding, 9px)}:host([scale="s"][show-text]){--padding: var(--arcgis-portal-item-share-summary-padding, 3px 8px)}:host([scale="m"][show-text]){--padding: var(--arcgis-portal-item-share-summary-padding, 7px 12px)}:host([scale="l"][show-text]){--padding: var(--arcgis-portal-item-share-summary-padding, 9px 16px)}.wrapper{display:flex;align-items:center;padding:var(--padding);border:1px solid var(--arcgis-portal-item-share-summary-border-color, var(--calcite-color-border-1));border-radius:calc(var(--spacing) + .5rem);background:var(--arcgis-portal-item-share-summary-background-color, var(--calcite-color-foreground-1));color:var(--calcite-color-text-1);font:inherit;font-size:var(--text-size);line-height:1;cursor:pointer}.wrapper:hover{background:var(--calcite-color-foreground-2)}.wrapper:focus-visible{outline:2px solid var(--calcite-color-focus);outline-offset:2px}.icon{display:block;flex:0 0 auto;inline-size:var(--spacing);block-size:var(--spacing)}.text{margin-inline-start:calc(var(--spacing) / 4);font-weight:400}calcite-tooltip{--calcite-tooltip-z-index: calc(var(--calcite-z-index-overlay) + 1)}.tooltip{inline-size:18rem;padding-block-start:.25rem;margin:-1rem}.section-header{display:flex;align-items:center;justify-content:space-between;margin:0;padding:.75rem;background:var(--calcite-color-background);color:var(--calcite-color-text-2);font-size:.875rem;font-weight:700}.section-header h4{margin:0;font:inherit}.section{box-sizing:border-box;max-block-size:10rem;overflow:auto;margin:0;padding:.75rem;background:var(--calcite-color-foreground-1)}.status{color:var(--calcite-color-text-1);font-size:.875rem}.groups{list-style:none}.group{display:flex;align-items:center;padding-block:.25rem}.avatar{flex-shrink:0}.group-text{flex:1;min-inline-size:0;margin-inline-start:.75rem}.group-text h5,.group-text p{margin:0;padding:0;line-height:1.35}.group-text h5{overflow-wrap:anywhere;color:var(--calcite-color-text-1);font-size:.875rem;font-weight:500}.group-text p{color:var(--calcite-color-text-3);font-size:.75rem}calcite-loader{--calcite-loader-padding: 2rem}`,k={private:"user",shared:"user",org:"organization",public:"globe"};function F(a,t,r,e,s){let o=a==="shared"&&!t?.length&&r?"private":a,l=new Intl.NumberFormat(s).format(t?.length??0);return{icon:k[o],access:t?.length&&o==="shared"?e.private:e[o],groups:t?.length?e.groups.replace("${num}",l):o==="shared"?e.shared:"",tooltip:t?.length?e[`${o}Groups`].replace("${num}",l):e[o],tooltipNoCount:t?.length?e[`${o}Groups`].replace("(${num})","").trim():e[o]}}var f=class extends y{constructor(){super(...arguments),this.messages=$({blocking:!0,name:"portal-item-share-summary"}),this.buttonRef=d(),this.tooltipRef=d(),this.tooltipOpen=!1,this.loadingDetails=!1,this.showText=!0,this.scale="m",this.overlayPositioning="absolute",this.autoFetchGroups=!1,this.arcgisInternalShareSummaryActivate=b({bubbles:!1,composed:!1})}static{this.properties={groupData:16,loadingDetails:16,favoriteOnlySource:16,item:0,portal:0,groups:0,userGroups:0,showText:7,showHoverText:5,scale:3,overlayPositioning:1,autoFetchGroups:5,messageOverrides:0}}static{this.styles=R}async fetchGroups(){await this.updateComplete,await this.refreshGroups()}async setFocus(){await this.updateComplete,this.buttonRef.value?.focus()}willUpdate(t){let r=t.has("item")||t.has("portal"),e=t.has("groups")&&this.groups!==this.fetchedGroups;(r||t.has("groups")||t.has("userGroups"))&&(this.detailsRequest?.abort(),this.groupData=void 0,this.loadingDetails=!1,this.favoriteOnlySource==="details"&&(this.favoriteOnlySource=void 0)),(r||e)&&(this.groupsRequest?.abort(),this.favoriteOnlySource=void 0,r&&this.fetchedGroups&&this.groups===this.fetchedGroups&&(this.groups=void 0),this.fetchedGroups=void 0),this.autoFetchGroups&&this.groups===void 0&&this.item?.id&&this.portal&&(r||e||t.has("autoFetchGroups"))&&this.refreshGroups(),(this.showHoverText??!this.showText)||(this.tooltipOpen=!1),this.tooltipOpen&&(r||t.has("groups")||t.has("userGroups"))&&this.item?.id&&this.portal&&this.loadGroupData()}updated(){this.tooltipRef.value&&this.buttonRef.value&&(this.tooltipRef.value.referenceElement=this.buttonRef.value)}async refreshGroups(){let{item:t,portal:r,groups:e}=this;if(!t?.id||!r){console.error("A saved item and portal are required to fetch sharing groups");return}this.groupsRequest?.abort();let s=new AbortController;this.groupsRequest=s;let{result:o,error:l}=await D(r,t.id,{signal:s.signal});if(!(s.signal.aborted||this.item!==t||this.portal!==r||this.groups!==e)){if(l||!o){console.error("Unable to refresh the sharing summary",l);return}this.fetchedGroups=o.filter(c=>!c.isFav).map(({id:c})=>c),this.favoriteOnlySource=o.length>0&&this.fetchedGroups.length===0?"refresh":void 0,this.groups=this.fetchedGroups}}async loadGroupData(){let{item:t,portal:r,groups:e,userGroups:s}=this;if(!t?.id||!t.owner||!r){console.error("A saved item, owner, and portal are required to load sharing details");return}this.detailsRequest?.abort();let o=new AbortController;this.detailsRequest=o;let l={signal:o.signal},c=()=>!o.signal.aborted&&this.item===t&&this.portal===r&&this.groups===e&&this.userGroups===s;this.loadingDetails=!0;try{let h=e;if(s){let p=await O(r,{id:t.id,owner:t.owner,ownerFolder:t.ownerFolder},s,l);if(!c())return;if(p.error){console.error("Unable to resolve sharing details",p.error);return}p.result?.length&&(h=p.result)}let i=await S(r,h??[],l);if(!c())return;if(i.error||!i.result){console.error("Unable to load sharing details",i.error);return}this.groupData=i.result.filter(p=>!p.isFav),i.result.length?this.favoriteOnlySource=this.groupData.length?void 0:this.favoriteOnlySource??"details":this.favoriteOnlySource==="details"&&(this.favoriteOnlySource=void 0)}finally{c()&&(this.loadingDetails=!1)}}renderGroupData(){let{messages:t,groupData:r}=this;return r?.length?n`<h4 class="section-header">${t.groups.replace("${num}",new Intl.NumberFormat(t._lang).format(r.length))}</h4><ul class="section groups">${r.map(e=>n`<li class="group"><arcgis-portal-group-thumbnail .group=${e} .portal=${this.portal} class="avatar"></arcgis-portal-group-thumbnail><div class="group-text"><h5>${e.title}</h5><p>${t.viewableBy.replace("${level}",e.access==="public"?t.everyone:e.access==="org"?t.organization:t.groupMembers)}</p></div></li>`)}</ul>`:null}render(){if(!this.item?.access)return null;let{messages:t,showText:r}=this,e=F(this.item.access,this.groups??this.groupData?.map(({id:s})=>s),this.favoriteOnlySource!==void 0,t,t._lang);return n`<button type=button class="wrapper" aria-label=${e.tooltip??x} @click=${()=>this.arcgisInternalShareSummaryActivate.emit()} ${m(this.buttonRef)}><calcite-icon class="icon" .icon=${e.icon} scale=s></calcite-icon>${r&&e.groups!==e.access&&n`<span class="text">${e.access}</span>`||""}${e.groups&&n`<calcite-icon class="icon" icon=plus scale=s></calcite-icon><calcite-icon class="icon" icon=group scale=s></calcite-icon>${r&&n`<span class="text">${e.groups}</span>`||""}`||""}</button>${(this.showHoverText??!r)&&n`<calcite-tooltip close-on-click placement=bottom-start offset-distance=6 offset-skidding=0 .overlayPositioning=${this.overlayPositioning} @calciteTooltipBeforeOpen=${()=>{this.tooltipOpen=!0,this.loadGroupData()}} @calciteTooltipBeforeClose=${()=>{this.tooltipOpen=!1}} ${m(this.tooltipRef)}><div class="tooltip">${this.loadingDetails?n`<calcite-loader .label=${t.sharing} scale=s></calcite-loader>`:n`<div class="section-header"><h4>${t.sharing}</h4><slot name=tooltip-header-end></slot></div><p class="section status">${this.groupData?.length?e.tooltipNoCount:e.tooltip}</p>${this.renderGroupData()}`}</div></calcite-tooltip>`||""}`}};w("arcgis-portal-item-share-summary",f);return f},a,c)
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
+ import f from"./FKOSVY5D.js";import"./V6A6MKLU.js";import e from"./IUIFCQQU.js";import"./SLQQ44IA.js";import"./JLT5GCLY.js";import"./VDXESPJK.js";import"./DAAON2UO.js";import d from"./365ICWHN.js";import c from"./TIPQ2ZWK.js";import"./4KTRAA2J.js";import b from"./OQ2JULON.js";import"./4VLEUN7I.js";import"./KV4ZZSNW.js";import"./FN2QMDEW.js";import"./B343BOVA.js";import"./G7DJPREL.js";import"./GC4BV7IZ.js";import{N as r,T as o,h as i,j as a}from"./AM3UTQWH.js";import"./KHKREBVZ.js";import"./5PV2GUZW.js";export default $arcgis.t(([,,,,{a:p}])=>{var n=i`:host{display:flex;flex-wrap:wrap;align-items:center;row-gap:.25rem}.portal-item-badges__badge{display:inline-block;margin-inline-end:.25rem}.portal-item-badges__badge:last-of-type{margin-inline-end:0}`,e=class extends r{constructor(){super(...arguments),this.badges=[],this.width="full",this.scale="m",this.showTooltips=!1,this.empty=!1}static{this.properties={badges:16,item:0,portal:0,user:0,width:1,appearance:1,scale:1,showTooltips:5,useProduction:5,empty:7}}static{this.styles=n}willUpdate(t){if(t.has("item")||t.has("portal")||t.has("user")){if(!this.item||!this.portal){this.badges=[],this.empty=!0;return}let s=p(this.item,this.portal,this.user);this.badges=s,this.empty=s.length===0}}render(){let{appearance:t,badges:s,scale:l,showTooltips:h,width:m}=this;return s.map(d=>a`<arcgis-portal-item-badge .appearance=${t} .badgeType=${d} class="portal-item-badges__badge" .item=${this.item} .portal=${this.portal} .user=${this.user} .scale=${l} .showTooltip=${h} .useProduction=${this.useProduction} .width=${m}></arcgis-portal-item-badge>`)}};o("arcgis-portal-item-badges",e);return e},b,c,d,e,f)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import a from"./47EZWWY7.js";import{a as g}from"./WQOCWSJC.js";import{H as d,I as p,J as u,K as m,L as o,N as s,Q as b,h,j as r,v as n}from"./OUFJRLPQ.js";export default $arcgis.t(([{c:w}])=>{var f=h`:host{position:relative;display:block}.search{position:absolute;z-index:10;margin-top:1rem;color:var(--calcite-color-text-1);pointer-events:none;inset-inline-start:1.5rem}.search--panel{inset-inline-start:.75rem}.x{position:absolute;z-index:10;top:0;margin-top:.5rem;margin-inline:.25rem;padding:.25rem;border:none;cursor:pointer;color:var(--calcite-color-text-1);outline:none;inset-inline-end:.25rem;background:transparent}.x--icon{display:block}.input{display:block;width:100%;box-sizing:border-box;padding-block:1rem;padding-inline-start:3rem;height:3rem;border:none;position:relative;z-index:0;color:var(--calcite-color-text-1);font-size:var(--calcite-font-size--1);background-color:transparent;border-bottom:2px solid transparent;font-family:inherit}.input::-webkit-search-cancel-button{display:none}.input::-ms-clear{display:none}.input:focus{outline:none;border-bottom-color:var(--calcite-color-brand)}.input--panel{padding-inline-start:2.5rem;padding-inline-end:1rem}.input--with-clear{padding-inline-end:3rem}.alert:not([calcite-hydrated]){display:none}`,c=class extends m{constructor(){super(...arguments),this.searchInput=p(),this._messages=g({name:"portal-browser",blocking:!0}),this.showClear=!1,this.containsWildcard=!1,this.term="",this.placeholder="",this.allowClear=!0,this.store=w(),this.arcgisBrowserSearch=n(),this.arcgisBrowserSearchInput=n()}static{this.properties={showClear:16,containsWildcard:16,term:1,placeholder:1,allowClear:5,store:0}}static{this.styles=f}async setFocus(){this.searchInput.value?.focus()}connectedCallback(){super.connectedCallback(),this.showClear=!!this.term,this.containsWildcard=this.term.includes("*")}willUpdate(e){e.get("term")!==void 0&&((this.searchInput.value?.value??"")!==this.term&&(this.showClear=!!this.term,this.emitUpdate(this.term)),this.containsWildcard=this.term.includes("*"))}disconnectedCallback(){this.debounceId&&(window.clearTimeout(this.debounceId),this.debounceId=void 0),super.disconnectedCallback()}emitUpdate(e){this.store.searchTerm=e,this.arcgisBrowserSearch.emit(e)}debouncedInput(e){this.debounceId&&window.clearTimeout(this.debounceId),this.debounceId=window.setTimeout(()=>{let t=e.includes("*");this.showClear=!!e,this.containsWildcard=t,t||this.emitUpdate(e)},400)}render(){let e=!!this.store.panel,t=this.placeholder||this._messages.search.search,l=this._messages.search.wildcard,v=this._messages.search.clear;return r`<div><calcite-icon icon=search scale=s class=${o({search:!0,"search--panel":e})}></calcite-icon><input class=${o({input:!0,"input--with-clear":this.allowClear&&this.showClear,"input--panel":e})} .value=${d(this.term??"")} placeholder=${t??s} aria-label=${t??s} @input=${i=>{let a=i.currentTarget.value;a.includes("*")||(this.containsWildcard=!1),this.arcgisBrowserSearchInput.emit(a),this.debouncedInput(a)}} ${u(this.searchInput)}><calcite-alert .open=${this.containsWildcard} scale=m kind=danger class="alert" icon=exclamation-mark-triangle .label=${l} @calciteAlertClose=${()=>{this.containsWildcard=!1}}><div slot=message>${l}</div></calcite-alert>${this.allowClear&&this.showClear&&r`<button class="x" aria-label=${v??s} @click=${()=>{this.arcgisBrowserSearchInput.emit(""),this.emitUpdate(""),this.showClear=!1,this.searchInput.value&&(this.searchInput.value.value="",this.searchInput.value.focus())}} @keydown=${i=>{i.key==="Enter"&&i.stopPropagation()}} tabindex=0><calcite-icon icon=x scale=m class="x--icon"></calcite-icon></button>`||""}</div>`}};b("arcgis-portal-browser-search",c);return c},a)
2
+ import a from"./YYKKXL62.js";import{a as g}from"./B343BOVA.js";import{K as d,L as p,M as u,N as m,O as o,Q as s,T as b,h,j as r,v as n}from"./AM3UTQWH.js";export default $arcgis.t(([{c:w}])=>{var f=h`:host{position:relative;display:block}.search{position:absolute;z-index:10;margin-top:1rem;color:var(--calcite-color-text-1);pointer-events:none;inset-inline-start:1.5rem}.search--panel{inset-inline-start:.75rem}.x{position:absolute;z-index:10;top:0;margin-top:.5rem;margin-inline:.25rem;padding:.25rem;border:none;cursor:pointer;color:var(--calcite-color-text-1);outline:none;inset-inline-end:.25rem;background:transparent}.x--icon{display:block}.input{display:block;width:100%;box-sizing:border-box;padding-block:1rem;padding-inline-start:3rem;height:3rem;border:none;position:relative;z-index:0;color:var(--calcite-color-text-1);font-size:var(--calcite-font-size--1);background-color:transparent;border-bottom:2px solid transparent;font-family:inherit}.input::-webkit-search-cancel-button{display:none}.input::-ms-clear{display:none}.input:focus{outline:none;border-bottom-color:var(--calcite-color-brand)}.input--panel{padding-inline-start:2.5rem;padding-inline-end:1rem}.input--with-clear{padding-inline-end:3rem}.alert:not([calcite-hydrated]){display:none}`,c=class extends m{constructor(){super(...arguments),this.searchInput=p(),this._messages=g({name:"portal-browser",blocking:!0}),this.showClear=!1,this.containsWildcard=!1,this.term="",this.placeholder="",this.allowClear=!0,this.store=w(),this.arcgisBrowserSearch=n(),this.arcgisBrowserSearchInput=n()}static{this.properties={showClear:16,containsWildcard:16,term:1,placeholder:1,allowClear:5,store:0}}static{this.styles=f}async setFocus(){this.searchInput.value?.focus()}connectedCallback(){super.connectedCallback(),this.showClear=!!this.term,this.containsWildcard=this.term.includes("*")}willUpdate(e){e.get("term")!==void 0&&((this.searchInput.value?.value??"")!==this.term&&(this.showClear=!!this.term,this.emitUpdate(this.term)),this.containsWildcard=this.term.includes("*"))}disconnectedCallback(){this.debounceId&&(window.clearTimeout(this.debounceId),this.debounceId=void 0),super.disconnectedCallback()}emitUpdate(e){this.store.searchTerm=e,this.arcgisBrowserSearch.emit(e)}debouncedInput(e){this.debounceId&&window.clearTimeout(this.debounceId),this.debounceId=window.setTimeout(()=>{let t=e.includes("*");this.showClear=!!e,this.containsWildcard=t,t||this.emitUpdate(e)},400)}render(){let e=!!this.store.panel,t=this.placeholder||this._messages.search.search,l=this._messages.search.wildcard,v=this._messages.search.clear;return r`<div><calcite-icon icon=search scale=s class=${o({search:!0,"search--panel":e})}></calcite-icon><input class=${o({input:!0,"input--with-clear":this.allowClear&&this.showClear,"input--panel":e})} .value=${d(this.term??"")} placeholder=${t??s} aria-label=${t??s} @input=${i=>{let a=i.currentTarget.value;a.includes("*")||(this.containsWildcard=!1),this.arcgisBrowserSearchInput.emit(a),this.debouncedInput(a)}} ${u(this.searchInput)}><calcite-alert .open=${this.containsWildcard} scale=m kind=danger class="alert" icon=exclamation-mark-triangle .label=${l} @calciteAlertClose=${()=>{this.containsWildcard=!1}}><div slot=message>${l}</div></calcite-alert>${this.allowClear&&this.showClear&&r`<button class="x" aria-label=${v??s} @click=${()=>{this.arcgisBrowserSearchInput.emit(""),this.emitUpdate(""),this.showClear=!1,this.searchInput.value&&(this.searchInput.value.value="",this.searchInput.value.focus())}} @keydown=${i=>{i.key==="Enter"&&i.stopPropagation()}} tabindex=0><calcite-icon icon=x scale=m class="x--icon"></calcite-icon></button>`||""}</div>`}};b("arcgis-portal-browser-search",c);return c},a)
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
+ import{a as p}from"./B343BOVA.js";import{N as c,O as l,T as r,h as i,j as s,o,v as a}from"./AM3UTQWH.js";var h=i`:host{display:block}calcite-label{--calcite-label-margin-bottom: 0}h4{margin:0 0 .25rem;font-size:var(--calcite-font-size--2);font-weight:var(--calcite-font-weight-medium);color:var(--calcite-color-text-3)}[role=status]{color:var(--calcite-color-text-2);font-size:var(--calcite-font-size--2)}.live-region{position:absolute;inline-size:1px;block-size:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}`,e=class extends c{constructor(){super(...arguments),this.messages=p({name:"portal-item-preview",blocking:!0}),this.copyStatus="idle",this.copiedSuffix="",this.heading="",this.text="",this.label="",this.section="details",this.arcgisInternalUIAction=a()}static{this.properties={copyStatus:16,copiedSuffix:16,heading:1,text:1,label:1,section:1}}static{this.styles=h}willUpdate(t){t.has("text")&&this.resetCopy()}disconnectedCallback(){super.disconnectedCallback(),this.resetCopy()}resetCopy(){this.request?.abort(),clearTimeout(this.resetTimer),this.copyStatus="idle"}async copy(){this.resetCopy();let t=new AbortController;this.request=t,this.copyStatus="copying";try{await navigator.clipboard.writeText(this.text),t.signal.throwIfAborted(),this.copyStatus="copied",this.arcgisInternalUIAction.emit({action:"copy",category:"panel action",details:this.section}),this.copiedSuffix=this.copiedSuffix?"":"\xA0",this.resetTimer=setTimeout(()=>{this.copyStatus="idle"},2e3)}catch(n){t.signal.aborted||(this.copyStatus="failed",o("error",this,"Unable to copy preview text.",{detail:{error:n}}))}}render(){return s`<calcite-label for=copy-input scale=s><h4>${this.heading}</h4></calcite-label><calcite-input id=copy-input .value=${this.text} read-only .label=${this.heading} scale=s><calcite-button id=copy-button slot=action .label=${this.label} icon-start=copy-to-clipboard kind=neutral scale=s .disabled=${this.copyStatus==="copying"||!this.text} @click=${this.copy}></calcite-button></calcite-input><calcite-tooltip reference-element=copy-button placement=bottom-end overlay-positioning=fixed scale=s>${this.copyStatus==="copied"?this.messages.copied:this.messages.copy}</calcite-tooltip><div role=status aria-live=polite class=${l({"live-region":this.copyStatus!=="failed"})}>${this.copyStatus==="failed"?this.messages.copyError:this.copyStatus==="copied"?`${this.messages.copied}${this.copiedSuffix}`:""}</div>`}};r("arcgis-portal-item-preview-copy",e);export{e as a};
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
+ import c from"./3QWNGHAK.js";import b from"./YYKKXL62.js";import a from"./WZFGZEQI.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)
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
+ import{a}from"./3T3QBPC3.js";import"./B343BOVA.js";import"./G7DJPREL.js";import"./GC4BV7IZ.js";import"./AM3UTQWH.js";import"./KHKREBVZ.js";import"./5PV2GUZW.js";export{a as ArcgisPortalItemPreviewCopy};
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
+ import{b as v}from"./4KTRAA2J.js";import a from"./OQ2JULON.js";import{a as g,d as w}from"./4VLEUN7I.js";import{o as m}from"./AM3UTQWH.js";export default $arcgis.t(([{isAbortError:E},{d:b}])=>{function L(e){let t=typeof e=="object"&&e!==null&&"details"in e?e.details:void 0,a=typeof t=="object"&&t!==null&&"raw"in t?t.raw:void 0,r={};for(let o of[e,t,a])typeof o!="object"||o===null||("code"in o&&typeof o.code=="number"&&r.code===void 0&&(r.code=o.code),"messageCode"in o&&typeof o.messageCode=="string"&&(r.messageCode=o.messageCode));return r}async function q(e,t,a){return await I(e,t,a)}async function D(e,t,a){return await I(e,t,a)}async function I(e,t,a){for(let r of[!1,!0])try{a.throwIfAborted();let o=await h(t,e,r,!1,a);return a.throwIfAborted(),{result:o}}catch(o){if(a.aborted||E(o))throw o;if(x(r,o,e))continue;return m("error","portal.services.layers","Unable to load service information.",{detail:{error:o}}),{error:{code:k(o)?"serviceNotExist":"unhandledError"}}}return{error:{code:"unhandledError"}}}function y(e,t,a){if(e.id===void 0)throw new Error("The service layer has no ID.");return{description:e.description,fieldAliases:e.fields?.map(r=>r.alias??""),fields:e.fields,geometryType:a?"table":e.geometryType,id:e.id,title:e.name||e.title||"",type:e.type,matched:t?.find(r=>r.id===e.id)?.matched,sourceJSON:e}}async function h(e,t,a,r,o){let s=t.portalMode==="multitenant",d=new URL(g(t)).hostname,i=e.includes(".arcgis.com/"),n=["//services","//tiles","//features","//locationservices"].some(c=>e.includes(c)),l=t.supportsHostedServices&&e.includes(d)&&s;return await b({url:e,portal:t,method:"post",options:{useProxy:!1,timeout:s?5e3:6e4,addSSL:i&&n||!i&&l,...a?{}:{addTokenManually:!1},disableIdentityLookup:!r,signal:o}})}function T(e){return typeof e=="object"&&e!==null&&"message"in e&&typeof e.message=="string"?e.message:void 0}function k(e){return[404,500].includes(L(e).code??0)||T(e)==="Invalid URL"}function x(e,t,a){let{code:r}=L(t),o=T(t);return!e&&(r===499&&(o==="Token Required"||o==="Token required.")||r===403||r===498&&o==="Invalid Token")&&!!a.user}function S(e,t,a,r){let o=a?.tables,s=!!a?.layers?.length||!!o,d=[...a?.layers??[],...a?.tables??[]].map(i=>i.id);return(e??[]).filter(({id:i,type:n})=>!s||n==="Table"&&!o||d.includes(i)).map(i=>y(i,t,r))}async function N({serviceInfo:e,item:t,portal:a,layers:r,isSecure:o,allowLoginWindow:s,data:d,signal:i}){if(!e.layers?.length&&!e.tables?.length&&e.fields)return{result:{sublayers:[y(e,r)],serviceInfo:e}};try{let n=await h(`${t.url}/layers`,a,o,s,i);return{result:{sublayers:[...S(n.layers,r,d),...S(n.tables,r,d,!0)].sort((l,c)=>l.id-c.id),serviceInfo:e}}}catch{return{error:{code:"unhandledError"}}}}async function C(e,t,a){try{let r=new URL(`${g(t)}content/items/${e.id}/data`);r.searchParams.set("f","json");let o=w(t);o&&r.searchParams.set("token",o);let s=await(await fetch(r,{signal:a})).text();return s?JSON.parse(s):void 0}catch(r){if(a?.aborted||E(r))throw r;m("warn","portal.services.layers","Unable to read optional item data; loading the service directly.",{detail:{error:r}});return}}async function R({item:e,portal:t,layers:a,isSecure:r=!1,data:o,allowLoginWindow:s,retry:d,signal:i}){try{let n=o??(d?void 0:await C(e,t,i));if(n?.error?.code===403&&n.error.messageCode==="SB_0006")return{error:{code:"serviceNotExist"}};if(e.type==="Feature Collection"&&(n?.layers||n?.tables))return{result:{sublayers:[...n.layers??[],...n.tables??[]].map(({layerDefinition:l},c)=>{if(!l)throw new Error("A feature collection layer has no layer definition.");return{...y({...l,id:c},void 0,c>=(n.layers?.length??0)),description:"",matched:!1,sourceJSON:l}})}};try{if(!e.url)throw new Error("Invalid URL");let l=await h(e.url,t,r,s,i),c=await N({serviceInfo:l,item:e,portal:t,layers:a,isSecure:r,allowLoginWindow:s,data:n,signal:i});return v(e).includes("SubtypeGroupLayer")&&c.result&&n?.layers?.length&&(c.result.sublayers=c.result.sublayers.flatMap(u=>{let f=n?.layers?.find(({id:p})=>p===u.id);return f?.layerType==="SubtypeGroupLayer"&&f.layers?.length?[u,...f.layers.map(p=>({...y(p),geometryType:u.geometryType}))]:[u]})),c}catch(l){return!i?.aborted&&x(r,l,t)?await R({item:e,portal:t,layers:a,data:n,isSecure:!0,allowLoginWindow:s,signal:i}):{error:{code:k(l)?"serviceNotExist":"unhandledError"}}}}catch{return{error:{code:"unhandledError"}}}}return{a:L,b:q,c:D,d:R}},"core/promiseUtils",a)
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
+ import{j as t}from"./AM3UTQWH.js";var e=new Map;e.set("oid","key");e.set("guid","key");e.set("global-id","key");e.set("blob","binary");e.set("boolean","boolean");e.set("integer","integer");e.set("small-integer","integer");e.set("big-integer","integer");e.set("single","number");e.set("double","number");e.set("long","number");e.set("number","number");e.set("date","date-time");e.set("date-only","calendar");e.set("time-only","clock");e.set("timestamp-offset","time-zone");e.set("string","string");var o=({fieldType:s,label:n})=>t`<calcite-icon scale=s .icon=${e.get(s)??"string"} .textLabel=${n}></calcite-icon>`;export{o as a};
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
+ import{N as a,Q as o,T as r,h as n,j as s,v as i}from"./AM3UTQWH.js";var l=n`:host{position:absolute;inset-block:0;inset-inline-start:0;inline-size:min(100%,var(--arcgis-portal-preview-panel-width, 24rem));z-index:var(--arcgis-portal-preview-panel-z-index, 1);overflow:hidden;pointer-events:none}:host([fixed]){position:fixed}.pane{display:flex;flex-direction:column;block-size:100%;min-inline-size:0;overflow:auto;box-sizing:border-box;background:var(--calcite-color-background);border-inline:1px solid var(--calcite-color-border-3);visibility:hidden;opacity:0;transform:translate(-100%);transition:transform var(--calcite-animation-timing, .25s) ease,opacity var(--calcite-animation-timing, .25s) ease,visibility 0s var(--calcite-animation-timing, .25s)}:host(:dir(rtl)) .pane{transform:translate(100%)}:host([open]) .pane{pointer-events:auto;visibility:visible;opacity:1;transform:translate(0);transition-delay:0s}::slotted(*){flex:1;min-block-size:0}@media(prefers-reduced-motion:reduce){.pane{transition:none}}`,t=class extends a{constructor(){super(...arguments),this.#i=!1,this.open=!1,this.fixed=!1,this.arcgisClose=i(),this.arcgisOpen=i()}static{this.properties={open:7,fixed:7}}static{this.styles=l}#i;#e;updated(e){e.has("open")&&(this.#i=this.open,this.#e!==void 0&&cancelAnimationFrame(this.#e),this.open&&(this.#e=requestAnimationFrame(()=>{this.el.shadowRoot.querySelector(".pane").getAnimations().length||this.notifyOpen()})))}disconnectedCallback(){super.disconnectedCallback(),this.#e!==void 0&&cancelAnimationFrame(this.#e)}notifyOpen(){this.open&&this.#i&&(this.#i=!1,this.arcgisOpen.emit())}render(){return s`<div class="pane" .inert=${!this.open} aria-hidden=${(this.open?void 0:"true")??o} @transitionend=${e=>{e.target===e.currentTarget&&e.propertyName==="transform"&&this.notifyOpen()}} @keydown=${e=>{e.key==="Escape"&&!e.defaultPrevented&&this.open&&(e.preventDefault(),this.arcgisClose.emit())}}><slot></slot></div>`}};r("arcgis-portal-preview-panel",t);export{t as a};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import{d as m}from"./XX6BL3DR.js";import"./657KMT6Y.js";import{I as d,J as p,K as u,L as s,N as o,Q as h,h as n,j as a,v as c}from"./OUFJRLPQ.js";import"./KHKREBVZ.js";import"./5PV2GUZW.js";var v=n`.coord-field{margin-bottom:var(--calcite-spacing-sm)}.coord-label{display:block;margin-bottom:var(--calcite-spacing-sm);font-size:14px}.coordinate-input{width:100%;block-size:var(--calcite-spacing-xxxl);box-sizing:border-box;padding-inline:var(--calcite-spacing-md);font-size:14px;color:var(--calcite-color-text-3);outline-color:var(--calcite-color-brand)}.coordinate-input--error{border:1px solid var(--calcite-color-status-danger)}.coord-error-message{position:relative;max-width:100%;margin:var(--calcite-spacing-sm) 0;display:flex;font-size:14px;padding:6px 7px;background-color:var(--calcite-color-foreground-1);border:1px solid var(--calcite-color-status-danger);box-shadow:0 1px 2px #00000054}.coord-error-message:before{pointer-events:none;content:"";position:absolute;left:11px;top:-16px;width:0;height:0;border:8px solid transparent;border-bottom-color:var(--calcite-color-status-danger)}.coord-error-message:after{position:absolute;pointer-events:none;content:"";left:11px;top:-15px;width:0;height:0;border:8px solid transparent;border-bottom-color:var(--calcite-color-foreground-1)}.is-rtl .coord-error-message:before,.is-rtl .coord-error-message:after{left:initial;right:11px}.coord-error-message calcite-icon{color:var(--calcite-color-status-danger)}.coord-error-message__text{margin-left:var(--calcite-spacing-sm);margin-right:var(--calcite-spacing-sm);line-height:var(--calcite-spacing-xl)}`,l=class extends u{constructor(){super(...arguments),this._direction=m(),this.inputEl=d(),this.isInvalid=!1,this.currentError="",this.inputValue="",this.label="",this.value="",this.errorMessage="",this.min=-180,this.max=180,this.validateRelated=()=>!0,this.relatedErrorMessage="",this.inputId="",this.arcgisCoordChange=c()}static{this.properties={isInvalid:16,currentError:16,inputValue:16,label:1,value:1,errorMessage:1,min:9,max:9,validateRelated:0,relatedErrorMessage:1,inputId:1}}static{this.styles=v}checkRelatedField(){return!this.inputValue||!this.isInvalid||!this.validate(this.inputValue)?"":this.inputValue}isValid(){return!this.isInvalid}setFocus(){this.inputEl.value?.focus()}willUpdate(t){t.has("value")&&this.validate(this.value)}isValidCoord(t,e,i){if(!t?.match(/^-?[0-9]*(\.|,)?[0-9]+$/u))return!1;let r=this.parseNumber(t);return r>=e&&r<=i}validate(t){if(this.isInvalid=!this.isValidCoord(t,this.min,this.max),this.isInvalid)return this.currentError=this.errorMessage,!1;let e=this.parseNumber(t);return this.isInvalid=!this.validateRelated(e),this.isInvalid?(this.currentError=this.relatedErrorMessage,!1):!0}parseNumber(t){let e=`-${Array.from({length:10},(r,g)=>g.toString()).join("")}`,i=t.replace(",",".");return i=Array.from(i).filter(r=>e.includes(r)||r===".").join(""),parseFloat(i)}render(){return a`<div class=${s({"coord-field":!0,"is-rtl":this._direction==="rtl"})}><label class="coord-label" for=${this.inputId??o}>${this.label}</label><calcite-input-number number-button-type=none id=${this.inputId??o} class=${s({"coordinate-input":!0})} .value=${`${this.parseNumber(this.value)}`} @calciteInputNumberChange=${t=>{this.inputValue=t.target.value,this.validate(this.inputValue)&&this.arcgisCoordChange.emit(this.inputValue)}} .status=${this.isInvalid?"invalid":"valid"} ${p(this.inputEl)}></calcite-input-number>${this.isInvalid&&a`<div class="coord-error-message"><calcite-icon icon=exclamation-mark-triangle scale=s></calcite-icon><div class="coord-error-message__text">${this.currentError}</div></div>`||""}</div>`}};h("arcgis-portal-extent-picker-coord-field",l);export{l as ArcgisPortalExtentPickerCoordField};
2
+ import{d as m}from"./G7DJPREL.js";import"./GC4BV7IZ.js";import{L as d,M as p,N as u,O as s,Q as o,T as h,h as n,j as a,v as c}from"./AM3UTQWH.js";import"./KHKREBVZ.js";import"./5PV2GUZW.js";var v=n`.coord-field{margin-bottom:var(--calcite-spacing-sm)}.coord-label{display:block;margin-bottom:var(--calcite-spacing-sm);font-size:14px}.coordinate-input{width:100%;block-size:var(--calcite-spacing-xxxl);box-sizing:border-box;padding-inline:var(--calcite-spacing-md);font-size:14px;color:var(--calcite-color-text-3);outline-color:var(--calcite-color-brand)}.coordinate-input--error{border:1px solid var(--calcite-color-status-danger)}.coord-error-message{position:relative;max-width:100%;margin:var(--calcite-spacing-sm) 0;display:flex;font-size:14px;padding:6px 7px;background-color:var(--calcite-color-foreground-1);border:1px solid var(--calcite-color-status-danger);box-shadow:0 1px 2px #00000054}.coord-error-message:before{pointer-events:none;content:"";position:absolute;left:11px;top:-16px;width:0;height:0;border:8px solid transparent;border-bottom-color:var(--calcite-color-status-danger)}.coord-error-message:after{position:absolute;pointer-events:none;content:"";left:11px;top:-15px;width:0;height:0;border:8px solid transparent;border-bottom-color:var(--calcite-color-foreground-1)}.is-rtl .coord-error-message:before,.is-rtl .coord-error-message:after{left:initial;right:11px}.coord-error-message calcite-icon{color:var(--calcite-color-status-danger)}.coord-error-message__text{margin-left:var(--calcite-spacing-sm);margin-right:var(--calcite-spacing-sm);line-height:var(--calcite-spacing-xl)}`,l=class extends u{constructor(){super(...arguments),this._direction=m(),this.inputEl=d(),this.isInvalid=!1,this.currentError="",this.inputValue="",this.label="",this.value="",this.errorMessage="",this.min=-180,this.max=180,this.validateRelated=()=>!0,this.relatedErrorMessage="",this.inputId="",this.arcgisCoordChange=c()}static{this.properties={isInvalid:16,currentError:16,inputValue:16,label:1,value:1,errorMessage:1,min:9,max:9,validateRelated:0,relatedErrorMessage:1,inputId:1}}static{this.styles=v}checkRelatedField(){return!this.inputValue||!this.isInvalid||!this.validate(this.inputValue)?"":this.inputValue}isValid(){return!this.isInvalid}setFocus(){this.inputEl.value?.focus()}willUpdate(t){t.has("value")&&this.validate(this.value)}isValidCoord(t,e,i){if(!t?.match(/^-?[0-9]*(\.|,)?[0-9]+$/u))return!1;let r=this.parseNumber(t);return r>=e&&r<=i}validate(t){if(this.isInvalid=!this.isValidCoord(t,this.min,this.max),this.isInvalid)return this.currentError=this.errorMessage,!1;let e=this.parseNumber(t);return this.isInvalid=!this.validateRelated(e),this.isInvalid?(this.currentError=this.relatedErrorMessage,!1):!0}parseNumber(t){let e=`-${Array.from({length:10},(r,g)=>g.toString()).join("")}`,i=t.replace(",",".");return i=Array.from(i).filter(r=>e.includes(r)||r===".").join(""),parseFloat(i)}render(){return a`<div class=${s({"coord-field":!0,"is-rtl":this._direction==="rtl"})}><label class="coord-label" for=${this.inputId??o}>${this.label}</label><calcite-input-number number-button-type=none id=${this.inputId??o} class=${s({"coordinate-input":!0})} .value=${`${this.parseNumber(this.value)}`} @calciteInputNumberChange=${t=>{this.inputValue=t.target.value,this.validate(this.inputValue)&&this.arcgisCoordChange.emit(this.inputValue)}} .status=${this.isInvalid?"invalid":"valid"} ${p(this.inputEl)}></calcite-input-number>${this.isInvalid&&a`<div class="coord-error-message"><calcite-icon icon=exclamation-mark-triangle scale=s></calcite-icon><div class="coord-error-message__text">${this.currentError}</div></div>`||""}</div>`}};h("arcgis-portal-extent-picker-coord-field",l);export{l as ArcgisPortalExtentPickerCoordField};
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
+ import{a}from"./5Y32T5IJ.js";import"./AM3UTQWH.js";import"./KHKREBVZ.js";import"./5PV2GUZW.js";export{a as ArcgisPortalPreviewPanel};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import{a as b,d as k}from"./4VLEUN7I.js";import"./KV4ZZSNW.js";import"./FN2QMDEW.js";import{I as c,J as h,K as g,M as f,N as $,Q as d,h as m,j as l}from"./OUFJRLPQ.js";import"./KHKREBVZ.js";import"./5PV2GUZW.js";var E=/^#[0-9a-f]{3}$/iu,x=/^#[0-9a-f]{6}$/iu;function u(o){return I(o)||v(o)}function I(o){return o?.length===4&&E.test(o)}function v(o){return o?.length===7&&x.test(o)}function O(o){if(!u(o))return null;let t=o.replace("#","");if(t.length===3){let[e,i,r]=t.split("");return{r:Number.parseInt(`${e}${e}`,16),g:Number.parseInt(`${i}${i}`,16),b:Number.parseInt(`${r}${r}`,16)}}return{r:Number.parseInt(t.slice(0,2),16),g:Number.parseInt(t.slice(2,4),16),b:Number.parseInt(t.slice(4,6),16)}}function w(o){let t=0;for(let i=0;i<o.length;i++)t=o.charCodeAt(i)+((t<<5)-t);let e="#";for(let i=0;i<3;i++){let r=t>>i*8&255;e+=`00${r.toString(16)}`.slice(-2)}return e}function y(o){let{r:t,g:e,b:i}=o;t/=255,e/=255,i/=255;let r=Math.max(t,e,i),n=Math.min(t,e,i),s=r-n;if(s===0)return 0;let a=0;switch(r){case t:a=(e-i)/s+(e<i?6:0);break;case e:a=(i-t)/s+2;break;default:a=(t-e)/s+4;break}return Math.round(a*60)}function M(o){let t=O(o);return t?y(t):0}var T=m`:host{display:inline-block}:host([scale="s"]){height:1.5rem;width:1.5rem;font-size:.625rem}:host([scale="m"]){height:2rem;width:2rem;font-size:.75rem}:host([scale="l"]){font-size:1rem;height:2.75rem;width:2.75rem}:host([scale="xl"]){font-size:1.25rem;height:4rem;width:4rem}.icon{display:flex;color:var(--calcite-color-text-3)}.background{position:relative;display:flex;height:100%;width:100%;align-items:center;justify-content:center}.initials{position:absolute;font-weight:700;text-transform:uppercase;color:var(--calcite-color-text-2)}.thumbnail{height:100%;width:100%}.tooltip-text{margin:0;padding:0;font-size:.75rem;color:var(--calcite-color-text-2)}calcite-tooltip{pointer-events:none}`,p=class extends g{constructor(){super(...arguments),this.imageEl=c(),this.fallbackEl=c(),this.tooltipEl=c(),this.imageError=!1,this.tooltipOpen=!1,this.tooltip=!1,this.scale="m"}static{this.properties={imageError:16,tooltipOpen:16,group:0,portal:0,tooltip:5,scale:3}}static{this.styles=T}willUpdate(t){t.has("group")&&(this.imageError=!1)}updated(){let t=this.tooltipEl.value,e=this.imageEl.value||this.fallbackEl.value;t&&e&&(t.referenceElement=e)}isDarkMode(){return!!this.el.closest(".calcite-mode-dark")}getThumbnailURI(){let{group:t,portal:e}=this;if(!t)return null;if(t.thumbnailUrl)return t.thumbnailUrl;let i=t.thumbnail;if(!i)return null;if(i.startsWith("http"))return i;if(!e||!t.id)return null;let r=k(e),n=r?`?token=${r}`:"";return`${b(e)}community/groups/${t.id}/info/${i}${n}`}generateFillColor(){let{id:t,title:e}=this.group||{},i=t?`#${t.slice(Math.max(0,t.length-6))}`:"",r=t&&u(i)?i:w(e||"");if(!t&&!e||!u(r))return"var(--calcite-color-foreground-2)";let n=M(r),s=this.isDarkMode()?20:90;return`hsl(${n}, 60%, ${s}%)`}generateInitials(){let t=this.group?.title?.trim().charAt(0);return t?.match(/^\w+$/u)?t:null}getIconScale(){return this.scale==="xl"?"l":this.scale==="xs"?"s":this.scale}renderTooltip(){return!this.tooltip||!this.group?.title?null:l`<calcite-tooltip .open=${this.tooltipOpen} close-on-click placement=bottom-start offset-distance=6 offset-skidding=0 ${h(this.tooltipEl)}><p class="tooltip-text">${this.group.title}</p></calcite-tooltip>`}render(){let t=this.getThumbnailURI();if(t&&!this.imageError)return l`<img class="thumbnail" src=${t??$} alt @error=${()=>{this.imageError=!0}} @mouseenter=${()=>{this.tooltipOpen=!0}} @mouseleave=${()=>{this.tooltipOpen=!1}} @focusin=${()=>{this.tooltipOpen=!0}} @focusout=${()=>{this.tooltipOpen=!1}} ${h(this.imageEl)}>${this.renderTooltip()}`;let e=this.generateInitials();return l`<span class="background" style=${f({backgroundColor:this.generateFillColor()})} @mouseenter=${()=>{this.tooltipOpen=!0}} @mouseleave=${()=>{this.tooltipOpen=!1}} @focusin=${()=>{this.tooltipOpen=!0}} @focusout=${()=>{this.tooltipOpen=!1}} ${h(this.fallbackEl)}>${e?l`<span aria-hidden=true class="initials">${e}</span>`:l`<calcite-icon class="icon" icon=users .scale=${this.getIconScale()}></calcite-icon>`}</span>${this.renderTooltip()}`}};d("arcgis-portal-group-thumbnail",p);export{p as ArcgisPortalGroupThumbnail};
2
+ import{a as b,d as k}from"./4VLEUN7I.js";import"./KV4ZZSNW.js";import"./FN2QMDEW.js";import{L as c,M as h,N as g,P as f,Q as $,T as d,h as m,j as l}from"./AM3UTQWH.js";import"./KHKREBVZ.js";import"./5PV2GUZW.js";var E=/^#[0-9a-f]{3}$/iu,x=/^#[0-9a-f]{6}$/iu;function u(o){return I(o)||v(o)}function I(o){return o?.length===4&&E.test(o)}function v(o){return o?.length===7&&x.test(o)}function O(o){if(!u(o))return null;let t=o.replace("#","");if(t.length===3){let[e,i,r]=t.split("");return{r:Number.parseInt(`${e}${e}`,16),g:Number.parseInt(`${i}${i}`,16),b:Number.parseInt(`${r}${r}`,16)}}return{r:Number.parseInt(t.slice(0,2),16),g:Number.parseInt(t.slice(2,4),16),b:Number.parseInt(t.slice(4,6),16)}}function w(o){let t=0;for(let i=0;i<o.length;i++)t=o.charCodeAt(i)+((t<<5)-t);let e="#";for(let i=0;i<3;i++){let r=t>>i*8&255;e+=`00${r.toString(16)}`.slice(-2)}return e}function y(o){let{r:t,g:e,b:i}=o;t/=255,e/=255,i/=255;let r=Math.max(t,e,i),n=Math.min(t,e,i),s=r-n;if(s===0)return 0;let a=0;switch(r){case t:a=(e-i)/s+(e<i?6:0);break;case e:a=(i-t)/s+2;break;default:a=(t-e)/s+4;break}return Math.round(a*60)}function M(o){let t=O(o);return t?y(t):0}var T=m`:host{display:inline-block}:host([scale="s"]){height:1.5rem;width:1.5rem;font-size:.625rem}:host([scale="m"]){height:2rem;width:2rem;font-size:.75rem}:host([scale="l"]){font-size:1rem;height:2.75rem;width:2.75rem}:host([scale="xl"]){font-size:1.25rem;height:4rem;width:4rem}.icon{display:flex;color:var(--calcite-color-text-3)}.background{position:relative;display:flex;height:100%;width:100%;align-items:center;justify-content:center}.initials{position:absolute;font-weight:700;text-transform:uppercase;color:var(--calcite-color-text-2)}.thumbnail{height:100%;width:100%}.tooltip-text{margin:0;padding:0;font-size:.75rem;color:var(--calcite-color-text-2)}calcite-tooltip{pointer-events:none}`,p=class extends g{constructor(){super(...arguments),this.imageEl=c(),this.fallbackEl=c(),this.tooltipEl=c(),this.imageError=!1,this.tooltipOpen=!1,this.tooltip=!1,this.scale="m"}static{this.properties={imageError:16,tooltipOpen:16,group:0,portal:0,tooltip:5,scale:3}}static{this.styles=T}willUpdate(t){t.has("group")&&(this.imageError=!1)}updated(){let t=this.tooltipEl.value,e=this.imageEl.value||this.fallbackEl.value;t&&e&&(t.referenceElement=e)}isDarkMode(){return!!this.el.closest(".calcite-mode-dark")}getThumbnailURI(){let{group:t,portal:e}=this;if(!t)return null;if(t.thumbnailUrl)return t.thumbnailUrl;let i=t.thumbnail;if(!i)return null;if(i.startsWith("http"))return i;if(!e||!t.id)return null;let r=k(e),n=r?`?token=${r}`:"";return`${b(e)}community/groups/${t.id}/info/${i}${n}`}generateFillColor(){let{id:t,title:e}=this.group||{},i=t?`#${t.slice(Math.max(0,t.length-6))}`:"",r=t&&u(i)?i:w(e||"");if(!t&&!e||!u(r))return"var(--calcite-color-foreground-2)";let n=M(r),s=this.isDarkMode()?20:90;return`hsl(${n}, 60%, ${s}%)`}generateInitials(){let t=this.group?.title?.trim().charAt(0);return t?.match(/^\w+$/u)?t:null}getIconScale(){return this.scale==="xl"?"l":this.scale==="xs"?"s":this.scale}renderTooltip(){return!this.tooltip||!this.group?.title?null:l`<calcite-tooltip .open=${this.tooltipOpen} close-on-click placement=bottom-start offset-distance=6 offset-skidding=0 ${h(this.tooltipEl)}><p class="tooltip-text">${this.group.title}</p></calcite-tooltip>`}render(){let t=this.getThumbnailURI();if(t&&!this.imageError)return l`<img class="thumbnail" src=${t??$} alt @error=${()=>{this.imageError=!0}} @mouseenter=${()=>{this.tooltipOpen=!0}} @mouseleave=${()=>{this.tooltipOpen=!1}} @focusin=${()=>{this.tooltipOpen=!0}} @focusout=${()=>{this.tooltipOpen=!1}} ${h(this.imageEl)}>${this.renderTooltip()}`;let e=this.generateInitials();return l`<span class="background" style=${f({backgroundColor:this.generateFillColor()})} @mouseenter=${()=>{this.tooltipOpen=!0}} @mouseleave=${()=>{this.tooltipOpen=!1}} @focusin=${()=>{this.tooltipOpen=!0}} @focusout=${()=>{this.tooltipOpen=!1}} ${h(this.fallbackEl)}>${e?l`<span aria-hidden=true class="initials">${e}</span>`:l`<calcite-icon class="icon" icon=users .scale=${this.getIconScale()}></calcite-icon>`}</span>${this.renderTooltip()}`}};d("arcgis-portal-group-thumbnail",p);export{p as ArcgisPortalGroupThumbnail};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import{a as C}from"./4QYVBXZT.js";import{c as y}from"./KV4ZZSNW.js";import{a as x}from"./FN2QMDEW.js";import{a as k}from"./WQOCWSJC.js";import{I as f,J as _,K as w,L as g,N as l,Q as $,h as b,j as t,v as h}from"./OUFJRLPQ.js";export default $arcgis.t(([{substitute:m,formatDate:B}])=>{var S=b`:host{display:block;min-width:0;container-type:inline-size;container-name:portal-group-card}.group-card{position:relative;display:flex;height:100%;flex-direction:column;color:var(--calcite-color-text-1);opacity:0;box-shadow:none;transition-duration:.15s;outline-color:transparent;background-color:var(--calcite-color-foreground-1);transition-property:background-color,outline,outline-offset,opacity;border:1px solid var(--calcite-color-border-3);&:focus{z-index:10;outline:2px solid var(--calcite-color-brand);outline-offset:-2px}}.group-card--loaded{opacity:1}.group-card--selected{border-color:var(--calcite-color-brand)}.group-card--hoverable{cursor:pointer}.group-card--disabled{opacity:.5}.group-card__top{padding:.75rem}.group-card__upper{flex:1 1 0%;background-color:var(--calcite-color-foreground-1);transition:all var(--calcite-animation-timing) ease-in-out 0s,outline 0s,outline-offset 0s}.group-card__upper:hover{background-color:var(--calcite-color-background)}.group-card__upper--compact{display:flex;align-items:flex-start;padding:.5rem .75rem}.group-card__upper--link{color:var(--calcite-color-text-1);text-decoration-line:none;outline-color:transparent;&:focus{z-index:10;outline:2px solid var(--calcite-color-brand);outline-offset:2px}}.group-card__title__span{position:relative;display:inline;border-style:none;background-color:transparent;padding:0;transition:all var(--calcite-animation-timing) ease-in-out 0s,outline 0s,outline-offset 0s;background-image:linear-gradient(transparent,transparent);background-position-x:0%,100%;background-position-y:min(1.25em,100%);background-repeat:no-repeat,no-repeat;background-size:100% 1px,100% 1px}.group-card--previewed .group-card__title__span{background-image:linear-gradient(var(--calcite-color-text-3),var(--calcite-color-text-3))}.group-card__content{display:flex;min-width:0;flex:1 1 0%;flex-direction:column}.group-card__details{display:flex;flex-direction:column;margin-top:.25rem;position:relative}.group-card__details .group-card__divider:before{display:none}.group-card__detail{font-size:.75rem;line-height:1.35;color:var(--calcite-color-text-2);margin:.25rem 0}.group-card__detail__icon{margin-inline-end:.5rem}.group-card__footer{margin-top:auto;display:flex;align-items:center;background-color:var(--calcite-color-foreground-1);padding:.25rem .75rem;border-top:1px solid var(--calcite-color-border-3)}.group-card__footer__start{display:flex;min-width:0;flex:1 1 0%;align-items:center;overflow:hidden;margin-inline-end:.75rem}.group-card__footer__end{display:flex}.group-card__profile-wrap{max-width:100%;padding:.25rem}.group-card__divider{display:flex;align-items:center;flex:0 0 auto}.group-card__divider:not([empty]):before{content:"";height:1.25rem;width:1px;background-color:var(--calcite-color-border-1);margin-inline:.75rem;display:none}.group-card-flex{display:flex}.group-card-flex-1{min-width:0;flex:1 1 0%}.screen-readers-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.group-card__input{margin-inline-end:1rem;margin-top:.125rem}.group-card__input--compact{height:100%;display:flex;align-items:center}.group-card__title{margin:0;overflow-wrap:break-word;padding:0;font-size:.875rem;font-weight:500;line-height:1.375}.group-card__title--compact{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-inline-end:1rem}.group-card__title--padded{margin-bottom:.25rem}.group-card__summary{margin:.25rem 0;flex:1 1 0%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:0;font-size:.875rem;line-height:1.25}.group-card__thumbnail{margin-inline-end:1rem;padding-inline-start:.75rem;width:4.25rem}.group-card__thumbnail--compact{width:2.75rem;height:2.75rem;flex-shrink:0}.group-card__upper--compact .group-card-flex-1{display:flex;justify-content:space-between;align-items:center;gap:.25rem;height:100%}.group-card__badges--compact{margin-top:.125rem;max-width:100%}.group-card__badges{margin-top:.25rem}.group-card__badges-measurement{inset:0;position:absolute;visibility:hidden;pointer-events:none}.group-card__badges--measurement{width:max-content}.group-card__owner{min-width:0}@container portal-group-card (min-width: 321px){.group-card__thumbnail{padding-inline-start:.5rem;width:5rem}}@container portal-group-card (min-width: 641px){.group-card__top{padding:1rem}.group-card__title{font-size:1rem}.group-card__title--padded{margin-bottom:0}.group-card__detail{font-size:.875rem;line-height:normal;margin:0}.group-card__footer{padding:.5rem 1rem}.group-card__thumbnail{padding-inline-start:0;width:auto}}@container portal-group-card (min-width: 769px){.group-card__details{flex-direction:row}.group-card__details .group-card__divider:not([empty])+.group-card__divider:not([empty]):before{display:block}}`,v=class extends w{constructor(){super(...arguments),this.messages=k({blocking:!0}),this.sectionEl=f(),this.handleCardClick=e=>{if(!(this.link||this.disabled||e?.target?.closest(".group-card__footer"))){if(this.preview==="top"){this.arcgisGroupBrowserCardPreview.emit(this.group);return}if(this.selection==="single"){this.selected=!0,this.arcgisGroupCardSelect.emit({group:this.group,selected:!0});return}this.selection==="multiple"&&(this.selected=!this.selected,this.arcgisGroupCardSelect.emit({group:this.group,selected:this.selected}))}},this.syncBadgeLayout=()=>{let e=this.renderRoot.querySelector(".group-card__details"),r=e?.querySelector(".group-card__badges--responsive"),i=e?.querySelector(".group-card__badges--measurement");if(!e||!r||!i){this.badgesFitSingleLine=!0;return}let n=i.getBoundingClientRect().width,o=this.getAvailableBadgeWidth(e,r);this.badgesFitSingleLine=n<=o},this.hover=!1,this.isLoaded=!1,this.badgesFitSingleLine=!1,this.selected=!1,this.indeterminate=!1,this.view="list",this.selection="none",this.previewed=!1,this.hideOwner=!1,this.hideDateUpdated=!1,this.showDateCreated=!1,this.hideViewableBy=!1,this.showSummary=!1,this.hideBadges=!1,this.newTab=!1,this.disabled=!1,this.arcgisGroupBrowserCardPreview=h(),this.arcgisGroupBrowserInternalUIAction=h(),this.arcgisGroupCardSelect=h()}static{this.properties={hover:16,isLoaded:16,badgesFitSingleLine:16,group:0,user:0,portal:0,selected:7,indeterminate:7,view:1,selection:1,preview:1,previewed:5,name:1,hideOwner:5,hideDateUpdated:5,showDateCreated:5,hideViewableBy:5,showSummary:5,hideBadges:5,link:1,linkHandler:0,newTab:5,disabled:7}}static{this.styles=S}async restoreFocus(){if(this.link){this.renderRoot.querySelector(".group-card__upper")?.focus();return}this.sectionEl.value?.focus()}connectedCallback(){super.connectedCallback(),window.addEventListener("resize",this.syncBadgeLayout)}firstUpdated(){requestAnimationFrame(()=>{this.isLoaded=!0,this.syncBadgeLayout()})}updated(e){(e.has("group")||e.has("hideBadges")||e.has("view"))&&this.syncBadgeLayout()}disconnectedCallback(){window.removeEventListener("resize",this.syncBadgeLayout),super.disconnectedCallback()}getAvailableBadgeWidth(e,r){let i=getComputedStyle(e);if(i.flexDirection!=="row")return e.clientWidth;let n=Array.from(e.children),o=n.indexOf(r);if(o<0)return e.clientWidth;let d=Number.parseFloat(i.columnGap||i.gap||"0")||0,c=n.slice(0,o).reduce((s,p)=>s+p.getBoundingClientRect().width,0);return e.clientWidth-c-d*o}getAccessInfo(e){let{messages:r}=this,i={public:{icon:"globe",text:r.everyone},private:{icon:"lock",text:r.groupMembers},org:{icon:"organization",text:r.organization}};return i[e]??i.private}getThumbnailGroup(e){return{id:e.id??"",title:e.title??"",thumbnail:C(e)?.thumbnail,thumbnailUrl:e.thumbnailUrl??void 0}}getResolvedBaseUrl(){return this.portal?y({portal:this.portal}):""}renderCompactBadges(e){return this.hideBadges?null:t`<arcgis-portal-group-badges appearance=solid .group=${e} .portal=${this.portal} class="group-card__badges--compact" scale=s show-tooltips width=narrow></arcgis-portal-group-badges>`}renderBadges(e){return this.hideBadges?null:t`<arcgis-portal-group-badges .appearance=${this.hover?"outline-fill":"solid"} .group=${e} .portal=${this.portal} .width=${this.badgesFitSingleLine?"full":"narrow"} class="group-card__badges group-card__badges--responsive group-card__detail group-card__divider" scale=s show-tooltips></arcgis-portal-group-badges>`}renderBadgeMeasurement(e){return this.hideBadges?null:t`<div aria-hidden=true class="group-card__badges-measurement"><arcgis-portal-group-badges .appearance=${this.hover?"outline-fill":"solid"} .group=${e} .portal=${this.portal} width=full class="group-card__badges group-card__badges--measurement" scale=s></arcgis-portal-group-badges></div>`}renderDetails(e,r){return t`<div class="group-card__details">${this.showDateCreated&&!!e.created&&t`<span class="group-card__detail group-card__divider">${m(this.messages.created??"",{date:B(e.created,{dateStyle:"medium"})})}</span>`||""}${!this.hideDateUpdated&&!!e.modified&&t`<span class="group-card__detail group-card__divider">${m(this.messages.lastUpdated??"",{date:B(e.modified,{dateStyle:"medium"})})}</span>`||""}${!this.hideViewableBy&&t`<span class="group-card__detail group-card__divider"><calcite-icon class="group-card__detail__icon" .icon=${r.icon} scale=s></calcite-icon>${m(this.messages.viewableBy??"",{level:r.text})}</span>`||""}${this.renderBadges(e)}${this.renderBadgeMeasurement(e)}</div>`}renderListContent(e,r,i){return t`<div class="group-card-flex group-card__top">${this.renderSelectionInput()}<div class="group-card__thumbnail"><arcgis-portal-group-thumbnail .group=${r} .portal=${this.portal} scale=xl></arcgis-portal-group-thumbnail></div><div class="group-card-flex-1"><div class="group-card-flex"><div class="group-card__content"><h3 class=${g({"group-card__title":!0,"group-card__title--padded":this.showSummary&&!!e.snippet})}><span class="group-card__title__span">${e.title}</span></h3>${this.showSummary&&!!e.snippet&&t`<p class="group-card__summary">${e.snippet.length>250?`${e.snippet.substring(0,250)}...`:e.snippet}</p>`||""}${this.renderDetails(e,i)}<slot name=content-end></slot></div></div></div></div>`}renderSelectionInput(){let{selection:e,selected:r,disabled:i,name:n,messages:o,group:d}=this,c=this.view==="compact";switch(e){case"single":return t`<calcite-radio-button class=${g({"group-card__input":!0,"group-card__input--compact":c})} .checked=${r} .disabled=${i} .value=${d.title??""} .name=${n} @click=${s=>s.stopPropagation()} @calciteRadioButtonChange=${()=>{this.arcgisGroupCardSelect.emit({group:d,selected:!r})}}><span class="screen-readers-only">${m(o.select??"",{title:d.title??""})}</span></calcite-radio-button>`;case"multiple":return t`<calcite-checkbox class=${g({"group-card__input":!0,"group-card__input--compact":c})} .checked=${r} .disabled=${i} .indeterminate=${this.indeterminate} @click=${s=>s.stopPropagation()} @calciteCheckboxChange=${()=>{let s=!this.selected;this.selected=s,this.arcgisGroupCardSelect.emit({group:d,selected:s})}}><span class="screen-readers-only">${d.title}</span></calcite-checkbox>`;case"none":return null;default:return x(e)}}renderCompactView(){let{group:e,selection:r,isLoaded:i,disabled:n,link:o,newTab:d,linkHandler:c,handleCardClick:s,selected:p}=this,a=this.getThumbnailGroup(e);return t`<section class=${g({"group-card":!0,"group-card--hoverable":r!=="none","group-card--selected":p,"group-card--disabled":n,"group-card--loaded":i})} tabindex=-1 @click=${o?void 0:s} @mouseover=${()=>{this.hover=!0}} @mouseout=${()=>{this.hover=!1}} ${_(this.sectionEl)}>${o?t`<a class="group-card__upper group-card__upper--compact group-card__upper--link" href=${o??l} target=${(d?"_blank":void 0)??l} rel=${(d?"noopener noreferrer":void 0)??l} @click=${u=>{c&&!u.ctrlKey&&!u.metaKey&&(u.preventDefault(),c(this.group))}}>${t`${this.renderSelectionInput()}<div class="group-card__thumbnail group-card__thumbnail--compact"><arcgis-portal-group-thumbnail .group=${a} .portal=${this.portal} scale=l></arcgis-portal-group-thumbnail></div><div class="group-card-flex-1"><h3 class="group-card__title group-card__title--compact"><span class="group-card__title__span">${e.title}</span></h3>${this.renderCompactBadges(e)}</div><slot name=content-end></slot>`}</a>`:t`<div class="group-card__upper group-card__upper--compact">${this.renderSelectionInput()}<div class="group-card__thumbnail group-card__thumbnail--compact"><arcgis-portal-group-thumbnail .group=${a} .portal=${this.portal} scale=l></arcgis-portal-group-thumbnail></div><div class="group-card-flex-1"><h3 class="group-card__title group-card__title--compact"><span class="group-card__title__span">${e.title}</span></h3>${this.renderCompactBadges(e)}</div><slot name=content-end></slot></div>`}</section>`}render(){let{group:e,selection:r,isLoaded:i,disabled:n,link:o}=this;if(!e||!this.messages._lang)return;if(this.view==="compact")return this.renderCompactView();let d=this.getAccessInfo(e.access??"private"),c=this.getThumbnailGroup(e),s=this.preview==="top"&&!o,p=this.previewed;return t`<section class=${g({"group-card":!0,"group-card--hoverable":r!=="none","group-card--selected":this.selected,"group-card--disabled":n,"group-card--loaded":i,"group-card--previewed":p})} @click=${o?void 0:this.handleCardClick} tabindex=${(s?0:void 0)??l} .role=${s?"button":void 0} aria-haspopup=${(s?"dialog":void 0)??l} @keydown=${a=>{s&&(a.key==="Enter"||a.key===" ")&&(a.preventDefault(),this.handleCardClick())}} ${_(this.sectionEl)}><slot name=content-top></slot>${o?t`<a class="group-card__upper group-card__upper--link" href=${this.link??l} target=${(this.newTab?"_blank":void 0)??l} rel=${(this.newTab?"noopener noreferrer":void 0)??l} @mouseover=${()=>{this.hover=!0}} @mouseout=${()=>{this.hover=!1}} @click=${a=>{if(this.linkHandler&&!a.ctrlKey&&!a.metaKey){a.preventDefault(),this.linkHandler(this.group);return}let u=a.target;u instanceof HTMLElement&&u.closest(".group-card__footer")&&a.preventDefault()}}>${this.renderListContent(e,c,d)}</a>`:t`<div class="group-card__upper" @mouseover=${()=>{this.hover=!0}} @mouseout=${()=>{this.hover=!1}}>${this.renderListContent(e,c,d)}</div>`}<div class="group-card__footer"><div class="group-card__footer__start"><slot name=actions-start></slot>${!this.hideOwner&&t`<div class="group-card__profile-wrap"><arcgis-portal-user-popup .baseUrl=${this.getResolvedBaseUrl()} class="group-card__owner" .portal=${this.portal} .username=${e.owner??void 0} underline @arcgisUserPopupInternalUIAction=${a=>{a.stopPropagation(),this.arcgisGroupBrowserInternalUIAction.emit(a.detail)}}></arcgis-portal-user-popup></div>`||""}</div><div class="group-card__footer__end">${this.preview==="action"&&t`<calcite-button scale=s .appearance=${p?"solid":"outline-fill"} kind=neutral @click=${()=>{this.arcgisGroupBrowserCardPreview.emit(this.group)}}>${p?this.messages.hidePreview:this.messages.preview}</calcite-button>`||""}<div @click=${a=>{a.stopPropagation()}}><slot name=actions-end></slot></div></div></div></section>`}};$("arcgis-portal-group-card",v);return v},"intl")
2
+ import{a as C}from"./4QYVBXZT.js";import{c as y}from"./KV4ZZSNW.js";import{a as x}from"./FN2QMDEW.js";import{a as k}from"./B343BOVA.js";import{L as f,M as _,N as w,O as g,Q as l,T as $,h as b,j as t,v as h}from"./AM3UTQWH.js";export default $arcgis.t(([{substitute:m,formatDate:B}])=>{var S=b`:host{display:block;min-width:0;container-type:inline-size;container-name:portal-group-card}.group-card{position:relative;display:flex;height:100%;flex-direction:column;color:var(--calcite-color-text-1);opacity:0;box-shadow:none;transition-duration:.15s;outline-color:transparent;background-color:var(--calcite-color-foreground-1);transition-property:background-color,outline,outline-offset,opacity;border:1px solid var(--calcite-color-border-3);&:focus{z-index:10;outline:2px solid var(--calcite-color-brand);outline-offset:-2px}}.group-card--loaded{opacity:1}.group-card--selected{border-color:var(--calcite-color-brand)}.group-card--hoverable{cursor:pointer}.group-card--disabled{opacity:.5}.group-card__top{padding:.75rem}.group-card__upper{flex:1 1 0%;background-color:var(--calcite-color-foreground-1);transition:all var(--calcite-animation-timing) ease-in-out 0s,outline 0s,outline-offset 0s}.group-card__upper:hover{background-color:var(--calcite-color-background)}.group-card__upper--compact{display:flex;align-items:flex-start;padding:.5rem .75rem}.group-card__upper--link{color:var(--calcite-color-text-1);text-decoration-line:none;outline-color:transparent;&:focus{z-index:10;outline:2px solid var(--calcite-color-brand);outline-offset:2px}}.group-card__title__span{position:relative;display:inline;border-style:none;background-color:transparent;padding:0;transition:all var(--calcite-animation-timing) ease-in-out 0s,outline 0s,outline-offset 0s;background-image:linear-gradient(transparent,transparent);background-position-x:0%,100%;background-position-y:min(1.25em,100%);background-repeat:no-repeat,no-repeat;background-size:100% 1px,100% 1px}.group-card--previewed .group-card__title__span{background-image:linear-gradient(var(--calcite-color-text-3),var(--calcite-color-text-3))}.group-card__content{display:flex;min-width:0;flex:1 1 0%;flex-direction:column}.group-card__details{display:flex;flex-direction:column;margin-top:.25rem;position:relative}.group-card__details .group-card__divider:before{display:none}.group-card__detail{font-size:.75rem;line-height:1.35;color:var(--calcite-color-text-2);margin:.25rem 0}.group-card__detail__icon{margin-inline-end:.5rem}.group-card__footer{margin-top:auto;display:flex;align-items:center;background-color:var(--calcite-color-foreground-1);padding:.25rem .75rem;border-top:1px solid var(--calcite-color-border-3)}.group-card__footer__start{display:flex;min-width:0;flex:1 1 0%;align-items:center;overflow:hidden;margin-inline-end:.75rem}.group-card__footer__end{display:flex}.group-card__profile-wrap{max-width:100%;padding:.25rem}.group-card__divider{display:flex;align-items:center;flex:0 0 auto}.group-card__divider:not([empty]):before{content:"";height:1.25rem;width:1px;background-color:var(--calcite-color-border-1);margin-inline:.75rem;display:none}.group-card-flex{display:flex}.group-card-flex-1{min-width:0;flex:1 1 0%}.screen-readers-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.group-card__input{margin-inline-end:1rem;margin-top:.125rem}.group-card__input--compact{height:100%;display:flex;align-items:center}.group-card__title{margin:0;overflow-wrap:break-word;padding:0;font-size:.875rem;font-weight:500;line-height:1.375}.group-card__title--compact{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-inline-end:1rem}.group-card__title--padded{margin-bottom:.25rem}.group-card__summary{margin:.25rem 0;flex:1 1 0%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:0;font-size:.875rem;line-height:1.25}.group-card__thumbnail{margin-inline-end:1rem;padding-inline-start:.75rem;width:4.25rem}.group-card__thumbnail--compact{width:2.75rem;height:2.75rem;flex-shrink:0}.group-card__upper--compact .group-card-flex-1{display:flex;justify-content:space-between;align-items:center;gap:.25rem;height:100%}.group-card__badges--compact{margin-top:.125rem;max-width:100%}.group-card__badges{margin-top:.25rem}.group-card__badges-measurement{inset:0;position:absolute;visibility:hidden;pointer-events:none}.group-card__badges--measurement{width:max-content}.group-card__owner{min-width:0}@container portal-group-card (min-width: 321px){.group-card__thumbnail{padding-inline-start:.5rem;width:5rem}}@container portal-group-card (min-width: 641px){.group-card__top{padding:1rem}.group-card__title{font-size:1rem}.group-card__title--padded{margin-bottom:0}.group-card__detail{font-size:.875rem;line-height:normal;margin:0}.group-card__footer{padding:.5rem 1rem}.group-card__thumbnail{padding-inline-start:0;width:auto}}@container portal-group-card (min-width: 769px){.group-card__details{flex-direction:row}.group-card__details .group-card__divider:not([empty])+.group-card__divider:not([empty]):before{display:block}}`,v=class extends w{constructor(){super(...arguments),this.messages=k({blocking:!0}),this.sectionEl=f(),this.handleCardClick=e=>{if(!(this.link||this.disabled||e?.target?.closest(".group-card__footer"))){if(this.preview==="top"){this.arcgisGroupBrowserCardPreview.emit(this.group);return}if(this.selection==="single"){this.selected=!0,this.arcgisGroupCardSelect.emit({group:this.group,selected:!0});return}this.selection==="multiple"&&(this.selected=!this.selected,this.arcgisGroupCardSelect.emit({group:this.group,selected:this.selected}))}},this.syncBadgeLayout=()=>{let e=this.renderRoot.querySelector(".group-card__details"),r=e?.querySelector(".group-card__badges--responsive"),i=e?.querySelector(".group-card__badges--measurement");if(!e||!r||!i){this.badgesFitSingleLine=!0;return}let n=i.getBoundingClientRect().width,o=this.getAvailableBadgeWidth(e,r);this.badgesFitSingleLine=n<=o},this.hover=!1,this.isLoaded=!1,this.badgesFitSingleLine=!1,this.selected=!1,this.indeterminate=!1,this.view="list",this.selection="none",this.previewed=!1,this.hideOwner=!1,this.hideDateUpdated=!1,this.showDateCreated=!1,this.hideViewableBy=!1,this.showSummary=!1,this.hideBadges=!1,this.newTab=!1,this.disabled=!1,this.arcgisGroupBrowserCardPreview=h(),this.arcgisGroupBrowserInternalUIAction=h(),this.arcgisGroupCardSelect=h()}static{this.properties={hover:16,isLoaded:16,badgesFitSingleLine:16,group:0,user:0,portal:0,selected:7,indeterminate:7,view:1,selection:1,preview:1,previewed:5,name:1,hideOwner:5,hideDateUpdated:5,showDateCreated:5,hideViewableBy:5,showSummary:5,hideBadges:5,link:1,linkHandler:0,newTab:5,disabled:7}}static{this.styles=S}async restoreFocus(){if(this.link){this.renderRoot.querySelector(".group-card__upper")?.focus();return}this.sectionEl.value?.focus()}connectedCallback(){super.connectedCallback(),window.addEventListener("resize",this.syncBadgeLayout)}firstUpdated(){requestAnimationFrame(()=>{this.isLoaded=!0,this.syncBadgeLayout()})}updated(e){(e.has("group")||e.has("hideBadges")||e.has("view"))&&this.syncBadgeLayout()}disconnectedCallback(){window.removeEventListener("resize",this.syncBadgeLayout),super.disconnectedCallback()}getAvailableBadgeWidth(e,r){let i=getComputedStyle(e);if(i.flexDirection!=="row")return e.clientWidth;let n=Array.from(e.children),o=n.indexOf(r);if(o<0)return e.clientWidth;let d=Number.parseFloat(i.columnGap||i.gap||"0")||0,c=n.slice(0,o).reduce((s,p)=>s+p.getBoundingClientRect().width,0);return e.clientWidth-c-d*o}getAccessInfo(e){let{messages:r}=this,i={public:{icon:"globe",text:r.everyone},private:{icon:"lock",text:r.groupMembers},org:{icon:"organization",text:r.organization}};return i[e]??i.private}getThumbnailGroup(e){return{id:e.id??"",title:e.title??"",thumbnail:C(e)?.thumbnail,thumbnailUrl:e.thumbnailUrl??void 0}}getResolvedBaseUrl(){return this.portal?y({portal:this.portal}):""}renderCompactBadges(e){return this.hideBadges?null:t`<arcgis-portal-group-badges appearance=solid .group=${e} .portal=${this.portal} class="group-card__badges--compact" scale=s show-tooltips width=narrow></arcgis-portal-group-badges>`}renderBadges(e){return this.hideBadges?null:t`<arcgis-portal-group-badges .appearance=${this.hover?"outline-fill":"solid"} .group=${e} .portal=${this.portal} .width=${this.badgesFitSingleLine?"full":"narrow"} class="group-card__badges group-card__badges--responsive group-card__detail group-card__divider" scale=s show-tooltips></arcgis-portal-group-badges>`}renderBadgeMeasurement(e){return this.hideBadges?null:t`<div aria-hidden=true class="group-card__badges-measurement"><arcgis-portal-group-badges .appearance=${this.hover?"outline-fill":"solid"} .group=${e} .portal=${this.portal} width=full class="group-card__badges group-card__badges--measurement" scale=s></arcgis-portal-group-badges></div>`}renderDetails(e,r){return t`<div class="group-card__details">${this.showDateCreated&&!!e.created&&t`<span class="group-card__detail group-card__divider">${m(this.messages.created??"",{date:B(e.created,{dateStyle:"medium"})})}</span>`||""}${!this.hideDateUpdated&&!!e.modified&&t`<span class="group-card__detail group-card__divider">${m(this.messages.lastUpdated??"",{date:B(e.modified,{dateStyle:"medium"})})}</span>`||""}${!this.hideViewableBy&&t`<span class="group-card__detail group-card__divider"><calcite-icon class="group-card__detail__icon" .icon=${r.icon} scale=s></calcite-icon>${m(this.messages.viewableBy??"",{level:r.text})}</span>`||""}${this.renderBadges(e)}${this.renderBadgeMeasurement(e)}</div>`}renderListContent(e,r,i){return t`<div class="group-card-flex group-card__top">${this.renderSelectionInput()}<div class="group-card__thumbnail"><arcgis-portal-group-thumbnail .group=${r} .portal=${this.portal} scale=xl></arcgis-portal-group-thumbnail></div><div class="group-card-flex-1"><div class="group-card-flex"><div class="group-card__content"><h3 class=${g({"group-card__title":!0,"group-card__title--padded":this.showSummary&&!!e.snippet})}><span class="group-card__title__span">${e.title}</span></h3>${this.showSummary&&!!e.snippet&&t`<p class="group-card__summary">${e.snippet.length>250?`${e.snippet.substring(0,250)}...`:e.snippet}</p>`||""}${this.renderDetails(e,i)}<slot name=content-end></slot></div></div></div></div>`}renderSelectionInput(){let{selection:e,selected:r,disabled:i,name:n,messages:o,group:d}=this,c=this.view==="compact";switch(e){case"single":return t`<calcite-radio-button class=${g({"group-card__input":!0,"group-card__input--compact":c})} .checked=${r} .disabled=${i} .value=${d.title??""} .name=${n} @click=${s=>s.stopPropagation()} @calciteRadioButtonChange=${()=>{this.arcgisGroupCardSelect.emit({group:d,selected:!r})}}><span class="screen-readers-only">${m(o.select??"",{title:d.title??""})}</span></calcite-radio-button>`;case"multiple":return t`<calcite-checkbox class=${g({"group-card__input":!0,"group-card__input--compact":c})} .checked=${r} .disabled=${i} .indeterminate=${this.indeterminate} @click=${s=>s.stopPropagation()} @calciteCheckboxChange=${()=>{let s=!this.selected;this.selected=s,this.arcgisGroupCardSelect.emit({group:d,selected:s})}}><span class="screen-readers-only">${d.title}</span></calcite-checkbox>`;case"none":return null;default:return x(e)}}renderCompactView(){let{group:e,selection:r,isLoaded:i,disabled:n,link:o,newTab:d,linkHandler:c,handleCardClick:s,selected:p}=this,a=this.getThumbnailGroup(e);return t`<section class=${g({"group-card":!0,"group-card--hoverable":r!=="none","group-card--selected":p,"group-card--disabled":n,"group-card--loaded":i})} tabindex=-1 @click=${o?void 0:s} @mouseover=${()=>{this.hover=!0}} @mouseout=${()=>{this.hover=!1}} ${_(this.sectionEl)}>${o?t`<a class="group-card__upper group-card__upper--compact group-card__upper--link" href=${o??l} target=${(d?"_blank":void 0)??l} rel=${(d?"noopener noreferrer":void 0)??l} @click=${u=>{c&&!u.ctrlKey&&!u.metaKey&&(u.preventDefault(),c(this.group))}}>${t`${this.renderSelectionInput()}<div class="group-card__thumbnail group-card__thumbnail--compact"><arcgis-portal-group-thumbnail .group=${a} .portal=${this.portal} scale=l></arcgis-portal-group-thumbnail></div><div class="group-card-flex-1"><h3 class="group-card__title group-card__title--compact"><span class="group-card__title__span">${e.title}</span></h3>${this.renderCompactBadges(e)}</div><slot name=content-end></slot>`}</a>`:t`<div class="group-card__upper group-card__upper--compact">${this.renderSelectionInput()}<div class="group-card__thumbnail group-card__thumbnail--compact"><arcgis-portal-group-thumbnail .group=${a} .portal=${this.portal} scale=l></arcgis-portal-group-thumbnail></div><div class="group-card-flex-1"><h3 class="group-card__title group-card__title--compact"><span class="group-card__title__span">${e.title}</span></h3>${this.renderCompactBadges(e)}</div><slot name=content-end></slot></div>`}</section>`}render(){let{group:e,selection:r,isLoaded:i,disabled:n,link:o}=this;if(!e||!this.messages._lang)return;if(this.view==="compact")return this.renderCompactView();let d=this.getAccessInfo(e.access??"private"),c=this.getThumbnailGroup(e),s=this.preview==="top"&&!o,p=this.previewed;return t`<section class=${g({"group-card":!0,"group-card--hoverable":r!=="none","group-card--selected":this.selected,"group-card--disabled":n,"group-card--loaded":i,"group-card--previewed":p})} @click=${o?void 0:this.handleCardClick} tabindex=${(s?0:void 0)??l} .role=${s?"button":void 0} aria-haspopup=${(s?"dialog":void 0)??l} @keydown=${a=>{s&&(a.key==="Enter"||a.key===" ")&&(a.preventDefault(),this.handleCardClick())}} ${_(this.sectionEl)}><slot name=content-top></slot>${o?t`<a class="group-card__upper group-card__upper--link" href=${this.link??l} target=${(this.newTab?"_blank":void 0)??l} rel=${(this.newTab?"noopener noreferrer":void 0)??l} @mouseover=${()=>{this.hover=!0}} @mouseout=${()=>{this.hover=!1}} @click=${a=>{if(this.linkHandler&&!a.ctrlKey&&!a.metaKey){a.preventDefault(),this.linkHandler(this.group);return}let u=a.target;u instanceof HTMLElement&&u.closest(".group-card__footer")&&a.preventDefault()}}>${this.renderListContent(e,c,d)}</a>`:t`<div class="group-card__upper" @mouseover=${()=>{this.hover=!0}} @mouseout=${()=>{this.hover=!1}}>${this.renderListContent(e,c,d)}</div>`}<div class="group-card__footer"><div class="group-card__footer__start"><slot name=actions-start></slot>${!this.hideOwner&&t`<div class="group-card__profile-wrap"><arcgis-portal-user-popup .baseUrl=${this.getResolvedBaseUrl()} class="group-card__owner" .portal=${this.portal} .username=${e.owner??void 0} underline @arcgisUserPopupInternalUIAction=${a=>{a.stopPropagation(),this.arcgisGroupBrowserInternalUIAction.emit(a.detail)}}></arcgis-portal-user-popup></div>`||""}</div><div class="group-card__footer__end">${this.preview==="action"&&t`<calcite-button scale=s .appearance=${p?"solid":"outline-fill"} kind=neutral @click=${()=>{this.arcgisGroupBrowserCardPreview.emit(this.group)}}>${p?this.messages.hidePreview:this.messages.preview}</calcite-button>`||""}<div @click=${a=>{a.stopPropagation()}}><slot name=actions-end></slot></div></div></div></section>`}};$("arcgis-portal-group-card",v);return v},"intl")
@@ -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="user",this.selected=null}static{this.properties={entityType:32,selected:0}}};e("arcgis-portal-user-picker",t);return t},a,b,c,d,f,g,h,i)
@@ -1,4 +1,4 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
2
  import{a as Q}from"./KHKREBVZ.js";var p=(s,t,...e)=>{try{return s?.call(t,...e)}catch(o){console.error(o,s)}},M=async(s,t,...e)=>{try{return await s?.call(t,...e)}catch(o){console.error(o,s)}};var k=Symbol.for("controller"),Ae=s=>typeof s=="object"&&s!==null&&(k in s||"hostConnected"in s||"hostDisconnected"in s||"hostUpdate"in s||"hostUpdated"in s),hs=s=>typeof s?.then=="function";var I,w=s=>{I!==s&&(I=s,queueMicrotask(()=>I===s?I=void 0:0))},j=s=>I,C=[],X=s=>{if(s===void 0){C=[];return}let t=C.indexOf(s);C=t===-1?[...C,s]:C.slice(0,t+1),queueMicrotask(()=>C=[])},It=()=>C,x,ds=s=>{x!==s&&(x=s,queueMicrotask(()=>x===s?x=void 0:0))},Ce=()=>{let s=x;return x=void 0,s},kt=async(s,t)=>{let e=Z(s);if(e===void 0)return s;if(await e.ready,typeof t=="function"){let o=e.watchExports(r=>t(r,o))}return e.exports},jt=async s=>{let t=Z(s);return await t.ready,t},Z=s=>{let e=j().manager.X(s);if(e!==void 0)return e;if(Ae(s))return s;let o=Ce();if(o!==void 0)return o},Y=!1,ps=s=>{Y=!0;try{return s()}finally{Y=!1}};var tt=globalThis,et=tt.ShadowRoot&&(tt.ShadyCSS===void 0||tt.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,vt=Symbol(),Ht=new WeakMap,H=class{constructor(t,e,o){if(this._$cssResult$=!0,o!==vt)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o,e=this.t;if(et&&t===void 0){let o=e!==void 0&&e.length===1;o&&(t=Ht.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),o&&Ht.set(e,t))}return t}toString(){return this.cssText}},Vt=s=>new H(typeof s=="string"?s:s+"",void 0,vt),we=(s,...t)=>{let e=s.length===1?s[0]:t.reduce((o,r,i)=>o+(n=>{if(n._$cssResult$===!0)return n.cssText;if(typeof n=="number")return n;throw Error("Value passed to 'css' function must be a 'css' function result: "+n+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(r)+s[i+1],s[0]);return new H(e,s,vt)},zt=(s,t)=>{if(et)s.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let e of t){let o=document.createElement("style"),r=tt.litNonce;r!==void 0&&o.setAttribute("nonce",r),o.textContent=e.cssText,s.appendChild(o)}},Et=et?s=>s:s=>s instanceof CSSStyleSheet?(t=>{let e="";for(let o of t.cssRules)e+=o.cssText;return Vt(e)})(s):s;var{is:Oe,defineProperty:Te,getOwnPropertyDescriptor:Se,getOwnPropertyNames:Pe,getOwnPropertySymbols:Ne,getPrototypeOf:De}=Object,ot=globalThis,Bt=ot.trustedTypes,xe=Bt?Bt.emptyScript:"",Le=ot.reactiveElementPolyfillSupport,V=(s,t)=>s,st={toAttribute(s,t){switch(t){case Boolean:s=s?xe:null;break;case Object:case Array:s=s==null?s:JSON.stringify(s)}return s},fromAttribute(s,t){let e=s;switch(t){case Boolean:e=s!==null;break;case Number:e=s===null?null:Number(s);break;case Object:case Array:try{e=JSON.parse(s)}catch{e=null}}return e}},z=(s,t)=>!Oe(s,t),Wt={attribute:!0,type:String,converter:st,reflect:!1,useDefault:!1,hasChanged:z};Symbol.metadata??=Symbol("metadata"),ot.litPropertyMetadata??=new WeakMap;var b=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=Wt){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){let o=Symbol(),r=this.getPropertyDescriptor(t,o,e);r!==void 0&&Te(this.prototype,t,r)}}static getPropertyDescriptor(t,e,o){let{get:r,set:i}=Se(this.prototype,t)??{get(){return this[e]},set(n){this[e]=n}};return{get:r,set(n){let a=r?.call(this);i?.call(this,n),this.requestUpdate(t,a,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??Wt}static _$Ei(){if(this.hasOwnProperty(V("elementProperties")))return;let t=De(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(V("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(V("properties"))){let e=this.properties,o=[...Pe(e),...Ne(e)];for(let r of o)this.createProperty(r,e[r])}let t=this[Symbol.metadata];if(t!==null){let e=litPropertyMetadata.get(t);if(e!==void 0)for(let[o,r]of e)this.elementProperties.set(o,r)}this._$Eh=new Map;for(let[e,o]of this.elementProperties){let r=this._$Eu(e,o);r!==void 0&&this._$Eh.set(r,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){let e=[];if(Array.isArray(t)){let o=new Set(t.flat(1/0).reverse());for(let r of o)e.unshift(Et(r))}else t!==void 0&&e.push(Et(t));return e}static _$Eu(t,e){let o=e.attribute;return o===!1?void 0:typeof o=="string"?o:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(t=>t(this))}addController(t){(this._$EO??=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){let t=new Map,e=this.constructor.elementProperties;for(let o of e.keys())this.hasOwnProperty(o)&&(t.set(o,this[o]),delete this[o]);t.size>0&&(this._$Ep=t)}createRenderRoot(){let t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return zt(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(t=>t.hostConnected?.())}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach(t=>t.hostDisconnected?.())}attributeChangedCallback(t,e,o){this._$AK(t,o)}_$ET(t,e){let o=this.constructor.elementProperties.get(t),r=this.constructor._$Eu(t,o);if(r!==void 0&&o.reflect===!0){let i=(o.converter?.toAttribute!==void 0?o.converter:st).toAttribute(e,o.type);this._$Em=t,i==null?this.removeAttribute(r):this.setAttribute(r,i),this._$Em=null}}_$AK(t,e){let o=this.constructor,r=o._$Eh.get(t);if(r!==void 0&&this._$Em!==r){let i=o.getPropertyOptions(r),n=typeof i.converter=="function"?{fromAttribute:i.converter}:i.converter?.fromAttribute!==void 0?i.converter:st;this._$Em=r;let a=n.fromAttribute(e,i.type);this[r]=a??this._$Ej?.get(r)??a,this._$Em=null}}requestUpdate(t,e,o,r=!1,i){if(t!==void 0){let n=this.constructor;if(r===!1&&(i=this[t]),o??=n.getPropertyOptions(t),!((o.hasChanged??z)(i,e)||o.useDefault&&o.reflect&&i===this._$Ej?.get(t)&&!this.hasAttribute(n._$Eu(t,o))))return;this.C(t,e,o)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(t,e,{useDefault:o,reflect:r,wrapped:i},n){o&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,n??e??this[t]),i!==!0||n!==void 0)||(this._$AL.has(t)||(this.hasUpdated||o||(e=void 0),this._$AL.set(t,e)),r===!0&&this._$Em!==t&&(this._$Eq??=new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[r,i]of this._$Ep)this[r]=i;this._$Ep=void 0}let o=this.constructor.elementProperties;if(o.size>0)for(let[r,i]of o){let{wrapped:n}=i,a=this[r];n!==!0||this._$AL.has(r)||a===void 0||this.C(r,void 0,i,a)}}let t=!1,e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach(o=>o.hostUpdate?.()),this.update(e)):this._$EM()}catch(o){throw t=!1,this._$EM(),o}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach(e=>e.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&=this._$Eq.forEach(e=>this._$ET(e,this[e])),this._$EM()}updated(t){}firstUpdated(t){}};b.elementStyles=[],b.shadowRootOptions={mode:"open"},b[V("elementProperties")]=new Map,b[V("finalized")]=new Map,Le?.({ReactiveElement:b}),(ot.reactiveElementVersions??=[]).push("2.1.2");var bt=globalThis,Ft=s=>s,rt=bt.trustedTypes,qt=rt?rt.createPolicy("lit-html",{createHTML:s=>s}):void 0,_t="$lit$",_=`lit$${Math.random().toFixed(9).slice(2)}$`,At="?"+_,Re=`<${At}>`,S=document,W=()=>S.createComment(""),F=s=>s===null||typeof s!="object"&&typeof s!="function",Ct=Array.isArray,Xt=s=>Ct(s)||typeof s?.[Symbol.iterator]=="function",$t=`[
3
3
  \f\r]`,B=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Gt=/-->/g,Kt=/>/g,O=RegExp(`>|${$t}(?:([^\\s"'>=/]+)(${$t}*=${$t}*(?:[^
4
- \f\r"'\`<>=]|("|')|))|$)`,"g"),Jt=/'/g,Qt=/"/g,Zt=/^(?:script|style|textarea|title)$/i,wt=s=>(t,...e)=>({_$litType$:s,strings:t,values:e}),vs=wt(1),Es=wt(2),$s=wt(3),f=Symbol.for("lit-noChange"),d=Symbol.for("lit-nothing"),Yt=new WeakMap,T=S.createTreeWalker(S,129);function te(s,t){if(!Ct(s)||!s.hasOwnProperty("raw"))throw Error("invalid template strings array");return qt!==void 0?qt.createHTML(t):t}var ee=(s,t)=>{let e=s.length-1,o=[],r,i=t===2?"<svg>":t===3?"<math>":"",n=B;for(let a=0;a<e;a++){let l=s[a],c,u,h=-1,m=0;for(;m<l.length&&(n.lastIndex=m,u=n.exec(l),u!==null);)m=n.lastIndex,n===B?u[1]==="!--"?n=Gt:u[1]!==void 0?n=Kt:u[2]!==void 0?(Zt.test(u[2])&&(r=RegExp("</"+u[2],"g")),n=O):u[3]!==void 0&&(n=O):n===O?u[0]===">"?(n=r??B,h=-1):u[1]===void 0?h=-2:(h=n.lastIndex-u[2].length,c=u[1],n=u[3]===void 0?O:u[3]==='"'?Qt:Jt):n===Qt||n===Jt?n=O:n===Gt||n===Kt?n=B:(n=O,r=void 0);let v=n===O&&s[a+1].startsWith("/>")?" ":"";i+=n===B?l+Re:h>=0?(o.push(c),l.slice(0,h)+_t+l.slice(h)+_+v):l+_+(h===-2?a:v)}return[te(s,i+(s[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),o]},q=class s{constructor({strings:t,_$litType$:e},o){let r;this.parts=[];let i=0,n=0,a=t.length-1,l=this.parts,[c,u]=ee(t,e);if(this.el=s.createElement(c,o),T.currentNode=this.el.content,e===2||e===3){let h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(r=T.nextNode())!==null&&l.length<a;){if(r.nodeType===1){if(r.hasAttributes())for(let h of r.getAttributeNames())if(h.endsWith(_t)){let m=u[n++],v=r.getAttribute(h).split(_),A=/([.?@])?(.*)/.exec(m);l.push({type:1,index:i,name:A[2],strings:v,ctor:A[1]==="."?nt:A[1]==="?"?at:A[1]==="@"?lt:N}),r.removeAttribute(h)}else h.startsWith(_)&&(l.push({type:6,index:i}),r.removeAttribute(h));if(Zt.test(r.tagName)){let h=r.textContent.split(_),m=h.length-1;if(m>0){r.textContent=rt?rt.emptyScript:"";for(let v=0;v<m;v++)r.append(h[v],W()),T.nextNode(),l.push({type:2,index:++i});r.append(h[m],W())}}}else if(r.nodeType===8)if(r.data===At)l.push({type:2,index:i});else{let h=-1;for(;(h=r.data.indexOf(_,h+1))!==-1;)l.push({type:7,index:i}),h+=_.length-1}i++}}static createElement(t,e){let o=S.createElement("template");return o.innerHTML=t,o}};function P(s,t,e=s,o){if(t===f)return t;let r=o!==void 0?e._$Co?.[o]:e._$Cl,i=F(t)?void 0:t._$litDirective$;return r?.constructor!==i&&(r?._$AO?.(!1),i===void 0?r=void 0:(r=new i(s),r._$AT(s,e,o)),o!==void 0?(e._$Co??=[])[o]=r:e._$Cl=r),r!==void 0&&(t=P(s,r._$AS(s,t.values),r,o)),t}var it=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:e},parts:o}=this._$AD,r=(t?.creationScope??S).importNode(e,!0);T.currentNode=r;let i=T.nextNode(),n=0,a=0,l=o[0];for(;l!==void 0;){if(n===l.index){let c;l.type===2?c=new L(i,i.nextSibling,this,t):l.type===1?c=new l.ctor(i,l.name,l.strings,this,t):l.type===6&&(c=new ct(i,this,t)),this._$AV.push(c),l=o[++a]}n!==l?.index&&(i=T.nextNode(),n++)}return T.currentNode=S,r}p(t){let e=0;for(let o of this._$AV)o!==void 0&&(o.strings!==void 0?(o._$AI(t,o,e),e+=o.strings.length-2):o._$AI(t[e])),e++}},L=class s{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,o,r){this.type=2,this._$AH=d,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=o,this.options=r,this._$Cv=r?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,e=this._$AM;return e!==void 0&&t?.nodeType===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=P(this,t,e),F(t)?t===d||t==null||t===""?(this._$AH!==d&&this._$AR(),this._$AH=d):t!==this._$AH&&t!==f&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Xt(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==d&&F(this._$AH)?this._$AA.nextSibling.data=t:this.T(S.createTextNode(t)),this._$AH=t}$(t){let{values:e,_$litType$:o}=t,r=typeof o=="number"?this._$AC(t):(o.el===void 0&&(o.el=q.createElement(te(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===r)this._$AH.p(e);else{let i=new it(r,this),n=i.u(this.options);i.p(e),this.T(n),this._$AH=i}}_$AC(t){let e=Yt.get(t.strings);return e===void 0&&Yt.set(t.strings,e=new q(t)),e}k(t){Ct(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,o,r=0;for(let i of t)r===e.length?e.push(o=new s(this.O(W()),this.O(W()),this,this.options)):o=e[r],o._$AI(i),r++;r<e.length&&(this._$AR(o&&o._$AB.nextSibling,r),e.length=r)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t!==this._$AB;){let o=Ft(t).nextSibling;Ft(t).remove(),t=o}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},N=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,o,r,i){this.type=1,this._$AH=d,this._$AN=void 0,this.element=t,this.name=e,this._$AM=r,this.options=i,o.length>2||o[0]!==""||o[1]!==""?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=d}_$AI(t,e=this,o,r){let i=this.strings,n=!1;if(i===void 0)t=P(this,t,e,0),n=!F(t)||t!==this._$AH&&t!==f,n&&(this._$AH=t);else{let a=t,l,c;for(t=i[0],l=0;l<i.length-1;l++)c=P(this,a[o+l],e,l),c===f&&(c=this._$AH[l]),n||=!F(c)||c!==this._$AH[l],c===d?t=d:t!==d&&(t+=(c??"")+i[l+1]),this._$AH[l]=c}n&&!r&&this.j(t)}j(t){t===d?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},nt=class extends N{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===d?void 0:t}},at=class extends N{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==d)}},lt=class extends N{constructor(t,e,o,r,i){super(t,e,o,r,i),this.type=5}_$AI(t,e=this){if((t=P(this,t,e,0)??d)===f)return;let o=this._$AH,r=t===d&&o!==d||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,i=t!==d&&(o===d||r);r&&this.element.removeEventListener(this.name,this,o),i&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},ct=class{constructor(t,e,o){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(t){P(this,t)}},se={M:_t,P:_,A:At,C:1,L:ee,R:it,D:Xt,V:P,I:L,H:N,N:at,U:lt,B:nt,F:ct},Ue=bt.litHtmlPolyfillSupport;Ue?.(q,L),(bt.litHtmlVersions??=[]).push("3.3.2");var ht=(s,t,e)=>{let o=e?.renderBefore??t,r=o._$litPart$;if(r===void 0){let i=e?.renderBefore??null;o._$litPart$=r=new L(t.insertBefore(W(),i),i,void 0,e??{})}return r._$AI(s),r};var Ot=globalThis,E=class extends b{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){let e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=ht(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return f}};E._$litElement$=!0,E.finalized=!0,Ot.litElementHydrateSupport?.({LitElement:E});var Me=Ot.litElementPolyfillSupport;Me?.({LitElement:E});(Ot.litElementVersions??=[]).push("4.2.2");var oe=new Set,re;var ie=s=>typeof s=="string"?s:"el"in s?s.el.localName:"localName"in s?s.localName:s.declaredClass,Ls=(s,t,e,o)=>{let r=ie(t);if(o?.once){let n=`${s}${r}${e}`;if(oe.has(n))return;oe.add(n)}let i;if(o?.detail){i={};for(let[n,a]of Object.entries(o.detail))if((typeof a=="object"||typeof a=="function")&&a!==null){let l=new WeakRef(a);Object.defineProperty(i,n,{enumerable:!0,get(){return l.deref()}})}else i[n]=a;re?.log.interceptors?.forEach(n=>n(s,r,e,i)),console[s](`[${r}]: ${e}`,i)}else re?.log.interceptors?.forEach(n=>n(s,r,e)),console[s](`[${r}]: ${e}`)},ne=s=>{let t=`[${ie(s)}] `;return e=>{let o=e instanceof Error&&e.message?e:new Error(String(e));o.message=`${t}${o.message}`,setTimeout(()=>{throw e})}},Rs=s=>`The property \`${s.toString()}\` is required but missing.`,Us=s=>`The property \`${s.toString()}\` is empty but must have at least one element.`;var Ie=(s,t,e)=>{let o=Object.keys(s),r=o.length;R===void 0&&queueMicrotask(U),R??=new Map;let i=R.get(s);return i===void 0&&(i={callbacks:[],keyCount:r},R.set(s,i)),i.keyCount!==r&&(i.callbacks.forEach(n=>n(o)),i.callbacks=[],i.keyCount=r),i.callbacks.push(n=>{let a=c=>p(t,null,c),l=n[r];l===void 0?a(void 0):s[l]===e?a(l):a(void 0)}),e},R,U=()=>{R?.forEach(({callbacks:s},t)=>{let e=Object.keys(t);s.forEach(o=>o(e))}),R=void 0},ke=(s,t,e)=>{let o=s.manager;return o.V!==d&&o.V!==e&&o.S(void 0,void 0),o.T.length===0&&queueMicrotask(()=>o.S(void 0,void 0)),o.V=e,o.T.push((r,i)=>p(t,void 0,e===i?r:void 0)),e},je=(s=[j(),...It()],t,e)=>{let o=Array.isArray(s)?s:[s],r=o.length+1,i=n=>{r-=1,n!==void 0&&(r=Math.min(r,0)),r===0&&t(n)};o.forEach(n=>Ie(n,a=>i(a===void 0?void 0:{key:a,host:n,isReactive:!1}),e));for(let n of o)if("manager"in n&&n.manager.component===n){ke(n,a=>i(a===void 0?void 0:{key:a,host:n,isReactive:!0}),e);break}return e},He=(s="",t={},e=j())=>{let o={emit:r=>{s===""&&U();let i=new CustomEvent(s,{detail:r,cancelable:!0,bubbles:!0,composed:!0,...t});return e.el.dispatchEvent(i),i}};return s===""&&je(void 0,r=>s=r.key,o),o},Ve=He.bind(null,""),ce;ce=k;var Tt=class{constructor(t){this.#t=[],this.#e=[],this.#s=[],this.#r=[],this.#i=[],this.#l=[],this.#c=[],this.#d=[],this.#n=[],this.#p=!1,this.P=Promise.withResolvers(),this.connectedCalled=!1,this.loadedCalled=!1,this[ce]=!0,this.#h=[];let e=this,o=t??j(new.target.name);e.#o=o,e.ready=e.P.promise,e.#a=le(e),e.component=o,e.#o.addController(e),e.#o.manager===void 0||(X(e),queueMicrotask(()=>e.catchUpLifecycle()))}#t;#e;#s;#r;#i;#l;#c;#d;#n;#p;#o;catchUpLifecycle(){let{manager:t}=this.#o;t.connectedCalled&&!this.connectedCalled&&this.triggerConnected(),t.#p&&this.triggerLoad().then(()=>t.loadedCalled&&this.triggerLoaded()).catch(ne(this.#o))}#a;get exports(){return this.#a}set exports(t){let e=this.#a;e!==t&&(this.#a=t,this.#h.forEach(p),this.connectedCalled&&this.O!==!1&&this.#o.requestUpdate(this.O,e)),this.P.resolve(t)}setProvisionalExports(t,e=!0){this.#a=e?le(t):t,this.#h.forEach(p)}#h;watchExports(t){let e=()=>t(this.#a);return this.#h.push(e),()=>{this.#h.splice(this.#h.indexOf(e),1)}}get use(){return w(this.#o),kt}get useRef(){return w(this.#o),jt}get useRefSync(){return w(this.#o),Z}controllerRemoved(){this.#o.el.isConnected&&this.triggerDisconnected(),this.triggerDestroy()}onConnected(t){this.#t.push(t)}onDisconnected(t){this.#e.push(t)}onLoad(t){this.#s.push(t)}onLoaded(t){this.#r.push(t)}onUpdate(t){this.#i.push(t)}onUpdated(t){this.#l.push(t)}onDestroy(t){this.#c.push(t)}onLifecycle(t){this.#d.push(t),this.connectedCalled&&this.#o.el.isConnected&&this.#u(t)}triggerConnected(){let t=this;t.hostConnected&&p(t.hostConnected,t),t.#t.forEach(p),t.triggerLifecycle(),t.connectedCalled=!0}triggerDisconnected(){let t=this;t.hostDisconnected&&p(t.hostDisconnected,t),t.#e.forEach(p),t.#n.forEach(p),t.#n=[]}async triggerLoad(){if(this.#p)return;this.#p=!0;let t=this;t.hostLoad&&await M(t.hostLoad,t),this.#s.length>0&&await Promise.allSettled(this.#s.map(M)),this.P.resolve(this.#a)}triggerLoaded(){this.loadedCalled||(this.hostLoaded&&p(this.hostLoaded,this),this.#r.forEach(p),this.loadedCalled=!0)}triggerUpdate(t){this.hostUpdate&&p(this.hostUpdate,this,t),this.#i.forEach(ae,t)}triggerUpdated(t){this.hostUpdated&&p(this.hostUpdated,this,t),this.#l.forEach(ae,t)}triggerDestroy(){this.hostDestroy&&p(this.hostDestroy,this),this.#c.forEach(p)}triggerLifecycle(){this.hostLifecycle&&this.#u(()=>this.hostLifecycle()),this.#d.forEach(this.#u,this)}#u(t){w(this.#o);let e=p(t);(Array.isArray(e)?e:[e]).forEach(r=>{typeof r=="function"?this.#n.push(r):typeof r=="object"&&typeof r.remove=="function"&&this.#n.push(r.remove)})}};function ae(s){p(s,void 0,this)}var le=s=>{if(typeof s!="object"&&typeof s!="function"||s===null)return s;let t={get(o,r,i){if(!((r==="exports"||r==="_exports")&&r in o&&o[r]===e)&&(r in o||r in Promise.prototype||typeof r=="symbol"))return typeof o=="function"?o[r]:Reflect.get(o,r,i)}},e=new Proxy(s,t);return e};var he=Tt;var y={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},$=s=>(...t)=>({_$litDirective$:s,values:t}),g=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,o){this._$Ct=t,this._$AM=e,this._$Ci=o}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};var{I:ze}=se,de=s=>s;var dt=s=>s.strings===void 0,pe=()=>document.createComment(""),Fs=(s,t,e)=>{let o=s._$AA.parentNode,r=t===void 0?s._$AB:t._$AA;if(e===void 0){let i=o.insertBefore(pe(),r),n=o.insertBefore(pe(),r);e=new ze(i,n,s,s.options)}else{let i=e._$AB.nextSibling,n=e._$AM,a=n!==s;if(a){let l;e._$AQ?.(s),e._$AM=s,e._$AP!==void 0&&(l=s._$AU)!==n._$AU&&e._$AP(l)}if(i!==r||a){let l=e._$AA;for(;l!==i;){let c=de(l).nextSibling;de(o).insertBefore(l,r),l=c}}}return e},qs=(s,t,e=s)=>(s._$AI(t,e),s),Be={},ue=(s,t=Be)=>s._$AH=t,Gs=s=>s._$AH,Ks=s=>{s._$AR(),s._$AA.remove()};var We=$(class extends g{constructor(s){if(super(s),s.type!==y.PROPERTY&&s.type!==y.ATTRIBUTE&&s.type!==y.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!dt(s))throw Error("`live` bindings can only contain a single expression")}render(s){return s}update(s,[t]){if(t===f||t===d)return t;let e=s.element,o=s.name;if(s.type===y.PROPERTY){if(t===e[o])return f}else if(s.type===y.BOOLEAN_ATTRIBUTE){if(!!t===e.hasAttribute(o))return f}else if(s.type===y.ATTRIBUTE&&e.getAttribute(o)===t+"")return f;return ue(s),t}});var G=(s,t)=>{let e=s._$AN;if(e===void 0)return!1;for(let o of e)o._$AO?.(t,!1),G(o,t);return!0},pt=s=>{let t,e;do{if((t=s._$AM)===void 0)break;e=t._$AN,e.delete(s),s=t}while(e?.size===0)},fe=s=>{for(let t;t=s._$AM;s=t){let e=t._$AN;if(e===void 0)t._$AN=e=new Set;else if(e.has(s))break;e.add(s),Ge(t)}};function Fe(s){this._$AN!==void 0?(pt(this),this._$AM=s,fe(this)):this._$AM=s}function qe(s,t=!1,e=0){let o=this._$AH,r=this._$AN;if(r!==void 0&&r.size!==0)if(t)if(Array.isArray(o))for(let i=e;i<o.length;i++)G(o[i],!1),pt(o[i]);else o!=null&&(G(o,!1),pt(o));else G(this,s)}var Ge=s=>{s.type==y.CHILD&&(s._$AP??=qe,s._$AQ??=Fe)},ut=class extends g{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,o){super._$AT(t,e,o),fe(this),this.isConnected=t._$AU}_$AO(t,e=!0){t!==this.isConnected&&(this.isConnected=t,t?this.reconnected?.():this.disconnected?.()),e&&(G(this,t),pt(this))}setValue(t){if(dt(this._$Ct))this._$Ct._$AI(t,this);else{let e=[...this._$Ct._$AH];e[this._$Ci]=t,this._$Ct._$AI(e,this,0)}}disconnected(){}reconnected(){}};var ho=()=>new Pt,Pt=class{},St=new WeakMap,Nt=$(class extends ut{render(s){return d}update(s,[t]){let e=t!==this.G;return e&&this.G!==void 0&&this.rt(void 0),(e||this.lt!==this.ct)&&(this.G=t,this.ht=s.options?.host,this.rt(this.ct=s.element)),d}rt(s){if(this.isConnected||(s=void 0),typeof this.G=="function"){let t=this.ht??globalThis,e=St.get(t);e===void 0&&(e=new WeakMap,St.set(t,e)),e.get(this.G)!==void 0&&this.G.call(this.ht,void 0),e.set(this.G,s),s!==void 0&&this.G.call(this.ht,s)}else this.G.value=s}get lt(){return typeof this.G=="function"?St.get(this.ht??globalThis)?.get(this.G):this.G?.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}});var xt=s=>{let t=s;for(;t=t.parentNode??t.host;)if(t?.constructor?.lumina){let e=t;return e.manager?.loadedCalled||(e.J??e._offspring).push(s),(e.I??e._postLoad).promise}return!1},Lt={};function Rt(){}function Ut(s){for(let t of["Associated","Disabled","Reset","StateRestore"]){let e=`orm${t}Callback`;s.prototype["f"+e]=async function(...o){await this.componentOnReady(),(this.el??this).dispatchEvent(new CustomEvent(`luminaF${e}`,{detail:o}))}}}var Je=(s,t)=>function(o,r){if(!globalThis.customElements)return;let n=(r??o??{}).resourcesUrl;n&&s.setAssetPath(n);for(let[a,[l,c="",u=0]]of Object.entries(t)){if(customElements.get(a))continue;let[h,m,v]=c.split(";"),A=h?h?.split(",").map(Qe):void 0,gt=A?.map(([D])=>D),J=class extends Dt{static{this.formAssociated=u===1}static{this.observedAttributes=A?.map(([,D])=>D).filter(D=>D!=="")}static{this.C=gt}static{this.E=m?m?.split(","):void 0}static{this.D=v?.split(",")}static{this.L=a}static{this.K=s}constructor(){!J.B&&(J.B=l(),J.F()),super()}};customElements.define(a,J)}},ft=Object.defineProperty,Qe=s=>{let t=s.split(":");return t.length===1?[t[0],Q(t[0])]:t},Ye=globalThis.HTMLElement??Rt,Dt=class extends Ye{constructor(){super(),this.#e={},this.#s=[],this.I=Promise.withResolvers(),this.H=Promise.withResolvers(),this.J=[];let t=this,e=t.constructor;t._offspring=t.J,t._postLoad=t.I,e.C?.forEach(o=>{Object.hasOwn(t,o)&&(t.#e[o]=t[o],delete t[o])}),e.A?t.#r({a:e.A}):e.B.then(async o=>{await e.K.p,t.#r(await(o.default?.then(r=>typeof r=="function"?{a:r}:r)??o))}).catch(o=>{t.H.reject(o),setTimeout(()=>{throw o})})}static{this.lumina=!0}static F(){for(let t of this.C??[])ft(this.prototype,t,{configurable:!0,enumerable:!0,get(){return this.#e[t]},set(e){this.#e[t]=e}});for(let t of this.E??[])ft(this.prototype,t,{async value(...e){return this.#t||await this.H.promise,await this.#t[t](...e)},configurable:!0});for(let t of this.D??[])ft(this.prototype,t,{value(...e){return this.#t[t](...e)},configurable:!0})}static{Ut(this)}#t;#e;#s;get manager(){return this.#t?.manager}attributeChangedCallback(t,e,o){this.#t?.attributeChangedCallback(t,e,o),this.#t||this.#s.push(t)}connectedCallback(){this.#t?this.#t.connectedCallback?.():queueMicrotask(()=>this.G=xt(this))}disconnectedCallback(){this.#t?.disconnectedCallback?.()}async componentOnReady(){return await this.H.promise,this}#r(t){let e=this.constructor,o=e.L,r=this.#e,i=Object.values(t).find(h=>h.L===o),n=`${o}--lazy`,a=i;for(;a&&!Object.hasOwn(a,"lumina");)a=Object.getPrototypeOf(a);Ze(a),!e.A&&(e.A=i,customElements.define(n,i)),i.N=this;let c=document.createElement(n);i.N=void 0,this.#t=c,this.#e=c,this.#s.forEach(h=>c.attributeChangedCallback(h,null,this.getAttribute(h))),Object.entries(r).forEach(Xe,c);let u=this.isConnected;(u||this.G)&&(c.connectedCallback?.(),u||c.disconnectedCallback())}addController(){}requestUpdate(){this.#t?.requestUpdate()}};function Xe([s,t]){this[s]=t}var Ze=s=>{let t=s.prototype,e=Element.prototype;Object.hasOwn(t,"isConnected")||(t.setAttribute=function(r,i){e.setAttribute.call(this.el,r,i)},t.removeAttribute=function(r){e.removeAttribute.call(this.el,r)},t.hasAttribute=function(r){return e.hasAttribute.call(this.el,r)},ft(t,"isConnected",{get(){return Reflect.get(e,"isConnected",this.el)}}))};var ye=(s,t)=>{let e=t>ts?es:t/ss,o=0,r=setInterval(()=>{o+=e,o>=t&&(clearInterval(r),s())},e);return r},ts=4e3,es=2e3,ss=4;var mt=class extends he{constructor(t){super(t),this.destroyed=!1,this.R=!1,this.V=d,this.T=[],this.#s=new WeakMap,this.#e=t,this.exports=void 0,this.hasDestroy=yt in t&&typeof t.destroy=="function",E.prototype.addController.call(t,{hostConnected:()=>{if(this.destroyed){let e=t.el.localName;throw t.el.remove(),new Error(`The ${e} component has already been destroyed. It cannot be used again. If you meant to disconnect and reconnect a component without automatic destroy, set the ${yt} prop.`)}this.#t!==void 0&&clearTimeout(this.#t),U();for(let e of t.M)"triggerConnected"in e?e.triggerConnected():p(e.hostConnected,e)},hostDisconnected:()=>{for(let e of t.M)"triggerDisconnected"in e?e.triggerDisconnected():p(e.hostDisconnected,e);this.hasDestroy&&!this.destroyed&&this.U()},hostUpdate:()=>{for(let e of t.M)"triggerUpdate"in e?e.triggerUpdate(this.Q):p(e.hostUpdate,e,this.Q)},hostUpdated:()=>{for(let e of t.M)"triggerUpdated"in e?e.triggerUpdated(this.Q):p(e.hostUpdated,e,this.Q);this.Q=void 0}}),queueMicrotask(()=>this.R=!0),X(void 0),w(t)}#t;#e;async destroy(){if(!this.destroyed){this.#e.el.isConnected&&(this.hasDestroy=!1,this.#e.el.remove()),this.#t=void 0,this.destroyed=!0;for(let t of this.#e.M)"triggerDestroy"in t?t.triggerDestroy():p(t.hostDestroy,t);this.#e.M.splice(0)}}U(){if(this.#t!==void 0&&clearTimeout(this.#t),!this.#e.el.isConnected&&!this.#e.autoDestroyDisabled){let t=()=>{this.#e.destroy()};this.#t=ye(t,os)}}S(t,e){let o=this.T;this.V=d,this.T=[],o.forEach(r=>r(t,e))}#s;W(t,e){(typeof e=="object"&&e!==null||typeof e=="function")&&this.#s.set(e,t)}X(t){if(typeof t=="object"&&t!==null||typeof t=="function")return this.#s.get(t)}},os=1e3,yt="autoDestroyDisabled";var ge=$(class extends g{constructor(s){if(super(s),s.type!==y.ATTRIBUTE||s.name!=="class"||s.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(s){return" "+Object.keys(s).filter(t=>s[t]).join(" ")+" "}update(s,[t]){if(this.st===void 0){this.st=new Set,s.strings!==void 0&&(this.nt=new Set(s.strings.join(" ").split(/\s/).filter(o=>o!=="")));for(let o in t)t[o]&&!this.nt?.has(o)&&this.st.add(o);return this.render(t)}let e=s.element.classList;for(let o of this.st)o in t||(e.remove(o),this.st.delete(o));for(let o in t){let r=!!t[o];r===this.st.has(o)||this.nt?.has(o)||(r?(e.add(o),this.st.add(o)):(e.remove(o),this.st.delete(o)))}return f}});var ve="important",rs=" !"+ve,Ee=$(class extends g{constructor(s){if(super(s),s.type!==y.ATTRIBUTE||s.name!=="style"||s.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(s){return Object.keys(s).reduce((t,e)=>{let o=s[e];return o==null?t:t+`${e=e.includes("-")?e:e.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${o};`},"")}update(s,[t]){let{style:e}=s.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(t)),this.render(t);for(let o of this.ft)t[o]==null&&(this.ft.delete(o),o.includes("-")?e.removeProperty(o):e[o]=null);for(let o in t){let r=t[o];if(r!=null){this.ft.add(o);let i=typeof r=="string"&&r.endsWith(rs);o.includes("-")||i?e.setProperty(o,i?r.slice(0,-11):r,i?ve:""):e[o]=r}}return f}});var $e=class s extends E{constructor(){super(),this.M=[],this.manager=new mt(this);let t=this,e=t.constructor,o=e.N,r=e.K.o,i=s.prototype.shouldUpdate;t.#r=o?.H??Promise.withResolvers(),t.I=o?.I??Promise.withResolvers(),t.J=o?.J??[],t._offspring=t.J,t._postLoad=t.I,t.el=o??t,t.#s=t.enableUpdating,t.enableUpdating=Rt,t.shouldUpdate!==i&&(t.#e=t.shouldUpdate,t.shouldUpdate=i),r&&(t.#t=new Map,e.elementProperties.forEach((n,a)=>t.#t.set(a,r()))),!1}static finalizeStyles(t){let e=super.finalizeStyles(t),o=this.shadowRootOptions===Lt;return this.K?.commonStyles===void 0||o?e:[this.K.commonStyles,...e]}static createProperty(t,e){let o=typeof e=="number"?e:Array.isArray(e)?e[0]:0,r=Array.isArray(e)?e[1]:void 0,i=r?.hasChanged??z,n={attribute:o&1&&typeof t=="string"?Q(t):!1,reflect:!!(o&2),type:o&4?Boolean:o&8?Number:void 0,state:!!(o&16),readOnly:!!(o&32),noAccessor:!!(o&64),useDefault:!!(o&128),c:!1,...r,hasChanged(a,l){let c=i(a,l);return n.c=c,c}};super.createProperty(t,n)}static getPropertyDescriptor(t,e,o){let r=this.K,i=super.getPropertyDescriptor(t,e,o);return o.d=i,{...i,get(){return r.t?.(this.#t.get(t)),i.get?.call(this)},set(n){let a=this.manager;if(o.readOnly&&!Y&&(a.R||a.connectedCalled))throw Error(`Cannot assign to read-only property "${t}" of ${this.el.localName}. Trying to assign "${n}"`);i.set.call(this,n??void 0),o.c&&this.#t?.get(t)?.notify(),a.T.length>0&&(U(),a?.S(t,n))}}}static{this.lumina=!0}static{Ut(this)}#t;#e;#s;#r;#i;#l;get elementInternals(){return this.#l??=this.el.attachInternals(),this.#l}connectedCallback(){this.hasAttribute("defer-hydration")||this.#c(!0)}#c(t){let e=this.constructor.K.c?.(()=>this.requestUpdate());this.#i=e;let o=!this.manager.connectedCalled;t&&super.connectedCallback(),o?queueMicrotask(()=>this.#n().catch(r=>{this.#r.reject(r),setTimeout(()=>{throw r})})):e&&this.requestUpdate()}#d(t){try{this.#i.clear(),this.constructor.K.r(this.#i,()=>super.update(t))}catch(e){throw this.#i.clear(),e}}disconnectedCallback(){super.disconnectedCallback(),this.#i?.destroy(),this.#i=void 0}createRenderRoot(){let t=this.el.shadowRoot,e=this.constructor,o=e.shadowRootOptions,i=t??(o===Lt?this.el:this.el.attachShadow(o));if(t)return this.manager.connectedCalled||this.#c(!1),E.prototype.createRenderRoot.call(this),t;if(this.isConnected){let n=i.getRootNode();n.adoptedStyleSheets=[...n.adoptedStyleSheets,...e.elementStyles.map(a=>"styleSheet"in a?a.styleSheet:a)]}return i}async#n(){let t=this.el.G??xt(this.el);t&&await t;let e=[];for(let r of this.M)"triggerLoad"in r?e.push(r.triggerLoad()):e.push(M(r.hostLoad,r));await Promise.all(e),await this.load?.(),this.manager.hasDestroy&&this.manager.onUpdate(r=>r.has(yt)&&this.manager.U()),this.#s(!0),this.performUpdate(),this.I.resolve(),await 0;let o=this.J.filter(r=>!r.manager?.loadedCalled);o.length&&await Promise.allSettled(o.map(async r=>await r.componentOnReady())),this.J.length=0,this.el.setAttribute(this.constructor.K.hydratedAttribute,"");for(let r of this.M)"triggerLoaded"in r?r.triggerLoaded():p(r.hostLoaded,r);this.loaded?.(),this.#r.resolve()}shouldUpdate(t){return this.manager.Q=t,this.#e?.(t)??!0}update(t){this.#i?this.#d(t):super.update(t)}listen(t,e,o){let r=e?.bind(this)??e;this.manager.onLifecycle(()=>(this.el.addEventListener(t,r,o),()=>this.el.removeEventListener(t,r,o)))}listenOn(t,e,o,r){let i=o?.bind(this)??o;this.manager.onLifecycle(()=>(t.addEventListener(e,i,r),()=>t.removeEventListener(e,i,r)))}async componentOnReady(){return await this.#r.promise,this}addController(t){this.M.push(t),!(k in t)&&this.renderRoot&&this.el.isConnected&&t.hostConnected?.()}removeController(t){this.M.splice(this.M.indexOf(t),1),t.controllerRemoved?.()}};var _e=s=>{let t,e=r=>{t=new URL(r,globalThis.location?.href||void 0).href},o={...s,getAssetPath(r){let i=new URL(r,t);return i.origin!==globalThis.location?.origin?i.href:i.pathname},setAssetPath:e,customElement(r,i){i.K=o,i.L=r,customElements.get(r)||customElements.define(r,i)}};return e(s.defaultAssetPath),o};var Cr=s=>typeof s=="object"&&s!=null?ge(s):s,wr=s=>typeof s=="object"&&s!=null?Ee(s):s;var Mt=class extends g{#t;#e;constructor(t){super(t);let e=this;this.#e=function(r){return e.#t.call(this,r)}}render(t){return typeof t=="function"?(this.#t=t,Nt(this.#e)):Nt(t)}},Or=$(Mt);var Tr=d;var Sr=s=>{let t=document.createElement("div");return ht(s,t),t.firstElementChild};var K=_e({defaultAssetPath:"https://jsdev.arcgis.com/6.0.0-next/portal-components/",hydratedAttribute:"hydrated"}),{customElement:Lr,getAssetPath:Rr,setAssetPath:Ur}=K;K.t=void 0;K.o=void 0;K.c=void 0;K.r=void 0;export{hs as a,w as b,j as c,X as d,It as e,ds as f,ps as g,we as h,z as i,vs as j,Es as k,f as l,d as m,ht as n,Ls as o,ne as p,Rs as q,Us as r,ke as s,je as t,He as u,Ve as v,Tt as w,he as x,Je as y,y as z,$ as A,g as B,Fs as C,qs as D,ue as E,Gs as F,Ks as G,We as H,ho as I,Nt as J,$e as K,Cr as L,wr as M,Tr as N,Sr as O,K as P,Lr as Q,Rr as R};
4
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),Jt=/'/g,Qt=/"/g,Zt=/^(?:script|style|textarea|title)$/i,wt=s=>(t,...e)=>({_$litType$:s,strings:t,values:e}),vs=wt(1),Es=wt(2),$s=wt(3),f=Symbol.for("lit-noChange"),d=Symbol.for("lit-nothing"),Yt=new WeakMap,T=S.createTreeWalker(S,129);function te(s,t){if(!Ct(s)||!s.hasOwnProperty("raw"))throw Error("invalid template strings array");return qt!==void 0?qt.createHTML(t):t}var ee=(s,t)=>{let e=s.length-1,o=[],r,i=t===2?"<svg>":t===3?"<math>":"",n=B;for(let a=0;a<e;a++){let l=s[a],c,u,h=-1,m=0;for(;m<l.length&&(n.lastIndex=m,u=n.exec(l),u!==null);)m=n.lastIndex,n===B?u[1]==="!--"?n=Gt:u[1]!==void 0?n=Kt:u[2]!==void 0?(Zt.test(u[2])&&(r=RegExp("</"+u[2],"g")),n=O):u[3]!==void 0&&(n=O):n===O?u[0]===">"?(n=r??B,h=-1):u[1]===void 0?h=-2:(h=n.lastIndex-u[2].length,c=u[1],n=u[3]===void 0?O:u[3]==='"'?Qt:Jt):n===Qt||n===Jt?n=O:n===Gt||n===Kt?n=B:(n=O,r=void 0);let v=n===O&&s[a+1].startsWith("/>")?" ":"";i+=n===B?l+Re:h>=0?(o.push(c),l.slice(0,h)+_t+l.slice(h)+_+v):l+_+(h===-2?a:v)}return[te(s,i+(s[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),o]},q=class s{constructor({strings:t,_$litType$:e},o){let r;this.parts=[];let i=0,n=0,a=t.length-1,l=this.parts,[c,u]=ee(t,e);if(this.el=s.createElement(c,o),T.currentNode=this.el.content,e===2||e===3){let h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(r=T.nextNode())!==null&&l.length<a;){if(r.nodeType===1){if(r.hasAttributes())for(let h of r.getAttributeNames())if(h.endsWith(_t)){let m=u[n++],v=r.getAttribute(h).split(_),A=/([.?@])?(.*)/.exec(m);l.push({type:1,index:i,name:A[2],strings:v,ctor:A[1]==="."?nt:A[1]==="?"?at:A[1]==="@"?lt:N}),r.removeAttribute(h)}else h.startsWith(_)&&(l.push({type:6,index:i}),r.removeAttribute(h));if(Zt.test(r.tagName)){let h=r.textContent.split(_),m=h.length-1;if(m>0){r.textContent=rt?rt.emptyScript:"";for(let v=0;v<m;v++)r.append(h[v],W()),T.nextNode(),l.push({type:2,index:++i});r.append(h[m],W())}}}else if(r.nodeType===8)if(r.data===At)l.push({type:2,index:i});else{let h=-1;for(;(h=r.data.indexOf(_,h+1))!==-1;)l.push({type:7,index:i}),h+=_.length-1}i++}}static createElement(t,e){let o=S.createElement("template");return o.innerHTML=t,o}};function P(s,t,e=s,o){if(t===f)return t;let r=o!==void 0?e._$Co?.[o]:e._$Cl,i=F(t)?void 0:t._$litDirective$;return r?.constructor!==i&&(r?._$AO?.(!1),i===void 0?r=void 0:(r=new i(s),r._$AT(s,e,o)),o!==void 0?(e._$Co??=[])[o]=r:e._$Cl=r),r!==void 0&&(t=P(s,r._$AS(s,t.values),r,o)),t}var it=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:e},parts:o}=this._$AD,r=(t?.creationScope??S).importNode(e,!0);T.currentNode=r;let i=T.nextNode(),n=0,a=0,l=o[0];for(;l!==void 0;){if(n===l.index){let c;l.type===2?c=new L(i,i.nextSibling,this,t):l.type===1?c=new l.ctor(i,l.name,l.strings,this,t):l.type===6&&(c=new ct(i,this,t)),this._$AV.push(c),l=o[++a]}n!==l?.index&&(i=T.nextNode(),n++)}return T.currentNode=S,r}p(t){let e=0;for(let o of this._$AV)o!==void 0&&(o.strings!==void 0?(o._$AI(t,o,e),e+=o.strings.length-2):o._$AI(t[e])),e++}},L=class s{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,o,r){this.type=2,this._$AH=d,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=o,this.options=r,this._$Cv=r?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,e=this._$AM;return e!==void 0&&t?.nodeType===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=P(this,t,e),F(t)?t===d||t==null||t===""?(this._$AH!==d&&this._$AR(),this._$AH=d):t!==this._$AH&&t!==f&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Xt(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==d&&F(this._$AH)?this._$AA.nextSibling.data=t:this.T(S.createTextNode(t)),this._$AH=t}$(t){let{values:e,_$litType$:o}=t,r=typeof o=="number"?this._$AC(t):(o.el===void 0&&(o.el=q.createElement(te(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===r)this._$AH.p(e);else{let i=new it(r,this),n=i.u(this.options);i.p(e),this.T(n),this._$AH=i}}_$AC(t){let e=Yt.get(t.strings);return e===void 0&&Yt.set(t.strings,e=new q(t)),e}k(t){Ct(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,o,r=0;for(let i of t)r===e.length?e.push(o=new s(this.O(W()),this.O(W()),this,this.options)):o=e[r],o._$AI(i),r++;r<e.length&&(this._$AR(o&&o._$AB.nextSibling,r),e.length=r)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t!==this._$AB;){let o=Ft(t).nextSibling;Ft(t).remove(),t=o}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},N=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,o,r,i){this.type=1,this._$AH=d,this._$AN=void 0,this.element=t,this.name=e,this._$AM=r,this.options=i,o.length>2||o[0]!==""||o[1]!==""?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=d}_$AI(t,e=this,o,r){let i=this.strings,n=!1;if(i===void 0)t=P(this,t,e,0),n=!F(t)||t!==this._$AH&&t!==f,n&&(this._$AH=t);else{let a=t,l,c;for(t=i[0],l=0;l<i.length-1;l++)c=P(this,a[o+l],e,l),c===f&&(c=this._$AH[l]),n||=!F(c)||c!==this._$AH[l],c===d?t=d:t!==d&&(t+=(c??"")+i[l+1]),this._$AH[l]=c}n&&!r&&this.j(t)}j(t){t===d?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},nt=class extends N{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===d?void 0:t}},at=class extends N{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==d)}},lt=class extends N{constructor(t,e,o,r,i){super(t,e,o,r,i),this.type=5}_$AI(t,e=this){if((t=P(this,t,e,0)??d)===f)return;let o=this._$AH,r=t===d&&o!==d||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,i=t!==d&&(o===d||r);r&&this.element.removeEventListener(this.name,this,o),i&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},ct=class{constructor(t,e,o){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(t){P(this,t)}},se={M:_t,P:_,A:At,C:1,L:ee,R:it,D:Xt,V:P,I:L,H:N,N:at,U:lt,B:nt,F:ct},Ue=bt.litHtmlPolyfillSupport;Ue?.(q,L),(bt.litHtmlVersions??=[]).push("3.3.2");var ht=(s,t,e)=>{let o=e?.renderBefore??t,r=o._$litPart$;if(r===void 0){let i=e?.renderBefore??null;o._$litPart$=r=new L(t.insertBefore(W(),i),i,void 0,e??{})}return r._$AI(s),r};var Ot=globalThis,E=class extends b{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){let e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=ht(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return f}};E._$litElement$=!0,E.finalized=!0,Ot.litElementHydrateSupport?.({LitElement:E});var Me=Ot.litElementPolyfillSupport;Me?.({LitElement:E});(Ot.litElementVersions??=[]).push("4.2.2");var oe=new Set,re;var ie=s=>typeof s=="string"?s:"el"in s?s.el.localName:"localName"in s?s.localName:s.declaredClass,Ls=(s,t,e,o)=>{let r=ie(t);if(o?.once){let n=`${s}${r}${e}`;if(oe.has(n))return;oe.add(n)}let i;if(o?.detail){i={};for(let[n,a]of Object.entries(o.detail))if((typeof a=="object"||typeof a=="function")&&a!==null){let l=new WeakRef(a);Object.defineProperty(i,n,{enumerable:!0,get(){return l.deref()}})}else i[n]=a;re?.log.interceptors?.forEach(n=>n(s,r,e,i)),console[s](`[${r}]: ${e}`,i)}else re?.log.interceptors?.forEach(n=>n(s,r,e)),console[s](`[${r}]: ${e}`)},ne=s=>{let t=`[${ie(s)}] `;return e=>{let o=e instanceof Error&&e.message?e:new Error(String(e));o.message=`${t}${o.message}`,setTimeout(()=>{throw e})}},Rs=s=>`The property \`${s.toString()}\` is required but missing.`,Us=s=>`The property \`${s.toString()}\` is empty but must have at least one element.`;var Ie=(s,t,e)=>{let o=Object.keys(s),r=o.length;R===void 0&&queueMicrotask(U),R??=new Map;let i=R.get(s);return i===void 0&&(i={callbacks:[],keyCount:r},R.set(s,i)),i.keyCount!==r&&(i.callbacks.forEach(n=>n(o)),i.callbacks=[],i.keyCount=r),i.callbacks.push(n=>{let a=c=>p(t,null,c),l=n[r];l===void 0?a(void 0):s[l]===e?a(l):a(void 0)}),e},R,U=()=>{R?.forEach(({callbacks:s},t)=>{let e=Object.keys(t);s.forEach(o=>o(e))}),R=void 0},ke=(s,t,e)=>{let o=s.manager;return o.V!==d&&o.V!==e&&o.S(void 0,void 0),o.T.length===0&&queueMicrotask(()=>o.S(void 0,void 0)),o.V=e,o.T.push((r,i)=>p(t,void 0,e===i?r:void 0)),e},je=(s=[j(),...It()],t,e)=>{let o=Array.isArray(s)?s:[s],r=o.length+1,i=n=>{r-=1,n!==void 0&&(r=Math.min(r,0)),r===0&&t(n)};o.forEach(n=>Ie(n,a=>i(a===void 0?void 0:{key:a,host:n,isReactive:!1}),e));for(let n of o)if("manager"in n&&n.manager.component===n){ke(n,a=>i(a===void 0?void 0:{key:a,host:n,isReactive:!0}),e);break}return e},He=(s="",t={},e=j())=>{let o={emit:r=>{s===""&&U();let i=new CustomEvent(s,{detail:r,cancelable:!0,bubbles:!0,composed:!0,...t});return e.el.dispatchEvent(i),i}};return s===""&&je(void 0,r=>s=r.key,o),o},Ve=He.bind(null,""),ce;ce=k;var Tt=class{constructor(t){this.#t=[],this.#e=[],this.#s=[],this.#r=[],this.#i=[],this.#l=[],this.#c=[],this.#d=[],this.#n=[],this.#p=!1,this.P=Promise.withResolvers(),this.connectedCalled=!1,this.loadedCalled=!1,this[ce]=!0,this.#h=[];let e=this,o=t??j(new.target.name);e.#o=o,e.ready=e.P.promise,e.#a=le(e),e.component=o,e.#o.addController(e),e.#o.manager===void 0||(X(e),queueMicrotask(()=>e.catchUpLifecycle()))}#t;#e;#s;#r;#i;#l;#c;#d;#n;#p;#o;catchUpLifecycle(){let{manager:t}=this.#o;t.connectedCalled&&!this.connectedCalled&&this.triggerConnected(),t.#p&&this.triggerLoad().then(()=>t.loadedCalled&&this.triggerLoaded()).catch(ne(this.#o))}#a;get exports(){return this.#a}set exports(t){let e=this.#a;e!==t&&(this.#a=t,this.#h.forEach(p),this.connectedCalled&&this.O!==!1&&this.#o.requestUpdate(this.O,e)),this.P.resolve(t)}setProvisionalExports(t,e=!0){this.#a=e?le(t):t,this.#h.forEach(p)}#h;watchExports(t){let e=()=>t(this.#a);return this.#h.push(e),()=>{this.#h.splice(this.#h.indexOf(e),1)}}get use(){return w(this.#o),kt}get useRef(){return w(this.#o),jt}get useRefSync(){return w(this.#o),Z}controllerRemoved(){this.#o.el.isConnected&&this.triggerDisconnected(),this.triggerDestroy()}onConnected(t){this.#t.push(t)}onDisconnected(t){this.#e.push(t)}onLoad(t){this.#s.push(t)}onLoaded(t){this.#r.push(t)}onUpdate(t){this.#i.push(t)}onUpdated(t){this.#l.push(t)}onDestroy(t){this.#c.push(t)}onLifecycle(t){this.#d.push(t),this.connectedCalled&&this.#o.el.isConnected&&this.#u(t)}triggerConnected(){let t=this;t.hostConnected&&p(t.hostConnected,t),t.#t.forEach(p),t.triggerLifecycle(),t.connectedCalled=!0}triggerDisconnected(){let t=this;t.hostDisconnected&&p(t.hostDisconnected,t),t.#e.forEach(p),t.#n.forEach(p),t.#n=[]}async triggerLoad(){if(this.#p)return;this.#p=!0;let t=this;t.hostLoad&&await M(t.hostLoad,t),this.#s.length>0&&await Promise.allSettled(this.#s.map(M)),this.P.resolve(this.#a)}triggerLoaded(){this.loadedCalled||(this.hostLoaded&&p(this.hostLoaded,this),this.#r.forEach(p),this.loadedCalled=!0)}triggerUpdate(t){this.hostUpdate&&p(this.hostUpdate,this,t),this.#i.forEach(ae,t)}triggerUpdated(t){this.hostUpdated&&p(this.hostUpdated,this,t),this.#l.forEach(ae,t)}triggerDestroy(){this.hostDestroy&&p(this.hostDestroy,this),this.#c.forEach(p)}triggerLifecycle(){this.hostLifecycle&&this.#u(()=>this.hostLifecycle()),this.#d.forEach(this.#u,this)}#u(t){w(this.#o);let e=p(t);(Array.isArray(e)?e:[e]).forEach(r=>{typeof r=="function"?this.#n.push(r):typeof r=="object"&&typeof r.remove=="function"&&this.#n.push(r.remove)})}};function ae(s){p(s,void 0,this)}var le=s=>{if(typeof s!="object"&&typeof s!="function"||s===null)return s;let t={get(o,r,i){if(!((r==="exports"||r==="_exports")&&r in o&&o[r]===e)&&(r in o||r in Promise.prototype||typeof r=="symbol"))return typeof o=="function"?o[r]:Reflect.get(o,r,i)}},e=new Proxy(s,t);return e};var he=Tt;var y={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},$=s=>(...t)=>({_$litDirective$:s,values:t}),g=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,o){this._$Ct=t,this._$AM=e,this._$Ci=o}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};var{I:ze}=se,de=s=>s;var Fs=(s,t)=>t===void 0?s?._$litType$!==void 0:s?._$litType$===t,qs=s=>s?._$litType$?.h!=null;var dt=s=>s.strings===void 0,pe=()=>document.createComment(""),Gs=(s,t,e)=>{let o=s._$AA.parentNode,r=t===void 0?s._$AB:t._$AA;if(e===void 0){let i=o.insertBefore(pe(),r),n=o.insertBefore(pe(),r);e=new ze(i,n,s,s.options)}else{let i=e._$AB.nextSibling,n=e._$AM,a=n!==s;if(a){let l;e._$AQ?.(s),e._$AM=s,e._$AP!==void 0&&(l=s._$AU)!==n._$AU&&e._$AP(l)}if(i!==r||a){let l=e._$AA;for(;l!==i;){let c=de(l).nextSibling;de(o).insertBefore(l,r),l=c}}}return e},Ks=(s,t,e=s)=>(s._$AI(t,e),s),Be={},ue=(s,t=Be)=>s._$AH=t,Js=s=>s._$AH,Qs=s=>{s._$AR(),s._$AA.remove()},Ys=s=>{s._$AR()};var We=$(class extends g{constructor(s){if(super(s),s.type!==y.PROPERTY&&s.type!==y.ATTRIBUTE&&s.type!==y.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!dt(s))throw Error("`live` bindings can only contain a single expression")}render(s){return s}update(s,[t]){if(t===f||t===d)return t;let e=s.element,o=s.name;if(s.type===y.PROPERTY){if(t===e[o])return f}else if(s.type===y.BOOLEAN_ATTRIBUTE){if(!!t===e.hasAttribute(o))return f}else if(s.type===y.ATTRIBUTE&&e.getAttribute(o)===t+"")return f;return ue(s),t}});var G=(s,t)=>{let e=s._$AN;if(e===void 0)return!1;for(let o of e)o._$AO?.(t,!1),G(o,t);return!0},pt=s=>{let t,e;do{if((t=s._$AM)===void 0)break;e=t._$AN,e.delete(s),s=t}while(e?.size===0)},fe=s=>{for(let t;t=s._$AM;s=t){let e=t._$AN;if(e===void 0)t._$AN=e=new Set;else if(e.has(s))break;e.add(s),Ge(t)}};function Fe(s){this._$AN!==void 0?(pt(this),this._$AM=s,fe(this)):this._$AM=s}function qe(s,t=!1,e=0){let o=this._$AH,r=this._$AN;if(r!==void 0&&r.size!==0)if(t)if(Array.isArray(o))for(let i=e;i<o.length;i++)G(o[i],!1),pt(o[i]);else o!=null&&(G(o,!1),pt(o));else G(this,s)}var Ge=s=>{s.type==y.CHILD&&(s._$AP??=qe,s._$AQ??=Fe)},ut=class extends g{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,o){super._$AT(t,e,o),fe(this),this.isConnected=t._$AU}_$AO(t,e=!0){t!==this.isConnected&&(this.isConnected=t,t?this.reconnected?.():this.disconnected?.()),e&&(G(this,t),pt(this))}setValue(t){if(dt(this._$Ct))this._$Ct._$AI(t,this);else{let e=[...this._$Ct._$AH];e[this._$Ci]=t,this._$Ct._$AI(e,this,0)}}disconnected(){}reconnected(){}};var fo=()=>new Pt,Pt=class{},St=new WeakMap,Nt=$(class extends ut{render(s){return d}update(s,[t]){let e=t!==this.G;return e&&this.G!==void 0&&this.rt(void 0),(e||this.lt!==this.ct)&&(this.G=t,this.ht=s.options?.host,this.rt(this.ct=s.element)),d}rt(s){if(this.isConnected||(s=void 0),typeof this.G=="function"){let t=this.ht??globalThis,e=St.get(t);e===void 0&&(e=new WeakMap,St.set(t,e)),e.get(this.G)!==void 0&&this.G.call(this.ht,void 0),e.set(this.G,s),s!==void 0&&this.G.call(this.ht,s)}else this.G.value=s}get lt(){return typeof this.G=="function"?St.get(this.ht??globalThis)?.get(this.G):this.G?.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}});var xt=s=>{let t=s;for(;t=t.parentNode??t.host;)if(t?.constructor?.lumina){let e=t;return e.manager?.loadedCalled||(e.J??e._offspring).push(s),(e.I??e._postLoad).promise}return!1},Lt={};function Rt(){}function Ut(s){for(let t of["Associated","Disabled","Reset","StateRestore"]){let e=`orm${t}Callback`;s.prototype["f"+e]=async function(...o){await this.componentOnReady(),(this.el??this).dispatchEvent(new CustomEvent(`luminaF${e}`,{detail:o}))}}}var Je=(s,t)=>function(o,r){if(!globalThis.customElements)return;let n=(r??o??{}).resourcesUrl;n&&s.setAssetPath(n);for(let[a,[l,c="",u=0]]of Object.entries(t)){if(customElements.get(a))continue;let[h,m,v]=c.split(";"),A=h?h?.split(",").map(Qe):void 0,gt=A?.map(([D])=>D),J=class extends Dt{static{this.formAssociated=u===1}static{this.observedAttributes=A?.map(([,D])=>D).filter(D=>D!=="")}static{this.C=gt}static{this.E=m?m?.split(","):void 0}static{this.D=v?.split(",")}static{this.L=a}static{this.K=s}constructor(){!J.B&&(J.B=l(),J.F()),super()}};customElements.define(a,J)}},ft=Object.defineProperty,Qe=s=>{let t=s.split(":");return t.length===1?[t[0],Q(t[0])]:t},Ye=globalThis.HTMLElement??Rt,Dt=class extends Ye{constructor(){super(),this.#e={},this.#s=[],this.I=Promise.withResolvers(),this.H=Promise.withResolvers(),this.J=[];let t=this,e=t.constructor;t._offspring=t.J,t._postLoad=t.I,e.C?.forEach(o=>{Object.hasOwn(t,o)&&(t.#e[o]=t[o],delete t[o])}),e.A?t.#r({a:e.A}):e.B.then(async o=>{await e.K.p,t.#r(await(o.default?.then(r=>typeof r=="function"?{a:r}:r)??o))}).catch(o=>{t.H.reject(o),setTimeout(()=>{throw o})})}static{this.lumina=!0}static F(){for(let t of this.C??[])ft(this.prototype,t,{configurable:!0,enumerable:!0,get(){return this.#e[t]},set(e){this.#e[t]=e}});for(let t of this.E??[])ft(this.prototype,t,{async value(...e){return this.#t||await this.H.promise,await this.#t[t](...e)},configurable:!0});for(let t of this.D??[])ft(this.prototype,t,{value(...e){return this.#t[t](...e)},configurable:!0})}static{Ut(this)}#t;#e;#s;get manager(){return this.#t?.manager}attributeChangedCallback(t,e,o){this.#t?.attributeChangedCallback(t,e,o),this.#t||this.#s.push(t)}connectedCallback(){this.#t?this.#t.connectedCallback?.():queueMicrotask(()=>this.G=xt(this))}disconnectedCallback(){this.#t?.disconnectedCallback?.()}async componentOnReady(){return await this.H.promise,this}#r(t){let e=this.constructor,o=e.L,r=this.#e,i=Object.values(t).find(h=>h.L===o),n=`${o}--lazy`,a=i;for(;a&&!Object.hasOwn(a,"lumina");)a=Object.getPrototypeOf(a);Ze(a),!e.A&&(e.A=i,customElements.define(n,i)),i.N=this;let c=document.createElement(n);i.N=void 0,this.#t=c,this.#e=c,this.#s.forEach(h=>c.attributeChangedCallback(h,null,this.getAttribute(h))),Object.entries(r).forEach(Xe,c);let u=this.isConnected;(u||this.G)&&(c.connectedCallback?.(),u||c.disconnectedCallback())}addController(){}requestUpdate(){this.#t?.requestUpdate()}};function Xe([s,t]){this[s]=t}var Ze=s=>{let t=s.prototype,e=Element.prototype;Object.hasOwn(t,"isConnected")||(t.setAttribute=function(r,i){e.setAttribute.call(this.el,r,i)},t.removeAttribute=function(r){e.removeAttribute.call(this.el,r)},t.hasAttribute=function(r){return e.hasAttribute.call(this.el,r)},ft(t,"isConnected",{get(){return Reflect.get(e,"isConnected",this.el)}}))};var ye=(s,t)=>{let e=t>ts?es:t/ss,o=0,r=setInterval(()=>{o+=e,o>=t&&(clearInterval(r),s())},e);return r},ts=4e3,es=2e3,ss=4;var mt=class extends he{constructor(t){super(t),this.destroyed=!1,this.R=!1,this.V=d,this.T=[],this.#s=new WeakMap,this.#e=t,this.exports=void 0,this.hasDestroy=yt in t&&typeof t.destroy=="function",E.prototype.addController.call(t,{hostConnected:()=>{if(this.destroyed){let e=t.el.localName;throw t.el.remove(),new Error(`The ${e} component has already been destroyed. It cannot be used again. If you meant to disconnect and reconnect a component without automatic destroy, set the ${yt} prop.`)}this.#t!==void 0&&clearTimeout(this.#t),U();for(let e of t.M)"triggerConnected"in e?e.triggerConnected():p(e.hostConnected,e)},hostDisconnected:()=>{for(let e of t.M)"triggerDisconnected"in e?e.triggerDisconnected():p(e.hostDisconnected,e);this.hasDestroy&&!this.destroyed&&this.U()},hostUpdate:()=>{for(let e of t.M)"triggerUpdate"in e?e.triggerUpdate(this.Q):p(e.hostUpdate,e,this.Q)},hostUpdated:()=>{for(let e of t.M)"triggerUpdated"in e?e.triggerUpdated(this.Q):p(e.hostUpdated,e,this.Q);this.Q=void 0}}),queueMicrotask(()=>this.R=!0),X(void 0),w(t)}#t;#e;async destroy(){if(!this.destroyed){this.#e.el.isConnected&&(this.hasDestroy=!1,this.#e.el.remove()),this.#t=void 0,this.destroyed=!0;for(let t of this.#e.M)"triggerDestroy"in t?t.triggerDestroy():p(t.hostDestroy,t);this.#e.M.splice(0)}}U(){if(this.#t!==void 0&&clearTimeout(this.#t),!this.#e.el.isConnected&&!this.#e.autoDestroyDisabled){let t=()=>{this.#e.destroy()};this.#t=ye(t,os)}}S(t,e){let o=this.T;this.V=d,this.T=[],o.forEach(r=>r(t,e))}#s;W(t,e){(typeof e=="object"&&e!==null||typeof e=="function")&&this.#s.set(e,t)}X(t){if(typeof t=="object"&&t!==null||typeof t=="function")return this.#s.get(t)}},os=1e3,yt="autoDestroyDisabled";var ge=$(class extends g{constructor(s){if(super(s),s.type!==y.ATTRIBUTE||s.name!=="class"||s.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(s){return" "+Object.keys(s).filter(t=>s[t]).join(" ")+" "}update(s,[t]){if(this.st===void 0){this.st=new Set,s.strings!==void 0&&(this.nt=new Set(s.strings.join(" ").split(/\s/).filter(o=>o!=="")));for(let o in t)t[o]&&!this.nt?.has(o)&&this.st.add(o);return this.render(t)}let e=s.element.classList;for(let o of this.st)o in t||(e.remove(o),this.st.delete(o));for(let o in t){let r=!!t[o];r===this.st.has(o)||this.nt?.has(o)||(r?(e.add(o),this.st.add(o)):(e.remove(o),this.st.delete(o)))}return f}});var ve="important",rs=" !"+ve,Ee=$(class extends g{constructor(s){if(super(s),s.type!==y.ATTRIBUTE||s.name!=="style"||s.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(s){return Object.keys(s).reduce((t,e)=>{let o=s[e];return o==null?t:t+`${e=e.includes("-")?e:e.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${o};`},"")}update(s,[t]){let{style:e}=s.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(t)),this.render(t);for(let o of this.ft)t[o]==null&&(this.ft.delete(o),o.includes("-")?e.removeProperty(o):e[o]=null);for(let o in t){let r=t[o];if(r!=null){this.ft.add(o);let i=typeof r=="string"&&r.endsWith(rs);o.includes("-")||i?e.setProperty(o,i?r.slice(0,-11):r,i?ve:""):e[o]=r}}return f}});var $e=class s extends E{constructor(){super(),this.M=[],this.manager=new mt(this);let t=this,e=t.constructor,o=e.N,r=e.K.o,i=s.prototype.shouldUpdate;t.#r=o?.H??Promise.withResolvers(),t.I=o?.I??Promise.withResolvers(),t.J=o?.J??[],t._offspring=t.J,t._postLoad=t.I,t.el=o??t,t.#s=t.enableUpdating,t.enableUpdating=Rt,t.shouldUpdate!==i&&(t.#e=t.shouldUpdate,t.shouldUpdate=i),r&&(t.#t=new Map,e.elementProperties.forEach((n,a)=>t.#t.set(a,r()))),!1}static finalizeStyles(t){let e=super.finalizeStyles(t),o=this.shadowRootOptions===Lt;return this.K?.commonStyles===void 0||o?e:[this.K.commonStyles,...e]}static createProperty(t,e){let o=typeof e=="number"?e:Array.isArray(e)?e[0]:0,r=Array.isArray(e)?e[1]:void 0,i=r?.hasChanged??z,n={attribute:o&1&&typeof t=="string"?Q(t):!1,reflect:!!(o&2),type:o&4?Boolean:o&8?Number:void 0,state:!!(o&16),readOnly:!!(o&32),noAccessor:!!(o&64),useDefault:!!(o&128),c:!1,...r,hasChanged(a,l){let c=i(a,l);return n.c=c,c}};super.createProperty(t,n)}static getPropertyDescriptor(t,e,o){let r=this.K,i=super.getPropertyDescriptor(t,e,o);return o.d=i,{...i,get(){return r.t?.(this.#t.get(t)),i.get?.call(this)},set(n){let a=this.manager;if(o.readOnly&&!Y&&(a.R||a.connectedCalled))throw Error(`Cannot assign to read-only property "${t}" of ${this.el.localName}. Trying to assign "${n}"`);i.set.call(this,n??void 0),o.c&&this.#t?.get(t)?.notify(),a.T.length>0&&(U(),a?.S(t,n))}}}static{this.lumina=!0}static{Ut(this)}#t;#e;#s;#r;#i;#l;get elementInternals(){return this.#l??=this.el.attachInternals(),this.#l}connectedCallback(){this.hasAttribute("defer-hydration")||this.#c(!0)}#c(t){let e=this.constructor.K.c?.(()=>this.requestUpdate());this.#i=e;let o=!this.manager.connectedCalled;t&&super.connectedCallback(),o?queueMicrotask(()=>this.#n().catch(r=>{this.#r.reject(r),setTimeout(()=>{throw r})})):e&&this.requestUpdate()}#d(t){try{this.#i.clear(),this.constructor.K.r(this.#i,()=>super.update(t))}catch(e){throw this.#i.clear(),e}}disconnectedCallback(){super.disconnectedCallback(),this.#i?.destroy(),this.#i=void 0}createRenderRoot(){let t=this.el.shadowRoot,e=this.constructor,o=e.shadowRootOptions,i=t??(o===Lt?this.el:this.el.attachShadow(o));if(t)return this.manager.connectedCalled||this.#c(!1),E.prototype.createRenderRoot.call(this),t;if(this.isConnected){let n=i.getRootNode();n.adoptedStyleSheets=[...n.adoptedStyleSheets,...e.elementStyles.map(a=>"styleSheet"in a?a.styleSheet:a)]}return i}async#n(){let t=this.el.G??xt(this.el);t&&await t;let e=[];for(let r of this.M)"triggerLoad"in r?e.push(r.triggerLoad()):e.push(M(r.hostLoad,r));await Promise.all(e),await this.load?.(),this.manager.hasDestroy&&this.manager.onUpdate(r=>r.has(yt)&&this.manager.U()),this.#s(!0),this.performUpdate(),this.I.resolve(),await 0;let o=this.J.filter(r=>!r.manager?.loadedCalled);o.length&&await Promise.allSettled(o.map(async r=>await r.componentOnReady())),this.J.length=0,this.el.setAttribute(this.constructor.K.hydratedAttribute,"");for(let r of this.M)"triggerLoaded"in r?r.triggerLoaded():p(r.hostLoaded,r);this.loaded?.(),this.#r.resolve()}shouldUpdate(t){return this.manager.Q=t,this.#e?.(t)??!0}update(t){this.#i?this.#d(t):super.update(t)}listen(t,e,o){let r=e?.bind(this)??e;this.manager.onLifecycle(()=>(this.el.addEventListener(t,r,o),()=>this.el.removeEventListener(t,r,o)))}listenOn(t,e,o,r){let i=o?.bind(this)??o;this.manager.onLifecycle(()=>(t.addEventListener(e,i,r),()=>t.removeEventListener(e,i,r)))}async componentOnReady(){return await this.#r.promise,this}addController(t){this.M.push(t),!(k in t)&&this.renderRoot&&this.el.isConnected&&t.hostConnected?.()}removeController(t){this.M.splice(this.M.indexOf(t),1),t.controllerRemoved?.()}};var _e=s=>{let t,e=r=>{t=new URL(r,globalThis.location?.href||void 0).href},o={...s,getAssetPath(r){let i=new URL(r,t);return i.origin!==globalThis.location?.origin?i.href:i.pathname},setAssetPath:e,customElement(r,i){i.K=o,i.L=r,customElements.get(r)||customElements.define(r,i)}};return e(s.defaultAssetPath),o};var Tr=s=>typeof s=="object"&&s!=null?ge(s):s,Sr=s=>typeof s=="object"&&s!=null?Ee(s):s;var Mt=class extends g{#t;#e;constructor(t){super(t);let e=this;this.#e=function(r){return e.#t.call(this,r)}}render(t){return typeof t=="function"?(this.#t=t,Nt(this.#e)):Nt(t)}},Pr=$(Mt);var Nr=d;var Dr=s=>{let t=document.createElement("div");return ht(s,t),t.firstElementChild};var K=_e({defaultAssetPath:"https://jsdev.arcgis.com/6.0.0-next/portal-components/",hydratedAttribute:"hydrated"}),{customElement:Mr,getAssetPath:Ir,setAssetPath:kr}=K;K.t=void 0;K.o=void 0;K.c=void 0;K.r=void 0;export{hs as a,w as b,j as c,X as d,It as e,ds as f,ps as g,we as h,z as i,vs as j,Es as k,f as l,d as m,ht as n,Ls as o,ne as p,Rs as q,Us as r,ke as s,je as t,He as u,Ve as v,Tt as w,he as x,Je as y,y as z,$ as A,g as B,Fs as C,qs as D,Gs as E,Ks as F,ue as G,Js as H,Qs as I,Ys as J,We as K,fo as L,Nt as M,$e as N,Tr as O,Sr as P,Nr as Q,Dr as R,K as S,Mr as T,Ir as U};
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
+ import d from"./5CEFJTG4.js";import{a as I}from"./NHVPNSNH.js";import c from"./CJ4S56BE.js";import{a as T,b as A}from"./4KTRAA2J.js";import a from"./OQ2JULON.js";import"./4VLEUN7I.js";import"./KV4ZZSNW.js";import"./FN2QMDEW.js";import{a as S}from"./B343BOVA.js";import"./G7DJPREL.js";import"./GC4BV7IZ.js";import{L as u,M as g,N as y,Q as b,T as w,h as p,j as o,v as h}from"./AM3UTQWH.js";import"./KHKREBVZ.js";import"./5PV2GUZW.js";export default $arcgis.t(([{formatNumber:q},{a:f,b:k,c:v,d:$},{d:d},{a:C,d:E}])=>{var B=p`:host,.dropdown{display:block}.title{max-inline-size:32rem;overflow-wrap:anywhere}.dropdown-group{max-block-size:10rem;overflow:auto}calcite-alert{--calcite-z-index-toast: 999;z-index:999}`,N={esriGeometryPoint:"point",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryMultipoint:"multipoint"};function G(s){return{id:s.id,title:s.title,description:s.description??"",fieldAliases:Array.isArray(s.fieldAliases)?s.fieldAliases.join(","):s.fieldAliases??"",geometryType:!s.geometryType||s.geometryType==="table"?"nonspatial":N[s.geometryType]??"nonspatial",sourceJSON:s.sourceJSON}}function x(s){let{messageCode:t}=C(s);return{error:{code:t==="OAUTH_0070"?"notebookAccessBlocked":"serviceUnavailable"}}}function P(s){return d(s)||!s.id?void 0:k("serviceInfo",s.id)?.result?.sublayers.map(G)}function O(s){s.id&&v("serviceInfo",s.id)}async function L({item:s,portal:t,signal:e}){try{if(e.throwIfAborted(),d(s)){if(!s.url)throw new Error("The geoprocessing item has no service URL.");let r=await $({url:s.url,portal:t,options:{signal:e,addTokenManually:!1}}),l=r.tasks??(r.parameters?[s.url.split("/GPServer/").pop()??""]:void 0);if(!l)throw new Error("The geoprocessing service did not return tasks.");return{result:{tasks:l}}}if(!s.id)throw new Error("The item has no ID.");let i=await f({requester:async()=>await E({item:s,portal:t,isSecure:!1,allowLoginWindow:!0}),key:"serviceInfo",id:s.id});return e.throwIfAborted(),i.result?{result:{sublayers:i.result.sublayers.map(G)}}:x(i.error)}catch(i){return x(i)}}var m=class extends y{constructor(){super(...arguments),this.messages=S({blocking:!0}),this.dropdown=u(),this.selectedEntries=[],this.loading=!1,this.fetched=!1,this.selectedItems=[],this.allowedGeometries=[],this.width="auto",this.appearance="outline",this.selection="single",this.disabled=!1,this.arcgisItemCardSelect=h(),this.arcgisItemCardSelectError=h()}static{this.properties={sublayers:16,tasks:16,loading:16,fetched:16,error:16,item:0,portal:0,selectedItems:0,allowedGeometries:0,width:1,appearance:1,selection:1,disabled:7,messageOverrides:0}}static{this.styles=B}get isTask(){return d(this.item)}get sortedSublayers(){return[...this.sublayers??[]].sort((t,e)=>Number(this.isAllowed(e))-Number(this.isAllowed(t))||e.id-t.id)}get selectText(){let t=this.selectedEntries,{messages:e}=this;if(this.isTask){let r=t[0];return t.length===1&&r&&"task"in r?e.selectedTask.replace("${task}",r.task):e.selectTask}if(!t.length&&!this.sublayers?.length)return this.isSelected()?e.selectedSingle:e.select;if(!t.length)return this.selection==="multiple"?e.selectLayers:e.select;if(this.selection==="multiple")return e.selectedLayers.replace("${num}",q(t.length));let i=t[0];return i&&"sublayer"in i?e.selectedName.replace("${name}",i.sublayer.title):e.select}willUpdate(t){if(t.has("disabled")&&this.disabled&&(this.requestController?.abort(),this.loading=!1,this.dropdown.value&&(this.dropdown.value.open=!1)),(t.has("item")||t.has("selectedItems"))&&(this.selectedEntries=this.selectedItems.filter(e=>"item"in e&&e.item.id===this.item?.id)),(t.has("item")||t.has("portal"))&&(this.requestController?.abort(),this.sublayers=this.item?T(this.item).sublayers:void 0,this.tasks=void 0,this.loading=!1,this.fetched=!1,this.error=void 0,this.item&&!this.sublayers)){let e=P(this.item);e&&(this.sublayers=e,this.fetched=!0)}}disconnectedCallback(){super.disconnectedCallback(),this.requestController?.abort(),this.loading=!1}isSelected(t,e){return this.selectedItems.some(i=>"item"in i?i.item.id===this.item.id&&(t?"sublayer"in i&&i.sublayer.id===t.id:e!==void 0&&"task"in i&&i.task===e):!t&&e===void 0&&i.id===this.item.id)}isAllowed(t){return!this.allowedGeometries.length||this.allowedGeometries.includes(t.geometryType)}select(t,e,i=this.selection==="single"||!this.isSelected(t,e)){this.disabled||(this.arcgisItemCardSelect.emit({item:this.item,...t?{sublayer:t}:{},...e!==void 0?{task:e}:{},selected:i}),this.requestUpdate(),this.reconcileSelection())}async reconcileSelection(){await this.updateComplete;let t=this.sortedSublayers;this.dropdown.value?.querySelectorAll("calcite-dropdown-item").forEach((e,i)=>{e.selected=this.isTask?this.isSelected(void 0,this.tasks?.[i]):this.isSelected(t[i])})}async handleTrigger(t=!1){if(this.loading||this.disabled)return;this.requestController?.abort();let e=new AbortController;this.requestController=e;let{item:i,portal:r}=this,l=()=>!e.signal.aborted&&this.item===i&&this.portal===r&&this.el.isConnected,c=t||!this.fetched&&(this.isTask||!this.sublayers&&this.item.type!=="Image Service"||A(this.item).includes("SubtypeGroupLayer"));if(c){t&&(O(i),this.fetched=!1),this.loading=!0,this.error=void 0;let a=await L({item:i,portal:r,signal:e.signal});if(!l())return;if(this.loading=!1,a.error||!a.result){this.error=a.error??{code:"serviceUnavailable"},this.arcgisItemCardSelectError.emit({item:i,error:this.error});return}if(this.sublayers=a.result.sublayers,this.tasks=a.result.tasks,this.fetched=!0,await this.updateComplete,!l())return}if(c&&this.isTask&&this.tasks?.length===1){this.dropdown.value&&(this.dropdown.value.open=!1),this.select(void 0,this.tasks[0],!0);return}if(!this.isTask&&!this.sublayers?.length){t||this.select(void 0,void 0,!this.isSelected());return}let n=this.dropdown.value;n&&(await n.componentOnReady(),l()&&(n.open=c||!n.open))}renderButton(t){return o`<calcite-button slot=${(t?"trigger":void 0)??b} class="dropdown" .loading=${this.loading} .disabled=${this.loading||this.disabled} .appearance=${this.selectedEntries.length||this.isSelected()?"solid":this.appearance} kind=neutral .iconEnd=${t?"chevron-down":void 0} .width=${this.width} @click=${e=>{e.stopPropagation(),this.handleTrigger()}}>${this.selectText}</calcite-button>`}render(){if(!this.item||!this.portal||!this.messages._lang)return null;let t=this.sortedSublayers;return o`${t.length||this.isTask?o`<calcite-dropdown class="dropdown" width=l .placement=${this.appearance==="solid"?"top":"bottom-end"} .closeOnSelectDisabled=${!this.isTask&&this.selection==="multiple"} overlay-positioning=fixed ${g(this.dropdown)}>${this.renderButton(!0)}<calcite-dropdown-group class="dropdown-group" .selectionMode=${this.selection} .groupTitle=${this.isTask&&this.tasks?.length?this.messages.selectTaskFrom.replace("${title}",this.item.title??""):void 0}>${this.isTask?this.tasks?.map(e=>o`<calcite-dropdown-item .disabled=${this.disabled} .selected=${this.isSelected(void 0,e)} @calciteDropdownItemSelect=${()=>this.select(void 0,e)}><span class="title">${e}</span></calcite-dropdown-item>`):t.map(e=>o`<calcite-dropdown-item .id=${`sublayer-${e.id}`} .iconStart=${I({geometry:e.geometryType}).icon} .disabled=${this.disabled||!this.isAllowed(e)} .selected=${this.isSelected(e)} @calciteDropdownItemSelect=${()=>{this.isAllowed(e)&&this.select(e)}}><span class="title">${e.title}</span></calcite-dropdown-item>${!this.isAllowed(e)&&o`<calcite-tooltip .referenceElement=${`sublayer-${e.id}`} overlay-positioning=fixed>${this.messages.geometryNotAllowed}</calcite-tooltip>`||""}`)}</calcite-dropdown-group></calcite-dropdown>`:this.renderButton(!1)}<calcite-alert .label=${this.messages.errorTitle} icon kind=danger .open=${!!this.error} @calciteAlertClose=${()=>{this.error=void 0}}><div slot=title>${this.messages.errorTitle}</div><div slot=message>${this.error?.code==="notebookAccessBlocked"?this.messages.notebookErrorBody:this.messages.errorBody}</div><calcite-link slot=link @click=${e=>{e.stopPropagation(),this.handleTrigger(!0)}}>${this.messages.retry}</calcite-link></calcite-alert>`}};w("arcgis-portal-item-card-sublayer-select",m);return m},"intl",a,c,d)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import{e as r}from"./XX6BL3DR.js";import{R as o}from"./OUFJRLPQ.js";var s=r(o);export{s as a};
2
+ import{e as r}from"./G7DJPREL.js";import{U as o}from"./AM3UTQWH.js";var s=r(o);export{s as a};