@arcgis/map-components 5.1.0-next.74 → 5.1.0-next.76

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 (57) hide show
  1. package/dist/cdn/5CKHTWHC.js +2 -0
  2. package/dist/cdn/6D72H6LD.js +2 -0
  3. package/dist/cdn/AG7LUCV3.js +2 -0
  4. package/dist/cdn/APYGTRF2.js +2 -0
  5. package/dist/cdn/CUYGLJRU.js +2 -0
  6. package/dist/cdn/G7KHJU6J.js +2 -0
  7. package/dist/cdn/HL4M23YL.js +2 -0
  8. package/dist/cdn/MNXYDKVS.js +2 -0
  9. package/dist/cdn/PP7ZT3L2.js +2 -0
  10. package/dist/cdn/QW4QGAIG.js +2 -0
  11. package/dist/cdn/SD7DMWPD.js +2 -0
  12. package/dist/cdn/{KGLUFWJ7.js → T66WG4I4.js} +1 -1
  13. package/dist/cdn/V2HLEYHF.js +3 -0
  14. package/dist/cdn/WO2BX7U2.js +2 -0
  15. package/dist/cdn/XOTOQOK6.js +2 -0
  16. package/dist/cdn/YFXHW7I2.js +2 -0
  17. package/dist/cdn/YLKEVZLN.js +2 -0
  18. package/dist/cdn/index.js +1 -1
  19. package/dist/chunks/resources.js +35 -0
  20. package/dist/chunks/slots.js +12 -40
  21. package/dist/chunks/useArcgisViewReadyError.js +20 -19
  22. package/dist/chunks/video-utils.js +12 -0
  23. package/dist/components/arcgis-feature/customElement.js +75 -53
  24. package/dist/components/arcgis-feature-media/customElement.js +222 -211
  25. package/dist/components/arcgis-feature-relationship/customElement.js +69 -68
  26. package/dist/components/arcgis-features/customElement.d.ts +2 -2
  27. package/dist/components/arcgis-features/customElement.js +44 -44
  28. package/dist/components/arcgis-link-chart/customElement.js +2 -1
  29. package/dist/components/arcgis-map/customElement.js +7 -6
  30. package/dist/components/arcgis-popup/customElement.d.ts +2 -2
  31. package/dist/components/arcgis-presentation/customElement.js +256 -109
  32. package/dist/components/arcgis-presentation/index.js +1 -0
  33. package/dist/components/arcgis-presentation-captions/customElement.js +37 -0
  34. package/dist/components/arcgis-presentation-captions/index.js +1 -0
  35. package/dist/components/arcgis-scene/customElement.js +2 -1
  36. package/dist/components/arcgis-slider-scale-range/customElement.js +8 -8
  37. package/dist/components/arcgis-video/customElement.js +10 -9
  38. package/dist/components/arcgis-video-player/customElement.js +22 -21
  39. package/dist/components/arcgis-video-player-action-bar/customElement.js +14 -17
  40. package/dist/docs/api.json +1 -1
  41. package/dist/docs/docs.json +1 -1
  42. package/dist/docs/web-types.json +1 -1
  43. package/dist/loader.js +2 -1
  44. package/package.json +5 -5
  45. package/dist/cdn/5EAOM22D.js +0 -2
  46. package/dist/cdn/7J7GJZ35.js +0 -2
  47. package/dist/cdn/AHDX7DZE.js +0 -2
  48. package/dist/cdn/CQCKW6L4.js +0 -2
  49. package/dist/cdn/EXZFAJW4.js +0 -3
  50. package/dist/cdn/GHSQJ4UC.js +0 -2
  51. package/dist/cdn/NYCLIJ7T.js +0 -2
  52. package/dist/cdn/OPXYBLHE.js +0 -2
  53. package/dist/cdn/QPMWCCXQ.js +0 -2
  54. package/dist/cdn/UPVWARLK.js +0 -2
  55. package/dist/cdn/YCM6SOEX.js +0 -2
  56. package/dist/cdn/YCN7F3YY.js +0 -2
  57. package/dist/cdn/Z4OSJFVK.js +0 -2
@@ -1,8 +1,8 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import { g as f, c as p } from "../../chunks/runtime.js";
2
+ import { g as x, c as p } from "../../chunks/runtime.js";
3
3
  import { keyed as _ } from "lit/directives/keyed.js";
4
4
  import { LitElement as g, createEvent as d, safeStyleMap as u, nothing as M } from "@arcgis/lumina";
5
- import { watch as x } from "@arcgis/core/core/reactiveUtils.js";
5
+ import { watch as f } from "@arcgis/core/core/reactiveUtils.js";
6
6
  import { u as v } from "../../chunks/useView.js";
7
7
  import { u as L } from "../../chunks/useT9n.js";
8
8
  import { css as y, html as r } from "lit";
@@ -124,7 +124,7 @@ class I extends g {
124
124
  await this.manager.destroy();
125
125
  }
126
126
  willUpdate(e) {
127
- if ((e.has("maxScaleLimit") || e.has("minScaleLimit")) && (this.minScaleLimit === 0 && (this.minScaleLimit = this._layerMinScaleLimit), this.maxScaleLimit === 0 && (this.maxScaleLimit = this._layerMaxScaleLimit), this.minScaleLimit = Math.min(this.minScaleLimit, this._layerMinScaleLimit), this.maxScaleLimit = Math.max(this.maxScaleLimit, this._layerMaxScaleLimit), this.minScale !== 0 && (this.minScale = Math.min(this.minScale, this.minScaleLimit)), this.maxScale !== 0 && (this.maxScale = Math.max(this.maxScale, this.maxScaleLimit))), e.has("maxScale") || e.has("minScale")) {
127
+ if ((e.has("maxScaleLimit") || e.has("minScaleLimit")) && (this.minScaleLimit === 0 && (this.minScaleLimit = this._layerMinScaleLimit), this.maxScaleLimit === 0 && (this.maxScaleLimit = this._layerMaxScaleLimit), this.minScaleLimit = Math.min(this.minScaleLimit, this._layerMinScaleLimit), this.maxScaleLimit = Math.max(this.maxScaleLimit, this._layerMaxScaleLimit), this.minScale !== 0 && (this.minScale = Math.min(this.minScale, this.minScaleLimit)), this.maxScale !== 0 && (this.maxScale = Math.max(this.maxScale, this.maxScaleLimit)), this._syncLayerScale()), e.has("maxScale") || e.has("minScale")) {
128
128
  if (this.minScale !== 0) {
129
129
  const i = this._clampScale("min", this.minScale);
130
130
  this.minScale = i === this.minScaleLimit ? 0 : i;
@@ -143,8 +143,8 @@ class I extends g {
143
143
  a && (this._portalRegion = a.split("-")[1]?.toLowerCase() ?? null);
144
144
  }).catch(() => {
145
145
  }), this.manager.onLifecycle(() => [
146
- x(() => this.view?.scale, () => this.requestUpdate(), { initial: !0 }),
147
- x(() => ({
146
+ f(() => this.view?.scale, () => this.requestUpdate(), { initial: !0 }),
147
+ f(() => ({
148
148
  // Layer type has loaded property, but Sublayer and SubtypeSublayer use loadStatus instead
149
149
  loaded: this.layer?.loadStatus === "loaded",
150
150
  ready: this.view?.ready
@@ -159,7 +159,7 @@ class I extends g {
159
159
  let n = 0, o = 0;
160
160
  m && (n = m.minScale, o = m.maxScale), o !== 0 && (this._layerMaxScaleLimit = o), n !== 0 && (this._layerMinScaleLimit = n);
161
161
  }
162
- this.minScaleLimit = this._layerMinScaleLimit, this.maxScaleLimit = this._layerMaxScaleLimit;
162
+ this.minScaleLimit = Math.min(this.minScaleLimit, this._layerMinScaleLimit), this.maxScaleLimit = Math.max(this.maxScaleLimit, this._layerMaxScaleLimit);
163
163
  const c = this.layer;
164
164
  c && "minScale" in c && "maxScale" in c && (c.minScale !== 0 && this.minScale === 0 && (this.minScale = Math.min(c.minScale, this.minScaleLimit)), c.maxScale !== 0 && this.maxScale === 0 && (this.maxScale = Math.max(c.maxScale, this.maxScaleLimit)));
165
165
  }, { initial: !0 })
@@ -232,7 +232,7 @@ class I extends g {
232
232
  e === "min" ? this.minScale = i === 0 ? 0 : this._clampScale("min", i) : this.maxScale = i === 0 ? 0 : this._clampScale("max", i), this._syncLayerScale(), this._activeMenu = null;
233
233
  }
234
234
  _syncLayerScale() {
235
- this.layer && "minScale" in this.layer && "maxScale" in this.layer && (this.layer.minScale = this.mode === "max-scale-only" ? 0 : this.minScale, this.layer.maxScale = this.mode === "min-scale-only" ? 0 : this.maxScale);
235
+ this.layer && "minScale" in this.layer && "maxScale" in this.layer && (this.layer.minScale = this.mode === "max-scale-only" ? 0 : this._effectiveMinScale, this.layer.maxScale = this.mode === "min-scale-only" ? 0 : this._effectiveMaxScale);
236
236
  }
237
237
  _renderScalePreviewPopover() {
238
238
  const e = this._renderScalePreview();
@@ -298,7 +298,7 @@ class I extends g {
298
298
  if (typeof e != "number")
299
299
  return null;
300
300
  const i = Math.min(l.length - 1, Math.max(0, Math.floor(e))), a = 5, t = 128, s = t * (i % a), c = t * Math.floor(i / a), m = `-${s}px -${c}px`, n = this._getSpriteSheetFile();
301
- return r`<div class="preview-container"><img src=${f(`./assets/slider-scale-range/images/${n}.avif`) ?? M} style=${u({
301
+ return r`<div class="preview-container"><img src=${x(`./assets/slider-scale-range/images/${n}.avif`) ?? M} style=${u({
302
302
  display: "block",
303
303
  height: `${t}px`,
304
304
  width: `${t}px`,
@@ -1,26 +1,27 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
2
  import { c as o } from "../../chunks/runtime.js";
3
- import { css as h, html as e } from "lit";
3
+ import { css as h, html as t } from "lit";
4
4
  import { useDirection as n } from "@arcgis/lumina/controllers";
5
- import { watch as t } from "@arcgis/core/core/reactiveUtils.js";
5
+ import { watch as e } from "@arcgis/core/core/reactiveUtils.js";
6
6
  import l from "@arcgis/core/views/VideoView.js";
7
7
  import { LitElement as c, createEvent as m, safeClassMap as d } from "@arcgis/lumina";
8
8
  import { makeAccessorController as f } from "@arcgis/lumina/controllers/accessor";
9
9
  import { createRef as s, ref as r } from "lit/directives/ref.js";
10
- import { c as y, s as p, C as a, S as w } from "../../chunks/slots.js";
10
+ import { C as a } from "../../chunks/resources.js";
11
+ import { c as p, s as y, S as w } from "../../chunks/slots.js";
11
12
  import { s as v } from "../../chunks/esri-main.js";
12
13
  const u = h`:host{width:100%;height:100%}`, R = f(l, {
13
14
  omitProps: ["container", "navigation", "scale", "ui"]
14
15
  });
15
16
  class g extends c {
16
17
  constructor() {
17
- super(), this._containerRef = s(), this._direction = n(), this._mapRef = s(), this._slotGroupRefs = y(), this.autoDestroyDisabled = !1, this.view = R(this), this.attributionMode = this.view.attributionMode, this.ready = this.view.ready, this.layer = this.view.layer, this.map = this.view.map, this.arcgisViewReadyChange = m();
18
+ super(), this._containerRef = s(), this._direction = n(), this._mapRef = s(), this._slotGroupRefs = p(), this.autoDestroyDisabled = !1, this.view = R(this), this.attributionMode = this.view.attributionMode, this.ready = this.view.ready, this.layer = this.view.layer, this.map = this.view.map, this.arcgisViewReadyChange = m();
18
19
  }
19
20
  static {
20
21
  this.properties = { autoDestroyDisabled: 5, view: 32, aria: 0, attributionMode: 1, ready: 36, layer: 0, map: 0 };
21
22
  }
22
23
  static {
23
- this.styles = [v, p, u];
24
+ this.styles = [v, y, u];
24
25
  }
25
26
  get aria() {
26
27
  return this.view?.aria;
@@ -34,19 +35,19 @@ class g extends c {
34
35
  loaded() {
35
36
  const i = this;
36
37
  i.el.childElem = this._mapRef.value, this.view.container ??= i.el.childElem, this.manager.onLifecycle(() => [
37
- t(() => this.layer, () => {
38
+ e(() => this.layer, () => {
38
39
  this.layer && this.view && (this.view.layer = this.layer, this.layer.loaded || this.layer.load());
39
40
  }, { initial: !0 }),
40
- t(() => this.view.ready, () => {
41
+ e(() => this.view.ready, () => {
41
42
  this.view.ready && this.arcgisViewReadyChange.emit();
42
43
  }, { initial: this.view.ready })
43
44
  ]);
44
45
  }
45
46
  renderMain() {
46
- return e`<div class=${`root ${a.base}`} ${r(this._mapRef)}></div>`;
47
+ return t`<div class=${`root ${a.base}`} ${r(this._mapRef)}></div>`;
47
48
  }
48
49
  render() {
49
- return e`${this.renderMain()}<section class=${d(a.containerUI)} ${r(this._containerRef)}>${w({ direction: this._direction, slotGroupRefs: this._slotGroupRefs })}</section>`;
50
+ return t`${this.renderMain()}<section class=${d(a.containerUI)} ${r(this._containerRef)}>${w({ direction: this._direction, slotGroupRefs: this._slotGroupRefs })}</section>`;
50
51
  }
51
52
  }
52
53
  o("arcgis-video", g);
@@ -1,25 +1,26 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import { c as o } from "../../chunks/runtime.js";
3
- import { css as n, html as e } from "lit";
4
- import { usePropertyChange as d } from "@arcgis/lumina/controllers";
5
- import { classes as h } from "@arcgis/toolkit/dom";
6
- import c from "@arcgis/core/widgets/VideoPlayer/VideoPlayerViewModel.js";
2
+ import { c as h } from "../../chunks/runtime.js";
3
+ import { css as u, html as e } from "lit";
7
4
  import { watch as t } from "@arcgis/core/core/reactiveUtils.js";
8
- import { LitElement as u, createEvent as a, safeClassMap as g } from "@arcgis/lumina";
9
- import { createRef as m, ref as f } from "lit/directives/ref.js";
10
- import { u as v } from "../../chunks/useT9n.js";
11
- import { m as _ } from "../../chunks/useViewModel.js";
12
- import { g as w } from "../../chunks/globalCss.js";
13
- const p = n`:host{--arcgis-internal-video-player-controls-spacing: 16px;width:531px;height:100%}:host([inline]){width:auto;height:auto}.root,.content{height:100%}.inline{display:flex;gap:var(--calcite-spacing-xs);background-color:var(--calcite-color-foreground-1);padding:var(--calcite-spacing-xxs)}.footer{flex:1}arcgis-video{display:flex;flex:1 1 auto;aspect-ratio:16 / 9;min-height:0}`, y = _(c);
14
- class $ extends u {
5
+ import f from "@arcgis/core/widgets/VideoPlayer/VideoPlayerViewModel.js";
6
+ import { LitElement as g, createEvent as l, safeClassMap as m } from "@arcgis/lumina";
7
+ import { usePropertyChange as v } from "@arcgis/lumina/controllers";
8
+ import { classes as _ } from "@arcgis/toolkit/dom";
9
+ import { createRef as w, ref as p } from "lit/directives/ref.js";
10
+ import { u as y } from "../../chunks/useT9n.js";
11
+ import { m as $ } from "../../chunks/useViewModel.js";
12
+ import { g as V } from "../../chunks/globalCss.js";
13
+ import { n as r } from "../../chunks/video-utils.js";
14
+ const M = u`:host{--arcgis-internal-video-player-controls-spacing: 16px;width:531px;height:100%}:host([inline]){width:auto;height:auto}.root,.content{height:100%}.inline{display:flex;gap:var(--calcite-spacing-xs);background-color:var(--calcite-color-foreground-1);padding:var(--calcite-spacing-xxs)}.footer{flex:1}arcgis-video{display:flex;flex:1 1 auto;aspect-ratio:16 / 9;min-height:0}`, b = $(f);
15
+ class T extends g {
15
16
  constructor() {
16
- super(...arguments), this.messages = v({ blocking: !0 }), this.viewModel = y(this), this._videoViewRef = m(), this._metadataVisible = !1, this._duration = 0, this._currentTime = 0, this._bufferedValue = 0, this._currentValue = 0, this._isBuffering = !1, this._videoViewReady = !1, this.icon = "video-web", this.state = this.viewModel.state, this.layer = this.viewModel.layer, this.autoDestroyDisabled = !1, this.inline = !1, this.showFullscreenToggle = !1, this.hideHeader = !1, this.view = this.viewModel.view, this.arcgisPropertyChange = d()("state", "layer"), this.arcgisReady = a(), this.arcgisVideoReady = a();
17
+ super(...arguments), this.messages = y({ blocking: !0 }), this.viewModel = b(this), this._videoViewRef = w(), this._metadataVisible = !1, this._duration = 0, this._currentTime = 0, this._bufferedValue = 0, this._currentValue = 0, this._isBuffering = !1, this._videoViewReady = !1, this.icon = "video-web", this.state = this.viewModel.state, this.layer = this.viewModel.layer, this.autoDestroyDisabled = !1, this.inline = !1, this.showFullscreenToggle = !1, this.hideHeader = !1, this.view = this.viewModel.view, this.arcgisPropertyChange = v()("state", "layer"), this.arcgisReady = l(), this.arcgisVideoReady = l();
17
18
  }
18
19
  static {
19
20
  this.properties = { _metadataVisible: 16, _duration: 16, _currentTime: 16, _bufferedValue: 16, _currentValue: 16, _isBuffering: 16, _videoViewReady: 16, _layerTitle: 16, _isLive: 16, referenceElement: 1, icon: 1, state: 32, followingMode: 1, layer: 0, autoDestroyDisabled: 5, messageOverrides: 0, label: 3, inline: 7, showFullscreenToggle: 5, hideHeader: 5, view: 0 };
20
21
  }
21
22
  static {
22
- this.styles = p;
23
+ this.styles = M;
23
24
  }
24
25
  get followingMode() {
25
26
  return this.viewModel.followingMode;
@@ -32,9 +33,9 @@ class $ extends u {
32
33
  }
33
34
  loaded() {
34
35
  this.manager.onLifecycle(() => [
35
- t(() => [this.viewModel.currentTime, this.viewModel.duration, this.viewModel.duration, this.viewModel.ended], () => {
36
- const { buffered: i, currentTime: r, duration: s, ended: l } = this.viewModel;
37
- this._duration = s, this._currentTime = r, this._bufferedValue = i / (s || 1), this._currentValue = r / (s || 1), this._isBuffering = !l && this._bufferedValue < this._currentValue;
36
+ t(() => [this.viewModel.currentTime, this.viewModel.duration, this.viewModel.buffered, this.viewModel.ended], () => {
37
+ const { buffered: i, currentTime: o, duration: n, ended: d } = this.viewModel, s = r(n), a = r(o), c = r(i);
38
+ this._duration = s, this._currentTime = a, this._bufferedValue = c / (s || 1), this._currentValue = a / (s || 1), this._isBuffering = !d && this._bufferedValue < this._currentValue;
38
39
  }),
39
40
  t(() => this.layer?.title, (i) => {
40
41
  this._layerTitle = i ?? void 0;
@@ -46,7 +47,7 @@ class $ extends u {
46
47
  ]);
47
48
  }
48
49
  render() {
49
- return e`<div class=${g(h(this.inline ? "inline" : "root", w.widget))}><calcite-panel .heading=${this.hideHeader || this.inline ? void 0 : this._layerTitle ?? this.messages.videoPlayer}>${this.inline || this.hideHeader || !this.showFullscreenToggle ? null : e`<calcite-action slot=header-actions-end icon=full-screen-exit text=minimize @click=${() => this.inline = !this.inline}></calcite-action>`}${this.inline ? e`<div class="inline">${this._renderActionBar()}${this._renderSlider()}${this.showFullscreenToggle ? e`<calcite-action icon=full-screen text=maximize @click=${() => this.inline = !this.inline}></calcite-action>` : null}</div>` : e`<div class="content">${this._renderLoadingScrim()}${this._renderBuffering()}${this._renderVideoSection()}</div>`}${this.inline ? null : e`<div slot=footer class="footer">${this._renderSlider()}${this._renderActionBar()}${this._renderMetadataSection()}</div>`}</calcite-panel></div>`;
50
+ return e`<div class=${m(_(this.inline ? "inline" : "root", V.widget))}><calcite-panel .heading=${this.hideHeader || this.inline ? void 0 : this._layerTitle ?? this.messages.videoPlayer}>${this.inline || this.hideHeader || !this.showFullscreenToggle ? null : e`<calcite-action slot=header-actions-end icon=full-screen-exit text=minimize @click=${() => this.inline = !this.inline}></calcite-action>`}${this.inline ? e`<div class="inline">${this._renderActionBar()}${this._renderSlider()}${this.showFullscreenToggle ? e`<calcite-action icon=full-screen text=maximize @click=${() => this.inline = !this.inline}></calcite-action>` : null}</div>` : e`<div class="content">${this._renderLoadingScrim()}${this._renderBuffering()}${this._renderVideoSection()}</div>`}${this.inline ? null : e`<div slot=footer class="footer">${this._renderSlider()}${this._renderActionBar()}${this._renderMetadataSection()}</div>`}</calcite-panel></div>`;
50
51
  }
51
52
  _renderLoadingScrim() {
52
53
  return this._videoViewReady ? null : e`<calcite-scrim .loading=${this.state !== "error"}>${this.state === "error" ? this.messages.errorLoadingLayer : null}</calcite-scrim>`;
@@ -57,7 +58,7 @@ class $ extends u {
57
58
  _renderVideoSection() {
58
59
  return e`<arcgis-video .layer=${this.layer} .map=${this.viewModel.view?.map} @arcgisViewReadyChange=${() => {
59
60
  this._videoViewReady = !0, this.arcgisVideoReady.emit();
60
- }} ${f(this._videoViewRef)}></arcgis-video>`;
61
+ }} ${p(this._videoViewRef)}></arcgis-video>`;
61
62
  }
62
63
  _renderSlider() {
63
64
  return this._isLive ? null : e`<arcgis-video-player-slider .buffered=${this._bufferedValue} .value=${this._currentValue * 100} .viewModel=${this.viewModel}></arcgis-video-player-slider>`;
@@ -69,7 +70,7 @@ class $ extends u {
69
70
  return this._metadataVisible ? e`<arcgis-video-player-metadata .messages=${this.messages} .viewModel=${this.viewModel}></arcgis-video-player-metadata>` : null;
70
71
  }
71
72
  }
72
- o("arcgis-video-player", $);
73
+ h("arcgis-video-player", T);
73
74
  export {
74
- $ as ArcgisVideoPlayer
75
+ T as ArcgisVideoPlayer
75
76
  };
@@ -1,24 +1,21 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import { c as a } from "../../chunks/runtime.js";
3
- import { css as r, html as e } from "lit";
4
- import { formatDate as l } from "@arcgis/core/intl.js";
5
- import { LitElement as c, safeClassMap as n } from "@arcgis/lumina";
6
- import { watch as d } from "@arcgis/core/core/reactiveUtils.js";
7
- import { classes as m } from "@arcgis/toolkit/dom";
8
- const v = r`.toolbar{display:flex;align-items:center;background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size--2)}.timecode{color:var(--calcite-color-text-3);line-height:1.25rem}.controls-group{display:flex;flex:1 0 auto;justify-content:flex-end}.live-icon{color:var(--calcite-color-status-danger)}.controls-container{display:flex;align-items:center;gap:var(--calcite-spacing-md)}`;
9
- function t(s) {
10
- return l(Math.round(s) * 1e3, { minute: "2-digit", second: "2-digit" });
11
- }
12
- class g extends c {
2
+ import { c as o } from "../../chunks/runtime.js";
3
+ import { css as a, html as e } from "lit";
4
+ import { watch as l } from "@arcgis/core/core/reactiveUtils.js";
5
+ import { LitElement as r, safeClassMap as c } from "@arcgis/lumina";
6
+ import { classes as n } from "@arcgis/toolkit/dom";
7
+ import { f as t } from "../../chunks/video-utils.js";
8
+ const d = a`.toolbar{display:flex;align-items:center;background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size--2)}.timecode{color:var(--calcite-color-text-3);line-height:1.25rem}.controls-group{display:flex;flex:1 0 auto;justify-content:flex-end}.live-icon{color:var(--calcite-color-status-danger)}.controls-container{display:flex;align-items:center;gap:var(--calcite-spacing-md)}`;
9
+ class v extends r {
13
10
  static {
14
11
  this.properties = { _isLive: 16, viewModel: 0, messages: 0, currentTime: 9, duration: 9, toggleMetadata: 0, inline: 5 };
15
12
  }
16
13
  static {
17
- this.styles = v;
14
+ this.styles = d;
18
15
  }
19
16
  loaded() {
20
17
  this.manager.onLifecycle(() => [
21
- d(() => this.viewModel.layer?.isLive, (i) => {
18
+ l(() => this.viewModel.layer?.isLive, (i) => {
22
19
  this._isLive = i ?? void 0;
23
20
  }, { initial: !0 })
24
21
  ]);
@@ -26,11 +23,11 @@ class g extends c {
26
23
  render() {
27
24
  const { messages: i } = this;
28
25
  this._isLive === void 0 && (this._isLive = this.viewModel.layer?.isLive);
29
- const o = this._isLive ? t(this.currentTime) : `${t(this.currentTime)} / ${t(this.duration)}`;
30
- return e`<div class=${n(m("toolbar"))}><div class="controls-container"><arcgis-video-player-actions-group .inline=${this.inline} .messages=${i} .viewModel=${this.viewModel}></arcgis-video-player-actions-group>${this._isLive ? e`<calcite-icon class="live-icon" icon=beacon></calcite-icon>` : null}${!this.inline || this._isLive ? e`<div class="timecode">${o}</div>` : null}</div>${this.inline ? null : e`<arcgis-video-player-controls-group class="controls-group" .messages=${i} .toggleMetadata=${() => this.toggleMetadata()} .viewModel=${this.viewModel}></arcgis-video-player-controls-group>`}</div>`;
26
+ const s = this._isLive ? t(this.currentTime) : `${t(this.currentTime)} / ${t(this.duration)}`;
27
+ return e`<div class=${c(n("toolbar"))}><div class="controls-container"><arcgis-video-player-actions-group .inline=${this.inline} .messages=${i} .viewModel=${this.viewModel}></arcgis-video-player-actions-group>${this._isLive ? e`<calcite-icon class="live-icon" icon=beacon></calcite-icon>` : null}${!this.inline || this._isLive ? e`<div class="timecode">${s}</div>` : null}</div>${this.inline ? null : e`<arcgis-video-player-controls-group class="controls-group" .messages=${i} .toggleMetadata=${() => this.toggleMetadata()} .viewModel=${this.viewModel}></arcgis-video-player-controls-group>`}</div>`;
31
28
  }
32
29
  }
33
- a("arcgis-video-player-action-bar", g);
30
+ o("arcgis-video-player-action-bar", v);
34
31
  export {
35
- g as VideoPlayerActionBar
32
+ v as VideoPlayerActionBar
36
33
  };