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