@arcgis/map-components 5.1.0-next.90 → 5.1.0-next.91

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 (138) hide show
  1. package/dist/cdn/2XVIUHZR.js +2 -0
  2. package/dist/cdn/3KMSE2II.js +2 -0
  3. package/dist/cdn/3TNGLWSM.js +2 -0
  4. package/dist/cdn/47GZDSBT.js +2 -0
  5. package/dist/cdn/{NIRIMR5R.js → 4HIVPFCR.js} +1 -1
  6. package/dist/cdn/4TLYAVND.js +2 -0
  7. package/dist/cdn/{IWGEVWTS.js → 57WQVTC2.js} +1 -1
  8. package/dist/cdn/636SD5YI.js +2 -0
  9. package/dist/cdn/63PP72KA.js +2 -0
  10. package/dist/cdn/77GYZHXQ.js +2 -0
  11. package/dist/cdn/{MMBRI6HV.js → B647LFEA.js} +1 -1
  12. package/dist/cdn/DMYT2NGU.js +2 -0
  13. package/dist/cdn/EMYF3NHI.js +2 -0
  14. package/dist/cdn/EQEMVJRY.js +2 -0
  15. package/dist/cdn/FHPU53JE.js +2 -0
  16. package/dist/cdn/G5JRWW4N.js +2 -0
  17. package/dist/cdn/GSIO2ZPC.js +2 -0
  18. package/dist/cdn/H54OQ5CH.js +2 -0
  19. package/dist/cdn/{NSZXPPXS.js → J6K64FAM.js} +1 -1
  20. package/dist/cdn/K26WS5WS.js +2 -0
  21. package/dist/cdn/K2DPIVNY.js +2 -0
  22. package/dist/cdn/LNKHXXYR.js +2 -0
  23. package/dist/cdn/LS5SUX5K.js +2 -0
  24. package/dist/cdn/{YOLLEFX2.js → QG5A5CAV.js} +1 -1
  25. package/dist/cdn/{TME6NCLA.js → QTDWVVZ3.js} +1 -1
  26. package/dist/cdn/{2LNLB4XY.js → RBZSSI26.js} +1 -1
  27. package/dist/cdn/RQ5AH3UV.js +2 -0
  28. package/dist/cdn/SOMOHX4W.js +2 -0
  29. package/dist/cdn/SVK455WD.js +2 -0
  30. package/dist/cdn/T5CHGHFY.js +2 -0
  31. package/dist/cdn/TBGGJL5S.js +2 -0
  32. package/dist/cdn/UEAC3ZX7.js +2 -0
  33. package/dist/cdn/{UFBJWJZO.js → UYUEVVYI.js} +1 -1
  34. package/dist/cdn/VWOPI2DX.js +2 -0
  35. package/dist/cdn/WMQ4C7GL.js +2 -0
  36. package/dist/cdn/XEZGNV3L.js +2 -0
  37. package/dist/cdn/XNZFVKZY.js +2 -0
  38. package/dist/cdn/XUKTPPFV.js +2 -0
  39. package/dist/cdn/ZYPAW3ZI.js +2 -0
  40. package/dist/cdn/assets/oriented-imagery-viewer-image-viewer/t9n/messages.ar.json +1 -0
  41. package/dist/cdn/assets/oriented-imagery-viewer-image-viewer/t9n/messages.bg.json +1 -0
  42. package/dist/cdn/assets/oriented-imagery-viewer-image-viewer/t9n/messages.bs.json +1 -0
  43. package/dist/cdn/assets/oriented-imagery-viewer-image-viewer/t9n/messages.ca.json +1 -0
  44. package/dist/cdn/assets/oriented-imagery-viewer-image-viewer/t9n/messages.cs.json +1 -0
  45. package/dist/cdn/assets/oriented-imagery-viewer-image-viewer/t9n/messages.da.json +1 -0
  46. package/dist/cdn/assets/oriented-imagery-viewer-image-viewer/t9n/messages.de.json +1 -0
  47. package/dist/cdn/assets/oriented-imagery-viewer-image-viewer/t9n/messages.el.json +1 -0
  48. package/dist/cdn/assets/oriented-imagery-viewer-image-viewer/t9n/messages.es.json +1 -0
  49. package/dist/cdn/assets/oriented-imagery-viewer-image-viewer/t9n/messages.et.json +1 -0
  50. package/dist/cdn/assets/oriented-imagery-viewer-image-viewer/t9n/messages.fi.json +1 -0
  51. package/dist/cdn/assets/oriented-imagery-viewer-image-viewer/t9n/messages.fr.json +1 -0
  52. package/dist/cdn/assets/oriented-imagery-viewer-image-viewer/t9n/messages.he.json +1 -0
  53. package/dist/cdn/assets/oriented-imagery-viewer-image-viewer/t9n/messages.hr.json +1 -0
  54. package/dist/cdn/assets/oriented-imagery-viewer-image-viewer/t9n/messages.hu.json +1 -0
  55. package/dist/cdn/assets/oriented-imagery-viewer-image-viewer/t9n/messages.id.json +1 -0
  56. package/dist/cdn/assets/oriented-imagery-viewer-image-viewer/t9n/messages.it.json +1 -0
  57. package/dist/cdn/assets/oriented-imagery-viewer-image-viewer/t9n/messages.ja.json +1 -0
  58. package/dist/cdn/assets/oriented-imagery-viewer-image-viewer/t9n/messages.ko.json +1 -0
  59. package/dist/cdn/assets/oriented-imagery-viewer-image-viewer/t9n/messages.lt.json +1 -0
  60. package/dist/cdn/assets/oriented-imagery-viewer-image-viewer/t9n/messages.lv.json +1 -0
  61. package/dist/cdn/assets/oriented-imagery-viewer-image-viewer/t9n/messages.nl.json +1 -0
  62. package/dist/cdn/assets/oriented-imagery-viewer-image-viewer/t9n/messages.no.json +1 -0
  63. package/dist/cdn/assets/oriented-imagery-viewer-image-viewer/t9n/messages.pl.json +1 -0
  64. package/dist/cdn/assets/oriented-imagery-viewer-image-viewer/t9n/messages.pt-BR.json +1 -0
  65. package/dist/cdn/assets/oriented-imagery-viewer-image-viewer/t9n/messages.pt-PT.json +1 -0
  66. package/dist/cdn/assets/oriented-imagery-viewer-image-viewer/t9n/messages.ro.json +1 -0
  67. package/dist/cdn/assets/oriented-imagery-viewer-image-viewer/t9n/messages.ru.json +1 -0
  68. package/dist/cdn/assets/oriented-imagery-viewer-image-viewer/t9n/messages.sk.json +1 -0
  69. package/dist/cdn/assets/oriented-imagery-viewer-image-viewer/t9n/messages.sl.json +1 -0
  70. package/dist/cdn/assets/oriented-imagery-viewer-image-viewer/t9n/messages.sr.json +1 -0
  71. package/dist/cdn/assets/oriented-imagery-viewer-image-viewer/t9n/messages.sv.json +1 -0
  72. package/dist/cdn/assets/oriented-imagery-viewer-image-viewer/t9n/messages.th.json +1 -0
  73. package/dist/cdn/assets/oriented-imagery-viewer-image-viewer/t9n/messages.tr.json +1 -0
  74. package/dist/cdn/assets/oriented-imagery-viewer-image-viewer/t9n/messages.uk.json +1 -0
  75. package/dist/cdn/assets/oriented-imagery-viewer-image-viewer/t9n/messages.vi.json +1 -0
  76. package/dist/cdn/assets/oriented-imagery-viewer-image-viewer/t9n/messages.zh-CN.json +1 -0
  77. package/dist/cdn/assets/oriented-imagery-viewer-image-viewer/t9n/messages.zh-HK.json +1 -0
  78. package/dist/cdn/assets/oriented-imagery-viewer-image-viewer/t9n/messages.zh-TW.json +1 -0
  79. package/dist/cdn/index.js +1 -1
  80. package/dist/chunks/GeolocationPositioning.js +397 -0
  81. package/dist/chunks/action-utils.js +6 -9
  82. package/dist/chunks/resources.js +18 -5
  83. package/dist/chunks/slots.js +11 -9
  84. package/dist/components/arcgis-compass/customElement.js +5 -5
  85. package/dist/components/arcgis-feature-table/customElement.d.ts +68 -11
  86. package/dist/components/arcgis-feature-table/customElement.js +6 -6
  87. package/dist/components/arcgis-fullscreen/customElement.js +9 -9
  88. package/dist/components/arcgis-home/customElement.js +10 -10
  89. package/dist/components/arcgis-locate/customElement.js +97 -484
  90. package/dist/components/arcgis-navigation-toggle/customElement.js +7 -7
  91. package/dist/components/arcgis-presentation/customElement.js +63 -57
  92. package/dist/components/arcgis-track/customElement.d.ts +18 -11
  93. package/dist/components/arcgis-track/customElement.js +139 -19
  94. package/dist/components/arcgis-track/types.d.ts +15 -0
  95. package/dist/components/arcgis-utility-network-trace-analysis/customElement.js +25 -24
  96. package/dist/components/arcgis-utility-network-trace-inputs/customElement.js +29 -33
  97. package/dist/components/arcgis-zoom/customElement.js +1 -1
  98. package/dist/docs/api.json +1 -1
  99. package/dist/docs/docs.json +1 -1
  100. package/dist/docs/vscode.html-custom-data.json +1 -1
  101. package/dist/docs/web-types.json +1 -1
  102. package/dist/loader.js +2 -2
  103. package/dist/support/resources.d.ts +2 -0
  104. package/dist/types/lumina.d.ts +2 -2
  105. package/dist/types/preact.d.ts +2 -2
  106. package/dist/types/react.d.ts +2 -2
  107. package/dist/types/stencil.d.ts +2 -2
  108. package/package.json +4 -4
  109. package/dist/cdn/2OMOYS3B.js +0 -2
  110. package/dist/cdn/3Y5E26OU.js +0 -2
  111. package/dist/cdn/3YHIONOM.js +0 -2
  112. package/dist/cdn/3YVU66DR.js +0 -2
  113. package/dist/cdn/5BKXAZGJ.js +0 -2
  114. package/dist/cdn/6BESCJK6.js +0 -2
  115. package/dist/cdn/AOKQLNNK.js +0 -2
  116. package/dist/cdn/BBIOP3C4.js +0 -2
  117. package/dist/cdn/BLH76V4B.js +0 -2
  118. package/dist/cdn/BQPSXTIF.js +0 -2
  119. package/dist/cdn/CUYGLJRU.js +0 -2
  120. package/dist/cdn/FIOFLICP.js +0 -2
  121. package/dist/cdn/GKVKQU57.js +0 -2
  122. package/dist/cdn/GPMDFKYC.js +0 -2
  123. package/dist/cdn/IFMQCWXY.js +0 -2
  124. package/dist/cdn/IRXWDEBR.js +0 -2
  125. package/dist/cdn/JHRFJTE4.js +0 -2
  126. package/dist/cdn/JWYAOQXS.js +0 -2
  127. package/dist/cdn/KIFOQG3B.js +0 -2
  128. package/dist/cdn/MTIB3TBG.js +0 -2
  129. package/dist/cdn/NFRJBN5U.js +0 -2
  130. package/dist/cdn/NUNGBEW4.js +0 -2
  131. package/dist/cdn/NVRFQSZB.js +0 -2
  132. package/dist/cdn/PNS6E574.js +0 -2
  133. package/dist/cdn/PSIEACM5.js +0 -2
  134. package/dist/cdn/QLTX4J5N.js +0 -2
  135. package/dist/cdn/SPGWCKQB.js +0 -2
  136. package/dist/cdn/THXCDBHG.js +0 -2
  137. package/dist/cdn/XF7T7NTL.js +0 -2
  138. package/dist/cdn/ZDGTAZF7.js +0 -2
@@ -1,435 +1,48 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import { c as G } from "../../chunks/runtime.js";
3
- import { css as z, html as g } from "lit";
4
- import { usePropertyChange as F } from "@arcgis/lumina/controllers";
5
- import { classes as j } from "@arcgis/toolkit/dom";
6
- import { watch as y } from "@arcgis/core/core/reactiveUtils.js";
7
- import { LitElement as k, createEvent as f, safeClassMap as w, nothing as Q } from "@arcgis/lumina";
8
- import { u as V } from "../../chunks/useT9n.js";
9
- import { createRef as H, ref as K } from "lit/directives/ref.js";
10
- import { m as B } from "../../chunks/useViewModel.js";
11
- import { l as J } from "../../chunks/legacyIcon.js";
12
- import { property as n, subclass as C } from "@arcgis/core/core/accessorSupport/decorators.js";
13
- import u from "@arcgis/core/core/Error.js";
14
- import { onLocaleChange as q } from "@arcgis/core/intl.js";
15
- import W from "@arcgis/core/PopupTemplate.js";
16
- import X from "@arcgis/core/support/actions/ActionButton.js";
17
- import { t as Z, i as M } from "../../chunks/async-utils.js";
18
- import Y from "@arcgis/core/core/Accessor.js";
19
- import T from "@arcgis/core/Graphic.js";
20
- import $ from "@arcgis/core/symbols/CIMSymbol.js";
21
- import ee from "@arcgis/core/geometry/Point.js";
22
- import * as b from "@arcgis/core/geometry/operators/projectOperator.js";
23
- import A from "@arcgis/core/config.js";
24
- import { geographicToWebMercator as te } from "@arcgis/core/geometry/support/webMercatorUtils.js";
25
- import oe from "@arcgis/core/portal/Portal.js";
26
- import { project as ie } from "@arcgis/core/rest/geometryService.js";
27
- import re from "@arcgis/core/rest/support/ProjectParameters.js";
28
- import { log as O } from "@arcgis/toolkit/log";
29
- import { g as P } from "../../chunks/globalCss.js";
30
- const ae = z`.arcgis-button{--calcite-icon-color: var(--calcite-color-text-3);--calcite-button-background-color: var(--calcite-color-foreground-1);color:var(--calcite-color-text-3);line-height:var(--calcite-font-line-height-relative-tight);display:flex;flex-flow:column;cursor:pointer;background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);:hover{--calcite-icon-color: var(--calcite-color-text-1);--calcite-button-background-color: var(--calcite-color-transparent-hover)}}:host{width:fit-content;height:fit-content}`;
31
- let E = !1;
32
- const se = {
33
- maximumAge: 0,
34
- timeout: 15e3,
35
- enableHighAccuracy: !0
2
+ import { c as w } from "../../chunks/runtime.js";
3
+ import { css as y, html as p } from "lit";
4
+ import { usePropertyChange as E } from "@arcgis/lumina/controllers";
5
+ import { classes as _ } from "@arcgis/toolkit/dom";
6
+ import { watch as u } from "@arcgis/core/core/reactiveUtils.js";
7
+ import { LitElement as C, createEvent as d, safeClassMap as m, nothing as P } from "@arcgis/lumina";
8
+ import { u as M } from "../../chunks/useT9n.js";
9
+ import { createRef as T, ref as O } from "lit/directives/ref.js";
10
+ import { m as L } from "../../chunks/useViewModel.js";
11
+ import { l as S } from "../../chunks/legacyIcon.js";
12
+ import { property as c, subclass as $ } from "@arcgis/core/core/accessorSupport/decorators.js";
13
+ import f from "@arcgis/core/core/Error.js";
14
+ import { onLocaleChange as D } from "@arcgis/core/intl.js";
15
+ import N from "@arcgis/core/PopupTemplate.js";
16
+ import x from "@arcgis/core/support/actions/ActionButton.js";
17
+ import { i as G } from "../../chunks/async-utils.js";
18
+ import { G as I, g as A } from "../../chunks/GeolocationPositioning.js";
19
+ import { g } from "../../chunks/globalCss.js";
20
+ const B = y`.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}`;
21
+ var z = Object.defineProperty, V = Object.getOwnPropertyDescriptor, s = (e, t, o, a) => {
22
+ for (var i = a > 1 ? void 0 : a ? V(t, o) : t, l = e.length - 1, n; l >= 0; l--)
23
+ (n = e[l]) && (i = (a ? n(t, o, i) : n(i)) || i);
24
+ return a && i && z(t, o, i), i;
36
25
  };
37
- function ne(t) {
38
- const e = "geolocation" in navigator;
39
- return e || O("warn", t, "Geolocation is not supported by this browser."), e;
40
- }
41
- function ce(t) {
42
- const e = window.isSecureContext;
43
- return e || E || (E = !0, O("warn", t, "Geolocation requires a secure origin.")), e;
44
- }
45
- function le(t) {
46
- return ne(t) && ce(t);
47
- }
48
- function pe(t) {
49
- return t ??= se, new Promise((o, r) => {
50
- setTimeout(
51
- () => r(new u("geolocation:timeout", "getting the current geolocation position timed out")),
52
- t?.timeout ?? 15e3
53
- ), navigator.geolocation.getCurrentPosition(o, r, t ?? void 0);
54
- });
55
- }
56
- function de(t, e) {
57
- const { position: o, view: r } = t, a = ue(o)?.coords;
58
- if (!a)
59
- throw new u("geometry-service:no-coords", "Geolocation has no coordinates");
60
- const s = he(a);
61
- return me(s, r, e);
62
- }
63
- function ue(t) {
64
- const e = t?.coords || {}, o = {
65
- accuracy: e.accuracy,
66
- altitude: e.altitude,
67
- altitudeAccuracy: e.altitudeAccuracy,
68
- heading: e.heading,
69
- latitude: e.latitude,
70
- longitude: e.longitude,
71
- speed: e.speed,
72
- toJSON() {
73
- return {};
74
- }
75
- };
76
- return t && {
77
- coords: o,
78
- timestamp: t.timestamp,
79
- toJSON() {
80
- return {};
81
- }
82
- };
83
- }
84
- function he({ longitude: t, latitude: e, altitude: o }) {
85
- return new ee({
86
- longitude: t,
87
- latitude: e,
88
- z: o || void 0,
89
- spatialReference: {
90
- wkid: 4326
91
- }
92
- });
93
- }
94
- async function me(t, e, o) {
95
- if (!e)
96
- return await Promise.resolve(t);
97
- const r = e.spatialReference;
98
- return r.isWGS84 ? await Promise.resolve(t) : r.isWebMercator ? await Promise.resolve(te(t)) : b.isLoaded() ? await Promise.resolve(b.execute(t, r)) : await ge(o).then(async (i) => {
99
- if (!i)
100
- throw new u("geometry-service:missing-url", "Geometry service URL is missing");
101
- const a = new re({
102
- geometries: [t],
103
- outSpatialReference: r
104
- });
105
- return (await ie(i, a, o))[0];
106
- });
107
- }
108
- async function ge(t) {
109
- if (A.geometryServiceUrl)
110
- return await Promise.resolve(A.geometryServiceUrl);
111
- const e = oe.getDefault();
112
- try {
113
- await e.load(t);
114
- } catch {
115
- }
116
- return e.helperServices?.geometry?.url;
117
- }
118
- var fe = Object.defineProperty, ye = Object.getOwnPropertyDescriptor, p = (t, e, o, r) => {
119
- for (var i = r > 1 ? void 0 : r ? ye(e, o) : e, a = t.length - 1, s; a >= 0; a--)
120
- (s = t[a]) && (i = (r ? s(e, o, i) : s(i)) || i);
121
- return r && i && fe(e, o, i), i;
122
- };
123
- const ve = 2500;
124
- function L(t) {
125
- const e = {
126
- type: "CIMVectorMarker",
127
- enable: !0,
128
- anchorPoint: {
129
- x: 0,
130
- y: 0
131
- },
132
- anchorPointUnits: "Relative",
133
- dominantSizeAxis3D: "Y",
134
- size: t === "background" ? 16 : 14,
135
- billboardMode3D: "FaceNearPlane",
136
- frame: {
137
- xmin: 0,
138
- ymin: 0,
139
- xmax: 17,
140
- ymax: 17
141
- },
142
- markerGraphics: [
143
- {
144
- type: "CIMMarkerGraphic",
145
- geometry: {
146
- rings: [
147
- [
148
- [8.5, 0],
149
- [7.02, 0.13],
150
- [5.59, 0.51],
151
- [4.25, 1.14],
152
- [3.04, 1.99],
153
- [1.99, 3.04],
154
- [1.14, 4.25],
155
- [0.51, 5.59],
156
- [0.13, 7.02],
157
- [0, 8.5],
158
- [0.13, 9.98],
159
- [0.51, 11.41],
160
- [1.14, 12.75],
161
- [1.99, 13.96],
162
- [3.04, 15.01],
163
- [4.25, 15.86],
164
- [5.59, 16.49],
165
- [7.02, 16.87],
166
- [8.5, 17],
167
- [9.98, 16.87],
168
- [11.41, 16.49],
169
- [12.75, 15.86],
170
- [13.96, 15.01],
171
- [15.01, 13.96],
172
- [15.86, 12.75],
173
- [16.49, 11.41],
174
- [16.87, 9.98],
175
- [17, 8.5],
176
- [16.87, 7.02],
177
- [16.49, 5.59],
178
- [15.86, 4.25],
179
- [15.01, 3.04],
180
- [13.96, 1.99],
181
- [12.75, 1.14],
182
- [11.41, 0.51],
183
- [9.98, 0.13],
184
- [8.5, 0]
185
- ]
186
- ]
187
- },
188
- symbol: {
189
- type: "CIMPolygonSymbol",
190
- symbolLayers: [
191
- {
192
- type: "CIMSolidStroke",
193
- enable: !0,
194
- capStyle: "Round",
195
- joinStyle: "Round",
196
- lineStyle3D: "Strip",
197
- miterLimit: 10,
198
- width: t === "background" ? 0 : 2,
199
- color: [255, 255, 255, 255]
200
- },
201
- {
202
- type: "CIMSolidFill",
203
- enable: !0,
204
- color: t === "background" ? [0, 0, 0, 66] : [0, 122, 194, 255]
205
- }
206
- ]
207
- }
208
- }
209
- ],
210
- scaleSymbolsProportionally: !0,
211
- respectFrame: !0
212
- };
213
- return t === "background" && (e.offsetX = 0, e.offsetY = -1), e;
214
- }
215
- const N = {
216
- type: "CIMPictureMarker",
217
- primitiveName: "headingOverride",
218
- enable: !0,
219
- anchorPoint: {
220
- x: 0,
221
- y: -0.5
222
- },
223
- anchorPointUnits: "Relative",
224
- dominantSizeAxis3D: "Y",
225
- size: 36,
226
- billboardMode3D: "FaceNearPlane",
227
- invertBackfaceTexture: !0,
228
- scaleX: 1,
229
- textureFilter: "Picture",
230
- url: "data:image/png;base64,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"
231
- }, we = L("layer"), be = L("background"), Ae = new $({
232
- data: {
233
- type: "CIMSymbolReference",
234
- symbol: {
235
- type: "CIMPointSymbol",
236
- symbolLayers: [we, be, N],
237
- angleAlignment: "Map"
238
- },
239
- primitiveOverrides: [
240
- {
241
- type: "CIMPrimitiveOverride",
242
- primitiveName: "headingOverride",
243
- propertyName: "Rotation",
244
- valueExpressionInfo: {
245
- type: "CIMExpressionInfo",
246
- title: "Rotation override",
247
- expression: "360 - $feature.heading",
248
- returnType: "Default"
249
- }
250
- },
251
- {
252
- type: "CIMPrimitiveOverride",
253
- primitiveName: "headingOverride",
254
- propertyName: "TintColor",
255
- valueExpressionInfo: {
256
- type: "CIMExpressionInfo",
257
- title: "TintColor override",
258
- expression: "IIF(IsEmpty($feature.heading), [255, 255, 255, 0], [255, 255, 255, 1])",
259
- returnType: "Default"
260
- }
261
- }
262
- ]
263
- }
264
- });
265
- let c = class extends Y {
266
- constructor() {
267
- super(...arguments), this._geolocationUsable = !0, this.goToLocationEnabled = !0, this.graphic = new T({
268
- symbol: Ae
269
- }), this.rotationEnabled = !0;
270
- }
271
- //#region Lifecycle
272
- initialize() {
273
- le(this) || (this._geolocationUsable = !1), this.addHandles([
274
- y(
275
- () => this.view?.type,
276
- () => this._handleViewTypeChange(),
277
- {
278
- initial: !0
279
- }
280
- )
281
- ]);
282
- }
283
- destroy() {
284
- this._clearGraphic(), this.view = void 0;
285
- }
286
- //#endregion
287
- //#region Private Methods
288
- /**
289
- * Clears the locate graphic from the view.
290
- */
291
- _clearGraphic() {
292
- const { view: t, graphic: e } = this;
293
- t && e && t.graphics.remove(e);
294
- }
295
- /**
296
- * Adds the graphic to the view.
297
- */
298
- _addGraphic() {
299
- const { view: t, graphic: e } = this;
300
- !t?.graphics || !e || t.graphics.includes(e) || t.graphics.push(e);
301
- }
302
- _handleViewTypeChange() {
303
- N.enable = this.view?.type === "2d";
304
- }
305
- _getScaleWithinConstraints(t, e) {
306
- if (!e)
307
- return t;
308
- if (e.type === "2d") {
309
- const { effectiveMaxScale: o, effectiveMinScale: r } = e.constraints;
310
- return Math.min(r, Math.max(o, t));
311
- }
312
- return t;
313
- }
314
- _getScale(t) {
315
- const { scale: e } = this, o = typeof e == "number" ? e : ve;
316
- return this._getScaleWithinConstraints(o, t);
317
- }
318
- _getHeading(t, e) {
319
- const o = e?.spatialReference, r = o?.isWebMercator || o?.isGeographic, i = t.coords?.heading;
320
- return !r || typeof i != "number" || Number.isNaN(i) || i < 0 || i > 360 ? null : i;
321
- }
322
- _addHeading(t) {
323
- const { heading: e, target: o, view: r } = t;
324
- if (!(!r || e === null)) {
325
- if (r.type === "3d") {
326
- o.heading = e;
327
- return;
328
- }
329
- r.type === "2d" && (o.rotation = 360 - e);
330
- }
331
- }
332
- async _animatePoint(t, e, o, r) {
333
- const { view: i } = this;
334
- if (!this.goToLocationEnabled || !i)
335
- return;
336
- const a = {
337
- target: t,
338
- scale: e
339
- };
340
- this.rotationEnabled && this._addHeading({
341
- heading: o,
342
- target: a,
343
- view: i
344
- });
345
- const s = { signal: r.signal };
346
- if (Z(s), this.goToOverride && i)
347
- return await this.goToOverride(i, {
348
- target: a,
349
- options: s
350
- });
351
- await i.goTo(a, s);
352
- }
353
- async updatePosition(t, e) {
354
- try {
355
- const o = this.view, r = await de({ position: t, view: o }, { signal: e.signal }), { graphic: i } = this, { timestamp: a, coords: s } = t, { accuracy: m, altitude: h, altitudeAccuracy: x, latitude: D, longitude: _, speed: R } = s, v = this._getHeading(t, o), U = {
356
- timestamp: a,
357
- accuracy: m,
358
- altitude: h,
359
- altitudeAccuracy: x,
360
- heading: v,
361
- latitude: D,
362
- longitude: _,
363
- speed: R
364
- };
365
- i && (i.geometry = r, i.attributes = U);
366
- const I = this._getScale(o);
367
- await this._animatePoint(r, I, v, e);
368
- } catch (o) {
369
- if (!M(o))
370
- throw new u("geolocation-positioning:invalid-point", "Cannot position invalid point", {
371
- error: o
372
- });
373
- }
374
- return t;
375
- }
376
- //#endregion
377
- };
378
- p([
379
- n()
380
- ], c.prototype, "_geolocationUsable", 2);
381
- p([
382
- n()
383
- ], c.prototype, "geolocationOptions", 2);
384
- p([
385
- n()
386
- ], c.prototype, "goToLocationEnabled", 2);
387
- p([
388
- n()
389
- ], c.prototype, "goToOverride", 2);
390
- p([
391
- n({
392
- type: T
393
- })
394
- ], c.prototype, "graphic", 2);
395
- p([
396
- n()
397
- ], c.prototype, "scale", 2);
398
- p([
399
- n()
400
- ], c.prototype, "rotationEnabled", 2);
401
- p([
402
- n()
403
- ], c.prototype, "view", 2);
404
- c = p([
405
- C("map-components.geolocation.GeolocationPositioning")
406
- ], c);
407
- const Pe = c;
408
- var Ee = Object.defineProperty, Se = Object.getOwnPropertyDescriptor, d = (t, e, o, r) => {
409
- for (var i = r > 1 ? void 0 : r ? Se(e, o) : e, a = t.length - 1, s; a >= 0; a--)
410
- (s = t[a]) && (i = (r ? s(e, o, i) : s(i)) || i);
411
- return r && i && Ee(e, o, i), i;
412
- };
413
- const Ce = new X({
26
+ const R = new x({
414
27
  icon: "trash",
415
28
  id: "remove-selected-feature",
416
29
  title: "{messages.remove}"
417
30
  // eslint-disable-next-line @typescript-eslint/no-deprecated
418
31
  })._internalSetClassName("esri-icon-trash");
419
- function Me(t) {
420
- return new W({
421
- title: t.currentLocation,
32
+ function U(e) {
33
+ return new N({
34
+ title: e.currentLocation,
422
35
  fieldInfos: [
423
36
  {
424
37
  fieldName: "timestamp",
425
- label: t.timestamp,
38
+ label: e.timestamp,
426
39
  format: {
427
40
  dateFormat: "short-date-short-time"
428
41
  }
429
42
  },
430
43
  {
431
44
  fieldName: "latitude",
432
- label: t.latitude,
45
+ label: e.latitude,
433
46
  format: {
434
47
  places: 4,
435
48
  digitSeparator: !0
@@ -437,7 +50,7 @@ function Me(t) {
437
50
  },
438
51
  {
439
52
  fieldName: "longitude",
440
- label: t.longitude,
53
+ label: e.longitude,
441
54
  format: {
442
55
  places: 4,
443
56
  digitSeparator: !0
@@ -445,7 +58,7 @@ function Me(t) {
445
58
  },
446
59
  {
447
60
  fieldName: "accuracy",
448
- label: t.accuracy,
61
+ label: e.accuracy,
449
62
  format: {
450
63
  places: 0,
451
64
  digitSeparator: !0
@@ -453,7 +66,7 @@ function Me(t) {
453
66
  },
454
67
  {
455
68
  fieldName: "altitude",
456
- label: t.altitude,
69
+ label: e.altitude,
457
70
  format: {
458
71
  places: 0,
459
72
  digitSeparator: !0
@@ -461,7 +74,7 @@ function Me(t) {
461
74
  },
462
75
  {
463
76
  fieldName: "altitudeAccuracy",
464
- label: t.altitudeAccuracy,
77
+ label: e.altitudeAccuracy,
465
78
  format: {
466
79
  places: 0,
467
80
  digitSeparator: !0
@@ -469,7 +82,7 @@ function Me(t) {
469
82
  },
470
83
  {
471
84
  fieldName: "heading",
472
- label: t.heading,
85
+ label: e.heading,
473
86
  format: {
474
87
  places: 0,
475
88
  digitSeparator: !0
@@ -477,14 +90,14 @@ function Me(t) {
477
90
  },
478
91
  {
479
92
  fieldName: "speed",
480
- label: t.speed,
93
+ label: e.speed,
481
94
  format: {
482
95
  places: 0,
483
96
  digitSeparator: !0
484
97
  }
485
98
  }
486
99
  ],
487
- actions: [Ce.clone()],
100
+ actions: [R.clone()],
488
101
  content: [
489
102
  {
490
103
  type: "fields"
@@ -492,18 +105,18 @@ function Me(t) {
492
105
  ]
493
106
  });
494
107
  }
495
- let l = class extends Pe {
108
+ let r = class extends I {
496
109
  //#region Lifecycle
497
- constructor(t) {
498
- super(t), this._getCurrentPosition = pe, this.popupEnabled = !0, this.locate = this.locate.bind(this);
110
+ constructor(e) {
111
+ super(e), this._getCurrentPosition = A, this.popupEnabled = !0, this.locate = this.locate.bind(this);
499
112
  }
500
113
  initialize() {
501
114
  this.addHandles([
502
- q(() => {
503
- const { graphic: t, view: e } = this;
504
- if (!t)
115
+ D(() => {
116
+ const { graphic: e, view: t } = this;
117
+ if (!e)
505
118
  return;
506
- e?.graphics?.includes(t) && this._updatePopupTemplate(t);
119
+ t?.graphics?.includes(e) && this._updatePopupTemplate(e);
507
120
  })
508
121
  ]);
509
122
  }
@@ -517,21 +130,21 @@ let l = class extends Pe {
517
130
  //#region Public Methods
518
131
  async locate() {
519
132
  if (this.cancelLocate(), this.state === "disabled")
520
- throw new u("locate:disabled-state", "Cannot locate when disabled.");
133
+ throw new f("locate:disabled-state", "Cannot locate when disabled.");
521
134
  if (this.state === "feature-unsupported")
522
- throw new u("locate:feature-unsupported-state", "Cannot locate in unsecure domain.");
523
- const t = new AbortController();
524
- this._locateController = t, this.error = void 0;
135
+ throw new f("locate:feature-unsupported-state", "Cannot locate in unsecure domain.");
136
+ const e = new AbortController();
137
+ this._locateController = e, this.error = void 0;
525
138
  try {
526
- const e = await this._getCurrentPosition(this.geolocationOptions);
527
- if (await this.updatePosition(e, t), this._locateController !== t)
139
+ const t = await this._getCurrentPosition(this.geolocationOptions);
140
+ if (await this.updatePosition(t, e), this._locateController !== e)
528
141
  return null;
529
142
  const { graphic: o } = this;
530
- return o && this._updatePopupTemplate(o), this._addGraphic(), this.currentPosition = e, this._locateController = void 0, e;
531
- } catch (e) {
532
- if (M(e))
143
+ return o && this._updatePopupTemplate(o), this._addGraphic(), this.currentPosition = t, this._locateController = void 0, t;
144
+ } catch (t) {
145
+ if (G(t))
533
146
  return null;
534
- throw t === this._locateController && (this._locateController = void 0), this.error = e, e;
147
+ throw e === this._locateController && (this._locateController = void 0), this.error = t, t;
535
148
  }
536
149
  }
537
150
  cancelLocate() {
@@ -539,47 +152,47 @@ let l = class extends Pe {
539
152
  }
540
153
  //#endregion
541
154
  //#region Private Methods
542
- _updatePopupTemplate(t) {
155
+ _updatePopupTemplate(e) {
543
156
  if (!this.popupEnabled)
544
157
  return;
545
- const e = Me(this.messages), o = t !== this.graphic;
546
- this.destroyed || o || (t.popupTemplate = e);
158
+ const t = U(this.messages), o = e !== this.graphic;
159
+ this.destroyed || o || (e.popupTemplate = t);
547
160
  }
548
161
  //#endregion
549
162
  };
550
- d([
551
- n()
552
- ], l.prototype, "_locateController", 2);
553
- d([
554
- n()
555
- ], l.prototype, "currentPosition", 2);
556
- d([
557
- n()
558
- ], l.prototype, "error", 2);
559
- d([
560
- n()
561
- ], l.prototype, "messages", 2);
562
- d([
563
- n()
564
- ], l.prototype, "popupEnabled", 2);
565
- d([
566
- n({ readOnly: !0 })
567
- ], l.prototype, "state", 1);
568
- l = d([
569
- C("map-components.locate.LocateViewModel")
570
- ], l);
571
- const S = "gps-off", Te = B(l);
572
- class Oe extends k {
163
+ s([
164
+ c()
165
+ ], r.prototype, "_locateController", 2);
166
+ s([
167
+ c()
168
+ ], r.prototype, "currentPosition", 2);
169
+ s([
170
+ c()
171
+ ], r.prototype, "error", 2);
172
+ s([
173
+ c()
174
+ ], r.prototype, "messages", 2);
175
+ s([
176
+ c()
177
+ ], r.prototype, "popupEnabled", 2);
178
+ s([
179
+ c({ readOnly: !0 })
180
+ ], r.prototype, "state", 1);
181
+ r = s([
182
+ $("map-components.locate.LocateViewModel")
183
+ ], r);
184
+ const v = "gps-off", j = L(r);
185
+ class k extends C {
573
186
  constructor() {
574
- super(), this.locateButtonElement = H(), this.messages = V(), this.viewModel = Te(this), this.hideErrorTooltip = () => {
187
+ super(), this.locateButtonElement = T(), this.messages = M(), this.viewModel = j(this), this.hideErrorTooltip = () => {
575
188
  this.isErrorTooltipOpen = !1;
576
- }, 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 = S, this.popupDisabled = this.viewModel.popupEnabled, this.scale = this.viewModel.scale, this.state = this.viewModel.state, this.visualScale = "m", this.arcgisError = f(), this.arcgisPropertyChange = F()("state"), this.arcgisReady = f(), this.arcgisSuccess = f(), this.listenOn(document, "click", this.hideErrorTooltip);
189
+ }, 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 = v, this.popupDisabled = this.viewModel.popupEnabled, this.scale = this.viewModel.scale, this.state = this.viewModel.state, this.visualScale = "m", this.arcgisError = d(), this.arcgisPropertyChange = E()("state"), this.arcgisReady = d(), this.arcgisSuccess = d(), this.listenOn(document, "click", this.hideErrorTooltip);
577
190
  }
578
191
  static {
579
192
  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 };
580
193
  }
581
194
  static {
582
- this.styles = ae;
195
+ this.styles = B;
583
196
  }
584
197
  async cancelLocate() {
585
198
  this.viewModel.cancelLocate();
@@ -592,31 +205,31 @@ class Oe extends k {
592
205
  }
593
206
  loaded() {
594
207
  this.viewModel.messages = { ...this.messages, ...this.messageOverrides }, this.manager.onLifecycle(() => [
595
- y(() => this.viewModel.error, (e) => {
596
- this.isErrorTooltipOpen = !!e, this.arcgisError.emit({ error: e });
208
+ u(() => this.viewModel.error, (t) => {
209
+ this.isErrorTooltipOpen = !!t, this.arcgisError.emit({ error: t });
597
210
  }),
598
- y(() => this.viewModel.currentPosition, (e) => {
599
- this.arcgisSuccess.emit({ position: e });
211
+ u(() => this.viewModel.currentPosition, (t) => {
212
+ this.arcgisSuccess.emit({ position: t });
600
213
  })
601
214
  ]);
602
215
  }
603
- _localizeError(e) {
604
- if (e instanceof GeolocationPositionError)
605
- return e.code === GeolocationPositionError.PERMISSION_DENIED ? this.messages?.permissionError : e.code === GeolocationPositionError.TIMEOUT ? this.messages?.timeoutError : this.messages?.positionUnavailable;
606
- if (e instanceof Error)
607
- return e.message;
216
+ _localizeError(t) {
217
+ if (t instanceof GeolocationPositionError)
218
+ return t.code === GeolocationPositionError.PERMISSION_DENIED ? this.messages?.permissionError : t.code === GeolocationPositionError.TIMEOUT ? this.messages?.timeoutError : this.messages?.positionUnavailable;
219
+ if (t instanceof Error)
220
+ return t.message;
608
221
  }
609
222
  _locate() {
610
- const { viewModel: e } = this;
611
- e.state === "locating" ? e.cancelLocate() : e.locate().catch(() => {
223
+ const { viewModel: t } = this;
224
+ t.state === "locating" ? t.cancelLocate() : t.locate().catch(() => {
612
225
  });
613
226
  }
614
227
  render() {
615
- const { viewModel: e, icon: o } = this, { state: r } = e, i = r === "locating", a = i ? this.messages.cancel : this.messages.title, s = r === "feature-unsupported", m = J === void 0 ? S : void 0, h = this._localizeError(this.viewModel?.error);
616
- return g`<div class=${w(j("root", P.arcgisButton))}>${!s && g`<calcite-button class=${w(P.widgetButton)} .disabled=${r === "disabled"} .loading=${i} .iconStart=${i ? void 0 : o ?? m} kind=neutral .label=${a} @click=${this._locate} .scale=${this.visualScale} title=${a ?? Q} ${K(this.locateButtonElement)}></calcite-button>` || ""}${h ? g`<calcite-tooltip .open=${this.isErrorTooltipOpen} overlay-positioning=fixed .referenceElement=${this.locateButtonElement.value}>${h}</calcite-tooltip>` : null}</div>`;
228
+ const { viewModel: t, icon: o } = this, { state: a } = t, i = a === "locating", l = i ? this.messages.cancel : this.messages.title, n = a === "feature-unsupported", b = S === void 0 ? v : void 0, h = this._localizeError(this.viewModel?.error);
229
+ return p`<div class=${m(_("root", g.arcgisButton))}>${!n && p`<calcite-button class=${m(g.widgetButton)} .disabled=${a === "disabled"} .loading=${i} .iconStart=${i ? void 0 : o ?? b} kind=neutral .label=${l} @click=${this._locate} .scale=${this.visualScale} title=${l ?? P} ${O(this.locateButtonElement)}></calcite-button>` || ""}${h ? p`<calcite-tooltip .open=${this.isErrorTooltipOpen} overlay-positioning=fixed .referenceElement=${this.locateButtonElement.value}>${h}</calcite-tooltip>` : null}</div>`;
617
230
  }
618
231
  }
619
- G("arcgis-locate", Oe);
232
+ w("arcgis-locate", k);
620
233
  export {
621
- Oe as ArcgisLocate
234
+ k as ArcgisLocate
622
235
  };