@micromag/screen-keypad 0.4.78 → 0.4.80
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/es/index.js +1095 -924
- package/package.json +18 -18
package/es/index.js
CHANGED
|
@@ -6,8 +6,8 @@ import isEmpty from 'lodash/isEmpty';
|
|
|
6
6
|
import isString from 'lodash/isString';
|
|
7
7
|
import { useRef, useState, useEffect } from 'react';
|
|
8
8
|
import { Close, ScreenElement } from '@micromag/core/components';
|
|
9
|
-
import { usePlaybackContext,
|
|
10
|
-
import { useTrackScreenEvent, useDimensionObserver, useDragProgress } from '@micromag/core/hooks';
|
|
9
|
+
import { usePlaybackContext, useScreenState, useScreenSize, useViewerContext, useViewerWebView, useViewerInteraction, useScreenRenderContext, usePlaybackMediaRef, useViewerActivityDetected } from '@micromag/core/contexts';
|
|
10
|
+
import { useTrackScreenEvent, useDimensionObserver, useDebounce, useDragProgress } from '@micromag/core/hooks';
|
|
11
11
|
import { isHeaderFilled, isFooterFilled, getFooterProps, isTextFilled, camelCase, mergeRefs, getStyleFromBox } from '@micromag/core/utils';
|
|
12
12
|
import Background from '@micromag/element-background';
|
|
13
13
|
import Button, { RichButton } from '@micromag/element-button';
|
|
@@ -20,6 +20,7 @@ import Keypad from '@micromag/element-keypad';
|
|
|
20
20
|
import Layout from '@micromag/element-layout';
|
|
21
21
|
import Scroll from '@micromag/element-scroll';
|
|
22
22
|
import Text from '@micromag/element-text';
|
|
23
|
+
import Video from '@micromag/element-video';
|
|
23
24
|
import Visual from '@micromag/element-visual';
|
|
24
25
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
25
26
|
|
|
@@ -53,7 +54,7 @@ const placeholderPopupBoxStyles = {
|
|
|
53
54
|
}
|
|
54
55
|
};
|
|
55
56
|
function KeypadScreen(t0) {
|
|
56
|
-
const $ = c(
|
|
57
|
+
const $ = c(351);
|
|
57
58
|
const {
|
|
58
59
|
items: t1,
|
|
59
60
|
title: t2,
|
|
@@ -92,13 +93,14 @@ function KeypadScreen(t0) {
|
|
|
92
93
|
const popupInnerRef = useRef(null);
|
|
93
94
|
const trackScreenEvent = useTrackScreenEvent("keypad");
|
|
94
95
|
const {
|
|
95
|
-
muted
|
|
96
|
+
muted,
|
|
97
|
+
playing,
|
|
98
|
+
setControlsTheme,
|
|
99
|
+
setControls,
|
|
100
|
+
setPlaying,
|
|
101
|
+
showControls,
|
|
102
|
+
hideControls
|
|
96
103
|
} = usePlaybackContext();
|
|
97
|
-
const {
|
|
98
|
-
ref: mediaRef,
|
|
99
|
-
isCurrent: t17
|
|
100
|
-
} = usePlaybackMediaRef(current, true);
|
|
101
|
-
const isCurrentMedia = t17 === undefined ? false : t17;
|
|
102
104
|
const screenState = useScreenState();
|
|
103
105
|
const {
|
|
104
106
|
width,
|
|
@@ -123,27 +125,27 @@ function KeypadScreen(t0) {
|
|
|
123
125
|
isPlaceholder,
|
|
124
126
|
isEdit
|
|
125
127
|
} = useScreenRenderContext();
|
|
126
|
-
let
|
|
128
|
+
let t17;
|
|
127
129
|
if ($[0] !== header) {
|
|
128
|
-
|
|
130
|
+
t17 = isHeaderFilled(header);
|
|
129
131
|
$[0] = header;
|
|
130
|
-
$[1] =
|
|
132
|
+
$[1] = t17;
|
|
131
133
|
} else {
|
|
132
|
-
|
|
134
|
+
t17 = $[1];
|
|
133
135
|
}
|
|
134
|
-
const hasHeader =
|
|
135
|
-
let
|
|
136
|
+
const hasHeader = t17;
|
|
137
|
+
let t18;
|
|
136
138
|
if ($[2] !== footer) {
|
|
137
|
-
|
|
139
|
+
t18 = isFooterFilled(footer);
|
|
138
140
|
$[2] = footer;
|
|
139
|
-
$[3] =
|
|
141
|
+
$[3] = t18;
|
|
140
142
|
} else {
|
|
141
|
-
|
|
143
|
+
t18 = $[3];
|
|
142
144
|
}
|
|
143
|
-
const hasFooter =
|
|
144
|
-
let
|
|
145
|
+
const hasFooter = t18;
|
|
146
|
+
let t19;
|
|
145
147
|
if ($[4] !== current || $[5] !== footer || $[6] !== isPreview || $[7] !== isView || $[8] !== openWebView) {
|
|
146
|
-
|
|
148
|
+
t19 = getFooterProps(footer, {
|
|
147
149
|
isView,
|
|
148
150
|
current,
|
|
149
151
|
openWebView,
|
|
@@ -154,266 +156,371 @@ function KeypadScreen(t0) {
|
|
|
154
156
|
$[6] = isPreview;
|
|
155
157
|
$[7] = isView;
|
|
156
158
|
$[8] = openWebView;
|
|
157
|
-
$[9] =
|
|
159
|
+
$[9] = t19;
|
|
158
160
|
} else {
|
|
159
|
-
|
|
161
|
+
t19 = $[9];
|
|
160
162
|
}
|
|
161
|
-
const footerProps =
|
|
162
|
-
let
|
|
163
|
+
const footerProps = t19;
|
|
164
|
+
let t20;
|
|
163
165
|
if ($[10] !== title) {
|
|
164
|
-
|
|
166
|
+
t20 = isTextFilled(title);
|
|
165
167
|
$[10] = title;
|
|
166
|
-
$[11] =
|
|
168
|
+
$[11] = t20;
|
|
167
169
|
} else {
|
|
168
|
-
|
|
170
|
+
t20 = $[11];
|
|
169
171
|
}
|
|
170
|
-
const hasTitle =
|
|
171
|
-
let
|
|
172
|
+
const hasTitle = t20;
|
|
173
|
+
let t21;
|
|
172
174
|
if ($[12] !== title) {
|
|
173
|
-
|
|
175
|
+
t21 = title || {};
|
|
174
176
|
$[12] = title;
|
|
175
|
-
$[13] =
|
|
177
|
+
$[13] = t21;
|
|
176
178
|
} else {
|
|
177
|
-
|
|
179
|
+
t21 = $[13];
|
|
178
180
|
}
|
|
179
181
|
const {
|
|
180
|
-
textStyle:
|
|
181
|
-
} =
|
|
182
|
-
const titleTextStyle =
|
|
183
|
-
let
|
|
182
|
+
textStyle: t22
|
|
183
|
+
} = t21;
|
|
184
|
+
const titleTextStyle = t22 === undefined ? null : t22;
|
|
185
|
+
let t23;
|
|
184
186
|
if ($[14] !== subtitle) {
|
|
185
|
-
|
|
187
|
+
t23 = isTextFilled(subtitle);
|
|
186
188
|
$[14] = subtitle;
|
|
187
|
-
$[15] =
|
|
189
|
+
$[15] = t23;
|
|
188
190
|
} else {
|
|
189
|
-
|
|
191
|
+
t23 = $[15];
|
|
190
192
|
}
|
|
191
|
-
const hasSubtitle =
|
|
193
|
+
const hasSubtitle = t23;
|
|
192
194
|
const {
|
|
193
195
|
ref: headerRef,
|
|
194
|
-
height:
|
|
196
|
+
height: t24
|
|
195
197
|
} = useDimensionObserver();
|
|
196
|
-
const headerHeight =
|
|
198
|
+
const headerHeight = t24 === undefined ? 0 : t24;
|
|
197
199
|
const {
|
|
198
200
|
ref: footerRef,
|
|
199
|
-
height:
|
|
201
|
+
height: t25
|
|
200
202
|
} = useDimensionObserver();
|
|
201
|
-
const footerHeight =
|
|
203
|
+
const footerHeight = t25 === undefined ? 0 : t25;
|
|
202
204
|
const [, setPopupDragDisabled] = useState(false);
|
|
203
|
-
const backgroundPlaying = current && (isView || isEdit) && (isCurrentMedia || !isView);
|
|
204
|
-
const mediaShouldLoad = !isPlaceholder && (current || preload);
|
|
205
|
-
const isInteractivePreview = isEdit && screenState === null;
|
|
206
|
-
const isNotInteractive = isEdit && screenState !== null;
|
|
207
205
|
const {
|
|
208
|
-
columnAlign:
|
|
209
|
-
columns:
|
|
210
|
-
spacing:
|
|
211
|
-
withSquareItems:
|
|
206
|
+
columnAlign: t26,
|
|
207
|
+
columns: t27,
|
|
208
|
+
spacing: t28,
|
|
209
|
+
withSquareItems: t29
|
|
212
210
|
} = keypadLayout || {};
|
|
213
|
-
const columnAlign =
|
|
214
|
-
const columns =
|
|
215
|
-
const columnSpacing =
|
|
216
|
-
const withSquareItems =
|
|
217
|
-
let
|
|
211
|
+
const columnAlign = t26 === undefined ? null : t26;
|
|
212
|
+
const columns = t27 === undefined ? null : t27;
|
|
213
|
+
const columnSpacing = t28 === undefined ? null : t28;
|
|
214
|
+
const withSquareItems = t29 === undefined ? false : t29;
|
|
215
|
+
let t30;
|
|
218
216
|
if ($[16] !== buttonStyles) {
|
|
219
|
-
|
|
217
|
+
t30 = buttonStyles || {};
|
|
220
218
|
$[16] = buttonStyles;
|
|
221
|
-
$[17] =
|
|
219
|
+
$[17] = t30;
|
|
222
220
|
} else {
|
|
223
|
-
|
|
221
|
+
t30 = $[17];
|
|
224
222
|
}
|
|
225
223
|
const {
|
|
226
|
-
layout:
|
|
227
|
-
textStyle:
|
|
228
|
-
labelBoxStyle:
|
|
229
|
-
boxStyle:
|
|
230
|
-
visualWidth:
|
|
231
|
-
} =
|
|
232
|
-
const buttonLayout =
|
|
233
|
-
const buttonTextStyle =
|
|
234
|
-
const buttonLabelBoxStyle =
|
|
235
|
-
const buttonBoxStyle =
|
|
236
|
-
const buttonVisualWidth =
|
|
237
|
-
let
|
|
224
|
+
layout: t31,
|
|
225
|
+
textStyle: t32,
|
|
226
|
+
labelBoxStyle: t33,
|
|
227
|
+
boxStyle: t34,
|
|
228
|
+
visualWidth: t35
|
|
229
|
+
} = t30;
|
|
230
|
+
const buttonLayout = t31 === undefined ? null : t31;
|
|
231
|
+
const buttonTextStyle = t32 === undefined ? null : t32;
|
|
232
|
+
const buttonLabelBoxStyle = t33 === undefined ? null : t33;
|
|
233
|
+
const buttonBoxStyle = t34 === undefined ? null : t34;
|
|
234
|
+
const buttonVisualWidth = t35 === undefined ? null : t35;
|
|
235
|
+
let t36;
|
|
238
236
|
if ($[18] !== popupStyles) {
|
|
239
|
-
|
|
237
|
+
t36 = popupStyles || {};
|
|
240
238
|
$[18] = popupStyles;
|
|
241
|
-
$[19] =
|
|
239
|
+
$[19] = t36;
|
|
242
240
|
} else {
|
|
243
|
-
|
|
241
|
+
t36 = $[19];
|
|
244
242
|
}
|
|
245
243
|
const {
|
|
246
|
-
layout:
|
|
247
|
-
headingTextStyle:
|
|
248
|
-
contentTextStyle:
|
|
249
|
-
button:
|
|
250
|
-
boxStyle:
|
|
251
|
-
} =
|
|
252
|
-
const popupLayout =
|
|
253
|
-
const headingTextStyle =
|
|
254
|
-
const contentTextStyle =
|
|
255
|
-
const popupButtons =
|
|
256
|
-
const popupBoxStyle =
|
|
257
|
-
let
|
|
244
|
+
layout: t37,
|
|
245
|
+
headingTextStyle: t38,
|
|
246
|
+
contentTextStyle: t39,
|
|
247
|
+
button: t40,
|
|
248
|
+
boxStyle: t41
|
|
249
|
+
} = t36;
|
|
250
|
+
const popupLayout = t37 === undefined ? null : t37;
|
|
251
|
+
const headingTextStyle = t38 === undefined ? null : t38;
|
|
252
|
+
const contentTextStyle = t39 === undefined ? null : t39;
|
|
253
|
+
const popupButtons = t40 === undefined ? null : t40;
|
|
254
|
+
const popupBoxStyle = t41 === undefined ? null : t41;
|
|
255
|
+
let t42;
|
|
258
256
|
if ($[20] !== popupButtons) {
|
|
259
|
-
|
|
257
|
+
t42 = popupButtons || {};
|
|
260
258
|
$[20] = popupButtons;
|
|
261
|
-
$[21] =
|
|
259
|
+
$[21] = t42;
|
|
262
260
|
} else {
|
|
263
|
-
|
|
261
|
+
t42 = $[21];
|
|
264
262
|
}
|
|
265
263
|
const {
|
|
266
|
-
buttonTextStyle:
|
|
267
|
-
boxStyle:
|
|
268
|
-
} =
|
|
269
|
-
const popupButtonsTextStyle =
|
|
270
|
-
const popupButtonsBoxStyle =
|
|
264
|
+
buttonTextStyle: t43,
|
|
265
|
+
boxStyle: t44
|
|
266
|
+
} = t42;
|
|
267
|
+
const popupButtonsTextStyle = t43 === undefined ? null : t43;
|
|
268
|
+
const popupButtonsBoxStyle = t44 === undefined ? null : t44;
|
|
271
269
|
const popupLayoutClassName = popupLayout !== null ? camelCase(popupLayout) : "";
|
|
272
270
|
const [showPopup, setShowPopup] = useState(false);
|
|
273
271
|
const [popup, setPopup] = useState(null);
|
|
274
|
-
let
|
|
272
|
+
let t45;
|
|
275
273
|
if ($[22] !== popup) {
|
|
276
|
-
|
|
274
|
+
t45 = popup || {};
|
|
277
275
|
$[22] = popup;
|
|
278
|
-
$[23] =
|
|
276
|
+
$[23] = t45;
|
|
279
277
|
} else {
|
|
280
|
-
|
|
278
|
+
t45 = $[23];
|
|
281
279
|
}
|
|
282
280
|
const {
|
|
283
|
-
heading:
|
|
284
|
-
content:
|
|
285
|
-
largeVisual:
|
|
281
|
+
heading: t46,
|
|
282
|
+
content: t47,
|
|
283
|
+
largeVisual: t48,
|
|
284
|
+
video: t49,
|
|
286
285
|
button: t50,
|
|
287
286
|
popupBoxStyle: t51
|
|
288
|
-
} =
|
|
289
|
-
const popupHeading =
|
|
290
|
-
const popupContent =
|
|
291
|
-
const largeVisual =
|
|
287
|
+
} = t45;
|
|
288
|
+
const popupHeading = t46 === undefined ? null : t46;
|
|
289
|
+
const popupContent = t47 === undefined ? null : t47;
|
|
290
|
+
const largeVisual = t48 === undefined ? null : t48;
|
|
291
|
+
const video = t49 === undefined ? null : t49;
|
|
292
292
|
const popupButton = t50 === undefined ? null : t50;
|
|
293
293
|
const singlePopupBoxStyle = t51 === undefined ? null : t51;
|
|
294
|
-
|
|
294
|
+
const {
|
|
295
|
+
ref: mediaRef,
|
|
296
|
+
isCurrent: t52
|
|
297
|
+
} = usePlaybackMediaRef(current, video === null, video !== null ? "popup" : null);
|
|
298
|
+
const isCurrentMedia = t52 === undefined ? false : t52;
|
|
299
|
+
const videoPlaying = current && (isView || isEdit) && playing && (isCurrentMedia || !isView);
|
|
300
|
+
const backgroundPlaying = current && (isView || isEdit) && (isCurrentMedia || !isView);
|
|
301
|
+
const mediaShouldLoad = !isPlaceholder && (current || preload);
|
|
302
|
+
const isInteractivePreview = isEdit && screenState === null;
|
|
303
|
+
const isNotInteractive = isEdit && screenState !== null;
|
|
304
|
+
let t53;
|
|
295
305
|
if ($[24] !== largeVisual) {
|
|
296
|
-
|
|
306
|
+
t53 = largeVisual || {};
|
|
297
307
|
$[24] = largeVisual;
|
|
298
|
-
$[25] =
|
|
308
|
+
$[25] = t53;
|
|
299
309
|
} else {
|
|
300
|
-
|
|
310
|
+
t53 = $[25];
|
|
301
311
|
}
|
|
302
312
|
const {
|
|
303
|
-
metadata:
|
|
304
|
-
} =
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
$[
|
|
310
|
-
$[27] = t54;
|
|
313
|
+
metadata: t54
|
|
314
|
+
} = t53;
|
|
315
|
+
let t55;
|
|
316
|
+
if ($[26] !== t54) {
|
|
317
|
+
t55 = t54 === undefined ? {} : t54;
|
|
318
|
+
$[26] = t54;
|
|
319
|
+
$[27] = t55;
|
|
311
320
|
} else {
|
|
312
|
-
|
|
321
|
+
t55 = $[27];
|
|
313
322
|
}
|
|
314
323
|
const {
|
|
315
|
-
width:
|
|
316
|
-
height:
|
|
317
|
-
} =
|
|
318
|
-
const largeVisualWidth =
|
|
319
|
-
const largeVisualHeight =
|
|
324
|
+
width: t56,
|
|
325
|
+
height: t57
|
|
326
|
+
} = t55;
|
|
327
|
+
const largeVisualWidth = t56 === undefined ? 0 : t56;
|
|
328
|
+
const largeVisualHeight = t57 === undefined ? 0 : t57;
|
|
320
329
|
const largeVisualRatio = largeVisualWidth > 0 && largeVisualHeight > 0 ? largeVisualWidth / largeVisualHeight : null;
|
|
321
|
-
let
|
|
322
|
-
if ($[28] !==
|
|
323
|
-
|
|
324
|
-
$[28] =
|
|
325
|
-
$[29] =
|
|
330
|
+
let t58;
|
|
331
|
+
if ($[28] !== video) {
|
|
332
|
+
t58 = video || {};
|
|
333
|
+
$[28] = video;
|
|
334
|
+
$[29] = t58;
|
|
326
335
|
} else {
|
|
327
|
-
|
|
336
|
+
t58 = $[29];
|
|
328
337
|
}
|
|
329
|
-
const
|
|
330
|
-
|
|
338
|
+
const {
|
|
339
|
+
autoPlay: t59,
|
|
340
|
+
withSeekBar: t60,
|
|
341
|
+
withControls: t61,
|
|
342
|
+
color: t62,
|
|
343
|
+
progressColor: t63
|
|
344
|
+
} = t58;
|
|
345
|
+
const autoPlay = t59 === undefined ? true : t59;
|
|
346
|
+
const withSeekBar = t60 === undefined ? false : t60;
|
|
347
|
+
const withControls = t61 === undefined ? false : t61;
|
|
348
|
+
const color = t62 === undefined ? null : t62;
|
|
349
|
+
const progressColor = t63 === undefined ? null : t63;
|
|
350
|
+
let t64;
|
|
331
351
|
if ($[30] !== popupHeading) {
|
|
332
|
-
|
|
352
|
+
t64 = isTextFilled(popupHeading);
|
|
333
353
|
$[30] = popupHeading;
|
|
334
|
-
$[31] =
|
|
354
|
+
$[31] = t64;
|
|
335
355
|
} else {
|
|
336
|
-
|
|
356
|
+
t64 = $[31];
|
|
337
357
|
}
|
|
338
|
-
const
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
t60 = isTextFilled(popupContent);
|
|
345
|
-
$[32] = popupContent;
|
|
346
|
-
$[33] = t60;
|
|
358
|
+
const hasPopupHeading = t64;
|
|
359
|
+
let t65;
|
|
360
|
+
if ($[32] !== popupHeading) {
|
|
361
|
+
t65 = popupHeading || {};
|
|
362
|
+
$[32] = popupHeading;
|
|
363
|
+
$[33] = t65;
|
|
347
364
|
} else {
|
|
348
|
-
|
|
365
|
+
t65 = $[33];
|
|
349
366
|
}
|
|
350
|
-
const
|
|
351
|
-
|
|
367
|
+
const {
|
|
368
|
+
textStyle: t66
|
|
369
|
+
} = t65;
|
|
370
|
+
const popupHeadingTextStyle = t66 === undefined ? null : t66;
|
|
371
|
+
let t67;
|
|
352
372
|
if ($[34] !== popupContent) {
|
|
353
|
-
|
|
373
|
+
t67 = isTextFilled(popupContent);
|
|
354
374
|
$[34] = popupContent;
|
|
355
|
-
$[35] =
|
|
375
|
+
$[35] = t67;
|
|
376
|
+
} else {
|
|
377
|
+
t67 = $[35];
|
|
378
|
+
}
|
|
379
|
+
const hasPopupContent = t67;
|
|
380
|
+
let t68;
|
|
381
|
+
if ($[36] !== popupContent) {
|
|
382
|
+
t68 = popupContent || {};
|
|
383
|
+
$[36] = popupContent;
|
|
384
|
+
$[37] = t68;
|
|
356
385
|
} else {
|
|
357
|
-
|
|
386
|
+
t68 = $[37];
|
|
358
387
|
}
|
|
359
388
|
const {
|
|
360
|
-
textStyle:
|
|
361
|
-
} =
|
|
362
|
-
const popupContentTextStyle =
|
|
363
|
-
let
|
|
364
|
-
if ($[
|
|
365
|
-
|
|
366
|
-
$[
|
|
367
|
-
$[
|
|
389
|
+
textStyle: t69
|
|
390
|
+
} = t68;
|
|
391
|
+
const popupContentTextStyle = t69 === undefined ? null : t69;
|
|
392
|
+
let t70;
|
|
393
|
+
if ($[38] !== popupButton) {
|
|
394
|
+
t70 = popupButton || {};
|
|
395
|
+
$[38] = popupButton;
|
|
396
|
+
$[39] = t70;
|
|
368
397
|
} else {
|
|
369
|
-
|
|
398
|
+
t70 = $[39];
|
|
370
399
|
}
|
|
371
400
|
const {
|
|
372
|
-
label:
|
|
373
|
-
url:
|
|
374
|
-
inWebView:
|
|
375
|
-
boxStyle:
|
|
376
|
-
} =
|
|
377
|
-
const buttonLabel =
|
|
378
|
-
const buttonUrl =
|
|
379
|
-
const popupInWebView =
|
|
380
|
-
const popupButtonBoxStyle =
|
|
401
|
+
label: t71,
|
|
402
|
+
url: t72,
|
|
403
|
+
inWebView: t73,
|
|
404
|
+
boxStyle: t74
|
|
405
|
+
} = t70;
|
|
406
|
+
const buttonLabel = t71 === undefined ? null : t71;
|
|
407
|
+
const buttonUrl = t72 === undefined ? null : t72;
|
|
408
|
+
const popupInWebView = t73 === undefined ? false : t73;
|
|
409
|
+
const popupButtonBoxStyle = t74 === undefined ? null : t74;
|
|
410
|
+
let t75;
|
|
411
|
+
let t76;
|
|
412
|
+
if ($[40] !== color || $[41] !== current || $[42] !== progressColor || $[43] !== setControls || $[44] !== setControlsTheme || $[45] !== video || $[46] !== withControls || $[47] !== withSeekBar) {
|
|
413
|
+
t75 = () => {
|
|
414
|
+
if (!current || video === null) {
|
|
415
|
+
return _temp;
|
|
416
|
+
}
|
|
417
|
+
setControlsTheme({
|
|
418
|
+
seekBarOnly: withSeekBar && !withControls,
|
|
419
|
+
color,
|
|
420
|
+
progressColor
|
|
421
|
+
});
|
|
422
|
+
if (withControls || withSeekBar) {
|
|
423
|
+
setControls(true);
|
|
424
|
+
} else {
|
|
425
|
+
setControls(false);
|
|
426
|
+
}
|
|
427
|
+
return () => {
|
|
428
|
+
if (withControls || withSeekBar) {
|
|
429
|
+
setControls(false);
|
|
430
|
+
}
|
|
431
|
+
};
|
|
432
|
+
};
|
|
433
|
+
t76 = [video, current, withControls, setControls, setControlsTheme, withSeekBar, color, progressColor];
|
|
434
|
+
$[40] = color;
|
|
435
|
+
$[41] = current;
|
|
436
|
+
$[42] = progressColor;
|
|
437
|
+
$[43] = setControls;
|
|
438
|
+
$[44] = setControlsTheme;
|
|
439
|
+
$[45] = video;
|
|
440
|
+
$[46] = withControls;
|
|
441
|
+
$[47] = withSeekBar;
|
|
442
|
+
$[48] = t75;
|
|
443
|
+
$[49] = t76;
|
|
444
|
+
} else {
|
|
445
|
+
t75 = $[48];
|
|
446
|
+
t76 = $[49];
|
|
447
|
+
}
|
|
448
|
+
useEffect(t75, t76);
|
|
449
|
+
let t77;
|
|
450
|
+
let t78;
|
|
451
|
+
if ($[50] !== autoPlay || $[51] !== current || $[52] !== setPlaying || $[53] !== video) {
|
|
452
|
+
t77 = () => {
|
|
453
|
+
if (current && autoPlay && video !== null) {
|
|
454
|
+
setPlaying(true);
|
|
455
|
+
}
|
|
456
|
+
};
|
|
457
|
+
t78 = [current, autoPlay, video, setPlaying];
|
|
458
|
+
$[50] = autoPlay;
|
|
459
|
+
$[51] = current;
|
|
460
|
+
$[52] = setPlaying;
|
|
461
|
+
$[53] = video;
|
|
462
|
+
$[54] = t77;
|
|
463
|
+
$[55] = t78;
|
|
464
|
+
} else {
|
|
465
|
+
t77 = $[54];
|
|
466
|
+
t78 = $[55];
|
|
467
|
+
}
|
|
468
|
+
useEffect(t77, t78);
|
|
469
|
+
const activityDetected = useViewerActivityDetected();
|
|
470
|
+
let t79;
|
|
471
|
+
if ($[56] !== activityDetected || $[57] !== hideControls || $[58] !== showControls) {
|
|
472
|
+
t79 = () => {
|
|
473
|
+
if (activityDetected) {
|
|
474
|
+
showControls();
|
|
475
|
+
} else {
|
|
476
|
+
hideControls();
|
|
477
|
+
}
|
|
478
|
+
};
|
|
479
|
+
$[56] = activityDetected;
|
|
480
|
+
$[57] = hideControls;
|
|
481
|
+
$[58] = showControls;
|
|
482
|
+
$[59] = t79;
|
|
483
|
+
} else {
|
|
484
|
+
t79 = $[59];
|
|
485
|
+
}
|
|
486
|
+
const toggleControlsVisibility = t79;
|
|
487
|
+
useDebounce(video !== null && current ? toggleControlsVisibility : null, activityDetected, 1000);
|
|
381
488
|
const [showNextPopup, setShowNextPopup] = useState(false);
|
|
382
|
-
let
|
|
383
|
-
let
|
|
384
|
-
if ($[
|
|
385
|
-
|
|
489
|
+
let t80;
|
|
490
|
+
let t81;
|
|
491
|
+
if ($[60] !== showNextPopup) {
|
|
492
|
+
t80 = () => {
|
|
386
493
|
if (showNextPopup) {
|
|
387
494
|
setShowNextPopup(false);
|
|
388
495
|
setShowPopup(true);
|
|
389
496
|
}
|
|
390
497
|
};
|
|
391
|
-
|
|
392
|
-
$[
|
|
393
|
-
$[
|
|
394
|
-
$[
|
|
498
|
+
t81 = [showNextPopup, setShowPopup, setShowNextPopup];
|
|
499
|
+
$[60] = showNextPopup;
|
|
500
|
+
$[61] = t80;
|
|
501
|
+
$[62] = t81;
|
|
395
502
|
} else {
|
|
396
|
-
|
|
397
|
-
|
|
503
|
+
t80 = $[61];
|
|
504
|
+
t81 = $[62];
|
|
398
505
|
}
|
|
399
|
-
useEffect(
|
|
400
|
-
let
|
|
401
|
-
if ($[
|
|
402
|
-
|
|
506
|
+
useEffect(t80, t81);
|
|
507
|
+
let t82;
|
|
508
|
+
if ($[63] !== isNotInteractive || $[64] !== openWebView || $[65] !== trackScreenEvent) {
|
|
509
|
+
t82 = (e, item, index) => {
|
|
403
510
|
e.stopPropagation();
|
|
404
511
|
if (isNotInteractive) {
|
|
405
512
|
return;
|
|
406
513
|
}
|
|
407
514
|
const {
|
|
408
|
-
label:
|
|
409
|
-
heading:
|
|
410
|
-
inWebView:
|
|
411
|
-
url:
|
|
515
|
+
label: t83,
|
|
516
|
+
heading: t84,
|
|
517
|
+
inWebView: t85,
|
|
518
|
+
url: t86
|
|
412
519
|
} = item || {};
|
|
413
|
-
const itemLabel =
|
|
414
|
-
const heading =
|
|
415
|
-
const inWebView =
|
|
416
|
-
const url =
|
|
520
|
+
const itemLabel = t83 === undefined ? null : t83;
|
|
521
|
+
const heading = t84 === undefined ? null : t84;
|
|
522
|
+
const inWebView = t85 === undefined ? false : t85;
|
|
523
|
+
const url = t86 === undefined ? null : t86;
|
|
417
524
|
if (inWebView && url !== null) {
|
|
418
525
|
openWebView({
|
|
419
526
|
url
|
|
@@ -423,27 +530,27 @@ function KeypadScreen(t0) {
|
|
|
423
530
|
setShowNextPopup(true);
|
|
424
531
|
}
|
|
425
532
|
const {
|
|
426
|
-
body:
|
|
533
|
+
body: t87
|
|
427
534
|
} = heading || {};
|
|
428
|
-
const headingBody =
|
|
535
|
+
const headingBody = t87 === undefined ? null : t87;
|
|
429
536
|
const finalLabel = isString(itemLabel) ? itemLabel : (itemLabel || {}).body || null;
|
|
430
|
-
trackScreenEvent("click_item", [`#${index + 1}`, finalLabel || headingBody || ""].filter(
|
|
537
|
+
trackScreenEvent("click_item", [`#${index + 1}`, finalLabel || headingBody || ""].filter(_temp2).join(" "), {
|
|
431
538
|
linkType: "keypad_item",
|
|
432
539
|
linkUrl: url || null
|
|
433
540
|
});
|
|
434
541
|
};
|
|
435
|
-
$[
|
|
436
|
-
$[
|
|
437
|
-
$[
|
|
438
|
-
$[
|
|
439
|
-
} else {
|
|
440
|
-
|
|
441
|
-
}
|
|
442
|
-
const onItemClick =
|
|
443
|
-
let
|
|
444
|
-
if ($[
|
|
445
|
-
|
|
446
|
-
const isShowPopup =
|
|
542
|
+
$[63] = isNotInteractive;
|
|
543
|
+
$[64] = openWebView;
|
|
544
|
+
$[65] = trackScreenEvent;
|
|
545
|
+
$[66] = t82;
|
|
546
|
+
} else {
|
|
547
|
+
t82 = $[66];
|
|
548
|
+
}
|
|
549
|
+
const onItemClick = t82;
|
|
550
|
+
let t83;
|
|
551
|
+
if ($[67] !== isNotInteractive || $[68] !== trackScreenEvent) {
|
|
552
|
+
t83 = t84 => {
|
|
553
|
+
const isShowPopup = t84 === undefined ? false : t84;
|
|
447
554
|
if (isNotInteractive) {
|
|
448
555
|
return;
|
|
449
556
|
}
|
|
@@ -453,16 +560,16 @@ function KeypadScreen(t0) {
|
|
|
453
560
|
setShowPopup(false);
|
|
454
561
|
setPopupDragDisabled(false);
|
|
455
562
|
};
|
|
456
|
-
$[
|
|
457
|
-
$[
|
|
458
|
-
$[
|
|
563
|
+
$[67] = isNotInteractive;
|
|
564
|
+
$[68] = trackScreenEvent;
|
|
565
|
+
$[69] = t83;
|
|
459
566
|
} else {
|
|
460
|
-
|
|
567
|
+
t83 = $[69];
|
|
461
568
|
}
|
|
462
|
-
const onCloseModal =
|
|
463
|
-
let
|
|
464
|
-
if ($[
|
|
465
|
-
|
|
569
|
+
const onCloseModal = t83;
|
|
570
|
+
let t84;
|
|
571
|
+
if ($[70] !== isNotInteractive || $[71] !== onCloseModal || $[72] !== showPopup) {
|
|
572
|
+
t84 = e_0 => {
|
|
466
573
|
if (isNotInteractive) {
|
|
467
574
|
return;
|
|
468
575
|
}
|
|
@@ -470,48 +577,48 @@ function KeypadScreen(t0) {
|
|
|
470
577
|
e_0.stopPropagation();
|
|
471
578
|
onCloseModal(showPopup);
|
|
472
579
|
};
|
|
473
|
-
$[
|
|
474
|
-
$[
|
|
475
|
-
$[
|
|
476
|
-
$[
|
|
580
|
+
$[70] = isNotInteractive;
|
|
581
|
+
$[71] = onCloseModal;
|
|
582
|
+
$[72] = showPopup;
|
|
583
|
+
$[73] = t84;
|
|
477
584
|
} else {
|
|
478
|
-
|
|
585
|
+
t84 = $[73];
|
|
479
586
|
}
|
|
480
|
-
const onClickClose =
|
|
481
|
-
const onClickCta =
|
|
587
|
+
const onClickClose = t84;
|
|
588
|
+
const onClickCta = _temp3;
|
|
482
589
|
const [popupDragDirection, setPopupDragDirection] = useState(null);
|
|
483
|
-
let
|
|
484
|
-
if ($[
|
|
485
|
-
|
|
590
|
+
let t85;
|
|
591
|
+
if ($[74] !== height) {
|
|
592
|
+
t85 = t86 => {
|
|
486
593
|
const {
|
|
487
|
-
scrolleeHeight:
|
|
488
|
-
} =
|
|
489
|
-
const scrolleeHeight =
|
|
594
|
+
scrolleeHeight: t87
|
|
595
|
+
} = t86;
|
|
596
|
+
const scrolleeHeight = t87 === undefined ? 0 : t87;
|
|
490
597
|
if (Math.floor(scrolleeHeight) >= Math.floor(height)) {
|
|
491
598
|
setPopupDragDirection("top");
|
|
492
599
|
} else {
|
|
493
600
|
setPopupDragDirection("bottom");
|
|
494
601
|
}
|
|
495
602
|
};
|
|
496
|
-
$[
|
|
497
|
-
$[
|
|
603
|
+
$[74] = height;
|
|
604
|
+
$[75] = t85;
|
|
498
605
|
} else {
|
|
499
|
-
|
|
606
|
+
t85 = $[75];
|
|
500
607
|
}
|
|
501
|
-
const onPopupScrollHeightChange =
|
|
502
|
-
let
|
|
503
|
-
if ($[
|
|
504
|
-
|
|
608
|
+
const onPopupScrollHeightChange = t85;
|
|
609
|
+
let t86;
|
|
610
|
+
if ($[76] !== onCloseModal || $[77] !== popupDragDirection) {
|
|
611
|
+
t86 = t87 => {
|
|
505
612
|
const {
|
|
506
|
-
active:
|
|
507
|
-
movement:
|
|
508
|
-
velocity:
|
|
509
|
-
} =
|
|
510
|
-
const dragActive =
|
|
511
|
-
const [,
|
|
512
|
-
const my =
|
|
513
|
-
const [,
|
|
514
|
-
const vy =
|
|
613
|
+
active: t88,
|
|
614
|
+
movement: t89,
|
|
615
|
+
velocity: t90
|
|
616
|
+
} = t87;
|
|
617
|
+
const dragActive = t88 === undefined ? false : t88;
|
|
618
|
+
const [, t91] = t89;
|
|
619
|
+
const my = t91 === undefined ? null : t91;
|
|
620
|
+
const [, t92] = t90;
|
|
621
|
+
const vy = t92 === undefined ? null : t92;
|
|
515
622
|
const windowHeight = typeof window !== "undefined" ? window.innerHeight : 0;
|
|
516
623
|
const delta = windowHeight > 0 && my !== null ? Math.abs(my) / windowHeight : 0;
|
|
517
624
|
const reachedThreshold = vy !== null ? vy > 1 || delta > 0.3 : false;
|
|
@@ -532,37 +639,37 @@ function KeypadScreen(t0) {
|
|
|
532
639
|
}
|
|
533
640
|
return progress;
|
|
534
641
|
};
|
|
535
|
-
$[
|
|
536
|
-
$[
|
|
537
|
-
$[
|
|
642
|
+
$[76] = onCloseModal;
|
|
643
|
+
$[77] = popupDragDirection;
|
|
644
|
+
$[78] = t86;
|
|
538
645
|
} else {
|
|
539
|
-
|
|
646
|
+
t86 = $[78];
|
|
540
647
|
}
|
|
541
|
-
const computePopupProgress =
|
|
542
|
-
let
|
|
543
|
-
let
|
|
544
|
-
if ($[
|
|
545
|
-
|
|
648
|
+
const computePopupProgress = t86;
|
|
649
|
+
let t87;
|
|
650
|
+
let t88;
|
|
651
|
+
if ($[79] !== disableInteraction || $[80] !== enableInteraction || $[81] !== showPopup) {
|
|
652
|
+
t87 = () => {
|
|
546
653
|
if (showPopup) {
|
|
547
654
|
disableInteraction();
|
|
548
655
|
} else {
|
|
549
656
|
enableInteraction();
|
|
550
657
|
}
|
|
551
658
|
};
|
|
552
|
-
|
|
553
|
-
$[
|
|
554
|
-
$[
|
|
555
|
-
$[
|
|
556
|
-
$[
|
|
557
|
-
$[
|
|
659
|
+
t88 = [showPopup, enableInteraction, disableInteraction];
|
|
660
|
+
$[79] = disableInteraction;
|
|
661
|
+
$[80] = enableInteraction;
|
|
662
|
+
$[81] = showPopup;
|
|
663
|
+
$[82] = t87;
|
|
664
|
+
$[83] = t88;
|
|
558
665
|
} else {
|
|
559
|
-
|
|
560
|
-
|
|
666
|
+
t87 = $[82];
|
|
667
|
+
t88 = $[83];
|
|
561
668
|
}
|
|
562
|
-
useEffect(
|
|
563
|
-
let
|
|
564
|
-
if ($[
|
|
565
|
-
|
|
669
|
+
useEffect(t87, t88);
|
|
670
|
+
let t89;
|
|
671
|
+
if ($[84] !== current || $[85] !== isEdit || $[86] !== isInteractivePreview || $[87] !== isView || $[88] !== onCloseModal || $[89] !== showPopup) {
|
|
672
|
+
t89 = () => {
|
|
566
673
|
const handleClickOutside = function handleClickOutside(e_2) {
|
|
567
674
|
if (!current && isView || popupInnerRef.current && !popupInnerRef.current.contains(e_2.target) && containerRef.current && containerRef.current.contains(e_2.target) && !isInteractivePreview && !isEdit && showPopup) {
|
|
568
675
|
e_2.preventDefault();
|
|
@@ -575,52 +682,52 @@ function KeypadScreen(t0) {
|
|
|
575
682
|
document.removeEventListener("mouseup", handleClickOutside);
|
|
576
683
|
};
|
|
577
684
|
};
|
|
578
|
-
$[
|
|
579
|
-
$[
|
|
580
|
-
$[
|
|
581
|
-
$[
|
|
582
|
-
$[
|
|
583
|
-
$[
|
|
584
|
-
$[
|
|
685
|
+
$[84] = current;
|
|
686
|
+
$[85] = isEdit;
|
|
687
|
+
$[86] = isInteractivePreview;
|
|
688
|
+
$[87] = isView;
|
|
689
|
+
$[88] = onCloseModal;
|
|
690
|
+
$[89] = showPopup;
|
|
691
|
+
$[90] = t89;
|
|
585
692
|
} else {
|
|
586
|
-
|
|
693
|
+
t89 = $[90];
|
|
587
694
|
}
|
|
588
|
-
let
|
|
589
|
-
if ($[
|
|
590
|
-
|
|
591
|
-
$[
|
|
592
|
-
$[
|
|
593
|
-
$[
|
|
594
|
-
$[
|
|
595
|
-
$[
|
|
695
|
+
let t90;
|
|
696
|
+
if ($[91] !== current || $[92] !== isEdit || $[93] !== isInteractivePreview || $[94] !== showPopup) {
|
|
697
|
+
t90 = [current, popupInnerRef, containerRef, isInteractivePreview, isEdit, showPopup];
|
|
698
|
+
$[91] = current;
|
|
699
|
+
$[92] = isEdit;
|
|
700
|
+
$[93] = isInteractivePreview;
|
|
701
|
+
$[94] = showPopup;
|
|
702
|
+
$[95] = t90;
|
|
596
703
|
} else {
|
|
597
|
-
|
|
704
|
+
t90 = $[95];
|
|
598
705
|
}
|
|
599
|
-
useEffect(
|
|
600
|
-
let
|
|
601
|
-
if ($[
|
|
602
|
-
|
|
706
|
+
useEffect(t89, t90);
|
|
707
|
+
let t91;
|
|
708
|
+
if ($[96] === Symbol.for("react.memo_cache_sentinel")) {
|
|
709
|
+
t91 = () => {
|
|
603
710
|
setPopupDragDisabled(false);
|
|
604
711
|
};
|
|
605
|
-
$[
|
|
712
|
+
$[96] = t91;
|
|
606
713
|
} else {
|
|
607
|
-
|
|
714
|
+
t91 = $[96];
|
|
608
715
|
}
|
|
609
|
-
const onPopupScrollBottom =
|
|
610
|
-
let
|
|
611
|
-
if ($[
|
|
612
|
-
|
|
716
|
+
const onPopupScrollBottom = t91;
|
|
717
|
+
let t92;
|
|
718
|
+
if ($[97] === Symbol.for("react.memo_cache_sentinel")) {
|
|
719
|
+
t92 = () => {
|
|
613
720
|
setPopupDragDisabled(true);
|
|
614
721
|
};
|
|
615
|
-
$[
|
|
722
|
+
$[97] = t92;
|
|
616
723
|
} else {
|
|
617
|
-
|
|
724
|
+
t92 = $[97];
|
|
618
725
|
}
|
|
619
|
-
const onPopupScrollNotBottom =
|
|
620
|
-
let
|
|
621
|
-
if ($[
|
|
622
|
-
|
|
623
|
-
const trigger =
|
|
726
|
+
const onPopupScrollNotBottom = t92;
|
|
727
|
+
let t93;
|
|
728
|
+
if ($[98] !== trackScreenEvent) {
|
|
729
|
+
t93 = t94 => {
|
|
730
|
+
const trigger = t94 === undefined ? null : t94;
|
|
624
731
|
if (trigger !== null) {
|
|
625
732
|
const scrollPercent = Math.round(trigger * 100);
|
|
626
733
|
trackScreenEvent("scroll", scrollPercent, {
|
|
@@ -628,73 +735,73 @@ function KeypadScreen(t0) {
|
|
|
628
735
|
});
|
|
629
736
|
}
|
|
630
737
|
};
|
|
631
|
-
$[
|
|
632
|
-
$[
|
|
738
|
+
$[98] = trackScreenEvent;
|
|
739
|
+
$[99] = t93;
|
|
633
740
|
} else {
|
|
634
|
-
|
|
741
|
+
t93 = $[99];
|
|
635
742
|
}
|
|
636
|
-
const onScrolledTrigger =
|
|
637
|
-
let
|
|
638
|
-
if ($[
|
|
639
|
-
|
|
743
|
+
const onScrolledTrigger = t93;
|
|
744
|
+
let t94;
|
|
745
|
+
if ($[100] !== onCloseModal || $[101] !== showPopup) {
|
|
746
|
+
t94 = () => {
|
|
640
747
|
onCloseModal(showPopup);
|
|
641
748
|
};
|
|
642
|
-
$[
|
|
643
|
-
$[
|
|
644
|
-
$[
|
|
749
|
+
$[100] = onCloseModal;
|
|
750
|
+
$[101] = showPopup;
|
|
751
|
+
$[102] = t94;
|
|
645
752
|
} else {
|
|
646
|
-
|
|
753
|
+
t94 = $[102];
|
|
647
754
|
}
|
|
648
|
-
const onTap =
|
|
649
|
-
const onResolve =
|
|
650
|
-
const
|
|
651
|
-
let
|
|
652
|
-
let
|
|
653
|
-
if ($[
|
|
654
|
-
|
|
755
|
+
const onTap = t94;
|
|
756
|
+
const onResolve = _temp4;
|
|
757
|
+
const t95 = showPopup ? 0 : 1;
|
|
758
|
+
let t96;
|
|
759
|
+
let t97;
|
|
760
|
+
if ($[103] === Symbol.for("react.memo_cache_sentinel")) {
|
|
761
|
+
t96 = {
|
|
655
762
|
config: {
|
|
656
763
|
tension: 300,
|
|
657
764
|
friction: 30
|
|
658
765
|
}
|
|
659
766
|
};
|
|
660
|
-
|
|
767
|
+
t97 = {
|
|
661
768
|
filterTaps: true,
|
|
662
769
|
preventDefault: true,
|
|
663
770
|
stopPropagation: true
|
|
664
771
|
};
|
|
665
|
-
$[
|
|
666
|
-
$[
|
|
772
|
+
$[103] = t96;
|
|
773
|
+
$[104] = t97;
|
|
667
774
|
} else {
|
|
668
|
-
|
|
669
|
-
|
|
775
|
+
t96 = $[103];
|
|
776
|
+
t97 = $[104];
|
|
670
777
|
}
|
|
671
|
-
let
|
|
672
|
-
if ($[
|
|
673
|
-
|
|
778
|
+
let t98;
|
|
779
|
+
if ($[105] !== computePopupProgress || $[106] !== onTap || $[107] !== t95) {
|
|
780
|
+
t98 = {
|
|
674
781
|
disabled: true,
|
|
675
|
-
progress:
|
|
782
|
+
progress: t95,
|
|
676
783
|
computeProgress: computePopupProgress,
|
|
677
784
|
onResolve,
|
|
678
|
-
springParams:
|
|
679
|
-
dragOptions:
|
|
785
|
+
springParams: t96,
|
|
786
|
+
dragOptions: t97,
|
|
680
787
|
onTap
|
|
681
788
|
};
|
|
682
|
-
$[
|
|
683
|
-
$[
|
|
684
|
-
$[
|
|
685
|
-
$[
|
|
789
|
+
$[105] = computePopupProgress;
|
|
790
|
+
$[106] = onTap;
|
|
791
|
+
$[107] = t95;
|
|
792
|
+
$[108] = t98;
|
|
686
793
|
} else {
|
|
687
|
-
|
|
794
|
+
t98 = $[108];
|
|
688
795
|
}
|
|
689
796
|
const {
|
|
690
797
|
bind: bindPopupDrag,
|
|
691
798
|
progress: popupSpring,
|
|
692
799
|
transitioning: popupTransitioning
|
|
693
|
-
} = useDragProgress(
|
|
694
|
-
let
|
|
695
|
-
let
|
|
696
|
-
if ($[
|
|
697
|
-
|
|
800
|
+
} = useDragProgress(t98);
|
|
801
|
+
let t100;
|
|
802
|
+
let t99;
|
|
803
|
+
if ($[109] !== onCloseModal || $[110] !== showPopup) {
|
|
804
|
+
t99 = () => {
|
|
698
805
|
const keyup = e_3 => {
|
|
699
806
|
if (e_3.key === "Escape") {
|
|
700
807
|
if (showPopup) {
|
|
@@ -707,69 +814,70 @@ function KeypadScreen(t0) {
|
|
|
707
814
|
document.removeEventListener("keyup", keyup);
|
|
708
815
|
};
|
|
709
816
|
};
|
|
710
|
-
|
|
711
|
-
$[
|
|
712
|
-
$[
|
|
713
|
-
$[
|
|
714
|
-
$[
|
|
817
|
+
t100 = [showPopup, onCloseModal];
|
|
818
|
+
$[109] = onCloseModal;
|
|
819
|
+
$[110] = showPopup;
|
|
820
|
+
$[111] = t100;
|
|
821
|
+
$[112] = t99;
|
|
715
822
|
} else {
|
|
716
|
-
|
|
717
|
-
|
|
823
|
+
t100 = $[111];
|
|
824
|
+
t99 = $[112];
|
|
718
825
|
}
|
|
719
|
-
useEffect(
|
|
720
|
-
const
|
|
721
|
-
let
|
|
722
|
-
if ($[
|
|
723
|
-
let
|
|
724
|
-
if ($[
|
|
725
|
-
|
|
826
|
+
useEffect(t99, t100);
|
|
827
|
+
const t101 = items === null || items.length === 0 ? placeholders : items;
|
|
828
|
+
let t102;
|
|
829
|
+
if ($[113] !== buttonBoxStyle || $[114] !== buttonLabelBoxStyle || $[115] !== buttonLayout || $[116] !== buttonTextStyle || $[117] !== buttonVisualWidth || $[118] !== current || $[119] !== onItemClick || $[120] !== resolution || $[121] !== t101) {
|
|
830
|
+
let t103;
|
|
831
|
+
if ($[123] !== buttonBoxStyle || $[124] !== buttonLabelBoxStyle || $[125] !== buttonLayout || $[126] !== buttonTextStyle || $[127] !== buttonVisualWidth || $[128] !== current || $[129] !== onItemClick || $[130] !== resolution) {
|
|
832
|
+
t103 = (item_0, index_0) => {
|
|
726
833
|
const {
|
|
727
|
-
id:
|
|
728
|
-
label:
|
|
729
|
-
visual:
|
|
730
|
-
boxStyle:
|
|
731
|
-
heading:
|
|
732
|
-
content:
|
|
733
|
-
url:
|
|
734
|
-
inWebView:
|
|
735
|
-
largeVisual:
|
|
834
|
+
id: t104,
|
|
835
|
+
label: t105,
|
|
836
|
+
visual: t106,
|
|
837
|
+
boxStyle: t107,
|
|
838
|
+
heading: t108,
|
|
839
|
+
content: t109,
|
|
840
|
+
url: t110,
|
|
841
|
+
inWebView: t111,
|
|
842
|
+
largeVisual: t112,
|
|
843
|
+
video: itemVideo
|
|
736
844
|
} = item_0 || {};
|
|
737
|
-
const id =
|
|
738
|
-
const itemLabel_0 =
|
|
739
|
-
const visual =
|
|
740
|
-
const boxStyle =
|
|
741
|
-
const heading_0 =
|
|
742
|
-
const content =
|
|
743
|
-
const url_0 =
|
|
744
|
-
const inWebView_0 =
|
|
745
|
-
const
|
|
845
|
+
const id = t104 === undefined ? null : t104;
|
|
846
|
+
const itemLabel_0 = t105 === undefined ? null : t105;
|
|
847
|
+
const visual = t106 === undefined ? null : t106;
|
|
848
|
+
const boxStyle = t107 === undefined ? null : t107;
|
|
849
|
+
const heading_0 = t108 === undefined ? null : t108;
|
|
850
|
+
const content = t109 === undefined ? null : t109;
|
|
851
|
+
const url_0 = t110 === undefined ? null : t110;
|
|
852
|
+
const inWebView_0 = t111 === undefined ? false : t111;
|
|
853
|
+
const itemLargeVisual = t112 === undefined ? null : t112;
|
|
746
854
|
const {
|
|
747
|
-
url:
|
|
855
|
+
url: t113
|
|
748
856
|
} = visual || {};
|
|
749
|
-
const visualUrl =
|
|
857
|
+
const visualUrl = t113 === undefined ? null : t113;
|
|
750
858
|
const {
|
|
751
|
-
body:
|
|
859
|
+
body: t114
|
|
752
860
|
} = heading_0 || {};
|
|
753
|
-
const headingBody_0 =
|
|
861
|
+
const headingBody_0 = t114 === undefined ? null : t114;
|
|
754
862
|
const {
|
|
755
|
-
body:
|
|
863
|
+
body: t115
|
|
756
864
|
} = content || {};
|
|
757
|
-
const contentBody =
|
|
865
|
+
const contentBody = t115 === undefined ? null : t115;
|
|
758
866
|
const finalLabel_0 = isString(itemLabel_0) ? {
|
|
759
867
|
body: itemLabel_0
|
|
760
868
|
} : itemLabel_0 || {};
|
|
761
869
|
const {
|
|
762
|
-
textStyle:
|
|
870
|
+
textStyle: t116
|
|
763
871
|
} = finalLabel_0 || {};
|
|
764
|
-
const finalLabelTextStyle =
|
|
872
|
+
const finalLabelTextStyle = t116 === undefined ? null : t116;
|
|
765
873
|
const {
|
|
766
|
-
body:
|
|
874
|
+
body: t117
|
|
767
875
|
} = finalLabel_0 || {};
|
|
768
|
-
const finalBody =
|
|
876
|
+
const finalBody = t117 === undefined ? null : t117;
|
|
769
877
|
const key = finalBody || visualUrl || id;
|
|
770
878
|
const itemIsEmpty = finalBody === null && visual === null;
|
|
771
879
|
const isExternalLink = url_0 !== null && !inWebView_0;
|
|
772
|
-
const isPopupEmpty = (heading_0 === null || headingBody_0 === null || headingBody_0 === "") && (content === null || contentBody === null || contentBody === "") &&
|
|
880
|
+
const isPopupEmpty = (heading_0 === null || headingBody_0 === null || headingBody_0 === "") && (content === null || contentBody === null || contentBody === "") && itemLargeVisual === null && itemVideo === null;
|
|
773
881
|
return /*#__PURE__*/jsx("div", {
|
|
774
882
|
className: styles.item,
|
|
775
883
|
children: /*#__PURE__*/jsx(RichButton, {
|
|
@@ -800,36 +908,36 @@ function KeypadScreen(t0) {
|
|
|
800
908
|
})
|
|
801
909
|
}, key);
|
|
802
910
|
};
|
|
803
|
-
$[
|
|
804
|
-
$[
|
|
805
|
-
$[
|
|
806
|
-
$[
|
|
807
|
-
$[
|
|
808
|
-
$[
|
|
809
|
-
$[
|
|
810
|
-
$[
|
|
811
|
-
$[
|
|
911
|
+
$[123] = buttonBoxStyle;
|
|
912
|
+
$[124] = buttonLabelBoxStyle;
|
|
913
|
+
$[125] = buttonLayout;
|
|
914
|
+
$[126] = buttonTextStyle;
|
|
915
|
+
$[127] = buttonVisualWidth;
|
|
916
|
+
$[128] = current;
|
|
917
|
+
$[129] = onItemClick;
|
|
918
|
+
$[130] = resolution;
|
|
919
|
+
$[131] = t103;
|
|
812
920
|
} else {
|
|
813
|
-
|
|
921
|
+
t103 = $[131];
|
|
814
922
|
}
|
|
815
|
-
|
|
816
|
-
$[
|
|
817
|
-
$[
|
|
818
|
-
$[
|
|
819
|
-
$[
|
|
820
|
-
$[
|
|
821
|
-
$[
|
|
822
|
-
$[
|
|
823
|
-
$[
|
|
824
|
-
$[
|
|
825
|
-
$[
|
|
826
|
-
} else {
|
|
827
|
-
|
|
828
|
-
}
|
|
829
|
-
const gridItems =
|
|
830
|
-
let
|
|
831
|
-
if ($[
|
|
832
|
-
|
|
923
|
+
t102 = t101.map(t103);
|
|
924
|
+
$[113] = buttonBoxStyle;
|
|
925
|
+
$[114] = buttonLabelBoxStyle;
|
|
926
|
+
$[115] = buttonLayout;
|
|
927
|
+
$[116] = buttonTextStyle;
|
|
928
|
+
$[117] = buttonVisualWidth;
|
|
929
|
+
$[118] = current;
|
|
930
|
+
$[119] = onItemClick;
|
|
931
|
+
$[120] = resolution;
|
|
932
|
+
$[121] = t101;
|
|
933
|
+
$[122] = t102;
|
|
934
|
+
} else {
|
|
935
|
+
t102 = $[122];
|
|
936
|
+
}
|
|
937
|
+
const gridItems = t102;
|
|
938
|
+
let t103;
|
|
939
|
+
if ($[132] !== isPlaceholder || $[133] !== isView || $[134] !== items || $[135] !== screenState) {
|
|
940
|
+
t103 = () => {
|
|
833
941
|
if (screenState === "popup" && isPlaceholder) {
|
|
834
942
|
setPopup(placeholderPopupBoxStyles);
|
|
835
943
|
setShowPopup(true);
|
|
@@ -849,52 +957,52 @@ function KeypadScreen(t0) {
|
|
|
849
957
|
setShowPopup(false);
|
|
850
958
|
}
|
|
851
959
|
};
|
|
852
|
-
$[
|
|
853
|
-
$[
|
|
854
|
-
$[
|
|
855
|
-
$[
|
|
856
|
-
$[
|
|
960
|
+
$[132] = isPlaceholder;
|
|
961
|
+
$[133] = isView;
|
|
962
|
+
$[134] = items;
|
|
963
|
+
$[135] = screenState;
|
|
964
|
+
$[136] = t103;
|
|
857
965
|
} else {
|
|
858
|
-
|
|
966
|
+
t103 = $[136];
|
|
859
967
|
}
|
|
860
|
-
let
|
|
861
|
-
if ($[
|
|
862
|
-
|
|
863
|
-
$[
|
|
864
|
-
$[
|
|
865
|
-
$[
|
|
866
|
-
$[
|
|
968
|
+
let t104;
|
|
969
|
+
if ($[137] !== isView || $[138] !== items || $[139] !== screenState) {
|
|
970
|
+
t104 = [screenState, items, isView];
|
|
971
|
+
$[137] = isView;
|
|
972
|
+
$[138] = items;
|
|
973
|
+
$[139] = screenState;
|
|
974
|
+
$[140] = t104;
|
|
867
975
|
} else {
|
|
868
|
-
|
|
976
|
+
t104 = $[140];
|
|
869
977
|
}
|
|
870
|
-
useEffect(
|
|
871
|
-
let
|
|
872
|
-
let
|
|
873
|
-
if ($[
|
|
874
|
-
|
|
978
|
+
useEffect(t103, t104);
|
|
979
|
+
let t105;
|
|
980
|
+
let t106;
|
|
981
|
+
if ($[141] !== isView || $[142] !== popupTransitioning || $[143] !== screenState || $[144] !== showPopup) {
|
|
982
|
+
t105 = () => {
|
|
875
983
|
if (isView && screenState === null && !showPopup && !popupTransitioning) {
|
|
876
984
|
setPopup(null);
|
|
877
985
|
}
|
|
878
986
|
};
|
|
879
|
-
|
|
880
|
-
$[
|
|
881
|
-
$[
|
|
882
|
-
$[
|
|
883
|
-
$[
|
|
884
|
-
$[
|
|
885
|
-
$[
|
|
886
|
-
} else {
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
}
|
|
890
|
-
useEffect(
|
|
891
|
-
const
|
|
987
|
+
t106 = [isView, screenState, showPopup, popupTransitioning];
|
|
988
|
+
$[141] = isView;
|
|
989
|
+
$[142] = popupTransitioning;
|
|
990
|
+
$[143] = screenState;
|
|
991
|
+
$[144] = showPopup;
|
|
992
|
+
$[145] = t105;
|
|
993
|
+
$[146] = t106;
|
|
994
|
+
} else {
|
|
995
|
+
t105 = $[145];
|
|
996
|
+
t106 = $[146];
|
|
997
|
+
}
|
|
998
|
+
useEffect(t105, t106);
|
|
999
|
+
const t107 = classNames([styles.container, className, {
|
|
892
1000
|
[styles.isPlaceholder]: isPlaceholder,
|
|
893
1001
|
[styles.withSquareItems]: withSquareItems
|
|
894
1002
|
}]);
|
|
895
|
-
let
|
|
896
|
-
if ($[
|
|
897
|
-
|
|
1003
|
+
let t108;
|
|
1004
|
+
if ($[147] !== background || $[148] !== backgroundPlaying || $[149] !== customMediaRef || $[150] !== height || $[151] !== isPlaceholder || $[152] !== mediaRef || $[153] !== mediaShouldLoad || $[154] !== muted || $[155] !== resolution || $[156] !== video || $[157] !== width) {
|
|
1005
|
+
t108 = !isPlaceholder ? /*#__PURE__*/jsx(Background, {
|
|
898
1006
|
background: background,
|
|
899
1007
|
width: width,
|
|
900
1008
|
height: height,
|
|
@@ -902,26 +1010,27 @@ function KeypadScreen(t0) {
|
|
|
902
1010
|
playing: backgroundPlaying,
|
|
903
1011
|
muted: muted,
|
|
904
1012
|
shouldLoad: mediaShouldLoad,
|
|
905
|
-
mediaRef: mergeRefs(mediaRef, customMediaRef),
|
|
1013
|
+
mediaRef: mergeRefs(video === null ? mediaRef : null, customMediaRef),
|
|
906
1014
|
className: styles.background
|
|
907
1015
|
}) : null;
|
|
908
|
-
$[
|
|
909
|
-
$[
|
|
910
|
-
$[
|
|
911
|
-
$[
|
|
912
|
-
$[
|
|
913
|
-
$[
|
|
914
|
-
$[
|
|
915
|
-
$[
|
|
916
|
-
$[
|
|
917
|
-
$[
|
|
918
|
-
$[
|
|
919
|
-
|
|
920
|
-
|
|
1016
|
+
$[147] = background;
|
|
1017
|
+
$[148] = backgroundPlaying;
|
|
1018
|
+
$[149] = customMediaRef;
|
|
1019
|
+
$[150] = height;
|
|
1020
|
+
$[151] = isPlaceholder;
|
|
1021
|
+
$[152] = mediaRef;
|
|
1022
|
+
$[153] = mediaShouldLoad;
|
|
1023
|
+
$[154] = muted;
|
|
1024
|
+
$[155] = resolution;
|
|
1025
|
+
$[156] = video;
|
|
1026
|
+
$[157] = width;
|
|
1027
|
+
$[158] = t108;
|
|
1028
|
+
} else {
|
|
1029
|
+
t108 = $[158];
|
|
921
1030
|
}
|
|
922
|
-
let
|
|
923
|
-
if ($[
|
|
924
|
-
|
|
1031
|
+
let t109;
|
|
1032
|
+
if ($[159] !== isPlaceholder || $[160] !== isPreview || $[161] !== isView || $[162] !== onClickClose || $[163] !== showPopup || $[164] !== withoutCloseButton) {
|
|
1033
|
+
t109 = isView && !isPlaceholder && !withoutCloseButton ? /*#__PURE__*/jsx(animated.div, {
|
|
925
1034
|
className: classNames([styles.fixedHeader, {
|
|
926
1035
|
[styles.open]: showPopup
|
|
927
1036
|
}]),
|
|
@@ -939,44 +1048,44 @@ function KeypadScreen(t0) {
|
|
|
939
1048
|
})
|
|
940
1049
|
})
|
|
941
1050
|
}) : null;
|
|
942
|
-
$[
|
|
943
|
-
$[
|
|
944
|
-
$[
|
|
945
|
-
$[
|
|
946
|
-
$[
|
|
947
|
-
$[
|
|
948
|
-
$[
|
|
949
|
-
} else {
|
|
950
|
-
|
|
951
|
-
}
|
|
952
|
-
const
|
|
953
|
-
const
|
|
954
|
-
const
|
|
955
|
-
let
|
|
956
|
-
if ($[
|
|
957
|
-
|
|
1051
|
+
$[159] = isPlaceholder;
|
|
1052
|
+
$[160] = isPreview;
|
|
1053
|
+
$[161] = isView;
|
|
1054
|
+
$[162] = onClickClose;
|
|
1055
|
+
$[163] = showPopup;
|
|
1056
|
+
$[164] = withoutCloseButton;
|
|
1057
|
+
$[165] = t109;
|
|
1058
|
+
} else {
|
|
1059
|
+
t109 = $[165];
|
|
1060
|
+
}
|
|
1061
|
+
const t110 = !showPopup;
|
|
1062
|
+
const t111 = !showPopup;
|
|
1063
|
+
const t112 = isPreview || isPlaceholder || showPopup;
|
|
1064
|
+
let t113;
|
|
1065
|
+
if ($[166] !== current || $[167] !== footerHeight || $[168] !== hasFooter || $[169] !== hasHeader || $[170] !== headerHeight || $[171] !== isPlaceholder || $[172] !== isPreview || $[173] !== spacing || $[174] !== viewerBottomHeight || $[175] !== viewerTopHeight) {
|
|
1066
|
+
t113 = !isPlaceholder ? {
|
|
958
1067
|
paddingLeft: spacing,
|
|
959
1068
|
paddingRight: spacing,
|
|
960
1069
|
paddingTop: (hasHeader ? headerHeight : spacing) + (current && !isPreview ? viewerTopHeight : 0),
|
|
961
1070
|
paddingBottom: (hasFooter ? footerHeight : spacing) + (current && !isPreview ? viewerBottomHeight : 0)
|
|
962
1071
|
} : null;
|
|
963
|
-
$[
|
|
964
|
-
$[
|
|
965
|
-
$[
|
|
966
|
-
$[
|
|
967
|
-
$[
|
|
968
|
-
$[
|
|
969
|
-
$[
|
|
970
|
-
$[
|
|
971
|
-
$[
|
|
972
|
-
$[
|
|
973
|
-
$[
|
|
974
|
-
} else {
|
|
975
|
-
|
|
976
|
-
}
|
|
977
|
-
let
|
|
978
|
-
if ($[
|
|
979
|
-
|
|
1072
|
+
$[166] = current;
|
|
1073
|
+
$[167] = footerHeight;
|
|
1074
|
+
$[168] = hasFooter;
|
|
1075
|
+
$[169] = hasHeader;
|
|
1076
|
+
$[170] = headerHeight;
|
|
1077
|
+
$[171] = isPlaceholder;
|
|
1078
|
+
$[172] = isPreview;
|
|
1079
|
+
$[173] = spacing;
|
|
1080
|
+
$[174] = viewerBottomHeight;
|
|
1081
|
+
$[175] = viewerTopHeight;
|
|
1082
|
+
$[176] = t113;
|
|
1083
|
+
} else {
|
|
1084
|
+
t113 = $[176];
|
|
1085
|
+
}
|
|
1086
|
+
let t114;
|
|
1087
|
+
if ($[177] !== hasHeader || $[178] !== header || $[179] !== headerRef || $[180] !== isPlaceholder || $[181] !== isPreview || $[182] !== spacing || $[183] !== viewerTopHeight) {
|
|
1088
|
+
t114 = !isPlaceholder && hasHeader ? /*#__PURE__*/jsx("div", {
|
|
980
1089
|
ref: headerRef,
|
|
981
1090
|
className: styles.header,
|
|
982
1091
|
style: {
|
|
@@ -990,286 +1099,339 @@ function KeypadScreen(t0) {
|
|
|
990
1099
|
...header
|
|
991
1100
|
})
|
|
992
1101
|
}) : null;
|
|
993
|
-
$[
|
|
994
|
-
$[
|
|
995
|
-
$[
|
|
996
|
-
$[
|
|
997
|
-
$[
|
|
998
|
-
$[
|
|
999
|
-
$[
|
|
1000
|
-
$[
|
|
1102
|
+
$[177] = hasHeader;
|
|
1103
|
+
$[178] = header;
|
|
1104
|
+
$[179] = headerRef;
|
|
1105
|
+
$[180] = isPlaceholder;
|
|
1106
|
+
$[181] = isPreview;
|
|
1107
|
+
$[182] = spacing;
|
|
1108
|
+
$[183] = viewerTopHeight;
|
|
1109
|
+
$[184] = t114;
|
|
1001
1110
|
} else {
|
|
1002
|
-
|
|
1111
|
+
t114 = $[184];
|
|
1003
1112
|
}
|
|
1004
|
-
let
|
|
1005
|
-
let
|
|
1006
|
-
if ($[
|
|
1007
|
-
|
|
1113
|
+
let t115;
|
|
1114
|
+
let t116;
|
|
1115
|
+
if ($[185] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1116
|
+
t115 = /*#__PURE__*/jsx(FormattedMessage, {
|
|
1008
1117
|
id: "BSTWf8",
|
|
1009
1118
|
defaultMessage: "Title"
|
|
1010
1119
|
});
|
|
1011
|
-
|
|
1012
|
-
$[
|
|
1013
|
-
$[
|
|
1120
|
+
t116 = classNames([styles.empty, styles.emptyHeading]);
|
|
1121
|
+
$[185] = t115;
|
|
1122
|
+
$[186] = t116;
|
|
1014
1123
|
} else {
|
|
1015
|
-
|
|
1016
|
-
|
|
1124
|
+
t115 = $[185];
|
|
1125
|
+
t116 = $[186];
|
|
1017
1126
|
}
|
|
1018
|
-
const
|
|
1019
|
-
let
|
|
1020
|
-
if ($[
|
|
1021
|
-
|
|
1127
|
+
const t117 = !hasTitle;
|
|
1128
|
+
let t118;
|
|
1129
|
+
if ($[187] !== hasTitle || $[188] !== title || $[189] !== titleTextStyle) {
|
|
1130
|
+
t118 = hasTitle ? /*#__PURE__*/jsx(Heading, {
|
|
1022
1131
|
className: styles.title,
|
|
1023
1132
|
...title,
|
|
1024
1133
|
textStyle: titleTextStyle
|
|
1025
1134
|
}) : null;
|
|
1026
|
-
$[
|
|
1027
|
-
$[
|
|
1028
|
-
$[
|
|
1029
|
-
$[
|
|
1135
|
+
$[187] = hasTitle;
|
|
1136
|
+
$[188] = title;
|
|
1137
|
+
$[189] = titleTextStyle;
|
|
1138
|
+
$[190] = t118;
|
|
1030
1139
|
} else {
|
|
1031
|
-
|
|
1140
|
+
t118 = $[190];
|
|
1032
1141
|
}
|
|
1033
|
-
let
|
|
1034
|
-
if ($[
|
|
1035
|
-
|
|
1142
|
+
let t119;
|
|
1143
|
+
if ($[191] !== t117 || $[192] !== t118) {
|
|
1144
|
+
t119 = /*#__PURE__*/jsx(ScreenElement, {
|
|
1036
1145
|
placeholder: "Title",
|
|
1037
|
-
emptyLabel:
|
|
1038
|
-
emptyClassName:
|
|
1039
|
-
isEmpty:
|
|
1040
|
-
children:
|
|
1146
|
+
emptyLabel: t115,
|
|
1147
|
+
emptyClassName: t116,
|
|
1148
|
+
isEmpty: t117,
|
|
1149
|
+
children: t118
|
|
1041
1150
|
});
|
|
1042
|
-
$[
|
|
1043
|
-
$[
|
|
1044
|
-
$[
|
|
1151
|
+
$[191] = t117;
|
|
1152
|
+
$[192] = t118;
|
|
1153
|
+
$[193] = t119;
|
|
1045
1154
|
} else {
|
|
1046
|
-
|
|
1155
|
+
t119 = $[193];
|
|
1047
1156
|
}
|
|
1048
|
-
let
|
|
1049
|
-
let
|
|
1050
|
-
if ($[
|
|
1051
|
-
|
|
1157
|
+
let t120;
|
|
1158
|
+
let t121;
|
|
1159
|
+
if ($[194] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1160
|
+
t120 = /*#__PURE__*/jsx(FormattedMessage, {
|
|
1052
1161
|
id: "ZG8/oK",
|
|
1053
1162
|
defaultMessage: "Subtitle"
|
|
1054
1163
|
});
|
|
1055
|
-
|
|
1056
|
-
$[
|
|
1057
|
-
$[
|
|
1164
|
+
t121 = classNames([styles.empty, styles.emptyHeading]);
|
|
1165
|
+
$[194] = t120;
|
|
1166
|
+
$[195] = t121;
|
|
1058
1167
|
} else {
|
|
1059
|
-
|
|
1060
|
-
|
|
1168
|
+
t120 = $[194];
|
|
1169
|
+
t121 = $[195];
|
|
1061
1170
|
}
|
|
1062
|
-
const
|
|
1063
|
-
let
|
|
1064
|
-
if ($[
|
|
1065
|
-
|
|
1171
|
+
const t122 = !hasSubtitle;
|
|
1172
|
+
let t123;
|
|
1173
|
+
if ($[196] !== hasSubtitle || $[197] !== subtitle) {
|
|
1174
|
+
t123 = hasSubtitle ? /*#__PURE__*/jsx(Text, {
|
|
1066
1175
|
className: styles.subtitle,
|
|
1067
1176
|
...subtitle
|
|
1068
1177
|
}) : null;
|
|
1069
|
-
$[
|
|
1070
|
-
$[
|
|
1071
|
-
$[
|
|
1178
|
+
$[196] = hasSubtitle;
|
|
1179
|
+
$[197] = subtitle;
|
|
1180
|
+
$[198] = t123;
|
|
1072
1181
|
} else {
|
|
1073
|
-
|
|
1182
|
+
t123 = $[198];
|
|
1074
1183
|
}
|
|
1075
|
-
let
|
|
1076
|
-
if ($[
|
|
1077
|
-
|
|
1184
|
+
let t124;
|
|
1185
|
+
if ($[199] !== t122 || $[200] !== t123) {
|
|
1186
|
+
t124 = /*#__PURE__*/jsx(ScreenElement, {
|
|
1078
1187
|
placeholder: "Subtitle",
|
|
1079
|
-
emptyLabel:
|
|
1080
|
-
emptyClassName:
|
|
1081
|
-
isEmpty:
|
|
1082
|
-
children:
|
|
1188
|
+
emptyLabel: t120,
|
|
1189
|
+
emptyClassName: t121,
|
|
1190
|
+
isEmpty: t122,
|
|
1191
|
+
children: t123
|
|
1083
1192
|
});
|
|
1084
|
-
$[
|
|
1085
|
-
$[
|
|
1086
|
-
$[
|
|
1193
|
+
$[199] = t122;
|
|
1194
|
+
$[200] = t123;
|
|
1195
|
+
$[201] = t124;
|
|
1087
1196
|
} else {
|
|
1088
|
-
|
|
1197
|
+
t124 = $[201];
|
|
1089
1198
|
}
|
|
1090
|
-
let
|
|
1091
|
-
if ($[
|
|
1092
|
-
|
|
1199
|
+
let t125;
|
|
1200
|
+
if ($[202] !== isPlaceholder) {
|
|
1201
|
+
t125 = classNames([styles.grid, {
|
|
1093
1202
|
[styles.gridPlaceholder]: isPlaceholder
|
|
1094
1203
|
}]);
|
|
1095
|
-
$[
|
|
1096
|
-
$[
|
|
1204
|
+
$[202] = isPlaceholder;
|
|
1205
|
+
$[203] = t125;
|
|
1097
1206
|
} else {
|
|
1098
|
-
|
|
1207
|
+
t125 = $[203];
|
|
1099
1208
|
}
|
|
1100
|
-
const
|
|
1101
|
-
const
|
|
1102
|
-
let
|
|
1103
|
-
if ($[
|
|
1104
|
-
|
|
1105
|
-
className:
|
|
1209
|
+
const t126 = isPlaceholder ? 3 : columns;
|
|
1210
|
+
const t127 = isPlaceholder ? 2 : columnSpacing;
|
|
1211
|
+
let t128;
|
|
1212
|
+
if ($[204] !== columnAlign || $[205] !== gridItems || $[206] !== t125 || $[207] !== t126 || $[208] !== t127) {
|
|
1213
|
+
t128 = /*#__PURE__*/jsx(Keypad, {
|
|
1214
|
+
className: t125,
|
|
1106
1215
|
align: columnAlign,
|
|
1107
|
-
columns:
|
|
1108
|
-
spacing:
|
|
1216
|
+
columns: t126,
|
|
1217
|
+
spacing: t127,
|
|
1109
1218
|
items: gridItems
|
|
1110
1219
|
});
|
|
1111
|
-
$[
|
|
1112
|
-
$[
|
|
1113
|
-
$[
|
|
1114
|
-
$[
|
|
1115
|
-
$[
|
|
1116
|
-
$[
|
|
1220
|
+
$[204] = columnAlign;
|
|
1221
|
+
$[205] = gridItems;
|
|
1222
|
+
$[206] = t125;
|
|
1223
|
+
$[207] = t126;
|
|
1224
|
+
$[208] = t127;
|
|
1225
|
+
$[209] = t128;
|
|
1117
1226
|
} else {
|
|
1118
|
-
|
|
1227
|
+
t128 = $[209];
|
|
1119
1228
|
}
|
|
1120
|
-
let
|
|
1121
|
-
if ($[
|
|
1122
|
-
|
|
1229
|
+
let t129;
|
|
1230
|
+
if ($[210] !== layout || $[211] !== t113 || $[212] !== t114 || $[213] !== t119 || $[214] !== t124 || $[215] !== t128 || $[216] !== width) {
|
|
1231
|
+
t129 = /*#__PURE__*/jsxs(Layout, {
|
|
1123
1232
|
className: styles.layout,
|
|
1124
1233
|
verticalAlign: layout,
|
|
1125
1234
|
width: width,
|
|
1126
|
-
style:
|
|
1127
|
-
children: [
|
|
1235
|
+
style: t113,
|
|
1236
|
+
children: [t114, t119, t124, t128]
|
|
1128
1237
|
});
|
|
1129
|
-
$[
|
|
1130
|
-
$[
|
|
1131
|
-
$[
|
|
1132
|
-
$[
|
|
1133
|
-
$[
|
|
1134
|
-
$[
|
|
1135
|
-
$[
|
|
1136
|
-
$[
|
|
1238
|
+
$[210] = layout;
|
|
1239
|
+
$[211] = t113;
|
|
1240
|
+
$[212] = t114;
|
|
1241
|
+
$[213] = t119;
|
|
1242
|
+
$[214] = t124;
|
|
1243
|
+
$[215] = t128;
|
|
1244
|
+
$[216] = width;
|
|
1245
|
+
$[217] = t129;
|
|
1137
1246
|
} else {
|
|
1138
|
-
|
|
1247
|
+
t129 = $[217];
|
|
1139
1248
|
}
|
|
1140
|
-
let
|
|
1141
|
-
if ($[
|
|
1142
|
-
|
|
1143
|
-
$[
|
|
1249
|
+
let t130;
|
|
1250
|
+
if ($[218] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1251
|
+
t130 = classNames([styles.popupBackdrop]);
|
|
1252
|
+
$[218] = t130;
|
|
1144
1253
|
} else {
|
|
1145
|
-
|
|
1254
|
+
t130 = $[218];
|
|
1146
1255
|
}
|
|
1147
|
-
let
|
|
1148
|
-
if ($[
|
|
1149
|
-
|
|
1150
|
-
$[
|
|
1151
|
-
$[
|
|
1256
|
+
let t131;
|
|
1257
|
+
if ($[219] !== popupSpring) {
|
|
1258
|
+
t131 = popupSpring.to(_temp5);
|
|
1259
|
+
$[219] = popupSpring;
|
|
1260
|
+
$[220] = t131;
|
|
1152
1261
|
} else {
|
|
1153
|
-
|
|
1262
|
+
t131 = $[220];
|
|
1154
1263
|
}
|
|
1155
|
-
let
|
|
1156
|
-
if ($[
|
|
1157
|
-
|
|
1158
|
-
className:
|
|
1264
|
+
let t132;
|
|
1265
|
+
if ($[221] !== t131) {
|
|
1266
|
+
t132 = /*#__PURE__*/jsx(animated.div, {
|
|
1267
|
+
className: t130,
|
|
1159
1268
|
style: {
|
|
1160
|
-
opacity:
|
|
1269
|
+
opacity: t131
|
|
1161
1270
|
}
|
|
1162
1271
|
});
|
|
1163
|
-
$[
|
|
1164
|
-
$[
|
|
1272
|
+
$[221] = t131;
|
|
1273
|
+
$[222] = t132;
|
|
1165
1274
|
} else {
|
|
1166
|
-
|
|
1275
|
+
t132 = $[222];
|
|
1167
1276
|
}
|
|
1168
|
-
let
|
|
1169
|
-
if ($[
|
|
1170
|
-
|
|
1171
|
-
$[
|
|
1172
|
-
$[
|
|
1277
|
+
let t133;
|
|
1278
|
+
if ($[223] !== popupSpring) {
|
|
1279
|
+
t133 = popupSpring.to(_temp6);
|
|
1280
|
+
$[223] = popupSpring;
|
|
1281
|
+
$[224] = t133;
|
|
1173
1282
|
} else {
|
|
1174
|
-
|
|
1283
|
+
t133 = $[224];
|
|
1175
1284
|
}
|
|
1176
|
-
let
|
|
1177
|
-
if ($[
|
|
1178
|
-
|
|
1179
|
-
$[
|
|
1180
|
-
$[
|
|
1285
|
+
let t134;
|
|
1286
|
+
if ($[225] !== popupSpring) {
|
|
1287
|
+
t134 = popupSpring.to(_temp7);
|
|
1288
|
+
$[225] = popupSpring;
|
|
1289
|
+
$[226] = t134;
|
|
1181
1290
|
} else {
|
|
1182
|
-
|
|
1291
|
+
t134 = $[226];
|
|
1183
1292
|
}
|
|
1184
|
-
let
|
|
1185
|
-
if ($[
|
|
1186
|
-
|
|
1187
|
-
transform:
|
|
1188
|
-
pointerEvents:
|
|
1293
|
+
let t135;
|
|
1294
|
+
if ($[227] !== t133 || $[228] !== t134) {
|
|
1295
|
+
t135 = {
|
|
1296
|
+
transform: t133,
|
|
1297
|
+
pointerEvents: t134
|
|
1189
1298
|
};
|
|
1190
|
-
$[
|
|
1191
|
-
$[
|
|
1192
|
-
$[
|
|
1299
|
+
$[227] = t133;
|
|
1300
|
+
$[228] = t134;
|
|
1301
|
+
$[229] = t135;
|
|
1302
|
+
} else {
|
|
1303
|
+
t135 = $[229];
|
|
1304
|
+
}
|
|
1305
|
+
let t136;
|
|
1306
|
+
if ($[230] !== bindPopupDrag) {
|
|
1307
|
+
t136 = bindPopupDrag();
|
|
1308
|
+
$[230] = bindPopupDrag;
|
|
1309
|
+
$[231] = t136;
|
|
1310
|
+
} else {
|
|
1311
|
+
t136 = $[231];
|
|
1312
|
+
}
|
|
1313
|
+
const t137 = isPreview || isPlaceholder;
|
|
1314
|
+
const t138 = !showPopup ? 1 : null;
|
|
1315
|
+
const t139 = styles[popupLayoutClassName];
|
|
1316
|
+
const t140 = popupBoxStyle === null;
|
|
1317
|
+
let t141;
|
|
1318
|
+
if ($[232] !== t139 || $[233] !== t140) {
|
|
1319
|
+
t141 = classNames([styles.popupInner, t139, {
|
|
1320
|
+
[styles.withShadow]: t140
|
|
1321
|
+
}]);
|
|
1322
|
+
$[232] = t139;
|
|
1323
|
+
$[233] = t140;
|
|
1324
|
+
$[234] = t141;
|
|
1193
1325
|
} else {
|
|
1194
|
-
|
|
1326
|
+
t141 = $[234];
|
|
1195
1327
|
}
|
|
1196
|
-
let
|
|
1197
|
-
if ($[
|
|
1198
|
-
|
|
1199
|
-
$[
|
|
1200
|
-
$[208] = t124;
|
|
1328
|
+
let t142;
|
|
1329
|
+
if ($[235] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1330
|
+
t142 = getStyleFromBox(placeholderPopupBoxStyles);
|
|
1331
|
+
$[235] = t142;
|
|
1201
1332
|
} else {
|
|
1202
|
-
|
|
1333
|
+
t142 = $[235];
|
|
1203
1334
|
}
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
if ($[209] !== t127 || $[210] !== t128) {
|
|
1210
|
-
t129 = classNames([styles.popupInner, t127, {
|
|
1211
|
-
[styles.withShadow]: t128
|
|
1212
|
-
}]);
|
|
1213
|
-
$[209] = t127;
|
|
1214
|
-
$[210] = t128;
|
|
1215
|
-
$[211] = t129;
|
|
1335
|
+
let t143;
|
|
1336
|
+
if ($[236] !== popupBoxStyle) {
|
|
1337
|
+
t143 = getStyleFromBox(popupBoxStyle);
|
|
1338
|
+
$[236] = popupBoxStyle;
|
|
1339
|
+
$[237] = t143;
|
|
1216
1340
|
} else {
|
|
1217
|
-
|
|
1341
|
+
t143 = $[237];
|
|
1218
1342
|
}
|
|
1219
|
-
let
|
|
1220
|
-
if ($[
|
|
1221
|
-
|
|
1222
|
-
$[
|
|
1343
|
+
let t144;
|
|
1344
|
+
if ($[238] !== singlePopupBoxStyle) {
|
|
1345
|
+
t144 = getStyleFromBox(singlePopupBoxStyle);
|
|
1346
|
+
$[238] = singlePopupBoxStyle;
|
|
1347
|
+
$[239] = t144;
|
|
1223
1348
|
} else {
|
|
1224
|
-
|
|
1349
|
+
t144 = $[239];
|
|
1225
1350
|
}
|
|
1226
|
-
let
|
|
1227
|
-
if ($[
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1351
|
+
let t145;
|
|
1352
|
+
if ($[240] !== t143 || $[241] !== t144) {
|
|
1353
|
+
t145 = {
|
|
1354
|
+
...t142,
|
|
1355
|
+
...t143,
|
|
1356
|
+
...t144
|
|
1357
|
+
};
|
|
1358
|
+
$[240] = t143;
|
|
1359
|
+
$[241] = t144;
|
|
1360
|
+
$[242] = t145;
|
|
1231
1361
|
} else {
|
|
1232
|
-
|
|
1362
|
+
t145 = $[242];
|
|
1233
1363
|
}
|
|
1234
|
-
let
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1364
|
+
let t146;
|
|
1365
|
+
let t147;
|
|
1366
|
+
if ($[243] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1367
|
+
t146 = /*#__PURE__*/jsx(FormattedMessage, {
|
|
1368
|
+
id: "uT+qYH",
|
|
1369
|
+
defaultMessage: "Video"
|
|
1370
|
+
});
|
|
1371
|
+
t147 = classNames([styles.empty, styles.emptyVisual]);
|
|
1372
|
+
$[243] = t146;
|
|
1373
|
+
$[244] = t147;
|
|
1239
1374
|
} else {
|
|
1240
|
-
|
|
1375
|
+
t146 = $[243];
|
|
1376
|
+
t147 = $[244];
|
|
1241
1377
|
}
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1378
|
+
const t148 = video === null;
|
|
1379
|
+
let t149;
|
|
1380
|
+
if ($[245] !== customMediaRef || $[246] !== mediaRef || $[247] !== muted || $[248] !== resolution || $[249] !== video || $[250] !== videoPlaying) {
|
|
1381
|
+
t149 = video !== null ? /*#__PURE__*/jsx("div", {
|
|
1382
|
+
className: styles.popupVideoWrapper,
|
|
1383
|
+
children: /*#__PURE__*/jsx(Video, {
|
|
1384
|
+
...video,
|
|
1385
|
+
paused: !videoPlaying,
|
|
1386
|
+
muted: muted,
|
|
1387
|
+
className: styles.video,
|
|
1388
|
+
resolution: resolution,
|
|
1389
|
+
mediaRef: mergeRefs(mediaRef, customMediaRef)
|
|
1390
|
+
})
|
|
1391
|
+
}) : null;
|
|
1392
|
+
$[245] = customMediaRef;
|
|
1393
|
+
$[246] = mediaRef;
|
|
1394
|
+
$[247] = muted;
|
|
1395
|
+
$[248] = resolution;
|
|
1396
|
+
$[249] = video;
|
|
1397
|
+
$[250] = videoPlaying;
|
|
1398
|
+
$[251] = t149;
|
|
1252
1399
|
} else {
|
|
1253
|
-
|
|
1400
|
+
t149 = $[251];
|
|
1254
1401
|
}
|
|
1255
|
-
let
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1402
|
+
let t150;
|
|
1403
|
+
if ($[252] !== t148 || $[253] !== t149) {
|
|
1404
|
+
t150 = /*#__PURE__*/jsx(ScreenElement, {
|
|
1405
|
+
placeholder: "video",
|
|
1406
|
+
emptyLabel: t146,
|
|
1407
|
+
emptyClassName: t147,
|
|
1408
|
+
isEmpty: t148,
|
|
1409
|
+
children: t149
|
|
1410
|
+
});
|
|
1411
|
+
$[252] = t148;
|
|
1412
|
+
$[253] = t149;
|
|
1413
|
+
$[254] = t150;
|
|
1414
|
+
} else {
|
|
1415
|
+
t150 = $[254];
|
|
1416
|
+
}
|
|
1417
|
+
let t151;
|
|
1418
|
+
let t152;
|
|
1419
|
+
if ($[255] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1420
|
+
t151 = /*#__PURE__*/jsx(FormattedMessage, {
|
|
1259
1421
|
id: "IE7U/Q",
|
|
1260
1422
|
defaultMessage: "Heading"
|
|
1261
1423
|
});
|
|
1262
|
-
|
|
1263
|
-
$[
|
|
1264
|
-
$[
|
|
1424
|
+
t152 = classNames([styles.empty, styles.emptyHeading]);
|
|
1425
|
+
$[255] = t151;
|
|
1426
|
+
$[256] = t152;
|
|
1265
1427
|
} else {
|
|
1266
|
-
|
|
1267
|
-
|
|
1428
|
+
t151 = $[255];
|
|
1429
|
+
t152 = $[256];
|
|
1268
1430
|
}
|
|
1269
|
-
const
|
|
1270
|
-
let
|
|
1271
|
-
if ($[
|
|
1272
|
-
|
|
1431
|
+
const t153 = !hasPopupHeading;
|
|
1432
|
+
let t154;
|
|
1433
|
+
if ($[257] !== hasPopupHeading || $[258] !== headingTextStyle || $[259] !== popupHeading || $[260] !== popupHeadingTextStyle) {
|
|
1434
|
+
t154 = hasPopupHeading ? /*#__PURE__*/jsx(Heading, {
|
|
1273
1435
|
className: styles.popupHeading,
|
|
1274
1436
|
...popupHeading,
|
|
1275
1437
|
textStyle: {
|
|
@@ -1277,46 +1439,46 @@ function KeypadScreen(t0) {
|
|
|
1277
1439
|
...popupHeadingTextStyle
|
|
1278
1440
|
}
|
|
1279
1441
|
}) : null;
|
|
1280
|
-
$[
|
|
1281
|
-
$[
|
|
1282
|
-
$[
|
|
1283
|
-
$[
|
|
1284
|
-
$[
|
|
1285
|
-
} else {
|
|
1286
|
-
|
|
1287
|
-
}
|
|
1288
|
-
let
|
|
1289
|
-
if ($[
|
|
1290
|
-
|
|
1291
|
-
emptyLabel:
|
|
1292
|
-
emptyClassName:
|
|
1293
|
-
isEmpty:
|
|
1294
|
-
children:
|
|
1442
|
+
$[257] = hasPopupHeading;
|
|
1443
|
+
$[258] = headingTextStyle;
|
|
1444
|
+
$[259] = popupHeading;
|
|
1445
|
+
$[260] = popupHeadingTextStyle;
|
|
1446
|
+
$[261] = t154;
|
|
1447
|
+
} else {
|
|
1448
|
+
t154 = $[261];
|
|
1449
|
+
}
|
|
1450
|
+
let t155;
|
|
1451
|
+
if ($[262] !== t153 || $[263] !== t154) {
|
|
1452
|
+
t155 = /*#__PURE__*/jsx(ScreenElement, {
|
|
1453
|
+
emptyLabel: t151,
|
|
1454
|
+
emptyClassName: t152,
|
|
1455
|
+
isEmpty: t153,
|
|
1456
|
+
children: t154
|
|
1295
1457
|
});
|
|
1296
|
-
$[
|
|
1297
|
-
$[
|
|
1298
|
-
$[
|
|
1458
|
+
$[262] = t153;
|
|
1459
|
+
$[263] = t154;
|
|
1460
|
+
$[264] = t155;
|
|
1299
1461
|
} else {
|
|
1300
|
-
|
|
1462
|
+
t155 = $[264];
|
|
1301
1463
|
}
|
|
1302
|
-
let
|
|
1303
|
-
let
|
|
1304
|
-
if ($[
|
|
1305
|
-
|
|
1464
|
+
let t156;
|
|
1465
|
+
let t157;
|
|
1466
|
+
if ($[265] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1467
|
+
t156 = /*#__PURE__*/jsx(FormattedMessage, {
|
|
1306
1468
|
id: "JRZoe6",
|
|
1307
1469
|
defaultMessage: "Content"
|
|
1308
1470
|
});
|
|
1309
|
-
|
|
1310
|
-
$[
|
|
1311
|
-
$[
|
|
1471
|
+
t157 = classNames([styles.empty, styles.emptyContent]);
|
|
1472
|
+
$[265] = t156;
|
|
1473
|
+
$[266] = t157;
|
|
1312
1474
|
} else {
|
|
1313
|
-
|
|
1314
|
-
|
|
1475
|
+
t156 = $[265];
|
|
1476
|
+
t157 = $[266];
|
|
1315
1477
|
}
|
|
1316
|
-
const
|
|
1317
|
-
let
|
|
1318
|
-
if ($[
|
|
1319
|
-
|
|
1478
|
+
const t158 = !hasPopupContent;
|
|
1479
|
+
let t159;
|
|
1480
|
+
if ($[267] !== contentTextStyle || $[268] !== hasPopupContent || $[269] !== popupContent || $[270] !== popupContentTextStyle) {
|
|
1481
|
+
t159 = hasPopupContent ? /*#__PURE__*/jsx(Text, {
|
|
1320
1482
|
className: styles.popupContent,
|
|
1321
1483
|
...popupContent,
|
|
1322
1484
|
textStyle: {
|
|
@@ -1324,47 +1486,47 @@ function KeypadScreen(t0) {
|
|
|
1324
1486
|
...popupContentTextStyle
|
|
1325
1487
|
}
|
|
1326
1488
|
}) : null;
|
|
1327
|
-
$[
|
|
1328
|
-
$[
|
|
1329
|
-
$[
|
|
1330
|
-
$[
|
|
1331
|
-
$[
|
|
1489
|
+
$[267] = contentTextStyle;
|
|
1490
|
+
$[268] = hasPopupContent;
|
|
1491
|
+
$[269] = popupContent;
|
|
1492
|
+
$[270] = popupContentTextStyle;
|
|
1493
|
+
$[271] = t159;
|
|
1332
1494
|
} else {
|
|
1333
|
-
|
|
1495
|
+
t159 = $[271];
|
|
1334
1496
|
}
|
|
1335
|
-
let
|
|
1336
|
-
if ($[
|
|
1337
|
-
|
|
1497
|
+
let t160;
|
|
1498
|
+
if ($[272] !== t158 || $[273] !== t159) {
|
|
1499
|
+
t160 = /*#__PURE__*/jsx(ScreenElement, {
|
|
1338
1500
|
placeholder: "popupContent",
|
|
1339
|
-
emptyLabel:
|
|
1340
|
-
emptyClassName:
|
|
1341
|
-
isEmpty:
|
|
1342
|
-
children:
|
|
1501
|
+
emptyLabel: t156,
|
|
1502
|
+
emptyClassName: t157,
|
|
1503
|
+
isEmpty: t158,
|
|
1504
|
+
children: t159
|
|
1343
1505
|
});
|
|
1344
|
-
$[
|
|
1345
|
-
$[
|
|
1346
|
-
$[
|
|
1506
|
+
$[272] = t158;
|
|
1507
|
+
$[273] = t159;
|
|
1508
|
+
$[274] = t160;
|
|
1347
1509
|
} else {
|
|
1348
|
-
|
|
1510
|
+
t160 = $[274];
|
|
1349
1511
|
}
|
|
1350
|
-
let
|
|
1351
|
-
let
|
|
1352
|
-
if ($[
|
|
1353
|
-
|
|
1512
|
+
let t161;
|
|
1513
|
+
let t162;
|
|
1514
|
+
if ($[275] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1515
|
+
t161 = /*#__PURE__*/jsx(FormattedMessage, {
|
|
1354
1516
|
id: "z4Pr+g",
|
|
1355
1517
|
defaultMessage: "Visual (Image or Video)"
|
|
1356
1518
|
});
|
|
1357
|
-
|
|
1358
|
-
$[
|
|
1359
|
-
$[
|
|
1519
|
+
t162 = classNames([styles.empty, styles.emptyVisual]);
|
|
1520
|
+
$[275] = t161;
|
|
1521
|
+
$[276] = t162;
|
|
1360
1522
|
} else {
|
|
1361
|
-
|
|
1362
|
-
|
|
1523
|
+
t161 = $[275];
|
|
1524
|
+
t162 = $[276];
|
|
1363
1525
|
}
|
|
1364
|
-
const
|
|
1365
|
-
let
|
|
1366
|
-
if ($[
|
|
1367
|
-
|
|
1526
|
+
const t163 = largeVisual === null;
|
|
1527
|
+
let t164;
|
|
1528
|
+
if ($[277] !== largeVisual || $[278] !== largeVisualRatio || $[279] !== resolution) {
|
|
1529
|
+
t164 = largeVisual !== null ? /*#__PURE__*/jsx(Visual, {
|
|
1368
1530
|
className: styles.popupVisual,
|
|
1369
1531
|
imageClassName: styles.popupVisualImage,
|
|
1370
1532
|
videoClassName: styles.popupVisualVideo,
|
|
@@ -1374,46 +1536,46 @@ function KeypadScreen(t0) {
|
|
|
1374
1536
|
width: "100%",
|
|
1375
1537
|
height: "auto"
|
|
1376
1538
|
}) : null;
|
|
1377
|
-
$[
|
|
1378
|
-
$[
|
|
1379
|
-
$[
|
|
1380
|
-
$[
|
|
1539
|
+
$[277] = largeVisual;
|
|
1540
|
+
$[278] = largeVisualRatio;
|
|
1541
|
+
$[279] = resolution;
|
|
1542
|
+
$[280] = t164;
|
|
1381
1543
|
} else {
|
|
1382
|
-
|
|
1544
|
+
t164 = $[280];
|
|
1383
1545
|
}
|
|
1384
|
-
let
|
|
1385
|
-
if ($[
|
|
1386
|
-
|
|
1546
|
+
let t165;
|
|
1547
|
+
if ($[281] !== t163 || $[282] !== t164) {
|
|
1548
|
+
t165 = /*#__PURE__*/jsx(ScreenElement, {
|
|
1387
1549
|
placeholder: "image",
|
|
1388
|
-
emptyLabel:
|
|
1389
|
-
emptyClassName:
|
|
1390
|
-
isEmpty:
|
|
1391
|
-
children:
|
|
1550
|
+
emptyLabel: t161,
|
|
1551
|
+
emptyClassName: t162,
|
|
1552
|
+
isEmpty: t163,
|
|
1553
|
+
children: t164
|
|
1392
1554
|
});
|
|
1393
|
-
$[
|
|
1394
|
-
$[
|
|
1395
|
-
$[
|
|
1555
|
+
$[281] = t163;
|
|
1556
|
+
$[282] = t164;
|
|
1557
|
+
$[283] = t165;
|
|
1396
1558
|
} else {
|
|
1397
|
-
|
|
1559
|
+
t165 = $[283];
|
|
1398
1560
|
}
|
|
1399
|
-
let
|
|
1400
|
-
let
|
|
1401
|
-
if ($[
|
|
1402
|
-
|
|
1561
|
+
let t166;
|
|
1562
|
+
let t167;
|
|
1563
|
+
if ($[284] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1564
|
+
t166 = /*#__PURE__*/jsx(FormattedMessage, {
|
|
1403
1565
|
id: "N7Kj8z",
|
|
1404
1566
|
defaultMessage: "Button"
|
|
1405
1567
|
});
|
|
1406
|
-
|
|
1407
|
-
$[
|
|
1408
|
-
$[
|
|
1568
|
+
t167 = classNames([styles.empty, styles.emptyCTA]);
|
|
1569
|
+
$[284] = t166;
|
|
1570
|
+
$[285] = t167;
|
|
1409
1571
|
} else {
|
|
1410
|
-
|
|
1411
|
-
|
|
1572
|
+
t166 = $[284];
|
|
1573
|
+
t167 = $[285];
|
|
1412
1574
|
}
|
|
1413
|
-
const
|
|
1414
|
-
let
|
|
1415
|
-
if ($[
|
|
1416
|
-
|
|
1575
|
+
const t168 = popupButton === null;
|
|
1576
|
+
let t169;
|
|
1577
|
+
if ($[286] !== buttonLabel || $[287] !== buttonUrl || $[288] !== onClickCta || $[289] !== openWebView || $[290] !== popupButton || $[291] !== popupButtonBoxStyle || $[292] !== popupButtonsBoxStyle || $[293] !== popupButtonsTextStyle || $[294] !== popupInWebView) {
|
|
1578
|
+
t169 = popupButton !== null ? /*#__PURE__*/jsx(CallToAction, {
|
|
1417
1579
|
className: styles.popupCTA,
|
|
1418
1580
|
label: {
|
|
1419
1581
|
...popupButtonsTextStyle,
|
|
@@ -1429,130 +1591,131 @@ function KeypadScreen(t0) {
|
|
|
1429
1591
|
...popupButtonBoxStyle
|
|
1430
1592
|
}
|
|
1431
1593
|
}) : null;
|
|
1432
|
-
$[
|
|
1433
|
-
$[
|
|
1434
|
-
$[
|
|
1435
|
-
$[
|
|
1436
|
-
$[
|
|
1437
|
-
$[
|
|
1438
|
-
$[
|
|
1439
|
-
$[
|
|
1440
|
-
$[
|
|
1441
|
-
$[
|
|
1442
|
-
} else {
|
|
1443
|
-
|
|
1444
|
-
}
|
|
1445
|
-
let
|
|
1446
|
-
if ($[
|
|
1447
|
-
|
|
1594
|
+
$[286] = buttonLabel;
|
|
1595
|
+
$[287] = buttonUrl;
|
|
1596
|
+
$[288] = onClickCta;
|
|
1597
|
+
$[289] = openWebView;
|
|
1598
|
+
$[290] = popupButton;
|
|
1599
|
+
$[291] = popupButtonBoxStyle;
|
|
1600
|
+
$[292] = popupButtonsBoxStyle;
|
|
1601
|
+
$[293] = popupButtonsTextStyle;
|
|
1602
|
+
$[294] = popupInWebView;
|
|
1603
|
+
$[295] = t169;
|
|
1604
|
+
} else {
|
|
1605
|
+
t169 = $[295];
|
|
1606
|
+
}
|
|
1607
|
+
let t170;
|
|
1608
|
+
if ($[296] !== t168 || $[297] !== t169) {
|
|
1609
|
+
t170 = /*#__PURE__*/jsx(ScreenElement, {
|
|
1448
1610
|
placeholder: "button",
|
|
1449
|
-
emptyLabel:
|
|
1450
|
-
emptyClassName:
|
|
1451
|
-
isEmpty:
|
|
1452
|
-
children:
|
|
1611
|
+
emptyLabel: t166,
|
|
1612
|
+
emptyClassName: t167,
|
|
1613
|
+
isEmpty: t168,
|
|
1614
|
+
children: t169
|
|
1453
1615
|
});
|
|
1454
|
-
$[
|
|
1455
|
-
$[
|
|
1456
|
-
$[
|
|
1616
|
+
$[296] = t168;
|
|
1617
|
+
$[297] = t169;
|
|
1618
|
+
$[298] = t170;
|
|
1457
1619
|
} else {
|
|
1458
|
-
|
|
1620
|
+
t170 = $[298];
|
|
1459
1621
|
}
|
|
1460
|
-
let
|
|
1461
|
-
if ($[
|
|
1462
|
-
|
|
1622
|
+
let t171;
|
|
1623
|
+
if ($[299] !== t141 || $[300] !== t145 || $[301] !== t150 || $[302] !== t155 || $[303] !== t160 || $[304] !== t165 || $[305] !== t170) {
|
|
1624
|
+
t171 = /*#__PURE__*/jsxs("div", {
|
|
1463
1625
|
ref: popupInnerRef,
|
|
1464
|
-
className:
|
|
1465
|
-
style:
|
|
1466
|
-
children: [
|
|
1626
|
+
className: t141,
|
|
1627
|
+
style: t145,
|
|
1628
|
+
children: [t150, t155, t160, t165, t170]
|
|
1467
1629
|
});
|
|
1468
|
-
$[
|
|
1469
|
-
$[
|
|
1470
|
-
$[
|
|
1471
|
-
$[
|
|
1472
|
-
$[
|
|
1473
|
-
$[
|
|
1474
|
-
$[
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1630
|
+
$[299] = t141;
|
|
1631
|
+
$[300] = t145;
|
|
1632
|
+
$[301] = t150;
|
|
1633
|
+
$[302] = t155;
|
|
1634
|
+
$[303] = t160;
|
|
1635
|
+
$[304] = t165;
|
|
1636
|
+
$[305] = t170;
|
|
1637
|
+
$[306] = t171;
|
|
1638
|
+
} else {
|
|
1639
|
+
t171 = $[306];
|
|
1640
|
+
}
|
|
1641
|
+
let t172;
|
|
1642
|
+
if ($[307] !== onPopupScrollBottom || $[308] !== onPopupScrollHeightChange || $[309] !== onPopupScrollNotBottom || $[310] !== t137 || $[311] !== t138 || $[312] !== t171) {
|
|
1643
|
+
t172 = /*#__PURE__*/jsx(Scroll, {
|
|
1644
|
+
disabled: t137,
|
|
1482
1645
|
verticalAlign: "middle",
|
|
1483
1646
|
withArrow: false,
|
|
1484
|
-
scrollPosition:
|
|
1647
|
+
scrollPosition: t138,
|
|
1485
1648
|
onScrolledBottom: onPopupScrollBottom,
|
|
1486
1649
|
onScrolledNotBottom: onPopupScrollNotBottom,
|
|
1487
1650
|
onScrollHeightChange: onPopupScrollHeightChange,
|
|
1488
1651
|
className: styles.popupScroll,
|
|
1489
1652
|
withShadow: true,
|
|
1490
|
-
children:
|
|
1653
|
+
children: t171
|
|
1491
1654
|
});
|
|
1492
|
-
$[
|
|
1493
|
-
$[
|
|
1494
|
-
$[
|
|
1495
|
-
$[
|
|
1496
|
-
$[
|
|
1497
|
-
$[
|
|
1498
|
-
$[
|
|
1499
|
-
} else {
|
|
1500
|
-
|
|
1501
|
-
}
|
|
1502
|
-
let
|
|
1503
|
-
if ($[
|
|
1504
|
-
|
|
1655
|
+
$[307] = onPopupScrollBottom;
|
|
1656
|
+
$[308] = onPopupScrollHeightChange;
|
|
1657
|
+
$[309] = onPopupScrollNotBottom;
|
|
1658
|
+
$[310] = t137;
|
|
1659
|
+
$[311] = t138;
|
|
1660
|
+
$[312] = t171;
|
|
1661
|
+
$[313] = t172;
|
|
1662
|
+
} else {
|
|
1663
|
+
t172 = $[313];
|
|
1664
|
+
}
|
|
1665
|
+
let t173;
|
|
1666
|
+
if ($[314] !== t135 || $[315] !== t136 || $[316] !== t172) {
|
|
1667
|
+
t173 = /*#__PURE__*/jsx(animated.div, {
|
|
1505
1668
|
className: styles.popup,
|
|
1506
|
-
style:
|
|
1507
|
-
...
|
|
1508
|
-
children:
|
|
1669
|
+
style: t135,
|
|
1670
|
+
...t136,
|
|
1671
|
+
children: t172
|
|
1509
1672
|
});
|
|
1510
|
-
$[
|
|
1511
|
-
$[
|
|
1512
|
-
$[
|
|
1513
|
-
$[
|
|
1673
|
+
$[314] = t135;
|
|
1674
|
+
$[315] = t136;
|
|
1675
|
+
$[316] = t172;
|
|
1676
|
+
$[317] = t173;
|
|
1514
1677
|
} else {
|
|
1515
|
-
|
|
1678
|
+
t173 = $[317];
|
|
1516
1679
|
}
|
|
1517
|
-
let
|
|
1518
|
-
if ($[
|
|
1519
|
-
|
|
1520
|
-
children: [
|
|
1680
|
+
let t174;
|
|
1681
|
+
if ($[318] !== t132 || $[319] !== t173) {
|
|
1682
|
+
t174 = /*#__PURE__*/jsxs(Fragment, {
|
|
1683
|
+
children: [t132, t173]
|
|
1521
1684
|
});
|
|
1522
|
-
$[
|
|
1523
|
-
$[
|
|
1524
|
-
$[
|
|
1685
|
+
$[318] = t132;
|
|
1686
|
+
$[319] = t173;
|
|
1687
|
+
$[320] = t174;
|
|
1525
1688
|
} else {
|
|
1526
|
-
|
|
1689
|
+
t174 = $[320];
|
|
1527
1690
|
}
|
|
1528
|
-
let
|
|
1529
|
-
if ($[
|
|
1530
|
-
|
|
1691
|
+
let t175;
|
|
1692
|
+
if ($[321] !== height || $[322] !== layout || $[323] !== onScrolledTrigger || $[324] !== t110 || $[325] !== t111 || $[326] !== t112 || $[327] !== t129 || $[328] !== t174 || $[329] !== width) {
|
|
1693
|
+
t175 = /*#__PURE__*/jsxs(Scroll, {
|
|
1531
1694
|
width: width,
|
|
1532
1695
|
height: height,
|
|
1533
1696
|
verticalAlign: layout,
|
|
1534
|
-
withArrow:
|
|
1535
|
-
withShadow:
|
|
1536
|
-
disabled:
|
|
1697
|
+
withArrow: t110,
|
|
1698
|
+
withShadow: t111,
|
|
1699
|
+
disabled: t112,
|
|
1537
1700
|
onScrolledTrigger: onScrolledTrigger,
|
|
1538
|
-
children: [
|
|
1701
|
+
children: [t129, t174]
|
|
1539
1702
|
});
|
|
1540
|
-
$[
|
|
1541
|
-
$[
|
|
1542
|
-
$[
|
|
1543
|
-
$[
|
|
1544
|
-
$[
|
|
1545
|
-
$[
|
|
1546
|
-
$[
|
|
1547
|
-
$[
|
|
1548
|
-
$[
|
|
1549
|
-
$[
|
|
1550
|
-
} else {
|
|
1551
|
-
|
|
1552
|
-
}
|
|
1553
|
-
let
|
|
1554
|
-
if ($[
|
|
1555
|
-
|
|
1703
|
+
$[321] = height;
|
|
1704
|
+
$[322] = layout;
|
|
1705
|
+
$[323] = onScrolledTrigger;
|
|
1706
|
+
$[324] = t110;
|
|
1707
|
+
$[325] = t111;
|
|
1708
|
+
$[326] = t112;
|
|
1709
|
+
$[327] = t129;
|
|
1710
|
+
$[328] = t174;
|
|
1711
|
+
$[329] = width;
|
|
1712
|
+
$[330] = t175;
|
|
1713
|
+
} else {
|
|
1714
|
+
t175 = $[330];
|
|
1715
|
+
}
|
|
1716
|
+
let t176;
|
|
1717
|
+
if ($[331] !== current || $[332] !== footerProps || $[333] !== footerRef || $[334] !== hasFooter || $[335] !== isPlaceholder || $[336] !== isPreview || $[337] !== spacing || $[338] !== viewerBottomHeight || $[339] !== viewerBottomSidesWidth) {
|
|
1718
|
+
t176 = !isPlaceholder && hasFooter ? /*#__PURE__*/jsx("div", {
|
|
1556
1719
|
ref: footerRef,
|
|
1557
1720
|
className: styles.footer,
|
|
1558
1721
|
style: {
|
|
@@ -1566,72 +1729,73 @@ function KeypadScreen(t0) {
|
|
|
1566
1729
|
...footerProps
|
|
1567
1730
|
})
|
|
1568
1731
|
}) : null;
|
|
1569
|
-
$[
|
|
1570
|
-
$[
|
|
1571
|
-
$[
|
|
1572
|
-
$[
|
|
1573
|
-
$[
|
|
1574
|
-
$[
|
|
1575
|
-
$[
|
|
1576
|
-
$[
|
|
1577
|
-
$[
|
|
1578
|
-
$[
|
|
1579
|
-
} else {
|
|
1580
|
-
|
|
1581
|
-
}
|
|
1582
|
-
let
|
|
1583
|
-
if ($[
|
|
1584
|
-
|
|
1732
|
+
$[331] = current;
|
|
1733
|
+
$[332] = footerProps;
|
|
1734
|
+
$[333] = footerRef;
|
|
1735
|
+
$[334] = hasFooter;
|
|
1736
|
+
$[335] = isPlaceholder;
|
|
1737
|
+
$[336] = isPreview;
|
|
1738
|
+
$[337] = spacing;
|
|
1739
|
+
$[338] = viewerBottomHeight;
|
|
1740
|
+
$[339] = viewerBottomSidesWidth;
|
|
1741
|
+
$[340] = t176;
|
|
1742
|
+
} else {
|
|
1743
|
+
t176 = $[340];
|
|
1744
|
+
}
|
|
1745
|
+
let t177;
|
|
1746
|
+
if ($[341] !== height || $[342] !== t175 || $[343] !== t176 || $[344] !== width) {
|
|
1747
|
+
t177 = /*#__PURE__*/jsxs(Container, {
|
|
1585
1748
|
width: width,
|
|
1586
1749
|
height: height,
|
|
1587
1750
|
className: styles.inner,
|
|
1588
|
-
children: [
|
|
1751
|
+
children: [t175, t176]
|
|
1589
1752
|
});
|
|
1590
|
-
$[
|
|
1591
|
-
$[
|
|
1592
|
-
$[
|
|
1593
|
-
$[
|
|
1594
|
-
$[
|
|
1753
|
+
$[341] = height;
|
|
1754
|
+
$[342] = t175;
|
|
1755
|
+
$[343] = t176;
|
|
1756
|
+
$[344] = width;
|
|
1757
|
+
$[345] = t177;
|
|
1595
1758
|
} else {
|
|
1596
|
-
|
|
1759
|
+
t177 = $[345];
|
|
1597
1760
|
}
|
|
1598
|
-
let
|
|
1599
|
-
if ($[
|
|
1600
|
-
|
|
1761
|
+
let t178;
|
|
1762
|
+
if ($[346] !== t107 || $[347] !== t108 || $[348] !== t109 || $[349] !== t177) {
|
|
1763
|
+
t178 = /*#__PURE__*/jsxs("div", {
|
|
1601
1764
|
ref: containerRef,
|
|
1602
|
-
className:
|
|
1765
|
+
className: t107,
|
|
1603
1766
|
"data-screen-ready": true,
|
|
1604
|
-
children: [
|
|
1767
|
+
children: [t108, t109, t177]
|
|
1605
1768
|
});
|
|
1606
|
-
$[
|
|
1607
|
-
$[
|
|
1608
|
-
$[
|
|
1609
|
-
$[
|
|
1610
|
-
$[
|
|
1769
|
+
$[346] = t107;
|
|
1770
|
+
$[347] = t108;
|
|
1771
|
+
$[348] = t109;
|
|
1772
|
+
$[349] = t177;
|
|
1773
|
+
$[350] = t178;
|
|
1611
1774
|
} else {
|
|
1612
|
-
|
|
1775
|
+
t178 = $[350];
|
|
1613
1776
|
}
|
|
1614
|
-
return
|
|
1777
|
+
return t178;
|
|
1615
1778
|
}
|
|
1616
|
-
function
|
|
1779
|
+
function _temp7(p_1) {
|
|
1617
1780
|
return Math.abs(p_1) > 0.5 ? "none" : "auto";
|
|
1618
1781
|
}
|
|
1619
|
-
function
|
|
1782
|
+
function _temp6(p_0) {
|
|
1620
1783
|
return `translateY(${100 * p_0}%) scale(${1 - Math.abs(p_0 * 0.5)})`;
|
|
1621
1784
|
}
|
|
1622
|
-
function
|
|
1785
|
+
function _temp5(p) {
|
|
1623
1786
|
return 1 - Math.abs(p);
|
|
1624
1787
|
}
|
|
1625
|
-
function
|
|
1626
|
-
function
|
|
1788
|
+
function _temp4() {}
|
|
1789
|
+
function _temp3(t0) {
|
|
1627
1790
|
const e_1 = t0 === undefined ? null : t0;
|
|
1628
1791
|
if (e_1 !== null) {
|
|
1629
1792
|
e_1.stopPropagation();
|
|
1630
1793
|
}
|
|
1631
1794
|
}
|
|
1632
|
-
function
|
|
1795
|
+
function _temp2(it) {
|
|
1633
1796
|
return !isEmpty(it);
|
|
1634
1797
|
}
|
|
1798
|
+
function _temp() {}
|
|
1635
1799
|
|
|
1636
1800
|
var definition = [{
|
|
1637
1801
|
id: 'keypad',
|
|
@@ -1797,6 +1961,13 @@ var definition = [{
|
|
|
1797
1961
|
textStyle: 'text'
|
|
1798
1962
|
}
|
|
1799
1963
|
}
|
|
1964
|
+
}, {
|
|
1965
|
+
name: 'video',
|
|
1966
|
+
type: 'video-element',
|
|
1967
|
+
label: defineMessage({
|
|
1968
|
+
id: "vERejo",
|
|
1969
|
+
defaultMessage: "Video"
|
|
1970
|
+
})
|
|
1800
1971
|
}, {
|
|
1801
1972
|
name: 'largeVisual',
|
|
1802
1973
|
type: 'visual',
|