@arcgis/map-components 5.1.13 → 5.1.14

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 (235) hide show
  1. package/dist/cdn/{UT7A32W4.js → 263YFJON.js} +1 -1
  2. package/dist/cdn/{C6WWDTK5.js → 2BSYQIUD.js} +1 -1
  3. package/dist/cdn/{HYU3NTA7.js → 2CHIRS7R.js} +1 -1
  4. package/dist/cdn/{YASRISLB.js → 2TTUEPU6.js} +1 -1
  5. package/dist/cdn/{K7P562BX.js → 2VT3XHDZ.js} +1 -1
  6. package/dist/cdn/{N6F2BL3S.js → 33CG5H7C.js} +1 -1
  7. package/dist/cdn/{2XLW63AT.js → 33MLO6HZ.js} +1 -1
  8. package/dist/cdn/{ZZPBMUSR.js → 3AD2QLBV.js} +1 -1
  9. package/dist/cdn/{GNZ3S53I.js → 3G6GDNNS.js} +1 -1
  10. package/dist/cdn/{NDVEYEFL.js → 3IEHC2XT.js} +1 -1
  11. package/dist/cdn/{ZRWTQWJW.js → 3O5N52AF.js} +1 -1
  12. package/dist/cdn/{TD5P6HY7.js → 3UF42S5R.js} +1 -1
  13. package/dist/cdn/{ZMUMTZ63.js → 3VG2GTPE.js} +1 -1
  14. package/dist/cdn/{USSXEVPC.js → 3YP4OBTW.js} +1 -1
  15. package/dist/cdn/{7DCY2EZ2.js → 46OV33PJ.js} +1 -1
  16. package/dist/cdn/{IYV4UVCX.js → 4ILRPL5K.js} +1 -1
  17. package/dist/cdn/{AIIEETVV.js → 4LCX5W55.js} +1 -1
  18. package/dist/cdn/{UFNVXJFI.js → 4OGP46VD.js} +1 -1
  19. package/dist/cdn/{L3HVK5YP.js → 4UCGWBBJ.js} +1 -1
  20. package/dist/cdn/{NPEIETLC.js → 4ZGUUAZT.js} +1 -1
  21. package/dist/cdn/{DRZ6WHPD.js → 4ZKWXSFX.js} +1 -1
  22. package/dist/cdn/{OBW7EFHZ.js → 4ZSVAJG7.js} +1 -1
  23. package/dist/cdn/{4M5OC7SW.js → 52JYBK63.js} +1 -1
  24. package/dist/cdn/{Q6GJ3EZ2.js → 5HUHOP2L.js} +1 -1
  25. package/dist/cdn/{PZAJCVSB.js → 5NJVMZW6.js} +1 -1
  26. package/dist/cdn/{5NHWTIYG.js → 637GG3UM.js} +1 -1
  27. package/dist/cdn/{BWTPCYNX.js → 64JVP23D.js} +1 -1
  28. package/dist/cdn/{RSKWFUJQ.js → 65IHTCGK.js} +1 -1
  29. package/dist/cdn/{YYJJ4JLI.js → 6AMFFIZE.js} +1 -1
  30. package/dist/cdn/{42IUOSCC.js → 6OPJ43YP.js} +1 -1
  31. package/dist/cdn/{RSQOG6FF.js → 6SVZCB53.js} +1 -1
  32. package/dist/cdn/{QKSOMJZ7.js → 6T7TN5OD.js} +1 -1
  33. package/dist/cdn/{DYS666GM.js → 6V64BA4N.js} +1 -1
  34. package/dist/cdn/{7JFVOQ2U.js → 6VSHFN2A.js} +1 -1
  35. package/dist/cdn/{VME4SEBG.js → 6WEWUI54.js} +1 -1
  36. package/dist/cdn/{RYUTUOUL.js → 6WQ2YOES.js} +1 -1
  37. package/dist/cdn/{5D4DIU6R.js → 6ZLEP3S2.js} +1 -1
  38. package/dist/cdn/{UDSPO3N4.js → 72YHC52Q.js} +1 -1
  39. package/dist/cdn/{CT2B4JBU.js → 763BKYKB.js} +1 -1
  40. package/dist/cdn/{RB7UDIMI.js → 7JUBBXUN.js} +1 -1
  41. package/dist/cdn/{PPOSVBCV.js → 7OL3J2CJ.js} +1 -1
  42. package/dist/cdn/{V36U3LJY.js → 7T36JHQQ.js} +1 -1
  43. package/dist/cdn/{EWYU7LPC.js → 7Y2OQMKS.js} +1 -1
  44. package/dist/cdn/{4BTFW5SB.js → 7YZY4R5N.js} +1 -1
  45. package/dist/cdn/{6CLQDAVM.js → A2RFHWNU.js} +1 -1
  46. package/dist/cdn/{U2NBX5QR.js → A5MJNKQK.js} +1 -1
  47. package/dist/cdn/{QVOJ5F2M.js → AIGUCGRH.js} +1 -1
  48. package/dist/cdn/{QG3FVT3A.js → AJULQPDX.js} +1 -1
  49. package/dist/cdn/{YB2ZOOL5.js → AMCFDUSL.js} +1 -1
  50. package/dist/cdn/{RKCZ6J6H.js → AWJ752O2.js} +1 -1
  51. package/dist/cdn/{JYT73FMY.js → AXN7C4WE.js} +1 -1
  52. package/dist/cdn/{A6EDA32H.js → B7QDTWUC.js} +1 -1
  53. package/dist/cdn/BISCP5KM.js +2 -0
  54. package/dist/cdn/{ABZTY6UH.js → BJK2QZNJ.js} +1 -1
  55. package/dist/cdn/{D5767T7K.js → BP2VVHRQ.js} +1 -1
  56. package/dist/cdn/{3TMMK5TC.js → BSX3EKB5.js} +1 -1
  57. package/dist/cdn/{I2YHWTFJ.js → BVKGMDZI.js} +1 -1
  58. package/dist/cdn/{BFOWWSBJ.js → CGH77JYY.js} +1 -1
  59. package/dist/cdn/{XXMDW7UV.js → CQAUNK6Z.js} +1 -1
  60. package/dist/cdn/{VGZEPYSI.js → CRZUPPWJ.js} +1 -1
  61. package/dist/cdn/{FRMNUFSU.js → CWI5SGGA.js} +1 -1
  62. package/dist/cdn/{N7RHUI2D.js → DFTDX4S5.js} +1 -1
  63. package/dist/cdn/{U5PGFRAC.js → DHFW6D7R.js} +1 -1
  64. package/dist/cdn/{Y7I4CPLY.js → DQ6KD3H5.js} +1 -1
  65. package/dist/cdn/{TGC7KZDG.js → DWN2PSNX.js} +1 -1
  66. package/dist/cdn/{TZNCFP53.js → E3IX5FMT.js} +1 -1
  67. package/dist/cdn/{BKJM5SV2.js → EFEM2BM2.js} +1 -1
  68. package/dist/cdn/{54QAWMZ2.js → EYRYJJLU.js} +1 -1
  69. package/dist/cdn/{BYBIT2IT.js → F4ZVVRF3.js} +1 -1
  70. package/dist/cdn/{Q7YESQZ6.js → FE32N27G.js} +1 -1
  71. package/dist/cdn/{KMZXLPKZ.js → FFLJMBBT.js} +1 -1
  72. package/dist/cdn/FFXE4PLI.js +2 -0
  73. package/dist/cdn/{KQDPXK2V.js → FNW2LNXG.js} +1 -1
  74. package/dist/cdn/{QVW2R4IS.js → FP2IMOR5.js} +1 -1
  75. package/dist/cdn/{NQ775DQU.js → FWKQQQZ4.js} +1 -1
  76. package/dist/cdn/{7Q24HHLE.js → G2UITNRJ.js} +1 -1
  77. package/dist/cdn/{OPQ6WR3U.js → G4XU6Y2I.js} +1 -1
  78. package/dist/cdn/{Y6GBJTWV.js → GBLURPST.js} +1 -1
  79. package/dist/cdn/{ASGNIA7K.js → GEZ4HISO.js} +1 -1
  80. package/dist/cdn/{R56OSVAF.js → GY57HAQL.js} +1 -1
  81. package/dist/cdn/{46SJ2WZ4.js → HLRGCJQK.js} +1 -1
  82. package/dist/cdn/{XOSGVDE2.js → HPM7GOKD.js} +1 -1
  83. package/dist/cdn/{Z573VDEH.js → HRJBTB3A.js} +1 -1
  84. package/dist/cdn/{KHNP54MS.js → HV5OT2WQ.js} +1 -1
  85. package/dist/cdn/{XDUVNT35.js → I2FOPUAT.js} +1 -1
  86. package/dist/cdn/{RPMP66ZL.js → I5APJRWA.js} +1 -1
  87. package/dist/cdn/{2NGTS4IM.js → IATBANBS.js} +1 -1
  88. package/dist/cdn/{VMDV6CWP.js → IBRE6OJT.js} +1 -1
  89. package/dist/cdn/{3IWYOOTJ.js → IDGVAWFK.js} +1 -1
  90. package/dist/cdn/{GIRM7I4D.js → IKAZRGHO.js} +1 -1
  91. package/dist/cdn/{3UFD4Q2O.js → IKBW64YY.js} +1 -1
  92. package/dist/cdn/{HH47EL36.js → INKUXJGH.js} +1 -1
  93. package/dist/cdn/{7YKVITK5.js → IOAWHWKX.js} +1 -1
  94. package/dist/cdn/{IVRRK45N.js → IOP3BH5U.js} +1 -1
  95. package/dist/cdn/{J2ZY7NQM.js → IR5IJRDW.js} +1 -1
  96. package/dist/cdn/{IHUORLQV.js → IVJHY6DG.js} +1 -1
  97. package/dist/cdn/{MDY46VRM.js → IVMUJ5QY.js} +1 -1
  98. package/dist/cdn/{KK7ROCO4.js → IZIJ2TWG.js} +1 -1
  99. package/dist/cdn/{XF2Q2HB6.js → J4CQT4XJ.js} +1 -1
  100. package/dist/cdn/{27T6ADBM.js → JIQ3VOXT.js} +1 -1
  101. package/dist/cdn/{I3TBDPXT.js → JJRZTJ2N.js} +1 -1
  102. package/dist/cdn/{AJK2DJ4T.js → JQXT73ST.js} +1 -1
  103. package/dist/cdn/{6GOCA4V6.js → JU5Q6YOK.js} +1 -1
  104. package/dist/cdn/{NM2Z5DK4.js → JVCDOIAV.js} +1 -1
  105. package/dist/cdn/{BSE5M4WJ.js → K2AR3ZWH.js} +1 -1
  106. package/dist/cdn/{3MWLBCHB.js → KVXWW7NR.js} +1 -1
  107. package/dist/cdn/{5BXNJIZL.js → KXUQ7IFJ.js} +1 -1
  108. package/dist/cdn/KZ5KHMPM.js +2 -0
  109. package/dist/cdn/{ZWW2ANTZ.js → L4JUVRCC.js} +1 -1
  110. package/dist/cdn/L72DGSDE.js +2 -0
  111. package/dist/cdn/{XVBRGJJ3.js → LBBRI5WI.js} +1 -1
  112. package/dist/cdn/{LK4Z556U.js → LH3XMT6P.js} +1 -1
  113. package/dist/cdn/{FBTUKE2X.js → LPJZLQFN.js} +1 -1
  114. package/dist/cdn/{7HKH3ZEA.js → LRUNCVRV.js} +1 -1
  115. package/dist/cdn/{IKPVG2WR.js → LUYQT43T.js} +1 -1
  116. package/dist/cdn/{CZZMWS47.js → LWMUFAPA.js} +1 -1
  117. package/dist/cdn/{26GRNDD3.js → MODR2MO6.js} +1 -1
  118. package/dist/cdn/{2ILNQKWY.js → MSURMAU4.js} +1 -1
  119. package/dist/cdn/{H4YY26MH.js → MTPIRZU6.js} +1 -1
  120. package/dist/cdn/{JYA2EGFP.js → N5OKJYD4.js} +1 -1
  121. package/dist/cdn/{UOX7ZKHT.js → NC6RNDHJ.js} +1 -1
  122. package/dist/cdn/{4UW3HYC3.js → NR42CD6T.js} +1 -1
  123. package/dist/cdn/{BY5RV2O2.js → NS4OOD6O.js} +1 -1
  124. package/dist/cdn/{D7PGBWKD.js → NW2X5VQ6.js} +1 -1
  125. package/dist/cdn/{RSQRO6N4.js → NYDPCTI5.js} +1 -1
  126. package/dist/cdn/{OV6I3H2X.js → O3VOZ7IE.js} +1 -1
  127. package/dist/cdn/{I4SCP6ZV.js → O4A2CYNB.js} +1 -1
  128. package/dist/cdn/{NRC4PGGY.js → OOIFZLE6.js} +1 -1
  129. package/dist/cdn/{3OO25EFL.js → OPDTGB6V.js} +1 -1
  130. package/dist/cdn/{UL5QJXSR.js → OTAU7B2W.js} +1 -1
  131. package/dist/cdn/{AP5SX3EI.js → OUEZSU3X.js} +1 -1
  132. package/dist/cdn/{JV42NCBG.js → OZUGC6PL.js} +1 -1
  133. package/dist/cdn/{J3CIJZP5.js → P4A4NLX7.js} +1 -1
  134. package/dist/cdn/{OQS6YKPA.js → P57MZOYR.js} +1 -1
  135. package/dist/cdn/{BIF3MEKI.js → PNH65HHR.js} +1 -1
  136. package/dist/cdn/{GVXARY7I.js → PWVDFWJZ.js} +1 -1
  137. package/dist/cdn/{7VPGC6PP.js → PXK5I5GK.js} +1 -1
  138. package/dist/cdn/{ADMFSWCV.js → QNPQTXWT.js} +1 -1
  139. package/dist/cdn/{J2C44B5O.js → QPAYZYGG.js} +1 -1
  140. package/dist/cdn/{R4WFQOV2.js → QRJYLUPS.js} +1 -1
  141. package/dist/cdn/{ZQGJPLNV.js → QXMVE3YR.js} +1 -1
  142. package/dist/cdn/{FYIDPNFB.js → R324WT3P.js} +1 -1
  143. package/dist/cdn/{FO7KY7DO.js → R5SMQBHS.js} +1 -1
  144. package/dist/cdn/{H7BLPCZL.js → RCIJGUAL.js} +1 -1
  145. package/dist/cdn/{XMRUII5L.js → RH7STCCI.js} +1 -1
  146. package/dist/cdn/{EBWEXHTI.js → RIDURE3V.js} +1 -1
  147. package/dist/cdn/{BXK7AJQG.js → RULE5Q7M.js} +1 -1
  148. package/dist/cdn/{LKYJ5MXW.js → RV5L2GJF.js} +1 -1
  149. package/dist/cdn/{7URBS6NA.js → S7ZRZ7JV.js} +1 -1
  150. package/dist/cdn/{QIAWXSZO.js → SC7RUSRO.js} +1 -1
  151. package/dist/cdn/{XHPVRCOP.js → SGYDX3GW.js} +1 -1
  152. package/dist/cdn/{FL5JTHNR.js → SMPD535H.js} +1 -1
  153. package/dist/cdn/{N5NWJJCD.js → SSWPLDIX.js} +1 -1
  154. package/dist/cdn/{MUQJQCCT.js → SVMEMIZX.js} +1 -1
  155. package/dist/cdn/{IW32PZT2.js → SY7QRF2R.js} +1 -1
  156. package/dist/cdn/{ATM3KDEE.js → TF6DAJN6.js} +1 -1
  157. package/dist/cdn/{UJQFRIQA.js → TI2BIFVK.js} +1 -1
  158. package/dist/cdn/TXE4EZCP.js +2 -0
  159. package/dist/cdn/{OV35L5WZ.js → U2FK6JNY.js} +1 -1
  160. package/dist/cdn/{X664S644.js → U3T6WN6E.js} +1 -1
  161. package/dist/cdn/{3C4S5RKO.js → UK2RTORX.js} +1 -1
  162. package/dist/cdn/UOSYMNKL.js +2 -0
  163. package/dist/cdn/{EM4RDQBB.js → UQW7HBAM.js} +1 -1
  164. package/dist/cdn/{D72D7F2T.js → UQZ55NYW.js} +1 -1
  165. package/dist/cdn/{PBBJCTHI.js → UTNVDNHJ.js} +1 -1
  166. package/dist/cdn/{G24BYXK5.js → UVMRWPW4.js} +1 -1
  167. package/dist/cdn/{AEDTK4OG.js → V4BRH6EY.js} +1 -1
  168. package/dist/cdn/{YPNWRUV3.js → VAOCQOJ2.js} +1 -1
  169. package/dist/cdn/{IAIMHQJW.js → VCRXOQ4U.js} +1 -1
  170. package/dist/cdn/{GFKWZEAG.js → VIG7RNK7.js} +1 -1
  171. package/dist/cdn/{S33WOKNL.js → VL2FNAVU.js} +1 -1
  172. package/dist/cdn/{237U5I5A.js → VMA5E2P4.js} +1 -1
  173. package/dist/cdn/{Z2B7ZWK7.js → VSA43RRG.js} +1 -1
  174. package/dist/cdn/{B44PMQ6T.js → VSLHHDS3.js} +1 -1
  175. package/dist/cdn/{QY2DVDK6.js → VXSXZZER.js} +1 -1
  176. package/dist/cdn/{XK7TDSZH.js → W2NWI3BB.js} +1 -1
  177. package/dist/cdn/{PGPD73AA.js → W55TBGFF.js} +1 -1
  178. package/dist/cdn/{N2PWEYGH.js → W6KJBXUW.js} +1 -1
  179. package/dist/cdn/{B7RY25MR.js → WD2JWNQF.js} +1 -1
  180. package/dist/cdn/{UWIUWHBJ.js → WKJV35I2.js} +1 -1
  181. package/dist/cdn/{WC7DFCX6.js → WOQMFJVS.js} +1 -1
  182. package/dist/cdn/{3AOF4LUS.js → WQZCO2AW.js} +1 -1
  183. package/dist/cdn/{B3FZHYU3.js → WRF6JOZU.js} +1 -1
  184. package/dist/cdn/{B4L5PPNM.js → WSJSANVQ.js} +1 -1
  185. package/dist/cdn/{OZAVEDAG.js → WSKLFUNL.js} +1 -1
  186. package/dist/cdn/{GZUDQT4W.js → WUBAEUK7.js} +1 -1
  187. package/dist/cdn/{AZ2NOHFM.js → WXATVC7S.js} +1 -1
  188. package/dist/cdn/{BQ6PFZDG.js → XHZTVEJS.js} +1 -1
  189. package/dist/cdn/{SJB6YRC2.js → XIUSMCMN.js} +1 -1
  190. package/dist/cdn/{47EZUZOL.js → XJVZ74OX.js} +1 -1
  191. package/dist/cdn/{NQHTDTQ5.js → XLYYPZM7.js} +1 -1
  192. package/dist/cdn/{XGVUN7HD.js → XN3IDEBJ.js} +1 -1
  193. package/dist/cdn/{ERXEPWUJ.js → XPR37NZ7.js} +1 -1
  194. package/dist/cdn/{WQH6LR5Y.js → XSQEABFA.js} +1 -1
  195. package/dist/cdn/{FDCZDZTJ.js → XU4K7J6G.js} +1 -1
  196. package/dist/cdn/{4S2B4MOY.js → XUGFJ3CN.js} +1 -1
  197. package/dist/cdn/{UKZCK4AJ.js → XXMSGN6N.js} +1 -1
  198. package/dist/cdn/{KF45ZCQ7.js → Y7CO5YHX.js} +1 -1
  199. package/dist/cdn/{6MBZ7QVK.js → YDYRHRMM.js} +1 -1
  200. package/dist/cdn/{WDBOTFWK.js → YEVX7HKB.js} +1 -1
  201. package/dist/cdn/{R3NG6GO5.js → YI5I3CNE.js} +1 -1
  202. package/dist/cdn/{GKR6XHM7.js → YKXNMAT2.js} +1 -1
  203. package/dist/cdn/{FTG6IVAX.js → YP4O53GI.js} +1 -1
  204. package/dist/cdn/{MAWMRFEQ.js → Z3Y7FRJO.js} +1 -1
  205. package/dist/cdn/{KKCQY35G.js → ZBXYUXAE.js} +1 -1
  206. package/dist/cdn/{T54NCGUQ.js → ZCZEDLOP.js} +1 -1
  207. package/dist/cdn/{6CIXAVQQ.js → ZDAARVMV.js} +1 -1
  208. package/dist/cdn/{YDUHARAM.js → ZF2XR5RY.js} +1 -1
  209. package/dist/cdn/{K3UC44KX.js → ZNFA2EZP.js} +1 -1
  210. package/dist/cdn/{ADD3FVD6.js → ZRLKTKBI.js} +1 -1
  211. package/dist/cdn/{SZEYWCNS.js → ZV5OJT7V.js} +1 -1
  212. package/dist/cdn/{YGW5PYWZ.js → ZXVSXONX.js} +1 -1
  213. package/dist/cdn/{CNJ6SN5S.js → ZYTLNPST.js} +1 -1
  214. package/dist/cdn/index.js +1 -1
  215. package/dist/chunks/runtime.js +1 -1
  216. package/dist/components/arcgis-feature-title/customElement.js +7 -6
  217. package/dist/components/arcgis-multi-feature-form/customElement.d.ts +9 -7
  218. package/dist/components/arcgis-multi-feature-form/customElement.js +98 -21
  219. package/dist/components/arcgis-paste/customElement.js +1 -1
  220. package/dist/docs/api.json +1 -1
  221. package/dist/docs/docs.json +1 -1
  222. package/dist/docs/vscode.html-custom-data.json +1 -1
  223. package/dist/docs/web-types.json +1 -1
  224. package/dist/loader.js +1 -1
  225. package/dist/types/lumina.d.ts +1 -1
  226. package/dist/types/preact.d.ts +1 -1
  227. package/dist/types/react.d.ts +1 -1
  228. package/dist/types/stencil.d.ts +1 -1
  229. package/package.json +4 -4
  230. package/dist/cdn/4Q7JOXMR.js +0 -2
  231. package/dist/cdn/6ULWJF4W.js +0 -2
  232. package/dist/cdn/E7MZGFTI.js +0 -2
  233. package/dist/cdn/JMQJ3WPN.js +0 -2
  234. package/dist/cdn/MKZT66UA.js +0 -2
  235. package/dist/cdn/PWEBZBLN.js +0 -2
@@ -1,5 +1,5 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import{M as l,N as o,O as g,Q as m,U as c,b as n,p as s}from"./XF2Q2HB6.js";import"./3TTFCHAA.js";export default $arcgis.t(([u,d,y,I,{previewGraphic:i}])=>{var _=new d,w=new y,b=new I;function f(a){if(!a)return null;switch(a.geometryType){case"multipoint":case"point":return b;case"polygon":return _;case"polyline":return w;default:return null}}var r=class extends g{constructor(){super(...arguments),this._lastRun=0,this._attempted=!1,this._isCurrentlyInView=!1,this._io=null,this._imageContainerDiv=l(),this._generatedImageData=null,this.useTrueShape=!1,this.widthInPixels=16,this.heightInPixels=16}static{this.properties={_generatedImageData:16,graphic:0,layer:0,tableSymbolIcon:0,minWidth:9,useTrueShape:5,actualSymbol:0,widthInPixels:9,heightInPixels:9}}get rootLayer(){return this.layer?.type==="subtype-sublayer"?this.layer.parent:this.layer}loaded(){this.manager.onLifecycle(()=>(this._addIntersectionObserver(),()=>{this._removeIntersectionObserver()}))}willUpdate(e){e.has("graphic")&&(this.hasUpdated||this.graphic!==null)&&this._changeGraphic()}updated(){!this._attempted&&this._isCurrentlyInView&&(this._attempted=!0,this._handleImage().catch(e=>{s("warn",this,"Failed processing image")}))}_changeGraphic(){this._changeData()}_changeData(){this._generatedImageData=null,this._attempted=!1}async _generateImage(){return this.actualSymbol&&this.graphic?.geometry&&this.useTrueShape&&!this.layer?await i(new u({attributes:this.graphic.attributes,geometry:this.graphic.geometry}),{format:"string",widthInPixels:this.widthInPixels,heightInPixels:this.heightInPixels,useGeometryForShape:this.useTrueShape,fallbackSymbol:this.actualSymbol}):this.actualSymbol?await i(null,{format:"string",widthInPixels:this.widthInPixels,heightInPixels:this.heightInPixels,useGeometryForShape:!1,fallbackSymbol:this.actualSymbol}):this.layer&&this.graphic?this.rootLayer.isTable?this.tableSymbolIcon?await i(null,{format:"string",widthInPixels:this.widthInPixels,heightInPixels:this.heightInPixels,useGeometryForShape:!1,fallbackSymbol:this.tableSymbolIcon}):"":this.useTrueShape?this.graphic.geometry?await this._generatePreviewGraphic():"":await this._generatePreviewGraphic():""}async _generatePreviewGraphic(){return await i(new u({attributes:this.graphic.attributes,geometry:this.graphic.geometry,layer:this.layer}),{format:"string",widthInPixels:this.widthInPixels,heightInPixels:this.heightInPixels,useGeometryForShape:this.useTrueShape,fallbackSymbol:f(this.layer)})}async _handleImage(){let e=++this._lastRun;if(!this._generatedImageData||this._generatedImageData==="")try{let t=await this._generateImage();if(this._lastRun!==e||this._generatedImageData===t)return;this._generatedImageData=t}finally{this._attempted=!0}}_addIntersectionObserver(){let e={rootMargin:"50px 0px",threshold:.01};this._imageContainerDiv.value&&requestAnimationFrame(()=>{this.isConnected&&(this._io=new IntersectionObserver(t=>{let h=!1;t.forEach(p=>{p.intersectionRatio>0&&!h?(h=!0,this._isCurrentlyInView=!0,this._handleImage().catch(x=>{s("warn",this,"Failed processing image")})):this._isCurrentlyInView=!1})},e),this._io?.observe(this._imageContainerDiv.value))})}_removeIntersectionObserver(){this._io?.disconnect(),this._io=null}_generateInnerHTML(){return this._generatedImageData?this._generatedImageData.startsWith("<")?this._generatedImageData:`
2
+ import{M as l,N as o,O as g,Q as m,U as c,b as n,p as s}from"./J4CQT4XJ.js";import"./3TTFCHAA.js";export default $arcgis.t(([u,d,y,I,{previewGraphic:i}])=>{var _=new d,w=new y,b=new I;function f(a){if(!a)return null;switch(a.geometryType){case"multipoint":case"point":return b;case"polygon":return _;case"polyline":return w;default:return null}}var r=class extends g{constructor(){super(...arguments),this._lastRun=0,this._attempted=!1,this._isCurrentlyInView=!1,this._io=null,this._imageContainerDiv=l(),this._generatedImageData=null,this.useTrueShape=!1,this.widthInPixels=16,this.heightInPixels=16}static{this.properties={_generatedImageData:16,graphic:0,layer:0,tableSymbolIcon:0,minWidth:9,useTrueShape:5,actualSymbol:0,widthInPixels:9,heightInPixels:9}}get rootLayer(){return this.layer?.type==="subtype-sublayer"?this.layer.parent:this.layer}loaded(){this.manager.onLifecycle(()=>(this._addIntersectionObserver(),()=>{this._removeIntersectionObserver()}))}willUpdate(e){e.has("graphic")&&(this.hasUpdated||this.graphic!==null)&&this._changeGraphic()}updated(){!this._attempted&&this._isCurrentlyInView&&(this._attempted=!0,this._handleImage().catch(e=>{s("warn",this,"Failed processing image")}))}_changeGraphic(){this._changeData()}_changeData(){this._generatedImageData=null,this._attempted=!1}async _generateImage(){return this.actualSymbol&&this.graphic?.geometry&&this.useTrueShape&&!this.layer?await i(new u({attributes:this.graphic.attributes,geometry:this.graphic.geometry}),{format:"string",widthInPixels:this.widthInPixels,heightInPixels:this.heightInPixels,useGeometryForShape:this.useTrueShape,fallbackSymbol:this.actualSymbol}):this.actualSymbol?await i(null,{format:"string",widthInPixels:this.widthInPixels,heightInPixels:this.heightInPixels,useGeometryForShape:!1,fallbackSymbol:this.actualSymbol}):this.layer&&this.graphic?this.rootLayer.isTable?this.tableSymbolIcon?await i(null,{format:"string",widthInPixels:this.widthInPixels,heightInPixels:this.heightInPixels,useGeometryForShape:!1,fallbackSymbol:this.tableSymbolIcon}):"":this.useTrueShape?this.graphic.geometry?await this._generatePreviewGraphic():"":await this._generatePreviewGraphic():""}async _generatePreviewGraphic(){return await i(new u({attributes:this.graphic.attributes,geometry:this.graphic.geometry,layer:this.layer}),{format:"string",widthInPixels:this.widthInPixels,heightInPixels:this.heightInPixels,useGeometryForShape:this.useTrueShape,fallbackSymbol:f(this.layer)})}async _handleImage(){let e=++this._lastRun;if(!this._generatedImageData||this._generatedImageData==="")try{let t=await this._generateImage();if(this._lastRun!==e||this._generatedImageData===t)return;this._generatedImageData=t}finally{this._attempted=!0}}_addIntersectionObserver(){let e={rootMargin:"50px 0px",threshold:.01};this._imageContainerDiv.value&&requestAnimationFrame(()=>{this.isConnected&&(this._io=new IntersectionObserver(t=>{let h=!1;t.forEach(p=>{p.intersectionRatio>0&&!h?(h=!0,this._isCurrentlyInView=!0,this._handleImage().catch(x=>{s("warn",this,"Failed processing image")})):this._isCurrentlyInView=!1})},e),this._io?.observe(this._imageContainerDiv.value))})}_removeIntersectionObserver(){this._io?.disconnect(),this._io=null}_generateInnerHTML(){return this._generatedImageData?this._generatedImageData.startsWith("<")?this._generatedImageData:`
3
3
  <img
4
4
  alt=''
5
5
  src=${this._generatedImageData}
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import{a as d,b as f}from"./PC4PAQXQ.js";import{p as c}from"./XF2Q2HB6.js";export default $arcgis.t(([b,{property:s,subclass:h},m])=>{var w=Object.defineProperty,_=Object.getOwnPropertyDescriptor,a=(r,t,o,e)=>{for(var n=e>1?void 0:e?_(t,o):t,l=r.length-1,u;l>=0;l--)(u=r[l])&&(n=(e?u(t,o,n):u(n))||n);return e&&n&&w(t,o,n),n};function q(r,t,o){if(r&&typeof r=="object"&&!Array.isArray(r)){let e="details"in r&&r.details&&typeof r.details=="object"&&!Array.isArray(r.details)?{detail:r.details}:void 0,n=o?`${o} - ${String(r)}`:String(r);c("error",t,n,e)}}function y(r="Aborted"){return new m("AbortError",r)}function L(r,t="Aborted"){if(v(r))throw y(t)}function p(r){return r instanceof AbortSignal?r:r?.signal??void 0}function v(r){return p(r)?.aborted??!1}function g(r){return r?.name==="AbortError"}function A(r){return{ok:!0,value:r}}function C(r){return{ok:!1,error:r}}function k(r){return r?.ok?r.value:null}function j(r){return r!=null&&!r.ok?r.error:null}function E(r,t){let o=p(r);if(o==null)return;if(o.aborted){t();return}let e=()=>t();return o.addEventListener("abort",e,{once:!0}),{remove:()=>o.removeEventListener("abort",e)}}function O(r,t){return new i(r,t)}var i=class extends b{constructor(r,t){super({}),this._abortHandle=null,this.abort=()=>{this._abortController=d(this._abortController)},this.remove=this.abort,this._abortController=new AbortController;let{signal:o}=this._abortController;this.promise=r(o),this.promise.then(e=>{this._result=A(e),this._cleanup()},e=>{this._result=C(e),this._cleanup()}),this._abortHandle=E(t,this.abort)}get value(){return k(this._result)}get error(){return j(this._result)}get finished(){return this._result!=null}destroy(){this.abort()}_cleanup(){this._abortHandle=f(this._abortHandle),this._abortController=null}[Symbol.dispose](){this._cleanup()}};a([s()],i.prototype,"value",1);a([s()],i.prototype,"error",1);a([s()],i.prototype,"finished",1);a([s()],i.prototype,"promise",2);a([s()],i.prototype,"_result",2);i=a([h("esri.components.asyncUtils.ReactiveTask")],i);function P(r){return r.catch(t=>{if(!g(t))throw t})}function D(r,t={}){if("requestIdleCallback"in window)return window.requestIdleCallback(r,t);let o=t.timeout!=null?t.timeout:50,e=typeof performance<"u"&&performance.now?performance.now.bind(performance):Date.now,n=e();return window.setTimeout(()=>{r({didTimeout:!1,timeRemaining(){return Math.max(0,o-(e()-n))}})},1)}function R(r){"cancelIdleCallback"in window&&window.cancelIdleCallback(r),window.clearTimeout(r)}return{a:q,b:L,c:v,d:g,e:O,f:P,g:D,h:R}},"core/Accessor","core/accessorSupport/decorators","core/Error")
2
+ import{a as d,b as f}from"./PC4PAQXQ.js";import{p as c}from"./J4CQT4XJ.js";export default $arcgis.t(([b,{property:s,subclass:h},m])=>{var w=Object.defineProperty,_=Object.getOwnPropertyDescriptor,a=(r,t,o,e)=>{for(var n=e>1?void 0:e?_(t,o):t,l=r.length-1,u;l>=0;l--)(u=r[l])&&(n=(e?u(t,o,n):u(n))||n);return e&&n&&w(t,o,n),n};function q(r,t,o){if(r&&typeof r=="object"&&!Array.isArray(r)){let e="details"in r&&r.details&&typeof r.details=="object"&&!Array.isArray(r.details)?{detail:r.details}:void 0,n=o?`${o} - ${String(r)}`:String(r);c("error",t,n,e)}}function y(r="Aborted"){return new m("AbortError",r)}function L(r,t="Aborted"){if(v(r))throw y(t)}function p(r){return r instanceof AbortSignal?r:r?.signal??void 0}function v(r){return p(r)?.aborted??!1}function g(r){return r?.name==="AbortError"}function A(r){return{ok:!0,value:r}}function C(r){return{ok:!1,error:r}}function k(r){return r?.ok?r.value:null}function j(r){return r!=null&&!r.ok?r.error:null}function E(r,t){let o=p(r);if(o==null)return;if(o.aborted){t();return}let e=()=>t();return o.addEventListener("abort",e,{once:!0}),{remove:()=>o.removeEventListener("abort",e)}}function O(r,t){return new i(r,t)}var i=class extends b{constructor(r,t){super({}),this._abortHandle=null,this.abort=()=>{this._abortController=d(this._abortController)},this.remove=this.abort,this._abortController=new AbortController;let{signal:o}=this._abortController;this.promise=r(o),this.promise.then(e=>{this._result=A(e),this._cleanup()},e=>{this._result=C(e),this._cleanup()}),this._abortHandle=E(t,this.abort)}get value(){return k(this._result)}get error(){return j(this._result)}get finished(){return this._result!=null}destroy(){this.abort()}_cleanup(){this._abortHandle=f(this._abortHandle),this._abortController=null}[Symbol.dispose](){this._cleanup()}};a([s()],i.prototype,"value",1);a([s()],i.prototype,"error",1);a([s()],i.prototype,"finished",1);a([s()],i.prototype,"promise",2);a([s()],i.prototype,"_result",2);i=a([h("esri.components.asyncUtils.ReactiveTask")],i);function P(r){return r.catch(t=>{if(!g(t))throw t})}function D(r,t={}){if("requestIdleCallback"in window)return window.requestIdleCallback(r,t);let o=t.timeout!=null?t.timeout:50,e=typeof performance<"u"&&performance.now?performance.now.bind(performance):Date.now,n=e();return window.setTimeout(()=>{r({didTimeout:!1,timeRemaining(){return Math.max(0,o-(e()-n))}})},1)}function R(r){"cancelIdleCallback"in window&&window.cancelIdleCallback(r),window.clearTimeout(r)}return{a:q,b:L,c:v,d:g,e:O,f:P,g:D,h:R}},"core/Accessor","core/accessorSupport/decorators","core/Error")
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import a from"./QG3FVT3A.js";import{d as g}from"./B7RY25MR.js";import{O as m,P as f,R as x,U as h,a as p,b as r}from"./XF2Q2HB6.js";import"./3TTFCHAA.js";export default $arcgis.t(([{addProxy:k},{a:v}])=>{var u=(n,e,i=!1)=>{if(!n||!e)return!1;let t=new URL(n),s=new URL(e);return!i&&t.protocol!==s.protocol||t.host==null||s.host==null?!1:t.host.toLowerCase()===s.host.toLowerCase()&&t.port===s.port};var $=p`.export-section{padding:var(--calcite-spacing-xxs)}.export-section-centered{text-align:center}.exported-files-empty{display:flex;flex-direction:column;align-items:center;padding:var(--calcite-spacing-lg) var(--calcite-spacing-sm);font-size:small}.exported-files-title{font-weight:700;font-size:var(--calcite-font-size)}.exported-file{display:flex;align-items:center;justify-content:space-between}.exported-file-link-title,.exported-file-link-description{word-wrap:break-word;word-break:break-all;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical}`;function L(n){let{state:e,extension:i}=n;switch(e){case"pending":return"spinner";case"error":return"exclamation-mark-circle";default:return i?.toLowerCase()?.includes("pdf")?"file-pdf":"file"}}var l=class extends m{constructor(){super(...arguments),this._handleLinkClick=e=>{if(e?.state!=="ready"||!e.url)return;let i=e.url,t=document.createElement("a");t.target="_blank",t.href=i,t.rel="noreferrer",t.download=e.formattedName??"";{t.click();return}}}static{this.properties={showSaveAs:5,viewModel:0,messages:0,allowedFormatsForSaving:1,arcgisSaveAs:0}}static{this.styles=$}loaded(){this.manager.onLifecycle(()=>[this.viewModel.exportedLinks.on("change",()=>this.requestUpdate())])}render(){let e=this.viewModel.exportedLinks,i={"export-section-centered":!e.length};return r`<section class=${f(g("export-section",i))}>${e.length===0?r`<div class="exported-files-empty"><calcite-icon icon=file scale=l></calcite-icon><div><p class="exported-files-title">${this.messages.noExportedFiles}</p><div>${this.messages.exportHint}</div></div></div>`:r`<calcite-list .filterEnabled=${e.length>10} .label=${this.messages.exportedLinksList} selection-mode=none>${e.map(t=>r`<calcite-list-item .label=${t.formattedName??""}>${this._renderExportedLinkItemContent(t)}${this._renderExportedLinkItemIcon(t)}${this._renderExportedLinkItemAction(t)}</calcite-list-item><arcgis-print-exports-panel-item-popover .allowedFormatsForSaving=${this.allowedFormatsForSaving} .arcgisSaveAs=${this.arcgisSaveAs} .exportedLink=${t} .messages=${this.messages} .showSaveAs=${this.showSaveAs} .viewModel=${this.viewModel}></arcgis-print-exports-panel-item-popover>`)}</calcite-list>`}</section>`}_renderExportedLinkItemContent(e){let i=this.messages,{url:t,state:s,error:o}=e,c=e.formattedName??"",a=t||null;a&&(a=k(a));let d=u(a,document.location.href),w=s==="error"?o?.name==="print-task:cim-symbol-unsupported"?i.exportWebMapCIMError:i.exportWebMapError:null;return r`<div class="exported-file" slot=content @click=${()=>this._handleLinkClick(e)}><div><div class="exported-file-link-title">${c}</div><div class="exported-file-link-description">${s==="pending"?i.generatingExport:w||(d?i.ready:i.linkReady)}</div></div>${s==="ready"?r`<calcite-icon .ariaLabel=${`${c}. ${i.linkReady}`} .icon=${d?"download-to":"launch"} scale=s slot=content-end></calcite-icon>`:null}</div>`}_renderExportedLinkItemIcon(e){return e.state==="pending"?r`<calcite-loader inline .label=${this.messages.generatingExport} scale=m slot=content-start></calcite-loader>`:r`<calcite-icon .icon=${L(e)} scale=s slot=content-start></calcite-icon>`}_renderExportedLinkItemAction(e){let{state:i}=e,t=e.formattedName??"",s=this.messages,o=this.showSaveAs&&i!=="error"&&v(this.allowedFormatsForSaving,e.extension);return i!=="pending"?r`<calcite-action .icon=${o?"ellipsis":"x"} id=${(o?`${t}-popover-button`:void 0)??x} @click=${o?void 0:()=>{this.viewModel.exportedLinks.remove(e)}} slot=actions-end .text=${o?s.options:s.delete}></calcite-action>`:null}};h("arcgis-print-exports-panel",l);return l},"core/urlUtils",a)
2
+ import a from"./AJULQPDX.js";import{d as g}from"./WD2JWNQF.js";import{O as m,P as f,R as x,U as h,a as p,b as r}from"./J4CQT4XJ.js";import"./3TTFCHAA.js";export default $arcgis.t(([{addProxy:k},{a:v}])=>{var u=(n,e,i=!1)=>{if(!n||!e)return!1;let t=new URL(n),s=new URL(e);return!i&&t.protocol!==s.protocol||t.host==null||s.host==null?!1:t.host.toLowerCase()===s.host.toLowerCase()&&t.port===s.port};var $=p`.export-section{padding:var(--calcite-spacing-xxs)}.export-section-centered{text-align:center}.exported-files-empty{display:flex;flex-direction:column;align-items:center;padding:var(--calcite-spacing-lg) var(--calcite-spacing-sm);font-size:small}.exported-files-title{font-weight:700;font-size:var(--calcite-font-size)}.exported-file{display:flex;align-items:center;justify-content:space-between}.exported-file-link-title,.exported-file-link-description{word-wrap:break-word;word-break:break-all;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical}`;function L(n){let{state:e,extension:i}=n;switch(e){case"pending":return"spinner";case"error":return"exclamation-mark-circle";default:return i?.toLowerCase()?.includes("pdf")?"file-pdf":"file"}}var l=class extends m{constructor(){super(...arguments),this._handleLinkClick=e=>{if(e?.state!=="ready"||!e.url)return;let i=e.url,t=document.createElement("a");t.target="_blank",t.href=i,t.rel="noreferrer",t.download=e.formattedName??"";{t.click();return}}}static{this.properties={showSaveAs:5,viewModel:0,messages:0,allowedFormatsForSaving:1,arcgisSaveAs:0}}static{this.styles=$}loaded(){this.manager.onLifecycle(()=>[this.viewModel.exportedLinks.on("change",()=>this.requestUpdate())])}render(){let e=this.viewModel.exportedLinks,i={"export-section-centered":!e.length};return r`<section class=${f(g("export-section",i))}>${e.length===0?r`<div class="exported-files-empty"><calcite-icon icon=file scale=l></calcite-icon><div><p class="exported-files-title">${this.messages.noExportedFiles}</p><div>${this.messages.exportHint}</div></div></div>`:r`<calcite-list .filterEnabled=${e.length>10} .label=${this.messages.exportedLinksList} selection-mode=none>${e.map(t=>r`<calcite-list-item .label=${t.formattedName??""}>${this._renderExportedLinkItemContent(t)}${this._renderExportedLinkItemIcon(t)}${this._renderExportedLinkItemAction(t)}</calcite-list-item><arcgis-print-exports-panel-item-popover .allowedFormatsForSaving=${this.allowedFormatsForSaving} .arcgisSaveAs=${this.arcgisSaveAs} .exportedLink=${t} .messages=${this.messages} .showSaveAs=${this.showSaveAs} .viewModel=${this.viewModel}></arcgis-print-exports-panel-item-popover>`)}</calcite-list>`}</section>`}_renderExportedLinkItemContent(e){let i=this.messages,{url:t,state:s,error:o}=e,c=e.formattedName??"",a=t||null;a&&(a=k(a));let d=u(a,document.location.href),w=s==="error"?o?.name==="print-task:cim-symbol-unsupported"?i.exportWebMapCIMError:i.exportWebMapError:null;return r`<div class="exported-file" slot=content @click=${()=>this._handleLinkClick(e)}><div><div class="exported-file-link-title">${c}</div><div class="exported-file-link-description">${s==="pending"?i.generatingExport:w||(d?i.ready:i.linkReady)}</div></div>${s==="ready"?r`<calcite-icon .ariaLabel=${`${c}. ${i.linkReady}`} .icon=${d?"download-to":"launch"} scale=s slot=content-end></calcite-icon>`:null}</div>`}_renderExportedLinkItemIcon(e){return e.state==="pending"?r`<calcite-loader inline .label=${this.messages.generatingExport} scale=m slot=content-start></calcite-loader>`:r`<calcite-icon .icon=${L(e)} scale=s slot=content-start></calcite-icon>`}_renderExportedLinkItemAction(e){let{state:i}=e,t=e.formattedName??"",s=this.messages,o=this.showSaveAs&&i!=="error"&&v(this.allowedFormatsForSaving,e.extension);return i!=="pending"?r`<calcite-action .icon=${o?"ellipsis":"x"} id=${(o?`${t}-popover-button`:void 0)??x} @click=${o?void 0:()=>{this.viewModel.exportedLinks.remove(e)}} slot=actions-end .text=${o?s.options:s.delete}></calcite-action>`:null}};h("arcgis-print-exports-panel",l);return l},"core/urlUtils",a)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import{c as t}from"./BSE5M4WJ.js";import{x as e}from"./XF2Q2HB6.js";var i=t((o,s)=>(s.onLoaded(()=>{let l=o.el;o.listenOn(l.childElem,"calciteFlowItemClose",()=>{o.arcgisClose.emit(),o.autoDestroyDisabled||o.destroy()})}),e()));export{i as a};
2
+ import{c as t}from"./K2AR3ZWH.js";import{x as e}from"./J4CQT4XJ.js";var i=t((o,s)=>(s.onLoaded(()=>{let l=o.el;o.listenOn(l.childElem,"calciteFlowItemClose",()=>{o.arcgisClose.emit(),o.autoDestroyDisabled||o.destroy()})}),e()));export{i as a};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import a from"./ASGNIA7K.js";export default $arcgis.t(([{b:r}])=>{function w(){let t=new AbortController;return async n=>{t.abort(),t=new AbortController;let l={signal:t.signal},e=n.toArray().map(a=>u(a,l));await Promise.all(e),r(l)}}async function u(t,n){await t.load(n),await t.loadAll(),r(n),t.summaryStatistics&&await t.summaryStatistics.load(n)}var i="fullmodel",c=t=>n=>{let l=t.toLowerCase();return n.sublayers.find(e=>e.modelName?.toLowerCase()===l)??null},y=c(i);function p(t,n){let l=m(t,n);if(l==null)return null;let e=l.fieldName;if(e==null||!e)return null;let a=f(t,e),s=new Map;for(let o of l.mostFrequentValues??[])typeof o=="number"&&s.set(o,a!=null?a.getName(o):String(o));return{fieldName:e,fieldValueMap:s}}function f(t,n){for(let l of t.allSublayers){let e=l.type==="building-component"?l.getFieldDomain?.(n):null;if(e?.type==="coded-value")return e}return null}function m(t,n){let l=t.summaryStatistics?.fields??[],e=n.toLowerCase();return l.find(a=>a.modelName?.toLowerCase()===e)??null}return{a:w,b:y,c:p}},a)
2
+ import a from"./GEZ4HISO.js";export default $arcgis.t(([{b:r}])=>{function w(){let t=new AbortController;return async n=>{t.abort(),t=new AbortController;let l={signal:t.signal},e=n.toArray().map(a=>u(a,l));await Promise.all(e),r(l)}}async function u(t,n){await t.load(n),await t.loadAll(),r(n),t.summaryStatistics&&await t.summaryStatistics.load(n)}var i="fullmodel",c=t=>n=>{let l=t.toLowerCase();return n.sublayers.find(e=>e.modelName?.toLowerCase()===l)??null},y=c(i);function p(t,n){let l=m(t,n);if(l==null)return null;let e=l.fieldName;if(e==null||!e)return null;let a=f(t,e),s=new Map;for(let o of l.mostFrequentValues??[])typeof o=="number"&&s.set(o,a!=null?a.getName(o):String(o));return{fieldName:e,fieldValueMap:s}}function f(t,n){for(let l of t.allSublayers){let e=l.type==="building-component"?l.getFieldDomain?.(n):null;if(e?.type==="coded-value")return e}return null}function m(t,n){let l=t.summaryStatistics?.fields??[],e=n.toLowerCase();return l.find(a=>a.modelName?.toLowerCase()===e)??null}return{a:w,b:y,c:p}},a)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import{a as T}from"./TYBW347N.js";import{d as c,i as S}from"./NTESPOTX.js";import j from"./FO7KY7DO.js";import{a as g}from"./IGSZABNU.js";import i from"./ASGNIA7K.js";import"./PC4PAQXQ.js";import{a as v}from"./DRZ6WHPD.js";import h from"./R4WFQOV2.js";import{a as M}from"./NQ775DQU.js";import{a as p}from"./54VXNFQ4.js";import f from"./G24BYXK5.js";import e from"./YGW5PYWZ.js";import{h as _}from"./BSE5M4WJ.js";import"./LK4Z556U.js";import a from"./TD5P6HY7.js";import"./B7RY25MR.js";import{O as x,P as u,R as y,U as b,a as w,b as d,x as D}from"./XF2Q2HB6.js";import"./3TTFCHAA.js";export default $arcgis.t(([E,{property:a,subclass:R},{watch:A,whenOnce:j},{forceInteractive:H},,,,C,,O])=>{var U=w`.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}.esri-widget{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}:host{position:relative;width:var(--arcgis-internal-panel-width, 300px)}.root{--section-internal-gap: var(--calcite-spacing-md);display:flex;flex-direction:column;gap:var(--calcite-spacing-lg);min-width:var(--arcgis-internal-panel-min-width, 300px);overflow:var(--arcgis-internal-panel-overflow, visible);height:fit-content}:host([visual-scale="s"]) .root{--section-internal-gap: var(--calcite-spacing-sm)}:host([visual-scale="l"]) .root{--section-internal-gap: var(--calcite-spacing-lg)}.time-range-section arcgis-time-of-day-slider{margin-block-end:var(--section-internal-gap)}.time-range-section calcite-label:last-child,.visualization-options-section calcite-label:last-child{--calcite-label-margin-bottom: 0}.date-picker{flex-grow:1;display:block}.visualization-options{flex-direction:column;display:flex;gap:var(--section-internal-gap)}.hidden-config{display:none}`,Z=Object.defineProperty,F=Object.getOwnPropertyDescriptor,r=(i,e,t,n)=>{for(var s=n>1?void 0:n?F(e,t):e,l=i.length-1,h;l>=0;l--)(h=i[l])&&(s=(n?h(e,t,s):h(s))||s);return n&&s&&Z(e,t,s),s},$=Symbol("interactiveHandle"),o=class extends O{constructor(){super(...arguments),this.supportedViewType="3d",this.unsupportedErrorMessage="The Shadow Cast component is only supported in 3D views.",this.shouldForceInteractive=!1,this.minMinDuration=0,this.maxMinDuration=c(8,"hours","milliseconds"),this.hideShadowDurationTooltip=!1}constructAnalysis(){return new E}initialize(){this.addHandles(A(()=>({analysisView:this.analysisView,tooltipVisible:!this.hideShadowDurationTooltip}),({analysisView:i,tooltipVisible:e})=>{this.removeHandles($),i&&(i.interactive=e,e&&this.addHandles(H(i),$))},{sync:!0,initial:!0}))}get date(){return this.analysis.date}set date(i){this.analysis.date=i}get discreteColor(){return this.analysis.discreteOptions.color}set discreteColor(i){this.analysis.discreteOptions.color=i}get discreteInterval(){return this.analysis.discreteOptions.interval}set discreteInterval(i){this.analysis.discreteOptions.interval=i}get totalDurationColor(){return this.analysis.totalDurationOptions.color}set totalDurationColor(i){this.analysis.totalDurationOptions.color=i}get totalDurationMode(){return this.analysis.totalDurationOptions.mode}set totalDurationMode(i){this.analysis.totalDurationOptions.mode=i}get localDate(){return S(this.view,this.effectiveUtcOffset)}get mode(){return this.analysis.mode}set mode(i){this.analysis.mode=i}get visualizeSunlight(){return this.analysis.visualizeSunlight}set visualizeSunlight(i){this.analysis.visualizeSunlight=i}get startTimeOfDay(){return this.analysis.startTimeOfDay}set startTimeOfDay(i){this.analysis.startTimeOfDay=i}get endTimeOfDay(){return this.analysis.endTimeOfDay}set endTimeOfDay(i){this.analysis.endTimeOfDay=i}get state(){return this.view?.ready&&this.analysisView?"ready":"disabled"}get minDurationColor(){return this.analysis.minDurationOptions.color}set minDurationColor(i){this.analysis.minDurationOptions.color=i}get minDuration(){return this.analysis.minDurationOptions.minDuration}set minDuration(i){this.analysis.minDurationOptions.minDuration=i}get minDurationContextEnabled(){return this.analysis.minDurationOptions.contextEnabled}set minDurationContextEnabled(i){this.analysis.minDurationOptions.contextEnabled=i}get minDurationContextColor(){return this.analysis.minDurationOptions.contextOptions.color}set minDurationContextColor(i){this.analysis.minDurationOptions.contextOptions.color=i}get minDurationContextInterval(){return this.analysis.minDurationOptions.contextOptions.interval}set minDurationContextInterval(i){this.analysis.minDurationOptions.contextOptions.interval=i}get utcOffset(){return this.analysis.utcOffset??void 0}set utcOffset(i){this.analysis.utcOffset=i}get effectiveUtcOffset(){let{utcOffset:i}=this.analysis;if(i!=null)return i;let e=this.view?.camera?.position;return e?T(e):0}async getDurationAtScreen(i){return await(await j(()=>this.analysisView)).getDurationAtScreen(i)}};r([a()],o.prototype,"date",1);r([a()],o.prototype,"discreteColor",1);r([a()],o.prototype,"discreteInterval",1);r([a()],o.prototype,"totalDurationColor",1);r([a()],o.prototype,"totalDurationMode",1);r([a()],o.prototype,"localDate",1);r([a()],o.prototype,"mode",1);r([a()],o.prototype,"visualizeSunlight",1);r([a()],o.prototype,"startTimeOfDay",1);r([a()],o.prototype,"endTimeOfDay",1);r([a()],o.prototype,"state",1);r([a()],o.prototype,"minDurationColor",1);r([a()],o.prototype,"minMinDuration",2);r([a()],o.prototype,"maxMinDuration",2);r([a()],o.prototype,"minDuration",1);r([a()],o.prototype,"minDurationContextEnabled",1);r([a()],o.prototype,"minDurationContextColor",1);r([a()],o.prototype,"minDurationContextInterval",1);r([a()],o.prototype,"utcOffset",1);r([a()],o.prototype,"effectiveUtcOffset",1);r([a()],o.prototype,"hideShadowDurationTooltip",2);o=r([R("components.shadow-cast.ShadowCastViewModel")],o);var q=C(o),f=class extends x{constructor(){super(...arguments),this.viewModel=q(this),this.messages=M(),this.analysis=this.viewModel.analysis,this.view=this.viewModel.view,this.visualizeSunlight=this.viewModel.visualizeSunlight,this.visualScale="m",this.autoDestroyDisabled=!1,this.endTimeOfDay=this.viewModel.endTimeOfDay,this.headingLevel=4,this.hideTimeRangeSlider=!1,this.hideTimezone=!1,this.hideDatePicker=!1,this.hideShadowDurationTooltip=this.viewModel.hideShadowDurationTooltip,this.hideVisualization=this.viewModel.hideVisualization,this.hideVisualizationOptions=!1,this.hideDiscreteOptions=!1,this.hideDiscreteColorPicker=!1,this.hideDiscreteInterval=!1,this.hideTotalDurationOptions=!1,this.hideTotalDurationColorPicker=!1,this.hideTotalDurationModeSelect=!1,this.hideMinDurationOptions=!1,this.hideMinDurationColorPicker=!1,this.hideMinDurationSlider=!1,this.hideMinDurationContextOptions=!1,this.hideMinDurationContextToggle=!1,this.hideMinDurationContextColorPicker=!1,this.hideMinDurationContextInterval=!1,this.icon="measure-building-height-shadow",this.mode=this.viewModel.mode,this.startTimeOfDay=this.viewModel.startTimeOfDay,this.state=this.viewModel.state,this.utcOffset=this.viewModel.utcOffset,this.discreteColor=this.viewModel.discreteColor,this.discreteInterval=this.viewModel.discreteInterval,this.totalDurationColor=this.viewModel.totalDurationColor,this.totalDurationMode=this.viewModel.totalDurationMode,this.minDuration=this.viewModel.minDuration,this.minDurationColor=this.viewModel.minDurationColor,this.minMinDuration=this.viewModel.minMinDuration,this.maxMinDuration=this.viewModel.maxMinDuration,this.minDurationContextEnabled=this.viewModel.minDurationContextEnabled,this.minDurationContextColor=this.viewModel.minDurationContextColor,this.minDurationContextInterval=this.viewModel.minDurationContextInterval,this.arcgisPropertyChange=_()("state"),this.arcgisReady=D()}static{this.properties={analysis:0,view:0,visualizeSunlight:5,visualScale:3,autoDestroyDisabled:5,date:1,endTimeOfDay:9,headingLevel:9,hideTimeRangeSlider:5,hideTimezone:5,hideDatePicker:5,hideShadowDurationTooltip:5,hideVisualization:5,hideVisualizationOptions:5,hideDiscreteOptions:5,hideDiscreteColorPicker:5,hideDiscreteInterval:5,hideTotalDurationOptions:5,hideTotalDurationColorPicker:5,hideTotalDurationModeSelect:5,hideMinDurationOptions:5,hideMinDurationColorPicker:5,hideMinDurationSlider:5,hideMinDurationContextOptions:5,hideMinDurationContextToggle:5,hideMinDurationContextColorPicker:5,hideMinDurationContextInterval:5,icon:3,label:1,mode:1,referenceElement:1,startTimeOfDay:9,state:32,utcOffset:9,discreteColor:0,discreteInterval:9,totalDurationColor:0,totalDurationMode:1,minDuration:9,minDurationColor:0,minMinDuration:9,maxMinDuration:9,minDurationContextEnabled:5,minDurationContextColor:0,minDurationContextInterval:9}}static{this.styles=U}get _effectiveMessages(){let{messages:e,visualizeSunlight:t}=this,{sunlight:n}=e;return{...e,discrete:t?n?.discrete:e.discrete,minDuration:t?n?.minDuration:e.minDuration,totalDuration:t?n?.totalDuration:e.totalDuration,timeInShadow:t?e.timeInSunlight:e.timeInShadow,timeRangeSliderLabel:e.timeRangeSliderLabel}}get date(){return this.viewModel.date}set date(e){this.viewModel.date=e}async destroy(){await this.manager.destroy()}async getDurationAtScreen(e){return await this.viewModel.getDurationAtScreen(e)}render(){let{_effectiveMessages:e}=this;return d`<div aria-label=${e.componentLabel??y} class=${u({root:!0,[p.widget]:!0,[p.widgetDisabled]:this.viewModel.state==="disabled",[p.panel]:!0})} role=presentation>${this._renderTimeRangeSection()}${g({hidden:this.hideVisualizationOptions,children:this._renderVisualizationOptionsSection()})}</div>`}_renderTimeRangeSection(){if(!this.analysis||this.hideTimeRangeSlider&&this.hideDatePicker)return;let{_effectiveMessages:e,viewModel:t}=this,n=this.visualScale;return d`<section class="time-range-section">${v({level:this.headingLevel,children:e.timeRangeHeading})}${g({hidden:this.hideTimeRangeSlider,children:this._renderTimeRange()})}${g({hidden:this.hideTimezone,children:d`<calcite-label .scale=${n}>${e.timezoneLabel}<calcite-input-time-zone mode=offset overlay-positioning=fixed .referenceDate=${t.localDate} .scale=${n} .value=${`${c(t.effectiveUtcOffset,"hours","minutes")}`} @calciteInputTimeZoneChange=${s=>{t.utcOffset=+s.target.value/60}}></calcite-input-time-zone></calcite-label>`})}${g({hidden:this.hideDatePicker,children:d`<calcite-label .scale=${n}>${e.dateLabel}<calcite-input-date-picker overlay-positioning=fixed placement=bottom .scale=${n} .valueAsDate=${t.date} @calciteInputDatePickerChange=${s=>{let l=s.currentTarget.valueAsDate;t.date=Array.isArray(l)?l[0]:l}}></calcite-input-date-picker></calcite-label>`})}</section>`}_renderTimeRange(){let{_effectiveMessages:e,viewModel:t}=this;return d`<arcgis-time-of-day-slider mode=range .startTime=${k(this.startTimeOfDay)} .endTime=${k(this.endTimeOfDay)} .label=${e.timeRangeSliderLabel} .visualScale=${this.visualScale} @arcgisTimeChange=${({currentTarget:n})=>{t.startTimeOfDay=c(n.startTime,"minutes","milliseconds"),t.endTimeOfDay=c(n.endTime,"minutes","milliseconds")}}></arcgis-time-of-day-slider>`}_renderVisualizationOptionsSection(){let{analysis:e,_effectiveMessages:t,headingLevel:n,viewModel:s}=this;if(!e)return;let{discreteOptions:l,totalDurationOptions:h,minDurationOptions:z}=e,m=(V,L)=>s.mode===V&&!L?void 0:"hidden-config",I=this.hideMinDurationContextOptions||this.visualizeSunlight,P=this.hideMinDurationContextToggle||this.visualizeSunlight;return d`<section class="visualization-options-section">${v({level:n,children:t.visualizationLabel})}<div class="visualization-options">${this._renderModeSelect()}<div class=${u(m("min-duration",this.hideMinDurationOptions))}><arcgis-shadow-cast-min-duration-config .hideColorPicker=${this.hideMinDurationColorPicker} .hideContextColorPicker=${this.hideMinDurationContextColorPicker} .hideContextInterval=${this.hideMinDurationContextInterval} .hideContextOptions=${I} .hideContextToggle=${P} .hideSlider=${this.hideMinDurationSlider} .minMinDuration=${this.minMinDuration} .maxMinDuration=${this.maxMinDuration} .messages=${t} .options=${z} .scale=${this.visualScale}></arcgis-shadow-cast-min-duration-config></div><div class=${u(m("total-duration",this.hideTotalDurationOptions))}><arcgis-shadow-cast-total-duration-config .hideColorPicker=${this.hideTotalDurationColorPicker} .hideModeSelect=${this.hideTotalDurationModeSelect} .messages=${t} .options=${h} .scale=${this.visualScale}></arcgis-shadow-cast-total-duration-config></div><div class=${u(m("discrete",this.hideDiscreteOptions))}><arcgis-shadow-cast-discrete-config .hideColorPicker=${this.hideDiscreteColorPicker} .hideInterval=${this.hideDiscreteInterval} .messages=${t} .options=${l} .scale=${this.visualScale}></arcgis-shadow-cast-discrete-config></div></div></section>`}_renderModeSelect(){let{_effectiveMessages:e,viewModel:t}=this,{mode:n}=t;return d`<calcite-select .label=${e.visualizationLabel??""} .scale=${this.visualScale} @calciteSelectChange=${s=>{let l=s.target.selectedOption?.value;t.mode=l??"min-duration"}}>${[{mode:"min-duration",label:e.minDuration?.optionLabel},{mode:"total-duration",label:e.totalDuration?.optionLabel},{mode:"discrete",label:e.discrete?.optionLabel}].map(({mode:s,label:l})=>d`<calcite-option .selected=${s===n} .value=${s} .label=${l}></calcite-option>`)}</calcite-select>`}};function k(i){return Math.round(c(i,"milliseconds","minutes"))}b("arcgis-shadow-cast",f);return f},"analysis/ShadowCastAnalysis","core/accessorSupport/decorators","core/reactiveUtils","applications/Components/analysisUtils",a,e,f,h,i,j)
2
+ import{a as T}from"./TYBW347N.js";import{d as c,i as S}from"./NTESPOTX.js";import j from"./R5SMQBHS.js";import{a as g}from"./IGSZABNU.js";import i from"./GEZ4HISO.js";import"./PC4PAQXQ.js";import{a as v}from"./4ZKWXSFX.js";import h from"./QRJYLUPS.js";import{a as M}from"./FWKQQQZ4.js";import{a as p}from"./54VXNFQ4.js";import f from"./UVMRWPW4.js";import e from"./ZXVSXONX.js";import{h as _}from"./K2AR3ZWH.js";import"./LH3XMT6P.js";import a from"./3UF42S5R.js";import"./WD2JWNQF.js";import{O as x,P as u,R as y,U as b,a as w,b as d,x as D}from"./J4CQT4XJ.js";import"./3TTFCHAA.js";export default $arcgis.t(([E,{property:a,subclass:R},{watch:A,whenOnce:j},{forceInteractive:H},,,,C,,O])=>{var U=w`.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}.esri-widget{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}:host{position:relative;width:var(--arcgis-internal-panel-width, 300px)}.root{--section-internal-gap: var(--calcite-spacing-md);display:flex;flex-direction:column;gap:var(--calcite-spacing-lg);min-width:var(--arcgis-internal-panel-min-width, 300px);overflow:var(--arcgis-internal-panel-overflow, visible);height:fit-content}:host([visual-scale="s"]) .root{--section-internal-gap: var(--calcite-spacing-sm)}:host([visual-scale="l"]) .root{--section-internal-gap: var(--calcite-spacing-lg)}.time-range-section arcgis-time-of-day-slider{margin-block-end:var(--section-internal-gap)}.time-range-section calcite-label:last-child,.visualization-options-section calcite-label:last-child{--calcite-label-margin-bottom: 0}.date-picker{flex-grow:1;display:block}.visualization-options{flex-direction:column;display:flex;gap:var(--section-internal-gap)}.hidden-config{display:none}`,Z=Object.defineProperty,F=Object.getOwnPropertyDescriptor,r=(i,e,t,n)=>{for(var s=n>1?void 0:n?F(e,t):e,l=i.length-1,h;l>=0;l--)(h=i[l])&&(s=(n?h(e,t,s):h(s))||s);return n&&s&&Z(e,t,s),s},$=Symbol("interactiveHandle"),o=class extends O{constructor(){super(...arguments),this.supportedViewType="3d",this.unsupportedErrorMessage="The Shadow Cast component is only supported in 3D views.",this.shouldForceInteractive=!1,this.minMinDuration=0,this.maxMinDuration=c(8,"hours","milliseconds"),this.hideShadowDurationTooltip=!1}constructAnalysis(){return new E}initialize(){this.addHandles(A(()=>({analysisView:this.analysisView,tooltipVisible:!this.hideShadowDurationTooltip}),({analysisView:i,tooltipVisible:e})=>{this.removeHandles($),i&&(i.interactive=e,e&&this.addHandles(H(i),$))},{sync:!0,initial:!0}))}get date(){return this.analysis.date}set date(i){this.analysis.date=i}get discreteColor(){return this.analysis.discreteOptions.color}set discreteColor(i){this.analysis.discreteOptions.color=i}get discreteInterval(){return this.analysis.discreteOptions.interval}set discreteInterval(i){this.analysis.discreteOptions.interval=i}get totalDurationColor(){return this.analysis.totalDurationOptions.color}set totalDurationColor(i){this.analysis.totalDurationOptions.color=i}get totalDurationMode(){return this.analysis.totalDurationOptions.mode}set totalDurationMode(i){this.analysis.totalDurationOptions.mode=i}get localDate(){return S(this.view,this.effectiveUtcOffset)}get mode(){return this.analysis.mode}set mode(i){this.analysis.mode=i}get visualizeSunlight(){return this.analysis.visualizeSunlight}set visualizeSunlight(i){this.analysis.visualizeSunlight=i}get startTimeOfDay(){return this.analysis.startTimeOfDay}set startTimeOfDay(i){this.analysis.startTimeOfDay=i}get endTimeOfDay(){return this.analysis.endTimeOfDay}set endTimeOfDay(i){this.analysis.endTimeOfDay=i}get state(){return this.view?.ready&&this.analysisView?"ready":"disabled"}get minDurationColor(){return this.analysis.minDurationOptions.color}set minDurationColor(i){this.analysis.minDurationOptions.color=i}get minDuration(){return this.analysis.minDurationOptions.minDuration}set minDuration(i){this.analysis.minDurationOptions.minDuration=i}get minDurationContextEnabled(){return this.analysis.minDurationOptions.contextEnabled}set minDurationContextEnabled(i){this.analysis.minDurationOptions.contextEnabled=i}get minDurationContextColor(){return this.analysis.minDurationOptions.contextOptions.color}set minDurationContextColor(i){this.analysis.minDurationOptions.contextOptions.color=i}get minDurationContextInterval(){return this.analysis.minDurationOptions.contextOptions.interval}set minDurationContextInterval(i){this.analysis.minDurationOptions.contextOptions.interval=i}get utcOffset(){return this.analysis.utcOffset??void 0}set utcOffset(i){this.analysis.utcOffset=i}get effectiveUtcOffset(){let{utcOffset:i}=this.analysis;if(i!=null)return i;let e=this.view?.camera?.position;return e?T(e):0}async getDurationAtScreen(i){return await(await j(()=>this.analysisView)).getDurationAtScreen(i)}};r([a()],o.prototype,"date",1);r([a()],o.prototype,"discreteColor",1);r([a()],o.prototype,"discreteInterval",1);r([a()],o.prototype,"totalDurationColor",1);r([a()],o.prototype,"totalDurationMode",1);r([a()],o.prototype,"localDate",1);r([a()],o.prototype,"mode",1);r([a()],o.prototype,"visualizeSunlight",1);r([a()],o.prototype,"startTimeOfDay",1);r([a()],o.prototype,"endTimeOfDay",1);r([a()],o.prototype,"state",1);r([a()],o.prototype,"minDurationColor",1);r([a()],o.prototype,"minMinDuration",2);r([a()],o.prototype,"maxMinDuration",2);r([a()],o.prototype,"minDuration",1);r([a()],o.prototype,"minDurationContextEnabled",1);r([a()],o.prototype,"minDurationContextColor",1);r([a()],o.prototype,"minDurationContextInterval",1);r([a()],o.prototype,"utcOffset",1);r([a()],o.prototype,"effectiveUtcOffset",1);r([a()],o.prototype,"hideShadowDurationTooltip",2);o=r([R("components.shadow-cast.ShadowCastViewModel")],o);var q=C(o),f=class extends x{constructor(){super(...arguments),this.viewModel=q(this),this.messages=M(),this.analysis=this.viewModel.analysis,this.view=this.viewModel.view,this.visualizeSunlight=this.viewModel.visualizeSunlight,this.visualScale="m",this.autoDestroyDisabled=!1,this.endTimeOfDay=this.viewModel.endTimeOfDay,this.headingLevel=4,this.hideTimeRangeSlider=!1,this.hideTimezone=!1,this.hideDatePicker=!1,this.hideShadowDurationTooltip=this.viewModel.hideShadowDurationTooltip,this.hideVisualization=this.viewModel.hideVisualization,this.hideVisualizationOptions=!1,this.hideDiscreteOptions=!1,this.hideDiscreteColorPicker=!1,this.hideDiscreteInterval=!1,this.hideTotalDurationOptions=!1,this.hideTotalDurationColorPicker=!1,this.hideTotalDurationModeSelect=!1,this.hideMinDurationOptions=!1,this.hideMinDurationColorPicker=!1,this.hideMinDurationSlider=!1,this.hideMinDurationContextOptions=!1,this.hideMinDurationContextToggle=!1,this.hideMinDurationContextColorPicker=!1,this.hideMinDurationContextInterval=!1,this.icon="measure-building-height-shadow",this.mode=this.viewModel.mode,this.startTimeOfDay=this.viewModel.startTimeOfDay,this.state=this.viewModel.state,this.utcOffset=this.viewModel.utcOffset,this.discreteColor=this.viewModel.discreteColor,this.discreteInterval=this.viewModel.discreteInterval,this.totalDurationColor=this.viewModel.totalDurationColor,this.totalDurationMode=this.viewModel.totalDurationMode,this.minDuration=this.viewModel.minDuration,this.minDurationColor=this.viewModel.minDurationColor,this.minMinDuration=this.viewModel.minMinDuration,this.maxMinDuration=this.viewModel.maxMinDuration,this.minDurationContextEnabled=this.viewModel.minDurationContextEnabled,this.minDurationContextColor=this.viewModel.minDurationContextColor,this.minDurationContextInterval=this.viewModel.minDurationContextInterval,this.arcgisPropertyChange=_()("state"),this.arcgisReady=D()}static{this.properties={analysis:0,view:0,visualizeSunlight:5,visualScale:3,autoDestroyDisabled:5,date:1,endTimeOfDay:9,headingLevel:9,hideTimeRangeSlider:5,hideTimezone:5,hideDatePicker:5,hideShadowDurationTooltip:5,hideVisualization:5,hideVisualizationOptions:5,hideDiscreteOptions:5,hideDiscreteColorPicker:5,hideDiscreteInterval:5,hideTotalDurationOptions:5,hideTotalDurationColorPicker:5,hideTotalDurationModeSelect:5,hideMinDurationOptions:5,hideMinDurationColorPicker:5,hideMinDurationSlider:5,hideMinDurationContextOptions:5,hideMinDurationContextToggle:5,hideMinDurationContextColorPicker:5,hideMinDurationContextInterval:5,icon:3,label:1,mode:1,referenceElement:1,startTimeOfDay:9,state:32,utcOffset:9,discreteColor:0,discreteInterval:9,totalDurationColor:0,totalDurationMode:1,minDuration:9,minDurationColor:0,minMinDuration:9,maxMinDuration:9,minDurationContextEnabled:5,minDurationContextColor:0,minDurationContextInterval:9}}static{this.styles=U}get _effectiveMessages(){let{messages:e,visualizeSunlight:t}=this,{sunlight:n}=e;return{...e,discrete:t?n?.discrete:e.discrete,minDuration:t?n?.minDuration:e.minDuration,totalDuration:t?n?.totalDuration:e.totalDuration,timeInShadow:t?e.timeInSunlight:e.timeInShadow,timeRangeSliderLabel:e.timeRangeSliderLabel}}get date(){return this.viewModel.date}set date(e){this.viewModel.date=e}async destroy(){await this.manager.destroy()}async getDurationAtScreen(e){return await this.viewModel.getDurationAtScreen(e)}render(){let{_effectiveMessages:e}=this;return d`<div aria-label=${e.componentLabel??y} class=${u({root:!0,[p.widget]:!0,[p.widgetDisabled]:this.viewModel.state==="disabled",[p.panel]:!0})} role=presentation>${this._renderTimeRangeSection()}${g({hidden:this.hideVisualizationOptions,children:this._renderVisualizationOptionsSection()})}</div>`}_renderTimeRangeSection(){if(!this.analysis||this.hideTimeRangeSlider&&this.hideDatePicker)return;let{_effectiveMessages:e,viewModel:t}=this,n=this.visualScale;return d`<section class="time-range-section">${v({level:this.headingLevel,children:e.timeRangeHeading})}${g({hidden:this.hideTimeRangeSlider,children:this._renderTimeRange()})}${g({hidden:this.hideTimezone,children:d`<calcite-label .scale=${n}>${e.timezoneLabel}<calcite-input-time-zone mode=offset overlay-positioning=fixed .referenceDate=${t.localDate} .scale=${n} .value=${`${c(t.effectiveUtcOffset,"hours","minutes")}`} @calciteInputTimeZoneChange=${s=>{t.utcOffset=+s.target.value/60}}></calcite-input-time-zone></calcite-label>`})}${g({hidden:this.hideDatePicker,children:d`<calcite-label .scale=${n}>${e.dateLabel}<calcite-input-date-picker overlay-positioning=fixed placement=bottom .scale=${n} .valueAsDate=${t.date} @calciteInputDatePickerChange=${s=>{let l=s.currentTarget.valueAsDate;t.date=Array.isArray(l)?l[0]:l}}></calcite-input-date-picker></calcite-label>`})}</section>`}_renderTimeRange(){let{_effectiveMessages:e,viewModel:t}=this;return d`<arcgis-time-of-day-slider mode=range .startTime=${k(this.startTimeOfDay)} .endTime=${k(this.endTimeOfDay)} .label=${e.timeRangeSliderLabel} .visualScale=${this.visualScale} @arcgisTimeChange=${({currentTarget:n})=>{t.startTimeOfDay=c(n.startTime,"minutes","milliseconds"),t.endTimeOfDay=c(n.endTime,"minutes","milliseconds")}}></arcgis-time-of-day-slider>`}_renderVisualizationOptionsSection(){let{analysis:e,_effectiveMessages:t,headingLevel:n,viewModel:s}=this;if(!e)return;let{discreteOptions:l,totalDurationOptions:h,minDurationOptions:z}=e,m=(V,L)=>s.mode===V&&!L?void 0:"hidden-config",I=this.hideMinDurationContextOptions||this.visualizeSunlight,P=this.hideMinDurationContextToggle||this.visualizeSunlight;return d`<section class="visualization-options-section">${v({level:n,children:t.visualizationLabel})}<div class="visualization-options">${this._renderModeSelect()}<div class=${u(m("min-duration",this.hideMinDurationOptions))}><arcgis-shadow-cast-min-duration-config .hideColorPicker=${this.hideMinDurationColorPicker} .hideContextColorPicker=${this.hideMinDurationContextColorPicker} .hideContextInterval=${this.hideMinDurationContextInterval} .hideContextOptions=${I} .hideContextToggle=${P} .hideSlider=${this.hideMinDurationSlider} .minMinDuration=${this.minMinDuration} .maxMinDuration=${this.maxMinDuration} .messages=${t} .options=${z} .scale=${this.visualScale}></arcgis-shadow-cast-min-duration-config></div><div class=${u(m("total-duration",this.hideTotalDurationOptions))}><arcgis-shadow-cast-total-duration-config .hideColorPicker=${this.hideTotalDurationColorPicker} .hideModeSelect=${this.hideTotalDurationModeSelect} .messages=${t} .options=${h} .scale=${this.visualScale}></arcgis-shadow-cast-total-duration-config></div><div class=${u(m("discrete",this.hideDiscreteOptions))}><arcgis-shadow-cast-discrete-config .hideColorPicker=${this.hideDiscreteColorPicker} .hideInterval=${this.hideDiscreteInterval} .messages=${t} .options=${l} .scale=${this.visualScale}></arcgis-shadow-cast-discrete-config></div></div></section>`}_renderModeSelect(){let{_effectiveMessages:e,viewModel:t}=this,{mode:n}=t;return d`<calcite-select .label=${e.visualizationLabel??""} .scale=${this.visualScale} @calciteSelectChange=${s=>{let l=s.target.selectedOption?.value;t.mode=l??"min-duration"}}>${[{mode:"min-duration",label:e.minDuration?.optionLabel},{mode:"total-duration",label:e.totalDuration?.optionLabel},{mode:"discrete",label:e.discrete?.optionLabel}].map(({mode:s,label:l})=>d`<calcite-option .selected=${s===n} .value=${s} .label=${l}></calcite-option>`)}</calcite-select>`}};function k(i){return Math.round(c(i,"milliseconds","minutes"))}b("arcgis-shadow-cast",f);return f},"analysis/ShadowCastAnalysis","core/accessorSupport/decorators","core/reactiveUtils","applications/Components/analysisUtils",a,e,f,h,i,j)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import{a as s}from"./DRZ6WHPD.js";import"./54VXNFQ4.js";import"./B7RY25MR.js";import{O as n,U as a,a as r,b as i}from"./XF2Q2HB6.js";import"./3TTFCHAA.js";export default $arcgis.t(([{renderingSanitizer:o}])=>{var c=r`.heading{margin-top:0;margin-bottom:var(--calcite-spacing-xxs);color:var(--calcite-color-text-2);font-size:var(--calcite-font-size-xl);font-weight:var(--calcite-font-weight-regular);line-height:var(--calcite-font-line-height-relative-tight)}.description{margin-bottom:var(--calcite-spacing-sm);font-size:var(--calcite-font-size-sm);font-weight:var(--calcite-font-weight-regular);line-height:var(--calcite-font-line-height-relative-normal)}`,t=class extends n{constructor(){super(...arguments),this.headingLevel=2}static{this.properties={description:1,headingLevel:9,heading:1}}static{this.styles=c}render(){return i`<div class="root">${this._renderHeading()}${this._renderDescription()}</div>`}_renderHeading(){let{heading:e}=this;return e?s({class:"heading",level:this.headingLevel,excludeGlobalCss:!0,children:i`<div .innerHTML=${o.sanitize(e)??""}></div>`}):null}_renderDescription(){let{description:e}=this;return e?i`<div class="description" .innerHTML=${o.sanitize(e)??""}></div>`:null}};a("arcgis-feature-element-info",t);return t},"applications/Components/sanitizerUtils")
2
+ import{a as s}from"./4ZKWXSFX.js";import"./54VXNFQ4.js";import"./WD2JWNQF.js";import{O as n,U as a,a as r,b as i}from"./J4CQT4XJ.js";import"./3TTFCHAA.js";export default $arcgis.t(([{renderingSanitizer:o}])=>{var c=r`.heading{margin-top:0;margin-bottom:var(--calcite-spacing-xxs);color:var(--calcite-color-text-2);font-size:var(--calcite-font-size-xl);font-weight:var(--calcite-font-weight-regular);line-height:var(--calcite-font-line-height-relative-tight)}.description{margin-bottom:var(--calcite-spacing-sm);font-size:var(--calcite-font-size-sm);font-weight:var(--calcite-font-weight-regular);line-height:var(--calcite-font-line-height-relative-normal)}`,t=class extends n{constructor(){super(...arguments),this.headingLevel=2}static{this.properties={description:1,headingLevel:9,heading:1}}static{this.styles=c}render(){return i`<div class="root">${this._renderHeading()}${this._renderDescription()}</div>`}_renderHeading(){let{heading:e}=this;return e?s({class:"heading",level:this.headingLevel,excludeGlobalCss:!0,children:i`<div .innerHTML=${o.sanitize(e)??""}></div>`}):null}_renderDescription(){let{description:e}=this;return e?i`<div class="description" .innerHTML=${o.sanitize(e)??""}></div>`:null}};a("arcgis-feature-element-info",t);return t},"applications/Components/sanitizerUtils")
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import{O as o,U as d,a as s,b as t}from"./XF2Q2HB6.js";import"./3TTFCHAA.js";export default $arcgis.t(([{watch:c}])=>{var n=s`.table{display:flex;flex-direction:column;border-top:1px solid var(--calcite-color-border-1)}.row{display:flex;flex-direction:row;border-bottom:1px solid var(--calcite-color-border-1);border-right:1px solid var(--calcite-color-border-1)}.data{flex:1;border-left:1px solid var(--calcite-color-border-1);padding:5px}.empty-state{width:100%;max-inline-size:unset;transition-duration:0ms;margin-top:var(--calcite-spacing-md)}`,e=class extends o{constructor(){super(...arguments),this._disabled=!1,this._hasMetadata=!1,this._missionInfo={},this._platformInfo={},this._frameInfo={}}static{this.properties={_disabled:16,_hasMetadata:16,_missionInfo:16,_platformInfo:16,_frameInfo:16,viewModel:0,messages:0}}static{this.styles=n}loaded(){this.manager.onLifecycle(()=>[c(()=>this.viewModel.state,a=>{this._disabled=a==="not-ready"||a==="waiting"},{initial:!0}),c(()=>[this.viewModel.metadata?.missionInfo,this.viewModel.metadata?.platformInfo,this.viewModel.metadata?.frameInfo],()=>{let{metadata:a}=this.viewModel;if(this._hasMetadata=!!a,!this._hasMetadata)return;let{missionInfo:i,platformInfo:r,frameInfo:l}=a;this._missionInfo=i,this._platformInfo=r,this._frameInfo=l},{initial:!0})])}render(){let{messages:a}=this;return this._disabled||!this._hasMetadata?t`<calcite-tile class="empty-state" .description=${a.metadataDescription} .heading=${a.metadataNotLoaded}></calcite-tile>`:t`<calcite-block .heading=${a.metadata} expanded><calcite-accordion appearance=solid selection-mode=single><calcite-accordion-item .heading=${a.missionInfo}><div class="table">${Object.keys(this._missionInfo).map(i=>t`<div class="row"><div class="data">${i}</div><div class="data">${this._missionInfo[i]}</div></div>`)}</div></calcite-accordion-item><calcite-accordion-item .heading=${a.platformInfo}><div class="table">${Object.keys(this._platformInfo).map(i=>t`<div class="row"><div class="data">${i}</div><div class="data">${this._platformInfo[i]}</div></div>`)}</div></calcite-accordion-item><calcite-accordion-item .heading=${a.frameInfo}><div class="table">${Object.keys(this._frameInfo).map(i=>t`<div class="row"><div class="data">${i}</div><div class="data">${this._frameInfo[i]}</div></div>`)}</div></calcite-accordion-item></calcite-accordion></calcite-block>`}};d("arcgis-video-player-metadata",e);return e},"core/reactiveUtils")
2
+ import{O as o,U as d,a as s,b as t}from"./J4CQT4XJ.js";import"./3TTFCHAA.js";export default $arcgis.t(([{watch:c}])=>{var n=s`.table{display:flex;flex-direction:column;border-top:1px solid var(--calcite-color-border-1)}.row{display:flex;flex-direction:row;border-bottom:1px solid var(--calcite-color-border-1);border-right:1px solid var(--calcite-color-border-1)}.data{flex:1;border-left:1px solid var(--calcite-color-border-1);padding:5px}.empty-state{width:100%;max-inline-size:unset;transition-duration:0ms;margin-top:var(--calcite-spacing-md)}`,e=class extends o{constructor(){super(...arguments),this._disabled=!1,this._hasMetadata=!1,this._missionInfo={},this._platformInfo={},this._frameInfo={}}static{this.properties={_disabled:16,_hasMetadata:16,_missionInfo:16,_platformInfo:16,_frameInfo:16,viewModel:0,messages:0}}static{this.styles=n}loaded(){this.manager.onLifecycle(()=>[c(()=>this.viewModel.state,a=>{this._disabled=a==="not-ready"||a==="waiting"},{initial:!0}),c(()=>[this.viewModel.metadata?.missionInfo,this.viewModel.metadata?.platformInfo,this.viewModel.metadata?.frameInfo],()=>{let{metadata:a}=this.viewModel;if(this._hasMetadata=!!a,!this._hasMetadata)return;let{missionInfo:i,platformInfo:r,frameInfo:l}=a;this._missionInfo=i,this._platformInfo=r,this._frameInfo=l},{initial:!0})])}render(){let{messages:a}=this;return this._disabled||!this._hasMetadata?t`<calcite-tile class="empty-state" .description=${a.metadataDescription} .heading=${a.metadataNotLoaded}></calcite-tile>`:t`<calcite-block .heading=${a.metadata} expanded><calcite-accordion appearance=solid selection-mode=single><calcite-accordion-item .heading=${a.missionInfo}><div class="table">${Object.keys(this._missionInfo).map(i=>t`<div class="row"><div class="data">${i}</div><div class="data">${this._missionInfo[i]}</div></div>`)}</div></calcite-accordion-item><calcite-accordion-item .heading=${a.platformInfo}><div class="table">${Object.keys(this._platformInfo).map(i=>t`<div class="row"><div class="data">${i}</div><div class="data">${this._platformInfo[i]}</div></div>`)}</div></calcite-accordion-item><calcite-accordion-item .heading=${a.frameInfo}><div class="table">${Object.keys(this._frameInfo).map(i=>t`<div class="row"><div class="data">${i}</div><div class="data">${this._frameInfo[i]}</div></div>`)}</div></calcite-accordion-item></calcite-accordion></calcite-block>`}};d("arcgis-video-player-metadata",e);return e},"core/reactiveUtils")
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import j from"./EBWEXHTI.js";import{a as P}from"./CFHNK7GX.js";import i from"./ASGNIA7K.js";import"./PC4PAQXQ.js";import g from"./R4WFQOV2.js";import{a as C}from"./NQ775DQU.js";import{a as u}from"./54VXNFQ4.js";import e from"./G24BYXK5.js";import c from"./YGW5PYWZ.js";import{h as M}from"./BSE5M4WJ.js";import"./LK4Z556U.js";import a from"./TD5P6HY7.js";import{d as _}from"./B7RY25MR.js";import{M as v,N as b,O as w,P as d,R as y,U as E,a as f,b as p,x as h}from"./XF2Q2HB6.js";import"./3TTFCHAA.js";export default $arcgis.t(([{watch:$},{property:c,subclass:G},D,{onLocaleChange:z},B,I,,,,T,{d:O},{a:S,b:L}])=>{var k=f`.arcgis-button{--calcite-icon-color: var(--calcite-color-text-3);--calcite-button-background-color: var(--calcite-color-foreground-1);color:var(--calcite-color-text-3);line-height:var(--calcite-font-line-height-relative-tight);calcite-button{--calcite-offset-invert-focus: 1}display:flex;flex-flow:column;cursor:pointer;background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);:hover{--calcite-icon-color: var(--calcite-color-text-1);--calcite-button-background-color: var(--calcite-color-transparent-hover)}}:host{width:fit-content;height:fit-content}`,A=Object.defineProperty,R=Object.getOwnPropertyDescriptor,s=(e,t,i,a)=>{for(var o=a>1?void 0:a?R(t,i):t,l=e.length-1,n;l>=0;l--)(n=e[l])&&(o=(a?n(t,i,o):n(o))||o);return a&&o&&A(t,i,o),o},U=new I({icon:"trash",id:"remove-selected-feature",title:"{messages.remove}"})._internalSetClassName("esri-icon-trash");function j(e){return new B({title:e.currentLocation,fieldInfos:[{fieldName:"timestamp",label:e.timestamp,format:{dateFormat:"short-date-short-time"}},{fieldName:"latitude",label:e.latitude,format:{places:4,digitSeparator:!0}},{fieldName:"longitude",label:e.longitude,format:{places:4,digitSeparator:!0}},{fieldName:"accuracy",label:e.accuracy,format:{places:0,digitSeparator:!0}},{fieldName:"altitude",label:e.altitude,format:{places:0,digitSeparator:!0}},{fieldName:"altitudeAccuracy",label:e.altitudeAccuracy,format:{places:0,digitSeparator:!0}},{fieldName:"heading",label:e.heading,format:{places:0,digitSeparator:!0}},{fieldName:"speed",label:e.speed,format:{places:0,digitSeparator:!0}}],actions:[U.clone()],content:[{type:"fields"}]})}var r=class extends L{constructor(e){super(e),this._getCurrentPosition=S,this.popupEnabled=!0,this.locate=this.locate.bind(this)}initialize(){this.addHandles([z(()=>{let{graphic:e,view:t}=this;e&&t?.graphics?.includes(e)&&this._updatePopupTemplate(e)})])}destroy(){this.cancelLocate()}get state(){return this._geolocationUsable?this.view?.ready?this._locateController?"locating":this.error!=null?"error":"ready":"disabled":"feature-unsupported"}async locate(){if(this.cancelLocate(),this.state==="disabled")throw new D("locate:disabled-state","Cannot locate when disabled.");if(this.state==="feature-unsupported")throw new D("locate:feature-unsupported-state","Cannot locate in unsecure domain.");let e=new AbortController;this._locateController=e,this.error=void 0;try{let t=await this._getCurrentPosition(this.geolocationOptions);if(await this.updatePosition(t,e),this._locateController!==e)return null;let{graphic:i}=this;return i&&this._updatePopupTemplate(i),this._addGraphic(),this.currentPosition=t,this._locateController=void 0,t}catch(t){if(O(t))return null;throw e===this._locateController&&(this._locateController=void 0),this.error=t,t}}cancelLocate(){this._clearGraphic(),this._locateController&&this._locateController.abort(),this._locateController=void 0}_updatePopupTemplate(e){if(!this.popupEnabled)return;let t=j(this.messages),i=e!==this.graphic;this.destroyed||i||(e.popupTemplate=t)}};s([c()],r.prototype,"_locateController",2);s([c()],r.prototype,"currentPosition",2);s([c()],r.prototype,"error",2);s([c()],r.prototype,"messages",2);s([c()],r.prototype,"popupEnabled",2);s([c({readOnly:!0})],r.prototype,"state",1);r=s([G("map-components.locate.LocateViewModel")],r);var N="gps-off",V=T(r),m=class extends w{constructor(){super(),this.locateButtonElement=v(),this.messages=C(),this.viewModel=V(this),this.hideErrorTooltip=()=>{this.isErrorTooltipOpen=!1},this.isErrorTooltipOpen=!1,this.view=this.viewModel.view,this.autoDestroyDisabled=!1,this.geolocationOptions=this.viewModel.geolocationOptions,this.goToLocationDisabled=this.viewModel.goToLocationEnabled,this.goToOverride=this.viewModel.goToOverride,this.graphic=this.viewModel.graphic,this.icon=N,this.popupDisabled=this.viewModel.popupEnabled,this.scale=this.viewModel.scale,this.state=this.viewModel.state,this.visualScale="m",this.arcgisError=h(),this.arcgisPropertyChange=M()("state"),this.arcgisReady=h(),this.arcgisSuccess=h(),this.listenOn(document,"click",this.hideErrorTooltip)}static{this.properties={isErrorTooltipOpen:16,view:0,autoDestroyDisabled:5,geolocationOptions:0,goToLocationDisabled:7,goToOverride:0,graphic:0,icon:1,label:1,messageOverrides:0,popupDisabled:5,referenceElement:1,scale:9,state:32,visualScale:1}}static{this.styles=k}async cancelLocate(){this.viewModel.cancelLocate()}async destroy(){await this.manager.destroy()}async locate(){return await this.viewModel.locate()}loaded(){this.viewModel.messages={...this.messages,...this.messageOverrides},this.manager.onLifecycle(()=>[$(()=>this.viewModel.error,t=>{this.isErrorTooltipOpen=!!t,this.arcgisError.emit({error:t})}),$(()=>this.viewModel.currentPosition,t=>{this.arcgisSuccess.emit({position:t})})])}_localizeError(t){if(t instanceof GeolocationPositionError)return t.code===GeolocationPositionError.PERMISSION_DENIED?this.messages?.permissionError:t.code===GeolocationPositionError.TIMEOUT?this.messages?.timeoutError:this.messages?.positionUnavailable;if(t instanceof Error)return t.message}_locate(){let{viewModel:t}=this;t.state==="locating"?t.cancelLocate():t.locate().catch(()=>{})}render(){let{viewModel:t,icon:i}=this,{state:a}=t,o=a==="locating",l=o?this.messages.cancel:this.messages.title,n=a==="feature-unsupported",x=P===void 0?N:void 0,g=this._localizeError(this.viewModel?.error);return p`<div class=${d(_("root",u.arcgisButton))}>${!n&&p`<calcite-button class=${d(u.widgetButton)} .disabled=${a==="disabled"} .loading=${o} .iconStart=${o?void 0:i??x} kind=neutral .label=${l} @click=${this._locate} .scale=${this.visualScale} title=${l??y} ${b(this.locateButtonElement)}></calcite-button>`||""}${g?p`<calcite-tooltip .open=${this.isErrorTooltipOpen} overlay-positioning=fixed .referenceElement=${this.locateButtonElement.value}>${g}</calcite-tooltip>`:null}</div>`}};E("arcgis-locate",m);return m},"core/reactiveUtils","core/accessorSupport/decorators","core/Error","intl","PopupTemplate","support/actions/ActionButton",a,c,e,g,i,j)
2
+ import j from"./RIDURE3V.js";import{a as P}from"./CFHNK7GX.js";import i from"./GEZ4HISO.js";import"./PC4PAQXQ.js";import g from"./QRJYLUPS.js";import{a as C}from"./FWKQQQZ4.js";import{a as u}from"./54VXNFQ4.js";import e from"./UVMRWPW4.js";import c from"./ZXVSXONX.js";import{h as M}from"./K2AR3ZWH.js";import"./LH3XMT6P.js";import a from"./3UF42S5R.js";import{d as _}from"./WD2JWNQF.js";import{M as v,N as b,O as w,P as d,R as y,U as E,a as f,b as p,x as h}from"./J4CQT4XJ.js";import"./3TTFCHAA.js";export default $arcgis.t(([{watch:$},{property:c,subclass:G},D,{onLocaleChange:z},B,I,,,,T,{d:O},{a:S,b:L}])=>{var k=f`.arcgis-button{--calcite-icon-color: var(--calcite-color-text-3);--calcite-button-background-color: var(--calcite-color-foreground-1);color:var(--calcite-color-text-3);line-height:var(--calcite-font-line-height-relative-tight);calcite-button{--calcite-offset-invert-focus: 1}display:flex;flex-flow:column;cursor:pointer;background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);:hover{--calcite-icon-color: var(--calcite-color-text-1);--calcite-button-background-color: var(--calcite-color-transparent-hover)}}:host{width:fit-content;height:fit-content}`,A=Object.defineProperty,R=Object.getOwnPropertyDescriptor,s=(e,t,i,a)=>{for(var o=a>1?void 0:a?R(t,i):t,l=e.length-1,n;l>=0;l--)(n=e[l])&&(o=(a?n(t,i,o):n(o))||o);return a&&o&&A(t,i,o),o},U=new I({icon:"trash",id:"remove-selected-feature",title:"{messages.remove}"})._internalSetClassName("esri-icon-trash");function j(e){return new B({title:e.currentLocation,fieldInfos:[{fieldName:"timestamp",label:e.timestamp,format:{dateFormat:"short-date-short-time"}},{fieldName:"latitude",label:e.latitude,format:{places:4,digitSeparator:!0}},{fieldName:"longitude",label:e.longitude,format:{places:4,digitSeparator:!0}},{fieldName:"accuracy",label:e.accuracy,format:{places:0,digitSeparator:!0}},{fieldName:"altitude",label:e.altitude,format:{places:0,digitSeparator:!0}},{fieldName:"altitudeAccuracy",label:e.altitudeAccuracy,format:{places:0,digitSeparator:!0}},{fieldName:"heading",label:e.heading,format:{places:0,digitSeparator:!0}},{fieldName:"speed",label:e.speed,format:{places:0,digitSeparator:!0}}],actions:[U.clone()],content:[{type:"fields"}]})}var r=class extends L{constructor(e){super(e),this._getCurrentPosition=S,this.popupEnabled=!0,this.locate=this.locate.bind(this)}initialize(){this.addHandles([z(()=>{let{graphic:e,view:t}=this;e&&t?.graphics?.includes(e)&&this._updatePopupTemplate(e)})])}destroy(){this.cancelLocate()}get state(){return this._geolocationUsable?this.view?.ready?this._locateController?"locating":this.error!=null?"error":"ready":"disabled":"feature-unsupported"}async locate(){if(this.cancelLocate(),this.state==="disabled")throw new D("locate:disabled-state","Cannot locate when disabled.");if(this.state==="feature-unsupported")throw new D("locate:feature-unsupported-state","Cannot locate in unsecure domain.");let e=new AbortController;this._locateController=e,this.error=void 0;try{let t=await this._getCurrentPosition(this.geolocationOptions);if(await this.updatePosition(t,e),this._locateController!==e)return null;let{graphic:i}=this;return i&&this._updatePopupTemplate(i),this._addGraphic(),this.currentPosition=t,this._locateController=void 0,t}catch(t){if(O(t))return null;throw e===this._locateController&&(this._locateController=void 0),this.error=t,t}}cancelLocate(){this._clearGraphic(),this._locateController&&this._locateController.abort(),this._locateController=void 0}_updatePopupTemplate(e){if(!this.popupEnabled)return;let t=j(this.messages),i=e!==this.graphic;this.destroyed||i||(e.popupTemplate=t)}};s([c()],r.prototype,"_locateController",2);s([c()],r.prototype,"currentPosition",2);s([c()],r.prototype,"error",2);s([c()],r.prototype,"messages",2);s([c()],r.prototype,"popupEnabled",2);s([c({readOnly:!0})],r.prototype,"state",1);r=s([G("map-components.locate.LocateViewModel")],r);var N="gps-off",V=T(r),m=class extends w{constructor(){super(),this.locateButtonElement=v(),this.messages=C(),this.viewModel=V(this),this.hideErrorTooltip=()=>{this.isErrorTooltipOpen=!1},this.isErrorTooltipOpen=!1,this.view=this.viewModel.view,this.autoDestroyDisabled=!1,this.geolocationOptions=this.viewModel.geolocationOptions,this.goToLocationDisabled=this.viewModel.goToLocationEnabled,this.goToOverride=this.viewModel.goToOverride,this.graphic=this.viewModel.graphic,this.icon=N,this.popupDisabled=this.viewModel.popupEnabled,this.scale=this.viewModel.scale,this.state=this.viewModel.state,this.visualScale="m",this.arcgisError=h(),this.arcgisPropertyChange=M()("state"),this.arcgisReady=h(),this.arcgisSuccess=h(),this.listenOn(document,"click",this.hideErrorTooltip)}static{this.properties={isErrorTooltipOpen:16,view:0,autoDestroyDisabled:5,geolocationOptions:0,goToLocationDisabled:7,goToOverride:0,graphic:0,icon:1,label:1,messageOverrides:0,popupDisabled:5,referenceElement:1,scale:9,state:32,visualScale:1}}static{this.styles=k}async cancelLocate(){this.viewModel.cancelLocate()}async destroy(){await this.manager.destroy()}async locate(){return await this.viewModel.locate()}loaded(){this.viewModel.messages={...this.messages,...this.messageOverrides},this.manager.onLifecycle(()=>[$(()=>this.viewModel.error,t=>{this.isErrorTooltipOpen=!!t,this.arcgisError.emit({error:t})}),$(()=>this.viewModel.currentPosition,t=>{this.arcgisSuccess.emit({position:t})})])}_localizeError(t){if(t instanceof GeolocationPositionError)return t.code===GeolocationPositionError.PERMISSION_DENIED?this.messages?.permissionError:t.code===GeolocationPositionError.TIMEOUT?this.messages?.timeoutError:this.messages?.positionUnavailable;if(t instanceof Error)return t.message}_locate(){let{viewModel:t}=this;t.state==="locating"?t.cancelLocate():t.locate().catch(()=>{})}render(){let{viewModel:t,icon:i}=this,{state:a}=t,o=a==="locating",l=o?this.messages.cancel:this.messages.title,n=a==="feature-unsupported",x=P===void 0?N:void 0,g=this._localizeError(this.viewModel?.error);return p`<div class=${d(_("root",u.arcgisButton))}>${!n&&p`<calcite-button class=${d(u.widgetButton)} .disabled=${a==="disabled"} .loading=${o} .iconStart=${o?void 0:i??x} kind=neutral .label=${l} @click=${this._locate} .scale=${this.visualScale} title=${l??y} ${b(this.locateButtonElement)}></calcite-button>`||""}${g?p`<calcite-tooltip .open=${this.isErrorTooltipOpen} overlay-positioning=fixed .referenceElement=${this.locateButtonElement.value}>${g}</calcite-tooltip>`:null}</div>`}};E("arcgis-locate",m);return m},"core/reactiveUtils","core/accessorSupport/decorators","core/Error","intl","PopupTemplate","support/actions/ActionButton",a,c,e,g,i,j)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import b from"./G24BYXK5.js";import a from"./YGW5PYWZ.js";import{a as f}from"./BSE5M4WJ.js";import{i as d,u as v}from"./XF2Q2HB6.js";export default $arcgis.t(([{watch:E},{b:b},{c:w,d:u,e:y}])=>{var k=(m,e)=>t=>g(t,m),h=class extends w{#o=new Map;#e;#t;constructor(e,t){super(e,t),new b(e);let s=this,o=s.instance,i=o.viewModel,r=o.visibleElements,l=new Proxy(this.exports,{get(n,c,p){return c==="viewModel"?i:c==="visibleElements"?r:Reflect.get(n,c,p)}});if(s.#t=o,s.instance=l,s.exports=l,i){let n={component:e,get exports(){return s.instance.viewModel}};y(s).set("viewModel","viewModel"),e.addController(n),i=u(e,new WeakRef(n),d(e)-1,i,s.#o)}s.instance.visibleElements&&(r=s.#s(o))}hostConnected(){this.instance=this.#t,super.hostConnected()}hostLoad(){this.#e=E(()=>this.component.el.view,e=>{let t=this.instance;!("view"in t)&&typeof t.viewModel=="object"?t.viewModel.view=e:t.view=e,!("map"in t)&&typeof t.viewModel=="object"?t.viewModel.map=e?.map:t.map=e?.map},{sync:!0,initial:!0})}hostUpdate(e){e.has("closed")&&(this.instance.visible=!this.component.closed)}hostLoaded(){let{el:e}=this.component;e.childElem??=document.createElement("div"),e.childElem.setAttribute("arcgis-widget-wrapped",""),this.instance.container=e.childElem,(this.component.el.shadowRoot??this.component.el).appendChild(this.instance.container),this.component.closed!==void 0&&this.onLifecycle(()=>E(()=>this.instance.visible,t=>this.component.closed=!t,{initial:!0}))}#s(e){return new Proxy(e.visibleElements,{get:(t,s)=>{if(typeof s=="symbol"||s in Promise.prototype)return t[s];let o=[s],i=this.#n(o);return v(this.component,r=>{let l=r;this.component[l]=!1;let n=e.visibleElements??{},c;for(let a of o.slice(0,-1))if(typeof n[a]=="object"&&n[a]!==null)n=n[a];else{c=!!n[a];break}c===void 0&&(c=!!(n[o.slice(-1)[0]]??!0));let p=l.startsWith("hide")||l.startsWith("show")?l.startsWith("hide"):c;this.onUpdate(a=>{if(a.has(l)){let x=this.component[l];this.#i(o,x,p)}})},i)}})}#n(e){let t=new Proxy({},{get:(s,o)=>{let i=Reflect.get(s,o);return typeof o=="symbol"||o in Promise.prototype?i:(e.push(o),t)}});return t}#i(e,t,s){let o=this.instance.visibleElements??{};for(let r of e.slice(0,-1))(typeof o[r]!="object"||o[r]===null)&&(o[r]={}),o=o[r];let i=!!(s?!t:t);o[e.at(-1)]=i}hostDestroy(){this.#e?.remove(),super.hostDestroy()}},g=f(h);return k},"core/reactiveUtils",a,b)
2
+ import b from"./UVMRWPW4.js";import a from"./ZXVSXONX.js";import{a as f}from"./K2AR3ZWH.js";import{i as d,u as v}from"./J4CQT4XJ.js";export default $arcgis.t(([{watch:E},{b:b},{c:w,d:u,e:y}])=>{var k=(m,e)=>t=>g(t,m),h=class extends w{#o=new Map;#e;#t;constructor(e,t){super(e,t),new b(e);let s=this,o=s.instance,i=o.viewModel,r=o.visibleElements,l=new Proxy(this.exports,{get(n,c,p){return c==="viewModel"?i:c==="visibleElements"?r:Reflect.get(n,c,p)}});if(s.#t=o,s.instance=l,s.exports=l,i){let n={component:e,get exports(){return s.instance.viewModel}};y(s).set("viewModel","viewModel"),e.addController(n),i=u(e,new WeakRef(n),d(e)-1,i,s.#o)}s.instance.visibleElements&&(r=s.#s(o))}hostConnected(){this.instance=this.#t,super.hostConnected()}hostLoad(){this.#e=E(()=>this.component.el.view,e=>{let t=this.instance;!("view"in t)&&typeof t.viewModel=="object"?t.viewModel.view=e:t.view=e,!("map"in t)&&typeof t.viewModel=="object"?t.viewModel.map=e?.map:t.map=e?.map},{sync:!0,initial:!0})}hostUpdate(e){e.has("closed")&&(this.instance.visible=!this.component.closed)}hostLoaded(){let{el:e}=this.component;e.childElem??=document.createElement("div"),e.childElem.setAttribute("arcgis-widget-wrapped",""),this.instance.container=e.childElem,(this.component.el.shadowRoot??this.component.el).appendChild(this.instance.container),this.component.closed!==void 0&&this.onLifecycle(()=>E(()=>this.instance.visible,t=>this.component.closed=!t,{initial:!0}))}#s(e){return new Proxy(e.visibleElements,{get:(t,s)=>{if(typeof s=="symbol"||s in Promise.prototype)return t[s];let o=[s],i=this.#n(o);return v(this.component,r=>{let l=r;this.component[l]=!1;let n=e.visibleElements??{},c;for(let a of o.slice(0,-1))if(typeof n[a]=="object"&&n[a]!==null)n=n[a];else{c=!!n[a];break}c===void 0&&(c=!!(n[o.slice(-1)[0]]??!0));let p=l.startsWith("hide")||l.startsWith("show")?l.startsWith("hide"):c;this.onUpdate(a=>{if(a.has(l)){let x=this.component[l];this.#i(o,x,p)}})},i)}})}#n(e){let t=new Proxy({},{get:(s,o)=>{let i=Reflect.get(s,o);return typeof o=="symbol"||o in Promise.prototype?i:(e.push(o),t)}});return t}#i(e,t,s){let o=this.instance.visibleElements??{};for(let r of e.slice(0,-1))(typeof o[r]!="object"||o[r]===null)&&(o[r]={}),o=o[r];let i=!!(s?!t:t);o[e.at(-1)]=i}hostDestroy(){this.#e?.remove(),super.hostDestroy()}},g=f(h);return k},"core/reactiveUtils",a,b)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import{a as i}from"./NQ775DQU.js";import"./BSE5M4WJ.js";import"./LK4Z556U.js";import"./B7RY25MR.js";import{O as s,U as t,b as r}from"./XF2Q2HB6.js";import"./3TTFCHAA.js";var e=class extends s{constructor(){super(...arguments),this._messages=i({blocking:!0}),this.errorName=""}static{this.properties={errorName:1}}render(){return r`<calcite-alert icon=x-octagon kind=danger open .label=${this.errorName}><div slot=title>${this._messages.errrorTitle}</div><div slot=message>${this._messages.errorMessage}</div><calcite-link slot=link href=https://esriurl.com/webgl-faq>${this._messages.webglFaq}</calcite-link></calcite-alert>`}};t("arcgis-webgl-error",e);export{e as ArcgisWebGlError};
2
+ import{a as i}from"./FWKQQQZ4.js";import"./K2AR3ZWH.js";import"./LH3XMT6P.js";import"./WD2JWNQF.js";import{O as s,U as t,b as r}from"./J4CQT4XJ.js";import"./3TTFCHAA.js";var e=class extends s{constructor(){super(...arguments),this._messages=i({blocking:!0}),this.errorName=""}static{this.properties={errorName:1}}render(){return r`<calcite-alert icon=x-octagon kind=danger open .label=${this.errorName}><div slot=title>${this._messages.errrorTitle}</div><div slot=message>${this._messages.errorMessage}</div><calcite-link slot=link href=https://esriurl.com/webgl-faq>${this._messages.webglFaq}</calcite-link></calcite-alert>`}};t("arcgis-webgl-error",e);export{e as ArcgisWebGlError};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import b from"./KYU6MBFA.js";import{d as r}from"./B7RY25MR.js";import{O as m,P as i,U as c,a as n,b as a}from"./XF2Q2HB6.js";import"./3TTFCHAA.js";export default $arcgis.t(([{a:p,g:o,h:d}])=>{var g=n`.size-ramp-container{margin-left:var(--calcite-spacing-sm);display:table}:dir(rtl) .size-ramp-container{margin-right:var(--calcite-spacing-sm);margin-left:0;overflow:auto}.size-ramp-row{display:table-row}.size-ramp-cell{padding:var(--calcite-spacing-xxs) 0;min-width:100px;vertical-align:middle;word-break:break-word;display:table-cell}.size-ramp-label{padding-right:var(--calcite-spacing-sm);padding-left:var(--calcite-spacing-sm);max-width:250px;word-break:normal;word-wrap:normal;font-size:var(--calcite-font-size-sm)}.size-ramp-symbol-container{min-width:10px;text-align:center}.size-ramp-symbol{display:flex;justify-content:center}`,l=class extends m{constructor(){super(...arguments),this.legendElement=null}static{this.properties={legendElement:0,messages:0}}static{this.styles=g}render(){let e=this.legendElement.infos.map(s=>this._renderRow(s)).filter(Boolean);return e.length?this.legendElement.theme==="spike"?a`<arcgis-legend-spike-ramp .legendElement=${this.legendElement} .messages=${this.messages}></arcgis-legend-spike-ramp>`:a`<div class="size-ramp-container">${e}</div>`:null}_renderRow(e){let{preview:s}=e;if(!s)return null;let t=p(this.messages,e.label,!1);return d(s,o(this.messages,t)),a`<div class="size-ramp-row"><div class=${i(r("size-ramp-cell","size-ramp-symbol-container"))}><div class="size-ramp-symbol">${s}</div></div><div class=${i(r("size-ramp-cell","size-ramp-label"))}>${t}</div></div>`}};c("arcgis-legend-classic-size-ramp",l);return l},b)
2
+ import b from"./KYU6MBFA.js";import{d as r}from"./WD2JWNQF.js";import{O as m,P as i,U as c,a as n,b as a}from"./J4CQT4XJ.js";import"./3TTFCHAA.js";export default $arcgis.t(([{a:p,g:o,h:d}])=>{var g=n`.size-ramp-container{margin-left:var(--calcite-spacing-sm);display:table}:dir(rtl) .size-ramp-container{margin-right:var(--calcite-spacing-sm);margin-left:0;overflow:auto}.size-ramp-row{display:table-row}.size-ramp-cell{padding:var(--calcite-spacing-xxs) 0;min-width:100px;vertical-align:middle;word-break:break-word;display:table-cell}.size-ramp-label{padding-right:var(--calcite-spacing-sm);padding-left:var(--calcite-spacing-sm);max-width:250px;word-break:normal;word-wrap:normal;font-size:var(--calcite-font-size-sm)}.size-ramp-symbol-container{min-width:10px;text-align:center}.size-ramp-symbol{display:flex;justify-content:center}`,l=class extends m{constructor(){super(...arguments),this.legendElement=null}static{this.properties={legendElement:0,messages:0}}static{this.styles=g}render(){let e=this.legendElement.infos.map(s=>this._renderRow(s)).filter(Boolean);return e.length?this.legendElement.theme==="spike"?a`<arcgis-legend-spike-ramp .legendElement=${this.legendElement} .messages=${this.messages}></arcgis-legend-spike-ramp>`:a`<div class="size-ramp-container">${e}</div>`:null}_renderRow(e){let{preview:s}=e;if(!s)return null;let t=p(this.messages,e.label,!1);return d(s,o(this.messages,t)),a`<div class="size-ramp-row"><div class=${i(r("size-ramp-cell","size-ramp-symbol-container"))}><div class="size-ramp-symbol">${s}</div></div><div class=${i(r("size-ramp-cell","size-ramp-label"))}>${t}</div></div>`}};c("arcgis-legend-classic-size-ramp",l);return l},b)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import{a as M}from"./RB7UDIMI.js";import{a as z}from"./FDCZDZTJ.js";import{c as S}from"./S4I3X6AX.js";import e from"./R4WFQOV2.js";import{a as C}from"./NQ775DQU.js";import d from"./G24BYXK5.js";import b from"./YGW5PYWZ.js";import{h as k}from"./BSE5M4WJ.js";import"./LK4Z556U.js";import a from"./TD5P6HY7.js";import"./B7RY25MR.js";import{M as u,N as h,O as $,P as _,U as y,a as x,b as n,f as c,q as g,x as v}from"./XF2Q2HB6.js";import"./3TTFCHAA.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"./7JUBBXUN.js";import{a as z}from"./XU4K7J6G.js";import{c as S}from"./S4I3X6AX.js";import e from"./QRJYLUPS.js";import{a as C}from"./FWKQQQZ4.js";import d from"./UVMRWPW4.js";import b from"./ZXVSXONX.js";import{h as k}from"./K2AR3ZWH.js";import"./LH3XMT6P.js";import a from"./3UF42S5R.js";import"./WD2JWNQF.js";import{M as u,N as h,O as $,P as _,U as y,a as x,b as n,f as c,q as g,x as v}from"./J4CQT4XJ.js";import"./3TTFCHAA.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)