@arc-ui/community-components 3.3.0 → 3.4.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 (104) hide show
  1. package/.turbo/turbo-build.log +132 -12
  2. package/CHANGELOG.md +12 -0
  3. package/lib/Accordion/Accordion.mjs +1 -1
  4. package/lib/ActionTile/ActionTile.mjs +9 -9
  5. package/lib/ArticleSidebar/ArticleSidebar.mjs +44 -44
  6. package/lib/Author/Author.mjs +1 -1
  7. package/lib/BannerWithTabs/BannerWithTabs.mjs +6 -6
  8. package/lib/ContentInfoWidget/ContentInfoWidget.mjs +6 -6
  9. package/lib/CopyLead/CopyLead.cjs +18 -8
  10. package/lib/CopyLead/CopyLead.mjs +59 -49
  11. package/lib/DownloadList/DownloadList.mjs +9 -9
  12. package/lib/FAQs/FAQs.mjs +21 -21
  13. package/lib/FeaturePost/FeaturePost.cjs +1 -1
  14. package/lib/FeaturePost/FeaturePost.mjs +53 -53
  15. package/lib/Highlights/Highlights.mjs +19 -19
  16. package/lib/InlineLinkGroup/InlineLinkGroup.mjs +10 -10
  17. package/lib/LinkTile/LinkTile.mjs +5 -5
  18. package/lib/ProductNavigation/ProductNavigation.cjs +1 -1
  19. package/lib/ProductNavigation/ProductNavigation.mjs +17 -17
  20. package/lib/PromoListing/PromoListing.cjs +1 -1
  21. package/lib/PromoListing/PromoListing.mjs +15 -15
  22. package/lib/PromoListingThumbnailSignpost/PromoListingThumbnailSignpost.cjs +2 -2
  23. package/lib/PromoListingThumbnailSignpost/PromoListingThumbnailSignpost.mjs +8 -8
  24. package/lib/Quote/Quote.mjs +8 -8
  25. package/lib/SectionHeading/SectionHeading.mjs +1 -1
  26. package/lib/Statistics/Statistics.mjs +31 -31
  27. package/lib/Summary/Summary.cjs +1 -1
  28. package/lib/Summary/Summary.mjs +11 -11
  29. package/lib/ThumbnailSignpost/ThumbnailSignpost.mjs +1 -1
  30. package/lib/VideoHeroCard/VideoHeroCard.cjs +76 -0
  31. package/lib/VideoHeroCard/VideoHeroCard.mjs +74 -0
  32. package/lib/VideoPortraitCard/VideoPortraitCard.cjs +22 -0
  33. package/lib/VideoPortraitCard/VideoPortraitCard.mjs +20 -0
  34. package/lib/_shared/cjs/Preview-Dx1kCzJ1.cjs +102 -0
  35. package/lib/_shared/cjs/VideoCardThumbnail-BqYgpk0u.cjs +440 -0
  36. package/lib/_shared/cjs/dash.all.min-BPXzla24.cjs +6 -0
  37. package/lib/_shared/cjs/hls-Ckhp5fVA.cjs +36628 -0
  38. package/lib/_shared/cjs/index-DjiIVIaV.cjs +96 -0
  39. package/lib/_shared/cjs/index-oGP6D6gL.cjs +14826 -0
  40. package/lib/_shared/cjs/{index.es-Dq8bYrbW.cjs → index.es-B0J3cvrY.cjs} +1 -1
  41. package/lib/_shared/cjs/mixin-BFwaXKGB.cjs +1027 -0
  42. package/lib/_shared/cjs/react-CEvhi3LL.cjs +737 -0
  43. package/lib/_shared/cjs/react-CqsEClV0.cjs +466 -0
  44. package/lib/_shared/cjs/react-DE6M3seI.cjs +496 -0
  45. package/lib/_shared/cjs/react-Dri2yjKm.cjs +554 -0
  46. package/lib/_shared/cjs/react-DxToimBj.cjs +4239 -0
  47. package/lib/_shared/cjs/react-JTfV8OSA.cjs +325 -0
  48. package/lib/_shared/cjs/react-caXJFZ8W.cjs +400 -0
  49. package/lib/_shared/cjs/react-fep2ei7j.cjs +727 -0
  50. package/lib/_shared/esm/{Accordion-DrOTh90S.mjs → Accordion-DtU7jbCv.mjs} +15 -15
  51. package/lib/_shared/esm/Author-CJQFrQM9.mjs +27 -0
  52. package/lib/_shared/esm/Preview-CmbKOgEO.mjs +100 -0
  53. package/lib/_shared/esm/{SectionHeading-DZOg_gYi.mjs → SectionHeading-BskdQ2Tt.mjs} +9 -9
  54. package/lib/_shared/esm/{ThumbnailSignpost-DaZByYIH.mjs → ThumbnailSignpost-CBSdQiHw.mjs} +12 -12
  55. package/lib/_shared/esm/VideoCardThumbnail-VfOKmPCv.mjs +437 -0
  56. package/lib/_shared/esm/dash.all.min-CbWI_8dN.mjs +4 -0
  57. package/lib/_shared/esm/hls-AFbJDS9D.mjs +36625 -0
  58. package/lib/_shared/esm/index-CrcIrdjn.mjs +14799 -0
  59. package/lib/_shared/esm/index-DYnuIO1L.mjs +94 -0
  60. package/lib/_shared/esm/{index.es-Bfdys5__.mjs → index.es-DraZ-qKh.mjs} +1 -1
  61. package/lib/_shared/esm/mixin-BGGG8VrM.mjs +1024 -0
  62. package/lib/_shared/esm/react-BGimq-TB.mjs +4237 -0
  63. package/lib/_shared/esm/react-BHT4t_eQ.mjs +494 -0
  64. package/lib/_shared/esm/react-BSd0sGcO.mjs +464 -0
  65. package/lib/_shared/esm/react-CSr43fZV.mjs +552 -0
  66. package/lib/_shared/esm/react-Ca6E7Fr-.mjs +398 -0
  67. package/lib/_shared/esm/react-DG070IvZ.mjs +725 -0
  68. package/lib/_shared/esm/react-DZyqy7W7.mjs +735 -0
  69. package/lib/_shared/esm/react-WW_9iHcl.mjs +323 -0
  70. package/lib/index.cjs +249 -123
  71. package/lib/index.cjs.map +1 -1
  72. package/lib/index.d.cts +55 -2
  73. package/lib/index.d.mts +55 -2
  74. package/lib/index.mjs +248 -124
  75. package/lib/index.mjs.map +1 -1
  76. package/lib/styles.css +1 -1
  77. package/package.json +17 -14
  78. package/rollup.config.js +1 -1
  79. package/src/components/CopyLead/components/MediaContent/MediaContent.tsx +7 -6
  80. package/src/components/CopyLead/templates/Content/Content.tsx +5 -3
  81. package/src/components/CopyLead/templates/Media/Media.tsx +5 -6
  82. package/src/components/PromoListingThumbnailSignpost/PromoListingThumbnailSignpost.tsx +2 -0
  83. package/src/components/VideoHeroCard/VideoHeroCard.tsx +63 -0
  84. package/src/components/VideoHeroCard/components/VideoHeroCardContent/VideoHeroCardContent.module.css +32 -0
  85. package/src/components/VideoHeroCard/components/VideoHeroCardContent/VideoHeroCardContent.tsx +97 -0
  86. package/src/components/VideoHeroCard/components/VideoHeroCardContent/index.ts +4 -0
  87. package/src/components/VideoHeroCard/index.ts +1 -0
  88. package/src/components/VideoPortraitCard/VideoPortraitCard.tsx +54 -0
  89. package/src/components/VideoPortraitCard/index.ts +4 -0
  90. package/src/components/index.ts +2 -0
  91. package/src/internal/MultiLineText/MultiLineText.tsx +25 -0
  92. package/src/internal/MultiLineText/index.ts +1 -0
  93. package/src/internal/VideoCardPlayer/VideoCardPlayer.module.css +54 -0
  94. package/src/internal/VideoCardPlayer/VideoCardPlayer.tsx +62 -0
  95. package/src/internal/VideoCardPlayer/components/VideoCardPlayIcon/VideoCardPlayIcon.module.css +41 -0
  96. package/src/internal/VideoCardPlayer/components/VideoCardPlayIcon/VideoCardPlayIcon.tsx +28 -0
  97. package/src/internal/VideoCardPlayer/components/VideoCardPlayIcon/index.ts +1 -0
  98. package/src/internal/VideoCardPlayer/components/VideoCardThumbnail/VideoCardThumbnail.module.css +58 -0
  99. package/src/internal/VideoCardPlayer/components/VideoCardThumbnail/VideoCardThumbnail.tsx +38 -0
  100. package/src/internal/VideoCardPlayer/components/VideoCardThumbnail/index.ts +1 -0
  101. package/src/internal/VideoCardPlayer/index.ts +2 -0
  102. package/src/internal/VideoCardPlayer/types/player-props.ts +6 -0
  103. package/versions.json +1 -1
  104. package/lib/_shared/esm/Author-BVCRPgkl.mjs +0 -27
@@ -0,0 +1,398 @@
1
+ import React__default from 'react';
2
+ import { M as MediaTracksMixin, C as CustomVideoElement } from './mixin-BGGG8VrM.mjs';
3
+ import { H as Hls } from './hls-AFbJDS9D.mjs';
4
+
5
+ const HlsVideoMixin = (superclass) => {
6
+ return class HlsVideo extends superclass {
7
+ static shadowRootOptions = { ...superclass.shadowRootOptions };
8
+ static getTemplateHTML = (attrs, props = {}) => {
9
+ const { src, ...rest } = attrs;
10
+ return `
11
+ <script type="application/json" id="config">
12
+ ${JSON.stringify(props.config || {})}
13
+ </script>
14
+ ${superclass.getTemplateHTML(rest)}
15
+ `;
16
+ };
17
+ #airplaySourceEl = null;
18
+ #config = null;
19
+ constructor() {
20
+ super();
21
+ this.#upgradeProperty("config");
22
+ }
23
+ get config() {
24
+ return this.#config;
25
+ }
26
+ set config(value) {
27
+ this.#config = value;
28
+ }
29
+ attributeChangedCallback(attrName, oldValue, newValue) {
30
+ if (attrName !== "src") {
31
+ super.attributeChangedCallback(attrName, oldValue, newValue);
32
+ }
33
+ if (attrName === "src" && oldValue != newValue) {
34
+ this.load();
35
+ }
36
+ }
37
+ #destroy() {
38
+ var _a, _b;
39
+ (_a = this.#airplaySourceEl) == null ? void 0 : _a.remove();
40
+ (_b = this.nativeEl) == null ? void 0 : _b.removeEventListener(
41
+ "webkitcurrentplaybacktargetiswirelesschanged",
42
+ this.#toggleHlsLoad
43
+ );
44
+ if (this.api) {
45
+ this.api.detachMedia();
46
+ this.api.destroy();
47
+ this.api = null;
48
+ }
49
+ }
50
+ async load() {
51
+ var _a, _b;
52
+ const isFirstLoad = !this.api;
53
+ this.#destroy();
54
+ if (!this.src) {
55
+ return;
56
+ }
57
+ if (isFirstLoad && !this.#config) {
58
+ this.#config = JSON.parse(((_a = this.shadowRoot.getElementById("config")) == null ? void 0 : _a.textContent) || "{}");
59
+ }
60
+ if (Hls.isSupported()) {
61
+ await Promise.resolve();
62
+ this.api = new Hls({
63
+ // Mimic the media element with an Infinity duration for live streams.
64
+ liveDurationInfinity: true,
65
+ // Disable auto quality level/fragment loading.
66
+ autoStartLoad: false,
67
+ // Custom configuration for hls.js.
68
+ ...this.config
69
+ });
70
+ this.api.loadSource(this.src);
71
+ this.api.attachMedia(this.nativeEl);
72
+ switch (this.nativeEl.preload) {
73
+ case "none": {
74
+ const loadSourceOnPlay = () => this.api.startLoad();
75
+ this.nativeEl.addEventListener("play", loadSourceOnPlay, {
76
+ once: true
77
+ });
78
+ this.api.on(Hls.Events.DESTROYING, () => {
79
+ this.nativeEl.removeEventListener("play", loadSourceOnPlay);
80
+ });
81
+ break;
82
+ }
83
+ case "metadata": {
84
+ const originalLength = this.api.config.maxBufferLength;
85
+ const originalSize = this.api.config.maxBufferSize;
86
+ this.api.config.maxBufferLength = 1;
87
+ this.api.config.maxBufferSize = 1;
88
+ const increaseBufferOnPlay = () => {
89
+ this.api.config.maxBufferLength = originalLength;
90
+ this.api.config.maxBufferSize = originalSize;
91
+ };
92
+ this.nativeEl.addEventListener("play", increaseBufferOnPlay, {
93
+ once: true
94
+ });
95
+ this.api.on(Hls.Events.DESTROYING, () => {
96
+ this.nativeEl.removeEventListener("play", increaseBufferOnPlay);
97
+ });
98
+ this.api.startLoad();
99
+ break;
100
+ }
101
+ default:
102
+ this.api.startLoad();
103
+ }
104
+ if (this.nativeEl.webkitCurrentPlaybackTargetIsWireless) {
105
+ this.api.stopLoad();
106
+ }
107
+ this.nativeEl.addEventListener(
108
+ "webkitcurrentplaybacktargetiswirelesschanged",
109
+ this.#toggleHlsLoad
110
+ );
111
+ this.#airplaySourceEl = document.createElement("source");
112
+ this.#airplaySourceEl.setAttribute("type", "application/x-mpegURL");
113
+ this.#airplaySourceEl.setAttribute("src", this.src);
114
+ this.nativeEl.disableRemotePlayback = false;
115
+ this.nativeEl.append(this.#airplaySourceEl);
116
+ const levelIdMap = /* @__PURE__ */ new WeakMap();
117
+ this.api.on(Hls.Events.MANIFEST_PARSED, (event, data) => {
118
+ if (this.nativeEl.autoplay && this.nativeEl.paused) {
119
+ this.nativeEl.play().catch((err) => {
120
+ console.warn("Autoplay failed:", err);
121
+ });
122
+ }
123
+ removeAllMediaTracks();
124
+ let videoTrack = this.videoTracks.getTrackById("main");
125
+ if (!videoTrack) {
126
+ videoTrack = this.addVideoTrack("main");
127
+ videoTrack.id = "main";
128
+ videoTrack.selected = true;
129
+ }
130
+ for (const [id, level] of data.levels.entries()) {
131
+ const videoRendition = videoTrack.addRendition(
132
+ level.url[0],
133
+ level.width,
134
+ level.height,
135
+ level.videoCodec,
136
+ level.bitrate
137
+ );
138
+ levelIdMap.set(level, `${id}`);
139
+ videoRendition.id = `${id}`;
140
+ }
141
+ for (let [id, a] of data.audioTracks.entries()) {
142
+ const kind = a.default ? "main" : "alternative";
143
+ const audioTrack = this.addAudioTrack(kind, a.name, a.lang);
144
+ audioTrack.id = `${id}`;
145
+ if (a.default) {
146
+ audioTrack.enabled = true;
147
+ }
148
+ }
149
+ });
150
+ this.audioTracks.addEventListener("change", () => {
151
+ var _a2;
152
+ const audioTrackId = +((_a2 = [...this.audioTracks].find((t) => t.enabled)) == null ? void 0 : _a2.id);
153
+ const availableIds = this.api.audioTracks.map((t) => t.id);
154
+ if (audioTrackId != this.api.audioTrack && availableIds.includes(audioTrackId)) {
155
+ this.api.audioTrack = audioTrackId;
156
+ }
157
+ });
158
+ this.api.on(Hls.Events.LEVELS_UPDATED, (event, data) => {
159
+ const videoTrack = this.videoTracks[this.videoTracks.selectedIndex ?? 0];
160
+ if (!videoTrack) return;
161
+ const levelIds = data.levels.map((l) => levelIdMap.get(l));
162
+ for (const rendition of this.videoRenditions) {
163
+ if (rendition.id && !levelIds.includes(rendition.id)) {
164
+ videoTrack.removeRendition(rendition);
165
+ }
166
+ }
167
+ });
168
+ let lastFailedLevel = null;
169
+ this.api.on(Hls.Events.ERROR, (event, data) => {
170
+ if (data.type === Hls.ErrorTypes.NETWORK_ERROR && data.details === Hls.ErrorDetails.FRAG_LOAD_ERROR) {
171
+ lastFailedLevel = data.frag.level;
172
+ }
173
+ });
174
+ this.api.on(Hls.Events.LEVEL_SWITCHED, (event, data) => {
175
+ const newLevel = data.level;
176
+ if (lastFailedLevel !== null && newLevel < lastFailedLevel) {
177
+ console.warn(
178
+ `\u26A0\uFE0F hls.js downgraded quality from level ${lastFailedLevel} to ${newLevel} due to fragment load failure.`
179
+ );
180
+ this.videoRenditions.selectedIndex = newLevel;
181
+ lastFailedLevel = null;
182
+ }
183
+ });
184
+ const switchRendition = (event) => {
185
+ const level = event.target.selectedIndex;
186
+ if (level != this.api.nextLevel) {
187
+ this.api.nextLevel = level;
188
+ }
189
+ };
190
+ (_b = this.videoRenditions) == null ? void 0 : _b.addEventListener("change", switchRendition);
191
+ const removeAllMediaTracks = () => {
192
+ for (const videoTrack of this.videoTracks) {
193
+ this.removeVideoTrack(videoTrack);
194
+ }
195
+ for (const audioTrack of this.audioTracks) {
196
+ this.removeAudioTrack(audioTrack);
197
+ }
198
+ };
199
+ this.api.once(Hls.Events.DESTROYING, removeAllMediaTracks);
200
+ return;
201
+ }
202
+ await Promise.resolve();
203
+ if (this.nativeEl.canPlayType("application/vnd.apple.mpegurl")) {
204
+ this.nativeEl.src = this.src;
205
+ }
206
+ }
207
+ #toggleHlsLoad = () => {
208
+ var _a, _b, _c;
209
+ if ((_a = this.nativeEl) == null ? void 0 : _a.webkitCurrentPlaybackTargetIsWireless) {
210
+ (_b = this.api) == null ? void 0 : _b.stopLoad();
211
+ } else {
212
+ (_c = this.api) == null ? void 0 : _c.startLoad();
213
+ }
214
+ };
215
+ // This is a pattern to update property values that are set before
216
+ // the custom element is upgraded.
217
+ // https://web.dev/custom-elements-best-practices/#make-properties-lazy
218
+ #upgradeProperty(prop) {
219
+ if (Object.prototype.hasOwnProperty.call(this, prop)) {
220
+ const value = this[prop];
221
+ delete this[prop];
222
+ this[prop] = value;
223
+ }
224
+ }
225
+ };
226
+ };
227
+ const HlsVideoElement = HlsVideoMixin(MediaTracksMixin(CustomVideoElement));
228
+ if (globalThis.customElements && !globalThis.customElements.get("hls-video")) {
229
+ globalThis.customElements.define("hls-video", HlsVideoElement);
230
+ }
231
+ var hls_video_element_default = HlsVideoElement;
232
+
233
+ // ../../node_modules/ce-la-react/dist/ce-la-react.js
234
+ var reservedReactProps = /* @__PURE__ */ new Set([
235
+ "style",
236
+ "children",
237
+ "ref",
238
+ "key",
239
+ "suppressContentEditableWarning",
240
+ "suppressHydrationWarning",
241
+ "dangerouslySetInnerHTML"
242
+ ]);
243
+ var reactPropToAttrNameMap = {
244
+ className: "class",
245
+ htmlFor: "for"
246
+ };
247
+ function defaultToAttributeName(propName) {
248
+ return propName.toLowerCase();
249
+ }
250
+ function defaultToAttributeValue(propValue) {
251
+ if (typeof propValue === "boolean") return propValue ? "" : void 0;
252
+ if (typeof propValue === "function") return void 0;
253
+ if (typeof propValue === "object" && propValue !== null) return void 0;
254
+ return propValue;
255
+ }
256
+ function createComponent({
257
+ react: React2,
258
+ tagName,
259
+ elementClass,
260
+ events,
261
+ displayName,
262
+ defaultProps,
263
+ toAttributeName = defaultToAttributeName,
264
+ toAttributeValue = defaultToAttributeValue
265
+ }) {
266
+ const IS_REACT_19_OR_NEWER = Number.parseInt(React2.version) >= 19;
267
+ const ReactComponent = React2.forwardRef((props, ref) => {
268
+ var _a, _b;
269
+ const elementRef = React2.useRef(null);
270
+ const prevElemPropsRef = React2.useRef(/* @__PURE__ */ new Map());
271
+ const eventProps = {};
272
+ const attrs = {};
273
+ const reactProps = {};
274
+ const elementProps = {};
275
+ for (const [k, v] of Object.entries(props)) {
276
+ if (reservedReactProps.has(k)) {
277
+ reactProps[k] = v;
278
+ continue;
279
+ }
280
+ const attrName = toAttributeName(reactPropToAttrNameMap[k] ?? k);
281
+ if (elementClass.prototype && k in elementClass.prototype && !(k in (((_a = globalThis.HTMLElement) == null ? void 0 : _a.prototype) ?? {})) && !((_b = elementClass.observedAttributes) == null ? void 0 : _b.some((attr) => attr === attrName))) {
282
+ elementProps[k] = v;
283
+ continue;
284
+ }
285
+ if (k.startsWith("on")) {
286
+ eventProps[k] = v;
287
+ continue;
288
+ }
289
+ const attrValue = toAttributeValue(v);
290
+ if (attrName && attrValue != null) {
291
+ attrs[attrName] = String(attrValue);
292
+ if (!IS_REACT_19_OR_NEWER) {
293
+ reactProps[attrName] = attrValue;
294
+ }
295
+ }
296
+ if (attrName && IS_REACT_19_OR_NEWER) {
297
+ const attrValueFromDefault = defaultToAttributeValue(v);
298
+ if (attrValue !== attrValueFromDefault) {
299
+ reactProps[attrName] = attrValue;
300
+ } else {
301
+ reactProps[attrName] = v;
302
+ }
303
+ }
304
+ }
305
+ if (typeof window !== "undefined") {
306
+ for (const propName in eventProps) {
307
+ const callback = eventProps[propName];
308
+ const useCapture = propName.endsWith("Capture");
309
+ const eventName = ((events == null ? void 0 : events[propName]) ?? propName.slice(2).toLowerCase()).slice(
310
+ 0,
311
+ useCapture ? -7 : void 0
312
+ );
313
+ React2.useLayoutEffect(() => {
314
+ const eventTarget = elementRef == null ? void 0 : elementRef.current;
315
+ if (!eventTarget || typeof callback !== "function") return;
316
+ eventTarget.addEventListener(eventName, callback, useCapture);
317
+ return () => {
318
+ eventTarget.removeEventListener(eventName, callback, useCapture);
319
+ };
320
+ }, [elementRef == null ? void 0 : elementRef.current, callback]);
321
+ }
322
+ React2.useLayoutEffect(() => {
323
+ if (elementRef.current === null) return;
324
+ const newElemProps = /* @__PURE__ */ new Map();
325
+ for (const key in elementProps) {
326
+ setProperty(elementRef.current, key, elementProps[key]);
327
+ prevElemPropsRef.current.delete(key);
328
+ newElemProps.set(key, elementProps[key]);
329
+ }
330
+ for (const [key, _value] of prevElemPropsRef.current) {
331
+ setProperty(elementRef.current, key, void 0);
332
+ }
333
+ prevElemPropsRef.current = newElemProps;
334
+ });
335
+ }
336
+ if (typeof window === "undefined" && (elementClass == null ? void 0 : elementClass.getTemplateHTML) && (elementClass == null ? void 0 : elementClass.shadowRootOptions)) {
337
+ const { mode, delegatesFocus } = elementClass.shadowRootOptions;
338
+ const templateShadowRoot = React2.createElement("template", {
339
+ shadowrootmode: mode,
340
+ shadowrootdelegatesfocus: delegatesFocus,
341
+ dangerouslySetInnerHTML: {
342
+ __html: elementClass.getTemplateHTML(attrs, props)
343
+ },
344
+ key: "ce-la-react-ssr-template-shadow-root"
345
+ });
346
+ reactProps.children = [templateShadowRoot, reactProps.children];
347
+ }
348
+ return React2.createElement(tagName, {
349
+ ...defaultProps,
350
+ ...reactProps,
351
+ ref: React2.useCallback(
352
+ (node) => {
353
+ elementRef.current = node;
354
+ if (typeof ref === "function") {
355
+ ref(node);
356
+ } else if (ref !== null) {
357
+ ref.current = node;
358
+ }
359
+ },
360
+ [ref]
361
+ )
362
+ }, reactProps.children);
363
+ });
364
+ ReactComponent.displayName = displayName ?? elementClass.name;
365
+ return ReactComponent;
366
+ }
367
+ function setProperty(node, name, value) {
368
+ var _a;
369
+ node[name] = value;
370
+ if (value == null && name in (((_a = globalThis.HTMLElement) == null ? void 0 : _a.prototype) ?? {})) {
371
+ node.removeAttribute(name);
372
+ }
373
+ }
374
+
375
+ // dist/react.ts
376
+ var react_default = createComponent({
377
+ react: React__default,
378
+ tagName: "hls-video",
379
+ elementClass: hls_video_element_default,
380
+ toAttributeName(propName) {
381
+ if (propName === "muted") return "";
382
+ if (propName === "defaultMuted") return "muted";
383
+ return defaultToAttributeName(propName);
384
+ }
385
+ });
386
+ /*! Bundled license information:
387
+
388
+ ce-la-react/dist/ce-la-react.js:
389
+ (**
390
+ * @license
391
+ * Copyright 2018 Google LLC
392
+ * SPDX-License-Identifier: BSD-3-Clause
393
+ *
394
+ * Modified version of `@lit/react` for vanilla custom elements with support for SSR.
395
+ *)
396
+ */
397
+
398
+ export { react_default as default };