@arcgis/map-components 5.2.3 → 5.2.4

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 (263) hide show
  1. package/dist/cdn/{7UDWKTRZ.js → 22YQ2I4Q.js} +1 -1
  2. package/dist/cdn/{XRDOAWWE.js → 26HV57H7.js} +1 -1
  3. package/dist/cdn/{GQK6TEJ5.js → 26VIAHPF.js} +1 -1
  4. package/dist/cdn/{EQQOW2HU.js → 27KYQNKP.js} +1 -1
  5. package/dist/cdn/{LKI4MW42.js → 27YN5YT4.js} +1 -1
  6. package/dist/cdn/{RLANFCB3.js → 2BBD6VW2.js} +1 -1
  7. package/dist/cdn/{4BLOLOQK.js → 2IYRSXZS.js} +1 -1
  8. package/dist/cdn/{36WX25I4.js → 2NW2URBZ.js} +1 -1
  9. package/dist/cdn/{ME7JRML7.js → 2P4UY266.js} +1 -1
  10. package/dist/cdn/{ON5PPM2N.js → 2Z5F2BEF.js} +1 -1
  11. package/dist/cdn/{4GPS2BM4.js → 33CM77ZT.js} +1 -1
  12. package/dist/cdn/{BRMTQZFL.js → 3ASVOZZN.js} +1 -1
  13. package/dist/cdn/{CM3MLR7H.js → 3AXMZRRO.js} +1 -1
  14. package/dist/cdn/{4EUZ5NCL.js → 3GPIVC5P.js} +1 -1
  15. package/dist/cdn/3GXZW3ZZ.js +2 -0
  16. package/dist/cdn/{MVBWGXLS.js → 3Q4C6BLY.js} +1 -1
  17. package/dist/cdn/{QFJ73GRU.js → 3QFEQCVN.js} +1 -1
  18. package/dist/cdn/{JTUQ2CV5.js → 3UB7YDP2.js} +1 -1
  19. package/dist/cdn/{6KDG3KXI.js → 3UZK6UYW.js} +1 -1
  20. package/dist/cdn/{W5ZDJR73.js → 3XBN5QVA.js} +1 -1
  21. package/dist/cdn/{OWSH2UST.js → 3XGDS5QW.js} +1 -1
  22. package/dist/cdn/{PZKE7SIU.js → 3YL6SRFS.js} +1 -1
  23. package/dist/cdn/{4MYEWR4O.js → 3Z2A32L3.js} +1 -1
  24. package/dist/cdn/{HWGFEZOE.js → 42PE2SPG.js} +1 -1
  25. package/dist/cdn/{AW3VSJ4S.js → 43BJYWX5.js} +1 -1
  26. package/dist/cdn/{LMO4H6JB.js → 45COW2XC.js} +1 -1
  27. package/dist/cdn/{U5RHAE5O.js → 45DBVQ5G.js} +1 -1
  28. package/dist/cdn/{GQBT2JWS.js → 45ZOIFQJ.js} +1 -1
  29. package/dist/cdn/{PLWMP4K6.js → 4QN3V76Q.js} +1 -1
  30. package/dist/cdn/{A2SLHYTQ.js → 4QTVZIDY.js} +1 -1
  31. package/dist/cdn/{I4NXDFWY.js → 4RATJWRO.js} +1 -1
  32. package/dist/cdn/{Z5ZVOVEG.js → 4TGV2X47.js} +1 -1
  33. package/dist/cdn/{BWISX7PI.js → 4TI6CNOV.js} +1 -1
  34. package/dist/cdn/{4WCY7DGR.js → 4UHNVQPP.js} +1 -1
  35. package/dist/cdn/{NKKNKLBI.js → 4UQ6UUHY.js} +1 -1
  36. package/dist/cdn/{TEX6U3QA.js → 5GJOYBI7.js} +1 -1
  37. package/dist/cdn/{IUVIG5KE.js → 5IS4UXVE.js} +1 -1
  38. package/dist/cdn/{2KI5JQFR.js → 5JQT4A7C.js} +1 -1
  39. package/dist/cdn/{V5A56PRN.js → 5MIP6ZL7.js} +1 -1
  40. package/dist/cdn/{V273E2DS.js → 5XBLTA7T.js} +1 -1
  41. package/dist/cdn/{QRT6VXRY.js → 65F7YFJC.js} +1 -1
  42. package/dist/cdn/{QEACKXI2.js → 65VYDNYQ.js} +1 -1
  43. package/dist/cdn/{6KC3T5KT.js → 66I2OTCZ.js} +1 -1
  44. package/dist/cdn/{4NGW6RPM.js → 6AWNWO34.js} +1 -1
  45. package/dist/cdn/{EFQ6PB75.js → 6BCQ52L7.js} +1 -1
  46. package/dist/cdn/{ZW3ZNFYI.js → 6CRONNHI.js} +1 -1
  47. package/dist/cdn/{YK3OHMKT.js → 6N7PM73F.js} +1 -1
  48. package/dist/cdn/{ABADOZAX.js → 6R6R3XTH.js} +1 -1
  49. package/dist/cdn/{NKK27XKY.js → 6RB62D2W.js} +1 -1
  50. package/dist/cdn/{KT7YFUYY.js → 725LPPIM.js} +1 -1
  51. package/dist/cdn/{UGVAEIPY.js → 76ZJGD75.js} +1 -1
  52. package/dist/cdn/{GJGUY2TX.js → 7BUZBVCD.js} +1 -1
  53. package/dist/cdn/{P2A4UHL6.js → 7EMK74ZF.js} +1 -1
  54. package/dist/cdn/{ELDU2LYZ.js → 7HSEOEBC.js} +1 -1
  55. package/dist/cdn/{BYC7JUTS.js → 7IHIG427.js} +1 -1
  56. package/dist/cdn/{XNTCBTPU.js → 7LWKOSKH.js} +1 -1
  57. package/dist/cdn/{EAZLRECI.js → 7NHKX7LM.js} +1 -1
  58. package/dist/cdn/{R7P52BCB.js → 7NQQ3S77.js} +1 -1
  59. package/dist/cdn/{W4XP4E3G.js → 7Z6N5WXJ.js} +1 -1
  60. package/dist/cdn/{XK6ENKJ5.js → 7ZT4OUUW.js} +1 -1
  61. package/dist/cdn/{JOTRAPIN.js → A4TJO5PZ.js} +1 -1
  62. package/dist/cdn/{BPMHMJHD.js → A7E66LIH.js} +1 -1
  63. package/dist/cdn/{3D6YELGM.js → ADQWQBEW.js} +1 -1
  64. package/dist/cdn/{RK47P24H.js → ADWVRV5I.js} +1 -1
  65. package/dist/cdn/{CI22IYKP.js → ADYG2EMM.js} +1 -1
  66. package/dist/cdn/{5TXFEC6B.js → AETNFVGH.js} +1 -1
  67. package/dist/cdn/{VWLPJFWI.js → AL6L663C.js} +1 -1
  68. package/dist/cdn/{BKXYV7K3.js → AVIXHXI6.js} +1 -1
  69. package/dist/cdn/{7OBQZBQO.js → AXA4NQBL.js} +1 -1
  70. package/dist/cdn/{IAPRDZW3.js → AXUOAFV7.js} +1 -1
  71. package/dist/cdn/{EOOAAAWE.js → B72ELQQW.js} +1 -1
  72. package/dist/cdn/{TI33IM3W.js → BDNXOVLN.js} +1 -1
  73. package/dist/cdn/{YW2OX2TN.js → BMJXYAYT.js} +1 -1
  74. package/dist/cdn/{2ZK652UN.js → BYJVWNVL.js} +1 -1
  75. package/dist/cdn/{RXYXPOMC.js → C2DNE5TB.js} +1 -1
  76. package/dist/cdn/{YIZIZKSR.js → C5MWND53.js} +1 -1
  77. package/dist/cdn/{BGEH2C44.js → CLVKSUYH.js} +1 -1
  78. package/dist/cdn/{OCN7CPWD.js → CNBOU73I.js} +1 -1
  79. package/dist/cdn/{DFXZPZGI.js → CRSLMZ6H.js} +1 -1
  80. package/dist/cdn/{Y6QNK4JH.js → CSS4XGEC.js} +1 -1
  81. package/dist/cdn/{5UMTZK7B.js → CTWWJ6FV.js} +1 -1
  82. package/dist/cdn/{DSCFXKLG.js → CUX6ELAH.js} +1 -1
  83. package/dist/cdn/{MXT7FOQA.js → CXUGFNZW.js} +1 -1
  84. package/dist/cdn/{PESGPSYQ.js → CYISOXDZ.js} +1 -1
  85. package/dist/cdn/{XJSQF3BD.js → D3YO4ZOH.js} +1 -1
  86. package/dist/cdn/{XQOSXYOG.js → DDVFTISN.js} +1 -1
  87. package/dist/cdn/DGYFI3QX.js +2 -0
  88. package/dist/cdn/{I6JC44S3.js → DLYAECAD.js} +1 -1
  89. package/dist/cdn/{AMWJET7O.js → DRGUJ5LY.js} +1 -1
  90. package/dist/cdn/{24U6DHQD.js → DZH4KU2P.js} +1 -1
  91. package/dist/cdn/{CIR2ZEMV.js → E2NFVZER.js} +1 -1
  92. package/dist/cdn/{Z5CYEI56.js → E3LXH4CS.js} +1 -1
  93. package/dist/cdn/{6RBLQCQW.js → EHE46WJD.js} +1 -1
  94. package/dist/cdn/{ELRHOVX4.js → EKSBCS54.js} +1 -1
  95. package/dist/cdn/{M26LXIPE.js → F2WMR3YQ.js} +1 -1
  96. package/dist/cdn/{7I335K4G.js → F5B4WIVL.js} +1 -1
  97. package/dist/cdn/{L2AXRJFR.js → FBL6FWKR.js} +1 -1
  98. package/dist/cdn/{ZEFGVZBC.js → FEBHYZ6D.js} +1 -1
  99. package/dist/cdn/{RYZPLPUS.js → FG2YJIYE.js} +1 -1
  100. package/dist/cdn/{NMTZHGGF.js → FG72D6YZ.js} +1 -1
  101. package/dist/cdn/{UPQJZ4VA.js → FHYP6EF2.js} +1 -1
  102. package/dist/cdn/{ZYVFTUSL.js → FJBCC7ZH.js} +1 -1
  103. package/dist/cdn/{ZTTSXNZZ.js → FQBXGJER.js} +1 -1
  104. package/dist/cdn/{B2IA36KS.js → FQJ27ZN5.js} +1 -1
  105. package/dist/cdn/{V7YWVHBX.js → G55BOIXB.js} +1 -1
  106. package/dist/cdn/{KGDXNHVN.js → G6OJLMKT.js} +1 -1
  107. package/dist/cdn/{NPY3VBCU.js → G76VVSVA.js} +1 -1
  108. package/dist/cdn/{TCQH5LMF.js → GBGU5QK5.js} +1 -1
  109. package/dist/cdn/{UOQOPISG.js → GCBY5PIC.js} +1 -1
  110. package/dist/cdn/{WEXLR3NQ.js → GFZOUGIU.js} +1 -1
  111. package/dist/cdn/{66WCZ75F.js → GPPCLLAX.js} +1 -1
  112. package/dist/cdn/{LBO3GPSH.js → GQ3SO3TR.js} +1 -1
  113. package/dist/cdn/{XD7FRUNP.js → GVUTAN2R.js} +1 -1
  114. package/dist/cdn/{OIXVH7GC.js → H65Z7MWV.js} +1 -1
  115. package/dist/cdn/{462PGTSZ.js → HKKK7PAM.js} +1 -1
  116. package/dist/cdn/{ZJ2AYHW6.js → HP2P5OYN.js} +1 -1
  117. package/dist/cdn/{HHRCKFXQ.js → HSA4KTTI.js} +1 -1
  118. package/dist/cdn/{ECHEJ6SW.js → HUZONYD7.js} +1 -1
  119. package/dist/cdn/{GQXYKKD4.js → HXPDO6CM.js} +1 -1
  120. package/dist/cdn/{6VSDTKTT.js → I4KVOO6N.js} +1 -1
  121. package/dist/cdn/{C4WPN2GS.js → IAAFKO6G.js} +1 -1
  122. package/dist/cdn/{R2HGTWDL.js → IBPMRPU6.js} +1 -1
  123. package/dist/cdn/{HEIRYQKE.js → ICXOGGZG.js} +1 -1
  124. package/dist/cdn/{63LF3T5Z.js → IN5R6JL7.js} +1 -1
  125. package/dist/cdn/{WYTTRLKU.js → IQ3QP74J.js} +1 -1
  126. package/dist/cdn/{W2WHK5MI.js → IRN4ISDZ.js} +1 -1
  127. package/dist/cdn/{DFU4QJOF.js → IXBOTGHC.js} +1 -1
  128. package/dist/cdn/{I53VSBYF.js → IYJPEFK5.js} +1 -1
  129. package/dist/cdn/{QTKVYNEF.js → J4FJYZ25.js} +1 -1
  130. package/dist/cdn/{7KODDU5C.js → J6SWGP36.js} +1 -1
  131. package/dist/cdn/{NPCCO5TJ.js → J7OIAUDA.js} +1 -1
  132. package/dist/cdn/{6NA3MXVP.js → JA7KC626.js} +1 -1
  133. package/dist/cdn/{BBCBFISW.js → JCRUAYGH.js} +1 -1
  134. package/dist/cdn/{AN62CGCK.js → JJTRGGUD.js} +1 -1
  135. package/dist/cdn/{LZMMWLXN.js → JM6DRQRN.js} +1 -1
  136. package/dist/cdn/{SUSJGO7S.js → JNOTFCBC.js} +1 -1
  137. package/dist/cdn/{5MCDQSM7.js → JPP2BFD4.js} +1 -1
  138. package/dist/cdn/{PO44WKSG.js → JXONVBDR.js} +1 -1
  139. package/dist/cdn/{E6ODHOXW.js → JXZOSS7R.js} +1 -1
  140. package/dist/cdn/{2PRME2GL.js → K5FZWX5N.js} +1 -1
  141. package/dist/cdn/{TYAVYEHM.js → KBRTUP24.js} +1 -1
  142. package/dist/cdn/{3LPI2VLI.js → KP4YBPWU.js} +1 -1
  143. package/dist/cdn/{OQTWSNJ6.js → KSGX44II.js} +1 -1
  144. package/dist/cdn/{WPIMUQUF.js → L2JMPLBI.js} +1 -1
  145. package/dist/cdn/{LVFC4AWR.js → L4HEGMVE.js} +1 -1
  146. package/dist/cdn/{SI73BH5Q.js → LF2NKUJA.js} +1 -1
  147. package/dist/cdn/{MXQ4J764.js → LHPWDJ75.js} +1 -1
  148. package/dist/cdn/{3G2OTOJV.js → LQG26YL6.js} +1 -1
  149. package/dist/cdn/{EUDQ2QHZ.js → LTMZ7TOT.js} +1 -1
  150. package/dist/cdn/{TJRY7FHJ.js → LZGMWFOO.js} +1 -1
  151. package/dist/cdn/{YG44TKRR.js → LZL7VTQH.js} +1 -1
  152. package/dist/cdn/{B4RDNDQD.js → M5LPUEIS.js} +1 -1
  153. package/dist/cdn/{CP26XOGC.js → M5MUX3SR.js} +1 -1
  154. package/dist/cdn/{3NLHESH5.js → MRD6F6I3.js} +1 -1
  155. package/dist/cdn/{LGKF2N6J.js → N4R7LN4Y.js} +1 -1
  156. package/dist/cdn/{XOQS7GNR.js → N6L2XHFN.js} +1 -1
  157. package/dist/cdn/NBGFUVYW.js +2 -0
  158. package/dist/cdn/{XQXWBSON.js → NC77ZFVJ.js} +1 -1
  159. package/dist/cdn/{AUQIWRYN.js → NDAKSOSF.js} +1 -1
  160. package/dist/cdn/{UNFNZ4Q7.js → NU7WF2LD.js} +1 -1
  161. package/dist/cdn/{UQTENTWA.js → NXABZYBC.js} +1 -1
  162. package/dist/cdn/{YFWKR3JI.js → NZUH5VXN.js} +1 -1
  163. package/dist/cdn/{6PQX2G2C.js → NZVK73Y3.js} +1 -1
  164. package/dist/cdn/{I4L4KPGK.js → OAOXF5KZ.js} +1 -1
  165. package/dist/cdn/{KTTFGI23.js → OC5LFUMP.js} +1 -1
  166. package/dist/cdn/{2FFYTIQO.js → OCNR4NPT.js} +1 -1
  167. package/dist/cdn/{CF5DPJ5E.js → OCPTS6HN.js} +1 -1
  168. package/dist/cdn/{5XC5NHCI.js → OGJW7OTX.js} +1 -1
  169. package/dist/cdn/{NHK65POU.js → OJGHH26G.js} +1 -1
  170. package/dist/cdn/{TN75LWTI.js → OOAN57X4.js} +1 -1
  171. package/dist/cdn/OOCTOODF.js +2 -0
  172. package/dist/cdn/{4CHR5AQY.js → OQEFMTO6.js} +1 -1
  173. package/dist/cdn/{Y75GEEOM.js → OSV6AIA4.js} +1 -1
  174. package/dist/cdn/{H7GIAKYV.js → OW7VEQ7M.js} +1 -1
  175. package/dist/cdn/{OM6LULIZ.js → P2GMODLP.js} +1 -1
  176. package/dist/cdn/{AUIUBPAC.js → P5PUHTTZ.js} +1 -1
  177. package/dist/cdn/{KZS7CYKI.js → PE2PWL2J.js} +1 -1
  178. package/dist/cdn/{GUZFR3OQ.js → PEER45DY.js} +1 -1
  179. package/dist/cdn/{ZUROH43H.js → PJKKBIRS.js} +1 -1
  180. package/dist/cdn/{FCFT6F7S.js → PLYXWZK5.js} +1 -1
  181. package/dist/cdn/{QAEFC57S.js → PPURK2BH.js} +1 -1
  182. package/dist/cdn/{U4E7KMZA.js → PTTMCU4E.js} +1 -1
  183. package/dist/cdn/{ZWCH2FSP.js → QARHM5T5.js} +1 -1
  184. package/dist/cdn/{77QPF6TI.js → QGMWSIUI.js} +1 -1
  185. package/dist/cdn/{QHS3AP7F.js → QPY7IYQY.js} +1 -1
  186. package/dist/cdn/{WC32IFLG.js → QTFACWJS.js} +1 -1
  187. package/dist/cdn/{Z3H63R5E.js → R5YS4GKL.js} +1 -1
  188. package/dist/cdn/{DGTTGUWY.js → R7UUK7UW.js} +1 -1
  189. package/dist/cdn/{PNPZVEGZ.js → RAWM42BS.js} +1 -1
  190. package/dist/cdn/{HFQHSNVJ.js → RLUANYVV.js} +1 -1
  191. package/dist/cdn/{O3ZPAZWD.js → RMMYKX2C.js} +1 -1
  192. package/dist/cdn/{IEN33F6J.js → RZ5SLTHC.js} +1 -1
  193. package/dist/cdn/{FBN3C2IA.js → RZHSZ3H2.js} +1 -1
  194. package/dist/cdn/{2HFZHOW2.js → S6RI6HCD.js} +1 -1
  195. package/dist/cdn/{SWZN2LJN.js → SDQDUGKX.js} +1 -1
  196. package/dist/cdn/{A444AODZ.js → SMT4LA5X.js} +1 -1
  197. package/dist/cdn/{ONVFT6TQ.js → TFVRJUSJ.js} +1 -1
  198. package/dist/cdn/{CINDE6V3.js → TLKQ4SHF.js} +1 -1
  199. package/dist/cdn/TR7SBUZN.js +2 -0
  200. package/dist/cdn/TSGJUXIR.js +2 -0
  201. package/dist/cdn/{GGN2NVG7.js → TULJ7Y32.js} +1 -1
  202. package/dist/cdn/{3AAY73SE.js → TWCJYCYQ.js} +1 -1
  203. package/dist/cdn/{UFIXUQ76.js → UC2COAGW.js} +1 -1
  204. package/dist/cdn/{MH7GDPAM.js → UEDZF47N.js} +1 -1
  205. package/dist/cdn/{WMQ54EOP.js → USFLEWDK.js} +1 -1
  206. package/dist/cdn/{SGRNBHVD.js → UVLOCGTT.js} +1 -1
  207. package/dist/cdn/{BK4L5A3D.js → UWPWTJ2J.js} +1 -1
  208. package/dist/cdn/{FP74DFKU.js → UX6GYAWK.js} +1 -1
  209. package/dist/cdn/{ZMRMNOXL.js → UXW5MQM7.js} +1 -1
  210. package/dist/cdn/{SLPNM3RW.js → VFGAPD6E.js} +1 -1
  211. package/dist/cdn/{GGTETDG3.js → VJSPMUHM.js} +1 -1
  212. package/dist/cdn/{ZM6HNXSZ.js → VLIXVXP3.js} +1 -1
  213. package/dist/cdn/{QLC2RVDQ.js → VLPW3VFM.js} +1 -1
  214. package/dist/cdn/{2BWSUOWD.js → VO5QOZLY.js} +1 -1
  215. package/dist/cdn/{MBXG2SXJ.js → VVCANCHO.js} +1 -1
  216. package/dist/cdn/{UOJST2V4.js → VVRC5BEV.js} +1 -1
  217. package/dist/cdn/{SBNM2ONV.js → VXEZRMIB.js} +1 -1
  218. package/dist/cdn/{IGPRDQ54.js → WGDJZRA7.js} +1 -1
  219. package/dist/cdn/{CARHSFPH.js → WM2BIX22.js} +1 -1
  220. package/dist/cdn/{2RPMEM3H.js → WVBYHVGU.js} +1 -1
  221. package/dist/cdn/{KFXLQIC5.js → X4FA56YR.js} +1 -1
  222. package/dist/cdn/{GUNFY32Y.js → XF2UVS35.js} +1 -1
  223. package/dist/cdn/{GNZWEVHM.js → XHHIPQFI.js} +1 -1
  224. package/dist/cdn/{XPDGVBSX.js → XJVBEFHM.js} +1 -1
  225. package/dist/cdn/{5FWWIRFW.js → XRTRPQD7.js} +1 -1
  226. package/dist/cdn/XVWPYACH.js +2 -0
  227. package/dist/cdn/{I3CCLD3Y.js → Y37A4DUY.js} +1 -1
  228. package/dist/cdn/{M3HUCUBU.js → Y4XOPAG7.js} +1 -1
  229. package/dist/cdn/{BLY5VNQD.js → Y6AHWNUS.js} +1 -1
  230. package/dist/cdn/{N542FLRH.js → Y7AXHIRQ.js} +1 -1
  231. package/dist/cdn/{GDMVYWNV.js → YGLWJECZ.js} +1 -1
  232. package/dist/cdn/{BWBS5XIO.js → YJQE7EHO.js} +1 -1
  233. package/dist/cdn/{2WR42AWJ.js → YLB7LLOQ.js} +1 -1
  234. package/dist/cdn/{CSMLJNYF.js → YRYVYLP7.js} +1 -1
  235. package/dist/cdn/{FTEHOQI6.js → YVZZACFZ.js} +1 -1
  236. package/dist/cdn/{74YGROI2.js → YX5HLX3D.js} +1 -1
  237. package/dist/cdn/{HAVN3BXW.js → Z3EC3N7C.js} +1 -1
  238. package/dist/cdn/{3NEWMAOY.js → Z4BEJRTJ.js} +1 -1
  239. package/dist/cdn/{U6KRBP5F.js → Z5M2ALAH.js} +1 -1
  240. package/dist/cdn/{7X6SDG4T.js → Z7EK7SAF.js} +1 -1
  241. package/dist/cdn/{R63ASFYP.js → ZBTXET66.js} +1 -1
  242. package/dist/cdn/{MWCXWOQ7.js → ZE7TYDWG.js} +1 -1
  243. package/dist/cdn/{IUO5DHED.js → ZF5GBMSS.js} +1 -1
  244. package/dist/cdn/{GFUJUIKL.js → ZJE2W2CU.js} +1 -1
  245. package/dist/cdn/{5RXVBIIN.js → ZXTGLPB7.js} +1 -1
  246. package/dist/cdn/index.js +1 -1
  247. package/dist/chunks/runtime.js +1 -1
  248. package/dist/components/arcgis-selection-list/customElement.d.ts +12 -0
  249. package/dist/components/arcgis-selection-toolbar/customElement.d.ts +10 -0
  250. package/dist/components/arcgis-sketch/customElement.d.ts +18 -0
  251. package/dist/components/arcgis-sketch/customElement.js +1 -1
  252. package/dist/docs/api.json +1 -1
  253. package/dist/docs/docs.json +1 -1
  254. package/dist/docs/vscode.html-custom-data.json +1 -1
  255. package/dist/docs/web-types.json +1 -1
  256. package/package.json +6 -6
  257. package/dist/cdn/7LPF5IGM.js +0 -2
  258. package/dist/cdn/ACTNLLAZ.js +0 -2
  259. package/dist/cdn/I5BFVPTT.js +0 -2
  260. package/dist/cdn/I7WLGS7M.js +0 -2
  261. package/dist/cdn/NGT2EGLV.js +0 -2
  262. package/dist/cdn/O7ORSE4M.js +0 -2
  263. package/dist/cdn/ZX3ATZ6W.js +0 -2
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import a from"./TMJX7DFH.js";import{a as q}from"./P2A4UHL6.js";import{P as C,X as _,a as E,b as p,p as h,r as b,x}from"./4GPS2BM4.js";export default $arcgis.t(([T,{cutExecute:N},{lengthExecute:v},{distanceExecute:A},{projectIsLoaded:O,projectLoad:W,projectExecute:z},{proximityGetNearestCoordinate:H},j,M,Z,Q,S,I,J,B,{substitute:K},{b:G,e:$,g:R,h:V}])=>{var X=E`calcite-block{--calcite-block-content-space: 0;--calcite-block-border-color: transparent;margin:0}.add-location-button{--calcite-button-border-color: var(--calcite-color-border-1);--calcite-button-icon-color: var(--calcite-color-text-1);--calcite-button-text-color: var(--calcite-color-text-1)}.button-container{display:flex;justify-content:center}calcite-list{margin:0 var(--calcite-space-sm) var(--calcite-space-sm);background-color:var(--calcite-color-surface-2);border:solid 1px var(--calcite-color-border-3);border-radius:var(--calcite-corner-radius-sm);overflow:hidden}calcite-list-item[selected] [slot=content-bottom]{display:block}.warning{color:var(--calcite-color-status-danger)}.terminals{padding:var(--calcite-space-sm) var(--calcite-space-md);display:flex;flex-direction:column}.filter-barrier{display:flex;justify-content:space-between;align-items:center;width:100%}`,U=`utility-network-trace-locations-sketch-${Date.now()}`,P=class D extends C{constructor(){super(...arguments),this._messages=q({blocking:!0}),this._isSelectWaiting=!1,this.traceLocationType="starting-point",this.traceLocations=new T,this.filterLayers=new T,this.spatialTolerance=.05,this.autoDestroyDisabled=!1,this.arcgisTraceLocationSelectEnd=x(),this.arcgisTraceLocationSelectStart=x(),this.arcgisError=x()}static{this.properties={_isSelectWaiting:16,beforeMapInteraction:0,afterMapInteraction:0,messageOverrides:0,view:0,traceLocationType:1,traceLocations:0,filterLayers:0,spatialTolerance:9,error:1,autoDestroyDisabled:5,utilityNetwork:0,heading:1,sketchViewModel:32}}static{this.styles=X}static{this.sketchViewModelMap=new Map}static getSketchViewModel(e){if(!this.sketchViewModelMap.has(e)){let t=this.#a(e,U);t&&this.sketchViewModelMap.set(e,new J({view:e,layer:t}))}return this.sketchViewModelMap.get(e)??null}static#a(e,t){if(!e?.map)return null;let i=e.map.findLayerById(t);if(!i){let r=new Q({id:t,listMode:"hide",title:t});return G(e,r),r}return i}static removeSketchGraphicsLayer(e){if(e?.map){let t=e.map.findLayerById(U);t&&e.map.remove(t),this.sketchViewModelMap.delete(e)}}#t;get sketchViewModel(){return this.view?D.getSketchViewModel(this.view):null}async destroy(){try{this.#t&&this.sketchViewModel?.cancel(),this.#r()}finally{await this.manager.destroy()}}async load(){O()||await W()}willUpdate(e){e.has("filterLayers")&&this.#o()}#e(e,t){this.error=t,h(e,this,t),this.arcgisError.emit()}#s(e){let{traceLocations:t,view:i}=this;e.spatialProperties.flagGraphic&&i&&i.graphics.remove(e.spatialProperties.flagGraphic),t?.remove(e)}#o(){if(!this.sketchViewModel)return;let e=new T;this.filterLayers?.forEach(t=>{R(t)?t.sublayers.forEach(i=>{e.add(new B({layer:i,enabled:!0}))}):e.add(new B({layer:t,enabled:!0}))}),this.sketchViewModel.snappingOptions={enabled:!1,featureSources:e}}#n(e,t){let i=e.clone(),r=i.spatialReference,o=t.spatialReference;if(!r||!o)return h("warn",this,"Unable to calculate percent along because geometry is missing a spatial reference."),-1;let a=t;if(!r.equals(o)){let w=z(t,r);if(!w)return h("warn",this,"Unable to project flag point to source geometry spatial reference."),-1;a=w}let c=H(i,a);if(c.isEmpty)return h("warn",this,"Unable to compute nearest coordinate for polyline flag."),-1;let s=c.coordinate,n=s.x-.5,l=s.y-.5,f=s.x+.5,y=s.y+.5,k=new M({hasZ:!1,hasM:!0,paths:[[[n,l],[f,y]]],spatialReference:i.spatialReference}),d=N(i,k);if(d.length>0){let w=v(i,{unit:"feet"}),u;if(d.length===1&&d[0].paths.length>1){let g=d[0],m=i.paths[0][0],L=g.paths[0][0];L[0]===m[0]&&L[1]===m[1]?u=v(new M({hasZ:!1,hasM:!0,paths:[g.paths[0]],spatialReference:i.spatialReference}),{unit:"feet"}):u=v(new M({hasZ:!1,hasM:!0,paths:[g.paths[1]],spatialReference:i.spatialReference}),{unit:"feet"})}else if(d.length===1){let g=new j({x:i.paths[0][0][0],y:i.paths[0][0][1],spatialReference:i.spatialReference}),m=new j({x:i.paths[0][i.paths[0].length-1][0],y:i.paths[0][i.paths[0].length-1][1],spatialReference:i.spatialReference}),L=A(g,a),F=A(m,a);L<F?u=0:u=w}else{let g=i.paths[0][0],m=d[0].paths[0][0];m[0]===g[0]&&m[1]===g[1]?u=v(d[0],{unit:"feet"}):u=v(d[1],{unit:"feet"})}return u/w}return h("warn",this,"Unable to cut the source geometry with the flag geometry."),-1}get#c(){let e=this.utilityNetwork?.dataElement?.domainNetworks;return e?e.flatMap(t=>t.edgeSources).map(t=>t.layerId).filter(Boolean):[]}async#l(){let{view:e,sketchViewModel:t}=this;if(!(e&&t)){h("error",this,"Cannot add trace location."),t||h("error",this,b("sketchViewModel")),e||h("error",this,b("view"));return}if(this.beforeMapInteraction){this._isSelectWaiting=!0;try{await this.beforeMapInteraction()}finally{this._isSelectWaiting=!1}}await this.#i(e,t)}async#i(e,t){this.arcgisTraceLocationSelectStart.emit({cancelSelect:()=>t.cancel()}).defaultPrevented||(this.#t?.remove(),this.#t=t.on("create",i=>this.#h(i,e,t)),"acquireCursor"in e&&e.acquireCursor("crosshair"),t.snappingOptions.enabled=!0,t.create("point"))}#h(e,t,i){if(e.state==="complete"&&e.graphic){i.layer.remove(e.graphic),this.#p(e,t,i);return}e.state==="cancel"&&(this.#r(),this.arcgisTraceLocationSelectEnd.emit())}async#p(e,t,i){let{utilityNetwork:r}=this,{graphic:o}=e;if(!r){h("error",this,b("utilityNetwork")),this.#r(),this.arcgisTraceLocationSelectEnd.emit();return}if(o?.geometry?.type!=="point"){this.#e("warn",this._messages.errors.noHitResult),this.#i(t,i);return}let a=o.geometry,c=t.toScreen(a);if(!c){this.#e("warn",this._messages.errors.noHitResult),this.#i(t,i);return}let s=(await t.hitTest(c,{include:this.filterLayers})).results.filter(n=>n.type==="graphic"&&n?.layer&&n.graphic);if(!s.length){this.#e("info",this._messages.errors.noHitResult),this.#i(t,i);return}this.#r();try{await this.#d(s,a,t)?this.arcgisTraceLocationSelectEnd.emit():this.#i(t,i)}catch(n){let l=n instanceof Error?n.message:String(n);this.#e("error",l),this.arcgisTraceLocationSelectEnd.emit()}}#r(){let{view:e,sketchViewModel:t}=this;if(!e){h("error",this,b("view"));return}t&&(t.snappingOptions.enabled=!1),this.#t?.remove(),this.#t=void 0,"acquireCursor"in e&&e.acquireCursor("default")}async#d(e,t,i){if(!e.length)return this.#e("error",this._messages.errors.noHitResult),!1;let r=e[0].graphic;if(this.afterMapInteraction){let a=e.map(c=>{let s=c,n=s.graphic;return n.origin=s.layer,n.sourceLayer=s.layer,n});try{r=await this.afterMapInteraction(a)}catch{r=null}}if(!r)return!0;let o=await this.#g(r);if(!o)throw new Error(this._messages.errors.missingAttributes);return await this.#u(o,t,i)}async#g(e){let t=($(e.layer),e.layer),i=t.geometryType===null,r=t.fieldsIndex?.get("assetgroup")??!1,o=t.fieldsIndex?.get("assetgroup")?.name??"assetgroup",a=t.fieldsIndex?.get("assettype")??!1,c=t.fieldsIndex?.get("assettype")?.name??"assettype",s=e.getGlobalId(),n=e.getObjectId(),l=r?!!e.getAttribute(o):!0,f=a?!!e.getAttribute(c):!0,y=!!e.geometry;if(s&&n&&l&&f&&(y||i))return e;let k=t.createQuery();return k.objectIds=[n],(await t.queryFeatures(k)).features[0]||null}async#u(e,t,i){let{traceLocations:r}=this,o=e.getGlobalId()??"",a=e.geometry?.type,c=await this.#m(e,t);if(!c)return this.#e("error",this._messages.errors.errorGeneratingTraceLocationDetails),!1;let s=r?.filter(l=>l.spatialProperties.mapGraphic?.getGlobalId()===o)??[];if(s.length>0){if(a!=="polyline")return this.#e("warn",this._messages.errors.duplicateTraceLocationDetails),!1;if(s.some(l=>Math.abs(l.traceLocation.percentAlong-c.traceLocation.percentAlong)<=this.spatialTolerance))return this.#e("warn",this._messages.errors.duplicateTraceLocationDetailsWithinTolerance),!1}let n=this.#y(e,t,i);return n?(c.spatialProperties.flagGraphic=n,r?.add(c),!0):(this.#e("warn",this._messages.errors.errorAdding),!1)}async#m(e,t){let{traceLocationType:i,utilityNetwork:r}=this,o=e.getGlobalId()??"",a=e.geometry?.type,c=await this.#f(e);if(a==="point"||a==="polygon"){let s=r?.getTerminalConfiguration(e),n=s?s.terminals[0].id:1;return{traceLocation:new S({type:i,isFilterBarrier:!1,globalId:o,terminalId:n}),flagProperties:{title:c,expanded:!1,terminalConfiguration:s??void 0,selectedTerminals:s?new Set([n]):void 0},spatialProperties:{mapPoint:t,mapGraphic:e}}}else if(a==="polyline"){let s=this.#n(e.geometry,t);return s<0?(h("warn",this,"Unable to calculate percent along for polyline flag."),null):{traceLocation:new S({type:i,isFilterBarrier:!1,globalId:o,percentAlong:s}),flagProperties:{title:c,expanded:!1,terminalConfiguration:void 0,selectedTerminals:void 0},spatialProperties:{mapPoint:t,mapGraphic:e}}}else if(!a){let s=V(e.layer)?e.layer.parent:e.layer,n=s&&this.#c.includes(s.layerId),l=r?.getTerminalConfiguration(e),f=l?l.terminals[0].id:n?-1:1,y=n?.5:-1;return{traceLocation:new S({type:i,isFilterBarrier:!1,globalId:o,terminalId:f,percentAlong:y}),flagProperties:{title:c,expanded:!1,terminalConfiguration:l??void 0,selectedTerminals:l?new Set([f]):void 0},spatialProperties:{mapPoint:t,mapGraphic:e}}}return null}async#f(e){let t=($(e.layer),e.layer);return("getFeatureTitle"in t?await t.getFeatureTitle(e):null)||e.getObjectId()?.toString()||this._messages.unknown}#y(e,t,i){let r=e.geometry?e.geometry.type==="point"?e.geometry:t:null,o=this.#w(),a=new Z({geometry:r,symbol:o,attributes:e.attributes});return i.graphics.add(a),a}#w(){let{traceLocationType:e}=this,t=[244,21,21,.6],i=[21,244,21,.6];return e==="stopping-point"?new I({color:t,style:"x",size:12,outline:{color:t,width:2}}):e==="barrier"?new I({color:t,style:"square",size:12,outline:{color:t,width:0}}):new I({color:i,style:"circle",size:12,outline:{color:i,width:0}})}#b(){let{view:e,traceLocations:t}=this;t?.forEach(i=>{i.spatialProperties.flagGraphic&&e&&e.graphics.remove(i.spatialProperties.flagGraphic)}),t?.removeAll()}#v(e,t){let{flagProperties:i}=e,{selectedTerminals:r}=i,{name:o,id:a}=t,c=r?.has(a)??!1;return p`<calcite-label layout=inline><calcite-checkbox .value=${a} .checked=${c} @calciteCheckboxChange=${s=>{s.target.checked?r?.add(a):r?.delete(a),this.requestUpdate()}}></calcite-checkbox>${o}</calcite-label>`}#k(){return p`<calcite-notice kind=danger open scale=s width=auto><div slot=message>${this._messages.errors.noTerminalSelected}</div></calcite-notice>`}#L(e){let{traceLocation:t}=e;return p`<calcite-label layout=inline><div class="filter-barrier">${this._messages.labels.filterBarrier}<calcite-switch .checked=${t.isFilterBarrier} @calciteSwitchChange=${i=>{t.isFilterBarrier=i.target.checked}}></calcite-switch></div></calcite-label>`}#x(e){let{flagProperties:t}=e,{terminalConfiguration:i,selectedTerminals:r}=t,o=e.traceLocation.type==="barrier",a=i&&i.terminals.length>0&&r?.size===0;return p`<calcite-action .icon=${t.expanded?"chevron-up":"chevron-down"} slot=actions-end scale=s text @click=${()=>{t.expanded=!t.expanded,this.requestUpdate()}}></calcite-action>${a&&p`<calcite-icon class="warning" icon=exclamation-mark-triangle scale=s slot=content-start></calcite-icon>`||""}${t.expanded&&p`<div class="terminals" slot=content-bottom>${o&&this.#L(e)||""}${i&&this.#$(e)||""}${a&&this.#k()||""}</div>`||""}`}#$(e){let{flagProperties:t}=e,{terminalConfiguration:i}=t;if(!i)return h("warn",this,"One or more locations are missing the required flag property `terminalConfiguration`."),[];let r=i.terminals;return r.length?r.length===1?[]:r.map(o=>this.#v(e,o)):(h("warn",this,"`terminalConfiguration.terminals` is required but either missing or empty.`"),[])}#T(e){let{flagProperties:t}=e,{terminalConfiguration:i,expanded:r,title:o}=t,a=i&&i.id!==0,c=e.traceLocation.type==="barrier",s=a||c,n=i?.name??void 0;return p`<calcite-list-item .label=${o} .description=${n} .value=${o} .expanded=${r}>${s?this.#x(e):p`<div slot=content-bottom></div>`}<calcite-action icon=x slot=actions-end scale=s text @click=${()=>this.#s(e)}></calcite-action></calcite-list-item>`}#M(e){if(!e.length)return null;let{traceLocationType:t}=this,i=e.map(o=>this.#T(o)).toArray(),r=K(this._messages.labels.list,{type:t});return p`<div><calcite-list interaction-mode=static selection-mode=none .label=${r}>${i}</calcite-list></div>`}#S(){let{traceLocationType:e,_messages:t,traceLocations:i,heading:r}=this,o=e==="starting-point"?t.types.startingPoint:e==="barrier"?t.types.barrier:t.types.stoppingPoint,a=r??o.heading,c=o.description,s=o.buttonText;return p`<calcite-block .heading=${a} .label=${a} expanded .description=${c}>${i?.length?p`<calcite-button slot=actions-end appearance=transparent .label=${t.buttons.clear} @click=${()=>this.#b()}>${t.buttons.clear}</calcite-button>${this.#M(i)}`:null}<div class="button-container"><calcite-button .loading=${this._isSelectWaiting} class="add-location-button" icon-start=select appearance=outline .label=${s} @click=${()=>this.#l()}>${s}</calcite-button></div></calcite-block>`}render(){return this.#S()}};_("arcgis-utility-network-trace-locations",P);return P},"core/Collection","geometry/operators/cutOperator","geometry/operators/lengthOperator","geometry/operators/distanceOperator","geometry/operators/projectOperator","geometry/operators/proximityOperator","geometry/Point","geometry/Polyline","Graphic","layers/GraphicsLayer","rest/networks/support/TraceLocation","symbols/SimpleMarkerSymbol","widgets/Sketch/SketchViewModel","views/interactive/snapping/FeatureSnappingLayerSource","intl",a)
2
+ import a from"./TMJX7DFH.js";import{a as q}from"./7EMK74ZF.js";import{P as C,X as _,a as E,b as p,p as h,r as b,x}from"./33CM77ZT.js";export default $arcgis.t(([T,{cutExecute:N},{lengthExecute:v},{distanceExecute:A},{projectIsLoaded:O,projectLoad:W,projectExecute:z},{proximityGetNearestCoordinate:H},j,M,Z,Q,S,I,J,B,{substitute:K},{b:G,e:$,g:R,h:V}])=>{var X=E`calcite-block{--calcite-block-content-space: 0;--calcite-block-border-color: transparent;margin:0}.add-location-button{--calcite-button-border-color: var(--calcite-color-border-1);--calcite-button-icon-color: var(--calcite-color-text-1);--calcite-button-text-color: var(--calcite-color-text-1)}.button-container{display:flex;justify-content:center}calcite-list{margin:0 var(--calcite-space-sm) var(--calcite-space-sm);background-color:var(--calcite-color-surface-2);border:solid 1px var(--calcite-color-border-3);border-radius:var(--calcite-corner-radius-sm);overflow:hidden}calcite-list-item[selected] [slot=content-bottom]{display:block}.warning{color:var(--calcite-color-status-danger)}.terminals{padding:var(--calcite-space-sm) var(--calcite-space-md);display:flex;flex-direction:column}.filter-barrier{display:flex;justify-content:space-between;align-items:center;width:100%}`,U=`utility-network-trace-locations-sketch-${Date.now()}`,P=class D extends C{constructor(){super(...arguments),this._messages=q({blocking:!0}),this._isSelectWaiting=!1,this.traceLocationType="starting-point",this.traceLocations=new T,this.filterLayers=new T,this.spatialTolerance=.05,this.autoDestroyDisabled=!1,this.arcgisTraceLocationSelectEnd=x(),this.arcgisTraceLocationSelectStart=x(),this.arcgisError=x()}static{this.properties={_isSelectWaiting:16,beforeMapInteraction:0,afterMapInteraction:0,messageOverrides:0,view:0,traceLocationType:1,traceLocations:0,filterLayers:0,spatialTolerance:9,error:1,autoDestroyDisabled:5,utilityNetwork:0,heading:1,sketchViewModel:32}}static{this.styles=X}static{this.sketchViewModelMap=new Map}static getSketchViewModel(e){if(!this.sketchViewModelMap.has(e)){let t=this.#a(e,U);t&&this.sketchViewModelMap.set(e,new J({view:e,layer:t}))}return this.sketchViewModelMap.get(e)??null}static#a(e,t){if(!e?.map)return null;let i=e.map.findLayerById(t);if(!i){let r=new Q({id:t,listMode:"hide",title:t});return G(e,r),r}return i}static removeSketchGraphicsLayer(e){if(e?.map){let t=e.map.findLayerById(U);t&&e.map.remove(t),this.sketchViewModelMap.delete(e)}}#t;get sketchViewModel(){return this.view?D.getSketchViewModel(this.view):null}async destroy(){try{this.#t&&this.sketchViewModel?.cancel(),this.#r()}finally{await this.manager.destroy()}}async load(){O()||await W()}willUpdate(e){e.has("filterLayers")&&this.#o()}#e(e,t){this.error=t,h(e,this,t),this.arcgisError.emit()}#s(e){let{traceLocations:t,view:i}=this;e.spatialProperties.flagGraphic&&i&&i.graphics.remove(e.spatialProperties.flagGraphic),t?.remove(e)}#o(){if(!this.sketchViewModel)return;let e=new T;this.filterLayers?.forEach(t=>{R(t)?t.sublayers.forEach(i=>{e.add(new B({layer:i,enabled:!0}))}):e.add(new B({layer:t,enabled:!0}))}),this.sketchViewModel.snappingOptions={enabled:!1,featureSources:e}}#n(e,t){let i=e.clone(),r=i.spatialReference,o=t.spatialReference;if(!r||!o)return h("warn",this,"Unable to calculate percent along because geometry is missing a spatial reference."),-1;let a=t;if(!r.equals(o)){let w=z(t,r);if(!w)return h("warn",this,"Unable to project flag point to source geometry spatial reference."),-1;a=w}let c=H(i,a);if(c.isEmpty)return h("warn",this,"Unable to compute nearest coordinate for polyline flag."),-1;let s=c.coordinate,n=s.x-.5,l=s.y-.5,f=s.x+.5,y=s.y+.5,k=new M({hasZ:!1,hasM:!0,paths:[[[n,l],[f,y]]],spatialReference:i.spatialReference}),d=N(i,k);if(d.length>0){let w=v(i,{unit:"feet"}),u;if(d.length===1&&d[0].paths.length>1){let g=d[0],m=i.paths[0][0],L=g.paths[0][0];L[0]===m[0]&&L[1]===m[1]?u=v(new M({hasZ:!1,hasM:!0,paths:[g.paths[0]],spatialReference:i.spatialReference}),{unit:"feet"}):u=v(new M({hasZ:!1,hasM:!0,paths:[g.paths[1]],spatialReference:i.spatialReference}),{unit:"feet"})}else if(d.length===1){let g=new j({x:i.paths[0][0][0],y:i.paths[0][0][1],spatialReference:i.spatialReference}),m=new j({x:i.paths[0][i.paths[0].length-1][0],y:i.paths[0][i.paths[0].length-1][1],spatialReference:i.spatialReference}),L=A(g,a),F=A(m,a);L<F?u=0:u=w}else{let g=i.paths[0][0],m=d[0].paths[0][0];m[0]===g[0]&&m[1]===g[1]?u=v(d[0],{unit:"feet"}):u=v(d[1],{unit:"feet"})}return u/w}return h("warn",this,"Unable to cut the source geometry with the flag geometry."),-1}get#c(){let e=this.utilityNetwork?.dataElement?.domainNetworks;return e?e.flatMap(t=>t.edgeSources).map(t=>t.layerId).filter(Boolean):[]}async#l(){let{view:e,sketchViewModel:t}=this;if(!(e&&t)){h("error",this,"Cannot add trace location."),t||h("error",this,b("sketchViewModel")),e||h("error",this,b("view"));return}if(this.beforeMapInteraction){this._isSelectWaiting=!0;try{await this.beforeMapInteraction()}finally{this._isSelectWaiting=!1}}await this.#i(e,t)}async#i(e,t){this.arcgisTraceLocationSelectStart.emit({cancelSelect:()=>t.cancel()}).defaultPrevented||(this.#t?.remove(),this.#t=t.on("create",i=>this.#h(i,e,t)),"acquireCursor"in e&&e.acquireCursor("crosshair"),t.snappingOptions.enabled=!0,t.create("point"))}#h(e,t,i){if(e.state==="complete"&&e.graphic){i.layer.remove(e.graphic),this.#p(e,t,i);return}e.state==="cancel"&&(this.#r(),this.arcgisTraceLocationSelectEnd.emit())}async#p(e,t,i){let{utilityNetwork:r}=this,{graphic:o}=e;if(!r){h("error",this,b("utilityNetwork")),this.#r(),this.arcgisTraceLocationSelectEnd.emit();return}if(o?.geometry?.type!=="point"){this.#e("warn",this._messages.errors.noHitResult),this.#i(t,i);return}let a=o.geometry,c=t.toScreen(a);if(!c){this.#e("warn",this._messages.errors.noHitResult),this.#i(t,i);return}let s=(await t.hitTest(c,{include:this.filterLayers})).results.filter(n=>n.type==="graphic"&&n?.layer&&n.graphic);if(!s.length){this.#e("info",this._messages.errors.noHitResult),this.#i(t,i);return}this.#r();try{await this.#d(s,a,t)?this.arcgisTraceLocationSelectEnd.emit():this.#i(t,i)}catch(n){let l=n instanceof Error?n.message:String(n);this.#e("error",l),this.arcgisTraceLocationSelectEnd.emit()}}#r(){let{view:e,sketchViewModel:t}=this;if(!e){h("error",this,b("view"));return}t&&(t.snappingOptions.enabled=!1),this.#t?.remove(),this.#t=void 0,"acquireCursor"in e&&e.acquireCursor("default")}async#d(e,t,i){if(!e.length)return this.#e("error",this._messages.errors.noHitResult),!1;let r=e[0].graphic;if(this.afterMapInteraction){let a=e.map(c=>{let s=c,n=s.graphic;return n.origin=s.layer,n.sourceLayer=s.layer,n});try{r=await this.afterMapInteraction(a)}catch{r=null}}if(!r)return!0;let o=await this.#g(r);if(!o)throw new Error(this._messages.errors.missingAttributes);return await this.#u(o,t,i)}async#g(e){let t=($(e.layer),e.layer),i=t.geometryType===null,r=t.fieldsIndex?.get("assetgroup")??!1,o=t.fieldsIndex?.get("assetgroup")?.name??"assetgroup",a=t.fieldsIndex?.get("assettype")??!1,c=t.fieldsIndex?.get("assettype")?.name??"assettype",s=e.getGlobalId(),n=e.getObjectId(),l=r?!!e.getAttribute(o):!0,f=a?!!e.getAttribute(c):!0,y=!!e.geometry;if(s&&n&&l&&f&&(y||i))return e;let k=t.createQuery();return k.objectIds=[n],(await t.queryFeatures(k)).features[0]||null}async#u(e,t,i){let{traceLocations:r}=this,o=e.getGlobalId()??"",a=e.geometry?.type,c=await this.#m(e,t);if(!c)return this.#e("error",this._messages.errors.errorGeneratingTraceLocationDetails),!1;let s=r?.filter(l=>l.spatialProperties.mapGraphic?.getGlobalId()===o)??[];if(s.length>0){if(a!=="polyline")return this.#e("warn",this._messages.errors.duplicateTraceLocationDetails),!1;if(s.some(l=>Math.abs(l.traceLocation.percentAlong-c.traceLocation.percentAlong)<=this.spatialTolerance))return this.#e("warn",this._messages.errors.duplicateTraceLocationDetailsWithinTolerance),!1}let n=this.#y(e,t,i);return n?(c.spatialProperties.flagGraphic=n,r?.add(c),!0):(this.#e("warn",this._messages.errors.errorAdding),!1)}async#m(e,t){let{traceLocationType:i,utilityNetwork:r}=this,o=e.getGlobalId()??"",a=e.geometry?.type,c=await this.#f(e);if(a==="point"||a==="polygon"){let s=r?.getTerminalConfiguration(e),n=s?s.terminals[0].id:1;return{traceLocation:new S({type:i,isFilterBarrier:!1,globalId:o,terminalId:n}),flagProperties:{title:c,expanded:!1,terminalConfiguration:s??void 0,selectedTerminals:s?new Set([n]):void 0},spatialProperties:{mapPoint:t,mapGraphic:e}}}else if(a==="polyline"){let s=this.#n(e.geometry,t);return s<0?(h("warn",this,"Unable to calculate percent along for polyline flag."),null):{traceLocation:new S({type:i,isFilterBarrier:!1,globalId:o,percentAlong:s}),flagProperties:{title:c,expanded:!1,terminalConfiguration:void 0,selectedTerminals:void 0},spatialProperties:{mapPoint:t,mapGraphic:e}}}else if(!a){let s=V(e.layer)?e.layer.parent:e.layer,n=s&&this.#c.includes(s.layerId),l=r?.getTerminalConfiguration(e),f=l?l.terminals[0].id:n?-1:1,y=n?.5:-1;return{traceLocation:new S({type:i,isFilterBarrier:!1,globalId:o,terminalId:f,percentAlong:y}),flagProperties:{title:c,expanded:!1,terminalConfiguration:l??void 0,selectedTerminals:l?new Set([f]):void 0},spatialProperties:{mapPoint:t,mapGraphic:e}}}return null}async#f(e){let t=($(e.layer),e.layer);return("getFeatureTitle"in t?await t.getFeatureTitle(e):null)||e.getObjectId()?.toString()||this._messages.unknown}#y(e,t,i){let r=e.geometry?e.geometry.type==="point"?e.geometry:t:null,o=this.#w(),a=new Z({geometry:r,symbol:o,attributes:e.attributes});return i.graphics.add(a),a}#w(){let{traceLocationType:e}=this,t=[244,21,21,.6],i=[21,244,21,.6];return e==="stopping-point"?new I({color:t,style:"x",size:12,outline:{color:t,width:2}}):e==="barrier"?new I({color:t,style:"square",size:12,outline:{color:t,width:0}}):new I({color:i,style:"circle",size:12,outline:{color:i,width:0}})}#b(){let{view:e,traceLocations:t}=this;t?.forEach(i=>{i.spatialProperties.flagGraphic&&e&&e.graphics.remove(i.spatialProperties.flagGraphic)}),t?.removeAll()}#v(e,t){let{flagProperties:i}=e,{selectedTerminals:r}=i,{name:o,id:a}=t,c=r?.has(a)??!1;return p`<calcite-label layout=inline><calcite-checkbox .value=${a} .checked=${c} @calciteCheckboxChange=${s=>{s.target.checked?r?.add(a):r?.delete(a),this.requestUpdate()}}></calcite-checkbox>${o}</calcite-label>`}#k(){return p`<calcite-notice kind=danger open scale=s width=auto><div slot=message>${this._messages.errors.noTerminalSelected}</div></calcite-notice>`}#L(e){let{traceLocation:t}=e;return p`<calcite-label layout=inline><div class="filter-barrier">${this._messages.labels.filterBarrier}<calcite-switch .checked=${t.isFilterBarrier} @calciteSwitchChange=${i=>{t.isFilterBarrier=i.target.checked}}></calcite-switch></div></calcite-label>`}#x(e){let{flagProperties:t}=e,{terminalConfiguration:i,selectedTerminals:r}=t,o=e.traceLocation.type==="barrier",a=i&&i.terminals.length>0&&r?.size===0;return p`<calcite-action .icon=${t.expanded?"chevron-up":"chevron-down"} slot=actions-end scale=s text @click=${()=>{t.expanded=!t.expanded,this.requestUpdate()}}></calcite-action>${a&&p`<calcite-icon class="warning" icon=exclamation-mark-triangle scale=s slot=content-start></calcite-icon>`||""}${t.expanded&&p`<div class="terminals" slot=content-bottom>${o&&this.#L(e)||""}${i&&this.#$(e)||""}${a&&this.#k()||""}</div>`||""}`}#$(e){let{flagProperties:t}=e,{terminalConfiguration:i}=t;if(!i)return h("warn",this,"One or more locations are missing the required flag property `terminalConfiguration`."),[];let r=i.terminals;return r.length?r.length===1?[]:r.map(o=>this.#v(e,o)):(h("warn",this,"`terminalConfiguration.terminals` is required but either missing or empty.`"),[])}#T(e){let{flagProperties:t}=e,{terminalConfiguration:i,expanded:r,title:o}=t,a=i&&i.id!==0,c=e.traceLocation.type==="barrier",s=a||c,n=i?.name??void 0;return p`<calcite-list-item .label=${o} .description=${n} .value=${o} .expanded=${r}>${s?this.#x(e):p`<div slot=content-bottom></div>`}<calcite-action icon=x slot=actions-end scale=s text @click=${()=>this.#s(e)}></calcite-action></calcite-list-item>`}#M(e){if(!e.length)return null;let{traceLocationType:t}=this,i=e.map(o=>this.#T(o)).toArray(),r=K(this._messages.labels.list,{type:t});return p`<div><calcite-list interaction-mode=static selection-mode=none .label=${r}>${i}</calcite-list></div>`}#S(){let{traceLocationType:e,_messages:t,traceLocations:i,heading:r}=this,o=e==="starting-point"?t.types.startingPoint:e==="barrier"?t.types.barrier:t.types.stoppingPoint,a=r??o.heading,c=o.description,s=o.buttonText;return p`<calcite-block .heading=${a} .label=${a} expanded .description=${c}>${i?.length?p`<calcite-button slot=actions-end appearance=transparent .label=${t.buttons.clear} @click=${()=>this.#b()}>${t.buttons.clear}</calcite-button>${this.#M(i)}`:null}<div class="button-container"><calcite-button .loading=${this._isSelectWaiting} class="add-location-button" icon-start=select appearance=outline .label=${s} @click=${()=>this.#l()}>${s}</calcite-button></div></calcite-block>`}render(){return this.#S()}};_("arcgis-utility-network-trace-locations",P);return P},"core/Collection","geometry/operators/cutOperator","geometry/operators/lengthOperator","geometry/operators/distanceOperator","geometry/operators/projectOperator","geometry/operators/proximityOperator","geometry/Point","geometry/Polyline","Graphic","layers/GraphicsLayer","rest/networks/support/TraceLocation","symbols/SimpleMarkerSymbol","widgets/Sketch/SketchViewModel","views/interactive/snapping/FeatureSnappingLayerSource","intl",a)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import b from"./TMJX7DFH.js";import{a as f}from"./P2A4UHL6.js";import{h as g}from"./YK3OHMKT.js";import"./BYC7JUTS.js";import"./QUZTFUWM.js";import"./OM6LULIZ.js";import{P as m,X as d,a as u,b as a,p as n,x as h}from"./4GPS2BM4.js";import"./H6RQVSYM.js";export default $arcgis.t(([k,{d:b}])=>{var w=u`:host{height:100%;flex-grow:1}.subnetwork-details{border-radius:var(--calcite-border-radius);border:solid 1px var(--calcite-color-border-3)}.key-value-pair{padding:var(--calcite-space-sm)}.key-value-pair__key{font-size:var(--calcite-font-size--2);color:var(--calcite-color-text-3)}.key-value-pair__value{font-size:var(--calcite-font-size--1);color:var(--calcite-color-text-1)}calcite-block{--calcite-block-content-space: 0;--calcite-block-border-color: transparent;margin:0}calcite-block :is(calcite-combobox,calcite-input,calcite-label,calcite-notice){margin:0 var(--calcite-space-md)}calcite-block>:is(calcite-combobox,calcite-input,calcite-notice):not(:last-child){margin-bottom:var(--calcite-space-md)}calcite-block calcite-input-message{padding:var(--calcite-space-sm) var(--calcite-space-md) 0}calcite-notice{margin:var(--calcite-space-md)}#subnetwork-info-block{margin:var(--calcite-space-md) var(--calcite-space-md) 0}.inline-loader{--calcite-loader-spacing: var(--calcite-space-md)}`,C=20,N=new Set(["subnetwork","subnetwork-controller","upstream","downstream","isolation"]),c=class extends m{constructor(){super(...arguments),this._messages=f({blocking:!0}),this._subnetworkNamesState="ready",this._compatibleSubnetworkNames=[],this.traceConfigurations=[],this.hideSubnetworkInfo=!1,this.hideErrors=!1,this.state="ready",this.arcgisPropertyChange=g()("selectedNamedTraceConfiguration","traceConfiguration"),this.arcgisError=h()}static{this.properties={_subnetworksTable:16,_subnetworkNamesState:16,_compatibleSubnetworkNames:16,messageOverrides:0,selectedNamedTraceConfiguration:0,traceConfigurations:0,utilityNetwork:0,heading:1,traceConfiguration:0,isSubnetworkNameTraceSelected:32,hideSubnetworkInfo:5,hideErrors:5,error:1,state:1}}static{this.styles=w}get#e(){return this.traceConfiguration?.subnetworkName??void 0}set#e(e){this.traceConfiguration&&(this.traceConfiguration.subnetworkName=e)}get isSubnetworkNameTraceSelected(){let{selectedNamedTraceConfiguration:e}=this;return!!e?.traceConfiguration?.subnetworkName&&e?.traceType==="subnetwork"}willUpdate(e){e.has("traceConfigurations")&&this.#h(),e.has("utilityNetwork")&&(this.#u(),!e.has("selectedNamedTraceConfiguration")&&this.isSubnetworkNameTraceSelected&&this.traceConfiguration&&this.#s(this.traceConfiguration)),e.has("selectedNamedTraceConfiguration")&&this.#o()}async#o(){let{selectedNamedTraceConfiguration:e}=this;if(!e||!(e.traceConfiguration instanceof k)){this.#t(e?this._messages.errors.noTraceConfiguration:this._messages.errors.traceConfigurationNotFound),this.traceConfiguration=void 0,this.arcgisPropertyChange.emit({name:"traceConfiguration"});return}this.#i(),this.traceConfiguration=e.traceConfiguration.clone(),this.arcgisPropertyChange.emit({name:"selectedNamedTraceConfiguration"}),this.arcgisPropertyChange.emit({name:"traceConfiguration"}),this.isSubnetworkNameTraceSelected&&await this.#s(this.traceConfiguration)}async#s(e){this._subnetworkNamesState="loading",this.state="loading",await this.#n(),await this.#c(),e.subnetworkName&&!this._compatibleSubnetworkNames.some(t=>t===e.subnetworkName)&&(this.#e=this._compatibleSubnetworkNames.at(0)),this._subnetworkNamesState="ready",this.state="ready"}async#n(){this._subnetworksTable||(this._subnetworksTable=await this.utilityNetwork?.loadSubnetworksTable())}async#c(){let{_subnetworksTable:e}=this;if(!e)return;let t=e.fieldsIndex.get("SUBNETWORKNAME"),i=(o,l,p)=>l===0||o.getAttribute(t.name)!==p[l-1].getAttribute(t.name),r=e.createQuery();r.gdbVersion=this.utilityNetwork?.gdbVersion,r.where=this.#l(),r.outFields=[t.name],r.orderByFields=[t.name];let{features:s}=await b(e,r,void 0,!1);this._compatibleSubnetworkNames=s.filter(i).map(o=>o.getAttribute(t.name))}#l(){let e=this.traceConfiguration,t=`DOMAINNETWORKNAME = '${e.domainNetworkName}'`,i=`TIERNAME = '${e.tierName}'`;return[t,i].join(" AND ")}#u(){this.#e=void 0,this._subnetworksTable=void 0,this._compatibleSubnetworkNames=[]}#h(){let{selectedNamedTraceConfiguration:e}=this;this.traceConfigurations.length?(!e||!this.traceConfigurations.includes(e))&&(this.#i(),this.selectedNamedTraceConfiguration=this.traceConfigurations.find(t=>t.traceConfiguration instanceof k)??this.traceConfigurations.at(0)):(this.traceConfiguration=void 0,this.selectedNamedTraceConfiguration=void 0,this.#t(this._messages.errors.noTraceConfigurations))}#t(e){n("error",this,e),this.error=e,this.state="error",this.arcgisError.emit()}#i(){this.error=void 0,this.state="ready"}#a(e,t){return a`<div class="key-value-pair"><div class="key-value-pair__key">${e}</div><div class="key-value-pair__value">${t}</div></div>`}#r(e,t=!1,i="exclamation-mark-triangle"){return this.hideErrors?null:a`<calcite-notice .closable=${t} kind=danger open scale=s width=auto .icon=${i}><div slot=message>${e}</div></calcite-notice>`}#m(){let e=this.selectedNamedTraceConfiguration?.title;return e?a`<calcite-label>${e}</calcite-label>`:null}#d(){let e=this.traceConfigurations.map(i=>a`<calcite-combobox-item .value=${i.globalId} .heading=${i.title} .selected=${i.globalId===this.selectedNamedTraceConfiguration?.globalId}></calcite-combobox-item>`),t=this._messages.labels.traceConfiguration;return a`<calcite-combobox .label=${t} selection-mode=single-persist @calciteComboboxChange=${({currentTarget:i})=>{let r=i.selectedItems[0]?.value;this.selectedNamedTraceConfiguration=this.traceConfigurations.find(s=>s.globalId===r)}}>${e}</calcite-combobox>`}#g(){let{_messages:e}=this;if(this.error===e.errors.noTraceConfigurations)return this.#r(e.errors.noTraceConfigurations);let t=this.error?this.#r(this.error):null,i=this.traceConfigurations.length>1?this.#d():this.#m(),r=this._messages.labels.traceConfiguration,s=this.heading??r;return a`<calcite-block .heading=${s} .label=${r} expanded>${i}${t}</calcite-block>`}#b(){if(this.hideSubnetworkInfo)return null;let{_messages:e,selectedNamedTraceConfiguration:t}=this;if(!t?.traceConfiguration)return this.traceConfiguration=void 0,this.#t(this._messages.errors.noTraceConfiguration),null;this.#i();let{domainNetworkName:i,tierName:r,targetTierName:s}=t.traceConfiguration;return!i&&!r&&!s?(n("warn",this,"`namedTraceConfig.traceConfiguration` has no `domainNetworkName`, `tierName`, or `targetTierName`."),null):a`<calcite-block id=subnetwork-info-block expanded .label=${this._messages.labels.subnetworkInfo}><div class="subnetwork-details">${i?this.#a(e.headings.domainNetwork,i):null}${r?this.#a(e.headings.tier,r):null}${s?this.#a(e.headings.targetTier,s):null}</div></calcite-block>`}#f(){let{_messages:e}=this,t=e.labels.subnetworkName;return this.isSubnetworkNameTraceSelected?this._subnetworkNamesState==="loading"?a`<calcite-loader class="inline-loader" label=loading scale=s></calcite-loader>`:this._compatibleSubnetworkNames.length?a`<calcite-block .heading=${t} .label=${t} expanded>${this._compatibleSubnetworkNames.length>C?this.#k():this.#p()}</calcite-block>`:this.#r(e.errors.noCompatibleSubnetworks):null}#k(){let{_messages:e}=this;return a`<calcite-input clearable type=text .placeholder=${e.instructions.enterSubnetworkName} max-length=64 .status=${this.#e?"valid":"invalid"} .value=${this.#e} @calciteInputInput=${t=>this.#e=t.target.value}></calcite-input><calcite-input-message icon=exclamation-mark-triangle status=idle>${e.labels.tooManySubnetworks}</calcite-input-message>`}#p(){return a`<calcite-combobox .label=${this._messages.labels.subnetworkName} selection-mode=single-persist @calciteComboboxChange=${({currentTarget:e})=>{let t=e.selectedItems[0]?.value;this.#e=t}}>${this._compatibleSubnetworkNames.map(e=>a`<calcite-combobox-item .value=${e} .heading=${e} .selected=${e===this.#e}></calcite-combobox-item>`)}</calcite-combobox>`}render(){let{selectedNamedTraceConfiguration:e}=this,t=e?.traceType&&N.has(e.traceType)?a`${this.#b()}${this.#f()}`:null;return a`${this.#g()}${t}`}};d("arcgis-utility-network-trace-configuration-picker",c);return c},"networks/support/UNTraceConfiguration",b)
2
+ import b from"./TMJX7DFH.js";import{a as f}from"./7EMK74ZF.js";import{h as g}from"./6N7PM73F.js";import"./7IHIG427.js";import"./QUZTFUWM.js";import"./P2GMODLP.js";import{P as m,X as d,a as u,b as a,p as n,x as h}from"./33CM77ZT.js";import"./H6RQVSYM.js";export default $arcgis.t(([k,{d:b}])=>{var w=u`:host{height:100%;flex-grow:1}.subnetwork-details{border-radius:var(--calcite-border-radius);border:solid 1px var(--calcite-color-border-3)}.key-value-pair{padding:var(--calcite-space-sm)}.key-value-pair__key{font-size:var(--calcite-font-size--2);color:var(--calcite-color-text-3)}.key-value-pair__value{font-size:var(--calcite-font-size--1);color:var(--calcite-color-text-1)}calcite-block{--calcite-block-content-space: 0;--calcite-block-border-color: transparent;margin:0}calcite-block :is(calcite-combobox,calcite-input,calcite-label,calcite-notice){margin:0 var(--calcite-space-md)}calcite-block>:is(calcite-combobox,calcite-input,calcite-notice):not(:last-child){margin-bottom:var(--calcite-space-md)}calcite-block calcite-input-message{padding:var(--calcite-space-sm) var(--calcite-space-md) 0}calcite-notice{margin:var(--calcite-space-md)}#subnetwork-info-block{margin:var(--calcite-space-md) var(--calcite-space-md) 0}.inline-loader{--calcite-loader-spacing: var(--calcite-space-md)}`,C=20,N=new Set(["subnetwork","subnetwork-controller","upstream","downstream","isolation"]),c=class extends m{constructor(){super(...arguments),this._messages=f({blocking:!0}),this._subnetworkNamesState="ready",this._compatibleSubnetworkNames=[],this.traceConfigurations=[],this.hideSubnetworkInfo=!1,this.hideErrors=!1,this.state="ready",this.arcgisPropertyChange=g()("selectedNamedTraceConfiguration","traceConfiguration"),this.arcgisError=h()}static{this.properties={_subnetworksTable:16,_subnetworkNamesState:16,_compatibleSubnetworkNames:16,messageOverrides:0,selectedNamedTraceConfiguration:0,traceConfigurations:0,utilityNetwork:0,heading:1,traceConfiguration:0,isSubnetworkNameTraceSelected:32,hideSubnetworkInfo:5,hideErrors:5,error:1,state:1}}static{this.styles=w}get#e(){return this.traceConfiguration?.subnetworkName??void 0}set#e(e){this.traceConfiguration&&(this.traceConfiguration.subnetworkName=e)}get isSubnetworkNameTraceSelected(){let{selectedNamedTraceConfiguration:e}=this;return!!e?.traceConfiguration?.subnetworkName&&e?.traceType==="subnetwork"}willUpdate(e){e.has("traceConfigurations")&&this.#h(),e.has("utilityNetwork")&&(this.#u(),!e.has("selectedNamedTraceConfiguration")&&this.isSubnetworkNameTraceSelected&&this.traceConfiguration&&this.#s(this.traceConfiguration)),e.has("selectedNamedTraceConfiguration")&&this.#o()}async#o(){let{selectedNamedTraceConfiguration:e}=this;if(!e||!(e.traceConfiguration instanceof k)){this.#t(e?this._messages.errors.noTraceConfiguration:this._messages.errors.traceConfigurationNotFound),this.traceConfiguration=void 0,this.arcgisPropertyChange.emit({name:"traceConfiguration"});return}this.#i(),this.traceConfiguration=e.traceConfiguration.clone(),this.arcgisPropertyChange.emit({name:"selectedNamedTraceConfiguration"}),this.arcgisPropertyChange.emit({name:"traceConfiguration"}),this.isSubnetworkNameTraceSelected&&await this.#s(this.traceConfiguration)}async#s(e){this._subnetworkNamesState="loading",this.state="loading",await this.#n(),await this.#c(),e.subnetworkName&&!this._compatibleSubnetworkNames.some(t=>t===e.subnetworkName)&&(this.#e=this._compatibleSubnetworkNames.at(0)),this._subnetworkNamesState="ready",this.state="ready"}async#n(){this._subnetworksTable||(this._subnetworksTable=await this.utilityNetwork?.loadSubnetworksTable())}async#c(){let{_subnetworksTable:e}=this;if(!e)return;let t=e.fieldsIndex.get("SUBNETWORKNAME"),i=(o,l,p)=>l===0||o.getAttribute(t.name)!==p[l-1].getAttribute(t.name),r=e.createQuery();r.gdbVersion=this.utilityNetwork?.gdbVersion,r.where=this.#l(),r.outFields=[t.name],r.orderByFields=[t.name];let{features:s}=await b(e,r,void 0,!1);this._compatibleSubnetworkNames=s.filter(i).map(o=>o.getAttribute(t.name))}#l(){let e=this.traceConfiguration,t=`DOMAINNETWORKNAME = '${e.domainNetworkName}'`,i=`TIERNAME = '${e.tierName}'`;return[t,i].join(" AND ")}#u(){this.#e=void 0,this._subnetworksTable=void 0,this._compatibleSubnetworkNames=[]}#h(){let{selectedNamedTraceConfiguration:e}=this;this.traceConfigurations.length?(!e||!this.traceConfigurations.includes(e))&&(this.#i(),this.selectedNamedTraceConfiguration=this.traceConfigurations.find(t=>t.traceConfiguration instanceof k)??this.traceConfigurations.at(0)):(this.traceConfiguration=void 0,this.selectedNamedTraceConfiguration=void 0,this.#t(this._messages.errors.noTraceConfigurations))}#t(e){n("error",this,e),this.error=e,this.state="error",this.arcgisError.emit()}#i(){this.error=void 0,this.state="ready"}#a(e,t){return a`<div class="key-value-pair"><div class="key-value-pair__key">${e}</div><div class="key-value-pair__value">${t}</div></div>`}#r(e,t=!1,i="exclamation-mark-triangle"){return this.hideErrors?null:a`<calcite-notice .closable=${t} kind=danger open scale=s width=auto .icon=${i}><div slot=message>${e}</div></calcite-notice>`}#m(){let e=this.selectedNamedTraceConfiguration?.title;return e?a`<calcite-label>${e}</calcite-label>`:null}#d(){let e=this.traceConfigurations.map(i=>a`<calcite-combobox-item .value=${i.globalId} .heading=${i.title} .selected=${i.globalId===this.selectedNamedTraceConfiguration?.globalId}></calcite-combobox-item>`),t=this._messages.labels.traceConfiguration;return a`<calcite-combobox .label=${t} selection-mode=single-persist @calciteComboboxChange=${({currentTarget:i})=>{let r=i.selectedItems[0]?.value;this.selectedNamedTraceConfiguration=this.traceConfigurations.find(s=>s.globalId===r)}}>${e}</calcite-combobox>`}#g(){let{_messages:e}=this;if(this.error===e.errors.noTraceConfigurations)return this.#r(e.errors.noTraceConfigurations);let t=this.error?this.#r(this.error):null,i=this.traceConfigurations.length>1?this.#d():this.#m(),r=this._messages.labels.traceConfiguration,s=this.heading??r;return a`<calcite-block .heading=${s} .label=${r} expanded>${i}${t}</calcite-block>`}#b(){if(this.hideSubnetworkInfo)return null;let{_messages:e,selectedNamedTraceConfiguration:t}=this;if(!t?.traceConfiguration)return this.traceConfiguration=void 0,this.#t(this._messages.errors.noTraceConfiguration),null;this.#i();let{domainNetworkName:i,tierName:r,targetTierName:s}=t.traceConfiguration;return!i&&!r&&!s?(n("warn",this,"`namedTraceConfig.traceConfiguration` has no `domainNetworkName`, `tierName`, or `targetTierName`."),null):a`<calcite-block id=subnetwork-info-block expanded .label=${this._messages.labels.subnetworkInfo}><div class="subnetwork-details">${i?this.#a(e.headings.domainNetwork,i):null}${r?this.#a(e.headings.tier,r):null}${s?this.#a(e.headings.targetTier,s):null}</div></calcite-block>`}#f(){let{_messages:e}=this,t=e.labels.subnetworkName;return this.isSubnetworkNameTraceSelected?this._subnetworkNamesState==="loading"?a`<calcite-loader class="inline-loader" label=loading scale=s></calcite-loader>`:this._compatibleSubnetworkNames.length?a`<calcite-block .heading=${t} .label=${t} expanded>${this._compatibleSubnetworkNames.length>C?this.#k():this.#p()}</calcite-block>`:this.#r(e.errors.noCompatibleSubnetworks):null}#k(){let{_messages:e}=this;return a`<calcite-input clearable type=text .placeholder=${e.instructions.enterSubnetworkName} max-length=64 .status=${this.#e?"valid":"invalid"} .value=${this.#e} @calciteInputInput=${t=>this.#e=t.target.value}></calcite-input><calcite-input-message icon=exclamation-mark-triangle status=idle>${e.labels.tooManySubnetworks}</calcite-input-message>`}#p(){return a`<calcite-combobox .label=${this._messages.labels.subnetworkName} selection-mode=single-persist @calciteComboboxChange=${({currentTarget:e})=>{let t=e.selectedItems[0]?.value;this.#e=t}}>${this._compatibleSubnetworkNames.map(e=>a`<calcite-combobox-item .value=${e} .heading=${e} .selected=${e===this.#e}></calcite-combobox-item>`)}</calcite-combobox>`}render(){let{selectedNamedTraceConfiguration:e}=this,t=e?.traceType&&N.has(e.traceType)?a`${this.#b()}${this.#f()}`:null;return a`${this.#g()}${t}`}};d("arcgis-utility-network-trace-configuration-picker",c);return c},"networks/support/UNTraceConfiguration",b)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{a as d}from"./P2A4UHL6.js";import"./YK3OHMKT.js";import"./BYC7JUTS.js";import"./QUZTFUWM.js";import"./OM6LULIZ.js";import{N as l,O as c,P as n,X as h,a,b as o,p as r}from"./4GPS2BM4.js";import"./H6RQVSYM.js";export default $arcgis.t(([{on:t,when:p}])=>{function u(i,e,m){return i?e(i):m?.(i)}var f=a`:host{position:absolute;align-self:center;inset-block-end:0;background-color:color-mix(in srgb,var(--calcite-color-surface-1) 80%,transparent);inline-size:80%}calcite-label{padding:0 .5rem;--calcite-label-margin-bottom: 0}calcite-slider{inline-size:100%}`,s=class extends n{constructor(){super(...arguments),this.handlePlayPause=()=>{this._playing?this.pause():this.play()},this.handleSeek=()=>{let e=this.#e.value?.value;typeof e!="number"||e<0||e>this._duration||this.seek(e)},this.play=async()=>{try{await this.videoRef?.play()}catch(e){r("error",this,"Error playing video",{detail:{error:{message:e.message}}})}},this.pause=()=>this.videoRef?.pause(),this.rewind=async()=>await this.seek(0),this.seek=e=>(this.pause(),this.videoRef&&(this.videoRef.currentTime=e),this.play()),this.toggleMute=()=>{this.videoRef&&(this.videoRef.muted=!this.videoRef.muted,this._audio=!this.videoRef.muted)},this.#e=l(),this._messages=d(),this._audio=!1,this._playing=!1,this._currentTime=0,this._duration=0,this.messageOverrides=this._messages._overrides}static{this.properties={_audio:16,_playing:16,_currentTime:16,_duration:16,_videoReady:16,messageOverrides:0,videoRef:0}}static{this.styles=f}#e;get _videoReady(){return this.videoRef?.readyState!==void 0&&this.videoRef.readyState>=HTMLMediaElement.HAVE_CURRENT_DATA}loaded(){this.manager.onLifecycle(()=>[t(()=>this.videoRef,"play",()=>{this._playing=!0}),t(()=>this.videoRef,"pause",()=>{this._playing=!1}),p(()=>this._videoReady,()=>{this.videoRef&&(this._duration=this.videoRef.duration,this._audio=!this.videoRef.muted,this._playing=!this.videoRef.paused)},{initial:!0,sync:!0}),t(()=>this.videoRef,"timeupdate",()=>{this.videoRef&&(this._currentTime=this.videoRef.currentTime)})])}render(){return u(()=>this._videoReady,()=>o`<calcite-label scale=s layout=inline-space-between><calcite-action-group layout=horizontal scale=s><calcite-action scale=m @click=${this.handlePlayPause} .text=${this._playing?this._messages.pause:this._messages.play} .icon=${this._playing?"pause-f":"play-f"}></calcite-action><calcite-action scale=m icon=reset .text=${this._messages.rewind} @click=${this.rewind}></calcite-action><calcite-action scale=m .text=${this._audio?this._messages.mute:this._messages.unmute} .icon=${this._audio?"sound":"sound-off"} @click=${this.toggleMute}></calcite-action></calcite-action-group><calcite-slider scale=s .value=${Number(this._currentTime.toFixed(2))??0} label-handles label-ticks .max=${this._duration} .ticks=${this._duration} step=0.001 @calciteSliderChange=${this.handleSeek} @calciteSliderInput=${this.pause} ${c(this.#e)}></calcite-slider></calcite-label>`)}};h("arcgis-oriented-imagery-viewer-video-controls",s);return s},"core/reactiveUtils")
2
+ import{a as d}from"./7EMK74ZF.js";import"./6N7PM73F.js";import"./7IHIG427.js";import"./QUZTFUWM.js";import"./P2GMODLP.js";import{N as l,O as c,P as n,X as h,a,b as o,p as r}from"./33CM77ZT.js";import"./H6RQVSYM.js";export default $arcgis.t(([{on:t,when:p}])=>{function u(i,e,m){return i?e(i):m?.(i)}var f=a`:host{position:absolute;align-self:center;inset-block-end:0;background-color:color-mix(in srgb,var(--calcite-color-surface-1) 80%,transparent);inline-size:80%}calcite-label{padding:0 .5rem;--calcite-label-margin-bottom: 0}calcite-slider{inline-size:100%}`,s=class extends n{constructor(){super(...arguments),this.handlePlayPause=()=>{this._playing?this.pause():this.play()},this.handleSeek=()=>{let e=this.#e.value?.value;typeof e!="number"||e<0||e>this._duration||this.seek(e)},this.play=async()=>{try{await this.videoRef?.play()}catch(e){r("error",this,"Error playing video",{detail:{error:{message:e.message}}})}},this.pause=()=>this.videoRef?.pause(),this.rewind=async()=>await this.seek(0),this.seek=e=>(this.pause(),this.videoRef&&(this.videoRef.currentTime=e),this.play()),this.toggleMute=()=>{this.videoRef&&(this.videoRef.muted=!this.videoRef.muted,this._audio=!this.videoRef.muted)},this.#e=l(),this._messages=d(),this._audio=!1,this._playing=!1,this._currentTime=0,this._duration=0,this.messageOverrides=this._messages._overrides}static{this.properties={_audio:16,_playing:16,_currentTime:16,_duration:16,_videoReady:16,messageOverrides:0,videoRef:0}}static{this.styles=f}#e;get _videoReady(){return this.videoRef?.readyState!==void 0&&this.videoRef.readyState>=HTMLMediaElement.HAVE_CURRENT_DATA}loaded(){this.manager.onLifecycle(()=>[t(()=>this.videoRef,"play",()=>{this._playing=!0}),t(()=>this.videoRef,"pause",()=>{this._playing=!1}),p(()=>this._videoReady,()=>{this.videoRef&&(this._duration=this.videoRef.duration,this._audio=!this.videoRef.muted,this._playing=!this.videoRef.paused)},{initial:!0,sync:!0}),t(()=>this.videoRef,"timeupdate",()=>{this.videoRef&&(this._currentTime=this.videoRef.currentTime)})])}render(){return u(()=>this._videoReady,()=>o`<calcite-label scale=s layout=inline-space-between><calcite-action-group layout=horizontal scale=s><calcite-action scale=m @click=${this.handlePlayPause} .text=${this._playing?this._messages.pause:this._messages.play} .icon=${this._playing?"pause-f":"play-f"}></calcite-action><calcite-action scale=m icon=reset .text=${this._messages.rewind} @click=${this.rewind}></calcite-action><calcite-action scale=m .text=${this._audio?this._messages.mute:this._messages.unmute} .icon=${this._audio?"sound":"sound-off"} @click=${this.toggleMute}></calcite-action></calcite-action-group><calcite-slider scale=s .value=${Number(this._currentTime.toFixed(2))??0} label-handles label-ticks .max=${this._duration} .ticks=${this._duration} step=0.001 @calciteSliderChange=${this.handleSeek} @calciteSliderInput=${this.pause} ${c(this.#e)}></calcite-slider></calcite-label>`)}};h("arcgis-oriented-imagery-viewer-video-controls",s);return s},"core/reactiveUtils")
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{a as i}from"./JCRPP54Z.js";import{e as y}from"./FCNNRX3Q.js";import{h as f}from"./YK3OHMKT.js";import{e as d}from"./OM6LULIZ.js";import{O as m,P as u,R as p,U as g,X as h,a as l,b as o}from"./4GPS2BM4.js";var v=l`:host{margin-inline:var(--calcite-space-sm)}.status-indicator{visibility:hidden}.publishing{visibility:visible;color:var(--calcite-color-text-2);transform-origin:var(--calcite-list-item-icon-center) var(--calcite-list-item-icon-center);animation:2s infinite arcgis-layer-list__publishing-anim}.updating{visibility:visible;animation:2s infinite arcgis-layer-list__updating-anim}.connection-status{visibility:visible;color:var(--calcite-color-status-warning);width:var(--calcite-spacing-xl);height:var(--calcite-spacing-xl)}.connection-status--connected{color:var(--calcite-color-status-success)}@keyframes arcgis-layer-list__updating-anim{0%,40%{color:transparent}50%,80%{color:var(--calcite-color-brand)}to{color:transparent}}@keyframes arcgis-layer-list__publishing-anim{0%,20%{transform:rotate(45deg)}80%,to{transform:rotate(135deg)}}`,r=class extends u{constructor(){super(...arguments),this.autoDestroyDisabled=!1,this.arcgisPropertyChange=f()("item","parent")}static{this.properties={_iconEl:16,item:0,parent:0,messages:0,autoDestroyDisabled:5}}static{this.styles=[v]}async destroy(){await this.manager.destroy()}_setIconEl(s){this._iconEl=s}getTooltipText(s,a,n,t){let e=c=>typeof c=="string"?c:"";if(s)return e(t?.publishing);if(a)return e(t?.updating);switch(n){case"connected":return e(t?.connected);case"paused":return e(t?.paused);default:return e(t?.disconnected)}}render(){if(!this.item)return null;let s="publishing"in this.item&&this.item.publishing,a="updating"in this.item&&this.item.updating&&!this.parent,n="connectionStatus"in this.item?this.item.connectionStatus:void 0,t=!!n,e=s||a||t?y({connectionStatus:n,publishing:s}):"blank",{messages:c}=this,b=this.getTooltipText(s,a,n,c);return o`<calcite-icon class=${p(d(i.statusIndicator,{[i.publishing]:s},"updating"in i&&{[i.updating]:a},"connectionStatus"in i&&{[i.connectionStatus]:t},"connectionStatusConnected"in i&&{[i.connectionStatusConnected]:t&&n==="connected"}))} title=${c?.connectionStatus??g} .icon=${e} scale=s ${m(this._setIconEl)}></calcite-icon>${this._iconEl?o`<calcite-tooltip placement=top .referenceElement=${this._iconEl}>${b}</calcite-tooltip>`:null}`}};h("arcgis-layer-list-item-indicator",r);export{r as a};
2
+ import{a as i}from"./JCRPP54Z.js";import{e as y}from"./FCNNRX3Q.js";import{h as f}from"./6N7PM73F.js";import{e as d}from"./P2GMODLP.js";import{O as m,P as u,R as p,U as g,X as h,a as l,b as o}from"./33CM77ZT.js";var v=l`:host{margin-inline:var(--calcite-space-sm)}.status-indicator{visibility:hidden}.publishing{visibility:visible;color:var(--calcite-color-text-2);transform-origin:var(--calcite-list-item-icon-center) var(--calcite-list-item-icon-center);animation:2s infinite arcgis-layer-list__publishing-anim}.updating{visibility:visible;animation:2s infinite arcgis-layer-list__updating-anim}.connection-status{visibility:visible;color:var(--calcite-color-status-warning);width:var(--calcite-spacing-xl);height:var(--calcite-spacing-xl)}.connection-status--connected{color:var(--calcite-color-status-success)}@keyframes arcgis-layer-list__updating-anim{0%,40%{color:transparent}50%,80%{color:var(--calcite-color-brand)}to{color:transparent}}@keyframes arcgis-layer-list__publishing-anim{0%,20%{transform:rotate(45deg)}80%,to{transform:rotate(135deg)}}`,r=class extends u{constructor(){super(...arguments),this.autoDestroyDisabled=!1,this.arcgisPropertyChange=f()("item","parent")}static{this.properties={_iconEl:16,item:0,parent:0,messages:0,autoDestroyDisabled:5}}static{this.styles=[v]}async destroy(){await this.manager.destroy()}_setIconEl(s){this._iconEl=s}getTooltipText(s,a,n,t){let e=c=>typeof c=="string"?c:"";if(s)return e(t?.publishing);if(a)return e(t?.updating);switch(n){case"connected":return e(t?.connected);case"paused":return e(t?.paused);default:return e(t?.disconnected)}}render(){if(!this.item)return null;let s="publishing"in this.item&&this.item.publishing,a="updating"in this.item&&this.item.updating&&!this.parent,n="connectionStatus"in this.item?this.item.connectionStatus:void 0,t=!!n,e=s||a||t?y({connectionStatus:n,publishing:s}):"blank",{messages:c}=this,b=this.getTooltipText(s,a,n,c);return o`<calcite-icon class=${p(d(i.statusIndicator,{[i.publishing]:s},"updating"in i&&{[i.updating]:a},"connectionStatus"in i&&{[i.connectionStatus]:t},"connectionStatusConnected"in i&&{[i.connectionStatusConnected]:t&&n==="connected"}))} title=${c?.connectionStatus??g} .icon=${e} scale=s ${m(this._setIconEl)}></calcite-icon>${this._iconEl?o`<calcite-tooltip placement=top .referenceElement=${this._iconEl}>${b}</calcite-tooltip>`:null}`}};h("arcgis-layer-list-item-indicator",r);export{r as a};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{a as m}from"./ZJ2AYHW6.js";import{i as n}from"./BAOWXZTE.js";import{a as l}from"./P2A4UHL6.js";import"./YK3OHMKT.js";import"./BYC7JUTS.js";import"./QUZTFUWM.js";import"./OM6LULIZ.js";import{P as r,X as c,a as i,b as a,x as o}from"./4GPS2BM4.js";import"./H6RQVSYM.js";var h=i`:host{width:100%}.root{--calcite-label-margin-bottom: 0;width:100%}calcite-radio-button-group{padding:var(--calcite-spacing-sm)}`,e=class extends r{constructor(){super(...arguments),this.messages=l({}),this.options=[],this.scale="m",this.layout="block",this.arcgisUnitSelectChange=o()}static{this.properties={options:[1,{type:Array}],scale:1,name:1,value:0,messageOverrides:0,label:1,layout:1}}static{this.styles=h}async destroy(){await this.manager.destroy()}render(){let{messages:s,options:u=[],name:p,value:d,arcgisUnitSelectChange:g}=this;return a`<calcite-radio-button-group layout=vertical .name=${p} @calciteRadioButtonGroupChange=${t=>{g.emit(t.target.selectedItem?.value)}} .scale=${this.scale}>${u.map(t=>a`<calcite-label layout=inline .scale=${this.scale}>${m(t,a`<calcite-radio-button .checked=${t===d} .scale=${this.scale} .value=${t}></calcite-radio-button>`)}${n(t)?s.systems?.[t]:s.units?.[t]}</calcite-label>`)}</calcite-radio-button-group>`}};c("arcgis-unit-radio-button-group",e);export{e as ArcgisUnitRadioButtonGroup};
2
+ import{a as m}from"./HP2P5OYN.js";import{i as n}from"./BAOWXZTE.js";import{a as l}from"./7EMK74ZF.js";import"./6N7PM73F.js";import"./7IHIG427.js";import"./QUZTFUWM.js";import"./P2GMODLP.js";import{P as r,X as c,a as i,b as a,x as o}from"./33CM77ZT.js";import"./H6RQVSYM.js";var h=i`:host{width:100%}.root{--calcite-label-margin-bottom: 0;width:100%}calcite-radio-button-group{padding:var(--calcite-spacing-sm)}`,e=class extends r{constructor(){super(...arguments),this.messages=l({}),this.options=[],this.scale="m",this.layout="block",this.arcgisUnitSelectChange=o()}static{this.properties={options:[1,{type:Array}],scale:1,name:1,value:0,messageOverrides:0,label:1,layout:1}}static{this.styles=h}async destroy(){await this.manager.destroy()}render(){let{messages:s,options:u=[],name:p,value:d,arcgisUnitSelectChange:g}=this;return a`<calcite-radio-button-group layout=vertical .name=${p} @calciteRadioButtonGroupChange=${t=>{g.emit(t.target.selectedItem?.value)}} .scale=${this.scale}>${u.map(t=>a`<calcite-label layout=inline .scale=${this.scale}>${m(t,a`<calcite-radio-button .checked=${t===d} .scale=${this.scale} .value=${t}></calcite-radio-button>`)}${n(t)?s.systems?.[t]:s.units?.[t]}</calcite-label>`)}</calcite-radio-button-group>`}};c("arcgis-unit-radio-button-group",e);export{e as ArcgisUnitRadioButtonGroup};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import l from"./2FFYTIQO.js";import{a as J}from"./JCRPP54Z.js";import k from"./CP26XOGC.js";import j from"./L2AXRJFR.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"./7KODDU5C.js";import{a as w}from"./ZJ2AYHW6.js";import i from"./PNPZVEGZ.js";import h from"./TMJX7DFH.js";import g from"./ZW3ZNFYI.js";import"./VJVKFKSG.js";import f from"./KFXLQIC5.js";import{a as R}from"./P2A4UHL6.js";import{a as p}from"./JD74LG7K.js";import e from"./7LPF5IGM.js";import d from"./UGVAEIPY.js";import b from"./QAEFC57S.js";import{h as D}from"./YK3OHMKT.js";import"./BYC7JUTS.js";import a from"./4BLOLOQK.js";import"./QUZTFUWM.js";import{e as x}from"./OM6LULIZ.js";import{B as T,N as O,O as m,P,R as y,U as $,V as L,X as A,b as r,x as c}from"./4GPS2BM4.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","layerList/CatalogLayerListModel","layerList/Item",a,b,d,e,f,g,h,i,j,k,l)
2
+ import l from"./OCNR4NPT.js";import{a as J}from"./JCRPP54Z.js";import k from"./M5MUX3SR.js";import j from"./FBL6FWKR.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"./J6SWGP36.js";import{a as w}from"./HP2P5OYN.js";import i from"./RAWM42BS.js";import h from"./TMJX7DFH.js";import g from"./6CRONNHI.js";import"./VJVKFKSG.js";import f from"./X4FA56YR.js";import{a as R}from"./7EMK74ZF.js";import{a as p}from"./JD74LG7K.js";import e from"./NBGFUVYW.js";import d from"./76ZJGD75.js";import b from"./PPURK2BH.js";import{h as D}from"./6N7PM73F.js";import"./7IHIG427.js";import a from"./2IYRSXZS.js";import"./QUZTFUWM.js";import{e as x}from"./P2GMODLP.js";import{B as T,N as O,O as m,P,R as y,U as $,V as L,X as A,b as r,x as c}from"./33CM77ZT.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","layerList/CatalogLayerListModel","layerList/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{d as a}from"./OM6LULIZ.js";export default $arcgis.t(([{watch:p},t])=>{function R(e){e.el.childElem&&(e.el.childElem.ownedBy=e.el);let n=y(e);if(!n){let o=a(e);if(!o){m(e);return}return f(o,e,!0),o}return g(n,e.el.parent)||(e.el.parent=n,n.localName==="arcgis-expand"?E(n,e):f(n,e,!1)),n}function y({el:e}){for(let n=e.parentElement;n;n=n?.parentElement??null){if(s.has(n.localName))return n;if("ownedBy"in n&&n.ownedBy instanceof HTMLElement&&s.has(n.ownedBy.localName))return n.ownedBy}}var s=new Set(["arcgis-map","arcgis-scene","arcgis-link-chart","arcgis-expand"]);function g(e,n){return e!==n?!1:e.localName==="arcgis-expand"}function c(e,n,o="arcgisReady"){let i=e;if(i.view)n(i.view);else{let r=function(l){l.target===e&&(c(e,n,o),e.removeEventListener(o,r))};e.addEventListener(o,r)}}var E=(e,n)=>c(e,o=>{let i=d(n);if(n.el.shadowRoot?e.content=n.el:n.el.childElem&&e.content!=null&&i.append(n.el.childElem),n.el.view=o,e.referenceElement){n.referenceElement=e.referenceElement;return}p(()=>e.referenceElement,r=>{n.referenceElement=r},{once:!0})}),f=(e,n,o)=>c(e,i=>{o&&m(n),n.el.view=i,n.referenceElement=e},"arcgisViewReadyChange");function x(e){return e==null||e===""}function L(e,n){return e?.position===n?.position&&e?.heading===n.heading&&e?.tilt===n.tilt&&e?.fov===n.fov}function N(e,n){return n===void 0||e?.targetGeometry!==n?.targetGeometry||e?.rotation!==n?.rotation||e?.scale!==n?.scale}function b(e,n){if(e===n)return!0;let o=Array.isArray(e),i=Array.isArray(n);return o||i?o&&i&&e.length===n.length&&e.every((r,l)=>r===n[l]):typeof e=="string"||typeof n=="string"||!e||!n?!1:new t(e).equals(new t(n))}function F(e){return Array.isArray(e)?[...e]:typeof e=="object"&&e?new t(e):e}function q(e,n){return u(n?.center,e)}function u(e,n){if(typeof n=="string")return u(e,n.split(",").map(Number));if(!e)return n;if(Array.isArray(n)){let o=n[0],i=n[1],r=n.length>2?n[2]:void 0;if(o!==e.longitude||i!==e.latitude||r!==e.z)return n}else if(n&&!e.equals(new t(n)))return n}function m(e){e.el.childElem&&d(e).append(e.el.childElem)}function d(e){return e.el.shadowRoot??e.el}var T=e=>e.el.childElem;async function G(e){let n=typeof e=="function"?e():e;n&&("setFocus"in n&&typeof n.setFocus=="function"?await n.setFocus():n instanceof HTMLElement&&n.focus())}return{a:R,b:x,c:L,d:N,e:b,f:F,g:q,h:u,i:T,j:G}},"core/reactiveUtils","geometry/Point")
2
+ import{d as a}from"./P2GMODLP.js";export default $arcgis.t(([{watch:p},t])=>{function R(e){e.el.childElem&&(e.el.childElem.ownedBy=e.el);let n=y(e);if(!n){let o=a(e);if(!o){m(e);return}return f(o,e,!0),o}return g(n,e.el.parent)||(e.el.parent=n,n.localName==="arcgis-expand"?E(n,e):f(n,e,!1)),n}function y({el:e}){for(let n=e.parentElement;n;n=n?.parentElement??null){if(s.has(n.localName))return n;if("ownedBy"in n&&n.ownedBy instanceof HTMLElement&&s.has(n.ownedBy.localName))return n.ownedBy}}var s=new Set(["arcgis-map","arcgis-scene","arcgis-link-chart","arcgis-expand"]);function g(e,n){return e!==n?!1:e.localName==="arcgis-expand"}function c(e,n,o="arcgisReady"){let i=e;if(i.view)n(i.view);else{let r=function(l){l.target===e&&(c(e,n,o),e.removeEventListener(o,r))};e.addEventListener(o,r)}}var E=(e,n)=>c(e,o=>{let i=d(n);if(n.el.shadowRoot?e.content=n.el:n.el.childElem&&e.content!=null&&i.append(n.el.childElem),n.el.view=o,e.referenceElement){n.referenceElement=e.referenceElement;return}p(()=>e.referenceElement,r=>{n.referenceElement=r},{once:!0})}),f=(e,n,o)=>c(e,i=>{o&&m(n),n.el.view=i,n.referenceElement=e},"arcgisViewReadyChange");function x(e){return e==null||e===""}function L(e,n){return e?.position===n?.position&&e?.heading===n.heading&&e?.tilt===n.tilt&&e?.fov===n.fov}function N(e,n){return n===void 0||e?.targetGeometry!==n?.targetGeometry||e?.rotation!==n?.rotation||e?.scale!==n?.scale}function b(e,n){if(e===n)return!0;let o=Array.isArray(e),i=Array.isArray(n);return o||i?o&&i&&e.length===n.length&&e.every((r,l)=>r===n[l]):typeof e=="string"||typeof n=="string"||!e||!n?!1:new t(e).equals(new t(n))}function F(e){return Array.isArray(e)?[...e]:typeof e=="object"&&e?new t(e):e}function q(e,n){return u(n?.center,e)}function u(e,n){if(typeof n=="string")return u(e,n.split(",").map(Number));if(!e)return n;if(Array.isArray(n)){let o=n[0],i=n[1],r=n.length>2?n[2]:void 0;if(o!==e.longitude||i!==e.latitude||r!==e.z)return n}else if(n&&!e.equals(new t(n)))return n}function m(e){e.el.childElem&&d(e).append(e.el.childElem)}function d(e){return e.el.shadowRoot??e.el}var T=e=>e.el.childElem;async function G(e){let n=typeof e=="function"?e():e;n&&("setFocus"in n&&typeof n.setFocus=="function"?await n.setFocus():n instanceof HTMLElement&&n.focus())}return{a:R,b:x,c:L,d:N,e:b,f:F,g:q,h:u,i:T,j:G}},"core/reactiveUtils","geometry/Point")
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{a as d,b as m,c as g}from"./O7RSAJOS.js";import{a as n}from"./P2A4UHL6.js";import f from"./QAEFC57S.js";import{h as s}from"./YK3OHMKT.js";import"./BYC7JUTS.js";import b from"./4BLOLOQK.js";import"./QUZTFUWM.js";import"./OM6LULIZ.js";import{P as o,X as r,a,b as e,x as c}from"./4GPS2BM4.js";import"./H6RQVSYM.js";export default $arcgis.t(([,{a:l}])=>{var u=a`calcite-action{--calcite-action-background-color-hover: var(--calcite-color-foreground-1);--calcite-action-background-color-press: var(--calcite-color-foreground-1);--calcite-action-background-color: var(--calcite-color-foreground-1);--calcite-action-text-color-press: var(--calcite-color-text-1);--calcite-action-text-color: var(--calcite-color-text-1);cursor:default}calcite-input-time-zone{--calcite-color-background: var(--calcite-color-foreground-1);--calcite-color-border-input: transparent}calcite-label{--calcite-label-margin-bottom: 0;font-weight:var(--calcite-font-weight-medium);padding-block:var(--calcite-spacing-sm);padding-inline:var(--calcite-spacing-md)}`,i=class extends o{constructor(){super(...arguments),this._messages=n({blocking:!0}),this.disabled=!1,this.icon="time-zone",this.view=l(this),this.arcgisPropertyChange=s()("state"),this.arcgisReady=c()}static{this.properties={_interactive:16,_resolvedTimeZone:16,actionIcon:3,disabled:7,icon:3,messageOverrides:0,label:1,referenceElement:1,state:32,view:0}}static{this.styles=u}get _interactive(){return!(this.disabled||this.state==="disabled")}get _resolvedTimeZone(){let t=this.view?.timeZone;return!t||t===d?g:t}get state(){return this.view?.ready?"ready":"disabled"}render(){return e`<calcite-action .disabled=${!this._interactive} .icon=${this.actionIcon} text>${this._resolvedTimeZone===m?e`<calcite-label>${this._messages.noAdjustment}</calcite-label>`:e`<calcite-input-time-zone mode=region overlay-positioning=fixed read-only .value=${this._resolvedTimeZone}></calcite-input-time-zone>`}</calcite-action>`}};r("arcgis-time-zone-label",i);return i},b,f)
2
+ import{a as d,b as m,c as g}from"./O7RSAJOS.js";import{a as n}from"./7EMK74ZF.js";import f from"./PPURK2BH.js";import{h as s}from"./6N7PM73F.js";import"./7IHIG427.js";import b from"./2IYRSXZS.js";import"./QUZTFUWM.js";import"./P2GMODLP.js";import{P as o,X as r,a,b as e,x as c}from"./33CM77ZT.js";import"./H6RQVSYM.js";export default $arcgis.t(([,{a:l}])=>{var u=a`calcite-action{--calcite-action-background-color-hover: var(--calcite-color-foreground-1);--calcite-action-background-color-press: var(--calcite-color-foreground-1);--calcite-action-background-color: var(--calcite-color-foreground-1);--calcite-action-text-color-press: var(--calcite-color-text-1);--calcite-action-text-color: var(--calcite-color-text-1);cursor:default}calcite-input-time-zone{--calcite-color-background: var(--calcite-color-foreground-1);--calcite-color-border-input: transparent}calcite-label{--calcite-label-margin-bottom: 0;font-weight:var(--calcite-font-weight-medium);padding-block:var(--calcite-spacing-sm);padding-inline:var(--calcite-spacing-md)}`,i=class extends o{constructor(){super(...arguments),this._messages=n({blocking:!0}),this.disabled=!1,this.icon="time-zone",this.view=l(this),this.arcgisPropertyChange=s()("state"),this.arcgisReady=c()}static{this.properties={_interactive:16,_resolvedTimeZone:16,actionIcon:3,disabled:7,icon:3,messageOverrides:0,label:1,referenceElement:1,state:32,view:0}}static{this.styles=u}get _interactive(){return!(this.disabled||this.state==="disabled")}get _resolvedTimeZone(){let t=this.view?.timeZone;return!t||t===d?g:t}get state(){return this.view?.ready?"ready":"disabled"}render(){return e`<calcite-action .disabled=${!this._interactive} .icon=${this.actionIcon} text>${this._resolvedTimeZone===m?e`<calcite-label>${this._messages.noAdjustment}</calcite-label>`:e`<calcite-input-time-zone mode=region overlay-positioning=fixed read-only .value=${this._resolvedTimeZone}></calcite-input-time-zone>`}</calcite-action>`}};r("arcgis-time-zone-label",i);return i},b,f)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{b as r,c as f,d as k,e as R,f as D,h as p,i as x,j as S}from"./Y4WOZJQX.js";import{a as m,b as n}from"./D47546HM.js";import e from"./ZW3ZNFYI.js";import"./VJVKFKSG.js";import{a as C}from"./P2A4UHL6.js";import{h as A}from"./YK3OHMKT.js";import"./BYC7JUTS.js";import"./QUZTFUWM.js";import{b as I}from"./OM6LULIZ.js";import{O as d,P as E,R as G,X as F,a as b,b as a,n as h,p as w,r as _,x as c}from"./4GPS2BM4.js";import"./H6RQVSYM.js";export default $arcgis.t(([y,{a:g}])=>{var z=b`:host{height:100%}slot:not([hidden]),.default-result-items:not([hidden]){display:flex;flex-direction:column;gap:var(--calcite-spacing-md)}.results-block{height:var(--arcgis-internal-trace-results-height, auto);margin-top:0;margin-bottom:0;&.features-list-active{--calcite-block-content-space: 0}}.no-selectable-results{color:var(--calcite-color-text-3);font-size:var(--calcite-font-size)}.no-results-landing{display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;margin:var(--calcite-spacing-md);gap:var(--calcite-spacing-md)}.no-results-landing calcite-icon{margin-bottom:var(--calcite-spacing-sm);--calcite-icon-color: var(--calcite-color-text-3)}.no-results-landing .no-results-heading{font-size:var(--calcite-font-size-2)}.no-results-landing .no-results-description{color:var(--calcite-color-text-3)}`,v={dirtyAreasDiscovered:-2147208511,noValidControllers:-2147208935,pathNotFound:-2147208444},$=class extends E{constructor(){super(...arguments),this._messages=C({blocking:!0}),this.#s=new Set,this.#e=new Set,this.#i=new Map,this.#r=[],this.#a=new Map,this.#o=new Set,this.#g=t=>{let{detail:e,target:s}=t;if(e.name==="isFeaturesListShown"){let i=s[e.name];!this.#t&&i?(this.#t=s,this.#f(r(this.el))):s===this.#t&&!i&&(this.#t=void 0,this.#c()),this.requestUpdate()}else e.name==="hasContent"&&this.requestUpdate()},this._slottedDefaultResultItems=[],this.aggregatedGeometryResultsGraphicsColor=new y(m),this.aggregatedGeometryResultsSize=12,this.autoDestroyDisabled=!1,this.disableHighlightFeatureResults=!1,this.expandable=!1,this.expanded=!1,this.hideActionBar=!1,this.hideGraphics=!1,this.hidePlaceholder=!1,this.hideFeatureResults=!1,this.includeDefaultActionsDisabled=!1,this.layers=[],this.state="ready",this.arcgisPropertyChange=A()("aggregatedGeometryResultsGraphicsColor","aggregatedGeometryResultsSize","hideGraphics","state","traceError","traceResult","utilityNetwork","view"),this.arcgisResultsReady=c(),this.arcgisTraceResultClear=c(),this.arcgisTriggerAction=c()}static{this.properties={_defaultAggregatedGeometryResultsItem:16,_defaultElementsResultItem:16,_defaultFunctionsResultItem:16,_slottedDefaultResultItems:16,actions:0,aggregatedGeometryResultsGraphicsColor:[1,{converter:{fromAttribute:t=>y.fromString(t)??new y(m)}}],aggregatedGeometryResultsSize:9,autoDestroyDisabled:5,disableHighlightFeatureResults:5,expandable:5,expanded:5,heading:1,hideActionBar:5,hideGraphics:5,hidePlaceholder:5,hideFeatureResults:5,includeDefaultActionsDisabled:5,layers:0,messageOverrides:0,numFeatureResults:32,referenceElement:1,state:32,traceError:0,traceResult:0,traceResultFeatures:32,utilityNetwork:0,view:0}}static{this.styles=z}#t;#s;#e;#i;#r;#a;#o;#g;get#m(){let t=this.#l?this._slottedDefaultResultItems:[this._defaultAggregatedGeometryResultsItem,this._defaultElementsResultItem,this._defaultFunctionsResultItem].filter(e=>e!==void 0);return this.#h||t.some(e=>e.hasContent)}get#h(){return r(this.el).filter(t=>!f(t)).length>0}get#l(){return r(this.el).length>0}get#_(){return this.traceResult?this.#l?r(this.el).filter(p):this.#A(this.traceResult):[]}get#E(){return!!this.traceResult&&!this.traceError&&(this.#n||this.#l)}get#R(){if(!this.traceResult||!this.#n)return!1;if(this.#h)return!0;let{aggregatedGeometry:t,elements:e,globalFunctionResults:s}=this.traceResult;return this._slottedDefaultResultItems.some(i=>t!=null&&k(i)||e.length>0&&R(i)||s.length>0&&D(i))}get#n(){if(!this.traceResult)return!1;let{elements:t,globalFunctionResults:e,aggregatedGeometry:s}=this.traceResult;return!!(t.length||e.length||s)}get numFeatureResults(){return this._defaultElementsResultItem?this._defaultElementsResultItem.numResults:this.#r[0]?.numResults??0}get traceResultFeatures(){return this._defaultElementsResultItem?this._defaultElementsResultItem.features:this.#r[0]?.features??[]}clearResults(){this.traceResult=void 0,this.traceError=void 0,this.#p(),this.arcgisTraceResultClear.emit()}async destroy(){let t=r(this.el).filter(S),e=await Promise.allSettled([...t.map(async s=>await s.destroy()),this._defaultAggregatedGeometryResultsItem?.destroy(),this._defaultElementsResultItem?.destroy(),this._defaultFunctionsResultItem?.destroy()]);for(let s of e)s.status==="rejected"&&g(s.reason,this,"Error while destroying trace result item");await this.manager.destroy()}load(){this.manager.onLifecycle(()=>{let t=r(this.el);return this.#b(t),this.#$(t),()=>{for(let e of this.#i.keys())this.#v(e);for(let e of this.#a.keys())this.#y(e);this.#c()}})}willUpdate(t){t.has("traceResult")&&(this.#p(),this.#E?this.#z():this.traceResult&&!this.traceError&&!this.#n&&this.#d())}loaded(){this.traceResult&&(this.view||w("warn",this,_("view")))}#c(){for(let t of this.#s)t.removeAttribute("hidden");this.#s.clear()}#p(){let t=r(this.el).filter(x);for(let e of t)try{e.clearResult()}catch(s){g(s,this,"Error while clearing trace result item")}this._defaultAggregatedGeometryResultsItem?.clearResult(),this._defaultElementsResultItem?.clearResult(),this._defaultFunctionsResultItem?.clearResult(),this.#e.clear(),h(()=>this.state="ready")}#G(t){this._defaultAggregatedGeometryResultsItem=t}#F(t){this.#t&&this.#t===this._defaultElementsResultItem&&t!==this._defaultElementsResultItem&&(this.#t=void 0,this.#c()),this._defaultElementsResultItem=t,!this.#t&&t?.isFeaturesListShown&&(this.#t=t,this.#f(r(this.el)))}#I(t){this._defaultFunctionsResultItem=t}#d(){h(()=>this.state="ready"),this.arcgisResultsReady.emit()}#A(t){let{elements:e,globalFunctionResults:s,aggregatedGeometry:i}=t,[u,l,P]=n,o=[];return i!=null&&o.push(u),e!=null&&o.push(l),s.length>0&&o.push(P),o}#C(t){t.stopPropagation(),this.arcgisTriggerAction.emit(t.detail)}#k(t){let{detail:e,target:s}=t;e.name==="hideGraphics"?(t.stopPropagation(),this.hideGraphics=s[e.name]):e.name==="graphicsColor"?(t.stopPropagation(),this.aggregatedGeometryResultsGraphicsColor=s[e.name]):e.name==="selectionSize"&&(t.stopPropagation(),this.aggregatedGeometryResultsSize=s[e.name])}#D(){this.#u(n[0])}#x(){this.#u(n[1])}#S(){this.#u(n[2])}#P(t){let e=I(t);this.#b(e),this.#$(e)}#f(t){t.forEach(e=>{e!==this.#t&&!e.hasAttribute("hidden")?(e.setAttribute("hidden",""),this.#s.add(e)):e===this.#t&&this.#s.has(e)&&(e.removeAttribute("hidden"),this.#s.delete(e))})}#z(){this.#e=new Set(this.#_),this.#e.size===0?this.#d():h(()=>this.state="loading")}#L(t){if(this.#a.has(t))return;let e=s=>this.#g(s);this.#a.set(t,e),t.addEventListener("arcgisPropertyChange",e)}#O(t){if(this.#i.has(t))return;let e=({target:s})=>this.#u(s);this.#i.set(t,e),t.addEventListener("arcgisResultReady",e)}#y(t){let e=this.#a.get(t);e&&(t.removeEventListener("arcgisPropertyChange",e),this.#a.delete(t))}#v(t){let e=this.#i.get(t);e&&(t.removeEventListener("arcgisResultReady",e),this.#i.delete(t))}#$(t){for(let i of this.#s)t.includes(i)||(i.removeAttribute("hidden"),this.#s.delete(i));let e=t.filter(R);for(let i of this.#r)e.includes(i)||this.#y(i);for(let i of e)this.#L(i);let s=this.#t;s&&(!s.isFeaturesListShown||s!==this._defaultElementsResultItem&&!e.includes(s))&&(this.#t=void 0,this.#c()),this.#t??=e.find(i=>i.isFeaturesListShown),this.#t&&this.#f(t),this.#r=e,this.requestUpdate()}#b(t){let e=new Set(t.filter(p));for(let s of this.#o)e.has(s)||(this.#v(s),this.#e.delete(s));for(let s of e)this.#O(s),this.state==="loading"&&!this.#o.has(s)&&this.#e.add(s);this.#o=e,this._slottedDefaultResultItems=t.filter(f),this.state==="loading"&&this.#e.size===0&&this.#d()}#u(t){this.#e.delete(t),this.state==="loading"&&this.#e.size===0&&this.#d()}render(){let{traceError:t,traceResult:e}=this,s=!t&&e&&this.#n&&!this.#l?this.#T(e):void 0,i=!!e&&!t&&this.#m&&(this.#h||this.#R),u=a`<slot .hidden=${!i} @slotchange=${this.#P}></slot>`,l;return t?l=this.#N(t):e?!this.#n&&!this.#h?l=this.#w():this.state==="ready"&&!this.#m&&(l=this.#l&&this._slottedDefaultResultItems.length&&!this.#R?this.#H():this.#w()):l=this.#B(),a`<calcite-block class=${G({"results-block":!0,"features-list-active":!!this.#t})} .description=${this.heading} .expandable=${this.expandable} .expanded=${this.expanded} .heading=${this._messages.headings.traceResultsGeneric} .label=${this._messages.headings.traceResultsGeneric} .loading=${this.state==="loading"}>${u}${s}${l}</calcite-block>`}#T(t){let{elements:e,globalFunctionResults:s,aggregatedGeometry:i}=t;return a`<div class="default-result-items" .hidden=${!this.#m}>${i!=null?a`<arcgis-utility-network-trace-aggregated-geometry-result-item auto-destroy-disabled .graphicsColor=${this.aggregatedGeometryResultsGraphicsColor} .hideGraphics=${this.hideGraphics} .hidden=${!!this.#t} .messageOverrides=${this.messageOverrides} .selectionSize=${this.aggregatedGeometryResultsSize} @arcgisPropertyChange=${this.#k} @arcgisResultReady=${this.#D} ${d(this.#G)}></arcgis-utility-network-trace-aggregated-geometry-result-item>${!e.length&&!this.#t?this.#M():null}`:null}${e!=null?a`<arcgis-utility-network-trace-elements-result-item .actions=${this.actions} auto-destroy-disabled .disableHighlight=${this.disableHighlightFeatureResults} .hideActionBar=${this.hideActionBar} .hideFeatureResults=${this.hideFeatureResults} .hidePlaceholder=${this.hidePlaceholder} .hidden=${!e.length} .includeDefaultActionsDisabled=${this.includeDefaultActionsDisabled} .layers=${this.layers} .messageOverrides=${this.messageOverrides} .referenceElement=${this.referenceElement} @arcgisPropertyChange=${this.#g} @arcgisResultReady=${this.#x} @arcgisTriggerAction=${this.#C} ${d(this.#F)}></arcgis-utility-network-trace-elements-result-item>`:null}${s.length>0?a`<arcgis-utility-network-trace-functions-result-item auto-destroy-disabled .heading=${this._messages.headings.functions} .hidden=${!!this.#t} .messageOverrides=${this.messageOverrides} @arcgisResultReady=${this.#S} ${d(this.#I)}></arcgis-utility-network-trace-functions-result-item>`:null}</div>`}#H(){return a`<div class="no-selectable-results">${this._messages.noMatchingResultItems}</div>`}#M(){return a`<div class="no-selectable-results">${this._messages.noSelectableFeatures}</div>`}#N(t){let{_messages:e}=this,s=t.message;switch(t.details?.raw?.extendedCode){case v.dirtyAreasDiscovered:s=e.traceErrors.dirtyAreasDiscovered;break;case v.noValidControllers:s=e.traceErrors.noValidControllers;break;case v.pathNotFound:s=e.traceErrors.pathNotFound;break}return a`<div class="no-results-landing"><calcite-icon icon=exclamation-mark-triangle scale=l></calcite-icon><div class="no-results-heading">${e.traceFailedHeading}</div><div class="no-results-description">${e.traceFailedDescription}</div><div class="no-results-description">${s}</div></div>`}#w(){let{_messages:t}=this;return a`<div class="no-results-landing"><calcite-icon icon=exclamation-mark-triangle scale=l></calcite-icon><div class="no-results-heading">${t.noResultsHeading}</div><div class="no-results-description">${t.noResultsDescription}</div></div>`}#B(){let{_messages:t}=this;return a`<div class="no-results-landing"><calcite-icon icon=utility-network-trace scale=l></calcite-icon><div class="no-results-heading">${t.noTraceConfigHeading}</div><div class="no-results-description">${t.noTraceConfigDescription}</div></div>`}};F("arcgis-utility-network-trace-results",$);return $},"Color",e)
2
+ import{b as r,c as f,d as k,e as R,f as D,h as p,i as x,j as S}from"./Y4WOZJQX.js";import{a as m,b as n}from"./D47546HM.js";import e from"./6CRONNHI.js";import"./VJVKFKSG.js";import{a as C}from"./7EMK74ZF.js";import{h as A}from"./6N7PM73F.js";import"./7IHIG427.js";import"./QUZTFUWM.js";import{b as I}from"./P2GMODLP.js";import{O as d,P as E,R as G,X as F,a as b,b as a,n as h,p as w,r as _,x as c}from"./33CM77ZT.js";import"./H6RQVSYM.js";export default $arcgis.t(([y,{a:g}])=>{var z=b`:host{height:100%}slot:not([hidden]),.default-result-items:not([hidden]){display:flex;flex-direction:column;gap:var(--calcite-spacing-md)}.results-block{height:var(--arcgis-internal-trace-results-height, auto);margin-top:0;margin-bottom:0;&.features-list-active{--calcite-block-content-space: 0}}.no-selectable-results{color:var(--calcite-color-text-3);font-size:var(--calcite-font-size)}.no-results-landing{display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;margin:var(--calcite-spacing-md);gap:var(--calcite-spacing-md)}.no-results-landing calcite-icon{margin-bottom:var(--calcite-spacing-sm);--calcite-icon-color: var(--calcite-color-text-3)}.no-results-landing .no-results-heading{font-size:var(--calcite-font-size-2)}.no-results-landing .no-results-description{color:var(--calcite-color-text-3)}`,v={dirtyAreasDiscovered:-2147208511,noValidControllers:-2147208935,pathNotFound:-2147208444},$=class extends E{constructor(){super(...arguments),this._messages=C({blocking:!0}),this.#s=new Set,this.#e=new Set,this.#i=new Map,this.#r=[],this.#a=new Map,this.#o=new Set,this.#g=t=>{let{detail:e,target:s}=t;if(e.name==="isFeaturesListShown"){let i=s[e.name];!this.#t&&i?(this.#t=s,this.#f(r(this.el))):s===this.#t&&!i&&(this.#t=void 0,this.#c()),this.requestUpdate()}else e.name==="hasContent"&&this.requestUpdate()},this._slottedDefaultResultItems=[],this.aggregatedGeometryResultsGraphicsColor=new y(m),this.aggregatedGeometryResultsSize=12,this.autoDestroyDisabled=!1,this.disableHighlightFeatureResults=!1,this.expandable=!1,this.expanded=!1,this.hideActionBar=!1,this.hideGraphics=!1,this.hidePlaceholder=!1,this.hideFeatureResults=!1,this.includeDefaultActionsDisabled=!1,this.layers=[],this.state="ready",this.arcgisPropertyChange=A()("aggregatedGeometryResultsGraphicsColor","aggregatedGeometryResultsSize","hideGraphics","state","traceError","traceResult","utilityNetwork","view"),this.arcgisResultsReady=c(),this.arcgisTraceResultClear=c(),this.arcgisTriggerAction=c()}static{this.properties={_defaultAggregatedGeometryResultsItem:16,_defaultElementsResultItem:16,_defaultFunctionsResultItem:16,_slottedDefaultResultItems:16,actions:0,aggregatedGeometryResultsGraphicsColor:[1,{converter:{fromAttribute:t=>y.fromString(t)??new y(m)}}],aggregatedGeometryResultsSize:9,autoDestroyDisabled:5,disableHighlightFeatureResults:5,expandable:5,expanded:5,heading:1,hideActionBar:5,hideGraphics:5,hidePlaceholder:5,hideFeatureResults:5,includeDefaultActionsDisabled:5,layers:0,messageOverrides:0,numFeatureResults:32,referenceElement:1,state:32,traceError:0,traceResult:0,traceResultFeatures:32,utilityNetwork:0,view:0}}static{this.styles=z}#t;#s;#e;#i;#r;#a;#o;#g;get#m(){let t=this.#l?this._slottedDefaultResultItems:[this._defaultAggregatedGeometryResultsItem,this._defaultElementsResultItem,this._defaultFunctionsResultItem].filter(e=>e!==void 0);return this.#h||t.some(e=>e.hasContent)}get#h(){return r(this.el).filter(t=>!f(t)).length>0}get#l(){return r(this.el).length>0}get#_(){return this.traceResult?this.#l?r(this.el).filter(p):this.#A(this.traceResult):[]}get#E(){return!!this.traceResult&&!this.traceError&&(this.#n||this.#l)}get#R(){if(!this.traceResult||!this.#n)return!1;if(this.#h)return!0;let{aggregatedGeometry:t,elements:e,globalFunctionResults:s}=this.traceResult;return this._slottedDefaultResultItems.some(i=>t!=null&&k(i)||e.length>0&&R(i)||s.length>0&&D(i))}get#n(){if(!this.traceResult)return!1;let{elements:t,globalFunctionResults:e,aggregatedGeometry:s}=this.traceResult;return!!(t.length||e.length||s)}get numFeatureResults(){return this._defaultElementsResultItem?this._defaultElementsResultItem.numResults:this.#r[0]?.numResults??0}get traceResultFeatures(){return this._defaultElementsResultItem?this._defaultElementsResultItem.features:this.#r[0]?.features??[]}clearResults(){this.traceResult=void 0,this.traceError=void 0,this.#p(),this.arcgisTraceResultClear.emit()}async destroy(){let t=r(this.el).filter(S),e=await Promise.allSettled([...t.map(async s=>await s.destroy()),this._defaultAggregatedGeometryResultsItem?.destroy(),this._defaultElementsResultItem?.destroy(),this._defaultFunctionsResultItem?.destroy()]);for(let s of e)s.status==="rejected"&&g(s.reason,this,"Error while destroying trace result item");await this.manager.destroy()}load(){this.manager.onLifecycle(()=>{let t=r(this.el);return this.#b(t),this.#$(t),()=>{for(let e of this.#i.keys())this.#v(e);for(let e of this.#a.keys())this.#y(e);this.#c()}})}willUpdate(t){t.has("traceResult")&&(this.#p(),this.#E?this.#z():this.traceResult&&!this.traceError&&!this.#n&&this.#d())}loaded(){this.traceResult&&(this.view||w("warn",this,_("view")))}#c(){for(let t of this.#s)t.removeAttribute("hidden");this.#s.clear()}#p(){let t=r(this.el).filter(x);for(let e of t)try{e.clearResult()}catch(s){g(s,this,"Error while clearing trace result item")}this._defaultAggregatedGeometryResultsItem?.clearResult(),this._defaultElementsResultItem?.clearResult(),this._defaultFunctionsResultItem?.clearResult(),this.#e.clear(),h(()=>this.state="ready")}#G(t){this._defaultAggregatedGeometryResultsItem=t}#F(t){this.#t&&this.#t===this._defaultElementsResultItem&&t!==this._defaultElementsResultItem&&(this.#t=void 0,this.#c()),this._defaultElementsResultItem=t,!this.#t&&t?.isFeaturesListShown&&(this.#t=t,this.#f(r(this.el)))}#I(t){this._defaultFunctionsResultItem=t}#d(){h(()=>this.state="ready"),this.arcgisResultsReady.emit()}#A(t){let{elements:e,globalFunctionResults:s,aggregatedGeometry:i}=t,[u,l,P]=n,o=[];return i!=null&&o.push(u),e!=null&&o.push(l),s.length>0&&o.push(P),o}#C(t){t.stopPropagation(),this.arcgisTriggerAction.emit(t.detail)}#k(t){let{detail:e,target:s}=t;e.name==="hideGraphics"?(t.stopPropagation(),this.hideGraphics=s[e.name]):e.name==="graphicsColor"?(t.stopPropagation(),this.aggregatedGeometryResultsGraphicsColor=s[e.name]):e.name==="selectionSize"&&(t.stopPropagation(),this.aggregatedGeometryResultsSize=s[e.name])}#D(){this.#u(n[0])}#x(){this.#u(n[1])}#S(){this.#u(n[2])}#P(t){let e=I(t);this.#b(e),this.#$(e)}#f(t){t.forEach(e=>{e!==this.#t&&!e.hasAttribute("hidden")?(e.setAttribute("hidden",""),this.#s.add(e)):e===this.#t&&this.#s.has(e)&&(e.removeAttribute("hidden"),this.#s.delete(e))})}#z(){this.#e=new Set(this.#_),this.#e.size===0?this.#d():h(()=>this.state="loading")}#L(t){if(this.#a.has(t))return;let e=s=>this.#g(s);this.#a.set(t,e),t.addEventListener("arcgisPropertyChange",e)}#O(t){if(this.#i.has(t))return;let e=({target:s})=>this.#u(s);this.#i.set(t,e),t.addEventListener("arcgisResultReady",e)}#y(t){let e=this.#a.get(t);e&&(t.removeEventListener("arcgisPropertyChange",e),this.#a.delete(t))}#v(t){let e=this.#i.get(t);e&&(t.removeEventListener("arcgisResultReady",e),this.#i.delete(t))}#$(t){for(let i of this.#s)t.includes(i)||(i.removeAttribute("hidden"),this.#s.delete(i));let e=t.filter(R);for(let i of this.#r)e.includes(i)||this.#y(i);for(let i of e)this.#L(i);let s=this.#t;s&&(!s.isFeaturesListShown||s!==this._defaultElementsResultItem&&!e.includes(s))&&(this.#t=void 0,this.#c()),this.#t??=e.find(i=>i.isFeaturesListShown),this.#t&&this.#f(t),this.#r=e,this.requestUpdate()}#b(t){let e=new Set(t.filter(p));for(let s of this.#o)e.has(s)||(this.#v(s),this.#e.delete(s));for(let s of e)this.#O(s),this.state==="loading"&&!this.#o.has(s)&&this.#e.add(s);this.#o=e,this._slottedDefaultResultItems=t.filter(f),this.state==="loading"&&this.#e.size===0&&this.#d()}#u(t){this.#e.delete(t),this.state==="loading"&&this.#e.size===0&&this.#d()}render(){let{traceError:t,traceResult:e}=this,s=!t&&e&&this.#n&&!this.#l?this.#T(e):void 0,i=!!e&&!t&&this.#m&&(this.#h||this.#R),u=a`<slot .hidden=${!i} @slotchange=${this.#P}></slot>`,l;return t?l=this.#N(t):e?!this.#n&&!this.#h?l=this.#w():this.state==="ready"&&!this.#m&&(l=this.#l&&this._slottedDefaultResultItems.length&&!this.#R?this.#H():this.#w()):l=this.#B(),a`<calcite-block class=${G({"results-block":!0,"features-list-active":!!this.#t})} .description=${this.heading} .expandable=${this.expandable} .expanded=${this.expanded} .heading=${this._messages.headings.traceResultsGeneric} .label=${this._messages.headings.traceResultsGeneric} .loading=${this.state==="loading"}>${u}${s}${l}</calcite-block>`}#T(t){let{elements:e,globalFunctionResults:s,aggregatedGeometry:i}=t;return a`<div class="default-result-items" .hidden=${!this.#m}>${i!=null?a`<arcgis-utility-network-trace-aggregated-geometry-result-item auto-destroy-disabled .graphicsColor=${this.aggregatedGeometryResultsGraphicsColor} .hideGraphics=${this.hideGraphics} .hidden=${!!this.#t} .messageOverrides=${this.messageOverrides} .selectionSize=${this.aggregatedGeometryResultsSize} @arcgisPropertyChange=${this.#k} @arcgisResultReady=${this.#D} ${d(this.#G)}></arcgis-utility-network-trace-aggregated-geometry-result-item>${!e.length&&!this.#t?this.#M():null}`:null}${e!=null?a`<arcgis-utility-network-trace-elements-result-item .actions=${this.actions} auto-destroy-disabled .disableHighlight=${this.disableHighlightFeatureResults} .hideActionBar=${this.hideActionBar} .hideFeatureResults=${this.hideFeatureResults} .hidePlaceholder=${this.hidePlaceholder} .hidden=${!e.length} .includeDefaultActionsDisabled=${this.includeDefaultActionsDisabled} .layers=${this.layers} .messageOverrides=${this.messageOverrides} .referenceElement=${this.referenceElement} @arcgisPropertyChange=${this.#g} @arcgisResultReady=${this.#x} @arcgisTriggerAction=${this.#C} ${d(this.#F)}></arcgis-utility-network-trace-elements-result-item>`:null}${s.length>0?a`<arcgis-utility-network-trace-functions-result-item auto-destroy-disabled .heading=${this._messages.headings.functions} .hidden=${!!this.#t} .messageOverrides=${this.messageOverrides} @arcgisResultReady=${this.#S} ${d(this.#I)}></arcgis-utility-network-trace-functions-result-item>`:null}</div>`}#H(){return a`<div class="no-selectable-results">${this._messages.noMatchingResultItems}</div>`}#M(){return a`<div class="no-selectable-results">${this._messages.noSelectableFeatures}</div>`}#N(t){let{_messages:e}=this,s=t.message;switch(t.details?.raw?.extendedCode){case v.dirtyAreasDiscovered:s=e.traceErrors.dirtyAreasDiscovered;break;case v.noValidControllers:s=e.traceErrors.noValidControllers;break;case v.pathNotFound:s=e.traceErrors.pathNotFound;break}return a`<div class="no-results-landing"><calcite-icon icon=exclamation-mark-triangle scale=l></calcite-icon><div class="no-results-heading">${e.traceFailedHeading}</div><div class="no-results-description">${e.traceFailedDescription}</div><div class="no-results-description">${s}</div></div>`}#w(){let{_messages:t}=this;return a`<div class="no-results-landing"><calcite-icon icon=exclamation-mark-triangle scale=l></calcite-icon><div class="no-results-heading">${t.noResultsHeading}</div><div class="no-results-description">${t.noResultsDescription}</div></div>`}#B(){let{_messages:t}=this;return a`<div class="no-results-landing"><calcite-icon icon=utility-network-trace scale=l></calcite-icon><div class="no-results-heading">${t.noTraceConfigHeading}</div><div class="no-results-description">${t.noTraceConfigDescription}</div></div>`}};F("arcgis-utility-network-trace-results",$);return $},"Color",e)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{a as z,d as M}from"./7N4V2IN6.js";import{a as k}from"./24U6DHQD.js";import g from"./KFXLQIC5.js";import{a as x}from"./P2A4UHL6.js";import{a as n}from"./JD74LG7K.js";import e from"./UGVAEIPY.js";import c from"./QAEFC57S.js";import{f as _,h as b}from"./YK3OHMKT.js";import"./BYC7JUTS.js";import a from"./4BLOLOQK.js";import"./QUZTFUWM.js";import{e as v}from"./OM6LULIZ.js";import{P as f,R as d,S as u,U as p,X as w,a as m,b as o,x as h}from"./4GPS2BM4.js";import"./H6RQVSYM.js";export default $arcgis.t(([{watch:D,when:L},E,,,,y])=>{var C=m`@keyframes esri-basemap-slide{0%{opacity:0;margin-top:0;margin-left:0}75%{opacity:0;margin-top:0;margin-left:0}to{opacity:1;margin-top:5px;margin-left:5px}}@keyframes esri-docking-animation{0%{opacity:0}25%{opacity:0}to{opacity:1}}@keyframes popup-intro-animation-down{0%{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translate(0)}}@keyframes popup-intro-animation-up{0%{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translate(0)}}@supports (-ms-ime-align: auto){.esri-slider__anchor:focus{outline:1px dotted #000}}@keyframes esri-spinner--start-animation{0%{opacity:0;transform:scale(0)}to{opacity:1;transform:scale(1)}}@keyframes esri-spinner--finish-animation{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(0)}}@keyframes esri-spinner--rotate-animation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@media(prefers-reduced-motion){.esri-utility-network-trace__reset-prompt{animation:none!important}}@media(prefers-reduced-motion){.esri-popup--aligned-top-center,.esri-popup--aligned-top-left,.esri-popup--aligned-top-right,.esri-popup--aligned-bottom-center,.esri-popup--aligned-bottom-left,.esri-popup--aligned-bottom-right,.esri-popup--is-docked{animation:none!important}}@media(prefers-reduced-motion:reduce){.esri-fov-overlay{animation:none!important}}@keyframes esri-fade-in-down{0%{opacity:0;transform:translateY(-5px)}25%{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translate(0)}}@keyframes esri-fade-in-up{0%{opacity:0;transform:translateY(5px)}25%{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translate(0)}}@keyframes esri-fade-in{0%{opacity:0}25%{opacity:0}to{opacity:1}}@keyframes esri-fade-in-scale{0%{opacity:0;transform:scale(.95)}to{opacity:1;transform:scale(1)}}@keyframes looping-progresss-bar-ani{0%{width:0;left:0}20%{width:20%;left:0}80%{width:20%;left:80%}to{width:0;left:100%}}@keyframes esri-rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes panel-advance{0%{opacity:0;transform:translate(50px) scale(.99)}to{opacity:1;transform:translate(0) scale(1)}}@keyframes panel-retreat{0%{opacity:0;transform:translate(-50px) scale(.99)}to{opacity:1;transform:translate(0) scale(1)}}@keyframes panel-advance--rtl{0%{opacity:0;transform:translate(-50px) scale(.99)}to{opacity:1;transform:translate(0) scale(1)}}@keyframes panel-retreat--rtl{0%{opacity:0;transform:translate(50px) scale(.99)}to{opacity:1;transform:translate(0) scale(1)}}.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}.esri-widget{box-sizing:border-box;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget *,.esri-widget :before,.esri-widget :after{box-sizing:inherit}.esri-widget.esri-widget--disabled>*{opacity:.4;pointer-events:none}.esri-widget.esri-widget--compact{--esri-widget-padding-y: 0;--esri-widget-padding-x: 0}.esri-widget__anchor{color:var(--calcite-color-text-2)}.esri-widget__anchor:hover{color:var(--calcite-color-text-3)}.esri-widget__anchor:hover,.esri-widget__anchor:focus{text-decoration:underline}.esri-widget__anchor--disabled{opacity:.4;pointer-events:none}.esri-widget__header{background-color:var(--calcite-color-foreground-1);flex:1 0 100%;justify-content:space-between;align-items:center;width:100%;min-height:48px;padding:12px 0 12px 15px;display:flex}.esri-widget__heading{word-break:break-word}.esri-widget__header .esri-widget__heading{width:calc(100% - 48px);text-align:initial;color:var(--calcite-color-text-1);align-items:center;margin:0;padding:0;display:flex}.esri-widget__header-button{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);border:none;flex:0 0 48px;justify-content:center;align-self:stretch;align-items:center;width:48px;padding:0;display:flex}.esri-widget__footer{background-color:var(--calcite-color-foreground-1);justify-content:center;align-items:center;width:100%;min-height:48px;display:flex}.esri-widget__footer-pagination{color:var(--calcite-color-text-2);justify-content:space-between;align-items:center;display:flex}.esri-widget__footer-pagination-previous-button,.esri-widget__footer-pagination-next-button{cursor:pointer;background-color:var(--calcite-color-foreground-1);border:0;margin:0 7px;padding:12px 15px;transition:background-color .125s ease-in-out}.esri-widget__footer-pagination-previous-button:hover,.esri-widget__footer-pagination-previous-button:focus,.esri-widget__footer-pagination-next-button:hover,.esri-widget__footer-pagination-next-button:focus{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1)}.esri-menu{visibility:hidden;z-index:1;background-clip:padding;background-color:var(--calcite-color-foreground-1);background-clip:padding-box;width:100%;max-height:0;margin:2px 0 0;padding:0;font-size:var(--calcite-font-size);line-height:var(--calcite-spacing-xl);position:absolute;top:100%;left:0;overflow:hidden;box-shadow:0 1px 2px #0000004d}.esri-menu .esri-menu__header{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-inverse);padding:6px 12px}.esri-menu__list{margin:0;padding:0;list-style:none}.esri-menu__list-item{cursor:pointer;border-top:1px solid #adadad4d;border-left:3px solid #0000;padding:.8em 1em}.esri-menu__list-item [class^=esri-icon-],.esri-menu__list-item [class*=" esri-icon-"]{padding-right:2.8px}.esri-menu__list-item:first-child{border-top:none}.esri-menu__list-item--focus,.esri-menu__list-item:hover,.esri-menu__list-item:focus{background-color:var(--calcite-color-foreground-1)}.esri-menu__list-item:active{background-color:var(--calcite-color-foreground-current)}.esri-menu__list-item--active,.esri-menu__list-item--active:hover,.esri-menu__list-item--active:focus{background-color:var(--calcite-color-foreground-1);border-left-color:var(--calcite-color-brand)}.esri-widget__table{border-collapse:collapse;color:var(--calcite-color-text-1);border:none;width:100%;line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget__table tr:nth-child(odd){background-color:var(--calcite-color-transparent)}.esri-widget__table tr:nth-child(2n){background-color:var(--calcite-color-transparent-press)}.esri-widget__table tr a{color:var(--calcite-color-text-2)}.esri-widget__table tr a:hover,.esri-widget__table tr a:focus{color:var(--calcite-color-text-1)}.esri-widget__table tr td,.esri-widget__table tr th{vertical-align:top;word-break:break-word;padding:.5em .7em;font-size:var(--calcite-font-size-sm);font-weight:var(--calcite-font-weight-regular)}.esri-widget__table tr th{text-align:left;border-right:3px solid #0000000d;width:50%}.esri-widget__table tr td{width:50%}.esri-input{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1);border:1px solid #959595;font-size:var(--calcite-font-size)}.esri-input::-ms-clear{display:none}.esri-input::placeholder{opacity:1;color:var(--calcite-color-text-2)}.esri-input:placeholder-shown{text-overflow:ellipsis}.esri-input[type=text],.esri-input[type=password],.esri-input[type=number]{height:32px;padding:0 .5em}calcite-combobox.esri-input{border:none}.esri-widget__content--empty{text-align:center;color:var(--calcite-color-border-input);flex-flow:column wrap;align-items:center;padding:18px 22px;display:flex}.esri-widget__content--empty h1.esri-widget__heading,.esri-widget__content--empty h2.esri-widget__heading,.esri-widget__content--empty h3.esri-widget__heading,.esri-widget__content--empty h4.esri-widget__heading,.esri-widget__content--empty h5.esri-widget__heading{font-weight:var(--calcite-font-weight-regular)}.esri-widget__content-illustration--empty{width:128px;padding:1rem 0}.esri-widget__content-icon--empty{width:32px;padding:.5rem 0}.esri-select{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background:var(--calcite-color-foreground-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -8 32 32' width='32' height='32'%3E%3Cpath d='M8 11.207l-4-4V5.793l4 4 4-4v1.414z' fill='%23adadad' fillrule='nonzero'/%3E%3C/svg%3E") 100% no-repeat;border:1px solid #959595;border-radius:0;width:100%;height:32px;margin:0;padding:0 .5em;font-family:inherit;font-size:.85em;display:block}.esri-select[disabled]{cursor:auto}.esri-select::-ms-expand{display:none}.esri-disabled a,.esri-disabled [role=menu],.esri-disabled [role=checkbox],.esri-disabled [class^=esri-icon-],.esri-disabled [class*=" esri-icon-"]{color:var(--calcite-color-text-3)}.keynav-mode .esri-widget:focus,.keynav-mode .esri-widget :focus{z-index:1;outline-offset:2px;outline:2px solid #adadad}.esri-widget__loader-animation{border:.15em solid #adadad4d;border-top-color:var(--calcite-color-border-input);border-radius:100%;width:1em;height:1em;font-size:var(--calcite-font-size-md);animation:1.25s linear infinite esri-rotate;display:block;transform:translateZ(0)}:dir(rtl) .esri-widget__table th{text-align:right;border-left:3px solid #0000000d;border-right:none}:dir(rtl) .esri-select{background-position:0}:dir(rtl) .esri-menu__list-item{border-left:none;border-right:3px solid #0000}:dir(rtl) .esri-menu__list-item [class^=esri-icon-],:dir(rtl) .esri-menu__list-item [class*=" esri-icon-"]{padding-left:2px;padding-right:0}:dir(rtl) .esri-menu__list-item--active{border-right-color:var(--calcite-color-brand)}.esri-icon-font-fallback-text{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.esri-rotating{animation:1.25s linear infinite esri-rotate;transform:translateZ(0)}.esri-clearfix:before,.esri-clearfix:after{content:" ";display:table}.esri-clearfix:after{clear:both}.esri-interactive{cursor:pointer}.esri-hidden{display:none!important}.esri-invisible{visibility:hidden!important}.esri-offscreen{position:absolute;top:-999em;left:-999em}.esri-match-height{flex-direction:column;flex:auto;display:flex;overflow:hidden}:host{display:flex;width:var(--arcgis-internal-panel-width, 300px)}:host(:focus-within){z-index:1;outline-offset:var(--calcite-spacing-base);outline:var(--calcite-spacing-base) solid var(--calcite-color-brand)}.root{position:relative;overflow-y:auto;container-type:inline-size;width:100%;min-height:32px;transition:max-height .25s ease-in-out}.root .loader:before,.root .loader:after{opacity:1;content:"";height:var(--calcite-spacing-px);transition:opacity .5s ease-in-out;position:absolute;top:0}.root .loader:before{z-index:0;background-color:var(--calcite-color-foreground-1);width:100%}.root .loader:after{z-index:0;background-color:var(--calcite-color-foreground-3);width:20%;animation:1.5s linear infinite looping-progresss-bar-ani}.esri-disabled arcgis-basemap-gallery-item{opacity:var(--calcite-opacity-light);pointer-events:none;animation:none}.empty-message{padding:12px 15px;animation:.5s ease-in-out esri-fade-in}.loader{width:100%;height:var(--calcite-spacing-base);animation:.5s ease-in-out esri-fade-in;position:absolute;top:0;left:0;right:0}.item-container{flex-flow:column;gap:3px;margin:0;padding-block:3px;padding-inline:3px;list-style:none;transition:opacity .25s ease-in-out;display:flex;position:relative}calcite-popover>.root{width:280px;max-height:80vh}.ui-corner calcite-panel>.root.widget.widget--panel{width:unset}.view-width-greater-than-large calcite-popover>.root,.view-width-greater-than-large .ui-corner>.root{width:450px}@container (width<=200px) or (width>=350px){.root .item-container{grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:var(--calcite-spacing-md) var(--calcite-spacing-lg);padding-block:var(--calcite-spacing-md);padding-inline:var(--calcite-spacing-lg);display:grid}}`,I=y(E);function j(a){return a.type==="2d"&&"view2dType"in a&&a.view2dType==="linkchart"&&"inGeographicLayout"in a&&a.inGeographicLayout===!1}var c={small:200,default:280,wide:435},g=class extends f{constructor(){super(...arguments),this.messages=x({}),this.viewModel=I(this),this._direction=_(),this._width=0,this.view=this.viewModel.view,this.activeBasemap=this.viewModel.activeBasemap,this.autoDestroyDisabled=!1,this.disabled=!1,this.headingLevel=2,this.icon="basemap",this.label="",this.source=this.viewModel.source,this.arcgisPropertyChange=b()("activeBasemap","state"),this.arcgisReady=h()}static{this.properties={_width:16,view:0,activeBasemap:1,autoDestroyDisabled:5,disabled:7,headingLevel:9,icon:1,label:1,messageOverrides:0,referenceElement:1,source:0,state:32}}static{this.styles=C}get state(){let{view:e,source:i,loading:t,projectionEngineLoading:r}=this.viewModel;return!e?.ready||!i?"disabled":j(e)?"unsupported":t||r?"loading":"ready"}async destroy(){await this.manager.destroy()}loaded(){this.manager.onLifecycle(()=>[D(()=>this.state,(e,i)=>{this.requestUpdate("state",i)},{initial:!0}),L(()=>this.source,()=>{this.viewModel.loadSource()},{sync:!0,initial:!0}),(()=>{let e=new ResizeObserver(t=>{for(let r of t)this._width=r.contentRect.width}),i=this.el;return i&&e.observe(i),{remove(){e?.disconnect()}}})()])}_getRoundRobinIndex(e,i){return(e+i)%i}_handleKeyDown(e){let{key:i}=e;if(!z(i))return;e.preventDefault();let{items:t,activeBasemapIndex:r}=this.viewModel,s=M(i,this._direction)?this._getRoundRobinIndex(Math.max(r-1,-1),t.length):this._getRoundRobinIndex(r+1,t.length),l=t.at(s);l?.state==="ready"&&(this.viewModel.activeBasemap=l.basemap)}render(){let e=this.source.state==="loading",i=this.disabled||this.state==="disabled",t=this.viewModel.items,r={"source-loading":e,[n.disabled]:i},s=this._width;r["layout-grid"]=s>=c.wide||s<=c.small,r["narrow-items"]=s<c.default;let l=e?o`<div class="loader"></div>`:null,$=e?null:t.length>0?o`<div aria-disabled=${this.disabled??p} aria-label=${this.label??p} class="item-container" @keydown=${this._handleKeyDown} role=radiogroup>${t.map((B,R)=>o`<arcgis-basemap-gallery-item .disabled=${i} .item=${B} .itemIndex=${R} .messages=${this.messages} .viewModel=${this.viewModel}></arcgis-basemap-gallery-item>`)}</div>`:o`<div class=${d(n.empty)}>${k({level:this.headingLevel,children:this.messages.noBasemaps})}</div>`;return o`<div class=${d(v("root",n.widget,n.panel,r))} style=${u({"--esri-basemap-gallery-small":`${c.small}px`})}>${[l,$]}</div>`}};w("arcgis-basemap-gallery",g);return g},"core/reactiveUtils","basemapGallery/BasemapGalleryModel",a,c,e,g)
2
+ import{a as z,d as M}from"./7N4V2IN6.js";import{a as k}from"./DZH4KU2P.js";import g from"./X4FA56YR.js";import{a as x}from"./7EMK74ZF.js";import{a as n}from"./JD74LG7K.js";import e from"./76ZJGD75.js";import c from"./PPURK2BH.js";import{f as _,h as b}from"./6N7PM73F.js";import"./7IHIG427.js";import a from"./2IYRSXZS.js";import"./QUZTFUWM.js";import{e as v}from"./P2GMODLP.js";import{P as f,R as d,S as u,U as p,X as w,a as m,b as o,x as h}from"./33CM77ZT.js";import"./H6RQVSYM.js";export default $arcgis.t(([{watch:D,when:L},E,,,,y])=>{var C=m`@keyframes esri-basemap-slide{0%{opacity:0;margin-top:0;margin-left:0}75%{opacity:0;margin-top:0;margin-left:0}to{opacity:1;margin-top:5px;margin-left:5px}}@keyframes esri-docking-animation{0%{opacity:0}25%{opacity:0}to{opacity:1}}@keyframes popup-intro-animation-down{0%{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translate(0)}}@keyframes popup-intro-animation-up{0%{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translate(0)}}@supports (-ms-ime-align: auto){.esri-slider__anchor:focus{outline:1px dotted #000}}@keyframes esri-spinner--start-animation{0%{opacity:0;transform:scale(0)}to{opacity:1;transform:scale(1)}}@keyframes esri-spinner--finish-animation{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(0)}}@keyframes esri-spinner--rotate-animation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@media(prefers-reduced-motion){.esri-utility-network-trace__reset-prompt{animation:none!important}}@media(prefers-reduced-motion){.esri-popup--aligned-top-center,.esri-popup--aligned-top-left,.esri-popup--aligned-top-right,.esri-popup--aligned-bottom-center,.esri-popup--aligned-bottom-left,.esri-popup--aligned-bottom-right,.esri-popup--is-docked{animation:none!important}}@media(prefers-reduced-motion:reduce){.esri-fov-overlay{animation:none!important}}@keyframes esri-fade-in-down{0%{opacity:0;transform:translateY(-5px)}25%{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translate(0)}}@keyframes esri-fade-in-up{0%{opacity:0;transform:translateY(5px)}25%{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translate(0)}}@keyframes esri-fade-in{0%{opacity:0}25%{opacity:0}to{opacity:1}}@keyframes esri-fade-in-scale{0%{opacity:0;transform:scale(.95)}to{opacity:1;transform:scale(1)}}@keyframes looping-progresss-bar-ani{0%{width:0;left:0}20%{width:20%;left:0}80%{width:20%;left:80%}to{width:0;left:100%}}@keyframes esri-rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes panel-advance{0%{opacity:0;transform:translate(50px) scale(.99)}to{opacity:1;transform:translate(0) scale(1)}}@keyframes panel-retreat{0%{opacity:0;transform:translate(-50px) scale(.99)}to{opacity:1;transform:translate(0) scale(1)}}@keyframes panel-advance--rtl{0%{opacity:0;transform:translate(-50px) scale(.99)}to{opacity:1;transform:translate(0) scale(1)}}@keyframes panel-retreat--rtl{0%{opacity:0;transform:translate(50px) scale(.99)}to{opacity:1;transform:translate(0) scale(1)}}.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}.esri-widget{box-sizing:border-box;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget *,.esri-widget :before,.esri-widget :after{box-sizing:inherit}.esri-widget.esri-widget--disabled>*{opacity:.4;pointer-events:none}.esri-widget.esri-widget--compact{--esri-widget-padding-y: 0;--esri-widget-padding-x: 0}.esri-widget__anchor{color:var(--calcite-color-text-2)}.esri-widget__anchor:hover{color:var(--calcite-color-text-3)}.esri-widget__anchor:hover,.esri-widget__anchor:focus{text-decoration:underline}.esri-widget__anchor--disabled{opacity:.4;pointer-events:none}.esri-widget__header{background-color:var(--calcite-color-foreground-1);flex:1 0 100%;justify-content:space-between;align-items:center;width:100%;min-height:48px;padding:12px 0 12px 15px;display:flex}.esri-widget__heading{word-break:break-word}.esri-widget__header .esri-widget__heading{width:calc(100% - 48px);text-align:initial;color:var(--calcite-color-text-1);align-items:center;margin:0;padding:0;display:flex}.esri-widget__header-button{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);border:none;flex:0 0 48px;justify-content:center;align-self:stretch;align-items:center;width:48px;padding:0;display:flex}.esri-widget__footer{background-color:var(--calcite-color-foreground-1);justify-content:center;align-items:center;width:100%;min-height:48px;display:flex}.esri-widget__footer-pagination{color:var(--calcite-color-text-2);justify-content:space-between;align-items:center;display:flex}.esri-widget__footer-pagination-previous-button,.esri-widget__footer-pagination-next-button{cursor:pointer;background-color:var(--calcite-color-foreground-1);border:0;margin:0 7px;padding:12px 15px;transition:background-color .125s ease-in-out}.esri-widget__footer-pagination-previous-button:hover,.esri-widget__footer-pagination-previous-button:focus,.esri-widget__footer-pagination-next-button:hover,.esri-widget__footer-pagination-next-button:focus{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1)}.esri-menu{visibility:hidden;z-index:1;background-clip:padding;background-color:var(--calcite-color-foreground-1);background-clip:padding-box;width:100%;max-height:0;margin:2px 0 0;padding:0;font-size:var(--calcite-font-size);line-height:var(--calcite-spacing-xl);position:absolute;top:100%;left:0;overflow:hidden;box-shadow:0 1px 2px #0000004d}.esri-menu .esri-menu__header{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-inverse);padding:6px 12px}.esri-menu__list{margin:0;padding:0;list-style:none}.esri-menu__list-item{cursor:pointer;border-top:1px solid #adadad4d;border-left:3px solid #0000;padding:.8em 1em}.esri-menu__list-item [class^=esri-icon-],.esri-menu__list-item [class*=" esri-icon-"]{padding-right:2.8px}.esri-menu__list-item:first-child{border-top:none}.esri-menu__list-item--focus,.esri-menu__list-item:hover,.esri-menu__list-item:focus{background-color:var(--calcite-color-foreground-1)}.esri-menu__list-item:active{background-color:var(--calcite-color-foreground-current)}.esri-menu__list-item--active,.esri-menu__list-item--active:hover,.esri-menu__list-item--active:focus{background-color:var(--calcite-color-foreground-1);border-left-color:var(--calcite-color-brand)}.esri-widget__table{border-collapse:collapse;color:var(--calcite-color-text-1);border:none;width:100%;line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget__table tr:nth-child(odd){background-color:var(--calcite-color-transparent)}.esri-widget__table tr:nth-child(2n){background-color:var(--calcite-color-transparent-press)}.esri-widget__table tr a{color:var(--calcite-color-text-2)}.esri-widget__table tr a:hover,.esri-widget__table tr a:focus{color:var(--calcite-color-text-1)}.esri-widget__table tr td,.esri-widget__table tr th{vertical-align:top;word-break:break-word;padding:.5em .7em;font-size:var(--calcite-font-size-sm);font-weight:var(--calcite-font-weight-regular)}.esri-widget__table tr th{text-align:left;border-right:3px solid #0000000d;width:50%}.esri-widget__table tr td{width:50%}.esri-input{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1);border:1px solid #959595;font-size:var(--calcite-font-size)}.esri-input::-ms-clear{display:none}.esri-input::placeholder{opacity:1;color:var(--calcite-color-text-2)}.esri-input:placeholder-shown{text-overflow:ellipsis}.esri-input[type=text],.esri-input[type=password],.esri-input[type=number]{height:32px;padding:0 .5em}calcite-combobox.esri-input{border:none}.esri-widget__content--empty{text-align:center;color:var(--calcite-color-border-input);flex-flow:column wrap;align-items:center;padding:18px 22px;display:flex}.esri-widget__content--empty h1.esri-widget__heading,.esri-widget__content--empty h2.esri-widget__heading,.esri-widget__content--empty h3.esri-widget__heading,.esri-widget__content--empty h4.esri-widget__heading,.esri-widget__content--empty h5.esri-widget__heading{font-weight:var(--calcite-font-weight-regular)}.esri-widget__content-illustration--empty{width:128px;padding:1rem 0}.esri-widget__content-icon--empty{width:32px;padding:.5rem 0}.esri-select{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background:var(--calcite-color-foreground-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -8 32 32' width='32' height='32'%3E%3Cpath d='M8 11.207l-4-4V5.793l4 4 4-4v1.414z' fill='%23adadad' fillrule='nonzero'/%3E%3C/svg%3E") 100% no-repeat;border:1px solid #959595;border-radius:0;width:100%;height:32px;margin:0;padding:0 .5em;font-family:inherit;font-size:.85em;display:block}.esri-select[disabled]{cursor:auto}.esri-select::-ms-expand{display:none}.esri-disabled a,.esri-disabled [role=menu],.esri-disabled [role=checkbox],.esri-disabled [class^=esri-icon-],.esri-disabled [class*=" esri-icon-"]{color:var(--calcite-color-text-3)}.keynav-mode .esri-widget:focus,.keynav-mode .esri-widget :focus{z-index:1;outline-offset:2px;outline:2px solid #adadad}.esri-widget__loader-animation{border:.15em solid #adadad4d;border-top-color:var(--calcite-color-border-input);border-radius:100%;width:1em;height:1em;font-size:var(--calcite-font-size-md);animation:1.25s linear infinite esri-rotate;display:block;transform:translateZ(0)}:dir(rtl) .esri-widget__table th{text-align:right;border-left:3px solid #0000000d;border-right:none}:dir(rtl) .esri-select{background-position:0}:dir(rtl) .esri-menu__list-item{border-left:none;border-right:3px solid #0000}:dir(rtl) .esri-menu__list-item [class^=esri-icon-],:dir(rtl) .esri-menu__list-item [class*=" esri-icon-"]{padding-left:2px;padding-right:0}:dir(rtl) .esri-menu__list-item--active{border-right-color:var(--calcite-color-brand)}.esri-icon-font-fallback-text{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.esri-rotating{animation:1.25s linear infinite esri-rotate;transform:translateZ(0)}.esri-clearfix:before,.esri-clearfix:after{content:" ";display:table}.esri-clearfix:after{clear:both}.esri-interactive{cursor:pointer}.esri-hidden{display:none!important}.esri-invisible{visibility:hidden!important}.esri-offscreen{position:absolute;top:-999em;left:-999em}.esri-match-height{flex-direction:column;flex:auto;display:flex;overflow:hidden}:host{display:flex;width:var(--arcgis-internal-panel-width, 300px)}:host(:focus-within){z-index:1;outline-offset:var(--calcite-spacing-base);outline:var(--calcite-spacing-base) solid var(--calcite-color-brand)}.root{position:relative;overflow-y:auto;container-type:inline-size;width:100%;min-height:32px;transition:max-height .25s ease-in-out}.root .loader:before,.root .loader:after{opacity:1;content:"";height:var(--calcite-spacing-px);transition:opacity .5s ease-in-out;position:absolute;top:0}.root .loader:before{z-index:0;background-color:var(--calcite-color-foreground-1);width:100%}.root .loader:after{z-index:0;background-color:var(--calcite-color-foreground-3);width:20%;animation:1.5s linear infinite looping-progresss-bar-ani}.esri-disabled arcgis-basemap-gallery-item{opacity:var(--calcite-opacity-light);pointer-events:none;animation:none}.empty-message{padding:12px 15px;animation:.5s ease-in-out esri-fade-in}.loader{width:100%;height:var(--calcite-spacing-base);animation:.5s ease-in-out esri-fade-in;position:absolute;top:0;left:0;right:0}.item-container{flex-flow:column;gap:3px;margin:0;padding-block:3px;padding-inline:3px;list-style:none;transition:opacity .25s ease-in-out;display:flex;position:relative}calcite-popover>.root{width:280px;max-height:80vh}.ui-corner calcite-panel>.root.widget.widget--panel{width:unset}.view-width-greater-than-large calcite-popover>.root,.view-width-greater-than-large .ui-corner>.root{width:450px}@container (width<=200px) or (width>=350px){.root .item-container{grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:var(--calcite-spacing-md) var(--calcite-spacing-lg);padding-block:var(--calcite-spacing-md);padding-inline:var(--calcite-spacing-lg);display:grid}}`,I=y(E);function j(a){return a.type==="2d"&&"view2dType"in a&&a.view2dType==="linkchart"&&"inGeographicLayout"in a&&a.inGeographicLayout===!1}var c={small:200,default:280,wide:435},g=class extends f{constructor(){super(...arguments),this.messages=x({}),this.viewModel=I(this),this._direction=_(),this._width=0,this.view=this.viewModel.view,this.activeBasemap=this.viewModel.activeBasemap,this.autoDestroyDisabled=!1,this.disabled=!1,this.headingLevel=2,this.icon="basemap",this.label="",this.source=this.viewModel.source,this.arcgisPropertyChange=b()("activeBasemap","state"),this.arcgisReady=h()}static{this.properties={_width:16,view:0,activeBasemap:1,autoDestroyDisabled:5,disabled:7,headingLevel:9,icon:1,label:1,messageOverrides:0,referenceElement:1,source:0,state:32}}static{this.styles=C}get state(){let{view:e,source:i,loading:t,projectionEngineLoading:r}=this.viewModel;return!e?.ready||!i?"disabled":j(e)?"unsupported":t||r?"loading":"ready"}async destroy(){await this.manager.destroy()}loaded(){this.manager.onLifecycle(()=>[D(()=>this.state,(e,i)=>{this.requestUpdate("state",i)},{initial:!0}),L(()=>this.source,()=>{this.viewModel.loadSource()},{sync:!0,initial:!0}),(()=>{let e=new ResizeObserver(t=>{for(let r of t)this._width=r.contentRect.width}),i=this.el;return i&&e.observe(i),{remove(){e?.disconnect()}}})()])}_getRoundRobinIndex(e,i){return(e+i)%i}_handleKeyDown(e){let{key:i}=e;if(!z(i))return;e.preventDefault();let{items:t,activeBasemapIndex:r}=this.viewModel,s=M(i,this._direction)?this._getRoundRobinIndex(Math.max(r-1,-1),t.length):this._getRoundRobinIndex(r+1,t.length),l=t.at(s);l?.state==="ready"&&(this.viewModel.activeBasemap=l.basemap)}render(){let e=this.source.state==="loading",i=this.disabled||this.state==="disabled",t=this.viewModel.items,r={"source-loading":e,[n.disabled]:i},s=this._width;r["layout-grid"]=s>=c.wide||s<=c.small,r["narrow-items"]=s<c.default;let l=e?o`<div class="loader"></div>`:null,$=e?null:t.length>0?o`<div aria-disabled=${this.disabled??p} aria-label=${this.label??p} class="item-container" @keydown=${this._handleKeyDown} role=radiogroup>${t.map((B,R)=>o`<arcgis-basemap-gallery-item .disabled=${i} .item=${B} .itemIndex=${R} .messages=${this.messages} .viewModel=${this.viewModel}></arcgis-basemap-gallery-item>`)}</div>`:o`<div class=${d(n.empty)}>${k({level:this.headingLevel,children:this.messages.noBasemaps})}</div>`;return o`<div class=${d(v("root",n.widget,n.panel,r))} style=${u({"--esri-basemap-gallery-small":`${c.small}px`})}>${[l,$]}</div>`}};w("arcgis-basemap-gallery",g);return g},"core/reactiveUtils","basemapGallery/BasemapGalleryModel",a,c,e,g)