@arcgis/map-components 5.2.0-next.116 → 5.2.0-next.118

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 (184) hide show
  1. package/dist/cdn/{YPLDGIGU.js → 2Y5HBYMR.js} +1 -1
  2. package/dist/cdn/{7YQT4TAV.js → 3IICULHW.js} +1 -1
  3. package/dist/cdn/4X5447LA.js +2 -0
  4. package/dist/cdn/{AYA4YPGJ.js → 5GTE6AB7.js} +1 -1
  5. package/dist/cdn/67VFYB4A.js +2 -0
  6. package/dist/cdn/CXDU7XEL.js +2 -0
  7. package/dist/cdn/{KFZLFT6Z.js → GZQXMBK6.js} +1 -1
  8. package/dist/cdn/{RIVFCEGS.js → H6IR3FJ4.js} +1 -1
  9. package/dist/cdn/{AAMXNZ5S.js → HM37S3XP.js} +1 -1
  10. package/dist/cdn/{L5U6EHCA.js → J2BAJI7A.js} +1 -1
  11. package/dist/cdn/{XUNBAMHK.js → KZUMKDRC.js} +1 -1
  12. package/dist/cdn/{IYZBLJYE.js → LBXIC75T.js} +1 -1
  13. package/dist/cdn/{ZVD5QL4J.js → P5JSHW4U.js} +1 -1
  14. package/dist/cdn/{2IXK6FXU.js → P7G6JCDO.js} +1 -1
  15. package/dist/cdn/PQINPHI6.js +2 -0
  16. package/dist/cdn/QNO6SSDQ.js +2 -0
  17. package/dist/cdn/QYIXFX7A.js +2 -0
  18. package/dist/cdn/RWMU7NT7.js +2 -0
  19. package/dist/cdn/{2ZQLKYCJ.js → S25QU4HS.js} +1 -1
  20. package/dist/cdn/{EBONLIVF.js → S5TTVLIS.js} +1 -1
  21. package/dist/cdn/{MBK37J6O.js → STPGQ6FX.js} +1 -1
  22. package/dist/cdn/{7TRI2EBZ.js → TLNCTHYZ.js} +1 -1
  23. package/dist/cdn/{PV7UBH65.js → TN5QHOVX.js} +1 -1
  24. package/dist/cdn/{F47RXPBG.js → VXKWVXTO.js} +1 -1
  25. package/dist/cdn/X5P6K573.js +2 -0
  26. package/dist/cdn/{3HPTS3JC.js → XJZJWNYP.js} +1 -1
  27. package/dist/cdn/assets/feature/t9n/messages.ar.json +1 -1
  28. package/dist/cdn/assets/feature/t9n/messages.bg.json +1 -1
  29. package/dist/cdn/assets/feature/t9n/messages.bs.json +1 -1
  30. package/dist/cdn/assets/feature/t9n/messages.ca.json +1 -1
  31. package/dist/cdn/assets/feature/t9n/messages.cs.json +1 -1
  32. package/dist/cdn/assets/feature/t9n/messages.da.json +1 -1
  33. package/dist/cdn/assets/feature/t9n/messages.de.json +1 -1
  34. package/dist/cdn/assets/feature/t9n/messages.el.json +1 -1
  35. package/dist/cdn/assets/feature/t9n/messages.es.json +1 -1
  36. package/dist/cdn/assets/feature/t9n/messages.et.json +1 -1
  37. package/dist/cdn/assets/feature/t9n/messages.fi.json +1 -1
  38. package/dist/cdn/assets/feature/t9n/messages.fr.json +1 -1
  39. package/dist/cdn/assets/feature/t9n/messages.he.json +1 -1
  40. package/dist/cdn/assets/feature/t9n/messages.hr.json +1 -1
  41. package/dist/cdn/assets/feature/t9n/messages.hu.json +1 -1
  42. package/dist/cdn/assets/feature/t9n/messages.id.json +1 -1
  43. package/dist/cdn/assets/feature/t9n/messages.it.json +1 -1
  44. package/dist/cdn/assets/feature/t9n/messages.ja.json +1 -1
  45. package/dist/cdn/assets/feature/t9n/messages.ko.json +1 -1
  46. package/dist/cdn/assets/feature/t9n/messages.lt.json +1 -1
  47. package/dist/cdn/assets/feature/t9n/messages.lv.json +1 -1
  48. package/dist/cdn/assets/feature/t9n/messages.nl.json +1 -1
  49. package/dist/cdn/assets/feature/t9n/messages.no.json +1 -1
  50. package/dist/cdn/assets/feature/t9n/messages.pl.json +1 -1
  51. package/dist/cdn/assets/feature/t9n/messages.pt-BR.json +1 -1
  52. package/dist/cdn/assets/feature/t9n/messages.pt-PT.json +1 -1
  53. package/dist/cdn/assets/feature/t9n/messages.ro.json +1 -1
  54. package/dist/cdn/assets/feature/t9n/messages.ru.json +1 -1
  55. package/dist/cdn/assets/feature/t9n/messages.sk.json +1 -1
  56. package/dist/cdn/assets/feature/t9n/messages.sl.json +1 -1
  57. package/dist/cdn/assets/feature/t9n/messages.sr.json +1 -1
  58. package/dist/cdn/assets/feature/t9n/messages.sv.json +1 -1
  59. package/dist/cdn/assets/feature/t9n/messages.th.json +1 -1
  60. package/dist/cdn/assets/feature/t9n/messages.tr.json +1 -1
  61. package/dist/cdn/assets/feature/t9n/messages.uk.json +1 -1
  62. package/dist/cdn/assets/feature/t9n/messages.vi.json +1 -1
  63. package/dist/cdn/assets/feature/t9n/messages.zh-CN.json +1 -1
  64. package/dist/cdn/assets/feature/t9n/messages.zh-HK.json +1 -1
  65. package/dist/cdn/assets/feature/t9n/messages.zh-TW.json +1 -1
  66. package/dist/cdn/assets/file-picker/t9n/messages.ar.json +1 -0
  67. package/dist/cdn/assets/file-picker/t9n/messages.bg.json +1 -0
  68. package/dist/cdn/assets/file-picker/t9n/messages.ca.json +1 -0
  69. package/dist/cdn/assets/file-picker/t9n/messages.cs.json +1 -0
  70. package/dist/cdn/assets/file-picker/t9n/messages.da.json +1 -0
  71. package/dist/cdn/assets/file-picker/t9n/messages.de.json +1 -0
  72. package/dist/cdn/assets/file-picker/t9n/messages.el.json +1 -0
  73. package/dist/cdn/assets/file-picker/t9n/messages.es.json +1 -0
  74. package/dist/cdn/assets/file-picker/t9n/messages.et.json +1 -0
  75. package/dist/cdn/assets/file-picker/t9n/messages.fi.json +1 -0
  76. package/dist/cdn/assets/file-picker/t9n/messages.fr.json +1 -0
  77. package/dist/cdn/assets/file-picker/t9n/messages.he.json +1 -0
  78. package/dist/cdn/assets/file-picker/t9n/messages.hr.json +1 -0
  79. package/dist/cdn/assets/file-picker/t9n/messages.hu.json +1 -0
  80. package/dist/cdn/assets/file-picker/t9n/messages.id.json +1 -0
  81. package/dist/cdn/assets/file-picker/t9n/messages.it.json +1 -0
  82. package/dist/cdn/assets/file-picker/t9n/messages.ja.json +1 -0
  83. package/dist/cdn/assets/file-picker/t9n/messages.ko.json +1 -0
  84. package/dist/cdn/assets/file-picker/t9n/messages.lt.json +1 -0
  85. package/dist/cdn/assets/file-picker/t9n/messages.lv.json +1 -0
  86. package/dist/cdn/assets/file-picker/t9n/messages.nl.json +1 -0
  87. package/dist/cdn/assets/file-picker/t9n/messages.no.json +1 -0
  88. package/dist/cdn/assets/file-picker/t9n/messages.pl.json +1 -0
  89. package/dist/cdn/assets/file-picker/t9n/messages.pt-BR.json +1 -0
  90. package/dist/cdn/assets/file-picker/t9n/messages.pt-PT.json +1 -0
  91. package/dist/cdn/assets/file-picker/t9n/messages.ro.json +1 -0
  92. package/dist/cdn/assets/file-picker/t9n/messages.ru.json +1 -0
  93. package/dist/cdn/assets/file-picker/t9n/messages.sk.json +1 -0
  94. package/dist/cdn/assets/file-picker/t9n/messages.sl.json +1 -0
  95. package/dist/cdn/assets/file-picker/t9n/messages.sr.json +1 -0
  96. package/dist/cdn/assets/file-picker/t9n/messages.sv.json +1 -0
  97. package/dist/cdn/assets/file-picker/t9n/messages.th.json +1 -0
  98. package/dist/cdn/assets/file-picker/t9n/messages.tr.json +1 -0
  99. package/dist/cdn/assets/file-picker/t9n/messages.uk.json +1 -0
  100. package/dist/cdn/assets/file-picker/t9n/messages.vi.json +1 -0
  101. package/dist/cdn/assets/file-picker/t9n/messages.zh-CN.json +1 -0
  102. package/dist/cdn/assets/file-picker/t9n/messages.zh-TW.json +1 -0
  103. package/dist/cdn/assets/volume-measurement/t9n/messages.ar.json +1 -1
  104. package/dist/cdn/assets/volume-measurement/t9n/messages.bg.json +1 -1
  105. package/dist/cdn/assets/volume-measurement/t9n/messages.bs.json +1 -1
  106. package/dist/cdn/assets/volume-measurement/t9n/messages.ca.json +1 -1
  107. package/dist/cdn/assets/volume-measurement/t9n/messages.cs.json +1 -1
  108. package/dist/cdn/assets/volume-measurement/t9n/messages.da.json +1 -1
  109. package/dist/cdn/assets/volume-measurement/t9n/messages.de.json +1 -1
  110. package/dist/cdn/assets/volume-measurement/t9n/messages.el.json +1 -1
  111. package/dist/cdn/assets/volume-measurement/t9n/messages.es.json +1 -1
  112. package/dist/cdn/assets/volume-measurement/t9n/messages.et.json +1 -1
  113. package/dist/cdn/assets/volume-measurement/t9n/messages.fi.json +1 -1
  114. package/dist/cdn/assets/volume-measurement/t9n/messages.fr.json +1 -1
  115. package/dist/cdn/assets/volume-measurement/t9n/messages.he.json +1 -1
  116. package/dist/cdn/assets/volume-measurement/t9n/messages.hr.json +1 -1
  117. package/dist/cdn/assets/volume-measurement/t9n/messages.hu.json +1 -1
  118. package/dist/cdn/assets/volume-measurement/t9n/messages.id.json +1 -1
  119. package/dist/cdn/assets/volume-measurement/t9n/messages.it.json +1 -1
  120. package/dist/cdn/assets/volume-measurement/t9n/messages.ja.json +1 -1
  121. package/dist/cdn/assets/volume-measurement/t9n/messages.ko.json +1 -1
  122. package/dist/cdn/assets/volume-measurement/t9n/messages.lt.json +1 -1
  123. package/dist/cdn/assets/volume-measurement/t9n/messages.lv.json +1 -1
  124. package/dist/cdn/assets/volume-measurement/t9n/messages.nl.json +1 -1
  125. package/dist/cdn/assets/volume-measurement/t9n/messages.no.json +1 -1
  126. package/dist/cdn/assets/volume-measurement/t9n/messages.pl.json +1 -1
  127. package/dist/cdn/assets/volume-measurement/t9n/messages.pt-BR.json +1 -1
  128. package/dist/cdn/assets/volume-measurement/t9n/messages.pt-PT.json +1 -1
  129. package/dist/cdn/assets/volume-measurement/t9n/messages.ro.json +1 -1
  130. package/dist/cdn/assets/volume-measurement/t9n/messages.ru.json +1 -1
  131. package/dist/cdn/assets/volume-measurement/t9n/messages.sk.json +1 -1
  132. package/dist/cdn/assets/volume-measurement/t9n/messages.sl.json +1 -1
  133. package/dist/cdn/assets/volume-measurement/t9n/messages.sr.json +1 -1
  134. package/dist/cdn/assets/volume-measurement/t9n/messages.sv.json +1 -1
  135. package/dist/cdn/assets/volume-measurement/t9n/messages.th.json +1 -1
  136. package/dist/cdn/assets/volume-measurement/t9n/messages.tr.json +1 -1
  137. package/dist/cdn/assets/volume-measurement/t9n/messages.uk.json +1 -1
  138. package/dist/cdn/assets/volume-measurement/t9n/messages.vi.json +1 -1
  139. package/dist/cdn/assets/volume-measurement/t9n/messages.zh-CN.json +1 -1
  140. package/dist/cdn/assets/volume-measurement/t9n/messages.zh-HK.json +1 -1
  141. package/dist/cdn/assets/volume-measurement/t9n/messages.zh-TW.json +1 -1
  142. package/dist/cdn/index.js +1 -1
  143. package/dist/chunks/AnalysisViewModel.js +78 -75
  144. package/dist/chunks/GeolocationPositioning.js +67 -67
  145. package/dist/chunks/screenLocation.js +8 -8
  146. package/dist/chunks/useLayerById.js +13 -12
  147. package/dist/components/arcgis-area-measurement-2d/customElement.d.ts +2 -2
  148. package/dist/components/arcgis-area-measurement-2d/customElement.js +1 -1
  149. package/dist/components/arcgis-basemap-layer-list-next/customElement.d.ts +1 -1
  150. package/dist/components/arcgis-bookmarks/customElement.d.ts +30 -3
  151. package/dist/components/arcgis-building-level-picker/customElement.js +22 -22
  152. package/dist/components/arcgis-catalog-layer-list-next/customElement.d.ts +1 -1
  153. package/dist/components/arcgis-distance-measurement-2d/customElement.d.ts +2 -2
  154. package/dist/components/arcgis-distance-measurement-2d/customElement.js +1 -1
  155. package/dist/components/arcgis-editor/customElement.d.ts +4 -4
  156. package/dist/components/arcgis-expand/customElement.js +1 -1
  157. package/dist/components/arcgis-exploratory-analysis/customElement.d.ts +1 -1
  158. package/dist/components/arcgis-features/customElement.js +30 -30
  159. package/dist/components/arcgis-grid-controls/customElement.d.ts +1 -1
  160. package/dist/components/arcgis-layer-list-next/customElement.d.ts +1 -1
  161. package/dist/components/arcgis-paste/customElement.js +30 -25
  162. package/dist/components/arcgis-reverse-geocode-list/customElement.js +30 -30
  163. package/dist/components/arcgis-sketch/customElement.d.ts +4 -4
  164. package/dist/components/arcgis-sketch-tooltip-controls/customElement.d.ts +2 -2
  165. package/dist/components/arcgis-snapping-controls/customElement.d.ts +1 -1
  166. package/dist/components/arcgis-table-list/customElement.d.ts +1 -1
  167. package/dist/components/arcgis-table-list-next/customElement.d.ts +1 -1
  168. package/dist/components/arcgis-value-picker-legacy/customElement.d.ts +2 -1
  169. package/dist/components/arcgis-video-player/VideoPlayerViewModel.d.ts +52 -0
  170. package/dist/components/arcgis-video-player/customElement.d.ts +4 -6
  171. package/dist/components/arcgis-video-player/customElement.js +241 -33
  172. package/dist/docs/api.json +1 -1
  173. package/dist/docs/docs.json +1 -1
  174. package/dist/docs/vscode.html-custom-data.json +1 -1
  175. package/dist/docs/web-types.json +1 -1
  176. package/package.json +5 -5
  177. package/dist/cdn/HC2C4ZYW.js +0 -2
  178. package/dist/cdn/L3V32U4F.js +0 -2
  179. package/dist/cdn/M4BXOW2Q.js +0 -2
  180. package/dist/cdn/NE7E7YHO.js +0 -2
  181. package/dist/cdn/O7UYGS63.js +0 -2
  182. package/dist/cdn/T6NUABZU.js +0 -2
  183. package/dist/cdn/TQOCUWMD.js +0 -2
  184. package/dist/cdn/XMDFKE47.js +0 -2
@@ -1,26 +1,234 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import { c as h } from "../../chunks/runtime.js";
3
- import { css as u, html as e } from "lit";
4
- import { watch as t } from "@arcgis/core/core/reactiveUtils.js";
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 p } from "@arcgis/toolkit/dom";
9
- import { createRef as _, ref as y } from "lit/directives/ref.js";
10
- import { u as w } from "../../chunks/useT9n.js";
11
- import { m as V } from "../../chunks/useViewModel.js";
12
- import { g as $ } 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 = V(f);
15
- class T extends g {
2
+ import { c as g } from "../../chunks/runtime.js";
3
+ import { css as v, html as s } from "lit";
4
+ import { watch as d } from "@arcgis/core/core/reactiveUtils.js";
5
+ import { LitElement as w, createEvent as u, safeClassMap as _ } from "@arcgis/lumina";
6
+ import { usePropertyChange as T } from "@arcgis/lumina/controllers";
7
+ import { classes as M } from "@arcgis/toolkit/dom";
8
+ import { createRef as b, ref as D } from "lit/directives/ref.js";
9
+ import { u as V } from "../../chunks/useT9n.js";
10
+ import { m as $ } from "../../chunks/useViewModel.js";
11
+ import { g as P } from "../../chunks/globalCss.js";
12
+ import { n as f } from "../../chunks/video-utils.js";
13
+ import C from "@arcgis/core/core/Accessor.js";
14
+ import { property as l, subclass as S } from "@arcgis/core/core/accessorSupport/decorators.js";
15
+ var L = Object.defineProperty, k = Object.getOwnPropertyDescriptor, a = (e, i, n, h) => {
16
+ for (var r = h > 1 ? void 0 : h ? k(i, n) : i, y = e.length - 1, c; y >= 0; y--)
17
+ (c = e[y]) && (r = (h ? c(i, n, r) : c(r)) || r);
18
+ return h && r && L(i, n, r), r;
19
+ };
20
+ const o = {
21
+ FrameCenterElevation: 10025,
22
+ FrameCenterLatitude: 10023,
23
+ FrameCenterLongitude: 10024,
24
+ MissionId: 10003,
25
+ PlatformCallSign: 10059,
26
+ PlatformDesignation: 10010,
27
+ PlatformGroundRange: 10057,
28
+ PlatformTailNumber: 10004,
29
+ PlatformTrueAirspeed: 10008,
30
+ PrecisionTimeStamp: 10002
31
+ };
32
+ function m(e, i) {
33
+ const n = {};
34
+ for (const h of i) {
35
+ const r = e.get(h);
36
+ r && (n[r.name] = String(r.value));
37
+ }
38
+ return n;
39
+ }
40
+ let t = class extends C {
41
+ //#region Lifecycle
42
+ constructor(e) {
43
+ super(e), this.followingMode = "follow-both", this.seekLength = 10;
44
+ }
45
+ initialize() {
46
+ this.addHandles([
47
+ d(
48
+ () => this.layer,
49
+ (e, i) => {
50
+ i && i.pause(), e && e.load().then(() => this._followTelemetry()).catch(() => {
51
+ });
52
+ },
53
+ { initial: !0 }
54
+ ),
55
+ d(
56
+ () => [this.followingMode],
57
+ () => this._followTelemetry(),
58
+ { initial: !0 }
59
+ )
60
+ ]);
61
+ }
62
+ get buffered() {
63
+ return this.layer?.buffered || 0;
64
+ }
65
+ get currentTime() {
66
+ return this.layer?.currentTime || 0;
67
+ }
68
+ get duration() {
69
+ return this.layer?.duration || 0;
70
+ }
71
+ get ended() {
72
+ return this.layer?.ended ?? !0;
73
+ }
74
+ get metadata() {
75
+ const e = this.layer?.metadata;
76
+ return e ? {
77
+ missionInfo: m(e, [o.MissionId, o.PrecisionTimeStamp]),
78
+ platformInfo: m(e, [
79
+ o.PlatformTailNumber,
80
+ o.PlatformTrueAirspeed,
81
+ o.PlatformCallSign,
82
+ o.PlatformDesignation,
83
+ o.PlatformGroundRange
84
+ ]),
85
+ frameInfo: m(e, [
86
+ o.FrameCenterElevation,
87
+ o.FrameCenterLatitude,
88
+ o.FrameCenterLongitude
89
+ ])
90
+ } : null;
91
+ }
92
+ get playing() {
93
+ return this.layer?.playing ?? !1;
94
+ }
95
+ previewsInfo() {
96
+ return this.layer?.previewsInfo || null;
97
+ }
98
+ get state() {
99
+ return this.layer?.loadError ? "error" : this.layer?.state ?? "not-ready";
100
+ }
101
+ //#endregion
102
+ //#region Public Methods
103
+ changeGraphicsColor(e) {
104
+ e && this.layer.updateTelemetryColor(e);
105
+ }
106
+ changePlaybackSpeed(e) {
107
+ this.layer && (this.layer.playbackRate = e);
108
+ }
109
+ pause() {
110
+ this.layer?.pause();
111
+ }
112
+ play() {
113
+ this.layer?.play();
114
+ }
115
+ seekBackward() {
116
+ if (this.layer) {
117
+ const e = this.layer.currentTime - this.seekLength;
118
+ e <= 0 ? this.layer.reset() : this.layer.setCurrentTime(e);
119
+ }
120
+ }
121
+ seekForward() {
122
+ if (this.layer) {
123
+ const e = this.layer.currentTime + this.seekLength;
124
+ e >= this.layer.duration ? this.layer.reset() : this.layer.setCurrentTime(e);
125
+ }
126
+ }
127
+ seekTo(e) {
128
+ this.layer?.setCurrentTime(e);
129
+ }
130
+ seekToBeginning() {
131
+ this.layer?.setCurrentTime(0);
132
+ }
133
+ seekToEnding() {
134
+ this.layer?.setCurrentTime(this.layer.duration);
135
+ }
136
+ toggleFrameCenterDisplay() {
137
+ this.layer?.telemetryDisplay && (this.layer.telemetryDisplay.frameCenter = !this.layer.telemetryDisplay.frameCenter);
138
+ }
139
+ toggleFrameDisplay() {
140
+ this.layer?.telemetryDisplay && (this.layer.telemetryDisplay.frame = !this.layer.telemetryDisplay.frame);
141
+ }
142
+ toggleFrameOutlineDisplay() {
143
+ this.layer?.telemetryDisplay && (this.layer.telemetryDisplay.frameOutline = !this.layer.telemetryDisplay.frameOutline);
144
+ }
145
+ toggleLoopPlayback() {
146
+ this.layer && (this.layer.loop = !this.layer.loop);
147
+ }
148
+ toggleSensorDisplay() {
149
+ this.layer?.telemetryDisplay && (this.layer.telemetryDisplay.sensorLocation = !this.layer.telemetryDisplay.sensorLocation);
150
+ }
151
+ toggleSensorPathDisplay() {
152
+ this.layer?.telemetryDisplay && (this.layer.telemetryDisplay.sensorPath = !this.layer.telemetryDisplay.sensorPath);
153
+ }
154
+ toggleSensorSightLineDisplay() {
155
+ this.layer?.telemetryDisplay && (this.layer.telemetryDisplay.lineOfSight = !this.layer.telemetryDisplay.lineOfSight);
156
+ }
157
+ toggleSensorTrailDisplay() {
158
+ this.layer?.telemetryDisplay && (this.layer.telemetryDisplay.sensorTrail = !this.layer.telemetryDisplay.sensorTrail);
159
+ }
160
+ //#endregion
161
+ //#region Private Methods
162
+ _followTelemetry() {
163
+ this.removeHandles("follow"), this.view && this.layer && this.addHandles(
164
+ d(
165
+ () => this.layer?.telemetry,
166
+ () => {
167
+ const e = [], i = this.followingMode === "follow-frame" || this.followingMode === "follow-both";
168
+ if ((this.followingMode === "follow-sensor" || this.followingMode === "follow-both") && this.layer?.telemetry.sensorLocation && e.push(this.layer.telemetry.sensorLocation), i && this.layer?.telemetry.frameCenter && e.push(this.layer.telemetry.frameCenter), !e.length) {
169
+ this.layer?.initialExtent && this.followingMode !== "none" && this.view?.goTo(this.layer.initialExtent).catch(() => {
170
+ });
171
+ return;
172
+ }
173
+ this.view?.goTo(e).catch(() => {
174
+ });
175
+ },
176
+ { initial: !0 }
177
+ ),
178
+ "follow"
179
+ );
180
+ }
181
+ //#endregion
182
+ };
183
+ a([
184
+ l({ readOnly: !0 })
185
+ ], t.prototype, "buffered", 1);
186
+ a([
187
+ l({ readOnly: !0 })
188
+ ], t.prototype, "currentTime", 1);
189
+ a([
190
+ l({ readOnly: !0 })
191
+ ], t.prototype, "duration", 1);
192
+ a([
193
+ l({ readOnly: !0 })
194
+ ], t.prototype, "ended", 1);
195
+ a([
196
+ l()
197
+ ], t.prototype, "followingMode", 2);
198
+ a([
199
+ l()
200
+ ], t.prototype, "layer", 2);
201
+ a([
202
+ l({ readOnly: !0 })
203
+ ], t.prototype, "metadata", 1);
204
+ a([
205
+ l({ readOnly: !0 })
206
+ ], t.prototype, "playing", 1);
207
+ a([
208
+ l({ readOnly: !0 })
209
+ ], t.prototype, "previewsInfo", 1);
210
+ a([
211
+ l()
212
+ ], t.prototype, "seekLength", 2);
213
+ a([
214
+ l({ readOnly: !0 })
215
+ ], t.prototype, "state", 1);
216
+ a([
217
+ l()
218
+ ], t.prototype, "view", 2);
219
+ t = a([
220
+ S("map-components.video-player.VideoPlayerViewModel")
221
+ ], t);
222
+ const x = t, O = v`: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}`, F = $(x);
223
+ class R extends w {
16
224
  constructor() {
17
- super(...arguments), this.messages = w({ blocking: !0 }), this.viewModel = b(this), this._videoViewRef = _(), this._metadataVisible = !1, this._duration = 0, this._currentTime = 0, this._bufferedValue = 0, this._currentValue = 0, this._isBuffering = !1, this._videoViewReady = !1, this._loopPlayback = !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.operationalDataVisible = !1, this.hideHeader = !1, this.view = this.viewModel.view, this.arcgisPropertyChange = v()("state", "layer"), this.arcgisReady = l(), this.arcgisVideoReady = l();
225
+ super(...arguments), this.messages = V({ blocking: !0 }), this.viewModel = F(this), this._videoViewRef = b(), this._metadataVisible = !1, this._duration = 0, this._currentTime = 0, this._bufferedValue = 0, this._currentValue = 0, this._isBuffering = !1, this._videoViewReady = !1, this._loopPlayback = !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.operationalDataVisible = !1, this.hideHeader = !1, this.view = this.viewModel.view, this.arcgisPropertyChange = T()("state", "layer"), this.arcgisReady = u(), this.arcgisVideoReady = u();
18
226
  }
19
227
  static {
20
228
  this.properties = { _metadataVisible: 16, _duration: 16, _currentTime: 16, _bufferedValue: 16, _currentValue: 16, _isBuffering: 16, _videoViewReady: 16, _layerTitle: 16, _isLive: 16, _loopPlayback: 16, referenceElement: 1, icon: 1, state: 32, followingMode: 1, layer: 0, autoDestroyDisabled: 5, messageOverrides: 0, label: 3, inline: 7, showFullscreenToggle: 5, operationalDataVisible: 5, hideHeader: 5, view: 0 };
21
229
  }
22
230
  static {
23
- this.styles = M;
231
+ this.styles = O;
24
232
  }
25
233
  get followingMode() {
26
234
  return this.viewModel.followingMode;
@@ -33,47 +241,47 @@ class T extends g {
33
241
  }
34
242
  loaded() {
35
243
  this.manager.onLifecycle(() => [
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;
244
+ d(() => [this.viewModel.currentTime, this.viewModel.duration, this.viewModel.buffered, this.viewModel.ended], () => {
245
+ const { buffered: i, currentTime: n, duration: h, ended: r } = this.viewModel, y = f(h), c = f(n), p = f(i);
246
+ this._duration = y, this._currentTime = c, this._bufferedValue = p / (y || 1), this._currentValue = c / (y || 1), this._isBuffering = !r && this._bufferedValue < this._currentValue;
39
247
  }),
40
- t(() => this.layer?.title, (i) => {
248
+ d(() => this.layer?.title, (i) => {
41
249
  this._layerTitle = i ?? void 0;
42
250
  }, { initial: !0 }),
43
- t(() => this.layer?.isLive, (i) => {
251
+ d(() => this.layer?.isLive, (i) => {
44
252
  this._isLive = i ?? void 0;
45
253
  }, { initial: !0 }),
46
- t(() => this.layer?.playbackRate, (i) => {
254
+ d(() => this.layer?.playbackRate, (i) => {
47
255
  typeof i == "number" && this.viewModel.changePlaybackSpeed(i);
48
256
  }, { initial: !0 }),
49
- t(() => this.viewModel.view?.map, () => this.requestUpdate())
257
+ d(() => this.viewModel.view?.map, () => this.requestUpdate())
50
258
  ]);
51
259
  }
52
260
  render() {
53
- return e`<div class=${m(p(this.inline ? "inline" : "root", $.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>`;
261
+ return s`<div class=${_(M(this.inline ? "inline" : "root", P.widget))}><calcite-panel .heading=${this.hideHeader || this.inline ? void 0 : this._layerTitle ?? this.messages.videoPlayer}>${this.inline || this.hideHeader || !this.showFullscreenToggle ? null : s`<calcite-action slot=header-actions-end icon=full-screen-exit text=minimize @click=${() => this.inline = !this.inline}></calcite-action>`}${this.inline ? s`<div class="inline">${this._renderActionBar()}${this._renderSlider()}${this.showFullscreenToggle ? s`<calcite-action icon=full-screen text=maximize @click=${() => this.inline = !this.inline}></calcite-action>` : null}</div>` : s`<div class="content">${this._renderLoadingScrim()}${this._renderBuffering()}${this._renderVideoSection()}</div>`}${this.inline ? null : s`<div slot=footer class="footer">${this._renderSlider()}${this._renderActionBar()}${this._renderMetadataSection()}</div>`}</calcite-panel></div>`;
54
262
  }
55
263
  _renderLoadingScrim() {
56
- return this._videoViewReady ? null : e`<calcite-scrim .loading=${this.state !== "error"}>${this.state === "error" ? this.messages.errorLoadingLayer : null}</calcite-scrim>`;
264
+ return this._videoViewReady ? null : s`<calcite-scrim .loading=${this.state !== "error"}>${this.state === "error" ? this.messages.errorLoadingLayer : null}</calcite-scrim>`;
57
265
  }
58
266
  _renderBuffering() {
59
- return this._isBuffering ? e`<calcite-progress type=indeterminate></calcite-progress>` : null;
267
+ return this._isBuffering ? s`<calcite-progress type=indeterminate></calcite-progress>` : null;
60
268
  }
61
269
  _renderVideoSection() {
62
- return e`<arcgis-video .layer=${this.layer} .map=${this.viewModel.view?.map} .operationalDataVisible=${this.operationalDataVisible} @arcgisViewReadyChange=${() => {
270
+ return s`<arcgis-video .layer=${this.layer} .map=${this.viewModel.view?.map} .operationalDataVisible=${this.operationalDataVisible} @arcgisViewReadyChange=${() => {
63
271
  this._videoViewReady = !0, this.arcgisVideoReady.emit();
64
- }} ${y(this._videoViewRef)}></arcgis-video>`;
272
+ }} ${D(this._videoViewRef)}></arcgis-video>`;
65
273
  }
66
274
  _renderSlider() {
67
- return this._isLive ? null : e`<arcgis-video-player-slider .buffered=${this._bufferedValue} .messages=${this.messages} .value=${this._currentValue * 100} .viewModel=${this.viewModel}></arcgis-video-player-slider>`;
275
+ return this._isLive ? null : s`<arcgis-video-player-slider .buffered=${this._bufferedValue} .messages=${this.messages} .value=${this._currentValue * 100} .viewModel=${this.viewModel}></arcgis-video-player-slider>`;
68
276
  }
69
277
  _renderActionBar() {
70
- return e`<arcgis-video-player-action-bar .currentTime=${this._currentTime} .duration=${this._duration} .messages=${this.messages} .toggleMetadata=${() => this._metadataVisible = !this._metadataVisible} .viewModel=${this.viewModel} .inline=${this.inline}></arcgis-video-player-action-bar>`;
278
+ return s`<arcgis-video-player-action-bar .currentTime=${this._currentTime} .duration=${this._duration} .messages=${this.messages} .toggleMetadata=${() => this._metadataVisible = !this._metadataVisible} .viewModel=${this.viewModel} .inline=${this.inline}></arcgis-video-player-action-bar>`;
71
279
  }
72
280
  _renderMetadataSection() {
73
- return this._metadataVisible ? e`<arcgis-video-player-metadata .messages=${this.messages} .viewModel=${this.viewModel}></arcgis-video-player-metadata>` : null;
281
+ return this._metadataVisible ? s`<arcgis-video-player-metadata .messages=${this.messages} .viewModel=${this.viewModel}></arcgis-video-player-metadata>` : null;
74
282
  }
75
283
  }
76
- h("arcgis-video-player", T);
284
+ g("arcgis-video-player", R);
77
285
  export {
78
- T as ArcgisVideoPlayer
286
+ R as ArcgisVideoPlayer
79
287
  };