@arcgis/map-components 5.1.0-next.127 → 5.1.0-next.128

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 (192) hide show
  1. package/dist/cdn/{NJHOCKLL.js → 23N5RSQM.js} +1 -1
  2. package/dist/cdn/{HP34RLMV.js → 2A7AC2RY.js} +1 -1
  3. package/dist/cdn/{ADWNNODV.js → 2AZXE2Y3.js} +1 -1
  4. package/dist/cdn/7DGQHON2.js +2 -0
  5. package/dist/cdn/{TCUFYIIZ.js → 7EVXRUAJ.js} +1 -1
  6. package/dist/cdn/{MASUN7EL.js → ACQRIVIF.js} +1 -1
  7. package/dist/cdn/{6RUN7OSM.js → AJTKCFGJ.js} +1 -1
  8. package/dist/cdn/{CNNVHQTZ.js → AQ6DGT5T.js} +1 -1
  9. package/dist/cdn/B7DNJSCN.js +2 -0
  10. package/dist/cdn/BL6LUEPC.js +2 -0
  11. package/dist/cdn/{X5UAYUNL.js → BLJAHET2.js} +1 -1
  12. package/dist/cdn/{VHJSRDE4.js → CFGT4HQ7.js} +1 -1
  13. package/dist/cdn/DW6PMJIB.js +2 -0
  14. package/dist/cdn/FYFDHMAN.js +2 -0
  15. package/dist/cdn/{RIRETHHL.js → G4FCTRVU.js} +1 -1
  16. package/dist/cdn/GGSCB7MM.js +2 -0
  17. package/dist/cdn/ID7AT6M5.js +2 -0
  18. package/dist/cdn/{SXWQBHG3.js → INHQ3RYK.js} +1 -1
  19. package/dist/cdn/{6WV5RHUP.js → IXPAJUSY.js} +2 -2
  20. package/dist/cdn/{43B43AY2.js → JYIVPBFH.js} +1 -1
  21. package/dist/cdn/{W4SQ3QCZ.js → KZS3PUUX.js} +1 -1
  22. package/dist/cdn/{NHJ3PDXY.js → MYQ4CLQO.js} +1 -1
  23. package/dist/cdn/{OMP25CVT.js → OFK3BLGF.js} +1 -1
  24. package/dist/cdn/{3M2OCTTN.js → QB6PRJZ6.js} +1 -1
  25. package/dist/cdn/{IJYN5YEP.js → TXYMLRHL.js} +1 -1
  26. package/dist/cdn/U3KZNPKY.js +2 -0
  27. package/dist/cdn/WCEU5ZCM.js +2 -0
  28. package/dist/cdn/{4AQ43ENS.js → WKTEY3AU.js} +1 -1
  29. package/dist/cdn/{HBE3W2BQ.js → XDQDTW2I.js} +1 -1
  30. package/dist/cdn/assets/coordinate-conversion/t9n/messages.ar.json +1 -1
  31. package/dist/cdn/assets/coordinate-conversion/t9n/messages.bg.json +1 -1
  32. package/dist/cdn/assets/coordinate-conversion/t9n/messages.bs.json +1 -1
  33. package/dist/cdn/assets/coordinate-conversion/t9n/messages.ca.json +1 -1
  34. package/dist/cdn/assets/coordinate-conversion/t9n/messages.cs.json +1 -1
  35. package/dist/cdn/assets/coordinate-conversion/t9n/messages.da.json +1 -1
  36. package/dist/cdn/assets/coordinate-conversion/t9n/messages.de.json +1 -1
  37. package/dist/cdn/assets/coordinate-conversion/t9n/messages.el.json +1 -1
  38. package/dist/cdn/assets/coordinate-conversion/t9n/messages.en.json +1 -1
  39. package/dist/cdn/assets/coordinate-conversion/t9n/messages.es.json +1 -1
  40. package/dist/cdn/assets/coordinate-conversion/t9n/messages.et.json +1 -1
  41. package/dist/cdn/assets/coordinate-conversion/t9n/messages.fi.json +1 -1
  42. package/dist/cdn/assets/coordinate-conversion/t9n/messages.fr.json +1 -1
  43. package/dist/cdn/assets/coordinate-conversion/t9n/messages.he.json +1 -1
  44. package/dist/cdn/assets/coordinate-conversion/t9n/messages.hr.json +1 -1
  45. package/dist/cdn/assets/coordinate-conversion/t9n/messages.hu.json +1 -1
  46. package/dist/cdn/assets/coordinate-conversion/t9n/messages.id.json +1 -1
  47. package/dist/cdn/assets/coordinate-conversion/t9n/messages.it.json +1 -1
  48. package/dist/cdn/assets/coordinate-conversion/t9n/messages.ja.json +1 -1
  49. package/dist/cdn/assets/coordinate-conversion/t9n/messages.ko.json +1 -1
  50. package/dist/cdn/assets/coordinate-conversion/t9n/messages.lt.json +1 -1
  51. package/dist/cdn/assets/coordinate-conversion/t9n/messages.lv.json +1 -1
  52. package/dist/cdn/assets/coordinate-conversion/t9n/messages.nl.json +1 -1
  53. package/dist/cdn/assets/coordinate-conversion/t9n/messages.no.json +1 -1
  54. package/dist/cdn/assets/coordinate-conversion/t9n/messages.pl.json +1 -1
  55. package/dist/cdn/assets/coordinate-conversion/t9n/messages.pt-BR.json +1 -1
  56. package/dist/cdn/assets/coordinate-conversion/t9n/messages.pt-PT.json +1 -1
  57. package/dist/cdn/assets/coordinate-conversion/t9n/messages.ro.json +1 -1
  58. package/dist/cdn/assets/coordinate-conversion/t9n/messages.ru.json +1 -1
  59. package/dist/cdn/assets/coordinate-conversion/t9n/messages.sk.json +1 -1
  60. package/dist/cdn/assets/coordinate-conversion/t9n/messages.sl.json +1 -1
  61. package/dist/cdn/assets/coordinate-conversion/t9n/messages.sr.json +1 -1
  62. package/dist/cdn/assets/coordinate-conversion/t9n/messages.sv.json +1 -1
  63. package/dist/cdn/assets/coordinate-conversion/t9n/messages.th.json +1 -1
  64. package/dist/cdn/assets/coordinate-conversion/t9n/messages.tr.json +1 -1
  65. package/dist/cdn/assets/coordinate-conversion/t9n/messages.uk.json +1 -1
  66. package/dist/cdn/assets/coordinate-conversion/t9n/messages.vi.json +1 -1
  67. package/dist/cdn/assets/coordinate-conversion/t9n/messages.zh-CN.json +1 -1
  68. package/dist/cdn/assets/coordinate-conversion/t9n/messages.zh-HK.json +1 -1
  69. package/dist/cdn/assets/coordinate-conversion/t9n/messages.zh-TW.json +1 -1
  70. package/dist/cdn/assets/coordinate-conversion-next/t9n/messages.ar.json +1 -0
  71. package/dist/cdn/assets/coordinate-conversion-next/t9n/messages.bg.json +1 -0
  72. package/dist/cdn/assets/coordinate-conversion-next/t9n/messages.bs.json +1 -0
  73. package/dist/cdn/assets/coordinate-conversion-next/t9n/messages.ca.json +1 -0
  74. package/dist/cdn/assets/coordinate-conversion-next/t9n/messages.cs.json +1 -0
  75. package/dist/cdn/assets/coordinate-conversion-next/t9n/messages.da.json +1 -0
  76. package/dist/cdn/assets/coordinate-conversion-next/t9n/messages.de.json +1 -0
  77. package/dist/cdn/assets/coordinate-conversion-next/t9n/messages.el.json +1 -0
  78. package/dist/cdn/assets/coordinate-conversion-next/t9n/messages.en.json +1 -0
  79. package/dist/cdn/assets/coordinate-conversion-next/t9n/messages.es.json +1 -0
  80. package/dist/cdn/assets/coordinate-conversion-next/t9n/messages.et.json +1 -0
  81. package/dist/cdn/assets/coordinate-conversion-next/t9n/messages.fi.json +1 -0
  82. package/dist/cdn/assets/coordinate-conversion-next/t9n/messages.fr.json +1 -0
  83. package/dist/cdn/assets/coordinate-conversion-next/t9n/messages.he.json +1 -0
  84. package/dist/cdn/assets/coordinate-conversion-next/t9n/messages.hr.json +1 -0
  85. package/dist/cdn/assets/coordinate-conversion-next/t9n/messages.hu.json +1 -0
  86. package/dist/cdn/assets/coordinate-conversion-next/t9n/messages.id.json +1 -0
  87. package/dist/cdn/assets/coordinate-conversion-next/t9n/messages.it.json +1 -0
  88. package/dist/cdn/assets/coordinate-conversion-next/t9n/messages.ja.json +1 -0
  89. package/dist/cdn/assets/coordinate-conversion-next/t9n/messages.ko.json +1 -0
  90. package/dist/cdn/assets/coordinate-conversion-next/t9n/messages.lt.json +1 -0
  91. package/dist/cdn/assets/coordinate-conversion-next/t9n/messages.lv.json +1 -0
  92. package/dist/cdn/assets/coordinate-conversion-next/t9n/messages.nl.json +1 -0
  93. package/dist/cdn/assets/coordinate-conversion-next/t9n/messages.no.json +1 -0
  94. package/dist/cdn/assets/coordinate-conversion-next/t9n/messages.pl.json +1 -0
  95. package/dist/cdn/assets/coordinate-conversion-next/t9n/messages.pt-BR.json +1 -0
  96. package/dist/cdn/assets/coordinate-conversion-next/t9n/messages.pt-PT.json +1 -0
  97. package/dist/cdn/assets/coordinate-conversion-next/t9n/messages.ro.json +1 -0
  98. package/dist/cdn/assets/coordinate-conversion-next/t9n/messages.ru.json +1 -0
  99. package/dist/cdn/assets/coordinate-conversion-next/t9n/messages.sk.json +1 -0
  100. package/dist/cdn/assets/coordinate-conversion-next/t9n/messages.sl.json +1 -0
  101. package/dist/cdn/assets/coordinate-conversion-next/t9n/messages.sr.json +1 -0
  102. package/dist/cdn/assets/coordinate-conversion-next/t9n/messages.sv.json +1 -0
  103. package/dist/cdn/assets/coordinate-conversion-next/t9n/messages.th.json +1 -0
  104. package/dist/cdn/assets/coordinate-conversion-next/t9n/messages.tr.json +1 -0
  105. package/dist/cdn/assets/coordinate-conversion-next/t9n/messages.uk.json +1 -0
  106. package/dist/cdn/assets/coordinate-conversion-next/t9n/messages.vi.json +1 -0
  107. package/dist/cdn/assets/coordinate-conversion-next/t9n/messages.zh-CN.json +1 -0
  108. package/dist/cdn/assets/coordinate-conversion-next/t9n/messages.zh-HK.json +1 -0
  109. package/dist/cdn/assets/coordinate-conversion-next/t9n/messages.zh-TW.json +1 -0
  110. package/dist/cdn/index.js +1 -1
  111. package/dist/cdn/main.css +1 -1
  112. package/dist/chunks/slots.js +1 -1
  113. package/dist/components/arcgis-coordinate-conversion/customElement.d.ts +51 -110
  114. package/dist/components/arcgis-coordinate-conversion/customElement.js +198 -250
  115. package/dist/components/arcgis-coordinate-conversion/index.js +3 -12
  116. package/dist/components/arcgis-coordinate-conversion-next/customElement.d.ts +427 -0
  117. package/dist/components/arcgis-coordinate-conversion-next/customElement.js +361 -0
  118. package/dist/components/arcgis-coordinate-conversion-next/index.d.ts +1 -0
  119. package/dist/components/arcgis-coordinate-conversion-next/index.js +19 -0
  120. package/dist/components/arcgis-coordinate-conversion-next/types.d.ts +1 -0
  121. package/dist/components/arcgis-layer-list-next/layer-list-item/customElement.js +18 -15
  122. package/dist/components/arcgis-measurement-content/customElement.js +5 -5
  123. package/dist/components/arcgis-print/customElement.js +10 -4
  124. package/dist/components/arcgis-print-dpi-input/customElement.js +22 -14
  125. package/dist/components/arcgis-value-picker/customElement.d.ts +1 -0
  126. package/dist/components/arcgis-value-picker-collection/customElement.d.ts +1 -0
  127. package/dist/components/arcgis-value-picker-combobox/customElement.d.ts +1 -0
  128. package/dist/components/arcgis-value-picker-label/customElement.d.ts +1 -0
  129. package/dist/components/arcgis-value-picker-slider/customElement.d.ts +1 -0
  130. package/dist/components/arcgis-weather/customElement.js +108 -102
  131. package/dist/docs/api.json +1 -1
  132. package/dist/docs/docs.json +1 -1
  133. package/dist/docs/vscode.html-custom-data.json +1 -1
  134. package/dist/docs/web-types.json +1 -1
  135. package/dist/index.d.ts +10 -0
  136. package/dist/loader.js +2 -1
  137. package/dist/types/lumina.d.ts +9 -1
  138. package/dist/types/preact.d.ts +10 -1
  139. package/dist/types/react.d.ts +11 -1
  140. package/dist/types/stencil.d.ts +9 -1
  141. package/package.json +5 -5
  142. package/dist/cdn/6SY6H3FZ.js +0 -2
  143. package/dist/cdn/BG3VNWG6.js +0 -2
  144. package/dist/cdn/CRJEQWDO.js +0 -2
  145. package/dist/cdn/FKJU4SJG.js +0 -2
  146. package/dist/cdn/I6KMMQ5H.js +0 -2
  147. package/dist/cdn/JOOGE4FT.js +0 -2
  148. package/dist/cdn/PKJFYEJ5.js +0 -2
  149. package/dist/cdn/XHF7LKTV.js +0 -2
  150. /package/dist/cdn/{R6G7YQAK.js → 2W5RV3EJ.js} +0 -0
  151. /package/dist/cdn/{YSJ2NU2N.js → 3TRATNZV.js} +0 -0
  152. /package/dist/cdn/{BALE27RC.js → 4JWK27SA.js} +0 -0
  153. /package/dist/cdn/{HHVQ6PZP.js → 576HMH2U.js} +0 -0
  154. /package/dist/cdn/{WDDHDMHF.js → 6HLNUCC6.js} +0 -0
  155. /package/dist/cdn/{OKZBZTFG.js → 6P4ZUURU.js} +0 -0
  156. /package/dist/cdn/{YDOV4SQ2.js → 7C4EVWIY.js} +0 -0
  157. /package/dist/cdn/{M3RQA7LC.js → 7HIZWVK6.js} +0 -0
  158. /package/dist/cdn/{3WCEFKJX.js → 7TQJL7VJ.js} +0 -0
  159. /package/dist/cdn/{QBLPJW3F.js → AJP5JNQF.js} +0 -0
  160. /package/dist/cdn/{KODINAEM.js → AYAJUXKW.js} +0 -0
  161. /package/dist/cdn/{U5WUAQYQ.js → BD5KLEZ5.js} +0 -0
  162. /package/dist/cdn/{3NSVHKCX.js → BZ5ABB6V.js} +0 -0
  163. /package/dist/cdn/{YGVTAUE6.js → C2SACA5M.js} +0 -0
  164. /package/dist/cdn/{ACZBI3TS.js → CLA7JEOB.js} +0 -0
  165. /package/dist/cdn/{KOSOMJZF.js → CVOGDYXF.js} +0 -0
  166. /package/dist/cdn/{XVEQWFE4.js → DAG74RH4.js} +0 -0
  167. /package/dist/cdn/{S6ARJLXF.js → EF6UGGVN.js} +0 -0
  168. /package/dist/cdn/{NFC5RKO7.js → EIGHVEDW.js} +0 -0
  169. /package/dist/cdn/{XQ5DUVE2.js → F3XRLP5D.js} +0 -0
  170. /package/dist/cdn/{VZLSY2HC.js → FGKRDCR2.js} +0 -0
  171. /package/dist/cdn/{UGILYDTR.js → FT6K7BUM.js} +0 -0
  172. /package/dist/cdn/{CSLP3Y5Q.js → JVGSVJAU.js} +0 -0
  173. /package/dist/cdn/{5U45EC5U.js → LSRIBDWV.js} +0 -0
  174. /package/dist/cdn/{3DVOY4BQ.js → MYZL5VDP.js} +0 -0
  175. /package/dist/cdn/{VOI7MTIP.js → NICHYMLV.js} +0 -0
  176. /package/dist/cdn/{ZHJBZYZ4.js → NTJ62UF7.js} +0 -0
  177. /package/dist/cdn/{PS4ID2TE.js → O3VMMGXZ.js} +0 -0
  178. /package/dist/cdn/{RT5PKDE3.js → OGMU6GEI.js} +0 -0
  179. /package/dist/cdn/{LCL6A5WY.js → QJUKEGK3.js} +0 -0
  180. /package/dist/cdn/{FVOWGP5P.js → R4AK2FA4.js} +0 -0
  181. /package/dist/cdn/{S372YWXF.js → RCD3M5V5.js} +0 -0
  182. /package/dist/cdn/{2CZRXPMB.js → T6BEKX6C.js} +0 -0
  183. /package/dist/cdn/{IIQPDHOL.js → UNUOJC6K.js} +0 -0
  184. /package/dist/cdn/{SYVTOG2B.js → W5GKPUHF.js} +0 -0
  185. /package/dist/cdn/{PFWDUC5T.js → W5NAYIE3.js} +0 -0
  186. /package/dist/cdn/{XPGK3YXK.js → WCEKLVJB.js} +0 -0
  187. /package/dist/cdn/{ST4PUEOI.js → XENQYCEN.js} +0 -0
  188. /package/dist/cdn/{2RIDZVJS.js → XRFBIBEE.js} +0 -0
  189. /package/dist/cdn/{6TIWCGNI.js → Y2YAHXBD.js} +0 -0
  190. /package/dist/cdn/{3X2K6TOS.js → Z5SFNS2P.js} +0 -0
  191. /package/dist/cdn/{2GDVOK6V.js → ZJXSHJF2.js} +0 -0
  192. /package/dist/cdn/{NY56F774.js → ZNWI3SU6.js} +0 -0
@@ -0,0 +1,361 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
+ import { c as y } from "../../chunks/runtime.js";
3
+ import { keyed as k } from "lit/directives/keyed.js";
4
+ import { repeat as C } from "lit/directives/repeat.js";
5
+ import { css as P, nothing as c, html as n } from "lit";
6
+ import { createRef as b, ref as p } from "lit/directives/ref.js";
7
+ import { LitElement as S, createEvent as m, safeClassMap as z } from "@arcgis/lumina";
8
+ import { usePropertyChange as M } from "@arcgis/lumina/controllers";
9
+ import { rethrowError as w } from "@arcgis/toolkit/log";
10
+ import { m as L } from "../../chunks/useViewModel.js";
11
+ import { u as T } from "../../chunks/useT9n.js";
12
+ import { convertUnit as E } from "@arcgis/core/applications/Components/unitUtils.js";
13
+ import { getDefaultUnitForView as F } from "@arcgis/core/applications/Components/getDefaultUnits.js";
14
+ import { hasDisplayProperties as g } from "@arcgis/core/applications/Components/formatUtils.js";
15
+ import D from "@arcgis/core/geometry/Point.js";
16
+ import I from "@arcgis/core/widgets/CoordinateConversion/CoordinateConversionViewModel.js";
17
+ import u from "@arcgis/core/widgets/CoordinateConversion/support/Conversion.js";
18
+ import { l as U } from "../../chunks/measurementUtils.js";
19
+ import A from "@arcgis/core/applications/Components/QuantityFormatter.js";
20
+ const O = P`[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}`, V = 2500, q = new D({
21
+ x: 0,
22
+ y: 0
23
+ }), l = {
24
+ copy: "copy",
25
+ gear: "gear",
26
+ goTo: "zoom-to-object",
27
+ lightbulb: "lightbulb",
28
+ plus: "plus",
29
+ refresh: "refresh",
30
+ warning: "exclamation-mark-triangle"
31
+ }, R = L(I);
32
+ class j extends S {
33
+ constructor() {
34
+ super(...arguments), this._alertTimer = -1, this._conversionPopoverMap = /* @__PURE__ */ new Map(), this._coordinateInput = b(), this.messages = T({ name: "coordinate-conversion-next", blocking: !0 }), this._multipleConversionsDisabled = !1, this.quantityFormatter = new A(), this.viewModel = R(this), this.clearAlertTimeout = () => {
35
+ window.clearTimeout(this._alertTimer), this.alertProperties = {
36
+ ...this.alertProperties,
37
+ open: !1
38
+ };
39
+ }, this.onElevationPopoverTriggerMount = (e) => {
40
+ this._elevationPopoverTrigger = e;
41
+ }, this.onFormatPopoverTriggerMount = (e) => {
42
+ this._formatsPopoverTrigger = e;
43
+ }, this.handleFormatComboboxChange = (e) => {
44
+ const o = e.target.selectedItems[0].value, i = this.formats.find((t) => t.name === o);
45
+ if (i) {
46
+ const t = this.activeConversion ?? this.conversions.at(0) ?? null, r = new u({ format: i });
47
+ t && this.transferConversionPopoverState(t, r), this.conversions.splice(0, 1, r), this.activeConversion = r, this.setPreviewConversion();
48
+ }
49
+ }, this.alertProperties = {
50
+ kind: "brand",
51
+ message: null,
52
+ title: null,
53
+ open: !1
54
+ }, 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 = m(), this.arcgisPropertyChange = M()("currentLocation", "state", "mode", "verticalUnit"), this.arcgisReady = m(), this.renderConversionView = (e, o) => {
55
+ const { messages: i } = this, { format: t } = e, r = t?.label ?? "", a = o === 0 && !e.displayCoordinate ? i.noLocation : e.displayCoordinate, d = this._renderConversionActions(e, a);
56
+ return k(e?.format?.name, n`<calcite-list-item class="conversion-list-item" .description=${r.toUpperCase()} .label=${this.getDisplayCoordinate(a)} .scale=${this.visualScale} title=${a ?? void 0 ?? c}>${d}</calcite-list-item>`);
57
+ }, this.renderLiveModeSection = () => {
58
+ const { messages: e } = this, o = this.mode === "idle" ? this.viewModel.mode : this.mode;
59
+ 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=${o === "capture"} @calciteSwitchChange=${this.toggleMode}></calcite-switch></calcite-label></calcite-block>`;
60
+ };
61
+ }
62
+ static {
63
+ 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 };
64
+ }
65
+ static {
66
+ this.styles = O;
67
+ }
68
+ get defaultMeasurementSystem() {
69
+ return this.view?.ready ? F(this.view) : "metric";
70
+ }
71
+ get disabled() {
72
+ return this.viewModel.state === "disabled";
73
+ }
74
+ get displayedElevation() {
75
+ const { currentLocation: e, verticalUnit: o, messages: i } = this;
76
+ if (e?.z === void 0 || e.z === null)
77
+ return i.noElevation;
78
+ {
79
+ const t = E(e.z, "meters", o);
80
+ return this.quantityFormatter.formatLength({ value: t, unit: o, type: "length" }, 2, "plural");
81
+ }
82
+ }
83
+ get ignoreCoordinatePrecision() {
84
+ return !this.viewModel.calculateCoordinatePrecision;
85
+ }
86
+ set ignoreCoordinatePrecision(e) {
87
+ this.viewModel.calculateCoordinatePrecision = !e;
88
+ }
89
+ get multipleConversionsDisabled() {
90
+ return this._multipleConversionsDisabled;
91
+ }
92
+ set multipleConversionsDisabled(e) {
93
+ e && this.conversions.splice(1, this.conversions.length - 1), this._multipleConversionsDisabled = e;
94
+ }
95
+ get storageDisabled() {
96
+ return !this.viewModel.storageEnabled;
97
+ }
98
+ set storageDisabled(e) {
99
+ this.viewModel.storageEnabled = !e;
100
+ }
101
+ get verticalUnit() {
102
+ return this.viewModel.verticalUnit ?? (this.defaultMeasurementSystem === "imperial" ? "feet" : "meters");
103
+ }
104
+ set verticalUnit(e) {
105
+ this.viewModel.verticalUnit = e;
106
+ }
107
+ async destroy() {
108
+ this.clearAlertTimeout(), await this.manager.destroy();
109
+ }
110
+ async reverseConvert(e, o) {
111
+ return await this.viewModel.reverseConvert(e, o);
112
+ }
113
+ load() {
114
+ this.manager.onLifecycle(() => [this.conversions.on("change", () => this.arcgisConversionChange.emit())]);
115
+ }
116
+ willUpdate(e) {
117
+ if (e.has("mode") && this.mode === "idle") {
118
+ this.viewModel.setLocation(this.currentLocation);
119
+ return;
120
+ }
121
+ if (e.has("currentLocation")) {
122
+ const o = e.get("currentLocation");
123
+ this.mode === "idle" && !this.currentLocation?.equals(o) && this.viewModel.setLocation(this.currentLocation);
124
+ }
125
+ }
126
+ closeAllPopovers() {
127
+ for (const e of this._conversionPopoverMap.values())
128
+ e.open = !1;
129
+ this.elevationPopoverOpen = !1, this.formatsPopoverOpen = !1, this.requestUpdate();
130
+ }
131
+ async copyToClipboard(e) {
132
+ e && (e = e.replace(/‎/gu, ""), await navigator.clipboard.writeText(e));
133
+ }
134
+ findSettingsFormat() {
135
+ return this.activeConversion?.format || this.conversions.reduceRight((e, o) => {
136
+ const i = o.format;
137
+ return i && g(i) ? i : e;
138
+ }, null) || this.formats.find((e) => g(e)) || null;
139
+ }
140
+ getConversionPopoverState(e) {
141
+ let o = this._conversionPopoverMap.get(e);
142
+ return o || (o = {
143
+ triggerRef: b(),
144
+ open: !1
145
+ }, this._conversionPopoverMap.set(e, o)), o;
146
+ }
147
+ getDisplayCoordinate(e) {
148
+ return e ? e.includes(",") ? e.replace(/, /gu, ", ​").replace(/ /gu, " ") : e : "​";
149
+ }
150
+ getFormatDescription(e) {
151
+ const { messages: o } = this;
152
+ return o.formatDescriptions[e.name] ?? o.formatDescriptions.custom;
153
+ }
154
+ getId(e) {
155
+ return `arcgis-coordinate-conversion-${e}`;
156
+ }
157
+ openConversionSettings(e, o) {
158
+ const i = this.getConversionPopoverState(e), t = this.activeConversion !== e || !i.open;
159
+ this.closeAllPopovers(), i.open = t, this._conversionPopoverTrigger = t ? o.currentTarget : void 0, this.activeConversion = t ? e : void 0, t && this.setPreviewConversion(), this.requestUpdate(), o.stopPropagation();
160
+ }
161
+ async processUserInput(e, o, i) {
162
+ const { viewModel: t } = this;
163
+ try {
164
+ const r = await this._reverseConvert(e, o);
165
+ if (r)
166
+ i && t.goToLocation(r).catch((s) => {
167
+ w(this)(s), this.showAlertMessage(null, this.messages.locationOffBasemap, "warning");
168
+ });
169
+ else
170
+ throw new Error("failed to process user input");
171
+ this.mode === "capture" ? t.resume() : this.mode = "capture", this.invalidInput = !1, this.currentLocation = r ?? void 0, t.setLocation(r);
172
+ } catch (r) {
173
+ w(this)(r), this.showAlertMessage(null, this.messages.invalidCoordinate, "warning"), this.invalidInput = !0;
174
+ }
175
+ }
176
+ async processUserKeyboardInput(e) {
177
+ const { key: o } = e;
178
+ if (o === "Enter") {
179
+ const i = this.inputFormat || this.conversions.at(0)?.format, t = this._coordinateInput.value?.value;
180
+ if (!i || !t)
181
+ return;
182
+ await this.processUserInput(t, i, !0);
183
+ } else
184
+ this.invalidInput = !1;
185
+ }
186
+ async processUserMouseInput(e) {
187
+ const o = this.inputFormat || this.conversions.at(0)?.format, i = this._coordinateInput.value?.value;
188
+ !o || !i || await this.processUserInput(i, o, e);
189
+ }
190
+ async _reverseConvert(e, o) {
191
+ return await o.reverseConvert(e);
192
+ }
193
+ setDefaultPattern(e) {
194
+ e.stopPropagation();
195
+ const o = this.findSettingsFormat();
196
+ o?.defaultPattern && (o.currentPattern = o.defaultPattern);
197
+ }
198
+ setInputFormat(e) {
199
+ const o = e.target.selectedOption.value;
200
+ o !== null && (this.inputFormat = o);
201
+ }
202
+ setPreviewConversion() {
203
+ const e = this.findSettingsFormat(), o = this.viewModel;
204
+ if (e) {
205
+ const i = this.conversions.find((t) => t.format === e);
206
+ this.previewConversion = new u({
207
+ format: e,
208
+ position: {
209
+ location: this.currentLocation,
210
+ coordinate: i?.position?.coordinate
211
+ }
212
+ }), this.previewConversion.position?.coordinate || o.previewConversion(this.previewConversion, o.currentLocation ?? q);
213
+ }
214
+ }
215
+ showAlertMessage(e, o, i, t = V) {
216
+ this.alertProperties = {
217
+ ...this.alertProperties,
218
+ title: e,
219
+ message: o,
220
+ kind: i,
221
+ open: !0
222
+ }, window.clearTimeout(this._alertTimer), this._alertTimer = window.setTimeout(() => {
223
+ this.alertProperties = {
224
+ ...this.alertProperties,
225
+ open: !1
226
+ };
227
+ }, t);
228
+ }
229
+ toggleConversion(e) {
230
+ const o = e.target, i = this.formats.find((t) => t.name === o.getAttribute("data-format"));
231
+ if (i) {
232
+ const t = this.conversions.find((r) => r.format === i);
233
+ if (t) {
234
+ if (this.conversions.length > 1) {
235
+ const r = this._conversionPopoverMap.get(t);
236
+ r && (r.open = !1, this._conversionPopoverMap.delete(t)), this.activeConversion === t && (this.activeConversion = void 0), this.conversions.remove(t);
237
+ }
238
+ } else {
239
+ const r = new u({ format: i });
240
+ this.conversions.add(r);
241
+ }
242
+ }
243
+ }
244
+ toggleMode() {
245
+ this.mode = this.viewModel.mode === "live" ? "capture" : "live";
246
+ }
247
+ transferConversionPopoverState(e, o) {
248
+ const i = this.getConversionPopoverState(e), t = this.getConversionPopoverState(o);
249
+ t.open = i.open, this._conversionPopoverMap.delete(e);
250
+ }
251
+ updateCurrentPattern(e) {
252
+ e.stopPropagation();
253
+ const o = e.target, i = this.findSettingsFormat();
254
+ i && (i.currentPattern = o.value);
255
+ }
256
+ render() {
257
+ const { headingLevel: e } = this, o = this.renderConversionPopover();
258
+ return n`<calcite-panel class=root .headingLevel=${e} .scale=${this.visualScale}>${this.renderConversionsView()}${this.renderAlert()}</calcite-panel>${o}`;
259
+ }
260
+ renderAlert() {
261
+ const { messages: e } = this, { open: o, message: i, title: t, kind: r } = this.alertProperties;
262
+ return n`<calcite-alert class="alert" .kind=${r} .label=${e.alertLabel} @calciteAlertClose=${this.clearAlertTimeout} .open=${o} placement=top .scale=${this.visualScale} slot=alerts>${t ? n`<div slot=title>${t}</div>` : null}${i ? n`<div slot=message>${i}</div>` : null}</calcite-alert>`;
263
+ }
264
+ _renderConversionActions(e, o) {
265
+ const { messages: i } = this, t = this.getConversionPopoverState(e), r = i.settingsTitleWithFormat.replace("{formatName}", e.format?.name?.toUpperCase() ?? ""), s = e.displayCoordinate && this.mode !== "live";
266
+ return n`<calcite-action-group layout=horizontal .scale=${this.visualScale} slot=actions-end>${s ? n`<calcite-action .icon=${l.copy} .label=${i.copyLabel} @click=${() => this.copyToClipboard(o)} .scale=${this.visualScale} .text=${i.copyLabel} title=${i.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} ${p(t.triggerRef)}></calcite-action>`}</calcite-action-group>`;
267
+ }
268
+ renderConversionOptions(e, o) {
269
+ return e.map((i) => n`<calcite-option .label=${i.label.toUpperCase()} .selected=${i === o} .value=${i}>${i.label}</calcite-option>`);
270
+ }
271
+ renderConversionPopover() {
272
+ const { activeConversion: e, messages: o } = this;
273
+ if (!e)
274
+ return null;
275
+ const i = this.getConversionPopoverState(e), t = o.settingsTitleWithFormat.replace("{formatName}", e.format?.name?.toUpperCase() ?? "");
276
+ return this.renderPopover({
277
+ class: "conversion-popover",
278
+ content: this.renderSettingsView(),
279
+ getPopoverOpenProperty: () => i.open,
280
+ heading: t,
281
+ includeFooter: !0,
282
+ label: t,
283
+ setPopoverOpenProperty: (r) => {
284
+ i.open = r, r || (this._conversionPopoverTrigger = void 0, this.activeConversion = void 0), this.requestUpdate();
285
+ },
286
+ trigger: null,
287
+ triggerElement: i.triggerRef.value ?? this._conversionPopoverTrigger ?? void 0
288
+ });
289
+ }
290
+ renderConversionsView() {
291
+ if (!this.conversions)
292
+ return;
293
+ const { messages: e, multipleConversionsDisabled: o } = this, t = (o ? this.conversions.slice(0, 1) : this.conversions).map(this.renderConversionView).reverse(), r = this.showElevation ? this.renderElevation() : null, s = this.hideCaptureSection ? null : this.renderLiveModeSection(), a = this.hideInputSection ? null : this.renderCoordinateInputView(), d = this.multipleConversionsDisabled ? null : this.renderFormatDropdown(), v = 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;
294
+ return n`${s}${v}${a}<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}>${t}</calcite-list>${d}</calcite-block>${r}`;
295
+ }
296
+ renderCoordinateInputView() {
297
+ const { messages: e } = this, o = this.inputFormat ?? this.conversions.at(0)?.format, i = this.getId("coordinate-input"), t = this.renderConversionOptions(this.formats, o ?? 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>`;
298
+ 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=${i ?? 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=${o ?? c} data-testid=coordinate-input id=${i ?? c} @keydown=${this.processUserKeyboardInput} .placeholder=${e.inputCoordTitle} required .scale=${this.visualScale} .status=${this.invalidInput ? "invalid" : "idle"} ${p(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>`;
299
+ }
300
+ renderElevation() {
301
+ const { messages: e } = this, o = this.displayedElevation ?? e.noElevation, i = this.renderElevationActions(), t = this.hideSettingsButton ? null : this.renderElevationSettingsDropdown();
302
+ 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=${o} .scale=${this.visualScale} title=${o ?? c}>${i}</calcite-list-item></calcite-list>${t}</calcite-block>`;
303
+ }
304
+ renderElevationActions() {
305
+ const { messages: e } = this, o = this.currentLocation?.z !== void 0 && this.mode !== "live", i = this.displayedElevation ?? e.noElevation;
306
+ return n`<calcite-action-group layout=horizontal .scale=${this.visualScale} slot=actions-end>${o ? n`<calcite-action .icon=${l.copy} .label=${e.copyElevationLabel} @click=${() => o && this.copyToClipboard(i)} .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} ${p(this.onElevationPopoverTriggerMount)}></calcite-action>`}</calcite-action-group>`;
307
+ }
308
+ renderElevationSettingsDropdown() {
309
+ const { messages: e } = this, o = n`<arcgis-unit-radio-button-group @arcgisUnitSelectChange=${(i) => this.verticalUnit = i.detail} .options=${U} .name=${e.selectElevationUnit} .scale=${this.visualScale} .value=${this.verticalUnit}></arcgis-unit-radio-button-group>`;
310
+ return this.renderPopover({
311
+ content: o,
312
+ closeOnEnter: !0,
313
+ getPopoverOpenProperty: () => this.elevationPopoverOpen,
314
+ includeFooter: !1,
315
+ label: e.selectElevationUnit,
316
+ setPopoverOpenProperty: (i) => this.elevationPopoverOpen = i,
317
+ trigger: null,
318
+ triggerElement: this._elevationPopoverTrigger
319
+ });
320
+ }
321
+ renderFormatDropdown() {
322
+ const { messages: e } = this, o = n`<calcite-list .label=${e.addConversion} .scale=${this.visualScale} selection-mode=multiple>${C(this.formats, (t) => t, (t) => {
323
+ const r = !!this.conversions.find((a) => a.format === t), s = this.getFormatDescription(t);
324
+ 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>`;
325
+ })}</calcite-list>`, i = n`<calcite-button appearance=outline class="add-conversion-trigger" .iconStart=${l.plus} kind=neutral .label=${e.selectFormats} round .scale=${this.visualScale} ${p(this.onFormatPopoverTriggerMount)}>${e.selectFormats}</calcite-button>`;
326
+ return this.renderPopover({
327
+ content: o,
328
+ includeFooter: !0,
329
+ getPopoverOpenProperty: () => this.formatsPopoverOpen,
330
+ label: e.selectFormats,
331
+ setPopoverOpenProperty: (t) => this.formatsPopoverOpen = t,
332
+ trigger: i,
333
+ triggerElement: this._formatsPopoverTrigger
334
+ });
335
+ }
336
+ renderPopover({ content: e, class: o, closeOnEnter: i, heading: t, getPopoverOpenProperty: r, includeFooter: s, label: a, setPopoverOpenProperty: d, slot: v, trigger: x, triggerDisabled: $, triggerElement: f }) {
337
+ const { messages: _ } = this;
338
+ return n`${x}${f ? n`<calcite-popover auto-close class=${z(o)} .heading=${t} .headingLevel=${this.headingLevel} .label=${a} @calcitePopoverBeforeOpen=${() => {
339
+ d(!0);
340
+ }} @calcitePopoverClose=${(h) => {
341
+ d(!1), h.stopPropagation();
342
+ }} @keydown=${(h) => {
343
+ i && (h.key === "Enter" || h.key === " ") && d(!1);
344
+ }} .open=${r()} .referenceElement=${f} .scale=${this.visualScale} slot=${v ?? c} .triggerDisabled=${$}>${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>${_.done}</calcite-button></div>` : null}</calcite-popover>` : null}`;
345
+ }
346
+ renderSettingsView() {
347
+ const { messages: e } = this, o = this.findSettingsFormat(), i = this.getId("pattern-input"), t = this.getId("preview-coordinate"), r = o?.currentPattern, s = this.multipleConversionsDisabled ? this.renderSingleFormatDropdown() : null;
348
+ if (!o || !g(o))
349
+ 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>`;
350
+ const 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>`;
351
+ return n`<div class="settings"><calcite-label .scale=${this.visualScale}>${e.format}${s}</calcite-label><calcite-label .for=${i} .scale=${this.visualScale}>${e.display}<div class="settings-form-group-horizontal"><calcite-input aria-controls=${t ?? c} class="pattern-input" id=${i ?? 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>`;
352
+ }
353
+ renderSingleFormatDropdown() {
354
+ const { messages: e } = this;
355
+ 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((o) => n`<calcite-combobox-item .description=${this.getFormatDescription(o)} .heading=${o.label.toUpperCase()} .selected=${this.conversions.at(0)?.format === o} .value=${o.name}></calcite-combobox-item>`)}</calcite-combobox>`;
356
+ }
357
+ }
358
+ y("arcgis-coordinate-conversion-next", j);
359
+ export {
360
+ j as ArcgisCoordinateConversionNext
361
+ };
@@ -0,0 +1 @@
1
+ export * from "./customElement.js";
@@ -0,0 +1,19 @@
1
+ import "@esri/calcite-components/components/calcite-panel";
2
+ import "@esri/calcite-components/components/calcite-alert";
3
+ import "@esri/calcite-components/components/calcite-action-group";
4
+ import "@esri/calcite-components/components/calcite-action";
5
+ import "@esri/calcite-components/components/calcite-option";
6
+ import "@esri/calcite-components/components/calcite-list-item";
7
+ import "@esri/calcite-components/components/calcite-notice";
8
+ import "@esri/calcite-components/components/calcite-block";
9
+ import "@esri/calcite-components/components/calcite-list";
10
+ import "@esri/calcite-components/components/calcite-label";
11
+ import "@esri/calcite-components/components/calcite-select";
12
+ import "@esri/calcite-components/components/calcite-input";
13
+ import "@esri/calcite-components/components/calcite-button";
14
+ import "../arcgis-unit-radio-button-group/index.js";
15
+ import "@esri/calcite-components/components/calcite-switch";
16
+ import "@esri/calcite-components/components/calcite-popover";
17
+ import "@esri/calcite-components/components/calcite-combobox";
18
+ import "@esri/calcite-components/components/calcite-combobox-item";
19
+ export * from "./customElement.js";
@@ -0,0 +1 @@
1
+ export type StorageType = "local" | "session";
@@ -45,11 +45,11 @@ function ne(i, e) {
45
45
  return m ? c`<span aria-hidden=true class=${d(P(i.itemActionIcon, { [i.itemActionImage]: !!m }))} style=${Ce(Te(m))}></span>` : null;
46
46
  }
47
47
  function te(i, e, l) {
48
- const { item: m, css: a, handleAction: y } = i, { active: C, disabled: I, title: g, type: S, indicator: f } = e, T = ie(e);
49
- return c`<calcite-action .active=${S === "toggle" ? e.value : !1} data-action-id=${e.id ?? r} .disabled=${I} .icon=${T} .indicator=${f} .loading=${C} @click=${() => Re(y, m, e)} scale=s slot=${(l ? void 0 : "actions-end") ?? r} .text=${g ?? ""} .textEnabled=${l} title=${g ?? void 0 ?? r}>${ne(a, e)}</calcite-action>`;
48
+ const { item: m, css: a, handleAction: v } = i, { active: C, disabled: I, title: g, type: S, indicator: f } = e, T = ie(e);
49
+ return c`<calcite-action .active=${S === "toggle" ? e.value : !1} data-action-id=${e.id ?? r} .disabled=${I} .icon=${T} .indicator=${f} .loading=${C} @click=${() => Re(v, m, e)} scale=s slot=${(l ? void 0 : "actions-end") ?? r} .text=${g ?? ""} .textEnabled=${l} title=${g ?? void 0 ?? r}>${ne(a, e)}</calcite-action>`;
50
50
  }
51
51
  function Ge(i) {
52
- const { item: e, parent: l, hideStatusIndicators: m, css: a, visibilityAppearance: y, hideCatalogLayerList: C, dragEnabled: I = !1, rootGroupUid: g, listModeDisabled: S = !1, selectionMode: f, displayMode: T, layerTablesEnabled: x, showErrors: ce, parentTitles: F, selectedItems: se, activeItem: oe, handleCatalogOpen: re, handleTablesOpen: de, selectedDragItemLayerUid: ue, handleSelectedDragItemLayerUidChange: me, handlePanelOpen: pe, messages: n, setCurrentActiveItem: O, clearActiveItem: R } = i, $ = X(), M = X(), b = e.title || ("untitledTable" in n ? n.untitledTable : n.untitledLayer ?? "");
52
+ const { item: e, parent: l, hideStatusIndicators: m, css: a, visibilityAppearance: v, hideCatalogLayerList: C, dragEnabled: I = !1, rootGroupUid: g, listModeDisabled: S = !1, selectionMode: f, displayMode: T, layerTablesEnabled: x, showErrors: ce, parentTitles: F, selectedItems: se, activeItem: oe, handleCatalogOpen: re, handleTablesOpen: de, selectedDragItemLayerUid: ue, handleSelectedDragItemLayerUidChange: me, handlePanelOpen: pe, messages: n, setCurrentActiveItem: O, clearActiveItem: R } = i, $ = X(), M = X(), b = e.title || ("untitledTable" in n ? n.untitledTable : n.untitledLayer ?? "");
53
53
  let V = null;
54
54
  m || (V = c`<arcgis-layer-list-item-indicator class=${d(a.statusIndicator)} .messages=${n} .item=${e} .parent=${l} slot=content-end></arcgis-layer-list-item-indicator>`);
55
55
  let G = null;
@@ -58,16 +58,16 @@ function Ge(i) {
58
58
  (i.showTemporaryLayerIndicators || i.showTemporaryTableIndicators) && s && (G = c`<calcite-icon class=${d(a.itemTemporaryIcon)} icon=temporary scale=s slot=content-start title=${n.temporary ?? r}></calcite-icon>`);
59
59
  }
60
60
  let H = null;
61
- if ("visible" in e && "visibleToggle" in a && y) {
61
+ if ("visible" in e && "visibleToggle" in a && v) {
62
62
  const t = D(l);
63
63
  if (t !== "inherited") {
64
64
  const s = xe({
65
65
  visible: e.visible,
66
66
  exclusive: t === "exclusive",
67
- visibilityAppearance: y
68
- }), o = y === "checkbox", p = n.layerVisibility, h = le(e.layer?.id);
69
- H = c`<calcite-action .aria=${{ pressed: h }} class=${d(a.visibleToggle)} .icon=${o ? s : void 0} @click=${(v) => {
70
- De(v.currentTarget, e.layer?.id), ee(e, l);
67
+ visibilityAppearance: v
68
+ }), o = v === "checkbox", p = n.layerVisibility, h = le(e.layer?.id);
69
+ H = c`<calcite-action .aria=${{ pressed: h }} class=${d(a.visibleToggle)} .icon=${o ? s : void 0} @click=${(y) => {
70
+ De(y.currentTarget, e.layer?.id), ee(e, l);
71
71
  }} .slot=${o ? "actions-start" : "actions-end"} .text=${p ?? ""} title=${p ?? r}>${o ? null : c`<calcite-icon class=${d(P({
72
72
  [a.visibleIcon]: t !== "exclusive" && e.visible
73
73
  }))} .icon=${s} scale=s></calcite-icon>`}</calcite-action>`;
@@ -82,8 +82,8 @@ function Ge(i) {
82
82
  {
83
83
  const t = e.panel;
84
84
  if (t?.visible) {
85
- const { open: s, title: o, disabled: p } = t, h = { icon: t.icon, image: t.image, indicator: !1 }, v = ie(h);
86
- q = c`<calcite-action .active=${s} .disabled=${p} .icon=${v} @click=${() => Fe(e, pe)} slot=actions-end .text=${o ?? ""} title=${o ?? void 0 ?? r}>${ne(a, t)}</calcite-action>`;
85
+ const { open: s, title: o, disabled: p } = t, h = { icon: t.icon, image: t.image, indicator: !1 }, y = ie(h);
86
+ q = c`<calcite-action .active=${s} .disabled=${p} .icon=${y} @click=${() => Fe(e, pe)} slot=actions-end .text=${o ?? ""} title=${o ?? void 0 ?? r}>${ne(a, t)}</calcite-action>`;
87
87
  }
88
88
  }
89
89
  let j = null;
@@ -118,11 +118,14 @@ function Ge(i) {
118
118
  }
119
119
  let z = null;
120
120
  if ("children" in e) {
121
- const t = [...F ?? [], e.title], { children: s, layer: o } = e, p = o?.type !== "catalog-dynamic-group" && Me(e), h = S ? !1 : Le(o), v = o?.type === "group", fe = !h && !p && I && v, he = I && "childrenSortable" in e && e.childrenSortable && Ee(e), Ie = p ? Se(s?.filter((u) => !u.hidden && (ce || !u.error)).toArray() ?? [], (u) => u.uid, (u) => Ge({ ...i, item: u, parent: e, parentTitles: t })) : null;
122
- (p || fe) && (z = c`<calcite-list .canPull=${(u) => i.canMove ? i.canMove(u, "pull") : !1} .canPut=${(u) => i.canMove ? i.canMove(u, "put") : !1} data-item=${e.uid ?? r} data-layer-type=${g ?? r} .displayMode=${T} .dragEnabled=${he} .group=${v ? g : `${g}-${o?.uid}`} .label=${e.title} selection-appearance=highlight .selectionMode=${f}>${Ie}${_}</calcite-list>`);
121
+ const t = [...F ?? [], e.title], { children: s, layer: o } = e, p = o?.type !== "catalog-dynamic-group" && Me(e), h = S ? !1 : Le(o), y = o?.type === "group", fe = !h && !p && I && y, he = I && "childrenSortable" in e && e.childrenSortable && Ee(e), Ie = p ? Se(s?.filter((u) => !u.hidden && (ce || !u.error)).toArray() ?? [], (u) => u.uid, (u) => Ge({ ...i, item: u, parent: e, parentTitles: t })) : null;
122
+ (p || fe) && (z = c`<calcite-list .canPull=${(u) => i.canMove ? i.canMove(u, "pull") : !1} .canPut=${(u) => i.canMove ? i.canMove(u, "put") : !1} data-item=${e.uid ?? r} data-layer-type=${g ?? r} .displayMode=${T} .dragEnabled=${he} .group=${y ? g : `${g}-${o?.uid}`} .label=${e.title} selection-appearance=highlight .selectionMode=${f}>${Ie}${_}</calcite-list>`);
123
123
  }
124
124
  let E = null;
125
- e.error ? E = c`<div class=${d(a.itemMessage)} slot=content-bottom><calcite-notice icon=exclamation-mark-triangle kind=warning open scale=s width=full><div slot=message>${"tableError" in n ? n.tableError : n.layerError}</div></calcite-notice></div>` : "incompatible" in e && e.incompatible && "layerIncompatible" in n && (E = c`<div class=${d(a.itemMessage)} slot=content-bottom><calcite-notice icon=exclamation-mark-triangle kind=warning open scale=s tabindex=0 width=full ${Y(M)}><div slot=message>${n.layerIncompatible}</div></calcite-notice></div>`);
125
+ if (e.error) {
126
+ const t = "layerError" in n ? n.layerError : n.tableError;
127
+ E = c`<div class=${d(a.itemMessage)} slot=content-bottom><calcite-notice icon=exclamation-mark-triangle kind=warning open scale=s width=full><div slot=message>${t}</div></calcite-notice></div>`;
128
+ } else "incompatible" in e && e.incompatible && "layerIncompatible" in n && (E = c`<div class=${d(a.itemMessage)} slot=content-bottom><calcite-notice icon=exclamation-mark-triangle kind=warning open scale=s tabindex=0 width=full ${Y(M)}><div slot=message>${n.layerIncompatible}</div></calcite-notice></div>`);
126
129
  const J = Ve(e), k = e.actionsSections.reduce((t, s) => t + s.length, 0), K = ke(J), $e = J.toArray().map((t) => c`<calcite-action-group>${t.toArray().map((s) => te(i, s, !0))}</calcite-action-group>`), ge = (t) => {
127
130
  e.actionsOpen = t.currentTarget.open;
128
131
  };
@@ -133,10 +136,10 @@ function Ge(i) {
133
136
  }} icon=ellipsis scale=s slot=trigger .text=${n.options ?? ""} title=${n.options ?? r}></calcite-action>${$e}</calcite-action-menu>`);
134
137
  let w = null;
135
138
  k === 1 && K ? w = te(i, K, !1) : k > 1 && (w = Q);
136
- const be = "visibleAtCurrentTimeExtent" in e && "layerInvisibleAtTime" in n && !e.visibleAtCurrentTimeExtent ? `${b} (${n.layerInvisibleAtTime})` : "visibleAtCurrentScale" in e && "layerInvisibleAtScale" in n && !e.visibleAtCurrentScale ? `${b} (${n.layerInvisibleAtScale})` : b, ve = "parent" in e && e.parent?.layer?.type === "catalog", A = e.layer, ye = "visibleAtCurrentScale" in e && !e.visibleAtCurrentScale || "visibleAtCurrentTimeExtent" in e && !e.visibleAtCurrentTimeExtent;
139
+ const be = "visibleAtCurrentTimeExtent" in e && "layerInvisibleAtTime" in n && !e.visibleAtCurrentTimeExtent ? `${b} (${n.layerInvisibleAtTime})` : "visibleAtCurrentScale" in e && "layerInvisibleAtScale" in n && !e.visibleAtCurrentScale ? `${b} (${n.layerInvisibleAtScale})` : b, ye = "parent" in e && e.parent?.layer?.type === "catalog", A = e.layer, ve = "visibleAtCurrentScale" in e && !e.visibleAtCurrentScale || "visibleAtCurrentTimeExtent" in e && !e.visibleAtCurrentTimeExtent;
137
140
  return queueMicrotask(() => {
138
141
  Oe($.value ?? null, e, ue, me), M.value && (i.handleTooltipReferenceChange?.(A?.uid, M.value), queueMicrotask(() => i.handleTooltipReferenceChange?.(A?.uid, null))), e.panel && (e.panel.container = $.value);
139
- }), W(e.uid, c`<calcite-list-item class=${d(P(a.item, "itemActive" in a && { [a.itemActive]: oe?.uid === e.uid }))} data-item=${e.uid ?? r} data-layer-id=${A?.id ?? r} .dragDisabled=${!("sortable" in e && e.sortable) || ve} id=${A?.uid ?? r} .label=${b} .metadata=${{ parentTitles: F ?? [], _title: b }} .expanded=${"open" in e && e.open} .selected=${f !== "none" ? se.includes(e) : !1} title=${be ?? r} .unavailable=${ye} .value=${e} @focusin=${() => {
142
+ }), W(e.uid, c`<calcite-list-item class=${d(P(a.item, "itemActive" in a && { [a.itemActive]: oe?.uid === e.uid }))} data-item=${e.uid ?? r} data-layer-id=${A?.id ?? r} .dragDisabled=${!("sortable" in e && e.sortable) || ye} id=${A?.uid ?? r} .label=${b} .metadata=${{ parentTitles: F ?? [], _title: b }} .expanded=${"open" in e && e.open} .selected=${f !== "none" ? se.includes(e) : !1} title=${be ?? r} .unavailable=${ve} .value=${e} @focusin=${() => {
140
143
  O?.(e), $.value?.classList.add(a.itemActive);
141
144
  }} @focusout=${() => {
142
145
  R?.(), $.value?.classList.remove(a.itemActive);
@@ -6,8 +6,8 @@ import c from "@arcgis/core/applications/Components/QuantityFormatter.js";
6
6
  import { LitElement as o, safeClassMap as n } from "@arcgis/lumina";
7
7
  import { generateGuid as u } from "@arcgis/toolkit/string";
8
8
  import { f as g } from "../../chunks/measurementUtils.js";
9
- const p = s`:host{--arcgis-internal-color-black-30: color-mix(in srgb, #000000 30.2%, transparent);--arcgis-internal-box-shadow: var(--calcite-spacing-none) var(--calcite-spacing-px) var(--calcite-spacing-base) var(--arcgis-internal-color-black-30);--arcgis-internal-top-max-width: calc(min(100cqw, 100vw) - var(--calcite-spacing-xxxl));--arcgis-internal-panel-width: 300px;--arcgis-internal-panel-height: 100%;--arcgis-internal-panel-height-sm: 240px;--arcgis-internal-panel-height-md: 420px;--arcgis-internal-panel-height-lg: 540px;--arcgis-internal-panel-height-xl: 680px;--arcgis-internal-panel-gap: var(--calcite-spacing-lg);--arcgis-internal-panel-actions-gap: var(--calcite-spacing-sm);--arcgis-internal-basemap-gallery-width-lg: 450px;--arcgis-internal-collapse-icon-flip: scaleX(1);--arcgis-internal-row-direction: row;--arcgis-internal-legend-width: 300px;--arcgis-internal-layout-overlay-space-top: var(--arcgis-layout-overlay-space-top, 0px);--arcgis-internal-layout-overlay-space-bottom: var(--arcgis-layout-overlay-space-bottom, 0px);--arcgis-internal-layout-overlay-space-left: var(--arcgis-layout-overlay-space-left, 0px);--arcgis-internal-layout-overlay-space-right: var(--arcgis-layout-overlay-space-right, 0px);--arcgis-internal-view-color-focus: var(--arcgis-view-color-focus, var(--calcite-color-brand));--arcgis-internal-attribution-space-bottom: var(--arcgis-internal-layout-overlay-space-bottom);--arcgis-internal-attribution-space-left: var(--arcgis-internal-layout-overlay-space-left);--arcgis-internal-attribution-space-right: var(--arcgis-internal-layout-overlay-space-right);--arcgis-internal-attribution-font-size: var(--calcite-font-size-sm);--arcgis-internal-attribution-font-size-sm: var(--calcite-font-size-xs);--arcgis-internal-sketch-justify-content: flex-start}:host,.hint,.error,.section,.actions,.item{display:flex;flex-direction:column;gap:var(--arcgis-internal-panel-gap);animation:esri-fade-in .25s ease-in-out}.error{color:var(--calcite-color-status-danger)}.error,.hint{overflow:hidden;p{margin:0;padding:0}}.results-grid{display:grid;column-gap:var(--calcite-spacing-xxs);row-gap:var(--calcite-spacing-md);grid-template-columns:1fr max-content max-content;&.vertical{display:flex;flex-direction:column;align-items:flex-start;.item{display:block}.title{margin-bottom:var(--calcite-spacing-xxs)}.value{align-self:flex-start}}}.item{display:contents;&.disabled>*{color:var(--calcite-color-text-1);opacity:var(--calcite-opacity-light)}}.title{grid-column:1;word-break:break-word;--calcite-label-margin-bottom: 0}.value{grid-column:2;font-weight:var(--calcite-font-weight-semibold);white-space:nowrap;align-self:center;justify-self:flex-end;font-variant-numeric:tabular-nums;&:has(~:empty){grid-column:span 2}~:empty{display:none}}.unit{font-weight:var(--calcite-font-weight-semibold);text-align:left}.actions{justify-content:center;gap:var(--arcgis-internal-panel-actions-gap);&[hidden]{display:none}}`;
10
- class m extends o {
9
+ const m = s`:host{--arcgis-internal-color-black-30: color-mix(in srgb, #000000 30.2%, transparent);--arcgis-internal-box-shadow: var(--calcite-spacing-none) var(--calcite-spacing-px) var(--calcite-spacing-base) var(--arcgis-internal-color-black-30);--arcgis-internal-top-max-width: calc(min(100cqw, 100vw) - var(--calcite-spacing-xxxl));--arcgis-internal-panel-width: 300px;--arcgis-internal-panel-height: 100%;--arcgis-internal-panel-height-sm: 240px;--arcgis-internal-panel-height-md: 420px;--arcgis-internal-panel-height-lg: 540px;--arcgis-internal-panel-height-xl: 680px;--arcgis-internal-panel-gap: var(--calcite-spacing-lg);--arcgis-internal-panel-actions-gap: var(--calcite-spacing-sm);--arcgis-internal-basemap-gallery-width-lg: 450px;--arcgis-internal-collapse-icon-flip: scaleX(1);--arcgis-internal-row-direction: row;--arcgis-internal-legend-width: 300px;--arcgis-internal-layout-overlay-space-top: var(--arcgis-layout-overlay-space-top, 0px);--arcgis-internal-layout-overlay-space-bottom: var(--arcgis-layout-overlay-space-bottom, 0px);--arcgis-internal-layout-overlay-space-left: var(--arcgis-layout-overlay-space-left, 0px);--arcgis-internal-layout-overlay-space-right: var(--arcgis-layout-overlay-space-right, 0px);--arcgis-internal-view-color-focus: var(--arcgis-view-color-focus, var(--calcite-color-brand));--arcgis-internal-attribution-space-bottom: var(--arcgis-internal-layout-overlay-space-bottom);--arcgis-internal-attribution-space-left: var(--arcgis-internal-layout-overlay-space-left);--arcgis-internal-attribution-space-right: var(--arcgis-internal-layout-overlay-space-right);--arcgis-internal-attribution-font-size: var(--calcite-font-size-sm);--arcgis-internal-attribution-font-size-sm: var(--calcite-font-size-xs);--arcgis-internal-sketch-justify-content: flex-start}:host,.hint,.error,.section,.actions,.item{display:flex;flex-direction:column;gap:var(--arcgis-internal-panel-gap);animation:esri-fade-in .25s ease-in-out}.error{color:var(--calcite-color-status-danger)}.error,.hint{overflow:hidden;p{margin:0;padding:0}}.results-grid{display:grid;column-gap:var(--calcite-spacing-xxs);row-gap:var(--calcite-spacing-md);grid-template-columns:auto minmax(0,1fr) max-content;&.vertical{display:flex;flex-direction:column;align-items:flex-start;.item{display:block}.title{margin-bottom:var(--calcite-spacing-xxs)}.value{align-self:flex-start}}}.item{display:contents;&.disabled>*{color:var(--calcite-color-text-1);opacity:var(--calcite-opacity-light)}}.title{grid-column:1;--calcite-label-margin-bottom: 0}.value{grid-column:2;font-weight:var(--calcite-font-weight-semibold);white-space:normal;min-width:0;max-width:100%;align-self:center;justify-self:flex-end;text-align:end;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;word-break:normal;text-wrap:pretty;&:has(~:empty){grid-column:span 2}~:empty{display:none}}.unit{font-weight:var(--calcite-font-weight-semibold);text-align:left;grid-column:3;align-self:center}.actions{justify-content:center;gap:var(--arcgis-internal-panel-actions-gap);&[hidden]{display:none}}`;
10
+ class p extends o {
11
11
  constructor() {
12
12
  super(...arguments), this._formatter = new c(), this._baseId = u(), this._hasActionsContent = !1, this.layout = "horizontal", this.items = [], this.state = "disabled", this.unsupportedLabel = "";
13
13
  }
@@ -15,7 +15,7 @@ class m extends o {
15
15
  this.properties = { _hasActionsContent: 16, hintLabel: 1, layout: 1, items: 0, state: 1, unsupportedLabel: 1 };
16
16
  }
17
17
  static {
18
- this.styles = p;
18
+ this.styles = m;
19
19
  }
20
20
  async load() {
21
21
  await this._formatter.when();
@@ -61,7 +61,7 @@ function v(t) {
61
61
  disabled: t.measurement.state !== "available"
62
62
  })}><calcite-label layout=inline class="title" .for=${t.valueId}>${t.title ?? ""}</calcite-label>${h({ value: a })}</div>`;
63
63
  }
64
- r("arcgis-measurement-content", m);
64
+ r("arcgis-measurement-content", p);
65
65
  export {
66
- m as ArcgisMeasurementContent
66
+ p as ArcgisMeasurementContent
67
67
  };