| 1 |
/******/ (() => { // webpackBootstrap |
| 2 |
/******/ var __webpack_modules__ = ({ |
| 3 |
|
| 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; |
| 967 |
} |
| 968 |
|
| 969 |
// Detect buggy property enumeration order in older V8 versions. |
| 970 |
|
| 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 |
} |
| 977 |
|
| 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; |
| 982 |
} |
| 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; |
| 1004 |
} |
| 1005 |
} |
| 1006 |
|
| 1007 |
module.exports = shouldUseNative() ? Object.assign : function (target, source) { |
| 1008 |
var from; |
| 1009 |
var to = toObject(target); |
| 1010 |
var symbols; |
| 1011 |
|
| 1012 |
for (var s = 1; s < arguments.length; s++) { |
| 1013 |
from = Object(arguments[s]); |
| 1014 |
|
| 1015 |
for (var key in from) { |
| 1016 |
if (hasOwnProperty.call(from, key)) { |
| 1017 |
to[key] = from[key]; |
| 1018 |
} |
| 1019 |
} |
| 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]]; |
| 1026 |
} |
| 1027 |
} |
| 1028 |
} |
| 1029 |
} |
| 1030 |
|
| 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"; |
| 1044 |
/** |
| 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 |
*/ |
| 1050 |
|
| 1051 |
|
| 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 |
|
| 1074 |
/** |
| 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; |
| 1123 |
|
| 1124 |
var stack = getStack ? getStack() : ''; |
| 1125 |
|
| 1126 |
printWarning( |
| 1127 |
'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '') |
| 1128 |
); |
| 1129 |
} |
| 1130 |
} |
| 1131 |
} |
| 1132 |
} |
| 1133 |
} |
| 1134 |
|
| 1135 |
/** |
| 1136 |
* Resets warning cache when testing. |
| 1137 |
* |
| 1138 |
* @private |
| 1139 |
*/ |
| 1140 |
checkPropTypes.resetWarningCache = function() { |
| 1141 |
if (true) { |
| 1142 |
loggedTypeFailures = {}; |
| 1143 |
} |
| 1144 |
} |
| 1145 |
|
| 1146 |
module.exports = checkPropTypes; |
| 1147 |
|
| 1148 |
|
| 1149 |
/***/ }), |
| 1150 |
|
| 1151 |
/***/ "../node_modules/prop-types/factoryWithTypeCheckers.js": |
| 1152 |
/*!*************************************************************!*\ |
| 1153 |
!*** ../node_modules/prop-types/factoryWithTypeCheckers.js ***! |
| 1154 |
\*************************************************************/ |
| 1155 |
/***/ ((module, __unused_webpack_exports, __webpack_require__) => { |
| 1156 |
|
| 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 |
*/ |
| 1164 |
|
| 1165 |
|
| 1166 |
|
| 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"); |
| 1169 |
|
| 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"); |
| 1173 |
|
| 1174 |
var printWarning = function() {}; |
| 1175 |
|
| 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 |
} |
| 1190 |
|
| 1191 |
function emptyFunctionThatReturnsNull() { |
| 1192 |
return null; |
| 1193 |
} |
| 1194 |
|
| 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. |
| 1199 |
|
| 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 |
} |
| 1220 |
|
| 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 |
*/ |
| 1267 |
|
| 1268 |
var ANONYMOUS = '<<anonymous>>'; |
| 1269 |
|
| 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'), |
| 1281 |
|
| 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 |
}; |
| 1294 |
|
| 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*/ |
| 1312 |
|
| 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; |
| 1327 |
|
| 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; |
| 1336 |
|
| 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 |
} |
| 1379 |
|
| 1380 |
var chainedCheckType = checkType.bind(null, false); |
| 1381 |
chainedCheckType.isRequired = checkType.bind(null, true); |
| 1382 |
|
| 1383 |
return chainedCheckType; |
| 1384 |
} |
| 1385 |
|
| 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); |
| 1395 |
|
| 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 |
} |
| 1405 |
|
| 1406 |
function createAnyTypeChecker() { |
| 1407 |
return createChainableTypeChecker(emptyFunctionThatReturnsNull); |
| 1408 |
} |
| 1409 |
|
| 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 |
} |
| 1430 |
|
| 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 |
} |
| 1442 |
|
| 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 |
} |
| 1454 |
|
| 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 |
} |
| 1466 |
|
| 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 |
} |
| 1481 |
|
| 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 |
} |
| 1489 |
|
| 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 |
} |
| 1501 |
|
| 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 |
; |
| 2200 |
//# sourceMappingURL=editor-notifications.js.map |