| @@ -1,1463 +1,1961 @@ | ||
| 1 | -(function(react, _elementor_ui, _elementor_query, _wordpress_i18n, _elementor_icons) { | |
| 1 | +/******/ (() => { // webpackBootstrap | |
| 2 | +/******/ var __webpack_modules__ = ({ | |
| 2 | 3 | |
| 3 | -//#region \0rolldown/runtime.js | |
| 4 | - var __create = Object.create; | |
| 5 | - var __defProp = Object.defineProperty; | |
| 6 | - var __name = (target, value) => __defProp(target, "name", { | |
| 7 | - value, | |
| 8 | - configurable: true | |
| 9 | - }); | |
| 10 | - var __getOwnPropDesc = Object.getOwnPropertyDescriptor; | |
| 11 | - var __getOwnPropNames = Object.getOwnPropertyNames; | |
| 12 | - var __getProtoOf = Object.getPrototypeOf; | |
| 13 | - var __hasOwnProp = Object.prototype.hasOwnProperty; | |
| 14 | - var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports); | |
| 15 | - var __copyProps = (to, from, except, desc) => { | |
| 16 | - if (from && typeof from === "object" || typeof from === "function") { | |
| 17 | - for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) { | |
| 18 | - key = keys[i]; | |
| 19 | - if (!__hasOwnProp.call(to, key) && key !== except) { | |
| 20 | - __defProp(to, key, { | |
| 21 | - get: ((k) => from[k]).bind(null, key), | |
| 22 | - enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable | |
| 23 | - }); | |
| 24 | - } | |
| 25 | - } | |
| 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; | |
| 26 | 799 | } |
| 27 | - return to; | |
| 28 | - }; | |
| 29 | - var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { | |
| 30 | - value: mod, | |
| 31 | - enumerable: true | |
| 32 | - }) : target, mod)); | |
| 33 | 800 | |
| 34 | -//#endregion | |
| 35 | -react = __toESM(react); | |
| 801 | + // Detect buggy property enumeration order in older V8 versions. | |
| 36 | 802 | |
| 37 | -//#region node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js | |
| 38 | -/** @license React v16.13.1 | |
| 39 | - * react-is.development.js | |
| 40 | - * | |
| 41 | - * Copyright (c) Facebook, Inc. and its affiliates. | |
| 42 | - * | |
| 43 | - * This source code is licensed under the MIT license found in the | |
| 44 | - * LICENSE file in the root directory of this source tree. | |
| 45 | - */ | |
| 46 | - var require_react_is_development = /* @__PURE__ */ __commonJSMin(((exports) => { | |
| 47 | - (function() { | |
| 48 | - "use strict"; | |
| 49 | - var hasSymbol = typeof Symbol === "function" && Symbol.for; | |
| 50 | - var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for("react.element") : 60103; | |
| 51 | - var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for("react.portal") : 60106; | |
| 52 | - var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for("react.fragment") : 60107; | |
| 53 | - var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for("react.strict_mode") : 60108; | |
| 54 | - var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for("react.profiler") : 60114; | |
| 55 | - var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for("react.provider") : 60109; | |
| 56 | - var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for("react.context") : 60110; | |
| 57 | - var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for("react.async_mode") : 60111; | |
| 58 | - var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for("react.concurrent_mode") : 60111; | |
| 59 | - var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for("react.forward_ref") : 60112; | |
| 60 | - var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for("react.suspense") : 60113; | |
| 61 | - var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for("react.suspense_list") : 60120; | |
| 62 | - var REACT_MEMO_TYPE = hasSymbol ? Symbol.for("react.memo") : 60115; | |
| 63 | - var REACT_LAZY_TYPE = hasSymbol ? Symbol.for("react.lazy") : 60116; | |
| 64 | - var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for("react.block") : 60121; | |
| 65 | - var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for("react.fundamental") : 60117; | |
| 66 | - var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for("react.responder") : 60118; | |
| 67 | - var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for("react.scope") : 60119; | |
| 68 | - function isValidElementType(type) { | |
| 69 | - return typeof type === "string" || typeof type === "function" || 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); | |
| 70 | - } | |
| 71 | - function typeOf(object) { | |
| 72 | - if (typeof object === "object" && object !== null) { | |
| 73 | - var $$typeof = object.$$typeof; | |
| 74 | - switch ($$typeof) { | |
| 75 | - case REACT_ELEMENT_TYPE: | |
| 76 | - var type = object.type; | |
| 77 | - switch (type) { | |
| 78 | - case REACT_ASYNC_MODE_TYPE: | |
| 79 | - case REACT_CONCURRENT_MODE_TYPE: | |
| 80 | - case REACT_FRAGMENT_TYPE: | |
| 81 | - case REACT_PROFILER_TYPE: | |
| 82 | - case REACT_STRICT_MODE_TYPE: | |
| 83 | - case REACT_SUSPENSE_TYPE: return type; | |
| 84 | - default: | |
| 85 | - var $$typeofType = type && type.$$typeof; | |
| 86 | - switch ($$typeofType) { | |
| 87 | - case REACT_CONTEXT_TYPE: | |
| 88 | - case REACT_FORWARD_REF_TYPE: | |
| 89 | - case REACT_LAZY_TYPE: | |
| 90 | - case REACT_MEMO_TYPE: | |
| 91 | - case REACT_PROVIDER_TYPE: return $$typeofType; | |
| 92 | - default: return $$typeof; | |
| 93 | - } | |
| 94 | - } | |
| 95 | - case REACT_PORTAL_TYPE: return $$typeof; | |
| 96 | - } | |
| 97 | - } | |
| 98 | - } | |
| 99 | - var AsyncMode = REACT_ASYNC_MODE_TYPE; | |
| 100 | - var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE; | |
| 101 | - var ContextConsumer = REACT_CONTEXT_TYPE; | |
| 102 | - var ContextProvider = REACT_PROVIDER_TYPE; | |
| 103 | - var Element = REACT_ELEMENT_TYPE; | |
| 104 | - var ForwardRef = REACT_FORWARD_REF_TYPE; | |
| 105 | - var Fragment = REACT_FRAGMENT_TYPE; | |
| 106 | - var Lazy = REACT_LAZY_TYPE; | |
| 107 | - var Memo = REACT_MEMO_TYPE; | |
| 108 | - var Portal = REACT_PORTAL_TYPE; | |
| 109 | - var Profiler = REACT_PROFILER_TYPE; | |
| 110 | - var StrictMode = REACT_STRICT_MODE_TYPE; | |
| 111 | - var Suspense = REACT_SUSPENSE_TYPE; | |
| 112 | - var hasWarnedAboutDeprecatedIsAsyncMode = false; | |
| 113 | - function isAsyncMode(object) { | |
| 114 | - if (!hasWarnedAboutDeprecatedIsAsyncMode) { | |
| 115 | - hasWarnedAboutDeprecatedIsAsyncMode = true; | |
| 116 | - 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."); | |
| 117 | - } | |
| 118 | - return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE; | |
| 119 | - } | |
| 120 | - function isConcurrentMode(object) { | |
| 121 | - return typeOf(object) === REACT_CONCURRENT_MODE_TYPE; | |
| 122 | - } | |
| 123 | - function isContextConsumer(object) { | |
| 124 | - return typeOf(object) === REACT_CONTEXT_TYPE; | |
| 125 | - } | |
| 126 | - function isContextProvider(object) { | |
| 127 | - return typeOf(object) === REACT_PROVIDER_TYPE; | |
| 128 | - } | |
| 129 | - function isElement(object) { | |
| 130 | - return typeof object === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE; | |
| 131 | - } | |
| 132 | - function isForwardRef(object) { | |
| 133 | - return typeOf(object) === REACT_FORWARD_REF_TYPE; | |
| 134 | - } | |
| 135 | - function isFragment(object) { | |
| 136 | - return typeOf(object) === REACT_FRAGMENT_TYPE; | |
| 137 | - } | |
| 138 | - function isLazy(object) { | |
| 139 | - return typeOf(object) === REACT_LAZY_TYPE; | |
| 140 | - } | |
| 141 | - function isMemo(object) { | |
| 142 | - return typeOf(object) === REACT_MEMO_TYPE; | |
| 143 | - } | |
| 144 | - function isPortal(object) { | |
| 145 | - return typeOf(object) === REACT_PORTAL_TYPE; | |
| 146 | - } | |
| 147 | - function isProfiler(object) { | |
| 148 | - return typeOf(object) === REACT_PROFILER_TYPE; | |
| 149 | - } | |
| 150 | - function isStrictMode(object) { | |
| 151 | - return typeOf(object) === REACT_STRICT_MODE_TYPE; | |
| 152 | - } | |
| 153 | - function isSuspense(object) { | |
| 154 | - return typeOf(object) === REACT_SUSPENSE_TYPE; | |
| 155 | - } | |
| 156 | - exports.AsyncMode = AsyncMode; | |
| 157 | - exports.ConcurrentMode = ConcurrentMode; | |
| 158 | - exports.ContextConsumer = ContextConsumer; | |
| 159 | - exports.ContextProvider = ContextProvider; | |
| 160 | - exports.Element = Element; | |
| 161 | - exports.ForwardRef = ForwardRef; | |
| 162 | - exports.Fragment = Fragment; | |
| 163 | - exports.Lazy = Lazy; | |
| 164 | - exports.Memo = Memo; | |
| 165 | - exports.Portal = Portal; | |
| 166 | - exports.Profiler = Profiler; | |
| 167 | - exports.StrictMode = StrictMode; | |
| 168 | - exports.Suspense = Suspense; | |
| 169 | - exports.isAsyncMode = isAsyncMode; | |
| 170 | - exports.isConcurrentMode = isConcurrentMode; | |
| 171 | - exports.isContextConsumer = isContextConsumer; | |
| 172 | - exports.isContextProvider = isContextProvider; | |
| 173 | - exports.isElement = isElement; | |
| 174 | - exports.isForwardRef = isForwardRef; | |
| 175 | - exports.isFragment = isFragment; | |
| 176 | - exports.isLazy = isLazy; | |
| 177 | - exports.isMemo = isMemo; | |
| 178 | - exports.isPortal = isPortal; | |
| 179 | - exports.isProfiler = isProfiler; | |
| 180 | - exports.isStrictMode = isStrictMode; | |
| 181 | - exports.isSuspense = isSuspense; | |
| 182 | - exports.isValidElementType = isValidElementType; | |
| 183 | - exports.typeOf = typeOf; | |
| 184 | - })(); | |
| 185 | - })); | |
| 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 | + } | |
| 186 | 809 | |
| 187 | -//#endregion | |
| 188 | -//#region node_modules/prop-types/node_modules/react-is/index.js | |
| 189 | - var require_react_is = /* @__PURE__ */ __commonJSMin(((exports, module) => { | |
| 190 | - module.exports = require_react_is_development(); | |
| 191 | - })); | |
| 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 | + } | |
| 192 | 821 | |
| 193 | -//#endregion | |
| 194 | -//#region node_modules/object-assign/index.js | |
| 195 | -/* | |
| 196 | - object-assign | |
| 197 | - (c) Sindre Sorhus | |
| 198 | - @license MIT | |
| 199 | - */ | |
| 200 | - var require_object_assign = /* @__PURE__ */ __commonJSMin(((exports, module) => { | |
| 201 | - var getOwnPropertySymbols = Object.getOwnPropertySymbols; | |
| 202 | - var hasOwnProperty = Object.prototype.hasOwnProperty; | |
| 203 | - var propIsEnumerable = Object.prototype.propertyIsEnumerable; | |
| 204 | - function toObject(val) { | |
| 205 | - if (val === null || val === void 0) throw new TypeError("Object.assign cannot be called with null or undefined"); | |
| 206 | - return Object(val); | |
| 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; | |
| 207 | 830 | } |
| 208 | - function shouldUseNative() { | |
| 209 | - try { | |
| 210 | - if (!Object.assign) return false; | |
| 211 | - var test1 = /* @__PURE__ */ new String("abc"); | |
| 212 | - test1[5] = "de"; | |
| 213 | - if (Object.getOwnPropertyNames(test1)[0] === "5") return false; | |
| 214 | - var test2 = {}; | |
| 215 | - for (var i = 0; i < 10; i++) test2["_" + String.fromCharCode(i)] = i; | |
| 216 | - if (Object.getOwnPropertyNames(test2).map(function(n) { | |
| 217 | - return test2[n]; | |
| 218 | - }).join("") !== "0123456789") return false; | |
| 219 | - var test3 = {}; | |
| 220 | - "abcdefghijklmnopqrst".split("").forEach(function(letter) { | |
| 221 | - test3[letter] = letter; | |
| 222 | - }); | |
| 223 | - if (Object.keys(Object.assign({}, test3)).join("") !== "abcdefghijklmnopqrst") return false; | |
| 224 | - return true; | |
| 225 | - } catch (err) { | |
| 226 | - return false; | |
| 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]; | |
| 227 | 850 | } |
| 228 | 851 | } |
| 229 | - module.exports = shouldUseNative() ? Object.assign : function(target, source) { | |
| 230 | - var from; | |
| 231 | - var to = toObject(target); | |
| 232 | - var symbols; | |
| 233 | - for (var s = 1; s < arguments.length; s++) { | |
| 234 | - from = Object(arguments[s]); | |
| 235 | - for (var key in from) if (hasOwnProperty.call(from, key)) to[key] = from[key]; | |
| 236 | - if (getOwnPropertySymbols) { | |
| 237 | - symbols = getOwnPropertySymbols(from); | |
| 238 | - for (var i = 0; i < symbols.length; i++) if (propIsEnumerable.call(from, symbols[i])) to[symbols[i]] = from[symbols[i]]; | |
| 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]]; | |
| 239 | 858 | } |
| 240 | 859 | } |
| 241 | - return to; | |
| 242 | - }; | |
| 243 | - })); | |
| 860 | + } | |
| 861 | + } | |
| 244 | 862 | |
| 245 | -//#endregion | |
| 246 | -//#region node_modules/prop-types/lib/ReactPropTypesSecret.js | |
| 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"; | |
| 247 | 876 | /** |
| 248 | - * Copyright (c) 2013-present, Facebook, Inc. | |
| 249 | - * | |
| 250 | - * This source code is licensed under the MIT license found in the | |
| 251 | - * LICENSE file in the root directory of this source tree. | |
| 252 | - */ | |
| 253 | - var require_ReactPropTypesSecret = /* @__PURE__ */ __commonJSMin(((exports, module) => { | |
| 254 | - var ReactPropTypesSecret = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"; | |
| 255 | - module.exports = ReactPropTypesSecret; | |
| 256 | - })); | |
| 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 | + */ | |
| 257 | 882 | |
| 258 | -//#endregion | |
| 259 | -//#region node_modules/prop-types/lib/has.js | |
| 260 | - var require_has = /* @__PURE__ */ __commonJSMin(((exports, module) => { | |
| 261 | - module.exports = Function.call.bind(Object.prototype.hasOwnProperty); | |
| 262 | - })); | |
| 263 | 883 | |
| 264 | -//#endregion | |
| 265 | -//#region node_modules/prop-types/checkPropTypes.js | |
| 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 | + | |
| 266 | 906 | /** |
| 267 | - * Copyright (c) 2013-present, Facebook, Inc. | |
| 268 | - * | |
| 269 | - * This source code is licensed under the MIT license found in the | |
| 270 | - * LICENSE file in the root directory of this source tree. | |
| 271 | - */ | |
| 272 | - var require_checkPropTypes = /* @__PURE__ */ __commonJSMin(((exports, module) => { | |
| 273 | - var printWarning = function() {}; | |
| 274 | - var ReactPropTypesSecret = require_ReactPropTypesSecret(); | |
| 275 | - var loggedTypeFailures = {}; | |
| 276 | - var has = require_has(); | |
| 277 | - printWarning = function(text) { | |
| 278 | - var message = "Warning: " + text; | |
| 279 | - if (typeof console !== "undefined") console.error(message); | |
| 280 | - try { | |
| 281 | - throw new Error(message); | |
| 282 | - } catch (x) {} | |
| 283 | - }; | |
| 284 | - /** | |
| 285 | - * Assert that the values match with the type specs. | |
| 286 | - * Error messages are memorized and will only be shown once. | |
| 287 | - * | |
| 288 | - * @param {object} typeSpecs Map of name to a ReactPropType | |
| 289 | - * @param {object} values Runtime values that need to be type-checked | |
| 290 | - * @param {string} location e.g. "prop", "context", "child context" | |
| 291 | - * @param {string} componentName Name of the component for error messages. | |
| 292 | - * @param {?Function} getStack Returns the component stack. | |
| 293 | - * @private | |
| 294 | - */ | |
| 295 | - function checkPropTypes(typeSpecs, values, location, componentName, getStack) { | |
| 296 | - for (var typeSpecName in typeSpecs) if (has(typeSpecs, typeSpecName)) { | |
| 297 | - var error; | |
| 298 | - try { | |
| 299 | - if (typeof typeSpecs[typeSpecName] !== "function") { | |
| 300 | - var err = Error((componentName || "React class") + ": " + location + " type `" + typeSpecName + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof typeSpecs[typeSpecName] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."); | |
| 301 | - err.name = "Invariant Violation"; | |
| 302 | - throw err; | |
| 303 | - } | |
| 304 | - error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret); | |
| 305 | - } catch (ex) { | |
| 306 | - error = ex; | |
| 307 | - } | |
| 308 | - if (error && !(error instanceof Error)) printWarning((componentName || "React class") + ": type specification of " + location + " `" + typeSpecName + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof error + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."); | |
| 309 | - if (error instanceof Error && !(error.message in loggedTypeFailures)) { | |
| 310 | - loggedTypeFailures[error.message] = true; | |
| 311 | - var stack = getStack ? getStack() : ""; | |
| 312 | - printWarning("Failed " + location + " type: " + error.message + (stack != null ? stack : "")); | |
| 313 | - } | |
| 314 | - } | |
| 315 | - } | |
| 316 | - /** | |
| 317 | - * Resets warning cache when testing. | |
| 318 | - * | |
| 319 | - * @private | |
| 320 | - */ | |
| 321 | - checkPropTypes.resetWarningCache = function() { | |
| 322 | - loggedTypeFailures = {}; | |
| 323 | - }; | |
| 324 | - module.exports = checkPropTypes; | |
| 325 | - })); | |
| 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; | |
| 326 | 955 | |
| 327 | -//#endregion | |
| 328 | -//#region node_modules/prop-types/factoryWithTypeCheckers.js | |
| 956 | + var stack = getStack ? getStack() : ''; | |
| 957 | + | |
| 958 | + printWarning( | |
| 959 | + 'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '') | |
| 960 | + ); | |
| 961 | + } | |
| 962 | + } | |
| 963 | + } | |
| 964 | + } | |
| 965 | +} | |
| 966 | + | |
| 329 | 967 | /** |
| 330 | - * Copyright (c) 2013-present, Facebook, Inc. | |
| 331 | - * | |
| 332 | - * This source code is licensed under the MIT license found in the | |
| 333 | - * LICENSE file in the root directory of this source tree. | |
| 334 | - */ | |
| 335 | - var require_factoryWithTypeCheckers = /* @__PURE__ */ __commonJSMin(((exports, module) => { | |
| 336 | - var ReactIs = require_react_is(); | |
| 337 | - var assign = require_object_assign(); | |
| 338 | - var ReactPropTypesSecret = require_ReactPropTypesSecret(); | |
| 339 | - var has = require_has(); | |
| 340 | - var checkPropTypes = require_checkPropTypes(); | |
| 341 | - var printWarning = function() {}; | |
| 342 | - printWarning = function(text) { | |
| 343 | - var message = "Warning: " + text; | |
| 344 | - if (typeof console !== "undefined") console.error(message); | |
| 345 | - try { | |
| 346 | - throw new Error(message); | |
| 347 | - } catch (x) {} | |
| 348 | - }; | |
| 349 | - function emptyFunctionThatReturnsNull() { | |
| 350 | - return null; | |
| 351 | - } | |
| 352 | - module.exports = function(isValidElement, throwOnDirectAccess) { | |
| 353 | - var ITERATOR_SYMBOL = typeof Symbol === "function" && Symbol.iterator; | |
| 354 | - var FAUX_ITERATOR_SYMBOL = "@@iterator"; | |
| 355 | - /** | |
| 356 | - * Returns the iterator method function contained on the iterable object. | |
| 357 | - * | |
| 358 | - * Be sure to invoke the function with the iterable as context: | |
| 359 | - * | |
| 360 | - * var iteratorFn = getIteratorFn(myIterable); | |
| 361 | - * if (iteratorFn) { | |
| 362 | - * var iterator = iteratorFn.call(myIterable); | |
| 363 | - * ... | |
| 364 | - * } | |
| 365 | - * | |
| 366 | - * @param {?object} maybeIterable | |
| 367 | - * @return {?function} | |
| 368 | - */ | |
| 369 | - function getIteratorFn(maybeIterable) { | |
| 370 | - var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]); | |
| 371 | - if (typeof iteratorFn === "function") return iteratorFn; | |
| 372 | - } | |
| 373 | - /** | |
| 374 | - * Collection of methods that allow declaration and validation of props that are | |
| 375 | - * supplied to React components. Example usage: | |
| 376 | - * | |
| 377 | - * var Props = require('ReactPropTypes'); | |
| 378 | - * var MyArticle = React.createClass({ | |
| 379 | - * propTypes: { | |
| 380 | - * // An optional string prop named "description". | |
| 381 | - * description: Props.string, | |
| 382 | - * | |
| 383 | - * // A required enum prop named "category". | |
| 384 | - * category: Props.oneOf(['News','Photos']).isRequired, | |
| 385 | - * | |
| 386 | - * // A prop named "dialog" that requires an instance of Dialog. | |
| 387 | - * dialog: Props.instanceOf(Dialog).isRequired | |
| 388 | - * }, | |
| 389 | - * render: function() { ... } | |
| 390 | - * }); | |
| 391 | - * | |
| 392 | - * A more formal specification of how these methods are used: | |
| 393 | - * | |
| 394 | - * type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...) | |
| 395 | - * decl := ReactPropTypes.{type}(.isRequired)? | |
| 396 | - * | |
| 397 | - * Each and every declaration produces a function with the same signature. This | |
| 398 | - * allows the creation of custom validation functions. For example: | |
| 399 | - * | |
| 400 | - * var MyLink = React.createClass({ | |
| 401 | - * propTypes: { | |
| 402 | - * // An optional string or URI prop named "href". | |
| 403 | - * href: function(props, propName, componentName) { | |
| 404 | - * var propValue = props[propName]; | |
| 405 | - * if (propValue != null && typeof propValue !== 'string' && | |
| 406 | - * !(propValue instanceof URI)) { | |
| 407 | - * return new Error( | |
| 408 | - * 'Expected a string or an URI for ' + propName + ' in ' + | |
| 409 | - * componentName | |
| 410 | - * ); | |
| 411 | - * } | |
| 412 | - * } | |
| 413 | - * }, | |
| 414 | - * render: function() {...} | |
| 415 | - * }); | |
| 416 | - * | |
| 417 | - * @internal | |
| 418 | - */ | |
| 419 | - var ANONYMOUS = "<<anonymous>>"; | |
| 420 | - var ReactPropTypes = { | |
| 421 | - array: createPrimitiveTypeChecker("array"), | |
| 422 | - bigint: createPrimitiveTypeChecker("bigint"), | |
| 423 | - bool: createPrimitiveTypeChecker("boolean"), | |
| 424 | - func: createPrimitiveTypeChecker("function"), | |
| 425 | - number: createPrimitiveTypeChecker("number"), | |
| 426 | - object: createPrimitiveTypeChecker("object"), | |
| 427 | - string: createPrimitiveTypeChecker("string"), | |
| 428 | - symbol: createPrimitiveTypeChecker("symbol"), | |
| 429 | - any: createAnyTypeChecker(), | |
| 430 | - arrayOf: createArrayOfTypeChecker, | |
| 431 | - element: createElementTypeChecker(), | |
| 432 | - elementType: createElementTypeTypeChecker(), | |
| 433 | - instanceOf: createInstanceTypeChecker, | |
| 434 | - node: createNodeChecker(), | |
| 435 | - objectOf: createObjectOfTypeChecker, | |
| 436 | - oneOf: createEnumTypeChecker, | |
| 437 | - oneOfType: createUnionTypeChecker, | |
| 438 | - shape: createShapeTypeChecker, | |
| 439 | - exact: createStrictShapeTypeChecker | |
| 440 | - }; | |
| 441 | - /** | |
| 442 | - * inlined Object.is polyfill to avoid requiring consumers ship their own | |
| 443 | - * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is | |
| 444 | - */ | |
| 445 | - function is(x, y) { | |
| 446 | - if (x === y) return x !== 0 || 1 / x === 1 / y; | |
| 447 | - else return x !== x && y !== y; | |
| 448 | - } | |
| 449 | - /** | |
| 450 | - * We use an Error-like object for backward compatibility as people may call | |
| 451 | - * PropTypes directly and inspect their output. However, we don't use real | |
| 452 | - * Errors anymore. We don't inspect their stack anyway, and creating them | |
| 453 | - * is prohibitively expensive if they are created too often, such as what | |
| 454 | - * happens in oneOfType() for any type before the one that matched. | |
| 455 | - */ | |
| 456 | - function PropTypeError(message, data) { | |
| 457 | - this.message = message; | |
| 458 | - this.data = data && typeof data === "object" ? data : {}; | |
| 459 | - this.stack = ""; | |
| 460 | - } | |
| 461 | - PropTypeError.prototype = Error.prototype; | |
| 462 | - function createChainableTypeChecker(validate) { | |
| 463 | - var manualPropTypeCallCache = {}; | |
| 464 | - var manualPropTypeWarningCount = 0; | |
| 465 | - function checkType(isRequired, props, propName, componentName, location, propFullName, secret) { | |
| 466 | - componentName = componentName || ANONYMOUS; | |
| 467 | - propFullName = propFullName || propName; | |
| 468 | - if (secret !== ReactPropTypesSecret) { | |
| 469 | - if (throwOnDirectAccess) { | |
| 470 | - var err = /* @__PURE__ */ new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"); | |
| 471 | - err.name = "Invariant Violation"; | |
| 472 | - throw err; | |
| 473 | - } else if (typeof console !== "undefined") { | |
| 474 | - var cacheKey = componentName + ":" + propName; | |
| 475 | - if (!manualPropTypeCallCache[cacheKey] && manualPropTypeWarningCount < 3) { | |
| 476 | - printWarning("You are manually calling a React.PropTypes validation function for the `" + propFullName + "` prop on `" + componentName + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."); | |
| 477 | - manualPropTypeCallCache[cacheKey] = true; | |
| 478 | - manualPropTypeWarningCount++; | |
| 479 | - } | |
| 480 | - } | |
| 481 | - } | |
| 482 | - if (props[propName] == null) { | |
| 483 | - if (isRequired) { | |
| 484 | - if (props[propName] === null) return new PropTypeError("The " + location + " `" + propFullName + "` is marked as required " + ("in `" + componentName + "`, but its value is `null`.")); | |
| 485 | - return new PropTypeError("The " + location + " `" + propFullName + "` is marked as required in " + ("`" + componentName + "`, but its value is `undefined`.")); | |
| 486 | - } | |
| 487 | - return null; | |
| 488 | - } else return validate(props, propName, componentName, location, propFullName); | |
| 489 | - } | |
| 490 | - var chainedCheckType = checkType.bind(null, false); | |
| 491 | - chainedCheckType.isRequired = checkType.bind(null, true); | |
| 492 | - return chainedCheckType; | |
| 493 | - } | |
| 494 | - function createPrimitiveTypeChecker(expectedType) { | |
| 495 | - function validate(props, propName, componentName, location, propFullName, secret) { | |
| 496 | - var propValue = props[propName]; | |
| 497 | - if (getPropType(propValue) !== expectedType) { | |
| 498 | - var preciseType = getPreciseType(propValue); | |
| 499 | - return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + preciseType + "` supplied to `" + componentName + "`, expected ") + ("`" + expectedType + "`."), { expectedType }); | |
| 500 | - } | |
| 501 | - return null; | |
| 502 | - } | |
| 503 | - return createChainableTypeChecker(validate); | |
| 504 | - } | |
| 505 | - function createAnyTypeChecker() { | |
| 506 | - return createChainableTypeChecker(emptyFunctionThatReturnsNull); | |
| 507 | - } | |
| 508 | - function createArrayOfTypeChecker(typeChecker) { | |
| 509 | - function validate(props, propName, componentName, location, propFullName) { | |
| 510 | - if (typeof typeChecker !== "function") return new PropTypeError("Property `" + propFullName + "` of component `" + componentName + "` has invalid PropType notation inside arrayOf."); | |
| 511 | - var propValue = props[propName]; | |
| 512 | - if (!Array.isArray(propValue)) { | |
| 513 | - var propType = getPropType(propValue); | |
| 514 | - return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected an array.")); | |
| 515 | - } | |
| 516 | - for (var i = 0; i < propValue.length; i++) { | |
| 517 | - var error = typeChecker(propValue, i, componentName, location, propFullName + "[" + i + "]", ReactPropTypesSecret); | |
| 518 | - if (error instanceof Error) return error; | |
| 519 | - } | |
| 520 | - return null; | |
| 521 | - } | |
| 522 | - return createChainableTypeChecker(validate); | |
| 523 | - } | |
| 524 | - function createElementTypeChecker() { | |
| 525 | - function validate(props, propName, componentName, location, propFullName) { | |
| 526 | - var propValue = props[propName]; | |
| 527 | - if (!isValidElement(propValue)) { | |
| 528 | - var propType = getPropType(propValue); | |
| 529 | - return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected a single ReactElement.")); | |
| 530 | - } | |
| 531 | - return null; | |
| 532 | - } | |
| 533 | - return createChainableTypeChecker(validate); | |
| 534 | - } | |
| 535 | - function createElementTypeTypeChecker() { | |
| 536 | - function validate(props, propName, componentName, location, propFullName) { | |
| 537 | - var propValue = props[propName]; | |
| 538 | - if (!ReactIs.isValidElementType(propValue)) { | |
| 539 | - var propType = getPropType(propValue); | |
| 540 | - return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected a single ReactElement type.")); | |
| 541 | - } | |
| 542 | - return null; | |
| 543 | - } | |
| 544 | - return createChainableTypeChecker(validate); | |
| 545 | - } | |
| 546 | - function createInstanceTypeChecker(expectedClass) { | |
| 547 | - function validate(props, propName, componentName, location, propFullName) { | |
| 548 | - if (!(props[propName] instanceof expectedClass)) { | |
| 549 | - var expectedClassName = expectedClass.name || ANONYMOUS; | |
| 550 | - var actualClassName = getClassName(props[propName]); | |
| 551 | - return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + actualClassName + "` supplied to `" + componentName + "`, expected ") + ("instance of `" + expectedClassName + "`.")); | |
| 552 | - } | |
| 553 | - return null; | |
| 554 | - } | |
| 555 | - return createChainableTypeChecker(validate); | |
| 556 | - } | |
| 557 | - function createEnumTypeChecker(expectedValues) { | |
| 558 | - if (!Array.isArray(expectedValues)) { | |
| 559 | - if (arguments.length > 1) printWarning("Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."); | |
| 560 | - else printWarning("Invalid argument supplied to oneOf, expected an array."); | |
| 561 | - return emptyFunctionThatReturnsNull; | |
| 562 | - } | |
| 563 | - function validate(props, propName, componentName, location, propFullName) { | |
| 564 | - var propValue = props[propName]; | |
| 565 | - for (var i = 0; i < expectedValues.length; i++) if (is(propValue, expectedValues[i])) return null; | |
| 566 | - var valuesString = JSON.stringify(expectedValues, function replacer(key, value) { | |
| 567 | - if (getPreciseType(value) === "symbol") return String(value); | |
| 568 | - return value; | |
| 569 | - }); | |
| 570 | - return new PropTypeError("Invalid " + location + " `" + propFullName + "` of value `" + String(propValue) + "` " + ("supplied to `" + componentName + "`, expected one of " + valuesString + ".")); | |
| 571 | - } | |
| 572 | - return createChainableTypeChecker(validate); | |
| 573 | - } | |
| 574 | - function createObjectOfTypeChecker(typeChecker) { | |
| 575 | - function validate(props, propName, componentName, location, propFullName) { | |
| 576 | - if (typeof typeChecker !== "function") return new PropTypeError("Property `" + propFullName + "` of component `" + componentName + "` has invalid PropType notation inside objectOf."); | |
| 577 | - var propValue = props[propName]; | |
| 578 | - var propType = getPropType(propValue); | |
| 579 | - if (propType !== "object") return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected an object.")); | |
| 580 | - for (var key in propValue) if (has(propValue, key)) { | |
| 581 | - var error = typeChecker(propValue, key, componentName, location, propFullName + "." + key, ReactPropTypesSecret); | |
| 582 | - if (error instanceof Error) return error; | |
| 583 | - } | |
| 584 | - return null; | |
| 585 | - } | |
| 586 | - return createChainableTypeChecker(validate); | |
| 587 | - } | |
| 588 | - function createUnionTypeChecker(arrayOfTypeCheckers) { | |
| 589 | - if (!Array.isArray(arrayOfTypeCheckers)) { | |
| 590 | - printWarning("Invalid argument supplied to oneOfType, expected an instance of array."); | |
| 591 | - return emptyFunctionThatReturnsNull; | |
| 592 | - } | |
| 593 | - for (var i = 0; i < arrayOfTypeCheckers.length; i++) { | |
| 594 | - var checker = arrayOfTypeCheckers[i]; | |
| 595 | - if (typeof checker !== "function") { | |
| 596 | - printWarning("Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + getPostfixForTypeWarning(checker) + " at index " + i + "."); | |
| 597 | - return emptyFunctionThatReturnsNull; | |
| 598 | - } | |
| 599 | - } | |
| 600 | - function validate(props, propName, componentName, location, propFullName) { | |
| 601 | - var expectedTypes = []; | |
| 602 | - for (var i = 0; i < arrayOfTypeCheckers.length; i++) { | |
| 603 | - var checker = arrayOfTypeCheckers[i]; | |
| 604 | - var checkerResult = checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret); | |
| 605 | - if (checkerResult == null) return null; | |
| 606 | - if (checkerResult.data && has(checkerResult.data, "expectedType")) expectedTypes.push(checkerResult.data.expectedType); | |
| 607 | - } | |
| 608 | - var expectedTypesMessage = expectedTypes.length > 0 ? ", expected one of type [" + expectedTypes.join(", ") + "]" : ""; | |
| 609 | - return new PropTypeError("Invalid " + location + " `" + propFullName + "` supplied to " + ("`" + componentName + "`" + expectedTypesMessage + ".")); | |
| 610 | - } | |
| 611 | - return createChainableTypeChecker(validate); | |
| 612 | - } | |
| 613 | - function createNodeChecker() { | |
| 614 | - function validate(props, propName, componentName, location, propFullName) { | |
| 615 | - if (!isNode(props[propName])) return new PropTypeError("Invalid " + location + " `" + propFullName + "` supplied to " + ("`" + componentName + "`, expected a ReactNode.")); | |
| 616 | - return null; | |
| 617 | - } | |
| 618 | - return createChainableTypeChecker(validate); | |
| 619 | - } | |
| 620 | - function invalidValidatorError(componentName, location, propFullName, key, type) { | |
| 621 | - return new PropTypeError((componentName || "React class") + ": " + location + " type `" + propFullName + "." + key + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + type + "`."); | |
| 622 | - } | |
| 623 | - function createShapeTypeChecker(shapeTypes) { | |
| 624 | - function validate(props, propName, componentName, location, propFullName) { | |
| 625 | - var propValue = props[propName]; | |
| 626 | - var propType = getPropType(propValue); | |
| 627 | - if (propType !== "object") return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type `" + propType + "` " + ("supplied to `" + componentName + "`, expected `object`.")); | |
| 628 | - for (var key in shapeTypes) { | |
| 629 | - var checker = shapeTypes[key]; | |
| 630 | - if (typeof checker !== "function") return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker)); | |
| 631 | - var error = checker(propValue, key, componentName, location, propFullName + "." + key, ReactPropTypesSecret); | |
| 632 | - if (error) return error; | |
| 633 | - } | |
| 634 | - return null; | |
| 635 | - } | |
| 636 | - return createChainableTypeChecker(validate); | |
| 637 | - } | |
| 638 | - function createStrictShapeTypeChecker(shapeTypes) { | |
| 639 | - function validate(props, propName, componentName, location, propFullName) { | |
| 640 | - var propValue = props[propName]; | |
| 641 | - var propType = getPropType(propValue); | |
| 642 | - if (propType !== "object") return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type `" + propType + "` " + ("supplied to `" + componentName + "`, expected `object`.")); | |
| 643 | - for (var key in assign({}, props[propName], shapeTypes)) { | |
| 644 | - var checker = shapeTypes[key]; | |
| 645 | - if (has(shapeTypes, key) && typeof checker !== "function") return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker)); | |
| 646 | - if (!checker) return new PropTypeError("Invalid " + location + " `" + propFullName + "` key `" + key + "` supplied to `" + componentName + "`.\nBad object: " + JSON.stringify(props[propName], null, " ") + "\nValid keys: " + JSON.stringify(Object.keys(shapeTypes), null, " ")); | |
| 647 | - var error = checker(propValue, key, componentName, location, propFullName + "." + key, ReactPropTypesSecret); | |
| 648 | - if (error) return error; | |
| 649 | - } | |
| 650 | - return null; | |
| 651 | - } | |
| 652 | - return createChainableTypeChecker(validate); | |
| 653 | - } | |
| 654 | - function isNode(propValue) { | |
| 655 | - switch (typeof propValue) { | |
| 656 | - case "number": | |
| 657 | - case "string": | |
| 658 | - case "undefined": return true; | |
| 659 | - case "boolean": return !propValue; | |
| 660 | - case "object": | |
| 661 | - if (Array.isArray(propValue)) return propValue.every(isNode); | |
| 662 | - if (propValue === null || isValidElement(propValue)) return true; | |
| 663 | - var iteratorFn = getIteratorFn(propValue); | |
| 664 | - if (iteratorFn) { | |
| 665 | - var iterator = iteratorFn.call(propValue); | |
| 666 | - var step; | |
| 667 | - if (iteratorFn !== propValue.entries) { | |
| 668 | - while (!(step = iterator.next()).done) if (!isNode(step.value)) return false; | |
| 669 | - } else while (!(step = iterator.next()).done) { | |
| 670 | - var entry = step.value; | |
| 671 | - if (entry) { | |
| 672 | - if (!isNode(entry[1])) return false; | |
| 673 | - } | |
| 674 | - } | |
| 675 | - } else return false; | |
| 676 | - return true; | |
| 677 | - default: return false; | |
| 678 | - } | |
| 679 | - } | |
| 680 | - function isSymbol(propType, propValue) { | |
| 681 | - if (propType === "symbol") return true; | |
| 682 | - if (!propValue) return false; | |
| 683 | - if (propValue["@@toStringTag"] === "Symbol") return true; | |
| 684 | - if (typeof Symbol === "function" && propValue instanceof Symbol) return true; | |
| 685 | - return false; | |
| 686 | - } | |
| 687 | - function getPropType(propValue) { | |
| 688 | - var propType = typeof propValue; | |
| 689 | - if (Array.isArray(propValue)) return "array"; | |
| 690 | - if (propValue instanceof RegExp) return "object"; | |
| 691 | - if (isSymbol(propType, propValue)) return "symbol"; | |
| 692 | - return propType; | |
| 693 | - } | |
| 694 | - function getPreciseType(propValue) { | |
| 695 | - if (typeof propValue === "undefined" || propValue === null) return "" + propValue; | |
| 696 | - var propType = getPropType(propValue); | |
| 697 | - if (propType === "object") { | |
| 698 | - if (propValue instanceof Date) return "date"; | |
| 699 | - else if (propValue instanceof RegExp) return "regexp"; | |
| 700 | - } | |
| 701 | - return propType; | |
| 702 | - } | |
| 703 | - function getPostfixForTypeWarning(value) { | |
| 704 | - var type = getPreciseType(value); | |
| 705 | - switch (type) { | |
| 706 | - case "array": | |
| 707 | - case "object": return "an " + type; | |
| 708 | - case "boolean": | |
| 709 | - case "date": | |
| 710 | - case "regexp": return "a " + type; | |
| 711 | - default: return type; | |
| 712 | - } | |
| 713 | - } | |
| 714 | - function getClassName(propValue) { | |
| 715 | - if (!propValue.constructor || !propValue.constructor.name) return ANONYMOUS; | |
| 716 | - return propValue.constructor.name; | |
| 717 | - } | |
| 718 | - ReactPropTypes.checkPropTypes = checkPropTypes; | |
| 719 | - ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache; | |
| 720 | - ReactPropTypes.PropTypes = ReactPropTypes; | |
| 721 | - return ReactPropTypes; | |
| 722 | - }; | |
| 723 | - })); | |
| 968 | + * Resets warning cache when testing. | |
| 969 | + * | |
| 970 | + * @private | |
| 971 | + */ | |
| 972 | +checkPropTypes.resetWarningCache = function() { | |
| 973 | + if (true) { | |
| 974 | + loggedTypeFailures = {}; | |
| 975 | + } | |
| 976 | +} | |
| 724 | 977 | |
| 725 | -//#endregion | |
| 726 | -//#region node_modules/prop-types/index.js | |
| 727 | - var require_prop_types = /* @__PURE__ */ __commonJSMin(((exports, module) => { | |
| 728 | - var ReactIs = require_react_is(); | |
| 729 | - var throwOnDirectAccess = true; | |
| 730 | - module.exports = require_factoryWithTypeCheckers()(ReactIs.isElement, throwOnDirectAccess); | |
| 731 | - })); | |
| 978 | +module.exports = checkPropTypes; | |
| 732 | 979 | |
| 733 | -//#endregion | |
| 734 | -//#region node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js | |
| 735 | -var import_prop_types = /* @__PURE__ */ __toESM(require_prop_types()); | |
| 736 | - function _arrayWithHoles(r) { | |
| 737 | - if (Array.isArray(r)) return r; | |
| 738 | - } | |
| 739 | 980 | |
| 740 | -//#endregion | |
| 741 | -//#region node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js | |
| 742 | - function _iterableToArrayLimit(r, l) { | |
| 743 | - var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; | |
| 744 | - if (null != t) { | |
| 745 | - var e; | |
| 746 | - var n; | |
| 747 | - var i; | |
| 748 | - var u; | |
| 749 | - var a = []; | |
| 750 | - var f = !0; | |
| 751 | - var o = !1; | |
| 752 | - try { | |
| 753 | - if (i = (t = t.call(r)).next, 0 === l) { | |
| 754 | - if (Object(t) !== t) return; | |
| 755 | - f = !1; | |
| 756 | - } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); | |
| 757 | - } catch (r) { | |
| 758 | - o = !0, n = r; | |
| 759 | - } finally { | |
| 760 | - try { | |
| 761 | - if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; | |
| 762 | - } finally { | |
| 763 | - if (o) throw n; | |
| 764 | - } | |
| 765 | - } | |
| 766 | - return a; | |
| 767 | - } | |
| 768 | - } | |
| 981 | +/***/ }), | |
| 769 | 982 | |
| 770 | -//#endregion | |
| 771 | -//#region node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js | |
| 772 | - function _arrayLikeToArray(r, a) { | |
| 773 | - (null == a || a > r.length) && (a = r.length); | |
| 774 | - for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; | |
| 775 | - return n; | |
| 776 | - } | |
| 983 | +/***/ "../node_modules/prop-types/factoryWithTypeCheckers.js": | |
| 984 | +/*!*************************************************************!*\ | |
| 985 | + !*** ../node_modules/prop-types/factoryWithTypeCheckers.js ***! | |
| 986 | + \*************************************************************/ | |
| 987 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 777 | 988 | |
| 778 | -//#endregion | |
| 779 | -//#region node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js | |
| 780 | - function _unsupportedIterableToArray(r, a) { | |
| 781 | - if (r) { | |
| 782 | - if ("string" == typeof r) return _arrayLikeToArray(r, a); | |
| 783 | - var t = {}.toString.call(r).slice(8, -1); | |
| 784 | - 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; | |
| 785 | - } | |
| 786 | - } | |
| 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 | + */ | |
| 787 | 996 | |
| 788 | -//#endregion | |
| 789 | -//#region node_modules/@babel/runtime/helpers/esm/nonIterableRest.js | |
| 790 | - function _nonIterableRest() { | |
| 791 | - throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); | |
| 792 | - } | |
| 793 | 997 | |
| 794 | -//#endregion | |
| 795 | -//#region node_modules/@babel/runtime/helpers/esm/slicedToArray.js | |
| 796 | - function _slicedToArray(r, e) { | |
| 797 | - return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); | |
| 798 | - } | |
| 799 | 998 | |
| 800 | -//#endregion | |
| 801 | -//#region node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js | |
| 802 | - function _arrayWithoutHoles(r) { | |
| 803 | - if (Array.isArray(r)) return _arrayLikeToArray(r); | |
| 804 | - } | |
| 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"); | |
| 805 | 1001 | |
| 806 | -//#endregion | |
| 807 | -//#region node_modules/@babel/runtime/helpers/esm/iterableToArray.js | |
| 808 | - function _iterableToArray(r) { | |
| 809 | - if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); | |
| 810 | - } | |
| 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"); | |
| 811 | 1005 | |
| 812 | -//#endregion | |
| 813 | -//#region node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js | |
| 814 | - function _nonIterableSpread() { | |
| 815 | - throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); | |
| 816 | - } | |
| 1006 | +var printWarning = function() {}; | |
| 817 | 1007 | |
| 818 | -//#endregion | |
| 819 | -//#region node_modules/@babel/runtime/helpers/esm/toConsumableArray.js | |
| 820 | - function _toConsumableArray(r) { | |
| 821 | - return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); | |
| 822 | - } | |
| 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 | +} | |
| 823 | 1022 | |
| 824 | -//#endregion | |
| 825 | -//#region node_modules/@babel/runtime/helpers/esm/extends.js | |
| 826 | - function _extends() { | |
| 827 | - return _extends = Object.assign ? Object.assign.bind() : function(n) { | |
| 828 | - for (var e = 1; e < arguments.length; e++) { | |
| 829 | - var t = arguments[e]; | |
| 830 | - for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); | |
| 831 | - } | |
| 832 | - return n; | |
| 833 | - }, _extends.apply(null, arguments); | |
| 834 | - } | |
| 1023 | +function emptyFunctionThatReturnsNull() { | |
| 1024 | + return null; | |
| 1025 | +} | |
| 835 | 1026 | |
| 836 | -//#endregion | |
| 837 | -//#region modules/notifications/assets/js/icons/x-icon.js | |
| 838 | - var XIcon = (0, react.forwardRef)(function(props, ref) { | |
| 839 | - return /*#__PURE__*/ react.default.createElement(_elementor_ui.SvgIcon, _extends({ viewBox: "0 0 24 24" }, props, { ref }), /*#__PURE__*/ react.default.createElement("path", { | |
| 840 | - fillRule: "evenodd", | |
| 841 | - clipRule: "evenodd", | |
| 842 | - 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" | |
| 843 | - }), /*#__PURE__*/ react.default.createElement("path", { | |
| 844 | - fillRule: "evenodd", | |
| 845 | - clipRule: "evenodd", | |
| 846 | - 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" | |
| 847 | - })); | |
| 848 | - }); | |
| 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. | |
| 849 | 1031 | |
| 850 | -//#endregion | |
| 851 | -//#region modules/notifications/assets/js/components/whats-new-top-bar.js | |
| 852 | - var WhatsNewTopBar = function WhatsNewTopBar(props) { | |
| 853 | - var setIsOpen = props.setIsOpen; | |
| 854 | - return /*#__PURE__*/ react.default.createElement(react.default.Fragment, null, /*#__PURE__*/ react.default.createElement(_elementor_ui.AppBar, { | |
| 855 | - elevation: 0, | |
| 856 | - position: "sticky", | |
| 857 | - sx: { backgroundColor: "background.default" } | |
| 858 | - }, /*#__PURE__*/ react.default.createElement(_elementor_ui.Toolbar, { variant: "dense" }, /*#__PURE__*/ react.default.createElement(_elementor_ui.Typography, { | |
| 859 | - variant: "overline", | |
| 860 | - sx: { flexGrow: 1 } | |
| 861 | - }, (0, _wordpress_i18n.__)("What's New", "elementor")), /*#__PURE__*/ react.default.createElement(_elementor_ui.IconButton, { | |
| 862 | - "aria-label": "close", | |
| 863 | - size: "small", | |
| 864 | - onClick: function onClick() { | |
| 865 | - return setIsOpen(false); | |
| 866 | - } | |
| 867 | - }, /*#__PURE__*/ react.default.createElement(XIcon, null)))), /*#__PURE__*/ react.default.createElement(_elementor_ui.Divider, null)); | |
| 868 | - }; | |
| 869 | - WhatsNewTopBar.propTypes = { setIsOpen: import_prop_types.default.func.isRequired }; | |
| 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 | + } | |
| 870 | 1052 | |
| 871 | -//#endregion | |
| 872 | -//#region modules/notifications/assets/js/api/index.js | |
| 873 | - var request = function request(endpoint) { | |
| 874 | - var data = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; | |
| 875 | - return new Promise(function(resolve, reject) { | |
| 876 | - elementorCommon.ajax.addRequest(endpoint, { | |
| 877 | - success: resolve, | |
| 878 | - error: reject, | |
| 879 | - data | |
| 880 | - }); | |
| 881 | - }); | |
| 882 | - }; | |
| 883 | - var getNotifications = function getNotifications() { | |
| 884 | - return request("notifications_get"); | |
| 885 | - }; | |
| 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 | + */ | |
| 886 | 1099 | |
| 887 | -//#endregion | |
| 888 | -//#region node_modules/@babel/runtime/helpers/esm/typeof.js | |
| 889 | - function _typeof(o) { | |
| 890 | - "@babel/helpers - typeof"; | |
| 891 | - return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) { | |
| 892 | - return typeof o; | |
| 893 | - } : function(o) { | |
| 894 | - return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; | |
| 895 | - }, _typeof(o); | |
| 896 | - } | |
| 1100 | + var ANONYMOUS = '<<anonymous>>'; | |
| 897 | 1101 | |
| 898 | -//#endregion | |
| 899 | -//#region node_modules/@babel/runtime/helpers/esm/toPrimitive.js | |
| 900 | - function toPrimitive(t, r) { | |
| 901 | - if ("object" != _typeof(t) || !t) return t; | |
| 902 | - var e = t[Symbol.toPrimitive]; | |
| 903 | - if (void 0 !== e) { | |
| 904 | - var i = e.call(t, r || "default"); | |
| 905 | - if ("object" != _typeof(i)) return i; | |
| 906 | - throw new TypeError("@@toPrimitive must return a primitive value."); | |
| 907 | - } | |
| 908 | - return ("string" === r ? String : Number)(t); | |
| 909 | - } | |
| 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'), | |
| 910 | 1113 | |
| 911 | -//#endregion | |
| 912 | -//#region node_modules/@babel/runtime/helpers/esm/toPropertyKey.js | |
| 913 | - function toPropertyKey(t) { | |
| 914 | - var i = toPrimitive(t, "string"); | |
| 915 | - return "symbol" == _typeof(i) ? i : i + ""; | |
| 916 | - } | |
| 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 | + }; | |
| 917 | 1126 | |
| 918 | -//#endregion | |
| 919 | -//#region node_modules/@babel/runtime/helpers/esm/defineProperty.js | |
| 920 | - function _defineProperty(e, r, t) { | |
| 921 | - return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, { | |
| 922 | - value: t, | |
| 923 | - enumerable: !0, | |
| 924 | - configurable: !0, | |
| 925 | - writable: !0 | |
| 926 | - }) : e[r] = t, e; | |
| 927 | - } | |
| 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*/ | |
| 928 | 1144 | |
| 929 | -//#endregion | |
| 930 | -//#region modules/notifications/assets/js/components/whats-new-item-topic-line.js | |
| 931 | - var WhatsNewItemTopicLine = function WhatsNewItemTopicLine(_ref) { | |
| 932 | - var topic = _ref.topic; | |
| 933 | - var date = _ref.date; | |
| 934 | - return /*#__PURE__*/ react.default.createElement(_elementor_ui.Stack, { | |
| 935 | - direction: "row", | |
| 936 | - divider: /*#__PURE__*/ react.default.createElement(_elementor_ui.Divider, { | |
| 937 | - orientation: "vertical", | |
| 938 | - flexItem: true | |
| 939 | - }), | |
| 940 | - spacing: 1, | |
| 941 | - color: "text.tertiary", | |
| 942 | - sx: { pb: 1 } | |
| 943 | - }, topic && /*#__PURE__*/ react.default.createElement(_elementor_ui.Box, null, topic), date && /*#__PURE__*/ react.default.createElement(_elementor_ui.Box, null, date)); | |
| 944 | - }; | |
| 945 | - WhatsNewItemTopicLine.propTypes = { | |
| 946 | - topic: import_prop_types.default.string, | |
| 947 | - date: import_prop_types.default.string | |
| 948 | - }; | |
| 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; | |
| 949 | 1159 | |
| 950 | -//#endregion | |
| 951 | -//#region modules/notifications/assets/js/components/wrapper-with-link.js | |
| 952 | - var WrapperWithLink = function WrapperWithLink(props) { | |
| 953 | - var link = props.link; | |
| 954 | - var children = props.children; | |
| 955 | - if (!link) return children; | |
| 956 | - return /*#__PURE__*/ react.default.createElement(_elementor_ui.Link, { | |
| 957 | - href: link, | |
| 958 | - target: "_blank", | |
| 959 | - underline: "none", | |
| 960 | - color: "inherit", | |
| 961 | - sx: { "&:hover": { color: "inherit" } } | |
| 962 | - }, children); | |
| 963 | - }; | |
| 964 | - WrapperWithLink.propTypes = { | |
| 965 | - link: import_prop_types.default.string, | |
| 966 | - children: import_prop_types.default.any.isRequired | |
| 967 | - }; | |
| 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; | |
| 968 | 1168 | |
| 969 | -//#endregion | |
| 970 | -//#region modules/notifications/assets/js/components/whats-new-item-thumbnail.js | |
| 971 | - var WhatsNewItemThumbnail = function WhatsNewItemThumbnail(_ref) { | |
| 972 | - var imageSrc = _ref.imageSrc; | |
| 973 | - var title = _ref.title; | |
| 974 | - var link = _ref.link; | |
| 975 | - return /*#__PURE__*/ react.default.createElement(_elementor_ui.Box, { sx: { pb: 2 } }, /*#__PURE__*/ react.default.createElement(WrapperWithLink, { link }, /*#__PURE__*/ react.default.createElement("img", { | |
| 976 | - src: imageSrc, | |
| 977 | - alt: title || "", | |
| 978 | - style: { maxWidth: "100%" } | |
| 979 | - }))); | |
| 980 | - }; | |
| 981 | - WhatsNewItemThumbnail.propTypes = { | |
| 982 | - imageSrc: import_prop_types.default.string.isRequired, | |
| 983 | - title: import_prop_types.default.string, | |
| 984 | - link: import_prop_types.default.string | |
| 985 | - }; | |
| 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 | + } | |
| 986 | 1211 | |
| 987 | -//#endregion | |
| 988 | -//#region modules/notifications/assets/js/components/whats-new-item-media.js | |
| 989 | - var WhatsNewItemMedia = function WhatsNewItemMedia(_ref) { | |
| 990 | - var item = _ref.item; | |
| 991 | - if (item.youtubeEmbedId) { | |
| 992 | - var videoId = item.youtubeEmbedId.split("?")[0]; | |
| 993 | - var src = "https://www.youtube.com/embed/".concat(videoId).concat(item.youtubeAutoplay ? "?autoplay=1&mute=1" : ""); | |
| 994 | - var allow = "encrypted-media; picture-in-picture".concat(item.youtubeAutoplay ? "; autoplay" : ""); | |
| 995 | - return /*#__PURE__*/ react.default.createElement(_elementor_ui.Box, { sx: { pb: 2 } }, /*#__PURE__*/ react.default.createElement(_elementor_ui.Box, { | |
| 996 | - component: "iframe", | |
| 997 | - src, | |
| 998 | - title: item.title || "Video", | |
| 999 | - allow, | |
| 1000 | - allowFullScreen: true, | |
| 1001 | - sx: { | |
| 1002 | - aspectRatio: "16/9", | |
| 1003 | - width: "100%", | |
| 1004 | - display: "block", | |
| 1005 | - border: "none" | |
| 1006 | - } | |
| 1007 | - })); | |
| 1008 | - } | |
| 1009 | - var mediaSrc = item.gifSrc || item.imageSrc; | |
| 1010 | - if (!mediaSrc) return null; | |
| 1011 | - return /*#__PURE__*/ react.default.createElement(WhatsNewItemThumbnail, { | |
| 1012 | - imageSrc: mediaSrc, | |
| 1013 | - link: item.link, | |
| 1014 | - title: item.title | |
| 1015 | - }); | |
| 1016 | - }; | |
| 1212 | + var chainedCheckType = checkType.bind(null, false); | |
| 1213 | + chainedCheckType.isRequired = checkType.bind(null, true); | |
| 1017 | 1214 | |
| 1018 | -//#endregion | |
| 1019 | -//#region modules/notifications/assets/js/components/whats-new-item-chips.js | |
| 1020 | - var WhatsNewItemChips = function WhatsNewItemChips(_ref) { | |
| 1021 | - var chipPlan = _ref.chipPlan; | |
| 1022 | - var chipTags = _ref.chipTags; | |
| 1023 | - var itemIndex = _ref.itemIndex; | |
| 1024 | - var chips = []; | |
| 1025 | - if (chipPlan) chips.push({ | |
| 1026 | - color: "promotion", | |
| 1027 | - size: "small", | |
| 1028 | - label: chipPlan | |
| 1029 | - }); | |
| 1030 | - if (chipTags) chipTags.forEach(function(chipTag) { | |
| 1031 | - chips.push({ | |
| 1032 | - variant: "outlined", | |
| 1033 | - size: "small", | |
| 1034 | - label: chipTag | |
| 1035 | - }); | |
| 1036 | - }); | |
| 1037 | - if (!chips.length) return null; | |
| 1038 | - return /*#__PURE__*/ react.default.createElement(_elementor_ui.Stack, { | |
| 1039 | - direction: "row", | |
| 1040 | - flexWrap: "wrap", | |
| 1041 | - gap: 1, | |
| 1042 | - sx: { pb: 1 } | |
| 1043 | - }, chips.map(function(chip, chipIndex) { | |
| 1044 | - return /*#__PURE__*/ react.default.createElement(_elementor_ui.Chip, _extends({ key: "chip-".concat(itemIndex).concat(chipIndex) }, chip)); | |
| 1045 | - })); | |
| 1046 | - }; | |
| 1047 | - WhatsNewItemChips.propTypes = { | |
| 1048 | - chipPlan: import_prop_types.default.string, | |
| 1049 | - chipTags: import_prop_types.default.array, | |
| 1050 | - itemIndex: import_prop_types.default.number.isRequired | |
| 1051 | - }; | |
| 1215 | + return chainedCheckType; | |
| 1216 | + } | |
| 1052 | 1217 | |
| 1053 | -//#endregion | |
| 1054 | -//#region modules/notifications/assets/js/components/is-image-only.js | |
| 1055 | - var isImageOnly = function isImageOnly(item) { | |
| 1056 | - return !item.title && !item.description && (item.imageSrc || item.gifSrc || item.youtubeEmbedId); | |
| 1057 | - }; | |
| 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); | |
| 1058 | 1227 | |
| 1059 | -//#endregion | |
| 1060 | -//#region modules/notifications/assets/js/components/whats-new-item.js | |
| 1061 | - function ownKeys(e, r) { | |
| 1062 | - var t = Object.keys(e); | |
| 1063 | - if (Object.getOwnPropertySymbols) { | |
| 1064 | - var o = Object.getOwnPropertySymbols(e); | |
| 1065 | - r && (o = o.filter(function(r) { | |
| 1066 | - return Object.getOwnPropertyDescriptor(e, r).enumerable; | |
| 1067 | - })), t.push.apply(t, o); | |
| 1068 | - } | |
| 1069 | - return t; | |
| 1070 | - } | |
| 1071 | - function _objectSpread(e) { | |
| 1072 | - for (var r = 1; r < arguments.length; r++) { | |
| 1073 | - var t = null != arguments[r] ? arguments[r] : {}; | |
| 1074 | - r % 2 ? ownKeys(Object(t), !0).forEach(function(r) { | |
| 1075 | - _defineProperty(e, r, t[r]); | |
| 1076 | - }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function(r) { | |
| 1077 | - Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); | |
| 1078 | - }); | |
| 1079 | - } | |
| 1080 | - return e; | |
| 1081 | - } | |
| 1082 | - var WhatsNewItem = function WhatsNewItem(_ref) { | |
| 1083 | - var item = _ref.item; | |
| 1084 | - var itemIndex = _ref.itemIndex; | |
| 1085 | - var itemsLength = _ref.itemsLength; | |
| 1086 | - var setIsOpen = _ref.setIsOpen; | |
| 1087 | - var _ref$featured = _ref.featured; | |
| 1088 | - var featured = _ref$featured === void 0 ? false : _ref$featured; | |
| 1089 | - var hasMedia = item.imageSrc || item.gifSrc || item.youtubeEmbedId; | |
| 1090 | - if (isImageOnly(item)) return /*#__PURE__*/ react.default.createElement(_elementor_ui.Box, { | |
| 1091 | - key: itemIndex, | |
| 1092 | - display: "flex", | |
| 1093 | - flexDirection: "column", | |
| 1094 | - sx: _objectSpread({ pt: 2 }, featured && { px: 1 }) | |
| 1095 | - }, /*#__PURE__*/ react.default.createElement(WhatsNewItemMedia, { item }), itemIndex !== itemsLength - 1 && /*#__PURE__*/ react.default.createElement(_elementor_ui.Divider, { sx: { my: 1 } })); | |
| 1096 | - return /*#__PURE__*/ react.default.createElement(_elementor_ui.Box, { | |
| 1097 | - key: itemIndex, | |
| 1098 | - display: "flex", | |
| 1099 | - flexDirection: "column", | |
| 1100 | - sx: _objectSpread({ pt: 2 }, featured && { px: 1 }) | |
| 1101 | - }, (item.topic || item.date) && /*#__PURE__*/ react.default.createElement(WhatsNewItemTopicLine, { | |
| 1102 | - topic: item.topic, | |
| 1103 | - date: item.date | |
| 1104 | - }), /*#__PURE__*/ react.default.createElement(WrapperWithLink, { link: item.link }, /*#__PURE__*/ react.default.createElement(_elementor_ui.Typography, { | |
| 1105 | - variant: featured ? "h6" : "subtitle1", | |
| 1106 | - sx: { pb: 2 } | |
| 1107 | - }, item.title)), /*#__PURE__*/ react.default.createElement(_elementor_ui.Box, { sx: { position: "relative" } }, /*#__PURE__*/ react.default.createElement(WhatsNewItemMedia, { item }), featured && item.chipPlan && hasMedia && /*#__PURE__*/ react.default.createElement(_elementor_ui.Chip, { | |
| 1108 | - label: item.chipPlan, | |
| 1109 | - color: "promotion", | |
| 1110 | - size: "small", | |
| 1111 | - sx: { | |
| 1112 | - position: "absolute", | |
| 1113 | - top: 8, | |
| 1114 | - insetInlineStart: 8 | |
| 1115 | - } | |
| 1116 | - })), /*#__PURE__*/ react.default.createElement(WhatsNewItemChips, { | |
| 1117 | - chipPlan: featured && hasMedia ? null : item.chipPlan, | |
| 1118 | - chipTags: item.chipTags, | |
| 1119 | - itemIndex | |
| 1120 | - }), item.description && /*#__PURE__*/ react.default.createElement(_elementor_ui.Typography, { | |
| 1121 | - variant: "body2", | |
| 1122 | - color: "text.secondary", | |
| 1123 | - sx: { pb: 2 } | |
| 1124 | - }, item.description, item.readMoreText && /*#__PURE__*/ react.default.createElement(react.default.Fragment, null, " ", /*#__PURE__*/ react.default.createElement(_elementor_ui.Link, { | |
| 1125 | - href: item.link, | |
| 1126 | - color: "info.main", | |
| 1127 | - target: "_blank" | |
| 1128 | - }, item.readMoreText))), item.cta && item.ctaLink && /*#__PURE__*/ react.default.createElement(_elementor_ui.Box, { sx: { pb: 2 } }, /*#__PURE__*/ react.default.createElement(_elementor_ui.Button, { | |
| 1129 | - href: item.ctaLink, | |
| 1130 | - target: item.ctaLink.startsWith("#") ? "_self" : "_blank", | |
| 1131 | - variant: "contained", | |
| 1132 | - size: "small", | |
| 1133 | - color: "promotion", | |
| 1134 | - onClick: item.ctaLink.startsWith("#") ? function() { | |
| 1135 | - return setIsOpen(false); | |
| 1136 | - } : void 0 | |
| 1137 | - }, item.cta)), itemIndex !== itemsLength - 1 && /*#__PURE__*/ react.default.createElement(_elementor_ui.Divider, { sx: { my: 1 } })); | |
| 1138 | - }; | |
| 1139 | - WhatsNewItem.propTypes = { | |
| 1140 | - item: import_prop_types.default.object.isRequired, | |
| 1141 | - itemIndex: import_prop_types.default.number.isRequired, | |
| 1142 | - itemsLength: import_prop_types.default.number.isRequired, | |
| 1143 | - setIsOpen: import_prop_types.default.func.isRequired, | |
| 1144 | - featured: import_prop_types.default.bool | |
| 1145 | - }; | |
| 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 | + } | |
| 1146 | 1237 | |
| 1147 | -//#endregion | |
| 1148 | -//#region modules/notifications/assets/js/components/whats-new-item-collapsed.js | |
| 1149 | - var WhatsNewItemCollapsed = function WhatsNewItemCollapsed(_ref) { | |
| 1150 | - var item = _ref.item; | |
| 1151 | - var itemIndex = _ref.itemIndex; | |
| 1152 | - var isNew = _ref.isNew; | |
| 1153 | - var onSeen = _ref.onSeen; | |
| 1154 | - var setIsOpen = _ref.setIsOpen; | |
| 1155 | - var _useState2 = _slicedToArray((0, react.useState)(false), 2); | |
| 1156 | - var expanded = _useState2[0]; | |
| 1157 | - var setExpanded = _useState2[1]; | |
| 1158 | - var handleToggle = function handleToggle() { | |
| 1159 | - if (!expanded && isNew && onSeen) onSeen(item.id); | |
| 1160 | - setExpanded(!expanded); | |
| 1161 | - }; | |
| 1162 | - return /*#__PURE__*/ react.default.createElement(_elementor_ui.Box, null, /*#__PURE__*/ react.default.createElement(_elementor_ui.Box, { | |
| 1163 | - role: "button", | |
| 1164 | - tabIndex: 0, | |
| 1165 | - "aria-expanded": expanded, | |
| 1166 | - onClick: handleToggle, | |
| 1167 | - onKeyDown: function handleKeyDown(event) { | |
| 1168 | - if ("Enter" === event.key || " " === event.key) { | |
| 1169 | - event.preventDefault(); | |
| 1170 | - handleToggle(); | |
| 1171 | - } | |
| 1172 | - }, | |
| 1173 | - sx: { | |
| 1174 | - position: "relative", | |
| 1175 | - display: "flex", | |
| 1176 | - alignItems: "flex-start", | |
| 1177 | - gap: 1, | |
| 1178 | - cursor: "pointer", | |
| 1179 | - py: 2, | |
| 1180 | - paddingInlineStart: 1 | |
| 1181 | - } | |
| 1182 | - }, /*#__PURE__*/ react.default.createElement(_elementor_ui.Box, { | |
| 1183 | - component: "span", | |
| 1184 | - sx: { | |
| 1185 | - position: "absolute", | |
| 1186 | - insetInlineStart: "-6px", | |
| 1187 | - top: "23px", | |
| 1188 | - width: 6, | |
| 1189 | - height: 6, | |
| 1190 | - borderRadius: "50%", | |
| 1191 | - backgroundColor: "primary.main", | |
| 1192 | - opacity: isNew ? 1 : 0, | |
| 1193 | - transition: "opacity 0.2s ease", | |
| 1194 | - pointerEvents: "none" | |
| 1195 | - } | |
| 1196 | - }), /*#__PURE__*/ react.default.createElement(_elementor_ui.Box, { sx: { | |
| 1197 | - flex: 1, | |
| 1198 | - minWidth: 0 | |
| 1199 | - } }, item.topic && /*#__PURE__*/ react.default.createElement(_elementor_ui.Typography, { | |
| 1200 | - variant: "caption", | |
| 1201 | - color: "text.tertiary", | |
| 1202 | - display: "block" | |
| 1203 | - }, item.topic), /*#__PURE__*/ react.default.createElement(_elementor_ui.Typography, { | |
| 1204 | - variant: "subtitle2", | |
| 1205 | - noWrap: true | |
| 1206 | - }, item.title), item.description && /*#__PURE__*/ react.default.createElement(_elementor_ui.Box, { sx: { | |
| 1207 | - maxHeight: expanded ? 0 : "3em", | |
| 1208 | - opacity: expanded ? 0 : 1, | |
| 1209 | - overflow: "hidden", | |
| 1210 | - transition: "max-height 0.2s ease, opacity 0.15s ease" | |
| 1211 | - } }, /*#__PURE__*/ react.default.createElement(_elementor_ui.Typography, { | |
| 1212 | - variant: "caption", | |
| 1213 | - color: "text.secondary", | |
| 1214 | - sx: { | |
| 1215 | - display: "-webkit-box", | |
| 1216 | - WebkitLineClamp: 2, | |
| 1217 | - WebkitBoxOrient: "vertical", | |
| 1218 | - overflow: "hidden" | |
| 1219 | - } | |
| 1220 | - }, item.description))), /*#__PURE__*/ react.default.createElement(_elementor_icons.ChevronDownIcon, { sx: { | |
| 1221 | - flexShrink: 0, | |
| 1222 | - color: "secondary.main", | |
| 1223 | - fontSize: "small", | |
| 1224 | - mt: .25, | |
| 1225 | - transform: expanded ? "rotate(180deg)" : "rotate(0deg)", | |
| 1226 | - transition: "transform 0.2s" | |
| 1227 | - } })), /*#__PURE__*/ react.default.createElement(_elementor_ui.Collapse, { in: expanded }, /*#__PURE__*/ react.default.createElement(_elementor_ui.Box, { sx: { | |
| 1228 | - pb: 2, | |
| 1229 | - paddingInlineStart: 1 | |
| 1230 | - } }, /*#__PURE__*/ react.default.createElement(WhatsNewItemMedia, { item }), /*#__PURE__*/ react.default.createElement(WhatsNewItemChips, { | |
| 1231 | - chipPlan: item.chipPlan, | |
| 1232 | - chipTags: item.chipTags, | |
| 1233 | - itemIndex | |
| 1234 | - }), item.description && /*#__PURE__*/ react.default.createElement(_elementor_ui.Typography, { | |
| 1235 | - variant: "body2", | |
| 1236 | - color: "text.secondary", | |
| 1237 | - sx: { pb: 2 } | |
| 1238 | - }, item.description, item.readMoreText && /*#__PURE__*/ react.default.createElement(react.default.Fragment, null, " ", /*#__PURE__*/ react.default.createElement(_elementor_ui.Link, { | |
| 1239 | - href: item.link, | |
| 1240 | - color: "info.main", | |
| 1241 | - target: "_blank" | |
| 1242 | - }, item.readMoreText))), item.cta && item.ctaLink && /*#__PURE__*/ react.default.createElement(_elementor_ui.Box, { sx: { pb: 2 } }, /*#__PURE__*/ react.default.createElement(_elementor_ui.Button, { | |
| 1243 | - href: item.ctaLink, | |
| 1244 | - target: item.ctaLink.startsWith("#") ? "_self" : "_blank", | |
| 1245 | - variant: "contained", | |
| 1246 | - size: "small", | |
| 1247 | - color: "promotion", | |
| 1248 | - onClick: item.ctaLink.startsWith("#") ? function() { | |
| 1249 | - return setIsOpen === null || setIsOpen === void 0 ? void 0 : setIsOpen(false); | |
| 1250 | - } : void 0 | |
| 1251 | - }, item.cta)))), /*#__PURE__*/ react.default.createElement(_elementor_ui.Divider, null)); | |
| 1252 | - }; | |
| 1253 | - WhatsNewItemCollapsed.propTypes = { | |
| 1254 | - item: import_prop_types.default.object.isRequired, | |
| 1255 | - itemIndex: import_prop_types.default.number.isRequired, | |
| 1256 | - isNew: import_prop_types.default.bool, | |
| 1257 | - onSeen: import_prop_types.default.func, | |
| 1258 | - setIsOpen: import_prop_types.default.func | |
| 1259 | - }; | |
| 1238 | + function createAnyTypeChecker() { | |
| 1239 | + return createChainableTypeChecker(emptyFunctionThatReturnsNull); | |
| 1240 | + } | |
| 1260 | 1241 | |
| 1261 | -//#endregion | |
| 1262 | -//#region modules/notifications/assets/js/components/whats-new-drawer-content.js | |
| 1263 | - var WhatsNewDrawerContent = function WhatsNewDrawerContent(_ref) { | |
| 1264 | - var _items$find$listLabel; | |
| 1265 | - var _items$find; | |
| 1266 | - var setIsOpen = _ref.setIsOpen; | |
| 1267 | - var seenItemIds = _ref.seenItemIds; | |
| 1268 | - var onSeen = _ref.onSeen; | |
| 1269 | - var initialHasUnread = _ref.initialHasUnread; | |
| 1270 | - var _useQuery = (0, _elementor_query.useQuery)({ | |
| 1271 | - queryKey: ["e-notifications"], | |
| 1272 | - queryFn: getNotifications | |
| 1273 | - }); | |
| 1274 | - var isPending = _useQuery.isPending; | |
| 1275 | - var error = _useQuery.error; | |
| 1276 | - var items = _useQuery.data; | |
| 1277 | - var seenItemIdsRef = (0, react.useRef)(seenItemIds); | |
| 1278 | - seenItemIdsRef.current = seenItemIds; | |
| 1279 | - (0, react.useEffect)(function() { | |
| 1280 | - if (!items) return; | |
| 1281 | - (items.some(function(item) { | |
| 1282 | - return item.featured; | |
| 1283 | - }) ? items.filter(function(item) { | |
| 1284 | - return item.featured; | |
| 1285 | - }) : items).filter(function(item) { | |
| 1286 | - return !seenItemIdsRef.current.has(item.id); | |
| 1287 | - }).forEach(function(item) { | |
| 1288 | - return onSeen(item.id); | |
| 1289 | - }); | |
| 1290 | - }, [items, onSeen]); | |
| 1291 | - if (isPending) return /*#__PURE__*/ react.default.createElement(_elementor_ui.Box, null, /*#__PURE__*/ react.default.createElement(_elementor_ui.LinearProgress, { color: "secondary" })); | |
| 1292 | - if (error) return /*#__PURE__*/ react.default.createElement(_elementor_ui.Box, null, "An error has occurred: ", error); | |
| 1293 | - var featuredItems = items.filter(function(item) { | |
| 1294 | - return item.featured; | |
| 1295 | - }); | |
| 1296 | - var nonFeaturedItems = items.filter(function(item) { | |
| 1297 | - return !item.featured && !isImageOnly(item); | |
| 1298 | - }); | |
| 1299 | - var listLabel = (_items$find$listLabel = (_items$find = items.find(function(item) { | |
| 1300 | - return item.listLabel; | |
| 1301 | - })) === null || _items$find === void 0 ? void 0 : _items$find.listLabel) !== null && _items$find$listLabel !== void 0 ? _items$find$listLabel : null; | |
| 1302 | - return /*#__PURE__*/ react.default.createElement(react.default.Fragment, null, featuredItems.map(function(item, index) { | |
| 1303 | - return /*#__PURE__*/ react.default.createElement(WhatsNewItem, { | |
| 1304 | - key: item.id, | |
| 1305 | - item, | |
| 1306 | - itemIndex: index, | |
| 1307 | - itemsLength: featuredItems.length, | |
| 1308 | - setIsOpen, | |
| 1309 | - featured: true | |
| 1310 | - }); | |
| 1311 | - }), featuredItems.length > 0 && nonFeaturedItems.length > 0 && /*#__PURE__*/ react.default.createElement(react.default.Fragment, null, listLabel ? /*#__PURE__*/ react.default.createElement(_elementor_ui.Divider, { sx: { my: 1.5 } }, /*#__PURE__*/ react.default.createElement(_elementor_ui.Typography, { | |
| 1312 | - variant: "caption", | |
| 1313 | - color: "text.secondary", | |
| 1314 | - sx: { | |
| 1315 | - px: 1, | |
| 1316 | - textTransform: "uppercase", | |
| 1317 | - letterSpacing: "0.08em" | |
| 1318 | - } | |
| 1319 | - }, listLabel)) : /*#__PURE__*/ react.default.createElement(_elementor_ui.Divider, { sx: { my: 1.5 } }), nonFeaturedItems.map(function(item, index) { | |
| 1320 | - return /*#__PURE__*/ react.default.createElement(WhatsNewItemCollapsed, { | |
| 1321 | - key: item.id, | |
| 1322 | - item, | |
| 1323 | - itemIndex: index, | |
| 1324 | - isNew: initialHasUnread && !seenItemIds.has(item.id), | |
| 1325 | - onSeen, | |
| 1326 | - setIsOpen | |
| 1327 | - }); | |
| 1328 | - })), 0 === featuredItems.length && nonFeaturedItems.map(function(item, itemIndex) { | |
| 1329 | - return /*#__PURE__*/ react.default.createElement(WhatsNewItem, { | |
| 1330 | - key: item.id, | |
| 1331 | - item, | |
| 1332 | - itemIndex, | |
| 1333 | - itemsLength: nonFeaturedItems.length, | |
| 1334 | - setIsOpen | |
| 1335 | - }); | |
| 1336 | - })); | |
| 1337 | - }; | |
| 1338 | - WhatsNewDrawerContent.propTypes = { | |
| 1339 | - setIsOpen: import_prop_types.default.func.isRequired, | |
| 1340 | - seenItemIds: import_prop_types.default.instanceOf(Set).isRequired, | |
| 1341 | - onSeen: import_prop_types.default.func.isRequired, | |
| 1342 | - initialHasUnread: import_prop_types.default.bool.isRequired | |
| 1343 | - }; | |
| 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 | + } | |
| 1344 | 1262 | |
| 1345 | -//#endregion | |
| 1346 | -//#region modules/notifications/assets/js/components/whats-new.js | |
| 1347 | - var _window$elementorNoti; | |
| 1348 | - var _window$elementorNoti2; | |
| 1349 | - var queryClient = new _elementor_query.QueryClient({ defaultOptions: { queries: { | |
| 1350 | - refetchOnWindowFocus: false, | |
| 1351 | - retry: false, | |
| 1352 | - staleTime: 1e3 * 60 * 30 | |
| 1353 | - } } }); | |
| 1354 | - var initialHasUnread = ((_window$elementorNoti = (_window$elementorNoti2 = window.elementorNotifications) === null || _window$elementorNoti2 === void 0 ? void 0 : _window$elementorNoti2.unread_count) !== null && _window$elementorNoti !== void 0 ? _window$elementorNoti : 0) > 0; | |
| 1355 | - var WhatsNew = function WhatsNew(props) { | |
| 1356 | - var _window$elementor; | |
| 1357 | - var _window$elementor$get; | |
| 1358 | - var isOpen = props.isOpen; | |
| 1359 | - var setIsOpen = props.setIsOpen; | |
| 1360 | - var _props$setIsRead = props.setIsRead; | |
| 1361 | - var setIsRead = _props$setIsRead === void 0 ? function() {} : _props$setIsRead; | |
| 1362 | - var _props$anchorPosition = props.anchorPosition; | |
| 1363 | - var anchorPosition = _props$anchorPosition === void 0 ? "right" : _props$anchorPosition; | |
| 1364 | - var _useState2 = _slicedToArray((0, react.useState)(function() { | |
| 1365 | - return /* @__PURE__ */ new Set(); | |
| 1366 | - }), 2); | |
| 1367 | - var seenItemIds = _useState2[0]; | |
| 1368 | - var setSeenItemIds = _useState2[1]; | |
| 1369 | - (0, react.useEffect)(function() { | |
| 1370 | - if (!isOpen) return; | |
| 1371 | - setIsRead(true); | |
| 1372 | - }, [isOpen, setIsRead]); | |
| 1373 | - var handleSeen = (0, react.useCallback)(function(itemId) { | |
| 1374 | - setSeenItemIds(function(prev) { | |
| 1375 | - if (prev.has(itemId)) return prev; | |
| 1376 | - window.dispatchEvent(new CustomEvent("e-notification-item-seen")); | |
| 1377 | - return new Set([].concat(_toConsumableArray(prev), [itemId])); | |
| 1378 | - }); | |
| 1379 | - }, []); | |
| 1380 | - return /*#__PURE__*/ react.default.createElement(react.default.Fragment, null, /*#__PURE__*/ react.default.createElement(_elementor_query.QueryClientProvider, { client: queryClient }, /*#__PURE__*/ react.default.createElement(_elementor_ui.DirectionProvider, { rtl: elementorCommon.config.isRTL }, /*#__PURE__*/ react.default.createElement(_elementor_ui.ThemeProvider, { 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" }, /*#__PURE__*/ react.default.createElement(_elementor_ui.Drawer, { | |
| 1381 | - anchor: anchorPosition, | |
| 1382 | - open: isOpen, | |
| 1383 | - onClose: function onClose() { | |
| 1384 | - return setIsOpen(false); | |
| 1385 | - }, | |
| 1386 | - BackdropProps: { invisible: true }, | |
| 1387 | - ModalProps: { style: { zIndex: 999999 } } | |
| 1388 | - }, /*#__PURE__*/ react.default.createElement(_elementor_ui.Box, { | |
| 1389 | - sx: { | |
| 1390 | - width: 360, | |
| 1391 | - backgroundColor: "background.default" | |
| 1392 | - }, | |
| 1393 | - role: "presentation" | |
| 1394 | - }, /*#__PURE__*/ react.default.createElement(WhatsNewTopBar, { setIsOpen }), /*#__PURE__*/ react.default.createElement(_elementor_ui.Box, { sx: { padding: "16px" } }, /*#__PURE__*/ react.default.createElement(WhatsNewDrawerContent, { | |
| 1395 | - setIsOpen, | |
| 1396 | - seenItemIds, | |
| 1397 | - onSeen: handleSeen, | |
| 1398 | - initialHasUnread | |
| 1399 | - })))))))); | |
| 1400 | - }; | |
| 1401 | - WhatsNew.propTypes = { | |
| 1402 | - isOpen: import_prop_types.default.bool.isRequired, | |
| 1403 | - setIsOpen: import_prop_types.default.func.isRequired, | |
| 1404 | - setIsRead: import_prop_types.default.func, | |
| 1405 | - anchorPosition: import_prop_types.default.oneOf([ | |
| 1406 | - "left", | |
| 1407 | - "top", | |
| 1408 | - "right", | |
| 1409 | - "bottom" | |
| 1410 | - ]) | |
| 1411 | - }; | |
| 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 | + } | |
| 1412 | 1274 | |
| 1413 | -//#endregion | |
| 1414 | -//#region modules/notifications/assets/js/components/bar-button-notification.js | |
| 1415 | - var BarButtonNotification = function BarButtonNotification(_ref) { | |
| 1416 | - var _window$elementorNoti; | |
| 1417 | - var children = _ref.children; | |
| 1418 | - var _useState2 = _slicedToArray((0, react.useState)(false), 2); | |
| 1419 | - var isOpen = _useState2[0]; | |
| 1420 | - var setIsOpen = _useState2[1]; | |
| 1421 | - var _useState4 = _slicedToArray((0, react.useState)(parseInt((_window$elementorNoti = window.elementorNotifications) === null || _window$elementorNoti === void 0 ? void 0 : _window$elementorNoti.unread_count, 10) || 0), 2); | |
| 1422 | - var unreadCount = _useState4[0]; | |
| 1423 | - var setUnreadCount = _useState4[1]; | |
| 1424 | - (0, react.useEffect)(function() { | |
| 1425 | - var handler = function handler() { | |
| 1426 | - return setUnreadCount(function(prev) { | |
| 1427 | - return Math.max(0, prev - 1); | |
| 1428 | - }); | |
| 1429 | - }; | |
| 1430 | - window.addEventListener("e-notification-item-seen", handler); | |
| 1431 | - return function() { | |
| 1432 | - return window.removeEventListener("e-notification-item-seen", handler); | |
| 1433 | - }; | |
| 1434 | - }, []); | |
| 1435 | - return /*#__PURE__*/ react.default.createElement(react.default.Fragment, null, /*#__PURE__*/ react.default.createElement("button", { | |
| 1436 | - className: "e-admin-top-bar__bar-button", | |
| 1437 | - style: { | |
| 1438 | - backgroundColor: "transparent", | |
| 1439 | - border: "none" | |
| 1440 | - }, | |
| 1441 | - onClick: function handleOpen(event) { | |
| 1442 | - event.preventDefault(); | |
| 1443 | - setIsOpen(true); | |
| 1444 | - } | |
| 1445 | - }, /*#__PURE__*/ react.default.createElement(_elementor_ui.Badge, { | |
| 1446 | - color: "primary", | |
| 1447 | - badgeContent: unreadCount, | |
| 1448 | - invisible: 0 === unreadCount, | |
| 1449 | - sx: { mx: .5 } | |
| 1450 | - }, /*#__PURE__*/ react.default.createElement("i", { className: "e-admin-top-bar__bar-button-icon eicon-speakerphone" })), /*#__PURE__*/ react.default.createElement("span", { className: "e-admin-top-bar__bar-button-title" }, children)), /*#__PURE__*/ react.default.createElement(WhatsNew, { | |
| 1451 | - isOpen, | |
| 1452 | - setIsOpen | |
| 1453 | - })); | |
| 1454 | - }; | |
| 1455 | - BarButtonNotification.propTypes = { children: import_prop_types.default.node.isRequired }; | |
| 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 | + } | |
| 1456 | 1286 | |
| 1457 | -//#endregion | |
| 1458 | -//#region modules/notifications/assets/js/admin.js | |
| 1459 | - window.elementorNotificationCenter = { BarButtonNotification }; | |
| 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 | + } | |
| 1460 | 1298 | |
| 1461 | -//#endregion | |
| 1462 | -})(React, elementorV2.ui, elementorV2.query, wp.i18n, elementorV2.icons); | |
| 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 | +; | |
| 1463 | 1961 | //# sourceMappingURL=admin-notifications.js.map |