@arcgis/map-components 5.2.4 → 5.2.5

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 (262) hide show
  1. package/dist/cdn/{76ZJGD75.js → 2AUIXZ2Q.js} +1 -1
  2. package/dist/cdn/2E3YXBJW.js +2 -0
  3. package/dist/cdn/{GVUTAN2R.js → 2G4FQGAD.js} +1 -1
  4. package/dist/cdn/{IRN4ISDZ.js → 2JBI4IXH.js} +1 -1
  5. package/dist/cdn/{5GJOYBI7.js → 2KXAWY43.js} +1 -1
  6. package/dist/cdn/{YLB7LLOQ.js → 2KYKLJ3Z.js} +1 -1
  7. package/dist/cdn/{FJBCC7ZH.js → 333R5G6O.js} +1 -1
  8. package/dist/cdn/{65F7YFJC.js → 34K5IKUR.js} +1 -1
  9. package/dist/cdn/{JXZOSS7R.js → 36LOARXN.js} +1 -1
  10. package/dist/cdn/{XF2UVS35.js → 36V53M4C.js} +1 -1
  11. package/dist/cdn/{A7E66LIH.js → 3CZKKUMK.js} +1 -1
  12. package/dist/cdn/{Y4XOPAG7.js → 3DCDINGF.js} +1 -1
  13. package/dist/cdn/{UEDZF47N.js → 3DPZSWUR.js} +1 -1
  14. package/dist/cdn/{VLIXVXP3.js → 3LKE64VF.js} +1 -1
  15. package/dist/cdn/{ZE7TYDWG.js → 3MKHJKDL.js} +1 -1
  16. package/dist/cdn/{7IHIG427.js → 3NB34PX4.js} +1 -1
  17. package/dist/cdn/{H65Z7MWV.js → 3POCVJLN.js} +1 -1
  18. package/dist/cdn/{IN5R6JL7.js → 44H7P75T.js} +1 -1
  19. package/dist/cdn/{NDAKSOSF.js → 4CDTUFZS.js} +1 -1
  20. package/dist/cdn/{4QTVZIDY.js → 4MO3VK6B.js} +1 -1
  21. package/dist/cdn/{33CM77ZT.js → 4RV6TJ46.js} +1 -1
  22. package/dist/cdn/{OSV6AIA4.js → 4WYXDGDC.js} +1 -1
  23. package/dist/cdn/{ADWVRV5I.js → 52VZSZX4.js} +1 -1
  24. package/dist/cdn/{JCRUAYGH.js → 56POLF7G.js} +1 -1
  25. package/dist/cdn/{CSS4XGEC.js → 56V4IRSL.js} +1 -1
  26. package/dist/cdn/{JPP2BFD4.js → 5DJBHAVB.js} +1 -1
  27. package/dist/cdn/{RMMYKX2C.js → 5KN5OQ6S.js} +1 -1
  28. package/dist/cdn/{VJSPMUHM.js → 5PAVX4RH.js} +1 -1
  29. package/dist/cdn/{RLUANYVV.js → 5QCO3QQG.js} +1 -1
  30. package/dist/cdn/5W3XRB6R.js +2 -0
  31. package/dist/cdn/{EKSBCS54.js → 5XZFXPWM.js} +1 -1
  32. package/dist/cdn/{3AXMZRRO.js → 636EZ3L2.js} +1 -1
  33. package/dist/cdn/{LTMZ7TOT.js → 6BA5I6MH.js} +1 -1
  34. package/dist/cdn/{2P4UY266.js → 6H6YPXT6.js} +1 -1
  35. package/dist/cdn/{CTWWJ6FV.js → 6IQVFI4B.js} +1 -1
  36. package/dist/cdn/{WVBYHVGU.js → 6KPQ4YPM.js} +1 -1
  37. package/dist/cdn/{NXABZYBC.js → 6LF5KEX5.js} +1 -1
  38. package/dist/cdn/{Y37A4DUY.js → 6VCHQCZQ.js} +1 -1
  39. package/dist/cdn/{FQBXGJER.js → 6VWMLSPW.js} +1 -1
  40. package/dist/cdn/{J7OIAUDA.js → 77THXVKD.js} +1 -1
  41. package/dist/cdn/{FQJ27ZN5.js → 7LF4QCXC.js} +1 -1
  42. package/dist/cdn/{PPURK2BH.js → 7MIPKJAL.js} +1 -1
  43. package/dist/cdn/{WM2BIX22.js → 7MWBFTGZ.js} +1 -1
  44. package/dist/cdn/{I4KVOO6N.js → 7Q6GX7DZ.js} +1 -1
  45. package/dist/cdn/{6N7PM73F.js → ADCXAT6P.js} +1 -1
  46. package/dist/cdn/{65VYDNYQ.js → AK66NSA2.js} +1 -1
  47. package/dist/cdn/{4TI6CNOV.js → AOY7B4ET.js} +1 -1
  48. package/dist/cdn/{YGLWJECZ.js → AQRFPWDP.js} +1 -1
  49. package/dist/cdn/{RZ5SLTHC.js → AU3SBPLE.js} +1 -1
  50. package/dist/cdn/{YJQE7EHO.js → AW4MJWIH.js} +1 -1
  51. package/dist/cdn/{27YN5YT4.js → B6OOV7PE.js} +1 -1
  52. package/dist/cdn/{2IYRSXZS.js → BKPTL2TC.js} +1 -1
  53. package/dist/cdn/{7NQQ3S77.js → BQB53GWW.js} +1 -1
  54. package/dist/cdn/{6AWNWO34.js → BTQHBILU.js} +1 -1
  55. package/dist/cdn/{AVIXHXI6.js → BZOG6VU7.js} +1 -1
  56. package/dist/cdn/{3ASVOZZN.js → C3ZTJ4L5.js} +1 -1
  57. package/dist/cdn/{VVCANCHO.js → CB4R6ENZ.js} +1 -1
  58. package/dist/cdn/{3YL6SRFS.js → CCBSELXA.js} +1 -1
  59. package/dist/cdn/{UX6GYAWK.js → CCVS62WF.js} +1 -1
  60. package/dist/cdn/{QPY7IYQY.js → CGWUI23C.js} +1 -1
  61. package/dist/cdn/CPPX4CEY.js +2 -0
  62. package/dist/cdn/{ZBTXET66.js → CQCB4NS5.js} +1 -1
  63. package/dist/cdn/{42PE2SPG.js → CS45M7X2.js} +1 -1
  64. package/dist/cdn/{LQG26YL6.js → CSEIXK3E.js} +1 -1
  65. package/dist/cdn/{J4FJYZ25.js → CXJRLV6N.js} +1 -1
  66. package/dist/cdn/{FG2YJIYE.js → CZ5BSA3A.js} +1 -1
  67. package/dist/cdn/{R5YS4GKL.js → D2USLGRQ.js} +1 -1
  68. package/dist/cdn/{XRTRPQD7.js → DDRBZFYJ.js} +1 -1
  69. package/dist/cdn/{TLKQ4SHF.js → DRHKIWSZ.js} +1 -1
  70. package/dist/cdn/{22YQ2I4Q.js → DXGBFFJK.js} +1 -1
  71. package/dist/cdn/{C5MWND53.js → E2EJKVO4.js} +1 -1
  72. package/dist/cdn/{PEER45DY.js → E55LMFY2.js} +1 -1
  73. package/dist/cdn/{RZHSZ3H2.js → E5YVGUG5.js} +1 -1
  74. package/dist/cdn/{Y7AXHIRQ.js → EBLZYY7V.js} +1 -1
  75. package/dist/cdn/{7ZT4OUUW.js → ECIVIV6R.js} +1 -1
  76. package/dist/cdn/{ZJE2W2CU.js → EE5HBRPU.js} +1 -1
  77. package/dist/cdn/{26HV57H7.js → EK4AC3ZR.js} +1 -1
  78. package/dist/cdn/{7HSEOEBC.js → EN72ZZNL.js} +1 -1
  79. package/dist/cdn/{Z5M2ALAH.js → EQ32PPBR.js} +1 -1
  80. package/dist/cdn/{7NHKX7LM.js → EYFC3F3C.js} +1 -1
  81. package/dist/cdn/{43BJYWX5.js → FMOIE2MM.js} +1 -1
  82. package/dist/cdn/{R7UUK7UW.js → FUP5XPPQ.js} +1 -1
  83. package/dist/cdn/{VXEZRMIB.js → FXUTKJMM.js} +1 -1
  84. package/dist/cdn/{3XBN5QVA.js → FZHIK7LG.js} +1 -1
  85. package/dist/cdn/G2QTPTZW.js +2 -0
  86. package/dist/cdn/{S6RI6HCD.js → G2Y7YBY4.js} +1 -1
  87. package/dist/cdn/{ADQWQBEW.js → GALHMN3S.js} +1 -1
  88. package/dist/cdn/{K5FZWX5N.js → GEQSQJQW.js} +1 -1
  89. package/dist/cdn/{UWPWTJ2J.js → GIK7OMLK.js} +1 -1
  90. package/dist/cdn/{WGDJZRA7.js → GQXPGTG7.js} +1 -1
  91. package/dist/cdn/{FG72D6YZ.js → GV76ZE5A.js} +1 -1
  92. package/dist/cdn/{L2JMPLBI.js → H5XXHST5.js} +1 -1
  93. package/dist/cdn/{CUX6ELAH.js → HESVB4V4.js} +1 -1
  94. package/dist/cdn/{Z4BEJRTJ.js → HJNUNYBW.js} +1 -1
  95. package/dist/cdn/{EHE46WJD.js → HSWP7BGH.js} +1 -1
  96. package/dist/cdn/{45DBVQ5G.js → HW3J5ZSF.js} +1 -1
  97. package/dist/cdn/{Y6AHWNUS.js → HXCUTFGC.js} +1 -1
  98. package/dist/cdn/{M5MUX3SR.js → HYLGOTBI.js} +1 -1
  99. package/dist/cdn/{PJKKBIRS.js → I34DGGQ5.js} +1 -1
  100. package/dist/cdn/{HKKK7PAM.js → IAPN3VM2.js} +1 -1
  101. package/dist/cdn/{G6OJLMKT.js → IH24OJLS.js} +1 -1
  102. package/dist/cdn/{NZVK73Y3.js → IJUR2CQD.js} +1 -1
  103. package/dist/cdn/{7Z6N5WXJ.js → IL7KNCFH.js} +1 -1
  104. package/dist/cdn/{P5PUHTTZ.js → ILTKZ4BX.js} +1 -1
  105. package/dist/cdn/{AXUOAFV7.js → ISYUIRDI.js} +1 -1
  106. package/dist/cdn/{CNBOU73I.js → J3ZM73PC.js} +1 -1
  107. package/dist/cdn/{FEBHYZ6D.js → JIRBPUIB.js} +1 -1
  108. package/dist/cdn/{GBGU5QK5.js → K64XXUVC.js} +1 -1
  109. package/dist/cdn/{QGMWSIUI.js → KBS6KTYI.js} +1 -1
  110. package/dist/cdn/{4RATJWRO.js → KFA7FTNZ.js} +1 -1
  111. package/dist/cdn/{HXPDO6CM.js → KIPFARKD.js} +1 -1
  112. package/dist/cdn/{5MIP6ZL7.js → KNFJLBIE.js} +1 -1
  113. package/dist/cdn/{OJGHH26G.js → KNPDOZNS.js} +1 -1
  114. package/dist/cdn/{HUZONYD7.js → KNTACTGB.js} +1 -1
  115. package/dist/cdn/KRH5MPGH.js +2 -0
  116. package/dist/cdn/{AXA4NQBL.js → KSVBGP3Z.js} +1 -1
  117. package/dist/cdn/{3GPIVC5P.js → KTDNZON5.js} +1 -1
  118. package/dist/cdn/{TULJ7Y32.js → L5K3Q5B5.js} +1 -1
  119. package/dist/cdn/{ZF5GBMSS.js → L5MDUKTG.js} +1 -1
  120. package/dist/cdn/{SDQDUGKX.js → L6BJ6CYZ.js} +1 -1
  121. package/dist/cdn/{3UZK6UYW.js → LCYTCTQT.js} +1 -1
  122. package/dist/cdn/{LZL7VTQH.js → LFNSZOQE.js} +1 -1
  123. package/dist/cdn/{ICXOGGZG.js → LGG2TPB2.js} +1 -1
  124. package/dist/cdn/{2NW2URBZ.js → LGZJIUNW.js} +1 -1
  125. package/dist/cdn/{66I2OTCZ.js → LH4N66RE.js} +1 -1
  126. package/dist/cdn/{LF2NKUJA.js → LPTPCSHN.js} +1 -1
  127. package/dist/cdn/{KP4YBPWU.js → LTPRH4E2.js} +1 -1
  128. package/dist/cdn/{4UHNVQPP.js → M5LTYJFF.js} +1 -1
  129. package/dist/cdn/{4UQ6UUHY.js → MBP5HTGH.js} +1 -1
  130. package/dist/cdn/{G76VVSVA.js → MCASCTLW.js} +1 -1
  131. package/dist/cdn/MNE4UEPH.js +2 -0
  132. package/dist/cdn/{Z3EC3N7C.js → MPHLIEUK.js} +1 -1
  133. package/dist/cdn/{FHYP6EF2.js → MQIWQAZ6.js} +1 -1
  134. package/dist/cdn/{3Q4C6BLY.js → MQYPICXK.js} +1 -1
  135. package/dist/cdn/{PTTMCU4E.js → MTLXZPHM.js} +1 -1
  136. package/dist/cdn/{OGJW7OTX.js → MTPHOQBR.js} +1 -1
  137. package/dist/cdn/{LHPWDJ75.js → N42VGE2L.js} +1 -1
  138. package/dist/cdn/{45COW2XC.js → N4ICYQ2I.js} +1 -1
  139. package/dist/cdn/{BYJVWNVL.js → NABQXXX6.js} +1 -1
  140. package/dist/cdn/{BDNXOVLN.js → NLL3KTFV.js} +1 -1
  141. package/dist/cdn/{3Z2A32L3.js → NQKL3ZZX.js} +1 -1
  142. package/dist/cdn/{IQ3QP74J.js → NU2GYSTB.js} +1 -1
  143. package/dist/cdn/{GFZOUGIU.js → NYRI5FOM.js} +1 -1
  144. package/dist/cdn/{DZH4KU2P.js → NZTDSANC.js} +1 -1
  145. package/dist/cdn/{MRD6F6I3.js → NZVXGBAD.js} +1 -1
  146. package/dist/cdn/{26VIAHPF.js → O6QC66YX.js} +1 -1
  147. package/dist/cdn/{P2GMODLP.js → OAXF6WOP.js} +1 -1
  148. package/dist/cdn/{TFVRJUSJ.js → OCAPIM3Z.js} +1 -1
  149. package/dist/cdn/{RAWM42BS.js → OEZYCVVM.js} +1 -1
  150. package/dist/cdn/{NZUH5VXN.js → OHEJGIWK.js} +1 -1
  151. package/dist/cdn/{DLYAECAD.js → OIRKPY5Q.js} +1 -1
  152. package/dist/cdn/{LZGMWFOO.js → OJA46TV5.js} +1 -1
  153. package/dist/cdn/{SMT4LA5X.js → OUAD4Q3W.js} +1 -1
  154. package/dist/cdn/{VLPW3VFM.js → OZYC4ILU.js} +1 -1
  155. package/dist/cdn/{27KYQNKP.js → P4KPVFIJ.js} +1 -1
  156. package/dist/cdn/{725LPPIM.js → PACDBNOC.js} +1 -1
  157. package/dist/cdn/{JXONVBDR.js → PFO6QFYT.js} +1 -1
  158. package/dist/cdn/{N4R7LN4Y.js → PGW42TQY.js} +1 -1
  159. package/dist/cdn/{GQ3SO3TR.js → PKLVJELG.js} +1 -1
  160. package/dist/cdn/{F2WMR3YQ.js → PLDSIZ5D.js} +1 -1
  161. package/dist/cdn/PREYB6NC.js +2 -0
  162. package/dist/cdn/{3QFEQCVN.js → PUYDE7JI.js} +1 -1
  163. package/dist/cdn/{Z7EK7SAF.js → PVVFXT47.js} +1 -1
  164. package/dist/cdn/{2BBD6VW2.js → Q46Y3PUA.js} +1 -1
  165. package/dist/cdn/{OC5LFUMP.js → Q4DBDH3N.js} +1 -1
  166. package/dist/cdn/{DDVFTISN.js → QZN3KPWX.js} +1 -1
  167. package/dist/cdn/{ZXTGLPB7.js → QZPVQ2RE.js} +1 -1
  168. package/dist/cdn/{YX5HLX3D.js → R3RYA4DN.js} +1 -1
  169. package/dist/cdn/{BMJXYAYT.js → R7J3QIYA.js} +1 -1
  170. package/dist/cdn/{E3LXH4CS.js → RKYLROBI.js} +1 -1
  171. package/dist/cdn/{6R6R3XTH.js → RLLEY4QY.js} +1 -1
  172. package/dist/cdn/{B72ELQQW.js → RMOH4VXA.js} +1 -1
  173. package/dist/cdn/{XJVBEFHM.js → RRJ6777X.js} +1 -1
  174. package/dist/cdn/{QTFACWJS.js → RSARMHJ6.js} +1 -1
  175. package/dist/cdn/{XHHIPQFI.js → RT3GLKVA.js} +1 -1
  176. package/dist/cdn/{4TGV2X47.js → S2G72I6H.js} +1 -1
  177. package/dist/cdn/{OQEFMTO6.js → SCTIPFEK.js} +1 -1
  178. package/dist/cdn/{4QN3V76Q.js → SHTCIJXL.js} +1 -1
  179. package/dist/cdn/{IYJPEFK5.js → SM5ZDJL7.js} +1 -1
  180. package/dist/cdn/{IBPMRPU6.js → SPROHTDD.js} +1 -1
  181. package/dist/cdn/{M5LPUEIS.js → SVOJL34V.js} +1 -1
  182. package/dist/cdn/{3XGDS5QW.js → T3MF5KYT.js} +1 -1
  183. package/dist/cdn/{KBRTUP24.js → TAFBZKCH.js} +1 -1
  184. package/dist/cdn/{IAAFKO6G.js → TDELELZE.js} +1 -1
  185. package/dist/cdn/TEK53J2W.js +2 -0
  186. package/dist/cdn/{7EMK74ZF.js → TGYMVPHQ.js} +1 -1
  187. package/dist/cdn/{VFGAPD6E.js → TJNFYFXU.js} +1 -1
  188. package/dist/cdn/{UXW5MQM7.js → TMAQVXWR.js} +1 -1
  189. package/dist/cdn/{USFLEWDK.js → TQ6BUPGQ.js} +1 -1
  190. package/dist/cdn/{OCPTS6HN.js → TRDW2JBZ.js} +1 -1
  191. package/dist/cdn/{5XBLTA7T.js → TUXVGZ4P.js} +1 -1
  192. package/dist/cdn/{PE2PWL2J.js → TZACADOF.js} +1 -1
  193. package/dist/cdn/{AL6L663C.js → U3S7WJJ7.js} +1 -1
  194. package/dist/cdn/{IXBOTGHC.js → U7G67GXE.js} +1 -1
  195. package/dist/cdn/{VO5QOZLY.js → UCDNQWFY.js} +1 -1
  196. package/dist/cdn/{QARHM5T5.js → UDB4NVVF.js} +1 -1
  197. package/dist/cdn/{UC2COAGW.js → UKQJYVAP.js} +1 -1
  198. package/dist/cdn/{NU7WF2LD.js → UKXSSUVJ.js} +1 -1
  199. package/dist/cdn/{CLVKSUYH.js → UPXULFF7.js} +1 -1
  200. package/dist/cdn/{OOAN57X4.js → URRGPUZB.js} +1 -1
  201. package/dist/cdn/{D3YO4ZOH.js → USJBDA5V.js} +1 -1
  202. package/dist/cdn/{7LWKOSKH.js → UXL35RVG.js} +1 -1
  203. package/dist/cdn/{OW7VEQ7M.js → UXZYI6UZ.js} +1 -1
  204. package/dist/cdn/{VVRC5BEV.js → V4OAA3XL.js} +1 -1
  205. package/dist/cdn/{HP2P5OYN.js → VA4XYI2T.js} +1 -1
  206. package/dist/cdn/{F5B4WIVL.js → VAEAD5R4.js} +1 -1
  207. package/dist/cdn/{CXUGFNZW.js → VGS6JOC2.js} +1 -1
  208. package/dist/cdn/{YVZZACFZ.js → VL45GCZD.js} +1 -1
  209. package/dist/cdn/{KSGX44II.js → VMICEAIS.js} +1 -1
  210. package/dist/cdn/{G55BOIXB.js → VP2TE3XU.js} +1 -1
  211. package/dist/cdn/{PLYXWZK5.js → VTENJJ5B.js} +1 -1
  212. package/dist/cdn/{6BCQ52L7.js → VYMJI2FQ.js} +1 -1
  213. package/dist/cdn/{6CRONNHI.js → W5B5MEWO.js} +1 -1
  214. package/dist/cdn/{FBL6FWKR.js → WCGW4J2U.js} +1 -1
  215. package/dist/cdn/{N6L2XHFN.js → WCZQCNOI.js} +1 -1
  216. package/dist/cdn/{DRGUJ5LY.js → WE5DPCO4.js} +1 -1
  217. package/dist/cdn/{5IS4UXVE.js → WFJN7TCP.js} +1 -1
  218. package/dist/cdn/{A4TJO5PZ.js → WQEBOAM5.js} +1 -1
  219. package/dist/cdn/{OAOXF5KZ.js → WQTO42RP.js} +1 -1
  220. package/dist/cdn/{2Z5F2BEF.js → WR3ESMFJ.js} +1 -1
  221. package/dist/cdn/{5JQT4A7C.js → WSKDXPZH.js} +1 -1
  222. package/dist/cdn/{X4FA56YR.js → WUHODB3Q.js} +1 -1
  223. package/dist/cdn/{ADYG2EMM.js → WWHSCYAZ.js} +1 -1
  224. package/dist/cdn/{CYISOXDZ.js → WX25YMQL.js} +1 -1
  225. package/dist/cdn/{GPPCLLAX.js → X3T3HSUC.js} +1 -1
  226. package/dist/cdn/{CRSLMZ6H.js → X4JK5MUS.js} +1 -1
  227. package/dist/cdn/X4T5S63H.js +2 -0
  228. package/dist/cdn/{6RB62D2W.js → X54B3XPB.js} +1 -1
  229. package/dist/cdn/{TWCJYCYQ.js → XCQKSM5K.js} +1 -1
  230. package/dist/cdn/{JNOTFCBC.js → XD5ORM7N.js} +1 -1
  231. package/dist/cdn/{UVLOCGTT.js → XGDR2OED.js} +1 -1
  232. package/dist/cdn/{E2NFVZER.js → XQ2VEJ2Y.js} +1 -1
  233. package/dist/cdn/{45ZOIFQJ.js → Y2TXEMDP.js} +1 -1
  234. package/dist/cdn/{GCBY5PIC.js → Y3ZDN6UG.js} +1 -1
  235. package/dist/cdn/{AETNFVGH.js → YBWFQGGX.js} +1 -1
  236. package/dist/cdn/{L4HEGMVE.js → YJWQBP3B.js} +1 -1
  237. package/dist/cdn/{JA7KC626.js → YN373MGV.js} +1 -1
  238. package/dist/cdn/{HSA4KTTI.js → ZARHXEDQ.js} +1 -1
  239. package/dist/cdn/{7BUZBVCD.js → ZE4WPZRT.js} +1 -1
  240. package/dist/cdn/{JM6DRQRN.js → ZHNNMJGW.js} +1 -1
  241. package/dist/cdn/{3UB7YDP2.js → ZINDUBU7.js} +1 -1
  242. package/dist/cdn/{C2DNE5TB.js → ZMU6ISN4.js} +1 -1
  243. package/dist/cdn/{JJTRGGUD.js → ZTYEPT6Y.js} +1 -1
  244. package/dist/cdn/{J6SWGP36.js → ZULRPUWX.js} +1 -1
  245. package/dist/cdn/{NC77ZFVJ.js → ZW6FHDCC.js} +1 -1
  246. package/dist/cdn/index.js +1 -1
  247. package/dist/chunks/runtime.js +1 -1
  248. package/dist/components/arcgis-layer-list-next/customElement.js +68 -60
  249. package/dist/components/arcgis-layer-list-next/layer-list-item/customElement.js +62 -62
  250. package/dist/docs/api.json +1 -1
  251. package/dist/docs/docs.json +1 -1
  252. package/dist/docs/web-types.json +1 -1
  253. package/package.json +6 -6
  254. package/dist/cdn/3GXZW3ZZ.js +0 -2
  255. package/dist/cdn/DGYFI3QX.js +0 -2
  256. package/dist/cdn/NBGFUVYW.js +0 -2
  257. package/dist/cdn/OCNR4NPT.js +0 -2
  258. package/dist/cdn/OOCTOODF.js +0 -2
  259. package/dist/cdn/TR7SBUZN.js +0 -2
  260. package/dist/cdn/TSGJUXIR.js +0 -2
  261. package/dist/cdn/XVWPYACH.js +0 -2
  262. package/dist/cdn/YRYVYLP7.js +0 -2
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{a as y}from"./JD74LG7K.js";import c from"./2IYRSXZS.js";import"./QUZTFUWM.js";import{e as b}from"./P2GMODLP.js";import{P as f,R as o,U as i,X as u,Y as g,a as d,b as a}from"./33CM77ZT.js";import"./H6RQVSYM.js";export default $arcgis.t(([{watch:v},{i:h}])=>{function B(t){return t.portalItem?.type==="Web Scene"||t.referenceLayers.some(e=>e.type==="scene")}function z(t){return!!t?.portalItem?.tags?.some(e=>e.toLowerCase()==="beta")||!!t?.portalItem?.categories?.includes("/Categories/Status/Beta")}function A(t){return!!t?.portalItem?.tags?.some(e=>e.toLowerCase()==="preview")||!!t?.portalItem?.categories?.includes("/Categories/Status/Preview")}var C=d`@keyframes esri-basemap-slide{0%{opacity:0;margin-top:0;margin-left:0}75%{opacity:0;margin-top:0;margin-left:0}to{opacity:1;margin-top:5px;margin-left:5px}}@keyframes esri-docking-animation{0%{opacity:0}25%{opacity:0}to{opacity:1}}@keyframes popup-intro-animation-down{0%{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translate(0)}}@keyframes popup-intro-animation-up{0%{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translate(0)}}@supports (-ms-ime-align: auto){.esri-slider__anchor:focus{outline:1px dotted #000}}@keyframes esri-spinner--start-animation{0%{opacity:0;transform:scale(0)}to{opacity:1;transform:scale(1)}}@keyframes esri-spinner--finish-animation{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(0)}}@keyframes esri-spinner--rotate-animation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@media(prefers-reduced-motion){.esri-utility-network-trace__reset-prompt{animation:none!important}}@media(prefers-reduced-motion){.esri-popup--aligned-top-center,.esri-popup--aligned-top-left,.esri-popup--aligned-top-right,.esri-popup--aligned-bottom-center,.esri-popup--aligned-bottom-left,.esri-popup--aligned-bottom-right,.esri-popup--is-docked{animation:none!important}}@media(prefers-reduced-motion:reduce){.esri-fov-overlay{animation:none!important}}@keyframes esri-fade-in-down{0%{opacity:0;transform:translateY(-5px)}25%{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translate(0)}}@keyframes esri-fade-in-up{0%{opacity:0;transform:translateY(5px)}25%{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translate(0)}}@keyframes esri-fade-in{0%{opacity:0}25%{opacity:0}to{opacity:1}}@keyframes esri-fade-in-scale{0%{opacity:0;transform:scale(.95)}to{opacity:1;transform:scale(1)}}@keyframes looping-progresss-bar-ani{0%{width:0;left:0}20%{width:20%;left:0}80%{width:20%;left:80%}to{width:0;left:100%}}@keyframes esri-rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes panel-advance{0%{opacity:0;transform:translate(50px) scale(.99)}to{opacity:1;transform:translate(0) scale(1)}}@keyframes panel-retreat{0%{opacity:0;transform:translate(-50px) scale(.99)}to{opacity:1;transform:translate(0) scale(1)}}@keyframes panel-advance--rtl{0%{opacity:0;transform:translate(-50px) scale(.99)}to{opacity:1;transform:translate(0) scale(1)}}@keyframes panel-retreat--rtl{0%{opacity:0;transform:translate(50px) scale(.99)}to{opacity:1;transform:translate(0) scale(1)}}:host{container-type:inline-size}.empty-message{padding:12px 15px;animation:.5s ease-in-out esri-fade-in}.item{box-sizing:border-box;cursor:pointer;border:1px solid var(--calcite-color-background);flex-direction:row;width:100%;transition:background-color .25s ease-in-out,border-color .25s ease-in-out;animation:.5s ease-in-out esri-fade-in;display:flex;position:relative}.item:hover{background-color:var(--calcite-color-foreground-3);border-color:var(--calcite-color-background-inverse)}.item:hover .item-title{color:var(--calcite-color-text-1)}.item:focus{outline:none}.is-error{opacity:var(--calcite-opacity-light);background-color:var(--calcite-color-transparent)!important;border-color:var(--calcite-color-transparent)!important;cursor:auto}.item-thumbnail{aspect-ratio:1.5;border-inline-end:1px solid var(--calcite-color-border-1);flex-shrink:0;width:120px;min-width:120px;transition:background-color .25s ease-in-out,border-color .25s ease-in-out}.item-title{color:var(--calcite-color-text-3);justify-content:flex-start;align-items:center;width:100%;height:100%;font-size:var(--calcite-font-size-sm);transition:color .25s ease-in-out,font-weight .25s ease-in-out;display:flex}.item-title span{text-align:start;text-overflow:ellipsis;word-wrap:break-word;word-break:break-word;hyphens:auto;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;width:100%;display:-webkit-box;overflow:hidden}.is-selected,.is-selected:hover,.is-selected:focus{cursor:auto;background-color:color-mix(in srgb,var(--calcite-color-brand-underline),70% transparent);border-color:var(--calcite-color-status-info)!important}.is-selected .item-title,.item.is-selected:hover .item-title,.item.is-selected:focus .item-title{color:var(--calcite-color-text-1);font-weight:var(--calcite-font-weight-medium)}.item-content{flex-direction:column;gap:var(--calcite-spacing-md);min-width:0;padding-block:var(--calcite-spacing-base);padding-inline:var(--calcite-spacing-md);display:flex}.item-tags{flex-direction:row;gap:var(--calcite-spacing-base);display:flex}.item-tags calcite-chip{--calcite-font-size--2: var(--calcite-font-size--3);cursor:inherit}@supports (object-fit: cover){.item-thumbnail{object-fit:cover}}@container (width>=200px) and (width <= 300px){.item{align-items:center}.item:not(.is-selected,:hover){border-color:var(--calcite-color-transparent)}}@container (width>=200px) and (width <= 278px){.item-thumbnail{aspect-ratio:1;width:80px;min-width:80px;object-position:left}}@container (width<200px) or (width>=350px){.item{text-align:center;flex-flow:column wrap}.item:not(.is-selected,:hover){border-color:var(--calcite-color-border-1)}.item-thumbnail{border-block-end:1px solid var(--calcite-color-border-1);border-inline-end:none;width:100%;min-width:0;height:auto}.item-content{height:32px;padding-block:var(--calcite-spacing-xxs);padding-inline:var(--calcite-spacing-xs);position:relative}.item-tags{position:absolute;inset-block-end:45px;inset-inline-end:5px}}`,s=class extends f{constructor(){super(...arguments),this._itemState="loading",this._isActive=!1}static{this.properties={_itemState:16,_isActive:16,disabled:5,item:0,itemIndex:9,messages:0,viewModel:0}}static{this.styles=C}loaded(){this.manager.onLifecycle(()=>[v(()=>this.item.state,e=>{this._itemState=e},{sync:!0}),v(()=>this.viewModel.activeBasemap,e=>{this._isActive=this.item.basemap.id===e?.id,this._isActive&&(h(this)?.focus(),this.el.scrollIntoView({block:"nearest"}))},{initial:!0,sync:!0})])}render(){let{item:e,itemIndex:n,messages:x,viewModel:c}=this;if(!e.basemap)return null;let w=e.basemap.thumbnailUrl||g("./assets/basemap-gallery/images/basemap-toggle-64.svg"),l=e.basemap.title,k=e.basemap.portalItem?.snippet,$=e.error?.message||k||l,{activeBasemapIndex:p}=c,r=p===n,I=r||p===-1&&n===0?0:-1,_={"is-selected":r,"is-error":e.state==="error"},m=`basemapgallery-item-${e.uid}`;return a`<div .ariaChecked=${r} .ariaDisabled=${this.disabled} aria-labelledby=${m??i} class=${o(b("item",_))} role=radio tabindex=${I??i} title=${$??i} @click=${()=>{e.state==="ready"&&(c.activeBasemap=e.basemap)}}><img alt class="item-thumbnail" src=${w??i}><div class="item-content"><div class="item-title"><span id=${m??i}>${l}</span></div>${B(e.basemap)?Y(e.basemap,x):null}</div>${e.state!=="loading"?null:a`<calcite-scrim><span aria-hidden=true class=${o(y.loaderAnimation)} role=presentation></span></calcite-scrim>`}</div>`}};function Y(t,e){return a`<div class="item-tags">${L(e)}${z(t)?S(e):null}${A(t)?j(e):null}</div>`}function L(t){return a`<calcite-chip scale=s .label=${t.tag3D}>${t.tag3D}</calcite-chip>`}function S(t){return a`<calcite-chip appearance=outline-fill scale=s .label=${t.tagBeta}>${t.tagBeta}</calcite-chip>`}function j(t){return a`<calcite-chip appearance=outline-fill scale=s .label=${t.tagPreview}>${t.tagPreview}</calcite-chip>`}u("arcgis-basemap-gallery-item",s);return s},"core/reactiveUtils",c)
2
+ import{a as y}from"./JD74LG7K.js";import c from"./BKPTL2TC.js";import"./QUZTFUWM.js";import{e as b}from"./OAXF6WOP.js";import{P as f,R as o,U as i,X as u,Y as g,a as d,b as a}from"./4RV6TJ46.js";import"./H6RQVSYM.js";export default $arcgis.t(([{watch:v},{i:h}])=>{function B(t){return t.portalItem?.type==="Web Scene"||t.referenceLayers.some(e=>e.type==="scene")}function z(t){return!!t?.portalItem?.tags?.some(e=>e.toLowerCase()==="beta")||!!t?.portalItem?.categories?.includes("/Categories/Status/Beta")}function A(t){return!!t?.portalItem?.tags?.some(e=>e.toLowerCase()==="preview")||!!t?.portalItem?.categories?.includes("/Categories/Status/Preview")}var C=d`@keyframes esri-basemap-slide{0%{opacity:0;margin-top:0;margin-left:0}75%{opacity:0;margin-top:0;margin-left:0}to{opacity:1;margin-top:5px;margin-left:5px}}@keyframes esri-docking-animation{0%{opacity:0}25%{opacity:0}to{opacity:1}}@keyframes popup-intro-animation-down{0%{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translate(0)}}@keyframes popup-intro-animation-up{0%{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translate(0)}}@supports (-ms-ime-align: auto){.esri-slider__anchor:focus{outline:1px dotted #000}}@keyframes esri-spinner--start-animation{0%{opacity:0;transform:scale(0)}to{opacity:1;transform:scale(1)}}@keyframes esri-spinner--finish-animation{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(0)}}@keyframes esri-spinner--rotate-animation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@media(prefers-reduced-motion){.esri-utility-network-trace__reset-prompt{animation:none!important}}@media(prefers-reduced-motion){.esri-popup--aligned-top-center,.esri-popup--aligned-top-left,.esri-popup--aligned-top-right,.esri-popup--aligned-bottom-center,.esri-popup--aligned-bottom-left,.esri-popup--aligned-bottom-right,.esri-popup--is-docked{animation:none!important}}@media(prefers-reduced-motion:reduce){.esri-fov-overlay{animation:none!important}}@keyframes esri-fade-in-down{0%{opacity:0;transform:translateY(-5px)}25%{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translate(0)}}@keyframes esri-fade-in-up{0%{opacity:0;transform:translateY(5px)}25%{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translate(0)}}@keyframes esri-fade-in{0%{opacity:0}25%{opacity:0}to{opacity:1}}@keyframes esri-fade-in-scale{0%{opacity:0;transform:scale(.95)}to{opacity:1;transform:scale(1)}}@keyframes looping-progresss-bar-ani{0%{width:0;left:0}20%{width:20%;left:0}80%{width:20%;left:80%}to{width:0;left:100%}}@keyframes esri-rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes panel-advance{0%{opacity:0;transform:translate(50px) scale(.99)}to{opacity:1;transform:translate(0) scale(1)}}@keyframes panel-retreat{0%{opacity:0;transform:translate(-50px) scale(.99)}to{opacity:1;transform:translate(0) scale(1)}}@keyframes panel-advance--rtl{0%{opacity:0;transform:translate(-50px) scale(.99)}to{opacity:1;transform:translate(0) scale(1)}}@keyframes panel-retreat--rtl{0%{opacity:0;transform:translate(50px) scale(.99)}to{opacity:1;transform:translate(0) scale(1)}}:host{container-type:inline-size}.empty-message{padding:12px 15px;animation:.5s ease-in-out esri-fade-in}.item{box-sizing:border-box;cursor:pointer;border:1px solid var(--calcite-color-background);flex-direction:row;width:100%;transition:background-color .25s ease-in-out,border-color .25s ease-in-out;animation:.5s ease-in-out esri-fade-in;display:flex;position:relative}.item:hover{background-color:var(--calcite-color-foreground-3);border-color:var(--calcite-color-background-inverse)}.item:hover .item-title{color:var(--calcite-color-text-1)}.item:focus{outline:none}.is-error{opacity:var(--calcite-opacity-light);background-color:var(--calcite-color-transparent)!important;border-color:var(--calcite-color-transparent)!important;cursor:auto}.item-thumbnail{aspect-ratio:1.5;border-inline-end:1px solid var(--calcite-color-border-1);flex-shrink:0;width:120px;min-width:120px;transition:background-color .25s ease-in-out,border-color .25s ease-in-out}.item-title{color:var(--calcite-color-text-3);justify-content:flex-start;align-items:center;width:100%;height:100%;font-size:var(--calcite-font-size-sm);transition:color .25s ease-in-out,font-weight .25s ease-in-out;display:flex}.item-title span{text-align:start;text-overflow:ellipsis;word-wrap:break-word;word-break:break-word;hyphens:auto;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;width:100%;display:-webkit-box;overflow:hidden}.is-selected,.is-selected:hover,.is-selected:focus{cursor:auto;background-color:color-mix(in srgb,var(--calcite-color-brand-underline),70% transparent);border-color:var(--calcite-color-status-info)!important}.is-selected .item-title,.item.is-selected:hover .item-title,.item.is-selected:focus .item-title{color:var(--calcite-color-text-1);font-weight:var(--calcite-font-weight-medium)}.item-content{flex-direction:column;gap:var(--calcite-spacing-md);min-width:0;padding-block:var(--calcite-spacing-base);padding-inline:var(--calcite-spacing-md);display:flex}.item-tags{flex-direction:row;gap:var(--calcite-spacing-base);display:flex}.item-tags calcite-chip{--calcite-font-size--2: var(--calcite-font-size--3);cursor:inherit}@supports (object-fit: cover){.item-thumbnail{object-fit:cover}}@container (width>=200px) and (width <= 300px){.item{align-items:center}.item:not(.is-selected,:hover){border-color:var(--calcite-color-transparent)}}@container (width>=200px) and (width <= 278px){.item-thumbnail{aspect-ratio:1;width:80px;min-width:80px;object-position:left}}@container (width<200px) or (width>=350px){.item{text-align:center;flex-flow:column wrap}.item:not(.is-selected,:hover){border-color:var(--calcite-color-border-1)}.item-thumbnail{border-block-end:1px solid var(--calcite-color-border-1);border-inline-end:none;width:100%;min-width:0;height:auto}.item-content{height:32px;padding-block:var(--calcite-spacing-xxs);padding-inline:var(--calcite-spacing-xs);position:relative}.item-tags{position:absolute;inset-block-end:45px;inset-inline-end:5px}}`,s=class extends f{constructor(){super(...arguments),this._itemState="loading",this._isActive=!1}static{this.properties={_itemState:16,_isActive:16,disabled:5,item:0,itemIndex:9,messages:0,viewModel:0}}static{this.styles=C}loaded(){this.manager.onLifecycle(()=>[v(()=>this.item.state,e=>{this._itemState=e},{sync:!0}),v(()=>this.viewModel.activeBasemap,e=>{this._isActive=this.item.basemap.id===e?.id,this._isActive&&(h(this)?.focus(),this.el.scrollIntoView({block:"nearest"}))},{initial:!0,sync:!0})])}render(){let{item:e,itemIndex:n,messages:x,viewModel:c}=this;if(!e.basemap)return null;let w=e.basemap.thumbnailUrl||g("./assets/basemap-gallery/images/basemap-toggle-64.svg"),l=e.basemap.title,k=e.basemap.portalItem?.snippet,$=e.error?.message||k||l,{activeBasemapIndex:p}=c,r=p===n,I=r||p===-1&&n===0?0:-1,_={"is-selected":r,"is-error":e.state==="error"},m=`basemapgallery-item-${e.uid}`;return a`<div .ariaChecked=${r} .ariaDisabled=${this.disabled} aria-labelledby=${m??i} class=${o(b("item",_))} role=radio tabindex=${I??i} title=${$??i} @click=${()=>{e.state==="ready"&&(c.activeBasemap=e.basemap)}}><img alt class="item-thumbnail" src=${w??i}><div class="item-content"><div class="item-title"><span id=${m??i}>${l}</span></div>${B(e.basemap)?Y(e.basemap,x):null}</div>${e.state!=="loading"?null:a`<calcite-scrim><span aria-hidden=true class=${o(y.loaderAnimation)} role=presentation></span></calcite-scrim>`}</div>`}};function Y(t,e){return a`<div class="item-tags">${L(e)}${z(t)?S(e):null}${A(t)?j(e):null}</div>`}function L(t){return a`<calcite-chip scale=s .label=${t.tag3D}>${t.tag3D}</calcite-chip>`}function S(t){return a`<calcite-chip appearance=outline-fill scale=s .label=${t.tagBeta}>${t.tagBeta}</calcite-chip>`}function j(t){return a`<calcite-chip appearance=outline-fill scale=s .label=${t.tagPreview}>${t.tagPreview}</calcite-chip>`}u("arcgis-basemap-gallery-item",s);return s},"core/reactiveUtils",c)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{a as g}from"./D47546HM.js";import m from"./6CRONNHI.js";import"./VJVKFKSG.js";import k from"./X4FA56YR.js";import{a as w}from"./7EMK74ZF.js";import j from"./76ZJGD75.js";import i from"./PPURK2BH.js";import{h as b}from"./6N7PM73F.js";import"./7IHIG427.js";import e from"./2IYRSXZS.js";import"./QUZTFUWM.js";import{b as d}from"./P2GMODLP.js";import{O as h,P as v,X as f,a as y,b as a,n as l,p as c,x as r}from"./33CM77ZT.js";import"./H6RQVSYM.js";export default $arcgis.t(([o,C,x,{when:k},_,,,,R,{a:p}])=>{var A=y`:host{--arcgis-internal-color-black-30: color-mix(in srgb, #000000 30.2%, transparent);--arcgis-internal-box-shadow: var(--calcite-spacing-none) var(--calcite-spacing-px) var(--calcite-spacing-base) var(--arcgis-internal-color-black-30);--arcgis-internal-top-max-width: calc(min(100cqw, 100vw) - var(--calcite-spacing-xxxl));--arcgis-internal-panel-width: 300px;--arcgis-internal-panel-height: 100%;--arcgis-internal-panel-height-sm: 240px;--arcgis-internal-panel-height-md: 420px;--arcgis-internal-panel-height-lg: 540px;--arcgis-internal-panel-height-xl: 680px;--arcgis-internal-panel-gap: var(--calcite-spacing-lg);--arcgis-internal-panel-actions-gap: var(--calcite-spacing-sm);--arcgis-internal-basemap-gallery-width-lg: 450px;--arcgis-internal-collapse-icon-flip: scaleX(1);--arcgis-internal-row-direction: row;--arcgis-internal-legend-width: 300px;--arcgis-internal-layout-overlay-space-top: var(--arcgis-layout-overlay-space-top, 0px);--arcgis-internal-layout-overlay-space-bottom: var(--arcgis-layout-overlay-space-bottom, 0px);--arcgis-internal-layout-overlay-space-left: var(--arcgis-layout-overlay-space-left, 0px);--arcgis-internal-layout-overlay-space-right: var(--arcgis-layout-overlay-space-right, 0px);--arcgis-internal-view-color-focus: var(--arcgis-view-color-focus, var(--calcite-color-brand));--arcgis-internal-view-corner-radius: 0px;--arcgis-internal-attribution-space-bottom: var(--arcgis-internal-layout-overlay-space-bottom);--arcgis-internal-attribution-space-left: var(--arcgis-internal-layout-overlay-space-left);--arcgis-internal-attribution-space-right: var(--arcgis-internal-layout-overlay-space-right);--arcgis-internal-attribution-font-size: var(--calcite-font-size-sm);--arcgis-internal-attribution-font-size-sm: var(--calcite-font-size-xs);--arcgis-internal-sketch-justify-content: flex-start}:host{display:flex;flex-direction:column;height:var(--arcgis-internal-panel-height, 100%)}arcgis-utility-network-trace-inputs[mode=default]{height:auto}calcite-tabs{display:flex;flex-direction:column;height:100%}calcite-tab{--calcite-tab-content-space-y: 0;--calcite-panel-background-color: var(--calcite-color-background);min-height:var(--arcgis-internal-panel-height-sm, 240px)}calcite-panel{--calcite-panel-background-color: var(--calcite-color-foreground-1)}calcite-notice{margin:var(--calcite-spacing-md)}arcgis-utility-network-trace-results,slot[name=results]::slotted(arcgis-utility-network-trace-results){--arcgis-internal-trace-results-height: 100%;height:100%}slot[name=results]::slotted(:not(arcgis-utility-network-trace-results)){display:none}slot[name=results]::slotted([arcgis-hidden-results-slot-item]){display:none}.inputs-tab-container{display:flex;flex-direction:column;height:100%}.trace-inputs-warning{flex:none;height:fit-content;calcite-notice{margin:var(--calcite-spacing-md) var(--calcite-spacing-md) 0}}`,D=R(_),$="arcgis-utility-network-trace-results",T="arcgis-hidden-results-slot-item",P=["actions","autoDestroyDisabled","aggregatedGeometryResultsGraphicsColor","aggregatedGeometryResultsSize","disableHighlightFeatureResults","hideActionBar","hideFeatureResults","hideGraphics","hidePlaceholder","includeDefaultActionsDisabled","messageOverrides","referenceElement","traceError","traceResult","view"],m=class extends v{constructor(){super(...arguments),this._messages=w({blocking:!0}),this.#i=D(this),this.#r=t=>{let{detail:e,target:i}=t;e.name==="hideGraphics"?(t.stopPropagation(),this.hideGraphics=i[e.name],this.arcgisHideGraphicsChange.emit(this.hideGraphics)):e.name==="aggregatedGeometryResultsGraphicsColor"?(t.stopPropagation(),this.aggregatedGeometryResultsGraphicsColor=i[e.name]):e.name==="aggregatedGeometryResultsSize"?(t.stopPropagation(),this.aggregatedGeometryResultsSize=i[e.name]):(e.name==="state"||e.name==="traceError"||e.name==="traceResult")&&t.stopPropagation()},this.#o=t=>{t.stopPropagation(),this.arcgisTraceResultClear.emit()},this.#n=t=>{t.stopPropagation(),this.arcgisTraceResultFeaturesReady.emit(),this.arcgisTraceResultReady.emit()},this.#a=t=>{t.stopPropagation(),this.arcgisTriggerAction.emit(t.detail)},this._activeTab="input",this._showMissingTerminalWarning=!1,this._showNoStartingPointsWarning=!1,this._slottedElements=[],this._mode="default",this.autoDestroyDisabled=!1,this.aggregatedGeometryResultsGraphicsColor=new o(g),this.aggregatedGeometryResultsSize=12,this.disableHighlightFeatureResults=!1,this.flowItems=new C,this.hideActionBar=!1,this.hideClearResultsCount=!1,this.hideGraphics=!1,this.hidePlaceholder=!1,this.hideFeatureResults=!1,this.includeDefaultActionsDisabled=!1,this.state=this.#i.state,this.view=this.#i.view,this.arcgisError=r(),this.arcgisHideGraphicsChange=r(),this.arcgisPropertyChange=b()("aggregatedGeometryGraphicsColor","aggregatedGeometryResultsGraphicsColor","hideGraphics","state","traceError","traceResult"),this.arcgisReady=r(),this.arcgisTraceLocationSelectEnd=r(),this.arcgisTraceLocationSelectStart=r(),this.arcgisTraceResultClear=r(),this.arcgisTraceResultFeaturesReady=r(),this.arcgisTraceResultReady=r(),this.arcgisTriggerAction=r()}static{this.properties={_activeTab:16,_showMissingTerminalWarning:16,_showNoStartingPointsWarning:16,_slottedElements:16,_mode:16,actions:0,autoDestroyDisabled:5,beforeMapInteraction:0,aggregatedGeometryResultsGraphicsColor:[1,{converter:{fromAttribute:t=>o.fromString(t)??new o(g)}}],aggregatedGeometryGraphicsColor:[1,{converter:{fromAttribute:t=>o.fromString(t)??new o(g)}}],aggregatedGeometryResultsSize:9,disableHighlightFeatureResults:5,flowItems:32,hideActionBar:5,hideClearResultsCount:5,hideGraphics:5,hidePlaceholder:5,hideFeatureResults:5,includeDefaultActionsDisabled:5,label:3,messageOverrides:0,traceResultFeatures:32,traceResult:0,traceError:32,referenceElement:1,state:32,view:0}}static{this.styles=A}get#c(){return this.view?.map?.allLayers.toArray().concat(this.view.map.allTables.toArray())??[]}#e;#t;#h;#i;get#p(){return Array.from(this.el.children).some(t=>t.slot==="results"&&t.matches($))}#r;#o;#n;#a;get aggregatedGeometryGraphicsColor(){return this.aggregatedGeometryResultsGraphicsColor}set aggregatedGeometryGraphicsColor(t){this.aggregatedGeometryResultsGraphicsColor=t}get traceResultFeatures(){return this.#t?.traceResultFeatures??[]}async destroy(){this.#u(this.#t);let t=await Promise.allSettled([this.#t?.destroy(),this.#e?.destroy()]);for(let e of t)e.status==="rejected"&&p(e.reason,this,"Error while destroying trace analysis component");this.#e=void 0,this.#t=void 0,await this.manager.destroy()}load(){this.manager.onLifecycle(()=>[k(()=>!this.#i.utilityNetwork,()=>this.#s("input"))])}willUpdate(t){P.some(e=>t.has(e))&&this.#l(this.#t)}#g(){this.traceResult=void 0,l(()=>this.traceError=void 0),this.#t?.clearResults(),this.#h?.flowItems.removeAll()}#m(){if(!this.#e)return;let{traceLocations:t,traceLocationDetails:e,traceConfiguration:i,isSubnetworkNameTraceSelected:s}=this.#e,u=!!i?.subnetworkName,G=t?.some(n=>n.type==="starting-point"),E=e?.some(n=>!!n.flagProperties.terminalConfiguration&&!n.flagProperties.selectedTerminals?.size)??!1;this._showNoStartingPointsWarning=!s&&!G||s&&!u,this._showMissingTerminalWarning=E}#s(t){this._activeTab=t}#l(t){if(!t)return;let e={actions:this.actions,autoDestroyDisabled:this.autoDestroyDisabled,aggregatedGeometryResultsGraphicsColor:this.aggregatedGeometryResultsGraphicsColor,aggregatedGeometryResultsSize:this.aggregatedGeometryResultsSize,disableHighlightFeatureResults:this.disableHighlightFeatureResults,expanded:!0,hideActionBar:this.hideActionBar,hideFeatureResults:this.hideFeatureResults,hideGraphics:this.hideGraphics,hidePlaceholder:this.hidePlaceholder,includeDefaultActionsDisabled:this.includeDefaultActionsDisabled,layers:this.#c,messageOverrides:this.messageOverrides,referenceElement:this.referenceElement,traceError:this.traceError,traceResult:this.traceResult,utilityNetwork:this.#i.utilityNetwork??void 0,view:this.view??void 0};Object.assign(t,e)}#y(t){t&&(t.addEventListener("arcgisPropertyChange",this.#r),t.addEventListener("arcgisResultsReady",this.#n),t.addEventListener("arcgisTraceResultClear",this.#o),t.addEventListener("arcgisTriggerAction",this.#a))}#u(t){t&&(t.removeEventListener("arcgisPropertyChange",this.#r),t.removeEventListener("arcgisResultsReady",this.#n),t.removeEventListener("arcgisTraceResultClear",this.#o),t.removeEventListener("arcgisTriggerAction",this.#a))}#v(t){let{_messages:e}=this;switch(t){case"no-user-type-extension":return e.errors.loadErrors.noUserTypeExtension;case"no-utility-network":return e.errors.loadErrors.noUtilityNetwork;case"no-view":return e.errors.loadErrors.noView;case"sceneView-not-supported":return e.errors.loadErrors.sceneViewNotSupported;default:return t}}async#f(){let t=this.#e?.selectedNamedTraceConfiguration,e=this.#e?.traceConfiguration;if(!(t?.traceType&&e)){c("error",this,"Trace configuration not found");let s=new x("trace-configuration-not-found","Trace configuration not found");l(()=>this.traceError=s),this.arcgisError.emit();return}let i=this.#e?.traceLocations;try{this.traceResult=await this.#i.executeTraceConfiguration({traceType:t.traceType,traceConfiguration:e,traceLocations:i??[],resultTypes:t.resultTypes,outSpatialReference:this.view?.spatialReference})}catch(s){p(s,this,"Error while running trace"),l(()=>this.traceError=s),this.traceResult=void 0,this.arcgisError.emit()}}#b(){this.#m(),!(this._showNoStartingPointsWarning||this._showMissingTerminalWarning)&&(this._showNoStartingPointsWarning=!1,this._showMissingTerminalWarning=!1,this.#g(),this.#s("results"),this.#f())}#w(t){t&&(this.#e=t)}#d(t){!t||t===this.#t||(this.#u(this.#t),this.#t=t,this.#y(t))}#R(t){this.#h=t}#$(t){this._slottedElements=d(t);let e=d(t,$);if((!e.length||e.length<this._slottedElements.length)&&c("warn",this,"The trace results pane only renders instances of `arcgis-utility-network-trace-results` in the `results` slot."),e.length>1&&c("warn",this,"Multiple `arcgis-utility-network-trace-results` elements were provided in the `results` slot. Only the first will render."),!e.length)return;let[i]=e;for(let s of e)s===i?s.removeAttribute(T):s.setAttribute(T,"");this.#d(i),this.#l(i)}#T(t){t.stopPropagation(),this.arcgisTraceLocationSelectStart.emit(t.detail).defaultPrevented&&t.preventDefault()}#G(t){t.stopPropagation(),this.arcgisTraceLocationSelectEnd.emit()}#E(t){let{detail:e,target:i}=t;t.stopPropagation(),e.name==="selectedUtilityNetwork"&&(this.#i.utilityNetwork=i.selectedUtilityNetwork,this.#l(this.#t)),e.name==="selectedNamedTraceConfiguration"&&(this._showNoStartingPointsWarning=!1,this._showMissingTerminalWarning=!1),e.name==="mode"&&(this._mode=i.mode)}#C(){let{_messages:t}=this;return a`<calcite-panel class="trace-inputs-warning"><calcite-notice open icon=exclamation-mark-triangle closable kind=danger scale=s @calciteNoticeClose=${()=>this._showMissingTerminalWarning=!1}><div slot=title>${t.errors.missingTerminalTitle}</div><div slot=message>${t.errors.missingTerminalBody}</div></calcite-notice></calcite-panel>`}#x(){let{_messages:t}=this;return a`<calcite-panel class="trace-inputs-warning"><calcite-notice open icon=exclamation-mark-triangle closable kind=danger scale=s @calciteNoticeClose=${()=>this._showNoStartingPointsWarning=!1}><div slot=title>${t.errors.noStartingPointsTitle}</div><div slot=message>${t.errors.noStartingPointsBody}</div></calcite-notice></calcite-panel>`}#k(){return a`<calcite-tab .selected=${this._activeTab==="results"}>${this.state==="executing"&&a`<calcite-panel><calcite-loader .label=${this._messages.runningTrace} .text=${this._messages.runningTrace}></calcite-loader></calcite-panel>`||""}<arcgis-utility-network-trace-results-pane hide-warnings .hidden=${this.state==="executing"} ${h(this.#R)}><slot name=results @slotchange=${this.#$}></slot>${this.#p?null:a`<arcgis-utility-network-trace-results .actions=${this.actions} .autoDestroyDisabled=${this.autoDestroyDisabled} .aggregatedGeometryResultsGraphicsColor=${this.aggregatedGeometryResultsGraphicsColor} .aggregatedGeometryResultsSize=${this.aggregatedGeometryResultsSize} .disableHighlightFeatureResults=${this.disableHighlightFeatureResults} expanded .hideActionBar=${this.hideActionBar} .hideFeatureResults=${this.hideFeatureResults} .hideGraphics=${this.hideGraphics} .hidePlaceholder=${this.hidePlaceholder} .includeDefaultActionsDisabled=${this.includeDefaultActionsDisabled} .layers=${this.#c} .messageOverrides=${this.messageOverrides} .referenceElement=${this.referenceElement} .traceError=${this.traceError} .traceResult=${this.traceResult} .utilityNetwork=${this.#i.utilityNetwork??void 0} .view=${this.view??void 0} ${h(this.#d)}></arcgis-utility-network-trace-results>`}</arcgis-utility-network-trace-results-pane></calcite-tab>`}#_(){let{_messages:t,traceResult:e}=this,i=!!(e?.elements.length||e?.globalFunctionResults.length||e?.aggregatedGeometry)&&this.#t?.state==="ready",s=this.#t?.numFeatureResults??0,u=s>0&&!this.hideFeatureResults&&!this.hideClearResultsCount&&this.state!=="executing";return a`<calcite-button appearance=outline width=full @click=${()=>{this.#s("input"),this.#g()}} .disabled=${!i} slot=footer>${u?t.buttons.clearResultsCustom.replace("{number}",s.toString()):t.buttons.clearResultsGeneric}</calcite-button>`}#A(){let{_mode:t}=this,{loadError:e}=this.#i,i=(e==="no-user-type-extension"||e==="sceneView-not-supported"?a`<calcite-notice kind=danger open scale=s slot=content-top width=auto><div slot=message>${this.#v(e)}</div></calcite-notice>`:void 0)??a`${this._showNoStartingPointsWarning&&t==="default"&&this.#x()||""}${this._showMissingTerminalWarning&&t==="default"&&this.#C()||""}<arcgis-utility-network-trace-inputs .actions=${this.actions} .autoDestroyDisabled=${this.autoDestroyDisabled} .hideActionBar=${this.hideActionBar} .includeDefaultActionsDisabled=${this.includeDefaultActionsDisabled} .messageOverrides=${this.messageOverrides} .referenceElement=${this.referenceElement} .view=${this.view??void 0} .beforeMapInteraction=${this.beforeMapInteraction} @arcgisPropertyChange=${this.#E} @arcgisTraceLocationSelectEnd=${this.#G} @arcgisTraceLocationSelectStart=${this.#T} @arcgisTriggerAction=${this.#a} ${h(this.#w)}></arcgis-utility-network-trace-inputs>`;return a`<calcite-tab .selected=${this._activeTab==="input"}><div class="inputs-tab-container">${i}</div></calcite-tab>`}#D(){let{state:t}=this;if(this._mode!=="default")return null;let e=t!=="ready"||!this.#e?.traceConfiguration;return a`<calcite-button appearance=solid width=full @click=${this.#b} slot=footer .disabled=${e}>${this._messages.buttons.getResults}</calcite-button>`}render(){let{_activeTab:t,state:e}=this;return a`<calcite-panel><calcite-tabs layout=center position=top><calcite-tab-nav slot=title-group><calcite-tab-title @calciteTabsActivate=${()=>this.#s("input")} .selected=${t==="input"}>${this._messages.tabs.inputTab}</calcite-tab-title><calcite-tab-title @calciteTabsActivate=${()=>this.#s("results")} .selected=${t==="results"} .disabled=${e==="disabled"||e==="loading"}>${this._messages.tabs.resultsTab}</calcite-tab-title></calcite-tab-nav>${this.#A()}${this.#k()}</calcite-tabs>${t==="input"?this.#D():null}${t==="results"?this.#_():null}</calcite-panel>`}};f("arcgis-utility-network-trace-analysis",m);return m},"Color","core/Collection","core/Error","core/reactiveUtils","networks/UtilityNetworkTraceAnalysis",e,i,j,k,m)
2
+ import{a as g}from"./D47546HM.js";import m from"./W5B5MEWO.js";import"./VJVKFKSG.js";import k from"./WUHODB3Q.js";import{a as w}from"./TGYMVPHQ.js";import j from"./2AUIXZ2Q.js";import i from"./7MIPKJAL.js";import{h as b}from"./ADCXAT6P.js";import"./3NB34PX4.js";import e from"./BKPTL2TC.js";import"./QUZTFUWM.js";import{b as d}from"./OAXF6WOP.js";import{O as h,P as v,X as f,a as y,b as a,n as l,p as c,x as r}from"./4RV6TJ46.js";import"./H6RQVSYM.js";export default $arcgis.t(([o,C,x,{when:k},_,,,,R,{a:p}])=>{var A=y`:host{--arcgis-internal-color-black-30: color-mix(in srgb, #000000 30.2%, transparent);--arcgis-internal-box-shadow: var(--calcite-spacing-none) var(--calcite-spacing-px) var(--calcite-spacing-base) var(--arcgis-internal-color-black-30);--arcgis-internal-top-max-width: calc(min(100cqw, 100vw) - var(--calcite-spacing-xxxl));--arcgis-internal-panel-width: 300px;--arcgis-internal-panel-height: 100%;--arcgis-internal-panel-height-sm: 240px;--arcgis-internal-panel-height-md: 420px;--arcgis-internal-panel-height-lg: 540px;--arcgis-internal-panel-height-xl: 680px;--arcgis-internal-panel-gap: var(--calcite-spacing-lg);--arcgis-internal-panel-actions-gap: var(--calcite-spacing-sm);--arcgis-internal-basemap-gallery-width-lg: 450px;--arcgis-internal-collapse-icon-flip: scaleX(1);--arcgis-internal-row-direction: row;--arcgis-internal-legend-width: 300px;--arcgis-internal-layout-overlay-space-top: var(--arcgis-layout-overlay-space-top, 0px);--arcgis-internal-layout-overlay-space-bottom: var(--arcgis-layout-overlay-space-bottom, 0px);--arcgis-internal-layout-overlay-space-left: var(--arcgis-layout-overlay-space-left, 0px);--arcgis-internal-layout-overlay-space-right: var(--arcgis-layout-overlay-space-right, 0px);--arcgis-internal-view-color-focus: var(--arcgis-view-color-focus, var(--calcite-color-brand));--arcgis-internal-view-corner-radius: 0px;--arcgis-internal-attribution-space-bottom: var(--arcgis-internal-layout-overlay-space-bottom);--arcgis-internal-attribution-space-left: var(--arcgis-internal-layout-overlay-space-left);--arcgis-internal-attribution-space-right: var(--arcgis-internal-layout-overlay-space-right);--arcgis-internal-attribution-font-size: var(--calcite-font-size-sm);--arcgis-internal-attribution-font-size-sm: var(--calcite-font-size-xs);--arcgis-internal-sketch-justify-content: flex-start}:host{display:flex;flex-direction:column;height:var(--arcgis-internal-panel-height, 100%)}arcgis-utility-network-trace-inputs[mode=default]{height:auto}calcite-tabs{display:flex;flex-direction:column;height:100%}calcite-tab{--calcite-tab-content-space-y: 0;--calcite-panel-background-color: var(--calcite-color-background);min-height:var(--arcgis-internal-panel-height-sm, 240px)}calcite-panel{--calcite-panel-background-color: var(--calcite-color-foreground-1)}calcite-notice{margin:var(--calcite-spacing-md)}arcgis-utility-network-trace-results,slot[name=results]::slotted(arcgis-utility-network-trace-results){--arcgis-internal-trace-results-height: 100%;height:100%}slot[name=results]::slotted(:not(arcgis-utility-network-trace-results)){display:none}slot[name=results]::slotted([arcgis-hidden-results-slot-item]){display:none}.inputs-tab-container{display:flex;flex-direction:column;height:100%}.trace-inputs-warning{flex:none;height:fit-content;calcite-notice{margin:var(--calcite-spacing-md) var(--calcite-spacing-md) 0}}`,D=R(_),$="arcgis-utility-network-trace-results",T="arcgis-hidden-results-slot-item",P=["actions","autoDestroyDisabled","aggregatedGeometryResultsGraphicsColor","aggregatedGeometryResultsSize","disableHighlightFeatureResults","hideActionBar","hideFeatureResults","hideGraphics","hidePlaceholder","includeDefaultActionsDisabled","messageOverrides","referenceElement","traceError","traceResult","view"],m=class extends v{constructor(){super(...arguments),this._messages=w({blocking:!0}),this.#i=D(this),this.#r=t=>{let{detail:e,target:i}=t;e.name==="hideGraphics"?(t.stopPropagation(),this.hideGraphics=i[e.name],this.arcgisHideGraphicsChange.emit(this.hideGraphics)):e.name==="aggregatedGeometryResultsGraphicsColor"?(t.stopPropagation(),this.aggregatedGeometryResultsGraphicsColor=i[e.name]):e.name==="aggregatedGeometryResultsSize"?(t.stopPropagation(),this.aggregatedGeometryResultsSize=i[e.name]):(e.name==="state"||e.name==="traceError"||e.name==="traceResult")&&t.stopPropagation()},this.#o=t=>{t.stopPropagation(),this.arcgisTraceResultClear.emit()},this.#n=t=>{t.stopPropagation(),this.arcgisTraceResultFeaturesReady.emit(),this.arcgisTraceResultReady.emit()},this.#a=t=>{t.stopPropagation(),this.arcgisTriggerAction.emit(t.detail)},this._activeTab="input",this._showMissingTerminalWarning=!1,this._showNoStartingPointsWarning=!1,this._slottedElements=[],this._mode="default",this.autoDestroyDisabled=!1,this.aggregatedGeometryResultsGraphicsColor=new o(g),this.aggregatedGeometryResultsSize=12,this.disableHighlightFeatureResults=!1,this.flowItems=new C,this.hideActionBar=!1,this.hideClearResultsCount=!1,this.hideGraphics=!1,this.hidePlaceholder=!1,this.hideFeatureResults=!1,this.includeDefaultActionsDisabled=!1,this.state=this.#i.state,this.view=this.#i.view,this.arcgisError=r(),this.arcgisHideGraphicsChange=r(),this.arcgisPropertyChange=b()("aggregatedGeometryGraphicsColor","aggregatedGeometryResultsGraphicsColor","hideGraphics","state","traceError","traceResult"),this.arcgisReady=r(),this.arcgisTraceLocationSelectEnd=r(),this.arcgisTraceLocationSelectStart=r(),this.arcgisTraceResultClear=r(),this.arcgisTraceResultFeaturesReady=r(),this.arcgisTraceResultReady=r(),this.arcgisTriggerAction=r()}static{this.properties={_activeTab:16,_showMissingTerminalWarning:16,_showNoStartingPointsWarning:16,_slottedElements:16,_mode:16,actions:0,autoDestroyDisabled:5,beforeMapInteraction:0,aggregatedGeometryResultsGraphicsColor:[1,{converter:{fromAttribute:t=>o.fromString(t)??new o(g)}}],aggregatedGeometryGraphicsColor:[1,{converter:{fromAttribute:t=>o.fromString(t)??new o(g)}}],aggregatedGeometryResultsSize:9,disableHighlightFeatureResults:5,flowItems:32,hideActionBar:5,hideClearResultsCount:5,hideGraphics:5,hidePlaceholder:5,hideFeatureResults:5,includeDefaultActionsDisabled:5,label:3,messageOverrides:0,traceResultFeatures:32,traceResult:0,traceError:32,referenceElement:1,state:32,view:0}}static{this.styles=A}get#c(){return this.view?.map?.allLayers.toArray().concat(this.view.map.allTables.toArray())??[]}#e;#t;#h;#i;get#p(){return Array.from(this.el.children).some(t=>t.slot==="results"&&t.matches($))}#r;#o;#n;#a;get aggregatedGeometryGraphicsColor(){return this.aggregatedGeometryResultsGraphicsColor}set aggregatedGeometryGraphicsColor(t){this.aggregatedGeometryResultsGraphicsColor=t}get traceResultFeatures(){return this.#t?.traceResultFeatures??[]}async destroy(){this.#u(this.#t);let t=await Promise.allSettled([this.#t?.destroy(),this.#e?.destroy()]);for(let e of t)e.status==="rejected"&&p(e.reason,this,"Error while destroying trace analysis component");this.#e=void 0,this.#t=void 0,await this.manager.destroy()}load(){this.manager.onLifecycle(()=>[k(()=>!this.#i.utilityNetwork,()=>this.#s("input"))])}willUpdate(t){P.some(e=>t.has(e))&&this.#l(this.#t)}#g(){this.traceResult=void 0,l(()=>this.traceError=void 0),this.#t?.clearResults(),this.#h?.flowItems.removeAll()}#m(){if(!this.#e)return;let{traceLocations:t,traceLocationDetails:e,traceConfiguration:i,isSubnetworkNameTraceSelected:s}=this.#e,u=!!i?.subnetworkName,G=t?.some(n=>n.type==="starting-point"),E=e?.some(n=>!!n.flagProperties.terminalConfiguration&&!n.flagProperties.selectedTerminals?.size)??!1;this._showNoStartingPointsWarning=!s&&!G||s&&!u,this._showMissingTerminalWarning=E}#s(t){this._activeTab=t}#l(t){if(!t)return;let e={actions:this.actions,autoDestroyDisabled:this.autoDestroyDisabled,aggregatedGeometryResultsGraphicsColor:this.aggregatedGeometryResultsGraphicsColor,aggregatedGeometryResultsSize:this.aggregatedGeometryResultsSize,disableHighlightFeatureResults:this.disableHighlightFeatureResults,expanded:!0,hideActionBar:this.hideActionBar,hideFeatureResults:this.hideFeatureResults,hideGraphics:this.hideGraphics,hidePlaceholder:this.hidePlaceholder,includeDefaultActionsDisabled:this.includeDefaultActionsDisabled,layers:this.#c,messageOverrides:this.messageOverrides,referenceElement:this.referenceElement,traceError:this.traceError,traceResult:this.traceResult,utilityNetwork:this.#i.utilityNetwork??void 0,view:this.view??void 0};Object.assign(t,e)}#y(t){t&&(t.addEventListener("arcgisPropertyChange",this.#r),t.addEventListener("arcgisResultsReady",this.#n),t.addEventListener("arcgisTraceResultClear",this.#o),t.addEventListener("arcgisTriggerAction",this.#a))}#u(t){t&&(t.removeEventListener("arcgisPropertyChange",this.#r),t.removeEventListener("arcgisResultsReady",this.#n),t.removeEventListener("arcgisTraceResultClear",this.#o),t.removeEventListener("arcgisTriggerAction",this.#a))}#v(t){let{_messages:e}=this;switch(t){case"no-user-type-extension":return e.errors.loadErrors.noUserTypeExtension;case"no-utility-network":return e.errors.loadErrors.noUtilityNetwork;case"no-view":return e.errors.loadErrors.noView;case"sceneView-not-supported":return e.errors.loadErrors.sceneViewNotSupported;default:return t}}async#f(){let t=this.#e?.selectedNamedTraceConfiguration,e=this.#e?.traceConfiguration;if(!(t?.traceType&&e)){c("error",this,"Trace configuration not found");let s=new x("trace-configuration-not-found","Trace configuration not found");l(()=>this.traceError=s),this.arcgisError.emit();return}let i=this.#e?.traceLocations;try{this.traceResult=await this.#i.executeTraceConfiguration({traceType:t.traceType,traceConfiguration:e,traceLocations:i??[],resultTypes:t.resultTypes,outSpatialReference:this.view?.spatialReference})}catch(s){p(s,this,"Error while running trace"),l(()=>this.traceError=s),this.traceResult=void 0,this.arcgisError.emit()}}#b(){this.#m(),!(this._showNoStartingPointsWarning||this._showMissingTerminalWarning)&&(this._showNoStartingPointsWarning=!1,this._showMissingTerminalWarning=!1,this.#g(),this.#s("results"),this.#f())}#w(t){t&&(this.#e=t)}#d(t){!t||t===this.#t||(this.#u(this.#t),this.#t=t,this.#y(t))}#R(t){this.#h=t}#$(t){this._slottedElements=d(t);let e=d(t,$);if((!e.length||e.length<this._slottedElements.length)&&c("warn",this,"The trace results pane only renders instances of `arcgis-utility-network-trace-results` in the `results` slot."),e.length>1&&c("warn",this,"Multiple `arcgis-utility-network-trace-results` elements were provided in the `results` slot. Only the first will render."),!e.length)return;let[i]=e;for(let s of e)s===i?s.removeAttribute(T):s.setAttribute(T,"");this.#d(i),this.#l(i)}#T(t){t.stopPropagation(),this.arcgisTraceLocationSelectStart.emit(t.detail).defaultPrevented&&t.preventDefault()}#G(t){t.stopPropagation(),this.arcgisTraceLocationSelectEnd.emit()}#E(t){let{detail:e,target:i}=t;t.stopPropagation(),e.name==="selectedUtilityNetwork"&&(this.#i.utilityNetwork=i.selectedUtilityNetwork,this.#l(this.#t)),e.name==="selectedNamedTraceConfiguration"&&(this._showNoStartingPointsWarning=!1,this._showMissingTerminalWarning=!1),e.name==="mode"&&(this._mode=i.mode)}#C(){let{_messages:t}=this;return a`<calcite-panel class="trace-inputs-warning"><calcite-notice open icon=exclamation-mark-triangle closable kind=danger scale=s @calciteNoticeClose=${()=>this._showMissingTerminalWarning=!1}><div slot=title>${t.errors.missingTerminalTitle}</div><div slot=message>${t.errors.missingTerminalBody}</div></calcite-notice></calcite-panel>`}#x(){let{_messages:t}=this;return a`<calcite-panel class="trace-inputs-warning"><calcite-notice open icon=exclamation-mark-triangle closable kind=danger scale=s @calciteNoticeClose=${()=>this._showNoStartingPointsWarning=!1}><div slot=title>${t.errors.noStartingPointsTitle}</div><div slot=message>${t.errors.noStartingPointsBody}</div></calcite-notice></calcite-panel>`}#k(){return a`<calcite-tab .selected=${this._activeTab==="results"}>${this.state==="executing"&&a`<calcite-panel><calcite-loader .label=${this._messages.runningTrace} .text=${this._messages.runningTrace}></calcite-loader></calcite-panel>`||""}<arcgis-utility-network-trace-results-pane hide-warnings .hidden=${this.state==="executing"} ${h(this.#R)}><slot name=results @slotchange=${this.#$}></slot>${this.#p?null:a`<arcgis-utility-network-trace-results .actions=${this.actions} .autoDestroyDisabled=${this.autoDestroyDisabled} .aggregatedGeometryResultsGraphicsColor=${this.aggregatedGeometryResultsGraphicsColor} .aggregatedGeometryResultsSize=${this.aggregatedGeometryResultsSize} .disableHighlightFeatureResults=${this.disableHighlightFeatureResults} expanded .hideActionBar=${this.hideActionBar} .hideFeatureResults=${this.hideFeatureResults} .hideGraphics=${this.hideGraphics} .hidePlaceholder=${this.hidePlaceholder} .includeDefaultActionsDisabled=${this.includeDefaultActionsDisabled} .layers=${this.#c} .messageOverrides=${this.messageOverrides} .referenceElement=${this.referenceElement} .traceError=${this.traceError} .traceResult=${this.traceResult} .utilityNetwork=${this.#i.utilityNetwork??void 0} .view=${this.view??void 0} ${h(this.#d)}></arcgis-utility-network-trace-results>`}</arcgis-utility-network-trace-results-pane></calcite-tab>`}#_(){let{_messages:t,traceResult:e}=this,i=!!(e?.elements.length||e?.globalFunctionResults.length||e?.aggregatedGeometry)&&this.#t?.state==="ready",s=this.#t?.numFeatureResults??0,u=s>0&&!this.hideFeatureResults&&!this.hideClearResultsCount&&this.state!=="executing";return a`<calcite-button appearance=outline width=full @click=${()=>{this.#s("input"),this.#g()}} .disabled=${!i} slot=footer>${u?t.buttons.clearResultsCustom.replace("{number}",s.toString()):t.buttons.clearResultsGeneric}</calcite-button>`}#A(){let{_mode:t}=this,{loadError:e}=this.#i,i=(e==="no-user-type-extension"||e==="sceneView-not-supported"?a`<calcite-notice kind=danger open scale=s slot=content-top width=auto><div slot=message>${this.#v(e)}</div></calcite-notice>`:void 0)??a`${this._showNoStartingPointsWarning&&t==="default"&&this.#x()||""}${this._showMissingTerminalWarning&&t==="default"&&this.#C()||""}<arcgis-utility-network-trace-inputs .actions=${this.actions} .autoDestroyDisabled=${this.autoDestroyDisabled} .hideActionBar=${this.hideActionBar} .includeDefaultActionsDisabled=${this.includeDefaultActionsDisabled} .messageOverrides=${this.messageOverrides} .referenceElement=${this.referenceElement} .view=${this.view??void 0} .beforeMapInteraction=${this.beforeMapInteraction} @arcgisPropertyChange=${this.#E} @arcgisTraceLocationSelectEnd=${this.#G} @arcgisTraceLocationSelectStart=${this.#T} @arcgisTriggerAction=${this.#a} ${h(this.#w)}></arcgis-utility-network-trace-inputs>`;return a`<calcite-tab .selected=${this._activeTab==="input"}><div class="inputs-tab-container">${i}</div></calcite-tab>`}#D(){let{state:t}=this;if(this._mode!=="default")return null;let e=t!=="ready"||!this.#e?.traceConfiguration;return a`<calcite-button appearance=solid width=full @click=${this.#b} slot=footer .disabled=${e}>${this._messages.buttons.getResults}</calcite-button>`}render(){let{_activeTab:t,state:e}=this;return a`<calcite-panel><calcite-tabs layout=center position=top><calcite-tab-nav slot=title-group><calcite-tab-title @calciteTabsActivate=${()=>this.#s("input")} .selected=${t==="input"}>${this._messages.tabs.inputTab}</calcite-tab-title><calcite-tab-title @calciteTabsActivate=${()=>this.#s("results")} .selected=${t==="results"} .disabled=${e==="disabled"||e==="loading"}>${this._messages.tabs.resultsTab}</calcite-tab-title></calcite-tab-nav>${this.#A()}${this.#k()}</calcite-tabs>${t==="input"?this.#D():null}${t==="results"?this.#_():null}</calcite-panel>`}};f("arcgis-utility-network-trace-analysis",m);return m},"Color","core/Collection","core/Error","core/reactiveUtils","networks/UtilityNetworkTraceAnalysis",e,i,j,k,m)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import a from"./YU5BTZEI.js";import{a as v}from"./DZH4KU2P.js";import"./JD74LG7K.js";import"./QUZTFUWM.js";import{e as y}from"./P2GMODLP.js";import{P as p,R as g,X as f,a as m,b as s}from"./33CM77ZT.js";import"./H6RQVSYM.js";export default $arcgis.t(([{a:u}])=>{var b=m`.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}:host{display:block;padding:var(--arcgis-internal-padding, var(--calcite-spacing-md) var(--calcite-spacing-lg))}.layers{display:flex;flex-direction:column;gap:var(--arcgis-internal-legend-layer-gap)}.layers>.layer{position:relative}.layers>.layer:not(:last-child):after{content:"";position:absolute;left:0;right:0;bottom:calc(var(--arcgis-internal-legend-layer-gap) / -2);border-bottom:1px solid var(--calcite-color-border-2)}.layer>.esri-widget__heading{color:var(--calcite-color-text-1);margin:var(--arcgis-internal-legend-heading-margin);font-size:var(--calcite-font-size-md);font-weight:var(--calcite-font-weight-semibold)}.layer{word-wrap:break-word}.layer-elements{display:flex;flex-direction:column;gap:var(--arcgis-internal-legend-layer-element-gap);overflow:auto}.layer-children{display:flex;flex-direction:column;gap:var(--arcgis-internal-legend-layer-gap)}.layer-children>.layer{margin-inline-start:var(--arcgis-internal-legend-layer-padding);position:relative}.layer-children>.layer:not(:last-child):after{content:"";position:absolute;left:0;right:0;bottom:calc(var(--arcgis-internal-legend-layer-gap) / -2);border-bottom:1px solid var(--calcite-color-border-2)}.layer-children.layer-children-compact>.layer.layer-child-inline-title{margin-inline-start:0}.layer-children.layer-children-compact>.layer:not(:last-child):after{content:none}.layer-children.layer-children-compact{gap:var(--calcite-space-2xs)}@supports (grid-template-columns: subgrid){.layer-children.layer-children-aligned{display:grid;grid-template-columns:max-content minmax(0,1fr);column-gap:0}.layer-children-aligned>.layer,.layer-children-aligned>.layer>.layer-elements{display:grid;grid-template-columns:subgrid;grid-column:1 / -1;row-gap:0;min-inline-size:0}.layer-children-aligned>.layer>.layer-elements{overflow:visible}}.layer-child{padding:0}.layer>.esri-widget__heading.layer-child-title{color:var(--calcite-color-text-1);font-weight:var(--calcite-font-weight-medium);font-size:var(--calcite-font-size)}`;function L(a){return"type"in a&&!!a.type}function w(a,e){let t=a.legendElements?.filter(Boolean);if(!a.parent||!a.title||t?.length!==1)return;let[i]=t;if(i.type!=="symbol-table"||i.infos.length!==1)return;let[r]=i.infos;if(!r||L(r))return;let l="preview"in r&&!!r.preview||"src"in r&&!!r.src,n="label"in r?u(e,r.label,!1):"";return l&&!n?a.title??void 0:void 0}var h=class extends p{constructor(){super(...arguments),this.headingLevel=3,this.type="classic"}static{this.properties={activeLayerInfos:0,headingLevel:9,type:32,messages:0}}static{this.styles=b}render(){let e=this.activeLayerInfos?.toArray().map(t=>this._renderLegendForLayer(t)).filter(Boolean);return e?.length?s`<section class="layers">${e}</section>`:s`<div class="no-legend">${this.messages.noLegend}</div>`}_renderLegendForLayer(e,t=!1){if(!e.ready)return null;let i=w(e,this.messages),r=e.title&&!i?v({level:this.headingLevel,class:e.parent?"layer-child-title":void 0,children:e.title}):null;if(e.children.length){let l=e.children.toArray(),n=l.length>0&&l.every(c=>!!w(c,this.messages)),o=n&&l.every(c=>!c.children.length),d=l.map(c=>this._renderLegendForLayer(c,o)),_=y("layer-children",{"layer-children-compact":n,"layer-children-aligned":o});return s`<section class="layer">${r}<div class=${g(_)}>${d}</div></section>`}return this._renderLegendElementsForLayer(e,r,i,t)}_renderLegendElementsForLayer(e,t,i,r=!1){let l=e.legendElements?.filter(Boolean);if(!l?.length)return null;let n=l.map(d=>s`<arcgis-legend-classic-element .cssEffectFilter=${e.cssEffectFilter??void 0} .inlineLayerTitle=${i} .alignSymbols=${r} .layer=${e.layer} .legendElement=${d} .messages=${this.messages}></arcgis-legend-classic-element>`),o={"layer-child":!!e.parent,"layer-child-inline-title":!!i};return s`<section class=${g(y("layer",o))}>${t}<div class="layer-elements">${n}</div></section>`}};f("arcgis-legend-classic-view",h);return h},a)
2
+ import a from"./YU5BTZEI.js";import{a as v}from"./NZTDSANC.js";import"./JD74LG7K.js";import"./QUZTFUWM.js";import{e as y}from"./OAXF6WOP.js";import{P as p,R as g,X as f,a as m,b as s}from"./4RV6TJ46.js";import"./H6RQVSYM.js";export default $arcgis.t(([{a:u}])=>{var b=m`.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}:host{display:block;padding:var(--arcgis-internal-padding, var(--calcite-spacing-md) var(--calcite-spacing-lg))}.layers{display:flex;flex-direction:column;gap:var(--arcgis-internal-legend-layer-gap)}.layers>.layer{position:relative}.layers>.layer:not(:last-child):after{content:"";position:absolute;left:0;right:0;bottom:calc(var(--arcgis-internal-legend-layer-gap) / -2);border-bottom:1px solid var(--calcite-color-border-2)}.layer>.esri-widget__heading{color:var(--calcite-color-text-1);margin:var(--arcgis-internal-legend-heading-margin);font-size:var(--calcite-font-size-md);font-weight:var(--calcite-font-weight-semibold)}.layer{word-wrap:break-word}.layer-elements{display:flex;flex-direction:column;gap:var(--arcgis-internal-legend-layer-element-gap);overflow:auto}.layer-children{display:flex;flex-direction:column;gap:var(--arcgis-internal-legend-layer-gap)}.layer-children>.layer{margin-inline-start:var(--arcgis-internal-legend-layer-padding);position:relative}.layer-children>.layer:not(:last-child):after{content:"";position:absolute;left:0;right:0;bottom:calc(var(--arcgis-internal-legend-layer-gap) / -2);border-bottom:1px solid var(--calcite-color-border-2)}.layer-children.layer-children-compact>.layer.layer-child-inline-title{margin-inline-start:0}.layer-children.layer-children-compact>.layer:not(:last-child):after{content:none}.layer-children.layer-children-compact{gap:var(--calcite-space-2xs)}@supports (grid-template-columns: subgrid){.layer-children.layer-children-aligned{display:grid;grid-template-columns:max-content minmax(0,1fr);column-gap:0}.layer-children-aligned>.layer,.layer-children-aligned>.layer>.layer-elements{display:grid;grid-template-columns:subgrid;grid-column:1 / -1;row-gap:0;min-inline-size:0}.layer-children-aligned>.layer>.layer-elements{overflow:visible}}.layer-child{padding:0}.layer>.esri-widget__heading.layer-child-title{color:var(--calcite-color-text-1);font-weight:var(--calcite-font-weight-medium);font-size:var(--calcite-font-size)}`;function L(a){return"type"in a&&!!a.type}function w(a,e){let t=a.legendElements?.filter(Boolean);if(!a.parent||!a.title||t?.length!==1)return;let[i]=t;if(i.type!=="symbol-table"||i.infos.length!==1)return;let[r]=i.infos;if(!r||L(r))return;let l="preview"in r&&!!r.preview||"src"in r&&!!r.src,n="label"in r?u(e,r.label,!1):"";return l&&!n?a.title??void 0:void 0}var h=class extends p{constructor(){super(...arguments),this.headingLevel=3,this.type="classic"}static{this.properties={activeLayerInfos:0,headingLevel:9,type:32,messages:0}}static{this.styles=b}render(){let e=this.activeLayerInfos?.toArray().map(t=>this._renderLegendForLayer(t)).filter(Boolean);return e?.length?s`<section class="layers">${e}</section>`:s`<div class="no-legend">${this.messages.noLegend}</div>`}_renderLegendForLayer(e,t=!1){if(!e.ready)return null;let i=w(e,this.messages),r=e.title&&!i?v({level:this.headingLevel,class:e.parent?"layer-child-title":void 0,children:e.title}):null;if(e.children.length){let l=e.children.toArray(),n=l.length>0&&l.every(c=>!!w(c,this.messages)),o=n&&l.every(c=>!c.children.length),d=l.map(c=>this._renderLegendForLayer(c,o)),_=y("layer-children",{"layer-children-compact":n,"layer-children-aligned":o});return s`<section class="layer">${r}<div class=${g(_)}>${d}</div></section>`}return this._renderLegendElementsForLayer(e,r,i,t)}_renderLegendElementsForLayer(e,t,i,r=!1){let l=e.legendElements?.filter(Boolean);if(!l?.length)return null;let n=l.map(d=>s`<arcgis-legend-classic-element .cssEffectFilter=${e.cssEffectFilter??void 0} .inlineLayerTitle=${i} .alignSymbols=${r} .layer=${e.layer} .legendElement=${d} .messages=${this.messages}></arcgis-legend-classic-element>`),o={"layer-child":!!e.parent,"layer-child-inline-title":!!i};return s`<section class=${g(y("layer",o))}>${t}<div class="layer-elements">${n}</div></section>`}};f("arcgis-legend-classic-view",h);return h},a)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{P as s,X as n,a as i,b as e}from"./33CM77ZT.js";import"./H6RQVSYM.js";var r=i`.advanced-options-container{padding:var(--calcite-spacing-xxs);display:flex;flex-direction:column;gap:var(--calcite-spacing-xs)}`,t=class extends s{static{this.properties={viewModel:0,messages:0}}static{this.styles=r}loaded(){this.manager.onLifecycle(()=>[])}render(){return e`<div aria-labelledby=${`${this.el.id}__advancedOptionsForLayout`} class="advanced-options-container">${this._renderScaleSection()}${this._renderDpiSection()}${this._renderOutSpatialReferenceSection()}${this._renderAttributionSection()}${this._renderCustomTextElementSection()}</div>`}_renderScaleSection(){return e`<arcgis-print-scale-section .messages=${this.messages} .viewModel=${this.viewModel}></arcgis-print-scale-section>`}_renderDpiSection(){return e`<arcgis-print-dpi-input .messages=${this.messages} .viewModel=${this.viewModel}></arcgis-print-dpi-input>`}_renderOutSpatialReferenceSection(){return e`<arcgis-print-out-spatial-reference-input .messages=${this.messages} .viewModel=${this.viewModel}></arcgis-print-out-spatial-reference-input>`}_renderAttributionSection(){return e`<div><calcite-label layout=inline><calcite-checkbox .checked=${this.viewModel.templateOptions.attributionEnabled} @calciteCheckboxChange=${a=>this.viewModel.templateOptions.attributionEnabled=a.target.checked}></calcite-checkbox>${this.messages.attribution}</calcite-label></div>`}_renderCustomTextElementSection(){return e`<arcgis-print-custom-text-elements .viewModel=${this.viewModel}></arcgis-print-custom-text-elements>`}};n("arcgis-print-map-only-advanced-options",t);export{t as PrintMapOnlyAdvancedOptions};
2
+ import{P as s,X as n,a as i,b as e}from"./4RV6TJ46.js";import"./H6RQVSYM.js";var r=i`.advanced-options-container{padding:var(--calcite-spacing-xxs);display:flex;flex-direction:column;gap:var(--calcite-spacing-xs)}`,t=class extends s{static{this.properties={viewModel:0,messages:0}}static{this.styles=r}loaded(){this.manager.onLifecycle(()=>[])}render(){return e`<div aria-labelledby=${`${this.el.id}__advancedOptionsForLayout`} class="advanced-options-container">${this._renderScaleSection()}${this._renderDpiSection()}${this._renderOutSpatialReferenceSection()}${this._renderAttributionSection()}${this._renderCustomTextElementSection()}</div>`}_renderScaleSection(){return e`<arcgis-print-scale-section .messages=${this.messages} .viewModel=${this.viewModel}></arcgis-print-scale-section>`}_renderDpiSection(){return e`<arcgis-print-dpi-input .messages=${this.messages} .viewModel=${this.viewModel}></arcgis-print-dpi-input>`}_renderOutSpatialReferenceSection(){return e`<arcgis-print-out-spatial-reference-input .messages=${this.messages} .viewModel=${this.viewModel}></arcgis-print-out-spatial-reference-input>`}_renderAttributionSection(){return e`<div><calcite-label layout=inline><calcite-checkbox .checked=${this.viewModel.templateOptions.attributionEnabled} @calciteCheckboxChange=${a=>this.viewModel.templateOptions.attributionEnabled=a.target.checked}></calcite-checkbox>${this.messages.attribution}</calcite-label></div>`}_renderCustomTextElementSection(){return e`<arcgis-print-custom-text-elements .viewModel=${this.viewModel}></arcgis-print-custom-text-elements>`}};n("arcgis-print-map-only-advanced-options",t);export{t as PrintMapOnlyAdvancedOptions};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{a as f,b as y,c as v}from"./7ZT4OUUW.js";import{a}from"./TN5C3MSL.js";import{a as p}from"./MRD6F6I3.js";import b from"./76ZJGD75.js";import{f as m}from"./6N7PM73F.js";import"./7IHIG427.js";import"./QUZTFUWM.js";import"./P2GMODLP.js";import{N as e,O as s,P as n,R as l,X as c,a as o,b as t,x as h}from"./33CM77ZT.js";import"./H6RQVSYM.js";export default $arcgis.t(([{watch:w},u,{c:d}])=>{var R=o`:host{width:100%;height:100%}`,g=d(u,{omitProps:["container","focusRegionVisible","focusRegionShortcutEnabled","navigation","scale","ui"]}),r=class extends n{constructor(){super(),this._containerRef=e(),this._direction=m(),this._mapRef=e(),this._slotGroupRefs=y(),this.autoDestroyDisabled=!1,this.view=g(this),this.attributionMode=this.view.attributionMode,this.ready=this.view.ready,this.layer=this.view.layer,this.map=this.view.map,this.operationalDataVisible=this.view.operationalDataVisible,this.arcgisViewReadyChange=h()}static{this.properties={autoDestroyDisabled:5,view:32,aria:0,attributionMode:1,ready:36,layer:0,map:0,operationalDataVisible:5}}static{this.styles=[p,f,R]}get aria(){return this.view?.aria}set aria(i){this.view&&(this.view.aria=i)}async destroy(){await this.manager.destroy()}loaded(){let i=this;i.el.childElem=this._mapRef.value,this.view.container??=i.el.childElem,this.manager.onLifecycle(()=>[w(()=>this.layer,()=>{this.layer&&this.view&&(this.view.layer=this.layer,this.layer.loaded||this.layer.load())},{initial:!0}),w(()=>this.view.ready,()=>{this.view.ready&&this.arcgisViewReadyChange.emit()},{initial:this.view.ready})])}renderMain(){return t`<div class=${`root ${a.base}`} ${s(this._mapRef)}></div>`}render(){return t`${this.renderMain()}<section class=${l(a.containerUI)} ${s(this._containerRef)}>${v({direction:this._direction,slotGroupRefs:this._slotGroupRefs})}</section>`}};c("arcgis-video",r);return r},"core/reactiveUtils","views/VideoView",b)
2
+ import{a as f,b as y,c as v}from"./ECIVIV6R.js";import{a}from"./TN5C3MSL.js";import{a as p}from"./NZVXGBAD.js";import b from"./2AUIXZ2Q.js";import{f as m}from"./ADCXAT6P.js";import"./3NB34PX4.js";import"./QUZTFUWM.js";import"./OAXF6WOP.js";import{N as e,O as s,P as n,R as l,X as c,a as o,b as t,x as h}from"./4RV6TJ46.js";import"./H6RQVSYM.js";export default $arcgis.t(([{watch:w},u,{c:d}])=>{var R=o`:host{width:100%;height:100%}`,g=d(u,{omitProps:["container","focusRegionVisible","focusRegionShortcutEnabled","navigation","scale","ui"]}),r=class extends n{constructor(){super(),this._containerRef=e(),this._direction=m(),this._mapRef=e(),this._slotGroupRefs=y(),this.autoDestroyDisabled=!1,this.view=g(this),this.attributionMode=this.view.attributionMode,this.ready=this.view.ready,this.layer=this.view.layer,this.map=this.view.map,this.operationalDataVisible=this.view.operationalDataVisible,this.arcgisViewReadyChange=h()}static{this.properties={autoDestroyDisabled:5,view:32,aria:0,attributionMode:1,ready:36,layer:0,map:0,operationalDataVisible:5}}static{this.styles=[p,f,R]}get aria(){return this.view?.aria}set aria(i){this.view&&(this.view.aria=i)}async destroy(){await this.manager.destroy()}loaded(){let i=this;i.el.childElem=this._mapRef.value,this.view.container??=i.el.childElem,this.manager.onLifecycle(()=>[w(()=>this.layer,()=>{this.layer&&this.view&&(this.view.layer=this.layer,this.layer.loaded||this.layer.load())},{initial:!0}),w(()=>this.view.ready,()=>{this.view.ready&&this.arcgisViewReadyChange.emit()},{initial:this.view.ready})])}renderMain(){return t`<div class=${`root ${a.base}`} ${s(this._mapRef)}></div>`}render(){return t`${this.renderMain()}<section class=${l(a.containerUI)} ${s(this._containerRef)}>${v({direction:this._direction,slotGroupRefs:this._slotGroupRefs})}</section>`}};c("arcgis-video",r);return r},"core/reactiveUtils","views/VideoView",b)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{a as o}from"./POKO37D3.js";import{O as h,P as g,U as a,X as d,a as r,b as i,x as l}from"./33CM77ZT.js";import"./H6RQVSYM.js";var p=r`:host{--arcgis-unit-select-inline-size: 180px}calcite-popover[calcite-hydrated-hidden]{inset-block-start:-999999px;inset-inline-start:-999999px}.popover-content{display:flex;flex-direction:column;gap:var(--calcite-spacing-md);padding:var(--calcite-spacing-md);max-width:300px}.uniform-chart-scaling-label{--calcite-label-margin-bottom: 0}.uniform-chart-scaling-checkbox-wrapper{width:var(--arcgis-unit-select-inline-size);flex-shrink:0}.slot-content{display:flex;flex-direction:column;gap:var(--calcite-spacing-sm)}.slot-content ::slotted(*){max-inline-size:100%}`,c=class extends g{constructor(){super(...arguments),this._onUniformChartScalingChange=t=>{this.arcgisElevationProfileSettingsUniformChartScalingChange.emit(t.currentTarget.checked)},this._onActionRef=t=>{this._actionElement=t??void 0},this._popoverIsOpen=!1,this.hideDistanceDisplayUnitSelect=!1,this.hideElevationDisplayUnitSelect=!1,this.hideResetUnitsButton=!1,this.hideUniformChartScalingToggle=!1,this.hasCustomStartContent=!1,this.hasCustomEndContent=!1,this.arcgisElevationProfileSettingsUniformChartScalingChange=l()}static{this.properties={_popoverIsOpen:16,_actionElement:16,viewModel:0,hideDistanceDisplayUnitSelect:5,hideElevationDisplayUnitSelect:5,hideResetUnitsButton:5,hideUniformChartScalingToggle:5,hasCustomStartContent:5,hasCustomEndContent:5,messages:0,uniformChartScaling:5,unitOptionsDistance:0,unitOptionsElevation:0,messageOverrides:0}}static{this.styles=p}async destroy(){await this.manager.destroy()}_onPopoverClose(){this._popoverIsOpen=!1}_onPopoverOpen(){this._popoverIsOpen=!0}render(){let{messages:t}=this;if(!t||!this.hasCustomStartContent&&!this.hasCustomEndContent&&this.hideDistanceDisplayUnitSelect&&this.hideElevationDisplayUnitSelect&&this.hideUniformChartScalingToggle)return;let e=(this._popoverIsOpen?t.hideSettings:t.showSettings)??"";return i`<calcite-action icon=gear .text=${e} title=${e??a} ${h(this._onActionRef)}></calcite-action>${this._actionElement?i`<calcite-popover auto-close .label=${e} placement=bottom-end .referenceElement=${this._actionElement} @calcitePopoverOpen=${this._onPopoverOpen} @calcitePopoverClose=${this._onPopoverClose}><div class="popover-content">${this._renderCustomContent("settings-start",this.hasCustomStartContent)}${this._renderUnitSelector()}${this._renderUniformChartScalingToggle()}${this._renderCustomContent("settings-end",this.hasCustomEndContent)}</div></calcite-popover>`:void 0}`}_renderUnitSelector(){let{hideResetUnitsButton:t,viewModel:e,messages:n}=this;if(!(!e||this.hideDistanceDisplayUnitSelect&&this.hideElevationDisplayUnitSelect))return i`${o({hidden:this.hideDistanceDisplayUnitSelect,children:i`<arcgis-unit-select .options=${this.unitOptionsDistance} .selectLabel=${n.unitDistanceSelectLabel} .value=${e.distanceUnit} .canReset=${!t&&e.canResetDistanceUnit} .resetLabel=${n.reset} @arcgisInternalUnitReset=${()=>e.resetUnit("distance")} .messageOverrides=${this.messageOverrides} @arcgisUnitSelectChange=${s=>{e.distanceUnit=s.detail}}></arcgis-unit-select>`})}${o({hidden:this.hideElevationDisplayUnitSelect,children:i`<arcgis-unit-select .options=${this.unitOptionsElevation} .selectLabel=${n.unitElevationSelectLabel} .value=${e.elevationUnit} .canReset=${!t&&e.canResetElevationUnit} .resetLabel=${n.reset} @arcgisInternalUnitReset=${()=>e.resetUnit("elevation")} .messageOverrides=${this.messageOverrides} @arcgisUnitSelectChange=${s=>{e.elevationUnit=s.detail}}></arcgis-unit-select>`})}`}_renderUniformChartScalingToggle(){let{messages:t,hideUniformChartScalingToggle:e,uniformChartScaling:n}=this;if(e)return;let s=t?.[n?"uniformChartScalingDisable":"uniformChartScalingEnable"]??"";return i`<calcite-label class="uniform-chart-scaling-label" layout=inline-space-between>${t?.uniformChartScalingLabel}<div class="uniform-chart-scaling-checkbox-wrapper"><calcite-checkbox .checked=${n} title=${s??a} @calciteCheckboxChange=${this._onUniformChartScalingChange}></calcite-checkbox></div></calcite-label>`}_renderCustomContent(t,e){if(e)return i`<div class="slot-content"><slot name=${t??a}></slot></div>`}};d("arcgis-elevation-profile-settings",c);export{c as ArcgisElevationProfileSettings};
2
+ import{a as o}from"./POKO37D3.js";import{O as h,P as g,U as a,X as d,a as r,b as i,x as l}from"./4RV6TJ46.js";import"./H6RQVSYM.js";var p=r`:host{--arcgis-unit-select-inline-size: 180px}calcite-popover[calcite-hydrated-hidden]{inset-block-start:-999999px;inset-inline-start:-999999px}.popover-content{display:flex;flex-direction:column;gap:var(--calcite-spacing-md);padding:var(--calcite-spacing-md);max-width:300px}.uniform-chart-scaling-label{--calcite-label-margin-bottom: 0}.uniform-chart-scaling-checkbox-wrapper{width:var(--arcgis-unit-select-inline-size);flex-shrink:0}.slot-content{display:flex;flex-direction:column;gap:var(--calcite-spacing-sm)}.slot-content ::slotted(*){max-inline-size:100%}`,c=class extends g{constructor(){super(...arguments),this._onUniformChartScalingChange=t=>{this.arcgisElevationProfileSettingsUniformChartScalingChange.emit(t.currentTarget.checked)},this._onActionRef=t=>{this._actionElement=t??void 0},this._popoverIsOpen=!1,this.hideDistanceDisplayUnitSelect=!1,this.hideElevationDisplayUnitSelect=!1,this.hideResetUnitsButton=!1,this.hideUniformChartScalingToggle=!1,this.hasCustomStartContent=!1,this.hasCustomEndContent=!1,this.arcgisElevationProfileSettingsUniformChartScalingChange=l()}static{this.properties={_popoverIsOpen:16,_actionElement:16,viewModel:0,hideDistanceDisplayUnitSelect:5,hideElevationDisplayUnitSelect:5,hideResetUnitsButton:5,hideUniformChartScalingToggle:5,hasCustomStartContent:5,hasCustomEndContent:5,messages:0,uniformChartScaling:5,unitOptionsDistance:0,unitOptionsElevation:0,messageOverrides:0}}static{this.styles=p}async destroy(){await this.manager.destroy()}_onPopoverClose(){this._popoverIsOpen=!1}_onPopoverOpen(){this._popoverIsOpen=!0}render(){let{messages:t}=this;if(!t||!this.hasCustomStartContent&&!this.hasCustomEndContent&&this.hideDistanceDisplayUnitSelect&&this.hideElevationDisplayUnitSelect&&this.hideUniformChartScalingToggle)return;let e=(this._popoverIsOpen?t.hideSettings:t.showSettings)??"";return i`<calcite-action icon=gear .text=${e} title=${e??a} ${h(this._onActionRef)}></calcite-action>${this._actionElement?i`<calcite-popover auto-close .label=${e} placement=bottom-end .referenceElement=${this._actionElement} @calcitePopoverOpen=${this._onPopoverOpen} @calcitePopoverClose=${this._onPopoverClose}><div class="popover-content">${this._renderCustomContent("settings-start",this.hasCustomStartContent)}${this._renderUnitSelector()}${this._renderUniformChartScalingToggle()}${this._renderCustomContent("settings-end",this.hasCustomEndContent)}</div></calcite-popover>`:void 0}`}_renderUnitSelector(){let{hideResetUnitsButton:t,viewModel:e,messages:n}=this;if(!(!e||this.hideDistanceDisplayUnitSelect&&this.hideElevationDisplayUnitSelect))return i`${o({hidden:this.hideDistanceDisplayUnitSelect,children:i`<arcgis-unit-select .options=${this.unitOptionsDistance} .selectLabel=${n.unitDistanceSelectLabel} .value=${e.distanceUnit} .canReset=${!t&&e.canResetDistanceUnit} .resetLabel=${n.reset} @arcgisInternalUnitReset=${()=>e.resetUnit("distance")} .messageOverrides=${this.messageOverrides} @arcgisUnitSelectChange=${s=>{e.distanceUnit=s.detail}}></arcgis-unit-select>`})}${o({hidden:this.hideElevationDisplayUnitSelect,children:i`<arcgis-unit-select .options=${this.unitOptionsElevation} .selectLabel=${n.unitElevationSelectLabel} .value=${e.elevationUnit} .canReset=${!t&&e.canResetElevationUnit} .resetLabel=${n.reset} @arcgisInternalUnitReset=${()=>e.resetUnit("elevation")} .messageOverrides=${this.messageOverrides} @arcgisUnitSelectChange=${s=>{e.elevationUnit=s.detail}}></arcgis-unit-select>`})}`}_renderUniformChartScalingToggle(){let{messages:t,hideUniformChartScalingToggle:e,uniformChartScaling:n}=this;if(e)return;let s=t?.[n?"uniformChartScalingDisable":"uniformChartScalingEnable"]??"";return i`<calcite-label class="uniform-chart-scaling-label" layout=inline-space-between>${t?.uniformChartScalingLabel}<div class="uniform-chart-scaling-checkbox-wrapper"><calcite-checkbox .checked=${n} title=${s??a} @calciteCheckboxChange=${this._onUniformChartScalingChange}></calcite-checkbox></div></calcite-label>`}_renderCustomContent(t,e){if(e)return i`<div class="slot-content"><slot name=${t??a}></slot></div>`}};d("arcgis-elevation-profile-settings",c);export{c as ArcgisElevationProfileSettings};
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
+ import{a as te}from"./IZ46HAUJ.js";import s from"./TEK53J2W.js";import"./P4KPVFIJ.js";import{a as g}from"./JCRPP54Z.js";import r from"./HYLGOTBI.js";import o from"./WCGW4J2U.js";import{a as q,b as j,c as z,g as M,h as J,j as K,k as Q,m,n as A}from"./FCNNRX3Q.js";import{a as H}from"./ZULRPUWX.js";import{a as b}from"./VA4XYI2T.js";import n from"./OEZYCVVM.js";import l from"./TMJX7DFH.js";import k from"./W5B5MEWO.js";import"./VJVKFKSG.js";import i from"./WUHODB3Q.js";import{a as B}from"./TGYMVPHQ.js";import{a as w}from"./JD74LG7K.js";import{a as G}from"./CGWUI23C.js";import h from"./KRH5MPGH.js";import e from"./2AUIXZ2Q.js";import c from"./7MIPKJAL.js";import{h as U}from"./ADCXAT6P.js";import"./3NB34PX4.js";import a from"./BKPTL2TC.js";import"./QUZTFUWM.js";import{e as N}from"./OAXF6WOP.js";import{B as P,N as L,O as f,P as R,R as v,U as E,V as F,X as x,b as d,x as p}from"./4RV6TJ46.js";import"./H6RQVSYM.js";export default $arcgis.t(([le,u,{on:T,watch:ie},,,,S,k,,,,,{e:V,h:W,k:X},{a:Y,b:Z,c:ee}])=>{var se="nested",oe=k(le),O=class extends R{constructor(){super(...arguments),this._lastDragDetail=null,this._rootListRef=L(),this._layerFlowItemRef=L(),this._panelFlowItemRef=L(),this._selectedDragItemLayerUid=null,this._rootGroupUid=`operational-${P()}`,this._openedLayersController=null,this._updateAnimationFrame=null,this.messages=B(),this._canMove=({dragEl:e,fromEl:t,toEl:i},a)=>{let s=a==="pull"?this.listItemCanGiveFunction:this.listItemCanReceiveFunction,r=m(e,this.operationalItems);if(!r?.sortable)return!1;let l=this._resolveListContainer(t),o=this._resolveListContainer(i),n=this._getContainerItem(l),c=A(l),_=this._getContainerItem(o),y=A(o),$=!!c&&!!y&&c===y,I={selected:r,from:n,to:_},C=l?.group,h=o?.group,ae=n?.layer?.type??"",re=_?.layer?.type??"",D=new Set(["map-image","catalog","knowledge-graph"]);return C&&h&&typeof s=="function"?s(I):$&&!D.has(ae)&&!D.has(re)&&r?.layer?.type!=="sublayer"},this._onCatalogOpen=e=>{this.openedLayers.push(e.layer?.parent)},this._onTablesOpen=e=>{this.openedLayers.push(e.layer)},this._clearActiveItem=()=>{this._activeItem=null},this._setCurrentActiveItem=e=>{this._activeItem=e},this._setActiveItem=e=>{if(this.visibilityAppearance!=="default")return;let t=Array.from(e.composedPath()).find(a=>a.classList?.contains(g.item)),i=m(t,this.operationalItems);this._activeItem=i},this._scheduleUpdate=()=>{this._updateAnimationFrame===null&&(this._updateAnimationFrame=requestAnimationFrame(()=>{this._updateAnimationFrame=null,this.isConnected&&this.requestUpdate()}))},this._cancelScheduledUpdate=()=>{this._updateAnimationFrame!==null&&(cancelAnimationFrame(this._updateAnimationFrame),this._updateAnimationFrame=null)},this.viewModel=oe(this),this.arcgisClose=G(this),this._activeItem=null,this._onTooltipReferenceChange=(e,t)=>{t?this._tooltipReferenceMap.set(e,t):this._tooltipReferenceMap.delete(e)},this._onSelectedDragItemLayerUidChange=e=>{this._selectedDragItemLayerUid=e},this._onTriggerAction=(e,t)=>{this.triggerAction(e,t)},this._tooltipReferenceMap=new Map,this._layerListMap=new Map,this.layerTablesEnabled=new u(["knowledge-graph"]),this.mapImageOptions=null,this.openedLayerLists=new u,this.tileOptions=null,this.autoDestroyDisabled=!1,this.closed=!1,this.collapsed=!1,this.dragEnabled=!1,this.filterPlaceholder="",this.filterText="",this.headingLevel=2,this.hideCatalogLayerList=!1,this.hideNoFilterResultsNotice=!1,this.hideNoItemsNotice=!1,this.hideStatusIndicators=!1,this.icon="layers",this.layerTablesAvailable=new u(["knowledge-graph"]),this.listItemCreatedFunction=this.viewModel.listItemCreatedFunction,this.listModeDisabled=this.viewModel.listModeDisabled,this.minDragEnabledItems=z,this.minFilterItems=j,this.openedLayers=new u,this.operationalItems=this.viewModel.operationalItems,this.selectedItems=new u,this.selectionMode="none",this.showCloseButton=!1,this.showCollapseButton=!1,this.showErrors=!1,this.showFilter=!1,this.showHeading=!1,this.showTemporaryLayerIndicators=!1,this.state=this.viewModel.state,this.view=this.viewModel.view,this.visibilityAppearance="default",this.arcgisFilterChange=p(),this.arcgisOpenedLayersChange=p(),this.arcgisPropertyChange=U()("state"),this.arcgisReady=p(),this.arcgisSelectedItemsChange=p(),this.arcgisTriggerAction=S(()=>this.viewModel,"trigger-action")}static{this.properties={_catalogLayerList:16,_tableList:16,_tooltipReferenceMap:16,_layerListMap:16,_totalItems:16,_visibleItems:16,_openedPanelItems:16,_dragEnabled:16,_filterEnabled:16,layerTablesEnabled:16,mapImageOptions:16,openedLayerLists:16,tileOptions:16,_renderedOpenLayerFlowItems:16,autoDestroyDisabled:5,catalogLayerList:32,catalogOptions:0,closed:5,collapsed:5,dragEnabled:5,filterPlaceholder:1,filterPredicate:0,filterText:1,headingLevel:9,hideCatalogLayerList:5,hideNoFilterResultsNotice:5,hideNoItemsNotice:5,hideStatusIndicators:5,icon:1,knowledgeGraphOptions:0,label:1,layerTablesAvailable:0,listItemCanGiveFunction:0,listItemCanReceiveFunction:0,listItemCreatedFunction:0,listModeDisabled:5,messageOverrides:0,minDragEnabledItems:9,minFilterItems:9,openedLayers:32,operationalItems:0,referenceElement:1,selectedItems:0,selectionMode:1,showCloseButton:5,showCollapseButton:5,showErrors:5,showFilter:5,showHeading:5,showTemporaryLayerIndicators:5,state:32,tableList:32,view:0,visibilityAppearance:1}}static{this.styles=[ee,Z]}get _totalItems(){return this.viewModel.operationalItems.flatten(e=>e.children.filter(t=>t.layer?.type!=="catalog-dynamic-group")).length}get _visibleItems(){return this.operationalItems?.filter(e=>!e.hidden&&(this.showErrors||!e.error))}get _openedPanelItems(){return this._visibleItems.flatten(e=>e.children).filter(e=>!e.hidden&&e.panel?.open&&!e.panel.disabled&&e.panel.flowEnabled&&(!W(e)||V(e)))}get _dragEnabled(){return this._totalItems>=this.minDragEnabledItems&&this.dragEnabled}get _filterEnabled(){return this._totalItems>=this.minFilterItems&&this.showFilter}get _renderedOpenLayerFlowItems(){let{openedLayers:e}=this;return e.toArray().map((t,i)=>this._renderLayerFlowItem(t,i===e.length-1))}get catalogLayerList(){return this._catalogLayerList}get tableList(){return this._tableList}async destroy(){await this.manager.destroy(),this._destroyOpenedLayerLists(),this._tooltipReferenceMap.clear()}loaded(){this.manager.onLifecycle(()=>[T(()=>this.openedLayers,"change",()=>{this._handleOpenedLayersChange()},{initial:!0}),T(()=>this.viewModel.operationalItems,"change",()=>M(this.selectedItems),{initial:!0}),ie(()=>this.operationalItems.flatten(e=>e.children).map(e=>e.uid).join(","),()=>{M(this.selectedItems),this._scheduleUpdate()},{initial:!0}),te(this._cancelScheduledUpdate),T(()=>this.selectedItems,"change",()=>this.arcgisSelectedItemsChange.emit()),ie(()=>[this.filterPredicate,this._rootListRef.value],()=>J(this._rootListRef.value,this.filterPredicate,this.operationalItems))])}triggerAction(e,t){return this.viewModel.triggerAction(e,t)}_resolveListContainer(e){return e?e.matches("calcite-list")?e:e.closest("calcite-list[data-item]")||(this._rootListRef.value?.contains(e)?this._rootListRef.value:null):null}_getContainerItem(e){let t=e?.getAttribute("data-item");return t?this._findItemByUid(t):null}_findItemByUid(e){let t=this.operationalItems?.toArray()??[];for(;t.length;){let i=t.shift();if(!i)continue;if(i.uid===e)return i;let a=i.children?.toArray()??[];t.push(...a)}return null}async _createFlowList(e,t){let{_layerListMap:i}=this,a=i.get(e);if(a)return a;let s=e.type==="catalog"?await this._createCatalogLayerList(e):await this._createTableList(e);return t.aborted||i.set(e,s),s}async _handleOpenedLayersChange(){let{_layerListMap:e,openedLayers:t,openedLayerLists:i}=this;this._openedLayersController?.abort();let a=new AbortController,{signal:s}=a;this._openedLayersController=a,e.forEach((o,n)=>{t.includes(n)||(o?.destroy?.(),e.delete(n))});let r=await Promise.all(t.map(o=>this._createFlowList(o,s)));if(s.aborted)return;i.removeAll(),i.addMany(r);let l=i.at(-1);l?"catalogLayer"in l?(this._catalogLayerList=l,this._tableList=void 0):(this._catalogLayerList=void 0,this._tableList=l):(this._catalogLayerList=void 0,this._tableList=void 0),this.arcgisOpenedLayersChange.emit()}_destroyOpenedLayerLists(){this.openedLayerLists.destroyAll(),this.openedLayers.removeAll(),this._layerListMap.clear()}async _createCatalogLayerList(e){let{headingLevel:t,catalogOptions:i,filterPlaceholder:a,listItemCreatedFunction:s,minFilterItems:r,selectionMode:l,visibilityAppearance:o}=this;return F(d`<arcgis-catalog-layer-list-next .headingLevel=${t} .filterPlaceholder=${i?.filterPlaceholder??a} .listItemCreatedFunction=${i?.listItemCreatedFunction??s} .minFilterItems=${i?.minFilterItems??r} .selectionMode=${i?.selectionMode??l} .visibilityAppearance=${i?.visibilityAppearance??o} .showErrors=${i?.showErrors??this.showErrors} .showFilter=${i?.showFilter??this.showFilter} .hideStatusIndicators=${i?.hideStatusIndicators??this.hideStatusIndicators} .showTemporaryLayerIndicators=${i?.showTemporaryLayerIndicators??this.showTemporaryLayerIndicators} .messageOverrides=${this.messageOverrides} @arcgisReady=${n=>n.stopPropagation()} .catalogLayer=${e} .view=${this.view} .referenceElement=${this.referenceElement} @catalogOpen=${this._onCatalogOpen} @tablesOpen=${this._onTablesOpen}></arcgis-catalog-layer-list-next>`)}_getTableListParams(e){switch(e.type){case"knowledge-graph":return{...this.knowledgeGraphOptions,tables:e.tables};case"map-image":return{...this.mapImageOptions,tables:e.subtables};case"tile":return{...this.tileOptions,tables:e.subtables};default:return null}}async _createTableList(e){let{headingLevel:t,selectionMode:i,dragEnabled:a}=this,s=this._getTableListParams(e);return F(d`<arcgis-table-list-next .headingLevel=${s?.headingLevel??t} .selectionMode=${s?.selectionMode??i} .dragEnabled=${s?.dragEnabled??a} .collapsed=${s?.collapsed} .filterPlaceholder=${s?.filterPlaceholder} .filterText=${s?.filterText} .icon=${s?.icon??void 0} .label=${s?.label??void 0} .listItemCreatedFunction=${s?.listItemCreatedFunction} .messageOverrides=${this.messageOverrides} .tables=${s?.tables} .referenceElement=${this.referenceElement} @arcgisReady=${r=>r.stopPropagation()}></arcgis-table-list-next>`)}_handlePanelFlowItemBack(e){e.open=!1}_moveLayerFromChildList({toEl:e,fromEl:t,dragEl:i,newIndex:a}){let s=this._resolveListContainer(e),r=this._resolveListContainer(t),l=m(i,this.operationalItems),o=this._getContainerItem(s),n=this._getContainerItem(r);a==null||!l||(this.viewModel.moveItem(l,n,o,a),X(this,l.uid,c=>c!==i&&this._resolveListContainer(c.parentElement)===s))}_onCalciteListDragEnd(e){let{fromEl:t,toEl:i,dragEl:a,oldIndex:s}=e;if(t!==i){a.remove();return}s==null||!t||!a||t.insertBefore(a,t.children[s])}_onCalciteListOrderChange(e){let{_lastDragDetail:t}=this,{dragEl:i,newIndex:a}=e,s=this._resolveListContainer(e.fromEl),r=this._resolveListContainer(e.toEl),l=t?.newIndex===a&&t?.dragEl===i&&t?.toEl===r&&t?.fromEl===s;if(!(!s||!r||l)){if(this._lastDragDetail={...e,fromEl:s,toEl:r},this._selectedDragItemLayerUid=i.value.layer?.uid??null,s===r){let o=Array.from(s.children).filter(n=>n?.matches("calcite-list-item")).map(n=>n.value.layer?.uid??"");this._sortLayers(s,o);return}this._moveLayerFromChildList({toEl:r,fromEl:s,dragEl:i,newIndex:a})}}_sortLayers(e,t){if(e)if(e===this._rootListRef.value)K(this.el.view?.map?.layers,t);else{let i=m(e,this.operationalItems);if(!i)return;Q(i,t)}}_handleCalciteListChange(e){let{selectionMode:t,selectedItems:i}=this;if(t==="none")return;let a=e.target.selectedItems.map(s=>m(s,this.operationalItems)).filter(Boolean);i.removeAll(),i.addMany(a)}render(){let{state:e}=this,t={[w.hidden]:e==="loading",[w.disabled]:e==="disabled"};return d`<div class=${v(N(w.widget,t))}>${this._visibleItems?.length?this._renderItemTooltips():null}${this._renderItems()}</div>`}_renderItemTooltip(e){let{_tooltipReferenceMap:t,messages:i}=this;return e?d`<calcite-tooltip overlay-positioning=fixed .referenceElement=${t.get(e.layer?.uid??"")}>${i.layerIncompatibleTooltip}</calcite-tooltip>`:null}_renderItemTooltipNodes(e){if(e.incompatible)return this._renderItemTooltip(e);let t=e.children?.filter(i=>!i.hidden).toArray().map(i=>this._renderItemTooltipNodes(i))??[];return t.length?t:null}_renderItemTooltips(){return this._visibleItems?.toArray().map(e=>this._renderItemTooltipNodes(e))}_renderNoItemsMessage(){return d`<div slot=message>${this.messages.noItemsToDisplay}</div>`}_renderNoItems(){return this.hideNoItemsNotice?null:d`<div class=${v(g.itemMessage)}><calcite-notice icon=information kind=info open width=full>${this._renderNoItemsMessage()}</calcite-notice></div>`}_renderLayerFlowItem(e,t){let{messages:i,openedLayers:a}=this,s=e.title||this.messages.untitledLayer;return b(e?.uid??s,d`<calcite-flow-item data-layer-uid=${e?.uid??""??E} .description=${s} .heading=${i[e.type==="catalog"?"catalogLayers":"tables"]} .headingLevel=${this.headingLevel} .selected=${t} @calciteFlowItemBack=${r=>{r.preventDefault(),a.pop(),a.at(-1)&&this._layerFlowItemRef.value?.setFocus()}} ${f(this._layerFlowItemRef)}>${this._layerListMap.get(e)}</calcite-flow-item>`)}_renderPanelFlowItems(){let{_openedPanelItems:e,openedLayers:t}=this;return H(e.toArray(),i=>i.uid,(i,a)=>{let{panel:s,title:r}=i,l=()=>this._handlePanelFlowItemBack(s);return d`<calcite-flow-item .description=${r} .heading=${s.title} .headingLevel=${this.headingLevel} .selected=${!t.length&&a===e.length-1} @calciteFlowItemBack=${o=>{o.preventDefault(),l()}} ${f(this._panelFlowItemRef)}><arcgis-layer-list-item-panel .item=${i} .view=${this.view}></arcgis-layer-list-item-panel><calcite-button appearance=transparent @click=${l} slot=footer-actions width=full>${this.messages.back}</calcite-button></calcite-flow-item>`})}_renderItems(){let{collapsed:e,_visibleItems:t,_openedPanelItems:i,_filterEnabled:a,_rootGroupUid:s,showCloseButton:r,showCollapseButton:l,showHeading:o,_dragEnabled:n,selectionMode:c,filterText:_,openedLayers:y,filterPlaceholder:$,messages:I}=this,C=[d`<calcite-flow-item .closable=${r} .closed=${this.closed} .collapsed=${e} .collapsible=${l} .heading=${o?I.componentLabel:void 0} .headingLevel=${this.headingLevel} .selected=${!y.length&&!i.length} @calciteFlowItemClose=${()=>this.closed=!1}>${t?.length?d`<calcite-list @focusin=${this._setActiveItem} @focusout=${this._clearActiveItem} .canPull=${h=>this._canMove(h,"pull")} .canPut=${h=>this._canMove(h,"put")} data-layer-type=${s??E} .displayMode=${se} .dragEnabled=${n} .filterEnabled=${a} .filterPlaceholder=${$} .filterProps=${q} .filterText=${a?_:""} .group=${s} .label=${I.componentLabel} @mouseleave=${this._clearActiveItem} @mouseover=${this._setActiveItem} selection-appearance=highlight .selectionMode=${c} @calciteListChange=${this._handleCalciteListChange} @calciteListFilter=${h=>{this.filterText=h.currentTarget?.filterText??"",this.arcgisFilterChange.emit()}} @calciteListOrderChange=${h=>this._onCalciteListOrderChange(h.detail)} @calciteListDragEnd=${h=>this._onCalciteListDragEnd(h.detail)} ${f(this._rootListRef)}>${t.toArray().map(h=>this._renderItem(h))}${a&&!this.hideNoFilterResultsNotice?d`<div class=${v(g.filterNoResults)} slot=filter-no-results><calcite-notice kind=info open width=full>${this._renderNoItemsMessage()}</calcite-notice></div>`:null}</calcite-list>`:this._renderNoItems()}</calcite-flow-item>`,this._renderPanelFlowItems(),this._renderedOpenLayerFlowItems];return this.closed?null:b("root-flow",d`<calcite-flow>${C}</calcite-flow>`)}_renderItem(e,t,i){return b(e.uid,Y({activeItem:this._activeItem,canMove:this._canMove,css:g,displayMode:se,dragEnabled:this.dragEnabled,hideStatusIndicators:this.hideStatusIndicators,hideCatalogLayerList:this.hideCatalogLayerList,item:e,messages:this.messages,layerTablesEnabled:this.layerTablesEnabled,listModeDisabled:this.viewModel.listModeDisabled,operationalItems:this.operationalItems,parent:t,parentTitles:i,rootGroupUid:this._rootGroupUid,selectedDragItemLayerUid:this._selectedDragItemLayerUid,selectedItems:this.selectedItems,selectionMode:this.selectionMode,setCurrentActiveItem:this._setCurrentActiveItem,showTemporaryLayerIndicators:this.showTemporaryLayerIndicators,showCloseButton:this.showCloseButton,showCollapseButton:this.showCollapseButton,showErrors:this.showErrors,showHeading:this.showHeading,showFilter:this.showFilter,clearActiveItem:this._clearActiveItem,visibilityAppearance:this.visibilityAppearance,handleAction:this._onTriggerAction,handleCatalogOpen:this._onCatalogOpen,handleSelectedDragItemLayerUidChange:this._onSelectedDragItemLayerUidChange,handleTablesOpen:this._onTablesOpen,handleTooltipReferenceChange:this._onTooltipReferenceChange,view:this.view}))}};x("arcgis-layer-list-next",O);return O},"layerList/LayerListModel","core/Collection","core/reactiveUtils",a,c,e,h,i,k,l,n,o,r,s)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import e from"./CEUIFOR6.js";import{a as m}from"./7EMK74ZF.js";import d from"./PPURK2BH.js";import"./6N7PM73F.js";import"./7IHIG427.js";import b from"./2IYRSXZS.js";import"./QUZTFUWM.js";import"./P2GMODLP.js";import{P as h,S as n,X as g,a as r,b as a,c as l,p as c,x as o}from"./33CM77ZT.js";import"./H6RQVSYM.js";export default $arcgis.t(([{getApplicationClipboard:f},u,,{a:p},{a:d,b:v}])=>{var y=r`.flex{display:flex}.flex-row{flex-direction:row}.justify-center{justify-content:center}.text-center{text-align:center}`,s=class extends h{constructor(){super(...arguments),this._messages=m(),this._hoverHightlightHandle=null,this.maxShowCount=100,this.hideTooltips=!1,this.view=p(this),this.arcgisReady=o()}static{this.properties={clipboard:32,maxShowCount:9,hideTooltips:5,view:0,referenceElement:1}}static{this.styles=y}get clipboard(){return f()}_removeClipboardItem(e){try{this._clearHighlightSelectedGraphic();let t=this.clipboard.items.filter(i=>i!==e);this.clipboard.setData(t.toArray())}catch{c("error",this,"Failed removing clipboard item")}}_highlightSelectedGraphicOnMap(e){if(this._clearHighlightSelectedGraphic(),!e.graphic?.geometry||!this.view)return;let t=new u({geometry:e.graphic.geometry,symbol:v(e.graphic.geometry.type)});this.view.graphics.add(t),this._hoverHightlightHandle={remove:()=>{this.view.graphics.remove(t)}}}_clearHighlightSelectedGraphic(){this._hoverHightlightHandle&&this._hoverHightlightHandle.remove(),this._hoverHightlightHandle=null}render(){let e=this.clipboard.items.slice(0,100);return e.length===0?a`<div class="pad-contents"><div class="flex flex-row justify-center"><svg xmlns=http://www.w3.org/2000/svg height=92 width=92 style=${n({strokeWidth:"0.1px",fill:"var(--calcite-color-text-2)"})} viewBox="0 0 64 64">${l`<path d="M21 18h-1v-3h1zm24-3h-1v3h1zm0 5h-1v3h1zm-24 0h-1v3h1zm9.84 13.71l.3.954 3.02-.954-.3-.953zm-6.04 1.908l.3.953 3.02-.953-.3-.953zm-3.8 1.2V35h-1v3.182l2.08-.657-.3-.953zM21 30h-1v3h1zm0-5h-1v3h1zm27.816 5.896l-4.746.015 2.294 4.575-3.071 1.535-2.358-4.668-2.835 3.886V23.036zm-6.04-.78l3.607-.012-7.483-5.49v9.17l2.16-2.96 2.587 5.126 1.643-.821zM60.9 10.874v41.25a1.777 1.777 0 0 1-1.775 1.775H4.875A1.777 1.777 0 0 1 3.1 52.125v-41.25A1.777 1.777 0 0 1 4.875 9.1h54.25a1.777 1.777 0 0 1 1.775 1.775zm-.8 24.54l-24.2 7.641V53.1h23.225a.976.976 0 0 0 .975-.975zm0-24.54a.976.976 0 0 0-.975-.975H45V13h-1V9.9H21V13h-1V9.9H4.875a.976.976 0 0 0-.975.975V32.1H18v.8H3.9v19.225a.976.976 0 0 0 .975.975H35.1V35.51l.8-.252v6.96l24.2-7.643z" />`}</svg></div><p class="text-center">${this._messages.noClipboardData??""}</p></div>`:a`${e.length!==this.clipboard.items.length?a`<calcite-notice scale=s><div slot=message>${this._messages.tooManyClipboardItems??""}</div></calcite-notice>`:""}<calcite-list .label=${this._messages.clipboardContents??""}>${e.map(t=>t.type==="feature"&&t.layer?a`<calcite-list-item @pointerenter=${i=>{this._highlightSelectedGraphicOnMap(t),i.target.classList.add("hovering")}} @pointerleave=${i=>{i.target.classList.remove("hovering"),this._clearHighlightSelectedGraphic()}}><arcgis-feature-title slot=content .graphic=${t.graphic} .layer=${t.layer}></arcgis-feature-title><arcgis-feature-image width-in-pixels=16 height-in-pixels=16 use-true-shape slot=content-start .graphic=${t.graphic} .layer=${t.layer}></arcgis-feature-image><calcite-action slot=actions-end icon=x @click=${()=>{this._removeClipboardItem(t)}} .text=${this._messages.removeClipboardItem??""}></calcite-action></calcite-list-item>`:t.type==="feature"&&!t.layer&&t.graphic?.geometry?a`<calcite-list-item @pointerenter=${i=>{this._highlightSelectedGraphicOnMap(t),i.target.classList.add("hovering")}} @pointerleave=${i=>{i.target.classList.remove("hovering"),this._clearHighlightSelectedGraphic()}}><arcgis-feature-image width-in-pixels=16 height-in-pixels=16 use-true-shape .actualSymbol=${d(t.graphic.geometry.type)} slot=content-start .graphic=${t.graphic}></arcgis-feature-image><span slot=content>${this._messages.clipboardDataItem??""}</span><calcite-action slot=actions-end icon=x @click=${()=>{this._removeClipboardItem(t)}} .text=${this._messages.removeClipboardItem??""}></calcite-action></calcite-list-item>`:a`<calcite-list-item><calcite-icon slot=content-start scale=s icon=file-data></calcite-icon><span slot=content>${this._messages.clipboardDataItem??""}</span><calcite-action slot=actions-end icon=trash @click=${()=>{this._removeClipboardItem(t)}} .text=${this._messages.removeClipboardItem??""}></calcite-action></calcite-list-item>`)}</calcite-list>`}};g("arcgis-clipboard",s);return s},"applications/Components/clipboard","Graphic",b,d,e)
2
+ import e from"./CEUIFOR6.js";import{a as m}from"./TGYMVPHQ.js";import d from"./7MIPKJAL.js";import"./ADCXAT6P.js";import"./3NB34PX4.js";import b from"./BKPTL2TC.js";import"./QUZTFUWM.js";import"./OAXF6WOP.js";import{P as h,S as n,X as g,a as r,b as a,c as l,p as c,x as o}from"./4RV6TJ46.js";import"./H6RQVSYM.js";export default $arcgis.t(([{getApplicationClipboard:f},u,,{a:p},{a:d,b:v}])=>{var y=r`.flex{display:flex}.flex-row{flex-direction:row}.justify-center{justify-content:center}.text-center{text-align:center}`,s=class extends h{constructor(){super(...arguments),this._messages=m(),this._hoverHightlightHandle=null,this.maxShowCount=100,this.hideTooltips=!1,this.view=p(this),this.arcgisReady=o()}static{this.properties={clipboard:32,maxShowCount:9,hideTooltips:5,view:0,referenceElement:1}}static{this.styles=y}get clipboard(){return f()}_removeClipboardItem(e){try{this._clearHighlightSelectedGraphic();let t=this.clipboard.items.filter(i=>i!==e);this.clipboard.setData(t.toArray())}catch{c("error",this,"Failed removing clipboard item")}}_highlightSelectedGraphicOnMap(e){if(this._clearHighlightSelectedGraphic(),!e.graphic?.geometry||!this.view)return;let t=new u({geometry:e.graphic.geometry,symbol:v(e.graphic.geometry.type)});this.view.graphics.add(t),this._hoverHightlightHandle={remove:()=>{this.view.graphics.remove(t)}}}_clearHighlightSelectedGraphic(){this._hoverHightlightHandle&&this._hoverHightlightHandle.remove(),this._hoverHightlightHandle=null}render(){let e=this.clipboard.items.slice(0,100);return e.length===0?a`<div class="pad-contents"><div class="flex flex-row justify-center"><svg xmlns=http://www.w3.org/2000/svg height=92 width=92 style=${n({strokeWidth:"0.1px",fill:"var(--calcite-color-text-2)"})} viewBox="0 0 64 64">${l`<path d="M21 18h-1v-3h1zm24-3h-1v3h1zm0 5h-1v3h1zm-24 0h-1v3h1zm9.84 13.71l.3.954 3.02-.954-.3-.953zm-6.04 1.908l.3.953 3.02-.953-.3-.953zm-3.8 1.2V35h-1v3.182l2.08-.657-.3-.953zM21 30h-1v3h1zm0-5h-1v3h1zm27.816 5.896l-4.746.015 2.294 4.575-3.071 1.535-2.358-4.668-2.835 3.886V23.036zm-6.04-.78l3.607-.012-7.483-5.49v9.17l2.16-2.96 2.587 5.126 1.643-.821zM60.9 10.874v41.25a1.777 1.777 0 0 1-1.775 1.775H4.875A1.777 1.777 0 0 1 3.1 52.125v-41.25A1.777 1.777 0 0 1 4.875 9.1h54.25a1.777 1.777 0 0 1 1.775 1.775zm-.8 24.54l-24.2 7.641V53.1h23.225a.976.976 0 0 0 .975-.975zm0-24.54a.976.976 0 0 0-.975-.975H45V13h-1V9.9H21V13h-1V9.9H4.875a.976.976 0 0 0-.975.975V32.1H18v.8H3.9v19.225a.976.976 0 0 0 .975.975H35.1V35.51l.8-.252v6.96l24.2-7.643z" />`}</svg></div><p class="text-center">${this._messages.noClipboardData??""}</p></div>`:a`${e.length!==this.clipboard.items.length?a`<calcite-notice scale=s><div slot=message>${this._messages.tooManyClipboardItems??""}</div></calcite-notice>`:""}<calcite-list .label=${this._messages.clipboardContents??""}>${e.map(t=>t.type==="feature"&&t.layer?a`<calcite-list-item @pointerenter=${i=>{this._highlightSelectedGraphicOnMap(t),i.target.classList.add("hovering")}} @pointerleave=${i=>{i.target.classList.remove("hovering"),this._clearHighlightSelectedGraphic()}}><arcgis-feature-title slot=content .graphic=${t.graphic} .layer=${t.layer}></arcgis-feature-title><arcgis-feature-image width-in-pixels=16 height-in-pixels=16 use-true-shape slot=content-start .graphic=${t.graphic} .layer=${t.layer}></arcgis-feature-image><calcite-action slot=actions-end icon=x @click=${()=>{this._removeClipboardItem(t)}} .text=${this._messages.removeClipboardItem??""}></calcite-action></calcite-list-item>`:t.type==="feature"&&!t.layer&&t.graphic?.geometry?a`<calcite-list-item @pointerenter=${i=>{this._highlightSelectedGraphicOnMap(t),i.target.classList.add("hovering")}} @pointerleave=${i=>{i.target.classList.remove("hovering"),this._clearHighlightSelectedGraphic()}}><arcgis-feature-image width-in-pixels=16 height-in-pixels=16 use-true-shape .actualSymbol=${d(t.graphic.geometry.type)} slot=content-start .graphic=${t.graphic}></arcgis-feature-image><span slot=content>${this._messages.clipboardDataItem??""}</span><calcite-action slot=actions-end icon=x @click=${()=>{this._removeClipboardItem(t)}} .text=${this._messages.removeClipboardItem??""}></calcite-action></calcite-list-item>`:a`<calcite-list-item><calcite-icon slot=content-start scale=s icon=file-data></calcite-icon><span slot=content>${this._messages.clipboardDataItem??""}</span><calcite-action slot=actions-end icon=trash @click=${()=>{this._removeClipboardItem(t)}} .text=${this._messages.removeClipboardItem??""}></calcite-action></calcite-list-item>`)}</calcite-list>`}};g("arcgis-clipboard",s);return s},"applications/Components/clipboard","Graphic",b,d,e)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{D as u,E as d,F as g,N as y,O as f,P as _,S as v,X as b,a as h,b as s,e as p,f as l,p as m}from"./33CM77ZT.js";import"./H6RQVSYM.js";export default $arcgis.t(([x,{isSharedTemplateMetadata:D,isStandardFeatureTemplate:C},{renderPreviewHTML:L},{isTable:M}])=>{var n=class extends g{constructor(t){if(super(t),this.it=l,t.type!==u.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===l||t==null)return this._t=void 0,this.it=t;if(t===p)return t;if(typeof t!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;let i=[t];return i.raw=i,this._t={_$litType$:this.constructor.resultType,strings:i,values:[]}}};n.directiveName="unsafeHTML",n.resultType=1;var w=d(n);var O=h`.esri-thumbnail-preview{width:22px;height:22px;background-position:50% 50%;background-repeat:no-repeat}.template-image-container{width:32px;height:32px;display:flex;align-items:center;justify-content:center}`;async function $(e,t,i){if(D(e)&&e.thumbnail){let T=`data:image/png;base64,${e.thumbnail.imageData}`;return s`<div class="esri-thumbnail-preview" style=${v({backgroundImage:`url(${T})`})}></div>`}if(M(t))return s`<calcite-icon icon=table scale=s></calcite-icon>`;let r=await H(t,e);if(r==null)return null;let a={maxSize:24,ariaLabel:i?.ariaLabel};C(e)&&"renderer"in t&&t.renderer?.type==="dictionary"&&(a.fieldMap=t.renderer.fieldMap??void 0,a.feature={attributes:e.prototype.attributes??{}});let o=await L(r,a);return o?s`${w(o.outerHTML)}`:null}async function H(e,t){if(D(t))return await I(e);if("renderer"in e&&e.renderer){let{renderer:i}=e,r=new x({attributes:t.prototype.attributes});if("getSymbolAsync"in i){let a=await i.getSymbolAsync(r);if(a)return a}}return await I(e)}async function S(e){let t=e==="point"||e==="multipoint"?await $arcgis.t(m=>({default:m[0]}),"symbols/SimpleMarkerSymbol"):e==="polyline"?await $arcgis.t(m=>({default:m[0]}),"symbols/SimpleLineSymbol"):e==="polygon"||e==="mesh"||e==="multipatch"?await $arcgis.t(m=>({default:m[0]}),"symbols/SimpleFillSymbol"):null;return t?new t.default:null}async function I(e){return"geometryType"in e&&e.geometryType?await S(e.geometryType):null}var c=class extends _{constructor(){super(...arguments),this._lastRun=0,this._attempted=!1,this._isCurrentlyInView=!1,this._intersectionObserver=null,this._imageContainerDiv=y(),this._generatedImageData=null}static{this.properties={_generatedImageData:16,template:0}}static{this.styles=O}get rootLayer(){return this.template?.layer?.type==="subtype-sublayer"?this.template.layer.parent:this.template?.layer}willUpdate(t){t.has("template")&&(this.hasUpdated||this.template!==null)&&this._resetData()}updated(){!this._attempted&&this._isCurrentlyInView&&(this._attempted=!0,this._handleImage().catch(t=>{m("warn",this,"Failed processing image")}))}loaded(){this.manager.onLifecycle(()=>(this._addIntersectionObserver(),()=>{this._removeIntersectionObserver()}))}_resetData(){this._generatedImageData=null,this._attempted=!1}async _generateImage(){return this.template?await $(this.template.template,this.template.layer):""}async _handleImage(){let t=++this._lastRun;if(!this._generatedImageData||this._generatedImageData==="")try{let i=await this._generateImage();if(this._lastRun!==t||this._generatedImageData===i)return;this._generatedImageData=i}finally{this._attempted=!0}}_addIntersectionObserver(){let t={rootMargin:"50px 0px",threshold:.01};this._imageContainerDiv.value&&requestAnimationFrame(()=>{this.isConnected&&(this._intersectionObserver=new IntersectionObserver(i=>{let r=!1;i.forEach(a=>{a.intersectionRatio>0&&!r?(r=!0,this._isCurrentlyInView=!0,this._handleImage().catch(o=>{m("warn",this,"Failed processing image")})):this._isCurrentlyInView=!1})},t),this._intersectionObserver?.observe(this._imageContainerDiv.value))})}_removeIntersectionObserver(){this._intersectionObserver?.disconnect(),this._intersectionObserver=null}render(){return s`<div class="template-image-container" ${f(this._imageContainerDiv)}>${this._generatedImageData??""}</div>`}};b("arcgis-template-image",c);return c},"Graphic","applications/Components/templateUtils","symbols/support/symbolUtils","applications/Components/layerUtils")
2
+ import{D as u,E as d,F as g,N as y,O as f,P as _,S as v,X as b,a as h,b as s,e as p,f as l,p as m}from"./4RV6TJ46.js";import"./H6RQVSYM.js";export default $arcgis.t(([x,{isSharedTemplateMetadata:D,isStandardFeatureTemplate:C},{renderPreviewHTML:L},{isTable:M}])=>{var n=class extends g{constructor(t){if(super(t),this.it=l,t.type!==u.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===l||t==null)return this._t=void 0,this.it=t;if(t===p)return t;if(typeof t!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;let i=[t];return i.raw=i,this._t={_$litType$:this.constructor.resultType,strings:i,values:[]}}};n.directiveName="unsafeHTML",n.resultType=1;var w=d(n);var O=h`.esri-thumbnail-preview{width:22px;height:22px;background-position:50% 50%;background-repeat:no-repeat}.template-image-container{width:32px;height:32px;display:flex;align-items:center;justify-content:center}`;async function $(e,t,i){if(D(e)&&e.thumbnail){let T=`data:image/png;base64,${e.thumbnail.imageData}`;return s`<div class="esri-thumbnail-preview" style=${v({backgroundImage:`url(${T})`})}></div>`}if(M(t))return s`<calcite-icon icon=table scale=s></calcite-icon>`;let r=await H(t,e);if(r==null)return null;let a={maxSize:24,ariaLabel:i?.ariaLabel};C(e)&&"renderer"in t&&t.renderer?.type==="dictionary"&&(a.fieldMap=t.renderer.fieldMap??void 0,a.feature={attributes:e.prototype.attributes??{}});let o=await L(r,a);return o?s`${w(o.outerHTML)}`:null}async function H(e,t){if(D(t))return await I(e);if("renderer"in e&&e.renderer){let{renderer:i}=e,r=new x({attributes:t.prototype.attributes});if("getSymbolAsync"in i){let a=await i.getSymbolAsync(r);if(a)return a}}return await I(e)}async function S(e){let t=e==="point"||e==="multipoint"?await $arcgis.t(m=>({default:m[0]}),"symbols/SimpleMarkerSymbol"):e==="polyline"?await $arcgis.t(m=>({default:m[0]}),"symbols/SimpleLineSymbol"):e==="polygon"||e==="mesh"||e==="multipatch"?await $arcgis.t(m=>({default:m[0]}),"symbols/SimpleFillSymbol"):null;return t?new t.default:null}async function I(e){return"geometryType"in e&&e.geometryType?await S(e.geometryType):null}var c=class extends _{constructor(){super(...arguments),this._lastRun=0,this._attempted=!1,this._isCurrentlyInView=!1,this._intersectionObserver=null,this._imageContainerDiv=y(),this._generatedImageData=null}static{this.properties={_generatedImageData:16,template:0}}static{this.styles=O}get rootLayer(){return this.template?.layer?.type==="subtype-sublayer"?this.template.layer.parent:this.template?.layer}willUpdate(t){t.has("template")&&(this.hasUpdated||this.template!==null)&&this._resetData()}updated(){!this._attempted&&this._isCurrentlyInView&&(this._attempted=!0,this._handleImage().catch(t=>{m("warn",this,"Failed processing image")}))}loaded(){this.manager.onLifecycle(()=>(this._addIntersectionObserver(),()=>{this._removeIntersectionObserver()}))}_resetData(){this._generatedImageData=null,this._attempted=!1}async _generateImage(){return this.template?await $(this.template.template,this.template.layer):""}async _handleImage(){let t=++this._lastRun;if(!this._generatedImageData||this._generatedImageData==="")try{let i=await this._generateImage();if(this._lastRun!==t||this._generatedImageData===i)return;this._generatedImageData=i}finally{this._attempted=!0}}_addIntersectionObserver(){let t={rootMargin:"50px 0px",threshold:.01};this._imageContainerDiv.value&&requestAnimationFrame(()=>{this.isConnected&&(this._intersectionObserver=new IntersectionObserver(i=>{let r=!1;i.forEach(a=>{a.intersectionRatio>0&&!r?(r=!0,this._isCurrentlyInView=!0,this._handleImage().catch(o=>{m("warn",this,"Failed processing image")})):this._isCurrentlyInView=!1})},t),this._intersectionObserver?.observe(this._imageContainerDiv.value))})}_removeIntersectionObserver(){this._intersectionObserver?.disconnect(),this._intersectionObserver=null}render(){return s`<div class="template-image-container" ${f(this._imageContainerDiv)}>${this._generatedImageData??""}</div>`}};b("arcgis-template-image",c);return c},"Graphic","applications/Components/templateUtils","symbols/support/symbolUtils","applications/Components/layerUtils")
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{P as v,X as g,a as o,b as n,x as c}from"./33CM77ZT.js";import"./H6RQVSYM.js";export default $arcgis.t(([d])=>{var p=o`:host{--internal-block-spacing: var(--calcite-spacing-sm-plus);--internal-inline-spacing: var(--calcite-spacing-md);--internal-columns: 1;--internal-icon-size: 16px;container-type:inline-size}.container{display:grid;isolation:isolate;grid-template-columns:repeat(var(--internal-columns, 1),1fr);gap:var(--calcite-spacing-xxs) var(--calcite-spacing-md)}.statistic{display:block;width:max-content;text-align:start;white-space:nowrap}.statistic-label,.statistic-value,.slope-values{font-size:var(--calcite-font-size-xs);font-weight:var(--calcite-font-weight-bold)}.statistic-label{font-weight:var(--calcite-font-weight-regular)}.statistic-value{margin-top:-.15em}.slope-values{display:flex;align-items:center;calcite-icon{width:var(--internal-icon-size);height:var(--internal-icon-size)}}@container (width > 200px){.container{--internal-columns: 2}}@container (width > 400px){.container{--internal-columns: 4}}@container (width > 800px){.container{--internal-columns: 8}}`,l=class extends v{constructor(){super(...arguments),this._formatter=new d,this.arcgisExpandedToggle=c()}static{this.properties={effectiveDisplayUnits:0,messages:0,result:0}}static{this.styles=p}async destroy(){await this.manager.destroy()}async load(){await this._formatter.when()}render(){let e=this.messages?.statistics;if(e)return n`<div class="container">${this._renderDistance("maxDistance",e.maxDistance)}${this._renderElevation("elevationGain",e.gain)}${this._renderElevation("elevationLoss",e.loss)}${this._renderElevation("minElevation",e.minElevation)}${this._renderElevation("maxElevation",e.maxElevation)}${this._renderElevation("avgElevation",e.avgElevation)}${this._renderSlope("maxPositiveSlope","maxNegativeSlope",e.maxSlope)}${this._renderSlope("avgPositiveSlope","avgNegativeSlope",e.avgSlope)}</div>`}_renderDistance(e,i){let a=this._renderValue(e,t=>{let s=this.effectiveDisplayUnits?.distance;return s?this._formatter.formatLength({type:"length",value:t,unit:s},r):""});return this._renderStatistic(i,a)}_renderElevation(e,i){let a=this._renderValue(e,t=>{let s=this.effectiveDisplayUnits?.elevation;return s?this._formatter.formatVerticalLength({type:"length",value:t,unit:s},r):""});return this._renderStatistic(i,a)}_renderSlope(e,i,a){return this._renderStatistic(a,n`<div class="slope-values"><calcite-icon icon=arrow-up scale=s></calcite-icon>${this._renderValue(e,t=>this._formatter.formatAngleDegrees(t,"degrees","geographic","geographic",r))}<calcite-icon icon=arrow-down scale=s></calcite-icon>${this._renderValue(i,t=>this._formatter.formatAngleDegrees(t,"degrees","geographic","geographic",r))}</div>`)}_renderStatistic(e,i){return n`<div class="statistic"><label class="statistic-label">${e}</label><div class="statistic-value">${i}</div></div>`}_renderValue(e,i){let{result:a}=this,t=a?.progress===1?a.statistics?.[e]:void 0;return t==null?" \u2015 ":i(t)}},r=1;g("arcgis-elevation-profile-statistics",l);return l},"applications/Components/QuantityFormatter")
2
+ import{P as v,X as g,a as o,b as n,x as c}from"./4RV6TJ46.js";import"./H6RQVSYM.js";export default $arcgis.t(([d])=>{var p=o`:host{--internal-block-spacing: var(--calcite-spacing-sm-plus);--internal-inline-spacing: var(--calcite-spacing-md);--internal-columns: 1;--internal-icon-size: 16px;container-type:inline-size}.container{display:grid;isolation:isolate;grid-template-columns:repeat(var(--internal-columns, 1),1fr);gap:var(--calcite-spacing-xxs) var(--calcite-spacing-md)}.statistic{display:block;width:max-content;text-align:start;white-space:nowrap}.statistic-label,.statistic-value,.slope-values{font-size:var(--calcite-font-size-xs);font-weight:var(--calcite-font-weight-bold)}.statistic-label{font-weight:var(--calcite-font-weight-regular)}.statistic-value{margin-top:-.15em}.slope-values{display:flex;align-items:center;calcite-icon{width:var(--internal-icon-size);height:var(--internal-icon-size)}}@container (width > 200px){.container{--internal-columns: 2}}@container (width > 400px){.container{--internal-columns: 4}}@container (width > 800px){.container{--internal-columns: 8}}`,l=class extends v{constructor(){super(...arguments),this._formatter=new d,this.arcgisExpandedToggle=c()}static{this.properties={effectiveDisplayUnits:0,messages:0,result:0}}static{this.styles=p}async destroy(){await this.manager.destroy()}async load(){await this._formatter.when()}render(){let e=this.messages?.statistics;if(e)return n`<div class="container">${this._renderDistance("maxDistance",e.maxDistance)}${this._renderElevation("elevationGain",e.gain)}${this._renderElevation("elevationLoss",e.loss)}${this._renderElevation("minElevation",e.minElevation)}${this._renderElevation("maxElevation",e.maxElevation)}${this._renderElevation("avgElevation",e.avgElevation)}${this._renderSlope("maxPositiveSlope","maxNegativeSlope",e.maxSlope)}${this._renderSlope("avgPositiveSlope","avgNegativeSlope",e.avgSlope)}</div>`}_renderDistance(e,i){let a=this._renderValue(e,t=>{let s=this.effectiveDisplayUnits?.distance;return s?this._formatter.formatLength({type:"length",value:t,unit:s},r):""});return this._renderStatistic(i,a)}_renderElevation(e,i){let a=this._renderValue(e,t=>{let s=this.effectiveDisplayUnits?.elevation;return s?this._formatter.formatVerticalLength({type:"length",value:t,unit:s},r):""});return this._renderStatistic(i,a)}_renderSlope(e,i,a){return this._renderStatistic(a,n`<div class="slope-values"><calcite-icon icon=arrow-up scale=s></calcite-icon>${this._renderValue(e,t=>this._formatter.formatAngleDegrees(t,"degrees","geographic","geographic",r))}<calcite-icon icon=arrow-down scale=s></calcite-icon>${this._renderValue(i,t=>this._formatter.formatAngleDegrees(t,"degrees","geographic","geographic",r))}</div>`)}_renderStatistic(e,i){return n`<div class="statistic"><label class="statistic-label">${e}</label><div class="statistic-value">${i}</div></div>`}_renderValue(e,i){let{result:a}=this,t=a?.progress===1?a.statistics?.[e]:void 0;return t==null?" \u2015 ":i(t)}},r=1;g("arcgis-elevation-profile-statistics",l);return l},"applications/Components/QuantityFormatter")
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{b as r,c as f,d as k,e as R,f as D,h as p,i as x,j as S}from"./Y4WOZJQX.js";import{a as m,b as n}from"./D47546HM.js";import e from"./6CRONNHI.js";import"./VJVKFKSG.js";import{a as C}from"./7EMK74ZF.js";import{h as A}from"./6N7PM73F.js";import"./7IHIG427.js";import"./QUZTFUWM.js";import{b as I}from"./P2GMODLP.js";import{O as d,P as E,R as G,X as F,a as b,b as a,n as h,p as w,r as _,x as c}from"./33CM77ZT.js";import"./H6RQVSYM.js";export default $arcgis.t(([y,{a:g}])=>{var z=b`:host{height:100%}slot:not([hidden]),.default-result-items:not([hidden]){display:flex;flex-direction:column;gap:var(--calcite-spacing-md)}.results-block{height:var(--arcgis-internal-trace-results-height, auto);margin-top:0;margin-bottom:0;&.features-list-active{--calcite-block-content-space: 0}}.no-selectable-results{color:var(--calcite-color-text-3);font-size:var(--calcite-font-size)}.no-results-landing{display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;margin:var(--calcite-spacing-md);gap:var(--calcite-spacing-md)}.no-results-landing calcite-icon{margin-bottom:var(--calcite-spacing-sm);--calcite-icon-color: var(--calcite-color-text-3)}.no-results-landing .no-results-heading{font-size:var(--calcite-font-size-2)}.no-results-landing .no-results-description{color:var(--calcite-color-text-3)}`,v={dirtyAreasDiscovered:-2147208511,noValidControllers:-2147208935,pathNotFound:-2147208444},$=class extends E{constructor(){super(...arguments),this._messages=C({blocking:!0}),this.#s=new Set,this.#e=new Set,this.#i=new Map,this.#r=[],this.#a=new Map,this.#o=new Set,this.#g=t=>{let{detail:e,target:s}=t;if(e.name==="isFeaturesListShown"){let i=s[e.name];!this.#t&&i?(this.#t=s,this.#f(r(this.el))):s===this.#t&&!i&&(this.#t=void 0,this.#c()),this.requestUpdate()}else e.name==="hasContent"&&this.requestUpdate()},this._slottedDefaultResultItems=[],this.aggregatedGeometryResultsGraphicsColor=new y(m),this.aggregatedGeometryResultsSize=12,this.autoDestroyDisabled=!1,this.disableHighlightFeatureResults=!1,this.expandable=!1,this.expanded=!1,this.hideActionBar=!1,this.hideGraphics=!1,this.hidePlaceholder=!1,this.hideFeatureResults=!1,this.includeDefaultActionsDisabled=!1,this.layers=[],this.state="ready",this.arcgisPropertyChange=A()("aggregatedGeometryResultsGraphicsColor","aggregatedGeometryResultsSize","hideGraphics","state","traceError","traceResult","utilityNetwork","view"),this.arcgisResultsReady=c(),this.arcgisTraceResultClear=c(),this.arcgisTriggerAction=c()}static{this.properties={_defaultAggregatedGeometryResultsItem:16,_defaultElementsResultItem:16,_defaultFunctionsResultItem:16,_slottedDefaultResultItems:16,actions:0,aggregatedGeometryResultsGraphicsColor:[1,{converter:{fromAttribute:t=>y.fromString(t)??new y(m)}}],aggregatedGeometryResultsSize:9,autoDestroyDisabled:5,disableHighlightFeatureResults:5,expandable:5,expanded:5,heading:1,hideActionBar:5,hideGraphics:5,hidePlaceholder:5,hideFeatureResults:5,includeDefaultActionsDisabled:5,layers:0,messageOverrides:0,numFeatureResults:32,referenceElement:1,state:32,traceError:0,traceResult:0,traceResultFeatures:32,utilityNetwork:0,view:0}}static{this.styles=z}#t;#s;#e;#i;#r;#a;#o;#g;get#m(){let t=this.#l?this._slottedDefaultResultItems:[this._defaultAggregatedGeometryResultsItem,this._defaultElementsResultItem,this._defaultFunctionsResultItem].filter(e=>e!==void 0);return this.#h||t.some(e=>e.hasContent)}get#h(){return r(this.el).filter(t=>!f(t)).length>0}get#l(){return r(this.el).length>0}get#_(){return this.traceResult?this.#l?r(this.el).filter(p):this.#A(this.traceResult):[]}get#E(){return!!this.traceResult&&!this.traceError&&(this.#n||this.#l)}get#R(){if(!this.traceResult||!this.#n)return!1;if(this.#h)return!0;let{aggregatedGeometry:t,elements:e,globalFunctionResults:s}=this.traceResult;return this._slottedDefaultResultItems.some(i=>t!=null&&k(i)||e.length>0&&R(i)||s.length>0&&D(i))}get#n(){if(!this.traceResult)return!1;let{elements:t,globalFunctionResults:e,aggregatedGeometry:s}=this.traceResult;return!!(t.length||e.length||s)}get numFeatureResults(){return this._defaultElementsResultItem?this._defaultElementsResultItem.numResults:this.#r[0]?.numResults??0}get traceResultFeatures(){return this._defaultElementsResultItem?this._defaultElementsResultItem.features:this.#r[0]?.features??[]}clearResults(){this.traceResult=void 0,this.traceError=void 0,this.#p(),this.arcgisTraceResultClear.emit()}async destroy(){let t=r(this.el).filter(S),e=await Promise.allSettled([...t.map(async s=>await s.destroy()),this._defaultAggregatedGeometryResultsItem?.destroy(),this._defaultElementsResultItem?.destroy(),this._defaultFunctionsResultItem?.destroy()]);for(let s of e)s.status==="rejected"&&g(s.reason,this,"Error while destroying trace result item");await this.manager.destroy()}load(){this.manager.onLifecycle(()=>{let t=r(this.el);return this.#b(t),this.#$(t),()=>{for(let e of this.#i.keys())this.#v(e);for(let e of this.#a.keys())this.#y(e);this.#c()}})}willUpdate(t){t.has("traceResult")&&(this.#p(),this.#E?this.#z():this.traceResult&&!this.traceError&&!this.#n&&this.#d())}loaded(){this.traceResult&&(this.view||w("warn",this,_("view")))}#c(){for(let t of this.#s)t.removeAttribute("hidden");this.#s.clear()}#p(){let t=r(this.el).filter(x);for(let e of t)try{e.clearResult()}catch(s){g(s,this,"Error while clearing trace result item")}this._defaultAggregatedGeometryResultsItem?.clearResult(),this._defaultElementsResultItem?.clearResult(),this._defaultFunctionsResultItem?.clearResult(),this.#e.clear(),h(()=>this.state="ready")}#G(t){this._defaultAggregatedGeometryResultsItem=t}#F(t){this.#t&&this.#t===this._defaultElementsResultItem&&t!==this._defaultElementsResultItem&&(this.#t=void 0,this.#c()),this._defaultElementsResultItem=t,!this.#t&&t?.isFeaturesListShown&&(this.#t=t,this.#f(r(this.el)))}#I(t){this._defaultFunctionsResultItem=t}#d(){h(()=>this.state="ready"),this.arcgisResultsReady.emit()}#A(t){let{elements:e,globalFunctionResults:s,aggregatedGeometry:i}=t,[u,l,P]=n,o=[];return i!=null&&o.push(u),e!=null&&o.push(l),s.length>0&&o.push(P),o}#C(t){t.stopPropagation(),this.arcgisTriggerAction.emit(t.detail)}#k(t){let{detail:e,target:s}=t;e.name==="hideGraphics"?(t.stopPropagation(),this.hideGraphics=s[e.name]):e.name==="graphicsColor"?(t.stopPropagation(),this.aggregatedGeometryResultsGraphicsColor=s[e.name]):e.name==="selectionSize"&&(t.stopPropagation(),this.aggregatedGeometryResultsSize=s[e.name])}#D(){this.#u(n[0])}#x(){this.#u(n[1])}#S(){this.#u(n[2])}#P(t){let e=I(t);this.#b(e),this.#$(e)}#f(t){t.forEach(e=>{e!==this.#t&&!e.hasAttribute("hidden")?(e.setAttribute("hidden",""),this.#s.add(e)):e===this.#t&&this.#s.has(e)&&(e.removeAttribute("hidden"),this.#s.delete(e))})}#z(){this.#e=new Set(this.#_),this.#e.size===0?this.#d():h(()=>this.state="loading")}#L(t){if(this.#a.has(t))return;let e=s=>this.#g(s);this.#a.set(t,e),t.addEventListener("arcgisPropertyChange",e)}#O(t){if(this.#i.has(t))return;let e=({target:s})=>this.#u(s);this.#i.set(t,e),t.addEventListener("arcgisResultReady",e)}#y(t){let e=this.#a.get(t);e&&(t.removeEventListener("arcgisPropertyChange",e),this.#a.delete(t))}#v(t){let e=this.#i.get(t);e&&(t.removeEventListener("arcgisResultReady",e),this.#i.delete(t))}#$(t){for(let i of this.#s)t.includes(i)||(i.removeAttribute("hidden"),this.#s.delete(i));let e=t.filter(R);for(let i of this.#r)e.includes(i)||this.#y(i);for(let i of e)this.#L(i);let s=this.#t;s&&(!s.isFeaturesListShown||s!==this._defaultElementsResultItem&&!e.includes(s))&&(this.#t=void 0,this.#c()),this.#t??=e.find(i=>i.isFeaturesListShown),this.#t&&this.#f(t),this.#r=e,this.requestUpdate()}#b(t){let e=new Set(t.filter(p));for(let s of this.#o)e.has(s)||(this.#v(s),this.#e.delete(s));for(let s of e)this.#O(s),this.state==="loading"&&!this.#o.has(s)&&this.#e.add(s);this.#o=e,this._slottedDefaultResultItems=t.filter(f),this.state==="loading"&&this.#e.size===0&&this.#d()}#u(t){this.#e.delete(t),this.state==="loading"&&this.#e.size===0&&this.#d()}render(){let{traceError:t,traceResult:e}=this,s=!t&&e&&this.#n&&!this.#l?this.#T(e):void 0,i=!!e&&!t&&this.#m&&(this.#h||this.#R),u=a`<slot .hidden=${!i} @slotchange=${this.#P}></slot>`,l;return t?l=this.#N(t):e?!this.#n&&!this.#h?l=this.#w():this.state==="ready"&&!this.#m&&(l=this.#l&&this._slottedDefaultResultItems.length&&!this.#R?this.#H():this.#w()):l=this.#B(),a`<calcite-block class=${G({"results-block":!0,"features-list-active":!!this.#t})} .description=${this.heading} .expandable=${this.expandable} .expanded=${this.expanded} .heading=${this._messages.headings.traceResultsGeneric} .label=${this._messages.headings.traceResultsGeneric} .loading=${this.state==="loading"}>${u}${s}${l}</calcite-block>`}#T(t){let{elements:e,globalFunctionResults:s,aggregatedGeometry:i}=t;return a`<div class="default-result-items" .hidden=${!this.#m}>${i!=null?a`<arcgis-utility-network-trace-aggregated-geometry-result-item auto-destroy-disabled .graphicsColor=${this.aggregatedGeometryResultsGraphicsColor} .hideGraphics=${this.hideGraphics} .hidden=${!!this.#t} .messageOverrides=${this.messageOverrides} .selectionSize=${this.aggregatedGeometryResultsSize} @arcgisPropertyChange=${this.#k} @arcgisResultReady=${this.#D} ${d(this.#G)}></arcgis-utility-network-trace-aggregated-geometry-result-item>${!e.length&&!this.#t?this.#M():null}`:null}${e!=null?a`<arcgis-utility-network-trace-elements-result-item .actions=${this.actions} auto-destroy-disabled .disableHighlight=${this.disableHighlightFeatureResults} .hideActionBar=${this.hideActionBar} .hideFeatureResults=${this.hideFeatureResults} .hidePlaceholder=${this.hidePlaceholder} .hidden=${!e.length} .includeDefaultActionsDisabled=${this.includeDefaultActionsDisabled} .layers=${this.layers} .messageOverrides=${this.messageOverrides} .referenceElement=${this.referenceElement} @arcgisPropertyChange=${this.#g} @arcgisResultReady=${this.#x} @arcgisTriggerAction=${this.#C} ${d(this.#F)}></arcgis-utility-network-trace-elements-result-item>`:null}${s.length>0?a`<arcgis-utility-network-trace-functions-result-item auto-destroy-disabled .heading=${this._messages.headings.functions} .hidden=${!!this.#t} .messageOverrides=${this.messageOverrides} @arcgisResultReady=${this.#S} ${d(this.#I)}></arcgis-utility-network-trace-functions-result-item>`:null}</div>`}#H(){return a`<div class="no-selectable-results">${this._messages.noMatchingResultItems}</div>`}#M(){return a`<div class="no-selectable-results">${this._messages.noSelectableFeatures}</div>`}#N(t){let{_messages:e}=this,s=t.message;switch(t.details?.raw?.extendedCode){case v.dirtyAreasDiscovered:s=e.traceErrors.dirtyAreasDiscovered;break;case v.noValidControllers:s=e.traceErrors.noValidControllers;break;case v.pathNotFound:s=e.traceErrors.pathNotFound;break}return a`<div class="no-results-landing"><calcite-icon icon=exclamation-mark-triangle scale=l></calcite-icon><div class="no-results-heading">${e.traceFailedHeading}</div><div class="no-results-description">${e.traceFailedDescription}</div><div class="no-results-description">${s}</div></div>`}#w(){let{_messages:t}=this;return a`<div class="no-results-landing"><calcite-icon icon=exclamation-mark-triangle scale=l></calcite-icon><div class="no-results-heading">${t.noResultsHeading}</div><div class="no-results-description">${t.noResultsDescription}</div></div>`}#B(){let{_messages:t}=this;return a`<div class="no-results-landing"><calcite-icon icon=utility-network-trace scale=l></calcite-icon><div class="no-results-heading">${t.noTraceConfigHeading}</div><div class="no-results-description">${t.noTraceConfigDescription}</div></div>`}};F("arcgis-utility-network-trace-results",$);return $},"Color",e)
2
+ import{b as r,c as f,d as k,e as R,f as D,h as p,i as x,j as S}from"./Y4WOZJQX.js";import{a as m,b as n}from"./D47546HM.js";import e from"./W5B5MEWO.js";import"./VJVKFKSG.js";import{a as C}from"./TGYMVPHQ.js";import{h as A}from"./ADCXAT6P.js";import"./3NB34PX4.js";import"./QUZTFUWM.js";import{b as I}from"./OAXF6WOP.js";import{O as d,P as E,R as G,X as F,a as b,b as a,n as h,p as w,r as _,x as c}from"./4RV6TJ46.js";import"./H6RQVSYM.js";export default $arcgis.t(([y,{a:g}])=>{var z=b`:host{height:100%}slot:not([hidden]),.default-result-items:not([hidden]){display:flex;flex-direction:column;gap:var(--calcite-spacing-md)}.results-block{height:var(--arcgis-internal-trace-results-height, auto);margin-top:0;margin-bottom:0;&.features-list-active{--calcite-block-content-space: 0}}.no-selectable-results{color:var(--calcite-color-text-3);font-size:var(--calcite-font-size)}.no-results-landing{display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;margin:var(--calcite-spacing-md);gap:var(--calcite-spacing-md)}.no-results-landing calcite-icon{margin-bottom:var(--calcite-spacing-sm);--calcite-icon-color: var(--calcite-color-text-3)}.no-results-landing .no-results-heading{font-size:var(--calcite-font-size-2)}.no-results-landing .no-results-description{color:var(--calcite-color-text-3)}`,v={dirtyAreasDiscovered:-2147208511,noValidControllers:-2147208935,pathNotFound:-2147208444},$=class extends E{constructor(){super(...arguments),this._messages=C({blocking:!0}),this.#s=new Set,this.#e=new Set,this.#i=new Map,this.#r=[],this.#a=new Map,this.#o=new Set,this.#g=t=>{let{detail:e,target:s}=t;if(e.name==="isFeaturesListShown"){let i=s[e.name];!this.#t&&i?(this.#t=s,this.#f(r(this.el))):s===this.#t&&!i&&(this.#t=void 0,this.#c()),this.requestUpdate()}else e.name==="hasContent"&&this.requestUpdate()},this._slottedDefaultResultItems=[],this.aggregatedGeometryResultsGraphicsColor=new y(m),this.aggregatedGeometryResultsSize=12,this.autoDestroyDisabled=!1,this.disableHighlightFeatureResults=!1,this.expandable=!1,this.expanded=!1,this.hideActionBar=!1,this.hideGraphics=!1,this.hidePlaceholder=!1,this.hideFeatureResults=!1,this.includeDefaultActionsDisabled=!1,this.layers=[],this.state="ready",this.arcgisPropertyChange=A()("aggregatedGeometryResultsGraphicsColor","aggregatedGeometryResultsSize","hideGraphics","state","traceError","traceResult","utilityNetwork","view"),this.arcgisResultsReady=c(),this.arcgisTraceResultClear=c(),this.arcgisTriggerAction=c()}static{this.properties={_defaultAggregatedGeometryResultsItem:16,_defaultElementsResultItem:16,_defaultFunctionsResultItem:16,_slottedDefaultResultItems:16,actions:0,aggregatedGeometryResultsGraphicsColor:[1,{converter:{fromAttribute:t=>y.fromString(t)??new y(m)}}],aggregatedGeometryResultsSize:9,autoDestroyDisabled:5,disableHighlightFeatureResults:5,expandable:5,expanded:5,heading:1,hideActionBar:5,hideGraphics:5,hidePlaceholder:5,hideFeatureResults:5,includeDefaultActionsDisabled:5,layers:0,messageOverrides:0,numFeatureResults:32,referenceElement:1,state:32,traceError:0,traceResult:0,traceResultFeatures:32,utilityNetwork:0,view:0}}static{this.styles=z}#t;#s;#e;#i;#r;#a;#o;#g;get#m(){let t=this.#l?this._slottedDefaultResultItems:[this._defaultAggregatedGeometryResultsItem,this._defaultElementsResultItem,this._defaultFunctionsResultItem].filter(e=>e!==void 0);return this.#h||t.some(e=>e.hasContent)}get#h(){return r(this.el).filter(t=>!f(t)).length>0}get#l(){return r(this.el).length>0}get#_(){return this.traceResult?this.#l?r(this.el).filter(p):this.#A(this.traceResult):[]}get#E(){return!!this.traceResult&&!this.traceError&&(this.#n||this.#l)}get#R(){if(!this.traceResult||!this.#n)return!1;if(this.#h)return!0;let{aggregatedGeometry:t,elements:e,globalFunctionResults:s}=this.traceResult;return this._slottedDefaultResultItems.some(i=>t!=null&&k(i)||e.length>0&&R(i)||s.length>0&&D(i))}get#n(){if(!this.traceResult)return!1;let{elements:t,globalFunctionResults:e,aggregatedGeometry:s}=this.traceResult;return!!(t.length||e.length||s)}get numFeatureResults(){return this._defaultElementsResultItem?this._defaultElementsResultItem.numResults:this.#r[0]?.numResults??0}get traceResultFeatures(){return this._defaultElementsResultItem?this._defaultElementsResultItem.features:this.#r[0]?.features??[]}clearResults(){this.traceResult=void 0,this.traceError=void 0,this.#p(),this.arcgisTraceResultClear.emit()}async destroy(){let t=r(this.el).filter(S),e=await Promise.allSettled([...t.map(async s=>await s.destroy()),this._defaultAggregatedGeometryResultsItem?.destroy(),this._defaultElementsResultItem?.destroy(),this._defaultFunctionsResultItem?.destroy()]);for(let s of e)s.status==="rejected"&&g(s.reason,this,"Error while destroying trace result item");await this.manager.destroy()}load(){this.manager.onLifecycle(()=>{let t=r(this.el);return this.#b(t),this.#$(t),()=>{for(let e of this.#i.keys())this.#v(e);for(let e of this.#a.keys())this.#y(e);this.#c()}})}willUpdate(t){t.has("traceResult")&&(this.#p(),this.#E?this.#z():this.traceResult&&!this.traceError&&!this.#n&&this.#d())}loaded(){this.traceResult&&(this.view||w("warn",this,_("view")))}#c(){for(let t of this.#s)t.removeAttribute("hidden");this.#s.clear()}#p(){let t=r(this.el).filter(x);for(let e of t)try{e.clearResult()}catch(s){g(s,this,"Error while clearing trace result item")}this._defaultAggregatedGeometryResultsItem?.clearResult(),this._defaultElementsResultItem?.clearResult(),this._defaultFunctionsResultItem?.clearResult(),this.#e.clear(),h(()=>this.state="ready")}#G(t){this._defaultAggregatedGeometryResultsItem=t}#F(t){this.#t&&this.#t===this._defaultElementsResultItem&&t!==this._defaultElementsResultItem&&(this.#t=void 0,this.#c()),this._defaultElementsResultItem=t,!this.#t&&t?.isFeaturesListShown&&(this.#t=t,this.#f(r(this.el)))}#I(t){this._defaultFunctionsResultItem=t}#d(){h(()=>this.state="ready"),this.arcgisResultsReady.emit()}#A(t){let{elements:e,globalFunctionResults:s,aggregatedGeometry:i}=t,[u,l,P]=n,o=[];return i!=null&&o.push(u),e!=null&&o.push(l),s.length>0&&o.push(P),o}#C(t){t.stopPropagation(),this.arcgisTriggerAction.emit(t.detail)}#k(t){let{detail:e,target:s}=t;e.name==="hideGraphics"?(t.stopPropagation(),this.hideGraphics=s[e.name]):e.name==="graphicsColor"?(t.stopPropagation(),this.aggregatedGeometryResultsGraphicsColor=s[e.name]):e.name==="selectionSize"&&(t.stopPropagation(),this.aggregatedGeometryResultsSize=s[e.name])}#D(){this.#u(n[0])}#x(){this.#u(n[1])}#S(){this.#u(n[2])}#P(t){let e=I(t);this.#b(e),this.#$(e)}#f(t){t.forEach(e=>{e!==this.#t&&!e.hasAttribute("hidden")?(e.setAttribute("hidden",""),this.#s.add(e)):e===this.#t&&this.#s.has(e)&&(e.removeAttribute("hidden"),this.#s.delete(e))})}#z(){this.#e=new Set(this.#_),this.#e.size===0?this.#d():h(()=>this.state="loading")}#L(t){if(this.#a.has(t))return;let e=s=>this.#g(s);this.#a.set(t,e),t.addEventListener("arcgisPropertyChange",e)}#O(t){if(this.#i.has(t))return;let e=({target:s})=>this.#u(s);this.#i.set(t,e),t.addEventListener("arcgisResultReady",e)}#y(t){let e=this.#a.get(t);e&&(t.removeEventListener("arcgisPropertyChange",e),this.#a.delete(t))}#v(t){let e=this.#i.get(t);e&&(t.removeEventListener("arcgisResultReady",e),this.#i.delete(t))}#$(t){for(let i of this.#s)t.includes(i)||(i.removeAttribute("hidden"),this.#s.delete(i));let e=t.filter(R);for(let i of this.#r)e.includes(i)||this.#y(i);for(let i of e)this.#L(i);let s=this.#t;s&&(!s.isFeaturesListShown||s!==this._defaultElementsResultItem&&!e.includes(s))&&(this.#t=void 0,this.#c()),this.#t??=e.find(i=>i.isFeaturesListShown),this.#t&&this.#f(t),this.#r=e,this.requestUpdate()}#b(t){let e=new Set(t.filter(p));for(let s of this.#o)e.has(s)||(this.#v(s),this.#e.delete(s));for(let s of e)this.#O(s),this.state==="loading"&&!this.#o.has(s)&&this.#e.add(s);this.#o=e,this._slottedDefaultResultItems=t.filter(f),this.state==="loading"&&this.#e.size===0&&this.#d()}#u(t){this.#e.delete(t),this.state==="loading"&&this.#e.size===0&&this.#d()}render(){let{traceError:t,traceResult:e}=this,s=!t&&e&&this.#n&&!this.#l?this.#T(e):void 0,i=!!e&&!t&&this.#m&&(this.#h||this.#R),u=a`<slot .hidden=${!i} @slotchange=${this.#P}></slot>`,l;return t?l=this.#N(t):e?!this.#n&&!this.#h?l=this.#w():this.state==="ready"&&!this.#m&&(l=this.#l&&this._slottedDefaultResultItems.length&&!this.#R?this.#H():this.#w()):l=this.#B(),a`<calcite-block class=${G({"results-block":!0,"features-list-active":!!this.#t})} .description=${this.heading} .expandable=${this.expandable} .expanded=${this.expanded} .heading=${this._messages.headings.traceResultsGeneric} .label=${this._messages.headings.traceResultsGeneric} .loading=${this.state==="loading"}>${u}${s}${l}</calcite-block>`}#T(t){let{elements:e,globalFunctionResults:s,aggregatedGeometry:i}=t;return a`<div class="default-result-items" .hidden=${!this.#m}>${i!=null?a`<arcgis-utility-network-trace-aggregated-geometry-result-item auto-destroy-disabled .graphicsColor=${this.aggregatedGeometryResultsGraphicsColor} .hideGraphics=${this.hideGraphics} .hidden=${!!this.#t} .messageOverrides=${this.messageOverrides} .selectionSize=${this.aggregatedGeometryResultsSize} @arcgisPropertyChange=${this.#k} @arcgisResultReady=${this.#D} ${d(this.#G)}></arcgis-utility-network-trace-aggregated-geometry-result-item>${!e.length&&!this.#t?this.#M():null}`:null}${e!=null?a`<arcgis-utility-network-trace-elements-result-item .actions=${this.actions} auto-destroy-disabled .disableHighlight=${this.disableHighlightFeatureResults} .hideActionBar=${this.hideActionBar} .hideFeatureResults=${this.hideFeatureResults} .hidePlaceholder=${this.hidePlaceholder} .hidden=${!e.length} .includeDefaultActionsDisabled=${this.includeDefaultActionsDisabled} .layers=${this.layers} .messageOverrides=${this.messageOverrides} .referenceElement=${this.referenceElement} @arcgisPropertyChange=${this.#g} @arcgisResultReady=${this.#x} @arcgisTriggerAction=${this.#C} ${d(this.#F)}></arcgis-utility-network-trace-elements-result-item>`:null}${s.length>0?a`<arcgis-utility-network-trace-functions-result-item auto-destroy-disabled .heading=${this._messages.headings.functions} .hidden=${!!this.#t} .messageOverrides=${this.messageOverrides} @arcgisResultReady=${this.#S} ${d(this.#I)}></arcgis-utility-network-trace-functions-result-item>`:null}</div>`}#H(){return a`<div class="no-selectable-results">${this._messages.noMatchingResultItems}</div>`}#M(){return a`<div class="no-selectable-results">${this._messages.noSelectableFeatures}</div>`}#N(t){let{_messages:e}=this,s=t.message;switch(t.details?.raw?.extendedCode){case v.dirtyAreasDiscovered:s=e.traceErrors.dirtyAreasDiscovered;break;case v.noValidControllers:s=e.traceErrors.noValidControllers;break;case v.pathNotFound:s=e.traceErrors.pathNotFound;break}return a`<div class="no-results-landing"><calcite-icon icon=exclamation-mark-triangle scale=l></calcite-icon><div class="no-results-heading">${e.traceFailedHeading}</div><div class="no-results-description">${e.traceFailedDescription}</div><div class="no-results-description">${s}</div></div>`}#w(){let{_messages:t}=this;return a`<div class="no-results-landing"><calcite-icon icon=exclamation-mark-triangle scale=l></calcite-icon><div class="no-results-heading">${t.noResultsHeading}</div><div class="no-results-description">${t.noResultsDescription}</div></div>`}#B(){let{_messages:t}=this;return a`<div class="no-results-landing"><calcite-icon icon=utility-network-trace scale=l></calcite-icon><div class="no-results-heading">${t.noTraceConfigHeading}</div><div class="no-results-description">${t.noTraceConfigDescription}</div></div>`}};F("arcgis-utility-network-trace-results",$);return $},"Color",e)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{a as o}from"./33CM77ZT.js";function i(r){if(!r)return!1;if(r.type==="3d")return r.ready;if(!r?.ready)return!1;let t=c(r),e=r.constraints?.effectiveMaxScale;return e===0||t>e}function n(r){if(!r)return!1;if(r.type==="3d")return r.ready;if(!r?.ready)return!1;let t=c(r),e=r.constraints?.effectiveMinScale;return e===0||t<e}function c(r){let t=r?.animation?.target;return(t&&"then"in t?void 0:t?.scale)??r?.scale??0}var l=o`.arcgis-button{--calcite-icon-color: var(--calcite-color-text-3);--calcite-button-background-color: var(--calcite-color-foreground-1);color:var(--calcite-color-text-3);line-height:var(--calcite-font-line-height-relative-tight);calcite-button{--calcite-offset-invert-focus: 1}display:flex;flex-flow:column;cursor:pointer;background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);:hover{--calcite-icon-color: var(--calcite-color-text-1);--calcite-button-background-color: var(--calcite-color-transparent-hover)}}:host{display:flex;max-width:fit-content}.zoom-out{border-block-start:solid 1px var(--calcite-color-border-1)}.horizontal{flex-flow:row-reverse nowrap}.horizontal .zoom-out{border-block-start:none;border-inline-end:solid 1px var(--calcite-color-border-1)}`;export{i as a,n as b,l as c};
2
+ import{a as o}from"./4RV6TJ46.js";function i(r){if(!r)return!1;if(r.type==="3d")return r.ready;if(!r?.ready)return!1;let t=c(r),e=r.constraints?.effectiveMaxScale;return e===0||t>e}function n(r){if(!r)return!1;if(r.type==="3d")return r.ready;if(!r?.ready)return!1;let t=c(r),e=r.constraints?.effectiveMinScale;return e===0||t<e}function c(r){let t=r?.animation?.target;return(t&&"then"in t?void 0:t?.scale)??r?.scale??0}var l=o`.arcgis-button{--calcite-icon-color: var(--calcite-color-text-3);--calcite-button-background-color: var(--calcite-color-foreground-1);color:var(--calcite-color-text-3);line-height:var(--calcite-font-line-height-relative-tight);calcite-button{--calcite-offset-invert-focus: 1}display:flex;flex-flow:column;cursor:pointer;background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);:hover{--calcite-icon-color: var(--calcite-color-text-1);--calcite-button-background-color: var(--calcite-color-transparent-hover)}}:host{display:flex;max-width:fit-content}.zoom-out{border-block-start:solid 1px var(--calcite-color-border-1)}.horizontal{flex-flow:row-reverse nowrap}.horizontal .zoom-out{border-block-start:none;border-inline-end:solid 1px var(--calcite-color-border-1)}`;export{i as a,n as b,l as c};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{P as m,X as p,a as u,b as i,x as s}from"./33CM77ZT.js";import"./H6RQVSYM.js";var S=u`calcite-input-text,calcite-notice{background-color:var(--calcite-color-surface-2);padding:var(--calcite-space-sm)}calcite-pagination{background-color:var(--calcite-color-surface-2);justify-content:center}calcite-panel{height:fit-content;max-height:var(--arcgis-internal-panel-height-sm, 240px)}.current-version-div{background-color:var(--calcite-color-surface-2);border-color:var(--calcite-block-border-color, var(--calcite-color-border-3));border-style:solid;border-width:0 0 1px;padding:var(--calcite-space-2xs) 0}.current-version-div .current-version-description-label,.current-version-div .current-version-header-label{height:var(--calcite-font-size);margin:var(--calcite-space-2xs) var(--calcite-space-md)}.current-version-div .current-version-header-label{font-weight:var(--calcite-font-weight-medium)}`,v=class extends m{constructor(){super(...arguments),this.#e=1,this.hideFilter=!1,this.mode="browse-versions",this.totalPages=0,this.totalVersions=0,this.arcgisInternalFilterVersions=s(),this.arcgisInternalGetVersions=s(),this.arcgisInternalManageVersion=s(),this.arcgisInternalNewVersion=s(),this.arcgisInternalPageChange=s()}static{this.properties={currentPage:9,currentUser:1,currentVersionInfo:0,executionError:1,featureServiceName:1,featureServiceUrl:1,hideFilter:5,isVersionAdministrator:5,isVersioningApiAvailable:5,messages:0,mode:1,totalPages:9,totalVersions:9,versionInfos:0}}static{this.styles=S}#e;willUpdate(e){if(e.has("mode")){let t=e.get("mode"),a=t==="browse-services"&&this.mode==="browse-versions",n=t==="browse-versions"&&(this.mode==="create-version"||this.mode==="edit-version");(a||n)&&this.executionError&&(this.executionError=void 0)}}#i(e){let{messages:t}=this;switch(e){case"no-feature-service-found":return t?.executionErrors.noFeatureServiceFound??"";case"no-valid-enterprise-version":return t?.executionErrors.notValidEnterpriseVersion??"";case"no-valid-version-name":return t?.executionErrors.invalidVersionName??"";default:return e}}#r(){this.executionError=void 0}#t(e){this.arcgisInternalPageChange.emit({currentPage:e.target.startItem})}#s(e){e.stopPropagation(),this.arcgisInternalManageVersion.emit({actionType:e.detail.actionType,serviceUrl:e.detail.serviceUrl,versionInfo:e.detail.versionInfo})}render(){let{currentUser:e,currentPage:t,currentVersionInfo:a,executionError:n,featureServiceName:c,featureServiceUrl:o,hideFilter:f,isVersionAdministrator:$,isVersioningApiAvailable:d,messages:r,totalPages:g,totalVersions:b,versionInfos:h}=this,V=h?.map(l=>i`<arcgis-version-management-version-list-item .currentUser=${e} .currentVersionInfo=${a} .featureServiceUrl=${o} .isVersionAdministrator=${$} .isVersioningApiAvailable=${d} .messages=${r} .versionInfo=${l} @arcgisInternalManageVersion=${this.#s}></arcgis-version-management-version-list-item>`),I=i`<div class="current-version-div"><calcite-label scale=m class="current-version-header-label">${r?.headers.currentVersion}</calcite-label><calcite-label scale=s class="current-version-description-label">${a?.versionIdentifier.name}</calcite-label></div>`,x=i`<calcite-action icon=refresh .id=${`action-refresh-versions-${c}`} .label=${`action-refresh-versions-${c}`} slot=actions-end text @click=${()=>{this.arcgisInternalGetVersions.emit({serviceUrl:o})}}><calcite-tooltip overlay-positioning=fixed .referenceElement=${`action-refresh-versions-${c}`}><span>${r?.actions.refreshVersions}</span></calcite-tooltip></calcite-action>`,w=i`<calcite-block .heading=${h?.length?`${r?.headers.manageVersions} (${b})`:r?.headers.manageVersions}>${x}</calcite-block>`,E=f?void 0:i`<calcite-input-text clearable icon=search .label=${r?.headers.filterVersions} .placeholder=${r?.actions.searchVersions} @calciteInputTextInput=${l=>{this.arcgisInternalFilterVersions.emit({filterText:l.target.value})}}></calcite-input-text>`,U=d?i`<calcite-fab appearance=outline-fill slot=fab text-enabled .text=${r?.actions.newVersion} @click=${()=>{this.arcgisInternalNewVersion.emit({serviceUrl:o??""})}}></calcite-fab>`:void 0,A=g>1?i`<calcite-pagination .pageSize=${this.#e} .startItem=${t} .totalItems=${g} @calcitePaginationChange=${this.#t}></calcite-pagination>`:void 0,P=n?i`<calcite-notice closable icon kind=warning open scale=s width=full @calciteNoticeClose=${this.#r}><div slot=message>${this.#i(n)}</div></calcite-notice>`:void 0,k=i`<calcite-panel>${U}<calcite-list .label=${r?.labels.versionList??""}>${V}</calcite-list></calcite-panel>`;return i`${I}${w}${E}${k}${A}${P}`}};p("arcgis-version-management-version-list",v);export{v as ArcgisVersionManagementVersionList};
2
+ import{P as m,X as p,a as u,b as i,x as s}from"./4RV6TJ46.js";import"./H6RQVSYM.js";var S=u`calcite-input-text,calcite-notice{background-color:var(--calcite-color-surface-2);padding:var(--calcite-space-sm)}calcite-pagination{background-color:var(--calcite-color-surface-2);justify-content:center}calcite-panel{height:fit-content;max-height:var(--arcgis-internal-panel-height-sm, 240px)}.current-version-div{background-color:var(--calcite-color-surface-2);border-color:var(--calcite-block-border-color, var(--calcite-color-border-3));border-style:solid;border-width:0 0 1px;padding:var(--calcite-space-2xs) 0}.current-version-div .current-version-description-label,.current-version-div .current-version-header-label{height:var(--calcite-font-size);margin:var(--calcite-space-2xs) var(--calcite-space-md)}.current-version-div .current-version-header-label{font-weight:var(--calcite-font-weight-medium)}`,v=class extends m{constructor(){super(...arguments),this.#e=1,this.hideFilter=!1,this.mode="browse-versions",this.totalPages=0,this.totalVersions=0,this.arcgisInternalFilterVersions=s(),this.arcgisInternalGetVersions=s(),this.arcgisInternalManageVersion=s(),this.arcgisInternalNewVersion=s(),this.arcgisInternalPageChange=s()}static{this.properties={currentPage:9,currentUser:1,currentVersionInfo:0,executionError:1,featureServiceName:1,featureServiceUrl:1,hideFilter:5,isVersionAdministrator:5,isVersioningApiAvailable:5,messages:0,mode:1,totalPages:9,totalVersions:9,versionInfos:0}}static{this.styles=S}#e;willUpdate(e){if(e.has("mode")){let t=e.get("mode"),a=t==="browse-services"&&this.mode==="browse-versions",n=t==="browse-versions"&&(this.mode==="create-version"||this.mode==="edit-version");(a||n)&&this.executionError&&(this.executionError=void 0)}}#i(e){let{messages:t}=this;switch(e){case"no-feature-service-found":return t?.executionErrors.noFeatureServiceFound??"";case"no-valid-enterprise-version":return t?.executionErrors.notValidEnterpriseVersion??"";case"no-valid-version-name":return t?.executionErrors.invalidVersionName??"";default:return e}}#r(){this.executionError=void 0}#t(e){this.arcgisInternalPageChange.emit({currentPage:e.target.startItem})}#s(e){e.stopPropagation(),this.arcgisInternalManageVersion.emit({actionType:e.detail.actionType,serviceUrl:e.detail.serviceUrl,versionInfo:e.detail.versionInfo})}render(){let{currentUser:e,currentPage:t,currentVersionInfo:a,executionError:n,featureServiceName:c,featureServiceUrl:o,hideFilter:f,isVersionAdministrator:$,isVersioningApiAvailable:d,messages:r,totalPages:g,totalVersions:b,versionInfos:h}=this,V=h?.map(l=>i`<arcgis-version-management-version-list-item .currentUser=${e} .currentVersionInfo=${a} .featureServiceUrl=${o} .isVersionAdministrator=${$} .isVersioningApiAvailable=${d} .messages=${r} .versionInfo=${l} @arcgisInternalManageVersion=${this.#s}></arcgis-version-management-version-list-item>`),I=i`<div class="current-version-div"><calcite-label scale=m class="current-version-header-label">${r?.headers.currentVersion}</calcite-label><calcite-label scale=s class="current-version-description-label">${a?.versionIdentifier.name}</calcite-label></div>`,x=i`<calcite-action icon=refresh .id=${`action-refresh-versions-${c}`} .label=${`action-refresh-versions-${c}`} slot=actions-end text @click=${()=>{this.arcgisInternalGetVersions.emit({serviceUrl:o})}}><calcite-tooltip overlay-positioning=fixed .referenceElement=${`action-refresh-versions-${c}`}><span>${r?.actions.refreshVersions}</span></calcite-tooltip></calcite-action>`,w=i`<calcite-block .heading=${h?.length?`${r?.headers.manageVersions} (${b})`:r?.headers.manageVersions}>${x}</calcite-block>`,E=f?void 0:i`<calcite-input-text clearable icon=search .label=${r?.headers.filterVersions} .placeholder=${r?.actions.searchVersions} @calciteInputTextInput=${l=>{this.arcgisInternalFilterVersions.emit({filterText:l.target.value})}}></calcite-input-text>`,U=d?i`<calcite-fab appearance=outline-fill slot=fab text-enabled .text=${r?.actions.newVersion} @click=${()=>{this.arcgisInternalNewVersion.emit({serviceUrl:o??""})}}></calcite-fab>`:void 0,A=g>1?i`<calcite-pagination .pageSize=${this.#e} .startItem=${t} .totalItems=${g} @calcitePaginationChange=${this.#t}></calcite-pagination>`:void 0,P=n?i`<calcite-notice closable icon kind=warning open scale=s width=full @calciteNoticeClose=${this.#r}><div slot=message>${this.#i(n)}</div></calcite-notice>`:void 0,k=i`<calcite-panel>${U}<calcite-list .label=${r?.labels.versionList??""}>${V}</calcite-list></calcite-panel>`;return i`${I}${w}${E}${k}${A}${P}`}};p("arcgis-version-management-version-list",v);export{v as ArcgisVersionManagementVersionList};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{a as k}from"./XEK22IDA.js";import{a as C}from"./HP2P5OYN.js";import b from"./TMJX7DFH.js";import a from"./6CRONNHI.js";import"./VJVKFKSG.js";import{a as I}from"./7EMK74ZF.js";import"./6N7PM73F.js";import"./7IHIG427.js";import"./QUZTFUWM.js";import"./P2GMODLP.js";import{P as L,V as F,X as N,a as q,b as p}from"./33CM77ZT.js";import"./H6RQVSYM.js";export default $arcgis.t(([{createReactiveMap:v,findUtilityNetwork:x,getOrCreateMapValue:P},{stripHTML:S},f,{ignoreAbortErrors:D},{watch:T},U,Q,B,O,,{d:E,h:A}])=>{var G=q`.list-container{min-height:var(--calcite-spacing-xxxl)}.loading-container{display:flex;justify-content:center;padding:var(--calcite-spacing-md) 0;width:100%}.sticky-loading-container{display:flex;position:sticky;bottom:var(--calcite-spacing-sm);align-items:center;justify-content:center;z-index:2;margin:0;padding:0;height:var(--calcite-spacing-xxxl);pointer-events:none;height:500px}`,M=100,j={assetGroup:"assetgroup",assetType:"assettype"},V="{00000000-0000-0000-0000-000000000000}",$=class extends L{constructor(){super(...arguments),this._addFlowItem=e=>{e&&this.flowItems?.push(e)},this._attachmentAssociations=new f,this._attachmentFeatureCount=0,this._cancelQuery=()=>{let{_queryAbortController:e}=this;e&&e.abort(),this._queryAbortController=null},this._cancelQueryFeatureCount=()=>{let{_queryFeatureCountAbortController:e}=this;e&&e.abort(),this._queryFeatureCountAbortController=null},this._connectivityAssociations=new f,this._connectivityFeatureCount=0,this._containerAssociations=new f,this._containerFeatureCount=0,this._contentAssociations=new f,this._contentFeatureCount=0,this._messages=I({name:"utility-network-associations",blocking:!0}),this._messagesFeature=I({name:"feature",blocking:!0}),this._networkSourceIdsInUse=new Set,this._query=async e=>{if(!e)return;await this._loadUtilityNetworks();let{_queryAbortController:t}=this;this._destroyAssociatedFeatureViewModels(),this._clearFeatures(),this._featureCount&&await this._queryAssociatedFeatures(e,{signal:t?.signal})},this._queryController=async e=>{this._cancelQuery();let t=new AbortController;this._queryAbortController=t,await D(this._query(e)),this._queryAbortController===t&&(this._queryAbortController=null)},this._queryFeatureCountController=async()=>{this._loaded=!1,this._cancelQueryFeatureCount();let e=new AbortController;this._queryFeatureCountAbortController=e,await D(this._queryFeatureCount()),this._queryFeatureCountAbortController===e&&(this._queryFeatureCountAbortController=null),this._loaded=!0},this._queryDebounced=k(this._queryController,M),this._queryFeatureCountDebounced=k(this._queryFeatureCountController,M),this._structureAssociations=new f,this._structureFeatureCount=0,this._queryAssociationType=async()=>{this._activeAssociationType&&this._queryDebounced(this._activeAssociationType)},this._associationFeatures=v(),this._associationViewModels=v(),this._featureCount=0,this._loaded=!1,this._queryAbortController=null,this._queryFeatureCountAbortController=null,this._queryPageAbortController=null,this.associationTypes=null,this.autoDestroyDisabled=!1,this.useFeatureNextFlowItem=!1,this.includeDefaultActions=!1,this.flowType="feature-utility-network-associations",this.headingLevel=2,this.source="popup"}static{this.properties={_activeAssociationType:16,_associationFeatures:16,_associationViewModels:16,_canLoad:16,_canQuery:16,_featureCount:16,_loaded:16,_queryAbortController:16,_queryFeatureCountAbortController:16,_queryPageAbortController:16,_state:16,associationTypes:0,autoDestroyDisabled:5,description:1,flowItems:0,useFeatureNextFlowItem:5,actions:0,includeDefaultActions:5,flowType:1,graphic:0,heading:1,headingLevel:9,layer:0,map:0,messageOverrides:0,messages:0,parentFeatureViewModel:0,referenceElement:1,source:1,spatialReference:0,timeZone:1,view:0}}static{this.styles=G}get _globalId(){return(this._globalIdField&&this.graphic?.attributes?.[this._globalIdField])??null}get _globalIdField(){return this.layer?.globalIdField}get _objectId(){return(this._objectIdField&&this.graphic?.attributes?.[this._objectIdField])??null}get _objectIdField(){return this.layer?.objectIdField}get _supportsCacheHint(){return!!this.layer?.capabilities?.queryRelated?.supportsCacheHint}get _utilityNetwork(){let{layer:e,map:t}=this;if(!e?.loaded||!t)return null;let s=A(e)?e.parent:e;return x(t,s)}get _canLoad(){return!!this.map}get _canQuery(){return!!this.layer?.capabilities?.query?.supportsPagination}get _state(){let{_canLoad:e,_canQuery:t,_featureCount:s,_loaded:i,_queryAbortController:a,_queryFeatureCountAbortController:r,_queryPageAbortController:o,associationTypes:l}=this;return r||e&&!i?"loading":a||o?"querying":!this._globalId||!l||!t||!s?"disabled":"ready"}get heading(){return this._heading}set heading(e){this._heading=e}async destroy(){await this.manager.destroy()}loaded(){this.manager.onLifecycle(()=>[T(()=>[this.graphic,this.layer,this.map,this.associationTypes,this._canQuery,this._objectId,this._globalId],()=>{this._queryFeatureCountDebounced(),this._queryAssociationType()},{initial:!0}),T(()=>this._activeAssociationType,e=>{this._queryDebounced(e)}),T(()=>this._associationFeatures.values(),()=>{this._setUpUtilityNetworkAssociationsViewModels()})]),this.manager.onDestroy(()=>{this._cancelQuery(),this._cancelQueryFeatureCount()})}_addAssociationTypeFlowItem(e){let t=this.useFeatureNextFlowItem?F(p`<arcgis-feature-utility-network-association-list .actions=${this.actions} .autoDestroyDisabled=${this.autoDestroyDisabled} .associationViewModels=${this._associationViewModels} .description=${this._getParentFeatureDescription()} .flowItems=${this.flowItems} .flowType=${this.flowType} .heading=${this._getAssociationTypeTitle(e)} .includeDefaultActions=${this.includeDefaultActions} .map=${this.map} .messageOverrides=${this.messageOverrides} .parentFeatureViewModel=${this.parentFeatureViewModel} .referenceElement=${this.referenceElement} .state=${this._state} .spatialReference=${this.spatialReference} .timeZone=${this.timeZone} use-feature-next-flow-item .view=${this.view}></arcgis-feature-utility-network-association-list>`):F(p`<arcgis-feature-utility-network-association-list .actions=${this.actions} .autoDestroyDisabled=${this.autoDestroyDisabled} .associationViewModels=${this._associationViewModels} .description=${this._getParentFeatureDescription()} .flowItems=${this.flowItems} .flowType=${this.flowType} .heading=${this._getAssociationTypeTitle(e)} .includeDefaultActions=${this.includeDefaultActions} .map=${this.map} .messageOverrides=${this.messageOverrides} .parentFeatureViewModel=${this.parentFeatureViewModel} .referenceElement=${this.referenceElement} .state=${this._state} .spatialReference=${this.spatialReference} .timeZone=${this.timeZone} .view=${this.view}></arcgis-feature-utility-network-association-list>`);this._addFlowItem(t)}_clearAssociations(){this._attachmentAssociations.removeAll(),this._connectivityAssociations.removeAll(),this._containerAssociations.removeAll(),this._contentAssociations.removeAll(),this._structureAssociations.removeAll()}_clearFeatures(){this._associationFeatures.forEach(e=>e.removeAll()),this._associationFeatures.clear()}_compareByFeatureTitle(e,t){return e.title.localeCompare(t.title,void 0,{numeric:!0})}async _countAssociatedFeatureCount(e,t,s,i,a){let r=this._getFeatureQueryWhereClause(e,t,s,i),o=e.createQuery();return o.where=r,o.outFields=["*"],o.returnGeometry=!1,await e.queryFeatureCount(o,{signal:a?.signal})}async _countAssociatedFeatures(e,t,s,i,a){if(!t.length)return 0;let r=await this._findLayersBySourceId(e);await this._loadLayers(r);let o=r.map(l=>this._countAssociatedFeatureCount(l,t,s,i,a));return(await Promise.all(o)).reduce((l,c)=>l+c,0)}async _createAssociationFeatureObjects(e,t,s,i,a){if(!e.length)return[];let r=new Map,o=Array.from(t.entries()).map(async([c,d])=>{let u=await this._findLayersBySourceId(c);await this._loadLayers(u);let h=u.map(m=>this._queryLayer(m,d,s,i,a));(await Promise.all(h)).forEach(m=>{m.forEach(n=>{if(this.source==="popup"?n.sourceLayer&&n.getEffectivePopupTemplate():n.sourceLayer){let _=n.layer.globalIdField??"",y=n.getAttribute(_),w=r.get(y)??[];w.push(n),r.set(y,w)}})})});await Promise.all(o);let l=[];return await Promise.all(e.toArray().map(async c=>{let{fromNetworkElement:d,toNetworkElement:u}=c,h=d.globalId===this._globalId?u:d,m=r.get(h.globalId)??[];await Promise.all(m.map(async n=>{let _=this._utilityNetwork?.getTerminalById(h?.terminalId??void 0)?.name,y=await n.sourceLayer.getFeatureTitle(n)||this._getFeatureTitle(n);l.push({title:y,feature:n,association:c,terminalName:_})}))})),l}_destroyAssociatedFeatureViewModels(){this._associationViewModels.forEach(e=>e.destroyAll())}_equals(e,t){if(e.globalId===V&&t.globalId===V){let s=function(d,u){return d.networkSourceId===u.networkSourceId&&d.globalId===u.globalId&&d.terminalId===u.terminalId&&d.firstUnit===u.firstUnit&&d.numUnits===u.numUnits},i=e.fromNetworkElement,a=e.toNetworkElement,r=t.fromNetworkElement,o=t.toNetworkElement,l=s(i,r),c=s(a,o);return l&&c&&e.associationType===t.associationType}return e.globalId!=null&&t.globalId!=null&&e.globalId===t.globalId}async _findLayersBySourceId(e){let{_utilityNetwork:t,map:s}=this;t?.loaded||await t?.load();let i=t.getLayerIdBySourceId(e),a=s.allLayers.filter(o=>!!t?.isUtilityLayer(o)&&o.layerId===i),r=s.allTables.filter(o=>!!t?.isUtilityLayer(o)&&o.layerId===i);return a.concat(r).toArray()}_getAssociationsByType(e){switch(e){case"attachment":return this._attachmentAssociations;case"structure":return this._structureAssociations;case"connectivity":return this._connectivityAssociations;case"container":return this._containerAssociations;case"content":return this._contentAssociations}}_getAssociationTypeTitle(e){let{_messages:t}=this;if(e.title)return e.title;switch(e.type){case"attachment":return t.associationsAttachments??this.messages?.noTitle??"";case"connectivity":return t.associationsConnectivity??this.messages?.noTitle??"";case"structure":return t.associationsStructure??this.messages?.noTitle??"";case"content":return t.associationsContents??this.messages?.noTitle??"";case"container":return t.associationsContainer??this.messages?.noTitle??""}}_getFeatureCountForAssociationType(e){switch(e){case"attachment":return this._attachmentFeatureCount;case"structure":return this._structureFeatureCount;case"content":return this._contentFeatureCount;case"container":return this._containerFeatureCount;case"connectivity":return this._connectivityFeatureCount}}_getFeatureQueryWhereClause(e,t,s,i){let a=e.globalIdField,r=e.fieldsIndex.get(j.assetGroup),o=e.fieldsIndex.get(j.assetType),l=s!=null,c=i!=null,d=a?U.sqlIn(a,t):null,u=l?`(${r?.name} = ${s})`:null,h=l&&c?`(${o?.name} = ${i})`:null;return[d,u,h].filter(Boolean).join(" AND ")}_getFeatureTitle(e){let t=e.attributes,s=e.sourceLayer;if(!t||!s)return"";let i="displayField"in s?s.displayField:null,a=i!=null?t[i.toString()]:null,r=a!=null?a.toString():null,o=e.getObjectId()?.toString();return r||o||""}_getParentFeatureDescription(){let{parentFeatureViewModel:e}=this;if(e){if("heading"in e)return e.heading;if("title"in e)return e.title}}async _loadUtilityNetworks(){let e=this.map;if(!e)return;e.utilityNetworks&&await Promise.allSettled(e.utilityNetworks.map(s=>s.load()));let t=this._utilityNetwork;if(t){let s=i=>{if("layerId"in i&&t.isUtilityLayer(i)){let a=i.layerId!=null?t.getSourceIdByLayerId(i.layerId):null;a!=null&&this._networkSourceIdsInUse.add(a)}};this._networkSourceIdsInUse=new Set,e.allLayers.forEach(s),e.allTables.forEach(s)}}async _loadLayers(e){let t=e.filter(s=>!s.loaded).map(s=>s.load());t.length&&await Promise.allSettled(t)}_matchesGlobalFeature(e,t){return this._equals(e.association,t.association)}async _queryAssociatedFeatures(e,t){let{layer:s,_globalId:i,associationTypes:a,_utilityNetwork:r,_canQuery:o,_associationFeatures:l}=this;if(await Promise.allSettled([s?.load(),r?.load()]),!o||!s||!a||!r)return;let c=this._getAssociationsByType(e.type),{associatedAssetGroup:d,associatedAssetType:u}=e,h=new Map;c.forEach(n=>{let{fromNetworkElement:_,toNetworkElement:y}=n,{networkSourceId:w,elementGlobalId:b}=_.globalId===i?{networkSourceId:y.networkSourceId,elementGlobalId:y.globalId}:{networkSourceId:_.networkSourceId,elementGlobalId:_.globalId},g=h.get(w)||[];g.push(b),h.set(w,g)});let m=await this._createAssociationFeatureObjects(c,h,d,u,t);this._parseFeatureObjects(m,l)}async _queryAssociations(e){let{layer:t,_globalId:s,associationTypes:i,_utilityNetwork:a,_canQuery:r}=this;if(await Promise.allSettled([t?.load(),a?.load()]),this._clearAssociations(),!r||!t||!i||!a||!s)return;let o=A(t)?t.parent:t,l=new Q({globalId:s,networkSourceId:a.getSourceIdByLayerId(o.layerId)}),c=new Set;i.forEach(n=>{switch(n.type){case"attachment":case"structure":c.add("attachment");break;case"container":case"content":c.add("containment");break;case"connectivity":c.add("connectivity"),c.add("junction-junction-connectivity"),c.add("junction-edge-from-connectivity"),c.add("junction-edge-midspan-connectivity"),c.add("junction-edge-to-connectivity");break}});let d=await a?.queryAssociations(new B({elements:[l],types:Array.from(c)}),{signal:e?.signal}),u=new Map,h=new Map;i.forEach(n=>{h.set(n.type,n),u.set(n.type,[])}),d.forEach(n=>{let{toNetworkElement:_,fromNetworkElement:y}=n;switch(n.associationType){case"attachment":if(y?.globalId===s){if(this._shouldDiscardNetworkElement(_,"attachment",h))break;u.get("attachment")?.push(_.globalId),this._attachmentAssociations.add(n)}else{if(this._shouldDiscardNetworkElement(y,"structure",h))break;u.get("structure")?.push(y.globalId),this._structureAssociations.add(n)}break;case"connectivity":case"junction-edge-from-connectivity":case"junction-edge-midspan-connectivity":case"junction-edge-to-connectivity":case"junction-junction-connectivity":if(y?.globalId===s){if(this._shouldDiscardNetworkElement(_,"connectivity",h))break;u.get("connectivity")?.push(_.globalId)}else{if(this._shouldDiscardNetworkElement(y,"connectivity",h))break;u.get("connectivity")?.push(y.globalId)}this._connectivityAssociations.add(n);break;case"containment":if(y?.globalId===s){if(this._shouldDiscardNetworkElement(_,"content",h))break;u.get("content")?.push(_.globalId),this._contentAssociations.add(n)}else{if(this._shouldDiscardNetworkElement(y,"container",h))break;u.get("container")?.push(y.globalId),this._containerAssociations.add(n)}break}});let m=i.map(async n=>{let{associatedNetworkSourceId:_,associatedAssetGroup:y,associatedAssetType:w}=n,b=u.get(n.type),g=y!=null?await this._countAssociatedFeatures(_,b,y,w,e):b.length;switch(n.type){case"attachment":this._attachmentFeatureCount=g;break;case"connectivity":this._connectivityFeatureCount=g;break;case"container":this._containerFeatureCount=g;break;case"content":this._contentFeatureCount=g;break;case"structure":this._structureFeatureCount=g;break}});await Promise.allSettled(m)}async _queryFeatureCount(){await this._loadUtilityNetworks();let{_queryFeatureCountAbortController:e,_canQuery:t}=this;if(!t){this._featureCount=0;return}await this._queryAssociations(e),this._featureCount=this._attachmentFeatureCount+this._connectivityFeatureCount+this._containerFeatureCount+this._contentFeatureCount+this._structureFeatureCount}async _queryLayer(e,t,s,i,a){let r=this._getFeatureQueryWhereClause(e,t,s,i),o=e.createQuery();o.where=r,o.outFields=["*"],o.returnGeometry=!1,o.cacheHint=this._supportsCacheHint;let{features:l}=await E(e,o,a);return l}_parseFeatureObjects(e,t){let s=v();e.forEach(i=>{let a=(i?.feature).sourceLayer;P(s,a,()=>new f).add(i)});for(let[i,a]of s)this._sortFeatureObjectsByTitle(a),t.set(i,a)}_selectAssociationType(e){let{flowItems:t}=this;t&&(this._activeAssociationType=e,this._setUpUtilityNetworkAssociationsViewModels(),this._addAssociationTypeFlowItem(e))}_setUpUtilityNetworkAssociationsViewModels(){this._associationViewModels.forEach((a,r)=>{let o=this._associationFeatures.get(r);o?a.forEach(l=>{o.find(c=>this._matchesGlobalFeature(l,c))||(a.remove(l),a.length||this._associationViewModels.delete(r))}):(a.removeAll(),this._associationViewModels.delete(r))});let{map:e,view:t,spatialReference:s,timeZone:i}=this;this._associationFeatures.forEach((a,r)=>{let o=this._associationViewModels.get(r)||new f;a?.filter(Boolean).forEach((l,c)=>{if(!o.some(d=>this._matchesGlobalFeature(d,l))){let{association:d,feature:u,terminalName:h,title:m}=l;o.add({title:m,association:d,featureViewModel:new O({abilities:{utilityNetworkAssociationsContent:!1},map:e,view:t,spatialReference:s,timeZone:i,graphic:u}),terminalName:h},c)}}),this._associationViewModels.set(r,o)})}_shouldDiscardNetworkElement(e,t,s){if(!e)return!1;let{networkSourceId:i}=e,a=s.get(t)?.associatedNetworkSourceId,r=this._networkSourceIdsInUse.has(i);return a!=null&&a!==i||!r}_sortFeatureObjectsByTitle(e){e.sort(this._compareByFeatureTitle)}render(){let{_state:e}=this;return p`<div class="root"><arcgis-feature-element-info .heading=${this.heading} .headingLevel=${this.headingLevel} .description=${this.description}></arcgis-feature-element-info>${e==="loading"?this._renderLoading():e==="disabled"?this._renderAssociationNotFound():this._renderContent()}</div>`}_renderAssociationNotFound(){return p`<calcite-notice icon=information kind=info open scale=s width=full><div slot=message>${this._messages.noAssociations}</div></calcite-notice>`}_renderAssociationTypeList(e){return this._getFeatureCountForAssociationType(e.type)>0?this._renderAssociationTypeListItem(e):null}_renderAssociationTypeListItem(e){let t=this._getAssociationTypeTitle(e);return C(`association-type-${e.type}`,p`<calcite-list-item .description=${S(e.description)} .label=${S(t)} .value=${e.type} @calciteListItemSelect=${()=>this._selectAssociationType(e)}><calcite-icon flip-rtl icon=chevron-right scale=s slot=content-end></calcite-icon></calcite-list-item>`)}_renderContent(){let{_state:e,associationTypes:t}=this,s=this._messages.associationsList??this._messagesFeature.noTitle??"";return C("list-container",p`<div class="list-container">${e==="ready"?p`<div><calcite-list display-mode=flat .label=${s}>${t.map(i=>this._renderAssociationTypeList(i))}</calcite-list></div>`:null}${this._renderStickyLoading()}</div>`)}_renderLoading(){return p`<div class="loading-container">${this._renderLoadingIcon()}${this._renderStickyLoading()}</div>`}_renderLoadingIcon(){return p`<calcite-loader inline label></calcite-loader>`}_renderStickyLoading(){return this._state==="querying"?p`<div class="sticky-loading-container">${this._renderLoadingIcon()}</div>`:null}};N("arcgis-feature-utility-network-associations",$);return $},"applications/Components/featureUtils","applications/Components/stringUtils","core/Collection","core/promiseUtils","core/reactiveUtils","core/sql","rest/networks/support/NetworkElement","rest/networks/support/QueryAssociationsParameters","popup/FeatureModel",a,b)
2
+ import{a as k}from"./XEK22IDA.js";import{a as C}from"./VA4XYI2T.js";import b from"./TMJX7DFH.js";import a from"./W5B5MEWO.js";import"./VJVKFKSG.js";import{a as I}from"./TGYMVPHQ.js";import"./ADCXAT6P.js";import"./3NB34PX4.js";import"./QUZTFUWM.js";import"./OAXF6WOP.js";import{P as L,V as F,X as N,a as q,b as p}from"./4RV6TJ46.js";import"./H6RQVSYM.js";export default $arcgis.t(([{createReactiveMap:v,findUtilityNetwork:x,getOrCreateMapValue:P},{stripHTML:S},f,{ignoreAbortErrors:D},{watch:T},U,Q,B,O,,{d:E,h:A}])=>{var G=q`.list-container{min-height:var(--calcite-spacing-xxxl)}.loading-container{display:flex;justify-content:center;padding:var(--calcite-spacing-md) 0;width:100%}.sticky-loading-container{display:flex;position:sticky;bottom:var(--calcite-spacing-sm);align-items:center;justify-content:center;z-index:2;margin:0;padding:0;height:var(--calcite-spacing-xxxl);pointer-events:none;height:500px}`,M=100,j={assetGroup:"assetgroup",assetType:"assettype"},V="{00000000-0000-0000-0000-000000000000}",$=class extends L{constructor(){super(...arguments),this._addFlowItem=e=>{e&&this.flowItems?.push(e)},this._attachmentAssociations=new f,this._attachmentFeatureCount=0,this._cancelQuery=()=>{let{_queryAbortController:e}=this;e&&e.abort(),this._queryAbortController=null},this._cancelQueryFeatureCount=()=>{let{_queryFeatureCountAbortController:e}=this;e&&e.abort(),this._queryFeatureCountAbortController=null},this._connectivityAssociations=new f,this._connectivityFeatureCount=0,this._containerAssociations=new f,this._containerFeatureCount=0,this._contentAssociations=new f,this._contentFeatureCount=0,this._messages=I({name:"utility-network-associations",blocking:!0}),this._messagesFeature=I({name:"feature",blocking:!0}),this._networkSourceIdsInUse=new Set,this._query=async e=>{if(!e)return;await this._loadUtilityNetworks();let{_queryAbortController:t}=this;this._destroyAssociatedFeatureViewModels(),this._clearFeatures(),this._featureCount&&await this._queryAssociatedFeatures(e,{signal:t?.signal})},this._queryController=async e=>{this._cancelQuery();let t=new AbortController;this._queryAbortController=t,await D(this._query(e)),this._queryAbortController===t&&(this._queryAbortController=null)},this._queryFeatureCountController=async()=>{this._loaded=!1,this._cancelQueryFeatureCount();let e=new AbortController;this._queryFeatureCountAbortController=e,await D(this._queryFeatureCount()),this._queryFeatureCountAbortController===e&&(this._queryFeatureCountAbortController=null),this._loaded=!0},this._queryDebounced=k(this._queryController,M),this._queryFeatureCountDebounced=k(this._queryFeatureCountController,M),this._structureAssociations=new f,this._structureFeatureCount=0,this._queryAssociationType=async()=>{this._activeAssociationType&&this._queryDebounced(this._activeAssociationType)},this._associationFeatures=v(),this._associationViewModels=v(),this._featureCount=0,this._loaded=!1,this._queryAbortController=null,this._queryFeatureCountAbortController=null,this._queryPageAbortController=null,this.associationTypes=null,this.autoDestroyDisabled=!1,this.useFeatureNextFlowItem=!1,this.includeDefaultActions=!1,this.flowType="feature-utility-network-associations",this.headingLevel=2,this.source="popup"}static{this.properties={_activeAssociationType:16,_associationFeatures:16,_associationViewModels:16,_canLoad:16,_canQuery:16,_featureCount:16,_loaded:16,_queryAbortController:16,_queryFeatureCountAbortController:16,_queryPageAbortController:16,_state:16,associationTypes:0,autoDestroyDisabled:5,description:1,flowItems:0,useFeatureNextFlowItem:5,actions:0,includeDefaultActions:5,flowType:1,graphic:0,heading:1,headingLevel:9,layer:0,map:0,messageOverrides:0,messages:0,parentFeatureViewModel:0,referenceElement:1,source:1,spatialReference:0,timeZone:1,view:0}}static{this.styles=G}get _globalId(){return(this._globalIdField&&this.graphic?.attributes?.[this._globalIdField])??null}get _globalIdField(){return this.layer?.globalIdField}get _objectId(){return(this._objectIdField&&this.graphic?.attributes?.[this._objectIdField])??null}get _objectIdField(){return this.layer?.objectIdField}get _supportsCacheHint(){return!!this.layer?.capabilities?.queryRelated?.supportsCacheHint}get _utilityNetwork(){let{layer:e,map:t}=this;if(!e?.loaded||!t)return null;let s=A(e)?e.parent:e;return x(t,s)}get _canLoad(){return!!this.map}get _canQuery(){return!!this.layer?.capabilities?.query?.supportsPagination}get _state(){let{_canLoad:e,_canQuery:t,_featureCount:s,_loaded:i,_queryAbortController:a,_queryFeatureCountAbortController:r,_queryPageAbortController:o,associationTypes:l}=this;return r||e&&!i?"loading":a||o?"querying":!this._globalId||!l||!t||!s?"disabled":"ready"}get heading(){return this._heading}set heading(e){this._heading=e}async destroy(){await this.manager.destroy()}loaded(){this.manager.onLifecycle(()=>[T(()=>[this.graphic,this.layer,this.map,this.associationTypes,this._canQuery,this._objectId,this._globalId],()=>{this._queryFeatureCountDebounced(),this._queryAssociationType()},{initial:!0}),T(()=>this._activeAssociationType,e=>{this._queryDebounced(e)}),T(()=>this._associationFeatures.values(),()=>{this._setUpUtilityNetworkAssociationsViewModels()})]),this.manager.onDestroy(()=>{this._cancelQuery(),this._cancelQueryFeatureCount()})}_addAssociationTypeFlowItem(e){let t=this.useFeatureNextFlowItem?F(p`<arcgis-feature-utility-network-association-list .actions=${this.actions} .autoDestroyDisabled=${this.autoDestroyDisabled} .associationViewModels=${this._associationViewModels} .description=${this._getParentFeatureDescription()} .flowItems=${this.flowItems} .flowType=${this.flowType} .heading=${this._getAssociationTypeTitle(e)} .includeDefaultActions=${this.includeDefaultActions} .map=${this.map} .messageOverrides=${this.messageOverrides} .parentFeatureViewModel=${this.parentFeatureViewModel} .referenceElement=${this.referenceElement} .state=${this._state} .spatialReference=${this.spatialReference} .timeZone=${this.timeZone} use-feature-next-flow-item .view=${this.view}></arcgis-feature-utility-network-association-list>`):F(p`<arcgis-feature-utility-network-association-list .actions=${this.actions} .autoDestroyDisabled=${this.autoDestroyDisabled} .associationViewModels=${this._associationViewModels} .description=${this._getParentFeatureDescription()} .flowItems=${this.flowItems} .flowType=${this.flowType} .heading=${this._getAssociationTypeTitle(e)} .includeDefaultActions=${this.includeDefaultActions} .map=${this.map} .messageOverrides=${this.messageOverrides} .parentFeatureViewModel=${this.parentFeatureViewModel} .referenceElement=${this.referenceElement} .state=${this._state} .spatialReference=${this.spatialReference} .timeZone=${this.timeZone} .view=${this.view}></arcgis-feature-utility-network-association-list>`);this._addFlowItem(t)}_clearAssociations(){this._attachmentAssociations.removeAll(),this._connectivityAssociations.removeAll(),this._containerAssociations.removeAll(),this._contentAssociations.removeAll(),this._structureAssociations.removeAll()}_clearFeatures(){this._associationFeatures.forEach(e=>e.removeAll()),this._associationFeatures.clear()}_compareByFeatureTitle(e,t){return e.title.localeCompare(t.title,void 0,{numeric:!0})}async _countAssociatedFeatureCount(e,t,s,i,a){let r=this._getFeatureQueryWhereClause(e,t,s,i),o=e.createQuery();return o.where=r,o.outFields=["*"],o.returnGeometry=!1,await e.queryFeatureCount(o,{signal:a?.signal})}async _countAssociatedFeatures(e,t,s,i,a){if(!t.length)return 0;let r=await this._findLayersBySourceId(e);await this._loadLayers(r);let o=r.map(l=>this._countAssociatedFeatureCount(l,t,s,i,a));return(await Promise.all(o)).reduce((l,c)=>l+c,0)}async _createAssociationFeatureObjects(e,t,s,i,a){if(!e.length)return[];let r=new Map,o=Array.from(t.entries()).map(async([c,d])=>{let u=await this._findLayersBySourceId(c);await this._loadLayers(u);let h=u.map(m=>this._queryLayer(m,d,s,i,a));(await Promise.all(h)).forEach(m=>{m.forEach(n=>{if(this.source==="popup"?n.sourceLayer&&n.getEffectivePopupTemplate():n.sourceLayer){let _=n.layer.globalIdField??"",y=n.getAttribute(_),w=r.get(y)??[];w.push(n),r.set(y,w)}})})});await Promise.all(o);let l=[];return await Promise.all(e.toArray().map(async c=>{let{fromNetworkElement:d,toNetworkElement:u}=c,h=d.globalId===this._globalId?u:d,m=r.get(h.globalId)??[];await Promise.all(m.map(async n=>{let _=this._utilityNetwork?.getTerminalById(h?.terminalId??void 0)?.name,y=await n.sourceLayer.getFeatureTitle(n)||this._getFeatureTitle(n);l.push({title:y,feature:n,association:c,terminalName:_})}))})),l}_destroyAssociatedFeatureViewModels(){this._associationViewModels.forEach(e=>e.destroyAll())}_equals(e,t){if(e.globalId===V&&t.globalId===V){let s=function(d,u){return d.networkSourceId===u.networkSourceId&&d.globalId===u.globalId&&d.terminalId===u.terminalId&&d.firstUnit===u.firstUnit&&d.numUnits===u.numUnits},i=e.fromNetworkElement,a=e.toNetworkElement,r=t.fromNetworkElement,o=t.toNetworkElement,l=s(i,r),c=s(a,o);return l&&c&&e.associationType===t.associationType}return e.globalId!=null&&t.globalId!=null&&e.globalId===t.globalId}async _findLayersBySourceId(e){let{_utilityNetwork:t,map:s}=this;t?.loaded||await t?.load();let i=t.getLayerIdBySourceId(e),a=s.allLayers.filter(o=>!!t?.isUtilityLayer(o)&&o.layerId===i),r=s.allTables.filter(o=>!!t?.isUtilityLayer(o)&&o.layerId===i);return a.concat(r).toArray()}_getAssociationsByType(e){switch(e){case"attachment":return this._attachmentAssociations;case"structure":return this._structureAssociations;case"connectivity":return this._connectivityAssociations;case"container":return this._containerAssociations;case"content":return this._contentAssociations}}_getAssociationTypeTitle(e){let{_messages:t}=this;if(e.title)return e.title;switch(e.type){case"attachment":return t.associationsAttachments??this.messages?.noTitle??"";case"connectivity":return t.associationsConnectivity??this.messages?.noTitle??"";case"structure":return t.associationsStructure??this.messages?.noTitle??"";case"content":return t.associationsContents??this.messages?.noTitle??"";case"container":return t.associationsContainer??this.messages?.noTitle??""}}_getFeatureCountForAssociationType(e){switch(e){case"attachment":return this._attachmentFeatureCount;case"structure":return this._structureFeatureCount;case"content":return this._contentFeatureCount;case"container":return this._containerFeatureCount;case"connectivity":return this._connectivityFeatureCount}}_getFeatureQueryWhereClause(e,t,s,i){let a=e.globalIdField,r=e.fieldsIndex.get(j.assetGroup),o=e.fieldsIndex.get(j.assetType),l=s!=null,c=i!=null,d=a?U.sqlIn(a,t):null,u=l?`(${r?.name} = ${s})`:null,h=l&&c?`(${o?.name} = ${i})`:null;return[d,u,h].filter(Boolean).join(" AND ")}_getFeatureTitle(e){let t=e.attributes,s=e.sourceLayer;if(!t||!s)return"";let i="displayField"in s?s.displayField:null,a=i!=null?t[i.toString()]:null,r=a!=null?a.toString():null,o=e.getObjectId()?.toString();return r||o||""}_getParentFeatureDescription(){let{parentFeatureViewModel:e}=this;if(e){if("heading"in e)return e.heading;if("title"in e)return e.title}}async _loadUtilityNetworks(){let e=this.map;if(!e)return;e.utilityNetworks&&await Promise.allSettled(e.utilityNetworks.map(s=>s.load()));let t=this._utilityNetwork;if(t){let s=i=>{if("layerId"in i&&t.isUtilityLayer(i)){let a=i.layerId!=null?t.getSourceIdByLayerId(i.layerId):null;a!=null&&this._networkSourceIdsInUse.add(a)}};this._networkSourceIdsInUse=new Set,e.allLayers.forEach(s),e.allTables.forEach(s)}}async _loadLayers(e){let t=e.filter(s=>!s.loaded).map(s=>s.load());t.length&&await Promise.allSettled(t)}_matchesGlobalFeature(e,t){return this._equals(e.association,t.association)}async _queryAssociatedFeatures(e,t){let{layer:s,_globalId:i,associationTypes:a,_utilityNetwork:r,_canQuery:o,_associationFeatures:l}=this;if(await Promise.allSettled([s?.load(),r?.load()]),!o||!s||!a||!r)return;let c=this._getAssociationsByType(e.type),{associatedAssetGroup:d,associatedAssetType:u}=e,h=new Map;c.forEach(n=>{let{fromNetworkElement:_,toNetworkElement:y}=n,{networkSourceId:w,elementGlobalId:b}=_.globalId===i?{networkSourceId:y.networkSourceId,elementGlobalId:y.globalId}:{networkSourceId:_.networkSourceId,elementGlobalId:_.globalId},g=h.get(w)||[];g.push(b),h.set(w,g)});let m=await this._createAssociationFeatureObjects(c,h,d,u,t);this._parseFeatureObjects(m,l)}async _queryAssociations(e){let{layer:t,_globalId:s,associationTypes:i,_utilityNetwork:a,_canQuery:r}=this;if(await Promise.allSettled([t?.load(),a?.load()]),this._clearAssociations(),!r||!t||!i||!a||!s)return;let o=A(t)?t.parent:t,l=new Q({globalId:s,networkSourceId:a.getSourceIdByLayerId(o.layerId)}),c=new Set;i.forEach(n=>{switch(n.type){case"attachment":case"structure":c.add("attachment");break;case"container":case"content":c.add("containment");break;case"connectivity":c.add("connectivity"),c.add("junction-junction-connectivity"),c.add("junction-edge-from-connectivity"),c.add("junction-edge-midspan-connectivity"),c.add("junction-edge-to-connectivity");break}});let d=await a?.queryAssociations(new B({elements:[l],types:Array.from(c)}),{signal:e?.signal}),u=new Map,h=new Map;i.forEach(n=>{h.set(n.type,n),u.set(n.type,[])}),d.forEach(n=>{let{toNetworkElement:_,fromNetworkElement:y}=n;switch(n.associationType){case"attachment":if(y?.globalId===s){if(this._shouldDiscardNetworkElement(_,"attachment",h))break;u.get("attachment")?.push(_.globalId),this._attachmentAssociations.add(n)}else{if(this._shouldDiscardNetworkElement(y,"structure",h))break;u.get("structure")?.push(y.globalId),this._structureAssociations.add(n)}break;case"connectivity":case"junction-edge-from-connectivity":case"junction-edge-midspan-connectivity":case"junction-edge-to-connectivity":case"junction-junction-connectivity":if(y?.globalId===s){if(this._shouldDiscardNetworkElement(_,"connectivity",h))break;u.get("connectivity")?.push(_.globalId)}else{if(this._shouldDiscardNetworkElement(y,"connectivity",h))break;u.get("connectivity")?.push(y.globalId)}this._connectivityAssociations.add(n);break;case"containment":if(y?.globalId===s){if(this._shouldDiscardNetworkElement(_,"content",h))break;u.get("content")?.push(_.globalId),this._contentAssociations.add(n)}else{if(this._shouldDiscardNetworkElement(y,"container",h))break;u.get("container")?.push(y.globalId),this._containerAssociations.add(n)}break}});let m=i.map(async n=>{let{associatedNetworkSourceId:_,associatedAssetGroup:y,associatedAssetType:w}=n,b=u.get(n.type),g=y!=null?await this._countAssociatedFeatures(_,b,y,w,e):b.length;switch(n.type){case"attachment":this._attachmentFeatureCount=g;break;case"connectivity":this._connectivityFeatureCount=g;break;case"container":this._containerFeatureCount=g;break;case"content":this._contentFeatureCount=g;break;case"structure":this._structureFeatureCount=g;break}});await Promise.allSettled(m)}async _queryFeatureCount(){await this._loadUtilityNetworks();let{_queryFeatureCountAbortController:e,_canQuery:t}=this;if(!t){this._featureCount=0;return}await this._queryAssociations(e),this._featureCount=this._attachmentFeatureCount+this._connectivityFeatureCount+this._containerFeatureCount+this._contentFeatureCount+this._structureFeatureCount}async _queryLayer(e,t,s,i,a){let r=this._getFeatureQueryWhereClause(e,t,s,i),o=e.createQuery();o.where=r,o.outFields=["*"],o.returnGeometry=!1,o.cacheHint=this._supportsCacheHint;let{features:l}=await E(e,o,a);return l}_parseFeatureObjects(e,t){let s=v();e.forEach(i=>{let a=(i?.feature).sourceLayer;P(s,a,()=>new f).add(i)});for(let[i,a]of s)this._sortFeatureObjectsByTitle(a),t.set(i,a)}_selectAssociationType(e){let{flowItems:t}=this;t&&(this._activeAssociationType=e,this._setUpUtilityNetworkAssociationsViewModels(),this._addAssociationTypeFlowItem(e))}_setUpUtilityNetworkAssociationsViewModels(){this._associationViewModels.forEach((a,r)=>{let o=this._associationFeatures.get(r);o?a.forEach(l=>{o.find(c=>this._matchesGlobalFeature(l,c))||(a.remove(l),a.length||this._associationViewModels.delete(r))}):(a.removeAll(),this._associationViewModels.delete(r))});let{map:e,view:t,spatialReference:s,timeZone:i}=this;this._associationFeatures.forEach((a,r)=>{let o=this._associationViewModels.get(r)||new f;a?.filter(Boolean).forEach((l,c)=>{if(!o.some(d=>this._matchesGlobalFeature(d,l))){let{association:d,feature:u,terminalName:h,title:m}=l;o.add({title:m,association:d,featureViewModel:new O({abilities:{utilityNetworkAssociationsContent:!1},map:e,view:t,spatialReference:s,timeZone:i,graphic:u}),terminalName:h},c)}}),this._associationViewModels.set(r,o)})}_shouldDiscardNetworkElement(e,t,s){if(!e)return!1;let{networkSourceId:i}=e,a=s.get(t)?.associatedNetworkSourceId,r=this._networkSourceIdsInUse.has(i);return a!=null&&a!==i||!r}_sortFeatureObjectsByTitle(e){e.sort(this._compareByFeatureTitle)}render(){let{_state:e}=this;return p`<div class="root"><arcgis-feature-element-info .heading=${this.heading} .headingLevel=${this.headingLevel} .description=${this.description}></arcgis-feature-element-info>${e==="loading"?this._renderLoading():e==="disabled"?this._renderAssociationNotFound():this._renderContent()}</div>`}_renderAssociationNotFound(){return p`<calcite-notice icon=information kind=info open scale=s width=full><div slot=message>${this._messages.noAssociations}</div></calcite-notice>`}_renderAssociationTypeList(e){return this._getFeatureCountForAssociationType(e.type)>0?this._renderAssociationTypeListItem(e):null}_renderAssociationTypeListItem(e){let t=this._getAssociationTypeTitle(e);return C(`association-type-${e.type}`,p`<calcite-list-item .description=${S(e.description)} .label=${S(t)} .value=${e.type} @calciteListItemSelect=${()=>this._selectAssociationType(e)}><calcite-icon flip-rtl icon=chevron-right scale=s slot=content-end></calcite-icon></calcite-list-item>`)}_renderContent(){let{_state:e,associationTypes:t}=this,s=this._messages.associationsList??this._messagesFeature.noTitle??"";return C("list-container",p`<div class="list-container">${e==="ready"?p`<div><calcite-list display-mode=flat .label=${s}>${t.map(i=>this._renderAssociationTypeList(i))}</calcite-list></div>`:null}${this._renderStickyLoading()}</div>`)}_renderLoading(){return p`<div class="loading-container">${this._renderLoadingIcon()}${this._renderStickyLoading()}</div>`}_renderLoadingIcon(){return p`<calcite-loader inline label></calcite-loader>`}_renderStickyLoading(){return this._state==="querying"?p`<div class="sticky-loading-container">${this._renderLoadingIcon()}</div>`:null}};N("arcgis-feature-utility-network-associations",$);return $},"applications/Components/featureUtils","applications/Components/stringUtils","core/Collection","core/promiseUtils","core/reactiveUtils","core/sql","rest/networks/support/NetworkElement","rest/networks/support/QueryAssociationsParameters","popup/FeatureModel",a,b)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{d as i}from"./O7RSAJOS.js";import{a as z}from"./HP2P5OYN.js";import{a as f}from"./7EMK74ZF.js";import{f as v}from"./6N7PM73F.js";import"./7IHIG427.js";import"./QUZTFUWM.js";import"./P2GMODLP.js";import{P as u,R as p,X as k,a as b,b as d,x as g}from"./33CM77ZT.js";import"./H6RQVSYM.js";export default $arcgis.t(([{substitute:$}])=>{var w="compact",x=new Map([["fr","full"],["he","full"],["ja","full"],["ko","compact-wrap"],["zh-CN","full"],["zh-HK","full-wrap"],["zh-TW","full-wrap"]]),F=new Set(["compact-wrap","full-wrap"]),m={hour:"numeric",minute:"numeric",timeZone:"UTC"},y={hour:"numeric",timeZone:"UTC"},T=a=>"";function C(a){let e=new Intl.DateTimeFormat(a,m),t=new Intl.DateTimeFormat(a,{...m,hourCycle:"h24"}),l=e.resolvedOptions().hour12===!1;return n=>{let r=i(n,"minutes","milliseconds"),s=new Date(r);return r!==0&&s.getUTCHours()===0&&s.getUTCMinutes()===0&&l?t.format(s):e.format(s)}}function D(a){let e=new Intl.DateTimeFormat(a,m),t=new Intl.DateTimeFormat(a,y),l=x.get(a)??w;return n=>{let r=Math.round(i(n,"minutes","hours")),s=i(r,"hours","milliseconds"),o=new Date(s);switch(l){case"full":case"full-wrap":return e.format(o);case"compact-wrap":return _(t.format(o)," ");default:return _(t.format(o),"\xA0")}}}function S(a){return F.has(x.get(a)??w)}function _(a,e){return a.replace(/\S+/gu,I).replace(/\s+/gu,e)}function I(a){return Array.from(a).join("\u2060")}var W=b`:host{display:block}arcgis-slider{--arcgis-slider-handle-size: var(--calcite-size-2xs);--slider-default-handle-size: var(--calcite-size-2xs);--slider-thumb-label-height: var(--calcite-input-number-height, 1.5rem);--tick-label-gap: var(--calcite-space-lg);--tick-label-font-size: var(--calcite-font-size--3);--tick-label-extra-line-count: 0;--range-label-font-size: var(--calcite-font-size--2);--range-label-padding-block-start: calc(var(--calcite-space-xs) / 2);--tick-label-padding-block-end-scale-adjustment: max( 0rem, calc(var(--slider-default-handle-size) - var(--arcgis-slider-handle-size)) );--tick-label-padding-block-end-base: calc(var(--tick-label-gap) - (var(--tick-label-font-size) / 2));--tick-label-padding-block-end-wrap: calc(var(--tick-label-font-size) * var(--tick-label-extra-line-count));--tick-label-padding-block-end: calc( var(--tick-label-padding-block-end-base) + var(--tick-label-padding-block-end-scale-adjustment) + var(--tick-label-padding-block-end-wrap) );--range-label-padding-block-end-base: calc(var(--slider-thumb-label-height) + (var(--arcgis-slider-handle-size) / 2));--range-label-padding-block-end-offset: calc(var(--range-label-padding-block-start) + var(--range-label-font-size));--range-label-padding-block-end: calc( var(--range-label-padding-block-end-base) - var(--range-label-padding-block-end-offset) );--calcite-font-size-sm: var(--range-label-font-size);display:block;margin-block-start:calc((var(--arcgis-slider-handle-size) / 2 + var(--range-label-padding-block-start)) * -1);padding-block-end:var(--tick-label-padding-block-end);&.wrap-labels{--tick-label-extra-line-count: 1}}:host([visual-scale="s"]) arcgis-slider{--arcgis-slider-handle-size: var(--calcite-size-4xs);--tick-label-font-size: var(--calcite-font-size--3);--range-label-font-size: var(--calcite-font-size--3);--tick-label-gap: var(--calcite-space-md)}:host([visual-scale="l"]) arcgis-slider{--arcgis-slider-handle-size: var(--calcite-size-xs);--tick-label-font-size: var(--calcite-font-size--2);--range-label-font-size: var(--calcite-font-size--1);--tick-label-gap: var(--calcite-space-xl)}.ticks-container{position:relative;width:100%}.time-range-label{position:relative;width:100%;font-size:var(--range-label-font-size);font-variant-numeric:tabular-nums;line-height:1em;padding-block-start:var(--range-label-padding-block-start);padding-block-end:var(--range-label-padding-block-end);text-align:center}.main-ticks,.secondary-ticks{position:absolute;inset:0;--arcgis-ticks-gap: var(--tick-label-gap);--arcgis-ticks-outline-color: var(--calcite-color-foreground-1)}.main-ticks{--arcgis-ticks-tick-length: calc(var(--calcite-size-fixed-xxxs) * 2);--arcgis-ticks-font-size: var(--tick-label-font-size);--arcgis-ticks-label-width: min-content;--arcgis-ticks-label-text-align: center;white-space:nowrap;word-break:auto-phrase;font-variant-numeric:tabular-nums}.wrap-labels .main-ticks{white-space:normal}.secondary-ticks{--arcgis-ticks-tick-length: var(--calcite-size-fixed-xxxs)}`,h=class extends u{constructor(){super(...arguments),this.messages=f({blocking:!0}),this._direction=v(),this._shouldWrapLabels=!1,this._sliderLabelFormatter=T,this._tickLabelFormatter=T,this.disabled=!1,this.mode="range",this.startTime=0,this.endTime=0,this.visualScale="m",this.arcgisTimeChange=g()}static{this.properties={_shouldWrapLabels:16,_values:16,_sliderLabelFormatter:16,_tickLabelFormatter:16,disabled:7,mode:3,startTime:9,endTime:9,label:1,steps:9,visualScale:3}}static{this.styles=W}willUpdate(e){(e.has("mode")||e.has("startTime")||e.has("endTime"))&&(this._values=this.mode==="single"?[this.startTime]:[this.startTime,this.endTime]),e.has("messages")&&this._updateLabelFormatters()}_setStartTime(e){this.startTime=e,this.arcgisTimeChange.emit()}_setRange(e,t){this.startTime=e,this.endTime=t,this.arcgisTimeChange.emit()}_updateLabelFormatters(){let e=this.messages._lang;this._sliderLabelFormatter=C(e),this._tickLabelFormatter=D(e),this._shouldWrapLabels=S(e)}_isolateTimeLabel(e){return this._direction==="rtl"?`\u2068${e}\u2069`:e}render(){let e=this.mode==="single"&&!this.disabled;return z(this.messages._lang,d`<arcgis-slider .ariaLabel=${this.label} class=${p({"wrap-labels":this._shouldWrapLabels})} .disabled=${this.disabled} .fillPlacement=${this.mode==="range"?"between":"none"} .labelFormatter=${this._sliderLabelFormatter} layout=horizontal min=0 .max=${c} .steps=${this.steps??1} .valueLabelsDisplay=${this.mode==="range"?"hidden":"always"} value-labels-placement=start .values=${this._values} @arcgisInput=${({currentTarget:{values:t}})=>{this.mode==="single"?this._setStartTime(t[0]):this._setRange(t[0],t[1])}}>${this.mode==="range"?this._renderTimeRange():void 0}<div class="ticks-container" slot=content-end><arcgis-ticks class="main-ticks" .interactive=${e} .labelFormatter=${this._tickLabelFormatter} layout=horizontal min=0 .max=${c} mode=value show-labels .values=${L} @arcgisTickClick=${t=>this._setStartTime(t.detail.value)}></arcgis-ticks><arcgis-ticks class="secondary-ticks" layout=horizontal min=0 .max=${c} mode=value .values=${R} @arcgisTickClick=${t=>this._setStartTime(t.detail.value)}></arcgis-ticks></div></arcgis-slider>`)}_renderTimeRange(){let e=this._isolateTimeLabel(this._sliderLabelFormatter(this.startTime)),t=this._isolateTimeLabel(this._sliderLabelFormatter(this.endTime)),l=this.messages?.timeRange;return d`<div class="time-range-label" aria-live=polite slot=content-start>${$(l??"{start} \u2014 {end}",{start:e,end:t})}</div>`}},c=i(24,"hours","minutes")-1,L=[0,6,12,18].map(a=>i(a,"hours","minutes"));L.push(c);var R=[2,4,8,10,14,16,20,22].map(a=>i(a,"hours","minutes"));k("arcgis-time-of-day-slider",h);return h},"intl")
2
+ import{d as i}from"./O7RSAJOS.js";import{a as z}from"./VA4XYI2T.js";import{a as f}from"./TGYMVPHQ.js";import{f as v}from"./ADCXAT6P.js";import"./3NB34PX4.js";import"./QUZTFUWM.js";import"./OAXF6WOP.js";import{P as u,R as p,X as k,a as b,b as d,x as g}from"./4RV6TJ46.js";import"./H6RQVSYM.js";export default $arcgis.t(([{substitute:$}])=>{var w="compact",x=new Map([["fr","full"],["he","full"],["ja","full"],["ko","compact-wrap"],["zh-CN","full"],["zh-HK","full-wrap"],["zh-TW","full-wrap"]]),F=new Set(["compact-wrap","full-wrap"]),m={hour:"numeric",minute:"numeric",timeZone:"UTC"},y={hour:"numeric",timeZone:"UTC"},T=a=>"";function C(a){let e=new Intl.DateTimeFormat(a,m),t=new Intl.DateTimeFormat(a,{...m,hourCycle:"h24"}),l=e.resolvedOptions().hour12===!1;return n=>{let r=i(n,"minutes","milliseconds"),s=new Date(r);return r!==0&&s.getUTCHours()===0&&s.getUTCMinutes()===0&&l?t.format(s):e.format(s)}}function D(a){let e=new Intl.DateTimeFormat(a,m),t=new Intl.DateTimeFormat(a,y),l=x.get(a)??w;return n=>{let r=Math.round(i(n,"minutes","hours")),s=i(r,"hours","milliseconds"),o=new Date(s);switch(l){case"full":case"full-wrap":return e.format(o);case"compact-wrap":return _(t.format(o)," ");default:return _(t.format(o),"\xA0")}}}function S(a){return F.has(x.get(a)??w)}function _(a,e){return a.replace(/\S+/gu,I).replace(/\s+/gu,e)}function I(a){return Array.from(a).join("\u2060")}var W=b`:host{display:block}arcgis-slider{--arcgis-slider-handle-size: var(--calcite-size-2xs);--slider-default-handle-size: var(--calcite-size-2xs);--slider-thumb-label-height: var(--calcite-input-number-height, 1.5rem);--tick-label-gap: var(--calcite-space-lg);--tick-label-font-size: var(--calcite-font-size--3);--tick-label-extra-line-count: 0;--range-label-font-size: var(--calcite-font-size--2);--range-label-padding-block-start: calc(var(--calcite-space-xs) / 2);--tick-label-padding-block-end-scale-adjustment: max( 0rem, calc(var(--slider-default-handle-size) - var(--arcgis-slider-handle-size)) );--tick-label-padding-block-end-base: calc(var(--tick-label-gap) - (var(--tick-label-font-size) / 2));--tick-label-padding-block-end-wrap: calc(var(--tick-label-font-size) * var(--tick-label-extra-line-count));--tick-label-padding-block-end: calc( var(--tick-label-padding-block-end-base) + var(--tick-label-padding-block-end-scale-adjustment) + var(--tick-label-padding-block-end-wrap) );--range-label-padding-block-end-base: calc(var(--slider-thumb-label-height) + (var(--arcgis-slider-handle-size) / 2));--range-label-padding-block-end-offset: calc(var(--range-label-padding-block-start) + var(--range-label-font-size));--range-label-padding-block-end: calc( var(--range-label-padding-block-end-base) - var(--range-label-padding-block-end-offset) );--calcite-font-size-sm: var(--range-label-font-size);display:block;margin-block-start:calc((var(--arcgis-slider-handle-size) / 2 + var(--range-label-padding-block-start)) * -1);padding-block-end:var(--tick-label-padding-block-end);&.wrap-labels{--tick-label-extra-line-count: 1}}:host([visual-scale="s"]) arcgis-slider{--arcgis-slider-handle-size: var(--calcite-size-4xs);--tick-label-font-size: var(--calcite-font-size--3);--range-label-font-size: var(--calcite-font-size--3);--tick-label-gap: var(--calcite-space-md)}:host([visual-scale="l"]) arcgis-slider{--arcgis-slider-handle-size: var(--calcite-size-xs);--tick-label-font-size: var(--calcite-font-size--2);--range-label-font-size: var(--calcite-font-size--1);--tick-label-gap: var(--calcite-space-xl)}.ticks-container{position:relative;width:100%}.time-range-label{position:relative;width:100%;font-size:var(--range-label-font-size);font-variant-numeric:tabular-nums;line-height:1em;padding-block-start:var(--range-label-padding-block-start);padding-block-end:var(--range-label-padding-block-end);text-align:center}.main-ticks,.secondary-ticks{position:absolute;inset:0;--arcgis-ticks-gap: var(--tick-label-gap);--arcgis-ticks-outline-color: var(--calcite-color-foreground-1)}.main-ticks{--arcgis-ticks-tick-length: calc(var(--calcite-size-fixed-xxxs) * 2);--arcgis-ticks-font-size: var(--tick-label-font-size);--arcgis-ticks-label-width: min-content;--arcgis-ticks-label-text-align: center;white-space:nowrap;word-break:auto-phrase;font-variant-numeric:tabular-nums}.wrap-labels .main-ticks{white-space:normal}.secondary-ticks{--arcgis-ticks-tick-length: var(--calcite-size-fixed-xxxs)}`,h=class extends u{constructor(){super(...arguments),this.messages=f({blocking:!0}),this._direction=v(),this._shouldWrapLabels=!1,this._sliderLabelFormatter=T,this._tickLabelFormatter=T,this.disabled=!1,this.mode="range",this.startTime=0,this.endTime=0,this.visualScale="m",this.arcgisTimeChange=g()}static{this.properties={_shouldWrapLabels:16,_values:16,_sliderLabelFormatter:16,_tickLabelFormatter:16,disabled:7,mode:3,startTime:9,endTime:9,label:1,steps:9,visualScale:3}}static{this.styles=W}willUpdate(e){(e.has("mode")||e.has("startTime")||e.has("endTime"))&&(this._values=this.mode==="single"?[this.startTime]:[this.startTime,this.endTime]),e.has("messages")&&this._updateLabelFormatters()}_setStartTime(e){this.startTime=e,this.arcgisTimeChange.emit()}_setRange(e,t){this.startTime=e,this.endTime=t,this.arcgisTimeChange.emit()}_updateLabelFormatters(){let e=this.messages._lang;this._sliderLabelFormatter=C(e),this._tickLabelFormatter=D(e),this._shouldWrapLabels=S(e)}_isolateTimeLabel(e){return this._direction==="rtl"?`\u2068${e}\u2069`:e}render(){let e=this.mode==="single"&&!this.disabled;return z(this.messages._lang,d`<arcgis-slider .ariaLabel=${this.label} class=${p({"wrap-labels":this._shouldWrapLabels})} .disabled=${this.disabled} .fillPlacement=${this.mode==="range"?"between":"none"} .labelFormatter=${this._sliderLabelFormatter} layout=horizontal min=0 .max=${c} .steps=${this.steps??1} .valueLabelsDisplay=${this.mode==="range"?"hidden":"always"} value-labels-placement=start .values=${this._values} @arcgisInput=${({currentTarget:{values:t}})=>{this.mode==="single"?this._setStartTime(t[0]):this._setRange(t[0],t[1])}}>${this.mode==="range"?this._renderTimeRange():void 0}<div class="ticks-container" slot=content-end><arcgis-ticks class="main-ticks" .interactive=${e} .labelFormatter=${this._tickLabelFormatter} layout=horizontal min=0 .max=${c} mode=value show-labels .values=${L} @arcgisTickClick=${t=>this._setStartTime(t.detail.value)}></arcgis-ticks><arcgis-ticks class="secondary-ticks" layout=horizontal min=0 .max=${c} mode=value .values=${R} @arcgisTickClick=${t=>this._setStartTime(t.detail.value)}></arcgis-ticks></div></arcgis-slider>`)}_renderTimeRange(){let e=this._isolateTimeLabel(this._sliderLabelFormatter(this.startTime)),t=this._isolateTimeLabel(this._sliderLabelFormatter(this.endTime)),l=this.messages?.timeRange;return d`<div class="time-range-label" aria-live=polite slot=content-start>${$(l??"{start} \u2014 {end}",{start:e,end:t})}</div>`}},c=i(24,"hours","minutes")-1,L=[0,6,12,18].map(a=>i(a,"hours","minutes"));L.push(c);var R=[2,4,8,10,14,16,20,22].map(a=>i(a,"hours","minutes"));k("arcgis-time-of-day-slider",h);return h},"intl")