@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 t from"./TO2AHJ2D.js";import"./UP52QGP6.js";import{a as g}from"./JCRPP54Z.js";import s from"./AQTSDDVK.js";import r from"./QGB7AGII.js";import{a as j,b as q,c as z,g as F,h as J,j as K,k as Q,m,n as T}from"./FCNNRX3Q.js";import{a as H}from"./TXYWZMGM.js";import{a as b}from"./SSNCB7LI.js";import o from"./Z2NU3RGI.js";import n from"./TMJX7DFH.js";import l from"./QZ5LJH35.js";import"./VJVKFKSG.js";import i from"./5TZGXGC2.js";import{a as k}from"./O3V63YCY.js";import{a as w}from"./JD74LG7K.js";import{a as G}from"./2ZIKXQT2.js";import h from"./HZWFDJFV.js";import e from"./YSWNUR6Q.js";import c from"./QRXQ5LVY.js";import{h as B}from"./PME66FRM.js";import"./WT5SGWE4.js";import a from"./D7FCBWGA.js";import"./QUZTFUWM.js";import{b as N}from"./2OJYLBNC.js";import"./XURWCCLX.js";import{B as P,N as L,O as f,P as R,R as v,T as E,U as M,W as x,b as d,x as p}from"./I2BIPOZQ.js";import"./H6RQVSYM.js";export default $arcgis.t(([re,u,{on:A,watch:te},,,,S,U,,,,,{e:V,h:W,k:X},{a:Y,b:Z,c:ee}])=>{var ie="nested",le=U(re),O=class extends R{constructor(){super(...arguments),this._lastDragDetail=null,this._rootListRef=L(),this._layerFlowItemRef=L(),this._panelFlowItemRef=L(),this._selectedDragItemLayerUid=null,this._rootGroupUid=`operational-${P()}`,this._openedLayersController=null,this.messages=k(),this._canMove=({dragEl:e,fromEl:t,toEl:i},a)=>{let s=a==="pull"?this.listItemCanGiveFunction:this.listItemCanReceiveFunction,r=m(e,this.operationalItems);if(!r?.sortable)return!1;let l=this._resolveListContainer(t),o=this._resolveListContainer(i),n=this._getContainerItem(l),c=T(l),y=this._getContainerItem(o),_=T(o),$=!!c&&!!_&&c===_,I={selected:r,from:n,to:y},C=l?.group,h=o?.group,se=n?.layer?.type??"",ae=y?.layer?.type??"",D=new Set(["map-image","catalog","knowledge-graph"]);return C&&h&&typeof s=="function"?s(I):$&&!D.has(se)&&!D.has(ae)&&r?.layer?.type!=="sublayer"},this._onCatalogOpen=e=>{this.openedLayers.push(e.layer?.parent)},this._onTablesOpen=e=>{this.openedLayers.push(e.layer)},this._clearActiveItem=()=>{this._activeItem=null},this._setCurrentActiveItem=e=>{this._activeItem=e},this._setActiveItem=e=>{if(this.visibilityAppearance!=="default")return;let t=Array.from(e.composedPath()).find(a=>a.classList?.contains(g.item)),i=m(t,this.operationalItems);this._activeItem=i},this.viewModel=le(this),this.arcgisClose=G(this),this._activeItem=null,this._onTooltipReferenceChange=(e,t)=>{t?this._tooltipReferenceMap.set(e,t):this._tooltipReferenceMap.delete(e)},this._onSelectedDragItemLayerUidChange=e=>{this._selectedDragItemLayerUid=e},this._onTriggerAction=(e,t)=>{this.triggerAction(e,t)},this._tooltipReferenceMap=new Map,this._layerListMap=new Map,this.layerTablesEnabled=new u(["knowledge-graph"]),this.mapImageOptions=null,this.openedLayerLists=new u,this.tileOptions=null,this.autoDestroyDisabled=!1,this.closed=!1,this.collapsed=!1,this.dragEnabled=!1,this.filterPlaceholder="",this.filterText="",this.headingLevel=2,this.hideCatalogLayerList=!1,this.hideNoFilterResultsNotice=!1,this.hideNoItemsNotice=!1,this.hideStatusIndicators=!1,this.icon="layers",this.layerTablesAvailable=new u(["knowledge-graph"]),this.listItemCreatedFunction=this.viewModel.listItemCreatedFunction,this.listModeDisabled=this.viewModel.listModeDisabled,this.minDragEnabledItems=z,this.minFilterItems=q,this.openedLayers=new u,this.operationalItems=this.viewModel.operationalItems,this.selectedItems=new u,this.selectionMode="none",this.showCloseButton=!1,this.showCollapseButton=!1,this.showErrors=!1,this.showFilter=!1,this.showHeading=!1,this.showTemporaryLayerIndicators=!1,this.state=this.viewModel.state,this.view=this.viewModel.view,this.visibilityAppearance="default",this.arcgisFilterChange=p(),this.arcgisOpenedLayersChange=p(),this.arcgisPropertyChange=B()("state"),this.arcgisReady=p(),this.arcgisSelectedItemsChange=p(),this.arcgisTriggerAction=S(()=>this.viewModel,"trigger-action")}static{this.properties={_catalogLayerList:16,_tableList:16,_tooltipReferenceMap:16,_layerListMap:16,_totalItems:16,_visibleItems:16,_openedPanelItems:16,_dragEnabled:16,_filterEnabled:16,layerTablesEnabled:16,mapImageOptions:16,openedLayerLists:16,tileOptions:16,_renderedOpenLayerFlowItems:16,autoDestroyDisabled:5,catalogLayerList:32,catalogOptions:0,closed:5,collapsed:5,dragEnabled:5,filterPlaceholder:1,filterPredicate:0,filterText:1,headingLevel:9,hideCatalogLayerList:5,hideNoFilterResultsNotice:5,hideNoItemsNotice:5,hideStatusIndicators:5,icon:1,knowledgeGraphOptions:0,label:1,layerTablesAvailable:0,listItemCanGiveFunction:0,listItemCanReceiveFunction:0,listItemCreatedFunction:0,listModeDisabled:5,messageOverrides:0,minDragEnabledItems:9,minFilterItems:9,openedLayers:32,operationalItems:0,referenceElement:1,selectedItems:0,selectionMode:1,showCloseButton:5,showCollapseButton:5,showErrors:5,showFilter:5,showHeading:5,showTemporaryLayerIndicators:5,state:32,tableList:32,view:0,visibilityAppearance:1}}static{this.styles=[ee,Z]}get _totalItems(){return this.viewModel.operationalItems.flatten(e=>e.children.filter(t=>t.layer?.type!=="catalog-dynamic-group")).length}get _visibleItems(){return this.operationalItems?.filter(e=>!e.hidden&&(this.showErrors||!e.error))}get _openedPanelItems(){return this._visibleItems.flatten(e=>e.children).filter(e=>!e.hidden&&e.panel?.open&&!e.panel.disabled&&e.panel.flowEnabled&&(!W(e)||V(e)))}get _dragEnabled(){return this._totalItems>=this.minDragEnabledItems&&this.dragEnabled}get _filterEnabled(){return this._totalItems>=this.minFilterItems&&this.showFilter}get _renderedOpenLayerFlowItems(){let{openedLayers:e}=this;return e.toArray().map((t,i)=>this._renderLayerFlowItem(t,i===e.length-1))}get catalogLayerList(){return this._catalogLayerList}get tableList(){return this._tableList}async destroy(){await this.manager.destroy(),this._destroyOpenedLayerLists(),this._tooltipReferenceMap.clear()}loaded(){this.manager.onLifecycle(()=>[A(()=>this.openedLayers,"change",()=>{this._handleOpenedLayersChange()},{initial:!0}),A(()=>this.viewModel.operationalItems,"change",()=>F(this.selectedItems),{initial:!0}),te(()=>this.operationalItems.flatten(e=>e.children).map(e=>e.uid).join(","),()=>{F(this.selectedItems),this.requestUpdate()},{initial:!0}),A(()=>this.selectedItems,"change",()=>this.arcgisSelectedItemsChange.emit()),te(()=>[this.filterPredicate,this._rootListRef.value],()=>J(this._rootListRef.value,this.filterPredicate,this.operationalItems))])}triggerAction(e,t){return this.viewModel.triggerAction(e,t)}_resolveListContainer(e){return e?e.matches("calcite-list")?e:e.closest("calcite-list[data-item]")||(this._rootListRef.value?.contains(e)?this._rootListRef.value:null):null}_getContainerItem(e){let t=e?.getAttribute("data-item");return t?this._findItemByUid(t):null}_findItemByUid(e){let t=this.operationalItems?.toArray()??[];for(;t.length;){let i=t.shift();if(!i)continue;if(i.uid===e)return i;let a=i.children?.toArray()??[];t.push(...a)}return null}async _createFlowList(e,t){let{_layerListMap:i}=this,a=i.get(e);if(a)return a;let s=e.type==="catalog"?await this._createCatalogLayerList(e):await this._createTableList(e);return t.aborted||i.set(e,s),s}async _handleOpenedLayersChange(){let{_layerListMap:e,openedLayers:t,openedLayerLists:i}=this;this._openedLayersController?.abort();let a=new AbortController,{signal:s}=a;this._openedLayersController=a,e.forEach((o,n)=>{t.includes(n)||(o?.destroy?.(),e.delete(n))});let r=await Promise.all(t.map(o=>this._createFlowList(o,s)));if(s.aborted)return;i.removeAll(),i.addMany(r);let l=i.at(-1);l?"catalogLayer"in l?(this._catalogLayerList=l,this._tableList=void 0):(this._catalogLayerList=void 0,this._tableList=l):(this._catalogLayerList=void 0,this._tableList=void 0),this.arcgisOpenedLayersChange.emit()}_destroyOpenedLayerLists(){this.openedLayerLists.destroyAll(),this.openedLayers.removeAll(),this._layerListMap.clear()}async _createCatalogLayerList(e){let{headingLevel:t,catalogOptions:i,filterPlaceholder:a,listItemCreatedFunction:s,minFilterItems:r,selectionMode:l,visibilityAppearance:o}=this;return M(d`<arcgis-catalog-layer-list-next .headingLevel=${t} .filterPlaceholder=${i?.filterPlaceholder??a} .listItemCreatedFunction=${i?.listItemCreatedFunction??s} .minFilterItems=${i?.minFilterItems??r} .selectionMode=${i?.selectionMode??l} .visibilityAppearance=${i?.visibilityAppearance??o} .showErrors=${i?.showErrors??this.showErrors} .showFilter=${i?.showFilter??this.showFilter} .hideStatusIndicators=${i?.hideStatusIndicators??this.hideStatusIndicators} .showTemporaryLayerIndicators=${i?.showTemporaryLayerIndicators??this.showTemporaryLayerIndicators} .messageOverrides=${this.messageOverrides} @arcgisReady=${n=>n.stopPropagation()} .catalogLayer=${e} .view=${this.view} .referenceElement=${this.referenceElement} @catalogOpen=${this._onCatalogOpen} @tablesOpen=${this._onTablesOpen}></arcgis-catalog-layer-list-next>`)}_getTableListParams(e){switch(e.type){case"knowledge-graph":return{...this.knowledgeGraphOptions,tables:e.tables};case"map-image":return{...this.mapImageOptions,tables:e.subtables};case"tile":return{...this.tileOptions,tables:e.subtables};default:return null}}async _createTableList(e){let{headingLevel:t,selectionMode:i,dragEnabled:a}=this,s=this._getTableListParams(e);return M(d`<arcgis-table-list-next .headingLevel=${s?.headingLevel??t} .selectionMode=${s?.selectionMode??i} .dragEnabled=${s?.dragEnabled??a} .collapsed=${s?.collapsed} .filterPlaceholder=${s?.filterPlaceholder} .filterText=${s?.filterText} .icon=${s?.icon??void 0} .label=${s?.label??void 0} .listItemCreatedFunction=${s?.listItemCreatedFunction} .messageOverrides=${this.messageOverrides} .tables=${s?.tables} .referenceElement=${this.referenceElement} @arcgisReady=${r=>r.stopPropagation()}></arcgis-table-list-next>`)}_handlePanelFlowItemBack(e){e.open=!1}_moveLayerFromChildList({toEl:e,fromEl:t,dragEl:i,newIndex:a}){let s=this._resolveListContainer(e),r=this._resolveListContainer(t),l=m(i,this.operationalItems),o=this._getContainerItem(s),n=this._getContainerItem(r);a==null||!l||(this.viewModel.moveItem(l,n,o,a),X(this,l.uid,c=>c!==i&&this._resolveListContainer(c.parentElement)===s))}_onCalciteListDragEnd(e){let{fromEl:t,toEl:i,dragEl:a,oldIndex:s}=e;if(t!==i){a.remove();return}s==null||!t||!a||t.insertBefore(a,t.children[s])}_onCalciteListOrderChange(e){let{_lastDragDetail:t}=this,{dragEl:i,newIndex:a}=e,s=this._resolveListContainer(e.fromEl),r=this._resolveListContainer(e.toEl),l=t?.newIndex===a&&t?.dragEl===i&&t?.toEl===r&&t?.fromEl===s;if(!(!s||!r||l)){if(this._lastDragDetail={...e,fromEl:s,toEl:r},this._selectedDragItemLayerUid=i.value,s===r){let o=Array.from(s.children).filter(n=>n?.matches("calcite-list-item")).map(n=>n.value.layer?.uid??"");this._sortLayers(s,o);return}this._moveLayerFromChildList({toEl:r,fromEl:s,dragEl:i,newIndex:a})}}_sortLayers(e,t){if(e)if(e===this._rootListRef.value)K(this.el.view?.map?.layers,t);else{let i=m(e,this.operationalItems);if(!i)return;Q(i,t)}}_handleCalciteListChange(e){let{selectionMode:t,selectedItems:i}=this;if(t==="none")return;let a=e.target.selectedItems.map(s=>m(s,this.operationalItems)).filter(Boolean);i.removeAll(),i.addMany(a)}render(){let{state:e}=this,t={[w.hidden]:e==="loading",[w.disabled]:e==="disabled"};return d`<div class=${v(N(w.widget,t))}>${this._visibleItems?.length?this._renderItemTooltips():null}${this._renderItems()}</div>`}_renderItemTooltip(e){let{_tooltipReferenceMap:t,messages:i}=this;return e?d`<calcite-tooltip overlay-positioning=fixed .referenceElement=${t.get(e.layer?.uid??"")}>${i.layerIncompatibleTooltip}</calcite-tooltip>`:null}_renderItemTooltipNodes(e){if(e.incompatible)return this._renderItemTooltip(e);let t=e.children?.filter(i=>!i.hidden).toArray().map(i=>this._renderItemTooltipNodes(i))??[];return t.length?t:null}_renderItemTooltips(){return this._visibleItems?.toArray().map(e=>this._renderItemTooltipNodes(e))}_renderNoItemsMessage(){return d`<div slot=message>${this.messages.noItemsToDisplay}</div>`}_renderNoItems(){return this.hideNoItemsNotice?null:d`<div class=${v(g.itemMessage)}><calcite-notice icon=information kind=info open width=full>${this._renderNoItemsMessage()}</calcite-notice></div>`}_renderLayerFlowItem(e,t){let{messages:i,openedLayers:a}=this,s=e.title||this.messages.untitledLayer;return b(e?.uid??s,d`<calcite-flow-item data-layer-uid=${e?.uid??""??E} .description=${s} .heading=${i[e.type==="catalog"?"catalogLayers":"tables"]} .headingLevel=${this.headingLevel} .selected=${t} @calciteFlowItemBack=${r=>{r.preventDefault(),a.pop(),a.at(-1)&&this._layerFlowItemRef.value?.setFocus()}} ${f(this._layerFlowItemRef)}>${this._layerListMap.get(e)}</calcite-flow-item>`)}_renderPanelFlowItems(){let{_openedPanelItems:e,openedLayers:t}=this;return H(e.toArray(),i=>i.uid,(i,a)=>{let{panel:s,title:r}=i,l=()=>this._handlePanelFlowItemBack(s);return d`<calcite-flow-item .description=${r} .heading=${s.title} .headingLevel=${this.headingLevel} .selected=${!t.length&&a===e.length-1} @calciteFlowItemBack=${o=>{o.preventDefault(),l()}} ${f(this._panelFlowItemRef)}><arcgis-layer-list-item-panel .item=${i} .view=${this.view}></arcgis-layer-list-item-panel><calcite-button appearance=transparent @click=${l} slot=footer-actions width=full>${this.messages.back}</calcite-button></calcite-flow-item>`})}_renderItems(){let{collapsed:e,_visibleItems:t,_openedPanelItems:i,_filterEnabled:a,_rootGroupUid:s,showCloseButton:r,showCollapseButton:l,showHeading:o,_dragEnabled:n,selectionMode:c,filterText:y,openedLayers:_,filterPlaceholder:$,messages:I}=this,C=[d`<calcite-flow-item .closable=${r} .closed=${this.closed} .collapsed=${e} .collapsible=${l} .heading=${o?I.componentLabel:void 0} .headingLevel=${this.headingLevel} .selected=${!_.length&&!i.length} @calciteFlowItemClose=${()=>this.closed=!1}>${t?.length?d`<calcite-list @focusin=${this._setActiveItem} @focusout=${this._clearActiveItem} .canPull=${h=>this._canMove(h,"pull")} .canPut=${h=>this._canMove(h,"put")} data-layer-type=${s??E} .displayMode=${ie} .dragEnabled=${n} .filterEnabled=${a} .filterPlaceholder=${$} .filterProps=${j} .filterText=${a?y:""} .group=${s} .label=${I.componentLabel} @mouseleave=${this._clearActiveItem} @mouseover=${this._setActiveItem} selection-appearance=highlight .selectionMode=${c} @calciteListChange=${this._handleCalciteListChange} @calciteListFilter=${h=>{this.filterText=h.currentTarget?.filterText??"",this.arcgisFilterChange.emit()}} @calciteListOrderChange=${h=>this._onCalciteListOrderChange(h.detail)} @calciteListDragEnd=${h=>this._onCalciteListDragEnd(h.detail)} ${f(this._rootListRef)}>${t.toArray().map(h=>this._renderItem(h))}${a&&!this.hideNoFilterResultsNotice?d`<div class=${v(g.filterNoResults)} slot=filter-no-results><calcite-notice kind=info open width=full>${this._renderNoItemsMessage()}</calcite-notice></div>`:null}</calcite-list>`:this._renderNoItems()}</calcite-flow-item>`,this._renderPanelFlowItems(),this._renderedOpenLayerFlowItems];return this.closed?null:b("root-flow",d`<calcite-flow>${C}</calcite-flow>`)}_renderItem(e,t,i){return b(e.uid,Y({activeItem:this._activeItem,canMove:this._canMove,css:g,displayMode:ie,dragEnabled:this.dragEnabled,hideStatusIndicators:this.hideStatusIndicators,hideCatalogLayerList:this.hideCatalogLayerList,item:e,messages:this.messages,layerTablesEnabled:this.layerTablesEnabled,listModeDisabled:this.viewModel.listModeDisabled,operationalItems:this.operationalItems,parent:t,parentTitles:i,rootGroupUid:this._rootGroupUid,selectedDragItemLayerUid:this._selectedDragItemLayerUid,selectedItems:this.selectedItems,selectionMode:this.selectionMode,setCurrentActiveItem:this._setCurrentActiveItem,showTemporaryLayerIndicators:this.showTemporaryLayerIndicators,showCloseButton:this.showCloseButton,showCollapseButton:this.showCollapseButton,showErrors:this.showErrors,showHeading:this.showHeading,showFilter:this.showFilter,clearActiveItem:this._clearActiveItem,visibilityAppearance:this.visibilityAppearance,handleAction:this._onTriggerAction,handleCatalogOpen:this._onCatalogOpen,handleSelectedDragItemLayerUidChange:this._onSelectedDragItemLayerUidChange,handleTablesOpen:this._onTablesOpen,handleTooltipReferenceChange:this._onTooltipReferenceChange,view:this.view}))}};x("arcgis-layer-list-next",O);return O},"layers/list/LayerItemCollection","core/Collection","core/reactiveUtils",a,c,e,h,i,l,n,o,r,s,t)
2
+ import t from"./XHF3WRCS.js";import"./2X677DFU.js";import{a as g}from"./JCRPP54Z.js";import s from"./FUQUIU52.js";import r from"./CZPZHMHT.js";import{a as j,b as q,c as z,g as F,h as J,j as K,k as Q,m,n as T}from"./FCNNRX3Q.js";import{a as H}from"./TXYWZMGM.js";import{a as b}from"./SSNCB7LI.js";import o from"./R26ZJOWO.js";import n from"./TMJX7DFH.js";import l from"./QZ5LJH35.js";import"./VJVKFKSG.js";import i from"./CBB2T3RI.js";import{a as k}from"./OHCCNZCY.js";import{a as w}from"./JD74LG7K.js";import{a as G}from"./2CLE72G4.js";import h from"./G37JKMBJ.js";import e from"./75OH7AOP.js";import c from"./CODEI67F.js";import{h as B}from"./R2XADTZ4.js";import"./FZBSTBH3.js";import a from"./7XCYURYF.js";import"./QUZTFUWM.js";import{b as N}from"./4TV72DOP.js";import"./XURWCCLX.js";import{B as P,N as L,O as f,P as R,R as v,T as E,U as M,W as x,b as d,x as p}from"./I2BIPOZQ.js";import"./H6RQVSYM.js";export default $arcgis.t(([re,u,{on:A,watch:te},,,,S,U,,,,,{e:V,h:W,k:X},{a:Y,b:Z,c:ee}])=>{var ie="nested",le=U(re),O=class extends R{constructor(){super(...arguments),this._lastDragDetail=null,this._rootListRef=L(),this._layerFlowItemRef=L(),this._panelFlowItemRef=L(),this._selectedDragItemLayerUid=null,this._rootGroupUid=`operational-${P()}`,this._openedLayersController=null,this.messages=k(),this._canMove=({dragEl:e,fromEl:t,toEl:i},a)=>{let s=a==="pull"?this.listItemCanGiveFunction:this.listItemCanReceiveFunction,r=m(e,this.operationalItems);if(!r?.sortable)return!1;let l=this._resolveListContainer(t),o=this._resolveListContainer(i),n=this._getContainerItem(l),c=T(l),y=this._getContainerItem(o),_=T(o),$=!!c&&!!_&&c===_,I={selected:r,from:n,to:y},C=l?.group,h=o?.group,se=n?.layer?.type??"",ae=y?.layer?.type??"",D=new Set(["map-image","catalog","knowledge-graph"]);return C&&h&&typeof s=="function"?s(I):$&&!D.has(se)&&!D.has(ae)&&r?.layer?.type!=="sublayer"},this._onCatalogOpen=e=>{this.openedLayers.push(e.layer?.parent)},this._onTablesOpen=e=>{this.openedLayers.push(e.layer)},this._clearActiveItem=()=>{this._activeItem=null},this._setCurrentActiveItem=e=>{this._activeItem=e},this._setActiveItem=e=>{if(this.visibilityAppearance!=="default")return;let t=Array.from(e.composedPath()).find(a=>a.classList?.contains(g.item)),i=m(t,this.operationalItems);this._activeItem=i},this.viewModel=le(this),this.arcgisClose=G(this),this._activeItem=null,this._onTooltipReferenceChange=(e,t)=>{t?this._tooltipReferenceMap.set(e,t):this._tooltipReferenceMap.delete(e)},this._onSelectedDragItemLayerUidChange=e=>{this._selectedDragItemLayerUid=e},this._onTriggerAction=(e,t)=>{this.triggerAction(e,t)},this._tooltipReferenceMap=new Map,this._layerListMap=new Map,this.layerTablesEnabled=new u(["knowledge-graph"]),this.mapImageOptions=null,this.openedLayerLists=new u,this.tileOptions=null,this.autoDestroyDisabled=!1,this.closed=!1,this.collapsed=!1,this.dragEnabled=!1,this.filterPlaceholder="",this.filterText="",this.headingLevel=2,this.hideCatalogLayerList=!1,this.hideNoFilterResultsNotice=!1,this.hideNoItemsNotice=!1,this.hideStatusIndicators=!1,this.icon="layers",this.layerTablesAvailable=new u(["knowledge-graph"]),this.listItemCreatedFunction=this.viewModel.listItemCreatedFunction,this.listModeDisabled=this.viewModel.listModeDisabled,this.minDragEnabledItems=z,this.minFilterItems=q,this.openedLayers=new u,this.operationalItems=this.viewModel.operationalItems,this.selectedItems=new u,this.selectionMode="none",this.showCloseButton=!1,this.showCollapseButton=!1,this.showErrors=!1,this.showFilter=!1,this.showHeading=!1,this.showTemporaryLayerIndicators=!1,this.state=this.viewModel.state,this.view=this.viewModel.view,this.visibilityAppearance="default",this.arcgisFilterChange=p(),this.arcgisOpenedLayersChange=p(),this.arcgisPropertyChange=B()("state"),this.arcgisReady=p(),this.arcgisSelectedItemsChange=p(),this.arcgisTriggerAction=S(()=>this.viewModel,"trigger-action")}static{this.properties={_catalogLayerList:16,_tableList:16,_tooltipReferenceMap:16,_layerListMap:16,_totalItems:16,_visibleItems:16,_openedPanelItems:16,_dragEnabled:16,_filterEnabled:16,layerTablesEnabled:16,mapImageOptions:16,openedLayerLists:16,tileOptions:16,_renderedOpenLayerFlowItems:16,autoDestroyDisabled:5,catalogLayerList:32,catalogOptions:0,closed:5,collapsed:5,dragEnabled:5,filterPlaceholder:1,filterPredicate:0,filterText:1,headingLevel:9,hideCatalogLayerList:5,hideNoFilterResultsNotice:5,hideNoItemsNotice:5,hideStatusIndicators:5,icon:1,knowledgeGraphOptions:0,label:1,layerTablesAvailable:0,listItemCanGiveFunction:0,listItemCanReceiveFunction:0,listItemCreatedFunction:0,listModeDisabled:5,messageOverrides:0,minDragEnabledItems:9,minFilterItems:9,openedLayers:32,operationalItems:0,referenceElement:1,selectedItems:0,selectionMode:1,showCloseButton:5,showCollapseButton:5,showErrors:5,showFilter:5,showHeading:5,showTemporaryLayerIndicators:5,state:32,tableList:32,view:0,visibilityAppearance:1}}static{this.styles=[ee,Z]}get _totalItems(){return this.viewModel.operationalItems.flatten(e=>e.children.filter(t=>t.layer?.type!=="catalog-dynamic-group")).length}get _visibleItems(){return this.operationalItems?.filter(e=>!e.hidden&&(this.showErrors||!e.error))}get _openedPanelItems(){return this._visibleItems.flatten(e=>e.children).filter(e=>!e.hidden&&e.panel?.open&&!e.panel.disabled&&e.panel.flowEnabled&&(!W(e)||V(e)))}get _dragEnabled(){return this._totalItems>=this.minDragEnabledItems&&this.dragEnabled}get _filterEnabled(){return this._totalItems>=this.minFilterItems&&this.showFilter}get _renderedOpenLayerFlowItems(){let{openedLayers:e}=this;return e.toArray().map((t,i)=>this._renderLayerFlowItem(t,i===e.length-1))}get catalogLayerList(){return this._catalogLayerList}get tableList(){return this._tableList}async destroy(){await this.manager.destroy(),this._destroyOpenedLayerLists(),this._tooltipReferenceMap.clear()}loaded(){this.manager.onLifecycle(()=>[A(()=>this.openedLayers,"change",()=>{this._handleOpenedLayersChange()},{initial:!0}),A(()=>this.viewModel.operationalItems,"change",()=>F(this.selectedItems),{initial:!0}),te(()=>this.operationalItems.flatten(e=>e.children).map(e=>e.uid).join(","),()=>{F(this.selectedItems),this.requestUpdate()},{initial:!0}),A(()=>this.selectedItems,"change",()=>this.arcgisSelectedItemsChange.emit()),te(()=>[this.filterPredicate,this._rootListRef.value],()=>J(this._rootListRef.value,this.filterPredicate,this.operationalItems))])}triggerAction(e,t){return this.viewModel.triggerAction(e,t)}_resolveListContainer(e){return e?e.matches("calcite-list")?e:e.closest("calcite-list[data-item]")||(this._rootListRef.value?.contains(e)?this._rootListRef.value:null):null}_getContainerItem(e){let t=e?.getAttribute("data-item");return t?this._findItemByUid(t):null}_findItemByUid(e){let t=this.operationalItems?.toArray()??[];for(;t.length;){let i=t.shift();if(!i)continue;if(i.uid===e)return i;let a=i.children?.toArray()??[];t.push(...a)}return null}async _createFlowList(e,t){let{_layerListMap:i}=this,a=i.get(e);if(a)return a;let s=e.type==="catalog"?await this._createCatalogLayerList(e):await this._createTableList(e);return t.aborted||i.set(e,s),s}async _handleOpenedLayersChange(){let{_layerListMap:e,openedLayers:t,openedLayerLists:i}=this;this._openedLayersController?.abort();let a=new AbortController,{signal:s}=a;this._openedLayersController=a,e.forEach((o,n)=>{t.includes(n)||(o?.destroy?.(),e.delete(n))});let r=await Promise.all(t.map(o=>this._createFlowList(o,s)));if(s.aborted)return;i.removeAll(),i.addMany(r);let l=i.at(-1);l?"catalogLayer"in l?(this._catalogLayerList=l,this._tableList=void 0):(this._catalogLayerList=void 0,this._tableList=l):(this._catalogLayerList=void 0,this._tableList=void 0),this.arcgisOpenedLayersChange.emit()}_destroyOpenedLayerLists(){this.openedLayerLists.destroyAll(),this.openedLayers.removeAll(),this._layerListMap.clear()}async _createCatalogLayerList(e){let{headingLevel:t,catalogOptions:i,filterPlaceholder:a,listItemCreatedFunction:s,minFilterItems:r,selectionMode:l,visibilityAppearance:o}=this;return M(d`<arcgis-catalog-layer-list-next .headingLevel=${t} .filterPlaceholder=${i?.filterPlaceholder??a} .listItemCreatedFunction=${i?.listItemCreatedFunction??s} .minFilterItems=${i?.minFilterItems??r} .selectionMode=${i?.selectionMode??l} .visibilityAppearance=${i?.visibilityAppearance??o} .showErrors=${i?.showErrors??this.showErrors} .showFilter=${i?.showFilter??this.showFilter} .hideStatusIndicators=${i?.hideStatusIndicators??this.hideStatusIndicators} .showTemporaryLayerIndicators=${i?.showTemporaryLayerIndicators??this.showTemporaryLayerIndicators} .messageOverrides=${this.messageOverrides} @arcgisReady=${n=>n.stopPropagation()} .catalogLayer=${e} .view=${this.view} .referenceElement=${this.referenceElement} @catalogOpen=${this._onCatalogOpen} @tablesOpen=${this._onTablesOpen}></arcgis-catalog-layer-list-next>`)}_getTableListParams(e){switch(e.type){case"knowledge-graph":return{...this.knowledgeGraphOptions,tables:e.tables};case"map-image":return{...this.mapImageOptions,tables:e.subtables};case"tile":return{...this.tileOptions,tables:e.subtables};default:return null}}async _createTableList(e){let{headingLevel:t,selectionMode:i,dragEnabled:a}=this,s=this._getTableListParams(e);return M(d`<arcgis-table-list-next .headingLevel=${s?.headingLevel??t} .selectionMode=${s?.selectionMode??i} .dragEnabled=${s?.dragEnabled??a} .collapsed=${s?.collapsed} .filterPlaceholder=${s?.filterPlaceholder} .filterText=${s?.filterText} .icon=${s?.icon??void 0} .label=${s?.label??void 0} .listItemCreatedFunction=${s?.listItemCreatedFunction} .messageOverrides=${this.messageOverrides} .tables=${s?.tables} .referenceElement=${this.referenceElement} @arcgisReady=${r=>r.stopPropagation()}></arcgis-table-list-next>`)}_handlePanelFlowItemBack(e){e.open=!1}_moveLayerFromChildList({toEl:e,fromEl:t,dragEl:i,newIndex:a}){let s=this._resolveListContainer(e),r=this._resolveListContainer(t),l=m(i,this.operationalItems),o=this._getContainerItem(s),n=this._getContainerItem(r);a==null||!l||(this.viewModel.moveItem(l,n,o,a),X(this,l.uid,c=>c!==i&&this._resolveListContainer(c.parentElement)===s))}_onCalciteListDragEnd(e){let{fromEl:t,toEl:i,dragEl:a,oldIndex:s}=e;if(t!==i){a.remove();return}s==null||!t||!a||t.insertBefore(a,t.children[s])}_onCalciteListOrderChange(e){let{_lastDragDetail:t}=this,{dragEl:i,newIndex:a}=e,s=this._resolveListContainer(e.fromEl),r=this._resolveListContainer(e.toEl),l=t?.newIndex===a&&t?.dragEl===i&&t?.toEl===r&&t?.fromEl===s;if(!(!s||!r||l)){if(this._lastDragDetail={...e,fromEl:s,toEl:r},this._selectedDragItemLayerUid=i.value,s===r){let o=Array.from(s.children).filter(n=>n?.matches("calcite-list-item")).map(n=>n.value.layer?.uid??"");this._sortLayers(s,o);return}this._moveLayerFromChildList({toEl:r,fromEl:s,dragEl:i,newIndex:a})}}_sortLayers(e,t){if(e)if(e===this._rootListRef.value)K(this.el.view?.map?.layers,t);else{let i=m(e,this.operationalItems);if(!i)return;Q(i,t)}}_handleCalciteListChange(e){let{selectionMode:t,selectedItems:i}=this;if(t==="none")return;let a=e.target.selectedItems.map(s=>m(s,this.operationalItems)).filter(Boolean);i.removeAll(),i.addMany(a)}render(){let{state:e}=this,t={[w.hidden]:e==="loading",[w.disabled]:e==="disabled"};return d`<div class=${v(N(w.widget,t))}>${this._visibleItems?.length?this._renderItemTooltips():null}${this._renderItems()}</div>`}_renderItemTooltip(e){let{_tooltipReferenceMap:t,messages:i}=this;return e?d`<calcite-tooltip overlay-positioning=fixed .referenceElement=${t.get(e.layer?.uid??"")}>${i.layerIncompatibleTooltip}</calcite-tooltip>`:null}_renderItemTooltipNodes(e){if(e.incompatible)return this._renderItemTooltip(e);let t=e.children?.filter(i=>!i.hidden).toArray().map(i=>this._renderItemTooltipNodes(i))??[];return t.length?t:null}_renderItemTooltips(){return this._visibleItems?.toArray().map(e=>this._renderItemTooltipNodes(e))}_renderNoItemsMessage(){return d`<div slot=message>${this.messages.noItemsToDisplay}</div>`}_renderNoItems(){return this.hideNoItemsNotice?null:d`<div class=${v(g.itemMessage)}><calcite-notice icon=information kind=info open width=full>${this._renderNoItemsMessage()}</calcite-notice></div>`}_renderLayerFlowItem(e,t){let{messages:i,openedLayers:a}=this,s=e.title||this.messages.untitledLayer;return b(e?.uid??s,d`<calcite-flow-item data-layer-uid=${e?.uid??""??E} .description=${s} .heading=${i[e.type==="catalog"?"catalogLayers":"tables"]} .headingLevel=${this.headingLevel} .selected=${t} @calciteFlowItemBack=${r=>{r.preventDefault(),a.pop(),a.at(-1)&&this._layerFlowItemRef.value?.setFocus()}} ${f(this._layerFlowItemRef)}>${this._layerListMap.get(e)}</calcite-flow-item>`)}_renderPanelFlowItems(){let{_openedPanelItems:e,openedLayers:t}=this;return H(e.toArray(),i=>i.uid,(i,a)=>{let{panel:s,title:r}=i,l=()=>this._handlePanelFlowItemBack(s);return d`<calcite-flow-item .description=${r} .heading=${s.title} .headingLevel=${this.headingLevel} .selected=${!t.length&&a===e.length-1} @calciteFlowItemBack=${o=>{o.preventDefault(),l()}} ${f(this._panelFlowItemRef)}><arcgis-layer-list-item-panel .item=${i} .view=${this.view}></arcgis-layer-list-item-panel><calcite-button appearance=transparent @click=${l} slot=footer-actions width=full>${this.messages.back}</calcite-button></calcite-flow-item>`})}_renderItems(){let{collapsed:e,_visibleItems:t,_openedPanelItems:i,_filterEnabled:a,_rootGroupUid:s,showCloseButton:r,showCollapseButton:l,showHeading:o,_dragEnabled:n,selectionMode:c,filterText:y,openedLayers:_,filterPlaceholder:$,messages:I}=this,C=[d`<calcite-flow-item .closable=${r} .closed=${this.closed} .collapsed=${e} .collapsible=${l} .heading=${o?I.componentLabel:void 0} .headingLevel=${this.headingLevel} .selected=${!_.length&&!i.length} @calciteFlowItemClose=${()=>this.closed=!1}>${t?.length?d`<calcite-list @focusin=${this._setActiveItem} @focusout=${this._clearActiveItem} .canPull=${h=>this._canMove(h,"pull")} .canPut=${h=>this._canMove(h,"put")} data-layer-type=${s??E} .displayMode=${ie} .dragEnabled=${n} .filterEnabled=${a} .filterPlaceholder=${$} .filterProps=${j} .filterText=${a?y:""} .group=${s} .label=${I.componentLabel} @mouseleave=${this._clearActiveItem} @mouseover=${this._setActiveItem} selection-appearance=highlight .selectionMode=${c} @calciteListChange=${this._handleCalciteListChange} @calciteListFilter=${h=>{this.filterText=h.currentTarget?.filterText??"",this.arcgisFilterChange.emit()}} @calciteListOrderChange=${h=>this._onCalciteListOrderChange(h.detail)} @calciteListDragEnd=${h=>this._onCalciteListDragEnd(h.detail)} ${f(this._rootListRef)}>${t.toArray().map(h=>this._renderItem(h))}${a&&!this.hideNoFilterResultsNotice?d`<div class=${v(g.filterNoResults)} slot=filter-no-results><calcite-notice kind=info open width=full>${this._renderNoItemsMessage()}</calcite-notice></div>`:null}</calcite-list>`:this._renderNoItems()}</calcite-flow-item>`,this._renderPanelFlowItems(),this._renderedOpenLayerFlowItems];return this.closed?null:b("root-flow",d`<calcite-flow>${C}</calcite-flow>`)}_renderItem(e,t,i){return b(e.uid,Y({activeItem:this._activeItem,canMove:this._canMove,css:g,displayMode:ie,dragEnabled:this.dragEnabled,hideStatusIndicators:this.hideStatusIndicators,hideCatalogLayerList:this.hideCatalogLayerList,item:e,messages:this.messages,layerTablesEnabled:this.layerTablesEnabled,listModeDisabled:this.viewModel.listModeDisabled,operationalItems:this.operationalItems,parent:t,parentTitles:i,rootGroupUid:this._rootGroupUid,selectedDragItemLayerUid:this._selectedDragItemLayerUid,selectedItems:this.selectedItems,selectionMode:this.selectionMode,setCurrentActiveItem:this._setCurrentActiveItem,showTemporaryLayerIndicators:this.showTemporaryLayerIndicators,showCloseButton:this.showCloseButton,showCollapseButton:this.showCollapseButton,showErrors:this.showErrors,showHeading:this.showHeading,showFilter:this.showFilter,clearActiveItem:this._clearActiveItem,visibilityAppearance:this.visibilityAppearance,handleAction:this._onTriggerAction,handleCatalogOpen:this._onCatalogOpen,handleSelectedDragItemLayerUidChange:this._onSelectedDragItemLayerUidChange,handleTablesOpen:this._onTablesOpen,handleTooltipReferenceChange:this._onTooltipReferenceChange,view:this.view}))}};x("arcgis-layer-list-next",O);return O},"layers/list/LayerItemCollection","core/Collection","core/reactiveUtils",a,c,e,h,i,l,n,o,r,s,t)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{d as s}from"./O7RSAJOS.js";import{a as f}from"./TXYWZMGM.js";import{a as n}from"./POKO37D3.js";import{a as g}from"./WT5SGWE4.js";import"./2OJYLBNC.js";import"./XURWCCLX.js";import{P as p,W as u,a as d,b as i}from"./I2BIPOZQ.js";import"./H6RQVSYM.js";export default $arcgis.t(([$])=>{var v=d`:host{--calcite-label-margin-bottom: 0;gap:var(--calcite-spacing-md);flex-direction:column;display:flex}calcite-label{display:block}`,m=class extends p{constructor(){super(...arguments),this.scale="s",this.hideColorPicker=!1,this.hideInterval=!1}static{this.properties={options:0,scale:1,hideColorPicker:5,hideInterval:5,messages:0}}static{this.styles=v}render(){let{options:t,scale:l}=this,{color:r,interval:c}=t,a=this.messages?.discrete;return i`${n({hidden:this.hideInterval,children:i`<calcite-label .scale=${l}>${a?.intervalLabel}<calcite-select .label=${a?.intervalLabel??""} .scale=${l} @calciteSelectChange=${e=>{let b=e.target.value,h=Number.parseInt(b,10);Number.isFinite(h)&&(this.options.interval=h)}}>${f(I,e=>e,e=>i`<calcite-option .selected=${e===c} .value=${String(e)} .label=${C(e,g(this.el).t9nLocale)}></calcite-option>`)}</calcite-select></calcite-label>`})}${n({hidden:this.hideColorPicker,children:i`<arcgis-color-select .color=${r} .label=${a?.colorLabel} @arcgisColorChanged=${e=>{this.options.color=e.detail}}></arcgis-color-select>`})}`}};function C(o,t){return new Intl.DurationFormat(t,{style:"long"}).format(L(o))}function L(o){let t=Math.floor(o/1e3),l=Math.floor(t/3600),r=Math.floor(t%3600/60),c=t%60;return{hours:l,minutes:r,seconds:c}}var I=new $([s(15,"minutes","milliseconds"),s(30,"minutes","milliseconds"),s(1,"hours","milliseconds"),s(2,"hours","milliseconds"),s(3,"hours","milliseconds")]);u("arcgis-shadow-cast-discrete-config",m);return m},"core/Collection")
2
+ import{d as s}from"./O7RSAJOS.js";import{a as f}from"./TXYWZMGM.js";import{a as n}from"./POKO37D3.js";import{a as g}from"./FZBSTBH3.js";import"./4TV72DOP.js";import"./XURWCCLX.js";import{P as p,W as u,a as d,b as i}from"./I2BIPOZQ.js";import"./H6RQVSYM.js";export default $arcgis.t(([$])=>{var v=d`:host{--calcite-label-margin-bottom: 0;gap:var(--calcite-spacing-md);flex-direction:column;display:flex}calcite-label{display:block}`,m=class extends p{constructor(){super(...arguments),this.scale="s",this.hideColorPicker=!1,this.hideInterval=!1}static{this.properties={options:0,scale:1,hideColorPicker:5,hideInterval:5,messages:0}}static{this.styles=v}render(){let{options:t,scale:l}=this,{color:r,interval:c}=t,a=this.messages?.discrete;return i`${n({hidden:this.hideInterval,children:i`<calcite-label .scale=${l}>${a?.intervalLabel}<calcite-select .label=${a?.intervalLabel??""} .scale=${l} @calciteSelectChange=${e=>{let b=e.target.value,h=Number.parseInt(b,10);Number.isFinite(h)&&(this.options.interval=h)}}>${f(I,e=>e,e=>i`<calcite-option .selected=${e===c} .value=${String(e)} .label=${C(e,g(this.el).t9nLocale)}></calcite-option>`)}</calcite-select></calcite-label>`})}${n({hidden:this.hideColorPicker,children:i`<arcgis-color-select .color=${r} .label=${a?.colorLabel} @arcgisColorChanged=${e=>{this.options.color=e.detail}}></arcgis-color-select>`})}`}};function C(o,t){return new Intl.DurationFormat(t,{style:"long"}).format(L(o))}function L(o){let t=Math.floor(o/1e3),l=Math.floor(t/3600),r=Math.floor(t%3600/60),c=t%60;return{hours:l,minutes:r,seconds:c}}var I=new $([s(15,"minutes","milliseconds"),s(30,"minutes","milliseconds"),s(1,"hours","milliseconds"),s(2,"hours","milliseconds"),s(3,"hours","milliseconds")]);u("arcgis-shadow-cast-discrete-config",m);return m},"core/Collection")
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import l from"./TO2AHJ2D.js";import{a as J}from"./JCRPP54Z.js";import k from"./AQTSDDVK.js";import j from"./QGB7AGII.js";import{a as S,b as H,g as G,h as U,m as F}from"./FCNNRX3Q.js";import{a as B}from"./TXYWZMGM.js";import{a as w}from"./SSNCB7LI.js";import i from"./Z2NU3RGI.js";import h from"./TMJX7DFH.js";import g from"./QZ5LJH35.js";import"./VJVKFKSG.js";import f from"./5TZGXGC2.js";import{a as R}from"./O3V63YCY.js";import{a as p}from"./JD74LG7K.js";import e from"./HZWFDJFV.js";import d from"./YSWNUR6Q.js";import b from"./QRXQ5LVY.js";import{h as D}from"./PME66FRM.js";import"./WT5SGWE4.js";import a from"./D7FCBWGA.js";import"./QUZTFUWM.js";import{b as x}from"./2OJYLBNC.js";import"./XURWCCLX.js";import{B as T,N as O,O as m,P,R as y,T as $,U as L,W as A,b as r,x as c}from"./I2BIPOZQ.js";import"./H6RQVSYM.js";export default $arcgis.t(([{createReactiveMap:K},I,{on:C,watch:W},X,Y,{j:f},,,k,N,,,,,,{a:j,b:q,c:z}])=>{var g=J,Z=u=>{let e=u?.type;return e==="knowledge-graph"||e==="map-image"||e==="tile"},ee=u=>u?.type==="catalog",Q="nested",te=I.ofType(Y),se=N(X),_=class extends P{constructor(){super(...arguments),this.#l=`operational-${T()}`,this.#e=null,this.#o=O(),this.#i=!1,this.#t=!1,this.messages=R(),this.#r=()=>{this._activeItem=null},this.#n=e=>{if(this.visibilityAppearance!=="default")return;let t=Array.from(e.composedPath()).find(s=>s.classList?.contains(g.item));this._activeItem=F(t)},this.#a=K(),this.#s=K(),this.#h=e=>{e&&this.#v(e)},this.#c=e=>{e&&this.#b(e)},this.#d=e=>{e&&this.#$(e)},this.viewModel=se(this),this._activeItem=null,this._focusRootFlowItem=!1,this._focusPanelFlowItem=!1,this._focusLayerFlowItem=null,this.layerTablesEnabled=new I(["knowledge-graph"]),this.mapImageOptions=null,this.tileOptions=null,this.autoDestroyDisabled=!1,this.closed=!1,this.collapsed=!1,this.filterPlaceholder="",this.filterText="",this.headingLevel=2,this.hideCatalogLayerList=!1,this.hideNoFilterResultsNotice=!1,this.hideNoItemsNotice=!1,this.hideStatusIndicators=!1,this.listItemCreatedFunction=this.viewModel.listItemCreatedFunction,this.listModeDisabled=this.viewModel.listModeDisabled,this.minFilterItems=H,this.openedLayerLists=new I,this.openedLayers=new I,this.selectedItems=new te,this.selectionMode="none",this.showCloseButton=!1,this.showCollapseButton=!1,this.showErrors=!1,this.showFilter=!1,this.showHeading=!1,this.showTemporaryLayerIndicators=!1,this.state=this.viewModel.state,this.topLayerDisabled=!1,this.view=this.viewModel.view,this.visibilityAppearance="default",this.arcgisCatalogItemsChange=c(),this.arcgisFilterChange=c(),this.arcgisOpenedLayersChange=c(),this.arcgisPropertyChange=D()("state"),this.arcgisReady=c(),this.arcgisSelectedItemsChange=c(),this.arcgisTriggerAction=k(()=>this.viewModel,"trigger-action")}static{this.properties={_catalogLayerList:16,_activeItem:16,_focusRootFlowItem:16,_focusPanelFlowItem:16,_focusLayerFlowItem:16,_totalItems:16,_filterEnabled:16,_visibleItems:16,_openedPanelItems:16,_renderedOpenLayerFlowItems:16,layerTablesEnabled:16,mapImageOptions:16,tileOptions:16,autoDestroyDisabled:5,catalogItems:0,catalogLayer:0,catalogOptions:0,closed:5,collapsed:5,filterPlaceholder:1,filterPredicate:0,filterText:1,headingLevel:9,hideCatalogLayerList:5,hideNoFilterResultsNotice:5,hideNoItemsNotice:5,hideStatusIndicators:5,knowledgeGraphOptions:0,label:1,listItemCreatedFunction:0,listModeDisabled:5,messageOverrides:0,minFilterItems:9,onCatalogOpen:0,onTablesOpen:0,openedLayerLists:32,openedLayers:32,referenceElement:1,selectedItems:0,selectionMode:1,showCloseButton:5,showCollapseButton:5,showErrors:5,showFilter:5,showHeading:5,showTemporaryLayerIndicators:5,state:32,topLayerDisabled:5,view:0,visibilityAppearance:1}}static{this.styles=[z,q]}#l;#e;#o;#i;#t;#r;#n;#a;#s;#h;#c;#d;get _totalItems(){return this.catalogItems?.flatten(e=>e.children.filter(t=>t.layer?.type!=="catalog-dynamic-group")).length??0}get _filterEnabled(){return this._totalItems>=this.minFilterItems&&this.showFilter}get _visibleItems(){return this.catalogItems?.filter(e=>!e.hidden&&(this.showErrors||!e.error))}get _openedPanelItems(){return this._visibleItems.flatten(e=>e.children).filter(({hidden:e,panel:t})=>!e&&t?.open&&!t.disabled&&t.flowEnabled)}get _renderedOpenLayerFlowItems(){let{openedLayers:e}=this;return e.toArray().map((t,s)=>this.#D(t,s===e.length-1))}get catalogItems(){return this.viewModel.catalogItems}set catalogItems(e){this.viewModel.catalogItems=e}get catalogLayer(){return this.viewModel.catalogLayer}set catalogLayer(e){this.viewModel.catalogLayer=e}async destroy(){this.#i||this.#t||(this.#i=!0,this.#e?.abort(),this.#e=null,await this.manager.destroy(),this.openedLayerLists.removeAll(),this.openedLayers.removeAll(),this.#s.clear(),this.#a.clear(),this.#t=!0,this.#i=!1)}loaded(){this.manager.onLifecycle(()=>[C(()=>this.openedLayers,"change",()=>{this.#w()}),C(()=>this.viewModel.catalogItems,"change",()=>{G(this.selectedItems),this.arcgisCatalogItemsChange.emit()}),C(()=>this.selectedItems,"change",()=>this.arcgisSelectedItemsChange.emit()),W(()=>[this.filterPredicate,this.#o.value],()=>U(this.#o.value,this.filterPredicate))])}disconnectedCallback(){super.disconnectedCallback(),this.#e?.abort(),this.#e=null,!this.autoDestroyDisabled&&!this.#t&&!this.#i&&this.destroy()}#y(e,t){return this.viewModel.triggerAction(e,t)}async#f(e,t){let s=this.#s.get(e);if(s)return s;let a=e.type==="catalog"?await this.#L(e):await this.#C(e);return t.aborted||!this.isConnected||this.#t?(a?.destroy?.(),a):(t.aborted||this.#s.set(e,a),a)}async#w(){if(!this.isConnected||this.#t)return;let{openedLayers:e,openedLayerLists:t}=this;this.#e?.abort();let s=new AbortController,{signal:a}=s;this.#e=s,this.#s.forEach((n,h)=>{e.includes(h)||(n?.destroy?.(),this.#s.delete(h))});let o=await Promise.all(e.map(n=>this.#f(n,a)));if(a.aborted||!this.isConnected||this.#t)return;t.removeAll(),t.addMany(o);let i=t.at(-1),l=i&&"catalogLayer"in i?i:void 0;this._catalogLayerList!==l&&(this._catalogLayerList=l),this.arcgisOpenedLayersChange.emit()}#I(e){e.open=!1,this._focusRootFlowItem=!0}#b(e){this._focusRootFlowItem&&(this._focusRootFlowItem=!1,f(e))}#v(e){this._focusPanelFlowItem&&(this._focusPanelFlowItem=!1,f(e))}#$(e){this._focusLayerFlowItem===e.dataset.layerUid&&(this._focusLayerFlowItem=null,f(e))}async#L(e){let{headingLevel:t,catalogOptions:s,view:a,referenceElement:o,filterPlaceholder:i,listItemCreatedFunction:l,minFilterItems:n,selectionMode:h,visibilityAppearance:d}=this;return L(r`<arcgis-catalog-layer-list-next .headingLevel=${t} .filterPlaceholder=${s?.filterPlaceholder??i} .listItemCreatedFunction=${s?.listItemCreatedFunction??l} .minFilterItems=${s?.minFilterItems??n} .selectionMode=${s?.selectionMode??h} .visibilityAppearance=${s?.visibilityAppearance??d} .showErrors=${s?.showErrors??this.showErrors} .showFilter=${s?.showFilter??this.showFilter} .hideStatusIndicators=${s?.hideStatusIndicators??this.hideStatusIndicators} .showTemporaryLayerIndicators=${s?.showTemporaryLayerIndicators??this.showTemporaryLayerIndicators} .messageOverrides=${this.messageOverrides} @arcgisReady=${b=>b.stopPropagation()} .catalogLayer=${e} .view=${a} .referenceElement=${o} @catalogOpen=${this.#p} @tablesOpen=${this.#m}></arcgis-catalog-layer-list-next>`)}#F(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#C(e){let{headingLevel:t,selectionMode:s,referenceElement:a,view:o}=this,i=this.#F(e);return L(r`<arcgis-table-list-next .headingLevel=${i?.headingLevel??t} .selectionMode=${i?.selectionMode??s} .collapsed=${i?.collapsed} .filterPlaceholder=${i?.filterPlaceholder} .filterText=${i?.filterText} .label=${i?.label} .tables=${i?.tables} .view=${o} .referenceElement=${a} @arcgisReady=${l=>l.stopPropagation()}></arcgis-table-list-next>`)}#m(e){if(this.onTablesOpen){this.onTablesOpen(e);return}let t=e.layer;Z(t)&&(this.openedLayers.push(t),this._focusLayerFlowItem=t.uid)}#p(e){if(this.onCatalogOpen){this.onCatalogOpen(e);return}let t=e.layer?.parent;ee(t)&&(this.openedLayers.push(t),this._focusLayerFlowItem=e.layer?.uid)}#_(e,t){t?this.#a.set(e,t):this.#a.delete(e)}#M(e,t){this.#y(e,t)}#E(e){let{selectionMode:t,selectedItems:s}=this;if(t==="none")return;let a=e.target.selectedItems.map(o=>F(o)).filter(Boolean);s.removeAll(),s.addMany(a)}render(){let{state:e}=this,t={[p.hidden]:e==="loading",[p.disabled]:e==="disabled"};return r`<div class=${y(x(p.widget,p.panel,t))}>${this._visibleItems?.length?this.#O():null}${this.#x()}</div>`}#T(e){let t=this.#a,s=this.messages;return e?.layer?r`<calcite-tooltip overlay-positioning=fixed .referenceElement=${t.get(e.layer.uid)} .topLayerDisabled=${this.topLayerDisabled}>${s.layerIncompatibleTooltip}</calcite-tooltip>`:null}#g(e){return e.incompatible?this.#T(e):e.children?.filter(t=>!t.hidden).toArray().map(t=>this.#g(t))}#O(){return this._visibleItems?.toArray().map(e=>this.#g(e))}#u(){return r`<div slot=message>${this.messages.noItemsToDisplay}</div>`}#P(){return this.hideNoItemsNotice?null:r`<div class=${y(g.itemMessage)}><calcite-notice icon=information kind=info open width=full>${this.#u()}</calcite-notice></div>`}#A(){let{_openedPanelItems:e,openedLayers:t}=this;return B(e.toArray(),({uid:s})=>s,(s,a)=>{let{uid:o,title:i,panel:l}=s,n=()=>this.#I(l);return r`<calcite-flow-item .description=${i} .heading=${l.title} .headingLevel=${this.headingLevel} .selected=${!t.length&&a===e.length-1} @calciteFlowItemBack=${h=>{h.preventDefault(),n()}} ${m(this.#h)}><arcgis-layer-list-item-panel .item=${s} .view=${this.view}></arcgis-layer-list-item-panel><calcite-button appearance=transparent slot=footer-actions width=full @click=${n}>Back</calcite-button></calcite-flow-item>`})}#x(){let{collapsed:e,_visibleItems:t,_filterEnabled:s,showCloseButton:a,showCollapseButton:o,showHeading:i,selectionMode:l,filterText:n,filterPlaceholder:h,openedLayers:d,_openedPanelItems:b}=this,M=this.#l,E=this.label??this.messages.componentLabel??"",V=[r`<calcite-flow-item .closable=${a} .closed=${this.closed} .collapsed=${e} .collapsible=${o} .heading=${i?E:void 0} .headingLevel=${this.headingLevel} .selected=${!d.length&&!b.length} @calciteFlowItemClose=${()=>this.closed=!0} ${m(this.#c)}>${t?.length?r`<calcite-list data-layer-type=${M??$} .displayMode=${Q} .filterEnabled=${s} .filterPlaceholder=${h} .filterProps=${S} .filterText=${s?n:""} .group=${M} .label=${E} @focusin=${this.#n} @focusout=${this.#r} selection-appearance=border .selectionMode=${l} @calciteListChange=${this.#E} @calciteListFilter=${v=>{this.filterText=v.currentTarget?.filterText??"",this.arcgisFilterChange.emit()}} @mouseleave=${this.#r} @mouseover=${this.#n} ${m(this.#o)}>${t.toArray().map(v=>this.#R(v))}${s&&!this.hideNoFilterResultsNotice?r`<div class=${y(g.filterNoResults)} slot=filter-no-results><calcite-notice kind=info open width=full>${this.#u()}</calcite-notice></div>`:null}</calcite-list>`:this.#P()}</calcite-flow-item>`,this.#A(),this._renderedOpenLayerFlowItems];return this.closed?null:w("root-flow",r`<calcite-flow>${V}</calcite-flow>`)}#D(e,t){let{openedLayers:s}=this,a=e.title||this.messages.untitledLayer;return w(e.uid,r`<calcite-flow-item data-layer-uid=${e.uid??$} .description=${a} .heading=${this.messages[e.type==="catalog"?"catalogLayers":"tables"]} .headingLevel=${this.headingLevel} .selected=${t} @calciteFlowItemBack=${o=>{o.preventDefault(),s.pop();let i=s.at(-1);i?this._focusLayerFlowItem=i.uid:this._focusRootFlowItem=!0}} ${m(this.#d)}>${this.#s.get(e)}</calcite-flow-item>`)}#R(e,t,s){let{hideStatusIndicators:a,showCloseButton:o,showCollapseButton:i,showErrors:l,showFilter:n,showHeading:h,showTemporaryLayerIndicators:d}=this;return w(e.uid,j({activeItem:this._activeItem??void 0,css:{...g,itemCatalogIcon:g.itemActionIcon},displayMode:Q,dragEnabled:!1,item:e,layerTablesEnabled:this.layerTablesEnabled,listModeDisabled:this.viewModel.listModeDisabled,messages:this.messages,parent:t,parentTitles:s,rootGroupUid:this.#l,selectedItems:this.selectedItems,selectionMode:this.selectionMode,visibilityAppearance:this.visibilityAppearance,hideStatusIndicators:a,showCloseButton:o,showCollapseButton:i,showErrors:l,showFilter:n,showHeading:h,showTemporaryLayerIndicators:d,handleAction:this.#M.bind(this),handleCatalogOpen:this.#p.bind(this),handleTablesOpen:this.#m.bind(this),handleTooltipReferenceChange:this.#_.bind(this),view:this.view}))}};A("arcgis-catalog-layer-list-next",_);return _},"applications/Components/featureUtils","core/Collection","core/reactiveUtils","layers/list/CatalogItemCollection","layers/list/Item",a,b,d,e,f,g,h,i,j,k,l)
2
+ import l from"./XHF3WRCS.js";import{a as J}from"./JCRPP54Z.js";import k from"./FUQUIU52.js";import j from"./CZPZHMHT.js";import{a as S,b as H,g as G,h as U,m as F}from"./FCNNRX3Q.js";import{a as B}from"./TXYWZMGM.js";import{a as w}from"./SSNCB7LI.js";import i from"./R26ZJOWO.js";import h from"./TMJX7DFH.js";import g from"./QZ5LJH35.js";import"./VJVKFKSG.js";import f from"./CBB2T3RI.js";import{a as R}from"./OHCCNZCY.js";import{a as p}from"./JD74LG7K.js";import e from"./G37JKMBJ.js";import d from"./75OH7AOP.js";import b from"./CODEI67F.js";import{h as D}from"./R2XADTZ4.js";import"./FZBSTBH3.js";import a from"./7XCYURYF.js";import"./QUZTFUWM.js";import{b as x}from"./4TV72DOP.js";import"./XURWCCLX.js";import{B as T,N as O,O as m,P,R as y,T as $,U as L,W as A,b as r,x as c}from"./I2BIPOZQ.js";import"./H6RQVSYM.js";export default $arcgis.t(([{createReactiveMap:K},I,{on:C,watch:W},X,Y,{j:f},,,k,N,,,,,,{a:j,b:q,c:z}])=>{var g=J,Z=u=>{let e=u?.type;return e==="knowledge-graph"||e==="map-image"||e==="tile"},ee=u=>u?.type==="catalog",Q="nested",te=I.ofType(Y),se=N(X),_=class extends P{constructor(){super(...arguments),this.#l=`operational-${T()}`,this.#e=null,this.#o=O(),this.#i=!1,this.#t=!1,this.messages=R(),this.#r=()=>{this._activeItem=null},this.#n=e=>{if(this.visibilityAppearance!=="default")return;let t=Array.from(e.composedPath()).find(s=>s.classList?.contains(g.item));this._activeItem=F(t)},this.#a=K(),this.#s=K(),this.#h=e=>{e&&this.#v(e)},this.#c=e=>{e&&this.#b(e)},this.#d=e=>{e&&this.#$(e)},this.viewModel=se(this),this._activeItem=null,this._focusRootFlowItem=!1,this._focusPanelFlowItem=!1,this._focusLayerFlowItem=null,this.layerTablesEnabled=new I(["knowledge-graph"]),this.mapImageOptions=null,this.tileOptions=null,this.autoDestroyDisabled=!1,this.closed=!1,this.collapsed=!1,this.filterPlaceholder="",this.filterText="",this.headingLevel=2,this.hideCatalogLayerList=!1,this.hideNoFilterResultsNotice=!1,this.hideNoItemsNotice=!1,this.hideStatusIndicators=!1,this.listItemCreatedFunction=this.viewModel.listItemCreatedFunction,this.listModeDisabled=this.viewModel.listModeDisabled,this.minFilterItems=H,this.openedLayerLists=new I,this.openedLayers=new I,this.selectedItems=new te,this.selectionMode="none",this.showCloseButton=!1,this.showCollapseButton=!1,this.showErrors=!1,this.showFilter=!1,this.showHeading=!1,this.showTemporaryLayerIndicators=!1,this.state=this.viewModel.state,this.topLayerDisabled=!1,this.view=this.viewModel.view,this.visibilityAppearance="default",this.arcgisCatalogItemsChange=c(),this.arcgisFilterChange=c(),this.arcgisOpenedLayersChange=c(),this.arcgisPropertyChange=D()("state"),this.arcgisReady=c(),this.arcgisSelectedItemsChange=c(),this.arcgisTriggerAction=k(()=>this.viewModel,"trigger-action")}static{this.properties={_catalogLayerList:16,_activeItem:16,_focusRootFlowItem:16,_focusPanelFlowItem:16,_focusLayerFlowItem:16,_totalItems:16,_filterEnabled:16,_visibleItems:16,_openedPanelItems:16,_renderedOpenLayerFlowItems:16,layerTablesEnabled:16,mapImageOptions:16,tileOptions:16,autoDestroyDisabled:5,catalogItems:0,catalogLayer:0,catalogOptions:0,closed:5,collapsed:5,filterPlaceholder:1,filterPredicate:0,filterText:1,headingLevel:9,hideCatalogLayerList:5,hideNoFilterResultsNotice:5,hideNoItemsNotice:5,hideStatusIndicators:5,knowledgeGraphOptions:0,label:1,listItemCreatedFunction:0,listModeDisabled:5,messageOverrides:0,minFilterItems:9,onCatalogOpen:0,onTablesOpen:0,openedLayerLists:32,openedLayers:32,referenceElement:1,selectedItems:0,selectionMode:1,showCloseButton:5,showCollapseButton:5,showErrors:5,showFilter:5,showHeading:5,showTemporaryLayerIndicators:5,state:32,topLayerDisabled:5,view:0,visibilityAppearance:1}}static{this.styles=[z,q]}#l;#e;#o;#i;#t;#r;#n;#a;#s;#h;#c;#d;get _totalItems(){return this.catalogItems?.flatten(e=>e.children.filter(t=>t.layer?.type!=="catalog-dynamic-group")).length??0}get _filterEnabled(){return this._totalItems>=this.minFilterItems&&this.showFilter}get _visibleItems(){return this.catalogItems?.filter(e=>!e.hidden&&(this.showErrors||!e.error))}get _openedPanelItems(){return this._visibleItems.flatten(e=>e.children).filter(({hidden:e,panel:t})=>!e&&t?.open&&!t.disabled&&t.flowEnabled)}get _renderedOpenLayerFlowItems(){let{openedLayers:e}=this;return e.toArray().map((t,s)=>this.#D(t,s===e.length-1))}get catalogItems(){return this.viewModel.catalogItems}set catalogItems(e){this.viewModel.catalogItems=e}get catalogLayer(){return this.viewModel.catalogLayer}set catalogLayer(e){this.viewModel.catalogLayer=e}async destroy(){this.#i||this.#t||(this.#i=!0,this.#e?.abort(),this.#e=null,await this.manager.destroy(),this.openedLayerLists.removeAll(),this.openedLayers.removeAll(),this.#s.clear(),this.#a.clear(),this.#t=!0,this.#i=!1)}loaded(){this.manager.onLifecycle(()=>[C(()=>this.openedLayers,"change",()=>{this.#w()}),C(()=>this.viewModel.catalogItems,"change",()=>{G(this.selectedItems),this.arcgisCatalogItemsChange.emit()}),C(()=>this.selectedItems,"change",()=>this.arcgisSelectedItemsChange.emit()),W(()=>[this.filterPredicate,this.#o.value],()=>U(this.#o.value,this.filterPredicate))])}disconnectedCallback(){super.disconnectedCallback(),this.#e?.abort(),this.#e=null,!this.autoDestroyDisabled&&!this.#t&&!this.#i&&this.destroy()}#y(e,t){return this.viewModel.triggerAction(e,t)}async#f(e,t){let s=this.#s.get(e);if(s)return s;let a=e.type==="catalog"?await this.#L(e):await this.#C(e);return t.aborted||!this.isConnected||this.#t?(a?.destroy?.(),a):(t.aborted||this.#s.set(e,a),a)}async#w(){if(!this.isConnected||this.#t)return;let{openedLayers:e,openedLayerLists:t}=this;this.#e?.abort();let s=new AbortController,{signal:a}=s;this.#e=s,this.#s.forEach((n,h)=>{e.includes(h)||(n?.destroy?.(),this.#s.delete(h))});let o=await Promise.all(e.map(n=>this.#f(n,a)));if(a.aborted||!this.isConnected||this.#t)return;t.removeAll(),t.addMany(o);let i=t.at(-1),l=i&&"catalogLayer"in i?i:void 0;this._catalogLayerList!==l&&(this._catalogLayerList=l),this.arcgisOpenedLayersChange.emit()}#I(e){e.open=!1,this._focusRootFlowItem=!0}#b(e){this._focusRootFlowItem&&(this._focusRootFlowItem=!1,f(e))}#v(e){this._focusPanelFlowItem&&(this._focusPanelFlowItem=!1,f(e))}#$(e){this._focusLayerFlowItem===e.dataset.layerUid&&(this._focusLayerFlowItem=null,f(e))}async#L(e){let{headingLevel:t,catalogOptions:s,view:a,referenceElement:o,filterPlaceholder:i,listItemCreatedFunction:l,minFilterItems:n,selectionMode:h,visibilityAppearance:d}=this;return L(r`<arcgis-catalog-layer-list-next .headingLevel=${t} .filterPlaceholder=${s?.filterPlaceholder??i} .listItemCreatedFunction=${s?.listItemCreatedFunction??l} .minFilterItems=${s?.minFilterItems??n} .selectionMode=${s?.selectionMode??h} .visibilityAppearance=${s?.visibilityAppearance??d} .showErrors=${s?.showErrors??this.showErrors} .showFilter=${s?.showFilter??this.showFilter} .hideStatusIndicators=${s?.hideStatusIndicators??this.hideStatusIndicators} .showTemporaryLayerIndicators=${s?.showTemporaryLayerIndicators??this.showTemporaryLayerIndicators} .messageOverrides=${this.messageOverrides} @arcgisReady=${b=>b.stopPropagation()} .catalogLayer=${e} .view=${a} .referenceElement=${o} @catalogOpen=${this.#p} @tablesOpen=${this.#m}></arcgis-catalog-layer-list-next>`)}#F(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#C(e){let{headingLevel:t,selectionMode:s,referenceElement:a,view:o}=this,i=this.#F(e);return L(r`<arcgis-table-list-next .headingLevel=${i?.headingLevel??t} .selectionMode=${i?.selectionMode??s} .collapsed=${i?.collapsed} .filterPlaceholder=${i?.filterPlaceholder} .filterText=${i?.filterText} .label=${i?.label} .tables=${i?.tables} .view=${o} .referenceElement=${a} @arcgisReady=${l=>l.stopPropagation()}></arcgis-table-list-next>`)}#m(e){if(this.onTablesOpen){this.onTablesOpen(e);return}let t=e.layer;Z(t)&&(this.openedLayers.push(t),this._focusLayerFlowItem=t.uid)}#p(e){if(this.onCatalogOpen){this.onCatalogOpen(e);return}let t=e.layer?.parent;ee(t)&&(this.openedLayers.push(t),this._focusLayerFlowItem=e.layer?.uid)}#_(e,t){t?this.#a.set(e,t):this.#a.delete(e)}#M(e,t){this.#y(e,t)}#E(e){let{selectionMode:t,selectedItems:s}=this;if(t==="none")return;let a=e.target.selectedItems.map(o=>F(o)).filter(Boolean);s.removeAll(),s.addMany(a)}render(){let{state:e}=this,t={[p.hidden]:e==="loading",[p.disabled]:e==="disabled"};return r`<div class=${y(x(p.widget,p.panel,t))}>${this._visibleItems?.length?this.#O():null}${this.#x()}</div>`}#T(e){let t=this.#a,s=this.messages;return e?.layer?r`<calcite-tooltip overlay-positioning=fixed .referenceElement=${t.get(e.layer.uid)} .topLayerDisabled=${this.topLayerDisabled}>${s.layerIncompatibleTooltip}</calcite-tooltip>`:null}#g(e){return e.incompatible?this.#T(e):e.children?.filter(t=>!t.hidden).toArray().map(t=>this.#g(t))}#O(){return this._visibleItems?.toArray().map(e=>this.#g(e))}#u(){return r`<div slot=message>${this.messages.noItemsToDisplay}</div>`}#P(){return this.hideNoItemsNotice?null:r`<div class=${y(g.itemMessage)}><calcite-notice icon=information kind=info open width=full>${this.#u()}</calcite-notice></div>`}#A(){let{_openedPanelItems:e,openedLayers:t}=this;return B(e.toArray(),({uid:s})=>s,(s,a)=>{let{uid:o,title:i,panel:l}=s,n=()=>this.#I(l);return r`<calcite-flow-item .description=${i} .heading=${l.title} .headingLevel=${this.headingLevel} .selected=${!t.length&&a===e.length-1} @calciteFlowItemBack=${h=>{h.preventDefault(),n()}} ${m(this.#h)}><arcgis-layer-list-item-panel .item=${s} .view=${this.view}></arcgis-layer-list-item-panel><calcite-button appearance=transparent slot=footer-actions width=full @click=${n}>Back</calcite-button></calcite-flow-item>`})}#x(){let{collapsed:e,_visibleItems:t,_filterEnabled:s,showCloseButton:a,showCollapseButton:o,showHeading:i,selectionMode:l,filterText:n,filterPlaceholder:h,openedLayers:d,_openedPanelItems:b}=this,M=this.#l,E=this.label??this.messages.componentLabel??"",V=[r`<calcite-flow-item .closable=${a} .closed=${this.closed} .collapsed=${e} .collapsible=${o} .heading=${i?E:void 0} .headingLevel=${this.headingLevel} .selected=${!d.length&&!b.length} @calciteFlowItemClose=${()=>this.closed=!0} ${m(this.#c)}>${t?.length?r`<calcite-list data-layer-type=${M??$} .displayMode=${Q} .filterEnabled=${s} .filterPlaceholder=${h} .filterProps=${S} .filterText=${s?n:""} .group=${M} .label=${E} @focusin=${this.#n} @focusout=${this.#r} selection-appearance=border .selectionMode=${l} @calciteListChange=${this.#E} @calciteListFilter=${v=>{this.filterText=v.currentTarget?.filterText??"",this.arcgisFilterChange.emit()}} @mouseleave=${this.#r} @mouseover=${this.#n} ${m(this.#o)}>${t.toArray().map(v=>this.#R(v))}${s&&!this.hideNoFilterResultsNotice?r`<div class=${y(g.filterNoResults)} slot=filter-no-results><calcite-notice kind=info open width=full>${this.#u()}</calcite-notice></div>`:null}</calcite-list>`:this.#P()}</calcite-flow-item>`,this.#A(),this._renderedOpenLayerFlowItems];return this.closed?null:w("root-flow",r`<calcite-flow>${V}</calcite-flow>`)}#D(e,t){let{openedLayers:s}=this,a=e.title||this.messages.untitledLayer;return w(e.uid,r`<calcite-flow-item data-layer-uid=${e.uid??$} .description=${a} .heading=${this.messages[e.type==="catalog"?"catalogLayers":"tables"]} .headingLevel=${this.headingLevel} .selected=${t} @calciteFlowItemBack=${o=>{o.preventDefault(),s.pop();let i=s.at(-1);i?this._focusLayerFlowItem=i.uid:this._focusRootFlowItem=!0}} ${m(this.#d)}>${this.#s.get(e)}</calcite-flow-item>`)}#R(e,t,s){let{hideStatusIndicators:a,showCloseButton:o,showCollapseButton:i,showErrors:l,showFilter:n,showHeading:h,showTemporaryLayerIndicators:d}=this;return w(e.uid,j({activeItem:this._activeItem??void 0,css:{...g,itemCatalogIcon:g.itemActionIcon},displayMode:Q,dragEnabled:!1,item:e,layerTablesEnabled:this.layerTablesEnabled,listModeDisabled:this.viewModel.listModeDisabled,messages:this.messages,parent:t,parentTitles:s,rootGroupUid:this.#l,selectedItems:this.selectedItems,selectionMode:this.selectionMode,visibilityAppearance:this.visibilityAppearance,hideStatusIndicators:a,showCloseButton:o,showCollapseButton:i,showErrors:l,showFilter:n,showHeading:h,showTemporaryLayerIndicators:d,handleAction:this.#M.bind(this),handleCatalogOpen:this.#p.bind(this),handleTablesOpen:this.#m.bind(this),handleTooltipReferenceChange:this.#_.bind(this),view:this.view}))}};A("arcgis-catalog-layer-list-next",_);return _},"applications/Components/featureUtils","core/Collection","core/reactiveUtils","layers/list/CatalogItemCollection","layers/list/Item",a,b,d,e,f,g,h,i,j,k,l)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{a as g}from"./QKHSI35C.js";import{a as h}from"./JD74LG7K.js";import"./QUZTFUWM.js";import{b as d}from"./2OJYLBNC.js";import"./XURWCCLX.js";import{P as l,W as o,a as c,b as i}from"./I2BIPOZQ.js";import"./H6RQVSYM.js";export default $arcgis.t(([{watch:m},{substitute:f}])=>{var v=c`.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}:host{display:flex;flex-direction:row;position:relative;transition:max-width .25s ease-in-out;overflow-x:auto}calcite-carousel{height:fit-content;max-height:100%}calcite-carousel-item{max-height:100%;min-height:0}calcite-carousel-item[selected]{flex:1;overflow:auto}.message{padding:.5em 1em}.service-caption-text{margin:0}.service-content{display:flex;flex:1}.service-content>arcgis-legend-card-element:not(:first-child){border-left:1px solid var(--calcite-color-border-2)}.service{border-left:var(--calcite-border-width-sm) solid var(--calcite-color-border-2);display:flex;flex-direction:column;flex:1}.service-caption-container{border-bottom:1px solid var(--calcite-color-border-2);padding:var(--calcite-space-md)}`,u=768,a=class extends l{constructor(){super(...arguments),this.stacked=!1,this.headingLevel=3,this.layout="auto",this.type="card"}static{this.properties={stacked:16,activeLayerInfos:0,headingLevel:9,messages:0,view:0,layout:1,type:32}}static{this.styles=v}loaded(){this.manager.onLifecycle(()=>[m(()=>[this.layout,this.view.width],()=>{this.stacked=this.layout==="stack"||(!this.layout||this.layout==="auto")&&this.view.width<=u},{initial:!0})])}render(){return(this.stacked?this._renderCarousel():this._renderLayers())||i`<div class="message">${this.messages.noLegend}</div>`}_renderTitle(e){return i`<div class="service-caption-container">${g({class:d("service-caption-text",h.heading),level:this.headingLevel,children:e})}</div>`}_renderCarousel(){let e=[],t=this.activeLayerInfos;if(t)for(let s of t)this._renderSections(s,e);return e?.length?i`<calcite-carousel .paginationDisabled=${e.length<2} .label=${this.messages.carousel??""}>${e.map((s,r)=>i`<calcite-carousel-item .label=${f(this.messages?.pagination?.pageText??"",{index:r+1,total:e.length})}>${s}</calcite-carousel-item>`)}</calcite-carousel>`:null}_renderLayers(){let e=this.activeLayerInfos?.toArray()?.map(t=>this._renderLegendForLayer(t)).filter(Boolean);return e?.length?e:null}_renderLegendForLayer(e){if(!e.ready)return null;if(e.children.length){let t=e.children.toArray().map(this._renderLegendForLayer,this);return i`<section class="service">${this._renderTitle(e.title)}<div class="service-content">${t}</div></section>`}return this._renderLegendElementsForLayer(e)}_renderLegendElementsForLayer(e){let t=e.legendElements?.filter(Boolean);if(!t?.length)return null;let s=t.map(r=>i`<arcgis-legend-card-element .activeLayerInfo=${e} .cssEffectFilter=${e.cssEffectFilter??void 0} .stacked=${this.stacked} .headingLevel=${this.headingLevel} .layer=${e.layer} .legendElement=${r} .messages=${this.messages}></arcgis-legend-card-element>`);return i`<section class="service">${this._renderTitle(e.title)}<div class="service-content">${s}</div></section>`}_renderSections(e,t){if(!e.ready)return;if(e.children.length)for(let r of e.children)this._renderSections(r,t);let s=e.legendElements;if(s?.length)for(let r of s){let n=i`<arcgis-legend-card-element .activeLayerInfo=${e} .cssEffectFilter=${e.cssEffectFilter??void 0} .stacked=${this.stacked} .headingLevel=${this.headingLevel} .layer=${e.layer} .legendElement=${r} .messages=${this.messages}></arcgis-legend-card-element>`;n&&t.push(n)}}};o("arcgis-legend-card-view",a);return a},"core/reactiveUtils","intl")
2
+ import{a as g}from"./TWCK5GSX.js";import{a as h}from"./JD74LG7K.js";import"./QUZTFUWM.js";import{b as d}from"./4TV72DOP.js";import"./XURWCCLX.js";import{P as l,W as o,a as c,b as i}from"./I2BIPOZQ.js";import"./H6RQVSYM.js";export default $arcgis.t(([{watch:m},{substitute:f}])=>{var v=c`.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}:host{display:flex;flex-direction:row;position:relative;transition:max-width .25s ease-in-out;overflow-x:auto}calcite-carousel{height:fit-content;max-height:100%}calcite-carousel-item{max-height:100%;min-height:0}calcite-carousel-item[selected]{flex:1;overflow:auto}.message{padding:.5em 1em}.service-caption-text{margin:0}.service-content{display:flex;flex:1}.service-content>arcgis-legend-card-element:not(:first-child){border-left:1px solid var(--calcite-color-border-2)}.service{border-left:var(--calcite-border-width-sm) solid var(--calcite-color-border-2);display:flex;flex-direction:column;flex:1}.service-caption-container{border-bottom:1px solid var(--calcite-color-border-2);padding:var(--calcite-space-md)}`,u=768,a=class extends l{constructor(){super(...arguments),this.stacked=!1,this.headingLevel=3,this.layout="auto",this.type="card"}static{this.properties={stacked:16,activeLayerInfos:0,headingLevel:9,messages:0,view:0,layout:1,type:32}}static{this.styles=v}loaded(){this.manager.onLifecycle(()=>[m(()=>[this.layout,this.view.width],()=>{this.stacked=this.layout==="stack"||(!this.layout||this.layout==="auto")&&this.view.width<=u},{initial:!0})])}render(){return(this.stacked?this._renderCarousel():this._renderLayers())||i`<div class="message">${this.messages.noLegend}</div>`}_renderTitle(e){return i`<div class="service-caption-container">${g({class:d("service-caption-text",h.heading),level:this.headingLevel,children:e})}</div>`}_renderCarousel(){let e=[],t=this.activeLayerInfos;if(t)for(let s of t)this._renderSections(s,e);return e?.length?i`<calcite-carousel .paginationDisabled=${e.length<2} .label=${this.messages.carousel??""}>${e.map((s,r)=>i`<calcite-carousel-item .label=${f(this.messages?.pagination?.pageText??"",{index:r+1,total:e.length})}>${s}</calcite-carousel-item>`)}</calcite-carousel>`:null}_renderLayers(){let e=this.activeLayerInfos?.toArray()?.map(t=>this._renderLegendForLayer(t)).filter(Boolean);return e?.length?e:null}_renderLegendForLayer(e){if(!e.ready)return null;if(e.children.length){let t=e.children.toArray().map(this._renderLegendForLayer,this);return i`<section class="service">${this._renderTitle(e.title)}<div class="service-content">${t}</div></section>`}return this._renderLegendElementsForLayer(e)}_renderLegendElementsForLayer(e){let t=e.legendElements?.filter(Boolean);if(!t?.length)return null;let s=t.map(r=>i`<arcgis-legend-card-element .activeLayerInfo=${e} .cssEffectFilter=${e.cssEffectFilter??void 0} .stacked=${this.stacked} .headingLevel=${this.headingLevel} .layer=${e.layer} .legendElement=${r} .messages=${this.messages}></arcgis-legend-card-element>`);return i`<section class="service">${this._renderTitle(e.title)}<div class="service-content">${s}</div></section>`}_renderSections(e,t){if(!e.ready)return;if(e.children.length)for(let r of e.children)this._renderSections(r,t);let s=e.legendElements;if(s?.length)for(let r of s){let n=i`<arcgis-legend-card-element .activeLayerInfo=${e} .cssEffectFilter=${e.cssEffectFilter??void 0} .stacked=${this.stacked} .headingLevel=${this.headingLevel} .layer=${e.layer} .legendElement=${r} .messages=${this.messages}></arcgis-legend-card-element>`;n&&t.push(n)}}};o("arcgis-legend-card-view",a);return a},"core/reactiveUtils","intl")
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
+ import a from"./6G2OC6X3.js";import"./SSNCB7LI.js";import"./OHCCNZCY.js";import"./R2XADTZ4.js";import"./FZBSTBH3.js";import"./QUZTFUWM.js";import"./4TV72DOP.js";import"./XURWCCLX.js";import"./I2BIPOZQ.js";import"./H6RQVSYM.js";export default $arcgis.t(([a])=>{return a},a)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{a as u}from"./4MJJOPAL.js";import{a as m}from"./O3V63YCY.js";import{a as d}from"./JD74LG7K.js";import f from"./QRXQ5LVY.js";import{h as g}from"./PME66FRM.js";import"./WT5SGWE4.js";import b from"./D7FCBWGA.js";import"./QUZTFUWM.js";import{b as h}from"./2OJYLBNC.js";import"./XURWCCLX.js";import{P as r,R as c,T as n,W as l,a as s,b as a,x as e}from"./I2BIPOZQ.js";import"./H6RQVSYM.js";export default $arcgis.t(([{watch:w},,{a:v}])=>{var f=s`.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{width:fit-content;height:fit-content}`,o=class extends r{constructor(){super(...arguments),this.messages=m(),this.#i=null,this.#t=null,this.view=v(this),this.autoDestroyDisabled=!1,this.icon="home",this.visualScale="m",this.arcgisGo=e(),this.arcgisPropertyChange=g()("state","viewpoint"),this.arcgisReady=e()}static{this.properties={view:0,autoDestroyDisabled:5,goToOverride:0,icon:1,label:1,messageOverrides:0,referenceElement:1,visualScale:1,state:32,viewpoint:0}}static{this.styles=f}#i;#e;#t;get state(){return this.view?.ready?this.#t?"going-home":"ready":"disabled"}get viewpoint(){return this.#i||this.#e}set viewpoint(t){this.#i=t}async cancelGo(){this.#t?.abort(),this.#t=null}async destroy(){await this.manager.destroy()}async go(){if(!this.view?.ready)throw new Error("View is not ready. Cannot go to viewpoint.");if(!this.viewpoint)throw new Error("Cannot go to an undefined viewpoint.");this.cancelGo(),this.arcgisGo.emit();let t=new AbortController;this.#t=t;try{await this.view?.when(),await u({target:this.viewpoint,options:{signal:t.signal}},this.view,this.goToOverride)}catch{}this.#t=null}async loaded(){this.manager.onLifecycle(()=>[w(()=>this.view,t=>{t?.when().then(()=>{this.view===t&&(this.#e=t.viewpoint.clone(),this.#i||this.arcgisPropertyChange.emit({name:"viewpoint"}))})},{initial:!0,sync:!0})])}_go(){this.state==="going-home"?this.cancelGo():this.go()}render(){let{messages:t,icon:p}=this,i=this.state==="going-home";return a`<div class=${c(h("root",d.arcgisButton))}><calcite-button .disabled=${this.state==="disabled"} .iconStart=${i?void 0:p??void 0} kind=neutral .label=${t.componentLabel} @click=${this._go} .scale=${this.visualScale} .loading=${i} title=${(i?t.cancel:t.title)??n}></calcite-button></div>`}};l("arcgis-home",o);return o},"core/reactiveUtils",b,f)
2
+ import{a as u}from"./4MJJOPAL.js";import{a as m}from"./OHCCNZCY.js";import{a as d}from"./JD74LG7K.js";import f from"./CODEI67F.js";import{h as g}from"./R2XADTZ4.js";import"./FZBSTBH3.js";import b from"./7XCYURYF.js";import"./QUZTFUWM.js";import{b as h}from"./4TV72DOP.js";import"./XURWCCLX.js";import{P as r,R as c,T as n,W as l,a as s,b as a,x as e}from"./I2BIPOZQ.js";import"./H6RQVSYM.js";export default $arcgis.t(([{watch:w},,{a:v}])=>{var f=s`.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{width:fit-content;height:fit-content}`,o=class extends r{constructor(){super(...arguments),this.messages=m(),this.#i=null,this.#t=null,this.view=v(this),this.autoDestroyDisabled=!1,this.icon="home",this.visualScale="m",this.arcgisGo=e(),this.arcgisPropertyChange=g()("state","viewpoint"),this.arcgisReady=e()}static{this.properties={view:0,autoDestroyDisabled:5,goToOverride:0,icon:1,label:1,messageOverrides:0,referenceElement:1,visualScale:1,state:32,viewpoint:0}}static{this.styles=f}#i;#e;#t;get state(){return this.view?.ready?this.#t?"going-home":"ready":"disabled"}get viewpoint(){return this.#i||this.#e}set viewpoint(t){this.#i=t}async cancelGo(){this.#t?.abort(),this.#t=null}async destroy(){await this.manager.destroy()}async go(){if(!this.view?.ready)throw new Error("View is not ready. Cannot go to viewpoint.");if(!this.viewpoint)throw new Error("Cannot go to an undefined viewpoint.");this.cancelGo(),this.arcgisGo.emit();let t=new AbortController;this.#t=t;try{await this.view?.when(),await u({target:this.viewpoint,options:{signal:t.signal}},this.view,this.goToOverride)}catch{}this.#t=null}async loaded(){this.manager.onLifecycle(()=>[w(()=>this.view,t=>{t?.when().then(()=>{this.view===t&&(this.#e=t.viewpoint.clone(),this.#i||this.arcgisPropertyChange.emit({name:"viewpoint"}))})},{initial:!0,sync:!0})])}_go(){this.state==="going-home"?this.cancelGo():this.go()}render(){let{messages:t,icon:p}=this,i=this.state==="going-home";return a`<div class=${c(h("root",d.arcgisButton))}><calcite-button .disabled=${this.state==="disabled"} .iconStart=${i?void 0:p??void 0} kind=neutral .label=${t.componentLabel} @click=${this._go} .scale=${this.visualScale} .loading=${i} title=${(i?t.cancel:t.title)??n}></calcite-button></div>`}};l("arcgis-home",o);return o},"core/reactiveUtils",b,f)
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
+ import a from"./TMJX7DFH.js";import{p as u}from"./I2BIPOZQ.js";export default $arcgis.t(([{replace:f},{fieldFormatFromFieldInfo:h},{j:s}])=>{var c=/^\s*expression\//iu,y=/href=(""|'')/giu,N=/(\{([^{\r\n]+)\})/gu,I=/href\s*=\s*(?:"([^"]+)"|'([^']+)')/giu,F=/'/gu,C="relationships/",w=/^(?:mailto:|tel:)/u;function U(e,t){let n=new Map;if(!e)return n;for(let r of e){if(!r.fieldName)continue;let o=d(r.fieldName,t);r.fieldName=o,n.set(o.toLowerCase(),r)}return n}function W(e){let t=[];if(!e)return t;let{fieldInfos:n,content:r}=e;return n&&t.push(...n),!r||!Array.isArray(r)||r.forEach(o=>{if(o.type==="fields"){let i=o?.fieldInfos;i&&t.push(...i)}}),t}function B(e,t){return e?.getEffectivePopupTemplate(t)??void 0}function D(e){if(e!=null)return"sourceLayer"in e&&e.sourceLayer?e.sourceLayer:e.layer??void 0}var L=new Set(["building","knowledge-graph","link-chart","map-image","map-notes","subtype-group","tile"]);function G(e){let t=e?.origin;return(t==null?void 0:L.has(t.type??"")?t.sublayer:t.layer)??e?.layer}function b(e=""){return e?e.includes(C):!1}function J(e=""){if(e)return!w.test(e.trim().toLowerCase())}function d(e,t){let n=g(t,e);return n?n.name:e}function K(e,t){return e?.map(n=>d(n,t))}function p(e){return e?c.test(e):!1}function v(e,t){if(!t||!p(t)||!e)return;let n=t.replace(c,"").toLowerCase();return e.find(({name:r})=>r.toLowerCase()===n)}function Q(e,t){if(!(!e?.length||!t))return e.find(n=>n.fieldName?.toLowerCase()===t.toLowerCase())}function A(e){let{fieldInfo:t,graphic:n,layer:r}=e;return k({fieldInfo:t,graphic:n})?s(r,{graphic:n}):null}function k({fieldInfo:e,graphic:t}){return!!e?.fieldName&&!p(e.fieldName)&&!b(e.fieldName)&&!t?.popupTemplate}function X({expressionInfos:e,fieldInfo:t,graphic:n,isContentFieldInfos:r,layer:o}){if(!t?.fieldName)return null;let i=v(e,t?.fieldName);if(i)return i.title||null;let a=A({fieldInfo:t,graphic:n,layer:o});if(a){let l=a.getFieldAlias(t.fieldName);return r?t.label||l||t.fieldName:l||t.fieldName}return t.label||t.fieldName}function _(e){let{configurableFieldsContainer:t,fieldInfo:n,isContentFieldInfos:r}=e;if(!n?.fieldName)return null;let o=!t.popupTemplate&&!t.fieldConfigurations?h(n,t.getField(n.fieldName)):t.getFieldConfiguration(n.fieldName)?.fieldFormat;return r&&n.fieldFormat||o}function m(e){return e.trim()}function x(e){return e.replaceAll(y,"")}function E(e,t){return`{${t.get(e.toLowerCase())?.fieldName||e}}`}function M({formattedValues:e,template:t,fieldInfoMap:n}){return m(x(f(f(t,r=>E(r,n)),e)))}function g(e,t){return!(e&&"getField"in e&&typeof e.getField=="function")||!t?null:e.getField(t)??null}function T(e,t){return e.replaceAll(N,(n,r,o)=>{let i=g(t,o);return i?`{${i.name}}`:r})}function V(e,t,n=!1){let r=t[e];if(typeof r=="string"){let o=(n?encodeURIComponent(r):r).replaceAll(F,"%27");t[e]=o}}function j(e,t=!1){let n={...e};return Object.keys(n).forEach(r=>V(r,n,t)),n}function $(e,t,n){t=m(t);let r=t&&!t.startsWith("{");return f(e,j(n,r||!1))}function q(e,t,n){let r=T(e,n);return r&&r.replaceAll(I,(o,i,a)=>$(o,i||a,t))}function z({values:e,globalValues:t,layer:n,text:r,fieldInfoMap:o}){return r?M({formattedValues:t,template:q(r,{...t,...e},n),fieldInfoMap:o}):""}async function H({type:e,value:t,event:n}){try{return typeof t=="function"?t(n):await t}catch(r){u("error","arcgis-feature",`An error occurred when calling the "${e}" function`,{detail:{error:r,graphic:n.graphic,value:t}});return}}return{a:U,b:W,c:B,d:D,e:G,f:b,g:J,h:d,i:K,j:p,k:Q,l:A,m:X,n:_,o:M,p:T,q:z,r:H}},"applications/Components/stringUtils","applications/Components/fieldFormatUtils",a)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{a as D,b as N}from"./WT5SGWE4.js";import{c as _,f as A}from"./2OJYLBNC.js";import{g as C,i as P,j as O,k as h,l as m,m as w,n as f,v,w as L,y as g}from"./I2BIPOZQ.js";var V=e=>(...r)=>{let t=m(),s=new e(...r),o=s.exports;h(t.at(-1));let n=s.component.manager;n.W(s,o),s.watchExports(n.W.bind(n,s)),w(s);let a=[s.component,...t].reverse();return v(a,i=>i===void 0?void 0:U(s,i,o),o)},U=(e,{host:r,key:t,isReactive:s},o)=>{let n=r,a=n[t]!==e.exports,i=n[t]!==o,c=o!==e.exports;if(a&&!i&&c&&(n[t]=e.exports),r===e.component){if(s){let p=e.component.manager;i&&p.W(e,n[t]),e.onUpdate(u=>{if(u.has(t)){let x=n[t];x!==e.exports&&p.W(e,x)}})}e.O=s?void 0:t}let d=e.component.constructor.elementProperties.get(t)?.readOnly;e.watchExports(()=>{n[t]!==e.exports&&(d?f(()=>{n[t]=e.exports}):n[t]=e.exports)})};var y=e=>M(void 0,e),re=e=>r=>M(r,e),b=class extends g{constructor(r,t){super(r);let s=this.exports;try{P(this.component);let o=t(this.component,this),n=this.exports!==s;if(C(o)){n||this.setProvisionalExports(o);let a=o.then(i=>{this.exports=i,super.catchUpLifecycle()}).catch(i=>{this.P.reject(i)});this.onLoad(async()=>await a)}else(!n||o!==void 0)&&(this.exports=o),queueMicrotask(()=>super.catchUpLifecycle())}catch(o){this.P.reject(o)}}catchUpLifecycle(){}},M=V(b),ne=(e,r)=>new E(e,r),E=class extends g{#e;#t;#s;constructor(r,t){super(),!!1&&(this.#t=r,this.#s=t,this.#e=new MutationObserver(s=>{s.forEach(o=>{r.includes(o.attributeName)&&t.call(this.component,this.component.el.getAttribute(o.attributeName),o.oldValue,o.attributeName)})}))}hostConnected(){this.#t.forEach(r=>{this.component.el.hasAttribute(r)&&this.#s.call(this.component,this.component.el.getAttribute(r),null,r)}),this.#e.observe(this.component.el,{attributes:!0,attributeOldValue:!0,attributeFilter:this.#t})}hostDisconnected(){this.#e.disconnect()}};var ie=e=>y((r,t)=>{let s=globalThis.matchMedia(e),o=()=>{t.exports=s.matches};o(),t.onLifecycle(()=>(s.addEventListener("change",o),()=>s.removeEventListener("change",o)))}),j="ltr",ae=()=>y((e,r)=>{r.exports=j,r.onLifecycle(()=>{let t=()=>{let s=A(e.el,"dir",j);r.exports=s==="rtl"?"rtl":"ltr"};return t(),_(e.el,["dir"],t)})}),ce=e=>(r={})=>y((t,s)=>{let o=D(t.el),n={_lang:o.lang,_t9nLocale:o.t9nLocale,_loading:!0},a=t;s.onLifecycle(()=>N(t.el,()=>e("./assets"),({t9nLocale:c,t9nStrings:l,lang:d})=>{let p={...l,_lang:d,_t9nLocale:c,_loading:!1};s.exports=p;let u=l.componentLabel;typeof u=="string"&&"label"in t&&t.label==null&&(t.label??=u),i(a.messageOverrides)},r.name));let i=c=>{let l=s.exports,d=l._original??l,p=R(d,c);c&&(p._original=d),s.exports=p};return"messageOverrides"in a&&s.onUpdate(c=>{c.has("messageOverrides")&&i(a.messageOverrides)}),r.blocking?(s.setProvisionalExports(n,!1),s.ready):n}),R=(e,r)=>{if(!r)return e;let t={...e};return Object.entries(r).forEach(([s,o])=>{e[s]!==void 0&&(typeof o=="object"?t[s]=R(e[s],o):t[s]=o??e[s])}),t},pe=e=>K,F="arcgisPropertyChange",K=(...e)=>{let r=O(),t=L(F,void 0,r),s=!0;return r.manager.onUpdated(o=>{if(s||!r.el.isConnected){s=!1;return}for(let n of e)o.has(n)&&t.emit({name:n})}),t};export{V as a,y as b,re as c,ne as d,ie as e,ae as f,ce as g,pe as h};
2
+ import{a as D,b as N}from"./FZBSTBH3.js";import{c as _,f as A}from"./4TV72DOP.js";import{g as C,i as P,j as O,k as h,l as m,m as w,n as f,v,w as L,y as g}from"./I2BIPOZQ.js";var V=e=>(...r)=>{let t=m(),s=new e(...r),o=s.exports;h(t.at(-1));let n=s.component.manager;n.W(s,o),s.watchExports(n.W.bind(n,s)),w(s);let a=[s.component,...t].reverse();return v(a,i=>i===void 0?void 0:U(s,i,o),o)},U=(e,{host:r,key:t,isReactive:s},o)=>{let n=r,a=n[t]!==e.exports,i=n[t]!==o,c=o!==e.exports;if(a&&!i&&c&&(n[t]=e.exports),r===e.component){if(s){let p=e.component.manager;i&&p.W(e,n[t]),e.onUpdate(u=>{if(u.has(t)){let x=n[t];x!==e.exports&&p.W(e,x)}})}e.O=s?void 0:t}let d=e.component.constructor.elementProperties.get(t)?.readOnly;e.watchExports(()=>{n[t]!==e.exports&&(d?f(()=>{n[t]=e.exports}):n[t]=e.exports)})};var y=e=>M(void 0,e),re=e=>r=>M(r,e),b=class extends g{constructor(r,t){super(r);let s=this.exports;try{P(this.component);let o=t(this.component,this),n=this.exports!==s;if(C(o)){n||this.setProvisionalExports(o);let a=o.then(i=>{this.exports=i,super.catchUpLifecycle()}).catch(i=>{this.P.reject(i)});this.onLoad(async()=>await a)}else(!n||o!==void 0)&&(this.exports=o),queueMicrotask(()=>super.catchUpLifecycle())}catch(o){this.P.reject(o)}}catchUpLifecycle(){}},M=V(b),ne=(e,r)=>new E(e,r),E=class extends g{#e;#t;#s;constructor(r,t){super(),!!1&&(this.#t=r,this.#s=t,this.#e=new MutationObserver(s=>{s.forEach(o=>{r.includes(o.attributeName)&&t.call(this.component,this.component.el.getAttribute(o.attributeName),o.oldValue,o.attributeName)})}))}hostConnected(){this.#t.forEach(r=>{this.component.el.hasAttribute(r)&&this.#s.call(this.component,this.component.el.getAttribute(r),null,r)}),this.#e.observe(this.component.el,{attributes:!0,attributeOldValue:!0,attributeFilter:this.#t})}hostDisconnected(){this.#e.disconnect()}};var ie=e=>y((r,t)=>{let s=globalThis.matchMedia(e),o=()=>{t.exports=s.matches};o(),t.onLifecycle(()=>(s.addEventListener("change",o),()=>s.removeEventListener("change",o)))}),j="ltr",ae=()=>y((e,r)=>{r.exports=j,r.onLifecycle(()=>{let t=()=>{let s=A(e.el,"dir",j);r.exports=s==="rtl"?"rtl":"ltr"};return t(),_(e.el,["dir"],t)})}),ce=e=>(r={})=>y((t,s)=>{let o=D(t.el),n={_lang:o.lang,_t9nLocale:o.t9nLocale,_loading:!0},a=t;s.onLifecycle(()=>N(t.el,()=>e("./assets"),({t9nLocale:c,t9nStrings:l,lang:d})=>{let p={...l,_lang:d,_t9nLocale:c,_loading:!1};s.exports=p;let u=l.componentLabel;typeof u=="string"&&"label"in t&&t.label==null&&(t.label??=u),i(a.messageOverrides)},r.name));let i=c=>{let l=s.exports,d=l._original??l,p=R(d,c);c&&(p._original=d),s.exports=p};return"messageOverrides"in a&&s.onUpdate(c=>{c.has("messageOverrides")&&i(a.messageOverrides)}),r.blocking?(s.setProvisionalExports(n,!1),s.ready):n}),R=(e,r)=>{if(!r)return e;let t={...e};return Object.entries(r).forEach(([s,o])=>{e[s]!==void 0&&(typeof o=="object"?t[s]=R(e[s],o):t[s]=o??e[s])}),t},pe=e=>K,F="arcgisPropertyChange",K=(...e)=>{let r=O(),t=L(F,void 0,r),s=!0;return r.manager.onUpdated(o=>{if(s||!r.el.isConnected){s=!1;return}for(let n of e)o.has(n)&&t.emit({name:n})}),t};export{V as a,y as b,re as c,ne as d,ie as e,ae as f,ce as g,pe as h};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import e from"./77ULNULN.js";import{a as _}from"./WMARZKLI.js";import{a as w}from"./TN5C3MSL.js";import{a as V}from"./G5YUYYQA.js";import d from"./HZWFDJFV.js";import c from"./YSWNUR6Q.js";import"./PME66FRM.js";import"./WT5SGWE4.js";import b from"./D7FCBWGA.js";import"./QUZTFUWM.js";import"./2OJYLBNC.js";import"./XURWCCLX.js";import{N as o,O as n,P as m,R as h,W as p,b as a,x as r}from"./I2BIPOZQ.js";import"./H6RQVSYM.js";export default $arcgis.t(([D,{watch:s},M,I,k,{c:u,d:g,e:d,f:y,g:f,h:b},{c:c,e:v},t,{a:C,b:E,c:R,d:P}])=>{var F=c(k,{}),x=c(I,{}),l=class extends m{constructor(){super(),this._attributionMode=null,this._containerRef=o(),this._mapRef=o(),this._uiController=new C(this),this._cameraProperties={},this.arcgisLoadError=R(this),this.arcgisViewReadyError=P(this),this._map=F(this),this.view=x(this),this.allLayerViews=this.view.allLayerViews,this.alphaCompositingEnabled=this.view.alphaCompositingEnabled,this.analyses=this.view.analyses,this.animationsDisabled=this.view.animationsEnabled,this.autoDestroyDisabled=!1,this.basemap=this._map.basemap,this.basemapView=this.view.basemapView,this.canZoomIn=this.view.canZoomIn,this.canZoomOut=this.view.canZoomOut,this.clippingArea=this.view.clippingArea,this.constraints=this.view.constraints,this.displayFilterDisabled=this.view.displayFilterEnabled,this.environment=this.view.environment,this.fatalError=this.view.fatalError,this.floors=this.view.floors,this.graphics=this.view.graphics,this.ground=this._map.ground,this.groundView=this.view.groundView,this.highlights=this.view.highlights,this.layerViews=this.view.layerViews,this.magnifier=this.view.magnifier,this.map=this.view.map,this.navigation=this.view.navigation,this.options=this.view.options,this.padding=this.view.padding,this.popup=this.view.popup,this.popupDisabled=this.view.popupEnabled,this.popupComponentEnabled=!1,this.qualityProfile=this.view.qualityProfile,this.ready=this.view.ready,this.selectionManager=this.view.selectionManager,this.focusRegionEnabled=this.view.focusRegionEnabled,this.slotGroupRefs=this._uiController.slotGroupRefs,this.spatialReference=this.view.spatialReference,this.suspended=this.view.suspended,this.theme=this.view.theme,this.timeExtent=this.view.timeExtent,this.timeZone=this.view.timeZone,this.viewingMode=this.view.viewingMode,this.visibleArea=this.view.visibleArea,this.arcgisViewAnalysisViewCreate=t(()=>this.view,"analysis-view-create"),this.arcgisViewAnalysisViewCreateError=t(()=>this.view,"analysis-view-create-error"),this.arcgisViewAnalysisViewDestroy=t(()=>this.view,"analysis-view-destroy"),this.arcgisViewChange=r(),this.arcgisViewClick=t(()=>this.view,"click"),this.arcgisViewDoubleClick=t(()=>this.view,"double-click"),this.arcgisViewDoubleTapDrag=t(()=>this.view,"double-tap-drag"),this.arcgisViewFocusRegionSelect=t(()=>this.view,"focus-region-select"),this.arcgisViewDrag=t(()=>this.view,"drag"),this.arcgisViewHold=t(()=>this.view,"hold"),this.arcgisViewImmediateClick=t(()=>this.view,"immediate-click"),this.arcgisViewImmediateDoubleClick=t(()=>this.view,"immediate-double-click"),this.arcgisViewKeyDown=t(()=>this.view,"key-down"),this.arcgisViewKeyUp=t(()=>this.view,"key-up"),this.arcgisViewLayerviewCreate=t(()=>this.view,"layerview-create"),this.arcgisViewLayerviewCreateError=t(()=>this.view,"layerview-create-error"),this.arcgisViewLayerviewDestroy=t(()=>this.view,"layerview-destroy"),this.arcgisViewMouseWheel=t(()=>this.view,"mouse-wheel"),this.arcgisViewPointerDown=t(()=>this.view,"pointer-down"),this.arcgisViewPointerEnter=t(()=>this.view,"pointer-enter"),this.arcgisViewPointerLeave=t(()=>this.view,"pointer-leave"),this.arcgisViewPointerMove=t(()=>this.view,"pointer-move"),this.arcgisViewPointerUp=t(()=>this.view,"pointer-up"),this.arcgisViewReadyChange=r(),this.arcgisViewVerticalTwoFingerDrag=t(()=>this.view,"vertical-two-finger-drag"),E(this),this.view.ui={components:[]}}static{this.properties={_map:16,aria:0,view:32,allLayerViews:32,alphaCompositingEnabled:5,analyses:0,animationsDisabled:5,attributionItems:32,attributionMode:1,autoDestroyDisabled:5,basemap:1,basemapView:0,camera:0,cameraFov:9,cameraHeading:9,cameraPosition:1,cameraTilt:9,canZoomIn:36,canZoomOut:36,center:1,clippingArea:0,constraints:0,displayFilterDisabled:5,environment:0,extent:0,fatalError:0,floors:0,focusAreas:0,gamepad:32,graphics:0,ground:1,groundView:32,hideAttribution:5,highlights:0,interacting:32,itemId:3,layerViews:32,magnifier:32,map:0,navigating:32,navigation:0,options:0,padding:0,performanceInfo:32,popup:0,popupElement:32,popupDisabled:5,popupComponentEnabled:5,qualityProfile:1,ready:36,resolution:32,selectionManager:32,focusRegionEnabled:5,focusRegion:32,scale:9,slotGroupRefs:32,spatialReference:0,stationary:32,suspended:39,theme:0,timeExtent:0,timeZone:1,updating:32,viewingMode:1,viewpoint:0,visibleArea:32,zoom:9,loadErrorSources:0}}static{this.styles=[V,_]}get aria(){return this.view?.aria??null}set aria(i){this.view&&(this.view.aria=i)}get attributionItems(){return this.view?.attributionItems??[]}get attributionMode(){return this._attributionMode}set attributionMode(i){this._attributionMode=i,i!=="auto"&&(this.view.attributionMode=i)}get camera(){return this.view.camera}set camera(i){u(this.camera,i)||(this.view.camera=i)}get cameraFov(){let{view:i}=this;return i.ready?this.view.camera?.fov:this._cameraProperties.fov}set cameraFov(i){i!=null&&this._mutateCamera(e=>{e.fov=i})}get cameraHeading(){let{view:i}=this;return i.ready?i.camera?.heading:this._cameraProperties.heading}set cameraHeading(i){i!=null&&this._mutateCamera(e=>{e.heading=i})}get cameraPosition(){let{view:i}=this;if(i.ready)return i.camera?.position;let{position:e}=this._cameraProperties;return e?new M(e):void 0}set cameraPosition(i){let e=b(this.view.camera?.position,i);e&&this._mutateCamera(A=>{A.position=e})}get cameraTilt(){let{view:i}=this;return i.ready?i.camera?.tilt:this._cameraProperties.tilt}set cameraTilt(i){i!=null&&this._mutateCamera(e=>{e.tilt=i})}get center(){return this.view.center}set center(i){if(d(i,this._center))return;this._center=y(i);let e=f(i,this.view);e&&(this.view.center=e)}get extent(){return this.view.extent}set extent(i){i&&!this.extent.equals(i)&&(this.view.extent=i)}get focusAreas(){return this.map?this.map?.focusAreas:{areas:[],style:"bright"}}set focusAreas(i){this.map&&(this.map.focusAreas=i)}get gamepad(){return this.view.input.gamepad}get hideAttribution(){return!this.view.attributionVisible}set hideAttribution(i){this.view.attributionVisible=!i}get interacting(){return this.view.interacting}get itemId(){return this._map.portalItem?.id}set itemId(i){v(this._map,this),this._map.portalItem={id:i},this.view.map=this._map}get navigating(){return this.view.navigating}get performanceInfo(){return this.view.performanceInfo}get popupElement(){return this._uiController.popupElement||null}get resolution(){return this.view.resolution}get focusRegion(){return this.view.focusRegion}get scale(){return this.view.scale}set scale(i){this.view.scale=i}get stationary(){return this.view.stationary}get updating(){return this.view.updating}get viewpoint(){return this.view.viewpoint}set viewpoint(i){g(this.viewpoint,i)&&(this.view.viewpoint=i)}get zoom(){return this.view.zoom}set zoom(i){this.view.zoom=i}async closePopup(){this._uiController.closePopup()}async destroy(){await this.manager.destroy()}async fetchPopupFeatures(i,e){return this.view.fetchPopupFeatures(i,e)}async goTo(i,e){return await this.view.goTo(i,e)}async hitTest(i,e){return await this.view.hitTest(i,e)}async openPopup(i){await this._uiController.openPopup(i)}async takeScreenshot(i){return await this.view.takeScreenshot(i)}toMap(i,e){return this.view.toMap(i,e)}toScreen(i){return this.view.toScreen(i)}async tryFatalErrorRecovery(){this.view.tryFatalErrorRecovery()}async viewOnReady(i,e){return await this.componentOnReady(),await this.view.whenReady().then(()=>i?.()).catch(e)}async whenAnalysisView(i){return await this.view.whenAnalysisView(i)}async whenLayerView(i){return await this.view.whenLayerView(i)}async zoomIn(){this.view.zoomIn()}async zoomOut(){this.view.zoomOut()}loaded(){let i=this;i.el.childElem=this._mapRef.value,this.view.container??=i.el.childElem,this.map||=this._map,this.manager.onLifecycle(()=>[s(()=>this.map,e=>{e&&(this._map=e)},{initial:!0,sync:!0}),s(()=>this.view.stationary,()=>this.arcgisViewChange.emit(),{initial:!0}),s(()=>this.view.ready,e=>{e&&(this.camera=this.view.camera.clone().set(this._cameraProperties),this._cameraProperties={}),this.arcgisViewReadyChange.emit()},{initial:this.view.ready}),s(()=>this.view.attributionHeight,e=>{this._uiController.handleAttributionHeightChange(e)},{initial:!0})])}_mutateCamera(i){if(!this.view.ready){i(this._cameraProperties);return}let e=this.view.camera?.clone()??new D;i(e),this.camera=e}renderMain(){return a`<div class=${h(w.base)} ${n(this._mapRef)}></div>`}render(){return a`${this.renderMain()}<section class=${h(w.containerUI)} ${n(this._containerRef)}>${this._uiController.render()}</section>`}};p("arcgis-scene",l);return l},"Camera","core/reactiveUtils","geometry/Point","views/SceneView","WebScene",b,c,d,e)
2
+ import e from"./RWOP6R3I.js";import{a as _}from"./WMARZKLI.js";import{a as w}from"./TN5C3MSL.js";import{a as V}from"./G5YUYYQA.js";import d from"./G37JKMBJ.js";import c from"./75OH7AOP.js";import"./R2XADTZ4.js";import"./FZBSTBH3.js";import b from"./7XCYURYF.js";import"./QUZTFUWM.js";import"./4TV72DOP.js";import"./XURWCCLX.js";import{N as o,O as n,P as m,R as h,W as p,b as a,x as r}from"./I2BIPOZQ.js";import"./H6RQVSYM.js";export default $arcgis.t(([D,{watch:s},M,I,k,{c:u,d:g,e:d,f:y,g:f,h:b},{c:c,e:v},t,{a:C,b:E,c:R,d:P}])=>{var F=c(k,{}),x=c(I,{}),l=class extends m{constructor(){super(),this._attributionMode=null,this._containerRef=o(),this._mapRef=o(),this._uiController=new C(this),this._cameraProperties={},this.arcgisLoadError=R(this),this.arcgisViewReadyError=P(this),this._map=F(this),this.view=x(this),this.allLayerViews=this.view.allLayerViews,this.alphaCompositingEnabled=this.view.alphaCompositingEnabled,this.analyses=this.view.analyses,this.animationsDisabled=this.view.animationsEnabled,this.autoDestroyDisabled=!1,this.basemap=this._map.basemap,this.basemapView=this.view.basemapView,this.canZoomIn=this.view.canZoomIn,this.canZoomOut=this.view.canZoomOut,this.clippingArea=this.view.clippingArea,this.constraints=this.view.constraints,this.displayFilterDisabled=this.view.displayFilterEnabled,this.environment=this.view.environment,this.fatalError=this.view.fatalError,this.floors=this.view.floors,this.graphics=this.view.graphics,this.ground=this._map.ground,this.groundView=this.view.groundView,this.highlights=this.view.highlights,this.layerViews=this.view.layerViews,this.magnifier=this.view.magnifier,this.map=this.view.map,this.navigation=this.view.navigation,this.options=this.view.options,this.padding=this.view.padding,this.popup=this.view.popup,this.popupDisabled=this.view.popupEnabled,this.popupComponentEnabled=!1,this.qualityProfile=this.view.qualityProfile,this.ready=this.view.ready,this.selectionManager=this.view.selectionManager,this.focusRegionEnabled=this.view.focusRegionEnabled,this.slotGroupRefs=this._uiController.slotGroupRefs,this.spatialReference=this.view.spatialReference,this.suspended=this.view.suspended,this.theme=this.view.theme,this.timeExtent=this.view.timeExtent,this.timeZone=this.view.timeZone,this.viewingMode=this.view.viewingMode,this.visibleArea=this.view.visibleArea,this.arcgisViewAnalysisViewCreate=t(()=>this.view,"analysis-view-create"),this.arcgisViewAnalysisViewCreateError=t(()=>this.view,"analysis-view-create-error"),this.arcgisViewAnalysisViewDestroy=t(()=>this.view,"analysis-view-destroy"),this.arcgisViewChange=r(),this.arcgisViewClick=t(()=>this.view,"click"),this.arcgisViewDoubleClick=t(()=>this.view,"double-click"),this.arcgisViewDoubleTapDrag=t(()=>this.view,"double-tap-drag"),this.arcgisViewFocusRegionSelect=t(()=>this.view,"focus-region-select"),this.arcgisViewDrag=t(()=>this.view,"drag"),this.arcgisViewHold=t(()=>this.view,"hold"),this.arcgisViewImmediateClick=t(()=>this.view,"immediate-click"),this.arcgisViewImmediateDoubleClick=t(()=>this.view,"immediate-double-click"),this.arcgisViewKeyDown=t(()=>this.view,"key-down"),this.arcgisViewKeyUp=t(()=>this.view,"key-up"),this.arcgisViewLayerviewCreate=t(()=>this.view,"layerview-create"),this.arcgisViewLayerviewCreateError=t(()=>this.view,"layerview-create-error"),this.arcgisViewLayerviewDestroy=t(()=>this.view,"layerview-destroy"),this.arcgisViewMouseWheel=t(()=>this.view,"mouse-wheel"),this.arcgisViewPointerDown=t(()=>this.view,"pointer-down"),this.arcgisViewPointerEnter=t(()=>this.view,"pointer-enter"),this.arcgisViewPointerLeave=t(()=>this.view,"pointer-leave"),this.arcgisViewPointerMove=t(()=>this.view,"pointer-move"),this.arcgisViewPointerUp=t(()=>this.view,"pointer-up"),this.arcgisViewReadyChange=r(),this.arcgisViewVerticalTwoFingerDrag=t(()=>this.view,"vertical-two-finger-drag"),E(this),this.view.ui={components:[]}}static{this.properties={_map:16,aria:0,view:32,allLayerViews:32,alphaCompositingEnabled:5,analyses:0,animationsDisabled:5,attributionItems:32,attributionMode:1,autoDestroyDisabled:5,basemap:1,basemapView:0,camera:0,cameraFov:9,cameraHeading:9,cameraPosition:1,cameraTilt:9,canZoomIn:36,canZoomOut:36,center:1,clippingArea:0,constraints:0,displayFilterDisabled:5,environment:0,extent:0,fatalError:0,floors:0,focusAreas:0,gamepad:32,graphics:0,ground:1,groundView:32,hideAttribution:5,highlights:0,interacting:32,itemId:3,layerViews:32,magnifier:32,map:0,navigating:32,navigation:0,options:0,padding:0,performanceInfo:32,popup:0,popupElement:32,popupDisabled:5,popupComponentEnabled:5,qualityProfile:1,ready:36,resolution:32,selectionManager:32,focusRegionEnabled:5,focusRegion:32,scale:9,slotGroupRefs:32,spatialReference:0,stationary:32,suspended:39,theme:0,timeExtent:0,timeZone:1,updating:32,viewingMode:1,viewpoint:0,visibleArea:32,zoom:9,loadErrorSources:0}}static{this.styles=[V,_]}get aria(){return this.view?.aria??null}set aria(i){this.view&&(this.view.aria=i)}get attributionItems(){return this.view?.attributionItems??[]}get attributionMode(){return this._attributionMode}set attributionMode(i){this._attributionMode=i,i!=="auto"&&(this.view.attributionMode=i)}get camera(){return this.view.camera}set camera(i){u(this.camera,i)||(this.view.camera=i)}get cameraFov(){let{view:i}=this;return i.ready?this.view.camera?.fov:this._cameraProperties.fov}set cameraFov(i){i!=null&&this._mutateCamera(e=>{e.fov=i})}get cameraHeading(){let{view:i}=this;return i.ready?i.camera?.heading:this._cameraProperties.heading}set cameraHeading(i){i!=null&&this._mutateCamera(e=>{e.heading=i})}get cameraPosition(){let{view:i}=this;if(i.ready)return i.camera?.position;let{position:e}=this._cameraProperties;return e?new M(e):void 0}set cameraPosition(i){let e=b(this.view.camera?.position,i);e&&this._mutateCamera(A=>{A.position=e})}get cameraTilt(){let{view:i}=this;return i.ready?i.camera?.tilt:this._cameraProperties.tilt}set cameraTilt(i){i!=null&&this._mutateCamera(e=>{e.tilt=i})}get center(){return this.view.center}set center(i){if(d(i,this._center))return;this._center=y(i);let e=f(i,this.view);e&&(this.view.center=e)}get extent(){return this.view.extent}set extent(i){i&&!this.extent.equals(i)&&(this.view.extent=i)}get focusAreas(){return this.map?this.map?.focusAreas:{areas:[],style:"bright"}}set focusAreas(i){this.map&&(this.map.focusAreas=i)}get gamepad(){return this.view.input.gamepad}get hideAttribution(){return!this.view.attributionVisible}set hideAttribution(i){this.view.attributionVisible=!i}get interacting(){return this.view.interacting}get itemId(){return this._map.portalItem?.id}set itemId(i){v(this._map,this),this._map.portalItem={id:i},this.view.map=this._map}get navigating(){return this.view.navigating}get performanceInfo(){return this.view.performanceInfo}get popupElement(){return this._uiController.popupElement||null}get resolution(){return this.view.resolution}get focusRegion(){return this.view.focusRegion}get scale(){return this.view.scale}set scale(i){this.view.scale=i}get stationary(){return this.view.stationary}get updating(){return this.view.updating}get viewpoint(){return this.view.viewpoint}set viewpoint(i){g(this.viewpoint,i)&&(this.view.viewpoint=i)}get zoom(){return this.view.zoom}set zoom(i){this.view.zoom=i}async closePopup(){this._uiController.closePopup()}async destroy(){await this.manager.destroy()}async fetchPopupFeatures(i,e){return this.view.fetchPopupFeatures(i,e)}async goTo(i,e){return await this.view.goTo(i,e)}async hitTest(i,e){return await this.view.hitTest(i,e)}async openPopup(i){await this._uiController.openPopup(i)}async takeScreenshot(i){return await this.view.takeScreenshot(i)}toMap(i,e){return this.view.toMap(i,e)}toScreen(i){return this.view.toScreen(i)}async tryFatalErrorRecovery(){this.view.tryFatalErrorRecovery()}async viewOnReady(i,e){return await this.componentOnReady(),await this.view.whenReady().then(()=>i?.()).catch(e)}async whenAnalysisView(i){return await this.view.whenAnalysisView(i)}async whenLayerView(i){return await this.view.whenLayerView(i)}async zoomIn(){this.view.zoomIn()}async zoomOut(){this.view.zoomOut()}loaded(){let i=this;i.el.childElem=this._mapRef.value,this.view.container??=i.el.childElem,this.map||=this._map,this.manager.onLifecycle(()=>[s(()=>this.map,e=>{e&&(this._map=e)},{initial:!0,sync:!0}),s(()=>this.view.stationary,()=>this.arcgisViewChange.emit(),{initial:!0}),s(()=>this.view.ready,e=>{e&&(this.camera=this.view.camera.clone().set(this._cameraProperties),this._cameraProperties={}),this.arcgisViewReadyChange.emit()},{initial:this.view.ready}),s(()=>this.view.attributionHeight,e=>{this._uiController.handleAttributionHeightChange(e)},{initial:!0})])}_mutateCamera(i){if(!this.view.ready){i(this._cameraProperties);return}let e=this.view.camera?.clone()??new D;i(e),this.camera=e}renderMain(){return a`<div class=${h(w.base)} ${n(this._mapRef)}></div>`}render(){return a`${this.renderMain()}<section class=${h(w.containerUI)} ${n(this._containerRef)}>${this._uiController.render()}</section>`}};p("arcgis-scene",l);return l},"Camera","core/reactiveUtils","geometry/Point","views/SceneView","WebScene",b,c,d,e)
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
+ import b from"./CPKZEXWU.js";import a from"./TMJX7DFH.js";import"./OHCCNZCY.js";import"./R2XADTZ4.js";import"./FZBSTBH3.js";import"./QUZTFUWM.js";import"./4TV72DOP.js";import"./XURWCCLX.js";import"./I2BIPOZQ.js";import"./H6RQVSYM.js";export default $arcgis.t(([,a])=>{return a},a,b)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import f from"./5TZGXGC2.js";import{a as d}from"./O3V63YCY.js";import e from"./HZWFDJFV.js";import c from"./YSWNUR6Q.js";import b from"./QRXQ5LVY.js";import{h as m}from"./PME66FRM.js";import"./WT5SGWE4.js";import a from"./D7FCBWGA.js";import"./QUZTFUWM.js";import"./2OJYLBNC.js";import"./XURWCCLX.js";import{P as n,W as h,b as i,x as s}from"./I2BIPOZQ.js";import"./H6RQVSYM.js";export default $arcgis.t(([v,,,,p,g])=>{var e={forceDirected:"organic-standard",community:"organic-community",simple:"basic-grid",mechanical:"hierarchical-bottom-to-top",radialTree:"radial-root-centric",smartTree:"tree-left-to-right",geographic:"geographic-organic-standard",chronologicalSingle:"chronological-mono-timeline",chronologicalMultiple:"chronological-multi-timeline"},u={basicLayoutCategory:[e.simple],organicLayoutCategory:[e.forceDirected,e.community,e.geographic],treeLayoutCategory:[e.smartTree,e.radialTree],hierarchicalLayoutCategory:[e.mechanical],chronologicalLayoutCategory:[e.chronologicalSingle,e.chronologicalMultiple]},y={[e.forceDirected]:"force-directed-link-chart-layout",[e.community]:"community-link-chart-layout",[e.simple]:"simple-link-chart-layout",[e.mechanical]:"hierarchical-link-chart-layout",[e.radialTree]:"radial-tree-link-chart-layout",[e.smartTree]:"smart-tree-link-chart-layout",[e.geographic]:"geographic-link-chart-layout",[e.chronologicalSingle]:"single-timeline",[e.chronologicalMultiple]:"multi-timeline"},w={[e.forceDirected]:"forceDirected",[e.community]:"community",[e.simple]:"simple",[e.mechanical]:"hierarchical",[e.radialTree]:"radialTree",[e.smartTree]:"smartTree",[e.geographic]:"geographic",[e.chronologicalSingle]:"chronologicalSingle",[e.chronologicalMultiple]:"chronologicalMultiple"},$=g(v),l=class extends n{constructor(){super(...arguments),this.messages=d(),this.viewModel=$(this),this.view=this.viewModel.view,this.appearance="dropdown",this.autoDestroyDisabled=!1,this.closeOnSelectDisabled=!1,this.icon="nodes-link",this.layout=this.viewModel.layout,this.preventExtentUpdate=this.viewModel.preventExtentUpdate,this.state=this.viewModel.state,this.arcgisSwitchLayout=p(()=>this.viewModel,"switchLayout"),this.arcgisPropertyChange=m()("state"),this.arcgisReady=s()}static{this.properties={view:0,appearance:1,autoDestroyDisabled:5,closeOnSelectDisabled:5,icon:1,label:1,layout:32,messageOverrides:0,preventExtentUpdate:5,referenceElement:1,state:32}}async destroy(){await this.manager.destroy()}async switchLayout(t){this.viewModel.switchLayout(t)}_renderDropdown(){let{messages:t,icon:o}=this;return i`<calcite-dropdown scale=s width=m max-items=9 .closeOnSelectDisabled=${this.closeOnSelectDisabled}><calcite-action slot=trigger .disabled=${this.viewModel.state==="disabled"} .icon=${o??void 0} .label=${t.layoutOptions??"Layout"} scale=s .text=${t.layoutOptions??"Layout"}></calcite-action>${Object.entries(u).map(([c,a])=>i`<calcite-dropdown-group selection-mode=single .groupTitle=${this.messages[c]}>${a.map(r=>i`<calcite-dropdown-item .iconStart=${y[r]} .selected=${r===this.layout?!0:void 0} @click=${()=>{this.switchLayout(r)}}>${t[w[r]]}</calcite-dropdown-item>`)}</calcite-dropdown-group>`)}</calcite-dropdown>`}_renderMenuBar(){let{messages:t}=this;return i`<calcite-action-bar scale=s floating overflow-mode=none>${Object.entries(u).map(([o,c])=>i`<calcite-action-group .label=${this.messages[o]}>${c.map(a=>i`<calcite-action scale=s .icon=${y[a]} .active=${a===this.layout?!0:void 0} @click=${()=>{this.switchLayout(a)}} .text=${t[w[a]]}></calcite-action>`)}</calcite-action-group>`)}</calcite-action-bar>`}render(){let{appearance:t}=this,o=t==="menu-bar"?this._renderMenuBar():this._renderDropdown();return i`<div class="root">${o}</div>`}};h("arcgis-link-chart-layout-switcher",l);return l},"widgets/LinkChartLayoutSwitcher/LinkChartLayoutSwitcherViewModel",a,b,c,e,f)
2
+ import f from"./CBB2T3RI.js";import{a as d}from"./OHCCNZCY.js";import e from"./G37JKMBJ.js";import c from"./75OH7AOP.js";import b from"./CODEI67F.js";import{h as m}from"./R2XADTZ4.js";import"./FZBSTBH3.js";import a from"./7XCYURYF.js";import"./QUZTFUWM.js";import"./4TV72DOP.js";import"./XURWCCLX.js";import{P as n,W as h,b as i,x as s}from"./I2BIPOZQ.js";import"./H6RQVSYM.js";export default $arcgis.t(([v,,,,p,g])=>{var e={forceDirected:"organic-standard",community:"organic-community",simple:"basic-grid",mechanical:"hierarchical-bottom-to-top",radialTree:"radial-root-centric",smartTree:"tree-left-to-right",geographic:"geographic-organic-standard",chronologicalSingle:"chronological-mono-timeline",chronologicalMultiple:"chronological-multi-timeline"},u={basicLayoutCategory:[e.simple],organicLayoutCategory:[e.forceDirected,e.community,e.geographic],treeLayoutCategory:[e.smartTree,e.radialTree],hierarchicalLayoutCategory:[e.mechanical],chronologicalLayoutCategory:[e.chronologicalSingle,e.chronologicalMultiple]},y={[e.forceDirected]:"force-directed-link-chart-layout",[e.community]:"community-link-chart-layout",[e.simple]:"simple-link-chart-layout",[e.mechanical]:"hierarchical-link-chart-layout",[e.radialTree]:"radial-tree-link-chart-layout",[e.smartTree]:"smart-tree-link-chart-layout",[e.geographic]:"geographic-link-chart-layout",[e.chronologicalSingle]:"single-timeline",[e.chronologicalMultiple]:"multi-timeline"},w={[e.forceDirected]:"forceDirected",[e.community]:"community",[e.simple]:"simple",[e.mechanical]:"hierarchical",[e.radialTree]:"radialTree",[e.smartTree]:"smartTree",[e.geographic]:"geographic",[e.chronologicalSingle]:"chronologicalSingle",[e.chronologicalMultiple]:"chronologicalMultiple"},$=g(v),l=class extends n{constructor(){super(...arguments),this.messages=d(),this.viewModel=$(this),this.view=this.viewModel.view,this.appearance="dropdown",this.autoDestroyDisabled=!1,this.closeOnSelectDisabled=!1,this.icon="nodes-link",this.layout=this.viewModel.layout,this.preventExtentUpdate=this.viewModel.preventExtentUpdate,this.state=this.viewModel.state,this.arcgisSwitchLayout=p(()=>this.viewModel,"switchLayout"),this.arcgisPropertyChange=m()("state"),this.arcgisReady=s()}static{this.properties={view:0,appearance:1,autoDestroyDisabled:5,closeOnSelectDisabled:5,icon:1,label:1,layout:32,messageOverrides:0,preventExtentUpdate:5,referenceElement:1,state:32}}async destroy(){await this.manager.destroy()}async switchLayout(t){this.viewModel.switchLayout(t)}_renderDropdown(){let{messages:t,icon:o}=this;return i`<calcite-dropdown scale=s width=m max-items=9 .closeOnSelectDisabled=${this.closeOnSelectDisabled}><calcite-action slot=trigger .disabled=${this.viewModel.state==="disabled"} .icon=${o??void 0} .label=${t.layoutOptions??"Layout"} scale=s .text=${t.layoutOptions??"Layout"}></calcite-action>${Object.entries(u).map(([c,a])=>i`<calcite-dropdown-group selection-mode=single .groupTitle=${this.messages[c]}>${a.map(r=>i`<calcite-dropdown-item .iconStart=${y[r]} .selected=${r===this.layout?!0:void 0} @click=${()=>{this.switchLayout(r)}}>${t[w[r]]}</calcite-dropdown-item>`)}</calcite-dropdown-group>`)}</calcite-dropdown>`}_renderMenuBar(){let{messages:t}=this;return i`<calcite-action-bar scale=s floating overflow-mode=none>${Object.entries(u).map(([o,c])=>i`<calcite-action-group .label=${this.messages[o]}>${c.map(a=>i`<calcite-action scale=s .icon=${y[a]} .active=${a===this.layout?!0:void 0} @click=${()=>{this.switchLayout(a)}} .text=${t[w[a]]}></calcite-action>`)}</calcite-action-group>`)}</calcite-action-bar>`}render(){let{appearance:t}=this,o=t==="menu-bar"?this._renderMenuBar():this._renderDropdown();return i`<div class="root">${o}</div>`}};h("arcgis-link-chart-layout-switcher",l);return l},"widgets/LinkChartLayoutSwitcher/LinkChartLayoutSwitcherViewModel",a,b,c,e,f)
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
+ import{b as C,c as S}from"./WMARZKLI.js";import{b as y,c as u,f as _}from"./R2XADTZ4.js";import{c as v,e as P}from"./4TV72DOP.js";import{c as g}from"./XURWCCLX.js";import{N as w,b as f,o as E,x as l,z as b}from"./I2BIPOZQ.js";export default $arcgis.t(([{initializeProjection:F},{signal:L},{when:O,watch:r},A,D])=>{async function*M(n,e){for(let t of n){let o=await E(t,e).catch(()=>{});if(e.aborted)return;yield*Array.isArray(o)?o.filter(i=>i instanceof D):[]}}async function*V(n,e,t,o){let i;t instanceof A?(await F(t.spatialReference,n.spatialReference),i=n.toScreen(t)):i=t;let p=i?n.fetchPopupFeatures(i,{...o,defaultPopupTemplateEnabled:e.defaultPopupTemplateEnabled}):void 0;p&&(yield*p)}function c(n,e){if(e instanceof A)return e;let t="width"in e?{x:e.x+e.width/2,y:e.y+e.height/2}:e;return n.toMap(t)??void 0}function x(n,e,t,o){let i={};return{diagnostics:i,featureStream:V(n,e,t,{diagnostics:i,signal:o}),location:c(n,t)}}var R=class extends b{constructor(e){super(e),this.direction=_(),this.popupRef=w(),this._popupElement=L(void 0),this._popupAbortController=null,this.slotGroupRefs=C(),this.attributionHeight=0,this._uiContainer=null,this.component.listenOn(globalThis,"unhandledrejection",t=>{let o=t.reason;if(o?.name==="webgl:required"){let{name:i}=o;this.webGLError={name:i}}})}get popupElement(){return this._popupElement.value}set popupElement(e){this._popupElement.value=e}hostLifecycle(){return[O(()=>this.component.view.ready,()=>{this._assignDefaultPopup()}),r(()=>this.component.view.popup?.visible,(e,t)=>{(e||t)&&this._cancelPopupOperation(),e&&this.popupElement?.open&&(this.popupElement.open=!1)},{initial:!0}),r(()=>this.component.popupElement?.open,(e,t)=>{t&&!e&&this._cancelPopupOperation()},{initial:!0,sync:!0}),this.component.view.on("focus-region-select",e=>this._handleFocusRegionSelect(e)),this.component.view.on("click",[],e=>{let t=e.native;e.button!==0||t?.ctrlKey||t?.metaKey||this._handleOpenPopup(e)},-2)]}hostDestroy(){this._cancelPopupOperation()}async openPopup(e={}){this._assignDefaultPopup(),this.closePopup();let t=new AbortController;if(this._popupAbortController=t,this.popupElement){if(await this.popupElement.componentOnReady(),t.signal.aborted)return;let{fetchFeatures:o,shouldFocus:i,title:p,featureStream:h,promises:m,location:s,...G}=e,a=s?c(this.component.view,s):void 0,d=s??this.popupElement.location;Object.assign(this.popupElement,G),p!==void 0&&(this.popupElement.heading=p),h?await this.popupElement.openFeatureStream({featureStream:h,location:a}):m?.length?await this.popupElement.openFeatureStream({featureStream:M(m,t.signal),location:a}):o&&d?await this.popupElement.openFeatureStream(x(this.component.view,this.popupElement,d,t.signal)):(this.popupElement.featureStream=null,s!==void 0&&(this.popupElement.location=a),this.popupElement.open=!0),i&&!t.signal.aborted&&await this.popupElement.setFocus()}else{let{location:o,...i}=e;await this.component.view.openPopup({...i,location:o?c(this.component.view,o):void 0})}}closePopup(){this._cancelPopupOperation(),this.popupElement&&(this.popupElement.open=!1,this.popupElement.clear()),this.component.view.closePopup()}_cancelPopupOperation(){this._popupAbortController?.abort(),this._popupAbortController=null}_assignDefaultPopup(){this.popupRef.value&&!this.popupElement&&(this.popupElement=this.popupRef.value,this.popupElement.referenceElement=this.component.el,this.popupElement.view=this.component.view)}handleAttributionHeightChange(e){if(!(this.attributionHeight===e||!this.component.el.shadowRoot)){if(this.attributionHeight=e,!this._uiContainer){let t=this.component.el.shadowRoot.querySelector(".arcgis-map-container-ui");this._uiContainer=t}this._uiContainer?.style.setProperty("--arcgis-internal-attribution-space-top",`${this.attributionHeight}px`)}}_maybeDisableViewPopup(){this.component.view&&(this.component.popupComponentEnabled||this.popupElement)&&(this.previousViewPopupEnabled=this.component.view.popupEnabled,this.component.view.popupEnabled=!1)}_maybeResetViewPopup(){this.component.view&&this.previousViewPopupEnabled!==void 0&&(this.component.view.popupEnabled=this.previousViewPopupEnabled,this.previousViewPopupEnabled=void 0)}async _handleOpenPopup(e){if(this._assignDefaultPopup(),!this.component.popupDisabled){this._maybeDisableViewPopup();try{this.popupElement&&await this.openPopup({fetchFeatures:!0,location:{x:e.x,y:e.y}})}finally{this._maybeResetViewPopup()}}}_handleFocusRegionSelect(e){queueMicrotask(()=>{let{focusRegion:t}=this.component.view;!e.defaultPrevented&&t&&this.openPopup({fetchFeatures:!0,location:t})})}_handlePopupSlotChange(e){let t=g(e.target,"arcgis-popup");!this.popupElement&&t.length?this.popupElement=t[0]:t.length||(this.popupElement=void 0)}_webGLErrorAlert(){return this.webGLError?f`<arcgis-webgl-error .errorName=${this.webGLError.name}></arcgis-webgl-error>`:null}render(){return S({direction:this.direction,popupComponentEnabled:this.component.popupComponentEnabled,slotGroupRefs:this.slotGroupRefs,handlePopupSlotChange:e=>this._handlePopupSlotChange(e),webGLErrorElement:this._webGLErrorAlert(),popupElement:this.popupRef})}};function B(n){y((e,t)=>{let o=()=>{if(n.attributionMode!=="auto")return;let i=P(n.el);n.view.attributionMode!==i&&(n.view.attributionMode=i)};t.onLifecycle(()=>(o(),v(n.el,["class"],o))),t.onUpdate(i=>{i.has("attributionMode")&&n.attributionMode==="auto"&&o()})})}var I=u((n,e)=>{let t=l();return e.onLifecycle(()=>r(()=>{let{map:o}=n;if(!o||o.destroyed)return[];let i=[];return o.loadError&&i.push(o),o.basemap?.loadError&&i.push(o.basemap),o.ground.loadError&&i.push(o.ground),[...o.allLayers,...o.allTables].forEach(p=>{p.loadError&&i.push(p)}),i},o=>{o.length&&(n.loadErrorSources=o,t.emit())})),t}),Y=u((n,e)=>{let t=l();return e.onLifecycle(()=>r(()=>n.view?.readyState,o=>{(o==="map-content-error"||o==="rendering-error")&&t.emit()})),t});return{a:R,b:B,c:I,d:Y}},"applications/Components/featureUtils","applications/Components/reactiveUtils","core/reactiveUtils","geometry/Point","Graphic")
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{a as R}from"./HGGXNI56.js";import{a as h}from"./VJVKFKSG.js";import g from"./5TZGXGC2.js";import{a as y}from"./O3V63YCY.js";import{a as $}from"./JD74LG7K.js";import e from"./HZWFDJFV.js";import d from"./YSWNUR6Q.js";import c from"./QRXQ5LVY.js";import{h as S}from"./PME66FRM.js";import"./WT5SGWE4.js";import a from"./D7FCBWGA.js";import"./QUZTFUWM.js";import{b as M}from"./2OJYLBNC.js";import"./XURWCCLX.js";import{O as _,P as v,R as w,T as f,U as b,W as x,a as p,b as o,x as m}from"./I2BIPOZQ.js";import"./H6RQVSYM.js";export default $arcgis.t(([E,{isAbortError:T},{substitute:D},{watch:u,on:A},,,,a,C])=>{var L=p`.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-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-hidden{display:none!important}:host{width:240px}.root{--arcgis-internal-search-width: 240px;display:flex;flex-flow:row nowrap;align-items:center;justify-content:center;width:100%}.dropdown{--calcite-color-border-1: var(--calcite-color-border-input);--calcite-dropdown-width: var(--arcgis-internal-search-width);width:31px}.dropdown calcite-button{--calcite-offset-invert-focus: 1}.autocomplete{flex:1}.container{display:flex;position:relative;flex:1 0 100%;flex-flow:row nowrap;align-items:stretch}.form{display:flex;flex:1 0;flex-flow:row nowrap;align-items:stretch;margin:0;padding:0}.submit-button{position:absolute;margin:-1px;border-width:0;padding:0;width:1px;height:1px;overflow:hidden;white-space:nowrap;clip:rect(0,0,0,0)}`,z=C(E);function k(n){return typeof n=="object"&&n!==null&&"openPopup"in n&&"closePopup"in n}var g=class extends v{constructor(){super(...arguments),this.viewModel=z(this),this._currentLocationValue="search-use-current-location",this._autocompleteEl=void 0,this._searchResultRendererEl=void 0,this._searchResultRendererContentEl=void 0,this._suggestController=void 0,this._searchController=void 0,this._lastSearchTerm="",this._handleSelectResult=e=>{let{name:t}=e.detail.result;this._selectedMessage=D(this.messages.resultSelected,{resultName:t})},this.messages=y({blocking:!0}),this._locateFailed=!1,this._showNoResults=!1,this.view=this.viewModel.view,this.goToOverride=this.viewModel.goToOverride,this.icon="search",this.hideSourcesMenu=!1,this.activeMenu="none",this.activeSourceIndex=this.viewModel.activeSourceIndex,this.allPlaceholder=this.viewModel.allPlaceholder,this.allSources=this.viewModel.allSources,this.autoNavigateDisabled=this.viewModel.autoNavigate,this.autoSelectDisabled=this.viewModel.autoSelect,this.defaultSources=this.viewModel.defaultSources,this.disabled=!1,this.locationDisabled=this.viewModel.locationEnabled,this.maxResults=this.viewModel.maxResults,this.maxSuggestions=this.viewModel.maxSuggestions,this.minSuggestCharacters=this.viewModel.minSuggestCharacters,this.popupDisabled=this.viewModel.popupEnabled,this.popupTemplate=this.viewModel.popupTemplate,this.portal=this.viewModel.portal,this.resultGraphic=this.viewModel.resultGraphic,this.resultGraphicDisabled=this.viewModel.resultGraphicEnabled,this.results=this.viewModel.results,this.searchAllDisabled=this.viewModel.searchAllEnabled,this.searchTerm=this.viewModel.searchTerm,this.selectedResult=this.viewModel.selectedResult,this.sources=this.viewModel.sources,this.suggestions=this.viewModel.suggestions,this.suggestionsDisabled=this.viewModel.suggestionsEnabled,this.topLayerDisabled=!1,this.autoDestroyDisabled=!1,this.state=this.viewModel.state,this.arcgisPropertyChange=S()("state"),this.arcgisReady=m(),this.arcgisSearchClear=a(()=>this.viewModel,"search-clear"),this.arcgisSearchComplete=a(()=>this.viewModel,"search-complete"),this.arcgisSearchStart=a(()=>this.viewModel,"search-start"),this.arcgisSelectResult=a(()=>this.viewModel,"select-result"),this.arcgisSuggestComplete=a(()=>this.viewModel,"suggest-complete"),this.arcgisSuggestStart=a(()=>this.viewModel,"suggest-start")}static{this.properties={_selectedMessage:16,messages:16,_locateFailed:16,_showNoResults:16,_isDisabled:16,_showCurrentLocation:16,_effectiveActiveMenu:16,view:0,referenceElement:1,goToOverride:0,icon:1,hideSourcesMenu:5,activeMenu:1,activeSource:32,activeSourceIndex:9,allPlaceholder:1,allSources:0,autoNavigateDisabled:5,autoSelectDisabled:5,defaultSources:0,disabled:5,includeDefaultSourcesDisabled:5,locationDisabled:5,maxResults:9,maxSuggestions:9,minSuggestCharacters:9,popupDisabled:5,popupTemplate:0,portal:0,resultGraphic:0,resultGraphicDisabled:5,results:0,searchAllDisabled:5,searchTerm:1,selectedResult:0,sources:0,suggestions:32,suggestionsDisabled:5,topLayerDisabled:5,autoDestroyDisabled:5,messageOverrides:0,label:1,state:32}}static{this.styles=[L,R]}get _isDisabled(){let{state:e}=this.viewModel;return e==="disabled"||e==="loading"||this.disabled}get _showCurrentLocation(){return!this.locationDisabled&&!this.searchTerm?.trim()}get _effectiveActiveMenu(){return this._isDisabled?"none":this.activeMenu}get activeSource(){return this.viewModel?.activeSource}get includeDefaultSourcesDisabled(){let{includeDefaultSources:e}=this.viewModel;return typeof e=="boolean"?!e:e}set includeDefaultSourcesDisabled(e){this.viewModel.includeDefaultSources=typeof e=="boolean"?!e:e}clear(){this._locateFailed=!1,this._selectedMessage=void 0,this.viewModel.clear()}async destroy(){this._closePopup(this.viewModel.resultGraphic),this._cancelQueries(),await this._searchResultRendererEl?.destroy(),await this._searchResultRendererContentEl?.destroy(),await this.manager.destroy()}async search(e){this._cancelQueries();let t=new AbortController,{signal:i}=t;this._searchController=t;try{let s=await this.viewModel.search(e,{signal:i});return this._searchController!==t?void 0:(s?.numResults||(this._showNoResults=!0,this.activeMenu="suggestion"),this._searchController=void 0,s)}catch{if(this._searchController!==t)return;this._searchController=void 0;return}}async setFocus(){await this._autocompleteEl?.setFocus()}async suggest(e){this._cancelSuggest();let t=new AbortController,{signal:i}=t;this._suggestController=t;try{let s=await this.viewModel.suggest(e,null,{signal:i});return this._suggestController!==t?void 0:(this._suggestController=void 0,s?.numResults&&(this.activeMenu="suggestion",this._scrollToTopSuggestion()),s)}catch{return this._suggestController!==t||(this._suggestController=void 0),null}}loaded(){this.listen("arcgisSelectResult",this._handleSelectResult),this.manager.onLifecycle(()=>[u(()=>[this._searchResultRendererEl,this.viewModel?.defaultPopupTemplate],()=>{let e=this.viewModel?.defaultPopupTemplate,{_searchResultRendererEl:t}=this;if(e&&t){let i=document.createElement("div");i.appendChild(t),e.content=i,this._searchResultRendererContentEl=t}},{initial:!0}),u(()=>this.messages,e=>this.viewModel.messages=e,{initial:!0}),u(()=>this.viewModel?.resultGraphic,(e,t)=>this._closePopup(t)),A(()=>this.viewModel,"select-result",e=>{let{popupEnabled:t}=e;t&&this._openPopup()})])}_addSearchResultRenderer(){this._searchResultRendererEl=b(o`<arcgis-search-result-renderer auto-destroy-disabled .messages=${this.messages} .viewModel=${this.viewModel}></arcgis-search-result-renderer>`)}_closePopup(e){let{referenceElement:t,view:i}=this;k(t)&&t.popupElement?.selectedFeature===e?t?.closePopup():i?.popup?.selectedFeature===e&&i?.closePopup()}_openPopup(){if(k(this.referenceElement)){let{resultGraphic:e,resultLocation:t}=this.viewModel,i={features:e?[e]:[],location:t};this.referenceElement?.openPopup(i)}else if(this.view){let{resultGraphic:e,resultLocation:t}=this.viewModel;this.view.openPopup({features:e?[e]:[],location:t})}}_handleInputKeydown(e){e.key==="Tab"&&this._cancelSuggest()}_handleAutocompleteCreate(e){this._autocompleteEl=e}_handleCalciteAutocompleteTextInput(e){let t=e.target.inputValue;t!==this.viewModel.searchTerm&&(this.viewModel.searchTerm=t,t||this.clear(),this.suggest())}_handleAutocompleteOpen(){this.activeMenu="suggestion"}_handleAutocompleteClose(){this.activeMenu==="suggestion"&&(this.activeMenu="none")}_handleCalciteAutocompleteChange(e){let t=e.target.value;if(t===this._currentLocationValue){this._useCurrentLocation();return}let i=JSON.parse(t),s=this.viewModel.suggestions?.find(({sourceIndex:r})=>r===i.sourceIndex)?.results?.find(({key:r})=>`${r}`==`${i.key}`);s&&this.search(s)}async _useCurrentLocation(){this._cancelQueries();let e=new AbortController,{signal:t}=e;this._searchController=e;try{await this.viewModel.searchNearby({signal:t})}catch(i){T(i)||(this._locateFailed=!0,this.activeMenu="suggestion")}finally{this._searchController=void 0}}_handleSourceOpen(){this.activeMenu="source"}_handleSourceClose(){this.activeMenu==="source"&&(this.activeMenu="none")}_handleSourceSelect(e){let t=e.target.selectedItems[0].getAttribute("data-source-index");t&&(this.viewModel.activeSourceIndex=Number.parseInt(t,10))}_cancelSuggest(){this.activeMenu="none",this._locateFailed=!1,this._showNoResults=!1,this._suggestController=h(this._suggestController)}_cancelQueries(){this._cancelSuggest(),this._searchController=h(this._searchController)}_scrollToTopSuggestion(){this._autocompleteEl?.scrollContentTo({top:0})}_formSubmit(e){e.preventDefault(),this.activeMenu="none",this._lastSearchTerm=this.searchTerm,this.searchTerm&&this.search()}_getSourceName(e){let{messages:t}=this,{allSources:i}=this.viewModel,s=i.at(e);return(e===-1?t.all:s?.name||t.untitledSource)||""}render(){return this._addSearchResultRenderer(),o`<div class=${w(M("root",$.widget))}><div class="sr-only" aria-live=polite>${this._selectedMessage}</div><div class="container">${this._renderSourcesMenu()}${this._renderForm()}</div></div>`}_renderSourcesMenu(){let{hideSourcesMenu:e,messages:t,_isDisabled:i,_effectiveActiveMenu:s}=this,{allSources:r,searchAllEnabled:l}=this.viewModel;return r.length>1&&!e?o`<calcite-dropdown class="dropdown" .disabled=${i} .open=${s==="source"} overlay-positioning=fixed .topLayerDisabled=${this.topLayerDisabled} @calciteDropdownClose=${this._handleSourceClose} @calciteDropdownOpen=${this._handleSourceOpen} @calciteDropdownSelect=${this._handleSourceSelect}><calcite-button appearance=outline-fill icon-start=caret-down kind=neutral .label=${t.searchIn} slot=trigger></calcite-button><calcite-dropdown-group .groupTitle=${t.searchIn}>${l?this._renderSource(-1):null}${r.map((c,d)=>this._renderSource(d)).toArray()}</calcite-dropdown-group></calcite-dropdown>`:null}_renderUseCurrentLocation(){let{_currentLocationValue:e}=this;return o`<calcite-autocomplete-item .heading=${this.messages.useCurrentLocation??""} icon-start=gps-on .value=${e}></calcite-autocomplete-item>`}_renderAutocomplete(){let{_effectiveActiveMenu:e,messages:t,_isDisabled:i}=this,{maxInputLength:s,placeholder:r,searchTerm:l,state:c}=this.viewModel,d=this.label??t.searchButtonTitle??"";return o`<calcite-autocomplete autocomplete=off class="autocomplete" .disabled=${i} .icon=${this.icon||void 0} .inputValue=${l} .label=${d} .loading=${c==="searching"} .maxLength=${s} .name=${this.el.id} @keydown=${this._handleInputKeydown} .open=${e==="suggestion"} overlay-positioning=fixed .placeholder=${r} .topLayerDisabled=${this.topLayerDisabled} title=${(l?"":r)??f} @calciteAutocompleteChange=${this._handleCalciteAutocompleteChange} @calciteAutocompleteClose=${this._handleAutocompleteClose} @calciteAutocompleteOpen=${this._handleAutocompleteOpen} @calciteAutocompleteTextChange=${this._handleCalciteAutocompleteTextInput} @calciteAutocompleteTextInput=${this._handleCalciteAutocompleteTextInput} ${_(this._handleAutocompleteCreate)}>${this._renderSuggestions()}${this._renderNotices()}</calcite-autocomplete>`}_renderForm(){return o`<form class="form" @submit=${this._formSubmit} role=search>${this._renderAutocomplete()}<button class="submit-button" type=submit>${this.label??this.messages.searchButtonTitle??""}</button></form>`}_renderSuggestGroup(e){return e.results?.map(t=>this._renderSuggestion(t))}_renderSuggestions(){let{suggestions:e}=this.viewModel;return this._showNoResults?null:this._showCurrentLocation?this._renderUseCurrentLocation():e?.map(t=>this._renderSuggestResults(t))}_renderSuggestResults(e){let{allSources:t,activeSourceIndex:i}=this.viewModel,{sourceIndex:s}=e,r=e.results?.length,l=t.length>1&&i===-1,c=this._getSourceName(s);return r&&l?o`<calcite-autocomplete-item-group .heading=${c}>${this._renderSuggestGroup(e)}</calcite-autocomplete-item-group>`:this._renderSuggestGroup(e)}_renderSuggestion(e){let{key:t,sourceIndex:i,text:s}=e,r={key:t,sourceIndex:i};return o`<calcite-autocomplete-item .heading=${s??this.messages.untitledResult??""} .value=${JSON.stringify(r)} .selected=${e===this.viewModel.selectedSuggestion}></calcite-autocomplete-item>`}_renderSource(e){let t=this._getSourceName(e);return o`<calcite-dropdown-item data-source-index=${`${e}`} .selected=${e===this.viewModel.activeSourceIndex}>${t}</calcite-dropdown-item>`}_renderNoResultsWarning(e){let{messages:t}=this,i=e?D(t.noResultsFoundForValue??"",{value:`"${e}"`}):t.noResultsFound;return o`<calcite-notice icon=exclamation-mark-triangle kind=warning open slot=content-bottom><div slot=title>${t.noResults}</div><div slot=message>${i}</div></calcite-notice>`}_renderLocateError(){return o`<calcite-notice icon=exclamation-mark-circle kind=danger open slot=content-bottom><div slot=message>${this.messages.locateError}</div></calcite-notice>`}_renderNotices(){return this._locateFailed?this._renderLocateError():this._showNoResults?this._renderNoResultsWarning(this._lastSearchTerm??this.viewModel.searchTerm):null}};x("arcgis-search",g);return g},"widgets/Search/SearchViewModel","core/promiseUtils","intl","core/reactiveUtils",a,c,d,e,g)
2
+ import{a as R}from"./HGGXNI56.js";import{a as h}from"./VJVKFKSG.js";import g from"./CBB2T3RI.js";import{a as y}from"./OHCCNZCY.js";import{a as $}from"./JD74LG7K.js";import e from"./G37JKMBJ.js";import d from"./75OH7AOP.js";import c from"./CODEI67F.js";import{h as S}from"./R2XADTZ4.js";import"./FZBSTBH3.js";import a from"./7XCYURYF.js";import"./QUZTFUWM.js";import{b as M}from"./4TV72DOP.js";import"./XURWCCLX.js";import{O as _,P as v,R as w,T as f,U as b,W as x,a as p,b as o,x as m}from"./I2BIPOZQ.js";import"./H6RQVSYM.js";export default $arcgis.t(([E,{isAbortError:T},{substitute:D},{watch:u,on:A},,,,a,C])=>{var L=p`.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-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-hidden{display:none!important}:host{width:240px}.root{--arcgis-internal-search-width: 240px;display:flex;flex-flow:row nowrap;align-items:center;justify-content:center;width:100%}.dropdown{--calcite-color-border-1: var(--calcite-color-border-input);--calcite-dropdown-width: var(--arcgis-internal-search-width);width:31px}.dropdown calcite-button{--calcite-offset-invert-focus: 1}.autocomplete{flex:1}.container{display:flex;position:relative;flex:1 0 100%;flex-flow:row nowrap;align-items:stretch}.form{display:flex;flex:1 0;flex-flow:row nowrap;align-items:stretch;margin:0;padding:0}.submit-button{position:absolute;margin:-1px;border-width:0;padding:0;width:1px;height:1px;overflow:hidden;white-space:nowrap;clip:rect(0,0,0,0)}`,z=C(E);function k(n){return typeof n=="object"&&n!==null&&"openPopup"in n&&"closePopup"in n}var g=class extends v{constructor(){super(...arguments),this.viewModel=z(this),this._currentLocationValue="search-use-current-location",this._autocompleteEl=void 0,this._searchResultRendererEl=void 0,this._searchResultRendererContentEl=void 0,this._suggestController=void 0,this._searchController=void 0,this._lastSearchTerm="",this._handleSelectResult=e=>{let{name:t}=e.detail.result;this._selectedMessage=D(this.messages.resultSelected,{resultName:t})},this.messages=y({blocking:!0}),this._locateFailed=!1,this._showNoResults=!1,this.view=this.viewModel.view,this.goToOverride=this.viewModel.goToOverride,this.icon="search",this.hideSourcesMenu=!1,this.activeMenu="none",this.activeSourceIndex=this.viewModel.activeSourceIndex,this.allPlaceholder=this.viewModel.allPlaceholder,this.allSources=this.viewModel.allSources,this.autoNavigateDisabled=this.viewModel.autoNavigate,this.autoSelectDisabled=this.viewModel.autoSelect,this.defaultSources=this.viewModel.defaultSources,this.disabled=!1,this.locationDisabled=this.viewModel.locationEnabled,this.maxResults=this.viewModel.maxResults,this.maxSuggestions=this.viewModel.maxSuggestions,this.minSuggestCharacters=this.viewModel.minSuggestCharacters,this.popupDisabled=this.viewModel.popupEnabled,this.popupTemplate=this.viewModel.popupTemplate,this.portal=this.viewModel.portal,this.resultGraphic=this.viewModel.resultGraphic,this.resultGraphicDisabled=this.viewModel.resultGraphicEnabled,this.results=this.viewModel.results,this.searchAllDisabled=this.viewModel.searchAllEnabled,this.searchTerm=this.viewModel.searchTerm,this.selectedResult=this.viewModel.selectedResult,this.sources=this.viewModel.sources,this.suggestions=this.viewModel.suggestions,this.suggestionsDisabled=this.viewModel.suggestionsEnabled,this.topLayerDisabled=!1,this.autoDestroyDisabled=!1,this.state=this.viewModel.state,this.arcgisPropertyChange=S()("state"),this.arcgisReady=m(),this.arcgisSearchClear=a(()=>this.viewModel,"search-clear"),this.arcgisSearchComplete=a(()=>this.viewModel,"search-complete"),this.arcgisSearchStart=a(()=>this.viewModel,"search-start"),this.arcgisSelectResult=a(()=>this.viewModel,"select-result"),this.arcgisSuggestComplete=a(()=>this.viewModel,"suggest-complete"),this.arcgisSuggestStart=a(()=>this.viewModel,"suggest-start")}static{this.properties={_selectedMessage:16,messages:16,_locateFailed:16,_showNoResults:16,_isDisabled:16,_showCurrentLocation:16,_effectiveActiveMenu:16,view:0,referenceElement:1,goToOverride:0,icon:1,hideSourcesMenu:5,activeMenu:1,activeSource:32,activeSourceIndex:9,allPlaceholder:1,allSources:0,autoNavigateDisabled:5,autoSelectDisabled:5,defaultSources:0,disabled:5,includeDefaultSourcesDisabled:5,locationDisabled:5,maxResults:9,maxSuggestions:9,minSuggestCharacters:9,popupDisabled:5,popupTemplate:0,portal:0,resultGraphic:0,resultGraphicDisabled:5,results:0,searchAllDisabled:5,searchTerm:1,selectedResult:0,sources:0,suggestions:32,suggestionsDisabled:5,topLayerDisabled:5,autoDestroyDisabled:5,messageOverrides:0,label:1,state:32}}static{this.styles=[L,R]}get _isDisabled(){let{state:e}=this.viewModel;return e==="disabled"||e==="loading"||this.disabled}get _showCurrentLocation(){return!this.locationDisabled&&!this.searchTerm?.trim()}get _effectiveActiveMenu(){return this._isDisabled?"none":this.activeMenu}get activeSource(){return this.viewModel?.activeSource}get includeDefaultSourcesDisabled(){let{includeDefaultSources:e}=this.viewModel;return typeof e=="boolean"?!e:e}set includeDefaultSourcesDisabled(e){this.viewModel.includeDefaultSources=typeof e=="boolean"?!e:e}clear(){this._locateFailed=!1,this._selectedMessage=void 0,this.viewModel.clear()}async destroy(){this._closePopup(this.viewModel.resultGraphic),this._cancelQueries(),await this._searchResultRendererEl?.destroy(),await this._searchResultRendererContentEl?.destroy(),await this.manager.destroy()}async search(e){this._cancelQueries();let t=new AbortController,{signal:i}=t;this._searchController=t;try{let s=await this.viewModel.search(e,{signal:i});return this._searchController!==t?void 0:(s?.numResults||(this._showNoResults=!0,this.activeMenu="suggestion"),this._searchController=void 0,s)}catch{if(this._searchController!==t)return;this._searchController=void 0;return}}async setFocus(){await this._autocompleteEl?.setFocus()}async suggest(e){this._cancelSuggest();let t=new AbortController,{signal:i}=t;this._suggestController=t;try{let s=await this.viewModel.suggest(e,null,{signal:i});return this._suggestController!==t?void 0:(this._suggestController=void 0,s?.numResults&&(this.activeMenu="suggestion",this._scrollToTopSuggestion()),s)}catch{return this._suggestController!==t||(this._suggestController=void 0),null}}loaded(){this.listen("arcgisSelectResult",this._handleSelectResult),this.manager.onLifecycle(()=>[u(()=>[this._searchResultRendererEl,this.viewModel?.defaultPopupTemplate],()=>{let e=this.viewModel?.defaultPopupTemplate,{_searchResultRendererEl:t}=this;if(e&&t){let i=document.createElement("div");i.appendChild(t),e.content=i,this._searchResultRendererContentEl=t}},{initial:!0}),u(()=>this.messages,e=>this.viewModel.messages=e,{initial:!0}),u(()=>this.viewModel?.resultGraphic,(e,t)=>this._closePopup(t)),A(()=>this.viewModel,"select-result",e=>{let{popupEnabled:t}=e;t&&this._openPopup()})])}_addSearchResultRenderer(){this._searchResultRendererEl=b(o`<arcgis-search-result-renderer auto-destroy-disabled .messages=${this.messages} .viewModel=${this.viewModel}></arcgis-search-result-renderer>`)}_closePopup(e){let{referenceElement:t,view:i}=this;k(t)&&t.popupElement?.selectedFeature===e?t?.closePopup():i?.popup?.selectedFeature===e&&i?.closePopup()}_openPopup(){if(k(this.referenceElement)){let{resultGraphic:e,resultLocation:t}=this.viewModel,i={features:e?[e]:[],location:t};this.referenceElement?.openPopup(i)}else if(this.view){let{resultGraphic:e,resultLocation:t}=this.viewModel;this.view.openPopup({features:e?[e]:[],location:t})}}_handleInputKeydown(e){e.key==="Tab"&&this._cancelSuggest()}_handleAutocompleteCreate(e){this._autocompleteEl=e}_handleCalciteAutocompleteTextInput(e){let t=e.target.inputValue;t!==this.viewModel.searchTerm&&(this.viewModel.searchTerm=t,t||this.clear(),this.suggest())}_handleAutocompleteOpen(){this.activeMenu="suggestion"}_handleAutocompleteClose(){this.activeMenu==="suggestion"&&(this.activeMenu="none")}_handleCalciteAutocompleteChange(e){let t=e.target.value;if(t===this._currentLocationValue){this._useCurrentLocation();return}let i=JSON.parse(t),s=this.viewModel.suggestions?.find(({sourceIndex:r})=>r===i.sourceIndex)?.results?.find(({key:r})=>`${r}`==`${i.key}`);s&&this.search(s)}async _useCurrentLocation(){this._cancelQueries();let e=new AbortController,{signal:t}=e;this._searchController=e;try{await this.viewModel.searchNearby({signal:t})}catch(i){T(i)||(this._locateFailed=!0,this.activeMenu="suggestion")}finally{this._searchController=void 0}}_handleSourceOpen(){this.activeMenu="source"}_handleSourceClose(){this.activeMenu==="source"&&(this.activeMenu="none")}_handleSourceSelect(e){let t=e.target.selectedItems[0].getAttribute("data-source-index");t&&(this.viewModel.activeSourceIndex=Number.parseInt(t,10))}_cancelSuggest(){this.activeMenu="none",this._locateFailed=!1,this._showNoResults=!1,this._suggestController=h(this._suggestController)}_cancelQueries(){this._cancelSuggest(),this._searchController=h(this._searchController)}_scrollToTopSuggestion(){this._autocompleteEl?.scrollContentTo({top:0})}_formSubmit(e){e.preventDefault(),this.activeMenu="none",this._lastSearchTerm=this.searchTerm,this.searchTerm&&this.search()}_getSourceName(e){let{messages:t}=this,{allSources:i}=this.viewModel,s=i.at(e);return(e===-1?t.all:s?.name||t.untitledSource)||""}render(){return this._addSearchResultRenderer(),o`<div class=${w(M("root",$.widget))}><div class="sr-only" aria-live=polite>${this._selectedMessage}</div><div class="container">${this._renderSourcesMenu()}${this._renderForm()}</div></div>`}_renderSourcesMenu(){let{hideSourcesMenu:e,messages:t,_isDisabled:i,_effectiveActiveMenu:s}=this,{allSources:r,searchAllEnabled:l}=this.viewModel;return r.length>1&&!e?o`<calcite-dropdown class="dropdown" .disabled=${i} .open=${s==="source"} overlay-positioning=fixed .topLayerDisabled=${this.topLayerDisabled} @calciteDropdownClose=${this._handleSourceClose} @calciteDropdownOpen=${this._handleSourceOpen} @calciteDropdownSelect=${this._handleSourceSelect}><calcite-button appearance=outline-fill icon-start=caret-down kind=neutral .label=${t.searchIn} slot=trigger></calcite-button><calcite-dropdown-group .groupTitle=${t.searchIn}>${l?this._renderSource(-1):null}${r.map((c,d)=>this._renderSource(d)).toArray()}</calcite-dropdown-group></calcite-dropdown>`:null}_renderUseCurrentLocation(){let{_currentLocationValue:e}=this;return o`<calcite-autocomplete-item .heading=${this.messages.useCurrentLocation??""} icon-start=gps-on .value=${e}></calcite-autocomplete-item>`}_renderAutocomplete(){let{_effectiveActiveMenu:e,messages:t,_isDisabled:i}=this,{maxInputLength:s,placeholder:r,searchTerm:l,state:c}=this.viewModel,d=this.label??t.searchButtonTitle??"";return o`<calcite-autocomplete autocomplete=off class="autocomplete" .disabled=${i} .icon=${this.icon||void 0} .inputValue=${l} .label=${d} .loading=${c==="searching"} .maxLength=${s} .name=${this.el.id} @keydown=${this._handleInputKeydown} .open=${e==="suggestion"} overlay-positioning=fixed .placeholder=${r} .topLayerDisabled=${this.topLayerDisabled} title=${(l?"":r)??f} @calciteAutocompleteChange=${this._handleCalciteAutocompleteChange} @calciteAutocompleteClose=${this._handleAutocompleteClose} @calciteAutocompleteOpen=${this._handleAutocompleteOpen} @calciteAutocompleteTextChange=${this._handleCalciteAutocompleteTextInput} @calciteAutocompleteTextInput=${this._handleCalciteAutocompleteTextInput} ${_(this._handleAutocompleteCreate)}>${this._renderSuggestions()}${this._renderNotices()}</calcite-autocomplete>`}_renderForm(){return o`<form class="form" @submit=${this._formSubmit} role=search>${this._renderAutocomplete()}<button class="submit-button" type=submit>${this.label??this.messages.searchButtonTitle??""}</button></form>`}_renderSuggestGroup(e){return e.results?.map(t=>this._renderSuggestion(t))}_renderSuggestions(){let{suggestions:e}=this.viewModel;return this._showNoResults?null:this._showCurrentLocation?this._renderUseCurrentLocation():e?.map(t=>this._renderSuggestResults(t))}_renderSuggestResults(e){let{allSources:t,activeSourceIndex:i}=this.viewModel,{sourceIndex:s}=e,r=e.results?.length,l=t.length>1&&i===-1,c=this._getSourceName(s);return r&&l?o`<calcite-autocomplete-item-group .heading=${c}>${this._renderSuggestGroup(e)}</calcite-autocomplete-item-group>`:this._renderSuggestGroup(e)}_renderSuggestion(e){let{key:t,sourceIndex:i,text:s}=e,r={key:t,sourceIndex:i};return o`<calcite-autocomplete-item .heading=${s??this.messages.untitledResult??""} .value=${JSON.stringify(r)} .selected=${e===this.viewModel.selectedSuggestion}></calcite-autocomplete-item>`}_renderSource(e){let t=this._getSourceName(e);return o`<calcite-dropdown-item data-source-index=${`${e}`} .selected=${e===this.viewModel.activeSourceIndex}>${t}</calcite-dropdown-item>`}_renderNoResultsWarning(e){let{messages:t}=this,i=e?D(t.noResultsFoundForValue??"",{value:`"${e}"`}):t.noResultsFound;return o`<calcite-notice icon=exclamation-mark-triangle kind=warning open slot=content-bottom><div slot=title>${t.noResults}</div><div slot=message>${i}</div></calcite-notice>`}_renderLocateError(){return o`<calcite-notice icon=exclamation-mark-circle kind=danger open slot=content-bottom><div slot=message>${this.messages.locateError}</div></calcite-notice>`}_renderNotices(){return this._locateFailed?this._renderLocateError():this._showNoResults?this._renderNoResultsWarning(this._lastSearchTerm??this.viewModel.searchTerm):null}};x("arcgis-search",g);return g},"widgets/Search/SearchViewModel","core/promiseUtils","intl","core/reactiveUtils",a,c,d,e,g)