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