Diff: STRATO-apps/wordpress_03/app/wp-content/plugins/elementor/assets/js/admin-notifications.js
Keine Baseline-Datei – Diff nur gegen leer.
1
-
1
+
/******/ (() => { // webpackBootstrap
2
+
/******/ var __webpack_modules__ = ({
3
+
4
+
/***/ "../modules/notifications/assets/js/api/index.js":
5
+
/*!*******************************************************!*\
6
+
!*** ../modules/notifications/assets/js/api/index.js ***!
7
+
\*******************************************************/
8
+
/***/ ((__unused_webpack_module, exports) => {
9
+
10
+
"use strict";
11
+
12
+
13
+
Object.defineProperty(exports, "__esModule", ({
14
+
value: true
15
+
}));
16
+
exports.getNotifications = void 0;
17
+
var request = function request(endpoint) {
18
+
var data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
19
+
return new Promise(function (resolve, reject) {
20
+
elementorCommon.ajax.addRequest(endpoint, {
21
+
success: resolve,
22
+
error: reject,
23
+
data: data
24
+
});
25
+
});
26
+
};
27
+
var getNotifications = exports.getNotifications = function getNotifications() {
28
+
return request('notifications_get');
29
+
};
30
+
31
+
/***/ }),
32
+
33
+
/***/ "../modules/notifications/assets/js/components/bar-button-notification.js":
34
+
/*!********************************************************************************!*\
35
+
!*** ../modules/notifications/assets/js/components/bar-button-notification.js ***!
36
+
\********************************************************************************/
37
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
38
+
39
+
"use strict";
40
+
/* provided dependency */ var PropTypes = __webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js");
41
+
42
+
43
+
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
44
+
var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ "../node_modules/@babel/runtime/helpers/typeof.js");
45
+
Object.defineProperty(exports, "__esModule", ({
46
+
value: true
47
+
}));
48
+
exports.BarButtonNotification = void 0;
49
+
var _react = _interopRequireWildcard(__webpack_require__(/*! react */ "react"));
50
+
var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ "../node_modules/@babel/runtime/helpers/slicedToArray.js"));
51
+
var _whatsNew = __webpack_require__(/*! ./whats-new */ "../modules/notifications/assets/js/components/whats-new.js");
52
+
var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui");
53
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
54
+
var BarButtonNotification = exports.BarButtonNotification = function BarButtonNotification(props) {
55
+
var defaultIsRead = props.defaultIsRead;
56
+
var _useState = (0, _react.useState)(false),
57
+
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
58
+
isOpen = _useState2[0],
59
+
setIsOpen = _useState2[1];
60
+
var _useState3 = (0, _react.useState)(defaultIsRead),
61
+
_useState4 = (0, _slicedToArray2.default)(_useState3, 2),
62
+
isRead = _useState4[0],
63
+
setIsRead = _useState4[1];
64
+
65
+
// TODO: This is a temporary solution until we have a proper admin bar component.
66
+
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("button", {
67
+
className: "e-admin-top-bar__bar-button",
68
+
style: {
69
+
backgroundColor: 'transparent',
70
+
border: 'none'
71
+
},
72
+
onClick: function onClick(event) {
73
+
event.preventDefault();
74
+
setIsOpen(true);
75
+
}
76
+
}, /*#__PURE__*/_react.default.createElement(_ui.Badge, {
77
+
color: "primary",
78
+
variant: "dot",
79
+
invisible: isRead,
80
+
sx: {
81
+
mx: 0.5
82
+
}
83
+
}, /*#__PURE__*/_react.default.createElement("i", {
84
+
className: "e-admin-top-bar__bar-button-icon eicon-speakerphone"
85
+
})), /*#__PURE__*/_react.default.createElement("span", {
86
+
className: "e-admin-top-bar__bar-button-title"
87
+
}, props.children)), /*#__PURE__*/_react.default.createElement(_whatsNew.WhatsNew, {
88
+
isOpen: isOpen,
89
+
setIsOpen: setIsOpen,
90
+
setIsRead: setIsRead
91
+
}));
92
+
};
93
+
BarButtonNotification.propTypes = {
94
+
defaultIsRead: PropTypes.bool,
95
+
children: PropTypes.any.isRequired
96
+
};
97
+
98
+
/***/ }),
99
+
100
+
/***/ "../modules/notifications/assets/js/components/whats-new-drawer-content.js":
101
+
/*!*********************************************************************************!*\
102
+
!*** ../modules/notifications/assets/js/components/whats-new-drawer-content.js ***!
103
+
\*********************************************************************************/
104
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
105
+
106
+
"use strict";
107
+
/* provided dependency */ var PropTypes = __webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js");
108
+
109
+
110
+
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
111
+
Object.defineProperty(exports, "__esModule", ({
112
+
value: true
113
+
}));
114
+
exports.WhatsNewDrawerContent = void 0;
115
+
var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react"));
116
+
var _query = __webpack_require__(/*! @elementor/query */ "@elementor/query");
117
+
var _api = __webpack_require__(/*! ../api */ "../modules/notifications/assets/js/api/index.js");
118
+
var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui");
119
+
var _whatsNewItem = __webpack_require__(/*! ./whats-new-item */ "../modules/notifications/assets/js/components/whats-new-item.js");
120
+
var WhatsNewDrawerContent = exports.WhatsNewDrawerContent = function WhatsNewDrawerContent(_ref) {
121
+
var setIsOpen = _ref.setIsOpen;
122
+
var _useQuery = (0, _query.useQuery)({
123
+
queryKey: ['e-notifications'],
124
+
queryFn: _api.getNotifications
125
+
}),
126
+
isPending = _useQuery.isPending,
127
+
error = _useQuery.error,
128
+
items = _useQuery.data;
129
+
if (isPending) {
130
+
return /*#__PURE__*/_react.default.createElement(_ui.Box, null, /*#__PURE__*/_react.default.createElement(_ui.LinearProgress, {
131
+
color: "secondary"
132
+
}));
133
+
}
134
+
if (error) {
135
+
return /*#__PURE__*/_react.default.createElement(_ui.Box, null, "An error has occurred: ", error);
136
+
}
137
+
return items.map(function (item, itemIndex) {
138
+
return /*#__PURE__*/_react.default.createElement(_whatsNewItem.WhatsNewItem, {
139
+
key: itemIndex,
140
+
item: item,
141
+
itemIndex: itemIndex,
142
+
itemsLength: items.length,
143
+
setIsOpen: setIsOpen
144
+
});
145
+
});
146
+
};
147
+
WhatsNewDrawerContent.propTypes = {
148
+
setIsOpen: PropTypes.func.isRequired
149
+
};
150
+
151
+
/***/ }),
152
+
153
+
/***/ "../modules/notifications/assets/js/components/whats-new-item-chips.js":
154
+
/*!*****************************************************************************!*\
155
+
!*** ../modules/notifications/assets/js/components/whats-new-item-chips.js ***!
156
+
\*****************************************************************************/
157
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
158
+
159
+
"use strict";
160
+
/* provided dependency */ var PropTypes = __webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js");
161
+
162
+
163
+
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
164
+
Object.defineProperty(exports, "__esModule", ({
165
+
value: true
166
+
}));
167
+
exports.WhatsNewItemChips = void 0;
168
+
var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react"));
169
+
var _extends2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/extends */ "../node_modules/@babel/runtime/helpers/extends.js"));
170
+
var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui");
171
+
var WhatsNewItemChips = exports.WhatsNewItemChips = function WhatsNewItemChips(_ref) {
172
+
var chipPlan = _ref.chipPlan,
173
+
chipTags = _ref.chipTags,
174
+
itemIndex = _ref.itemIndex;
175
+
var chips = [];
176
+
if (chipPlan) {
177
+
chips.push({
178
+
color: 'promotion',
179
+
size: 'small',
180
+
label: chipPlan
181
+
});
182
+
}
183
+
if (chipTags) {
184
+
chipTags.forEach(function (chipTag) {
185
+
chips.push({
186
+
variant: 'outlined',
187
+
size: 'small',
188
+
label: chipTag
189
+
});
190
+
});
191
+
}
192
+
if (!chips.length) {
193
+
return null;
194
+
}
195
+
return /*#__PURE__*/_react.default.createElement(_ui.Stack, {
196
+
direction: "row",
197
+
flexWrap: "wrap",
198
+
gap: 1,
199
+
sx: {
200
+
pb: 1
201
+
}
202
+
}, chips.map(function (chip, chipIndex) {
203
+
return /*#__PURE__*/_react.default.createElement(_ui.Chip, (0, _extends2.default)({
204
+
key: "chip-".concat(itemIndex).concat(chipIndex)
205
+
}, chip));
206
+
}));
207
+
};
208
+
WhatsNewItemChips.propTypes = {
209
+
chipPlan: PropTypes.string,
210
+
chipTags: PropTypes.array,
211
+
itemIndex: PropTypes.number.isRequired
212
+
};
213
+
214
+
/***/ }),
215
+
216
+
/***/ "../modules/notifications/assets/js/components/whats-new-item-thumbnail.js":
217
+
/*!*********************************************************************************!*\
218
+
!*** ../modules/notifications/assets/js/components/whats-new-item-thumbnail.js ***!
219
+
\*********************************************************************************/
220
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
221
+
222
+
"use strict";
223
+
/* provided dependency */ var PropTypes = __webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js");
224
+
225
+
226
+
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
227
+
Object.defineProperty(exports, "__esModule", ({
228
+
value: true
229
+
}));
230
+
exports.WhatsNewItemThumbnail = void 0;
231
+
var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react"));
232
+
var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui");
233
+
var _wrapperWithLink = __webpack_require__(/*! ./wrapper-with-link */ "../modules/notifications/assets/js/components/wrapper-with-link.js");
234
+
var WhatsNewItemThumbnail = exports.WhatsNewItemThumbnail = function WhatsNewItemThumbnail(_ref) {
235
+
var imageSrc = _ref.imageSrc,
236
+
title = _ref.title,
237
+
link = _ref.link;
238
+
return /*#__PURE__*/_react.default.createElement(_ui.Box, {
239
+
sx: {
240
+
pb: 2
241
+
}
242
+
}, /*#__PURE__*/_react.default.createElement(_wrapperWithLink.WrapperWithLink, {
243
+
link: link
244
+
}, /*#__PURE__*/_react.default.createElement("img", {
245
+
src: imageSrc,
246
+
alt: title,
247
+
style: {
248
+
maxWidth: '100%'
249
+
}
250
+
})));
251
+
};
252
+
WhatsNewItemThumbnail.propTypes = {
253
+
imageSrc: PropTypes.string.isRequired,
254
+
title: PropTypes.string.isRequired,
255
+
link: PropTypes.string
256
+
};
257
+
258
+
/***/ }),
259
+
260
+
/***/ "../modules/notifications/assets/js/components/whats-new-item-topic-line.js":
261
+
/*!**********************************************************************************!*\
262
+
!*** ../modules/notifications/assets/js/components/whats-new-item-topic-line.js ***!
263
+
\**********************************************************************************/
264
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
265
+
266
+
"use strict";
267
+
/* provided dependency */ var PropTypes = __webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js");
268
+
269
+
270
+
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
271
+
Object.defineProperty(exports, "__esModule", ({
272
+
value: true
273
+
}));
274
+
exports.WhatsNewItemTopicLine = void 0;
275
+
var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react"));
276
+
var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui");
277
+
var WhatsNewItemTopicLine = exports.WhatsNewItemTopicLine = function WhatsNewItemTopicLine(_ref) {
278
+
var topic = _ref.topic,
279
+
date = _ref.date;
280
+
return /*#__PURE__*/_react.default.createElement(_ui.Stack, {
281
+
direction: "row",
282
+
divider: /*#__PURE__*/_react.default.createElement(_ui.Divider, {
283
+
orientation: "vertical",
284
+
flexItem: true
285
+
}),
286
+
spacing: 1,
287
+
color: "text.tertiary",
288
+
sx: {
289
+
pb: 1
290
+
}
291
+
}, topic && /*#__PURE__*/_react.default.createElement(_ui.Box, null, topic), date && /*#__PURE__*/_react.default.createElement(_ui.Box, null, date));
292
+
};
293
+
WhatsNewItemTopicLine.propTypes = {
294
+
topic: PropTypes.string,
295
+
date: PropTypes.string
296
+
};
297
+
298
+
/***/ }),
299
+
300
+
/***/ "../modules/notifications/assets/js/components/whats-new-item.js":
301
+
/*!***********************************************************************!*\
302
+
!*** ../modules/notifications/assets/js/components/whats-new-item.js ***!
303
+
\***********************************************************************/
304
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
305
+
306
+
"use strict";
307
+
/* provided dependency */ var PropTypes = __webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js");
308
+
309
+
310
+
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
311
+
Object.defineProperty(exports, "__esModule", ({
312
+
value: true
313
+
}));
314
+
exports.WhatsNewItem = void 0;
315
+
var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react"));
316
+
var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui");
317
+
var _whatsNewItemTopicLine = __webpack_require__(/*! ./whats-new-item-topic-line */ "../modules/notifications/assets/js/components/whats-new-item-topic-line.js");
318
+
var _wrapperWithLink = __webpack_require__(/*! ./wrapper-with-link */ "../modules/notifications/assets/js/components/wrapper-with-link.js");
319
+
var _whatsNewItemThumbnail = __webpack_require__(/*! ./whats-new-item-thumbnail */ "../modules/notifications/assets/js/components/whats-new-item-thumbnail.js");
320
+
var _whatsNewItemChips = __webpack_require__(/*! ./whats-new-item-chips */ "../modules/notifications/assets/js/components/whats-new-item-chips.js");
321
+
var WhatsNewItem = exports.WhatsNewItem = function WhatsNewItem(_ref) {
322
+
var item = _ref.item,
323
+
itemIndex = _ref.itemIndex,
324
+
itemsLength = _ref.itemsLength,
325
+
setIsOpen = _ref.setIsOpen;
326
+
return /*#__PURE__*/_react.default.createElement(_ui.Box, {
327
+
key: itemIndex,
328
+
display: "flex",
329
+
flexDirection: "column",
330
+
sx: {
331
+
pt: 2
332
+
}
333
+
}, (item.topic || item.date) && /*#__PURE__*/_react.default.createElement(_whatsNewItemTopicLine.WhatsNewItemTopicLine, {
334
+
topic: item.topic,
335
+
date: item.date
336
+
}), /*#__PURE__*/_react.default.createElement(_wrapperWithLink.WrapperWithLink, {
337
+
link: item.link
338
+
}, /*#__PURE__*/_react.default.createElement(_ui.Typography, {
339
+
variant: "subtitle1",
340
+
sx: {
341
+
pb: 2
342
+
}
343
+
}, item.title)), item.imageSrc && /*#__PURE__*/_react.default.createElement(_whatsNewItemThumbnail.WhatsNewItemThumbnail, {
344
+
imageSrc: item.imageSrc,
345
+
link: item.link,
346
+
title: item.title
347
+
}), /*#__PURE__*/_react.default.createElement(_whatsNewItemChips.WhatsNewItemChips, {
348
+
chipPlan: item.chipPlan,
349
+
chipTags: item.chipTags,
350
+
itemIndex: itemIndex
351
+
}), item.description && /*#__PURE__*/_react.default.createElement(_ui.Typography, {
352
+
variant: "body2",
353
+
color: "text.secondary",
354
+
sx: {
355
+
pb: 2
356
+
}
357
+
}, item.description, item.readMoreText && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, ' ', /*#__PURE__*/_react.default.createElement(_ui.Link, {
358
+
href: item.link,
359
+
color: "info.main",
360
+
target: "_blank"
361
+
}, item.readMoreText))), item.cta && item.ctaLink && /*#__PURE__*/_react.default.createElement(_ui.Box, {
362
+
sx: {
363
+
pb: 2
364
+
}
365
+
}, /*#__PURE__*/_react.default.createElement(_ui.Button, {
366
+
href: item.ctaLink,
367
+
target: item.ctaLink.startsWith('#') ? '_self' : '_blank',
368
+
variant: "contained",
369
+
size: "small",
370
+
color: "promotion",
371
+
onClick: item.ctaLink.startsWith('#') ? function () {
372
+
return setIsOpen(false);
373
+
} : function () {}
374
+
}, item.cta)), itemIndex !== itemsLength - 1 && /*#__PURE__*/_react.default.createElement(_ui.Divider, {
375
+
sx: {
376
+
my: 1
377
+
}
378
+
}));
379
+
};
380
+
WhatsNewItem.propTypes = {
381
+
item: PropTypes.object.isRequired,
382
+
itemIndex: PropTypes.number.isRequired,
383
+
itemsLength: PropTypes.number.isRequired,
384
+
setIsOpen: PropTypes.func.isRequired
385
+
};
386
+
387
+
/***/ }),
388
+
389
+
/***/ "../modules/notifications/assets/js/components/whats-new-top-bar.js":
390
+
/*!**************************************************************************!*\
391
+
!*** ../modules/notifications/assets/js/components/whats-new-top-bar.js ***!
392
+
\**************************************************************************/
393
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
394
+
395
+
"use strict";
396
+
/* provided dependency */ var PropTypes = __webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js");
397
+
398
+
399
+
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
400
+
Object.defineProperty(exports, "__esModule", ({
401
+
value: true
402
+
}));
403
+
exports.WhatsNewTopBar = void 0;
404
+
var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react"));
405
+
var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui");
406
+
var _i18n = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n");
407
+
var _xIcon = __webpack_require__(/*! ../icons/x-icon */ "../modules/notifications/assets/js/icons/x-icon.js");
408
+
var WhatsNewTopBar = exports.WhatsNewTopBar = function WhatsNewTopBar(props) {
409
+
var setIsOpen = props.setIsOpen;
410
+
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_ui.AppBar, {
411
+
elevation: 0,
412
+
position: "sticky",
413
+
sx: {
414
+
backgroundColor: 'background.default'
415
+
}
416
+
}, /*#__PURE__*/_react.default.createElement(_ui.Toolbar, {
417
+
variant: "dense"
418
+
}, /*#__PURE__*/_react.default.createElement(_ui.Typography, {
419
+
variant: "overline",
420
+
sx: {
421
+
flexGrow: 1
422
+
}
423
+
}, (0, _i18n.__)('What\'s New', 'elementor')), /*#__PURE__*/_react.default.createElement(_ui.IconButton, {
424
+
"aria-label": 'close',
425
+
size: "small",
426
+
onClick: function onClick() {
427
+
return setIsOpen(false);
428
+
}
429
+
}, /*#__PURE__*/_react.default.createElement(_xIcon.XIcon, null)))), /*#__PURE__*/_react.default.createElement(_ui.Divider, null));
430
+
};
431
+
WhatsNewTopBar.propTypes = {
432
+
setIsOpen: PropTypes.func.isRequired
433
+
};
434
+
435
+
/***/ }),
436
+
437
+
/***/ "../modules/notifications/assets/js/components/whats-new.js":
438
+
/*!******************************************************************!*\
439
+
!*** ../modules/notifications/assets/js/components/whats-new.js ***!
440
+
\******************************************************************/
441
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
442
+
443
+
"use strict";
444
+
/* provided dependency */ var PropTypes = __webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js");
445
+
446
+
447
+
var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ "../node_modules/@babel/runtime/helpers/typeof.js");
448
+
Object.defineProperty(exports, "__esModule", ({
449
+
value: true
450
+
}));
451
+
exports.WhatsNew = void 0;
452
+
var _react = _interopRequireWildcard(__webpack_require__(/*! react */ "react"));
453
+
var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui");
454
+
var _query = __webpack_require__(/*! @elementor/query */ "@elementor/query");
455
+
var _whatsNewTopBar = __webpack_require__(/*! ./whats-new-top-bar */ "../modules/notifications/assets/js/components/whats-new-top-bar.js");
456
+
var _whatsNewDrawerContent = __webpack_require__(/*! ./whats-new-drawer-content */ "../modules/notifications/assets/js/components/whats-new-drawer-content.js");
457
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
458
+
var queryClient = new _query.QueryClient({
459
+
defaultOptions: {
460
+
queries: {
461
+
refetchOnWindowFocus: false,
462
+
retry: false,
463
+
staleTime: 1000 * 60 * 30 // 30 minutes
464
+
}
465
+
}
466
+
});
467
+
var WhatsNew = exports.WhatsNew = function WhatsNew(props) {
468
+
var _window$elementor, _window$elementor$get;
469
+
var isOpen = props.isOpen,
470
+
setIsOpen = props.setIsOpen,
471
+
setIsRead = props.setIsRead,
472
+
_props$anchorPosition = props.anchorPosition,
473
+
anchorPosition = _props$anchorPosition === void 0 ? 'right' : _props$anchorPosition;
474
+
(0, _react.useEffect)(function () {
475
+
if (!isOpen) {
476
+
return;
477
+
}
478
+
setIsRead(true);
479
+
}, [isOpen, setIsRead]);
480
+
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_query.QueryClientProvider, {
481
+
client: queryClient
482
+
}, /*#__PURE__*/_react.default.createElement(_ui.DirectionProvider, {
483
+
rtl: elementorCommon.config.isRTL
484
+
}, /*#__PURE__*/_react.default.createElement(_ui.ThemeProvider, {
485
+
colorScheme: ((_window$elementor = window.elementor) === null || _window$elementor === void 0 || (_window$elementor$get = _window$elementor.getPreferences) === null || _window$elementor$get === void 0 ? void 0 : _window$elementor$get.call(_window$elementor, 'ui_theme')) || 'auto'
486
+
}, /*#__PURE__*/_react.default.createElement(_ui.Drawer, {
487
+
anchor: anchorPosition,
488
+
open: isOpen,
489
+
onClose: function onClose() {
490
+
return setIsOpen(false);
491
+
},
492
+
ModalProps: {
493
+
style: {
494
+
// Above the WordPress Admin Top Bar.
495
+
zIndex: 999999
496
+
}
497
+
}
498
+
}, /*#__PURE__*/_react.default.createElement(_ui.Box, {
499
+
sx: {
500
+
width: 320,
501
+
backgroundColor: 'background.default'
502
+
},
503
+
role: "presentation"
504
+
}, /*#__PURE__*/_react.default.createElement(_whatsNewTopBar.WhatsNewTopBar, {
505
+
setIsOpen: setIsOpen
506
+
}), /*#__PURE__*/_react.default.createElement(_ui.Box, {
507
+
sx: {
508
+
padding: '16px'
509
+
}
510
+
}, /*#__PURE__*/_react.default.createElement(_whatsNewDrawerContent.WhatsNewDrawerContent, {
511
+
setIsOpen: setIsOpen
512
+
}))))))));
513
+
};
514
+
WhatsNew.propTypes = {
515
+
isOpen: PropTypes.bool.isRequired,
516
+
setIsOpen: PropTypes.func.isRequired,
517
+
setIsRead: PropTypes.func.isRequired,
518
+
anchorPosition: PropTypes.oneOf(['left', 'top', 'right', 'bottom'])
519
+
};
520
+
521
+
/***/ }),
522
+
523
+
/***/ "../modules/notifications/assets/js/components/wrapper-with-link.js":
524
+
/*!**************************************************************************!*\
525
+
!*** ../modules/notifications/assets/js/components/wrapper-with-link.js ***!
526
+
\**************************************************************************/
527
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
528
+
529
+
"use strict";
530
+
/* provided dependency */ var PropTypes = __webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js");
531
+
532
+
533
+
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
534
+
Object.defineProperty(exports, "__esModule", ({
535
+
value: true
536
+
}));
537
+
exports.WrapperWithLink = void 0;
538
+
var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react"));
539
+
var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui");
540
+
var WrapperWithLink = exports.WrapperWithLink = function WrapperWithLink(props) {
541
+
var link = props.link,
542
+
children = props.children;
543
+
if (!link) {
544
+
return children;
545
+
}
546
+
return /*#__PURE__*/_react.default.createElement(_ui.Link, {
547
+
href: link,
548
+
target: "_blank",
549
+
underline: "none",
550
+
color: "inherit",
551
+
sx: {
552
+
'&:hover': {
553
+
color: 'inherit'
554
+
}
555
+
}
556
+
}, children);
557
+
};
558
+
WrapperWithLink.propTypes = {
559
+
link: PropTypes.string,
560
+
children: PropTypes.any.isRequired
561
+
};
562
+
563
+
/***/ }),
564
+
565
+
/***/ "../modules/notifications/assets/js/icons/x-icon.js":
566
+
/*!**********************************************************!*\
567
+
!*** ../modules/notifications/assets/js/icons/x-icon.js ***!
568
+
\**********************************************************/
569
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
570
+
571
+
"use strict";
572
+
573
+
574
+
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
575
+
var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ "../node_modules/@babel/runtime/helpers/typeof.js");
576
+
Object.defineProperty(exports, "__esModule", ({
577
+
value: true
578
+
}));
579
+
exports.XIcon = void 0;
580
+
var _react = _interopRequireWildcard(__webpack_require__(/*! react */ "react"));
581
+
var _extends2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/extends */ "../node_modules/@babel/runtime/helpers/extends.js"));
582
+
var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui");
583
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
584
+
var XIcon = exports.XIcon = (0, _react.forwardRef)(function (props, ref) {
585
+
return /*#__PURE__*/_react.default.createElement(_ui.SvgIcon, (0, _extends2.default)({
586
+
viewBox: "0 0 24 24"
587
+
}, props, {
588
+
ref: ref
589
+
}), /*#__PURE__*/_react.default.createElement("path", {
590
+
fillRule: "evenodd",
591
+
clipRule: "evenodd",
592
+
d: "M18.5303 5.46967C18.8232 5.76256 18.8232 6.23744 18.5303 6.53033L6.53033 18.5303C6.23744 18.8232 5.76256 18.8232 5.46967 18.5303C5.17678 18.2374 5.17678 17.7626 5.46967 17.4697L17.4697 5.46967C17.7626 5.17678 18.2374 5.17678 18.5303 5.46967Z"
593
+
}), /*#__PURE__*/_react.default.createElement("path", {
594
+
fillRule: "evenodd",
595
+
clipRule: "evenodd",
596
+
d: "M5.46967 5.46967C5.76256 5.17678 6.23744 5.17678 6.53033 5.46967L18.5303 17.4697C18.8232 17.7626 18.8232 18.2374 18.5303 18.5303C18.2374 18.8232 17.7626 18.8232 17.4697 18.5303L5.46967 6.53033C5.17678 6.23744 5.17678 5.76256 5.46967 5.46967Z"
597
+
}));
598
+
});
599
+
600
+
/***/ }),
601
+
602
+
/***/ "../node_modules/@babel/runtime/helpers/arrayLikeToArray.js":
603
+
/*!******************************************************************!*\
604
+
!*** ../node_modules/@babel/runtime/helpers/arrayLikeToArray.js ***!
605
+
\******************************************************************/
606
+
/***/ ((module) => {
607
+
608
+
function _arrayLikeToArray(r, a) {
609
+
(null == a || a > r.length) && (a = r.length);
610
+
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
611
+
return n;
612
+
}
613
+
module.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
614
+
615
+
/***/ }),
616
+
617
+
/***/ "../node_modules/@babel/runtime/helpers/arrayWithHoles.js":
618
+
/*!****************************************************************!*\
619
+
!*** ../node_modules/@babel/runtime/helpers/arrayWithHoles.js ***!
620
+
\****************************************************************/
621
+
/***/ ((module) => {
622
+
623
+
function _arrayWithHoles(r) {
624
+
if (Array.isArray(r)) return r;
625
+
}
626
+
module.exports = _arrayWithHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;
627
+
628
+
/***/ }),
629
+
630
+
/***/ "../node_modules/@babel/runtime/helpers/extends.js":
631
+
/*!*********************************************************!*\
632
+
!*** ../node_modules/@babel/runtime/helpers/extends.js ***!
633
+
\*********************************************************/
634
+
/***/ ((module) => {
635
+
636
+
function _extends() {
637
+
return module.exports = _extends = Object.assign ? Object.assign.bind() : function (n) {
638
+
for (var e = 1; e < arguments.length; e++) {
639
+
var t = arguments[e];
640
+
for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
641
+
}
642
+
return n;
643
+
}, module.exports.__esModule = true, module.exports["default"] = module.exports, _extends.apply(null, arguments);
644
+
}
645
+
module.exports = _extends, module.exports.__esModule = true, module.exports["default"] = module.exports;
646
+
647
+
/***/ }),
648
+
649
+
/***/ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js":
650
+
/*!***********************************************************************!*\
651
+
!*** ../node_modules/@babel/runtime/helpers/interopRequireDefault.js ***!
652
+
\***********************************************************************/
653
+
/***/ ((module) => {
654
+
655
+
function _interopRequireDefault(e) {
656
+
return e && e.__esModule ? e : {
657
+
"default": e
658
+
};
659
+
}
660
+
module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports["default"] = module.exports;
661
+
662
+
/***/ }),
663
+
664
+
/***/ "../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js":
665
+
/*!**********************************************************************!*\
666
+
!*** ../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js ***!
667
+
\**********************************************************************/
668
+
/***/ ((module) => {
669
+
670
+
function _iterableToArrayLimit(r, l) {
671
+
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
672
+
if (null != t) {
673
+
var e,
674
+
n,
675
+
i,
676
+
u,
677
+
a = [],
678
+
f = !0,
679
+
o = !1;
680
+
try {
681
+
if (i = (t = t.call(r)).next, 0 === l) {
682
+
if (Object(t) !== t) return;
683
+
f = !1;
684
+
} else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
685
+
} catch (r) {
686
+
o = !0, n = r;
687
+
} finally {
688
+
try {
689
+
if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
690
+
} finally {
691
+
if (o) throw n;
692
+
}
693
+
}
694
+
return a;
695
+
}
696
+
}
697
+
module.exports = _iterableToArrayLimit, module.exports.__esModule = true, module.exports["default"] = module.exports;
698
+
699
+
/***/ }),
700
+
701
+
/***/ "../node_modules/@babel/runtime/helpers/nonIterableRest.js":
702
+
/*!*****************************************************************!*\
703
+
!*** ../node_modules/@babel/runtime/helpers/nonIterableRest.js ***!
704
+
\*****************************************************************/
705
+
/***/ ((module) => {
706
+
707
+
function _nonIterableRest() {
708
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
709
+
}
710
+
module.exports = _nonIterableRest, module.exports.__esModule = true, module.exports["default"] = module.exports;
711
+
712
+
/***/ }),
713
+
714
+
/***/ "../node_modules/@babel/runtime/helpers/slicedToArray.js":
715
+
/*!***************************************************************!*\
716
+
!*** ../node_modules/@babel/runtime/helpers/slicedToArray.js ***!
717
+
\***************************************************************/
718
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
719
+
720
+
var arrayWithHoles = __webpack_require__(/*! ./arrayWithHoles.js */ "../node_modules/@babel/runtime/helpers/arrayWithHoles.js");
721
+
var iterableToArrayLimit = __webpack_require__(/*! ./iterableToArrayLimit.js */ "../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js");
722
+
var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ "../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js");
723
+
var nonIterableRest = __webpack_require__(/*! ./nonIterableRest.js */ "../node_modules/@babel/runtime/helpers/nonIterableRest.js");
724
+
function _slicedToArray(r, e) {
725
+
return arrayWithHoles(r) || iterableToArrayLimit(r, e) || unsupportedIterableToArray(r, e) || nonIterableRest();
726
+
}
727
+
module.exports = _slicedToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
728
+
729
+
/***/ }),
730
+
731
+
/***/ "../node_modules/@babel/runtime/helpers/typeof.js":
732
+
/*!********************************************************!*\
733
+
!*** ../node_modules/@babel/runtime/helpers/typeof.js ***!
734
+
\********************************************************/
735
+
/***/ ((module) => {
736
+
737
+
function _typeof(o) {
738
+
"@babel/helpers - typeof";
739
+
740
+
return module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
741
+
return typeof o;
742
+
} : function (o) {
743
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
744
+
}, module.exports.__esModule = true, module.exports["default"] = module.exports, _typeof(o);
745
+
}
746
+
module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
747
+
748
+
/***/ }),
749
+
750
+
/***/ "../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js":
751
+
/*!****************************************************************************!*\
752
+
!*** ../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js ***!
753
+
\****************************************************************************/
754
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
755
+
756
+
var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ "../node_modules/@babel/runtime/helpers/arrayLikeToArray.js");
757
+
function _unsupportedIterableToArray(r, a) {
758
+
if (r) {
759
+
if ("string" == typeof r) return arrayLikeToArray(r, a);
760
+
var t = {}.toString.call(r).slice(8, -1);
761
+
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? arrayLikeToArray(r, a) : void 0;
762
+
}
763
+
}
764
+
module.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
765
+
766
+
/***/ }),
767
+
768
+
/***/ "../node_modules/object-assign/index.js":
769
+
/*!**********************************************!*\
770
+
!*** ../node_modules/object-assign/index.js ***!
771
+
\**********************************************/
772
+
/***/ ((module) => {
773
+
774
+
"use strict";
775
+
/*
776
+
object-assign
777
+
(c) Sindre Sorhus
778
+
@license MIT
779
+
*/
780
+
781
+
782
+
/* eslint-disable no-unused-vars */
783
+
var getOwnPropertySymbols = Object.getOwnPropertySymbols;
784
+
var hasOwnProperty = Object.prototype.hasOwnProperty;
785
+
var propIsEnumerable = Object.prototype.propertyIsEnumerable;
786
+
787
+
function toObject(val) {
788
+
if (val === null || val === undefined) {
789
+
throw new TypeError('Object.assign cannot be called with null or undefined');
790
+
}
791
+
792
+
return Object(val);
793
+
}
794
+
795
+
function shouldUseNative() {
796
+
try {
797
+
if (!Object.assign) {
798
+
return false;
799
+
}
800
+
801
+
// Detect buggy property enumeration order in older V8 versions.
802
+
803
+
// https://bugs.chromium.org/p/v8/issues/detail?id=4118
804
+
var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
805
+
test1[5] = 'de';
806
+
if (Object.getOwnPropertyNames(test1)[0] === '5') {
807
+
return false;
808
+
}
809
+
810
+
// https://bugs.chromium.org/p/v8/issues/detail?id=3056
811
+
var test2 = {};
812
+
for (var i = 0; i < 10; i++) {
813
+
test2['_' + String.fromCharCode(i)] = i;
814
+
}
815
+
var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
816
+
return test2[n];
817
+
});
818
+
if (order2.join('') !== '0123456789') {
819
+
return false;
820
+
}
821
+
822
+
// https://bugs.chromium.org/p/v8/issues/detail?id=3056
823
+
var test3 = {};
824
+
'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
825
+
test3[letter] = letter;
826
+
});
827
+
if (Object.keys(Object.assign({}, test3)).join('') !==
828
+
'abcdefghijklmnopqrst') {
829
+
return false;
830
+
}
831
+
832
+
return true;
833
+
} catch (err) {
834
+
// We don't expect any of the above to throw, but better to be safe.
835
+
return false;
836
+
}
837
+
}
838
+
839
+
module.exports = shouldUseNative() ? Object.assign : function (target, source) {
840
+
var from;
841
+
var to = toObject(target);
842
+
var symbols;
843
+
844
+
for (var s = 1; s < arguments.length; s++) {
845
+
from = Object(arguments[s]);
846
+
847
+
for (var key in from) {
848
+
if (hasOwnProperty.call(from, key)) {
849
+
to[key] = from[key];
850
+
}
851
+
}
852
+
853
+
if (getOwnPropertySymbols) {
854
+
symbols = getOwnPropertySymbols(from);
855
+
for (var i = 0; i < symbols.length; i++) {
856
+
if (propIsEnumerable.call(from, symbols[i])) {
857
+
to[symbols[i]] = from[symbols[i]];
858
+
}
859
+
}
860
+
}
861
+
}
862
+
863
+
return to;
864
+
};
865
+
866
+
867
+
/***/ }),
868
+
869
+
/***/ "../node_modules/prop-types/checkPropTypes.js":
870
+
/*!****************************************************!*\
871
+
!*** ../node_modules/prop-types/checkPropTypes.js ***!
872
+
\****************************************************/
873
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
874
+
875
+
"use strict";
876
+
/**
877
+
* Copyright (c) 2013-present, Facebook, Inc.
878
+
*
879
+
* This source code is licensed under the MIT license found in the
880
+
* LICENSE file in the root directory of this source tree.
881
+
*/
882
+
883
+
884
+
885
+
var printWarning = function() {};
886
+
887
+
if (true) {
888
+
var ReactPropTypesSecret = __webpack_require__(/*! ./lib/ReactPropTypesSecret */ "../node_modules/prop-types/lib/ReactPropTypesSecret.js");
889
+
var loggedTypeFailures = {};
890
+
var has = __webpack_require__(/*! ./lib/has */ "../node_modules/prop-types/lib/has.js");
891
+
892
+
printWarning = function(text) {
893
+
var message = 'Warning: ' + text;
894
+
if (typeof console !== 'undefined') {
895
+
console.error(message);
896
+
}
897
+
try {
898
+
// --- Welcome to debugging React ---
899
+
// This error was thrown as a convenience so that you can use this stack
900
+
// to find the callsite that caused this warning to fire.
901
+
throw new Error(message);
902
+
} catch (x) { /**/ }
903
+
};
904
+
}
905
+
906
+
/**
907
+
* Assert that the values match with the type specs.
908
+
* Error messages are memorized and will only be shown once.
909
+
*
910
+
* @param {object} typeSpecs Map of name to a ReactPropType
911
+
* @param {object} values Runtime values that need to be type-checked
912
+
* @param {string} location e.g. "prop", "context", "child context"
913
+
* @param {string} componentName Name of the component for error messages.
914
+
* @param {?Function} getStack Returns the component stack.
915
+
* @private
916
+
*/
917
+
function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
918
+
if (true) {
919
+
for (var typeSpecName in typeSpecs) {
920
+
if (has(typeSpecs, typeSpecName)) {
921
+
var error;
922
+
// Prop type validation may throw. In case they do, we don't want to
923
+
// fail the render phase where it didn't fail before. So we log it.
924
+
// After these have been cleaned up, we'll let them throw.
925
+
try {
926
+
// This is intentionally an invariant that gets caught. It's the same
927
+
// behavior as without this statement except with a better message.
928
+
if (typeof typeSpecs[typeSpecName] !== 'function') {
929
+
var err = Error(
930
+
(componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +
931
+
'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' +
932
+
'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.'
933
+
);
934
+
err.name = 'Invariant Violation';
935
+
throw err;
936
+
}
937
+
error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
938
+
} catch (ex) {
939
+
error = ex;
940
+
}
941
+
if (error && !(error instanceof Error)) {
942
+
printWarning(
943
+
(componentName || 'React class') + ': type specification of ' +
944
+
location + ' `' + typeSpecName + '` is invalid; the type checker ' +
945
+
'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +
946
+
'You may have forgotten to pass an argument to the type checker ' +
947
+
'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +
948
+
'shape all require an argument).'
949
+
);
950
+
}
951
+
if (error instanceof Error && !(error.message in loggedTypeFailures)) {
952
+
// Only monitor this failure once because there tends to be a lot of the
953
+
// same error.
954
+
loggedTypeFailures[error.message] = true;
955
+
956
+
var stack = getStack ? getStack() : '';
957
+
958
+
printWarning(
959
+
'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')
960
+
);
961
+
}
962
+
}
963
+
}
964
+
}
965
+
}
966
+
967
+
/**
968
+
* Resets warning cache when testing.
969
+
*
970
+
* @private
971
+
*/
972
+
checkPropTypes.resetWarningCache = function() {
973
+
if (true) {
974
+
loggedTypeFailures = {};
975
+
}
976
+
}
977
+
978
+
module.exports = checkPropTypes;
979
+
980
+
981
+
/***/ }),
982
+
983
+
/***/ "../node_modules/prop-types/factoryWithTypeCheckers.js":
984
+
/*!*************************************************************!*\
985
+
!*** ../node_modules/prop-types/factoryWithTypeCheckers.js ***!
986
+
\*************************************************************/
987
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
988
+
989
+
"use strict";
990
+
/**
991
+
* Copyright (c) 2013-present, Facebook, Inc.
992
+
*
993
+
* This source code is licensed under the MIT license found in the
994
+
* LICENSE file in the root directory of this source tree.
995
+
*/
996
+
997
+
998
+
999
+
var ReactIs = __webpack_require__(/*! react-is */ "../node_modules/prop-types/node_modules/react-is/index.js");
1000
+
var assign = __webpack_require__(/*! object-assign */ "../node_modules/object-assign/index.js");
1001
+
1002
+
var ReactPropTypesSecret = __webpack_require__(/*! ./lib/ReactPropTypesSecret */ "../node_modules/prop-types/lib/ReactPropTypesSecret.js");
1003
+
var has = __webpack_require__(/*! ./lib/has */ "../node_modules/prop-types/lib/has.js");
1004
+
var checkPropTypes = __webpack_require__(/*! ./checkPropTypes */ "../node_modules/prop-types/checkPropTypes.js");
1005
+
1006
+
var printWarning = function() {};
1007
+
1008
+
if (true) {
1009
+
printWarning = function(text) {
1010
+
var message = 'Warning: ' + text;
1011
+
if (typeof console !== 'undefined') {
1012
+
console.error(message);
1013
+
}
1014
+
try {
1015
+
// --- Welcome to debugging React ---
1016
+
// This error was thrown as a convenience so that you can use this stack
1017
+
// to find the callsite that caused this warning to fire.
1018
+
throw new Error(message);
1019
+
} catch (x) {}
1020
+
};
1021
+
}
1022
+
1023
+
function emptyFunctionThatReturnsNull() {
1024
+
return null;
1025
+
}
1026
+
1027
+
module.exports = function(isValidElement, throwOnDirectAccess) {
1028
+
/* global Symbol */
1029
+
var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
1030
+
var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.
1031
+
1032
+
/**
1033
+
* Returns the iterator method function contained on the iterable object.
1034
+
*
1035
+
* Be sure to invoke the function with the iterable as context:
1036
+
*
1037
+
* var iteratorFn = getIteratorFn(myIterable);
1038
+
* if (iteratorFn) {
1039
+
* var iterator = iteratorFn.call(myIterable);
1040
+
* ...
1041
+
* }
1042
+
*
1043
+
* @param {?object} maybeIterable
1044
+
* @return {?function}
1045
+
*/
1046
+
function getIteratorFn(maybeIterable) {
1047
+
var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
1048
+
if (typeof iteratorFn === 'function') {
1049
+
return iteratorFn;
1050
+
}
1051
+
}
1052
+
1053
+
/**
1054
+
* Collection of methods that allow declaration and validation of props that are
1055
+
* supplied to React components. Example usage:
1056
+
*
1057
+
* var Props = require('ReactPropTypes');
1058
+
* var MyArticle = React.createClass({
1059
+
* propTypes: {
1060
+
* // An optional string prop named "description".
1061
+
* description: Props.string,
1062
+
*
1063
+
* // A required enum prop named "category".
1064
+
* category: Props.oneOf(['News','Photos']).isRequired,
1065
+
*
1066
+
* // A prop named "dialog" that requires an instance of Dialog.
1067
+
* dialog: Props.instanceOf(Dialog).isRequired
1068
+
* },
1069
+
* render: function() { ... }
1070
+
* });
1071
+
*
1072
+
* A more formal specification of how these methods are used:
1073
+
*
1074
+
* type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)
1075
+
* decl := ReactPropTypes.{type}(.isRequired)?
1076
+
*
1077
+
* Each and every declaration produces a function with the same signature. This
1078
+
* allows the creation of custom validation functions. For example:
1079
+
*
1080
+
* var MyLink = React.createClass({
1081
+
* propTypes: {
1082
+
* // An optional string or URI prop named "href".
1083
+
* href: function(props, propName, componentName) {
1084
+
* var propValue = props[propName];
1085
+
* if (propValue != null && typeof propValue !== 'string' &&
1086
+
* !(propValue instanceof URI)) {
1087
+
* return new Error(
1088
+
* 'Expected a string or an URI for ' + propName + ' in ' +
1089
+
* componentName
1090
+
* );
1091
+
* }
1092
+
* }
1093
+
* },
1094
+
* render: function() {...}
1095
+
* });
1096
+
*
1097
+
* @internal
1098
+
*/
1099
+
1100
+
var ANONYMOUS = '<<anonymous>>';
1101
+
1102
+
// Important!
1103
+
// Keep this list in sync with production version in `./factoryWithThrowingShims.js`.
1104
+
var ReactPropTypes = {
1105
+
array: createPrimitiveTypeChecker('array'),
1106
+
bigint: createPrimitiveTypeChecker('bigint'),
1107
+
bool: createPrimitiveTypeChecker('boolean'),
1108
+
func: createPrimitiveTypeChecker('function'),
1109
+
number: createPrimitiveTypeChecker('number'),
1110
+
object: createPrimitiveTypeChecker('object'),
1111
+
string: createPrimitiveTypeChecker('string'),
1112
+
symbol: createPrimitiveTypeChecker('symbol'),
1113
+
1114
+
any: createAnyTypeChecker(),
1115
+
arrayOf: createArrayOfTypeChecker,
1116
+
element: createElementTypeChecker(),
1117
+
elementType: createElementTypeTypeChecker(),
1118
+
instanceOf: createInstanceTypeChecker,
1119
+
node: createNodeChecker(),
1120
+
objectOf: createObjectOfTypeChecker,
1121
+
oneOf: createEnumTypeChecker,
1122
+
oneOfType: createUnionTypeChecker,
1123
+
shape: createShapeTypeChecker,
1124
+
exact: createStrictShapeTypeChecker,
1125
+
};
1126
+
1127
+
/**
1128
+
* inlined Object.is polyfill to avoid requiring consumers ship their own
1129
+
* https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
1130
+
*/
1131
+
/*eslint-disable no-self-compare*/
1132
+
function is(x, y) {
1133
+
// SameValue algorithm
1134
+
if (x === y) {
1135
+
// Steps 1-5, 7-10
1136
+
// Steps 6.b-6.e: +0 != -0
1137
+
return x !== 0 || 1 / x === 1 / y;
1138
+
} else {
1139
+
// Step 6.a: NaN == NaN
1140
+
return x !== x && y !== y;
1141
+
}
1142
+
}
1143
+
/*eslint-enable no-self-compare*/
1144
+
1145
+
/**
1146
+
* We use an Error-like object for backward compatibility as people may call
1147
+
* PropTypes directly and inspect their output. However, we don't use real
1148
+
* Errors anymore. We don't inspect their stack anyway, and creating them
1149
+
* is prohibitively expensive if they are created too often, such as what
1150
+
* happens in oneOfType() for any type before the one that matched.
1151
+
*/
1152
+
function PropTypeError(message, data) {
1153
+
this.message = message;
1154
+
this.data = data && typeof data === 'object' ? data: {};
1155
+
this.stack = '';
1156
+
}
1157
+
// Make `instanceof Error` still work for returned errors.
1158
+
PropTypeError.prototype = Error.prototype;
1159
+
1160
+
function createChainableTypeChecker(validate) {
1161
+
if (true) {
1162
+
var manualPropTypeCallCache = {};
1163
+
var manualPropTypeWarningCount = 0;
1164
+
}
1165
+
function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
1166
+
componentName = componentName || ANONYMOUS;
1167
+
propFullName = propFullName || propName;
1168
+
1169
+
if (secret !== ReactPropTypesSecret) {
1170
+
if (throwOnDirectAccess) {
1171
+
// New behavior only for users of `prop-types` package
1172
+
var err = new Error(
1173
+
'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
1174
+
'Use `PropTypes.checkPropTypes()` to call them. ' +
1175
+
'Read more at http://fb.me/use-check-prop-types'
1176
+
);
1177
+
err.name = 'Invariant Violation';
1178
+
throw err;
1179
+
} else if ( true && typeof console !== 'undefined') {
1180
+
// Old behavior for people using React.PropTypes
1181
+
var cacheKey = componentName + ':' + propName;
1182
+
if (
1183
+
!manualPropTypeCallCache[cacheKey] &&
1184
+
// Avoid spamming the console because they are often not actionable except for lib authors
1185
+
manualPropTypeWarningCount < 3
1186
+
) {
1187
+
printWarning(
1188
+
'You are manually calling a React.PropTypes validation ' +
1189
+
'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +
1190
+
'and will throw in the standalone `prop-types` package. ' +
1191
+
'You may be seeing this warning due to a third-party PropTypes ' +
1192
+
'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'
1193
+
);
1194
+
manualPropTypeCallCache[cacheKey] = true;
1195
+
manualPropTypeWarningCount++;
1196
+
}
1197
+
}
1198
+
}
1199
+
if (props[propName] == null) {
1200
+
if (isRequired) {
1201
+
if (props[propName] === null) {
1202
+
return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));
1203
+
}
1204
+
return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));
1205
+
}
1206
+
return null;
1207
+
} else {
1208
+
return validate(props, propName, componentName, location, propFullName);
1209
+
}
1210
+
}
1211
+
1212
+
var chainedCheckType = checkType.bind(null, false);
1213
+
chainedCheckType.isRequired = checkType.bind(null, true);
1214
+
1215
+
return chainedCheckType;
1216
+
}
1217
+
1218
+
function createPrimitiveTypeChecker(expectedType) {
1219
+
function validate(props, propName, componentName, location, propFullName, secret) {
1220
+
var propValue = props[propName];
1221
+
var propType = getPropType(propValue);
1222
+
if (propType !== expectedType) {
1223
+
// `propValue` being instance of, say, date/regexp, pass the 'object'
1224
+
// check, but we can offer a more precise error message here rather than
1225
+
// 'of type `object`'.
1226
+
var preciseType = getPreciseType(propValue);
1227
+
1228
+
return new PropTypeError(
1229
+
'Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'),
1230
+
{expectedType: expectedType}
1231
+
);
1232
+
}
1233
+
return null;
1234
+
}
1235
+
return createChainableTypeChecker(validate);
1236
+
}
1237
+
1238
+
function createAnyTypeChecker() {
1239
+
return createChainableTypeChecker(emptyFunctionThatReturnsNull);
1240
+
}
1241
+
1242
+
function createArrayOfTypeChecker(typeChecker) {
1243
+
function validate(props, propName, componentName, location, propFullName) {
1244
+
if (typeof typeChecker !== 'function') {
1245
+
return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');
1246
+
}
1247
+
var propValue = props[propName];
1248
+
if (!Array.isArray(propValue)) {
1249
+
var propType = getPropType(propValue);
1250
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));
1251
+
}
1252
+
for (var i = 0; i < propValue.length; i++) {
1253
+
var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret);
1254
+
if (error instanceof Error) {
1255
+
return error;
1256
+
}
1257
+
}
1258
+
return null;
1259
+
}
1260
+
return createChainableTypeChecker(validate);
1261
+
}
1262
+
1263
+
function createElementTypeChecker() {
1264
+
function validate(props, propName, componentName, location, propFullName) {
1265
+
var propValue = props[propName];
1266
+
if (!isValidElement(propValue)) {
1267
+
var propType = getPropType(propValue);
1268
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));
1269
+
}
1270
+
return null;
1271
+
}
1272
+
return createChainableTypeChecker(validate);
1273
+
}
1274
+
1275
+
function createElementTypeTypeChecker() {
1276
+
function validate(props, propName, componentName, location, propFullName) {
1277
+
var propValue = props[propName];
1278
+
if (!ReactIs.isValidElementType(propValue)) {
1279
+
var propType = getPropType(propValue);
1280
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement type.'));
1281
+
}
1282
+
return null;
1283
+
}
1284
+
return createChainableTypeChecker(validate);
1285
+
}
1286
+
1287
+
function createInstanceTypeChecker(expectedClass) {
1288
+
function validate(props, propName, componentName, location, propFullName) {
1289
+
if (!(props[propName] instanceof expectedClass)) {
1290
+
var expectedClassName = expectedClass.name || ANONYMOUS;
1291
+
var actualClassName = getClassName(props[propName]);
1292
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));
1293
+
}
1294
+
return null;
1295
+
}
1296
+
return createChainableTypeChecker(validate);
1297
+
}
1298
+
1299
+
function createEnumTypeChecker(expectedValues) {
1300
+
if (!Array.isArray(expectedValues)) {
1301
+
if (true) {
1302
+
if (arguments.length > 1) {
1303
+
printWarning(
1304
+
'Invalid arguments supplied to oneOf, expected an array, got ' + arguments.length + ' arguments. ' +
1305
+
'A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).'
1306
+
);
1307
+
} else {
1308
+
printWarning('Invalid argument supplied to oneOf, expected an array.');
1309
+
}
1310
+
}
1311
+
return emptyFunctionThatReturnsNull;
1312
+
}
1313
+
1314
+
function validate(props, propName, componentName, location, propFullName) {
1315
+
var propValue = props[propName];
1316
+
for (var i = 0; i < expectedValues.length; i++) {
1317
+
if (is(propValue, expectedValues[i])) {
1318
+
return null;
1319
+
}
1320
+
}
1321
+
1322
+
var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {
1323
+
var type = getPreciseType(value);
1324
+
if (type === 'symbol') {
1325
+
return String(value);
1326
+
}
1327
+
return value;
1328
+
});
1329
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + String(propValue) + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));
1330
+
}
1331
+
return createChainableTypeChecker(validate);
1332
+
}
1333
+
1334
+
function createObjectOfTypeChecker(typeChecker) {
1335
+
function validate(props, propName, componentName, location, propFullName) {
1336
+
if (typeof typeChecker !== 'function') {
1337
+
return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');
1338
+
}
1339
+
var propValue = props[propName];
1340
+
var propType = getPropType(propValue);
1341
+
if (propType !== 'object') {
1342
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));
1343
+
}
1344
+
for (var key in propValue) {
1345
+
if (has(propValue, key)) {
1346
+
var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
1347
+
if (error instanceof Error) {
1348
+
return error;
1349
+
}
1350
+
}
1351
+
}
1352
+
return null;
1353
+
}
1354
+
return createChainableTypeChecker(validate);
1355
+
}
1356
+
1357
+
function createUnionTypeChecker(arrayOfTypeCheckers) {
1358
+
if (!Array.isArray(arrayOfTypeCheckers)) {
1359
+
true ? printWarning('Invalid argument supplied to oneOfType, expected an instance of array.') : 0;
1360
+
return emptyFunctionThatReturnsNull;
1361
+
}
1362
+
1363
+
for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
1364
+
var checker = arrayOfTypeCheckers[i];
1365
+
if (typeof checker !== 'function') {
1366
+
printWarning(
1367
+
'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' +
1368
+
'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.'
1369
+
);
1370
+
return emptyFunctionThatReturnsNull;
1371
+
}
1372
+
}
1373
+
1374
+
function validate(props, propName, componentName, location, propFullName) {
1375
+
var expectedTypes = [];
1376
+
for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
1377
+
var checker = arrayOfTypeCheckers[i];
1378
+
var checkerResult = checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret);
1379
+
if (checkerResult == null) {
1380
+
return null;
1381
+
}
1382
+
if (checkerResult.data && has(checkerResult.data, 'expectedType')) {
1383
+
expectedTypes.push(checkerResult.data.expectedType);
1384
+
}
1385
+
}
1386
+
var expectedTypesMessage = (expectedTypes.length > 0) ? ', expected one of type [' + expectedTypes.join(', ') + ']': '';
1387
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`' + expectedTypesMessage + '.'));
1388
+
}
1389
+
return createChainableTypeChecker(validate);
1390
+
}
1391
+
1392
+
function createNodeChecker() {
1393
+
function validate(props, propName, componentName, location, propFullName) {
1394
+
if (!isNode(props[propName])) {
1395
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));
1396
+
}
1397
+
return null;
1398
+
}
1399
+
return createChainableTypeChecker(validate);
1400
+
}
1401
+
1402
+
function invalidValidatorError(componentName, location, propFullName, key, type) {
1403
+
return new PropTypeError(
1404
+
(componentName || 'React class') + ': ' + location + ' type `' + propFullName + '.' + key + '` is invalid; ' +
1405
+
'it must be a function, usually from the `prop-types` package, but received `' + type + '`.'
1406
+
);
1407
+
}
1408
+
1409
+
function createShapeTypeChecker(shapeTypes) {
1410
+
function validate(props, propName, componentName, location, propFullName) {
1411
+
var propValue = props[propName];
1412
+
var propType = getPropType(propValue);
1413
+
if (propType !== 'object') {
1414
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
1415
+
}
1416
+
for (var key in shapeTypes) {
1417
+
var checker = shapeTypes[key];
1418
+
if (typeof checker !== 'function') {
1419
+
return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
1420
+
}
1421
+
var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
1422
+
if (error) {
1423
+
return error;
1424
+
}
1425
+
}
1426
+
return null;
1427
+
}
1428
+
return createChainableTypeChecker(validate);
1429
+
}
1430
+
1431
+
function createStrictShapeTypeChecker(shapeTypes) {
1432
+
function validate(props, propName, componentName, location, propFullName) {
1433
+
var propValue = props[propName];
1434
+
var propType = getPropType(propValue);
1435
+
if (propType !== 'object') {
1436
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
1437
+
}
1438
+
// We need to check all keys in case some are required but missing from props.
1439
+
var allKeys = assign({}, props[propName], shapeTypes);
1440
+
for (var key in allKeys) {
1441
+
var checker = shapeTypes[key];
1442
+
if (has(shapeTypes, key) && typeof checker !== 'function') {
1443
+
return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
1444
+
}
1445
+
if (!checker) {
1446
+
return new PropTypeError(
1447
+
'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +
1448
+
'\nBad object: ' + JSON.stringify(props[propName], null, ' ') +
1449
+
'\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')
1450
+
);
1451
+
}
1452
+
var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
1453
+
if (error) {
1454
+
return error;
1455
+
}
1456
+
}
1457
+
return null;
1458
+
}
1459
+
1460
+
return createChainableTypeChecker(validate);
1461
+
}
1462
+
1463
+
function isNode(propValue) {
1464
+
switch (typeof propValue) {
1465
+
case 'number':
1466
+
case 'string':
1467
+
case 'undefined':
1468
+
return true;
1469
+
case 'boolean':
1470
+
return !propValue;
1471
+
case 'object':
1472
+
if (Array.isArray(propValue)) {
1473
+
return propValue.every(isNode);
1474
+
}
1475
+
if (propValue === null || isValidElement(propValue)) {
1476
+
return true;
1477
+
}
1478
+
1479
+
var iteratorFn = getIteratorFn(propValue);
1480
+
if (iteratorFn) {
1481
+
var iterator = iteratorFn.call(propValue);
1482
+
var step;
1483
+
if (iteratorFn !== propValue.entries) {
1484
+
while (!(step = iterator.next()).done) {
1485
+
if (!isNode(step.value)) {
1486
+
return false;
1487
+
}
1488
+
}
1489
+
} else {
1490
+
// Iterator will provide entry [k,v] tuples rather than values.
1491
+
while (!(step = iterator.next()).done) {
1492
+
var entry = step.value;
1493
+
if (entry) {
1494
+
if (!isNode(entry[1])) {
1495
+
return false;
1496
+
}
1497
+
}
1498
+
}
1499
+
}
1500
+
} else {
1501
+
return false;
1502
+
}
1503
+
1504
+
return true;
1505
+
default:
1506
+
return false;
1507
+
}
1508
+
}
1509
+
1510
+
function isSymbol(propType, propValue) {
1511
+
// Native Symbol.
1512
+
if (propType === 'symbol') {
1513
+
return true;
1514
+
}
1515
+
1516
+
// falsy value can't be a Symbol
1517
+
if (!propValue) {
1518
+
return false;
1519
+
}
1520
+
1521
+
// 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'
1522
+
if (propValue['@@toStringTag'] === 'Symbol') {
1523
+
return true;
1524
+
}
1525
+
1526
+
// Fallback for non-spec compliant Symbols which are polyfilled.
1527
+
if (typeof Symbol === 'function' && propValue instanceof Symbol) {
1528
+
return true;
1529
+
}
1530
+
1531
+
return false;
1532
+
}
1533
+
1534
+
// Equivalent of `typeof` but with special handling for array and regexp.
1535
+
function getPropType(propValue) {
1536
+
var propType = typeof propValue;
1537
+
if (Array.isArray(propValue)) {
1538
+
return 'array';
1539
+
}
1540
+
if (propValue instanceof RegExp) {
1541
+
// Old webkits (at least until Android 4.0) return 'function' rather than
1542
+
// 'object' for typeof a RegExp. We'll normalize this here so that /bla/
1543
+
// passes PropTypes.object.
1544
+
return 'object';
1545
+
}
1546
+
if (isSymbol(propType, propValue)) {
1547
+
return 'symbol';
1548
+
}
1549
+
return propType;
1550
+
}
1551
+
1552
+
// This handles more types than `getPropType`. Only used for error messages.
1553
+
// See `createPrimitiveTypeChecker`.
1554
+
function getPreciseType(propValue) {
1555
+
if (typeof propValue === 'undefined' || propValue === null) {
1556
+
return '' + propValue;
1557
+
}
1558
+
var propType = getPropType(propValue);
1559
+
if (propType === 'object') {
1560
+
if (propValue instanceof Date) {
1561
+
return 'date';
1562
+
} else if (propValue instanceof RegExp) {
1563
+
return 'regexp';
1564
+
}
1565
+
}
1566
+
return propType;
1567
+
}
1568
+
1569
+
// Returns a string that is postfixed to a warning about an invalid type.
1570
+
// For example, "undefined" or "of type array"
1571
+
function getPostfixForTypeWarning(value) {
1572
+
var type = getPreciseType(value);
1573
+
switch (type) {
1574
+
case 'array':
1575
+
case 'object':
1576
+
return 'an ' + type;
1577
+
case 'boolean':
1578
+
case 'date':
1579
+
case 'regexp':
1580
+
return 'a ' + type;
1581
+
default:
1582
+
return type;
1583
+
}
1584
+
}
1585
+
1586
+
// Returns class name of the object, if any.
1587
+
function getClassName(propValue) {
1588
+
if (!propValue.constructor || !propValue.constructor.name) {
1589
+
return ANONYMOUS;
1590
+
}
1591
+
return propValue.constructor.name;
1592
+
}
1593
+
1594
+
ReactPropTypes.checkPropTypes = checkPropTypes;
1595
+
ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache;
1596
+
ReactPropTypes.PropTypes = ReactPropTypes;
1597
+
1598
+
return ReactPropTypes;
1599
+
};
1600
+
1601
+
1602
+
/***/ }),
1603
+
1604
+
/***/ "../node_modules/prop-types/index.js":
1605
+
/*!*******************************************!*\
1606
+
!*** ../node_modules/prop-types/index.js ***!
1607
+
\*******************************************/
1608
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1609
+
1610
+
/**
1611
+
* Copyright (c) 2013-present, Facebook, Inc.
1612
+
*
1613
+
* This source code is licensed under the MIT license found in the
1614
+
* LICENSE file in the root directory of this source tree.
1615
+
*/
1616
+
1617
+
if (true) {
1618
+
var ReactIs = __webpack_require__(/*! react-is */ "../node_modules/prop-types/node_modules/react-is/index.js");
1619
+
1620
+
// By explicitly using `prop-types` you are opting into new development behavior.
1621
+
// http://fb.me/prop-types-in-prod
1622
+
var throwOnDirectAccess = true;
1623
+
module.exports = __webpack_require__(/*! ./factoryWithTypeCheckers */ "../node_modules/prop-types/factoryWithTypeCheckers.js")(ReactIs.isElement, throwOnDirectAccess);
1624
+
} else // removed by dead control flow
1625
+
{}
1626
+
1627
+
1628
+
/***/ }),
1629
+
1630
+
/***/ "../node_modules/prop-types/lib/ReactPropTypesSecret.js":
1631
+
/*!**************************************************************!*\
1632
+
!*** ../node_modules/prop-types/lib/ReactPropTypesSecret.js ***!
1633
+
\**************************************************************/
1634
+
/***/ ((module) => {
1635
+
1636
+
"use strict";
1637
+
/**
1638
+
* Copyright (c) 2013-present, Facebook, Inc.
1639
+
*
1640
+
* This source code is licensed under the MIT license found in the
1641
+
* LICENSE file in the root directory of this source tree.
1642
+
*/
1643
+
1644
+
1645
+
1646
+
var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
1647
+
1648
+
module.exports = ReactPropTypesSecret;
1649
+
1650
+
1651
+
/***/ }),
1652
+
1653
+
/***/ "../node_modules/prop-types/lib/has.js":
1654
+
/*!*********************************************!*\
1655
+
!*** ../node_modules/prop-types/lib/has.js ***!
1656
+
\*********************************************/
1657
+
/***/ ((module) => {
1658
+
1659
+
module.exports = Function.call.bind(Object.prototype.hasOwnProperty);
1660
+
1661
+
1662
+
/***/ }),
1663
+
1664
+
/***/ "../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js":
1665
+
/*!************************************************************************************!*\
1666
+
!*** ../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js ***!
1667
+
\************************************************************************************/
1668
+
/***/ ((__unused_webpack_module, exports) => {
1669
+
1670
+
"use strict";
1671
+
/** @license React v16.13.1
1672
+
* react-is.development.js
1673
+
*
1674
+
* Copyright (c) Facebook, Inc. and its affiliates.
1675
+
*
1676
+
* This source code is licensed under the MIT license found in the
1677
+
* LICENSE file in the root directory of this source tree.
1678
+
*/
1679
+
1680
+
1681
+
1682
+
1683
+
1684
+
if (true) {
1685
+
(function() {
1686
+
'use strict';
1687
+
1688
+
// The Symbol used to tag the ReactElement-like types. If there is no native Symbol
1689
+
// nor polyfill, then a plain number is used for performance.
1690
+
var hasSymbol = typeof Symbol === 'function' && Symbol.for;
1691
+
var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
1692
+
var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
1693
+
var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
1694
+
var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
1695
+
var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
1696
+
var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
1697
+
var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
1698
+
// (unstable) APIs that have been removed. Can we remove the symbols?
1699
+
1700
+
var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
1701
+
var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
1702
+
var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
1703
+
var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
1704
+
var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
1705
+
var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
1706
+
var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
1707
+
var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
1708
+
var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
1709
+
var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
1710
+
var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
1711
+
1712
+
function isValidElementType(type) {
1713
+
return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
1714
+
type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
1715
+
}
1716
+
1717
+
function typeOf(object) {
1718
+
if (typeof object === 'object' && object !== null) {
1719
+
var $$typeof = object.$$typeof;
1720
+
1721
+
switch ($$typeof) {
1722
+
case REACT_ELEMENT_TYPE:
1723
+
var type = object.type;
1724
+
1725
+
switch (type) {
1726
+
case REACT_ASYNC_MODE_TYPE:
1727
+
case REACT_CONCURRENT_MODE_TYPE:
1728
+
case REACT_FRAGMENT_TYPE:
1729
+
case REACT_PROFILER_TYPE:
1730
+
case REACT_STRICT_MODE_TYPE:
1731
+
case REACT_SUSPENSE_TYPE:
1732
+
return type;
1733
+
1734
+
default:
1735
+
var $$typeofType = type && type.$$typeof;
1736
+
1737
+
switch ($$typeofType) {
1738
+
case REACT_CONTEXT_TYPE:
1739
+
case REACT_FORWARD_REF_TYPE:
1740
+
case REACT_LAZY_TYPE:
1741
+
case REACT_MEMO_TYPE:
1742
+
case REACT_PROVIDER_TYPE:
1743
+
return $$typeofType;
1744
+
1745
+
default:
1746
+
return $$typeof;
1747
+
}
1748
+
1749
+
}
1750
+
1751
+
case REACT_PORTAL_TYPE:
1752
+
return $$typeof;
1753
+
}
1754
+
}
1755
+
1756
+
return undefined;
1757
+
} // AsyncMode is deprecated along with isAsyncMode
1758
+
1759
+
var AsyncMode = REACT_ASYNC_MODE_TYPE;
1760
+
var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
1761
+
var ContextConsumer = REACT_CONTEXT_TYPE;
1762
+
var ContextProvider = REACT_PROVIDER_TYPE;
1763
+
var Element = REACT_ELEMENT_TYPE;
1764
+
var ForwardRef = REACT_FORWARD_REF_TYPE;
1765
+
var Fragment = REACT_FRAGMENT_TYPE;
1766
+
var Lazy = REACT_LAZY_TYPE;
1767
+
var Memo = REACT_MEMO_TYPE;
1768
+
var Portal = REACT_PORTAL_TYPE;
1769
+
var Profiler = REACT_PROFILER_TYPE;
1770
+
var StrictMode = REACT_STRICT_MODE_TYPE;
1771
+
var Suspense = REACT_SUSPENSE_TYPE;
1772
+
var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated
1773
+
1774
+
function isAsyncMode(object) {
1775
+
{
1776
+
if (!hasWarnedAboutDeprecatedIsAsyncMode) {
1777
+
hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
1778
+
1779
+
console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.');
1780
+
}
1781
+
}
1782
+
1783
+
return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
1784
+
}
1785
+
function isConcurrentMode(object) {
1786
+
return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
1787
+
}
1788
+
function isContextConsumer(object) {
1789
+
return typeOf(object) === REACT_CONTEXT_TYPE;
1790
+
}
1791
+
function isContextProvider(object) {
1792
+
return typeOf(object) === REACT_PROVIDER_TYPE;
1793
+
}
1794
+
function isElement(object) {
1795
+
return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
1796
+
}
1797
+
function isForwardRef(object) {
1798
+
return typeOf(object) === REACT_FORWARD_REF_TYPE;
1799
+
}
1800
+
function isFragment(object) {
1801
+
return typeOf(object) === REACT_FRAGMENT_TYPE;
1802
+
}
1803
+
function isLazy(object) {
1804
+
return typeOf(object) === REACT_LAZY_TYPE;
1805
+
}
1806
+
function isMemo(object) {
1807
+
return typeOf(object) === REACT_MEMO_TYPE;
1808
+
}
1809
+
function isPortal(object) {
1810
+
return typeOf(object) === REACT_PORTAL_TYPE;
1811
+
}
1812
+
function isProfiler(object) {
1813
+
return typeOf(object) === REACT_PROFILER_TYPE;
1814
+
}
1815
+
function isStrictMode(object) {
1816
+
return typeOf(object) === REACT_STRICT_MODE_TYPE;
1817
+
}
1818
+
function isSuspense(object) {
1819
+
return typeOf(object) === REACT_SUSPENSE_TYPE;
1820
+
}
1821
+
1822
+
exports.AsyncMode = AsyncMode;
1823
+
exports.ConcurrentMode = ConcurrentMode;
1824
+
exports.ContextConsumer = ContextConsumer;
1825
+
exports.ContextProvider = ContextProvider;
1826
+
exports.Element = Element;
1827
+
exports.ForwardRef = ForwardRef;
1828
+
exports.Fragment = Fragment;
1829
+
exports.Lazy = Lazy;
1830
+
exports.Memo = Memo;
1831
+
exports.Portal = Portal;
1832
+
exports.Profiler = Profiler;
1833
+
exports.StrictMode = StrictMode;
1834
+
exports.Suspense = Suspense;
1835
+
exports.isAsyncMode = isAsyncMode;
1836
+
exports.isConcurrentMode = isConcurrentMode;
1837
+
exports.isContextConsumer = isContextConsumer;
1838
+
exports.isContextProvider = isContextProvider;
1839
+
exports.isElement = isElement;
1840
+
exports.isForwardRef = isForwardRef;
1841
+
exports.isFragment = isFragment;
1842
+
exports.isLazy = isLazy;
1843
+
exports.isMemo = isMemo;
1844
+
exports.isPortal = isPortal;
1845
+
exports.isProfiler = isProfiler;
1846
+
exports.isStrictMode = isStrictMode;
1847
+
exports.isSuspense = isSuspense;
1848
+
exports.isValidElementType = isValidElementType;
1849
+
exports.typeOf = typeOf;
1850
+
})();
1851
+
}
1852
+
1853
+
1854
+
/***/ }),
1855
+
1856
+
/***/ "../node_modules/prop-types/node_modules/react-is/index.js":
1857
+
/*!*****************************************************************!*\
1858
+
!*** ../node_modules/prop-types/node_modules/react-is/index.js ***!
1859
+
\*****************************************************************/
1860
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1861
+
1862
+
"use strict";
1863
+
1864
+
1865
+
if (false) // removed by dead control flow
1866
+
{} else {
1867
+
module.exports = __webpack_require__(/*! ./cjs/react-is.development.js */ "../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js");
1868
+
}
1869
+
1870
+
1871
+
/***/ }),
1872
+
1873
+
/***/ "@elementor/query":
1874
+
/*!************************************!*\
1875
+
!*** external "elementorV2.query" ***!
1876
+
\************************************/
1877
+
/***/ ((module) => {
1878
+
1879
+
"use strict";
1880
+
module.exports = elementorV2.query;
1881
+
1882
+
/***/ }),
1883
+
1884
+
/***/ "@elementor/ui":
1885
+
/*!*********************************!*\
1886
+
!*** external "elementorV2.ui" ***!
1887
+
\*********************************/
1888
+
/***/ ((module) => {
1889
+
1890
+
"use strict";
1891
+
module.exports = elementorV2.ui;
1892
+
1893
+
/***/ }),
1894
+
1895
+
/***/ "@wordpress/i18n":
1896
+
/*!**************************!*\
1897
+
!*** external "wp.i18n" ***!
1898
+
\**************************/
1899
+
/***/ ((module) => {
1900
+
1901
+
"use strict";
1902
+
module.exports = wp.i18n;
1903
+
1904
+
/***/ }),
1905
+
1906
+
/***/ "react":
1907
+
/*!************************!*\
1908
+
!*** external "React" ***!
1909
+
\************************/
1910
+
/***/ ((module) => {
1911
+
1912
+
"use strict";
1913
+
module.exports = React;
1914
+
1915
+
/***/ })
1916
+
1917
+
/******/ });
1918
+
/************************************************************************/
1919
+
/******/ // The module cache
1920
+
/******/ var __webpack_module_cache__ = {};
1921
+
/******/
1922
+
/******/ // The require function
1923
+
/******/ function __webpack_require__(moduleId) {
1924
+
/******/ // Check if module is in cache
1925
+
/******/ var cachedModule = __webpack_module_cache__[moduleId];
1926
+
/******/ if (cachedModule !== undefined) {
1927
+
/******/ return cachedModule.exports;
1928
+
/******/ }
1929
+
/******/ // Create a new module (and put it into the cache)
1930
+
/******/ var module = __webpack_module_cache__[moduleId] = {
1931
+
/******/ // no module.id needed
1932
+
/******/ // no module.loaded needed
1933
+
/******/ exports: {}
1934
+
/******/ };
1935
+
/******/
1936
+
/******/ // Execute the module function
1937
+
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
1938
+
/******/
1939
+
/******/ // Return the exports of the module
1940
+
/******/ return module.exports;
1941
+
/******/ }
1942
+
/******/
1943
+
/************************************************************************/
1944
+
var __webpack_exports__ = {};
1945
+
// This entry needs to be wrapped in an IIFE because it needs to be in strict mode.
1946
+
(() => {
1947
+
"use strict";
1948
+
/*!***************************************************!*\
1949
+
!*** ../modules/notifications/assets/js/admin.js ***!
1950
+
\***************************************************/
1951
+
1952
+
1953
+
var _barButtonNotification = __webpack_require__(/*! ./components/bar-button-notification */ "../modules/notifications/assets/js/components/bar-button-notification.js");
1954
+
window.elementorNotificationCenter = {
1955
+
BarButtonNotification: _barButtonNotification.BarButtonNotification
1956
+
};
1957
+
})();
1958
+
1959
+
/******/ })()
1960
+
;
1961
+
//# sourceMappingURL=admin-notifications.js.map