@arcgis/map-components 5.2.0-next.128 → 5.2.0-next.129

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 (302) hide show
  1. package/dist/cdn/{GE74I75T.js → 22FG37EV.js} +1 -1
  2. package/dist/cdn/{NIPK7YYJ.js → 2AGPRFMG.js} +1 -1
  3. package/dist/cdn/2BMYUPDQ.js +2 -0
  4. package/dist/cdn/{2ZIKXQT2.js → 2CLE72G4.js} +1 -1
  5. package/dist/cdn/{Y4Z4GN66.js → 2DHCFLH6.js} +1 -1
  6. package/dist/cdn/{SIHH6LT5.js → 2DJC25HT.js} +1 -1
  7. package/dist/cdn/{EWX4XQBI.js → 2FXJBJQN.js} +1 -1
  8. package/dist/cdn/{AFUNYL57.js → 2H37ZCDJ.js} +1 -1
  9. package/dist/cdn/{UXPYCE3L.js → 2RYNWWMR.js} +1 -1
  10. package/dist/cdn/{UP52QGP6.js → 2X677DFU.js} +1 -1
  11. package/dist/cdn/{UWHSAI3L.js → 2ZC5OSXY.js} +1 -1
  12. package/dist/cdn/{EVB3QOJS.js → 35M4DQZK.js} +1 -1
  13. package/dist/cdn/{6KU3XBCB.js → 3AHZESDA.js} +1 -1
  14. package/dist/cdn/{Z5BFIWLI.js → 3DRCMLE6.js} +1 -1
  15. package/dist/cdn/{ATRMFLKS.js → 3FO2I44H.js} +1 -1
  16. package/dist/cdn/{QHGEM66H.js → 3NNYNR4J.js} +1 -1
  17. package/dist/cdn/{U4A4FLPH.js → 3NUE2TJM.js} +1 -1
  18. package/dist/cdn/{4QP6ILUV.js → 3OSRTFM7.js} +1 -1
  19. package/dist/cdn/{23HSSJKV.js → 3QZFSJJZ.js} +1 -1
  20. package/dist/cdn/{YTCVSC5P.js → 3SU3DIGX.js} +1 -1
  21. package/dist/cdn/{HFM5NPZZ.js → 4RUPG7KN.js} +1 -1
  22. package/dist/cdn/{2OJYLBNC.js → 4TV72DOP.js} +1 -1
  23. package/dist/cdn/{V7FCORTC.js → 4UYEQJ5Q.js} +1 -1
  24. package/dist/cdn/{4JEXOOCU.js → 526WYJC7.js} +1 -1
  25. package/dist/cdn/{LOYVJTVI.js → 55MKAVVI.js} +1 -1
  26. package/dist/cdn/{UYY3HJ3C.js → 5JJW2F4I.js} +1 -1
  27. package/dist/cdn/{3N3WXEBV.js → 5S3AIVW2.js} +1 -1
  28. package/dist/cdn/{BTAWFZYA.js → 5YQC25ID.js} +1 -1
  29. package/dist/cdn/{XADV6ULF.js → 65BUPBAJ.js} +1 -1
  30. package/dist/cdn/{EEWGG5MJ.js → 6B7OAZCR.js} +1 -1
  31. package/dist/cdn/{IPGN7TJM.js → 6G2OC6X3.js} +1 -1
  32. package/dist/cdn/{L7P3VGFU.js → 6JQ33U5S.js} +1 -1
  33. package/dist/cdn/{TYE57RYK.js → 6PE3IB3H.js} +1 -1
  34. package/dist/cdn/{E23I3LNK.js → 6R4JCD5X.js} +1 -1
  35. package/dist/cdn/{VZ5UIYRZ.js → 6XE3DEYV.js} +1 -1
  36. package/dist/cdn/{SMNGRZOR.js → 75DQILK2.js} +1 -1
  37. package/dist/cdn/{YSWNUR6Q.js → 75OH7AOP.js} +1 -1
  38. package/dist/cdn/{2OMNJPFV.js → 7AM3AAIM.js} +1 -1
  39. package/dist/cdn/{QRK6FDLW.js → 7EFRZOFD.js} +1 -1
  40. package/dist/cdn/{XO3BXDJB.js → 7HYL6HZM.js} +1 -1
  41. package/dist/cdn/{PWHBULWL.js → 7MTVNJT6.js} +1 -1
  42. package/dist/cdn/{OOGJQ5G4.js → 7O4U5KJX.js} +1 -1
  43. package/dist/cdn/7QUUVOSA.js +2 -0
  44. package/dist/cdn/{AE33MJQH.js → 7SV2YDBW.js} +1 -1
  45. package/dist/cdn/{HVOH2A6M.js → 7WPN2Q4H.js} +1 -1
  46. package/dist/cdn/{D7FCBWGA.js → 7XCYURYF.js} +1 -1
  47. package/dist/cdn/{Y4AWD5AV.js → 7YB4E7JF.js} +1 -1
  48. package/dist/cdn/{GLRUAFW4.js → AETC4BXC.js} +1 -1
  49. package/dist/cdn/{JBXXHEEI.js → AN5VDLBT.js} +1 -1
  50. package/dist/cdn/{EHCQ6UAZ.js → ANSONAT3.js} +1 -1
  51. package/dist/cdn/{IFPX2SVE.js → AYFIXEVM.js} +1 -1
  52. package/dist/cdn/{TAZZC5OO.js → B62BAX3X.js} +1 -1
  53. package/dist/cdn/{BWWWPF3D.js → BDZ5LS7M.js} +1 -1
  54. package/dist/cdn/{5TZGXGC2.js → CBB2T3RI.js} +1 -1
  55. package/dist/cdn/{PJI2EVW4.js → CM7JI36S.js} +1 -1
  56. package/dist/cdn/{QRXQ5LVY.js → CODEI67F.js} +1 -1
  57. package/dist/cdn/{3E2WFQLJ.js → CPKZEXWU.js} +1 -1
  58. package/dist/cdn/CV6Q2BL5.js +2 -0
  59. package/dist/cdn/CZPZHMHT.js +2 -0
  60. package/dist/cdn/{Y3SFKTBJ.js → DC4IVPQR.js} +1 -1
  61. package/dist/cdn/{U2XEJHYW.js → DFPVC4EG.js} +1 -1
  62. package/dist/cdn/{K2WDAQU5.js → DN5C7ZD7.js} +1 -1
  63. package/dist/cdn/{WINEAW5E.js → DOURJ47L.js} +1 -1
  64. package/dist/cdn/DRRHERCS.js +2 -0
  65. package/dist/cdn/{SZ6IV47J.js → DVWF3ZI2.js} +1 -1
  66. package/dist/cdn/{IHTRKYAF.js → EBF7F6FV.js} +1 -1
  67. package/dist/cdn/{7CO5HNJZ.js → EK7HMUVN.js} +1 -1
  68. package/dist/cdn/{QDSTQOU2.js → EQ4D5HAS.js} +1 -1
  69. package/dist/cdn/{EDJYAXEB.js → EWCRUGKH.js} +1 -1
  70. package/dist/cdn/{AJFAPBMM.js → F47MOBA6.js} +1 -1
  71. package/dist/cdn/{NDX25YWH.js → FDDVTJUT.js} +1 -1
  72. package/dist/cdn/{GXXJVFXO.js → FEEOQGVI.js} +1 -1
  73. package/dist/cdn/{3HVJLNKZ.js → FJREYXK7.js} +1 -1
  74. package/dist/cdn/{3BUFS5YM.js → FRY2TWP6.js} +1 -1
  75. package/dist/cdn/{AQTSDDVK.js → FUQUIU52.js} +1 -1
  76. package/dist/cdn/FZBSTBH3.js +2 -0
  77. package/dist/cdn/G37JKMBJ.js +2 -0
  78. package/dist/cdn/{VKURE3J2.js → G4EYCW4W.js} +1 -1
  79. package/dist/cdn/{4NZEJ5EQ.js → GHJBVA4W.js} +1 -1
  80. package/dist/cdn/{ANBUBGMA.js → GK6NLJ6Q.js} +1 -1
  81. package/dist/cdn/{KNVCQJ7O.js → GQJMWPC4.js} +1 -1
  82. package/dist/cdn/{QAKYDAE3.js → GU3VA72I.js} +1 -1
  83. package/dist/cdn/{YB3JVI5U.js → H5W2Z2ZP.js} +1 -1
  84. package/dist/cdn/{VOFY2VSJ.js → HOBKD5P4.js} +1 -1
  85. package/dist/cdn/{LSVNXTPW.js → I2BUUAYU.js} +1 -1
  86. package/dist/cdn/{PV3L726K.js → I6R62DOM.js} +1 -1
  87. package/dist/cdn/{JMZCAMJX.js → I7NHERZ6.js} +1 -1
  88. package/dist/cdn/{GKXR454H.js → IKSUH4JU.js} +1 -1
  89. package/dist/cdn/{EVN3T57B.js → ILQQNZAY.js} +1 -1
  90. package/dist/cdn/{LP74HAQI.js → ILRRVKYV.js} +1 -1
  91. package/dist/cdn/{VBC4PE53.js → INSKARCW.js} +1 -1
  92. package/dist/cdn/{RM34SONU.js → IZMOYSTQ.js} +1 -1
  93. package/dist/cdn/{7IB5M3LS.js → J6W4SY52.js} +1 -1
  94. package/dist/cdn/{T2JQCREB.js → JNB3AQXF.js} +1 -1
  95. package/dist/cdn/{VGHKU6QN.js → JQUJV7QG.js} +1 -1
  96. package/dist/cdn/{SZYG5GVN.js → JSQUWI3N.js} +1 -1
  97. package/dist/cdn/{KVEB7KH4.js → JXODHIWF.js} +1 -1
  98. package/dist/cdn/{GXVJ5XIS.js → K3KO5IH4.js} +1 -1
  99. package/dist/cdn/{BOGLYQ5O.js → KCSLK5X4.js} +1 -1
  100. package/dist/cdn/{GOQX6N76.js → KDF33PNA.js} +1 -1
  101. package/dist/cdn/{Z37YCCSM.js → KEMBLOSU.js} +1 -1
  102. package/dist/cdn/{S7G7JDQC.js → KHOIXBJX.js} +1 -1
  103. package/dist/cdn/{BUKAHDDH.js → L4IWJ5HD.js} +1 -1
  104. package/dist/cdn/{TL6AWIIE.js → L5FBV74B.js} +1 -1
  105. package/dist/cdn/{YECX3B43.js → LA2B6YUW.js} +1 -1
  106. package/dist/cdn/{JQ3R3XMY.js → LDUBRVF7.js} +1 -1
  107. package/dist/cdn/{26MF7QKM.js → LWH2GP6K.js} +1 -1
  108. package/dist/cdn/{KM5NXHAK.js → LY5JI6RG.js} +1 -1
  109. package/dist/cdn/{W4CJTN6T.js → M5K25M52.js} +1 -1
  110. package/dist/cdn/{KKLGABRK.js → MN5HTWFG.js} +1 -1
  111. package/dist/cdn/{BVFW23P2.js → MOEKO7EN.js} +1 -1
  112. package/dist/cdn/{FIZLWHMR.js → MRLCJSMH.js} +1 -1
  113. package/dist/cdn/{YXAD73CE.js → MVBMO6GU.js} +1 -1
  114. package/dist/cdn/{ORUBXAAU.js → MVML6D4K.js} +1 -1
  115. package/dist/cdn/{IYHXTJJV.js → N7DY2QVI.js} +1 -1
  116. package/dist/cdn/{JBRKK3VF.js → NCIDWMPT.js} +1 -1
  117. package/dist/cdn/{77D3OZDV.js → NDZTQ5ZP.js} +1 -1
  118. package/dist/cdn/{KUFCT3WP.js → NEK27Q3B.js} +1 -1
  119. package/dist/cdn/{NCCYPWND.js → NGOHAYP2.js} +1 -1
  120. package/dist/cdn/{5ARWD7RU.js → NUOVRUNM.js} +1 -1
  121. package/dist/cdn/{SNX6IENY.js → O27JZBBD.js} +1 -1
  122. package/dist/cdn/{3VQ5MXTS.js → OC7FE4UI.js} +1 -1
  123. package/dist/cdn/{O3V63YCY.js → OHCCNZCY.js} +1 -1
  124. package/dist/cdn/{BOX3BB5W.js → OT6BZEVU.js} +1 -1
  125. package/dist/cdn/{2K4IAUMP.js → OWJM7UDS.js} +1 -1
  126. package/dist/cdn/{7REHGHYL.js → PISCWAG5.js} +1 -1
  127. package/dist/cdn/{UIWQMNVA.js → PIVEKSAG.js} +1 -1
  128. package/dist/cdn/{EOVJXYU2.js → PX2NWKEU.js} +1 -1
  129. package/dist/cdn/{E6WLDHQE.js → Q2MFXSAM.js} +1 -1
  130. package/dist/cdn/{NBELHVZV.js → Q4EDWHEQ.js} +1 -1
  131. package/dist/cdn/{YQKMTVF7.js → Q6QM5JFF.js} +1 -1
  132. package/dist/cdn/{STVCYQD6.js → QHVMGF72.js} +1 -1
  133. package/dist/cdn/QPIPHZCB.js +2 -0
  134. package/dist/cdn/{EHN5OCRK.js → QR64BMEG.js} +1 -1
  135. package/dist/cdn/R26ZJOWO.js +2 -0
  136. package/dist/cdn/{PME66FRM.js → R2XADTZ4.js} +1 -1
  137. package/dist/cdn/{SNNLU3TM.js → RMPRKXH6.js} +1 -1
  138. package/dist/cdn/RVVE37BK.js +2 -0
  139. package/dist/cdn/{ICBWYP63.js → RWGOXXTN.js} +1 -1
  140. package/dist/cdn/RWOP6R3I.js +2 -0
  141. package/dist/cdn/{OIXG64HP.js → S5NMZQ7S.js} +1 -1
  142. package/dist/cdn/{IQOYWZKB.js → SI275RZJ.js} +1 -1
  143. package/dist/cdn/{Q4NUPFEB.js → SJ5GQWFA.js} +1 -1
  144. package/dist/cdn/{LT7UCTKO.js → SLLE4XAR.js} +1 -1
  145. package/dist/cdn/{IIFPXXLV.js → SNMWKAFO.js} +1 -1
  146. package/dist/cdn/{NB4UV3WZ.js → TNCMYQSA.js} +1 -1
  147. package/dist/cdn/{U2K2GM2A.js → TW3HJT3L.js} +1 -1
  148. package/dist/cdn/{QKHSI35C.js → TWCK5GSX.js} +1 -1
  149. package/dist/cdn/{TP5CAC5F.js → TWR7AJTM.js} +1 -1
  150. package/dist/cdn/{YYKHJHRL.js → U4HYLVBE.js} +1 -1
  151. package/dist/cdn/{5MY72QW3.js → UBRGB2BM.js} +1 -1
  152. package/dist/cdn/{BTHXY33A.js → UMQLYM36.js} +1 -1
  153. package/dist/cdn/{TT6LZYXE.js → VIMZLJRR.js} +1 -1
  154. package/dist/cdn/{X5EYPVUR.js → VLDII7DK.js} +1 -1
  155. package/dist/cdn/{BO6UZ45F.js → VM22FCS7.js} +1 -1
  156. package/dist/cdn/{EIZNZKHN.js → VSUOUORA.js} +1 -1
  157. package/dist/cdn/{L7OO7DJU.js → VZE75HIS.js} +1 -1
  158. package/dist/cdn/{PVNF2Z2E.js → W7QOIJAF.js} +1 -1
  159. package/dist/cdn/{3FYZUJFR.js → WIAVK47T.js} +1 -1
  160. package/dist/cdn/WPPNDZKA.js +2 -0
  161. package/dist/cdn/{5BQMWW5Q.js → WQQBKYQP.js} +1 -1
  162. package/dist/cdn/{3PCBVCV5.js → WWASAY4M.js} +1 -1
  163. package/dist/cdn/{IPFOE73J.js → WZZBK6H2.js} +1 -1
  164. package/dist/cdn/{TSCXUJ3H.js → X633YHFG.js} +1 -1
  165. package/dist/cdn/{4GBWZ6JK.js → X6RIAT6T.js} +1 -1
  166. package/dist/cdn/{MVYTDX7B.js → XEPOSXGI.js} +1 -1
  167. package/dist/cdn/{F7KDBJ53.js → XFD7GEAG.js} +1 -1
  168. package/dist/cdn/{TO2AHJ2D.js → XHF3WRCS.js} +1 -1
  169. package/dist/cdn/{FLFOMU5V.js → XIU3BXC4.js} +1 -1
  170. package/dist/cdn/{TRKMGYRA.js → XMP3WRQ6.js} +1 -1
  171. package/dist/cdn/{PIMY2US4.js → XPIYOTEC.js} +1 -1
  172. package/dist/cdn/{ABCAVCJS.js → XUMOMEIU.js} +1 -1
  173. package/dist/cdn/{5Q2HHIWU.js → Y4W2M6DK.js} +1 -1
  174. package/dist/cdn/{7V3LUKTZ.js → Y76FKVQF.js} +1 -1
  175. package/dist/cdn/{YNPZGFD5.js → YEDKH6UB.js} +1 -1
  176. package/dist/cdn/{RW4H2SVK.js → YFCVMQTJ.js} +1 -1
  177. package/dist/cdn/{NOCI7PVC.js → YFDOLBYH.js} +1 -1
  178. package/dist/cdn/{LGVPQ23I.js → YGLXTN2F.js} +1 -1
  179. package/dist/cdn/{FCWHIX6Q.js → YL32ZRHM.js} +1 -1
  180. package/dist/cdn/{EOG6YHUA.js → YVNN7BY7.js} +1 -1
  181. package/dist/cdn/{ESLHUFYQ.js → YXFHYEU3.js} +1 -1
  182. package/dist/cdn/{NOKB7FXX.js → ZB2IZQYA.js} +1 -1
  183. package/dist/cdn/assets/feature-form-next/t9n/messages.ar.json +1 -1
  184. package/dist/cdn/assets/feature-form-next/t9n/messages.bg.json +1 -1
  185. package/dist/cdn/assets/feature-form-next/t9n/messages.ca.json +1 -1
  186. package/dist/cdn/assets/feature-form-next/t9n/messages.cs.json +1 -1
  187. package/dist/cdn/assets/feature-form-next/t9n/messages.da.json +1 -1
  188. package/dist/cdn/assets/feature-form-next/t9n/messages.de.json +1 -1
  189. package/dist/cdn/assets/feature-form-next/t9n/messages.el.json +1 -1
  190. package/dist/cdn/assets/feature-form-next/t9n/messages.es.json +1 -1
  191. package/dist/cdn/assets/feature-form-next/t9n/messages.et.json +1 -1
  192. package/dist/cdn/assets/feature-form-next/t9n/messages.fi.json +1 -1
  193. package/dist/cdn/assets/feature-form-next/t9n/messages.fr.json +1 -1
  194. package/dist/cdn/assets/feature-form-next/t9n/messages.he.json +1 -1
  195. package/dist/cdn/assets/feature-form-next/t9n/messages.hr.json +1 -1
  196. package/dist/cdn/assets/feature-form-next/t9n/messages.hu.json +1 -1
  197. package/dist/cdn/assets/feature-form-next/t9n/messages.id.json +1 -1
  198. package/dist/cdn/assets/feature-form-next/t9n/messages.it.json +1 -1
  199. package/dist/cdn/assets/feature-form-next/t9n/messages.ja.json +1 -1
  200. package/dist/cdn/assets/feature-form-next/t9n/messages.ko.json +1 -1
  201. package/dist/cdn/assets/feature-form-next/t9n/messages.lt.json +1 -1
  202. package/dist/cdn/assets/feature-form-next/t9n/messages.lv.json +1 -1
  203. package/dist/cdn/assets/feature-form-next/t9n/messages.nl.json +1 -1
  204. package/dist/cdn/assets/feature-form-next/t9n/messages.no.json +1 -1
  205. package/dist/cdn/assets/feature-form-next/t9n/messages.pl.json +1 -1
  206. package/dist/cdn/assets/feature-form-next/t9n/messages.pt-BR.json +1 -1
  207. package/dist/cdn/assets/feature-form-next/t9n/messages.pt-PT.json +1 -1
  208. package/dist/cdn/assets/feature-form-next/t9n/messages.ro.json +1 -1
  209. package/dist/cdn/assets/feature-form-next/t9n/messages.ru.json +1 -1
  210. package/dist/cdn/assets/feature-form-next/t9n/messages.sk.json +1 -1
  211. package/dist/cdn/assets/feature-form-next/t9n/messages.sl.json +1 -1
  212. package/dist/cdn/assets/feature-form-next/t9n/messages.sr.json +1 -1
  213. package/dist/cdn/assets/feature-form-next/t9n/messages.sv.json +1 -1
  214. package/dist/cdn/assets/feature-form-next/t9n/messages.th.json +1 -1
  215. package/dist/cdn/assets/feature-form-next/t9n/messages.tr.json +1 -1
  216. package/dist/cdn/assets/feature-form-next/t9n/messages.uk.json +1 -1
  217. package/dist/cdn/assets/feature-form-next/t9n/messages.vi.json +1 -1
  218. package/dist/cdn/assets/feature-form-next/t9n/messages.zh-CN.json +1 -1
  219. package/dist/cdn/assets/feature-form-next/t9n/messages.zh-TW.json +1 -1
  220. package/dist/cdn/assets/time-bar/t9n/messages.ar.json +1 -1
  221. package/dist/cdn/assets/time-bar/t9n/messages.bg.json +1 -1
  222. package/dist/cdn/assets/time-bar/t9n/messages.bs.json +1 -1
  223. package/dist/cdn/assets/time-bar/t9n/messages.ca.json +1 -1
  224. package/dist/cdn/assets/time-bar/t9n/messages.cs.json +1 -1
  225. package/dist/cdn/assets/time-bar/t9n/messages.da.json +1 -1
  226. package/dist/cdn/assets/time-bar/t9n/messages.de.json +1 -1
  227. package/dist/cdn/assets/time-bar/t9n/messages.el.json +1 -1
  228. package/dist/cdn/assets/time-bar/t9n/messages.en.json +1 -1
  229. package/dist/cdn/assets/time-bar/t9n/messages.es.json +1 -1
  230. package/dist/cdn/assets/time-bar/t9n/messages.et.json +1 -1
  231. package/dist/cdn/assets/time-bar/t9n/messages.fi.json +1 -1
  232. package/dist/cdn/assets/time-bar/t9n/messages.fr.json +1 -1
  233. package/dist/cdn/assets/time-bar/t9n/messages.he.json +1 -1
  234. package/dist/cdn/assets/time-bar/t9n/messages.hr.json +1 -1
  235. package/dist/cdn/assets/time-bar/t9n/messages.hu.json +1 -1
  236. package/dist/cdn/assets/time-bar/t9n/messages.id.json +1 -1
  237. package/dist/cdn/assets/time-bar/t9n/messages.it.json +1 -1
  238. package/dist/cdn/assets/time-bar/t9n/messages.ja.json +1 -1
  239. package/dist/cdn/assets/time-bar/t9n/messages.ko.json +1 -1
  240. package/dist/cdn/assets/time-bar/t9n/messages.lt.json +1 -1
  241. package/dist/cdn/assets/time-bar/t9n/messages.lv.json +1 -1
  242. package/dist/cdn/assets/time-bar/t9n/messages.nl.json +1 -1
  243. package/dist/cdn/assets/time-bar/t9n/messages.no.json +1 -1
  244. package/dist/cdn/assets/time-bar/t9n/messages.pl.json +1 -1
  245. package/dist/cdn/assets/time-bar/t9n/messages.pt-BR.json +1 -1
  246. package/dist/cdn/assets/time-bar/t9n/messages.pt-PT.json +1 -1
  247. package/dist/cdn/assets/time-bar/t9n/messages.ro.json +1 -1
  248. package/dist/cdn/assets/time-bar/t9n/messages.ru.json +1 -1
  249. package/dist/cdn/assets/time-bar/t9n/messages.sk.json +1 -1
  250. package/dist/cdn/assets/time-bar/t9n/messages.sl.json +1 -1
  251. package/dist/cdn/assets/time-bar/t9n/messages.sr.json +1 -1
  252. package/dist/cdn/assets/time-bar/t9n/messages.sv.json +1 -1
  253. package/dist/cdn/assets/time-bar/t9n/messages.th.json +1 -1
  254. package/dist/cdn/assets/time-bar/t9n/messages.tr.json +1 -1
  255. package/dist/cdn/assets/time-bar/t9n/messages.uk.json +1 -1
  256. package/dist/cdn/assets/time-bar/t9n/messages.vi.json +1 -1
  257. package/dist/cdn/assets/time-bar/t9n/messages.zh-CN.json +1 -1
  258. package/dist/cdn/assets/time-bar/t9n/messages.zh-HK.json +1 -1
  259. package/dist/cdn/assets/time-bar/t9n/messages.zh-TW.json +1 -1
  260. package/dist/cdn/index.js +1 -1
  261. package/dist/chunks/action-utils.js +10 -10
  262. package/dist/chunks/feature-utils.js +128 -114
  263. package/dist/chunks/useArcgisViewReadyError.js +38 -30
  264. package/dist/components/arcgis-aggregated-features/customElement.js +4 -4
  265. package/dist/components/arcgis-feature/customElement.js +1 -1
  266. package/dist/components/arcgis-feature-attachments/customElement.js +4 -4
  267. package/dist/components/arcgis-feature-fields/customElement.js +1 -1
  268. package/dist/components/arcgis-feature-media/customElement.js +7 -7
  269. package/dist/components/arcgis-feature-next/customElement.js +4 -4
  270. package/dist/components/arcgis-feature-relationship/customElement.js +1 -1
  271. package/dist/components/arcgis-features/customElement.js +1 -1
  272. package/dist/components/arcgis-features-next/customElement.js +12 -11
  273. package/dist/components/arcgis-link-chart/customElement.d.ts +46 -3
  274. package/dist/components/arcgis-map/customElement.d.ts +46 -3
  275. package/dist/components/arcgis-scene/customElement.d.ts +46 -3
  276. package/dist/components/arcgis-time-bar/customElement.d.ts +6 -0
  277. package/dist/components/arcgis-time-bar-slider/customElement.d.ts +17 -0
  278. package/dist/components/arcgis-time-bar-slider/customElement.js +44 -34
  279. package/dist/components/arcgis-time-bar-slider/index.js +1 -0
  280. package/dist/docs/api.json +1 -1
  281. package/dist/docs/docs.json +1 -1
  282. package/dist/docs/vscode.css-custom-data.json +1 -1
  283. package/dist/docs/vscode.html-custom-data.json +1 -1
  284. package/dist/docs/web-types.json +1 -1
  285. package/dist/loader.js +1 -1
  286. package/dist/types/lumina.d.ts +1 -1
  287. package/dist/types/preact.d.ts +1 -1
  288. package/dist/types/react.d.ts +1 -1
  289. package/dist/types/stencil.d.ts +1 -1
  290. package/package.json +6 -6
  291. package/dist/cdn/3TPXSBZ2.js +0 -2
  292. package/dist/cdn/77ULNULN.js +0 -2
  293. package/dist/cdn/EPSTVLDH.js +0 -2
  294. package/dist/cdn/GDHBKT7X.js +0 -2
  295. package/dist/cdn/HZWFDJFV.js +0 -2
  296. package/dist/cdn/IPAUI5MK.js +0 -2
  297. package/dist/cdn/QERRLNHI.js +0 -2
  298. package/dist/cdn/QGB7AGII.js +0 -2
  299. package/dist/cdn/QIMQEVTV.js +0 -2
  300. package/dist/cdn/VFHKHLM6.js +0 -2
  301. package/dist/cdn/WT5SGWE4.js +0 -2
  302. package/dist/cdn/Z2NU3RGI.js +0 -2
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import a from"./QZ5LJH35.js";import"./VJVKFKSG.js";import{a as G}from"./O3V63YCY.js";import{h as D}from"./PME66FRM.js";import"./WT5SGWE4.js";import"./QUZTFUWM.js";import"./2OJYLBNC.js";import{b as w}from"./XURWCCLX.js";import{O as u,P as $,W as b,a as f,b as r,n as c,p,r as v,x as d}from"./I2BIPOZQ.js";import"./H6RQVSYM.js";export default $arcgis.t(([C,{a:k}])=>{var n=["arcgis-utility-network-trace-aggregated-geometry-result-item","arcgis-utility-network-trace-elements-result-item","arcgis-utility-network-trace-functions-result-item"],E=n.join(", ");function g(a){return a.localName==="arcgis-utility-network-trace-aggregated-geometry-result-item"}function o(a){return a.localName==="arcgis-utility-network-trace-elements-result-item"}function m(a){return a.localName==="arcgis-utility-network-trace-functions-result-item"}var A=f`:host{height:100%}slot:not([hidden]),.default-result-items{display:flex;flex-direction:column;gap:var(--calcite-spacing-md)}.results-block{min-height:100%;margin-top:0;margin-bottom: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)}`,x=["hideGraphics","traceResult","view"],I=["actions","autoDestroyDisabled","hideActionBar","hideFeatureResults","hidePlaceholder","includeDefaultActionsDisabled","layers","messageOverrides","referenceElement","traceResult","utilityNetwork","view"],P=["traceResult"],y={dirtyAreasDiscovered:-2147208511,noValidControllers:-2147208935,pathNotFound:-2147208444},R=class extends ${constructor(){super(...arguments),this._messages=G({blocking:!0}),this.#e=new Set,this.#s=new Map,this._slottedResultItems=[],this.aggregatedGeometryGraphicsColor=new C([255,255,0,.6]),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=D()("aggregatedGeometryGraphicsColor","hideGraphics","state","traceError"),this.arcgisResultsReady=d(),this.arcgisTraceResultClear=d(),this.arcgisTriggerAction=d()}static{this.properties={_slottedResultItems:16,actions:0,aggregatedGeometryGraphicsColor:0,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=A}#l;#t;#o;#e;#s;get#n(){return Array.from(this.el.childNodes).some(t=>t.nodeType===Node.TEXT_NODE?!!t.textContent?.trim():t instanceof Element&&!t.slot)}get#v(){return this.traceResult?this.#n?this.#_():this.#F(this.traceResult):[]}get#i(){return!!this.traceResult&&!this.traceError&&this.#h}get#c(){if(!this.traceResult||!this.#h||!this._slottedResultItems.length)return!1;let{aggregatedGeometry:t,elements:s,globalFunctionResults:e}=this.traceResult;return this._slottedResultItems.some(i=>t!=null&&g(i)||s.length>0&&o(i)||e.length>0&&m(i))}get#h(){if(!this.traceResult)return!1;let{elements:t,globalFunctionResults:s,aggregatedGeometry:e}=this.traceResult;return!!(t.length||s.length||e)}get numFeatureResults(){return this.#t?this.#t.numResults:this._slottedResultItems.find(t=>o(t))?.numResults??0}get traceResultFeatures(){return this.#t?this.#t.features:this._slottedResultItems.find(t=>o(t))?.features??[]}clearResults(){this.#d(),this.arcgisTraceResultClear.emit()}async destroy(){let t=await Promise.allSettled([...this._slottedResultItems.map(s=>s.destroy()),this.#l?.destroy(),this.#t?.destroy(),this.#o?.destroy()]);for(let s of t)s.status==="rejected"&&k(s.reason,this,"Error while destroying trace result item");await this.manager.destroy()}load(){this.manager.onLifecycle(()=>{for(let t of this._slottedResultItems)this.#m(t);return()=>{for(let t of this.#s.keys())this.#y(t)}}),this.traceResult&&(this.view||p("warn",this,v("view")))}willUpdate(t){t.has("view")&&this.#E(),t.has("traceResult")&&(this.#d(),this.#i&&this.#g(this.#v)),this.#i&&this._slottedResultItems.length&&(this.#D(t),this.#k(t),this.#G(t))}#d(){this.#l?.clearResult(),this.#t?.clearResult(),this.#o?.clearResult(),this._slottedResultItems.forEach(t=>t.clearResult()),this.#e.clear(),c(()=>this.state="ready")}#$(t){t&&(this.#l=t)}#b(t){t&&(this.#t=t)}#w(t){t&&(this.#o=t)}#D(t){let s=this._slottedResultItems.filter(e=>g(e));x.filter(e=>t.has(e)).forEach(e=>{s.forEach(i=>this.#f(i,e,this[e]))}),t.has("aggregatedGeometryGraphicsColor")&&s.forEach(e=>this.#f(e,"graphicsColor",this.aggregatedGeometryGraphicsColor))}#k(t){let s=this._slottedResultItems.filter(e=>o(e));I.filter(e=>t.has(e)).forEach(e=>{s.forEach(i=>this.#p(i,e,this[e]))}),t.has("disableHighlightFeatureResults")&&s.forEach(e=>this.#p(e,"disableHighlight",this.disableHighlightFeatureResults))}#G(t){let s=this._slottedResultItems.filter(e=>m(e));P.filter(e=>t.has(e)).forEach(e=>{s.forEach(i=>this.#a(i,e,this[e]))}),t.has("heading")&&s.forEach(e=>this.#a(e,"heading",this._messages.headings.functions))}async#E(){let{view:t}=this;if(t){await t.when();for(let s of this._slottedResultItems)this.#R(s)}}#F(t){let{elements:s,globalFunctionResults:e,aggregatedGeometry:i}=t,[l,F,_]=n,h=[];return i!=null&&h.push(l),s!=null&&h.push(F),e.length>0&&h.push(_),h}#_(){return Array.from(this.el.children).filter(t=>t.matches(E))}#C(t){let{detail:s}=t;s.name==="isFeaturesListShown"&&this.requestUpdate()}#A(t){t.stopPropagation(),this.arcgisTriggerAction.emit(t.detail)}#x(t){let{detail:s,target:e}=t;s.name==="hideGraphics"?(t.stopPropagation(),this.hideGraphics=e[s.name]):s.name==="graphicsColor"&&(t.stopPropagation(),this.aggregatedGeometryGraphicsColor=e[s.name])}#I(){this.#r(n[0])}#P(){this.#r(n[1])}#N(){this.#r(n[2])}#u(){c(()=>this.state="ready"),this.arcgisResultsReady.emit()}#g(t){this.#e=new Set(t),this.#e.size===0?this.#u():c(()=>this.state="loading")}#m(t){if(this.#s.has(t))return;let s=({target:e})=>this.#r(e);this.#s.set(t,s),t.addEventListener("arcgisResultReady",s)}#y(t){let s=this.#s.get(t);s&&(t.removeEventListener("arcgisResultReady",s),this.#s.delete(t))}#H(t){let s=w(t,E);for(let e of this.#s.keys())s.includes(e)||(this.#y(e),this.#e.delete(e));this._slottedResultItems=s,this.#i&&this.#g(s);for(let e of this._slottedResultItems)this.#m(e),this.#R(e)}#r(t){this.#e.delete(t),this.state==="loading"&&this.#e.size===0&&this.#u()}#R(t){g(t)?this.#T(t):o(t)?this.#O(t):m(t)&&this.#B(t)}#f(t,s,e){t[s]=e}#T(t){let s={autoDestroyDisabled:this.autoDestroyDisabled,graphicsColor:this.aggregatedGeometryGraphicsColor,hideGraphics:this.hideGraphics,traceResult:this.traceResult,view:this.view};Object.assign(t,s)}#p(t,s,e){t[s]=e}#O(t){let s={actions:this.actions,autoDestroyDisabled:this.autoDestroyDisabled,disableHighlight:this.disableHighlightFeatureResults,hideActionBar:this.hideActionBar,hideFeatureResults:this.hideFeatureResults,hidePlaceholder:this.hidePlaceholder,includeDefaultActionsDisabled:this.includeDefaultActionsDisabled,layers:this.layers,messageOverrides:this.messageOverrides,referenceElement:this.referenceElement,traceResult:this.traceResult,utilityNetwork:this.utilityNetwork,view:this.view};Object.assign(t,s)}#a(t,s,e){t[s]=e}#B(t){let s={heading:this._messages.headings.functions,traceResult:this.traceResult};this.#a(t,"heading",s.heading),this.#a(t,"traceResult",s.traceResult)}render(){let{traceError:t,traceResult:s}=this,e,i=!this.#i||!this.#n||!this.#c,l=r`<slot .hidden=${i} @slotchange=${this.#H}></slot>`;return t?e=this.#j(t):s?this.#h?this.#n?this.#c||(e=this.#L()):e=this.#z(s):e=this.#M():e=this.#V(),r`<calcite-block class="results-block" .description=${this.heading} .expandable=${this.expandable} .expanded=${this.expanded} .heading=${this._messages.headings.traceResultsGeneric} .label=${this._messages.headings.traceResultsGeneric} .loading=${this.state==="loading"}>${l}${e}</calcite-block>`}#z(t){let s=this.#t?.isFeaturesListShown,{elements:e,globalFunctionResults:i,aggregatedGeometry:l}=t;return r`<div class="default-result-items">${l!=null?r`<arcgis-utility-network-trace-aggregated-geometry-result-item auto-destroy-disabled .graphicsColor=${this.aggregatedGeometryGraphicsColor} .hideGraphics=${this.hideGraphics} .hidden=${s} .traceResult=${t} .view=${this.view} @arcgisPropertyChange=${this.#x} @arcgisResultReady=${this.#I} ${u(this.#$)}></arcgis-utility-network-trace-aggregated-geometry-result-item>${!e.length&&!s?this.#S():null}`:null}${e!=null?r`<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} .traceResult=${t} .utilityNetwork=${this.utilityNetwork} .view=${this.view} @arcgisPropertyChange=${this.#C} @arcgisResultReady=${this.#P} @arcgisTriggerAction=${this.#A} ${u(this.#b)}></arcgis-utility-network-trace-elements-result-item>`:null}${i.length>0?r`<arcgis-utility-network-trace-functions-result-item .heading=${this._messages.headings.functions} .hidden=${s} .traceResult=${t} @arcgisResultReady=${this.#N} ${u(this.#w)}></arcgis-utility-network-trace-functions-result-item>`:null}</div>`}#L(){return r`<div class="no-selectable-results">${this._messages.noMatchingResultItems}</div>`}#S(){return r`<div class="no-selectable-results">${this._messages.noSelectableFeatures}</div>`}#j(t){let{_messages:s}=this,e=t.message;switch(t.details?.raw?.extendedCode){case y.dirtyAreasDiscovered:e=s.traceErrors.dirtyAreasDiscovered;break;case y.noValidControllers:e=s.traceErrors.noValidControllers;break;case y.pathNotFound:e=s.traceErrors.pathNotFound;break}return r`<div class="no-results-landing"><calcite-icon icon=exclamation-mark-triangle scale=l></calcite-icon><div class="no-results-heading">${s.traceFailedHeading}</div><div class="no-results-description">${s.traceFailedDescription}</div><div class="no-results-description">${e}</div></div>`}#M(){let{_messages:t}=this;return r`<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>`}#V(){let{_messages:t}=this;return r`<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>`}};b("arcgis-utility-network-trace-results",R);return R},"Color",a)
2
+ import a from"./QZ5LJH35.js";import"./VJVKFKSG.js";import{a as G}from"./OHCCNZCY.js";import{h as D}from"./R2XADTZ4.js";import"./FZBSTBH3.js";import"./QUZTFUWM.js";import"./4TV72DOP.js";import{b as w}from"./XURWCCLX.js";import{O as u,P as $,W as b,a as f,b as r,n as c,p,r as v,x as d}from"./I2BIPOZQ.js";import"./H6RQVSYM.js";export default $arcgis.t(([C,{a:k}])=>{var n=["arcgis-utility-network-trace-aggregated-geometry-result-item","arcgis-utility-network-trace-elements-result-item","arcgis-utility-network-trace-functions-result-item"],E=n.join(", ");function g(a){return a.localName==="arcgis-utility-network-trace-aggregated-geometry-result-item"}function o(a){return a.localName==="arcgis-utility-network-trace-elements-result-item"}function m(a){return a.localName==="arcgis-utility-network-trace-functions-result-item"}var A=f`:host{height:100%}slot:not([hidden]),.default-result-items{display:flex;flex-direction:column;gap:var(--calcite-spacing-md)}.results-block{min-height:100%;margin-top:0;margin-bottom: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)}`,x=["hideGraphics","traceResult","view"],I=["actions","autoDestroyDisabled","hideActionBar","hideFeatureResults","hidePlaceholder","includeDefaultActionsDisabled","layers","messageOverrides","referenceElement","traceResult","utilityNetwork","view"],P=["traceResult"],y={dirtyAreasDiscovered:-2147208511,noValidControllers:-2147208935,pathNotFound:-2147208444},R=class extends ${constructor(){super(...arguments),this._messages=G({blocking:!0}),this.#e=new Set,this.#s=new Map,this._slottedResultItems=[],this.aggregatedGeometryGraphicsColor=new C([255,255,0,.6]),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=D()("aggregatedGeometryGraphicsColor","hideGraphics","state","traceError"),this.arcgisResultsReady=d(),this.arcgisTraceResultClear=d(),this.arcgisTriggerAction=d()}static{this.properties={_slottedResultItems:16,actions:0,aggregatedGeometryGraphicsColor:0,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=A}#l;#t;#o;#e;#s;get#n(){return Array.from(this.el.childNodes).some(t=>t.nodeType===Node.TEXT_NODE?!!t.textContent?.trim():t instanceof Element&&!t.slot)}get#v(){return this.traceResult?this.#n?this.#_():this.#F(this.traceResult):[]}get#i(){return!!this.traceResult&&!this.traceError&&this.#h}get#c(){if(!this.traceResult||!this.#h||!this._slottedResultItems.length)return!1;let{aggregatedGeometry:t,elements:s,globalFunctionResults:e}=this.traceResult;return this._slottedResultItems.some(i=>t!=null&&g(i)||s.length>0&&o(i)||e.length>0&&m(i))}get#h(){if(!this.traceResult)return!1;let{elements:t,globalFunctionResults:s,aggregatedGeometry:e}=this.traceResult;return!!(t.length||s.length||e)}get numFeatureResults(){return this.#t?this.#t.numResults:this._slottedResultItems.find(t=>o(t))?.numResults??0}get traceResultFeatures(){return this.#t?this.#t.features:this._slottedResultItems.find(t=>o(t))?.features??[]}clearResults(){this.#d(),this.arcgisTraceResultClear.emit()}async destroy(){let t=await Promise.allSettled([...this._slottedResultItems.map(s=>s.destroy()),this.#l?.destroy(),this.#t?.destroy(),this.#o?.destroy()]);for(let s of t)s.status==="rejected"&&k(s.reason,this,"Error while destroying trace result item");await this.manager.destroy()}load(){this.manager.onLifecycle(()=>{for(let t of this._slottedResultItems)this.#m(t);return()=>{for(let t of this.#s.keys())this.#y(t)}}),this.traceResult&&(this.view||p("warn",this,v("view")))}willUpdate(t){t.has("view")&&this.#E(),t.has("traceResult")&&(this.#d(),this.#i&&this.#g(this.#v)),this.#i&&this._slottedResultItems.length&&(this.#D(t),this.#k(t),this.#G(t))}#d(){this.#l?.clearResult(),this.#t?.clearResult(),this.#o?.clearResult(),this._slottedResultItems.forEach(t=>t.clearResult()),this.#e.clear(),c(()=>this.state="ready")}#$(t){t&&(this.#l=t)}#b(t){t&&(this.#t=t)}#w(t){t&&(this.#o=t)}#D(t){let s=this._slottedResultItems.filter(e=>g(e));x.filter(e=>t.has(e)).forEach(e=>{s.forEach(i=>this.#f(i,e,this[e]))}),t.has("aggregatedGeometryGraphicsColor")&&s.forEach(e=>this.#f(e,"graphicsColor",this.aggregatedGeometryGraphicsColor))}#k(t){let s=this._slottedResultItems.filter(e=>o(e));I.filter(e=>t.has(e)).forEach(e=>{s.forEach(i=>this.#p(i,e,this[e]))}),t.has("disableHighlightFeatureResults")&&s.forEach(e=>this.#p(e,"disableHighlight",this.disableHighlightFeatureResults))}#G(t){let s=this._slottedResultItems.filter(e=>m(e));P.filter(e=>t.has(e)).forEach(e=>{s.forEach(i=>this.#a(i,e,this[e]))}),t.has("heading")&&s.forEach(e=>this.#a(e,"heading",this._messages.headings.functions))}async#E(){let{view:t}=this;if(t){await t.when();for(let s of this._slottedResultItems)this.#R(s)}}#F(t){let{elements:s,globalFunctionResults:e,aggregatedGeometry:i}=t,[l,F,_]=n,h=[];return i!=null&&h.push(l),s!=null&&h.push(F),e.length>0&&h.push(_),h}#_(){return Array.from(this.el.children).filter(t=>t.matches(E))}#C(t){let{detail:s}=t;s.name==="isFeaturesListShown"&&this.requestUpdate()}#A(t){t.stopPropagation(),this.arcgisTriggerAction.emit(t.detail)}#x(t){let{detail:s,target:e}=t;s.name==="hideGraphics"?(t.stopPropagation(),this.hideGraphics=e[s.name]):s.name==="graphicsColor"&&(t.stopPropagation(),this.aggregatedGeometryGraphicsColor=e[s.name])}#I(){this.#r(n[0])}#P(){this.#r(n[1])}#N(){this.#r(n[2])}#u(){c(()=>this.state="ready"),this.arcgisResultsReady.emit()}#g(t){this.#e=new Set(t),this.#e.size===0?this.#u():c(()=>this.state="loading")}#m(t){if(this.#s.has(t))return;let s=({target:e})=>this.#r(e);this.#s.set(t,s),t.addEventListener("arcgisResultReady",s)}#y(t){let s=this.#s.get(t);s&&(t.removeEventListener("arcgisResultReady",s),this.#s.delete(t))}#H(t){let s=w(t,E);for(let e of this.#s.keys())s.includes(e)||(this.#y(e),this.#e.delete(e));this._slottedResultItems=s,this.#i&&this.#g(s);for(let e of this._slottedResultItems)this.#m(e),this.#R(e)}#r(t){this.#e.delete(t),this.state==="loading"&&this.#e.size===0&&this.#u()}#R(t){g(t)?this.#T(t):o(t)?this.#O(t):m(t)&&this.#B(t)}#f(t,s,e){t[s]=e}#T(t){let s={autoDestroyDisabled:this.autoDestroyDisabled,graphicsColor:this.aggregatedGeometryGraphicsColor,hideGraphics:this.hideGraphics,traceResult:this.traceResult,view:this.view};Object.assign(t,s)}#p(t,s,e){t[s]=e}#O(t){let s={actions:this.actions,autoDestroyDisabled:this.autoDestroyDisabled,disableHighlight:this.disableHighlightFeatureResults,hideActionBar:this.hideActionBar,hideFeatureResults:this.hideFeatureResults,hidePlaceholder:this.hidePlaceholder,includeDefaultActionsDisabled:this.includeDefaultActionsDisabled,layers:this.layers,messageOverrides:this.messageOverrides,referenceElement:this.referenceElement,traceResult:this.traceResult,utilityNetwork:this.utilityNetwork,view:this.view};Object.assign(t,s)}#a(t,s,e){t[s]=e}#B(t){let s={heading:this._messages.headings.functions,traceResult:this.traceResult};this.#a(t,"heading",s.heading),this.#a(t,"traceResult",s.traceResult)}render(){let{traceError:t,traceResult:s}=this,e,i=!this.#i||!this.#n||!this.#c,l=r`<slot .hidden=${i} @slotchange=${this.#H}></slot>`;return t?e=this.#j(t):s?this.#h?this.#n?this.#c||(e=this.#L()):e=this.#z(s):e=this.#M():e=this.#V(),r`<calcite-block class="results-block" .description=${this.heading} .expandable=${this.expandable} .expanded=${this.expanded} .heading=${this._messages.headings.traceResultsGeneric} .label=${this._messages.headings.traceResultsGeneric} .loading=${this.state==="loading"}>${l}${e}</calcite-block>`}#z(t){let s=this.#t?.isFeaturesListShown,{elements:e,globalFunctionResults:i,aggregatedGeometry:l}=t;return r`<div class="default-result-items">${l!=null?r`<arcgis-utility-network-trace-aggregated-geometry-result-item auto-destroy-disabled .graphicsColor=${this.aggregatedGeometryGraphicsColor} .hideGraphics=${this.hideGraphics} .hidden=${s} .traceResult=${t} .view=${this.view} @arcgisPropertyChange=${this.#x} @arcgisResultReady=${this.#I} ${u(this.#$)}></arcgis-utility-network-trace-aggregated-geometry-result-item>${!e.length&&!s?this.#S():null}`:null}${e!=null?r`<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} .traceResult=${t} .utilityNetwork=${this.utilityNetwork} .view=${this.view} @arcgisPropertyChange=${this.#C} @arcgisResultReady=${this.#P} @arcgisTriggerAction=${this.#A} ${u(this.#b)}></arcgis-utility-network-trace-elements-result-item>`:null}${i.length>0?r`<arcgis-utility-network-trace-functions-result-item .heading=${this._messages.headings.functions} .hidden=${s} .traceResult=${t} @arcgisResultReady=${this.#N} ${u(this.#w)}></arcgis-utility-network-trace-functions-result-item>`:null}</div>`}#L(){return r`<div class="no-selectable-results">${this._messages.noMatchingResultItems}</div>`}#S(){return r`<div class="no-selectable-results">${this._messages.noSelectableFeatures}</div>`}#j(t){let{_messages:s}=this,e=t.message;switch(t.details?.raw?.extendedCode){case y.dirtyAreasDiscovered:e=s.traceErrors.dirtyAreasDiscovered;break;case y.noValidControllers:e=s.traceErrors.noValidControllers;break;case y.pathNotFound:e=s.traceErrors.pathNotFound;break}return r`<div class="no-results-landing"><calcite-icon icon=exclamation-mark-triangle scale=l></calcite-icon><div class="no-results-heading">${s.traceFailedHeading}</div><div class="no-results-description">${s.traceFailedDescription}</div><div class="no-results-description">${e}</div></div>`}#M(){let{_messages:t}=this;return r`<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>`}#V(){let{_messages:t}=this;return r`<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>`}};b("arcgis-utility-network-trace-results",R);return R},"Color",a)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import c from"./TMJX7DFH.js";import a from"./QZ5LJH35.js";import"./VJVKFKSG.js";import{a as _}from"./O3V63YCY.js";import{h as A}from"./PME66FRM.js";import"./WT5SGWE4.js";import"./QUZTFUWM.js";import"./2OJYLBNC.js";import"./XURWCCLX.js";import{O as v,P as E,W as $,a as b,b as m,n,p as u,r as f,x as y}from"./I2BIPOZQ.js";import"./H6RQVSYM.js";export default $arcgis.t(([{getOrCreateMapValue:C},{a:w,b:c,c:R,d:I},{c:S,d:D,e:P,g:p}])=>{var L=b`arcgis-features-next{height:100%}.elements-list-item{border:solid 1px var(--calcite-color-border-3);border-radius:var(--calcite-corner-radius-sm)}.features-hidden{color:var(--calcite-color-text-3);font-size:var(--calcite-font-size);overflow-wrap:anywhere}`,F=class extends E{constructor(){super(...arguments),this._messages=_({blocking:!0}),this.#h=!0,this.#s=[],this.#i=[],this.#r=new Map,this.#a=new Map,this.#l=new Map,this.#o=new Map,this.#e=[],this._isFeaturesSelected=!1,this.autoDestroyDisabled=!1,this.disableHighlight=!1,this.emitsArcgisResultReady=!0,this.features=[],this.hideActionBar=!1,this.hideFeatureResults=!1,this.hidePlaceholder=!1,this.includeDefaultActionsDisabled=!1,this.layers=[],this.state="ready",this.arcgisPropertyChange=A()("isFeaturesListShown","selectedResultFeature","state"),this.arcgisTriggerAction=y(),this.arcgisResultReady=y()}static{this.properties={_featuresComponentElement:16,_isFeaturesSelected:16,actions:0,autoDestroyDisabled:5,disableHighlight:5,emitsArcgisResultReady:32,features:32,heading:1,hideActionBar:5,hideFeatureResults:5,hidePlaceholder:5,includeDefaultActionsDisabled:5,isFeaturesListShown:32,layers:0,messageOverrides:0,numResults:32,referenceElement:1,selectedResultFeature:32,state:32,traceResult:0,utilityNetwork:0,view:0}}static{this.styles=L}#h;#s;get#n(){if(!this.traceResult)return!1;let{elements:e,globalFunctionResults:t,aggregatedGeometry:s}=this.traceResult;return e.length>0&&!t.length&&!s}#i;#r;#a;#t;#l;#o;#e;get isFeaturesListShown(){return(this._isFeaturesSelected||this.#n)&&!this.hideFeatureResults}get numResults(){return this.features.length+this.#s.length}get selectedResultFeature(){return this._featuresComponentElement?.selectedDrillInFeature??this._featuresComponentElement?.selectedFeature??void 0}clearResult(){this._isFeaturesSelected=!1,this.#t?.abort(),this.#u(),n(()=>this.features=[]),this.#e=[],this.#s=[],this.#r.clear(),this.#a.clear(),this.#l.clear(),this.#o.clear(),n(()=>this.state="ready")}async destroy(){this.clearResult(),this._featuresComponentElement?.destroy(),await this.manager.destroy()}load(){this.traceResult&&this.#c()}willUpdate(e){e.has("traceResult")&&this.#c(),e.has("_isFeaturesSelected")&&(this.#n||(e.get("_isFeaturesSelected")??!1))!==this.isFeaturesListShown&&this.arcgisPropertyChange.emit({name:"isFeaturesListShown"})}loaded(){this.traceResult&&(this.traceResult.elements||u("error",this,f("traceResult.elements")),this.utilityNetwork||u("error",this,f("utilityNetwork")))}#u(){this.#i.forEach(e=>e.remove()),this.#i=[]}#d(e){e&&(this._featuresComponentElement=e)}#m(e){return Array.from(new Map(e.map(t=>[t.globalId,t])).values())}#g(e){if(e==null||!this.#e.length)return;let t=this.#a.get(e);if(t)return t;let s=this.#e.find(a=>"layerId"in a&&a.layerId===e);return s&&this.#a.set(e,s),s}#f(){let{traceResult:e,utilityNetwork:t,view:s}=this;if(!t||!e?.elements?.length||!s)return;let a=r=>(P(r.layer)||p(r.layer))&&t.isUtilityLayer(r.layer),o=t.getObjectIdsFromElements(e.elements),i=s.allLayerViews.filter(a);o.forEach(({layerUrl:r,objectIds:h})=>{let l=Number(r.split("/").pop()),d=i.find(({layer:g})=>g.layerId===l);if(d){let g=d.highlight(h);this.#i.push(g)}})}async#y(e){let{layers:t,utilityNetwork:s,view:a}=this;if(!a||!s)return;try{s.loaded||await s.load({signal:e})}catch(i){if(R(i))throw i;w(i,this,"Error while loading the selected utility network")}c(e),this.#e=t.length?t.filter(i=>s.isUtilityLayer(i)):S(a,s);let o=this.#e.filter(i=>!i.loaded).map(i=>i.load({signal:e}));if(o.length>0){let i=await Promise.allSettled(o);c(e),i.forEach(r=>{r.status==="rejected"&&u("error",this,`Failed to load layer. Reason: ${r.reason}`)})}}async#c(){this.clearResult();let e=()=>{n(()=>this.state="ready"),this.arcgisResultReady.emit()},t=I(async s=>{let a=this.traceResult?.elements;if(!a?.length){e();return}n(()=>this.state="loading"),this.#R(a),await this.#y(s),await this.#w(s),c(s),this.disableHighlight||this.#f(),e()});this.#t=t;try{await t.promise}catch(s){R(s)||(w(s,this,"Error while loading trace result"),this.#t===t&&e())}finally{this.#t===t&&(this.#t=void 0,n(()=>this.state="ready"))}}async#p([e,t],s){c(s);let a=this.utilityNetwork?.getLayerIdBySourceId(e),o=this.#g(a),i=this.#m(t);if(a==null||!o){this.#s.push(...i);return}let r=o.createQuery();r.gdbVersion=this.utilityNetwork?.gdbVersion,r.objectIds=i.map(l=>l.objectId),r.outFields=["*"];let{features:h}=await D(o,r,{signal:s});c(s),h.forEach(l=>{let d=l.layer;l.getEffectivePopupTemplate(this.#h)||(l.popupTemplate=d.createPopupTemplate())}),p(o)?h.forEach(l=>{C(this.#l,l.layer.subtypeCode,()=>[]).push(l)}):this.#r.set(a,h)}async#w(e){let t=Array.from(this.#o.entries());if(!t.length)return;let s=t.map(r=>this.#p(r,e)),a=await Promise.allSettled(s);c(e),a.forEach((r,h)=>{if(r.status==="rejected"){let[l]=t[h];u("error",this,`Failed to query features for source ${l}. Reason: ${r.reason}`)}});let o=Array.from(this.#r.values()),i=Array.from(this.#l.values());n(()=>this.features=o.concat(i).flat())}#R(e){this.#o=Map.groupBy(e,({networkSourceId:t})=>t)}#F(e){let{detail:t}=e;(t.name==="selectedDrillInFeature"||t.name==="selectedFeature")&&(e.stopPropagation(),this.arcgisPropertyChange.emit({name:"selectedResultFeature"}))}#b(e){e.stopPropagation(),this.arcgisTriggerAction.emit(e.detail)}#v(){return m`<div class="features-hidden">${this._messages.resultFeaturesAreHidden}</div>`}#E(){let{heading:e,_messages:t}=this;return m`<calcite-list .label=${t.headings.features}><calcite-list-item class="elements-list-item" .label=${e||t.headings.features} @calciteListItemSelect=${()=>this._isFeaturesSelected=!0}><calcite-chip .label=${t.labels.numFeatures} scale=s slot=content-end>${this.numResults}</calcite-chip><calcite-icon icon=chevron-right slot=content-end></calcite-icon></calcite-list-item></calcite-list>`}render(){return!this.traceResult?.elements.length||this.manager.destroyed?null:this.hideFeatureResults?this.hidePlaceholder?null:this.#v():this.isFeaturesListShown?m`<arcgis-features-next .actions=${this.actions} .autoDestroyDisabled=${this.autoDestroyDisabled} .defaultPopupTemplateEnabled=${this.#h} .features=${this.features} .hideActionBar=${this.hideActionBar} .hideCloseButton=${this.#n} hide-select-feature .includeDefaultActionsDisabled=${this.includeDefaultActionsDisabled} initial-display-mode=list .messageOverrides=${this.messageOverrides} open .referenceElement=${this.referenceElement} .view=${this.view} @arcgisClose=${()=>this._isFeaturesSelected=!1} @arcgisPropertyChange=${this.#F} @arcgisTriggerAction=${this.#b} ${v(this.#d)}></arcgis-features-next>`:this.#E()}};$("arcgis-utility-network-trace-elements-result-item",F);return F},"applications/Components/featureUtils",a,c)
2
+ import c from"./TMJX7DFH.js";import a from"./QZ5LJH35.js";import"./VJVKFKSG.js";import{a as _}from"./OHCCNZCY.js";import{h as A}from"./R2XADTZ4.js";import"./FZBSTBH3.js";import"./QUZTFUWM.js";import"./4TV72DOP.js";import"./XURWCCLX.js";import{O as v,P as E,W as $,a as b,b as m,n,p as u,r as f,x as y}from"./I2BIPOZQ.js";import"./H6RQVSYM.js";export default $arcgis.t(([{getOrCreateMapValue:C},{a:p,b:c,c:w,d:S},{c:D,d:P,e:I,g:R}])=>{var L=b`arcgis-features-next{height:100%}.elements-list-item{border:solid 1px var(--calcite-color-border-3);border-radius:var(--calcite-corner-radius-sm)}.features-hidden{color:var(--calcite-color-text-3);font-size:var(--calcite-font-size);overflow-wrap:anywhere}`,F=class extends E{constructor(){super(...arguments),this._messages=_({blocking:!0}),this.#h=!0,this.#s=[],this.#i=[],this.#r=new Map,this.#a=new Map,this.#l=new Map,this.#o=new Map,this.#e=[],this._isFeaturesSelected=!1,this.autoDestroyDisabled=!1,this.disableHighlight=!1,this.emitsArcgisResultReady=!0,this.features=[],this.hideActionBar=!1,this.hideFeatureResults=!1,this.hidePlaceholder=!1,this.includeDefaultActionsDisabled=!1,this.layers=[],this.state="ready",this.arcgisPropertyChange=A()("isFeaturesListShown","selectedResultFeature","state"),this.arcgisTriggerAction=y(),this.arcgisResultReady=y()}static{this.properties={_featuresComponentElement:16,_isFeaturesSelected:16,actions:0,autoDestroyDisabled:5,disableHighlight:5,emitsArcgisResultReady:32,features:32,heading:1,hideActionBar:5,hideFeatureResults:5,hidePlaceholder:5,includeDefaultActionsDisabled:5,isFeaturesListShown:32,layers:0,messageOverrides:0,numResults:32,referenceElement:1,selectedResultFeature:32,state:32,traceResult:0,utilityNetwork:0,view:0}}static{this.styles=L}#h;#s;get#n(){if(!this.traceResult)return!1;let{elements:e,globalFunctionResults:t,aggregatedGeometry:s}=this.traceResult;return e.length>0&&!t.length&&!s}#i;#r;#a;#t;#l;#o;#e;get isFeaturesListShown(){return(this._isFeaturesSelected||this.#n)&&!this.hideFeatureResults}get numResults(){return this.features.length+this.#s.length}get selectedResultFeature(){return this._featuresComponentElement?.selectedDrillInFeature??this._featuresComponentElement?.selectedFeature??void 0}clearResult(){this._isFeaturesSelected=!1,this.#t?.abort(),this.#u(),n(()=>this.features=[]),this.#e=[],this.#s=[],this.#r.clear(),this.#a.clear(),this.#l.clear(),this.#o.clear(),n(()=>this.state="ready")}async destroy(){this.clearResult(),this._featuresComponentElement?.destroy(),await this.manager.destroy()}load(){this.traceResult&&this.#c()}willUpdate(e){e.has("traceResult")&&this.#c(),e.has("_isFeaturesSelected")&&(this.#n||(e.get("_isFeaturesSelected")??!1))!==this.isFeaturesListShown&&this.arcgisPropertyChange.emit({name:"isFeaturesListShown"})}loaded(){this.traceResult&&(this.traceResult.elements||u("error",this,f("traceResult.elements")),this.utilityNetwork||u("error",this,f("utilityNetwork")))}#u(){this.#i.forEach(e=>e.remove()),this.#i=[]}#d(e){e&&(this._featuresComponentElement=e)}#m(e){return Array.from(new Map(e.map(t=>[t.globalId,t])).values())}#g(e){if(e==null||!this.#e.length)return;let t=this.#a.get(e);if(t)return t;let s=this.#e.find(a=>"layerId"in a&&a.layerId===e);return s&&this.#a.set(e,s),s}#f(){let{traceResult:e,utilityNetwork:t,view:s}=this;if(!t||!e?.elements?.length||!s)return;let a=r=>(I(r.layer)||R(r.layer))&&t.isUtilityLayer(r.layer),o=t.getObjectIdsFromElements(e.elements),i=s.allLayerViews.filter(a);o.forEach(({layerUrl:r,objectIds:h})=>{let l=Number(r.split("/").pop()),d=i.find(({layer:g})=>g.layerId===l);if(d){let g=d.highlight(h);this.#i.push(g)}})}async#y(e){let{layers:t,utilityNetwork:s,view:a}=this;if(!a||!s)return;try{s.loaded||await s.load({signal:e})}catch(i){if(w(i))throw i;p(i,this,"Error while loading the selected utility network")}c(e),this.#e=t.length?t.filter(i=>s.isUtilityLayer(i)):D(a,s);let o=this.#e.filter(i=>!i.loaded).map(i=>i.load({signal:e}));if(o.length>0){let i=await Promise.allSettled(o);c(e),i.forEach(r=>{r.status==="rejected"&&u("error",this,`Failed to load layer. Reason: ${r.reason}`)})}}async#c(){this.clearResult();let e=()=>{n(()=>this.state="ready"),this.arcgisResultReady.emit()},t=S(async s=>{let a=this.traceResult?.elements;if(!a?.length){e();return}n(()=>this.state="loading"),this.#R(a),await this.#y(s),await this.#w(s),c(s),this.disableHighlight||this.#f(),e()});this.#t=t;try{await t.promise}catch(s){w(s)||(p(s,this,"Error while loading trace result"),this.#t===t&&e())}finally{this.#t===t&&(this.#t=void 0,n(()=>this.state="ready"))}}async#p([e,t],s){c(s);let a=this.utilityNetwork?.getLayerIdBySourceId(e),o=this.#g(a),i=this.#m(t);if(a==null||!o){this.#s.push(...i);return}let r=o.createQuery();r.gdbVersion=this.utilityNetwork?.gdbVersion,r.objectIds=i.map(l=>l.objectId),r.outFields=["*"];let{features:h}=await P(o,r,{signal:s});c(s),h.forEach(l=>{let d=l.layer;l.getEffectivePopupTemplate(this.#h)||(l.popupTemplate=d.createPopupTemplate())}),R(o)?h.forEach(l=>{C(this.#l,l.layer.subtypeCode,()=>[]).push(l)}):this.#r.set(a,h)}async#w(e){let t=Array.from(this.#o.entries());if(!t.length)return;let s=t.map(r=>this.#p(r,e)),a=await Promise.allSettled(s);c(e),a.forEach((r,h)=>{if(r.status==="rejected"){let[l]=t[h];u("error",this,`Failed to query features for source ${l}. Reason: ${r.reason}`)}});let o=Array.from(this.#r.values()),i=Array.from(this.#l.values());n(()=>this.features=o.concat(i).flat())}#R(e){this.#o=Map.groupBy(e,({networkSourceId:t})=>t)}#F(e){let{detail:t}=e;(t.name==="selectedDrillInFeature"||t.name==="selectedFeature")&&(e.stopPropagation(),this.arcgisPropertyChange.emit({name:"selectedResultFeature"}))}#b(e){e.stopPropagation(),this.arcgisTriggerAction.emit(e.detail)}#v(){return m`<div class="features-hidden">${this._messages.resultFeaturesAreHidden}</div>`}#E(){let{heading:e,_messages:t}=this;return m`<calcite-list .label=${t.headings.features}><calcite-list-item class="elements-list-item" .label=${e||t.headings.features} @calciteListItemSelect=${()=>this._isFeaturesSelected=!0}><calcite-chip .label=${t.labels.numFeatures} scale=s slot=content-end>${this.numResults}</calcite-chip><calcite-icon icon=chevron-right slot=content-end></calcite-icon></calcite-list-item></calcite-list>`}render(){return!this.traceResult?.elements.length||this.manager.destroyed?null:this.hideFeatureResults?this.hidePlaceholder?null:this.#v():this.isFeaturesListShown?m`<arcgis-features-next .actions=${this.actions} .autoDestroyDisabled=${this.autoDestroyDisabled} .defaultPopupTemplateEnabled=${this.#h} .features=${this.features} .hideActionBar=${this.hideActionBar} .hideCloseButton=${this.#n} hide-select-feature .includeDefaultActionsDisabled=${this.includeDefaultActionsDisabled} initial-display-mode=list .messageOverrides=${this.messageOverrides} open .referenceElement=${this.referenceElement} .view=${this.view} @arcgisClose=${()=>this._isFeaturesSelected=!1} @arcgisPropertyChange=${this.#F} @arcgisTriggerAction=${this.#b} ${v(this.#d)}></arcgis-features-next>`:this.#E()}};$("arcgis-utility-network-trace-elements-result-item",F);return F},"applications/Components/featureUtils",a,c)
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
+ import k from"./CZPZHMHT.js";import{a as R}from"./SSNCB7LI.js";import i from"./R26ZJOWO.js";import h from"./TMJX7DFH.js";import g from"./QZ5LJH35.js";import{a as E}from"./VJVKFKSG.js";import{b as U,c as j,d as G}from"./7N4V2IN6.js";import e from"./CBB2T3RI.js";import{a as V}from"./OHCCNZCY.js";import c from"./75OH7AOP.js";import b from"./CODEI67F.js";import{f as z,h as P}from"./R2XADTZ4.js";import"./FZBSTBH3.js";import a from"./7XCYURYF.js";import"./QUZTFUWM.js";import{b as A}from"./4TV72DOP.js";import{a as D}from"./XURWCCLX.js";import{N as f,O as m,P as B,R as M,T as d,U as H,W as N,a as O,b as n,n as T,x as C}from"./I2BIPOZQ.js";import"./H6RQVSYM.js";export default $arcgis.t(([J,q,Q,{initializeProjection:Y},{renderingSanitizer:b},{stripHTML:S},{substitute:h,formatNumber:I},{when:ee,watch:u},{getGraphicOriginTitle:te},,,,Z,,,{e:k},{c:K,d:W}])=>{var ie=O`:host{display:flex;overflow:hidden;flex:1 1 auto}.root{--calcite-color-background: var(--calcite-color-foreground-1);display:flex;overflow:hidden;flex:1 1 auto;flex-direction:column}.root img{image-orientation:from-image}.flow-item-collapsed{--calcite-flow-item-header-border-block-end: none}.container{display:flex;flex:1 1 auto;background-color:var(--calcite-color-foreground-1)}.container calcite-list{width:100%}.container:not(:empty,.content-hidden){padding:var(--arcgis-internal-padding-md, var(--calcite-spacing-md))}.root .arcgis-feature,.root .arcgis-feature-relationship,.root .arcgis-feature-utility-network-associations{background-color:transparent}.heading{word-break:break-word;word-wrap:break-word}.header,.footer{display:flex;align-items:center;justify-content:flex-end;background-color:var(--calcite-color-foreground-1)}.footer{flex:1}.pagination-text{padding-inline:var(--calcite-spacing-sm);color:var(--calcite-color-text-3);font-size:var(--calcite-font-size-sm)}.loader{align-self:center;padding-inline:var(--calcite-spacing-lg)}.pagination-action-bar{flex:1}.pagination-menu-button{padding-inline:var(--calcite-spacing-xxs);border-inline-start:var(--calcite-border-width-sm) solid var(--calcite-color-border-3)}.icon{display:inline-block;flex:0 0 var(--calcite-spacing-lg);width:var(--calcite-spacing-lg);height:var(--calcite-spacing-lg)}.action-image{flex:0 0 var(--calcite-spacing-lg);background-position:50% 50%;background-repeat:no-repeat;background-size:contain;width:var(--calcite-spacing-lg);height:var(--calcite-spacing-lg)}.content-feature{--calcite-flow-item-footer-padding: 0;--calcite-flow-header-top-space: 0}.feature-menu-observer{position:relative;bottom:var(--calcite-spacing-xxl);z-index:2;text-align:center}.action-exit{transform:scaleX(-1)}.flow-item-drill-in{--calcite-flow-item-footer-padding: 0}.diagnostics-notice{padding:var(--calcite-space-md)}`;function ae(_){return _?.declaredClass.startsWith("esri.layers.")??!1}function se(_){if(!(!_||!("featureReduction"in _)))return _.featureReduction?.type}var ne=Z(Q),oe=25,re=5,L=class extends B{constructor(){super(...arguments),this._zoomToFeature=new J({icon:"magnifying-glass-plus",id:"zoom-to-feature",title:"{messages.zoom}"}),this._fetchFeaturesController=null,this._featureMenuIntersectionObserverCallback=([e])=>{e?.isIntersecting&&this.viewModel.featurePage!=null&&this.viewModel.featurePage++},this._featureMenuIntersectionObserver=new IntersectionObserver(this._featureMenuIntersectionObserverCallback,{root:window.document}),this._featureMenuIntersectionObserverNode=null,this._setFocusAnimationFrameId=null,this._setFocusAnimationFrameResolve=null,this._rootFlowItemNode=f(),this._featureMenuViewportNode=f(),this._actionBarMenuNode=f(),this._flowContainerNode=f(),this._aggregatedFeaturesComponent=f(),this.messages=V(),this._selectedFeatureComponent=f(),this._direction=z(),this._cancelOpenRelatedFeature=()=>{this._openRelatedFeatureAbortController=E(this._openRelatedFeatureAbortController)},this._spinnerVisible=!1,this._spinnerVisibilityTimeout=null,this._openRelatedFeatureAbortController=null,this.flowItems=new q,this._aggregatedFeatureCount=0,this._selectedAggregatedFeatureIndex=-1,this._aggregatedFeaturesLoading=!1,this._hasActionsStartSlotContent=!1,this._hasActionsEndSlotContent=!1,this.viewModel=ne(this),this.actions=this.viewModel.actions,this.active=this.viewModel.active,this.autoDestroyDisabled=!1,this.focusTrapEnabled=!1,this.collapsed=!1,this.content=this.viewModel.content,this.diagnostics=this.viewModel.diagnostics,this.defaultPopupTemplateEnabled=this.viewModel.defaultPopupTemplateEnabled,this.effectiveHeading=this.viewModel.effectiveHeading,this.featureCount=this.viewModel.featureCount,this.featureMenuOpen=!1,this.featureNavigationTop=!1,this.features=this.viewModel.features,this.featuresPerPage=this.viewModel.featuresPerPage,this.featureItemAbilities=this.viewModel.featureItemAbilities,this.goToOverride=this.viewModel.goToOverride,this.headerActions=new q,this.heading=this.viewModel.heading,this.headingLevel=2,this.hideActionBar=!1,this.hideCloseButton=!1,this.hideFeatureMenuHeading=!1,this.hideFeatureNavigation=!1,this.hideFeatureListLayerTitle=!1,this.hideHeading=!1,this.hideSelectFeature=!1,this.hideSpinner=!1,this.hideContent=!1,this.chartAnimationDisabled=this.viewModel.featureItemAbilities?.chartAnimation,this.hideAttachmentsContent=this.viewModel.featureItemAbilities?.attachmentsContent,this.hideEmptyRelationshipContent=!1,this.hideCustomContent=this.viewModel.featureItemAbilities?.customContent,this.hideExpressionContent=!1,this.hideFieldsContent=this.viewModel.featureItemAbilities?.fieldsContent,this.hideMediaContent=this.viewModel.featureItemAbilities?.mediaContent,this.hideRelationshipContent=this.viewModel.featureItemAbilities?.relationshipContent,this.hideTextContent=this.viewModel.featureItemAbilities?.textContent,this.hideUtilityNetworkContent=this.viewModel.featureItemAbilities?.utilityNetworkAssociationsContent,this.hideLastEditedInfo=!1,this.highlightDisabled=this.viewModel.highlightEnabled,this.includeDefaultActionsDisabled=this.viewModel.includeDefaultActions,this.initialDisplayMode=this.viewModel.initialDisplayMode,this.location=this.viewModel.location,this.map=this.viewModel.map,this.open=this.viewModel.open,this.responsiveActionsEnabled=!1,this.selectedFeature=this.viewModel.selectedFeature,this.selectedFeatureIndex=this.viewModel.selectedFeatureIndex,this.showCollapseButton=!1,this.spatialReference=this.viewModel.spatialReference,this.state=this.viewModel.state,this.timeZone=this.viewModel.timeZone,this.updateLocationEnabled=this.viewModel.updateLocationEnabled,this.view=this.viewModel.view,this.arcgisPropertyChange=P()("active","collapsed","effectiveHeading","featureCount","featureMenuOpen","features","selectedDrillInFeature","selectedFeature","selectedFeatureComponent","selectedFeatureIndex","state","open"),this.arcgisReady=C(),this.arcgisClose=C(),this.arcgisTriggerAction=C()}static{this.properties={_openRelatedFeatureAbortController:16,flowItems:16,_aggregatedFeatureCount:16,_selectedAggregatedFeatureIndex:16,_aggregatedFeaturesLoading:16,_hasActionsStartSlotContent:16,_hasActionsEndSlotContent:16,_hideActionText:16,_featureNavigationVisible:16,_isCollapsed:16,_collapseEnabled:16,_selectedFeatureHeading:16,_selectedFeatureHeadingText:16,_selectedFeatureContent:16,_featureFlowItemSelected:16,viewModel:0,actions:0,active:0,autoDestroyDisabled:5,focusTrapEnabled:5,collapseDirection:1,collapsed:5,content:1,diagnostics:0,defaultPopupTemplateEnabled:5,effectiveHeading:32,featureCount:9,featureMenuOpen:5,featureMenuTitle:1,featureNavigationTop:5,features:0,featuresPerPage:9,featureItemAbilities:0,goToOverride:0,headerActions:0,heading:1,headingLevel:9,hideActionBar:5,hideCloseButton:5,hideFeatureMenuHeading:5,hideFeatureNavigation:5,hideFeatureListLayerTitle:5,hideHeading:5,hideSelectFeature:5,hideSpinner:5,hideContent:5,chartAnimationDisabled:5,hideAttachmentsContent:5,hideEmptyRelationshipContent:5,hideCustomContent:5,hideExpressionContent:5,hideFieldsContent:5,hideMediaContent:5,hideRelationshipContent:5,hideTextContent:5,hideUtilityNetworkContent:5,hideLastEditedInfo:5,highlightDisabled:5,icon:1,includeDefaultActionsDisabled:5,initialDisplayMode:1,label:1,location:0,map:0,messageOverrides:0,open:5,referenceElement:1,responsiveActionsEnabled:5,selectedDrillInFeature:32,selectedFeature:0,selectedFeatureComponent:32,selectedFeatureIndex:9,showCollapseButton:5,spatialReference:0,state:32,timeZone:1,updateLocationEnabled:5,view:0}}static{this.styles=ie}get _hideActionText(){if(!this.responsiveActionsEnabled)return!1;let e=this.viewModel.view?.widthBreakpoint;return e==="xsmall"||e==="small"||e==="medium"}get _featureNavigationVisible(){return this.viewModel.active&&this.viewModel.featureCount>1&&!!this.viewModel.selectedFeature&&!this.hideFeatureNavigation}get _isCollapsed(){return this._collapseEnabled&&this.collapsed}get _collapseEnabled(){return this.showCollapseButton&&(this.initialDisplayMode==="list"||!!(this.heading||this._selectedFeatureHeading)&&!!(this.content||this._selectedFeatureContent))}get _selectedFeatureHeading(){return this.viewModel.selectedFeatureItem?.heading}get _selectedFeatureHeadingText(){return this._selectedFeatureHeading??this.messages.untitled}get _selectedFeatureContent(){return this.viewModel.selectedFeatureItem?.content}get _featureFlowItemSelected(){return this.initialDisplayMode==="list"?!!this.selectedFeature:!this.featureMenuOpen}clear(){this.viewModel.clear()}close(){this.open=!1}async destroy(){await this.manager.destroy(),this._clearSpinnerVisibilityTimeout(),this._removeSpinner(this.referenceElement),this._cancelOpenRelatedFeature(),this._cancelSetFocusAnimationFrame(),this._removeFlowItems(),this._unobserveFeatureMenuObserver(),this._cancelFetchingFeatures(),this._featureMenuIntersectionObserver?.disconnect()}async fetchFeatures(e,t){this._cancelFetchingFeatures();let{signal:a}=t??{},i=new AbortController,{signal:s}=i,o=a?AbortSignal.any([s,a]):s;this._fetchFeaturesController=i,!e&&this.view&&this.location&&(await Y(this.location.spatialReference,this.view.spatialReference,null,{signal:o}),e=this.view.toScreen(this.location)??void 0),e&&await this.viewModel.fetchFeatures(e,{...t,signal:o})}next(){this.viewModel.next()}previous(){this.viewModel.previous()}async setFocus(){this._cancelSetFocusAnimationFrame(),await new Promise(e=>{this._setFocusAnimationFrameResolve=e,this._setFocusAnimationFrameId=requestAnimationFrame(()=>{this._setFocusAnimationFrameId=null;try{if(!this.isConnected||!this.viewModel?.active)return;this._flowContainerNode.value?.setFocus()}finally{this._resolveSetFocusAnimationFrame()}})})}connectedCallback(){super.connectedCallback(),this._createSpinner()}disconnectedCallback(){super.disconnectedCallback(),this._clearSpinnerVisibilityTimeout(),this._cancelSetFocusAnimationFrame(),this._removeSpinner(this.referenceElement)}loaded(){this.manager.onLifecycle(()=>[ee(()=>[this.initialDisplayMode==="list"&&!!this.viewModel?.selectedFeature,this.viewModel?.active],()=>{this.setFocus()}),u(()=>[this.flowItems?.length,this.featureMenuOpen],()=>{this.setFocus()}),u(()=>this.viewModel?.selectedFeatureIndex,(e,t)=>this._selectedFeatureIndexUpdated(e,t)),u(()=>this.viewModel?.view?.scale,()=>this._viewScaleChange()),u(()=>this.viewModel?.view,(e,t)=>t&&this._viewChange()),u(()=>this._spinnerEl?.screenLocation,()=>this._closeOpenActionMenu()),u(()=>this.selectedFeatureComponent?.viewModel,()=>this._removeFlowItems()),u(()=>this.viewModel?.featureItems,()=>this._featureMenuViewportScrollTop()),u(()=>this.flowItems.length,()=>this._syncSelectedDrillInFeature()),u(()=>this.viewModel.aggregatedFeaturesEnabled,e=>{e||(this._aggregatedFeatureCount=0,this._selectedAggregatedFeatureIndex=-1,this._aggregatedFeaturesLoading=!1,this._removeFlowItems())}),u(()=>this.referenceElement,(e,t)=>{this._removeSpinner(t),this._createSpinner()},{initial:!0}),u(()=>[this.hideSpinner,this.viewModel?.view,this.viewModel?.location,this.viewModel?.pendingLocation,this.viewModel?.waitingForResult,this.viewModel?.open],()=>this._createSpinner(),{initial:!0})])}updated(){let e=this._selectedFeatureComponent.value??void 0;this.selectedFeatureComponent!==e&&T(()=>this.selectedFeatureComponent=e)}_resolveSetFocusAnimationFrame(){let e=this._setFocusAnimationFrameResolve;this._setFocusAnimationFrameResolve=null,e?.()}_cancelSetFocusAnimationFrame(){this._setFocusAnimationFrameId!=null&&(cancelAnimationFrame(this._setFocusAnimationFrameId),this._setFocusAnimationFrameId=null),this._resolveSetFocusAnimationFrame()}_cancelFetchingFeatures(){this._fetchFeaturesController=E(this._fetchFeaturesController)}_handleClose(){this.close(),this.arcgisClose.emit()}_groupResultsByLayer(){let{featureItems:e}=this.viewModel,t=new Map;return e.forEach(a=>{let i=a?.graphic;if(!i)return;let s=k(i),o=ae(s)?s:null,r=t.get(o);r||(r=[],t.set(o,r)),r.push(a)}),t}_handleCollapseToggle(){this.collapsed=!this.collapsed}async _openRelatedFeature(e){this._cancelOpenRelatedFeature();let t=new AbortController;if(this._openRelatedFeatureAbortController=t,await e.updateGeometry(),t.signal.aborted)return;let a=e.graphic,i=a?.geometry;if(i==null||a==null){this._openRelatedFeatureAbortController=null;return}if(this._removeFlowItems(),await this.viewModel.zoomTo({target:i}),t.signal.aborted)return;let{labelPointExecute:s}=await $arcgis.t(m=>m[0],"geometry/operators/labelPointOperator");if(t.signal.aborted)return;let o=s(i);o!=null&&(this.location=o),this.features=[a],this.open=!0,this._openRelatedFeatureAbortController=null}_handlePaginationMenuButton(){this._updateFeatureMenu()}_openFeatureMenu(){this._updateFeatureMenu(!0)}_closeFeatureMenu(){this._updateFeatureMenu(!1)}_updateFeatureMenu(e=!this.featureMenuOpen){this.featureMenuOpen=e}_previousFeature(){this.viewModel.previous()}_nextFeature(){this.viewModel.next()}_handleFeatureBack(){this.initialDisplayMode==="list"?this.selectedFeatureIndex=-1:this._openFeatureMenu()}_handleFeatureMenuBack(){this.initialDisplayMode==="list"?this.selectedFeatureIndex=-1:this.featureMenuOpen&&this._closeFeatureMenu()}_setActiveFeature(e){let{viewModel:t}=this;t.activeFeature=t.features?.[e]||null}_removeActiveFeature(){this.viewModel.activeFeature=null}_selectFeature(e){this.viewModel.selectedFeatureIndex=e,this.initialDisplayMode==="feature"&&this._handleFeatureMenuBack()}_unobserveFeatureMenuObserver(){this._featureMenuIntersectionObserverNode&&this._featureMenuIntersectionObserver.unobserve(this._featureMenuIntersectionObserverNode)}_featureMenuIntersectionObserverCreated(e){this._unobserveFeatureMenuObserver(),e&&this._featureMenuIntersectionObserver.observe(e),this._featureMenuIntersectionObserverNode=e}_getActionLabel(e){let{messages:t}=this;return e.id==="zoom-to-feature"?h(t.zoomLabel??"",{messages:t,title:this._selectedFeatureHeadingText}):null}_getActionTitle(e){let{messages:t,selectedFeature:a}=this,{id:i}=e,s=a?.attributes,o=e.title??"",r=i==="zoom-to-feature"?h(o,{messages:t}):i==="remove-selected-feature"?h(o,{messages:t}):i==="zoom-to-aggregated-features"?h(o,{messages:t}):i==="browse-aggregated-features"?h(o,{messages:t}):e.title;return r&&s?h(r,s):r??""}_onMainKeydown(e){let{key:t}=e;e.defaultPrevented||U(e)||(G(t,this._direction,{horizontalOnly:!0})&&(e.preventDefault(),e.stopPropagation(),this._handleFeatureMenuBack(),this.previous()),j(t,this._direction,{horizontalOnly:!0})&&(e.preventDefault(),e.stopPropagation(),this._handleFeatureMenuBack(),this.next()))}_featureMenuViewportScrollTop(){this._featureMenuViewportNode.value?.scrollContentTo({top:0})}_selectedFeatureIndexUpdated(e,t){let{featureCount:a,waitingForResult:i}=this.viewModel;i||!a||e===t||e===-1||(this._aggregatedFeatureCount=0,this._selectedAggregatedFeatureIndex=-1,this._removeFlowItems(),this._rootFlowItemNode.value?.scrollContentTo({top:0}))}_triggerAction(e){e.disabled||(e?.type==="toggle"&&(e.value=!e.value),W(e,this.viewModel),this.arcgisTriggerAction.emit({action:e}))}_viewScaleChange(){let{selectedFeature:e}=this,t=k(e);!e?.isAggregate||se(t)!=="cluster"||(this.viewModel.aggregatedFeaturesEnabled=!1,this.open=!1,this.clear())}_viewChange(){this.viewModel.clear(),this.open=!1,this._aggregatedFeatureCount=0,this._removeFlowItems()}_handleAggregatedFeaturesPropertyChange({detail:e,target:t}){e.name==="aggregatedFeatureCount"&&(this._aggregatedFeatureCount=t.aggregatedFeatureCount),e.name==="selectedAggregatedFeatureIndex"&&(this._selectedAggregatedFeatureIndex=t.selectedAggregatedFeatureIndex,this._syncSelectedDrillInFeature()),e.name==="loading"&&(this._aggregatedFeaturesLoading=t.loading)}_closeOpenActionMenu(){let{_actionBarMenuNode:e}=this;e.value&&(e.value.menuOpen=!1)}_syncSelectedDrillInFeature(){let e=this.flowItems.getItemAt(this.flowItems.length-1);T(()=>this.selectedDrillInFeature=e?.graphic??void 0)}_removeFlowItems(){this.viewModel.aggregatedFeaturesEnabled=!1,this.flowItems?.destroyAll()}_getDrillInFlowItemDescription(e){switch(e.flowType){case"feature":case"feature-association":case"feature-utility-network-associations":case"feature-utility-network-association-type":return e.description;case"feature-relationship":return e.allItemsDescription}}_handleDrillInBackClick(){this.flowItems?.pop()?.destroy()}_getHeading(){let{effectiveHeading:e}=this.viewModel;return!this.hideHeading&&e?e:""}_handleActionsStartSlotChange(e){this._hasActionsStartSlotContent=D(e)}_handleActionsEndSlotChange(e){this._hasActionsEndSlotContent=D(e)}_removeSpinner(e){e?.manager?.component?.extraContent?.remove(this._spinnerEl),this._spinnerEl=void 0}_clearSpinnerVisibilityTimeout(){this._spinnerVisibilityTimeout!=null&&(clearTimeout(this._spinnerVisibilityTimeout),this._spinnerVisibilityTimeout=null)}_getSpinnerTrackLocation(){return!this.hideSpinner&&this.viewModel.open&&this.viewModel?.waitingForResult?this._spinnerVisible?!0:(this._spinnerVisibilityTimeout??=setTimeout(()=>{this._spinnerVisibilityTimeout=null,this._spinnerVisible=!0,this._createSpinner()},oe),!1):(this._clearSpinnerVisibilityTimeout(),this._spinnerVisible=!1,!1)}_createSpinner(){let e=this.referenceElement;e&&(this._removeSpinner(e),this._spinnerEl=H(n`<arcgis-spinner .label=${this.messages.loading??""} .trackLocation=${this._getSpinnerTrackLocation()} .location=${this.viewModel?.pendingLocation??this.viewModel?.location??void 0} .referenceElement=${e} .view=${this.viewModel?.view??void 0}></arcgis-spinner>`),e.manager?.component?.extraContent?.add(this._spinnerEl))}render(){return n`<div class="root">${this._renderContentContainer()}</div>`}_renderFeatureNavigation(){return[this._renderPagination(()=>this._previousFeature(),()=>this._nextFeature()),this.initialDisplayMode==="list"?this._renderFeaturePaginationText(this.viewModel.featureCount,this.viewModel.selectedFeatureIndex):this._renderFeatureMenuButton()]}_renderHeader(){return this.featureNavigationTop&&this._featureNavigationVisible?n`<div slot=header-top class="header">${this._renderFeatureNavigation()}</div>`:null}_renderFooter(){return!this.featureNavigationTop&&this._featureNavigationVisible?n`<div class="footer" slot=footer>${this._renderFeatureNavigation()}</div>`:null}_renderFeaturePaginationText(e,t){let{messages:a}=this;return n`<div class="pagination-text">${h(a.pageText??"",{index:I(t+1),total:I(e)})}</div>`}_renderFeatureMenuButton(){let{messages:e,viewModel:t}=this,{featureCount:a,streamingFeatures:i,selectedFeatureIndex:s}=t;return n`<calcite-action class="pagination-menu-button" icon=list .label=${e.showAllFeatures??""} .loading=${i} @click=${this._handlePaginationMenuButton} .text=${h(e.pageText??"",{index:I(s+1),total:I(a)})} text-enabled title=${e.showAllFeatures??""??d}></calcite-action>`}_renderPagination(e,t){let{previous:a,next:i}=this.messages;return n`<calcite-action-bar class="pagination-action-bar" expand-toggle-disabled layout=horizontal overflow-mode=none scale=s><calcite-action-group scale=s><calcite-action class="pagination-previous" icon=chevron-left icon-flip-rtl .label=${a??""} @click=${e} .text=${a??""} title=${a??""??d}></calcite-action><calcite-action icon=chevron-right icon-flip-rtl .label=${i??""} @click=${t} .text=${i??""} title=${i??""??d}></calcite-action></calcite-action-group></calcite-action-bar>`}_renderFeatureMenuItem(e,t){let{initialDisplayMode:a}=this,{selectedFeatureItem:i}=this.viewModel,s=e===i;return n`<calcite-list-item @blur=${this._removeActiveFeature} @focus=${()=>this._setActiveFeature(t)} @mouseleave=${this._removeActiveFeature} @mouseover=${()=>this._setActiveFeature(t)} .selected=${s} @calciteListItemSelect=${()=>this._selectFeature(t)}><span .innerHTML=${(b.sanitize(e.heading)||this.messages.untitled)??""} slot=content></span>${a==="list"?n`<calcite-icon flip-rtl icon=chevron-right scale=s slot=content-end></calcite-icon>`:null}</calcite-list-item>`}_renderFeatureMenu(){let{messages:e,viewModel:t}=this,a=this._groupResultsByLayer(),i=new Map;t.featureItems.forEach((o,r)=>i.set(o,r));let s=this.initialDisplayMode==="list"?"none":"single";return t.featureItems.length?n`<calcite-list display-mode=flat .label=${e?.featuresList??""} selection-appearance=icon .selectionMode=${s}>${Array.from(a.keys(),o=>{let r=a.get(o)?.map(c=>{let g=i.get(c);return g==null?null:this._renderFeatureMenuItem(c,g)}),l=o?o.title??this.messages.untitled:null;return!this.hideFeatureListLayerTitle&&l!==null?R(o??"map-graphics",n`<calcite-list-item-group .heading=${l}>${r}</calcite-list-item-group>`):r})}</calcite-list>`:null}_renderHeaderAction(e){let t=e.title||"";return e.visible?n`<calcite-action .active=${e.type==="toggle"?e.value:!1} .disabled=${e.disabled} .icon=${e.icon??void 0} .indicator=${e.active} .loading=${e.active} @click=${()=>this._triggerAction(e)} slot=header-actions-end .text=${t} title=${t??d}></calcite-action>`:null}_renderHeaderActions(){return this.headerActions.map(e=>this._renderHeaderAction(e)).toArray()}_renderContentFeature(e){let{headingLevel:t,hideCloseButton:a,_isCollapsed:i,_collapseEnabled:s,featureNavigationTop:o,initialDisplayMode:r,selectedFeature:l,hideHeading:c}=this,{active:g,selectedFeatureItem:v,content:F}=this.viewModel,p=this._getHeading();if(r==="list"&&!l)return null;let w=v?!v.content:!F;return n`<calcite-flow-item .focusTrapEnabled=${this.focusTrapEnabled} class=${M(A({"content-feature":!0,"flow-item-collapsed":i}))} .closable=${!a} .closed=${!g} .collapsed=${i} .collapseDirection=${this.collapseDirection??(o?"down":"up")} .collapsible=${s} .headingLevel=${t} .selected=${e} .messageOverrides=${{collapse:this.messages.collapse,expand:this.messages.expand}} @calciteFlowItemBack=${this._handleFeatureBack} .loading=${!!this._openRelatedFeatureAbortController} @calciteFlowItemClose=${this._handleClose} @calciteFlowItemToggle=${this._handleCollapseToggle} @keydown=${this._onMainKeydown} .heading=${!c&&p?S(p):void 0} ${m(this._rootFlowItemNode)}>${this._renderHeader()}${!c&&p?n`<div slot=heading><div .innerHTML=${b.sanitize(p??"")??""}></div></div>`:null}${this._renderHeaderActions()}${this._renderActionBar()}<div class=${M(A("container","content-container",{"content-hidden":w}))}>${this._renderContent()}</div>${this._renderFooter()}</calcite-flow-item>`}_renderDiagnosticsRefineResults(){let{messages:e}=this,{view:t}=this.viewModel;return t!=null&&"effectiveMaxZoom"in t.constraints&&t.constraints.effectiveMaxZoom>=0&&t.zoom>=t.constraints.effectiveMaxZoom?e.maxRecordCountDescriptionRefineResultsMaxZoomLevel:e.maxRecordCountDescriptionRefineResults}_renderDiagnosticsList(e){let{messages:t}=this,a=Array.from(e,i=>te(i)??t.untitled);return a.length?n`<p>${t.maxRecordCountDescriptionWithLayerList}</p><ul>${a.map(i=>n`<li>${i}</li>`)}</ul><p>${this._renderDiagnosticsRefineResults()}</p>`:null}_renderDiagnosticsMultipleLayers(){let{messages:e}=this;return n`<p>${e.maxRecordCountDescriptionMultipleLayers}</p><p>${this._renderDiagnosticsRefineResults()}</p>`}_renderDiagnostics(){let{messages:e}=this,{diagnostics:t}=this.viewModel,a=t?.layerLimitExceeded;return a?.size?n`<calcite-notice class="diagnostics-notice" open kind=info scale=s><span slot=title>${e.maxRecordCountHeading}</span><div slot=message>${a.size<=re?this._renderDiagnosticsList(a):this._renderDiagnosticsMultipleLayers()}</div></calcite-notice>`:null}_renderFeatureMenuContainer(){let{viewModel:e,hideCloseButton:t,featureMenuTitle:a,messages:i,initialDisplayMode:s,featureMenuOpen:o,_featureFlowItemSelected:r,_collapseEnabled:l,_isCollapsed:c,featureNavigationTop:g,headingLevel:v}=this,{active:F,featureItems:p,streamingFeatures:w}=e,x=a??i.selectFeature,$=h(i.backLabel??"",{title:this._selectedFeatureHeadingText});if(s==="feature"&&!o)return null;let y=!r;return n`<calcite-flow-item .focusTrapEnabled=${this.focusTrapEnabled} class=${M(A({"flow-item-collapsed":c}))} .closable=${!t} .closed=${!F} .collapsed=${s==="list"&&c} .collapseDirection=${this.collapseDirection??(g?"down":"up")} .collapsible=${s==="list"&&l} .messageOverrides=${{collapse:this.messages.collapse,expand:this.messages.expand,back:$}} .description=${this.hideFeatureMenuHeading?void 0:h(i.total??"",{total:p.length})} .heading=${this.hideFeatureMenuHeading?void 0:x} .headingLevel=${v} .loading=${e.waitingForContents} .selected=${y} @calciteFlowItemBack=${X=>{X.preventDefault(),this._handleFeatureMenuBack()}} @calciteFlowItemClose=${this._handleClose} @calciteFlowItemToggle=${this._handleCollapseToggle} ${m(this._featureMenuViewportNode)}>${s==="list"?this._renderHeaderActions():null}${w?n`<calcite-loader class="loader" inline .label=${i.loading??""} slot=header-actions-end></calcite-loader>`:null}${this._renderDiagnostics()}<div class="container">${this._renderFeatureMenu()}</div><div class="feature-menu-observer" ${m(this._featureMenuIntersectionObserverCreated)}></div>${s==="feature"?n`<calcite-button scale=s appearance=transparent @click=${this._handleFeatureMenuBack} slot=footer-start width=full .label=${$} title=${$??d}>${i.back}</calcite-button>`:null}</calcite-flow-item>`}_renderFlowItem(e,t){let{messages:a,hideCloseButton:i,hideSelectFeature:s,active:o,hideHeading:r}=this,l="graphic"in e&&"isFeatureFromTable"in e&&!e.isFeatureFromTable,c=l&&!s,g=e.flowType==="feature-association",v=a.returnToInitialFeature??"",F=a?.selectFeature,p=this._getActionTitle(this._zoomToFeature),w=this._getActionLabel(this._zoomToFeature),x=!this.hideActionBar&&g&&l,$=e.flowType==="feature"&&this.viewModel.aggregatedFeaturesEnabled?n`<div class="footer" slot=footer>${this._renderPagination(()=>{this._aggregatedFeaturesComponent.value?.previous()},()=>{this._aggregatedFeaturesComponent.value?.next()})}${this._renderFeaturePaginationText(this._aggregatedFeatureCount,this._selectedAggregatedFeatureIndex)}</div>`:null;return n`<calcite-flow-item .closable=${!i} .closed=${!o} .focusTrapEnabled=${this.focusTrapEnabled} class="flow-item-drill-in" .description=${S(this._getDrillInFlowItemDescription(e)??"")} .heading=${r?void 0:S(e.heading??"")} .selected=${t} @calciteFlowItemBack=${y=>{y.preventDefault(),this._handleDrillInBackClick()}} .loading=${!!this._openRelatedFeatureAbortController} @calciteFlowItemClose=${this._handleClose}>${r?null:n`<div slot=heading><div .innerHTML=${b.sanitize(e.heading??"")??""}></div></div>`}<div slot=description><div .innerHTML=${b.sanitize(this._getDrillInFlowItemDescription(e)??"")??""}></div></div><calcite-action class="action-exit" icon=move-up @click=${this._removeFlowItems} slot=header-actions-start .text=${v??""} title=${v??""??d}></calcite-action>${c?n`<calcite-action icon=zoom-to-object @click=${()=>this._openRelatedFeature(e)} slot=header-actions-end .text=${F??""} title=${F??d}></calcite-action>`:null}${x?n`<calcite-action-bar expand-toggle-disabled expanded scale=s slot=action-bar><calcite-action-group overlay-positioning=fixed scale=s><calcite-action .disabled=${this._zoomToFeature.disabled} .icon=${this._zoomToFeature.icon??void 0} .loading=${this._zoomToFeature.active} scale=s text-enabled .text=${p} title=${w??p??d} .label=${w??p} @click=${()=>K(this.viewModel,this._zoomToFeature,e)}></calcite-action></calcite-action-group></calcite-action-bar>`:null}<div class="container">${e}</div>${$}</calcite-flow-item>`}_renderContentContainer(){let e=this.flowItems?.toArray(),t=e.length>0,a=this.viewModel.aggregatedFeaturesEnabled&&this.viewModel.selectedFeature?.isAggregate&&!t,i=a&&e.length===0,s=e.length===0&&this._featureFlowItemSelected&&!a,o=e?.map((c,g)=>this._renderFlowItem(c,this._featureFlowItemSelected&&g===e.length-1)),r=this._renderBrowseAggregateContainer(!!i),l=this.initialDisplayMode==="list"?[this._renderFeatureMenuContainer(),this._renderContentFeature(s)]:[this._renderContentFeature(s),this._renderFeatureMenuContainer()];return n`<calcite-flow ${m(this._flowContainerNode)}>${l}${r}${o}</calcite-flow>`}_renderBrowseAggregateContainer(e){let{hideCloseButton:t,active:a,messages:i}=this,{selectedFeature:s}=this.viewModel,o=this.viewModel.aggregatedFeaturesEnabled&&s?.isAggregate,r=h(i.backLabel??"",{title:this._selectedFeatureHeadingText});return o?n`<calcite-flow-item .selected=${e} .closable=${!t} .closed=${!a} .focusTrapEnabled=${this.focusTrapEnabled} .description=${this._aggregatedFeatureCount?h(i.total??"",{total:this._aggregatedFeatureCount}):""} .heading=${i.aggregatedFeatures} @calciteFlowItemBack=${l=>{l.preventDefault(),this.viewModel.aggregatedFeaturesEnabled=!1}} .messageOverrides=${{back:r}} .loading=${this._aggregatedFeaturesLoading} @calciteFlowItemClose=${this._handleClose}><arcgis-aggregated-features .autoDestroyDisabled=${this.autoDestroyDisabled} .chartAnimationDisabled=${this.chartAnimationDisabled} .defaultPopupTemplateEnabled=${this.defaultPopupTemplateEnabled} .feature=${s??void 0} .flowItems=${this.flowItems} .headingLevel=${this.headingLevel+1} .hideAttachmentsContent=${this.hideAttachmentsContent} .hideContent=${this.hideContent} .hideCustomContent=${this.hideCustomContent} .hideEmptyRelationshipContent=${this.hideEmptyRelationshipContent} .hideExpressionContent=${this.hideExpressionContent} .hideFieldsContent=${this.hideFieldsContent} hide-heading .hideLastEditedInfo=${this.hideLastEditedInfo} .hideMediaContent=${this.hideMediaContent} .hideTextContent=${this.hideTextContent} .location=${this.location} .map=${this.map??void 0} .messageOverrides=${this.messageOverrides} .messages=${i} @arcgisPropertyChange=${this._handleAggregatedFeaturesPropertyChange} .showRelationshipContent=${!this.hideRelationshipContent} .showUtilityNetworkContent=${!this.hideUtilityNetworkContent} .spatialReference=${this.spatialReference??void 0} .timeZone=${this.timeZone??void 0} .view=${this.view??void 0} ${m(this._aggregatedFeaturesComponent)}></arcgis-aggregated-features><calcite-button appearance=transparent @click=${()=>this.viewModel.aggregatedFeaturesEnabled=!1} slot=footer-start scale=s width=full .label=${r} title=${r??d}>${i.back}</calcite-button></calcite-flow-item>`:null}_renderActionBar(){let e=this.viewModel.selectedFeatureItem?.isFeatureFromTable,t=this.viewModel.allActions.toArray(),a=e&&!this.location?t.filter(o=>o.id!==this._zoomToFeature.id):t,i=!!a.length||this._hasActionsStartSlotContent||this._hasActionsEndSlotContent,s=this._isCollapsed||this.hideActionBar||!i;return n`<calcite-action-bar expand-toggle-disabled .expanded=${!this._hideActionText} scale=s slot=${(s?void 0:"action-bar")??d} .hidden=${s}><slot name=actions-start @slotchange=${this._handleActionsStartSlotChange}></slot><calcite-action-group overlay-positioning=fixed scale=s ${m(this._actionBarMenuNode)}>${this._renderActions(a)}</calcite-action-group><slot name=actions-end @slotchange=${this._handleActionsEndSlotChange}></slot></calcite-action-bar>`}_renderActions(e){return e.map(t=>{let a=this._getActionTitle(t),i=this._getActionLabel(t);return n`<calcite-action .active=${t.type==="toggle"?t.value:!1} .disabled=${t.disabled} .icon=${t.icon??void 0} .loading=${t.active} scale=s .textEnabled=${!this._hideActionText} .text=${a??""} .label=${i??a} title=${i??a??d} .hidden=${!t.visible} @click=${()=>this._triggerAction(t)}></calcite-action>`})}_renderContent(){let{content:e,selectedFeatureItem:t}=this.viewModel;return t?n`<arcgis-feature-next .autoDestroyDisabled=${this.autoDestroyDisabled} .chartAnimationDisabled=${this.chartAnimationDisabled} .defaultPopupTemplateEnabled=${this.defaultPopupTemplateEnabled} .flowItems=${this.flowItems} .graphic=${t.graphic} .headingLevel=${this.headingLevel+1} .hideAttachmentsContent=${this.hideAttachmentsContent} .hideContent=${this.hideContent} .hideCustomContent=${this.hideCustomContent} .hideEmptyRelationshipContent=${this.hideEmptyRelationshipContent} .hideExpressionContent=${this.hideExpressionContent} .hideFieldsContent=${this.hideFieldsContent} hide-heading .hideLastEditedInfo=${this.hideLastEditedInfo} .hideMediaContent=${this.hideMediaContent} .hideTextContent=${this.hideTextContent} .location=${this.location} .map=${this.map} .messageOverrides=${this.messageOverrides} .referenceElement=${this.referenceElement} .showRelationshipContent=${!this.hideRelationshipContent} .showUtilityNetworkContent=${!this.hideUtilityNetworkContent} .spatialReference=${this.spatialReference} .timeZone=${this.timeZone} ${m(this._selectedFeatureComponent)}></arcgis-feature-next>`:typeof e=="string"?R(e,n`<div .innerHTML=${b.sanitize(e)??""}></div>`):e??null}};N("arcgis-features-next",L);return L},"support/actions/ActionButton","core/Collection","popup/FeatureContentCollection","applications/Components/featureUtils","applications/Components/sanitizerUtils","applications/Components/stringUtils","intl","core/reactiveUtils","graphic/getGraphicOriginTitle",a,b,c,e,g,h,i,k)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{f as p}from"./PME66FRM.js";import"./WT5SGWE4.js";import"./QUZTFUWM.js";import"./2OJYLBNC.js";import"./XURWCCLX.js";import{P as d,W as h,b as c}from"./I2BIPOZQ.js";import"./H6RQVSYM.js";export default $arcgis.t(([m,{watch:u}])=>{var w=["Auto"],k=[.25,.5,1,1.5,2],$=new m([255,127,0]);function s(n,t){return`${t.format(n)}x`}var o=class extends d{constructor(){super(...arguments),this._color=null,this._speed=1,this._quality="Auto",this._direction=p(),this._disabled=!1}static{this.properties={_disabled:16,_active:16,viewModel:0,messages:0}}loaded(){this.manager.onLifecycle(()=>[u(()=>this.viewModel.state,t=>{this._disabled=t==="not-ready"||t==="waiting"},{initial:!0})])}render(){let{viewModel:t,messages:e}=this,l=this._direction==="rtl"?"chevron-left":"chevron-right",a=new Intl.NumberFormat(this.messages._lang,{minimumFractionDigits:0,maximumFractionDigits:2}),v=c`<calcite-flow-item .heading=${e.playbackSpeed} .selected=${this._active==="speed"} @calciteFlowItemBack=${()=>this._active=void 0}><calcite-list .label=${e.playbackSpeed} selection-mode=single-persist>${k.map(i=>c`<calcite-list-item .disabled=${t?.layer?.isLive&&i!==1} .label=${s(i,a)} @click=${()=>{this._speed=i,t.changePlaybackSpeed(i)}} .selected=${i===this._speed}></calcite-list-item>`)}</calcite-list></calcite-flow-item>`,g=c`<calcite-flow-item .heading=${e.quality} .selected=${this._active==="quality"} @calciteFlowItemBack=${()=>this._active=void 0}><calcite-list .label=${e.quality} selection-mode=single-persist>${w.map(i=>c`<calcite-list-item .label=${i} @click=${()=>this._quality=i} .selected=${i===this._quality}></calcite-list-item>`)}</calcite-list></calcite-flow-item>`,_=c`<calcite-flow-item .heading=${e.loopPlayback} .selected=${this._active==="loop"} @calciteFlowItemBack=${()=>this._active=void 0}><calcite-block .label=${e.loop} expanded><calcite-switch .disabled=${t?.layer?.isLive} .label=${e.loopPlayback} .checked=${t?.layer?.loop} .labelTextStart=${e.loop} @calciteSwitchChange=${()=>{t.toggleLoopPlayback()}}></calcite-switch></calcite-block></calcite-flow-item>`,b=c`<calcite-flow-item .heading=${e.graphics} .selected=${this._active==="color"} @calciteFlowItemBack=${()=>this._active=void 0}><calcite-block .heading=${e.color} expanded><calcite-color-picker channels-disabled format=hex saved-disabled scale=s .value=${this._color?.toHex()??$.toHex()} @calciteColorPickerChange=${({currentTarget:i})=>{let r=i.value?.toString()??null;this._color=r?new m(r):null,this._color&&t.changeGraphicsColor(this._color)}}></calcite-color-picker></calcite-block></calcite-flow-item>`;return c`<div><calcite-popover auto-close .label=${e.settings} overlay-positioning=fixed placement=top-end pointer-disabled reference-element=settings-action scale=s @calcitePopoverClose=${()=>this._active=void 0}><calcite-flow><calcite-flow-item .heading=${e.settings} .selected=${!this._active}><calcite-list .label=${e.settings}><calcite-list-item .label=${e.loop} @click=${()=>this._active="loop"}><div slot=content-end><calcite-chip .label=${e.loopPlayback} .icon=${this.viewModel.layer?.loop?"recurrence":"break-recurrence"}></calcite-chip></div><calcite-icon .icon=${l} scale=s slot=content-end></calcite-icon></calcite-list-item><calcite-list-item .label=${e.speed} @click=${()=>this._active="speed"}><div slot=content-end><calcite-chip .label=${s(this._speed,a)} scale=s>${s(this._speed,a)}</calcite-chip></div><calcite-icon .icon=${l} scale=s slot=content-end></calcite-icon></calcite-list-item><calcite-list-item .label=${e.quality} @click=${()=>this._active="quality"}><div slot=content-end><calcite-chip .label=${this._quality} scale=s>${this._quality}</calcite-chip></div><calcite-icon .icon=${l} scale=s slot=content-end></calcite-icon></calcite-list-item><calcite-list-item .label=${e.graphics} @click=${()=>this._active="color"}><calcite-color-picker-swatch .color=${this._color?.toString()??$.toString()} scale=s slot=content-end></calcite-color-picker-swatch><calcite-icon .icon=${l} scale=s slot=content-end></calcite-icon></calcite-list-item></calcite-list></calcite-flow-item>${this._active==="speed"?v:null}${this._active==="quality"?g:null}${this._active==="color"?b:null}${this._active==="loop"?_:null}</calcite-flow></calcite-popover><calcite-action alignment=center .disabled=${this._disabled} icon=sliders id=settings-action scale=s slot=trigger .text=${e.settings}></calcite-action></div>`}};h("arcgis-video-player-settings",o);return o},"Color","core/reactiveUtils")
2
+ import{f as p}from"./R2XADTZ4.js";import"./FZBSTBH3.js";import"./QUZTFUWM.js";import"./4TV72DOP.js";import"./XURWCCLX.js";import{P as d,W as h,b as c}from"./I2BIPOZQ.js";import"./H6RQVSYM.js";export default $arcgis.t(([m,{watch:u}])=>{var w=["Auto"],k=[.25,.5,1,1.5,2],$=new m([255,127,0]);function s(n,t){return`${t.format(n)}x`}var o=class extends d{constructor(){super(...arguments),this._color=null,this._speed=1,this._quality="Auto",this._direction=p(),this._disabled=!1}static{this.properties={_disabled:16,_active:16,viewModel:0,messages:0}}loaded(){this.manager.onLifecycle(()=>[u(()=>this.viewModel.state,t=>{this._disabled=t==="not-ready"||t==="waiting"},{initial:!0})])}render(){let{viewModel:t,messages:e}=this,l=this._direction==="rtl"?"chevron-left":"chevron-right",a=new Intl.NumberFormat(this.messages._lang,{minimumFractionDigits:0,maximumFractionDigits:2}),v=c`<calcite-flow-item .heading=${e.playbackSpeed} .selected=${this._active==="speed"} @calciteFlowItemBack=${()=>this._active=void 0}><calcite-list .label=${e.playbackSpeed} selection-mode=single-persist>${k.map(i=>c`<calcite-list-item .disabled=${t?.layer?.isLive&&i!==1} .label=${s(i,a)} @click=${()=>{this._speed=i,t.changePlaybackSpeed(i)}} .selected=${i===this._speed}></calcite-list-item>`)}</calcite-list></calcite-flow-item>`,g=c`<calcite-flow-item .heading=${e.quality} .selected=${this._active==="quality"} @calciteFlowItemBack=${()=>this._active=void 0}><calcite-list .label=${e.quality} selection-mode=single-persist>${w.map(i=>c`<calcite-list-item .label=${i} @click=${()=>this._quality=i} .selected=${i===this._quality}></calcite-list-item>`)}</calcite-list></calcite-flow-item>`,_=c`<calcite-flow-item .heading=${e.loopPlayback} .selected=${this._active==="loop"} @calciteFlowItemBack=${()=>this._active=void 0}><calcite-block .label=${e.loop} expanded><calcite-switch .disabled=${t?.layer?.isLive} .label=${e.loopPlayback} .checked=${t?.layer?.loop} .labelTextStart=${e.loop} @calciteSwitchChange=${()=>{t.toggleLoopPlayback()}}></calcite-switch></calcite-block></calcite-flow-item>`,b=c`<calcite-flow-item .heading=${e.graphics} .selected=${this._active==="color"} @calciteFlowItemBack=${()=>this._active=void 0}><calcite-block .heading=${e.color} expanded><calcite-color-picker channels-disabled format=hex saved-disabled scale=s .value=${this._color?.toHex()??$.toHex()} @calciteColorPickerChange=${({currentTarget:i})=>{let r=i.value?.toString()??null;this._color=r?new m(r):null,this._color&&t.changeGraphicsColor(this._color)}}></calcite-color-picker></calcite-block></calcite-flow-item>`;return c`<div><calcite-popover auto-close .label=${e.settings} overlay-positioning=fixed placement=top-end pointer-disabled reference-element=settings-action scale=s @calcitePopoverClose=${()=>this._active=void 0}><calcite-flow><calcite-flow-item .heading=${e.settings} .selected=${!this._active}><calcite-list .label=${e.settings}><calcite-list-item .label=${e.loop} @click=${()=>this._active="loop"}><div slot=content-end><calcite-chip .label=${e.loopPlayback} .icon=${this.viewModel.layer?.loop?"recurrence":"break-recurrence"}></calcite-chip></div><calcite-icon .icon=${l} scale=s slot=content-end></calcite-icon></calcite-list-item><calcite-list-item .label=${e.speed} @click=${()=>this._active="speed"}><div slot=content-end><calcite-chip .label=${s(this._speed,a)} scale=s>${s(this._speed,a)}</calcite-chip></div><calcite-icon .icon=${l} scale=s slot=content-end></calcite-icon></calcite-list-item><calcite-list-item .label=${e.quality} @click=${()=>this._active="quality"}><div slot=content-end><calcite-chip .label=${this._quality} scale=s>${this._quality}</calcite-chip></div><calcite-icon .icon=${l} scale=s slot=content-end></calcite-icon></calcite-list-item><calcite-list-item .label=${e.graphics} @click=${()=>this._active="color"}><calcite-color-picker-swatch .color=${this._color?.toString()??$.toString()} scale=s slot=content-end></calcite-color-picker-swatch><calcite-icon .icon=${l} scale=s slot=content-end></calcite-icon></calcite-list-item></calcite-list></calcite-flow-item>${this._active==="speed"?v:null}${this._active==="quality"?g:null}${this._active==="color"?b:null}${this._active==="loop"?_:null}</calcite-flow></calcite-popover><calcite-action alignment=center .disabled=${this._disabled} icon=sliders id=settings-action scale=s slot=trigger .text=${e.settings}></calcite-action></div>`}};h("arcgis-video-player-settings",o);return o},"Color","core/reactiveUtils")
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import t from"./TO2AHJ2D.js";import"./UP52QGP6.js";import{a as Q}from"./JCRPP54Z.js";import s from"./X5EYPVUR.js";import o from"./AQTSDDVK.js";import n from"./QGB7AGII.js";import{a as S,b as U,g as G,h as v,j as H,k as q,m as c,n as $}from"./FCNNRX3Q.js";import{a as N}from"./TXYWZMGM.js";import{a as m}from"./SSNCB7LI.js";import l from"./Z2NU3RGI.js";import j from"./TMJX7DFH.js";import i from"./QZ5LJH35.js";import"./VJVKFKSG.js";import h from"./5TZGXGC2.js";import{a as O}from"./O3V63YCY.js";import{a as L}from"./JD74LG7K.js";import{a as k}from"./2ZIKXQT2.js";import f from"./HZWFDJFV.js";import e from"./YSWNUR6Q.js";import b from"./QRXQ5LVY.js";import{h as B}from"./PME66FRM.js";import"./WT5SGWE4.js";import a from"./D7FCBWGA.js";import"./QUZTFUWM.js";import{b as P}from"./2OJYLBNC.js";import"./XURWCCLX.js";import{B as M,N as d,O as g,P as R,R as p,T as _,U as w,W as A,a as C,b as r,x as y}from"./I2BIPOZQ.js";import"./H6RQVSYM.js";export default $arcgis.t(([se,b,{on:ae,watch:le},,,,D,x,,,,,{k:j},,{a:z,b:J,c:K}])=>{var u={...Q,section:"section",editing:"editing",editingForm:"editing-form"},re=C`:host{--arcgis-layer-list-visibility-icon: hidden}.editing-form{display:flex;height:100%;flex:1}.editing{padding-block:var(--calcite-spacing-sm);padding-inline:var(--calcite-spacing-sm)}`,V="nested",oe=".*\\S+.*",W="data-basemap-layer-type",ne=x(se),F=class extends R{constructor(){super(...arguments),this._baseListRef=d(),this._referenceListRef=d(),this._editTitleInputRef=d(),this._layerFlowItemRef=d(),this._panelFlowItemRef=d(),this._rootFlowItemRef=d(),this._editingFlowItemRef=d(),this._lastDragDetail=null,this._selectedDragItemLayerUid=null,this._rootGroupUid=`basemap-${M()}`,this._openedLayersController=null,this._focusRootFlowItem=!1,this._focusPanelFlowItem=!1,this._focusLayerFlowItem=null,this._focusEditingFlowItem=!1,this.messages=O(),this.viewModel=ne(this),this.arcgisClose=k(this),this._canMove=({dragEl:e,fromEl:t,toEl:i},s)=>{let a=s==="pull"?this.listItemCanGiveFunction:this.listItemCanReceiveFunction,o=c(e,this._allItems);if(!o?.sortable)return!1;let l=c(t,this._allItems),n=$(t),h=c(i,this._allItems),f=$(i),I=!!n&&!!f&&n===f,Y={selected:o,from:l,to:h},Z=t.group,ee=i.group,te=l?.layer?.type??"",ie=h?.layer?.type??"",T=new Set(["map-image","catalog","knowledge-graph"]);return Z&&ee&&typeof a=="function"?a(Y):I&&!T.has(te)&&!T.has(ie)&&o.layer?.type!=="sublayer"},this._onTriggerAction=(e,t)=>{this.triggerAction(e,t)},this._onTooltipReferenceChange=(e,t)=>{t?this._tooltipReferenceMap.set(e,t):this._tooltipReferenceMap.delete(e)},this._onTablesOpen=e=>{this.openedLayers.push(e.layer),this._focusLayerFlowItem=e.layer?.uid??null},this._onCatalogOpen=e=>{this.openedLayers.push(e.layer?.parent),this._focusLayerFlowItem=e.layer?.uid??null},this._onPanelOpen=()=>{this._focusPanelFlowItem=!0},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(i=>i.classList?.contains(u.item));this._activeItem=c(t,this._allItems)??null},this._onSelectedDragItemLayerUidChange=e=>{this._selectedDragItemLayerUid=e},this._toggleEditingTitle=()=>{let e=!this.editingTitle;this.editingTitle=e,e?this._focusEditingFlowItem=!0:this._focusRootFlowItem=!0},this._formSubmit=e=>{e.preventDefault();let t=this._editTitleInputRef.value?.value;t?.trim()&&(this.basemapTitle=t),this._toggleEditingTitle()},this._activeItem=null,this._tooltipReferenceMap=new Map,this._layerListMap=new Map,this.openedLayerLists=new b,this.autoDestroyDisabled=!1,this.baseFilterText="",this.baseItemCreatedFunction=this.viewModel.baseItemCreatedFunction,this.basemapTitle=this.viewModel.basemapTitle,this.closed=!1,this.collapsed=!1,this.dragEnabled=!1,this.editingTitle=!1,this.filterPlaceholder="",this.headingLevel=2,this.hideBaseLayers=!1,this.hideCatalogLayerList=!1,this.hideHeading=!1,this.hideNoFilterResultsNotice=!1,this.hideNoItemsNotice=!1,this.hideReferenceLayers=!1,this.hideStatusIndicators=!1,this.icon="layers",this.layerTablesEnabled=new b(["knowledge-graph"]),this.listModeDisabled=this.viewModel.listModeDisabled,this.minFilterItems=U,this.openedLayers=new b,this.referenceFilterText="",this.referenceItemCreatedFunction=this.viewModel.referenceItemCreatedFunction,this.selectedItems=new b,this.selectionMode="none",this.showCloseButton=!1,this.showCollapseButton=!1,this.showEditTitleButton=!1,this.showErrors=!1,this.showFilter=!1,this.showTemporaryLayerIndicators=!1,this.state=this.viewModel.state,this.view=this.viewModel.view,this.visibilityAppearance="default",this.arcgisBaseFilterChange=y(),this.arcgisOpenedLayersChange=y(),this.arcgisPropertyChange=B()("state"),this.arcgisReady=y(),this.arcgisReferenceFilterChange=y(),this.arcgisTriggerAction=D(()=>this.viewModel,"trigger-action")}static{this.properties={_activeItem:16,_catalogLayerList:16,_tableList:16,_tooltipReferenceMap:16,_layerListMap:16,openedLayerLists:16,_allItems:16,_visibleBaseItems:16,_visibleReferenceItems:16,_openedPanelItems:16,_totalBaseItems:16,_totalReferenceItems:16,_baseFilterEnabled:16,_referenceFilterEnabled:16,_renderedOpenLayerFlowItems:16,autoDestroyDisabled:5,baseFilterPredicate:0,baseFilterText:1,baseItemCreatedFunction:0,baseItems:32,basemapTitle:1,catalogLayerList:32,catalogOptions:0,closed:5,collapsed:7,dragEnabled:5,editingTitle:5,filterPlaceholder:1,headingLevel:9,hideBaseLayers:5,hideCatalogLayerList:5,hideHeading:5,hideNoFilterResultsNotice:5,hideNoItemsNotice:5,hideReferenceLayers:5,hideStatusIndicators:5,icon:1,knowledgeGraphOptions:0,label:1,layerTablesEnabled:0,listItemCanGiveFunction:0,listItemCanReceiveFunction:0,listModeDisabled:5,mapImageOptions:0,messageOverrides:0,minFilterItems:9,openedLayers:32,referenceElement:1,referenceFilterPredicate:0,referenceFilterText:1,referenceItems:32,referenceItemCreatedFunction:0,selectedItems:0,selectionMode:1,showCloseButton:5,showCollapseButton:5,showEditTitleButton:5,showErrors:5,showFilter:5,showTemporaryLayerIndicators:5,state:32,tableList:32,tileOptions:0,view:0,visibilityAppearance:1}}static{this.styles=[K,re,J]}get _allItems(){return this.referenceItems.concat(this.baseItems)}get _visibleBaseItems(){return this.baseItems.filter(e=>!e.hidden&&(this.showErrors||!e.error))}get _visibleReferenceItems(){return this.referenceItems.filter(e=>!e.hidden&&(this.showErrors||!e.error))}get _openedPanelItems(){return this._visibleReferenceItems.concat(this._visibleBaseItems).flatten(e=>e.children).filter(({hidden:e,panel:t})=>!e&&t?.open&&!t.disabled&&t.flowEnabled)}get _totalBaseItems(){return this.viewModel.baseItems.flatten(e=>e.children.filter(t=>t.layer?.type!=="catalog-dynamic-group")).length}get _totalReferenceItems(){return this.viewModel.referenceItems.flatten(e=>e.children.filter(t=>t.layer?.type!=="catalog-dynamic-group")).length}get _baseFilterEnabled(){return this._totalBaseItems>=this.minFilterItems&&this.showFilter}get _referenceFilterEnabled(){return this._totalReferenceItems>=this.minFilterItems&&this.showFilter}get _renderedOpenLayerFlowItems(){return this.openedLayers.toArray().map((e,t)=>this._renderLayerFlowItem(e,t===this.openedLayers.length-1))}get baseItems(){return this.viewModel.baseItems}get catalogLayerList(){return this._catalogLayerList}get referenceItems(){return this.viewModel.referenceItems}get tableList(){return this._tableList}async destroy(){await this.manager.destroy(),this._destroyOpenedLayerLists(),this._tooltipReferenceMap.clear()}loaded(){this.manager.onLifecycle(()=>[ae(()=>this.openedLayers,"change",()=>{this._handleOpenedLayersChange()},{initial:!0}),le(()=>[this.viewModel.referenceItems.toArray(),this.viewModel.baseItems.toArray()],()=>G(this.selectedItems),{initial:!0})])}updated(){v(this._baseListRef.value,this.baseFilterPredicate,this.baseItems),v(this._referenceListRef.value,this.referenceFilterPredicate,this.referenceItems)}triggerAction(e,t){this.viewModel.triggerAction(e,t)}async _createFlowList(e,t){let i=this._layerListMap.get(e);if(i)return i;let s=e.type==="catalog"?await this._createCatalogLayerList(e):await this._createTableList(e);return t.aborted||this._layerListMap.set(e,s),s}async _handleOpenedLayersChange(){let{_layerListMap:e,openedLayers:t,openedLayerLists:i}=this;this._openedLayersController?.abort();let s=new AbortController,{signal:a}=s;this._openedLayersController=s,e.forEach((n,h)=>{t.includes(h)||(n?.destroy?.(),e.delete(h))});let o=await Promise.all(t.map(n=>this._createFlowList(n,a)));if(a.aborted)return;i.removeAll(),i.addMany(o);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:s,minFilterItems:a,selectionMode:o,visibilityAppearance:l,layerTablesEnabled:n}=this;return w(r`<arcgis-catalog-layer-list-next .headingLevel=${t} .filterPlaceholder=${i?.filterPlaceholder??s} .listItemCreatedFunction=${i?.listItemCreatedFunction} .minFilterItems=${i?.minFilterItems??a} .selectionMode=${i?.selectionMode??o} .visibilityAppearance=${i?.visibilityAppearance??l} .showErrors=${i?.showErrors??this.showErrors} .showFilter=${i?.showFilter??this.showFilter} .hideStatusIndicators=${i?.hideStatusIndicators??this.hideStatusIndicators} .showTemporaryLayerIndicators=${i?.showTemporaryLayerIndicators??this.showTemporaryLayerIndicators} @arcgisReady=${h=>h.stopPropagation()} .catalogLayer=${e} .layerTablesEnabled=${n} .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 t=this._getTableListParams(e);return w(r`<arcgis-table-list-next .headingLevel=${t?.headingLevel??this.headingLevel} .selectionMode=${t?.selectionMode??this.selectionMode} .dragEnabled=${t?.dragEnabled??this.dragEnabled} .collapsed=${t?.collapsed} .filterPlaceholder=${t?.filterPlaceholder} .filterText=${t?.filterText} .icon=${t?.icon??void 0} .label=${t?.label??void 0} .listItemCreatedFunction=${t?.listItemCreatedFunction} .tables=${t?.tables} .referenceElement=${this.referenceElement} @arcgisReady=${i=>i.stopPropagation()}></arcgis-table-list-next>`)}_handlePanelFlowItemBack(e){e.open=!1,this._focusRootFlowItem=!0}_moveLayerFromChildList({toEl:e,fromEl:t,dragEl:i,newIndex:s}){let a=c(i,this._allItems),o=e.hasAttribute("data-item")?c(e,this._allItems):null,l=t.hasAttribute("data-item")?c(t,this._allItems):null,n=X(t),h=X(e);s==null||!a||!n||!h||(this.viewModel.moveItem({targetItem:a,fromParentItem:l,toParentItem:o,newIndex:s,from:n,to:h}),j(this,a.uid,f=>f.parentElement?.closest("calcite-list")===e))}_handleCalciteListDragEnd(e){let{fromEl:t,toEl:i,dragEl:s,oldIndex:a}=e;if(t!==i){s.remove();return}a==null||!t||!s||t.insertBefore(s,t.children[a])}_onCalciteListOrderChange(e){let{_lastDragDetail:t}=this,{toEl:i,fromEl:s,dragEl:a,newIndex:o}=e,l=t?.newIndex===o&&t?.dragEl===a&&t?.toEl===i&&t?.fromEl===s;if(!s||!i||l)return;this._lastDragDetail=e,this._selectedDragItemLayerUid=a.value.layer?.uid??null;let n=s,h=i;if(n===h){let f=Array.from(s.children).filter(I=>I?.matches("calcite-list-item")).map(I=>I.value.layer?.uid??"");this._sortLayers(n,f);return}this._moveLayerFromChildList({toEl:h,fromEl:n,dragEl:a,newIndex:o})}_sortLayers(e,t){if(e===this._referenceListRef.value||e===this._baseListRef.value){let s=e===this._baseListRef.value?this.view?.map?.basemap?.baseLayers:this.view?.map?.basemap?.referenceLayers;H(s,t);return}let i=c(e,this._allItems);i&&q(i,t)}_handleCalciteListChange(e){if(this.selectionMode==="none")return;let t=e.target.selectedItems.map(i=>c(i,this._allItems)).filter(Boolean);this.selectedItems.removeAll(),this.selectedItems.addMany(t)}_focusFlowItem(e,t){return!t||!e?t:(e.setFocus(),!1)}render(){let e={[L.hidden]:this.state==="loading",[L.disabled]:this.state==="disabled"};return r`<div class=${p(P(L.widget,L.panel,e))}>${this._renderItems()}${this._renderItemTooltips()}</div>`}_renderItemTooltip(e){return e?r`<calcite-tooltip overlay-positioning=fixed .referenceElement=${this._tooltipReferenceMap.get(e.layer?.uid??"")}>${this.messages.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._visibleReferenceItems.concat(this._visibleBaseItems).toArray().map(e=>this._renderItemTooltipNodes(e))}_renderNoLayersInfoMessage(e){return r`<div slot=message>${e}</div>`}_renderNoLayersInfo(e,t){return this.hideNoItemsNotice?null:r`<div class=${p(u.itemMessage)}>${m(t,r`<calcite-notice icon=information kind=info open width=full>${this._renderNoLayersInfoMessage(e)}</calcite-notice>`)}</div>`}_renderEditingInput(){return r`<div class=${p(u.editing)}><calcite-label>${this.messages.basemapTitle}<calcite-input .label=${this.messages.basemapTitle} name=basemaptitle .pattern=${oe} .placeholder=${this.messages.basemapTitle} required title=${this.messages.basemapTitle??_} type=text .value=${this.viewModel.basemapTitle??void 0} ${g(this._editTitleInputRef)}></calcite-input></calcite-label></div>`}_renderEditingForm(){return this.editingTitle?r`<calcite-flow-item .heading=${this.hideHeading?void 0:this.messages.basemapTitle} .headingLevel=${this.headingLevel} .selected=${!this.openedLayers.length&&!this._openedPanelItems.length} @calciteFlowItemBack=${e=>{e.preventDefault(),this._toggleEditingTitle()}} ${g(this._editingFlowItemRef)}>${this._renderEditingInput()}<calcite-button appearance=outline @click=${this._toggleEditingTitle} slot=footer-actions width=full>${this.messages.cancel}</calcite-button><calcite-button slot=footer-actions type=submit width=full>${this.messages.ok}</calcite-button></calcite-flow-item>`:null}_renderEditTitleButton(){return this.showEditTitleButton&&!this.editingTitle?r`<calcite-action icon=pencil @click=${this._toggleEditingTitle} slot=header-actions-end .text=${this.messages.edit??""} title=${this.messages.edit??_}></calcite-action>`:null}_renderItems(){let e=[m("root-flow-item",r`<calcite-flow-item .closable=${this.showCloseButton} .closed=${this.closed} .collapsed=${this.collapsed} .collapsible=${this.showCollapseButton} .heading=${this.hideHeading?void 0:this.viewModel.basemapTitle??this.messages.componentLabel} .headingLevel=${this.headingLevel} .selected=${!this.editingTitle&&!this.openedLayers.length&&!this._openedPanelItems.length} @calciteFlowItemClose=${()=>{this.closed=!0}} ${g(this._rootFlowItemRef)}>${this._renderEditTitleButton()}${this._renderReferenceSection()}${this._renderBaseSection()}</calcite-flow-item>`),this._renderEditingForm(),this._renderPanelFlowItems(),this._renderedOpenLayerFlowItems];this._focusRootFlowItem=this._focusFlowItem(this._rootFlowItemRef.value,this._focusRootFlowItem),this._focusEditingFlowItem=this._focusFlowItem(this._editingFlowItemRef.value,this._focusEditingFlowItem);let t=m("root-flow",r`<calcite-flow>${e}</calcite-flow>`);return this.closed?null:this.editingTitle?r`<form class=${p(u.editingForm)} @submit=${this._formSubmit}>${t}</form>`:t}_renderPanelFlowItems(){return N(this._openedPanelItems.toArray(),e=>e.uid,(e,t)=>{let{panel:i,title:s}=e,a=()=>this._handlePanelFlowItemBack(i);return this._focusPanelFlowItem=this._focusFlowItem(this._panelFlowItemRef.value,this._focusPanelFlowItem),r`<calcite-flow-item .description=${s} .heading=${i.title} .headingLevel=${this.headingLevel} .selected=${!this.openedLayers.length&&t===this._openedPanelItems.length-1} @calciteFlowItemBack=${o=>{o.preventDefault(),a()}} ${g(this._panelFlowItemRef)}><arcgis-layer-list-item-panel .item=${e} .view=${this.view}></arcgis-layer-list-item-panel><calcite-button appearance=transparent @click=${a} slot=footer-actions width=full>${this.messages.back}</calcite-button></calcite-flow-item>`})}_renderLayerFlowItem(e,t){let i=e.title||this.messages.untitledLayer;return this._focusLayerFlowItem===e.uid&&(this._focusLayerFlowItem=this._focusFlowItem(this._layerFlowItemRef.value,!0)?e.uid:null),m(e.uid,r`<calcite-flow-item data-layer-uid=${e.uid??_} .description=${i} .heading=${this.messages[e.type==="catalog"?"catalogLayers":"tables"]} .headingLevel=${this.headingLevel} .selected=${t} @calciteFlowItemBack=${s=>{s.preventDefault(),this.openedLayers.pop();let a=this.openedLayers.at(-1);a?this._focusLayerFlowItem=a.uid:this._focusRootFlowItem=!0}} ${g(this._layerFlowItemRef)}>${this._layerListMap.get(e)}</calcite-flow-item>`)}_renderList(e,t,i){let s=t==="reference"?this._referenceFilterEnabled:this._baseFilterEnabled,a=t==="reference"?this.referenceFilterText:this.baseFilterText,o=(t==="reference"?this.messages.noReferenceLayers:this.messages.noBaseLayers)??this.messages.noItemsToDisplay??"";return m(`block-${t}`,r`<calcite-block class=${p(u.section)} expandable expanded .heading=${t==="reference"?this.messages.referenceHeading:this.messages.baseHeading} .headingLevel=${this.headingLevel+1}>${e?.length?null:this._renderNoLayersInfo(o,t)}${m(`list-${t}`,r`<calcite-list @focusin=${this._setActiveItem} @focusout=${this._clearActiveItem} .canPull=${l=>this._canMove(l,"pull")} .canPut=${l=>this._canMove(l,"put")} data-basemap-layer-type=${t??_} data-layer-type=${this._rootGroupUid??_} .displayMode=${V} .dragEnabled=${this.dragEnabled} .filterEnabled=${s} .filterPlaceholder=${this.filterPlaceholder} .filterProps=${S} .filterText=${s?a:""} .group=${this._rootGroupUid} .label=${this.messages.componentLabel??""} @mouseleave=${this._clearActiveItem} @mouseover=${this._setActiveItem} selection-appearance=border .selectionMode=${this.selectionMode} @calciteListChange=${this._handleCalciteListChange} @calciteListDragEnd=${l=>this._handleCalciteListDragEnd(l.detail)} @calciteListFilter=${l=>{let n=l.currentTarget?.filterText??"";this[t==="reference"?"referenceFilterText":"baseFilterText"]=n,t==="base"?this.arcgisBaseFilterChange.emit():this.arcgisReferenceFilterChange.emit()}} @calciteListOrderChange=${l=>this._onCalciteListOrderChange(l.detail)} ${g(t==="reference"?this._referenceListRef:this._baseListRef)}>${e?.toArray().map(l=>this._renderItem(l,i))}${s&&!this.hideNoFilterResultsNotice?r`<div class=${p(u.filterNoResults)} slot=filter-no-results><calcite-notice kind=info open width=full>${this._renderNoLayersInfoMessage(o)}</calcite-notice></div>`:null}</calcite-list>`)}</calcite-block>`)}_renderBaseSection(){return this.hideBaseLayers?null:this._renderList(this._visibleBaseItems,"base",this._visibleBaseItems.length===1)}_renderReferenceSection(){return this.hideReferenceLayers?null:this._renderList(this._visibleReferenceItems,"reference",!1)}_renderItem(e,t,i,s){return m(e.uid,z({activeItem:this._activeItem,canMove:this._canMove,css:u,displayMode:V,dragEnabled:this.dragEnabled&&!t,hideCatalogLayerList:this.hideCatalogLayerList,hideStatusIndicators:this.hideStatusIndicators,item:e,layerTablesEnabled:this.layerTablesEnabled,listModeDisabled:this.viewModel.listModeDisabled,messages:this.messages,operationalItems:this._allItems,parent:i,parentTitles:s,rootGroupUid:this._rootGroupUid,selectedDragItemLayerUid:this._selectedDragItemLayerUid,selectedItems:this.selectedItems,selectionMode:this.selectionMode,setCurrentActiveItem:this._setCurrentActiveItem,clearActiveItem:this._clearActiveItem,showErrors:this.showErrors,showTemporaryLayerIndicators:this.showTemporaryLayerIndicators,visibilityAppearance:this.visibilityAppearance,handleAction:this._onTriggerAction,handleCatalogOpen:this._onCatalogOpen,handlePanelOpen:this._onPanelOpen,handleSelectedDragItemLayerUidChange:this._onSelectedDragItemLayerUidChange,handleTablesOpen:this._onTablesOpen,handleTooltipReferenceChange:this._onTooltipReferenceChange,view:this.view}))}};function X(E){let e=E.closest(`[${W}]`)?.getAttribute(W);return e==="base"||e==="reference"?e:null}A("arcgis-basemap-layer-list-next",F);return F},"layers/list/BasemapItemCollection","core/Collection","core/reactiveUtils",a,b,e,f,h,i,j,l,n,o,s,t)
2
+ import t from"./XHF3WRCS.js";import"./2X677DFU.js";import{a as Q}from"./JCRPP54Z.js";import s from"./VLDII7DK.js";import o from"./FUQUIU52.js";import n from"./CZPZHMHT.js";import{a as S,b as U,g as G,h as v,j as H,k as q,m as c,n as $}from"./FCNNRX3Q.js";import{a as N}from"./TXYWZMGM.js";import{a as m}from"./SSNCB7LI.js";import l from"./R26ZJOWO.js";import j from"./TMJX7DFH.js";import i from"./QZ5LJH35.js";import"./VJVKFKSG.js";import h from"./CBB2T3RI.js";import{a as O}from"./OHCCNZCY.js";import{a as L}from"./JD74LG7K.js";import{a as k}from"./2CLE72G4.js";import f from"./G37JKMBJ.js";import e from"./75OH7AOP.js";import b from"./CODEI67F.js";import{h as B}from"./R2XADTZ4.js";import"./FZBSTBH3.js";import a from"./7XCYURYF.js";import"./QUZTFUWM.js";import{b as P}from"./4TV72DOP.js";import"./XURWCCLX.js";import{B as M,N as d,O as g,P as R,R as p,T as _,U as w,W as A,a as C,b as r,x as y}from"./I2BIPOZQ.js";import"./H6RQVSYM.js";export default $arcgis.t(([se,b,{on:ae,watch:le},,,,D,x,,,,,{k:j},,{a:z,b:J,c:K}])=>{var u={...Q,section:"section",editing:"editing",editingForm:"editing-form"},re=C`:host{--arcgis-layer-list-visibility-icon: hidden}.editing-form{display:flex;height:100%;flex:1}.editing{padding-block:var(--calcite-spacing-sm);padding-inline:var(--calcite-spacing-sm)}`,V="nested",oe=".*\\S+.*",W="data-basemap-layer-type",ne=x(se),F=class extends R{constructor(){super(...arguments),this._baseListRef=d(),this._referenceListRef=d(),this._editTitleInputRef=d(),this._layerFlowItemRef=d(),this._panelFlowItemRef=d(),this._rootFlowItemRef=d(),this._editingFlowItemRef=d(),this._lastDragDetail=null,this._selectedDragItemLayerUid=null,this._rootGroupUid=`basemap-${M()}`,this._openedLayersController=null,this._focusRootFlowItem=!1,this._focusPanelFlowItem=!1,this._focusLayerFlowItem=null,this._focusEditingFlowItem=!1,this.messages=O(),this.viewModel=ne(this),this.arcgisClose=k(this),this._canMove=({dragEl:e,fromEl:t,toEl:i},s)=>{let a=s==="pull"?this.listItemCanGiveFunction:this.listItemCanReceiveFunction,o=c(e,this._allItems);if(!o?.sortable)return!1;let l=c(t,this._allItems),n=$(t),h=c(i,this._allItems),f=$(i),I=!!n&&!!f&&n===f,Y={selected:o,from:l,to:h},Z=t.group,ee=i.group,te=l?.layer?.type??"",ie=h?.layer?.type??"",T=new Set(["map-image","catalog","knowledge-graph"]);return Z&&ee&&typeof a=="function"?a(Y):I&&!T.has(te)&&!T.has(ie)&&o.layer?.type!=="sublayer"},this._onTriggerAction=(e,t)=>{this.triggerAction(e,t)},this._onTooltipReferenceChange=(e,t)=>{t?this._tooltipReferenceMap.set(e,t):this._tooltipReferenceMap.delete(e)},this._onTablesOpen=e=>{this.openedLayers.push(e.layer),this._focusLayerFlowItem=e.layer?.uid??null},this._onCatalogOpen=e=>{this.openedLayers.push(e.layer?.parent),this._focusLayerFlowItem=e.layer?.uid??null},this._onPanelOpen=()=>{this._focusPanelFlowItem=!0},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(i=>i.classList?.contains(u.item));this._activeItem=c(t,this._allItems)??null},this._onSelectedDragItemLayerUidChange=e=>{this._selectedDragItemLayerUid=e},this._toggleEditingTitle=()=>{let e=!this.editingTitle;this.editingTitle=e,e?this._focusEditingFlowItem=!0:this._focusRootFlowItem=!0},this._formSubmit=e=>{e.preventDefault();let t=this._editTitleInputRef.value?.value;t?.trim()&&(this.basemapTitle=t),this._toggleEditingTitle()},this._activeItem=null,this._tooltipReferenceMap=new Map,this._layerListMap=new Map,this.openedLayerLists=new b,this.autoDestroyDisabled=!1,this.baseFilterText="",this.baseItemCreatedFunction=this.viewModel.baseItemCreatedFunction,this.basemapTitle=this.viewModel.basemapTitle,this.closed=!1,this.collapsed=!1,this.dragEnabled=!1,this.editingTitle=!1,this.filterPlaceholder="",this.headingLevel=2,this.hideBaseLayers=!1,this.hideCatalogLayerList=!1,this.hideHeading=!1,this.hideNoFilterResultsNotice=!1,this.hideNoItemsNotice=!1,this.hideReferenceLayers=!1,this.hideStatusIndicators=!1,this.icon="layers",this.layerTablesEnabled=new b(["knowledge-graph"]),this.listModeDisabled=this.viewModel.listModeDisabled,this.minFilterItems=U,this.openedLayers=new b,this.referenceFilterText="",this.referenceItemCreatedFunction=this.viewModel.referenceItemCreatedFunction,this.selectedItems=new b,this.selectionMode="none",this.showCloseButton=!1,this.showCollapseButton=!1,this.showEditTitleButton=!1,this.showErrors=!1,this.showFilter=!1,this.showTemporaryLayerIndicators=!1,this.state=this.viewModel.state,this.view=this.viewModel.view,this.visibilityAppearance="default",this.arcgisBaseFilterChange=y(),this.arcgisOpenedLayersChange=y(),this.arcgisPropertyChange=B()("state"),this.arcgisReady=y(),this.arcgisReferenceFilterChange=y(),this.arcgisTriggerAction=D(()=>this.viewModel,"trigger-action")}static{this.properties={_activeItem:16,_catalogLayerList:16,_tableList:16,_tooltipReferenceMap:16,_layerListMap:16,openedLayerLists:16,_allItems:16,_visibleBaseItems:16,_visibleReferenceItems:16,_openedPanelItems:16,_totalBaseItems:16,_totalReferenceItems:16,_baseFilterEnabled:16,_referenceFilterEnabled:16,_renderedOpenLayerFlowItems:16,autoDestroyDisabled:5,baseFilterPredicate:0,baseFilterText:1,baseItemCreatedFunction:0,baseItems:32,basemapTitle:1,catalogLayerList:32,catalogOptions:0,closed:5,collapsed:7,dragEnabled:5,editingTitle:5,filterPlaceholder:1,headingLevel:9,hideBaseLayers:5,hideCatalogLayerList:5,hideHeading:5,hideNoFilterResultsNotice:5,hideNoItemsNotice:5,hideReferenceLayers:5,hideStatusIndicators:5,icon:1,knowledgeGraphOptions:0,label:1,layerTablesEnabled:0,listItemCanGiveFunction:0,listItemCanReceiveFunction:0,listModeDisabled:5,mapImageOptions:0,messageOverrides:0,minFilterItems:9,openedLayers:32,referenceElement:1,referenceFilterPredicate:0,referenceFilterText:1,referenceItems:32,referenceItemCreatedFunction:0,selectedItems:0,selectionMode:1,showCloseButton:5,showCollapseButton:5,showEditTitleButton:5,showErrors:5,showFilter:5,showTemporaryLayerIndicators:5,state:32,tableList:32,tileOptions:0,view:0,visibilityAppearance:1}}static{this.styles=[K,re,J]}get _allItems(){return this.referenceItems.concat(this.baseItems)}get _visibleBaseItems(){return this.baseItems.filter(e=>!e.hidden&&(this.showErrors||!e.error))}get _visibleReferenceItems(){return this.referenceItems.filter(e=>!e.hidden&&(this.showErrors||!e.error))}get _openedPanelItems(){return this._visibleReferenceItems.concat(this._visibleBaseItems).flatten(e=>e.children).filter(({hidden:e,panel:t})=>!e&&t?.open&&!t.disabled&&t.flowEnabled)}get _totalBaseItems(){return this.viewModel.baseItems.flatten(e=>e.children.filter(t=>t.layer?.type!=="catalog-dynamic-group")).length}get _totalReferenceItems(){return this.viewModel.referenceItems.flatten(e=>e.children.filter(t=>t.layer?.type!=="catalog-dynamic-group")).length}get _baseFilterEnabled(){return this._totalBaseItems>=this.minFilterItems&&this.showFilter}get _referenceFilterEnabled(){return this._totalReferenceItems>=this.minFilterItems&&this.showFilter}get _renderedOpenLayerFlowItems(){return this.openedLayers.toArray().map((e,t)=>this._renderLayerFlowItem(e,t===this.openedLayers.length-1))}get baseItems(){return this.viewModel.baseItems}get catalogLayerList(){return this._catalogLayerList}get referenceItems(){return this.viewModel.referenceItems}get tableList(){return this._tableList}async destroy(){await this.manager.destroy(),this._destroyOpenedLayerLists(),this._tooltipReferenceMap.clear()}loaded(){this.manager.onLifecycle(()=>[ae(()=>this.openedLayers,"change",()=>{this._handleOpenedLayersChange()},{initial:!0}),le(()=>[this.viewModel.referenceItems.toArray(),this.viewModel.baseItems.toArray()],()=>G(this.selectedItems),{initial:!0})])}updated(){v(this._baseListRef.value,this.baseFilterPredicate,this.baseItems),v(this._referenceListRef.value,this.referenceFilterPredicate,this.referenceItems)}triggerAction(e,t){this.viewModel.triggerAction(e,t)}async _createFlowList(e,t){let i=this._layerListMap.get(e);if(i)return i;let s=e.type==="catalog"?await this._createCatalogLayerList(e):await this._createTableList(e);return t.aborted||this._layerListMap.set(e,s),s}async _handleOpenedLayersChange(){let{_layerListMap:e,openedLayers:t,openedLayerLists:i}=this;this._openedLayersController?.abort();let s=new AbortController,{signal:a}=s;this._openedLayersController=s,e.forEach((n,h)=>{t.includes(h)||(n?.destroy?.(),e.delete(h))});let o=await Promise.all(t.map(n=>this._createFlowList(n,a)));if(a.aborted)return;i.removeAll(),i.addMany(o);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:s,minFilterItems:a,selectionMode:o,visibilityAppearance:l,layerTablesEnabled:n}=this;return w(r`<arcgis-catalog-layer-list-next .headingLevel=${t} .filterPlaceholder=${i?.filterPlaceholder??s} .listItemCreatedFunction=${i?.listItemCreatedFunction} .minFilterItems=${i?.minFilterItems??a} .selectionMode=${i?.selectionMode??o} .visibilityAppearance=${i?.visibilityAppearance??l} .showErrors=${i?.showErrors??this.showErrors} .showFilter=${i?.showFilter??this.showFilter} .hideStatusIndicators=${i?.hideStatusIndicators??this.hideStatusIndicators} .showTemporaryLayerIndicators=${i?.showTemporaryLayerIndicators??this.showTemporaryLayerIndicators} @arcgisReady=${h=>h.stopPropagation()} .catalogLayer=${e} .layerTablesEnabled=${n} .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 t=this._getTableListParams(e);return w(r`<arcgis-table-list-next .headingLevel=${t?.headingLevel??this.headingLevel} .selectionMode=${t?.selectionMode??this.selectionMode} .dragEnabled=${t?.dragEnabled??this.dragEnabled} .collapsed=${t?.collapsed} .filterPlaceholder=${t?.filterPlaceholder} .filterText=${t?.filterText} .icon=${t?.icon??void 0} .label=${t?.label??void 0} .listItemCreatedFunction=${t?.listItemCreatedFunction} .tables=${t?.tables} .referenceElement=${this.referenceElement} @arcgisReady=${i=>i.stopPropagation()}></arcgis-table-list-next>`)}_handlePanelFlowItemBack(e){e.open=!1,this._focusRootFlowItem=!0}_moveLayerFromChildList({toEl:e,fromEl:t,dragEl:i,newIndex:s}){let a=c(i,this._allItems),o=e.hasAttribute("data-item")?c(e,this._allItems):null,l=t.hasAttribute("data-item")?c(t,this._allItems):null,n=X(t),h=X(e);s==null||!a||!n||!h||(this.viewModel.moveItem({targetItem:a,fromParentItem:l,toParentItem:o,newIndex:s,from:n,to:h}),j(this,a.uid,f=>f.parentElement?.closest("calcite-list")===e))}_handleCalciteListDragEnd(e){let{fromEl:t,toEl:i,dragEl:s,oldIndex:a}=e;if(t!==i){s.remove();return}a==null||!t||!s||t.insertBefore(s,t.children[a])}_onCalciteListOrderChange(e){let{_lastDragDetail:t}=this,{toEl:i,fromEl:s,dragEl:a,newIndex:o}=e,l=t?.newIndex===o&&t?.dragEl===a&&t?.toEl===i&&t?.fromEl===s;if(!s||!i||l)return;this._lastDragDetail=e,this._selectedDragItemLayerUid=a.value.layer?.uid??null;let n=s,h=i;if(n===h){let f=Array.from(s.children).filter(I=>I?.matches("calcite-list-item")).map(I=>I.value.layer?.uid??"");this._sortLayers(n,f);return}this._moveLayerFromChildList({toEl:h,fromEl:n,dragEl:a,newIndex:o})}_sortLayers(e,t){if(e===this._referenceListRef.value||e===this._baseListRef.value){let s=e===this._baseListRef.value?this.view?.map?.basemap?.baseLayers:this.view?.map?.basemap?.referenceLayers;H(s,t);return}let i=c(e,this._allItems);i&&q(i,t)}_handleCalciteListChange(e){if(this.selectionMode==="none")return;let t=e.target.selectedItems.map(i=>c(i,this._allItems)).filter(Boolean);this.selectedItems.removeAll(),this.selectedItems.addMany(t)}_focusFlowItem(e,t){return!t||!e?t:(e.setFocus(),!1)}render(){let e={[L.hidden]:this.state==="loading",[L.disabled]:this.state==="disabled"};return r`<div class=${p(P(L.widget,L.panel,e))}>${this._renderItems()}${this._renderItemTooltips()}</div>`}_renderItemTooltip(e){return e?r`<calcite-tooltip overlay-positioning=fixed .referenceElement=${this._tooltipReferenceMap.get(e.layer?.uid??"")}>${this.messages.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._visibleReferenceItems.concat(this._visibleBaseItems).toArray().map(e=>this._renderItemTooltipNodes(e))}_renderNoLayersInfoMessage(e){return r`<div slot=message>${e}</div>`}_renderNoLayersInfo(e,t){return this.hideNoItemsNotice?null:r`<div class=${p(u.itemMessage)}>${m(t,r`<calcite-notice icon=information kind=info open width=full>${this._renderNoLayersInfoMessage(e)}</calcite-notice>`)}</div>`}_renderEditingInput(){return r`<div class=${p(u.editing)}><calcite-label>${this.messages.basemapTitle}<calcite-input .label=${this.messages.basemapTitle} name=basemaptitle .pattern=${oe} .placeholder=${this.messages.basemapTitle} required title=${this.messages.basemapTitle??_} type=text .value=${this.viewModel.basemapTitle??void 0} ${g(this._editTitleInputRef)}></calcite-input></calcite-label></div>`}_renderEditingForm(){return this.editingTitle?r`<calcite-flow-item .heading=${this.hideHeading?void 0:this.messages.basemapTitle} .headingLevel=${this.headingLevel} .selected=${!this.openedLayers.length&&!this._openedPanelItems.length} @calciteFlowItemBack=${e=>{e.preventDefault(),this._toggleEditingTitle()}} ${g(this._editingFlowItemRef)}>${this._renderEditingInput()}<calcite-button appearance=outline @click=${this._toggleEditingTitle} slot=footer-actions width=full>${this.messages.cancel}</calcite-button><calcite-button slot=footer-actions type=submit width=full>${this.messages.ok}</calcite-button></calcite-flow-item>`:null}_renderEditTitleButton(){return this.showEditTitleButton&&!this.editingTitle?r`<calcite-action icon=pencil @click=${this._toggleEditingTitle} slot=header-actions-end .text=${this.messages.edit??""} title=${this.messages.edit??_}></calcite-action>`:null}_renderItems(){let e=[m("root-flow-item",r`<calcite-flow-item .closable=${this.showCloseButton} .closed=${this.closed} .collapsed=${this.collapsed} .collapsible=${this.showCollapseButton} .heading=${this.hideHeading?void 0:this.viewModel.basemapTitle??this.messages.componentLabel} .headingLevel=${this.headingLevel} .selected=${!this.editingTitle&&!this.openedLayers.length&&!this._openedPanelItems.length} @calciteFlowItemClose=${()=>{this.closed=!0}} ${g(this._rootFlowItemRef)}>${this._renderEditTitleButton()}${this._renderReferenceSection()}${this._renderBaseSection()}</calcite-flow-item>`),this._renderEditingForm(),this._renderPanelFlowItems(),this._renderedOpenLayerFlowItems];this._focusRootFlowItem=this._focusFlowItem(this._rootFlowItemRef.value,this._focusRootFlowItem),this._focusEditingFlowItem=this._focusFlowItem(this._editingFlowItemRef.value,this._focusEditingFlowItem);let t=m("root-flow",r`<calcite-flow>${e}</calcite-flow>`);return this.closed?null:this.editingTitle?r`<form class=${p(u.editingForm)} @submit=${this._formSubmit}>${t}</form>`:t}_renderPanelFlowItems(){return N(this._openedPanelItems.toArray(),e=>e.uid,(e,t)=>{let{panel:i,title:s}=e,a=()=>this._handlePanelFlowItemBack(i);return this._focusPanelFlowItem=this._focusFlowItem(this._panelFlowItemRef.value,this._focusPanelFlowItem),r`<calcite-flow-item .description=${s} .heading=${i.title} .headingLevel=${this.headingLevel} .selected=${!this.openedLayers.length&&t===this._openedPanelItems.length-1} @calciteFlowItemBack=${o=>{o.preventDefault(),a()}} ${g(this._panelFlowItemRef)}><arcgis-layer-list-item-panel .item=${e} .view=${this.view}></arcgis-layer-list-item-panel><calcite-button appearance=transparent @click=${a} slot=footer-actions width=full>${this.messages.back}</calcite-button></calcite-flow-item>`})}_renderLayerFlowItem(e,t){let i=e.title||this.messages.untitledLayer;return this._focusLayerFlowItem===e.uid&&(this._focusLayerFlowItem=this._focusFlowItem(this._layerFlowItemRef.value,!0)?e.uid:null),m(e.uid,r`<calcite-flow-item data-layer-uid=${e.uid??_} .description=${i} .heading=${this.messages[e.type==="catalog"?"catalogLayers":"tables"]} .headingLevel=${this.headingLevel} .selected=${t} @calciteFlowItemBack=${s=>{s.preventDefault(),this.openedLayers.pop();let a=this.openedLayers.at(-1);a?this._focusLayerFlowItem=a.uid:this._focusRootFlowItem=!0}} ${g(this._layerFlowItemRef)}>${this._layerListMap.get(e)}</calcite-flow-item>`)}_renderList(e,t,i){let s=t==="reference"?this._referenceFilterEnabled:this._baseFilterEnabled,a=t==="reference"?this.referenceFilterText:this.baseFilterText,o=(t==="reference"?this.messages.noReferenceLayers:this.messages.noBaseLayers)??this.messages.noItemsToDisplay??"";return m(`block-${t}`,r`<calcite-block class=${p(u.section)} expandable expanded .heading=${t==="reference"?this.messages.referenceHeading:this.messages.baseHeading} .headingLevel=${this.headingLevel+1}>${e?.length?null:this._renderNoLayersInfo(o,t)}${m(`list-${t}`,r`<calcite-list @focusin=${this._setActiveItem} @focusout=${this._clearActiveItem} .canPull=${l=>this._canMove(l,"pull")} .canPut=${l=>this._canMove(l,"put")} data-basemap-layer-type=${t??_} data-layer-type=${this._rootGroupUid??_} .displayMode=${V} .dragEnabled=${this.dragEnabled} .filterEnabled=${s} .filterPlaceholder=${this.filterPlaceholder} .filterProps=${S} .filterText=${s?a:""} .group=${this._rootGroupUid} .label=${this.messages.componentLabel??""} @mouseleave=${this._clearActiveItem} @mouseover=${this._setActiveItem} selection-appearance=border .selectionMode=${this.selectionMode} @calciteListChange=${this._handleCalciteListChange} @calciteListDragEnd=${l=>this._handleCalciteListDragEnd(l.detail)} @calciteListFilter=${l=>{let n=l.currentTarget?.filterText??"";this[t==="reference"?"referenceFilterText":"baseFilterText"]=n,t==="base"?this.arcgisBaseFilterChange.emit():this.arcgisReferenceFilterChange.emit()}} @calciteListOrderChange=${l=>this._onCalciteListOrderChange(l.detail)} ${g(t==="reference"?this._referenceListRef:this._baseListRef)}>${e?.toArray().map(l=>this._renderItem(l,i))}${s&&!this.hideNoFilterResultsNotice?r`<div class=${p(u.filterNoResults)} slot=filter-no-results><calcite-notice kind=info open width=full>${this._renderNoLayersInfoMessage(o)}</calcite-notice></div>`:null}</calcite-list>`)}</calcite-block>`)}_renderBaseSection(){return this.hideBaseLayers?null:this._renderList(this._visibleBaseItems,"base",this._visibleBaseItems.length===1)}_renderReferenceSection(){return this.hideReferenceLayers?null:this._renderList(this._visibleReferenceItems,"reference",!1)}_renderItem(e,t,i,s){return m(e.uid,z({activeItem:this._activeItem,canMove:this._canMove,css:u,displayMode:V,dragEnabled:this.dragEnabled&&!t,hideCatalogLayerList:this.hideCatalogLayerList,hideStatusIndicators:this.hideStatusIndicators,item:e,layerTablesEnabled:this.layerTablesEnabled,listModeDisabled:this.viewModel.listModeDisabled,messages:this.messages,operationalItems:this._allItems,parent:i,parentTitles:s,rootGroupUid:this._rootGroupUid,selectedDragItemLayerUid:this._selectedDragItemLayerUid,selectedItems:this.selectedItems,selectionMode:this.selectionMode,setCurrentActiveItem:this._setCurrentActiveItem,clearActiveItem:this._clearActiveItem,showErrors:this.showErrors,showTemporaryLayerIndicators:this.showTemporaryLayerIndicators,visibilityAppearance:this.visibilityAppearance,handleAction:this._onTriggerAction,handleCatalogOpen:this._onCatalogOpen,handlePanelOpen:this._onPanelOpen,handleSelectedDragItemLayerUidChange:this._onSelectedDragItemLayerUidChange,handleTablesOpen:this._onTablesOpen,handleTooltipReferenceChange:this._onTooltipReferenceChange,view:this.view}))}};function X(E){let e=E.closest(`[${W}]`)?.getAttribute(W);return e==="base"||e==="reference"?e:null}A("arcgis-basemap-layer-list-next",F);return F},"layers/list/BasemapItemCollection","core/Collection","core/reactiveUtils",a,b,e,f,h,i,j,l,n,o,s,t)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import a from"./QZ5LJH35.js";import"./VJVKFKSG.js";import{a as g}from"./O3V63YCY.js";import{h as m}from"./PME66FRM.js";import"./WT5SGWE4.js";import"./QUZTFUWM.js";import"./2OJYLBNC.js";import"./XURWCCLX.js";import{P as d,W as n,a as c,b as r,p as o,x as h}from"./I2BIPOZQ.js";import"./H6RQVSYM.js";export default $arcgis.t(([k,{watch:y},{a:a}])=>{var u=c`:host{height:100%;flex-grow:1}calcite-block{--calcite-block-content-space: 0;--calcite-block-border-color: transparent;margin:0}calcite-block :is(calcite-combobox,calcite-label,calcite-notice){margin:0 var(--calcite-space-md) var(--calcite-space-md)}calcite-block :last-child{margin-bottom:0}calcite-notice{margin:var(--calcite-space-md)}`,l=class extends d{constructor(){super(...arguments),this._messages=g({blocking:!0}),this.hideErrors=!1,this.hideLoader=!1,this.state="loading",this.arcgisPropertyChange=m()("selectedUtilityNetwork","state"),this.arcgisError=h()}static{this.properties={_utilityNetworks:16,view:0,hideErrors:5,hideLoader:5,state:1,error:1,selectedUtilityNetwork:0,heading:1}}static{this.styles=u}load(){this.#e(),this.manager.onLifecycle(()=>[y(()=>this.view?.map,()=>this.#e())])}willUpdate(t){t.has("_utilityNetworks")&&this.#r(),t.has("selectedUtilityNetwork")&&this.#o()}#t(t){this.error=t,this.state="error",this.arcgisError.emit()}#i(){this.error=void 0,this.state="ready"}#e(){if(this.error=void 0,this.state="loading",!this.view?.map){o("error",this,this._messages.errors.noView),this._utilityNetworks=void 0,this.#t(this._messages.errors.noView);return}let t=this.view.map;this.#s(t)}async#s(t){try{t.loaded||await t.load()}catch(e){this.#t(this._messages.errors.mapLoadFailed),a(e,this,this._messages.errors.mapLoadFailed)}finally{this._utilityNetworks=t.utilityNetworks||new k}}#r(){let{selectedUtilityNetwork:t,_utilityNetworks:e}=this;e?.length?(!t||!e.includes(t))&&(this.selectedUtilityNetwork=e.at(0),this.arcgisPropertyChange.emit({name:"selectedUtilityNetwork"})):(this.#t(this._messages.errors.noUtilityNetwork),o("error",this,this._messages.errors.noUtilityNetwork),this.selectedUtilityNetwork=void 0)}async#o(){let{selectedUtilityNetwork:t}=this;try{t&&!t.loaded&&await t.load(),this.#i()}catch(e){a(e,this,this._messages.errors.utilityNetworkLoadFailed),this.#t(this._messages.errors.utilityNetworkLoadFailed)}}#a(){return this.hideLoader?null:r`<calcite-loader label=loading></calcite-loader>`}#l(t,e=!1,i){return this.hideErrors?null:r`<calcite-notice .closable=${e} kind=danger open scale=s width=auto .icon=${i}><div slot=message>${t}</div></calcite-notice>`}#c(){let t=this._messages.labels.utilityNetwork,e=this._utilityNetworks?.map(i=>r`<calcite-combobox-item .value=${i.id} .heading=${i.title||i.id} .selected=${i.id===this.selectedUtilityNetwork?.id}></calcite-combobox-item>`);return r`<calcite-combobox .label=${t} selection-mode=single-persist @calciteComboboxChange=${({currentTarget:i})=>{let s=i.selectedItems[0]?.value;this.selectedUtilityNetwork?.id!==s&&(this.selectedUtilityNetwork=this._utilityNetworks?.find(w=>w.id===s))}}>${e}</calcite-combobox>`}#h(){let{selectedUtilityNetwork:t}=this;return r`<calcite-label>${t?.title}</calcite-label>`}#d(t){let e=this._messages.labels.utilityNetwork,i=this.heading||e,s=this._utilityNetworks?.length?this._utilityNetworks?.length===1?this.#h():this.#c():void 0;return r`<calcite-block .heading=${i} .label=${e} expanded>${s}${t}</calcite-block>`}render(){let{error:t,state:e,selectedUtilityNetwork:i}=this,s=e==="error"&&t?this.#l(t,!1,"exclamation-mark-triangle"):void 0;return!s&&!i?.loaded&&!i?.loadError?this.#a():e==="error"&&s&&!this._utilityNetworks?.length?s:this.#d(s)}};n("arcgis-utility-network-picker",l);return l},"core/Collection","core/reactiveUtils",a)
2
+ import a from"./QZ5LJH35.js";import"./VJVKFKSG.js";import{a as g}from"./OHCCNZCY.js";import{h as m}from"./R2XADTZ4.js";import"./FZBSTBH3.js";import"./QUZTFUWM.js";import"./4TV72DOP.js";import"./XURWCCLX.js";import{P as d,W as n,a as c,b as r,p as o,x as h}from"./I2BIPOZQ.js";import"./H6RQVSYM.js";export default $arcgis.t(([k,{watch:y},{a:a}])=>{var u=c`:host{height:100%;flex-grow:1}calcite-block{--calcite-block-content-space: 0;--calcite-block-border-color: transparent;margin:0}calcite-block :is(calcite-combobox,calcite-label,calcite-notice){margin:0 var(--calcite-space-md) var(--calcite-space-md)}calcite-block :last-child{margin-bottom:0}calcite-notice{margin:var(--calcite-space-md)}`,l=class extends d{constructor(){super(...arguments),this._messages=g({blocking:!0}),this.hideErrors=!1,this.hideLoader=!1,this.state="loading",this.arcgisPropertyChange=m()("selectedUtilityNetwork","state"),this.arcgisError=h()}static{this.properties={_utilityNetworks:16,view:0,hideErrors:5,hideLoader:5,state:1,error:1,selectedUtilityNetwork:0,heading:1}}static{this.styles=u}load(){this.#e(),this.manager.onLifecycle(()=>[y(()=>this.view?.map,()=>this.#e())])}willUpdate(t){t.has("_utilityNetworks")&&this.#r(),t.has("selectedUtilityNetwork")&&this.#o()}#t(t){this.error=t,this.state="error",this.arcgisError.emit()}#i(){this.error=void 0,this.state="ready"}#e(){if(this.error=void 0,this.state="loading",!this.view?.map){o("error",this,this._messages.errors.noView),this._utilityNetworks=void 0,this.#t(this._messages.errors.noView);return}let t=this.view.map;this.#s(t)}async#s(t){try{t.loaded||await t.load()}catch(e){this.#t(this._messages.errors.mapLoadFailed),a(e,this,this._messages.errors.mapLoadFailed)}finally{this._utilityNetworks=t.utilityNetworks||new k}}#r(){let{selectedUtilityNetwork:t,_utilityNetworks:e}=this;e?.length?(!t||!e.includes(t))&&(this.selectedUtilityNetwork=e.at(0),this.arcgisPropertyChange.emit({name:"selectedUtilityNetwork"})):(this.#t(this._messages.errors.noUtilityNetwork),o("error",this,this._messages.errors.noUtilityNetwork),this.selectedUtilityNetwork=void 0)}async#o(){let{selectedUtilityNetwork:t}=this;try{t&&!t.loaded&&await t.load(),this.#i()}catch(e){a(e,this,this._messages.errors.utilityNetworkLoadFailed),this.#t(this._messages.errors.utilityNetworkLoadFailed)}}#a(){return this.hideLoader?null:r`<calcite-loader label=loading></calcite-loader>`}#l(t,e=!1,i){return this.hideErrors?null:r`<calcite-notice .closable=${e} kind=danger open scale=s width=auto .icon=${i}><div slot=message>${t}</div></calcite-notice>`}#c(){let t=this._messages.labels.utilityNetwork,e=this._utilityNetworks?.map(i=>r`<calcite-combobox-item .value=${i.id} .heading=${i.title||i.id} .selected=${i.id===this.selectedUtilityNetwork?.id}></calcite-combobox-item>`);return r`<calcite-combobox .label=${t} selection-mode=single-persist @calciteComboboxChange=${({currentTarget:i})=>{let s=i.selectedItems[0]?.value;this.selectedUtilityNetwork?.id!==s&&(this.selectedUtilityNetwork=this._utilityNetworks?.find(w=>w.id===s))}}>${e}</calcite-combobox>`}#h(){let{selectedUtilityNetwork:t}=this;return r`<calcite-label>${t?.title}</calcite-label>`}#d(t){let e=this._messages.labels.utilityNetwork,i=this.heading||e,s=this._utilityNetworks?.length?this._utilityNetworks?.length===1?this.#h():this.#c():void 0;return r`<calcite-block .heading=${i} .label=${e} expanded>${s}${t}</calcite-block>`}render(){let{error:t,state:e,selectedUtilityNetwork:i}=this,s=e==="error"&&t?this.#l(t,!1,"exclamation-mark-triangle"):void 0;return!s&&!i?.loaded&&!i?.loadError?this.#a():e==="error"&&s&&!this._utilityNetworks?.length?s:this.#d(s)}};n("arcgis-utility-network-picker",l);return l},"core/Collection","core/reactiveUtils",a)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import e from"./HZWFDJFV.js";import d from"./KKLGABRK.js";import c from"./YSWNUR6Q.js";import b from"./QRXQ5LVY.js";import{h as s}from"./PME66FRM.js";import"./WT5SGWE4.js";import a from"./D7FCBWGA.js";import"./QUZTFUWM.js";import"./2OJYLBNC.js";import"./XURWCCLX.js";import{P as r,W as o,a as i,x as t}from"./I2BIPOZQ.js";import"./H6RQVSYM.js";export default $arcgis.t(([c,,,,a,l])=>{var d=i`.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)}.esri-widget{box-sizing:border-box;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget *,.esri-widget :before,.esri-widget :after{box-sizing:inherit}.esri-widget.esri-widget--disabled>*{opacity:.4;pointer-events:none}.esri-widget.esri-widget--compact{--esri-widget-padding-y: 0;--esri-widget-padding-x: 0}.esri-widget__anchor{color:var(--calcite-color-text-2)}.esri-widget__anchor:hover{color:var(--calcite-color-text-3)}.esri-widget__anchor:hover,.esri-widget__anchor:focus{text-decoration:underline}.esri-widget__anchor--disabled{opacity:.4;pointer-events:none}.esri-widget__header{background-color:var(--calcite-color-foreground-1);flex:1 0 100%;justify-content:space-between;align-items:center;width:100%;min-height:48px;padding:12px 0 12px 15px;display:flex}.esri-widget__heading{word-break:break-word}.esri-widget__header .esri-widget__heading{width:calc(100% - 48px);text-align:initial;color:var(--calcite-color-text-1);align-items:center;margin:0;padding:0;display:flex}.esri-widget__header-button{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);border:none;flex:0 0 48px;justify-content:center;align-self:stretch;align-items:center;width:48px;padding:0;display:flex}.esri-widget__footer{background-color:var(--calcite-color-foreground-1);justify-content:center;align-items:center;width:100%;min-height:48px;display:flex}.esri-widget__footer-pagination{color:var(--calcite-color-text-2);justify-content:space-between;align-items:center;display:flex}.esri-widget__footer-pagination-previous-button,.esri-widget__footer-pagination-next-button{cursor:pointer;background-color:var(--calcite-color-foreground-1);border:0;margin:0 7px;padding:12px 15px;transition:background-color .125s ease-in-out}.esri-widget__footer-pagination-previous-button:hover,.esri-widget__footer-pagination-previous-button:focus,.esri-widget__footer-pagination-next-button:hover,.esri-widget__footer-pagination-next-button:focus{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1)}.esri-menu{visibility:hidden;z-index:1;background-clip:padding;background-color:var(--calcite-color-foreground-1);background-clip:padding-box;width:100%;max-height:0;margin:2px 0 0;padding:0;font-size:var(--calcite-font-size);line-height:var(--calcite-spacing-xl);position:absolute;top:100%;left:0;overflow:hidden;box-shadow:0 1px 2px #0000004d}.esri-menu .esri-menu__header{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-inverse);padding:6px 12px}.esri-menu__list{margin:0;padding:0;list-style:none}.esri-menu__list-item{cursor:pointer;border-top:1px solid #adadad4d;border-left:3px solid #0000;padding:.8em 1em}.esri-menu__list-item [class^=esri-icon-],.esri-menu__list-item [class*=" esri-icon-"]{padding-right:2.8px}.esri-menu__list-item:first-child{border-top:none}.esri-menu__list-item--focus,.esri-menu__list-item:hover,.esri-menu__list-item:focus{background-color:var(--calcite-color-foreground-1)}.esri-menu__list-item:active{background-color:var(--calcite-color-foreground-current)}.esri-menu__list-item--active,.esri-menu__list-item--active:hover,.esri-menu__list-item--active:focus{background-color:var(--calcite-color-foreground-1);border-left-color:var(--calcite-color-brand)}.esri-widget__table{border-collapse:collapse;color:var(--calcite-color-text-1);border:none;width:100%;line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget__table tr:nth-child(odd){background-color:var(--calcite-color-transparent)}.esri-widget__table tr:nth-child(2n){background-color:var(--calcite-color-transparent-press)}.esri-widget__table tr a{color:var(--calcite-color-text-2)}.esri-widget__table tr a:hover,.esri-widget__table tr a:focus{color:var(--calcite-color-text-1)}.esri-widget__table tr td,.esri-widget__table tr th{vertical-align:top;word-break:break-word;padding:.5em .7em;font-size:var(--calcite-font-size-sm);font-weight:var(--calcite-font-weight-regular)}.esri-widget__table tr th{text-align:left;border-right:3px solid #0000000d;width:50%}.esri-widget__table tr td{width:50%}.esri-input{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1);border:1px solid #959595;font-size:var(--calcite-font-size)}.esri-input::-ms-clear{display:none}.esri-input::placeholder{opacity:1;color:var(--calcite-color-text-2)}.esri-input:placeholder-shown{text-overflow:ellipsis}.esri-input[type=text],.esri-input[type=password],.esri-input[type=number]{height:32px;padding:0 .5em}calcite-combobox.esri-input{border:none}.esri-widget__content--empty{text-align:center;color:var(--calcite-color-border-input);flex-flow:column wrap;align-items:center;padding:18px 22px;display:flex}.esri-widget__content--empty h1.esri-widget__heading,.esri-widget__content--empty h2.esri-widget__heading,.esri-widget__content--empty h3.esri-widget__heading,.esri-widget__content--empty h4.esri-widget__heading,.esri-widget__content--empty h5.esri-widget__heading{font-weight:var(--calcite-font-weight-regular)}.esri-widget__content-illustration--empty{width:128px;padding:1rem 0}.esri-widget__content-icon--empty{width:32px;padding:.5rem 0}.esri-select{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background:var(--calcite-color-foreground-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -8 32 32' width='32' height='32'%3E%3Cpath d='M8 11.207l-4-4V5.793l4 4 4-4v1.414z' fill='%23adadad' fillrule='nonzero'/%3E%3C/svg%3E") 100% no-repeat;border:1px solid #959595;border-radius:0;width:100%;height:32px;margin:0;padding:0 .5em;font-family:inherit;font-size:.85em;display:block}.esri-select[disabled]{cursor:auto}.esri-select::-ms-expand{display:none}.esri-disabled a,.esri-disabled [role=menu],.esri-disabled [role=checkbox],.esri-disabled [class^=esri-icon-],.esri-disabled [class*=" esri-icon-"]{color:var(--calcite-color-text-3)}.keynav-mode .esri-widget:focus,.keynav-mode .esri-widget :focus{z-index:1;outline-offset:2px;outline:2px solid #adadad}.esri-widget__loader-animation{border:.15em solid #adadad4d;border-top-color:var(--calcite-color-border-input);border-radius:100%;width:1em;height:1em;font-size:var(--calcite-font-size-md);animation:1.25s linear infinite esri-rotate;display:block;transform:translateZ(0)}:dir(rtl) .esri-widget__table th{text-align:right;border-left:3px solid #0000000d;border-right:none}:dir(rtl) .esri-select{background-position:0}:dir(rtl) .esri-menu__list-item{border-left:none;border-right:3px solid #0000}:dir(rtl) .esri-menu__list-item [class^=esri-icon-],:dir(rtl) .esri-menu__list-item [class*=" esri-icon-"]{padding-left:2px;padding-right:0}:dir(rtl) .esri-menu__list-item--active{border-right-color:var(--calcite-color-brand)}.esri-icon-font-fallback-text{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.esri-rotating{animation:1.25s linear infinite esri-rotate;transform:translateZ(0)}.esri-clearfix:before,.esri-clearfix:after{content:" ";display:table}.esri-clearfix:after{clear:both}.esri-interactive{cursor:pointer}.esri-hidden{display:none!important}.esri-invisible{visibility:hidden!important}.esri-offscreen{position:absolute;top:-999em;left:-999em}.esri-match-height{flex-direction:column;flex:auto;display:flex;overflow:hidden}.esri-item-list{width:100%}.esri-item-list__filter-container--sticky{z-index:1;position:sticky;top:0}.esri-item-list__group{margin-top:12px}.esri-item-list__scroller{overflow-y:auto}.esri-item-list__scroller{z-index:0;position:relative}.esri-item-list__scroller--enabled{max-height:420px}.esri-item-list__group__header{color:var(--calcite-color-text-2);font-weight:var(--calcite-font-weight-medium)}.esri-item-list__list-item{cursor:pointer;min-height:32px}.esri-item-list__list-item[class^=esri-icon-],.esri-item-list__list-item[class*=" esri-icon-"]{padding-inline-end:2.8px}.esri-item-list__list-item--disabled{cursor:default}.esri-item-list__list-item-icon{justify-content:center;align-items:center;min-width:32px;height:32px;display:flex}.esri-item-list__list-item-icon span{line-height:0}.esri-thumbnail-preview{background-position:50%;width:22px;height:22px}.esri-item-list__no-matches-message{justify-content:center;align-items:center;height:96px;display:flex}.esri-feature-templates{background:var(--calcite-color-background);width:100%}.esri-feature-templates__list-item-icon{flex:0;justify-content:center;align-items:center;width:48px;min-width:48px;display:flex}.esri-feature-templates__list-item-icon>div{display:flex}.esri-ui .esri-feature-templates{width:300px}.esri-ui .esri-widget .esri-feature-templates{width:100%}.esri-feature-templates .esri-item-list__scroller--enabled{max-height:var(--arcgis-feature-templates-max-list-height, 420px)}`,g=a(c),e=class extends r{constructor(){super(...arguments),this.widget=g(this),this.viewModel=this.widget.viewModel,this.autoDestroyDisabled=!1,this.enableListScroll=this.widget.enableListScroll,this.filterFunction=this.widget.filterFunction,this.filterText=this.widget.filterText,this.groupBy=this.widget.groupBy,this.headingLevel=this.widget.headingLevel,this.hideFilter=this.widget.visibleElements.filter,this.disabledItemFunction=this.viewModel.disabledItemFunction,this.icon=this.widget.icon,this.label=this.widget.label,this.layers=this.widget.layers,this.selectionMode=this.widget.selectionMode,this.state=this.viewModel.state,this.items=this.viewModel.items,this.selectedItem=this.viewModel.selectedItem,this.view=this.viewModel.view,this.arcgisPropertyChange=s()("state"),this.arcgisReady=t(),this.arcgisSelect=l(()=>this.widget,"select")}static{this.properties={autoDestroyDisabled:5,enableListScroll:5,filterFunction:0,filterText:1,groupBy:1,headingLevel:9,hideFilter:5,disabledItemFunction:0,icon:1,label:1,layers:0,referenceElement:1,selectionMode:1,state:32,items:32,selectedItem:32,view:0}}static{this.styles=d}async destroy(){await this.manager.destroy()}select(n){this.widget.select(n)}};o("arcgis-feature-templates-legacy",e);return e},"widgets/FeatureTemplates",a,b,c,d,e)
2
+ import e from"./G37JKMBJ.js";import d from"./MN5HTWFG.js";import c from"./75OH7AOP.js";import b from"./CODEI67F.js";import{h as s}from"./R2XADTZ4.js";import"./FZBSTBH3.js";import a from"./7XCYURYF.js";import"./QUZTFUWM.js";import"./4TV72DOP.js";import"./XURWCCLX.js";import{P as r,W as o,a as i,x as t}from"./I2BIPOZQ.js";import"./H6RQVSYM.js";export default $arcgis.t(([c,,,,a,l])=>{var d=i`.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)}.esri-widget{box-sizing:border-box;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget *,.esri-widget :before,.esri-widget :after{box-sizing:inherit}.esri-widget.esri-widget--disabled>*{opacity:.4;pointer-events:none}.esri-widget.esri-widget--compact{--esri-widget-padding-y: 0;--esri-widget-padding-x: 0}.esri-widget__anchor{color:var(--calcite-color-text-2)}.esri-widget__anchor:hover{color:var(--calcite-color-text-3)}.esri-widget__anchor:hover,.esri-widget__anchor:focus{text-decoration:underline}.esri-widget__anchor--disabled{opacity:.4;pointer-events:none}.esri-widget__header{background-color:var(--calcite-color-foreground-1);flex:1 0 100%;justify-content:space-between;align-items:center;width:100%;min-height:48px;padding:12px 0 12px 15px;display:flex}.esri-widget__heading{word-break:break-word}.esri-widget__header .esri-widget__heading{width:calc(100% - 48px);text-align:initial;color:var(--calcite-color-text-1);align-items:center;margin:0;padding:0;display:flex}.esri-widget__header-button{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);border:none;flex:0 0 48px;justify-content:center;align-self:stretch;align-items:center;width:48px;padding:0;display:flex}.esri-widget__footer{background-color:var(--calcite-color-foreground-1);justify-content:center;align-items:center;width:100%;min-height:48px;display:flex}.esri-widget__footer-pagination{color:var(--calcite-color-text-2);justify-content:space-between;align-items:center;display:flex}.esri-widget__footer-pagination-previous-button,.esri-widget__footer-pagination-next-button{cursor:pointer;background-color:var(--calcite-color-foreground-1);border:0;margin:0 7px;padding:12px 15px;transition:background-color .125s ease-in-out}.esri-widget__footer-pagination-previous-button:hover,.esri-widget__footer-pagination-previous-button:focus,.esri-widget__footer-pagination-next-button:hover,.esri-widget__footer-pagination-next-button:focus{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1)}.esri-menu{visibility:hidden;z-index:1;background-clip:padding;background-color:var(--calcite-color-foreground-1);background-clip:padding-box;width:100%;max-height:0;margin:2px 0 0;padding:0;font-size:var(--calcite-font-size);line-height:var(--calcite-spacing-xl);position:absolute;top:100%;left:0;overflow:hidden;box-shadow:0 1px 2px #0000004d}.esri-menu .esri-menu__header{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-inverse);padding:6px 12px}.esri-menu__list{margin:0;padding:0;list-style:none}.esri-menu__list-item{cursor:pointer;border-top:1px solid #adadad4d;border-left:3px solid #0000;padding:.8em 1em}.esri-menu__list-item [class^=esri-icon-],.esri-menu__list-item [class*=" esri-icon-"]{padding-right:2.8px}.esri-menu__list-item:first-child{border-top:none}.esri-menu__list-item--focus,.esri-menu__list-item:hover,.esri-menu__list-item:focus{background-color:var(--calcite-color-foreground-1)}.esri-menu__list-item:active{background-color:var(--calcite-color-foreground-current)}.esri-menu__list-item--active,.esri-menu__list-item--active:hover,.esri-menu__list-item--active:focus{background-color:var(--calcite-color-foreground-1);border-left-color:var(--calcite-color-brand)}.esri-widget__table{border-collapse:collapse;color:var(--calcite-color-text-1);border:none;width:100%;line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget__table tr:nth-child(odd){background-color:var(--calcite-color-transparent)}.esri-widget__table tr:nth-child(2n){background-color:var(--calcite-color-transparent-press)}.esri-widget__table tr a{color:var(--calcite-color-text-2)}.esri-widget__table tr a:hover,.esri-widget__table tr a:focus{color:var(--calcite-color-text-1)}.esri-widget__table tr td,.esri-widget__table tr th{vertical-align:top;word-break:break-word;padding:.5em .7em;font-size:var(--calcite-font-size-sm);font-weight:var(--calcite-font-weight-regular)}.esri-widget__table tr th{text-align:left;border-right:3px solid #0000000d;width:50%}.esri-widget__table tr td{width:50%}.esri-input{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1);border:1px solid #959595;font-size:var(--calcite-font-size)}.esri-input::-ms-clear{display:none}.esri-input::placeholder{opacity:1;color:var(--calcite-color-text-2)}.esri-input:placeholder-shown{text-overflow:ellipsis}.esri-input[type=text],.esri-input[type=password],.esri-input[type=number]{height:32px;padding:0 .5em}calcite-combobox.esri-input{border:none}.esri-widget__content--empty{text-align:center;color:var(--calcite-color-border-input);flex-flow:column wrap;align-items:center;padding:18px 22px;display:flex}.esri-widget__content--empty h1.esri-widget__heading,.esri-widget__content--empty h2.esri-widget__heading,.esri-widget__content--empty h3.esri-widget__heading,.esri-widget__content--empty h4.esri-widget__heading,.esri-widget__content--empty h5.esri-widget__heading{font-weight:var(--calcite-font-weight-regular)}.esri-widget__content-illustration--empty{width:128px;padding:1rem 0}.esri-widget__content-icon--empty{width:32px;padding:.5rem 0}.esri-select{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background:var(--calcite-color-foreground-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -8 32 32' width='32' height='32'%3E%3Cpath d='M8 11.207l-4-4V5.793l4 4 4-4v1.414z' fill='%23adadad' fillrule='nonzero'/%3E%3C/svg%3E") 100% no-repeat;border:1px solid #959595;border-radius:0;width:100%;height:32px;margin:0;padding:0 .5em;font-family:inherit;font-size:.85em;display:block}.esri-select[disabled]{cursor:auto}.esri-select::-ms-expand{display:none}.esri-disabled a,.esri-disabled [role=menu],.esri-disabled [role=checkbox],.esri-disabled [class^=esri-icon-],.esri-disabled [class*=" esri-icon-"]{color:var(--calcite-color-text-3)}.keynav-mode .esri-widget:focus,.keynav-mode .esri-widget :focus{z-index:1;outline-offset:2px;outline:2px solid #adadad}.esri-widget__loader-animation{border:.15em solid #adadad4d;border-top-color:var(--calcite-color-border-input);border-radius:100%;width:1em;height:1em;font-size:var(--calcite-font-size-md);animation:1.25s linear infinite esri-rotate;display:block;transform:translateZ(0)}:dir(rtl) .esri-widget__table th{text-align:right;border-left:3px solid #0000000d;border-right:none}:dir(rtl) .esri-select{background-position:0}:dir(rtl) .esri-menu__list-item{border-left:none;border-right:3px solid #0000}:dir(rtl) .esri-menu__list-item [class^=esri-icon-],:dir(rtl) .esri-menu__list-item [class*=" esri-icon-"]{padding-left:2px;padding-right:0}:dir(rtl) .esri-menu__list-item--active{border-right-color:var(--calcite-color-brand)}.esri-icon-font-fallback-text{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.esri-rotating{animation:1.25s linear infinite esri-rotate;transform:translateZ(0)}.esri-clearfix:before,.esri-clearfix:after{content:" ";display:table}.esri-clearfix:after{clear:both}.esri-interactive{cursor:pointer}.esri-hidden{display:none!important}.esri-invisible{visibility:hidden!important}.esri-offscreen{position:absolute;top:-999em;left:-999em}.esri-match-height{flex-direction:column;flex:auto;display:flex;overflow:hidden}.esri-item-list{width:100%}.esri-item-list__filter-container--sticky{z-index:1;position:sticky;top:0}.esri-item-list__group{margin-top:12px}.esri-item-list__scroller{overflow-y:auto}.esri-item-list__scroller{z-index:0;position:relative}.esri-item-list__scroller--enabled{max-height:420px}.esri-item-list__group__header{color:var(--calcite-color-text-2);font-weight:var(--calcite-font-weight-medium)}.esri-item-list__list-item{cursor:pointer;min-height:32px}.esri-item-list__list-item[class^=esri-icon-],.esri-item-list__list-item[class*=" esri-icon-"]{padding-inline-end:2.8px}.esri-item-list__list-item--disabled{cursor:default}.esri-item-list__list-item-icon{justify-content:center;align-items:center;min-width:32px;height:32px;display:flex}.esri-item-list__list-item-icon span{line-height:0}.esri-thumbnail-preview{background-position:50%;width:22px;height:22px}.esri-item-list__no-matches-message{justify-content:center;align-items:center;height:96px;display:flex}.esri-feature-templates{background:var(--calcite-color-background);width:100%}.esri-feature-templates__list-item-icon{flex:0;justify-content:center;align-items:center;width:48px;min-width:48px;display:flex}.esri-feature-templates__list-item-icon>div{display:flex}.esri-ui .esri-feature-templates{width:300px}.esri-ui .esri-widget .esri-feature-templates{width:100%}.esri-feature-templates .esri-item-list__scroller--enabled{max-height:var(--arcgis-feature-templates-max-list-height, 420px)}`,g=a(c),e=class extends r{constructor(){super(...arguments),this.widget=g(this),this.viewModel=this.widget.viewModel,this.autoDestroyDisabled=!1,this.enableListScroll=this.widget.enableListScroll,this.filterFunction=this.widget.filterFunction,this.filterText=this.widget.filterText,this.groupBy=this.widget.groupBy,this.headingLevel=this.widget.headingLevel,this.hideFilter=this.widget.visibleElements.filter,this.disabledItemFunction=this.viewModel.disabledItemFunction,this.icon=this.widget.icon,this.label=this.widget.label,this.layers=this.widget.layers,this.selectionMode=this.widget.selectionMode,this.state=this.viewModel.state,this.items=this.viewModel.items,this.selectedItem=this.viewModel.selectedItem,this.view=this.viewModel.view,this.arcgisPropertyChange=s()("state"),this.arcgisReady=t(),this.arcgisSelect=l(()=>this.widget,"select")}static{this.properties={autoDestroyDisabled:5,enableListScroll:5,filterFunction:0,filterText:1,groupBy:1,headingLevel:9,hideFilter:5,disabledItemFunction:0,icon:1,label:1,layers:0,referenceElement:1,selectionMode:1,state:32,items:32,selectedItem:32,view:0}}static{this.styles=d}async destroy(){await this.manager.destroy()}select(n){this.widget.select(n)}};o("arcgis-feature-templates-legacy",e);return e},"widgets/FeatureTemplates",a,b,c,d,e)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{a as _}from"./XEK22IDA.js";import c from"./Z2NU3RGI.js";import b from"./TMJX7DFH.js";import a from"./QZ5LJH35.js";import"./VJVKFKSG.js";import"./PME66FRM.js";import"./WT5SGWE4.js";import"./QUZTFUWM.js";import{b as L}from"./2OJYLBNC.js";import"./XURWCCLX.js";import{N as O,O as S,P as j,R,U as f,W as Q,a as N,b as o,n as M}from"./I2BIPOZQ.js";import"./H6RQVSYM.js";export default $arcgis.t(([{templateHasKey:V,stripHTML:T},{renderingSanitizer:H},{isRelatableFeatureSupportedLayer:J,findRelatedLayer:U},{substitute:X,formatNumber:k},{watch:p,on:Y},K,Z,{ignoreAbortErrors:P},ee,,,{g:B}])=>{var te=N`:host{position:relative;flex:1 1 auto}:host([empty]){display:none}.list{min-height:var(--calcite-spacing-xxxl)}.list-item-hidden{display:none}.feature-observer{position:relative;bottom:var(--calcite-spacing-xxl);z-index:2;text-align:center}.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}`,re=h=>{let e=[];if(h.formTemplate){let{description:t,title:r}=h.formTemplate;h.fields?.forEach(i=>{let s=r&&V(r,i.name),a=t&&V(t,i.name);(s||a)&&e.push(i.name)})}return e},E=100;function ie(h){return typeof h=="string"&&h.trim().length>0}var D=class extends j{constructor(){super(...arguments),this._increaseFeaturePage=()=>{let{state:e,showAllEnabled:t,relatedFeatures:r,featuresPerPage:i,featurePage:s}=this;e==="ready"&&t&&r.length>=i*s&&this.featurePage++},this._relatedFeatureIntersectionObserver=new IntersectionObserver(([e])=>{e?.isIntersecting&&this._increaseFeaturePage()},{root:window.document}),this._featurePage=1,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._cancelQueryPage=()=>{let{_queryPageAbortController:e}=this;e&&e.abort(),this._queryPageAbortController=null},this._queryController=async()=>{this._cancelQuery();let e=new AbortController;this._queryAbortController=e,await P(this._query()),this._queryAbortController===e&&(this._queryAbortController=null)},this._queryFeatureCountController=async()=>{this._loaded=!1,this._cancelQueryFeatureCount();let e=new AbortController;this._queryFeatureCountAbortController=e,await P(this._queryFeatureCount()),this._queryFeatureCountAbortController===e&&(this._queryFeatureCountAbortController=null),this._loaded=!0},this._queryPageController=async()=>{let e=new AbortController;this._queryPageAbortController=e,await P(this._queryPage()),this._queryPageAbortController===e&&(this._queryPageAbortController=null)},this._queryDebounced=_(this._queryController,E),this._queryFeatureCountDebounced=_(this._queryFeatureCountController,E),this._queryPageDebounced=_(this._queryPageController,E),this._query=async()=>{let{_queryAbortController:e,relatedFeatures:t}=this;!this.featureCount||this.relatedLayer?.type==="subtype-group"&&!this.activeCategory||(this.relatedFeatureViewModels.destroyAll(),this.featurePage=1,t.destroyAll(),t.addMany(this._sliceFeatures(await this._queryRelatedFeatures({signal:e?.signal}))))},this._addFlowItem=e=>{e&&this.flowItems?.push(e)},this._relatedFeatureIntersectionObserverNode=O(),this.relatedFeatures=new K,this._queryAbortController=null,this._queryPageAbortController=null,this._queryFeatureCountAbortController=null,this.featureCount=0,this._loaded=!1,this.relatedFeatureViewModels=new K,this.autoDestroyDisabled=!1,this.featuresPerPage=10,this.useFeatureNextFlowItem=!1,this.flowType="feature-relationship",this.headingLevel=2,this.hideHeading=!1,this.hideDescription=!1,this.hideEmptyRelationshipContent=!1,this.empty=!1,this.showAllEnabled=!1}static{this.properties={allCategories:16,_queryAbortController:16,_queryPageAbortController:16,_queryFeatureCountAbortController:16,featureCount:16,_loaded:16,canLoad:16,canQuery:16,displayShowAllButton:16,displayListItems:16,categories:16,itemDescriptionFieldName:16,relatedFeatureViewModels:16,state:16,autoDestroyDisabled:5,allItemsDescription:32,featurePage:9,featuresPerPage:9,flowItems:0,useFeatureNextFlowItem:5,flowType:1,headingLevel:9,messages:0,heading:1,description:1,values:0,activeCategory:0,hideHeading:5,hideDescription:5,hideEmptyRelationshipContent:5,empty:39,displayCount:9,graphic:0,layer:0,map:0,view:0,spatialReference:0,timeZone:1,orderByFields:0,relationshipId:9,showAllEnabled:5,label:3}}static{this.styles=te}get orderByFieldsFixedCasing(){let{orderByFields:e,relatedLayer:t}=this;return e&&t?.loaded?e.map(r=>{let i=r.clone();return i.field=B(r.field,t),i}):e??[]}get supportsCacheHint(){return!!this.layer?.capabilities?.queryRelated?.supportsCacheHint}get allCategoriesCount(){return this.allCategories?.length??0}get objectId(){return(this.objectIdField&&this.graphic?.attributes?.[this.objectIdField])??null}get objectIdField(){return this.layer?.objectIdField||null}get relatedLayer(){let{layer:e,map:t,relationship:r}=this;if(!e?.loaded||!t||!r)return null;let i=e.type==="subtype-sublayer"&&e.parent&&J(e.parent)?e.parent:e;return U(t,i,r)??null}get relatedLayerKeyField(){let{relatedLayer:e,relationshipId:t}=this;return e?.loaded&&t!=null?e.relationships?.find(r=>r.id===t)?.keyField:null}get relatedLayerKeyFields(){let{relatedLayer:e}=this;return e?.loaded?e.relationships?.map(t=>t.keyField).filter(t=>t!=null)??[]:[]}get relationship(){let{relationshipId:e,layer:t}=this;return e!=null&&t?.loaded?t.relationships?.find(({id:r})=>r===e)??null:null}get relationshipKey(){let{relationshipKeyField:e}=this;return(e&&this.graphic?.attributes?.[e])??null}get relationshipKeyField(){return this.relationship?.keyField||null}get canLoad(){return!!this.map&&this.relationshipId!=null&&typeof this.objectId=="number"}get canQuery(){let e=this.layer?.capabilities?.queryRelated;return!!this.relatedLayer&&!!this.relationship&&this.relationshipId!=null&&this.objectId!=null&&!!e?.supportsCount&&e?.supportsPagination}get displayShowAllButton(){let{showAllEnabled:e,featureCount:t,displayCount:r,state:i,allCategoriesCount:s}=this,a=!!s&&(s>r||r===0),n=!!t&&(t>r||r===0);return!e&&i==="ready"&&(a||n)}get displayListItems(){let{relatedFeatures:e,allCategoriesCount:t}=this;return this.displayShowAllButton||!!e.length||!!t}get categories(){let{allCategories:e}=this;return this.showAllEnabled?e:e?.slice(0,this.displayCount)??null}get itemDescriptionFieldName(){return this.orderByFieldsFixedCasing[0]?.field||null}get state(){let{_queryAbortController:e,_queryFeatureCountAbortController:t,_queryPageAbortController:r,canQuery:i,_loaded:s,canLoad:a}=this;return t||a&&!s?"loading":e||r?"querying":i?"ready":"disabled"}get allItemsDescription(){let{messages:e,featureCount:t,allCategories:r,allCategoriesCount:i}=this;return X(e?.numberRecords??"",{number:k(r?i:t)})}get featurePage(){return this._featurePage}set featurePage(e){let{featuresPerPage:t,featureCount:r}=this,i=1,s=Math.ceil(r/t)||1;this._featurePage=Math.min(Math.max(e,i),s)}get heading(){let{activeCategory:e}=this;return this._heading??e?.name}set heading(e){this._heading=e}get _empty(){let{displayListItems:e,hideEmptyRelationshipContent:t,state:r}=this;return t&&r==="ready"&&!e}get displayCount(){return this._displayCount??3}set displayCount(e){this._displayCount=Math.min(Math.max(e??3,0),10)}async destroy(){await this.manager.destroy()}loaded(){this.manager.onLifecycle(()=>[p(()=>[this.displayCount,this.graphic,this.layer,this.layer?.loaded,this.map,this.orderByFields,this.relationshipId,this.featuresPerPage,this.showAllEnabled,this.canQuery,this.featureCount,this.activeCategory],()=>this._queryDebounced(),{initial:!0}),p(()=>[this.featurePage,this.showAllEnabled],()=>this._queryPageDebounced()),p(()=>[this.layer,this.relationshipId,this.objectId,this.canQuery,this.activeCategory],()=>this._queryFeatureCountDebounced(),{initial:!0}),p(()=>[this.state,this.showAllEnabled,this._relatedFeatureIntersectionObserverNode],()=>this._handleRelatedFeatureObserverChange()),p(()=>[this.displayListItems,this.hideEmptyRelationshipContent,this.state],()=>this._setEmpty(this._empty),{initial:!0}),Y(()=>this.relatedFeatures,"change",()=>this._setRelatedFeaturesViewModels())]),this.manager.onDestroy(()=>{this.relatedFeatureViewModels.destroyAll(),this.relatedFeatures.destroyAll(),this._cancelQuery(),this._cancelQueryFeatureCount(),this._cancelQueryPage(),this._unobserveRelatedFeatureObserver()})}_setEmpty(e){M(()=>this.empty=e)}async _queryFeatureCount(){let{layer:e,relatedLayer:t}=this;await e?.load(),await t?.load();let{_queryFeatureCountAbortController:r,activeCategory:i,canQuery:s,objectId:a,relatedLayerKeyField:n,relationshipId:l,relationshipKey:g,supportsCacheHint:C}=this;if(!s||!e||!t||a==null){this.featureCount=0,this.allCategories=void 0;return}if(t?.type==="subtype-group"&&!i){if(this.featureCount=0,this.relatedFeatureViewModels.destroyAll(),this.featurePage=1,this.relatedFeatures.destroyAll(),n&&g!=null){let{default:v}=await $arcgis.t(m=>m[0],"smartMapping/statistics/uniqueValues"),{uniqueValueInfos:I}=await v({layer:t,sqlWhere:`${n} = '${g}'`,field:t.subtypeField??void 0,signal:r?.signal}),$=I.map(({count:u,value:y})=>{let b=t.subtypes?.find(A=>A.code===y)?.name;return y!=null&&b?{count:u,value:y,name:b}:void 0}).filter(u=>u!=null);this.allCategories=$}return}let{historicMoment:m,gdbVersion:F}=e,w=new Z({cacheHint:C,gdbVersion:F,historicMoment:m,relationshipId:l,returnGeometry:!1,objectIds:[a],where:this._getRelationshipWhereClause(t)}),c=await e.queryRelatedFeaturesCount(w,{signal:r?.signal});this.allCategories=void 0,this.featureCount=c[a]||0}_getRelationshipWhereClause(e){let{activeCategory:t}=this,r=e.createQuery(),i="subtypeField"in e?e.subtypeField:void 0,s=t&&i?`${i} = ${t.value}`:void 0,a=r.where;return a&&s?`(${a}) AND (${s})`:a??s}_sliceFeatures(e){let{showAllEnabled:t,displayCount:r}=this;return t?e:r?e.slice(0,r):[]}async _queryPage(){let{relatedFeatures:e,featurePage:t,showAllEnabled:r,_queryPageAbortController:i,featureCount:s}=this;!r||t<2||!s||this.relatedLayer?.type==="subtype-group"&&!this.activeCategory||e.addMany(await this._queryRelatedFeatures({signal:i?.signal}))}async _queryRelatedFeatures(e){let{displayCount:t,featureCount:r,featurePage:i,featuresPerPage:s,layer:a,orderByFieldsFixedCasing:n,relatedLayer:l,relatedLayerKeyFields:g,relationshipId:C,showAllEnabled:m,supportsCacheHint:F}=this,{canQuery:w,objectId:c}=this;if(!w||!a||!l||c==null)return[];let v=m?((i-1)*s+r)%r:0,I=m?s:t,$=l.objectIdField,u="subtypeField"in l?l.subtypeField:void 0,y=[...n.map(d=>d.field),...re(l),...g,$,u].filter(ie),b=n.map(d=>`${d.field} ${d.order}`),{historicMoment:A,gdbVersion:z}=a,W=new Z({orderByFields:b,start:v,num:I,outFields:y,cacheHint:F,historicMoment:A,gdbVersion:z,relationshipId:C,returnGeometry:!1,objectIds:[c],where:this._getRelationshipWhereClause(l)}),q=(await a.queryRelatedFeatures(W,{signal:e?.signal}))[c]?.features||[];return l.type==="subtype-group"&&u?q.forEach(d=>{let G=d.attributes[u],x=l.findSublayerForSubtypeCode?.(G);d.sourceLayer=x,d.layer=x}):q.forEach(d=>{d.sourceLayer=l,d.layer=l}),q}_selectCategory(e){let{flowItems:t}=this;t&&this._addRelationshipFlowItem({showAllEnabled:!0,activeCategory:e})}_selectRecord(e){let{flowItems:t}=this;if(!t)return;let r=this.useFeatureNextFlowItem?f(o`<arcgis-feature-next .autoDestroyDisabled=${this.autoDestroyDisabled} .flowItems=${t} .flowType=${this.flowType} .graphic=${e.graphic} .hideEmptyRelationshipContent=${this.hideEmptyRelationshipContent} .map=${this.map} show-relationship-content .spatialReference=${this.spatialReference} .timeZone=${this.timeZone} .view=${this.view}></arcgis-feature-next>`):f(o`<arcgis-feature .autoDestroyDisabled=${this.autoDestroyDisabled} .flowItems=${t} .flowType=${this.flowType} .graphic=${e.graphic} .map=${this.map} show-relationship-content .spatialReference=${this.spatialReference} .timeZone=${this.timeZone} .view=${this.view}></arcgis-feature>`);this._addFlowItem(r)}_addRelationshipFlowItem({showAllEnabled:e=!1,activeCategory:t}){this._addFlowItem(f(o`<arcgis-feature-relationship .autoDestroyDisabled=${this.autoDestroyDisabled} .messages=${this.messages} .activeCategory=${t} .displayCount=${this.displayCount} .flowItems=${this.flowItems} .flowType=${this.flowType} .graphic=${this.graphic} .heading=${this.heading} hide-description .hideEmptyRelationshipContent=${this.hideEmptyRelationshipContent} .showAllEnabled=${e} hide-heading .layer=${this.layer} .map=${this.map} .orderByFields=${this.orderByFields} .relationshipId=${this.relationshipId} .spatialReference=${this.spatialReference} .useFeatureNextFlowItem=${this.useFeatureNextFlowItem} .values=${this.values} .view=${this.view}></arcgis-feature-relationship>`))}_showAllRecords(){let{flowItems:e}=this;e&&this._addRelationshipFlowItem({showAllEnabled:!0})}_handleRelatedFeatureObserverChange(){this._unobserveRelatedFeatureObserver();let{state:e,showAllEnabled:t}=this;this._relatedFeatureIntersectionObserverNode.value&&e==="ready"&&t&&this._relatedFeatureIntersectionObserver.observe(this._relatedFeatureIntersectionObserverNode.value)}_unobserveRelatedFeatureObserver(){this._relatedFeatureIntersectionObserverNode.value&&this._relatedFeatureIntersectionObserver.unobserve(this._relatedFeatureIntersectionObserverNode.value)}_matchesFeature(e,t){let r=e?.graphic?.getObjectId(),i=t?.getObjectId();return r!=null&&i!=null&&r===i}_setRelatedFeaturesViewModels(){let{relatedFeatures:e,relatedFeatureViewModels:t,map:r,view:i,spatialReference:s,timeZone:a}=this;e?.filter(Boolean).forEach(n=>{t.some(l=>this._matchesFeature(l,n))||t.add(new ee({abilities:{relationshipContent:!1},map:r,view:i,spatialReference:s,timeZone:a,graphic:n}))}),t.forEach(n=>{e?.find(l=>this._matchesFeature(n,l))||t.remove(n)})}render(){let{state:e}=this;return o`<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._renderRelationshipNotFound():this._renderRelatedFeatures()}</div>`}_renderStickyLoading(){return this.state==="querying"?o`<div class="sticky-loading-container">${this._renderLoadingIcon()}</div>`:null}_renderLoadingIcon(){return o`<calcite-loader inline label></calcite-loader>`}_renderLoading(){return o`<div class="loading-container">${this._renderLoadingIcon()}</div>`}_renderShowAllIconNode(){return o`<calcite-icon icon=list scale=s slot=content-end></calcite-icon>`}_renderChevronIconNode(){return o`<calcite-icon flip-rtl icon=chevron-right scale=s slot=content-end></calcite-icon>`}_renderCategory(e){let{count:t,name:r}=e,i=k(t);return o`<calcite-list-item class="list-item" .disabled=${!t} .label=${r} @calciteListItemSelect=${()=>this._selectCategory(e)}><calcite-chip .label=${i} scale=s slot=content-end>${i}</calcite-chip>${this._renderChevronIconNode()}</calcite-list-item>`}_renderRelatedFeature(e){let{itemDescriptionFieldName:t,values:r}=this,{formattedAttributes:i,state:s,heading:a}=e,n={...r,...i?.global},l=(t&&n?.[t])??"";return o`<calcite-list-item class=${R(L("list-item",{"list-item-hidden":s==="loading"}))} .description=${T(l.toString())} .label=${T(a)} @calciteListItemSelect=${()=>this._selectRecord(e)}><div slot=heading><div .innerHTML=${H.sanitize(a??"")??""}></div></div><div slot=description><div .innerHTML=${H.sanitize(l??"")??""}></div></div>${this._renderChevronIconNode()}</calcite-list-item>`}_renderShowAllListItem(){return this.displayShowAllButton?o`<calcite-list-item .description=${this.allItemsDescription} .label=${this.messages?.showAll} @calciteListItemSelect=${()=>this._showAllRecords()}>${this._renderShowAllIconNode()}</calcite-list-item>`:null}_renderNoRelatedFeaturesMessage(){return o`<calcite-notice icon=information kind=brand open scale=s width=full><div slot=message>${this.messages?.noRelatedFeatures}</div></calcite-notice>`}_renderFeatureObserver(){return o`<div class="feature-observer" ${S(this._relatedFeatureIntersectionObserverNode)}></div>`}_renderList(){let{relatedFeatureViewModels:e,categories:t}=this;return o`<calcite-list display-mode=flat .label=${this.messages?.relatedFeaturesList??""}>${t?.map(r=>this._renderCategory(r))??e.toArray().map(r=>this._renderRelatedFeature(r))}${this._renderShowAllListItem()}</calcite-list>`}_renderRelatedFeatures(){let{displayListItems:e}=this,{state:t}=this;return o`<div class=${R(L("list",{"list-querying":t==="querying"}))}>${e?this._renderList():t==="ready"?this._renderNoRelatedFeaturesMessage():null}${this._renderStickyLoading()}${this._renderFeatureObserver()}</div>`}_renderRelationshipNotFound(){return o`<calcite-notice icon=exclamation-mark-triangle kind=danger open scale=s width=full><div slot=message>${this.messages?.relationshipNotFound}</div></calcite-notice>`}};Q("arcgis-feature-relationship",D);return D},"applications/Components/stringUtils","applications/Components/sanitizerUtils","applications/Components/featureUtils","intl","core/reactiveUtils","core/Collection","rest/support/RelationshipQuery","core/promiseUtils","popup/FeatureContent",a,b,c)
2
+ import{a as _}from"./XEK22IDA.js";import c from"./R26ZJOWO.js";import b from"./TMJX7DFH.js";import a from"./QZ5LJH35.js";import"./VJVKFKSG.js";import"./R2XADTZ4.js";import"./FZBSTBH3.js";import"./QUZTFUWM.js";import{b as L}from"./4TV72DOP.js";import"./XURWCCLX.js";import{N as O,O as S,P as j,R,U as f,W as Q,a as N,b as o,n as M}from"./I2BIPOZQ.js";import"./H6RQVSYM.js";export default $arcgis.t(([{templateHasKey:V,stripHTML:T},{renderingSanitizer:H},{isRelatableFeatureSupportedLayer:J,findRelatedLayer:U},{substitute:X,formatNumber:k},{watch:p,on:Y},K,Z,{ignoreAbortErrors:P},ee,,,{h:B}])=>{var te=N`:host{position:relative;flex:1 1 auto}:host([empty]){display:none}.list{min-height:var(--calcite-spacing-xxxl)}.list-item-hidden{display:none}.feature-observer{position:relative;bottom:var(--calcite-spacing-xxl);z-index:2;text-align:center}.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}`,re=h=>{let e=[];if(h.formTemplate){let{description:t,title:r}=h.formTemplate;h.fields?.forEach(i=>{let s=r&&V(r,i.name),a=t&&V(t,i.name);(s||a)&&e.push(i.name)})}return e},E=100;function ie(h){return typeof h=="string"&&h.trim().length>0}var D=class extends j{constructor(){super(...arguments),this._increaseFeaturePage=()=>{let{state:e,showAllEnabled:t,relatedFeatures:r,featuresPerPage:i,featurePage:s}=this;e==="ready"&&t&&r.length>=i*s&&this.featurePage++},this._relatedFeatureIntersectionObserver=new IntersectionObserver(([e])=>{e?.isIntersecting&&this._increaseFeaturePage()},{root:window.document}),this._featurePage=1,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._cancelQueryPage=()=>{let{_queryPageAbortController:e}=this;e&&e.abort(),this._queryPageAbortController=null},this._queryController=async()=>{this._cancelQuery();let e=new AbortController;this._queryAbortController=e,await P(this._query()),this._queryAbortController===e&&(this._queryAbortController=null)},this._queryFeatureCountController=async()=>{this._loaded=!1,this._cancelQueryFeatureCount();let e=new AbortController;this._queryFeatureCountAbortController=e,await P(this._queryFeatureCount()),this._queryFeatureCountAbortController===e&&(this._queryFeatureCountAbortController=null),this._loaded=!0},this._queryPageController=async()=>{let e=new AbortController;this._queryPageAbortController=e,await P(this._queryPage()),this._queryPageAbortController===e&&(this._queryPageAbortController=null)},this._queryDebounced=_(this._queryController,E),this._queryFeatureCountDebounced=_(this._queryFeatureCountController,E),this._queryPageDebounced=_(this._queryPageController,E),this._query=async()=>{let{_queryAbortController:e,relatedFeatures:t}=this;!this.featureCount||this.relatedLayer?.type==="subtype-group"&&!this.activeCategory||(this.relatedFeatureViewModels.destroyAll(),this.featurePage=1,t.destroyAll(),t.addMany(this._sliceFeatures(await this._queryRelatedFeatures({signal:e?.signal}))))},this._addFlowItem=e=>{e&&this.flowItems?.push(e)},this._relatedFeatureIntersectionObserverNode=O(),this.relatedFeatures=new K,this._queryAbortController=null,this._queryPageAbortController=null,this._queryFeatureCountAbortController=null,this.featureCount=0,this._loaded=!1,this.relatedFeatureViewModels=new K,this.autoDestroyDisabled=!1,this.featuresPerPage=10,this.useFeatureNextFlowItem=!1,this.flowType="feature-relationship",this.headingLevel=2,this.hideHeading=!1,this.hideDescription=!1,this.hideEmptyRelationshipContent=!1,this.empty=!1,this.showAllEnabled=!1}static{this.properties={allCategories:16,_queryAbortController:16,_queryPageAbortController:16,_queryFeatureCountAbortController:16,featureCount:16,_loaded:16,canLoad:16,canQuery:16,displayShowAllButton:16,displayListItems:16,categories:16,itemDescriptionFieldName:16,relatedFeatureViewModels:16,state:16,autoDestroyDisabled:5,allItemsDescription:32,featurePage:9,featuresPerPage:9,flowItems:0,useFeatureNextFlowItem:5,flowType:1,headingLevel:9,messages:0,heading:1,description:1,values:0,activeCategory:0,hideHeading:5,hideDescription:5,hideEmptyRelationshipContent:5,empty:39,displayCount:9,graphic:0,layer:0,map:0,view:0,spatialReference:0,timeZone:1,orderByFields:0,relationshipId:9,showAllEnabled:5,label:3}}static{this.styles=te}get orderByFieldsFixedCasing(){let{orderByFields:e,relatedLayer:t}=this;return e&&t?.loaded?e.map(r=>{let i=r.clone();return i.field=B(r.field,t),i}):e??[]}get supportsCacheHint(){return!!this.layer?.capabilities?.queryRelated?.supportsCacheHint}get allCategoriesCount(){return this.allCategories?.length??0}get objectId(){return(this.objectIdField&&this.graphic?.attributes?.[this.objectIdField])??null}get objectIdField(){return this.layer?.objectIdField||null}get relatedLayer(){let{layer:e,map:t,relationship:r}=this;if(!e?.loaded||!t||!r)return null;let i=e.type==="subtype-sublayer"&&e.parent&&J(e.parent)?e.parent:e;return U(t,i,r)??null}get relatedLayerKeyField(){let{relatedLayer:e,relationshipId:t}=this;return e?.loaded&&t!=null?e.relationships?.find(r=>r.id===t)?.keyField:null}get relatedLayerKeyFields(){let{relatedLayer:e}=this;return e?.loaded?e.relationships?.map(t=>t.keyField).filter(t=>t!=null)??[]:[]}get relationship(){let{relationshipId:e,layer:t}=this;return e!=null&&t?.loaded?t.relationships?.find(({id:r})=>r===e)??null:null}get relationshipKey(){let{relationshipKeyField:e}=this;return(e&&this.graphic?.attributes?.[e])??null}get relationshipKeyField(){return this.relationship?.keyField||null}get canLoad(){return!!this.map&&this.relationshipId!=null&&typeof this.objectId=="number"}get canQuery(){let e=this.layer?.capabilities?.queryRelated;return!!this.relatedLayer&&!!this.relationship&&this.relationshipId!=null&&this.objectId!=null&&!!e?.supportsCount&&e?.supportsPagination}get displayShowAllButton(){let{showAllEnabled:e,featureCount:t,displayCount:r,state:i,allCategoriesCount:s}=this,a=!!s&&(s>r||r===0),n=!!t&&(t>r||r===0);return!e&&i==="ready"&&(a||n)}get displayListItems(){let{relatedFeatures:e,allCategoriesCount:t}=this;return this.displayShowAllButton||!!e.length||!!t}get categories(){let{allCategories:e}=this;return this.showAllEnabled?e:e?.slice(0,this.displayCount)??null}get itemDescriptionFieldName(){return this.orderByFieldsFixedCasing[0]?.field||null}get state(){let{_queryAbortController:e,_queryFeatureCountAbortController:t,_queryPageAbortController:r,canQuery:i,_loaded:s,canLoad:a}=this;return t||a&&!s?"loading":e||r?"querying":i?"ready":"disabled"}get allItemsDescription(){let{messages:e,featureCount:t,allCategories:r,allCategoriesCount:i}=this;return X(e?.numberRecords??"",{number:k(r?i:t)})}get featurePage(){return this._featurePage}set featurePage(e){let{featuresPerPage:t,featureCount:r}=this,i=1,s=Math.ceil(r/t)||1;this._featurePage=Math.min(Math.max(e,i),s)}get heading(){let{activeCategory:e}=this;return this._heading??e?.name}set heading(e){this._heading=e}get _empty(){let{displayListItems:e,hideEmptyRelationshipContent:t,state:r}=this;return t&&r==="ready"&&!e}get displayCount(){return this._displayCount??3}set displayCount(e){this._displayCount=Math.min(Math.max(e??3,0),10)}async destroy(){await this.manager.destroy()}loaded(){this.manager.onLifecycle(()=>[p(()=>[this.displayCount,this.graphic,this.layer,this.layer?.loaded,this.map,this.orderByFields,this.relationshipId,this.featuresPerPage,this.showAllEnabled,this.canQuery,this.featureCount,this.activeCategory],()=>this._queryDebounced(),{initial:!0}),p(()=>[this.featurePage,this.showAllEnabled],()=>this._queryPageDebounced()),p(()=>[this.layer,this.relationshipId,this.objectId,this.canQuery,this.activeCategory],()=>this._queryFeatureCountDebounced(),{initial:!0}),p(()=>[this.state,this.showAllEnabled,this._relatedFeatureIntersectionObserverNode],()=>this._handleRelatedFeatureObserverChange()),p(()=>[this.displayListItems,this.hideEmptyRelationshipContent,this.state],()=>this._setEmpty(this._empty),{initial:!0}),Y(()=>this.relatedFeatures,"change",()=>this._setRelatedFeaturesViewModels())]),this.manager.onDestroy(()=>{this.relatedFeatureViewModels.destroyAll(),this.relatedFeatures.destroyAll(),this._cancelQuery(),this._cancelQueryFeatureCount(),this._cancelQueryPage(),this._unobserveRelatedFeatureObserver()})}_setEmpty(e){M(()=>this.empty=e)}async _queryFeatureCount(){let{layer:e,relatedLayer:t}=this;await e?.load(),await t?.load();let{_queryFeatureCountAbortController:r,activeCategory:i,canQuery:s,objectId:a,relatedLayerKeyField:n,relationshipId:l,relationshipKey:g,supportsCacheHint:C}=this;if(!s||!e||!t||a==null){this.featureCount=0,this.allCategories=void 0;return}if(t?.type==="subtype-group"&&!i){if(this.featureCount=0,this.relatedFeatureViewModels.destroyAll(),this.featurePage=1,this.relatedFeatures.destroyAll(),n&&g!=null){let{default:v}=await $arcgis.t(m=>m[0],"smartMapping/statistics/uniqueValues"),{uniqueValueInfos:I}=await v({layer:t,sqlWhere:`${n} = '${g}'`,field:t.subtypeField??void 0,signal:r?.signal}),$=I.map(({count:u,value:y})=>{let b=t.subtypes?.find(A=>A.code===y)?.name;return y!=null&&b?{count:u,value:y,name:b}:void 0}).filter(u=>u!=null);this.allCategories=$}return}let{historicMoment:m,gdbVersion:F}=e,w=new Z({cacheHint:C,gdbVersion:F,historicMoment:m,relationshipId:l,returnGeometry:!1,objectIds:[a],where:this._getRelationshipWhereClause(t)}),c=await e.queryRelatedFeaturesCount(w,{signal:r?.signal});this.allCategories=void 0,this.featureCount=c[a]||0}_getRelationshipWhereClause(e){let{activeCategory:t}=this,r=e.createQuery(),i="subtypeField"in e?e.subtypeField:void 0,s=t&&i?`${i} = ${t.value}`:void 0,a=r.where;return a&&s?`(${a}) AND (${s})`:a??s}_sliceFeatures(e){let{showAllEnabled:t,displayCount:r}=this;return t?e:r?e.slice(0,r):[]}async _queryPage(){let{relatedFeatures:e,featurePage:t,showAllEnabled:r,_queryPageAbortController:i,featureCount:s}=this;!r||t<2||!s||this.relatedLayer?.type==="subtype-group"&&!this.activeCategory||e.addMany(await this._queryRelatedFeatures({signal:i?.signal}))}async _queryRelatedFeatures(e){let{displayCount:t,featureCount:r,featurePage:i,featuresPerPage:s,layer:a,orderByFieldsFixedCasing:n,relatedLayer:l,relatedLayerKeyFields:g,relationshipId:C,showAllEnabled:m,supportsCacheHint:F}=this,{canQuery:w,objectId:c}=this;if(!w||!a||!l||c==null)return[];let v=m?((i-1)*s+r)%r:0,I=m?s:t,$=l.objectIdField,u="subtypeField"in l?l.subtypeField:void 0,y=[...n.map(d=>d.field),...re(l),...g,$,u].filter(ie),b=n.map(d=>`${d.field} ${d.order}`),{historicMoment:A,gdbVersion:z}=a,W=new Z({orderByFields:b,start:v,num:I,outFields:y,cacheHint:F,historicMoment:A,gdbVersion:z,relationshipId:C,returnGeometry:!1,objectIds:[c],where:this._getRelationshipWhereClause(l)}),q=(await a.queryRelatedFeatures(W,{signal:e?.signal}))[c]?.features||[];return l.type==="subtype-group"&&u?q.forEach(d=>{let G=d.attributes[u],x=l.findSublayerForSubtypeCode?.(G);d.sourceLayer=x,d.layer=x}):q.forEach(d=>{d.sourceLayer=l,d.layer=l}),q}_selectCategory(e){let{flowItems:t}=this;t&&this._addRelationshipFlowItem({showAllEnabled:!0,activeCategory:e})}_selectRecord(e){let{flowItems:t}=this;if(!t)return;let r=this.useFeatureNextFlowItem?f(o`<arcgis-feature-next .autoDestroyDisabled=${this.autoDestroyDisabled} .flowItems=${t} .flowType=${this.flowType} .graphic=${e.graphic} .hideEmptyRelationshipContent=${this.hideEmptyRelationshipContent} .map=${this.map} show-relationship-content .spatialReference=${this.spatialReference} .timeZone=${this.timeZone} .view=${this.view}></arcgis-feature-next>`):f(o`<arcgis-feature .autoDestroyDisabled=${this.autoDestroyDisabled} .flowItems=${t} .flowType=${this.flowType} .graphic=${e.graphic} .map=${this.map} show-relationship-content .spatialReference=${this.spatialReference} .timeZone=${this.timeZone} .view=${this.view}></arcgis-feature>`);this._addFlowItem(r)}_addRelationshipFlowItem({showAllEnabled:e=!1,activeCategory:t}){this._addFlowItem(f(o`<arcgis-feature-relationship .autoDestroyDisabled=${this.autoDestroyDisabled} .messages=${this.messages} .activeCategory=${t} .displayCount=${this.displayCount} .flowItems=${this.flowItems} .flowType=${this.flowType} .graphic=${this.graphic} .heading=${this.heading} hide-description .hideEmptyRelationshipContent=${this.hideEmptyRelationshipContent} .showAllEnabled=${e} hide-heading .layer=${this.layer} .map=${this.map} .orderByFields=${this.orderByFields} .relationshipId=${this.relationshipId} .spatialReference=${this.spatialReference} .useFeatureNextFlowItem=${this.useFeatureNextFlowItem} .values=${this.values} .view=${this.view}></arcgis-feature-relationship>`))}_showAllRecords(){let{flowItems:e}=this;e&&this._addRelationshipFlowItem({showAllEnabled:!0})}_handleRelatedFeatureObserverChange(){this._unobserveRelatedFeatureObserver();let{state:e,showAllEnabled:t}=this;this._relatedFeatureIntersectionObserverNode.value&&e==="ready"&&t&&this._relatedFeatureIntersectionObserver.observe(this._relatedFeatureIntersectionObserverNode.value)}_unobserveRelatedFeatureObserver(){this._relatedFeatureIntersectionObserverNode.value&&this._relatedFeatureIntersectionObserver.unobserve(this._relatedFeatureIntersectionObserverNode.value)}_matchesFeature(e,t){let r=e?.graphic?.getObjectId(),i=t?.getObjectId();return r!=null&&i!=null&&r===i}_setRelatedFeaturesViewModels(){let{relatedFeatures:e,relatedFeatureViewModels:t,map:r,view:i,spatialReference:s,timeZone:a}=this;e?.filter(Boolean).forEach(n=>{t.some(l=>this._matchesFeature(l,n))||t.add(new ee({abilities:{relationshipContent:!1},map:r,view:i,spatialReference:s,timeZone:a,graphic:n}))}),t.forEach(n=>{e?.find(l=>this._matchesFeature(n,l))||t.remove(n)})}render(){let{state:e}=this;return o`<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._renderRelationshipNotFound():this._renderRelatedFeatures()}</div>`}_renderStickyLoading(){return this.state==="querying"?o`<div class="sticky-loading-container">${this._renderLoadingIcon()}</div>`:null}_renderLoadingIcon(){return o`<calcite-loader inline label></calcite-loader>`}_renderLoading(){return o`<div class="loading-container">${this._renderLoadingIcon()}</div>`}_renderShowAllIconNode(){return o`<calcite-icon icon=list scale=s slot=content-end></calcite-icon>`}_renderChevronIconNode(){return o`<calcite-icon flip-rtl icon=chevron-right scale=s slot=content-end></calcite-icon>`}_renderCategory(e){let{count:t,name:r}=e,i=k(t);return o`<calcite-list-item class="list-item" .disabled=${!t} .label=${r} @calciteListItemSelect=${()=>this._selectCategory(e)}><calcite-chip .label=${i} scale=s slot=content-end>${i}</calcite-chip>${this._renderChevronIconNode()}</calcite-list-item>`}_renderRelatedFeature(e){let{itemDescriptionFieldName:t,values:r}=this,{formattedAttributes:i,state:s,heading:a}=e,n={...r,...i?.global},l=(t&&n?.[t])??"";return o`<calcite-list-item class=${R(L("list-item",{"list-item-hidden":s==="loading"}))} .description=${T(l.toString())} .label=${T(a)} @calciteListItemSelect=${()=>this._selectRecord(e)}><div slot=heading><div .innerHTML=${H.sanitize(a??"")??""}></div></div><div slot=description><div .innerHTML=${H.sanitize(l??"")??""}></div></div>${this._renderChevronIconNode()}</calcite-list-item>`}_renderShowAllListItem(){return this.displayShowAllButton?o`<calcite-list-item .description=${this.allItemsDescription} .label=${this.messages?.showAll} @calciteListItemSelect=${()=>this._showAllRecords()}>${this._renderShowAllIconNode()}</calcite-list-item>`:null}_renderNoRelatedFeaturesMessage(){return o`<calcite-notice icon=information kind=brand open scale=s width=full><div slot=message>${this.messages?.noRelatedFeatures}</div></calcite-notice>`}_renderFeatureObserver(){return o`<div class="feature-observer" ${S(this._relatedFeatureIntersectionObserverNode)}></div>`}_renderList(){let{relatedFeatureViewModels:e,categories:t}=this;return o`<calcite-list display-mode=flat .label=${this.messages?.relatedFeaturesList??""}>${t?.map(r=>this._renderCategory(r))??e.toArray().map(r=>this._renderRelatedFeature(r))}${this._renderShowAllListItem()}</calcite-list>`}_renderRelatedFeatures(){let{displayListItems:e}=this,{state:t}=this;return o`<div class=${R(L("list",{"list-querying":t==="querying"}))}>${e?this._renderList():t==="ready"?this._renderNoRelatedFeaturesMessage():null}${this._renderStickyLoading()}${this._renderFeatureObserver()}</div>`}_renderRelationshipNotFound(){return o`<calcite-notice icon=exclamation-mark-triangle kind=danger open scale=s width=full><div slot=message>${this.messages?.relationshipNotFound}</div></calcite-notice>`}};Q("arcgis-feature-relationship",D);return D},"applications/Components/stringUtils","applications/Components/sanitizerUtils","applications/Components/featureUtils","intl","core/reactiveUtils","core/Collection","rest/support/RelationshipQuery","core/promiseUtils","popup/FeatureContent",a,b,c)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{a as s}from"./SSNCB7LI.js";import{a as y}from"./O3V63YCY.js";import"./PME66FRM.js";import"./WT5SGWE4.js";import"./QUZTFUWM.js";import"./2OJYLBNC.js";import"./XURWCCLX.js";import{P as b,W as h,a as p,b as o,p as l,r as u}from"./I2BIPOZQ.js";import"./H6RQVSYM.js";export default $arcgis.t(([{getGraphicLayer:$}])=>{function v(r,t,e){let{associationType:i}=r;switch(i){case"attachment":return t==="to"?e.attachment:e.structure;case"containment":return t==="to"?e.content:e.container;case"junction-edge-from-connectivity":case"junction-edge-to-connectivity":case"junction-edge-midspan-connectivity":case"junction-junction-connectivity":case"connectivity":return e.connectivity}}function f(r,t){let e=$(r);return e&&"globalIdField"in e&&e.globalIdField&&t.fromNetworkElement?r.getGlobalId()===t.fromNetworkElement.globalId:!1}var k=p`:host{--calcite-block-padding: 0;display:flex;flex-direction:column;background-color:transparent}calcite-block{margin-block:0;border:1px solid var(--calcite-color-border-3)}calcite-block:first-of-type{border-radius:var(--calcite-spacing-sm) var(--calcite-spacing-sm) 0 0}calcite-block:last-of-type{margin-block-end:var(--calcite-spacing-md);border-top:none;border-radius:0 0 var(--calcite-spacing-sm) var(--calcite-spacing-sm)}calcite-block calcite-label{margin-inline:var(--calcite-spacing-md)}.info-container{display:flex;flex-direction:column}.info-container>*{margin-block-end:var(--calcite-spacing-md)}`,g=class extends b{constructor(){super(...arguments),this._messages=y({name:"utility-network-associations",blocking:!0}),this.#t=50,this.topLayerDisabled=!1}static{this.properties={association:0,associationType:1,percentAlong:9,sourceFeature:0,targetFeature:0,topLayerDisabled:5,utilityNetwork:0}}static{this.styles=k}get#c(){return!this.association||!this.sourceFeature||!this.targetFeature||!this.utilityNetwork}#t;get associationType(){return this.association?.associationType}set associationType(t){let{association:e}=this;!e||t===void 0||(e.associationType=t,(t==="junction-edge-from-connectivity"||t==="junction-edge-to-connectivity")&&(e.percentAlong=void 0))}get percentAlong(){return this.#t}set percentAlong(t){this.#t=t,this.association?.associationType==="junction-edge-midspan-connectivity"&&(this.association.percentAlong=t/100)}loaded(){this.association||l("error",this,u("association")),this.sourceFeature||l("error",this,u("sourceFeature")),this.targetFeature||l("error",this,u("targetFeature")),this.utilityNetwork||l("error",this,u("utilityNetwork"))}willUpdate(t){t.has("association")&&(this.percentAlong=(this.association?.percentAlong??.5)*100)}#o(t){let e=$(t);return e!=null&&typeof e=="object"&&"geometryType"in e&&e.geometryType==null}#a(){let{_messages:t,associationType:e}=this;if(!e)return null;switch(e){case"attachment":case"connectivity":case"containment":case"junction-junction-connectivity":return null;case"junction-edge-midspan-connectivity":case"junction-edge-from-connectivity":case"junction-edge-to-connectivity":{let i=e==="junction-edge-midspan-connectivity"?e:"junction-edge-from-connectivity",n=[this.#i("junction-edge-midspan-connectivity",i,t.midspanEdge),this.#i("junction-edge-from-connectivity",i,t.endpointEdge)];return o`<div class="info-container">${s("additional-content",o`<calcite-label>${t.connectTo}<calcite-combobox .label=${t.edgeConnectionComboboxLabel} overlay-positioning=fixed selection-mode=single-persist .topLayerDisabled=${this.topLayerDisabled} @calciteComboboxChange=${({currentTarget:c})=>{this.associationType=c.value}}>${n}</calcite-combobox></calcite-label>`)}${i==="junction-edge-midspan-connectivity"?this.#m():this.#l()}</div>`}}}#e(t,e,i){return o`<calcite-block .description=${e} expanded .heading=${t}>${i}</calcite-block>`}#s(t,e,i){return s(`#${t}`,o`<calcite-combobox-item .heading=${i} .selected=${e===t} .value=${`${t}`}></calcite-combobox-item>`)}#i(t,e,i){return s(`#${t}`,o`<calcite-combobox-item .heading=${i} .selected=${e===t} .value=${t}></calcite-combobox-item>`)}#n(t,e){let{_messages:i,utilityNetwork:n}=this;if(!n)return null;let c=n.getTerminalConfiguration(t)?.terminals.map(a=>this.#s(a.id,e.terminalId,a.name))||[];return o`<calcite-label>${i.terminal}<calcite-combobox .label=${i.terminalComboboxLabel} overlay-positioning=fixed selection-mode=single-persist .topLayerDisabled=${this.topLayerDisabled} @calciteComboboxChange=${({currentTarget:a})=>{e.terminalId=Number.parseInt(a.value,10)}}>${c}</calcite-combobox></calcite-label>`}#r(){let{_messages:t,association:e}=this;if(!e)return null;let i=e.isContentVisible??!1;return o`<calcite-label layout=inline>${t.visible}<calcite-switch .checked=${i} @calciteSwitchChange=${({currentTarget:n})=>{e.isContentVisible=n.checked}}></calcite-switch></calcite-label>`}#l(){let{_messages:t,associationType:e}=this,i=e==="junction-edge-to-connectivity";return s("endpoint-edge",o`<calcite-label>${t.edgeSide}<calcite-label layout=inline>${t.fromSide}<calcite-switch .checked=${i} @calciteSwitchChange=${({currentTarget:n})=>{let c=n.checked?"junction-edge-to-connectivity":"junction-edge-from-connectivity";this.associationType=c}}></calcite-switch>${t.toSide}</calcite-label></calcite-label>`)}#u(){let{association:t,associationType:e,sourceFeature:i,targetFeature:n}=this;if(!t||!e||!i||!n)return null;let c=f(i.feature,t)?i:n,a=c.label,m=v(t,"from",this._messages.associationTypes);switch(e){case"connectivity":case"junction-edge-from-connectivity":case"junction-edge-midspan-connectivity":case"junction-edge-to-connectivity":case"junction-junction-connectivity":return this.#e(a,m,this.#n(c.feature,t.fromNetworkElement));case"attachment":case"containment":return this.#e(a,m)}}#m(){let{_messages:t,percentAlong:e}=this;return s("midspan-edge",o`<calcite-label>${t.midspanLocation}<calcite-input-number max=100 min=0 number-button-type=vertical suffix-text=% .value=${`${e}`} @calciteInputNumberInput=${({currentTarget:i})=>{let n=Number.parseFloat(i.value);Number.isNaN(n)||(this.percentAlong=n)}}></calcite-input-number></calcite-label>`)}#d(){let{association:t,associationType:e,sourceFeature:i,targetFeature:n}=this;if(!t||!e||!i||!n)return null;let c=f(i.feature,t)?n:i,a=c.label,m=v(t,"to",this._messages.associationTypes),d;switch(e){case"connectivity":case"junction-junction-connectivity":d=this.#n(c.feature,t.toNetworkElement);break;case"containment":d=this.#o(c.feature)?void 0:this.#r();break}return this.#e(a,m,d)}render(){return this.#c?null:o`${this.#u()}${this.#d()}${this.#a()}`}};h("arcgis-feature-form-utility-network-association-settings",g);return g},"applications/Components/graphicOriginUtils")
2
+ import{a as s}from"./SSNCB7LI.js";import{a as y}from"./OHCCNZCY.js";import"./R2XADTZ4.js";import"./FZBSTBH3.js";import"./QUZTFUWM.js";import"./4TV72DOP.js";import"./XURWCCLX.js";import{P as b,W as h,a as p,b as o,p as l,r as u}from"./I2BIPOZQ.js";import"./H6RQVSYM.js";export default $arcgis.t(([{getGraphicLayer:$}])=>{function v(r,t,e){let{associationType:i}=r;switch(i){case"attachment":return t==="to"?e.attachment:e.structure;case"containment":return t==="to"?e.content:e.container;case"junction-edge-from-connectivity":case"junction-edge-to-connectivity":case"junction-edge-midspan-connectivity":case"junction-junction-connectivity":case"connectivity":return e.connectivity}}function f(r,t){let e=$(r);return e&&"globalIdField"in e&&e.globalIdField&&t.fromNetworkElement?r.getGlobalId()===t.fromNetworkElement.globalId:!1}var k=p`:host{--calcite-block-padding: 0;display:flex;flex-direction:column;background-color:transparent}calcite-block{margin-block:0;border:1px solid var(--calcite-color-border-3)}calcite-block:first-of-type{border-radius:var(--calcite-spacing-sm) var(--calcite-spacing-sm) 0 0}calcite-block:last-of-type{margin-block-end:var(--calcite-spacing-md);border-top:none;border-radius:0 0 var(--calcite-spacing-sm) var(--calcite-spacing-sm)}calcite-block calcite-label{margin-inline:var(--calcite-spacing-md)}.info-container{display:flex;flex-direction:column}.info-container>*{margin-block-end:var(--calcite-spacing-md)}`,g=class extends b{constructor(){super(...arguments),this._messages=y({name:"utility-network-associations",blocking:!0}),this.#t=50,this.topLayerDisabled=!1}static{this.properties={association:0,associationType:1,percentAlong:9,sourceFeature:0,targetFeature:0,topLayerDisabled:5,utilityNetwork:0}}static{this.styles=k}get#c(){return!this.association||!this.sourceFeature||!this.targetFeature||!this.utilityNetwork}#t;get associationType(){return this.association?.associationType}set associationType(t){let{association:e}=this;!e||t===void 0||(e.associationType=t,(t==="junction-edge-from-connectivity"||t==="junction-edge-to-connectivity")&&(e.percentAlong=void 0))}get percentAlong(){return this.#t}set percentAlong(t){this.#t=t,this.association?.associationType==="junction-edge-midspan-connectivity"&&(this.association.percentAlong=t/100)}loaded(){this.association||l("error",this,u("association")),this.sourceFeature||l("error",this,u("sourceFeature")),this.targetFeature||l("error",this,u("targetFeature")),this.utilityNetwork||l("error",this,u("utilityNetwork"))}willUpdate(t){t.has("association")&&(this.percentAlong=(this.association?.percentAlong??.5)*100)}#o(t){let e=$(t);return e!=null&&typeof e=="object"&&"geometryType"in e&&e.geometryType==null}#a(){let{_messages:t,associationType:e}=this;if(!e)return null;switch(e){case"attachment":case"connectivity":case"containment":case"junction-junction-connectivity":return null;case"junction-edge-midspan-connectivity":case"junction-edge-from-connectivity":case"junction-edge-to-connectivity":{let i=e==="junction-edge-midspan-connectivity"?e:"junction-edge-from-connectivity",n=[this.#i("junction-edge-midspan-connectivity",i,t.midspanEdge),this.#i("junction-edge-from-connectivity",i,t.endpointEdge)];return o`<div class="info-container">${s("additional-content",o`<calcite-label>${t.connectTo}<calcite-combobox .label=${t.edgeConnectionComboboxLabel} overlay-positioning=fixed selection-mode=single-persist .topLayerDisabled=${this.topLayerDisabled} @calciteComboboxChange=${({currentTarget:c})=>{this.associationType=c.value}}>${n}</calcite-combobox></calcite-label>`)}${i==="junction-edge-midspan-connectivity"?this.#m():this.#l()}</div>`}}}#e(t,e,i){return o`<calcite-block .description=${e} expanded .heading=${t}>${i}</calcite-block>`}#s(t,e,i){return s(`#${t}`,o`<calcite-combobox-item .heading=${i} .selected=${e===t} .value=${`${t}`}></calcite-combobox-item>`)}#i(t,e,i){return s(`#${t}`,o`<calcite-combobox-item .heading=${i} .selected=${e===t} .value=${t}></calcite-combobox-item>`)}#n(t,e){let{_messages:i,utilityNetwork:n}=this;if(!n)return null;let c=n.getTerminalConfiguration(t)?.terminals.map(a=>this.#s(a.id,e.terminalId,a.name))||[];return o`<calcite-label>${i.terminal}<calcite-combobox .label=${i.terminalComboboxLabel} overlay-positioning=fixed selection-mode=single-persist .topLayerDisabled=${this.topLayerDisabled} @calciteComboboxChange=${({currentTarget:a})=>{e.terminalId=Number.parseInt(a.value,10)}}>${c}</calcite-combobox></calcite-label>`}#r(){let{_messages:t,association:e}=this;if(!e)return null;let i=e.isContentVisible??!1;return o`<calcite-label layout=inline>${t.visible}<calcite-switch .checked=${i} @calciteSwitchChange=${({currentTarget:n})=>{e.isContentVisible=n.checked}}></calcite-switch></calcite-label>`}#l(){let{_messages:t,associationType:e}=this,i=e==="junction-edge-to-connectivity";return s("endpoint-edge",o`<calcite-label>${t.edgeSide}<calcite-label layout=inline>${t.fromSide}<calcite-switch .checked=${i} @calciteSwitchChange=${({currentTarget:n})=>{let c=n.checked?"junction-edge-to-connectivity":"junction-edge-from-connectivity";this.associationType=c}}></calcite-switch>${t.toSide}</calcite-label></calcite-label>`)}#u(){let{association:t,associationType:e,sourceFeature:i,targetFeature:n}=this;if(!t||!e||!i||!n)return null;let c=f(i.feature,t)?i:n,a=c.label,m=v(t,"from",this._messages.associationTypes);switch(e){case"connectivity":case"junction-edge-from-connectivity":case"junction-edge-midspan-connectivity":case"junction-edge-to-connectivity":case"junction-junction-connectivity":return this.#e(a,m,this.#n(c.feature,t.fromNetworkElement));case"attachment":case"containment":return this.#e(a,m)}}#m(){let{_messages:t,percentAlong:e}=this;return s("midspan-edge",o`<calcite-label>${t.midspanLocation}<calcite-input-number max=100 min=0 number-button-type=vertical suffix-text=% .value=${`${e}`} @calciteInputNumberInput=${({currentTarget:i})=>{let n=Number.parseFloat(i.value);Number.isNaN(n)||(this.percentAlong=n)}}></calcite-input-number></calcite-label>`)}#d(){let{association:t,associationType:e,sourceFeature:i,targetFeature:n}=this;if(!t||!e||!i||!n)return null;let c=f(i.feature,t)?n:i,a=c.label,m=v(t,"to",this._messages.associationTypes),d;switch(e){case"connectivity":case"junction-junction-connectivity":d=this.#n(c.feature,t.toNetworkElement);break;case"containment":d=this.#o(c.feature)?void 0:this.#r();break}return this.#e(a,m,d)}render(){return this.#c?null:o`${this.#u()}${this.#d()}${this.#a()}`}};h("arcgis-feature-form-utility-network-association-settings",g);return g},"applications/Components/graphicOriginUtils")
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{b as y}from"./WQISNLF7.js";import{a as e}from"./4MJJOPAL.js";import{a as v}from"./O3V63YCY.js";import{a as w}from"./JD74LG7K.js";import f from"./QRXQ5LVY.js";import{h as p}from"./PME66FRM.js";import"./WT5SGWE4.js";import b from"./D7FCBWGA.js";import"./QUZTFUWM.js";import{b as g}from"./2OJYLBNC.js";import"./XURWCCLX.js";import{P as h,R as d,S as u,T as a,W as m,a as n,b as c,x as l}from"./I2BIPOZQ.js";import"./H6RQVSYM.js";export default $arcgis.t(([{getGoToDuration:x},{watch:o},,{a:f}])=>{var b=n`.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{calcite-button{width:var(--calcite-spacing-xxxl);height:var(--calcite-spacing-xxxl)}}:host([visual-scale="l"]){calcite-button{width:calc(var(--calcite-spacing-xxxl) + var(--calcite-spacing-md));height:calc(var(--calcite-spacing-xxxl) + var(--calcite-spacing-md))}}:host([visual-scale="s"]){calcite-button{width:var(--calcite-spacing-xxl);height:var(--calcite-spacing-xxl)}}.root{border-radius:50%;box-shadow:var(--arcgis-internal-box-shadow, none)}.icon-container{justify-content:center;display:flex;position:absolute;transform:translate(-50%,-50%)}.icon-container:dir(rtl){transform:translate(50%,-50%)}`,s=class extends h{constructor(){super(...arguments),this._hasInitializedOrientation=!1,this._hasInitializedState=!1,this._lastState="disabled",this.messages=v(),this._orientation={x:0,y:0,z:0},this.view=f(this),this.autoDestroyDisabled=!1,this.visualScale="m",this.arcgisPropertyChange=p()("state","orientation"),this.arcgisReady=l()}static{this.properties={_orientation:16,view:0,autoDestroyDisabled:5,canShowNorth:32,goToOverride:0,icon:3,label:1,messageOverrides:0,orientation:32,referenceElement:1,state:32,visualScale:3}}static{this.styles=b}get canShowNorth(){return y(this.view)}get icon(){return this._icon??(this.state==="rotation"?"arrow-up":"compass-needle")}set icon(t){this._icon=t}get orientation(){return this._orientation}get state(){return!this.view?.ready||this.view.type==="2d"&&!this.view.constraints.rotationEnabled?"disabled":this.canShowNorth?"compass":"rotation"}async destroy(){await this.manager.destroy()}async reset(){let{view:t}=this;t?.ready&&(t?.type==="2d"?e({target:{rotation:0},options:{animationMode:"always",duration:x()}},t,this.goToOverride):e({target:{heading:0}},t,this.goToOverride))}updated(t){t.has("_orientation")&&(this._hasInitializedOrientation?this.arcgisPropertyChange.emit({name:"orientation"}):this._hasInitializedOrientation=!0);let i=this.state;this._hasInitializedState?i!==this._lastState&&this.arcgisPropertyChange.emit({name:"state"}):this._hasInitializedState=!0,this._lastState=i}loaded(){if(!this.view){this.manager.onLifecycle(()=>[o(()=>this.view?.ready,()=>{this._watchRotationOrCamera()},{once:!0})]);return}this._watchRotationOrCamera()}_watchRotationOrCamera(){if(!this.view)return;let t=[];this.view.type==="2d"?t.push(o(()=>this.view?.rotation,i=>this._updateForRotation(i),{initial:!0})):t.push(o(()=>this.view?.camera,i=>this._updateForCamera(i),{initial:!0})),this.manager.onLifecycle(()=>t)}_updateForRotation(t){t!=null&&(this._orientation={z:t})}_updateForCamera(t){if(!t)return;let i=-t.heading;this._orientation={x:0,y:0,z:i}}render(){let{messages:t,icon:i}=this;return c`<div class=${d(g("root",w.arcgisButton))}><calcite-button .disabled=${this.state==="disabled"} kind=neutral .label=${t.reset} @click=${this.reset} round .scale=${this.visualScale} title=${t.reset??a}><div aria-hidden=true class="icon-container" title=${t.reset??a}><calcite-icon .scale=${this.visualScale} .icon=${i} style=${u(_(this.orientation))}></calcite-icon></div></calcite-button></div>`}},_=r=>({transform:`rotateZ(${r.z}deg)`});m("arcgis-compass",s);return s},"applications/Components/navigationDuration","core/reactiveUtils",b,f)
2
+ import{b as y}from"./WQISNLF7.js";import{a as e}from"./4MJJOPAL.js";import{a as v}from"./OHCCNZCY.js";import{a as w}from"./JD74LG7K.js";import f from"./CODEI67F.js";import{h as p}from"./R2XADTZ4.js";import"./FZBSTBH3.js";import b from"./7XCYURYF.js";import"./QUZTFUWM.js";import{b as g}from"./4TV72DOP.js";import"./XURWCCLX.js";import{P as h,R as d,S as u,T as a,W as m,a as n,b as c,x as l}from"./I2BIPOZQ.js";import"./H6RQVSYM.js";export default $arcgis.t(([{getGoToDuration:x},{watch:o},,{a:f}])=>{var b=n`.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{calcite-button{width:var(--calcite-spacing-xxxl);height:var(--calcite-spacing-xxxl)}}:host([visual-scale="l"]){calcite-button{width:calc(var(--calcite-spacing-xxxl) + var(--calcite-spacing-md));height:calc(var(--calcite-spacing-xxxl) + var(--calcite-spacing-md))}}:host([visual-scale="s"]){calcite-button{width:var(--calcite-spacing-xxl);height:var(--calcite-spacing-xxl)}}.root{border-radius:50%;box-shadow:var(--arcgis-internal-box-shadow, none)}.icon-container{justify-content:center;display:flex;position:absolute;transform:translate(-50%,-50%)}.icon-container:dir(rtl){transform:translate(50%,-50%)}`,s=class extends h{constructor(){super(...arguments),this._hasInitializedOrientation=!1,this._hasInitializedState=!1,this._lastState="disabled",this.messages=v(),this._orientation={x:0,y:0,z:0},this.view=f(this),this.autoDestroyDisabled=!1,this.visualScale="m",this.arcgisPropertyChange=p()("state","orientation"),this.arcgisReady=l()}static{this.properties={_orientation:16,view:0,autoDestroyDisabled:5,canShowNorth:32,goToOverride:0,icon:3,label:1,messageOverrides:0,orientation:32,referenceElement:1,state:32,visualScale:3}}static{this.styles=b}get canShowNorth(){return y(this.view)}get icon(){return this._icon??(this.state==="rotation"?"arrow-up":"compass-needle")}set icon(t){this._icon=t}get orientation(){return this._orientation}get state(){return!this.view?.ready||this.view.type==="2d"&&!this.view.constraints.rotationEnabled?"disabled":this.canShowNorth?"compass":"rotation"}async destroy(){await this.manager.destroy()}async reset(){let{view:t}=this;t?.ready&&(t?.type==="2d"?e({target:{rotation:0},options:{animationMode:"always",duration:x()}},t,this.goToOverride):e({target:{heading:0}},t,this.goToOverride))}updated(t){t.has("_orientation")&&(this._hasInitializedOrientation?this.arcgisPropertyChange.emit({name:"orientation"}):this._hasInitializedOrientation=!0);let i=this.state;this._hasInitializedState?i!==this._lastState&&this.arcgisPropertyChange.emit({name:"state"}):this._hasInitializedState=!0,this._lastState=i}loaded(){if(!this.view){this.manager.onLifecycle(()=>[o(()=>this.view?.ready,()=>{this._watchRotationOrCamera()},{once:!0})]);return}this._watchRotationOrCamera()}_watchRotationOrCamera(){if(!this.view)return;let t=[];this.view.type==="2d"?t.push(o(()=>this.view?.rotation,i=>this._updateForRotation(i),{initial:!0})):t.push(o(()=>this.view?.camera,i=>this._updateForCamera(i),{initial:!0})),this.manager.onLifecycle(()=>t)}_updateForRotation(t){t!=null&&(this._orientation={z:t})}_updateForCamera(t){if(!t)return;let i=-t.heading;this._orientation={x:0,y:0,z:i}}render(){let{messages:t,icon:i}=this;return c`<div class=${d(g("root",w.arcgisButton))}><calcite-button .disabled=${this.state==="disabled"} kind=neutral .label=${t.reset} @click=${this.reset} round .scale=${this.visualScale} title=${t.reset??a}><div aria-hidden=true class="icon-container" title=${t.reset??a}><calcite-icon .scale=${this.visualScale} .icon=${i} style=${u(_(this.orientation))}></calcite-icon></div></calcite-button></div>`}},_=r=>({transform:`rotateZ(${r.z}deg)`});m("arcgis-compass",s);return s},"applications/Components/navigationDuration","core/reactiveUtils",b,f)