@arcgis/map-components 5.2.0-next.89 → 5.2.0-next.90

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 (254) hide show
  1. package/dist/cdn/{DCSOI7OB.js → 24XXJOOX.js} +1 -1
  2. package/dist/cdn/{2BDZP327.js → 2FTL6T53.js} +1 -1
  3. package/dist/cdn/{6NGRUK5C.js → 2LDYIMCE.js} +1 -1
  4. package/dist/cdn/{BDKJXRDB.js → 2M33G6FR.js} +1 -1
  5. package/dist/cdn/{RQXUHSYJ.js → 2QADMC6K.js} +1 -1
  6. package/dist/cdn/{7J5Z2RHQ.js → 2VLRQ46L.js} +1 -1
  7. package/dist/cdn/{NB5DQKQY.js → 2VSQARQL.js} +1 -1
  8. package/dist/cdn/{PCEAIDCB.js → 2XHGISYY.js} +1 -1
  9. package/dist/cdn/323SSBOJ.js +2 -0
  10. package/dist/cdn/{EUPC4HDK.js → 32DXZW7Z.js} +1 -1
  11. package/dist/cdn/{UPCPKKRL.js → 35VRWQWE.js} +1 -1
  12. package/dist/cdn/{R2TL7RGF.js → 36TZJXHA.js} +1 -1
  13. package/dist/cdn/{HCH34CVA.js → 3BBEFRTR.js} +1 -1
  14. package/dist/cdn/{JK24EYII.js → 3J7PCUNV.js} +1 -1
  15. package/dist/cdn/{P5ZCQPIG.js → 3N2HSTRS.js} +1 -1
  16. package/dist/cdn/{IMG5GOJB.js → 3RKXZISX.js} +1 -1
  17. package/dist/cdn/{LJAHKEOX.js → 3RMUQ4SS.js} +1 -1
  18. package/dist/cdn/{KNMMVZVV.js → 3SCF2TGT.js} +1 -1
  19. package/dist/cdn/{THO5LAWY.js → 3TAYDIE5.js} +1 -1
  20. package/dist/cdn/{BVBHK4ZA.js → 3VE3XLKT.js} +1 -1
  21. package/dist/cdn/{SRKRAAYN.js → 3VZGQUZE.js} +1 -1
  22. package/dist/cdn/{3KVV7ZIB.js → 3WUSU6XP.js} +1 -1
  23. package/dist/cdn/{OW3LJYAW.js → 4CJBWGTY.js} +1 -1
  24. package/dist/cdn/{V522HKV2.js → 4FZ5GGDI.js} +1 -1
  25. package/dist/cdn/{YE74X5AX.js → 4GE4A5ZF.js} +1 -1
  26. package/dist/cdn/{SHZFDTMM.js → 4H6N4JTU.js} +1 -1
  27. package/dist/cdn/{CK5JA6LG.js → 4LKGHKBM.js} +1 -1
  28. package/dist/cdn/{3KYGTOFI.js → 4MUCONAD.js} +1 -1
  29. package/dist/cdn/{MG6N3FKM.js → 4TUA2QEW.js} +1 -1
  30. package/dist/cdn/{LTOXLO3L.js → 56KR4KYO.js} +1 -1
  31. package/dist/cdn/{3AQ6NC3C.js → 5DI7RMZ6.js} +1 -1
  32. package/dist/cdn/{3L7T2IRD.js → 5EOKOS52.js} +1 -1
  33. package/dist/cdn/{JZC42PXS.js → 5GIJFUEJ.js} +1 -1
  34. package/dist/cdn/{MUBRFGFC.js → 5GN3PNTI.js} +1 -1
  35. package/dist/cdn/5HNZ27R4.js +2 -0
  36. package/dist/cdn/{HR3K5XIF.js → 5IEGTCFV.js} +1 -1
  37. package/dist/cdn/{CFB4ZR5F.js → 5KXZQI7G.js} +1 -1
  38. package/dist/cdn/{JTUIUWLI.js → 5POTZZ3V.js} +1 -1
  39. package/dist/cdn/{TPG3TU6B.js → 5W4MBIKY.js} +1 -1
  40. package/dist/cdn/{RSGPA5UD.js → 67ZLFQ5D.js} +1 -1
  41. package/dist/cdn/{ONQKJHQF.js → 6BRAQ2VJ.js} +1 -1
  42. package/dist/cdn/{TAIZWQYU.js → 6HSLIZLD.js} +1 -1
  43. package/dist/cdn/{YFM2FNJN.js → 6I6P36ZC.js} +1 -1
  44. package/dist/cdn/{6PFEONTQ.js → 7HRK777D.js} +1 -1
  45. package/dist/cdn/{SWRUFDGD.js → 7PCTYMRK.js} +1 -1
  46. package/dist/cdn/AACTDN7T.js +2 -0
  47. package/dist/cdn/{2FM2FJAY.js → ANSNQBZW.js} +1 -1
  48. package/dist/cdn/{M66G67OC.js → AOVBGBGS.js} +1 -1
  49. package/dist/cdn/{QWQY366N.js → APQ2XNV7.js} +1 -1
  50. package/dist/cdn/{T7ZMS2L5.js → ARJHGUGG.js} +1 -1
  51. package/dist/cdn/{SPLMY3ET.js → AYRZUPV2.js} +1 -1
  52. package/dist/cdn/{3T7L7UT5.js → AZYY5BTK.js} +1 -1
  53. package/dist/cdn/{XOOKXM7J.js → B2HPLGXB.js} +1 -1
  54. package/dist/cdn/{PWEF6IKF.js → B35PDXSH.js} +1 -1
  55. package/dist/cdn/{EVJT3HJ5.js → B3W2SZIJ.js} +1 -1
  56. package/dist/cdn/{M2AZC3NB.js → B5WHS7ER.js} +1 -1
  57. package/dist/cdn/{NFWFRHUT.js → BBFLUSKF.js} +1 -1
  58. package/dist/cdn/{TRFWUKXA.js → BPB6FTQK.js} +1 -1
  59. package/dist/cdn/{VMFPLBAW.js → BQUWJGGL.js} +1 -1
  60. package/dist/cdn/{7EOPPY5X.js → C32RBBXZ.js} +1 -1
  61. package/dist/cdn/{TATKNXHR.js → CEY5WBEU.js} +1 -1
  62. package/dist/cdn/{WYC7AP3B.js → CFANWKE6.js} +1 -1
  63. package/dist/cdn/{D66WATT4.js → CGDMP7IH.js} +1 -1
  64. package/dist/cdn/{S4PVHHL4.js → CJLQURQH.js} +1 -1
  65. package/dist/cdn/{YMDPLIAN.js → CS5IVOG4.js} +1 -1
  66. package/dist/cdn/{XM2OBGXW.js → D325DZEQ.js} +1 -1
  67. package/dist/cdn/{FJRDNR2D.js → D3G3JFB6.js} +1 -1
  68. package/dist/cdn/{H3N46TKW.js → DCGOOUOL.js} +1 -1
  69. package/dist/cdn/{AKWAWGJI.js → DDGXUCQU.js} +1 -1
  70. package/dist/cdn/{NSOKY65Q.js → DNOSWCRM.js} +1 -1
  71. package/dist/cdn/{NWNMBN2U.js → DSLMWFTR.js} +1 -1
  72. package/dist/cdn/ECXFGOCB.js +2 -0
  73. package/dist/cdn/{DFS7UXXA.js → EGJRBN3G.js} +1 -1
  74. package/dist/cdn/{5VHJTIA4.js → ENCUTG4J.js} +1 -1
  75. package/dist/cdn/{IEEZAVKI.js → EQGGVVNX.js} +1 -1
  76. package/dist/cdn/{22ORLWUA.js → EV2EASMH.js} +1 -1
  77. package/dist/cdn/{YGR7EQPR.js → F3G626XT.js} +1 -1
  78. package/dist/cdn/{CXM6X7CR.js → FAQNHEA4.js} +1 -1
  79. package/dist/cdn/{PL5FJKWH.js → FAS3CA6C.js} +1 -1
  80. package/dist/cdn/{3FTPFEZR.js → FD7U6V53.js} +1 -1
  81. package/dist/cdn/{K4BAIY7T.js → FLVENMD3.js} +1 -1
  82. package/dist/cdn/{MTIYKLWI.js → FQBZ4RIZ.js} +1 -1
  83. package/dist/cdn/{BWHORDTQ.js → FQTVI2JC.js} +1 -1
  84. package/dist/cdn/{4H6PSGCG.js → GRVXZRHO.js} +1 -1
  85. package/dist/cdn/{WXRDRJO2.js → H2MG6U2T.js} +1 -1
  86. package/dist/cdn/{Q7AWV6T7.js → HASESZDN.js} +1 -1
  87. package/dist/cdn/{5X3EBFJW.js → HEYHZKI2.js} +1 -1
  88. package/dist/cdn/{GVT6ZVGQ.js → HOUQ3XZ3.js} +1 -1
  89. package/dist/cdn/{GNVPXNTX.js → HRC67J4X.js} +1 -1
  90. package/dist/cdn/{UFKHTNLP.js → HRX3VZC6.js} +1 -1
  91. package/dist/cdn/{Q7TBJT42.js → HTDQ3T52.js} +1 -1
  92. package/dist/cdn/{BTKSII6C.js → HW3TRZY4.js} +1 -1
  93. package/dist/cdn/{6BNYO33V.js → HXOGSZ3H.js} +1 -1
  94. package/dist/cdn/{3W4IH5LQ.js → I5EJ7LOJ.js} +1 -1
  95. package/dist/cdn/{A2LHW4XE.js → I5SI3FWI.js} +1 -1
  96. package/dist/cdn/IBHSU6LP.js +2 -0
  97. package/dist/cdn/{WBTZYFQY.js → IBOB5TYX.js} +1 -1
  98. package/dist/cdn/{6NDLOXKQ.js → IE5OHRX5.js} +1 -1
  99. package/dist/cdn/{3MHQ3Y3W.js → IFWRNEPD.js} +1 -1
  100. package/dist/cdn/{MQX2F54G.js → II5MODDO.js} +1 -1
  101. package/dist/cdn/{EU3QJKJW.js → IITMDFOP.js} +1 -1
  102. package/dist/cdn/{3XE3WNGC.js → IWVSKFSS.js} +1 -1
  103. package/dist/cdn/{PMU2DO3P.js → J6TT6SMU.js} +1 -1
  104. package/dist/cdn/{AG6XG3QV.js → JCSG35A7.js} +1 -1
  105. package/dist/cdn/{7XDG253K.js → JGMSDKM3.js} +1 -1
  106. package/dist/cdn/{QTBE7N34.js → JK4KRK6P.js} +1 -1
  107. package/dist/cdn/{MYV6ULJI.js → JTBVK3AS.js} +1 -1
  108. package/dist/cdn/{SUUKWB22.js → JVP63EMR.js} +1 -1
  109. package/dist/cdn/{UP4ICAUO.js → K43HEYQI.js} +1 -1
  110. package/dist/cdn/{D5AGKEQQ.js → K4HD2F6W.js} +1 -1
  111. package/dist/cdn/{2PBI4WYR.js → K4TLP5XG.js} +1 -1
  112. package/dist/cdn/{EGUVICJF.js → K66ZH3DH.js} +1 -1
  113. package/dist/cdn/{JDKASAQ4.js → KEE5SJGE.js} +1 -1
  114. package/dist/cdn/{DPZYWN5Y.js → KENF5DVZ.js} +1 -1
  115. package/dist/cdn/{K5ORNQ7G.js → KIDAEQ5W.js} +1 -1
  116. package/dist/cdn/{5F4TM4DQ.js → KJSNL3R6.js} +1 -1
  117. package/dist/cdn/{NCBGRPO4.js → KNMX3FG5.js} +1 -1
  118. package/dist/cdn/{RS4YM3X3.js → KNUETGYG.js} +1 -1
  119. package/dist/cdn/{KKBLRTCV.js → KPOJXBNC.js} +1 -1
  120. package/dist/cdn/{SMEKIUGI.js → KPX2JCBN.js} +1 -1
  121. package/dist/cdn/{4Q6IWOPE.js → L2FVENA7.js} +1 -1
  122. package/dist/cdn/{WFGN3Z2K.js → L2LZHMH7.js} +1 -1
  123. package/dist/cdn/{4TMQMYFX.js → L66K2IBM.js} +1 -1
  124. package/dist/cdn/{XDNADMUB.js → L6B6VGZX.js} +1 -1
  125. package/dist/cdn/{7Q62J3QW.js → L72D4UTS.js} +1 -1
  126. package/dist/cdn/{YQMNH4EU.js → LGAYYLQL.js} +1 -1
  127. package/dist/cdn/{VGAUTY3U.js → LIK2D5WG.js} +1 -1
  128. package/dist/cdn/{SDJO7TU2.js → LINQYJP4.js} +1 -1
  129. package/dist/cdn/{3CFRD2EN.js → LKAMRNMI.js} +1 -1
  130. package/dist/cdn/{6AEBAXJV.js → LL7FJHEJ.js} +1 -1
  131. package/dist/cdn/{LGO6UJXQ.js → LMBTPOT3.js} +1 -1
  132. package/dist/cdn/{FXGGTFFX.js → LOTMKNUM.js} +1 -1
  133. package/dist/cdn/{Z24LPE5P.js → LVUQ55Y3.js} +1 -1
  134. package/dist/cdn/{UZPRFNYH.js → M3TJQPJ3.js} +1 -1
  135. package/dist/cdn/{HTEIMRY6.js → M6FA6DZH.js} +1 -1
  136. package/dist/cdn/{24PDYG7O.js → M7ARKSCG.js} +1 -1
  137. package/dist/cdn/{2VSEEB47.js → MDICIYVG.js} +1 -1
  138. package/dist/cdn/{AVJ3D46P.js → MIHS4UUO.js} +1 -1
  139. package/dist/cdn/{XO23SMXO.js → MIRKEWHI.js} +1 -1
  140. package/dist/cdn/{TIOCQR7Z.js → MJ2CLOUC.js} +1 -1
  141. package/dist/cdn/{62LN764Z.js → MJRXLGST.js} +1 -1
  142. package/dist/cdn/{6KXGNGPR.js → MR3VAM44.js} +1 -1
  143. package/dist/cdn/MSNVY4PH.js +2 -0
  144. package/dist/cdn/{J2S23AFG.js → MU6AVJOK.js} +1 -1
  145. package/dist/cdn/{XWALVOZP.js → MZ2KYVWD.js} +1 -1
  146. package/dist/cdn/{4W3T75SY.js → NCYBFT2Y.js} +1 -1
  147. package/dist/cdn/{C3XXTXZL.js → NIFDFP4Q.js} +1 -1
  148. package/dist/cdn/{BITXHOPV.js → NN4RJSCH.js} +1 -1
  149. package/dist/cdn/{SJT4UC5B.js → NOVBQIN5.js} +1 -1
  150. package/dist/cdn/{VXAY5W6P.js → NWLNFKT6.js} +1 -1
  151. package/dist/cdn/{AY7A2WZ2.js → NXBXO7PE.js} +1 -1
  152. package/dist/cdn/{FHWOIM57.js → O6F37YLT.js} +1 -1
  153. package/dist/cdn/{TLVYAP5O.js → OEGPO4V4.js} +1 -1
  154. package/dist/cdn/{7JCPGA62.js → OF6BYN4Z.js} +1 -1
  155. package/dist/cdn/{HJPTFBQB.js → OU7XFISZ.js} +1 -1
  156. package/dist/cdn/{2XRY235R.js → OWT2YYBJ.js} +1 -1
  157. package/dist/cdn/{67PVPQ2A.js → PFX6VX2N.js} +1 -1
  158. package/dist/cdn/{DRER5LNM.js → PLQVU2Q5.js} +1 -1
  159. package/dist/cdn/{453C7IUP.js → PODV4OTG.js} +1 -1
  160. package/dist/cdn/{UPRC5DGZ.js → PPTHUNKC.js} +1 -1
  161. package/dist/cdn/{MKKJTX2G.js → PSX4TLHP.js} +1 -1
  162. package/dist/cdn/{EFSE3OHY.js → PUNT3Q36.js} +1 -1
  163. package/dist/cdn/{3NWZC6DC.js → Q2GU7GDS.js} +1 -1
  164. package/dist/cdn/{A4X5YDA6.js → Q7SMGP5R.js} +1 -1
  165. package/dist/cdn/{IZLJF7QK.js → QB7T5YZ4.js} +1 -1
  166. package/dist/cdn/{RHXVVGD3.js → QE6XRKDY.js} +1 -1
  167. package/dist/cdn/{YX5QEVKH.js → QV5ZPD7H.js} +1 -1
  168. package/dist/cdn/{645DRFAT.js → QVFP6VNW.js} +1 -1
  169. package/dist/cdn/{G43HMCDY.js → QWZOLPCK.js} +1 -1
  170. package/dist/cdn/{VCRTOOTR.js → RCGLBAHP.js} +1 -1
  171. package/dist/cdn/{ZC2ZAUG3.js → RFJWLEKY.js} +1 -1
  172. package/dist/cdn/RIBE2H6U.js +2 -0
  173. package/dist/cdn/{USGNZSD3.js → RT4SQ4PV.js} +1 -1
  174. package/dist/cdn/{7OFFUYIA.js → RTFIAQWR.js} +1 -1
  175. package/dist/cdn/{BRSERGCB.js → RTUHTKTO.js} +1 -1
  176. package/dist/cdn/{NV7K5IBW.js → S474C2LJ.js} +1 -1
  177. package/dist/cdn/{V4W4ZP6M.js → S7OFSONY.js} +1 -1
  178. package/dist/cdn/{BPHJ4VBC.js → SD5FKQFO.js} +1 -1
  179. package/dist/cdn/{AEWE5NOZ.js → SJJ7QEQX.js} +1 -1
  180. package/dist/cdn/{DGE4UXLM.js → SNO5W2NO.js} +1 -1
  181. package/dist/cdn/{C4LCKYWW.js → SOOJLVZP.js} +1 -1
  182. package/dist/cdn/{KRIHSRTS.js → SSHNAKNA.js} +1 -1
  183. package/dist/cdn/{CYJZ7T4S.js → STWRT3F7.js} +1 -1
  184. package/dist/cdn/{BHM6MPAV.js → SVXVFWF5.js} +1 -1
  185. package/dist/cdn/{SDWFNKIL.js → SYDGAFU5.js} +1 -1
  186. package/dist/cdn/{4GEFIIBU.js → TBJOTUJP.js} +1 -1
  187. package/dist/cdn/{BQLJNLRI.js → TDGUCMON.js} +1 -1
  188. package/dist/cdn/{ZDGUYB7C.js → TVV525SY.js} +1 -1
  189. package/dist/cdn/{WVFQTFUT.js → TY7RUZSW.js} +1 -1
  190. package/dist/cdn/{OOZOKLAN.js → TYEPGXJH.js} +1 -1
  191. package/dist/cdn/UBD7D3LO.js +2 -0
  192. package/dist/cdn/{EAYOGF4C.js → UEBDFBOK.js} +1 -1
  193. package/dist/cdn/{ZSFJNJIA.js → UKJYTLTV.js} +1 -1
  194. package/dist/cdn/{LEKQIXDS.js → UP7UPFAE.js} +1 -1
  195. package/dist/cdn/{LPVFDDKF.js → UREENOOH.js} +1 -1
  196. package/dist/cdn/{SWFTXNVA.js → UTAQGRV3.js} +1 -1
  197. package/dist/cdn/{N73PMH4J.js → UTOVD7WO.js} +1 -1
  198. package/dist/cdn/{IA6DGMKU.js → UU4FSZYG.js} +1 -1
  199. package/dist/cdn/{VNUQ4CCT.js → UYFMNOGK.js} +1 -1
  200. package/dist/cdn/{JKGEHJS3.js → V2UDGBN4.js} +1 -1
  201. package/dist/cdn/{6KVXHFAI.js → V2ZCE7D4.js} +1 -1
  202. package/dist/cdn/{GJKLQ4DF.js → VAOBL5U2.js} +1 -1
  203. package/dist/cdn/{S2PCZUXW.js → VK2AQNZW.js} +1 -1
  204. package/dist/cdn/{SVPEZ73H.js → VNT4QL2K.js} +1 -1
  205. package/dist/cdn/{N2QRRWRV.js → VNZUXNWJ.js} +1 -1
  206. package/dist/cdn/{YCU2NW3W.js → VRC5MLVY.js} +1 -1
  207. package/dist/cdn/{WN23CO4W.js → VRRD4HXH.js} +1 -1
  208. package/dist/cdn/{J7O4NTZK.js → W3M6NBVO.js} +1 -1
  209. package/dist/cdn/{YT6GA6QR.js → WE2GHP5E.js} +1 -1
  210. package/dist/cdn/{D6MRDGUC.js → WQQVESNN.js} +1 -1
  211. package/dist/cdn/{WXLC6FPD.js → WTBRS6C4.js} +2 -2
  212. package/dist/cdn/{PYVC7VOE.js → WUPMOIP3.js} +1 -1
  213. package/dist/cdn/{2BVXNQ3U.js → WVGSH2QD.js} +1 -1
  214. package/dist/cdn/{JJB3SLCR.js → WXX3WGFE.js} +1 -1
  215. package/dist/cdn/{7HL2TQ7E.js → X4RJMWSU.js} +1 -1
  216. package/dist/cdn/{H3AOF7G6.js → X5M3AEQM.js} +1 -1
  217. package/dist/cdn/{QQJFRYNU.js → XM2OSRTS.js} +1 -1
  218. package/dist/cdn/{JXBEE5GW.js → XRTSGX32.js} +1 -1
  219. package/dist/cdn/{R2YJFR4T.js → XWHCPDF5.js} +1 -1
  220. package/dist/cdn/{YHNRTH56.js → XXA7VSON.js} +1 -1
  221. package/dist/cdn/{XBEXETEH.js → XZVWADEG.js} +1 -1
  222. package/dist/cdn/{FXK4G4VK.js → YLXNHUYF.js} +1 -1
  223. package/dist/cdn/{MQKMDGBE.js → YNC35BAZ.js} +1 -1
  224. package/dist/cdn/{WQNFBJ7C.js → YTRY74ZP.js} +1 -1
  225. package/dist/cdn/{FUDA5H6R.js → YVZI2KY2.js} +1 -1
  226. package/dist/cdn/{I4VCDQAJ.js → YXKHHGAI.js} +1 -1
  227. package/dist/cdn/{ATJRAUEJ.js → Z3GGFI6Z.js} +1 -1
  228. package/dist/cdn/{XHXRRAGH.js → Z3XLCKLP.js} +1 -1
  229. package/dist/cdn/{5EP57RZK.js → ZFLMRC4G.js} +1 -1
  230. package/dist/cdn/{E5HTVW5O.js → ZFQLBEGC.js} +1 -1
  231. package/dist/cdn/ZGEJX5IU.js +2 -0
  232. package/dist/cdn/{SDCDW6LW.js → ZJEYDRKM.js} +1 -1
  233. package/dist/cdn/{I2D75Q7M.js → ZKW6OUEO.js} +1 -1
  234. package/dist/cdn/{62UEF6RI.js → ZZHPGKBQ.js} +1 -1
  235. package/dist/cdn/index.js +1 -1
  236. package/dist/components/arcgis-features/customElement.js +82 -74
  237. package/dist/components/arcgis-features-next/customElement.js +99 -91
  238. package/dist/components/arcgis-layer-list/customElement.js +1 -1
  239. package/dist/components/arcgis-legend/customElement.js +1 -1
  240. package/dist/components/arcgis-legend-classic-element/customElement.js +1 -1
  241. package/dist/components/arcgis-legend-classic-view/customElement.js +19 -19
  242. package/dist/docs/api.json +1 -1
  243. package/dist/docs/docs.json +1 -1
  244. package/dist/docs/web-types.json +1 -1
  245. package/package.json +5 -5
  246. package/dist/cdn/2GQ6KVNI.js +0 -2
  247. package/dist/cdn/6ZURXEAE.js +0 -2
  248. package/dist/cdn/BHADA675.js +0 -2
  249. package/dist/cdn/G7KSSNBD.js +0 -2
  250. package/dist/cdn/KYZ4TF64.js +0 -2
  251. package/dist/cdn/QIBBS7Z2.js +0 -2
  252. package/dist/cdn/RS5BEGC5.js +0 -2
  253. package/dist/cdn/WNHPFEPA.js +0 -2
  254. package/dist/cdn/WXSIUEVC.js +0 -2
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{a as M}from"./RHXVVGD3.js";import{a as z}from"./LTOXLO3L.js";import{c as S}from"./G5VPRDMX.js";import e from"./3T7L7UT5.js";import{a as C}from"./2BVXNQ3U.js";import d from"./2FM2FJAY.js";import b from"./YHNRTH56.js";import{g as k}from"./3AQ6NC3C.js";import"./A4X5YDA6.js";import a from"./SDWFNKIL.js";import"./QUZTFUWM.js";import"./4W3T75SY.js";import{L as u,M as h,N as $,O as _,T as y,a as x,b as n,f as c,p as g,w as v}from"./WXLC6FPD.js";import"./H6RQVSYM.js";export default $arcgis.t(([{convertUnit:D},{getDefaultUnitForView:U},{hasDisplayProperties:b},I,O,f,A,,,,P])=>{var V=x`[class^=esri-icon-],[class*=" esri-icon-"]{speak:none;font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-style:normal;font-weight:var(--calcite-font-weight-normal);line-height:1;font-family:CalciteWebCoreIcons!important}.esri-icon-close:before{content:"";color:inherit}.esri-icon-drag-horizontal:before{content:"";color:inherit}.esri-icon-drag-vertical:before{content:"";color:inherit}.esri-icon-handle-horizontal:before{content:"";color:inherit}.esri-icon-handle-vertical:before{content:"";color:inherit}.esri-icon-check-mark:before{content:"";color:inherit}.esri-icon-left-triangle-arrow:before{content:"";color:inherit}.esri-icon-right-triangle-arrow:before{content:"";color:inherit}.esri-icon-down-arrow:before{content:"";color:inherit}.esri-icon-up-arrow:before{content:"";color:inherit}.esri-icon-overview-arrow-bottom-left:before{content:"";color:inherit}.esri-icon-overview-arrow-bottom-right:before{content:"";color:inherit}.esri-icon-overview-arrow-top-left:before{content:"";color:inherit}.esri-icon-overview-arrow-top-right:before{content:"";color:inherit}.esri-icon-maximize:before{content:"";color:inherit}.esri-icon-minimize:before{content:"";color:inherit}.esri-icon-checkbox-unchecked:before{content:"";color:inherit}.esri-icon-checkbox-checked:before{content:"";color:inherit}.esri-icon-radio-unchecked:before{content:"";color:inherit}.esri-icon-radio-checked:before{content:"";color:inherit}.esri-icon-up-arrow-circled:before{content:"";color:inherit}.esri-icon-down-arrow-circled:before{content:"";color:inherit}.esri-icon-left-arrow-circled:before{content:"";color:inherit}.esri-icon-right-arrow-circled:before{content:"";color:inherit}.esri-icon-zoom-out-fixed:before{content:"";color:inherit}.esri-icon-zoom-in-fixed:before{content:"";color:inherit}.esri-icon-refresh:before{content:"";color:inherit}.esri-icon-edit:before{content:"";color:inherit}.esri-icon-authorize:before{content:"";color:inherit}.esri-icon-map-pin:before{content:"";color:inherit}.esri-icon-blank-map-pin:before{content:"";color:inherit}.esri-icon-table:before{content:"";color:inherit}.esri-icon-plus:before{content:"";color:inherit}.esri-icon-minus:before{content:"";color:inherit}.esri-icon-beginning:before{content:"";color:inherit}.esri-icon-reverse:before{content:"";color:inherit}.esri-icon-pause:before{content:"";color:inherit}.esri-icon-play:before{content:"";color:inherit}.esri-icon-forward:before{content:"";color:inherit}.esri-icon-end:before{content:"";color:inherit}.esri-icon-erase:before{content:"";color:inherit}.esri-icon-up-down-arrows:before{content:"";color:inherit}.esri-icon-left:before{content:"";color:inherit}.esri-icon-right:before{content:"";color:inherit}.esri-icon-announcement:before{content:"";color:inherit}.esri-icon-notice-round:before{content:"";color:inherit}.esri-icon-notice-triangle:before{content:"";color:inherit}.esri-icon-home:before{content:"";color:inherit}.esri-icon-locate:before{content:"";color:inherit}.esri-icon-expand:before{content:"";color:inherit}.esri-icon-collapse:before{content:"";color:inherit}.esri-icon-layer-list:before{content:"";color:inherit}.esri-icon-basemap:before{content:"";color:inherit}.esri-icon-globe:before{content:"";color:inherit}.esri-icon-applications:before{content:"";color:inherit}.esri-icon-arrow-up-circled:before{content:"";color:inherit}.esri-icon-arrow-down-circled:before{content:"";color:inherit}.esri-icon-arrow-left-circled:before{content:"";color:inherit}.esri-icon-arrow-right-circled:before{content:"";color:inherit}.esri-icon-minus-circled:before{content:"";color:inherit}.esri-icon-plus-circled:before{content:"";color:inherit}.esri-icon-add-attachment:before{content:"";color:inherit}.esri-icon-attachment:before{content:"";color:inherit}.esri-icon-calendar:before{content:"";color:inherit}.esri-icon-close-circled:before{content:"";color:inherit}.esri-icon-browser:before{content:"";color:inherit}.esri-icon-collection:before{content:"";color:inherit}.esri-icon-comment:before{content:"";color:inherit}.esri-icon-configure-popup:before{content:"";color:inherit}.esri-icon-contact:before{content:"";color:inherit}.esri-icon-dashboard:before{content:"";color:inherit}.esri-icon-deny:before{content:"";color:inherit}.esri-icon-description:before{content:"";color:inherit}.esri-icon-directions:before{content:"";color:inherit}.esri-icon-directions2:before{content:"";color:inherit}.esri-icon-documentation:before{content:"";color:inherit}.esri-icon-duplicate:before{content:"";color:inherit}.esri-icon-review:before{content:"";color:inherit}.esri-icon-environment-settings:before{content:"";color:inherit}.esri-icon-error:before{content:"";color:inherit}.esri-icon-error2:before{content:"";color:inherit}.esri-icon-experimental:before{content:"";color:inherit}.esri-icon-feature-layer:before{content:"";color:inherit}.esri-icon-filter:before{content:"";color:inherit}.esri-icon-grant:before{content:"";color:inherit}.esri-icon-group:before{content:"";color:inherit}.esri-icon-key:before{content:"";color:inherit}.esri-icon-labels:before{content:"";color:inherit}.esri-icon-tag:before{content:"";color:inherit}.esri-icon-layers:before{content:"";color:inherit}.esri-icon-left-arrow:before{content:"";color:inherit}.esri-icon-right-arrow:before{content:"";color:inherit}.esri-icon-link-external:before{content:"";color:inherit}.esri-icon-link:before{content:"";color:inherit}.esri-icon-loading-indicator:before{content:"";color:inherit}.esri-icon-maps:before{content:"";color:inherit}.esri-icon-marketplace:before{content:"";color:inherit}.esri-icon-media:before{content:"";color:inherit}.esri-icon-media2:before{content:"";color:inherit}.esri-icon-menu:before{content:"";color:inherit}.esri-icon-mobile:before{content:"";color:inherit}.esri-icon-phone:before{content:"";color:inherit}.esri-icon-navigation:before{content:"";color:inherit}.esri-icon-pan:before{content:"";color:inherit}.esri-icon-printer:before{content:"";color:inherit}.esri-icon-pie-chart:before{content:"";color:inherit}.esri-icon-chart:before{content:"";color:inherit}.esri-icon-line-chart:before{content:"";color:inherit}.esri-icon-question:before{content:"";color:inherit}.esri-icon-resend-invitation:before{content:"";color:inherit}.esri-icon-rotate:before{content:"";color:inherit}.esri-icon-save:before{content:"";color:inherit}.esri-icon-settings:before{content:"";color:inherit}.esri-icon-settings2:before{content:"";color:inherit}.esri-icon-share:before{content:"";color:inherit}.esri-icon-sign-out:before{content:"";color:inherit}.esri-icon-support:before{content:"";color:inherit}.esri-icon-user:before{content:"";color:inherit}.esri-icon-time-clock:before{content:"";color:inherit}.esri-icon-trash:before{content:"";color:inherit}.esri-icon-upload:before{content:"";color:inherit}.esri-icon-download:before{content:"";color:inherit}.esri-icon-zoom-in-magnifying-glass:before{content:"";color:#6e6e6e}.esri-icon-search:before{content:"";color:inherit}.esri-icon-zoom-out-magnifying-glass:before{content:"";color:#6e6e6e}.esri-icon-locked:before{content:"";color:inherit}.esri-icon-unlocked:before{content:"";color:inherit}.esri-icon-favorites:before{content:"";color:inherit}.esri-icon-compass:before{content:"";color:inherit}.esri-icon-down:before{content:"";color:inherit}.esri-icon-up:before{content:"";color:inherit}.esri-icon-chat:before{content:"";color:inherit}.esri-icon-dock-bottom:before{content:"";color:inherit}.esri-icon-dock-left:before{content:"";color:inherit}.esri-icon-dock-right:before{content:"";color:inherit}.esri-icon-organization:before{content:"";color:inherit}.esri-icon-north-navigation:before{content:"";color:inherit}.esri-icon-locate-circled:before{content:"";color:inherit}.esri-icon-dial:before{content:"";color:inherit}.esri-icon-polygon:before{content:"";color:inherit}.esri-icon-polyline:before{content:"";color:inherit}.esri-icon-visible:before{content:"";color:inherit}.esri-icon-non-visible:before{content:"";color:inherit}.esri-icon-link-vertical:before{content:"";color:inherit}.esri-icon-unlocked-link-vertical:before{content:"";color:inherit}.esri-icon-link-horizontal:before{content:"";color:inherit}.esri-icon-unlocked-link-horizontal:before{content:"";color:inherit}.esri-icon-swap:before{content:"";color:inherit}.esri-icon-cta-link-external:before{content:"";color:inherit}.esri-icon-reply:before{content:"";color:inherit}.esri-icon-public:before{content:"";color:inherit}.esri-icon-share2:before{content:"";color:inherit}.esri-icon-launch-link-external:before{content:"";color:inherit}.esri-icon-rotate-back:before{content:"";color:inherit}.esri-icon-pan2:before{content:"";color:inherit}.esri-icon-tracking:before{content:"";color:inherit}.esri-icon-expand2:before{content:"";color:inherit}.esri-icon-arrow-down:before{content:"";color:inherit}.esri-icon-arrow-up:before{content:"";color:inherit}.esri-icon-hollow-eye:before{content:"";color:inherit}.esri-icon-play-circled:before{content:"";color:inherit}.esri-icon-volume-off:before{content:"";color:inherit}.esri-icon-volume-on:before{content:"";color:inherit}.esri-icon-bookmark:before{content:"";color:inherit}.esri-icon-lightbulb:before{content:"";color:inherit}.esri-icon-sketch-rectangle:before{content:"";color:inherit}.esri-icon-north-navigation-filled:before{content:"";color:inherit}.esri-icon-default-action:before{content:"";color:inherit}.esri-icon-undo:before{content:"";color:inherit}.esri-icon-redo:before{content:"";color:inherit}.esri-icon-cursor:before{content:"";color:inherit}.esri-icon-cursor-filled:before{content:"";color:inherit}.esri-icon-measure:before{content:"";color:inherit}.esri-icon-measure-line:before{content:"";color:inherit}.esri-icon-measure-area:before{content:"";color:inherit}.esri-icon-legend:before{content:"";color:inherit}.esri-icon-sliders:before{content:"";color:inherit}.esri-icon-sliders-horizontal:before{content:"";color:inherit}.esri-icon-cursor-marquee:before{content:"";color:inherit}.esri-icon-lasso:before{content:"";color:inherit}.esri-icon-elevation-profile:before{content:"";color:inherit}.esri-icon-slice:before{content:"";color:inherit}.esri-icon-line-of-sight:before{content:"";color:inherit}.esri-icon-zoom-to-object:before{content:"";color:inherit}.esri-icon-urban-model:before{content:"";color:inherit}.esri-icon-measure-building-height-shadow:before{content:"";color:inherit}.esri-icon-partly-cloudy:before{content:"";color:inherit}.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}.esri-widget{box-sizing:border-box;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget *,.esri-widget :before,.esri-widget :after{box-sizing:inherit}.esri-widget.esri-widget--disabled>*{opacity:.4;pointer-events:none}.esri-widget.esri-widget--compact{--esri-widget-padding-y: 0;--esri-widget-padding-x: 0}.esri-widget__anchor{color:var(--calcite-color-text-2)}.esri-widget__anchor:hover{color:var(--calcite-color-text-3)}.esri-widget__anchor:hover,.esri-widget__anchor:focus{text-decoration:underline}.esri-widget__anchor--disabled{opacity:.4;pointer-events:none}.esri-widget__header{background-color:var(--calcite-color-foreground-1);flex:1 0 100%;justify-content:space-between;align-items:center;width:100%;min-height:48px;padding:12px 0 12px 15px;display:flex}.esri-widget__heading{word-break:break-word}.esri-widget__header .esri-widget__heading{width:calc(100% - 48px);text-align:initial;color:var(--calcite-color-text-1);align-items:center;margin:0;padding:0;display:flex}.esri-widget__header-button{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);border:none;flex:0 0 48px;justify-content:center;align-self:stretch;align-items:center;width:48px;padding:0;display:flex}.esri-widget__footer{background-color:var(--calcite-color-foreground-1);justify-content:center;align-items:center;width:100%;min-height:48px;display:flex}.esri-widget__footer-pagination{color:var(--calcite-color-text-2);justify-content:space-between;align-items:center;display:flex}.esri-widget__footer-pagination-previous-button,.esri-widget__footer-pagination-next-button{cursor:pointer;background-color:var(--calcite-color-foreground-1);border:0;margin:0 7px;padding:12px 15px;transition:background-color .125s ease-in-out}.esri-widget__footer-pagination-previous-button:hover,.esri-widget__footer-pagination-previous-button:focus,.esri-widget__footer-pagination-next-button:hover,.esri-widget__footer-pagination-next-button:focus{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1)}.esri-menu{visibility:hidden;z-index:1;background-clip:padding;background-color:var(--calcite-color-foreground-1);background-clip:padding-box;width:100%;max-height:0;margin:2px 0 0;padding:0;font-size:var(--calcite-font-size);line-height:var(--calcite-spacing-xl);position:absolute;top:100%;left:0;overflow:hidden;box-shadow:0 1px 2px #0000004d}.esri-menu .esri-menu__header{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-inverse);padding:6px 12px}.esri-menu__list{margin:0;padding:0;list-style:none}.esri-menu__list-item{cursor:pointer;border-top:1px solid #adadad4d;border-left:3px solid #0000;padding:.8em 1em}.esri-menu__list-item [class^=esri-icon-],.esri-menu__list-item [class*=" esri-icon-"]{padding-right:2.8px}.esri-menu__list-item:first-child{border-top:none}.esri-menu__list-item--focus,.esri-menu__list-item:hover,.esri-menu__list-item:focus{background-color:var(--calcite-color-foreground-1)}.esri-menu__list-item:active{background-color:var(--calcite-color-foreground-current)}.esri-menu__list-item--active,.esri-menu__list-item--active:hover,.esri-menu__list-item--active:focus{background-color:var(--calcite-color-foreground-1);border-left-color:var(--calcite-color-brand)}.esri-widget__table{border-collapse:collapse;color:var(--calcite-color-text-1);border:none;width:100%;line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget__table tr:nth-child(odd){background-color:var(--calcite-color-transparent)}.esri-widget__table tr:nth-child(2n){background-color:var(--calcite-color-transparent-press)}.esri-widget__table tr a{color:var(--calcite-color-text-2)}.esri-widget__table tr a:hover,.esri-widget__table tr a:focus{color:var(--calcite-color-text-1)}.esri-widget__table tr td,.esri-widget__table tr th{vertical-align:top;word-break:break-word;padding:.5em .7em;font-size:var(--calcite-font-size-sm);font-weight:var(--calcite-font-weight-regular)}.esri-widget__table tr th{text-align:left;border-right:3px solid #0000000d;width:50%}.esri-widget__table tr td{width:50%}.esri-input{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1);border:1px solid #959595;font-size:var(--calcite-font-size)}.esri-input::-ms-clear{display:none}.esri-input::placeholder{opacity:1;color:var(--calcite-color-text-2)}.esri-input:placeholder-shown{text-overflow:ellipsis}.esri-input[type=text],.esri-input[type=password],.esri-input[type=number]{height:32px;padding:0 .5em}calcite-combobox.esri-input{border:none}.esri-widget__content--empty{text-align:center;color:var(--calcite-color-border-input);flex-flow:column wrap;align-items:center;padding:18px 22px;display:flex}.esri-widget__content--empty h1.esri-widget__heading,.esri-widget__content--empty h2.esri-widget__heading,.esri-widget__content--empty h3.esri-widget__heading,.esri-widget__content--empty h4.esri-widget__heading,.esri-widget__content--empty h5.esri-widget__heading{font-weight:var(--calcite-font-weight-regular)}.esri-widget__content-illustration--empty{width:128px;padding:1rem 0}.esri-widget__content-icon--empty{width:32px;padding:.5rem 0}.esri-select{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background:var(--calcite-color-foreground-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -8 32 32' width='32' height='32'%3E%3Cpath d='M8 11.207l-4-4V5.793l4 4 4-4v1.414z' fill='%23adadad' fillrule='nonzero'/%3E%3C/svg%3E") 100% no-repeat;border:1px solid #959595;border-radius:0;width:100%;height:32px;margin:0;padding:0 .5em;font-family:inherit;font-size:.85em;display:block}.esri-select[disabled]{cursor:auto}.esri-select::-ms-expand{display:none}.esri-disabled a,.esri-disabled [role=menu],.esri-disabled [role=checkbox],.esri-disabled [class^=esri-icon-],.esri-disabled [class*=" esri-icon-"]{color:var(--calcite-color-text-3)}.keynav-mode .esri-widget:focus,.keynav-mode .esri-widget :focus{z-index:1;outline-offset:2px;outline:2px solid #adadad}.esri-widget__loader-animation{border:.15em solid #adadad4d;border-top-color:var(--calcite-color-border-input);border-radius:100%;width:1em;height:1em;font-size:var(--calcite-font-size-md);animation:1.25s linear infinite esri-rotate;display:block;transform:translateZ(0)}:dir(rtl) .esri-widget__table th{text-align:right;border-left:3px solid #0000000d;border-right:none}:dir(rtl) .esri-select{background-position:0}:dir(rtl) .esri-menu__list-item{border-left:none;border-right:3px solid #0000}:dir(rtl) .esri-menu__list-item [class^=esri-icon-],:dir(rtl) .esri-menu__list-item [class*=" esri-icon-"]{padding-left:2px;padding-right:0}:dir(rtl) .esri-menu__list-item--active{border-right-color:var(--calcite-color-brand)}.esri-icon-font-fallback-text{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.esri-rotating{animation:1.25s linear infinite esri-rotate;transform:translateZ(0)}.esri-clearfix:before,.esri-clearfix:after{content:" ";display:table}.esri-clearfix:after{clear:both}.esri-interactive{cursor:pointer}.esri-hidden{display:none!important}.esri-invisible{visibility:hidden!important}.esri-offscreen{position:absolute;top:-999em;left:-999em}.esri-match-height{flex-direction:column;flex:auto;display:flex;overflow:hidden}.esri-button{box-sizing:border-box;cursor:pointer;white-space:normal;word-break:normal;color:var(--calcite-color-text-1);background-color:var(--calcite-color-status-info);border:var(--calcite-spacing-px) solid var(--calcite-color-status-info);justify-content:center;align-items:center;width:100%;min-height:var(--calcite-spacing-xxxl);padding:6px 7px;font-family:inherit;font-size:var(--calcite-font-size);transition:background-color .125s ease-in-out,border .125s ease-in-out;display:flex;overflow:hidden;&:hover{color:var(--calcite-color-text-1);background-color:var(--calcite-color-status-info-hover);border:var(--calcite-spacing-px) solid var(--calcite-color-status-info-hover)}}.esri-button:hover{color:var(--calcite-color-text-1);background-color:var(--calcite-color-text-2);border:1px solid var(--calcite-color-text-2)}.esri-button.esri-button--small{min-height:var(--calcite-spacing-xl);font-size:var(--calcite-font-size-sm)}.esri-button.esri-button--half{width:50%;display:inline-block}.esri-button.esri-button--third{width:33%;display:inline-block}.esri-button--secondary{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1)}.esri-button--tertiary{color:var(--calcite-color-brand);background-color:var(--calcite-color-transparent);border-color:var(--calcite-color-transparent)}.esri-button--tertiary:hover{color:var(--calcite-color-brand-hover);background-color:var(--calcite-color-foreground-2);border-color:var(--calcite-color-transparent)}.esri-button--disabled{opacity:.4;pointer-events:none}.esri-button--drill-in{outline-offset:-4px;cursor:pointer;text-align:unset;background-color:var(--calcite-color-foreground-1);border:none;border-radius:2px;justify-content:space-between;align-items:center;margin:var(--calcite-spacing-md) 7px;padding:var(--calcite-spacing-md) 7px;text-decoration:none;transition:background-color .125s ease-in-out;display:flex;box-shadow:0 0 0 1px #adadad4d}.esri-button--drill-in:hover,.esri-button--drill-in:focus{background-color:var(--calcite-color-foreground-2)}.esri-button--drill-in__title{font-size:var(--calcite-font-size)}.esri-button--drill-in [class^=esri-icon-],.esri-button--drill-in [class*=" esri-icon-"]{padding:0 7px}.esri-widget--button{cursor:pointer;text-align:center;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);flex-flow:row;justify-content:center;align-items:center;width:var(--calcite-spacing-xxxl);height:var(--calcite-spacing-xxxl);margin:0;padding:0;font-size:var(--calcite-font-size);transition:background-color .125s ease-in-out;display:flex;overflow:hidden}.esri-widget--button:is(calcite-button):not(:hover){--calcite-icon-color: var(--calcite-color-text-3)}.esri-widget--button:not([appearance]),.esri-widget--button[appearance=solid]{--calcite-color-foreground-3: var(--calcite-color-foreground-1)}.esri-widget--button:is(calcite-button){--calcite-offset-invert-focus: 1}.esri-widget--button calcite-loader[inline]{margin:auto}.esri-button--secondary{color:var(--calcite-color-brand);background-color:var(--calcite-color-foreground-1);&:hover{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-status-info);border:1px solid var(--calcite-color-status-info)}}:host{background-color:var(--calcite-color-foreground-1);color:var(--calcite-color-text-2);padding-block-start:var(--arcgis-coordinate-conversion-padding-y);width:var(--arcgis-coordinate-conversion-width, 280px)}.root{background-color:var(--calcite-color-foreground-1)}calcite-alert{--calcite-alert-offset-size: var(--calcite-spacing-sm)}calcite-notice[open]{padding:var(--calcite-spacing-sm)}calcite-block{--calcite-block-content-space: 0;margin:0;padding-inline:var(--arcgis-coordinate-conversion-padding-x)}calcite-block:last-of-type{padding-block-end:var(--arcgis-coordinate-conversion-padding-y, var(--calcite-spacing-sm))}.conversion-popover{--calcite-popover-max-size-x: var(--arcgis-coordinate-conversion-settings-block-size, 250px)}.go-to-input-holder{display:flex}.go-to-input-holder calcite-input{flex:1}.conversions-block{border:none;padding-bottom:var(--calcite-spacing-sm)}.live-mode-block{--calcite-label-margin-bottom: 0;padding-block:var(--calcite-spacing-sm);padding-inline:var(--arcgis-coordinate-conversion-padding-x, var(--calcite-spacing-sm))}.live-mode-label{width:fit-content;margin-inline-start:auto}.font-size-small{font-size:var(--calcite-font-size--2)}.format-radio-label{display:flex;flex-direction:column}.radio-label{font-weight:var(--calcite-font-weight-medium);font-size:var(--calcite-font-size--2)}.radio-description{font-weight:var(--calcite-font-weight-light);font-size:var(--calcite-font-size--3)}.unit-select-panel{--calcite-panel-space: var(--calcite-spacing-md)}.popover-footer{padding:var(--calcite-spacing-sm);border-top:1px solid var(--calcite-color-border-3)}.input-form-group{display:flex;flex-direction:column;align-items:flex-start;padding:var(--calcite-spacing-sm)}.add-conversion-trigger{margin-inline-start:var(--calcite-spacing-sm);margin-block-start:var(--calcite-spacing-sm)}.input-form-group calcite-label{width:100%}.settings{padding:var(--calcite-spacing-md);display:flex;flex-direction:column;align-items:center;background-color:var(--calcite-color-foreground-1);width:calc(var(--arcgis-coordinate-conversion-settings-block-size, 250px) - (2 * var(--calcite-spacing-md)) - 2px)}.settings calcite-label{width:100%}.settings calcite-input{flex:1}.settings-form-group-horizontal{display:flex}`,q=2500,B=new I({x:0,y:0}),l={copy:"copy",gear:"gear",goTo:"zoom-to-object",lightbulb:"lightbulb",plus:"plus",refresh:"refresh",warning:"exclamation-mark-triangle"},j=P(O),m=class extends ${constructor(){super(...arguments),this._alertTimer=-1,this._conversionPopoverMap=new Map,this._coordinateInput=u(),this.messages=C({name:"coordinate-conversion-next",blocking:!0}),this._multipleConversionsDisabled=!1,this.quantityFormatter=new A,this.viewModel=j(this),this.clearAlertTimeout=()=>{window.clearTimeout(this._alertTimer),this.alertProperties={...this.alertProperties,open:!1}},this.onElevationPopoverTriggerMount=e=>{this._elevationPopoverTrigger=e},this.onFormatPopoverTriggerMount=e=>{this._formatsPopoverTrigger=e},this.handleFormatComboboxChange=e=>{let i=e.target.selectedItems[0].value,o=this.formats.find(t=>t.name===i);if(o){let t=this.activeConversion??this.conversions.at(0)??null,r=new f({format:o});t&&this.transferConversionPopoverState(t,r),this.conversions.splice(0,1,r),this.activeConversion=r,this.setPreviewConversion()}},this.alertProperties={kind:"brand",message:null,title:null,open:!1},this.elevationPopoverOpen=!1,this.formatsPopoverOpen=!1,this.invalidInput=!1,this.view=this.viewModel.view,this.autoDestroyDisabled=!1,this.conversions=this.viewModel.conversions,this.currentLocation=this.viewModel.currentLocation,this.formats=this.viewModel.formats,this.goToOverride=this.viewModel.goToOverride,this.headingLevel=4,this.hideCaptureSection=!1,this.hideInputSection=!1,this.hideSettingsButton=!1,this.icon="coordinate-system",this.label=this.messages.componentLabel,this.locationSymbol=this.viewModel.locationSymbol,this.mode=this.viewModel.mode,this.removeLeadingZeros=this.viewModel.removeLeadingZeros,this.visualScale="s",this.showElevation=!1,this.state=this.viewModel.state,this.storageType=this.viewModel.storageType,this.arcgisConversionChange=v(),this.arcgisPropertyChange=k()("currentLocation","state","mode","verticalUnit"),this.arcgisReady=v(),this.renderConversionView=(e,i)=>{let{messages:o}=this,{format:t}=e,r=t?.label??"",s=i===0&&!e.displayCoordinate?o.noLocation:e.displayCoordinate,a=this._renderConversionActions(e,s);return z(e?.format?.name,n`<calcite-list-item class="conversion-list-item" .description=${r.toUpperCase()} .label=${this.getDisplayCoordinate(s)} .scale=${this.visualScale} title=${s??void 0??c}>${a}</calcite-list-item>`)},this.renderLiveModeSection=()=>{let{messages:e}=this,i=this.mode==="idle"?this.viewModel.mode:this.mode;return n`<calcite-block class="live-mode-block" .disabled=${this.disabled} expanded .headingLevel=${this.headingLevel} .label=${e.captureMode} .scale=${this.visualScale}><calcite-label alignment=end class="live-mode-label" layout=inline .scale=${this.visualScale}>${e.captureMode}<calcite-switch .checked=${i==="capture"} @calciteSwitchChange=${this.toggleMode}></calcite-switch></calcite-label></calcite-block>`}}static{this.properties={activeConversion:16,alertProperties:16,defaultMeasurementSystem:16,disabled:16,displayedElevation:16,elevationPopoverOpen:16,formatsPopoverOpen:16,invalidInput:16,inputFormat:16,previewConversion:16,view:0,autoDestroyDisabled:5,conversions:0,currentLocation:0,formats:0,goToOverride:0,headingLevel:9,hideCaptureSection:7,hideInputSection:7,hideSettingsButton:7,icon:1,ignoreCoordinatePrecision:5,label:1,locationSymbol:0,mode:3,multipleConversionsDisabled:7,referenceElement:1,removeLeadingZeros:7,visualScale:1,showElevation:7,state:32,storageDisabled:7,storageType:1,verticalUnit:1}}static{this.styles=V}get defaultMeasurementSystem(){return this.view?.ready?U(this.view):"metric"}get disabled(){return this.viewModel.state==="disabled"}get displayedElevation(){let{currentLocation:e,verticalUnit:i,messages:o}=this;if(e?.z===void 0||e.z===null)return o.noElevation;{let t=D(e.z,"meters",i);return this.quantityFormatter.formatLength({value:t,unit:i,type:"length"},2,"plural")}}get ignoreCoordinatePrecision(){return!this.viewModel.calculateCoordinatePrecision}set ignoreCoordinatePrecision(e){this.viewModel.calculateCoordinatePrecision=!e}get multipleConversionsDisabled(){return this._multipleConversionsDisabled}set multipleConversionsDisabled(e){e&&this.conversions.splice(1,this.conversions.length-1),this._multipleConversionsDisabled=e}get storageDisabled(){return!this.viewModel.storageEnabled}set storageDisabled(e){this.viewModel.storageEnabled=!e}get verticalUnit(){return this.viewModel.verticalUnit??(this.defaultMeasurementSystem==="imperial"?"feet":"meters")}set verticalUnit(e){this.viewModel.verticalUnit=e}async destroy(){this.clearAlertTimeout(),await this.manager.destroy()}async reverseConvert(e,i){return await this.viewModel.reverseConvert(e,i)}load(){this.manager.onLifecycle(()=>[this.conversions.on("change",()=>this.arcgisConversionChange.emit())])}willUpdate(e){if(e.has("mode")&&this.mode==="idle"){this.viewModel.setLocation(this.currentLocation);return}if(e.has("currentLocation")){let i=e.get("currentLocation");this.mode==="idle"&&!this.currentLocation?.equals(i)&&this.viewModel.setLocation(this.currentLocation)}}closeAllPopovers(){for(let e of this._conversionPopoverMap.values())e.open=!1;this.elevationPopoverOpen=!1,this.formatsPopoverOpen=!1,this.requestUpdate()}async copyToClipboard(e){e&&(e=e.replace(/‎/gu,""),await navigator.clipboard.writeText(e))}findSettingsFormat(){return this.activeConversion?.format||this.conversions.reduceRight((e,i)=>{let o=i.format;return o&&b(o)?o:e},null)||this.formats.find(e=>b(e))||null}getConversionPopoverState(e){let i=this._conversionPopoverMap.get(e);return i||(i={triggerRef:u(),open:!1},this._conversionPopoverMap.set(e,i)),i}getDisplayCoordinate(e){return e?e.includes(",")?e.replace(/, /gu,",\xA0\u200B").replace(/ /gu,"\xA0"):e:"\u200B"}getFormatDescription(e){let{messages:i}=this;return i.formatDescriptions[e.name]??i.formatDescriptions.custom}getId(e){return`arcgis-coordinate-conversion-${e}`}openConversionSettings(e,i){let o=this.getConversionPopoverState(e),t=this.activeConversion!==e||!o.open;this.closeAllPopovers(),o.open=t,this._conversionPopoverTrigger=t?i.currentTarget:void 0,this.activeConversion=t?e:void 0,t&&this.setPreviewConversion(),this.requestUpdate(),i.stopPropagation()}async processUserInput(e,i,o){let{viewModel:t}=this;try{let r=await this._reverseConvert(e,i);if(r)o&&t.goToLocation(r).catch(s=>{g(this)(s),this.showAlertMessage(null,this.messages.locationOffBasemap,"warning")});else throw new Error("failed to process user input");this.mode==="capture"?t.resume():this.mode="capture",this.invalidInput=!1,this.currentLocation=r??void 0,t.setLocation(r)}catch(r){g(this)(r),this.showAlertMessage(null,this.messages.invalidCoordinate,"warning"),this.invalidInput=!0}}async processUserKeyboardInput(e){let{key:i}=e;if(i==="Enter"){let o=this.inputFormat||this.conversions.at(0)?.format,t=this._coordinateInput.value?.value;if(!o||!t)return;await this.processUserInput(t,o,!0)}else this.invalidInput=!1}async processUserMouseInput(e){let i=this.inputFormat||this.conversions.at(0)?.format,o=this._coordinateInput.value?.value;!i||!o||await this.processUserInput(o,i,e)}async _reverseConvert(e,i){return await i.reverseConvert(e)}setDefaultPattern(e){e.stopPropagation();let i=this.findSettingsFormat();i?.defaultPattern&&(i.currentPattern=i.defaultPattern)}setInputFormat(e){let i=e.target.selectedOption.value;i!==null&&(this.inputFormat=i)}setPreviewConversion(){let e=this.findSettingsFormat(),i=this.viewModel;if(e){let o=this.conversions.find(t=>t.format===e);this.previewConversion=new f({format:e,position:{location:this.currentLocation,coordinate:o?.position?.coordinate}}),this.previewConversion.position?.coordinate||i.previewConversion(this.previewConversion,i.currentLocation??B)}}showAlertMessage(e,i,o,t=q){this.alertProperties={...this.alertProperties,title:e,message:i,kind:o,open:!0},window.clearTimeout(this._alertTimer),this._alertTimer=window.setTimeout(()=>{this.alertProperties={...this.alertProperties,open:!1}},t)}toggleConversion(e){let i=e.target,o=this.formats.find(t=>t.name===i.getAttribute("data-format"));if(o){let t=this.conversions.find(r=>r.format===o);if(t){if(this.conversions.length>1){let r=this._conversionPopoverMap.get(t);r&&(r.open=!1,this._conversionPopoverMap.delete(t)),this.activeConversion===t&&(this.activeConversion=void 0),this.conversions.remove(t)}}else{let r=new f({format:o});this.conversions.add(r)}}}toggleMode(){this.mode=this.viewModel.mode==="live"?"capture":"live"}transferConversionPopoverState(e,i){let o=this.getConversionPopoverState(e),t=this.getConversionPopoverState(i);t.open=o.open,this._conversionPopoverMap.delete(e)}updateCurrentPattern(e){e.stopPropagation();let i=e.target,o=this.findSettingsFormat();o&&(o.currentPattern=i.value)}render(){let{headingLevel:e}=this,i=this.renderConversionPopover();return n`<calcite-panel class=root .headingLevel=${e} .scale=${this.visualScale}>${this.renderConversionsView()}${this.renderAlert()}</calcite-panel>${i}`}renderAlert(){let{messages:e}=this,{open:i,message:o,title:t,kind:r}=this.alertProperties;return n`<calcite-alert class="alert" .kind=${r} .label=${e.alertLabel} @calciteAlertClose=${this.clearAlertTimeout} .open=${i} placement=top .scale=${this.visualScale} slot=alerts>${t?n`<div slot=title>${t}</div>`:null}${o?n`<div slot=message>${o}</div>`:null}</calcite-alert>`}_renderConversionActions(e,i){let{messages:o}=this,t=this.getConversionPopoverState(e),r=o.settingsTitleWithFormat.replace("{formatName}",e.format?.name?.toUpperCase()??""),s=e.displayCoordinate&&this.mode!=="live";return n`<calcite-action-group layout=horizontal .scale=${this.visualScale} slot=actions-end>${s?n`<calcite-action .icon=${l.copy} .label=${o.copyLabel} @click=${()=>this.copyToClipboard(i)} .scale=${this.visualScale} .text=${o.copyLabel} title=${o.copyLabel??c}></calcite-action>`:null}${this.hideSettingsButton?null:n`<calcite-action data-format=${e.format?.name??c} .icon=${l.gear} .label=${r} @click=${a=>this.openConversionSettings(e,a)} .scale=${this.visualScale} .text=${r} title=${r??c} ${h(t.triggerRef)}></calcite-action>`}</calcite-action-group>`}renderConversionOptions(e,i){return e.map(o=>n`<calcite-option .label=${o.label.toUpperCase()} .selected=${o===i} .value=${o}>${o.label}</calcite-option>`)}renderConversionPopover(){let{activeConversion:e,messages:i}=this;if(!e)return null;let o=this.getConversionPopoverState(e),t=i.settingsTitleWithFormat.replace("{formatName}",e.format?.name?.toUpperCase()??"");return this.renderPopover({class:"conversion-popover",content:this.renderSettingsView(),getPopoverOpenProperty:()=>o.open,heading:t,includeFooter:!0,label:t,setPopoverOpenProperty:r=>{o.open=r,r||(this._conversionPopoverTrigger=void 0,this.activeConversion=void 0),this.requestUpdate()},trigger:null,triggerElement:o.triggerRef.value??this._conversionPopoverTrigger??void 0})}renderConversionsView(){if(!this.conversions)return;let{messages:e,multipleConversionsDisabled:i}=this,o=(i?this.conversions.slice(0,1):this.conversions).map(this.renderConversionView).reverse(),t=this.showElevation?this.renderElevation():null,r=this.hideCaptureSection?null:this.renderLiveModeSection(),s=this.hideInputSection?null:this.renderCoordinateInputView(),a=this.multipleConversionsDisabled?null:this.renderFormatDropdown(),d=this.disabled?n`<calcite-notice .icon=${l.lightbulb} .open=${this.disabled} width=full><div class="font-size-small" slot=message>${e.noBasemap}</div></calcite-notice>`:null;return n`${r}${d}${s}<calcite-block class="conversions-block" .disabled=${this.disabled} expanded .heading=${e.coordinates} .headingLevel=${this.headingLevel} .scale=${this.visualScale}><calcite-list interaction-mode=static .label=${e.coordinates} .scale=${this.visualScale}>${o}</calcite-list>${a}</calcite-block>${t}`}renderCoordinateInputView(){let{messages:e}=this,i=this.inputFormat??this.conversions.at(0)?.format,o=this.getId("coordinate-input"),t=this.renderConversionOptions(this.formats,i??void 0),r=n`<calcite-action .icon=${l.goTo} .label=${e.convertAndGoTo} @click=${()=>this.processUserMouseInput(!0)} .scale=${this.visualScale} .text=${e.convertAndGoTo} title=${e.convertAndGoTo??c}></calcite-action>`;return n`<calcite-block collapsible data-testid=input-block .disabled=${this.disabled} .heading=${e.input} .headingLevel=${this.headingLevel} .scale=${this.visualScale}><div class="input-form-group"><calcite-label .scale=${this.visualScale}>${e.inputFormat}<calcite-select aria-controls=${o??c} class="input-select" .label=${e.inputFormat} @calciteSelectChange=${this.setInputFormat} .scale=${this.visualScale}>${t}</calcite-select></calcite-label><calcite-label .scale=${this.visualScale}>${e.inputCoordTitle}<div class="go-to-input-holder"><calcite-input class="coordinate-input" data-format=${i??c} data-testid=coordinate-input id=${o??c} @keydown=${this.processUserKeyboardInput} .placeholder=${e.inputCoordTitle} required .scale=${this.visualScale} .status=${this.invalidInput?"invalid":"idle"} ${h(this._coordinateInput)}></calcite-input>${r}</div></calcite-label><calcite-button appearance=outline data-testid=convert-button kind=neutral @click=${()=>this.processUserMouseInput(!1)} type=button .scale=${this.visualScale} width=auto>${e.convert}</calcite-button></div></calcite-block>`}renderElevation(){let{messages:e}=this,i=this.displayedElevation??e.noElevation,o=this.renderElevationActions(),t=this.hideSettingsButton?null:this.renderElevationSettingsDropdown();return n`<calcite-block .disabled=${this.disabled} expanded .heading=${e.elevation} .headingLevel=${this.headingLevel} .scale=${this.visualScale}><calcite-list interaction-mode=static .label=${e.elevation} .scale=${this.visualScale}><calcite-list-item class="elevation-list-item" .label=${i} .scale=${this.visualScale} title=${i??c}>${o}</calcite-list-item></calcite-list>${t}</calcite-block>`}renderElevationActions(){let{messages:e}=this,i=this.currentLocation?.z!==void 0&&this.mode!=="live",o=this.displayedElevation??e.noElevation;return n`<calcite-action-group layout=horizontal .scale=${this.visualScale} slot=actions-end>${i?n`<calcite-action .icon=${l.copy} .label=${e.copyElevationLabel} @click=${()=>i&&this.copyToClipboard(o)} .scale=${this.visualScale} .text=${e.copyElevationLabel} title=${e.copyElevationLabel??c}></calcite-action>`:null}${this.hideSettingsButton?null:n`<calcite-action .icon=${l.gear} .label=${e.selectElevationUnit} .scale=${this.visualScale} .text=${e.selectElevationUnit} title=${e.selectElevationUnit??c} ${h(this.onElevationPopoverTriggerMount)}></calcite-action>`}</calcite-action-group>`}renderElevationSettingsDropdown(){let{messages:e}=this,i=n`<arcgis-unit-radio-button-group @arcgisUnitSelectChange=${o=>this.verticalUnit=o.detail} .options=${S} .name=${e.selectElevationUnit} .scale=${this.visualScale} .value=${this.verticalUnit}></arcgis-unit-radio-button-group>`;return this.renderPopover({content:i,closeOnEnter:!0,getPopoverOpenProperty:()=>this.elevationPopoverOpen,includeFooter:!1,label:e.selectElevationUnit,setPopoverOpenProperty:o=>this.elevationPopoverOpen=o,trigger:null,triggerElement:this._elevationPopoverTrigger})}renderFormatDropdown(){let{messages:e}=this,i=n`<calcite-list .label=${e.addConversion} .scale=${this.visualScale} selection-mode=multiple>${M(this.formats,t=>t,t=>{let r=!!this.conversions.find(a=>a.format===t),s=this.getFormatDescription(t);return n`<calcite-list-item data-format=${t.name??c} .description=${s} .disabled=${r&&this.conversions.length===1} .label=${t.label.toUpperCase()} @calciteListItemSelect=${this.toggleConversion} .selected=${r}></calcite-list-item>`})}</calcite-list>`,o=n`<calcite-button appearance=outline class="add-conversion-trigger" .iconStart=${l.plus} kind=neutral .label=${e.selectFormats} round .scale=${this.visualScale} ${h(this.onFormatPopoverTriggerMount)}>${e.selectFormats}</calcite-button>`;return this.renderPopover({content:i,includeFooter:!0,getPopoverOpenProperty:()=>this.formatsPopoverOpen,label:e.selectFormats,setPopoverOpenProperty:t=>this.formatsPopoverOpen=t,trigger:o,triggerElement:this._formatsPopoverTrigger})}renderPopover({content:e,class:i,closeOnEnter:o,heading:t,getPopoverOpenProperty:r,includeFooter:s,label:a,setPopoverOpenProperty:d,slot:L,trigger:E,triggerDisabled:T,triggerElement:w}){let{messages:F}=this;return n`${E}${w?n`<calcite-popover auto-close class=${_(i)} .heading=${t} .headingLevel=${this.headingLevel} .label=${a} @calcitePopoverBeforeOpen=${()=>{d(!0)}} @calcitePopoverClose=${p=>{d(!1),p.stopPropagation()}} @keydown=${p=>{o&&(p.key==="Enter"||p.key===" ")&&d(!1)}} .open=${r()} .referenceElement=${w} .scale=${this.visualScale} slot=${L??c} .triggerDisabled=${T}>${e}${s?n`<div class="popover-footer"><calcite-button appearance=solid class="popover-done-button" kind=brand @click=${()=>d(!1)} .scale=${this.visualScale} width=full>${F.done}</calcite-button></div>`:null}</calcite-popover>`:null}`}renderSettingsView(){let{messages:e}=this,i=this.findSettingsFormat(),o=this.getId("pattern-input"),t=this.getId("preview-coordinate"),r=i?.currentPattern,s=this.multipleConversionsDisabled?this.renderSingleFormatDropdown():null;if(!i||!b(i))return n`<div class="settings"><calcite-label .scale=${this.visualScale}>${e.format}${s??n`<calcite-notice class="no-display-properties-notice" .icon=${l.warning} open .scale=${this.visualScale}><div class="font-size-small" slot=message>${e.noDisplayProperties}</div></calcite-notice>`}</calcite-label></div>`;let a=n`<calcite-action .icon=${l.refresh} .label=${e.defaultPattern} @click=${this.setDefaultPattern} .scale=${this.visualScale} .text=${e.defaultPattern} title=${e.defaultPattern??c}></calcite-action>`;return n`<div class="settings"><calcite-label .scale=${this.visualScale}>${e.format}${s}</calcite-label><calcite-label .for=${o} .scale=${this.visualScale}>${e.display}<div class="settings-form-group-horizontal"><calcite-input aria-controls=${t??c} class="pattern-input" id=${o??c} @calciteInputInput=${this.updateCurrentPattern} .scale=${this.visualScale} type=text .value=${r}></calcite-input>${a}</div></calcite-label><calcite-label .scale=${this.visualScale}>${e.preview}<calcite-input read-only .scale=${this.visualScale} type=text .value=${this.previewConversion?.displayCoordinate??void 0}></calcite-input></calcite-label></div>`}renderSingleFormatDropdown(){let{messages:e}=this;return n`<calcite-combobox data-testid=single-format-combobox .label=${e.selectFormat} @calciteComboboxChange=${this.handleFormatComboboxChange} .scale=${this.visualScale} selection-mode=single-persist>${this.formats?.map(i=>n`<calcite-combobox-item .description=${this.getFormatDescription(i)} .heading=${i.label.toUpperCase()} .selected=${this.conversions.at(0)?.format===i} .value=${i.name}></calcite-combobox-item>`)}</calcite-combobox>`}};y("arcgis-coordinate-conversion-next",m);return m},"applications/Components/unitUtils","applications/Components/getDefaultUnits","applications/Components/formatUtils","geometry/Point","widgets/CoordinateConversion/CoordinateConversionViewModel","widgets/CoordinateConversion/support/Conversion","applications/Components/QuantityFormatter",a,b,d,e)
2
+ import{a as M}from"./QE6XRKDY.js";import{a as z}from"./56KR4KYO.js";import{c as S}from"./G5VPRDMX.js";import e from"./AZYY5BTK.js";import{a as C}from"./WVGSH2QD.js";import d from"./ANSNQBZW.js";import b from"./XXA7VSON.js";import{g as k}from"./5DI7RMZ6.js";import"./Q7SMGP5R.js";import a from"./SYDGAFU5.js";import"./QUZTFUWM.js";import"./NCYBFT2Y.js";import{L as u,M as h,N as $,O as _,T as y,a as x,b as n,f as c,p as g,w as v}from"./WTBRS6C4.js";import"./H6RQVSYM.js";export default $arcgis.t(([{convertUnit:D},{getDefaultUnitForView:U},{hasDisplayProperties:b},I,O,f,A,,,,P])=>{var V=x`[class^=esri-icon-],[class*=" esri-icon-"]{speak:none;font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-style:normal;font-weight:var(--calcite-font-weight-normal);line-height:1;font-family:CalciteWebCoreIcons!important}.esri-icon-close:before{content:"";color:inherit}.esri-icon-drag-horizontal:before{content:"";color:inherit}.esri-icon-drag-vertical:before{content:"";color:inherit}.esri-icon-handle-horizontal:before{content:"";color:inherit}.esri-icon-handle-vertical:before{content:"";color:inherit}.esri-icon-check-mark:before{content:"";color:inherit}.esri-icon-left-triangle-arrow:before{content:"";color:inherit}.esri-icon-right-triangle-arrow:before{content:"";color:inherit}.esri-icon-down-arrow:before{content:"";color:inherit}.esri-icon-up-arrow:before{content:"";color:inherit}.esri-icon-overview-arrow-bottom-left:before{content:"";color:inherit}.esri-icon-overview-arrow-bottom-right:before{content:"";color:inherit}.esri-icon-overview-arrow-top-left:before{content:"";color:inherit}.esri-icon-overview-arrow-top-right:before{content:"";color:inherit}.esri-icon-maximize:before{content:"";color:inherit}.esri-icon-minimize:before{content:"";color:inherit}.esri-icon-checkbox-unchecked:before{content:"";color:inherit}.esri-icon-checkbox-checked:before{content:"";color:inherit}.esri-icon-radio-unchecked:before{content:"";color:inherit}.esri-icon-radio-checked:before{content:"";color:inherit}.esri-icon-up-arrow-circled:before{content:"";color:inherit}.esri-icon-down-arrow-circled:before{content:"";color:inherit}.esri-icon-left-arrow-circled:before{content:"";color:inherit}.esri-icon-right-arrow-circled:before{content:"";color:inherit}.esri-icon-zoom-out-fixed:before{content:"";color:inherit}.esri-icon-zoom-in-fixed:before{content:"";color:inherit}.esri-icon-refresh:before{content:"";color:inherit}.esri-icon-edit:before{content:"";color:inherit}.esri-icon-authorize:before{content:"";color:inherit}.esri-icon-map-pin:before{content:"";color:inherit}.esri-icon-blank-map-pin:before{content:"";color:inherit}.esri-icon-table:before{content:"";color:inherit}.esri-icon-plus:before{content:"";color:inherit}.esri-icon-minus:before{content:"";color:inherit}.esri-icon-beginning:before{content:"";color:inherit}.esri-icon-reverse:before{content:"";color:inherit}.esri-icon-pause:before{content:"";color:inherit}.esri-icon-play:before{content:"";color:inherit}.esri-icon-forward:before{content:"";color:inherit}.esri-icon-end:before{content:"";color:inherit}.esri-icon-erase:before{content:"";color:inherit}.esri-icon-up-down-arrows:before{content:"";color:inherit}.esri-icon-left:before{content:"";color:inherit}.esri-icon-right:before{content:"";color:inherit}.esri-icon-announcement:before{content:"";color:inherit}.esri-icon-notice-round:before{content:"";color:inherit}.esri-icon-notice-triangle:before{content:"";color:inherit}.esri-icon-home:before{content:"";color:inherit}.esri-icon-locate:before{content:"";color:inherit}.esri-icon-expand:before{content:"";color:inherit}.esri-icon-collapse:before{content:"";color:inherit}.esri-icon-layer-list:before{content:"";color:inherit}.esri-icon-basemap:before{content:"";color:inherit}.esri-icon-globe:before{content:"";color:inherit}.esri-icon-applications:before{content:"";color:inherit}.esri-icon-arrow-up-circled:before{content:"";color:inherit}.esri-icon-arrow-down-circled:before{content:"";color:inherit}.esri-icon-arrow-left-circled:before{content:"";color:inherit}.esri-icon-arrow-right-circled:before{content:"";color:inherit}.esri-icon-minus-circled:before{content:"";color:inherit}.esri-icon-plus-circled:before{content:"";color:inherit}.esri-icon-add-attachment:before{content:"";color:inherit}.esri-icon-attachment:before{content:"";color:inherit}.esri-icon-calendar:before{content:"";color:inherit}.esri-icon-close-circled:before{content:"";color:inherit}.esri-icon-browser:before{content:"";color:inherit}.esri-icon-collection:before{content:"";color:inherit}.esri-icon-comment:before{content:"";color:inherit}.esri-icon-configure-popup:before{content:"";color:inherit}.esri-icon-contact:before{content:"";color:inherit}.esri-icon-dashboard:before{content:"";color:inherit}.esri-icon-deny:before{content:"";color:inherit}.esri-icon-description:before{content:"";color:inherit}.esri-icon-directions:before{content:"";color:inherit}.esri-icon-directions2:before{content:"";color:inherit}.esri-icon-documentation:before{content:"";color:inherit}.esri-icon-duplicate:before{content:"";color:inherit}.esri-icon-review:before{content:"";color:inherit}.esri-icon-environment-settings:before{content:"";color:inherit}.esri-icon-error:before{content:"";color:inherit}.esri-icon-error2:before{content:"";color:inherit}.esri-icon-experimental:before{content:"";color:inherit}.esri-icon-feature-layer:before{content:"";color:inherit}.esri-icon-filter:before{content:"";color:inherit}.esri-icon-grant:before{content:"";color:inherit}.esri-icon-group:before{content:"";color:inherit}.esri-icon-key:before{content:"";color:inherit}.esri-icon-labels:before{content:"";color:inherit}.esri-icon-tag:before{content:"";color:inherit}.esri-icon-layers:before{content:"";color:inherit}.esri-icon-left-arrow:before{content:"";color:inherit}.esri-icon-right-arrow:before{content:"";color:inherit}.esri-icon-link-external:before{content:"";color:inherit}.esri-icon-link:before{content:"";color:inherit}.esri-icon-loading-indicator:before{content:"";color:inherit}.esri-icon-maps:before{content:"";color:inherit}.esri-icon-marketplace:before{content:"";color:inherit}.esri-icon-media:before{content:"";color:inherit}.esri-icon-media2:before{content:"";color:inherit}.esri-icon-menu:before{content:"";color:inherit}.esri-icon-mobile:before{content:"";color:inherit}.esri-icon-phone:before{content:"";color:inherit}.esri-icon-navigation:before{content:"";color:inherit}.esri-icon-pan:before{content:"";color:inherit}.esri-icon-printer:before{content:"";color:inherit}.esri-icon-pie-chart:before{content:"";color:inherit}.esri-icon-chart:before{content:"";color:inherit}.esri-icon-line-chart:before{content:"";color:inherit}.esri-icon-question:before{content:"";color:inherit}.esri-icon-resend-invitation:before{content:"";color:inherit}.esri-icon-rotate:before{content:"";color:inherit}.esri-icon-save:before{content:"";color:inherit}.esri-icon-settings:before{content:"";color:inherit}.esri-icon-settings2:before{content:"";color:inherit}.esri-icon-share:before{content:"";color:inherit}.esri-icon-sign-out:before{content:"";color:inherit}.esri-icon-support:before{content:"";color:inherit}.esri-icon-user:before{content:"";color:inherit}.esri-icon-time-clock:before{content:"";color:inherit}.esri-icon-trash:before{content:"";color:inherit}.esri-icon-upload:before{content:"";color:inherit}.esri-icon-download:before{content:"";color:inherit}.esri-icon-zoom-in-magnifying-glass:before{content:"";color:#6e6e6e}.esri-icon-search:before{content:"";color:inherit}.esri-icon-zoom-out-magnifying-glass:before{content:"";color:#6e6e6e}.esri-icon-locked:before{content:"";color:inherit}.esri-icon-unlocked:before{content:"";color:inherit}.esri-icon-favorites:before{content:"";color:inherit}.esri-icon-compass:before{content:"";color:inherit}.esri-icon-down:before{content:"";color:inherit}.esri-icon-up:before{content:"";color:inherit}.esri-icon-chat:before{content:"";color:inherit}.esri-icon-dock-bottom:before{content:"";color:inherit}.esri-icon-dock-left:before{content:"";color:inherit}.esri-icon-dock-right:before{content:"";color:inherit}.esri-icon-organization:before{content:"";color:inherit}.esri-icon-north-navigation:before{content:"";color:inherit}.esri-icon-locate-circled:before{content:"";color:inherit}.esri-icon-dial:before{content:"";color:inherit}.esri-icon-polygon:before{content:"";color:inherit}.esri-icon-polyline:before{content:"";color:inherit}.esri-icon-visible:before{content:"";color:inherit}.esri-icon-non-visible:before{content:"";color:inherit}.esri-icon-link-vertical:before{content:"";color:inherit}.esri-icon-unlocked-link-vertical:before{content:"";color:inherit}.esri-icon-link-horizontal:before{content:"";color:inherit}.esri-icon-unlocked-link-horizontal:before{content:"";color:inherit}.esri-icon-swap:before{content:"";color:inherit}.esri-icon-cta-link-external:before{content:"";color:inherit}.esri-icon-reply:before{content:"";color:inherit}.esri-icon-public:before{content:"";color:inherit}.esri-icon-share2:before{content:"";color:inherit}.esri-icon-launch-link-external:before{content:"";color:inherit}.esri-icon-rotate-back:before{content:"";color:inherit}.esri-icon-pan2:before{content:"";color:inherit}.esri-icon-tracking:before{content:"";color:inherit}.esri-icon-expand2:before{content:"";color:inherit}.esri-icon-arrow-down:before{content:"";color:inherit}.esri-icon-arrow-up:before{content:"";color:inherit}.esri-icon-hollow-eye:before{content:"";color:inherit}.esri-icon-play-circled:before{content:"";color:inherit}.esri-icon-volume-off:before{content:"";color:inherit}.esri-icon-volume-on:before{content:"";color:inherit}.esri-icon-bookmark:before{content:"";color:inherit}.esri-icon-lightbulb:before{content:"";color:inherit}.esri-icon-sketch-rectangle:before{content:"";color:inherit}.esri-icon-north-navigation-filled:before{content:"";color:inherit}.esri-icon-default-action:before{content:"";color:inherit}.esri-icon-undo:before{content:"";color:inherit}.esri-icon-redo:before{content:"";color:inherit}.esri-icon-cursor:before{content:"";color:inherit}.esri-icon-cursor-filled:before{content:"";color:inherit}.esri-icon-measure:before{content:"";color:inherit}.esri-icon-measure-line:before{content:"";color:inherit}.esri-icon-measure-area:before{content:"";color:inherit}.esri-icon-legend:before{content:"";color:inherit}.esri-icon-sliders:before{content:"";color:inherit}.esri-icon-sliders-horizontal:before{content:"";color:inherit}.esri-icon-cursor-marquee:before{content:"";color:inherit}.esri-icon-lasso:before{content:"";color:inherit}.esri-icon-elevation-profile:before{content:"";color:inherit}.esri-icon-slice:before{content:"";color:inherit}.esri-icon-line-of-sight:before{content:"";color:inherit}.esri-icon-zoom-to-object:before{content:"";color:inherit}.esri-icon-urban-model:before{content:"";color:inherit}.esri-icon-measure-building-height-shadow:before{content:"";color:inherit}.esri-icon-partly-cloudy:before{content:"";color:inherit}.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}.esri-widget{box-sizing:border-box;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget *,.esri-widget :before,.esri-widget :after{box-sizing:inherit}.esri-widget.esri-widget--disabled>*{opacity:.4;pointer-events:none}.esri-widget.esri-widget--compact{--esri-widget-padding-y: 0;--esri-widget-padding-x: 0}.esri-widget__anchor{color:var(--calcite-color-text-2)}.esri-widget__anchor:hover{color:var(--calcite-color-text-3)}.esri-widget__anchor:hover,.esri-widget__anchor:focus{text-decoration:underline}.esri-widget__anchor--disabled{opacity:.4;pointer-events:none}.esri-widget__header{background-color:var(--calcite-color-foreground-1);flex:1 0 100%;justify-content:space-between;align-items:center;width:100%;min-height:48px;padding:12px 0 12px 15px;display:flex}.esri-widget__heading{word-break:break-word}.esri-widget__header .esri-widget__heading{width:calc(100% - 48px);text-align:initial;color:var(--calcite-color-text-1);align-items:center;margin:0;padding:0;display:flex}.esri-widget__header-button{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);border:none;flex:0 0 48px;justify-content:center;align-self:stretch;align-items:center;width:48px;padding:0;display:flex}.esri-widget__footer{background-color:var(--calcite-color-foreground-1);justify-content:center;align-items:center;width:100%;min-height:48px;display:flex}.esri-widget__footer-pagination{color:var(--calcite-color-text-2);justify-content:space-between;align-items:center;display:flex}.esri-widget__footer-pagination-previous-button,.esri-widget__footer-pagination-next-button{cursor:pointer;background-color:var(--calcite-color-foreground-1);border:0;margin:0 7px;padding:12px 15px;transition:background-color .125s ease-in-out}.esri-widget__footer-pagination-previous-button:hover,.esri-widget__footer-pagination-previous-button:focus,.esri-widget__footer-pagination-next-button:hover,.esri-widget__footer-pagination-next-button:focus{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1)}.esri-menu{visibility:hidden;z-index:1;background-clip:padding;background-color:var(--calcite-color-foreground-1);background-clip:padding-box;width:100%;max-height:0;margin:2px 0 0;padding:0;font-size:var(--calcite-font-size);line-height:var(--calcite-spacing-xl);position:absolute;top:100%;left:0;overflow:hidden;box-shadow:0 1px 2px #0000004d}.esri-menu .esri-menu__header{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-inverse);padding:6px 12px}.esri-menu__list{margin:0;padding:0;list-style:none}.esri-menu__list-item{cursor:pointer;border-top:1px solid #adadad4d;border-left:3px solid #0000;padding:.8em 1em}.esri-menu__list-item [class^=esri-icon-],.esri-menu__list-item [class*=" esri-icon-"]{padding-right:2.8px}.esri-menu__list-item:first-child{border-top:none}.esri-menu__list-item--focus,.esri-menu__list-item:hover,.esri-menu__list-item:focus{background-color:var(--calcite-color-foreground-1)}.esri-menu__list-item:active{background-color:var(--calcite-color-foreground-current)}.esri-menu__list-item--active,.esri-menu__list-item--active:hover,.esri-menu__list-item--active:focus{background-color:var(--calcite-color-foreground-1);border-left-color:var(--calcite-color-brand)}.esri-widget__table{border-collapse:collapse;color:var(--calcite-color-text-1);border:none;width:100%;line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget__table tr:nth-child(odd){background-color:var(--calcite-color-transparent)}.esri-widget__table tr:nth-child(2n){background-color:var(--calcite-color-transparent-press)}.esri-widget__table tr a{color:var(--calcite-color-text-2)}.esri-widget__table tr a:hover,.esri-widget__table tr a:focus{color:var(--calcite-color-text-1)}.esri-widget__table tr td,.esri-widget__table tr th{vertical-align:top;word-break:break-word;padding:.5em .7em;font-size:var(--calcite-font-size-sm);font-weight:var(--calcite-font-weight-regular)}.esri-widget__table tr th{text-align:left;border-right:3px solid #0000000d;width:50%}.esri-widget__table tr td{width:50%}.esri-input{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1);border:1px solid #959595;font-size:var(--calcite-font-size)}.esri-input::-ms-clear{display:none}.esri-input::placeholder{opacity:1;color:var(--calcite-color-text-2)}.esri-input:placeholder-shown{text-overflow:ellipsis}.esri-input[type=text],.esri-input[type=password],.esri-input[type=number]{height:32px;padding:0 .5em}calcite-combobox.esri-input{border:none}.esri-widget__content--empty{text-align:center;color:var(--calcite-color-border-input);flex-flow:column wrap;align-items:center;padding:18px 22px;display:flex}.esri-widget__content--empty h1.esri-widget__heading,.esri-widget__content--empty h2.esri-widget__heading,.esri-widget__content--empty h3.esri-widget__heading,.esri-widget__content--empty h4.esri-widget__heading,.esri-widget__content--empty h5.esri-widget__heading{font-weight:var(--calcite-font-weight-regular)}.esri-widget__content-illustration--empty{width:128px;padding:1rem 0}.esri-widget__content-icon--empty{width:32px;padding:.5rem 0}.esri-select{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background:var(--calcite-color-foreground-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -8 32 32' width='32' height='32'%3E%3Cpath d='M8 11.207l-4-4V5.793l4 4 4-4v1.414z' fill='%23adadad' fillrule='nonzero'/%3E%3C/svg%3E") 100% no-repeat;border:1px solid #959595;border-radius:0;width:100%;height:32px;margin:0;padding:0 .5em;font-family:inherit;font-size:.85em;display:block}.esri-select[disabled]{cursor:auto}.esri-select::-ms-expand{display:none}.esri-disabled a,.esri-disabled [role=menu],.esri-disabled [role=checkbox],.esri-disabled [class^=esri-icon-],.esri-disabled [class*=" esri-icon-"]{color:var(--calcite-color-text-3)}.keynav-mode .esri-widget:focus,.keynav-mode .esri-widget :focus{z-index:1;outline-offset:2px;outline:2px solid #adadad}.esri-widget__loader-animation{border:.15em solid #adadad4d;border-top-color:var(--calcite-color-border-input);border-radius:100%;width:1em;height:1em;font-size:var(--calcite-font-size-md);animation:1.25s linear infinite esri-rotate;display:block;transform:translateZ(0)}:dir(rtl) .esri-widget__table th{text-align:right;border-left:3px solid #0000000d;border-right:none}:dir(rtl) .esri-select{background-position:0}:dir(rtl) .esri-menu__list-item{border-left:none;border-right:3px solid #0000}:dir(rtl) .esri-menu__list-item [class^=esri-icon-],:dir(rtl) .esri-menu__list-item [class*=" esri-icon-"]{padding-left:2px;padding-right:0}:dir(rtl) .esri-menu__list-item--active{border-right-color:var(--calcite-color-brand)}.esri-icon-font-fallback-text{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.esri-rotating{animation:1.25s linear infinite esri-rotate;transform:translateZ(0)}.esri-clearfix:before,.esri-clearfix:after{content:" ";display:table}.esri-clearfix:after{clear:both}.esri-interactive{cursor:pointer}.esri-hidden{display:none!important}.esri-invisible{visibility:hidden!important}.esri-offscreen{position:absolute;top:-999em;left:-999em}.esri-match-height{flex-direction:column;flex:auto;display:flex;overflow:hidden}.esri-button{box-sizing:border-box;cursor:pointer;white-space:normal;word-break:normal;color:var(--calcite-color-text-1);background-color:var(--calcite-color-status-info);border:var(--calcite-spacing-px) solid var(--calcite-color-status-info);justify-content:center;align-items:center;width:100%;min-height:var(--calcite-spacing-xxxl);padding:6px 7px;font-family:inherit;font-size:var(--calcite-font-size);transition:background-color .125s ease-in-out,border .125s ease-in-out;display:flex;overflow:hidden;&:hover{color:var(--calcite-color-text-1);background-color:var(--calcite-color-status-info-hover);border:var(--calcite-spacing-px) solid var(--calcite-color-status-info-hover)}}.esri-button:hover{color:var(--calcite-color-text-1);background-color:var(--calcite-color-text-2);border:1px solid var(--calcite-color-text-2)}.esri-button.esri-button--small{min-height:var(--calcite-spacing-xl);font-size:var(--calcite-font-size-sm)}.esri-button.esri-button--half{width:50%;display:inline-block}.esri-button.esri-button--third{width:33%;display:inline-block}.esri-button--secondary{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1)}.esri-button--tertiary{color:var(--calcite-color-brand);background-color:var(--calcite-color-transparent);border-color:var(--calcite-color-transparent)}.esri-button--tertiary:hover{color:var(--calcite-color-brand-hover);background-color:var(--calcite-color-foreground-2);border-color:var(--calcite-color-transparent)}.esri-button--disabled{opacity:.4;pointer-events:none}.esri-button--drill-in{outline-offset:-4px;cursor:pointer;text-align:unset;background-color:var(--calcite-color-foreground-1);border:none;border-radius:2px;justify-content:space-between;align-items:center;margin:var(--calcite-spacing-md) 7px;padding:var(--calcite-spacing-md) 7px;text-decoration:none;transition:background-color .125s ease-in-out;display:flex;box-shadow:0 0 0 1px #adadad4d}.esri-button--drill-in:hover,.esri-button--drill-in:focus{background-color:var(--calcite-color-foreground-2)}.esri-button--drill-in__title{font-size:var(--calcite-font-size)}.esri-button--drill-in [class^=esri-icon-],.esri-button--drill-in [class*=" esri-icon-"]{padding:0 7px}.esri-widget--button{cursor:pointer;text-align:center;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);flex-flow:row;justify-content:center;align-items:center;width:var(--calcite-spacing-xxxl);height:var(--calcite-spacing-xxxl);margin:0;padding:0;font-size:var(--calcite-font-size);transition:background-color .125s ease-in-out;display:flex;overflow:hidden}.esri-widget--button:is(calcite-button):not(:hover){--calcite-icon-color: var(--calcite-color-text-3)}.esri-widget--button:not([appearance]),.esri-widget--button[appearance=solid]{--calcite-color-foreground-3: var(--calcite-color-foreground-1)}.esri-widget--button:is(calcite-button){--calcite-offset-invert-focus: 1}.esri-widget--button calcite-loader[inline]{margin:auto}.esri-button--secondary{color:var(--calcite-color-brand);background-color:var(--calcite-color-foreground-1);&:hover{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-status-info);border:1px solid var(--calcite-color-status-info)}}:host{background-color:var(--calcite-color-foreground-1);color:var(--calcite-color-text-2);padding-block-start:var(--arcgis-coordinate-conversion-padding-y);width:var(--arcgis-coordinate-conversion-width, 280px)}.root{background-color:var(--calcite-color-foreground-1)}calcite-alert{--calcite-alert-offset-size: var(--calcite-spacing-sm)}calcite-notice[open]{padding:var(--calcite-spacing-sm)}calcite-block{--calcite-block-content-space: 0;margin:0;padding-inline:var(--arcgis-coordinate-conversion-padding-x)}calcite-block:last-of-type{padding-block-end:var(--arcgis-coordinate-conversion-padding-y, var(--calcite-spacing-sm))}.conversion-popover{--calcite-popover-max-size-x: var(--arcgis-coordinate-conversion-settings-block-size, 250px)}.go-to-input-holder{display:flex}.go-to-input-holder calcite-input{flex:1}.conversions-block{border:none;padding-bottom:var(--calcite-spacing-sm)}.live-mode-block{--calcite-label-margin-bottom: 0;padding-block:var(--calcite-spacing-sm);padding-inline:var(--arcgis-coordinate-conversion-padding-x, var(--calcite-spacing-sm))}.live-mode-label{width:fit-content;margin-inline-start:auto}.font-size-small{font-size:var(--calcite-font-size--2)}.format-radio-label{display:flex;flex-direction:column}.radio-label{font-weight:var(--calcite-font-weight-medium);font-size:var(--calcite-font-size--2)}.radio-description{font-weight:var(--calcite-font-weight-light);font-size:var(--calcite-font-size--3)}.unit-select-panel{--calcite-panel-space: var(--calcite-spacing-md)}.popover-footer{padding:var(--calcite-spacing-sm);border-top:1px solid var(--calcite-color-border-3)}.input-form-group{display:flex;flex-direction:column;align-items:flex-start;padding:var(--calcite-spacing-sm)}.add-conversion-trigger{margin-inline-start:var(--calcite-spacing-sm);margin-block-start:var(--calcite-spacing-sm)}.input-form-group calcite-label{width:100%}.settings{padding:var(--calcite-spacing-md);display:flex;flex-direction:column;align-items:center;background-color:var(--calcite-color-foreground-1);width:calc(var(--arcgis-coordinate-conversion-settings-block-size, 250px) - (2 * var(--calcite-spacing-md)) - 2px)}.settings calcite-label{width:100%}.settings calcite-input{flex:1}.settings-form-group-horizontal{display:flex}`,q=2500,B=new I({x:0,y:0}),l={copy:"copy",gear:"gear",goTo:"zoom-to-object",lightbulb:"lightbulb",plus:"plus",refresh:"refresh",warning:"exclamation-mark-triangle"},j=P(O),m=class extends ${constructor(){super(...arguments),this._alertTimer=-1,this._conversionPopoverMap=new Map,this._coordinateInput=u(),this.messages=C({name:"coordinate-conversion-next",blocking:!0}),this._multipleConversionsDisabled=!1,this.quantityFormatter=new A,this.viewModel=j(this),this.clearAlertTimeout=()=>{window.clearTimeout(this._alertTimer),this.alertProperties={...this.alertProperties,open:!1}},this.onElevationPopoverTriggerMount=e=>{this._elevationPopoverTrigger=e},this.onFormatPopoverTriggerMount=e=>{this._formatsPopoverTrigger=e},this.handleFormatComboboxChange=e=>{let i=e.target.selectedItems[0].value,o=this.formats.find(t=>t.name===i);if(o){let t=this.activeConversion??this.conversions.at(0)??null,r=new f({format:o});t&&this.transferConversionPopoverState(t,r),this.conversions.splice(0,1,r),this.activeConversion=r,this.setPreviewConversion()}},this.alertProperties={kind:"brand",message:null,title:null,open:!1},this.elevationPopoverOpen=!1,this.formatsPopoverOpen=!1,this.invalidInput=!1,this.view=this.viewModel.view,this.autoDestroyDisabled=!1,this.conversions=this.viewModel.conversions,this.currentLocation=this.viewModel.currentLocation,this.formats=this.viewModel.formats,this.goToOverride=this.viewModel.goToOverride,this.headingLevel=4,this.hideCaptureSection=!1,this.hideInputSection=!1,this.hideSettingsButton=!1,this.icon="coordinate-system",this.label=this.messages.componentLabel,this.locationSymbol=this.viewModel.locationSymbol,this.mode=this.viewModel.mode,this.removeLeadingZeros=this.viewModel.removeLeadingZeros,this.visualScale="s",this.showElevation=!1,this.state=this.viewModel.state,this.storageType=this.viewModel.storageType,this.arcgisConversionChange=v(),this.arcgisPropertyChange=k()("currentLocation","state","mode","verticalUnit"),this.arcgisReady=v(),this.renderConversionView=(e,i)=>{let{messages:o}=this,{format:t}=e,r=t?.label??"",s=i===0&&!e.displayCoordinate?o.noLocation:e.displayCoordinate,a=this._renderConversionActions(e,s);return z(e?.format?.name,n`<calcite-list-item class="conversion-list-item" .description=${r.toUpperCase()} .label=${this.getDisplayCoordinate(s)} .scale=${this.visualScale} title=${s??void 0??c}>${a}</calcite-list-item>`)},this.renderLiveModeSection=()=>{let{messages:e}=this,i=this.mode==="idle"?this.viewModel.mode:this.mode;return n`<calcite-block class="live-mode-block" .disabled=${this.disabled} expanded .headingLevel=${this.headingLevel} .label=${e.captureMode} .scale=${this.visualScale}><calcite-label alignment=end class="live-mode-label" layout=inline .scale=${this.visualScale}>${e.captureMode}<calcite-switch .checked=${i==="capture"} @calciteSwitchChange=${this.toggleMode}></calcite-switch></calcite-label></calcite-block>`}}static{this.properties={activeConversion:16,alertProperties:16,defaultMeasurementSystem:16,disabled:16,displayedElevation:16,elevationPopoverOpen:16,formatsPopoverOpen:16,invalidInput:16,inputFormat:16,previewConversion:16,view:0,autoDestroyDisabled:5,conversions:0,currentLocation:0,formats:0,goToOverride:0,headingLevel:9,hideCaptureSection:7,hideInputSection:7,hideSettingsButton:7,icon:1,ignoreCoordinatePrecision:5,label:1,locationSymbol:0,mode:3,multipleConversionsDisabled:7,referenceElement:1,removeLeadingZeros:7,visualScale:1,showElevation:7,state:32,storageDisabled:7,storageType:1,verticalUnit:1}}static{this.styles=V}get defaultMeasurementSystem(){return this.view?.ready?U(this.view):"metric"}get disabled(){return this.viewModel.state==="disabled"}get displayedElevation(){let{currentLocation:e,verticalUnit:i,messages:o}=this;if(e?.z===void 0||e.z===null)return o.noElevation;{let t=D(e.z,"meters",i);return this.quantityFormatter.formatLength({value:t,unit:i,type:"length"},2,"plural")}}get ignoreCoordinatePrecision(){return!this.viewModel.calculateCoordinatePrecision}set ignoreCoordinatePrecision(e){this.viewModel.calculateCoordinatePrecision=!e}get multipleConversionsDisabled(){return this._multipleConversionsDisabled}set multipleConversionsDisabled(e){e&&this.conversions.splice(1,this.conversions.length-1),this._multipleConversionsDisabled=e}get storageDisabled(){return!this.viewModel.storageEnabled}set storageDisabled(e){this.viewModel.storageEnabled=!e}get verticalUnit(){return this.viewModel.verticalUnit??(this.defaultMeasurementSystem==="imperial"?"feet":"meters")}set verticalUnit(e){this.viewModel.verticalUnit=e}async destroy(){this.clearAlertTimeout(),await this.manager.destroy()}async reverseConvert(e,i){return await this.viewModel.reverseConvert(e,i)}load(){this.manager.onLifecycle(()=>[this.conversions.on("change",()=>this.arcgisConversionChange.emit())])}willUpdate(e){if(e.has("mode")&&this.mode==="idle"){this.viewModel.setLocation(this.currentLocation);return}if(e.has("currentLocation")){let i=e.get("currentLocation");this.mode==="idle"&&!this.currentLocation?.equals(i)&&this.viewModel.setLocation(this.currentLocation)}}closeAllPopovers(){for(let e of this._conversionPopoverMap.values())e.open=!1;this.elevationPopoverOpen=!1,this.formatsPopoverOpen=!1,this.requestUpdate()}async copyToClipboard(e){e&&(e=e.replace(/‎/gu,""),await navigator.clipboard.writeText(e))}findSettingsFormat(){return this.activeConversion?.format||this.conversions.reduceRight((e,i)=>{let o=i.format;return o&&b(o)?o:e},null)||this.formats.find(e=>b(e))||null}getConversionPopoverState(e){let i=this._conversionPopoverMap.get(e);return i||(i={triggerRef:u(),open:!1},this._conversionPopoverMap.set(e,i)),i}getDisplayCoordinate(e){return e?e.includes(",")?e.replace(/, /gu,",\xA0\u200B").replace(/ /gu,"\xA0"):e:"\u200B"}getFormatDescription(e){let{messages:i}=this;return i.formatDescriptions[e.name]??i.formatDescriptions.custom}getId(e){return`arcgis-coordinate-conversion-${e}`}openConversionSettings(e,i){let o=this.getConversionPopoverState(e),t=this.activeConversion!==e||!o.open;this.closeAllPopovers(),o.open=t,this._conversionPopoverTrigger=t?i.currentTarget:void 0,this.activeConversion=t?e:void 0,t&&this.setPreviewConversion(),this.requestUpdate(),i.stopPropagation()}async processUserInput(e,i,o){let{viewModel:t}=this;try{let r=await this._reverseConvert(e,i);if(r)o&&t.goToLocation(r).catch(s=>{g(this)(s),this.showAlertMessage(null,this.messages.locationOffBasemap,"warning")});else throw new Error("failed to process user input");this.mode==="capture"?t.resume():this.mode="capture",this.invalidInput=!1,this.currentLocation=r??void 0,t.setLocation(r)}catch(r){g(this)(r),this.showAlertMessage(null,this.messages.invalidCoordinate,"warning"),this.invalidInput=!0}}async processUserKeyboardInput(e){let{key:i}=e;if(i==="Enter"){let o=this.inputFormat||this.conversions.at(0)?.format,t=this._coordinateInput.value?.value;if(!o||!t)return;await this.processUserInput(t,o,!0)}else this.invalidInput=!1}async processUserMouseInput(e){let i=this.inputFormat||this.conversions.at(0)?.format,o=this._coordinateInput.value?.value;!i||!o||await this.processUserInput(o,i,e)}async _reverseConvert(e,i){return await i.reverseConvert(e)}setDefaultPattern(e){e.stopPropagation();let i=this.findSettingsFormat();i?.defaultPattern&&(i.currentPattern=i.defaultPattern)}setInputFormat(e){let i=e.target.selectedOption.value;i!==null&&(this.inputFormat=i)}setPreviewConversion(){let e=this.findSettingsFormat(),i=this.viewModel;if(e){let o=this.conversions.find(t=>t.format===e);this.previewConversion=new f({format:e,position:{location:this.currentLocation,coordinate:o?.position?.coordinate}}),this.previewConversion.position?.coordinate||i.previewConversion(this.previewConversion,i.currentLocation??B)}}showAlertMessage(e,i,o,t=q){this.alertProperties={...this.alertProperties,title:e,message:i,kind:o,open:!0},window.clearTimeout(this._alertTimer),this._alertTimer=window.setTimeout(()=>{this.alertProperties={...this.alertProperties,open:!1}},t)}toggleConversion(e){let i=e.target,o=this.formats.find(t=>t.name===i.getAttribute("data-format"));if(o){let t=this.conversions.find(r=>r.format===o);if(t){if(this.conversions.length>1){let r=this._conversionPopoverMap.get(t);r&&(r.open=!1,this._conversionPopoverMap.delete(t)),this.activeConversion===t&&(this.activeConversion=void 0),this.conversions.remove(t)}}else{let r=new f({format:o});this.conversions.add(r)}}}toggleMode(){this.mode=this.viewModel.mode==="live"?"capture":"live"}transferConversionPopoverState(e,i){let o=this.getConversionPopoverState(e),t=this.getConversionPopoverState(i);t.open=o.open,this._conversionPopoverMap.delete(e)}updateCurrentPattern(e){e.stopPropagation();let i=e.target,o=this.findSettingsFormat();o&&(o.currentPattern=i.value)}render(){let{headingLevel:e}=this,i=this.renderConversionPopover();return n`<calcite-panel class=root .headingLevel=${e} .scale=${this.visualScale}>${this.renderConversionsView()}${this.renderAlert()}</calcite-panel>${i}`}renderAlert(){let{messages:e}=this,{open:i,message:o,title:t,kind:r}=this.alertProperties;return n`<calcite-alert class="alert" .kind=${r} .label=${e.alertLabel} @calciteAlertClose=${this.clearAlertTimeout} .open=${i} placement=top .scale=${this.visualScale} slot=alerts>${t?n`<div slot=title>${t}</div>`:null}${o?n`<div slot=message>${o}</div>`:null}</calcite-alert>`}_renderConversionActions(e,i){let{messages:o}=this,t=this.getConversionPopoverState(e),r=o.settingsTitleWithFormat.replace("{formatName}",e.format?.name?.toUpperCase()??""),s=e.displayCoordinate&&this.mode!=="live";return n`<calcite-action-group layout=horizontal .scale=${this.visualScale} slot=actions-end>${s?n`<calcite-action .icon=${l.copy} .label=${o.copyLabel} @click=${()=>this.copyToClipboard(i)} .scale=${this.visualScale} .text=${o.copyLabel} title=${o.copyLabel??c}></calcite-action>`:null}${this.hideSettingsButton?null:n`<calcite-action data-format=${e.format?.name??c} .icon=${l.gear} .label=${r} @click=${a=>this.openConversionSettings(e,a)} .scale=${this.visualScale} .text=${r} title=${r??c} ${h(t.triggerRef)}></calcite-action>`}</calcite-action-group>`}renderConversionOptions(e,i){return e.map(o=>n`<calcite-option .label=${o.label.toUpperCase()} .selected=${o===i} .value=${o}>${o.label}</calcite-option>`)}renderConversionPopover(){let{activeConversion:e,messages:i}=this;if(!e)return null;let o=this.getConversionPopoverState(e),t=i.settingsTitleWithFormat.replace("{formatName}",e.format?.name?.toUpperCase()??"");return this.renderPopover({class:"conversion-popover",content:this.renderSettingsView(),getPopoverOpenProperty:()=>o.open,heading:t,includeFooter:!0,label:t,setPopoverOpenProperty:r=>{o.open=r,r||(this._conversionPopoverTrigger=void 0,this.activeConversion=void 0),this.requestUpdate()},trigger:null,triggerElement:o.triggerRef.value??this._conversionPopoverTrigger??void 0})}renderConversionsView(){if(!this.conversions)return;let{messages:e,multipleConversionsDisabled:i}=this,o=(i?this.conversions.slice(0,1):this.conversions).map(this.renderConversionView).reverse(),t=this.showElevation?this.renderElevation():null,r=this.hideCaptureSection?null:this.renderLiveModeSection(),s=this.hideInputSection?null:this.renderCoordinateInputView(),a=this.multipleConversionsDisabled?null:this.renderFormatDropdown(),d=this.disabled?n`<calcite-notice .icon=${l.lightbulb} .open=${this.disabled} width=full><div class="font-size-small" slot=message>${e.noBasemap}</div></calcite-notice>`:null;return n`${r}${d}${s}<calcite-block class="conversions-block" .disabled=${this.disabled} expanded .heading=${e.coordinates} .headingLevel=${this.headingLevel} .scale=${this.visualScale}><calcite-list interaction-mode=static .label=${e.coordinates} .scale=${this.visualScale}>${o}</calcite-list>${a}</calcite-block>${t}`}renderCoordinateInputView(){let{messages:e}=this,i=this.inputFormat??this.conversions.at(0)?.format,o=this.getId("coordinate-input"),t=this.renderConversionOptions(this.formats,i??void 0),r=n`<calcite-action .icon=${l.goTo} .label=${e.convertAndGoTo} @click=${()=>this.processUserMouseInput(!0)} .scale=${this.visualScale} .text=${e.convertAndGoTo} title=${e.convertAndGoTo??c}></calcite-action>`;return n`<calcite-block collapsible data-testid=input-block .disabled=${this.disabled} .heading=${e.input} .headingLevel=${this.headingLevel} .scale=${this.visualScale}><div class="input-form-group"><calcite-label .scale=${this.visualScale}>${e.inputFormat}<calcite-select aria-controls=${o??c} class="input-select" .label=${e.inputFormat} @calciteSelectChange=${this.setInputFormat} .scale=${this.visualScale}>${t}</calcite-select></calcite-label><calcite-label .scale=${this.visualScale}>${e.inputCoordTitle}<div class="go-to-input-holder"><calcite-input class="coordinate-input" data-format=${i??c} data-testid=coordinate-input id=${o??c} @keydown=${this.processUserKeyboardInput} .placeholder=${e.inputCoordTitle} required .scale=${this.visualScale} .status=${this.invalidInput?"invalid":"idle"} ${h(this._coordinateInput)}></calcite-input>${r}</div></calcite-label><calcite-button appearance=outline data-testid=convert-button kind=neutral @click=${()=>this.processUserMouseInput(!1)} type=button .scale=${this.visualScale} width=auto>${e.convert}</calcite-button></div></calcite-block>`}renderElevation(){let{messages:e}=this,i=this.displayedElevation??e.noElevation,o=this.renderElevationActions(),t=this.hideSettingsButton?null:this.renderElevationSettingsDropdown();return n`<calcite-block .disabled=${this.disabled} expanded .heading=${e.elevation} .headingLevel=${this.headingLevel} .scale=${this.visualScale}><calcite-list interaction-mode=static .label=${e.elevation} .scale=${this.visualScale}><calcite-list-item class="elevation-list-item" .label=${i} .scale=${this.visualScale} title=${i??c}>${o}</calcite-list-item></calcite-list>${t}</calcite-block>`}renderElevationActions(){let{messages:e}=this,i=this.currentLocation?.z!==void 0&&this.mode!=="live",o=this.displayedElevation??e.noElevation;return n`<calcite-action-group layout=horizontal .scale=${this.visualScale} slot=actions-end>${i?n`<calcite-action .icon=${l.copy} .label=${e.copyElevationLabel} @click=${()=>i&&this.copyToClipboard(o)} .scale=${this.visualScale} .text=${e.copyElevationLabel} title=${e.copyElevationLabel??c}></calcite-action>`:null}${this.hideSettingsButton?null:n`<calcite-action .icon=${l.gear} .label=${e.selectElevationUnit} .scale=${this.visualScale} .text=${e.selectElevationUnit} title=${e.selectElevationUnit??c} ${h(this.onElevationPopoverTriggerMount)}></calcite-action>`}</calcite-action-group>`}renderElevationSettingsDropdown(){let{messages:e}=this,i=n`<arcgis-unit-radio-button-group @arcgisUnitSelectChange=${o=>this.verticalUnit=o.detail} .options=${S} .name=${e.selectElevationUnit} .scale=${this.visualScale} .value=${this.verticalUnit}></arcgis-unit-radio-button-group>`;return this.renderPopover({content:i,closeOnEnter:!0,getPopoverOpenProperty:()=>this.elevationPopoverOpen,includeFooter:!1,label:e.selectElevationUnit,setPopoverOpenProperty:o=>this.elevationPopoverOpen=o,trigger:null,triggerElement:this._elevationPopoverTrigger})}renderFormatDropdown(){let{messages:e}=this,i=n`<calcite-list .label=${e.addConversion} .scale=${this.visualScale} selection-mode=multiple>${M(this.formats,t=>t,t=>{let r=!!this.conversions.find(a=>a.format===t),s=this.getFormatDescription(t);return n`<calcite-list-item data-format=${t.name??c} .description=${s} .disabled=${r&&this.conversions.length===1} .label=${t.label.toUpperCase()} @calciteListItemSelect=${this.toggleConversion} .selected=${r}></calcite-list-item>`})}</calcite-list>`,o=n`<calcite-button appearance=outline class="add-conversion-trigger" .iconStart=${l.plus} kind=neutral .label=${e.selectFormats} round .scale=${this.visualScale} ${h(this.onFormatPopoverTriggerMount)}>${e.selectFormats}</calcite-button>`;return this.renderPopover({content:i,includeFooter:!0,getPopoverOpenProperty:()=>this.formatsPopoverOpen,label:e.selectFormats,setPopoverOpenProperty:t=>this.formatsPopoverOpen=t,trigger:o,triggerElement:this._formatsPopoverTrigger})}renderPopover({content:e,class:i,closeOnEnter:o,heading:t,getPopoverOpenProperty:r,includeFooter:s,label:a,setPopoverOpenProperty:d,slot:L,trigger:E,triggerDisabled:T,triggerElement:w}){let{messages:F}=this;return n`${E}${w?n`<calcite-popover auto-close class=${_(i)} .heading=${t} .headingLevel=${this.headingLevel} .label=${a} @calcitePopoverBeforeOpen=${()=>{d(!0)}} @calcitePopoverClose=${p=>{d(!1),p.stopPropagation()}} @keydown=${p=>{o&&(p.key==="Enter"||p.key===" ")&&d(!1)}} .open=${r()} .referenceElement=${w} .scale=${this.visualScale} slot=${L??c} .triggerDisabled=${T}>${e}${s?n`<div class="popover-footer"><calcite-button appearance=solid class="popover-done-button" kind=brand @click=${()=>d(!1)} .scale=${this.visualScale} width=full>${F.done}</calcite-button></div>`:null}</calcite-popover>`:null}`}renderSettingsView(){let{messages:e}=this,i=this.findSettingsFormat(),o=this.getId("pattern-input"),t=this.getId("preview-coordinate"),r=i?.currentPattern,s=this.multipleConversionsDisabled?this.renderSingleFormatDropdown():null;if(!i||!b(i))return n`<div class="settings"><calcite-label .scale=${this.visualScale}>${e.format}${s??n`<calcite-notice class="no-display-properties-notice" .icon=${l.warning} open .scale=${this.visualScale}><div class="font-size-small" slot=message>${e.noDisplayProperties}</div></calcite-notice>`}</calcite-label></div>`;let a=n`<calcite-action .icon=${l.refresh} .label=${e.defaultPattern} @click=${this.setDefaultPattern} .scale=${this.visualScale} .text=${e.defaultPattern} title=${e.defaultPattern??c}></calcite-action>`;return n`<div class="settings"><calcite-label .scale=${this.visualScale}>${e.format}${s}</calcite-label><calcite-label .for=${o} .scale=${this.visualScale}>${e.display}<div class="settings-form-group-horizontal"><calcite-input aria-controls=${t??c} class="pattern-input" id=${o??c} @calciteInputInput=${this.updateCurrentPattern} .scale=${this.visualScale} type=text .value=${r}></calcite-input>${a}</div></calcite-label><calcite-label .scale=${this.visualScale}>${e.preview}<calcite-input read-only .scale=${this.visualScale} type=text .value=${this.previewConversion?.displayCoordinate??void 0}></calcite-input></calcite-label></div>`}renderSingleFormatDropdown(){let{messages:e}=this;return n`<calcite-combobox data-testid=single-format-combobox .label=${e.selectFormat} @calciteComboboxChange=${this.handleFormatComboboxChange} .scale=${this.visualScale} selection-mode=single-persist>${this.formats?.map(i=>n`<calcite-combobox-item .description=${this.getFormatDescription(i)} .heading=${i.label.toUpperCase()} .selected=${this.conversions.at(0)?.format===i} .value=${i.name}></calcite-combobox-item>`)}</calcite-combobox>`}};y("arcgis-coordinate-conversion-next",m);return m},"applications/Components/unitUtils","applications/Components/getDefaultUnits","applications/Components/formatUtils","geometry/Point","widgets/CoordinateConversion/CoordinateConversionViewModel","widgets/CoordinateConversion/support/Conversion","applications/Components/QuantityFormatter",a,b,d,e)
@@ -1,3 +1,3 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{a as Q}from"./LTOXLO3L.js";import b from"./7HL2TQ7E.js";import a from"./MZWO5JYA.js";import{b as q,c as J}from"./32XG4IQO.js";import{d as D,e as O}from"./3AQ6NC3C.js";import"./A4X5YDA6.js";import"./QUZTFUWM.js";import{g as H}from"./4W3T75SY.js";import{M as P,N as U,Q as M,T as B,a as E,b as I}from"./WXLC6FPD.js";import"./H6RQVSYM.js";export default $arcgis.t(([{getColorsFromRenderer:se},{substitute:oe},{watch:le},ce,Z,{renderingSanitizer:ee},,{e:w,f:j,g:V,h:G,i:K,j:W,l:L,n:F,o:k,p:R}])=>{var de=E`.container{display:flex;flex-flow:row wrap;align-items:center;margin-top:var(--calcite-spacing-xs);width:100%;min-height:150px}.container .pagination-button{display:flex;align-items:center;justify-content:center;border:none;background:transparent;cursor:pointer;padding-block:var(--calcite-spacing-xs);padding-inline:var(--calcite-spacing-xs);color:var(--calcite-color-text-3)}.container .pagination-button:hover,.container .pagination-button:focus{background-color:var(--calcite-color-foreground-3);color:var(--calcite-color-text-1);fill:var(--calcite-color-text-1)}.item-title{margin:0;font-size:var(--calcite-font-size-md);line-height:var(--calcite-font-line-height-relative-snug)}.item-caption{padding-block-start:var(--calcite-spacing-xxs);font-size:var(--calcite-font-size-sm);line-height:var(--calcite-font-line-height-relative-snug)}.item{display:flex;align-items:flex-start;justify-content:center;margin-block:var(--calcite-spacing-xs);width:100%;height:auto}.item-navigation{display:flex;flex:0 1 100%;align-items:flex-start;justify-content:space-between;margin-block-end:var(--calcite-spacing-xs)}.item-text{margin-inline-end:var(--calcite-spacing-xs)}.pagination{display:flex;flex:0 0 auto;align-items:center;overflow:hidden}.pagination:only-child{margin-inline-start:auto}.pagination-text{padding-inline:var(--calcite-spacing-xxs);color:var(--calcite-color-text-3);font-size:var(--calcite-font-size-sm);line-height:var(--calcite-font-line-height-relative-normal)}.item-container{flex:0 1 auto;width:100%}.item-container img{max-width:100%}.item-container img[src$=".SVG"],.item-container img[src$=".svg"]{width:100%}.chart{width:100%;height:155px}`;function z(S){if(!w(S))return null;let[e,t]=S.split("/").slice(1);return{layerId:e,fieldName:t}}var X=15,C="category",b="value",he="rgba(50, 50, 50, 1)",ue=250,pe=500,me=200,N=class extends U{constructor(){super(...arguments),this._direction=O(),this._prefersReducedMotion=D("(prefers-reduced-motion)"),this.activeMediaInfoIndex=0,this.chartAnimationDisabled=!1,this.headingLevel=2}static{this.properties={_refreshIntervalInfo:16,messages:0,values:0,expressionValues:0,activeMediaInfoIndex:9,chartAnimationDisabled:5,activeMediaInfo:32,formattedMediaInfos:32,description:1,fieldInfoMap:0,layer:0,mediaInfos:0,popupTemplate:0,relatedInfos:0,formattedValues:0,heading:1,graphic:0,formattedMediaInfoCount:32,headingLevel:9}}static{this.styles=de}get activeMediaInfo(){return this.formattedMediaInfos[this.activeMediaInfoIndex]||null}get formattedMediaInfos(){return this._formatMediaInfos()||[]}get formattedMediaInfoCount(){return this.formattedMediaInfos.length}next(){this._pageContentElementMedia(1)}previous(){this._pageContentElementMedia(-1)}setActiveMedia(e){this._setContentElementMedia(e)}loaded(){this.manager.onLifecycle(()=>[le(()=>[this.activeMediaInfo,this.activeMediaInfoIndex],()=>this._setupMediaRefreshTimer(),{initial:!0}),{remove:()=>this._clearMediaRefreshTimer()}])}_setContentElementMedia(e){let{formattedMediaInfoCount:t}=this,i=(e+t)%t;this.activeMediaInfoIndex=i}_pageContentElementMedia(e){let{activeMediaInfoIndex:t}=this,i=t+e;this._setContentElementMedia(i)}_formatMediaInfos(){let{mediaInfos:e,layer:t}=this,i=this.values??{},a=this.formattedValues??{},s=this.fieldInfoMap??new Map,r=this.expressionValues??{};return e?.map(o=>{let n=o?.clone();if(!n)return null;if(n.title=R({values:i,fieldInfoMap:s,globalValues:a,layer:t,text:n.title}),n.caption=R({values:i,fieldInfoMap:s,globalValues:a,layer:t,text:n.caption}),n.altText=R({values:i,fieldInfoMap:s,globalValues:a,layer:t,text:n.altText}),n.type==="image"){if(!n.value)return null;let l=n.value;return this._setImageValue({value:l,formattedValues:a,layer:t}),l.sourceURL?n:void 0}if(n.type==="pie-chart"||n.type==="line-chart"||n.type==="column-chart"||n.type==="bar-chart"){if(!n.value)return null;let l=n.value;return this._setChartValue({value:l,chartType:n.type,values:i,expressionValues:r,formattedValues:a,layer:t}),n}return null}).filter(o=>o!=null)??[]}_setImageValue(e){let t=this.fieldInfoMap??new Map,{value:i,formattedValues:a,layer:s}=e,{linkURL:r,sourceURL:o}=i;if(o){let n=k(o,s);i.sourceURL=F({formattedValues:a,template:n,fieldInfoMap:t})}if(r){let n=k(r,s);i.linkURL=F({formattedValues:a,template:n,fieldInfoMap:t})}}_setChartValue(e){let{value:t,values:i,expressionValues:a,formattedValues:s,chartType:r,layer:o}=e,{popupTemplate:n,relatedInfos:l}=this,{fields:m,normalizeField:d}=t,c=o;if(t.fields=G(m,c),d&&(t.normalizeField=V(d,c)),!m.some(u=>!!(s[u]!=null||w(u)&&l?.size)))return;let p=n?.fieldInfos??[];t.series=[],m.forEach((u,g)=>{let h=t.colors?.[g];if(w(u)){t.series=[...t.series,...this._getRelatedChartInfos({fieldInfos:p,fieldName:u,formattedValues:s,expressionValues:a,chartType:r,value:t,color:h})];return}let v=this._getChartOption({value:t,values:i,chartType:r,formattedValues:s,expressionValues:a,fieldName:u,fieldInfos:p,color:h});t.series.push(v)})}_getRelatedChartInfos(e){let{fieldInfos:t,fieldName:i,formattedValues:a,chartType:s,value:r,color:o,expressionValues:n}=e,l=[],m=z(i),d=m&&this.relatedInfos?.get(m.layerId);if(!d)return l;let{relatedFeatures:c,relation:p}=d;if(!p||!c)return l;let{cardinality:u}=p;return c.forEach(g=>{let h=g.attributes;h&&Object.keys(h).forEach(v=>{v===m.fieldName&&l.push(this._getChartOption({value:r,values:h,formattedValues:a,expressionValues:n,fieldName:i,chartType:s,relatedFieldName:v,hasMultipleRelatedFeatures:c?.length>1,fieldInfos:t,color:o}))})}),u&&(u==="one-to-many"||u==="many-to-many")?l:[l[0]]}_getTooltip({label:e,value:t,chartType:i}){return i==="pie-chart"?`${e}`:`${e}: ${t}`}_getChartOption(e){let{value:t,values:i,formattedValues:a,expressionValues:s,fieldName:r,relatedFieldName:o,fieldInfos:n,chartType:l,hasMultipleRelatedFeatures:m,color:d}=e,{layer:c,graphic:p}=this,u=this.fieldInfoMap??new Map,{normalizeField:g,tooltipField:h}=t,v=g?w(g)?i[z(g).fieldName]:i[g]:null,x=K(r)&&s?.[r]!==void 0?s[r]:o&&i[o]!==void 0?i[o]:i[r]!==void 0?i[r]:a[r],_=x===void 0?null:x&&v&&typeof x=="number"&&typeof v=="number"?x/v:x,f=W(n,r),y=V(r,c),A=(h&&a[h]!==void 0?a[h]:L({fieldInfo:f||new ce({fieldName:y}),expressionInfos:this.popupTemplate?.expressionInfos,graphic:p,layer:c}))??"",te=a[y]??"",Y=_!=null?typeof _=="number"?_:Number(_):null;if(w(r)){let T=u.get(r.toLowerCase()),ie=h?u.get(h.toLowerCase()):null,ae=T?.fieldName??r,$=m&&h?z(h).fieldName:ie?.fieldName??h,re=(m&&$?i[$]:a[$]??(T&&L({fieldInfo:T,layer:c,graphic:p}))??T?.fieldName??o)??"",ne=(m&&o?i[o]:a[ae])??"";return new Z({fieldName:r,tooltip:this._getTooltip({label:re,value:ne,chartType:l}),color:d,value:Y})}return new Z({fieldName:r,tooltip:this._getTooltip({label:A,value:te,chartType:l}),color:d,value:Y})}_getRenderer(){let e=this.layer;return this.graphic?.isAggregate&&e?.featureReduction&&"renderer"in e.featureReduction?e.featureReduction.renderer:e?.renderer}async _getSeriesColors(e){let{color:t}=await import("./B5FTF7WR.js"),i=new Map;return e.forEach(a=>{a.color&&i.set(a,t(a.color.toCss(!0)))}),i}async _getRendererColors(){let{color:e}=await import("./B5FTF7WR.js"),t=new Map,i=this._getRenderer(),a="default";if(!i)return t;let s=await se(i);return s.delete(a),Array.from(s.values()).every(r=>r?.length===1)&&Array.from(s.keys()).forEach(r=>{let o=s.get(r)?.[0]?.toCss(!0);o&&t.set(r,e(o))}),t}async _createChart(e){let{activeMediaInfo:t}=this;if(!e||!t)return;let{createRoot:i}=await import("./MBFY4GDJ.js").then(m=>m.default.then(e=>({createRoot:e}))),a=await i(e);this._chartRoot=a,this._renderChart({mediaInfo:t,root:a})}_handleMediaKeyup(e){let{key:t}=e;J(t,this._direction)&&(e.stopPropagation(),this.previous()),q(t,this._direction)&&(e.stopPropagation(),this.next())}_canAnimateChart(){return!this.chartAnimationDisabled&&!this._prefersReducedMotion}_getChartAnimationMS(){return this._canAnimateChart()?ue:0}_getChartSeriesAnimationMS(){return this._canAnimateChart()?pe:0}async _customizeChartTooltip(e,t="horizontal"){let{color:i}=await import("./B5FTF7WR.js");e.setAll({pointerOrientation:t}),e.get("background")?.setAll({stroke:i(he)}),e.label.setAll({direction:this._direction,oversizedBehavior:"wrap",maxWidth:me})}async _createPieChart(e,t){let[{Tooltip:i},{PieChart:a,PieSeries:s}]=await Promise.all([import("./B5FTF7WR.js"),import("./N5VJ4SAX.js")]),{mediaInfo:r,root:o}=e,{title:n}=r,l=5,m=r?.altText||r?.title||"",d=o.container.children.push(a.new(o,{role:"figure",ariaLabel:m,focusable:!0,paddingBottom:l,paddingTop:l,paddingLeft:l,paddingRight:l})),c=`{category}: {valuePercentTotal.formatNumber('0.00')}%
2
+ import{a as Q}from"./56KR4KYO.js";import b from"./X4RJMWSU.js";import a from"./MZWO5JYA.js";import{b as q,c as J}from"./32XG4IQO.js";import{d as D,e as O}from"./5DI7RMZ6.js";import"./Q7SMGP5R.js";import"./QUZTFUWM.js";import{g as H}from"./NCYBFT2Y.js";import{M as P,N as U,Q as M,T as B,a as E,b as I}from"./WTBRS6C4.js";import"./H6RQVSYM.js";export default $arcgis.t(([{getColorsFromRenderer:se},{substitute:oe},{watch:le},ce,Z,{renderingSanitizer:ee},,{e:w,f:j,g:V,h:G,i:K,j:W,l:L,n:F,o:k,p:R}])=>{var de=E`.container{display:flex;flex-flow:row wrap;align-items:center;margin-top:var(--calcite-spacing-xs);width:100%;min-height:150px}.container .pagination-button{display:flex;align-items:center;justify-content:center;border:none;background:transparent;cursor:pointer;padding-block:var(--calcite-spacing-xs);padding-inline:var(--calcite-spacing-xs);color:var(--calcite-color-text-3)}.container .pagination-button:hover,.container .pagination-button:focus{background-color:var(--calcite-color-foreground-3);color:var(--calcite-color-text-1);fill:var(--calcite-color-text-1)}.item-title{margin:0;font-size:var(--calcite-font-size-md);line-height:var(--calcite-font-line-height-relative-snug)}.item-caption{padding-block-start:var(--calcite-spacing-xxs);font-size:var(--calcite-font-size-sm);line-height:var(--calcite-font-line-height-relative-snug)}.item{display:flex;align-items:flex-start;justify-content:center;margin-block:var(--calcite-spacing-xs);width:100%;height:auto}.item-navigation{display:flex;flex:0 1 100%;align-items:flex-start;justify-content:space-between;margin-block-end:var(--calcite-spacing-xs)}.item-text{margin-inline-end:var(--calcite-spacing-xs)}.pagination{display:flex;flex:0 0 auto;align-items:center;overflow:hidden}.pagination:only-child{margin-inline-start:auto}.pagination-text{padding-inline:var(--calcite-spacing-xxs);color:var(--calcite-color-text-3);font-size:var(--calcite-font-size-sm);line-height:var(--calcite-font-line-height-relative-normal)}.item-container{flex:0 1 auto;width:100%}.item-container img{max-width:100%}.item-container img[src$=".SVG"],.item-container img[src$=".svg"]{width:100%}.chart{width:100%;height:155px}`;function z(S){if(!w(S))return null;let[e,t]=S.split("/").slice(1);return{layerId:e,fieldName:t}}var X=15,C="category",b="value",he="rgba(50, 50, 50, 1)",ue=250,pe=500,me=200,N=class extends U{constructor(){super(...arguments),this._direction=O(),this._prefersReducedMotion=D("(prefers-reduced-motion)"),this.activeMediaInfoIndex=0,this.chartAnimationDisabled=!1,this.headingLevel=2}static{this.properties={_refreshIntervalInfo:16,messages:0,values:0,expressionValues:0,activeMediaInfoIndex:9,chartAnimationDisabled:5,activeMediaInfo:32,formattedMediaInfos:32,description:1,fieldInfoMap:0,layer:0,mediaInfos:0,popupTemplate:0,relatedInfos:0,formattedValues:0,heading:1,graphic:0,formattedMediaInfoCount:32,headingLevel:9}}static{this.styles=de}get activeMediaInfo(){return this.formattedMediaInfos[this.activeMediaInfoIndex]||null}get formattedMediaInfos(){return this._formatMediaInfos()||[]}get formattedMediaInfoCount(){return this.formattedMediaInfos.length}next(){this._pageContentElementMedia(1)}previous(){this._pageContentElementMedia(-1)}setActiveMedia(e){this._setContentElementMedia(e)}loaded(){this.manager.onLifecycle(()=>[le(()=>[this.activeMediaInfo,this.activeMediaInfoIndex],()=>this._setupMediaRefreshTimer(),{initial:!0}),{remove:()=>this._clearMediaRefreshTimer()}])}_setContentElementMedia(e){let{formattedMediaInfoCount:t}=this,i=(e+t)%t;this.activeMediaInfoIndex=i}_pageContentElementMedia(e){let{activeMediaInfoIndex:t}=this,i=t+e;this._setContentElementMedia(i)}_formatMediaInfos(){let{mediaInfos:e,layer:t}=this,i=this.values??{},a=this.formattedValues??{},s=this.fieldInfoMap??new Map,r=this.expressionValues??{};return e?.map(o=>{let n=o?.clone();if(!n)return null;if(n.title=R({values:i,fieldInfoMap:s,globalValues:a,layer:t,text:n.title}),n.caption=R({values:i,fieldInfoMap:s,globalValues:a,layer:t,text:n.caption}),n.altText=R({values:i,fieldInfoMap:s,globalValues:a,layer:t,text:n.altText}),n.type==="image"){if(!n.value)return null;let l=n.value;return this._setImageValue({value:l,formattedValues:a,layer:t}),l.sourceURL?n:void 0}if(n.type==="pie-chart"||n.type==="line-chart"||n.type==="column-chart"||n.type==="bar-chart"){if(!n.value)return null;let l=n.value;return this._setChartValue({value:l,chartType:n.type,values:i,expressionValues:r,formattedValues:a,layer:t}),n}return null}).filter(o=>o!=null)??[]}_setImageValue(e){let t=this.fieldInfoMap??new Map,{value:i,formattedValues:a,layer:s}=e,{linkURL:r,sourceURL:o}=i;if(o){let n=k(o,s);i.sourceURL=F({formattedValues:a,template:n,fieldInfoMap:t})}if(r){let n=k(r,s);i.linkURL=F({formattedValues:a,template:n,fieldInfoMap:t})}}_setChartValue(e){let{value:t,values:i,expressionValues:a,formattedValues:s,chartType:r,layer:o}=e,{popupTemplate:n,relatedInfos:l}=this,{fields:m,normalizeField:d}=t,c=o;if(t.fields=G(m,c),d&&(t.normalizeField=V(d,c)),!m.some(u=>!!(s[u]!=null||w(u)&&l?.size)))return;let p=n?.fieldInfos??[];t.series=[],m.forEach((u,g)=>{let h=t.colors?.[g];if(w(u)){t.series=[...t.series,...this._getRelatedChartInfos({fieldInfos:p,fieldName:u,formattedValues:s,expressionValues:a,chartType:r,value:t,color:h})];return}let v=this._getChartOption({value:t,values:i,chartType:r,formattedValues:s,expressionValues:a,fieldName:u,fieldInfos:p,color:h});t.series.push(v)})}_getRelatedChartInfos(e){let{fieldInfos:t,fieldName:i,formattedValues:a,chartType:s,value:r,color:o,expressionValues:n}=e,l=[],m=z(i),d=m&&this.relatedInfos?.get(m.layerId);if(!d)return l;let{relatedFeatures:c,relation:p}=d;if(!p||!c)return l;let{cardinality:u}=p;return c.forEach(g=>{let h=g.attributes;h&&Object.keys(h).forEach(v=>{v===m.fieldName&&l.push(this._getChartOption({value:r,values:h,formattedValues:a,expressionValues:n,fieldName:i,chartType:s,relatedFieldName:v,hasMultipleRelatedFeatures:c?.length>1,fieldInfos:t,color:o}))})}),u&&(u==="one-to-many"||u==="many-to-many")?l:[l[0]]}_getTooltip({label:e,value:t,chartType:i}){return i==="pie-chart"?`${e}`:`${e}: ${t}`}_getChartOption(e){let{value:t,values:i,formattedValues:a,expressionValues:s,fieldName:r,relatedFieldName:o,fieldInfos:n,chartType:l,hasMultipleRelatedFeatures:m,color:d}=e,{layer:c,graphic:p}=this,u=this.fieldInfoMap??new Map,{normalizeField:g,tooltipField:h}=t,v=g?w(g)?i[z(g).fieldName]:i[g]:null,x=K(r)&&s?.[r]!==void 0?s[r]:o&&i[o]!==void 0?i[o]:i[r]!==void 0?i[r]:a[r],_=x===void 0?null:x&&v&&typeof x=="number"&&typeof v=="number"?x/v:x,f=W(n,r),y=V(r,c),A=(h&&a[h]!==void 0?a[h]:L({fieldInfo:f||new ce({fieldName:y}),expressionInfos:this.popupTemplate?.expressionInfos,graphic:p,layer:c}))??"",te=a[y]??"",Y=_!=null?typeof _=="number"?_:Number(_):null;if(w(r)){let T=u.get(r.toLowerCase()),ie=h?u.get(h.toLowerCase()):null,ae=T?.fieldName??r,$=m&&h?z(h).fieldName:ie?.fieldName??h,re=(m&&$?i[$]:a[$]??(T&&L({fieldInfo:T,layer:c,graphic:p}))??T?.fieldName??o)??"",ne=(m&&o?i[o]:a[ae])??"";return new Z({fieldName:r,tooltip:this._getTooltip({label:re,value:ne,chartType:l}),color:d,value:Y})}return new Z({fieldName:r,tooltip:this._getTooltip({label:A,value:te,chartType:l}),color:d,value:Y})}_getRenderer(){let e=this.layer;return this.graphic?.isAggregate&&e?.featureReduction&&"renderer"in e.featureReduction?e.featureReduction.renderer:e?.renderer}async _getSeriesColors(e){let{color:t}=await import("./B5FTF7WR.js"),i=new Map;return e.forEach(a=>{a.color&&i.set(a,t(a.color.toCss(!0)))}),i}async _getRendererColors(){let{color:e}=await import("./B5FTF7WR.js"),t=new Map,i=this._getRenderer(),a="default";if(!i)return t;let s=await se(i);return s.delete(a),Array.from(s.values()).every(r=>r?.length===1)&&Array.from(s.keys()).forEach(r=>{let o=s.get(r)?.[0]?.toCss(!0);o&&t.set(r,e(o))}),t}async _createChart(e){let{activeMediaInfo:t}=this;if(!e||!t)return;let{createRoot:i}=await import("./MBFY4GDJ.js").then(m=>m.default.then(e=>({createRoot:e}))),a=await i(e);this._chartRoot=a,this._renderChart({mediaInfo:t,root:a})}_handleMediaKeyup(e){let{key:t}=e;J(t,this._direction)&&(e.stopPropagation(),this.previous()),q(t,this._direction)&&(e.stopPropagation(),this.next())}_canAnimateChart(){return!this.chartAnimationDisabled&&!this._prefersReducedMotion}_getChartAnimationMS(){return this._canAnimateChart()?ue:0}_getChartSeriesAnimationMS(){return this._canAnimateChart()?pe:0}async _customizeChartTooltip(e,t="horizontal"){let{color:i}=await import("./B5FTF7WR.js");e.setAll({pointerOrientation:t}),e.get("background")?.setAll({stroke:i(he)}),e.label.setAll({direction:this._direction,oversizedBehavior:"wrap",maxWidth:me})}async _createPieChart(e,t){let[{Tooltip:i},{PieChart:a,PieSeries:s}]=await Promise.all([import("./B5FTF7WR.js"),import("./N5VJ4SAX.js")]),{mediaInfo:r,root:o}=e,{title:n}=r,l=5,m=r?.altText||r?.title||"",d=o.container.children.push(a.new(o,{role:"figure",ariaLabel:m,focusable:!0,paddingBottom:l,paddingTop:l,paddingLeft:l,paddingRight:l})),c=`{category}: {valuePercentTotal.formatNumber('0.00')}%
3
3
  ({value})`,p=i.new(o,{labelText:c}),u=d.series.push(s.new(o,{name:n,valueField:b,categoryField:C,tooltip:p}));u.ticks.template.set("forceHidden",!0),u.labels.template.set("forceHidden",!0),u.slices.template.states.create("active",{shiftRadius:l}),this._customizeChartTooltip(p),u.slices.template.setAll({ariaLabel:c,focusable:!0,templateField:"columnSettings"}),u.data.setAll(t),u.appear(this._getChartSeriesAnimationMS()),d.appear(this._getChartAnimationMS()),d.root.dom.classList.toggle("chart-rendered",!0)}_getMinSeriesValue(e){let t=0;return e.forEach(i=>t=Math.min(i.value,t)),t}async _createColumnChart(e,t,i){let[{Tooltip:a,Scrollbar:s},{CategoryAxis:r,AxisRendererX:o,AxisRendererY:n,ValueAxis:l,ColumnSeries:m}]=await Promise.all([import("./B5FTF7WR.js"),import("./HPLMTKLF.js")]),{mediaInfo:d,root:c}=t,{value:p,title:u}=d,{_direction:g}=this;e.setAll({wheelX:"panX",wheelY:"zoomX"});let h=e.xAxes.push(r.new(c,{renderer:o.new(c,{inversed:g==="rtl"}),categoryField:C}));h.get("renderer").labels.template.setAll({forceHidden:!0});let v=e.yAxes.push(l.new(c,{renderer:n.new(c,{inside:!1}),min:this._getMinSeriesValue(p.series)}));v.get("renderer").labels.template.setAll({direction:g});let x="{categoryX}",_=a.new(c,{labelText:x}),f=e.series.push(m.new(c,{name:u,xAxis:h,yAxis:v,valueYField:b,categoryXField:C,tooltip:_}));this._customizeChartTooltip(_),f.columns.template.setAll({ariaLabel:x,focusable:!0,templateField:"columnSettings"}),p.series.length>X&&e.set("scrollbarX",s.new(c,{orientation:"horizontal"})),h.data.setAll(i),f.data.setAll(i),f.appear(this._getChartSeriesAnimationMS()),e.appear(this._getChartAnimationMS())}async _createBarChart(e,t,i){let[{Tooltip:a,Scrollbar:s},{CategoryAxis:r,AxisRendererX:o,AxisRendererY:n,ValueAxis:l,ColumnSeries:m}]=await Promise.all([import("./B5FTF7WR.js"),import("./HPLMTKLF.js")]),{mediaInfo:d,root:c}=t,{value:p,title:u}=d,{_direction:g}=this;e.setAll({wheelX:"panY",wheelY:"zoomY"});let h=e.yAxes.push(r.new(c,{renderer:n.new(c,{inversed:!0}),categoryField:C}));h.get("renderer").labels.template.setAll({forceHidden:!0});let v=e.xAxes.push(l.new(c,{renderer:o.new(c,{inside:!1,inversed:g==="rtl"}),min:this._getMinSeriesValue(p.series)}));v.get("renderer").labels.template.setAll({direction:g});let x="{categoryY}",_=a.new(c,{labelText:x}),f=e.series.push(m.new(c,{name:u,xAxis:v,yAxis:h,valueXField:b,categoryYField:C,tooltip:_}));this._customizeChartTooltip(_,"vertical"),f.columns.template.setAll({ariaLabel:x,focusable:!0,templateField:"columnSettings"}),p.series.length>X&&e.set("scrollbarY",s.new(c,{orientation:"vertical"})),h.data.setAll(i),f.data.setAll(i),f.appear(this._getChartSeriesAnimationMS()),e.appear(this._getChartAnimationMS())}async _createLineChart(e,t,i){let[{Tooltip:a,Scrollbar:s},{CategoryAxis:r,AxisRendererX:o,AxisRendererY:n,ValueAxis:l,LineSeries:m}]=await Promise.all([import("./B5FTF7WR.js"),import("./HPLMTKLF.js")]),{root:d,mediaInfo:c}=t,{value:p,title:u}=c,{_direction:g}=this;e.setAll({wheelX:"panX",wheelY:"zoomX"});let h=e.xAxes.push(r.new(d,{renderer:o.new(d,{inversed:g==="rtl"}),categoryField:C}));h.get("renderer").labels.template.setAll({forceHidden:!0});let v=e.yAxes.push(l.new(d,{renderer:n.new(d,{inside:!1}),min:this._getMinSeriesValue(p.series)}));v.get("renderer").labels.template.setAll({direction:g});let x="{categoryX}",_=i[0]?.lineSettings?.stroke,f=a.new(d,{getFillFromSprite:!_,labelText:x});_&&f.get("background")?.setAll({fill:_});let y=e.series.push(m.new(d,{name:u,xAxis:h,yAxis:v,valueYField:b,categoryXField:C,tooltip:f}));y.strokes.template.setAll({templateField:"lineSettings"}),this._customizeChartTooltip(f,"vertical"),p.series.length>X&&e.set("scrollbarX",s.new(d,{orientation:"horizontal"})),h.data.setAll(i),y.data.setAll(i),y.appear(this._getChartSeriesAnimationMS()),e.appear(this._getChartAnimationMS())}async _createXYChart(e,t){let{XYChart:i,XYCursor:a}=await import("./HPLMTKLF.js"),{root:s,mediaInfo:r}=e,{type:o}=r,n=r?.altText||r?.title||"",l=s.container.children.push(i.new(s,{role:"figure",ariaLabel:n,focusable:!0,panX:!0,panY:!0}));l.set("cursor",a.new(s,{})),o==="column-chart"&&await this._createColumnChart(l,e,t),o==="bar-chart"&&await this._createBarChart(l,e,t),o==="line-chart"&&await this._createLineChart(l,e,t),l.root.dom.classList.toggle("chart-rendered",!0)}_clearMediaRefreshTimer(){let{_refreshTimer:e}=this;e&&(clearTimeout(e),this._refreshTimer=void 0)}_updateMediaInfoTimestamp(e){let t=Date.now();this._refreshIntervalInfo={timestamp:t,sourceURL:e&&this._getImageSource(e,t)}}_setupMediaRefreshTimer(){this._clearMediaRefreshTimer();let{activeMediaInfo:e}=this;e?.type==="image"&&e.refreshInterval>0&&this._setRefreshTimeout(e)}_setRefreshTimeout(e){let{refreshInterval:t,value:i}=e,a=t*6e4;this._updateMediaInfoTimestamp(i.sourceURL);let s=window.setInterval(()=>{this._updateMediaInfoTimestamp(i.sourceURL)},a);this._refreshTimer=s}_getImageSource(e,t){let i=e.includes("?")?"&":"?",[a,s=""]=e.split("#");return`${a}${i}timestamp=${t}${s?"#":""}${s}`}_updateChartElement(e){this._chartRoot?.dispose(),this._chartRoot=void 0,e&&this._createChart(e)}render(){return I`<div class="root" @keyup=${this._handleMediaKeyup}><arcgis-feature-element-info .heading=${this.heading} .description=${this.description} .headingLevel=${this.headingLevel}></arcgis-feature-element-info>${this._renderMedia()}</div>`}_renderMedia(){let{formattedMediaInfoCount:e,activeMediaInfoIndex:t}=this,i=this._renderMediaText();return e?I`<div class="container">${this._renderMediaInfo()}<div class="item-navigation">${i}${e>1?I`<div class="pagination">${this._renderMediaPageButton("previous")}<span class="pagination-text">${oe(this.messages?.pageText??"",{index:t+1,total:e})}</span>${this._renderMediaPageButton("next")}</div>`:null}</div></div>`:null}_renderMediaText(){let{activeMediaInfo:e}=this;if(!e)return null;let t=e?.title?I`<div class="item-title" .innerHTML=${ee.sanitize(e.title)??""}></div>`:null,i=e?.caption?I`<div class="item-caption" .innerHTML=${ee.sanitize(e.caption)??""}></div>`:null;return t||i?I`<div class="item-text">${t}${i}</div>`:null}_renderImageMediaInfo(e){if(!e.value)return null;let{_refreshIntervalInfo:t}=this,{value:i,refreshInterval:a,altText:s,title:r}=e,{sourceURL:o,linkURL:n}=i,l=j(n??void 0)?"_blank":"_self",m=l==="_blank"?"noreferrer":"",d=a?t:null,c=d?d.sourceURL:o,p=I`<img alt=${(s||r)??M} src=${c??void 0??M}>`;return(n?I`<a href=${n??M} rel=${m??M} target=${l??M} title=${r??M}>${p}</a>`:null)??p}_renderChartMediaInfo(e){let{activeMediaInfoIndex:t,formattedMediaInfoCount:i}=this;return Q(`media-${e.type}-${t}-${i}`,I`<div class="chart" ${P(this._updateChartElement)}></div>`)}_renderMediaInfoType(){let{activeMediaInfo:e}=this;return e?e.type==="image"?this._renderImageMediaInfo(e):e.type.includes("chart")?this._renderChartMediaInfo(e):null:null}_renderMediaInfo(){let{activeMediaInfo:e}=this;return e?I`<div class="item-container"><div class="item">${this._renderMediaInfoType()}</div></div>`:null}_renderMediaPageButton(e){if(this.formattedMediaInfoCount<2)return null;let t=e==="previous",i=t?this.messages?.previous??"":this.messages?.next??"",a=t?"chevron-left":"chevron-right",s=t?this.previous:this.next;return I`<button .ariaLabel=${i} class="pagination-button" @click=${s} tabindex=0 title=${i??M} type=button><calcite-icon flip-rtl class="pagination-icon" .icon=${a} scale=s></calcite-icon></button>`}async _renderChart(e){let{root:t,mediaInfo:i}=e,{value:a,type:s}=i,[{default:r},{default:o},{default:n},{esriChartColorSet:l},{ColorSet:m,Theme:d}]=await Promise.all([import("./SK4OCYH7.js"),import("./SVJ7AEMP.js"),import("./VT2IDAHB.js"),import("./3CHIGFZL.js"),import("./B5FTF7WR.js")]),c=d.new(t);c.rule("ColorSet").set("colors",l),c.rule("ColorSet").set("reuse",!0);let p=[n.new(t),c];H(this.el)==="dark"&&p.push(o.new(t)),this._canAnimateChart()&&p.push(r.new(t)),t.setThemes(p);let u=await this._getRendererColors(),g=await this._getSeriesColors(a.series),h=m.new(t,{}),v=g.get(a.series[0]),x=v?{lineSettings:{stroke:v}}:void 0,_=a.series.map((f,y)=>{let A=g.get(f)||u.get(f.fieldName)||h.getIndex(y);return{[C]:f.tooltip,[b]:f.value,columnSettings:{fill:A,stroke:A},...x}}).filter(f=>s==="pie-chart"?f.value!=null&&f.value>0:!0);s==="pie-chart"?this._createPieChart(e,_):this._createXYChart(e,_)}};B("arcgis-feature-media",N);return N},"renderers/support/utils","intl","core/reactiveUtils","popup/FieldInfo","popup/content/support/ChartMediaInfoValueSeries","applications/Components/sanitizerUtils",a,b)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import b from"./YT6GA6QR.js";import{a as u,b as p,k as c}from"./4SV6HHMC.js";import{L as o,M as r,N as w,O as d,T as y,a as $,b as a}from"./WXLC6FPD.js";import"./H6RQVSYM.js";export default $arcgis.t(([I,_,{c:m,e:n,j:v,k:g,l:b}])=>{var k="TimeBar",T="Count",O="Please enter count",D="Date",U="Display",F="Choose how to display date and time.",M="End",S="Choose the time bar's end time.",C="Every {count} {timeUnit}",x="Every {duration}",Z={dateAndTime:"Date and time",dateOnly:"Date only"},z="Loop",R="Mode",B="Choose the time extent type shown by the time bar.",E={"cumulative-from-end":"Cumulative from end","cumulative-from-start":"Cumulative from start",instant:"Instant","time-window":"Time window"},P="Next",V="Overview",L="Play",N="Playback rate",q="The speed at which the time bar progresses.",A="Previous",j="Regular interval",G="Settings",H="Start",W="Choose the time bar's start time.",Y="Stop",J={discreteDates:"Discrete dates",evenlySpaced:"Evenly spaced",evenlySpacedTemplate:"{count} evenly spaced",freeMovement:"Free movement"},K="Stops",Q="Choose how the stops are generated for the time bar.",X="Time",ee="Time bar settings",te={day:"Day",hour:"Hour",millisecond:"Millisecond",minute:"Minute",month:"Month",second:"Second",week:"Week",year:"Year"},ie="Time zone",se="Choose the time zone used to display the date and time in the time bar.",ae={specific:"Specific time zone",system:"Device time zone",unknown:"No adjustment"},le="Unit",ne="Please select unit",ce="Units",oe={componentLabel:k,count:T,countPrompt:O,date:D,display:U,displayDescription:F,end:M,endDescription:S,everyDurationPartsTemplate:C,everyDurationTemplate:x,formatOptions:Z,loop:z,mode:R,modeDescription:B,modeOptions:E,next:P,overview:V,play:L,playbackRate:N,playbackRateDescription:q,previous:A,regularInterval:j,settings:G,start:H,startDescription:W,stop:Y,stopOptions:J,stops:K,stopsDescription:Q,time:X,timeBarSettings:ee,timeUnitOptions:te,timeZone:ie,timeZoneDescription:se,timeZoneOptions:ae,unit:le,unitPrompt:ne,units:ce},re=$`:host{background-color:var(--calcite-color-surface-2);block-size:calc(var(--calcite-font-size-relative-5xl) * 8);color:var(--calcite-color-text-1);font-family:var(--calcite-font-family);font-size:var(--calcite-font-size-sm);inline-size:max-content}calcite-flow-item{--calcite-color-background: var(--calcite-color-surface-2)}.disabled{opacity:var(--calcite-opacity-disabled);pointer-events:none}.playback-rate-content{margin-inline-start:var(--calcite-spacing-lg);margin-inline-end:var(--calcite-spacing-lg);margin-block-start:var(--calcite-spacing-lg)}.end-content,.format-content,.mode-content,.start-content,.stops-content,.time-zone-content{margin-inline-start:calc(var(--calcite-spacing-lg) * 3);margin-inline-end:var(--calcite-spacing-lg);margin-block-start:var(--calcite-spacing-lg)}.stops-indent,.time-zone-indent{margin-inline-start:calc(var(--calcite-spacing-lg) * 1.5);margin-block-end:var(--calcite-spacing-lg)}.label-description{font-style:italic}.label-heading{font-weight:var(--calcite-font-weight-semibold)}.list-item--content{--calcite-label-margin-bottom: 0}.time-zone-input{width:calc(var(--calcite-size-md) * 5.5)}.time-zone-label{--calcite-color-background: transparent;--calcite-color-border-input: transparent;font-style:italic;margin-inline-start:calc(var(--calcite-spacing-md) * -1);margin-block-start:calc(var(--calcite-spacing-md) * -.5)}`,f=class extends w{constructor(){super(...arguments),this.#t=o(),this.#i=o(),this.#s=o(),this.#a=o(),this.#e={maximumFractionDigits:0,style:"unit",unitDisplay:"long"},this._selectedFlowItem="overview",this.autoDestroyDisabled=!1}static{this.properties={_timeUnitSettings:16,_defaultTimeZoneMode:16,_defaultStopCount:16,_defaultStopIntervalValue:16,_defaultStopIntervalUnit:16,_messages:16,_timeZoneMode:16,_stopCount:16,_stopIntervalValue:16,_stopIntervalUnit:16,_formatDescription:16,_playbackRateDescription:16,_formatStart:16,_formatEnd:16,_modeDescription:16,_selectedFlowItem:16,_stopDescription:16,autoDestroyDisabled:5,messages:0,viewModel:0}}static{this.styles=re}#l;#n;#c;#o;#t;#i;#s;#a;#e;get _timeUnitSettings(){let e={milliseconds:{timeUnit:"milliseconds",heading:this._messages.timeUnitOptions.millisecond,numberFormatOptions:{...this.#e,unit:"millisecond"}},seconds:{timeUnit:"seconds",heading:this._messages.timeUnitOptions.second,numberFormatOptions:{...this.#e,unit:"second"}},minutes:{timeUnit:"minutes",heading:this._messages.timeUnitOptions.minute,numberFormatOptions:{...this.#e,unit:"minute"}},hours:{timeUnit:"hours",heading:this._messages.timeUnitOptions.hour,numberFormatOptions:{...this.#e,unit:"hour"}},days:{timeUnit:"days",heading:this._messages.timeUnitOptions.day,numberFormatOptions:{...this.#e,unit:"day"}},weeks:{timeUnit:"weeks",heading:this._messages.timeUnitOptions.week,numberFormatOptions:{...this.#e,unit:"week"}},months:{timeUnit:"months",heading:this._messages.timeUnitOptions.month,numberFormatOptions:{...this.#e,unit:"month"}},years:{timeUnit:"years",heading:this._messages.timeUnitOptions.year,numberFormatOptions:{...this.#e,unit:"year"}}};return{get:t=>e[t],has:t=>t in e,values:Object.values(e)}}get _defaultTimeZoneMode(){switch(this.viewModel?.timeZone){case u:case void 0:return"system";case p:return"unknown";default:return"specific"}}get _defaultStopCount(){return m(this.viewModel?.stops)?this.viewModel.stops.count:10}get _defaultStopIntervalValue(){return n(this.viewModel?.stops)?this.viewModel.stops.interval.value:1}get _defaultStopIntervalUnit(){return n(this.viewModel?.stops)?this.viewModel.stops.interval.unit:"years"}get _messages(){return this.messages??oe}get _timeZoneMode(){return this.#o??this._defaultTimeZoneMode}set _timeZoneMode(e){let t=this._timeZoneMode;t!==e&&(this.#o=e,this.requestUpdate("_timeZoneMode",t))}get _stopCount(){return this.#l??this._defaultStopCount}set _stopCount(e){let t=this._stopCount;t!==e&&(this.#l=e,this.requestUpdate("_stopCount",t))}get _stopIntervalValue(){return this.#n??this._defaultStopIntervalValue}set _stopIntervalValue(e){let t=this._stopIntervalValue;t!==e&&(this.#n=e,this.requestUpdate("_stopIntervalValue",t))}get _stopIntervalUnit(){return this.#c??this._defaultStopIntervalUnit}set _stopIntervalUnit(e){let t=this._stopIntervalUnit;t!==e&&(this.#c=e,this.requestUpdate("_stopIntervalUnit",t))}get _formatDescription(){switch(this.viewModel?.format){case"date":return this._messages.formatOptions.dateOnly;case"date-time":return this._messages.formatOptions.dateAndTime;default:return""}}get _playbackRateDescription(){let{viewModel:e}=this;if(!e)return"";let t=e.formatNumber(e.playRate,this._timeUnitSettings.get("milliseconds").numberFormatOptions);return this._messages.everyDurationTemplate.replace("{duration}",t)}get _formatStart(){let{viewModel:e}=this,t=e?.fullTimeExtent?.start;return t?e.formatDateTime(t):""}get _formatEnd(){let{viewModel:e}=this,t=e?.fullTimeExtent?.end;return t?e.formatDateTime(t):""}get _modeDescription(){let e=this.viewModel?.mode;return e?this._messages.modeOptions[e]:""}get _stopDescription(){let{viewModel:e}=this,t=e?.stops;if(!t)return this._messages.stopOptions.freeMovement;if(m(t))return this._messages.stopOptions.evenlySpacedTemplate.replace("{count}",`${t.count}`);if(n(t)){let{value:i,unit:s}=t.interval;if(!this._timeUnitSettings.has(s))return this._messages.everyDurationPartsTemplate.replace("{count}",`${i}`).replace("{timeUnit}",s);let l=this._timeUnitSettings.get(s).numberFormatOptions,h=e.formatNumber(i,l);return this._messages.everyDurationTemplate.replace("{duration}",h)}return this._messages.stopOptions.discreteDates}async destroy(){await this.manager.destroy()}async navigateToOverview(){this._selectedFlowItem="overview"}#r(){let{viewModel:e}=this;if(!e?.fullTimeExtent||!this.#t.value?.value||!this.#i.value?.value)return;let t=this.#t.value.value,i=this.#i.value.value,s=c(e.timeZone),l=b(t,i,s);l&&(e.fullTimeExtent=new I({start:e.fullTimeExtent.start,end:l}))}#m(){let{viewModel:e}=this;if(!e?.fullTimeExtent||!this.#s.value?.value||!this.#a.value?.value)return;let t=this.#s.value.value,i=this.#a.value.value,s=c(e.timeZone),l=b(t,i,s);if(!l)return;let{end:h}=e.fullTimeExtent;e.fullTimeExtent=new I({start:l,end:h})}render(){let{viewModel:e}=this;if(!e)return null;let{disabled:t}=e;return a`<div class=${d({disabled:t})}><calcite-flow>${this.#h(e)}${this.#d(e)}${this.#u(e)}${this.#p(e)}${this.#v(e)}${this.#g(e)}${this.#b(e)}${this.#_(e)}</calcite-flow></div>`}#d(e){if(this._selectedFlowItem!=="end")return null;let{fullTimeExtent:t,disabled:i,timeZone:s}=e;if(!t?.end)return null;let l=c(s);return a`<calcite-flow-item .description=${this._messages.endDescription} .heading=${this._messages.end} @calciteFlowItemBack=${this.navigateToOverview} selected><div class="end-content"><calcite-label><span>${this._messages.date}</span><calcite-input-date-picker .disabled=${i} @calciteInputDatePickerChange=${this.#r} .value=${v(t.end,l)} ${r(this.#t)}></calcite-input-date-picker></calcite-label><calcite-label><span>${this._messages.time}</span><calcite-input-time-picker .disabled=${i} @calciteInputTimePickerChange=${this.#r} step=1 .value=${g(t.end,l)} ${r(this.#i)}></calcite-input-time-picker></calcite-label></div></calcite-flow-item>`}#u(e){return this._selectedFlowItem!=="format"?null:a`<calcite-flow-item .description=${this._messages.displayDescription} .heading=${this._messages.display} @calciteFlowItemBack=${this.navigateToOverview} selected><div class="format-content"><calcite-radio-button-group class="format-radio-button-group" layout=vertical name=format @calciteRadioButtonGroupChange=${t=>e.format=t.currentTarget.selectedItem?.value}><calcite-radio-button .labelText=${this._messages.formatOptions.dateOnly} value=date .checked=${e.format==="date"}></calcite-radio-button><calcite-radio-button .checked=${e.format==="date-time"} .labelText=${this._messages.formatOptions.dateAndTime} value=date-time></calcite-radio-button></calcite-radio-button-group></div></calcite-flow-item>`}#p(e){if(this._selectedFlowItem!=="mode")return null;let t=["instant","time-window","cumulative-from-start","cumulative-from-end"];return a`<calcite-flow-item .description=${this._messages.modeDescription} .heading=${this._messages.mode} @calciteFlowItemBack=${this.navigateToOverview} selected><div class="mode-content"><calcite-radio-button-group name=mode layout=vertical @calciteRadioButtonGroupChange=${i=>e.mode=i.currentTarget.selectedItem?.value} class="mode-radio-button-group">${t.map(i=>a`<calcite-radio-button .labelText=${this._messages.modeOptions[i]} .value=${i} .checked=${e.mode===i}></calcite-radio-button>`)}</calcite-radio-button-group></div></calcite-flow-item>`}#h(e){return a`<calcite-flow-item .selected=${this._selectedFlowItem==="overview"}><calcite-list .label=${this._messages.overview}><calcite-list-item @calciteListItemSelect=${()=>this._selectedFlowItem="format"}><div slot=content class="list-item--content"><calcite-label class="label-heading">${this._messages.display}</calcite-label><calcite-label class="label-description">${this._formatDescription}</calcite-label></div><calcite-icon slot=content-end scale=s icon=chevron-right flip-rtl></calcite-icon></calcite-list-item><calcite-list-item @calciteListItemSelect=${()=>this._selectedFlowItem="mode"}><div slot=content class="list-item--content"><calcite-label class="label-heading">${this._messages.mode}</calcite-label><calcite-label class="label-description">${this._modeDescription}</calcite-label></div><calcite-icon slot=content-end scale=s icon=chevron-right flip-rtl></calcite-icon></calcite-list-item><calcite-list-item @calciteListItemSelect=${()=>this._selectedFlowItem="time-zone"}><div slot=content class="list-item--content"><calcite-label class="label-heading">${this._messages.timeZone}</calcite-label>${this.#f()}</div><calcite-icon slot=content-end scale=s icon=chevron-right flip-rtl></calcite-icon></calcite-list-item><calcite-list-item @calciteListItemSelect=${()=>this._selectedFlowItem="start"}><div slot=content class="list-item--content"><calcite-label class="label-heading">${this._messages.start}</calcite-label><calcite-label class="label-description">${this._formatStart}</calcite-label></div><calcite-icon slot=content-end scale=s icon=chevron-right flip-rtl></calcite-icon></calcite-list-item><calcite-list-item @calciteListItemSelect=${()=>this._selectedFlowItem="end"}><div slot=content class="list-item--content"><calcite-label class="label-heading">${this._messages.end}</calcite-label><calcite-label class="label-description">${this._formatEnd}</calcite-label></div><calcite-icon slot=content-end scale=s icon=chevron-right flip-rtl></calcite-icon></calcite-list-item><calcite-list-item @calciteListItemSelect=${()=>this._selectedFlowItem="stops"}><div slot=content class="list-item--content"><calcite-label class="label-heading">${this._messages.stops}</calcite-label><calcite-label class="label-description">${this._stopDescription}</calcite-label></div><calcite-icon slot=content-end scale=s icon=chevron-right flip-rtl></calcite-icon></calcite-list-item><calcite-list-item @calciteListItemSelect=${()=>this._selectedFlowItem="playback-rate"}><div slot=content class="list-item--content"><calcite-label class="label-heading">${this._messages.playbackRate}</calcite-label><calcite-label class="label-description">${this._playbackRateDescription}</calcite-label></div><calcite-icon slot=content-end scale=s icon=chevron-right flip-rtl></calcite-icon></calcite-list-item><calcite-list-item><calcite-label slot=content class="label-heading">${this._messages.loop}</calcite-label><calcite-switch .checked=${e.loop} .label=${this._messages.loop} @calciteSwitchChange=${t=>e.loop=t.target.checked} slot=content-end></calcite-switch></calcite-list-item></calcite-list></calcite-flow-item>`}#v(e){if(this._selectedFlowItem!=="playback-rate")return null;let{playRate:t,disabled:i}=e;return a`<calcite-flow-item .description=${this._messages.playbackRateDescription} .heading=${this._messages.playbackRate} @calciteFlowItemBack=${this.navigateToOverview} selected><div class="playback-rate-content"><arcgis-slider .disabled=${i} .labelFormatter=${s=>e.formatNumber(s,this._timeUnitSettings.get("milliseconds").numberFormatOptions)} max=2000 min=100 @arcgisChange=${s=>e.playRate=s.target.values[0]} precision=0 steps=10 value-labels-display=always .values=${[t]}><arcgis-ticks max=2000 min=100 mode=value show-labels slot=content-end style="flex:1;" .values=${[100,500,1e3,1500,2e3]}></arcgis-ticks></arcgis-slider></div></calcite-flow-item>`}#g(e){if(this._selectedFlowItem!=="start")return null;let{fullTimeExtent:t,disabled:i,timeZone:s}=e;if(!t?.start)return null;let l=c(s);return a`<calcite-flow-item .description=${this._messages.startDescription} .heading=${this._messages.start} @calciteFlowItemBack=${this.navigateToOverview} selected><div class="start-content"><calcite-label><span>${this._messages.date}</span><calcite-input-date-picker .disabled=${i} @calciteInputDatePickerChange=${this.#m} .value=${v(t.start,l)} ${r(this.#s)}></calcite-input-date-picker></calcite-label><calcite-label><span>${this._messages.time}</span><calcite-input-time-picker .disabled=${i} @calciteInputTimePickerChange=${this.#m} step=1 .value=${g(t.start,l)} ${r(this.#a)}></calcite-input-time-picker></calcite-label></div></calcite-flow-item>`}#b(e){return this._selectedFlowItem!=="stops"?null:a`<calcite-flow-item .description=${this._messages.stopsDescription} .heading=${this._messages.stops} @calciteFlowItemBack=${this.navigateToOverview} selected><div class="stops-content"><calcite-radio-button-group .disabled=${e.disabled} class="mode-radio-button-group" layout=vertical name=stops><calcite-radio-button .checked=${!e.stops} .labelText=${this._messages.stopOptions.freeMovement} @calciteRadioButtonChange=${()=>{e.stops=void 0}} value></calcite-radio-button><calcite-radio-button .checked=${m(e.stops)} .labelText=${this._messages.stopOptions.evenlySpaced} @calciteRadioButtonChange=${()=>{e.stops={count:10}}} value></calcite-radio-button><div class="stops-indent"><calcite-input-number .disabled=${e.disabled||!m(e.stops)} integer min=1 .placeholder=${this._messages.countPrompt} .value=${`${this._stopCount}`} @calciteInputNumberChange=${t=>{let i=Number.parseInt(t.currentTarget.value,10);e.stops={count:i}}}></calcite-input-number></div><calcite-radio-button .checked=${n(e.stops)} .labelText=${this._messages.regularInterval} @calciteRadioButtonChange=${()=>{e.stops={interval:new _({value:this._stopIntervalValue,unit:this._stopIntervalUnit})}}} value></calcite-radio-button><div class="stops-indent"><calcite-label><span class=${d({disabled:e.disabled||!n(e.stops)})}>${this._messages.count}</span><calcite-input-number .disabled=${e.disabled||!n(e.stops)} integer min=1 .placeholder=${this._messages.countPrompt} .value=${`${this._stopIntervalValue}`} @calciteInputNumberChange=${t=>{this._stopIntervalValue=Number.parseInt(t.currentTarget.value,10),e.stops={interval:new _({value:this._stopIntervalValue,unit:this._stopIntervalUnit})}}}></calcite-input-number></calcite-label><calcite-label><span class=${d({disabled:e.disabled||!n(e.stops)})}>${this._messages.unit}</span><calcite-combobox .disabled=${e.disabled||!n(e.stops)} .label=${this._messages.units} .placeholder=${this._messages.unitPrompt} selection-mode=single-persist @calciteComboboxChange=${t=>{this._stopIntervalUnit=t.currentTarget.selectedItems[0]?.value,e.stops={interval:new _({value:this._stopIntervalValue,unit:this._stopIntervalUnit})}}}>${this._timeUnitSettings.values.map(({timeUnit:t,heading:i})=>a`<calcite-combobox-item .value=${t} .heading=${i} .selected=${this._stopIntervalUnit===t}></calcite-combobox-item>`)}</calcite-combobox></calcite-label></div></calcite-radio-button-group></div></calcite-flow-item>`}#_(e){return this._selectedFlowItem!=="time-zone"?null:a`<calcite-flow-item .description=${this._messages.timeZoneDescription} .heading=${this._messages.timeZone} @calciteFlowItemBack=${this.navigateToOverview} selected><div class="time-zone-content"><calcite-radio-button-group class="mode-radio-button-group" layout=vertical name=time-zone><calcite-radio-button .checked=${this._timeZoneMode==="system"} .labelText=${this._messages.timeZoneOptions.system} @calciteRadioButtonChange=${()=>{e.timeZone=u}} value></calcite-radio-button><calcite-radio-button .checked=${this._timeZoneMode==="unknown"} .labelText=${this._messages.timeZoneOptions.unknown} @calciteRadioButtonChange=${()=>{e.timeZone=p}} value></calcite-radio-button><calcite-radio-button .checked=${this._timeZoneMode==="specific"} .labelText=${this._messages.timeZoneOptions.specific} @calciteRadioButtonChange=${()=>{e.timeZone=u,this._timeZoneMode="specific"}} value></calcite-radio-button><div class="time-zone-indent"><calcite-input-time-zone class="time-zone-input" .disabled=${this._timeZoneMode!=="specific"} mode=region @calciteInputTimeZoneChange=${t=>e.timeZone=t.target.value} .value=${c(e.timeZone)}></calcite-input-time-zone></div></calcite-radio-button-group></div></calcite-flow-item>`}#f(){let{viewModel:e}=this;if(!e)return null;let{timeZone:t}=e;return t===p?a`<calcite-label class="label-description">${this._messages.timeZoneOptions.unknown}</calcite-label>`:a`<calcite-input-time-zone class="time-zone-label" mode=region overlay-positioning=fixed read-only .value=${c(t)}></calcite-input-time-zone>`}};y("arcgis-time-bar-settings",f);return f},"time/TimeExtent","time/TimeInterval",b)
2
+ import b from"./WE2GHP5E.js";import{a as u,b as p,k as c}from"./4SV6HHMC.js";import{L as o,M as r,N as w,O as d,T as y,a as $,b as a}from"./WTBRS6C4.js";import"./H6RQVSYM.js";export default $arcgis.t(([I,_,{c:m,e:n,j:v,k:g,l:b}])=>{var k="TimeBar",T="Count",O="Please enter count",D="Date",U="Display",F="Choose how to display date and time.",M="End",S="Choose the time bar's end time.",C="Every {count} {timeUnit}",x="Every {duration}",Z={dateAndTime:"Date and time",dateOnly:"Date only"},z="Loop",R="Mode",B="Choose the time extent type shown by the time bar.",E={"cumulative-from-end":"Cumulative from end","cumulative-from-start":"Cumulative from start",instant:"Instant","time-window":"Time window"},P="Next",V="Overview",L="Play",N="Playback rate",q="The speed at which the time bar progresses.",A="Previous",j="Regular interval",G="Settings",H="Start",W="Choose the time bar's start time.",Y="Stop",J={discreteDates:"Discrete dates",evenlySpaced:"Evenly spaced",evenlySpacedTemplate:"{count} evenly spaced",freeMovement:"Free movement"},K="Stops",Q="Choose how the stops are generated for the time bar.",X="Time",ee="Time bar settings",te={day:"Day",hour:"Hour",millisecond:"Millisecond",minute:"Minute",month:"Month",second:"Second",week:"Week",year:"Year"},ie="Time zone",se="Choose the time zone used to display the date and time in the time bar.",ae={specific:"Specific time zone",system:"Device time zone",unknown:"No adjustment"},le="Unit",ne="Please select unit",ce="Units",oe={componentLabel:k,count:T,countPrompt:O,date:D,display:U,displayDescription:F,end:M,endDescription:S,everyDurationPartsTemplate:C,everyDurationTemplate:x,formatOptions:Z,loop:z,mode:R,modeDescription:B,modeOptions:E,next:P,overview:V,play:L,playbackRate:N,playbackRateDescription:q,previous:A,regularInterval:j,settings:G,start:H,startDescription:W,stop:Y,stopOptions:J,stops:K,stopsDescription:Q,time:X,timeBarSettings:ee,timeUnitOptions:te,timeZone:ie,timeZoneDescription:se,timeZoneOptions:ae,unit:le,unitPrompt:ne,units:ce},re=$`:host{background-color:var(--calcite-color-surface-2);block-size:calc(var(--calcite-font-size-relative-5xl) * 8);color:var(--calcite-color-text-1);font-family:var(--calcite-font-family);font-size:var(--calcite-font-size-sm);inline-size:max-content}calcite-flow-item{--calcite-color-background: var(--calcite-color-surface-2)}.disabled{opacity:var(--calcite-opacity-disabled);pointer-events:none}.playback-rate-content{margin-inline-start:var(--calcite-spacing-lg);margin-inline-end:var(--calcite-spacing-lg);margin-block-start:var(--calcite-spacing-lg)}.end-content,.format-content,.mode-content,.start-content,.stops-content,.time-zone-content{margin-inline-start:calc(var(--calcite-spacing-lg) * 3);margin-inline-end:var(--calcite-spacing-lg);margin-block-start:var(--calcite-spacing-lg)}.stops-indent,.time-zone-indent{margin-inline-start:calc(var(--calcite-spacing-lg) * 1.5);margin-block-end:var(--calcite-spacing-lg)}.label-description{font-style:italic}.label-heading{font-weight:var(--calcite-font-weight-semibold)}.list-item--content{--calcite-label-margin-bottom: 0}.time-zone-input{width:calc(var(--calcite-size-md) * 5.5)}.time-zone-label{--calcite-color-background: transparent;--calcite-color-border-input: transparent;font-style:italic;margin-inline-start:calc(var(--calcite-spacing-md) * -1);margin-block-start:calc(var(--calcite-spacing-md) * -.5)}`,f=class extends w{constructor(){super(...arguments),this.#t=o(),this.#i=o(),this.#s=o(),this.#a=o(),this.#e={maximumFractionDigits:0,style:"unit",unitDisplay:"long"},this._selectedFlowItem="overview",this.autoDestroyDisabled=!1}static{this.properties={_timeUnitSettings:16,_defaultTimeZoneMode:16,_defaultStopCount:16,_defaultStopIntervalValue:16,_defaultStopIntervalUnit:16,_messages:16,_timeZoneMode:16,_stopCount:16,_stopIntervalValue:16,_stopIntervalUnit:16,_formatDescription:16,_playbackRateDescription:16,_formatStart:16,_formatEnd:16,_modeDescription:16,_selectedFlowItem:16,_stopDescription:16,autoDestroyDisabled:5,messages:0,viewModel:0}}static{this.styles=re}#l;#n;#c;#o;#t;#i;#s;#a;#e;get _timeUnitSettings(){let e={milliseconds:{timeUnit:"milliseconds",heading:this._messages.timeUnitOptions.millisecond,numberFormatOptions:{...this.#e,unit:"millisecond"}},seconds:{timeUnit:"seconds",heading:this._messages.timeUnitOptions.second,numberFormatOptions:{...this.#e,unit:"second"}},minutes:{timeUnit:"minutes",heading:this._messages.timeUnitOptions.minute,numberFormatOptions:{...this.#e,unit:"minute"}},hours:{timeUnit:"hours",heading:this._messages.timeUnitOptions.hour,numberFormatOptions:{...this.#e,unit:"hour"}},days:{timeUnit:"days",heading:this._messages.timeUnitOptions.day,numberFormatOptions:{...this.#e,unit:"day"}},weeks:{timeUnit:"weeks",heading:this._messages.timeUnitOptions.week,numberFormatOptions:{...this.#e,unit:"week"}},months:{timeUnit:"months",heading:this._messages.timeUnitOptions.month,numberFormatOptions:{...this.#e,unit:"month"}},years:{timeUnit:"years",heading:this._messages.timeUnitOptions.year,numberFormatOptions:{...this.#e,unit:"year"}}};return{get:t=>e[t],has:t=>t in e,values:Object.values(e)}}get _defaultTimeZoneMode(){switch(this.viewModel?.timeZone){case u:case void 0:return"system";case p:return"unknown";default:return"specific"}}get _defaultStopCount(){return m(this.viewModel?.stops)?this.viewModel.stops.count:10}get _defaultStopIntervalValue(){return n(this.viewModel?.stops)?this.viewModel.stops.interval.value:1}get _defaultStopIntervalUnit(){return n(this.viewModel?.stops)?this.viewModel.stops.interval.unit:"years"}get _messages(){return this.messages??oe}get _timeZoneMode(){return this.#o??this._defaultTimeZoneMode}set _timeZoneMode(e){let t=this._timeZoneMode;t!==e&&(this.#o=e,this.requestUpdate("_timeZoneMode",t))}get _stopCount(){return this.#l??this._defaultStopCount}set _stopCount(e){let t=this._stopCount;t!==e&&(this.#l=e,this.requestUpdate("_stopCount",t))}get _stopIntervalValue(){return this.#n??this._defaultStopIntervalValue}set _stopIntervalValue(e){let t=this._stopIntervalValue;t!==e&&(this.#n=e,this.requestUpdate("_stopIntervalValue",t))}get _stopIntervalUnit(){return this.#c??this._defaultStopIntervalUnit}set _stopIntervalUnit(e){let t=this._stopIntervalUnit;t!==e&&(this.#c=e,this.requestUpdate("_stopIntervalUnit",t))}get _formatDescription(){switch(this.viewModel?.format){case"date":return this._messages.formatOptions.dateOnly;case"date-time":return this._messages.formatOptions.dateAndTime;default:return""}}get _playbackRateDescription(){let{viewModel:e}=this;if(!e)return"";let t=e.formatNumber(e.playRate,this._timeUnitSettings.get("milliseconds").numberFormatOptions);return this._messages.everyDurationTemplate.replace("{duration}",t)}get _formatStart(){let{viewModel:e}=this,t=e?.fullTimeExtent?.start;return t?e.formatDateTime(t):""}get _formatEnd(){let{viewModel:e}=this,t=e?.fullTimeExtent?.end;return t?e.formatDateTime(t):""}get _modeDescription(){let e=this.viewModel?.mode;return e?this._messages.modeOptions[e]:""}get _stopDescription(){let{viewModel:e}=this,t=e?.stops;if(!t)return this._messages.stopOptions.freeMovement;if(m(t))return this._messages.stopOptions.evenlySpacedTemplate.replace("{count}",`${t.count}`);if(n(t)){let{value:i,unit:s}=t.interval;if(!this._timeUnitSettings.has(s))return this._messages.everyDurationPartsTemplate.replace("{count}",`${i}`).replace("{timeUnit}",s);let l=this._timeUnitSettings.get(s).numberFormatOptions,h=e.formatNumber(i,l);return this._messages.everyDurationTemplate.replace("{duration}",h)}return this._messages.stopOptions.discreteDates}async destroy(){await this.manager.destroy()}async navigateToOverview(){this._selectedFlowItem="overview"}#r(){let{viewModel:e}=this;if(!e?.fullTimeExtent||!this.#t.value?.value||!this.#i.value?.value)return;let t=this.#t.value.value,i=this.#i.value.value,s=c(e.timeZone),l=b(t,i,s);l&&(e.fullTimeExtent=new I({start:e.fullTimeExtent.start,end:l}))}#m(){let{viewModel:e}=this;if(!e?.fullTimeExtent||!this.#s.value?.value||!this.#a.value?.value)return;let t=this.#s.value.value,i=this.#a.value.value,s=c(e.timeZone),l=b(t,i,s);if(!l)return;let{end:h}=e.fullTimeExtent;e.fullTimeExtent=new I({start:l,end:h})}render(){let{viewModel:e}=this;if(!e)return null;let{disabled:t}=e;return a`<div class=${d({disabled:t})}><calcite-flow>${this.#h(e)}${this.#d(e)}${this.#u(e)}${this.#p(e)}${this.#v(e)}${this.#g(e)}${this.#b(e)}${this.#_(e)}</calcite-flow></div>`}#d(e){if(this._selectedFlowItem!=="end")return null;let{fullTimeExtent:t,disabled:i,timeZone:s}=e;if(!t?.end)return null;let l=c(s);return a`<calcite-flow-item .description=${this._messages.endDescription} .heading=${this._messages.end} @calciteFlowItemBack=${this.navigateToOverview} selected><div class="end-content"><calcite-label><span>${this._messages.date}</span><calcite-input-date-picker .disabled=${i} @calciteInputDatePickerChange=${this.#r} .value=${v(t.end,l)} ${r(this.#t)}></calcite-input-date-picker></calcite-label><calcite-label><span>${this._messages.time}</span><calcite-input-time-picker .disabled=${i} @calciteInputTimePickerChange=${this.#r} step=1 .value=${g(t.end,l)} ${r(this.#i)}></calcite-input-time-picker></calcite-label></div></calcite-flow-item>`}#u(e){return this._selectedFlowItem!=="format"?null:a`<calcite-flow-item .description=${this._messages.displayDescription} .heading=${this._messages.display} @calciteFlowItemBack=${this.navigateToOverview} selected><div class="format-content"><calcite-radio-button-group class="format-radio-button-group" layout=vertical name=format @calciteRadioButtonGroupChange=${t=>e.format=t.currentTarget.selectedItem?.value}><calcite-radio-button .labelText=${this._messages.formatOptions.dateOnly} value=date .checked=${e.format==="date"}></calcite-radio-button><calcite-radio-button .checked=${e.format==="date-time"} .labelText=${this._messages.formatOptions.dateAndTime} value=date-time></calcite-radio-button></calcite-radio-button-group></div></calcite-flow-item>`}#p(e){if(this._selectedFlowItem!=="mode")return null;let t=["instant","time-window","cumulative-from-start","cumulative-from-end"];return a`<calcite-flow-item .description=${this._messages.modeDescription} .heading=${this._messages.mode} @calciteFlowItemBack=${this.navigateToOverview} selected><div class="mode-content"><calcite-radio-button-group name=mode layout=vertical @calciteRadioButtonGroupChange=${i=>e.mode=i.currentTarget.selectedItem?.value} class="mode-radio-button-group">${t.map(i=>a`<calcite-radio-button .labelText=${this._messages.modeOptions[i]} .value=${i} .checked=${e.mode===i}></calcite-radio-button>`)}</calcite-radio-button-group></div></calcite-flow-item>`}#h(e){return a`<calcite-flow-item .selected=${this._selectedFlowItem==="overview"}><calcite-list .label=${this._messages.overview}><calcite-list-item @calciteListItemSelect=${()=>this._selectedFlowItem="format"}><div slot=content class="list-item--content"><calcite-label class="label-heading">${this._messages.display}</calcite-label><calcite-label class="label-description">${this._formatDescription}</calcite-label></div><calcite-icon slot=content-end scale=s icon=chevron-right flip-rtl></calcite-icon></calcite-list-item><calcite-list-item @calciteListItemSelect=${()=>this._selectedFlowItem="mode"}><div slot=content class="list-item--content"><calcite-label class="label-heading">${this._messages.mode}</calcite-label><calcite-label class="label-description">${this._modeDescription}</calcite-label></div><calcite-icon slot=content-end scale=s icon=chevron-right flip-rtl></calcite-icon></calcite-list-item><calcite-list-item @calciteListItemSelect=${()=>this._selectedFlowItem="time-zone"}><div slot=content class="list-item--content"><calcite-label class="label-heading">${this._messages.timeZone}</calcite-label>${this.#f()}</div><calcite-icon slot=content-end scale=s icon=chevron-right flip-rtl></calcite-icon></calcite-list-item><calcite-list-item @calciteListItemSelect=${()=>this._selectedFlowItem="start"}><div slot=content class="list-item--content"><calcite-label class="label-heading">${this._messages.start}</calcite-label><calcite-label class="label-description">${this._formatStart}</calcite-label></div><calcite-icon slot=content-end scale=s icon=chevron-right flip-rtl></calcite-icon></calcite-list-item><calcite-list-item @calciteListItemSelect=${()=>this._selectedFlowItem="end"}><div slot=content class="list-item--content"><calcite-label class="label-heading">${this._messages.end}</calcite-label><calcite-label class="label-description">${this._formatEnd}</calcite-label></div><calcite-icon slot=content-end scale=s icon=chevron-right flip-rtl></calcite-icon></calcite-list-item><calcite-list-item @calciteListItemSelect=${()=>this._selectedFlowItem="stops"}><div slot=content class="list-item--content"><calcite-label class="label-heading">${this._messages.stops}</calcite-label><calcite-label class="label-description">${this._stopDescription}</calcite-label></div><calcite-icon slot=content-end scale=s icon=chevron-right flip-rtl></calcite-icon></calcite-list-item><calcite-list-item @calciteListItemSelect=${()=>this._selectedFlowItem="playback-rate"}><div slot=content class="list-item--content"><calcite-label class="label-heading">${this._messages.playbackRate}</calcite-label><calcite-label class="label-description">${this._playbackRateDescription}</calcite-label></div><calcite-icon slot=content-end scale=s icon=chevron-right flip-rtl></calcite-icon></calcite-list-item><calcite-list-item><calcite-label slot=content class="label-heading">${this._messages.loop}</calcite-label><calcite-switch .checked=${e.loop} .label=${this._messages.loop} @calciteSwitchChange=${t=>e.loop=t.target.checked} slot=content-end></calcite-switch></calcite-list-item></calcite-list></calcite-flow-item>`}#v(e){if(this._selectedFlowItem!=="playback-rate")return null;let{playRate:t,disabled:i}=e;return a`<calcite-flow-item .description=${this._messages.playbackRateDescription} .heading=${this._messages.playbackRate} @calciteFlowItemBack=${this.navigateToOverview} selected><div class="playback-rate-content"><arcgis-slider .disabled=${i} .labelFormatter=${s=>e.formatNumber(s,this._timeUnitSettings.get("milliseconds").numberFormatOptions)} max=2000 min=100 @arcgisChange=${s=>e.playRate=s.target.values[0]} precision=0 steps=10 value-labels-display=always .values=${[t]}><arcgis-ticks max=2000 min=100 mode=value show-labels slot=content-end style="flex:1;" .values=${[100,500,1e3,1500,2e3]}></arcgis-ticks></arcgis-slider></div></calcite-flow-item>`}#g(e){if(this._selectedFlowItem!=="start")return null;let{fullTimeExtent:t,disabled:i,timeZone:s}=e;if(!t?.start)return null;let l=c(s);return a`<calcite-flow-item .description=${this._messages.startDescription} .heading=${this._messages.start} @calciteFlowItemBack=${this.navigateToOverview} selected><div class="start-content"><calcite-label><span>${this._messages.date}</span><calcite-input-date-picker .disabled=${i} @calciteInputDatePickerChange=${this.#m} .value=${v(t.start,l)} ${r(this.#s)}></calcite-input-date-picker></calcite-label><calcite-label><span>${this._messages.time}</span><calcite-input-time-picker .disabled=${i} @calciteInputTimePickerChange=${this.#m} step=1 .value=${g(t.start,l)} ${r(this.#a)}></calcite-input-time-picker></calcite-label></div></calcite-flow-item>`}#b(e){return this._selectedFlowItem!=="stops"?null:a`<calcite-flow-item .description=${this._messages.stopsDescription} .heading=${this._messages.stops} @calciteFlowItemBack=${this.navigateToOverview} selected><div class="stops-content"><calcite-radio-button-group .disabled=${e.disabled} class="mode-radio-button-group" layout=vertical name=stops><calcite-radio-button .checked=${!e.stops} .labelText=${this._messages.stopOptions.freeMovement} @calciteRadioButtonChange=${()=>{e.stops=void 0}} value></calcite-radio-button><calcite-radio-button .checked=${m(e.stops)} .labelText=${this._messages.stopOptions.evenlySpaced} @calciteRadioButtonChange=${()=>{e.stops={count:10}}} value></calcite-radio-button><div class="stops-indent"><calcite-input-number .disabled=${e.disabled||!m(e.stops)} integer min=1 .placeholder=${this._messages.countPrompt} .value=${`${this._stopCount}`} @calciteInputNumberChange=${t=>{let i=Number.parseInt(t.currentTarget.value,10);e.stops={count:i}}}></calcite-input-number></div><calcite-radio-button .checked=${n(e.stops)} .labelText=${this._messages.regularInterval} @calciteRadioButtonChange=${()=>{e.stops={interval:new _({value:this._stopIntervalValue,unit:this._stopIntervalUnit})}}} value></calcite-radio-button><div class="stops-indent"><calcite-label><span class=${d({disabled:e.disabled||!n(e.stops)})}>${this._messages.count}</span><calcite-input-number .disabled=${e.disabled||!n(e.stops)} integer min=1 .placeholder=${this._messages.countPrompt} .value=${`${this._stopIntervalValue}`} @calciteInputNumberChange=${t=>{this._stopIntervalValue=Number.parseInt(t.currentTarget.value,10),e.stops={interval:new _({value:this._stopIntervalValue,unit:this._stopIntervalUnit})}}}></calcite-input-number></calcite-label><calcite-label><span class=${d({disabled:e.disabled||!n(e.stops)})}>${this._messages.unit}</span><calcite-combobox .disabled=${e.disabled||!n(e.stops)} .label=${this._messages.units} .placeholder=${this._messages.unitPrompt} selection-mode=single-persist @calciteComboboxChange=${t=>{this._stopIntervalUnit=t.currentTarget.selectedItems[0]?.value,e.stops={interval:new _({value:this._stopIntervalValue,unit:this._stopIntervalUnit})}}}>${this._timeUnitSettings.values.map(({timeUnit:t,heading:i})=>a`<calcite-combobox-item .value=${t} .heading=${i} .selected=${this._stopIntervalUnit===t}></calcite-combobox-item>`)}</calcite-combobox></calcite-label></div></calcite-radio-button-group></div></calcite-flow-item>`}#_(e){return this._selectedFlowItem!=="time-zone"?null:a`<calcite-flow-item .description=${this._messages.timeZoneDescription} .heading=${this._messages.timeZone} @calciteFlowItemBack=${this.navigateToOverview} selected><div class="time-zone-content"><calcite-radio-button-group class="mode-radio-button-group" layout=vertical name=time-zone><calcite-radio-button .checked=${this._timeZoneMode==="system"} .labelText=${this._messages.timeZoneOptions.system} @calciteRadioButtonChange=${()=>{e.timeZone=u}} value></calcite-radio-button><calcite-radio-button .checked=${this._timeZoneMode==="unknown"} .labelText=${this._messages.timeZoneOptions.unknown} @calciteRadioButtonChange=${()=>{e.timeZone=p}} value></calcite-radio-button><calcite-radio-button .checked=${this._timeZoneMode==="specific"} .labelText=${this._messages.timeZoneOptions.specific} @calciteRadioButtonChange=${()=>{e.timeZone=u,this._timeZoneMode="specific"}} value></calcite-radio-button><div class="time-zone-indent"><calcite-input-time-zone class="time-zone-input" .disabled=${this._timeZoneMode!=="specific"} mode=region @calciteInputTimeZoneChange=${t=>e.timeZone=t.target.value} .value=${c(e.timeZone)}></calcite-input-time-zone></div></calcite-radio-button-group></div></calcite-flow-item>`}#f(){let{viewModel:e}=this;if(!e)return null;let{timeZone:t}=e;return t===p?a`<calcite-label class="label-description">${this._messages.timeZoneOptions.unknown}</calcite-label>`:a`<calcite-input-time-zone class="time-zone-label" mode=region overlay-positioning=fixed read-only .value=${c(t)}></calcite-input-time-zone>`}};y("arcgis-time-bar-settings",f);return f},"time/TimeExtent","time/TimeInterval",b)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{N as l,T as b,a as o,b as i,w as g}from"./WXLC6FPD.js";import"./H6RQVSYM.js";export default $arcgis.t(([,{watch:d}])=>{var x=o`:host{--arcgis-internal-presentation-background-opacity: .6}.captions-container{width:100%;height:100%;padding-inline-start:var(--arcgis-internal-presentation-padding-start);padding-inline-end:var(--arcgis-internal-presentation-padding-end)}.captions{height:auto;position:relative;box-sizing:border-box;transition:padding .05s ease-in 0s;min-height:48px;max-width:max(400px,40%);padding:12px 16px;&:before{content:"";position:absolute;inset-block:-16px -144px;inset-inline:calc(-64px - var(--arcgis-internal-presentation-padding-start)) calc(0px - max(360px,32vw));background:var(--caption-gradient);mask:var(--caption-gradient-mask-before);opacity:var(--arcgis-internal-presentation-background-opacity);z-index:-1}&:after{content:"";position:absolute;inset:-32px;z-index:-2;background-color:#fff0;mask:var(--caption-gradient-mask-after);mask-mode:luminance;mask-composite:intersect;background-size:cover;backdrop-filter:blur(2px);opacity:var(--calcite-opacity-dark)}}:dir(rtl) .captions{&:before{mask:var(--caption-gradient-mask-before-RTL)}}.title{text-wrap:pretty;text-align:start;overflow:hidden;text-overflow:ellipsis;overflow-wrap:break-word;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;text-shadow:var(--title-text-shadow);font-size:var(--caption-title-font-size);font-family:Avenir Next World,sans-serif;font-style:normal;font-weight:var(--calcite-font-weight-bold);line-height:var(--calcite-font-line-height-relative-snug);margin-bottom:2px;color:var(--calcite-color-text-1)}.captions-description{text-wrap:pretty;text-align:start;overflow:hidden;text-overflow:ellipsis;overflow-wrap:break-word;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:5;line-clamp:5;text-shadow:var(--description-text-shadow);font-size:var(--caption-description-font-size);font-style:normal;font-weight:var(--calcite-font-weight-medium);line-height:var(--calcite-font-line-height-relative-snug);color:var(--calcite-color-text-1)}.cover-container{width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:space-evenly;padding-block-start:calc(var(--arcgis-internal-presentation-cover-padding-top) + var(--calcite-space-lg));padding-block-end:calc(var(--arcgis-internal-presentation-cover-padding-bottom) + var(--calcite-space-lg))}.cover{display:flex;flex-direction:column;align-items:center;justify-content:center;padding-inline:8px;min-height:88px;min-width:200px;position:relative;padding-inline-start:16px;padding-inline-end:16px;opacity:1;transition:opacity .25s,color .25s;&:before{content:"";position:absolute;inset:calc(0vw - max(320px,12vw,18vh)) calc(0vw - max(320px,24vw));border-radius:120px;background:var(--cover-gradient-before);mask:var(--cover-mask-before);opacity:var(--arcgis-internal-presentation-background-opacity);z-index:-1}&:after{content:"";position:absolute;inset:-32px;z-index:-2;background-color:#fff0;mask:var(--cover-mask-after);mask-mode:luminance;mask-composite:intersect;background-size:cover;backdrop-filter:blur(2px);opacity:var(--calcite-opacity-dark)}}.cover-description{text-wrap:pretty;text-align:center;text-shadow:var(--description-text-shadow);font-size:var(--cover-description-font-size);font-style:normal;font-weight:var(--calcite-font-weight-medium);line-height:var(--calcite-font-line-height-relative-snug);display:-webkit-box;max-width:75ch;overflow-wrap:break-word;overflow:hidden;text-overflow:ellipsis;-webkit-box-orient:vertical;-webkit-line-clamp:5;line-clamp:5;color:var(--calcite-color-text-1)}:host{width:100%;height:100%;position:absolute;top:0;left:0;display:flex;align-items:flex-start;box-sizing:border-box;--caption-gradient: linear-gradient( 180deg, rgb(255 255 255 / 100%) 0%, rgb(255 255 255 / 98.3%) 8.1%, rgb(255 255 255 / 95%) 15.5%, rgb(255 255 255 / 90%) 22.5%, rgb(255 255 255 / 83.3%) 29%, rgb(255 255 255 / 73.3%) 35%, rgb(255 255 255 / 65%) 41%, rgb(255 255 255 / 55%) 47%, rgb(255 255 255 / 45%) 53%, rgb(255 255 255 / 35%) 59%, rgb(255 255 255 / 26.7%) 65%, rgb(255 255 255 / 18.3%) 71%, rgb(255 255 255 / 10%) 77%, rgb(255 255 255 / 4%) 84.5%, rgb(255 255 255 / 1%) 91%, rgb(255 255 255 / 0%) 100% );--title-text-shadow: 0 1px 1px #fff3, 0 0 3px #fff2, 0 0 6px #fff2;--caption-gradient-mask-before: linear-gradient( 90deg, rgb(255 255 255 / 100%) 30%, rgb(255 255 255 / 98.3%) 35.6%, rgb(255 255 255 / 95%) 41%, rgb(255 255 255 / 90%) 46%, rgb(255 255 255 / 83.3%) 50.3%, rgb(255 255 255 / 73.3%) 54.5%, rgb(255 255 255 / 65%) 58.7%, rgb(255 255 255 / 55%) 62.9%, rgb(255 255 255 / 45%) 67%, rgb(255 255 255 / 35%) 71%, rgb(255 255 255 / 26.7%) 75.5%, rgb(255 255 255 / 18.3%) 80%, rgb(255 255 255 / 10%) 84%, rgb(255 255 255 / 4%) 89%, rgb(255 255 255 / 1%) 94%, rgb(255 255 255 / 0%) 100% );--caption-gradient-mask-before-RTL: linear-gradient( 270deg, rgb(255 255 255 / 100%) 30%, rgb(255 255 255 / 98.3%) 35.6%, rgb(255 255 255 / 95%) 41%, rgb(255 255 255 / 90%) 46%, rgb(255 255 255 / 83.3%) 50.3%, rgb(255 255 255 / 73.3%) 54.5%, rgb(255 255 255 / 65%) 58.7%, rgb(255 255 255 / 55%) 62.9%, rgb(255 255 255 / 45%) 67%, rgb(255 255 255 / 35%) 71%, rgb(255 255 255 / 26.7%) 75.5%, rgb(255 255 255 / 18.3%) 80%, rgb(255 255 255 / 10%) 84%, rgb(255 255 255 / 4%) 89%, rgb(255 255 255 / 1%) 94%, rgb(255 255 255 / 0%) 100% );--caption-gradient-mask-after: linear-gradient( 90deg, white calc(100% - 40px) , rgb(255 255 255 / 90%) calc(100% - 35px) , rgb(255 255 255 / 70%) calc(100% - 30px) , rgb(255 255 255 / 50%) calc(100% - 25px) , rgb(255 255 255 / 30%) calc(100% - 20px) , rgb(255 255 255 / 10%) calc(100% - 15px) , black 100% ), linear-gradient( 180deg, white calc(100% - 40px) , rgb(255 255 255 / 90%) calc(100% - 35px) , rgb(255 255 255 / 70%) calc(100% - 30px) , rgb(255 255 255 / 50%) calc(100% - 25px) , rgb(255 255 255 / 30%) calc(100% - 20px) , rgb(255 255 255 / 10%) calc(100% - 15px) , black 100% ), linear-gradient( 270deg, white calc(100% - 40px) , rgb(255 255 255 / 90%) calc(100% - 35px) , rgb(255 255 255 / 70%) calc(100% - 30px) , rgb(255 255 255 / 50%) calc(100% - 25px) , rgb(255 255 255 / 30%) calc(100% - 20px) , rgb(255 255 255 / 10%) calc(100% - 15px) , black 100% ), linear-gradient( 0deg, white calc(100% - 40px) , rgb(255 255 255 / 90%) calc(100% - 35px) , rgb(255 255 255 / 70%) calc(100% - 30px) , rgb(255 255 255 / 50%) calc(100% - 25px) , rgb(255 255 255 / 30%) calc(100% - 20px) , rgb(255 255 255 / 10%) calc(100% - 15px) , black 100% );--description-text-shadow: 0 .5px .5px #fff2, 0 1px 1px #fff2, 0 0 8px #fff2;--caption-title-font-size: max(var(--calcite-font-size-2xl), calc(18px + .64vw) );--caption-description-font-size: max(var(--calcite-font-size), calc(10px + .4vw) );--cover-description-font-size: max(var(--calcite-font-size-md), calc(10px + .5vw) );--cover-gradient-before: linear-gradient( 0deg, rgb(255 255 255 / 0%) 0, rgb(255 255 255 / 1%) 4%, rgb(255 255 255 / 4%) 7.7%, rgb(255 255 255 / 10%) 11.2%, rgb(255 255 255 / 18.3%) 14.5%, rgb(255 255 255 / 26.7%) 17.5%, rgb(255 255 255 / 35%) 20.5%, rgb(255 255 255 / 45%) 23.5%, rgb(255 255 255 / 55%) 26.5%, rgb(255 255 255 / 65%) 29.5%, rgb(255 255 255 / 73.3%) 32.5%, rgb(255 255 255 / 83.3%) 35.5%, rgb(255 255 255 / 90%) 38.5%, rgb(255 255 255 / 95%) 42.2%, rgb(255 255 255 / 98.3%) 46%, rgb(255 255 255 / 100%) 50%, rgb(255 255 255 / 98.3%) 54%, rgb(255 255 255 / 95%) 57.8%, rgb(255 255 255 / 90%) 61.5%, rgb(255 255 255 / 83.3%) 64.5%, rgb(255 255 255 / 73.3%) 67.5%, rgb(255 255 255 / 65%) 70.5%, rgb(255 255 255 / 55%) 73.5%, rgb(255 255 255 / 45%) 76.5%, rgb(255 255 255 / 35%) 79.5%, rgb(255 255 255 / 26.7%) 82.5%, rgb(255 255 255 / 18.3%) 85.5%, rgb(255 255 255 / 10%) 88.8%, rgb(255 255 255 / 4%) 92.3%, rgb(255 255 255 / 1%) 96%, rgb(255 255 255 / 0%) 100% );--cover-mask-before: linear-gradient( 90deg, rgb(255 255 255 / 0%) 0, rgb(255 255 255 / 1%) 3.2%, rgb(255 255 255 / 4%) 6.2%, rgb(255 255 255 / 10%) 9%, rgb(255 255 255 / 18.3%) 11.6%, rgb(255 255 255 / 26.7%) 14%, rgb(255 255 255 / 35%) 16.4%, rgb(255 255 255 / 45%) 18.8%, rgb(255 255 255 / 55%) 21.2%, rgb(255 255 255 / 65%) 23.6%, rgb(255 255 255 / 73.3%) 26%, rgb(255 255 255 / 83.3%) 28.4%, rgb(255 255 255 / 90%) 30.8%, rgb(255 255 255 / 95%) 33.8%, rgb(255 255 255 / 98.3%) 36.8%, rgb(255 255 255 / 100%) 40%, rgb(255 255 255 / 100%) 60%, rgb(255 255 255 / 98.3%) 63.2%, rgb(255 255 255 / 95%) 66.2%, rgb(255 255 255 / 90%) 69.2%, rgb(255 255 255 / 83.3%) 71.6%, rgb(255 255 255 / 73.3%) 74%, rgb(255 255 255 / 65%) 76.4%, rgb(255 255 255 / 55%) 78.8%, rgb(255 255 255 / 45%) 81.2%, rgb(255 255 255 / 35%) 83.6%, rgb(255 255 255 / 26.7%) 86%, rgb(255 255 255 / 18.3%) 88.4%, rgb(255 255 255 / 10%) 91%, rgb(255 255 255 / 4%) 93.9%, rgb(255 255 255 / 1%) 96.8%, rgb(255 255 255 / 0%) 100% );--cover-mask-after: linear-gradient( 90deg, white calc(100% - 40px) , rgb(255 255 255 / 90%) calc(100% - 35px) , rgb(255 255 255 / 70%) calc(100% - 30px) , rgb(255 255 255 / 50%) calc(100% - 25px) , rgb(255 255 255 / 30%) calc(100% - 20px) , rgb(255 255 255 / 10%) calc(100% - 15px) , black 100% ), linear-gradient( 180deg, white calc(100% - 40px) , rgb(255 255 255 / 90%) calc(100% - 35px) , rgb(255 255 255 / 70%) calc(100% - 30px) , rgb(255 255 255 / 50%) calc(100% - 25px) , rgb(255 255 255 / 30%) calc(100% - 20px) , rgb(255 255 255 / 10%) calc(100% - 15px) , black 100% ), linear-gradient( 270deg, white calc(100% - 40px) , rgb(255 255 255 / 90%) calc(100% - 35px) , rgb(255 255 255 / 70%) calc(100% - 30px) , rgb(255 255 255 / 50%) calc(100% - 25px) , rgb(255 255 255 / 30%) calc(100% - 20px) , rgb(255 255 255 / 10%) calc(100% - 15px) , black 100% ), linear-gradient( 0deg, white calc(100% - 40px) , rgb(255 255 255 / 90%) calc(100% - 35px) , rgb(255 255 255 / 70%) calc(100% - 30px) , rgb(255 255 255 / 50%) calc(100% - 25px) , rgb(255 255 255 / 30%) calc(100% - 20px) , rgb(255 255 255 / 10%) calc(100% - 15px) , black 100% );--cover-gradient-phone: linear-gradient( 0deg, rgb(255 255 255 / 0%) .59%, rgb(255 255 255 / 4%) 4.94%, rgb(255 255 255 / 50%) 25.87%, rgb(255 255 255 / 70%) 37.02%, rgb(255 255 255 / 80%) 48.43%, rgb(255 255 255 / 70%) 60.34%, rgb(255 255 255 / 30%) 80.55%, rgb(255 255 255 / 4%) 93.22%, rgb(255 255 255 / 0%) 99.74% );.fadeOut{opacity:1!important}}`,s=50,p=256,a=class extends l{constructor(){super(...arguments),this.transitionActive=!1,this.autoDestroyDisabled=!1,this.arcgisReady=g()}static{this.properties={_appliedSlide:16,slide:0,transitionActive:5,autoDestroyDisabled:5}}static{this.styles=x}async destroy(){await this.manager.destroy()}loaded(){this.manager.onLifecycle(()=>d(()=>({slide:this.slide,transitionActive:this.transitionActive}),({slide:e,transitionActive:r})=>{r?this._appliedSlide=void 0:this._appliedSlide=e},{initial:!0}))}render(){let e=this._appliedSlide?.layout;if(!this._appliedSlide||!e||e==="none")return null;let r=this._appliedSlide.title?.text,t=this._appliedSlide.description?.text,c=r?.length&&r.length>s?`${r?.substring(0,s)}...`:r,n=t?.length&&t.length>p?`${t?.substring(0,p)}...`:t;return e==="caption"?this._renderCaptions(c,n):this._renderCover(c,n)}_renderCover(e,r){return i`<div class="cover-container"><div class="cover"><div class="title">${e}</div><div class="cover-description">${r}</div></div></div>`}_renderCaptions(e,r){return i`<div class="captions-container"><div class="captions"><div class="title">${e}</div><div class="captions-description">${r}</div></div></div>`}};b("arcgis-presentation-captions",a);return a},"core/accessorSupport/decorators","core/reactiveUtils")
2
+ import{N as l,T as b,a as o,b as i,w as g}from"./WTBRS6C4.js";import"./H6RQVSYM.js";export default $arcgis.t(([,{watch:d}])=>{var x=o`:host{--arcgis-internal-presentation-background-opacity: .6}.captions-container{width:100%;height:100%;padding-inline-start:var(--arcgis-internal-presentation-padding-start);padding-inline-end:var(--arcgis-internal-presentation-padding-end)}.captions{height:auto;position:relative;box-sizing:border-box;transition:padding .05s ease-in 0s;min-height:48px;max-width:max(400px,40%);padding:12px 16px;&:before{content:"";position:absolute;inset-block:-16px -144px;inset-inline:calc(-64px - var(--arcgis-internal-presentation-padding-start)) calc(0px - max(360px,32vw));background:var(--caption-gradient);mask:var(--caption-gradient-mask-before);opacity:var(--arcgis-internal-presentation-background-opacity);z-index:-1}&:after{content:"";position:absolute;inset:-32px;z-index:-2;background-color:#fff0;mask:var(--caption-gradient-mask-after);mask-mode:luminance;mask-composite:intersect;background-size:cover;backdrop-filter:blur(2px);opacity:var(--calcite-opacity-dark)}}:dir(rtl) .captions{&:before{mask:var(--caption-gradient-mask-before-RTL)}}.title{text-wrap:pretty;text-align:start;overflow:hidden;text-overflow:ellipsis;overflow-wrap:break-word;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;text-shadow:var(--title-text-shadow);font-size:var(--caption-title-font-size);font-family:Avenir Next World,sans-serif;font-style:normal;font-weight:var(--calcite-font-weight-bold);line-height:var(--calcite-font-line-height-relative-snug);margin-bottom:2px;color:var(--calcite-color-text-1)}.captions-description{text-wrap:pretty;text-align:start;overflow:hidden;text-overflow:ellipsis;overflow-wrap:break-word;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:5;line-clamp:5;text-shadow:var(--description-text-shadow);font-size:var(--caption-description-font-size);font-style:normal;font-weight:var(--calcite-font-weight-medium);line-height:var(--calcite-font-line-height-relative-snug);color:var(--calcite-color-text-1)}.cover-container{width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:space-evenly;padding-block-start:calc(var(--arcgis-internal-presentation-cover-padding-top) + var(--calcite-space-lg));padding-block-end:calc(var(--arcgis-internal-presentation-cover-padding-bottom) + var(--calcite-space-lg))}.cover{display:flex;flex-direction:column;align-items:center;justify-content:center;padding-inline:8px;min-height:88px;min-width:200px;position:relative;padding-inline-start:16px;padding-inline-end:16px;opacity:1;transition:opacity .25s,color .25s;&:before{content:"";position:absolute;inset:calc(0vw - max(320px,12vw,18vh)) calc(0vw - max(320px,24vw));border-radius:120px;background:var(--cover-gradient-before);mask:var(--cover-mask-before);opacity:var(--arcgis-internal-presentation-background-opacity);z-index:-1}&:after{content:"";position:absolute;inset:-32px;z-index:-2;background-color:#fff0;mask:var(--cover-mask-after);mask-mode:luminance;mask-composite:intersect;background-size:cover;backdrop-filter:blur(2px);opacity:var(--calcite-opacity-dark)}}.cover-description{text-wrap:pretty;text-align:center;text-shadow:var(--description-text-shadow);font-size:var(--cover-description-font-size);font-style:normal;font-weight:var(--calcite-font-weight-medium);line-height:var(--calcite-font-line-height-relative-snug);display:-webkit-box;max-width:75ch;overflow-wrap:break-word;overflow:hidden;text-overflow:ellipsis;-webkit-box-orient:vertical;-webkit-line-clamp:5;line-clamp:5;color:var(--calcite-color-text-1)}:host{width:100%;height:100%;position:absolute;top:0;left:0;display:flex;align-items:flex-start;box-sizing:border-box;--caption-gradient: linear-gradient( 180deg, rgb(255 255 255 / 100%) 0%, rgb(255 255 255 / 98.3%) 8.1%, rgb(255 255 255 / 95%) 15.5%, rgb(255 255 255 / 90%) 22.5%, rgb(255 255 255 / 83.3%) 29%, rgb(255 255 255 / 73.3%) 35%, rgb(255 255 255 / 65%) 41%, rgb(255 255 255 / 55%) 47%, rgb(255 255 255 / 45%) 53%, rgb(255 255 255 / 35%) 59%, rgb(255 255 255 / 26.7%) 65%, rgb(255 255 255 / 18.3%) 71%, rgb(255 255 255 / 10%) 77%, rgb(255 255 255 / 4%) 84.5%, rgb(255 255 255 / 1%) 91%, rgb(255 255 255 / 0%) 100% );--title-text-shadow: 0 1px 1px #fff3, 0 0 3px #fff2, 0 0 6px #fff2;--caption-gradient-mask-before: linear-gradient( 90deg, rgb(255 255 255 / 100%) 30%, rgb(255 255 255 / 98.3%) 35.6%, rgb(255 255 255 / 95%) 41%, rgb(255 255 255 / 90%) 46%, rgb(255 255 255 / 83.3%) 50.3%, rgb(255 255 255 / 73.3%) 54.5%, rgb(255 255 255 / 65%) 58.7%, rgb(255 255 255 / 55%) 62.9%, rgb(255 255 255 / 45%) 67%, rgb(255 255 255 / 35%) 71%, rgb(255 255 255 / 26.7%) 75.5%, rgb(255 255 255 / 18.3%) 80%, rgb(255 255 255 / 10%) 84%, rgb(255 255 255 / 4%) 89%, rgb(255 255 255 / 1%) 94%, rgb(255 255 255 / 0%) 100% );--caption-gradient-mask-before-RTL: linear-gradient( 270deg, rgb(255 255 255 / 100%) 30%, rgb(255 255 255 / 98.3%) 35.6%, rgb(255 255 255 / 95%) 41%, rgb(255 255 255 / 90%) 46%, rgb(255 255 255 / 83.3%) 50.3%, rgb(255 255 255 / 73.3%) 54.5%, rgb(255 255 255 / 65%) 58.7%, rgb(255 255 255 / 55%) 62.9%, rgb(255 255 255 / 45%) 67%, rgb(255 255 255 / 35%) 71%, rgb(255 255 255 / 26.7%) 75.5%, rgb(255 255 255 / 18.3%) 80%, rgb(255 255 255 / 10%) 84%, rgb(255 255 255 / 4%) 89%, rgb(255 255 255 / 1%) 94%, rgb(255 255 255 / 0%) 100% );--caption-gradient-mask-after: linear-gradient( 90deg, white calc(100% - 40px) , rgb(255 255 255 / 90%) calc(100% - 35px) , rgb(255 255 255 / 70%) calc(100% - 30px) , rgb(255 255 255 / 50%) calc(100% - 25px) , rgb(255 255 255 / 30%) calc(100% - 20px) , rgb(255 255 255 / 10%) calc(100% - 15px) , black 100% ), linear-gradient( 180deg, white calc(100% - 40px) , rgb(255 255 255 / 90%) calc(100% - 35px) , rgb(255 255 255 / 70%) calc(100% - 30px) , rgb(255 255 255 / 50%) calc(100% - 25px) , rgb(255 255 255 / 30%) calc(100% - 20px) , rgb(255 255 255 / 10%) calc(100% - 15px) , black 100% ), linear-gradient( 270deg, white calc(100% - 40px) , rgb(255 255 255 / 90%) calc(100% - 35px) , rgb(255 255 255 / 70%) calc(100% - 30px) , rgb(255 255 255 / 50%) calc(100% - 25px) , rgb(255 255 255 / 30%) calc(100% - 20px) , rgb(255 255 255 / 10%) calc(100% - 15px) , black 100% ), linear-gradient( 0deg, white calc(100% - 40px) , rgb(255 255 255 / 90%) calc(100% - 35px) , rgb(255 255 255 / 70%) calc(100% - 30px) , rgb(255 255 255 / 50%) calc(100% - 25px) , rgb(255 255 255 / 30%) calc(100% - 20px) , rgb(255 255 255 / 10%) calc(100% - 15px) , black 100% );--description-text-shadow: 0 .5px .5px #fff2, 0 1px 1px #fff2, 0 0 8px #fff2;--caption-title-font-size: max(var(--calcite-font-size-2xl), calc(18px + .64vw) );--caption-description-font-size: max(var(--calcite-font-size), calc(10px + .4vw) );--cover-description-font-size: max(var(--calcite-font-size-md), calc(10px + .5vw) );--cover-gradient-before: linear-gradient( 0deg, rgb(255 255 255 / 0%) 0, rgb(255 255 255 / 1%) 4%, rgb(255 255 255 / 4%) 7.7%, rgb(255 255 255 / 10%) 11.2%, rgb(255 255 255 / 18.3%) 14.5%, rgb(255 255 255 / 26.7%) 17.5%, rgb(255 255 255 / 35%) 20.5%, rgb(255 255 255 / 45%) 23.5%, rgb(255 255 255 / 55%) 26.5%, rgb(255 255 255 / 65%) 29.5%, rgb(255 255 255 / 73.3%) 32.5%, rgb(255 255 255 / 83.3%) 35.5%, rgb(255 255 255 / 90%) 38.5%, rgb(255 255 255 / 95%) 42.2%, rgb(255 255 255 / 98.3%) 46%, rgb(255 255 255 / 100%) 50%, rgb(255 255 255 / 98.3%) 54%, rgb(255 255 255 / 95%) 57.8%, rgb(255 255 255 / 90%) 61.5%, rgb(255 255 255 / 83.3%) 64.5%, rgb(255 255 255 / 73.3%) 67.5%, rgb(255 255 255 / 65%) 70.5%, rgb(255 255 255 / 55%) 73.5%, rgb(255 255 255 / 45%) 76.5%, rgb(255 255 255 / 35%) 79.5%, rgb(255 255 255 / 26.7%) 82.5%, rgb(255 255 255 / 18.3%) 85.5%, rgb(255 255 255 / 10%) 88.8%, rgb(255 255 255 / 4%) 92.3%, rgb(255 255 255 / 1%) 96%, rgb(255 255 255 / 0%) 100% );--cover-mask-before: linear-gradient( 90deg, rgb(255 255 255 / 0%) 0, rgb(255 255 255 / 1%) 3.2%, rgb(255 255 255 / 4%) 6.2%, rgb(255 255 255 / 10%) 9%, rgb(255 255 255 / 18.3%) 11.6%, rgb(255 255 255 / 26.7%) 14%, rgb(255 255 255 / 35%) 16.4%, rgb(255 255 255 / 45%) 18.8%, rgb(255 255 255 / 55%) 21.2%, rgb(255 255 255 / 65%) 23.6%, rgb(255 255 255 / 73.3%) 26%, rgb(255 255 255 / 83.3%) 28.4%, rgb(255 255 255 / 90%) 30.8%, rgb(255 255 255 / 95%) 33.8%, rgb(255 255 255 / 98.3%) 36.8%, rgb(255 255 255 / 100%) 40%, rgb(255 255 255 / 100%) 60%, rgb(255 255 255 / 98.3%) 63.2%, rgb(255 255 255 / 95%) 66.2%, rgb(255 255 255 / 90%) 69.2%, rgb(255 255 255 / 83.3%) 71.6%, rgb(255 255 255 / 73.3%) 74%, rgb(255 255 255 / 65%) 76.4%, rgb(255 255 255 / 55%) 78.8%, rgb(255 255 255 / 45%) 81.2%, rgb(255 255 255 / 35%) 83.6%, rgb(255 255 255 / 26.7%) 86%, rgb(255 255 255 / 18.3%) 88.4%, rgb(255 255 255 / 10%) 91%, rgb(255 255 255 / 4%) 93.9%, rgb(255 255 255 / 1%) 96.8%, rgb(255 255 255 / 0%) 100% );--cover-mask-after: linear-gradient( 90deg, white calc(100% - 40px) , rgb(255 255 255 / 90%) calc(100% - 35px) , rgb(255 255 255 / 70%) calc(100% - 30px) , rgb(255 255 255 / 50%) calc(100% - 25px) , rgb(255 255 255 / 30%) calc(100% - 20px) , rgb(255 255 255 / 10%) calc(100% - 15px) , black 100% ), linear-gradient( 180deg, white calc(100% - 40px) , rgb(255 255 255 / 90%) calc(100% - 35px) , rgb(255 255 255 / 70%) calc(100% - 30px) , rgb(255 255 255 / 50%) calc(100% - 25px) , rgb(255 255 255 / 30%) calc(100% - 20px) , rgb(255 255 255 / 10%) calc(100% - 15px) , black 100% ), linear-gradient( 270deg, white calc(100% - 40px) , rgb(255 255 255 / 90%) calc(100% - 35px) , rgb(255 255 255 / 70%) calc(100% - 30px) , rgb(255 255 255 / 50%) calc(100% - 25px) , rgb(255 255 255 / 30%) calc(100% - 20px) , rgb(255 255 255 / 10%) calc(100% - 15px) , black 100% ), linear-gradient( 0deg, white calc(100% - 40px) , rgb(255 255 255 / 90%) calc(100% - 35px) , rgb(255 255 255 / 70%) calc(100% - 30px) , rgb(255 255 255 / 50%) calc(100% - 25px) , rgb(255 255 255 / 30%) calc(100% - 20px) , rgb(255 255 255 / 10%) calc(100% - 15px) , black 100% );--cover-gradient-phone: linear-gradient( 0deg, rgb(255 255 255 / 0%) .59%, rgb(255 255 255 / 4%) 4.94%, rgb(255 255 255 / 50%) 25.87%, rgb(255 255 255 / 70%) 37.02%, rgb(255 255 255 / 80%) 48.43%, rgb(255 255 255 / 70%) 60.34%, rgb(255 255 255 / 30%) 80.55%, rgb(255 255 255 / 4%) 93.22%, rgb(255 255 255 / 0%) 99.74% );.fadeOut{opacity:1!important}}`,s=50,p=256,a=class extends l{constructor(){super(...arguments),this.transitionActive=!1,this.autoDestroyDisabled=!1,this.arcgisReady=g()}static{this.properties={_appliedSlide:16,slide:0,transitionActive:5,autoDestroyDisabled:5}}static{this.styles=x}async destroy(){await this.manager.destroy()}loaded(){this.manager.onLifecycle(()=>d(()=>({slide:this.slide,transitionActive:this.transitionActive}),({slide:e,transitionActive:r})=>{r?this._appliedSlide=void 0:this._appliedSlide=e},{initial:!0}))}render(){let e=this._appliedSlide?.layout;if(!this._appliedSlide||!e||e==="none")return null;let r=this._appliedSlide.title?.text,t=this._appliedSlide.description?.text,c=r?.length&&r.length>s?`${r?.substring(0,s)}...`:r,n=t?.length&&t.length>p?`${t?.substring(0,p)}...`:t;return e==="caption"?this._renderCaptions(c,n):this._renderCover(c,n)}_renderCover(e,r){return i`<div class="cover-container"><div class="cover"><div class="title">${e}</div><div class="cover-description">${r}</div></div></div>`}_renderCaptions(e,r){return i`<div class="captions-container"><div class="captions"><div class="title">${e}</div><div class="captions-description">${r}</div></div></div>`}};b("arcgis-presentation-captions",a);return a},"core/accessorSupport/decorators","core/reactiveUtils")
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import j from"./5EP57RZK.js";import{a as V,b as $,d as u,g as S,j as U,k as D}from"./G5VPRDMX.js";import{a as g}from"./POKO37D3.js";import i from"./FHWOIM57.js";import"./VJVKFKSG.js";import h from"./3T7L7UT5.js";import{a as z}from"./2BVXNQ3U.js";import{a as p}from"./JD74LG7K.js";import e from"./2FM2FJAY.js";import d from"./YHNRTH56.js";import{g as y}from"./3AQ6NC3C.js";import"./A4X5YDA6.js";import a from"./SDWFNKIL.js";import"./QUZTFUWM.js";import{d as x}from"./4W3T75SY.js";import{N as w,O as f,Q as v,T as b,a as m,b as c,w as _}from"./WXLC6FPD.js";import"./H6RQVSYM.js";export default $arcgis.t(([L,{property:n,subclass:A},{watch:j},C,,,,O,{f:k},M])=>{var B=m`.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}.esri-widget{box-sizing:border-box;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget *,.esri-widget :before,.esri-widget :after{box-sizing:inherit}.esri-widget.esri-widget--disabled>*{opacity:.4;pointer-events:none}.esri-widget.esri-widget--compact{--esri-widget-padding-y: 0;--esri-widget-padding-x: 0}.esri-widget__anchor{color:var(--calcite-color-text-2)}.esri-widget__anchor:hover{color:var(--calcite-color-text-3)}.esri-widget__anchor:hover,.esri-widget__anchor:focus{text-decoration:underline}.esri-widget__anchor--disabled{opacity:.4;pointer-events:none}.esri-widget__header{background-color:var(--calcite-color-foreground-1);flex:1 0 100%;justify-content:space-between;align-items:center;width:100%;min-height:48px;padding:12px 0 12px 15px;display:flex}.esri-widget__heading{word-break:break-word}.esri-widget__header .esri-widget__heading{width:calc(100% - 48px);text-align:initial;color:var(--calcite-color-text-1);align-items:center;margin:0;padding:0;display:flex}.esri-widget__header-button{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);border:none;flex:0 0 48px;justify-content:center;align-self:stretch;align-items:center;width:48px;padding:0;display:flex}.esri-widget__footer{background-color:var(--calcite-color-foreground-1);justify-content:center;align-items:center;width:100%;min-height:48px;display:flex}.esri-widget__footer-pagination{color:var(--calcite-color-text-2);justify-content:space-between;align-items:center;display:flex}.esri-widget__footer-pagination-previous-button,.esri-widget__footer-pagination-next-button{cursor:pointer;background-color:var(--calcite-color-foreground-1);border:0;margin:0 7px;padding:12px 15px;transition:background-color .125s ease-in-out}.esri-widget__footer-pagination-previous-button:hover,.esri-widget__footer-pagination-previous-button:focus,.esri-widget__footer-pagination-next-button:hover,.esri-widget__footer-pagination-next-button:focus{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1)}.esri-menu{visibility:hidden;z-index:1;background-clip:padding;background-color:var(--calcite-color-foreground-1);background-clip:padding-box;width:100%;max-height:0;margin:2px 0 0;padding:0;font-size:var(--calcite-font-size);line-height:var(--calcite-spacing-xl);position:absolute;top:100%;left:0;overflow:hidden;box-shadow:0 1px 2px #0000004d}.esri-menu .esri-menu__header{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-inverse);padding:6px 12px}.esri-menu__list{margin:0;padding:0;list-style:none}.esri-menu__list-item{cursor:pointer;border-top:1px solid #adadad4d;border-left:3px solid #0000;padding:.8em 1em}.esri-menu__list-item [class^=esri-icon-],.esri-menu__list-item [class*=" esri-icon-"]{padding-right:2.8px}.esri-menu__list-item:first-child{border-top:none}.esri-menu__list-item--focus,.esri-menu__list-item:hover,.esri-menu__list-item:focus{background-color:var(--calcite-color-foreground-1)}.esri-menu__list-item:active{background-color:var(--calcite-color-foreground-current)}.esri-menu__list-item--active,.esri-menu__list-item--active:hover,.esri-menu__list-item--active:focus{background-color:var(--calcite-color-foreground-1);border-left-color:var(--calcite-color-brand)}.esri-widget__table{border-collapse:collapse;color:var(--calcite-color-text-1);border:none;width:100%;line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget__table tr:nth-child(odd){background-color:var(--calcite-color-transparent)}.esri-widget__table tr:nth-child(2n){background-color:var(--calcite-color-transparent-press)}.esri-widget__table tr a{color:var(--calcite-color-text-2)}.esri-widget__table tr a:hover,.esri-widget__table tr a:focus{color:var(--calcite-color-text-1)}.esri-widget__table tr td,.esri-widget__table tr th{vertical-align:top;word-break:break-word;padding:.5em .7em;font-size:var(--calcite-font-size-sm);font-weight:var(--calcite-font-weight-regular)}.esri-widget__table tr th{text-align:left;border-right:3px solid #0000000d;width:50%}.esri-widget__table tr td{width:50%}.esri-input{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1);border:1px solid #959595;font-size:var(--calcite-font-size)}.esri-input::-ms-clear{display:none}.esri-input::placeholder{opacity:1;color:var(--calcite-color-text-2)}.esri-input:placeholder-shown{text-overflow:ellipsis}.esri-input[type=text],.esri-input[type=password],.esri-input[type=number]{height:32px;padding:0 .5em}calcite-combobox.esri-input{border:none}.esri-widget__content--empty{text-align:center;color:var(--calcite-color-border-input);flex-flow:column wrap;align-items:center;padding:18px 22px;display:flex}.esri-widget__content--empty h1.esri-widget__heading,.esri-widget__content--empty h2.esri-widget__heading,.esri-widget__content--empty h3.esri-widget__heading,.esri-widget__content--empty h4.esri-widget__heading,.esri-widget__content--empty h5.esri-widget__heading{font-weight:var(--calcite-font-weight-regular)}.esri-widget__content-illustration--empty{width:128px;padding:1rem 0}.esri-widget__content-icon--empty{width:32px;padding:.5rem 0}.esri-select{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background:var(--calcite-color-foreground-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -8 32 32' width='32' height='32'%3E%3Cpath d='M8 11.207l-4-4V5.793l4 4 4-4v1.414z' fill='%23adadad' fillrule='nonzero'/%3E%3C/svg%3E") 100% no-repeat;border:1px solid #959595;border-radius:0;width:100%;height:32px;margin:0;padding:0 .5em;font-family:inherit;font-size:.85em;display:block}.esri-select[disabled]{cursor:auto}.esri-select::-ms-expand{display:none}.esri-disabled a,.esri-disabled [role=menu],.esri-disabled [role=checkbox],.esri-disabled [class^=esri-icon-],.esri-disabled [class*=" esri-icon-"]{color:var(--calcite-color-text-3)}.keynav-mode .esri-widget:focus,.keynav-mode .esri-widget :focus{z-index:1;outline-offset:2px;outline:2px solid #adadad}.esri-widget__loader-animation{border:.15em solid #adadad4d;border-top-color:var(--calcite-color-border-input);border-radius:100%;width:1em;height:1em;font-size:var(--calcite-font-size-md);animation:1.25s linear infinite esri-rotate;display:block;transform:translateZ(0)}:dir(rtl) .esri-widget__table th{text-align:right;border-left:3px solid #0000000d;border-right:none}:dir(rtl) .esri-select{background-position:0}:dir(rtl) .esri-menu__list-item{border-left:none;border-right:3px solid #0000}:dir(rtl) .esri-menu__list-item [class^=esri-icon-],:dir(rtl) .esri-menu__list-item [class*=" esri-icon-"]{padding-left:2px;padding-right:0}:dir(rtl) .esri-menu__list-item--active{border-right-color:var(--calcite-color-brand)}.esri-icon-font-fallback-text{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.esri-rotating{animation:1.25s linear infinite esri-rotate;transform:translateZ(0)}.esri-clearfix:before,.esri-clearfix:after{content:" ";display:table}.esri-clearfix:after{clear:both}.esri-interactive{cursor:pointer}.esri-hidden{display:none!important}.esri-invisible{visibility:hidden!important}.esri-offscreen{position:absolute;top:-999em;left:-999em}.esri-match-height{flex-direction:column;flex:auto;display:flex;overflow:hidden}.esri-widget--panel{min-width:300px;min-height:32px;padding:var(--arcgis-internal-padding);transition:max-height .25s ease-in-out;overflow-y:auto}.esri-unit-select{width:100%}.esri-unit-select__label{--calcite-label-margin-bottom: 0;width:100%}:host{display:block}.esri-measurement-widget-content{padding:var(--arcgis-internal-padding);flex-direction:column;gap:var(--calcite-spacing-xxl);display:flex;position:relative;overflow-y:auto}.esri-measurement-widget-content__error{color:var(--calcite-color-status-danger)}.esri-measurement-widget-content__error,.esri-measurement-widget-content__hint{overflow:hidden}.esri-measurement-widget-content__error p,.esri-measurement-widget-content__hint p{margin:0;padding:0}.esri-measurement-widget-content__hint,.esri-measurement-widget-content__error,.esri-measurement-widget-content__measurement,.esri-measurement-widget-content__measurement-item{flex-direction:column;gap:var(--calcite-spacing-md);animation:.25s ease-in-out esri-fade-in;display:flex}.esri-measurement-widget-content__measurement-item--disabled{color:var(--calcite-color-border-ghost)}.esri-measurement-widget-content__measurement-item__value{font-weight:var(--calcite-font-weight-semibold)}.esri-measurement-widget-content__actions{flex-direction:column;justify-content:center;gap:var(--calcite-spacing-xs);display:flex}:host{.esri-widget--panel{min-width:0}}`,P=Object.defineProperty,T=Object.getOwnPropertyDescriptor,s=(t,e,a,o)=>{for(var i=o>1?void 0:o?T(e,a):e,l=t.length-1,d;l>=0;l--)(d=t[l])&&(i=(o?d(e,a,i):d(i))||i);return o&&i&&P(e,a,i),i},r=class extends M{constructor(){super(...arguments),this.snappingOptions=new C,this.supportedViewType="2d",this.unsupportedErrorMessage="The Distance Measurement 2D component is only supported in 2D views.",this.shouldForceInteractive=!1}initialize(){this.addHandles([j(()=>({analysis:this.analysis,unit:this._userUnit}),({analysis:t,unit:e})=>{e&&(t.unit=e)},{sync:!0,initial:!0}),j(()=>({analysisView:this.analysisView,snappingOptions:this.snappingOptions}),({analysisView:t,snappingOptions:e})=>{t&&(t.snappingOptions=e)},{sync:!0,initial:!0})])}get state(){let{analysis:t,disabled:e,operationState:a,ready:o,supported:i}=this,{valid:l}=t;return V({supported:i,disabled:e,ready:o,operationState:a,valid:l})}get displayState(){return $(this.state,!!this.analysis.geometry)}get measurement(){return{mode:this.analysisView?.result?.mode??"euclidean",length:S(this.analysis.valid?this.analysisView?.result?.length:void 0)}}get unitOptions(){return U(this._userUnitOptions,u,u)}set unitOptions(t){this._userUnitOptions=t}get unit(){return D(this._userUnit,this.analysis.unit,this.unitOptions,this.defaultMeasurementSystem)}set unit(t){this._userUnit=t}async place(t){this.analysisView&&(await this.analysisView.place(t),this.analysisView.interactive=!0)}clearAnalysis(){this.analysis.geometry=null}constructAnalysis(){return new L}};s([n({readOnly:!0})],r.prototype,"state",1);s([n({readOnly:!0})],r.prototype,"displayState",1);s([n()],r.prototype,"measurement",1);s([n({type:C})],r.prototype,"snappingOptions",2);s([n()],r.prototype,"unitOptions",1);s([n()],r.prototype,"_userUnitOptions",2);s([n()],r.prototype,"unit",1);s([n()],r.prototype,"_userUnit",2);r=s([A("components.distance-measurement-2d.DistanceMeasurement2dViewModel")],r);var F=O(r),h=class extends w{constructor(){super(...arguments),this.viewModel=F(this),this.messages=z({name:"distance-measurement-2d",blocking:!0}),this.view=this.viewModel.view,this.analysis=this.viewModel.analysis,this.autoDestroyDisabled=!1,this.hideStartButton=!1,this.hideUnitSelect=!1,this.hideVisualization=this.viewModel.hideVisualization,this.icon="measure-line",this.snappingOptions=this.viewModel.snappingOptions,this.state=this.viewModel.state,this.unit=this.viewModel.unit,this.unitOptions=this.viewModel.unitOptions,this.arcgisPropertyChange=y()("analysis","state"),this.arcgisReady=_()}static{this.properties={view:0,analysis:0,autoDestroyDisabled:5,hideStartButton:5,hideUnitSelect:5,hideVisualization:5,icon:3,label:1,referenceElement:1,snappingOptions:0,state:32,unit:1,unitOptions:0}}static{this.styles=B}async clear(){this.viewModel.clear()}async destroy(){await this.manager.destroy()}async start(){k(this.viewModel.start())}render(){let{messages:e,unit:a,unitOptions:o,viewModel:i}=this,{measurement:l,state:d}=i;return c`<div aria-label=${e.componentLabel??v} class=${f(x("root",p.widget,p.panel))} role=presentation><arcgis-measurement-content .state=${i.displayState} .hintLabel=${e.hint} .unsupportedLabel=${e.unsupported} .items=${[{title:e.distance,measurement:l.length}]}>${g({hidden:this.hideUnitSelect,children:c`<arcgis-unit-select slot=settings .options=${o} .selectLabel=${e.unit} .value=${a} @arcgisUnitSelectChange=${E=>{this.unit=E.detail}}></arcgis-unit-select>`})}${g({hidden:this.hideStartButton,children:c`<calcite-button slot=actions .disabled=${d==="unsupported"||d==="disabled"} @click=${this.start}>${e.newMeasurement}</calcite-button>`})}</arcgis-measurement-content></div>`}};b("arcgis-distance-measurement-2d",h);return h},"analysis/DistanceMeasurementAnalysis","core/accessorSupport/decorators","core/reactiveUtils","views/interactive/snapping/SnappingOptions",a,d,e,h,i,j)
2
+ import j from"./ZFLMRC4G.js";import{a as V,b as $,d as u,g as S,j as U,k as D}from"./G5VPRDMX.js";import{a as g}from"./POKO37D3.js";import i from"./O6F37YLT.js";import"./VJVKFKSG.js";import h from"./AZYY5BTK.js";import{a as z}from"./WVGSH2QD.js";import{a as p}from"./JD74LG7K.js";import e from"./ANSNQBZW.js";import d from"./XXA7VSON.js";import{g as y}from"./5DI7RMZ6.js";import"./Q7SMGP5R.js";import a from"./SYDGAFU5.js";import"./QUZTFUWM.js";import{d as x}from"./NCYBFT2Y.js";import{N as w,O as f,Q as v,T as b,a as m,b as c,w as _}from"./WTBRS6C4.js";import"./H6RQVSYM.js";export default $arcgis.t(([L,{property:n,subclass:A},{watch:j},C,,,,O,{f:k},M])=>{var B=m`.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}.esri-widget{box-sizing:border-box;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget *,.esri-widget :before,.esri-widget :after{box-sizing:inherit}.esri-widget.esri-widget--disabled>*{opacity:.4;pointer-events:none}.esri-widget.esri-widget--compact{--esri-widget-padding-y: 0;--esri-widget-padding-x: 0}.esri-widget__anchor{color:var(--calcite-color-text-2)}.esri-widget__anchor:hover{color:var(--calcite-color-text-3)}.esri-widget__anchor:hover,.esri-widget__anchor:focus{text-decoration:underline}.esri-widget__anchor--disabled{opacity:.4;pointer-events:none}.esri-widget__header{background-color:var(--calcite-color-foreground-1);flex:1 0 100%;justify-content:space-between;align-items:center;width:100%;min-height:48px;padding:12px 0 12px 15px;display:flex}.esri-widget__heading{word-break:break-word}.esri-widget__header .esri-widget__heading{width:calc(100% - 48px);text-align:initial;color:var(--calcite-color-text-1);align-items:center;margin:0;padding:0;display:flex}.esri-widget__header-button{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);border:none;flex:0 0 48px;justify-content:center;align-self:stretch;align-items:center;width:48px;padding:0;display:flex}.esri-widget__footer{background-color:var(--calcite-color-foreground-1);justify-content:center;align-items:center;width:100%;min-height:48px;display:flex}.esri-widget__footer-pagination{color:var(--calcite-color-text-2);justify-content:space-between;align-items:center;display:flex}.esri-widget__footer-pagination-previous-button,.esri-widget__footer-pagination-next-button{cursor:pointer;background-color:var(--calcite-color-foreground-1);border:0;margin:0 7px;padding:12px 15px;transition:background-color .125s ease-in-out}.esri-widget__footer-pagination-previous-button:hover,.esri-widget__footer-pagination-previous-button:focus,.esri-widget__footer-pagination-next-button:hover,.esri-widget__footer-pagination-next-button:focus{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1)}.esri-menu{visibility:hidden;z-index:1;background-clip:padding;background-color:var(--calcite-color-foreground-1);background-clip:padding-box;width:100%;max-height:0;margin:2px 0 0;padding:0;font-size:var(--calcite-font-size);line-height:var(--calcite-spacing-xl);position:absolute;top:100%;left:0;overflow:hidden;box-shadow:0 1px 2px #0000004d}.esri-menu .esri-menu__header{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-inverse);padding:6px 12px}.esri-menu__list{margin:0;padding:0;list-style:none}.esri-menu__list-item{cursor:pointer;border-top:1px solid #adadad4d;border-left:3px solid #0000;padding:.8em 1em}.esri-menu__list-item [class^=esri-icon-],.esri-menu__list-item [class*=" esri-icon-"]{padding-right:2.8px}.esri-menu__list-item:first-child{border-top:none}.esri-menu__list-item--focus,.esri-menu__list-item:hover,.esri-menu__list-item:focus{background-color:var(--calcite-color-foreground-1)}.esri-menu__list-item:active{background-color:var(--calcite-color-foreground-current)}.esri-menu__list-item--active,.esri-menu__list-item--active:hover,.esri-menu__list-item--active:focus{background-color:var(--calcite-color-foreground-1);border-left-color:var(--calcite-color-brand)}.esri-widget__table{border-collapse:collapse;color:var(--calcite-color-text-1);border:none;width:100%;line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget__table tr:nth-child(odd){background-color:var(--calcite-color-transparent)}.esri-widget__table tr:nth-child(2n){background-color:var(--calcite-color-transparent-press)}.esri-widget__table tr a{color:var(--calcite-color-text-2)}.esri-widget__table tr a:hover,.esri-widget__table tr a:focus{color:var(--calcite-color-text-1)}.esri-widget__table tr td,.esri-widget__table tr th{vertical-align:top;word-break:break-word;padding:.5em .7em;font-size:var(--calcite-font-size-sm);font-weight:var(--calcite-font-weight-regular)}.esri-widget__table tr th{text-align:left;border-right:3px solid #0000000d;width:50%}.esri-widget__table tr td{width:50%}.esri-input{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1);border:1px solid #959595;font-size:var(--calcite-font-size)}.esri-input::-ms-clear{display:none}.esri-input::placeholder{opacity:1;color:var(--calcite-color-text-2)}.esri-input:placeholder-shown{text-overflow:ellipsis}.esri-input[type=text],.esri-input[type=password],.esri-input[type=number]{height:32px;padding:0 .5em}calcite-combobox.esri-input{border:none}.esri-widget__content--empty{text-align:center;color:var(--calcite-color-border-input);flex-flow:column wrap;align-items:center;padding:18px 22px;display:flex}.esri-widget__content--empty h1.esri-widget__heading,.esri-widget__content--empty h2.esri-widget__heading,.esri-widget__content--empty h3.esri-widget__heading,.esri-widget__content--empty h4.esri-widget__heading,.esri-widget__content--empty h5.esri-widget__heading{font-weight:var(--calcite-font-weight-regular)}.esri-widget__content-illustration--empty{width:128px;padding:1rem 0}.esri-widget__content-icon--empty{width:32px;padding:.5rem 0}.esri-select{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background:var(--calcite-color-foreground-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -8 32 32' width='32' height='32'%3E%3Cpath d='M8 11.207l-4-4V5.793l4 4 4-4v1.414z' fill='%23adadad' fillrule='nonzero'/%3E%3C/svg%3E") 100% no-repeat;border:1px solid #959595;border-radius:0;width:100%;height:32px;margin:0;padding:0 .5em;font-family:inherit;font-size:.85em;display:block}.esri-select[disabled]{cursor:auto}.esri-select::-ms-expand{display:none}.esri-disabled a,.esri-disabled [role=menu],.esri-disabled [role=checkbox],.esri-disabled [class^=esri-icon-],.esri-disabled [class*=" esri-icon-"]{color:var(--calcite-color-text-3)}.keynav-mode .esri-widget:focus,.keynav-mode .esri-widget :focus{z-index:1;outline-offset:2px;outline:2px solid #adadad}.esri-widget__loader-animation{border:.15em solid #adadad4d;border-top-color:var(--calcite-color-border-input);border-radius:100%;width:1em;height:1em;font-size:var(--calcite-font-size-md);animation:1.25s linear infinite esri-rotate;display:block;transform:translateZ(0)}:dir(rtl) .esri-widget__table th{text-align:right;border-left:3px solid #0000000d;border-right:none}:dir(rtl) .esri-select{background-position:0}:dir(rtl) .esri-menu__list-item{border-left:none;border-right:3px solid #0000}:dir(rtl) .esri-menu__list-item [class^=esri-icon-],:dir(rtl) .esri-menu__list-item [class*=" esri-icon-"]{padding-left:2px;padding-right:0}:dir(rtl) .esri-menu__list-item--active{border-right-color:var(--calcite-color-brand)}.esri-icon-font-fallback-text{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.esri-rotating{animation:1.25s linear infinite esri-rotate;transform:translateZ(0)}.esri-clearfix:before,.esri-clearfix:after{content:" ";display:table}.esri-clearfix:after{clear:both}.esri-interactive{cursor:pointer}.esri-hidden{display:none!important}.esri-invisible{visibility:hidden!important}.esri-offscreen{position:absolute;top:-999em;left:-999em}.esri-match-height{flex-direction:column;flex:auto;display:flex;overflow:hidden}.esri-widget--panel{min-width:300px;min-height:32px;padding:var(--arcgis-internal-padding);transition:max-height .25s ease-in-out;overflow-y:auto}.esri-unit-select{width:100%}.esri-unit-select__label{--calcite-label-margin-bottom: 0;width:100%}:host{display:block}.esri-measurement-widget-content{padding:var(--arcgis-internal-padding);flex-direction:column;gap:var(--calcite-spacing-xxl);display:flex;position:relative;overflow-y:auto}.esri-measurement-widget-content__error{color:var(--calcite-color-status-danger)}.esri-measurement-widget-content__error,.esri-measurement-widget-content__hint{overflow:hidden}.esri-measurement-widget-content__error p,.esri-measurement-widget-content__hint p{margin:0;padding:0}.esri-measurement-widget-content__hint,.esri-measurement-widget-content__error,.esri-measurement-widget-content__measurement,.esri-measurement-widget-content__measurement-item{flex-direction:column;gap:var(--calcite-spacing-md);animation:.25s ease-in-out esri-fade-in;display:flex}.esri-measurement-widget-content__measurement-item--disabled{color:var(--calcite-color-border-ghost)}.esri-measurement-widget-content__measurement-item__value{font-weight:var(--calcite-font-weight-semibold)}.esri-measurement-widget-content__actions{flex-direction:column;justify-content:center;gap:var(--calcite-spacing-xs);display:flex}:host{.esri-widget--panel{min-width:0}}`,P=Object.defineProperty,T=Object.getOwnPropertyDescriptor,s=(t,e,a,o)=>{for(var i=o>1?void 0:o?T(e,a):e,l=t.length-1,d;l>=0;l--)(d=t[l])&&(i=(o?d(e,a,i):d(i))||i);return o&&i&&P(e,a,i),i},r=class extends M{constructor(){super(...arguments),this.snappingOptions=new C,this.supportedViewType="2d",this.unsupportedErrorMessage="The Distance Measurement 2D component is only supported in 2D views.",this.shouldForceInteractive=!1}initialize(){this.addHandles([j(()=>({analysis:this.analysis,unit:this._userUnit}),({analysis:t,unit:e})=>{e&&(t.unit=e)},{sync:!0,initial:!0}),j(()=>({analysisView:this.analysisView,snappingOptions:this.snappingOptions}),({analysisView:t,snappingOptions:e})=>{t&&(t.snappingOptions=e)},{sync:!0,initial:!0})])}get state(){let{analysis:t,disabled:e,operationState:a,ready:o,supported:i}=this,{valid:l}=t;return V({supported:i,disabled:e,ready:o,operationState:a,valid:l})}get displayState(){return $(this.state,!!this.analysis.geometry)}get measurement(){return{mode:this.analysisView?.result?.mode??"euclidean",length:S(this.analysis.valid?this.analysisView?.result?.length:void 0)}}get unitOptions(){return U(this._userUnitOptions,u,u)}set unitOptions(t){this._userUnitOptions=t}get unit(){return D(this._userUnit,this.analysis.unit,this.unitOptions,this.defaultMeasurementSystem)}set unit(t){this._userUnit=t}async place(t){this.analysisView&&(await this.analysisView.place(t),this.analysisView.interactive=!0)}clearAnalysis(){this.analysis.geometry=null}constructAnalysis(){return new L}};s([n({readOnly:!0})],r.prototype,"state",1);s([n({readOnly:!0})],r.prototype,"displayState",1);s([n()],r.prototype,"measurement",1);s([n({type:C})],r.prototype,"snappingOptions",2);s([n()],r.prototype,"unitOptions",1);s([n()],r.prototype,"_userUnitOptions",2);s([n()],r.prototype,"unit",1);s([n()],r.prototype,"_userUnit",2);r=s([A("components.distance-measurement-2d.DistanceMeasurement2dViewModel")],r);var F=O(r),h=class extends w{constructor(){super(...arguments),this.viewModel=F(this),this.messages=z({name:"distance-measurement-2d",blocking:!0}),this.view=this.viewModel.view,this.analysis=this.viewModel.analysis,this.autoDestroyDisabled=!1,this.hideStartButton=!1,this.hideUnitSelect=!1,this.hideVisualization=this.viewModel.hideVisualization,this.icon="measure-line",this.snappingOptions=this.viewModel.snappingOptions,this.state=this.viewModel.state,this.unit=this.viewModel.unit,this.unitOptions=this.viewModel.unitOptions,this.arcgisPropertyChange=y()("analysis","state"),this.arcgisReady=_()}static{this.properties={view:0,analysis:0,autoDestroyDisabled:5,hideStartButton:5,hideUnitSelect:5,hideVisualization:5,icon:3,label:1,referenceElement:1,snappingOptions:0,state:32,unit:1,unitOptions:0}}static{this.styles=B}async clear(){this.viewModel.clear()}async destroy(){await this.manager.destroy()}async start(){k(this.viewModel.start())}render(){let{messages:e,unit:a,unitOptions:o,viewModel:i}=this,{measurement:l,state:d}=i;return c`<div aria-label=${e.componentLabel??v} class=${f(x("root",p.widget,p.panel))} role=presentation><arcgis-measurement-content .state=${i.displayState} .hintLabel=${e.hint} .unsupportedLabel=${e.unsupported} .items=${[{title:e.distance,measurement:l.length}]}>${g({hidden:this.hideUnitSelect,children:c`<arcgis-unit-select slot=settings .options=${o} .selectLabel=${e.unit} .value=${a} @arcgisUnitSelectChange=${E=>{this.unit=E.detail}}></arcgis-unit-select>`})}${g({hidden:this.hideStartButton,children:c`<calcite-button slot=actions .disabled=${d==="unsupported"||d==="disabled"} @click=${this.start}>${e.newMeasurement}</calcite-button>`})}</arcgis-measurement-content></div>`}};b("arcgis-distance-measurement-2d",h);return h},"analysis/DistanceMeasurementAnalysis","core/accessorSupport/decorators","core/reactiveUtils","views/interactive/snapping/SnappingOptions",a,d,e,h,i,j)