@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.
Files changed (2) hide show
  1. package/es/index.js +1095 -924
  2. 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, usePlaybackMediaRef, useScreenState, useScreenSize, useViewerContext, useViewerWebView, useViewerInteraction, useScreenRenderContext } from '@micromag/core/contexts';
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(315);
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 t18;
128
+ let t17;
127
129
  if ($[0] !== header) {
128
- t18 = isHeaderFilled(header);
130
+ t17 = isHeaderFilled(header);
129
131
  $[0] = header;
130
- $[1] = t18;
132
+ $[1] = t17;
131
133
  } else {
132
- t18 = $[1];
134
+ t17 = $[1];
133
135
  }
134
- const hasHeader = t18;
135
- let t19;
136
+ const hasHeader = t17;
137
+ let t18;
136
138
  if ($[2] !== footer) {
137
- t19 = isFooterFilled(footer);
139
+ t18 = isFooterFilled(footer);
138
140
  $[2] = footer;
139
- $[3] = t19;
141
+ $[3] = t18;
140
142
  } else {
141
- t19 = $[3];
143
+ t18 = $[3];
142
144
  }
143
- const hasFooter = t19;
144
- let t20;
145
+ const hasFooter = t18;
146
+ let t19;
145
147
  if ($[4] !== current || $[5] !== footer || $[6] !== isPreview || $[7] !== isView || $[8] !== openWebView) {
146
- t20 = getFooterProps(footer, {
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] = t20;
159
+ $[9] = t19;
158
160
  } else {
159
- t20 = $[9];
161
+ t19 = $[9];
160
162
  }
161
- const footerProps = t20;
162
- let t21;
163
+ const footerProps = t19;
164
+ let t20;
163
165
  if ($[10] !== title) {
164
- t21 = isTextFilled(title);
166
+ t20 = isTextFilled(title);
165
167
  $[10] = title;
166
- $[11] = t21;
168
+ $[11] = t20;
167
169
  } else {
168
- t21 = $[11];
170
+ t20 = $[11];
169
171
  }
170
- const hasTitle = t21;
171
- let t22;
172
+ const hasTitle = t20;
173
+ let t21;
172
174
  if ($[12] !== title) {
173
- t22 = title || {};
175
+ t21 = title || {};
174
176
  $[12] = title;
175
- $[13] = t22;
177
+ $[13] = t21;
176
178
  } else {
177
- t22 = $[13];
179
+ t21 = $[13];
178
180
  }
179
181
  const {
180
- textStyle: t23
181
- } = t22;
182
- const titleTextStyle = t23 === undefined ? null : t23;
183
- let t24;
182
+ textStyle: t22
183
+ } = t21;
184
+ const titleTextStyle = t22 === undefined ? null : t22;
185
+ let t23;
184
186
  if ($[14] !== subtitle) {
185
- t24 = isTextFilled(subtitle);
187
+ t23 = isTextFilled(subtitle);
186
188
  $[14] = subtitle;
187
- $[15] = t24;
189
+ $[15] = t23;
188
190
  } else {
189
- t24 = $[15];
191
+ t23 = $[15];
190
192
  }
191
- const hasSubtitle = t24;
193
+ const hasSubtitle = t23;
192
194
  const {
193
195
  ref: headerRef,
194
- height: t25
196
+ height: t24
195
197
  } = useDimensionObserver();
196
- const headerHeight = t25 === undefined ? 0 : t25;
198
+ const headerHeight = t24 === undefined ? 0 : t24;
197
199
  const {
198
200
  ref: footerRef,
199
- height: t26
201
+ height: t25
200
202
  } = useDimensionObserver();
201
- const footerHeight = t26 === undefined ? 0 : t26;
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: t27,
209
- columns: t28,
210
- spacing: t29,
211
- withSquareItems: t30
206
+ columnAlign: t26,
207
+ columns: t27,
208
+ spacing: t28,
209
+ withSquareItems: t29
212
210
  } = keypadLayout || {};
213
- const columnAlign = t27 === undefined ? null : t27;
214
- const columns = t28 === undefined ? null : t28;
215
- const columnSpacing = t29 === undefined ? null : t29;
216
- const withSquareItems = t30 === undefined ? false : t30;
217
- let t31;
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
- t31 = buttonStyles || {};
217
+ t30 = buttonStyles || {};
220
218
  $[16] = buttonStyles;
221
- $[17] = t31;
219
+ $[17] = t30;
222
220
  } else {
223
- t31 = $[17];
221
+ t30 = $[17];
224
222
  }
225
223
  const {
226
- layout: t32,
227
- textStyle: t33,
228
- labelBoxStyle: t34,
229
- boxStyle: t35,
230
- visualWidth: t36
231
- } = t31;
232
- const buttonLayout = t32 === undefined ? null : t32;
233
- const buttonTextStyle = t33 === undefined ? null : t33;
234
- const buttonLabelBoxStyle = t34 === undefined ? null : t34;
235
- const buttonBoxStyle = t35 === undefined ? null : t35;
236
- const buttonVisualWidth = t36 === undefined ? null : t36;
237
- let t37;
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
- t37 = popupStyles || {};
237
+ t36 = popupStyles || {};
240
238
  $[18] = popupStyles;
241
- $[19] = t37;
239
+ $[19] = t36;
242
240
  } else {
243
- t37 = $[19];
241
+ t36 = $[19];
244
242
  }
245
243
  const {
246
- layout: t38,
247
- headingTextStyle: t39,
248
- contentTextStyle: t40,
249
- button: t41,
250
- boxStyle: t42
251
- } = t37;
252
- const popupLayout = t38 === undefined ? null : t38;
253
- const headingTextStyle = t39 === undefined ? null : t39;
254
- const contentTextStyle = t40 === undefined ? null : t40;
255
- const popupButtons = t41 === undefined ? null : t41;
256
- const popupBoxStyle = t42 === undefined ? null : t42;
257
- let t43;
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
- t43 = popupButtons || {};
257
+ t42 = popupButtons || {};
260
258
  $[20] = popupButtons;
261
- $[21] = t43;
259
+ $[21] = t42;
262
260
  } else {
263
- t43 = $[21];
261
+ t42 = $[21];
264
262
  }
265
263
  const {
266
- buttonTextStyle: t44,
267
- boxStyle: t45
268
- } = t43;
269
- const popupButtonsTextStyle = t44 === undefined ? null : t44;
270
- const popupButtonsBoxStyle = t45 === undefined ? null : t45;
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 t46;
272
+ let t45;
275
273
  if ($[22] !== popup) {
276
- t46 = popup || {};
274
+ t45 = popup || {};
277
275
  $[22] = popup;
278
- $[23] = t46;
276
+ $[23] = t45;
279
277
  } else {
280
- t46 = $[23];
278
+ t45 = $[23];
281
279
  }
282
280
  const {
283
- heading: t47,
284
- content: t48,
285
- largeVisual: t49,
281
+ heading: t46,
282
+ content: t47,
283
+ largeVisual: t48,
284
+ video: t49,
286
285
  button: t50,
287
286
  popupBoxStyle: t51
288
- } = t46;
289
- const popupHeading = t47 === undefined ? null : t47;
290
- const popupContent = t48 === undefined ? null : t48;
291
- const largeVisual = t49 === undefined ? null : t49;
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
- let t52;
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
- t52 = largeVisual || {};
306
+ t53 = largeVisual || {};
297
307
  $[24] = largeVisual;
298
- $[25] = t52;
308
+ $[25] = t53;
299
309
  } else {
300
- t52 = $[25];
310
+ t53 = $[25];
301
311
  }
302
312
  const {
303
- metadata: t53
304
- } = t52;
305
- const metadata = t53 === undefined ? null : t53;
306
- let t54;
307
- if ($[26] !== metadata) {
308
- t54 = metadata || {};
309
- $[26] = metadata;
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
- t54 = $[27];
321
+ t55 = $[27];
313
322
  }
314
323
  const {
315
- width: t55,
316
- height: t56
317
- } = t54;
318
- const largeVisualWidth = t55 === undefined ? 0 : t55;
319
- const largeVisualHeight = t56 === undefined ? 0 : t56;
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 t57;
322
- if ($[28] !== popupHeading) {
323
- t57 = isTextFilled(popupHeading);
324
- $[28] = popupHeading;
325
- $[29] = t57;
330
+ let t58;
331
+ if ($[28] !== video) {
332
+ t58 = video || {};
333
+ $[28] = video;
334
+ $[29] = t58;
326
335
  } else {
327
- t57 = $[29];
336
+ t58 = $[29];
328
337
  }
329
- const hasPopupHeading = t57;
330
- let t58;
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
- t58 = popupHeading || {};
352
+ t64 = isTextFilled(popupHeading);
333
353
  $[30] = popupHeading;
334
- $[31] = t58;
354
+ $[31] = t64;
335
355
  } else {
336
- t58 = $[31];
356
+ t64 = $[31];
337
357
  }
338
- const {
339
- textStyle: t59
340
- } = t58;
341
- const popupHeadingTextStyle = t59 === undefined ? null : t59;
342
- let t60;
343
- if ($[32] !== popupContent) {
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
- t60 = $[33];
365
+ t65 = $[33];
349
366
  }
350
- const hasPopupContent = t60;
351
- let t61;
367
+ const {
368
+ textStyle: t66
369
+ } = t65;
370
+ const popupHeadingTextStyle = t66 === undefined ? null : t66;
371
+ let t67;
352
372
  if ($[34] !== popupContent) {
353
- t61 = popupContent || {};
373
+ t67 = isTextFilled(popupContent);
354
374
  $[34] = popupContent;
355
- $[35] = t61;
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
- t61 = $[35];
386
+ t68 = $[37];
358
387
  }
359
388
  const {
360
- textStyle: t62
361
- } = t61;
362
- const popupContentTextStyle = t62 === undefined ? null : t62;
363
- let t63;
364
- if ($[36] !== popupButton) {
365
- t63 = popupButton || {};
366
- $[36] = popupButton;
367
- $[37] = t63;
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
- t63 = $[37];
398
+ t70 = $[39];
370
399
  }
371
400
  const {
372
- label: t64,
373
- url: t65,
374
- inWebView: t66,
375
- boxStyle: t67
376
- } = t63;
377
- const buttonLabel = t64 === undefined ? null : t64;
378
- const buttonUrl = t65 === undefined ? null : t65;
379
- const popupInWebView = t66 === undefined ? false : t66;
380
- const popupButtonBoxStyle = t67 === undefined ? null : t67;
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 t68;
383
- let t69;
384
- if ($[38] !== showNextPopup) {
385
- t68 = () => {
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
- t69 = [showNextPopup, setShowPopup, setShowNextPopup];
392
- $[38] = showNextPopup;
393
- $[39] = t68;
394
- $[40] = t69;
498
+ t81 = [showNextPopup, setShowPopup, setShowNextPopup];
499
+ $[60] = showNextPopup;
500
+ $[61] = t80;
501
+ $[62] = t81;
395
502
  } else {
396
- t68 = $[39];
397
- t69 = $[40];
503
+ t80 = $[61];
504
+ t81 = $[62];
398
505
  }
399
- useEffect(t68, t69);
400
- let t70;
401
- if ($[41] !== isNotInteractive || $[42] !== openWebView || $[43] !== trackScreenEvent) {
402
- t70 = (e, item, index) => {
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: t71,
409
- heading: t72,
410
- inWebView: t73,
411
- url: t74
515
+ label: t83,
516
+ heading: t84,
517
+ inWebView: t85,
518
+ url: t86
412
519
  } = item || {};
413
- const itemLabel = t71 === undefined ? null : t71;
414
- const heading = t72 === undefined ? null : t72;
415
- const inWebView = t73 === undefined ? false : t73;
416
- const url = t74 === undefined ? null : t74;
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: t75
533
+ body: t87
427
534
  } = heading || {};
428
- const headingBody = t75 === undefined ? null : t75;
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(_temp).join(" "), {
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
- $[41] = isNotInteractive;
436
- $[42] = openWebView;
437
- $[43] = trackScreenEvent;
438
- $[44] = t70;
439
- } else {
440
- t70 = $[44];
441
- }
442
- const onItemClick = t70;
443
- let t71;
444
- if ($[45] !== isNotInteractive || $[46] !== trackScreenEvent) {
445
- t71 = t72 => {
446
- const isShowPopup = t72 === undefined ? false : t72;
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
- $[45] = isNotInteractive;
457
- $[46] = trackScreenEvent;
458
- $[47] = t71;
563
+ $[67] = isNotInteractive;
564
+ $[68] = trackScreenEvent;
565
+ $[69] = t83;
459
566
  } else {
460
- t71 = $[47];
567
+ t83 = $[69];
461
568
  }
462
- const onCloseModal = t71;
463
- let t72;
464
- if ($[48] !== isNotInteractive || $[49] !== onCloseModal || $[50] !== showPopup) {
465
- t72 = e_0 => {
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
- $[48] = isNotInteractive;
474
- $[49] = onCloseModal;
475
- $[50] = showPopup;
476
- $[51] = t72;
580
+ $[70] = isNotInteractive;
581
+ $[71] = onCloseModal;
582
+ $[72] = showPopup;
583
+ $[73] = t84;
477
584
  } else {
478
- t72 = $[51];
585
+ t84 = $[73];
479
586
  }
480
- const onClickClose = t72;
481
- const onClickCta = _temp2;
587
+ const onClickClose = t84;
588
+ const onClickCta = _temp3;
482
589
  const [popupDragDirection, setPopupDragDirection] = useState(null);
483
- let t73;
484
- if ($[52] !== height) {
485
- t73 = t74 => {
590
+ let t85;
591
+ if ($[74] !== height) {
592
+ t85 = t86 => {
486
593
  const {
487
- scrolleeHeight: t75
488
- } = t74;
489
- const scrolleeHeight = t75 === undefined ? 0 : t75;
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
- $[52] = height;
497
- $[53] = t73;
603
+ $[74] = height;
604
+ $[75] = t85;
498
605
  } else {
499
- t73 = $[53];
606
+ t85 = $[75];
500
607
  }
501
- const onPopupScrollHeightChange = t73;
502
- let t74;
503
- if ($[54] !== onCloseModal || $[55] !== popupDragDirection) {
504
- t74 = t75 => {
608
+ const onPopupScrollHeightChange = t85;
609
+ let t86;
610
+ if ($[76] !== onCloseModal || $[77] !== popupDragDirection) {
611
+ t86 = t87 => {
505
612
  const {
506
- active: t76,
507
- movement: t77,
508
- velocity: t78
509
- } = t75;
510
- const dragActive = t76 === undefined ? false : t76;
511
- const [, t79] = t77;
512
- const my = t79 === undefined ? null : t79;
513
- const [, t80] = t78;
514
- const vy = t80 === undefined ? null : t80;
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
- $[54] = onCloseModal;
536
- $[55] = popupDragDirection;
537
- $[56] = t74;
642
+ $[76] = onCloseModal;
643
+ $[77] = popupDragDirection;
644
+ $[78] = t86;
538
645
  } else {
539
- t74 = $[56];
646
+ t86 = $[78];
540
647
  }
541
- const computePopupProgress = t74;
542
- let t75;
543
- let t76;
544
- if ($[57] !== disableInteraction || $[58] !== enableInteraction || $[59] !== showPopup) {
545
- t75 = () => {
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
- t76 = [showPopup, enableInteraction, disableInteraction];
553
- $[57] = disableInteraction;
554
- $[58] = enableInteraction;
555
- $[59] = showPopup;
556
- $[60] = t75;
557
- $[61] = t76;
659
+ t88 = [showPopup, enableInteraction, disableInteraction];
660
+ $[79] = disableInteraction;
661
+ $[80] = enableInteraction;
662
+ $[81] = showPopup;
663
+ $[82] = t87;
664
+ $[83] = t88;
558
665
  } else {
559
- t75 = $[60];
560
- t76 = $[61];
666
+ t87 = $[82];
667
+ t88 = $[83];
561
668
  }
562
- useEffect(t75, t76);
563
- let t77;
564
- if ($[62] !== current || $[63] !== isEdit || $[64] !== isInteractivePreview || $[65] !== isView || $[66] !== onCloseModal || $[67] !== showPopup) {
565
- t77 = () => {
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
- $[62] = current;
579
- $[63] = isEdit;
580
- $[64] = isInteractivePreview;
581
- $[65] = isView;
582
- $[66] = onCloseModal;
583
- $[67] = showPopup;
584
- $[68] = t77;
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
- t77 = $[68];
693
+ t89 = $[90];
587
694
  }
588
- let t78;
589
- if ($[69] !== current || $[70] !== isEdit || $[71] !== isInteractivePreview || $[72] !== showPopup) {
590
- t78 = [current, popupInnerRef, containerRef, isInteractivePreview, isEdit, showPopup];
591
- $[69] = current;
592
- $[70] = isEdit;
593
- $[71] = isInteractivePreview;
594
- $[72] = showPopup;
595
- $[73] = t78;
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
- t78 = $[73];
704
+ t90 = $[95];
598
705
  }
599
- useEffect(t77, t78);
600
- let t79;
601
- if ($[74] === Symbol.for("react.memo_cache_sentinel")) {
602
- t79 = () => {
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
- $[74] = t79;
712
+ $[96] = t91;
606
713
  } else {
607
- t79 = $[74];
714
+ t91 = $[96];
608
715
  }
609
- const onPopupScrollBottom = t79;
610
- let t80;
611
- if ($[75] === Symbol.for("react.memo_cache_sentinel")) {
612
- t80 = () => {
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
- $[75] = t80;
722
+ $[97] = t92;
616
723
  } else {
617
- t80 = $[75];
724
+ t92 = $[97];
618
725
  }
619
- const onPopupScrollNotBottom = t80;
620
- let t81;
621
- if ($[76] !== trackScreenEvent) {
622
- t81 = t82 => {
623
- const trigger = t82 === undefined ? null : t82;
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
- $[76] = trackScreenEvent;
632
- $[77] = t81;
738
+ $[98] = trackScreenEvent;
739
+ $[99] = t93;
633
740
  } else {
634
- t81 = $[77];
741
+ t93 = $[99];
635
742
  }
636
- const onScrolledTrigger = t81;
637
- let t82;
638
- if ($[78] !== onCloseModal || $[79] !== showPopup) {
639
- t82 = () => {
743
+ const onScrolledTrigger = t93;
744
+ let t94;
745
+ if ($[100] !== onCloseModal || $[101] !== showPopup) {
746
+ t94 = () => {
640
747
  onCloseModal(showPopup);
641
748
  };
642
- $[78] = onCloseModal;
643
- $[79] = showPopup;
644
- $[80] = t82;
749
+ $[100] = onCloseModal;
750
+ $[101] = showPopup;
751
+ $[102] = t94;
645
752
  } else {
646
- t82 = $[80];
753
+ t94 = $[102];
647
754
  }
648
- const onTap = t82;
649
- const onResolve = _temp3;
650
- const t83 = showPopup ? 0 : 1;
651
- let t84;
652
- let t85;
653
- if ($[81] === Symbol.for("react.memo_cache_sentinel")) {
654
- t84 = {
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
- t85 = {
767
+ t97 = {
661
768
  filterTaps: true,
662
769
  preventDefault: true,
663
770
  stopPropagation: true
664
771
  };
665
- $[81] = t84;
666
- $[82] = t85;
772
+ $[103] = t96;
773
+ $[104] = t97;
667
774
  } else {
668
- t84 = $[81];
669
- t85 = $[82];
775
+ t96 = $[103];
776
+ t97 = $[104];
670
777
  }
671
- let t86;
672
- if ($[83] !== computePopupProgress || $[84] !== onTap || $[85] !== t83) {
673
- t86 = {
778
+ let t98;
779
+ if ($[105] !== computePopupProgress || $[106] !== onTap || $[107] !== t95) {
780
+ t98 = {
674
781
  disabled: true,
675
- progress: t83,
782
+ progress: t95,
676
783
  computeProgress: computePopupProgress,
677
784
  onResolve,
678
- springParams: t84,
679
- dragOptions: t85,
785
+ springParams: t96,
786
+ dragOptions: t97,
680
787
  onTap
681
788
  };
682
- $[83] = computePopupProgress;
683
- $[84] = onTap;
684
- $[85] = t83;
685
- $[86] = t86;
789
+ $[105] = computePopupProgress;
790
+ $[106] = onTap;
791
+ $[107] = t95;
792
+ $[108] = t98;
686
793
  } else {
687
- t86 = $[86];
794
+ t98 = $[108];
688
795
  }
689
796
  const {
690
797
  bind: bindPopupDrag,
691
798
  progress: popupSpring,
692
799
  transitioning: popupTransitioning
693
- } = useDragProgress(t86);
694
- let t87;
695
- let t88;
696
- if ($[87] !== onCloseModal || $[88] !== showPopup) {
697
- t87 = () => {
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
- t88 = [showPopup, onCloseModal];
711
- $[87] = onCloseModal;
712
- $[88] = showPopup;
713
- $[89] = t87;
714
- $[90] = t88;
817
+ t100 = [showPopup, onCloseModal];
818
+ $[109] = onCloseModal;
819
+ $[110] = showPopup;
820
+ $[111] = t100;
821
+ $[112] = t99;
715
822
  } else {
716
- t87 = $[89];
717
- t88 = $[90];
823
+ t100 = $[111];
824
+ t99 = $[112];
718
825
  }
719
- useEffect(t87, t88);
720
- const t89 = items === null || items.length === 0 ? placeholders : items;
721
- let t90;
722
- if ($[91] !== buttonBoxStyle || $[92] !== buttonLabelBoxStyle || $[93] !== buttonLayout || $[94] !== buttonTextStyle || $[95] !== buttonVisualWidth || $[96] !== current || $[97] !== onItemClick || $[98] !== resolution || $[99] !== t89) {
723
- let t91;
724
- if ($[101] !== buttonBoxStyle || $[102] !== buttonLabelBoxStyle || $[103] !== buttonLayout || $[104] !== buttonTextStyle || $[105] !== buttonVisualWidth || $[106] !== current || $[107] !== onItemClick || $[108] !== resolution) {
725
- t91 = (item_0, index_0) => {
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: t92,
728
- label: t93,
729
- visual: t94,
730
- boxStyle: t95,
731
- heading: t96,
732
- content: t97,
733
- url: t98,
734
- inWebView: t99,
735
- largeVisual: t100
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 = t92 === undefined ? null : t92;
738
- const itemLabel_0 = t93 === undefined ? null : t93;
739
- const visual = t94 === undefined ? null : t94;
740
- const boxStyle = t95 === undefined ? null : t95;
741
- const heading_0 = t96 === undefined ? null : t96;
742
- const content = t97 === undefined ? null : t97;
743
- const url_0 = t98 === undefined ? null : t98;
744
- const inWebView_0 = t99 === undefined ? false : t99;
745
- const popupLargeVisual = t100 === undefined ? null : t100;
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: t101
855
+ url: t113
748
856
  } = visual || {};
749
- const visualUrl = t101 === undefined ? null : t101;
857
+ const visualUrl = t113 === undefined ? null : t113;
750
858
  const {
751
- body: t102
859
+ body: t114
752
860
  } = heading_0 || {};
753
- const headingBody_0 = t102 === undefined ? null : t102;
861
+ const headingBody_0 = t114 === undefined ? null : t114;
754
862
  const {
755
- body: t103
863
+ body: t115
756
864
  } = content || {};
757
- const contentBody = t103 === undefined ? null : t103;
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: t104
870
+ textStyle: t116
763
871
  } = finalLabel_0 || {};
764
- const finalLabelTextStyle = t104 === undefined ? null : t104;
872
+ const finalLabelTextStyle = t116 === undefined ? null : t116;
765
873
  const {
766
- body: t105
874
+ body: t117
767
875
  } = finalLabel_0 || {};
768
- const finalBody = t105 === undefined ? null : t105;
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 === "") && popupLargeVisual === null;
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
- $[101] = buttonBoxStyle;
804
- $[102] = buttonLabelBoxStyle;
805
- $[103] = buttonLayout;
806
- $[104] = buttonTextStyle;
807
- $[105] = buttonVisualWidth;
808
- $[106] = current;
809
- $[107] = onItemClick;
810
- $[108] = resolution;
811
- $[109] = t91;
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
- t91 = $[109];
921
+ t103 = $[131];
814
922
  }
815
- t90 = t89.map(t91);
816
- $[91] = buttonBoxStyle;
817
- $[92] = buttonLabelBoxStyle;
818
- $[93] = buttonLayout;
819
- $[94] = buttonTextStyle;
820
- $[95] = buttonVisualWidth;
821
- $[96] = current;
822
- $[97] = onItemClick;
823
- $[98] = resolution;
824
- $[99] = t89;
825
- $[100] = t90;
826
- } else {
827
- t90 = $[100];
828
- }
829
- const gridItems = t90;
830
- let t91;
831
- if ($[110] !== isPlaceholder || $[111] !== isView || $[112] !== items || $[113] !== screenState) {
832
- t91 = () => {
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
- $[110] = isPlaceholder;
853
- $[111] = isView;
854
- $[112] = items;
855
- $[113] = screenState;
856
- $[114] = t91;
960
+ $[132] = isPlaceholder;
961
+ $[133] = isView;
962
+ $[134] = items;
963
+ $[135] = screenState;
964
+ $[136] = t103;
857
965
  } else {
858
- t91 = $[114];
966
+ t103 = $[136];
859
967
  }
860
- let t92;
861
- if ($[115] !== isView || $[116] !== items || $[117] !== screenState) {
862
- t92 = [screenState, items, isView];
863
- $[115] = isView;
864
- $[116] = items;
865
- $[117] = screenState;
866
- $[118] = t92;
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
- t92 = $[118];
976
+ t104 = $[140];
869
977
  }
870
- useEffect(t91, t92);
871
- let t93;
872
- let t94;
873
- if ($[119] !== isView || $[120] !== popupTransitioning || $[121] !== screenState || $[122] !== showPopup) {
874
- t93 = () => {
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
- t94 = [isView, screenState, showPopup, popupTransitioning];
880
- $[119] = isView;
881
- $[120] = popupTransitioning;
882
- $[121] = screenState;
883
- $[122] = showPopup;
884
- $[123] = t93;
885
- $[124] = t94;
886
- } else {
887
- t93 = $[123];
888
- t94 = $[124];
889
- }
890
- useEffect(t93, t94);
891
- const t95 = classNames([styles.container, className, {
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 t96;
896
- if ($[125] !== background || $[126] !== backgroundPlaying || $[127] !== customMediaRef || $[128] !== height || $[129] !== isPlaceholder || $[130] !== mediaRef || $[131] !== mediaShouldLoad || $[132] !== muted || $[133] !== resolution || $[134] !== width) {
897
- t96 = !isPlaceholder ? /*#__PURE__*/jsx(Background, {
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
- $[125] = background;
909
- $[126] = backgroundPlaying;
910
- $[127] = customMediaRef;
911
- $[128] = height;
912
- $[129] = isPlaceholder;
913
- $[130] = mediaRef;
914
- $[131] = mediaShouldLoad;
915
- $[132] = muted;
916
- $[133] = resolution;
917
- $[134] = width;
918
- $[135] = t96;
919
- } else {
920
- t96 = $[135];
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 t97;
923
- if ($[136] !== isPlaceholder || $[137] !== isPreview || $[138] !== isView || $[139] !== onClickClose || $[140] !== showPopup || $[141] !== withoutCloseButton) {
924
- t97 = isView && !isPlaceholder && !withoutCloseButton ? /*#__PURE__*/jsx(animated.div, {
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
- $[136] = isPlaceholder;
943
- $[137] = isPreview;
944
- $[138] = isView;
945
- $[139] = onClickClose;
946
- $[140] = showPopup;
947
- $[141] = withoutCloseButton;
948
- $[142] = t97;
949
- } else {
950
- t97 = $[142];
951
- }
952
- const t98 = !showPopup;
953
- const t99 = !showPopup;
954
- const t100 = isPreview || isPlaceholder || showPopup;
955
- let t101;
956
- if ($[143] !== current || $[144] !== footerHeight || $[145] !== hasFooter || $[146] !== hasHeader || $[147] !== headerHeight || $[148] !== isPlaceholder || $[149] !== isPreview || $[150] !== spacing || $[151] !== viewerBottomHeight || $[152] !== viewerTopHeight) {
957
- t101 = !isPlaceholder ? {
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
- $[143] = current;
964
- $[144] = footerHeight;
965
- $[145] = hasFooter;
966
- $[146] = hasHeader;
967
- $[147] = headerHeight;
968
- $[148] = isPlaceholder;
969
- $[149] = isPreview;
970
- $[150] = spacing;
971
- $[151] = viewerBottomHeight;
972
- $[152] = viewerTopHeight;
973
- $[153] = t101;
974
- } else {
975
- t101 = $[153];
976
- }
977
- let t102;
978
- if ($[154] !== hasHeader || $[155] !== header || $[156] !== headerRef || $[157] !== isPlaceholder || $[158] !== isPreview || $[159] !== spacing || $[160] !== viewerTopHeight) {
979
- t102 = !isPlaceholder && hasHeader ? /*#__PURE__*/jsx("div", {
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
- $[154] = hasHeader;
994
- $[155] = header;
995
- $[156] = headerRef;
996
- $[157] = isPlaceholder;
997
- $[158] = isPreview;
998
- $[159] = spacing;
999
- $[160] = viewerTopHeight;
1000
- $[161] = t102;
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
- t102 = $[161];
1111
+ t114 = $[184];
1003
1112
  }
1004
- let t103;
1005
- let t104;
1006
- if ($[162] === Symbol.for("react.memo_cache_sentinel")) {
1007
- t103 = /*#__PURE__*/jsx(FormattedMessage, {
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
- t104 = classNames([styles.empty, styles.emptyHeading]);
1012
- $[162] = t103;
1013
- $[163] = t104;
1120
+ t116 = classNames([styles.empty, styles.emptyHeading]);
1121
+ $[185] = t115;
1122
+ $[186] = t116;
1014
1123
  } else {
1015
- t103 = $[162];
1016
- t104 = $[163];
1124
+ t115 = $[185];
1125
+ t116 = $[186];
1017
1126
  }
1018
- const t105 = !hasTitle;
1019
- let t106;
1020
- if ($[164] !== hasTitle || $[165] !== title || $[166] !== titleTextStyle) {
1021
- t106 = hasTitle ? /*#__PURE__*/jsx(Heading, {
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
- $[164] = hasTitle;
1027
- $[165] = title;
1028
- $[166] = titleTextStyle;
1029
- $[167] = t106;
1135
+ $[187] = hasTitle;
1136
+ $[188] = title;
1137
+ $[189] = titleTextStyle;
1138
+ $[190] = t118;
1030
1139
  } else {
1031
- t106 = $[167];
1140
+ t118 = $[190];
1032
1141
  }
1033
- let t107;
1034
- if ($[168] !== t105 || $[169] !== t106) {
1035
- t107 = /*#__PURE__*/jsx(ScreenElement, {
1142
+ let t119;
1143
+ if ($[191] !== t117 || $[192] !== t118) {
1144
+ t119 = /*#__PURE__*/jsx(ScreenElement, {
1036
1145
  placeholder: "Title",
1037
- emptyLabel: t103,
1038
- emptyClassName: t104,
1039
- isEmpty: t105,
1040
- children: t106
1146
+ emptyLabel: t115,
1147
+ emptyClassName: t116,
1148
+ isEmpty: t117,
1149
+ children: t118
1041
1150
  });
1042
- $[168] = t105;
1043
- $[169] = t106;
1044
- $[170] = t107;
1151
+ $[191] = t117;
1152
+ $[192] = t118;
1153
+ $[193] = t119;
1045
1154
  } else {
1046
- t107 = $[170];
1155
+ t119 = $[193];
1047
1156
  }
1048
- let t108;
1049
- let t109;
1050
- if ($[171] === Symbol.for("react.memo_cache_sentinel")) {
1051
- t108 = /*#__PURE__*/jsx(FormattedMessage, {
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
- t109 = classNames([styles.empty, styles.emptyHeading]);
1056
- $[171] = t108;
1057
- $[172] = t109;
1164
+ t121 = classNames([styles.empty, styles.emptyHeading]);
1165
+ $[194] = t120;
1166
+ $[195] = t121;
1058
1167
  } else {
1059
- t108 = $[171];
1060
- t109 = $[172];
1168
+ t120 = $[194];
1169
+ t121 = $[195];
1061
1170
  }
1062
- const t110 = !hasSubtitle;
1063
- let t111;
1064
- if ($[173] !== hasSubtitle || $[174] !== subtitle) {
1065
- t111 = hasSubtitle ? /*#__PURE__*/jsx(Text, {
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
- $[173] = hasSubtitle;
1070
- $[174] = subtitle;
1071
- $[175] = t111;
1178
+ $[196] = hasSubtitle;
1179
+ $[197] = subtitle;
1180
+ $[198] = t123;
1072
1181
  } else {
1073
- t111 = $[175];
1182
+ t123 = $[198];
1074
1183
  }
1075
- let t112;
1076
- if ($[176] !== t110 || $[177] !== t111) {
1077
- t112 = /*#__PURE__*/jsx(ScreenElement, {
1184
+ let t124;
1185
+ if ($[199] !== t122 || $[200] !== t123) {
1186
+ t124 = /*#__PURE__*/jsx(ScreenElement, {
1078
1187
  placeholder: "Subtitle",
1079
- emptyLabel: t108,
1080
- emptyClassName: t109,
1081
- isEmpty: t110,
1082
- children: t111
1188
+ emptyLabel: t120,
1189
+ emptyClassName: t121,
1190
+ isEmpty: t122,
1191
+ children: t123
1083
1192
  });
1084
- $[176] = t110;
1085
- $[177] = t111;
1086
- $[178] = t112;
1193
+ $[199] = t122;
1194
+ $[200] = t123;
1195
+ $[201] = t124;
1087
1196
  } else {
1088
- t112 = $[178];
1197
+ t124 = $[201];
1089
1198
  }
1090
- let t113;
1091
- if ($[179] !== isPlaceholder) {
1092
- t113 = classNames([styles.grid, {
1199
+ let t125;
1200
+ if ($[202] !== isPlaceholder) {
1201
+ t125 = classNames([styles.grid, {
1093
1202
  [styles.gridPlaceholder]: isPlaceholder
1094
1203
  }]);
1095
- $[179] = isPlaceholder;
1096
- $[180] = t113;
1204
+ $[202] = isPlaceholder;
1205
+ $[203] = t125;
1097
1206
  } else {
1098
- t113 = $[180];
1207
+ t125 = $[203];
1099
1208
  }
1100
- const t114 = isPlaceholder ? 3 : columns;
1101
- const t115 = isPlaceholder ? 2 : columnSpacing;
1102
- let t116;
1103
- if ($[181] !== columnAlign || $[182] !== gridItems || $[183] !== t113 || $[184] !== t114 || $[185] !== t115) {
1104
- t116 = /*#__PURE__*/jsx(Keypad, {
1105
- className: t113,
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: t114,
1108
- spacing: t115,
1216
+ columns: t126,
1217
+ spacing: t127,
1109
1218
  items: gridItems
1110
1219
  });
1111
- $[181] = columnAlign;
1112
- $[182] = gridItems;
1113
- $[183] = t113;
1114
- $[184] = t114;
1115
- $[185] = t115;
1116
- $[186] = t116;
1220
+ $[204] = columnAlign;
1221
+ $[205] = gridItems;
1222
+ $[206] = t125;
1223
+ $[207] = t126;
1224
+ $[208] = t127;
1225
+ $[209] = t128;
1117
1226
  } else {
1118
- t116 = $[186];
1227
+ t128 = $[209];
1119
1228
  }
1120
- let t117;
1121
- if ($[187] !== layout || $[188] !== t101 || $[189] !== t102 || $[190] !== t107 || $[191] !== t112 || $[192] !== t116 || $[193] !== width) {
1122
- t117 = /*#__PURE__*/jsxs(Layout, {
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: t101,
1127
- children: [t102, t107, t112, t116]
1235
+ style: t113,
1236
+ children: [t114, t119, t124, t128]
1128
1237
  });
1129
- $[187] = layout;
1130
- $[188] = t101;
1131
- $[189] = t102;
1132
- $[190] = t107;
1133
- $[191] = t112;
1134
- $[192] = t116;
1135
- $[193] = width;
1136
- $[194] = t117;
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
- t117 = $[194];
1247
+ t129 = $[217];
1139
1248
  }
1140
- let t118;
1141
- if ($[195] === Symbol.for("react.memo_cache_sentinel")) {
1142
- t118 = classNames([styles.popupBackdrop]);
1143
- $[195] = t118;
1249
+ let t130;
1250
+ if ($[218] === Symbol.for("react.memo_cache_sentinel")) {
1251
+ t130 = classNames([styles.popupBackdrop]);
1252
+ $[218] = t130;
1144
1253
  } else {
1145
- t118 = $[195];
1254
+ t130 = $[218];
1146
1255
  }
1147
- let t119;
1148
- if ($[196] !== popupSpring) {
1149
- t119 = popupSpring.to(_temp4);
1150
- $[196] = popupSpring;
1151
- $[197] = t119;
1256
+ let t131;
1257
+ if ($[219] !== popupSpring) {
1258
+ t131 = popupSpring.to(_temp5);
1259
+ $[219] = popupSpring;
1260
+ $[220] = t131;
1152
1261
  } else {
1153
- t119 = $[197];
1262
+ t131 = $[220];
1154
1263
  }
1155
- let t120;
1156
- if ($[198] !== t119) {
1157
- t120 = /*#__PURE__*/jsx(animated.div, {
1158
- className: t118,
1264
+ let t132;
1265
+ if ($[221] !== t131) {
1266
+ t132 = /*#__PURE__*/jsx(animated.div, {
1267
+ className: t130,
1159
1268
  style: {
1160
- opacity: t119
1269
+ opacity: t131
1161
1270
  }
1162
1271
  });
1163
- $[198] = t119;
1164
- $[199] = t120;
1272
+ $[221] = t131;
1273
+ $[222] = t132;
1165
1274
  } else {
1166
- t120 = $[199];
1275
+ t132 = $[222];
1167
1276
  }
1168
- let t121;
1169
- if ($[200] !== popupSpring) {
1170
- t121 = popupSpring.to(_temp5);
1171
- $[200] = popupSpring;
1172
- $[201] = t121;
1277
+ let t133;
1278
+ if ($[223] !== popupSpring) {
1279
+ t133 = popupSpring.to(_temp6);
1280
+ $[223] = popupSpring;
1281
+ $[224] = t133;
1173
1282
  } else {
1174
- t121 = $[201];
1283
+ t133 = $[224];
1175
1284
  }
1176
- let t122;
1177
- if ($[202] !== popupSpring) {
1178
- t122 = popupSpring.to(_temp6);
1179
- $[202] = popupSpring;
1180
- $[203] = t122;
1285
+ let t134;
1286
+ if ($[225] !== popupSpring) {
1287
+ t134 = popupSpring.to(_temp7);
1288
+ $[225] = popupSpring;
1289
+ $[226] = t134;
1181
1290
  } else {
1182
- t122 = $[203];
1291
+ t134 = $[226];
1183
1292
  }
1184
- let t123;
1185
- if ($[204] !== t121 || $[205] !== t122) {
1186
- t123 = {
1187
- transform: t121,
1188
- pointerEvents: t122
1293
+ let t135;
1294
+ if ($[227] !== t133 || $[228] !== t134) {
1295
+ t135 = {
1296
+ transform: t133,
1297
+ pointerEvents: t134
1189
1298
  };
1190
- $[204] = t121;
1191
- $[205] = t122;
1192
- $[206] = t123;
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
- t123 = $[206];
1326
+ t141 = $[234];
1195
1327
  }
1196
- let t124;
1197
- if ($[207] !== bindPopupDrag) {
1198
- t124 = bindPopupDrag();
1199
- $[207] = bindPopupDrag;
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
- t124 = $[208];
1333
+ t142 = $[235];
1203
1334
  }
1204
- const t125 = isPreview || isPlaceholder;
1205
- const t126 = !showPopup ? 1 : null;
1206
- const t127 = styles[popupLayoutClassName];
1207
- const t128 = popupBoxStyle === null;
1208
- let t129;
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
- t129 = $[211];
1341
+ t143 = $[237];
1218
1342
  }
1219
- let t130;
1220
- if ($[212] === Symbol.for("react.memo_cache_sentinel")) {
1221
- t130 = getStyleFromBox(placeholderPopupBoxStyles);
1222
- $[212] = t130;
1343
+ let t144;
1344
+ if ($[238] !== singlePopupBoxStyle) {
1345
+ t144 = getStyleFromBox(singlePopupBoxStyle);
1346
+ $[238] = singlePopupBoxStyle;
1347
+ $[239] = t144;
1223
1348
  } else {
1224
- t130 = $[212];
1349
+ t144 = $[239];
1225
1350
  }
1226
- let t131;
1227
- if ($[213] !== popupBoxStyle) {
1228
- t131 = getStyleFromBox(popupBoxStyle);
1229
- $[213] = popupBoxStyle;
1230
- $[214] = t131;
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
- t131 = $[214];
1362
+ t145 = $[242];
1233
1363
  }
1234
- let t132;
1235
- if ($[215] !== singlePopupBoxStyle) {
1236
- t132 = getStyleFromBox(singlePopupBoxStyle);
1237
- $[215] = singlePopupBoxStyle;
1238
- $[216] = t132;
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
- t132 = $[216];
1375
+ t146 = $[243];
1376
+ t147 = $[244];
1241
1377
  }
1242
- let t133;
1243
- if ($[217] !== t131 || $[218] !== t132) {
1244
- t133 = {
1245
- ...t130,
1246
- ...t131,
1247
- ...t132
1248
- };
1249
- $[217] = t131;
1250
- $[218] = t132;
1251
- $[219] = t133;
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
- t133 = $[219];
1400
+ t149 = $[251];
1254
1401
  }
1255
- let t134;
1256
- let t135;
1257
- if ($[220] === Symbol.for("react.memo_cache_sentinel")) {
1258
- t134 = /*#__PURE__*/jsx(FormattedMessage, {
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
- t135 = classNames([styles.empty, styles.emptyHeading]);
1263
- $[220] = t134;
1264
- $[221] = t135;
1424
+ t152 = classNames([styles.empty, styles.emptyHeading]);
1425
+ $[255] = t151;
1426
+ $[256] = t152;
1265
1427
  } else {
1266
- t134 = $[220];
1267
- t135 = $[221];
1428
+ t151 = $[255];
1429
+ t152 = $[256];
1268
1430
  }
1269
- const t136 = !hasPopupHeading;
1270
- let t137;
1271
- if ($[222] !== hasPopupHeading || $[223] !== headingTextStyle || $[224] !== popupHeading || $[225] !== popupHeadingTextStyle) {
1272
- t137 = hasPopupHeading ? /*#__PURE__*/jsx(Heading, {
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
- $[222] = hasPopupHeading;
1281
- $[223] = headingTextStyle;
1282
- $[224] = popupHeading;
1283
- $[225] = popupHeadingTextStyle;
1284
- $[226] = t137;
1285
- } else {
1286
- t137 = $[226];
1287
- }
1288
- let t138;
1289
- if ($[227] !== t136 || $[228] !== t137) {
1290
- t138 = /*#__PURE__*/jsx(ScreenElement, {
1291
- emptyLabel: t134,
1292
- emptyClassName: t135,
1293
- isEmpty: t136,
1294
- children: t137
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
- $[227] = t136;
1297
- $[228] = t137;
1298
- $[229] = t138;
1458
+ $[262] = t153;
1459
+ $[263] = t154;
1460
+ $[264] = t155;
1299
1461
  } else {
1300
- t138 = $[229];
1462
+ t155 = $[264];
1301
1463
  }
1302
- let t139;
1303
- let t140;
1304
- if ($[230] === Symbol.for("react.memo_cache_sentinel")) {
1305
- t139 = /*#__PURE__*/jsx(FormattedMessage, {
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
- t140 = classNames([styles.empty, styles.emptyContent]);
1310
- $[230] = t139;
1311
- $[231] = t140;
1471
+ t157 = classNames([styles.empty, styles.emptyContent]);
1472
+ $[265] = t156;
1473
+ $[266] = t157;
1312
1474
  } else {
1313
- t139 = $[230];
1314
- t140 = $[231];
1475
+ t156 = $[265];
1476
+ t157 = $[266];
1315
1477
  }
1316
- const t141 = !hasPopupContent;
1317
- let t142;
1318
- if ($[232] !== contentTextStyle || $[233] !== hasPopupContent || $[234] !== popupContent || $[235] !== popupContentTextStyle) {
1319
- t142 = hasPopupContent ? /*#__PURE__*/jsx(Text, {
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
- $[232] = contentTextStyle;
1328
- $[233] = hasPopupContent;
1329
- $[234] = popupContent;
1330
- $[235] = popupContentTextStyle;
1331
- $[236] = t142;
1489
+ $[267] = contentTextStyle;
1490
+ $[268] = hasPopupContent;
1491
+ $[269] = popupContent;
1492
+ $[270] = popupContentTextStyle;
1493
+ $[271] = t159;
1332
1494
  } else {
1333
- t142 = $[236];
1495
+ t159 = $[271];
1334
1496
  }
1335
- let t143;
1336
- if ($[237] !== t141 || $[238] !== t142) {
1337
- t143 = /*#__PURE__*/jsx(ScreenElement, {
1497
+ let t160;
1498
+ if ($[272] !== t158 || $[273] !== t159) {
1499
+ t160 = /*#__PURE__*/jsx(ScreenElement, {
1338
1500
  placeholder: "popupContent",
1339
- emptyLabel: t139,
1340
- emptyClassName: t140,
1341
- isEmpty: t141,
1342
- children: t142
1501
+ emptyLabel: t156,
1502
+ emptyClassName: t157,
1503
+ isEmpty: t158,
1504
+ children: t159
1343
1505
  });
1344
- $[237] = t141;
1345
- $[238] = t142;
1346
- $[239] = t143;
1506
+ $[272] = t158;
1507
+ $[273] = t159;
1508
+ $[274] = t160;
1347
1509
  } else {
1348
- t143 = $[239];
1510
+ t160 = $[274];
1349
1511
  }
1350
- let t144;
1351
- let t145;
1352
- if ($[240] === Symbol.for("react.memo_cache_sentinel")) {
1353
- t144 = /*#__PURE__*/jsx(FormattedMessage, {
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
- t145 = classNames([styles.empty, styles.emptyVisual]);
1358
- $[240] = t144;
1359
- $[241] = t145;
1519
+ t162 = classNames([styles.empty, styles.emptyVisual]);
1520
+ $[275] = t161;
1521
+ $[276] = t162;
1360
1522
  } else {
1361
- t144 = $[240];
1362
- t145 = $[241];
1523
+ t161 = $[275];
1524
+ t162 = $[276];
1363
1525
  }
1364
- const t146 = largeVisual === null;
1365
- let t147;
1366
- if ($[242] !== largeVisual || $[243] !== largeVisualRatio || $[244] !== resolution) {
1367
- t147 = largeVisual !== null ? /*#__PURE__*/jsx(Visual, {
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
- $[242] = largeVisual;
1378
- $[243] = largeVisualRatio;
1379
- $[244] = resolution;
1380
- $[245] = t147;
1539
+ $[277] = largeVisual;
1540
+ $[278] = largeVisualRatio;
1541
+ $[279] = resolution;
1542
+ $[280] = t164;
1381
1543
  } else {
1382
- t147 = $[245];
1544
+ t164 = $[280];
1383
1545
  }
1384
- let t148;
1385
- if ($[246] !== t146 || $[247] !== t147) {
1386
- t148 = /*#__PURE__*/jsx(ScreenElement, {
1546
+ let t165;
1547
+ if ($[281] !== t163 || $[282] !== t164) {
1548
+ t165 = /*#__PURE__*/jsx(ScreenElement, {
1387
1549
  placeholder: "image",
1388
- emptyLabel: t144,
1389
- emptyClassName: t145,
1390
- isEmpty: t146,
1391
- children: t147
1550
+ emptyLabel: t161,
1551
+ emptyClassName: t162,
1552
+ isEmpty: t163,
1553
+ children: t164
1392
1554
  });
1393
- $[246] = t146;
1394
- $[247] = t147;
1395
- $[248] = t148;
1555
+ $[281] = t163;
1556
+ $[282] = t164;
1557
+ $[283] = t165;
1396
1558
  } else {
1397
- t148 = $[248];
1559
+ t165 = $[283];
1398
1560
  }
1399
- let t149;
1400
- let t150;
1401
- if ($[249] === Symbol.for("react.memo_cache_sentinel")) {
1402
- t149 = /*#__PURE__*/jsx(FormattedMessage, {
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
- t150 = classNames([styles.empty, styles.emptyCTA]);
1407
- $[249] = t149;
1408
- $[250] = t150;
1568
+ t167 = classNames([styles.empty, styles.emptyCTA]);
1569
+ $[284] = t166;
1570
+ $[285] = t167;
1409
1571
  } else {
1410
- t149 = $[249];
1411
- t150 = $[250];
1572
+ t166 = $[284];
1573
+ t167 = $[285];
1412
1574
  }
1413
- const t151 = popupButton === null;
1414
- let t152;
1415
- if ($[251] !== buttonLabel || $[252] !== buttonUrl || $[253] !== onClickCta || $[254] !== openWebView || $[255] !== popupButton || $[256] !== popupButtonBoxStyle || $[257] !== popupButtonsBoxStyle || $[258] !== popupButtonsTextStyle || $[259] !== popupInWebView) {
1416
- t152 = popupButton !== null ? /*#__PURE__*/jsx(CallToAction, {
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
- $[251] = buttonLabel;
1433
- $[252] = buttonUrl;
1434
- $[253] = onClickCta;
1435
- $[254] = openWebView;
1436
- $[255] = popupButton;
1437
- $[256] = popupButtonBoxStyle;
1438
- $[257] = popupButtonsBoxStyle;
1439
- $[258] = popupButtonsTextStyle;
1440
- $[259] = popupInWebView;
1441
- $[260] = t152;
1442
- } else {
1443
- t152 = $[260];
1444
- }
1445
- let t153;
1446
- if ($[261] !== t151 || $[262] !== t152) {
1447
- t153 = /*#__PURE__*/jsx(ScreenElement, {
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: t149,
1450
- emptyClassName: t150,
1451
- isEmpty: t151,
1452
- children: t152
1611
+ emptyLabel: t166,
1612
+ emptyClassName: t167,
1613
+ isEmpty: t168,
1614
+ children: t169
1453
1615
  });
1454
- $[261] = t151;
1455
- $[262] = t152;
1456
- $[263] = t153;
1616
+ $[296] = t168;
1617
+ $[297] = t169;
1618
+ $[298] = t170;
1457
1619
  } else {
1458
- t153 = $[263];
1620
+ t170 = $[298];
1459
1621
  }
1460
- let t154;
1461
- if ($[264] !== t129 || $[265] !== t133 || $[266] !== t138 || $[267] !== t143 || $[268] !== t148 || $[269] !== t153) {
1462
- t154 = /*#__PURE__*/jsxs("div", {
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: t129,
1465
- style: t133,
1466
- children: [t138, t143, t148, t153]
1626
+ className: t141,
1627
+ style: t145,
1628
+ children: [t150, t155, t160, t165, t170]
1467
1629
  });
1468
- $[264] = t129;
1469
- $[265] = t133;
1470
- $[266] = t138;
1471
- $[267] = t143;
1472
- $[268] = t148;
1473
- $[269] = t153;
1474
- $[270] = t154;
1475
- } else {
1476
- t154 = $[270];
1477
- }
1478
- let t155;
1479
- if ($[271] !== onPopupScrollBottom || $[272] !== onPopupScrollHeightChange || $[273] !== onPopupScrollNotBottom || $[274] !== t125 || $[275] !== t126 || $[276] !== t154) {
1480
- t155 = /*#__PURE__*/jsx(Scroll, {
1481
- disabled: t125,
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: t126,
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: t154
1653
+ children: t171
1491
1654
  });
1492
- $[271] = onPopupScrollBottom;
1493
- $[272] = onPopupScrollHeightChange;
1494
- $[273] = onPopupScrollNotBottom;
1495
- $[274] = t125;
1496
- $[275] = t126;
1497
- $[276] = t154;
1498
- $[277] = t155;
1499
- } else {
1500
- t155 = $[277];
1501
- }
1502
- let t156;
1503
- if ($[278] !== t123 || $[279] !== t124 || $[280] !== t155) {
1504
- t156 = /*#__PURE__*/jsx(animated.div, {
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: t123,
1507
- ...t124,
1508
- children: t155
1669
+ style: t135,
1670
+ ...t136,
1671
+ children: t172
1509
1672
  });
1510
- $[278] = t123;
1511
- $[279] = t124;
1512
- $[280] = t155;
1513
- $[281] = t156;
1673
+ $[314] = t135;
1674
+ $[315] = t136;
1675
+ $[316] = t172;
1676
+ $[317] = t173;
1514
1677
  } else {
1515
- t156 = $[281];
1678
+ t173 = $[317];
1516
1679
  }
1517
- let t157;
1518
- if ($[282] !== t120 || $[283] !== t156) {
1519
- t157 = /*#__PURE__*/jsxs(Fragment, {
1520
- children: [t120, t156]
1680
+ let t174;
1681
+ if ($[318] !== t132 || $[319] !== t173) {
1682
+ t174 = /*#__PURE__*/jsxs(Fragment, {
1683
+ children: [t132, t173]
1521
1684
  });
1522
- $[282] = t120;
1523
- $[283] = t156;
1524
- $[284] = t157;
1685
+ $[318] = t132;
1686
+ $[319] = t173;
1687
+ $[320] = t174;
1525
1688
  } else {
1526
- t157 = $[284];
1689
+ t174 = $[320];
1527
1690
  }
1528
- let t158;
1529
- if ($[285] !== height || $[286] !== layout || $[287] !== onScrolledTrigger || $[288] !== t100 || $[289] !== t117 || $[290] !== t157 || $[291] !== t98 || $[292] !== t99 || $[293] !== width) {
1530
- t158 = /*#__PURE__*/jsxs(Scroll, {
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: t98,
1535
- withShadow: t99,
1536
- disabled: t100,
1697
+ withArrow: t110,
1698
+ withShadow: t111,
1699
+ disabled: t112,
1537
1700
  onScrolledTrigger: onScrolledTrigger,
1538
- children: [t117, t157]
1701
+ children: [t129, t174]
1539
1702
  });
1540
- $[285] = height;
1541
- $[286] = layout;
1542
- $[287] = onScrolledTrigger;
1543
- $[288] = t100;
1544
- $[289] = t117;
1545
- $[290] = t157;
1546
- $[291] = t98;
1547
- $[292] = t99;
1548
- $[293] = width;
1549
- $[294] = t158;
1550
- } else {
1551
- t158 = $[294];
1552
- }
1553
- let t159;
1554
- if ($[295] !== current || $[296] !== footerProps || $[297] !== footerRef || $[298] !== hasFooter || $[299] !== isPlaceholder || $[300] !== isPreview || $[301] !== spacing || $[302] !== viewerBottomHeight || $[303] !== viewerBottomSidesWidth) {
1555
- t159 = !isPlaceholder && hasFooter ? /*#__PURE__*/jsx("div", {
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
- $[295] = current;
1570
- $[296] = footerProps;
1571
- $[297] = footerRef;
1572
- $[298] = hasFooter;
1573
- $[299] = isPlaceholder;
1574
- $[300] = isPreview;
1575
- $[301] = spacing;
1576
- $[302] = viewerBottomHeight;
1577
- $[303] = viewerBottomSidesWidth;
1578
- $[304] = t159;
1579
- } else {
1580
- t159 = $[304];
1581
- }
1582
- let t160;
1583
- if ($[305] !== height || $[306] !== t158 || $[307] !== t159 || $[308] !== width) {
1584
- t160 = /*#__PURE__*/jsxs(Container, {
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: [t158, t159]
1751
+ children: [t175, t176]
1589
1752
  });
1590
- $[305] = height;
1591
- $[306] = t158;
1592
- $[307] = t159;
1593
- $[308] = width;
1594
- $[309] = t160;
1753
+ $[341] = height;
1754
+ $[342] = t175;
1755
+ $[343] = t176;
1756
+ $[344] = width;
1757
+ $[345] = t177;
1595
1758
  } else {
1596
- t160 = $[309];
1759
+ t177 = $[345];
1597
1760
  }
1598
- let t161;
1599
- if ($[310] !== t160 || $[311] !== t95 || $[312] !== t96 || $[313] !== t97) {
1600
- t161 = /*#__PURE__*/jsxs("div", {
1761
+ let t178;
1762
+ if ($[346] !== t107 || $[347] !== t108 || $[348] !== t109 || $[349] !== t177) {
1763
+ t178 = /*#__PURE__*/jsxs("div", {
1601
1764
  ref: containerRef,
1602
- className: t95,
1765
+ className: t107,
1603
1766
  "data-screen-ready": true,
1604
- children: [t96, t97, t160]
1767
+ children: [t108, t109, t177]
1605
1768
  });
1606
- $[310] = t160;
1607
- $[311] = t95;
1608
- $[312] = t96;
1609
- $[313] = t97;
1610
- $[314] = t161;
1769
+ $[346] = t107;
1770
+ $[347] = t108;
1771
+ $[348] = t109;
1772
+ $[349] = t177;
1773
+ $[350] = t178;
1611
1774
  } else {
1612
- t161 = $[314];
1775
+ t178 = $[350];
1613
1776
  }
1614
- return t161;
1777
+ return t178;
1615
1778
  }
1616
- function _temp6(p_1) {
1779
+ function _temp7(p_1) {
1617
1780
  return Math.abs(p_1) > 0.5 ? "none" : "auto";
1618
1781
  }
1619
- function _temp5(p_0) {
1782
+ function _temp6(p_0) {
1620
1783
  return `translateY(${100 * p_0}%) scale(${1 - Math.abs(p_0 * 0.5)})`;
1621
1784
  }
1622
- function _temp4(p) {
1785
+ function _temp5(p) {
1623
1786
  return 1 - Math.abs(p);
1624
1787
  }
1625
- function _temp3() {}
1626
- function _temp2(t0) {
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 _temp(it) {
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',