@redvars/peacock 4.2.0 → 4.3.0

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 (256) hide show
  1. package/dist/{BaseField-_unSNU5x.js → BaseField-CHBcjVc2.js} +3 -3
  2. package/dist/{BaseField-_unSNU5x.js.map → BaseField-CHBcjVc2.js.map} +1 -1
  3. package/dist/{BaseInput-DtZH0fPJ.js → BaseInput-DZp2O8Gh.js} +2 -2
  4. package/dist/{BaseInput-DtZH0fPJ.js.map → BaseInput-DZp2O8Gh.js.map} +1 -1
  5. package/dist/ai-badge.js +2 -2
  6. package/dist/ai-summary.js +2 -2
  7. package/dist/alert.js +2 -2
  8. package/dist/anchor-nav.js +2 -2
  9. package/dist/app-shell.js +2 -2
  10. package/dist/assistant-panel.js +2 -2
  11. package/dist/assistant-step.js +2 -2
  12. package/dist/assistant-steps.js +2 -2
  13. package/dist/avatar-group.js +2 -2
  14. package/dist/banner.js +2 -2
  15. package/dist/{base-progress-D7Nmfh1s.js → base-progress-CKQ32Ruw.js} +2 -2
  16. package/dist/{base-progress-D7Nmfh1s.js.map → base-progress-CKQ32Ruw.js.map} +1 -1
  17. package/dist/bottom-sheet.js +2 -2
  18. package/dist/breadcrumb.js +2 -2
  19. package/dist/calendar.js +2 -2
  20. package/dist/{canvas-base-CWQ4rQ2s.js → canvas-base-BoKef3yr.js} +2 -2
  21. package/dist/{canvas-base-CWQ4rQ2s.js.map → canvas-base-BoKef3yr.js.map} +1 -1
  22. package/dist/carousel.js +644 -0
  23. package/dist/carousel.js.map +1 -0
  24. package/dist/{cartesian-chart-CS5yRLfE.js → cartesian-chart-DqZxnoG1.js} +2 -2
  25. package/dist/{cartesian-chart-CS5yRLfE.js.map → cartesian-chart-DqZxnoG1.js.map} +1 -1
  26. package/dist/{cb-group-base-CO30uFQZ.js → cb-group-base-Bf7iOIGS.js} +2 -2
  27. package/dist/{cb-group-base-CO30uFQZ.js.map → cb-group-base-Bf7iOIGS.js.map} +1 -1
  28. package/dist/cb-group.js +3 -3
  29. package/dist/cb-rule.js +3 -3
  30. package/dist/chart-area.js +4 -4
  31. package/dist/chart-bar.js +4 -4
  32. package/dist/{chart-base-C_XKVyhf.js → chart-base-ByCJM_9C.js} +2 -2
  33. package/dist/{chart-base-C_XKVyhf.js.map → chart-base-ByCJM_9C.js.map} +1 -1
  34. package/dist/chart-doughnut.js +3 -3
  35. package/dist/chart-line.js +4 -4
  36. package/dist/chart-pie.js +3 -3
  37. package/dist/chat-event.js +2 -2
  38. package/dist/chat-message.js +2 -2
  39. package/dist/chat-thread.js +2 -2
  40. package/dist/checkbox-group.js +3 -3
  41. package/dist/checkbox.js +3 -3
  42. package/dist/chip-set.js +2 -2
  43. package/dist/chip.js +2 -2
  44. package/dist/circular-progress.js +3 -3
  45. package/dist/citation.js +2 -2
  46. package/dist/code-editor.js +3 -3
  47. package/dist/code-highlighter.js +2 -2
  48. package/dist/color-field.js +4 -4
  49. package/dist/color-picker.js +2 -2
  50. package/dist/command-palette.js +2 -2
  51. package/dist/comment-composer.js +24 -12
  52. package/dist/comment-composer.js.map +1 -1
  53. package/dist/condition-builder.js +3 -3
  54. package/dist/confirm-dialog.js +2 -2
  55. package/dist/copy-button.js +2 -2
  56. package/dist/currency-field.js +4 -4
  57. package/dist/custom-elements-jsdocs.json +936 -56
  58. package/dist/custom-elements.json +3486 -554
  59. package/dist/date-field.js +5 -5
  60. package/dist/date-picker.js +2 -2
  61. package/dist/date-range-field.js +5 -5
  62. package/dist/datetime-field.js +5 -5
  63. package/dist/dependency-map.js +3 -3
  64. package/dist/description-item.js +2 -2
  65. package/dist/description-list.js +2 -2
  66. package/dist/{diagram-Va096vj9.js → diagram-Cnrj-4y3.js} +2 -2
  67. package/dist/{diagram-Va096vj9.js.map → diagram-Cnrj-4y3.js.map} +1 -1
  68. package/dist/diagram-controls.js +2 -2
  69. package/dist/diagram-minimap.js +2 -2
  70. package/dist/diagram.js +4 -4
  71. package/dist/diff-viewer.js +2 -2
  72. package/dist/discussion-activity.js +2 -2
  73. package/dist/discussion-comment.js +2 -2
  74. package/dist/discussion.js +4 -4
  75. package/dist/{document-editor-Dc8JeFVB.js → document-editor-C8ThjDQ7.js} +22 -10
  76. package/dist/{document-editor-Dc8JeFVB.js.map → document-editor-C8ThjDQ7.js.map} +1 -1
  77. package/dist/document-editor.js +3 -3
  78. package/dist/draft-card.js +2 -2
  79. package/dist/erd.js +3 -3
  80. package/dist/file-upload.js +3 -3
  81. package/dist/filter-bar.js +2 -2
  82. package/dist/flow.js +4 -4
  83. package/dist/form.js +2 -2
  84. package/dist/{generative-view-BKlcuujw.js → generative-view-CQ8-g1wY.js} +2 -2
  85. package/dist/{generative-view-BKlcuujw.js.map → generative-view-CQ8-g1wY.js.map} +1 -1
  86. package/dist/generative-view.js +3 -3
  87. package/dist/highlight-Be0wu7kh.js +252 -0
  88. package/dist/highlight-Be0wu7kh.js.map +1 -0
  89. package/dist/highlight.js +6 -0
  90. package/dist/highlight.js.map +1 -0
  91. package/dist/html-editor.js +29 -12
  92. package/dist/html-editor.js.map +1 -1
  93. package/dist/{i18n-controller-DJHsE1YH.js → i18n-controller-DLJcJ5gO.js} +2 -2
  94. package/dist/{i18n-controller-DJHsE1YH.js.map → i18n-controller-DLJcJ5gO.js.map} +1 -1
  95. package/dist/image.js +2 -2
  96. package/dist/index.js +26 -16
  97. package/dist/index.js.map +1 -1
  98. package/dist/inline-edit.js +2 -2
  99. package/dist/input.js +3 -3
  100. package/dist/json-viewer.js +2 -2
  101. package/dist/kanban.js +2 -2
  102. package/dist/kbd.js +2 -2
  103. package/dist/linear-progress.js +3 -3
  104. package/dist/listbox.js +2 -2
  105. package/dist/loader-full.js +19 -9
  106. package/dist/loader-full.js.map +1 -1
  107. package/dist/loader.js +46 -9
  108. package/dist/loader.js.map +1 -1
  109. package/dist/markdown-editor.js +29 -12
  110. package/dist/markdown-editor.js.map +1 -1
  111. package/dist/mention-input.js +4 -4
  112. package/dist/modal.js +2 -2
  113. package/dist/navigation-bar.js +2 -2
  114. package/dist/navigation-drawer.js +2 -2
  115. package/dist/navigation-rail.js +2 -2
  116. package/dist/notification-center.js +2 -2
  117. package/dist/number-field.js +4 -4
  118. package/dist/page-header.js +2 -2
  119. package/dist/pagination.js +2 -2
  120. package/dist/password-field.js +4 -4
  121. package/dist/password-rules.js +2 -2
  122. package/dist/phone-field.js +4 -4
  123. package/dist/{picker-field-CUI05sWc.js → picker-field-B5xOFc3-.js} +3 -3
  124. package/dist/{picker-field-CUI05sWc.js.map → picker-field-B5xOFc3-.js.map} +1 -1
  125. package/dist/pin-input.js +4 -4
  126. package/dist/presence-indicator.js +2 -2
  127. package/dist/prompt-input.js +24 -12
  128. package/dist/prompt-input.js.map +1 -1
  129. package/dist/radio.js +3 -3
  130. package/dist/rating.js +3 -3
  131. package/dist/redvars-loader.js +2 -2
  132. package/dist/relative-time.js +2 -2
  133. package/dist/resizable-panels.js +2 -2
  134. package/dist/{rich-text-input-N_hqnXej.js → rich-text-input-C4B9D6oD.js} +21 -18
  135. package/dist/rich-text-input-C4B9D6oD.js.map +1 -0
  136. package/dist/{schema-Dy0z-80u.js → schema-CPhNrjrx.js} +2 -2
  137. package/dist/{schema-Dy0z-80u.js.map → schema-CPhNrjrx.js.map} +1 -1
  138. package/dist/search.js +3 -3
  139. package/dist/select.js +4 -4
  140. package/dist/side-sheet.js +2 -2
  141. package/dist/signature-pad.js +3 -3
  142. package/dist/site-footer-group.js +142 -0
  143. package/dist/site-footer-group.js.map +1 -0
  144. package/dist/site-footer.js +338 -0
  145. package/dist/site-footer.js.map +1 -0
  146. package/dist/site-header.js +774 -0
  147. package/dist/site-header.js.map +1 -0
  148. package/dist/site-nav-group.js +123 -0
  149. package/dist/site-nav-group.js.map +1 -0
  150. package/dist/site-nav-link.js +321 -0
  151. package/dist/site-nav-link.js.map +1 -0
  152. package/dist/site-nav-menu.js +506 -0
  153. package/dist/site-nav-menu.js.map +1 -0
  154. package/dist/site-nav-shared-BDR2HG8e.js +23 -0
  155. package/dist/site-nav-shared-BDR2HG8e.js.map +1 -0
  156. package/dist/slider.js +3 -3
  157. package/dist/snackbar.js +2 -2
  158. package/dist/sparkline.js +2 -2
  159. package/dist/split-button.js +2 -2
  160. package/dist/src/__internal/i18n/strings.d.ts +24 -1
  161. package/dist/src/__internal/rich-text/rich-text-input.d.ts +6 -1
  162. package/dist/src/carousel/carousel.d.ts +135 -0
  163. package/dist/src/carousel/index.d.ts +1 -0
  164. package/dist/src/highlight/highlight.d.ts +56 -0
  165. package/dist/src/highlight/index.d.ts +2 -0
  166. package/dist/src/highlight/matches.d.ts +9 -0
  167. package/dist/src/html-editor/html-editor.d.ts +5 -0
  168. package/dist/src/index.d.ts +9 -0
  169. package/dist/src/markdown-editor/markdown-editor.d.ts +5 -0
  170. package/dist/src/site-footer/index.d.ts +2 -0
  171. package/dist/src/site-footer/site-footer-group.d.ts +34 -0
  172. package/dist/src/site-footer/site-footer.d.ts +74 -0
  173. package/dist/src/site-header/index.d.ts +4 -0
  174. package/dist/src/site-header/site-header.d.ts +170 -0
  175. package/dist/src/site-header/site-nav-group.d.ts +32 -0
  176. package/dist/src/site-header/site-nav-link.d.ts +65 -0
  177. package/dist/src/site-header/site-nav-menu.d.ts +104 -0
  178. package/dist/src/site-header/site-nav-shared.d.ts +13 -0
  179. package/dist/src/video/index.d.ts +2 -0
  180. package/dist/src/video/video-source.d.ts +12 -0
  181. package/dist/src/video/video.d.ts +80 -0
  182. package/dist/stat.js +2 -2
  183. package/dist/status-indicator.js +2 -2
  184. package/dist/step.js +2 -2
  185. package/dist/stepper.js +2 -2
  186. package/dist/{strings-DnYjGbbc.js → strings-MXyrGrNs.js} +28 -2
  187. package/dist/strings-MXyrGrNs.js.map +1 -0
  188. package/dist/svg.js +2 -2
  189. package/dist/switch.js +3 -3
  190. package/dist/table.js +2 -2
  191. package/dist/test/carousel.test.d.ts +1 -0
  192. package/dist/test/highlight.test.d.ts +1 -0
  193. package/dist/test/site-footer.test.d.ts +1 -0
  194. package/dist/test/site-header.test.d.ts +1 -0
  195. package/dist/test/video.test.d.ts +1 -0
  196. package/dist/textarea.js +4 -4
  197. package/dist/time-field.js +5 -5
  198. package/dist/time-picker.js +2 -2
  199. package/dist/timeline-item.js +2 -2
  200. package/dist/timeline.js +2 -2
  201. package/dist/{toggle-base-CXmFSp3b.js → toggle-base-I1wE_fVe.js} +2 -2
  202. package/dist/{toggle-base-CXmFSp3b.js.map → toggle-base-I1wE_fVe.js.map} +1 -1
  203. package/dist/tour.js +2 -2
  204. package/dist/transfer-list.js +3 -3
  205. package/dist/tree-chart.js +3 -3
  206. package/dist/tree-item.js +2 -2
  207. package/dist/tree.js +2 -2
  208. package/dist/tsconfig.tsbuildinfo +1 -1
  209. package/dist/typing-indicator.js +2 -2
  210. package/dist/url-field.js +4 -4
  211. package/dist/user-menu.js +2 -2
  212. package/dist/video-IwNmHyft.js +509 -0
  213. package/dist/video-IwNmHyft.js.map +1 -0
  214. package/dist/video.js +12 -0
  215. package/dist/video.js.map +1 -0
  216. package/dist/virtual-list.js +2 -2
  217. package/dist/workflow-timeline.js +2 -2
  218. package/dist/workflow.js +3 -3
  219. package/dist/workspace-switcher.js +2 -2
  220. package/package.json +1 -1
  221. package/readme.md +5 -0
  222. package/src/__internal/i18n/strings.ts +31 -1
  223. package/src/__internal/rich-text/editor-chrome.scss +27 -10
  224. package/src/__internal/rich-text/rich-text-input.ts +17 -16
  225. package/src/carousel/carousel.scss +124 -0
  226. package/src/carousel/carousel.ts +547 -0
  227. package/src/carousel/index.ts +1 -0
  228. package/src/highlight/highlight.scss +25 -0
  229. package/src/highlight/highlight.ts +123 -0
  230. package/src/highlight/index.ts +2 -0
  231. package/src/highlight/matches.ts +94 -0
  232. package/src/html-editor/html-editor.ts +5 -0
  233. package/src/index.ts +18 -0
  234. package/src/loader.ts +36 -0
  235. package/src/markdown-editor/markdown-editor.ts +5 -0
  236. package/src/site-footer/index.ts +2 -0
  237. package/src/site-footer/site-footer-group.scss +53 -0
  238. package/src/site-footer/site-footer-group.ts +52 -0
  239. package/src/site-footer/site-footer.scss +171 -0
  240. package/src/site-footer/site-footer.ts +151 -0
  241. package/src/site-header/index.ts +8 -0
  242. package/src/site-header/site-header.scss +238 -0
  243. package/src/site-header/site-header.ts +565 -0
  244. package/src/site-header/site-nav-group.scss +29 -0
  245. package/src/site-header/site-nav-group.ts +57 -0
  246. package/src/site-header/site-nav-link.scss +154 -0
  247. package/src/site-header/site-nav-link.ts +140 -0
  248. package/src/site-header/site-nav-menu.scss +182 -0
  249. package/src/site-header/site-nav-menu.ts +336 -0
  250. package/src/site-header/site-nav-shared.ts +27 -0
  251. package/src/video/index.ts +2 -0
  252. package/src/video/video-source.ts +80 -0
  253. package/src/video/video.scss +183 -0
  254. package/src/video/video.ts +246 -0
  255. package/dist/rich-text-input-N_hqnXej.js.map +0 -1
  256. package/dist/strings-DnYjGbbc.js.map +0 -1
@@ -1,7 +1,7 @@
1
1
  import { i, _ as __decorate, I as IndividualComponent, a as i$1, b } from './IndividualComponent-BK7XZjE2.js';
2
2
  import { n } from './property-B2TG3KEE.js';
3
- import { I as I18nController } from './i18n-controller-DJHsE1YH.js';
4
- import './strings-DnYjGbbc.js';
3
+ import { I as I18nController } from './i18n-controller-DLJcJ5gO.js';
4
+ import './strings-MXyrGrNs.js';
5
5
  import './locale-DEsJZCQG.js';
6
6
 
7
7
  var css_248z = i`* {
package/dist/url-field.js CHANGED
@@ -3,12 +3,12 @@ import { n } from './property-B2TG3KEE.js';
3
3
  import { r } from './state-BCeDVCI9.js';
4
4
  import { e } from './query-CHb9Ft_d.js';
5
5
  import { s as spread } from './spread-B5cgadZl.js';
6
- import { I as I18nController } from './i18n-controller-DJHsE1YH.js';
7
- import { B as BaseField } from './BaseField-_unSNU5x.js';
8
- import { n as nativeValidity } from './BaseInput-DtZH0fPJ.js';
6
+ import { I as I18nController } from './i18n-controller-DLJcJ5gO.js';
7
+ import { B as BaseField } from './BaseField-CHBcjVc2.js';
8
+ import { n as nativeValidity } from './BaseInput-DZp2O8Gh.js';
9
9
  import './base-Cl6v8-BZ.js';
10
10
  import './directive-ZPhl09Yt.js';
11
- import './strings-DnYjGbbc.js';
11
+ import './strings-MXyrGrNs.js';
12
12
  import './locale-DEsJZCQG.js';
13
13
  import './element-internals-QME0yEz4.js';
14
14
  import './form-associated-BHbg72PG.js';
package/dist/user-menu.js CHANGED
@@ -2,10 +2,10 @@ import { i, _ as __decorate, I as IndividualComponent, a as i$1, A, b } from './
2
2
  import { n } from './property-B2TG3KEE.js';
3
3
  import { r } from './state-BCeDVCI9.js';
4
4
  import { e } from './query-CHb9Ft_d.js';
5
- import { I as I18nController } from './i18n-controller-DJHsE1YH.js';
5
+ import { I as I18nController } from './i18n-controller-DLJcJ5gO.js';
6
6
  import { M as MenuTriggerController } from './menu-trigger-controller-CEJq1ugC.js';
7
7
  import './base-Cl6v8-BZ.js';
8
- import './strings-DnYjGbbc.js';
8
+ import './strings-MXyrGrNs.js';
9
9
  import './locale-DEsJZCQG.js';
10
10
 
11
11
  var css_248z = i`* {
@@ -0,0 +1,509 @@
1
+ import { i, _ as __decorate, I as IndividualComponent, a as i$1, A, b } from './IndividualComponent-BK7XZjE2.js';
2
+ import { n } from './property-B2TG3KEE.js';
3
+ import { r } from './state-BCeDVCI9.js';
4
+ import { e } from './query-CHb9Ft_d.js';
5
+ import { o } from './style-map-CHOg6N_R.js';
6
+ import { I as I18nController } from './i18n-controller-DLJcJ5gO.js';
7
+
8
+ const YOUTUBE_HOSTS = [
9
+ 'youtube.com',
10
+ 'www.youtube.com',
11
+ 'm.youtube.com',
12
+ 'music.youtube.com',
13
+ 'youtube-nocookie.com',
14
+ 'www.youtube-nocookie.com',
15
+ ];
16
+ const VIMEO_HOSTS = ['vimeo.com', 'www.vimeo.com', 'player.vimeo.com'];
17
+ /** A YouTube time such as `90`, `90s` or `1m30s`, in whole seconds. */
18
+ function seconds(time) {
19
+ if (!time)
20
+ return 0;
21
+ if (/^\d+$/.test(time))
22
+ return Number(time);
23
+ const match = /^(?:(\d+)h)?(?:(\d+)m)?(?:(\d+)s)?$/.exec(time);
24
+ if (!match)
25
+ return 0;
26
+ const [, h = '0', m = '0', s = '0'] = match;
27
+ return Number(h) * 3600 + Number(m) * 60 + Number(s);
28
+ }
29
+ function youtubeId(url) {
30
+ if (url.hostname === 'youtu.be')
31
+ return url.pathname.split('/')[1];
32
+ if (!YOUTUBE_HOSTS.includes(url.hostname))
33
+ return undefined;
34
+ if (url.pathname === '/watch')
35
+ return url.searchParams.get('v') ?? undefined;
36
+ const [, kind, id] = url.pathname.split('/');
37
+ return ['embed', 'shorts', 'live', 'v'].includes(kind) ? id : undefined;
38
+ }
39
+ /**
40
+ * Reads a video URL. YouTube links play through youtube-nocookie.com and Vimeo links with
41
+ * `dnt=1`, so neither sets tracking cookies; any other URL is treated as a video file.
42
+ */
43
+ function parseVideoSource(src) {
44
+ let url;
45
+ try {
46
+ url = new URL(src, document.baseURI);
47
+ }
48
+ catch {
49
+ return { provider: 'file', url: src };
50
+ }
51
+ const youtube = youtubeId(url);
52
+ if (youtube && /^[\w-]+$/.test(youtube)) {
53
+ const params = new URLSearchParams({ autoplay: '1', rel: '0' });
54
+ const start = seconds(url.searchParams.get('t') ?? url.searchParams.get('start'));
55
+ if (start)
56
+ params.set('start', String(start));
57
+ return {
58
+ provider: 'youtube',
59
+ url: `https://www.youtube-nocookie.com/embed/${youtube}?${params}`,
60
+ };
61
+ }
62
+ if (VIMEO_HOSTS.includes(url.hostname)) {
63
+ const parts = url.pathname.split('/').filter(Boolean);
64
+ const at = parts[0] === 'video' ? 1 : 0;
65
+ const id = parts[at];
66
+ if (id && /^\d+$/.test(id)) {
67
+ const params = new URLSearchParams({ autoplay: '1', dnt: '1' });
68
+ const hash = url.searchParams.get('h') ?? parts[at + 1];
69
+ if (hash && /^\w+$/.test(hash))
70
+ params.set('h', hash);
71
+ return {
72
+ provider: 'vimeo',
73
+ url: `https://player.vimeo.com/video/${id}?${params}`,
74
+ };
75
+ }
76
+ }
77
+ return { provider: 'file', url: src };
78
+ }
79
+
80
+ var css_248z = i`* {
81
+ box-sizing: border-box;
82
+ -webkit-tap-highlight-color: transparent;
83
+ }
84
+
85
+ .screen-reader-only {
86
+ position: absolute !important;
87
+ inline-size: 1px !important;
88
+ block-size: 1px !important;
89
+ padding: 0 !important;
90
+ margin: -1px !important;
91
+ overflow: hidden !important;
92
+ clip-path: inset(50%) !important;
93
+ white-space: nowrap !important;
94
+ border: 0 !important;
95
+ }
96
+
97
+ [hidden] {
98
+ display: none !important;
99
+ }
100
+
101
+ @media (forced-colors: active) {
102
+ .selected,
103
+ [aria-selected=true],
104
+ [aria-pressed=true],
105
+ [aria-checked=true],
106
+ [aria-current]:not([aria-current=false]) {
107
+ outline: 2px solid Highlight;
108
+ outline-offset: -2px;
109
+ }
110
+ .disabled,
111
+ [aria-disabled=true] {
112
+ color: GrayText;
113
+ }
114
+ }
115
+ :host {
116
+ display: block;
117
+ }
118
+
119
+ .frame {
120
+ container-type: inline-size;
121
+ position: relative;
122
+ overflow: hidden;
123
+ inline-size: 100%;
124
+ border-radius: var(--video-shape, var(--shape-corner-large));
125
+ background-color: var(--color-surface-container-highest);
126
+ color: var(--color-on-surface);
127
+ }
128
+
129
+ .player {
130
+ display: block;
131
+ inline-size: 100%;
132
+ block-size: 100%;
133
+ border: 0;
134
+ background-color: var(--color-black);
135
+ }
136
+
137
+ .play-button {
138
+ background: transparent;
139
+ border: none;
140
+ appearance: none;
141
+ margin: 0;
142
+ outline: none;
143
+ padding: 0;
144
+ position: absolute;
145
+ inset: 0;
146
+ display: block;
147
+ inline-size: 100%;
148
+ block-size: 100%;
149
+ overflow: hidden;
150
+ border-radius: inherit;
151
+ color: var(--color-white);
152
+ cursor: pointer;
153
+ text-align: start;
154
+ }
155
+ .play-button .focus-ring {
156
+ --focus-ring-container-shape-start-start: var(
157
+ --video-shape,
158
+ var(--shape-corner-large)
159
+ );
160
+ --focus-ring-container-shape-start-end: var(
161
+ --video-shape,
162
+ var(--shape-corner-large)
163
+ );
164
+ --focus-ring-container-shape-end-start: var(
165
+ --video-shape,
166
+ var(--shape-corner-large)
167
+ );
168
+ --focus-ring-container-shape-end-end: var(
169
+ --video-shape,
170
+ var(--shape-corner-large)
171
+ );
172
+ --focus-ring-inset: -0.25rem;
173
+ }
174
+
175
+ .play-button:not(:has(.poster)) {
176
+ color: var(--color-on-surface);
177
+ }
178
+ .play-button:not(:has(.poster)) .play-icon {
179
+ background-color: var(--color-primary);
180
+ color: var(--color-on-primary);
181
+ }
182
+
183
+ .poster {
184
+ position: absolute;
185
+ inset: 0;
186
+ inline-size: 100%;
187
+ block-size: 100%;
188
+ object-fit: cover;
189
+ }
190
+
191
+ .title,
192
+ .meta {
193
+ position: absolute;
194
+ inset-inline: 0;
195
+ padding: var(--spacing-200) var(--spacing-300);
196
+ }
197
+
198
+ .title {
199
+ font-family: var(--typography-title-medium-font-family) !important;
200
+ font-size: var(--typography-title-medium-font-size) !important;
201
+ font-weight: var(--typography-title-medium-font-weight) !important;
202
+ line-height: var(--typography-title-medium-line-height) !important;
203
+ letter-spacing: var(--typography-title-medium-letter-spacing) !important;
204
+ inset-block-start: 0;
205
+ background: linear-gradient(color-mix(in srgb, var(--color-scrim, black) 65%, transparent), transparent);
206
+ }
207
+
208
+ .meta {
209
+ font-family: var(--typography-body-small-font-family) !important;
210
+ font-size: var(--typography-body-small-font-size) !important;
211
+ font-weight: var(--typography-body-small-font-weight) !important;
212
+ line-height: var(--typography-body-small-line-height) !important;
213
+ letter-spacing: var(--typography-body-small-letter-spacing) !important;
214
+ inset-block-end: 0;
215
+ display: flex;
216
+ justify-content: space-between;
217
+ gap: var(--spacing-200);
218
+ padding-block: var(--spacing-150);
219
+ background: linear-gradient(transparent, color-mix(in srgb, var(--color-scrim, black) 70%, transparent));
220
+ }
221
+
222
+ .play-button:not(:has(.poster)) :is(.title, .meta) {
223
+ background: none;
224
+ }
225
+
226
+ .play-icon {
227
+ position: absolute;
228
+ inset: 0;
229
+ display: grid;
230
+ place-items: center;
231
+ inline-size: 4.5rem;
232
+ block-size: 4.5rem;
233
+ margin: auto;
234
+ border-radius: var(--shape-corner-full);
235
+ background-color: var(--color-surface-bright);
236
+ color: var(--color-primary);
237
+ box-shadow: var(--elevation-level2);
238
+ transition: transform var(--duration-short4) var(--easing-standard);
239
+ }
240
+ .play-icon wc-icon {
241
+ --icon-size: 2.5rem;
242
+ --icon-color: currentColor;
243
+ }
244
+
245
+ .play-button:hover .play-icon {
246
+ transform: scale(1.08);
247
+ }
248
+
249
+ @container (max-width: 24rem) {
250
+ .title,
251
+ .meta {
252
+ padding-inline: var(--spacing-200);
253
+ }
254
+ .title {
255
+ font-family: var(--typography-title-small-font-family) !important;
256
+ font-size: var(--typography-title-small-font-size) !important;
257
+ font-weight: var(--typography-title-small-font-weight) !important;
258
+ line-height: var(--typography-title-small-line-height) !important;
259
+ letter-spacing: var(--typography-title-small-letter-spacing) !important;
260
+ padding-block: var(--spacing-150);
261
+ }
262
+ .meta {
263
+ padding-block: var(--spacing-100);
264
+ }
265
+ .play-icon {
266
+ inline-size: 3.5rem;
267
+ block-size: 3.5rem;
268
+ }
269
+ .play-icon wc-icon {
270
+ --icon-size: 2rem;
271
+ }
272
+ }
273
+ @media (prefers-reduced-motion: reduce) {
274
+ .play-icon {
275
+ transition: none;
276
+ }
277
+ .play-button:hover .play-icon {
278
+ transform: none;
279
+ }
280
+ }
281
+ @media (forced-colors: active) {
282
+ .play-icon {
283
+ border: 2px solid ButtonText;
284
+ }
285
+ }`;
286
+
287
+ /**
288
+ * @label Video
289
+ * @tag wc-video
290
+ * @rawTag video
291
+ *
292
+ * @summary A video from YouTube, Vimeo or a file, that loads its player only when the person presses play.
293
+ * @overview
294
+ * <p>Video shows a poster with a play button. A YouTube or Vimeo player loads only on that click, so
295
+ * the page makes no request to the video site until the person asks for the video: no cookies, no
296
+ * tracking, and a faster page. YouTube plays through <code>youtube-nocookie.com</code> and Vimeo with
297
+ * Do Not Track, and a line on the poster says where the video plays from.</p>
298
+ * <p>Any other <code>src</code> is a video file, shown in the browser's own player with its
299
+ * controls. Put <code>&lt;track&gt;</code> elements in the video for captions and subtitles.</p>
300
+ * <p>The video keeps its <code>aspect-ratio</code> before and after it loads, so nothing on the page
301
+ * moves.</p>
302
+ *
303
+ * @slot - `<track>` elements for a video file's captions and subtitles.
304
+ *
305
+ * @csspart base - The frame that holds the poster or the player.
306
+ * @csspart play-button - The poster button that loads and plays the video.
307
+ * @csspart player - The `<iframe>` or `<video>`.
308
+ *
309
+ * @cssprop --video-shape - Corner radius of the frame. Defaults to `--shape-corner-large`.
310
+ *
311
+ * @fires {CustomEvent} play - Dispatched when the person starts the video: the player loads, or the file starts playing.
312
+ *
313
+ * @example
314
+ * ```html
315
+ * <wc-video
316
+ * src="https://www.youtube.com/watch?v=aqz-KE-bpKQ"
317
+ * label="Build a portal in ten minutes"
318
+ * duration="9:42"
319
+ * poster="/img/portal-video.webp"
320
+ * ></wc-video>
321
+ * ```
322
+ * @example
323
+ * ```html
324
+ * <wc-video src="/media/tour.mp4" poster="/media/tour.webp" label="Product tour">
325
+ * <track kind="captions" src="/media/tour.en.vtt" srclang="en" label="English" default />
326
+ * </wc-video>
327
+ * ```
328
+ * @tags media
329
+ */
330
+ let Video = class Video extends i$1 {
331
+ constructor() {
332
+ // ── Static ───────────────────────────────────────────────────────────────
333
+ super(...arguments);
334
+ // ── Properties ───────────────────────────────────────────────────────────
335
+ /** A YouTube or Vimeo link, or the URL of a video file. */
336
+ this.src = '';
337
+ /** An image shown before the video plays. Without one, the frame shows the label on a plain surface. */
338
+ this.poster = '';
339
+ /** The video's title: shown on the poster, and the name of the play button and the player. */
340
+ this.label = '';
341
+ /** The video's length as text, such as `9:42`, shown on the poster. */
342
+ this.duration = '';
343
+ /** The frame's width to height, as a CSS `aspect-ratio`. */
344
+ this.aspectRatio = '16 / 9';
345
+ // ── State ────────────────────────────────────────────────────────────────
346
+ /** Whether the person pressed play, so the YouTube or Vimeo player is loaded. */
347
+ this.loaded = false;
348
+ // ── Private fields ───────────────────────────────────────────────────────
349
+ this.i18n = new I18nController(this);
350
+ /** Whether the next update moves focus to the player that just loaded. */
351
+ this.focusPlayer = false;
352
+ this.handleSlotChange = () => {
353
+ if (this.player instanceof HTMLVideoElement)
354
+ this.syncTracks();
355
+ };
356
+ this.handleVideoPlay = () => {
357
+ this.dispatchEvent(new CustomEvent('play'));
358
+ };
359
+ }
360
+ // ── Lifecycle ────────────────────────────────────────────────────────────
361
+ willUpdate(changed) {
362
+ super.willUpdate(changed);
363
+ if (changed.has('src') && changed.get('src') !== undefined) {
364
+ this.loaded = false;
365
+ }
366
+ }
367
+ updated(changed) {
368
+ super.updated(changed);
369
+ if (this.player instanceof HTMLVideoElement)
370
+ this.syncTracks();
371
+ if (this.focusPlayer && this.player) {
372
+ this.focusPlayer = false;
373
+ this.player.focus();
374
+ }
375
+ }
376
+ // ── Public methods ───────────────────────────────────────────────────────
377
+ /** Where the video plays from, read from `src`. */
378
+ get provider() {
379
+ return this.source.provider;
380
+ }
381
+ /** Loads the player and starts the video, as the play button does. */
382
+ play() {
383
+ if (this.player instanceof HTMLVideoElement) {
384
+ this.player.play().catch(() => {
385
+ // The browser refused to play without a gesture; its controls are still there.
386
+ });
387
+ return;
388
+ }
389
+ if (this.loaded)
390
+ return;
391
+ this.loaded = true;
392
+ this.focusPlayer = true;
393
+ this.dispatchEvent(new CustomEvent('play'));
394
+ }
395
+ // ── Private methods ──────────────────────────────────────────────────────
396
+ get source() {
397
+ return parseVideoSource(this.src);
398
+ }
399
+ get name() {
400
+ return this.label || this.i18n.t('video');
401
+ }
402
+ /** Copies the light DOM `<track>` children into the shadow `<video>`, where tracks must be. */
403
+ syncTracks() {
404
+ const video = this.player;
405
+ const tracks = Array.from(this.querySelectorAll(':scope > track'));
406
+ const current = Array.from(video.querySelectorAll('track'));
407
+ const same = tracks.length === current.length &&
408
+ tracks.every((track, i) => track.isEqualNode(current[i]));
409
+ if (same)
410
+ return;
411
+ current.forEach(track => track.remove());
412
+ tracks.forEach(track => video.append(track.cloneNode(true)));
413
+ }
414
+ // ── Render helpers ───────────────────────────────────────────────────────
415
+ renderFile(url) {
416
+ return b `<video
417
+ class="player"
418
+ part="player"
419
+ src=${url}
420
+ poster=${this.poster || A}
421
+ aria-label=${this.name}
422
+ controls
423
+ playsinline
424
+ preload="none"
425
+ @play=${this.handleVideoPlay}
426
+ ></video>`;
427
+ }
428
+ renderEmbed(source) {
429
+ if (this.loaded) {
430
+ return b `<iframe
431
+ class="player"
432
+ part="player"
433
+ src=${source.url}
434
+ title=${this.name}
435
+ allow="autoplay; encrypted-media; fullscreen; picture-in-picture"
436
+ allowfullscreen
437
+ referrerpolicy="strict-origin-when-cross-origin"
438
+ ></iframe>`;
439
+ }
440
+ const from = source.provider === 'youtube'
441
+ ? this.i18n.t('videoFromYouTube')
442
+ : this.i18n.t('videoFromVimeo');
443
+ return b `<button
444
+ id="play"
445
+ class="play-button"
446
+ part="play-button"
447
+ type="button"
448
+ aria-label=${this.i18n.t('playVideo')(this.name)}
449
+ @click=${() => this.play()}
450
+ >
451
+ ${this.poster
452
+ ? b `<img class="poster" src=${this.poster} alt="" />`
453
+ : A}
454
+ ${this.label
455
+ ? b `<span class="title" aria-hidden="true">${this.label}</span>`
456
+ : A}
457
+ <span class="play-icon" aria-hidden="true">
458
+ <wc-icon name="play_arrow"></wc-icon>
459
+ </span>
460
+ <span class="meta" aria-hidden="true">
461
+ <span>${from}</span>
462
+ ${this.duration ? b `<span>${this.duration}</span>` : A}
463
+ </span>
464
+ <wc-focus-ring class="focus-ring" for="play"></wc-focus-ring>
465
+ </button>`;
466
+ }
467
+ // ── Render ───────────────────────────────────────────────────────────────
468
+ render() {
469
+ const { source } = this;
470
+ return b `<div
471
+ class="frame"
472
+ part="base"
473
+ style=${o({ aspectRatio: this.aspectRatio })}
474
+ >
475
+ ${source.provider === 'file'
476
+ ? this.renderFile(source.url)
477
+ : this.renderEmbed(source)}
478
+ </div>
479
+ <slot hidden @slotchange=${this.handleSlotChange}></slot>`;
480
+ }
481
+ };
482
+ Video.styles = [css_248z];
483
+ __decorate([
484
+ n({ reflect: true })
485
+ ], Video.prototype, "src", void 0);
486
+ __decorate([
487
+ n({ reflect: true })
488
+ ], Video.prototype, "poster", void 0);
489
+ __decorate([
490
+ n({ reflect: true })
491
+ ], Video.prototype, "label", void 0);
492
+ __decorate([
493
+ n({ reflect: true })
494
+ ], Video.prototype, "duration", void 0);
495
+ __decorate([
496
+ n({ attribute: 'aspect-ratio', reflect: true })
497
+ ], Video.prototype, "aspectRatio", void 0);
498
+ __decorate([
499
+ r()
500
+ ], Video.prototype, "loaded", void 0);
501
+ __decorate([
502
+ e('.player')
503
+ ], Video.prototype, "player", void 0);
504
+ Video = __decorate([
505
+ IndividualComponent
506
+ ], Video);
507
+
508
+ export { Video as V, parseVideoSource as p };
509
+ //# sourceMappingURL=video-IwNmHyft.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"video-IwNmHyft.js","sources":["../../src/video/video-source.ts","../../src/video/video.ts"],"sourcesContent":["/** Where a video plays from. */\nexport type VideoProvider = 'youtube' | 'vimeo' | 'file';\n\nexport interface VideoSource {\n provider: VideoProvider;\n /** The player URL to load on play, for YouTube and Vimeo; the file URL for a file. */\n url: string;\n}\n\nconst YOUTUBE_HOSTS = [\n 'youtube.com',\n 'www.youtube.com',\n 'm.youtube.com',\n 'music.youtube.com',\n 'youtube-nocookie.com',\n 'www.youtube-nocookie.com',\n];\n\nconst VIMEO_HOSTS = ['vimeo.com', 'www.vimeo.com', 'player.vimeo.com'];\n\n/** A YouTube time such as `90`, `90s` or `1m30s`, in whole seconds. */\nfunction seconds(time: string | null): number {\n if (!time) return 0;\n if (/^\\d+$/.test(time)) return Number(time);\n const match = /^(?:(\\d+)h)?(?:(\\d+)m)?(?:(\\d+)s)?$/.exec(time);\n if (!match) return 0;\n const [, h = '0', m = '0', s = '0'] = match;\n return Number(h) * 3600 + Number(m) * 60 + Number(s);\n}\n\nfunction youtubeId(url: URL): string | undefined {\n if (url.hostname === 'youtu.be') return url.pathname.split('/')[1];\n if (!YOUTUBE_HOSTS.includes(url.hostname)) return undefined;\n if (url.pathname === '/watch') return url.searchParams.get('v') ?? undefined;\n const [, kind, id] = url.pathname.split('/');\n return ['embed', 'shorts', 'live', 'v'].includes(kind) ? id : undefined;\n}\n\n/**\n * Reads a video URL. YouTube links play through youtube-nocookie.com and Vimeo links with\n * `dnt=1`, so neither sets tracking cookies; any other URL is treated as a video file.\n */\nexport function parseVideoSource(src: string): VideoSource {\n let url: URL;\n try {\n url = new URL(src, document.baseURI);\n } catch {\n return { provider: 'file', url: src };\n }\n\n const youtube = youtubeId(url);\n if (youtube && /^[\\w-]+$/.test(youtube)) {\n const params = new URLSearchParams({ autoplay: '1', rel: '0' });\n const start = seconds(\n url.searchParams.get('t') ?? url.searchParams.get('start'),\n );\n if (start) params.set('start', String(start));\n return {\n provider: 'youtube',\n url: `https://www.youtube-nocookie.com/embed/${youtube}?${params}`,\n };\n }\n\n if (VIMEO_HOSTS.includes(url.hostname)) {\n const parts = url.pathname.split('/').filter(Boolean);\n const at = parts[0] === 'video' ? 1 : 0;\n const id = parts[at];\n if (id && /^\\d+$/.test(id)) {\n const params = new URLSearchParams({ autoplay: '1', dnt: '1' });\n const hash = url.searchParams.get('h') ?? parts[at + 1];\n if (hash && /^\\w+$/.test(hash)) params.set('h', hash);\n return {\n provider: 'vimeo',\n url: `https://player.vimeo.com/video/${id}?${params}`,\n };\n }\n }\n\n return { provider: 'file', url: src };\n}\n","import { html, LitElement, nothing, type PropertyValues } from 'lit';\nimport { property, query, state } from 'lit/decorators.js';\nimport { styleMap } from 'lit/directives/style-map.js';\nimport IndividualComponent from '@/IndividualComponent.js';\nimport { I18nController } from '@/__internal/i18n/i18n-controller.js';\nimport {\n parseVideoSource,\n type VideoProvider,\n type VideoSource,\n} from './video-source.js';\nimport styles from './video.scss';\n\nexport type { VideoProvider } from './video-source.js';\n\n/**\n * @label Video\n * @tag wc-video\n * @rawTag video\n *\n * @summary A video from YouTube, Vimeo or a file, that loads its player only when the person presses play.\n * @overview\n * <p>Video shows a poster with a play button. A YouTube or Vimeo player loads only on that click, so\n * the page makes no request to the video site until the person asks for the video: no cookies, no\n * tracking, and a faster page. YouTube plays through <code>youtube-nocookie.com</code> and Vimeo with\n * Do Not Track, and a line on the poster says where the video plays from.</p>\n * <p>Any other <code>src</code> is a video file, shown in the browser's own player with its\n * controls. Put <code>&lt;track&gt;</code> elements in the video for captions and subtitles.</p>\n * <p>The video keeps its <code>aspect-ratio</code> before and after it loads, so nothing on the page\n * moves.</p>\n *\n * @slot - `<track>` elements for a video file's captions and subtitles.\n *\n * @csspart base - The frame that holds the poster or the player.\n * @csspart play-button - The poster button that loads and plays the video.\n * @csspart player - The `<iframe>` or `<video>`.\n *\n * @cssprop --video-shape - Corner radius of the frame. Defaults to `--shape-corner-large`.\n *\n * @fires {CustomEvent} play - Dispatched when the person starts the video: the player loads, or the file starts playing.\n *\n * @example\n * ```html\n * <wc-video\n * src=\"https://www.youtube.com/watch?v=aqz-KE-bpKQ\"\n * label=\"Build a portal in ten minutes\"\n * duration=\"9:42\"\n * poster=\"/img/portal-video.webp\"\n * ></wc-video>\n * ```\n * @example\n * ```html\n * <wc-video src=\"/media/tour.mp4\" poster=\"/media/tour.webp\" label=\"Product tour\">\n * <track kind=\"captions\" src=\"/media/tour.en.vtt\" srclang=\"en\" label=\"English\" default />\n * </wc-video>\n * ```\n * @tags media\n */\n@IndividualComponent\nexport class Video extends LitElement {\n // ── Static ───────────────────────────────────────────────────────────────\n\n static styles = [styles];\n\n // ── Properties ───────────────────────────────────────────────────────────\n\n /** A YouTube or Vimeo link, or the URL of a video file. */\n @property({ reflect: true })\n src = '';\n\n /** An image shown before the video plays. Without one, the frame shows the label on a plain surface. */\n @property({ reflect: true })\n poster = '';\n\n /** The video's title: shown on the poster, and the name of the play button and the player. */\n @property({ reflect: true })\n label = '';\n\n /** The video's length as text, such as `9:42`, shown on the poster. */\n @property({ reflect: true })\n duration = '';\n\n /** The frame's width to height, as a CSS `aspect-ratio`. */\n @property({ attribute: 'aspect-ratio', reflect: true })\n aspectRatio = '16 / 9';\n\n // ── State ────────────────────────────────────────────────────────────────\n\n /** Whether the person pressed play, so the YouTube or Vimeo player is loaded. */\n @state() private loaded = false;\n\n // ── Queries ──────────────────────────────────────────────────────────────\n\n @query('.player') private readonly player?:\n | HTMLIFrameElement\n | HTMLVideoElement;\n\n // ── Private fields ───────────────────────────────────────────────────────\n\n private readonly i18n = new I18nController(this);\n\n /** Whether the next update moves focus to the player that just loaded. */\n private focusPlayer = false;\n\n // ── Lifecycle ────────────────────────────────────────────────────────────\n\n protected override willUpdate(changed: PropertyValues<this>) {\n super.willUpdate(changed);\n if (changed.has('src') && changed.get('src') !== undefined) {\n this.loaded = false;\n }\n }\n\n protected override updated(changed: PropertyValues<this>) {\n super.updated(changed);\n if (this.player instanceof HTMLVideoElement) this.syncTracks();\n if (this.focusPlayer && this.player) {\n this.focusPlayer = false;\n this.player.focus();\n }\n }\n\n // ── Public methods ───────────────────────────────────────────────────────\n\n /** Where the video plays from, read from `src`. */\n get provider(): VideoProvider {\n return this.source.provider;\n }\n\n /** Loads the player and starts the video, as the play button does. */\n play() {\n if (this.player instanceof HTMLVideoElement) {\n this.player.play().catch(() => {\n // The browser refused to play without a gesture; its controls are still there.\n });\n return;\n }\n if (this.loaded) return;\n this.loaded = true;\n this.focusPlayer = true;\n this.dispatchEvent(new CustomEvent('play'));\n }\n\n // ── Private methods ──────────────────────────────────────────────────────\n\n private get source(): VideoSource {\n return parseVideoSource(this.src);\n }\n\n private get name() {\n return this.label || this.i18n.t('video');\n }\n\n /** Copies the light DOM `<track>` children into the shadow `<video>`, where tracks must be. */\n private syncTracks() {\n const video = this.player as HTMLVideoElement;\n const tracks = Array.from(this.querySelectorAll(':scope > track'));\n const current = Array.from(video.querySelectorAll('track'));\n const same =\n tracks.length === current.length &&\n tracks.every((track, i) => track.isEqualNode(current[i]));\n if (same) return;\n current.forEach(track => track.remove());\n tracks.forEach(track => video.append(track.cloneNode(true)));\n }\n\n private readonly handleSlotChange = () => {\n if (this.player instanceof HTMLVideoElement) this.syncTracks();\n };\n\n private readonly handleVideoPlay = () => {\n this.dispatchEvent(new CustomEvent('play'));\n };\n\n // ── Render helpers ───────────────────────────────────────────────────────\n\n private renderFile(url: string) {\n return html`<video\n class=\"player\"\n part=\"player\"\n src=${url}\n poster=${this.poster || nothing}\n aria-label=${this.name}\n controls\n playsinline\n preload=\"none\"\n @play=${this.handleVideoPlay}\n ></video>`;\n }\n\n private renderEmbed(source: VideoSource) {\n if (this.loaded) {\n return html`<iframe\n class=\"player\"\n part=\"player\"\n src=${source.url}\n title=${this.name}\n allow=\"autoplay; encrypted-media; fullscreen; picture-in-picture\"\n allowfullscreen\n referrerpolicy=\"strict-origin-when-cross-origin\"\n ></iframe>`;\n }\n const from =\n source.provider === 'youtube'\n ? this.i18n.t('videoFromYouTube')\n : this.i18n.t('videoFromVimeo');\n return html`<button\n id=\"play\"\n class=\"play-button\"\n part=\"play-button\"\n type=\"button\"\n aria-label=${this.i18n.t('playVideo')(this.name)}\n @click=${() => this.play()}\n >\n ${this.poster\n ? html`<img class=\"poster\" src=${this.poster} alt=\"\" />`\n : nothing}\n ${this.label\n ? html`<span class=\"title\" aria-hidden=\"true\">${this.label}</span>`\n : nothing}\n <span class=\"play-icon\" aria-hidden=\"true\">\n <wc-icon name=\"play_arrow\"></wc-icon>\n </span>\n <span class=\"meta\" aria-hidden=\"true\">\n <span>${from}</span>\n ${this.duration ? html`<span>${this.duration}</span>` : nothing}\n </span>\n <wc-focus-ring class=\"focus-ring\" for=\"play\"></wc-focus-ring>\n </button>`;\n }\n\n // ── Render ───────────────────────────────────────────────────────────────\n\n render() {\n const { source } = this;\n return html`<div\n class=\"frame\"\n part=\"base\"\n style=${styleMap({ aspectRatio: this.aspectRatio })}\n >\n ${source.provider === 'file'\n ? this.renderFile(source.url)\n : this.renderEmbed(source)}\n </div>\n <slot hidden @slotchange=${this.handleSlotChange}></slot>`;\n }\n}\n"],"names":["LitElement","html","nothing","styleMap","styles","property","state","query"],"mappings":";;;;;;;AASA,MAAM,aAAa,GAAG;IACpB,aAAa;IACb,iBAAiB;IACjB,eAAe;IACf,mBAAmB;IACnB,sBAAsB;IACtB,0BAA0B;CAC3B;AAED,MAAM,WAAW,GAAG,CAAC,WAAW,EAAE,eAAe,EAAE,kBAAkB,CAAC;AAEtE;AACA,SAAS,OAAO,CAAC,IAAmB,EAAA;AAClC,IAAA,IAAI,CAAC,IAAI;AAAE,QAAA,OAAO,CAAC;AACnB,IAAA,IAAI,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC;AAAE,QAAA,OAAO,MAAM,CAAC,IAAI,CAAC;IAC3C,MAAM,KAAK,GAAG,qCAAqC,CAAC,IAAI,CAAC,IAAI,CAAC;AAC9D,IAAA,IAAI,CAAC,KAAK;AAAE,QAAA,OAAO,CAAC;AACpB,IAAA,MAAM,GAAG,CAAC,GAAG,GAAG,EAAE,CAAC,GAAG,GAAG,EAAE,CAAC,GAAG,GAAG,CAAC,GAAG,KAAK;AAC3C,IAAA,OAAO,MAAM,CAAC,CAAC,CAAC,GAAG,IAAI,GAAG,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,GAAG,MAAM,CAAC,CAAC,CAAC;AACtD;AAEA,SAAS,SAAS,CAAC,GAAQ,EAAA;AACzB,IAAA,IAAI,GAAG,CAAC,QAAQ,KAAK,UAAU;QAAE,OAAO,GAAG,CAAC,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;IAClE,IAAI,CAAC,aAAa,CAAC,QAAQ,CAAC,GAAG,CAAC,QAAQ,CAAC;AAAE,QAAA,OAAO,SAAS;AAC3D,IAAA,IAAI,GAAG,CAAC,QAAQ,KAAK,QAAQ;QAAE,OAAO,GAAG,CAAC,YAAY,CAAC,GAAG,CAAC,GA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AA,KAAA,CAAA,SAAA,EAAA,QAAA,EAAA,MAAA,CAAA;AAIG,UAAA,CAAA;IAAlCC,CAAK,CAAC,SAAS;AAEK,CAAA,EAAA,KAAA,CAAA,SAAA,EAAA,QAAA,EAAA,MAAA,CAAA;AApCV,KAAK,GAAA,UAAA,CAAA;IADjB;AACY,CAAA,EAAA,KAAK,CA2LjB;;;;"}
package/dist/video.js ADDED
@@ -0,0 +1,12 @@
1
+ import './IndividualComponent-BK7XZjE2.js';
2
+ import './property-B2TG3KEE.js';
3
+ import './state-BCeDVCI9.js';
4
+ import './query-CHb9Ft_d.js';
5
+ import './style-map-CHOg6N_R.js';
6
+ import './i18n-controller-DLJcJ5gO.js';
7
+ export { V as Video } from './video-IwNmHyft.js';
8
+ import './base-Cl6v8-BZ.js';
9
+ import './directive-ZPhl09Yt.js';
10
+ import './strings-MXyrGrNs.js';
11
+ import './locale-DEsJZCQG.js';
12
+ //# sourceMappingURL=video.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"video.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;"}
@@ -2,11 +2,11 @@ import { i, _ as __decorate, I as IndividualComponent, a as i$1, D, A, b } from
2
2
  import { n } from './property-B2TG3KEE.js';
3
3
  import { r } from './state-BCeDVCI9.js';
4
4
  import { c } from './repeat-D_ERDRYT.js';
5
- import { I as I18nController } from './i18n-controller-DJHsE1YH.js';
5
+ import { I as I18nController } from './i18n-controller-DLJcJ5gO.js';
6
6
  import { v as virtualWindow } from './virtual-window-5OYyIqZh.js';
7
7
  import './directive-ZPhl09Yt.js';
8
8
  import './directive-helpers-Bx3mu42O.js';
9
- import './strings-DnYjGbbc.js';
9
+ import './strings-MXyrGrNs.js';
10
10
  import './locale-DEsJZCQG.js';
11
11
 
12
12
  var css_248z = i`* {
@@ -1,12 +1,12 @@
1
1
  import { i, _ as __decorate, I as IndividualComponent, a as i$1, A, b } from './IndividualComponent-BK7XZjE2.js';
2
2
  import { n } from './property-B2TG3KEE.js';
3
3
  import { e } from './class-map-NDIkZErE.js';
4
- import { I as I18nController } from './i18n-controller-DJHsE1YH.js';
4
+ import { I as I18nController } from './i18n-controller-DLJcJ5gO.js';
5
5
  import { D as DiagramCanvasLink } from './canvas-link-CtgsALq4.js';
6
6
  import { w as walk } from './workflow-model-CauduOG2.js';
7
7
  import { f as formatDuration } from './workflow-format-BsyveyeC.js';
8
8
  import './directive-ZPhl09Yt.js';
9
- import './strings-DnYjGbbc.js';
9
+ import './strings-MXyrGrNs.js';
10
10
  import './locale-DEsJZCQG.js';
11
11
  import './host-CZK7xhzh.js';
12
12
 
package/dist/workflow.js CHANGED
@@ -3,15 +3,15 @@ import { n } from './property-B2TG3KEE.js';
3
3
  import { r } from './state-BCeDVCI9.js';
4
4
  import { e } from './query-CHb9Ft_d.js';
5
5
  import { e as e$1 } from './class-map-NDIkZErE.js';
6
- import { D as DiagramCanvasElement, p as prefersReducedMotion, a as animateOut } from './canvas-base-CWQ4rQ2s.js';
6
+ import { D as DiagramCanvasElement, p as prefersReducedMotion, a as animateOut } from './canvas-base-BoKef3yr.js';
7
7
  import { r as roundedPath } from './geometry-INg82Lxq.js';
8
8
  import { H as History } from './history-YbTSQZHj.js';
9
9
  import { W as WORKFLOW_LOGIC_STEPS, f as findStep, w as walk, i as isReached, r as replaceStep, a as removeStep, g as getList, c as createStep, b as allIds, d as insertStep, m as moveStep, l as listKey, e as cloneWithNewIds, h as contains, j as countInside, k as listTerminates, s as stepTerminates } from './workflow-model-CauduOG2.js';
10
10
  import { f as formatDuration } from './workflow-format-BsyveyeC.js';
11
11
  import './base-Cl6v8-BZ.js';
12
12
  import './directive-ZPhl09Yt.js';
13
- import './i18n-controller-DJHsE1YH.js';
14
- import './strings-DnYjGbbc.js';
13
+ import './i18n-controller-DLJcJ5gO.js';
14
+ import './strings-MXyrGrNs.js';
15
15
  import './locale-DEsJZCQG.js';
16
16
  import './host-CZK7xhzh.js';
17
17