@arcgis/map-components 5.1.0-next.46 → 5.1.0-next.47

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 (98) hide show
  1. package/dist/cdn/{IULGMTSK.js → 3GY55TR6.js} +1 -1
  2. package/dist/cdn/{JJTM5KZ2.js → 5EGS3PEJ.js} +1 -1
  3. package/dist/cdn/{GO5BD6QL.js → 5FJIKNID.js} +1 -1
  4. package/dist/cdn/{UVHZXCAN.js → 6E7H5LPA.js} +2 -2
  5. package/dist/cdn/{HKNVYHER.js → 6XPVHLWQ.js} +1 -1
  6. package/dist/cdn/{G7SRL7WF.js → 76RS6RKB.js} +1 -1
  7. package/dist/cdn/{5C33IP7B.js → A2QPYUE5.js} +1 -1
  8. package/dist/cdn/{FHVFIK44.js → CC77IOI3.js} +1 -1
  9. package/dist/cdn/CYSDIJ4L.js +2 -0
  10. package/dist/cdn/EHPHVZAX.js +2 -0
  11. package/dist/cdn/{PFQ5U7SF.js → ET2U2ZGP.js} +1 -1
  12. package/dist/cdn/{DCRCFVBU.js → F2SNWNAZ.js} +1 -1
  13. package/dist/cdn/FF5VMKLK.js +2 -0
  14. package/dist/cdn/{IPIYZVAJ.js → FWXI6DGS.js} +1 -1
  15. package/dist/cdn/I6PZUSTS.js +2 -0
  16. package/dist/cdn/{2IFKJHFD.js → JFNCIZRD.js} +1 -1
  17. package/dist/cdn/{QEDQOBD7.js → JVFREF7G.js} +2 -2
  18. package/dist/cdn/{SZSOX5MA.js → KWZTLNUH.js} +1 -1
  19. package/dist/cdn/{YQWTCTTH.js → LY77GAJT.js} +1 -1
  20. package/dist/cdn/ODQ4JQEF.js +2 -0
  21. package/dist/cdn/{NBBZRGXH.js → OH3I63ZU.js} +1 -1
  22. package/dist/cdn/{JWJHIBYW.js → P2ABZVPJ.js} +1 -1
  23. package/dist/cdn/PNGKWZJQ.js +2 -0
  24. package/dist/cdn/{XSEIJTVD.js → R42WEZRB.js} +1 -1
  25. package/dist/cdn/{KFG6ZJAZ.js → REQFNQZY.js} +1 -1
  26. package/dist/cdn/{WG4E5DBM.js → RH62B2NE.js} +1 -1
  27. package/dist/cdn/{L3AVJM22.js → T5MRUYOH.js} +1 -1
  28. package/dist/cdn/TBWM3VXL.js +2 -0
  29. package/dist/cdn/{ANRWXBWL.js → VEYOGGAN.js} +1 -1
  30. package/dist/cdn/{Q5Y3DHAC.js → W27U4A3P.js} +1 -1
  31. package/dist/cdn/XPZYTUFI.js +2 -0
  32. package/dist/cdn/{DLB6EEQE.js → YET5HTLQ.js} +1 -1
  33. package/dist/cdn/YXUK3MCB.js +2 -0
  34. package/dist/cdn/index.js +1 -1
  35. package/dist/chunks/layer-utils.js +17 -13
  36. package/dist/components/arcgis-feature-utility-network-association-list/customElement.js +14 -13
  37. package/dist/components/arcgis-feature-utility-network-associations/customElement.js +80 -86
  38. package/dist/components/arcgis-utility-network-aggregated-geometry/customElement.js +1 -1
  39. package/dist/components/arcgis-utility-network-trace-inputs/customElement.js +35 -35
  40. package/dist/components/arcgis-utility-network-trace-location/customElement.js +1 -1
  41. package/dist/components/arcgis-utility-network-trace-results/customElement.js +26 -25
  42. package/dist/components/arcgis-version-management-version-list/customElement.js +1 -1
  43. package/dist/docs/api.json +1 -1
  44. package/dist/docs/docs.json +1 -1
  45. package/dist/docs/web-types.json +1 -1
  46. package/package.json +5 -5
  47. package/dist/cdn/6JYHNX2S.js +0 -2
  48. package/dist/cdn/BE4GRNQV.js +0 -2
  49. package/dist/cdn/CAXI6CJY.js +0 -2
  50. package/dist/cdn/ELTHY6FL.js +0 -2
  51. package/dist/cdn/MFIMBD2E.js +0 -2
  52. package/dist/cdn/NXQA6DOA.js +0 -2
  53. package/dist/cdn/OGE4JCW6.js +0 -2
  54. package/dist/cdn/T34SPRV3.js +0 -2
  55. package/dist/cdn/UKU22VTN.js +0 -2
  56. /package/dist/cdn/{BILSW27K.js → 2HXYJZSB.js} +0 -0
  57. /package/dist/cdn/{5VWD7SPW.js → 37GJW6KT.js} +0 -0
  58. /package/dist/cdn/{VIEEGP7G.js → 4IM2FY5W.js} +0 -0
  59. /package/dist/cdn/{OIJPQ63Z.js → 4MDRPZTG.js} +0 -0
  60. /package/dist/cdn/{ZYZA5VUV.js → 4STAROOM.js} +0 -0
  61. /package/dist/cdn/{YJPCWIX2.js → 5IMWXYL2.js} +0 -0
  62. /package/dist/cdn/{O5S54F3U.js → 5TXE67XV.js} +0 -0
  63. /package/dist/cdn/{E6GYGJ2B.js → BBQPUWRO.js} +0 -0
  64. /package/dist/cdn/{EG3W3ADI.js → BND2TJBO.js} +0 -0
  65. /package/dist/cdn/{WRS3F55Q.js → CJOHGWK6.js} +0 -0
  66. /package/dist/cdn/{6TB2XH3T.js → D5WXOOS3.js} +0 -0
  67. /package/dist/cdn/{UX5YG5TO.js → DMDCKD5U.js} +0 -0
  68. /package/dist/cdn/{PILEMW25.js → DQH27QCF.js} +0 -0
  69. /package/dist/cdn/{HX6XVMJE.js → EP252O27.js} +0 -0
  70. /package/dist/cdn/{H4WIQKA4.js → EVHNFE5I.js} +0 -0
  71. /package/dist/cdn/{T3ZFKRCS.js → EW6V3NZI.js} +0 -0
  72. /package/dist/cdn/{6PWTVRJ6.js → F6BQWE5I.js} +0 -0
  73. /package/dist/cdn/{ULYGZ4D2.js → FLLSBLLE.js} +0 -0
  74. /package/dist/cdn/{PWPTFBHS.js → FQZXILRT.js} +0 -0
  75. /package/dist/cdn/{6ZCH5OTT.js → GHY23IXW.js} +0 -0
  76. /package/dist/cdn/{QY7A4VMP.js → GIGQIUF5.js} +0 -0
  77. /package/dist/cdn/{GPESYF4D.js → GS75FRUR.js} +0 -0
  78. /package/dist/cdn/{6W3OENEK.js → HGAJ2IEN.js} +0 -0
  79. /package/dist/cdn/{YGVSJT3E.js → JKVKP7AW.js} +0 -0
  80. /package/dist/cdn/{7C22TPME.js → JU3BLGXG.js} +0 -0
  81. /package/dist/cdn/{MR5AEEII.js → L4TA63M6.js} +0 -0
  82. /package/dist/cdn/{BUILQQ6S.js → LQVZVGY4.js} +0 -0
  83. /package/dist/cdn/{SPSJMCAO.js → MM4KQLRF.js} +0 -0
  84. /package/dist/cdn/{4S2JKX63.js → Q3GALNWS.js} +0 -0
  85. /package/dist/cdn/{BLSJEYOH.js → QM34BSKE.js} +0 -0
  86. /package/dist/cdn/{QSOU6NQA.js → QTWRDNXX.js} +0 -0
  87. /package/dist/cdn/{FVTX4GNH.js → TC3Q2QUA.js} +0 -0
  88. /package/dist/cdn/{WTUUS552.js → TEFALOII.js} +0 -0
  89. /package/dist/cdn/{2HJ7EGEB.js → TP5VEU3D.js} +0 -0
  90. /package/dist/cdn/{3LKCMCHN.js → U35ISUWJ.js} +0 -0
  91. /package/dist/cdn/{FWV2SQE2.js → UUC3DBCQ.js} +0 -0
  92. /package/dist/cdn/{ZLOQIB7A.js → UVMLKDJA.js} +0 -0
  93. /package/dist/cdn/{BEDLAEXK.js → V7DG2KF6.js} +0 -0
  94. /package/dist/cdn/{TKVE7ETK.js → WHDMC5HB.js} +0 -0
  95. /package/dist/cdn/{GPGC63RW.js → XEXCDGSR.js} +0 -0
  96. /package/dist/cdn/{BVFH7ZG4.js → XJXQC6HM.js} +0 -0
  97. /package/dist/cdn/{GT5SWKXT.js → YZSLMAVX.js} +0 -0
  98. /package/dist/cdn/{ZX5YTFYB.js → ZUPEVR3P.js} +0 -0
@@ -1,25 +1,26 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import { c as T } from "../../chunks/runtime.js";
3
- import { css as N, html as p } from "lit";
2
+ import { c as N } from "../../chunks/runtime.js";
3
+ import { css as M, html as p } from "lit";
4
4
  import { keyed as C } from "lit/directives/keyed.js";
5
- import { createReactiveMap as I, findUtilityNetwork as M, queryAllJSON as $, getOrCreateMapValue as j } from "@arcgis/core/applications/Components/featureUtils.js";
6
- import { stripHTML as k } from "@arcgis/core/applications/Components/stringUtils.js";
5
+ import { i as k, a as $ } from "../../chunks/layer-utils.js";
6
+ import { createReactiveMap as I, findUtilityNetwork as j, queryAllJSON as D, getOrCreateMapValue as V } from "@arcgis/core/applications/Components/featureUtils.js";
7
+ import { stripHTML as v } from "@arcgis/core/applications/Components/stringUtils.js";
7
8
  import w from "@arcgis/core/core/Collection.js";
8
- import { ignoreAbortErrors as v } from "@arcgis/core/core/promiseUtils.js";
9
+ import { ignoreAbortErrors as E } from "@arcgis/core/core/promiseUtils.js";
9
10
  import { watch as A } from "@arcgis/core/core/reactiveUtils.js";
10
- import * as D from "@arcgis/core/core/sql.js";
11
- import V from "@arcgis/core/rest/networks/support/NetworkElement.js";
12
- import U from "@arcgis/core/rest/networks/support/QueryAssociationsParameters.js";
13
- import x from "@arcgis/core/rest/support/FeatureSet.js";
14
- import P from "@arcgis/core/rest/support/Query.js";
15
- import G from "@arcgis/core/widgets/Feature/FeatureViewModel.js";
16
- import { LitElement as Q, renderElement as B } from "@arcgis/lumina";
11
+ import * as U from "@arcgis/core/core/sql.js";
12
+ import x from "@arcgis/core/rest/networks/support/NetworkElement.js";
13
+ import P from "@arcgis/core/rest/networks/support/QueryAssociationsParameters.js";
14
+ import Q from "@arcgis/core/rest/support/FeatureSet.js";
15
+ import G from "@arcgis/core/rest/support/Query.js";
16
+ import B from "@arcgis/core/widgets/Feature/FeatureViewModel.js";
17
+ import { LitElement as O, renderElement as R } from "@arcgis/lumina";
17
18
  import { debounce as L } from "@arcgis/toolkit/function";
18
- const O = N`.list-container{min-height:var(--calcite-spacing-xxxl)}.loading-container{display:flex;justify-content:center;padding:var(--calcite-spacing-md) 0;width:100%}.sticky-loading-container{display:flex;position:sticky;bottom:var(--calcite-spacing-sm);align-items:center;justify-content:center;z-index:2;margin:0;padding:0;height:var(--calcite-spacing-xxxl);pointer-events:none;height:500px}`, E = 100, q = {
19
+ const H = M`.list-container{min-height:var(--calcite-spacing-xxxl)}.loading-container{display:flex;justify-content:center;padding:var(--calcite-spacing-md) 0;width:100%}.sticky-loading-container{display:flex;position:sticky;bottom:var(--calcite-spacing-sm);align-items:center;justify-content:center;z-index:2;margin:0;padding:0;height:var(--calcite-spacing-xxxl);pointer-events:none;height:500px}`, q = 100, T = {
19
20
  assetGroup: "assetgroup",
20
21
  assetType: "assettype"
21
22
  }, S = "{00000000-0000-0000-0000-000000000000}";
22
- class R extends Q {
23
+ class Z extends O {
23
24
  constructor() {
24
25
  super(...arguments), this._addFlowItem = (t) => {
25
26
  t && this.flowItems?.push(t);
@@ -38,12 +39,12 @@ class R extends Q {
38
39
  }, this._queryController = async (t) => {
39
40
  this._cancelQuery();
40
41
  const e = new AbortController();
41
- this._queryAbortController = e, await v(this._query(t)), this._queryAbortController === e && (this._queryAbortController = null);
42
+ this._queryAbortController = e, await E(this._query(t)), this._queryAbortController === e && (this._queryAbortController = null);
42
43
  }, this._queryFeatureCountController = async () => {
43
44
  this._loaded = !1, this._cancelQueryFeatureCount();
44
45
  const t = new AbortController();
45
- this._queryFeatureCountAbortController = t, await v(this._queryFeatureCount()), this._queryFeatureCountAbortController === t && (this._queryFeatureCountAbortController = null), this._loaded = !0;
46
- }, this._queryDebounced = L(this._queryController, E), this._queryFeatureCountDebounced = L(this._queryFeatureCountController, E), this._structureAssociations = new w(), this._structureFeatureCount = 0, this._queryAssociationType = async () => {
46
+ this._queryFeatureCountAbortController = t, await E(this._queryFeatureCount()), this._queryFeatureCountAbortController === t && (this._queryFeatureCountAbortController = null), this._loaded = !0;
47
+ }, this._queryDebounced = L(this._queryController, q), this._queryFeatureCountDebounced = L(this._queryFeatureCountController, q), this._structureAssociations = new w(), this._structureFeatureCount = 0, this._queryAssociationType = async () => {
47
48
  this._activeAssociationType && this._queryDebounced(this._activeAssociationType);
48
49
  }, this._associationFeatures = I(), this._associationViewModels = I(), this._featureCount = 0, this._loaded = !1, this._queryAbortController = null, this._queryFeatureCountAbortController = null, this._queryPageAbortController = null, this.associationTypes = null, this.autoDestroyDisabled = !1, this.flowType = "feature-utility-network-associations", this.headingLevel = 2, this.source = "popup";
49
50
  }
@@ -51,7 +52,7 @@ class R extends Q {
51
52
  this.properties = { _activeAssociationType: 16, _associationFeatures: 16, _associationViewModels: 16, _canLoad: 16, _canQuery: 16, _featureCount: 16, _loaded: 16, _queryAbortController: 16, _queryFeatureCountAbortController: 16, _queryPageAbortController: 16, _state: 16, associationTypes: 0, autoDestroyDisabled: 5, description: 1, flowItems: 0, flowType: 1, graphic: 0, heading: 1, headingLevel: 9, layer: 0, map: 0, messages: 0, parentFeatureViewModel: 0, referenceElement: 1, source: 1, spatialReference: 0, timeZone: 1, view: 0 };
52
53
  }
53
54
  static {
54
- this.styles = O;
55
+ this.styles = H;
55
56
  }
56
57
  get _globalId() {
57
58
  return (this._globalIdField && this.graphic?.attributes?.[this._globalIdField]) ?? null;
@@ -72,8 +73,8 @@ class R extends Q {
72
73
  const { layer: t, map: e } = this;
73
74
  if (!t?.loaded || !e)
74
75
  return null;
75
- const s = this._isSubtypeSublayer(t) ? t.parent : t;
76
- return M(e, s);
76
+ const s = k(t) ? t.parent : t;
77
+ return j(e, s);
77
78
  }
78
79
  get _canLoad() {
79
80
  return !!this.map;
@@ -82,8 +83,8 @@ class R extends Q {
82
83
  return !!this.layer?.capabilities?.query?.supportsPagination;
83
84
  }
84
85
  get _state() {
85
- const { _canLoad: t, _canQuery: e, _featureCount: s, _loaded: o, _queryAbortController: i, _queryFeatureCountAbortController: r, _queryPageAbortController: u, associationTypes: c } = this;
86
- return r || t && !o ? "loading" : i || u ? "querying" : !this._globalId || !c || !e || !s ? "disabled" : "ready";
86
+ const { _canLoad: t, _canQuery: e, _featureCount: s, _loaded: o, _queryAbortController: i, _queryFeatureCountAbortController: a, _queryPageAbortController: u, associationTypes: c } = this;
87
+ return a || t && !o ? "loading" : i || u ? "querying" : !this._globalId || !c || !e || !s ? "disabled" : "ready";
87
88
  }
88
89
  get heading() {
89
90
  return this._heading;
@@ -118,7 +119,7 @@ class R extends Q {
118
119
  });
119
120
  }
120
121
  _addAssociationTypeFlowItem(t) {
121
- this._addFlowItem(B(p`<arcgis-feature-utility-network-association-list .autoDestroyDisabled=${this.autoDestroyDisabled} .associationViewModels=${this._associationViewModels} .description=${this.parentFeatureViewModel?.title} .flowItems=${this.flowItems} .flowType=${this.flowType} .heading=${this._getAssociationTypeTitle(t)} .messages=${this.messages} .map=${this.map} .parentFeatureViewModel=${this.parentFeatureViewModel} .referenceElement=${this.referenceElement} .state=${this._state} .spatialReference=${this.spatialReference} .timeZone=${this.timeZone} .view=${this.view}></arcgis-feature-utility-network-association-list>`));
122
+ this._addFlowItem(R(p`<arcgis-feature-utility-network-association-list .autoDestroyDisabled=${this.autoDestroyDisabled} .associationViewModels=${this._associationViewModels} .description=${this.parentFeatureViewModel?.title} .flowItems=${this.flowItems} .flowType=${this.flowType} .heading=${this._getAssociationTypeTitle(t)} .messages=${this.messages} .map=${this.map} .parentFeatureViewModel=${this.parentFeatureViewModel} .referenceElement=${this.referenceElement} .state=${this._state} .spatialReference=${this.spatialReference} .timeZone=${this.timeZone} .view=${this.view}></arcgis-feature-utility-network-association-list>`));
122
123
  }
123
124
  _clearAssociations() {
124
125
  this._attachmentAssociations.removeAll(), this._connectivityAssociations.removeAll(), this._containerAssociations.removeAll(), this._contentAssociations.removeAll(), this._structureAssociations.removeAll();
@@ -132,9 +133,9 @@ class R extends Q {
132
133
  });
133
134
  }
134
135
  async _countAssociatedFeatureCount(t, e, s, o, i) {
135
- const r = this._getFeatureQueryWhereClause(t, e, s, o);
136
+ const a = this._getFeatureQueryWhereClause(t, e, s, o);
136
137
  return await t.queryFeatureCount({
137
- where: r,
138
+ where: a,
138
139
  outFields: ["*"],
139
140
  returnGeometry: !1
140
141
  }, {
@@ -144,37 +145,37 @@ class R extends Q {
144
145
  async _countAssociatedFeatures(t, e, s, o, i) {
145
146
  if (!e.length)
146
147
  return 0;
147
- const r = await this._findLayersBySourceId(t);
148
- await this._loadLayers(r);
149
- const u = r.map((a) => this._countAssociatedFeatureCount(a, e, s, o, i));
150
- return (await Promise.all(u)).reduce((a, d) => a + d, 0);
148
+ const a = await this._findLayersBySourceId(t);
149
+ await this._loadLayers(a);
150
+ const u = a.map((r) => this._countAssociatedFeatureCount(r, e, s, o, i));
151
+ return (await Promise.all(u)).reduce((r, d) => r + d, 0);
151
152
  }
152
153
  async _createAssociationFeatureObjects(t, e, s, o, i) {
153
154
  if (!t.length)
154
155
  return [];
155
- const r = /* @__PURE__ */ new Map(), u = Array.from(e.entries()).map(async ([a, d]) => {
156
- const l = await this._findLayersBySourceId(a);
156
+ const a = /* @__PURE__ */ new Map(), u = Array.from(e.entries()).map(async ([r, d]) => {
157
+ const l = await this._findLayersBySourceId(r);
157
158
  await this._loadLayers(l);
158
159
  const y = l.map((n) => this._queryLayer(n, d, s, o, i));
159
160
  (await Promise.all(y)).forEach((n) => {
160
161
  n.forEach((h) => {
161
162
  if (this.source === "popup" ? h.sourceLayer && h.getEffectivePopupTemplate() : !!h.sourceLayer) {
162
- const f = h.layer.globalIdField ?? "", g = h.getAttribute(f), b = r.get(g) ?? [];
163
- b.push(h), r.set(g, b);
163
+ const f = h.layer.globalIdField ?? "", g = h.getAttribute(f), b = a.get(g) ?? [];
164
+ b.push(h), a.set(g, b);
164
165
  }
165
166
  });
166
167
  });
167
168
  });
168
169
  await Promise.all(u);
169
170
  const c = [];
170
- return await Promise.all(t.toArray().map(async (a) => {
171
- const { fromNetworkElement: d, toNetworkElement: l } = a, y = d.globalId === this._globalId ? l : d, m = r.get(y.globalId) ?? [];
171
+ return await Promise.all(t.toArray().map(async (r) => {
172
+ const { fromNetworkElement: d, toNetworkElement: l } = r, y = d.globalId === this._globalId ? l : d, m = a.get(y.globalId) ?? [];
172
173
  await Promise.all(m.map(async (n) => {
173
174
  const h = this._utilityNetwork?.getTerminalById(y?.terminalId ?? void 0)?.name, _ = await n.sourceLayer.getFeatureTitle(n) || this._getFeatureTitle(n);
174
175
  c.push({
175
176
  title: _,
176
177
  feature: n,
177
- association: a,
178
+ association: r,
178
179
  terminalName: h
179
180
  });
180
181
  }));
@@ -188,16 +189,16 @@ class R extends Q {
188
189
  let s = function(d, l) {
189
190
  return d.networkSourceId === l.networkSourceId && d.globalId === l.globalId && d.terminalId === l.terminalId && d.firstUnit === l.firstUnit && d.numUnits === l.numUnits;
190
191
  };
191
- const o = t.fromNetworkElement, i = t.toNetworkElement, r = e.fromNetworkElement, u = e.toNetworkElement, c = s(o, r), a = s(i, u);
192
- return c && a && t.associationType === e.associationType;
192
+ const o = t.fromNetworkElement, i = t.toNetworkElement, a = e.fromNetworkElement, u = e.toNetworkElement, c = s(o, a), r = s(i, u);
193
+ return c && r && t.associationType === e.associationType;
193
194
  }
194
195
  return t.globalId != null && e.globalId != null && t.globalId === e.globalId;
195
196
  }
196
197
  async _findLayersBySourceId(t) {
197
198
  const { _utilityNetwork: e, map: s } = this;
198
199
  e?.loaded || await e?.load();
199
- const o = e.getLayerIdBySourceId(t), i = s.allLayers.filter((c) => !!e?.isUtilityLayer(c) && c.layerId === o), r = s.allTables.filter((c) => !!e?.isUtilityLayer(c) && c.layerId === o);
200
- return i.concat(r).toArray();
200
+ const o = e.getLayerIdBySourceId(t), i = s.allLayers.filter((c) => !!e?.isUtilityLayer(c) && c.layerId === o), a = s.allTables.filter((c) => !!e?.isUtilityLayer(c) && c.layerId === o);
201
+ return i.concat(a).toArray();
201
202
  }
202
203
  _getAssociationsByType(t) {
203
204
  switch (t) {
@@ -245,21 +246,15 @@ class R extends Q {
245
246
  }
246
247
  }
247
248
  _getFeatureQueryWhereClause(t, e, s, o) {
248
- const i = t.globalIdField, r = t.fieldsIndex.get(q.assetGroup), u = t.fieldsIndex.get(q.assetType), c = s != null, a = o != null, d = i ? D.sqlIn(i, e) : null, l = c ? `(${r?.name} = ${s})` : null, y = c && a ? `(${u?.name} = ${o})` : null;
249
+ const i = t.globalIdField, a = t.fieldsIndex.get(T.assetGroup), u = t.fieldsIndex.get(T.assetType), c = s != null, r = o != null, d = i ? U.sqlIn(i, e) : null, l = c ? `(${a?.name} = ${s})` : null, y = c && r ? `(${u?.name} = ${o})` : null;
249
250
  return [d, l, y].filter(Boolean).join(" AND ");
250
251
  }
251
252
  _getFeatureTitle(t) {
252
253
  const e = t.attributes, s = t.sourceLayer;
253
254
  if (!e || !s)
254
255
  return "";
255
- const o = "displayField" in s ? s.displayField : null, i = o != null ? e[o.toString()] : null, r = i != null ? i.toString() : null, u = t.getObjectId()?.toString();
256
- return r || u || "";
257
- }
258
- _isSubtypeGroupLayer(t) {
259
- return t != null && typeof t == "object" && "type" in t && t.type === "subtype-group" && "sublayers" in t;
260
- }
261
- _isSubtypeSublayer(t) {
262
- return t?.type === "subtype-sublayer";
256
+ const o = "displayField" in s ? s.displayField : null, i = o != null ? e[o.toString()] : null, a = i != null ? i.toString() : null, u = t.getObjectId()?.toString();
257
+ return a || u || "";
263
258
  }
264
259
  async _loadUtiltyNetworks() {
265
260
  const t = this.map;
@@ -285,11 +280,11 @@ class R extends Q {
285
280
  return this._equals(t.association, e.association);
286
281
  }
287
282
  async _queryAssociatedFeatures(t, e) {
288
- const { layer: s, _globalId: o, associationTypes: i, _utilityNetwork: r, _canQuery: u, _associationFeatures: c } = this;
289
- if (await Promise.allSettled([s?.load(), r?.load()]), !u || !s || !i || !r)
283
+ const { layer: s, _globalId: o, associationTypes: i, _utilityNetwork: a, _canQuery: u, _associationFeatures: c } = this;
284
+ if (await Promise.allSettled([s?.load(), a?.load()]), !u || !s || !i || !a)
290
285
  return;
291
- const a = this._getAssociationsByType(t.type), { associatedAssetGroup: d, associatedAssetType: l } = t, y = /* @__PURE__ */ new Map();
292
- a.forEach((n) => {
286
+ const r = this._getAssociationsByType(t.type), { associatedAssetGroup: d, associatedAssetType: l } = t, y = /* @__PURE__ */ new Map();
287
+ r.forEach((n) => {
293
288
  const { fromNetworkElement: h, toNetworkElement: _ } = n, { networkSourceId: f, elementGlobalId: g } = h.globalId === o ? {
294
289
  networkSourceId: _.networkSourceId,
295
290
  elementGlobalId: _.globalId
@@ -299,35 +294,35 @@ class R extends Q {
299
294
  }, b = y.get(f) || [];
300
295
  b.push(g), y.set(f, b);
301
296
  });
302
- const m = await this._createAssociationFeatureObjects(a, y, d, l, e);
297
+ const m = await this._createAssociationFeatureObjects(r, y, d, l, e);
303
298
  this._parseFeatureObjects(m, c);
304
299
  }
305
300
  async _queryAssociations(t) {
306
- const { layer: e, _globalId: s, associationTypes: o, _utilityNetwork: i, _canQuery: r } = this;
307
- if (await Promise.allSettled([e?.load(), i?.load()]), this._clearAssociations(), !r || !e || !o || !i || !s)
301
+ const { layer: e, _globalId: s, associationTypes: o, _utilityNetwork: i, _canQuery: a } = this;
302
+ if (await Promise.allSettled([e?.load(), i?.load()]), this._clearAssociations(), !a || !e || !o || !i || !s)
308
303
  return;
309
- const u = this._isSubtypeSublayer(e) ? e.parent : e, c = new V({
304
+ const u = k(e) ? e.parent : e, c = new x({
310
305
  globalId: s,
311
306
  networkSourceId: i.getSourceIdByLayerId(u.layerId)
312
- }), a = /* @__PURE__ */ new Set();
307
+ }), r = /* @__PURE__ */ new Set();
313
308
  o.forEach((n) => {
314
309
  switch (n.type) {
315
310
  case "attachment":
316
311
  case "structure":
317
- a.add("attachment");
312
+ r.add("attachment");
318
313
  break;
319
314
  case "container":
320
315
  case "content":
321
- a.add("containment");
316
+ r.add("containment");
322
317
  break;
323
318
  case "connectivity":
324
- a.add("connectivity"), a.add("junction-junction-connectivity"), a.add("junction-edge-from-connectivity"), a.add("junction-edge-midspan-connectivity"), a.add("junction-edge-to-connectivity");
319
+ r.add("connectivity"), r.add("junction-junction-connectivity"), r.add("junction-edge-from-connectivity"), r.add("junction-edge-midspan-connectivity"), r.add("junction-edge-to-connectivity");
325
320
  break;
326
321
  }
327
322
  });
328
- const d = await i?.queryAssociations(new U({
323
+ const d = await i?.queryAssociations(new P({
329
324
  elements: [c],
330
- types: Array.from(a)
325
+ types: Array.from(r)
331
326
  }), {
332
327
  signal: t?.signal
333
328
  }), l = /* @__PURE__ */ new Map(), y = /* @__PURE__ */ new Map();
@@ -408,21 +403,20 @@ class R extends Q {
408
403
  await this._queryAssociations(t), this._featureCount = this._attachmentFeatureCount + this._connectivityFeatureCount + this._containerFeatureCount + this._contentFeatureCount + this._structureFeatureCount;
409
404
  }
410
405
  async _queryLayer(t, e, s, o, i) {
411
- const r = this._getFeatureQueryWhereClause(t, e, s, o), u = new P({
412
- where: r,
406
+ const a = this._getFeatureQueryWhereClause(t, e, s, o), u = new G({
407
+ where: a,
413
408
  outFields: ["*"],
414
409
  cacheHint: this._supportsCacheHint
415
- }), c = x.fromJSON(await $(t, u, i));
416
- return c.features.forEach((a) => {
417
- const d = this._isSubtypeGroupLayer(t);
418
- a.layer = d ? t.findSublayerForFeature(a) : t, a.sourceLayer = d ? t.findSublayerForFeature(a) : t;
410
+ }), c = Q.fromJSON(await D(t, u, i));
411
+ return c.features.forEach((r) => {
412
+ r.layer = $(t) ? t.findSublayerForFeature(r) : t, r.sourceLayer = r.layer;
419
413
  }), c.features;
420
414
  }
421
415
  _parseFeatureObjects(t, e) {
422
416
  const s = I();
423
417
  t.forEach((o) => {
424
- const r = (o?.feature).sourceLayer;
425
- j(s, r, () => new w()).add(o);
418
+ const a = (o?.feature).sourceLayer;
419
+ V(s, a, () => new w()).add(o);
426
420
  });
427
421
  for (const [o, i] of s)
428
422
  this._sortFeatureObjectsByTitle(i), e.set(o, i);
@@ -432,22 +426,22 @@ class R extends Q {
432
426
  e && (this._activeAssociationType = t, this._setUpUtilityNetworkAssociationsViewModels(), this._addAssociationTypeFlowItem(t));
433
427
  }
434
428
  _setUpUtilityNetworkAssociationsViewModels() {
435
- this._associationViewModels.forEach((i, r) => {
436
- const u = this._associationFeatures.get(r);
429
+ this._associationViewModels.forEach((i, a) => {
430
+ const u = this._associationFeatures.get(a);
437
431
  u ? i.forEach((c) => {
438
- u.find((d) => this._matchesGlobalFeature(c, d)) || (i.remove(c), i.length || this._associationViewModels.delete(r));
439
- }) : (i.removeAll(), this._associationViewModels.delete(r));
432
+ u.find((d) => this._matchesGlobalFeature(c, d)) || (i.remove(c), i.length || this._associationViewModels.delete(a));
433
+ }) : (i.removeAll(), this._associationViewModels.delete(a));
440
434
  });
441
435
  const { map: t, view: e, spatialReference: s, timeZone: o } = this;
442
- this._associationFeatures.forEach((i, r) => {
443
- const u = this._associationViewModels.get(r) || new w();
444
- i?.filter(Boolean).forEach((c, a) => {
436
+ this._associationFeatures.forEach((i, a) => {
437
+ const u = this._associationViewModels.get(a) || new w();
438
+ i?.filter(Boolean).forEach((c, r) => {
445
439
  if (!u.some((l) => this._matchesGlobalFeature(l, c))) {
446
440
  const { association: l, feature: y, terminalName: m, title: n } = c;
447
441
  u.add({
448
442
  title: n,
449
443
  association: l,
450
- featureViewModel: new G({
444
+ featureViewModel: new B({
451
445
  abilities: { utilityNetworkAssociationsContent: !1 },
452
446
  map: t,
453
447
  view: e,
@@ -456,16 +450,16 @@ class R extends Q {
456
450
  graphic: y
457
451
  }),
458
452
  terminalName: m
459
- }, a);
453
+ }, r);
460
454
  }
461
- }), this._associationViewModels.set(r, u);
455
+ }), this._associationViewModels.set(a, u);
462
456
  });
463
457
  }
464
458
  _shouldDiscardNetworkElement(t, e, s) {
465
459
  if (!t)
466
460
  return !1;
467
- const { networkSourceId: o } = t, i = s.get(e)?.associatedNetworkSourceId, r = this._networkSourceIdsInUse.has(o);
468
- return i != null && i !== o || !r;
461
+ const { networkSourceId: o } = t, i = s.get(e)?.associatedNetworkSourceId, a = this._networkSourceIdsInUse.has(o);
462
+ return i != null && i !== o || !a;
469
463
  }
470
464
  _sortFeatureObjectsByTitle(t) {
471
465
  t.sort(this._compareByFeatureTitle);
@@ -482,7 +476,7 @@ class R extends Q {
482
476
  }
483
477
  _renderAssociationTypeListItem(t) {
484
478
  const e = this._getAssociationTypeTitle(t);
485
- return C(`association-type-${t.type}`, p`<calcite-list-item .description=${k(t.description)} .label=${k(e)} .value=${t.type} @calciteListItemSelect=${() => this._selectAssociationType(t)}><calcite-icon flip-rtl icon=chevron-right scale=s slot=content-end></calcite-icon></calcite-list-item>`);
479
+ return C(`association-type-${t.type}`, p`<calcite-list-item .description=${v(t.description)} .label=${v(e)} .value=${t.type} @calciteListItemSelect=${() => this._selectAssociationType(t)}><calcite-icon flip-rtl icon=chevron-right scale=s slot=content-end></calcite-icon></calcite-list-item>`);
486
480
  }
487
481
  _renderContent() {
488
482
  const { _state: t, associationTypes: e, messages: s } = this, o = s?.associationsList ?? s?.noTitle ?? "";
@@ -498,7 +492,7 @@ class R extends Q {
498
492
  return this._state === "querying" ? p`<div class="sticky-loading-container">${this._renderLoadingIcon()}</div>` : null;
499
493
  }
500
494
  }
501
- T("arcgis-feature-utility-network-associations", R);
495
+ N("arcgis-feature-utility-network-associations", Z);
502
496
  export {
503
- R as ArcgisFeatureUtilityNetworkAssociations
497
+ Z as ArcgisFeatureUtilityNetworkAssociations
504
498
  };
@@ -10,7 +10,7 @@ import { LitElement as w, createEvent as _, nothing as f } from "@arcgis/lumina"
10
10
  import { log as s, composeMissingPropertyMessage as a } from "@arcgis/toolkit/log";
11
11
  import { css as G, html as u } from "lit";
12
12
  import { u as L } from "../../chunks/useT9n.js";
13
- import { i as v, a as o } from "../../chunks/layer-utils.js";
13
+ import { b as v, c as o } from "../../chunks/layer-utils.js";
14
14
  const b = G`.loader-container{display:flex;justify-content:center;padding-bottom:var(--calcite-spacing-md)}`, h = 12;
15
15
  class S extends w {
16
16
  constructor() {
@@ -1,28 +1,28 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import { c as _ } from "../../chunks/runtime.js";
3
- import { repeat as k } from "lit/directives/repeat.js";
2
+ import { c as k } from "../../chunks/runtime.js";
3
+ import { repeat as S } from "lit/directives/repeat.js";
4
4
  import { ref as h } from "lit/directives/ref.js";
5
5
  import { queryAllJSON as m } from "@arcgis/core/applications/Components/featureUtils.js";
6
6
  import l from "@arcgis/core/core/Collection.js";
7
- import { watch as S } from "@arcgis/core/core/reactiveUtils.js";
8
- import { substitute as T } from "@arcgis/core/intl.js";
9
- import L from "@arcgis/core/layers/GraphicsLayer.js";
10
- import C from "@arcgis/core/networks/support/UNTraceConfiguration.js";
11
- import N from "@arcgis/core/rest/networks/support/TraceLocation.js";
7
+ import { watch as T } from "@arcgis/core/core/reactiveUtils.js";
8
+ import { substitute as L } from "@arcgis/core/intl.js";
9
+ import C from "@arcgis/core/layers/GraphicsLayer.js";
10
+ import N from "@arcgis/core/networks/support/UNTraceConfiguration.js";
11
+ import $ from "@arcgis/core/rest/networks/support/TraceLocation.js";
12
12
  import f from "@arcgis/core/rest/support/FeatureSet.js";
13
13
  import y from "@arcgis/core/views/interactive/snapping/FeatureSnappingLayerSource.js";
14
- import $ from "@arcgis/core/widgets/Sketch/SketchViewModel.js";
15
- import { LitElement as v, createEvent as d } from "@arcgis/lumina";
16
- import { usePropertyChange as E } from "@arcgis/lumina/controllers";
17
- import { log as u, composeMissingPropertyMessage as F, composeEmptyPropertyMessage as I } from "@arcgis/toolkit/log";
18
- import { css as P, html as s } from "lit";
19
- import { u as U } from "../../chunks/useT9n.js";
14
+ import v from "@arcgis/core/widgets/Sketch/SketchViewModel.js";
15
+ import { LitElement as E, createEvent as d } from "@arcgis/lumina";
16
+ import { usePropertyChange as F } from "@arcgis/lumina/controllers";
17
+ import { log as u, composeMissingPropertyMessage as I, composeEmptyPropertyMessage as P } from "@arcgis/toolkit/log";
18
+ import { css as U, html as s } from "lit";
19
+ import { u as A } from "../../chunks/useT9n.js";
20
20
  import { h as w } from "../../chunks/feature-utils.js";
21
- import { a as A, i as b } from "../../chunks/layer-utils.js";
22
- const D = P`: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-select,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 var(--calcite-spacing-md)}calcite-block calcite-label:last-child{--calcite-label-margin-bottom: 0}calcite-notice{margin:var(--calcite-spacing-md)}#subnetwork-info-block{margin:var(--calcite-spacing-md) var(--calcite-spacing-md) 0 var(--calcite-spacing-md)}#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) 0;font-size:var(--calcite-font-size);font-style:normal;font-weight:var(--calcite-font-weight-medium)}`, p = `utility-network-trace-inputs-sketch-${Date.now()}`, n = `utility-network-trace-inputs-flags-${Date.now()}`, M = 20;
23
- class B extends v {
21
+ import { c as D, b, a as _, i as M } from "../../chunks/layer-utils.js";
22
+ const B = U`: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-select,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 var(--calcite-spacing-md)}calcite-block calcite-label:last-child{--calcite-label-margin-bottom: 0}calcite-notice{margin:var(--calcite-spacing-md)}#subnetwork-info-block{margin:var(--calcite-spacing-md) var(--calcite-spacing-md) 0 var(--calcite-spacing-md)}#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) 0;font-size:var(--calcite-font-size);font-style:normal;font-weight:var(--calcite-font-weight-medium)}`, p = `utility-network-trace-inputs-sketch-${Date.now()}`, n = `utility-network-trace-inputs-flags-${Date.now()}`, x = 20;
23
+ class G extends E {
24
24
  constructor() {
25
- super(...arguments), this._defaultPopupTemplateEnabled = !0, this._messages = U({ blocking: !0 }), this._layerIdToLayer = /* @__PURE__ */ new Map(), this._startingPoints = new l(), this._barriers = new l(), this._stoppingPoints = new l(), this._subnetworkTraceTypes = /* @__PURE__ */ new Set([
25
+ super(...arguments), this._defaultPopupTemplateEnabled = !0, this._messages = A({ blocking: !0 }), this._layerIdToLayer = /* @__PURE__ */ new Map(), this._startingPoints = new l(), this._barriers = new l(), this._stoppingPoints = new l(), this._subnetworkTraceTypes = /* @__PURE__ */ new Set([
26
26
  "subnetwork",
27
27
  "subnetwork-controller",
28
28
  "upstream",
@@ -36,7 +36,7 @@ class B extends v {
36
36
  e && (this._traceLocationStoppingElement = e);
37
37
  }, this._featuresComponentRefChange = (e) => {
38
38
  e && (this._featuresComponentElement = e);
39
- }, this.compatibleSubnetworkNames = [], this.traceConfigurations = [], this._state = "ready", this._exceedDisplayLimit = !1, this.autoDestroyDisabled = !1, this.hideActionBar = !1, this.mode = "default", this.arcgisPropertyChange = E()("mode"), this.arcgisSelectedNamedTraceConfigurationChange = d(), this.arcgisTraceInputsChange = d(), this.arcgisTraceLocationSelectEnd = d(), this.arcgisTraceLocationSelectStart = d(), this.arcgisUtilityNetworkChange = d(), this.renderFeatureListItem = (e) => {
39
+ }, this.compatibleSubnetworkNames = [], this.traceConfigurations = [], this._state = "ready", this._exceedDisplayLimit = !1, this.autoDestroyDisabled = !1, this.hideActionBar = !1, this.mode = "default", this.arcgisPropertyChange = F()("mode"), this.arcgisSelectedNamedTraceConfigurationChange = d(), this.arcgisTraceInputsChange = d(), this.arcgisTraceLocationSelectEnd = d(), this.arcgisTraceLocationSelectStart = d(), this.arcgisUtilityNetworkChange = d(), this.renderFeatureListItem = (e) => {
40
40
  const { feature: t, label: i } = e;
41
41
  return s`<calcite-list-item .label=${i} @calciteListItemSelect=${() => this._handleFeatureSelectChange(t)}><calcite-icon icon=chevron-right slot=content-end></calcite-icon></calcite-list-item>`;
42
42
  };
@@ -45,7 +45,7 @@ class B extends v {
45
45
  this.properties = { compatibleSubnetworkNames: 16, subnetworksTable: 16, traceConfigurations: 16, utilityNetworks: 16, _unTraceConfiguration: 16, _state: 16, _activeTraceLocationType: 16, _selectedFeature: 16, _exceedDisplayLimit: 16, beforeTraceLocationSelectStart: 0, view: 0, selectedUtilityNetwork: 0, selectedNamedTraceConfiguration: 0, autoDestroyDisabled: 5, hideActionBar: 5, unTraceConfiguration: 32, referenceElement: 1, mode: 3, traceLocations: 32 };
46
46
  }
47
47
  static {
48
- this.styles = D;
48
+ this.styles = B;
49
49
  }
50
50
  get isSubnetworkNameTraceSelected() {
51
51
  const e = this.selectedNamedTraceConfiguration?.traceType;
@@ -78,7 +78,7 @@ class B extends v {
78
78
  get traceLocations() {
79
79
  const e = [], t = (i) => {
80
80
  i.flagProperties.terminalConfiguration && i.flagProperties.selectedTerminals ? i.flagProperties.selectedTerminals.forEach((r) => {
81
- e.push(new N({
81
+ e.push(new $({
82
82
  type: i.traceLocation.type,
83
83
  isFilterBarrier: i.traceLocation.isFilterBarrier,
84
84
  globalId: i.traceLocation.globalId,
@@ -94,7 +94,7 @@ class B extends v {
94
94
  }
95
95
  load() {
96
96
  this.manager.onLifecycle(() => [
97
- S(() => this.view?.map, () => {
97
+ T(() => this.view?.map, () => {
98
98
  this._setupUtilityNetwork(), this._setupSketchViewModel();
99
99
  }, { initial: !0 })
100
100
  ]);
@@ -112,12 +112,12 @@ class B extends v {
112
112
  _createGraphicLayer(e) {
113
113
  const { map: t } = this.view;
114
114
  if (!t?.findLayerById(e)) {
115
- const a = new L({
115
+ const a = new C({
116
116
  id: e,
117
117
  listMode: "hide",
118
118
  title: e
119
119
  });
120
- A(this.view, a);
120
+ D(this.view, a);
121
121
  }
122
122
  }
123
123
  _getGraphicLayer(e) {
@@ -138,7 +138,7 @@ class B extends v {
138
138
  if (e && t && t.length > 0) {
139
139
  const i = new l();
140
140
  t.forEach((a) => {
141
- a.type === "subtype-group" ? a.sublayers.forEach((r) => {
141
+ _(a) ? a.sublayers.forEach((r) => {
142
142
  i.add(new y({
143
143
  layer: r,
144
144
  enabled: !0
@@ -156,7 +156,7 @@ class B extends v {
156
156
  }
157
157
  _initializeSketchViewModel() {
158
158
  const { view: e } = this, t = this._getGraphicLayer(p);
159
- return new $({
159
+ return new v({
160
160
  layer: t,
161
161
  view: e
162
162
  });
@@ -198,8 +198,8 @@ class B extends v {
198
198
  }
199
199
  _handleTraceConfigChange() {
200
200
  const { selectedNamedTraceConfiguration: e } = this;
201
- if (!(e?.traceConfiguration instanceof C)) {
202
- u("error", this, F("selectedNamedTraceConfiguration.traceConfiguration")), this._unTraceConfiguration = void 0;
201
+ if (!(e?.traceConfiguration instanceof N)) {
202
+ u("error", this, I("selectedNamedTraceConfiguration.traceConfiguration")), this._unTraceConfiguration = void 0;
203
203
  return;
204
204
  }
205
205
  switch (this._unTraceConfiguration = e.traceConfiguration.clone(), e.traceType) {
@@ -221,7 +221,7 @@ class B extends v {
221
221
  _handleUtilityNetworksChange() {
222
222
  const { utilityNetworks: e } = this;
223
223
  if (!e || e.length === 0) {
224
- this.selectedUtilityNetwork = void 0, this._state = "error", u("error", this, I("utilityNetworks"));
224
+ this.selectedUtilityNetwork = void 0, this._state = "error", u("error", this, P("utilityNetworks"));
225
225
  return;
226
226
  }
227
227
  (!this.selectedUtilityNetwork || !e.includes(this.selectedUtilityNetwork)) && (this.selectedUtilityNetwork = e.at(0));
@@ -256,7 +256,7 @@ class B extends v {
256
256
  i.gdbVersion = this.selectedUtilityNetwork?.gdbVersion, i.objectIds = t.map((r) => r.getObjectId()), i.outFields = ["*"];
257
257
  const { features: a } = f.fromJSON(await m(e, i));
258
258
  return a.forEach((r) => {
259
- r.layer = e.type === "subtype-group" ? e.findSublayerForFeature(r) : e, r.origin = r.layer;
259
+ r.layer = _(e) ? e.findSublayerForFeature(r) : e, r.origin = r.layer;
260
260
  const o = r.layer;
261
261
  r.getEffectivePopupTemplate(this._defaultPopupTemplateEnabled) || (r.popupTemplate = o.createPopupTemplate());
262
262
  }), a;
@@ -264,7 +264,7 @@ class B extends v {
264
264
  async _populateFeaturesWithLabel(e) {
265
265
  const t = /* @__PURE__ */ new Map();
266
266
  e.forEach((a) => {
267
- const r = a.layer?.type === "subtype-sublayer" ? a.layer.parent : a.layer;
267
+ const r = M(a.layer) ? a.layer.parent : a.layer;
268
268
  if (r) {
269
269
  const o = r.layerId, c = this._getLayerByLayerId(o);
270
270
  if (c) {
@@ -329,7 +329,7 @@ class B extends v {
329
329
  const { _messages: e, traceConfigurations: t } = this, i = e.labels.traceConfiguration;
330
330
  if (t.length === 0)
331
331
  return this.renderError(e.errors.noTraceConfigurationError);
332
- const a = k(t, (r) => r.globalId, (r) => s`<calcite-option .value=${r.globalId}>${r.title}</calcite-option>`);
332
+ const a = S(t, (r) => r.globalId, (r) => s`<calcite-option .value=${r.globalId}>${r.title}</calcite-option>`);
333
333
  return s`<calcite-block .heading=${i} .label=${i} expanded><calcite-select .label=${i} .value=${this.selectedNamedTraceConfiguration?.globalId || void 0} @calciteSelectChange=${(r) => {
334
334
  this._selectTraceConfigurationByGuid(r.target.value);
335
335
  }}>${a}</calcite-select></calcite-block>`;
@@ -360,7 +360,7 @@ class B extends v {
360
360
  return e ? s`<arcgis-features .referenceElement=${this.referenceElement} .features=${[e]} .view=${this.view} .defaultPopupTemplateEnabled=${this._defaultPopupTemplateEnabled} .hideActionBar=${this.hideActionBar} open @arcgisClose=${() => this._handleFeaturesClose()} .autoDestroyDisabled=${this.autoDestroyDisabled} ${h(this._featuresComponentRefChange)}></arcgis-features>` : (this.mode = "default", null);
361
361
  }
362
362
  renderAddSpatialFooter() {
363
- const { mode: e, _messages: t, selectedUtilityNetwork: i, _selectedFeature: a } = this, r = T(t.warnings.exceededDisplayLimit, {
363
+ const { mode: e, _messages: t, selectedUtilityNetwork: i, _selectedFeature: a } = this, r = L(t.warnings.exceededDisplayLimit, {
364
364
  limit: this._displayLimit.toString()
365
365
  }), o = e === "add-spatial-feature-list" && this._exceedDisplayLimit, c = a ? !(i?.isUtilityLayer(a.layer) ?? !0) : !0;
366
366
  return s`${o && s`<calcite-input-message id=results-limited-message icon=exclamation-mark-circle status=idle>${r}</calcite-input-message>` || ""}<calcite-button appearance=outline width=full @click=${() => {
@@ -386,7 +386,7 @@ class B extends v {
386
386
  }
387
387
  renderSubnetworkSelection() {
388
388
  const { compatibleSubnetworkNames: e } = this, t = this._messages.labels.subnetworkName;
389
- return this.isSubnetworkNameTraceSelected ? this._state === "loading" ? s`<calcite-loader class="inline-loader" label=loading scale=s></calcite-loader>` : e.length ? s`<calcite-block .heading=${t} .label=${t} expanded>${e.length > M ? this.renderSubnetworkNameInput() : this.renderSubnetworkSelectList()}</calcite-block>` : this.renderError(this._messages.errors.noCompatibleSubnetworks, !1, "exclamation-mark-triangle") : null;
389
+ return this.isSubnetworkNameTraceSelected ? this._state === "loading" ? s`<calcite-loader class="inline-loader" label=loading scale=s></calcite-loader>` : e.length ? s`<calcite-block .heading=${t} .label=${t} expanded>${e.length > x ? this.renderSubnetworkNameInput() : this.renderSubnetworkSelectList()}</calcite-block>` : this.renderError(this._messages.errors.noCompatibleSubnetworks, !1, "exclamation-mark-triangle") : null;
390
390
  }
391
391
  renderSubnetworkInfo() {
392
392
  const { _messages: e, selectedNamedTraceConfiguration: t, _unTraceConfiguration: i } = this;
@@ -404,7 +404,7 @@ class B extends v {
404
404
  return s`<calcite-panel>${e === "add-spatial-feature" ? this.renderSelectedFeature() : s`<calcite-flow>${this.renderDefaultMode()}${this.renderSpatialSelectInstructions()}${this.renderHitTestResults()}</calcite-flow>`}${e !== "default" ? this.renderAddSpatialFooter() : null}</calcite-panel>`;
405
405
  }
406
406
  }
407
- _("arcgis-utility-network-trace-inputs", B);
407
+ k("arcgis-utility-network-trace-inputs", G);
408
408
  export {
409
- B as ArcgisUtilityNetworkTraceInputs
409
+ G as ArcgisUtilityNetworkTraceInputs
410
410
  };
@@ -12,7 +12,7 @@ import b from "@arcgis/core/symbols/SimpleMarkerSymbol.js";
12
12
  import { LitElement as x, createEvent as w } from "@arcgis/lumina";
13
13
  import { log as l } from "@arcgis/toolkit/log";
14
14
  import { u as I } from "../../chunks/useT9n.js";
15
- import { b as C } from "../../chunks/layer-utils.js";
15
+ import { i as C } from "../../chunks/layer-utils.js";
16
16
  const F = L`calcite-block{--calcite-block-content-space: 0;--calcite-block-border-color: transparent;margin:0}.add-location-button{--calcite-button-border-color: var(--calcite-color-border-1);--calcite-button-icon-color: var(--calcite-color-text-1);--calcite-button-text-color: var(--calcite-color-text-1)}.button-container{justify-content:center;display:grid}.clear-button{--calcite-button-border-color: transparent}`;
17
17
  class G extends x {
18
18
  constructor() {