suada-components 1.0.2504170948 → 1.1.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.
- package/dist/components/BreadCrumb/Breadcrumb.js.map +1 -1
- package/dist/components/Button/Button.interface.d.ts +1 -0
- package/dist/components/DailyMotion-B2EpqlJO.esm.js +178 -0
- package/dist/components/DailyMotion-BYA5rhY5.js +180 -0
- package/dist/components/Facebook-DBxSErS8.esm.js +179 -0
- package/dist/components/Facebook-DJMdBwGM.js +181 -0
- package/dist/components/FilePlayer-DLiC_Doh.esm.js +408 -0
- package/dist/components/FilePlayer-DRqq2T-L.js +410 -0
- package/dist/components/Kaltura-BAvKhQp8.esm.js +176 -0
- package/dist/components/Kaltura-DFK3UxTc.js +178 -0
- package/dist/components/Mixcloud-C0S4Txcb.esm.js +164 -0
- package/dist/components/Mixcloud-CnG6kbdi.js +166 -0
- package/dist/components/Mux-BCS9rYAf.esm.js +264 -0
- package/dist/components/Mux-ChXwYRDL.js +266 -0
- package/dist/components/Preview-CPdzmWpt.js +175 -0
- package/dist/components/Preview-MgDcO7wW.esm.js +173 -0
- package/dist/components/SoundCloud-BxxMgfs2.esm.js +181 -0
- package/dist/components/SoundCloud-CcFGRoSv.js +183 -0
- package/dist/components/Streamable-BIBOfZ0w.js +176 -0
- package/dist/components/Streamable-Drn6K8AN.esm.js +174 -0
- package/dist/components/Twitch-CGC2HQMj.esm.js +168 -0
- package/dist/components/Twitch-DoUQRPQR.js +170 -0
- package/dist/components/VideoPlayer/Controls/Controls.d.ts +4 -0
- package/dist/components/VideoPlayer/Controls/Controls.interface.d.ts +32 -0
- package/dist/components/VideoPlayer/Controls/Controls.interface.js +2 -0
- package/dist/components/VideoPlayer/Controls/Controls.interface.js.map +1 -0
- package/dist/components/VideoPlayer/Controls/Controls.js +36 -0
- package/dist/components/VideoPlayer/Controls/Controls.js.map +1 -0
- package/dist/components/VideoPlayer/Controls/Controls.styles.d.ts +16 -0
- package/dist/components/VideoPlayer/Controls/Controls.styles.js +25 -0
- package/dist/components/VideoPlayer/Controls/Controls.styles.js.map +1 -0
- package/dist/components/VideoPlayer/Controls/index.d.ts +1 -0
- package/dist/components/VideoPlayer/Controls/index.js +2 -0
- package/dist/components/VideoPlayer/Controls/index.js.map +1 -0
- package/dist/components/VideoPlayer/PlaybackSpeedMenu.d.ts +4 -0
- package/dist/components/VideoPlayer/PlaybackSpeedMenu.interface.d.ts +18 -0
- package/dist/components/VideoPlayer/PlaybackSpeedMenu.interface.js +2 -0
- package/dist/components/VideoPlayer/PlaybackSpeedMenu.interface.js.map +1 -0
- package/dist/components/VideoPlayer/PlaybackSpeedMenu.js +20 -0
- package/dist/components/VideoPlayer/PlaybackSpeedMenu.js.map +1 -0
- package/dist/components/VideoPlayer/PlaybackSpeedMenu.styles.d.ts +4 -0
- package/dist/components/VideoPlayer/PlaybackSpeedMenu.styles.js +18 -0
- package/dist/components/VideoPlayer/PlaybackSpeedMenu.styles.js.map +1 -0
- package/dist/components/VideoPlayer/Player.d.ts +3 -11
- package/dist/components/VideoPlayer/Player.interface.d.ts +63 -0
- package/dist/components/VideoPlayer/Player.interface.js +2 -0
- package/dist/components/VideoPlayer/Player.interface.js.map +1 -0
- package/dist/components/VideoPlayer/Player.js +82 -97
- package/dist/components/VideoPlayer/Player.js.map +1 -1
- package/dist/components/VideoPlayer/Player.styles.d.ts +8 -0
- package/dist/components/VideoPlayer/Player.styles.js +17 -0
- package/dist/components/VideoPlayer/Player.styles.js.map +1 -0
- package/dist/components/VideoPlayer/VideoPlayer.stories.d.ts +10 -26
- package/dist/components/VideoPlayer/VideoPlayer.stories.js +174 -19
- package/dist/components/VideoPlayer/VideoPlayer.stories.js.map +1 -1
- package/dist/components/VideoPlayer/constants/index.d.ts +2 -0
- package/dist/components/VideoPlayer/constants/index.js +31 -0
- package/dist/components/VideoPlayer/constants/index.js.map +1 -0
- package/dist/components/VideoPlayer/parseVtt.d.ts +6 -0
- package/dist/components/VideoPlayer/parseVtt.js +35 -0
- package/dist/components/VideoPlayer/parseVtt.js.map +1 -0
- package/dist/components/VideoPlayer/timeConversion.d.ts +5 -0
- package/dist/components/VideoPlayer/timeConversion.js +70 -0
- package/dist/components/VideoPlayer/timeConversion.js.map +1 -0
- package/dist/components/VideoPlayer/useDynamicPosition.d.ts +16 -0
- package/dist/components/VideoPlayer/useDynamicPosition.js +50 -0
- package/dist/components/VideoPlayer/useDynamicPosition.js.map +1 -0
- package/dist/components/VideoPlayer/useEventListener.d.ts +3 -0
- package/dist/components/VideoPlayer/useEventListener.js +27 -0
- package/dist/components/VideoPlayer/useEventListener.js.map +1 -0
- package/dist/components/VideoPlayer/useMenuToggle.d.ts +22 -0
- package/dist/components/VideoPlayer/useMenuToggle.js +25 -0
- package/dist/components/VideoPlayer/useMenuToggle.js.map +1 -0
- package/dist/components/VideoPlayer/useOnOutsideClick.d.ts +3 -0
- package/dist/components/VideoPlayer/useOnOutsideClick.js +16 -0
- package/dist/components/VideoPlayer/useOnOutsideClick.js.map +1 -0
- package/dist/components/VideoPlayer/usePlayerControls.d.ts +3 -0
- package/dist/components/VideoPlayer/usePlayerControls.js +330 -0
- package/dist/components/VideoPlayer/usePlayerControls.js.map +1 -0
- package/dist/components/Vidyard-B-jW75yA.esm.js +172 -0
- package/dist/components/Vidyard-If2H-ayj.js +174 -0
- package/dist/components/Vimeo-Cvg3rB5o.esm.js +213 -0
- package/dist/components/Vimeo-hI3cddOi.js +215 -0
- package/dist/components/Wistia-BtYIM6Uo.esm.js +188 -0
- package/dist/components/Wistia-CZwfIsgx.js +190 -0
- package/dist/components/YouTube-D1u9T9FZ.js +260 -0
- package/dist/components/YouTube-vwMwhQ13.esm.js +258 -0
- package/dist/components/components/Button/Button.interface.d.ts +1 -0
- package/dist/components/components/VideoPlayer/Controls/Controls.d.ts +4 -0
- package/dist/components/components/VideoPlayer/Controls/Controls.interface.d.ts +32 -0
- package/dist/components/components/VideoPlayer/Controls/Controls.styles.d.ts +16 -0
- package/dist/components/components/VideoPlayer/Controls/index.d.ts +1 -0
- package/dist/components/components/VideoPlayer/PlaybackSpeedMenu.d.ts +4 -0
- package/dist/components/components/VideoPlayer/PlaybackSpeedMenu.interface.d.ts +18 -0
- package/dist/components/components/VideoPlayer/PlaybackSpeedMenu.styles.d.ts +4 -0
- package/dist/components/components/VideoPlayer/Player.d.ts +3 -11
- package/dist/components/components/VideoPlayer/Player.interface.d.ts +63 -0
- package/dist/components/components/VideoPlayer/Player.styles.d.ts +8 -0
- package/dist/components/components/VideoPlayer/constants/index.d.ts +2 -0
- package/dist/components/components/VideoPlayer/parseVtt.d.ts +6 -0
- package/dist/components/components/VideoPlayer/timeConversion.d.ts +5 -0
- package/dist/components/components/VideoPlayer/useDynamicPosition.d.ts +16 -0
- package/dist/components/components/VideoPlayer/useEventListener.d.ts +3 -0
- package/dist/components/components/VideoPlayer/useMenuToggle.d.ts +22 -0
- package/dist/components/components/VideoPlayer/useOnOutsideClick.d.ts +3 -0
- package/dist/components/components/VideoPlayer/usePlayerControls.d.ts +3 -0
- package/dist/components/icons/Heart.d.ts +7 -0
- package/dist/components/icons/Maximize.d.ts +3 -0
- package/dist/components/icons/Meter.d.ts +3 -0
- package/dist/components/icons/Minimize.d.ts +3 -0
- package/dist/components/icons/Pause.d.ts +3 -0
- package/dist/components/icons/Play.d.ts +3 -0
- package/dist/components/icons/Rewind.d.ts +7 -0
- package/dist/components/icons/Skip.d.ts +8 -0
- package/dist/components/icons/Subtitles.d.ts +7 -0
- package/dist/components/icons/VideoCheckmark.d.ts +3 -0
- package/dist/components/icons/VolumeMute.d.ts +8 -0
- package/dist/components/icons/VolumeUp.d.ts +8 -0
- package/dist/components/icons/index.d.ts +11 -0
- package/dist/components/index-DLzCbCHu.esm.js +94482 -0
- package/dist/components/index-wLnkslO9.js +94536 -0
- package/dist/components/index.esm.js +3 -122501
- package/dist/icons/Heart.d.ts +7 -0
- package/dist/icons/Heart.js +28 -0
- package/dist/icons/Heart.js.map +1 -0
- package/dist/icons/Maximize.d.ts +3 -0
- package/dist/icons/Maximize.js +28 -0
- package/dist/icons/Maximize.js.map +1 -0
- package/dist/icons/Meter.d.ts +3 -0
- package/dist/icons/Meter.js +28 -0
- package/dist/icons/Meter.js.map +1 -0
- package/dist/icons/Minimize.d.ts +3 -0
- package/dist/icons/Minimize.js +28 -0
- package/dist/icons/Minimize.js.map +1 -0
- package/dist/icons/Pause.d.ts +3 -0
- package/dist/icons/Pause.js +28 -0
- package/dist/icons/Pause.js.map +1 -0
- package/dist/icons/Play.d.ts +3 -0
- package/dist/icons/Play.js +28 -0
- package/dist/icons/Play.js.map +1 -0
- package/dist/icons/Rewind.d.ts +7 -0
- package/dist/icons/Rewind.js +28 -0
- package/dist/icons/Rewind.js.map +1 -0
- package/dist/icons/Skip.d.ts +8 -0
- package/dist/icons/Skip.js +28 -0
- package/dist/icons/Skip.js.map +1 -0
- package/dist/icons/Subtitles.d.ts +7 -0
- package/dist/icons/Subtitles.js +28 -0
- package/dist/icons/Subtitles.js.map +1 -0
- package/dist/icons/VideoCheckmark.d.ts +3 -0
- package/dist/icons/VideoCheckmark.js +28 -0
- package/dist/icons/VideoCheckmark.js.map +1 -0
- package/dist/icons/VolumeMute.d.ts +8 -0
- package/dist/icons/VolumeMute.js +28 -0
- package/dist/icons/VolumeMute.js.map +1 -0
- package/dist/icons/VolumeUp.d.ts +8 -0
- package/dist/icons/VolumeUp.js +28 -0
- package/dist/icons/VolumeUp.js.map +1 -0
- package/dist/icons/components/Button/Button.interface.d.ts +1 -0
- package/dist/icons/components/VideoPlayer/Controls/Controls.d.ts +4 -0
- package/dist/icons/components/VideoPlayer/Controls/Controls.interface.d.ts +32 -0
- package/dist/icons/components/VideoPlayer/Controls/Controls.styles.d.ts +16 -0
- package/dist/icons/components/VideoPlayer/Controls/index.d.ts +1 -0
- package/dist/icons/components/VideoPlayer/PlaybackSpeedMenu.d.ts +4 -0
- package/dist/icons/components/VideoPlayer/PlaybackSpeedMenu.interface.d.ts +18 -0
- package/dist/icons/components/VideoPlayer/PlaybackSpeedMenu.styles.d.ts +4 -0
- package/dist/icons/components/VideoPlayer/Player.d.ts +3 -11
- package/dist/icons/components/VideoPlayer/Player.interface.d.ts +63 -0
- package/dist/icons/components/VideoPlayer/Player.styles.d.ts +8 -0
- package/dist/icons/components/VideoPlayer/constants/index.d.ts +2 -0
- package/dist/icons/components/VideoPlayer/parseVtt.d.ts +6 -0
- package/dist/icons/components/VideoPlayer/timeConversion.d.ts +5 -0
- package/dist/icons/components/VideoPlayer/useDynamicPosition.d.ts +16 -0
- package/dist/icons/components/VideoPlayer/useEventListener.d.ts +3 -0
- package/dist/icons/components/VideoPlayer/useMenuToggle.d.ts +22 -0
- package/dist/icons/components/VideoPlayer/useOnOutsideClick.d.ts +3 -0
- package/dist/icons/components/VideoPlayer/usePlayerControls.d.ts +3 -0
- package/dist/icons/icons/Heart.d.ts +7 -0
- package/dist/icons/icons/Maximize.d.ts +3 -0
- package/dist/icons/icons/Meter.d.ts +3 -0
- package/dist/icons/icons/Minimize.d.ts +3 -0
- package/dist/icons/icons/Pause.d.ts +3 -0
- package/dist/icons/icons/Play.d.ts +3 -0
- package/dist/icons/icons/Rewind.d.ts +7 -0
- package/dist/icons/icons/Skip.d.ts +8 -0
- package/dist/icons/icons/Subtitles.d.ts +7 -0
- package/dist/icons/icons/VideoCheckmark.d.ts +3 -0
- package/dist/icons/icons/VolumeMute.d.ts +8 -0
- package/dist/icons/icons/VolumeUp.d.ts +8 -0
- package/dist/icons/icons/index.d.ts +11 -0
- package/dist/icons/index.d.ts +11 -0
- package/dist/icons/index.esm.js +308 -1
- package/dist/icons/index.js +11 -0
- package/dist/icons/index.js.map +1 -1
- package/package.json +3 -1
- package/dist/components/VideoPlayer/styled-components.d.ts +0 -9
- package/dist/components/VideoPlayer/styled-components.js +0 -19
- package/dist/components/VideoPlayer/styled-components.js.map +0 -1
- package/dist/components/components/VideoPlayer/styled-components.d.ts +0 -9
- package/dist/icons/components/VideoPlayer/styled-components.d.ts +0 -9
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Breadcrumb.js","sourceRoot":"","sources":["../../../src/components/BreadCrumb/Breadcrumb.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,
|
|
1
|
+
{"version":3,"file":"Breadcrumb.js","sourceRoot":"","sources":["../../../src/components/BreadCrumb/Breadcrumb.tsx"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
import { r as requireUtils, a as requirePatterns, g as getDefaultExportFromCjs } from './index-DLzCbCHu.esm.js';
|
|
2
|
+
import React__default from 'react';
|
|
3
|
+
|
|
4
|
+
function _mergeNamespaces(n, m) {
|
|
5
|
+
m.forEach(function (e) {
|
|
6
|
+
e && typeof e !== 'string' && !Array.isArray(e) && Object.keys(e).forEach(function (k) {
|
|
7
|
+
if (k !== 'default' && !(k in n)) {
|
|
8
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
9
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
10
|
+
enumerable: true,
|
|
11
|
+
get: function () { return e[k]; }
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
});
|
|
15
|
+
});
|
|
16
|
+
return Object.freeze(n);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
var DailyMotion_1;
|
|
20
|
+
var hasRequiredDailyMotion;
|
|
21
|
+
|
|
22
|
+
function requireDailyMotion () {
|
|
23
|
+
if (hasRequiredDailyMotion) return DailyMotion_1;
|
|
24
|
+
hasRequiredDailyMotion = 1;
|
|
25
|
+
var __create = Object.create;
|
|
26
|
+
var __defProp = Object.defineProperty;
|
|
27
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
28
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
29
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
30
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
31
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
32
|
+
var __export = (target, all) => {
|
|
33
|
+
for (var name in all)
|
|
34
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
35
|
+
};
|
|
36
|
+
var __copyProps = (to, from, except, desc) => {
|
|
37
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
38
|
+
for (let key of __getOwnPropNames(from))
|
|
39
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
40
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
41
|
+
}
|
|
42
|
+
return to;
|
|
43
|
+
};
|
|
44
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
45
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
46
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
47
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
48
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
49
|
+
!mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
50
|
+
mod
|
|
51
|
+
));
|
|
52
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
53
|
+
var __publicField = (obj, key, value) => {
|
|
54
|
+
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
55
|
+
return value;
|
|
56
|
+
};
|
|
57
|
+
var DailyMotion_exports = {};
|
|
58
|
+
__export(DailyMotion_exports, {
|
|
59
|
+
default: () => DailyMotion
|
|
60
|
+
});
|
|
61
|
+
DailyMotion_1 = __toCommonJS(DailyMotion_exports);
|
|
62
|
+
var import_react = __toESM(React__default);
|
|
63
|
+
var import_utils = /*@__PURE__*/ requireUtils();
|
|
64
|
+
var import_patterns = /*@__PURE__*/ requirePatterns();
|
|
65
|
+
const SDK_URL = "https://api.dmcdn.net/all.js";
|
|
66
|
+
const SDK_GLOBAL = "DM";
|
|
67
|
+
const SDK_GLOBAL_READY = "dmAsyncInit";
|
|
68
|
+
class DailyMotion extends import_react.Component {
|
|
69
|
+
constructor() {
|
|
70
|
+
super(...arguments);
|
|
71
|
+
__publicField(this, "callPlayer", import_utils.callPlayer);
|
|
72
|
+
__publicField(this, "onDurationChange", () => {
|
|
73
|
+
const duration = this.getDuration();
|
|
74
|
+
this.props.onDuration(duration);
|
|
75
|
+
});
|
|
76
|
+
__publicField(this, "mute", () => {
|
|
77
|
+
this.callPlayer("setMuted", true);
|
|
78
|
+
});
|
|
79
|
+
__publicField(this, "unmute", () => {
|
|
80
|
+
this.callPlayer("setMuted", false);
|
|
81
|
+
});
|
|
82
|
+
__publicField(this, "ref", (container) => {
|
|
83
|
+
this.container = container;
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
componentDidMount() {
|
|
87
|
+
this.props.onMount && this.props.onMount(this);
|
|
88
|
+
}
|
|
89
|
+
load(url) {
|
|
90
|
+
const { controls, config, onError, playing } = this.props;
|
|
91
|
+
const [, id] = url.match(import_patterns.MATCH_URL_DAILYMOTION);
|
|
92
|
+
if (this.player) {
|
|
93
|
+
this.player.load(id, {
|
|
94
|
+
start: (0, import_utils.parseStartTime)(url),
|
|
95
|
+
autoplay: playing
|
|
96
|
+
});
|
|
97
|
+
return;
|
|
98
|
+
}
|
|
99
|
+
(0, import_utils.getSDK)(SDK_URL, SDK_GLOBAL, SDK_GLOBAL_READY, (DM) => DM.player).then((DM) => {
|
|
100
|
+
if (!this.container)
|
|
101
|
+
return;
|
|
102
|
+
const Player = DM.player;
|
|
103
|
+
this.player = new Player(this.container, {
|
|
104
|
+
width: "100%",
|
|
105
|
+
height: "100%",
|
|
106
|
+
video: id,
|
|
107
|
+
params: {
|
|
108
|
+
controls,
|
|
109
|
+
autoplay: this.props.playing,
|
|
110
|
+
mute: this.props.muted,
|
|
111
|
+
start: (0, import_utils.parseStartTime)(url),
|
|
112
|
+
origin: window.location.origin,
|
|
113
|
+
...config.params
|
|
114
|
+
},
|
|
115
|
+
events: {
|
|
116
|
+
apiready: this.props.onReady,
|
|
117
|
+
seeked: () => this.props.onSeek(this.player.currentTime),
|
|
118
|
+
video_end: this.props.onEnded,
|
|
119
|
+
durationchange: this.onDurationChange,
|
|
120
|
+
pause: this.props.onPause,
|
|
121
|
+
playing: this.props.onPlay,
|
|
122
|
+
waiting: this.props.onBuffer,
|
|
123
|
+
error: (event) => onError(event)
|
|
124
|
+
}
|
|
125
|
+
});
|
|
126
|
+
}, onError);
|
|
127
|
+
}
|
|
128
|
+
play() {
|
|
129
|
+
this.callPlayer("play");
|
|
130
|
+
}
|
|
131
|
+
pause() {
|
|
132
|
+
this.callPlayer("pause");
|
|
133
|
+
}
|
|
134
|
+
stop() {
|
|
135
|
+
}
|
|
136
|
+
seekTo(seconds, keepPlaying = true) {
|
|
137
|
+
this.callPlayer("seek", seconds);
|
|
138
|
+
if (!keepPlaying) {
|
|
139
|
+
this.pause();
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
setVolume(fraction) {
|
|
143
|
+
this.callPlayer("setVolume", fraction);
|
|
144
|
+
}
|
|
145
|
+
getDuration() {
|
|
146
|
+
return this.player.duration || null;
|
|
147
|
+
}
|
|
148
|
+
getCurrentTime() {
|
|
149
|
+
return this.player.currentTime;
|
|
150
|
+
}
|
|
151
|
+
getSecondsLoaded() {
|
|
152
|
+
return this.player.bufferedTime;
|
|
153
|
+
}
|
|
154
|
+
render() {
|
|
155
|
+
const { display } = this.props;
|
|
156
|
+
const style = {
|
|
157
|
+
width: "100%",
|
|
158
|
+
height: "100%",
|
|
159
|
+
display
|
|
160
|
+
};
|
|
161
|
+
return /* @__PURE__ */ import_react.default.createElement("div", { style }, /* @__PURE__ */ import_react.default.createElement("div", { ref: this.ref }));
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
__publicField(DailyMotion, "displayName", "DailyMotion");
|
|
165
|
+
__publicField(DailyMotion, "canPlay", import_patterns.canPlay.dailymotion);
|
|
166
|
+
__publicField(DailyMotion, "loopOnEnded", true);
|
|
167
|
+
return DailyMotion_1;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
var DailyMotionExports = /*@__PURE__*/ requireDailyMotion();
|
|
171
|
+
var DailyMotion = /*@__PURE__*/getDefaultExportFromCjs(DailyMotionExports);
|
|
172
|
+
|
|
173
|
+
var DailyMotion$1 = /*#__PURE__*/_mergeNamespaces({
|
|
174
|
+
__proto__: null,
|
|
175
|
+
default: DailyMotion
|
|
176
|
+
}, [DailyMotionExports]);
|
|
177
|
+
|
|
178
|
+
export { DailyMotion$1 as D };
|
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var index = require('./index-wLnkslO9.js');
|
|
4
|
+
var React = require('react');
|
|
5
|
+
|
|
6
|
+
function _mergeNamespaces(n, m) {
|
|
7
|
+
m.forEach(function (e) {
|
|
8
|
+
e && typeof e !== 'string' && !Array.isArray(e) && Object.keys(e).forEach(function (k) {
|
|
9
|
+
if (k !== 'default' && !(k in n)) {
|
|
10
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
11
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
12
|
+
enumerable: true,
|
|
13
|
+
get: function () { return e[k]; }
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
});
|
|
18
|
+
return Object.freeze(n);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
var DailyMotion_1;
|
|
22
|
+
var hasRequiredDailyMotion;
|
|
23
|
+
|
|
24
|
+
function requireDailyMotion () {
|
|
25
|
+
if (hasRequiredDailyMotion) return DailyMotion_1;
|
|
26
|
+
hasRequiredDailyMotion = 1;
|
|
27
|
+
var __create = Object.create;
|
|
28
|
+
var __defProp = Object.defineProperty;
|
|
29
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
30
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
31
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
32
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
33
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
34
|
+
var __export = (target, all) => {
|
|
35
|
+
for (var name in all)
|
|
36
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
37
|
+
};
|
|
38
|
+
var __copyProps = (to, from, except, desc) => {
|
|
39
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
40
|
+
for (let key of __getOwnPropNames(from))
|
|
41
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
42
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
43
|
+
}
|
|
44
|
+
return to;
|
|
45
|
+
};
|
|
46
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
47
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
48
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
49
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
50
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
51
|
+
!mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
52
|
+
mod
|
|
53
|
+
));
|
|
54
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
55
|
+
var __publicField = (obj, key, value) => {
|
|
56
|
+
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
57
|
+
return value;
|
|
58
|
+
};
|
|
59
|
+
var DailyMotion_exports = {};
|
|
60
|
+
__export(DailyMotion_exports, {
|
|
61
|
+
default: () => DailyMotion
|
|
62
|
+
});
|
|
63
|
+
DailyMotion_1 = __toCommonJS(DailyMotion_exports);
|
|
64
|
+
var import_react = __toESM(React);
|
|
65
|
+
var import_utils = /*@__PURE__*/ index.requireUtils();
|
|
66
|
+
var import_patterns = /*@__PURE__*/ index.requirePatterns();
|
|
67
|
+
const SDK_URL = "https://api.dmcdn.net/all.js";
|
|
68
|
+
const SDK_GLOBAL = "DM";
|
|
69
|
+
const SDK_GLOBAL_READY = "dmAsyncInit";
|
|
70
|
+
class DailyMotion extends import_react.Component {
|
|
71
|
+
constructor() {
|
|
72
|
+
super(...arguments);
|
|
73
|
+
__publicField(this, "callPlayer", import_utils.callPlayer);
|
|
74
|
+
__publicField(this, "onDurationChange", () => {
|
|
75
|
+
const duration = this.getDuration();
|
|
76
|
+
this.props.onDuration(duration);
|
|
77
|
+
});
|
|
78
|
+
__publicField(this, "mute", () => {
|
|
79
|
+
this.callPlayer("setMuted", true);
|
|
80
|
+
});
|
|
81
|
+
__publicField(this, "unmute", () => {
|
|
82
|
+
this.callPlayer("setMuted", false);
|
|
83
|
+
});
|
|
84
|
+
__publicField(this, "ref", (container) => {
|
|
85
|
+
this.container = container;
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
componentDidMount() {
|
|
89
|
+
this.props.onMount && this.props.onMount(this);
|
|
90
|
+
}
|
|
91
|
+
load(url) {
|
|
92
|
+
const { controls, config, onError, playing } = this.props;
|
|
93
|
+
const [, id] = url.match(import_patterns.MATCH_URL_DAILYMOTION);
|
|
94
|
+
if (this.player) {
|
|
95
|
+
this.player.load(id, {
|
|
96
|
+
start: (0, import_utils.parseStartTime)(url),
|
|
97
|
+
autoplay: playing
|
|
98
|
+
});
|
|
99
|
+
return;
|
|
100
|
+
}
|
|
101
|
+
(0, import_utils.getSDK)(SDK_URL, SDK_GLOBAL, SDK_GLOBAL_READY, (DM) => DM.player).then((DM) => {
|
|
102
|
+
if (!this.container)
|
|
103
|
+
return;
|
|
104
|
+
const Player = DM.player;
|
|
105
|
+
this.player = new Player(this.container, {
|
|
106
|
+
width: "100%",
|
|
107
|
+
height: "100%",
|
|
108
|
+
video: id,
|
|
109
|
+
params: {
|
|
110
|
+
controls,
|
|
111
|
+
autoplay: this.props.playing,
|
|
112
|
+
mute: this.props.muted,
|
|
113
|
+
start: (0, import_utils.parseStartTime)(url),
|
|
114
|
+
origin: window.location.origin,
|
|
115
|
+
...config.params
|
|
116
|
+
},
|
|
117
|
+
events: {
|
|
118
|
+
apiready: this.props.onReady,
|
|
119
|
+
seeked: () => this.props.onSeek(this.player.currentTime),
|
|
120
|
+
video_end: this.props.onEnded,
|
|
121
|
+
durationchange: this.onDurationChange,
|
|
122
|
+
pause: this.props.onPause,
|
|
123
|
+
playing: this.props.onPlay,
|
|
124
|
+
waiting: this.props.onBuffer,
|
|
125
|
+
error: (event) => onError(event)
|
|
126
|
+
}
|
|
127
|
+
});
|
|
128
|
+
}, onError);
|
|
129
|
+
}
|
|
130
|
+
play() {
|
|
131
|
+
this.callPlayer("play");
|
|
132
|
+
}
|
|
133
|
+
pause() {
|
|
134
|
+
this.callPlayer("pause");
|
|
135
|
+
}
|
|
136
|
+
stop() {
|
|
137
|
+
}
|
|
138
|
+
seekTo(seconds, keepPlaying = true) {
|
|
139
|
+
this.callPlayer("seek", seconds);
|
|
140
|
+
if (!keepPlaying) {
|
|
141
|
+
this.pause();
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
setVolume(fraction) {
|
|
145
|
+
this.callPlayer("setVolume", fraction);
|
|
146
|
+
}
|
|
147
|
+
getDuration() {
|
|
148
|
+
return this.player.duration || null;
|
|
149
|
+
}
|
|
150
|
+
getCurrentTime() {
|
|
151
|
+
return this.player.currentTime;
|
|
152
|
+
}
|
|
153
|
+
getSecondsLoaded() {
|
|
154
|
+
return this.player.bufferedTime;
|
|
155
|
+
}
|
|
156
|
+
render() {
|
|
157
|
+
const { display } = this.props;
|
|
158
|
+
const style = {
|
|
159
|
+
width: "100%",
|
|
160
|
+
height: "100%",
|
|
161
|
+
display
|
|
162
|
+
};
|
|
163
|
+
return /* @__PURE__ */ import_react.default.createElement("div", { style }, /* @__PURE__ */ import_react.default.createElement("div", { ref: this.ref }));
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
__publicField(DailyMotion, "displayName", "DailyMotion");
|
|
167
|
+
__publicField(DailyMotion, "canPlay", import_patterns.canPlay.dailymotion);
|
|
168
|
+
__publicField(DailyMotion, "loopOnEnded", true);
|
|
169
|
+
return DailyMotion_1;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
var DailyMotionExports = /*@__PURE__*/ requireDailyMotion();
|
|
173
|
+
var DailyMotion = /*@__PURE__*/index.getDefaultExportFromCjs(DailyMotionExports);
|
|
174
|
+
|
|
175
|
+
var DailyMotion$1 = /*#__PURE__*/_mergeNamespaces({
|
|
176
|
+
__proto__: null,
|
|
177
|
+
default: DailyMotion
|
|
178
|
+
}, [DailyMotionExports]);
|
|
179
|
+
|
|
180
|
+
exports.DailyMotion = DailyMotion$1;
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
import { r as requireUtils, a as requirePatterns, g as getDefaultExportFromCjs } from './index-DLzCbCHu.esm.js';
|
|
2
|
+
import React__default from 'react';
|
|
3
|
+
|
|
4
|
+
function _mergeNamespaces(n, m) {
|
|
5
|
+
m.forEach(function (e) {
|
|
6
|
+
e && typeof e !== 'string' && !Array.isArray(e) && Object.keys(e).forEach(function (k) {
|
|
7
|
+
if (k !== 'default' && !(k in n)) {
|
|
8
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
9
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
10
|
+
enumerable: true,
|
|
11
|
+
get: function () { return e[k]; }
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
});
|
|
15
|
+
});
|
|
16
|
+
return Object.freeze(n);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
var Facebook_1;
|
|
20
|
+
var hasRequiredFacebook;
|
|
21
|
+
|
|
22
|
+
function requireFacebook () {
|
|
23
|
+
if (hasRequiredFacebook) return Facebook_1;
|
|
24
|
+
hasRequiredFacebook = 1;
|
|
25
|
+
var __create = Object.create;
|
|
26
|
+
var __defProp = Object.defineProperty;
|
|
27
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
28
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
29
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
30
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
31
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
32
|
+
var __export = (target, all) => {
|
|
33
|
+
for (var name in all)
|
|
34
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
35
|
+
};
|
|
36
|
+
var __copyProps = (to, from, except, desc) => {
|
|
37
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
38
|
+
for (let key of __getOwnPropNames(from))
|
|
39
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
40
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
41
|
+
}
|
|
42
|
+
return to;
|
|
43
|
+
};
|
|
44
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
45
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
46
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
47
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
48
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
49
|
+
!mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
50
|
+
mod
|
|
51
|
+
));
|
|
52
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
53
|
+
var __publicField = (obj, key, value) => {
|
|
54
|
+
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
55
|
+
return value;
|
|
56
|
+
};
|
|
57
|
+
var Facebook_exports = {};
|
|
58
|
+
__export(Facebook_exports, {
|
|
59
|
+
default: () => Facebook
|
|
60
|
+
});
|
|
61
|
+
Facebook_1 = __toCommonJS(Facebook_exports);
|
|
62
|
+
var import_react = __toESM(React__default);
|
|
63
|
+
var import_utils = /*@__PURE__*/ requireUtils();
|
|
64
|
+
var import_patterns = /*@__PURE__*/ requirePatterns();
|
|
65
|
+
const SDK_URL = "https://connect.facebook.net/en_US/sdk.js";
|
|
66
|
+
const SDK_GLOBAL = "FB";
|
|
67
|
+
const SDK_GLOBAL_READY = "fbAsyncInit";
|
|
68
|
+
const PLAYER_ID_PREFIX = "facebook-player-";
|
|
69
|
+
class Facebook extends import_react.Component {
|
|
70
|
+
constructor() {
|
|
71
|
+
super(...arguments);
|
|
72
|
+
__publicField(this, "callPlayer", import_utils.callPlayer);
|
|
73
|
+
__publicField(this, "playerID", this.props.config.playerId || `${PLAYER_ID_PREFIX}${(0, import_utils.randomString)()}`);
|
|
74
|
+
__publicField(this, "mute", () => {
|
|
75
|
+
this.callPlayer("mute");
|
|
76
|
+
});
|
|
77
|
+
__publicField(this, "unmute", () => {
|
|
78
|
+
this.callPlayer("unmute");
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
componentDidMount() {
|
|
82
|
+
this.props.onMount && this.props.onMount(this);
|
|
83
|
+
}
|
|
84
|
+
load(url, isReady) {
|
|
85
|
+
if (isReady) {
|
|
86
|
+
(0, import_utils.getSDK)(SDK_URL, SDK_GLOBAL, SDK_GLOBAL_READY).then((FB) => FB.XFBML.parse());
|
|
87
|
+
return;
|
|
88
|
+
}
|
|
89
|
+
(0, import_utils.getSDK)(SDK_URL, SDK_GLOBAL, SDK_GLOBAL_READY).then((FB) => {
|
|
90
|
+
FB.init({
|
|
91
|
+
appId: this.props.config.appId,
|
|
92
|
+
xfbml: true,
|
|
93
|
+
version: this.props.config.version
|
|
94
|
+
});
|
|
95
|
+
FB.Event.subscribe("xfbml.render", (msg) => {
|
|
96
|
+
this.props.onLoaded();
|
|
97
|
+
});
|
|
98
|
+
FB.Event.subscribe("xfbml.ready", (msg) => {
|
|
99
|
+
if (msg.type === "video" && msg.id === this.playerID) {
|
|
100
|
+
this.player = msg.instance;
|
|
101
|
+
this.player.subscribe("startedPlaying", this.props.onPlay);
|
|
102
|
+
this.player.subscribe("paused", this.props.onPause);
|
|
103
|
+
this.player.subscribe("finishedPlaying", this.props.onEnded);
|
|
104
|
+
this.player.subscribe("startedBuffering", this.props.onBuffer);
|
|
105
|
+
this.player.subscribe("finishedBuffering", this.props.onBufferEnd);
|
|
106
|
+
this.player.subscribe("error", this.props.onError);
|
|
107
|
+
if (this.props.muted) {
|
|
108
|
+
this.callPlayer("mute");
|
|
109
|
+
} else {
|
|
110
|
+
this.callPlayer("unmute");
|
|
111
|
+
}
|
|
112
|
+
this.props.onReady();
|
|
113
|
+
document.getElementById(this.playerID).querySelector("iframe").style.visibility = "visible";
|
|
114
|
+
}
|
|
115
|
+
});
|
|
116
|
+
});
|
|
117
|
+
}
|
|
118
|
+
play() {
|
|
119
|
+
this.callPlayer("play");
|
|
120
|
+
}
|
|
121
|
+
pause() {
|
|
122
|
+
this.callPlayer("pause");
|
|
123
|
+
}
|
|
124
|
+
stop() {
|
|
125
|
+
}
|
|
126
|
+
seekTo(seconds, keepPlaying = true) {
|
|
127
|
+
this.callPlayer("seek", seconds);
|
|
128
|
+
if (!keepPlaying) {
|
|
129
|
+
this.pause();
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
setVolume(fraction) {
|
|
133
|
+
this.callPlayer("setVolume", fraction);
|
|
134
|
+
}
|
|
135
|
+
getDuration() {
|
|
136
|
+
return this.callPlayer("getDuration");
|
|
137
|
+
}
|
|
138
|
+
getCurrentTime() {
|
|
139
|
+
return this.callPlayer("getCurrentPosition");
|
|
140
|
+
}
|
|
141
|
+
getSecondsLoaded() {
|
|
142
|
+
return null;
|
|
143
|
+
}
|
|
144
|
+
render() {
|
|
145
|
+
const { attributes } = this.props.config;
|
|
146
|
+
const style = {
|
|
147
|
+
width: "100%",
|
|
148
|
+
height: "100%"
|
|
149
|
+
};
|
|
150
|
+
return /* @__PURE__ */ import_react.default.createElement(
|
|
151
|
+
"div",
|
|
152
|
+
{
|
|
153
|
+
style,
|
|
154
|
+
id: this.playerID,
|
|
155
|
+
className: "fb-video",
|
|
156
|
+
"data-href": this.props.url,
|
|
157
|
+
"data-autoplay": this.props.playing ? "true" : "false",
|
|
158
|
+
"data-allowfullscreen": "true",
|
|
159
|
+
"data-controls": this.props.controls ? "true" : "false",
|
|
160
|
+
...attributes
|
|
161
|
+
}
|
|
162
|
+
);
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
__publicField(Facebook, "displayName", "Facebook");
|
|
166
|
+
__publicField(Facebook, "canPlay", import_patterns.canPlay.facebook);
|
|
167
|
+
__publicField(Facebook, "loopOnEnded", true);
|
|
168
|
+
return Facebook_1;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
var FacebookExports = /*@__PURE__*/ requireFacebook();
|
|
172
|
+
var Facebook = /*@__PURE__*/getDefaultExportFromCjs(FacebookExports);
|
|
173
|
+
|
|
174
|
+
var Facebook$1 = /*#__PURE__*/_mergeNamespaces({
|
|
175
|
+
__proto__: null,
|
|
176
|
+
default: Facebook
|
|
177
|
+
}, [FacebookExports]);
|
|
178
|
+
|
|
179
|
+
export { Facebook$1 as F };
|