@arcgis/map-components 5.2.0-next.93 → 5.2.0-next.94

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 (61) hide show
  1. package/dist/cdn/{RJSJ53UD.js → 2S3PMUG2.js} +1 -1
  2. package/dist/cdn/2Z6FVTKT.js +2 -0
  3. package/dist/cdn/{DDGANMOY.js → 3FEDJ3XZ.js} +1 -1
  4. package/dist/cdn/3MZKVY6A.js +2 -0
  5. package/dist/cdn/{IORWRMMG.js → 3ZRONF3M.js} +1 -1
  6. package/dist/cdn/5A6MVUCS.js +3 -0
  7. package/dist/cdn/{DCGOOUOL.js → 5QVEXW3X.js} +1 -1
  8. package/dist/cdn/{KX3XJGXZ.js → 76XDS6TG.js} +1 -1
  9. package/dist/cdn/7N4V2IN6.js +2 -0
  10. package/dist/cdn/BKC42MLS.js +2 -0
  11. package/dist/cdn/{BSLVN2NW.js → DEH55KP3.js} +1 -1
  12. package/dist/cdn/DKP73IZU.js +2 -0
  13. package/dist/cdn/ISX6CEA3.js +2 -0
  14. package/dist/cdn/JZHBJAXX.js +2 -0
  15. package/dist/cdn/{DMFYRFSD.js → NHU5Q4AZ.js} +1 -1
  16. package/dist/cdn/O3G7XPDI.js +2 -0
  17. package/dist/cdn/{35VRWQWE.js → O45XRDXJ.js} +1 -1
  18. package/dist/cdn/{FD7U6V53.js → UNOCR34T.js} +1 -1
  19. package/dist/cdn/{R6ZUE6GP.js → VURES5AT.js} +1 -1
  20. package/dist/cdn/assets/utility-network-trace-configuration-picker/t9n/messages.en.json +1 -0
  21. package/dist/cdn/index.js +1 -1
  22. package/dist/cdn/main.css +1 -1
  23. package/dist/chunks/keyboard-utils.js +14 -8
  24. package/dist/chunks/layer-list-item.js +13 -13
  25. package/dist/chunks/useArcgisViewReadyError.js +14 -9
  26. package/dist/components/arcgis-feature-media/customElement.js +47 -47
  27. package/dist/components/arcgis-features/customElement.js +17 -17
  28. package/dist/components/arcgis-features-next/customElement.js +31 -27
  29. package/dist/components/arcgis-navigation-toggle/customElement.js +1 -1
  30. package/dist/components/arcgis-utility-network-picker/customElement.js +18 -15
  31. package/dist/components/arcgis-utility-network-trace-configuration-picker/customElement.d.ts +89 -0
  32. package/dist/components/arcgis-utility-network-trace-configuration-picker/customElement.js +137 -0
  33. package/dist/components/arcgis-utility-network-trace-configuration-picker/index.js +9 -0
  34. package/dist/components/arcgis-utility-network-trace-inputs-next/customElement.js +137 -206
  35. package/dist/components/arcgis-utility-network-trace-inputs-next/index.js +1 -6
  36. package/dist/components/arcgis-weather/customElement.js +1 -1
  37. package/dist/docs/api.json +1 -1
  38. package/dist/docs/docs.json +1 -1
  39. package/dist/docs/vscode.html-custom-data.json +1 -1
  40. package/dist/docs/web-types.json +1 -1
  41. package/dist/index.d.ts +9 -3
  42. package/dist/loader.js +1 -1
  43. package/dist/types/lumina.d.ts +5 -3
  44. package/dist/types/preact.d.ts +6 -4
  45. package/dist/types/react.d.ts +7 -5
  46. package/dist/types/stencil.d.ts +5 -3
  47. package/package.json +5 -5
  48. package/dist/cdn/32XG4IQO.js +0 -2
  49. package/dist/cdn/BXDUMWWE.js +0 -2
  50. package/dist/cdn/FLVENMD3.js +0 -2
  51. package/dist/cdn/HEYHZKI2.js +0 -3
  52. package/dist/cdn/I5DFLVVJ.js +0 -2
  53. package/dist/cdn/J3743ZYD.js +0 -2
  54. package/dist/cdn/KGXZG3YI.js +0 -2
  55. package/dist/cdn/NO6MFBNV.js +0 -2
  56. package/dist/cdn/NP5NJFWN.js +0 -2
  57. package/dist/cdn/assets/utility-network-subnetwork-info-next/t9n/messages.en.json +0 -1
  58. package/dist/components/arcgis-utility-network-subnetwork-info-next/customElement.d.ts +0 -29
  59. package/dist/components/arcgis-utility-network-subnetwork-info-next/customElement.js +0 -35
  60. package/dist/components/arcgis-utility-network-subnetwork-info-next/index.js +0 -1
  61. /package/dist/components/{arcgis-utility-network-subnetwork-info-next → arcgis-utility-network-trace-configuration-picker}/index.d.ts +0 -0
@@ -1,25 +1,23 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import { c as b } from "../../chunks/runtime.js";
2
+ import { c as g } from "../../chunks/runtime.js";
3
3
  import { ref as d } from "lit/directives/ref.js";
4
4
  import c from "@arcgis/core/core/Collection.js";
5
- import { watch as w } from "@arcgis/core/core/reactiveUtils.js";
6
- import { substitute as y } from "@arcgis/core/intl.js";
7
- import k from "@arcgis/core/layers/GraphicsLayer.js";
8
- import S from "@arcgis/core/networks/support/UNTraceConfiguration.js";
9
- import T from "@arcgis/core/rest/networks/support/TraceLocation.js";
10
- import g from "@arcgis/core/views/interactive/snapping/FeatureSnappingLayerSource.js";
11
- import $ from "@arcgis/core/widgets/Sketch/SketchViewModel.js";
12
- import { LitElement as C, createEvent as l } from "@arcgis/lumina";
13
- import { usePropertyChange as N } from "@arcgis/lumina/controllers";
14
- import { log as u, composeMissingPropertyMessage as L } from "@arcgis/toolkit/log";
15
- import { css as v, html as r } from "lit";
16
- import { u as _ } from "../../chunks/useT9n.js";
17
- import { l as x } from "../../chunks/async-utils.js";
18
- import { a as I, i as p, c as F, q as f, b as E } from "../../chunks/layer-utils.js";
19
- const P = v`:host{height:100%;flex-grow:1}calcite-flow{min-height:var(--arcgis-internal-panel-height-sm, 240px)}calcite-block-group{flex-grow:1;padding-bottom:var(--calcite-spacing-md);background-color:var(--calcite-color-foreground-1)}calcite-block{--calcite-block-content-space: 0;--calcite-block-border-color: transparent;margin:0}calcite-block calcite-combobox,calcite-block calcite-input{margin:0 var(--calcite-spacing-md)}calcite-block calcite-input-message{padding:var(--calcite-spacing-sm) var(--calcite-spacing-md) 0}calcite-notice{margin:var(--calcite-spacing-md)}#subnetwork-info-block{margin:var(--calcite-spacing-md) var(--calcite-spacing-md) 0}#results-limited-message{padding:var(--calcite-spacing-sm)}.inline-loader{--calcite-loader-spacing: var(--calcite-spacing-md)}.add-spatial-mode{display:flex;flex-direction:column;gap:var(--calcite-spacing-md);margin:var(--calcite-spacing-md)}.heading{color:var(--calcite-color-text-1);margin:0 0 var(--calcite-spacing-md);font-size:var(--calcite-font-size);font-weight:var(--calcite-font-weight-medium)}`, m = `utility-network-trace-inputs-sketch-${Date.now()}`, D = 20;
20
- class U extends C {
5
+ import { watch as m } from "@arcgis/core/core/reactiveUtils.js";
6
+ import { substitute as f } from "@arcgis/core/intl.js";
7
+ import y from "@arcgis/core/layers/GraphicsLayer.js";
8
+ import w from "@arcgis/core/rest/networks/support/TraceLocation.js";
9
+ import u from "@arcgis/core/views/interactive/snapping/FeatureSnappingLayerSource.js";
10
+ import b from "@arcgis/core/widgets/Sketch/SketchViewModel.js";
11
+ import { LitElement as k, createEvent as n } from "@arcgis/lumina";
12
+ import { usePropertyChange as L } from "@arcgis/lumina/controllers";
13
+ import { css as T, html as s } from "lit";
14
+ import { u as $ } from "../../chunks/useT9n.js";
15
+ import { l as S } from "../../chunks/async-utils.js";
16
+ import { a as C, i as p, c as v, q as N, b as _ } from "../../chunks/layer-utils.js";
17
+ const P = T`:host{height:100%;flex-grow:1}calcite-flow{min-height:var(--arcgis-internal-panel-height-sm, 240px)}calcite-block-group{flex-grow:1;padding-bottom:var(--calcite-spacing-md);background-color:var(--calcite-color-foreground-1)}calcite-block{--calcite-block-content-space: 0;--calcite-block-border-color: transparent;margin:0}calcite-block calcite-combobox,calcite-block calcite-input{margin:0 var(--calcite-spacing-md)}calcite-block calcite-input-message{padding:var(--calcite-spacing-sm) var(--calcite-spacing-md) 0}calcite-notice{margin:var(--calcite-spacing-md)}#subnetwork-info-block{margin:var(--calcite-spacing-md) var(--calcite-spacing-md) 0}#results-limited-message{padding:var(--calcite-spacing-sm)}.inline-loader{--calcite-loader-spacing: var(--calcite-spacing-md)}.add-spatial-mode{display:flex;flex-direction:column;gap:var(--calcite-spacing-md);margin:var(--calcite-spacing-md)}.heading{color:var(--calcite-color-text-1);margin:0 0 var(--calcite-spacing-md);font-size:var(--calcite-font-size);font-weight:var(--calcite-font-weight-medium)}`, h = `utility-network-trace-inputs-sketch-${Date.now()}`;
18
+ class F extends k {
21
19
  constructor() {
22
- super(...arguments), this._messages = _({ blocking: !0 }), this.#h = !0, this.#u = /* @__PURE__ */ new Map(), this.#r = new c(), this.#s = new c(), this.#o = new c(), this.#b = /* @__PURE__ */ new Set(["subnetwork", "subnetwork-controller", "upstream", "downstream", "isolation"]), this.#i = null, this.#c = 20, this._candidateFeatures = [], this._compatibleSubnetworkNames = [], this._namedTraceConfigurations = [], this._subnetworkNamesState = "ready", this._exceedDisplayLimit = !1, this.autoDestroyDisabled = !1, this.hideActionBar = !1, this.mode = "default", this.arcgisPropertyChange = N()("mode"), this.arcgisSelectedNamedTraceConfigurationChange = l(), this.arcgisTraceInputsChange = l(), this.arcgisTraceLocationSelectEnd = l(), this.arcgisTraceLocationSelectStart = l(), this.arcgisUtilityNetworkChange = l();
20
+ super(...arguments), this._messages = $({ blocking: !0 }), this.#l = !0, this.#d = /* @__PURE__ */ new Map(), this.#a = new c(), this.#r = new c(), this.#s = new c(), this.#t = null, this.#c = 20, this._candidateFeatures = [], this._compatibleSubnetworkNames = [], this._namedTraceConfigurations = [], this._subnetworkNamesState = "ready", this._exceedDisplayLimit = !1, this.autoDestroyDisabled = !1, this.hideActionBar = !1, this.mode = "default", this.arcgisPropertyChange = L()("mode"), this.arcgisSelectedNamedTraceConfigurationChange = n(), this.arcgisTraceInputsChange = n(), this.arcgisTraceLocationSelectEnd = n(), this.arcgisTraceLocationSelectStart = n(), this.arcgisUtilityNetworkChange = n();
23
21
  }
24
22
  static {
25
23
  this.properties = { _selectedFeature: 16, _candidateFeatures: 16, _compatibleSubnetworkNames: 16, _subnetworksTable: 16, _namedTraceConfigurations: 16, _traceConfiguration: 16, _error: 16, _subnetworkNamesState: 16, _activeTraceLocationType: 16, _exceedDisplayLimit: 16, beforeTraceLocationSelectStart: 0, view: 0, selectedUtilityNetwork: 0, selectedNamedTraceConfiguration: 0, autoDestroyDisabled: 5, hideActionBar: 5, traceConfiguration: 32, isSubnetworkNameTraceSelected: 32, referenceElement: 1, mode: 3, traceLocationFlagInfos: 32, traceLocations: 32 };
@@ -27,38 +25,31 @@ class U extends C {
27
25
  static {
28
26
  this.styles = P;
29
27
  }
30
- get #e() {
31
- return this._traceConfiguration?.subnetworkName ?? void 0;
32
- }
33
- set #e(e) {
34
- this._traceConfiguration && (this._traceConfiguration.subnetworkName = e);
35
- }
36
- #h;
37
- get #v() {
28
+ #l;
29
+ get #S() {
38
30
  const { view: e } = this;
39
31
  return e?.map ? e.map.allLayers.toArray().concat(e.map.allTables.toArray()) : [];
40
32
  }
41
- #t;
33
+ #e;
34
+ #i;
35
+ #d;
42
36
  #a;
43
- #u;
44
37
  #r;
45
38
  #s;
39
+ #t;
46
40
  #o;
47
- #b;
48
- #i;
49
- #n;
50
- #w;
41
+ #m;
42
+ #f;
51
43
  #y;
52
- #k;
53
44
  #c;
54
- get #S() {
45
+ get #w() {
55
46
  return !this.isSubnetworkNameTraceSelected;
56
47
  }
57
- get #T() {
48
+ get #b() {
58
49
  const e = this.selectedNamedTraceConfiguration?.traceType;
59
50
  return e === "path" || e === "circuit";
60
51
  }
61
- get #_() {
52
+ get #C() {
62
53
  const e = this.selectedUtilityNetwork?.dataElement?.domainNetworks;
63
54
  return e ? e.map((t) => t.subnetworkLayerId).filter((t) => t != null && t > -1) : [];
64
55
  }
@@ -70,52 +61,52 @@ class U extends C {
70
61
  return !!e?.traceConfiguration?.subnetworkName && e?.traceType === "subnetwork";
71
62
  }
72
63
  get traceLocationFlagInfos() {
73
- return new c([...this.#r, ...this.#s, ...this.#o]);
64
+ return new c([...this.#a, ...this.#r, ...this.#s]);
74
65
  }
75
66
  get traceLocations() {
76
67
  const e = [];
77
- return this.#S && this.#r.forEach((t) => e.push(...this.#m(t))), this.#T && this.#o.forEach((t) => e.push(...this.#m(t))), this.#s.forEach((t) => e.push(...this.#m(t))), e;
68
+ return this.#w && this.#a.forEach((t) => e.push(...this.#h(t))), this.#b && this.#s.forEach((t) => e.push(...this.#h(t))), this.#r.forEach((t) => e.push(...this.#h(t))), e;
78
69
  }
79
70
  async destroy() {
80
- this.#A(m), this.#C(), this.#t?.cancel(), this.#n?.destroy(), this.#w?.destroy(), this.#y?.destroy(), this.#k?.destroy(), await this.manager.destroy();
71
+ this.#D(h), this.#L(), this.#e?.cancel(), this.#o?.destroy(), this.#m?.destroy(), this.#f?.destroy(), this.#y?.destroy(), await this.manager.destroy();
81
72
  }
82
73
  load() {
83
- this.#$(), this.manager.onLifecycle(() => [
84
- w(() => this.view?.map, () => this.#$())
74
+ this.#k(), this.manager.onLifecycle(() => [
75
+ m(() => this.view?.map, () => this.#k())
85
76
  ]);
86
77
  }
87
78
  willUpdate(e) {
88
- e.has("selectedUtilityNetwork") && (this.arcgisUtilityNetworkChange.emit(), this.#H()), e.has("selectedNamedTraceConfiguration") && (this.arcgisTraceInputsChange.emit(), this.arcgisSelectedNamedTraceConfigurationChange.emit(), this.#z());
79
+ e.has("selectedUtilityNetwork") && (this.arcgisUtilityNetworkChange.emit(), this.#A()), e.has("selectedNamedTraceConfiguration") && (this.arcgisTraceInputsChange.emit(), this.arcgisSelectedNamedTraceConfigurationChange.emit());
89
80
  }
90
81
  disconnectedCallback() {
91
- super.disconnectedCallback(), this.#u.clear();
82
+ super.disconnectedCallback(), this.#d.clear();
92
83
  }
93
- #x({ detail: e, target: t }) {
84
+ #v({ detail: e, target: t }) {
94
85
  (e.name === "selectedDrillInFeature" || e.name === "selectedFeature") && (this._selectedFeature = t.selectedDrillInFeature ?? t.selectedFeature ?? void 0);
95
86
  }
96
- #$() {
87
+ #k() {
97
88
  if (this._error = void 0, !this.view?.map) {
98
89
  this._error = this._messages.errors.noView;
99
90
  return;
100
91
  }
101
92
  const e = this.view.map;
102
- this.#M(e);
103
- }
104
- #I(e) {
105
- e && (this.#w = e);
93
+ this.#x(e);
106
94
  }
107
- #F(e) {
108
- e && (this.#y = e);
95
+ #N(e) {
96
+ e && (this.#m = e);
109
97
  }
110
- #E(e) {
111
- e && (this.#k = e);
98
+ #_(e) {
99
+ e && (this.#f = e);
112
100
  }
113
101
  #P(e) {
114
- e && (this.#n = e);
102
+ e && (this.#y = e);
115
103
  }
116
- #m(e) {
104
+ #F(e) {
105
+ e && (this.#o = e);
106
+ }
107
+ #h(e) {
117
108
  const t = e.flagProperties.selectedTerminals;
118
- return e.flagProperties.terminalConfiguration && t?.size ? Array.from(t, (i) => new T({
109
+ return e.flagProperties.terminalConfiguration && t?.size ? Array.from(t, (i) => new w({
119
110
  type: e.traceLocation.type,
120
111
  isFilterBarrier: e.traceLocation.isFilterBarrier,
121
112
  globalId: e.traceLocation.globalId,
@@ -123,262 +114,202 @@ class U extends C {
123
114
  terminalId: i
124
115
  })) : [e.traceLocation];
125
116
  }
126
- #C() {
117
+ #L() {
127
118
  const { view: e } = this;
128
- this.#r.forEach((t) => {
119
+ this.#a.forEach((t) => {
129
120
  t.spatialProperties.flagGraphic && e?.graphics.remove(t.spatialProperties.flagGraphic);
130
- }), this.#r.removeAll(), this.#s.forEach((t) => {
121
+ }), this.#a.removeAll(), this.#r.forEach((t) => {
131
122
  t.spatialProperties.flagGraphic && e?.graphics.remove(t.spatialProperties.flagGraphic);
132
- }), this.#s.removeAll(), this.#o.forEach((t) => {
123
+ }), this.#r.removeAll(), this.#s.forEach((t) => {
133
124
  t.spatialProperties.flagGraphic && e?.graphics.remove(t.spatialProperties.flagGraphic);
134
- }), this.#o.removeAll();
125
+ }), this.#s.removeAll();
135
126
  }
136
- #D(e, t) {
127
+ #I(e, t) {
137
128
  if (!e.findLayerById(t)) {
138
- const a = new k({
129
+ const a = new y({
139
130
  id: t,
140
131
  listMode: "hide",
141
132
  title: t
142
133
  });
143
- I(this.view, a);
134
+ C(this.view, a);
144
135
  }
145
136
  }
146
- #U(e, t) {
137
+ #E(e, t) {
147
138
  const i = e.findLayerById(t);
148
139
  return p(i) ? (e.reorder(i, e.layers.length - 1), i) : null;
149
140
  }
150
- #A(e) {
141
+ #D(e) {
151
142
  if (!this.view?.map)
152
143
  return;
153
144
  const { map: t } = this.view, i = t?.findLayerById(e);
154
145
  i && p(i) && t?.remove(i);
155
146
  }
156
- #N() {
157
- if (!this.#t)
147
+ #T() {
148
+ if (!this.#e)
158
149
  return;
159
150
  const e = new c();
160
- this.#a?.forEach((t) => {
161
- F(t) ? t.sublayers.forEach((i) => {
162
- e.add(new g({
151
+ this.#i?.forEach((t) => {
152
+ v(t) ? t.sublayers.forEach((i) => {
153
+ e.add(new u({
163
154
  layer: i,
164
155
  enabled: !0
165
156
  }));
166
- }) : e.add(new g({
157
+ }) : e.add(new u({
167
158
  layer: t,
168
159
  enabled: !0
169
160
  }));
170
- }), this.#t.snappingOptions = {
161
+ }), this.#e.snappingOptions = {
171
162
  enabled: !1,
172
163
  featureSources: e
173
164
  };
174
165
  }
175
- #B(e) {
176
- const { view: t } = this, i = this.#U(e, m);
177
- return new $({
166
+ #U(e) {
167
+ const { view: t } = this, i = this.#E(e, h);
168
+ return new b({
178
169
  layer: i,
179
170
  view: t
180
171
  });
181
172
  }
182
- #M(e) {
183
- this.#D(e, m), this.#t = this.#B(e), this.#N();
184
- }
185
- #G() {
186
- this.#e = void 0, this._subnetworksTable = void 0, this._compatibleSubnetworkNames = [];
187
- }
188
- async #V() {
189
- this._subnetworksTable || (this._subnetworksTable = await this.selectedUtilityNetwork?.loadSubnetworksTable());
190
- }
191
- async #q() {
192
- const { _subnetworksTable: e } = this;
193
- if (!e)
194
- return;
195
- const t = e.fieldsIndex.get("SUBNETWORKNAME"), i = (o, n, h) => n === 0 || o.getAttribute(t.name) !== h[n - 1].getAttribute(t.name), a = e.createQuery();
196
- a.gdbVersion = this.selectedUtilityNetwork?.gdbVersion, a.where = this.#O(), a.outFields = [t.name], a.orderByFields = [t.name];
197
- const { features: s } = await f(e, a, void 0, !1);
198
- this._compatibleSubnetworkNames = s.filter(i).map((o) => o.getAttribute(t.name));
199
- }
200
- #O() {
201
- const e = this._traceConfiguration, t = `DOMAINNETWORKNAME = '${e.domainNetworkName}'`, i = `TIERNAME = '${e.tierName}'`;
202
- return [t, i].join(" AND ");
203
- }
204
- async #R(e) {
205
- await this.#V(), await this.#q(), e.subnetworkName && !this._compatibleSubnetworkNames.some((t) => t === e.subnetworkName) && (this.#e = this._compatibleSubnetworkNames.at(0));
173
+ #x(e) {
174
+ this.#I(e, h), this.#e = this.#U(e), this.#T();
206
175
  }
207
- #j(e) {
208
- const t = this.selectedUtilityNetwork?.sharedNamedTraceConfigurations.find((i) => i.globalId === e);
209
- if (!t) {
210
- u("error", this, "`traceConfig` not found in `selectedUtilityNetwork.sharedNamedTraceConfigurations`");
211
- return;
212
- }
213
- this.selectedNamedTraceConfiguration = t;
214
- }
215
- async #z() {
216
- const { selectedNamedTraceConfiguration: e } = this;
217
- if (!(e?.traceConfiguration instanceof S)) {
218
- u("error", this, L("selectedNamedTraceConfiguration.traceConfiguration")), this._traceConfiguration = void 0;
219
- return;
220
- }
221
- this._traceConfiguration = e.traceConfiguration.clone(), this.isSubnetworkNameTraceSelected && (this._subnetworkNamesState = "loading", await this.#R(this._traceConfiguration), this._subnetworkNamesState = "ready");
222
- }
223
- async #H() {
176
+ async #A() {
224
177
  const { selectedUtilityNetwork: e } = this;
225
178
  try {
226
179
  e && !e.loaded && await e.load();
227
180
  } catch (t) {
228
- x(t, this, "Error while loading the selected utility network");
181
+ S(t, this, "Error while loading the selected utility network");
229
182
  }
230
- this.#G(), this.#W(), this.#Q(), this.#C();
183
+ this.#B(), this.#M(), this.#L();
231
184
  }
232
- #W() {
233
- this._traceConfiguration = void 0, this.selectedNamedTraceConfiguration = void 0, this._namedTraceConfigurations = this.selectedUtilityNetwork?.sharedNamedTraceConfigurations.filter(Boolean).filter((e) => e.traceType !== "circuit").sort((e, t) => e.title.localeCompare(t.title)) || [], this._namedTraceConfigurations.length ? this.selectedNamedTraceConfiguration = this._namedTraceConfigurations.at(0) : u("error", this, "The selected utility network has no compatible named trace configurations.");
185
+ #B() {
186
+ this._traceConfiguration = void 0, this.selectedNamedTraceConfiguration = void 0, this._namedTraceConfigurations = this.selectedUtilityNetwork?.sharedNamedTraceConfigurations.filter(Boolean).filter((e) => e.traceType !== "circuit").sort((e, t) => e.title.localeCompare(t.title)) || [];
234
187
  }
235
- #Q() {
188
+ #M() {
236
189
  const { selectedUtilityNetwork: e } = this;
237
- this.#a = new c(this.#v.filter((t) => e?.isUtilityLayer(t) && !this.#_.includes(t.layerId))), this.#N();
190
+ this.#i = new c(this.#S.filter((t) => e?.isUtilityLayer(t) && !this.#C.includes(t.layerId))), this.#T();
238
191
  }
239
- #g(e) {
192
+ #u(e) {
240
193
  if (e.stopPropagation(), this.arcgisTraceLocationSelectStart.emit(e.detail).defaultPrevented) {
241
194
  e.preventDefault();
242
195
  return;
243
196
  }
244
197
  this._activeTraceLocationType = e?.target?.traceLocationType, this.mode = "add-spatial-instructions";
245
198
  }
246
- #K(e) {
199
+ #G(e) {
247
200
  if (e == null)
248
201
  return;
249
- const t = this.#u, i = this.#a, a = t.get(e);
202
+ const t = this.#d, i = this.#i, a = t.get(e);
250
203
  if (a)
251
204
  return a;
252
205
  if (!i)
253
206
  return;
254
- const s = i.find((o) => "layerId" in o && o.layerId === e);
255
- return s && t.set(e, s), s;
207
+ const r = i.find((o) => "layerId" in o && o.layerId === e);
208
+ return r && t.set(e, r), r;
256
209
  }
257
- async #J(e, t) {
210
+ async #V(e, t) {
258
211
  const i = e.createQuery();
259
- i.gdbVersion = this.selectedUtilityNetwork?.gdbVersion, i.objectIds = t.map((s) => s.getObjectId()), i.outFields = ["*"];
260
- const { features: a } = await f(e, i);
261
- return a.forEach((s) => {
262
- if (!s.getEffectivePopupTemplate(this.#h)) {
263
- const o = s.layer;
264
- s.popupTemplate = o.createPopupTemplate();
212
+ i.gdbVersion = this.selectedUtilityNetwork?.gdbVersion, i.objectIds = t.map((r) => r.getObjectId()), i.outFields = ["*"];
213
+ const { features: a } = await N(e, i);
214
+ return a.forEach((r) => {
215
+ if (!r.getEffectivePopupTemplate(this.#l)) {
216
+ const o = r.layer;
217
+ r.popupTemplate = o.createPopupTemplate();
265
218
  }
266
219
  }), a;
267
220
  }
268
- async #X(e) {
221
+ async #q(e) {
269
222
  const t = /* @__PURE__ */ new Map(), i = [];
270
223
  return e.forEach((a) => {
271
- const s = E(a.layer) ? a.layer.parent : a.layer;
272
- if (s) {
273
- const o = this.#K(s.layerId);
224
+ const r = _(a.layer) ? a.layer.parent : a.layer;
225
+ if (r) {
226
+ const o = this.#G(r.layerId);
274
227
  if (o) {
275
- const n = t.get(o) || [];
276
- n.push(a), t.set(o, n);
228
+ const l = t.get(o) || [];
229
+ l.push(a), t.set(o, l);
277
230
  }
278
231
  }
279
232
  }), await Promise.all(Array.from(t.keys()).map(async (a) => {
280
- const s = t.get(a) ?? [], o = await this.#J(a, s);
233
+ const r = t.get(a) ?? [], o = await this.#V(a, r);
281
234
  i.push(...o);
282
235
  })), i;
283
236
  }
284
237
  async #p(e) {
285
- return this._exceedDisplayLimit = e.length > this.#c, this._candidateFeatures = await this.#X(e.slice(0, this.#c)), this._candidateFeatures.length === 0 ? (this.#l(), await Promise.reject(Error("No features found"))) : (this._candidateFeatures.length === 1 && (this._selectedFeature = this._candidateFeatures.at(0)), this.mode = "add-spatial-feature", this.#i?.reject(), this.#i = Promise.withResolvers(), await this.#i.promise);
238
+ return this._exceedDisplayLimit = e.length > this.#c, this._candidateFeatures = await this.#q(e.slice(0, this.#c)), this._candidateFeatures.length === 0 ? (this.#n(), await Promise.reject(Error("No features found"))) : (this._candidateFeatures.length === 1 && (this._selectedFeature = this._candidateFeatures.at(0)), this.mode = "add-spatial-feature", this.#t?.reject(), this.#t = Promise.withResolvers(), await this.#t.promise);
286
239
  }
287
- #f(e) {
288
- e.stopPropagation(), this.arcgisTraceLocationSelectEnd.emit(), this._activeTraceLocationType = void 0, this.mode = "default", this.#l();
240
+ #g(e) {
241
+ e.stopPropagation(), this.arcgisTraceLocationSelectEnd.emit(), this._activeTraceLocationType = void 0, this.mode = "default", this.#n();
289
242
  }
290
- #l(e) {
291
- e?.stopPropagation(), this.#n?.clear(), this.#L(), this.#t?.cancel();
243
+ #n(e) {
244
+ e?.stopPropagation(), this.#o?.clear(), this.#$(), this.#e?.cancel();
292
245
  }
293
- #L() {
294
- this.mode = "default", this._candidateFeatures = [], this._selectedFeature = void 0, this.#i?.reject(), this.#i = null;
246
+ #$() {
247
+ this.mode = "default", this._candidateFeatures = [], this._selectedFeature = void 0, this.#t?.reject(), this.#t = null;
295
248
  }
296
- #Y() {
297
- const e = this.#i, t = this.#n, { _selectedFeature: i } = this;
249
+ #j() {
250
+ const e = this.#t, t = this.#o, { _selectedFeature: i } = this;
298
251
  if (e && t) {
299
252
  if (!i)
300
253
  return;
301
- e.resolve(i), this.#i = null;
254
+ e.resolve(i), this.#t = null;
302
255
  }
303
256
  }
304
- #d(e, t = !1, i) {
305
- return r`<calcite-notice .closable=${t} kind=danger open scale=s width=auto .icon=${i}><div slot=message>${e}</div></calcite-notice>`;
257
+ #R(e, t = !1, i) {
258
+ return s`<calcite-notice .closable=${t} kind=danger open scale=s width=auto .icon=${i}><div slot=message>${e}</div></calcite-notice>`;
306
259
  }
307
- #Z() {
308
- const e = this._namedTraceConfigurations.map((i) => r`<calcite-combobox-item .value=${i.globalId} .heading=${i.title} .selected=${i.globalId === this.selectedNamedTraceConfiguration?.globalId}></calcite-combobox-item>`), t = this._messages.labels.traceConfiguration;
309
- return r`<calcite-block .heading=${t} .label=${t} expanded><calcite-combobox .label=${t} selection-mode=single-persist @calciteComboboxChange=${({ currentTarget: i }) => {
310
- const a = i.selectedItems[0]?.value;
311
- this.#j(a);
312
- }}>${e}</calcite-combobox></calcite-block>`;
260
+ #z() {
261
+ const { _namedTraceConfigurations: e, selectedUtilityNetwork: t } = this;
262
+ return s`<arcgis-utility-network-trace-configuration-picker .traceConfigurations=${e} .utilityNetwork=${t} @arcgisPropertyChange=${(i) => {
263
+ i.stopPropagation(), i.detail.name === "selectedNamedTraceConfiguration" && (this.selectedNamedTraceConfiguration = i.target.selectedNamedTraceConfiguration), i.detail.name === "traceConfiguration" && (this._traceConfiguration = i.target.traceConfiguration);
264
+ }}></arcgis-utility-network-trace-configuration-picker>`;
313
265
  }
314
- #ee() {
266
+ #H() {
315
267
  const { selectedUtilityNetwork: e, view: t } = this;
316
- return r`<arcgis-utility-network-picker .selectedUtilityNetwork=${e} .view=${t} @arcgisPropertyChange=${(i) => {
268
+ return s`<arcgis-utility-network-picker .selectedUtilityNetwork=${e} .view=${t} @arcgisPropertyChange=${(i) => {
317
269
  i.detail.name === "selectedUtilityNetwork" && (this.selectedUtilityNetwork = i.target.selectedUtilityNetwork);
318
270
  }}></arcgis-utility-network-picker>`;
319
271
  }
320
- #te() {
272
+ #O() {
321
273
  const { _error: e } = this, { noView: t } = this._messages.errors;
322
274
  let i;
323
- return e === t ? i = this.#d(e, !1, "exclamation-mark-triangle") : i = this.#ue(), r`<calcite-flow-item .selected=${this.mode === "default"}>${i}</calcite-flow-item>`;
275
+ return e === t ? i = this.#R(e, !1, "exclamation-mark-triangle") : i = this.#Z(), s`<calcite-flow-item .selected=${this.mode === "default"}>${i}</calcite-flow-item>`;
324
276
  }
325
- #ie() {
277
+ #Q() {
326
278
  const { _messages: e, mode: t } = this, i = this._activeTraceLocationType === "starting-point" ? e.labels.addSpatial.startingPoint : this._activeTraceLocationType === "barrier" ? e.labels.addSpatial.barrier : e.labels.addSpatial.stoppingPoint;
327
- return r`<calcite-flow-item .selected=${t === "add-spatial-instructions"} .heading=${i} @calciteFlowItemBack=${(a) => this.#l(a)}><div class="add-spatial-mode"><div><h5 class="heading">${e.instructions.addSpatial.selectFeature.heading}</h5>${e.instructions.addSpatial.selectFeature.subheading}</div><div><h5 class="heading">${e.instructions.addSpatial.selectAssociatedFeature.heading}</h5>${e.instructions.addSpatial.selectAssociatedFeature.subheading}</div></div></calcite-flow-item>`;
279
+ return s`<calcite-flow-item .selected=${t === "add-spatial-instructions"} .heading=${i} @calciteFlowItemBack=${(a) => this.#n(a)}><div class="add-spatial-mode"><div><h5 class="heading">${e.instructions.addSpatial.selectFeature.heading}</h5>${e.instructions.addSpatial.selectFeature.subheading}</div><div><h5 class="heading">${e.instructions.addSpatial.selectAssociatedFeature.heading}</h5>${e.instructions.addSpatial.selectAssociatedFeature.subheading}</div></div></calcite-flow-item>`;
328
280
  }
329
- #ae() {
281
+ #W() {
330
282
  const { _activeTraceLocationType: e, _candidateFeatures: t, _messages: i } = this;
331
283
  if (!t.length)
332
284
  return this.mode = "default", null;
333
- const a = e === "starting-point" ? i.labels.addSpatial.startingPoint : e === "barrier" ? i.labels.addSpatial.barrier : i.labels.addSpatial.stoppingPoint, s = t.length === 1 ? "feature" : "list";
334
- return r`<arcgis-features-next .autoDestroyDisabled=${this.autoDestroyDisabled} .defaultPopupTemplateEnabled=${this.#h} .features=${this._candidateFeatures} .featureMenuTitle=${a} .hideActionBar=${this.hideActionBar} hide-select-feature .initialDisplayMode=${s} @arcgisClose=${() => this.#L()} @arcgisPropertyChange=${this.#x} open .referenceElement=${this.referenceElement} .view=${this.view} ${d(this.#P)}></arcgis-features-next>`;
285
+ const a = e === "starting-point" ? i.labels.addSpatial.startingPoint : e === "barrier" ? i.labels.addSpatial.barrier : i.labels.addSpatial.stoppingPoint, r = t.length === 1 ? "feature" : "list";
286
+ return s`<arcgis-features-next .autoDestroyDisabled=${this.autoDestroyDisabled} .defaultPopupTemplateEnabled=${this.#l} .features=${this._candidateFeatures} .featureMenuTitle=${a} .hideActionBar=${this.hideActionBar} hide-select-feature .initialDisplayMode=${r} @arcgisClose=${() => this.#$()} @arcgisPropertyChange=${this.#v} open .referenceElement=${this.referenceElement} .view=${this.view} ${d(this.#F)}></arcgis-features-next>`;
335
287
  }
336
- #re() {
337
- const { mode: e, _messages: t, _selectedFeature: i, selectedUtilityNetwork: a } = this, s = e === "add-spatial-feature" && this._exceedDisplayLimit && !i, o = y(t.warnings.exceededDisplayLimit, {
288
+ #J() {
289
+ const { mode: e, _messages: t, _selectedFeature: i, selectedUtilityNetwork: a } = this, r = e === "add-spatial-feature" && this._exceedDisplayLimit && !i, o = f(t.warnings.exceededDisplayLimit, {
338
290
  limit: this.#c.toString()
339
- }), n = i ? !(a?.isUtilityLayer(i.layer) ?? !0) : !0;
340
- return r`${s && r`<calcite-input-message id=results-limited-message icon=exclamation-mark-circle status=idle>${o}</calcite-input-message>` || ""}<calcite-button appearance=outline width=full @click=${() => this.#l()} slot=footer>${t.buttons.cancel}</calcite-button>${e === "add-spatial-feature" && r`<calcite-button width=full slot=footer appearance=solid @click=${() => this.#Y()} .disabled=${n}>${t.buttons.add}</calcite-button>` || ""}`;
341
- }
342
- #se() {
343
- return r`<arcgis-utility-network-trace-location-next .view=${this.view} trace-location-type=starting-point .beforeTraceLocationSelectStart=${this.beforeTraceLocationSelectStart} @arcgisTraceLocationSelectStart=${this.#g} @arcgisTraceLocationSelectEnd=${this.#f} @arcgisTraceLocationChange=${() => this.arcgisTraceInputsChange.emit()} .sketchViewModel=${this.#t} .utilityNetwork=${this.selectedUtilityNetwork} .filterLayers=${this.#a} .traceLocations=${this.#r} .afterHitTest=${this.#p.bind(this)} .autoDestroyDisabled=${this.autoDestroyDisabled} ${d(this.#I)}></arcgis-utility-network-trace-location-next>`;
291
+ }), l = i ? !(a?.isUtilityLayer(i.layer) ?? !0) : !0;
292
+ return s`${r && s`<calcite-input-message id=results-limited-message icon=exclamation-mark-circle status=idle>${o}</calcite-input-message>` || ""}<calcite-button appearance=outline width=full @click=${() => this.#n()} slot=footer>${t.buttons.cancel}</calcite-button>${e === "add-spatial-feature" && s`<calcite-button width=full slot=footer appearance=solid @click=${() => this.#j()} .disabled=${l}>${t.buttons.add}</calcite-button>` || ""}`;
344
293
  }
345
- #oe() {
346
- return r`<arcgis-utility-network-trace-location-next .view=${this.view} trace-location-type=stopping-point .beforeTraceLocationSelectStart=${this.beforeTraceLocationSelectStart} @arcgisTraceLocationSelectStart=${this.#g} @arcgisTraceLocationSelectEnd=${this.#f} @arcgisTraceLocationChange=${() => this.arcgisTraceInputsChange.emit()} .sketchViewModel=${this.#t} .utilityNetwork=${this.selectedUtilityNetwork} .filterLayers=${this.#a} .traceLocations=${this.#o} .afterHitTest=${this.#p.bind(this)} .autoDestroyDisabled=${this.autoDestroyDisabled} ${d(this.#E)}></arcgis-utility-network-trace-location-next>`;
294
+ #K() {
295
+ return s`<arcgis-utility-network-trace-location-next .view=${this.view} trace-location-type=starting-point .beforeTraceLocationSelectStart=${this.beforeTraceLocationSelectStart} @arcgisTraceLocationSelectStart=${this.#u} @arcgisTraceLocationSelectEnd=${this.#g} @arcgisTraceLocationChange=${() => this.arcgisTraceInputsChange.emit()} .sketchViewModel=${this.#e} .utilityNetwork=${this.selectedUtilityNetwork} .filterLayers=${this.#i} .traceLocations=${this.#a} .afterHitTest=${this.#p.bind(this)} .autoDestroyDisabled=${this.autoDestroyDisabled} ${d(this.#N)}></arcgis-utility-network-trace-location-next>`;
347
296
  }
348
- #ne() {
349
- return r`<arcgis-utility-network-trace-location-next .view=${this.view} trace-location-type=barrier .beforeTraceLocationSelectStart=${this.beforeTraceLocationSelectStart} @arcgisTraceLocationSelectStart=${this.#g} @arcgisTraceLocationSelectEnd=${this.#f} @arcgisTraceLocationChange=${() => this.arcgisTraceInputsChange.emit()} .sketchViewModel=${this.#t} .utilityNetwork=${this.selectedUtilityNetwork} .filterLayers=${this.#a} .traceLocations=${this.#s} .afterHitTest=${this.#p.bind(this)} .autoDestroyDisabled=${this.autoDestroyDisabled} ${d(this.#F)}></arcgis-utility-network-trace-location-next>`;
297
+ #X() {
298
+ return s`<arcgis-utility-network-trace-location-next .view=${this.view} trace-location-type=stopping-point .beforeTraceLocationSelectStart=${this.beforeTraceLocationSelectStart} @arcgisTraceLocationSelectStart=${this.#u} @arcgisTraceLocationSelectEnd=${this.#g} @arcgisTraceLocationChange=${() => this.arcgisTraceInputsChange.emit()} .sketchViewModel=${this.#e} .utilityNetwork=${this.selectedUtilityNetwork} .filterLayers=${this.#i} .traceLocations=${this.#s} .afterHitTest=${this.#p.bind(this)} .autoDestroyDisabled=${this.autoDestroyDisabled} ${d(this.#P)}></arcgis-utility-network-trace-location-next>`;
350
299
  }
351
- #ce() {
352
- const { _messages: e } = this;
353
- return r`<calcite-input clearable type=text .placeholder=${e.instructions.enterSubnetworkName} max-length=64 .status=${this.#e ? "valid" : "invalid"} .value=${this.#e} @calciteInputInput=${(t) => this.#e = t.target.value}></calcite-input><calcite-input-message icon=exclamation-mark-triangle status=idle>${e.labels.tooManySubnetworks}</calcite-input-message>`;
354
- }
355
- #le() {
356
- return r`<calcite-combobox .label=${this._messages.labels.subnetworkName} selection-mode=single-persist @calciteComboboxChange=${({ currentTarget: e }) => {
357
- const t = e.selectedItems[0]?.value;
358
- this.#e = t;
359
- }}>${this._compatibleSubnetworkNames.map((e) => r`<calcite-combobox-item .value=${e} .heading=${e} .selected=${e === this.#e}></calcite-combobox-item>`)}</calcite-combobox>`;
360
- }
361
- #de() {
362
- const { _messages: e } = this, t = e.labels.subnetworkName;
363
- return this.isSubnetworkNameTraceSelected ? this._subnetworkNamesState === "loading" ? r`<calcite-loader class="inline-loader" label=loading scale=s></calcite-loader>` : this._compatibleSubnetworkNames.length ? r`<calcite-block .heading=${t} .label=${t} expanded>${this._compatibleSubnetworkNames.length > D ? this.#ce() : this.#le()}</calcite-block>` : this.#d(e.errors.noCompatibleSubnetworks, !1, "exclamation-mark-triangle") : null;
364
- }
365
- #he() {
366
- const { selectedNamedTraceConfiguration: e } = this;
367
- return this._traceConfiguration && e?.traceType && this.#b.has(e.traceType) ? r`<calcite-block id=subnetwork-info-block expanded .label=${this._messages.labels.subnetworkInfo}><arcgis-utility-network-subnetwork-info-next .namedTraceConfiguration=${e}></arcgis-utility-network-subnetwork-info-next></calcite-block>` : null;
300
+ #Y() {
301
+ return s`<arcgis-utility-network-trace-location-next .view=${this.view} trace-location-type=barrier .beforeTraceLocationSelectStart=${this.beforeTraceLocationSelectStart} @arcgisTraceLocationSelectStart=${this.#u} @arcgisTraceLocationSelectEnd=${this.#g} @arcgisTraceLocationChange=${() => this.arcgisTraceInputsChange.emit()} .sketchViewModel=${this.#e} .utilityNetwork=${this.selectedUtilityNetwork} .filterLayers=${this.#i} .traceLocations=${this.#r} .afterHitTest=${this.#p.bind(this)} .autoDestroyDisabled=${this.autoDestroyDisabled} ${d(this.#_)}></arcgis-utility-network-trace-location-next>`;
368
302
  }
369
- #ue() {
370
- const { _messages: e } = this, { noTraceConfiguration: t, noNamedTraceConfigurations: i } = e.errors, a = this.#ee();
371
- let s;
372
- this._namedTraceConfigurations.length || (s = this.#d(i, !1, "exclamation-mark-triangle"));
373
- const o = r`${this.#Z()}${this.#he()}${this.#de()}`, n = this.traceConfiguration ? r`${this.#S ? this.#se() : null}${this.#T ? this.#oe() : null}${this.#ne()}` : this.#d(t, !1, "exclamation-mark-triangle"), h = this.selectedUtilityNetwork?.loaded ? s ?? r`${o}${n}` : null;
374
- return r`<calcite-block-group .label=${e.labels.traceInputs}>${a}${h}</calcite-block-group>`;
303
+ #Z() {
304
+ const { _messages: e } = this, t = this.#H(), i = this.#z(), a = this._namedTraceConfigurations.length && this.traceConfiguration ? s`${this.#w ? this.#K() : null}${this.#b ? this.#X() : null}${this.#Y()}` : null, r = this.selectedUtilityNetwork?.loaded ? s`${i}${a}` : null;
305
+ return s`<calcite-block-group .label=${e.labels.traceInputs}>${t}${r}</calcite-block-group>`;
375
306
  }
376
307
  render() {
377
308
  const { mode: e } = this;
378
- return r`<calcite-panel>${e === "add-spatial-feature" ? this.#ae() : null}<calcite-flow .hidden=${e === "add-spatial-feature"}>${this.#te()}${this.#ie()}</calcite-flow>${e !== "default" ? this.#re() : null}</calcite-panel>`;
309
+ return s`<calcite-panel>${e === "add-spatial-feature" ? this.#W() : null}<calcite-flow .hidden=${e === "add-spatial-feature"}>${this.#O()}${this.#Q()}</calcite-flow>${e !== "default" ? this.#J() : null}</calcite-panel>`;
379
310
  }
380
311
  }
381
- b("arcgis-utility-network-trace-inputs-next", U);
312
+ g("arcgis-utility-network-trace-inputs-next", F);
382
313
  export {
383
- U as ArcgisUtilityNetworkTraceInputsNext
314
+ F as ArcgisUtilityNetworkTraceInputsNext
384
315
  };
@@ -1,16 +1,11 @@
1
1
  import "@esri/calcite-components/components/calcite-notice";
2
- import "@esri/calcite-components/components/calcite-combobox-item";
3
- import "@esri/calcite-components/components/calcite-block";
4
- import "@esri/calcite-components/components/calcite-combobox";
2
+ import "../arcgis-utility-network-trace-configuration-picker/index.js";
5
3
  import "../arcgis-utility-network-picker/index.js";
6
4
  import "@esri/calcite-components/components/calcite-flow-item";
7
5
  import "../arcgis-features-next/index.js";
8
6
  import "@esri/calcite-components/components/calcite-input-message";
9
7
  import "@esri/calcite-components/components/calcite-button";
10
8
  import "../arcgis-utility-network-trace-location-next/index.js";
11
- import "@esri/calcite-components/components/calcite-input";
12
- import "@esri/calcite-components/components/calcite-loader";
13
- import "../arcgis-utility-network-subnetwork-info-next/index.js";
14
9
  import "@esri/calcite-components/components/calcite-block-group";
15
10
  import "@esri/calcite-components/components/calcite-panel";
16
11
  import "@esri/calcite-components/components/calcite-flow";
@@ -17,7 +17,7 @@ import M from "@arcgis/core/views/3d/environment/FoggyWeather.js";
17
17
  import S from "@arcgis/core/views/3d/environment/RainyWeather.js";
18
18
  import $ from "@arcgis/core/views/3d/environment/SnowyWeather.js";
19
19
  import k from "@arcgis/core/views/3d/environment/SunnyWeather.js";
20
- import { b as K, a as N } from "../../chunks/keyboard-utils.js";
20
+ import { c as K, a as N } from "../../chunks/keyboard-utils.js";
21
21
  const q = T`.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}:host{width:300px;min-width:180px}.root{position:relative;padding:var(--arcgis-internal-padding);container-type:inline-size;width:100%}.content{display:flex;flex-direction:column;gap:var(--calcite-spacing-lg)}.content.error{visibility:hidden;height:0;overflow:hidden;pointer-events:none}.weather-type-selector{--button-gap: var(--calcite-spacing-sm);--button-size-min: 24px;--button-size-s-max: 32px;--button-size-m-max: 64px;display:flex;flex-wrap:wrap;align-items:center;justify-content:center;width:100%;min-block-size:var(--button-row-min-height, 0);margin-inline:auto;gap:var(--button-gap);>calcite-button{display:block;position:relative;flex-shrink:0;flex-grow:0;aspect-ratio:1 / 1;height:fit-content;--total-gap: calc((var(--weather-type-count) - 1) * var(--button-gap));--basis: clamp( var(--button-size-min), calc((100% - var(--total-gap)) / var(--weather-type-count)), var(--button-size-m-max) );flex-basis:round(down,var(--basis),1px)}}@container (max-width: 280px){.weather-type-selector{--button-gap: var(--calcite-spacing-xs)}}@container (max-width: 220px){.weather-type-selector{--button-gap: var(--calcite-spacing-xxs)}}.options{display:flex;flex-direction:column;gap:var(--calcite-spacing-md);calcite-label{--calcite-label-margin-bottom: 0}&.hidden{display:none}}.warning-title{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}`;
22
22
  var G = Object.defineProperty, Z = Object.getOwnPropertyDescriptor, d = (o, e, t, i) => {
23
23
  for (var r = i > 1 ? void 0 : i ? Z(e, t) : e, n = o.length - 1, a; n >= 0; n--)