@arcgis/map-components 5.0.0-next.98 → 5.0.0-next.99

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 (471) hide show
  1. package/dist/cdn/{GRSFTR67.js → 2DGI5UYX.js} +2 -2
  2. package/dist/cdn/{75AWXYQZ.js → 2R7MNJA2.js} +2 -2
  3. package/dist/cdn/{FIXKLQIP.js → 2SKKF2NH.js} +1 -1
  4. package/dist/cdn/{KA4OLE22.js → 33HGWB5I.js} +2 -2
  5. package/dist/cdn/{VVYRYQ3M.js → 3BDHIPCH.js} +2 -2
  6. package/dist/cdn/{35JLEE3X.js → 3D3H3GIL.js} +1 -1
  7. package/dist/cdn/{ZMO52S7I.js → 3DB4PZBA.js} +2 -2
  8. package/dist/cdn/{7UKE6GNR.js → 3N4NFTYH.js} +2 -2
  9. package/dist/cdn/{CM4LP7PB.js → 4E5JRSGM.js} +2 -2
  10. package/dist/cdn/{F3RHQXIU.js → 4GX3ASA2.js} +2 -2
  11. package/dist/cdn/{VBNQC63F.js → 4JSE3AHY.js} +2 -2
  12. package/dist/cdn/{V7PYKC3D.js → 4KU75YX7.js} +2 -2
  13. package/dist/cdn/{HF53HS2R.js → 53I7V52Y.js} +2 -2
  14. package/dist/cdn/{GQ3W3PK5.js → 5CXEDBFM.js} +2 -2
  15. package/dist/cdn/{H64VMQN3.js → 5G4PBY5U.js} +2 -2
  16. package/dist/cdn/{F3R5JZUL.js → 5GNFQ33V.js} +2 -2
  17. package/dist/cdn/{TJBN6XVR.js → 5LOJCEQL.js} +2 -2
  18. package/dist/cdn/{R6JXUKXU.js → 5WAPNWH3.js} +2 -2
  19. package/dist/cdn/{X6YVVH76.js → 5ZRL66KF.js} +2 -2
  20. package/dist/cdn/{N7DC42OS.js → 5ZY5ZBN7.js} +2 -2
  21. package/dist/cdn/{LB5FAKNC.js → 63WOTDUZ.js} +2 -2
  22. package/dist/cdn/{GIBZWFB7.js → 64GJIJTL.js} +2 -2
  23. package/dist/cdn/{MUOWS5F7.js → 65T5ZOSR.js} +2 -2
  24. package/dist/cdn/{GSC2W54H.js → 66ZZWS6L.js} +2 -2
  25. package/dist/cdn/{DBRIZTQS.js → 6CFWLOO3.js} +2 -2
  26. package/dist/cdn/{CUQ3DYL5.js → 6DX7IY37.js} +2 -2
  27. package/dist/cdn/{QDXVWTXS.js → 6HAZEU62.js} +2 -2
  28. package/dist/cdn/{B6NTHN6T.js → 6N5RABGB.js} +2 -2
  29. package/dist/cdn/{UR4GMMCN.js → 6TRH3Z4V.js} +2 -2
  30. package/dist/cdn/{X3IMILBP.js → 6TVZQPA6.js} +2 -2
  31. package/dist/cdn/{TIV3O74P.js → 736NZFKN.js} +2 -2
  32. package/dist/cdn/{BH6F3GA5.js → 74UV2RUE.js} +2 -2
  33. package/dist/cdn/{KIWMDEWG.js → 75BJZAPU.js} +2 -2
  34. package/dist/cdn/{FUIS67EA.js → 7C7PBZUN.js} +2 -2
  35. package/dist/cdn/{KV6RH24S.js → 7F5MVVAA.js} +2 -2
  36. package/dist/cdn/{GBU7QM5U.js → 7GJ6CZNS.js} +2 -2
  37. package/dist/cdn/{O64GDUTA.js → 7HEOBYXL.js} +2 -2
  38. package/dist/cdn/{GZL257OI.js → 7PWARBJN.js} +2 -2
  39. package/dist/cdn/{NH35IVXX.js → ACC3K5AF.js} +2 -2
  40. package/dist/cdn/{4VFXWHQ4.js → AD3KFAKH.js} +2 -2
  41. package/dist/cdn/{QRDZQ7E7.js → AM7NQ3NE.js} +1 -1
  42. package/dist/cdn/{QAZPLW3B.js → AOGSM52R.js} +2 -2
  43. package/dist/cdn/{LJLLJJSA.js → APMSMLQY.js} +2 -2
  44. package/dist/cdn/{LAATAC4S.js → AUPLCHQ4.js} +2 -2
  45. package/dist/cdn/{U37PPER2.js → B4G76PWN.js} +2 -2
  46. package/dist/cdn/{X2XHAOOP.js → B7MKGRF2.js} +2 -2
  47. package/dist/cdn/{HFWQ5LIV.js → BGC46RIF.js} +2 -2
  48. package/dist/cdn/{LRXXBOF6.js → BGJACPT7.js} +2 -2
  49. package/dist/cdn/{JHVYO6IW.js → BNVLR6IK.js} +2 -2
  50. package/dist/cdn/{4E4YUYD3.js → BOAEW3NB.js} +2 -2
  51. package/dist/cdn/{6FPKHF2T.js → BU2OCDYA.js} +2 -2
  52. package/dist/cdn/BYTKHFPT.js +4 -0
  53. package/dist/cdn/{NMEPB5OW.js → CAUFBJIX.js} +2 -2
  54. package/dist/cdn/{65QONEVM.js → COTUQQ7A.js} +2 -2
  55. package/dist/cdn/{NFOHYZAZ.js → CQVKTWRM.js} +2 -2
  56. package/dist/cdn/{CPL6ARL5.js → D5J5PQZY.js} +2 -2
  57. package/dist/cdn/{4WCGX5UD.js → D5O6B3Y3.js} +2 -2
  58. package/dist/cdn/{LKYEUPJZ.js → D6JGIKOW.js} +2 -2
  59. package/dist/cdn/{QDYUHMYK.js → DBJP5UDP.js} +2 -2
  60. package/dist/cdn/{F7FP35ZX.js → DDJSUV73.js} +2 -2
  61. package/dist/cdn/{DETDYAJK.js → DHJV2H2G.js} +2 -2
  62. package/dist/cdn/DWQZXUXR.js +4 -0
  63. package/dist/cdn/{CCSKKMIO.js → DY5TQ32C.js} +2 -2
  64. package/dist/cdn/{NJ3JQKVZ.js → E4DICFVM.js} +2 -2
  65. package/dist/cdn/{5Z3IZMQX.js → E4T3O3ZS.js} +2 -2
  66. package/dist/cdn/{RD46LEGA.js → E53R7MWL.js} +1 -1
  67. package/dist/cdn/{W77RTKNL.js → EAOH4V3Q.js} +2 -2
  68. package/dist/cdn/{EM44SJ2N.js → EBL2K7PS.js} +2 -2
  69. package/dist/cdn/{ZO6AMB5P.js → ERILZ54F.js} +2 -2
  70. package/dist/cdn/{LBBTGZJD.js → EXABNQKD.js} +2 -2
  71. package/dist/cdn/{3E7BRDKM.js → EXMK6ER2.js} +1 -1
  72. package/dist/cdn/{COEGI3C3.js → EYTG2BZF.js} +2 -2
  73. package/dist/cdn/{IY6MCI7X.js → F6BHCEAQ.js} +1 -1
  74. package/dist/cdn/{GR5WNCRJ.js → FCCJPPXM.js} +2 -2
  75. package/dist/cdn/{T47G6L5G.js → FDD7FM45.js} +2 -2
  76. package/dist/cdn/{EF45AMFZ.js → FLAIPVET.js} +2 -2
  77. package/dist/cdn/{E3HU6AEF.js → FNC2QRTA.js} +2 -2
  78. package/dist/cdn/FOM65BSO.js +9 -0
  79. package/dist/cdn/{7KOOTEYA.js → FSVAWVAL.js} +2 -2
  80. package/dist/cdn/{C2IXXMGG.js → FZWGGJFK.js} +2 -2
  81. package/dist/cdn/{YN4TVDZP.js → G5CNZTEL.js} +1 -1
  82. package/dist/cdn/{F4LMHTIM.js → G65PODU6.js} +2 -2
  83. package/dist/cdn/{D3AKOIHC.js → GBCCOZLU.js} +2 -2
  84. package/dist/cdn/{SJS5USAO.js → GDSL45AS.js} +2 -2
  85. package/dist/cdn/{I2KJEKLH.js → GKNYL7BT.js} +2 -2
  86. package/dist/cdn/GRE52X4J.js +4 -0
  87. package/dist/cdn/{UG4JYOCJ.js → GSCOZDJX.js} +2 -2
  88. package/dist/cdn/{7JY4LWXM.js → GSRNBSOY.js} +2 -2
  89. package/dist/cdn/GYLOR57W.js +4 -0
  90. package/dist/cdn/{6TQQY43J.js → H2GO4635.js} +2 -2
  91. package/dist/cdn/{5RWFT6UQ.js → H4PVA4HH.js} +2 -2
  92. package/dist/cdn/{K5EL4B3I.js → H5JAHZUY.js} +2 -2
  93. package/dist/cdn/{QEKSKDMW.js → H5PYPKWD.js} +2 -2
  94. package/dist/cdn/H6G6APH4.js +4 -0
  95. package/dist/cdn/{7QNMT7QD.js → H7GMNPTS.js} +2 -2
  96. package/dist/cdn/{LWWIKCAK.js → H7Z2RIRL.js} +2 -2
  97. package/dist/cdn/{YR7MI3HQ.js → HCVJAV2X.js} +2 -2
  98. package/dist/cdn/{ETI2ZFVV.js → HDEK5ZL6.js} +2 -2
  99. package/dist/cdn/HHTDY27H.js +4 -0
  100. package/dist/cdn/{3HXLUP7I.js → HHYKMA7Q.js} +2 -2
  101. package/dist/cdn/{IDVYNITG.js → HI3M64EY.js} +2 -2
  102. package/dist/cdn/{THWHDQC2.js → HJ7H5JWV.js} +2 -2
  103. package/dist/cdn/{75BOVG37.js → HPQOOV3Y.js} +2 -2
  104. package/dist/cdn/{F4QBTS25.js → HQANF5PZ.js} +2 -2
  105. package/dist/cdn/{AYAPPWIR.js → HQYQOJIT.js} +2 -2
  106. package/dist/cdn/{JOZG637V.js → HRCVUNXE.js} +1 -1
  107. package/dist/cdn/{ZX3SYTZE.js → I2UBP43S.js} +2 -2
  108. package/dist/cdn/{5C32XD6H.js → I5JIPTE4.js} +2 -2
  109. package/dist/cdn/{ACSCRDNT.js → IASUBI6T.js} +2 -2
  110. package/dist/cdn/{TYJNB7MY.js → IFEPX7UC.js} +2 -2
  111. package/dist/cdn/{JCNG5BJH.js → IKMODDEA.js} +2 -2
  112. package/dist/cdn/{QZXTP5VI.js → IN5YV5HF.js} +1 -1
  113. package/dist/cdn/IOK74AI4.js +4 -0
  114. package/dist/cdn/{NLKWPSHT.js → IQT2SUIX.js} +2 -2
  115. package/dist/cdn/{NRQXXJBB.js → IT2TCWQP.js} +2 -2
  116. package/dist/cdn/{PLGELAK4.js → IZ5OR4NF.js} +2 -2
  117. package/dist/cdn/{DIVLKY3C.js → JA5VQX5F.js} +2 -2
  118. package/dist/cdn/{HCTLF6WH.js → JIZKVYS3.js} +2 -2
  119. package/dist/cdn/{K6UKX75J.js → JM7M72QK.js} +2 -2
  120. package/dist/cdn/{737K4FKY.js → JSO527A6.js} +2 -2
  121. package/dist/cdn/{657JFXB2.js → JVMQUCJZ.js} +2 -2
  122. package/dist/cdn/JYESQEIF.js +4 -0
  123. package/dist/cdn/{JMMB6X3H.js → JYQB6OBN.js} +2 -2
  124. package/dist/cdn/{PYG3CKGN.js → K7OEAU3B.js} +2 -2
  125. package/dist/cdn/{6HMYG7N3.js → KAZKCFDH.js} +2 -2
  126. package/dist/cdn/KDH5I5HL.js +4 -0
  127. package/dist/cdn/{QRVBD3EB.js → KJEUZJXN.js} +2 -2
  128. package/dist/cdn/{VDM4B634.js → KLNGVV6Q.js} +2 -2
  129. package/dist/cdn/{WJHAFOF4.js → KMZRQMAL.js} +1 -1
  130. package/dist/cdn/{3GOMS7RY.js → KOGHUA6Y.js} +2 -2
  131. package/dist/cdn/{465BU3VI.js → KS7AV2RB.js} +2 -2
  132. package/dist/cdn/{TP3DG3MR.js → KSC7ZPRZ.js} +2 -2
  133. package/dist/cdn/{UQK4EW6M.js → KVFBFVG2.js} +2 -2
  134. package/dist/cdn/{HT7FTMYE.js → KWAGGSDZ.js} +1 -1
  135. package/dist/cdn/{AZFAZU5B.js → LHUA5KVA.js} +2 -2
  136. package/dist/cdn/{IOFCS62D.js → LO753PY7.js} +2 -2
  137. package/dist/cdn/{QRKWI3VY.js → LSHT2EGH.js} +2 -2
  138. package/dist/cdn/{EFJB7DXR.js → LSXXEN4A.js} +2 -2
  139. package/dist/cdn/{MG5VDQZA.js → LWG7CKJZ.js} +2 -2
  140. package/dist/cdn/{TEZ5OE3Y.js → LYSFTL7Z.js} +1 -1
  141. package/dist/cdn/{R7LM54MY.js → M7YYA7NM.js} +1 -1
  142. package/dist/cdn/{K2PGY5VO.js → MAH6LRDG.js} +2 -2
  143. package/dist/cdn/{FK5BC44G.js → MJ3TLG4N.js} +2 -2
  144. package/dist/cdn/{5U4CFBIT.js → MWGAKZCI.js} +2 -2
  145. package/dist/cdn/{MHG5BJPI.js → N43BYLHY.js} +2 -2
  146. package/dist/cdn/{FX6K5BXR.js → NARXK34C.js} +2 -2
  147. package/dist/cdn/{X4IBILDC.js → NCG6DUG7.js} +2 -2
  148. package/dist/cdn/{KDVX4IG5.js → NH3FJXCW.js} +2 -2
  149. package/dist/cdn/{JD75II3L.js → NKTNAJ2O.js} +2 -2
  150. package/dist/cdn/{M5LJJHIQ.js → NPQCC6SK.js} +2 -2
  151. package/dist/cdn/{GH37574O.js → NXXL4YJG.js} +2 -2
  152. package/dist/cdn/{HCLSSYHJ.js → NYCYDBVN.js} +2 -2
  153. package/dist/cdn/{YOFVJY54.js → NZ6FJNYI.js} +2 -2
  154. package/dist/cdn/{WYCGG2LH.js → NZUS437W.js} +2 -2
  155. package/dist/cdn/{VXPXYX7B.js → OLH7BBVU.js} +2 -2
  156. package/dist/cdn/{IUBXNYZN.js → OMIDE525.js} +2 -2
  157. package/dist/cdn/{2LSAKHQS.js → ONDA2HBR.js} +2 -2
  158. package/dist/cdn/{W6FEPN7L.js → OO5TK362.js} +2 -2
  159. package/dist/cdn/{MBBOH6RP.js → OOPJH2NF.js} +2 -2
  160. package/dist/cdn/OU54CORX.js +4 -0
  161. package/dist/cdn/{QORB73WX.js → OZL7UG3V.js} +2 -2
  162. package/dist/cdn/{PLPV66L3.js → P7HP6NNS.js} +2 -2
  163. package/dist/cdn/{BMDGCZBE.js → PEXJQCCO.js} +2 -2
  164. package/dist/cdn/{7JCD7ZD7.js → PLMM5RH2.js} +2 -2
  165. package/dist/cdn/{CPACQEH3.js → Q2WEADCE.js} +2 -2
  166. package/dist/cdn/Q4AJOY6Y.js +4 -0
  167. package/dist/cdn/{4LQPECU7.js → Q57W533I.js} +2 -2
  168. package/dist/cdn/{I2JMJITY.js → QNIEGS32.js} +2 -2
  169. package/dist/cdn/{IJQNFNZW.js → QPPDUT33.js} +2 -2
  170. package/dist/cdn/{EEYH7T5K.js → QS6Y4E6Y.js} +2 -2
  171. package/dist/cdn/{TU4MOZXE.js → QTEHKIWL.js} +2 -2
  172. package/dist/cdn/{BWQABIAV.js → QUMDUONL.js} +2 -2
  173. package/dist/cdn/QVUSKQPZ.js +4 -0
  174. package/dist/cdn/{F2ALHO7D.js → RG4VZH6N.js} +2 -2
  175. package/dist/cdn/{VVUWGWI4.js → RYVIKUWC.js} +2 -2
  176. package/dist/cdn/{RYDDNPLR.js → SDFCD74V.js} +2 -2
  177. package/dist/cdn/{D3UUZ37C.js → SIBWE6N3.js} +2 -2
  178. package/dist/cdn/{ZEFQVSYO.js → SPCF4C7M.js} +2 -2
  179. package/dist/cdn/{2HQ5YUBJ.js → SQMPQPEB.js} +2 -2
  180. package/dist/cdn/SUUV7VRC.js +4 -0
  181. package/dist/cdn/{HYSRZUD4.js → SV2XXT5O.js} +2 -2
  182. package/dist/cdn/{HNNLENCO.js → SYEIHPPK.js} +2 -2
  183. package/dist/cdn/{DPKA6YFG.js → T23I5QI6.js} +2 -2
  184. package/dist/cdn/{PAQ7AUB6.js → T6PUJAWM.js} +1 -1
  185. package/dist/cdn/{EGYT3RVM.js → TCMWZ6WB.js} +2 -2
  186. package/dist/cdn/{XIJP6MIA.js → THKCL2OR.js} +2 -2
  187. package/dist/cdn/{VGM2B5KX.js → TJ7LER7P.js} +2 -2
  188. package/dist/cdn/{IETFYLHE.js → TUF7PAXI.js} +2 -2
  189. package/dist/cdn/{5RRMKWEP.js → U2O3MZPY.js} +2 -2
  190. package/dist/cdn/{UFYNFOQC.js → U32WDIX5.js} +2 -2
  191. package/dist/cdn/{3LCQ7NNJ.js → UAQ6ULZU.js} +2 -2
  192. package/dist/cdn/{XSP7SODU.js → UG6KQNJ2.js} +2 -2
  193. package/dist/cdn/{2MPFWFIT.js → UQSQ4ITV.js} +2 -2
  194. package/dist/cdn/{4L6H2XMW.js → UTC36EJ4.js} +1 -1
  195. package/dist/cdn/{4TE6JQBA.js → V24SOY6W.js} +2 -2
  196. package/dist/cdn/{7GMSB4QV.js → V3JXEI6N.js} +2 -2
  197. package/dist/cdn/{KHCTD46T.js → VCDBVSX7.js} +2 -2
  198. package/dist/cdn/{SE2JHPYK.js → VDATZD7O.js} +2 -2
  199. package/dist/cdn/{KCC57AJ5.js → VEMAYUSU.js} +1 -1
  200. package/dist/cdn/{PYLEGS7T.js → VIDVDG7J.js} +2 -2
  201. package/dist/cdn/{WYJREC2J.js → VISO5ZMW.js} +2 -2
  202. package/dist/cdn/{NVMKWURN.js → VN3KQG5V.js} +2 -2
  203. package/dist/cdn/{SYXO654O.js → VQRF2EZV.js} +2 -2
  204. package/dist/cdn/{KDSPOQTG.js → VT5MWEA6.js} +2 -2
  205. package/dist/cdn/{M4ZB77V2.js → VV3IXUET.js} +2 -2
  206. package/dist/cdn/{BS3NHIKJ.js → VV4L3B36.js} +2 -2
  207. package/dist/cdn/{DVLQA5TH.js → WB4AUXMC.js} +2 -2
  208. package/dist/cdn/WGU6GVBL.js +4 -0
  209. package/dist/cdn/{XCG6ZWD3.js → WZGJ7JZA.js} +2 -2
  210. package/dist/cdn/{6WLAPF4C.js → X4L436LB.js} +2 -2
  211. package/dist/cdn/{YGQY6TLE.js → XDFDCZ4I.js} +2 -2
  212. package/dist/cdn/{LLHXYKNW.js → XDZNHAWF.js} +2 -2
  213. package/dist/cdn/{PZHLBK6I.js → XGUTA74S.js} +2 -2
  214. package/dist/cdn/{R4F7V7LP.js → XHBNERPQ.js} +2 -2
  215. package/dist/cdn/XONCTUD3.js +4 -0
  216. package/dist/cdn/{C6J7P2ZR.js → XPKEBNIL.js} +2 -2
  217. package/dist/cdn/{2TAR4IYI.js → YBLIMDZB.js} +2 -2
  218. package/dist/cdn/{COCRM4GK.js → YCRDUNIK.js} +2 -2
  219. package/dist/cdn/{NIKDGKUF.js → YJVDEJWS.js} +2 -2
  220. package/dist/cdn/{WEPFBGQM.js → YJYUDPDR.js} +3 -3
  221. package/dist/cdn/{VI3SNORV.js → YPDEZK2W.js} +2 -2
  222. package/dist/cdn/{W4DLPGEW.js → YRU5JFPU.js} +2 -2
  223. package/dist/cdn/{ZT2ZOTV3.js → YYNWI2S3.js} +2 -2
  224. package/dist/cdn/{XGX4E5BY.js → Z24DIOHS.js} +2 -2
  225. package/dist/cdn/{OMZPRFOK.js → Z4C5TZ2R.js} +2 -2
  226. package/dist/cdn/{D6CTASYU.js → Z57ZHDL7.js} +2 -2
  227. package/dist/cdn/{A3B3AV7B.js → ZB54UUIN.js} +2 -2
  228. package/dist/cdn/{YAGXB2B4.js → ZCJOY6I3.js} +2 -2
  229. package/dist/cdn/{CFPAYMRO.js → ZCMGS45S.js} +2 -2
  230. package/dist/cdn/{5ZV6TG6N.js → ZCTOQZLO.js} +2 -2
  231. package/dist/cdn/{UHW72KDU.js → ZEBBMDMI.js} +2 -2
  232. package/dist/cdn/{5ERPFUEV.js → ZJWLCOCC.js} +2 -2
  233. package/dist/cdn/{KCLH3OZS.js → ZK2XGOEJ.js} +2 -2
  234. package/dist/cdn/{NOR5FEQU.js → ZMNJD7AL.js} +2 -2
  235. package/dist/cdn/{V36Z3ZLZ.js → ZMRE3NMI.js} +2 -2
  236. package/dist/cdn/{MNJKPL3Q.js → ZOAQTCXH.js} +2 -2
  237. package/dist/cdn/{J4FZGH4A.js → ZVYCGLRY.js} +2 -2
  238. package/dist/cdn/{OYY467J3.js → ZXHYWLIK.js} +2 -2
  239. package/dist/cdn/assets/building-explorer/t9n/messages.en.json +1 -0
  240. package/dist/cdn/index.js +2 -2
  241. package/dist/cdn/main.css +1 -1
  242. package/dist/chunks/AnalysisViewModel.js +1 -1
  243. package/dist/chunks/action-utils.js +1 -1
  244. package/dist/chunks/async-utils.js +1 -1
  245. package/dist/chunks/basemap-gallery-resources.js +1 -1
  246. package/dist/chunks/building-layer-utils.js +48 -0
  247. package/dist/chunks/chart-utils.js +1 -1
  248. package/dist/chunks/chartCommon.js +1 -1
  249. package/dist/chunks/component-utils.js +1 -1
  250. package/dist/chunks/component-wrapper.js +19 -0
  251. package/dist/chunks/constants.js +27 -5
  252. package/dist/chunks/createCloseEvent.js +1 -1
  253. package/dist/chunks/esri-main.js +1 -1
  254. package/dist/chunks/feature-utils.js +1 -1
  255. package/dist/chunks/globalCss.js +1 -1
  256. package/dist/chunks/handle.js +1 -1
  257. package/dist/chunks/heading.js +1 -1
  258. package/dist/chunks/layer-list.js +1 -1
  259. package/dist/chunks/legacyIcon.js +1 -1
  260. package/dist/chunks/maybe.js +1 -1
  261. package/dist/chunks/measurementUtils.js +1 -1
  262. package/dist/chunks/runtime.js +1 -1
  263. package/dist/chunks/screenLocation.js +1 -1
  264. package/dist/chunks/slots.js +1 -1
  265. package/dist/chunks/svgUtils.js +1 -1
  266. package/dist/chunks/time-utils.js +1 -1
  267. package/dist/chunks/univariateUtils.js +1 -1
  268. package/dist/chunks/useArcgisViewReadyError.js +1 -1
  269. package/dist/chunks/useHandles.js +1 -1
  270. package/dist/chunks/useT9n.js +1 -1
  271. package/dist/chunks/useView.js +1 -1
  272. package/dist/chunks/useViewModel.js +1 -1
  273. package/dist/chunks/useWidget.js +1 -1
  274. package/dist/chunks/utils.js +1 -1
  275. package/dist/chunks/utils2.js +1 -1
  276. package/dist/chunks/visible-element.js +1 -1
  277. package/dist/components/arcgis-area-measurement-2d/customElement.js +1 -1
  278. package/dist/components/arcgis-area-measurement-3d/customElement.js +1 -1
  279. package/dist/components/arcgis-attachments/customElement.js +1 -1
  280. package/dist/components/arcgis-basemap-gallery/customElement.js +1 -1
  281. package/dist/components/arcgis-basemap-gallery-item/customElement.js +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.js +1 -1
  285. package/dist/components/arcgis-building-discipline-tree/building-discipline-view-model.d.ts +76 -0
  286. package/dist/components/arcgis-building-discipline-tree/customElement.d.ts +15 -0
  287. package/dist/components/arcgis-building-discipline-tree/customElement.js +278 -0
  288. package/dist/components/arcgis-building-discipline-tree/index.d.ts +5 -0
  289. package/dist/components/arcgis-building-discipline-tree/index.js +5 -0
  290. package/dist/components/arcgis-building-discipline-tree/layer-tree-node.d.ts +80 -0
  291. package/dist/components/arcgis-building-explorer/building-filter/BuildingFilterController.d.ts +14 -0
  292. package/dist/components/arcgis-building-explorer/building-filter/BuildingLevel.d.ts +15 -0
  293. package/dist/components/arcgis-building-explorer/building-filter/BuildingNumericFilterViewModel.d.ts +118 -0
  294. package/dist/components/arcgis-building-explorer/building-filter/BuildingPhase.d.ts +28 -0
  295. package/dist/components/arcgis-building-explorer/customElement.d.ts +87 -90
  296. package/dist/components/arcgis-building-explorer/customElement.js +560 -14
  297. package/dist/components/arcgis-building-explorer/index.d.ts +4 -0
  298. package/dist/components/arcgis-building-explorer/index.js +4 -0
  299. package/dist/components/arcgis-building-explorer/support/building-layer-utils.d.ts +61 -0
  300. package/dist/components/arcgis-building-explorer/support/filter-utils.d.ts +60 -0
  301. package/dist/components/arcgis-building-explorer/support/layer-utils.d.ts +8 -0
  302. package/dist/components/arcgis-building-explorer/support/types.d.ts +25 -0
  303. package/dist/components/arcgis-building-explorer/support/validation.d.ts +36 -0
  304. package/dist/components/arcgis-building-level-item/customElement.d.ts +28 -0
  305. package/dist/components/arcgis-building-level-item/customElement.js +45 -0
  306. package/dist/components/arcgis-building-level-item/index.d.ts +1 -0
  307. package/dist/components/arcgis-building-level-item/index.js +1 -0
  308. package/dist/components/arcgis-building-level-picker/constants.d.ts +48 -0
  309. package/dist/components/arcgis-building-level-picker/customElement.d.ts +16 -0
  310. package/dist/components/arcgis-building-level-picker/customElement.js +178 -0
  311. package/dist/components/arcgis-building-level-picker/index.d.ts +4 -0
  312. package/dist/components/arcgis-building-level-picker/index.js +4 -0
  313. package/dist/components/arcgis-building-phase-picker/customElement.d.ts +15 -0
  314. package/dist/components/arcgis-building-phase-picker/customElement.js +78 -0
  315. package/dist/components/arcgis-building-phase-picker/index.d.ts +2 -0
  316. package/dist/components/arcgis-building-phase-picker/index.js +2 -0
  317. package/dist/components/arcgis-catalog-layer-list/customElement.js +1 -1
  318. package/dist/components/arcgis-color-select/customElement.js +22 -23
  319. package/dist/components/arcgis-compass/customElement.js +1 -1
  320. package/dist/components/arcgis-coordinate-conversion/customElement.js +1 -1
  321. package/dist/components/arcgis-daylight/customElement.js +150 -159
  322. package/dist/components/arcgis-direct-line-measurement-3d/customElement.js +1 -1
  323. package/dist/components/arcgis-directional-pad/customElement.js +1 -1
  324. package/dist/components/arcgis-directions/customElement.js +1 -1
  325. package/dist/components/arcgis-distance-measurement-2d/customElement.js +1 -1
  326. package/dist/components/arcgis-editor/customElement.js +1 -1
  327. package/dist/components/arcgis-elevation-profile/customElement.js +1 -1
  328. package/dist/components/arcgis-elevation-profile-legend/customElement.js +1 -1
  329. package/dist/components/arcgis-elevation-profile-legend-item/customElement.js +1 -1
  330. package/dist/components/arcgis-elevation-profile-settings/customElement.js +1 -1
  331. package/dist/components/arcgis-elevation-profile-statistics/customElement.js +1 -1
  332. package/dist/components/arcgis-expand/customElement.js +1 -1
  333. package/dist/components/arcgis-feature/customElement.js +1 -1
  334. package/dist/components/arcgis-feature-attachments/customElement.js +1 -1
  335. package/dist/components/arcgis-feature-content/customElement.js +1 -1
  336. package/dist/components/arcgis-feature-element-info/customElement.js +1 -1
  337. package/dist/components/arcgis-feature-expression/customElement.js +1 -1
  338. package/dist/components/arcgis-feature-fields/customElement.js +1 -1
  339. package/dist/components/arcgis-feature-form/customElement.js +1 -1
  340. package/dist/components/arcgis-feature-media/customElement.js +1 -1
  341. package/dist/components/arcgis-feature-relationship/customElement.js +1 -1
  342. package/dist/components/arcgis-feature-table/customElement.js +1 -1
  343. package/dist/components/arcgis-feature-templates/customElement.js +1 -1
  344. package/dist/components/arcgis-feature-utility-network-association-list/customElement.js +1 -1
  345. package/dist/components/arcgis-feature-utility-network-associations/customElement.js +1 -1
  346. package/dist/components/arcgis-features/customElement.js +1 -1
  347. package/dist/components/arcgis-floor-filter/customElement.js +1 -1
  348. package/dist/components/arcgis-fullscreen/customElement.js +1 -1
  349. package/dist/components/arcgis-grid-controls/customElement.js +1 -1
  350. package/dist/components/arcgis-histogram-range-slider/customElement.js +1 -1
  351. package/dist/components/arcgis-home/customElement.js +1 -1
  352. package/dist/components/arcgis-labeled-switch/customElement.js +1 -1
  353. package/dist/components/arcgis-layer-list/customElement.js +1 -1
  354. package/dist/components/arcgis-layer-list-item/customElement.js +1 -1
  355. package/dist/components/arcgis-legend/customElement.js +1 -1
  356. package/dist/components/arcgis-legend-card-color-ramp/customElement.js +1 -1
  357. package/dist/components/arcgis-legend-card-element/customElement.js +1 -1
  358. package/dist/components/arcgis-legend-card-size-ramp/customElement.js +1 -1
  359. package/dist/components/arcgis-legend-card-univariate-above-and-below-ramp/customElement.js +1 -1
  360. package/dist/components/arcgis-legend-card-univariate-color-size-ramp/customElement.js +1 -1
  361. package/dist/components/arcgis-legend-card-view/customElement.js +1 -1
  362. package/dist/components/arcgis-legend-classic-color-ramp/customElement.js +1 -1
  363. package/dist/components/arcgis-legend-classic-element/customElement.js +1 -1
  364. package/dist/components/arcgis-legend-classic-size-ramp/customElement.js +1 -1
  365. package/dist/components/arcgis-legend-classic-univariate-above-and-below-ramp/customElement.js +1 -1
  366. package/dist/components/arcgis-legend-classic-univariate-color-size-ramp/customElement.js +1 -1
  367. package/dist/components/arcgis-legend-classic-view/customElement.js +1 -1
  368. package/dist/components/arcgis-legend-relationship-ramp/customElement.js +1 -1
  369. package/dist/components/arcgis-legend-spike-ramp/customElement.js +1 -1
  370. package/dist/components/arcgis-line-of-sight/customElement.js +1 -1
  371. package/dist/components/arcgis-link-chart/customElement.d.ts +1 -1
  372. package/dist/components/arcgis-link-chart/customElement.js +1 -1
  373. package/dist/components/arcgis-link-chart-layout-switcher/customElement.js +1 -1
  374. package/dist/components/arcgis-locate/customElement.js +1 -1
  375. package/dist/components/arcgis-map/customElement.d.ts +1 -1
  376. package/dist/components/arcgis-map/customElement.js +1 -1
  377. package/dist/components/arcgis-measurement/customElement.js +1 -1
  378. package/dist/components/arcgis-measurement-content/customElement.js +1 -1
  379. package/dist/components/arcgis-navigation-toggle/customElement.js +1 -1
  380. package/dist/components/arcgis-oriented-imagery-viewer/customElement.js +1 -1
  381. package/dist/components/arcgis-placement/customElement.js +1 -1
  382. package/dist/components/arcgis-popup/customElement.js +1 -1
  383. package/dist/components/arcgis-presentation/customElement.js +1 -1
  384. package/dist/components/arcgis-print/customElement.js +1 -1
  385. package/dist/components/arcgis-print-custom-text-elements/customElement.js +1 -1
  386. package/dist/components/arcgis-print-dpi-input/customElement.js +1 -1
  387. package/dist/components/arcgis-print-export-button/customElement.js +1 -1
  388. package/dist/components/arcgis-print-exports-panel/customElement.js +1 -1
  389. package/dist/components/arcgis-print-format-select/customElement.js +1 -1
  390. package/dist/components/arcgis-print-layout-advanced-options/customElement.js +1 -1
  391. package/dist/components/arcgis-print-layout-panel/customElement.js +1 -1
  392. package/dist/components/arcgis-print-main-panel/customElement.js +1 -1
  393. package/dist/components/arcgis-print-map-only-advanced-options/customElement.js +1 -1
  394. package/dist/components/arcgis-print-map-only-panel/customElement.js +1 -1
  395. package/dist/components/arcgis-print-out-spatial-reference-input/customElement.js +1 -1
  396. package/dist/components/arcgis-print-preview-input/customElement.js +1 -1
  397. package/dist/components/arcgis-print-scale-section/customElement.js +1 -1
  398. package/dist/components/arcgis-print-template-select/customElement.js +1 -1
  399. package/dist/components/arcgis-print-template-selector/customElement.js +1 -1
  400. package/dist/components/arcgis-scale-bar/customElement.js +1 -1
  401. package/dist/components/arcgis-scale-range-slider/customElement.js +1 -1
  402. package/dist/components/arcgis-scene/customElement.d.ts +1 -1
  403. package/dist/components/arcgis-scene/customElement.js +1 -1
  404. package/dist/components/arcgis-search/customElement.js +1 -1
  405. package/dist/components/arcgis-search-result-renderer/customElement.js +1 -1
  406. package/dist/components/arcgis-shadow-cast/constants.d.ts +0 -1
  407. package/dist/components/arcgis-shadow-cast/customElement.js +13 -14
  408. package/dist/components/arcgis-shadow-cast-discrete-config/customElement.js +1 -1
  409. package/dist/components/arcgis-shadow-cast-min-duration-config/customElement.js +30 -25
  410. package/dist/components/arcgis-shadow-cast-total-duration-config/customElement.js +1 -1
  411. package/dist/components/arcgis-sketch/customElement.js +1 -1
  412. package/dist/components/arcgis-slice/customElement.js +1 -1
  413. package/dist/components/arcgis-spinner/customElement.js +1 -1
  414. package/dist/components/arcgis-swipe/customElement.js +1 -1
  415. package/dist/components/arcgis-table-list/customElement.js +1 -1
  416. package/dist/components/arcgis-time-slider/customElement.js +1 -1
  417. package/dist/components/arcgis-time-zone-label/customElement.js +1 -1
  418. package/dist/components/arcgis-track/customElement.js +1 -1
  419. package/dist/components/arcgis-unit-select/customElement.js +1 -1
  420. package/dist/components/arcgis-utility-network-association-list/customElement.js +1 -1
  421. package/dist/components/arcgis-utility-network-associations/customElement.js +1 -1
  422. package/dist/components/arcgis-utility-network-subnetwork-info/customElement.js +1 -1
  423. package/dist/components/arcgis-utility-network-trace/customElement.js +1 -1
  424. package/dist/components/arcgis-utility-network-trace-analysis/customElement.js +1 -1
  425. package/dist/components/arcgis-utility-network-trace-inputs/customElement.js +1 -1
  426. package/dist/components/arcgis-utility-network-trace-location/customElement.js +1 -1
  427. package/dist/components/arcgis-utility-network-trace-location-list/customElement.js +1 -1
  428. package/dist/components/arcgis-utility-network-trace-results/customElement.js +1 -1
  429. package/dist/components/arcgis-utility-network-validate-topology/customElement.js +1 -1
  430. package/dist/components/arcgis-value-picker/customElement.js +1 -1
  431. package/dist/components/arcgis-version-management/customElement.js +1 -1
  432. package/dist/components/arcgis-version-management-service-item/customElement.js +1 -1
  433. package/dist/components/arcgis-version-management-version-list/customElement.js +1 -1
  434. package/dist/components/arcgis-version-management-version-properties/customElement.js +1 -1
  435. package/dist/components/arcgis-video/customElement.d.ts +1 -1
  436. package/dist/components/arcgis-video/customElement.js +1 -1
  437. package/dist/components/arcgis-video-player/customElement.js +1 -1
  438. package/dist/components/arcgis-video-player-action-bar/customElement.js +1 -1
  439. package/dist/components/arcgis-video-player-actions-group/customElement.js +1 -1
  440. package/dist/components/arcgis-video-player-controls-group/customElement.js +1 -1
  441. package/dist/components/arcgis-video-player-metadata/customElement.js +1 -1
  442. package/dist/components/arcgis-video-player-settings/customElement.js +1 -1
  443. package/dist/components/arcgis-video-player-slider/customElement.js +1 -1
  444. package/dist/components/arcgis-volume-measurement/customElement.js +1 -1
  445. package/dist/components/arcgis-weather/customElement.js +109 -105
  446. package/dist/components/arcgis-zoom/customElement.js +1 -1
  447. package/dist/docs/api.json +700 -142
  448. package/dist/docs/docs.json +753 -116
  449. package/dist/docs/vscode.html-custom-data.json +84 -21
  450. package/dist/docs/web-types.json +235 -36
  451. package/dist/index.d.ts +36 -0
  452. package/dist/index.js +1 -1
  453. package/dist/loader.js +6 -2
  454. package/dist/types/lumina.d.ts +24 -1
  455. package/dist/types/preact.d.ts +28 -1
  456. package/dist/types/preact10.d.ts +32 -1
  457. package/dist/types/react.d.ts +32 -1
  458. package/dist/types/stencil.d.ts +24 -1
  459. package/dist/utils/types.d.ts +5 -0
  460. package/package.json +3 -3
  461. package/dist/cdn/4EATRTT6.js +0 -4
  462. package/dist/cdn/4I7IWVVP.js +0 -4
  463. package/dist/cdn/6ELF5N37.js +0 -9
  464. package/dist/cdn/ATK5UP3L.js +0 -4
  465. package/dist/cdn/F5FPHXVF.js +0 -4
  466. package/dist/cdn/F62DS77Z.js +0 -4
  467. package/dist/cdn/MQ62MHFW.js +0 -4
  468. package/dist/cdn/NE7N5CJA.js +0 -4
  469. package/dist/cdn/OAPF6SY7.js +0 -4
  470. package/dist/cdn/QVP5DYCF.js +0 -4
  471. package/dist/components/arcgis-weather/css.d.ts +0 -10
@@ -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.98 */
4
- import{a as $}from"./IY6MCI7X.js";import{a as _}from"./4L6H2XMW.js";import f from"./W4DLPGEW.js";import e from"./OYY467J3.js";import{a as B}from"./QRDZQ7E7.js";import d from"./K6UKX75J.js";import{a as U}from"./2LSAKHQS.js";import{a as u}from"./PAQ7AUB6.js";import c from"./QRVBD3EB.js";import a from"./XSP7SODU.js";import{g as k}from"./PLPV66L3.js";import"./VBNQC63F.js";import"./FIXKLQIP.js";import"./3E7BRDKM.js";import{M as x,N as C,O as v,Q as g,T as S,a as w,b as l,x as b}from"./RD46LEGA.js";import"./35JLEE3X.js";export default $arcgis.t(([{ignoreAbortErrors:V},F,{getDefaultUnitForView:E},{property:a,subclass:A},{watch:m},{createChart:I},,,M,{a:O,d:f},z])=>{var T=w`.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}.esri-widget{--esri-widget-padding-x: 15px;--esri-widget-padding-y: var(--calcite-spacing-md);--esri-widget-padding: var(--esri-widget-padding-y) var(--esri-widget-padding-x);box-sizing:border-box;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget *,.esri-widget :before,.esri-widget :after{box-sizing:inherit}.esri-widget.esri-widget--disabled>*{opacity:.4;pointer-events:none}.esri-widget.esri-widget--compact{--esri-widget-padding-y: 0;--esri-widget-padding-x: 0}.esri-widget__anchor{color:var(--calcite-color-text-2)}.esri-widget__anchor:hover{color:var(--calcite-color-text-3)}.esri-widget__anchor:hover,.esri-widget__anchor:focus{text-decoration:underline}.esri-widget__anchor--disabled{opacity:.4;pointer-events:none}.esri-widget__header{background-color:var(--calcite-color-foreground-1);flex:1 0 100%;justify-content:space-between;align-items:center;width:100%;min-height:48px;padding:12px 0 12px 15px;display:flex}.esri-widget__header .esri-widget__heading{width:calc(100% - 48px);text-align:initial;color:var(--calcite-color-text-1);align-items:center;margin:0;padding:0;display:flex}.esri-widget__header-button{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);border:none;flex:0 0 48px;justify-content:center;align-self:stretch;align-items:center;width:48px;padding:0;display:flex}.esri-widget__footer{background-color:var(--calcite-color-foreground-1);justify-content:center;align-items:center;width:100%;min-height:48px;display:flex}.esri-widget__footer-pagination{color:var(--calcite-color-text-2);justify-content:space-between;align-items:center;display:flex}.esri-widget__footer-pagination-previous-button,.esri-widget__footer-pagination-next-button{cursor:pointer;background-color:var(--calcite-color-foreground-1);border:0;margin:0 7px;padding:12px 15px;transition:background-color .125s ease-in-out}.esri-widget__footer-pagination-previous-button:hover,.esri-widget__footer-pagination-previous-button:focus,.esri-widget__footer-pagination-next-button:hover,.esri-widget__footer-pagination-next-button:focus{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1)}.esri-menu{visibility:hidden;z-index:1;background-clip:padding;background-color:var(--calcite-color-foreground-1);background-clip:padding-box;width:100%;max-height:0;margin:2px 0 0;padding:0;font-size:var(--calcite-font-size);line-height:var(--calcite-spacing-xl);position:absolute;top:100%;left:0;overflow:hidden;box-shadow:0 1px 2px #0000004d}.esri-menu .esri-menu__header{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-inverse);padding:6px 12px}.esri-menu__list{margin:0;padding:0;list-style:none}.esri-menu__list-item{cursor:pointer;border-top:1px solid #adadad4d;border-left:3px solid #0000;padding:.8em 1em}.esri-menu__list-item [class^=esri-icon-],.esri-menu__list-item [class*=" esri-icon-"]{padding-right:2.8px}.esri-menu__list-item:first-child{border-top:none}.esri-menu__list-item--focus,.esri-menu__list-item:hover,.esri-menu__list-item:focus{background-color:var(--calcite-color-foreground-1)}.esri-menu__list-item:active{background-color:var(--calcite-color-foreground-current)}.esri-menu__list-item--active,.esri-menu__list-item--active:hover,.esri-menu__list-item--active:focus{background-color:var(--calcite-color-foreground-1);border-left-color:var(--calcite-color-brand)}.esri-widget__table{border-collapse:collapse;color:var(--calcite-color-text-1);border:none;width:100%;line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget__table tr:nth-child(odd){background-color:var(--calcite-color-transparent)}.esri-widget__table tr:nth-child(2n){background-color:var(--calcite-color-transparent-press)}.esri-widget__table tr a{color:var(--calcite-color-text-2)}.esri-widget__table tr a:hover,.esri-widget__table tr a:focus{color:var(--calcite-color-text-1)}.esri-widget__table tr td,.esri-widget__table tr th{vertical-align:top;word-break:break-word;padding:.5em .7em;font-size:var(--calcite-font-size-sm);font-weight:var(--calcite-font-weight-regular)}.esri-widget__table tr th{text-align:left;border-right:3px solid #0000000d;width:50%}.esri-widget__table tr td{width:50%}.esri-input{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1);border:1px solid #959595;font-size:var(--calcite-font-size)}.esri-input::-ms-clear{display:none}.esri-input::placeholder{opacity:1;color:var(--calcite-color-text-2)}.esri-input:placeholder-shown{text-overflow:ellipsis}.esri-input[type=text],.esri-input[type=password],.esri-input[type=number]{height:32px;padding:0 .5em}calcite-combobox.esri-input{border:none}.esri-widget__content--empty{text-align:center;color:var(--calcite-color-border-input);flex-flow:column wrap;align-items:center;padding:18px 22px;display:flex}.esri-widget__content--empty h1.esri-widget__heading,.esri-widget__content--empty h2.esri-widget__heading,.esri-widget__content--empty h3.esri-widget__heading,.esri-widget__content--empty h4.esri-widget__heading,.esri-widget__content--empty h5.esri-widget__heading{font-weight:var(--calcite-font-weight-regular)}.esri-widget__content-illustration--empty{width:128px;padding:1rem 0}.esri-widget__content-icon--empty{width:32px;padding:.5rem 0}.esri-select{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background:var(--calcite-color-foreground-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -8 32 32' width='32' height='32'%3E%3Cpath d='M8 11.207l-4-4V5.793l4 4 4-4v1.414z' fill='%23adadad' fillrule='nonzero'/%3E%3C/svg%3E") 100% no-repeat;border:1px solid #959595;border-radius:0;width:100%;height:32px;margin:0;padding:0 .5em;font-family:inherit;font-size:.85em;display:block}.esri-select[disabled]{cursor:auto}.esri-select::-ms-expand{display:none}.esri-disabled a,.esri-disabled [role=menu],.esri-disabled [role=checkbox],.esri-disabled [class^=esri-icon-],.esri-disabled [class*=" esri-icon-"]{color:var(--calcite-color-text-3)}.keynav-mode .esri-widget:focus,.keynav-mode .esri-widget :focus{z-index:1;outline-offset:2px;outline:2px solid #adadad}.esri-widget__loader-animation{border:.15em solid #adadad4d;border-top-color:var(--calcite-color-border-input);border-radius:100%;width:1em;height:1em;font-size:var(--calcite-font-size-md);animation:1.25s linear infinite esri-rotate;display:block;transform:translateZ(0)}:dir(rtl) .esri-widget__table th{text-align:right;border-left:3px solid #0000000d;border-right:none}:dir(rtl) .esri-select{background-position:0}:dir(rtl) .esri-menu__list-item{border-left:none;border-right:3px solid #0000}:dir(rtl) .esri-menu__list-item [class^=esri-icon-],:dir(rtl) .esri-menu__list-item [class*=" esri-icon-"]{padding-left:2px;padding-right:0}:dir(rtl) .esri-menu__list-item--active{border-right-color:var(--calcite-color-brand)}.esri-icon-font-fallback-text{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.esri-rotating{animation:1.25s linear infinite esri-rotate;transform:translateZ(0)}.esri-clearfix:before,.esri-clearfix:after{content:" ";display:table}.esri-clearfix:after{clear:both}.esri-interactive{cursor:pointer}.esri-hidden{display:none!important}.esri-invisible{visibility:hidden!important}.esri-offscreen{position:absolute;top:-999em;left:-999em}.esri-match-height{flex-direction:column;flex:auto;display:flex;overflow:hidden}.esri-widget--panel{min-width:300px;min-height:32px;padding:var(--esri-widget-padding);transition:max-height .25s ease-in-out;overflow-y:auto}:host{--internal-chart-height: 180px;--internal-gap: var(--calcite-spacing-sm-plus);width:550px;isolation:isolate;padding:var(--esri-widget-padding);position:relative;container-type:inline-size}.container{display:flex;flex-direction:column;width:100%;min-width:0;gap:var(--internal-gap)}.header{display:flex;flex-direction:row;align-items:center;justify-content:flex-end;margin-bottom:calc(var(--internal-gap) * -1)}.actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:var(--calcite-spacing-xs)}.action-button{width:auto;min-height:32px}.main-container{display:flex;position:relative;flex-flow:column;width:100%;height:var(--internal-chart-height)}.chart-container{position:relative;width:100%;height:100%}.prompt-container{box-sizing:border-box;display:grid;place-content:center;padding-inline:var(--calcite-spacing-md);height:100%;text-align:center}.prompt-message{margin:0;width:100%}.spinner{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transition:opacity .15s ease-in-out;transition-delay:0;opacity:0;&.visible{transition-delay:50ms;opacity:1}&.small{inset-inline-start:0;top:-22px;left:unset;transform:none;color:var(--calcite-color-brand)}}@container (max-width: 400px){.esri-widget--panel{height:auto}.actions{flex-direction:column}.action-button{align-self:stretch}}`;function L({geometry:t}){return t!=null&&t.type==="polyline"&&t.paths.length>0&&t.paths.every(e=>e.length>=2)}function R({geometry:t}){return t?.type==="polyline"&&t.paths.reduce((e,i)=>e+i.length,0)>0}function Z(t){return t?.samples?.some(e=>e.z!=null)??!1}function H(t){return t?.type==="polyline"}async function j(t,e,i){let r=await q(t,e);return O(i),G(r)?r.highlight(e):$()}async function q(t,e){let i=e?.layer;if(!(!i||i.type==="subtype-sublayer"||i.type==="sublayer"||i.type==="building-component"))return await t.whenLayerView(i)}function G(t){return t!=null&&"highlight"in t&&typeof t.highlight=="function"}var J=Object.defineProperty,N=Object.getOwnPropertyDescriptor,s=(t,e,i,r)=>{for(var o=r>1?void 0:r?N(e,i):e,c=t.length-1,d;c>=0;c--)(d=t[c])&&(o=(r?d(e,i,o):d(o))||o);return r&&o&&J(e,i,o),o},n=class extends z{constructor(){super(...arguments),this.highlightDisabled=!1,this.uniformChartScaling=!1,this.shouldForceInteractive=!1,this.supportedViewType="both",this.unsupportedErrorMessage=""}get _measurementSystem(){return this.view?E(this.view):void 0}get _hasSamples(){let{progress:t}=this;return!!this.analysisView?.results?.some(e=>e.available&&(t<1||Z(e)))}get doneButtonAvailable(){if(this.featureIsSelected)return!1;let{geometry:t}=this.analysis;return H(t)&&t.paths.length>0&&t.paths[0].length>2}get effectiveDisplayUnits(){return this.analysisView?.effectiveDisplayUnits}get errorState(){if(!L(this.analysis))return"no-valid-input";let t=this.analysisView?.error;if(t)switch(t.name){case"too-complex":return"too-complex";case"elevation-query-error":return"no-valid-input";default:return"unknown"}return this._hasSamples?"none":"no-available-profiles"}get feature(){return this._selectedFeature}set feature(t){t?t!==this.feature&&(this.analysis.setGeometryFromFeature(t),this._selectedFeature=t):this._selectedFeature=void 0}get featureIsSelected(){return this.feature!=null}get hasVertices(){return R(this.analysis)}get indicatorRelativePosition(){return this.analysisView?.indicatorRelativePosition??void 0}get geometry(){return this.analysis.geometry}set geometry(t){this.analysis.geometry=t}get elevationInfo(){return this.analysis.elevationInfo}set elevationInfo(t){this.analysis.elevationInfo=t}get profiles(){return this.analysis.profiles}set profiles(t){this.analysis.profiles=t}get progress(){return this.analysisView?.progress??0}get results(){return this.analysisView?.results??[]}get selectButtonAvailable(){for(let t of this.view?.map?.allLayers.toArray()??[])if(t.type==="graphics"&&!("internal"in t&&t.internal)&&t.graphics.some(e=>e.geometry?.type==="polyline")||"geometryType"in t&&t.geometryType==="polyline")return!0;return!!this.view?.graphics?.some(t=>t.geometry?.type==="polyline")}get state(){return this.disabled||!this.ready?"disabled":this._selectingPromise?"selecting":this.operationState==="active"?"creating":this.analysis.valid?this.featureIsSelected?"selected":"created":"ready"}get distanceUnit(){return D(this._userDistanceUnit??this.analysis.displayUnits?.distance??void 0,this.distanceUnitOptions,this._measurementSystem)}set distanceUnit(t){this._userDistanceUnit=t}get distanceUnitOptions(){return P(this._userDistanceUnitOptions)}set distanceUnitOptions(t){this._userDistanceUnitOptions=t}get elevationUnit(){return D(this._userElevationUnit??this.analysis.displayUnits?.elevation??void 0,this.elevationUnitOptions,this._measurementSystem)}set elevationUnit(t){this._userElevationUnit=t}get elevationUnitOptions(){return P(this._userElevationUnitOptions)}set elevationUnitOptions(t){this._userElevationUnitOptions=t}initialize(){this.addHandles([m(()=>({analysis:this.analysis,unitDistance:this.distanceUnit,unitElevation:this.elevationUnit}),({analysis:t,unitDistance:e,unitElevation:i})=>{if(t!=null){let r=t.displayUnits;r.elevation=i,r.distance=e}},{sync:!0,initial:!0}),m(()=>({selectedFeature:this.feature,profiles:this.analysis.profiles.toArray()}),({selectedFeature:t,profiles:e},i)=>{this._highlightSelectedFeature(this.highlightDisabled?void 0:t),this.analysis.viewOptions.geometryVisualizationVisible=!this.highlightDisabled&&t==null;let r=i?.selectedFeature;e.forEach(o=>{switch(o.type){case"scene":this._excludeSelectedFeatureFromProfile(o,t,r);break;case"input":o.chartOptions.lineVisible=t!=null,o.viewOptions.lineVisible=t!=null;break}})},{initial:!0})])}destroy(){this._removeSelectionHighlight()}async select(){let t=this.analysisView;if(!t)return;let e=super.start({operation:async i=>{let r=await t.pickFeature(i);i?.signal?.aborted||(t.interactive=!1,this.feature=r.feature)},clear:!1});e.finally(()=>{this._selectingPromise===e&&(this._selectingPromise=void 0)}),this._selectingPromise=e,await e.catch()}async place(t){await this.analysisView?.place(t)}clearAnalysis(){this.geometry=null,this.elevationInfo=null,this.feature=void 0}constructAnalysis(){return new F}_highlightSelectedFeature(t){this._removeSelectionHighlight();let e=this.view;!e||!t||(this._selectionHighlightTask=f(async i=>await j(e,t,{signal:i})))}_removeSelectionHighlight(){this._selectionHighlightTask?.value?.remove(),this._selectionHighlightTask=B(this._selectionHighlightTask)}_excludeSelectedFeatureFromProfile(t,e,i){let r=new Set(t.exclude??[]);i&&r.delete(i),e&&r.add(e),t.exclude=Array.from(r)}};s([a()],n.prototype,"_userDistanceUnit",2);s([a()],n.prototype,"_userDistanceUnitOptions",2);s([a()],n.prototype,"_userElevationUnit",2);s([a()],n.prototype,"_userElevationUnitOptions",2);s([a({readOnly:!0})],n.prototype,"_measurementSystem",1);s([a()],n.prototype,"_selectingPromise",2);s([a()],n.prototype,"_selectedFeature",2);s([a()],n.prototype,"_selectionHighlightTask",2);s([a()],n.prototype,"_hasSamples",1);s([a()],n.prototype,"doneButtonAvailable",1);s([a({readOnly:!0})],n.prototype,"effectiveDisplayUnits",1);s([a({readOnly:!0})],n.prototype,"errorState",1);s([a()],n.prototype,"feature",1);s([a()],n.prototype,"featureIsSelected",1);s([a({readOnly:!0})],n.prototype,"hasVertices",1);s([a()],n.prototype,"highlightDisabled",2);s([a()],n.prototype,"indicatorRelativePosition",1);s([a()],n.prototype,"geometry",1);s([a()],n.prototype,"elevationInfo",1);s([a()],n.prototype,"profiles",1);s([a({readOnly:!0})],n.prototype,"progress",1);s([a({readOnly:!0})],n.prototype,"results",1);s([a({readOnly:!0})],n.prototype,"selectButtonAvailable",1);s([a({readOnly:!0})],n.prototype,"state",1);s([a()],n.prototype,"uniformChartScaling",2);s([a()],n.prototype,"distanceUnit",1);s([a()],n.prototype,"distanceUnitOptions",1);s([a()],n.prototype,"elevationUnit",1);s([a()],n.prototype,"elevationUnitOptions",1);n=s([A("components.elevation-profile.ElevationProfileViewModel")],n);function D(t,e,i){return t&&e.includes(t)?t:i&&e.includes(i)?i:e[0]}function P(t){let e=t?.filter(i=>_.includes(i));return e&&e.length>0?e:_.slice()}var Q=M(n),y=class extends C{constructor(){super(...arguments),this.viewModel=Q(this),this._messages=U(),this._hideZoomOutButton=!0,this.analysis=this.viewModel.analysis,this.view=this.viewModel.view,this.autoDestroyDisabled=!1,this.effectiveDisplayUnits=this.viewModel.effectiveDisplayUnits,this.feature=this.viewModel.feature,this.hideChart=!1,this.hideClearButton=!1,this.hideLegend=!1,this.hideSelectButton=!1,this.hideSettingsButton=!1,this.hideSketchButton=!1,this.hideUniformChartScalingToggle=!1,this.hideUnitSelector=!1,this.hideVisualization=this.viewModel.hideVisualization,this.highlightDisabled=this.viewModel.highlightDisabled,this.indicatorRelativePosition=this.viewModel.indicatorRelativePosition,this.icon="altitude",this.geometry=this.viewModel.geometry,this.elevationInfo=this.viewModel.elevationInfo,this.profiles=this.viewModel.profiles,this.progress=this.viewModel.progress,this.state=this.viewModel.state,this.uniformChartScaling=this.viewModel.uniformChartScaling,this.distanceUnit=this.viewModel.distanceUnit,this.distanceUnitOptions=this.viewModel.distanceUnitOptions,this.elevationUnit=this.viewModel.elevationUnit,this.elevationUnitOptions=this.viewModel.elevationUnitOptions,this.arcgisPropertyChange=k()("analysis","effectiveDisplayUnits","elevationInfo","feature","geometry","indicatorRelativePosition","progress","state"),this.arcgisReady=b()}static{this.properties={_hideZoomOutButton:16,_chartContainer:16,analysis:0,view:0,autoDestroyDisabled:5,effectiveDisplayUnits:32,feature:0,hideChart:5,hideClearButton:5,hideLegend:5,hideSelectButton:5,hideSettingsButton:5,hideSketchButton:5,hideUniformChartScalingToggle:5,hideUnitSelector:5,hideVisualization:5,highlightDisabled:5,indicatorRelativePosition:40,icon:2,geometry:0,elevationInfo:0,label:1,messageOverrides:0,position:1,referenceElement:1,profiles:0,progress:40,state:3,uniformChartScaling:5,distanceUnit:1,distanceUnitOptions:0,elevationUnit:1,elevationUnitOptions:0}}static{this.styles=T}get _selectButtonVisible(){return!this.hideSelectButton&&this.viewModel.selectButtonAvailable}get _chart(){return this._chartInitializationTask?.value}async destroy(){await this.manager.destroy()}async select(){V(this.viewModel.select())}async start(){V(this.viewModel.start())}async stop(){this.viewModel.stop()}async clear(){this.viewModel.clear()}load(){this.manager.onLifecycle(()=>[m(()=>({container:this._chartContainer}),({container:e})=>{this._destroyChart(),e&&(this._chartInitializationTask=f(async i=>await I({view:this.viewModel.view,analysisView:this.viewModel.analysisView,container:e,messages:this._messages,signal:i,uniformScaling:this.viewModel.uniformChartScaling,onRangeChange:(r,o)=>{this._hideZoomOutButton=r===1&&o===1},onCursorPositionChange:(r,o)=>{let{analysisView:c}=this.viewModel;c&&(c.indicatorRelativePosition=r)}})))},{sync:!0,initial:!0}),m(()=>({chart:this._chart,view:this.viewModel.view,analysisView:this.viewModel.analysisView,uniformScaling:this.viewModel.uniformChartScaling}),({chart:e,view:i,analysisView:r,uniformScaling:o})=>{e&&(e.view=i,e.analysisView=r,e.uniformScaling=o)},{sync:!0,initial:!0}),{remove:()=>this._destroyChart()}])}_destroyChart(){let e=this._chart;this._chartInitializationTask?.abort(),this._chartInitializationTask=void 0,e?.destroy()}_onCancelButtonClick(){this.viewModel.stop(),this.viewModel.clear()}_onDoneButtonClick(){this.viewModel.stop()}_getErrorMessage(){let e=W[this.viewModel.errorState];return e?this._messages?.errors?.[e]:void 0}_onClearButtonClick(){this.viewModel.clear()}_onZoomOutButtonClick(){this._chart?.zoomOut()}_onChartContainerRef(e){this._chartContainer=e}render(){return l`<div aria-label=${this._messages.componentLabel??g} class=${v({container:!0,[u.widget]:!0,[u.widgetDisabled]:this.viewModel.state==="disabled",[u.panel]:!0})} role=presentation>${this._renderContentForState()}</div>`}_renderContentForState(){switch(this.viewModel.state){case"ready":return this._renderContentForReadyState();case"selecting":return this._renderContentForSelectingState();case"creating":return this._renderContentForCreatingState();case"selected":return this._renderContentForSelectedState();case"created":return this._renderContentForCreatedState();case"disabled":return this._renderContentForReadyState()}}_renderContentForReadyState(){let{_messages:e,hideSelectButton:i,hideSketchButton:r}=this,{selectButtonAvailable:o}=this.viewModel,c=!i&&o,d;return!r&&c?d=e.readyPrompt:r?c?d=e.readyPromptSelectOnly:d=e.errors?.noProfile:d=e.readyPromptCreateOnly,this._renderContent({prompt:d,chart:!1,actions:p})}_renderContentForSelectingState(){let{view:e}=this.viewModel;if(!e)return;let i=this._messages[`selectingPrompt-${e.type}`];return this._renderContent({prompt:i,chart:!1,actions:[{type:"select-cancel"}]})}_renderContentForCreatingState(){let{viewModel:e}=this,{view:i}=e;if(!i)return;let r=e.hasVertices?[{type:"sketch-cancel"},{type:"sketch-done",disabled:!e.doneButtonAvailable}]:[{type:"select"},{type:"sketch",disabled:!0}];if(e.errorState==="no-valid-input"){let c=this._messages[`creatingPrompt-${i.type}`];return this._renderContent({chart:!1,actions:r,prompt:c})}let o=this._getErrorMessage();return o?this._renderContent({chart:!1,actions:r,prompt:o}):this._renderContent({chart:!0,actions:r})}_renderContentForSelectedState(){let e=this._getErrorMessage();return e?this._renderContent({chart:!1,actions:p,prompt:e}):this._renderContent({chart:!0,actions:p})}_renderContentForCreatedState(){let e=this._getErrorMessage();return e?this._renderContent({chart:!1,actions:p,prompt:e}):this._renderContent({chart:!0,actions:p})}_renderContent(e){let{viewModel:i}=this,r=i.geometry!=null;return l`<header class="header">${h({hidden:this._hideZoomOutButton,children:this._renderZoomOutButton()})}${h({hidden:this.hideClearButton||!r,children:this._renderClearButton()})}${h({hidden:this.hideSettingsButton,children:this._renderSettingsButton()})}</header><div class="main-container">${e.prompt!=null?this._renderPrompt(e.prompt):e.chart?this._renderChart():void 0}</div>${h({hidden:this.hideLegend,children:this._renderLegend()})}${this._renderActions(e)}`}_renderPrompt(e){return[l`<div class="prompt-container"><p class="prompt-message">${e}</p></div>`]}_renderZoomOutButton(){let e=this._messages.zoomOut??"";return l`<calcite-action icon=magnifying-glass-minus @click=${this._onZoomOutButtonClick} .text=${e} title=${e??g}></calcite-action>`}_renderChart(){if(this.hideChart)return;let e=this._chart;return l`${this._renderSpinner({size:e?.chartVisible?"small":"large",visible:e?.spinnerVisible??!1})}<div class="chart-container" ${x(this._onChartContainerRef)}></div>`}_renderSpinner(e){let i=e.size==="small",r=e.visible??!0;return l`<calcite-loader class=${v({spinner:!0,small:i,visible:r})} .inline=${i} label></calcite-loader>`}_renderClearButton(){let e=this._messages.clearProfile??"";return l`<calcite-action icon=trash @click=${this._onClearButtonClick} .text=${e} title=${e??g}></calcite-action>`}_renderLegend(){return l`<arcgis-elevation-profile-legend .effectiveDisplayUnits=${this.viewModel.effectiveDisplayUnits} .featureSelected=${this.viewModel.featureIsSelected} .messages=${this._messages} .results=${this.viewModel.results}></arcgis-elevation-profile-legend>`}_renderSettingsButton(){return l`<arcgis-elevation-profile-settings .analysis=${this.viewModel.analysis} .hideUniformChartScalingToggle=${this.hideUniformChartScalingToggle} .hideUnitSelector=${this.hideUnitSelector} .messages=${this._messages} .uniformChartScaling=${this.viewModel.uniformChartScaling} .unitOptionsDistance=${this.viewModel.distanceUnitOptions} .unitOptionsElevation=${this.viewModel.elevationUnitOptions} @arcgisElevationProfileSettingsUniformChartScalingChange=${e=>{this.viewModel.uniformChartScaling=e.detail}}></arcgis-elevation-profile-settings>`}_renderActions({actions:e}){let i=this._messages,r=e.map(o=>{switch(o.type){case"sketch":return h({hidden:this.hideSketchButton,children:this._renderAction({action:o,label:i.sketchButtonLabel,primary:!0,onClick:()=>void this.start()})});case"sketch-cancel":return h({hidden:this.hideSketchButton,children:this._renderAction({action:o,label:i.cancelButtonLabel,primary:!1,onClick:this._onCancelButtonClick})});case"sketch-done":return h({hidden:this.hideSketchButton,children:this._renderAction({action:o,label:i.doneButtonLabel,primary:!0,onClick:this._onDoneButtonClick})});case"select":return h({hidden:!this._selectButtonVisible,children:this._renderAction({action:o,label:i.selectButtonLabel,primary:!1,onClick:()=>void this.select()})});case"select-cancel":return h({hidden:!this._selectButtonVisible,children:this._renderAction({action:o,label:i.cancelButtonLabel,primary:!1,onClick:this._onCancelButtonClick})});default:return}}).filter(Boolean);return r.length?l`<footer class="actions">${r}</footer>`:void 0}_renderAction({action:e,label:i,onClick:r,primary:o}){return l`<calcite-button .appearance=${o?"solid":"outline-fill"} class="action-button" .disabled=${e.disabled||void 0} @click=${r}>${i}</calcite-button>`}};function h(t){return t.hidden?void 0:t.children}var p=[{type:"select"},{type:"sketch"}],W={none:void 0,"no-valid-input":"noProfile","no-available-profiles":"noProfile","too-complex":"tooComplex",unknown:"unknown"};S("arcgis-elevation-profile",y);return y},"core/promiseUtils","analysis/ElevationProfileAnalysis","applications/Components/getDefaultUnits","core/accessorSupport/decorators","core/reactiveUtils","applications/Components/analysisUtils",a,c,d,e,f)
3
+ v5.0.0-next.99 */
4
+ import{a as $}from"./F6BHCEAQ.js";import{a as _}from"./UTC36EJ4.js";import f from"./YRU5JFPU.js";import e from"./ZXHYWLIK.js";import{a as B}from"./AM7NQ3NE.js";import d from"./JM7M72QK.js";import{a as U}from"./ONDA2HBR.js";import{a as u}from"./T6PUJAWM.js";import c from"./KJEUZJXN.js";import a from"./UG6KQNJ2.js";import{g as k}from"./P7HP6NNS.js";import"./4JSE3AHY.js";import"./2SKKF2NH.js";import"./EXMK6ER2.js";import{M as x,N as C,O as v,Q as g,T as S,a as w,b as l,x as b}from"./E53R7MWL.js";import"./3D3H3GIL.js";export default $arcgis.t(([{ignoreAbortErrors:V},F,{getDefaultUnitForView:E},{property:a,subclass:A},{watch:m},{createChart:I},,,M,{a:O,d:f},z])=>{var T=w`.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}.esri-widget{--esri-widget-padding-x: 15px;--esri-widget-padding-y: var(--calcite-spacing-md);--esri-widget-padding: var(--esri-widget-padding-y) var(--esri-widget-padding-x);box-sizing:border-box;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget *,.esri-widget :before,.esri-widget :after{box-sizing:inherit}.esri-widget.esri-widget--disabled>*{opacity:.4;pointer-events:none}.esri-widget.esri-widget--compact{--esri-widget-padding-y: 0;--esri-widget-padding-x: 0}.esri-widget__anchor{color:var(--calcite-color-text-2)}.esri-widget__anchor:hover{color:var(--calcite-color-text-3)}.esri-widget__anchor:hover,.esri-widget__anchor:focus{text-decoration:underline}.esri-widget__anchor--disabled{opacity:.4;pointer-events:none}.esri-widget__header{background-color:var(--calcite-color-foreground-1);flex:1 0 100%;justify-content:space-between;align-items:center;width:100%;min-height:48px;padding:12px 0 12px 15px;display:flex}.esri-widget__header .esri-widget__heading{width:calc(100% - 48px);text-align:initial;color:var(--calcite-color-text-1);align-items:center;margin:0;padding:0;display:flex}.esri-widget__header-button{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);border:none;flex:0 0 48px;justify-content:center;align-self:stretch;align-items:center;width:48px;padding:0;display:flex}.esri-widget__footer{background-color:var(--calcite-color-foreground-1);justify-content:center;align-items:center;width:100%;min-height:48px;display:flex}.esri-widget__footer-pagination{color:var(--calcite-color-text-2);justify-content:space-between;align-items:center;display:flex}.esri-widget__footer-pagination-previous-button,.esri-widget__footer-pagination-next-button{cursor:pointer;background-color:var(--calcite-color-foreground-1);border:0;margin:0 7px;padding:12px 15px;transition:background-color .125s ease-in-out}.esri-widget__footer-pagination-previous-button:hover,.esri-widget__footer-pagination-previous-button:focus,.esri-widget__footer-pagination-next-button:hover,.esri-widget__footer-pagination-next-button:focus{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1)}.esri-menu{visibility:hidden;z-index:1;background-clip:padding;background-color:var(--calcite-color-foreground-1);background-clip:padding-box;width:100%;max-height:0;margin:2px 0 0;padding:0;font-size:var(--calcite-font-size);line-height:var(--calcite-spacing-xl);position:absolute;top:100%;left:0;overflow:hidden;box-shadow:0 1px 2px #0000004d}.esri-menu .esri-menu__header{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-inverse);padding:6px 12px}.esri-menu__list{margin:0;padding:0;list-style:none}.esri-menu__list-item{cursor:pointer;border-top:1px solid #adadad4d;border-left:3px solid #0000;padding:.8em 1em}.esri-menu__list-item [class^=esri-icon-],.esri-menu__list-item [class*=" esri-icon-"]{padding-right:2.8px}.esri-menu__list-item:first-child{border-top:none}.esri-menu__list-item--focus,.esri-menu__list-item:hover,.esri-menu__list-item:focus{background-color:var(--calcite-color-foreground-1)}.esri-menu__list-item:active{background-color:var(--calcite-color-foreground-current)}.esri-menu__list-item--active,.esri-menu__list-item--active:hover,.esri-menu__list-item--active:focus{background-color:var(--calcite-color-foreground-1);border-left-color:var(--calcite-color-brand)}.esri-widget__table{border-collapse:collapse;color:var(--calcite-color-text-1);border:none;width:100%;line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget__table tr:nth-child(odd){background-color:var(--calcite-color-transparent)}.esri-widget__table tr:nth-child(2n){background-color:var(--calcite-color-transparent-press)}.esri-widget__table tr a{color:var(--calcite-color-text-2)}.esri-widget__table tr a:hover,.esri-widget__table tr a:focus{color:var(--calcite-color-text-1)}.esri-widget__table tr td,.esri-widget__table tr th{vertical-align:top;word-break:break-word;padding:.5em .7em;font-size:var(--calcite-font-size-sm);font-weight:var(--calcite-font-weight-regular)}.esri-widget__table tr th{text-align:left;border-right:3px solid #0000000d;width:50%}.esri-widget__table tr td{width:50%}.esri-input{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1);border:1px solid #959595;font-size:var(--calcite-font-size)}.esri-input::-ms-clear{display:none}.esri-input::placeholder{opacity:1;color:var(--calcite-color-text-2)}.esri-input:placeholder-shown{text-overflow:ellipsis}.esri-input[type=text],.esri-input[type=password],.esri-input[type=number]{height:32px;padding:0 .5em}calcite-combobox.esri-input{border:none}.esri-widget__content--empty{text-align:center;color:var(--calcite-color-border-input);flex-flow:column wrap;align-items:center;padding:18px 22px;display:flex}.esri-widget__content--empty h1.esri-widget__heading,.esri-widget__content--empty h2.esri-widget__heading,.esri-widget__content--empty h3.esri-widget__heading,.esri-widget__content--empty h4.esri-widget__heading,.esri-widget__content--empty h5.esri-widget__heading{font-weight:var(--calcite-font-weight-regular)}.esri-widget__content-illustration--empty{width:128px;padding:1rem 0}.esri-widget__content-icon--empty{width:32px;padding:.5rem 0}.esri-select{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background:var(--calcite-color-foreground-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -8 32 32' width='32' height='32'%3E%3Cpath d='M8 11.207l-4-4V5.793l4 4 4-4v1.414z' fill='%23adadad' fillrule='nonzero'/%3E%3C/svg%3E") 100% no-repeat;border:1px solid #959595;border-radius:0;width:100%;height:32px;margin:0;padding:0 .5em;font-family:inherit;font-size:.85em;display:block}.esri-select[disabled]{cursor:auto}.esri-select::-ms-expand{display:none}.esri-disabled a,.esri-disabled [role=menu],.esri-disabled [role=checkbox],.esri-disabled [class^=esri-icon-],.esri-disabled [class*=" esri-icon-"]{color:var(--calcite-color-text-3)}.keynav-mode .esri-widget:focus,.keynav-mode .esri-widget :focus{z-index:1;outline-offset:2px;outline:2px solid #adadad}.esri-widget__loader-animation{border:.15em solid #adadad4d;border-top-color:var(--calcite-color-border-input);border-radius:100%;width:1em;height:1em;font-size:var(--calcite-font-size-md);animation:1.25s linear infinite esri-rotate;display:block;transform:translateZ(0)}:dir(rtl) .esri-widget__table th{text-align:right;border-left:3px solid #0000000d;border-right:none}:dir(rtl) .esri-select{background-position:0}:dir(rtl) .esri-menu__list-item{border-left:none;border-right:3px solid #0000}:dir(rtl) .esri-menu__list-item [class^=esri-icon-],:dir(rtl) .esri-menu__list-item [class*=" esri-icon-"]{padding-left:2px;padding-right:0}:dir(rtl) .esri-menu__list-item--active{border-right-color:var(--calcite-color-brand)}.esri-icon-font-fallback-text{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.esri-rotating{animation:1.25s linear infinite esri-rotate;transform:translateZ(0)}.esri-clearfix:before,.esri-clearfix:after{content:" ";display:table}.esri-clearfix:after{clear:both}.esri-interactive{cursor:pointer}.esri-hidden{display:none!important}.esri-invisible{visibility:hidden!important}.esri-offscreen{position:absolute;top:-999em;left:-999em}.esri-match-height{flex-direction:column;flex:auto;display:flex;overflow:hidden}.esri-widget--panel{min-width:300px;min-height:32px;padding:var(--esri-widget-padding);transition:max-height .25s ease-in-out;overflow-y:auto}:host{--internal-chart-height: 180px;--internal-gap: var(--calcite-spacing-sm-plus);width:550px;isolation:isolate;padding:var(--esri-widget-padding);position:relative;container-type:inline-size}.container{display:flex;flex-direction:column;width:100%;min-width:0;gap:var(--internal-gap)}.header{display:flex;flex-direction:row;align-items:center;justify-content:flex-end;margin-bottom:calc(var(--internal-gap) * -1)}.actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:var(--calcite-spacing-xs)}.action-button{width:auto;min-height:32px}.main-container{display:flex;position:relative;flex-flow:column;width:100%;height:var(--internal-chart-height)}.chart-container{position:relative;width:100%;height:100%}.prompt-container{box-sizing:border-box;display:grid;place-content:center;padding-inline:var(--calcite-spacing-md);height:100%;text-align:center}.prompt-message{margin:0;width:100%}.spinner{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transition:opacity .15s ease-in-out;transition-delay:0;opacity:0;&.visible{transition-delay:50ms;opacity:1}&.small{inset-inline-start:0;top:-22px;left:unset;transform:none;color:var(--calcite-color-brand)}}@container (max-width: 400px){.esri-widget--panel{height:auto}.actions{flex-direction:column}.action-button{align-self:stretch}}`;function L({geometry:t}){return t!=null&&t.type==="polyline"&&t.paths.length>0&&t.paths.every(e=>e.length>=2)}function R({geometry:t}){return t?.type==="polyline"&&t.paths.reduce((e,i)=>e+i.length,0)>0}function Z(t){return t?.samples?.some(e=>e.z!=null)??!1}function H(t){return t?.type==="polyline"}async function j(t,e,i){let r=await q(t,e);return O(i),G(r)?r.highlight(e):$()}async function q(t,e){let i=e?.layer;if(!(!i||i.type==="subtype-sublayer"||i.type==="sublayer"||i.type==="building-component"))return await t.whenLayerView(i)}function G(t){return t!=null&&"highlight"in t&&typeof t.highlight=="function"}var J=Object.defineProperty,N=Object.getOwnPropertyDescriptor,s=(t,e,i,r)=>{for(var o=r>1?void 0:r?N(e,i):e,c=t.length-1,d;c>=0;c--)(d=t[c])&&(o=(r?d(e,i,o):d(o))||o);return r&&o&&J(e,i,o),o},n=class extends z{constructor(){super(...arguments),this.highlightDisabled=!1,this.uniformChartScaling=!1,this.shouldForceInteractive=!1,this.supportedViewType="both",this.unsupportedErrorMessage=""}get _measurementSystem(){return this.view?E(this.view):void 0}get _hasSamples(){let{progress:t}=this;return!!this.analysisView?.results?.some(e=>e.available&&(t<1||Z(e)))}get doneButtonAvailable(){if(this.featureIsSelected)return!1;let{geometry:t}=this.analysis;return H(t)&&t.paths.length>0&&t.paths[0].length>2}get effectiveDisplayUnits(){return this.analysisView?.effectiveDisplayUnits}get errorState(){if(!L(this.analysis))return"no-valid-input";let t=this.analysisView?.error;if(t)switch(t.name){case"too-complex":return"too-complex";case"elevation-query-error":return"no-valid-input";default:return"unknown"}return this._hasSamples?"none":"no-available-profiles"}get feature(){return this._selectedFeature}set feature(t){t?t!==this.feature&&(this.analysis.setGeometryFromFeature(t),this._selectedFeature=t):this._selectedFeature=void 0}get featureIsSelected(){return this.feature!=null}get hasVertices(){return R(this.analysis)}get indicatorRelativePosition(){return this.analysisView?.indicatorRelativePosition??void 0}get geometry(){return this.analysis.geometry}set geometry(t){this.analysis.geometry=t}get elevationInfo(){return this.analysis.elevationInfo}set elevationInfo(t){this.analysis.elevationInfo=t}get profiles(){return this.analysis.profiles}set profiles(t){this.analysis.profiles=t}get progress(){return this.analysisView?.progress??0}get results(){return this.analysisView?.results??[]}get selectButtonAvailable(){for(let t of this.view?.map?.allLayers.toArray()??[])if(t.type==="graphics"&&!("internal"in t&&t.internal)&&t.graphics.some(e=>e.geometry?.type==="polyline")||"geometryType"in t&&t.geometryType==="polyline")return!0;return!!this.view?.graphics?.some(t=>t.geometry?.type==="polyline")}get state(){return this.disabled||!this.ready?"disabled":this._selectingPromise?"selecting":this.operationState==="active"?"creating":this.analysis.valid?this.featureIsSelected?"selected":"created":"ready"}get distanceUnit(){return D(this._userDistanceUnit??this.analysis.displayUnits?.distance??void 0,this.distanceUnitOptions,this._measurementSystem)}set distanceUnit(t){this._userDistanceUnit=t}get distanceUnitOptions(){return P(this._userDistanceUnitOptions)}set distanceUnitOptions(t){this._userDistanceUnitOptions=t}get elevationUnit(){return D(this._userElevationUnit??this.analysis.displayUnits?.elevation??void 0,this.elevationUnitOptions,this._measurementSystem)}set elevationUnit(t){this._userElevationUnit=t}get elevationUnitOptions(){return P(this._userElevationUnitOptions)}set elevationUnitOptions(t){this._userElevationUnitOptions=t}initialize(){this.addHandles([m(()=>({analysis:this.analysis,unitDistance:this.distanceUnit,unitElevation:this.elevationUnit}),({analysis:t,unitDistance:e,unitElevation:i})=>{if(t!=null){let r=t.displayUnits;r.elevation=i,r.distance=e}},{sync:!0,initial:!0}),m(()=>({selectedFeature:this.feature,profiles:this.analysis.profiles.toArray()}),({selectedFeature:t,profiles:e},i)=>{this._highlightSelectedFeature(this.highlightDisabled?void 0:t),this.analysis.viewOptions.geometryVisualizationVisible=!this.highlightDisabled&&t==null;let r=i?.selectedFeature;e.forEach(o=>{switch(o.type){case"scene":this._excludeSelectedFeatureFromProfile(o,t,r);break;case"input":o.chartOptions.lineVisible=t!=null,o.viewOptions.lineVisible=t!=null;break}})},{initial:!0})])}destroy(){this._removeSelectionHighlight()}async select(){let t=this.analysisView;if(!t)return;let e=super.start({operation:async i=>{let r=await t.pickFeature(i);i?.signal?.aborted||(t.interactive=!1,this.feature=r.feature)},clear:!1});e.finally(()=>{this._selectingPromise===e&&(this._selectingPromise=void 0)}),this._selectingPromise=e,await e.catch()}async place(t){await this.analysisView?.place(t)}clearAnalysis(){this.geometry=null,this.elevationInfo=null,this.feature=void 0}constructAnalysis(){return new F}_highlightSelectedFeature(t){this._removeSelectionHighlight();let e=this.view;!e||!t||(this._selectionHighlightTask=f(async i=>await j(e,t,{signal:i})))}_removeSelectionHighlight(){this._selectionHighlightTask?.value?.remove(),this._selectionHighlightTask=B(this._selectionHighlightTask)}_excludeSelectedFeatureFromProfile(t,e,i){let r=new Set(t.exclude??[]);i&&r.delete(i),e&&r.add(e),t.exclude=Array.from(r)}};s([a()],n.prototype,"_userDistanceUnit",2);s([a()],n.prototype,"_userDistanceUnitOptions",2);s([a()],n.prototype,"_userElevationUnit",2);s([a()],n.prototype,"_userElevationUnitOptions",2);s([a({readOnly:!0})],n.prototype,"_measurementSystem",1);s([a()],n.prototype,"_selectingPromise",2);s([a()],n.prototype,"_selectedFeature",2);s([a()],n.prototype,"_selectionHighlightTask",2);s([a()],n.prototype,"_hasSamples",1);s([a()],n.prototype,"doneButtonAvailable",1);s([a({readOnly:!0})],n.prototype,"effectiveDisplayUnits",1);s([a({readOnly:!0})],n.prototype,"errorState",1);s([a()],n.prototype,"feature",1);s([a()],n.prototype,"featureIsSelected",1);s([a({readOnly:!0})],n.prototype,"hasVertices",1);s([a()],n.prototype,"highlightDisabled",2);s([a()],n.prototype,"indicatorRelativePosition",1);s([a()],n.prototype,"geometry",1);s([a()],n.prototype,"elevationInfo",1);s([a()],n.prototype,"profiles",1);s([a({readOnly:!0})],n.prototype,"progress",1);s([a({readOnly:!0})],n.prototype,"results",1);s([a({readOnly:!0})],n.prototype,"selectButtonAvailable",1);s([a({readOnly:!0})],n.prototype,"state",1);s([a()],n.prototype,"uniformChartScaling",2);s([a()],n.prototype,"distanceUnit",1);s([a()],n.prototype,"distanceUnitOptions",1);s([a()],n.prototype,"elevationUnit",1);s([a()],n.prototype,"elevationUnitOptions",1);n=s([A("components.elevation-profile.ElevationProfileViewModel")],n);function D(t,e,i){return t&&e.includes(t)?t:i&&e.includes(i)?i:e[0]}function P(t){let e=t?.filter(i=>_.includes(i));return e&&e.length>0?e:_.slice()}var Q=M(n),y=class extends C{constructor(){super(...arguments),this.viewModel=Q(this),this._messages=U(),this._hideZoomOutButton=!0,this.analysis=this.viewModel.analysis,this.view=this.viewModel.view,this.autoDestroyDisabled=!1,this.effectiveDisplayUnits=this.viewModel.effectiveDisplayUnits,this.feature=this.viewModel.feature,this.hideChart=!1,this.hideClearButton=!1,this.hideLegend=!1,this.hideSelectButton=!1,this.hideSettingsButton=!1,this.hideSketchButton=!1,this.hideUniformChartScalingToggle=!1,this.hideUnitSelector=!1,this.hideVisualization=this.viewModel.hideVisualization,this.highlightDisabled=this.viewModel.highlightDisabled,this.indicatorRelativePosition=this.viewModel.indicatorRelativePosition,this.icon="altitude",this.geometry=this.viewModel.geometry,this.elevationInfo=this.viewModel.elevationInfo,this.profiles=this.viewModel.profiles,this.progress=this.viewModel.progress,this.state=this.viewModel.state,this.uniformChartScaling=this.viewModel.uniformChartScaling,this.distanceUnit=this.viewModel.distanceUnit,this.distanceUnitOptions=this.viewModel.distanceUnitOptions,this.elevationUnit=this.viewModel.elevationUnit,this.elevationUnitOptions=this.viewModel.elevationUnitOptions,this.arcgisPropertyChange=k()("analysis","effectiveDisplayUnits","elevationInfo","feature","geometry","indicatorRelativePosition","progress","state"),this.arcgisReady=b()}static{this.properties={_hideZoomOutButton:16,_chartContainer:16,analysis:0,view:0,autoDestroyDisabled:5,effectiveDisplayUnits:32,feature:0,hideChart:5,hideClearButton:5,hideLegend:5,hideSelectButton:5,hideSettingsButton:5,hideSketchButton:5,hideUniformChartScalingToggle:5,hideUnitSelector:5,hideVisualization:5,highlightDisabled:5,indicatorRelativePosition:40,icon:2,geometry:0,elevationInfo:0,label:1,messageOverrides:0,position:1,referenceElement:1,profiles:0,progress:40,state:3,uniformChartScaling:5,distanceUnit:1,distanceUnitOptions:0,elevationUnit:1,elevationUnitOptions:0}}static{this.styles=T}get _selectButtonVisible(){return!this.hideSelectButton&&this.viewModel.selectButtonAvailable}get _chart(){return this._chartInitializationTask?.value}async destroy(){await this.manager.destroy()}async select(){V(this.viewModel.select())}async start(){V(this.viewModel.start())}async stop(){this.viewModel.stop()}async clear(){this.viewModel.clear()}load(){this.manager.onLifecycle(()=>[m(()=>({container:this._chartContainer}),({container:e})=>{this._destroyChart(),e&&(this._chartInitializationTask=f(async i=>await I({view:this.viewModel.view,analysisView:this.viewModel.analysisView,container:e,messages:this._messages,signal:i,uniformScaling:this.viewModel.uniformChartScaling,onRangeChange:(r,o)=>{this._hideZoomOutButton=r===1&&o===1},onCursorPositionChange:(r,o)=>{let{analysisView:c}=this.viewModel;c&&(c.indicatorRelativePosition=r)}})))},{sync:!0,initial:!0}),m(()=>({chart:this._chart,view:this.viewModel.view,analysisView:this.viewModel.analysisView,uniformScaling:this.viewModel.uniformChartScaling}),({chart:e,view:i,analysisView:r,uniformScaling:o})=>{e&&(e.view=i,e.analysisView=r,e.uniformScaling=o)},{sync:!0,initial:!0}),{remove:()=>this._destroyChart()}])}_destroyChart(){let e=this._chart;this._chartInitializationTask?.abort(),this._chartInitializationTask=void 0,e?.destroy()}_onCancelButtonClick(){this.viewModel.stop(),this.viewModel.clear()}_onDoneButtonClick(){this.viewModel.stop()}_getErrorMessage(){let e=W[this.viewModel.errorState];return e?this._messages?.errors?.[e]:void 0}_onClearButtonClick(){this.viewModel.clear()}_onZoomOutButtonClick(){this._chart?.zoomOut()}_onChartContainerRef(e){this._chartContainer=e}render(){return l`<div aria-label=${this._messages.componentLabel??g} class=${v({container:!0,[u.widget]:!0,[u.widgetDisabled]:this.viewModel.state==="disabled",[u.panel]:!0})} role=presentation>${this._renderContentForState()}</div>`}_renderContentForState(){switch(this.viewModel.state){case"ready":return this._renderContentForReadyState();case"selecting":return this._renderContentForSelectingState();case"creating":return this._renderContentForCreatingState();case"selected":return this._renderContentForSelectedState();case"created":return this._renderContentForCreatedState();case"disabled":return this._renderContentForReadyState()}}_renderContentForReadyState(){let{_messages:e,hideSelectButton:i,hideSketchButton:r}=this,{selectButtonAvailable:o}=this.viewModel,c=!i&&o,d;return!r&&c?d=e.readyPrompt:r?c?d=e.readyPromptSelectOnly:d=e.errors?.noProfile:d=e.readyPromptCreateOnly,this._renderContent({prompt:d,chart:!1,actions:p})}_renderContentForSelectingState(){let{view:e}=this.viewModel;if(!e)return;let i=this._messages[`selectingPrompt-${e.type}`];return this._renderContent({prompt:i,chart:!1,actions:[{type:"select-cancel"}]})}_renderContentForCreatingState(){let{viewModel:e}=this,{view:i}=e;if(!i)return;let r=e.hasVertices?[{type:"sketch-cancel"},{type:"sketch-done",disabled:!e.doneButtonAvailable}]:[{type:"select"},{type:"sketch",disabled:!0}];if(e.errorState==="no-valid-input"){let c=this._messages[`creatingPrompt-${i.type}`];return this._renderContent({chart:!1,actions:r,prompt:c})}let o=this._getErrorMessage();return o?this._renderContent({chart:!1,actions:r,prompt:o}):this._renderContent({chart:!0,actions:r})}_renderContentForSelectedState(){let e=this._getErrorMessage();return e?this._renderContent({chart:!1,actions:p,prompt:e}):this._renderContent({chart:!0,actions:p})}_renderContentForCreatedState(){let e=this._getErrorMessage();return e?this._renderContent({chart:!1,actions:p,prompt:e}):this._renderContent({chart:!0,actions:p})}_renderContent(e){let{viewModel:i}=this,r=i.geometry!=null;return l`<header class="header">${h({hidden:this._hideZoomOutButton,children:this._renderZoomOutButton()})}${h({hidden:this.hideClearButton||!r,children:this._renderClearButton()})}${h({hidden:this.hideSettingsButton,children:this._renderSettingsButton()})}</header><div class="main-container">${e.prompt!=null?this._renderPrompt(e.prompt):e.chart?this._renderChart():void 0}</div>${h({hidden:this.hideLegend,children:this._renderLegend()})}${this._renderActions(e)}`}_renderPrompt(e){return[l`<div class="prompt-container"><p class="prompt-message">${e}</p></div>`]}_renderZoomOutButton(){let e=this._messages.zoomOut??"";return l`<calcite-action icon=magnifying-glass-minus @click=${this._onZoomOutButtonClick} .text=${e} title=${e??g}></calcite-action>`}_renderChart(){if(this.hideChart)return;let e=this._chart;return l`${this._renderSpinner({size:e?.chartVisible?"small":"large",visible:e?.spinnerVisible??!1})}<div class="chart-container" ${x(this._onChartContainerRef)}></div>`}_renderSpinner(e){let i=e.size==="small",r=e.visible??!0;return l`<calcite-loader class=${v({spinner:!0,small:i,visible:r})} .inline=${i} label></calcite-loader>`}_renderClearButton(){let e=this._messages.clearProfile??"";return l`<calcite-action icon=trash @click=${this._onClearButtonClick} .text=${e} title=${e??g}></calcite-action>`}_renderLegend(){return l`<arcgis-elevation-profile-legend .effectiveDisplayUnits=${this.viewModel.effectiveDisplayUnits} .featureSelected=${this.viewModel.featureIsSelected} .messages=${this._messages} .results=${this.viewModel.results}></arcgis-elevation-profile-legend>`}_renderSettingsButton(){return l`<arcgis-elevation-profile-settings .analysis=${this.viewModel.analysis} .hideUniformChartScalingToggle=${this.hideUniformChartScalingToggle} .hideUnitSelector=${this.hideUnitSelector} .messages=${this._messages} .uniformChartScaling=${this.viewModel.uniformChartScaling} .unitOptionsDistance=${this.viewModel.distanceUnitOptions} .unitOptionsElevation=${this.viewModel.elevationUnitOptions} @arcgisElevationProfileSettingsUniformChartScalingChange=${e=>{this.viewModel.uniformChartScaling=e.detail}}></arcgis-elevation-profile-settings>`}_renderActions({actions:e}){let i=this._messages,r=e.map(o=>{switch(o.type){case"sketch":return h({hidden:this.hideSketchButton,children:this._renderAction({action:o,label:i.sketchButtonLabel,primary:!0,onClick:()=>void this.start()})});case"sketch-cancel":return h({hidden:this.hideSketchButton,children:this._renderAction({action:o,label:i.cancelButtonLabel,primary:!1,onClick:this._onCancelButtonClick})});case"sketch-done":return h({hidden:this.hideSketchButton,children:this._renderAction({action:o,label:i.doneButtonLabel,primary:!0,onClick:this._onDoneButtonClick})});case"select":return h({hidden:!this._selectButtonVisible,children:this._renderAction({action:o,label:i.selectButtonLabel,primary:!1,onClick:()=>void this.select()})});case"select-cancel":return h({hidden:!this._selectButtonVisible,children:this._renderAction({action:o,label:i.cancelButtonLabel,primary:!1,onClick:this._onCancelButtonClick})});default:return}}).filter(Boolean);return r.length?l`<footer class="actions">${r}</footer>`:void 0}_renderAction({action:e,label:i,onClick:r,primary:o}){return l`<calcite-button .appearance=${o?"solid":"outline-fill"} class="action-button" .disabled=${e.disabled||void 0} @click=${r}>${i}</calcite-button>`}};function h(t){return t.hidden?void 0:t.children}var p=[{type:"select"},{type:"sketch"}],W={none:void 0,"no-valid-input":"noProfile","no-available-profiles":"noProfile","too-complex":"tooComplex",unknown:"unknown"};S("arcgis-elevation-profile",y);return y},"core/promiseUtils","analysis/ElevationProfileAnalysis","applications/Components/getDefaultUnits","core/accessorSupport/decorators","core/reactiveUtils","applications/Components/analysisUtils",a,c,d,e,f)
@@ -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.98 */
4
- import{a as i}from"./PLPV66L3.js";import{a as t}from"./FIXKLQIP.js";import{z as s}from"./RD46LEGA.js";export default $arcgis.t(([c])=>{var p=n=>m(n),e=class extends s{#o;constructor(o){super(o),this.setProvisionalExports(void 0)}hostConnected(){this.component.manager.loadedCalled&&t(this.component)}hostLoad(){this.component.manager.destroyed}hostLoaded(){let{el:o}=this.component,h=o.shadowRoot?.firstElementChild??o.firstElementChild??void 0;o.childElem??=h,this.#o=c.when(()=>this.component.view!=null,()=>{this.component.arcgisReady.emit()},{once:!0,initial:!0,sync:!0}),o.isConnected&&t(this.component)}hostDisconnected(){typeof this.component.el.childElem=="object"&&this.component.view?.ui?.remove(this.component.el.childElem),this.#o?.remove()}hostUpdate(o){o.has("position")&&this.component.el.childElem!=null&&typeof this.component.position=="string"&&t(this.component),o.has("referenceElement")&&t(this.component)}},m=i(e);return{a:p,b:e}},"core/reactiveUtils")
3
+ v5.0.0-next.99 */
4
+ import{a as i}from"./P7HP6NNS.js";import{a as t}from"./2SKKF2NH.js";import{z as s}from"./E53R7MWL.js";export default $arcgis.t(([c])=>{var p=n=>m(n),e=class extends s{#o;constructor(o){super(o),this.setProvisionalExports(void 0)}hostConnected(){this.component.manager.loadedCalled&&t(this.component)}hostLoad(){this.component.manager.destroyed}hostLoaded(){let{el:o}=this.component,h=o.shadowRoot?.firstElementChild??o.firstElementChild??void 0;o.childElem??=h,this.#o=c.when(()=>this.component.view!=null,()=>{this.component.arcgisReady.emit()},{once:!0,initial:!0,sync:!0}),o.isConnected&&t(this.component)}hostDisconnected(){typeof this.component.el.childElem=="object"&&this.component.view?.ui?.remove(this.component.el.childElem),this.#o?.remove()}hostUpdate(o){o.has("position")&&this.component.el.childElem!=null&&typeof this.component.position=="string"&&t(this.component),o.has("referenceElement")&&t(this.component)}},m=i(e);return{a:p,b:e}},"core/reactiveUtils")
@@ -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.98 */
4
- import"./35JLEE3X.js";var r={_decimalSeparator:",",_thousandSeparator:"\xA0",_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:"pKr",_era_bc:"eKr",A:"AM",P:"PM",AM:"AM",PM:"PM","A.M.":"AM","P.M.":"PM",January:"jaanuar",February:"veebruar",March:"m\xE4rts",April:"aprill",May:"mai",June:"juuni",July:"juuli",August:"august",September:"september",October:"oktoober",November:"november",December:"detsember",Jan:"jaan",Feb:"veebr",Mar:"m\xE4rts",Apr:"apr","May(short)":"mai",Jun:"juuni",Jul:"juuli",Aug:"aug",Sep:"sept",Oct:"okt",Nov:"nov",Dec:"dets",Sunday:"p\xFChap\xE4ev",Monday:"esmasp\xE4ev",Tuesday:"teisip\xE4ev",Wednesday:"kolmap\xE4ev",Thursday:"neljap\xE4ev",Friday:"reede",Saturday:"laup\xE4ev",Sun:"P",Mon:"E",Tue:"T",Wed:"K",Thu:"N",Fri:"R",Sat:"L",_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":"Suumi",Play:"Esita",Stop:"L\xF5peta",Legend:"Legend","Press ENTER to toggle":"",Loading:"Laadin",Home:"Kodu",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:"Prindi",Image:"Pilt",Data:"Andmed",Print:"Prindi","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":"Alates %1 kuni %2","From %1":"Alates %1","To %1":"Kuni %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.99 */
4
+ import"./3D3H3GIL.js";var r={_decimalSeparator:",",_thousandSeparator:"\xA0",_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:"pKr",_era_bc:"eKr",A:"AM",P:"PM",AM:"AM",PM:"PM","A.M.":"AM","P.M.":"PM",January:"jaanuar",February:"veebruar",March:"m\xE4rts",April:"aprill",May:"mai",June:"juuni",July:"juuli",August:"august",September:"september",October:"oktoober",November:"november",December:"detsember",Jan:"jaan",Feb:"veebr",Mar:"m\xE4rts",Apr:"apr","May(short)":"mai",Jun:"juuni",Jul:"juuli",Aug:"aug",Sep:"sept",Oct:"okt",Nov:"nov",Dec:"dets",Sunday:"p\xFChap\xE4ev",Monday:"esmasp\xE4ev",Tuesday:"teisip\xE4ev",Wednesday:"kolmap\xE4ev",Thursday:"neljap\xE4ev",Friday:"reede",Saturday:"laup\xE4ev",Sun:"P",Mon:"E",Tue:"T",Wed:"K",Thu:"N",Fri:"R",Sat:"L",_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":"Suumi",Play:"Esita",Stop:"L\xF5peta",Legend:"Legend","Press ENTER to toggle":"",Loading:"Laadin",Home:"Kodu",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:"Prindi",Image:"Pilt",Data:"Andmed",Print:"Prindi","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":"Alates %1 kuni %2","From %1":"Alates %1","To %1":"Kuni %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.98 */
3
+ v5.0.0-next.99 */
4
4
  var t=["metric","imperial"],s=["inches","feet","yards","miles","nautical-miles","us-feet","millimeters","centimeters","decimeters","meters","kilometers"],a=["square-inches","square-feet","square-yards","square-miles","square-nautical-miles","square-us-feet","square-millimeters","square-centimeters","square-decimeters","square-meters","square-kilometers","acres","ares","hectares"],i=["liters","cubic-millimeters","cubic-centimeters","cubic-decimeters","cubic-meters","cubic-kilometers","cubic-inches","cubic-feet","cubic-yards","cubic-miles"],c=[...t,...s],u=[...t,...a],m=[...t,...i];function l(e,r=!0){return r?e==null?{state:"unavailable"}:{state:"available",value:e}:{state:"invalid"}}function n(e,r){switch(r.type){case"length":return e.formatLength(r);case"area":return e.formatArea(r);case"volume":return e.formatVolume(r);default:return""}}function o(e){return e==="imperial"||e==="metric"}export{c as a,u as b,m as c,l as d,n as e,o as f};
@@ -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.98 */
4
- import{b as p}from"./3E7BRDKM.js";import{N as n,O as e,T as d,a as c,b as r}from"./RD46LEGA.js";import"./35JLEE3X.js";export default $arcgis.t(([{formatDate:y},{watch:m}])=>{var _=c`.arcgis-video-player__toolbar{display:flex;align-items:center;background-color:var(--calcite-color-foreground-1);padding:0 calc(var(--arcgis-video-player-controls-spacing) / 2) calc(var(--arcgis-video-player-controls-spacing) / 2);font-size:var(--calcite-font-size--2)}.arcgis-video-player__toolbar-top-padding{padding-top:calc(var(--arcgis-video-player-controls-spacing) / 2)}.arcgis-video-player__timecode{display:flex;align-items:center;color:var(--calcite-color-text-3)}.arcgis-video-player__controls-group{display:flex;flex:1 0 auto;justify-content:flex-end}.arcgis-video-player__live-icon{color:var(--calcite-color-status-danger)}.arcgis-video-player__controls-container{display:flex;align-items:center;gap:var(--calcite-spacing-md)}`,i="arcgis-video-player",a={playerControlsGroup:`${i}__controls-group`,playerTimecode:`${i}__timecode`,playerToolbar:`${i}__toolbar`,playerToolbarTopPadding:`${i}__toolbar-top-padding`,playerLiveIcon:`${i}__live-icon`,playerControlsContainer:`${i}__controls-container`};function s(l){return y(Math.round(l)*1e3,{minute:"2-digit",second:"2-digit"})}var t=class extends n{static{this.properties={_isLive:16,viewModel:0,messages:0,currentTime:9,duration:9,toggleMetadata:0}}static{this.styles=_}loaded(){this.manager.onLifecycle(()=>[m(()=>this.viewModel.layer?.isLive,o=>{this._isLive=o??void 0},{initial:!0})])}render(){let{messages:o}=this,g=this._isLive?a.playerToolbarTopPadding:null,v=this._isLive?s(this.currentTime):`${s(this.currentTime)} / ${s(this.duration)}`;return r`<div class=${e(p(a.playerToolbar,g))}><div class=${e(a.playerControlsContainer)}><arcgis-video-player-actions-group .messages=${o} .viewModel=${this.viewModel}></arcgis-video-player-actions-group>${this._isLive?r`<calcite-icon class=${e(a.playerLiveIcon)} icon=beacon></calcite-icon>`:null}<div class=${e(a.playerTimecode)}>${v}</div></div><arcgis-video-player-controls-group class=${e(a.playerControlsGroup)} .messages=${o} .toggleMetadata=${()=>this.toggleMetadata()} .viewModel=${this.viewModel}></arcgis-video-player-controls-group></div>`}};d("arcgis-video-player-action-bar",t);return t},"intl","core/reactiveUtils")
3
+ v5.0.0-next.99 */
4
+ import{b as p}from"./EXMK6ER2.js";import{N as n,O as e,T as d,a as c,b as r}from"./E53R7MWL.js";import"./3D3H3GIL.js";export default $arcgis.t(([{formatDate:y},{watch:m}])=>{var _=c`.arcgis-video-player__toolbar{display:flex;align-items:center;background-color:var(--calcite-color-foreground-1);padding:0 calc(var(--arcgis-video-player-controls-spacing) / 2) calc(var(--arcgis-video-player-controls-spacing) / 2);font-size:var(--calcite-font-size--2)}.arcgis-video-player__toolbar-top-padding{padding-top:calc(var(--arcgis-video-player-controls-spacing) / 2)}.arcgis-video-player__timecode{display:flex;align-items:center;color:var(--calcite-color-text-3)}.arcgis-video-player__controls-group{display:flex;flex:1 0 auto;justify-content:flex-end}.arcgis-video-player__live-icon{color:var(--calcite-color-status-danger)}.arcgis-video-player__controls-container{display:flex;align-items:center;gap:var(--calcite-spacing-md)}`,i="arcgis-video-player",a={playerControlsGroup:`${i}__controls-group`,playerTimecode:`${i}__timecode`,playerToolbar:`${i}__toolbar`,playerToolbarTopPadding:`${i}__toolbar-top-padding`,playerLiveIcon:`${i}__live-icon`,playerControlsContainer:`${i}__controls-container`};function s(l){return y(Math.round(l)*1e3,{minute:"2-digit",second:"2-digit"})}var t=class extends n{static{this.properties={_isLive:16,viewModel:0,messages:0,currentTime:9,duration:9,toggleMetadata:0}}static{this.styles=_}loaded(){this.manager.onLifecycle(()=>[m(()=>this.viewModel.layer?.isLive,o=>{this._isLive=o??void 0},{initial:!0})])}render(){let{messages:o}=this,g=this._isLive?a.playerToolbarTopPadding:null,v=this._isLive?s(this.currentTime):`${s(this.currentTime)} / ${s(this.duration)}`;return r`<div class=${e(p(a.playerToolbar,g))}><div class=${e(a.playerControlsContainer)}><arcgis-video-player-actions-group .messages=${o} .viewModel=${this.viewModel}></arcgis-video-player-actions-group>${this._isLive?r`<calcite-icon class=${e(a.playerLiveIcon)} icon=beacon></calcite-icon>`:null}<div class=${e(a.playerTimecode)}>${v}</div></div><arcgis-video-player-controls-group class=${e(a.playerControlsGroup)} .messages=${o} .toggleMetadata=${()=>this.toggleMetadata()} .viewModel=${this.viewModel}></arcgis-video-player-controls-group></div>`}};d("arcgis-video-player-action-bar",t);return t},"intl","core/reactiveUtils")
@@ -1,7 +1,7 @@
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.98 */
4
- import a from"./KCC57AJ5.js";import{a as u}from"./O64GDUTA.js";import"./R6JXUKXU.js";import{a as w}from"./PAQ7AUB6.js";import{b as c}from"./3E7BRDKM.js";import{N as L,O as t,P as v,Q as y,T as C,a as k,b as l}from"./RD46LEGA.js";import"./35JLEE3X.js";export default $arcgis.t(([f,{a:b,b:z,d:F,g:$,h:x}])=>{var I=k`.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}.arcgis-legend--card__section{word-break:break-word;word-wrap:break-word;padding:var(--calcite-spacing-sm) var(--calcite-spacing-md);min-width:250px;max-width:500px;height:100%;height:-moz-available;height:-webkit-fill-available;height:fill-available;overflow:auto;font-size:var(--calcite-font-size-sm)}.arcgis-legend--card__carousel-title-container{margin-bottom:var(--calcite-spacing-sm)}.arcgis-legend--card__carousel-title{margin:0}.arcgis-legend--card__section-title{font-weight:var(--calcite-font-weight-normal)}.arcgis-legend--card__layer-caption{padding:var(--calcite-spacing-xs) 0;margin:0;font-weight:var(--calcite-font-weight-normal)}.arcgis-legend--card__imagery-layer-image--stretched{display:block;margin-bottom:-2px}.arcgis-legend--card__image-label{padding-right:var(--calcite-spacing-xs);padding-left:var(--calcite-spacing-xs)}.arcgis-legend--card__label-element{margin:.1em;padding:.5em 1em;min-width:2em;min-height:1em;text-align:center;display:flex;align-items:center;justify-content:center;flex:1}.arcgis-legend--card__layer-row{display:flex;align-items:center}.arcgis-legend--card__symbol{display:block;margin:auto}.arcgis-legend--card__pie-chart-ramp-preview{display:flex;justify-content:center}.arcgis-legend--card__relationship-container{display:flex;flex-direction:column}.arcgis-legend--card__relationship-container .arcgis-legend--card__layer-row{padding-bottom:.5em}.arcgis-legend--card__relationship-container .arcgis-legend--card__layer-row:last-child{padding-bottom:0}.arcgis-legend--card__container{display:flex;gap:var(--calcite-spacing-sm);flex-wrap:wrap}.arcgis-legend--card__background-styles-container{display:flex;flex-wrap:wrap}:host([stacked]) .arcgis-legend--card__container{display:table}:host([stacked]) .arcgis-legend--card__symbol-row{display:table-row;width:100%}:host([stacked]) .arcgis-legend--card__label-cell{display:table-cell;vertical-align:middle;padding:var(--calcite-spacing-xxs)}:host([stacked]) .arcgis-legend--card__symbol-cell{display:table-cell;vertical-align:middle;text-align:center;padding:var(--calcite-spacing-xxs)}:host([stacked]) .arcgis-legend--card__symbol-cell div{display:flex;align-items:center;justify-content:center}`,a={carouselTitleContainer:"arcgis-legend--card__carousel-title-container",carouselTitle:"arcgis-legend--card__carousel-title",sectionTitle:"arcgis-legend--card__section-title",imageryLayerStretchedImage:"arcgis-legend--card__imagery-layer-image--stretched",imageLabel:"arcgis-legend--card__image-label",layerCaption:"arcgis-legend--card__layer-caption",labelElement:"arcgis-legend--card__label-element",layerRow:"arcgis-legend--card__layer-row",labelCell:"arcgis-legend--card__label-cell",section:"arcgis-legend--card__section",symbol:"arcgis-legend--card__symbol",symbolRow:"arcgis-legend--card__symbol-row",symbolCell:"arcgis-legend--card__symbol-cell",pieChartRampPreview:"arcgis-legend--card__pie-chart-ramp-preview",relationshipContainer:"arcgis-legend--card__relationship-container",backgroundStylesContainer:"arcgis-legend--card__background-styles-container",container:"arcgis-legend--card__container"};function S(p){return p?p.r*.299+p.g*.587+p.b*.114>=127:void 0}var E=class extends L{constructor(){super(...arguments),this.stacked=!1,this.headingLevel=3}static{this.properties={cssEffectFilter:1,stacked:7,activeLayerInfo:0,headingLevel:9,layer:0,legendElement:0,messages:0}}static{this.styles=I}_getBackgroundStyles(e){let r=e.symbol,i=r.color,n=!!i?.a,s="outline"in r?r.outline:null,d=!!s?.color?.a,o=n&&i?new f([i.r,i.g,i.b,i.a*this.layer.opacity]):new f([255,255,255,0]),g=d&&s.color?new f([s.color.r,s.color.g,s.color.b,s.color.a*this.layer.opacity]):new f([255,255,255,0]),m=S(e.symbol.color)??!0,h=m?"black":"white",_=m?"rgba(255, 255, 255, .6)":"rgba(0, 0, 0, .6)";return{background:n?o.toCss(!0):"none",color:h,textShadow:`-1px -1px 0 ${_},
3
+ v5.0.0-next.99 */
4
+ import a from"./VEMAYUSU.js";import{a as u}from"./7HEOBYXL.js";import"./5WAPNWH3.js";import{a as w}from"./T6PUJAWM.js";import{b as c}from"./EXMK6ER2.js";import{N as L,O as t,P as v,Q as y,T as C,a as k,b as l}from"./E53R7MWL.js";import"./3D3H3GIL.js";export default $arcgis.t(([f,{a:b,b:z,d:F,g:$,h:x}])=>{var I=k`.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}.arcgis-legend--card__section{word-break:break-word;word-wrap:break-word;padding:var(--calcite-spacing-sm) var(--calcite-spacing-md);min-width:250px;max-width:500px;height:100%;height:-moz-available;height:-webkit-fill-available;height:fill-available;overflow:auto;font-size:var(--calcite-font-size-sm)}.arcgis-legend--card__carousel-title-container{margin-bottom:var(--calcite-spacing-sm)}.arcgis-legend--card__carousel-title{margin:0}.arcgis-legend--card__section-title{font-weight:var(--calcite-font-weight-normal)}.arcgis-legend--card__layer-caption{padding:var(--calcite-spacing-xs) 0;margin:0;font-weight:var(--calcite-font-weight-normal)}.arcgis-legend--card__imagery-layer-image--stretched{display:block;margin-bottom:-2px}.arcgis-legend--card__image-label{padding-right:var(--calcite-spacing-xs);padding-left:var(--calcite-spacing-xs)}.arcgis-legend--card__label-element{margin:.1em;padding:.5em 1em;min-width:2em;min-height:1em;text-align:center;display:flex;align-items:center;justify-content:center;flex:1}.arcgis-legend--card__layer-row{display:flex;align-items:center}.arcgis-legend--card__symbol{display:block;margin:auto}.arcgis-legend--card__pie-chart-ramp-preview{display:flex;justify-content:center}.arcgis-legend--card__relationship-container{display:flex;flex-direction:column}.arcgis-legend--card__relationship-container .arcgis-legend--card__layer-row{padding-bottom:.5em}.arcgis-legend--card__relationship-container .arcgis-legend--card__layer-row:last-child{padding-bottom:0}.arcgis-legend--card__container{display:flex;gap:var(--calcite-spacing-sm);flex-wrap:wrap}.arcgis-legend--card__background-styles-container{display:flex;flex-wrap:wrap}:host([stacked]) .arcgis-legend--card__container{display:table}:host([stacked]) .arcgis-legend--card__symbol-row{display:table-row;width:100%}:host([stacked]) .arcgis-legend--card__label-cell{display:table-cell;vertical-align:middle;padding:var(--calcite-spacing-xxs)}:host([stacked]) .arcgis-legend--card__symbol-cell{display:table-cell;vertical-align:middle;text-align:center;padding:var(--calcite-spacing-xxs)}:host([stacked]) .arcgis-legend--card__symbol-cell div{display:flex;align-items:center;justify-content:center}`,a={carouselTitleContainer:"arcgis-legend--card__carousel-title-container",carouselTitle:"arcgis-legend--card__carousel-title",sectionTitle:"arcgis-legend--card__section-title",imageryLayerStretchedImage:"arcgis-legend--card__imagery-layer-image--stretched",imageLabel:"arcgis-legend--card__image-label",layerCaption:"arcgis-legend--card__layer-caption",labelElement:"arcgis-legend--card__label-element",layerRow:"arcgis-legend--card__layer-row",labelCell:"arcgis-legend--card__label-cell",section:"arcgis-legend--card__section",symbol:"arcgis-legend--card__symbol",symbolRow:"arcgis-legend--card__symbol-row",symbolCell:"arcgis-legend--card__symbol-cell",pieChartRampPreview:"arcgis-legend--card__pie-chart-ramp-preview",relationshipContainer:"arcgis-legend--card__relationship-container",backgroundStylesContainer:"arcgis-legend--card__background-styles-container",container:"arcgis-legend--card__container"};function S(p){return p?p.r*.299+p.g*.587+p.b*.114>=127:void 0}var E=class extends L{constructor(){super(...arguments),this.stacked=!1,this.headingLevel=3}static{this.properties={cssEffectFilter:1,stacked:7,activeLayerInfo:0,headingLevel:9,layer:0,legendElement:0,messages:0}}static{this.styles=I}_getBackgroundStyles(e){let r=e.symbol,i=r.color,n=!!i?.a,s="outline"in r?r.outline:null,d=!!s?.color?.a,o=n&&i?new f([i.r,i.g,i.b,i.a*this.layer.opacity]):new f([255,255,255,0]),g=d&&s.color?new f([s.color.r,s.color.g,s.color.b,s.color.a*this.layer.opacity]):new f([255,255,255,0]),m=S(e.symbol.color)??!0,h=m?"black":"white",_=m?"rgba(255, 255, 255, .6)":"rgba(0, 0, 0, .6)";return{background:n?o.toCss(!0):"none",color:h,textShadow:`-1px -1px 0 ${_},
5
5
  1px -1px 0 ${_},
6
6
  -1px 1px 0 ${_},
7
7
  1px 1px 0 ${_}`,border:d?`1px solid ${g.toCss(!0)}`:"none",filter:this.cssEffectFilter??""}}render(){let e=this._renderLegendElement(),r=z(this.legendElement,this.messages),i=this.stacked?l`<div class=${t(a.carouselTitleContainer)}>${u({class:c(a.carouselTitle,w.heading),level:this.headingLevel,children:this.activeLayerInfo.title})}${r?l`<p class=${t(a.layerCaption)}>${r}</p>`:null}</div>`:r?u({class:c(a.sectionTitle,w.heading),level:this.headingLevel,children:r}):null;return l`<section class=${t(a.section)} role=tabpanel tabindex=0>${i}${e}</section>`}_renderLegendElement(){switch(this.legendElement.type){case"symbol-table":return this._renderSymbolTable(this.legendElement);case"size-ramp":return l`<arcgis-legend-card-size-ramp .hasIndicators=${this.stacked} .legendElement=${this.legendElement} .messages=${this.messages} .opacity=${this.layer.opacity}></arcgis-legend-card-size-ramp>`;case"color-ramp":case"opacity-ramp":case"heatmap-ramp":case"stretch-ramp":return l`<arcgis-legend-card-color-ramp .cssEffectFilter=${this.cssEffectFilter} .legendElement=${this.legendElement} .messages=${this.messages} .opacity=${this.layer.opacity}></arcgis-legend-card-color-ramp>`;case"relationship-ramp":return l`<arcgis-legend-relationship-ramp .cssEffectFilter=${this.cssEffectFilter} .legendElement=${this.legendElement} .opacity=${this.layer.opacity} .messages=${this.messages}></arcgis-legend-relationship-ramp>`;case"pie-chart-ramp":{let{preview:e}=this.legendElement;return x(e,this.messages.previewPieChartAriaLabel),l`<div class=${t(a.pieChartRampPreview)}>${e}</div>`}case"univariate-above-and-below-ramp":return l`<arcgis-legend-card-univariate-above-and-below-ramp .cssEffectFilter=${this.cssEffectFilter} .legendElement=${this.legendElement} .messages=${this.messages} .opacity=${this.layer.opacity}></arcgis-legend-card-univariate-above-and-below-ramp>`;case"univariate-color-size-ramp":return l`<arcgis-legend-card-univariate-color-size-ramp .cssEffectFilter=${this.cssEffectFilter} .legendElement=${this.legendElement} .messages=${this.messages} .opacity=${this.layer.opacity}></arcgis-legend-card-univariate-color-size-ramp>`;default:return null}}_renderSymbolTable(e){let r=e.infos.map(s=>this._renderElementInfo(s,e.legendType)).filter(Boolean);if(!r.length)return null;let i=e.infos.some(s=>"symbol"in s&&s.symbol?.type.includes("simple-fill")),n=this.activeLayerInfo.legendElements.some(({type:s})=>s==="relationship-ramp")?a.relationshipContainer:i?a.backgroundStylesContainer:a.container;return l`<div class=${t(n)}>${r}</div>`}_renderElementInfo(e,r){let{layer:i}=this,n="label"in e?e.label:null;if("type"in e&&e.type)return l`<arcgis-legend-card-element .activeLayerInfo=${this.activeLayerInfo} .cssEffectFilter=${this.cssEffectFilter} .stacked=${this.stacked} .headingLevel=${this.headingLevel} .layer=${i} .legendElement=${e} .messages=${this.messages}></arcgis-legend-card-element>`;if(!("preview"in e&&e.preview)&&!("src"in e&&e.src))return null;let s=F(i,r),d=b(this.messages,n,!1)||"";if("src"in e&&e.src){let o={[a.symbolCell]:this.stacked};return l`<div class=${t(c(a.layerRow,{[a.symbolRow]:this.stacked}))}><div class=${t(c(o))}>${this._renderImage(e,i,s)}</div><div class=${t(c(a.imageLabel,{[a.labelCell]:this.stacked}))}>${d}</div></div>`}if("symbol"in e&&e.preview){if(!e.symbol?.type.includes("simple-fill")){if(!e.label)return l`<div>${e.preview}</div>`;let o={[a.symbolCell]:this.stacked},{preview:g}=e,m="previewAriaLabel"in e?e.previewAriaLabel:null,h="label"in e?b(this.messages,e.label,!1):null;return x(g,$(this.messages,m||h)),l`<div class=${t(c(a.layerRow,{[a.symbolRow]:this.stacked}))}><div class=${t(c(o))}>${g}</div><div class=${t(c(a.imageLabel,{[a.labelCell]:this.stacked}))}>${d}</div></div>`}return l`<div class=${t(a.layerRow)}><div class=${t(a.labelElement)} style=${v(this._getBackgroundStyles(e))}>${d}</div></div>`}return null}_renderImage(e,r,i){let{previewAriaLabel:n,src:s,opacity:d}=e,o=b(this.messages,e.label,!1),g={[a.imageryLayerStretchedImage]:i,[a.symbol]:!i},m={opacity:`${d??r.opacity}`},h=$(this.messages,n||o);return l`<img alt=${h??y} .ariaLabel=${h} class=${t(c(g))} height=${e.height??void 0??y} src=${s??y} style=${v(m)} width=${e.width??void 0??y}>`}};C("arcgis-legend-card-element",E);return E},"Color",a)
@@ -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.98 */
4
- import"./35JLEE3X.js";var o={_decimalSeparator:".",_thousandSeparator:",",_percentPrefix:null,_percentSuffix:"%",_date_millisecond:"mm:ss SSS",_date_millisecond_full:"HH:mm:ss SSS",_date_second:"hh:mm:ss a",_date_second_full:"hh:mm:ss a",_date_minute:"hh:mm a",_date_minute_full:"hh:mm a - MMM dd, yyyy",_date_hour:"hh:mm a",_date_hour_short:"hhaaa",_date_hour_full:"hh:mm a - 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_second:"ss",_duration_minute:"mm",_duration_hour:"hh",_duration_day:"dd",_duration_week:"ww",_duration_month:"MM",_duration_year:"yyyy",_era_ad:"AD",_era_bc:"BC",A:"",P:"",AM:"",PM:"","A.M.":"","P.M.":"",January:"",February:"",March:"",April:"",May:"",June:"",July:"",August:"",September:"",October:"",November:"",December:"",Jan:"",Feb:"",Mar:"",Apr:"","May(short)":"May",Jun:"",Jul:"",Aug:"",Sep:"",Oct:"",Nov:"",Dec:"",Sunday:"",Monday:"",Tuesday:"",Wednesday:"",Thursday:"",Friday:"",Saturday:"",Sun:"",Mon:"",Tue:"",Wed:"",Thu:"",Fri:"",Sat:"",_dateOrd:function(a){let e="th";if(a<11||a>13)switch(a%10){case 1:e="st";break;case 2:e="nd";break;case 3:e="rd";break}return e},Play:"",Stop:"","Zoom Out":"",Legend:"","Press ENTER to toggle":"",Loading:"",Home:"",Chart:"","Serial chart":"","X/Y chart":"","Pie chart":"","Gauge chart":"","Radar chart":"","Sankey diagram":"","Chord diagram":"","Flow diagram":"","TreeMap chart":"",Series:"","Candlestick Series":"","Column Series":"","Line Series":"","Pie Slice 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:"",Image:"",Data:"",Print:"","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":"","From %1":"","To %1":"","No parser available for file: %1":"","Error parsing file: %1":"","Unable to load file: %1":"","Invalid date":"",Close:"",Minimize:"",Confirm:""};export{o as default};
3
+ v5.0.0-next.99 */
4
+ import"./3D3H3GIL.js";var o={_decimalSeparator:".",_thousandSeparator:",",_percentPrefix:null,_percentSuffix:"%",_date_millisecond:"mm:ss SSS",_date_millisecond_full:"HH:mm:ss SSS",_date_second:"hh:mm:ss a",_date_second_full:"hh:mm:ss a",_date_minute:"hh:mm a",_date_minute_full:"hh:mm a - MMM dd, yyyy",_date_hour:"hh:mm a",_date_hour_short:"hhaaa",_date_hour_full:"hh:mm a - 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_second:"ss",_duration_minute:"mm",_duration_hour:"hh",_duration_day:"dd",_duration_week:"ww",_duration_month:"MM",_duration_year:"yyyy",_era_ad:"AD",_era_bc:"BC",A:"",P:"",AM:"",PM:"","A.M.":"","P.M.":"",January:"",February:"",March:"",April:"",May:"",June:"",July:"",August:"",September:"",October:"",November:"",December:"",Jan:"",Feb:"",Mar:"",Apr:"","May(short)":"May",Jun:"",Jul:"",Aug:"",Sep:"",Oct:"",Nov:"",Dec:"",Sunday:"",Monday:"",Tuesday:"",Wednesday:"",Thursday:"",Friday:"",Saturday:"",Sun:"",Mon:"",Tue:"",Wed:"",Thu:"",Fri:"",Sat:"",_dateOrd:function(a){let e="th";if(a<11||a>13)switch(a%10){case 1:e="st";break;case 2:e="nd";break;case 3:e="rd";break}return e},Play:"",Stop:"","Zoom Out":"",Legend:"","Press ENTER to toggle":"",Loading:"",Home:"",Chart:"","Serial chart":"","X/Y chart":"","Pie chart":"","Gauge chart":"","Radar chart":"","Sankey diagram":"","Chord diagram":"","Flow diagram":"","TreeMap chart":"",Series:"","Candlestick Series":"","Column Series":"","Line Series":"","Pie Slice 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:"",Image:"",Data:"",Print:"","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":"","From %1":"","To %1":"","No parser available for file: %1":"","Error parsing file: %1":"","Unable to load file: %1":"","Invalid date":"",Close:"",Minimize:"",Confirm:""};export{o 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.98 */
4
- import{R as e}from"./RYDDNPLR.js";import"./WJHAFOF4.js";import{V as t}from"./W77RTKNL.js";import"./35JLEE3X.js";var r=class extends t{setupDefaultRules(){super.setupDefaultRules(),this.rule("InterfaceColors").setAll({stroke:e.fromHex(0),fill:e.fromHex(2829099),primaryButton:e.lighten(e.fromHex(6788316),-.2),primaryButtonHover:e.lighten(e.fromHex(6779356),-.2),primaryButtonDown:e.lighten(e.fromHex(6872181),-.2),primaryButtonActive:e.lighten(e.fromHex(6872182),-.2),primaryButtonText:e.fromHex(16777215),primaryButtonStroke:e.lighten(e.fromHex(6788316),-.2),secondaryButton:e.fromHex(3881787),secondaryButtonHover:e.lighten(e.fromHex(3881787),.1),secondaryButtonDown:e.lighten(e.fromHex(3881787),.15),secondaryButtonActive:e.lighten(e.fromHex(3881787),.2),secondaryButtonText:e.fromHex(12303291),secondaryButtonStroke:e.lighten(e.fromHex(3881787),-.2),grid:e.fromHex(12303291),background:e.fromHex(0),alternativeBackground:e.fromHex(16777215),text:e.fromHex(16777215),alternativeText:e.fromHex(0),disabled:e.fromHex(11382189),positive:e.fromHex(5288704),negative:e.fromHex(11730944)})}};var b=r;export{b as default};
3
+ v5.0.0-next.99 */
4
+ import{R as e}from"./SDFCD74V.js";import"./KMZRQMAL.js";import{V as t}from"./EAOH4V3Q.js";import"./3D3H3GIL.js";var r=class extends t{setupDefaultRules(){super.setupDefaultRules(),this.rule("InterfaceColors").setAll({stroke:e.fromHex(0),fill:e.fromHex(2829099),primaryButton:e.lighten(e.fromHex(6788316),-.2),primaryButtonHover:e.lighten(e.fromHex(6779356),-.2),primaryButtonDown:e.lighten(e.fromHex(6872181),-.2),primaryButtonActive:e.lighten(e.fromHex(6872182),-.2),primaryButtonText:e.fromHex(16777215),primaryButtonStroke:e.lighten(e.fromHex(6788316),-.2),secondaryButton:e.fromHex(3881787),secondaryButtonHover:e.lighten(e.fromHex(3881787),.1),secondaryButtonDown:e.lighten(e.fromHex(3881787),.15),secondaryButtonActive:e.lighten(e.fromHex(3881787),.2),secondaryButtonText:e.fromHex(12303291),secondaryButtonStroke:e.lighten(e.fromHex(3881787),-.2),grid:e.fromHex(12303291),background:e.fromHex(0),alternativeBackground:e.fromHex(16777215),text:e.fromHex(16777215),alternativeText:e.fromHex(0),disabled:e.fromHex(11382189),positive:e.fromHex(5288704),negative:e.fromHex(11730944)})}};var b=r;export{b 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.98 */
3
+ v5.0.0-next.99 */
4
4
  export default $arcgis.t(([{substitute:a,formatNumber:u},{stripHTML:c}])=>{function f(e,n){return n}function l(e,n,i){if(!n)return;if(typeof n=="number")return n;if(typeof n=="string")return c(n);if("value"in n||"unit"in n)return a(e.dotValue??"",n);if("colorName"in n&&"bandName"in n){let o=e[n.colorName],r=e[n.bandName]||n.bandName;return`${o}: ${r}`}if("showCount"in n)return n.showCount?e.clusterCountTitle:void 0;let t=null;return f(n,i)?t=n.ratioPercentTotal?"showRatioPercentTotal":n.ratioPercent?"showRatioPercent":n.ratio?"showRatio":n.normField?"showNormField":n.field?"showField":null:s(n,i)&&(t=n.normField?"showNormField":n.normByPct?"showNormPct":n.field?"showField":null),t?a(t==="showField"?"{field}":e[t]??"",{field:n.field,normField:n.normField}):void 0}function s(e,n){return!n}function h(e,n){if(!e.title||typeof e.title=="string")return e.title;let i=e.type==="color-ramp"||e.type==="opacity-ramp",t=e.title,o=l(n,t,i);return s(t,i)&&t.title?`${t.title} (${o})`:o}var d=/^-?(\d+(\.\d+)?)\s*((px)|(pt))?$/iu;function w(e,n,i){switch(n){case"heatmap-ramp":return(i[e.label]||e.label)??null;case"stretch-ramp":let t="value"in e?e.value:void 0,o=e.label?i[e.label]:"";return o?`${o}: ${typeof t=="string"?t:u(t??0,{style:"decimal",notation:t?.toString().toLowerCase().includes("e")?"scientific":"standard"})}`:"";default:return e.label??null}}function y(e,n){return!!(n&&n==="Stretched"&&"version"in e&&typeof e.version=="number"&&e.version>=10.3&&e.declaredClass==="esri.layers.ImageryLayer")}function v(e){return e?e/72*96:0}function m(e){return e?e*72/96:0}function N(e){if(typeof e=="string"){let n=e.match(d);if(n){let i=Number(n[1]),t=n[3]?.toLowerCase(),o=e.startsWith("-"),r=t==="px"?m(i):i;return o?-r:r}return null}return e}function F(e,n){let i=l(e,n,!1),t=i?e.previewTemplateAriaLabel:e.previewAriaLabel;return a(t??"",{label:i})}function g(e,n){!n||!e||(e.querySelector("svg")??e.querySelector("canvas")??e).setAttribute("aria-label",n)}return{a:l,b:h,c:w,d:y,e:v,f:N,g:F,h:g}},"intl","applications/Components/stringUtils")
@@ -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.98 */
4
- import{V as i}from"./W77RTKNL.js";import"./35JLEE3X.js";var t=class extends i{setupDefaultRules(){super.setupDefaultRules(),this.rule("Component").setAll({interpolationDuration:600}),this.rule("Hierarchy").set("animationDuration",600),this.rule("Scrollbar").set("animationDuration",600),this.rule("Tooltip").set("animationDuration",300),this.rule("MapChart").set("animationDuration",1e3),this.rule("MapChart").set("wheelDuration",300),this.rule("Entity").setAll({stateAnimationDuration:600}),this.rule("Sprite").states.create("default",{stateAnimationDuration:600}),this.rule("Tooltip",["axis"]).setAll({animationDuration:200}),this.rule("WordCloud").set("animationDuration",500),this.rule("Polygon").set("animationDuration",600),this.rule("ArcDiagram").set("animationDuration",600)}};var n=t;export{n as default};
3
+ v5.0.0-next.99 */
4
+ import{V as i}from"./EAOH4V3Q.js";import"./3D3H3GIL.js";var t=class extends i{setupDefaultRules(){super.setupDefaultRules(),this.rule("Component").setAll({interpolationDuration:600}),this.rule("Hierarchy").set("animationDuration",600),this.rule("Scrollbar").set("animationDuration",600),this.rule("Tooltip").set("animationDuration",300),this.rule("MapChart").set("animationDuration",1e3),this.rule("MapChart").set("wheelDuration",300),this.rule("Entity").setAll({stateAnimationDuration:600}),this.rule("Sprite").states.create("default",{stateAnimationDuration:600}),this.rule("Tooltip",["axis"]).setAll({animationDuration:200}),this.rule("WordCloud").set("animationDuration",500),this.rule("Polygon").set("animationDuration",600),this.rule("ArcDiagram").set("animationDuration",600)}};var n=t;export{n 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.98 */
4
- import{b as c}from"./F3R5JZUL.js";import{b as s,e as u}from"./PLPV66L3.js";import{a as h}from"./3E7BRDKM.js";import{b as a,x as n,z as l}from"./RD46LEGA.js";export default $arcgis.t(([{when:f,watch:d}])=>{var m=class extends l{constructor(t){super(t),this.direction=u(),this.attributionHeight=0,this._uiContainer=null,this.component.listen("arcgisViewClick",o=>{this._handleOpenPopup(o.detail)}),this.component.listenOn(globalThis,"unhandledrejection",o=>{if(o.reason?.name==="webgl:required"){let{name:e}=o.reason;this.webGLError={name:e}}})}hostLifecycle(){return[f(()=>this.component.view.popup?.visible,()=>{this.popupRef?.visible&&(this.popupRef.visible=!1)})]}openPopup(t){this.popupRef?this.popupRef.open(t):this.component.view.openPopup(t)}closePopup(){this.popupRef?this.popupRef.visible=!1:this.component.view.closePopup()}handleAttributionHeightChange(t){if(!(this.attributionHeight===t||!this.component.el.shadowRoot)){if(this.attributionHeight=t,!this._uiContainer){let o=this.component.el.shadowRoot.querySelector(".arcgis-map-container-ui");this._uiContainer=o}this._uiContainer?.style.setProperty("--arcgis-internal-attribution-space-top",`${this.attributionHeight}px`)}}async _handleOpenPopup(t){if(this.popupRef&&!this.component.popupDisabled){t.stopPropagation();let{location:o,promises:e}=await this.popupRef?.handleViewClick(t);e?.length&&(this.component.view.closePopup(),this.popupRef?.open({location:o,promises:e}))}}_handlePopupSlotChange(t){let o=h(t.target,"arcgis-popup");!this.popupRef&&o.length?this.popupRef=o[0]:o.length||(this.popupRef=void 0)}_webGLErrorAlert(){return this.webGLError?a`<calcite-alert icon=x-octagon kind=danger open .label=${this.webGLError.name}><div slot=title>Unable to display map. WebGL2 support is required.</div><div slot=message>Ensure that your browser and hardware meet the minimum requirements.</div><calcite-link slot=link href=https://esriurl.com/webgl-faq>https://esriurl.com/webgl-faq</calcite-link></calcite-alert>`:null}render(){return c(this.direction,t=>this._handlePopupSlotChange(t),this._webGLErrorAlert())}},y=s((i,t)=>{let o=n();return t.onLifecycle(()=>d(()=>{let{map:e}=i;if(!e||e.destroyed)return[];let r=[];return e.loadError&&r.push(e),e.basemap?.loadError&&r.push(e.basemap),e.ground.loadError&&r.push(e.ground),[...e.allLayers,...e.allTables].forEach(p=>{p.loadError&&r.push(p)}),r},e=>{e.length&&(i.loadErrorSources=e,o.emit())})),o}),C=s((i,t)=>{let o=n();return t.onLifecycle(()=>d(()=>i.view?.readyState,e=>{(e==="map-content-error"||e==="rendering-error")&&o.emit()})),o});return{a:m,b:y,c:C}},"core/reactiveUtils")
3
+ v5.0.0-next.99 */
4
+ import{b as c}from"./5GNFQ33V.js";import{b as s,e as u}from"./P7HP6NNS.js";import{a as h}from"./EXMK6ER2.js";import{b as a,x as n,z as l}from"./E53R7MWL.js";export default $arcgis.t(([{when:f,watch:d}])=>{var m=class extends l{constructor(t){super(t),this.direction=u(),this.attributionHeight=0,this._uiContainer=null,this.component.listen("arcgisViewClick",o=>{this._handleOpenPopup(o.detail)}),this.component.listenOn(globalThis,"unhandledrejection",o=>{if(o.reason?.name==="webgl:required"){let{name:e}=o.reason;this.webGLError={name:e}}})}hostLifecycle(){return[f(()=>this.component.view.popup?.visible,()=>{this.popupRef?.visible&&(this.popupRef.visible=!1)})]}openPopup(t){this.popupRef?this.popupRef.open(t):this.component.view.openPopup(t)}closePopup(){this.popupRef?this.popupRef.visible=!1:this.component.view.closePopup()}handleAttributionHeightChange(t){if(!(this.attributionHeight===t||!this.component.el.shadowRoot)){if(this.attributionHeight=t,!this._uiContainer){let o=this.component.el.shadowRoot.querySelector(".arcgis-map-container-ui");this._uiContainer=o}this._uiContainer?.style.setProperty("--arcgis-internal-attribution-space-top",`${this.attributionHeight}px`)}}async _handleOpenPopup(t){if(this.popupRef&&!this.component.popupDisabled){t.stopPropagation();let{location:o,promises:e}=await this.popupRef?.handleViewClick(t);e?.length&&(this.component.view.closePopup(),this.popupRef?.open({location:o,promises:e}))}}_handlePopupSlotChange(t){let o=h(t.target,"arcgis-popup");!this.popupRef&&o.length?this.popupRef=o[0]:o.length||(this.popupRef=void 0)}_webGLErrorAlert(){return this.webGLError?a`<calcite-alert icon=x-octagon kind=danger open .label=${this.webGLError.name}><div slot=title>Unable to display map. WebGL2 support is required.</div><div slot=message>Ensure that your browser and hardware meet the minimum requirements.</div><calcite-link slot=link href=https://esriurl.com/webgl-faq>https://esriurl.com/webgl-faq</calcite-link></calcite-alert>`:null}render(){return c(this.direction,t=>this._handlePopupSlotChange(t),this._webGLErrorAlert())}},y=s((i,t)=>{let o=n();return t.onLifecycle(()=>d(()=>{let{map:e}=i;if(!e||e.destroyed)return[];let r=[];return e.loadError&&r.push(e),e.basemap?.loadError&&r.push(e.basemap),e.ground.loadError&&r.push(e.ground),[...e.allLayers,...e.allTables].forEach(p=>{p.loadError&&r.push(p)}),r},e=>{e.length&&(i.loadErrorSources=e,o.emit())})),o}),C=s((i,t)=>{let o=n();return t.onLifecycle(()=>d(()=>i.view?.readyState,e=>{(e==="map-content-error"||e==="rendering-error")&&o.emit()})),o});return{a:m,b:y,c:C}},"core/reactiveUtils")
@@ -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.98 */
4
- import e from"./WYJREC2J.js";import{a as c,c as y}from"./F3R5JZUL.js";import{a as u}from"./M4ZB77V2.js";import b from"./QRVBD3EB.js";import"./PLPV66L3.js";import"./VBNQC63F.js";import{d,e as g}from"./FIXKLQIP.js";import"./3E7BRDKM.js";import{L as h,M as n,N as p,O as o,T as v,b as a,x as r}from"./RD46LEGA.js";import"./35JLEE3X.js";export default $arcgis.t(([{watch:s},C,A,E,{a:t,b:w,f:m},{a:b,b:f,c:V}])=>{var R=w(A,{}),_=w(C,{}),l=class extends p{constructor(){super(),this._containerRef=h(),this._mapRef=h(),this._uiController=new b(this),this.extraContent=new E,this.arcgisLoadError=f(this),this.arcgisViewReadyError=V(this),this._map=R(this),this.view=_(this),this.animationsDisabled=this.view.animationsEnabled,this.allLayerViews=this.view.allLayerViews,this.analyses=this.view.analyses,this.attributionMode=this.view.attributionMode,this.autoDestroyDisabled=!1,this.background=this.view.background,this.basemap=this._map.basemap,this.basemapView=this.view.basemapView,this.constraints=this.view.constraints,this.displayFilterDisabled=this.view.displayFilterEnabled,this.fatalError=this.view.fatalError,this.floors=this.view.floors,this.graphics=this.view.graphics,this.ground=this._map.ground,this.highlights=this.view.highlights,this.highlightOptions=this.view.highlightOptions,this.ipsInfo=this._map.ipsInfo,this.layerViews=this.view.layerViews,this.magnifier=this.view.magnifier,this.map=this.view.map,this.navigation=this.view.navigation,this.padding=this.view.padding,this.popup=this.view.popup,this.popupDisabled=this.view.popupEnabled,this.ready=this.view.ready,this.resizeAlign=this.view.resizeAlign,this.resolution=this.view.resolution,this.rotation=this.view.rotation,this.spatialReference=this.view.spatialReference,this.spatialReferenceLocked=this.view.spatialReferenceLocked,this.suspended=this.view.suspended,this.theme=this.view.theme,this.timeExtent=this.view.timeExtent,this.timeZone=this.view.timeZone,this.updating=this.view.updating,this.visibleArea=this.view.visibleArea,this.arcgisViewAnalysisViewCreate=t(()=>this.view,"analysis-view-create"),this.arcgisViewAnalysisViewCreateError=t(()=>this.view,"analysis-view-create-error"),this.arcgisViewAnalysisViewDestroy=t(()=>this.view,"analysis-view-destroy"),this.arcgisViewChange=r(),this.arcgisViewClick=t(()=>this.view,"click"),this.arcgisViewDoubleClick=t(()=>this.view,"double-click"),this.arcgisViewDrag=t(()=>this.view,"drag"),this.arcgisViewHold=t(()=>this.view,"hold"),this.arcgisViewImmediateClick=t(()=>this.view,"immediate-click"),this.arcgisViewImmediateDoubleClick=t(()=>this.view,"immediate-double-click"),this.arcgisViewKeyDown=t(()=>this.view,"key-down"),this.arcgisViewKeyUp=t(()=>this.view,"key-up"),this.arcgisViewLayerviewCreate=t(()=>this.view,"layerview-create"),this.arcgisViewLayerviewCreateError=t(()=>this.view,"layerview-create-error"),this.arcgisViewLayerviewDestroy=t(()=>this.view,"layerview-destroy"),this.arcgisViewMouseWheel=t(()=>this.view,"mouse-wheel"),this.arcgisViewPointerDown=t(()=>this.view,"pointer-down"),this.arcgisViewPointerEnter=t(()=>this.view,"pointer-enter"),this.arcgisViewPointerLeave=t(()=>this.view,"pointer-leave"),this.arcgisViewPointerMove=t(()=>this.view,"pointer-move"),this.arcgisViewPointerUp=t(()=>this.view,"pointer-up"),this.arcgisViewReadyChange=r(),this.view.ui={components:[]}}static{this.properties={_map:16,view:32,animationsDisabled:5,aria:0,allLayerViews:0,analyses:0,attributionItems:32,attributionMode:1,autoDestroyDisabled:5,background:0,basemap:1,basemapView:0,center:1,constraints:0,displayFilterDisabled:5,extent:0,fatalError:0,floors:0,focusAreas:0,gamepad:32,graphics:0,ground:1,hideAttribution:5,highlights:0,highlightOptions:0,interacting:32,ipsInfo:0,itemId:3,layerViews:0,magnifier:0,map:0,navigating:32,navigation:0,padding:0,popup:0,popupDisabled:5,ready:4,resizeAlign:1,resolution:8,rotation:9,scale:9,spatialReference:0,spatialReferenceLocked:5,stationary:32,suspended:7,theme:0,timeExtent:0,timeZone:1,updating:4,viewpoint:0,visibleArea:0,zoom:9,loadErrorSources:0}}static{this.styles=[u,y]}get aria(){return this.view?.aria}set aria(i){this.view&&(this.view.aria=i)}get attributionItems(){return this.view?.attributionItems??[]}get center(){return this.view.center}set center(i){let e=g(i,this.view);e&&(this.view.center=e)}get extent(){return this.view.extent}set extent(i){i&&!this.extent?.equals(i)&&(this.view.extent=i)}get focusAreas(){return this.map?this.map.focusAreas:{areas:[],style:"bright"}}set focusAreas(i){this.map&&(this.map.focusAreas=i)}get gamepad(){return this.view.input.gamepad}get hideAttribution(){return!this.view.attributionVisible}set hideAttribution(i){this.view.attributionVisible=!i}get interacting(){return this.view.interacting}get itemId(){return this._map.portalItem?.id}set itemId(i){m(this._map,this),this._map.portalItem={id:i},this.view.map=this._map}get navigating(){return this.view.navigating}get scale(){return this.view.scale}set scale(i){this.view.scale=i}get stationary(){return this.view.stationary}get viewpoint(){return this.view.viewpoint}set viewpoint(i){d(this.viewpoint,i)&&(this.view.viewpoint=i)}get zoom(){return this.view.zoom}set zoom(i){this.view.zoom=i}async addLayer(i,e){this.map?.add(i,e)}async addLayers(i,e){this.map?.addMany(i,e)}async addTable(i){this.map?.tables.add(i)}async addTables(i,e){this.map?.tables.addMany(i,e)}async closePopup(){this._uiController.closePopup()}async destroy(){await this.manager.destroy()}async goTo(i,e){return await this.view.goTo(i,e)}async hitTest(i,e){return await this.view.hitTest(i,e)}async openPopup(i){this._uiController.openPopup(i)}async takeScreenshot(i){return await this.view.takeScreenshot(i)}toMap(i){return this.view.toMap(i)}toScreen(i,e){return this.view.toScreen(i,e)}async tryFatalErrorRecovery(){this.view.tryFatalErrorRecovery()}async viewOnReady(i,e){return await this.componentOnReady(),await this.view.whenReady().then(()=>i?.()).catch(e)}async whenAnalysisView(i){return await this.view.whenAnalysisView(i)}async whenLayerView(i){return await this.view?.whenLayerView(i)}loaded(){let i=this;i.el.childElem=this._mapRef.value,this.view.container??=i.el.childElem,this.map||=this._map,this.manager.onLifecycle(()=>[s(()=>this.map,e=>{e&&(this._map=e)},{initial:!0,sync:!0}),s(()=>this.view.stationary,()=>this.arcgisViewChange.emit(),{initial:!0}),s(()=>this.view.ready,()=>this.arcgisViewReadyChange.emit(),{initial:this.view.ready}),s(()=>this.view.attributionHeight,e=>{this._uiController.handleAttributionHeightChange(e)})])}renderMain(){return a`<div class=${o(c.base)} ${n(this._mapRef)}></div>`}render(){return a`<section class=${o(c.containerUI)} ${n(this._containerRef)}>${this._uiController.render()}${this.extraContent}</section>${this.renderMain()}`}};v("arcgis-map",l);return l},"core/reactiveUtils","views/MapView","WebMap","core/Collection",b,e)
3
+ v5.0.0-next.99 */
4
+ import e from"./VISO5ZMW.js";import{a as c,c as y}from"./5GNFQ33V.js";import{a as u}from"./VV3IXUET.js";import b from"./KJEUZJXN.js";import"./P7HP6NNS.js";import"./4JSE3AHY.js";import{d,e as g}from"./2SKKF2NH.js";import"./EXMK6ER2.js";import{L as h,M as n,N as p,O as o,T as v,b as a,x as r}from"./E53R7MWL.js";import"./3D3H3GIL.js";export default $arcgis.t(([{watch:s},C,A,E,{a:t,b:w,f:m},{a:b,b:f,c:V}])=>{var R=w(A,{}),_=w(C,{}),l=class extends p{constructor(){super(),this._containerRef=h(),this._mapRef=h(),this._uiController=new b(this),this.extraContent=new E,this.arcgisLoadError=f(this),this.arcgisViewReadyError=V(this),this._map=R(this),this.view=_(this),this.animationsDisabled=this.view.animationsEnabled,this.allLayerViews=this.view.allLayerViews,this.analyses=this.view.analyses,this.attributionMode=this.view.attributionMode,this.autoDestroyDisabled=!1,this.background=this.view.background,this.basemap=this._map.basemap,this.basemapView=this.view.basemapView,this.constraints=this.view.constraints,this.displayFilterDisabled=this.view.displayFilterEnabled,this.fatalError=this.view.fatalError,this.floors=this.view.floors,this.graphics=this.view.graphics,this.ground=this._map.ground,this.highlights=this.view.highlights,this.highlightOptions=this.view.highlightOptions,this.ipsInfo=this._map.ipsInfo,this.layerViews=this.view.layerViews,this.magnifier=this.view.magnifier,this.map=this.view.map,this.navigation=this.view.navigation,this.padding=this.view.padding,this.popup=this.view.popup,this.popupDisabled=this.view.popupEnabled,this.ready=this.view.ready,this.resizeAlign=this.view.resizeAlign,this.resolution=this.view.resolution,this.rotation=this.view.rotation,this.spatialReference=this.view.spatialReference,this.spatialReferenceLocked=this.view.spatialReferenceLocked,this.suspended=this.view.suspended,this.theme=this.view.theme,this.timeExtent=this.view.timeExtent,this.timeZone=this.view.timeZone,this.updating=this.view.updating,this.visibleArea=this.view.visibleArea,this.arcgisViewAnalysisViewCreate=t(()=>this.view,"analysis-view-create"),this.arcgisViewAnalysisViewCreateError=t(()=>this.view,"analysis-view-create-error"),this.arcgisViewAnalysisViewDestroy=t(()=>this.view,"analysis-view-destroy"),this.arcgisViewChange=r(),this.arcgisViewClick=t(()=>this.view,"click"),this.arcgisViewDoubleClick=t(()=>this.view,"double-click"),this.arcgisViewDrag=t(()=>this.view,"drag"),this.arcgisViewHold=t(()=>this.view,"hold"),this.arcgisViewImmediateClick=t(()=>this.view,"immediate-click"),this.arcgisViewImmediateDoubleClick=t(()=>this.view,"immediate-double-click"),this.arcgisViewKeyDown=t(()=>this.view,"key-down"),this.arcgisViewKeyUp=t(()=>this.view,"key-up"),this.arcgisViewLayerviewCreate=t(()=>this.view,"layerview-create"),this.arcgisViewLayerviewCreateError=t(()=>this.view,"layerview-create-error"),this.arcgisViewLayerviewDestroy=t(()=>this.view,"layerview-destroy"),this.arcgisViewMouseWheel=t(()=>this.view,"mouse-wheel"),this.arcgisViewPointerDown=t(()=>this.view,"pointer-down"),this.arcgisViewPointerEnter=t(()=>this.view,"pointer-enter"),this.arcgisViewPointerLeave=t(()=>this.view,"pointer-leave"),this.arcgisViewPointerMove=t(()=>this.view,"pointer-move"),this.arcgisViewPointerUp=t(()=>this.view,"pointer-up"),this.arcgisViewReadyChange=r(),this.view.ui={components:[]}}static{this.properties={_map:16,view:32,animationsDisabled:5,aria:0,allLayerViews:0,analyses:0,attributionItems:32,attributionMode:1,autoDestroyDisabled:5,background:0,basemap:1,basemapView:0,center:1,constraints:0,displayFilterDisabled:5,extent:0,fatalError:0,floors:0,focusAreas:0,gamepad:32,graphics:0,ground:1,hideAttribution:5,highlights:0,highlightOptions:0,interacting:32,ipsInfo:0,itemId:3,layerViews:0,magnifier:0,map:0,navigating:32,navigation:0,padding:0,popup:0,popupDisabled:5,ready:4,resizeAlign:1,resolution:8,rotation:9,scale:9,spatialReference:0,spatialReferenceLocked:5,stationary:32,suspended:7,theme:0,timeExtent:0,timeZone:1,updating:4,viewpoint:0,visibleArea:0,zoom:9,loadErrorSources:0}}static{this.styles=[u,y]}get aria(){return this.view?.aria}set aria(i){this.view&&(this.view.aria=i)}get attributionItems(){return this.view?.attributionItems??[]}get center(){return this.view.center}set center(i){let e=g(i,this.view);e&&(this.view.center=e)}get extent(){return this.view.extent}set extent(i){i&&!this.extent?.equals(i)&&(this.view.extent=i)}get focusAreas(){return this.map?this.map.focusAreas:{areas:[],style:"bright"}}set focusAreas(i){this.map&&(this.map.focusAreas=i)}get gamepad(){return this.view.input.gamepad}get hideAttribution(){return!this.view.attributionVisible}set hideAttribution(i){this.view.attributionVisible=!i}get interacting(){return this.view.interacting}get itemId(){return this._map.portalItem?.id}set itemId(i){m(this._map,this),this._map.portalItem={id:i},this.view.map=this._map}get navigating(){return this.view.navigating}get scale(){return this.view.scale}set scale(i){this.view.scale=i}get stationary(){return this.view.stationary}get viewpoint(){return this.view.viewpoint}set viewpoint(i){d(this.viewpoint,i)&&(this.view.viewpoint=i)}get zoom(){return this.view.zoom}set zoom(i){this.view.zoom=i}async addLayer(i,e){this.map?.add(i,e)}async addLayers(i,e){this.map?.addMany(i,e)}async addTable(i){this.map?.tables.add(i)}async addTables(i,e){this.map?.tables.addMany(i,e)}async closePopup(){this._uiController.closePopup()}async destroy(){await this.manager.destroy()}async goTo(i,e){return await this.view.goTo(i,e)}async hitTest(i,e){return await this.view.hitTest(i,e)}async openPopup(i){this._uiController.openPopup(i)}async takeScreenshot(i){return await this.view.takeScreenshot(i)}toMap(i){return this.view.toMap(i)}toScreen(i,e){return this.view.toScreen(i,e)}async tryFatalErrorRecovery(){this.view.tryFatalErrorRecovery()}async viewOnReady(i,e){return await this.componentOnReady(),await this.view.whenReady().then(()=>i?.()).catch(e)}async whenAnalysisView(i){return await this.view.whenAnalysisView(i)}async whenLayerView(i){return await this.view?.whenLayerView(i)}loaded(){let i=this;i.el.childElem=this._mapRef.value,this.view.container??=i.el.childElem,this.map||=this._map,this.manager.onLifecycle(()=>[s(()=>this.map,e=>{e&&(this._map=e)},{initial:!0,sync:!0}),s(()=>this.view.stationary,()=>this.arcgisViewChange.emit(),{initial:!0}),s(()=>this.view.ready,()=>this.arcgisViewReadyChange.emit(),{initial:this.view.ready}),s(()=>this.view.attributionHeight,e=>{this._uiController.handleAttributionHeightChange(e)})])}renderMain(){return a`<div class=${o(c.base)} ${n(this._mapRef)}></div>`}render(){return a`<section class=${o(c.containerUI)} ${n(this._containerRef)}>${this._uiController.render()}${this.extraContent}</section>${this.renderMain()}`}};v("arcgis-map",l);return l},"core/reactiveUtils","views/MapView","WebMap","core/Collection",b,e)
@@ -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.98 */
4
- import{a as F}from"./HT7FTMYE.js";import{a as A}from"./FUIS67EA.js";import{N as T,R as q,T as S,a as v,b as p}from"./RD46LEGA.js";import"./35JLEE3X.js";export default $arcgis.t(([{createReactiveMap:I,findUtilityNetwork:U,queryAllJSON:V,getOrCreateMapValue:D},{stripHTML:L},b,{ignoreAbortErrors:N},{watch:C},M,Q,B,P,x,G])=>{var O=v`.list-container{min-height:var(--calcite-spacing-xxxl)}.loading-container{display:flex;justify-content:center;padding:var(--calcite-spacing-md) 0;width:100%}.sticky-loading-container{display:flex;position:sticky;bottom:var(--calcite-spacing-sm);align-items:center;justify-content:center;z-index:2;margin:0;padding:0;height:var(--calcite-spacing-xxxl);pointer-events:none;height:500px}`,E=100,$={assetGroup:"assetgroup",assetType:"assettype"},j="{00000000-0000-0000-0000-000000000000}",k=class extends T{constructor(){super(...arguments),this._addFlowItem=t=>{t&&this.flowItems?.push(t)},this._attachmentAssociations=new b,this._attachmentFeatureCount=0,this._cancelQuery=()=>{let{_queryAbortController:t}=this;t&&t.abort(),this._queryAbortController=null},this._cancelQueryFeatureCount=()=>{let{_queryFeatureCountAbortController:t}=this;t&&t.abort(),this._queryFeatureCountAbortController=null},this._connectivityAssociations=new b,this._connectivityFeatureCount=0,this._containerAssociations=new b,this._containerFeatureCount=0,this._contentAssociations=new b,this._contentFeatureCount=0,this._networkSourceIdsInUse=new Set,this._query=async t=>{if(!t)return;await this._loadUtiltyNetworks();let{_queryAbortController:e}=this;this._destroyAssociatedFeatureViewModels(),this._clearFeatures(),this._featureCount&&await this._queryAssociatedFeatures(t,{signal:e?.signal})},this._queryController=async t=>{this._cancelQuery();let e=new AbortController;this._queryAbortController=e,await N(this._query(t)),this._queryAbortController===e&&(this._queryAbortController=null)},this._queryFeatureCountController=async()=>{this._loaded=!1,this._cancelQueryFeatureCount();let t=new AbortController;this._queryFeatureCountAbortController=t,await N(this._queryFeatureCount()),this._queryFeatureCountAbortController===t&&(this._queryFeatureCountAbortController=null),this._loaded=!0},this._queryDebounced=F(this._queryController,E),this._queryFeatureCountDebounced=F(this._queryFeatureCountController,E),this._structureAssociations=new b,this._structureFeatureCount=0,this._queryAssociationType=async()=>{this._activeAssociationType&&this._queryDebounced(this._activeAssociationType)},this._associationFeatures=I(),this._associationViewModels=I(),this._featureCount=0,this._loaded=!1,this._queryAbortController=null,this._queryFeatureCountAbortController=null,this._queryPageAbortController=null,this.associationTypes=null,this.autoDestroyDisabled=!1,this.flowType="feature-utility-network-associations",this.headingLevel=2,this.source="popup"}static{this.properties={_activeAssociationType:16,_associationFeatures:16,_associationViewModels:16,_canLoad:16,_canQuery:16,_featureCount:16,_loaded:16,_queryAbortController:16,_queryFeatureCountAbortController:16,_queryPageAbortController:16,_state:16,associationTypes:0,autoDestroyDisabled:5,description:1,flowItems:0,flowType:1,graphic:0,heading:1,headingLevel:9,layer:0,map:0,messages:0,parentFeatureViewModel:0,source:1,spatialReference:0,timeZone:1,view:0}}static{this.styles=O}get _globalId(){return(this._globalIdField&&this.graphic?.attributes?.[this._globalIdField])??null}get _globalIdField(){return this.layer?.globalIdField}get _objectId(){return(this._objectIdField&&this.graphic?.attributes?.[this._objectIdField])??null}get _objectIdField(){return this.layer?.objectIdField}get _supportsCacheHint(){return!!this.layer?.capabilities?.queryRelated?.supportsCacheHint}get _utilityNetwork(){let{layer:t,map:e}=this;if(!t?.loaded||!e)return null;let s=this._isSubtypeSublayer(t)?t.parent:t;return U(e,s)}get _canLoad(){return!!this.map}get _canQuery(){return!!this.layer?.capabilities?.query?.supportsPagination}get _state(){let{_canLoad:t,_canQuery:e,_featureCount:s,_loaded:a,_queryAbortController:i,_queryFeatureCountAbortController:o,_queryPageAbortController:c,associationTypes:l}=this;return o||t&&!a?"loading":i||c?"querying":!this._globalId||!l||!e||!s?"disabled":"ready"}get heading(){return this._heading}set heading(t){this._heading=t}async destroy(){await this.manager.destroy()}loaded(){this.manager.onLifecycle(()=>[C(()=>[this.graphic,this.layer,this.map,this.associationTypes,this._canQuery,this._objectId,this._globalId],()=>{this._queryFeatureCountDebounced(),this._queryAssociationType()},{initial:!0}),C(()=>this._activeAssociationType,t=>{this._queryDebounced(t)}),C(()=>this._associationFeatures.values(),()=>{this._setUpUtilityNetworkAssociationsViewModels()})]),this.manager.onDestroy(()=>{this._cancelQuery(),this._cancelQueryFeatureCount()})}_addAssociationTypeFlowItem(t){this._addFlowItem(q(p`<arcgis-feature-utility-network-association-list .associationViewModels=${this._associationViewModels} .description=${this.parentFeatureViewModel?.title} .flowItems=${this.flowItems} .flowType=${this.flowType} .heading=${this._getAssociationTypeTitle(t)} .messages=${this.messages} .map=${this.map} .parentFeatureViewModel=${this.parentFeatureViewModel} .state=${this._state} .spatialReference=${this.spatialReference} .timeZone=${this.timeZone} .view=${this.view}></arcgis-feature-utility-network-association-list>`))}_clearAssociations(){this._attachmentAssociations.removeAll(),this._connectivityAssociations.removeAll(),this._containerAssociations.removeAll(),this._contentAssociations.removeAll(),this._structureAssociations.removeAll()}_clearFeatures(){this._associationFeatures.forEach(t=>t.removeAll()),this._associationFeatures.clear()}_compareByFeatureTitle(t,e){return t.title.localeCompare(e.title,void 0,{numeric:!0})}async _countAssociatedFeatureCount(t,e,s,a,i){let o=this._getFeatureQueryWhereClause(t,e,s,a);return await t.queryFeatureCount({where:o,outFields:["*"],returnGeometry:!1},{signal:i?.signal})}async _countAssociatedFeatures(t,e,s,a,i){if(!e.length)return 0;let o=await this._findLayersBySourceId(t);await this._loadLayers(o);let c=o.map(l=>this._countAssociatedFeatureCount(l,e,s,a,i));return(await Promise.all(c)).reduce((l,r)=>l+r,0)}async _createAssociationFeatureObjects(t,e,s,a,i){if(!t.length)return[];let o=new Map,c=Array.from(e.entries()).map(async([r,d])=>{let u=await this._findLayersBySourceId(r);await this._loadLayers(u);let h=u.map(m=>this._queryLayer(m,d,s,a,i));(await Promise.all(h)).forEach(m=>{m.forEach(n=>{if(this.source==="popup"?n.sourceLayer&&n.getEffectivePopupTemplate():n.sourceLayer){let _=n.layer.globalIdField??"",y=n.attributes[_],w=o.get(y)??[];w.push(n),o.set(y,w)}})})});await Promise.all(c);let l=[];return await Promise.all(t.toArray().map(async r=>{let{fromNetworkElement:d,toNetworkElement:u}=r,h=d.globalId===this._globalId?u:d,m=o.get(h.globalId)??[];await Promise.all(m.map(async n=>{let _=this._utilityNetwork?.getTerminalById(h?.terminalId)?.name,y=await n.sourceLayer.getFeatureTitle(n)||this._getFeatureTitle(n);l.push({title:y,feature:n,association:r,terminalName:_})}))})),l}_destroyAssociatedFeatureViewModels(){this._associationViewModels.forEach(t=>t.destroyAll())}_equals(t,e){if(t.globalId===j&&e.globalId===j){let s=function(d,u){return d.networkSourceId===u.networkSourceId&&d.globalId===u.globalId&&d.terminalId===u.terminalId&&d.firstUnit===u.firstUnit&&d.numUnits===u.numUnits},a=t.fromNetworkElement,i=t.toNetworkElement,o=e.fromNetworkElement,c=e.toNetworkElement,l=s(a,o),r=s(i,c);return l&&r&&t.associationType===e.associationType}return t.globalId!=null&&e.globalId!=null&&t.globalId===e.globalId}async _findLayersBySourceId(t){let{_utilityNetwork:e,map:s}=this;e?.loaded||await e?.load();let a=e.getLayerIdBySourceId(t),i=s.allLayers.filter(c=>!!e?.isUtilityLayer(c)&&c.layerId===a),o=s.allTables.filter(c=>!!e?.isUtilityLayer(c)&&c.layerId===a);return i.concat(o).toArray()}_getAssociationsByType(t){switch(t){case"attachment":return this._attachmentAssociations;case"structure":return this._structureAssociations;case"connectivity":return this._connectivityAssociations;case"container":return this._containerAssociations;case"content":return this._contentAssociations}}_getAssociationTypeTitle(t){let{messages:e}=this;if(t.title)return t.title;switch(t.type){case"attachment":return e?.associationsAttachments??this.messages?.noTitle??"";case"connectivity":return e?.associationsConnectivity??this.messages?.noTitle??"";case"structure":return e?.associationsStructure??this.messages?.noTitle??"";case"content":return e?.associationsContents??this.messages?.noTitle??"";case"container":return e?.associationsContainer??this.messages?.noTitle??""}}_getFeatureCountForAssociationType(t){switch(t){case"attachment":return this._attachmentFeatureCount;case"structure":return this._structureFeatureCount;case"content":return this._contentFeatureCount;case"container":return this._containerFeatureCount;case"connectivity":return this._connectivityFeatureCount}}_getFeatureQueryWhereClause(t,e,s,a){let i=t.globalIdField,o=t.fieldsIndex.get($.assetGroup),c=t.fieldsIndex.get($.assetType),l=s!=null,r=a!=null,d=i?M.sqlIn(i,e):null,u=l?`(${o?.name} = ${s})`:null,h=l&&r?`(${c?.name} = ${a})`:null;return[d,u,h].filter(Boolean).join(" AND ")}_getFeatureTitle(t){let e=t.attributes,s=t.sourceLayer;if(!e||!s)return"";let a="displayField"in s?s.displayField:null,i=a!=null?e[a.toString()]:null,o=i!=null?i.toString():null,c=t.getObjectId()?.toString();return o||c||""}_isSubtypeGroupLayer(t){return t!=null&&typeof t=="object"&&"type"in t&&t.type==="subtype-group"&&"sublayers"in t}_isSubtypeSublayer(t){return t?.type==="subtype-sublayer"}async _loadUtiltyNetworks(){let t=this.map;if(!t)return;t.utilityNetworks&&await Promise.allSettled(t.utilityNetworks.map(s=>s.load()));let e=this._utilityNetwork;if(e){let s=a=>{if("layerId"in a&&e.isUtilityLayer(a)){let i=a.layerId!=null?e.getSourceIdByLayerId(a.layerId):null;i!=null&&this._networkSourceIdsInUse.add(i)}};this._networkSourceIdsInUse=new Set,t.allLayers.forEach(s),t.allTables.forEach(s)}}async _loadLayers(t){let e=t.filter(s=>!s.loaded).map(s=>s.load());e.length&&await Promise.allSettled(e)}_matchesGlobalFeature(t,e){return this._equals(t.association,e.association)}async _queryAssociatedFeatures(t,e){let{layer:s,_globalId:a,associationTypes:i,_utilityNetwork:o,_canQuery:c,_associationFeatures:l}=this;if(await Promise.allSettled([s?.load(),o?.load()]),!c||!s||!i||!o)return;let r=this._getAssociationsByType(t.type),{associatedAssetGroup:d,associatedAssetType:u}=t,h=new Map;r.forEach(n=>{let{fromNetworkElement:_,toNetworkElement:y}=n,{networkSourceId:w,elementGlobalId:f}=_.globalId===a?{networkSourceId:y.networkSourceId,elementGlobalId:y.globalId}:{networkSourceId:_.networkSourceId,elementGlobalId:_.globalId},g=h.get(w)||[];g.push(f),h.set(w,g)});let m=await this._createAssociationFeatureObjects(r,h,d,u,e);this._parseFeatureObjects(m,l)}async _queryAssociations(t){let{layer:e,_globalId:s,associationTypes:a,_utilityNetwork:i,_canQuery:o}=this;if(await Promise.allSettled([e?.load(),i?.load()]),this._clearAssociations(),!o||!e||!a||!i||!s)return;let c=this._isSubtypeSublayer(e)?e.parent:e,l=new Q({globalId:s,networkSourceId:i.getSourceIdByLayerId(c.layerId)}),r=new Set;a.forEach(n=>{switch(n.type){case"attachment":case"structure":r.add("attachment");break;case"container":case"content":r.add("containment");break;case"connectivity":r.add("connectivity"),r.add("junction-junction-connectivity"),r.add("junction-edge-from-connectivity"),r.add("junction-edge-midspan-connectivity"),r.add("junction-edge-to-connectivity");break}});let d=await i?.queryAssociations(new B({elements:[l],types:Array.from(r)}),{signal:t?.signal}),u=new Map,h=new Map;a.forEach(n=>{h.set(n.type,n),u.set(n.type,[])}),d.forEach(n=>{let{toNetworkElement:_,fromNetworkElement:y}=n;switch(n.associationType){case"attachment":if(y?.globalId===s){if(this._shouldDiscardNetworkElement(_,"attachment",h))break;u.get("attachment")?.push(_.globalId),this._attachmentAssociations.add(n)}else{if(this._shouldDiscardNetworkElement(y,"structure",h))break;u.get("structure")?.push(y.globalId),this._structureAssociations.add(n)}break;case"connectivity":case"junction-edge-from-connectivity":case"junction-edge-midspan-connectivity":case"junction-edge-to-connectivity":case"junction-junction-connectivity":if(y?.globalId===s){if(this._shouldDiscardNetworkElement(_,"connectivity",h))break;u.get("connectivity")?.push(_.globalId)}else{if(this._shouldDiscardNetworkElement(y,"connectivity",h))break;u.get("connectivity")?.push(y.globalId)}this._connectivityAssociations.add(n);break;case"containment":if(y?.globalId===s){if(this._shouldDiscardNetworkElement(_,"content",h))break;u.get("content")?.push(_.globalId),this._contentAssociations.add(n)}else{if(this._shouldDiscardNetworkElement(y,"container",h))break;u.get("container")?.push(y.globalId),this._containerAssociations.add(n)}break}});let m=a.map(async n=>{let{associatedNetworkSourceId:_,associatedAssetGroup:y,associatedAssetType:w}=n,f=u.get(n.type),g=y!=null?await this._countAssociatedFeatures(_,f,y,w,t):f.length;switch(n.type){case"attachment":this._attachmentFeatureCount=g;break;case"connectivity":this._connectivityFeatureCount=g;break;case"container":this._containerFeatureCount=g;break;case"content":this._contentFeatureCount=g;break;case"structure":this._structureFeatureCount=g;break}});await Promise.allSettled(m)}async _queryFeatureCount(){await this._loadUtiltyNetworks();let{_queryFeatureCountAbortController:t,_canQuery:e}=this;if(!e){this._featureCount=0;return}await this._queryAssociations(t),this._featureCount=this._attachmentFeatureCount+this._connectivityFeatureCount+this._containerFeatureCount+this._contentFeatureCount+this._structureFeatureCount}async _queryLayer(t,e,s,a,i){let o=this._getFeatureQueryWhereClause(t,e,s,a),c=new x({where:o,outFields:["*"],cacheHint:this._supportsCacheHint}),l=P.fromJSON(await V(t,c,i));return l.features.forEach(r=>{let d=this._isSubtypeGroupLayer(t);r.layer=d?t.findSublayerForFeature(r):t,r.sourceLayer=d?t.findSublayerForFeature(r):t}),l.features}_parseFeatureObjects(t,e){let s=I();t.forEach(a=>{let i=(a?.feature).sourceLayer;D(s,i,()=>new b).add(a)});for(let[a,i]of s)this._sortFeatureObjectsByTitle(i),e.set(a,i)}_selectAssociationType(t){let{flowItems:e}=this;e&&(this._activeAssociationType=t,this._setUpUtilityNetworkAssociationsViewModels(),this._addAssociationTypeFlowItem(t))}_setUpUtilityNetworkAssociationsViewModels(){this._associationViewModels.forEach((i,o)=>{let c=this._associationFeatures.get(o);c?i.forEach(l=>{c.find(r=>this._matchesGlobalFeature(l,r))||(i.remove(l),i.length||this._associationViewModels.delete(o))}):(i.removeAll(),this._associationViewModels.delete(o))});let{map:t,view:e,spatialReference:s,timeZone:a}=this;this._associationFeatures.forEach((i,o)=>{let c=this._associationViewModels.get(o)||new b;i?.filter(Boolean).forEach((l,r)=>{if(!c.some(d=>this._matchesGlobalFeature(d,l))){let{association:d,feature:u,terminalName:h,title:m}=l;c.add({title:m,association:d,featureViewModel:new G({abilities:{utilityNetworkAssociationsContent:!1},map:t,view:e,spatialReference:s,timeZone:a,graphic:u}),terminalName:h},r)}}),this._associationViewModels.set(o,c)})}_shouldDiscardNetworkElement(t,e,s){if(!t)return!1;let{networkSourceId:a}=t,i=s.get(e)?.associatedNetworkSourceId,o=this._networkSourceIdsInUse.has(a);return i!=null&&i!==a||!o}_sortFeatureObjectsByTitle(t){t.sort(this._compareByFeatureTitle)}render(){let{_state:t}=this;return p`<div><arcgis-feature-element-info .heading=${this.heading} .headingLevel=${this.headingLevel} .description=${this.description}></arcgis-feature-element-info>${t==="loading"?this._renderLoading():t==="disabled"?this._renderAssociationNotFound():this._renderContent()}</div>`}_renderAssociationNotFound(){return p`<calcite-notice icon=information kind=info open scale=s width=full><div slot=message>${this.messages?.noAssociations}</div></calcite-notice>`}_renderAssociationTypeList(t){return this._getFeatureCountForAssociationType(t.type)>0?this._renderAssociationTypeListItem(t):null}_renderAssociationTypeListItem(t){let e=this._getAssociationTypeTitle(t);return A(`association-type-${t.type}`,p`<calcite-list-item .description=${L(t.description)} .label=${L(e)} .value=${t.type} @calciteListItemSelect=${()=>this._selectAssociationType(t)}><calcite-icon flip-rtl icon=chevron-right scale=s slot=content-end></calcite-icon></calcite-list-item>`)}_renderContent(){let{_state:t,associationTypes:e,messages:s}=this,a=s?.associationsList??s?.noTitle??"";return A("list-container",p`<div class="list-container">${t==="ready"?p`<div><calcite-list display-mode=flat .label=${a}>${e.map(i=>this._renderAssociationTypeList(i))}</calcite-list></div>`:null}${this._renderStickyLoading()}</div>`)}_renderLoading(){return p`<div class="loading-container">${this._renderLoadingIcon()}${this._renderStickyLoading()}</div>`}_renderLoadingIcon(){return p`<calcite-loader inline label></calcite-loader>`}_renderStickyLoading(){return this._state==="querying"?p`<div class="sticky-loading-container">${this._renderLoadingIcon()}</div>`:null}};S("arcgis-feature-utility-network-associations",k);return k},"applications/Components/featureUtils","applications/Components/stringUtils","core/Collection","core/promiseUtils","core/reactiveUtils","core/sql","rest/networks/support/NetworkElement","rest/networks/support/QueryAssociationsParameters","rest/support/FeatureSet","rest/support/Query","widgets/Feature/FeatureViewModel")
3
+ v5.0.0-next.99 */
4
+ import{a as F}from"./KWAGGSDZ.js";import{a as A}from"./7C7PBZUN.js";import{N as T,R as q,T as S,a as v,b as p}from"./E53R7MWL.js";import"./3D3H3GIL.js";export default $arcgis.t(([{createReactiveMap:I,findUtilityNetwork:U,queryAllJSON:V,getOrCreateMapValue:D},{stripHTML:L},b,{ignoreAbortErrors:N},{watch:C},M,Q,B,P,x,G])=>{var O=v`.list-container{min-height:var(--calcite-spacing-xxxl)}.loading-container{display:flex;justify-content:center;padding:var(--calcite-spacing-md) 0;width:100%}.sticky-loading-container{display:flex;position:sticky;bottom:var(--calcite-spacing-sm);align-items:center;justify-content:center;z-index:2;margin:0;padding:0;height:var(--calcite-spacing-xxxl);pointer-events:none;height:500px}`,E=100,$={assetGroup:"assetgroup",assetType:"assettype"},j="{00000000-0000-0000-0000-000000000000}",k=class extends T{constructor(){super(...arguments),this._addFlowItem=t=>{t&&this.flowItems?.push(t)},this._attachmentAssociations=new b,this._attachmentFeatureCount=0,this._cancelQuery=()=>{let{_queryAbortController:t}=this;t&&t.abort(),this._queryAbortController=null},this._cancelQueryFeatureCount=()=>{let{_queryFeatureCountAbortController:t}=this;t&&t.abort(),this._queryFeatureCountAbortController=null},this._connectivityAssociations=new b,this._connectivityFeatureCount=0,this._containerAssociations=new b,this._containerFeatureCount=0,this._contentAssociations=new b,this._contentFeatureCount=0,this._networkSourceIdsInUse=new Set,this._query=async t=>{if(!t)return;await this._loadUtiltyNetworks();let{_queryAbortController:e}=this;this._destroyAssociatedFeatureViewModels(),this._clearFeatures(),this._featureCount&&await this._queryAssociatedFeatures(t,{signal:e?.signal})},this._queryController=async t=>{this._cancelQuery();let e=new AbortController;this._queryAbortController=e,await N(this._query(t)),this._queryAbortController===e&&(this._queryAbortController=null)},this._queryFeatureCountController=async()=>{this._loaded=!1,this._cancelQueryFeatureCount();let t=new AbortController;this._queryFeatureCountAbortController=t,await N(this._queryFeatureCount()),this._queryFeatureCountAbortController===t&&(this._queryFeatureCountAbortController=null),this._loaded=!0},this._queryDebounced=F(this._queryController,E),this._queryFeatureCountDebounced=F(this._queryFeatureCountController,E),this._structureAssociations=new b,this._structureFeatureCount=0,this._queryAssociationType=async()=>{this._activeAssociationType&&this._queryDebounced(this._activeAssociationType)},this._associationFeatures=I(),this._associationViewModels=I(),this._featureCount=0,this._loaded=!1,this._queryAbortController=null,this._queryFeatureCountAbortController=null,this._queryPageAbortController=null,this.associationTypes=null,this.autoDestroyDisabled=!1,this.flowType="feature-utility-network-associations",this.headingLevel=2,this.source="popup"}static{this.properties={_activeAssociationType:16,_associationFeatures:16,_associationViewModels:16,_canLoad:16,_canQuery:16,_featureCount:16,_loaded:16,_queryAbortController:16,_queryFeatureCountAbortController:16,_queryPageAbortController:16,_state:16,associationTypes:0,autoDestroyDisabled:5,description:1,flowItems:0,flowType:1,graphic:0,heading:1,headingLevel:9,layer:0,map:0,messages:0,parentFeatureViewModel:0,source:1,spatialReference:0,timeZone:1,view:0}}static{this.styles=O}get _globalId(){return(this._globalIdField&&this.graphic?.attributes?.[this._globalIdField])??null}get _globalIdField(){return this.layer?.globalIdField}get _objectId(){return(this._objectIdField&&this.graphic?.attributes?.[this._objectIdField])??null}get _objectIdField(){return this.layer?.objectIdField}get _supportsCacheHint(){return!!this.layer?.capabilities?.queryRelated?.supportsCacheHint}get _utilityNetwork(){let{layer:t,map:e}=this;if(!t?.loaded||!e)return null;let s=this._isSubtypeSublayer(t)?t.parent:t;return U(e,s)}get _canLoad(){return!!this.map}get _canQuery(){return!!this.layer?.capabilities?.query?.supportsPagination}get _state(){let{_canLoad:t,_canQuery:e,_featureCount:s,_loaded:a,_queryAbortController:i,_queryFeatureCountAbortController:o,_queryPageAbortController:c,associationTypes:l}=this;return o||t&&!a?"loading":i||c?"querying":!this._globalId||!l||!e||!s?"disabled":"ready"}get heading(){return this._heading}set heading(t){this._heading=t}async destroy(){await this.manager.destroy()}loaded(){this.manager.onLifecycle(()=>[C(()=>[this.graphic,this.layer,this.map,this.associationTypes,this._canQuery,this._objectId,this._globalId],()=>{this._queryFeatureCountDebounced(),this._queryAssociationType()},{initial:!0}),C(()=>this._activeAssociationType,t=>{this._queryDebounced(t)}),C(()=>this._associationFeatures.values(),()=>{this._setUpUtilityNetworkAssociationsViewModels()})]),this.manager.onDestroy(()=>{this._cancelQuery(),this._cancelQueryFeatureCount()})}_addAssociationTypeFlowItem(t){this._addFlowItem(q(p`<arcgis-feature-utility-network-association-list .associationViewModels=${this._associationViewModels} .description=${this.parentFeatureViewModel?.title} .flowItems=${this.flowItems} .flowType=${this.flowType} .heading=${this._getAssociationTypeTitle(t)} .messages=${this.messages} .map=${this.map} .parentFeatureViewModel=${this.parentFeatureViewModel} .state=${this._state} .spatialReference=${this.spatialReference} .timeZone=${this.timeZone} .view=${this.view}></arcgis-feature-utility-network-association-list>`))}_clearAssociations(){this._attachmentAssociations.removeAll(),this._connectivityAssociations.removeAll(),this._containerAssociations.removeAll(),this._contentAssociations.removeAll(),this._structureAssociations.removeAll()}_clearFeatures(){this._associationFeatures.forEach(t=>t.removeAll()),this._associationFeatures.clear()}_compareByFeatureTitle(t,e){return t.title.localeCompare(e.title,void 0,{numeric:!0})}async _countAssociatedFeatureCount(t,e,s,a,i){let o=this._getFeatureQueryWhereClause(t,e,s,a);return await t.queryFeatureCount({where:o,outFields:["*"],returnGeometry:!1},{signal:i?.signal})}async _countAssociatedFeatures(t,e,s,a,i){if(!e.length)return 0;let o=await this._findLayersBySourceId(t);await this._loadLayers(o);let c=o.map(l=>this._countAssociatedFeatureCount(l,e,s,a,i));return(await Promise.all(c)).reduce((l,r)=>l+r,0)}async _createAssociationFeatureObjects(t,e,s,a,i){if(!t.length)return[];let o=new Map,c=Array.from(e.entries()).map(async([r,d])=>{let u=await this._findLayersBySourceId(r);await this._loadLayers(u);let h=u.map(m=>this._queryLayer(m,d,s,a,i));(await Promise.all(h)).forEach(m=>{m.forEach(n=>{if(this.source==="popup"?n.sourceLayer&&n.getEffectivePopupTemplate():n.sourceLayer){let _=n.layer.globalIdField??"",y=n.attributes[_],w=o.get(y)??[];w.push(n),o.set(y,w)}})})});await Promise.all(c);let l=[];return await Promise.all(t.toArray().map(async r=>{let{fromNetworkElement:d,toNetworkElement:u}=r,h=d.globalId===this._globalId?u:d,m=o.get(h.globalId)??[];await Promise.all(m.map(async n=>{let _=this._utilityNetwork?.getTerminalById(h?.terminalId)?.name,y=await n.sourceLayer.getFeatureTitle(n)||this._getFeatureTitle(n);l.push({title:y,feature:n,association:r,terminalName:_})}))})),l}_destroyAssociatedFeatureViewModels(){this._associationViewModels.forEach(t=>t.destroyAll())}_equals(t,e){if(t.globalId===j&&e.globalId===j){let s=function(d,u){return d.networkSourceId===u.networkSourceId&&d.globalId===u.globalId&&d.terminalId===u.terminalId&&d.firstUnit===u.firstUnit&&d.numUnits===u.numUnits},a=t.fromNetworkElement,i=t.toNetworkElement,o=e.fromNetworkElement,c=e.toNetworkElement,l=s(a,o),r=s(i,c);return l&&r&&t.associationType===e.associationType}return t.globalId!=null&&e.globalId!=null&&t.globalId===e.globalId}async _findLayersBySourceId(t){let{_utilityNetwork:e,map:s}=this;e?.loaded||await e?.load();let a=e.getLayerIdBySourceId(t),i=s.allLayers.filter(c=>!!e?.isUtilityLayer(c)&&c.layerId===a),o=s.allTables.filter(c=>!!e?.isUtilityLayer(c)&&c.layerId===a);return i.concat(o).toArray()}_getAssociationsByType(t){switch(t){case"attachment":return this._attachmentAssociations;case"structure":return this._structureAssociations;case"connectivity":return this._connectivityAssociations;case"container":return this._containerAssociations;case"content":return this._contentAssociations}}_getAssociationTypeTitle(t){let{messages:e}=this;if(t.title)return t.title;switch(t.type){case"attachment":return e?.associationsAttachments??this.messages?.noTitle??"";case"connectivity":return e?.associationsConnectivity??this.messages?.noTitle??"";case"structure":return e?.associationsStructure??this.messages?.noTitle??"";case"content":return e?.associationsContents??this.messages?.noTitle??"";case"container":return e?.associationsContainer??this.messages?.noTitle??""}}_getFeatureCountForAssociationType(t){switch(t){case"attachment":return this._attachmentFeatureCount;case"structure":return this._structureFeatureCount;case"content":return this._contentFeatureCount;case"container":return this._containerFeatureCount;case"connectivity":return this._connectivityFeatureCount}}_getFeatureQueryWhereClause(t,e,s,a){let i=t.globalIdField,o=t.fieldsIndex.get($.assetGroup),c=t.fieldsIndex.get($.assetType),l=s!=null,r=a!=null,d=i?M.sqlIn(i,e):null,u=l?`(${o?.name} = ${s})`:null,h=l&&r?`(${c?.name} = ${a})`:null;return[d,u,h].filter(Boolean).join(" AND ")}_getFeatureTitle(t){let e=t.attributes,s=t.sourceLayer;if(!e||!s)return"";let a="displayField"in s?s.displayField:null,i=a!=null?e[a.toString()]:null,o=i!=null?i.toString():null,c=t.getObjectId()?.toString();return o||c||""}_isSubtypeGroupLayer(t){return t!=null&&typeof t=="object"&&"type"in t&&t.type==="subtype-group"&&"sublayers"in t}_isSubtypeSublayer(t){return t?.type==="subtype-sublayer"}async _loadUtiltyNetworks(){let t=this.map;if(!t)return;t.utilityNetworks&&await Promise.allSettled(t.utilityNetworks.map(s=>s.load()));let e=this._utilityNetwork;if(e){let s=a=>{if("layerId"in a&&e.isUtilityLayer(a)){let i=a.layerId!=null?e.getSourceIdByLayerId(a.layerId):null;i!=null&&this._networkSourceIdsInUse.add(i)}};this._networkSourceIdsInUse=new Set,t.allLayers.forEach(s),t.allTables.forEach(s)}}async _loadLayers(t){let e=t.filter(s=>!s.loaded).map(s=>s.load());e.length&&await Promise.allSettled(e)}_matchesGlobalFeature(t,e){return this._equals(t.association,e.association)}async _queryAssociatedFeatures(t,e){let{layer:s,_globalId:a,associationTypes:i,_utilityNetwork:o,_canQuery:c,_associationFeatures:l}=this;if(await Promise.allSettled([s?.load(),o?.load()]),!c||!s||!i||!o)return;let r=this._getAssociationsByType(t.type),{associatedAssetGroup:d,associatedAssetType:u}=t,h=new Map;r.forEach(n=>{let{fromNetworkElement:_,toNetworkElement:y}=n,{networkSourceId:w,elementGlobalId:f}=_.globalId===a?{networkSourceId:y.networkSourceId,elementGlobalId:y.globalId}:{networkSourceId:_.networkSourceId,elementGlobalId:_.globalId},g=h.get(w)||[];g.push(f),h.set(w,g)});let m=await this._createAssociationFeatureObjects(r,h,d,u,e);this._parseFeatureObjects(m,l)}async _queryAssociations(t){let{layer:e,_globalId:s,associationTypes:a,_utilityNetwork:i,_canQuery:o}=this;if(await Promise.allSettled([e?.load(),i?.load()]),this._clearAssociations(),!o||!e||!a||!i||!s)return;let c=this._isSubtypeSublayer(e)?e.parent:e,l=new Q({globalId:s,networkSourceId:i.getSourceIdByLayerId(c.layerId)}),r=new Set;a.forEach(n=>{switch(n.type){case"attachment":case"structure":r.add("attachment");break;case"container":case"content":r.add("containment");break;case"connectivity":r.add("connectivity"),r.add("junction-junction-connectivity"),r.add("junction-edge-from-connectivity"),r.add("junction-edge-midspan-connectivity"),r.add("junction-edge-to-connectivity");break}});let d=await i?.queryAssociations(new B({elements:[l],types:Array.from(r)}),{signal:t?.signal}),u=new Map,h=new Map;a.forEach(n=>{h.set(n.type,n),u.set(n.type,[])}),d.forEach(n=>{let{toNetworkElement:_,fromNetworkElement:y}=n;switch(n.associationType){case"attachment":if(y?.globalId===s){if(this._shouldDiscardNetworkElement(_,"attachment",h))break;u.get("attachment")?.push(_.globalId),this._attachmentAssociations.add(n)}else{if(this._shouldDiscardNetworkElement(y,"structure",h))break;u.get("structure")?.push(y.globalId),this._structureAssociations.add(n)}break;case"connectivity":case"junction-edge-from-connectivity":case"junction-edge-midspan-connectivity":case"junction-edge-to-connectivity":case"junction-junction-connectivity":if(y?.globalId===s){if(this._shouldDiscardNetworkElement(_,"connectivity",h))break;u.get("connectivity")?.push(_.globalId)}else{if(this._shouldDiscardNetworkElement(y,"connectivity",h))break;u.get("connectivity")?.push(y.globalId)}this._connectivityAssociations.add(n);break;case"containment":if(y?.globalId===s){if(this._shouldDiscardNetworkElement(_,"content",h))break;u.get("content")?.push(_.globalId),this._contentAssociations.add(n)}else{if(this._shouldDiscardNetworkElement(y,"container",h))break;u.get("container")?.push(y.globalId),this._containerAssociations.add(n)}break}});let m=a.map(async n=>{let{associatedNetworkSourceId:_,associatedAssetGroup:y,associatedAssetType:w}=n,f=u.get(n.type),g=y!=null?await this._countAssociatedFeatures(_,f,y,w,t):f.length;switch(n.type){case"attachment":this._attachmentFeatureCount=g;break;case"connectivity":this._connectivityFeatureCount=g;break;case"container":this._containerFeatureCount=g;break;case"content":this._contentFeatureCount=g;break;case"structure":this._structureFeatureCount=g;break}});await Promise.allSettled(m)}async _queryFeatureCount(){await this._loadUtiltyNetworks();let{_queryFeatureCountAbortController:t,_canQuery:e}=this;if(!e){this._featureCount=0;return}await this._queryAssociations(t),this._featureCount=this._attachmentFeatureCount+this._connectivityFeatureCount+this._containerFeatureCount+this._contentFeatureCount+this._structureFeatureCount}async _queryLayer(t,e,s,a,i){let o=this._getFeatureQueryWhereClause(t,e,s,a),c=new x({where:o,outFields:["*"],cacheHint:this._supportsCacheHint}),l=P.fromJSON(await V(t,c,i));return l.features.forEach(r=>{let d=this._isSubtypeGroupLayer(t);r.layer=d?t.findSublayerForFeature(r):t,r.sourceLayer=d?t.findSublayerForFeature(r):t}),l.features}_parseFeatureObjects(t,e){let s=I();t.forEach(a=>{let i=(a?.feature).sourceLayer;D(s,i,()=>new b).add(a)});for(let[a,i]of s)this._sortFeatureObjectsByTitle(i),e.set(a,i)}_selectAssociationType(t){let{flowItems:e}=this;e&&(this._activeAssociationType=t,this._setUpUtilityNetworkAssociationsViewModels(),this._addAssociationTypeFlowItem(t))}_setUpUtilityNetworkAssociationsViewModels(){this._associationViewModels.forEach((i,o)=>{let c=this._associationFeatures.get(o);c?i.forEach(l=>{c.find(r=>this._matchesGlobalFeature(l,r))||(i.remove(l),i.length||this._associationViewModels.delete(o))}):(i.removeAll(),this._associationViewModels.delete(o))});let{map:t,view:e,spatialReference:s,timeZone:a}=this;this._associationFeatures.forEach((i,o)=>{let c=this._associationViewModels.get(o)||new b;i?.filter(Boolean).forEach((l,r)=>{if(!c.some(d=>this._matchesGlobalFeature(d,l))){let{association:d,feature:u,terminalName:h,title:m}=l;c.add({title:m,association:d,featureViewModel:new G({abilities:{utilityNetworkAssociationsContent:!1},map:t,view:e,spatialReference:s,timeZone:a,graphic:u}),terminalName:h},r)}}),this._associationViewModels.set(o,c)})}_shouldDiscardNetworkElement(t,e,s){if(!t)return!1;let{networkSourceId:a}=t,i=s.get(e)?.associatedNetworkSourceId,o=this._networkSourceIdsInUse.has(a);return i!=null&&i!==a||!o}_sortFeatureObjectsByTitle(t){t.sort(this._compareByFeatureTitle)}render(){let{_state:t}=this;return p`<div><arcgis-feature-element-info .heading=${this.heading} .headingLevel=${this.headingLevel} .description=${this.description}></arcgis-feature-element-info>${t==="loading"?this._renderLoading():t==="disabled"?this._renderAssociationNotFound():this._renderContent()}</div>`}_renderAssociationNotFound(){return p`<calcite-notice icon=information kind=info open scale=s width=full><div slot=message>${this.messages?.noAssociations}</div></calcite-notice>`}_renderAssociationTypeList(t){return this._getFeatureCountForAssociationType(t.type)>0?this._renderAssociationTypeListItem(t):null}_renderAssociationTypeListItem(t){let e=this._getAssociationTypeTitle(t);return A(`association-type-${t.type}`,p`<calcite-list-item .description=${L(t.description)} .label=${L(e)} .value=${t.type} @calciteListItemSelect=${()=>this._selectAssociationType(t)}><calcite-icon flip-rtl icon=chevron-right scale=s slot=content-end></calcite-icon></calcite-list-item>`)}_renderContent(){let{_state:t,associationTypes:e,messages:s}=this,a=s?.associationsList??s?.noTitle??"";return A("list-container",p`<div class="list-container">${t==="ready"?p`<div><calcite-list display-mode=flat .label=${a}>${e.map(i=>this._renderAssociationTypeList(i))}</calcite-list></div>`:null}${this._renderStickyLoading()}</div>`)}_renderLoading(){return p`<div class="loading-container">${this._renderLoadingIcon()}${this._renderStickyLoading()}</div>`}_renderLoadingIcon(){return p`<calcite-loader inline label></calcite-loader>`}_renderStickyLoading(){return this._state==="querying"?p`<div class="sticky-loading-container">${this._renderLoadingIcon()}</div>`:null}};S("arcgis-feature-utility-network-associations",k);return k},"applications/Components/featureUtils","applications/Components/stringUtils","core/Collection","core/promiseUtils","core/reactiveUtils","core/sql","rest/networks/support/NetworkElement","rest/networks/support/QueryAssociationsParameters","rest/support/FeatureSet","rest/support/Query","widgets/Feature/FeatureViewModel")
@@ -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.98 */
4
- import{a as h}from"./FUIS67EA.js";import j from"./K6UKX75J.js";import{a as w}from"./2LSAKHQS.js";import{a as d}from"./PAQ7AUB6.js";import i from"./QRVBD3EB.js";import e from"./XSP7SODU.js";import{g as f}from"./PLPV66L3.js";import"./VBNQC63F.js";import{g as R}from"./FIXKLQIP.js";import{h as $}from"./3E7BRDKM.js";import{M as g,N as b,O as a,P as v,Q as c,T as _,a as p,b as o,x as m}from"./RD46LEGA.js";import"./35JLEE3X.js";export default $arcgis.t(([{watch:y},M,,,C])=>{var x=[-45,0,45,-90,90,-135,180,135],B={0:{label:"north",iconName:"chevron-up"},45:{label:"northEast",iconName:"chevron-up-right"},90:{label:"east",iconName:"chevron-right"},135:{label:"southEast",iconName:"chevron-down-right"},180:{label:"south",iconName:"chevron-down"},"-135":{label:"southWest",iconName:"chevron-down-left"},"-90":{label:"west",iconName:"chevron-left"},"-45":{label:"northWest",iconName:"chevron-up-left"}},n="arcgis-directional-pad",s={base:n,buttonsContainer:`${n}__buttons-container`,button:`${n}__button`,compassButton:`${n}__compass`,rotationContainer:`${n}__rotation-container`,rotationSliderContainer:`${n}__rotation-slider-container`,rotationReset:`${n}__rotation-reset-button`,error:`${n}__error`},S=p`:host{outline:none;box-shadow:none!important;background-color:transparent!important;user-select:none;calcite-action-pad{display:contents}calcite-action-group{touch-action:none}calcite-action{aspect-ratio:1}}.arcgis-directional-pad{display:flex;flex-direction:column;gap:var(--calcite-spacing-sm)}.arcgis-directional-pad__buttons-container{--calcite-color-background: transparent;--calcite-action-group-gap: 0;calcite-action{--calcite-color-focus: var(--calcite-color-foreground-3)}calcite-action:not([active]){--calcite-action-background-color-press: var(--calcite-color-foreground-1)}calcite-action[active]{--calcite-action-background-color: var(--calcite-color-foreground-3)}calcite-icon{transform:var(--rotation, unset)}@media(hover:none){calcite-action{--calcite-action-background-color-hover: var(--calcite-color-foreground-1);--calcite-action-text-color-press: var(--calcite-color-text-3)}}}.arcgis-directional-pad__rotation-container{display:block;width:100%;calcite-action{flex:.3}}.arcgis-directional-pad__rotation-slider-container{display:flex;flex:1;align-items:center;calcite-slider{flex:1;padding-inline:var(--calcite-spacing-xxs)}}`;function E(r){let{x:t,y:e,width:i,height:l}=r.getBoundingClientRect();return{x:t+i/2,y:e+l/2}}function D(r){return r?.spatialReference?.isWebMercator||r?.spatialReference?.isGeographic||!1}var k=C(M),u=class extends b{constructor(){super(...arguments),this.messages=w({}),this._onContextMenu=t=>t.preventDefault(),this._buttons={},this.viewModel=k(this),this.angle=this.viewModel.angle,this.rotation=this.viewModel.rotation,this.view=this.viewModel.view,this.autoDestroyDisabled=!1,this.disabled=this.viewModel.disabled,this.hideDirectionalButtons=!1,this.icon="move",this.showRotationResetButton=!1,this.showRotationSlider=!1,this.state=this.viewModel.state,this.visualScale="s",this.arcgisPropertyChange=f()("state"),this.arcgisReady=m()}static{this.properties={_rotationEnabled:16,angle:16,rotation:16,view:0,autoDestroyDisabled:5,disabled:5,hideDirectionalButtons:5,icon:1,label:1,messageOverrides:0,position:3,referenceElement:1,showRotationResetButton:5,showRotationSlider:5,state:3,visualScale:1}}static{this.styles=S}get _rotationEnabled(){return this.view?.ready?this.view.constraints.rotationEnabled??!1:!0}async destroy(){await this.manager.destroy()}loaded(){this.manager.onLifecycle(()=>[y(()=>this.viewModel.angle,()=>{this._buttonsContainer?.contains(document.activeElement)&&(this.viewModel.angle==null?R(this)?.focus():$(this._buttons[this.viewModel.angle]))})])}_rotateIcon(t){return{"--rotation":`rotate(${t}deg)`}}_setButtonContainerRef(t){t!==void 0?(this._buttonsContainer=t,queueMicrotask(()=>{this._buttons=Object.fromEntries(Array.from(t.children,e=>[Number.parseInt(e.getAttribute("data-angle")??""),e]))})):(this._buttonsContainer=void 0,this._buttons={})}_onButtonPointerDown(t){if(this._buttonsContainer===void 0)return;t.composedPath().find(i=>i.hasPointerCapture?.(t.pointerId))?.releasePointerCapture(t.pointerId);let e=E(this._buttonsContainer);this.viewModel.beginFollowingPointer(t,e)}_onSliderInput({currentTarget:t}){typeof t.value=="number"&&(this.viewModel.rotation=t.value)}_onRotationReset(){this.viewModel.rotation=0}_onClick(t){this.viewModel.moveOnce(t)}render(){let{label:t,disabled:e}=this,i=this.view==null||this.view.type==="2d";return o`<div .ariaLabel=${t??void 0} class=${a({[s.base]:!0,[d.widget]:!0,[d.disabled]:e})} tabindex=-1>${i?this._renderContent():this._renderUnsupportedMessage()}</div>`}_renderUnsupportedMessage(){return o`<section class=${a(s.error)}><p>${this.messages.unsupported}</p></section>`}_renderContent(){return[this.hideDirectionalButtons?void 0:this._renderDirectionalButtons(),this.showRotationSlider?this._renderRotation():void 0]}_renderDirectionalButtons(){return h("directional-buttons-container",o`<calcite-action-bar expand-disabled floating layout=grid .scale=${this.visualScale} overflow-actions-disabled><calcite-action-group class=${a(s.buttonsContainer)} dir=ltr @contextmenu=${{handleEvent:this._onContextMenu,capture:!0}} ${g(this._setButtonContainerRef)}>${x.slice(0,4).map(this._renderButton,this)}${this._renderCompass()}${x.slice(4).map(this._renderButton,this)}</calcite-action-group></calcite-action-bar>`)}_renderButton(t){let{label:e,iconName:i}=B[t],l=this.messages[e];return o`<calcite-action .active=${this.angle===t} alignment=center class=${a(s.button)} data-angle=${t??c} .disabled=${this.disabled} @click=${this._onClick.bind(this,t)} @pointerdown=${this._onButtonPointerDown} .text=${l??""} title=${l??c}><calcite-icon .icon=${i} .scale=${this.visualScale}></calcite-icon></calcite-action>`}_renderCompass(){let t=this.disabled||D(this.view)?"compass-needle":"arrow-up",e=this.rotation===0,i=this.messages.resetHeading;return o`<calcite-action alignment=center class=${a(s.compassButton)} .disabled=${this.disabled||!this._rotationEnabled||e} @click=${this._onRotationReset} style=${v(this._rotateIcon(this.rotation))} .text=${i??""} title=${i??c}>${!e&&o`<calcite-icon .icon=${t} .scale=${this.visualScale}></calcite-icon>`||""}</calcite-action>`}_renderRotation(){return h("slider-container",o`<calcite-action-bar expand-disabled floating layout=horizontal .scale=${this.visualScale}><calcite-action-group class=${a(s.rotationContainer)}>${this.showRotationResetButton?this._renderRotationResetButton():null}${this._renderRotationSlider()}</calcite-action-group></calcite-action-bar>`)}_renderRotationResetButton(){let t=this.messages.resetHeading;return o`<calcite-action alignment=center class=${a(s.rotationReset)} .disabled=${this.disabled||!this._rotationEnabled} @click=${this._onRotationReset} .text=${t??""} title=${t??c}><calcite-icon flip-rtl icon=rotate .scale=${this.visualScale}></calcite-icon></calcite-action>`}_renderRotationSlider(){return o`<div class=${a(s.rotationSliderContainer)}><calcite-slider .ariaLabel=${this.messages.heading} .disabled=${this.disabled||!this._rotationEnabled} label-handles max=360 min=0 required .scale=${this.visualScale} .value=${Math.round(this.rotation)} @calciteSliderInput=${this._onSliderInput}></calcite-slider></div>`}};_("arcgis-directional-pad",u);return u},"core/reactiveUtils","widgets/DirectionalPad/DirectionalPadViewModel",e,i,j)
3
+ v5.0.0-next.99 */
4
+ import{a as h}from"./7C7PBZUN.js";import j from"./JM7M72QK.js";import{a as w}from"./ONDA2HBR.js";import{a as d}from"./T6PUJAWM.js";import i from"./KJEUZJXN.js";import e from"./UG6KQNJ2.js";import{g as f}from"./P7HP6NNS.js";import"./4JSE3AHY.js";import{g as R}from"./2SKKF2NH.js";import{h as $}from"./EXMK6ER2.js";import{M as g,N as b,O as a,P as v,Q as c,T as _,a as p,b as o,x as m}from"./E53R7MWL.js";import"./3D3H3GIL.js";export default $arcgis.t(([{watch:y},M,,,C])=>{var x=[-45,0,45,-90,90,-135,180,135],B={0:{label:"north",iconName:"chevron-up"},45:{label:"northEast",iconName:"chevron-up-right"},90:{label:"east",iconName:"chevron-right"},135:{label:"southEast",iconName:"chevron-down-right"},180:{label:"south",iconName:"chevron-down"},"-135":{label:"southWest",iconName:"chevron-down-left"},"-90":{label:"west",iconName:"chevron-left"},"-45":{label:"northWest",iconName:"chevron-up-left"}},n="arcgis-directional-pad",s={base:n,buttonsContainer:`${n}__buttons-container`,button:`${n}__button`,compassButton:`${n}__compass`,rotationContainer:`${n}__rotation-container`,rotationSliderContainer:`${n}__rotation-slider-container`,rotationReset:`${n}__rotation-reset-button`,error:`${n}__error`},S=p`:host{outline:none;box-shadow:none!important;background-color:transparent!important;user-select:none;calcite-action-pad{display:contents}calcite-action-group{touch-action:none}calcite-action{aspect-ratio:1}}.arcgis-directional-pad{display:flex;flex-direction:column;gap:var(--calcite-spacing-sm)}.arcgis-directional-pad__buttons-container{--calcite-color-background: transparent;--calcite-action-group-gap: 0;calcite-action{--calcite-color-focus: var(--calcite-color-foreground-3)}calcite-action:not([active]){--calcite-action-background-color-press: var(--calcite-color-foreground-1)}calcite-action[active]{--calcite-action-background-color: var(--calcite-color-foreground-3)}calcite-icon{transform:var(--rotation, unset)}@media(hover:none){calcite-action{--calcite-action-background-color-hover: var(--calcite-color-foreground-1);--calcite-action-text-color-press: var(--calcite-color-text-3)}}}.arcgis-directional-pad__rotation-container{display:block;width:100%;calcite-action{flex:.3}}.arcgis-directional-pad__rotation-slider-container{display:flex;flex:1;align-items:center;calcite-slider{flex:1;padding-inline:var(--calcite-spacing-xxs)}}`;function E(r){let{x:t,y:e,width:i,height:l}=r.getBoundingClientRect();return{x:t+i/2,y:e+l/2}}function D(r){return r?.spatialReference?.isWebMercator||r?.spatialReference?.isGeographic||!1}var k=C(M),u=class extends b{constructor(){super(...arguments),this.messages=w({}),this._onContextMenu=t=>t.preventDefault(),this._buttons={},this.viewModel=k(this),this.angle=this.viewModel.angle,this.rotation=this.viewModel.rotation,this.view=this.viewModel.view,this.autoDestroyDisabled=!1,this.disabled=this.viewModel.disabled,this.hideDirectionalButtons=!1,this.icon="move",this.showRotationResetButton=!1,this.showRotationSlider=!1,this.state=this.viewModel.state,this.visualScale="s",this.arcgisPropertyChange=f()("state"),this.arcgisReady=m()}static{this.properties={_rotationEnabled:16,angle:16,rotation:16,view:0,autoDestroyDisabled:5,disabled:5,hideDirectionalButtons:5,icon:1,label:1,messageOverrides:0,position:3,referenceElement:1,showRotationResetButton:5,showRotationSlider:5,state:3,visualScale:1}}static{this.styles=S}get _rotationEnabled(){return this.view?.ready?this.view.constraints.rotationEnabled??!1:!0}async destroy(){await this.manager.destroy()}loaded(){this.manager.onLifecycle(()=>[y(()=>this.viewModel.angle,()=>{this._buttonsContainer?.contains(document.activeElement)&&(this.viewModel.angle==null?R(this)?.focus():$(this._buttons[this.viewModel.angle]))})])}_rotateIcon(t){return{"--rotation":`rotate(${t}deg)`}}_setButtonContainerRef(t){t!==void 0?(this._buttonsContainer=t,queueMicrotask(()=>{this._buttons=Object.fromEntries(Array.from(t.children,e=>[Number.parseInt(e.getAttribute("data-angle")??""),e]))})):(this._buttonsContainer=void 0,this._buttons={})}_onButtonPointerDown(t){if(this._buttonsContainer===void 0)return;t.composedPath().find(i=>i.hasPointerCapture?.(t.pointerId))?.releasePointerCapture(t.pointerId);let e=E(this._buttonsContainer);this.viewModel.beginFollowingPointer(t,e)}_onSliderInput({currentTarget:t}){typeof t.value=="number"&&(this.viewModel.rotation=t.value)}_onRotationReset(){this.viewModel.rotation=0}_onClick(t){this.viewModel.moveOnce(t)}render(){let{label:t,disabled:e}=this,i=this.view==null||this.view.type==="2d";return o`<div .ariaLabel=${t??void 0} class=${a({[s.base]:!0,[d.widget]:!0,[d.disabled]:e})} tabindex=-1>${i?this._renderContent():this._renderUnsupportedMessage()}</div>`}_renderUnsupportedMessage(){return o`<section class=${a(s.error)}><p>${this.messages.unsupported}</p></section>`}_renderContent(){return[this.hideDirectionalButtons?void 0:this._renderDirectionalButtons(),this.showRotationSlider?this._renderRotation():void 0]}_renderDirectionalButtons(){return h("directional-buttons-container",o`<calcite-action-bar expand-disabled floating layout=grid .scale=${this.visualScale} overflow-actions-disabled><calcite-action-group class=${a(s.buttonsContainer)} dir=ltr @contextmenu=${{handleEvent:this._onContextMenu,capture:!0}} ${g(this._setButtonContainerRef)}>${x.slice(0,4).map(this._renderButton,this)}${this._renderCompass()}${x.slice(4).map(this._renderButton,this)}</calcite-action-group></calcite-action-bar>`)}_renderButton(t){let{label:e,iconName:i}=B[t],l=this.messages[e];return o`<calcite-action .active=${this.angle===t} alignment=center class=${a(s.button)} data-angle=${t??c} .disabled=${this.disabled} @click=${this._onClick.bind(this,t)} @pointerdown=${this._onButtonPointerDown} .text=${l??""} title=${l??c}><calcite-icon .icon=${i} .scale=${this.visualScale}></calcite-icon></calcite-action>`}_renderCompass(){let t=this.disabled||D(this.view)?"compass-needle":"arrow-up",e=this.rotation===0,i=this.messages.resetHeading;return o`<calcite-action alignment=center class=${a(s.compassButton)} .disabled=${this.disabled||!this._rotationEnabled||e} @click=${this._onRotationReset} style=${v(this._rotateIcon(this.rotation))} .text=${i??""} title=${i??c}>${!e&&o`<calcite-icon .icon=${t} .scale=${this.visualScale}></calcite-icon>`||""}</calcite-action>`}_renderRotation(){return h("slider-container",o`<calcite-action-bar expand-disabled floating layout=horizontal .scale=${this.visualScale}><calcite-action-group class=${a(s.rotationContainer)}>${this.showRotationResetButton?this._renderRotationResetButton():null}${this._renderRotationSlider()}</calcite-action-group></calcite-action-bar>`)}_renderRotationResetButton(){let t=this.messages.resetHeading;return o`<calcite-action alignment=center class=${a(s.rotationReset)} .disabled=${this.disabled||!this._rotationEnabled} @click=${this._onRotationReset} .text=${t??""} title=${t??c}><calcite-icon flip-rtl icon=rotate .scale=${this.visualScale}></calcite-icon></calcite-action>`}_renderRotationSlider(){return o`<div class=${a(s.rotationSliderContainer)}><calcite-slider .ariaLabel=${this.messages.heading} .disabled=${this.disabled||!this._rotationEnabled} label-handles max=360 min=0 required .scale=${this.visualScale} .value=${Math.round(this.rotation)} @calciteSliderInput=${this._onSliderInput}></calcite-slider></div>`}};_("arcgis-directional-pad",u);return u},"core/reactiveUtils","widgets/DirectionalPad/DirectionalPadViewModel",e,i,j)