@ix_waterford/lib 1.0.1

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 (35) hide show
  1. package/README.md +49 -0
  2. package/dist/index.html +1 -0
  3. package/dist/static/js/async/reactPlayerDash.js +251 -0
  4. package/dist/static/js/async/reactPlayerDash.js.map +1 -0
  5. package/dist/static/js/async/reactPlayerHls.js +430 -0
  6. package/dist/static/js/async/reactPlayerHls.js.map +1 -0
  7. package/dist/static/js/async/reactPlayerMux.js +16076 -0
  8. package/dist/static/js/async/reactPlayerMux.js.map +1 -0
  9. package/dist/static/js/async/reactPlayerPreview.js +112 -0
  10. package/dist/static/js/async/reactPlayerPreview.js.map +1 -0
  11. package/dist/static/js/async/reactPlayerSpotify.js +519 -0
  12. package/dist/static/js/async/reactPlayerSpotify.js.map +1 -0
  13. package/dist/static/js/async/reactPlayerTiktok.js +489 -0
  14. package/dist/static/js/async/reactPlayerTiktok.js.map +1 -0
  15. package/dist/static/js/async/reactPlayerTwitch.js +587 -0
  16. package/dist/static/js/async/reactPlayerTwitch.js.map +1 -0
  17. package/dist/static/js/async/reactPlayerVimeo.js +4265 -0
  18. package/dist/static/js/async/reactPlayerVimeo.js.map +1 -0
  19. package/dist/static/js/async/reactPlayerWistia.js +768 -0
  20. package/dist/static/js/async/reactPlayerWistia.js.map +1 -0
  21. package/dist/static/js/async/reactPlayerYouTube.js +735 -0
  22. package/dist/static/js/async/reactPlayerYouTube.js.map +1 -0
  23. package/dist/static/js/async/vendors-node_modules_custom-media-element_dist_custom-media-element_js-node_modules_media-tra-835023.js +1254 -0
  24. package/dist/static/js/async/vendors-node_modules_custom-media-element_dist_custom-media-element_js-node_modules_media-tra-835023.js.map +1 -0
  25. package/dist/static/js/async/vendors-node_modules_dashjs_dist_modern_esm_dash_all_min_js.js +22 -0
  26. package/dist/static/js/async/vendors-node_modules_dashjs_dist_modern_esm_dash_all_min_js.js.map +1 -0
  27. package/dist/static/js/async/vendors-node_modules_hls_js_dist_hls_mjs.js +36660 -0
  28. package/dist/static/js/async/vendors-node_modules_hls_js_dist_hls_mjs.js.map +1 -0
  29. package/dist/static/js/index.js +4817 -0
  30. package/dist/static/js/index.js.map +1 -0
  31. package/dist/static/js/lib-react.js +3235 -0
  32. package/dist/static/js/lib-react.js.map +1 -0
  33. package/dist/static/js/vendors-node_modules_dayjs_plugin_utc_js-node_modules_react-color_es_index_js-node_modules_mu-c151eb.js +89093 -0
  34. package/dist/static/js/vendors-node_modules_dayjs_plugin_utc_js-node_modules_react-color_es_index_js-node_modules_mu-c151eb.js.map +1 -0
  35. package/package.json +89 -0
package/README.md ADDED
@@ -0,0 +1,49 @@
1
+
2
+ ### Prerequisites
3
+ - Node.js 18+
4
+ - npm
5
+
6
+ ### Installation
7
+ npm install
8
+
9
+ This will automatically set up husky git hooks via the `prepare` script.
10
+
11
+ ### Development Server
12
+ npm run dev
13
+
14
+ The app will be available at `http://localhost:5000`
15
+
16
+ ### Build
17
+ npm run build
18
+
19
+ ### Code Quality
20
+ # Run ESLint for code quality checks (shows errors only)
21
+ npm run lint
22
+
23
+ # Fix ESLint issues manually (optional)
24
+ npm run lint:fix
25
+
26
+ # Run TypeScript type checking
27
+ npm run type-check
28
+
29
+ ### Git Hooks (Husky)
30
+ Pre-commit hooks automatically run on every commit:
31
+
32
+ - **ESLint**: Shows code style and quality errors (manual fixing required)
33
+ - **Import ordering**: Validates external packages come before local imports
34
+ - **CamelCase variables**: Checks naming conventions for React components
35
+
36
+ The hooks will prevent commits if there are ESLint errors.
37
+
38
+ ## Consuming This Remote
39
+ To consume these components in another application, configure your Module Federation setup to include this remote:
40
+
41
+ // In your rsbuild.config.ts or webpack config
42
+ {
43
+ remotes: {
44
+ componentApp: 'component_app@http://localhost:5000/mf-manifest.json'
45
+ }
46
+ }
47
+
48
+ #Then import the components:
49
+ import Button from 'componentApp/Button';
@@ -0,0 +1 @@
1
+ <!doctype html><html><head><title>Rsbuild App</title><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><script defer src="/static/js/lib-react.js"></script><script defer src="/static/js/vendors-node_modules_dayjs_plugin_utc_js-node_modules_react-color_es_index_js-node_modules_mu-c151eb.js"></script><script defer src="/static/js/index.js"></script></head><body><div id="root"></div></body></html>
@@ -0,0 +1,251 @@
1
+ "use strict";
2
+ (self["webpackChunkwaterford_library"] = self["webpackChunkwaterford_library"] || []).push([["reactPlayerDash"], {
3
+ "./node_modules/dash-video-element/dist/dash-video-element.js": (function (__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
4
+ __webpack_require__.r(__webpack_exports__);
5
+ __webpack_require__.d(__webpack_exports__, {
6
+ "default": () => (dash_video_element_default)
7
+ });
8
+ /* ESM import */var custom_media_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/custom-media-element/dist/custom-media-element.js");
9
+ /* ESM import */var media_tracks__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/media-tracks/dist/index.js");
10
+
11
+
12
+ class DashVideoElement extends (0,media_tracks__WEBPACK_IMPORTED_MODULE_1__.MediaTracksMixin)(custom_media_element__WEBPACK_IMPORTED_MODULE_0__.CustomVideoElement) {
13
+ static shadowRootOptions = { ...custom_media_element__WEBPACK_IMPORTED_MODULE_0__.CustomVideoElement.shadowRootOptions };
14
+ static getTemplateHTML = (attrs) => {
15
+ const { src, ...rest } = attrs;
16
+ return custom_media_element__WEBPACK_IMPORTED_MODULE_0__.CustomVideoElement.getTemplateHTML(rest);
17
+ };
18
+ #apiInit;
19
+ attributeChangedCallback(attrName, oldValue, newValue) {
20
+ if (attrName !== "src") {
21
+ super.attributeChangedCallback(attrName, oldValue, newValue);
22
+ }
23
+ if (attrName === "src" && oldValue != newValue) {
24
+ this.load();
25
+ }
26
+ }
27
+ async load() {
28
+ if (this.#apiInit) {
29
+ this.api.attachSource(this.src);
30
+ return;
31
+ }
32
+ this.#apiInit = true;
33
+ const Dash = await __webpack_require__.e(/* import() */ "vendors-node_modules_dashjs_dist_modern_esm_dash_all_min_js").then(__webpack_require__.bind(__webpack_require__, "./node_modules/dashjs/dist/modern/esm/dash.all.min.js"));
34
+ this.api = Dash.MediaPlayer().create();
35
+ this.api.initialize(this.nativeEl, this.src, this.autoplay);
36
+ this.api.on(Dash.MediaPlayer.events.STREAM_INITIALIZED, () => {
37
+ const bitrateList = this.api.getRepresentationsByType("video");
38
+ let videoTrack = this.videoTracks.getTrackById("main");
39
+ if (!videoTrack) {
40
+ videoTrack = this.addVideoTrack("main");
41
+ videoTrack.id = "main";
42
+ videoTrack.selected = true;
43
+ }
44
+ bitrateList.forEach((rep) => {
45
+ const bitrate = rep.bandwidth ?? rep.bitrate ?? (Number.isFinite(rep.bitrateInKbit) ? rep.bitrateInKbit * 1e3 : void 0);
46
+ const rendition = videoTrack.addRendition(rep.id, rep.width, rep.height, rep.mimeType ?? rep.codec, bitrate);
47
+ rendition.id = rep.id;
48
+ });
49
+ this.videoRenditions.addEventListener("change", () => {
50
+ const selected = this.videoRenditions[this.videoRenditions.selectedIndex];
51
+ if (selected == null ? void 0 : selected.id) {
52
+ this.api.updateSettings({ streaming: { abr: { autoSwitchBitrate: { video: false } } } });
53
+ this.api.setRepresentationForTypeById("video", selected.id, true);
54
+ } else {
55
+ this.api.updateSettings({ streaming: { abr: { autoSwitchBitrate: { video: true } } } });
56
+ }
57
+ });
58
+ });
59
+ }
60
+ }
61
+ if (globalThis.customElements && !globalThis.customElements.get("dash-video")) {
62
+ globalThis.customElements.define("dash-video", DashVideoElement);
63
+ }
64
+ var dash_video_element_default = DashVideoElement;
65
+
66
+
67
+
68
+ }),
69
+ "./node_modules/dash-video-element/dist/react.js": (function (__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
70
+ __webpack_require__.r(__webpack_exports__);
71
+ __webpack_require__.d(__webpack_exports__, {
72
+ "default": () => (react_default)
73
+ });
74
+ /* ESM import */var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/react/index.js");
75
+ /* ESM import */var _dash_video_element_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/dash-video-element/dist/dash-video-element.js");
76
+ "use client";
77
+
78
+ // dist/react.ts
79
+
80
+
81
+
82
+ // ../../node_modules/ce-la-react/dist/ce-la-react.js
83
+ var reservedReactProps = /* @__PURE__ */ new Set([
84
+ "style",
85
+ "children",
86
+ "ref",
87
+ "key",
88
+ "suppressContentEditableWarning",
89
+ "suppressHydrationWarning",
90
+ "dangerouslySetInnerHTML"
91
+ ]);
92
+ var reactPropToAttrNameMap = {
93
+ className: "class",
94
+ htmlFor: "for"
95
+ };
96
+ function defaultToAttributeName(propName) {
97
+ return propName.toLowerCase();
98
+ }
99
+ function defaultToAttributeValue(propValue) {
100
+ if (typeof propValue === "boolean") return propValue ? "" : void 0;
101
+ if (typeof propValue === "function") return void 0;
102
+ if (typeof propValue === "object" && propValue !== null) return void 0;
103
+ return propValue;
104
+ }
105
+ function createComponent({
106
+ react: React2,
107
+ tagName,
108
+ elementClass,
109
+ events,
110
+ displayName,
111
+ defaultProps,
112
+ toAttributeName = defaultToAttributeName,
113
+ toAttributeValue = defaultToAttributeValue
114
+ }) {
115
+ const IS_REACT_19_OR_NEWER = Number.parseInt(React2.version) >= 19;
116
+ const ReactComponent = React2.forwardRef((props, ref) => {
117
+ var _a, _b;
118
+ const elementRef = React2.useRef(null);
119
+ const prevElemPropsRef = React2.useRef(/* @__PURE__ */ new Map());
120
+ const eventProps = {};
121
+ const attrs = {};
122
+ const reactProps = {};
123
+ const elementProps = {};
124
+ for (const [k, v] of Object.entries(props)) {
125
+ if (reservedReactProps.has(k)) {
126
+ reactProps[k] = v;
127
+ continue;
128
+ }
129
+ const attrName = toAttributeName(reactPropToAttrNameMap[k] ?? k);
130
+ 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))) {
131
+ elementProps[k] = v;
132
+ continue;
133
+ }
134
+ if (k.startsWith("on")) {
135
+ eventProps[k] = v;
136
+ continue;
137
+ }
138
+ const attrValue = toAttributeValue(v);
139
+ if (attrName && attrValue != null) {
140
+ attrs[attrName] = String(attrValue);
141
+ if (!IS_REACT_19_OR_NEWER) {
142
+ reactProps[attrName] = attrValue;
143
+ }
144
+ }
145
+ if (attrName && IS_REACT_19_OR_NEWER) {
146
+ const attrValueFromDefault = defaultToAttributeValue(v);
147
+ if (attrValue !== attrValueFromDefault) {
148
+ reactProps[attrName] = attrValue;
149
+ } else {
150
+ reactProps[attrName] = v;
151
+ }
152
+ }
153
+ }
154
+ if (typeof window !== "undefined") {
155
+ for (const propName in eventProps) {
156
+ const callback = eventProps[propName];
157
+ const useCapture = propName.endsWith("Capture");
158
+ const eventName = ((events == null ? void 0 : events[propName]) ?? propName.slice(2).toLowerCase()).slice(
159
+ 0,
160
+ useCapture ? -7 : void 0
161
+ );
162
+ React2.useLayoutEffect(() => {
163
+ const eventTarget = elementRef == null ? void 0 : elementRef.current;
164
+ if (!eventTarget || typeof callback !== "function") return;
165
+ eventTarget.addEventListener(eventName, callback, useCapture);
166
+ return () => {
167
+ eventTarget.removeEventListener(eventName, callback, useCapture);
168
+ };
169
+ }, [elementRef == null ? void 0 : elementRef.current, callback]);
170
+ }
171
+ React2.useLayoutEffect(() => {
172
+ if (elementRef.current === null) return;
173
+ const newElemProps = /* @__PURE__ */ new Map();
174
+ for (const key in elementProps) {
175
+ setProperty(elementRef.current, key, elementProps[key]);
176
+ prevElemPropsRef.current.delete(key);
177
+ newElemProps.set(key, elementProps[key]);
178
+ }
179
+ for (const [key, _value] of prevElemPropsRef.current) {
180
+ setProperty(elementRef.current, key, void 0);
181
+ }
182
+ prevElemPropsRef.current = newElemProps;
183
+ });
184
+ }
185
+ if (typeof window === "undefined" && (elementClass == null ? void 0 : elementClass.getTemplateHTML) && (elementClass == null ? void 0 : elementClass.shadowRootOptions)) {
186
+ const { mode, delegatesFocus } = elementClass.shadowRootOptions;
187
+ const templateShadowRoot = React2.createElement("template", {
188
+ shadowrootmode: mode,
189
+ shadowrootdelegatesfocus: delegatesFocus,
190
+ dangerouslySetInnerHTML: {
191
+ __html: elementClass.getTemplateHTML(attrs, props)
192
+ }
193
+ });
194
+ reactProps.children = [templateShadowRoot, reactProps.children];
195
+ }
196
+ return React2.createElement(tagName, {
197
+ ...defaultProps,
198
+ ...reactProps,
199
+ ref: React2.useCallback(
200
+ (node) => {
201
+ elementRef.current = node;
202
+ if (typeof ref === "function") {
203
+ ref(node);
204
+ } else if (ref !== null) {
205
+ ref.current = node;
206
+ }
207
+ },
208
+ [ref]
209
+ )
210
+ });
211
+ });
212
+ ReactComponent.displayName = displayName ?? elementClass.name;
213
+ return ReactComponent;
214
+ }
215
+ function setProperty(node, name, value) {
216
+ var _a;
217
+ node[name] = value;
218
+ if (value == null && name in (((_a = globalThis.HTMLElement) == null ? void 0 : _a.prototype) ?? {})) {
219
+ node.removeAttribute(name);
220
+ }
221
+ }
222
+
223
+ // dist/react.ts
224
+ var react_default = createComponent({
225
+ react: react__WEBPACK_IMPORTED_MODULE_0__,
226
+ tagName: "dash-video",
227
+ elementClass: _dash_video_element_js__WEBPACK_IMPORTED_MODULE_1__["default"],
228
+ toAttributeName(propName) {
229
+ if (propName === "muted") return "";
230
+ if (propName === "defaultMuted") return "muted";
231
+ return defaultToAttributeName(propName);
232
+ }
233
+ });
234
+
235
+ /*! Bundled license information:
236
+
237
+ ce-la-react/dist/ce-la-react.js:
238
+ (**
239
+ * @license
240
+ * Copyright 2018 Google LLC
241
+ * SPDX-License-Identifier: BSD-3-Clause
242
+ *
243
+ * Modified version of `@lit/react` for vanilla custom elements with support for SSR.
244
+ *)
245
+ */
246
+
247
+
248
+ }),
249
+
250
+ }]);
251
+ //# sourceMappingURL=reactPlayerDash.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"static/js/async/reactPlayerDash.js","sources":["/Users/kirubakaran.r/Documents/projects/hub/components/waterford_library/node_modules/dash-video-element/dist/dash-video-element.js","/Users/kirubakaran.r/Documents/projects/hub/components/waterford_library/node_modules/dash-video-element/dist/react.js"],"sourcesContent":["import { CustomVideoElement } from \"custom-media-element\";\nimport { MediaTracksMixin } from \"media-tracks\";\nclass DashVideoElement extends MediaTracksMixin(CustomVideoElement) {\n static shadowRootOptions = { ...CustomVideoElement.shadowRootOptions };\n static getTemplateHTML = (attrs) => {\n const { src, ...rest } = attrs;\n return CustomVideoElement.getTemplateHTML(rest);\n };\n #apiInit;\n attributeChangedCallback(attrName, oldValue, newValue) {\n if (attrName !== \"src\") {\n super.attributeChangedCallback(attrName, oldValue, newValue);\n }\n if (attrName === \"src\" && oldValue != newValue) {\n this.load();\n }\n }\n async load() {\n if (this.#apiInit) {\n this.api.attachSource(this.src);\n return;\n }\n this.#apiInit = true;\n const Dash = await import(\"dashjs\");\n this.api = Dash.MediaPlayer().create();\n this.api.initialize(this.nativeEl, this.src, this.autoplay);\n this.api.on(Dash.MediaPlayer.events.STREAM_INITIALIZED, () => {\n const bitrateList = this.api.getRepresentationsByType(\"video\");\n let videoTrack = this.videoTracks.getTrackById(\"main\");\n if (!videoTrack) {\n videoTrack = this.addVideoTrack(\"main\");\n videoTrack.id = \"main\";\n videoTrack.selected = true;\n }\n bitrateList.forEach((rep) => {\n const bitrate = rep.bandwidth ?? rep.bitrate ?? (Number.isFinite(rep.bitrateInKbit) ? rep.bitrateInKbit * 1e3 : void 0);\n const rendition = videoTrack.addRendition(rep.id, rep.width, rep.height, rep.mimeType ?? rep.codec, bitrate);\n rendition.id = rep.id;\n });\n this.videoRenditions.addEventListener(\"change\", () => {\n const selected = this.videoRenditions[this.videoRenditions.selectedIndex];\n if (selected == null ? void 0 : selected.id) {\n this.api.updateSettings({ streaming: { abr: { autoSwitchBitrate: { video: false } } } });\n this.api.setRepresentationForTypeById(\"video\", selected.id, true);\n } else {\n this.api.updateSettings({ streaming: { abr: { autoSwitchBitrate: { video: true } } } });\n }\n });\n });\n }\n}\nif (globalThis.customElements && !globalThis.customElements.get(\"dash-video\")) {\n globalThis.customElements.define(\"dash-video\", DashVideoElement);\n}\nvar dash_video_element_default = DashVideoElement;\nexport {\n dash_video_element_default as default\n};\n","\"use client\";\n\n// dist/react.ts\nimport React from \"react\";\nimport CustomMediaElement from \"./dash-video-element.js\";\n\n// ../../node_modules/ce-la-react/dist/ce-la-react.js\nvar reservedReactProps = /* @__PURE__ */ new Set([\n \"style\",\n \"children\",\n \"ref\",\n \"key\",\n \"suppressContentEditableWarning\",\n \"suppressHydrationWarning\",\n \"dangerouslySetInnerHTML\"\n]);\nvar reactPropToAttrNameMap = {\n className: \"class\",\n htmlFor: \"for\"\n};\nfunction defaultToAttributeName(propName) {\n return propName.toLowerCase();\n}\nfunction defaultToAttributeValue(propValue) {\n if (typeof propValue === \"boolean\") return propValue ? \"\" : void 0;\n if (typeof propValue === \"function\") return void 0;\n if (typeof propValue === \"object\" && propValue !== null) return void 0;\n return propValue;\n}\nfunction createComponent({\n react: React2,\n tagName,\n elementClass,\n events,\n displayName,\n defaultProps,\n toAttributeName = defaultToAttributeName,\n toAttributeValue = defaultToAttributeValue\n}) {\n const IS_REACT_19_OR_NEWER = Number.parseInt(React2.version) >= 19;\n const ReactComponent = React2.forwardRef((props, ref) => {\n var _a, _b;\n const elementRef = React2.useRef(null);\n const prevElemPropsRef = React2.useRef(/* @__PURE__ */ new Map());\n const eventProps = {};\n const attrs = {};\n const reactProps = {};\n const elementProps = {};\n for (const [k, v] of Object.entries(props)) {\n if (reservedReactProps.has(k)) {\n reactProps[k] = v;\n continue;\n }\n const attrName = toAttributeName(reactPropToAttrNameMap[k] ?? k);\n 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))) {\n elementProps[k] = v;\n continue;\n }\n if (k.startsWith(\"on\")) {\n eventProps[k] = v;\n continue;\n }\n const attrValue = toAttributeValue(v);\n if (attrName && attrValue != null) {\n attrs[attrName] = String(attrValue);\n if (!IS_REACT_19_OR_NEWER) {\n reactProps[attrName] = attrValue;\n }\n }\n if (attrName && IS_REACT_19_OR_NEWER) {\n const attrValueFromDefault = defaultToAttributeValue(v);\n if (attrValue !== attrValueFromDefault) {\n reactProps[attrName] = attrValue;\n } else {\n reactProps[attrName] = v;\n }\n }\n }\n if (typeof window !== \"undefined\") {\n for (const propName in eventProps) {\n const callback = eventProps[propName];\n const useCapture = propName.endsWith(\"Capture\");\n const eventName = ((events == null ? void 0 : events[propName]) ?? propName.slice(2).toLowerCase()).slice(\n 0,\n useCapture ? -7 : void 0\n );\n React2.useLayoutEffect(() => {\n const eventTarget = elementRef == null ? void 0 : elementRef.current;\n if (!eventTarget || typeof callback !== \"function\") return;\n eventTarget.addEventListener(eventName, callback, useCapture);\n return () => {\n eventTarget.removeEventListener(eventName, callback, useCapture);\n };\n }, [elementRef == null ? void 0 : elementRef.current, callback]);\n }\n React2.useLayoutEffect(() => {\n if (elementRef.current === null) return;\n const newElemProps = /* @__PURE__ */ new Map();\n for (const key in elementProps) {\n setProperty(elementRef.current, key, elementProps[key]);\n prevElemPropsRef.current.delete(key);\n newElemProps.set(key, elementProps[key]);\n }\n for (const [key, _value] of prevElemPropsRef.current) {\n setProperty(elementRef.current, key, void 0);\n }\n prevElemPropsRef.current = newElemProps;\n });\n }\n if (typeof window === \"undefined\" && (elementClass == null ? void 0 : elementClass.getTemplateHTML) && (elementClass == null ? void 0 : elementClass.shadowRootOptions)) {\n const { mode, delegatesFocus } = elementClass.shadowRootOptions;\n const templateShadowRoot = React2.createElement(\"template\", {\n shadowrootmode: mode,\n shadowrootdelegatesfocus: delegatesFocus,\n dangerouslySetInnerHTML: {\n __html: elementClass.getTemplateHTML(attrs, props)\n }\n });\n reactProps.children = [templateShadowRoot, reactProps.children];\n }\n return React2.createElement(tagName, {\n ...defaultProps,\n ...reactProps,\n ref: React2.useCallback(\n (node) => {\n elementRef.current = node;\n if (typeof ref === \"function\") {\n ref(node);\n } else if (ref !== null) {\n ref.current = node;\n }\n },\n [ref]\n )\n });\n });\n ReactComponent.displayName = displayName ?? elementClass.name;\n return ReactComponent;\n}\nfunction setProperty(node, name, value) {\n var _a;\n node[name] = value;\n if (value == null && name in (((_a = globalThis.HTMLElement) == null ? void 0 : _a.prototype) ?? {})) {\n node.removeAttribute(name);\n }\n}\n\n// dist/react.ts\nvar react_default = createComponent({\n react: React,\n tagName: \"dash-video\",\n elementClass: CustomMediaElement,\n toAttributeName(propName) {\n if (propName === \"muted\") return \"\";\n if (propName === \"defaultMuted\") return \"muted\";\n return defaultToAttributeName(propName);\n }\n});\nexport {\n react_default as default\n};\n/*! Bundled license information:\n\nce-la-react/dist/ce-la-react.js:\n (**\n * @license\n * Copyright 2018 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n *\n * Modified version of `@lit/react` for vanilla custom elements with support for SSR.\n *)\n*/\n"],"names":[],"mappings":";;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAGA;;;;;;;;;;;ACzDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA"}