@zync/zync-screnplay-player 0.1.239 → 0.1.241

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.
@@ -0,0 +1,262 @@
1
+ import React from "react";
2
+ import { Easing, interpolate, useCurrentFrame, useVideoConfig } from "remotion";
3
+ import { loadFont } from "@remotion/google-fonts/Kanit";
4
+ import { useOrientationBased } from "../../../hooks/useOrientationBased.js";
5
+ import { useTheme } from "../../hooks/useTheme.js";
6
+ import { getContrastColor } from "../../../helpers/getContrastColor";
7
+ var _loadFont = loadFont("normal", {
8
+ subsets: ["latin"],
9
+ weights: ["400", "500", "600"]
10
+ }),
11
+ fontFamily = _loadFont.fontFamily;
12
+ var clamp = function clamp(value, min, max) {
13
+ return Math.max(min, Math.min(max, value));
14
+ };
15
+ var estimateTextWidth = function estimateTextWidth(text, fontSize) {
16
+ return text.length * fontSize * 0.62;
17
+ };
18
+ var fitSingleLineFontSize = function fitSingleLineFontSize(text, maxWidth, maxHeight, maxFontSize) {
19
+ if (!text) {
20
+ return maxFontSize;
21
+ }
22
+ var estimatedWidthAtOnePixel = estimateTextWidth(text, 1);
23
+ return Math.floor(clamp(maxWidth / estimatedWidthAtOnePixel, 1, Math.min(maxFontSize, maxHeight)));
24
+ };
25
+ export var RightslideNametag = function RightslideNametag(_ref) {
26
+ var name = _ref.name,
27
+ title = _ref.title,
28
+ themeSettings = _ref.themeSettings;
29
+ var frame = useCurrentFrame();
30
+ var _useVideoConfig = useVideoConfig(),
31
+ fps = _useVideoConfig.fps,
32
+ width = _useVideoConfig.width,
33
+ height = _useVideoConfig.height;
34
+ var _useTheme = useTheme(),
35
+ primaryColor = _useTheme.primaryColor,
36
+ accentColor = _useTheme.accentColor;
37
+ var _useOrientationBased = useOrientationBased({
38
+ landscape: {
39
+ containerBottom: height * 0.11,
40
+ containerLeft: width * 0.04,
41
+ lineWidth: clamp(width * 0.004, 5, 8),
42
+ maxNameBoxWidth: width * 0.62,
43
+ maxNameFontSize: width * 0.07,
44
+ maxTitleFontSize: width * 0.032,
45
+ nameBoxHeight: height * 0.102,
46
+ titleBoxHeight: height * 0.052,
47
+ titleGap: height * 0.012
48
+ },
49
+ portrait: {
50
+ containerBottom: height * 0.2,
51
+ containerLeft: width * 0.07,
52
+ lineWidth: clamp(width * 0.01, 5, 8),
53
+ maxNameBoxWidth: width * 0.84,
54
+ maxNameFontSize: width * 0.12,
55
+ maxTitleFontSize: width * 0.056,
56
+ nameBoxHeight: height * 0.066,
57
+ titleBoxHeight: height * 0.038,
58
+ titleGap: height * 0.008
59
+ },
60
+ square: {
61
+ containerBottom: height * 0.15,
62
+ containerLeft: width * 0.06,
63
+ lineWidth: clamp(width * 0.007, 5, 8),
64
+ maxNameBoxWidth: width * 0.78,
65
+ maxNameFontSize: width * 0.095,
66
+ maxTitleFontSize: width * 0.045,
67
+ nameBoxHeight: height * 0.078,
68
+ titleBoxHeight: height * 0.046,
69
+ titleGap: height * 0.01
70
+ }
71
+ }),
72
+ containerBottom = _useOrientationBased.containerBottom,
73
+ containerLeft = _useOrientationBased.containerLeft,
74
+ lineWidth = _useOrientationBased.lineWidth,
75
+ maxNameBoxWidth = _useOrientationBased.maxNameBoxWidth,
76
+ maxNameFontSize = _useOrientationBased.maxNameFontSize,
77
+ maxTitleFontSize = _useOrientationBased.maxTitleFontSize,
78
+ nameBoxHeight = _useOrientationBased.nameBoxHeight,
79
+ titleBoxHeight = _useOrientationBased.titleBoxHeight,
80
+ titleGap = _useOrientationBased.titleGap;
81
+ var displayName = (name || "").toLocaleUpperCase();
82
+ var displayTitle = (title || "").toLocaleUpperCase();
83
+ var boxColor = (themeSettings === null || themeSettings === void 0 ? void 0 : themeSettings.secondaryColor) || accentColor || primaryColor || "#ff6a00";
84
+ var textColor = getContrastColor(boxColor) || "#FFFFFF";
85
+ var namePadding = nameBoxHeight * 0.22;
86
+ var titlePadding = titleBoxHeight * 0.26;
87
+ var nameFontSize = fitSingleLineFontSize(displayName, maxNameBoxWidth - namePadding * 2, nameBoxHeight * 0.82, maxNameFontSize);
88
+ var titleFontSize = fitSingleLineFontSize(displayTitle, maxNameBoxWidth - titlePadding * 2, titleBoxHeight * 0.66, maxTitleFontSize);
89
+ var titleBoxMaxWidth = maxNameBoxWidth;
90
+ var fullHeight = nameBoxHeight + titleGap + titleBoxHeight;
91
+ var lineEnd = Math.round(fps * 0.28);
92
+ var boxStart = lineEnd;
93
+ var boxEnd = boxStart + Math.round(fps * 1.3);
94
+ var whiteEnd = boxEnd;
95
+ var nameRevealStart = boxStart + Math.round(fps * 0.2);
96
+ var nameRevealEnd = nameRevealStart + Math.round(fps * 0.9);
97
+ var titleEnd = boxStart + Math.round(fps * 0.62);
98
+ var lineProgress = interpolate(frame, [0, lineEnd], [0, 1], {
99
+ easing: Easing.out(Easing.cubic),
100
+ extrapolateLeft: "clamp",
101
+ extrapolateRight: "clamp"
102
+ });
103
+ var nameBoxProgress = interpolate(frame, [boxStart, boxEnd], [0, 1], {
104
+ easing: Easing.inOut(Easing.quad),
105
+ extrapolateLeft: "clamp",
106
+ extrapolateRight: "clamp"
107
+ });
108
+ var whiteMoveProgress = interpolate(frame, [boxStart, whiteEnd], [0, 1], {
109
+ easing: Easing.out(Easing.quad),
110
+ extrapolateLeft: "clamp",
111
+ extrapolateRight: "clamp"
112
+ });
113
+ var whiteWidth = interpolate(whiteMoveProgress, [0, 0.5, 1], [lineWidth * 1.4, nameBoxHeight * 1.45, lineWidth], {
114
+ extrapolateLeft: "clamp",
115
+ extrapolateRight: "clamp"
116
+ });
117
+ var whiteLeft = interpolate(whiteMoveProgress, [0, 0.5, 1], [100, 42, 0], {
118
+ extrapolateLeft: "clamp",
119
+ extrapolateRight: "clamp"
120
+ });
121
+ var whiteOpacity = interpolate(frame, [boxStart, boxStart + 1], [0, 1], {
122
+ extrapolateLeft: "clamp",
123
+ extrapolateRight: "clamp"
124
+ });
125
+ var nameReveal = interpolate(frame, [nameRevealStart, nameRevealEnd], [0, 1], {
126
+ easing: Easing.out(Easing.cubic),
127
+ extrapolateLeft: "clamp",
128
+ extrapolateRight: "clamp"
129
+ });
130
+ var visibleNameProgress = Math.min(nameReveal, nameBoxProgress);
131
+ var titleProgress = interpolate(frame, [boxStart, titleEnd], [0, 1], {
132
+ easing: Easing.out(Easing.cubic),
133
+ extrapolateLeft: "clamp",
134
+ extrapolateRight: "clamp"
135
+ });
136
+ var titleTextProgress = interpolate(titleProgress, [0.16, 1], [0, 1], {
137
+ easing: Easing.out(Easing.cubic),
138
+ extrapolateLeft: "clamp",
139
+ extrapolateRight: "clamp"
140
+ });
141
+ var titleTextTranslate = interpolate(titleTextProgress, [0, 1], [-titleBoxHeight * 1.15, 0], {
142
+ extrapolateLeft: "clamp",
143
+ extrapolateRight: "clamp"
144
+ });
145
+ return /*#__PURE__*/React.createElement("div", {
146
+ style: {
147
+ bottom: containerBottom,
148
+ fontFamily: fontFamily,
149
+ left: containerLeft,
150
+ position: "absolute",
151
+ width: maxNameBoxWidth + lineWidth
152
+ }
153
+ }, /*#__PURE__*/React.createElement("div", {
154
+ style: {
155
+ height: fullHeight,
156
+ position: "relative",
157
+ width: "100%"
158
+ }
159
+ }, /*#__PURE__*/React.createElement("div", {
160
+ style: {
161
+ backgroundColor: "#FFFFFF",
162
+ height: "100%",
163
+ position: "absolute",
164
+ right: 0,
165
+ top: 0,
166
+ transform: "scaleY(".concat(lineProgress, ")"),
167
+ transformOrigin: "top",
168
+ width: lineWidth
169
+ }
170
+ }), /*#__PURE__*/React.createElement("div", {
171
+ style: {
172
+ boxSizing: "border-box",
173
+ height: nameBoxHeight,
174
+ maxWidth: maxNameBoxWidth,
175
+ overflow: "hidden",
176
+ padding: "0 ".concat(namePadding, "px"),
177
+ position: "absolute",
178
+ right: lineWidth,
179
+ top: 0,
180
+ width: "fit-content"
181
+ }
182
+ }, /*#__PURE__*/React.createElement("div", {
183
+ style: {
184
+ backgroundColor: boxColor,
185
+ height: "100%",
186
+ position: "absolute",
187
+ right: 0,
188
+ top: 0,
189
+ transform: "scaleX(".concat(nameBoxProgress, ")"),
190
+ transformOrigin: "right",
191
+ width: "100%"
192
+ }
193
+ }), /*#__PURE__*/React.createElement("div", {
194
+ style: {
195
+ backgroundColor: "#FFFFFF",
196
+ height: "100%",
197
+ left: "".concat(whiteLeft, "%"),
198
+ opacity: whiteOpacity,
199
+ position: "absolute",
200
+ top: 0,
201
+ width: whiteWidth,
202
+ zIndex: 2
203
+ }
204
+ }), /*#__PURE__*/React.createElement("div", {
205
+ style: {
206
+ alignItems: "center",
207
+ clipPath: "inset(0 0 0 ".concat((1 - visibleNameProgress) * 100, "%)"),
208
+ color: textColor,
209
+ display: "flex",
210
+ fontSize: nameFontSize,
211
+ fontWeight: 400,
212
+ height: "100%",
213
+ lineHeight: 1,
214
+ overflow: "hidden",
215
+ position: "relative",
216
+ textShadow: "0 1px 5px rgba(0, 0, 0, 0.32)",
217
+ whiteSpace: "nowrap",
218
+ zIndex: 1
219
+ }
220
+ }, displayName)), /*#__PURE__*/React.createElement("div", {
221
+ style: {
222
+ boxSizing: "border-box",
223
+ height: titleBoxHeight,
224
+ maxWidth: titleBoxMaxWidth,
225
+ overflow: "hidden",
226
+ padding: "0 ".concat(titlePadding, "px"),
227
+ position: "absolute",
228
+ right: lineWidth,
229
+ top: nameBoxHeight + titleGap,
230
+ width: "fit-content"
231
+ }
232
+ }, /*#__PURE__*/React.createElement("div", {
233
+ style: {
234
+ backgroundColor: boxColor,
235
+ height: "100%",
236
+ position: "absolute",
237
+ right: 0,
238
+ top: 0,
239
+ transform: "scaleX(".concat(titleProgress, ")"),
240
+ transformOrigin: "right",
241
+ width: "100%"
242
+ }
243
+ }), /*#__PURE__*/React.createElement("div", {
244
+ style: {
245
+ alignItems: "center",
246
+ clipPath: "inset(0 0 0 ".concat((1 - titleProgress) * 100, "%)"),
247
+ color: textColor,
248
+ display: "flex",
249
+ fontSize: titleFontSize,
250
+ fontWeight: 400,
251
+ height: "100%",
252
+ letterSpacing: "0.08em",
253
+ lineHeight: 1,
254
+ overflow: "hidden",
255
+ position: "relative",
256
+ textShadow: "0 1px 4px rgba(0, 0, 0, 0.28)",
257
+ transform: "translateX(".concat(titleTextTranslate, "px)"),
258
+ whiteSpace: "nowrap",
259
+ zIndex: 1
260
+ }
261
+ }, displayTitle))));
262
+ };
@@ -0,0 +1,212 @@
1
+ import React from "react";
2
+ import { Easing, interpolate, useCurrentFrame, useVideoConfig } from "remotion";
3
+ import { loadFont } from "@remotion/google-fonts/Kanit";
4
+ import { useOrientationBased } from "../../../hooks/useOrientationBased.js";
5
+ import { useTheme } from "../../hooks/useTheme.js";
6
+ import { getContrastColor } from "../../../helpers/getContrastColor";
7
+ var _loadFont = loadFont("normal", {
8
+ subsets: ["latin"],
9
+ weights: ["400", "500", "600"]
10
+ }),
11
+ fontFamily = _loadFont.fontFamily;
12
+ var clamp = function clamp(value, min, max) {
13
+ return Math.max(min, Math.min(max, value));
14
+ };
15
+ var estimateTextWidth = function estimateTextWidth(text, fontSize) {
16
+ return text.length * fontSize * 0.62;
17
+ };
18
+ var fitSingleLineFontSize = function fitSingleLineFontSize(text, maxWidth, maxHeight, maxFontSize) {
19
+ if (!text) {
20
+ return maxFontSize;
21
+ }
22
+ var estimatedWidthAtOnePixel = estimateTextWidth(text, 1);
23
+ return Math.floor(clamp(maxWidth / estimatedWidthAtOnePixel, 1, Math.min(maxFontSize, maxHeight)));
24
+ };
25
+ export var StackfillNametag = function StackfillNametag(_ref) {
26
+ var name = _ref.name,
27
+ title = _ref.title,
28
+ themeSettings = _ref.themeSettings;
29
+ var frame = useCurrentFrame();
30
+ var _useVideoConfig = useVideoConfig(),
31
+ fps = _useVideoConfig.fps,
32
+ width = _useVideoConfig.width,
33
+ height = _useVideoConfig.height;
34
+ var _useTheme = useTheme(),
35
+ primaryColor = _useTheme.primaryColor,
36
+ accentColor = _useTheme.accentColor;
37
+ var _useOrientationBased = useOrientationBased({
38
+ landscape: {
39
+ containerBottom: height * 0.11,
40
+ containerLeft: width * 0.04,
41
+ maxNameBoxWidth: width * 0.62,
42
+ maxNameFontSize: width * 0.07,
43
+ maxTitleFontSize: width * 0.033,
44
+ nameBoxHeight: height * 0.102,
45
+ titleBoxHeight: height * 0.052,
46
+ titleGap: height * 0.012
47
+ },
48
+ portrait: {
49
+ containerBottom: height * 0.2,
50
+ containerLeft: width * 0.07,
51
+ maxNameBoxWidth: width * 0.84,
52
+ maxNameFontSize: width * 0.12,
53
+ maxTitleFontSize: width * 0.058,
54
+ nameBoxHeight: height * 0.066,
55
+ titleBoxHeight: height * 0.038,
56
+ titleGap: height * 0.008
57
+ },
58
+ square: {
59
+ containerBottom: height * 0.15,
60
+ containerLeft: width * 0.06,
61
+ maxNameBoxWidth: width * 0.78,
62
+ maxNameFontSize: width * 0.095,
63
+ maxTitleFontSize: width * 0.046,
64
+ nameBoxHeight: height * 0.078,
65
+ titleBoxHeight: height * 0.046,
66
+ titleGap: height * 0.01
67
+ }
68
+ }),
69
+ containerBottom = _useOrientationBased.containerBottom,
70
+ containerLeft = _useOrientationBased.containerLeft,
71
+ maxNameBoxWidth = _useOrientationBased.maxNameBoxWidth,
72
+ maxNameFontSize = _useOrientationBased.maxNameFontSize,
73
+ maxTitleFontSize = _useOrientationBased.maxTitleFontSize,
74
+ nameBoxHeight = _useOrientationBased.nameBoxHeight,
75
+ titleBoxHeight = _useOrientationBased.titleBoxHeight,
76
+ titleGap = _useOrientationBased.titleGap;
77
+ var displayName = (name || "").toLocaleUpperCase();
78
+ var displayTitle = (title || "").toLocaleUpperCase();
79
+ var boxColor = (themeSettings === null || themeSettings === void 0 ? void 0 : themeSettings.secondaryColor) || accentColor || primaryColor || "#ff6a00";
80
+ var textColor = getContrastColor(boxColor) || "#FFFFFF";
81
+ var namePadding = nameBoxHeight * 0.22;
82
+ var titlePadding = titleBoxHeight * 0.22;
83
+ var nameFontSize = fitSingleLineFontSize(displayName, maxNameBoxWidth - namePadding * 2, nameBoxHeight * 0.84, maxNameFontSize);
84
+ var titleFontSize = fitSingleLineFontSize(displayTitle, maxNameBoxWidth - titlePadding * 2, titleBoxHeight * 0.66, maxTitleFontSize);
85
+ var widthEnd = Math.round(fps * 0.7);
86
+ var titleBoxShowStart = widthEnd + Math.round(fps * 0.08);
87
+ var fillStart = titleBoxShowStart + Math.round(fps * 0.08);
88
+ var fillEnd = fillStart + Math.round(fps * 0.7);
89
+ var widthProgress = interpolate(frame, [0, widthEnd], [0, 1], {
90
+ easing: Easing.out(Easing.cubic),
91
+ extrapolateLeft: "clamp",
92
+ extrapolateRight: "clamp"
93
+ });
94
+ var fillProgress = interpolate(frame, [fillStart, fillEnd], [0, 1], {
95
+ easing: Easing.out(Easing.cubic),
96
+ extrapolateLeft: "clamp",
97
+ extrapolateRight: "clamp"
98
+ });
99
+ var titleBoxOpacity = interpolate(frame, [titleBoxShowStart, titleBoxShowStart + 1], [0, 1], {
100
+ extrapolateLeft: "clamp",
101
+ extrapolateRight: "clamp"
102
+ });
103
+ var textProgress = interpolate(fillProgress, [0.5, 1], [0, 1], {
104
+ easing: Easing.out(Easing.cubic),
105
+ extrapolateLeft: "clamp",
106
+ extrapolateRight: "clamp"
107
+ });
108
+ var nameTranslateY = interpolate(textProgress, [0, 1], [nameBoxHeight * 0.44, 0], {
109
+ extrapolateLeft: "clamp",
110
+ extrapolateRight: "clamp"
111
+ });
112
+ return /*#__PURE__*/React.createElement("div", {
113
+ style: {
114
+ bottom: containerBottom,
115
+ fontFamily: fontFamily,
116
+ left: containerLeft,
117
+ position: "absolute",
118
+ width: maxNameBoxWidth
119
+ }
120
+ }, /*#__PURE__*/React.createElement("div", {
121
+ style: {
122
+ boxSizing: "border-box",
123
+ height: nameBoxHeight,
124
+ maxWidth: maxNameBoxWidth,
125
+ overflow: "hidden",
126
+ padding: "0 ".concat(namePadding, "px"),
127
+ position: "relative",
128
+ width: "fit-content"
129
+ }
130
+ }, /*#__PURE__*/React.createElement("div", {
131
+ style: {
132
+ backgroundColor: "#FFFFFF",
133
+ height: "100%",
134
+ left: 0,
135
+ position: "absolute",
136
+ top: 0,
137
+ transform: "scaleX(".concat(widthProgress, ")"),
138
+ transformOrigin: "left",
139
+ width: "100%"
140
+ }
141
+ }), /*#__PURE__*/React.createElement("div", {
142
+ style: {
143
+ backgroundColor: boxColor,
144
+ height: "".concat(fillProgress * 88, "%"),
145
+ left: 0,
146
+ position: "absolute",
147
+ top: 0,
148
+ width: "100%"
149
+ }
150
+ }), /*#__PURE__*/React.createElement("div", {
151
+ style: {
152
+ alignItems: "center",
153
+ color: textColor,
154
+ display: "flex",
155
+ fontSize: nameFontSize,
156
+ fontWeight: 400,
157
+ height: "88%",
158
+ lineHeight: 1,
159
+ opacity: textProgress,
160
+ overflow: "hidden",
161
+ position: "relative",
162
+ textShadow: "0 1px 5px rgba(0, 0, 0, 0.32)",
163
+ transform: "translateY(".concat(nameTranslateY, "px)"),
164
+ whiteSpace: "nowrap",
165
+ zIndex: 1
166
+ }
167
+ }, displayName)), /*#__PURE__*/React.createElement("div", {
168
+ style: {
169
+ boxSizing: "border-box",
170
+ height: titleBoxHeight,
171
+ marginTop: titleGap,
172
+ maxWidth: maxNameBoxWidth,
173
+ opacity: titleBoxOpacity,
174
+ overflow: "hidden",
175
+ padding: "0 ".concat(titlePadding, "px"),
176
+ position: "relative",
177
+ width: "fit-content"
178
+ }
179
+ }, /*#__PURE__*/React.createElement("div", {
180
+ style: {
181
+ backgroundColor: boxColor,
182
+ height: "".concat(fillProgress * 100, "%"),
183
+ left: 0,
184
+ position: "absolute",
185
+ top: 0,
186
+ width: "100%"
187
+ }
188
+ }), /*#__PURE__*/React.createElement("div", {
189
+ style: {
190
+ alignItems: "center",
191
+ color: textColor,
192
+ display: "flex",
193
+ fontSize: titleFontSize,
194
+ fontWeight: 400,
195
+ height: "".concat(fillProgress * 100, "%"),
196
+ letterSpacing: "0.08em",
197
+ lineHeight: 1,
198
+ opacity: titleBoxOpacity,
199
+ overflow: "hidden",
200
+ position: "relative",
201
+ textShadow: "0 1px 4px rgba(0, 0, 0, 0.28)",
202
+ whiteSpace: "nowrap",
203
+ zIndex: 1
204
+ }
205
+ }, /*#__PURE__*/React.createElement("span", {
206
+ style: {
207
+ alignItems: "center",
208
+ display: "flex",
209
+ height: titleBoxHeight
210
+ }
211
+ }, displayTitle))));
212
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zync/zync-screnplay-player",
3
- "version": "0.1.239",
3
+ "version": "0.1.241",
4
4
  "files": [
5
5
  "dist"
6
6
  ],
@@ -1,22 +0,0 @@
1
- function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
- function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
3
- function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
4
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
5
- function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
6
- function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
7
- function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
8
- function _possibleConstructorReturn(t, e) { if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); }
9
- function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
10
- function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
11
- function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
12
- function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
13
- function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
14
- import { TextWithVideoLayout } from "./TextWithVideoLayout.js";
15
- export var TextFullCoverLayout = /*#__PURE__*/function (_TextWithVideoLayout) {
16
- function TextFullCoverLayout() {
17
- _classCallCheck(this, TextFullCoverLayout);
18
- return _callSuper(this, TextFullCoverLayout, arguments);
19
- }
20
- _inherits(TextFullCoverLayout, _TextWithVideoLayout);
21
- return _createClass(TextFullCoverLayout);
22
- }(TextWithVideoLayout);