@arcgis/map-components 5.1.0-next.60 → 5.1.0-next.62

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 (235) hide show
  1. package/dist/cdn/{BLKKPXDO.js → 277YGNPQ.js} +1 -1
  2. package/dist/cdn/{YOBLHGZK.js → 2OYSX637.js} +1 -1
  3. package/dist/cdn/{BDL7JHSJ.js → 2QO5XYXC.js} +1 -1
  4. package/dist/cdn/{Q33VTX4M.js → 2TP43ZJT.js} +1 -1
  5. package/dist/cdn/{76OGK6BJ.js → 34N6NVCA.js} +1 -1
  6. package/dist/cdn/{43AAIXLC.js → 3IMMSP7K.js} +1 -1
  7. package/dist/cdn/{6BSFBUM6.js → 3LHUEYZM.js} +1 -1
  8. package/dist/cdn/{RTWUAZET.js → 3QUBDSPU.js} +1 -1
  9. package/dist/cdn/{F76SAKGH.js → 3RCS4AK2.js} +1 -1
  10. package/dist/cdn/{6NTYMNLN.js → 3VBTMG7C.js} +1 -1
  11. package/dist/cdn/{6G6M4M5S.js → 43C5DIH5.js} +1 -1
  12. package/dist/cdn/{UMBRQNGS.js → 47JFG5FU.js} +1 -1
  13. package/dist/cdn/{6QUGJX3I.js → 4JJPFWBJ.js} +1 -1
  14. package/dist/cdn/4KLZDEYJ.js +2 -0
  15. package/dist/cdn/{MDUFAELV.js → 4WXHSJS4.js} +1 -1
  16. package/dist/cdn/{6ORHT4GS.js → 4Y32ZA4A.js} +1 -1
  17. package/dist/cdn/54VXNFQ4.js +2 -0
  18. package/dist/cdn/{CTFHP4WA.js → 55JQXQSW.js} +1 -1
  19. package/dist/cdn/{JTOVZZIK.js → 5ABSWG4I.js} +1 -1
  20. package/dist/cdn/{EWOBALV7.js → 5JNFAIJ6.js} +1 -1
  21. package/dist/cdn/5RELUUK7.js +2 -0
  22. package/dist/cdn/{RFJ2A4C5.js → 5VYGY5I2.js} +1 -1
  23. package/dist/cdn/{IFWIELXX.js → 64LRQ74J.js} +1 -1
  24. package/dist/cdn/{7KAQ36QW.js → 6FU5MMYZ.js} +1 -1
  25. package/dist/cdn/6GBJ7BZY.js +2 -0
  26. package/dist/cdn/{4QDDVY23.js → 6HLZ37OL.js} +1 -1
  27. package/dist/cdn/{SNQ2FGIZ.js → 6V5OS3F6.js} +1 -1
  28. package/dist/cdn/{4YOGEANW.js → 76JRCRDK.js} +1 -1
  29. package/dist/cdn/76LZPCRF.js +2 -0
  30. package/dist/cdn/{DJP36K3Y.js → 76MRQR3N.js} +1 -1
  31. package/dist/cdn/{TTXSJRX5.js → 7BWFZ4B2.js} +1 -1
  32. package/dist/cdn/{LNY6JB4T.js → 7EJRQZ4J.js} +1 -1
  33. package/dist/cdn/{HOO4XLPB.js → 7IOKJUW4.js} +1 -1
  34. package/dist/cdn/{RSBGBKYW.js → 7JI6J4N6.js} +1 -1
  35. package/dist/cdn/{6MNOO7S3.js → 7QLMRDBI.js} +1 -1
  36. package/dist/cdn/{2W3VBU7J.js → 7RXSOZQ7.js} +1 -1
  37. package/dist/cdn/{QSNY7PKS.js → 7YSD6HNU.js} +1 -1
  38. package/dist/cdn/{HSAVWAGS.js → AO4UV75O.js} +1 -1
  39. package/dist/cdn/{FBHD2ZEY.js → ASV42UM4.js} +1 -1
  40. package/dist/cdn/{AHYVOMEG.js → B3MJD74A.js} +1 -1
  41. package/dist/cdn/{LPD2FPBE.js → BFIXVV5U.js} +1 -1
  42. package/dist/cdn/BGYE2RYH.js +2 -0
  43. package/dist/cdn/{RPNWPXQM.js → BIJOBOZ4.js} +1 -1
  44. package/dist/cdn/{OSSSLPDH.js → BJ3FGQD7.js} +1 -1
  45. package/dist/cdn/{AMDRLSC6.js → BTDF2LF7.js} +1 -1
  46. package/dist/cdn/{4C65FPRR.js → BVQJEN6O.js} +1 -1
  47. package/dist/cdn/{323UBCSA.js → C2T4S7R6.js} +1 -1
  48. package/dist/cdn/{KB5J5TKR.js → C3MEDREM.js} +1 -1
  49. package/dist/cdn/C4G7PUW6.js +2 -0
  50. package/dist/cdn/{PV4EVFZL.js → C4TTO7TK.js} +1 -1
  51. package/dist/cdn/{3NIIEYZ3.js → CAS4WOLY.js} +1 -1
  52. package/dist/cdn/CGKNN7O3.js +2 -0
  53. package/dist/cdn/{A3PNX3GL.js → CVBW7J23.js} +1 -1
  54. package/dist/cdn/{IUI2SSE7.js → CYX7ZCTI.js} +1 -1
  55. package/dist/cdn/{GL2CGH7O.js → CZP57LZN.js} +1 -1
  56. package/dist/cdn/{BLFJJQQ3.js → DBZ3TUNH.js} +1 -1
  57. package/dist/cdn/{VVTVZ23C.js → DOAUTR3P.js} +1 -1
  58. package/dist/cdn/{QUZN3WEI.js → DSN53CZZ.js} +1 -1
  59. package/dist/cdn/{AK3LR5KN.js → DWTMIKGK.js} +1 -1
  60. package/dist/cdn/EA45GZ5F.js +2 -0
  61. package/dist/cdn/{EYBE3ZBK.js → EQ7PMY6V.js} +1 -1
  62. package/dist/cdn/{WGW42I4K.js → EYEWDNE5.js} +1 -1
  63. package/dist/cdn/{ZEKJESMA.js → F234D4MB.js} +1 -1
  64. package/dist/cdn/{HH5RW37I.js → F37IC6GS.js} +1 -1
  65. package/dist/cdn/{KXHRLYKD.js → F5UMXASB.js} +1 -1
  66. package/dist/cdn/{EYQYDFFT.js → GCFS62KM.js} +1 -1
  67. package/dist/cdn/{3RBPQIY2.js → GGFRRU24.js} +1 -1
  68. package/dist/cdn/GONQF4NL.js +2 -0
  69. package/dist/cdn/{N2AXFVQB.js → GTGN4N7C.js} +1 -1
  70. package/dist/cdn/GW3E4WBW.js +2 -0
  71. package/dist/cdn/{NWE4GWG6.js → HW4WLKS3.js} +1 -1
  72. package/dist/cdn/{X4JK3J5H.js → HX43LUFZ.js} +1 -1
  73. package/dist/cdn/{BLXKBUSY.js → I76WQDAB.js} +1 -1
  74. package/dist/cdn/{EYT725LZ.js → J2NNVVQJ.js} +1 -1
  75. package/dist/cdn/{7E7AM2OJ.js → JEBIHMOV.js} +1 -1
  76. package/dist/cdn/{7LBICZSN.js → JESWR7QG.js} +1 -1
  77. package/dist/cdn/{QIHCQOKX.js → JZZSQAW2.js} +1 -1
  78. package/dist/cdn/{OHDHHNIY.js → K4WPBHLB.js} +1 -1
  79. package/dist/cdn/KMHTPOUS.js +3 -0
  80. package/dist/cdn/{CWQLKJFC.js → KMPRGO2N.js} +1 -1
  81. package/dist/cdn/KSGWOMMH.js +2 -0
  82. package/dist/cdn/{MZENIHK3.js → LMYZFAFF.js} +1 -1
  83. package/dist/cdn/LTEIJYVA.js +2 -0
  84. package/dist/cdn/{JCLR7GTA.js → LUAKM4MG.js} +1 -1
  85. package/dist/cdn/{UCJK3GTY.js → M3SO3XES.js} +1 -1
  86. package/dist/cdn/{TG7WC3X6.js → MI222VBR.js} +1 -1
  87. package/dist/cdn/{GIBM773H.js → MOFI6L4O.js} +1 -1
  88. package/dist/cdn/{T5A2YHUT.js → MP4O7I6K.js} +1 -1
  89. package/dist/cdn/{O3CBEPSE.js → MRBYVJ5U.js} +1 -1
  90. package/dist/cdn/{4TP652AL.js → MX7NGEWP.js} +1 -1
  91. package/dist/cdn/{YT45OEI2.js → N3KVIOWL.js} +1 -1
  92. package/dist/cdn/{L4P6QUAJ.js → NADAEZJB.js} +1 -1
  93. package/dist/cdn/{7J2JZ2SZ.js → NJWMNFLG.js} +1 -1
  94. package/dist/cdn/{JDAMFTUY.js → OBKENUMK.js} +1 -1
  95. package/dist/cdn/{IJICMS5G.js → OK7S4W2T.js} +1 -1
  96. package/dist/cdn/{FMAT4CW4.js → OM6N42EA.js} +1 -1
  97. package/dist/cdn/{J2UAHEHR.js → OQNW6YMY.js} +1 -1
  98. package/dist/cdn/{XRXXGGKZ.js → PBTWS5ZO.js} +1 -1
  99. package/dist/cdn/PLPEGT56.js +2 -0
  100. package/dist/cdn/{TY7DGFDV.js → PM4BDQTV.js} +1 -1
  101. package/dist/cdn/{SVFZT7GR.js → PMSDTN4F.js} +1 -1
  102. package/dist/cdn/{2RITORYK.js → PP4XRJ4B.js} +1 -1
  103. package/dist/cdn/{AE6R5TA3.js → PZD2JLT5.js} +1 -1
  104. package/dist/cdn/{A2Y4QEYJ.js → QG6R7I4M.js} +1 -1
  105. package/dist/cdn/QHIBDCFD.js +2 -0
  106. package/dist/cdn/{RISMNCOT.js → QPPSIZAB.js} +1 -1
  107. package/dist/cdn/{HNQPE3FT.js → QVKAKMZA.js} +1 -1
  108. package/dist/cdn/{HJ3OTVSP.js → QVQPUYUA.js} +1 -1
  109. package/dist/cdn/{ZBPKNJD3.js → QWJMM65P.js} +1 -1
  110. package/dist/cdn/{X6YUOAIF.js → R2ZIHQ6C.js} +1 -1
  111. package/dist/cdn/{HKAKOHQC.js → RFFRNLP2.js} +1 -1
  112. package/dist/cdn/{RKWOCAIO.js → RLNU7CIG.js} +1 -1
  113. package/dist/cdn/{DRVFBFOW.js → RWZCNZXX.js} +1 -1
  114. package/dist/cdn/{4XLVCJ6P.js → SCFLK46L.js} +1 -1
  115. package/dist/cdn/{4YBNCIDF.js → SYWVHWVX.js} +1 -1
  116. package/dist/cdn/{GZ7R6ON7.js → TFYHLT7G.js} +1 -1
  117. package/dist/cdn/{7OM5OVLK.js → TGSCLA2C.js} +1 -1
  118. package/dist/cdn/{NMZDLL4M.js → TNCVNE6F.js} +1 -1
  119. package/dist/cdn/{23KLANNA.js → TWV3S4Z7.js} +1 -1
  120. package/dist/cdn/{QZFSCUU6.js → U3OC5CUW.js} +1 -1
  121. package/dist/cdn/{IUZTQ4PQ.js → U4CA3PYG.js} +1 -1
  122. package/dist/cdn/{WPHAAGQP.js → UCS4WK2U.js} +1 -1
  123. package/dist/cdn/{ZOCF3BGK.js → UO4R7CWA.js} +1 -1
  124. package/dist/cdn/{AEX2GVOA.js → UOEUBKDF.js} +1 -1
  125. package/dist/cdn/{AZ6KIV47.js → UVO7OQB6.js} +1 -1
  126. package/dist/cdn/{OXM4YQGO.js → UX2LYYGS.js} +1 -1
  127. package/dist/cdn/UXODIEBA.js +2 -0
  128. package/dist/cdn/{R2SRU7YZ.js → V3QXCAYX.js} +1 -1
  129. package/dist/cdn/{IS2PGNSH.js → V4KC76CR.js} +1 -1
  130. package/dist/cdn/{5VOKWJYK.js → VFOUXVUC.js} +1 -1
  131. package/dist/cdn/{NJX4DH3C.js → VHLUJNCP.js} +1 -1
  132. package/dist/cdn/{XJ7YGYPW.js → VY2CZNYM.js} +1 -1
  133. package/dist/cdn/{EAKRGXQC.js → W3ELN5AQ.js} +1 -1
  134. package/dist/cdn/{3D475OQN.js → W3EWLBL6.js} +1 -1
  135. package/dist/cdn/{H5TVMXUR.js → W7CYIQUT.js} +1 -1
  136. package/dist/cdn/{CXQ47WC4.js → WNDNGPC6.js} +1 -1
  137. package/dist/cdn/{AIUHMRPO.js → WP44MHA5.js} +1 -1
  138. package/dist/cdn/{DLDEDYSE.js → WU4OO2CE.js} +1 -1
  139. package/dist/cdn/{RRZZQHHA.js → XCN5IIIA.js} +1 -1
  140. package/dist/cdn/{2VAAAVLC.js → XCSLXGGT.js} +1 -1
  141. package/dist/cdn/{ZBIHLQ6H.js → XIBJIKAX.js} +1 -1
  142. package/dist/cdn/{ATCF2HG3.js → XQW7SSDL.js} +1 -1
  143. package/dist/cdn/XSRRD3ET.js +2 -0
  144. package/dist/cdn/{SMEJ4YAT.js → Y56BNGW6.js} +1 -1
  145. package/dist/cdn/YGFBOUJG.js +2 -0
  146. package/dist/cdn/{E23LKC2A.js → YJJZFGLZ.js} +1 -1
  147. package/dist/cdn/{RTB2XKDJ.js → YM46E2DT.js} +1 -1
  148. package/dist/cdn/{PCBKRI33.js → YMG6MCNY.js} +1 -1
  149. package/dist/cdn/{3FQKWB7C.js → YWIQ2K5S.js} +1 -1
  150. package/dist/cdn/{DJGZ4YG5.js → YXIRQ6K2.js} +1 -1
  151. package/dist/cdn/{PUKUYV7Z.js → Z4AZUIMN.js} +1 -1
  152. package/dist/cdn/{M2MXC4LH.js → Z57TNQ4S.js} +1 -1
  153. package/dist/cdn/{77HK7ZGB.js → Z7TYJCE5.js} +1 -1
  154. package/dist/cdn/{23REZ2B2.js → ZTERN4BN.js} +1 -1
  155. package/dist/cdn/{3F72VWYL.js → ZUMTQ5P7.js} +1 -1
  156. package/dist/cdn/assets/layer-list-new/t9n/messages.en.json +1 -0
  157. package/dist/cdn/index.js +1 -1
  158. package/dist/cdn/main.css +1 -1
  159. package/dist/chunks/action-utils.js +2 -2
  160. package/dist/chunks/component-utils.js +69 -76
  161. package/dist/chunks/feature-utils.js +10 -12
  162. package/dist/chunks/globalCss.js +1 -0
  163. package/dist/chunks/layer-list-item-indicator.js +55 -0
  164. package/dist/chunks/layer-list-utils.js +112 -0
  165. package/dist/chunks/slots.js +1 -1
  166. package/dist/chunks/svgUtils.js +1 -1
  167. package/dist/chunks/univariateUtils.js +1 -1
  168. package/dist/chunks/utils.js +7 -85
  169. package/dist/chunks/utils2.js +84 -45
  170. package/dist/chunks/utils3.js +51 -0
  171. package/dist/components/arcgis-catalog-layer-list/customElement.d.ts +8 -1
  172. package/dist/components/arcgis-catalog-layer-list/customElement.js +2 -2
  173. package/dist/components/arcgis-compass/customElement.d.ts +14 -8
  174. package/dist/components/arcgis-compass/customElement.js +75 -21
  175. package/dist/components/arcgis-directional-pad/customElement.js +37 -44
  176. package/dist/components/arcgis-feature-media/customElement.js +172 -199
  177. package/dist/components/arcgis-feature-relationship/customElement.js +1 -1
  178. package/dist/components/arcgis-features/customElement.js +25 -22
  179. package/dist/components/arcgis-layer-list/customElement.js +15 -15
  180. package/dist/components/arcgis-layer-list-item-indicator/customElement.js +11 -0
  181. package/dist/components/arcgis-layer-list-item-indicator/index.js +2 -0
  182. package/dist/components/arcgis-layer-list-item-panel/customElement.js +74 -0
  183. package/dist/components/arcgis-layer-list-item-panel/index.js +2 -0
  184. package/dist/components/arcgis-layer-list-new/customElement.d.ts +302 -0
  185. package/dist/components/arcgis-layer-list-new/customElement.js +253 -0
  186. package/dist/components/arcgis-layer-list-new/index.d.ts +1 -0
  187. package/dist/components/arcgis-layer-list-new/index.js +10 -0
  188. package/dist/components/arcgis-layer-list-new/layer-list-item/customElement.js +139 -0
  189. package/dist/components/{arcgis-layer-list-item → arcgis-layer-list-new/layer-list-item}/index.js +6 -5
  190. package/dist/components/arcgis-legend-card-color-ramp/customElement.js +1 -1
  191. package/dist/components/arcgis-legend-card-element/customElement.js +1 -1
  192. package/dist/components/arcgis-legend-card-size-ramp/customElement.js +1 -1
  193. package/dist/components/arcgis-legend-classic-color-ramp/customElement.js +1 -1
  194. package/dist/components/arcgis-legend-classic-element/customElement.js +1 -1
  195. package/dist/components/arcgis-legend-classic-size-ramp/customElement.js +1 -1
  196. package/dist/components/arcgis-legend-spike-ramp/customElement.js +1 -1
  197. package/dist/components/arcgis-print-format-select/customElement.js +1 -1
  198. package/dist/components/arcgis-print-main-panel/customElement.js +1 -1
  199. package/dist/components/arcgis-print-template-select/customElement.js +1 -1
  200. package/dist/components/arcgis-print-template-selector/customElement.js +1 -1
  201. package/dist/components/arcgis-table-list/customElement.d.ts +11 -4
  202. package/dist/components/arcgis-table-list/customElement.js +11 -11
  203. package/dist/components/arcgis-utility-network-trace-results/customElement.js +29 -26
  204. package/dist/docs/api.json +1 -1
  205. package/dist/docs/docs.json +1 -1
  206. package/dist/docs/vscode.html-custom-data.json +1 -1
  207. package/dist/docs/web-types.json +1 -1
  208. package/dist/index.d.ts +10 -0
  209. package/dist/loader.js +6 -4
  210. package/dist/types/lumina.d.ts +11 -2
  211. package/dist/types/preact.d.ts +12 -2
  212. package/dist/types/react.d.ts +13 -2
  213. package/dist/types/stencil.d.ts +11 -2
  214. package/dist/utils/action-utils.d.ts +1 -0
  215. package/dist/utils/layer-list-utils.d.ts +12 -0
  216. package/package.json +4 -4
  217. package/dist/cdn/BDQN2SGF.js +0 -2
  218. package/dist/cdn/EHZW6UXL.js +0 -2
  219. package/dist/cdn/J5IZSPU4.js +0 -2
  220. package/dist/cdn/MGOKVOUR.js +0 -2
  221. package/dist/cdn/MSYERWRZ.js +0 -2
  222. package/dist/cdn/O4KTJ2LP.js +0 -2
  223. package/dist/cdn/O5TDDX7K.js +0 -2
  224. package/dist/cdn/ON57EB3S.js +0 -2
  225. package/dist/cdn/PDSZXTW2.js +0 -2
  226. package/dist/cdn/QOL55WND.js +0 -2
  227. package/dist/cdn/SUWCCBWL.js +0 -2
  228. package/dist/cdn/VQLAZAPA.js +0 -2
  229. package/dist/cdn/XCGJZDIU.js +0 -3
  230. package/dist/cdn/YMPJFJHK.js +0 -2
  231. package/dist/cdn/ZCCTN4B7.js +0 -2
  232. package/dist/chunks/layer-list.js +0 -6
  233. package/dist/components/arcgis-layer-list-item/customElement.js +0 -287
  234. /package/dist/cdn/{IHLNIYVE.js → BJQE4ISL.js} +0 -0
  235. /package/dist/cdn/{TZUYWT6D.js → KYU6MBFA.js} +0 -0
@@ -1,35 +1,35 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import { c as O } from "../../chunks/runtime.js";
3
- import { css as B, html as x } from "lit";
4
- import { ref as j } from "lit/directives/ref.js";
5
- import { keyed as W } from "lit/directives/keyed.js";
6
- import { useDirection as q, useMedia as G } from "@arcgis/lumina/controllers";
7
- import { getColorsFromRenderer as K } from "@arcgis/core/renderers/support/utils.js";
8
- import { LitElement as J, nothing as y } from "@arcgis/lumina";
9
- import { substitute as Q } from "@arcgis/core/intl.js";
10
- import { watch as Z } from "@arcgis/core/core/reactiveUtils.js";
11
- import ee from "@arcgis/core/popup/FieldInfo.js";
2
+ import { c as D } from "../../chunks/runtime.js";
3
+ import { css as O, html as _ } from "lit";
4
+ import { ref as B } from "lit/directives/ref.js";
5
+ import { keyed as U } from "lit/directives/keyed.js";
6
+ import { useDirection as j, useMedia as W } from "@arcgis/lumina/controllers";
7
+ import { getColorsFromRenderer as G } from "@arcgis/core/renderers/support/utils.js";
8
+ import { LitElement as q, nothing as y } from "@arcgis/lumina";
9
+ import { substitute as K } from "@arcgis/core/intl.js";
10
+ import { watch as J } from "@arcgis/core/core/reactiveUtils.js";
11
+ import Q from "@arcgis/core/popup/FieldInfo.js";
12
12
  import N from "@arcgis/core/popup/content/support/ChartMediaInfoValueSeries.js";
13
- import { unsafeGetCalciteModeName as te } from "@arcgis/toolkit/dom";
14
- import { renderingSanitizer as V } from "@arcgis/core/applications/Components/sanitizerUtils.js";
15
- import { d as A, s as R, m as z, n as X, o as ie, p as E, i as ae, q as re, j as Y, f as ne } from "../../chunks/feature-utils.js";
16
- const oe = B`.container{display:flex;flex-flow:row wrap;align-items:center;margin-top:var(--calcite-spacing-xs);width:100%;min-height:150px}.container .pagination-button{display:flex;align-items:center;justify-content:center;border:none;background:transparent;cursor:pointer;padding-block:var(--calcite-spacing-xs);padding-inline:var(--calcite-spacing-xs);color:var(--calcite-color-text-3)}.container .pagination-button:hover,.container .pagination-button:focus{background-color:var(--calcite-color-foreground-3);color:var(--calcite-color-text-1);fill:var(--calcite-color-text-1)}.item-title{margin:0;font-size:var(--calcite-font-size-md);line-height:var(--calcite-font-line-height-relative-snug)}.item-caption{padding-block-start:var(--calcite-spacing-xxs);font-size:var(--calcite-font-size-sm);line-height:var(--calcite-font-line-height-relative-snug)}.item{display:flex;align-items:flex-start;justify-content:center;margin-block:var(--calcite-spacing-xs);width:100%;height:auto}.item-navigation{display:flex;flex:0 1 100%;align-items:flex-start;justify-content:space-between;margin-block-end:var(--calcite-spacing-xs)}.item-text{margin-inline-end:var(--calcite-spacing-xs)}.pagination{display:flex;flex:0 0 auto;align-items:center;overflow:hidden}.pagination:only-child{margin-inline-start:auto}.pagination-text{padding-inline:var(--calcite-spacing-xxs);color:var(--calcite-color-text-3);font-size:var(--calcite-font-size-sm);line-height:var(--calcite-font-line-height-relative-normal)}.item-container{flex:0 1 auto;width:100%}.item-container img{max-width:100%}.item-container img[src$=".SVG"],.item-container img[src$=".svg"]{width:100%}.chart{width:100%;height:155px}`;
13
+ import { unsafeGetCalciteModeName as Z } from "@arcgis/toolkit/dom";
14
+ import { renderingSanitizer as z } from "@arcgis/core/applications/Components/sanitizerUtils.js";
15
+ import { d as A, s as R, m as ee, n as V, i as te, o as ie, j as X, f as ae } from "../../chunks/feature-utils.js";
16
+ const re = O`.container{display:flex;flex-flow:row wrap;align-items:center;margin-top:var(--calcite-spacing-xs);width:100%;min-height:150px}.container .pagination-button{display:flex;align-items:center;justify-content:center;border:none;background:transparent;cursor:pointer;padding-block:var(--calcite-spacing-xs);padding-inline:var(--calcite-spacing-xs);color:var(--calcite-color-text-3)}.container .pagination-button:hover,.container .pagination-button:focus{background-color:var(--calcite-color-foreground-3);color:var(--calcite-color-text-1);fill:var(--calcite-color-text-1)}.item-title{margin:0;font-size:var(--calcite-font-size-md);line-height:var(--calcite-font-line-height-relative-snug)}.item-caption{padding-block-start:var(--calcite-spacing-xxs);font-size:var(--calcite-font-size-sm);line-height:var(--calcite-font-line-height-relative-snug)}.item{display:flex;align-items:flex-start;justify-content:center;margin-block:var(--calcite-spacing-xs);width:100%;height:auto}.item-navigation{display:flex;flex:0 1 100%;align-items:flex-start;justify-content:space-between;margin-block-end:var(--calcite-spacing-xs)}.item-text{margin-inline-end:var(--calcite-spacing-xs)}.pagination{display:flex;flex:0 0 auto;align-items:center;overflow:hidden}.pagination:only-child{margin-inline-start:auto}.pagination-text{padding-inline:var(--calcite-spacing-xxs);color:var(--calcite-color-text-3);font-size:var(--calcite-font-size-sm);line-height:var(--calcite-font-line-height-relative-normal)}.item-container{flex:0 1 auto;width:100%}.item-container img{max-width:100%}.item-container img[src$=".SVG"],.item-container img[src$=".svg"]{width:100%}.chart{width:100%;height:155px}`;
17
17
  function $(S) {
18
18
  if (!A(S))
19
19
  return null;
20
20
  const [e, t] = S.split("/").slice(1);
21
21
  return { layerId: e, fieldName: t };
22
22
  }
23
- const k = 15, M = "category", w = "value", se = "rgba(50, 50, 50, 1)", le = 250, ce = 500, de = 200;
24
- class ue extends J {
23
+ const k = 15, M = "category", w = "value", ne = "rgba(50, 50, 50, 1)", oe = 250, se = 500, le = 200;
24
+ class ce extends q {
25
25
  constructor() {
26
- super(...arguments), this._direction = q(), this._prefersReducedMotion = G("(prefers-reduced-motion)"), this.activeMediaInfoIndex = 0, this.chartAnimationDisabled = !1, this.headingLevel = 2;
26
+ super(...arguments), this._direction = j(), this._prefersReducedMotion = W("(prefers-reduced-motion)"), this.activeMediaInfoIndex = 0, this.chartAnimationDisabled = !1, this.headingLevel = 2;
27
27
  }
28
28
  static {
29
29
  this.properties = { _refreshIntervalInfo: 16, messages: 0, values: 0, activeMediaInfoIndex: 9, chartAnimationDisabled: 5, activeMediaInfo: 32, formattedMediaInfos: 32, description: 1, fieldInfoMap: 0, layer: 0, mediaInfos: 0, popupTemplate: 0, relatedInfos: 0, formattedValues: 0, heading: 1, graphic: 0, formattedMediaInfoCount: 32, headingLevel: 9 };
30
30
  }
31
31
  static {
32
- this.styles = oe;
32
+ this.styles = re;
33
33
  }
34
34
  get activeMediaInfo() {
35
35
  return this.formattedMediaInfos[this.activeMediaInfoIndex] || null;
@@ -51,7 +51,7 @@ class ue extends J {
51
51
  }
52
52
  loaded() {
53
53
  this.manager.onLifecycle(() => [
54
- Z(() => [this.activeMediaInfo, this.activeMediaInfoIndex], () => this._setupMediaRefreshTimer(), { initial: !0 }),
54
+ J(() => [this.activeMediaInfo, this.activeMediaInfoIndex], () => this._setupMediaRefreshTimer(), { initial: !0 }),
55
55
  { remove: () => this._clearMediaRefreshTimer() }
56
56
  ]);
57
57
  }
@@ -64,153 +64,126 @@ class ue extends J {
64
64
  this._setContentElementMedia(i);
65
65
  }
66
66
  _formatMediaInfos() {
67
- const { mediaInfos: e, layer: t } = this, i = this.values ?? {}, a = this.formattedValues ?? {}, r = this.fieldInfoMap ?? /* @__PURE__ */ new Map();
67
+ const { mediaInfos: e, layer: t } = this, i = this.values ?? {}, r = this.formattedValues ?? {}, a = this.fieldInfoMap ?? /* @__PURE__ */ new Map();
68
68
  return e?.map((o) => {
69
69
  const n = o?.clone();
70
70
  if (!n)
71
71
  return null;
72
72
  if (n.title = R({
73
73
  values: i,
74
- fieldInfoMap: r,
75
- globalValues: a,
74
+ fieldInfoMap: a,
75
+ globalValues: r,
76
76
  layer: t,
77
77
  text: n.title
78
78
  }), n.caption = R({
79
79
  values: i,
80
- fieldInfoMap: r,
81
- globalValues: a,
80
+ fieldInfoMap: a,
81
+ globalValues: r,
82
82
  layer: t,
83
83
  text: n.caption
84
84
  }), n.altText = R({
85
85
  values: i,
86
- fieldInfoMap: r,
87
- globalValues: a,
86
+ fieldInfoMap: a,
87
+ globalValues: r,
88
88
  layer: t,
89
89
  text: n.altText
90
- }), n.type === "image") {
91
- if (!n.value)
92
- return null;
93
- const s = n.value;
94
- return this._setImageValue({
95
- value: s,
96
- formattedValues: a,
97
- layer: t
98
- }), s.sourceURL ? n : void 0;
99
- }
90
+ }), n.type === "image")
91
+ return n.value?.sourceURL ? n : null;
100
92
  if (n.type === "pie-chart" || n.type === "line-chart" || n.type === "column-chart" || n.type === "bar-chart") {
101
93
  if (!n.value)
102
94
  return null;
103
- const s = n.value;
95
+ const c = n.value;
104
96
  return this._setChartValue({
105
- value: s,
97
+ value: c,
106
98
  chartType: n.type,
107
99
  values: i,
108
- formattedValues: a,
100
+ formattedValues: r,
109
101
  layer: t
110
102
  }), n;
111
103
  }
112
104
  return null;
113
105
  }).filter((o) => o != null) ?? [];
114
106
  }
115
- _setImageValue(e) {
116
- const t = this.fieldInfoMap ?? /* @__PURE__ */ new Map(), { value: i, formattedValues: a, layer: r } = e, { linkURL: o, sourceURL: n } = i;
117
- if (n) {
118
- const s = z(n, r);
119
- i.sourceURL = X({
120
- formattedValues: a,
121
- template: s,
122
- fieldInfoMap: t
123
- });
124
- }
125
- if (o) {
126
- const s = z(o, r);
127
- i.linkURL = X({
128
- formattedValues: a,
129
- template: s,
130
- fieldInfoMap: t
131
- });
132
- }
133
- }
134
107
  _setChartValue(e) {
135
- const { value: t, values: i, formattedValues: a, chartType: r, layer: o } = e, { popupTemplate: n, relatedInfos: s } = this, { fields: c, normalizeField: v } = t, d = o;
136
- if (t.fields = ie(c, d), v && (t.normalizeField = E(v, d)), !c.some((u) => !!(a[u] != null || A(u) && s?.size)))
108
+ const { value: t, values: i, formattedValues: r, chartType: a, layer: o } = e, { popupTemplate: n, relatedInfos: c } = this, { fields: l, normalizeField: v } = t, d = o;
109
+ if (t.fields = ee(l, d), v && (t.normalizeField = V(v, d)), !l.some((u) => !!(r[u] != null || A(u) && c?.size)))
137
110
  return;
138
111
  const h = n?.fieldInfos ?? [];
139
- t.series = [], c.forEach((u, f) => {
140
- const m = t.colors?.[f];
112
+ t.series = [], l.forEach((u, m) => {
113
+ const f = t.colors?.[m];
141
114
  if (A(u)) {
142
115
  t.series = [
143
116
  ...t.series,
144
- ...this._getRelatedChartInfos({ fieldInfos: h, fieldName: u, formattedValues: a, chartType: r, value: t, color: m })
117
+ ...this._getRelatedChartInfos({ fieldInfos: h, fieldName: u, formattedValues: r, chartType: a, value: t, color: f })
145
118
  ];
146
119
  return;
147
120
  }
148
121
  const p = this._getChartOption({
149
122
  value: t,
150
123
  values: i,
151
- chartType: r,
152
- formattedValues: a,
124
+ chartType: a,
125
+ formattedValues: r,
153
126
  fieldName: u,
154
127
  fieldInfos: h,
155
- color: m
128
+ color: f
156
129
  });
157
130
  t.series.push(p);
158
131
  });
159
132
  }
160
133
  _getRelatedChartInfos(e) {
161
- const { fieldInfos: t, fieldName: i, formattedValues: a, chartType: r, value: o, color: n } = e, s = [], c = $(i), v = c && this.relatedInfos?.get(c.layerId);
134
+ const { fieldInfos: t, fieldName: i, formattedValues: r, chartType: a, value: o, color: n } = e, c = [], l = $(i), v = l && this.relatedInfos?.get(l.layerId);
162
135
  if (!v)
163
- return s;
164
- const { relatedFeatures: d, relation: l } = v;
165
- if (!l || !d)
166
- return s;
167
- const { cardinality: h } = l;
168
- return d.forEach((f) => {
169
- const m = f.attributes;
170
- m && Object.keys(m).forEach((p) => {
171
- p === c.fieldName && s.push(this._getChartOption({
136
+ return c;
137
+ const { relatedFeatures: d, relation: s } = v;
138
+ if (!s || !d)
139
+ return c;
140
+ const { cardinality: h } = s;
141
+ return d.forEach((m) => {
142
+ const f = m.attributes;
143
+ f && Object.keys(f).forEach((p) => {
144
+ p === l.fieldName && c.push(this._getChartOption({
172
145
  value: o,
173
- values: m,
174
- formattedValues: a,
146
+ values: f,
147
+ formattedValues: r,
175
148
  fieldName: i,
176
- chartType: r,
149
+ chartType: a,
177
150
  relatedFieldName: p,
178
151
  hasMultipleRelatedFeatures: d?.length > 1,
179
152
  fieldInfos: t,
180
153
  color: n
181
154
  }));
182
155
  });
183
- }), h && (h === "one-to-many" || h === "many-to-many") ? s : [s[0]];
156
+ }), h && (h === "one-to-many" || h === "many-to-many") ? c : [c[0]];
184
157
  }
185
158
  _getTooltip({ label: e, value: t, chartType: i }) {
186
159
  return i === "pie-chart" ? `${e}` : `${e}: ${t}`;
187
160
  }
188
161
  _getChartOption(e) {
189
- const { value: t, values: i, formattedValues: a, fieldName: r, relatedFieldName: o, fieldInfos: n, chartType: s, hasMultipleRelatedFeatures: c, color: v } = e, { layer: d, graphic: l } = this, h = this.fieldInfoMap ?? /* @__PURE__ */ new Map(), { normalizeField: u, tooltipField: f } = t, m = u ? A(u) ? i[$(u).fieldName] : i[u] : null, p = ae(r) && a?.[r] !== void 0 ? a[r] : o && i[o] !== void 0 ? i[o] : i[r] !== void 0 ? i[r] : a[r], I = p === void 0 ? null : p && m && typeof p == "number" && typeof m == "number" ? p / m : p, _ = re(n, r), g = E(r, d), C = (f && a[f] !== void 0 ? a[f] : Y({
190
- fieldInfo: _ || new ee({ fieldName: g }),
162
+ const { value: t, values: i, formattedValues: r, fieldName: a, relatedFieldName: o, fieldInfos: n, chartType: c, hasMultipleRelatedFeatures: l, color: v } = e, { layer: d, graphic: s } = this, h = this.fieldInfoMap ?? /* @__PURE__ */ new Map(), { normalizeField: u, tooltipField: m } = t, f = u ? A(u) ? i[$(u).fieldName] : i[u] : null, p = te(a) && r?.[a] !== void 0 ? r[a] : o && i[o] !== void 0 ? i[o] : i[a] !== void 0 ? i[a] : r[a], x = p === void 0 ? null : p && f && typeof p == "number" && typeof f == "number" ? p / f : p, I = ie(n, a), g = V(a, d), C = (m && r[m] !== void 0 ? r[m] : X({
163
+ fieldInfo: I || new Q({ fieldName: g }),
191
164
  expressionInfos: this.popupTemplate?.expressionInfos,
192
- graphic: l,
165
+ graphic: s,
193
166
  layer: d
194
- })) ?? "", b = a[g] ?? "", L = I != null ? typeof I == "number" ? I : Number(I) : null;
195
- if (A(r)) {
196
- const T = h.get(r.toLowerCase()), P = f ? h.get(f.toLowerCase()) : null, U = T?.fieldName ?? r, F = c && f ? $(f).fieldName : P?.fieldName ?? f, H = (c && F ? i[F] : a[F] ?? (T && Y({ fieldInfo: T, layer: d, graphic: l })) ?? T?.fieldName ?? o) ?? "", D = (c && o ? i[o] : a[U]) ?? "";
167
+ })) ?? "", b = r[g] ?? "", L = x != null ? typeof x == "number" ? x : Number(x) : null;
168
+ if (A(a)) {
169
+ const T = h.get(a.toLowerCase()), E = m ? h.get(m.toLowerCase()) : null, Y = T?.fieldName ?? a, F = l && m ? $(m).fieldName : E?.fieldName ?? m, P = (l && F ? i[F] : r[F] ?? (T && X({ fieldInfo: T, layer: d, graphic: s })) ?? T?.fieldName ?? o) ?? "", H = (l && o ? i[o] : r[Y]) ?? "";
197
170
  return new N({
198
- fieldName: r,
171
+ fieldName: a,
199
172
  tooltip: this._getTooltip({
200
- label: H,
201
- value: D,
202
- chartType: s
173
+ label: P,
174
+ value: H,
175
+ chartType: c
203
176
  }),
204
177
  color: v,
205
178
  value: L
206
179
  });
207
180
  }
208
181
  return new N({
209
- fieldName: r,
182
+ fieldName: a,
210
183
  tooltip: this._getTooltip({
211
184
  label: C,
212
185
  value: b,
213
- chartType: s
186
+ chartType: c
214
187
  }),
215
188
  color: v,
216
189
  value: L
@@ -222,28 +195,28 @@ class ue extends J {
222
195
  }
223
196
  async _getSeriesColors(e) {
224
197
  const { color: t } = await import("@amcharts/amcharts5/index.js"), i = /* @__PURE__ */ new Map();
225
- return e.forEach((a) => {
226
- a.color && i.set(a, t(a.color.toCss(!0)));
198
+ return e.forEach((r) => {
199
+ r.color && i.set(r, t(r.color.toCss(!0)));
227
200
  }), i;
228
201
  }
229
202
  async _getRendererColors() {
230
- const { color: e } = await import("@amcharts/amcharts5/index.js"), t = /* @__PURE__ */ new Map(), i = this._getRenderer(), a = "default";
203
+ const { color: e } = await import("@amcharts/amcharts5/index.js"), t = /* @__PURE__ */ new Map(), i = this._getRenderer(), r = "default";
231
204
  if (!i)
232
205
  return t;
233
- const r = await K(i);
234
- return r.delete(a), Array.from(r.values()).every((n) => n?.length === 1) && Array.from(r.keys()).forEach((n) => {
235
- const s = r.get(n)?.[0]?.toCss(!0);
236
- s && t.set(n, e(s));
206
+ const a = await G(i);
207
+ return a.delete(r), Array.from(a.values()).every((n) => n?.length === 1) && Array.from(a.keys()).forEach((n) => {
208
+ const c = a.get(n)?.[0]?.toCss(!0);
209
+ c && t.set(n, e(c));
237
210
  }), t;
238
211
  }
239
212
  async _createChart(e) {
240
213
  const { activeMediaInfo: t } = this;
241
214
  if (!e || !t)
242
215
  return;
243
- const { createRoot: i } = await import("../../chunks/chart-utils.js"), a = await i(e);
244
- this._chartRoot = a, this._renderChart({
216
+ const { createRoot: i } = await import("../../chunks/chart-utils.js"), r = await i(e);
217
+ this._chartRoot = r, this._renderChart({
245
218
  mediaInfo: t,
246
- root: a
219
+ root: r
247
220
  });
248
221
  }
249
222
  _handleMediaKeyup(e) {
@@ -254,48 +227,48 @@ class ue extends J {
254
227
  return !this.chartAnimationDisabled && !this._prefersReducedMotion;
255
228
  }
256
229
  _getChartAnimationMS() {
257
- return this._canAnimateChart() ? le : 0;
230
+ return this._canAnimateChart() ? oe : 0;
258
231
  }
259
232
  _getChartSeriesAnimationMS() {
260
- return this._canAnimateChart() ? ce : 0;
233
+ return this._canAnimateChart() ? se : 0;
261
234
  }
262
235
  async _customizeChartTooltip(e, t = "horizontal") {
263
236
  const { color: i } = await import("@amcharts/amcharts5/index.js");
264
237
  e.setAll({
265
238
  pointerOrientation: t
266
239
  }), e.get("background")?.setAll({
267
- stroke: i(se)
240
+ stroke: i(ne)
268
241
  }), e.label.setAll({
269
242
  direction: this._direction,
270
243
  oversizedBehavior: "wrap",
271
- maxWidth: de
244
+ maxWidth: le
272
245
  });
273
246
  }
274
247
  async _createPieChart(e, t) {
275
- const [{ Tooltip: i }, { PieChart: a, PieSeries: r }] = await Promise.all([
248
+ const [{ Tooltip: i }, { PieChart: r, PieSeries: a }] = await Promise.all([
276
249
  import("@amcharts/amcharts5/index.js"),
277
250
  import("@amcharts/amcharts5/percent.js")
278
- ]), { mediaInfo: o, root: n } = e, { title: s } = o, c = 5, v = o?.altText || o?.title || "", d = n.container.children.push(a.new(n, {
251
+ ]), { mediaInfo: o, root: n } = e, { title: c } = o, l = 5, v = o?.altText || o?.title || "", d = n.container.children.push(r.new(n, {
279
252
  role: "figure",
280
253
  ariaLabel: v,
281
254
  focusable: !0,
282
- paddingBottom: c,
283
- paddingTop: c,
284
- paddingLeft: c,
285
- paddingRight: c
286
- })), l = `{category}: {valuePercentTotal.formatNumber('0.00')}%
255
+ paddingBottom: l,
256
+ paddingTop: l,
257
+ paddingLeft: l,
258
+ paddingRight: l
259
+ })), s = `{category}: {valuePercentTotal.formatNumber('0.00')}%
287
260
  ({value})`, h = i.new(n, {
288
- labelText: l
289
- }), u = d.series.push(r.new(n, {
290
- name: s,
261
+ labelText: s
262
+ }), u = d.series.push(a.new(n, {
263
+ name: c,
291
264
  valueField: w,
292
265
  categoryField: M,
293
266
  tooltip: h
294
267
  }));
295
268
  u.ticks.template.set("forceHidden", !0), u.labels.template.set("forceHidden", !0), u.slices.template.states.create("active", {
296
- shiftRadius: c
269
+ shiftRadius: l
297
270
  }), this._customizeChartTooltip(h), u.slices.template.setAll({
298
- ariaLabel: l,
271
+ ariaLabel: s,
299
272
  focusable: !0,
300
273
  templateField: "columnSettings"
301
274
  }), u.data.setAll(t), u.appear(this._getChartSeriesAnimationMS()), d.appear(this._getChartAnimationMS()), d.root.dom.classList.toggle("chart-rendered", !0);
@@ -305,120 +278,120 @@ class ue extends J {
305
278
  return e.forEach((i) => t = Math.min(i.value, t)), t;
306
279
  }
307
280
  async _createColumnChart(e, t, i) {
308
- const [{ Tooltip: a, Scrollbar: r }, { CategoryAxis: o, AxisRendererX: n, AxisRendererY: s, ValueAxis: c, ColumnSeries: v }] = await Promise.all([import("@amcharts/amcharts5/index.js"), import("@amcharts/amcharts5/xy.js")]), { mediaInfo: d, root: l } = t, { value: h, title: u } = d, { _direction: f } = this;
281
+ const [{ Tooltip: r, Scrollbar: a }, { CategoryAxis: o, AxisRendererX: n, AxisRendererY: c, ValueAxis: l, ColumnSeries: v }] = await Promise.all([import("@amcharts/amcharts5/index.js"), import("@amcharts/amcharts5/xy.js")]), { mediaInfo: d, root: s } = t, { value: h, title: u } = d, { _direction: m } = this;
309
282
  e.setAll({
310
283
  wheelX: "panX",
311
284
  wheelY: "zoomX"
312
285
  });
313
- const m = e.xAxes.push(o.new(l, {
314
- renderer: n.new(l, {
315
- inversed: f === "rtl"
286
+ const f = e.xAxes.push(o.new(s, {
287
+ renderer: n.new(s, {
288
+ inversed: m === "rtl"
316
289
  }),
317
290
  categoryField: M
318
291
  }));
319
- m.get("renderer").labels.template.setAll({
292
+ f.get("renderer").labels.template.setAll({
320
293
  forceHidden: !0
321
294
  });
322
- const p = e.yAxes.push(c.new(l, {
323
- renderer: s.new(l, { inside: !1 }),
295
+ const p = e.yAxes.push(l.new(s, {
296
+ renderer: c.new(s, { inside: !1 }),
324
297
  min: this._getMinSeriesValue(h.series)
325
298
  }));
326
299
  p.get("renderer").labels.template.setAll({
327
- direction: f
300
+ direction: m
328
301
  });
329
- const I = "{categoryX}", _ = a.new(l, {
330
- labelText: I
331
- }), g = e.series.push(v.new(l, {
302
+ const x = "{categoryX}", I = r.new(s, {
303
+ labelText: x
304
+ }), g = e.series.push(v.new(s, {
332
305
  name: u,
333
- xAxis: m,
306
+ xAxis: f,
334
307
  yAxis: p,
335
308
  valueYField: w,
336
309
  categoryXField: M,
337
- tooltip: _
310
+ tooltip: I
338
311
  }));
339
- this._customizeChartTooltip(_), g.columns.template.setAll({
340
- ariaLabel: I,
312
+ this._customizeChartTooltip(I), g.columns.template.setAll({
313
+ ariaLabel: x,
341
314
  focusable: !0,
342
315
  templateField: "columnSettings"
343
- }), h.series.length > k && e.set("scrollbarX", r.new(l, {
316
+ }), h.series.length > k && e.set("scrollbarX", a.new(s, {
344
317
  orientation: "horizontal"
345
- })), m.data.setAll(i), g.data.setAll(i), g.appear(this._getChartSeriesAnimationMS()), e.appear(this._getChartAnimationMS());
318
+ })), f.data.setAll(i), g.data.setAll(i), g.appear(this._getChartSeriesAnimationMS()), e.appear(this._getChartAnimationMS());
346
319
  }
347
320
  async _createBarChart(e, t, i) {
348
- const [{ Tooltip: a, Scrollbar: r }, { CategoryAxis: o, AxisRendererX: n, AxisRendererY: s, ValueAxis: c, ColumnSeries: v }] = await Promise.all([import("@amcharts/amcharts5/index.js"), import("@amcharts/amcharts5/xy.js")]), { mediaInfo: d, root: l } = t, { value: h, title: u } = d, { _direction: f } = this;
321
+ const [{ Tooltip: r, Scrollbar: a }, { CategoryAxis: o, AxisRendererX: n, AxisRendererY: c, ValueAxis: l, ColumnSeries: v }] = await Promise.all([import("@amcharts/amcharts5/index.js"), import("@amcharts/amcharts5/xy.js")]), { mediaInfo: d, root: s } = t, { value: h, title: u } = d, { _direction: m } = this;
349
322
  e.setAll({
350
323
  wheelX: "panY",
351
324
  wheelY: "zoomY"
352
325
  });
353
- const m = e.yAxes.push(o.new(l, {
354
- renderer: s.new(l, {
326
+ const f = e.yAxes.push(o.new(s, {
327
+ renderer: c.new(s, {
355
328
  inversed: !0
356
329
  }),
357
330
  categoryField: M
358
331
  }));
359
- m.get("renderer").labels.template.setAll({
332
+ f.get("renderer").labels.template.setAll({
360
333
  forceHidden: !0
361
334
  });
362
- const p = e.xAxes.push(c.new(l, {
363
- renderer: n.new(l, {
335
+ const p = e.xAxes.push(l.new(s, {
336
+ renderer: n.new(s, {
364
337
  inside: !1,
365
- inversed: f === "rtl"
338
+ inversed: m === "rtl"
366
339
  }),
367
340
  min: this._getMinSeriesValue(h.series)
368
341
  }));
369
342
  p.get("renderer").labels.template.setAll({
370
- direction: f
343
+ direction: m
371
344
  });
372
- const I = "{categoryY}", _ = a.new(l, {
373
- labelText: I
374
- }), g = e.series.push(v.new(l, {
345
+ const x = "{categoryY}", I = r.new(s, {
346
+ labelText: x
347
+ }), g = e.series.push(v.new(s, {
375
348
  name: u,
376
349
  xAxis: p,
377
- yAxis: m,
350
+ yAxis: f,
378
351
  valueXField: w,
379
352
  categoryYField: M,
380
- tooltip: _
353
+ tooltip: I
381
354
  }));
382
- this._customizeChartTooltip(_, "vertical"), g.columns.template.setAll({
383
- ariaLabel: I,
355
+ this._customizeChartTooltip(I, "vertical"), g.columns.template.setAll({
356
+ ariaLabel: x,
384
357
  focusable: !0,
385
358
  templateField: "columnSettings"
386
- }), h.series.length > k && e.set("scrollbarY", r.new(l, {
359
+ }), h.series.length > k && e.set("scrollbarY", a.new(s, {
387
360
  orientation: "vertical"
388
- })), m.data.setAll(i), g.data.setAll(i), g.appear(this._getChartSeriesAnimationMS()), e.appear(this._getChartAnimationMS());
361
+ })), f.data.setAll(i), g.data.setAll(i), g.appear(this._getChartSeriesAnimationMS()), e.appear(this._getChartAnimationMS());
389
362
  }
390
363
  async _createLineChart(e, t, i) {
391
- const [{ Tooltip: a, Scrollbar: r }, { CategoryAxis: o, AxisRendererX: n, AxisRendererY: s, ValueAxis: c, LineSeries: v }] = await Promise.all([import("@amcharts/amcharts5/index.js"), import("@amcharts/amcharts5/xy.js")]), { root: d, mediaInfo: l } = t, { value: h, title: u } = l, { _direction: f } = this;
364
+ const [{ Tooltip: r, Scrollbar: a }, { CategoryAxis: o, AxisRendererX: n, AxisRendererY: c, ValueAxis: l, LineSeries: v }] = await Promise.all([import("@amcharts/amcharts5/index.js"), import("@amcharts/amcharts5/xy.js")]), { root: d, mediaInfo: s } = t, { value: h, title: u } = s, { _direction: m } = this;
392
365
  e.setAll({
393
366
  wheelX: "panX",
394
367
  wheelY: "zoomX"
395
368
  });
396
- const m = e.xAxes.push(o.new(d, {
369
+ const f = e.xAxes.push(o.new(d, {
397
370
  renderer: n.new(d, {
398
- inversed: f === "rtl"
371
+ inversed: m === "rtl"
399
372
  }),
400
373
  categoryField: M
401
374
  }));
402
- m.get("renderer").labels.template.setAll({
375
+ f.get("renderer").labels.template.setAll({
403
376
  forceHidden: !0
404
377
  });
405
- const p = e.yAxes.push(c.new(d, {
406
- renderer: s.new(d, { inside: !1 }),
378
+ const p = e.yAxes.push(l.new(d, {
379
+ renderer: c.new(d, { inside: !1 }),
407
380
  min: this._getMinSeriesValue(h.series)
408
381
  }));
409
382
  p.get("renderer").labels.template.setAll({
410
- direction: f
383
+ direction: m
411
384
  });
412
- const I = "{categoryX}", _ = i[0]?.lineSettings?.stroke, g = a.new(d, {
413
- getFillFromSprite: !_,
414
- labelText: I
385
+ const x = "{categoryX}", I = i[0]?.lineSettings?.stroke, g = r.new(d, {
386
+ getFillFromSprite: !I,
387
+ labelText: x
415
388
  });
416
- _ && g.get("background")?.setAll({
417
- fill: _
389
+ I && g.get("background")?.setAll({
390
+ fill: I
418
391
  });
419
392
  const C = e.series.push(v.new(d, {
420
393
  name: u,
421
- xAxis: m,
394
+ xAxis: f,
422
395
  yAxis: p,
423
396
  valueYField: w,
424
397
  categoryXField: M,
@@ -426,19 +399,19 @@ class ue extends J {
426
399
  }));
427
400
  C.strokes.template.setAll({
428
401
  templateField: "lineSettings"
429
- }), this._customizeChartTooltip(g, "vertical"), h.series.length > k && e.set("scrollbarX", r.new(d, {
402
+ }), this._customizeChartTooltip(g, "vertical"), h.series.length > k && e.set("scrollbarX", a.new(d, {
430
403
  orientation: "horizontal"
431
- })), m.data.setAll(i), C.data.setAll(i), C.appear(this._getChartSeriesAnimationMS()), e.appear(this._getChartAnimationMS());
404
+ })), f.data.setAll(i), C.data.setAll(i), C.appear(this._getChartSeriesAnimationMS()), e.appear(this._getChartAnimationMS());
432
405
  }
433
406
  async _createXYChart(e, t) {
434
- const { XYChart: i, XYCursor: a } = await import("@amcharts/amcharts5/xy.js"), { root: r, mediaInfo: o } = e, { type: n } = o, s = o?.altText || o?.title || "", c = r.container.children.push(i.new(r, {
407
+ const { XYChart: i, XYCursor: r } = await import("@amcharts/amcharts5/xy.js"), { root: a, mediaInfo: o } = e, { type: n } = o, c = o?.altText || o?.title || "", l = a.container.children.push(i.new(a, {
435
408
  role: "figure",
436
- ariaLabel: s,
409
+ ariaLabel: c,
437
410
  focusable: !0,
438
411
  panX: !0,
439
412
  panY: !0
440
413
  }));
441
- c.set("cursor", a.new(r, {})), n === "column-chart" && await this._createColumnChart(c, e, t), n === "bar-chart" && await this._createBarChart(c, e, t), n === "line-chart" && await this._createLineChart(c, e, t), c.root.dom.classList.toggle("chart-rendered", !0);
414
+ l.set("cursor", r.new(a, {})), n === "column-chart" && await this._createColumnChart(l, e, t), n === "bar-chart" && await this._createBarChart(l, e, t), n === "line-chart" && await this._createLineChart(l, e, t), l.root.dom.classList.toggle("chart-rendered", !0);
442
415
  }
443
416
  _clearMediaRefreshTimer() {
444
417
  const { _refreshTimer: e } = this;
@@ -457,26 +430,26 @@ class ue extends J {
457
430
  e?.type === "image" && e.refreshInterval > 0 && this._setRefreshTimeout(e);
458
431
  }
459
432
  _setRefreshTimeout(e) {
460
- const { refreshInterval: t, value: i } = e, a = t * 6e4;
433
+ const { refreshInterval: t, value: i } = e, r = t * 6e4;
461
434
  this._updateMediaInfoTimestamp(i.sourceURL);
462
- const r = window.setInterval(() => {
435
+ const a = window.setInterval(() => {
463
436
  this._updateMediaInfoTimestamp(i.sourceURL);
464
- }, a);
465
- this._refreshTimer = r;
437
+ }, r);
438
+ this._refreshTimer = a;
466
439
  }
467
440
  _getImageSource(e, t) {
468
- const i = e.includes("?") ? "&" : "?", [a, r = ""] = e.split("#");
469
- return `${a}${i}timestamp=${t}${r ? "#" : ""}${r}`;
441
+ const i = e.includes("?") ? "&" : "?", [r, a = ""] = e.split("#");
442
+ return `${r}${i}timestamp=${t}${a ? "#" : ""}${a}`;
470
443
  }
471
444
  _updateChartElement(e) {
472
445
  this._chartRoot?.dispose(), this._chartRoot = void 0, e && this._createChart(e);
473
446
  }
474
447
  render() {
475
- return x`<div class="root" @keyup=${this._handleMediaKeyup}><arcgis-feature-element-info .heading=${this.heading} .description=${this.description} .headingLevel=${this.headingLevel}></arcgis-feature-element-info>${this._renderMedia()}</div>`;
448
+ return _`<div class="root" @keyup=${this._handleMediaKeyup}><arcgis-feature-element-info .heading=${this.heading} .description=${this.description} .headingLevel=${this.headingLevel}></arcgis-feature-element-info>${this._renderMedia()}</div>`;
476
449
  }
477
450
  _renderMedia() {
478
451
  const { formattedMediaInfoCount: e, activeMediaInfoIndex: t } = this, i = this._renderMediaText();
479
- return e ? x`<div class="container">${this._renderMediaInfo()}<div class="item-navigation">${i}${e > 1 ? x`<div class="pagination">${this._renderMediaPageButton("previous")}<span class="pagination-text">${Q(this.messages?.pageText ?? "", {
452
+ return e ? _`<div class="container">${this._renderMediaInfo()}<div class="item-navigation">${i}${e > 1 ? _`<div class="pagination">${this._renderMediaPageButton("previous")}<span class="pagination-text">${K(this.messages?.pageText ?? "", {
480
453
  index: t + 1,
481
454
  total: e
482
455
  })}</span>${this._renderMediaPageButton("next")}</div>` : null}</div></div>` : null;
@@ -485,18 +458,18 @@ class ue extends J {
485
458
  const { activeMediaInfo: e } = this;
486
459
  if (!e)
487
460
  return null;
488
- const t = e?.title ? x`<div class="item-title" .innerHTML=${V.sanitize(e.title) ?? ""}></div>` : null, i = e?.caption ? x`<div class="item-caption" .innerHTML=${V.sanitize(e.caption) ?? ""}></div>` : null;
489
- return t || i ? x`<div class="item-text">${t}${i}</div>` : null;
461
+ const t = e?.title ? _`<div class="item-title" .innerHTML=${z.sanitize(e.title) ?? ""}></div>` : null, i = e?.caption ? _`<div class="item-caption" .innerHTML=${z.sanitize(e.caption) ?? ""}></div>` : null;
462
+ return t || i ? _`<div class="item-text">${t}${i}</div>` : null;
490
463
  }
491
464
  _renderImageMediaInfo(e) {
492
465
  if (!e.value)
493
466
  return null;
494
- const { _refreshIntervalInfo: t } = this, { value: i, refreshInterval: a, altText: r, title: o } = e, { sourceURL: n, linkURL: s } = i, v = ne(s ?? void 0) ? "_blank" : "_self", d = v === "_blank" ? "noreferrer" : "", l = a ? t : null, h = l ? l.sourceURL : n, u = x`<img alt=${(r || o) ?? y} src=${h ?? void 0 ?? y}>`;
495
- return (s ? x`<a href=${s ?? y} rel=${d ?? y} target=${v ?? y} title=${o ?? y}>${u}</a>` : null) ?? u;
467
+ const { _refreshIntervalInfo: t } = this, { value: i, refreshInterval: r, altText: a, title: o } = e, { sourceURL: n, linkURL: c } = i, v = ae(c ?? void 0) ? "_blank" : "_self", d = v === "_blank" ? "noreferrer" : "", s = r ? t : null, h = s ? s.sourceURL : n, u = _`<img alt=${(a || o) ?? y} src=${h ?? void 0 ?? y}>`;
468
+ return (c ? _`<a href=${c ?? y} rel=${d ?? y} target=${v ?? y} title=${o ?? y}>${u}</a>` : null) ?? u;
496
469
  }
497
470
  _renderChartMediaInfo(e) {
498
471
  const { activeMediaInfoIndex: t, formattedMediaInfoCount: i } = this;
499
- return W(`media-${e.type}-${t}-${i}`, x`<div class="chart" ${j(this._updateChartElement)}></div>`);
472
+ return U(`media-${e.type}-${t}-${i}`, _`<div class="chart" ${B(this._updateChartElement)}></div>`);
500
473
  }
501
474
  _renderMediaInfoType() {
502
475
  const { activeMediaInfo: e } = this;
@@ -504,31 +477,31 @@ class ue extends J {
504
477
  }
505
478
  _renderMediaInfo() {
506
479
  const { activeMediaInfo: e } = this;
507
- return e ? x`<div class="item-container"><div class="item">${this._renderMediaInfoType()}</div></div>` : null;
480
+ return e ? _`<div class="item-container"><div class="item">${this._renderMediaInfoType()}</div></div>` : null;
508
481
  }
509
482
  _renderMediaPageButton(e) {
510
483
  if (this.formattedMediaInfoCount < 2)
511
484
  return null;
512
- const t = e === "previous", i = t ? this.messages?.previous ?? "" : this.messages?.next ?? "", a = t ? "chevron-left" : "chevron-right", r = t ? this.previous : this.next;
513
- return x`<button .ariaLabel=${i} class="pagination-button" @click=${r} tabindex=0 title=${i ?? y} type=button><calcite-icon flip-rtl class="pagination-icon" .icon=${a} scale=s></calcite-icon></button>`;
485
+ const t = e === "previous", i = t ? this.messages?.previous ?? "" : this.messages?.next ?? "", r = t ? "chevron-left" : "chevron-right", a = t ? this.previous : this.next;
486
+ return _`<button .ariaLabel=${i} class="pagination-button" @click=${a} tabindex=0 title=${i ?? y} type=button><calcite-icon flip-rtl class="pagination-icon" .icon=${r} scale=s></calcite-icon></button>`;
514
487
  }
515
488
  async _renderChart(e) {
516
- const { root: t, mediaInfo: i } = e, { value: a, type: r } = i, [{ default: o }, { default: n }, { default: s }, { esriChartColorSet: c }, { ColorSet: v, Theme: d }] = await Promise.all([
489
+ const { root: t, mediaInfo: i } = e, { value: r, type: a } = i, [{ default: o }, { default: n }, { default: c }, { esriChartColorSet: l }, { ColorSet: v, Theme: d }] = await Promise.all([
517
490
  import("@amcharts/amcharts5/themes/Animated.js"),
518
491
  import("@amcharts/amcharts5/themes/Dark.js"),
519
492
  import("@amcharts/amcharts5/themes/Responsive.js"),
520
493
  import("../../chunks/chartCommon.js"),
521
494
  import("@amcharts/amcharts5/index.js")
522
- ]), l = d.new(t);
523
- l.rule("ColorSet").set("colors", c), l.rule("ColorSet").set("reuse", !0);
524
- const h = [s.new(t), l];
525
- te(this.el) === "dark" && h.push(n.new(t)), this._canAnimateChart() && h.push(o.new(t)), t.setThemes(h);
526
- const u = await this._getRendererColors(), f = await this._getSeriesColors(a.series), m = v.new(t, {}), p = f.get(a.series[0]), I = p ? {
495
+ ]), s = d.new(t);
496
+ s.rule("ColorSet").set("colors", l), s.rule("ColorSet").set("reuse", !0);
497
+ const h = [c.new(t), s];
498
+ Z(this.el) === "dark" && h.push(n.new(t)), this._canAnimateChart() && h.push(o.new(t)), t.setThemes(h);
499
+ const u = await this._getRendererColors(), m = await this._getSeriesColors(r.series), f = v.new(t, {}), p = m.get(r.series[0]), x = p ? {
527
500
  lineSettings: {
528
501
  stroke: p
529
502
  }
530
- } : void 0, _ = a.series.map((g, C) => {
531
- const b = f.get(g) || u.get(g.fieldName) || m.getIndex(C);
503
+ } : void 0, I = r.series.map((g, C) => {
504
+ const b = m.get(g) || u.get(g.fieldName) || f.getIndex(C);
532
505
  return {
533
506
  [M]: g.tooltip,
534
507
  [w]: g.value,
@@ -536,13 +509,13 @@ class ue extends J {
536
509
  fill: b,
537
510
  stroke: b
538
511
  },
539
- ...I
512
+ ...x
540
513
  };
541
- }).filter((g) => r === "pie-chart" ? g.value != null && g.value > 0 : !0);
542
- r === "pie-chart" ? this._createPieChart(e, _) : this._createXYChart(e, _);
514
+ }).filter((g) => a === "pie-chart" ? g.value != null && g.value > 0 : !0);
515
+ a === "pie-chart" ? this._createPieChart(e, I) : this._createXYChart(e, I);
543
516
  }
544
517
  }
545
- O("arcgis-feature-media", ue);
518
+ D("arcgis-feature-media", ce);
546
519
  export {
547
- ue as ArcgisFeatureMedia
520
+ ce as ArcgisFeatureMedia
548
521
  };