@arcgis/map-components 5.2.0-next.85 → 5.2.0-next.87

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 (113) hide show
  1. package/dist/cdn/3IY3D62Z.js +2 -0
  2. package/dist/cdn/{YXA3DG4H.js → 3W4IH5LQ.js} +1 -1
  3. package/dist/cdn/5L5UYV3H.js +2 -0
  4. package/dist/cdn/6NGRUK5C.js +2 -0
  5. package/dist/cdn/BPHJ4VBC.js +2 -0
  6. package/dist/cdn/CFB4ZR5F.js +2 -0
  7. package/dist/cdn/D6MRDGUC.js +2 -0
  8. package/dist/cdn/EFUTKX2O.js +2 -0
  9. package/dist/cdn/{PNSES5YC.js → EGUVICJF.js} +1 -1
  10. package/dist/cdn/FXK4G4VK.js +2 -0
  11. package/dist/cdn/GNVPXNTX.js +2 -0
  12. package/dist/cdn/HTEIMRY6.js +2 -0
  13. package/dist/cdn/I2D75Q7M.js +2 -0
  14. package/dist/cdn/IMG5GOJB.js +2 -0
  15. package/dist/cdn/IOZ5U2X7.js +2 -0
  16. package/dist/cdn/K3N6NHJW.js +2 -0
  17. package/dist/cdn/KN4PG54T.js +2 -0
  18. package/dist/cdn/{56NINR5L.js → KNMMVZVV.js} +1 -1
  19. package/dist/cdn/M66G67OC.js +2 -0
  20. package/dist/cdn/MQX2F54G.js +2 -0
  21. package/dist/cdn/NFWFRHUT.js +2 -0
  22. package/dist/cdn/PCEAIDCB.js +2 -0
  23. package/dist/cdn/PMU2DO3P.js +2 -0
  24. package/dist/cdn/{LTGPFC6N.js → PWEF6IKF.js} +1 -1
  25. package/dist/cdn/{HWLBIEGO.js → RS5BEGC5.js} +1 -1
  26. package/dist/cdn/{K4V76SMR.js → TAIZWQYU.js} +1 -1
  27. package/dist/cdn/TCMRGJTC.js +2 -0
  28. package/dist/cdn/TPG3TU6B.js +2 -0
  29. package/dist/cdn/TSZ26CSX.js +2 -0
  30. package/dist/cdn/V4W4ZP6M.js +2 -0
  31. package/dist/cdn/XM2OBGXW.js +2 -0
  32. package/dist/cdn/assets/presentation/t9n/messages.en.json +1 -1
  33. package/dist/cdn/assets/utility-network-picker/t9n/messages.en.json +1 -0
  34. package/dist/cdn/index.js +1 -1
  35. package/dist/cdn/main.css +1 -1
  36. package/dist/chunks/constants2.js +6 -0
  37. package/dist/chunks/useArcgisViewReadyError.js +42 -27
  38. package/dist/components/arcgis-aggregated-features/customElement.js +0 -1
  39. package/dist/components/arcgis-bookmarks/customElement.js +0 -1
  40. package/dist/components/arcgis-feature-next/customElement.js +4 -4
  41. package/dist/components/arcgis-features/customElement.js +3 -3
  42. package/dist/components/arcgis-features-next/customElement.js +98 -86
  43. package/dist/components/arcgis-features-next/index.js +0 -1
  44. package/dist/components/arcgis-grid-controls/customElement.js +1 -1
  45. package/dist/components/arcgis-link-chart/customElement.d.ts +9 -5
  46. package/dist/components/arcgis-link-chart/customElement.js +24 -18
  47. package/dist/components/arcgis-map/customElement.d.ts +9 -5
  48. package/dist/components/arcgis-map/customElement.js +19 -13
  49. package/dist/components/arcgis-oriented-imagery-viewer-non-panoramic-viewer/customElement.js +0 -2
  50. package/dist/components/arcgis-oriented-imagery-viewer-panoramic-viewer/customElement.js +15 -16
  51. package/dist/components/arcgis-paste/customElement.js +0 -1
  52. package/dist/components/arcgis-popup/customElement.d.ts +7 -7
  53. package/dist/components/arcgis-popup/customElement.js +10 -13
  54. package/dist/components/arcgis-presentation/PresentationViewModel.d.ts +6 -0
  55. package/dist/components/arcgis-presentation/customElement.d.ts +8 -6
  56. package/dist/components/arcgis-presentation/customElement.js +206 -165
  57. package/dist/components/arcgis-presentation/index.js +2 -0
  58. package/dist/components/arcgis-presentation-captions/customElement.js +4 -4
  59. package/dist/components/arcgis-presentation-slide-list/customElement.js +49 -0
  60. package/dist/components/arcgis-presentation-slide-list/index.js +3 -0
  61. package/dist/components/arcgis-scene/customElement.d.ts +9 -5
  62. package/dist/components/arcgis-scene/customElement.js +21 -15
  63. package/dist/components/arcgis-template-image/customElement.js +0 -1
  64. package/dist/components/arcgis-time-bar/customElement.js +1 -1
  65. package/dist/components/arcgis-utility-network-picker/customElement.d.ts +56 -0
  66. package/dist/components/arcgis-utility-network-picker/customElement.js +91 -0
  67. package/dist/components/arcgis-utility-network-picker/index.d.ts +1 -0
  68. package/dist/components/arcgis-utility-network-picker/index.js +7 -0
  69. package/dist/components/arcgis-utility-network-trace-analysis/customElement.js +0 -1
  70. package/dist/components/arcgis-utility-network-trace-analysis-next/customElement.js +0 -1
  71. package/dist/components/arcgis-utility-network-trace-inputs-next/customElement.js +123 -140
  72. package/dist/components/arcgis-utility-network-trace-inputs-next/index.js +2 -1
  73. package/dist/components/arcgis-utility-network-trace-results/customElement.js +0 -2
  74. package/dist/components/arcgis-utility-network-trace-results-next/customElement.js +0 -2
  75. package/dist/components/arcgis-utility-network-validate-network-topology/customElement.js +0 -2
  76. package/dist/components/arcgis-version-management-service-item/customElement.js +3 -4
  77. package/dist/components/arcgis-video/customElement.d.ts +5 -3
  78. package/dist/components/arcgis-video-player-actions-group/customElement.js +6 -6
  79. package/dist/components/arcgis-video-player-controls-group/customElement.js +1 -1
  80. package/dist/docs/api.json +1 -1
  81. package/dist/docs/docs.json +1 -1
  82. package/dist/docs/vscode.html-custom-data.json +1 -1
  83. package/dist/docs/web-types.json +1 -1
  84. package/dist/index.d.ts +10 -0
  85. package/dist/loader.js +4 -2
  86. package/dist/types/lumina.d.ts +9 -2
  87. package/dist/types/preact.d.ts +10 -2
  88. package/dist/types/react.d.ts +11 -2
  89. package/dist/types/stencil.d.ts +9 -2
  90. package/package.json +7 -7
  91. package/dist/cdn/42TPQKQZ.js +0 -2
  92. package/dist/cdn/4T6ECCFH.js +0 -2
  93. package/dist/cdn/4UBDCXSK.js +0 -2
  94. package/dist/cdn/6MEC4BFN.js +0 -2
  95. package/dist/cdn/AJ7XRBWN.js +0 -2
  96. package/dist/cdn/ARVN7QLQ.js +0 -2
  97. package/dist/cdn/BVDQQOCR.js +0 -2
  98. package/dist/cdn/DKBC3UMW.js +0 -2
  99. package/dist/cdn/DSIL7TYR.js +0 -2
  100. package/dist/cdn/G2PAKIMS.js +0 -2
  101. package/dist/cdn/JOOHHKWH.js +0 -2
  102. package/dist/cdn/KS5TQB2A.js +0 -2
  103. package/dist/cdn/NAQYIBE5.js +0 -2
  104. package/dist/cdn/NBYN44GP.js +0 -2
  105. package/dist/cdn/NGB5WVIG.js +0 -2
  106. package/dist/cdn/PBNP6WFU.js +0 -2
  107. package/dist/cdn/RDARV7HC.js +0 -2
  108. package/dist/cdn/RXAUCQQC.js +0 -2
  109. package/dist/cdn/S22ZRUS7.js +0 -2
  110. package/dist/cdn/SVOAX4K6.js +0 -2
  111. package/dist/cdn/TI4BX367.js +0 -2
  112. package/dist/cdn/W5WXJT7N.js +0 -2
  113. package/dist/cdn/YTC3XBSZ.js +0 -2
@@ -1,28 +1,28 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import { c as y } from "../../chunks/runtime.js";
2
+ import { c as b } 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
5
  import { watch as w } from "@arcgis/core/core/reactiveUtils.js";
6
- import { substitute as k } from "@arcgis/core/intl.js";
7
- import S from "@arcgis/core/layers/GraphicsLayer.js";
8
- import T from "@arcgis/core/networks/support/UNTraceConfiguration.js";
9
- import N from "@arcgis/core/rest/networks/support/TraceLocation.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
10
  import g from "@arcgis/core/views/interactive/snapping/FeatureSnappingLayerSource.js";
11
11
  import $ from "@arcgis/core/widgets/Sketch/SketchViewModel.js";
12
12
  import { LitElement as C, createEvent as l } from "@arcgis/lumina";
13
- import { usePropertyChange as L } from "@arcgis/lumina/controllers";
14
- import { log as h, composeMissingPropertyMessage as _, composeEmptyPropertyMessage as v } from "@arcgis/toolkit/log";
15
- import { css as x, html as s } from "lit";
16
- import { u as I } from "../../chunks/useT9n.js";
17
- import { l as p } from "../../chunks/async-utils.js";
18
- import { a as F, i as f, c as E, q as b, b as U } from "../../chunks/layer-utils.js";
19
- const P = x`: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 A extends C {
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 {
21
21
  constructor() {
22
- super(...arguments), this._messages = I({ 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.#l = 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 = l(), this.arcgisTraceInputsChange = l(), this.arcgisTraceLocationSelectEnd = l(), this.arcgisTraceLocationSelectStart = l(), this.arcgisUtilityNetworkChange = l();
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();
23
23
  }
24
24
  static {
25
- this.properties = { _selectedFeature: 16, _candidateFeatures: 16, _compatibleSubnetworkNames: 16, _subnetworksTable: 16, _namedTraceConfigurations: 16, _utilityNetworks: 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 };
25
+ 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 };
26
26
  }
27
27
  static {
28
28
  this.styles = P;
@@ -34,7 +34,7 @@ class A extends C {
34
34
  this._traceConfiguration && (this._traceConfiguration.subnetworkName = e);
35
35
  }
36
36
  #h;
37
- get #_() {
37
+ get #v() {
38
38
  const { view: e } = this;
39
39
  return e?.map ? e.map.allLayers.toArray().concat(e.map.allTables.toArray()) : [];
40
40
  }
@@ -46,11 +46,11 @@ class A extends C {
46
46
  #o;
47
47
  #b;
48
48
  #i;
49
- #c;
50
- #y;
49
+ #n;
51
50
  #w;
51
+ #y;
52
52
  #k;
53
- #l;
53
+ #c;
54
54
  get #S() {
55
55
  return !this.isSubnetworkNameTraceSelected;
56
56
  }
@@ -58,7 +58,7 @@ class A extends C {
58
58
  const e = this.selectedNamedTraceConfiguration?.traceType;
59
59
  return e === "path" || e === "circuit";
60
60
  }
61
- get #v() {
61
+ get #_() {
62
62
  const e = this.selectedUtilityNetwork?.dataElement?.domainNetworks;
63
63
  return e ? e.map((t) => t.subnetworkLayerId).filter((t) => t != null && t > -1) : [];
64
64
  }
@@ -80,42 +80,42 @@ class A extends C {
80
80
  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;
81
81
  }
82
82
  async destroy() {
83
- this.#A(m), this.#$(), this.#t?.cancel(), this.#c?.destroy(), this.#y?.destroy(), this.#w?.destroy(), this.#k?.destroy(), await this.manager.destroy();
83
+ this.#A(m), this.#C(), this.#t?.cancel(), this.#n?.destroy(), this.#w?.destroy(), this.#y?.destroy(), this.#k?.destroy(), await this.manager.destroy();
84
84
  }
85
85
  load() {
86
- this.#N(), this.manager.onLifecycle(() => [
87
- w(() => this.view?.map, () => this.#N())
86
+ this.#$(), this.manager.onLifecycle(() => [
87
+ w(() => this.view?.map, () => this.#$())
88
88
  ]);
89
89
  }
90
90
  willUpdate(e) {
91
- e.has("_utilityNetworks") && this.#K(), e.has("selectedUtilityNetwork") && (this.arcgisUtilityNetworkChange.emit(), this.#H()), e.has("selectedNamedTraceConfiguration") && (this.arcgisTraceInputsChange.emit(), this.arcgisSelectedNamedTraceConfigurationChange.emit(), this.#z());
91
+ e.has("selectedUtilityNetwork") && (this.arcgisUtilityNetworkChange.emit(), this.#H()), e.has("selectedNamedTraceConfiguration") && (this.arcgisTraceInputsChange.emit(), this.arcgisSelectedNamedTraceConfigurationChange.emit(), this.#z());
92
92
  }
93
93
  disconnectedCallback() {
94
94
  super.disconnectedCallback(), this.#u.clear();
95
95
  }
96
- #N() {
96
+ #$() {
97
97
  if (this._error = void 0, !this.view?.map) {
98
- this._error = this._messages.errors.noView, this._utilityNetworks = void 0;
98
+ this._error = this._messages.errors.noView;
99
99
  return;
100
100
  }
101
101
  const e = this.view.map;
102
- this.#J(e), this.#B(e);
102
+ this.#M(e);
103
103
  }
104
104
  #I(e) {
105
- e && (this.#y = e);
105
+ e && (this.#w = e);
106
106
  }
107
107
  #F(e) {
108
- e && (this.#w = e);
108
+ e && (this.#y = e);
109
109
  }
110
110
  #E(e) {
111
111
  e && (this.#k = e);
112
112
  }
113
- #U(e) {
114
- e && (this.#c = e);
113
+ #P(e) {
114
+ e && (this.#n = e);
115
115
  }
116
116
  #m(e) {
117
117
  const t = e.flagProperties.selectedTerminals;
118
- return e.flagProperties.terminalConfiguration && t?.size ? Array.from(t, (i) => new N({
118
+ return e.flagProperties.terminalConfiguration && t?.size ? Array.from(t, (i) => new T({
119
119
  type: e.traceLocation.type,
120
120
  isFilterBarrier: e.traceLocation.isFilterBarrier,
121
121
  globalId: e.traceLocation.globalId,
@@ -123,7 +123,7 @@ class A extends C {
123
123
  terminalId: i
124
124
  })) : [e.traceLocation];
125
125
  }
126
- #$() {
126
+ #C() {
127
127
  const { view: e } = this;
128
128
  this.#r.forEach((t) => {
129
129
  t.spatialProperties.flagGraphic && e?.graphics.remove(t.spatialProperties.flagGraphic);
@@ -133,32 +133,32 @@ class A extends C {
133
133
  t.spatialProperties.flagGraphic && e?.graphics.remove(t.spatialProperties.flagGraphic);
134
134
  }), this.#o.removeAll();
135
135
  }
136
- #P(e, t) {
136
+ #D(e, t) {
137
137
  if (!e.findLayerById(t)) {
138
- const a = new S({
138
+ const a = new k({
139
139
  id: t,
140
140
  listMode: "hide",
141
141
  title: t
142
142
  });
143
- F(this.view, a);
143
+ I(this.view, a);
144
144
  }
145
145
  }
146
- #D(e, t) {
146
+ #U(e, t) {
147
147
  const i = e.findLayerById(t);
148
- return f(i) ? (e.reorder(i, e.layers.length - 1), i) : null;
148
+ return p(i) ? (e.reorder(i, e.layers.length - 1), i) : null;
149
149
  }
150
150
  #A(e) {
151
151
  if (!this.view?.map)
152
152
  return;
153
153
  const { map: t } = this.view, i = t?.findLayerById(e);
154
- i && f(i) && t?.remove(i);
154
+ i && p(i) && t?.remove(i);
155
155
  }
156
- #C() {
156
+ #N() {
157
157
  if (!this.#t)
158
158
  return;
159
159
  const e = new c();
160
160
  this.#a?.forEach((t) => {
161
- E(t) ? t.sublayers.forEach((i) => {
161
+ F(t) ? t.sublayers.forEach((i) => {
162
162
  e.add(new g({
163
163
  layer: i,
164
164
  enabled: !0
@@ -172,15 +172,15 @@ class A extends C {
172
172
  featureSources: e
173
173
  };
174
174
  }
175
- #M(e) {
176
- const { view: t } = this, i = this.#D(e, m);
175
+ #B(e) {
176
+ const { view: t } = this, i = this.#U(e, m);
177
177
  return new $({
178
178
  layer: i,
179
179
  view: t
180
180
  });
181
181
  }
182
- #B(e) {
183
- this.#P(e, m), this.#t = this.#M(e), this.#C();
182
+ #M(e) {
183
+ this.#D(e, m), this.#t = this.#B(e), this.#N();
184
184
  }
185
185
  #G() {
186
186
  this.#e = void 0, this._subnetworksTable = void 0, this._compatibleSubnetworkNames = [];
@@ -192,10 +192,10 @@ class A extends C {
192
192
  const { _subnetworksTable: e } = this;
193
193
  if (!e)
194
194
  return;
195
- const t = e.fieldsIndex.get("SUBNETWORKNAME"), i = (o, n, u) => n === 0 || o.getAttribute(t.name) !== u[n - 1].getAttribute(t.name), a = e.createQuery();
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
196
  a.gdbVersion = this.selectedUtilityNetwork?.gdbVersion, a.where = this.#O(), a.outFields = [t.name], a.orderByFields = [t.name];
197
- const { features: r } = await b(e, a, void 0, !1);
198
- this._compatibleSubnetworkNames = r.filter(i).map((o) => o.getAttribute(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
199
  }
200
200
  #O() {
201
201
  const e = this._traceConfiguration, t = `DOMAINNETWORKNAME = '${e.domainNetworkName}'`, i = `TIERNAME = '${e.tierName}'`;
@@ -207,15 +207,15 @@ class A extends C {
207
207
  #j(e) {
208
208
  const t = this.selectedUtilityNetwork?.sharedNamedTraceConfigurations.find((i) => i.globalId === e);
209
209
  if (!t) {
210
- h("error", this, "`traceConfig` not found in `selectedUtilityNetwork.sharedNamedTraceConfigurations`");
210
+ u("error", this, "`traceConfig` not found in `selectedUtilityNetwork.sharedNamedTraceConfigurations`");
211
211
  return;
212
212
  }
213
213
  this.selectedNamedTraceConfiguration = t;
214
214
  }
215
215
  async #z() {
216
216
  const { selectedNamedTraceConfiguration: e } = this;
217
- if (!(e?.traceConfiguration instanceof T)) {
218
- h("error", this, _("selectedNamedTraceConfiguration.traceConfiguration")), this._traceConfiguration = void 0;
217
+ if (!(e?.traceConfiguration instanceof S)) {
218
+ u("error", this, L("selectedNamedTraceConfiguration.traceConfiguration")), this._traceConfiguration = void 0;
219
219
  return;
220
220
  }
221
221
  this._traceConfiguration = e.traceConfiguration.clone(), this.isSubnetworkNameTraceSelected && (this._subnetworkNamesState = "loading", await this.#R(this._traceConfiguration), this._subnetworkNamesState = "ready");
@@ -225,29 +225,16 @@ class A extends C {
225
225
  try {
226
226
  e && !e.loaded && await e.load();
227
227
  } catch (t) {
228
- p(t, this, "Error while loading the selected utility network");
228
+ x(t, this, "Error while loading the selected utility network");
229
229
  }
230
- this.#G(), this.#W(), this.#Q(), this.#$();
230
+ this.#G(), this.#W(), this.#Q(), this.#C();
231
231
  }
232
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) : h("error", this, "The selected utility network has no compatible named trace configurations.");
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.");
234
234
  }
235
235
  #Q() {
236
236
  const { selectedUtilityNetwork: e } = this;
237
- this.#a = new c(this.#_.filter((t) => e?.isUtilityLayer(t) && !this.#v.includes(t.layerId))), this.#C();
238
- }
239
- #K() {
240
- const { _utilityNetworks: e, selectedUtilityNetwork: t } = this;
241
- e?.length ? (!t || !e.includes(t)) && (this.selectedUtilityNetwork = e.at(0)) : (h("error", this, v("_utilityNetworks")), this.selectedUtilityNetwork = void 0, this._error = this._messages.errors.noUtilityNetwork);
242
- }
243
- async #J(e) {
244
- try {
245
- e.loaded || await e.load();
246
- } catch (t) {
247
- p(t, this, "Error while loading `view.map`");
248
- } finally {
249
- this._utilityNetworks = e.utilityNetworks || new c();
250
- }
237
+ this.#a = new c(this.#v.filter((t) => e?.isUtilityLayer(t) && !this.#_.includes(t.layerId))), this.#N();
251
238
  }
252
239
  #g(e) {
253
240
  if (e.stopPropagation(), this.arcgisTraceLocationSelectStart.emit(e.detail).defaultPrevented) {
@@ -256,7 +243,7 @@ class A extends C {
256
243
  }
257
244
  this._activeTraceLocationType = e?.target?.traceLocationType, this.mode = "add-spatial-instructions";
258
245
  }
259
- #X(e) {
246
+ #K(e) {
260
247
  if (e == null)
261
248
  return;
262
249
  const t = this.#u, i = this.#a, a = t.get(e);
@@ -264,138 +251,134 @@ class A extends C {
264
251
  return a;
265
252
  if (!i)
266
253
  return;
267
- const r = i.find((o) => "layerId" in o && o.layerId === e);
268
- return r && t.set(e, r), r;
254
+ const s = i.find((o) => "layerId" in o && o.layerId === e);
255
+ return s && t.set(e, s), s;
269
256
  }
270
- async #Y(e, t) {
257
+ async #J(e, t) {
271
258
  const i = e.createQuery();
272
- i.gdbVersion = this.selectedUtilityNetwork?.gdbVersion, i.objectIds = t.map((r) => r.getObjectId()), i.outFields = ["*"];
273
- const { features: a } = await b(e, i);
274
- return a.forEach((r) => {
275
- if (!r.getEffectivePopupTemplate(this.#h)) {
276
- const o = r.layer;
277
- r.popupTemplate = o.createPopupTemplate();
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();
278
265
  }
279
266
  }), a;
280
267
  }
281
- async #Z(e) {
268
+ async #X(e) {
282
269
  const t = /* @__PURE__ */ new Map(), i = [];
283
270
  return e.forEach((a) => {
284
- const r = U(a.layer) ? a.layer.parent : a.layer;
285
- if (r) {
286
- const o = this.#X(r.layerId);
271
+ const s = E(a.layer) ? a.layer.parent : a.layer;
272
+ if (s) {
273
+ const o = this.#K(s.layerId);
287
274
  if (o) {
288
275
  const n = t.get(o) || [];
289
276
  n.push(a), t.set(o, n);
290
277
  }
291
278
  }
292
279
  }), await Promise.all(Array.from(t.keys()).map(async (a) => {
293
- const r = t.get(a) ?? [], o = await this.#Y(a, r);
280
+ const s = t.get(a) ?? [], o = await this.#J(a, s);
294
281
  i.push(...o);
295
282
  })), i;
296
283
  }
297
284
  async #p(e) {
298
- return this._exceedDisplayLimit = e.length > this.#l, this._candidateFeatures = await this.#Z(e.slice(0, this.#l)), this._candidateFeatures.length === 0 ? (this.#d(), 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);
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);
299
286
  }
300
287
  #f(e) {
301
- e.stopPropagation(), this.arcgisTraceLocationSelectEnd.emit(), this._activeTraceLocationType = void 0, this.mode = "default", this.#d();
288
+ e.stopPropagation(), this.arcgisTraceLocationSelectEnd.emit(), this._activeTraceLocationType = void 0, this.mode = "default", this.#l();
302
289
  }
303
- #d(e) {
304
- e?.stopPropagation(), this.#c?.clear(), this.#L(), this.#t?.cancel();
290
+ #l(e) {
291
+ e?.stopPropagation(), this.#n?.clear(), this.#L(), this.#t?.cancel();
305
292
  }
306
293
  #L() {
307
294
  this.mode = "default", this._candidateFeatures = [], this._selectedFeature = void 0, this.#i?.reject(), this.#i = null;
308
295
  }
309
- #ee() {
310
- const e = this.#i, t = this.#c, { _selectedFeature: i } = this;
296
+ #Y() {
297
+ const e = this.#i, t = this.#n, { _selectedFeature: i } = this;
311
298
  if (e && t) {
312
299
  if (!i)
313
300
  return;
314
301
  e.resolve(i), this.#i = null;
315
302
  }
316
303
  }
317
- #n(e, t = !1, i) {
318
- return s`<calcite-notice .closable=${t} kind=danger open scale=s width=auto .icon=${i}><div slot=message>${e}</div></calcite-notice>`;
319
- }
320
- #te() {
321
- return s`<calcite-loader label=loading></calcite-loader>`;
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>`;
322
306
  }
323
- #ie() {
324
- const e = this._namedTraceConfigurations.map((i) => s`<calcite-combobox-item .value=${i.globalId} .heading=${i.title} .selected=${i.globalId === this.selectedNamedTraceConfiguration?.globalId}></calcite-combobox-item>`), t = this._messages.labels.traceConfiguration;
325
- return s`<calcite-block .heading=${t} .label=${t} expanded><calcite-combobox .label=${t} selection-mode=single-persist @calciteComboboxChange=${({ currentTarget: i }) => {
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 }) => {
326
310
  const a = i.selectedItems[0]?.value;
327
311
  this.#j(a);
328
312
  }}>${e}</calcite-combobox></calcite-block>`;
329
313
  }
330
- #ae() {
331
- const e = this._messages.labels.utilityNetwork, t = this._utilityNetworks?.map((i) => s`<calcite-combobox-item .value=${i.id} .heading=${i.title || i.id} .selected=${i.id === this.selectedUtilityNetwork?.id}></calcite-combobox-item>`);
332
- return s`<calcite-block .heading=${e} .label=${e} expanded><calcite-combobox .label=${e} selection-mode=single-persist @calciteComboboxChange=${({ currentTarget: i }) => {
333
- const a = i.selectedItems[0]?.value;
334
- this.selectedUtilityNetwork?.id !== a && (this.selectedUtilityNetwork = this._utilityNetworks?.find((r) => r.id === a));
335
- }}>${t}</calcite-combobox></calcite-block>`;
314
+ #ee() {
315
+ const { selectedUtilityNetwork: e, view: t } = this;
316
+ return r`<arcgis-utility-network-picker .selectedUtilityNetwork=${e} .view=${t} @arcgisPropertyChange=${(i) => {
317
+ i.detail.name === "selectedUtilityNetwork" && (this.selectedUtilityNetwork = i.target.selectedUtilityNetwork);
318
+ }}></arcgis-utility-network-picker>`;
336
319
  }
337
- #re() {
338
- const { _error: e, selectedUtilityNetwork: t } = this, { noView: i, noUtilityNetwork: a } = this._messages.errors;
339
- let r;
340
- return e === i || e === a ? r = this.#n(e, !1, "exclamation-mark-triangle") : !t?.loaded && !t?.loadError ? r = this.#te() : r = this.#pe(), s`<calcite-flow-item .selected=${this.mode === "default"}>${r}</calcite-flow-item>`;
320
+ #te() {
321
+ const { _error: e } = this, { noView: t } = this._messages.errors;
322
+ 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>`;
341
324
  }
342
- #se() {
325
+ #ie() {
343
326
  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;
344
- return s`<calcite-flow-item .selected=${t === "add-spatial-instructions"} .heading=${i} @calciteFlowItemBack=${(a) => this.#d(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>`;
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>`;
345
328
  }
346
- #oe() {
329
+ #ae() {
347
330
  const { _activeTraceLocationType: e, _candidateFeatures: t, _messages: i } = this;
348
331
  if (!t.length)
349
332
  return this.mode = "default", null;
350
- 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";
351
- return s`<arcgis-features-next .autoDestroyDisabled=${this.autoDestroyDisabled} .defaultPopupTemplateEnabled=${this.#h} .features=${this._candidateFeatures} .featureMenuTitle=${a} .hideActionBar=${this.hideActionBar} hide-select-feature .initialDisplayMode=${r} @arcgisClose=${() => this.#L()} @arcgisPropertyChange=${this.#x} open .referenceElement=${this.referenceElement} .view=${this.view} ${d(this.#U)}></arcgis-features-next>`;
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>`;
352
335
  }
353
- #ne() {
354
- const { mode: e, _messages: t, _selectedFeature: i, selectedUtilityNetwork: a } = this, r = e === "add-spatial-feature" && this._exceedDisplayLimit && !i, o = k(t.warnings.exceededDisplayLimit, {
355
- limit: this.#l.toString()
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, {
338
+ limit: this.#c.toString()
356
339
  }), n = i ? !(a?.isUtilityLayer(i.layer) ?? !0) : !0;
357
- 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.#d()} slot=footer>${t.buttons.cancel}</calcite-button>${e === "add-spatial-feature" && s`<calcite-button width=full slot=footer appearance=solid @click=${() => this.#ee()} .disabled=${n}>${t.buttons.add}</calcite-button>` || ""}`;
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>` || ""}`;
358
341
  }
359
- #ce() {
360
- return s`<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>`;
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>`;
361
344
  }
362
- #le() {
363
- return s`<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>`;
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>`;
364
347
  }
365
- #de() {
366
- return s`<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>`;
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>`;
367
350
  }
368
- #he() {
351
+ #ce() {
369
352
  const { _messages: e } = this;
370
- return s`<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>`;
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>`;
371
354
  }
372
- #ue() {
373
- return s`<calcite-combobox .label=${this._messages.labels.subnetworkName} selection-mode=single-persist @calciteComboboxChange=${({ currentTarget: e }) => {
355
+ #le() {
356
+ return r`<calcite-combobox .label=${this._messages.labels.subnetworkName} selection-mode=single-persist @calciteComboboxChange=${({ currentTarget: e }) => {
374
357
  const t = e.selectedItems[0]?.value;
375
358
  this.#e = t;
376
- }}>${this._compatibleSubnetworkNames.map((e) => s`<calcite-combobox-item .value=${e} .heading=${e} .selected=${e === this.#e}></calcite-combobox-item>`)}</calcite-combobox>`;
359
+ }}>${this._compatibleSubnetworkNames.map((e) => r`<calcite-combobox-item .value=${e} .heading=${e} .selected=${e === this.#e}></calcite-combobox-item>`)}</calcite-combobox>`;
377
360
  }
378
- #me() {
361
+ #de() {
379
362
  const { _messages: e } = this, t = e.labels.subnetworkName;
380
- return this.isSubnetworkNameTraceSelected ? this._subnetworkNamesState === "loading" ? s`<calcite-loader class="inline-loader" label=loading scale=s></calcite-loader>` : this._compatibleSubnetworkNames.length ? s`<calcite-block .heading=${t} .label=${t} expanded>${this._compatibleSubnetworkNames.length > D ? this.#he() : this.#ue()}</calcite-block>` : this.#n(e.errors.noCompatibleSubnetworks, !1, "exclamation-mark-triangle") : null;
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;
381
364
  }
382
- #ge() {
365
+ #he() {
383
366
  const { selectedNamedTraceConfiguration: e } = this;
384
- return this._traceConfiguration && e?.traceType && this.#b.has(e.traceType) ? s`<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;
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;
385
368
  }
386
- #pe() {
387
- const { _messages: e } = this, { noTraceConfiguration: t, noNamedTraceConfigurations: i, utilityNetworkLoadFailed: a } = e.errors, r = this._utilityNetworks && this._utilityNetworks.length > 1 ? this.#ae() : null;
388
- let o;
389
- this.selectedUtilityNetwork?.loadError ? o = this.#n(a, !1, "exclamation-mark-triangle") : this._namedTraceConfigurations.length || (o = this.#n(i, !1, "exclamation-mark-triangle"));
390
- const n = s`${this.#ie()}${this.#ge()}${this.#me()}`, u = this.traceConfiguration ? s`${this.#S ? this.#ce() : null}${this.#T ? this.#le() : null}${this.#de()}` : this.#n(t, !1, "exclamation-mark-triangle");
391
- return s`<calcite-block-group .label=${e.labels.traceInputs}>${r}${o ?? s`${n}${u}`}</calcite-block-group>`;
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>`;
392
375
  }
393
376
  render() {
394
377
  const { mode: e } = this;
395
- return s`<calcite-panel>${e === "add-spatial-feature" ? this.#oe() : null}<calcite-flow .hidden=${e === "add-spatial-feature"}>${this.#re()}${this.#se()}</calcite-flow>${e !== "default" ? this.#ne() : null}</calcite-panel>`;
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>`;
396
379
  }
397
380
  }
398
- y("arcgis-utility-network-trace-inputs-next", A);
381
+ b("arcgis-utility-network-trace-inputs-next", U);
399
382
  export {
400
- A as ArcgisUtilityNetworkTraceInputsNext
383
+ U as ArcgisUtilityNetworkTraceInputsNext
401
384
  };
@@ -1,14 +1,15 @@
1
1
  import "@esri/calcite-components/components/calcite-notice";
2
- import "@esri/calcite-components/components/calcite-loader";
3
2
  import "@esri/calcite-components/components/calcite-combobox-item";
4
3
  import "@esri/calcite-components/components/calcite-block";
5
4
  import "@esri/calcite-components/components/calcite-combobox";
5
+ import "../arcgis-utility-network-picker/index.js";
6
6
  import "@esri/calcite-components/components/calcite-flow-item";
7
7
  import "../arcgis-features-next/index.js";
8
8
  import "@esri/calcite-components/components/calcite-input-message";
9
9
  import "@esri/calcite-components/components/calcite-button";
10
10
  import "../arcgis-utility-network-trace-location-next/index.js";
11
11
  import "@esri/calcite-components/components/calcite-input";
12
+ import "@esri/calcite-components/components/calcite-loader";
12
13
  import "../arcgis-utility-network-subnetwork-info-next/index.js";
13
14
  import "@esri/calcite-components/components/calcite-block-group";
14
15
  import "@esri/calcite-components/components/calcite-panel";
@@ -1,8 +1,6 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
2
  import { c as p } from "../../chunks/runtime.js";
3
3
  import y from "@arcgis/core/Color.js";
4
- import "@arcgis/core/core/Error.js";
5
- import "@arcgis/core/Graphic.js";
6
4
  import { LitElement as f, createEvent as d } from "@arcgis/lumina";
7
5
  import { log as o, composeMissingPropertyMessage as g, composeEmptyPropertyMessage as v } from "@arcgis/toolkit/log";
8
6
  import { css as b, html as l } from "lit";
@@ -2,8 +2,6 @@
2
2
  import { c as p } from "../../chunks/runtime.js";
3
3
  import { ref as h } from "lit/directives/ref.js";
4
4
  import y from "@arcgis/core/Color.js";
5
- import "@arcgis/core/core/Error.js";
6
- import "@arcgis/core/Graphic.js";
7
5
  import { LitElement as f, createEvent as d } from "@arcgis/lumina";
8
6
  import { log as o, composeMissingPropertyMessage as g, composeEmptyPropertyMessage as v } from "@arcgis/toolkit/log";
9
7
  import { css as b, html as l } from "lit";
@@ -2,10 +2,8 @@
2
2
  import { c as N } from "../../chunks/runtime.js";
3
3
  import { css as V, html as r } from "lit";
4
4
  import { getOwningPortalUrl as $, hasUserTypeExtension as _ } from "@arcgis/core/applications/Components/featureUtils.js";
5
- import "@arcgis/core/core/Error.js";
6
5
  import { on as b, watch as w, whenOnce as T } from "@arcgis/core/core/reactiveUtils.js";
7
6
  import A from "@arcgis/core/portal/Portal.js";
8
- import "@arcgis/core/rest/networks/support/ValidateNetworkTopologyResult.js";
9
7
  import { getVersioningStates as E } from "@arcgis/core/versionManagement/utils.js";
10
8
  import { LitElement as U, createEvent as p, nothing as u } from "@arcgis/lumina";
11
9
  import { log as c, composeMissingPropertyMessage as g } from "@arcgis/toolkit/log";
@@ -1,13 +1,12 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
2
  import { c as b } from "../../chunks/runtime.js";
3
3
  import { css as h, html as o } from "lit";
4
- import "@arcgis/core/versionManagement/VersionManager.js";
5
- import { LitElement as p, createEvent as f } from "@arcgis/lumina";
4
+ import { LitElement as f, createEvent as p } from "@arcgis/lumina";
6
5
  import { usePropertyChange as u } from "@arcgis/lumina/controllers";
7
6
  const I = h`calcite-notice{margin-bottom:var(--calcite-space-xs)}`;
8
- class x extends p {
7
+ class x extends f {
9
8
  constructor() {
10
- super(...arguments), this.allowEditingDisabled = !1, this.invalidInitialVersion = !1, this.versioningStateFailedToLoad = !1, this.arcgisInternalManageVersion = f(), this.arcgisPropertyChange = u()("selectedFeatureService");
9
+ super(...arguments), this.allowEditingDisabled = !1, this.invalidInitialVersion = !1, this.versioningStateFailedToLoad = !1, this.arcgisInternalManageVersion = p(), this.arcgisPropertyChange = u()("selectedFeatureService");
11
10
  }
12
11
  static {
13
12
  this.properties = { allowEditingDisabled: 5, invalidInitialVersion: 5, messages: 0, selectedFeatureService: 0, serviceName: 1, serviceUrl: 1, versioningStateFailedToLoad: 5, viewModel: 0 };
@@ -57,9 +57,11 @@ export abstract class ArcgisVideo extends LitElement {
57
57
  */
58
58
  accessor aria: VideoView["aria"];
59
59
  /**
60
- * The light or dark mode used to display the attribution.
61
- * By default, the mode is inherited from the [Calcite's mode](https://developers.arcgis.com/calcite-design-system/core-concepts/#modes).
62
- * You can override the value to style the attribution alongside the map or scene content.
60
+ * The display mode used for the attribution. Defaults to null.
61
+ *
62
+ * Set this property to "auto" to automatically synchronize the attribution with the nearest [Calcite mode](https://developers.arcgis.com/calcite-design-system/core-concepts/#modes). If no Calcite mode is detected, the attribution defaults to light mode. **The "auto" mode was added in version 5.2.**
63
+ *
64
+ * Set this property to "light" or "dark" to explicitly use that mode without synchronization.
63
65
  *
64
66
  * @since 5.0
65
67
  */
@@ -14,17 +14,17 @@ class f extends u {
14
14
  loaded() {
15
15
  this.manager.onLifecycle(() => [
16
16
  d(() => [this.viewModel.state, this.viewModel.playing], () => {
17
- const { state: i, playing: e } = this.viewModel;
18
- this._disabled = i === "not-ready" || i === "waiting", this._playing = e;
17
+ const { state: e, playing: i } = this.viewModel;
18
+ this._disabled = e === "not-ready" || e === "waiting", this._playing = i;
19
19
  }, { initial: !0 }),
20
- d(() => this.viewModel.layer?.isLive, (i) => {
21
- this._isLive = i ?? void 0;
20
+ d(() => this.viewModel.layer?.isLive, (e) => {
21
+ this._isLive = e ?? void 0;
22
22
  }, { initial: !0 })
23
23
  ]);
24
24
  }
25
25
  render() {
26
- const { viewModel: i, messages: e, _disabled: n, _playing: a } = this, s = this._isLive, g = this._direction === "rtl", c = t`<calcite-action .active=${a} alignment=center .disabled=${n} .icon=${a ? "pause-f" : "play-f"} @click=${a ? () => i.pause() : () => i.play()} scale=s .text=${a ? e.pause : e.play}></calcite-action>`, p = s ? void 0 : t`<calcite-action alignment=center .disabled=${n} icon=reverse-f @click=${() => i.seekBackward()} scale=s .text=${e.reverse}></calcite-action>`, m = s ? void 0 : t`<calcite-action alignment=center .disabled=${n} icon=forward-f @click=${() => i.seekForward()} scale=s .text=${e.forward}></calcite-action>`, o = s ? void 0 : t`<calcite-action alignment=center .disabled=${n} icon=beginning-f @click=${() => i.seekToBeginning()} scale=s .text=${e.beginning}></calcite-action>`, l = s ? void 0 : t`<calcite-action alignment=center .disabled=${n} icon=end-f @click=${() => i.seekToEnding()} scale=s .text=${e.end}></calcite-action>`, r = this.inline ? [o, c, l] : [o, p, c, m, l];
27
- return g && r.reverse(), t`<calcite-action-bar expand-disabled layout=horizontal scale=s>${r}</calcite-action-bar>`;
26
+ const { viewModel: e, messages: i, _disabled: n, _playing: a } = this, s = this._isLive, g = this._direction === "rtl", c = t`<calcite-action .active=${a} alignment=center .disabled=${n} .icon=${a ? "pause-f" : "play-f"} @click=${a ? () => e.pause() : () => e.play()} scale=s .text=${a ? i.pause : i.play}></calcite-action>`, p = s ? void 0 : t`<calcite-action alignment=center .disabled=${n} icon=reverse-f @click=${() => e.seekBackward()} scale=s .text=${i.reverse}></calcite-action>`, m = s ? void 0 : t`<calcite-action alignment=center .disabled=${n} icon=forward-f @click=${() => e.seekForward()} scale=s .text=${i.forward}></calcite-action>`, o = s ? void 0 : t`<calcite-action alignment=center .disabled=${n} icon=beginning-f @click=${() => e.seekToBeginning()} scale=s .text=${i.beginning}></calcite-action>`, l = s ? void 0 : t`<calcite-action alignment=center .disabled=${n} icon=end-f @click=${() => e.seekToEnding()} scale=s .text=${i.end}></calcite-action>`, r = this.inline ? [o, c, l] : [o, p, c, m, l];
27
+ return g && r.reverse(), t`<calcite-action-bar expand-toggle-disabled layout=horizontal scale=s>${r}</calcite-action-bar>`;
28
28
  }
29
29
  }
30
30
  v("arcgis-video-player-actions-group", f);