| @@ -1,7 +1,1742 @@ | ||
| 1 | +/*! elementor - v3.14.0 - 14-06-2023 */ | |
| 1 | 2 | /******/ (() => { // webpackBootstrap |
| 2 | 3 | /******/ var __webpack_modules__ = ({ |
| 3 | 4 | |
| 5 | +/***/ "../app/assets/js/molecules/collapse.scss": | |
| 6 | +/*!************************************************!*\ | |
| 7 | + !*** ../app/assets/js/molecules/collapse.scss ***! | |
| 8 | + \************************************************/ | |
| 9 | +/***/ (() => { | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | +/***/ }), | |
| 14 | + | |
| 15 | +/***/ "../app/assets/js/molecules/upload-file.scss": | |
| 16 | +/*!***************************************************!*\ | |
| 17 | + !*** ../app/assets/js/molecules/upload-file.scss ***! | |
| 18 | + \***************************************************/ | |
| 19 | +/***/ (() => { | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | +/***/ }), | |
| 24 | + | |
| 25 | +/***/ "../app/assets/js/organisms/drop-zone.scss": | |
| 26 | +/*!*************************************************!*\ | |
| 27 | + !*** ../app/assets/js/organisms/drop-zone.scss ***! | |
| 28 | + \*************************************************/ | |
| 29 | +/***/ (() => { | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | +/***/ }), | |
| 34 | + | |
| 35 | +/***/ "../app/assets/js/ui/atoms/box.scss": | |
| 36 | +/*!******************************************!*\ | |
| 37 | + !*** ../app/assets/js/ui/atoms/box.scss ***! | |
| 38 | + \******************************************/ | |
| 39 | +/***/ (() => { | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | +/***/ }), | |
| 44 | + | |
| 45 | +/***/ "../app/assets/js/ui/atoms/checkbox.scss": | |
| 46 | +/*!***********************************************!*\ | |
| 47 | + !*** ../app/assets/js/ui/atoms/checkbox.scss ***! | |
| 48 | + \***********************************************/ | |
| 49 | +/***/ (() => { | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | +/***/ }), | |
| 54 | + | |
| 55 | +/***/ "../app/assets/js/ui/atoms/css-grid.scss": | |
| 56 | +/*!***********************************************!*\ | |
| 57 | + !*** ../app/assets/js/ui/atoms/css-grid.scss ***! | |
| 58 | + \***********************************************/ | |
| 59 | +/***/ (() => { | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | +/***/ }), | |
| 64 | + | |
| 65 | +/***/ "../app/assets/js/ui/atoms/drag-drop.scss": | |
| 66 | +/*!************************************************!*\ | |
| 67 | + !*** ../app/assets/js/ui/atoms/drag-drop.scss ***! | |
| 68 | + \************************************************/ | |
| 69 | +/***/ (() => { | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | +/***/ }), | |
| 74 | + | |
| 75 | +/***/ "../app/assets/js/ui/card/card.scss": | |
| 76 | +/*!******************************************!*\ | |
| 77 | + !*** ../app/assets/js/ui/card/card.scss ***! | |
| 78 | + \******************************************/ | |
| 79 | +/***/ (() => { | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | +/***/ }), | |
| 84 | + | |
| 85 | +/***/ "../app/assets/js/ui/dialog/dialog.scss": | |
| 86 | +/*!**********************************************!*\ | |
| 87 | + !*** ../app/assets/js/ui/dialog/dialog.scss ***! | |
| 88 | + \**********************************************/ | |
| 89 | +/***/ (() => { | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | +/***/ }), | |
| 94 | + | |
| 95 | +/***/ "../app/assets/js/ui/grid/grid.scss": | |
| 96 | +/*!******************************************!*\ | |
| 97 | + !*** ../app/assets/js/ui/grid/grid.scss ***! | |
| 98 | + \******************************************/ | |
| 99 | +/***/ (() => { | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | +/***/ }), | |
| 104 | + | |
| 105 | +/***/ "../app/assets/js/ui/menu/menu-item.scss": | |
| 106 | +/*!***********************************************!*\ | |
| 107 | + !*** ../app/assets/js/ui/menu/menu-item.scss ***! | |
| 108 | + \***********************************************/ | |
| 109 | +/***/ (() => { | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | +/***/ }), | |
| 114 | + | |
| 115 | +/***/ "../app/assets/js/ui/menu/menu.scss": | |
| 116 | +/*!******************************************!*\ | |
| 117 | + !*** ../app/assets/js/ui/menu/menu.scss ***! | |
| 118 | + \******************************************/ | |
| 119 | +/***/ (() => { | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | +/***/ }), | |
| 124 | + | |
| 125 | +/***/ "../app/assets/js/ui/modal/modal.scss": | |
| 126 | +/*!********************************************!*\ | |
| 127 | + !*** ../app/assets/js/ui/modal/modal.scss ***! | |
| 128 | + \********************************************/ | |
| 129 | +/***/ (() => { | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | +/***/ }), | |
| 134 | + | |
| 135 | +/***/ "../app/assets/js/ui/molecules/add-new-button.scss": | |
| 136 | +/*!*********************************************************!*\ | |
| 137 | + !*** ../app/assets/js/ui/molecules/add-new-button.scss ***! | |
| 138 | + \*********************************************************/ | |
| 139 | +/***/ (() => { | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | +/***/ }), | |
| 144 | + | |
| 145 | +/***/ "../app/assets/js/ui/molecules/inline-link.scss": | |
| 146 | +/*!******************************************************!*\ | |
| 147 | + !*** ../app/assets/js/ui/molecules/inline-link.scss ***! | |
| 148 | + \******************************************************/ | |
| 149 | +/***/ (() => { | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | +/***/ }), | |
| 154 | + | |
| 155 | +/***/ "../app/assets/js/ui/molecules/list.scss": | |
| 156 | +/*!***********************************************!*\ | |
| 157 | + !*** ../app/assets/js/ui/molecules/list.scss ***! | |
| 158 | + \***********************************************/ | |
| 159 | +/***/ (() => { | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | +/***/ }), | |
| 164 | + | |
| 165 | +/***/ "../app/assets/js/ui/molecules/notice.scss": | |
| 166 | +/*!*************************************************!*\ | |
| 167 | + !*** ../app/assets/js/ui/molecules/notice.scss ***! | |
| 168 | + \*************************************************/ | |
| 169 | +/***/ (() => { | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | +/***/ }), | |
| 174 | + | |
| 175 | +/***/ "../app/assets/js/ui/molecules/popover.scss": | |
| 176 | +/*!**************************************************!*\ | |
| 177 | + !*** ../app/assets/js/ui/molecules/popover.scss ***! | |
| 178 | + \**************************************************/ | |
| 179 | +/***/ (() => { | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | +/***/ }), | |
| 184 | + | |
| 185 | +/***/ "../app/assets/js/ui/molecules/select2.scss": | |
| 186 | +/*!**************************************************!*\ | |
| 187 | + !*** ../app/assets/js/ui/molecules/select2.scss ***! | |
| 188 | + \**************************************************/ | |
| 189 | +/***/ (() => { | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | +/***/ }), | |
| 194 | + | |
| 195 | +/***/ "../app/modules/site-editor/assets/js/molecules/site-part.scss": | |
| 196 | +/*!*********************************************************************!*\ | |
| 197 | + !*** ../app/modules/site-editor/assets/js/molecules/site-part.scss ***! | |
| 198 | + \*********************************************************************/ | |
| 199 | +/***/ (() => { | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | +/***/ }), | |
| 204 | + | |
| 205 | +/***/ "../app/modules/site-editor/assets/js/organisms/menu.scss": | |
| 206 | +/*!****************************************************************!*\ | |
| 207 | + !*** ../app/modules/site-editor/assets/js/organisms/menu.scss ***! | |
| 208 | + \****************************************************************/ | |
| 209 | +/***/ (() => { | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | +/***/ }), | |
| 214 | + | |
| 215 | +/***/ "../app/modules/site-editor/assets/js/pages/promotion.scss": | |
| 216 | +/*!*****************************************************************!*\ | |
| 217 | + !*** ../app/modules/site-editor/assets/js/pages/promotion.scss ***! | |
| 218 | + \*****************************************************************/ | |
| 219 | +/***/ (() => { | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | +/***/ }), | |
| 224 | + | |
| 225 | +/***/ "../app/modules/site-editor/assets/js/templates/site-editor.scss": | |
| 226 | +/*!***********************************************************************!*\ | |
| 227 | + !*** ../app/modules/site-editor/assets/js/templates/site-editor.scss ***! | |
| 228 | + \***********************************************************************/ | |
| 229 | +/***/ (() => { | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | +/***/ }), | |
| 234 | + | |
| 235 | +/***/ "../app/modules/site-editor/assets/scss/loading.scss": | |
| 236 | +/*!***********************************************************!*\ | |
| 237 | + !*** ../app/modules/site-editor/assets/scss/loading.scss ***! | |
| 238 | + \***********************************************************/ | |
| 239 | +/***/ (() => { | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | +/***/ }), | |
| 244 | + | |
| 245 | +/***/ "../node_modules/@reach/router/es/index.js": | |
| 246 | +/*!*************************************************!*\ | |
| 247 | + !*** ../node_modules/@reach/router/es/index.js ***! | |
| 248 | + \*************************************************/ | |
| 249 | +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { | |
| 250 | + | |
| 251 | +"use strict"; | |
| 252 | +__webpack_require__.r(__webpack_exports__); | |
| 253 | +/* harmony export */ __webpack_require__.d(__webpack_exports__, { | |
| 254 | +/* harmony export */ "Link": () => (/* binding */ Link), | |
| 255 | +/* harmony export */ "Location": () => (/* binding */ Location), | |
| 256 | +/* harmony export */ "LocationProvider": () => (/* binding */ LocationProvider), | |
| 257 | +/* harmony export */ "Match": () => (/* binding */ Match), | |
| 258 | +/* harmony export */ "Redirect": () => (/* binding */ Redirect), | |
| 259 | +/* harmony export */ "Router": () => (/* binding */ Router), | |
| 260 | +/* harmony export */ "ServerLocation": () => (/* binding */ ServerLocation), | |
| 261 | +/* harmony export */ "createHistory": () => (/* reexport safe */ _lib_history__WEBPACK_IMPORTED_MODULE_5__.createHistory), | |
| 262 | +/* harmony export */ "createMemorySource": () => (/* reexport safe */ _lib_history__WEBPACK_IMPORTED_MODULE_5__.createMemorySource), | |
| 263 | +/* harmony export */ "globalHistory": () => (/* reexport safe */ _lib_history__WEBPACK_IMPORTED_MODULE_5__.globalHistory), | |
| 264 | +/* harmony export */ "isRedirect": () => (/* binding */ isRedirect), | |
| 265 | +/* harmony export */ "matchPath": () => (/* reexport safe */ _lib_utils__WEBPACK_IMPORTED_MODULE_4__.match), | |
| 266 | +/* harmony export */ "navigate": () => (/* reexport safe */ _lib_history__WEBPACK_IMPORTED_MODULE_5__.navigate), | |
| 267 | +/* harmony export */ "redirectTo": () => (/* binding */ redirectTo), | |
| 268 | +/* harmony export */ "useLocation": () => (/* binding */ useLocation), | |
| 269 | +/* harmony export */ "useMatch": () => (/* binding */ useMatch), | |
| 270 | +/* harmony export */ "useNavigate": () => (/* binding */ useNavigate), | |
| 271 | +/* harmony export */ "useParams": () => (/* binding */ useParams) | |
| 272 | +/* harmony export */ }); | |
| 273 | +/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react"); | |
| 274 | +/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); | |
| 275 | +/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js"); | |
| 276 | +/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_6__); | |
| 277 | +/* harmony import */ var invariant__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! invariant */ "../node_modules/invariant/browser.js"); | |
| 278 | +/* harmony import */ var invariant__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(invariant__WEBPACK_IMPORTED_MODULE_1__); | |
| 279 | +/* harmony import */ var create_react_context__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! create-react-context */ "../node_modules/@reach/router/node_modules/create-react-context/lib/index.js"); | |
| 280 | +/* harmony import */ var create_react_context__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(create_react_context__WEBPACK_IMPORTED_MODULE_2__); | |
| 281 | +/* harmony import */ var react_lifecycles_compat__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react-lifecycles-compat */ "../node_modules/react-lifecycles-compat/react-lifecycles-compat.es.js"); | |
| 282 | +/* harmony import */ var _lib_utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./lib/utils */ "../node_modules/@reach/router/es/lib/utils.js"); | |
| 283 | +/* harmony import */ var _lib_history__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./lib/history */ "../node_modules/@reach/router/es/lib/history.js"); | |
| 284 | +var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; | |
| 285 | + | |
| 286 | +function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } | |
| 287 | + | |
| 288 | +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } | |
| 289 | + | |
| 290 | +function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } | |
| 291 | + | |
| 292 | +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } | |
| 293 | + | |
| 294 | +/* eslint-disable jsx-a11y/anchor-has-content */ | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | +//////////////////////////////////////////////////////////////////////////////// | |
| 304 | + | |
| 305 | +var createNamedContext = function createNamedContext(name, defaultValue) { | |
| 306 | + var Ctx = create_react_context__WEBPACK_IMPORTED_MODULE_2___default()(defaultValue); | |
| 307 | + Ctx.displayName = name; | |
| 308 | + return Ctx; | |
| 309 | +}; | |
| 310 | + | |
| 311 | +//////////////////////////////////////////////////////////////////////////////// | |
| 312 | +// Location Context/Provider | |
| 313 | +var LocationContext = createNamedContext("Location"); | |
| 314 | + | |
| 315 | +// sets up a listener if there isn't one already so apps don't need to be | |
| 316 | +// wrapped in some top level provider | |
| 317 | +var Location = function Location(_ref) { | |
| 318 | + var children = _ref.children; | |
| 319 | + return react__WEBPACK_IMPORTED_MODULE_0___default().createElement( | |
| 320 | + LocationContext.Consumer, | |
| 321 | + null, | |
| 322 | + function (context) { | |
| 323 | + return context ? children(context) : react__WEBPACK_IMPORTED_MODULE_0___default().createElement( | |
| 324 | + LocationProvider, | |
| 325 | + null, | |
| 326 | + children | |
| 327 | + ); | |
| 328 | + } | |
| 329 | + ); | |
| 330 | +}; | |
| 331 | + | |
| 332 | +var LocationProvider = function (_React$Component) { | |
| 333 | + _inherits(LocationProvider, _React$Component); | |
| 334 | + | |
| 335 | + function LocationProvider() { | |
| 336 | + var _temp, _this, _ret; | |
| 337 | + | |
| 338 | + _classCallCheck(this, LocationProvider); | |
| 339 | + | |
| 340 | + for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) { | |
| 341 | + args[_key] = arguments[_key]; | |
| 342 | + } | |
| 343 | + | |
| 344 | + return _ret = (_temp = (_this = _possibleConstructorReturn(this, _React$Component.call.apply(_React$Component, [this].concat(args))), _this), _this.state = { | |
| 345 | + context: _this.getContext(), | |
| 346 | + refs: { unlisten: null } | |
| 347 | + }, _temp), _possibleConstructorReturn(_this, _ret); | |
| 348 | + } | |
| 349 | + | |
| 350 | + LocationProvider.prototype.getContext = function getContext() { | |
| 351 | + var _props$history = this.props.history, | |
| 352 | + navigate = _props$history.navigate, | |
| 353 | + location = _props$history.location; | |
| 354 | + | |
| 355 | + return { navigate: navigate, location: location }; | |
| 356 | + }; | |
| 357 | + | |
| 358 | + LocationProvider.prototype.componentDidCatch = function componentDidCatch(error, info) { | |
| 359 | + if (isRedirect(error)) { | |
| 360 | + var _navigate = this.props.history.navigate; | |
| 361 | + | |
| 362 | + _navigate(error.uri, { replace: true }); | |
| 363 | + } else { | |
| 364 | + throw error; | |
| 365 | + } | |
| 366 | + }; | |
| 367 | + | |
| 368 | + LocationProvider.prototype.componentDidUpdate = function componentDidUpdate(prevProps, prevState) { | |
| 369 | + if (prevState.context.location !== this.state.context.location) { | |
| 370 | + this.props.history._onTransitionComplete(); | |
| 371 | + } | |
| 372 | + }; | |
| 373 | + | |
| 374 | + LocationProvider.prototype.componentDidMount = function componentDidMount() { | |
| 375 | + var _this2 = this; | |
| 376 | + | |
| 377 | + var refs = this.state.refs, | |
| 378 | + history = this.props.history; | |
| 379 | + | |
| 380 | + history._onTransitionComplete(); | |
| 381 | + refs.unlisten = history.listen(function () { | |
| 382 | + Promise.resolve().then(function () { | |
| 383 | + // TODO: replace rAF with react deferred update API when it's ready https://github.com/facebook/react/issues/13306 | |
| 384 | + requestAnimationFrame(function () { | |
| 385 | + if (!_this2.unmounted) { | |
| 386 | + _this2.setState(function () { | |
| 387 | + return { context: _this2.getContext() }; | |
| 388 | + }); | |
| 389 | + } | |
| 390 | + }); | |
| 391 | + }); | |
| 392 | + }); | |
| 393 | + }; | |
| 394 | + | |
| 395 | + LocationProvider.prototype.componentWillUnmount = function componentWillUnmount() { | |
| 396 | + var refs = this.state.refs; | |
| 397 | + | |
| 398 | + this.unmounted = true; | |
| 399 | + refs.unlisten(); | |
| 400 | + }; | |
| 401 | + | |
| 402 | + LocationProvider.prototype.render = function render() { | |
| 403 | + var context = this.state.context, | |
| 404 | + children = this.props.children; | |
| 405 | + | |
| 406 | + return react__WEBPACK_IMPORTED_MODULE_0___default().createElement( | |
| 407 | + LocationContext.Provider, | |
| 408 | + { value: context }, | |
| 409 | + typeof children === "function" ? children(context) : children || null | |
| 410 | + ); | |
| 411 | + }; | |
| 412 | + | |
| 413 | + return LocationProvider; | |
| 414 | +}((react__WEBPACK_IMPORTED_MODULE_0___default().Component)); | |
| 415 | + | |
| 416 | +//////////////////////////////////////////////////////////////////////////////// | |
| 417 | + | |
| 418 | + | |
| 419 | +LocationProvider.defaultProps = { | |
| 420 | + history: _lib_history__WEBPACK_IMPORTED_MODULE_5__.globalHistory | |
| 421 | +}; | |
| 422 | + true ? LocationProvider.propTypes = { | |
| 423 | + history: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().object.isRequired) | |
| 424 | +} : 0; | |
| 425 | +var ServerLocation = function ServerLocation(_ref2) { | |
| 426 | + var url = _ref2.url, | |
| 427 | + children = _ref2.children; | |
| 428 | + | |
| 429 | + var searchIndex = url.indexOf("?"); | |
| 430 | + var searchExists = searchIndex > -1; | |
| 431 | + var pathname = void 0; | |
| 432 | + var search = ""; | |
| 433 | + var hash = ""; | |
| 434 | + | |
| 435 | + if (searchExists) { | |
| 436 | + pathname = url.substring(0, searchIndex); | |
| 437 | + search = url.substring(searchIndex); | |
| 438 | + } else { | |
| 439 | + pathname = url; | |
| 440 | + } | |
| 441 | + | |
| 442 | + return react__WEBPACK_IMPORTED_MODULE_0___default().createElement( | |
| 443 | + LocationContext.Provider, | |
| 444 | + { | |
| 445 | + value: { | |
| 446 | + location: { | |
| 447 | + pathname: pathname, | |
| 448 | + search: search, | |
| 449 | + hash: hash | |
| 450 | + }, | |
| 451 | + navigate: function navigate() { | |
| 452 | + throw new Error("You can't call navigate on the server."); | |
| 453 | + } | |
| 454 | + } | |
| 455 | + }, | |
| 456 | + children | |
| 457 | + ); | |
| 458 | +}; | |
| 459 | +//////////////////////////////////////////////////////////////////////////////// | |
| 460 | +// Sets baseuri and basepath for nested routers and links | |
| 461 | +var BaseContext = createNamedContext("Base", { baseuri: "/", basepath: "/" }); | |
| 462 | + | |
| 463 | +//////////////////////////////////////////////////////////////////////////////// | |
| 464 | +// The main event, welcome to the show everybody. | |
| 465 | +var Router = function Router(props) { | |
| 466 | + return react__WEBPACK_IMPORTED_MODULE_0___default().createElement( | |
| 467 | + BaseContext.Consumer, | |
| 468 | + null, | |
| 469 | + function (baseContext) { | |
| 470 | + return react__WEBPACK_IMPORTED_MODULE_0___default().createElement( | |
| 471 | + Location, | |
| 472 | + null, | |
| 473 | + function (locationContext) { | |
| 474 | + return react__WEBPACK_IMPORTED_MODULE_0___default().createElement(RouterImpl, _extends({}, baseContext, locationContext, props)); | |
| 475 | + } | |
| 476 | + ); | |
| 477 | + } | |
| 478 | + ); | |
| 479 | +}; | |
| 480 | + | |
| 481 | +var RouterImpl = function (_React$PureComponent) { | |
| 482 | + _inherits(RouterImpl, _React$PureComponent); | |
| 483 | + | |
| 484 | + function RouterImpl() { | |
| 485 | + _classCallCheck(this, RouterImpl); | |
| 486 | + | |
| 487 | + return _possibleConstructorReturn(this, _React$PureComponent.apply(this, arguments)); | |
| 488 | + } | |
| 489 | + | |
| 490 | + RouterImpl.prototype.render = function render() { | |
| 491 | + var _props = this.props, | |
| 492 | + location = _props.location, | |
| 493 | + _navigate2 = _props.navigate, | |
| 494 | + basepath = _props.basepath, | |
| 495 | + primary = _props.primary, | |
| 496 | + children = _props.children, | |
| 497 | + baseuri = _props.baseuri, | |
| 498 | + _props$component = _props.component, | |
| 499 | + component = _props$component === undefined ? "div" : _props$component, | |
| 500 | + domProps = _objectWithoutProperties(_props, ["location", "navigate", "basepath", "primary", "children", "baseuri", "component"]); | |
| 501 | + | |
| 502 | + var routes = react__WEBPACK_IMPORTED_MODULE_0___default().Children.toArray(children).reduce(function (array, child) { | |
| 503 | + var routes = createRoute(basepath)(child); | |
| 504 | + return array.concat(routes); | |
| 505 | + }, []); | |
| 506 | + var pathname = location.pathname; | |
| 507 | + | |
| 508 | + | |
| 509 | + var match = (0,_lib_utils__WEBPACK_IMPORTED_MODULE_4__.pick)(routes, pathname); | |
| 510 | + | |
| 511 | + if (match) { | |
| 512 | + var params = match.params, | |
| 513 | + uri = match.uri, | |
| 514 | + route = match.route, | |
| 515 | + element = match.route.value; | |
| 516 | + | |
| 517 | + // remove the /* from the end for child routes relative paths | |
| 518 | + | |
| 519 | + basepath = route.default ? basepath : route.path.replace(/\*$/, ""); | |
| 520 | + | |
| 521 | + var props = _extends({}, params, { | |
| 522 | + uri: uri, | |
| 523 | + location: location, | |
| 524 | + navigate: function navigate(to, options) { | |
| 525 | + return _navigate2((0,_lib_utils__WEBPACK_IMPORTED_MODULE_4__.resolve)(to, uri), options); | |
| 526 | + } | |
| 527 | + }); | |
| 528 | + | |
| 529 | + var clone = react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(element, props, element.props.children ? react__WEBPACK_IMPORTED_MODULE_0___default().createElement( | |
| 530 | + Router, | |
| 531 | + { location: location, primary: primary }, | |
| 532 | + element.props.children | |
| 533 | + ) : undefined); | |
| 534 | + | |
| 535 | + // using 'div' for < 16.3 support | |
| 536 | + var FocusWrapper = primary ? FocusHandler : component; | |
| 537 | + // don't pass any props to 'div' | |
| 538 | + var wrapperProps = primary ? _extends({ uri: uri, location: location, component: component }, domProps) : domProps; | |
| 539 | + | |
| 540 | + return react__WEBPACK_IMPORTED_MODULE_0___default().createElement( | |
| 541 | + BaseContext.Provider, | |
| 542 | + { value: { baseuri: uri, basepath: basepath } }, | |
| 543 | + react__WEBPACK_IMPORTED_MODULE_0___default().createElement( | |
| 544 | + FocusWrapper, | |
| 545 | + wrapperProps, | |
| 546 | + clone | |
| 547 | + ) | |
| 548 | + ); | |
| 549 | + } else { | |
| 550 | + // Not sure if we want this, would require index routes at every level | |
| 551 | + // warning( | |
| 552 | + // false, | |
| 553 | + // `<Router basepath="${basepath}">\n\nNothing matched:\n\t${ | |
| 554 | + // location.pathname | |
| 555 | + // }\n\nPaths checked: \n\t${routes | |
| 556 | + // .map(route => route.path) | |
| 557 | + // .join( | |
| 558 | + // "\n\t" | |
| 559 | + // )}\n\nTo get rid of this warning, add a default NotFound component as child of Router: | |
| 560 | + // \n\tlet NotFound = () => <div>Not Found!</div> | |
| 561 | + // \n\t<Router>\n\t <NotFound default/>\n\t {/* ... */}\n\t</Router>` | |
| 562 | + // ); | |
| 563 | + return null; | |
| 564 | + } | |
| 565 | + }; | |
| 566 | + | |
| 567 | + return RouterImpl; | |
| 568 | +}((react__WEBPACK_IMPORTED_MODULE_0___default().PureComponent)); | |
| 569 | + | |
| 570 | +RouterImpl.defaultProps = { | |
| 571 | + primary: true | |
| 572 | +}; | |
| 573 | + | |
| 574 | + | |
| 575 | +var FocusContext = createNamedContext("Focus"); | |
| 576 | + | |
| 577 | +var FocusHandler = function FocusHandler(_ref3) { | |
| 578 | + var uri = _ref3.uri, | |
| 579 | + location = _ref3.location, | |
| 580 | + component = _ref3.component, | |
| 581 | + domProps = _objectWithoutProperties(_ref3, ["uri", "location", "component"]); | |
| 582 | + | |
| 583 | + return react__WEBPACK_IMPORTED_MODULE_0___default().createElement( | |
| 584 | + FocusContext.Consumer, | |
| 585 | + null, | |
| 586 | + function (requestFocus) { | |
| 587 | + return react__WEBPACK_IMPORTED_MODULE_0___default().createElement(FocusHandlerImpl, _extends({}, domProps, { | |
| 588 | + component: component, | |
| 589 | + requestFocus: requestFocus, | |
| 590 | + uri: uri, | |
| 591 | + location: location | |
| 592 | + })); | |
| 593 | + } | |
| 594 | + ); | |
| 595 | +}; | |
| 596 | + | |
| 597 | +// don't focus on initial render | |
| 598 | +var initialRender = true; | |
| 599 | +var focusHandlerCount = 0; | |
| 600 | + | |
| 601 | +var FocusHandlerImpl = function (_React$Component2) { | |
| 602 | + _inherits(FocusHandlerImpl, _React$Component2); | |
| 603 | + | |
| 604 | + function FocusHandlerImpl() { | |
| 605 | + var _temp2, _this4, _ret2; | |
| 606 | + | |
| 607 | + _classCallCheck(this, FocusHandlerImpl); | |
| 608 | + | |
| 609 | + for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) { | |
| 610 | + args[_key2] = arguments[_key2]; | |
| 611 | + } | |
| 612 | + | |
| 613 | + return _ret2 = (_temp2 = (_this4 = _possibleConstructorReturn(this, _React$Component2.call.apply(_React$Component2, [this].concat(args))), _this4), _this4.state = {}, _this4.requestFocus = function (node) { | |
| 614 | + if (!_this4.state.shouldFocus && node) { | |
| 615 | + node.focus(); | |
| 616 | + } | |
| 617 | + }, _temp2), _possibleConstructorReturn(_this4, _ret2); | |
| 618 | + } | |
| 619 | + | |
| 620 | + FocusHandlerImpl.getDerivedStateFromProps = function getDerivedStateFromProps(nextProps, prevState) { | |
| 621 | + var initial = prevState.uri == null; | |
| 622 | + if (initial) { | |
| 623 | + return _extends({ | |
| 624 | + shouldFocus: true | |
| 625 | + }, nextProps); | |
| 626 | + } else { | |
| 627 | + var myURIChanged = nextProps.uri !== prevState.uri; | |
| 628 | + var navigatedUpToMe = prevState.location.pathname !== nextProps.location.pathname && nextProps.location.pathname === nextProps.uri; | |
| 629 | + return _extends({ | |
| 630 | + shouldFocus: myURIChanged || navigatedUpToMe | |
| 631 | + }, nextProps); | |
| 632 | + } | |
| 633 | + }; | |
| 634 | + | |
| 635 | + FocusHandlerImpl.prototype.componentDidMount = function componentDidMount() { | |
| 636 | + focusHandlerCount++; | |
| 637 | + this.focus(); | |
| 638 | + }; | |
| 639 | + | |
| 640 | + FocusHandlerImpl.prototype.componentWillUnmount = function componentWillUnmount() { | |
| 641 | + focusHandlerCount--; | |
| 642 | + if (focusHandlerCount === 0) { | |
| 643 | + initialRender = true; | |
| 644 | + } | |
| 645 | + }; | |
| 646 | + | |
| 647 | + FocusHandlerImpl.prototype.componentDidUpdate = function componentDidUpdate(prevProps, prevState) { | |
| 648 | + if (prevProps.location !== this.props.location && this.state.shouldFocus) { | |
| 649 | + this.focus(); | |
| 650 | + } | |
| 651 | + }; | |
| 652 | + | |
| 653 | + FocusHandlerImpl.prototype.focus = function focus() { | |
| 654 | + if (false) {} | |
| 655 | + | |
| 656 | + var requestFocus = this.props.requestFocus; | |
| 657 | + | |
| 658 | + | |
| 659 | + if (requestFocus) { | |
| 660 | + requestFocus(this.node); | |
| 661 | + } else { | |
| 662 | + if (initialRender) { | |
| 663 | + initialRender = false; | |
| 664 | + } else if (this.node) { | |
| 665 | + // React polyfills [autofocus] and it fires earlier than cDM, | |
| 666 | + // so we were stealing focus away, this line prevents that. | |
| 667 | + if (!this.node.contains(document.activeElement)) { | |
| 668 | + this.node.focus(); | |
| 669 | + } | |
| 670 | + } | |
| 671 | + } | |
| 672 | + }; | |
| 673 | + | |
| 674 | + FocusHandlerImpl.prototype.render = function render() { | |
| 675 | + var _this5 = this; | |
| 676 | + | |
| 677 | + var _props2 = this.props, | |
| 678 | + children = _props2.children, | |
| 679 | + style = _props2.style, | |
| 680 | + requestFocus = _props2.requestFocus, | |
| 681 | + _props2$component = _props2.component, | |
| 682 | + Comp = _props2$component === undefined ? "div" : _props2$component, | |
| 683 | + uri = _props2.uri, | |
| 684 | + location = _props2.location, | |
| 685 | + domProps = _objectWithoutProperties(_props2, ["children", "style", "requestFocus", "component", "uri", "location"]); | |
| 686 | + | |
| 687 | + return react__WEBPACK_IMPORTED_MODULE_0___default().createElement( | |
| 688 | + Comp, | |
| 689 | + _extends({ | |
| 690 | + style: _extends({ outline: "none" }, style), | |
| 691 | + tabIndex: "-1", | |
| 692 | + ref: function ref(n) { | |
| 693 | + return _this5.node = n; | |
| 694 | + } | |
| 695 | + }, domProps), | |
| 696 | + react__WEBPACK_IMPORTED_MODULE_0___default().createElement( | |
| 697 | + FocusContext.Provider, | |
| 698 | + { value: this.requestFocus }, | |
| 699 | + this.props.children | |
| 700 | + ) | |
| 701 | + ); | |
| 702 | + }; | |
| 703 | + | |
| 704 | + return FocusHandlerImpl; | |
| 705 | +}((react__WEBPACK_IMPORTED_MODULE_0___default().Component)); | |
| 706 | + | |
| 707 | +(0,react_lifecycles_compat__WEBPACK_IMPORTED_MODULE_3__.polyfill)(FocusHandlerImpl); | |
| 708 | + | |
| 709 | +var k = function k() {}; | |
| 710 | + | |
| 711 | +//////////////////////////////////////////////////////////////////////////////// | |
| 712 | +var forwardRef = (react__WEBPACK_IMPORTED_MODULE_0___default().forwardRef); | |
| 713 | + | |
| 714 | +if (typeof forwardRef === "undefined") { | |
| 715 | + forwardRef = function forwardRef(C) { | |
| 716 | + return C; | |
| 717 | + }; | |
| 718 | +} | |
| 719 | + | |
| 720 | +var Link = forwardRef(function (_ref4, ref) { | |
| 721 | + var innerRef = _ref4.innerRef, | |
| 722 | + props = _objectWithoutProperties(_ref4, ["innerRef"]); | |
| 723 | + | |
| 724 | + return react__WEBPACK_IMPORTED_MODULE_0___default().createElement( | |
| 725 | + BaseContext.Consumer, | |
| 726 | + null, | |
| 727 | + function (_ref5) { | |
| 728 | + var basepath = _ref5.basepath, | |
| 729 | + baseuri = _ref5.baseuri; | |
| 730 | + return react__WEBPACK_IMPORTED_MODULE_0___default().createElement( | |
| 731 | + Location, | |
| 732 | + null, | |
| 733 | + function (_ref6) { | |
| 734 | + var location = _ref6.location, | |
| 735 | + navigate = _ref6.navigate; | |
| 736 | + | |
| 737 | + var to = props.to, | |
| 738 | + state = props.state, | |
| 739 | + replace = props.replace, | |
| 740 | + _props$getProps = props.getProps, | |
| 741 | + getProps = _props$getProps === undefined ? k : _props$getProps, | |
| 742 | + anchorProps = _objectWithoutProperties(props, ["to", "state", "replace", "getProps"]); | |
| 743 | + | |
| 744 | + var href = (0,_lib_utils__WEBPACK_IMPORTED_MODULE_4__.resolve)(to, baseuri); | |
| 745 | + var encodedHref = encodeURI(href); | |
| 746 | + var isCurrent = location.pathname === encodedHref; | |
| 747 | + var isPartiallyCurrent = (0,_lib_utils__WEBPACK_IMPORTED_MODULE_4__.startsWith)(location.pathname, encodedHref); | |
| 748 | + | |
| 749 | + return react__WEBPACK_IMPORTED_MODULE_0___default().createElement("a", _extends({ | |
| 750 | + ref: ref || innerRef, | |
| 751 | + "aria-current": isCurrent ? "page" : undefined | |
| 752 | + }, anchorProps, getProps({ isCurrent: isCurrent, isPartiallyCurrent: isPartiallyCurrent, href: href, location: location }), { | |
| 753 | + href: href, | |
| 754 | + onClick: function onClick(event) { | |
| 755 | + if (anchorProps.onClick) anchorProps.onClick(event); | |
| 756 | + if (shouldNavigate(event)) { | |
| 757 | + event.preventDefault(); | |
| 758 | + var shouldReplace = replace; | |
| 759 | + if (typeof replace !== "boolean" && isCurrent) { | |
| 760 | + var _location$state = _extends({}, location.state), | |
| 761 | + key = _location$state.key, | |
| 762 | + restState = _objectWithoutProperties(_location$state, ["key"]); | |
| 763 | + | |
| 764 | + shouldReplace = (0,_lib_utils__WEBPACK_IMPORTED_MODULE_4__.shallowCompare)(_extends({}, state), restState); | |
| 765 | + } | |
| 766 | + navigate(href, { | |
| 767 | + state: state, | |
| 768 | + replace: shouldReplace | |
| 769 | + }); | |
| 770 | + } | |
| 771 | + } | |
| 772 | + })); | |
| 773 | + } | |
| 774 | + ); | |
| 775 | + } | |
| 776 | + ); | |
| 777 | +}); | |
| 778 | + | |
| 779 | +Link.displayName = "Link"; | |
| 780 | + | |
| 781 | + true ? Link.propTypes = { | |
| 782 | + to: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().string.isRequired) | |
| 783 | +} : 0; | |
| 784 | + | |
| 785 | +//////////////////////////////////////////////////////////////////////////////// | |
| 786 | +function RedirectRequest(uri) { | |
| 787 | + this.uri = uri; | |
| 788 | +} | |
| 789 | + | |
| 790 | +var isRedirect = function isRedirect(o) { | |
| 791 | + return o instanceof RedirectRequest; | |
| 792 | +}; | |
| 793 | + | |
| 794 | +var redirectTo = function redirectTo(to) { | |
| 795 | + throw new RedirectRequest(to); | |
| 796 | +}; | |
| 797 | + | |
| 798 | +var RedirectImpl = function (_React$Component3) { | |
| 799 | + _inherits(RedirectImpl, _React$Component3); | |
| 800 | + | |
| 801 | + function RedirectImpl() { | |
| 802 | + _classCallCheck(this, RedirectImpl); | |
| 803 | + | |
| 804 | + return _possibleConstructorReturn(this, _React$Component3.apply(this, arguments)); | |
| 805 | + } | |
| 806 | + | |
| 807 | + // Support React < 16 with this hook | |
| 808 | + RedirectImpl.prototype.componentDidMount = function componentDidMount() { | |
| 809 | + var _props3 = this.props, | |
| 810 | + navigate = _props3.navigate, | |
| 811 | + to = _props3.to, | |
| 812 | + from = _props3.from, | |
| 813 | + _props3$replace = _props3.replace, | |
| 814 | + replace = _props3$replace === undefined ? true : _props3$replace, | |
| 815 | + state = _props3.state, | |
| 816 | + noThrow = _props3.noThrow, | |
| 817 | + baseuri = _props3.baseuri, | |
| 818 | + props = _objectWithoutProperties(_props3, ["navigate", "to", "from", "replace", "state", "noThrow", "baseuri"]); | |
| 819 | + | |
| 820 | + Promise.resolve().then(function () { | |
| 821 | + var resolvedTo = (0,_lib_utils__WEBPACK_IMPORTED_MODULE_4__.resolve)(to, baseuri); | |
| 822 | + navigate((0,_lib_utils__WEBPACK_IMPORTED_MODULE_4__.insertParams)(resolvedTo, props), { replace: replace, state: state }); | |
| 823 | + }); | |
| 824 | + }; | |
| 825 | + | |
| 826 | + RedirectImpl.prototype.render = function render() { | |
| 827 | + var _props4 = this.props, | |
| 828 | + navigate = _props4.navigate, | |
| 829 | + to = _props4.to, | |
| 830 | + from = _props4.from, | |
| 831 | + replace = _props4.replace, | |
| 832 | + state = _props4.state, | |
| 833 | + noThrow = _props4.noThrow, | |
| 834 | + baseuri = _props4.baseuri, | |
| 835 | + props = _objectWithoutProperties(_props4, ["navigate", "to", "from", "replace", "state", "noThrow", "baseuri"]); | |
| 836 | + | |
| 837 | + var resolvedTo = (0,_lib_utils__WEBPACK_IMPORTED_MODULE_4__.resolve)(to, baseuri); | |
| 838 | + if (!noThrow) redirectTo((0,_lib_utils__WEBPACK_IMPORTED_MODULE_4__.insertParams)(resolvedTo, props)); | |
| 839 | + return null; | |
| 840 | + }; | |
| 841 | + | |
| 842 | + return RedirectImpl; | |
| 843 | +}((react__WEBPACK_IMPORTED_MODULE_0___default().Component)); | |
| 844 | + | |
| 845 | +var Redirect = function Redirect(props) { | |
| 846 | + return react__WEBPACK_IMPORTED_MODULE_0___default().createElement( | |
| 847 | + BaseContext.Consumer, | |
| 848 | + null, | |
| 849 | + function (_ref7) { | |
| 850 | + var baseuri = _ref7.baseuri; | |
| 851 | + return react__WEBPACK_IMPORTED_MODULE_0___default().createElement( | |
| 852 | + Location, | |
| 853 | + null, | |
| 854 | + function (locationContext) { | |
| 855 | + return react__WEBPACK_IMPORTED_MODULE_0___default().createElement(RedirectImpl, _extends({}, locationContext, { baseuri: baseuri }, props)); | |
| 856 | + } | |
| 857 | + ); | |
| 858 | + } | |
| 859 | + ); | |
| 860 | +}; | |
| 861 | + | |
| 862 | + true ? Redirect.propTypes = { | |
| 863 | + from: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().string), | |
| 864 | + to: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().string.isRequired) | |
| 865 | +} : 0; | |
| 866 | + | |
| 867 | +//////////////////////////////////////////////////////////////////////////////// | |
| 868 | +var Match = function Match(_ref8) { | |
| 869 | + var path = _ref8.path, | |
| 870 | + children = _ref8.children; | |
| 871 | + return react__WEBPACK_IMPORTED_MODULE_0___default().createElement( | |
| 872 | + BaseContext.Consumer, | |
| 873 | + null, | |
| 874 | + function (_ref9) { | |
| 875 | + var baseuri = _ref9.baseuri; | |
| 876 | + return react__WEBPACK_IMPORTED_MODULE_0___default().createElement( | |
| 877 | + Location, | |
| 878 | + null, | |
| 879 | + function (_ref10) { | |
| 880 | + var navigate = _ref10.navigate, | |
| 881 | + location = _ref10.location; | |
| 882 | + | |
| 883 | + var resolvedPath = (0,_lib_utils__WEBPACK_IMPORTED_MODULE_4__.resolve)(path, baseuri); | |
| 884 | + var result = (0,_lib_utils__WEBPACK_IMPORTED_MODULE_4__.match)(resolvedPath, location.pathname); | |
| 885 | + return children({ | |
| 886 | + navigate: navigate, | |
| 887 | + location: location, | |
| 888 | + match: result ? _extends({}, result.params, { | |
| 889 | + uri: result.uri, | |
| 890 | + path: path | |
| 891 | + }) : null | |
| 892 | + }); | |
| 893 | + } | |
| 894 | + ); | |
| 895 | + } | |
| 896 | + ); | |
| 897 | +}; | |
| 898 | + | |
| 899 | +//////////////////////////////////////////////////////////////////////////////// | |
| 900 | +// Hooks | |
| 901 | + | |
| 902 | +var useLocation = function useLocation() { | |
| 903 | + var context = (0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(LocationContext); | |
| 904 | + | |
| 905 | + if (!context) { | |
| 906 | + throw new Error("useLocation hook was used but a LocationContext.Provider was not found in the parent tree. Make sure this is used in a component that is a child of Router"); | |
| 907 | + } | |
| 908 | + | |
| 909 | + return context.location; | |
| 910 | +}; | |
| 911 | + | |
| 912 | +var useNavigate = function useNavigate() { | |
| 913 | + var context = (0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(LocationContext); | |
| 914 | + | |
| 915 | + if (!context) { | |
| 916 | + throw new Error("useNavigate hook was used but a LocationContext.Provider was not found in the parent tree. Make sure this is used in a component that is a child of Router"); | |
| 917 | + } | |
| 918 | + | |
| 919 | + return context.navigate; | |
| 920 | +}; | |
| 921 | + | |
| 922 | +var useParams = function useParams() { | |
| 923 | + var context = (0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(BaseContext); | |
| 924 | + | |
| 925 | + if (!context) { | |
| 926 | + throw new Error("useParams hook was used but a LocationContext.Provider was not found in the parent tree. Make sure this is used in a component that is a child of Router"); | |
| 927 | + } | |
| 928 | + | |
| 929 | + var location = useLocation(); | |
| 930 | + | |
| 931 | + var results = (0,_lib_utils__WEBPACK_IMPORTED_MODULE_4__.match)(context.basepath, location.pathname); | |
| 932 | + | |
| 933 | + return results ? results.params : null; | |
| 934 | +}; | |
| 935 | + | |
| 936 | +var useMatch = function useMatch(path) { | |
| 937 | + if (!path) { | |
| 938 | + throw new Error("useMatch(path: string) requires an argument of a string to match against"); | |
| 939 | + } | |
| 940 | + var context = (0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(BaseContext); | |
| 941 | + | |
| 942 | + if (!context) { | |
| 943 | + throw new Error("useMatch hook was used but a LocationContext.Provider was not found in the parent tree. Make sure this is used in a component that is a child of Router"); | |
| 944 | + } | |
| 945 | + | |
| 946 | + var location = useLocation(); | |
| 947 | + | |
| 948 | + var resolvedPath = (0,_lib_utils__WEBPACK_IMPORTED_MODULE_4__.resolve)(path, context.baseuri); | |
| 949 | + var result = (0,_lib_utils__WEBPACK_IMPORTED_MODULE_4__.match)(resolvedPath, location.pathname); | |
| 950 | + return result ? _extends({}, result.params, { | |
| 951 | + uri: result.uri, | |
| 952 | + path: path | |
| 953 | + }) : null; | |
| 954 | +}; | |
| 955 | + | |
| 956 | +//////////////////////////////////////////////////////////////////////////////// | |
| 957 | +// Junk | |
| 958 | +var stripSlashes = function stripSlashes(str) { | |
| 959 | + return str.replace(/(^\/+|\/+$)/g, ""); | |
| 960 | +}; | |
| 961 | + | |
| 962 | +var createRoute = function createRoute(basepath) { | |
| 963 | + return function (element) { | |
| 964 | + if (!element) { | |
| 965 | + return null; | |
| 966 | + } | |
| 967 | + | |
| 968 | + if (element.type === (react__WEBPACK_IMPORTED_MODULE_0___default().Fragment) && element.props.children) { | |
| 969 | + return react__WEBPACK_IMPORTED_MODULE_0___default().Children.map(element.props.children, createRoute(basepath)); | |
| 970 | + } | |
| 971 | + !(element.props.path || element.props.default || element.type === Redirect) ? true ? invariant__WEBPACK_IMPORTED_MODULE_1___default()(false, "<Router>: Children of <Router> must have a `path` or `default` prop, or be a `<Redirect>`. None found on element type `" + element.type + "`") : 0 : void 0; | |
| 972 | + | |
| 973 | + !!(element.type === Redirect && (!element.props.from || !element.props.to)) ? true ? invariant__WEBPACK_IMPORTED_MODULE_1___default()(false, "<Redirect from=\"" + element.props.from + "\" to=\"" + element.props.to + "\"/> requires both \"from\" and \"to\" props when inside a <Router>.") : 0 : void 0; | |
| 974 | + | |
| 975 | + !!(element.type === Redirect && !(0,_lib_utils__WEBPACK_IMPORTED_MODULE_4__.validateRedirect)(element.props.from, element.props.to)) ? true ? invariant__WEBPACK_IMPORTED_MODULE_1___default()(false, "<Redirect from=\"" + element.props.from + " to=\"" + element.props.to + "\"/> has mismatched dynamic segments, ensure both paths have the exact same dynamic segments.") : 0 : void 0; | |
| 976 | + | |
| 977 | + if (element.props.default) { | |
| 978 | + return { value: element, default: true }; | |
| 979 | + } | |
| 980 | + | |
| 981 | + var elementPath = element.type === Redirect ? element.props.from : element.props.path; | |
| 982 | + | |
| 983 | + var path = elementPath === "/" ? basepath : stripSlashes(basepath) + "/" + stripSlashes(elementPath); | |
| 984 | + | |
| 985 | + return { | |
| 986 | + value: element, | |
| 987 | + default: element.props.default, | |
| 988 | + path: element.props.children ? stripSlashes(path) + "/*" : path | |
| 989 | + }; | |
| 990 | + }; | |
| 991 | +}; | |
| 992 | + | |
| 993 | +var shouldNavigate = function shouldNavigate(event) { | |
| 994 | + return !event.defaultPrevented && event.button === 0 && !(event.metaKey || event.altKey || event.ctrlKey || event.shiftKey); | |
| 995 | +}; | |
| 996 | + | |
| 997 | +//////////////////////////////////////////////////////////////////////// | |
| 998 | + | |
| 999 | + | |
| 1000 | +/***/ }), | |
| 1001 | + | |
| 1002 | +/***/ "../node_modules/@reach/router/es/lib/history.js": | |
| 1003 | +/*!*******************************************************!*\ | |
| 1004 | + !*** ../node_modules/@reach/router/es/lib/history.js ***! | |
| 1005 | + \*******************************************************/ | |
| 1006 | +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { | |
| 1007 | + | |
| 1008 | +"use strict"; | |
| 1009 | +__webpack_require__.r(__webpack_exports__); | |
| 1010 | +/* harmony export */ __webpack_require__.d(__webpack_exports__, { | |
| 1011 | +/* harmony export */ "createHistory": () => (/* binding */ createHistory), | |
| 1012 | +/* harmony export */ "createMemorySource": () => (/* binding */ createMemorySource), | |
| 1013 | +/* harmony export */ "globalHistory": () => (/* binding */ globalHistory), | |
| 1014 | +/* harmony export */ "navigate": () => (/* binding */ navigate) | |
| 1015 | +/* harmony export */ }); | |
| 1016 | +var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; | |
| 1017 | + | |
| 1018 | +var getLocation = function getLocation(source) { | |
| 1019 | + var _source$location = source.location, | |
| 1020 | + search = _source$location.search, | |
| 1021 | + hash = _source$location.hash, | |
| 1022 | + href = _source$location.href, | |
| 1023 | + origin = _source$location.origin, | |
| 1024 | + protocol = _source$location.protocol, | |
| 1025 | + host = _source$location.host, | |
| 1026 | + hostname = _source$location.hostname, | |
| 1027 | + port = _source$location.port; | |
| 1028 | + var pathname = source.location.pathname; | |
| 1029 | + | |
| 1030 | + | |
| 1031 | + if (!pathname && href && canUseDOM) { | |
| 1032 | + var url = new URL(href); | |
| 1033 | + pathname = url.pathname; | |
| 1034 | + } | |
| 1035 | + | |
| 1036 | + return { | |
| 1037 | + pathname: encodeURI(decodeURI(pathname)), | |
| 1038 | + search: search, | |
| 1039 | + hash: hash, | |
| 1040 | + href: href, | |
| 1041 | + origin: origin, | |
| 1042 | + protocol: protocol, | |
| 1043 | + host: host, | |
| 1044 | + hostname: hostname, | |
| 1045 | + port: port, | |
| 1046 | + state: source.history.state, | |
| 1047 | + key: source.history.state && source.history.state.key || "initial" | |
| 1048 | + }; | |
| 1049 | +}; | |
| 1050 | + | |
| 1051 | +var createHistory = function createHistory(source, options) { | |
| 1052 | + var listeners = []; | |
| 1053 | + var location = getLocation(source); | |
| 1054 | + var transitioning = false; | |
| 1055 | + var resolveTransition = function resolveTransition() {}; | |
| 1056 | + | |
| 1057 | + return { | |
| 1058 | + get location() { | |
| 1059 | + return location; | |
| 1060 | + }, | |
| 1061 | + | |
| 1062 | + get transitioning() { | |
| 1063 | + return transitioning; | |
| 1064 | + }, | |
| 1065 | + | |
| 1066 | + _onTransitionComplete: function _onTransitionComplete() { | |
| 1067 | + transitioning = false; | |
| 1068 | + resolveTransition(); | |
| 1069 | + }, | |
| 1070 | + listen: function listen(listener) { | |
| 1071 | + listeners.push(listener); | |
| 1072 | + | |
| 1073 | + var popstateListener = function popstateListener() { | |
| 1074 | + location = getLocation(source); | |
| 1075 | + listener({ location: location, action: "POP" }); | |
| 1076 | + }; | |
| 1077 | + | |
| 1078 | + source.addEventListener("popstate", popstateListener); | |
| 1079 | + | |
| 1080 | + return function () { | |
| 1081 | + source.removeEventListener("popstate", popstateListener); | |
| 1082 | + listeners = listeners.filter(function (fn) { | |
| 1083 | + return fn !== listener; | |
| 1084 | + }); | |
| 1085 | + }; | |
| 1086 | + }, | |
| 1087 | + navigate: function navigate(to) { | |
| 1088 | + var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, | |
| 1089 | + state = _ref.state, | |
| 1090 | + _ref$replace = _ref.replace, | |
| 1091 | + replace = _ref$replace === undefined ? false : _ref$replace; | |
| 1092 | + | |
| 1093 | + if (typeof to === "number") { | |
| 1094 | + source.history.go(to); | |
| 1095 | + } else { | |
| 1096 | + state = _extends({}, state, { key: Date.now() + "" }); | |
| 1097 | + // try...catch iOS Safari limits to 100 pushState calls | |
| 1098 | + try { | |
| 1099 | + if (transitioning || replace) { | |
| 1100 | + source.history.replaceState(state, null, to); | |
| 1101 | + } else { | |
| 1102 | + source.history.pushState(state, null, to); | |
| 1103 | + } | |
| 1104 | + } catch (e) { | |
| 1105 | + source.location[replace ? "replace" : "assign"](to); | |
| 1106 | + } | |
| 1107 | + } | |
| 1108 | + | |
| 1109 | + location = getLocation(source); | |
| 1110 | + transitioning = true; | |
| 1111 | + var transition = new Promise(function (res) { | |
| 1112 | + return resolveTransition = res; | |
| 1113 | + }); | |
| 1114 | + listeners.forEach(function (listener) { | |
| 1115 | + return listener({ location: location, action: "PUSH" }); | |
| 1116 | + }); | |
| 1117 | + return transition; | |
| 1118 | + } | |
| 1119 | + }; | |
| 1120 | +}; | |
| 1121 | + | |
| 1122 | +//////////////////////////////////////////////////////////////////////////////// | |
| 1123 | +// Stores history entries in memory for testing or other platforms like Native | |
| 1124 | +var createMemorySource = function createMemorySource() { | |
| 1125 | + var initialPath = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "/"; | |
| 1126 | + | |
| 1127 | + var searchIndex = initialPath.indexOf("?"); | |
| 1128 | + var initialLocation = { | |
| 1129 | + pathname: searchIndex > -1 ? initialPath.substr(0, searchIndex) : initialPath, | |
| 1130 | + search: searchIndex > -1 ? initialPath.substr(searchIndex) : "" | |
| 1131 | + }; | |
| 1132 | + var index = 0; | |
| 1133 | + var stack = [initialLocation]; | |
| 1134 | + var states = [null]; | |
| 1135 | + | |
| 1136 | + return { | |
| 1137 | + get location() { | |
| 1138 | + return stack[index]; | |
| 1139 | + }, | |
| 1140 | + addEventListener: function addEventListener(name, fn) {}, | |
| 1141 | + removeEventListener: function removeEventListener(name, fn) {}, | |
| 1142 | + | |
| 1143 | + history: { | |
| 1144 | + get entries() { | |
| 1145 | + return stack; | |
| 1146 | + }, | |
| 1147 | + get index() { | |
| 1148 | + return index; | |
| 1149 | + }, | |
| 1150 | + get state() { | |
| 1151 | + return states[index]; | |
| 1152 | + }, | |
| 1153 | + pushState: function pushState(state, _, uri) { | |
| 1154 | + var _uri$split = uri.split("?"), | |
| 1155 | + pathname = _uri$split[0], | |
| 1156 | + _uri$split$ = _uri$split[1], | |
| 1157 | + search = _uri$split$ === undefined ? "" : _uri$split$; | |
| 1158 | + | |
| 1159 | + index++; | |
| 1160 | + stack.push({ pathname: pathname, search: search.length ? "?" + search : search }); | |
| 1161 | + states.push(state); | |
| 1162 | + }, | |
| 1163 | + replaceState: function replaceState(state, _, uri) { | |
| 1164 | + var _uri$split2 = uri.split("?"), | |
| 1165 | + pathname = _uri$split2[0], | |
| 1166 | + _uri$split2$ = _uri$split2[1], | |
| 1167 | + search = _uri$split2$ === undefined ? "" : _uri$split2$; | |
| 1168 | + | |
| 1169 | + stack[index] = { pathname: pathname, search: search }; | |
| 1170 | + states[index] = state; | |
| 1171 | + }, | |
| 1172 | + go: function go(to) { | |
| 1173 | + var newIndex = index + to; | |
| 1174 | + | |
| 1175 | + if (newIndex < 0 || newIndex > states.length - 1) { | |
| 1176 | + return; | |
| 1177 | + } | |
| 1178 | + | |
| 1179 | + index = newIndex; | |
| 1180 | + } | |
| 1181 | + } | |
| 1182 | + }; | |
| 1183 | +}; | |
| 1184 | + | |
| 1185 | +//////////////////////////////////////////////////////////////////////////////// | |
| 1186 | +// global history - uses window.history as the source if available, otherwise a | |
| 1187 | +// memory history | |
| 1188 | +var canUseDOM = !!(typeof window !== "undefined" && window.document && window.document.createElement); | |
| 1189 | +var getSource = function getSource() { | |
| 1190 | + return canUseDOM ? window : createMemorySource(); | |
| 1191 | +}; | |
| 1192 | + | |
| 1193 | +var globalHistory = createHistory(getSource()); | |
| 1194 | +var navigate = globalHistory.navigate; | |
| 1195 | + | |
| 1196 | +//////////////////////////////////////////////////////////////////////////////// | |
| 1197 | + | |
| 1198 | + | |
| 1199 | + | |
| 1200 | +/***/ }), | |
| 1201 | + | |
| 1202 | +/***/ "../node_modules/@reach/router/es/lib/utils.js": | |
| 1203 | +/*!*****************************************************!*\ | |
| 1204 | + !*** ../node_modules/@reach/router/es/lib/utils.js ***! | |
| 1205 | + \*****************************************************/ | |
| 1206 | +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { | |
| 1207 | + | |
| 1208 | +"use strict"; | |
| 1209 | +__webpack_require__.r(__webpack_exports__); | |
| 1210 | +/* harmony export */ __webpack_require__.d(__webpack_exports__, { | |
| 1211 | +/* harmony export */ "insertParams": () => (/* binding */ insertParams), | |
| 1212 | +/* harmony export */ "match": () => (/* binding */ match), | |
| 1213 | +/* harmony export */ "pick": () => (/* binding */ pick), | |
| 1214 | +/* harmony export */ "resolve": () => (/* binding */ resolve), | |
| 1215 | +/* harmony export */ "shallowCompare": () => (/* binding */ shallowCompare), | |
| 1216 | +/* harmony export */ "startsWith": () => (/* binding */ startsWith), | |
| 1217 | +/* harmony export */ "validateRedirect": () => (/* binding */ validateRedirect) | |
| 1218 | +/* harmony export */ }); | |
| 1219 | +/* harmony import */ var invariant__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! invariant */ "../node_modules/invariant/browser.js"); | |
| 1220 | +/* harmony import */ var invariant__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(invariant__WEBPACK_IMPORTED_MODULE_0__); | |
| 1221 | + | |
| 1222 | + | |
| 1223 | +//////////////////////////////////////////////////////////////////////////////// | |
| 1224 | +// startsWith(string, search) - Check if `string` starts with `search` | |
| 1225 | +var startsWith = function startsWith(string, search) { | |
| 1226 | + return string.substr(0, search.length) === search; | |
| 1227 | +}; | |
| 1228 | + | |
| 1229 | +//////////////////////////////////////////////////////////////////////////////// | |
| 1230 | +// pick(routes, uri) | |
| 1231 | +// | |
| 1232 | +// Ranks and picks the best route to match. Each segment gets the highest | |
| 1233 | +// amount of points, then the type of segment gets an additional amount of | |
| 1234 | +// points where | |
| 1235 | +// | |
| 1236 | +// static > dynamic > splat > root | |
| 1237 | +// | |
| 1238 | +// This way we don't have to worry about the order of our routes, let the | |
| 1239 | +// computers do it. | |
| 1240 | +// | |
| 1241 | +// A route looks like this | |
| 1242 | +// | |
| 1243 | +// { path, default, value } | |
| 1244 | +// | |
| 1245 | +// And a returned match looks like: | |
| 1246 | +// | |
| 1247 | +// { route, params, uri } | |
| 1248 | +// | |
| 1249 | +// I know, I should use TypeScript not comments for these types. | |
| 1250 | +var pick = function pick(routes, uri) { | |
| 1251 | + var match = void 0; | |
| 1252 | + var default_ = void 0; | |
| 1253 | + | |
| 1254 | + var _uri$split = uri.split("?"), | |
| 1255 | + uriPathname = _uri$split[0]; | |
| 1256 | + | |
| 1257 | + var uriSegments = segmentize(uriPathname); | |
| 1258 | + var isRootUri = uriSegments[0] === ""; | |
| 1259 | + var ranked = rankRoutes(routes); | |
| 1260 | + | |
| 1261 | + for (var i = 0, l = ranked.length; i < l; i++) { | |
| 1262 | + var missed = false; | |
| 1263 | + var route = ranked[i].route; | |
| 1264 | + | |
| 1265 | + if (route.default) { | |
| 1266 | + default_ = { | |
| 1267 | + route: route, | |
| 1268 | + params: {}, | |
| 1269 | + uri: uri | |
| 1270 | + }; | |
| 1271 | + continue; | |
| 1272 | + } | |
| 1273 | + | |
| 1274 | + var routeSegments = segmentize(route.path); | |
| 1275 | + var params = {}; | |
| 1276 | + var max = Math.max(uriSegments.length, routeSegments.length); | |
| 1277 | + var index = 0; | |
| 1278 | + | |
| 1279 | + for (; index < max; index++) { | |
| 1280 | + var routeSegment = routeSegments[index]; | |
| 1281 | + var uriSegment = uriSegments[index]; | |
| 1282 | + | |
| 1283 | + if (isSplat(routeSegment)) { | |
| 1284 | + // Hit a splat, just grab the rest, and return a match | |
| 1285 | + // uri: /files/documents/work | |
| 1286 | + // route: /files/* | |
| 1287 | + var param = routeSegment.slice(1) || "*"; | |
| 1288 | + params[param] = uriSegments.slice(index).map(decodeURIComponent).join("/"); | |
| 1289 | + break; | |
| 1290 | + } | |
| 1291 | + | |
| 1292 | + if (uriSegment === undefined) { | |
| 1293 | + // URI is shorter than the route, no match | |
| 1294 | + // uri: /users | |
| 1295 | + // route: /users/:userId | |
| 1296 | + missed = true; | |
| 1297 | + break; | |
| 1298 | + } | |
| 1299 | + | |
| 1300 | + var dynamicMatch = paramRe.exec(routeSegment); | |
| 1301 | + | |
| 1302 | + if (dynamicMatch && !isRootUri) { | |
| 1303 | + var matchIsNotReserved = reservedNames.indexOf(dynamicMatch[1]) === -1; | |
| 1304 | + !matchIsNotReserved ? true ? invariant__WEBPACK_IMPORTED_MODULE_0___default()(false, "<Router> dynamic segment \"" + dynamicMatch[1] + "\" is a reserved name. Please use a different name in path \"" + route.path + "\".") : 0 : void 0; | |
| 1305 | + var value = decodeURIComponent(uriSegment); | |
| 1306 | + params[dynamicMatch[1]] = value; | |
| 1307 | + } else if (routeSegment !== uriSegment) { | |
| 1308 | + // Current segments don't match, not dynamic, not splat, so no match | |
| 1309 | + // uri: /users/123/settings | |
| 1310 | + // route: /users/:id/profile | |
| 1311 | + missed = true; | |
| 1312 | + break; | |
| 1313 | + } | |
| 1314 | + } | |
| 1315 | + | |
| 1316 | + if (!missed) { | |
| 1317 | + match = { | |
| 1318 | + route: route, | |
| 1319 | + params: params, | |
| 1320 | + uri: "/" + uriSegments.slice(0, index).join("/") | |
| 1321 | + }; | |
| 1322 | + break; | |
| 1323 | + } | |
| 1324 | + } | |
| 1325 | + | |
| 1326 | + return match || default_ || null; | |
| 1327 | +}; | |
| 1328 | + | |
| 1329 | +//////////////////////////////////////////////////////////////////////////////// | |
| 1330 | +// match(path, uri) - Matches just one path to a uri, also lol | |
| 1331 | +var match = function match(path, uri) { | |
| 1332 | + return pick([{ path: path }], uri); | |
| 1333 | +}; | |
| 1334 | + | |
| 1335 | +//////////////////////////////////////////////////////////////////////////////// | |
| 1336 | +// resolve(to, basepath) | |
| 1337 | +// | |
| 1338 | +// Resolves URIs as though every path is a directory, no files. Relative URIs | |
| 1339 | +// in the browser can feel awkward because not only can you be "in a directory" | |
| 1340 | +// you can be "at a file", too. For example | |
| 1341 | +// | |
| 1342 | +// browserSpecResolve('foo', '/bar/') => /bar/foo | |
| 1343 | +// browserSpecResolve('foo', '/bar') => /foo | |
| 1344 | +// | |
| 1345 | +// But on the command line of a file system, it's not as complicated, you can't | |
| 1346 | +// `cd` from a file, only directories. This way, links have to know less about | |
| 1347 | +// their current path. To go deeper you can do this: | |
| 1348 | +// | |
| 1349 | +// <Link to="deeper"/> | |
| 1350 | +// // instead of | |
| 1351 | +// <Link to=`{${props.uri}/deeper}`/> | |
| 1352 | +// | |
| 1353 | +// Just like `cd`, if you want to go deeper from the command line, you do this: | |
| 1354 | +// | |
| 1355 | +// cd deeper | |
| 1356 | +// # not | |
| 1357 | +// cd $(pwd)/deeper | |
| 1358 | +// | |
| 1359 | +// By treating every path as a directory, linking to relative paths should | |
| 1360 | +// require less contextual information and (fingers crossed) be more intuitive. | |
| 1361 | +var resolve = function resolve(to, base) { | |
| 1362 | + // /foo/bar, /baz/qux => /foo/bar | |
| 1363 | + if (startsWith(to, "/")) { | |
| 1364 | + return to; | |
| 1365 | + } | |
| 1366 | + | |
| 1367 | + var _to$split = to.split("?"), | |
| 1368 | + toPathname = _to$split[0], | |
| 1369 | + toQuery = _to$split[1]; | |
| 1370 | + | |
| 1371 | + var _base$split = base.split("?"), | |
| 1372 | + basePathname = _base$split[0]; | |
| 1373 | + | |
| 1374 | + var toSegments = segmentize(toPathname); | |
| 1375 | + var baseSegments = segmentize(basePathname); | |
| 1376 | + | |
| 1377 | + // ?a=b, /users?b=c => /users?a=b | |
| 1378 | + if (toSegments[0] === "") { | |
| 1379 | + return addQuery(basePathname, toQuery); | |
| 1380 | + } | |
| 1381 | + | |
| 1382 | + // profile, /users/789 => /users/789/profile | |
| 1383 | + if (!startsWith(toSegments[0], ".")) { | |
| 1384 | + var pathname = baseSegments.concat(toSegments).join("/"); | |
| 1385 | + return addQuery((basePathname === "/" ? "" : "/") + pathname, toQuery); | |
| 1386 | + } | |
| 1387 | + | |
| 1388 | + // ./ /users/123 => /users/123 | |
| 1389 | + // ../ /users/123 => /users | |
| 1390 | + // ../.. /users/123 => / | |
| 1391 | + // ../../one /a/b/c/d => /a/b/one | |
| 1392 | + // .././one /a/b/c/d => /a/b/c/one | |
| 1393 | + var allSegments = baseSegments.concat(toSegments); | |
| 1394 | + var segments = []; | |
| 1395 | + for (var i = 0, l = allSegments.length; i < l; i++) { | |
| 1396 | + var segment = allSegments[i]; | |
| 1397 | + if (segment === "..") segments.pop();else if (segment !== ".") segments.push(segment); | |
| 1398 | + } | |
| 1399 | + | |
| 1400 | + return addQuery("/" + segments.join("/"), toQuery); | |
| 1401 | +}; | |
| 1402 | + | |
| 1403 | +//////////////////////////////////////////////////////////////////////////////// | |
| 1404 | +// insertParams(path, params) | |
| 1405 | + | |
| 1406 | +var insertParams = function insertParams(path, params) { | |
| 1407 | + var _path$split = path.split("?"), | |
| 1408 | + pathBase = _path$split[0], | |
| 1409 | + _path$split$ = _path$split[1], | |
| 1410 | + query = _path$split$ === undefined ? "" : _path$split$; | |
| 1411 | + | |
| 1412 | + var segments = segmentize(pathBase); | |
| 1413 | + var constructedPath = "/" + segments.map(function (segment) { | |
| 1414 | + var match = paramRe.exec(segment); | |
| 1415 | + return match ? params[match[1]] : segment; | |
| 1416 | + }).join("/"); | |
| 1417 | + var _params$location = params.location; | |
| 1418 | + _params$location = _params$location === undefined ? {} : _params$location; | |
| 1419 | + var _params$location$sear = _params$location.search, | |
| 1420 | + search = _params$location$sear === undefined ? "" : _params$location$sear; | |
| 1421 | + | |
| 1422 | + var searchSplit = search.split("?")[1] || ""; | |
| 1423 | + constructedPath = addQuery(constructedPath, query, searchSplit); | |
| 1424 | + return constructedPath; | |
| 1425 | +}; | |
| 1426 | + | |
| 1427 | +var validateRedirect = function validateRedirect(from, to) { | |
| 1428 | + var filter = function filter(segment) { | |
| 1429 | + return isDynamic(segment); | |
| 1430 | + }; | |
| 1431 | + var fromString = segmentize(from).filter(filter).sort().join("/"); | |
| 1432 | + var toString = segmentize(to).filter(filter).sort().join("/"); | |
| 1433 | + return fromString === toString; | |
| 1434 | +}; | |
| 1435 | + | |
| 1436 | +//////////////////////////////////////////////////////////////////////////////// | |
| 1437 | +// Junk | |
| 1438 | +var paramRe = /^:(.+)/; | |
| 1439 | + | |
| 1440 | +var SEGMENT_POINTS = 4; | |
| 1441 | +var STATIC_POINTS = 3; | |
| 1442 | +var DYNAMIC_POINTS = 2; | |
| 1443 | +var SPLAT_PENALTY = 1; | |
| 1444 | +var ROOT_POINTS = 1; | |
| 1445 | + | |
| 1446 | +var isRootSegment = function isRootSegment(segment) { | |
| 1447 | + return segment === ""; | |
| 1448 | +}; | |
| 1449 | +var isDynamic = function isDynamic(segment) { | |
| 1450 | + return paramRe.test(segment); | |
| 1451 | +}; | |
| 1452 | +var isSplat = function isSplat(segment) { | |
| 1453 | + return segment && segment[0] === "*"; | |
| 1454 | +}; | |
| 1455 | + | |
| 1456 | +var rankRoute = function rankRoute(route, index) { | |
| 1457 | + var score = route.default ? 0 : segmentize(route.path).reduce(function (score, segment) { | |
| 1458 | + score += SEGMENT_POINTS; | |
| 1459 | + if (isRootSegment(segment)) score += ROOT_POINTS;else if (isDynamic(segment)) score += DYNAMIC_POINTS;else if (isSplat(segment)) score -= SEGMENT_POINTS + SPLAT_PENALTY;else score += STATIC_POINTS; | |
| 1460 | + return score; | |
| 1461 | + }, 0); | |
| 1462 | + return { route: route, score: score, index: index }; | |
| 1463 | +}; | |
| 1464 | + | |
| 1465 | +var rankRoutes = function rankRoutes(routes) { | |
| 1466 | + return routes.map(rankRoute).sort(function (a, b) { | |
| 1467 | + return a.score < b.score ? 1 : a.score > b.score ? -1 : a.index - b.index; | |
| 1468 | + }); | |
| 1469 | +}; | |
| 1470 | + | |
| 1471 | +var segmentize = function segmentize(uri) { | |
| 1472 | + return uri | |
| 1473 | + // strip starting/ending slashes | |
| 1474 | + .replace(/(^\/+|\/+$)/g, "").split("/"); | |
| 1475 | +}; | |
| 1476 | + | |
| 1477 | +var addQuery = function addQuery(pathname) { | |
| 1478 | + for (var _len = arguments.length, query = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { | |
| 1479 | + query[_key - 1] = arguments[_key]; | |
| 1480 | + } | |
| 1481 | + | |
| 1482 | + query = query.filter(function (q) { | |
| 1483 | + return q && q.length > 0; | |
| 1484 | + }); | |
| 1485 | + return pathname + (query && query.length > 0 ? "?" + query.join("&") : ""); | |
| 1486 | +}; | |
| 1487 | + | |
| 1488 | +var reservedNames = ["uri", "path"]; | |
| 1489 | + | |
| 1490 | +/** | |
| 1491 | + * Shallow compares two objects. | |
| 1492 | + * @param {Object} obj1 The first object to compare. | |
| 1493 | + * @param {Object} obj2 The second object to compare. | |
| 1494 | + */ | |
| 1495 | +var shallowCompare = function shallowCompare(obj1, obj2) { | |
| 1496 | + var obj1Keys = Object.keys(obj1); | |
| 1497 | + return obj1Keys.length === Object.keys(obj2).length && obj1Keys.every(function (key) { | |
| 1498 | + return obj2.hasOwnProperty(key) && obj1[key] === obj2[key]; | |
| 1499 | + }); | |
| 1500 | +}; | |
| 1501 | + | |
| 1502 | +//////////////////////////////////////////////////////////////////////////////// | |
| 1503 | + | |
| 1504 | + | |
| 1505 | +/***/ }), | |
| 1506 | + | |
| 1507 | +/***/ "../node_modules/@reach/router/node_modules/create-react-context/lib/implementation.js": | |
| 1508 | +/*!*********************************************************************************************!*\ | |
| 1509 | + !*** ../node_modules/@reach/router/node_modules/create-react-context/lib/implementation.js ***! | |
| 1510 | + \*********************************************************************************************/ | |
| 1511 | +/***/ ((module, exports, __webpack_require__) => { | |
| 1512 | + | |
| 1513 | +"use strict"; | |
| 1514 | + | |
| 1515 | + | |
| 1516 | +exports.__esModule = true; | |
| 1517 | + | |
| 1518 | +var _react = __webpack_require__(/*! react */ "react"); | |
| 1519 | + | |
| 1520 | +var _react2 = _interopRequireDefault(_react); | |
| 1521 | + | |
| 1522 | +var _propTypes = __webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js"); | |
| 1523 | + | |
| 1524 | +var _propTypes2 = _interopRequireDefault(_propTypes); | |
| 1525 | + | |
| 1526 | +var _gud = __webpack_require__(/*! gud */ "../node_modules/gud/index.js"); | |
| 1527 | + | |
| 1528 | +var _gud2 = _interopRequireDefault(_gud); | |
| 1529 | + | |
| 1530 | +var _warning = __webpack_require__(/*! warning */ "../node_modules/warning/warning.js"); | |
| 1531 | + | |
| 1532 | +var _warning2 = _interopRequireDefault(_warning); | |
| 1533 | + | |
| 1534 | +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | |
| 1535 | + | |
| 1536 | +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } | |
| 1537 | + | |
| 1538 | +function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } | |
| 1539 | + | |
| 1540 | +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } | |
| 1541 | + | |
| 1542 | +var MAX_SIGNED_31_BIT_INT = 1073741823; | |
| 1543 | + | |
| 1544 | +// Inlined Object.is polyfill. | |
| 1545 | +// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is | |
| 1546 | +function objectIs(x, y) { | |
| 1547 | + if (x === y) { | |
| 1548 | + return x !== 0 || 1 / x === 1 / y; | |
| 1549 | + } else { | |
| 1550 | + return x !== x && y !== y; | |
| 1551 | + } | |
| 1552 | +} | |
| 1553 | + | |
| 1554 | +function createEventEmitter(value) { | |
| 1555 | + var handlers = []; | |
| 1556 | + return { | |
| 1557 | + on: function on(handler) { | |
| 1558 | + handlers.push(handler); | |
| 1559 | + }, | |
| 1560 | + off: function off(handler) { | |
| 1561 | + handlers = handlers.filter(function (h) { | |
| 1562 | + return h !== handler; | |
| 1563 | + }); | |
| 1564 | + }, | |
| 1565 | + get: function get() { | |
| 1566 | + return value; | |
| 1567 | + }, | |
| 1568 | + set: function set(newValue, changedBits) { | |
| 1569 | + value = newValue; | |
| 1570 | + handlers.forEach(function (handler) { | |
| 1571 | + return handler(value, changedBits); | |
| 1572 | + }); | |
| 1573 | + } | |
| 1574 | + }; | |
| 1575 | +} | |
| 1576 | + | |
| 1577 | +function onlyChild(children) { | |
| 1578 | + return Array.isArray(children) ? children[0] : children; | |
| 1579 | +} | |
| 1580 | + | |
| 1581 | +function createReactContext(defaultValue, calculateChangedBits) { | |
| 1582 | + var _Provider$childContex, _Consumer$contextType; | |
| 1583 | + | |
| 1584 | + var contextProp = '__create-react-context-' + (0, _gud2.default)() + '__'; | |
| 1585 | + | |
| 1586 | + var Provider = function (_Component) { | |
| 1587 | + _inherits(Provider, _Component); | |
| 1588 | + | |
| 1589 | + function Provider() { | |
| 1590 | + var _temp, _this, _ret; | |
| 1591 | + | |
| 1592 | + _classCallCheck(this, Provider); | |
| 1593 | + | |
| 1594 | + for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) { | |
| 1595 | + args[_key] = arguments[_key]; | |
| 1596 | + } | |
| 1597 | + | |
| 1598 | + return _ret = (_temp = (_this = _possibleConstructorReturn(this, _Component.call.apply(_Component, [this].concat(args))), _this), _this.emitter = createEventEmitter(_this.props.value), _temp), _possibleConstructorReturn(_this, _ret); | |
| 1599 | + } | |
| 1600 | + | |
| 1601 | + Provider.prototype.getChildContext = function getChildContext() { | |
| 1602 | + var _ref; | |
| 1603 | + | |
| 1604 | + return _ref = {}, _ref[contextProp] = this.emitter, _ref; | |
| 1605 | + }; | |
| 1606 | + | |
| 1607 | + Provider.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) { | |
| 1608 | + if (this.props.value !== nextProps.value) { | |
| 1609 | + var oldValue = this.props.value; | |
| 1610 | + var newValue = nextProps.value; | |
| 1611 | + var changedBits = void 0; | |
| 1612 | + | |
| 1613 | + if (objectIs(oldValue, newValue)) { | |
| 1614 | + changedBits = 0; // No change | |
| 1615 | + } else { | |
| 1616 | + changedBits = typeof calculateChangedBits === 'function' ? calculateChangedBits(oldValue, newValue) : MAX_SIGNED_31_BIT_INT; | |
| 1617 | + if (true) { | |
| 1618 | + (0, _warning2.default)((changedBits & MAX_SIGNED_31_BIT_INT) === changedBits, 'calculateChangedBits: Expected the return value to be a ' + '31-bit integer. Instead received: %s', changedBits); | |
| 1619 | + } | |
| 1620 | + | |
| 1621 | + changedBits |= 0; | |
| 1622 | + | |
| 1623 | + if (changedBits !== 0) { | |
| 1624 | + this.emitter.set(nextProps.value, changedBits); | |
| 1625 | + } | |
| 1626 | + } | |
| 1627 | + } | |
| 1628 | + }; | |
| 1629 | + | |
| 1630 | + Provider.prototype.render = function render() { | |
| 1631 | + return this.props.children; | |
| 1632 | + }; | |
| 1633 | + | |
| 1634 | + return Provider; | |
| 1635 | + }(_react.Component); | |
| 1636 | + | |
| 1637 | + Provider.childContextTypes = (_Provider$childContex = {}, _Provider$childContex[contextProp] = _propTypes2.default.object.isRequired, _Provider$childContex); | |
| 1638 | + | |
| 1639 | + var Consumer = function (_Component2) { | |
| 1640 | + _inherits(Consumer, _Component2); | |
| 1641 | + | |
| 1642 | + function Consumer() { | |
| 1643 | + var _temp2, _this2, _ret2; | |
| 1644 | + | |
| 1645 | + _classCallCheck(this, Consumer); | |
| 1646 | + | |
| 1647 | + for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) { | |
| 1648 | + args[_key2] = arguments[_key2]; | |
| 1649 | + } | |
| 1650 | + | |
| 1651 | + return _ret2 = (_temp2 = (_this2 = _possibleConstructorReturn(this, _Component2.call.apply(_Component2, [this].concat(args))), _this2), _this2.state = { | |
| 1652 | + value: _this2.getValue() | |
| 1653 | + }, _this2.onUpdate = function (newValue, changedBits) { | |
| 1654 | + var observedBits = _this2.observedBits | 0; | |
| 1655 | + if ((observedBits & changedBits) !== 0) { | |
| 1656 | + _this2.setState({ value: _this2.getValue() }); | |
| 1657 | + } | |
| 1658 | + }, _temp2), _possibleConstructorReturn(_this2, _ret2); | |
| 1659 | + } | |
| 1660 | + | |
| 1661 | + Consumer.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) { | |
| 1662 | + var observedBits = nextProps.observedBits; | |
| 1663 | + | |
| 1664 | + this.observedBits = observedBits === undefined || observedBits === null ? MAX_SIGNED_31_BIT_INT // Subscribe to all changes by default | |
| 1665 | + : observedBits; | |
| 1666 | + }; | |
| 1667 | + | |
| 1668 | + Consumer.prototype.componentDidMount = function componentDidMount() { | |
| 1669 | + if (this.context[contextProp]) { | |
| 1670 | + this.context[contextProp].on(this.onUpdate); | |
| 1671 | + } | |
| 1672 | + var observedBits = this.props.observedBits; | |
| 1673 | + | |
| 1674 | + this.observedBits = observedBits === undefined || observedBits === null ? MAX_SIGNED_31_BIT_INT // Subscribe to all changes by default | |
| 1675 | + : observedBits; | |
| 1676 | + }; | |
| 1677 | + | |
| 1678 | + Consumer.prototype.componentWillUnmount = function componentWillUnmount() { | |
| 1679 | + if (this.context[contextProp]) { | |
| 1680 | + this.context[contextProp].off(this.onUpdate); | |
| 1681 | + } | |
| 1682 | + }; | |
| 1683 | + | |
| 1684 | + Consumer.prototype.getValue = function getValue() { | |
| 1685 | + if (this.context[contextProp]) { | |
| 1686 | + return this.context[contextProp].get(); | |
| 1687 | + } else { | |
| 1688 | + return defaultValue; | |
| 1689 | + } | |
| 1690 | + }; | |
| 1691 | + | |
| 1692 | + Consumer.prototype.render = function render() { | |
| 1693 | + return onlyChild(this.props.children)(this.state.value); | |
| 1694 | + }; | |
| 1695 | + | |
| 1696 | + return Consumer; | |
| 1697 | + }(_react.Component); | |
| 1698 | + | |
| 1699 | + Consumer.contextTypes = (_Consumer$contextType = {}, _Consumer$contextType[contextProp] = _propTypes2.default.object, _Consumer$contextType); | |
| 1700 | + | |
| 1701 | + | |
| 1702 | + return { | |
| 1703 | + Provider: Provider, | |
| 1704 | + Consumer: Consumer | |
| 1705 | + }; | |
| 1706 | +} | |
| 1707 | + | |
| 1708 | +exports["default"] = createReactContext; | |
| 1709 | +module.exports = exports['default']; | |
| 1710 | + | |
| 1711 | +/***/ }), | |
| 1712 | + | |
| 1713 | +/***/ "../node_modules/@reach/router/node_modules/create-react-context/lib/index.js": | |
| 1714 | +/*!************************************************************************************!*\ | |
| 1715 | + !*** ../node_modules/@reach/router/node_modules/create-react-context/lib/index.js ***! | |
| 1716 | + \************************************************************************************/ | |
| 1717 | +/***/ ((module, exports, __webpack_require__) => { | |
| 1718 | + | |
| 1719 | +"use strict"; | |
| 1720 | + | |
| 1721 | + | |
| 1722 | +exports.__esModule = true; | |
| 1723 | + | |
| 1724 | +var _react = __webpack_require__(/*! react */ "react"); | |
| 1725 | + | |
| 1726 | +var _react2 = _interopRequireDefault(_react); | |
| 1727 | + | |
| 1728 | +var _implementation = __webpack_require__(/*! ./implementation */ "../node_modules/@reach/router/node_modules/create-react-context/lib/implementation.js"); | |
| 1729 | + | |
| 1730 | +var _implementation2 = _interopRequireDefault(_implementation); | |
| 1731 | + | |
| 1732 | +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | |
| 1733 | + | |
| 1734 | +exports["default"] = _react2.default.createContext || _implementation2.default; | |
| 1735 | +module.exports = exports['default']; | |
| 1736 | + | |
| 1737 | +/***/ }), | |
| 1738 | + | |
| 4 | 1739 | /***/ "../app/assets/js/hooks/use-action.js": |
| 5 | 1740 | /*!********************************************!*\ |
| 6 | 1741 | !*** ../app/assets/js/hooks/use-action.js ***! |
| 7 | 1742 | \********************************************/ |
| @@ -56,10 +1791,10 @@ | ||
| 56 | 1791 | var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "../node_modules/@babel/runtime/helpers/defineProperty.js")); |
| 57 | 1792 | var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ "../node_modules/@babel/runtime/helpers/asyncToGenerator.js")); |
| 58 | 1793 | var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ "../node_modules/@babel/runtime/helpers/slicedToArray.js")); |
| 59 | 1794 | var _react = __webpack_require__(/*! react */ "react"); |
| 60 | -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } | |
| 61 | -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } | |
| 1795 | +function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; } | |
| 1796 | +function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; } | |
| 62 | 1797 | function useAjax() { |
| 63 | 1798 | var _useState = (0, _react.useState)(null), |
| 64 | 1799 | _useState2 = (0, _slicedToArray2.default)(_useState, 2), |
| 65 | 1800 | ajax = _useState2[0], |
| @@ -79,10 +1814,10 @@ | ||
| 79 | 1814 | return setAjaxState(initialStatusKey); |
| 80 | 1815 | } |
| 81 | 1816 | }; |
| 82 | 1817 | var runRequest = /*#__PURE__*/function () { |
| 83 | - var _ref = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee(config) { | |
| 84 | - return _regenerator.default.wrap(function (_context) { | |
| 1818 | + var _ref = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(config) { | |
| 1819 | + return _regenerator.default.wrap(function _callee$(_context) { | |
| 85 | 1820 | while (1) switch (_context.prev = _context.next) { |
| 86 | 1821 | case 0: |
| 87 | 1822 | return _context.abrupt("return", new Promise(function (resolve, reject) { |
| 88 | 1823 | var formData = new FormData(); |
| @@ -160,142 +1895,8 @@ | ||
| 160 | 1895 | } |
| 161 | 1896 | |
| 162 | 1897 | /***/ }), |
| 163 | 1898 | |
| 164 | -/***/ "../app/assets/js/hooks/use-confirm-action.js": | |
| 165 | -/*!****************************************************!*\ | |
| 166 | - !*** ../app/assets/js/hooks/use-confirm-action.js ***! | |
| 167 | - \****************************************************/ | |
| 168 | -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 169 | - | |
| 170 | -"use strict"; | |
| 171 | - | |
| 172 | - | |
| 173 | -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 174 | -Object.defineProperty(exports, "__esModule", ({ | |
| 175 | - value: true | |
| 176 | -})); | |
| 177 | -exports["default"] = useConfirmAction; | |
| 178 | -var _toConsumableArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/toConsumableArray */ "../node_modules/@babel/runtime/helpers/toConsumableArray.js")); | |
| 179 | -var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ "../node_modules/@babel/runtime/helpers/slicedToArray.js")); | |
| 180 | -var _react = __webpack_require__(/*! react */ "react"); | |
| 181 | -var _useIntroduction2 = _interopRequireDefault(__webpack_require__(/*! ./use-introduction */ "../app/assets/js/hooks/use-introduction.js")); | |
| 182 | -function useConfirmAction(_ref) { | |
| 183 | - var action = _ref.action, | |
| 184 | - _ref$doNotShowAgainKe = _ref.doNotShowAgainKey, | |
| 185 | - doNotShowAgainKey = _ref$doNotShowAgainKe === void 0 ? null : _ref$doNotShowAgainKe; | |
| 186 | - var _useIntroduction = (0, _useIntroduction2.default)(doNotShowAgainKey), | |
| 187 | - shouldNotShowAgain = _useIntroduction.isViewed, | |
| 188 | - markAsShouldNotShowAgain = _useIntroduction.markAsViewed; | |
| 189 | - var _useState = (0, _react.useState)({ | |
| 190 | - isOpen: false, | |
| 191 | - actionArgs: [] | |
| 192 | - }), | |
| 193 | - _useState2 = (0, _slicedToArray2.default)(_useState, 2), | |
| 194 | - dialogState = _useState2[0], | |
| 195 | - setDialogState = _useState2[1]; | |
| 196 | - var _useState3 = (0, _react.useState)(false), | |
| 197 | - _useState4 = (0, _slicedToArray2.default)(_useState3, 2), | |
| 198 | - doNotShowAgainCheckboxState = _useState4[0], | |
| 199 | - setDoNotShowAgainCheckboxState = _useState4[1]; | |
| 200 | - return { | |
| 201 | - checkbox: { | |
| 202 | - isChecked: doNotShowAgainCheckboxState, | |
| 203 | - setIsChecked: setDoNotShowAgainCheckboxState | |
| 204 | - }, | |
| 205 | - dialog: { | |
| 206 | - isOpen: dialogState.isOpen, | |
| 207 | - approve: function approve() { | |
| 208 | - action.apply(void 0, (0, _toConsumableArray2.default)(dialogState.actionArgs)); | |
| 209 | - if (doNotShowAgainCheckboxState && doNotShowAgainKey) { | |
| 210 | - markAsShouldNotShowAgain(); | |
| 211 | - } | |
| 212 | - setDialogState({ | |
| 213 | - isOpen: false, | |
| 214 | - actionArgs: [] | |
| 215 | - }); | |
| 216 | - }, | |
| 217 | - dismiss: function dismiss() { | |
| 218 | - setDialogState({ | |
| 219 | - isOpen: false, | |
| 220 | - actionArgs: [] | |
| 221 | - }); | |
| 222 | - } | |
| 223 | - }, | |
| 224 | - runAction: function runAction() { | |
| 225 | - for (var _len = arguments.length, actionArgs = new Array(_len), _key = 0; _key < _len; _key++) { | |
| 226 | - actionArgs[_key] = arguments[_key]; | |
| 227 | - } | |
| 228 | - if (shouldNotShowAgain) { | |
| 229 | - action.apply(void 0, actionArgs); | |
| 230 | - return; | |
| 231 | - } | |
| 232 | - setDialogState({ | |
| 233 | - isOpen: true, | |
| 234 | - actionArgs: actionArgs | |
| 235 | - }); | |
| 236 | - } | |
| 237 | - }; | |
| 238 | -} | |
| 239 | - | |
| 240 | -/***/ }), | |
| 241 | - | |
| 242 | -/***/ "../app/assets/js/hooks/use-introduction.js": | |
| 243 | -/*!**************************************************!*\ | |
| 244 | - !*** ../app/assets/js/hooks/use-introduction.js ***! | |
| 245 | - \**************************************************/ | |
| 246 | -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 247 | - | |
| 248 | -"use strict"; | |
| 249 | - | |
| 250 | - | |
| 251 | -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 252 | -Object.defineProperty(exports, "__esModule", ({ | |
| 253 | - value: true | |
| 254 | -})); | |
| 255 | -exports["default"] = useIntroduction; | |
| 256 | -var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ "../node_modules/@babel/runtime/helpers/slicedToArray.js")); | |
| 257 | -var _react = __webpack_require__(/*! react */ "react"); | |
| 258 | -function useIntroduction(key) { | |
| 259 | - var _window$elementorAppC; | |
| 260 | - var _useState = (0, _react.useState)(!!((_window$elementorAppC = window.elementorAppConfig) !== null && _window$elementorAppC !== void 0 && (_window$elementorAppC = _window$elementorAppC.user) !== null && _window$elementorAppC !== void 0 && (_window$elementorAppC = _window$elementorAppC.introduction) !== null && _window$elementorAppC !== void 0 && _window$elementorAppC[key])), | |
| 261 | - _useState2 = (0, _slicedToArray2.default)(_useState, 2), | |
| 262 | - isViewed = _useState2[0], | |
| 263 | - setIsViewed = _useState2[1]; | |
| 264 | - function markAsViewed() { | |
| 265 | - if (!key) { | |
| 266 | - return Promise.reject(); | |
| 267 | - } | |
| 268 | - return new Promise(function (resolve, reject) { | |
| 269 | - if (isViewed) { | |
| 270 | - reject(); | |
| 271 | - } | |
| 272 | - elementorCommon.ajax.addRequest('introduction_viewed', { | |
| 273 | - data: { | |
| 274 | - introductionKey: key | |
| 275 | - }, | |
| 276 | - error: function error() { | |
| 277 | - return reject(); | |
| 278 | - }, | |
| 279 | - success: function success() { | |
| 280 | - var _window$elementorAppC2; | |
| 281 | - setIsViewed(true); | |
| 282 | - if ((_window$elementorAppC2 = window.elementorAppConfig) !== null && _window$elementorAppC2 !== void 0 && (_window$elementorAppC2 = _window$elementorAppC2.user) !== null && _window$elementorAppC2 !== void 0 && _window$elementorAppC2.introduction) { | |
| 283 | - window.elementorAppConfig.user.introduction[key] = true; | |
| 284 | - } | |
| 285 | - resolve(); | |
| 286 | - } | |
| 287 | - }); | |
| 288 | - }); | |
| 289 | - } | |
| 290 | - return { | |
| 291 | - isViewed: isViewed, | |
| 292 | - markAsViewed: markAsViewed | |
| 293 | - }; | |
| 294 | -} | |
| 295 | - | |
| 296 | -/***/ }), | |
| 297 | - | |
| 298 | 1899 | /***/ "../app/assets/js/hooks/use-page-title.js": |
| 299 | 1900 | /*!************************************************!*\ |
| 300 | 1901 | !*** ../app/assets/js/hooks/use-page-title.js ***! |
| 301 | 1902 | \************************************************/ |
| @@ -312,14 +1913,13 @@ | ||
| 312 | 1913 | var _react = __webpack_require__(/*! react */ "react"); |
| 313 | 1914 | function usePageTitle(_ref) { |
| 314 | 1915 | var title = _ref.title, |
| 315 | 1916 | prefix = _ref.prefix; |
| 316 | - var prefixRef = (0, _react.useRef)(prefix); | |
| 317 | 1917 | (0, _react.useEffect)(function () { |
| 318 | 1918 | if (!prefix) { |
| 319 | - prefixRef.current = __('Elementor', 'elementor'); | |
| 1919 | + prefix = __('Elementor', 'elementor'); | |
| 320 | 1920 | } |
| 321 | - document.title = "".concat(prefixRef.current, " | ").concat(title); | |
| 1921 | + document.title = "".concat(prefix, " | ").concat(title); | |
| 322 | 1922 | }, [title, prefix]); |
| 323 | 1923 | } |
| 324 | 1924 | |
| 325 | 1925 | /***/ }), |
| @@ -339,10 +1939,10 @@ | ||
| 339 | 1939 | })); |
| 340 | 1940 | exports["default"] = useQueryParams; |
| 341 | 1941 | var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "../node_modules/@babel/runtime/helpers/defineProperty.js")); |
| 342 | 1942 | var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ "../node_modules/@babel/runtime/helpers/slicedToArray.js")); |
| 343 | -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } | |
| 344 | -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } | |
| 1943 | +function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; } | |
| 1944 | +function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; } | |
| 345 | 1945 | function useQueryParams() { |
| 346 | 1946 | var _location$hash$match; |
| 347 | 1947 | var urlSearchParams = new URLSearchParams(window.location.search), |
| 348 | 1948 | urlParams = Object.fromEntries(urlSearchParams.entries()), |
| @@ -442,27 +2042,27 @@ | ||
| 442 | 2042 | })); |
| 443 | 2043 | exports["default"] = void 0; |
| 444 | 2044 | var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); |
| 445 | 2045 | var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); |
| 2046 | +var _get2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/get */ "../node_modules/@babel/runtime/helpers/get.js")); | |
| 2047 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 446 | 2048 | var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); |
| 447 | 2049 | var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); |
| 448 | -var _get2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/get */ "../node_modules/@babel/runtime/helpers/get.js")); | |
| 449 | -var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 450 | 2050 | var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "../node_modules/@babel/runtime/helpers/defineProperty.js")); |
| 451 | 2051 | var _button = _interopRequireDefault(__webpack_require__(/*! ../ui/molecules/button */ "../app/assets/js/ui/molecules/button.js")); |
| 452 | -function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } | |
| 453 | -function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } | |
| 454 | -function _superPropGet(t, o, e, r) { var p = (0, _get2.default)((0, _getPrototypeOf2.default)(1 & r ? t.prototype : t), o, e); return 2 & r && "function" == typeof p ? function (t) { return p.apply(e, t); } : p; } | |
| 455 | -var Button = exports["default"] = /*#__PURE__*/function (_BaseButton) { | |
| 2052 | +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } | |
| 2053 | +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } | |
| 2054 | +var Button = /*#__PURE__*/function (_BaseButton) { | |
| 2055 | + (0, _inherits2.default)(Button, _BaseButton); | |
| 2056 | + var _super = _createSuper(Button); | |
| 456 | 2057 | function Button() { |
| 457 | 2058 | (0, _classCallCheck2.default)(this, Button); |
| 458 | - return _callSuper(this, Button, arguments); | |
| 2059 | + return _super.apply(this, arguments); | |
| 459 | 2060 | } |
| 460 | - (0, _inherits2.default)(Button, _BaseButton); | |
| 461 | - return (0, _createClass2.default)(Button, [{ | |
| 2061 | + (0, _createClass2.default)(Button, [{ | |
| 462 | 2062 | key: "getCssId", |
| 463 | 2063 | value: function getCssId() { |
| 464 | - return "eps-app-header-btn-" + _superPropGet(Button, "getCssId", this, 3)([]); | |
| 2064 | + return "eps-app-header-btn-" + (0, _get2.default)((0, _getPrototypeOf2.default)(Button.prototype), "getCssId", this).call(this); | |
| 465 | 2065 | } |
| 466 | 2066 | }, { |
| 467 | 2067 | key: "getClassName", |
| 468 | 2068 | value: function getClassName() { |
| @@ -467,14 +2067,16 @@ | ||
| 467 | 2067 | key: "getClassName", |
| 468 | 2068 | value: function getClassName() { |
| 469 | 2069 | // Avoid using the 'eps-app__header-btn' class to make sure it is not override custom styles. |
| 470 | 2070 | if (!this.props.includeHeaderBtnClass) { |
| 471 | - return _superPropGet(Button, "getClassName", this, 3)([]); | |
| 2071 | + return (0, _get2.default)((0, _getPrototypeOf2.default)(Button.prototype), "getClassName", this).call(this); | |
| 472 | 2072 | } |
| 473 | - return "eps-app__header-btn " + _superPropGet(Button, "getClassName", this, 3)([]); | |
| 2073 | + return "eps-app__header-btn " + (0, _get2.default)((0, _getPrototypeOf2.default)(Button.prototype), "getClassName", this).call(this); | |
| 474 | 2074 | } |
| 475 | 2075 | }]); |
| 2076 | + return Button; | |
| 476 | 2077 | }(_button.default); |
| 2078 | +exports["default"] = Button; | |
| 477 | 2079 | (0, _defineProperty2.default)(Button, "defaultProps", Object.assign({} /* Clone */, _button.default.defaultProps, { |
| 478 | 2080 | hideText: true, |
| 479 | 2081 | includeHeaderBtnClass: true |
| 480 | 2082 | })); |
| @@ -578,14 +2180,13 @@ | ||
| 578 | 2180 | className: "eps-app__header" |
| 579 | 2181 | }, /*#__PURE__*/_react.default.createElement(TitleTag, (0, _extends2.default)({ |
| 580 | 2182 | className: "eps-app__logo-title-wrapper" |
| 581 | 2183 | }, titleAttrs), /*#__PURE__*/_react.default.createElement("i", { |
| 582 | - className: "eps-app__logo eicon-elementor-circle" | |
| 2184 | + className: "eps-app__logo eicon-elementor" | |
| 583 | 2185 | }), /*#__PURE__*/_react.default.createElement("h1", { |
| 584 | 2186 | className: "eps-app__title" |
| 585 | 2187 | }, props.title)), /*#__PURE__*/_react.default.createElement(_headerButtons.default, { |
| 586 | - buttons: props.buttons, | |
| 587 | - onClose: props.onClose | |
| 2188 | + buttons: props.buttons | |
| 588 | 2189 | })); |
| 589 | 2190 | } |
| 590 | 2191 | Header.propTypes = { |
| 591 | 2192 | title: PropTypes.string, |
| @@ -639,9 +2240,12 @@ | ||
| 639 | 2240 | }, /*#__PURE__*/_react.default.createElement(_header.default, { |
| 640 | 2241 | title: props.title, |
| 641 | 2242 | buttons: props.headerButtons, |
| 642 | 2243 | titleRedirectRoute: props.titleRedirectRoute, |
| 643 | - onClose: props.onClose | |
| 2244 | + onClose: function onClose() { | |
| 2245 | + var _props$onClose; | |
| 2246 | + return (_props$onClose = props.onClose) === null || _props$onClose === void 0 ? void 0 : _props$onClose.call(props); | |
| 2247 | + } | |
| 644 | 2248 | }), /*#__PURE__*/_react.default.createElement("div", { |
| 645 | 2249 | className: "eps-app__main" |
| 646 | 2250 | }, AppSidebar(), /*#__PURE__*/_react.default.createElement(_content.default, null, props.content)), AppFooter())); |
| 647 | 2251 | } |
| @@ -733,9 +2337,10 @@ | ||
| 733 | 2337 | value: true |
| 734 | 2338 | })); |
| 735 | 2339 | exports.CollapseContext = void 0; |
| 736 | 2340 | var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react")); |
| 737 | -var CollapseContext = exports.CollapseContext = _react.default.createContext(); | |
| 2341 | +var CollapseContext = _react.default.createContext(); | |
| 2342 | +exports.CollapseContext = CollapseContext; | |
| 738 | 2343 | |
| 739 | 2344 | /***/ }), |
| 740 | 2345 | |
| 741 | 2346 | /***/ "../app/assets/js/molecules/collapse-toggle.js": |
| @@ -757,9 +2362,10 @@ | ||
| 757 | 2362 | var _react = _interopRequireWildcard(__webpack_require__(/*! react */ "react")); |
| 758 | 2363 | var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "../node_modules/@babel/runtime/helpers/defineProperty.js")); |
| 759 | 2364 | var _utils = __webpack_require__(/*! elementor-app/utils/utils.js */ "../app/assets/js/utils/utils.js"); |
| 760 | 2365 | var _collapseContext = __webpack_require__(/*! ./collapse-context */ "../app/assets/js/molecules/collapse-context.js"); |
| 761 | -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); } | |
| 2366 | +function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } | |
| 2367 | +function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } | |
| 762 | 2368 | function CollapseToggle(props) { |
| 763 | 2369 | var context = (0, _react.useContext)(_collapseContext.CollapseContext), |
| 764 | 2370 | style = { |
| 765 | 2371 | '--e-app-collapse-toggle-icon-spacing': (0, _utils.pxToRem)(props.iconSpacing) |
| @@ -818,9 +2424,10 @@ | ||
| 818 | 2424 | var _collapseContext = __webpack_require__(/*! ./collapse-context */ "../app/assets/js/molecules/collapse-context.js"); |
| 819 | 2425 | var _collapseToggle = _interopRequireDefault(__webpack_require__(/*! ./collapse-toggle */ "../app/assets/js/molecules/collapse-toggle.js")); |
| 820 | 2426 | var _collapseContent = _interopRequireDefault(__webpack_require__(/*! ./collapse-content */ "../app/assets/js/molecules/collapse-content.js")); |
| 821 | 2427 | __webpack_require__(/*! ./collapse.scss */ "../app/assets/js/molecules/collapse.scss"); |
| 822 | -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); } | |
| 2428 | +function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } | |
| 2429 | +function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } | |
| 823 | 2430 | function Collapse(props) { |
| 824 | 2431 | var _useState = (0, _react.useState)(props.isOpened), |
| 825 | 2432 | _useState2 = (0, _slicedToArray2.default)(_useState, 2), |
| 826 | 2433 | isOpened = _useState2[0], |
| @@ -835,15 +2442,13 @@ | ||
| 835 | 2442 | (0, _react.useEffect)(function () { |
| 836 | 2443 | if (props.isOpened !== isOpened) { |
| 837 | 2444 | setIsOpened(props.isOpened); |
| 838 | 2445 | } |
| 839 | - // eslint-disable-next-line react-hooks/exhaustive-deps | |
| 840 | 2446 | }, [props.isOpened]); |
| 841 | 2447 | (0, _react.useEffect)(function () { |
| 842 | 2448 | if (props.onChange) { |
| 843 | 2449 | props.onChange(isOpened); |
| 844 | 2450 | } |
| 845 | - // eslint-disable-next-line react-hooks/exhaustive-deps | |
| 846 | 2451 | }, [isOpened]); |
| 847 | 2452 | return /*#__PURE__*/_react.default.createElement(_collapseContext.CollapseContext.Provider, { |
| 848 | 2453 | value: { |
| 849 | 2454 | toggle: toggle |
| @@ -866,18 +2471,8 @@ | ||
| 866 | 2471 | Collapse.Content = _collapseContent.default; |
| 867 | 2472 | |
| 868 | 2473 | /***/ }), |
| 869 | 2474 | |
| 870 | -/***/ "../app/assets/js/molecules/collapse.scss": | |
| 871 | -/*!************************************************!*\ | |
| 872 | - !*** ../app/assets/js/molecules/collapse.scss ***! | |
| 873 | - \************************************************/ | |
| 874 | -/***/ (() => { | |
| 875 | - | |
| 876 | - | |
| 877 | - | |
| 878 | -/***/ }), | |
| 879 | - | |
| 880 | 2475 | /***/ "../app/assets/js/molecules/go-pro-button.js": |
| 881 | 2476 | /*!***************************************************!*\ |
| 882 | 2477 | !*** ../app/assets/js/molecules/go-pro-button.js ***! |
| 883 | 2478 | \***************************************************/ |
| @@ -941,9 +2536,10 @@ | ||
| 941 | 2536 | var _react = _interopRequireWildcard(__webpack_require__(/*! react */ "react")); |
| 942 | 2537 | var _button = _interopRequireDefault(__webpack_require__(/*! elementor-app/ui/molecules/button */ "../app/assets/js/ui/molecules/button.js")); |
| 943 | 2538 | var _utils = __webpack_require__(/*! elementor-app/utils/utils.js */ "../app/assets/js/utils/utils.js"); |
| 944 | 2539 | __webpack_require__(/*! ./upload-file.scss */ "../app/assets/js/molecules/upload-file.scss"); |
| 945 | -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); } | |
| 2540 | +function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } | |
| 2541 | +function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } | |
| 946 | 2542 | function UploadFile(props) { |
| 947 | 2543 | var fileInput = (0, _react.useRef)(null), |
| 948 | 2544 | baseClassName = 'e-app-upload-file', |
| 949 | 2545 | classes = [baseClassName, props.className]; |
| @@ -1037,18 +2633,8 @@ | ||
| 1037 | 2633 | }; |
| 1038 | 2634 | |
| 1039 | 2635 | /***/ }), |
| 1040 | 2636 | |
| 1041 | -/***/ "../app/assets/js/molecules/upload-file.scss": | |
| 1042 | -/*!***************************************************!*\ | |
| 1043 | - !*** ../app/assets/js/molecules/upload-file.scss ***! | |
| 1044 | - \***************************************************/ | |
| 1045 | -/***/ (() => { | |
| 1046 | - | |
| 1047 | - | |
| 1048 | - | |
| 1049 | -/***/ }), | |
| 1050 | - | |
| 1051 | 2637 | /***/ "../app/assets/js/organisms/drop-zone.js": |
| 1052 | 2638 | /*!***********************************************!*\ |
| 1053 | 2639 | !*** ../app/assets/js/organisms/drop-zone.js ***! |
| 1054 | 2640 | \***********************************************/ |
| @@ -1157,18 +2743,8 @@ | ||
| 1157 | 2743 | }; |
| 1158 | 2744 | |
| 1159 | 2745 | /***/ }), |
| 1160 | 2746 | |
| 1161 | -/***/ "../app/assets/js/organisms/drop-zone.scss": | |
| 1162 | -/*!*************************************************!*\ | |
| 1163 | - !*** ../app/assets/js/organisms/drop-zone.scss ***! | |
| 1164 | - \*************************************************/ | |
| 1165 | -/***/ (() => { | |
| 1166 | - | |
| 1167 | - | |
| 1168 | - | |
| 1169 | -/***/ }), | |
| 1170 | - | |
| 1171 | 2747 | /***/ "../app/assets/js/organisms/error-boundary.js": |
| 1172 | 2748 | /*!****************************************************!*\ |
| 1173 | 2749 | !*** ../app/assets/js/organisms/error-boundary.js ***! |
| 1174 | 2750 | \****************************************************/ |
| @@ -1186,30 +2762,31 @@ | ||
| 1186 | 2762 | exports["default"] = void 0; |
| 1187 | 2763 | var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react")); |
| 1188 | 2764 | var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); |
| 1189 | 2765 | var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); |
| 2766 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 1190 | 2767 | var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); |
| 1191 | 2768 | var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); |
| 1192 | -var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 1193 | 2769 | var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "../node_modules/@babel/runtime/helpers/defineProperty.js")); |
| 1194 | 2770 | var _dialog = _interopRequireDefault(__webpack_require__(/*! elementor-app/ui/dialog/dialog */ "../app/assets/js/ui/dialog/dialog.js")); |
| 1195 | -function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } | |
| 1196 | -function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } | |
| 2771 | +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } | |
| 2772 | +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } | |
| 1197 | 2773 | // In the current time there is no solution to use "getDerivedStateFromError" static method with functional component |
| 1198 | 2774 | // That is why this component is a class component. |
| 1199 | 2775 | // @link https://reactjs.org/docs/hooks-faq.html#do-hooks-cover-all-use-cases-for-classes |
| 1200 | -var ErrorBoundary = exports["default"] = /*#__PURE__*/function (_React$Component) { | |
| 2776 | +var ErrorBoundary = /*#__PURE__*/function (_React$Component) { | |
| 2777 | + (0, _inherits2.default)(ErrorBoundary, _React$Component); | |
| 2778 | + var _super = _createSuper(ErrorBoundary); | |
| 1201 | 2779 | function ErrorBoundary(props) { |
| 1202 | 2780 | var _this; |
| 1203 | 2781 | (0, _classCallCheck2.default)(this, ErrorBoundary); |
| 1204 | - _this = _callSuper(this, ErrorBoundary, [props]); | |
| 2782 | + _this = _super.call(this, props); | |
| 1205 | 2783 | _this.state = { |
| 1206 | 2784 | hasError: null |
| 1207 | 2785 | }; |
| 1208 | 2786 | return _this; |
| 1209 | 2787 | } |
| 1210 | - (0, _inherits2.default)(ErrorBoundary, _React$Component); | |
| 1211 | - return (0, _createClass2.default)(ErrorBoundary, [{ | |
| 2788 | + (0, _createClass2.default)(ErrorBoundary, [{ | |
| 1212 | 2789 | key: "goBack", |
| 1213 | 2790 | value: function goBack() { |
| 1214 | 2791 | // If the app was opened inside an iframe, it will close it, |
| 1215 | 2792 | // if not, it will redirect to the last location. |
| @@ -1242,9 +2819,11 @@ | ||
| 1242 | 2819 | hasError: true |
| 1243 | 2820 | }; |
| 1244 | 2821 | } |
| 1245 | 2822 | }]); |
| 2823 | + return ErrorBoundary; | |
| 1246 | 2824 | }(_react.default.Component); |
| 2825 | +exports["default"] = ErrorBoundary; | |
| 1247 | 2826 | (0, _defineProperty2.default)(ErrorBoundary, "propTypes", { |
| 1248 | 2827 | children: PropTypes.any, |
| 1249 | 2828 | title: PropTypes.string, |
| 1250 | 2829 | text: PropTypes.string, |
| @@ -1278,9 +2857,10 @@ | ||
| 1278 | 2857 | var _react = _interopRequireWildcard(__webpack_require__(/*! react */ "react")); |
| 1279 | 2858 | var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ "../node_modules/@babel/runtime/helpers/slicedToArray.js")); |
| 1280 | 2859 | var _dialog = _interopRequireDefault(__webpack_require__(/*! elementor-app/ui/dialog/dialog */ "../app/assets/js/ui/dialog/dialog.js")); |
| 1281 | 2860 | var _useAjax2 = _interopRequireDefault(__webpack_require__(/*! elementor-app/hooks/use-ajax */ "../app/assets/js/hooks/use-ajax.js")); |
| 1282 | -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); } | |
| 2861 | +function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } | |
| 2862 | +function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } | |
| 1283 | 2863 | function UnfilteredFilesDialog(props) { |
| 1284 | 2864 | var show = props.show, |
| 1285 | 2865 | setShow = props.setShow, |
| 1286 | 2866 | onReady = props.onReady, |
| @@ -1318,9 +2898,8 @@ | ||
| 1318 | 2898 | if (onEnable) { |
| 1319 | 2899 | onEnable(); |
| 1320 | 2900 | } |
| 1321 | 2901 | } |
| 1322 | - // eslint-disable-next-line react-hooks/exhaustive-deps | |
| 1323 | 2902 | }, [enableUnfilteredFiles]); |
| 1324 | 2903 | |
| 1325 | 2904 | // Enabling unfiltered files ajax status. |
| 1326 | 2905 | (0, _react.useEffect)(function () { |
| @@ -1332,15 +2911,13 @@ | ||
| 1332 | 2911 | setIsEnableError(true); |
| 1333 | 2912 | setShow(true); |
| 1334 | 2913 | break; |
| 1335 | 2914 | } |
| 1336 | - // eslint-disable-next-line react-hooks/exhaustive-deps | |
| 1337 | 2915 | }, [ajaxState]); |
| 1338 | 2916 | (0, _react.useEffect)(function () { |
| 1339 | 2917 | if (show && onLoad) { |
| 1340 | 2918 | onLoad(); |
| 1341 | 2919 | } |
| 1342 | - // eslint-disable-next-line react-hooks/exhaustive-deps | |
| 1343 | 2920 | }, [show]); |
| 1344 | 2921 | if (!show) { |
| 1345 | 2922 | return null; |
| 1346 | 2923 | } |
| @@ -1438,11 +3015,10 @@ | ||
| 1438 | 3015 | var _useAjax = _interopRequireDefault(__webpack_require__(/*! ./hooks/use-ajax */ "../app/assets/js/hooks/use-ajax.js")); |
| 1439 | 3016 | var _useAction = _interopRequireDefault(__webpack_require__(/*! ./hooks/use-action */ "../app/assets/js/hooks/use-action.js")); |
| 1440 | 3017 | var _usePageTitle = _interopRequireDefault(__webpack_require__(/*! ./hooks/use-page-title */ "../app/assets/js/hooks/use-page-title.js")); |
| 1441 | 3018 | var _useQueryParams = _interopRequireDefault(__webpack_require__(/*! ./hooks/use-query-params */ "../app/assets/js/hooks/use-query-params.js")); |
| 1442 | -var _useIntroduction = _interopRequireDefault(__webpack_require__(/*! ./hooks/use-introduction */ "../app/assets/js/hooks/use-introduction.js")); | |
| 1443 | -var _useConfirmAction = _interopRequireDefault(__webpack_require__(/*! ./hooks/use-confirm-action */ "../app/assets/js/hooks/use-confirm-action.js")); | |
| 1444 | -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); } | |
| 3019 | +function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } | |
| 3020 | +function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } | |
| 1445 | 3021 | // Alphabetical order. |
| 1446 | 3022 | // App UI |
| 1447 | 3023 | |
| 1448 | 3024 | // Components |
| @@ -1448,9 +3024,9 @@ | ||
| 1448 | 3024 | // Components |
| 1449 | 3025 | |
| 1450 | 3026 | // Hooks |
| 1451 | 3027 | |
| 1452 | -var appUi = exports.appUi = { | |
| 3028 | +var appUi = { | |
| 1453 | 3029 | AddNewButton: _addNewButton.default, |
| 1454 | 3030 | Box: _box.default, |
| 1455 | 3031 | Button: _button.default, |
| 1456 | 3032 | Card: _card.default, |
| @@ -1484,19 +3060,20 @@ | ||
| 1484 | 3060 | Text: _text.default, |
| 1485 | 3061 | UploadFile: _uploadFile.default, |
| 1486 | 3062 | InlineLink: _inlineLink.default |
| 1487 | 3063 | }; |
| 1488 | -var components = exports.components = { | |
| 3064 | +exports.appUi = appUi; | |
| 3065 | +var components = { | |
| 1489 | 3066 | UnfilteredFilesDialog: _unfilteredFilesDialog.default |
| 1490 | 3067 | }; |
| 1491 | -var hooks = exports.hooks = { | |
| 3068 | +exports.components = components; | |
| 3069 | +var hooks = { | |
| 1492 | 3070 | useAjax: _useAjax.default, |
| 1493 | 3071 | useAction: _useAction.default, |
| 1494 | 3072 | usePageTitle: _usePageTitle.default, |
| 1495 | - useQueryParams: _useQueryParams.default, | |
| 1496 | - useIntroduction: _useIntroduction.default, | |
| 1497 | - useConfirmAction: _useConfirmAction.default | |
| 3073 | + useQueryParams: _useQueryParams.default | |
| 1498 | 3074 | }; |
| 3075 | +exports.hooks = hooks; | |
| 1499 | 3076 | |
| 1500 | 3077 | /***/ }), |
| 1501 | 3078 | |
| 1502 | 3079 | /***/ "../app/assets/js/pages/not-found.js": |
| @@ -1559,9 +3136,9 @@ | ||
| 1559 | 3136 | */ |
| 1560 | 3137 | (0, _defineProperty2.default)(this, "routes", []); |
| 1561 | 3138 | (0, _defineProperty2.default)(this, "history", null); |
| 1562 | 3139 | } |
| 1563 | - return (0, _createClass2.default)(Router, [{ | |
| 3140 | + (0, _createClass2.default)(Router, [{ | |
| 1564 | 3141 | key: "addRoute", |
| 1565 | 3142 | value: |
| 1566 | 3143 | /** |
| 1567 | 3144 | * |
| @@ -1580,8 +3157,9 @@ | ||
| 1580 | 3157 | return React.createElement(route.component, props); |
| 1581 | 3158 | }); |
| 1582 | 3159 | } |
| 1583 | 3160 | }]); |
| 3161 | + return Router; | |
| 1584 | 3162 | }(); |
| 1585 | 3163 | var router = new Router(); |
| 1586 | 3164 | |
| 1587 | 3165 | // Make router available for use within packages. |
| @@ -1587,9 +3165,10 @@ | ||
| 1587 | 3165 | // Make router available for use within packages. |
| 1588 | 3166 | window.elementorAppPackages = { |
| 1589 | 3167 | router: router |
| 1590 | 3168 | }; |
| 1591 | -var _default = exports["default"] = router; | |
| 3169 | +var _default = router; | |
| 3170 | +exports["default"] = _default; | |
| 1592 | 3171 | |
| 1593 | 3172 | /***/ }), |
| 1594 | 3173 | |
| 1595 | 3174 | /***/ "../app/assets/js/ui/atoms/box.js": |
| @@ -1633,18 +3212,8 @@ | ||
| 1633 | 3212 | }; |
| 1634 | 3213 | |
| 1635 | 3214 | /***/ }), |
| 1636 | 3215 | |
| 1637 | -/***/ "../app/assets/js/ui/atoms/box.scss": | |
| 1638 | -/*!******************************************!*\ | |
| 1639 | - !*** ../app/assets/js/ui/atoms/box.scss ***! | |
| 1640 | - \******************************************/ | |
| 1641 | -/***/ (() => { | |
| 1642 | - | |
| 1643 | - | |
| 1644 | - | |
| 1645 | -/***/ }), | |
| 1646 | - | |
| 1647 | 3216 | /***/ "../app/assets/js/ui/atoms/checkbox.js": |
| 1648 | 3217 | /*!*********************************************!*\ |
| 1649 | 3218 | !*** ../app/assets/js/ui/atoms/checkbox.js ***! |
| 1650 | 3219 | \*********************************************/ |
| @@ -1668,10 +3237,9 @@ | ||
| 1668 | 3237 | rounded = _ref.rounded, |
| 1669 | 3238 | indeterminate = _ref.indeterminate, |
| 1670 | 3239 | error = _ref.error, |
| 1671 | 3240 | disabled = _ref.disabled, |
| 1672 | - onChange = _ref.onChange, | |
| 1673 | - id = _ref.id; | |
| 3241 | + onChange = _ref.onChange; | |
| 1674 | 3242 | var baseClassName = 'eps-checkbox', |
| 1675 | 3243 | classes = [baseClassName, className]; |
| 1676 | 3244 | if (rounded) { |
| 1677 | 3245 | classes.push(baseClassName + '--rounded'); |
| @@ -1686,10 +3254,9 @@ | ||
| 1686 | 3254 | className: (0, _utils.arrayToClassName)(classes), |
| 1687 | 3255 | type: "checkbox", |
| 1688 | 3256 | checked: checked, |
| 1689 | 3257 | disabled: disabled, |
| 1690 | - onChange: onChange, | |
| 1691 | - id: id | |
| 3258 | + onChange: onChange | |
| 1692 | 3259 | }); |
| 1693 | 3260 | } |
| 1694 | 3261 | Checkbox.propTypes = { |
| 1695 | 3262 | className: PropTypes.string, |
| @@ -1697,10 +3264,9 @@ | ||
| 1697 | 3264 | disabled: PropTypes.bool, |
| 1698 | 3265 | indeterminate: PropTypes.bool, |
| 1699 | 3266 | rounded: PropTypes.bool, |
| 1700 | 3267 | error: PropTypes.bool, |
| 1701 | - onChange: PropTypes.func, | |
| 1702 | - id: PropTypes.string | |
| 3268 | + onChange: PropTypes.func | |
| 1703 | 3269 | }; |
| 1704 | 3270 | Checkbox.defaultProps = { |
| 1705 | 3271 | className: '', |
| 1706 | 3272 | checked: null, |
| @@ -1711,18 +3277,8 @@ | ||
| 1711 | 3277 | }; |
| 1712 | 3278 | |
| 1713 | 3279 | /***/ }), |
| 1714 | 3280 | |
| 1715 | -/***/ "../app/assets/js/ui/atoms/checkbox.scss": | |
| 1716 | -/*!***********************************************!*\ | |
| 1717 | - !*** ../app/assets/js/ui/atoms/checkbox.scss ***! | |
| 1718 | - \***********************************************/ | |
| 1719 | -/***/ (() => { | |
| 1720 | - | |
| 1721 | - | |
| 1722 | - | |
| 1723 | -/***/ }), | |
| 1724 | - | |
| 1725 | 3281 | /***/ "../app/assets/js/ui/atoms/css-grid.js": |
| 1726 | 3282 | /*!*********************************************!*\ |
| 1727 | 3283 | !*** ../app/assets/js/ui/atoms/css-grid.js ***! |
| 1728 | 3284 | \*********************************************/ |
| @@ -1766,18 +3322,8 @@ | ||
| 1766 | 3322 | }; |
| 1767 | 3323 | |
| 1768 | 3324 | /***/ }), |
| 1769 | 3325 | |
| 1770 | -/***/ "../app/assets/js/ui/atoms/css-grid.scss": | |
| 1771 | -/*!***********************************************!*\ | |
| 1772 | - !*** ../app/assets/js/ui/atoms/css-grid.scss ***! | |
| 1773 | - \***********************************************/ | |
| 1774 | -/***/ (() => { | |
| 1775 | - | |
| 1776 | - | |
| 1777 | - | |
| 1778 | -/***/ }), | |
| 1779 | - | |
| 1780 | 3326 | /***/ "../app/assets/js/ui/atoms/drag-drop.js": |
| 1781 | 3327 | /*!**********************************************!*\ |
| 1782 | 3328 | !*** ../app/assets/js/ui/atoms/drag-drop.js ***! |
| 1783 | 3329 | \**********************************************/ |
| @@ -1797,9 +3343,10 @@ | ||
| 1797 | 3343 | var _extends2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/extends */ "../node_modules/@babel/runtime/helpers/extends.js")); |
| 1798 | 3344 | var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ "../node_modules/@babel/runtime/helpers/slicedToArray.js")); |
| 1799 | 3345 | var _utils = __webpack_require__(/*! ../../utils/utils */ "../app/assets/js/utils/utils.js"); |
| 1800 | 3346 | __webpack_require__(/*! ./drag-drop.scss */ "../app/assets/js/ui/atoms/drag-drop.scss"); |
| 1801 | -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); } | |
| 3347 | +function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } | |
| 3348 | +function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } | |
| 1802 | 3349 | function DragDrop(props) { |
| 1803 | 3350 | var _useState = (0, _react.useState)(false), |
| 1804 | 3351 | _useState2 = (0, _slicedToArray2.default)(_useState, 2), |
| 1805 | 3352 | isDragOver = _useState2[0], |
| @@ -1856,18 +3403,8 @@ | ||
| 1856 | 3403 | }; |
| 1857 | 3404 | |
| 1858 | 3405 | /***/ }), |
| 1859 | 3406 | |
| 1860 | -/***/ "../app/assets/js/ui/atoms/drag-drop.scss": | |
| 1861 | -/*!************************************************!*\ | |
| 1862 | - !*** ../app/assets/js/ui/atoms/drag-drop.scss ***! | |
| 1863 | - \************************************************/ | |
| 1864 | -/***/ (() => { | |
| 1865 | - | |
| 1866 | - | |
| 1867 | - | |
| 1868 | -/***/ }), | |
| 1869 | - | |
| 1870 | 3407 | /***/ "../app/assets/js/ui/atoms/heading.js": |
| 1871 | 3408 | /*!********************************************!*\ |
| 1872 | 3409 | !*** ../app/assets/js/ui/atoms/heading.js ***! |
| 1873 | 3410 | \********************************************/ |
| @@ -1920,26 +3457,18 @@ | ||
| 1920 | 3457 | /* provided dependency */ var PropTypes = __webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js"); |
| 1921 | 3458 | |
| 1922 | 3459 | |
| 1923 | 3460 | var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); |
| 1924 | -var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ "../node_modules/@babel/runtime/helpers/typeof.js"); | |
| 1925 | 3461 | Object.defineProperty(exports, "__esModule", ({ |
| 1926 | 3462 | value: true |
| 1927 | 3463 | })); |
| 1928 | -exports["default"] = void 0; | |
| 1929 | -var _react = _interopRequireWildcard(__webpack_require__(/*! react */ "react")); | |
| 1930 | -var _extends2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/extends */ "../node_modules/@babel/runtime/helpers/extends.js")); | |
| 1931 | -var _objectWithoutProperties2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/objectWithoutProperties */ "../node_modules/@babel/runtime/helpers/objectWithoutProperties.js")); | |
| 1932 | -var _excluded = ["className"]; | |
| 1933 | -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); } | |
| 1934 | -var Icon = (0, _react.forwardRef)(function (props, ref) { | |
| 1935 | - var className = props.className, | |
| 1936 | - rest = (0, _objectWithoutProperties2.default)(props, _excluded); | |
| 1937 | - return /*#__PURE__*/_react.default.createElement("i", (0, _extends2.default)({ | |
| 1938 | - ref: ref, | |
| 1939 | - className: "eps-icon ".concat(className) | |
| 1940 | - }, rest)); | |
| 1941 | -}); | |
| 3464 | +exports["default"] = Icon; | |
| 3465 | +var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react")); | |
| 3466 | +function Icon(props) { | |
| 3467 | + return /*#__PURE__*/_react.default.createElement("i", { | |
| 3468 | + className: "eps-icon ".concat(props.className) | |
| 3469 | + }); | |
| 3470 | +} | |
| 1942 | 3471 | Icon.propTypes = { |
| 1943 | 3472 | className: PropTypes.string.isRequired |
| 1944 | 3473 | }; |
| 1945 | 3474 | Icon.defaultProps = { |
| @@ -1944,9 +3473,8 @@ | ||
| 1944 | 3473 | }; |
| 1945 | 3474 | Icon.defaultProps = { |
| 1946 | 3475 | className: '' |
| 1947 | 3476 | }; |
| 1948 | -var _default = exports["default"] = Icon; | |
| 1949 | 3477 | |
| 1950 | 3478 | /***/ }), |
| 1951 | 3479 | |
| 1952 | 3480 | /***/ "../app/assets/js/ui/atoms/select.js": |
| @@ -2271,10 +3799,9 @@ | ||
| 2271 | 3799 | var image = /*#__PURE__*/_react.default.createElement("img", { |
| 2272 | 3800 | src: props.src, |
| 2273 | 3801 | alt: props.alt, |
| 2274 | 3802 | className: "eps-card__image", |
| 2275 | - loading: "lazy", | |
| 2276 | - onError: props.onError | |
| 3803 | + loading: "lazy" | |
| 2277 | 3804 | }); |
| 2278 | 3805 | return /*#__PURE__*/_react.default.createElement("figure", { |
| 2279 | 3806 | className: "eps-card__figure ".concat(props.className) |
| 2280 | 3807 | }, image, props.children); |
| @@ -2282,14 +3809,12 @@ | ||
| 2282 | 3809 | CardImage.propTypes = { |
| 2283 | 3810 | className: PropTypes.string, |
| 2284 | 3811 | src: PropTypes.string.isRequired, |
| 2285 | 3812 | alt: PropTypes.string.isRequired, |
| 2286 | - children: PropTypes.any, | |
| 2287 | - onError: PropTypes.func | |
| 3813 | + children: PropTypes.any | |
| 2288 | 3814 | }; |
| 2289 | 3815 | CardImage.defaultProps = { |
| 2290 | - className: '', | |
| 2291 | - onError: function onError() {} | |
| 3816 | + className: '' | |
| 2292 | 3817 | }; |
| 2293 | 3818 | |
| 2294 | 3819 | /***/ }), |
| 2295 | 3820 | |
| @@ -2370,22 +3895,13 @@ | ||
| 2370 | 3895 | Card.Overlay = _cardOverlay.default; |
| 2371 | 3896 | Card.Footer = _cardFooter.default; |
| 2372 | 3897 | Card.Headline = _cardHeadline.default; |
| 2373 | 3898 | Card.Divider = _cardDivider.default; |
| 2374 | -var _default = exports["default"] = Card; | |
| 3899 | +var _default = Card; | |
| 3900 | +exports["default"] = _default; | |
| 2375 | 3901 | |
| 2376 | 3902 | /***/ }), |
| 2377 | 3903 | |
| 2378 | -/***/ "../app/assets/js/ui/card/card.scss": | |
| 2379 | -/*!******************************************!*\ | |
| 2380 | - !*** ../app/assets/js/ui/card/card.scss ***! | |
| 2381 | - \******************************************/ | |
| 2382 | -/***/ (() => { | |
| 2383 | - | |
| 2384 | - | |
| 2385 | - | |
| 2386 | -/***/ }), | |
| 2387 | - | |
| 2388 | 3904 | /***/ "../app/assets/js/ui/dialog/dialog-actions.js": |
| 2389 | 3905 | /*!****************************************************!*\ |
| 2390 | 3906 | !*** ../app/assets/js/ui/dialog/dialog-actions.js ***! |
| 2391 | 3907 | \****************************************************/ |
| @@ -2430,10 +3946,10 @@ | ||
| 2430 | 3946 | var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react")); |
| 2431 | 3947 | var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "../node_modules/@babel/runtime/helpers/defineProperty.js")); |
| 2432 | 3948 | var _extends2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/extends */ "../node_modules/@babel/runtime/helpers/extends.js")); |
| 2433 | 3949 | var _button = _interopRequireDefault(__webpack_require__(/*! elementor-app/ui/molecules/button */ "../app/assets/js/ui/molecules/button.js")); |
| 2434 | -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } | |
| 2435 | -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } | |
| 3950 | +function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; } | |
| 3951 | +function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; } | |
| 2436 | 3952 | function DialogButton(props) { |
| 2437 | 3953 | return /*#__PURE__*/_react.default.createElement(_button.default, (0, _extends2.default)({}, props, { |
| 2438 | 3954 | className: "eps-dialog__button ".concat(props.className) |
| 2439 | 3955 | })); |
| @@ -2493,10 +4009,10 @@ | ||
| 2493 | 4009 | var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react")); |
| 2494 | 4010 | var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "../node_modules/@babel/runtime/helpers/defineProperty.js")); |
| 2495 | 4011 | var _extends2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/extends */ "../node_modules/@babel/runtime/helpers/extends.js")); |
| 2496 | 4012 | var _text = _interopRequireDefault(__webpack_require__(/*! elementor-app/ui/atoms/text */ "../app/assets/js/ui/atoms/text.js")); |
| 2497 | -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } | |
| 2498 | -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } | |
| 4013 | +function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; } | |
| 4014 | +function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; } | |
| 2499 | 4015 | function DialogText(props) { |
| 2500 | 4016 | return /*#__PURE__*/_react.default.createElement(_text.default, (0, _extends2.default)({ |
| 2501 | 4017 | variant: "xs" |
| 2502 | 4018 | }, props, { |
| @@ -2529,10 +4045,10 @@ | ||
| 2529 | 4045 | var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react")); |
| 2530 | 4046 | var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "../node_modules/@babel/runtime/helpers/defineProperty.js")); |
| 2531 | 4047 | var _extends2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/extends */ "../node_modules/@babel/runtime/helpers/extends.js")); |
| 2532 | 4048 | var _heading = _interopRequireDefault(__webpack_require__(/*! elementor-app/ui/atoms/heading */ "../app/assets/js/ui/atoms/heading.js")); |
| 2533 | -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } | |
| 2534 | -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } | |
| 4049 | +function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; } | |
| 4050 | +function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; } | |
| 2535 | 4051 | function DialogTitle(props) { |
| 2536 | 4052 | return /*#__PURE__*/_react.default.createElement(_heading.default, (0, _extends2.default)({}, props, { |
| 2537 | 4053 | className: "eps-dialog__title ".concat(props.className) |
| 2538 | 4054 | })); |
| @@ -2667,18 +4183,8 @@ | ||
| 2667 | 4183 | Dialog.Button = _dialogButton.default; |
| 2668 | 4184 | |
| 2669 | 4185 | /***/ }), |
| 2670 | 4186 | |
| 2671 | -/***/ "../app/assets/js/ui/dialog/dialog.scss": | |
| 2672 | -/*!**********************************************!*\ | |
| 2673 | - !*** ../app/assets/js/ui/dialog/dialog.scss ***! | |
| 2674 | - \**********************************************/ | |
| 2675 | -/***/ (() => { | |
| 2676 | - | |
| 2677 | - | |
| 2678 | - | |
| 2679 | -/***/ }), | |
| 2680 | - | |
| 2681 | 4187 | /***/ "../app/assets/js/ui/grid/grid.js": |
| 2682 | 4188 | /*!****************************************!*\ |
| 2683 | 4189 | !*** ../app/assets/js/ui/grid/grid.js ***! |
| 2684 | 4190 | \****************************************/ |
| @@ -2776,18 +4282,8 @@ | ||
| 2776 | 4282 | }; |
| 2777 | 4283 | |
| 2778 | 4284 | /***/ }), |
| 2779 | 4285 | |
| 2780 | -/***/ "../app/assets/js/ui/grid/grid.scss": | |
| 2781 | -/*!******************************************!*\ | |
| 2782 | - !*** ../app/assets/js/ui/grid/grid.scss ***! | |
| 2783 | - \******************************************/ | |
| 2784 | -/***/ (() => { | |
| 2785 | - | |
| 2786 | - | |
| 2787 | - | |
| 2788 | -/***/ }), | |
| 2789 | - | |
| 2790 | 4286 | /***/ "../app/assets/js/ui/menu/menu-item.js": |
| 2791 | 4287 | /*!*********************************************!*\ |
| 2792 | 4288 | !*** ../app/assets/js/ui/menu/menu-item.js ***! |
| 2793 | 4289 | \*********************************************/ |
| @@ -2802,48 +4298,40 @@ | ||
| 2802 | 4298 | })); |
| 2803 | 4299 | exports["default"] = void 0; |
| 2804 | 4300 | var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); |
| 2805 | 4301 | var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); |
| 4302 | +var _get2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/get */ "../node_modules/@babel/runtime/helpers/get.js")); | |
| 4303 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 2806 | 4304 | var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); |
| 2807 | 4305 | var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); |
| 2808 | -var _get2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/get */ "../node_modules/@babel/runtime/helpers/get.js")); | |
| 2809 | -var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 2810 | 4306 | __webpack_require__(/*! ./menu-item.scss */ "../app/assets/js/ui/menu/menu-item.scss"); |
| 2811 | 4307 | var _button = _interopRequireDefault(__webpack_require__(/*! ../molecules/button */ "../app/assets/js/ui/molecules/button.js")); |
| 2812 | -function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } | |
| 2813 | -function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } | |
| 2814 | -function _superPropGet(t, o, e, r) { var p = (0, _get2.default)((0, _getPrototypeOf2.default)(1 & r ? t.prototype : t), o, e); return 2 & r && "function" == typeof p ? function (t) { return p.apply(e, t); } : p; } | |
| 2815 | -var SideMenuItem = exports["default"] = /*#__PURE__*/function (_BaseButton) { | |
| 4308 | +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } | |
| 4309 | +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } | |
| 4310 | +var SideMenuItem = /*#__PURE__*/function (_BaseButton) { | |
| 4311 | + (0, _inherits2.default)(SideMenuItem, _BaseButton); | |
| 4312 | + var _super = _createSuper(SideMenuItem); | |
| 2816 | 4313 | function SideMenuItem() { |
| 2817 | 4314 | (0, _classCallCheck2.default)(this, SideMenuItem); |
| 2818 | - return _callSuper(this, SideMenuItem, arguments); | |
| 4315 | + return _super.apply(this, arguments); | |
| 2819 | 4316 | } |
| 2820 | - (0, _inherits2.default)(SideMenuItem, _BaseButton); | |
| 2821 | - return (0, _createClass2.default)(SideMenuItem, [{ | |
| 4317 | + (0, _createClass2.default)(SideMenuItem, [{ | |
| 2822 | 4318 | key: "getCssId", |
| 2823 | 4319 | value: function getCssId() { |
| 2824 | - return "eps-menu-item-" + _superPropGet(SideMenuItem, "getCssId", this, 3)([]); | |
| 4320 | + return "eps-menu-item-" + (0, _get2.default)((0, _getPrototypeOf2.default)(SideMenuItem.prototype), "getCssId", this).call(this); | |
| 2825 | 4321 | } |
| 2826 | 4322 | }, { |
| 2827 | 4323 | key: "getClassName", |
| 2828 | 4324 | value: function getClassName() { |
| 2829 | - return "eps-menu-item " + _superPropGet(SideMenuItem, "getClassName", this, 3)([]); | |
| 4325 | + return "eps-menu-item " + (0, _get2.default)((0, _getPrototypeOf2.default)(SideMenuItem.prototype), "getClassName", this).call(this); | |
| 2830 | 4326 | } |
| 2831 | 4327 | }]); |
| 4328 | + return SideMenuItem; | |
| 2832 | 4329 | }(_button.default); |
| 4330 | +exports["default"] = SideMenuItem; | |
| 2833 | 4331 | |
| 2834 | 4332 | /***/ }), |
| 2835 | 4333 | |
| 2836 | -/***/ "../app/assets/js/ui/menu/menu-item.scss": | |
| 2837 | -/*!***********************************************!*\ | |
| 2838 | - !*** ../app/assets/js/ui/menu/menu-item.scss ***! | |
| 2839 | - \***********************************************/ | |
| 2840 | -/***/ (() => { | |
| 2841 | - | |
| 2842 | - | |
| 2843 | - | |
| 2844 | -/***/ }), | |
| 2845 | - | |
| 2846 | 4334 | /***/ "../app/assets/js/ui/menu/menu.js": |
| 2847 | 4335 | /*!****************************************!*\ |
| 2848 | 4336 | !*** ../app/assets/js/ui/menu/menu.js ***! |
| 2849 | 4337 | \****************************************/ |
| @@ -2912,18 +4400,8 @@ | ||
| 2912 | 4400 | }; |
| 2913 | 4401 | |
| 2914 | 4402 | /***/ }), |
| 2915 | 4403 | |
| 2916 | -/***/ "../app/assets/js/ui/menu/menu.scss": | |
| 2917 | -/*!******************************************!*\ | |
| 2918 | - !*** ../app/assets/js/ui/menu/menu.scss ***! | |
| 2919 | - \******************************************/ | |
| 2920 | -/***/ (() => { | |
| 2921 | - | |
| 2922 | - | |
| 2923 | - | |
| 2924 | -/***/ }), | |
| 2925 | - | |
| 2926 | 4404 | /***/ "../app/assets/js/ui/modal/modal-section.js": |
| 2927 | 4405 | /*!**************************************************!*\ |
| 2928 | 4406 | !*** ../app/assets/js/ui/modal/modal-section.js ***! |
| 2929 | 4407 | \**************************************************/ |
| @@ -3026,11 +4504,12 @@ | ||
| 3026 | 4504 | var _text = _interopRequireDefault(__webpack_require__(/*! elementor-app/ui/atoms/text */ "../app/assets/js/ui/atoms/text.js")); |
| 3027 | 4505 | var _modalSection = _interopRequireDefault(__webpack_require__(/*! ./modal-section */ "../app/assets/js/ui/modal/modal-section.js")); |
| 3028 | 4506 | var _modalTip = _interopRequireDefault(__webpack_require__(/*! ./modal-tip */ "../app/assets/js/ui/modal/modal-tip.js")); |
| 3029 | 4507 | __webpack_require__(/*! ./modal.scss */ "../app/assets/js/ui/modal/modal.scss"); |
| 3030 | -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); } | |
| 3031 | -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } | |
| 3032 | -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } | |
| 4508 | +function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } | |
| 4509 | +function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } | |
| 4510 | +function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; } | |
| 4511 | +function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; } | |
| 3033 | 4512 | function ModalProvider(props) { |
| 3034 | 4513 | var _useState = (0, _react.useState)(props.show), |
| 3035 | 4514 | _useState2 = (0, _slicedToArray2.default)(_useState, 2), |
| 3036 | 4515 | show = _useState2[0], |
| @@ -3078,9 +4557,9 @@ | ||
| 3078 | 4557 | show: false |
| 3079 | 4558 | }; |
| 3080 | 4559 | ModalProvider.Section = _modalSection.default; |
| 3081 | 4560 | ModalProvider.Tip = _modalTip.default; |
| 3082 | -var Modal = exports.Modal = function Modal(props) { | |
| 4561 | +var Modal = function Modal(props) { | |
| 3083 | 4562 | var modalRef = (0, _react.useRef)(null), |
| 3084 | 4563 | closeRef = (0, _react.useRef)(null), |
| 3085 | 4564 | closeModal = function closeModal(e) { |
| 3086 | 4565 | var node = modalRef.current, |
| @@ -3099,14 +4578,13 @@ | ||
| 3099 | 4578 | (0, _react.useEffect)(function () { |
| 3100 | 4579 | if (props.show) { |
| 3101 | 4580 | var _props$onOpen; |
| 3102 | 4581 | document.addEventListener('mousedown', closeModal, false); |
| 3103 | - (_props$onOpen = props.onOpen) === null || _props$onOpen === void 0 || _props$onOpen.call(props); | |
| 4582 | + (_props$onOpen = props.onOpen) === null || _props$onOpen === void 0 ? void 0 : _props$onOpen.call(props); | |
| 3104 | 4583 | } |
| 3105 | 4584 | return function () { |
| 3106 | 4585 | return document.removeEventListener('mousedown', closeModal, false); |
| 3107 | 4586 | }; |
| 3108 | - // eslint-disable-next-line react-hooks/exhaustive-deps | |
| 3109 | 4587 | }, [props.show]); |
| 3110 | 4588 | if (!props.show) { |
| 3111 | 4589 | return null; |
| 3112 | 4590 | } |
| @@ -3145,8 +4623,9 @@ | ||
| 3145 | 4623 | className: "eps-modal__body" |
| 3146 | 4624 | }, props.children))) |
| 3147 | 4625 | ); |
| 3148 | 4626 | }; |
| 4627 | +exports.Modal = Modal; | |
| 3149 | 4628 | Modal.propTypes = { |
| 3150 | 4629 | className: PropTypes.string, |
| 3151 | 4630 | children: PropTypes.any.isRequired, |
| 3152 | 4631 | title: PropTypes.string.isRequired, |
| @@ -3164,18 +4643,8 @@ | ||
| 3164 | 4643 | }; |
| 3165 | 4644 | |
| 3166 | 4645 | /***/ }), |
| 3167 | 4646 | |
| 3168 | -/***/ "../app/assets/js/ui/modal/modal.scss": | |
| 3169 | -/*!********************************************!*\ | |
| 3170 | - !*** ../app/assets/js/ui/modal/modal.scss ***! | |
| 3171 | - \********************************************/ | |
| 3172 | -/***/ (() => { | |
| 3173 | - | |
| 3174 | - | |
| 3175 | - | |
| 3176 | -/***/ }), | |
| 3177 | - | |
| 3178 | 4647 | /***/ "../app/assets/js/ui/molecules/add-new-button.js": |
| 3179 | 4648 | /*!*******************************************************!*\ |
| 3180 | 4649 | !*** ../app/assets/js/ui/molecules/add-new-button.js ***! |
| 3181 | 4650 | \*******************************************************/ |
| @@ -3192,25 +4661,26 @@ | ||
| 3192 | 4661 | })); |
| 3193 | 4662 | exports["default"] = void 0; |
| 3194 | 4663 | var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); |
| 3195 | 4664 | var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); |
| 4665 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 3196 | 4666 | var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); |
| 3197 | 4667 | var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); |
| 3198 | -var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 3199 | 4668 | var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "../node_modules/@babel/runtime/helpers/defineProperty.js")); |
| 3200 | 4669 | var _button = _interopRequireDefault(__webpack_require__(/*! ./button */ "../app/assets/js/ui/molecules/button.js")); |
| 3201 | 4670 | __webpack_require__(/*! ./add-new-button.scss */ "../app/assets/js/ui/molecules/add-new-button.scss"); |
| 3202 | -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } | |
| 3203 | -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } | |
| 3204 | -function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } | |
| 3205 | -function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } | |
| 3206 | -var AddNewButton = exports["default"] = /*#__PURE__*/function (_Button) { | |
| 4671 | +function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; } | |
| 4672 | +function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; } | |
| 4673 | +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } | |
| 4674 | +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } | |
| 4675 | +var AddNewButton = /*#__PURE__*/function (_Button) { | |
| 4676 | + (0, _inherits2.default)(AddNewButton, _Button); | |
| 4677 | + var _super = _createSuper(AddNewButton); | |
| 3207 | 4678 | function AddNewButton() { |
| 3208 | 4679 | (0, _classCallCheck2.default)(this, AddNewButton); |
| 3209 | - return _callSuper(this, AddNewButton, arguments); | |
| 4680 | + return _super.apply(this, arguments); | |
| 3210 | 4681 | } |
| 3211 | - (0, _inherits2.default)(AddNewButton, _Button); | |
| 3212 | - return (0, _createClass2.default)(AddNewButton, [{ | |
| 4682 | + (0, _createClass2.default)(AddNewButton, [{ | |
| 3213 | 4683 | key: "getClassName", |
| 3214 | 4684 | value: function getClassName() { |
| 3215 | 4685 | var className = this.props.className; |
| 3216 | 4686 | if (this.props.size) { |
| @@ -3218,9 +4688,11 @@ | ||
| 3218 | 4688 | } |
| 3219 | 4689 | return className; |
| 3220 | 4690 | } |
| 3221 | 4691 | }]); |
| 4692 | + return AddNewButton; | |
| 3222 | 4693 | }(_button.default); |
| 4694 | +exports["default"] = AddNewButton; | |
| 3223 | 4695 | (0, _defineProperty2.default)(AddNewButton, "propTypes", _objectSpread(_objectSpread({}, _button.default.propTypes), {}, { |
| 3224 | 4696 | text: PropTypes.string, |
| 3225 | 4697 | size: PropTypes.string |
| 3226 | 4698 | })); |
| @@ -3225,24 +4697,14 @@ | ||
| 3225 | 4697 | size: PropTypes.string |
| 3226 | 4698 | })); |
| 3227 | 4699 | (0, _defineProperty2.default)(AddNewButton, "defaultProps", _objectSpread(_objectSpread({}, _button.default.defaultProps), {}, { |
| 3228 | 4700 | className: 'eps-add-new-button', |
| 3229 | - text: __('Add New', 'elementor'), | |
| 4701 | + text: __('Add New', 'elementor-pro'), | |
| 3230 | 4702 | icon: 'eicon-plus' |
| 3231 | 4703 | })); |
| 3232 | 4704 | |
| 3233 | 4705 | /***/ }), |
| 3234 | 4706 | |
| 3235 | -/***/ "../app/assets/js/ui/molecules/add-new-button.scss": | |
| 3236 | -/*!*********************************************************!*\ | |
| 3237 | - !*** ../app/assets/js/ui/molecules/add-new-button.scss ***! | |
| 3238 | - \*********************************************************/ | |
| 3239 | -/***/ (() => { | |
| 3240 | - | |
| 3241 | - | |
| 3242 | - | |
| 3243 | -/***/ }), | |
| 3244 | - | |
| 3245 | 4707 | /***/ "../app/assets/js/ui/molecules/button.js": |
| 3246 | 4708 | /*!***********************************************!*\ |
| 3247 | 4709 | !*** ../app/assets/js/ui/molecules/button.js ***! |
| 3248 | 4710 | \***********************************************/ |
| @@ -3260,25 +4722,25 @@ | ||
| 3260 | 4722 | var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react")); |
| 3261 | 4723 | var _extends2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/extends */ "../node_modules/@babel/runtime/helpers/extends.js")); |
| 3262 | 4724 | var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); |
| 3263 | 4725 | var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); |
| 4726 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 3264 | 4727 | var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); |
| 3265 | 4728 | var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); |
| 3266 | -var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 3267 | 4729 | var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "../node_modules/@babel/runtime/helpers/defineProperty.js")); |
| 3268 | 4730 | var _router = __webpack_require__(/*! @reach/router */ "../node_modules/@reach/router/es/index.js"); |
| 3269 | 4731 | var _router2 = _interopRequireDefault(__webpack_require__(/*! @elementor/router */ "@elementor/router")); |
| 3270 | -var _popoverDialog = _interopRequireDefault(__webpack_require__(/*! ../popover-dialog/popover-dialog */ "../app/assets/js/ui/popover-dialog/popover-dialog.js")); | |
| 3271 | 4732 | var _icon = _interopRequireDefault(__webpack_require__(/*! elementor-app/ui/atoms/icon */ "../app/assets/js/ui/atoms/icon.js")); |
| 3272 | -function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } | |
| 3273 | -function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } | |
| 3274 | -var Button = exports["default"] = /*#__PURE__*/function (_React$Component) { | |
| 4733 | +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } | |
| 4734 | +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } | |
| 4735 | +var Button = /*#__PURE__*/function (_React$Component) { | |
| 4736 | + (0, _inherits2.default)(Button, _React$Component); | |
| 4737 | + var _super = _createSuper(Button); | |
| 3275 | 4738 | function Button() { |
| 3276 | 4739 | (0, _classCallCheck2.default)(this, Button); |
| 3277 | - return _callSuper(this, Button, arguments); | |
| 4740 | + return _super.apply(this, arguments); | |
| 3278 | 4741 | } |
| 3279 | - (0, _inherits2.default)(Button, _React$Component); | |
| 3280 | - return (0, _createClass2.default)(Button, [{ | |
| 4742 | + (0, _createClass2.default)(Button, [{ | |
| 3281 | 4743 | key: "getCssId", |
| 3282 | 4744 | value: function getCssId() { |
| 3283 | 4745 | return this.props.id; |
| 3284 | 4746 | } |
| @@ -3308,14 +4770,13 @@ | ||
| 3308 | 4770 | }, { |
| 3309 | 4771 | key: "getIcon", |
| 3310 | 4772 | value: function getIcon() { |
| 3311 | 4773 | if (this.props.icon) { |
| 3312 | - var iconRef = _react.default.createRef(null); | |
| 3313 | 4774 | var tooltip = this.props.tooltip || this.props.text; |
| 3314 | 4775 | var icon = /*#__PURE__*/_react.default.createElement(_icon.default, { |
| 3315 | - ref: iconRef, | |
| 3316 | 4776 | className: this.props.icon, |
| 3317 | - "aria-hidden": "true" | |
| 4777 | + "aria-hidden": "true", | |
| 4778 | + title: tooltip | |
| 3318 | 4779 | }); |
| 3319 | 4780 | var screenReaderText = ''; |
| 3320 | 4781 | if (this.props.hideText) { |
| 3321 | 4782 | screenReaderText = /*#__PURE__*/_react.default.createElement("span", { |
| @@ -3321,12 +4782,9 @@ | ||
| 3321 | 4782 | screenReaderText = /*#__PURE__*/_react.default.createElement("span", { |
| 3322 | 4783 | className: "sr-only" |
| 3323 | 4784 | }, tooltip); |
| 3324 | 4785 | } |
| 3325 | - return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, icon, screenReaderText, this.props.tooltip && /*#__PURE__*/_react.default.createElement(_popoverDialog.default, { | |
| 3326 | - targetRef: iconRef, | |
| 3327 | - wrapperClass: "e-kit-library__tooltip" | |
| 3328 | - }, this.props.tooltip)); | |
| 4786 | + return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, icon, screenReaderText); | |
| 3329 | 4787 | } |
| 3330 | 4788 | return ''; |
| 3331 | 4789 | } |
| 3332 | 4790 | }, { |
| @@ -3383,9 +4841,11 @@ | ||
| 3383 | 4841 | } |
| 3384 | 4842 | return /*#__PURE__*/_react.default.createElement("div", attributes, buttonContent); |
| 3385 | 4843 | } |
| 3386 | 4844 | }]); |
| 4845 | + return Button; | |
| 3387 | 4846 | }(_react.default.Component); |
| 4847 | +exports["default"] = Button; | |
| 3388 | 4848 | (0, _defineProperty2.default)(Button, "propTypes", { |
| 3389 | 4849 | text: PropTypes.string.isRequired, |
| 3390 | 4850 | hideText: PropTypes.bool, |
| 3391 | 4851 | icon: PropTypes.string, |
| @@ -3486,18 +4946,8 @@ | ||
| 3486 | 4946 | }; |
| 3487 | 4947 | |
| 3488 | 4948 | /***/ }), |
| 3489 | 4949 | |
| 3490 | -/***/ "../app/assets/js/ui/molecules/inline-link.scss": | |
| 3491 | -/*!******************************************************!*\ | |
| 3492 | - !*** ../app/assets/js/ui/molecules/inline-link.scss ***! | |
| 3493 | - \******************************************************/ | |
| 3494 | -/***/ (() => { | |
| 3495 | - | |
| 3496 | - | |
| 3497 | - | |
| 3498 | -/***/ }), | |
| 3499 | - | |
| 3500 | 4950 | /***/ "../app/assets/js/ui/molecules/list-item.js": |
| 3501 | 4951 | /*!**************************************************!*\ |
| 3502 | 4952 | !*** ../app/assets/js/ui/molecules/list-item.js ***! |
| 3503 | 4953 | \**************************************************/ |
| @@ -3590,18 +5040,8 @@ | ||
| 3590 | 5040 | List.Item = _listItem.default; |
| 3591 | 5041 | |
| 3592 | 5042 | /***/ }), |
| 3593 | 5043 | |
| 3594 | -/***/ "../app/assets/js/ui/molecules/list.scss": | |
| 3595 | -/*!***********************************************!*\ | |
| 3596 | - !*** ../app/assets/js/ui/molecules/list.scss ***! | |
| 3597 | - \***********************************************/ | |
| 3598 | -/***/ (() => { | |
| 3599 | - | |
| 3600 | - | |
| 3601 | - | |
| 3602 | -/***/ }), | |
| 3603 | - | |
| 3604 | 5044 | /***/ "../app/assets/js/ui/molecules/notice.js": |
| 3605 | 5045 | /*!***********************************************!*\ |
| 3606 | 5046 | !*** ../app/assets/js/ui/molecules/notice.js ***! |
| 3607 | 5047 | \***********************************************/ |
| @@ -3672,18 +5112,8 @@ | ||
| 3672 | 5112 | }; |
| 3673 | 5113 | |
| 3674 | 5114 | /***/ }), |
| 3675 | 5115 | |
| 3676 | -/***/ "../app/assets/js/ui/molecules/notice.scss": | |
| 3677 | -/*!*************************************************!*\ | |
| 3678 | - !*** ../app/assets/js/ui/molecules/notice.scss ***! | |
| 3679 | - \*************************************************/ | |
| 3680 | -/***/ (() => { | |
| 3681 | - | |
| 3682 | - | |
| 3683 | - | |
| 3684 | -/***/ }), | |
| 3685 | - | |
| 3686 | 5116 | /***/ "../app/assets/js/ui/molecules/popover.js": |
| 3687 | 5117 | /*!************************************************!*\ |
| 3688 | 5118 | !*** ../app/assets/js/ui/molecules/popover.js ***! |
| 3689 | 5119 | \************************************************/ |
| @@ -3704,25 +5134,13 @@ | ||
| 3704 | 5134 | /* eslint-disable jsx-a11y/no-static-element-interactions */ |
| 3705 | 5135 | /* eslint-disable jsx-a11y/click-events-have-key-events */ |
| 3706 | 5136 | |
| 3707 | 5137 | function Popover(props) { |
| 3708 | - var getArrowPositionClass = function getArrowPositionClass() { | |
| 3709 | - switch (props.arrowPosition) { | |
| 3710 | - case 'start': | |
| 3711 | - return 'eps-popover--arrow-start'; | |
| 3712 | - case 'end': | |
| 3713 | - return 'eps-popover--arrow-end'; | |
| 3714 | - case 'none': | |
| 3715 | - return 'eps-popover--arrow-none'; | |
| 3716 | - default: | |
| 3717 | - return 'eps-popover--arrow-center'; | |
| 3718 | - } | |
| 3719 | - }; | |
| 3720 | 5138 | return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("div", { |
| 3721 | 5139 | className: "eps-popover__background", |
| 3722 | 5140 | onClick: props.closeFunction |
| 3723 | 5141 | }), /*#__PURE__*/_react.default.createElement("ul", { |
| 3724 | - className: "eps-popover ".concat(getArrowPositionClass(), " ").concat(props.className), | |
| 5142 | + className: "eps-popover ".concat(props.className), | |
| 3725 | 5143 | onClick: props.closeFunction |
| 3726 | 5144 | }, props.children)); |
| 3727 | 5145 | } |
| 3728 | 5146 | Popover.propTypes = { |
| @@ -3727,28 +5145,16 @@ | ||
| 3727 | 5145 | } |
| 3728 | 5146 | Popover.propTypes = { |
| 3729 | 5147 | children: PropTypes.any.isRequired, |
| 3730 | 5148 | className: PropTypes.string, |
| 3731 | - closeFunction: PropTypes.func, | |
| 3732 | - arrowPosition: PropTypes.oneOf(['start', 'center', 'end', 'none']) | |
| 5149 | + closeFunction: PropTypes.func | |
| 3733 | 5150 | }; |
| 3734 | 5151 | Popover.defaultProps = { |
| 3735 | - className: '', | |
| 3736 | - arrowPosition: 'center' | |
| 5152 | + className: '' | |
| 3737 | 5153 | }; |
| 3738 | 5154 | |
| 3739 | 5155 | /***/ }), |
| 3740 | 5156 | |
| 3741 | -/***/ "../app/assets/js/ui/molecules/popover.scss": | |
| 3742 | -/*!**************************************************!*\ | |
| 3743 | - !*** ../app/assets/js/ui/molecules/popover.scss ***! | |
| 3744 | - \**************************************************/ | |
| 3745 | -/***/ (() => { | |
| 3746 | - | |
| 3747 | - | |
| 3748 | - | |
| 3749 | -/***/ }), | |
| 3750 | - | |
| 3751 | 5157 | /***/ "../app/assets/js/ui/molecules/select2.js": |
| 3752 | 5158 | /*!************************************************!*\ |
| 3753 | 5159 | !*** ../app/assets/js/ui/molecules/select2.js ***! |
| 3754 | 5160 | \************************************************/ |
| @@ -3766,10 +5172,10 @@ | ||
| 3766 | 5172 | var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react")); |
| 3767 | 5173 | var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "../node_modules/@babel/runtime/helpers/defineProperty.js")); |
| 3768 | 5174 | var _select = _interopRequireDefault(__webpack_require__(/*! ../atoms/select */ "../app/assets/js/ui/atoms/select.js")); |
| 3769 | 5175 | __webpack_require__(/*! ./select2.scss */ "../app/assets/js/ui/molecules/select2.scss"); |
| 3770 | -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } | |
| 3771 | -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } | |
| 5176 | +function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; } | |
| 5177 | +function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; } | |
| 3772 | 5178 | /** |
| 3773 | 5179 | * Default settings of the select 2 |
| 3774 | 5180 | * |
| 3775 | 5181 | * @return {{placeholder: string, allowClear: boolean, dir: string}} |
| @@ -3803,9 +5209,8 @@ | ||
| 3803 | 5209 | } |
| 3804 | 5210 | return function () { |
| 3805 | 5211 | $select2.select2('destroy').off('select2:select select2:unselect'); |
| 3806 | 5212 | }; |
| 3807 | - // eslint-disable-next-line react-hooks/exhaustive-deps | |
| 3808 | 5213 | }, [props.settings, props.options]); |
| 3809 | 5214 | |
| 3810 | 5215 | // Listen to changes in the prop `value`, if changed update the select 2. |
| 3811 | 5216 | _react.default.useEffect(function () { |
| @@ -3837,188 +5242,8 @@ | ||
| 3837 | 5242 | }; |
| 3838 | 5243 | |
| 3839 | 5244 | /***/ }), |
| 3840 | 5245 | |
| 3841 | -/***/ "../app/assets/js/ui/molecules/select2.scss": | |
| 3842 | -/*!**************************************************!*\ | |
| 3843 | - !*** ../app/assets/js/ui/molecules/select2.scss ***! | |
| 3844 | - \**************************************************/ | |
| 3845 | -/***/ (() => { | |
| 3846 | - | |
| 3847 | - | |
| 3848 | - | |
| 3849 | -/***/ }), | |
| 3850 | - | |
| 3851 | -/***/ "../app/assets/js/ui/popover-dialog/popover-dialog.js": | |
| 3852 | -/*!************************************************************!*\ | |
| 3853 | - !*** ../app/assets/js/ui/popover-dialog/popover-dialog.js ***! | |
| 3854 | - \************************************************************/ | |
| 3855 | -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 3856 | - | |
| 3857 | -"use strict"; | |
| 3858 | -/* provided dependency */ var PropTypes = __webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js"); | |
| 3859 | - | |
| 3860 | - | |
| 3861 | -var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ "../node_modules/@babel/runtime/helpers/typeof.js"); | |
| 3862 | -Object.defineProperty(exports, "__esModule", ({ | |
| 3863 | - value: true | |
| 3864 | -})); | |
| 3865 | -exports["default"] = PopoverDialog; | |
| 3866 | -var _react = _interopRequireWildcard(__webpack_require__(/*! react */ "react")); | |
| 3867 | -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); } | |
| 3868 | -function PopoverDialog(props) { | |
| 3869 | - var targetRef = props.targetRef, | |
| 3870 | - offsetTop = props.offsetTop, | |
| 3871 | - offsetLeft = props.offsetLeft, | |
| 3872 | - wrapperClass = props.wrapperClass, | |
| 3873 | - trigger = props.trigger, | |
| 3874 | - hideAfter = props.hideAfter, | |
| 3875 | - popoverRef = (0, _react.useCallback)(function (popoverEl) { | |
| 3876 | - var target = targetRef === null || targetRef === void 0 ? void 0 : targetRef.current; | |
| 3877 | - | |
| 3878 | - // If the target or the popover element does not exist on the page anymore after a re-render, do nothing. | |
| 3879 | - if (!target || !popoverEl) { | |
| 3880 | - return; | |
| 3881 | - } | |
| 3882 | - | |
| 3883 | - /** | |
| 3884 | - * Show Popover | |
| 3885 | - */ | |
| 3886 | - var showPopover = function showPopover() { | |
| 3887 | - popoverEl.style.display = 'block'; | |
| 3888 | - popoverEl.setAttribute('aria-expanded', true); | |
| 3889 | - var targetRect = target.getBoundingClientRect(), | |
| 3890 | - popoverRect = popoverEl.getBoundingClientRect(), | |
| 3891 | - widthDifference = popoverRect.width - targetRect.width; | |
| 3892 | - popoverEl.style.top = targetRect.bottom + offsetTop + 'px'; | |
| 3893 | - popoverEl.style.left = targetRect.left - widthDifference / 2 - offsetLeft + 'px'; | |
| 3894 | - | |
| 3895 | - // 16px to compensate for the arrow width. | |
| 3896 | - popoverEl.style.setProperty('--popover-arrow-offset-end', (popoverRect.width - 16) / 2 + 'px'); | |
| 3897 | - }; | |
| 3898 | - | |
| 3899 | - /** | |
| 3900 | - * Hide Popover | |
| 3901 | - */ | |
| 3902 | - var hidePopover = function hidePopover() { | |
| 3903 | - popoverEl.style.display = 'none'; | |
| 3904 | - popoverEl.setAttribute('aria-expanded', false); | |
| 3905 | - }; | |
| 3906 | - | |
| 3907 | - /** | |
| 3908 | - * Handle the Popover's hover functionality | |
| 3909 | - */ | |
| 3910 | - var handlePopoverHover = function handlePopoverHover() { | |
| 3911 | - var hideOnMouseOut = true, | |
| 3912 | - timeOut = null; | |
| 3913 | - | |
| 3914 | - // Show popover on hover of the target | |
| 3915 | - target.addEventListener('mouseover', function () { | |
| 3916 | - hideOnMouseOut = true; | |
| 3917 | - showPopover(); | |
| 3918 | - }); | |
| 3919 | - | |
| 3920 | - // Hide popover when not overing over the target or the popover itself | |
| 3921 | - target.addEventListener('mouseleave', function () { | |
| 3922 | - timeOut = setTimeout(function () { | |
| 3923 | - if (hideOnMouseOut) { | |
| 3924 | - if ('block' === popoverEl.style.display) { | |
| 3925 | - hidePopover(); | |
| 3926 | - } | |
| 3927 | - } | |
| 3928 | - }, hideAfter); | |
| 3929 | - }); | |
| 3930 | - | |
| 3931 | - // Don't hide the popover if the user is still hovering over it. | |
| 3932 | - popoverEl.addEventListener('mouseover', function () { | |
| 3933 | - hideOnMouseOut = false; | |
| 3934 | - if (timeOut) { | |
| 3935 | - clearTimeout(timeOut); | |
| 3936 | - timeOut = null; | |
| 3937 | - } | |
| 3938 | - }); | |
| 3939 | - | |
| 3940 | - // Once the user stops hovering over the popover, hide it. | |
| 3941 | - popoverEl.addEventListener('mouseleave', function () { | |
| 3942 | - timeOut = setTimeout(function () { | |
| 3943 | - if (hideOnMouseOut) { | |
| 3944 | - if ('block' === popoverEl.style.display) { | |
| 3945 | - hidePopover(); | |
| 3946 | - } | |
| 3947 | - } | |
| 3948 | - }, hideAfter); | |
| 3949 | - hideOnMouseOut = true; | |
| 3950 | - }); | |
| 3951 | - }; | |
| 3952 | - | |
| 3953 | - /** | |
| 3954 | - * Handle the Popover's click functionality | |
| 3955 | - */ | |
| 3956 | - var handlePopoverClick = function handlePopoverClick() { | |
| 3957 | - var popoverIsActive = false; | |
| 3958 | - target.addEventListener('click', function (e) { | |
| 3959 | - e.preventDefault(); | |
| 3960 | - e.stopPropagation(); | |
| 3961 | - if (popoverIsActive) { | |
| 3962 | - hidePopover(); | |
| 3963 | - popoverIsActive = false; | |
| 3964 | - } else { | |
| 3965 | - showPopover(); | |
| 3966 | - popoverIsActive = true; | |
| 3967 | - } | |
| 3968 | - }); | |
| 3969 | - | |
| 3970 | - // Make sure the popover doesn't close when it is clicked on. | |
| 3971 | - popoverEl.addEventListener('click', function (e) { | |
| 3972 | - e.stopPropagation(); | |
| 3973 | - }); | |
| 3974 | - | |
| 3975 | - // Hide the popover when clicking outside of it. | |
| 3976 | - document.body.addEventListener('click', function () { | |
| 3977 | - if (popoverIsActive) { | |
| 3978 | - hidePopover(); | |
| 3979 | - popoverIsActive = false; | |
| 3980 | - } | |
| 3981 | - }); | |
| 3982 | - }; | |
| 3983 | - if ('hover' === trigger) { | |
| 3984 | - handlePopoverHover(); | |
| 3985 | - } else if ('click' === trigger) { | |
| 3986 | - handlePopoverClick(); | |
| 3987 | - } | |
| 3988 | - // eslint-disable-next-line react-hooks/exhaustive-deps | |
| 3989 | - }, [targetRef]); | |
| 3990 | - var wrapperClasses = 'e-app__popover'; | |
| 3991 | - if (wrapperClass) { | |
| 3992 | - wrapperClasses += ' ' + wrapperClass; | |
| 3993 | - } | |
| 3994 | - return /*#__PURE__*/_react.default.createElement("div", { | |
| 3995 | - className: wrapperClasses, | |
| 3996 | - ref: popoverRef | |
| 3997 | - }, props.children); | |
| 3998 | -} | |
| 3999 | -PopoverDialog.propTypes = { | |
| 4000 | - targetRef: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({ | |
| 4001 | - current: PropTypes.any | |
| 4002 | - })]).isRequired, | |
| 4003 | - trigger: PropTypes.string, | |
| 4004 | - direction: PropTypes.string, | |
| 4005 | - offsetTop: PropTypes.oneOfType([PropTypes.string, PropTypes.number]), | |
| 4006 | - offsetLeft: PropTypes.oneOfType([PropTypes.string, PropTypes.number]), | |
| 4007 | - wrapperClass: PropTypes.string, | |
| 4008 | - children: PropTypes.any, | |
| 4009 | - hideAfter: PropTypes.number | |
| 4010 | -}; | |
| 4011 | -PopoverDialog.defaultProps = { | |
| 4012 | - direction: 'bottom', | |
| 4013 | - trigger: 'hover', | |
| 4014 | - offsetTop: 10, | |
| 4015 | - offsetLeft: 0, | |
| 4016 | - hideAfter: 300 | |
| 4017 | -}; | |
| 4018 | - | |
| 4019 | -/***/ }), | |
| 4020 | - | |
| 4021 | 5246 | /***/ "../app/assets/js/utils/utils.js": |
| 4022 | 5247 | /*!***************************************!*\ |
| 4023 | 5248 | !*** ../app/assets/js/utils/utils.js ***! |
| 4024 | 5249 | \***************************************/ |
| @@ -4030,11 +5255,11 @@ | ||
| 4030 | 5255 | var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); |
| 4031 | 5256 | Object.defineProperty(exports, "__esModule", ({ |
| 4032 | 5257 | value: true |
| 4033 | 5258 | })); |
| 4034 | -exports.stringToRemValues = exports.rgbToHex = exports.pxToRem = exports.isOneOf = exports.htmlDecodeTextContent = exports.arrayToObjectByKey = exports.arrayToClassName = void 0; | |
| 5259 | +exports.stringToRemValues = exports.rgbToHex = exports.pxToRem = exports.isOneOf = exports.arrayToObjectByKey = exports.arrayToClassName = void 0; | |
| 4035 | 5260 | var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ "../node_modules/@babel/runtime/helpers/typeof.js")); |
| 4036 | -var pxToRem = exports.pxToRem = function pxToRem(pixels) { | |
| 5261 | +var pxToRem = function pxToRem(pixels) { | |
| 4037 | 5262 | if (!pixels) { |
| 4038 | 5263 | return; |
| 4039 | 5264 | } else if ('string' !== typeof pixels) { |
| 4040 | 5265 | pixels = pixels.toString(); |
| @@ -4042,9 +5267,10 @@ | ||
| 4042 | 5267 | return pixels.split(' ').map(function (value) { |
| 4043 | 5268 | return "".concat(value * 0.0625, "rem"); |
| 4044 | 5269 | }).join(' '); |
| 4045 | 5270 | }; |
| 4046 | -var arrayToClassName = exports.arrayToClassName = function arrayToClassName(array, action) { | |
| 5271 | +exports.pxToRem = pxToRem; | |
| 5272 | +var arrayToClassName = function arrayToClassName(array, action) { | |
| 4047 | 5273 | return array.filter(function (item) { |
| 4048 | 5274 | return 'object' === (0, _typeof2.default)(item) ? Object.entries(item)[0][1] : item; |
| 4049 | 5275 | }).map(function (item) { |
| 4050 | 5276 | var value = 'object' === (0, _typeof2.default)(item) ? Object.entries(item)[0][0] : item; |
| @@ -4050,25 +5276,29 @@ | ||
| 4050 | 5276 | var value = 'object' === (0, _typeof2.default)(item) ? Object.entries(item)[0][0] : item; |
| 4051 | 5277 | return action ? action(value) : value; |
| 4052 | 5278 | }).join(' '); |
| 4053 | 5279 | }; |
| 4054 | -var stringToRemValues = exports.stringToRemValues = function stringToRemValues(string) { | |
| 5280 | +exports.arrayToClassName = arrayToClassName; | |
| 5281 | +var stringToRemValues = function stringToRemValues(string) { | |
| 4055 | 5282 | return string.split(' ').map(function (value) { |
| 4056 | 5283 | return pxToRem(value); |
| 4057 | 5284 | }).join(' '); |
| 4058 | 5285 | }; |
| 4059 | -var rgbToHex = exports.rgbToHex = function rgbToHex(r, g, b) { | |
| 5286 | +exports.stringToRemValues = stringToRemValues; | |
| 5287 | +var rgbToHex = function rgbToHex(r, g, b) { | |
| 4060 | 5288 | return '#' + [r, g, b].map(function (x) { |
| 4061 | 5289 | var hex = x.toString(16); |
| 4062 | 5290 | return 1 === hex.length ? '0' + hex : hex; |
| 4063 | 5291 | }).join(''); |
| 4064 | 5292 | }; |
| 4065 | -var isOneOf = exports.isOneOf = function isOneOf(filetype, filetypeOptions) { | |
| 5293 | +exports.rgbToHex = rgbToHex; | |
| 5294 | +var isOneOf = function isOneOf(filetype, filetypeOptions) { | |
| 4066 | 5295 | return filetypeOptions.some(function (type) { |
| 4067 | 5296 | return filetype.includes(type); |
| 4068 | 5297 | }); |
| 4069 | 5298 | }; |
| 4070 | -var arrayToObjectByKey = exports.arrayToObjectByKey = function arrayToObjectByKey(array, key) { | |
| 5299 | +exports.isOneOf = isOneOf; | |
| 5300 | +var arrayToObjectByKey = function arrayToObjectByKey(array, key) { | |
| 4071 | 5301 | var finalObject = {}; |
| 4072 | 5302 | array.forEach(function (item) { |
| 4073 | 5303 | return finalObject[item[key]] = item; |
| 4074 | 5304 | }); |
| @@ -4073,71 +5303,12 @@ | ||
| 4073 | 5303 | return finalObject[item[key]] = item; |
| 4074 | 5304 | }); |
| 4075 | 5305 | return finalObject; |
| 4076 | 5306 | }; |
| 4077 | -var htmlDecodeTextContent = exports.htmlDecodeTextContent = function htmlDecodeTextContent(input) { | |
| 4078 | - var doc = new DOMParser().parseFromString(input, 'text/html'); | |
| 4079 | - return doc.documentElement.textContent; | |
| 4080 | -}; | |
| 5307 | +exports.arrayToObjectByKey = arrayToObjectByKey; | |
| 4081 | 5308 | |
| 4082 | 5309 | /***/ }), |
| 4083 | 5310 | |
| 4084 | -/***/ "../app/modules/import-export/assets/js/shared/utils/is-valid-redirect-url.js": | |
| 4085 | -/*!************************************************************************************!*\ | |
| 4086 | - !*** ../app/modules/import-export/assets/js/shared/utils/is-valid-redirect-url.js ***! | |
| 4087 | - \************************************************************************************/ | |
| 4088 | -/***/ ((__unused_webpack_module, exports) => { | |
| 4089 | - | |
| 4090 | -"use strict"; | |
| 4091 | - | |
| 4092 | - | |
| 4093 | -Object.defineProperty(exports, "__esModule", ({ | |
| 4094 | - value: true | |
| 4095 | -})); | |
| 4096 | -exports["default"] = isValidRedirectUrl; | |
| 4097 | -function isValidRedirectUrl(url) { | |
| 4098 | - try { | |
| 4099 | - var parsedUrl = new URL(url); | |
| 4100 | - return parsedUrl.hostname === window.location.hostname && ('http:' === parsedUrl.protocol || 'https:' === parsedUrl.protocol); | |
| 4101 | - } catch (e) { | |
| 4102 | - return false; | |
| 4103 | - } | |
| 4104 | -} | |
| 4105 | - | |
| 4106 | -/***/ }), | |
| 4107 | - | |
| 4108 | -/***/ "../app/modules/import-export/assets/js/shared/utils/redirect.js": | |
| 4109 | -/*!***********************************************************************!*\ | |
| 4110 | - !*** ../app/modules/import-export/assets/js/shared/utils/redirect.js ***! | |
| 4111 | - \***********************************************************************/ | |
| 4112 | -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 4113 | - | |
| 4114 | -"use strict"; | |
| 4115 | - | |
| 4116 | - | |
| 4117 | -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 4118 | -Object.defineProperty(exports, "__esModule", ({ | |
| 4119 | - value: true | |
| 4120 | -})); | |
| 4121 | -exports["default"] = safeRedirect; | |
| 4122 | -var _isValidRedirectUrl = _interopRequireDefault(__webpack_require__(/*! ./is-valid-redirect-url */ "../app/modules/import-export/assets/js/shared/utils/is-valid-redirect-url.js")); | |
| 4123 | -function safeRedirect(url) { | |
| 4124 | - try { | |
| 4125 | - if (url.startsWith('/')) { | |
| 4126 | - url = window.location.origin + url; | |
| 4127 | - } | |
| 4128 | - var decodedUrl = decodeURIComponent(url); | |
| 4129 | - if ((0, _isValidRedirectUrl.default)(decodedUrl)) { | |
| 4130 | - window.location.href = decodedUrl; | |
| 4131 | - return true; | |
| 4132 | - } | |
| 4133 | - } catch (e) { | |
| 4134 | - return false; | |
| 4135 | - } | |
| 4136 | -} | |
| 4137 | - | |
| 4138 | -/***/ }), | |
| 4139 | - | |
| 4140 | 5311 | /***/ "../app/modules/site-editor/assets/js/context/template-types.js": |
| 4141 | 5312 | /*!**********************************************************************!*\ |
| 4142 | 5313 | !*** ../app/modules/site-editor/assets/js/context/template-types.js ***! |
| 4143 | 5314 | \**********************************************************************/ |
| @@ -4155,21 +5326,24 @@ | ||
| 4155 | 5326 | exports["default"] = exports.TemplateTypesConsumer = exports.Context = void 0; |
| 4156 | 5327 | var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react")); |
| 4157 | 5328 | var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); |
| 4158 | 5329 | var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); |
| 5330 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 4159 | 5331 | var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); |
| 4160 | 5332 | var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); |
| 4161 | -var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 4162 | 5333 | var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "../node_modules/@babel/runtime/helpers/defineProperty.js")); |
| 4163 | 5334 | __webpack_require__(/*! ../../scss/loading.scss */ "../app/modules/site-editor/assets/scss/loading.scss"); |
| 4164 | -function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } | |
| 4165 | -function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } | |
| 4166 | -var Context = exports.Context = _react.default.createContext(); | |
| 5335 | +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } | |
| 5336 | +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } | |
| 5337 | +var Context = _react.default.createContext(); | |
| 5338 | +exports.Context = Context; | |
| 4167 | 5339 | var TemplateTypesContext = /*#__PURE__*/function (_React$Component) { |
| 5340 | + (0, _inherits2.default)(TemplateTypesContext, _React$Component); | |
| 5341 | + var _super = _createSuper(TemplateTypesContext); | |
| 4168 | 5342 | function TemplateTypesContext(props) { |
| 4169 | 5343 | var _this; |
| 4170 | 5344 | (0, _classCallCheck2.default)(this, TemplateTypesContext); |
| 4171 | - _this = _callSuper(this, TemplateTypesContext, [props]); | |
| 5345 | + _this = _super.call(this, props); | |
| 4172 | 5346 | _this.state = { |
| 4173 | 5347 | templateTypes: [], |
| 4174 | 5348 | loading: true, |
| 4175 | 5349 | error: false |
| @@ -4175,10 +5349,9 @@ | ||
| 4175 | 5349 | error: false |
| 4176 | 5350 | }; |
| 4177 | 5351 | return _this; |
| 4178 | 5352 | } |
| 4179 | - (0, _inherits2.default)(TemplateTypesContext, _React$Component); | |
| 4180 | - return (0, _createClass2.default)(TemplateTypesContext, [{ | |
| 5353 | + (0, _createClass2.default)(TemplateTypesContext, [{ | |
| 4181 | 5354 | key: "componentDidMount", |
| 4182 | 5355 | value: function componentDidMount() { |
| 4183 | 5356 | var _this2 = this; |
| 4184 | 5357 | this.getTemplateTypes().then(function (response) { |
| @@ -4233,14 +5406,17 @@ | ||
| 4233 | 5406 | value: this.state |
| 4234 | 5407 | }, this.props.children); |
| 4235 | 5408 | } |
| 4236 | 5409 | }]); |
| 5410 | + return TemplateTypesContext; | |
| 4237 | 5411 | }(_react.default.Component); |
| 4238 | 5412 | (0, _defineProperty2.default)(TemplateTypesContext, "propTypes", { |
| 4239 | 5413 | children: PropTypes.object.isRequired |
| 4240 | 5414 | }); |
| 4241 | -var TemplateTypesConsumer = exports.TemplateTypesConsumer = Context.Consumer; | |
| 4242 | -var _default = exports["default"] = TemplateTypesContext; | |
| 5415 | +var TemplateTypesConsumer = Context.Consumer; | |
| 5416 | +exports.TemplateTypesConsumer = TemplateTypesConsumer; | |
| 5417 | +var _default = TemplateTypesContext; | |
| 5418 | +exports["default"] = _default; | |
| 4243 | 5419 | |
| 4244 | 5420 | /***/ }), |
| 4245 | 5421 | |
| 4246 | 5422 | /***/ "../app/modules/site-editor/assets/js/module.js": |
| @@ -4262,9 +5438,9 @@ | ||
| 4262 | 5438 | var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); |
| 4263 | 5439 | var _router = _interopRequireDefault(__webpack_require__(/*! @elementor/router */ "@elementor/router")); |
| 4264 | 5440 | var _promotion = _interopRequireDefault(__webpack_require__(/*! ./pages/promotion */ "../app/modules/site-editor/assets/js/pages/promotion.js")); |
| 4265 | 5441 | var _notFound = _interopRequireDefault(__webpack_require__(/*! ./pages/not-found */ "../app/modules/site-editor/assets/js/pages/not-found.js")); |
| 4266 | -var SiteEditor = exports["default"] = /*#__PURE__*/function () { | |
| 5442 | +var SiteEditor = /*#__PURE__*/function () { | |
| 4267 | 5443 | function SiteEditor() { |
| 4268 | 5444 | (0, _classCallCheck2.default)(this, SiteEditor); |
| 4269 | 5445 | this.saveTemplateTypesToCache(); |
| 4270 | 5446 | _router.default.addRoute({ |
| @@ -4275,9 +5451,9 @@ | ||
| 4275 | 5451 | path: '/site-editor/*', |
| 4276 | 5452 | component: _notFound.default |
| 4277 | 5453 | }); |
| 4278 | 5454 | } |
| 4279 | - return (0, _createClass2.default)(SiteEditor, [{ | |
| 5455 | + (0, _createClass2.default)(SiteEditor, [{ | |
| 4280 | 5456 | key: "saveTemplateTypesToCache", |
| 4281 | 5457 | value: function saveTemplateTypesToCache() { |
| 4282 | 5458 | var types = this.getTypes(); |
| 4283 | 5459 | elementorCommon.ajax.addRequestCache({ |
| @@ -4415,9 +5591,11 @@ | ||
| 4415 | 5591 | } |
| 4416 | 5592 | }]; |
| 4417 | 5593 | } |
| 4418 | 5594 | }]); |
| 5595 | + return SiteEditor; | |
| 4419 | 5596 | }(); |
| 5597 | +exports["default"] = SiteEditor; | |
| 4420 | 5598 | |
| 4421 | 5599 | /***/ }), |
| 4422 | 5600 | |
| 4423 | 5601 | /***/ "../app/modules/site-editor/assets/js/molecules/site-part.js": |
| @@ -4463,18 +5641,8 @@ | ||
| 4463 | 5641 | }; |
| 4464 | 5642 | |
| 4465 | 5643 | /***/ }), |
| 4466 | 5644 | |
| 4467 | -/***/ "../app/modules/site-editor/assets/js/molecules/site-part.scss": | |
| 4468 | -/*!*********************************************************************!*\ | |
| 4469 | - !*** ../app/modules/site-editor/assets/js/molecules/site-part.scss ***! | |
| 4470 | - \*********************************************************************/ | |
| 4471 | -/***/ (() => { | |
| 4472 | - | |
| 4473 | - | |
| 4474 | - | |
| 4475 | -/***/ }), | |
| 4476 | - | |
| 4477 | 5645 | /***/ "../app/modules/site-editor/assets/js/organisms/all-parts-button.js": |
| 4478 | 5646 | /*!**************************************************************************!*\ |
| 4479 | 5647 | !*** ../app/modules/site-editor/assets/js/organisms/all-parts-button.js ***! |
| 4480 | 5648 | \**************************************************************************/ |
| @@ -4577,18 +5745,8 @@ | ||
| 4577 | 5745 | }; |
| 4578 | 5746 | |
| 4579 | 5747 | /***/ }), |
| 4580 | 5748 | |
| 4581 | -/***/ "../app/modules/site-editor/assets/js/organisms/menu.scss": | |
| 4582 | -/*!****************************************************************!*\ | |
| 4583 | - !*** ../app/modules/site-editor/assets/js/organisms/menu.scss ***! | |
| 4584 | - \****************************************************************/ | |
| 4585 | -/***/ (() => { | |
| 4586 | - | |
| 4587 | - | |
| 4588 | - | |
| 4589 | -/***/ }), | |
| 4590 | - | |
| 4591 | 5749 | /***/ "../app/modules/site-editor/assets/js/organisms/site-parts.js": |
| 4592 | 5750 | /*!********************************************************************!*\ |
| 4593 | 5751 | !*** ../app/modules/site-editor/assets/js/organisms/site-parts.js ***! |
| 4594 | 5752 | \********************************************************************/ |
| @@ -4693,9 +5851,9 @@ | ||
| 4693 | 5851 | var _siteParts = _interopRequireDefault(__webpack_require__(/*! ./organisms/site-parts */ "../app/modules/site-editor/assets/js/organisms/site-parts.js")); |
| 4694 | 5852 | var _sitePart = _interopRequireDefault(__webpack_require__(/*! ./molecules/site-part */ "../app/modules/site-editor/assets/js/molecules/site-part.js")); |
| 4695 | 5853 | var _templateTypes = __webpack_require__(/*! ./context/template-types */ "../app/modules/site-editor/assets/js/context/template-types.js"); |
| 4696 | 5854 | // Alphabetical order. |
| 4697 | -var _default = exports["default"] = { | |
| 5855 | +var _default = { | |
| 4698 | 5856 | AllPartsButton: _allPartsButton.default, |
| 4699 | 5857 | Layout: _layout.default, |
| 4700 | 5858 | Module: _module.default, |
| 4701 | 5859 | NotFound: _notFound.default, |
| @@ -4702,8 +5860,9 @@ | ||
| 4702 | 5860 | SitePart: _sitePart.default, |
| 4703 | 5861 | SiteParts: _siteParts.default, |
| 4704 | 5862 | TemplateTypesContext: _templateTypes.Context |
| 4705 | 5863 | }; |
| 5864 | +exports["default"] = _default; | |
| 4706 | 5865 | |
| 4707 | 5866 | /***/ }), |
| 4708 | 5867 | |
| 4709 | 5868 | /***/ "../app/modules/site-editor/assets/js/pages/not-found.js": |
| @@ -4768,9 +5927,9 @@ | ||
| 4768 | 5927 | var _siteParts = _interopRequireDefault(__webpack_require__(/*! ../organisms/site-parts */ "../app/modules/site-editor/assets/js/organisms/site-parts.js")); |
| 4769 | 5928 | var _text = _interopRequireDefault(__webpack_require__(/*! elementor-app/ui/atoms/text */ "../app/assets/js/ui/atoms/text.js")); |
| 4770 | 5929 | __webpack_require__(/*! ./promotion.scss */ "../app/modules/site-editor/assets/js/pages/promotion.scss"); |
| 4771 | 5930 | function Promotion() { |
| 4772 | - var promotionUrl = elementorAppConfig.promotion.upgrade_url || 'https://go.elementor.com/go-pro-theme-builder/', | |
| 5931 | + var promotionUrl = 'https://go.elementor.com/go-pro-theme-builder/', | |
| 4773 | 5932 | PromotionHoverElement = function PromotionHoverElement(props) { |
| 4774 | 5933 | var promotionUrlWithType = "".concat(promotionUrl, "?type=").concat(props.type); |
| 4775 | 5934 | return /*#__PURE__*/_react.default.createElement(_cardOverlay.default, { |
| 4776 | 5935 | className: "e-site-editor__promotion-overlay" |
| @@ -4829,18 +5988,8 @@ | ||
| 4829 | 5988 | } |
| 4830 | 5989 | |
| 4831 | 5990 | /***/ }), |
| 4832 | 5991 | |
| 4833 | -/***/ "../app/modules/site-editor/assets/js/pages/promotion.scss": | |
| 4834 | -/*!*****************************************************************!*\ | |
| 4835 | - !*** ../app/modules/site-editor/assets/js/pages/promotion.scss ***! | |
| 4836 | - \*****************************************************************/ | |
| 4837 | -/***/ (() => { | |
| 4838 | - | |
| 4839 | - | |
| 4840 | - | |
| 4841 | -/***/ }), | |
| 4842 | - | |
| 4843 | 5992 | /***/ "../app/modules/site-editor/assets/js/templates/layout.js": |
| 4844 | 5993 | /*!****************************************************************!*\ |
| 4845 | 5994 | !*** ../app/modules/site-editor/assets/js/templates/layout.js ***! |
| 4846 | 5995 | \****************************************************************/ |
| @@ -4851,44 +6000,29 @@ | ||
| 4851 | 6000 | /* provided dependency */ var PropTypes = __webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js"); |
| 4852 | 6001 | |
| 4853 | 6002 | |
| 4854 | 6003 | var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); |
| 4855 | -var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ "../node_modules/@babel/runtime/helpers/typeof.js"); | |
| 4856 | 6004 | Object.defineProperty(exports, "__esModule", ({ |
| 4857 | 6005 | value: true |
| 4858 | 6006 | })); |
| 4859 | 6007 | exports["default"] = Layout; |
| 4860 | -var _react = _interopRequireWildcard(__webpack_require__(/*! react */ "react")); | |
| 6008 | +var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react")); | |
| 4861 | 6009 | var _page = _interopRequireDefault(__webpack_require__(/*! elementor-app/layout/page */ "../app/assets/js/layout/page.js")); |
| 4862 | 6010 | var _menu = _interopRequireDefault(__webpack_require__(/*! ../organisms/menu */ "../app/modules/site-editor/assets/js/organisms/menu.js")); |
| 4863 | 6011 | var _templateTypes = _interopRequireDefault(__webpack_require__(/*! ../context/template-types */ "../app/modules/site-editor/assets/js/context/template-types.js")); |
| 4864 | -var _useQueryParams = _interopRequireDefault(__webpack_require__(/*! elementor-app/hooks/use-query-params */ "../app/assets/js/hooks/use-query-params.js")); | |
| 4865 | -var _redirect = _interopRequireDefault(__webpack_require__(/*! ../../../../import-export/assets/js/shared/utils/redirect */ "../app/modules/import-export/assets/js/shared/utils/redirect.js")); | |
| 4866 | 6012 | __webpack_require__(/*! ./site-editor.scss */ "../app/modules/site-editor/assets/js/templates/site-editor.scss"); |
| 4867 | -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); } | |
| 4868 | 6013 | function Layout(props) { |
| 4869 | - var _useQueryParams$getAl = (0, _useQueryParams.default)().getAll(), | |
| 4870 | - returnTo = _useQueryParams$getAl.return_to; | |
| 4871 | - var onClose = (0, _react.useCallback)(function () { | |
| 4872 | - if (returnTo && (0, _redirect.default)(returnTo)) { | |
| 4873 | - return; | |
| 4874 | - } | |
| 4875 | - window.top.location = elementorAppConfig.admin_url; | |
| 4876 | - }, [returnTo]); | |
| 4877 | - var config = (0, _react.useMemo)(function () { | |
| 4878 | - var _props$titleRedirectR; | |
| 4879 | - return { | |
| 4880 | - title: __('Theme Builder', 'elementor'), | |
| 4881 | - titleRedirectRoute: (_props$titleRedirectR = props.titleRedirectRoute) !== null && _props$titleRedirectR !== void 0 ? _props$titleRedirectR : null, | |
| 4882 | - headerButtons: props.headerButtons, | |
| 4883 | - sidebar: /*#__PURE__*/_react.default.createElement(_menu.default, { | |
| 4884 | - allPartsButton: props.allPartsButton, | |
| 4885 | - promotion: props.promotion | |
| 4886 | - }), | |
| 4887 | - content: props.children, | |
| 4888 | - onClose: onClose | |
| 4889 | - }; | |
| 4890 | - }, [props.titleRedirectRoute, props.headerButtons, props.allPartsButton, props.promotion, props.children, onClose]); | |
| 6014 | + var _props$titleRedirectR; | |
| 6015 | + var config = { | |
| 6016 | + title: __('Theme Builder', 'elementor'), | |
| 6017 | + titleRedirectRoute: (_props$titleRedirectR = props.titleRedirectRoute) !== null && _props$titleRedirectR !== void 0 ? _props$titleRedirectR : null, | |
| 6018 | + headerButtons: props.headerButtons, | |
| 6019 | + sidebar: /*#__PURE__*/_react.default.createElement(_menu.default, { | |
| 6020 | + allPartsButton: props.allPartsButton, | |
| 6021 | + promotion: props.promotion | |
| 6022 | + }), | |
| 6023 | + content: props.children | |
| 6024 | + }; | |
| 4891 | 6025 | return /*#__PURE__*/_react.default.createElement(_templateTypes.default, null, /*#__PURE__*/_react.default.createElement(_page.default, config)); |
| 4892 | 6026 | } |
| 4893 | 6027 | Layout.propTypes = { |
| 4894 | 6028 | headerButtons: PropTypes.arrayOf(PropTypes.object), |
| @@ -4902,2406 +6036,8 @@ | ||
| 4902 | 6036 | }; |
| 4903 | 6037 | |
| 4904 | 6038 | /***/ }), |
| 4905 | 6039 | |
| 4906 | -/***/ "../app/modules/site-editor/assets/js/templates/site-editor.scss": | |
| 4907 | -/*!***********************************************************************!*\ | |
| 4908 | - !*** ../app/modules/site-editor/assets/js/templates/site-editor.scss ***! | |
| 4909 | - \***********************************************************************/ | |
| 4910 | -/***/ (() => { | |
| 4911 | - | |
| 4912 | - | |
| 4913 | - | |
| 4914 | -/***/ }), | |
| 4915 | - | |
| 4916 | -/***/ "../app/modules/site-editor/assets/scss/loading.scss": | |
| 4917 | -/*!***********************************************************!*\ | |
| 4918 | - !*** ../app/modules/site-editor/assets/scss/loading.scss ***! | |
| 4919 | - \***********************************************************/ | |
| 4920 | -/***/ (() => { | |
| 4921 | - | |
| 4922 | - | |
| 4923 | - | |
| 4924 | -/***/ }), | |
| 4925 | - | |
| 4926 | -/***/ "../node_modules/@babel/runtime/helpers/OverloadYield.js": | |
| 4927 | -/*!***************************************************************!*\ | |
| 4928 | - !*** ../node_modules/@babel/runtime/helpers/OverloadYield.js ***! | |
| 4929 | - \***************************************************************/ | |
| 4930 | -/***/ ((module) => { | |
| 4931 | - | |
| 4932 | -function _OverloadYield(e, d) { | |
| 4933 | - this.v = e, this.k = d; | |
| 4934 | -} | |
| 4935 | -module.exports = _OverloadYield, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 4936 | - | |
| 4937 | -/***/ }), | |
| 4938 | - | |
| 4939 | -/***/ "../node_modules/@babel/runtime/helpers/arrayLikeToArray.js": | |
| 4940 | -/*!******************************************************************!*\ | |
| 4941 | - !*** ../node_modules/@babel/runtime/helpers/arrayLikeToArray.js ***! | |
| 4942 | - \******************************************************************/ | |
| 4943 | -/***/ ((module) => { | |
| 4944 | - | |
| 4945 | -function _arrayLikeToArray(r, a) { | |
| 4946 | - (null == a || a > r.length) && (a = r.length); | |
| 4947 | - for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; | |
| 4948 | - return n; | |
| 4949 | -} | |
| 4950 | -module.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 4951 | - | |
| 4952 | -/***/ }), | |
| 4953 | - | |
| 4954 | -/***/ "../node_modules/@babel/runtime/helpers/arrayWithHoles.js": | |
| 4955 | -/*!****************************************************************!*\ | |
| 4956 | - !*** ../node_modules/@babel/runtime/helpers/arrayWithHoles.js ***! | |
| 4957 | - \****************************************************************/ | |
| 4958 | -/***/ ((module) => { | |
| 4959 | - | |
| 4960 | -function _arrayWithHoles(r) { | |
| 4961 | - if (Array.isArray(r)) return r; | |
| 4962 | -} | |
| 4963 | -module.exports = _arrayWithHoles, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 4964 | - | |
| 4965 | -/***/ }), | |
| 4966 | - | |
| 4967 | -/***/ "../node_modules/@babel/runtime/helpers/arrayWithoutHoles.js": | |
| 4968 | -/*!*******************************************************************!*\ | |
| 4969 | - !*** ../node_modules/@babel/runtime/helpers/arrayWithoutHoles.js ***! | |
| 4970 | - \*******************************************************************/ | |
| 4971 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 4972 | - | |
| 4973 | -var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ "../node_modules/@babel/runtime/helpers/arrayLikeToArray.js"); | |
| 4974 | -function _arrayWithoutHoles(r) { | |
| 4975 | - if (Array.isArray(r)) return arrayLikeToArray(r); | |
| 4976 | -} | |
| 4977 | -module.exports = _arrayWithoutHoles, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 4978 | - | |
| 4979 | -/***/ }), | |
| 4980 | - | |
| 4981 | -/***/ "../node_modules/@babel/runtime/helpers/assertThisInitialized.js": | |
| 4982 | -/*!***********************************************************************!*\ | |
| 4983 | - !*** ../node_modules/@babel/runtime/helpers/assertThisInitialized.js ***! | |
| 4984 | - \***********************************************************************/ | |
| 4985 | -/***/ ((module) => { | |
| 4986 | - | |
| 4987 | -function _assertThisInitialized(e) { | |
| 4988 | - if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); | |
| 4989 | - return e; | |
| 4990 | -} | |
| 4991 | -module.exports = _assertThisInitialized, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 4992 | - | |
| 4993 | -/***/ }), | |
| 4994 | - | |
| 4995 | -/***/ "../node_modules/@babel/runtime/helpers/asyncToGenerator.js": | |
| 4996 | -/*!******************************************************************!*\ | |
| 4997 | - !*** ../node_modules/@babel/runtime/helpers/asyncToGenerator.js ***! | |
| 4998 | - \******************************************************************/ | |
| 4999 | -/***/ ((module) => { | |
| 5000 | - | |
| 5001 | -function asyncGeneratorStep(n, t, e, r, o, a, c) { | |
| 5002 | - try { | |
| 5003 | - var i = n[a](c), | |
| 5004 | - u = i.value; | |
| 5005 | - } catch (n) { | |
| 5006 | - return void e(n); | |
| 5007 | - } | |
| 5008 | - i.done ? t(u) : Promise.resolve(u).then(r, o); | |
| 5009 | -} | |
| 5010 | -function _asyncToGenerator(n) { | |
| 5011 | - return function () { | |
| 5012 | - var t = this, | |
| 5013 | - e = arguments; | |
| 5014 | - return new Promise(function (r, o) { | |
| 5015 | - var a = n.apply(t, e); | |
| 5016 | - function _next(n) { | |
| 5017 | - asyncGeneratorStep(a, r, o, _next, _throw, "next", n); | |
| 5018 | - } | |
| 5019 | - function _throw(n) { | |
| 5020 | - asyncGeneratorStep(a, r, o, _next, _throw, "throw", n); | |
| 5021 | - } | |
| 5022 | - _next(void 0); | |
| 5023 | - }); | |
| 5024 | - }; | |
| 5025 | -} | |
| 5026 | -module.exports = _asyncToGenerator, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 5027 | - | |
| 5028 | -/***/ }), | |
| 5029 | - | |
| 5030 | -/***/ "../node_modules/@babel/runtime/helpers/classCallCheck.js": | |
| 5031 | -/*!****************************************************************!*\ | |
| 5032 | - !*** ../node_modules/@babel/runtime/helpers/classCallCheck.js ***! | |
| 5033 | - \****************************************************************/ | |
| 5034 | -/***/ ((module) => { | |
| 5035 | - | |
| 5036 | -function _classCallCheck(a, n) { | |
| 5037 | - if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); | |
| 5038 | -} | |
| 5039 | -module.exports = _classCallCheck, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 5040 | - | |
| 5041 | -/***/ }), | |
| 5042 | - | |
| 5043 | -/***/ "../node_modules/@babel/runtime/helpers/createClass.js": | |
| 5044 | -/*!*************************************************************!*\ | |
| 5045 | - !*** ../node_modules/@babel/runtime/helpers/createClass.js ***! | |
| 5046 | - \*************************************************************/ | |
| 5047 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 5048 | - | |
| 5049 | -var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ "../node_modules/@babel/runtime/helpers/toPropertyKey.js"); | |
| 5050 | -function _defineProperties(e, r) { | |
| 5051 | - for (var t = 0; t < r.length; t++) { | |
| 5052 | - var o = r[t]; | |
| 5053 | - o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, toPropertyKey(o.key), o); | |
| 5054 | - } | |
| 5055 | -} | |
| 5056 | -function _createClass(e, r, t) { | |
| 5057 | - return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { | |
| 5058 | - writable: !1 | |
| 5059 | - }), e; | |
| 5060 | -} | |
| 5061 | -module.exports = _createClass, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 5062 | - | |
| 5063 | -/***/ }), | |
| 5064 | - | |
| 5065 | -/***/ "../node_modules/@babel/runtime/helpers/defineProperty.js": | |
| 5066 | -/*!****************************************************************!*\ | |
| 5067 | - !*** ../node_modules/@babel/runtime/helpers/defineProperty.js ***! | |
| 5068 | - \****************************************************************/ | |
| 5069 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 5070 | - | |
| 5071 | -var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ "../node_modules/@babel/runtime/helpers/toPropertyKey.js"); | |
| 5072 | -function _defineProperty(e, r, t) { | |
| 5073 | - return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, { | |
| 5074 | - value: t, | |
| 5075 | - enumerable: !0, | |
| 5076 | - configurable: !0, | |
| 5077 | - writable: !0 | |
| 5078 | - }) : e[r] = t, e; | |
| 5079 | -} | |
| 5080 | -module.exports = _defineProperty, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 5081 | - | |
| 5082 | -/***/ }), | |
| 5083 | - | |
| 5084 | -/***/ "../node_modules/@babel/runtime/helpers/extends.js": | |
| 5085 | -/*!*********************************************************!*\ | |
| 5086 | - !*** ../node_modules/@babel/runtime/helpers/extends.js ***! | |
| 5087 | - \*********************************************************/ | |
| 5088 | -/***/ ((module) => { | |
| 5089 | - | |
| 5090 | -function _extends() { | |
| 5091 | - return module.exports = _extends = Object.assign ? Object.assign.bind() : function (n) { | |
| 5092 | - for (var e = 1; e < arguments.length; e++) { | |
| 5093 | - var t = arguments[e]; | |
| 5094 | - for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); | |
| 5095 | - } | |
| 5096 | - return n; | |
| 5097 | - }, module.exports.__esModule = true, module.exports["default"] = module.exports, _extends.apply(null, arguments); | |
| 5098 | -} | |
| 5099 | -module.exports = _extends, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 5100 | - | |
| 5101 | -/***/ }), | |
| 5102 | - | |
| 5103 | -/***/ "../node_modules/@babel/runtime/helpers/get.js": | |
| 5104 | -/*!*****************************************************!*\ | |
| 5105 | - !*** ../node_modules/@babel/runtime/helpers/get.js ***! | |
| 5106 | - \*****************************************************/ | |
| 5107 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 5108 | - | |
| 5109 | -var superPropBase = __webpack_require__(/*! ./superPropBase.js */ "../node_modules/@babel/runtime/helpers/superPropBase.js"); | |
| 5110 | -function _get() { | |
| 5111 | - return module.exports = _get = "undefined" != typeof Reflect && Reflect.get ? Reflect.get.bind() : function (e, t, r) { | |
| 5112 | - var p = superPropBase(e, t); | |
| 5113 | - if (p) { | |
| 5114 | - var n = Object.getOwnPropertyDescriptor(p, t); | |
| 5115 | - return n.get ? n.get.call(arguments.length < 3 ? e : r) : n.value; | |
| 5116 | - } | |
| 5117 | - }, module.exports.__esModule = true, module.exports["default"] = module.exports, _get.apply(null, arguments); | |
| 5118 | -} | |
| 5119 | -module.exports = _get, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 5120 | - | |
| 5121 | -/***/ }), | |
| 5122 | - | |
| 5123 | -/***/ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js": | |
| 5124 | -/*!****************************************************************!*\ | |
| 5125 | - !*** ../node_modules/@babel/runtime/helpers/getPrototypeOf.js ***! | |
| 5126 | - \****************************************************************/ | |
| 5127 | -/***/ ((module) => { | |
| 5128 | - | |
| 5129 | -function _getPrototypeOf(t) { | |
| 5130 | - return module.exports = _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { | |
| 5131 | - return t.__proto__ || Object.getPrototypeOf(t); | |
| 5132 | - }, module.exports.__esModule = true, module.exports["default"] = module.exports, _getPrototypeOf(t); | |
| 5133 | -} | |
| 5134 | -module.exports = _getPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 5135 | - | |
| 5136 | -/***/ }), | |
| 5137 | - | |
| 5138 | -/***/ "../node_modules/@babel/runtime/helpers/inherits.js": | |
| 5139 | -/*!**********************************************************!*\ | |
| 5140 | - !*** ../node_modules/@babel/runtime/helpers/inherits.js ***! | |
| 5141 | - \**********************************************************/ | |
| 5142 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 5143 | - | |
| 5144 | -var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf.js */ "../node_modules/@babel/runtime/helpers/setPrototypeOf.js"); | |
| 5145 | -function _inherits(t, e) { | |
| 5146 | - if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); | |
| 5147 | - t.prototype = Object.create(e && e.prototype, { | |
| 5148 | - constructor: { | |
| 5149 | - value: t, | |
| 5150 | - writable: !0, | |
| 5151 | - configurable: !0 | |
| 5152 | - } | |
| 5153 | - }), Object.defineProperty(t, "prototype", { | |
| 5154 | - writable: !1 | |
| 5155 | - }), e && setPrototypeOf(t, e); | |
| 5156 | -} | |
| 5157 | -module.exports = _inherits, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 5158 | - | |
| 5159 | -/***/ }), | |
| 5160 | - | |
| 5161 | -/***/ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js": | |
| 5162 | -/*!***********************************************************************!*\ | |
| 5163 | - !*** ../node_modules/@babel/runtime/helpers/interopRequireDefault.js ***! | |
| 5164 | - \***********************************************************************/ | |
| 5165 | -/***/ ((module) => { | |
| 5166 | - | |
| 5167 | -function _interopRequireDefault(e) { | |
| 5168 | - return e && e.__esModule ? e : { | |
| 5169 | - "default": e | |
| 5170 | - }; | |
| 5171 | -} | |
| 5172 | -module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 5173 | - | |
| 5174 | -/***/ }), | |
| 5175 | - | |
| 5176 | -/***/ "../node_modules/@babel/runtime/helpers/iterableToArray.js": | |
| 5177 | -/*!*****************************************************************!*\ | |
| 5178 | - !*** ../node_modules/@babel/runtime/helpers/iterableToArray.js ***! | |
| 5179 | - \*****************************************************************/ | |
| 5180 | -/***/ ((module) => { | |
| 5181 | - | |
| 5182 | -function _iterableToArray(r) { | |
| 5183 | - if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); | |
| 5184 | -} | |
| 5185 | -module.exports = _iterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 5186 | - | |
| 5187 | -/***/ }), | |
| 5188 | - | |
| 5189 | -/***/ "../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js": | |
| 5190 | -/*!**********************************************************************!*\ | |
| 5191 | - !*** ../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js ***! | |
| 5192 | - \**********************************************************************/ | |
| 5193 | -/***/ ((module) => { | |
| 5194 | - | |
| 5195 | -function _iterableToArrayLimit(r, l) { | |
| 5196 | - var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; | |
| 5197 | - if (null != t) { | |
| 5198 | - var e, | |
| 5199 | - n, | |
| 5200 | - i, | |
| 5201 | - u, | |
| 5202 | - a = [], | |
| 5203 | - f = !0, | |
| 5204 | - o = !1; | |
| 5205 | - try { | |
| 5206 | - if (i = (t = t.call(r)).next, 0 === l) { | |
| 5207 | - if (Object(t) !== t) return; | |
| 5208 | - f = !1; | |
| 5209 | - } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); | |
| 5210 | - } catch (r) { | |
| 5211 | - o = !0, n = r; | |
| 5212 | - } finally { | |
| 5213 | - try { | |
| 5214 | - if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; | |
| 5215 | - } finally { | |
| 5216 | - if (o) throw n; | |
| 5217 | - } | |
| 5218 | - } | |
| 5219 | - return a; | |
| 5220 | - } | |
| 5221 | -} | |
| 5222 | -module.exports = _iterableToArrayLimit, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 5223 | - | |
| 5224 | -/***/ }), | |
| 5225 | - | |
| 5226 | -/***/ "../node_modules/@babel/runtime/helpers/nonIterableRest.js": | |
| 5227 | -/*!*****************************************************************!*\ | |
| 5228 | - !*** ../node_modules/@babel/runtime/helpers/nonIterableRest.js ***! | |
| 5229 | - \*****************************************************************/ | |
| 5230 | -/***/ ((module) => { | |
| 5231 | - | |
| 5232 | -function _nonIterableRest() { | |
| 5233 | - throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); | |
| 5234 | -} | |
| 5235 | -module.exports = _nonIterableRest, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 5236 | - | |
| 5237 | -/***/ }), | |
| 5238 | - | |
| 5239 | -/***/ "../node_modules/@babel/runtime/helpers/nonIterableSpread.js": | |
| 5240 | -/*!*******************************************************************!*\ | |
| 5241 | - !*** ../node_modules/@babel/runtime/helpers/nonIterableSpread.js ***! | |
| 5242 | - \*******************************************************************/ | |
| 5243 | -/***/ ((module) => { | |
| 5244 | - | |
| 5245 | -function _nonIterableSpread() { | |
| 5246 | - throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); | |
| 5247 | -} | |
| 5248 | -module.exports = _nonIterableSpread, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 5249 | - | |
| 5250 | -/***/ }), | |
| 5251 | - | |
| 5252 | -/***/ "../node_modules/@babel/runtime/helpers/objectWithoutProperties.js": | |
| 5253 | -/*!*************************************************************************!*\ | |
| 5254 | - !*** ../node_modules/@babel/runtime/helpers/objectWithoutProperties.js ***! | |
| 5255 | - \*************************************************************************/ | |
| 5256 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 5257 | - | |
| 5258 | -var objectWithoutPropertiesLoose = __webpack_require__(/*! ./objectWithoutPropertiesLoose.js */ "../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js"); | |
| 5259 | -function _objectWithoutProperties(e, t) { | |
| 5260 | - if (null == e) return {}; | |
| 5261 | - var o, | |
| 5262 | - r, | |
| 5263 | - i = objectWithoutPropertiesLoose(e, t); | |
| 5264 | - if (Object.getOwnPropertySymbols) { | |
| 5265 | - var n = Object.getOwnPropertySymbols(e); | |
| 5266 | - for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); | |
| 5267 | - } | |
| 5268 | - return i; | |
| 5269 | -} | |
| 5270 | -module.exports = _objectWithoutProperties, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 5271 | - | |
| 5272 | -/***/ }), | |
| 5273 | - | |
| 5274 | -/***/ "../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js": | |
| 5275 | -/*!******************************************************************************!*\ | |
| 5276 | - !*** ../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js ***! | |
| 5277 | - \******************************************************************************/ | |
| 5278 | -/***/ ((module) => { | |
| 5279 | - | |
| 5280 | -function _objectWithoutPropertiesLoose(r, e) { | |
| 5281 | - if (null == r) return {}; | |
| 5282 | - var t = {}; | |
| 5283 | - for (var n in r) if ({}.hasOwnProperty.call(r, n)) { | |
| 5284 | - if (-1 !== e.indexOf(n)) continue; | |
| 5285 | - t[n] = r[n]; | |
| 5286 | - } | |
| 5287 | - return t; | |
| 5288 | -} | |
| 5289 | -module.exports = _objectWithoutPropertiesLoose, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 5290 | - | |
| 5291 | -/***/ }), | |
| 5292 | - | |
| 5293 | -/***/ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js": | |
| 5294 | -/*!***************************************************************************!*\ | |
| 5295 | - !*** ../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js ***! | |
| 5296 | - \***************************************************************************/ | |
| 5297 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 5298 | - | |
| 5299 | -var _typeof = (__webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/typeof.js")["default"]); | |
| 5300 | -var assertThisInitialized = __webpack_require__(/*! ./assertThisInitialized.js */ "../node_modules/@babel/runtime/helpers/assertThisInitialized.js"); | |
| 5301 | -function _possibleConstructorReturn(t, e) { | |
| 5302 | - if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; | |
| 5303 | - if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); | |
| 5304 | - return assertThisInitialized(t); | |
| 5305 | -} | |
| 5306 | -module.exports = _possibleConstructorReturn, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 5307 | - | |
| 5308 | -/***/ }), | |
| 5309 | - | |
| 5310 | -/***/ "../node_modules/@babel/runtime/helpers/regenerator.js": | |
| 5311 | -/*!*************************************************************!*\ | |
| 5312 | - !*** ../node_modules/@babel/runtime/helpers/regenerator.js ***! | |
| 5313 | - \*************************************************************/ | |
| 5314 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 5315 | - | |
| 5316 | -var regeneratorDefine = __webpack_require__(/*! ./regeneratorDefine.js */ "../node_modules/@babel/runtime/helpers/regeneratorDefine.js"); | |
| 5317 | -function _regenerator() { | |
| 5318 | - /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ | |
| 5319 | - var e, | |
| 5320 | - t, | |
| 5321 | - r = "function" == typeof Symbol ? Symbol : {}, | |
| 5322 | - n = r.iterator || "@@iterator", | |
| 5323 | - o = r.toStringTag || "@@toStringTag"; | |
| 5324 | - function i(r, n, o, i) { | |
| 5325 | - var c = n && n.prototype instanceof Generator ? n : Generator, | |
| 5326 | - u = Object.create(c.prototype); | |
| 5327 | - return regeneratorDefine(u, "_invoke", function (r, n, o) { | |
| 5328 | - var i, | |
| 5329 | - c, | |
| 5330 | - u, | |
| 5331 | - f = 0, | |
| 5332 | - p = o || [], | |
| 5333 | - y = !1, | |
| 5334 | - G = { | |
| 5335 | - p: 0, | |
| 5336 | - n: 0, | |
| 5337 | - v: e, | |
| 5338 | - a: d, | |
| 5339 | - f: d.bind(e, 4), | |
| 5340 | - d: function d(t, r) { | |
| 5341 | - return i = t, c = 0, u = e, G.n = r, a; | |
| 5342 | - } | |
| 5343 | - }; | |
| 5344 | - function d(r, n) { | |
| 5345 | - for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) { | |
| 5346 | - var o, | |
| 5347 | - i = p[t], | |
| 5348 | - d = G.p, | |
| 5349 | - l = i[2]; | |
| 5350 | - r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0)); | |
| 5351 | - } | |
| 5352 | - if (o || r > 1) return a; | |
| 5353 | - throw y = !0, n; | |
| 5354 | - } | |
| 5355 | - return function (o, p, l) { | |
| 5356 | - if (f > 1) throw TypeError("Generator is already running"); | |
| 5357 | - for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) { | |
| 5358 | - i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u); | |
| 5359 | - try { | |
| 5360 | - if (f = 2, i) { | |
| 5361 | - if (c || (o = "next"), t = i[o]) { | |
| 5362 | - if (!(t = t.call(i, u))) throw TypeError("iterator result is not an object"); | |
| 5363 | - if (!t.done) return t; | |
| 5364 | - u = t.value, c < 2 && (c = 0); | |
| 5365 | - } else 1 === c && (t = i["return"]) && t.call(i), c < 2 && (u = TypeError("The iterator does not provide a '" + o + "' method"), c = 1); | |
| 5366 | - i = e; | |
| 5367 | - } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break; | |
| 5368 | - } catch (t) { | |
| 5369 | - i = e, c = 1, u = t; | |
| 5370 | - } finally { | |
| 5371 | - f = 1; | |
| 5372 | - } | |
| 5373 | - } | |
| 5374 | - return { | |
| 5375 | - value: t, | |
| 5376 | - done: y | |
| 5377 | - }; | |
| 5378 | - }; | |
| 5379 | - }(r, o, i), !0), u; | |
| 5380 | - } | |
| 5381 | - var a = {}; | |
| 5382 | - function Generator() {} | |
| 5383 | - function GeneratorFunction() {} | |
| 5384 | - function GeneratorFunctionPrototype() {} | |
| 5385 | - t = Object.getPrototypeOf; | |
| 5386 | - var c = [][n] ? t(t([][n]())) : (regeneratorDefine(t = {}, n, function () { | |
| 5387 | - return this; | |
| 5388 | - }), t), | |
| 5389 | - u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c); | |
| 5390 | - function f(e) { | |
| 5391 | - return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, regeneratorDefine(e, o, "GeneratorFunction")), e.prototype = Object.create(u), e; | |
| 5392 | - } | |
| 5393 | - return GeneratorFunction.prototype = GeneratorFunctionPrototype, regeneratorDefine(u, "constructor", GeneratorFunctionPrototype), regeneratorDefine(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = "GeneratorFunction", regeneratorDefine(GeneratorFunctionPrototype, o, "GeneratorFunction"), regeneratorDefine(u), regeneratorDefine(u, o, "Generator"), regeneratorDefine(u, n, function () { | |
| 5394 | - return this; | |
| 5395 | - }), regeneratorDefine(u, "toString", function () { | |
| 5396 | - return "[object Generator]"; | |
| 5397 | - }), (module.exports = _regenerator = function _regenerator() { | |
| 5398 | - return { | |
| 5399 | - w: i, | |
| 5400 | - m: f | |
| 5401 | - }; | |
| 5402 | - }, module.exports.__esModule = true, module.exports["default"] = module.exports)(); | |
| 5403 | -} | |
| 5404 | -module.exports = _regenerator, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 5405 | - | |
| 5406 | -/***/ }), | |
| 5407 | - | |
| 5408 | -/***/ "../node_modules/@babel/runtime/helpers/regeneratorAsync.js": | |
| 5409 | -/*!******************************************************************!*\ | |
| 5410 | - !*** ../node_modules/@babel/runtime/helpers/regeneratorAsync.js ***! | |
| 5411 | - \******************************************************************/ | |
| 5412 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 5413 | - | |
| 5414 | -var regeneratorAsyncGen = __webpack_require__(/*! ./regeneratorAsyncGen.js */ "../node_modules/@babel/runtime/helpers/regeneratorAsyncGen.js"); | |
| 5415 | -function _regeneratorAsync(n, e, r, t, o) { | |
| 5416 | - var a = regeneratorAsyncGen(n, e, r, t, o); | |
| 5417 | - return a.next().then(function (n) { | |
| 5418 | - return n.done ? n.value : a.next(); | |
| 5419 | - }); | |
| 5420 | -} | |
| 5421 | -module.exports = _regeneratorAsync, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 5422 | - | |
| 5423 | -/***/ }), | |
| 5424 | - | |
| 5425 | -/***/ "../node_modules/@babel/runtime/helpers/regeneratorAsyncGen.js": | |
| 5426 | -/*!*********************************************************************!*\ | |
| 5427 | - !*** ../node_modules/@babel/runtime/helpers/regeneratorAsyncGen.js ***! | |
| 5428 | - \*********************************************************************/ | |
| 5429 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 5430 | - | |
| 5431 | -var regenerator = __webpack_require__(/*! ./regenerator.js */ "../node_modules/@babel/runtime/helpers/regenerator.js"); | |
| 5432 | -var regeneratorAsyncIterator = __webpack_require__(/*! ./regeneratorAsyncIterator.js */ "../node_modules/@babel/runtime/helpers/regeneratorAsyncIterator.js"); | |
| 5433 | -function _regeneratorAsyncGen(r, e, t, o, n) { | |
| 5434 | - return new regeneratorAsyncIterator(regenerator().w(r, e, t, o), n || Promise); | |
| 5435 | -} | |
| 5436 | -module.exports = _regeneratorAsyncGen, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 5437 | - | |
| 5438 | -/***/ }), | |
| 5439 | - | |
| 5440 | -/***/ "../node_modules/@babel/runtime/helpers/regeneratorAsyncIterator.js": | |
| 5441 | -/*!**************************************************************************!*\ | |
| 5442 | - !*** ../node_modules/@babel/runtime/helpers/regeneratorAsyncIterator.js ***! | |
| 5443 | - \**************************************************************************/ | |
| 5444 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 5445 | - | |
| 5446 | -var OverloadYield = __webpack_require__(/*! ./OverloadYield.js */ "../node_modules/@babel/runtime/helpers/OverloadYield.js"); | |
| 5447 | -var regeneratorDefine = __webpack_require__(/*! ./regeneratorDefine.js */ "../node_modules/@babel/runtime/helpers/regeneratorDefine.js"); | |
| 5448 | -function AsyncIterator(t, e) { | |
| 5449 | - function n(r, o, i, f) { | |
| 5450 | - try { | |
| 5451 | - var c = t[r](o), | |
| 5452 | - u = c.value; | |
| 5453 | - return u instanceof OverloadYield ? e.resolve(u.v).then(function (t) { | |
| 5454 | - n("next", t, i, f); | |
| 5455 | - }, function (t) { | |
| 5456 | - n("throw", t, i, f); | |
| 5457 | - }) : e.resolve(u).then(function (t) { | |
| 5458 | - c.value = t, i(c); | |
| 5459 | - }, function (t) { | |
| 5460 | - return n("throw", t, i, f); | |
| 5461 | - }); | |
| 5462 | - } catch (t) { | |
| 5463 | - f(t); | |
| 5464 | - } | |
| 5465 | - } | |
| 5466 | - var r; | |
| 5467 | - this.next || (regeneratorDefine(AsyncIterator.prototype), regeneratorDefine(AsyncIterator.prototype, "function" == typeof Symbol && Symbol.asyncIterator || "@asyncIterator", function () { | |
| 5468 | - return this; | |
| 5469 | - })), regeneratorDefine(this, "_invoke", function (t, o, i) { | |
| 5470 | - function f() { | |
| 5471 | - return new e(function (e, r) { | |
| 5472 | - n(t, i, e, r); | |
| 5473 | - }); | |
| 5474 | - } | |
| 5475 | - return r = r ? r.then(f, f) : f(); | |
| 5476 | - }, !0); | |
| 5477 | -} | |
| 5478 | -module.exports = AsyncIterator, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 5479 | - | |
| 5480 | -/***/ }), | |
| 5481 | - | |
| 5482 | -/***/ "../node_modules/@babel/runtime/helpers/regeneratorDefine.js": | |
| 5483 | -/*!*******************************************************************!*\ | |
| 5484 | - !*** ../node_modules/@babel/runtime/helpers/regeneratorDefine.js ***! | |
| 5485 | - \*******************************************************************/ | |
| 5486 | -/***/ ((module) => { | |
| 5487 | - | |
| 5488 | -function _regeneratorDefine(e, r, n, t) { | |
| 5489 | - var i = Object.defineProperty; | |
| 5490 | - try { | |
| 5491 | - i({}, "", {}); | |
| 5492 | - } catch (e) { | |
| 5493 | - i = 0; | |
| 5494 | - } | |
| 5495 | - module.exports = _regeneratorDefine = function regeneratorDefine(e, r, n, t) { | |
| 5496 | - function o(r, n) { | |
| 5497 | - _regeneratorDefine(e, r, function (e) { | |
| 5498 | - return this._invoke(r, n, e); | |
| 5499 | - }); | |
| 5500 | - } | |
| 5501 | - r ? i ? i(e, r, { | |
| 5502 | - value: n, | |
| 5503 | - enumerable: !t, | |
| 5504 | - configurable: !t, | |
| 5505 | - writable: !t | |
| 5506 | - }) : e[r] = n : (o("next", 0), o("throw", 1), o("return", 2)); | |
| 5507 | - }, module.exports.__esModule = true, module.exports["default"] = module.exports, _regeneratorDefine(e, r, n, t); | |
| 5508 | -} | |
| 5509 | -module.exports = _regeneratorDefine, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 5510 | - | |
| 5511 | -/***/ }), | |
| 5512 | - | |
| 5513 | -/***/ "../node_modules/@babel/runtime/helpers/regeneratorKeys.js": | |
| 5514 | -/*!*****************************************************************!*\ | |
| 5515 | - !*** ../node_modules/@babel/runtime/helpers/regeneratorKeys.js ***! | |
| 5516 | - \*****************************************************************/ | |
| 5517 | -/***/ ((module) => { | |
| 5518 | - | |
| 5519 | -function _regeneratorKeys(e) { | |
| 5520 | - var n = Object(e), | |
| 5521 | - r = []; | |
| 5522 | - for (var t in n) r.unshift(t); | |
| 5523 | - return function e() { | |
| 5524 | - for (; r.length;) if ((t = r.pop()) in n) return e.value = t, e.done = !1, e; | |
| 5525 | - return e.done = !0, e; | |
| 5526 | - }; | |
| 5527 | -} | |
| 5528 | -module.exports = _regeneratorKeys, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 5529 | - | |
| 5530 | -/***/ }), | |
| 5531 | - | |
| 5532 | -/***/ "../node_modules/@babel/runtime/helpers/regeneratorRuntime.js": | |
| 5533 | -/*!********************************************************************!*\ | |
| 5534 | - !*** ../node_modules/@babel/runtime/helpers/regeneratorRuntime.js ***! | |
| 5535 | - \********************************************************************/ | |
| 5536 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 5537 | - | |
| 5538 | -var OverloadYield = __webpack_require__(/*! ./OverloadYield.js */ "../node_modules/@babel/runtime/helpers/OverloadYield.js"); | |
| 5539 | -var regenerator = __webpack_require__(/*! ./regenerator.js */ "../node_modules/@babel/runtime/helpers/regenerator.js"); | |
| 5540 | -var regeneratorAsync = __webpack_require__(/*! ./regeneratorAsync.js */ "../node_modules/@babel/runtime/helpers/regeneratorAsync.js"); | |
| 5541 | -var regeneratorAsyncGen = __webpack_require__(/*! ./regeneratorAsyncGen.js */ "../node_modules/@babel/runtime/helpers/regeneratorAsyncGen.js"); | |
| 5542 | -var regeneratorAsyncIterator = __webpack_require__(/*! ./regeneratorAsyncIterator.js */ "../node_modules/@babel/runtime/helpers/regeneratorAsyncIterator.js"); | |
| 5543 | -var regeneratorKeys = __webpack_require__(/*! ./regeneratorKeys.js */ "../node_modules/@babel/runtime/helpers/regeneratorKeys.js"); | |
| 5544 | -var regeneratorValues = __webpack_require__(/*! ./regeneratorValues.js */ "../node_modules/@babel/runtime/helpers/regeneratorValues.js"); | |
| 5545 | -function _regeneratorRuntime() { | |
| 5546 | - "use strict"; | |
| 5547 | - | |
| 5548 | - var r = regenerator(), | |
| 5549 | - e = r.m(_regeneratorRuntime), | |
| 5550 | - t = (Object.getPrototypeOf ? Object.getPrototypeOf(e) : e.__proto__).constructor; | |
| 5551 | - function n(r) { | |
| 5552 | - var e = "function" == typeof r && r.constructor; | |
| 5553 | - return !!e && (e === t || "GeneratorFunction" === (e.displayName || e.name)); | |
| 5554 | - } | |
| 5555 | - var o = { | |
| 5556 | - "throw": 1, | |
| 5557 | - "return": 2, | |
| 5558 | - "break": 3, | |
| 5559 | - "continue": 3 | |
| 5560 | - }; | |
| 5561 | - function a(r) { | |
| 5562 | - var e, t; | |
| 5563 | - return function (n) { | |
| 5564 | - e || (e = { | |
| 5565 | - stop: function stop() { | |
| 5566 | - return t(n.a, 2); | |
| 5567 | - }, | |
| 5568 | - "catch": function _catch() { | |
| 5569 | - return n.v; | |
| 5570 | - }, | |
| 5571 | - abrupt: function abrupt(r, e) { | |
| 5572 | - return t(n.a, o[r], e); | |
| 5573 | - }, | |
| 5574 | - delegateYield: function delegateYield(r, o, a) { | |
| 5575 | - return e.resultName = o, t(n.d, regeneratorValues(r), a); | |
| 5576 | - }, | |
| 5577 | - finish: function finish(r) { | |
| 5578 | - return t(n.f, r); | |
| 5579 | - } | |
| 5580 | - }, t = function t(r, _t, o) { | |
| 5581 | - n.p = e.prev, n.n = e.next; | |
| 5582 | - try { | |
| 5583 | - return r(_t, o); | |
| 5584 | - } finally { | |
| 5585 | - e.next = n.n; | |
| 5586 | - } | |
| 5587 | - }), e.resultName && (e[e.resultName] = n.v, e.resultName = void 0), e.sent = n.v, e.next = n.n; | |
| 5588 | - try { | |
| 5589 | - return r.call(this, e); | |
| 5590 | - } finally { | |
| 5591 | - n.p = e.prev, n.n = e.next; | |
| 5592 | - } | |
| 5593 | - }; | |
| 5594 | - } | |
| 5595 | - return (module.exports = _regeneratorRuntime = function _regeneratorRuntime() { | |
| 5596 | - return { | |
| 5597 | - wrap: function wrap(e, t, n, o) { | |
| 5598 | - return r.w(a(e), t, n, o && o.reverse()); | |
| 5599 | - }, | |
| 5600 | - isGeneratorFunction: n, | |
| 5601 | - mark: r.m, | |
| 5602 | - awrap: function awrap(r, e) { | |
| 5603 | - return new OverloadYield(r, e); | |
| 5604 | - }, | |
| 5605 | - AsyncIterator: regeneratorAsyncIterator, | |
| 5606 | - async: function async(r, e, t, o, u) { | |
| 5607 | - return (n(e) ? regeneratorAsyncGen : regeneratorAsync)(a(r), e, t, o, u); | |
| 5608 | - }, | |
| 5609 | - keys: regeneratorKeys, | |
| 5610 | - values: regeneratorValues | |
| 5611 | - }; | |
| 5612 | - }, module.exports.__esModule = true, module.exports["default"] = module.exports)(); | |
| 5613 | -} | |
| 5614 | -module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 5615 | - | |
| 5616 | -/***/ }), | |
| 5617 | - | |
| 5618 | -/***/ "../node_modules/@babel/runtime/helpers/regeneratorValues.js": | |
| 5619 | -/*!*******************************************************************!*\ | |
| 5620 | - !*** ../node_modules/@babel/runtime/helpers/regeneratorValues.js ***! | |
| 5621 | - \*******************************************************************/ | |
| 5622 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 5623 | - | |
| 5624 | -var _typeof = (__webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/typeof.js")["default"]); | |
| 5625 | -function _regeneratorValues(e) { | |
| 5626 | - if (null != e) { | |
| 5627 | - var t = e["function" == typeof Symbol && Symbol.iterator || "@@iterator"], | |
| 5628 | - r = 0; | |
| 5629 | - if (t) return t.call(e); | |
| 5630 | - if ("function" == typeof e.next) return e; | |
| 5631 | - if (!isNaN(e.length)) return { | |
| 5632 | - next: function next() { | |
| 5633 | - return e && r >= e.length && (e = void 0), { | |
| 5634 | - value: e && e[r++], | |
| 5635 | - done: !e | |
| 5636 | - }; | |
| 5637 | - } | |
| 5638 | - }; | |
| 5639 | - } | |
| 5640 | - throw new TypeError(_typeof(e) + " is not iterable"); | |
| 5641 | -} | |
| 5642 | -module.exports = _regeneratorValues, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 5643 | - | |
| 5644 | -/***/ }), | |
| 5645 | - | |
| 5646 | -/***/ "../node_modules/@babel/runtime/helpers/setPrototypeOf.js": | |
| 5647 | -/*!****************************************************************!*\ | |
| 5648 | - !*** ../node_modules/@babel/runtime/helpers/setPrototypeOf.js ***! | |
| 5649 | - \****************************************************************/ | |
| 5650 | -/***/ ((module) => { | |
| 5651 | - | |
| 5652 | -function _setPrototypeOf(t, e) { | |
| 5653 | - return module.exports = _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { | |
| 5654 | - return t.__proto__ = e, t; | |
| 5655 | - }, module.exports.__esModule = true, module.exports["default"] = module.exports, _setPrototypeOf(t, e); | |
| 5656 | -} | |
| 5657 | -module.exports = _setPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 5658 | - | |
| 5659 | -/***/ }), | |
| 5660 | - | |
| 5661 | -/***/ "../node_modules/@babel/runtime/helpers/slicedToArray.js": | |
| 5662 | -/*!***************************************************************!*\ | |
| 5663 | - !*** ../node_modules/@babel/runtime/helpers/slicedToArray.js ***! | |
| 5664 | - \***************************************************************/ | |
| 5665 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 5666 | - | |
| 5667 | -var arrayWithHoles = __webpack_require__(/*! ./arrayWithHoles.js */ "../node_modules/@babel/runtime/helpers/arrayWithHoles.js"); | |
| 5668 | -var iterableToArrayLimit = __webpack_require__(/*! ./iterableToArrayLimit.js */ "../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js"); | |
| 5669 | -var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ "../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js"); | |
| 5670 | -var nonIterableRest = __webpack_require__(/*! ./nonIterableRest.js */ "../node_modules/@babel/runtime/helpers/nonIterableRest.js"); | |
| 5671 | -function _slicedToArray(r, e) { | |
| 5672 | - return arrayWithHoles(r) || iterableToArrayLimit(r, e) || unsupportedIterableToArray(r, e) || nonIterableRest(); | |
| 5673 | -} | |
| 5674 | -module.exports = _slicedToArray, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 5675 | - | |
| 5676 | -/***/ }), | |
| 5677 | - | |
| 5678 | -/***/ "../node_modules/@babel/runtime/helpers/superPropBase.js": | |
| 5679 | -/*!***************************************************************!*\ | |
| 5680 | - !*** ../node_modules/@babel/runtime/helpers/superPropBase.js ***! | |
| 5681 | - \***************************************************************/ | |
| 5682 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 5683 | - | |
| 5684 | -var getPrototypeOf = __webpack_require__(/*! ./getPrototypeOf.js */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js"); | |
| 5685 | -function _superPropBase(t, o) { | |
| 5686 | - for (; !{}.hasOwnProperty.call(t, o) && null !== (t = getPrototypeOf(t));); | |
| 5687 | - return t; | |
| 5688 | -} | |
| 5689 | -module.exports = _superPropBase, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 5690 | - | |
| 5691 | -/***/ }), | |
| 5692 | - | |
| 5693 | -/***/ "../node_modules/@babel/runtime/helpers/toConsumableArray.js": | |
| 5694 | -/*!*******************************************************************!*\ | |
| 5695 | - !*** ../node_modules/@babel/runtime/helpers/toConsumableArray.js ***! | |
| 5696 | - \*******************************************************************/ | |
| 5697 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 5698 | - | |
| 5699 | -var arrayWithoutHoles = __webpack_require__(/*! ./arrayWithoutHoles.js */ "../node_modules/@babel/runtime/helpers/arrayWithoutHoles.js"); | |
| 5700 | -var iterableToArray = __webpack_require__(/*! ./iterableToArray.js */ "../node_modules/@babel/runtime/helpers/iterableToArray.js"); | |
| 5701 | -var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ "../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js"); | |
| 5702 | -var nonIterableSpread = __webpack_require__(/*! ./nonIterableSpread.js */ "../node_modules/@babel/runtime/helpers/nonIterableSpread.js"); | |
| 5703 | -function _toConsumableArray(r) { | |
| 5704 | - return arrayWithoutHoles(r) || iterableToArray(r) || unsupportedIterableToArray(r) || nonIterableSpread(); | |
| 5705 | -} | |
| 5706 | -module.exports = _toConsumableArray, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 5707 | - | |
| 5708 | -/***/ }), | |
| 5709 | - | |
| 5710 | -/***/ "../node_modules/@babel/runtime/helpers/toPrimitive.js": | |
| 5711 | -/*!*************************************************************!*\ | |
| 5712 | - !*** ../node_modules/@babel/runtime/helpers/toPrimitive.js ***! | |
| 5713 | - \*************************************************************/ | |
| 5714 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 5715 | - | |
| 5716 | -var _typeof = (__webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/typeof.js")["default"]); | |
| 5717 | -function toPrimitive(t, r) { | |
| 5718 | - if ("object" != _typeof(t) || !t) return t; | |
| 5719 | - var e = t[Symbol.toPrimitive]; | |
| 5720 | - if (void 0 !== e) { | |
| 5721 | - var i = e.call(t, r || "default"); | |
| 5722 | - if ("object" != _typeof(i)) return i; | |
| 5723 | - throw new TypeError("@@toPrimitive must return a primitive value."); | |
| 5724 | - } | |
| 5725 | - return ("string" === r ? String : Number)(t); | |
| 5726 | -} | |
| 5727 | -module.exports = toPrimitive, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 5728 | - | |
| 5729 | -/***/ }), | |
| 5730 | - | |
| 5731 | -/***/ "../node_modules/@babel/runtime/helpers/toPropertyKey.js": | |
| 5732 | -/*!***************************************************************!*\ | |
| 5733 | - !*** ../node_modules/@babel/runtime/helpers/toPropertyKey.js ***! | |
| 5734 | - \***************************************************************/ | |
| 5735 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 5736 | - | |
| 5737 | -var _typeof = (__webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/typeof.js")["default"]); | |
| 5738 | -var toPrimitive = __webpack_require__(/*! ./toPrimitive.js */ "../node_modules/@babel/runtime/helpers/toPrimitive.js"); | |
| 5739 | -function toPropertyKey(t) { | |
| 5740 | - var i = toPrimitive(t, "string"); | |
| 5741 | - return "symbol" == _typeof(i) ? i : i + ""; | |
| 5742 | -} | |
| 5743 | -module.exports = toPropertyKey, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 5744 | - | |
| 5745 | -/***/ }), | |
| 5746 | - | |
| 5747 | -/***/ "../node_modules/@babel/runtime/helpers/typeof.js": | |
| 5748 | -/*!********************************************************!*\ | |
| 5749 | - !*** ../node_modules/@babel/runtime/helpers/typeof.js ***! | |
| 5750 | - \********************************************************/ | |
| 5751 | -/***/ ((module) => { | |
| 5752 | - | |
| 5753 | -function _typeof(o) { | |
| 5754 | - "@babel/helpers - typeof"; | |
| 5755 | - | |
| 5756 | - return module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { | |
| 5757 | - return typeof o; | |
| 5758 | - } : function (o) { | |
| 5759 | - return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; | |
| 5760 | - }, module.exports.__esModule = true, module.exports["default"] = module.exports, _typeof(o); | |
| 5761 | -} | |
| 5762 | -module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 5763 | - | |
| 5764 | -/***/ }), | |
| 5765 | - | |
| 5766 | -/***/ "../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js": | |
| 5767 | -/*!****************************************************************************!*\ | |
| 5768 | - !*** ../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js ***! | |
| 5769 | - \****************************************************************************/ | |
| 5770 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 5771 | - | |
| 5772 | -var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ "../node_modules/@babel/runtime/helpers/arrayLikeToArray.js"); | |
| 5773 | -function _unsupportedIterableToArray(r, a) { | |
| 5774 | - if (r) { | |
| 5775 | - if ("string" == typeof r) return arrayLikeToArray(r, a); | |
| 5776 | - var t = {}.toString.call(r).slice(8, -1); | |
| 5777 | - 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; | |
| 5778 | - } | |
| 5779 | -} | |
| 5780 | -module.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 5781 | - | |
| 5782 | -/***/ }), | |
| 5783 | - | |
| 5784 | -/***/ "../node_modules/@babel/runtime/regenerator/index.js": | |
| 5785 | -/*!***********************************************************!*\ | |
| 5786 | - !*** ../node_modules/@babel/runtime/regenerator/index.js ***! | |
| 5787 | - \***********************************************************/ | |
| 5788 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 5789 | - | |
| 5790 | -// TODO(Babel 8): Remove this file. | |
| 5791 | - | |
| 5792 | -var runtime = __webpack_require__(/*! ../helpers/regeneratorRuntime */ "../node_modules/@babel/runtime/helpers/regeneratorRuntime.js")(); | |
| 5793 | -module.exports = runtime; | |
| 5794 | - | |
| 5795 | -// Copied from https://github.com/facebook/regenerator/blob/main/packages/runtime/runtime.js#L736= | |
| 5796 | -try { | |
| 5797 | - regeneratorRuntime = runtime; | |
| 5798 | -} catch (accidentalStrictMode) { | |
| 5799 | - if (typeof globalThis === "object") { | |
| 5800 | - globalThis.regeneratorRuntime = runtime; | |
| 5801 | - } else { | |
| 5802 | - Function("r", "regeneratorRuntime = r")(runtime); | |
| 5803 | - } | |
| 5804 | -} | |
| 5805 | - | |
| 5806 | - | |
| 5807 | -/***/ }), | |
| 5808 | - | |
| 5809 | -/***/ "../node_modules/@reach/router/es/index.js": | |
| 5810 | -/*!*************************************************!*\ | |
| 5811 | - !*** ../node_modules/@reach/router/es/index.js ***! | |
| 5812 | - \*************************************************/ | |
| 5813 | -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { | |
| 5814 | - | |
| 5815 | -"use strict"; | |
| 5816 | -__webpack_require__.r(__webpack_exports__); | |
| 5817 | -/* harmony export */ __webpack_require__.d(__webpack_exports__, { | |
| 5818 | -/* harmony export */ Link: () => (/* binding */ Link), | |
| 5819 | -/* harmony export */ Location: () => (/* binding */ Location), | |
| 5820 | -/* harmony export */ LocationProvider: () => (/* binding */ LocationProvider), | |
| 5821 | -/* harmony export */ Match: () => (/* binding */ Match), | |
| 5822 | -/* harmony export */ Redirect: () => (/* binding */ Redirect), | |
| 5823 | -/* harmony export */ Router: () => (/* binding */ Router), | |
| 5824 | -/* harmony export */ ServerLocation: () => (/* binding */ ServerLocation), | |
| 5825 | -/* harmony export */ createHistory: () => (/* reexport safe */ _lib_history__WEBPACK_IMPORTED_MODULE_6__.createHistory), | |
| 5826 | -/* harmony export */ createMemorySource: () => (/* reexport safe */ _lib_history__WEBPACK_IMPORTED_MODULE_6__.createMemorySource), | |
| 5827 | -/* harmony export */ globalHistory: () => (/* reexport safe */ _lib_history__WEBPACK_IMPORTED_MODULE_6__.globalHistory), | |
| 5828 | -/* harmony export */ isRedirect: () => (/* binding */ isRedirect), | |
| 5829 | -/* harmony export */ matchPath: () => (/* reexport safe */ _lib_utils__WEBPACK_IMPORTED_MODULE_5__.match), | |
| 5830 | -/* harmony export */ navigate: () => (/* reexport safe */ _lib_history__WEBPACK_IMPORTED_MODULE_6__.navigate), | |
| 5831 | -/* harmony export */ redirectTo: () => (/* binding */ redirectTo), | |
| 5832 | -/* harmony export */ useLocation: () => (/* binding */ useLocation), | |
| 5833 | -/* harmony export */ useMatch: () => (/* binding */ useMatch), | |
| 5834 | -/* harmony export */ useNavigate: () => (/* binding */ useNavigate), | |
| 5835 | -/* harmony export */ useParams: () => (/* binding */ useParams) | |
| 5836 | -/* harmony export */ }); | |
| 5837 | -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react"); | |
| 5838 | -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); | |
| 5839 | -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js"); | |
| 5840 | -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__); | |
| 5841 | -/* harmony import */ var invariant__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! invariant */ "../node_modules/invariant/browser.js"); | |
| 5842 | -/* harmony import */ var invariant__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(invariant__WEBPACK_IMPORTED_MODULE_2__); | |
| 5843 | -/* harmony import */ var create_react_context__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! create-react-context */ "../node_modules/create-react-context/lib/index.js"); | |
| 5844 | -/* harmony import */ var create_react_context__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(create_react_context__WEBPACK_IMPORTED_MODULE_3__); | |
| 5845 | -/* harmony import */ var react_lifecycles_compat__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react-lifecycles-compat */ "../node_modules/react-lifecycles-compat/react-lifecycles-compat.es.js"); | |
| 5846 | -/* harmony import */ var _lib_utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./lib/utils */ "../node_modules/@reach/router/es/lib/utils.js"); | |
| 5847 | -/* harmony import */ var _lib_history__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./lib/history */ "../node_modules/@reach/router/es/lib/history.js"); | |
| 5848 | -var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; | |
| 5849 | - | |
| 5850 | -function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } | |
| 5851 | - | |
| 5852 | -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } | |
| 5853 | - | |
| 5854 | -function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } | |
| 5855 | - | |
| 5856 | -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } | |
| 5857 | - | |
| 5858 | -/* eslint-disable jsx-a11y/anchor-has-content */ | |
| 5859 | - | |
| 5860 | - | |
| 5861 | - | |
| 5862 | - | |
| 5863 | - | |
| 5864 | - | |
| 5865 | - | |
| 5866 | - | |
| 5867 | -//////////////////////////////////////////////////////////////////////////////// | |
| 5868 | - | |
| 5869 | -var createNamedContext = function createNamedContext(name, defaultValue) { | |
| 5870 | - var Ctx = create_react_context__WEBPACK_IMPORTED_MODULE_3___default()(defaultValue); | |
| 5871 | - Ctx.displayName = name; | |
| 5872 | - return Ctx; | |
| 5873 | -}; | |
| 5874 | - | |
| 5875 | -//////////////////////////////////////////////////////////////////////////////// | |
| 5876 | -// Location Context/Provider | |
| 5877 | -var LocationContext = createNamedContext("Location"); | |
| 5878 | - | |
| 5879 | -// sets up a listener if there isn't one already so apps don't need to be | |
| 5880 | -// wrapped in some top level provider | |
| 5881 | -var Location = function Location(_ref) { | |
| 5882 | - var children = _ref.children; | |
| 5883 | - return react__WEBPACK_IMPORTED_MODULE_0___default().createElement( | |
| 5884 | - LocationContext.Consumer, | |
| 5885 | - null, | |
| 5886 | - function (context) { | |
| 5887 | - return context ? children(context) : react__WEBPACK_IMPORTED_MODULE_0___default().createElement( | |
| 5888 | - LocationProvider, | |
| 5889 | - null, | |
| 5890 | - children | |
| 5891 | - ); | |
| 5892 | - } | |
| 5893 | - ); | |
| 5894 | -}; | |
| 5895 | - | |
| 5896 | -var LocationProvider = function (_React$Component) { | |
| 5897 | - _inherits(LocationProvider, _React$Component); | |
| 5898 | - | |
| 5899 | - function LocationProvider() { | |
| 5900 | - var _temp, _this, _ret; | |
| 5901 | - | |
| 5902 | - _classCallCheck(this, LocationProvider); | |
| 5903 | - | |
| 5904 | - for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) { | |
| 5905 | - args[_key] = arguments[_key]; | |
| 5906 | - } | |
| 5907 | - | |
| 5908 | - return _ret = (_temp = (_this = _possibleConstructorReturn(this, _React$Component.call.apply(_React$Component, [this].concat(args))), _this), _this.state = { | |
| 5909 | - context: _this.getContext(), | |
| 5910 | - refs: { unlisten: null } | |
| 5911 | - }, _temp), _possibleConstructorReturn(_this, _ret); | |
| 5912 | - } | |
| 5913 | - | |
| 5914 | - LocationProvider.prototype.getContext = function getContext() { | |
| 5915 | - var _props$history = this.props.history, | |
| 5916 | - navigate = _props$history.navigate, | |
| 5917 | - location = _props$history.location; | |
| 5918 | - | |
| 5919 | - return { navigate: navigate, location: location }; | |
| 5920 | - }; | |
| 5921 | - | |
| 5922 | - LocationProvider.prototype.componentDidCatch = function componentDidCatch(error, info) { | |
| 5923 | - if (isRedirect(error)) { | |
| 5924 | - var _navigate = this.props.history.navigate; | |
| 5925 | - | |
| 5926 | - _navigate(error.uri, { replace: true }); | |
| 5927 | - } else { | |
| 5928 | - throw error; | |
| 5929 | - } | |
| 5930 | - }; | |
| 5931 | - | |
| 5932 | - LocationProvider.prototype.componentDidUpdate = function componentDidUpdate(prevProps, prevState) { | |
| 5933 | - if (prevState.context.location !== this.state.context.location) { | |
| 5934 | - this.props.history._onTransitionComplete(); | |
| 5935 | - } | |
| 5936 | - }; | |
| 5937 | - | |
| 5938 | - LocationProvider.prototype.componentDidMount = function componentDidMount() { | |
| 5939 | - var _this2 = this; | |
| 5940 | - | |
| 5941 | - var refs = this.state.refs, | |
| 5942 | - history = this.props.history; | |
| 5943 | - | |
| 5944 | - history._onTransitionComplete(); | |
| 5945 | - refs.unlisten = history.listen(function () { | |
| 5946 | - Promise.resolve().then(function () { | |
| 5947 | - // TODO: replace rAF with react deferred update API when it's ready https://github.com/facebook/react/issues/13306 | |
| 5948 | - requestAnimationFrame(function () { | |
| 5949 | - if (!_this2.unmounted) { | |
| 5950 | - _this2.setState(function () { | |
| 5951 | - return { context: _this2.getContext() }; | |
| 5952 | - }); | |
| 5953 | - } | |
| 5954 | - }); | |
| 5955 | - }); | |
| 5956 | - }); | |
| 5957 | - }; | |
| 5958 | - | |
| 5959 | - LocationProvider.prototype.componentWillUnmount = function componentWillUnmount() { | |
| 5960 | - var refs = this.state.refs; | |
| 5961 | - | |
| 5962 | - this.unmounted = true; | |
| 5963 | - refs.unlisten(); | |
| 5964 | - }; | |
| 5965 | - | |
| 5966 | - LocationProvider.prototype.render = function render() { | |
| 5967 | - var context = this.state.context, | |
| 5968 | - children = this.props.children; | |
| 5969 | - | |
| 5970 | - return react__WEBPACK_IMPORTED_MODULE_0___default().createElement( | |
| 5971 | - LocationContext.Provider, | |
| 5972 | - { value: context }, | |
| 5973 | - typeof children === "function" ? children(context) : children || null | |
| 5974 | - ); | |
| 5975 | - }; | |
| 5976 | - | |
| 5977 | - return LocationProvider; | |
| 5978 | -}((react__WEBPACK_IMPORTED_MODULE_0___default().Component)); | |
| 5979 | - | |
| 5980 | -//////////////////////////////////////////////////////////////////////////////// | |
| 5981 | - | |
| 5982 | - | |
| 5983 | -LocationProvider.defaultProps = { | |
| 5984 | - history: _lib_history__WEBPACK_IMPORTED_MODULE_6__.globalHistory | |
| 5985 | -}; | |
| 5986 | - true ? LocationProvider.propTypes = { | |
| 5987 | - history: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().object).isRequired | |
| 5988 | -} : 0; | |
| 5989 | -var ServerLocation = function ServerLocation(_ref2) { | |
| 5990 | - var url = _ref2.url, | |
| 5991 | - children = _ref2.children; | |
| 5992 | - | |
| 5993 | - var searchIndex = url.indexOf("?"); | |
| 5994 | - var searchExists = searchIndex > -1; | |
| 5995 | - var pathname = void 0; | |
| 5996 | - var search = ""; | |
| 5997 | - var hash = ""; | |
| 5998 | - | |
| 5999 | - if (searchExists) { | |
| 6000 | - pathname = url.substring(0, searchIndex); | |
| 6001 | - search = url.substring(searchIndex); | |
| 6002 | - } else { | |
| 6003 | - pathname = url; | |
| 6004 | - } | |
| 6005 | - | |
| 6006 | - return react__WEBPACK_IMPORTED_MODULE_0___default().createElement( | |
| 6007 | - LocationContext.Provider, | |
| 6008 | - { | |
| 6009 | - value: { | |
| 6010 | - location: { | |
| 6011 | - pathname: pathname, | |
| 6012 | - search: search, | |
| 6013 | - hash: hash | |
| 6014 | - }, | |
| 6015 | - navigate: function navigate() { | |
| 6016 | - throw new Error("You can't call navigate on the server."); | |
| 6017 | - } | |
| 6018 | - } | |
| 6019 | - }, | |
| 6020 | - children | |
| 6021 | - ); | |
| 6022 | -}; | |
| 6023 | -//////////////////////////////////////////////////////////////////////////////// | |
| 6024 | -// Sets baseuri and basepath for nested routers and links | |
| 6025 | -var BaseContext = createNamedContext("Base", { baseuri: "/", basepath: "/" }); | |
| 6026 | - | |
| 6027 | -//////////////////////////////////////////////////////////////////////////////// | |
| 6028 | -// The main event, welcome to the show everybody. | |
| 6029 | -var Router = function Router(props) { | |
| 6030 | - return react__WEBPACK_IMPORTED_MODULE_0___default().createElement( | |
| 6031 | - BaseContext.Consumer, | |
| 6032 | - null, | |
| 6033 | - function (baseContext) { | |
| 6034 | - return react__WEBPACK_IMPORTED_MODULE_0___default().createElement( | |
| 6035 | - Location, | |
| 6036 | - null, | |
| 6037 | - function (locationContext) { | |
| 6038 | - return react__WEBPACK_IMPORTED_MODULE_0___default().createElement(RouterImpl, _extends({}, baseContext, locationContext, props)); | |
| 6039 | - } | |
| 6040 | - ); | |
| 6041 | - } | |
| 6042 | - ); | |
| 6043 | -}; | |
| 6044 | - | |
| 6045 | -var RouterImpl = function (_React$PureComponent) { | |
| 6046 | - _inherits(RouterImpl, _React$PureComponent); | |
| 6047 | - | |
| 6048 | - function RouterImpl() { | |
| 6049 | - _classCallCheck(this, RouterImpl); | |
| 6050 | - | |
| 6051 | - return _possibleConstructorReturn(this, _React$PureComponent.apply(this, arguments)); | |
| 6052 | - } | |
| 6053 | - | |
| 6054 | - RouterImpl.prototype.render = function render() { | |
| 6055 | - var _props = this.props, | |
| 6056 | - location = _props.location, | |
| 6057 | - _navigate2 = _props.navigate, | |
| 6058 | - basepath = _props.basepath, | |
| 6059 | - primary = _props.primary, | |
| 6060 | - children = _props.children, | |
| 6061 | - baseuri = _props.baseuri, | |
| 6062 | - _props$component = _props.component, | |
| 6063 | - component = _props$component === undefined ? "div" : _props$component, | |
| 6064 | - domProps = _objectWithoutProperties(_props, ["location", "navigate", "basepath", "primary", "children", "baseuri", "component"]); | |
| 6065 | - | |
| 6066 | - var routes = react__WEBPACK_IMPORTED_MODULE_0___default().Children.toArray(children).reduce(function (array, child) { | |
| 6067 | - var routes = createRoute(basepath)(child); | |
| 6068 | - return array.concat(routes); | |
| 6069 | - }, []); | |
| 6070 | - var pathname = location.pathname; | |
| 6071 | - | |
| 6072 | - | |
| 6073 | - var match = (0,_lib_utils__WEBPACK_IMPORTED_MODULE_5__.pick)(routes, pathname); | |
| 6074 | - | |
| 6075 | - if (match) { | |
| 6076 | - var params = match.params, | |
| 6077 | - uri = match.uri, | |
| 6078 | - route = match.route, | |
| 6079 | - element = match.route.value; | |
| 6080 | - | |
| 6081 | - // remove the /* from the end for child routes relative paths | |
| 6082 | - | |
| 6083 | - basepath = route.default ? basepath : route.path.replace(/\*$/, ""); | |
| 6084 | - | |
| 6085 | - var props = _extends({}, params, { | |
| 6086 | - uri: uri, | |
| 6087 | - location: location, | |
| 6088 | - navigate: function navigate(to, options) { | |
| 6089 | - return _navigate2((0,_lib_utils__WEBPACK_IMPORTED_MODULE_5__.resolve)(to, uri), options); | |
| 6090 | - } | |
| 6091 | - }); | |
| 6092 | - | |
| 6093 | - var clone = react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(element, props, element.props.children ? react__WEBPACK_IMPORTED_MODULE_0___default().createElement( | |
| 6094 | - Router, | |
| 6095 | - { location: location, primary: primary }, | |
| 6096 | - element.props.children | |
| 6097 | - ) : undefined); | |
| 6098 | - | |
| 6099 | - // using 'div' for < 16.3 support | |
| 6100 | - var FocusWrapper = primary ? FocusHandler : component; | |
| 6101 | - // don't pass any props to 'div' | |
| 6102 | - var wrapperProps = primary ? _extends({ uri: uri, location: location, component: component }, domProps) : domProps; | |
| 6103 | - | |
| 6104 | - return react__WEBPACK_IMPORTED_MODULE_0___default().createElement( | |
| 6105 | - BaseContext.Provider, | |
| 6106 | - { value: { baseuri: uri, basepath: basepath } }, | |
| 6107 | - react__WEBPACK_IMPORTED_MODULE_0___default().createElement( | |
| 6108 | - FocusWrapper, | |
| 6109 | - wrapperProps, | |
| 6110 | - clone | |
| 6111 | - ) | |
| 6112 | - ); | |
| 6113 | - } else { | |
| 6114 | - // Not sure if we want this, would require index routes at every level | |
| 6115 | - // warning( | |
| 6116 | - // false, | |
| 6117 | - // `<Router basepath="${basepath}">\n\nNothing matched:\n\t${ | |
| 6118 | - // location.pathname | |
| 6119 | - // }\n\nPaths checked: \n\t${routes | |
| 6120 | - // .map(route => route.path) | |
| 6121 | - // .join( | |
| 6122 | - // "\n\t" | |
| 6123 | - // )}\n\nTo get rid of this warning, add a default NotFound component as child of Router: | |
| 6124 | - // \n\tlet NotFound = () => <div>Not Found!</div> | |
| 6125 | - // \n\t<Router>\n\t <NotFound default/>\n\t {/* ... */}\n\t</Router>` | |
| 6126 | - // ); | |
| 6127 | - return null; | |
| 6128 | - } | |
| 6129 | - }; | |
| 6130 | - | |
| 6131 | - return RouterImpl; | |
| 6132 | -}((react__WEBPACK_IMPORTED_MODULE_0___default().PureComponent)); | |
| 6133 | - | |
| 6134 | -RouterImpl.defaultProps = { | |
| 6135 | - primary: true | |
| 6136 | -}; | |
| 6137 | - | |
| 6138 | - | |
| 6139 | -var FocusContext = createNamedContext("Focus"); | |
| 6140 | - | |
| 6141 | -var FocusHandler = function FocusHandler(_ref3) { | |
| 6142 | - var uri = _ref3.uri, | |
| 6143 | - location = _ref3.location, | |
| 6144 | - component = _ref3.component, | |
| 6145 | - domProps = _objectWithoutProperties(_ref3, ["uri", "location", "component"]); | |
| 6146 | - | |
| 6147 | - return react__WEBPACK_IMPORTED_MODULE_0___default().createElement( | |
| 6148 | - FocusContext.Consumer, | |
| 6149 | - null, | |
| 6150 | - function (requestFocus) { | |
| 6151 | - return react__WEBPACK_IMPORTED_MODULE_0___default().createElement(FocusHandlerImpl, _extends({}, domProps, { | |
| 6152 | - component: component, | |
| 6153 | - requestFocus: requestFocus, | |
| 6154 | - uri: uri, | |
| 6155 | - location: location | |
| 6156 | - })); | |
| 6157 | - } | |
| 6158 | - ); | |
| 6159 | -}; | |
| 6160 | - | |
| 6161 | -// don't focus on initial render | |
| 6162 | -var initialRender = true; | |
| 6163 | -var focusHandlerCount = 0; | |
| 6164 | - | |
| 6165 | -var FocusHandlerImpl = function (_React$Component2) { | |
| 6166 | - _inherits(FocusHandlerImpl, _React$Component2); | |
| 6167 | - | |
| 6168 | - function FocusHandlerImpl() { | |
| 6169 | - var _temp2, _this4, _ret2; | |
| 6170 | - | |
| 6171 | - _classCallCheck(this, FocusHandlerImpl); | |
| 6172 | - | |
| 6173 | - for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) { | |
| 6174 | - args[_key2] = arguments[_key2]; | |
| 6175 | - } | |
| 6176 | - | |
| 6177 | - return _ret2 = (_temp2 = (_this4 = _possibleConstructorReturn(this, _React$Component2.call.apply(_React$Component2, [this].concat(args))), _this4), _this4.state = {}, _this4.requestFocus = function (node) { | |
| 6178 | - if (!_this4.state.shouldFocus && node) { | |
| 6179 | - node.focus(); | |
| 6180 | - } | |
| 6181 | - }, _temp2), _possibleConstructorReturn(_this4, _ret2); | |
| 6182 | - } | |
| 6183 | - | |
| 6184 | - FocusHandlerImpl.getDerivedStateFromProps = function getDerivedStateFromProps(nextProps, prevState) { | |
| 6185 | - var initial = prevState.uri == null; | |
| 6186 | - if (initial) { | |
| 6187 | - return _extends({ | |
| 6188 | - shouldFocus: true | |
| 6189 | - }, nextProps); | |
| 6190 | - } else { | |
| 6191 | - var myURIChanged = nextProps.uri !== prevState.uri; | |
| 6192 | - var navigatedUpToMe = prevState.location.pathname !== nextProps.location.pathname && nextProps.location.pathname === nextProps.uri; | |
| 6193 | - return _extends({ | |
| 6194 | - shouldFocus: myURIChanged || navigatedUpToMe | |
| 6195 | - }, nextProps); | |
| 6196 | - } | |
| 6197 | - }; | |
| 6198 | - | |
| 6199 | - FocusHandlerImpl.prototype.componentDidMount = function componentDidMount() { | |
| 6200 | - focusHandlerCount++; | |
| 6201 | - this.focus(); | |
| 6202 | - }; | |
| 6203 | - | |
| 6204 | - FocusHandlerImpl.prototype.componentWillUnmount = function componentWillUnmount() { | |
| 6205 | - focusHandlerCount--; | |
| 6206 | - if (focusHandlerCount === 0) { | |
| 6207 | - initialRender = true; | |
| 6208 | - } | |
| 6209 | - }; | |
| 6210 | - | |
| 6211 | - FocusHandlerImpl.prototype.componentDidUpdate = function componentDidUpdate(prevProps, prevState) { | |
| 6212 | - if (prevProps.location !== this.props.location && this.state.shouldFocus) { | |
| 6213 | - this.focus(); | |
| 6214 | - } | |
| 6215 | - }; | |
| 6216 | - | |
| 6217 | - FocusHandlerImpl.prototype.focus = function focus() { | |
| 6218 | - if (false) // removed by dead control flow | |
| 6219 | -{} | |
| 6220 | - | |
| 6221 | - var requestFocus = this.props.requestFocus; | |
| 6222 | - | |
| 6223 | - | |
| 6224 | - if (requestFocus) { | |
| 6225 | - requestFocus(this.node); | |
| 6226 | - } else { | |
| 6227 | - if (initialRender) { | |
| 6228 | - initialRender = false; | |
| 6229 | - } else if (this.node) { | |
| 6230 | - // React polyfills [autofocus] and it fires earlier than cDM, | |
| 6231 | - // so we were stealing focus away, this line prevents that. | |
| 6232 | - if (!this.node.contains(document.activeElement)) { | |
| 6233 | - this.node.focus(); | |
| 6234 | - } | |
| 6235 | - } | |
| 6236 | - } | |
| 6237 | - }; | |
| 6238 | - | |
| 6239 | - FocusHandlerImpl.prototype.render = function render() { | |
| 6240 | - var _this5 = this; | |
| 6241 | - | |
| 6242 | - var _props2 = this.props, | |
| 6243 | - children = _props2.children, | |
| 6244 | - style = _props2.style, | |
| 6245 | - requestFocus = _props2.requestFocus, | |
| 6246 | - _props2$component = _props2.component, | |
| 6247 | - Comp = _props2$component === undefined ? "div" : _props2$component, | |
| 6248 | - uri = _props2.uri, | |
| 6249 | - location = _props2.location, | |
| 6250 | - domProps = _objectWithoutProperties(_props2, ["children", "style", "requestFocus", "component", "uri", "location"]); | |
| 6251 | - | |
| 6252 | - return react__WEBPACK_IMPORTED_MODULE_0___default().createElement( | |
| 6253 | - Comp, | |
| 6254 | - _extends({ | |
| 6255 | - style: _extends({ outline: "none" }, style), | |
| 6256 | - tabIndex: "-1", | |
| 6257 | - ref: function ref(n) { | |
| 6258 | - return _this5.node = n; | |
| 6259 | - } | |
| 6260 | - }, domProps), | |
| 6261 | - react__WEBPACK_IMPORTED_MODULE_0___default().createElement( | |
| 6262 | - FocusContext.Provider, | |
| 6263 | - { value: this.requestFocus }, | |
| 6264 | - this.props.children | |
| 6265 | - ) | |
| 6266 | - ); | |
| 6267 | - }; | |
| 6268 | - | |
| 6269 | - return FocusHandlerImpl; | |
| 6270 | -}((react__WEBPACK_IMPORTED_MODULE_0___default().Component)); | |
| 6271 | - | |
| 6272 | -(0,react_lifecycles_compat__WEBPACK_IMPORTED_MODULE_4__.polyfill)(FocusHandlerImpl); | |
| 6273 | - | |
| 6274 | -var k = function k() {}; | |
| 6275 | - | |
| 6276 | -//////////////////////////////////////////////////////////////////////////////// | |
| 6277 | -var forwardRef = (react__WEBPACK_IMPORTED_MODULE_0___default().forwardRef); | |
| 6278 | - | |
| 6279 | -if (typeof forwardRef === "undefined") { | |
| 6280 | - forwardRef = function forwardRef(C) { | |
| 6281 | - return C; | |
| 6282 | - }; | |
| 6283 | -} | |
| 6284 | - | |
| 6285 | -var Link = forwardRef(function (_ref4, ref) { | |
| 6286 | - var innerRef = _ref4.innerRef, | |
| 6287 | - props = _objectWithoutProperties(_ref4, ["innerRef"]); | |
| 6288 | - | |
| 6289 | - return react__WEBPACK_IMPORTED_MODULE_0___default().createElement( | |
| 6290 | - BaseContext.Consumer, | |
| 6291 | - null, | |
| 6292 | - function (_ref5) { | |
| 6293 | - var basepath = _ref5.basepath, | |
| 6294 | - baseuri = _ref5.baseuri; | |
| 6295 | - return react__WEBPACK_IMPORTED_MODULE_0___default().createElement( | |
| 6296 | - Location, | |
| 6297 | - null, | |
| 6298 | - function (_ref6) { | |
| 6299 | - var location = _ref6.location, | |
| 6300 | - navigate = _ref6.navigate; | |
| 6301 | - | |
| 6302 | - var to = props.to, | |
| 6303 | - state = props.state, | |
| 6304 | - replace = props.replace, | |
| 6305 | - _props$getProps = props.getProps, | |
| 6306 | - getProps = _props$getProps === undefined ? k : _props$getProps, | |
| 6307 | - anchorProps = _objectWithoutProperties(props, ["to", "state", "replace", "getProps"]); | |
| 6308 | - | |
| 6309 | - var href = (0,_lib_utils__WEBPACK_IMPORTED_MODULE_5__.resolve)(to, baseuri); | |
| 6310 | - var encodedHref = encodeURI(href); | |
| 6311 | - var isCurrent = location.pathname === encodedHref; | |
| 6312 | - var isPartiallyCurrent = (0,_lib_utils__WEBPACK_IMPORTED_MODULE_5__.startsWith)(location.pathname, encodedHref); | |
| 6313 | - | |
| 6314 | - return react__WEBPACK_IMPORTED_MODULE_0___default().createElement("a", _extends({ | |
| 6315 | - ref: ref || innerRef, | |
| 6316 | - "aria-current": isCurrent ? "page" : undefined | |
| 6317 | - }, anchorProps, getProps({ isCurrent: isCurrent, isPartiallyCurrent: isPartiallyCurrent, href: href, location: location }), { | |
| 6318 | - href: href, | |
| 6319 | - onClick: function onClick(event) { | |
| 6320 | - if (anchorProps.onClick) anchorProps.onClick(event); | |
| 6321 | - if (shouldNavigate(event)) { | |
| 6322 | - event.preventDefault(); | |
| 6323 | - var shouldReplace = replace; | |
| 6324 | - if (typeof replace !== "boolean" && isCurrent) { | |
| 6325 | - var _location$state = _extends({}, location.state), | |
| 6326 | - key = _location$state.key, | |
| 6327 | - restState = _objectWithoutProperties(_location$state, ["key"]); | |
| 6328 | - | |
| 6329 | - shouldReplace = (0,_lib_utils__WEBPACK_IMPORTED_MODULE_5__.shallowCompare)(_extends({}, state), restState); | |
| 6330 | - } | |
| 6331 | - navigate(href, { | |
| 6332 | - state: state, | |
| 6333 | - replace: shouldReplace | |
| 6334 | - }); | |
| 6335 | - } | |
| 6336 | - } | |
| 6337 | - })); | |
| 6338 | - } | |
| 6339 | - ); | |
| 6340 | - } | |
| 6341 | - ); | |
| 6342 | -}); | |
| 6343 | - | |
| 6344 | -Link.displayName = "Link"; | |
| 6345 | - | |
| 6346 | - true ? Link.propTypes = { | |
| 6347 | - to: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string).isRequired | |
| 6348 | -} : 0; | |
| 6349 | - | |
| 6350 | -//////////////////////////////////////////////////////////////////////////////// | |
| 6351 | -function RedirectRequest(uri) { | |
| 6352 | - this.uri = uri; | |
| 6353 | -} | |
| 6354 | - | |
| 6355 | -var isRedirect = function isRedirect(o) { | |
| 6356 | - return o instanceof RedirectRequest; | |
| 6357 | -}; | |
| 6358 | - | |
| 6359 | -var redirectTo = function redirectTo(to) { | |
| 6360 | - throw new RedirectRequest(to); | |
| 6361 | -}; | |
| 6362 | - | |
| 6363 | -var RedirectImpl = function (_React$Component3) { | |
| 6364 | - _inherits(RedirectImpl, _React$Component3); | |
| 6365 | - | |
| 6366 | - function RedirectImpl() { | |
| 6367 | - _classCallCheck(this, RedirectImpl); | |
| 6368 | - | |
| 6369 | - return _possibleConstructorReturn(this, _React$Component3.apply(this, arguments)); | |
| 6370 | - } | |
| 6371 | - | |
| 6372 | - // Support React < 16 with this hook | |
| 6373 | - RedirectImpl.prototype.componentDidMount = function componentDidMount() { | |
| 6374 | - var _props3 = this.props, | |
| 6375 | - navigate = _props3.navigate, | |
| 6376 | - to = _props3.to, | |
| 6377 | - from = _props3.from, | |
| 6378 | - _props3$replace = _props3.replace, | |
| 6379 | - replace = _props3$replace === undefined ? true : _props3$replace, | |
| 6380 | - state = _props3.state, | |
| 6381 | - noThrow = _props3.noThrow, | |
| 6382 | - baseuri = _props3.baseuri, | |
| 6383 | - props = _objectWithoutProperties(_props3, ["navigate", "to", "from", "replace", "state", "noThrow", "baseuri"]); | |
| 6384 | - | |
| 6385 | - Promise.resolve().then(function () { | |
| 6386 | - var resolvedTo = (0,_lib_utils__WEBPACK_IMPORTED_MODULE_5__.resolve)(to, baseuri); | |
| 6387 | - navigate((0,_lib_utils__WEBPACK_IMPORTED_MODULE_5__.insertParams)(resolvedTo, props), { replace: replace, state: state }); | |
| 6388 | - }); | |
| 6389 | - }; | |
| 6390 | - | |
| 6391 | - RedirectImpl.prototype.render = function render() { | |
| 6392 | - var _props4 = this.props, | |
| 6393 | - navigate = _props4.navigate, | |
| 6394 | - to = _props4.to, | |
| 6395 | - from = _props4.from, | |
| 6396 | - replace = _props4.replace, | |
| 6397 | - state = _props4.state, | |
| 6398 | - noThrow = _props4.noThrow, | |
| 6399 | - baseuri = _props4.baseuri, | |
| 6400 | - props = _objectWithoutProperties(_props4, ["navigate", "to", "from", "replace", "state", "noThrow", "baseuri"]); | |
| 6401 | - | |
| 6402 | - var resolvedTo = (0,_lib_utils__WEBPACK_IMPORTED_MODULE_5__.resolve)(to, baseuri); | |
| 6403 | - if (!noThrow) redirectTo((0,_lib_utils__WEBPACK_IMPORTED_MODULE_5__.insertParams)(resolvedTo, props)); | |
| 6404 | - return null; | |
| 6405 | - }; | |
| 6406 | - | |
| 6407 | - return RedirectImpl; | |
| 6408 | -}((react__WEBPACK_IMPORTED_MODULE_0___default().Component)); | |
| 6409 | - | |
| 6410 | -var Redirect = function Redirect(props) { | |
| 6411 | - return react__WEBPACK_IMPORTED_MODULE_0___default().createElement( | |
| 6412 | - BaseContext.Consumer, | |
| 6413 | - null, | |
| 6414 | - function (_ref7) { | |
| 6415 | - var baseuri = _ref7.baseuri; | |
| 6416 | - return react__WEBPACK_IMPORTED_MODULE_0___default().createElement( | |
| 6417 | - Location, | |
| 6418 | - null, | |
| 6419 | - function (locationContext) { | |
| 6420 | - return react__WEBPACK_IMPORTED_MODULE_0___default().createElement(RedirectImpl, _extends({}, locationContext, { baseuri: baseuri }, props)); | |
| 6421 | - } | |
| 6422 | - ); | |
| 6423 | - } | |
| 6424 | - ); | |
| 6425 | -}; | |
| 6426 | - | |
| 6427 | - true ? Redirect.propTypes = { | |
| 6428 | - from: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string), | |
| 6429 | - to: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string).isRequired | |
| 6430 | -} : 0; | |
| 6431 | - | |
| 6432 | -//////////////////////////////////////////////////////////////////////////////// | |
| 6433 | -var Match = function Match(_ref8) { | |
| 6434 | - var path = _ref8.path, | |
| 6435 | - children = _ref8.children; | |
| 6436 | - return react__WEBPACK_IMPORTED_MODULE_0___default().createElement( | |
| 6437 | - BaseContext.Consumer, | |
| 6438 | - null, | |
| 6439 | - function (_ref9) { | |
| 6440 | - var baseuri = _ref9.baseuri; | |
| 6441 | - return react__WEBPACK_IMPORTED_MODULE_0___default().createElement( | |
| 6442 | - Location, | |
| 6443 | - null, | |
| 6444 | - function (_ref10) { | |
| 6445 | - var navigate = _ref10.navigate, | |
| 6446 | - location = _ref10.location; | |
| 6447 | - | |
| 6448 | - var resolvedPath = (0,_lib_utils__WEBPACK_IMPORTED_MODULE_5__.resolve)(path, baseuri); | |
| 6449 | - var result = (0,_lib_utils__WEBPACK_IMPORTED_MODULE_5__.match)(resolvedPath, location.pathname); | |
| 6450 | - return children({ | |
| 6451 | - navigate: navigate, | |
| 6452 | - location: location, | |
| 6453 | - match: result ? _extends({}, result.params, { | |
| 6454 | - uri: result.uri, | |
| 6455 | - path: path | |
| 6456 | - }) : null | |
| 6457 | - }); | |
| 6458 | - } | |
| 6459 | - ); | |
| 6460 | - } | |
| 6461 | - ); | |
| 6462 | -}; | |
| 6463 | - | |
| 6464 | -//////////////////////////////////////////////////////////////////////////////// | |
| 6465 | -// Hooks | |
| 6466 | - | |
| 6467 | -var useLocation = function useLocation() { | |
| 6468 | - var context = (0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(LocationContext); | |
| 6469 | - | |
| 6470 | - if (!context) { | |
| 6471 | - throw new Error("useLocation hook was used but a LocationContext.Provider was not found in the parent tree. Make sure this is used in a component that is a child of Router"); | |
| 6472 | - } | |
| 6473 | - | |
| 6474 | - return context.location; | |
| 6475 | -}; | |
| 6476 | - | |
| 6477 | -var useNavigate = function useNavigate() { | |
| 6478 | - var context = (0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(LocationContext); | |
| 6479 | - | |
| 6480 | - if (!context) { | |
| 6481 | - throw new Error("useNavigate hook was used but a LocationContext.Provider was not found in the parent tree. Make sure this is used in a component that is a child of Router"); | |
| 6482 | - } | |
| 6483 | - | |
| 6484 | - return context.navigate; | |
| 6485 | -}; | |
| 6486 | - | |
| 6487 | -var useParams = function useParams() { | |
| 6488 | - var context = (0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(BaseContext); | |
| 6489 | - | |
| 6490 | - if (!context) { | |
| 6491 | - throw new Error("useParams hook was used but a LocationContext.Provider was not found in the parent tree. Make sure this is used in a component that is a child of Router"); | |
| 6492 | - } | |
| 6493 | - | |
| 6494 | - var location = useLocation(); | |
| 6495 | - | |
| 6496 | - var results = (0,_lib_utils__WEBPACK_IMPORTED_MODULE_5__.match)(context.basepath, location.pathname); | |
| 6497 | - | |
| 6498 | - return results ? results.params : null; | |
| 6499 | -}; | |
| 6500 | - | |
| 6501 | -var useMatch = function useMatch(path) { | |
| 6502 | - if (!path) { | |
| 6503 | - throw new Error("useMatch(path: string) requires an argument of a string to match against"); | |
| 6504 | - } | |
| 6505 | - var context = (0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(BaseContext); | |
| 6506 | - | |
| 6507 | - if (!context) { | |
| 6508 | - throw new Error("useMatch hook was used but a LocationContext.Provider was not found in the parent tree. Make sure this is used in a component that is a child of Router"); | |
| 6509 | - } | |
| 6510 | - | |
| 6511 | - var location = useLocation(); | |
| 6512 | - | |
| 6513 | - var resolvedPath = (0,_lib_utils__WEBPACK_IMPORTED_MODULE_5__.resolve)(path, context.baseuri); | |
| 6514 | - var result = (0,_lib_utils__WEBPACK_IMPORTED_MODULE_5__.match)(resolvedPath, location.pathname); | |
| 6515 | - return result ? _extends({}, result.params, { | |
| 6516 | - uri: result.uri, | |
| 6517 | - path: path | |
| 6518 | - }) : null; | |
| 6519 | -}; | |
| 6520 | - | |
| 6521 | -//////////////////////////////////////////////////////////////////////////////// | |
| 6522 | -// Junk | |
| 6523 | -var stripSlashes = function stripSlashes(str) { | |
| 6524 | - return str.replace(/(^\/+|\/+$)/g, ""); | |
| 6525 | -}; | |
| 6526 | - | |
| 6527 | -var createRoute = function createRoute(basepath) { | |
| 6528 | - return function (element) { | |
| 6529 | - if (!element) { | |
| 6530 | - return null; | |
| 6531 | - } | |
| 6532 | - | |
| 6533 | - if (element.type === (react__WEBPACK_IMPORTED_MODULE_0___default().Fragment) && element.props.children) { | |
| 6534 | - return react__WEBPACK_IMPORTED_MODULE_0___default().Children.map(element.props.children, createRoute(basepath)); | |
| 6535 | - } | |
| 6536 | - !(element.props.path || element.props.default || element.type === Redirect) ? true ? invariant__WEBPACK_IMPORTED_MODULE_2___default()(false, "<Router>: Children of <Router> must have a `path` or `default` prop, or be a `<Redirect>`. None found on element type `" + element.type + "`") : 0 : void 0; | |
| 6537 | - | |
| 6538 | - !!(element.type === Redirect && (!element.props.from || !element.props.to)) ? true ? invariant__WEBPACK_IMPORTED_MODULE_2___default()(false, "<Redirect from=\"" + element.props.from + "\" to=\"" + element.props.to + "\"/> requires both \"from\" and \"to\" props when inside a <Router>.") : 0 : void 0; | |
| 6539 | - | |
| 6540 | - !!(element.type === Redirect && !(0,_lib_utils__WEBPACK_IMPORTED_MODULE_5__.validateRedirect)(element.props.from, element.props.to)) ? true ? invariant__WEBPACK_IMPORTED_MODULE_2___default()(false, "<Redirect from=\"" + element.props.from + " to=\"" + element.props.to + "\"/> has mismatched dynamic segments, ensure both paths have the exact same dynamic segments.") : 0 : void 0; | |
| 6541 | - | |
| 6542 | - if (element.props.default) { | |
| 6543 | - return { value: element, default: true }; | |
| 6544 | - } | |
| 6545 | - | |
| 6546 | - var elementPath = element.type === Redirect ? element.props.from : element.props.path; | |
| 6547 | - | |
| 6548 | - var path = elementPath === "/" ? basepath : stripSlashes(basepath) + "/" + stripSlashes(elementPath); | |
| 6549 | - | |
| 6550 | - return { | |
| 6551 | - value: element, | |
| 6552 | - default: element.props.default, | |
| 6553 | - path: element.props.children ? stripSlashes(path) + "/*" : path | |
| 6554 | - }; | |
| 6555 | - }; | |
| 6556 | -}; | |
| 6557 | - | |
| 6558 | -var shouldNavigate = function shouldNavigate(event) { | |
| 6559 | - return !event.defaultPrevented && event.button === 0 && !(event.metaKey || event.altKey || event.ctrlKey || event.shiftKey); | |
| 6560 | -}; | |
| 6561 | - | |
| 6562 | -//////////////////////////////////////////////////////////////////////// | |
| 6563 | - | |
| 6564 | - | |
| 6565 | -/***/ }), | |
| 6566 | - | |
| 6567 | -/***/ "../node_modules/@reach/router/es/lib/history.js": | |
| 6568 | -/*!*******************************************************!*\ | |
| 6569 | - !*** ../node_modules/@reach/router/es/lib/history.js ***! | |
| 6570 | - \*******************************************************/ | |
| 6571 | -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { | |
| 6572 | - | |
| 6573 | -"use strict"; | |
| 6574 | -__webpack_require__.r(__webpack_exports__); | |
| 6575 | -/* harmony export */ __webpack_require__.d(__webpack_exports__, { | |
| 6576 | -/* harmony export */ createHistory: () => (/* binding */ createHistory), | |
| 6577 | -/* harmony export */ createMemorySource: () => (/* binding */ createMemorySource), | |
| 6578 | -/* harmony export */ globalHistory: () => (/* binding */ globalHistory), | |
| 6579 | -/* harmony export */ navigate: () => (/* binding */ navigate) | |
| 6580 | -/* harmony export */ }); | |
| 6581 | -var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; | |
| 6582 | - | |
| 6583 | -var getLocation = function getLocation(source) { | |
| 6584 | - var _source$location = source.location, | |
| 6585 | - search = _source$location.search, | |
| 6586 | - hash = _source$location.hash, | |
| 6587 | - href = _source$location.href, | |
| 6588 | - origin = _source$location.origin, | |
| 6589 | - protocol = _source$location.protocol, | |
| 6590 | - host = _source$location.host, | |
| 6591 | - hostname = _source$location.hostname, | |
| 6592 | - port = _source$location.port; | |
| 6593 | - var pathname = source.location.pathname; | |
| 6594 | - | |
| 6595 | - | |
| 6596 | - if (!pathname && href && canUseDOM) { | |
| 6597 | - var url = new URL(href); | |
| 6598 | - pathname = url.pathname; | |
| 6599 | - } | |
| 6600 | - | |
| 6601 | - return { | |
| 6602 | - pathname: encodeURI(decodeURI(pathname)), | |
| 6603 | - search: search, | |
| 6604 | - hash: hash, | |
| 6605 | - href: href, | |
| 6606 | - origin: origin, | |
| 6607 | - protocol: protocol, | |
| 6608 | - host: host, | |
| 6609 | - hostname: hostname, | |
| 6610 | - port: port, | |
| 6611 | - state: source.history.state, | |
| 6612 | - key: source.history.state && source.history.state.key || "initial" | |
| 6613 | - }; | |
| 6614 | -}; | |
| 6615 | - | |
| 6616 | -var createHistory = function createHistory(source, options) { | |
| 6617 | - var listeners = []; | |
| 6618 | - var location = getLocation(source); | |
| 6619 | - var transitioning = false; | |
| 6620 | - var resolveTransition = function resolveTransition() {}; | |
| 6621 | - | |
| 6622 | - return { | |
| 6623 | - get location() { | |
| 6624 | - return location; | |
| 6625 | - }, | |
| 6626 | - | |
| 6627 | - get transitioning() { | |
| 6628 | - return transitioning; | |
| 6629 | - }, | |
| 6630 | - | |
| 6631 | - _onTransitionComplete: function _onTransitionComplete() { | |
| 6632 | - transitioning = false; | |
| 6633 | - resolveTransition(); | |
| 6634 | - }, | |
| 6635 | - listen: function listen(listener) { | |
| 6636 | - listeners.push(listener); | |
| 6637 | - | |
| 6638 | - var popstateListener = function popstateListener() { | |
| 6639 | - location = getLocation(source); | |
| 6640 | - listener({ location: location, action: "POP" }); | |
| 6641 | - }; | |
| 6642 | - | |
| 6643 | - source.addEventListener("popstate", popstateListener); | |
| 6644 | - | |
| 6645 | - return function () { | |
| 6646 | - source.removeEventListener("popstate", popstateListener); | |
| 6647 | - listeners = listeners.filter(function (fn) { | |
| 6648 | - return fn !== listener; | |
| 6649 | - }); | |
| 6650 | - }; | |
| 6651 | - }, | |
| 6652 | - navigate: function navigate(to) { | |
| 6653 | - var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, | |
| 6654 | - state = _ref.state, | |
| 6655 | - _ref$replace = _ref.replace, | |
| 6656 | - replace = _ref$replace === undefined ? false : _ref$replace; | |
| 6657 | - | |
| 6658 | - if (typeof to === "number") { | |
| 6659 | - source.history.go(to); | |
| 6660 | - } else { | |
| 6661 | - state = _extends({}, state, { key: Date.now() + "" }); | |
| 6662 | - // try...catch iOS Safari limits to 100 pushState calls | |
| 6663 | - try { | |
| 6664 | - if (transitioning || replace) { | |
| 6665 | - source.history.replaceState(state, null, to); | |
| 6666 | - } else { | |
| 6667 | - source.history.pushState(state, null, to); | |
| 6668 | - } | |
| 6669 | - } catch (e) { | |
| 6670 | - source.location[replace ? "replace" : "assign"](to); | |
| 6671 | - } | |
| 6672 | - } | |
| 6673 | - | |
| 6674 | - location = getLocation(source); | |
| 6675 | - transitioning = true; | |
| 6676 | - var transition = new Promise(function (res) { | |
| 6677 | - return resolveTransition = res; | |
| 6678 | - }); | |
| 6679 | - listeners.forEach(function (listener) { | |
| 6680 | - return listener({ location: location, action: "PUSH" }); | |
| 6681 | - }); | |
| 6682 | - return transition; | |
| 6683 | - } | |
| 6684 | - }; | |
| 6685 | -}; | |
| 6686 | - | |
| 6687 | -//////////////////////////////////////////////////////////////////////////////// | |
| 6688 | -// Stores history entries in memory for testing or other platforms like Native | |
| 6689 | -var createMemorySource = function createMemorySource() { | |
| 6690 | - var initialPath = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "/"; | |
| 6691 | - | |
| 6692 | - var searchIndex = initialPath.indexOf("?"); | |
| 6693 | - var initialLocation = { | |
| 6694 | - pathname: searchIndex > -1 ? initialPath.substr(0, searchIndex) : initialPath, | |
| 6695 | - search: searchIndex > -1 ? initialPath.substr(searchIndex) : "" | |
| 6696 | - }; | |
| 6697 | - var index = 0; | |
| 6698 | - var stack = [initialLocation]; | |
| 6699 | - var states = [null]; | |
| 6700 | - | |
| 6701 | - return { | |
| 6702 | - get location() { | |
| 6703 | - return stack[index]; | |
| 6704 | - }, | |
| 6705 | - addEventListener: function addEventListener(name, fn) {}, | |
| 6706 | - removeEventListener: function removeEventListener(name, fn) {}, | |
| 6707 | - | |
| 6708 | - history: { | |
| 6709 | - get entries() { | |
| 6710 | - return stack; | |
| 6711 | - }, | |
| 6712 | - get index() { | |
| 6713 | - return index; | |
| 6714 | - }, | |
| 6715 | - get state() { | |
| 6716 | - return states[index]; | |
| 6717 | - }, | |
| 6718 | - pushState: function pushState(state, _, uri) { | |
| 6719 | - var _uri$split = uri.split("?"), | |
| 6720 | - pathname = _uri$split[0], | |
| 6721 | - _uri$split$ = _uri$split[1], | |
| 6722 | - search = _uri$split$ === undefined ? "" : _uri$split$; | |
| 6723 | - | |
| 6724 | - index++; | |
| 6725 | - stack.push({ pathname: pathname, search: search.length ? "?" + search : search }); | |
| 6726 | - states.push(state); | |
| 6727 | - }, | |
| 6728 | - replaceState: function replaceState(state, _, uri) { | |
| 6729 | - var _uri$split2 = uri.split("?"), | |
| 6730 | - pathname = _uri$split2[0], | |
| 6731 | - _uri$split2$ = _uri$split2[1], | |
| 6732 | - search = _uri$split2$ === undefined ? "" : _uri$split2$; | |
| 6733 | - | |
| 6734 | - stack[index] = { pathname: pathname, search: search }; | |
| 6735 | - states[index] = state; | |
| 6736 | - }, | |
| 6737 | - go: function go(to) { | |
| 6738 | - var newIndex = index + to; | |
| 6739 | - | |
| 6740 | - if (newIndex < 0 || newIndex > states.length - 1) { | |
| 6741 | - return; | |
| 6742 | - } | |
| 6743 | - | |
| 6744 | - index = newIndex; | |
| 6745 | - } | |
| 6746 | - } | |
| 6747 | - }; | |
| 6748 | -}; | |
| 6749 | - | |
| 6750 | -//////////////////////////////////////////////////////////////////////////////// | |
| 6751 | -// global history - uses window.history as the source if available, otherwise a | |
| 6752 | -// memory history | |
| 6753 | -var canUseDOM = !!(typeof window !== "undefined" && window.document && window.document.createElement); | |
| 6754 | -var getSource = function getSource() { | |
| 6755 | - return canUseDOM ? window : createMemorySource(); | |
| 6756 | -}; | |
| 6757 | - | |
| 6758 | -var globalHistory = createHistory(getSource()); | |
| 6759 | -var navigate = globalHistory.navigate; | |
| 6760 | - | |
| 6761 | -//////////////////////////////////////////////////////////////////////////////// | |
| 6762 | - | |
| 6763 | - | |
| 6764 | - | |
| 6765 | -/***/ }), | |
| 6766 | - | |
| 6767 | -/***/ "../node_modules/@reach/router/es/lib/utils.js": | |
| 6768 | -/*!*****************************************************!*\ | |
| 6769 | - !*** ../node_modules/@reach/router/es/lib/utils.js ***! | |
| 6770 | - \*****************************************************/ | |
| 6771 | -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { | |
| 6772 | - | |
| 6773 | -"use strict"; | |
| 6774 | -__webpack_require__.r(__webpack_exports__); | |
| 6775 | -/* harmony export */ __webpack_require__.d(__webpack_exports__, { | |
| 6776 | -/* harmony export */ insertParams: () => (/* binding */ insertParams), | |
| 6777 | -/* harmony export */ match: () => (/* binding */ match), | |
| 6778 | -/* harmony export */ pick: () => (/* binding */ pick), | |
| 6779 | -/* harmony export */ resolve: () => (/* binding */ resolve), | |
| 6780 | -/* harmony export */ shallowCompare: () => (/* binding */ shallowCompare), | |
| 6781 | -/* harmony export */ startsWith: () => (/* binding */ startsWith), | |
| 6782 | -/* harmony export */ validateRedirect: () => (/* binding */ validateRedirect) | |
| 6783 | -/* harmony export */ }); | |
| 6784 | -/* harmony import */ var invariant__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! invariant */ "../node_modules/invariant/browser.js"); | |
| 6785 | -/* harmony import */ var invariant__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(invariant__WEBPACK_IMPORTED_MODULE_0__); | |
| 6786 | - | |
| 6787 | - | |
| 6788 | -//////////////////////////////////////////////////////////////////////////////// | |
| 6789 | -// startsWith(string, search) - Check if `string` starts with `search` | |
| 6790 | -var startsWith = function startsWith(string, search) { | |
| 6791 | - return string.substr(0, search.length) === search; | |
| 6792 | -}; | |
| 6793 | - | |
| 6794 | -//////////////////////////////////////////////////////////////////////////////// | |
| 6795 | -// pick(routes, uri) | |
| 6796 | -// | |
| 6797 | -// Ranks and picks the best route to match. Each segment gets the highest | |
| 6798 | -// amount of points, then the type of segment gets an additional amount of | |
| 6799 | -// points where | |
| 6800 | -// | |
| 6801 | -// static > dynamic > splat > root | |
| 6802 | -// | |
| 6803 | -// This way we don't have to worry about the order of our routes, let the | |
| 6804 | -// computers do it. | |
| 6805 | -// | |
| 6806 | -// A route looks like this | |
| 6807 | -// | |
| 6808 | -// { path, default, value } | |
| 6809 | -// | |
| 6810 | -// And a returned match looks like: | |
| 6811 | -// | |
| 6812 | -// { route, params, uri } | |
| 6813 | -// | |
| 6814 | -// I know, I should use TypeScript not comments for these types. | |
| 6815 | -var pick = function pick(routes, uri) { | |
| 6816 | - var match = void 0; | |
| 6817 | - var default_ = void 0; | |
| 6818 | - | |
| 6819 | - var _uri$split = uri.split("?"), | |
| 6820 | - uriPathname = _uri$split[0]; | |
| 6821 | - | |
| 6822 | - var uriSegments = segmentize(uriPathname); | |
| 6823 | - var isRootUri = uriSegments[0] === ""; | |
| 6824 | - var ranked = rankRoutes(routes); | |
| 6825 | - | |
| 6826 | - for (var i = 0, l = ranked.length; i < l; i++) { | |
| 6827 | - var missed = false; | |
| 6828 | - var route = ranked[i].route; | |
| 6829 | - | |
| 6830 | - if (route.default) { | |
| 6831 | - default_ = { | |
| 6832 | - route: route, | |
| 6833 | - params: {}, | |
| 6834 | - uri: uri | |
| 6835 | - }; | |
| 6836 | - continue; | |
| 6837 | - } | |
| 6838 | - | |
| 6839 | - var routeSegments = segmentize(route.path); | |
| 6840 | - var params = {}; | |
| 6841 | - var max = Math.max(uriSegments.length, routeSegments.length); | |
| 6842 | - var index = 0; | |
| 6843 | - | |
| 6844 | - for (; index < max; index++) { | |
| 6845 | - var routeSegment = routeSegments[index]; | |
| 6846 | - var uriSegment = uriSegments[index]; | |
| 6847 | - | |
| 6848 | - if (isSplat(routeSegment)) { | |
| 6849 | - // Hit a splat, just grab the rest, and return a match | |
| 6850 | - // uri: /files/documents/work | |
| 6851 | - // route: /files/* | |
| 6852 | - var param = routeSegment.slice(1) || "*"; | |
| 6853 | - params[param] = uriSegments.slice(index).map(decodeURIComponent).join("/"); | |
| 6854 | - break; | |
| 6855 | - } | |
| 6856 | - | |
| 6857 | - if (uriSegment === undefined) { | |
| 6858 | - // URI is shorter than the route, no match | |
| 6859 | - // uri: /users | |
| 6860 | - // route: /users/:userId | |
| 6861 | - missed = true; | |
| 6862 | - break; | |
| 6863 | - } | |
| 6864 | - | |
| 6865 | - var dynamicMatch = paramRe.exec(routeSegment); | |
| 6866 | - | |
| 6867 | - if (dynamicMatch && !isRootUri) { | |
| 6868 | - var matchIsNotReserved = reservedNames.indexOf(dynamicMatch[1]) === -1; | |
| 6869 | - !matchIsNotReserved ? true ? invariant__WEBPACK_IMPORTED_MODULE_0___default()(false, "<Router> dynamic segment \"" + dynamicMatch[1] + "\" is a reserved name. Please use a different name in path \"" + route.path + "\".") : 0 : void 0; | |
| 6870 | - var value = decodeURIComponent(uriSegment); | |
| 6871 | - params[dynamicMatch[1]] = value; | |
| 6872 | - } else if (routeSegment !== uriSegment) { | |
| 6873 | - // Current segments don't match, not dynamic, not splat, so no match | |
| 6874 | - // uri: /users/123/settings | |
| 6875 | - // route: /users/:id/profile | |
| 6876 | - missed = true; | |
| 6877 | - break; | |
| 6878 | - } | |
| 6879 | - } | |
| 6880 | - | |
| 6881 | - if (!missed) { | |
| 6882 | - match = { | |
| 6883 | - route: route, | |
| 6884 | - params: params, | |
| 6885 | - uri: "/" + uriSegments.slice(0, index).join("/") | |
| 6886 | - }; | |
| 6887 | - break; | |
| 6888 | - } | |
| 6889 | - } | |
| 6890 | - | |
| 6891 | - return match || default_ || null; | |
| 6892 | -}; | |
| 6893 | - | |
| 6894 | -//////////////////////////////////////////////////////////////////////////////// | |
| 6895 | -// match(path, uri) - Matches just one path to a uri, also lol | |
| 6896 | -var match = function match(path, uri) { | |
| 6897 | - return pick([{ path: path }], uri); | |
| 6898 | -}; | |
| 6899 | - | |
| 6900 | -//////////////////////////////////////////////////////////////////////////////// | |
| 6901 | -// resolve(to, basepath) | |
| 6902 | -// | |
| 6903 | -// Resolves URIs as though every path is a directory, no files. Relative URIs | |
| 6904 | -// in the browser can feel awkward because not only can you be "in a directory" | |
| 6905 | -// you can be "at a file", too. For example | |
| 6906 | -// | |
| 6907 | -// browserSpecResolve('foo', '/bar/') => /bar/foo | |
| 6908 | -// browserSpecResolve('foo', '/bar') => /foo | |
| 6909 | -// | |
| 6910 | -// But on the command line of a file system, it's not as complicated, you can't | |
| 6911 | -// `cd` from a file, only directories. This way, links have to know less about | |
| 6912 | -// their current path. To go deeper you can do this: | |
| 6913 | -// | |
| 6914 | -// <Link to="deeper"/> | |
| 6915 | -// // instead of | |
| 6916 | -// <Link to=`{${props.uri}/deeper}`/> | |
| 6917 | -// | |
| 6918 | -// Just like `cd`, if you want to go deeper from the command line, you do this: | |
| 6919 | -// | |
| 6920 | -// cd deeper | |
| 6921 | -// # not | |
| 6922 | -// cd $(pwd)/deeper | |
| 6923 | -// | |
| 6924 | -// By treating every path as a directory, linking to relative paths should | |
| 6925 | -// require less contextual information and (fingers crossed) be more intuitive. | |
| 6926 | -var resolve = function resolve(to, base) { | |
| 6927 | - // /foo/bar, /baz/qux => /foo/bar | |
| 6928 | - if (startsWith(to, "/")) { | |
| 6929 | - return to; | |
| 6930 | - } | |
| 6931 | - | |
| 6932 | - var _to$split = to.split("?"), | |
| 6933 | - toPathname = _to$split[0], | |
| 6934 | - toQuery = _to$split[1]; | |
| 6935 | - | |
| 6936 | - var _base$split = base.split("?"), | |
| 6937 | - basePathname = _base$split[0]; | |
| 6938 | - | |
| 6939 | - var toSegments = segmentize(toPathname); | |
| 6940 | - var baseSegments = segmentize(basePathname); | |
| 6941 | - | |
| 6942 | - // ?a=b, /users?b=c => /users?a=b | |
| 6943 | - if (toSegments[0] === "") { | |
| 6944 | - return addQuery(basePathname, toQuery); | |
| 6945 | - } | |
| 6946 | - | |
| 6947 | - // profile, /users/789 => /users/789/profile | |
| 6948 | - if (!startsWith(toSegments[0], ".")) { | |
| 6949 | - var pathname = baseSegments.concat(toSegments).join("/"); | |
| 6950 | - return addQuery((basePathname === "/" ? "" : "/") + pathname, toQuery); | |
| 6951 | - } | |
| 6952 | - | |
| 6953 | - // ./ /users/123 => /users/123 | |
| 6954 | - // ../ /users/123 => /users | |
| 6955 | - // ../.. /users/123 => / | |
| 6956 | - // ../../one /a/b/c/d => /a/b/one | |
| 6957 | - // .././one /a/b/c/d => /a/b/c/one | |
| 6958 | - var allSegments = baseSegments.concat(toSegments); | |
| 6959 | - var segments = []; | |
| 6960 | - for (var i = 0, l = allSegments.length; i < l; i++) { | |
| 6961 | - var segment = allSegments[i]; | |
| 6962 | - if (segment === "..") segments.pop();else if (segment !== ".") segments.push(segment); | |
| 6963 | - } | |
| 6964 | - | |
| 6965 | - return addQuery("/" + segments.join("/"), toQuery); | |
| 6966 | -}; | |
| 6967 | - | |
| 6968 | -//////////////////////////////////////////////////////////////////////////////// | |
| 6969 | -// insertParams(path, params) | |
| 6970 | - | |
| 6971 | -var insertParams = function insertParams(path, params) { | |
| 6972 | - var _path$split = path.split("?"), | |
| 6973 | - pathBase = _path$split[0], | |
| 6974 | - _path$split$ = _path$split[1], | |
| 6975 | - query = _path$split$ === undefined ? "" : _path$split$; | |
| 6976 | - | |
| 6977 | - var segments = segmentize(pathBase); | |
| 6978 | - var constructedPath = "/" + segments.map(function (segment) { | |
| 6979 | - var match = paramRe.exec(segment); | |
| 6980 | - return match ? params[match[1]] : segment; | |
| 6981 | - }).join("/"); | |
| 6982 | - var _params$location = params.location; | |
| 6983 | - _params$location = _params$location === undefined ? {} : _params$location; | |
| 6984 | - var _params$location$sear = _params$location.search, | |
| 6985 | - search = _params$location$sear === undefined ? "" : _params$location$sear; | |
| 6986 | - | |
| 6987 | - var searchSplit = search.split("?")[1] || ""; | |
| 6988 | - constructedPath = addQuery(constructedPath, query, searchSplit); | |
| 6989 | - return constructedPath; | |
| 6990 | -}; | |
| 6991 | - | |
| 6992 | -var validateRedirect = function validateRedirect(from, to) { | |
| 6993 | - var filter = function filter(segment) { | |
| 6994 | - return isDynamic(segment); | |
| 6995 | - }; | |
| 6996 | - var fromString = segmentize(from).filter(filter).sort().join("/"); | |
| 6997 | - var toString = segmentize(to).filter(filter).sort().join("/"); | |
| 6998 | - return fromString === toString; | |
| 6999 | -}; | |
| 7000 | - | |
| 7001 | -//////////////////////////////////////////////////////////////////////////////// | |
| 7002 | -// Junk | |
| 7003 | -var paramRe = /^:(.+)/; | |
| 7004 | - | |
| 7005 | -var SEGMENT_POINTS = 4; | |
| 7006 | -var STATIC_POINTS = 3; | |
| 7007 | -var DYNAMIC_POINTS = 2; | |
| 7008 | -var SPLAT_PENALTY = 1; | |
| 7009 | -var ROOT_POINTS = 1; | |
| 7010 | - | |
| 7011 | -var isRootSegment = function isRootSegment(segment) { | |
| 7012 | - return segment === ""; | |
| 7013 | -}; | |
| 7014 | -var isDynamic = function isDynamic(segment) { | |
| 7015 | - return paramRe.test(segment); | |
| 7016 | -}; | |
| 7017 | -var isSplat = function isSplat(segment) { | |
| 7018 | - return segment && segment[0] === "*"; | |
| 7019 | -}; | |
| 7020 | - | |
| 7021 | -var rankRoute = function rankRoute(route, index) { | |
| 7022 | - var score = route.default ? 0 : segmentize(route.path).reduce(function (score, segment) { | |
| 7023 | - score += SEGMENT_POINTS; | |
| 7024 | - if (isRootSegment(segment)) score += ROOT_POINTS;else if (isDynamic(segment)) score += DYNAMIC_POINTS;else if (isSplat(segment)) score -= SEGMENT_POINTS + SPLAT_PENALTY;else score += STATIC_POINTS; | |
| 7025 | - return score; | |
| 7026 | - }, 0); | |
| 7027 | - return { route: route, score: score, index: index }; | |
| 7028 | -}; | |
| 7029 | - | |
| 7030 | -var rankRoutes = function rankRoutes(routes) { | |
| 7031 | - return routes.map(rankRoute).sort(function (a, b) { | |
| 7032 | - return a.score < b.score ? 1 : a.score > b.score ? -1 : a.index - b.index; | |
| 7033 | - }); | |
| 7034 | -}; | |
| 7035 | - | |
| 7036 | -var segmentize = function segmentize(uri) { | |
| 7037 | - return uri | |
| 7038 | - // strip starting/ending slashes | |
| 7039 | - .replace(/(^\/+|\/+$)/g, "").split("/"); | |
| 7040 | -}; | |
| 7041 | - | |
| 7042 | -var addQuery = function addQuery(pathname) { | |
| 7043 | - for (var _len = arguments.length, query = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { | |
| 7044 | - query[_key - 1] = arguments[_key]; | |
| 7045 | - } | |
| 7046 | - | |
| 7047 | - query = query.filter(function (q) { | |
| 7048 | - return q && q.length > 0; | |
| 7049 | - }); | |
| 7050 | - return pathname + (query && query.length > 0 ? "?" + query.join("&") : ""); | |
| 7051 | -}; | |
| 7052 | - | |
| 7053 | -var reservedNames = ["uri", "path"]; | |
| 7054 | - | |
| 7055 | -/** | |
| 7056 | - * Shallow compares two objects. | |
| 7057 | - * @param {Object} obj1 The first object to compare. | |
| 7058 | - * @param {Object} obj2 The second object to compare. | |
| 7059 | - */ | |
| 7060 | -var shallowCompare = function shallowCompare(obj1, obj2) { | |
| 7061 | - var obj1Keys = Object.keys(obj1); | |
| 7062 | - return obj1Keys.length === Object.keys(obj2).length && obj1Keys.every(function (key) { | |
| 7063 | - return obj2.hasOwnProperty(key) && obj1[key] === obj2[key]; | |
| 7064 | - }); | |
| 7065 | -}; | |
| 7066 | - | |
| 7067 | -//////////////////////////////////////////////////////////////////////////////// | |
| 7068 | - | |
| 7069 | - | |
| 7070 | -/***/ }), | |
| 7071 | - | |
| 7072 | -/***/ "../node_modules/create-react-context/lib/implementation.js": | |
| 7073 | -/*!******************************************************************!*\ | |
| 7074 | - !*** ../node_modules/create-react-context/lib/implementation.js ***! | |
| 7075 | - \******************************************************************/ | |
| 7076 | -/***/ ((module, exports, __webpack_require__) => { | |
| 7077 | - | |
| 7078 | -"use strict"; | |
| 7079 | - | |
| 7080 | - | |
| 7081 | -exports.__esModule = true; | |
| 7082 | - | |
| 7083 | -var _react = __webpack_require__(/*! react */ "react"); | |
| 7084 | - | |
| 7085 | -var _react2 = _interopRequireDefault(_react); | |
| 7086 | - | |
| 7087 | -var _propTypes = __webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js"); | |
| 7088 | - | |
| 7089 | -var _propTypes2 = _interopRequireDefault(_propTypes); | |
| 7090 | - | |
| 7091 | -var _gud = __webpack_require__(/*! gud */ "../node_modules/gud/index.js"); | |
| 7092 | - | |
| 7093 | -var _gud2 = _interopRequireDefault(_gud); | |
| 7094 | - | |
| 7095 | -var _warning = __webpack_require__(/*! warning */ "../node_modules/warning/warning.js"); | |
| 7096 | - | |
| 7097 | -var _warning2 = _interopRequireDefault(_warning); | |
| 7098 | - | |
| 7099 | -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | |
| 7100 | - | |
| 7101 | -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } | |
| 7102 | - | |
| 7103 | -function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } | |
| 7104 | - | |
| 7105 | -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } | |
| 7106 | - | |
| 7107 | -var MAX_SIGNED_31_BIT_INT = 1073741823; | |
| 7108 | - | |
| 7109 | -// Inlined Object.is polyfill. | |
| 7110 | -// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is | |
| 7111 | -function objectIs(x, y) { | |
| 7112 | - if (x === y) { | |
| 7113 | - return x !== 0 || 1 / x === 1 / y; | |
| 7114 | - } else { | |
| 7115 | - return x !== x && y !== y; | |
| 7116 | - } | |
| 7117 | -} | |
| 7118 | - | |
| 7119 | -function createEventEmitter(value) { | |
| 7120 | - var handlers = []; | |
| 7121 | - return { | |
| 7122 | - on: function on(handler) { | |
| 7123 | - handlers.push(handler); | |
| 7124 | - }, | |
| 7125 | - off: function off(handler) { | |
| 7126 | - handlers = handlers.filter(function (h) { | |
| 7127 | - return h !== handler; | |
| 7128 | - }); | |
| 7129 | - }, | |
| 7130 | - get: function get() { | |
| 7131 | - return value; | |
| 7132 | - }, | |
| 7133 | - set: function set(newValue, changedBits) { | |
| 7134 | - value = newValue; | |
| 7135 | - handlers.forEach(function (handler) { | |
| 7136 | - return handler(value, changedBits); | |
| 7137 | - }); | |
| 7138 | - } | |
| 7139 | - }; | |
| 7140 | -} | |
| 7141 | - | |
| 7142 | -function onlyChild(children) { | |
| 7143 | - return Array.isArray(children) ? children[0] : children; | |
| 7144 | -} | |
| 7145 | - | |
| 7146 | -function createReactContext(defaultValue, calculateChangedBits) { | |
| 7147 | - var _Provider$childContex, _Consumer$contextType; | |
| 7148 | - | |
| 7149 | - var contextProp = '__create-react-context-' + (0, _gud2.default)() + '__'; | |
| 7150 | - | |
| 7151 | - var Provider = function (_Component) { | |
| 7152 | - _inherits(Provider, _Component); | |
| 7153 | - | |
| 7154 | - function Provider() { | |
| 7155 | - var _temp, _this, _ret; | |
| 7156 | - | |
| 7157 | - _classCallCheck(this, Provider); | |
| 7158 | - | |
| 7159 | - for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) { | |
| 7160 | - args[_key] = arguments[_key]; | |
| 7161 | - } | |
| 7162 | - | |
| 7163 | - return _ret = (_temp = (_this = _possibleConstructorReturn(this, _Component.call.apply(_Component, [this].concat(args))), _this), _this.emitter = createEventEmitter(_this.props.value), _temp), _possibleConstructorReturn(_this, _ret); | |
| 7164 | - } | |
| 7165 | - | |
| 7166 | - Provider.prototype.getChildContext = function getChildContext() { | |
| 7167 | - var _ref; | |
| 7168 | - | |
| 7169 | - return _ref = {}, _ref[contextProp] = this.emitter, _ref; | |
| 7170 | - }; | |
| 7171 | - | |
| 7172 | - Provider.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) { | |
| 7173 | - if (this.props.value !== nextProps.value) { | |
| 7174 | - var oldValue = this.props.value; | |
| 7175 | - var newValue = nextProps.value; | |
| 7176 | - var changedBits = void 0; | |
| 7177 | - | |
| 7178 | - if (objectIs(oldValue, newValue)) { | |
| 7179 | - changedBits = 0; // No change | |
| 7180 | - } else { | |
| 7181 | - changedBits = typeof calculateChangedBits === 'function' ? calculateChangedBits(oldValue, newValue) : MAX_SIGNED_31_BIT_INT; | |
| 7182 | - if (true) { | |
| 7183 | - (0, _warning2.default)((changedBits & MAX_SIGNED_31_BIT_INT) === changedBits, 'calculateChangedBits: Expected the return value to be a ' + '31-bit integer. Instead received: %s', changedBits); | |
| 7184 | - } | |
| 7185 | - | |
| 7186 | - changedBits |= 0; | |
| 7187 | - | |
| 7188 | - if (changedBits !== 0) { | |
| 7189 | - this.emitter.set(nextProps.value, changedBits); | |
| 7190 | - } | |
| 7191 | - } | |
| 7192 | - } | |
| 7193 | - }; | |
| 7194 | - | |
| 7195 | - Provider.prototype.render = function render() { | |
| 7196 | - return this.props.children; | |
| 7197 | - }; | |
| 7198 | - | |
| 7199 | - return Provider; | |
| 7200 | - }(_react.Component); | |
| 7201 | - | |
| 7202 | - Provider.childContextTypes = (_Provider$childContex = {}, _Provider$childContex[contextProp] = _propTypes2.default.object.isRequired, _Provider$childContex); | |
| 7203 | - | |
| 7204 | - var Consumer = function (_Component2) { | |
| 7205 | - _inherits(Consumer, _Component2); | |
| 7206 | - | |
| 7207 | - function Consumer() { | |
| 7208 | - var _temp2, _this2, _ret2; | |
| 7209 | - | |
| 7210 | - _classCallCheck(this, Consumer); | |
| 7211 | - | |
| 7212 | - for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) { | |
| 7213 | - args[_key2] = arguments[_key2]; | |
| 7214 | - } | |
| 7215 | - | |
| 7216 | - return _ret2 = (_temp2 = (_this2 = _possibleConstructorReturn(this, _Component2.call.apply(_Component2, [this].concat(args))), _this2), _this2.state = { | |
| 7217 | - value: _this2.getValue() | |
| 7218 | - }, _this2.onUpdate = function (newValue, changedBits) { | |
| 7219 | - var observedBits = _this2.observedBits | 0; | |
| 7220 | - if ((observedBits & changedBits) !== 0) { | |
| 7221 | - _this2.setState({ value: _this2.getValue() }); | |
| 7222 | - } | |
| 7223 | - }, _temp2), _possibleConstructorReturn(_this2, _ret2); | |
| 7224 | - } | |
| 7225 | - | |
| 7226 | - Consumer.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) { | |
| 7227 | - var observedBits = nextProps.observedBits; | |
| 7228 | - | |
| 7229 | - this.observedBits = observedBits === undefined || observedBits === null ? MAX_SIGNED_31_BIT_INT // Subscribe to all changes by default | |
| 7230 | - : observedBits; | |
| 7231 | - }; | |
| 7232 | - | |
| 7233 | - Consumer.prototype.componentDidMount = function componentDidMount() { | |
| 7234 | - if (this.context[contextProp]) { | |
| 7235 | - this.context[contextProp].on(this.onUpdate); | |
| 7236 | - } | |
| 7237 | - var observedBits = this.props.observedBits; | |
| 7238 | - | |
| 7239 | - this.observedBits = observedBits === undefined || observedBits === null ? MAX_SIGNED_31_BIT_INT // Subscribe to all changes by default | |
| 7240 | - : observedBits; | |
| 7241 | - }; | |
| 7242 | - | |
| 7243 | - Consumer.prototype.componentWillUnmount = function componentWillUnmount() { | |
| 7244 | - if (this.context[contextProp]) { | |
| 7245 | - this.context[contextProp].off(this.onUpdate); | |
| 7246 | - } | |
| 7247 | - }; | |
| 7248 | - | |
| 7249 | - Consumer.prototype.getValue = function getValue() { | |
| 7250 | - if (this.context[contextProp]) { | |
| 7251 | - return this.context[contextProp].get(); | |
| 7252 | - } else { | |
| 7253 | - return defaultValue; | |
| 7254 | - } | |
| 7255 | - }; | |
| 7256 | - | |
| 7257 | - Consumer.prototype.render = function render() { | |
| 7258 | - return onlyChild(this.props.children)(this.state.value); | |
| 7259 | - }; | |
| 7260 | - | |
| 7261 | - return Consumer; | |
| 7262 | - }(_react.Component); | |
| 7263 | - | |
| 7264 | - Consumer.contextTypes = (_Consumer$contextType = {}, _Consumer$contextType[contextProp] = _propTypes2.default.object, _Consumer$contextType); | |
| 7265 | - | |
| 7266 | - | |
| 7267 | - return { | |
| 7268 | - Provider: Provider, | |
| 7269 | - Consumer: Consumer | |
| 7270 | - }; | |
| 7271 | -} | |
| 7272 | - | |
| 7273 | -exports["default"] = createReactContext; | |
| 7274 | -module.exports = exports['default']; | |
| 7275 | - | |
| 7276 | -/***/ }), | |
| 7277 | - | |
| 7278 | -/***/ "../node_modules/create-react-context/lib/index.js": | |
| 7279 | -/*!*********************************************************!*\ | |
| 7280 | - !*** ../node_modules/create-react-context/lib/index.js ***! | |
| 7281 | - \*********************************************************/ | |
| 7282 | -/***/ ((module, exports, __webpack_require__) => { | |
| 7283 | - | |
| 7284 | -"use strict"; | |
| 7285 | - | |
| 7286 | - | |
| 7287 | -exports.__esModule = true; | |
| 7288 | - | |
| 7289 | -var _react = __webpack_require__(/*! react */ "react"); | |
| 7290 | - | |
| 7291 | -var _react2 = _interopRequireDefault(_react); | |
| 7292 | - | |
| 7293 | -var _implementation = __webpack_require__(/*! ./implementation */ "../node_modules/create-react-context/lib/implementation.js"); | |
| 7294 | - | |
| 7295 | -var _implementation2 = _interopRequireDefault(_implementation); | |
| 7296 | - | |
| 7297 | -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | |
| 7298 | - | |
| 7299 | -exports["default"] = _react2.default.createContext || _implementation2.default; | |
| 7300 | -module.exports = exports['default']; | |
| 7301 | - | |
| 7302 | -/***/ }), | |
| 7303 | - | |
| 7304 | 6040 | /***/ "../node_modules/gud/index.js": |
| 7305 | 6041 | /*!************************************!*\ |
| 7306 | 6042 | !*** ../node_modules/gud/index.js ***! |
| 7307 | 6043 | \************************************/ |
| @@ -8235,10 +6971,9 @@ | ||
| 8235 | 6971 | // By explicitly using `prop-types` you are opting into new development behavior. |
| 8236 | 6972 | // http://fb.me/prop-types-in-prod |
| 8237 | 6973 | var throwOnDirectAccess = true; |
| 8238 | 6974 | module.exports = __webpack_require__(/*! ./factoryWithTypeCheckers */ "../node_modules/prop-types/factoryWithTypeCheckers.js")(ReactIs.isElement, throwOnDirectAccess); |
| 8239 | -} else // removed by dead control flow | |
| 8240 | -{} | |
| 6975 | +} else {} | |
| 8241 | 6976 | |
| 8242 | 6977 | |
| 8243 | 6978 | /***/ }), |
| 8244 | 6979 | |
| @@ -8476,10 +7211,9 @@ | ||
| 8476 | 7211 | |
| 8477 | 7212 | "use strict"; |
| 8478 | 7213 | |
| 8479 | 7214 | |
| 8480 | -if (false) // removed by dead control flow | |
| 8481 | -{} else { | |
| 7215 | +if (false) {} else { | |
| 8482 | 7216 | module.exports = __webpack_require__(/*! ./cjs/react-is.development.js */ "../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js"); |
| 8483 | 7217 | } |
| 8484 | 7218 | |
| 8485 | 7219 | |
| @@ -8493,9 +7227,9 @@ | ||
| 8493 | 7227 | |
| 8494 | 7228 | "use strict"; |
| 8495 | 7229 | __webpack_require__.r(__webpack_exports__); |
| 8496 | 7230 | /* harmony export */ __webpack_require__.d(__webpack_exports__, { |
| 8497 | -/* harmony export */ polyfill: () => (/* binding */ polyfill) | |
| 7231 | +/* harmony export */ "polyfill": () => (/* binding */ polyfill) | |
| 8498 | 7232 | /* harmony export */ }); |
| 8499 | 7233 | /** |
| 8500 | 7234 | * Copyright (c) 2013-present, Facebook, Inc. |
| 8501 | 7235 | * |
| @@ -8730,8 +7464,19 @@ | ||
| 8730 | 7464 | |
| 8731 | 7465 | |
| 8732 | 7466 | /***/ }), |
| 8733 | 7467 | |
| 7468 | +/***/ "react": | |
| 7469 | +/*!************************!*\ | |
| 7470 | + !*** external "React" ***! | |
| 7471 | + \************************/ | |
| 7472 | +/***/ ((module) => { | |
| 7473 | + | |
| 7474 | +"use strict"; | |
| 7475 | +module.exports = React; | |
| 7476 | + | |
| 7477 | +/***/ }), | |
| 7478 | + | |
| 8734 | 7479 | /***/ "@elementor/router": |
| 8735 | 7480 | /*!**********************************************!*\ |
| 8736 | 7481 | !*** external "elementorAppPackages.router" ***! |
| 8737 | 7482 | \**********************************************/ |
| @@ -8752,17 +7497,859 @@ | ||
| 8752 | 7497 | module.exports = wp.i18n; |
| 8753 | 7498 | |
| 8754 | 7499 | /***/ }), |
| 8755 | 7500 | |
| 8756 | -/***/ "react": | |
| 8757 | -/*!************************!*\ | |
| 8758 | - !*** external "React" ***! | |
| 8759 | - \************************/ | |
| 7501 | +/***/ "../node_modules/@babel/runtime/helpers/arrayLikeToArray.js": | |
| 7502 | +/*!******************************************************************!*\ | |
| 7503 | + !*** ../node_modules/@babel/runtime/helpers/arrayLikeToArray.js ***! | |
| 7504 | + \******************************************************************/ | |
| 8760 | 7505 | /***/ ((module) => { |
| 8761 | 7506 | |
| 8762 | -"use strict"; | |
| 8763 | -module.exports = React; | |
| 7507 | +function _arrayLikeToArray(arr, len) { | |
| 7508 | + if (len == null || len > arr.length) len = arr.length; | |
| 7509 | + for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; | |
| 7510 | + return arr2; | |
| 7511 | +} | |
| 7512 | +module.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 8764 | 7513 | |
| 7514 | +/***/ }), | |
| 7515 | + | |
| 7516 | +/***/ "../node_modules/@babel/runtime/helpers/arrayWithHoles.js": | |
| 7517 | +/*!****************************************************************!*\ | |
| 7518 | + !*** ../node_modules/@babel/runtime/helpers/arrayWithHoles.js ***! | |
| 7519 | + \****************************************************************/ | |
| 7520 | +/***/ ((module) => { | |
| 7521 | + | |
| 7522 | +function _arrayWithHoles(arr) { | |
| 7523 | + if (Array.isArray(arr)) return arr; | |
| 7524 | +} | |
| 7525 | +module.exports = _arrayWithHoles, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 7526 | + | |
| 7527 | +/***/ }), | |
| 7528 | + | |
| 7529 | +/***/ "../node_modules/@babel/runtime/helpers/arrayWithoutHoles.js": | |
| 7530 | +/*!*******************************************************************!*\ | |
| 7531 | + !*** ../node_modules/@babel/runtime/helpers/arrayWithoutHoles.js ***! | |
| 7532 | + \*******************************************************************/ | |
| 7533 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 7534 | + | |
| 7535 | +var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ "../node_modules/@babel/runtime/helpers/arrayLikeToArray.js"); | |
| 7536 | +function _arrayWithoutHoles(arr) { | |
| 7537 | + if (Array.isArray(arr)) return arrayLikeToArray(arr); | |
| 7538 | +} | |
| 7539 | +module.exports = _arrayWithoutHoles, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 7540 | + | |
| 7541 | +/***/ }), | |
| 7542 | + | |
| 7543 | +/***/ "../node_modules/@babel/runtime/helpers/assertThisInitialized.js": | |
| 7544 | +/*!***********************************************************************!*\ | |
| 7545 | + !*** ../node_modules/@babel/runtime/helpers/assertThisInitialized.js ***! | |
| 7546 | + \***********************************************************************/ | |
| 7547 | +/***/ ((module) => { | |
| 7548 | + | |
| 7549 | +function _assertThisInitialized(self) { | |
| 7550 | + if (self === void 0) { | |
| 7551 | + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); | |
| 7552 | + } | |
| 7553 | + return self; | |
| 7554 | +} | |
| 7555 | +module.exports = _assertThisInitialized, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 7556 | + | |
| 7557 | +/***/ }), | |
| 7558 | + | |
| 7559 | +/***/ "../node_modules/@babel/runtime/helpers/asyncToGenerator.js": | |
| 7560 | +/*!******************************************************************!*\ | |
| 7561 | + !*** ../node_modules/@babel/runtime/helpers/asyncToGenerator.js ***! | |
| 7562 | + \******************************************************************/ | |
| 7563 | +/***/ ((module) => { | |
| 7564 | + | |
| 7565 | +function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { | |
| 7566 | + try { | |
| 7567 | + var info = gen[key](arg); | |
| 7568 | + var value = info.value; | |
| 7569 | + } catch (error) { | |
| 7570 | + reject(error); | |
| 7571 | + return; | |
| 7572 | + } | |
| 7573 | + if (info.done) { | |
| 7574 | + resolve(value); | |
| 7575 | + } else { | |
| 7576 | + Promise.resolve(value).then(_next, _throw); | |
| 7577 | + } | |
| 7578 | +} | |
| 7579 | +function _asyncToGenerator(fn) { | |
| 7580 | + return function () { | |
| 7581 | + var self = this, | |
| 7582 | + args = arguments; | |
| 7583 | + return new Promise(function (resolve, reject) { | |
| 7584 | + var gen = fn.apply(self, args); | |
| 7585 | + function _next(value) { | |
| 7586 | + asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); | |
| 7587 | + } | |
| 7588 | + function _throw(err) { | |
| 7589 | + asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); | |
| 7590 | + } | |
| 7591 | + _next(undefined); | |
| 7592 | + }); | |
| 7593 | + }; | |
| 7594 | +} | |
| 7595 | +module.exports = _asyncToGenerator, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 7596 | + | |
| 7597 | +/***/ }), | |
| 7598 | + | |
| 7599 | +/***/ "../node_modules/@babel/runtime/helpers/classCallCheck.js": | |
| 7600 | +/*!****************************************************************!*\ | |
| 7601 | + !*** ../node_modules/@babel/runtime/helpers/classCallCheck.js ***! | |
| 7602 | + \****************************************************************/ | |
| 7603 | +/***/ ((module) => { | |
| 7604 | + | |
| 7605 | +function _classCallCheck(instance, Constructor) { | |
| 7606 | + if (!(instance instanceof Constructor)) { | |
| 7607 | + throw new TypeError("Cannot call a class as a function"); | |
| 7608 | + } | |
| 7609 | +} | |
| 7610 | +module.exports = _classCallCheck, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 7611 | + | |
| 7612 | +/***/ }), | |
| 7613 | + | |
| 7614 | +/***/ "../node_modules/@babel/runtime/helpers/createClass.js": | |
| 7615 | +/*!*************************************************************!*\ | |
| 7616 | + !*** ../node_modules/@babel/runtime/helpers/createClass.js ***! | |
| 7617 | + \*************************************************************/ | |
| 7618 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 7619 | + | |
| 7620 | +var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ "../node_modules/@babel/runtime/helpers/toPropertyKey.js"); | |
| 7621 | +function _defineProperties(target, props) { | |
| 7622 | + for (var i = 0; i < props.length; i++) { | |
| 7623 | + var descriptor = props[i]; | |
| 7624 | + descriptor.enumerable = descriptor.enumerable || false; | |
| 7625 | + descriptor.configurable = true; | |
| 7626 | + if ("value" in descriptor) descriptor.writable = true; | |
| 7627 | + Object.defineProperty(target, toPropertyKey(descriptor.key), descriptor); | |
| 7628 | + } | |
| 7629 | +} | |
| 7630 | +function _createClass(Constructor, protoProps, staticProps) { | |
| 7631 | + if (protoProps) _defineProperties(Constructor.prototype, protoProps); | |
| 7632 | + if (staticProps) _defineProperties(Constructor, staticProps); | |
| 7633 | + Object.defineProperty(Constructor, "prototype", { | |
| 7634 | + writable: false | |
| 7635 | + }); | |
| 7636 | + return Constructor; | |
| 7637 | +} | |
| 7638 | +module.exports = _createClass, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 7639 | + | |
| 7640 | +/***/ }), | |
| 7641 | + | |
| 7642 | +/***/ "../node_modules/@babel/runtime/helpers/defineProperty.js": | |
| 7643 | +/*!****************************************************************!*\ | |
| 7644 | + !*** ../node_modules/@babel/runtime/helpers/defineProperty.js ***! | |
| 7645 | + \****************************************************************/ | |
| 7646 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 7647 | + | |
| 7648 | +var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ "../node_modules/@babel/runtime/helpers/toPropertyKey.js"); | |
| 7649 | +function _defineProperty(obj, key, value) { | |
| 7650 | + key = toPropertyKey(key); | |
| 7651 | + if (key in obj) { | |
| 7652 | + Object.defineProperty(obj, key, { | |
| 7653 | + value: value, | |
| 7654 | + enumerable: true, | |
| 7655 | + configurable: true, | |
| 7656 | + writable: true | |
| 7657 | + }); | |
| 7658 | + } else { | |
| 7659 | + obj[key] = value; | |
| 7660 | + } | |
| 7661 | + return obj; | |
| 7662 | +} | |
| 7663 | +module.exports = _defineProperty, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 7664 | + | |
| 7665 | +/***/ }), | |
| 7666 | + | |
| 7667 | +/***/ "../node_modules/@babel/runtime/helpers/extends.js": | |
| 7668 | +/*!*********************************************************!*\ | |
| 7669 | + !*** ../node_modules/@babel/runtime/helpers/extends.js ***! | |
| 7670 | + \*********************************************************/ | |
| 7671 | +/***/ ((module) => { | |
| 7672 | + | |
| 7673 | +function _extends() { | |
| 7674 | + module.exports = _extends = Object.assign ? Object.assign.bind() : function (target) { | |
| 7675 | + for (var i = 1; i < arguments.length; i++) { | |
| 7676 | + var source = arguments[i]; | |
| 7677 | + for (var key in source) { | |
| 7678 | + if (Object.prototype.hasOwnProperty.call(source, key)) { | |
| 7679 | + target[key] = source[key]; | |
| 7680 | + } | |
| 7681 | + } | |
| 7682 | + } | |
| 7683 | + return target; | |
| 7684 | + }, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 7685 | + return _extends.apply(this, arguments); | |
| 7686 | +} | |
| 7687 | +module.exports = _extends, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 7688 | + | |
| 7689 | +/***/ }), | |
| 7690 | + | |
| 7691 | +/***/ "../node_modules/@babel/runtime/helpers/get.js": | |
| 7692 | +/*!*****************************************************!*\ | |
| 7693 | + !*** ../node_modules/@babel/runtime/helpers/get.js ***! | |
| 7694 | + \*****************************************************/ | |
| 7695 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 7696 | + | |
| 7697 | +var superPropBase = __webpack_require__(/*! ./superPropBase.js */ "../node_modules/@babel/runtime/helpers/superPropBase.js"); | |
| 7698 | +function _get() { | |
| 7699 | + if (typeof Reflect !== "undefined" && Reflect.get) { | |
| 7700 | + module.exports = _get = Reflect.get.bind(), module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 7701 | + } else { | |
| 7702 | + module.exports = _get = function _get(target, property, receiver) { | |
| 7703 | + var base = superPropBase(target, property); | |
| 7704 | + if (!base) return; | |
| 7705 | + var desc = Object.getOwnPropertyDescriptor(base, property); | |
| 7706 | + if (desc.get) { | |
| 7707 | + return desc.get.call(arguments.length < 3 ? target : receiver); | |
| 7708 | + } | |
| 7709 | + return desc.value; | |
| 7710 | + }, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 7711 | + } | |
| 7712 | + return _get.apply(this, arguments); | |
| 7713 | +} | |
| 7714 | +module.exports = _get, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 7715 | + | |
| 7716 | +/***/ }), | |
| 7717 | + | |
| 7718 | +/***/ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js": | |
| 7719 | +/*!****************************************************************!*\ | |
| 7720 | + !*** ../node_modules/@babel/runtime/helpers/getPrototypeOf.js ***! | |
| 7721 | + \****************************************************************/ | |
| 7722 | +/***/ ((module) => { | |
| 7723 | + | |
| 7724 | +function _getPrototypeOf(o) { | |
| 7725 | + module.exports = _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { | |
| 7726 | + return o.__proto__ || Object.getPrototypeOf(o); | |
| 7727 | + }, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 7728 | + return _getPrototypeOf(o); | |
| 7729 | +} | |
| 7730 | +module.exports = _getPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 7731 | + | |
| 7732 | +/***/ }), | |
| 7733 | + | |
| 7734 | +/***/ "../node_modules/@babel/runtime/helpers/inherits.js": | |
| 7735 | +/*!**********************************************************!*\ | |
| 7736 | + !*** ../node_modules/@babel/runtime/helpers/inherits.js ***! | |
| 7737 | + \**********************************************************/ | |
| 7738 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 7739 | + | |
| 7740 | +var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf.js */ "../node_modules/@babel/runtime/helpers/setPrototypeOf.js"); | |
| 7741 | +function _inherits(subClass, superClass) { | |
| 7742 | + if (typeof superClass !== "function" && superClass !== null) { | |
| 7743 | + throw new TypeError("Super expression must either be null or a function"); | |
| 7744 | + } | |
| 7745 | + subClass.prototype = Object.create(superClass && superClass.prototype, { | |
| 7746 | + constructor: { | |
| 7747 | + value: subClass, | |
| 7748 | + writable: true, | |
| 7749 | + configurable: true | |
| 7750 | + } | |
| 7751 | + }); | |
| 7752 | + Object.defineProperty(subClass, "prototype", { | |
| 7753 | + writable: false | |
| 7754 | + }); | |
| 7755 | + if (superClass) setPrototypeOf(subClass, superClass); | |
| 7756 | +} | |
| 7757 | +module.exports = _inherits, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 7758 | + | |
| 7759 | +/***/ }), | |
| 7760 | + | |
| 7761 | +/***/ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js": | |
| 7762 | +/*!***********************************************************************!*\ | |
| 7763 | + !*** ../node_modules/@babel/runtime/helpers/interopRequireDefault.js ***! | |
| 7764 | + \***********************************************************************/ | |
| 7765 | +/***/ ((module) => { | |
| 7766 | + | |
| 7767 | +function _interopRequireDefault(obj) { | |
| 7768 | + return obj && obj.__esModule ? obj : { | |
| 7769 | + "default": obj | |
| 7770 | + }; | |
| 7771 | +} | |
| 7772 | +module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 7773 | + | |
| 7774 | +/***/ }), | |
| 7775 | + | |
| 7776 | +/***/ "../node_modules/@babel/runtime/helpers/iterableToArray.js": | |
| 7777 | +/*!*****************************************************************!*\ | |
| 7778 | + !*** ../node_modules/@babel/runtime/helpers/iterableToArray.js ***! | |
| 7779 | + \*****************************************************************/ | |
| 7780 | +/***/ ((module) => { | |
| 7781 | + | |
| 7782 | +function _iterableToArray(iter) { | |
| 7783 | + if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); | |
| 7784 | +} | |
| 7785 | +module.exports = _iterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 7786 | + | |
| 7787 | +/***/ }), | |
| 7788 | + | |
| 7789 | +/***/ "../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js": | |
| 7790 | +/*!**********************************************************************!*\ | |
| 7791 | + !*** ../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js ***! | |
| 7792 | + \**********************************************************************/ | |
| 7793 | +/***/ ((module) => { | |
| 7794 | + | |
| 7795 | +function _iterableToArrayLimit(arr, i) { | |
| 7796 | + var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; | |
| 7797 | + if (null != _i) { | |
| 7798 | + var _s, | |
| 7799 | + _e, | |
| 7800 | + _x, | |
| 7801 | + _r, | |
| 7802 | + _arr = [], | |
| 7803 | + _n = !0, | |
| 7804 | + _d = !1; | |
| 7805 | + try { | |
| 7806 | + if (_x = (_i = _i.call(arr)).next, 0 === i) { | |
| 7807 | + if (Object(_i) !== _i) return; | |
| 7808 | + _n = !1; | |
| 7809 | + } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); | |
| 7810 | + } catch (err) { | |
| 7811 | + _d = !0, _e = err; | |
| 7812 | + } finally { | |
| 7813 | + try { | |
| 7814 | + if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return; | |
| 7815 | + } finally { | |
| 7816 | + if (_d) throw _e; | |
| 7817 | + } | |
| 7818 | + } | |
| 7819 | + return _arr; | |
| 7820 | + } | |
| 7821 | +} | |
| 7822 | +module.exports = _iterableToArrayLimit, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 7823 | + | |
| 7824 | +/***/ }), | |
| 7825 | + | |
| 7826 | +/***/ "../node_modules/@babel/runtime/helpers/nonIterableRest.js": | |
| 7827 | +/*!*****************************************************************!*\ | |
| 7828 | + !*** ../node_modules/@babel/runtime/helpers/nonIterableRest.js ***! | |
| 7829 | + \*****************************************************************/ | |
| 7830 | +/***/ ((module) => { | |
| 7831 | + | |
| 7832 | +function _nonIterableRest() { | |
| 7833 | + throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); | |
| 7834 | +} | |
| 7835 | +module.exports = _nonIterableRest, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 7836 | + | |
| 7837 | +/***/ }), | |
| 7838 | + | |
| 7839 | +/***/ "../node_modules/@babel/runtime/helpers/nonIterableSpread.js": | |
| 7840 | +/*!*******************************************************************!*\ | |
| 7841 | + !*** ../node_modules/@babel/runtime/helpers/nonIterableSpread.js ***! | |
| 7842 | + \*******************************************************************/ | |
| 7843 | +/***/ ((module) => { | |
| 7844 | + | |
| 7845 | +function _nonIterableSpread() { | |
| 7846 | + throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); | |
| 7847 | +} | |
| 7848 | +module.exports = _nonIterableSpread, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 7849 | + | |
| 7850 | +/***/ }), | |
| 7851 | + | |
| 7852 | +/***/ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js": | |
| 7853 | +/*!***************************************************************************!*\ | |
| 7854 | + !*** ../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js ***! | |
| 7855 | + \***************************************************************************/ | |
| 7856 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 7857 | + | |
| 7858 | +var _typeof = (__webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/typeof.js")["default"]); | |
| 7859 | +var assertThisInitialized = __webpack_require__(/*! ./assertThisInitialized.js */ "../node_modules/@babel/runtime/helpers/assertThisInitialized.js"); | |
| 7860 | +function _possibleConstructorReturn(self, call) { | |
| 7861 | + if (call && (_typeof(call) === "object" || typeof call === "function")) { | |
| 7862 | + return call; | |
| 7863 | + } else if (call !== void 0) { | |
| 7864 | + throw new TypeError("Derived constructors may only return object or undefined"); | |
| 7865 | + } | |
| 7866 | + return assertThisInitialized(self); | |
| 7867 | +} | |
| 7868 | +module.exports = _possibleConstructorReturn, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 7869 | + | |
| 7870 | +/***/ }), | |
| 7871 | + | |
| 7872 | +/***/ "../node_modules/@babel/runtime/helpers/regeneratorRuntime.js": | |
| 7873 | +/*!********************************************************************!*\ | |
| 7874 | + !*** ../node_modules/@babel/runtime/helpers/regeneratorRuntime.js ***! | |
| 7875 | + \********************************************************************/ | |
| 7876 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 7877 | + | |
| 7878 | +var _typeof = (__webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/typeof.js")["default"]); | |
| 7879 | +function _regeneratorRuntime() { | |
| 7880 | + "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ | |
| 7881 | + module.exports = _regeneratorRuntime = function _regeneratorRuntime() { | |
| 7882 | + return exports; | |
| 7883 | + }, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 7884 | + var exports = {}, | |
| 7885 | + Op = Object.prototype, | |
| 7886 | + hasOwn = Op.hasOwnProperty, | |
| 7887 | + defineProperty = Object.defineProperty || function (obj, key, desc) { | |
| 7888 | + obj[key] = desc.value; | |
| 7889 | + }, | |
| 7890 | + $Symbol = "function" == typeof Symbol ? Symbol : {}, | |
| 7891 | + iteratorSymbol = $Symbol.iterator || "@@iterator", | |
| 7892 | + asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", | |
| 7893 | + toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; | |
| 7894 | + function define(obj, key, value) { | |
| 7895 | + return Object.defineProperty(obj, key, { | |
| 7896 | + value: value, | |
| 7897 | + enumerable: !0, | |
| 7898 | + configurable: !0, | |
| 7899 | + writable: !0 | |
| 7900 | + }), obj[key]; | |
| 7901 | + } | |
| 7902 | + try { | |
| 7903 | + define({}, ""); | |
| 7904 | + } catch (err) { | |
| 7905 | + define = function define(obj, key, value) { | |
| 7906 | + return obj[key] = value; | |
| 7907 | + }; | |
| 7908 | + } | |
| 7909 | + function wrap(innerFn, outerFn, self, tryLocsList) { | |
| 7910 | + var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, | |
| 7911 | + generator = Object.create(protoGenerator.prototype), | |
| 7912 | + context = new Context(tryLocsList || []); | |
| 7913 | + return defineProperty(generator, "_invoke", { | |
| 7914 | + value: makeInvokeMethod(innerFn, self, context) | |
| 7915 | + }), generator; | |
| 7916 | + } | |
| 7917 | + function tryCatch(fn, obj, arg) { | |
| 7918 | + try { | |
| 7919 | + return { | |
| 7920 | + type: "normal", | |
| 7921 | + arg: fn.call(obj, arg) | |
| 7922 | + }; | |
| 7923 | + } catch (err) { | |
| 7924 | + return { | |
| 7925 | + type: "throw", | |
| 7926 | + arg: err | |
| 7927 | + }; | |
| 7928 | + } | |
| 7929 | + } | |
| 7930 | + exports.wrap = wrap; | |
| 7931 | + var ContinueSentinel = {}; | |
| 7932 | + function Generator() {} | |
| 7933 | + function GeneratorFunction() {} | |
| 7934 | + function GeneratorFunctionPrototype() {} | |
| 7935 | + var IteratorPrototype = {}; | |
| 7936 | + define(IteratorPrototype, iteratorSymbol, function () { | |
| 7937 | + return this; | |
| 7938 | + }); | |
| 7939 | + var getProto = Object.getPrototypeOf, | |
| 7940 | + NativeIteratorPrototype = getProto && getProto(getProto(values([]))); | |
| 7941 | + NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); | |
| 7942 | + var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); | |
| 7943 | + function defineIteratorMethods(prototype) { | |
| 7944 | + ["next", "throw", "return"].forEach(function (method) { | |
| 7945 | + define(prototype, method, function (arg) { | |
| 7946 | + return this._invoke(method, arg); | |
| 7947 | + }); | |
| 7948 | + }); | |
| 7949 | + } | |
| 7950 | + function AsyncIterator(generator, PromiseImpl) { | |
| 7951 | + function invoke(method, arg, resolve, reject) { | |
| 7952 | + var record = tryCatch(generator[method], generator, arg); | |
| 7953 | + if ("throw" !== record.type) { | |
| 7954 | + var result = record.arg, | |
| 7955 | + value = result.value; | |
| 7956 | + return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { | |
| 7957 | + invoke("next", value, resolve, reject); | |
| 7958 | + }, function (err) { | |
| 7959 | + invoke("throw", err, resolve, reject); | |
| 7960 | + }) : PromiseImpl.resolve(value).then(function (unwrapped) { | |
| 7961 | + result.value = unwrapped, resolve(result); | |
| 7962 | + }, function (error) { | |
| 7963 | + return invoke("throw", error, resolve, reject); | |
| 7964 | + }); | |
| 7965 | + } | |
| 7966 | + reject(record.arg); | |
| 7967 | + } | |
| 7968 | + var previousPromise; | |
| 7969 | + defineProperty(this, "_invoke", { | |
| 7970 | + value: function value(method, arg) { | |
| 7971 | + function callInvokeWithMethodAndArg() { | |
| 7972 | + return new PromiseImpl(function (resolve, reject) { | |
| 7973 | + invoke(method, arg, resolve, reject); | |
| 7974 | + }); | |
| 7975 | + } | |
| 7976 | + return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); | |
| 7977 | + } | |
| 7978 | + }); | |
| 7979 | + } | |
| 7980 | + function makeInvokeMethod(innerFn, self, context) { | |
| 7981 | + var state = "suspendedStart"; | |
| 7982 | + return function (method, arg) { | |
| 7983 | + if ("executing" === state) throw new Error("Generator is already running"); | |
| 7984 | + if ("completed" === state) { | |
| 7985 | + if ("throw" === method) throw arg; | |
| 7986 | + return doneResult(); | |
| 7987 | + } | |
| 7988 | + for (context.method = method, context.arg = arg;;) { | |
| 7989 | + var delegate = context.delegate; | |
| 7990 | + if (delegate) { | |
| 7991 | + var delegateResult = maybeInvokeDelegate(delegate, context); | |
| 7992 | + if (delegateResult) { | |
| 7993 | + if (delegateResult === ContinueSentinel) continue; | |
| 7994 | + return delegateResult; | |
| 7995 | + } | |
| 7996 | + } | |
| 7997 | + if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { | |
| 7998 | + if ("suspendedStart" === state) throw state = "completed", context.arg; | |
| 7999 | + context.dispatchException(context.arg); | |
| 8000 | + } else "return" === context.method && context.abrupt("return", context.arg); | |
| 8001 | + state = "executing"; | |
| 8002 | + var record = tryCatch(innerFn, self, context); | |
| 8003 | + if ("normal" === record.type) { | |
| 8004 | + if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; | |
| 8005 | + return { | |
| 8006 | + value: record.arg, | |
| 8007 | + done: context.done | |
| 8008 | + }; | |
| 8009 | + } | |
| 8010 | + "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); | |
| 8011 | + } | |
| 8012 | + }; | |
| 8013 | + } | |
| 8014 | + function maybeInvokeDelegate(delegate, context) { | |
| 8015 | + var methodName = context.method, | |
| 8016 | + method = delegate.iterator[methodName]; | |
| 8017 | + if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel; | |
| 8018 | + var record = tryCatch(method, delegate.iterator, context.arg); | |
| 8019 | + if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; | |
| 8020 | + var info = record.arg; | |
| 8021 | + return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); | |
| 8022 | + } | |
| 8023 | + function pushTryEntry(locs) { | |
| 8024 | + var entry = { | |
| 8025 | + tryLoc: locs[0] | |
| 8026 | + }; | |
| 8027 | + 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); | |
| 8028 | + } | |
| 8029 | + function resetTryEntry(entry) { | |
| 8030 | + var record = entry.completion || {}; | |
| 8031 | + record.type = "normal", delete record.arg, entry.completion = record; | |
| 8032 | + } | |
| 8033 | + function Context(tryLocsList) { | |
| 8034 | + this.tryEntries = [{ | |
| 8035 | + tryLoc: "root" | |
| 8036 | + }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); | |
| 8037 | + } | |
| 8038 | + function values(iterable) { | |
| 8039 | + if (iterable) { | |
| 8040 | + var iteratorMethod = iterable[iteratorSymbol]; | |
| 8041 | + if (iteratorMethod) return iteratorMethod.call(iterable); | |
| 8042 | + if ("function" == typeof iterable.next) return iterable; | |
| 8043 | + if (!isNaN(iterable.length)) { | |
| 8044 | + var i = -1, | |
| 8045 | + next = function next() { | |
| 8046 | + for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; | |
| 8047 | + return next.value = undefined, next.done = !0, next; | |
| 8048 | + }; | |
| 8049 | + return next.next = next; | |
| 8050 | + } | |
| 8051 | + } | |
| 8052 | + return { | |
| 8053 | + next: doneResult | |
| 8054 | + }; | |
| 8055 | + } | |
| 8056 | + function doneResult() { | |
| 8057 | + return { | |
| 8058 | + value: undefined, | |
| 8059 | + done: !0 | |
| 8060 | + }; | |
| 8061 | + } | |
| 8062 | + return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", { | |
| 8063 | + value: GeneratorFunctionPrototype, | |
| 8064 | + configurable: !0 | |
| 8065 | + }), defineProperty(GeneratorFunctionPrototype, "constructor", { | |
| 8066 | + value: GeneratorFunction, | |
| 8067 | + configurable: !0 | |
| 8068 | + }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { | |
| 8069 | + var ctor = "function" == typeof genFun && genFun.constructor; | |
| 8070 | + return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); | |
| 8071 | + }, exports.mark = function (genFun) { | |
| 8072 | + return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; | |
| 8073 | + }, exports.awrap = function (arg) { | |
| 8074 | + return { | |
| 8075 | + __await: arg | |
| 8076 | + }; | |
| 8077 | + }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { | |
| 8078 | + return this; | |
| 8079 | + }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { | |
| 8080 | + void 0 === PromiseImpl && (PromiseImpl = Promise); | |
| 8081 | + var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); | |
| 8082 | + return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { | |
| 8083 | + return result.done ? result.value : iter.next(); | |
| 8084 | + }); | |
| 8085 | + }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { | |
| 8086 | + return this; | |
| 8087 | + }), define(Gp, "toString", function () { | |
| 8088 | + return "[object Generator]"; | |
| 8089 | + }), exports.keys = function (val) { | |
| 8090 | + var object = Object(val), | |
| 8091 | + keys = []; | |
| 8092 | + for (var key in object) keys.push(key); | |
| 8093 | + return keys.reverse(), function next() { | |
| 8094 | + for (; keys.length;) { | |
| 8095 | + var key = keys.pop(); | |
| 8096 | + if (key in object) return next.value = key, next.done = !1, next; | |
| 8097 | + } | |
| 8098 | + return next.done = !0, next; | |
| 8099 | + }; | |
| 8100 | + }, exports.values = values, Context.prototype = { | |
| 8101 | + constructor: Context, | |
| 8102 | + reset: function reset(skipTempReset) { | |
| 8103 | + if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); | |
| 8104 | + }, | |
| 8105 | + stop: function stop() { | |
| 8106 | + this.done = !0; | |
| 8107 | + var rootRecord = this.tryEntries[0].completion; | |
| 8108 | + if ("throw" === rootRecord.type) throw rootRecord.arg; | |
| 8109 | + return this.rval; | |
| 8110 | + }, | |
| 8111 | + dispatchException: function dispatchException(exception) { | |
| 8112 | + if (this.done) throw exception; | |
| 8113 | + var context = this; | |
| 8114 | + function handle(loc, caught) { | |
| 8115 | + return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; | |
| 8116 | + } | |
| 8117 | + for (var i = this.tryEntries.length - 1; i >= 0; --i) { | |
| 8118 | + var entry = this.tryEntries[i], | |
| 8119 | + record = entry.completion; | |
| 8120 | + if ("root" === entry.tryLoc) return handle("end"); | |
| 8121 | + if (entry.tryLoc <= this.prev) { | |
| 8122 | + var hasCatch = hasOwn.call(entry, "catchLoc"), | |
| 8123 | + hasFinally = hasOwn.call(entry, "finallyLoc"); | |
| 8124 | + if (hasCatch && hasFinally) { | |
| 8125 | + if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); | |
| 8126 | + if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); | |
| 8127 | + } else if (hasCatch) { | |
| 8128 | + if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); | |
| 8129 | + } else { | |
| 8130 | + if (!hasFinally) throw new Error("try statement without catch or finally"); | |
| 8131 | + if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); | |
| 8132 | + } | |
| 8133 | + } | |
| 8134 | + } | |
| 8135 | + }, | |
| 8136 | + abrupt: function abrupt(type, arg) { | |
| 8137 | + for (var i = this.tryEntries.length - 1; i >= 0; --i) { | |
| 8138 | + var entry = this.tryEntries[i]; | |
| 8139 | + if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { | |
| 8140 | + var finallyEntry = entry; | |
| 8141 | + break; | |
| 8142 | + } | |
| 8143 | + } | |
| 8144 | + finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); | |
| 8145 | + var record = finallyEntry ? finallyEntry.completion : {}; | |
| 8146 | + return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); | |
| 8147 | + }, | |
| 8148 | + complete: function complete(record, afterLoc) { | |
| 8149 | + if ("throw" === record.type) throw record.arg; | |
| 8150 | + return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; | |
| 8151 | + }, | |
| 8152 | + finish: function finish(finallyLoc) { | |
| 8153 | + for (var i = this.tryEntries.length - 1; i >= 0; --i) { | |
| 8154 | + var entry = this.tryEntries[i]; | |
| 8155 | + if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; | |
| 8156 | + } | |
| 8157 | + }, | |
| 8158 | + "catch": function _catch(tryLoc) { | |
| 8159 | + for (var i = this.tryEntries.length - 1; i >= 0; --i) { | |
| 8160 | + var entry = this.tryEntries[i]; | |
| 8161 | + if (entry.tryLoc === tryLoc) { | |
| 8162 | + var record = entry.completion; | |
| 8163 | + if ("throw" === record.type) { | |
| 8164 | + var thrown = record.arg; | |
| 8165 | + resetTryEntry(entry); | |
| 8166 | + } | |
| 8167 | + return thrown; | |
| 8168 | + } | |
| 8169 | + } | |
| 8170 | + throw new Error("illegal catch attempt"); | |
| 8171 | + }, | |
| 8172 | + delegateYield: function delegateYield(iterable, resultName, nextLoc) { | |
| 8173 | + return this.delegate = { | |
| 8174 | + iterator: values(iterable), | |
| 8175 | + resultName: resultName, | |
| 8176 | + nextLoc: nextLoc | |
| 8177 | + }, "next" === this.method && (this.arg = undefined), ContinueSentinel; | |
| 8178 | + } | |
| 8179 | + }, exports; | |
| 8180 | +} | |
| 8181 | +module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 8182 | + | |
| 8183 | +/***/ }), | |
| 8184 | + | |
| 8185 | +/***/ "../node_modules/@babel/runtime/helpers/setPrototypeOf.js": | |
| 8186 | +/*!****************************************************************!*\ | |
| 8187 | + !*** ../node_modules/@babel/runtime/helpers/setPrototypeOf.js ***! | |
| 8188 | + \****************************************************************/ | |
| 8189 | +/***/ ((module) => { | |
| 8190 | + | |
| 8191 | +function _setPrototypeOf(o, p) { | |
| 8192 | + module.exports = _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { | |
| 8193 | + o.__proto__ = p; | |
| 8194 | + return o; | |
| 8195 | + }, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 8196 | + return _setPrototypeOf(o, p); | |
| 8197 | +} | |
| 8198 | +module.exports = _setPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 8199 | + | |
| 8200 | +/***/ }), | |
| 8201 | + | |
| 8202 | +/***/ "../node_modules/@babel/runtime/helpers/slicedToArray.js": | |
| 8203 | +/*!***************************************************************!*\ | |
| 8204 | + !*** ../node_modules/@babel/runtime/helpers/slicedToArray.js ***! | |
| 8205 | + \***************************************************************/ | |
| 8206 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 8207 | + | |
| 8208 | +var arrayWithHoles = __webpack_require__(/*! ./arrayWithHoles.js */ "../node_modules/@babel/runtime/helpers/arrayWithHoles.js"); | |
| 8209 | +var iterableToArrayLimit = __webpack_require__(/*! ./iterableToArrayLimit.js */ "../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js"); | |
| 8210 | +var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ "../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js"); | |
| 8211 | +var nonIterableRest = __webpack_require__(/*! ./nonIterableRest.js */ "../node_modules/@babel/runtime/helpers/nonIterableRest.js"); | |
| 8212 | +function _slicedToArray(arr, i) { | |
| 8213 | + return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest(); | |
| 8214 | +} | |
| 8215 | +module.exports = _slicedToArray, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 8216 | + | |
| 8217 | +/***/ }), | |
| 8218 | + | |
| 8219 | +/***/ "../node_modules/@babel/runtime/helpers/superPropBase.js": | |
| 8220 | +/*!***************************************************************!*\ | |
| 8221 | + !*** ../node_modules/@babel/runtime/helpers/superPropBase.js ***! | |
| 8222 | + \***************************************************************/ | |
| 8223 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 8224 | + | |
| 8225 | +var getPrototypeOf = __webpack_require__(/*! ./getPrototypeOf.js */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js"); | |
| 8226 | +function _superPropBase(object, property) { | |
| 8227 | + while (!Object.prototype.hasOwnProperty.call(object, property)) { | |
| 8228 | + object = getPrototypeOf(object); | |
| 8229 | + if (object === null) break; | |
| 8230 | + } | |
| 8231 | + return object; | |
| 8232 | +} | |
| 8233 | +module.exports = _superPropBase, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 8234 | + | |
| 8235 | +/***/ }), | |
| 8236 | + | |
| 8237 | +/***/ "../node_modules/@babel/runtime/helpers/toConsumableArray.js": | |
| 8238 | +/*!*******************************************************************!*\ | |
| 8239 | + !*** ../node_modules/@babel/runtime/helpers/toConsumableArray.js ***! | |
| 8240 | + \*******************************************************************/ | |
| 8241 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 8242 | + | |
| 8243 | +var arrayWithoutHoles = __webpack_require__(/*! ./arrayWithoutHoles.js */ "../node_modules/@babel/runtime/helpers/arrayWithoutHoles.js"); | |
| 8244 | +var iterableToArray = __webpack_require__(/*! ./iterableToArray.js */ "../node_modules/@babel/runtime/helpers/iterableToArray.js"); | |
| 8245 | +var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ "../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js"); | |
| 8246 | +var nonIterableSpread = __webpack_require__(/*! ./nonIterableSpread.js */ "../node_modules/@babel/runtime/helpers/nonIterableSpread.js"); | |
| 8247 | +function _toConsumableArray(arr) { | |
| 8248 | + return arrayWithoutHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableSpread(); | |
| 8249 | +} | |
| 8250 | +module.exports = _toConsumableArray, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 8251 | + | |
| 8252 | +/***/ }), | |
| 8253 | + | |
| 8254 | +/***/ "../node_modules/@babel/runtime/helpers/toPrimitive.js": | |
| 8255 | +/*!*************************************************************!*\ | |
| 8256 | + !*** ../node_modules/@babel/runtime/helpers/toPrimitive.js ***! | |
| 8257 | + \*************************************************************/ | |
| 8258 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 8259 | + | |
| 8260 | +var _typeof = (__webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/typeof.js")["default"]); | |
| 8261 | +function _toPrimitive(input, hint) { | |
| 8262 | + if (_typeof(input) !== "object" || input === null) return input; | |
| 8263 | + var prim = input[Symbol.toPrimitive]; | |
| 8264 | + if (prim !== undefined) { | |
| 8265 | + var res = prim.call(input, hint || "default"); | |
| 8266 | + if (_typeof(res) !== "object") return res; | |
| 8267 | + throw new TypeError("@@toPrimitive must return a primitive value."); | |
| 8268 | + } | |
| 8269 | + return (hint === "string" ? String : Number)(input); | |
| 8270 | +} | |
| 8271 | +module.exports = _toPrimitive, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 8272 | + | |
| 8273 | +/***/ }), | |
| 8274 | + | |
| 8275 | +/***/ "../node_modules/@babel/runtime/helpers/toPropertyKey.js": | |
| 8276 | +/*!***************************************************************!*\ | |
| 8277 | + !*** ../node_modules/@babel/runtime/helpers/toPropertyKey.js ***! | |
| 8278 | + \***************************************************************/ | |
| 8279 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 8280 | + | |
| 8281 | +var _typeof = (__webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/typeof.js")["default"]); | |
| 8282 | +var toPrimitive = __webpack_require__(/*! ./toPrimitive.js */ "../node_modules/@babel/runtime/helpers/toPrimitive.js"); | |
| 8283 | +function _toPropertyKey(arg) { | |
| 8284 | + var key = toPrimitive(arg, "string"); | |
| 8285 | + return _typeof(key) === "symbol" ? key : String(key); | |
| 8286 | +} | |
| 8287 | +module.exports = _toPropertyKey, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 8288 | + | |
| 8289 | +/***/ }), | |
| 8290 | + | |
| 8291 | +/***/ "../node_modules/@babel/runtime/helpers/typeof.js": | |
| 8292 | +/*!********************************************************!*\ | |
| 8293 | + !*** ../node_modules/@babel/runtime/helpers/typeof.js ***! | |
| 8294 | + \********************************************************/ | |
| 8295 | +/***/ ((module) => { | |
| 8296 | + | |
| 8297 | +function _typeof(obj) { | |
| 8298 | + "@babel/helpers - typeof"; | |
| 8299 | + | |
| 8300 | + return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { | |
| 8301 | + return typeof obj; | |
| 8302 | + } : function (obj) { | |
| 8303 | + return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; | |
| 8304 | + }, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(obj); | |
| 8305 | +} | |
| 8306 | +module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 8307 | + | |
| 8308 | +/***/ }), | |
| 8309 | + | |
| 8310 | +/***/ "../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js": | |
| 8311 | +/*!****************************************************************************!*\ | |
| 8312 | + !*** ../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js ***! | |
| 8313 | + \****************************************************************************/ | |
| 8314 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 8315 | + | |
| 8316 | +var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ "../node_modules/@babel/runtime/helpers/arrayLikeToArray.js"); | |
| 8317 | +function _unsupportedIterableToArray(o, minLen) { | |
| 8318 | + if (!o) return; | |
| 8319 | + if (typeof o === "string") return arrayLikeToArray(o, minLen); | |
| 8320 | + var n = Object.prototype.toString.call(o).slice(8, -1); | |
| 8321 | + if (n === "Object" && o.constructor) n = o.constructor.name; | |
| 8322 | + if (n === "Map" || n === "Set") return Array.from(o); | |
| 8323 | + if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen); | |
| 8324 | +} | |
| 8325 | +module.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 8326 | + | |
| 8327 | +/***/ }), | |
| 8328 | + | |
| 8329 | +/***/ "../node_modules/@babel/runtime/regenerator/index.js": | |
| 8330 | +/*!***********************************************************!*\ | |
| 8331 | + !*** ../node_modules/@babel/runtime/regenerator/index.js ***! | |
| 8332 | + \***********************************************************/ | |
| 8333 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 8334 | + | |
| 8335 | +// TODO(Babel 8): Remove this file. | |
| 8336 | + | |
| 8337 | +var runtime = __webpack_require__(/*! ../helpers/regeneratorRuntime */ "../node_modules/@babel/runtime/helpers/regeneratorRuntime.js")(); | |
| 8338 | +module.exports = runtime; | |
| 8339 | + | |
| 8340 | +// Copied from https://github.com/facebook/regenerator/blob/main/packages/runtime/runtime.js#L736= | |
| 8341 | +try { | |
| 8342 | + regeneratorRuntime = runtime; | |
| 8343 | +} catch (accidentalStrictMode) { | |
| 8344 | + if (typeof globalThis === "object") { | |
| 8345 | + globalThis.regeneratorRuntime = runtime; | |
| 8346 | + } else { | |
| 8347 | + Function("r", "regeneratorRuntime = r")(runtime); | |
| 8348 | + } | |
| 8349 | +} | |
| 8350 | + | |
| 8351 | + | |
| 8765 | 8352 | /***/ }) |
| 8766 | 8353 | |
| 8767 | 8354 | /******/ }); |
| 8768 | 8355 | /************************************************************************/ |
| @@ -8844,9 +8431,9 @@ | ||
| 8844 | 8431 | /******/ })(); |
| 8845 | 8432 | /******/ |
| 8846 | 8433 | /************************************************************************/ |
| 8847 | 8434 | var __webpack_exports__ = {}; |
| 8848 | -// This entry needs to be wrapped in an IIFE because it needs to be in strict mode. | |
| 8435 | +// This entry need to be wrapped in an IIFE because it need to be in strict mode. | |
| 8849 | 8436 | (() => { |
| 8850 | 8437 | "use strict"; |
| 8851 | 8438 | /*!****************************************!*\ |
| 8852 | 8439 | !*** ../app/assets/js/app-packages.js ***! |