@arcgis/map-components 5.2.0-next.12 → 5.2.0-next.13

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 (38) hide show
  1. package/dist/cdn/4BGPI3L3.js +2 -0
  2. package/dist/cdn/{GTOGU3CL.js → 5D3ZCD2V.js} +1 -1
  3. package/dist/cdn/{HNGHLDNZ.js → 5Z6MDFHN.js} +1 -1
  4. package/dist/cdn/64S26ZIP.js +2 -0
  5. package/dist/cdn/{3QWDXECJ.js → K6O7QOW4.js} +1 -1
  6. package/dist/cdn/MCIDCKIS.js +2 -0
  7. package/dist/cdn/O3S3JGUF.js +2 -0
  8. package/dist/cdn/QQPVIXFY.js +2 -0
  9. package/dist/cdn/R66ZOECE.js +2 -0
  10. package/dist/cdn/TPZUKUI7.js +2 -0
  11. package/dist/cdn/UCPXN4Y5.js +2 -0
  12. package/dist/cdn/assets/print/t9n/messages.en.json +1 -1
  13. package/dist/cdn/index.js +1 -1
  14. package/dist/components/arcgis-daylight/customElement.js +32 -23
  15. package/dist/components/arcgis-features-next/customElement.js +14 -11
  16. package/dist/components/arcgis-labeled-switch/customElement.js +5 -5
  17. package/dist/components/arcgis-layer-list-next/customElement.js +66 -54
  18. package/dist/components/arcgis-multi-feature-form/customElement.js +14 -14
  19. package/dist/components/arcgis-print/customElement.d.ts +3 -0
  20. package/dist/components/arcgis-print-datum-transformation-input/customElement.js +74 -0
  21. package/dist/components/arcgis-print-datum-transformation-input/index.js +3 -0
  22. package/dist/components/arcgis-print-layout-advanced-options/customElement.js +14 -11
  23. package/dist/components/arcgis-print-layout-advanced-options/index.js +1 -0
  24. package/dist/components/arcgis-print-template-selector/customElement.js +8 -8
  25. package/dist/components/arcgis-slider-scale-range/customElement.d.ts +4 -5
  26. package/dist/components/arcgis-slider-scale-range/customElement.js +69 -56
  27. package/dist/docs/api.json +1 -1
  28. package/dist/docs/docs.json +1 -1
  29. package/dist/docs/web-types.json +1 -1
  30. package/dist/loader.js +1 -0
  31. package/package.json +4 -4
  32. package/dist/cdn/DNZU7DTQ.js +0 -2
  33. package/dist/cdn/IKSY73X2.js +0 -2
  34. package/dist/cdn/JE5LMTIW.js +0 -2
  35. package/dist/cdn/KI4JUPA7.js +0 -2
  36. package/dist/cdn/OJIPBNXS.js +0 -2
  37. package/dist/cdn/OUYGGJ47.js +0 -2
  38. package/dist/cdn/VNP4GF74.js +0 -2
@@ -1,7 +1,7 @@
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 R, html as o } from "lit";
4
- import { keyed as T } from "lit/directives/keyed.js";
4
+ import { keyed as y } from "lit/directives/keyed.js";
5
5
  import O from "@arcgis/core/support/actions/ActionButton.js";
6
6
  import E from "@arcgis/core/core/Collection.js";
7
7
  import H from "@arcgis/core/popup/Features.js";
@@ -14,7 +14,7 @@ import { initializeProjection as V } from "@arcgis/core/applications/Components/
14
14
  import { t as U, z as j } from "../../chunks/action-utils.js";
15
15
  import { m as q } from "../../chunks/useViewModel.js";
16
16
  import { renderingSanitizer as b } from "@arcgis/core/applications/Components/sanitizerUtils.js";
17
- import { stripHTML as y } from "@arcgis/core/applications/Components/stringUtils.js";
17
+ import { stripHTML as T } from "@arcgis/core/applications/Components/stringUtils.js";
18
18
  import { substitute as g, formatNumber as C } from "@arcgis/core/intl.js";
19
19
  import { u as G } from "../../chunks/useT9n.js";
20
20
  import { watch as c } from "@arcgis/core/core/reactiveUtils.js";
@@ -38,7 +38,7 @@ class Q extends P {
38
38
  e?.isIntersecting && this.viewModel.featurePage != null && this.viewModel.featurePage++;
39
39
  }, this._featureMenuIntersectionObserver = new IntersectionObserver(this._featureMenuIntersectionObserverCallback, {
40
40
  root: window.document
41
- }), this._featureMenuIntersectionObserverNode = null, this._focusTrapNode = m(), this._rootFlowItemNode = m(), this._featureMenuViewportNode = m(), this._actionBarMenuNode = m(), this._flowContainerNode = m(), this._aggregatedFeaturesComponent = m(), this.messages = G(), this._selectedFeatureComponent = m(), this._cancelOpenRelatedFeature = () => {
41
+ }), this._featureMenuIntersectionObserverNode = null, this._focusTrapNode = m(), this._focusTrapAnimationFrameId = null, this._rootFlowItemNode = m(), this._featureMenuViewportNode = m(), this._actionBarMenuNode = m(), this._flowContainerNode = m(), this._aggregatedFeaturesComponent = m(), this.messages = G(), this._selectedFeatureComponent = m(), this._cancelOpenRelatedFeature = () => {
42
42
  this._openRelatedFeatureAbortController = N(this._openRelatedFeatureAbortController);
43
43
  }, this._openRelatedFeatureAbortController = null, this.flowItems = new E(), this._aggregatedFeatureCount = 0, this._selectedAggregatedFeatureIndex = -1, this._aggregatedFeaturesLoading = !1, this._hasActionsStartSlotContent = !1, this._hasActionsEndSlotContent = !1, this.viewModel = J(this), this.actions = this.viewModel.actions, this.active = this.viewModel.active, this.autoDestroyDisabled = !1, this.focusTrapEnabled = !1, this.collapsed = !1, this.content = this.viewModel.content, this.defaultPopupTemplateEnabled = this.viewModel.defaultPopupTemplateEnabled, this.effectiveHeading = this.viewModel.effectiveHeading, this.featureCount = this.viewModel.featureCount, this.featureMenuOpen = !1, this.featureNavigationTop = !1, this.features = this.viewModel.features, this.featuresPerPage = this.viewModel.featuresPerPage, this.featureItemAbilities = this.viewModel.featureItemAbilities, this.goToOverride = this.viewModel.goToOverride, this.headerActions = new E(), this.heading = this.viewModel.heading, this.headingLevel = 2, this.hideActionBar = !1, this.hideCloseButton = !1, this.hideFeatureMenuHeading = !1, this.hideFeatureNavigation = !1, this.hideFeatureListLayerTitle = !1, this.hideHeading = !1, this.hideSelectFeature = !1, this.hideSpinner = !1, this.hideContent = !1, this.chartAnimationDisabled = this.viewModel.featureItemAbilities?.chartAnimation, this.hideAttachmentsContent = this.viewModel.featureItemAbilities?.attachmentsContent, this.hideCustomContent = this.viewModel.featureItemAbilities?.customContent, this.hideExpressionContent = !1, this.hideFieldsContent = this.viewModel.featureItemAbilities?.fieldsContent, this.hideMediaContent = this.viewModel.featureItemAbilities?.mediaContent, this.hideRelationshipContent = this.viewModel.featureItemAbilities?.relationshipContent, this.hideTextContent = this.viewModel.featureItemAbilities?.textContent, this.hideUtilityNetworkContent = this.viewModel.featureItemAbilities?.utilityNetworkAssociationsContent, this.hideLastEditedInfo = !1, this.highlightDisabled = this.viewModel.highlightEnabled, this.includeDefaultActionsDisabled = this.viewModel.includeDefaultActions, this.initialDisplayMode = this.viewModel.initialDisplayMode, this.location = this.viewModel.location, this.map = this.viewModel.map, this.open = this.viewModel.open, this.promises = this.viewModel.promises, this.responsiveActionsEnabled = !1, this.selectedFeature = this.viewModel.selectedFeature, this.selectedFeatureIndex = this.viewModel.selectedFeatureIndex, this.showCollapseButton = !1, this.spatialReference = this.viewModel.spatialReference, this.state = this.viewModel.state, this.timeZone = this.viewModel.timeZone, this.updateLocationEnabled = this.viewModel.updateLocationEnabled, this.view = this.viewModel.view, this.arcgisPropertyChange = Z()("active", "collapsed", "effectiveHeading", "featureCount", "featureMenuOpen", "features", "promises", "selectedDrillInFeature", "selectedFeature", "selectedFeatureComponent", "selectedFeatureIndex", "state", "open"), this.arcgisReady = A(), this.arcgisClose = A(), this.arcgisTriggerAction = A();
44
44
  }
@@ -73,7 +73,7 @@ class Q extends P {
73
73
  this.open = !1;
74
74
  }
75
75
  async destroy() {
76
- await this.manager.destroy(), this._removeSpinner(this.referenceElement), this._cancelOpenRelatedFeature(), this._removeFlowItems(), this._unobserveFeatureMenuObserver(), this._cancelFetchingFeatures(), this._featureMenuIntersectionObserver?.disconnect();
76
+ await this.manager.destroy(), this._removeSpinner(this.referenceElement), this._cancelOpenRelatedFeature(), this._cancelToggleFocusTrapAnimationFrame(), this._removeFlowItems(), this._unobserveFeatureMenuObserver(), this._cancelFetchingFeatures(), this._featureMenuIntersectionObserver?.disconnect();
77
77
  }
78
78
  async fetchFeatures(e, t) {
79
79
  this._cancelFetchingFeatures();
@@ -105,7 +105,7 @@ class Q extends P {
105
105
  super.connectedCallback(), this._createSpinner();
106
106
  }
107
107
  disconnectedCallback() {
108
- super.disconnectedCallback(), this._removeSpinner(this.referenceElement);
108
+ super.disconnectedCallback(), this._cancelToggleFocusTrapAnimationFrame(), this._removeSpinner(this.referenceElement);
109
109
  }
110
110
  loaded() {
111
111
  this.manager.onLifecycle(() => [
@@ -140,10 +140,13 @@ class Q extends P {
140
140
  this.selectedFeatureComponent !== e && k(() => this.selectedFeatureComponent = e);
141
141
  }
142
142
  _toggleFocusTrap() {
143
- requestAnimationFrame(() => {
144
- this.viewModel.active ? this._focusTrapNode.value?.activate() : this._focusTrapNode.value?.deactivate();
143
+ this._cancelToggleFocusTrapAnimationFrame(), this._focusTrapAnimationFrameId = requestAnimationFrame(() => {
144
+ this._focusTrapAnimationFrameId = null, this.viewModel.active ? this._focusTrapNode.value?.activate() : this._focusTrapNode.value?.deactivate();
145
145
  });
146
146
  }
147
+ _cancelToggleFocusTrapAnimationFrame() {
148
+ this._focusTrapAnimationFrameId != null && (cancelAnimationFrame(this._focusTrapAnimationFrameId), this._focusTrapAnimationFrameId = null);
149
+ }
147
150
  _cancelFetchingFeatures() {
148
151
  this._fetchFeaturesController = N(this._fetchFeaturesController);
149
152
  }
@@ -338,7 +341,7 @@ class Q extends P {
338
341
  const h = i.get(l);
339
342
  return h == null ? null : this._renderFeatureMenuItem(l, h);
340
343
  }), d = n ? n.title ?? this.messages.untitled : null;
341
- return !this.hideFeatureListLayerTitle && d !== null ? T(n ?? "map-graphics", o`<calcite-list-item-group .heading=${d}>${r}</calcite-list-item-group>`) : r;
344
+ return !this.hideFeatureListLayerTitle && d !== null ? y(n ?? "map-graphics", o`<calcite-list-item-group .heading=${d}>${r}</calcite-list-item-group>`) : r;
342
345
  })}</calcite-list>` : null;
343
346
  }
344
347
  _renderHeaderAction(e) {
@@ -356,7 +359,7 @@ class Q extends P {
356
359
  return o`<calcite-flow-item class=${I(x({
357
360
  "content-feature": !0,
358
361
  "flow-item-collapsed": i
359
- }))} .closable=${!a} .closed=${!h} .collapsed=${i} .collapseDirection=${n ? "down" : "up"} .collapsible=${s} .headingLevel=${t} .selected=${e} .messageOverrides=${{ collapse: this.messages.collapse, expand: this.messages.expand }} @calciteFlowItemBack=${this._handleFeatureBack} .loading=${!!this._openRelatedFeatureAbortController} @calciteFlowItemClose=${this._handleClose} @calciteFlowItemToggle=${this._handleCollapseToggle} .heading=${!l && u ? y(u) : void 0} ${f(this._rootFlowItemNode)}>${!l && u ? o`<div slot=heading><div .innerHTML=${b.sanitize(u ?? "") ?? ""}></div></div>` : null}${this._renderHeaderActions()}${this._renderActionBar()}<div class=${I(x("container", "content-container", {
362
+ }))} .closable=${!a} .closed=${!h} .collapsed=${i} .collapseDirection=${n ? "down" : "up"} .collapsible=${s} .headingLevel=${t} .selected=${e} .messageOverrides=${{ collapse: this.messages.collapse, expand: this.messages.expand }} @calciteFlowItemBack=${this._handleFeatureBack} .loading=${!!this._openRelatedFeatureAbortController} @calciteFlowItemClose=${this._handleClose} @calciteFlowItemToggle=${this._handleCollapseToggle} .heading=${!l && u ? T(u) : void 0} ${f(this._rootFlowItemNode)}>${!l && u ? o`<div slot=heading><div .innerHTML=${b.sanitize(u ?? "") ?? ""}></div></div>` : null}${this._renderHeaderActions()}${this._renderActionBar()}<div class=${I(x("container", "content-container", {
360
363
  "content-hidden": w
361
364
  }))}>${this._renderContent()}</div>${this._renderFooter()}</calcite-flow-item>`;
362
365
  }
@@ -379,7 +382,7 @@ class Q extends P {
379
382
  }, () => {
380
383
  this._aggregatedFeaturesComponent.value?.next();
381
384
  })}${this._renderFeaturePaginationText(this._aggregatedFeatureCount, this._selectedAggregatedFeatureIndex)}</div>` : null;
382
- return o`<calcite-flow-item .closable=${!i} .closed=${!n} class="flow-item-drill-in" .description=${y(this._getDrillInFlowItemDescription(e) ?? "")} .heading=${r ? void 0 : y(e.heading ?? "")} .selected=${t} @calciteFlowItemBack=${(M) => {
385
+ return o`<calcite-flow-item .closable=${!i} .closed=${!n} class="flow-item-drill-in" .description=${T(this._getDrillInFlowItemDescription(e) ?? "")} .heading=${r ? void 0 : T(e.heading ?? "")} .selected=${t} @calciteFlowItemBack=${(M) => {
383
386
  M.preventDefault(), this._handleDrillInBackClick();
384
387
  }} .loading=${!!this._openRelatedFeatureAbortController} @calciteFlowItemClose=${this._handleClose}>${r ? null : o`<div slot=heading><div .innerHTML=${b.sanitize(e.heading ?? "") ?? ""}></div></div>`}<div slot=description><div .innerHTML=${b.sanitize(this._getDrillInFlowItemDescription(e) ?? "") ?? ""}></div></div><calcite-action class="action-exit" icon=move-up @click=${this._removeFlowItems} slot=header-actions-start .text=${v ?? ""} title=${v ?? "" ?? p}></calcite-action>${l ? o`<calcite-action icon=zoom-to-object @click=${() => this._openRelatedFeature(e)} slot=header-actions-end .text=${_ ?? ""} title=${_ ?? p}></calcite-action>` : null}${w ? o`<calcite-action-bar expand-disabled expanded scale=s slot=action-bar><calcite-action-group overlay-positioning=fixed scale=s><calcite-action .disabled=${this._zoomToFeature.disabled} .icon=${this._zoomToFeature.icon ?? void 0} .loading=${this._zoomToFeature.active} scale=s text-enabled .text=${u} title=${u ?? p} @click=${() => j(this.viewModel, this._zoomToFeature, e)}></calcite-action></calcite-action-group></calcite-action-bar>` : null}<div class="container">${e}</div>${$}</calcite-flow-item>`;
385
388
  }
@@ -407,7 +410,7 @@ class Q extends P {
407
410
  }
408
411
  _renderContent() {
409
412
  const { content: e, selectedFeatureItem: t } = this.viewModel;
410
- return t ? o`<arcgis-feature-next .autoDestroyDisabled=${this.autoDestroyDisabled} .chartAnimationDisabled=${this.chartAnimationDisabled} .defaultPopupTemplateEnabled=${this.defaultPopupTemplateEnabled} .flowItems=${this.flowItems} .graphic=${t.graphic} .headingLevel=${this.headingLevel + 1} .hideAttachmentsContent=${this.hideAttachmentsContent} .hideContent=${this.hideContent} .hideCustomContent=${this.hideCustomContent} .hideExpressionContent=${this.hideExpressionContent} .hideFieldsContent=${this.hideFieldsContent} hide-heading .hideLastEditedInfo=${this.hideLastEditedInfo} .hideMediaContent=${this.hideMediaContent} .hideTextContent=${this.hideTextContent} .location=${this.location} .map=${this.map} .referenceElement=${this.referenceElement} .showRelationshipContent=${!this.hideRelationshipContent} .showUtilityNetworkContent=${!this.hideUtilityNetworkContent} .spatialReference=${this.spatialReference} .timeZone=${this.timeZone} ${f(this._selectedFeatureComponent)}></arcgis-feature-next>` : typeof e == "string" ? T(e, o`<div .innerHTML=${b.sanitize(e) ?? ""}></div>`) : e ?? null;
413
+ return t ? o`<arcgis-feature-next .autoDestroyDisabled=${this.autoDestroyDisabled} .chartAnimationDisabled=${this.chartAnimationDisabled} .defaultPopupTemplateEnabled=${this.defaultPopupTemplateEnabled} .flowItems=${this.flowItems} .graphic=${t.graphic} .headingLevel=${this.headingLevel + 1} .hideAttachmentsContent=${this.hideAttachmentsContent} .hideContent=${this.hideContent} .hideCustomContent=${this.hideCustomContent} .hideExpressionContent=${this.hideExpressionContent} .hideFieldsContent=${this.hideFieldsContent} hide-heading .hideLastEditedInfo=${this.hideLastEditedInfo} .hideMediaContent=${this.hideMediaContent} .hideTextContent=${this.hideTextContent} .location=${this.location} .map=${this.map} .referenceElement=${this.referenceElement} .showRelationshipContent=${!this.hideRelationshipContent} .showUtilityNetworkContent=${!this.hideUtilityNetworkContent} .spatialReference=${this.spatialReference} .timeZone=${this.timeZone} ${f(this._selectedFeatureComponent)}></arcgis-feature-next>` : typeof e == "string" ? y(e, o`<div .innerHTML=${b.sanitize(e) ?? ""}></div>`) : e ?? null;
411
414
  }
412
415
  }
413
416
  B("arcgis-features-next", Q);
@@ -3,8 +3,8 @@ import { c as o } from "../../chunks/runtime.js";
3
3
  import { ref as r } from "lit/directives/ref.js";
4
4
  import { css as d, html as c } from "lit";
5
5
  import { keyed as h } from "lit/directives/keyed.js";
6
- import { LitElement as p, createEvent as m, safeClassMap as g } from "@arcgis/lumina";
7
- const b = d`.label{--calcite-label-margin-bottom: 0}.label-content{display:flex;flex:1;gap:var(--calcite-spacing-sm);align-items:center;text-wrap:balance}.label-content>div{flex-grow:1}.icon{margin-top:-1px;&.info{color:var(--calcite-color-status-info)}&.warning{color:var(--calcite-color-status-warning)}}.tooltip{text-wrap:wrap}`;
6
+ import { LitElement as p, createEvent as m, safeClassMap as b } from "@arcgis/lumina";
7
+ const g = d`.label{--calcite-label-margin-bottom: 0}.label-content{display:flex;flex:1;gap:var(--calcite-spacing-sm);align-items:center;text-wrap:balance}.label-content>div{flex-grow:1}.icon{margin-top:-1px;&.info{color:var(--calcite-color-status-info)}&.warning{color:var(--calcite-color-status-warning)}}.tooltip{text-wrap:wrap}`;
8
8
  class f extends p {
9
9
  constructor() {
10
10
  super(...arguments), this.checked = !1, this.disabled = !1, this.hintKind = "info", this.arcgisCheckedChanged = m();
@@ -13,7 +13,7 @@ class f extends p {
13
13
  this.properties = { checked: 7, disabled: 7, label: 1, hint: 1, hintIcon: 1, hintKind: 1 };
14
14
  }
15
15
  static {
16
- this.styles = b;
16
+ this.styles = g;
17
17
  }
18
18
  async destroy() {
19
19
  await this.manager.destroy();
@@ -22,8 +22,8 @@ class f extends p {
22
22
  this._icon = e, this.requestUpdate();
23
23
  }
24
24
  render() {
25
- const { label: e, hint: i, hintKind: a, hintIcon: s, checked: l, disabled: n } = this;
26
- return c`<calcite-label class="label" layout=inline-space-between scale=s>${i ? h("label-content", c`<div class="label-content"><div>${e}</div><calcite-icon class=${g(a !== "warning" ? "icon info" : "icon warning")} .icon=${s ?? "information"} @click=${(t) => t.stopPropagation()} scale=s tabindex=0 ${r(this._setIconRef)}></calcite-icon><calcite-tooltip class="tooltip" overlay-positioning=fixed .referenceElement=${this._icon ?? void 0}>${i}</calcite-tooltip></div>`) : e}<calcite-switch .checked=${l} .disabled=${n} scale=s @calciteSwitchChange=${(t) => {
25
+ const { label: e, hint: i, hintKind: a, hintIcon: l, checked: s, disabled: n } = this;
26
+ return c`<calcite-label class="label" layout=inline-space-between scale=s>${i ? h("label-content", c`<div class="label-content"><div>${e}</div><calcite-icon class=${b(a !== "warning" ? "icon info" : "icon warning")} .icon=${l ?? "information"} @click=${(t) => t.stopPropagation()} .textLabel=${i} scale=s tabindex=0 ${r(this._setIconRef)}></calcite-icon><calcite-tooltip id=labeledSwitchTooltip class="tooltip" overlay-positioning=fixed .referenceElement=${this._icon ?? void 0}>${i}</calcite-tooltip></div>`) : e}<calcite-switch .checked=${s} .disabled=${n} scale=s .name=${e} @calciteSwitchChange=${(t) => {
27
27
  this.checked = t.target.checked, this.arcgisCheckedChanged.emit(t.target.checked);
28
28
  }}></calcite-switch></calcite-label>`;
29
29
  }
@@ -1,38 +1,38 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import { c as z } from "../../chunks/runtime.js";
2
+ import { c as P } from "../../chunks/runtime.js";
3
3
  import { css as F, html as d } from "lit";
4
4
  import { keyed as w } from "lit/directives/keyed.js";
5
- import { repeat as A } from "lit/directives/repeat.js";
6
- import D from "@arcgis/core/widgets/LayerList/LayerListViewModel.js";
7
- import { classes as P } from "@arcgis/toolkit/dom";
8
- import { generateGuid as O } from "@arcgis/toolkit/string";
5
+ import { repeat as D } from "lit/directives/repeat.js";
6
+ import O from "@arcgis/core/widgets/LayerList/LayerListViewModel.js";
7
+ import { classes as R } from "@arcgis/toolkit/dom";
8
+ import { generateGuid as B } from "@arcgis/toolkit/string";
9
9
  import { createRef as y, ref as x } from "lit/directives/ref.js";
10
- import { u as R } from "../../chunks/useT9n.js";
11
- import { m as B } from "../../chunks/useViewModel.js";
12
- import { g as I } from "../../chunks/globalCss.js";
13
- import { c as f } from "../../chunks/layer-list-item-indicator.js";
14
- import { g as p, a as $, m as S, b as U, r as N, s as G, c as j, d as Y, e as H } from "../../chunks/layer-list-utils.js";
10
+ import { u as S } from "../../chunks/useT9n.js";
11
+ import { m as U } from "../../chunks/useViewModel.js";
12
+ import { g as L } from "../../chunks/globalCss.js";
13
+ import { c as u } from "../../chunks/layer-list-item-indicator.js";
14
+ import { g as p, a as C, m as N, b as G, r as j, s as Y, c as H, d as V, e as Z } from "../../chunks/layer-list-utils.js";
15
15
  import g from "@arcgis/core/core/Collection.js";
16
- import { on as C, watch as V } from "@arcgis/core/core/reactiveUtils.js";
17
- import { LitElement as Z, createEvent as q, renderElement as E, safeClassMap as L, nothing as T } from "@arcgis/lumina";
18
- import { usePropertyChange as J } from "@arcgis/lumina/controllers";
19
- import { reEmitEvent as K } from "@arcgis/lumina/controllers/accessor";
16
+ import { on as $, watch as q } from "@arcgis/core/core/reactiveUtils.js";
17
+ import { LitElement as J, createEvent as K, renderElement as E, safeClassMap as I, nothing as T } from "@arcgis/lumina";
18
+ import { usePropertyChange as Q } from "@arcgis/lumina/controllers";
19
+ import { reEmitEvent as W } from "@arcgis/lumina/controllers/accessor";
20
20
  import "@arcgis/toolkit/function";
21
- import { u as Q } from "../../chunks/useCloseEvent.js";
22
- import { ArcgisLayerListItem as W } from "./layer-list-item/customElement.js";
23
- const X = F`.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}.esri-widget{box-sizing:border-box;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget *,.esri-widget :before,.esri-widget :after{box-sizing:inherit}.esri-widget.esri-widget--disabled>*{opacity:.4;pointer-events:none}.esri-widget.esri-widget--compact{--esri-widget-padding-y: 0;--esri-widget-padding-x: 0}.esri-widget__anchor{color:var(--calcite-color-text-2)}.esri-widget__anchor:hover{color:var(--calcite-color-text-3)}.esri-widget__anchor:hover,.esri-widget__anchor:focus{text-decoration:underline}.esri-widget__anchor--disabled{opacity:.4;pointer-events:none}.esri-widget__header{background-color:var(--calcite-color-foreground-1);flex:1 0 100%;justify-content:space-between;align-items:center;width:100%;min-height:48px;padding:12px 0 12px 15px;display:flex}.esri-widget__heading{word-break:break-word}.esri-widget__header .esri-widget__heading{width:calc(100% - 48px);text-align:initial;color:var(--calcite-color-text-1);align-items:center;margin:0;padding:0;display:flex}.esri-widget__header-button{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);border:none;flex:0 0 48px;justify-content:center;align-self:stretch;align-items:center;width:48px;padding:0;display:flex}.esri-widget__footer{background-color:var(--calcite-color-foreground-1);justify-content:center;align-items:center;width:100%;min-height:48px;display:flex}.esri-widget__footer-pagination{color:var(--calcite-color-text-2);justify-content:space-between;align-items:center;display:flex}.esri-widget__footer-pagination-previous-button,.esri-widget__footer-pagination-next-button{cursor:pointer;background-color:var(--calcite-color-foreground-1);border:0;margin:0 7px;padding:12px 15px;transition:background-color .125s ease-in-out}.esri-widget__footer-pagination-previous-button:hover,.esri-widget__footer-pagination-previous-button:focus,.esri-widget__footer-pagination-next-button:hover,.esri-widget__footer-pagination-next-button:focus{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1)}.esri-menu{visibility:hidden;z-index:1;background-clip:padding;background-color:var(--calcite-color-foreground-1);background-clip:padding-box;width:100%;max-height:0;margin:2px 0 0;padding:0;font-size:var(--calcite-font-size);line-height:var(--calcite-spacing-xl);position:absolute;top:100%;left:0;overflow:hidden;box-shadow:0 1px 2px #0000004d}.esri-menu .esri-menu__header{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-inverse);padding:6px 12px}.esri-menu__list{margin:0;padding:0;list-style:none}.esri-menu__list-item{cursor:pointer;border-top:1px solid #adadad4d;border-left:3px solid #0000;padding:.8em 1em}.esri-menu__list-item [class^=esri-icon-],.esri-menu__list-item [class*=" esri-icon-"]{padding-right:2.8px}.esri-menu__list-item:first-child{border-top:none}.esri-menu__list-item--focus,.esri-menu__list-item:hover,.esri-menu__list-item:focus{background-color:var(--calcite-color-foreground-1)}.esri-menu__list-item:active{background-color:var(--calcite-color-foreground-current)}.esri-menu__list-item--active,.esri-menu__list-item--active:hover,.esri-menu__list-item--active:focus{background-color:var(--calcite-color-foreground-1);border-left-color:var(--calcite-color-brand)}.esri-widget__table{border-collapse:collapse;color:var(--calcite-color-text-1);border:none;width:100%;line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget__table tr:nth-child(odd){background-color:var(--calcite-color-transparent)}.esri-widget__table tr:nth-child(2n){background-color:var(--calcite-color-transparent-press)}.esri-widget__table tr a{color:var(--calcite-color-text-2)}.esri-widget__table tr a:hover,.esri-widget__table tr a:focus{color:var(--calcite-color-text-1)}.esri-widget__table tr td,.esri-widget__table tr th{vertical-align:top;word-break:break-word;padding:.5em .7em;font-size:var(--calcite-font-size-sm);font-weight:var(--calcite-font-weight-regular)}.esri-widget__table tr th{text-align:left;border-right:3px solid #0000000d;width:50%}.esri-widget__table tr td{width:50%}.esri-input{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1);border:1px solid #959595;font-size:var(--calcite-font-size)}.esri-input::-ms-clear{display:none}.esri-input::placeholder{opacity:1;color:var(--calcite-color-text-2)}.esri-input:placeholder-shown{text-overflow:ellipsis}.esri-input[type=text],.esri-input[type=password],.esri-input[type=number]{height:32px;padding:0 .5em}calcite-combobox.esri-input{border:none}.esri-widget__content--empty{text-align:center;color:var(--calcite-color-border-input);flex-flow:column wrap;align-items:center;padding:18px 22px;display:flex}.esri-widget__content--empty h1.esri-widget__heading,.esri-widget__content--empty h2.esri-widget__heading,.esri-widget__content--empty h3.esri-widget__heading,.esri-widget__content--empty h4.esri-widget__heading,.esri-widget__content--empty h5.esri-widget__heading{font-weight:var(--calcite-font-weight-regular)}.esri-widget__content-illustration--empty{width:128px;padding:1rem 0}.esri-widget__content-icon--empty{width:32px;padding:.5rem 0}.esri-select{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background:var(--calcite-color-foreground-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -8 32 32' width='32' height='32'%3E%3Cpath d='M8 11.207l-4-4V5.793l4 4 4-4v1.414z' fill='%23adadad' fillrule='nonzero'/%3E%3C/svg%3E") 100% no-repeat;border:1px solid #959595;border-radius:0;width:100%;height:32px;margin:0;padding:0 .5em;font-family:inherit;font-size:.85em;display:block}.esri-select[disabled]{cursor:auto}.esri-select::-ms-expand{display:none}.esri-disabled a,.esri-disabled [role=menu],.esri-disabled [role=checkbox],.esri-disabled [class^=esri-icon-],.esri-disabled [class*=" esri-icon-"]{color:var(--calcite-color-text-3)}.keynav-mode .esri-widget:focus,.keynav-mode .esri-widget :focus{z-index:1;outline-offset:2px;outline:2px solid #adadad}.esri-widget__loader-animation{border:.15em solid #adadad4d;border-top-color:var(--calcite-color-border-input);border-radius:100%;width:1em;height:1em;font-size:var(--calcite-font-size-md);animation:1.25s linear infinite esri-rotate;display:block;transform:translateZ(0)}:dir(rtl) .esri-widget__table th{text-align:right;border-left:3px solid #0000000d;border-right:none}:dir(rtl) .esri-select{background-position:0}:dir(rtl) .esri-menu__list-item{border-left:none;border-right:3px solid #0000}:dir(rtl) .esri-menu__list-item [class^=esri-icon-],:dir(rtl) .esri-menu__list-item [class*=" esri-icon-"]{padding-left:2px;padding-right:0}:dir(rtl) .esri-menu__list-item--active{border-right-color:var(--calcite-color-brand)}.esri-icon-font-fallback-text{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.esri-rotating{animation:1.25s linear infinite esri-rotate;transform:translateZ(0)}.esri-clearfix:before,.esri-clearfix:after{content:" ";display:table}.esri-clearfix:after{clear:both}.esri-interactive{cursor:pointer}.esri-hidden{display:none!important}.esri-invisible{visibility:hidden!important}.esri-offscreen{position:absolute;top:-999em;left:-999em}.esri-match-height{flex-direction:column;flex:auto;display:flex;overflow:hidden}:host{width:100%;--arcgis-internal-layer-list-item-scroller-max-height: var(--arcgis-internal-panel-height-md)}.item{--calcite-list-item-icon-center: var(--calcite-space-sm)}.table-icon,.catalog-icon{margin-inline-end:0}.action-image{text-align:center;background-position:50%;background-repeat:no-repeat;background-size:contain;flex:0 0 var(--calcite-spacing-xl);width:var(--calcite-spacing-xl);height:var(--calcite-spacing-xl);font-size:14px}.item__filter-container--sticky{z-index:1;position:sticky;top:0}.item__group{margin-top:var(--calcite-spacing-md)}.item__scroller{overflow-y:auto;z-index:0;position:relative}.item__scroller--enabled{max-height:var(--arcgis-internal-layer-list-item-scroller-max-height)}.item__group__header{color:var(--calcite-color-text-2);font-weight:var(--calcite-font-weight-medium)}.item__list-item{cursor:pointer;min-height:var(--calcite-spacing-xxxl)}.item__list-item[class^=esri-icon-],.item__list-item[class*=" esri-icon-"]{padding-inline-end:2.8px}.item__list-item--disabled{cursor:default}.item__list-item-icon{justify-content:center;align-items:center;min-width:var(--calcite-spacing-xxxl);height:var(--calcite-spacing-xxxl);display:flex}.item__list-item-icon span{line-height:0}.arcgis-thumbnail-preview{background-position:50%;width:22px;height:22px}.item__no-matches-message{justify-content:center;align-items:center;height:96px;display:flex}.content-bottom{margin:var(--calcite-spacing-md) 15px}.content-bottom .arcgis-legend__service{padding:0 0 var(--calcite-spacing-md)}.message{margin:var(--calcite-spacing-md) 15px}.visible-icon{visibility:hidden}.item:hover>.visible-toggle>.visible-icon,.item:focus>.visible-toggle>.visible-icon,.item:focus-within>.visible-toggle>.visible-icon{visibility:visible}`, ee = F`@keyframes esri-basemap-slide{0%{opacity:0;margin-top:0;margin-left:0}75%{opacity:0;margin-top:0;margin-left:0}to{opacity:1;margin-top:5px;margin-left:5px}}@keyframes esri-docking-animation{0%{opacity:0}25%{opacity:0}to{opacity:1}}@keyframes popup-intro-animation-down{0%{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translate(0)}}@keyframes popup-intro-animation-up{0%{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translate(0)}}@supports (-ms-ime-align: auto){.esri-slider__anchor:focus{outline:1px dotted #000}}@keyframes esri-spinner--start-animation{0%{opacity:0;transform:scale(0)}to{opacity:1;transform:scale(1)}}@keyframes esri-spinner--finish-animation{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(0)}}@keyframes esri-spinner--rotate-animation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@media(prefers-reduced-motion){.esri-utility-network-trace__reset-prompt{animation:none!important}}@media(prefers-reduced-motion){.esri-popup--aligned-top-center,.esri-popup--aligned-top-left,.esri-popup--aligned-top-right,.esri-popup--aligned-bottom-center,.esri-popup--aligned-bottom-left,.esri-popup--aligned-bottom-right,.esri-popup--is-docked{animation:none!important}}@media(prefers-reduced-motion:reduce){.esri-fov-overlay{animation:none!important}}@keyframes esri-fade-in-down{0%{opacity:0;transform:translateY(-5px)}25%{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translate(0)}}@keyframes esri-fade-in-up{0%{opacity:0;transform:translateY(5px)}25%{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translate(0)}}@keyframes esri-fade-in{0%{opacity:0}25%{opacity:0}to{opacity:1}}@keyframes esri-fade-in-scale{0%{opacity:0;transform:scale(.95)}to{opacity:1;transform:scale(1)}}@keyframes looping-progresss-bar-ani{0%{width:0;left:0}20%{width:20%;left:0}80%{width:20%;left:80%}to{width:0;left:100%}}@keyframes esri-rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes panel-advance{0%{opacity:0;transform:translate(50px) scale(.99)}to{opacity:1;transform:translate(0) scale(1)}}@keyframes panel-retreat{0%{opacity:0;transform:translate(-50px) scale(.99)}to{opacity:1;transform:translate(0) scale(1)}}@keyframes panel-advance--rtl{0%{opacity:0;transform:translate(-50px) scale(.99)}to{opacity:1;transform:translate(0) scale(1)}}@keyframes panel-retreat--rtl{0%{opacity:0;transform:translate(50px) scale(.99)}to{opacity:1;transform:translate(0) scale(1)}}.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}.esri-widget{box-sizing:border-box;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget *,.esri-widget :before,.esri-widget :after{box-sizing:inherit}.esri-widget.esri-widget--disabled>*{opacity:.4;pointer-events:none}.esri-widget.esri-widget--compact{--esri-widget-padding-y: 0;--esri-widget-padding-x: 0}.esri-widget__anchor{color:var(--calcite-color-text-2)}.esri-widget__anchor:hover{color:var(--calcite-color-text-3)}.esri-widget__anchor:hover,.esri-widget__anchor:focus{text-decoration:underline}.esri-widget__anchor--disabled{opacity:.4;pointer-events:none}.esri-widget__header{background-color:var(--calcite-color-foreground-1);flex:1 0 100%;justify-content:space-between;align-items:center;width:100%;min-height:48px;padding:12px 0 12px 15px;display:flex}.esri-widget__heading{word-break:break-word}.esri-widget__header .esri-widget__heading{width:calc(100% - 48px);text-align:initial;color:var(--calcite-color-text-1);align-items:center;margin:0;padding:0;display:flex}.esri-widget__header-button{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);border:none;flex:0 0 48px;justify-content:center;align-self:stretch;align-items:center;width:48px;padding:0;display:flex}.esri-widget__footer{background-color:var(--calcite-color-foreground-1);justify-content:center;align-items:center;width:100%;min-height:48px;display:flex}.esri-widget__footer-pagination{color:var(--calcite-color-text-2);justify-content:space-between;align-items:center;display:flex}.esri-widget__footer-pagination-previous-button,.esri-widget__footer-pagination-next-button{cursor:pointer;background-color:var(--calcite-color-foreground-1);border:0;margin:0 7px;padding:12px 15px;transition:background-color .125s ease-in-out}.esri-widget__footer-pagination-previous-button:hover,.esri-widget__footer-pagination-previous-button:focus,.esri-widget__footer-pagination-next-button:hover,.esri-widget__footer-pagination-next-button:focus{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1)}.esri-menu{visibility:hidden;z-index:1;background-clip:padding;background-color:var(--calcite-color-foreground-1);background-clip:padding-box;width:100%;max-height:0;margin:2px 0 0;padding:0;font-size:var(--calcite-font-size);line-height:var(--calcite-spacing-xl);position:absolute;top:100%;left:0;overflow:hidden;box-shadow:0 1px 2px #0000004d}.esri-menu .esri-menu__header{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-inverse);padding:6px 12px}.esri-menu__list{margin:0;padding:0;list-style:none}.esri-menu__list-item{cursor:pointer;border-top:1px solid #adadad4d;border-left:3px solid #0000;padding:.8em 1em}.esri-menu__list-item [class^=esri-icon-],.esri-menu__list-item [class*=" esri-icon-"]{padding-right:2.8px}.esri-menu__list-item:first-child{border-top:none}.esri-menu__list-item--focus,.esri-menu__list-item:hover,.esri-menu__list-item:focus{background-color:var(--calcite-color-foreground-1)}.esri-menu__list-item:active{background-color:var(--calcite-color-foreground-current)}.esri-menu__list-item--active,.esri-menu__list-item--active:hover,.esri-menu__list-item--active:focus{background-color:var(--calcite-color-foreground-1);border-left-color:var(--calcite-color-brand)}.esri-widget__table{border-collapse:collapse;color:var(--calcite-color-text-1);border:none;width:100%;line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget__table tr:nth-child(odd){background-color:var(--calcite-color-transparent)}.esri-widget__table tr:nth-child(2n){background-color:var(--calcite-color-transparent-press)}.esri-widget__table tr a{color:var(--calcite-color-text-2)}.esri-widget__table tr a:hover,.esri-widget__table tr a:focus{color:var(--calcite-color-text-1)}.esri-widget__table tr td,.esri-widget__table tr th{vertical-align:top;word-break:break-word;padding:.5em .7em;font-size:var(--calcite-font-size-sm);font-weight:var(--calcite-font-weight-regular)}.esri-widget__table tr th{text-align:left;border-right:3px solid #0000000d;width:50%}.esri-widget__table tr td{width:50%}.esri-input{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1);border:1px solid #959595;font-size:var(--calcite-font-size)}.esri-input::-ms-clear{display:none}.esri-input::placeholder{opacity:1;color:var(--calcite-color-text-2)}.esri-input:placeholder-shown{text-overflow:ellipsis}.esri-input[type=text],.esri-input[type=password],.esri-input[type=number]{height:32px;padding:0 .5em}calcite-combobox.esri-input{border:none}.esri-widget__content--empty{text-align:center;color:var(--calcite-color-border-input);flex-flow:column wrap;align-items:center;padding:18px 22px;display:flex}.esri-widget__content--empty h1.esri-widget__heading,.esri-widget__content--empty h2.esri-widget__heading,.esri-widget__content--empty h3.esri-widget__heading,.esri-widget__content--empty h4.esri-widget__heading,.esri-widget__content--empty h5.esri-widget__heading{font-weight:var(--calcite-font-weight-regular)}.esri-widget__content-illustration--empty{width:128px;padding:1rem 0}.esri-widget__content-icon--empty{width:32px;padding:.5rem 0}.esri-select{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background:var(--calcite-color-foreground-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -8 32 32' width='32' height='32'%3E%3Cpath d='M8 11.207l-4-4V5.793l4 4 4-4v1.414z' fill='%23adadad' fillrule='nonzero'/%3E%3C/svg%3E") 100% no-repeat;border:1px solid #959595;border-radius:0;width:100%;height:32px;margin:0;padding:0 .5em;font-family:inherit;font-size:.85em;display:block}.esri-select[disabled]{cursor:auto}.esri-select::-ms-expand{display:none}.esri-disabled a,.esri-disabled [role=menu],.esri-disabled [role=checkbox],.esri-disabled [class^=esri-icon-],.esri-disabled [class*=" esri-icon-"]{color:var(--calcite-color-text-3)}.keynav-mode .esri-widget:focus,.keynav-mode .esri-widget :focus{z-index:1;outline-offset:2px;outline:2px solid #adadad}.esri-widget__loader-animation{border:.15em solid #adadad4d;border-top-color:var(--calcite-color-border-input);border-radius:100%;width:1em;height:1em;font-size:var(--calcite-font-size-md);animation:1.25s linear infinite esri-rotate;display:block;transform:translateZ(0)}:dir(rtl) .esri-widget__table th{text-align:right;border-left:3px solid #0000000d;border-right:none}:dir(rtl) .esri-select{background-position:0}:dir(rtl) .esri-menu__list-item{border-left:none;border-right:3px solid #0000}:dir(rtl) .esri-menu__list-item [class^=esri-icon-],:dir(rtl) .esri-menu__list-item [class*=" esri-icon-"]{padding-left:2px;padding-right:0}:dir(rtl) .esri-menu__list-item--active{border-right-color:var(--calcite-color-brand)}.esri-icon-font-fallback-text{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.esri-rotating{animation:1.25s linear infinite esri-rotate;transform:translateZ(0)}.esri-clearfix:before,.esri-clearfix:after{content:" ";display:table}.esri-clearfix:after{clear:both}.esri-interactive{cursor:pointer}.esri-hidden{display:none!important}.esri-invisible{visibility:hidden!important}.esri-offscreen{position:absolute;top:-999em;left:-999em}.esri-match-height{flex-direction:column;flex:auto;display:flex;overflow:hidden}.esri-widget--panel{min-width:300px;min-height:32px;padding:var(--arcgis-internal-padding);transition:max-height .25s ease-in-out;overflow-y:auto}:host{display:flex;min-height:var(--calcite-space-3xl);transition:max-height .25s ease-in-out;overflow-y:auto}:host>div{display:flex;width:100%}.filter-no-results{padding:var(--calcite-spacing-md) var(--calcite-space-md-plus)}.table-icon,.catalog-icon{margin-inline-end:0}.action-image{text-align:center;background-position:50%;background-repeat:no-repeat;background-size:contain;flex:0 0 var(--calcite-spacing-xl);width:var(--calcite-spacing-xl);height:var(--calcite-spacing-xl);font-size:var(--calcite-font-size)}.action-menu .action-group{display:none}.action-menu[open] .action-group{display:flex}.active:hover>.visible-toggle>.visible-icon,.active:focus>.visible-toggle>.visible-icon,.active:focus-within>.visible-toggle>.visible-icon{visibility:visible}.status-indicator{margin-inline:0}`, M = "nested", te = B(D);
24
- class ie extends Z {
21
+ import { u as X } from "../../chunks/useCloseEvent.js";
22
+ import { ArcgisLayerListItem as ee } from "./layer-list-item/customElement.js";
23
+ const te = F`.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}.esri-widget{box-sizing:border-box;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget *,.esri-widget :before,.esri-widget :after{box-sizing:inherit}.esri-widget.esri-widget--disabled>*{opacity:.4;pointer-events:none}.esri-widget.esri-widget--compact{--esri-widget-padding-y: 0;--esri-widget-padding-x: 0}.esri-widget__anchor{color:var(--calcite-color-text-2)}.esri-widget__anchor:hover{color:var(--calcite-color-text-3)}.esri-widget__anchor:hover,.esri-widget__anchor:focus{text-decoration:underline}.esri-widget__anchor--disabled{opacity:.4;pointer-events:none}.esri-widget__header{background-color:var(--calcite-color-foreground-1);flex:1 0 100%;justify-content:space-between;align-items:center;width:100%;min-height:48px;padding:12px 0 12px 15px;display:flex}.esri-widget__heading{word-break:break-word}.esri-widget__header .esri-widget__heading{width:calc(100% - 48px);text-align:initial;color:var(--calcite-color-text-1);align-items:center;margin:0;padding:0;display:flex}.esri-widget__header-button{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);border:none;flex:0 0 48px;justify-content:center;align-self:stretch;align-items:center;width:48px;padding:0;display:flex}.esri-widget__footer{background-color:var(--calcite-color-foreground-1);justify-content:center;align-items:center;width:100%;min-height:48px;display:flex}.esri-widget__footer-pagination{color:var(--calcite-color-text-2);justify-content:space-between;align-items:center;display:flex}.esri-widget__footer-pagination-previous-button,.esri-widget__footer-pagination-next-button{cursor:pointer;background-color:var(--calcite-color-foreground-1);border:0;margin:0 7px;padding:12px 15px;transition:background-color .125s ease-in-out}.esri-widget__footer-pagination-previous-button:hover,.esri-widget__footer-pagination-previous-button:focus,.esri-widget__footer-pagination-next-button:hover,.esri-widget__footer-pagination-next-button:focus{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1)}.esri-menu{visibility:hidden;z-index:1;background-clip:padding;background-color:var(--calcite-color-foreground-1);background-clip:padding-box;width:100%;max-height:0;margin:2px 0 0;padding:0;font-size:var(--calcite-font-size);line-height:var(--calcite-spacing-xl);position:absolute;top:100%;left:0;overflow:hidden;box-shadow:0 1px 2px #0000004d}.esri-menu .esri-menu__header{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-inverse);padding:6px 12px}.esri-menu__list{margin:0;padding:0;list-style:none}.esri-menu__list-item{cursor:pointer;border-top:1px solid #adadad4d;border-left:3px solid #0000;padding:.8em 1em}.esri-menu__list-item [class^=esri-icon-],.esri-menu__list-item [class*=" esri-icon-"]{padding-right:2.8px}.esri-menu__list-item:first-child{border-top:none}.esri-menu__list-item--focus,.esri-menu__list-item:hover,.esri-menu__list-item:focus{background-color:var(--calcite-color-foreground-1)}.esri-menu__list-item:active{background-color:var(--calcite-color-foreground-current)}.esri-menu__list-item--active,.esri-menu__list-item--active:hover,.esri-menu__list-item--active:focus{background-color:var(--calcite-color-foreground-1);border-left-color:var(--calcite-color-brand)}.esri-widget__table{border-collapse:collapse;color:var(--calcite-color-text-1);border:none;width:100%;line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget__table tr:nth-child(odd){background-color:var(--calcite-color-transparent)}.esri-widget__table tr:nth-child(2n){background-color:var(--calcite-color-transparent-press)}.esri-widget__table tr a{color:var(--calcite-color-text-2)}.esri-widget__table tr a:hover,.esri-widget__table tr a:focus{color:var(--calcite-color-text-1)}.esri-widget__table tr td,.esri-widget__table tr th{vertical-align:top;word-break:break-word;padding:.5em .7em;font-size:var(--calcite-font-size-sm);font-weight:var(--calcite-font-weight-regular)}.esri-widget__table tr th{text-align:left;border-right:3px solid #0000000d;width:50%}.esri-widget__table tr td{width:50%}.esri-input{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1);border:1px solid #959595;font-size:var(--calcite-font-size)}.esri-input::-ms-clear{display:none}.esri-input::placeholder{opacity:1;color:var(--calcite-color-text-2)}.esri-input:placeholder-shown{text-overflow:ellipsis}.esri-input[type=text],.esri-input[type=password],.esri-input[type=number]{height:32px;padding:0 .5em}calcite-combobox.esri-input{border:none}.esri-widget__content--empty{text-align:center;color:var(--calcite-color-border-input);flex-flow:column wrap;align-items:center;padding:18px 22px;display:flex}.esri-widget__content--empty h1.esri-widget__heading,.esri-widget__content--empty h2.esri-widget__heading,.esri-widget__content--empty h3.esri-widget__heading,.esri-widget__content--empty h4.esri-widget__heading,.esri-widget__content--empty h5.esri-widget__heading{font-weight:var(--calcite-font-weight-regular)}.esri-widget__content-illustration--empty{width:128px;padding:1rem 0}.esri-widget__content-icon--empty{width:32px;padding:.5rem 0}.esri-select{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background:var(--calcite-color-foreground-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -8 32 32' width='32' height='32'%3E%3Cpath d='M8 11.207l-4-4V5.793l4 4 4-4v1.414z' fill='%23adadad' fillrule='nonzero'/%3E%3C/svg%3E") 100% no-repeat;border:1px solid #959595;border-radius:0;width:100%;height:32px;margin:0;padding:0 .5em;font-family:inherit;font-size:.85em;display:block}.esri-select[disabled]{cursor:auto}.esri-select::-ms-expand{display:none}.esri-disabled a,.esri-disabled [role=menu],.esri-disabled [role=checkbox],.esri-disabled [class^=esri-icon-],.esri-disabled [class*=" esri-icon-"]{color:var(--calcite-color-text-3)}.keynav-mode .esri-widget:focus,.keynav-mode .esri-widget :focus{z-index:1;outline-offset:2px;outline:2px solid #adadad}.esri-widget__loader-animation{border:.15em solid #adadad4d;border-top-color:var(--calcite-color-border-input);border-radius:100%;width:1em;height:1em;font-size:var(--calcite-font-size-md);animation:1.25s linear infinite esri-rotate;display:block;transform:translateZ(0)}:dir(rtl) .esri-widget__table th{text-align:right;border-left:3px solid #0000000d;border-right:none}:dir(rtl) .esri-select{background-position:0}:dir(rtl) .esri-menu__list-item{border-left:none;border-right:3px solid #0000}:dir(rtl) .esri-menu__list-item [class^=esri-icon-],:dir(rtl) .esri-menu__list-item [class*=" esri-icon-"]{padding-left:2px;padding-right:0}:dir(rtl) .esri-menu__list-item--active{border-right-color:var(--calcite-color-brand)}.esri-icon-font-fallback-text{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.esri-rotating{animation:1.25s linear infinite esri-rotate;transform:translateZ(0)}.esri-clearfix:before,.esri-clearfix:after{content:" ";display:table}.esri-clearfix:after{clear:both}.esri-interactive{cursor:pointer}.esri-hidden{display:none!important}.esri-invisible{visibility:hidden!important}.esri-offscreen{position:absolute;top:-999em;left:-999em}.esri-match-height{flex-direction:column;flex:auto;display:flex;overflow:hidden}:host{width:100%;--arcgis-internal-layer-list-item-scroller-max-height: var(--arcgis-internal-panel-height-md)}.item{--calcite-list-item-icon-center: var(--calcite-space-sm)}.table-icon,.catalog-icon{margin-inline-end:0}.action-image{text-align:center;background-position:50%;background-repeat:no-repeat;background-size:contain;flex:0 0 var(--calcite-spacing-xl);width:var(--calcite-spacing-xl);height:var(--calcite-spacing-xl);font-size:14px}.item__filter-container--sticky{z-index:1;position:sticky;top:0}.item__group{margin-top:var(--calcite-spacing-md)}.item__scroller{overflow-y:auto;z-index:0;position:relative}.item__scroller--enabled{max-height:var(--arcgis-internal-layer-list-item-scroller-max-height)}.item__group__header{color:var(--calcite-color-text-2);font-weight:var(--calcite-font-weight-medium)}.item__list-item{cursor:pointer;min-height:var(--calcite-spacing-xxxl)}.item__list-item[class^=esri-icon-],.item__list-item[class*=" esri-icon-"]{padding-inline-end:2.8px}.item__list-item--disabled{cursor:default}.item__list-item-icon{justify-content:center;align-items:center;min-width:var(--calcite-spacing-xxxl);height:var(--calcite-spacing-xxxl);display:flex}.item__list-item-icon span{line-height:0}.arcgis-thumbnail-preview{background-position:50%;width:22px;height:22px}.item__no-matches-message{justify-content:center;align-items:center;height:96px;display:flex}.content-bottom{margin:var(--calcite-spacing-md) 15px}.content-bottom .arcgis-legend__service{padding:0 0 var(--calcite-spacing-md)}.message{margin:var(--calcite-spacing-md) 15px}.visible-icon{visibility:hidden}.item:hover>.visible-toggle>.visible-icon,.item:focus>.visible-toggle>.visible-icon,.item:focus-within>.visible-toggle>.visible-icon{visibility:visible}`, ie = F`@keyframes esri-basemap-slide{0%{opacity:0;margin-top:0;margin-left:0}75%{opacity:0;margin-top:0;margin-left:0}to{opacity:1;margin-top:5px;margin-left:5px}}@keyframes esri-docking-animation{0%{opacity:0}25%{opacity:0}to{opacity:1}}@keyframes popup-intro-animation-down{0%{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translate(0)}}@keyframes popup-intro-animation-up{0%{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translate(0)}}@supports (-ms-ime-align: auto){.esri-slider__anchor:focus{outline:1px dotted #000}}@keyframes esri-spinner--start-animation{0%{opacity:0;transform:scale(0)}to{opacity:1;transform:scale(1)}}@keyframes esri-spinner--finish-animation{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(0)}}@keyframes esri-spinner--rotate-animation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@media(prefers-reduced-motion){.esri-utility-network-trace__reset-prompt{animation:none!important}}@media(prefers-reduced-motion){.esri-popup--aligned-top-center,.esri-popup--aligned-top-left,.esri-popup--aligned-top-right,.esri-popup--aligned-bottom-center,.esri-popup--aligned-bottom-left,.esri-popup--aligned-bottom-right,.esri-popup--is-docked{animation:none!important}}@media(prefers-reduced-motion:reduce){.esri-fov-overlay{animation:none!important}}@keyframes esri-fade-in-down{0%{opacity:0;transform:translateY(-5px)}25%{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translate(0)}}@keyframes esri-fade-in-up{0%{opacity:0;transform:translateY(5px)}25%{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translate(0)}}@keyframes esri-fade-in{0%{opacity:0}25%{opacity:0}to{opacity:1}}@keyframes esri-fade-in-scale{0%{opacity:0;transform:scale(.95)}to{opacity:1;transform:scale(1)}}@keyframes looping-progresss-bar-ani{0%{width:0;left:0}20%{width:20%;left:0}80%{width:20%;left:80%}to{width:0;left:100%}}@keyframes esri-rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes panel-advance{0%{opacity:0;transform:translate(50px) scale(.99)}to{opacity:1;transform:translate(0) scale(1)}}@keyframes panel-retreat{0%{opacity:0;transform:translate(-50px) scale(.99)}to{opacity:1;transform:translate(0) scale(1)}}@keyframes panel-advance--rtl{0%{opacity:0;transform:translate(-50px) scale(.99)}to{opacity:1;transform:translate(0) scale(1)}}@keyframes panel-retreat--rtl{0%{opacity:0;transform:translate(50px) scale(.99)}to{opacity:1;transform:translate(0) scale(1)}}.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}.esri-widget{box-sizing:border-box;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget *,.esri-widget :before,.esri-widget :after{box-sizing:inherit}.esri-widget.esri-widget--disabled>*{opacity:.4;pointer-events:none}.esri-widget.esri-widget--compact{--esri-widget-padding-y: 0;--esri-widget-padding-x: 0}.esri-widget__anchor{color:var(--calcite-color-text-2)}.esri-widget__anchor:hover{color:var(--calcite-color-text-3)}.esri-widget__anchor:hover,.esri-widget__anchor:focus{text-decoration:underline}.esri-widget__anchor--disabled{opacity:.4;pointer-events:none}.esri-widget__header{background-color:var(--calcite-color-foreground-1);flex:1 0 100%;justify-content:space-between;align-items:center;width:100%;min-height:48px;padding:12px 0 12px 15px;display:flex}.esri-widget__heading{word-break:break-word}.esri-widget__header .esri-widget__heading{width:calc(100% - 48px);text-align:initial;color:var(--calcite-color-text-1);align-items:center;margin:0;padding:0;display:flex}.esri-widget__header-button{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);border:none;flex:0 0 48px;justify-content:center;align-self:stretch;align-items:center;width:48px;padding:0;display:flex}.esri-widget__footer{background-color:var(--calcite-color-foreground-1);justify-content:center;align-items:center;width:100%;min-height:48px;display:flex}.esri-widget__footer-pagination{color:var(--calcite-color-text-2);justify-content:space-between;align-items:center;display:flex}.esri-widget__footer-pagination-previous-button,.esri-widget__footer-pagination-next-button{cursor:pointer;background-color:var(--calcite-color-foreground-1);border:0;margin:0 7px;padding:12px 15px;transition:background-color .125s ease-in-out}.esri-widget__footer-pagination-previous-button:hover,.esri-widget__footer-pagination-previous-button:focus,.esri-widget__footer-pagination-next-button:hover,.esri-widget__footer-pagination-next-button:focus{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1)}.esri-menu{visibility:hidden;z-index:1;background-clip:padding;background-color:var(--calcite-color-foreground-1);background-clip:padding-box;width:100%;max-height:0;margin:2px 0 0;padding:0;font-size:var(--calcite-font-size);line-height:var(--calcite-spacing-xl);position:absolute;top:100%;left:0;overflow:hidden;box-shadow:0 1px 2px #0000004d}.esri-menu .esri-menu__header{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-inverse);padding:6px 12px}.esri-menu__list{margin:0;padding:0;list-style:none}.esri-menu__list-item{cursor:pointer;border-top:1px solid #adadad4d;border-left:3px solid #0000;padding:.8em 1em}.esri-menu__list-item [class^=esri-icon-],.esri-menu__list-item [class*=" esri-icon-"]{padding-right:2.8px}.esri-menu__list-item:first-child{border-top:none}.esri-menu__list-item--focus,.esri-menu__list-item:hover,.esri-menu__list-item:focus{background-color:var(--calcite-color-foreground-1)}.esri-menu__list-item:active{background-color:var(--calcite-color-foreground-current)}.esri-menu__list-item--active,.esri-menu__list-item--active:hover,.esri-menu__list-item--active:focus{background-color:var(--calcite-color-foreground-1);border-left-color:var(--calcite-color-brand)}.esri-widget__table{border-collapse:collapse;color:var(--calcite-color-text-1);border:none;width:100%;line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget__table tr:nth-child(odd){background-color:var(--calcite-color-transparent)}.esri-widget__table tr:nth-child(2n){background-color:var(--calcite-color-transparent-press)}.esri-widget__table tr a{color:var(--calcite-color-text-2)}.esri-widget__table tr a:hover,.esri-widget__table tr a:focus{color:var(--calcite-color-text-1)}.esri-widget__table tr td,.esri-widget__table tr th{vertical-align:top;word-break:break-word;padding:.5em .7em;font-size:var(--calcite-font-size-sm);font-weight:var(--calcite-font-weight-regular)}.esri-widget__table tr th{text-align:left;border-right:3px solid #0000000d;width:50%}.esri-widget__table tr td{width:50%}.esri-input{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1);border:1px solid #959595;font-size:var(--calcite-font-size)}.esri-input::-ms-clear{display:none}.esri-input::placeholder{opacity:1;color:var(--calcite-color-text-2)}.esri-input:placeholder-shown{text-overflow:ellipsis}.esri-input[type=text],.esri-input[type=password],.esri-input[type=number]{height:32px;padding:0 .5em}calcite-combobox.esri-input{border:none}.esri-widget__content--empty{text-align:center;color:var(--calcite-color-border-input);flex-flow:column wrap;align-items:center;padding:18px 22px;display:flex}.esri-widget__content--empty h1.esri-widget__heading,.esri-widget__content--empty h2.esri-widget__heading,.esri-widget__content--empty h3.esri-widget__heading,.esri-widget__content--empty h4.esri-widget__heading,.esri-widget__content--empty h5.esri-widget__heading{font-weight:var(--calcite-font-weight-regular)}.esri-widget__content-illustration--empty{width:128px;padding:1rem 0}.esri-widget__content-icon--empty{width:32px;padding:.5rem 0}.esri-select{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background:var(--calcite-color-foreground-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -8 32 32' width='32' height='32'%3E%3Cpath d='M8 11.207l-4-4V5.793l4 4 4-4v1.414z' fill='%23adadad' fillrule='nonzero'/%3E%3C/svg%3E") 100% no-repeat;border:1px solid #959595;border-radius:0;width:100%;height:32px;margin:0;padding:0 .5em;font-family:inherit;font-size:.85em;display:block}.esri-select[disabled]{cursor:auto}.esri-select::-ms-expand{display:none}.esri-disabled a,.esri-disabled [role=menu],.esri-disabled [role=checkbox],.esri-disabled [class^=esri-icon-],.esri-disabled [class*=" esri-icon-"]{color:var(--calcite-color-text-3)}.keynav-mode .esri-widget:focus,.keynav-mode .esri-widget :focus{z-index:1;outline-offset:2px;outline:2px solid #adadad}.esri-widget__loader-animation{border:.15em solid #adadad4d;border-top-color:var(--calcite-color-border-input);border-radius:100%;width:1em;height:1em;font-size:var(--calcite-font-size-md);animation:1.25s linear infinite esri-rotate;display:block;transform:translateZ(0)}:dir(rtl) .esri-widget__table th{text-align:right;border-left:3px solid #0000000d;border-right:none}:dir(rtl) .esri-select{background-position:0}:dir(rtl) .esri-menu__list-item{border-left:none;border-right:3px solid #0000}:dir(rtl) .esri-menu__list-item [class^=esri-icon-],:dir(rtl) .esri-menu__list-item [class*=" esri-icon-"]{padding-left:2px;padding-right:0}:dir(rtl) .esri-menu__list-item--active{border-right-color:var(--calcite-color-brand)}.esri-icon-font-fallback-text{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.esri-rotating{animation:1.25s linear infinite esri-rotate;transform:translateZ(0)}.esri-clearfix:before,.esri-clearfix:after{content:" ";display:table}.esri-clearfix:after{clear:both}.esri-interactive{cursor:pointer}.esri-hidden{display:none!important}.esri-invisible{visibility:hidden!important}.esri-offscreen{position:absolute;top:-999em;left:-999em}.esri-match-height{flex-direction:column;flex:auto;display:flex;overflow:hidden}.esri-widget--panel{min-width:300px;min-height:32px;padding:var(--arcgis-internal-padding);transition:max-height .25s ease-in-out;overflow-y:auto}:host{display:flex;min-height:var(--calcite-space-3xl);transition:max-height .25s ease-in-out;overflow-y:auto}:host>div{display:flex;width:100%}.filter-no-results{padding:var(--calcite-spacing-md) var(--calcite-space-md-plus)}.table-icon,.catalog-icon{margin-inline-end:0}.action-image{text-align:center;background-position:50%;background-repeat:no-repeat;background-size:contain;flex:0 0 var(--calcite-spacing-xl);width:var(--calcite-spacing-xl);height:var(--calcite-spacing-xl);font-size:var(--calcite-font-size)}.action-menu .action-group{display:none}.action-menu[open] .action-group{display:flex}.active:hover>.visible-toggle>.visible-icon,.active:focus>.visible-toggle>.visible-icon,.active:focus-within>.visible-toggle>.visible-icon{visibility:visible}.status-indicator{margin-inline:0}`, M = "nested", re = U(O);
24
+ class oe extends J {
25
25
  constructor() {
26
- super(...arguments), this._lastDragDetail = null, this._rootListRef = y(), this._layerFlowItemRef = y(), this._panelFlowItemRef = y(), this._selectedDragItemLayerUid = null, this._rootGroupUid = `operational-${O()}`, this._openedLayersController = null, this.messages = R(), this._canMove = ({ dragEl: e, fromEl: t, toEl: i }, o) => {
26
+ super(...arguments), this._lastDragDetail = null, this._rootListRef = y(), this._layerFlowItemRef = y(), this._panelFlowItemRef = y(), this._selectedDragItemLayerUid = null, this._rootGroupUid = `operational-${B()}`, this._openedLayersController = null, this.messages = S(), this._canMove = ({ dragEl: e, fromEl: t, toEl: i }, o) => {
27
27
  const r = o === "pull" ? this.listItemCanGiveFunction : this.listItemCanReceiveFunction, a = p(e, this.operationalItems);
28
28
  if (!a?.sortable)
29
29
  return !1;
30
- const s = this._getContainerItem(t), n = $(t), l = this._getContainerItem(i), h = $(i), _ = !!n && !!h && n === h, u = {
30
+ const s = this._resolveListContainer(t), n = this._resolveListContainer(i), l = this._getContainerItem(s), h = C(s), m = this._getContainerItem(n), f = C(n), v = !!h && !!f && h === f, _ = {
31
31
  selected: a,
32
- from: s,
33
- to: l
34
- }, v = t.group, m = i.group, b = s?.layer?.type ?? "", c = l?.layer?.type ?? "", k = /* @__PURE__ */ new Set(["map-image", "catalog", "knowledge-graph"]);
35
- return v && m && typeof r == "function" ? r(u) : _ && !k.has(b) && !k.has(c) && a?.layer?.type !== "sublayer";
32
+ from: l,
33
+ to: m
34
+ }, b = s?.group, c = n?.group, z = l?.layer?.type ?? "", A = m?.layer?.type ?? "", k = /* @__PURE__ */ new Set(["map-image", "catalog", "knowledge-graph"]);
35
+ return b && c && typeof r == "function" ? r(_) : v && !k.has(z) && !k.has(A) && a?.layer?.type !== "sublayer";
36
36
  }, this._onCatalogOpen = (e) => {
37
37
  this.openedLayers.push(e.layer?.parent);
38
38
  }, this._onTablesOpen = (e) => {
@@ -44,21 +44,21 @@ class ie extends Z {
44
44
  }, this._setActiveItem = (e) => {
45
45
  if (this.visibilityAppearance !== "default")
46
46
  return;
47
- const t = Array.from(e.composedPath()).find((o) => o.classList?.contains(f.item)), i = p(t, this.operationalItems);
47
+ const t = Array.from(e.composedPath()).find((o) => o.classList?.contains(u.item)), i = p(t, this.operationalItems);
48
48
  this._activeItem = i;
49
- }, this.viewModel = te(this), this.arcgisClose = Q(this), this._activeItem = null, this._onTooltipReferenceChange = (e, t) => {
49
+ }, this.viewModel = re(this), this.arcgisClose = X(this), this._activeItem = null, this._onTooltipReferenceChange = (e, t) => {
50
50
  t ? this._tooltipReferenceMap.set(e, t) : this._tooltipReferenceMap.delete(e);
51
51
  }, this._onSelectedDragItemLayerUidChange = (e) => {
52
52
  this._selectedDragItemLayerUid = e;
53
53
  }, this._onTriggerAction = (e, t) => {
54
54
  this.triggerAction(e, t);
55
- }, this._tooltipReferenceMap = /* @__PURE__ */ new Map(), this._layerListMap = /* @__PURE__ */ new Map(), this.layerTablesEnabled = new g(["knowledge-graph"]), this.mapImageOptions = null, this.openedLayerLists = new g(), this.tileOptions = null, this.view = this.viewModel.view, this.autoDestroyDisabled = !1, this.closed = !1, this.icon = "layers", this.collapsed = !1, this.dragEnabled = !1, this.filterPlaceholder = "", this.filterText = "", this.headingLevel = 2, this.layerTablesAvailable = new g(["knowledge-graph"]), this.listItemCreatedFunction = this.viewModel.listItemCreatedFunction, this.minDragEnabledItems = S, this.minFilterItems = U, this.openedLayers = new g(), this.operationalItems = this.viewModel.operationalItems, this.selectedItems = new g(), this.selectionMode = "none", this.visibilityAppearance = "default", this.hideCatalogLayerList = !1, this.showCloseButton = !1, this.showCollapseButton = !1, this.showErrors = !1, this.showFilter = !1, this.showHeading = !1, this.hideStatusIndicators = !1, this.showTemporaryLayerIndicators = !1, this.state = this.viewModel.state, this.arcgisPropertyChange = J()("state"), this.arcgisReady = q(), this.arcgisTriggerAction = K(() => this.viewModel, "trigger-action");
55
+ }, this._tooltipReferenceMap = /* @__PURE__ */ new Map(), this._layerListMap = /* @__PURE__ */ new Map(), this.layerTablesEnabled = new g(["knowledge-graph"]), this.mapImageOptions = null, this.openedLayerLists = new g(), this.tileOptions = null, this.view = this.viewModel.view, this.autoDestroyDisabled = !1, this.closed = !1, this.icon = "layers", this.collapsed = !1, this.dragEnabled = !1, this.filterPlaceholder = "", this.filterText = "", this.headingLevel = 2, this.layerTablesAvailable = new g(["knowledge-graph"]), this.listItemCreatedFunction = this.viewModel.listItemCreatedFunction, this.minDragEnabledItems = N, this.minFilterItems = G, this.openedLayers = new g(), this.operationalItems = this.viewModel.operationalItems, this.selectedItems = new g(), this.selectionMode = "none", this.visibilityAppearance = "default", this.hideCatalogLayerList = !1, this.showCloseButton = !1, this.showCollapseButton = !1, this.showErrors = !1, this.showFilter = !1, this.showHeading = !1, this.hideStatusIndicators = !1, this.showTemporaryLayerIndicators = !1, this.state = this.viewModel.state, this.arcgisPropertyChange = Q()("state"), this.arcgisReady = K(), this.arcgisTriggerAction = W(() => this.viewModel, "trigger-action");
56
56
  }
57
57
  static {
58
58
  this.properties = { _catalogLayerList: 16, _tableList: 16, _tooltipReferenceMap: 16, _layerListMap: 16, _totalItems: 16, _visibleItems: 16, _openedPanelItems: 16, _dragEnabled: 16, _filterEnabled: 16, layerTablesEnabled: 16, mapImageOptions: 16, openedLayerLists: 16, tileOptions: 16, _renderedOpenLayerFlowItems: 16, view: 0, autoDestroyDisabled: 5, closed: 5, referenceElement: 1, icon: 1, catalogLayerList: 32, catalogOptions: 0, collapsed: 5, dragEnabled: 5, filterPlaceholder: 1, filterPredicate: 0, filterText: 1, headingLevel: 9, knowledgeGraphOptions: 0, layerTablesAvailable: 0, listItemCanGiveFunction: 0, listItemCanReceiveFunction: 0, listItemCreatedFunction: 0, minDragEnabledItems: 9, minFilterItems: 9, openedLayers: 32, operationalItems: 0, selectedItems: 0, selectionMode: 1, tableList: 32, visibilityAppearance: 1, hideCatalogLayerList: 5, showCloseButton: 5, showCollapseButton: 5, showErrors: 5, showFilter: 5, showHeading: 5, hideStatusIndicators: 5, showTemporaryLayerIndicators: 5, messageOverrides: 0, label: 1, state: 32 };
59
59
  }
60
60
  static {
61
- this.styles = [ee, X];
61
+ this.styles = [ie, te];
62
62
  }
63
63
  get _totalItems() {
64
64
  return this.viewModel.operationalItems.flatten((e) => e.children.filter((t) => t.layer?.type !== "catalog-dynamic-group")).length;
@@ -90,16 +90,24 @@ class ie extends Z {
90
90
  }
91
91
  loaded() {
92
92
  this.manager.onLifecycle(() => [
93
- C(() => this.openedLayers, "change", () => {
93
+ $(() => this.openedLayers, "change", () => {
94
94
  this._handleOpenedLayersChange();
95
95
  }, { initial: !0 }),
96
- C(() => this.viewModel.operationalItems, "change", () => N(this.selectedItems), { initial: !0 }),
97
- V(() => [this.filterPredicate, this._rootListRef.value], () => G(this._rootListRef.value, this.filterPredicate, this.operationalItems))
96
+ $(() => this.viewModel.operationalItems, "change", () => j(this.selectedItems), { initial: !0 }),
97
+ q(() => [this.filterPredicate, this._rootListRef.value], () => Y(this._rootListRef.value, this.filterPredicate, this.operationalItems))
98
98
  ]);
99
99
  }
100
100
  triggerAction(e, t) {
101
101
  return this.viewModel.triggerAction(e, t);
102
102
  }
103
+ _resolveListContainer(e) {
104
+ if (!e)
105
+ return null;
106
+ if (e.matches("calcite-list"))
107
+ return e;
108
+ const t = e.closest("calcite-list[data-item]");
109
+ return t || (this._rootListRef.value?.contains(e) ? this._rootListRef.value : null);
110
+ }
103
111
  _getContainerItem(e) {
104
112
  const t = e?.getAttribute("data-item");
105
113
  return t ? this.operationalItems.find((i) => i.uid === t) ?? null : null;
@@ -158,8 +166,8 @@ class ie extends Z {
158
166
  e.open = !1;
159
167
  }
160
168
  _moveLayerFromChildList({ toEl: e, fromEl: t, dragEl: i, newIndex: o }) {
161
- const r = p(i, this.operationalItems), a = this._getContainerItem(e), s = this._getContainerItem(t);
162
- o == null || !r || !a || !s || this.viewModel.moveListItem(r, s, a, o);
169
+ const r = this._resolveListContainer(e), a = this._resolveListContainer(t), s = p(i, this.operationalItems), n = this._getContainerItem(r), l = this._getContainerItem(a);
170
+ o == null || !s || this.viewModel.moveListItem(s, l, n, o);
163
171
  }
164
172
  _onCalciteListDragEnd(e) {
165
173
  const { fromEl: t, toEl: i, dragEl: o, oldIndex: r } = e;
@@ -170,30 +178,34 @@ class ie extends Z {
170
178
  r == null || !t || !o || t.insertBefore(o, t.children[r]);
171
179
  }
172
180
  _onCalciteListOrderChange(e) {
173
- const { _lastDragDetail: t } = this, { toEl: i, fromEl: o, dragEl: r, newIndex: a } = e, s = t?.newIndex === a && t?.dragEl === r && t?.toEl === i && t?.fromEl === o;
174
- if (!(!o || !i || s)) {
175
- if (this._lastDragDetail = e, this._selectedDragItemLayerUid = r.value, o === i) {
176
- const n = Array.from(o.children).filter((l) => l?.matches("calcite-list-item")).map((l) => l.value.layer?.uid ?? "");
177
- this._sortLayers(o, n);
181
+ const { _lastDragDetail: t } = this, { dragEl: i, newIndex: o } = e, r = this._resolveListContainer(e.fromEl), a = this._resolveListContainer(e.toEl), s = t?.newIndex === o && t?.dragEl === i && t?.toEl === a && t?.fromEl === r;
182
+ if (!(!r || !a || s)) {
183
+ if (this._lastDragDetail = {
184
+ ...e,
185
+ fromEl: r,
186
+ toEl: a
187
+ }, this._selectedDragItemLayerUid = i.value, r === a) {
188
+ const n = Array.from(r.children).filter((l) => l?.matches("calcite-list-item")).map((l) => l.value.layer?.uid ?? "");
189
+ this._sortLayers(r, n);
178
190
  return;
179
191
  }
180
192
  this._moveLayerFromChildList({
181
- toEl: i,
182
- fromEl: o,
183
- dragEl: r,
184
- newIndex: a
193
+ toEl: a,
194
+ fromEl: r,
195
+ dragEl: i,
196
+ newIndex: o
185
197
  });
186
198
  }
187
199
  }
188
200
  _sortLayers(e, t) {
189
201
  if (e)
190
202
  if (e === this._rootListRef.value)
191
- j(this.el.view?.map?.layers, t);
203
+ H(this.el.view?.map?.layers, t);
192
204
  else {
193
205
  const i = p(e, this.operationalItems);
194
206
  if (!i)
195
207
  return;
196
- Y(i, t);
208
+ V(i, t);
197
209
  }
198
210
  }
199
211
  _handleCalciteListChange(e) {
@@ -205,10 +217,10 @@ class ie extends Z {
205
217
  }
206
218
  render() {
207
219
  const { _visibleItems: e, state: t } = this, i = {
208
- [I.hidden]: t === "loading",
209
- [I.disabled]: t === "disabled"
220
+ [L.hidden]: t === "loading",
221
+ [L.disabled]: t === "disabled"
210
222
  };
211
- return d`<div class=${L(P(I.widget, i))}>${e?.length ? [this._renderItemTooltips(), this._renderItems()] : this._renderNoItems()}</div>`;
223
+ return d`<div class=${I(R(L.widget, i))}>${e?.length ? [this._renderItemTooltips(), this._renderItems()] : this._renderNoItems()}</div>`;
212
224
  }
213
225
  _renderItemTooltip(e) {
214
226
  const { _tooltipReferenceMap: t, messages: i } = this;
@@ -227,7 +239,7 @@ class ie extends Z {
227
239
  return d`<div slot=message>${this.messages.noItemsToDisplay}</div>`;
228
240
  }
229
241
  _renderNoItems() {
230
- return d`<div class=${L(f.itemMessage)}><calcite-notice icon=information kind=info open width=full>${this._renderNoItemsMessage()}</calcite-notice></div>`;
242
+ return d`<div class=${I(u.itemMessage)}><calcite-notice icon=information kind=info open width=full>${this._renderNoItemsMessage()}</calcite-notice></div>`;
231
243
  }
232
244
  _renderLayerFlowItem(e, t) {
233
245
  const { messages: i, openedLayers: o } = this, r = e.title || this.messages.untitledLayer;
@@ -237,7 +249,7 @@ class ie extends Z {
237
249
  }
238
250
  _renderPanelFlowItems() {
239
251
  const { _openedPanelItems: e, openedLayers: t } = this;
240
- return A(e.toArray(), (o) => o.uid, (o, r) => {
252
+ return D(e.toArray(), (o) => o.uid, (o, r) => {
241
253
  const { panel: a, title: s } = o, n = () => this._handlePanelFlowItemBack(a);
242
254
  return d`<calcite-flow-item .description=${s} .heading=${a.title} .headingLevel=${this.headingLevel} .selected=${!t.length && r === e.length - 1} @calciteFlowItemBack=${(l) => {
243
255
  l.preventDefault(), n();
@@ -245,18 +257,18 @@ class ie extends Z {
245
257
  });
246
258
  }
247
259
  _renderItems() {
248
- const { collapsed: e, _visibleItems: t, _openedPanelItems: i, _filterEnabled: o, _rootGroupUid: r, showCloseButton: a, showCollapseButton: s, showHeading: n, _dragEnabled: l, selectionMode: h, filterText: _, openedLayers: u, filterPlaceholder: v, messages: m } = this, b = [
249
- d`<calcite-flow-item .closable=${a} .closed=${this.closed} .collapsed=${e} .collapsible=${s} .heading=${n ? m.componentLabel : void 0} .headingLevel=${this.headingLevel} .selected=${!u.length && !i.length} @calciteFlowItemClose=${() => this.closed = !1}><calcite-list @focusin=${this._setActiveItem} @focusout=${this._clearActiveItem} .canPull=${(c) => this._canMove(c, "pull")} .canPut=${(c) => this._canMove(c, "put")} data-layer-type=${r ?? T} .displayMode=${M} .dragEnabled=${l} .filterEnabled=${o} .filterPlaceholder=${v} .filterProps=${H} .filterText=${o ? _ : ""} .group=${r} .label=${m.componentLabel} @mouseleave=${this._clearActiveItem} @mouseover=${this._setActiveItem} selection-appearance=highlight .selectionMode=${h} @calciteListChange=${this._handleCalciteListChange} @calciteListFilter=${(c) => this.filterText = c.currentTarget?.filterText ?? ""} @calciteListOrderChange=${(c) => this._onCalciteListOrderChange(c.detail)} @calciteListDragEnd=${(c) => this._onCalciteListDragEnd(c.detail)} ${x(this._rootListRef)}>${t?.toArray().map((c) => this._renderItem(c)) ?? []}${t?.length && o ? d`<div class=${L(f.filterNoResults)} slot=filter-no-results><calcite-notice kind=info open width=full>${this._renderNoItemsMessage()}</calcite-notice></div>` : null}</calcite-list></calcite-flow-item>`,
260
+ const { collapsed: e, _visibleItems: t, _openedPanelItems: i, _filterEnabled: o, _rootGroupUid: r, showCloseButton: a, showCollapseButton: s, showHeading: n, _dragEnabled: l, selectionMode: h, filterText: m, openedLayers: f, filterPlaceholder: v, messages: _ } = this, b = [
261
+ d`<calcite-flow-item .closable=${a} .closed=${this.closed} .collapsed=${e} .collapsible=${s} .heading=${n ? _.componentLabel : void 0} .headingLevel=${this.headingLevel} .selected=${!f.length && !i.length} @calciteFlowItemClose=${() => this.closed = !1}><calcite-list @focusin=${this._setActiveItem} @focusout=${this._clearActiveItem} .canPull=${(c) => this._canMove(c, "pull")} .canPut=${(c) => this._canMove(c, "put")} data-layer-type=${r ?? T} .displayMode=${M} .dragEnabled=${l} .filterEnabled=${o} .filterPlaceholder=${v} .filterProps=${Z} .filterText=${o ? m : ""} .group=${r} .label=${_.componentLabel} @mouseleave=${this._clearActiveItem} @mouseover=${this._setActiveItem} selection-appearance=highlight .selectionMode=${h} @calciteListChange=${this._handleCalciteListChange} @calciteListFilter=${(c) => this.filterText = c.currentTarget?.filterText ?? ""} @calciteListOrderChange=${(c) => this._onCalciteListOrderChange(c.detail)} @calciteListDragEnd=${(c) => this._onCalciteListDragEnd(c.detail)} ${x(this._rootListRef)}>${t?.toArray().map((c) => this._renderItem(c)) ?? []}${t?.length && o ? d`<div class=${I(u.filterNoResults)} slot=filter-no-results><calcite-notice kind=info open width=full>${this._renderNoItemsMessage()}</calcite-notice></div>` : null}</calcite-list></calcite-flow-item>`,
250
262
  this._renderPanelFlowItems(),
251
263
  this._renderedOpenLayerFlowItems
252
264
  ];
253
265
  return this.closed ? null : w("root-flow", d`<calcite-flow>${b}</calcite-flow>`);
254
266
  }
255
267
  _renderItem(e, t, i) {
256
- return w(e.uid, W({ activeItem: this._activeItem, canMove: this._canMove, css: f, displayMode: M, dragEnabled: this.dragEnabled, hideStatusIndicators: this.hideStatusIndicators, hideCatalogLayerList: this.hideCatalogLayerList, item: e, messages: this.messages, layerTablesEnabled: this.layerTablesEnabled, listModeDisabled: this.viewModel.listModeDisabled, operationalItems: this.operationalItems, parent: t, parentTitles: i, rootGroupUid: this._rootGroupUid, selectedDragItemLayerUid: this._selectedDragItemLayerUid, selectedItems: this.selectedItems, selectionMode: this.selectionMode, setCurrentActiveItem: this._setCurrentActiveItem, showTemporaryLayerIndicators: this.showTemporaryLayerIndicators, showCloseButton: this.showCloseButton, showCollapseButton: this.showCollapseButton, showErrors: this.showErrors, showHeading: this.showHeading, showFilter: this.showFilter, clearActiveItem: this._clearActiveItem, visibilityAppearance: this.visibilityAppearance, handleAction: this._onTriggerAction, handleCatalogOpen: this._onCatalogOpen, handleSelectedDragItemLayerUidChange: this._onSelectedDragItemLayerUidChange, handleTablesOpen: this._onTablesOpen, handleTooltipReferenceChange: this._onTooltipReferenceChange, view: this.view }));
268
+ return w(e.uid, ee({ activeItem: this._activeItem, canMove: this._canMove, css: u, displayMode: M, dragEnabled: this.dragEnabled, hideStatusIndicators: this.hideStatusIndicators, hideCatalogLayerList: this.hideCatalogLayerList, item: e, messages: this.messages, layerTablesEnabled: this.layerTablesEnabled, listModeDisabled: this.viewModel.listModeDisabled, operationalItems: this.operationalItems, parent: t, parentTitles: i, rootGroupUid: this._rootGroupUid, selectedDragItemLayerUid: this._selectedDragItemLayerUid, selectedItems: this.selectedItems, selectionMode: this.selectionMode, setCurrentActiveItem: this._setCurrentActiveItem, showTemporaryLayerIndicators: this.showTemporaryLayerIndicators, showCloseButton: this.showCloseButton, showCollapseButton: this.showCollapseButton, showErrors: this.showErrors, showHeading: this.showHeading, showFilter: this.showFilter, clearActiveItem: this._clearActiveItem, visibilityAppearance: this.visibilityAppearance, handleAction: this._onTriggerAction, handleCatalogOpen: this._onCatalogOpen, handleSelectedDragItemLayerUidChange: this._onSelectedDragItemLayerUidChange, handleTablesOpen: this._onTablesOpen, handleTooltipReferenceChange: this._onTooltipReferenceChange, view: this.view }));
257
269
  }
258
270
  }
259
- z("arcgis-layer-list-next", ie);
271
+ P("arcgis-layer-list-next", oe);
260
272
  export {
261
- ie as ArcgisLayerListNext
273
+ oe as ArcgisLayerListNext
262
274
  };