@arcgis/map-components 5.0.0-next.119 → 5.0.0-next.120

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 (452) hide show
  1. package/dist/cdn/{XAOSPYRK.js → 22PYN4X4.js} +2 -2
  2. package/dist/cdn/{FNGSKDA7.js → 2A7CGRUX.js} +2 -2
  3. package/dist/cdn/{7XDMM6RA.js → 2D5YWK4P.js} +2 -2
  4. package/dist/cdn/{VDGVJZ5R.js → 2GGCZOWH.js} +2 -2
  5. package/dist/cdn/{UMAGGKC6.js → 2LWFER33.js} +2 -2
  6. package/dist/cdn/{5FRU7JCQ.js → 2MYDOXV4.js} +2 -2
  7. package/dist/cdn/{HLXQEGSH.js → 2VSVDMQG.js} +2 -2
  8. package/dist/cdn/{YXOLU6FZ.js → 35C2OMPB.js} +2 -2
  9. package/dist/cdn/{F4K626LE.js → 3CKHLKRW.js} +2 -2
  10. package/dist/cdn/{URA757X4.js → 3EP6GBWP.js} +2 -2
  11. package/dist/cdn/{KL23YERY.js → 3F6UW4DV.js} +2 -2
  12. package/dist/cdn/{UUMLBRF2.js → 3TNAPW6N.js} +2 -2
  13. package/dist/cdn/{UQO352HN.js → 3X3PHT7Z.js} +2 -2
  14. package/dist/cdn/{45TEP3KS.js → 3ZN4DLRT.js} +2 -2
  15. package/dist/cdn/{22JMPJTG.js → 42TTZZIU.js} +2 -2
  16. package/dist/cdn/{G2RFDAIZ.js → 454JLXGC.js} +2 -2
  17. package/dist/cdn/{L3RML377.js → 4E5HWA2X.js} +1 -1
  18. package/dist/cdn/{3M5QKTDA.js → 4F5OF26K.js} +2 -2
  19. package/dist/cdn/{QRB6W43N.js → 4GOX3X4L.js} +2 -2
  20. package/dist/cdn/{4WULLWL4.js → 4L2YVKUT.js} +2 -2
  21. package/dist/cdn/{CB273SC5.js → 4L6GKWER.js} +2 -2
  22. package/dist/cdn/{JOGCXJQJ.js → 4M2TEBED.js} +2 -2
  23. package/dist/cdn/{XWUDNDCU.js → 4M64FVHN.js} +2 -2
  24. package/dist/cdn/{7H2IBSVF.js → 4MRHYLDF.js} +2 -2
  25. package/dist/cdn/{A5C7DVM3.js → 4STWEMF3.js} +2 -2
  26. package/dist/cdn/{Q6RV4M6D.js → 4W3OYBDD.js} +2 -2
  27. package/dist/cdn/{NK73C3HF.js → 4WKE4WW3.js} +2 -2
  28. package/dist/cdn/{EXZMBQ56.js → 54JOFS2S.js} +2 -2
  29. package/dist/cdn/{NS7G3UTS.js → 575LPXUH.js} +2 -2
  30. package/dist/cdn/5GRE3JDZ.js +4 -0
  31. package/dist/cdn/{OCHNU6GM.js → 5UXMFZOY.js} +2 -2
  32. package/dist/cdn/{INYQ72BC.js → 5V6DXADI.js} +2 -2
  33. package/dist/cdn/{DX7TJKT5.js → 5WPW2246.js} +1 -1
  34. package/dist/cdn/{ILXKVSFA.js → 6BL4NWIC.js} +2 -2
  35. package/dist/cdn/{25FH7Z44.js → 6Q536T66.js} +2 -2
  36. package/dist/cdn/{3NDCNEYT.js → 6ROWUIQU.js} +2 -2
  37. package/dist/cdn/{Z4YSOESR.js → 6SZQKOOS.js} +2 -2
  38. package/dist/cdn/{6WFAXOJT.js → 6Y2I4XYE.js} +2 -2
  39. package/dist/cdn/{HDTT2TC4.js → 7AC7XMF4.js} +2 -2
  40. package/dist/cdn/{P4YZWDLH.js → 7DI7SRGH.js} +2 -2
  41. package/dist/cdn/{FVYO2GRK.js → 7JF6NNSQ.js} +2 -2
  42. package/dist/cdn/{T44YZICL.js → 7Q6347YI.js} +2 -2
  43. package/dist/cdn/{F4CWCLL7.js → 7QBBJFM5.js} +2 -2
  44. package/dist/cdn/{S2APRC2V.js → 7VZ4OT7R.js} +2 -2
  45. package/dist/cdn/{5Q4GVBV3.js → A4SCKDHV.js} +2 -2
  46. package/dist/cdn/{LDCXJZS2.js → A4VXBACE.js} +2 -2
  47. package/dist/cdn/{NXE7ULTZ.js → AD5QHYKR.js} +2 -2
  48. package/dist/cdn/{FIFYDOAA.js → APFE5C32.js} +2 -2
  49. package/dist/cdn/{3OOI3MCC.js → BAYAA33L.js} +2 -2
  50. package/dist/cdn/BE2KZNLK.js +4 -0
  51. package/dist/cdn/{MA4CJCJG.js → BEGFSVO3.js} +2 -2
  52. package/dist/cdn/{RBUUJTUI.js → BGTVBJZ4.js} +2 -2
  53. package/dist/cdn/{2W4FFQ3I.js → BXGWT5ME.js} +2 -2
  54. package/dist/cdn/{XHHA2LQS.js → BXOKITSI.js} +2 -2
  55. package/dist/cdn/{HFKKQZNH.js → C4WACUVD.js} +2 -2
  56. package/dist/cdn/{N222OSPX.js → C6CRYWET.js} +2 -2
  57. package/dist/cdn/{534MMCFU.js → C6G2C5QK.js} +2 -2
  58. package/dist/cdn/{K4MVUXQW.js → CC7BTIBM.js} +1 -1
  59. package/dist/cdn/{5EIU2PGP.js → CCBPIR6R.js} +2 -2
  60. package/dist/cdn/{4ERUNSWK.js → CI43PIT4.js} +2 -2
  61. package/dist/cdn/{F3AHN2WJ.js → CJ6FKJ3K.js} +2 -2
  62. package/dist/cdn/{P7STXLET.js → CLZOTIWZ.js} +1 -1
  63. package/dist/cdn/{HSYPPEIL.js → CON4URVJ.js} +1 -1
  64. package/dist/cdn/{DEFGQKJV.js → CPBQIFEF.js} +2 -2
  65. package/dist/cdn/{GDD2ETIS.js → CSLSG5SH.js} +2 -2
  66. package/dist/cdn/{37AKZIFW.js → CT6CBGPR.js} +2 -2
  67. package/dist/cdn/{QGIMSUZC.js → CW6642P2.js} +2 -2
  68. package/dist/cdn/{E4P76OZ7.js → CWCSV67H.js} +2 -2
  69. package/dist/cdn/{FYGRRPGD.js → CXHVIFNU.js} +1 -1
  70. package/dist/cdn/{B7OU3XS3.js → CXWLQFX2.js} +2 -2
  71. package/dist/cdn/{KS7MPJ77.js → CYPCPQH6.js} +2 -2
  72. package/dist/cdn/{CEFE7YWX.js → D67FZPJ5.js} +1 -1
  73. package/dist/cdn/{ZXXLVNCY.js → DKF57FBR.js} +2 -2
  74. package/dist/cdn/{5WYXPAOU.js → DLAYWAPH.js} +2 -2
  75. package/dist/cdn/{S3PJIEKG.js → DM4C4C3K.js} +2 -2
  76. package/dist/cdn/{N7VXXLWQ.js → DNPZYN3Z.js} +2 -2
  77. package/dist/cdn/{RSGM456F.js → DYP27ZPK.js} +1 -1
  78. package/dist/cdn/{IY3OFY5J.js → E3ZMGWED.js} +2 -2
  79. package/dist/cdn/{YGSU2XPN.js → E4NBSQ35.js} +2 -2
  80. package/dist/cdn/{N73TGMNU.js → ECDE35FH.js} +2 -2
  81. package/dist/cdn/{S6VOVPRE.js → EEERTB7E.js} +2 -2
  82. package/dist/cdn/{OPEHJDD2.js → ELVO64GA.js} +2 -2
  83. package/dist/cdn/{54FUSJ2V.js → EOJ3WXCH.js} +2 -2
  84. package/dist/cdn/{3XPRIFNM.js → EPFXKPGB.js} +2 -2
  85. package/dist/cdn/{E5GW2OX3.js → EPKPARUV.js} +2 -2
  86. package/dist/cdn/{4W5ECW63.js → EU224OLZ.js} +2 -2
  87. package/dist/cdn/{EHZUCTIE.js → EUAFFQHE.js} +2 -2
  88. package/dist/cdn/{RZBHNQND.js → EZCLR33C.js} +2 -2
  89. package/dist/cdn/{5K3SXYTT.js → FNJI5EMP.js} +2 -2
  90. package/dist/cdn/{NSXNDWLI.js → FPZ3B6IS.js} +2 -2
  91. package/dist/cdn/{LF4KLWSW.js → FSVF4HTD.js} +2 -2
  92. package/dist/cdn/{IPFCIPAW.js → FZ2LQMBO.js} +2 -2
  93. package/dist/cdn/{NLKGSZDL.js → GAEYY4FS.js} +2 -2
  94. package/dist/cdn/{T632FN4Z.js → GJUGVGCJ.js} +2 -2
  95. package/dist/cdn/{WG3AQIMV.js → GLA4AFXV.js} +2 -2
  96. package/dist/cdn/{7WIJO4MW.js → GOUPON2E.js} +2 -2
  97. package/dist/cdn/{5TNR2KRG.js → GPUYAXCS.js} +2 -2
  98. package/dist/cdn/{J537SD3A.js → GR7VN6R4.js} +2 -2
  99. package/dist/cdn/{F3IVHPTJ.js → GZBUIGQ6.js} +2 -2
  100. package/dist/cdn/{UPQKEFUC.js → H2D75N62.js} +2 -2
  101. package/dist/cdn/{JPO5IU2M.js → H7FBSTV6.js} +2 -2
  102. package/dist/cdn/{TO7A2Q7Q.js → HA7PVYKA.js} +2 -2
  103. package/dist/cdn/{D6I5OTDJ.js → HF4HERFY.js} +2 -2
  104. package/dist/cdn/{ALWLK3W4.js → HH3PLSAQ.js} +1 -1
  105. package/dist/cdn/{EXDS6CWO.js → HSOC7IDQ.js} +2 -2
  106. package/dist/cdn/{OA443CX5.js → HTEDLR7B.js} +2 -2
  107. package/dist/cdn/{NJJZFP5C.js → HVPZ3F5W.js} +2 -2
  108. package/dist/cdn/{UUCSRWBU.js → HVTCH2JA.js} +2 -2
  109. package/dist/cdn/{EMCX7VCT.js → I3P6WA36.js} +2 -2
  110. package/dist/cdn/{OHXLQYZ3.js → IAOK3KAK.js} +2 -2
  111. package/dist/cdn/{CKNNJYVF.js → ICAYJVSK.js} +2 -2
  112. package/dist/cdn/{TWL63VXE.js → IMNJCPXY.js} +2 -2
  113. package/dist/cdn/{PR3ZGFFJ.js → IVKY7G3S.js} +2 -2
  114. package/dist/cdn/{CTCLJA44.js → IVRTDUMK.js} +2 -2
  115. package/dist/cdn/{X3VS5KIL.js → IW2JMHS5.js} +2 -2
  116. package/dist/cdn/{JHXGNS7S.js → IW4M2GSP.js} +2 -2
  117. package/dist/cdn/{IUOE57JP.js → J4ZT4BBY.js} +2 -2
  118. package/dist/cdn/{QG7IKMRU.js → JPOJ75AX.js} +1 -1
  119. package/dist/cdn/{TQRPBCCN.js → JPVXNQED.js} +2 -2
  120. package/dist/cdn/{34AD576A.js → JS6BLIL4.js} +2 -2
  121. package/dist/cdn/{CPBB2DO2.js → JUHQZR4X.js} +2 -2
  122. package/dist/cdn/{CM4PJ3Z7.js → JW4MDHYB.js} +2 -2
  123. package/dist/cdn/{VJGNELKJ.js → K3S6R3NM.js} +2 -2
  124. package/dist/cdn/{SRLY6G7W.js → K7VNRGXI.js} +1 -1
  125. package/dist/cdn/{R2PUQBI7.js → KF4NPMLP.js} +2 -2
  126. package/dist/cdn/{MG6BJWUS.js → KKDDBMMY.js} +2 -2
  127. package/dist/cdn/{PMBNQBYQ.js → KKUOZCRF.js} +2 -2
  128. package/dist/cdn/{KUG5Y26U.js → KQFI7PGI.js} +2 -2
  129. package/dist/cdn/{HYR7U3RN.js → KV5UH3MT.js} +2 -2
  130. package/dist/cdn/{R6Z3GLV5.js → KWMHPDEY.js} +2 -2
  131. package/dist/cdn/{WKY4OCAR.js → KWMSCSMF.js} +2 -2
  132. package/dist/cdn/{3PATADTR.js → KYDCRFYS.js} +2 -2
  133. package/dist/cdn/{MAKJC47W.js → L577SG76.js} +2 -2
  134. package/dist/cdn/{DO5VJTG4.js → LGGHYSPK.js} +2 -2
  135. package/dist/cdn/{JMJQZTQY.js → LI466AZ5.js} +1 -1
  136. package/dist/cdn/{LD3AE4C2.js → LLPLPDDQ.js} +2 -2
  137. package/dist/cdn/{ZD34XZAB.js → LM2QMUSO.js} +2 -2
  138. package/dist/cdn/{LI4CWVYL.js → LOYJ4UBZ.js} +2 -2
  139. package/dist/cdn/{FWQGIZHR.js → LTOOKYG4.js} +2 -2
  140. package/dist/cdn/{J62EEE4F.js → LU2XF4IR.js} +2 -2
  141. package/dist/cdn/{GEC3G7HH.js → LZKEFJYN.js} +2 -2
  142. package/dist/cdn/{HUP7WJOZ.js → LZNUOHLH.js} +2 -2
  143. package/dist/cdn/{IYL66LGK.js → M2AVGZLO.js} +2 -2
  144. package/dist/cdn/{FUZEK77Q.js → M53R6A4I.js} +2 -2
  145. package/dist/cdn/{JDSFOU4G.js → M73YOPJJ.js} +2 -2
  146. package/dist/cdn/{QY4WTGXJ.js → MADSZ7SV.js} +2 -2
  147. package/dist/cdn/{4XEXAEO3.js → MCQKB3HY.js} +1 -1
  148. package/dist/cdn/{PXGPV4B6.js → ME242U3I.js} +2 -2
  149. package/dist/cdn/{D2VA6BBJ.js → MGC5ACGI.js} +2 -2
  150. package/dist/cdn/{WRL3P5TX.js → MGKX52QY.js} +2 -2
  151. package/dist/cdn/{BBK3TOQG.js → MKHSMENJ.js} +2 -2
  152. package/dist/cdn/{STCHSRLJ.js → MZEXKPXE.js} +2 -2
  153. package/dist/cdn/{LZTQSHO2.js → N3H4BL5A.js} +2 -2
  154. package/dist/cdn/{IQ2JUVOZ.js → N5OH5WH6.js} +2 -2
  155. package/dist/cdn/{FWIV7ZI7.js → NNZTU75H.js} +2 -2
  156. package/dist/cdn/{CIDVDUCQ.js → O4RAQN6H.js} +2 -2
  157. package/dist/cdn/{JLYOT6AZ.js → O5NYFOQL.js} +2 -2
  158. package/dist/cdn/{QJBDUCAA.js → O6AMKW3T.js} +2 -2
  159. package/dist/cdn/{Y4F3LPQH.js → OM4UOTZA.js} +2 -2
  160. package/dist/cdn/{WB2YQA52.js → OMDHNSRY.js} +2 -2
  161. package/dist/cdn/{ZSV2KJHG.js → OZOYWNCQ.js} +2 -2
  162. package/dist/cdn/{LMSTORJO.js → OZY4JSFD.js} +2 -2
  163. package/dist/cdn/{47XGJIJX.js → P5LJ5AKE.js} +2 -2
  164. package/dist/cdn/{RMGU6UB6.js → P6TCOIZV.js} +2 -2
  165. package/dist/cdn/{GWUXB2VC.js → P6YP3D5R.js} +2 -2
  166. package/dist/cdn/{XXDCZCYE.js → PA3DS3C2.js} +2 -2
  167. package/dist/cdn/{TGPANP2V.js → PF5CM77S.js} +2 -2
  168. package/dist/cdn/{GAD2MCBF.js → PYPGWFXB.js} +2 -2
  169. package/dist/cdn/{RAUQKDWQ.js → QJVBDTXQ.js} +2 -2
  170. package/dist/cdn/{524MJHPX.js → QPYN3HGT.js} +1 -1
  171. package/dist/cdn/{W6N2YEBN.js → QXYHAO6A.js} +2 -2
  172. package/dist/cdn/{GPI5USKJ.js → R3EYMYSR.js} +2 -2
  173. package/dist/cdn/{STKGIZJB.js → RBXIU42Q.js} +2 -2
  174. package/dist/cdn/{JRMFYN2H.js → RD2GDA2E.js} +2 -2
  175. package/dist/cdn/{IDA2ZGUB.js → RENDE4SL.js} +2 -2
  176. package/dist/cdn/{DZUPWLZW.js → RFT6X76Q.js} +2 -2
  177. package/dist/cdn/{5FHMBS2P.js → RINKLFNL.js} +2 -2
  178. package/dist/cdn/{YSNASFF6.js → RKQU4AFW.js} +2 -2
  179. package/dist/cdn/{2YT2EKNR.js → RRE3AEHF.js} +1 -1
  180. package/dist/cdn/{YNQQEKVL.js → RRSZENMO.js} +1 -1
  181. package/dist/cdn/{DTG5P36I.js → RVC7BASP.js} +2 -2
  182. package/dist/cdn/{RRGT5LCS.js → RVX2S46U.js} +2 -2
  183. package/dist/cdn/{GS6TRNNC.js → RYKHAMDT.js} +2 -2
  184. package/dist/cdn/{JPAW2Q4Y.js → S5TLMZVD.js} +2 -2
  185. package/dist/cdn/{KPJYMTNA.js → S64WFEXL.js} +2 -2
  186. package/dist/cdn/{F2T4JQ75.js → SAUDUYAE.js} +2 -2
  187. package/dist/cdn/{GJAEHO4I.js → SCIJMMCH.js} +2 -2
  188. package/dist/cdn/{AHEOW2SI.js → SHB3WNZ6.js} +2 -2
  189. package/dist/cdn/{RV7ZZV54.js → SHZ3RPGA.js} +2 -2
  190. package/dist/cdn/{JVHLAI2Q.js → SIPUYG3U.js} +2 -2
  191. package/dist/cdn/{UBUGMDGN.js → SPE25I64.js} +2 -2
  192. package/dist/cdn/{KO3STOFM.js → SPMGMFP6.js} +2 -2
  193. package/dist/cdn/{GM4E4LGV.js → STG7WZ3S.js} +2 -2
  194. package/dist/cdn/{5VN7U3KF.js → SVJ2XDUC.js} +2 -2
  195. package/dist/cdn/{IAOIGVBX.js → SXSXTSWT.js} +2 -2
  196. package/dist/cdn/{RKFKVMQO.js → SXTPGUHG.js} +2 -2
  197. package/dist/cdn/{KTAG2KIB.js → SYCVUROG.js} +2 -2
  198. package/dist/cdn/{AAC5EOGU.js → T6IFSLPH.js} +2 -2
  199. package/dist/cdn/{4VED2CGH.js → TAFASUHN.js} +2 -2
  200. package/dist/cdn/TTDC3OUK.js +4 -0
  201. package/dist/cdn/{2TQUQK3F.js → UEMBWWNU.js} +2 -2
  202. package/dist/cdn/{UZUXTTYR.js → ULM542GE.js} +2 -2
  203. package/dist/cdn/{WCILO4Z4.js → UU4XPIYA.js} +2 -2
  204. package/dist/cdn/{YYXLJEKX.js → UY2JZ357.js} +2 -2
  205. package/dist/cdn/{KPTZCRWN.js → UZEHMS7N.js} +3 -3
  206. package/dist/cdn/{NSB23BIE.js → V45ZEASG.js} +2 -2
  207. package/dist/cdn/{XE3HMBLR.js → V4SWJHBX.js} +2 -2
  208. package/dist/cdn/{WL7NRPMT.js → VFAOYT2T.js} +2 -2
  209. package/dist/cdn/{6F3BTXAH.js → VGFOQ6E7.js} +2 -2
  210. package/dist/cdn/{O2PKT5YV.js → VLJJ2E7O.js} +2 -2
  211. package/dist/cdn/{7APUPOQB.js → VLTB3RDR.js} +2 -2
  212. package/dist/cdn/{QVUR2KWS.js → VPNFBH7X.js} +2 -2
  213. package/dist/cdn/{35KELH27.js → VYCJD2UN.js} +2 -2
  214. package/dist/cdn/{E6ROV2QN.js → VYZWSVHN.js} +2 -2
  215. package/dist/cdn/{QCFTQZQK.js → W3EMTTTY.js} +2 -2
  216. package/dist/cdn/{6TSWIOKL.js → WFAQHJVV.js} +2 -2
  217. package/dist/cdn/{ZYY6TNMP.js → WPOELORO.js} +2 -2
  218. package/dist/cdn/{ANGJQKA6.js → XBOJGUMS.js} +2 -2
  219. package/dist/cdn/{LWA5IPND.js → XDPPXYZW.js} +2 -2
  220. package/dist/cdn/{LSVGFAKY.js → XIISPGZ2.js} +2 -2
  221. package/dist/cdn/{HY2NRCX5.js → XLD5PCKQ.js} +2 -2
  222. package/dist/cdn/{ULWJWER6.js → XOS4NV5S.js} +2 -2
  223. package/dist/cdn/{7HIEILZT.js → XPEJLAD2.js} +2 -2
  224. package/dist/cdn/{HACMDBEA.js → XRFJPDMW.js} +2 -2
  225. package/dist/cdn/{UIS4HMK6.js → XT3YKDBK.js} +2 -2
  226. package/dist/cdn/{5WMABKIW.js → XTLPVNSU.js} +2 -2
  227. package/dist/cdn/{KO3MXTOX.js → Y27LXIBN.js} +2 -2
  228. package/dist/cdn/{C6GH5LEL.js → Y4W5A3QH.js} +2 -2
  229. package/dist/cdn/{RJ66AWL5.js → Y75R7G7Q.js} +2 -2
  230. package/dist/cdn/{5AJEPNLU.js → YD7O2ACB.js} +2 -2
  231. package/dist/cdn/{DWACURFE.js → YJFW22S6.js} +1 -1
  232. package/dist/cdn/{2GFHUERF.js → YLRHAQBR.js} +2 -2
  233. package/dist/cdn/{CMMOTM5C.js → YQJ7POD4.js} +2 -2
  234. package/dist/cdn/{3K3QDMID.js → YRNPGIG5.js} +2 -2
  235. package/dist/cdn/{RFT5RX2O.js → YYLDJHCF.js} +2 -2
  236. package/dist/cdn/{OZXKFCMK.js → ZISJWKFZ.js} +2 -2
  237. package/dist/cdn/{TJBXUIAV.js → ZOW2IFLR.js} +2 -2
  238. package/dist/cdn/{EFHHQR3N.js → ZTBXI62V.js} +2 -2
  239. package/dist/cdn/index.js +2 -2
  240. package/dist/chunks/AnalysisViewModel.js +1 -1
  241. package/dist/chunks/action-utils.js +1 -1
  242. package/dist/chunks/async-utils.js +1 -1
  243. package/dist/chunks/basemap-gallery-resources.js +1 -1
  244. package/dist/chunks/building-layer-utils.js +1 -1
  245. package/dist/chunks/chart-utils.js +1 -1
  246. package/dist/chunks/chartCommon.js +1 -1
  247. package/dist/chunks/component-utils.js +1 -1
  248. package/dist/chunks/component-wrapper.js +1 -1
  249. package/dist/chunks/constants.js +1 -1
  250. package/dist/chunks/createCloseEvent.js +1 -1
  251. package/dist/chunks/esri-main.js +1 -1
  252. package/dist/chunks/feature-utils.js +1 -1
  253. package/dist/chunks/globalCss.js +1 -1
  254. package/dist/chunks/handle.js +1 -1
  255. package/dist/chunks/heading.js +1 -1
  256. package/dist/chunks/layer-list.js +1 -1
  257. package/dist/chunks/legacyIcon.js +1 -1
  258. package/dist/chunks/maybe.js +1 -1
  259. package/dist/chunks/measurementUtils.js +1 -1
  260. package/dist/chunks/runtime.js +1 -1
  261. package/dist/chunks/screenLocation.js +1 -1
  262. package/dist/chunks/slots.js +1 -1
  263. package/dist/chunks/svgUtils.js +1 -1
  264. package/dist/chunks/time-utils.js +1 -1
  265. package/dist/chunks/univariateUtils.js +1 -1
  266. package/dist/chunks/useArcgisViewReadyError.js +1 -1
  267. package/dist/chunks/useHandles.js +1 -1
  268. package/dist/chunks/useT9n.js +1 -1
  269. package/dist/chunks/useView.js +1 -1
  270. package/dist/chunks/useViewModel.js +1 -1
  271. package/dist/chunks/useWidget.js +1 -1
  272. package/dist/chunks/utils.js +1 -1
  273. package/dist/chunks/utils2.js +1 -1
  274. package/dist/chunks/visible-element.js +1 -1
  275. package/dist/components/arcgis-area-measurement-2d/customElement.js +1 -1
  276. package/dist/components/arcgis-area-measurement-3d/customElement.js +1 -1
  277. package/dist/components/arcgis-attachments/customElement.d.ts +2 -2
  278. package/dist/components/arcgis-attachments/customElement.js +1 -1
  279. package/dist/components/arcgis-basemap-gallery/customElement.js +1 -1
  280. package/dist/components/arcgis-basemap-gallery-item/customElement.js +1 -1
  281. package/dist/components/arcgis-basemap-layer-list/customElement.d.ts +1 -1
  282. package/dist/components/arcgis-basemap-layer-list/customElement.js +1 -1
  283. package/dist/components/arcgis-basemap-toggle/customElement.js +1 -1
  284. package/dist/components/arcgis-bookmarks/customElement.d.ts +1 -1
  285. package/dist/components/arcgis-bookmarks/customElement.js +1 -1
  286. package/dist/components/arcgis-building-discipline-tree/building-discipline-view-model.d.ts +1 -1
  287. package/dist/components/arcgis-building-discipline-tree/customElement.js +1 -1
  288. package/dist/components/arcgis-building-explorer/customElement.js +1 -1
  289. package/dist/components/arcgis-building-level-item/customElement.d.ts +2 -2
  290. package/dist/components/arcgis-building-level-item/customElement.js +1 -1
  291. package/dist/components/arcgis-building-level-picker/customElement.d.ts +1 -1
  292. package/dist/components/arcgis-building-level-picker/customElement.js +1 -1
  293. package/dist/components/arcgis-building-phase-picker/customElement.d.ts +1 -1
  294. package/dist/components/arcgis-building-phase-picker/customElement.js +1 -1
  295. package/dist/components/arcgis-catalog-layer-list/customElement.d.ts +5 -5
  296. package/dist/components/arcgis-catalog-layer-list/customElement.js +1 -1
  297. package/dist/components/arcgis-color-select/customElement.js +1 -1
  298. package/dist/components/arcgis-compass/customElement.d.ts +1 -1
  299. package/dist/components/arcgis-compass/customElement.js +1 -1
  300. package/dist/components/arcgis-coordinate-conversion/customElement.d.ts +1 -1
  301. package/dist/components/arcgis-coordinate-conversion/customElement.js +1 -1
  302. package/dist/components/arcgis-daylight/customElement.js +1 -1
  303. package/dist/components/arcgis-direct-line-measurement-3d/customElement.js +1 -1
  304. package/dist/components/arcgis-directional-pad/customElement.js +1 -1
  305. package/dist/components/arcgis-directions/customElement.d.ts +40 -33
  306. package/dist/components/arcgis-directions/customElement.js +1 -1
  307. package/dist/components/arcgis-distance-measurement-2d/customElement.js +1 -1
  308. package/dist/components/arcgis-editor/customElement.d.ts +11 -9
  309. package/dist/components/arcgis-editor/customElement.js +1 -1
  310. package/dist/components/arcgis-elevation-profile/customElement.js +1 -1
  311. package/dist/components/arcgis-elevation-profile-legend/customElement.js +1 -1
  312. package/dist/components/arcgis-elevation-profile-legend-item/customElement.js +1 -1
  313. package/dist/components/arcgis-elevation-profile-settings/customElement.js +1 -1
  314. package/dist/components/arcgis-elevation-profile-statistics/customElement.js +1 -1
  315. package/dist/components/arcgis-expand/customElement.js +1 -1
  316. package/dist/components/arcgis-feature/customElement.js +1 -1
  317. package/dist/components/arcgis-feature-attachments/customElement.js +1 -1
  318. package/dist/components/arcgis-feature-content/customElement.js +1 -1
  319. package/dist/components/arcgis-feature-element-info/customElement.js +1 -1
  320. package/dist/components/arcgis-feature-expression/customElement.js +1 -1
  321. package/dist/components/arcgis-feature-fields/customElement.js +1 -1
  322. package/dist/components/arcgis-feature-form/customElement.d.ts +1 -1
  323. package/dist/components/arcgis-feature-form/customElement.js +1 -1
  324. package/dist/components/arcgis-feature-media/customElement.js +1 -1
  325. package/dist/components/arcgis-feature-relationship/customElement.js +1 -1
  326. package/dist/components/arcgis-feature-table/customElement.d.ts +8 -8
  327. package/dist/components/arcgis-feature-table/customElement.js +1 -1
  328. package/dist/components/arcgis-feature-templates/customElement.d.ts +7 -7
  329. package/dist/components/arcgis-feature-templates/customElement.js +1 -1
  330. package/dist/components/arcgis-feature-utility-network-association-list/customElement.js +1 -1
  331. package/dist/components/arcgis-feature-utility-network-associations/customElement.js +1 -1
  332. package/dist/components/arcgis-features/customElement.js +1 -1
  333. package/dist/components/arcgis-floor-filter/customElement.d.ts +2 -2
  334. package/dist/components/arcgis-floor-filter/customElement.js +1 -1
  335. package/dist/components/arcgis-fullscreen/customElement.js +1 -1
  336. package/dist/components/arcgis-grid-controls/customElement.js +1 -1
  337. package/dist/components/arcgis-histogram-range-slider/customElement.js +1 -1
  338. package/dist/components/arcgis-home/customElement.js +1 -1
  339. package/dist/components/arcgis-labeled-switch/customElement.js +1 -1
  340. package/dist/components/arcgis-layer-list/customElement.d.ts +11 -13
  341. package/dist/components/arcgis-layer-list/customElement.js +1 -1
  342. package/dist/components/arcgis-layer-list-item/customElement.js +1 -1
  343. package/dist/components/arcgis-legend/customElement.js +1 -1
  344. package/dist/components/arcgis-legend-card-color-ramp/customElement.js +1 -1
  345. package/dist/components/arcgis-legend-card-element/customElement.js +1 -1
  346. package/dist/components/arcgis-legend-card-size-ramp/customElement.js +1 -1
  347. package/dist/components/arcgis-legend-card-univariate-above-and-below-ramp/customElement.js +1 -1
  348. package/dist/components/arcgis-legend-card-univariate-color-size-ramp/customElement.js +1 -1
  349. package/dist/components/arcgis-legend-card-view/customElement.js +1 -1
  350. package/dist/components/arcgis-legend-classic-color-ramp/customElement.js +1 -1
  351. package/dist/components/arcgis-legend-classic-element/customElement.js +1 -1
  352. package/dist/components/arcgis-legend-classic-size-ramp/customElement.js +1 -1
  353. package/dist/components/arcgis-legend-classic-univariate-above-and-below-ramp/customElement.js +1 -1
  354. package/dist/components/arcgis-legend-classic-univariate-color-size-ramp/customElement.js +1 -1
  355. package/dist/components/arcgis-legend-classic-view/customElement.js +1 -1
  356. package/dist/components/arcgis-legend-relationship-ramp/customElement.js +1 -1
  357. package/dist/components/arcgis-legend-spike-ramp/customElement.js +1 -1
  358. package/dist/components/arcgis-line-of-sight/customElement.js +1 -1
  359. package/dist/components/arcgis-link-chart/customElement.d.ts +2 -2
  360. package/dist/components/arcgis-link-chart/customElement.js +1 -1
  361. package/dist/components/arcgis-link-chart-layout-switcher/customElement.js +1 -1
  362. package/dist/components/arcgis-locate/customElement.js +1 -1
  363. package/dist/components/arcgis-map/customElement.d.ts +1 -1
  364. package/dist/components/arcgis-map/customElement.js +1 -1
  365. package/dist/components/arcgis-measurement/customElement.d.ts +3 -3
  366. package/dist/components/arcgis-measurement/customElement.js +1 -1
  367. package/dist/components/arcgis-measurement-content/customElement.js +1 -1
  368. package/dist/components/arcgis-navigation-toggle/customElement.js +1 -1
  369. package/dist/components/arcgis-oriented-imagery-viewer/customElement.d.ts +20 -8
  370. package/dist/components/arcgis-oriented-imagery-viewer/customElement.js +1 -1
  371. package/dist/components/arcgis-popup/customElement.js +1 -1
  372. package/dist/components/arcgis-presentation/customElement.js +1 -1
  373. package/dist/components/arcgis-print/customElement.js +1 -1
  374. package/dist/components/arcgis-print-custom-text-elements/customElement.js +1 -1
  375. package/dist/components/arcgis-print-dpi-input/customElement.js +1 -1
  376. package/dist/components/arcgis-print-export-button/customElement.js +1 -1
  377. package/dist/components/arcgis-print-exports-panel/customElement.js +1 -1
  378. package/dist/components/arcgis-print-format-select/customElement.js +1 -1
  379. package/dist/components/arcgis-print-layout-advanced-options/customElement.js +1 -1
  380. package/dist/components/arcgis-print-layout-panel/customElement.js +1 -1
  381. package/dist/components/arcgis-print-main-panel/customElement.js +1 -1
  382. package/dist/components/arcgis-print-map-only-advanced-options/customElement.js +1 -1
  383. package/dist/components/arcgis-print-map-only-panel/customElement.js +1 -1
  384. package/dist/components/arcgis-print-out-spatial-reference-input/customElement.js +1 -1
  385. package/dist/components/arcgis-print-preview-input/customElement.js +1 -1
  386. package/dist/components/arcgis-print-scale-section/customElement.js +1 -1
  387. package/dist/components/arcgis-print-template-select/customElement.js +1 -1
  388. package/dist/components/arcgis-print-template-selector/customElement.js +1 -1
  389. package/dist/components/arcgis-scale-bar/customElement.js +1 -1
  390. package/dist/components/arcgis-scale-range-slider/customElement.d.ts +2 -2
  391. package/dist/components/arcgis-scale-range-slider/customElement.js +1 -1
  392. package/dist/components/arcgis-scene/customElement.js +1 -1
  393. package/dist/components/arcgis-search/customElement.d.ts +1 -1
  394. package/dist/components/arcgis-search/customElement.js +1 -1
  395. package/dist/components/arcgis-search-result-renderer/customElement.js +1 -1
  396. package/dist/components/arcgis-shadow-cast/customElement.js +1 -1
  397. package/dist/components/arcgis-shadow-cast-discrete-config/customElement.js +1 -1
  398. package/dist/components/arcgis-shadow-cast-min-duration-config/customElement.js +1 -1
  399. package/dist/components/arcgis-shadow-cast-total-duration-config/customElement.js +1 -1
  400. package/dist/components/arcgis-sketch/customElement.d.ts +9 -9
  401. package/dist/components/arcgis-sketch/customElement.js +1 -1
  402. package/dist/components/arcgis-slice/customElement.js +1 -1
  403. package/dist/components/arcgis-spinner/customElement.js +1 -1
  404. package/dist/components/arcgis-swipe/customElement.js +1 -1
  405. package/dist/components/arcgis-table-list/customElement.d.ts +1 -1
  406. package/dist/components/arcgis-table-list/customElement.js +1 -1
  407. package/dist/components/arcgis-time-slider/customElement.d.ts +10 -10
  408. package/dist/components/arcgis-time-slider/customElement.js +1 -1
  409. package/dist/components/arcgis-time-zone-label/customElement.js +1 -1
  410. package/dist/components/arcgis-track/customElement.d.ts +18 -21
  411. package/dist/components/arcgis-track/customElement.js +1 -1
  412. package/dist/components/arcgis-unit-select/customElement.js +1 -1
  413. package/dist/components/arcgis-utility-network-association-list/customElement.js +1 -1
  414. package/dist/components/arcgis-utility-network-associations/customElement.js +1 -1
  415. package/dist/components/arcgis-utility-network-subnetwork-info/customElement.js +1 -1
  416. package/dist/components/arcgis-utility-network-trace/customElement.d.ts +2 -2
  417. package/dist/components/arcgis-utility-network-trace/customElement.js +1 -1
  418. package/dist/components/arcgis-utility-network-trace-analysis/customElement.js +1 -1
  419. package/dist/components/arcgis-utility-network-trace-inputs/customElement.js +1 -1
  420. package/dist/components/arcgis-utility-network-trace-location/customElement.js +1 -1
  421. package/dist/components/arcgis-utility-network-trace-location-list/customElement.js +1 -1
  422. package/dist/components/arcgis-utility-network-trace-results/customElement.js +1 -1
  423. package/dist/components/arcgis-utility-network-validate-topology/customElement.js +1 -1
  424. package/dist/components/arcgis-value-picker/customElement.d.ts +6 -6
  425. package/dist/components/arcgis-value-picker/customElement.js +1 -1
  426. package/dist/components/arcgis-version-management/customElement.js +1 -1
  427. package/dist/components/arcgis-version-management-service-item/customElement.js +1 -1
  428. package/dist/components/arcgis-version-management-version-list/customElement.js +1 -1
  429. package/dist/components/arcgis-version-management-version-properties/customElement.js +1 -1
  430. package/dist/components/arcgis-video/customElement.js +1 -1
  431. package/dist/components/arcgis-video-player/customElement.js +1 -1
  432. package/dist/components/arcgis-video-player-action-bar/customElement.js +1 -1
  433. package/dist/components/arcgis-video-player-actions-group/customElement.js +1 -1
  434. package/dist/components/arcgis-video-player-controls-group/customElement.js +1 -1
  435. package/dist/components/arcgis-video-player-metadata/customElement.js +1 -1
  436. package/dist/components/arcgis-video-player-settings/customElement.js +1 -1
  437. package/dist/components/arcgis-video-player-slider/customElement.js +1 -1
  438. package/dist/components/arcgis-volume-measurement/customElement.js +1 -1
  439. package/dist/components/arcgis-weather/customElement.js +1 -1
  440. package/dist/components/arcgis-webgl-error/customElement.js +1 -1
  441. package/dist/components/arcgis-zoom/customElement.d.ts +1 -1
  442. package/dist/components/arcgis-zoom/customElement.js +1 -1
  443. package/dist/docs/api.json +125 -125
  444. package/dist/docs/docs.json +85 -85
  445. package/dist/docs/vscode.html-custom-data.json +40 -40
  446. package/dist/docs/web-types.json +110 -110
  447. package/dist/index.js +1 -1
  448. package/dist/loader.js +1 -1
  449. package/package.json +3 -3
  450. package/dist/cdn/2KRIUZGP.js +0 -4
  451. package/dist/cdn/HSGJQY7N.js +0 -4
  452. package/dist/cdn/Q6O2OCZ3.js +0 -4
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
3
- v5.0.0-next.119 */
4
- import{a as I}from"./2YT2EKNR.js";import d from"./DO5VJTG4.js";import"./DWACURFE.js";import c from"./TGPANP2V.js";import{a as R}from"./IQ2JUVOZ.js";import{a as D}from"./RSGM456F.js";import b from"./F4K626LE.js";import a from"./5K3SXYTT.js";import{g as L}from"./HACMDBEA.js";import"./GAD2MCBF.js";import"./DX7TJKT5.js";import{b as x}from"./HSYPPEIL.js";import{L as C,M as P,N as T,O as w,Q as O,T as N,a as S,b as m,p as v,x as g}from"./K4MVUXQW.js";import"./YNQQEKVL.js";export default $arcgis.t(([{watch:A},{property:n,subclass:H},h,{onLocaleChange:Z},Y,$,ee,K,te,oe,f,z,{geographicToWebMercator:ie},re,{project:ae},se,,,U,{a:k,c:b}])=>{var ne=S`.arcgis-button{--calcite-icon-color: var(--calcite-color-text-3);--calcite-button-background-color: var(--calcite-color-foreground-1);color:var(--calcite-color-text-3);line-height:var(--calcite-font-line-height-relative-tight);display:flex;flex-flow:column;cursor:pointer;background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);:hover{--calcite-icon-color: var(--calcite-color-text-1);--calcite-button-background-color: var(--calcite-color-transparent-hover)}}:host{width:fit-content;height:fit-content}`,F=!1,ce={maximumAge:0,timeout:15e3,enableHighAccuracy:!0};function le(t){let e="geolocation"in navigator;return e||v("warn",t,"Geolocation is not supported by this browser."),e}function pe(t){let e=window.isSecureContext;return e||F||(F=!0,v("warn",t,"Geolocation requires a secure origin.")),e}function de(t){return le(t)&&pe(t)}function he(t){return t??=ce,new Promise((e,o)=>{setTimeout(()=>o(new h("geolocation:timeout","getting the current geolocation position timed out")),t?.timeout??15e3),navigator.geolocation.getCurrentPosition(e,o,t??void 0)})}function ue(t,e){let{position:o,view:r}=t,i=me(o)?.coords;if(!i)throw new h("geometry-service:no-coords","Geolocation has no coordinates");let a=ge(i);return fe(a,r,e)}function me(t){let e=t?.coords||{},o={accuracy:e.accuracy,altitude:e.altitude,altitudeAccuracy:e.altitudeAccuracy,heading:e.heading,latitude:e.latitude,longitude:e.longitude,speed:e.speed,toJSON(){return{}}};return t&&{coords:o,timestamp:t.timestamp,toJSON(){return{}}}}function ge({longitude:t,latitude:e,altitude:o}){return new oe({longitude:t,latitude:e,z:o||void 0,spatialReference:{wkid:4326}})}async function fe(t,e,o){if(!e)return await Promise.resolve(t);let r=e.spatialReference;return r.isWGS84?await Promise.resolve(t):r.isWebMercator?await Promise.resolve(ie(t)):f.isLoaded()?await Promise.resolve(f.execute(t,r)):await ye(o).then(async i=>{if(!i)throw new h("geometry-service:missing-url","Geometry service URL is missing");let a=new se({geometries:[t],outSpatialReference:r});return(await ae(i,a,o))[0]})}async function ye(t){if(z.geometryServiceUrl)return await Promise.resolve(z.geometryServiceUrl);let e=re.getDefault();try{await e.load(t)}catch{}return e.helperServices?.geometry?.url}var ve=Object.defineProperty,we=Object.getOwnPropertyDescriptor,p=(t,e,o,r)=>{for(var i=r>1?void 0:r?we(e,o):e,a=t.length-1,s;a>=0;a--)(s=t[a])&&(i=(r?s(e,o,i):s(i))||i);return r&&i&&ve(e,o,i),i},be=2500;function V(t){let e={type:"CIMVectorMarker",enable:!0,anchorPoint:{x:0,y:0},anchorPointUnits:"Relative",dominantSizeAxis3D:"Y",size:t==="background"?16:14,billboardMode3D:"FaceNearPlane",frame:{xmin:0,ymin:0,xmax:17,ymax:17},markerGraphics:[{type:"CIMMarkerGraphic",geometry:{rings:[[[8.5,0],[7.02,.13],[5.59,.51],[4.25,1.14],[3.04,1.99],[1.99,3.04],[1.14,4.25],[.51,5.59],[.13,7.02],[0,8.5],[.13,9.98],[.51,11.41],[1.14,12.75],[1.99,13.96],[3.04,15.01],[4.25,15.86],[5.59,16.49],[7.02,16.87],[8.5,17],[9.98,16.87],[11.41,16.49],[12.75,15.86],[13.96,15.01],[15.01,13.96],[15.86,12.75],[16.49,11.41],[16.87,9.98],[17,8.5],[16.87,7.02],[16.49,5.59],[15.86,4.25],[15.01,3.04],[13.96,1.99],[12.75,1.14],[11.41,.51],[9.98,.13],[8.5,0]]]},symbol:{type:"CIMPolygonSymbol",symbolLayers:[{type:"CIMSolidStroke",enable:!0,capStyle:"Round",joinStyle:"Round",lineStyle3D:"Strip",miterLimit:10,width:t==="background"?0:2,color:[255,255,255,255]},{type:"CIMSolidFill",enable:!0,color:t==="background"?[0,0,0,66]:[0,122,194,255]}]}}],scaleSymbolsProportionally:!0,respectFrame:!0};return t==="background"&&(e.offsetX=0,e.offsetY=-1),e}var J={type:"CIMPictureMarker",primitiveName:"headingOverride",enable:!0,anchorPoint:{x:0,y:-.5},anchorPointUnits:"Relative",dominantSizeAxis3D:"Y",size:36,billboardMode3D:"FaceNearPlane",invertBackfaceTexture:!0,scaleX:1,textureFilter:"Picture",url:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAkCAYAAACe0YppAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAYaSURBVHgBvVfNb1VFFD/nzP16xRYJKYREEiJoDLLShQkrSNzoHv8I2QgxwY8FJWHhxoVxISEu2AordWNiQjAxEBeEsKAmhCCwkPDRAn1t33v33jnH37n3Fam0pa8kTjOde+/MnN/5+J0z85jW08yYTpxgfzx0bS+fO0R0YHqyeb9w7YEtLTv+9rSdOH7ciNleJJJX/Do1JQ3AltdlT35fiN6gG8kD8akdmzO+6w/zM7wdw725rUY78DBXtmATA6PZntFgm9Kjm6o/HFJpdi5Xhp+16sDBC+H+gUmZfjIXHKC+35U42ZHZfpe30BZS7okNFnhu8wTRk2ek5LEV2q+N8nEj6yuNVRjHddftrt4ahyJbOxF+Uppi/Rf47NlA05Pp9vkyRNkkD8sqUJHwOGfSpYFQFXhTJryQBaZSeAxbFus+U1K0gJm2oy3QKwuZzqeuSK5kpW6BEsE6+nCsAHDXQWuaOljzU8uP/ToxUW4KcwKg8QzOSdFL6Swm0hurAC7N2qIW7ncwNgYKF4la3/w7RnzrUK29KseXWqmTKXGl45Zrd9CLrsSjr96fcw4kS46mTsJznSTrVBR6VQJQdDbpZTWexxgCYCFz30cquD8oYVQgtUAUzfo8wGtqGoNRFmFZ1KKulJMQu3Vpm/I8Pup3ekvES57GaabXo4lsszEA6zrkhcmAAkBNshi59O9wVsokBLZUCQAxllXVBkyCDRQuTlLLiLSEqw3gfUqU0kVdsKymsnzyPLm8fXZxDxVZgvUhg9QyaKDI7AhpSlRVEaA83JM+/V8pGO0PMTHyZwra9FQVk4i1e0D6dPK9v5agkmXAhc0Bw5MjlAQQE0lSDbUmbBX4kGfsiiQWuSZtdle1S4F73cUKJgviyw4mmmqlVSoR/FAK2d1noWQZ8N79MySw0tgNzhN00jRFaPM6y3IyLWBxXuOdvMfhaIy1MQctmvnEMGrMq2Y/ekC3dHF14I84gmZP2s0pgiJFHVwYhIIrMC1zgT4fQgsS0CG48LWtslAsgeKZK5U1c5Slj+nEvvJZqOWubr5ks8iE3bVqCMQCz4p5aiUqpMrOdHz2qLFTxAMSPLwY8WpmntNwrXIMCWvESGH+7n9hVi6ZJ6/sR5gnycFFQgsCQEEB8T9TbsCGy4PrZrEBjGyIt4EApoGRXWKP6Mt3fnvOvhWBjR4gdjtJEDmGQQkBSCS6Teys5qECABTPWOBwcPWgAPIU+E2+Rq3J8lsrQawMHNPbqAXvRqasWcMB/mK42N3twM6/FsbJTZK2Fru15K7niPVIp6RHn++9vRKErAg8ta+MFq4LBxAJKY1EajpxLj5KUzFzOMTni4btxoUzXPzIIOwLnEPxGVqlyWoTdO/WNRUXJhDmAgNAJVd0eABj8FTCvLbpEnxdOycJlFNXVq6MDvzthwOQ654LaMGGVofQWIWtXhM9xaCQp85QIZFMPXcpuUPH3uquJj6htVonvySD+KY6c2AulPAzHdVaZElvPCGBgvkIRUECr1J4qmV6LdGyJvAnu+94HZMla1Eg1AuGVyQWnNCwzqsUXK5+AIsUyPRc1Rbpi93X1xK9tsXtkj9U7INWSWvU0DaZ6OlVAmUDiqgbrwY2Z3ThRVKFXrgi/R0x9GMplxAyER6ynAtZin1DQoLVznLMU+/mywMf3dlDpbyMlbjLQDhLw/Sh24sm5dhTrlHKgS/T0X2zLw/sLeGr5OlEbg2uHwAFw5reKuKsJj8kcIj0zq9H5PqAj+z6E8y+YRIaUhnAEOrcWgv9m3shQ1H7mz5duVJtDLhZqZcNlrEDwXKwCzncdFg+PJeVf1m3uPUupLR7Hq6tHNyLhw1TCmdGbm0BmaUjr63LzaMBH943D9f+yO5uZ7HfcLktqdwqMU0jtPUDN6vDOfzgKFrXtta6q83vfHU4M5KoURbT4W3zsPIqrgQFO8GozV8ocZGOTN4dRdRowN6CnOLmKkk5t7H1i+HPNGJj2kj7buYajoRXh2+36eOt+2nENrrF3ozODEmFC0D4hjbQNgYc+DSYjd9qqGSJXqL/tZ16/DWdfvw9bbCt41hcpYn9RAEX9Q22fwC74ny5v9iplQAAAABJRU5ErkJggg=="},Ae=V("layer"),Ee=V("background"),Me=new te({data:{type:"CIMSymbolReference",symbol:{type:"CIMPointSymbol",symbolLayers:[Ae,Ee,J],angleAlignment:"Map"},primitiveOverrides:[{type:"CIMPrimitiveOverride",primitiveName:"headingOverride",propertyName:"Rotation",valueExpressionInfo:{type:"CIMExpressionInfo",title:"Rotation override",expression:"360 - $feature.heading",returnType:"Default"}},{type:"CIMPrimitiveOverride",primitiveName:"headingOverride",propertyName:"TintColor",valueExpressionInfo:{type:"CIMExpressionInfo",title:"TintColor override",expression:"IIF(IsEmpty($feature.heading), [255, 255, 255, 0], [255, 255, 255, 1])",returnType:"Default"}}]}}),c=class extends ee{constructor(){super(...arguments),this._geolocationUsable=!0,this.goToLocationEnabled=!0,this.graphic=new K({symbol:Me}),this.rotationEnabled=!0}initialize(){de(this)||(this._geolocationUsable=!1),this.addHandles([A(()=>this.view?.type,()=>this._handleViewTypeChange(),{initial:!0})])}destroy(){this._clearGraphic(),this.view=void 0}_clearGraphic(){let{view:t,graphic:e}=this;t&&e&&t.graphics.remove(e)}_addGraphic(){let{view:t,graphic:e}=this;!t?.graphics||!e||t.graphics.includes(e)||t.graphics.push(e)}_handleViewTypeChange(){J.enable=this.view?.type==="2d"}_getScaleWithinConstraints(t,e){if(!e)return t;if(e.type==="2d"){let{effectiveMaxScale:o,effectiveMinScale:r}=e.constraints;return Math.min(r,Math.max(o,t))}return t}_getScale(t){let{scale:e}=this,o=typeof e=="number"?e:be;return this._getScaleWithinConstraints(o,t)}_getHeading(t,e){let o=e?.spatialReference,r=o?.isWebMercator||o?.isGeographic,i=t.coords?.heading;return!r||typeof i!="number"||Number.isNaN(i)||i<0||i>360?null:i}_addHeading(t){let{heading:e,target:o,view:r}=t;if(!(!r||e===null)){if(r.type==="3d"){o.heading=e;return}r.type==="2d"&&(o.rotation=360-e)}}async _animatePoint(t,e,o,r){let{view:i}=this;if(!this.goToLocationEnabled||!i)return;let a={target:t,scale:e};this.rotationEnabled&&this._addHeading({heading:o,target:a,view:i});let s={signal:r.signal};if(k(s),this.goToOverride&&i)return await this.goToOverride(i,{target:a,options:s});await i.goTo(a,s)}async updatePosition(t,e){try{let o=this.view,r=await ue({position:t,view:o},{signal:e.signal}),{graphic:i}=this,{timestamp:a,coords:s}=t,{accuracy:y,altitude:u,altitudeAccuracy:j,latitude:q,longitude:_,speed:W}=s,M=this._getHeading(t,o),B={timestamp:a,accuracy:y,altitude:u,altitudeAccuracy:j,heading:M,latitude:q,longitude:_,speed:W};i&&(i.geometry=r,i.attributes=B);let X=this._getScale(o);await this._animatePoint(r,X,M,e)}catch(o){if(!b(o))throw new h("geolocation-positioning:invalid-point","Cannot position invalid point",{error:o})}return t}};p([n()],c.prototype,"_geolocationUsable",2);p([n()],c.prototype,"geolocationOptions",2);p([n()],c.prototype,"goToLocationEnabled",2);p([n()],c.prototype,"goToOverride",2);p([n({type:K})],c.prototype,"graphic",2);p([n()],c.prototype,"scale",2);p([n()],c.prototype,"rotationEnabled",2);p([n()],c.prototype,"view",2);c=p([H("map-components.geolocation.GeolocationPositioning")],c);var Se=Object.defineProperty,Ce=Object.getOwnPropertyDescriptor,d=(t,e,o,r)=>{for(var i=r>1?void 0:r?Ce(e,o):e,a=t.length-1,s;a>=0;a--)(s=t[a])&&(i=(r?s(e,o,i):s(i))||i);return r&&i&&Se(e,o,i),i},Pe=new $({icon:"trash",id:"remove-selected-feature",title:"{messages.remove}",className:"esri-icon-trash"});function Te(t){return new Y({title:t.currentLocation,fieldInfos:[{fieldName:"timestamp",label:t.timestamp,format:{dateFormat:"short-date-short-time"}},{fieldName:"latitude",label:t.latitude,format:{places:4,digitSeparator:!0}},{fieldName:"longitude",label:t.longitude,format:{places:4,digitSeparator:!0}},{fieldName:"accuracy",label:t.accuracy,format:{places:0,digitSeparator:!0}},{fieldName:"altitude",label:t.altitude,format:{places:0,digitSeparator:!0}},{fieldName:"altitudeAccuracy",label:t.altitudeAccuracy,format:{places:0,digitSeparator:!0}},{fieldName:"heading",label:t.heading,format:{places:0,digitSeparator:!0}},{fieldName:"speed",label:t.speed,format:{places:0,digitSeparator:!0}}],actions:[Pe.clone()],content:[{type:"fields"}]})}var l=class extends c{constructor(t){super(t),this.popupEnabled=!0,this.locate=this.locate.bind(this)}initialize(){this.addHandles([Z(()=>{let{graphic:t,view:e}=this;t&&e?.graphics?.includes(t)&&this._updatePopupTemplate(t)})])}destroy(){this.cancelLocate()}get state(){return this._geolocationUsable?this.view?.ready?this._locateController?"locating":this.error!=null?"error":"ready":"disabled":"feature-unsupported"}async locate(){if(this.cancelLocate(),this.state==="disabled")throw new h("locate:disabled-state","Cannot locate when disabled.");if(this.state==="feature-unsupported")throw new h("locate:feature-unsupported-state","Cannot locate in unsecure domain.");let t=new AbortController;this._locateController=t,this.error=void 0;try{let e=await he(this.geolocationOptions);if(await this.updatePosition(e,t),this._locateController!==t)return null;let{graphic:o}=this;return o&&this._updatePopupTemplate(o),this._addGraphic(),this.currentPosition=e,this._locateController=void 0,e}catch(e){if(b(e))return null;throw t===this._locateController&&(this._locateController=void 0),this.error=e,e}}cancelLocate(){this._clearGraphic(),this._locateController&&this._locateController.abort(),this._locateController=void 0}_updatePopupTemplate(t){if(!this.popupEnabled)return;let e=Te(this.messages),o=t!==this.graphic;this.destroyed||o||(t.popupTemplate=e)}};d([n()],l.prototype,"_locateController",2);d([n()],l.prototype,"currentPosition",2);d([n()],l.prototype,"error",2);d([n()],l.prototype,"messages",2);d([n()],l.prototype,"popupEnabled",2);d([n({readOnly:!0})],l.prototype,"state",1);l=d([H("map-components.locate.LocateViewModel")],l);var G={base:"locate",button:"arcgis-button"},Q="gps-off",Oe=U(l),E=class extends T{constructor(){super(),this.locateButtonElement=C(),this.messages=R(),this.viewModel=Oe(this),this.hideErrorTooltip=()=>{this.isErrorTooltipOpen=!1},this.isErrorTooltipOpen=!1,this.view=this.viewModel.view,this.autoDestroyDisabled=!1,this.geolocationOptions=this.viewModel.geolocationOptions,this.goToLocationDisabled=this.viewModel.goToLocationEnabled,this.goToOverride=this.viewModel.goToOverride,this.graphic=this.viewModel.graphic,this.icon=Q,this.popupDisabled=this.viewModel.popupEnabled,this.scale=this.viewModel.scale,this.state=this.viewModel.state,this.visualScale="m",this.arcgisError=g(),this.arcgisPropertyChange=L()("state"),this.arcgisReady=g(),this.arcgisSuccess=g(),this.listenOn(document,"click",this.hideErrorTooltip)}static{this.properties={isErrorTooltipOpen:16,view:0,autoDestroyDisabled:5,geolocationOptions:0,goToLocationDisabled:7,goToOverride:0,graphic:0,icon:0,label:1,messageOverrides:0,popupDisabled:5,referenceElement:1,scale:9,state:35,visualScale:1}}static{this.styles=ne}async cancelLocate(){this.viewModel.cancelLocate()}async destroy(){await this.manager.destroy()}async locate(){return await this.viewModel.locate()}loaded(){this.viewModel.messages={...this.messages,...this.messageOverrides},this.manager.onLifecycle(()=>[A(()=>this.viewModel.error,e=>{this.isErrorTooltipOpen=!!e,this.arcgisError.emit({error:e})}),A(()=>this.viewModel.currentPosition,e=>{this.arcgisSuccess.emit({position:e})})])}_localizeError(e){if(e instanceof GeolocationPositionError)return e.code===GeolocationPositionError.PERMISSION_DENIED?this.messages?.permissionError:e.code===GeolocationPositionError.TIMEOUT?this.messages?.timeoutError:this.messages?.positionUnavailable;if(e instanceof Error)return e.message}_locate(){let{viewModel:e}=this;e.state==="locating"?e.cancelLocate():e.locate().catch(()=>{})}render(){let{viewModel:e,icon:o}=this,{state:r}=e,i=r==="locating",a=i?this.messages.cancel:this.messages.title,s=r==="feature-unsupported",y=I===void 0?Q:void 0,u=this._localizeError(this.viewModel?.error);return m`<div class=${w(x(G.base,G.button))}>${!s&&m`<calcite-button class=${w(D.widgetButton)} .disabled=${r==="disabled"} .loading=${i} .iconStart=${i?void 0:o??y} kind=neutral .label=${a} @click=${this._locate} .scale=${this.visualScale} title=${a??O} ${P(this.locateButtonElement)}></calcite-button>`||""}${u?m`<calcite-tooltip .open=${this.isErrorTooltipOpen} overlay-positioning=fixed .referenceElement=${this.locateButtonElement.value}>${u}</calcite-tooltip>`:null}</div>`}};N("arcgis-locate",E);return E},"core/reactiveUtils","core/accessorSupport/decorators","core/Error","intl","PopupTemplate","support/actions/ActionButton","core/Accessor","Graphic","symbols/CIMSymbol","geometry/Point","geometry/operators/projectOperator","config","geometry/support/webMercatorUtils","portal/Portal","rest/geometryService","rest/support/ProjectParameters",a,b,c,d)
3
+ v5.0.0-next.120 */
4
+ import{a as I}from"./RRE3AEHF.js";import d from"./LGGHYSPK.js";import"./YJFW22S6.js";import c from"./PF5CM77S.js";import{a as R}from"./N5OH5WH6.js";import{a as D}from"./DYP27ZPK.js";import b from"./3CKHLKRW.js";import a from"./FNJI5EMP.js";import{g as L}from"./XRFJPDMW.js";import"./PYPGWFXB.js";import"./5WPW2246.js";import{b as x}from"./CON4URVJ.js";import{L as C,M as P,N as T,O as w,Q as O,T as N,a as S,b as m,p as v,x as g}from"./CC7BTIBM.js";import"./RRSZENMO.js";export default $arcgis.t(([{watch:A},{property:n,subclass:H},h,{onLocaleChange:Z},Y,$,ee,K,te,oe,f,z,{geographicToWebMercator:ie},re,{project:ae},se,,,U,{a:k,c:b}])=>{var ne=S`.arcgis-button{--calcite-icon-color: var(--calcite-color-text-3);--calcite-button-background-color: var(--calcite-color-foreground-1);color:var(--calcite-color-text-3);line-height:var(--calcite-font-line-height-relative-tight);display:flex;flex-flow:column;cursor:pointer;background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);:hover{--calcite-icon-color: var(--calcite-color-text-1);--calcite-button-background-color: var(--calcite-color-transparent-hover)}}:host{width:fit-content;height:fit-content}`,F=!1,ce={maximumAge:0,timeout:15e3,enableHighAccuracy:!0};function le(t){let e="geolocation"in navigator;return e||v("warn",t,"Geolocation is not supported by this browser."),e}function pe(t){let e=window.isSecureContext;return e||F||(F=!0,v("warn",t,"Geolocation requires a secure origin.")),e}function de(t){return le(t)&&pe(t)}function he(t){return t??=ce,new Promise((e,o)=>{setTimeout(()=>o(new h("geolocation:timeout","getting the current geolocation position timed out")),t?.timeout??15e3),navigator.geolocation.getCurrentPosition(e,o,t??void 0)})}function ue(t,e){let{position:o,view:r}=t,i=me(o)?.coords;if(!i)throw new h("geometry-service:no-coords","Geolocation has no coordinates");let a=ge(i);return fe(a,r,e)}function me(t){let e=t?.coords||{},o={accuracy:e.accuracy,altitude:e.altitude,altitudeAccuracy:e.altitudeAccuracy,heading:e.heading,latitude:e.latitude,longitude:e.longitude,speed:e.speed,toJSON(){return{}}};return t&&{coords:o,timestamp:t.timestamp,toJSON(){return{}}}}function ge({longitude:t,latitude:e,altitude:o}){return new oe({longitude:t,latitude:e,z:o||void 0,spatialReference:{wkid:4326}})}async function fe(t,e,o){if(!e)return await Promise.resolve(t);let r=e.spatialReference;return r.isWGS84?await Promise.resolve(t):r.isWebMercator?await Promise.resolve(ie(t)):f.isLoaded()?await Promise.resolve(f.execute(t,r)):await ye(o).then(async i=>{if(!i)throw new h("geometry-service:missing-url","Geometry service URL is missing");let a=new se({geometries:[t],outSpatialReference:r});return(await ae(i,a,o))[0]})}async function ye(t){if(z.geometryServiceUrl)return await Promise.resolve(z.geometryServiceUrl);let e=re.getDefault();try{await e.load(t)}catch{}return e.helperServices?.geometry?.url}var ve=Object.defineProperty,we=Object.getOwnPropertyDescriptor,p=(t,e,o,r)=>{for(var i=r>1?void 0:r?we(e,o):e,a=t.length-1,s;a>=0;a--)(s=t[a])&&(i=(r?s(e,o,i):s(i))||i);return r&&i&&ve(e,o,i),i},be=2500;function V(t){let e={type:"CIMVectorMarker",enable:!0,anchorPoint:{x:0,y:0},anchorPointUnits:"Relative",dominantSizeAxis3D:"Y",size:t==="background"?16:14,billboardMode3D:"FaceNearPlane",frame:{xmin:0,ymin:0,xmax:17,ymax:17},markerGraphics:[{type:"CIMMarkerGraphic",geometry:{rings:[[[8.5,0],[7.02,.13],[5.59,.51],[4.25,1.14],[3.04,1.99],[1.99,3.04],[1.14,4.25],[.51,5.59],[.13,7.02],[0,8.5],[.13,9.98],[.51,11.41],[1.14,12.75],[1.99,13.96],[3.04,15.01],[4.25,15.86],[5.59,16.49],[7.02,16.87],[8.5,17],[9.98,16.87],[11.41,16.49],[12.75,15.86],[13.96,15.01],[15.01,13.96],[15.86,12.75],[16.49,11.41],[16.87,9.98],[17,8.5],[16.87,7.02],[16.49,5.59],[15.86,4.25],[15.01,3.04],[13.96,1.99],[12.75,1.14],[11.41,.51],[9.98,.13],[8.5,0]]]},symbol:{type:"CIMPolygonSymbol",symbolLayers:[{type:"CIMSolidStroke",enable:!0,capStyle:"Round",joinStyle:"Round",lineStyle3D:"Strip",miterLimit:10,width:t==="background"?0:2,color:[255,255,255,255]},{type:"CIMSolidFill",enable:!0,color:t==="background"?[0,0,0,66]:[0,122,194,255]}]}}],scaleSymbolsProportionally:!0,respectFrame:!0};return t==="background"&&(e.offsetX=0,e.offsetY=-1),e}var J={type:"CIMPictureMarker",primitiveName:"headingOverride",enable:!0,anchorPoint:{x:0,y:-.5},anchorPointUnits:"Relative",dominantSizeAxis3D:"Y",size:36,billboardMode3D:"FaceNearPlane",invertBackfaceTexture:!0,scaleX:1,textureFilter:"Picture",url:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAkCAYAAACe0YppAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAYaSURBVHgBvVfNb1VFFD/nzP16xRYJKYREEiJoDLLShQkrSNzoHv8I2QgxwY8FJWHhxoVxISEu2AordWNiQjAxEBeEsKAmhCCwkPDRAn1t33v33jnH37n3Fam0pa8kTjOde+/MnN/5+J0z85jW08yYTpxgfzx0bS+fO0R0YHqyeb9w7YEtLTv+9rSdOH7ciNleJJJX/Do1JQ3AltdlT35fiN6gG8kD8akdmzO+6w/zM7wdw725rUY78DBXtmATA6PZntFgm9Kjm6o/HFJpdi5Xhp+16sDBC+H+gUmZfjIXHKC+35U42ZHZfpe30BZS7okNFnhu8wTRk2ek5LEV2q+N8nEj6yuNVRjHddftrt4ahyJbOxF+Uppi/Rf47NlA05Pp9vkyRNkkD8sqUJHwOGfSpYFQFXhTJryQBaZSeAxbFus+U1K0gJm2oy3QKwuZzqeuSK5kpW6BEsE6+nCsAHDXQWuaOljzU8uP/ToxUW4KcwKg8QzOSdFL6Swm0hurAC7N2qIW7ncwNgYKF4la3/w7RnzrUK29KseXWqmTKXGl45Zrd9CLrsSjr96fcw4kS46mTsJznSTrVBR6VQJQdDbpZTWexxgCYCFz30cquD8oYVQgtUAUzfo8wGtqGoNRFmFZ1KKulJMQu3Vpm/I8Pup3ekvES57GaabXo4lsszEA6zrkhcmAAkBNshi59O9wVsokBLZUCQAxllXVBkyCDRQuTlLLiLSEqw3gfUqU0kVdsKymsnzyPLm8fXZxDxVZgvUhg9QyaKDI7AhpSlRVEaA83JM+/V8pGO0PMTHyZwra9FQVk4i1e0D6dPK9v5agkmXAhc0Bw5MjlAQQE0lSDbUmbBX4kGfsiiQWuSZtdle1S4F73cUKJgviyw4mmmqlVSoR/FAK2d1noWQZ8N79MySw0tgNzhN00jRFaPM6y3IyLWBxXuOdvMfhaIy1MQctmvnEMGrMq2Y/ekC3dHF14I84gmZP2s0pgiJFHVwYhIIrMC1zgT4fQgsS0CG48LWtslAsgeKZK5U1c5Slj+nEvvJZqOWubr5ks8iE3bVqCMQCz4p5aiUqpMrOdHz2qLFTxAMSPLwY8WpmntNwrXIMCWvESGH+7n9hVi6ZJ6/sR5gnycFFQgsCQEEB8T9TbsCGy4PrZrEBjGyIt4EApoGRXWKP6Mt3fnvOvhWBjR4gdjtJEDmGQQkBSCS6Teys5qECABTPWOBwcPWgAPIU+E2+Rq3J8lsrQawMHNPbqAXvRqasWcMB/mK42N3twM6/FsbJTZK2Fru15K7niPVIp6RHn++9vRKErAg8ta+MFq4LBxAJKY1EajpxLj5KUzFzOMTni4btxoUzXPzIIOwLnEPxGVqlyWoTdO/WNRUXJhDmAgNAJVd0eABj8FTCvLbpEnxdOycJlFNXVq6MDvzthwOQ654LaMGGVofQWIWtXhM9xaCQp85QIZFMPXcpuUPH3uquJj6htVonvySD+KY6c2AulPAzHdVaZElvPCGBgvkIRUECr1J4qmV6LdGyJvAnu+94HZMla1Eg1AuGVyQWnNCwzqsUXK5+AIsUyPRc1Rbpi93X1xK9tsXtkj9U7INWSWvU0DaZ6OlVAmUDiqgbrwY2Z3ThRVKFXrgi/R0x9GMplxAyER6ynAtZin1DQoLVznLMU+/mywMf3dlDpbyMlbjLQDhLw/Sh24sm5dhTrlHKgS/T0X2zLw/sLeGr5OlEbg2uHwAFw5reKuKsJj8kcIj0zq9H5PqAj+z6E8y+YRIaUhnAEOrcWgv9m3shQ1H7mz5duVJtDLhZqZcNlrEDwXKwCzncdFg+PJeVf1m3uPUupLR7Hq6tHNyLhw1TCmdGbm0BmaUjr63LzaMBH943D9f+yO5uZ7HfcLktqdwqMU0jtPUDN6vDOfzgKFrXtta6q83vfHU4M5KoURbT4W3zsPIqrgQFO8GozV8ocZGOTN4dRdRowN6CnOLmKkk5t7H1i+HPNGJj2kj7buYajoRXh2+36eOt+2nENrrF3ozODEmFC0D4hjbQNgYc+DSYjd9qqGSJXqL/tZ16/DWdfvw9bbCt41hcpYn9RAEX9Q22fwC74ny5v9iplQAAAABJRU5ErkJggg=="},Ae=V("layer"),Ee=V("background"),Me=new te({data:{type:"CIMSymbolReference",symbol:{type:"CIMPointSymbol",symbolLayers:[Ae,Ee,J],angleAlignment:"Map"},primitiveOverrides:[{type:"CIMPrimitiveOverride",primitiveName:"headingOverride",propertyName:"Rotation",valueExpressionInfo:{type:"CIMExpressionInfo",title:"Rotation override",expression:"360 - $feature.heading",returnType:"Default"}},{type:"CIMPrimitiveOverride",primitiveName:"headingOverride",propertyName:"TintColor",valueExpressionInfo:{type:"CIMExpressionInfo",title:"TintColor override",expression:"IIF(IsEmpty($feature.heading), [255, 255, 255, 0], [255, 255, 255, 1])",returnType:"Default"}}]}}),c=class extends ee{constructor(){super(...arguments),this._geolocationUsable=!0,this.goToLocationEnabled=!0,this.graphic=new K({symbol:Me}),this.rotationEnabled=!0}initialize(){de(this)||(this._geolocationUsable=!1),this.addHandles([A(()=>this.view?.type,()=>this._handleViewTypeChange(),{initial:!0})])}destroy(){this._clearGraphic(),this.view=void 0}_clearGraphic(){let{view:t,graphic:e}=this;t&&e&&t.graphics.remove(e)}_addGraphic(){let{view:t,graphic:e}=this;!t?.graphics||!e||t.graphics.includes(e)||t.graphics.push(e)}_handleViewTypeChange(){J.enable=this.view?.type==="2d"}_getScaleWithinConstraints(t,e){if(!e)return t;if(e.type==="2d"){let{effectiveMaxScale:o,effectiveMinScale:r}=e.constraints;return Math.min(r,Math.max(o,t))}return t}_getScale(t){let{scale:e}=this,o=typeof e=="number"?e:be;return this._getScaleWithinConstraints(o,t)}_getHeading(t,e){let o=e?.spatialReference,r=o?.isWebMercator||o?.isGeographic,i=t.coords?.heading;return!r||typeof i!="number"||Number.isNaN(i)||i<0||i>360?null:i}_addHeading(t){let{heading:e,target:o,view:r}=t;if(!(!r||e===null)){if(r.type==="3d"){o.heading=e;return}r.type==="2d"&&(o.rotation=360-e)}}async _animatePoint(t,e,o,r){let{view:i}=this;if(!this.goToLocationEnabled||!i)return;let a={target:t,scale:e};this.rotationEnabled&&this._addHeading({heading:o,target:a,view:i});let s={signal:r.signal};if(k(s),this.goToOverride&&i)return await this.goToOverride(i,{target:a,options:s});await i.goTo(a,s)}async updatePosition(t,e){try{let o=this.view,r=await ue({position:t,view:o},{signal:e.signal}),{graphic:i}=this,{timestamp:a,coords:s}=t,{accuracy:y,altitude:u,altitudeAccuracy:j,latitude:q,longitude:_,speed:W}=s,M=this._getHeading(t,o),B={timestamp:a,accuracy:y,altitude:u,altitudeAccuracy:j,heading:M,latitude:q,longitude:_,speed:W};i&&(i.geometry=r,i.attributes=B);let X=this._getScale(o);await this._animatePoint(r,X,M,e)}catch(o){if(!b(o))throw new h("geolocation-positioning:invalid-point","Cannot position invalid point",{error:o})}return t}};p([n()],c.prototype,"_geolocationUsable",2);p([n()],c.prototype,"geolocationOptions",2);p([n()],c.prototype,"goToLocationEnabled",2);p([n()],c.prototype,"goToOverride",2);p([n({type:K})],c.prototype,"graphic",2);p([n()],c.prototype,"scale",2);p([n()],c.prototype,"rotationEnabled",2);p([n()],c.prototype,"view",2);c=p([H("map-components.geolocation.GeolocationPositioning")],c);var Se=Object.defineProperty,Ce=Object.getOwnPropertyDescriptor,d=(t,e,o,r)=>{for(var i=r>1?void 0:r?Ce(e,o):e,a=t.length-1,s;a>=0;a--)(s=t[a])&&(i=(r?s(e,o,i):s(i))||i);return r&&i&&Se(e,o,i),i},Pe=new $({icon:"trash",id:"remove-selected-feature",title:"{messages.remove}",className:"esri-icon-trash"});function Te(t){return new Y({title:t.currentLocation,fieldInfos:[{fieldName:"timestamp",label:t.timestamp,format:{dateFormat:"short-date-short-time"}},{fieldName:"latitude",label:t.latitude,format:{places:4,digitSeparator:!0}},{fieldName:"longitude",label:t.longitude,format:{places:4,digitSeparator:!0}},{fieldName:"accuracy",label:t.accuracy,format:{places:0,digitSeparator:!0}},{fieldName:"altitude",label:t.altitude,format:{places:0,digitSeparator:!0}},{fieldName:"altitudeAccuracy",label:t.altitudeAccuracy,format:{places:0,digitSeparator:!0}},{fieldName:"heading",label:t.heading,format:{places:0,digitSeparator:!0}},{fieldName:"speed",label:t.speed,format:{places:0,digitSeparator:!0}}],actions:[Pe.clone()],content:[{type:"fields"}]})}var l=class extends c{constructor(t){super(t),this.popupEnabled=!0,this.locate=this.locate.bind(this)}initialize(){this.addHandles([Z(()=>{let{graphic:t,view:e}=this;t&&e?.graphics?.includes(t)&&this._updatePopupTemplate(t)})])}destroy(){this.cancelLocate()}get state(){return this._geolocationUsable?this.view?.ready?this._locateController?"locating":this.error!=null?"error":"ready":"disabled":"feature-unsupported"}async locate(){if(this.cancelLocate(),this.state==="disabled")throw new h("locate:disabled-state","Cannot locate when disabled.");if(this.state==="feature-unsupported")throw new h("locate:feature-unsupported-state","Cannot locate in unsecure domain.");let t=new AbortController;this._locateController=t,this.error=void 0;try{let e=await he(this.geolocationOptions);if(await this.updatePosition(e,t),this._locateController!==t)return null;let{graphic:o}=this;return o&&this._updatePopupTemplate(o),this._addGraphic(),this.currentPosition=e,this._locateController=void 0,e}catch(e){if(b(e))return null;throw t===this._locateController&&(this._locateController=void 0),this.error=e,e}}cancelLocate(){this._clearGraphic(),this._locateController&&this._locateController.abort(),this._locateController=void 0}_updatePopupTemplate(t){if(!this.popupEnabled)return;let e=Te(this.messages),o=t!==this.graphic;this.destroyed||o||(t.popupTemplate=e)}};d([n()],l.prototype,"_locateController",2);d([n()],l.prototype,"currentPosition",2);d([n()],l.prototype,"error",2);d([n()],l.prototype,"messages",2);d([n()],l.prototype,"popupEnabled",2);d([n({readOnly:!0})],l.prototype,"state",1);l=d([H("map-components.locate.LocateViewModel")],l);var G={base:"locate",button:"arcgis-button"},Q="gps-off",Oe=U(l),E=class extends T{constructor(){super(),this.locateButtonElement=C(),this.messages=R(),this.viewModel=Oe(this),this.hideErrorTooltip=()=>{this.isErrorTooltipOpen=!1},this.isErrorTooltipOpen=!1,this.view=this.viewModel.view,this.autoDestroyDisabled=!1,this.geolocationOptions=this.viewModel.geolocationOptions,this.goToLocationDisabled=this.viewModel.goToLocationEnabled,this.goToOverride=this.viewModel.goToOverride,this.graphic=this.viewModel.graphic,this.icon=Q,this.popupDisabled=this.viewModel.popupEnabled,this.scale=this.viewModel.scale,this.state=this.viewModel.state,this.visualScale="m",this.arcgisError=g(),this.arcgisPropertyChange=L()("state"),this.arcgisReady=g(),this.arcgisSuccess=g(),this.listenOn(document,"click",this.hideErrorTooltip)}static{this.properties={isErrorTooltipOpen:16,view:0,autoDestroyDisabled:5,geolocationOptions:0,goToLocationDisabled:7,goToOverride:0,graphic:0,icon:0,label:1,messageOverrides:0,popupDisabled:5,referenceElement:1,scale:9,state:35,visualScale:1}}static{this.styles=ne}async cancelLocate(){this.viewModel.cancelLocate()}async destroy(){await this.manager.destroy()}async locate(){return await this.viewModel.locate()}loaded(){this.viewModel.messages={...this.messages,...this.messageOverrides},this.manager.onLifecycle(()=>[A(()=>this.viewModel.error,e=>{this.isErrorTooltipOpen=!!e,this.arcgisError.emit({error:e})}),A(()=>this.viewModel.currentPosition,e=>{this.arcgisSuccess.emit({position:e})})])}_localizeError(e){if(e instanceof GeolocationPositionError)return e.code===GeolocationPositionError.PERMISSION_DENIED?this.messages?.permissionError:e.code===GeolocationPositionError.TIMEOUT?this.messages?.timeoutError:this.messages?.positionUnavailable;if(e instanceof Error)return e.message}_locate(){let{viewModel:e}=this;e.state==="locating"?e.cancelLocate():e.locate().catch(()=>{})}render(){let{viewModel:e,icon:o}=this,{state:r}=e,i=r==="locating",a=i?this.messages.cancel:this.messages.title,s=r==="feature-unsupported",y=I===void 0?Q:void 0,u=this._localizeError(this.viewModel?.error);return m`<div class=${w(x(G.base,G.button))}>${!s&&m`<calcite-button class=${w(D.widgetButton)} .disabled=${r==="disabled"} .loading=${i} .iconStart=${i?void 0:o??y} kind=neutral .label=${a} @click=${this._locate} .scale=${this.visualScale} title=${a??O} ${P(this.locateButtonElement)}></calcite-button>`||""}${u?m`<calcite-tooltip .open=${this.isErrorTooltipOpen} overlay-positioning=fixed .referenceElement=${this.locateButtonElement.value}>${u}</calcite-tooltip>`:null}</div>`}};N("arcgis-locate",E);return E},"core/reactiveUtils","core/accessorSupport/decorators","core/Error","intl","PopupTemplate","support/actions/ActionButton","core/Accessor","Graphic","symbols/CIMSymbol","geometry/Point","geometry/operators/projectOperator","config","geometry/support/webMercatorUtils","portal/Portal","rest/geometryService","rest/support/ProjectParameters",a,b,c,d)
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
3
- v5.0.0-next.119 */
4
- import{a as r}from"./HACMDBEA.js";import{z as c}from"./K4MVUXQW.js";export default $arcgis.t(([{watch:s},e])=>{var a=class extends c{constructor(o){super(o),this.exports=void 0}hostLoaded(){this.component.manager.onLifecycle(()=>s(()=>{let{view:o,trackLocation:t,location:n}=this.component;return t&&o&&n?[t,n,o.size,o.type==="3d"?o.camera:o.viewpoint]:null},()=>void this._updateScreenLocation(),{initial:!0}))}async _updateScreenLocation(){{e.isLoaded()||await e.load();let{location:o,view:t}=this.component,n=t?.spatialReference,i=n&&o?e.execute(o,n):null;this.exports=this.component.trackLocation&&i&&t?.ready?t.toScreen(i):null}}},d=r(a);return d},"core/reactiveUtils","geometry/operators/projectOperator")
3
+ v5.0.0-next.120 */
4
+ import{a as r}from"./XRFJPDMW.js";import{z as c}from"./CC7BTIBM.js";export default $arcgis.t(([{watch:s},e])=>{var a=class extends c{constructor(o){super(o),this.exports=void 0}hostLoaded(){this.component.manager.onLifecycle(()=>s(()=>{let{view:o,trackLocation:t,location:n}=this.component;return t&&o&&n?[t,n,o.size,o.type==="3d"?o.camera:o.viewpoint]:null},()=>void this._updateScreenLocation(),{initial:!0}))}async _updateScreenLocation(){{e.isLoaded()||await e.load();let{location:o,view:t}=this.component,n=t?.spatialReference,i=n&&o?e.execute(o,n):null;this.exports=this.component.trackLocation&&i&&t?.ready?t.toScreen(i):null}}},d=r(a);return d},"core/reactiveUtils","geometry/operators/projectOperator")
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
3
- v5.0.0-next.119 */
4
- import"./YNQQEKVL.js";var r={_decimalSeparator:",",_thousandSeparator:".",_percentPrefix:null,_percentSuffix:"%",_big_number_suffix_3:"k",_big_number_suffix_6:"M",_big_number_suffix_9:"G",_big_number_suffix_12:"T",_big_number_suffix_15:"P",_big_number_suffix_18:"E",_big_number_suffix_21:"Z",_big_number_suffix_24:"Y",_small_number_suffix_3:"m",_small_number_suffix_6:"\u03BC",_small_number_suffix_9:"n",_small_number_suffix_12:"p",_small_number_suffix_15:"f",_small_number_suffix_18:"a",_small_number_suffix_21:"z",_small_number_suffix_24:"y",_byte_suffix_B:"B",_byte_suffix_KB:"KB",_byte_suffix_MB:"MB",_byte_suffix_GB:"GB",_byte_suffix_TB:"TB",_byte_suffix_PB:"PB",_date_millisecond:"mm:ss SSS",_date_millisecond_full:"HH:mm:ss SSS",_date_second:"HH:mm:ss",_date_second_full:"HH:mm:ss",_date_minute:"HH:mm",_date_minute_full:"HH:mm - MMM dd, yyyy",_date_hour:"HH:mm",_date_hour_short:"HH",_date_hour_full:"HH:mm - MMM dd, yyyy",_date_day:"MMM dd",_date_day_full:"MMM dd, yyyy",_date_week:"ww",_date_week_full:"MMM dd, yyyy",_date_month:"MMM",_date_month_full:"MMM, yyyy",_date_year:"yyyy",_duration_millisecond:"SSS",_duration_millisecond_second:"ss.SSS",_duration_millisecond_minute:"mm:ss SSS",_duration_millisecond_hour:"hh:mm:ss SSS",_duration_millisecond_day:"d'd' mm:ss SSS",_duration_millisecond_week:"d'd' mm:ss SSS",_duration_millisecond_month:"M'm' dd'd' mm:ss SSS",_duration_millisecond_year:"y'y' MM'm' dd'd' mm:ss SSS",_duration_second:"ss",_duration_second_minute:"mm:ss",_duration_second_hour:"hh:mm:ss",_duration_second_day:"d'd' hh:mm:ss",_duration_second_week:"d'd' hh:mm:ss",_duration_second_month:"M'm' dd'd' hh:mm:ss",_duration_second_year:"y'y' MM'm' dd'd' hh:mm:ss",_duration_minute:"mm",_duration_minute_hour:"hh:mm",_duration_minute_day:"d'd' hh:mm",_duration_minute_week:"d'd' hh:mm",_duration_minute_month:"M'm' dd'd' hh:mm",_duration_minute_year:"y'y' MM'm' dd'd' hh:mm",_duration_hour:"hh'h'",_duration_hour_day:"d'd' hh'h'",_duration_hour_week:"d'd' hh'h'",_duration_hour_month:"M'm' dd'd' hh'h'",_duration_hour_year:"y'y' MM'm' dd'd' hh'h'",_duration_day:"d'd'",_duration_day_week:"d'd'",_duration_day_month:"M'm' dd'd'",_duration_day_year:"y'y' MM'm' dd'd'",_duration_week:"w'w'",_duration_week_month:"w'w'",_duration_week_year:"w'w'",_duration_month:"M'm'",_duration_month_year:"y'y' MM'm'",_duration_year:"y'y'",_era_ad:"\u03BC.\u03A7.",_era_bc:"\u03C0.\u03A7.",A:"\u03C0\u03BC",P:"\u03BC\u03BC",AM:"\u03C0.\u03BC.",PM:"\u03BC.\u03BC.","A.M.":"\u03C0.\u03BC.","P.M.":"\u03BC.\u03BC.",January:"\u0399\u03B1\u03BD\u03BF\u03C5\u03B1\u03C1\u03AF\u03BF\u03C5",February:"\u03A6\u03B5\u03B2\u03C1\u03BF\u03C5\u03B1\u03C1\u03AF\u03BF\u03C5",March:"\u039C\u03B1\u03C1\u03C4\u03AF\u03BF\u03C5",April:"\u0391\u03C0\u03C1\u03B9\u03BB\u03AF\u03BF\u03C5",May:"\u039C\u03B1\u0390\u03BF\u03C5",June:"\u0399\u03BF\u03C5\u03BD\u03AF\u03BF\u03C5",July:"\u0399\u03BF\u03C5\u03BB\u03AF\u03BF\u03C5",August:"\u0391\u03C5\u03B3\u03BF\u03CD\u03C3\u03C4\u03BF\u03C5",September:"\u03A3\u03B5\u03C0\u03C4\u03B5\u03BC\u03B2\u03C1\u03AF\u03BF\u03C5",October:"\u039F\u03BA\u03C4\u03C9\u03B2\u03C1\u03AF\u03BF\u03C5",November:"\u039D\u03BF\u03B5\u03BC\u03B2\u03C1\u03AF\u03BF\u03C5",December:"\u0394\u03B5\u03BA\u03B5\u03BC\u03B2\u03C1\u03AF\u03BF\u03C5",Jan:"\u0399\u03B1\u03BD",Feb:"\u03A6\u03B5\u03B2",Mar:"\u039C\u03B1\u03C1",Apr:"\u0391\u03C0\u03C1","May(short)":"\u039C\u03B1\u0390",Jun:"\u0399\u03BF\u03C5\u03BD",Jul:"\u0399\u03BF\u03C5\u03BB",Aug:"\u0391\u03C5\u03B3",Sep:"\u03A3\u03B5\u03C0",Oct:"\u039F\u03BA\u03C4",Nov:"\u039D\u03BF\u03B5",Dec:"\u0394\u03B5\u03BA",Sunday:"\u039A\u03C5\u03C1\u03B9\u03B1\u03BA\u03AE",Monday:"\u0394\u03B5\u03C5\u03C4\u03AD\u03C1\u03B1",Tuesday:"\u03A4\u03C1\u03AF\u03C4\u03B7",Wednesday:"\u03A4\u03B5\u03C4\u03AC\u03C1\u03C4\u03B7",Thursday:"\u03A0\u03AD\u03BC\u03C0\u03C4\u03B7",Friday:"\u03A0\u03B1\u03C1\u03B1\u03C3\u03BA\u03B5\u03C5\u03AE",Saturday:"\u03A3\u03AC\u03B2\u03B2\u03B1\u03C4\u03BF",Sun:"\u039A\u03C5\u03C1",Mon:"\u0394\u03B5\u03C5",Tue:"\u03A4\u03C1\u03AF",Wed:"\u03A4\u03B5\u03C4",Thu:"\u03A0\u03AD\u03BC",Fri:"\u03A0\u03B1\u03C1",Sat:"\u03A3\u03AC\u03B2",_dateOrd:function(_){let e="th";if(_<11||_>13)switch(_%10){case 1:e="st";break;case 2:e="nd";break;case 3:e="rd";break}return e},"Zoom Out":"\u0395\u03C3\u03C4\u03AF\u03B1\u03C3\u03B7",Play:"\u0391\u03BD\u03B1\u03C0\u03B1\u03C1\u03B1\u03B3\u03C9\u03B3\u03AE",Stop:"\u03A3\u03C4\u03AC\u03C3\u03B7",Legend:"\u03A5\u03C0\u03CC\u03BC\u03BD\u03B7\u03BC\u03B1","Press ENTER to toggle":"",Loading:"\u03A6\u03CC\u03C1\u03C4\u03C9\u03C3\u03B7",Home:"\u0391\u03C1\u03C7\u03B9\u03BA\u03AE",Chart:"","Serial chart":"","X/Y chart":"","Pie chart":"","Gauge chart":"","Radar chart":"","Sankey diagram":"","Flow diagram":"","Chord diagram":"","TreeMap chart":"","Sliced chart":"",Series:"","Candlestick Series":"","OHLC Series":"","Column Series":"","Line Series":"","Pie Slice Series":"","Funnel Series":"","Pyramid Series":"","X/Y Series":"",Map:"","Press ENTER to zoom in":"","Press ENTER to zoom out":"","Use arrow keys to zoom in and out":"","Use plus and minus keys on your keyboard to zoom in and out":"",Export:"\u0395\u03BA\u03C4\u03CD\u03C0\u03C9\u03C3\u03B7",Image:"Image",Data:"\u0394\u03B5\u03B4\u03BF\u03BC\u03AD\u03BD\u03B1",Print:"\u0395\u03BA\u03C4\u03CD\u03C0\u03C9\u03C3\u03B7","Press ENTER to open":"","Press ENTER to print.":"","Press ENTER to export as %1.":"","(Press ESC to close this message)":"","Image Export Complete":"","Export operation took longer than expected. Something might have gone wrong.":"","Saved from":"",PNG:"",JPG:"",GIF:"",SVG:"",PDF:"",JSON:"",CSV:"",XLSX:"",HTML:"","Use TAB to select grip buttons or left and right arrows to change selection":"","Use left and right arrows to move selection":"","Use left and right arrows to move left selection":"","Use left and right arrows to move right selection":"","Use TAB select grip buttons or up and down arrows to change selection":"","Use up and down arrows to move selection":"","Use up and down arrows to move lower selection":"","Use up and down arrows to move upper selection":"","From %1 to %2":"\u0391\u03C0\u03CC %1 \u03AD\u03C9\u03C2 %2","From %1":"\u0391\u03C0\u03CC %1","To %1":"\u0388\u03C9\u03C2 %1","No parser available for file: %1":"","Error parsing file: %1":"","Unable to load file: %1":"","Invalid date":"",Close:"",Minimize:"",Confirm:""};export{r as default};
3
+ v5.0.0-next.120 */
4
+ import"./RRSZENMO.js";var r={_decimalSeparator:",",_thousandSeparator:".",_percentPrefix:null,_percentSuffix:"%",_big_number_suffix_3:"k",_big_number_suffix_6:"M",_big_number_suffix_9:"G",_big_number_suffix_12:"T",_big_number_suffix_15:"P",_big_number_suffix_18:"E",_big_number_suffix_21:"Z",_big_number_suffix_24:"Y",_small_number_suffix_3:"m",_small_number_suffix_6:"\u03BC",_small_number_suffix_9:"n",_small_number_suffix_12:"p",_small_number_suffix_15:"f",_small_number_suffix_18:"a",_small_number_suffix_21:"z",_small_number_suffix_24:"y",_byte_suffix_B:"B",_byte_suffix_KB:"KB",_byte_suffix_MB:"MB",_byte_suffix_GB:"GB",_byte_suffix_TB:"TB",_byte_suffix_PB:"PB",_date_millisecond:"mm:ss SSS",_date_millisecond_full:"HH:mm:ss SSS",_date_second:"HH:mm:ss",_date_second_full:"HH:mm:ss",_date_minute:"HH:mm",_date_minute_full:"HH:mm - MMM dd, yyyy",_date_hour:"HH:mm",_date_hour_short:"HH",_date_hour_full:"HH:mm - MMM dd, yyyy",_date_day:"MMM dd",_date_day_full:"MMM dd, yyyy",_date_week:"ww",_date_week_full:"MMM dd, yyyy",_date_month:"MMM",_date_month_full:"MMM, yyyy",_date_year:"yyyy",_duration_millisecond:"SSS",_duration_millisecond_second:"ss.SSS",_duration_millisecond_minute:"mm:ss SSS",_duration_millisecond_hour:"hh:mm:ss SSS",_duration_millisecond_day:"d'd' mm:ss SSS",_duration_millisecond_week:"d'd' mm:ss SSS",_duration_millisecond_month:"M'm' dd'd' mm:ss SSS",_duration_millisecond_year:"y'y' MM'm' dd'd' mm:ss SSS",_duration_second:"ss",_duration_second_minute:"mm:ss",_duration_second_hour:"hh:mm:ss",_duration_second_day:"d'd' hh:mm:ss",_duration_second_week:"d'd' hh:mm:ss",_duration_second_month:"M'm' dd'd' hh:mm:ss",_duration_second_year:"y'y' MM'm' dd'd' hh:mm:ss",_duration_minute:"mm",_duration_minute_hour:"hh:mm",_duration_minute_day:"d'd' hh:mm",_duration_minute_week:"d'd' hh:mm",_duration_minute_month:"M'm' dd'd' hh:mm",_duration_minute_year:"y'y' MM'm' dd'd' hh:mm",_duration_hour:"hh'h'",_duration_hour_day:"d'd' hh'h'",_duration_hour_week:"d'd' hh'h'",_duration_hour_month:"M'm' dd'd' hh'h'",_duration_hour_year:"y'y' MM'm' dd'd' hh'h'",_duration_day:"d'd'",_duration_day_week:"d'd'",_duration_day_month:"M'm' dd'd'",_duration_day_year:"y'y' MM'm' dd'd'",_duration_week:"w'w'",_duration_week_month:"w'w'",_duration_week_year:"w'w'",_duration_month:"M'm'",_duration_month_year:"y'y' MM'm'",_duration_year:"y'y'",_era_ad:"\u03BC.\u03A7.",_era_bc:"\u03C0.\u03A7.",A:"\u03C0\u03BC",P:"\u03BC\u03BC",AM:"\u03C0.\u03BC.",PM:"\u03BC.\u03BC.","A.M.":"\u03C0.\u03BC.","P.M.":"\u03BC.\u03BC.",January:"\u0399\u03B1\u03BD\u03BF\u03C5\u03B1\u03C1\u03AF\u03BF\u03C5",February:"\u03A6\u03B5\u03B2\u03C1\u03BF\u03C5\u03B1\u03C1\u03AF\u03BF\u03C5",March:"\u039C\u03B1\u03C1\u03C4\u03AF\u03BF\u03C5",April:"\u0391\u03C0\u03C1\u03B9\u03BB\u03AF\u03BF\u03C5",May:"\u039C\u03B1\u0390\u03BF\u03C5",June:"\u0399\u03BF\u03C5\u03BD\u03AF\u03BF\u03C5",July:"\u0399\u03BF\u03C5\u03BB\u03AF\u03BF\u03C5",August:"\u0391\u03C5\u03B3\u03BF\u03CD\u03C3\u03C4\u03BF\u03C5",September:"\u03A3\u03B5\u03C0\u03C4\u03B5\u03BC\u03B2\u03C1\u03AF\u03BF\u03C5",October:"\u039F\u03BA\u03C4\u03C9\u03B2\u03C1\u03AF\u03BF\u03C5",November:"\u039D\u03BF\u03B5\u03BC\u03B2\u03C1\u03AF\u03BF\u03C5",December:"\u0394\u03B5\u03BA\u03B5\u03BC\u03B2\u03C1\u03AF\u03BF\u03C5",Jan:"\u0399\u03B1\u03BD",Feb:"\u03A6\u03B5\u03B2",Mar:"\u039C\u03B1\u03C1",Apr:"\u0391\u03C0\u03C1","May(short)":"\u039C\u03B1\u0390",Jun:"\u0399\u03BF\u03C5\u03BD",Jul:"\u0399\u03BF\u03C5\u03BB",Aug:"\u0391\u03C5\u03B3",Sep:"\u03A3\u03B5\u03C0",Oct:"\u039F\u03BA\u03C4",Nov:"\u039D\u03BF\u03B5",Dec:"\u0394\u03B5\u03BA",Sunday:"\u039A\u03C5\u03C1\u03B9\u03B1\u03BA\u03AE",Monday:"\u0394\u03B5\u03C5\u03C4\u03AD\u03C1\u03B1",Tuesday:"\u03A4\u03C1\u03AF\u03C4\u03B7",Wednesday:"\u03A4\u03B5\u03C4\u03AC\u03C1\u03C4\u03B7",Thursday:"\u03A0\u03AD\u03BC\u03C0\u03C4\u03B7",Friday:"\u03A0\u03B1\u03C1\u03B1\u03C3\u03BA\u03B5\u03C5\u03AE",Saturday:"\u03A3\u03AC\u03B2\u03B2\u03B1\u03C4\u03BF",Sun:"\u039A\u03C5\u03C1",Mon:"\u0394\u03B5\u03C5",Tue:"\u03A4\u03C1\u03AF",Wed:"\u03A4\u03B5\u03C4",Thu:"\u03A0\u03AD\u03BC",Fri:"\u03A0\u03B1\u03C1",Sat:"\u03A3\u03AC\u03B2",_dateOrd:function(_){let e="th";if(_<11||_>13)switch(_%10){case 1:e="st";break;case 2:e="nd";break;case 3:e="rd";break}return e},"Zoom Out":"\u0395\u03C3\u03C4\u03AF\u03B1\u03C3\u03B7",Play:"\u0391\u03BD\u03B1\u03C0\u03B1\u03C1\u03B1\u03B3\u03C9\u03B3\u03AE",Stop:"\u03A3\u03C4\u03AC\u03C3\u03B7",Legend:"\u03A5\u03C0\u03CC\u03BC\u03BD\u03B7\u03BC\u03B1","Press ENTER to toggle":"",Loading:"\u03A6\u03CC\u03C1\u03C4\u03C9\u03C3\u03B7",Home:"\u0391\u03C1\u03C7\u03B9\u03BA\u03AE",Chart:"","Serial chart":"","X/Y chart":"","Pie chart":"","Gauge chart":"","Radar chart":"","Sankey diagram":"","Flow diagram":"","Chord diagram":"","TreeMap chart":"","Sliced chart":"",Series:"","Candlestick Series":"","OHLC Series":"","Column Series":"","Line Series":"","Pie Slice Series":"","Funnel Series":"","Pyramid Series":"","X/Y Series":"",Map:"","Press ENTER to zoom in":"","Press ENTER to zoom out":"","Use arrow keys to zoom in and out":"","Use plus and minus keys on your keyboard to zoom in and out":"",Export:"\u0395\u03BA\u03C4\u03CD\u03C0\u03C9\u03C3\u03B7",Image:"Image",Data:"\u0394\u03B5\u03B4\u03BF\u03BC\u03AD\u03BD\u03B1",Print:"\u0395\u03BA\u03C4\u03CD\u03C0\u03C9\u03C3\u03B7","Press ENTER to open":"","Press ENTER to print.":"","Press ENTER to export as %1.":"","(Press ESC to close this message)":"","Image Export Complete":"","Export operation took longer than expected. Something might have gone wrong.":"","Saved from":"",PNG:"",JPG:"",GIF:"",SVG:"",PDF:"",JSON:"",CSV:"",XLSX:"",HTML:"","Use TAB to select grip buttons or left and right arrows to change selection":"","Use left and right arrows to move selection":"","Use left and right arrows to move left selection":"","Use left and right arrows to move right selection":"","Use TAB select grip buttons or up and down arrows to change selection":"","Use up and down arrows to move selection":"","Use up and down arrows to move lower selection":"","Use up and down arrows to move upper selection":"","From %1 to %2":"\u0391\u03C0\u03CC %1 \u03AD\u03C9\u03C2 %2","From %1":"\u0391\u03C0\u03CC %1","To %1":"\u0388\u03C9\u03C2 %1","No parser available for file: %1":"","Error parsing file: %1":"","Unable to load file: %1":"","Invalid date":"",Close:"",Minimize:"",Confirm:""};export{r as default};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
3
- v5.0.0-next.119 */
4
- import g from"./QJBDUCAA.js";import f from"./22JMPJTG.js";import{a as F}from"./KUG5Y26U.js";import e from"./DO5VJTG4.js";import"./DWACURFE.js";import"./MG6BJWUS.js";import d from"./TGPANP2V.js";import{a as B}from"./IQ2JUVOZ.js";import c from"./F4K626LE.js";import a from"./5K3SXYTT.js";import{g as E}from"./HACMDBEA.js";import"./GAD2MCBF.js";import"./DX7TJKT5.js";import{b as $}from"./HSYPPEIL.js";import{L as M,M as w,N as k,O as l,Q as h,R as V,T as D,a as T,b as n,x as b}from"./K4MVUXQW.js";import"./YNQQEKVL.js";export default $arcgis.t(([G,{substitute:g,formatNumber:C},{watch:v},{stripHTML:y},H,{renderingSanitizer:S},,,N,,{e:O},{a:L,d:R,e:P}])=>{var d="arcgis-features",r={base:d,container:`${d}__container`,contentContainer:`${d}__content-container`,contentFeature:`${d}__content-feature`,flowItemCollapsed:`${d}__flow-item--collapsed`,header:`${d}__header`,footer:`${d}__footer`,featureMenuObserver:`${d}__feature-menu-observer`,actionExit:`${d}__action--exit`,loader:`${d}__loader`,paginationText:`${d}__pagination-text`,paginationActionBar:`${d}__pagination-action-bar`,paginationMenuButton:`${d}__pagination-menu-button`,paginationPrevious:`${d}__pagination-previous`},W=T`:host{display:flex;overflow:hidden;flex:1 1 auto}.arcgis-features{--calcite-color-background: var(--calcite-color-foreground-1);display:flex;overflow:hidden;flex:1 1 auto;flex-direction:column}.arcgis-features img{image-orientation:from-image}.arcgis-features__flow-item--collapsed{--calcite-flow-item-header-border-block-end: none}.arcgis-features__container{display:flex;flex:1 1 auto;background-color:var(--calcite-color-foreground-1)}.arcgis-features__container calcite-list{width:100%}.arcgis-features__container:not(:empty){padding:var(--arcgis-internal-padding-md)}.arcgis-features .arcgis-feature,.arcgis-features .arcgis-feature-relationship,.arcgis-features .arcgis-feature-utility-network-associations{background-color:transparent}.arcgis-features__heading{word-break:break-word;word-wrap:break-word}.arcgis-features__header,.arcgis-features__footer{display:flex;align-items:center;justify-content:flex-end;background-color:var(--calcite-color-foreground-1)}.arcgis-features__footer{flex:1}.arcgis-features__pagination-text{padding-inline:var(--calcite-spacing-sm);color:var(--calcite-color-text-3);font-size:var(--calcite-font-size-sm)}.arcgis-features__loader{align-self:center;padding-inline:var(--calcite-spacing-lg)}.arcgis-features__pagination-action-bar{flex:1}.arcgis-features__pagination-menu-button{padding-inline:var(--calcite-spacing-xxs);border-inline-start:var(--calcite-border-width-sm) solid var(--calcite-color-border-3)}.arcgis-features__icon{display:inline-block;flex:0 0 var(--calcite-spacing-lg);width:var(--calcite-spacing-lg);height:var(--calcite-spacing-lg)}.arcgis-features__action-image{flex:0 0 var(--calcite-spacing-lg);background-position:50% 50%;background-repeat:no-repeat;background-size:contain;width:var(--calcite-spacing-lg);height:var(--calcite-spacing-lg)}.arcgis-features__header{border-block-end:var(--calcite-border-width-sm) solid var(--calcite-color-border-3)}.arcgis-features__content-feature{--calcite-flow-item-footer-padding: 0}.arcgis-features__feature-menu-observer{position:relative;bottom:var(--calcite-spacing-xxl);z-index:2;text-align:center}.arcgis-features__action--exit{transform:scaleX(-1)}`;function X(p){switch(p?.type){case"point":return p;case"extent":return p.center;case"polygon":return p.centroid;case"multipoint":case"polyline":return p.extent?.center;default:return null}}var A=L.clone();function q(p){return p?.declaredClass.startsWith("esri.layers.")??!1}var Q=N(G),I=class extends k{constructor(){super(...arguments),this._featureMenuIntersectionObserverCallback=([e])=>{e?.isIntersecting&&this.viewModel.featurePage!=null&&this.viewModel.featurePage++},this._featureMenuIntersectionObserver=new IntersectionObserver(this._featureMenuIntersectionObserverCallback,{root:window.document}),this._featureMenuIntersectionObserverNode=null,this._rootFlowItemNode=M(),this._featureMenuViewportNode=M(),this._actionBarMenuNode=M(),this._flowContainerNode=M(),this.messages=B(),this._selectedFeatureComponent=M(),this._cancelOpenRelatedFeature=()=>{let{_openRelatedFeatureAbortController:e}=this;e&&e.abort(),this._openRelatedFeatureAbortController=null},this._openRelatedFeatureAbortController=null,this.flowItems=new H,this.viewModel=Q(this),this.actions=this.viewModel.actions,this.active=this.viewModel.active,this.autoDestroyDisabled=!1,this.collapsed=!1,this.content=this.viewModel.content,this.defaultPopupTemplateEnabled=this.viewModel.defaultPopupTemplateEnabled,this.featureCount=this.viewModel.featureCount,this.featureMenuOpen=this.viewModel.featureMenuOpen,this.featureMenuTitle=this.viewModel.featureMenuTitle,this.featureNavigationTop=!1,this.features=this.viewModel.features,this.featuresPerPage=this.viewModel.featuresPerPage,this.featureViewModelAbilities=this.viewModel.featureViewModelAbilities,this.goToOverride=this.viewModel.goToOverride,this.headerActions=new H,this.heading=this.viewModel.title,this.headingLevel=2,this.hideActionBar=!1,this.hideCloseButton=!1,this.hideFeatureMenuHeading=!1,this.hideFeatureNavigation=!1,this.hideFeatureListLayerTitle=!1,this.hideFlow=!1,this.hideHeading=!1,this.hideSpinner=!1,this.hideContent=!1,this.hideExpressionContent=!1,this.hideLastEditedInfo=!1,this.highlightDisabled=this.viewModel.highlightEnabled,this.includeDefaultActionsDisabled=this.viewModel.includeDefaultActions,this.initialDisplayMode=this.viewModel.initialDisplayMode,this.location=this.viewModel.location,this.map=this.viewModel.map,this.promises=this.viewModel.promises,this.responsiveActionsEnabled=!1,this.selectedFeature=this.viewModel.selectedFeature,this.selectedFeatureIndex=this.viewModel.selectedFeatureIndex,this.showCollapseButton=!1,this.spatialReference=this.viewModel.spatialReference,this.state=this.viewModel.state,this.timeZone=this.viewModel.timeZone,this.updateLocationEnabled=this.viewModel.updateLocationEnabled,this.view=this.viewModel.view,this.visible=this.viewModel.visible,this.arcgisPropertyChange=E()("active","collapsed","featureCount","featureMenuOpen","features","promises","selectedDrillInFeature","selectedFeature","selectedFeatureComponent","selectedFeatureIndex","state","visible"),this.arcgisReady=b(),this.arcgisClose=b(),this.arcgisTriggerAction=b()}static{this.properties={_openRelatedFeatureAbortController:16,flowItems:16,_hideActionText:16,_featureNavigationVisible:16,_isCollapsed:16,_collapseEnabled:16,viewModel:0,actions:0,active:0,autoDestroyDisabled:5,collapsed:5,content:1,defaultPopupTemplateEnabled:5,featureCount:0,featureMenuOpen:5,featureMenuTitle:1,featureNavigationTop:5,features:0,featuresPerPage:9,featureViewModelAbilities:0,goToOverride:0,headerActions:0,heading:1,headingLevel:9,hideActionBar:5,hideCloseButton:5,hideFeatureMenuHeading:5,hideFeatureNavigation:5,hideFeatureListLayerTitle:5,hideFlow:5,hideHeading:5,hideSpinner:5,hideContent:5,chartAnimationDisabled:5,hideAttachmentsContent:5,hideCustomContent:5,hideExpressionContent:5,hideFieldsContent:5,hideMediaContent:5,hideRelationshipContent:5,hideTextContent:5,hideUtilityNetworkContent:5,hideLastEditedInfo:5,highlightDisabled:5,icon:0,includeDefaultActionsDisabled:5,initialDisplayMode:1,label:1,location:0,map:0,messageOverrides:0,referenceElement:1,promises:0,responsiveActionsEnabled:5,selectedDrillInFeature:32,selectedFeature:0,selectedFeatureComponent:32,selectedFeatureIndex:9,showCollapseButton:5,spatialReference:0,state:35,timeZone:1,updateLocationEnabled:5,view:0,visible:5}}static{this.styles=W}get _hideActionText(){if(!this.responsiveActionsEnabled)return!1;let e=this.viewModel.view?.widthBreakpoint;return e==="xsmall"||e==="small"||e==="medium"}get _featureNavigationVisible(){return this.viewModel.active&&this.viewModel.featureCount>1&&!!this.viewModel.selectedFeature&&!this.hideFeatureNavigation}get _isCollapsed(){return this._collapseEnabled&&this.collapsed}get _collapseEnabled(){return this.showCollapseButton&&(this.initialDisplayMode==="list"||!!(this.heading||this.viewModel.selectedFeatureViewModel?.title)&&!!(this.content||this.viewModel.selectedFeatureViewModel?.content))}get chartAnimationDisabled(){return!(this.viewModel.featureViewModelAbilities?.chartAnimation??!0)}set chartAnimationDisabled(e){this.viewModel.featureViewModelAbilities??={},this.viewModel.featureViewModelAbilities.chartAnimation=!e}get hideAttachmentsContent(){return!(this.viewModel.featureViewModelAbilities?.attachmentsContent??!0)}set hideAttachmentsContent(e){this.viewModel.featureViewModelAbilities??={},this.viewModel.featureViewModelAbilities.attachmentsContent=!e}get hideCustomContent(){return!(this.viewModel.featureViewModelAbilities?.customContent??!0)}set hideCustomContent(e){this.viewModel.featureViewModelAbilities??={},this.viewModel.featureViewModelAbilities.customContent=!e}get hideFieldsContent(){return!(this.viewModel.featureViewModelAbilities?.fieldsContent??!0)}set hideFieldsContent(e){this.viewModel.featureViewModelAbilities??={},this.viewModel.featureViewModelAbilities.fieldsContent=!e}get hideMediaContent(){return!(this.viewModel.featureViewModelAbilities?.mediaContent??!0)}set hideMediaContent(e){this.viewModel.featureViewModelAbilities??={},this.viewModel.featureViewModelAbilities.mediaContent=!e}get hideRelationshipContent(){return!(this.viewModel.featureViewModelAbilities?.relationshipContent??!0)}set hideRelationshipContent(e){this.viewModel.featureViewModelAbilities??={},this.viewModel.featureViewModelAbilities.relationshipContent=!e}get hideTextContent(){return!(this.viewModel.featureViewModelAbilities?.textContent??!0)}set hideTextContent(e){this.viewModel.featureViewModelAbilities??={},this.viewModel.featureViewModelAbilities.textContent=!e}get hideUtilityNetworkContent(){return!(this.viewModel.featureViewModelAbilities?.utilityNetworkAssociationsContent??!0)}set hideUtilityNetworkContent(e){this.viewModel.featureViewModelAbilities??={},this.viewModel.featureViewModelAbilities.utilityNetworkAssociationsContent=!e}get selectedDrillInFeature(){let e=Array.from(this.flowItems).at(-1);return e&&"graphic"in e?e.graphic??null:null}get selectedFeatureComponent(){return this._selectedFeatureComponent.value??null}async clear(){return this.viewModel.clear()}async close(){this.viewModel.visible=!1}async destroy(){await this.manager.destroy(),await this._destroySpinner(this.referenceElement),this._cancelOpenRelatedFeature(),this._removeFlowItems(),this._unobserveFeatureMenuObserver(),this._featureMenuIntersectionObserver?.disconnect()}async fetchFeatures(e,t){return await this.viewModel.fetchFeatures(e,t)}async open(e){this.viewModel.open(e)}async next(){return this.viewModel.next()}async previous(){return this.viewModel.previous()}async setFocus(){this._flowContainerNode.value?.setFocus()}async triggerAction(e){if(!e.disabled)return e?.type==="toggle"&&(e.value=!e.value),await P(e,this.viewModel)}loaded(){this.manager.onLifecycle(()=>[v(()=>this.viewModel?.selectedFeatureIndex,(e,t)=>this._selectedFeatureIndexUpdated(e,t)),v(()=>this.viewModel?.view,()=>this._viewChange()),v(()=>this._spinnerEl?.screenLocation,()=>this._closeOpenActionMenu()),v(()=>this.selectedFeatureComponent?.viewModel,()=>this._removeFlowItems()),v(()=>this.viewModel?.featureViewModels,()=>this._featureMenuViewportScrollTop()),v(()=>[this.flowItems?.length,this.featureMenuOpen],()=>{this.setFocus()}),v(()=>this.referenceElement,(e,t)=>{this._destroySpinner(t),this._createSpinner()},{initial:!0}),v(()=>[this.hideSpinner,this.viewModel?.view,this.viewModel?.location,this.viewModel?.waitingForResult,this.viewModel?.view],()=>void this._createSpinner(),{initial:!0})])}_handleClose(){this.close(),this.arcgisClose.emit()}_groupResultsByLayer(){let{featureViewModels:e}=this.viewModel,t=new Map;return e.forEach(i=>{let a=i?.graphic;if(!a)return;let s=O(a),o=q(s)?s:null,c=t.get(o)??[];t.set(o,[...c,i])}),t}_handleCollapseToggle(){this.collapsed=!this.collapsed}async _openRelatedFeature(e){this._cancelOpenRelatedFeature();let t=new AbortController;this._openRelatedFeatureAbortController=t,await e.updateGeometry();let i=e.graphic,a=i?.geometry;if(a==null||i==null)return;this._removeFlowItems(),await this.viewModel.zoomTo({target:a});let s=X(a);s!=null&&(this.location=s),this.features=[i],this.visible=!0,await this.setFocus(),this._openRelatedFeatureAbortController===t&&(this._openRelatedFeatureAbortController=null)}_handlePaginationMenuButton(){this._updateFeatureMenu()}_openFeatureMenu(){this._updateFeatureMenu(!0)}_closeFeatureMenu(){this._updateFeatureMenu(!1)}_updateFeatureMenu(e=!this.featureMenuOpen){this.featureMenuOpen=e}_previousFeature(){this.viewModel.previous()}_nextFeature(){this.viewModel.next()}_handleFeatureBack(){this.initialDisplayMode==="list"?(this.selectedFeatureIndex=-1,this.setFocus()):this._openFeatureMenu()}_handleFeatureMenuBack(){this.initialDisplayMode==="list"?(this.selectedFeatureIndex=-1,this.setFocus()):this.featureMenuOpen&&this._closeFeatureMenu()}_setActiveFeature(e){let{viewModel:t}=this;t.activeFeature=t.features?.[e]||null}_removeActiveFeature(){this.viewModel.activeFeature=null}_selectFeature(e){this.viewModel.selectedFeatureIndex=e,this.initialDisplayMode==="feature"?this._handleFeatureMenuBack():this.setFocus()}_unobserveFeatureMenuObserver(){this._featureMenuIntersectionObserverNode&&this._featureMenuIntersectionObserver.unobserve(this._featureMenuIntersectionObserverNode)}_featureMenuIntersectionObserverCreated(e){this._unobserveFeatureMenuObserver(),e&&this._featureMenuIntersectionObserver.observe(e),this._featureMenuIntersectionObserverNode=e}_getActionTitle(e){let{messages:t,selectedFeature:i}=this,{id:a}=e,s=i?.attributes,o=e.title??"",c=a==="zoom-to-feature"?g(o,{messages:t}):a==="remove-selected-feature"?g(o,{messages:t}):a==="zoom-to-clustered-features"?g(o,{messages:t}):a==="browse-clustered-features"?g(o,{messages:t}):e.title;return c&&s?g(c,s):c??""}_onMainKeydown(e){let{key:t}=e;t==="ArrowLeft"&&(e.stopPropagation(),this._handleFeatureMenuBack(),this.previous(),this.setFocus()),t==="ArrowRight"&&(e.stopPropagation(),this._handleFeatureMenuBack(),this.next(),this.setFocus())}_featureMenuViewportScrollTop(){this._featureMenuViewportNode&&this._featureMenuViewportNode.value?.scrollContentTo({top:0})}_selectedFeatureIndexUpdated(e,t){let{featureCount:i,waitingForResult:a}=this.viewModel;a||!i||e===t||e===-1||(this._removeFlowItems(),this._rootFlowItemNode.value?.scrollContentTo({top:0}))}_triggerAction(e){this.triggerAction(e),this.arcgisTriggerAction.emit({action:e})}_viewChange(){this.viewModel.clear(),this.viewModel.visible=!1}_closeOpenActionMenu(){let{_actionBarMenuNode:e}=this;e.value&&(e.value.menuOpen=!1)}_removeFlowItems(){this.flowItems.removeAll()}_getDrillInFlowItemDescription(e){switch(e.flowType){case"feature":case"feature-association":case"feature-utility-network-associations":case"feature-utility-network-association-type":return e.description;case"feature-relationship":return e.allItemsDescription}}_handleDrillInBackClick(){this.flowItems?.pop()}_getHeading(){let{hideHeading:e}=this,{title:t,selectedFeatureViewModel:i}=this.viewModel;return i&&!e?i?.state==="error"?this.messages?.errorMessage??"":i?.title||"":!e&&t?t:""}async _destroySpinner(e){e?.manager?.component?.extraContent?.remove(this._spinnerEl)}async _createSpinner(){let e=this.referenceElement;e&&(await this._destroySpinner(e),this._spinnerEl=V(n`<arcgis-spinner .label=${this.messages.loading??""} .trackLocation=${!this.hideSpinner&&this.viewModel?.waitingForResult} .location=${this.viewModel?.location??void 0} .view=${this.viewModel?.view??void 0}></arcgis-spinner>`),e.manager?.component?.extraContent?.add(this._spinnerEl))}render(){return n`<div class=${l(r.base)} @keydown=${this._onMainKeydown}>${this._renderHeader()}${this._renderContentContainer()}</div>`}_renderFeatureNavigation(){return[this._renderPagination(),this.initialDisplayMode==="list"?this._renderFeaturePaginationText():this._renderFeatureMenuButton()]}_renderHeader(){return this.featureNavigationTop&&this._featureNavigationVisible?n`<div class=${l(r.header)}>${this._renderFeatureNavigation()}</div>`:null}_renderFooter(){return!this.featureNavigationTop&&this._featureNavigationVisible?n`<div class=${l(r.footer)} slot=footer>${this._renderFeatureNavigation()}</div>`:null}_renderFeaturePaginationText(){let{messages:e,viewModel:t}=this,{featureCount:i,selectedFeatureIndex:a}=t;return n`<div class=${l(r.paginationText)}>${g(e.pageText??"",{index:C(a+1),total:C(i)})}</div>`}_renderFeatureMenuButton(){let{messages:e,viewModel:t}=this,{featureCount:i,selectedFeatureIndex:a,pendingPromisesCount:s}=t;return n`<calcite-action class=${l(r.paginationMenuButton)} icon=list .label=${e.selectFeature} .loading=${s>0} @click=${this._handlePaginationMenuButton} .text=${g(e.pageText??"",{index:C(a+1),total:C(i)})} text-enabled title=${e.selectFeature??h}></calcite-action>`}_renderPagination(){let{previous:e,next:t}=this.messages;return n`<calcite-action-bar class=${l(r.paginationActionBar)} expand-disabled layout=horizontal overflow-actions-disabled scale=s><calcite-action-group scale=s><calcite-action class=${l(r.paginationPrevious)} icon=chevron-left icon-flip-rtl .label=${e??""} @click=${this._previousFeature} .text=${e??""} title=${e??""??h}></calcite-action><calcite-action icon=chevron-right icon-flip-rtl .label=${t??""} @click=${this._nextFeature} .text=${t??""} title=${t??""??h}></calcite-action></calcite-action-group></calcite-action-bar>`}_renderFeatureMenuItem(e){let{initialDisplayMode:t}=this,{selectedFeatureViewModel:i,featureViewModels:a}=this.viewModel,s=e===i,o=a.indexOf(e);return n`<calcite-list-item @blur=${this._removeActiveFeature} @focus=${()=>this._setActiveFeature(o)} @mouseleave=${this._removeActiveFeature} @mouseover=${()=>this._setActiveFeature(o)} .selected=${s} @calciteListItemSelect=${()=>this._selectFeature(o)}><span .innerHTML=${(S.sanitize(e.title)||this.messages.untitled)??""} slot=content></span>${t==="list"?n`<calcite-icon flip-rtl icon=chevron-right scale=s slot=content-end></calcite-icon>`:null}</calcite-list-item>`}_renderFeatureMenu(){let{messages:e,viewModel:t}=this,i=this._groupResultsByLayer(),a=this.initialDisplayMode==="list"?"none":"single";return t.featureViewModels.length?n`<calcite-list display-mode=flat .label=${e?.featuresList??""} selection-appearance=icon .selectionMode=${a}>${Array.from(i.keys(),s=>{let o=i.get(s)?.map(u=>this._renderFeatureMenuItem(u)),c=s?s.title??this.messages.untitled:null;return!this.hideFeatureListLayerTitle&&c!==null?F(s??"map-graphics",n`<calcite-list-item-group .heading=${c}>${o}</calcite-list-item-group>`):o})}</calcite-list>`:null}_renderHeaderAction(e){let t=e.title||"";return e.visible?n`<calcite-action .active=${e.type==="toggle"?e.value:!1} .disabled=${e.disabled} .icon=${e.icon??void 0} .indicator=${e.active} .loading=${e.active} @click=${()=>this._triggerAction(e)} slot=header-actions-end .text=${t} title=${t??h}></calcite-action>`:null}_renderHeaderActions(){return this.headerActions.map(e=>this._renderHeaderAction(e)).toArray()}_renderContentFeature(){let{headingLevel:e,hideCloseButton:t,_isCollapsed:i,_collapseEnabled:a,featureNavigationTop:s,flowItems:o,initialDisplayMode:c,selectedFeature:u,featureMenuOpen:f}=this,{active:_}=this.viewModel,m=this._getHeading();if(c==="list"&&!u)return null;let x=o.length===0&&(c==="list"?!!u:!f);return n`<calcite-flow-item class=${l($({[r.contentFeature]:!0,[r.flowItemCollapsed]:i}))} .closable=${!t} .closed=${!_} .collapsed=${i} .collapseDirection=${s?"down":"up"} .collapsible=${a} .headingLevel=${e} .selected=${x} @calciteFlowItemBack=${this._handleFeatureBack} .loading=${!!this._openRelatedFeatureAbortController} @calciteFlowItemClose=${this._handleClose} @calciteFlowItemToggle=${this._handleCollapseToggle} .heading=${y(m)} ${w(this._rootFlowItemNode)}>${this._renderHeaderActions()}${this._renderActionBar()}<div class=${l($(r.container,r.contentContainer))}>${this._renderContent()}</div>${this._renderFooter()}</calcite-flow-item>`}_renderFeatureMenuContainer(){let{viewModel:e,hideCloseButton:t,featureMenuTitle:i,messages:a,initialDisplayMode:s,featureMenuOpen:o,selectedFeature:c,_collapseEnabled:u,_isCollapsed:f,featureNavigationTop:_,headingLevel:m}=this,{active:x,featureViewModels:z,pendingPromisesCount:U}=e,Z=i??a.selectFeature;if(s==="feature"&&!o)return null;let j=s==="list"?!c:o;return n`<calcite-flow-item class=${l($({[r.flowItemCollapsed]:f}))} .closable=${s==="list"&&!t} .closed=${!x} .collapsed=${s==="list"&&f} .collapseDirection=${_?"down":"up"} .collapsible=${s==="list"&&u} .description=${this.hideFeatureMenuHeading?void 0:g(a.total??"",{total:z.length})} .heading=${this.hideFeatureMenuHeading?void 0:Z} .headingLevel=${m} .loading=${e.waitingForContents} .selected=${j} @calciteFlowItemBack=${K=>{K.preventDefault(),this._handleFeatureMenuBack()}} @calciteFlowItemClose=${this._handleClose} @calciteFlowItemToggle=${this._handleCollapseToggle} ${w(this._featureMenuViewportNode)}>${s==="list"?this._renderHeaderActions():null}${U>0?n`<calcite-loader class=${l(r.loader)} inline .label=${a.loading??""} slot=header-actions-end></calcite-loader>`:null}<div class=${l(r.container)}>${this._renderFeatureMenu()}</div><div class=${l(r.featureMenuObserver)} ${w(this._featureMenuIntersectionObserverCreated)}></div>${s==="feature"?n`<calcite-button appearance=transparent @click=${this._handleFeatureMenuBack} slot=footer-start width=full>${a.back}</calcite-button>`:null}</calcite-flow-item>`}_renderFlowItem(e,t){let{messages:i,hideCloseButton:a,active:s}=this,o="graphic"in e&&"isFeatureFromTable"in e&&!e.isFeatureFromTable,c=e.flowType==="feature-association",u=i.returnToInitialFeature??"",f=i?.selectFeature,_=this._getActionTitle(A);return n`<calcite-flow-item .closable=${!a} .closed=${!s} .description=${y(this._getDrillInFlowItemDescription(e)??"")} .heading=${this.hideHeading?void 0:y(e.heading??"")} .selected=${t} @calciteFlowItemBack=${m=>{m.preventDefault(),this._handleDrillInBackClick()}} .loading=${!!this._openRelatedFeatureAbortController} @calciteFlowItemClose=${this._handleClose}><calcite-action class=${l(r.actionExit)} icon=move-up @click=${this._removeFlowItems} slot=header-actions-start .text=${u??""} title=${u??""??h}></calcite-action>${o?n`<calcite-action icon=zoom-to-object @click=${()=>this._openRelatedFeature(e)} slot=header-actions-end .text=${f??""} title=${f??h}></calcite-action>`:null}${c?n`<calcite-action-bar expand-disabled expanded scale=s slot=action-bar><calcite-action-group overlay-positioning=fixed scale=s><calcite-action .disabled=${A.disabled} .icon=${A.icon??void 0} .loading=${A.active} scale=s text-enabled .text=${_} title=${_??h} @click=${()=>R(this.viewModel,e)}></calcite-action></calcite-action-group></calcite-action-bar>`:null}<div class=${l(r.container)}>${e}</div></calcite-flow-item>`}_renderContentContainer(){let e=this.flowItems?.toArray(),t=e?.map((a,s)=>this._renderFlowItem(a,this.initialDisplayMode==="list"||!this.featureMenuOpen&&s===e.length-1)),i=this.initialDisplayMode==="list"?[this._renderFeatureMenuContainer(),this._renderContentFeature(),t]:[this._renderContentFeature(),t,this._renderFeatureMenuContainer()];return this.hideFlow?i:n`<calcite-flow ${w(this._flowContainerNode)}>${i}</calcite-flow>`}_renderActionBar(){return!this._isCollapsed&&!this.hideActionBar&&this.viewModel.allActions?.length?n`<calcite-action-bar expand-disabled .expanded=${!this._hideActionText} scale=s slot=action-bar><calcite-action-group overlay-positioning=fixed scale=s ${w(this._actionBarMenuNode)}>${this._renderActions()}</calcite-action-group></calcite-action-bar>`:null}_renderActions(){return this.viewModel.allActions.toArray().map(e=>{let t=this._getActionTitle(e);return n`<calcite-action .active=${e.type==="toggle"?e.value:!1} .disabled=${e.disabled} .icon=${e.icon??void 0} .loading=${e.active} scale=s .textEnabled=${!this._hideActionText} .text=${t??""} title=${t??h} .hidden=${!e.visible} @click=${()=>this._triggerAction(e)}></calcite-action>`})}_renderContent(){let{content:e,selectedFeatureViewModel:t}=this.viewModel;return t?F(t,n`<arcgis-feature .chartAnimationDisabled=${this.chartAnimationDisabled} .defaultPopupTemplateEnabled=${this.defaultPopupTemplateEnabled} .flowItems=${this.flowItems} .graphic=${t.graphic} .headingLevel=${this.headingLevel+1} .hideAttachmentsContent=${this.hideAttachmentsContent} .hideContent=${this.hideContent} .hideCustomContent=${this.hideCustomContent} .hideExpressionContent=${this.hideExpressionContent} .hideFieldsContent=${this.hideFieldsContent} hide-heading .hideLastEditedInfo=${this.hideLastEditedInfo} .hideMediaContent=${this.hideMediaContent} .hideTextContent=${this.hideTextContent} .location=${this.location} .map=${this.map} .referenceElement=${this.referenceElement} .showRelationshipContent=${!this.hideRelationshipContent} .showUtilityNetworkContent=${!this.hideUtilityNetworkContent} .spatialReference=${this.spatialReference} .timeZone=${this.timeZone} ${w(this._selectedFeatureComponent)}></arcgis-feature>`):typeof e=="string"?F(e,n`<div .innerHTML=${S.sanitize(e)??""}></div>`):e??null}};D("arcgis-features",I);return I},"widgets/Features/FeaturesViewModel","intl","core/reactiveUtils","applications/Components/stringUtils","core/Collection","applications/Components/sanitizerUtils",a,c,d,e,f,g)
3
+ v5.0.0-next.120 */
4
+ import g from"./O6AMKW3T.js";import f from"./42TTZZIU.js";import{a as F}from"./KQFI7PGI.js";import e from"./LGGHYSPK.js";import"./YJFW22S6.js";import"./KKDDBMMY.js";import d from"./PF5CM77S.js";import{a as B}from"./N5OH5WH6.js";import c from"./3CKHLKRW.js";import a from"./FNJI5EMP.js";import{g as E}from"./XRFJPDMW.js";import"./PYPGWFXB.js";import"./5WPW2246.js";import{b as $}from"./CON4URVJ.js";import{L as M,M as w,N as k,O as l,Q as h,R as V,T as D,a as T,b as n,x as b}from"./CC7BTIBM.js";import"./RRSZENMO.js";export default $arcgis.t(([G,{substitute:g,formatNumber:C},{watch:v},{stripHTML:y},H,{renderingSanitizer:S},,,N,,{e:O},{a:L,d:R,e:P}])=>{var d="arcgis-features",r={base:d,container:`${d}__container`,contentContainer:`${d}__content-container`,contentFeature:`${d}__content-feature`,flowItemCollapsed:`${d}__flow-item--collapsed`,header:`${d}__header`,footer:`${d}__footer`,featureMenuObserver:`${d}__feature-menu-observer`,actionExit:`${d}__action--exit`,loader:`${d}__loader`,paginationText:`${d}__pagination-text`,paginationActionBar:`${d}__pagination-action-bar`,paginationMenuButton:`${d}__pagination-menu-button`,paginationPrevious:`${d}__pagination-previous`},W=T`:host{display:flex;overflow:hidden;flex:1 1 auto}.arcgis-features{--calcite-color-background: var(--calcite-color-foreground-1);display:flex;overflow:hidden;flex:1 1 auto;flex-direction:column}.arcgis-features img{image-orientation:from-image}.arcgis-features__flow-item--collapsed{--calcite-flow-item-header-border-block-end: none}.arcgis-features__container{display:flex;flex:1 1 auto;background-color:var(--calcite-color-foreground-1)}.arcgis-features__container calcite-list{width:100%}.arcgis-features__container:not(:empty){padding:var(--arcgis-internal-padding-md)}.arcgis-features .arcgis-feature,.arcgis-features .arcgis-feature-relationship,.arcgis-features .arcgis-feature-utility-network-associations{background-color:transparent}.arcgis-features__heading{word-break:break-word;word-wrap:break-word}.arcgis-features__header,.arcgis-features__footer{display:flex;align-items:center;justify-content:flex-end;background-color:var(--calcite-color-foreground-1)}.arcgis-features__footer{flex:1}.arcgis-features__pagination-text{padding-inline:var(--calcite-spacing-sm);color:var(--calcite-color-text-3);font-size:var(--calcite-font-size-sm)}.arcgis-features__loader{align-self:center;padding-inline:var(--calcite-spacing-lg)}.arcgis-features__pagination-action-bar{flex:1}.arcgis-features__pagination-menu-button{padding-inline:var(--calcite-spacing-xxs);border-inline-start:var(--calcite-border-width-sm) solid var(--calcite-color-border-3)}.arcgis-features__icon{display:inline-block;flex:0 0 var(--calcite-spacing-lg);width:var(--calcite-spacing-lg);height:var(--calcite-spacing-lg)}.arcgis-features__action-image{flex:0 0 var(--calcite-spacing-lg);background-position:50% 50%;background-repeat:no-repeat;background-size:contain;width:var(--calcite-spacing-lg);height:var(--calcite-spacing-lg)}.arcgis-features__header{border-block-end:var(--calcite-border-width-sm) solid var(--calcite-color-border-3)}.arcgis-features__content-feature{--calcite-flow-item-footer-padding: 0}.arcgis-features__feature-menu-observer{position:relative;bottom:var(--calcite-spacing-xxl);z-index:2;text-align:center}.arcgis-features__action--exit{transform:scaleX(-1)}`;function X(p){switch(p?.type){case"point":return p;case"extent":return p.center;case"polygon":return p.centroid;case"multipoint":case"polyline":return p.extent?.center;default:return null}}var A=L.clone();function q(p){return p?.declaredClass.startsWith("esri.layers.")??!1}var Q=N(G),I=class extends k{constructor(){super(...arguments),this._featureMenuIntersectionObserverCallback=([e])=>{e?.isIntersecting&&this.viewModel.featurePage!=null&&this.viewModel.featurePage++},this._featureMenuIntersectionObserver=new IntersectionObserver(this._featureMenuIntersectionObserverCallback,{root:window.document}),this._featureMenuIntersectionObserverNode=null,this._rootFlowItemNode=M(),this._featureMenuViewportNode=M(),this._actionBarMenuNode=M(),this._flowContainerNode=M(),this.messages=B(),this._selectedFeatureComponent=M(),this._cancelOpenRelatedFeature=()=>{let{_openRelatedFeatureAbortController:e}=this;e&&e.abort(),this._openRelatedFeatureAbortController=null},this._openRelatedFeatureAbortController=null,this.flowItems=new H,this.viewModel=Q(this),this.actions=this.viewModel.actions,this.active=this.viewModel.active,this.autoDestroyDisabled=!1,this.collapsed=!1,this.content=this.viewModel.content,this.defaultPopupTemplateEnabled=this.viewModel.defaultPopupTemplateEnabled,this.featureCount=this.viewModel.featureCount,this.featureMenuOpen=this.viewModel.featureMenuOpen,this.featureMenuTitle=this.viewModel.featureMenuTitle,this.featureNavigationTop=!1,this.features=this.viewModel.features,this.featuresPerPage=this.viewModel.featuresPerPage,this.featureViewModelAbilities=this.viewModel.featureViewModelAbilities,this.goToOverride=this.viewModel.goToOverride,this.headerActions=new H,this.heading=this.viewModel.title,this.headingLevel=2,this.hideActionBar=!1,this.hideCloseButton=!1,this.hideFeatureMenuHeading=!1,this.hideFeatureNavigation=!1,this.hideFeatureListLayerTitle=!1,this.hideFlow=!1,this.hideHeading=!1,this.hideSpinner=!1,this.hideContent=!1,this.hideExpressionContent=!1,this.hideLastEditedInfo=!1,this.highlightDisabled=this.viewModel.highlightEnabled,this.includeDefaultActionsDisabled=this.viewModel.includeDefaultActions,this.initialDisplayMode=this.viewModel.initialDisplayMode,this.location=this.viewModel.location,this.map=this.viewModel.map,this.promises=this.viewModel.promises,this.responsiveActionsEnabled=!1,this.selectedFeature=this.viewModel.selectedFeature,this.selectedFeatureIndex=this.viewModel.selectedFeatureIndex,this.showCollapseButton=!1,this.spatialReference=this.viewModel.spatialReference,this.state=this.viewModel.state,this.timeZone=this.viewModel.timeZone,this.updateLocationEnabled=this.viewModel.updateLocationEnabled,this.view=this.viewModel.view,this.visible=this.viewModel.visible,this.arcgisPropertyChange=E()("active","collapsed","featureCount","featureMenuOpen","features","promises","selectedDrillInFeature","selectedFeature","selectedFeatureComponent","selectedFeatureIndex","state","visible"),this.arcgisReady=b(),this.arcgisClose=b(),this.arcgisTriggerAction=b()}static{this.properties={_openRelatedFeatureAbortController:16,flowItems:16,_hideActionText:16,_featureNavigationVisible:16,_isCollapsed:16,_collapseEnabled:16,viewModel:0,actions:0,active:0,autoDestroyDisabled:5,collapsed:5,content:1,defaultPopupTemplateEnabled:5,featureCount:0,featureMenuOpen:5,featureMenuTitle:1,featureNavigationTop:5,features:0,featuresPerPage:9,featureViewModelAbilities:0,goToOverride:0,headerActions:0,heading:1,headingLevel:9,hideActionBar:5,hideCloseButton:5,hideFeatureMenuHeading:5,hideFeatureNavigation:5,hideFeatureListLayerTitle:5,hideFlow:5,hideHeading:5,hideSpinner:5,hideContent:5,chartAnimationDisabled:5,hideAttachmentsContent:5,hideCustomContent:5,hideExpressionContent:5,hideFieldsContent:5,hideMediaContent:5,hideRelationshipContent:5,hideTextContent:5,hideUtilityNetworkContent:5,hideLastEditedInfo:5,highlightDisabled:5,icon:0,includeDefaultActionsDisabled:5,initialDisplayMode:1,label:1,location:0,map:0,messageOverrides:0,referenceElement:1,promises:0,responsiveActionsEnabled:5,selectedDrillInFeature:32,selectedFeature:0,selectedFeatureComponent:32,selectedFeatureIndex:9,showCollapseButton:5,spatialReference:0,state:35,timeZone:1,updateLocationEnabled:5,view:0,visible:5}}static{this.styles=W}get _hideActionText(){if(!this.responsiveActionsEnabled)return!1;let e=this.viewModel.view?.widthBreakpoint;return e==="xsmall"||e==="small"||e==="medium"}get _featureNavigationVisible(){return this.viewModel.active&&this.viewModel.featureCount>1&&!!this.viewModel.selectedFeature&&!this.hideFeatureNavigation}get _isCollapsed(){return this._collapseEnabled&&this.collapsed}get _collapseEnabled(){return this.showCollapseButton&&(this.initialDisplayMode==="list"||!!(this.heading||this.viewModel.selectedFeatureViewModel?.title)&&!!(this.content||this.viewModel.selectedFeatureViewModel?.content))}get chartAnimationDisabled(){return!(this.viewModel.featureViewModelAbilities?.chartAnimation??!0)}set chartAnimationDisabled(e){this.viewModel.featureViewModelAbilities??={},this.viewModel.featureViewModelAbilities.chartAnimation=!e}get hideAttachmentsContent(){return!(this.viewModel.featureViewModelAbilities?.attachmentsContent??!0)}set hideAttachmentsContent(e){this.viewModel.featureViewModelAbilities??={},this.viewModel.featureViewModelAbilities.attachmentsContent=!e}get hideCustomContent(){return!(this.viewModel.featureViewModelAbilities?.customContent??!0)}set hideCustomContent(e){this.viewModel.featureViewModelAbilities??={},this.viewModel.featureViewModelAbilities.customContent=!e}get hideFieldsContent(){return!(this.viewModel.featureViewModelAbilities?.fieldsContent??!0)}set hideFieldsContent(e){this.viewModel.featureViewModelAbilities??={},this.viewModel.featureViewModelAbilities.fieldsContent=!e}get hideMediaContent(){return!(this.viewModel.featureViewModelAbilities?.mediaContent??!0)}set hideMediaContent(e){this.viewModel.featureViewModelAbilities??={},this.viewModel.featureViewModelAbilities.mediaContent=!e}get hideRelationshipContent(){return!(this.viewModel.featureViewModelAbilities?.relationshipContent??!0)}set hideRelationshipContent(e){this.viewModel.featureViewModelAbilities??={},this.viewModel.featureViewModelAbilities.relationshipContent=!e}get hideTextContent(){return!(this.viewModel.featureViewModelAbilities?.textContent??!0)}set hideTextContent(e){this.viewModel.featureViewModelAbilities??={},this.viewModel.featureViewModelAbilities.textContent=!e}get hideUtilityNetworkContent(){return!(this.viewModel.featureViewModelAbilities?.utilityNetworkAssociationsContent??!0)}set hideUtilityNetworkContent(e){this.viewModel.featureViewModelAbilities??={},this.viewModel.featureViewModelAbilities.utilityNetworkAssociationsContent=!e}get selectedDrillInFeature(){let e=Array.from(this.flowItems).at(-1);return e&&"graphic"in e?e.graphic??null:null}get selectedFeatureComponent(){return this._selectedFeatureComponent.value??null}async clear(){return this.viewModel.clear()}async close(){this.viewModel.visible=!1}async destroy(){await this.manager.destroy(),await this._destroySpinner(this.referenceElement),this._cancelOpenRelatedFeature(),this._removeFlowItems(),this._unobserveFeatureMenuObserver(),this._featureMenuIntersectionObserver?.disconnect()}async fetchFeatures(e,t){return await this.viewModel.fetchFeatures(e,t)}async open(e){this.viewModel.open(e)}async next(){return this.viewModel.next()}async previous(){return this.viewModel.previous()}async setFocus(){this._flowContainerNode.value?.setFocus()}async triggerAction(e){if(!e.disabled)return e?.type==="toggle"&&(e.value=!e.value),await P(e,this.viewModel)}loaded(){this.manager.onLifecycle(()=>[v(()=>this.viewModel?.selectedFeatureIndex,(e,t)=>this._selectedFeatureIndexUpdated(e,t)),v(()=>this.viewModel?.view,()=>this._viewChange()),v(()=>this._spinnerEl?.screenLocation,()=>this._closeOpenActionMenu()),v(()=>this.selectedFeatureComponent?.viewModel,()=>this._removeFlowItems()),v(()=>this.viewModel?.featureViewModels,()=>this._featureMenuViewportScrollTop()),v(()=>[this.flowItems?.length,this.featureMenuOpen],()=>{this.setFocus()}),v(()=>this.referenceElement,(e,t)=>{this._destroySpinner(t),this._createSpinner()},{initial:!0}),v(()=>[this.hideSpinner,this.viewModel?.view,this.viewModel?.location,this.viewModel?.waitingForResult,this.viewModel?.view],()=>void this._createSpinner(),{initial:!0})])}_handleClose(){this.close(),this.arcgisClose.emit()}_groupResultsByLayer(){let{featureViewModels:e}=this.viewModel,t=new Map;return e.forEach(i=>{let a=i?.graphic;if(!a)return;let s=O(a),o=q(s)?s:null,c=t.get(o)??[];t.set(o,[...c,i])}),t}_handleCollapseToggle(){this.collapsed=!this.collapsed}async _openRelatedFeature(e){this._cancelOpenRelatedFeature();let t=new AbortController;this._openRelatedFeatureAbortController=t,await e.updateGeometry();let i=e.graphic,a=i?.geometry;if(a==null||i==null)return;this._removeFlowItems(),await this.viewModel.zoomTo({target:a});let s=X(a);s!=null&&(this.location=s),this.features=[i],this.visible=!0,await this.setFocus(),this._openRelatedFeatureAbortController===t&&(this._openRelatedFeatureAbortController=null)}_handlePaginationMenuButton(){this._updateFeatureMenu()}_openFeatureMenu(){this._updateFeatureMenu(!0)}_closeFeatureMenu(){this._updateFeatureMenu(!1)}_updateFeatureMenu(e=!this.featureMenuOpen){this.featureMenuOpen=e}_previousFeature(){this.viewModel.previous()}_nextFeature(){this.viewModel.next()}_handleFeatureBack(){this.initialDisplayMode==="list"?(this.selectedFeatureIndex=-1,this.setFocus()):this._openFeatureMenu()}_handleFeatureMenuBack(){this.initialDisplayMode==="list"?(this.selectedFeatureIndex=-1,this.setFocus()):this.featureMenuOpen&&this._closeFeatureMenu()}_setActiveFeature(e){let{viewModel:t}=this;t.activeFeature=t.features?.[e]||null}_removeActiveFeature(){this.viewModel.activeFeature=null}_selectFeature(e){this.viewModel.selectedFeatureIndex=e,this.initialDisplayMode==="feature"?this._handleFeatureMenuBack():this.setFocus()}_unobserveFeatureMenuObserver(){this._featureMenuIntersectionObserverNode&&this._featureMenuIntersectionObserver.unobserve(this._featureMenuIntersectionObserverNode)}_featureMenuIntersectionObserverCreated(e){this._unobserveFeatureMenuObserver(),e&&this._featureMenuIntersectionObserver.observe(e),this._featureMenuIntersectionObserverNode=e}_getActionTitle(e){let{messages:t,selectedFeature:i}=this,{id:a}=e,s=i?.attributes,o=e.title??"",c=a==="zoom-to-feature"?g(o,{messages:t}):a==="remove-selected-feature"?g(o,{messages:t}):a==="zoom-to-clustered-features"?g(o,{messages:t}):a==="browse-clustered-features"?g(o,{messages:t}):e.title;return c&&s?g(c,s):c??""}_onMainKeydown(e){let{key:t}=e;t==="ArrowLeft"&&(e.stopPropagation(),this._handleFeatureMenuBack(),this.previous(),this.setFocus()),t==="ArrowRight"&&(e.stopPropagation(),this._handleFeatureMenuBack(),this.next(),this.setFocus())}_featureMenuViewportScrollTop(){this._featureMenuViewportNode&&this._featureMenuViewportNode.value?.scrollContentTo({top:0})}_selectedFeatureIndexUpdated(e,t){let{featureCount:i,waitingForResult:a}=this.viewModel;a||!i||e===t||e===-1||(this._removeFlowItems(),this._rootFlowItemNode.value?.scrollContentTo({top:0}))}_triggerAction(e){this.triggerAction(e),this.arcgisTriggerAction.emit({action:e})}_viewChange(){this.viewModel.clear(),this.viewModel.visible=!1}_closeOpenActionMenu(){let{_actionBarMenuNode:e}=this;e.value&&(e.value.menuOpen=!1)}_removeFlowItems(){this.flowItems.removeAll()}_getDrillInFlowItemDescription(e){switch(e.flowType){case"feature":case"feature-association":case"feature-utility-network-associations":case"feature-utility-network-association-type":return e.description;case"feature-relationship":return e.allItemsDescription}}_handleDrillInBackClick(){this.flowItems?.pop()}_getHeading(){let{hideHeading:e}=this,{title:t,selectedFeatureViewModel:i}=this.viewModel;return i&&!e?i?.state==="error"?this.messages?.errorMessage??"":i?.title||"":!e&&t?t:""}async _destroySpinner(e){e?.manager?.component?.extraContent?.remove(this._spinnerEl)}async _createSpinner(){let e=this.referenceElement;e&&(await this._destroySpinner(e),this._spinnerEl=V(n`<arcgis-spinner .label=${this.messages.loading??""} .trackLocation=${!this.hideSpinner&&this.viewModel?.waitingForResult} .location=${this.viewModel?.location??void 0} .view=${this.viewModel?.view??void 0}></arcgis-spinner>`),e.manager?.component?.extraContent?.add(this._spinnerEl))}render(){return n`<div class=${l(r.base)} @keydown=${this._onMainKeydown}>${this._renderHeader()}${this._renderContentContainer()}</div>`}_renderFeatureNavigation(){return[this._renderPagination(),this.initialDisplayMode==="list"?this._renderFeaturePaginationText():this._renderFeatureMenuButton()]}_renderHeader(){return this.featureNavigationTop&&this._featureNavigationVisible?n`<div class=${l(r.header)}>${this._renderFeatureNavigation()}</div>`:null}_renderFooter(){return!this.featureNavigationTop&&this._featureNavigationVisible?n`<div class=${l(r.footer)} slot=footer>${this._renderFeatureNavigation()}</div>`:null}_renderFeaturePaginationText(){let{messages:e,viewModel:t}=this,{featureCount:i,selectedFeatureIndex:a}=t;return n`<div class=${l(r.paginationText)}>${g(e.pageText??"",{index:C(a+1),total:C(i)})}</div>`}_renderFeatureMenuButton(){let{messages:e,viewModel:t}=this,{featureCount:i,selectedFeatureIndex:a,pendingPromisesCount:s}=t;return n`<calcite-action class=${l(r.paginationMenuButton)} icon=list .label=${e.selectFeature} .loading=${s>0} @click=${this._handlePaginationMenuButton} .text=${g(e.pageText??"",{index:C(a+1),total:C(i)})} text-enabled title=${e.selectFeature??h}></calcite-action>`}_renderPagination(){let{previous:e,next:t}=this.messages;return n`<calcite-action-bar class=${l(r.paginationActionBar)} expand-disabled layout=horizontal overflow-actions-disabled scale=s><calcite-action-group scale=s><calcite-action class=${l(r.paginationPrevious)} icon=chevron-left icon-flip-rtl .label=${e??""} @click=${this._previousFeature} .text=${e??""} title=${e??""??h}></calcite-action><calcite-action icon=chevron-right icon-flip-rtl .label=${t??""} @click=${this._nextFeature} .text=${t??""} title=${t??""??h}></calcite-action></calcite-action-group></calcite-action-bar>`}_renderFeatureMenuItem(e){let{initialDisplayMode:t}=this,{selectedFeatureViewModel:i,featureViewModels:a}=this.viewModel,s=e===i,o=a.indexOf(e);return n`<calcite-list-item @blur=${this._removeActiveFeature} @focus=${()=>this._setActiveFeature(o)} @mouseleave=${this._removeActiveFeature} @mouseover=${()=>this._setActiveFeature(o)} .selected=${s} @calciteListItemSelect=${()=>this._selectFeature(o)}><span .innerHTML=${(S.sanitize(e.title)||this.messages.untitled)??""} slot=content></span>${t==="list"?n`<calcite-icon flip-rtl icon=chevron-right scale=s slot=content-end></calcite-icon>`:null}</calcite-list-item>`}_renderFeatureMenu(){let{messages:e,viewModel:t}=this,i=this._groupResultsByLayer(),a=this.initialDisplayMode==="list"?"none":"single";return t.featureViewModels.length?n`<calcite-list display-mode=flat .label=${e?.featuresList??""} selection-appearance=icon .selectionMode=${a}>${Array.from(i.keys(),s=>{let o=i.get(s)?.map(u=>this._renderFeatureMenuItem(u)),c=s?s.title??this.messages.untitled:null;return!this.hideFeatureListLayerTitle&&c!==null?F(s??"map-graphics",n`<calcite-list-item-group .heading=${c}>${o}</calcite-list-item-group>`):o})}</calcite-list>`:null}_renderHeaderAction(e){let t=e.title||"";return e.visible?n`<calcite-action .active=${e.type==="toggle"?e.value:!1} .disabled=${e.disabled} .icon=${e.icon??void 0} .indicator=${e.active} .loading=${e.active} @click=${()=>this._triggerAction(e)} slot=header-actions-end .text=${t} title=${t??h}></calcite-action>`:null}_renderHeaderActions(){return this.headerActions.map(e=>this._renderHeaderAction(e)).toArray()}_renderContentFeature(){let{headingLevel:e,hideCloseButton:t,_isCollapsed:i,_collapseEnabled:a,featureNavigationTop:s,flowItems:o,initialDisplayMode:c,selectedFeature:u,featureMenuOpen:f}=this,{active:_}=this.viewModel,m=this._getHeading();if(c==="list"&&!u)return null;let x=o.length===0&&(c==="list"?!!u:!f);return n`<calcite-flow-item class=${l($({[r.contentFeature]:!0,[r.flowItemCollapsed]:i}))} .closable=${!t} .closed=${!_} .collapsed=${i} .collapseDirection=${s?"down":"up"} .collapsible=${a} .headingLevel=${e} .selected=${x} @calciteFlowItemBack=${this._handleFeatureBack} .loading=${!!this._openRelatedFeatureAbortController} @calciteFlowItemClose=${this._handleClose} @calciteFlowItemToggle=${this._handleCollapseToggle} .heading=${y(m)} ${w(this._rootFlowItemNode)}>${this._renderHeaderActions()}${this._renderActionBar()}<div class=${l($(r.container,r.contentContainer))}>${this._renderContent()}</div>${this._renderFooter()}</calcite-flow-item>`}_renderFeatureMenuContainer(){let{viewModel:e,hideCloseButton:t,featureMenuTitle:i,messages:a,initialDisplayMode:s,featureMenuOpen:o,selectedFeature:c,_collapseEnabled:u,_isCollapsed:f,featureNavigationTop:_,headingLevel:m}=this,{active:x,featureViewModels:z,pendingPromisesCount:U}=e,Z=i??a.selectFeature;if(s==="feature"&&!o)return null;let j=s==="list"?!c:o;return n`<calcite-flow-item class=${l($({[r.flowItemCollapsed]:f}))} .closable=${s==="list"&&!t} .closed=${!x} .collapsed=${s==="list"&&f} .collapseDirection=${_?"down":"up"} .collapsible=${s==="list"&&u} .description=${this.hideFeatureMenuHeading?void 0:g(a.total??"",{total:z.length})} .heading=${this.hideFeatureMenuHeading?void 0:Z} .headingLevel=${m} .loading=${e.waitingForContents} .selected=${j} @calciteFlowItemBack=${K=>{K.preventDefault(),this._handleFeatureMenuBack()}} @calciteFlowItemClose=${this._handleClose} @calciteFlowItemToggle=${this._handleCollapseToggle} ${w(this._featureMenuViewportNode)}>${s==="list"?this._renderHeaderActions():null}${U>0?n`<calcite-loader class=${l(r.loader)} inline .label=${a.loading??""} slot=header-actions-end></calcite-loader>`:null}<div class=${l(r.container)}>${this._renderFeatureMenu()}</div><div class=${l(r.featureMenuObserver)} ${w(this._featureMenuIntersectionObserverCreated)}></div>${s==="feature"?n`<calcite-button appearance=transparent @click=${this._handleFeatureMenuBack} slot=footer-start width=full>${a.back}</calcite-button>`:null}</calcite-flow-item>`}_renderFlowItem(e,t){let{messages:i,hideCloseButton:a,active:s}=this,o="graphic"in e&&"isFeatureFromTable"in e&&!e.isFeatureFromTable,c=e.flowType==="feature-association",u=i.returnToInitialFeature??"",f=i?.selectFeature,_=this._getActionTitle(A);return n`<calcite-flow-item .closable=${!a} .closed=${!s} .description=${y(this._getDrillInFlowItemDescription(e)??"")} .heading=${this.hideHeading?void 0:y(e.heading??"")} .selected=${t} @calciteFlowItemBack=${m=>{m.preventDefault(),this._handleDrillInBackClick()}} .loading=${!!this._openRelatedFeatureAbortController} @calciteFlowItemClose=${this._handleClose}><calcite-action class=${l(r.actionExit)} icon=move-up @click=${this._removeFlowItems} slot=header-actions-start .text=${u??""} title=${u??""??h}></calcite-action>${o?n`<calcite-action icon=zoom-to-object @click=${()=>this._openRelatedFeature(e)} slot=header-actions-end .text=${f??""} title=${f??h}></calcite-action>`:null}${c?n`<calcite-action-bar expand-disabled expanded scale=s slot=action-bar><calcite-action-group overlay-positioning=fixed scale=s><calcite-action .disabled=${A.disabled} .icon=${A.icon??void 0} .loading=${A.active} scale=s text-enabled .text=${_} title=${_??h} @click=${()=>R(this.viewModel,e)}></calcite-action></calcite-action-group></calcite-action-bar>`:null}<div class=${l(r.container)}>${e}</div></calcite-flow-item>`}_renderContentContainer(){let e=this.flowItems?.toArray(),t=e?.map((a,s)=>this._renderFlowItem(a,this.initialDisplayMode==="list"||!this.featureMenuOpen&&s===e.length-1)),i=this.initialDisplayMode==="list"?[this._renderFeatureMenuContainer(),this._renderContentFeature(),t]:[this._renderContentFeature(),t,this._renderFeatureMenuContainer()];return this.hideFlow?i:n`<calcite-flow ${w(this._flowContainerNode)}>${i}</calcite-flow>`}_renderActionBar(){return!this._isCollapsed&&!this.hideActionBar&&this.viewModel.allActions?.length?n`<calcite-action-bar expand-disabled .expanded=${!this._hideActionText} scale=s slot=action-bar><calcite-action-group overlay-positioning=fixed scale=s ${w(this._actionBarMenuNode)}>${this._renderActions()}</calcite-action-group></calcite-action-bar>`:null}_renderActions(){return this.viewModel.allActions.toArray().map(e=>{let t=this._getActionTitle(e);return n`<calcite-action .active=${e.type==="toggle"?e.value:!1} .disabled=${e.disabled} .icon=${e.icon??void 0} .loading=${e.active} scale=s .textEnabled=${!this._hideActionText} .text=${t??""} title=${t??h} .hidden=${!e.visible} @click=${()=>this._triggerAction(e)}></calcite-action>`})}_renderContent(){let{content:e,selectedFeatureViewModel:t}=this.viewModel;return t?F(t,n`<arcgis-feature .chartAnimationDisabled=${this.chartAnimationDisabled} .defaultPopupTemplateEnabled=${this.defaultPopupTemplateEnabled} .flowItems=${this.flowItems} .graphic=${t.graphic} .headingLevel=${this.headingLevel+1} .hideAttachmentsContent=${this.hideAttachmentsContent} .hideContent=${this.hideContent} .hideCustomContent=${this.hideCustomContent} .hideExpressionContent=${this.hideExpressionContent} .hideFieldsContent=${this.hideFieldsContent} hide-heading .hideLastEditedInfo=${this.hideLastEditedInfo} .hideMediaContent=${this.hideMediaContent} .hideTextContent=${this.hideTextContent} .location=${this.location} .map=${this.map} .referenceElement=${this.referenceElement} .showRelationshipContent=${!this.hideRelationshipContent} .showUtilityNetworkContent=${!this.hideUtilityNetworkContent} .spatialReference=${this.spatialReference} .timeZone=${this.timeZone} ${w(this._selectedFeatureComponent)}></arcgis-feature>`):typeof e=="string"?F(e,n`<div .innerHTML=${S.sanitize(e)??""}></div>`):e??null}};D("arcgis-features",I);return I},"widgets/Features/FeaturesViewModel","intl","core/reactiveUtils","applications/Components/stringUtils","core/Collection","applications/Components/sanitizerUtils",a,c,d,e,f,g)