| @@ -1,7 +1,1510 @@ | ||
| 1 | +/*! elementor - v3.28.0 - 10-03-2025 */ | |
| 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/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 | + | |
| 4 | 1507 | /***/ "../app/assets/js/hooks/use-action.js": |
| 5 | 1508 | /*!********************************************!*\ |
| 6 | 1509 | !*** ../app/assets/js/hooks/use-action.js ***! |
| 7 | 1510 | \********************************************/ |
| @@ -80,9 +1583,9 @@ | ||
| 80 | 1583 | } |
| 81 | 1584 | }; |
| 82 | 1585 | var runRequest = /*#__PURE__*/function () { |
| 83 | 1586 | var _ref = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee(config) { |
| 84 | - return _regenerator.default.wrap(function (_context) { | |
| 1587 | + return _regenerator.default.wrap(function _callee$(_context) { | |
| 85 | 1588 | while (1) switch (_context.prev = _context.next) { |
| 86 | 1589 | case 0: |
| 87 | 1590 | return _context.abrupt("return", new Promise(function (resolve, reject) { |
| 88 | 1591 | var formData = new FormData(); |
| @@ -312,14 +1815,13 @@ | ||
| 312 | 1815 | var _react = __webpack_require__(/*! react */ "react"); |
| 313 | 1816 | function usePageTitle(_ref) { |
| 314 | 1817 | var title = _ref.title, |
| 315 | 1818 | prefix = _ref.prefix; |
| 316 | - var prefixRef = (0, _react.useRef)(prefix); | |
| 317 | 1819 | (0, _react.useEffect)(function () { |
| 318 | 1820 | if (!prefix) { |
| 319 | - prefixRef.current = __('Elementor', 'elementor'); | |
| 1821 | + prefix = __('Elementor', 'elementor'); | |
| 320 | 1822 | } |
| 321 | - document.title = "".concat(prefixRef.current, " | ").concat(title); | |
| 1823 | + document.title = "".concat(prefix, " | ").concat(title); | |
| 322 | 1824 | }, [title, prefix]); |
| 323 | 1825 | } |
| 324 | 1826 | |
| 325 | 1827 | /***/ }), |
| @@ -578,14 +2080,13 @@ | ||
| 578 | 2080 | className: "eps-app__header" |
| 579 | 2081 | }, /*#__PURE__*/_react.default.createElement(TitleTag, (0, _extends2.default)({ |
| 580 | 2082 | className: "eps-app__logo-title-wrapper" |
| 581 | 2083 | }, titleAttrs), /*#__PURE__*/_react.default.createElement("i", { |
| 582 | - className: "eps-app__logo eicon-elementor-circle" | |
| 2084 | + className: "eps-app__logo eicon-elementor" | |
| 583 | 2085 | }), /*#__PURE__*/_react.default.createElement("h1", { |
| 584 | 2086 | className: "eps-app__title" |
| 585 | 2087 | }, props.title)), /*#__PURE__*/_react.default.createElement(_headerButtons.default, { |
| 586 | - buttons: props.buttons, | |
| 587 | - onClose: props.onClose | |
| 2088 | + buttons: props.buttons | |
| 588 | 2089 | })); |
| 589 | 2090 | } |
| 590 | 2091 | Header.propTypes = { |
| 591 | 2092 | title: PropTypes.string, |
| @@ -639,9 +2140,12 @@ | ||
| 639 | 2140 | }, /*#__PURE__*/_react.default.createElement(_header.default, { |
| 640 | 2141 | title: props.title, |
| 641 | 2142 | buttons: props.headerButtons, |
| 642 | 2143 | titleRedirectRoute: props.titleRedirectRoute, |
| 643 | - onClose: props.onClose | |
| 2144 | + onClose: function onClose() { | |
| 2145 | + var _props$onClose; | |
| 2146 | + return (_props$onClose = props.onClose) === null || _props$onClose === void 0 ? void 0 : _props$onClose.call(props); | |
| 2147 | + } | |
| 644 | 2148 | }), /*#__PURE__*/_react.default.createElement("div", { |
| 645 | 2149 | className: "eps-app__main" |
| 646 | 2150 | }, AppSidebar(), /*#__PURE__*/_react.default.createElement(_content.default, null, props.content)), AppFooter())); |
| 647 | 2151 | } |
| @@ -757,9 +2261,10 @@ | ||
| 757 | 2261 | var _react = _interopRequireWildcard(__webpack_require__(/*! react */ "react")); |
| 758 | 2262 | var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "../node_modules/@babel/runtime/helpers/defineProperty.js")); |
| 759 | 2263 | var _utils = __webpack_require__(/*! elementor-app/utils/utils.js */ "../app/assets/js/utils/utils.js"); |
| 760 | 2264 | 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); } | |
| 2265 | +function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); } | |
| 2266 | +function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; } | |
| 762 | 2267 | function CollapseToggle(props) { |
| 763 | 2268 | var context = (0, _react.useContext)(_collapseContext.CollapseContext), |
| 764 | 2269 | style = { |
| 765 | 2270 | '--e-app-collapse-toggle-icon-spacing': (0, _utils.pxToRem)(props.iconSpacing) |
| @@ -818,9 +2323,10 @@ | ||
| 818 | 2323 | var _collapseContext = __webpack_require__(/*! ./collapse-context */ "../app/assets/js/molecules/collapse-context.js"); |
| 819 | 2324 | var _collapseToggle = _interopRequireDefault(__webpack_require__(/*! ./collapse-toggle */ "../app/assets/js/molecules/collapse-toggle.js")); |
| 820 | 2325 | var _collapseContent = _interopRequireDefault(__webpack_require__(/*! ./collapse-content */ "../app/assets/js/molecules/collapse-content.js")); |
| 821 | 2326 | __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); } | |
| 2327 | +function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); } | |
| 2328 | +function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; } | |
| 823 | 2329 | function Collapse(props) { |
| 824 | 2330 | var _useState = (0, _react.useState)(props.isOpened), |
| 825 | 2331 | _useState2 = (0, _slicedToArray2.default)(_useState, 2), |
| 826 | 2332 | isOpened = _useState2[0], |
| @@ -835,15 +2341,13 @@ | ||
| 835 | 2341 | (0, _react.useEffect)(function () { |
| 836 | 2342 | if (props.isOpened !== isOpened) { |
| 837 | 2343 | setIsOpened(props.isOpened); |
| 838 | 2344 | } |
| 839 | - // eslint-disable-next-line react-hooks/exhaustive-deps | |
| 840 | 2345 | }, [props.isOpened]); |
| 841 | 2346 | (0, _react.useEffect)(function () { |
| 842 | 2347 | if (props.onChange) { |
| 843 | 2348 | props.onChange(isOpened); |
| 844 | 2349 | } |
| 845 | - // eslint-disable-next-line react-hooks/exhaustive-deps | |
| 846 | 2350 | }, [isOpened]); |
| 847 | 2351 | return /*#__PURE__*/_react.default.createElement(_collapseContext.CollapseContext.Provider, { |
| 848 | 2352 | value: { |
| 849 | 2353 | toggle: toggle |
| @@ -866,18 +2370,8 @@ | ||
| 866 | 2370 | Collapse.Content = _collapseContent.default; |
| 867 | 2371 | |
| 868 | 2372 | /***/ }), |
| 869 | 2373 | |
| 870 | -/***/ "../app/assets/js/molecules/collapse.scss": | |
| 871 | -/*!************************************************!*\ | |
| 872 | - !*** ../app/assets/js/molecules/collapse.scss ***! | |
| 873 | - \************************************************/ | |
| 874 | -/***/ (() => { | |
| 875 | - | |
| 876 | - | |
| 877 | - | |
| 878 | -/***/ }), | |
| 879 | - | |
| 880 | 2374 | /***/ "../app/assets/js/molecules/go-pro-button.js": |
| 881 | 2375 | /*!***************************************************!*\ |
| 882 | 2376 | !*** ../app/assets/js/molecules/go-pro-button.js ***! |
| 883 | 2377 | \***************************************************/ |
| @@ -941,9 +2435,10 @@ | ||
| 941 | 2435 | var _react = _interopRequireWildcard(__webpack_require__(/*! react */ "react")); |
| 942 | 2436 | var _button = _interopRequireDefault(__webpack_require__(/*! elementor-app/ui/molecules/button */ "../app/assets/js/ui/molecules/button.js")); |
| 943 | 2437 | var _utils = __webpack_require__(/*! elementor-app/utils/utils.js */ "../app/assets/js/utils/utils.js"); |
| 944 | 2438 | __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); } | |
| 2439 | +function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); } | |
| 2440 | +function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; } | |
| 946 | 2441 | function UploadFile(props) { |
| 947 | 2442 | var fileInput = (0, _react.useRef)(null), |
| 948 | 2443 | baseClassName = 'e-app-upload-file', |
| 949 | 2444 | classes = [baseClassName, props.className]; |
| @@ -1037,18 +2532,8 @@ | ||
| 1037 | 2532 | }; |
| 1038 | 2533 | |
| 1039 | 2534 | /***/ }), |
| 1040 | 2535 | |
| 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 | 2536 | /***/ "../app/assets/js/organisms/drop-zone.js": |
| 1052 | 2537 | /*!***********************************************!*\ |
| 1053 | 2538 | !*** ../app/assets/js/organisms/drop-zone.js ***! |
| 1054 | 2539 | \***********************************************/ |
| @@ -1157,18 +2642,8 @@ | ||
| 1157 | 2642 | }; |
| 1158 | 2643 | |
| 1159 | 2644 | /***/ }), |
| 1160 | 2645 | |
| 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 | 2646 | /***/ "../app/assets/js/organisms/error-boundary.js": |
| 1172 | 2647 | /*!****************************************************!*\ |
| 1173 | 2648 | !*** ../app/assets/js/organisms/error-boundary.js ***! |
| 1174 | 2649 | \****************************************************/ |
| @@ -1278,9 +2753,10 @@ | ||
| 1278 | 2753 | var _react = _interopRequireWildcard(__webpack_require__(/*! react */ "react")); |
| 1279 | 2754 | var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ "../node_modules/@babel/runtime/helpers/slicedToArray.js")); |
| 1280 | 2755 | var _dialog = _interopRequireDefault(__webpack_require__(/*! elementor-app/ui/dialog/dialog */ "../app/assets/js/ui/dialog/dialog.js")); |
| 1281 | 2756 | 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); } | |
| 2757 | +function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); } | |
| 2758 | +function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; } | |
| 1283 | 2759 | function UnfilteredFilesDialog(props) { |
| 1284 | 2760 | var show = props.show, |
| 1285 | 2761 | setShow = props.setShow, |
| 1286 | 2762 | onReady = props.onReady, |
| @@ -1318,9 +2794,8 @@ | ||
| 1318 | 2794 | if (onEnable) { |
| 1319 | 2795 | onEnable(); |
| 1320 | 2796 | } |
| 1321 | 2797 | } |
| 1322 | - // eslint-disable-next-line react-hooks/exhaustive-deps | |
| 1323 | 2798 | }, [enableUnfilteredFiles]); |
| 1324 | 2799 | |
| 1325 | 2800 | // Enabling unfiltered files ajax status. |
| 1326 | 2801 | (0, _react.useEffect)(function () { |
| @@ -1332,15 +2807,13 @@ | ||
| 1332 | 2807 | setIsEnableError(true); |
| 1333 | 2808 | setShow(true); |
| 1334 | 2809 | break; |
| 1335 | 2810 | } |
| 1336 | - // eslint-disable-next-line react-hooks/exhaustive-deps | |
| 1337 | 2811 | }, [ajaxState]); |
| 1338 | 2812 | (0, _react.useEffect)(function () { |
| 1339 | 2813 | if (show && onLoad) { |
| 1340 | 2814 | onLoad(); |
| 1341 | 2815 | } |
| 1342 | - // eslint-disable-next-line react-hooks/exhaustive-deps | |
| 1343 | 2816 | }, [show]); |
| 1344 | 2817 | if (!show) { |
| 1345 | 2818 | return null; |
| 1346 | 2819 | } |
| @@ -1440,9 +2913,10 @@ | ||
| 1440 | 2913 | var _usePageTitle = _interopRequireDefault(__webpack_require__(/*! ./hooks/use-page-title */ "../app/assets/js/hooks/use-page-title.js")); |
| 1441 | 2914 | var _useQueryParams = _interopRequireDefault(__webpack_require__(/*! ./hooks/use-query-params */ "../app/assets/js/hooks/use-query-params.js")); |
| 1442 | 2915 | var _useIntroduction = _interopRequireDefault(__webpack_require__(/*! ./hooks/use-introduction */ "../app/assets/js/hooks/use-introduction.js")); |
| 1443 | 2916 | 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); } | |
| 2917 | +function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); } | |
| 2918 | +function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; } | |
| 1445 | 2919 | // Alphabetical order. |
| 1446 | 2920 | // App UI |
| 1447 | 2921 | |
| 1448 | 2922 | // Components |
| @@ -1633,18 +3107,8 @@ | ||
| 1633 | 3107 | }; |
| 1634 | 3108 | |
| 1635 | 3109 | /***/ }), |
| 1636 | 3110 | |
| 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 | 3111 | /***/ "../app/assets/js/ui/atoms/checkbox.js": |
| 1648 | 3112 | /*!*********************************************!*\ |
| 1649 | 3113 | !*** ../app/assets/js/ui/atoms/checkbox.js ***! |
| 1650 | 3114 | \*********************************************/ |
| @@ -1711,18 +3175,8 @@ | ||
| 1711 | 3175 | }; |
| 1712 | 3176 | |
| 1713 | 3177 | /***/ }), |
| 1714 | 3178 | |
| 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 | 3179 | /***/ "../app/assets/js/ui/atoms/css-grid.js": |
| 1726 | 3180 | /*!*********************************************!*\ |
| 1727 | 3181 | !*** ../app/assets/js/ui/atoms/css-grid.js ***! |
| 1728 | 3182 | \*********************************************/ |
| @@ -1766,18 +3220,8 @@ | ||
| 1766 | 3220 | }; |
| 1767 | 3221 | |
| 1768 | 3222 | /***/ }), |
| 1769 | 3223 | |
| 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 | 3224 | /***/ "../app/assets/js/ui/atoms/drag-drop.js": |
| 1781 | 3225 | /*!**********************************************!*\ |
| 1782 | 3226 | !*** ../app/assets/js/ui/atoms/drag-drop.js ***! |
| 1783 | 3227 | \**********************************************/ |
| @@ -1797,9 +3241,10 @@ | ||
| 1797 | 3241 | var _extends2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/extends */ "../node_modules/@babel/runtime/helpers/extends.js")); |
| 1798 | 3242 | var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ "../node_modules/@babel/runtime/helpers/slicedToArray.js")); |
| 1799 | 3243 | var _utils = __webpack_require__(/*! ../../utils/utils */ "../app/assets/js/utils/utils.js"); |
| 1800 | 3244 | __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); } | |
| 3245 | +function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); } | |
| 3246 | +function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; } | |
| 1802 | 3247 | function DragDrop(props) { |
| 1803 | 3248 | var _useState = (0, _react.useState)(false), |
| 1804 | 3249 | _useState2 = (0, _slicedToArray2.default)(_useState, 2), |
| 1805 | 3250 | isDragOver = _useState2[0], |
| @@ -1856,18 +3301,8 @@ | ||
| 1856 | 3301 | }; |
| 1857 | 3302 | |
| 1858 | 3303 | /***/ }), |
| 1859 | 3304 | |
| 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 | 3305 | /***/ "../app/assets/js/ui/atoms/heading.js": |
| 1871 | 3306 | /*!********************************************!*\ |
| 1872 | 3307 | !*** ../app/assets/js/ui/atoms/heading.js ***! |
| 1873 | 3308 | \********************************************/ |
| @@ -1920,26 +3355,18 @@ | ||
| 1920 | 3355 | /* provided dependency */ var PropTypes = __webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js"); |
| 1921 | 3356 | |
| 1922 | 3357 | |
| 1923 | 3358 | 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 | 3359 | Object.defineProperty(exports, "__esModule", ({ |
| 1926 | 3360 | value: true |
| 1927 | 3361 | })); |
| 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 | -}); | |
| 3362 | +exports["default"] = Icon; | |
| 3363 | +var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react")); | |
| 3364 | +function Icon(props) { | |
| 3365 | + return /*#__PURE__*/_react.default.createElement("i", { | |
| 3366 | + className: "eps-icon ".concat(props.className) | |
| 3367 | + }); | |
| 3368 | +} | |
| 1942 | 3369 | Icon.propTypes = { |
| 1943 | 3370 | className: PropTypes.string.isRequired |
| 1944 | 3371 | }; |
| 1945 | 3372 | Icon.defaultProps = { |
| @@ -1944,9 +3371,8 @@ | ||
| 1944 | 3371 | }; |
| 1945 | 3372 | Icon.defaultProps = { |
| 1946 | 3373 | className: '' |
| 1947 | 3374 | }; |
| 1948 | -var _default = exports["default"] = Icon; | |
| 1949 | 3375 | |
| 1950 | 3376 | /***/ }), |
| 1951 | 3377 | |
| 1952 | 3378 | /***/ "../app/assets/js/ui/atoms/select.js": |
| @@ -2271,10 +3697,9 @@ | ||
| 2271 | 3697 | var image = /*#__PURE__*/_react.default.createElement("img", { |
| 2272 | 3698 | src: props.src, |
| 2273 | 3699 | alt: props.alt, |
| 2274 | 3700 | className: "eps-card__image", |
| 2275 | - loading: "lazy", | |
| 2276 | - onError: props.onError | |
| 3701 | + loading: "lazy" | |
| 2277 | 3702 | }); |
| 2278 | 3703 | return /*#__PURE__*/_react.default.createElement("figure", { |
| 2279 | 3704 | className: "eps-card__figure ".concat(props.className) |
| 2280 | 3705 | }, image, props.children); |
| @@ -2282,14 +3707,12 @@ | ||
| 2282 | 3707 | CardImage.propTypes = { |
| 2283 | 3708 | className: PropTypes.string, |
| 2284 | 3709 | src: PropTypes.string.isRequired, |
| 2285 | 3710 | alt: PropTypes.string.isRequired, |
| 2286 | - children: PropTypes.any, | |
| 2287 | - onError: PropTypes.func | |
| 3711 | + children: PropTypes.any | |
| 2288 | 3712 | }; |
| 2289 | 3713 | CardImage.defaultProps = { |
| 2290 | - className: '', | |
| 2291 | - onError: function onError() {} | |
| 3714 | + className: '' | |
| 2292 | 3715 | }; |
| 2293 | 3716 | |
| 2294 | 3717 | /***/ }), |
| 2295 | 3718 | |
| @@ -2374,18 +3797,8 @@ | ||
| 2374 | 3797 | var _default = exports["default"] = Card; |
| 2375 | 3798 | |
| 2376 | 3799 | /***/ }), |
| 2377 | 3800 | |
| 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 | 3801 | /***/ "../app/assets/js/ui/dialog/dialog-actions.js": |
| 2389 | 3802 | /*!****************************************************!*\ |
| 2390 | 3803 | !*** ../app/assets/js/ui/dialog/dialog-actions.js ***! |
| 2391 | 3804 | \****************************************************/ |
| @@ -2667,18 +4080,8 @@ | ||
| 2667 | 4080 | Dialog.Button = _dialogButton.default; |
| 2668 | 4081 | |
| 2669 | 4082 | /***/ }), |
| 2670 | 4083 | |
| 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 | 4084 | /***/ "../app/assets/js/ui/grid/grid.js": |
| 2682 | 4085 | /*!****************************************!*\ |
| 2683 | 4086 | !*** ../app/assets/js/ui/grid/grid.js ***! |
| 2684 | 4087 | \****************************************/ |
| @@ -2776,18 +4179,8 @@ | ||
| 2776 | 4179 | }; |
| 2777 | 4180 | |
| 2778 | 4181 | /***/ }), |
| 2779 | 4182 | |
| 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 | 4183 | /***/ "../app/assets/js/ui/menu/menu-item.js": |
| 2791 | 4184 | /*!*********************************************!*\ |
| 2792 | 4185 | !*** ../app/assets/js/ui/menu/menu-item.js ***! |
| 2793 | 4186 | \*********************************************/ |
| @@ -2832,18 +4225,8 @@ | ||
| 2832 | 4225 | }(_button.default); |
| 2833 | 4226 | |
| 2834 | 4227 | /***/ }), |
| 2835 | 4228 | |
| 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 | 4229 | /***/ "../app/assets/js/ui/menu/menu.js": |
| 2847 | 4230 | /*!****************************************!*\ |
| 2848 | 4231 | !*** ../app/assets/js/ui/menu/menu.js ***! |
| 2849 | 4232 | \****************************************/ |
| @@ -2912,18 +4295,8 @@ | ||
| 2912 | 4295 | }; |
| 2913 | 4296 | |
| 2914 | 4297 | /***/ }), |
| 2915 | 4298 | |
| 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 | 4299 | /***/ "../app/assets/js/ui/modal/modal-section.js": |
| 2927 | 4300 | /*!**************************************************!*\ |
| 2928 | 4301 | !*** ../app/assets/js/ui/modal/modal-section.js ***! |
| 2929 | 4302 | \**************************************************/ |
| @@ -3026,9 +4399,10 @@ | ||
| 3026 | 4399 | var _text = _interopRequireDefault(__webpack_require__(/*! elementor-app/ui/atoms/text */ "../app/assets/js/ui/atoms/text.js")); |
| 3027 | 4400 | var _modalSection = _interopRequireDefault(__webpack_require__(/*! ./modal-section */ "../app/assets/js/ui/modal/modal-section.js")); |
| 3028 | 4401 | var _modalTip = _interopRequireDefault(__webpack_require__(/*! ./modal-tip */ "../app/assets/js/ui/modal/modal-tip.js")); |
| 3029 | 4402 | __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); } | |
| 4403 | +function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); } | |
| 4404 | +function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; } | |
| 3031 | 4405 | 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 | 4406 | 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; } |
| 3033 | 4407 | function ModalProvider(props) { |
| 3034 | 4408 | var _useState = (0, _react.useState)(props.show), |
| @@ -3104,9 +4478,8 @@ | ||
| 3104 | 4478 | } |
| 3105 | 4479 | return function () { |
| 3106 | 4480 | return document.removeEventListener('mousedown', closeModal, false); |
| 3107 | 4481 | }; |
| 3108 | - // eslint-disable-next-line react-hooks/exhaustive-deps | |
| 3109 | 4482 | }, [props.show]); |
| 3110 | 4483 | if (!props.show) { |
| 3111 | 4484 | return null; |
| 3112 | 4485 | } |
| @@ -3164,18 +4537,8 @@ | ||
| 3164 | 4537 | }; |
| 3165 | 4538 | |
| 3166 | 4539 | /***/ }), |
| 3167 | 4540 | |
| 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 | 4541 | /***/ "../app/assets/js/ui/molecules/add-new-button.js": |
| 3179 | 4542 | /*!*******************************************************!*\ |
| 3180 | 4543 | !*** ../app/assets/js/ui/molecules/add-new-button.js ***! |
| 3181 | 4544 | \*******************************************************/ |
| @@ -3231,18 +4594,8 @@ | ||
| 3231 | 4594 | })); |
| 3232 | 4595 | |
| 3233 | 4596 | /***/ }), |
| 3234 | 4597 | |
| 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 | 4598 | /***/ "../app/assets/js/ui/molecules/button.js": |
| 3246 | 4599 | /*!***********************************************!*\ |
| 3247 | 4600 | !*** ../app/assets/js/ui/molecules/button.js ***! |
| 3248 | 4601 | \***********************************************/ |
| @@ -3266,9 +4619,8 @@ | ||
| 3266 | 4619 | var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); |
| 3267 | 4620 | var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "../node_modules/@babel/runtime/helpers/defineProperty.js")); |
| 3268 | 4621 | var _router = __webpack_require__(/*! @reach/router */ "../node_modules/@reach/router/es/index.js"); |
| 3269 | 4622 | 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 | 4623 | var _icon = _interopRequireDefault(__webpack_require__(/*! elementor-app/ui/atoms/icon */ "../app/assets/js/ui/atoms/icon.js")); |
| 3272 | 4624 | 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 | 4625 | function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } |
| 3274 | 4626 | var Button = exports["default"] = /*#__PURE__*/function (_React$Component) { |
| @@ -3308,14 +4660,13 @@ | ||
| 3308 | 4660 | }, { |
| 3309 | 4661 | key: "getIcon", |
| 3310 | 4662 | value: function getIcon() { |
| 3311 | 4663 | if (this.props.icon) { |
| 3312 | - var iconRef = _react.default.createRef(null); | |
| 3313 | 4664 | var tooltip = this.props.tooltip || this.props.text; |
| 3314 | 4665 | var icon = /*#__PURE__*/_react.default.createElement(_icon.default, { |
| 3315 | - ref: iconRef, | |
| 3316 | 4666 | className: this.props.icon, |
| 3317 | - "aria-hidden": "true" | |
| 4667 | + "aria-hidden": "true", | |
| 4668 | + title: tooltip | |
| 3318 | 4669 | }); |
| 3319 | 4670 | var screenReaderText = ''; |
| 3320 | 4671 | if (this.props.hideText) { |
| 3321 | 4672 | screenReaderText = /*#__PURE__*/_react.default.createElement("span", { |
| @@ -3321,12 +4672,9 @@ | ||
| 3321 | 4672 | screenReaderText = /*#__PURE__*/_react.default.createElement("span", { |
| 3322 | 4673 | className: "sr-only" |
| 3323 | 4674 | }, tooltip); |
| 3324 | 4675 | } |
| 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)); | |
| 4676 | + return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, icon, screenReaderText); | |
| 3329 | 4677 | } |
| 3330 | 4678 | return ''; |
| 3331 | 4679 | } |
| 3332 | 4680 | }, { |
| @@ -3486,18 +4834,8 @@ | ||
| 3486 | 4834 | }; |
| 3487 | 4835 | |
| 3488 | 4836 | /***/ }), |
| 3489 | 4837 | |
| 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 | 4838 | /***/ "../app/assets/js/ui/molecules/list-item.js": |
| 3501 | 4839 | /*!**************************************************!*\ |
| 3502 | 4840 | !*** ../app/assets/js/ui/molecules/list-item.js ***! |
| 3503 | 4841 | \**************************************************/ |
| @@ -3590,18 +4928,8 @@ | ||
| 3590 | 4928 | List.Item = _listItem.default; |
| 3591 | 4929 | |
| 3592 | 4930 | /***/ }), |
| 3593 | 4931 | |
| 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 | 4932 | /***/ "../app/assets/js/ui/molecules/notice.js": |
| 3605 | 4933 | /*!***********************************************!*\ |
| 3606 | 4934 | !*** ../app/assets/js/ui/molecules/notice.js ***! |
| 3607 | 4935 | \***********************************************/ |
| @@ -3672,18 +5000,8 @@ | ||
| 3672 | 5000 | }; |
| 3673 | 5001 | |
| 3674 | 5002 | /***/ }), |
| 3675 | 5003 | |
| 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 | 5004 | /***/ "../app/assets/js/ui/molecules/popover.js": |
| 3687 | 5005 | /*!************************************************!*\ |
| 3688 | 5006 | !*** ../app/assets/js/ui/molecules/popover.js ***! |
| 3689 | 5007 | \************************************************/ |
| @@ -3704,25 +5022,13 @@ | ||
| 3704 | 5022 | /* eslint-disable jsx-a11y/no-static-element-interactions */ |
| 3705 | 5023 | /* eslint-disable jsx-a11y/click-events-have-key-events */ |
| 3706 | 5024 | |
| 3707 | 5025 | 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 | 5026 | return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("div", { |
| 3721 | 5027 | className: "eps-popover__background", |
| 3722 | 5028 | onClick: props.closeFunction |
| 3723 | 5029 | }), /*#__PURE__*/_react.default.createElement("ul", { |
| 3724 | - className: "eps-popover ".concat(getArrowPositionClass(), " ").concat(props.className), | |
| 5030 | + className: "eps-popover ".concat(props.className), | |
| 3725 | 5031 | onClick: props.closeFunction |
| 3726 | 5032 | }, props.children)); |
| 3727 | 5033 | } |
| 3728 | 5034 | Popover.propTypes = { |
| @@ -3727,28 +5033,16 @@ | ||
| 3727 | 5033 | } |
| 3728 | 5034 | Popover.propTypes = { |
| 3729 | 5035 | children: PropTypes.any.isRequired, |
| 3730 | 5036 | className: PropTypes.string, |
| 3731 | - closeFunction: PropTypes.func, | |
| 3732 | - arrowPosition: PropTypes.oneOf(['start', 'center', 'end', 'none']) | |
| 5037 | + closeFunction: PropTypes.func | |
| 3733 | 5038 | }; |
| 3734 | 5039 | Popover.defaultProps = { |
| 3735 | - className: '', | |
| 3736 | - arrowPosition: 'center' | |
| 5040 | + className: '' | |
| 3737 | 5041 | }; |
| 3738 | 5042 | |
| 3739 | 5043 | /***/ }), |
| 3740 | 5044 | |
| 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 | 5045 | /***/ "../app/assets/js/ui/molecules/select2.js": |
| 3752 | 5046 | /*!************************************************!*\ |
| 3753 | 5047 | !*** ../app/assets/js/ui/molecules/select2.js ***! |
| 3754 | 5048 | \************************************************/ |
| @@ -3803,9 +5097,8 @@ | ||
| 3803 | 5097 | } |
| 3804 | 5098 | return function () { |
| 3805 | 5099 | $select2.select2('destroy').off('select2:select select2:unselect'); |
| 3806 | 5100 | }; |
| 3807 | - // eslint-disable-next-line react-hooks/exhaustive-deps | |
| 3808 | 5101 | }, [props.settings, props.options]); |
| 3809 | 5102 | |
| 3810 | 5103 | // Listen to changes in the prop `value`, if changed update the select 2. |
| 3811 | 5104 | _react.default.useEffect(function () { |
| @@ -3837,188 +5130,8 @@ | ||
| 3837 | 5130 | }; |
| 3838 | 5131 | |
| 3839 | 5132 | /***/ }), |
| 3840 | 5133 | |
| 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 | 5134 | /***/ "../app/assets/js/utils/utils.js": |
| 4022 | 5135 | /*!***************************************!*\ |
| 4023 | 5136 | !*** ../app/assets/js/utils/utils.js ***! |
| 4024 | 5137 | \***************************************/ |
| @@ -4030,9 +5143,9 @@ | ||
| 4030 | 5143 | var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); |
| 4031 | 5144 | Object.defineProperty(exports, "__esModule", ({ |
| 4032 | 5145 | value: true |
| 4033 | 5146 | })); |
| 4034 | -exports.stringToRemValues = exports.rgbToHex = exports.pxToRem = exports.isOneOf = exports.htmlDecodeTextContent = exports.arrayToObjectByKey = exports.arrayToClassName = void 0; | |
| 5147 | +exports.stringToRemValues = exports.rgbToHex = exports.pxToRem = exports.isOneOf = exports.arrayToObjectByKey = exports.arrayToClassName = void 0; | |
| 4035 | 5148 | var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ "../node_modules/@babel/runtime/helpers/typeof.js")); |
| 4036 | 5149 | var pxToRem = exports.pxToRem = function pxToRem(pixels) { |
| 4037 | 5150 | if (!pixels) { |
| 4038 | 5151 | return; |
| @@ -4073,71 +5186,11 @@ | ||
| 4073 | 5186 | return finalObject[item[key]] = item; |
| 4074 | 5187 | }); |
| 4075 | 5188 | return finalObject; |
| 4076 | 5189 | }; |
| 4077 | -var htmlDecodeTextContent = exports.htmlDecodeTextContent = function htmlDecodeTextContent(input) { | |
| 4078 | - var doc = new DOMParser().parseFromString(input, 'text/html'); | |
| 4079 | - return doc.documentElement.textContent; | |
| 4080 | -}; | |
| 4081 | 5190 | |
| 4082 | 5191 | /***/ }), |
| 4083 | 5192 | |
| 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 | 5193 | /***/ "../app/modules/site-editor/assets/js/context/template-types.js": |
| 4141 | 5194 | /*!**********************************************************************!*\ |
| 4142 | 5195 | !*** ../app/modules/site-editor/assets/js/context/template-types.js ***! |
| 4143 | 5196 | \**********************************************************************/ |
| @@ -4463,18 +5516,8 @@ | ||
| 4463 | 5516 | }; |
| 4464 | 5517 | |
| 4465 | 5518 | /***/ }), |
| 4466 | 5519 | |
| 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 | 5520 | /***/ "../app/modules/site-editor/assets/js/organisms/all-parts-button.js": |
| 4478 | 5521 | /*!**************************************************************************!*\ |
| 4479 | 5522 | !*** ../app/modules/site-editor/assets/js/organisms/all-parts-button.js ***! |
| 4480 | 5523 | \**************************************************************************/ |
| @@ -4577,18 +5620,8 @@ | ||
| 4577 | 5620 | }; |
| 4578 | 5621 | |
| 4579 | 5622 | /***/ }), |
| 4580 | 5623 | |
| 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 | 5624 | /***/ "../app/modules/site-editor/assets/js/organisms/site-parts.js": |
| 4592 | 5625 | /*!********************************************************************!*\ |
| 4593 | 5626 | !*** ../app/modules/site-editor/assets/js/organisms/site-parts.js ***! |
| 4594 | 5627 | \********************************************************************/ |
| @@ -4829,18 +5862,8 @@ | ||
| 4829 | 5862 | } |
| 4830 | 5863 | |
| 4831 | 5864 | /***/ }), |
| 4832 | 5865 | |
| 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 | 5866 | /***/ "../app/modules/site-editor/assets/js/templates/layout.js": |
| 4844 | 5867 | /*!****************************************************************!*\ |
| 4845 | 5868 | !*** ../app/modules/site-editor/assets/js/templates/layout.js ***! |
| 4846 | 5869 | \****************************************************************/ |
| @@ -4851,44 +5874,29 @@ | ||
| 4851 | 5874 | /* provided dependency */ var PropTypes = __webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js"); |
| 4852 | 5875 | |
| 4853 | 5876 | |
| 4854 | 5877 | 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 | 5878 | Object.defineProperty(exports, "__esModule", ({ |
| 4857 | 5879 | value: true |
| 4858 | 5880 | })); |
| 4859 | 5881 | exports["default"] = Layout; |
| 4860 | -var _react = _interopRequireWildcard(__webpack_require__(/*! react */ "react")); | |
| 5882 | +var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react")); | |
| 4861 | 5883 | var _page = _interopRequireDefault(__webpack_require__(/*! elementor-app/layout/page */ "../app/assets/js/layout/page.js")); |
| 4862 | 5884 | var _menu = _interopRequireDefault(__webpack_require__(/*! ../organisms/menu */ "../app/modules/site-editor/assets/js/organisms/menu.js")); |
| 4863 | 5885 | 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 | 5886 | __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 | 5887 | 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]); | |
| 5888 | + var _props$titleRedirectR; | |
| 5889 | + var config = { | |
| 5890 | + title: __('Theme Builder', 'elementor'), | |
| 5891 | + titleRedirectRoute: (_props$titleRedirectR = props.titleRedirectRoute) !== null && _props$titleRedirectR !== void 0 ? _props$titleRedirectR : null, | |
| 5892 | + headerButtons: props.headerButtons, | |
| 5893 | + sidebar: /*#__PURE__*/_react.default.createElement(_menu.default, { | |
| 5894 | + allPartsButton: props.allPartsButton, | |
| 5895 | + promotion: props.promotion | |
| 5896 | + }), | |
| 5897 | + content: props.children | |
| 5898 | + }; | |
| 4891 | 5899 | return /*#__PURE__*/_react.default.createElement(_templateTypes.default, null, /*#__PURE__*/_react.default.createElement(_page.default, config)); |
| 4892 | 5900 | } |
| 4893 | 5901 | Layout.propTypes = { |
| 4894 | 5902 | headerButtons: PropTypes.arrayOf(PropTypes.object), |
| @@ -4902,2174 +5910,8 @@ | ||
| 4902 | 5910 | }; |
| 4903 | 5911 | |
| 4904 | 5912 | /***/ }), |
| 4905 | 5913 | |
| 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 | 5914 | /***/ "../node_modules/create-react-context/lib/implementation.js": |
| 7073 | 5915 | /*!******************************************************************!*\ |
| 7074 | 5916 | !*** ../node_modules/create-react-context/lib/implementation.js ***! |
| 7075 | 5917 | \******************************************************************/ |
| @@ -8235,10 +7077,9 @@ | ||
| 8235 | 7077 | // By explicitly using `prop-types` you are opting into new development behavior. |
| 8236 | 7078 | // http://fb.me/prop-types-in-prod |
| 8237 | 7079 | var throwOnDirectAccess = true; |
| 8238 | 7080 | module.exports = __webpack_require__(/*! ./factoryWithTypeCheckers */ "../node_modules/prop-types/factoryWithTypeCheckers.js")(ReactIs.isElement, throwOnDirectAccess); |
| 8239 | -} else // removed by dead control flow | |
| 8240 | -{} | |
| 7081 | +} else {} | |
| 8241 | 7082 | |
| 8242 | 7083 | |
| 8243 | 7084 | /***/ }), |
| 8244 | 7085 | |
| @@ -8476,10 +7317,9 @@ | ||
| 8476 | 7317 | |
| 8477 | 7318 | "use strict"; |
| 8478 | 7319 | |
| 8479 | 7320 | |
| 8480 | -if (false) // removed by dead control flow | |
| 8481 | -{} else { | |
| 7321 | +if (false) {} else { | |
| 8482 | 7322 | module.exports = __webpack_require__(/*! ./cjs/react-is.development.js */ "../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js"); |
| 8483 | 7323 | } |
| 8484 | 7324 | |
| 8485 | 7325 | |
| @@ -8730,8 +7570,19 @@ | ||
| 8730 | 7570 | |
| 8731 | 7571 | |
| 8732 | 7572 | /***/ }), |
| 8733 | 7573 | |
| 7574 | +/***/ "react": | |
| 7575 | +/*!************************!*\ | |
| 7576 | + !*** external "React" ***! | |
| 7577 | + \************************/ | |
| 7578 | +/***/ ((module) => { | |
| 7579 | + | |
| 7580 | +"use strict"; | |
| 7581 | +module.exports = React; | |
| 7582 | + | |
| 7583 | +/***/ }), | |
| 7584 | + | |
| 8734 | 7585 | /***/ "@elementor/router": |
| 8735 | 7586 | /*!**********************************************!*\ |
| 8736 | 7587 | !*** external "elementorAppPackages.router" ***! |
| 8737 | 7588 | \**********************************************/ |
| @@ -8752,16 +7603,811 @@ | ||
| 8752 | 7603 | module.exports = wp.i18n; |
| 8753 | 7604 | |
| 8754 | 7605 | /***/ }), |
| 8755 | 7606 | |
| 8756 | -/***/ "react": | |
| 8757 | -/*!************************!*\ | |
| 8758 | - !*** external "React" ***! | |
| 8759 | - \************************/ | |
| 7607 | +/***/ "../node_modules/@babel/runtime/helpers/arrayLikeToArray.js": | |
| 7608 | +/*!******************************************************************!*\ | |
| 7609 | + !*** ../node_modules/@babel/runtime/helpers/arrayLikeToArray.js ***! | |
| 7610 | + \******************************************************************/ | |
| 8760 | 7611 | /***/ ((module) => { |
| 8761 | 7612 | |
| 8762 | -"use strict"; | |
| 8763 | -module.exports = React; | |
| 7613 | +function _arrayLikeToArray(r, a) { | |
| 7614 | + (null == a || a > r.length) && (a = r.length); | |
| 7615 | + for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; | |
| 7616 | + return n; | |
| 7617 | +} | |
| 7618 | +module.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 7619 | + | |
| 7620 | +/***/ }), | |
| 7621 | + | |
| 7622 | +/***/ "../node_modules/@babel/runtime/helpers/arrayWithHoles.js": | |
| 7623 | +/*!****************************************************************!*\ | |
| 7624 | + !*** ../node_modules/@babel/runtime/helpers/arrayWithHoles.js ***! | |
| 7625 | + \****************************************************************/ | |
| 7626 | +/***/ ((module) => { | |
| 7627 | + | |
| 7628 | +function _arrayWithHoles(r) { | |
| 7629 | + if (Array.isArray(r)) return r; | |
| 7630 | +} | |
| 7631 | +module.exports = _arrayWithHoles, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 7632 | + | |
| 7633 | +/***/ }), | |
| 7634 | + | |
| 7635 | +/***/ "../node_modules/@babel/runtime/helpers/arrayWithoutHoles.js": | |
| 7636 | +/*!*******************************************************************!*\ | |
| 7637 | + !*** ../node_modules/@babel/runtime/helpers/arrayWithoutHoles.js ***! | |
| 7638 | + \*******************************************************************/ | |
| 7639 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 7640 | + | |
| 7641 | +var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ "../node_modules/@babel/runtime/helpers/arrayLikeToArray.js"); | |
| 7642 | +function _arrayWithoutHoles(r) { | |
| 7643 | + if (Array.isArray(r)) return arrayLikeToArray(r); | |
| 7644 | +} | |
| 7645 | +module.exports = _arrayWithoutHoles, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 7646 | + | |
| 7647 | +/***/ }), | |
| 7648 | + | |
| 7649 | +/***/ "../node_modules/@babel/runtime/helpers/assertThisInitialized.js": | |
| 7650 | +/*!***********************************************************************!*\ | |
| 7651 | + !*** ../node_modules/@babel/runtime/helpers/assertThisInitialized.js ***! | |
| 7652 | + \***********************************************************************/ | |
| 7653 | +/***/ ((module) => { | |
| 7654 | + | |
| 7655 | +function _assertThisInitialized(e) { | |
| 7656 | + if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); | |
| 7657 | + return e; | |
| 7658 | +} | |
| 7659 | +module.exports = _assertThisInitialized, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 7660 | + | |
| 7661 | +/***/ }), | |
| 7662 | + | |
| 7663 | +/***/ "../node_modules/@babel/runtime/helpers/asyncToGenerator.js": | |
| 7664 | +/*!******************************************************************!*\ | |
| 7665 | + !*** ../node_modules/@babel/runtime/helpers/asyncToGenerator.js ***! | |
| 7666 | + \******************************************************************/ | |
| 7667 | +/***/ ((module) => { | |
| 7668 | + | |
| 7669 | +function asyncGeneratorStep(n, t, e, r, o, a, c) { | |
| 7670 | + try { | |
| 7671 | + var i = n[a](c), | |
| 7672 | + u = i.value; | |
| 7673 | + } catch (n) { | |
| 7674 | + return void e(n); | |
| 7675 | + } | |
| 7676 | + i.done ? t(u) : Promise.resolve(u).then(r, o); | |
| 7677 | +} | |
| 7678 | +function _asyncToGenerator(n) { | |
| 7679 | + return function () { | |
| 7680 | + var t = this, | |
| 7681 | + e = arguments; | |
| 7682 | + return new Promise(function (r, o) { | |
| 7683 | + var a = n.apply(t, e); | |
| 7684 | + function _next(n) { | |
| 7685 | + asyncGeneratorStep(a, r, o, _next, _throw, "next", n); | |
| 7686 | + } | |
| 7687 | + function _throw(n) { | |
| 7688 | + asyncGeneratorStep(a, r, o, _next, _throw, "throw", n); | |
| 7689 | + } | |
| 7690 | + _next(void 0); | |
| 7691 | + }); | |
| 7692 | + }; | |
| 7693 | +} | |
| 7694 | +module.exports = _asyncToGenerator, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 7695 | + | |
| 7696 | +/***/ }), | |
| 7697 | + | |
| 7698 | +/***/ "../node_modules/@babel/runtime/helpers/classCallCheck.js": | |
| 7699 | +/*!****************************************************************!*\ | |
| 7700 | + !*** ../node_modules/@babel/runtime/helpers/classCallCheck.js ***! | |
| 7701 | + \****************************************************************/ | |
| 7702 | +/***/ ((module) => { | |
| 7703 | + | |
| 7704 | +function _classCallCheck(a, n) { | |
| 7705 | + if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); | |
| 7706 | +} | |
| 7707 | +module.exports = _classCallCheck, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 7708 | + | |
| 7709 | +/***/ }), | |
| 7710 | + | |
| 7711 | +/***/ "../node_modules/@babel/runtime/helpers/createClass.js": | |
| 7712 | +/*!*************************************************************!*\ | |
| 7713 | + !*** ../node_modules/@babel/runtime/helpers/createClass.js ***! | |
| 7714 | + \*************************************************************/ | |
| 7715 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 7716 | + | |
| 7717 | +var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ "../node_modules/@babel/runtime/helpers/toPropertyKey.js"); | |
| 7718 | +function _defineProperties(e, r) { | |
| 7719 | + for (var t = 0; t < r.length; t++) { | |
| 7720 | + var o = r[t]; | |
| 7721 | + o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, toPropertyKey(o.key), o); | |
| 7722 | + } | |
| 7723 | +} | |
| 7724 | +function _createClass(e, r, t) { | |
| 7725 | + return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { | |
| 7726 | + writable: !1 | |
| 7727 | + }), e; | |
| 7728 | +} | |
| 7729 | +module.exports = _createClass, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 7730 | + | |
| 7731 | +/***/ }), | |
| 7732 | + | |
| 7733 | +/***/ "../node_modules/@babel/runtime/helpers/defineProperty.js": | |
| 7734 | +/*!****************************************************************!*\ | |
| 7735 | + !*** ../node_modules/@babel/runtime/helpers/defineProperty.js ***! | |
| 7736 | + \****************************************************************/ | |
| 7737 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 7738 | + | |
| 7739 | +var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ "../node_modules/@babel/runtime/helpers/toPropertyKey.js"); | |
| 7740 | +function _defineProperty(e, r, t) { | |
| 7741 | + return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, { | |
| 7742 | + value: t, | |
| 7743 | + enumerable: !0, | |
| 7744 | + configurable: !0, | |
| 7745 | + writable: !0 | |
| 7746 | + }) : e[r] = t, e; | |
| 7747 | +} | |
| 7748 | +module.exports = _defineProperty, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 7749 | + | |
| 7750 | +/***/ }), | |
| 7751 | + | |
| 7752 | +/***/ "../node_modules/@babel/runtime/helpers/extends.js": | |
| 7753 | +/*!*********************************************************!*\ | |
| 7754 | + !*** ../node_modules/@babel/runtime/helpers/extends.js ***! | |
| 7755 | + \*********************************************************/ | |
| 7756 | +/***/ ((module) => { | |
| 7757 | + | |
| 7758 | +function _extends() { | |
| 7759 | + return module.exports = _extends = Object.assign ? Object.assign.bind() : function (n) { | |
| 7760 | + for (var e = 1; e < arguments.length; e++) { | |
| 7761 | + var t = arguments[e]; | |
| 7762 | + for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); | |
| 7763 | + } | |
| 7764 | + return n; | |
| 7765 | + }, module.exports.__esModule = true, module.exports["default"] = module.exports, _extends.apply(null, arguments); | |
| 7766 | +} | |
| 7767 | +module.exports = _extends, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 7768 | + | |
| 7769 | +/***/ }), | |
| 7770 | + | |
| 7771 | +/***/ "../node_modules/@babel/runtime/helpers/get.js": | |
| 7772 | +/*!*****************************************************!*\ | |
| 7773 | + !*** ../node_modules/@babel/runtime/helpers/get.js ***! | |
| 7774 | + \*****************************************************/ | |
| 7775 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 7776 | + | |
| 7777 | +var superPropBase = __webpack_require__(/*! ./superPropBase.js */ "../node_modules/@babel/runtime/helpers/superPropBase.js"); | |
| 7778 | +function _get() { | |
| 7779 | + return module.exports = _get = "undefined" != typeof Reflect && Reflect.get ? Reflect.get.bind() : function (e, t, r) { | |
| 7780 | + var p = superPropBase(e, t); | |
| 7781 | + if (p) { | |
| 7782 | + var n = Object.getOwnPropertyDescriptor(p, t); | |
| 7783 | + return n.get ? n.get.call(arguments.length < 3 ? e : r) : n.value; | |
| 7784 | + } | |
| 7785 | + }, module.exports.__esModule = true, module.exports["default"] = module.exports, _get.apply(null, arguments); | |
| 7786 | +} | |
| 7787 | +module.exports = _get, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 7788 | + | |
| 7789 | +/***/ }), | |
| 7790 | + | |
| 7791 | +/***/ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js": | |
| 7792 | +/*!****************************************************************!*\ | |
| 7793 | + !*** ../node_modules/@babel/runtime/helpers/getPrototypeOf.js ***! | |
| 7794 | + \****************************************************************/ | |
| 7795 | +/***/ ((module) => { | |
| 7796 | + | |
| 7797 | +function _getPrototypeOf(t) { | |
| 7798 | + return module.exports = _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { | |
| 7799 | + return t.__proto__ || Object.getPrototypeOf(t); | |
| 7800 | + }, module.exports.__esModule = true, module.exports["default"] = module.exports, _getPrototypeOf(t); | |
| 7801 | +} | |
| 7802 | +module.exports = _getPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 7803 | + | |
| 7804 | +/***/ }), | |
| 7805 | + | |
| 7806 | +/***/ "../node_modules/@babel/runtime/helpers/inherits.js": | |
| 7807 | +/*!**********************************************************!*\ | |
| 7808 | + !*** ../node_modules/@babel/runtime/helpers/inherits.js ***! | |
| 7809 | + \**********************************************************/ | |
| 7810 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 7811 | + | |
| 7812 | +var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf.js */ "../node_modules/@babel/runtime/helpers/setPrototypeOf.js"); | |
| 7813 | +function _inherits(t, e) { | |
| 7814 | + if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); | |
| 7815 | + t.prototype = Object.create(e && e.prototype, { | |
| 7816 | + constructor: { | |
| 7817 | + value: t, | |
| 7818 | + writable: !0, | |
| 7819 | + configurable: !0 | |
| 7820 | + } | |
| 7821 | + }), Object.defineProperty(t, "prototype", { | |
| 7822 | + writable: !1 | |
| 7823 | + }), e && setPrototypeOf(t, e); | |
| 7824 | +} | |
| 7825 | +module.exports = _inherits, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 7826 | + | |
| 7827 | +/***/ }), | |
| 7828 | + | |
| 7829 | +/***/ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js": | |
| 7830 | +/*!***********************************************************************!*\ | |
| 7831 | + !*** ../node_modules/@babel/runtime/helpers/interopRequireDefault.js ***! | |
| 7832 | + \***********************************************************************/ | |
| 7833 | +/***/ ((module) => { | |
| 7834 | + | |
| 7835 | +function _interopRequireDefault(e) { | |
| 7836 | + return e && e.__esModule ? e : { | |
| 7837 | + "default": e | |
| 7838 | + }; | |
| 7839 | +} | |
| 7840 | +module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 7841 | + | |
| 7842 | +/***/ }), | |
| 7843 | + | |
| 7844 | +/***/ "../node_modules/@babel/runtime/helpers/iterableToArray.js": | |
| 7845 | +/*!*****************************************************************!*\ | |
| 7846 | + !*** ../node_modules/@babel/runtime/helpers/iterableToArray.js ***! | |
| 7847 | + \*****************************************************************/ | |
| 7848 | +/***/ ((module) => { | |
| 7849 | + | |
| 7850 | +function _iterableToArray(r) { | |
| 7851 | + if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); | |
| 7852 | +} | |
| 7853 | +module.exports = _iterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 7854 | + | |
| 7855 | +/***/ }), | |
| 7856 | + | |
| 7857 | +/***/ "../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js": | |
| 7858 | +/*!**********************************************************************!*\ | |
| 7859 | + !*** ../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js ***! | |
| 7860 | + \**********************************************************************/ | |
| 7861 | +/***/ ((module) => { | |
| 7862 | + | |
| 7863 | +function _iterableToArrayLimit(r, l) { | |
| 7864 | + var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; | |
| 7865 | + if (null != t) { | |
| 7866 | + var e, | |
| 7867 | + n, | |
| 7868 | + i, | |
| 7869 | + u, | |
| 7870 | + a = [], | |
| 7871 | + f = !0, | |
| 7872 | + o = !1; | |
| 7873 | + try { | |
| 7874 | + if (i = (t = t.call(r)).next, 0 === l) { | |
| 7875 | + if (Object(t) !== t) return; | |
| 7876 | + f = !1; | |
| 7877 | + } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); | |
| 7878 | + } catch (r) { | |
| 7879 | + o = !0, n = r; | |
| 7880 | + } finally { | |
| 7881 | + try { | |
| 7882 | + if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; | |
| 7883 | + } finally { | |
| 7884 | + if (o) throw n; | |
| 7885 | + } | |
| 7886 | + } | |
| 7887 | + return a; | |
| 7888 | + } | |
| 7889 | +} | |
| 7890 | +module.exports = _iterableToArrayLimit, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 7891 | + | |
| 7892 | +/***/ }), | |
| 7893 | + | |
| 7894 | +/***/ "../node_modules/@babel/runtime/helpers/nonIterableRest.js": | |
| 7895 | +/*!*****************************************************************!*\ | |
| 7896 | + !*** ../node_modules/@babel/runtime/helpers/nonIterableRest.js ***! | |
| 7897 | + \*****************************************************************/ | |
| 7898 | +/***/ ((module) => { | |
| 7899 | + | |
| 7900 | +function _nonIterableRest() { | |
| 7901 | + throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); | |
| 7902 | +} | |
| 7903 | +module.exports = _nonIterableRest, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 7904 | + | |
| 7905 | +/***/ }), | |
| 7906 | + | |
| 7907 | +/***/ "../node_modules/@babel/runtime/helpers/nonIterableSpread.js": | |
| 7908 | +/*!*******************************************************************!*\ | |
| 7909 | + !*** ../node_modules/@babel/runtime/helpers/nonIterableSpread.js ***! | |
| 7910 | + \*******************************************************************/ | |
| 7911 | +/***/ ((module) => { | |
| 7912 | + | |
| 7913 | +function _nonIterableSpread() { | |
| 7914 | + throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); | |
| 7915 | +} | |
| 7916 | +module.exports = _nonIterableSpread, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 7917 | + | |
| 7918 | +/***/ }), | |
| 7919 | + | |
| 7920 | +/***/ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js": | |
| 7921 | +/*!***************************************************************************!*\ | |
| 7922 | + !*** ../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js ***! | |
| 7923 | + \***************************************************************************/ | |
| 7924 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 7925 | + | |
| 7926 | +var _typeof = (__webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/typeof.js")["default"]); | |
| 7927 | +var assertThisInitialized = __webpack_require__(/*! ./assertThisInitialized.js */ "../node_modules/@babel/runtime/helpers/assertThisInitialized.js"); | |
| 7928 | +function _possibleConstructorReturn(t, e) { | |
| 7929 | + if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; | |
| 7930 | + if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); | |
| 7931 | + return assertThisInitialized(t); | |
| 7932 | +} | |
| 7933 | +module.exports = _possibleConstructorReturn, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 7934 | + | |
| 7935 | +/***/ }), | |
| 7936 | + | |
| 7937 | +/***/ "../node_modules/@babel/runtime/helpers/regeneratorRuntime.js": | |
| 7938 | +/*!********************************************************************!*\ | |
| 7939 | + !*** ../node_modules/@babel/runtime/helpers/regeneratorRuntime.js ***! | |
| 7940 | + \********************************************************************/ | |
| 7941 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 7942 | + | |
| 7943 | +var _typeof = (__webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/typeof.js")["default"]); | |
| 7944 | +function _regeneratorRuntime() { | |
| 7945 | + "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ | |
| 7946 | + module.exports = _regeneratorRuntime = function _regeneratorRuntime() { | |
| 7947 | + return e; | |
| 7948 | + }, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 7949 | + var t, | |
| 7950 | + e = {}, | |
| 7951 | + r = Object.prototype, | |
| 7952 | + n = r.hasOwnProperty, | |
| 7953 | + o = Object.defineProperty || function (t, e, r) { | |
| 7954 | + t[e] = r.value; | |
| 7955 | + }, | |
| 7956 | + i = "function" == typeof Symbol ? Symbol : {}, | |
| 7957 | + a = i.iterator || "@@iterator", | |
| 7958 | + c = i.asyncIterator || "@@asyncIterator", | |
| 7959 | + u = i.toStringTag || "@@toStringTag"; | |
| 7960 | + function define(t, e, r) { | |
| 7961 | + return Object.defineProperty(t, e, { | |
| 7962 | + value: r, | |
| 7963 | + enumerable: !0, | |
| 7964 | + configurable: !0, | |
| 7965 | + writable: !0 | |
| 7966 | + }), t[e]; | |
| 7967 | + } | |
| 7968 | + try { | |
| 7969 | + define({}, ""); | |
| 7970 | + } catch (t) { | |
| 7971 | + define = function define(t, e, r) { | |
| 7972 | + return t[e] = r; | |
| 7973 | + }; | |
| 7974 | + } | |
| 7975 | + function wrap(t, e, r, n) { | |
| 7976 | + var i = e && e.prototype instanceof Generator ? e : Generator, | |
| 7977 | + a = Object.create(i.prototype), | |
| 7978 | + c = new Context(n || []); | |
| 7979 | + return o(a, "_invoke", { | |
| 7980 | + value: makeInvokeMethod(t, r, c) | |
| 7981 | + }), a; | |
| 7982 | + } | |
| 7983 | + function tryCatch(t, e, r) { | |
| 7984 | + try { | |
| 7985 | + return { | |
| 7986 | + type: "normal", | |
| 7987 | + arg: t.call(e, r) | |
| 7988 | + }; | |
| 7989 | + } catch (t) { | |
| 7990 | + return { | |
| 7991 | + type: "throw", | |
| 7992 | + arg: t | |
| 7993 | + }; | |
| 7994 | + } | |
| 7995 | + } | |
| 7996 | + e.wrap = wrap; | |
| 7997 | + var h = "suspendedStart", | |
| 7998 | + l = "suspendedYield", | |
| 7999 | + f = "executing", | |
| 8000 | + s = "completed", | |
| 8001 | + y = {}; | |
| 8002 | + function Generator() {} | |
| 8003 | + function GeneratorFunction() {} | |
| 8004 | + function GeneratorFunctionPrototype() {} | |
| 8005 | + var p = {}; | |
| 8006 | + define(p, a, function () { | |
| 8007 | + return this; | |
| 8008 | + }); | |
| 8009 | + var d = Object.getPrototypeOf, | |
| 8010 | + v = d && d(d(values([]))); | |
| 8011 | + v && v !== r && n.call(v, a) && (p = v); | |
| 8012 | + var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); | |
| 8013 | + function defineIteratorMethods(t) { | |
| 8014 | + ["next", "throw", "return"].forEach(function (e) { | |
| 8015 | + define(t, e, function (t) { | |
| 8016 | + return this._invoke(e, t); | |
| 8017 | + }); | |
| 8018 | + }); | |
| 8019 | + } | |
| 8020 | + function AsyncIterator(t, e) { | |
| 8021 | + function invoke(r, o, i, a) { | |
| 8022 | + var c = tryCatch(t[r], t, o); | |
| 8023 | + if ("throw" !== c.type) { | |
| 8024 | + var u = c.arg, | |
| 8025 | + h = u.value; | |
| 8026 | + return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { | |
| 8027 | + invoke("next", t, i, a); | |
| 8028 | + }, function (t) { | |
| 8029 | + invoke("throw", t, i, a); | |
| 8030 | + }) : e.resolve(h).then(function (t) { | |
| 8031 | + u.value = t, i(u); | |
| 8032 | + }, function (t) { | |
| 8033 | + return invoke("throw", t, i, a); | |
| 8034 | + }); | |
| 8035 | + } | |
| 8036 | + a(c.arg); | |
| 8037 | + } | |
| 8038 | + var r; | |
| 8039 | + o(this, "_invoke", { | |
| 8040 | + value: function value(t, n) { | |
| 8041 | + function callInvokeWithMethodAndArg() { | |
| 8042 | + return new e(function (e, r) { | |
| 8043 | + invoke(t, n, e, r); | |
| 8044 | + }); | |
| 8045 | + } | |
| 8046 | + return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); | |
| 8047 | + } | |
| 8048 | + }); | |
| 8049 | + } | |
| 8050 | + function makeInvokeMethod(e, r, n) { | |
| 8051 | + var o = h; | |
| 8052 | + return function (i, a) { | |
| 8053 | + if (o === f) throw Error("Generator is already running"); | |
| 8054 | + if (o === s) { | |
| 8055 | + if ("throw" === i) throw a; | |
| 8056 | + return { | |
| 8057 | + value: t, | |
| 8058 | + done: !0 | |
| 8059 | + }; | |
| 8060 | + } | |
| 8061 | + for (n.method = i, n.arg = a;;) { | |
| 8062 | + var c = n.delegate; | |
| 8063 | + if (c) { | |
| 8064 | + var u = maybeInvokeDelegate(c, n); | |
| 8065 | + if (u) { | |
| 8066 | + if (u === y) continue; | |
| 8067 | + return u; | |
| 8068 | + } | |
| 8069 | + } | |
| 8070 | + if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { | |
| 8071 | + if (o === h) throw o = s, n.arg; | |
| 8072 | + n.dispatchException(n.arg); | |
| 8073 | + } else "return" === n.method && n.abrupt("return", n.arg); | |
| 8074 | + o = f; | |
| 8075 | + var p = tryCatch(e, r, n); | |
| 8076 | + if ("normal" === p.type) { | |
| 8077 | + if (o = n.done ? s : l, p.arg === y) continue; | |
| 8078 | + return { | |
| 8079 | + value: p.arg, | |
| 8080 | + done: n.done | |
| 8081 | + }; | |
| 8082 | + } | |
| 8083 | + "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); | |
| 8084 | + } | |
| 8085 | + }; | |
| 8086 | + } | |
| 8087 | + function maybeInvokeDelegate(e, r) { | |
| 8088 | + var n = r.method, | |
| 8089 | + o = e.iterator[n]; | |
| 8090 | + if (o === t) return r.delegate = null, "throw" === n && e.iterator["return"] && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; | |
| 8091 | + var i = tryCatch(o, e.iterator, r.arg); | |
| 8092 | + if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; | |
| 8093 | + var a = i.arg; | |
| 8094 | + return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); | |
| 8095 | + } | |
| 8096 | + function pushTryEntry(t) { | |
| 8097 | + var e = { | |
| 8098 | + tryLoc: t[0] | |
| 8099 | + }; | |
| 8100 | + 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); | |
| 8101 | + } | |
| 8102 | + function resetTryEntry(t) { | |
| 8103 | + var e = t.completion || {}; | |
| 8104 | + e.type = "normal", delete e.arg, t.completion = e; | |
| 8105 | + } | |
| 8106 | + function Context(t) { | |
| 8107 | + this.tryEntries = [{ | |
| 8108 | + tryLoc: "root" | |
| 8109 | + }], t.forEach(pushTryEntry, this), this.reset(!0); | |
| 8110 | + } | |
| 8111 | + function values(e) { | |
| 8112 | + if (e || "" === e) { | |
| 8113 | + var r = e[a]; | |
| 8114 | + if (r) return r.call(e); | |
| 8115 | + if ("function" == typeof e.next) return e; | |
| 8116 | + if (!isNaN(e.length)) { | |
| 8117 | + var o = -1, | |
| 8118 | + i = function next() { | |
| 8119 | + for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; | |
| 8120 | + return next.value = t, next.done = !0, next; | |
| 8121 | + }; | |
| 8122 | + return i.next = i; | |
| 8123 | + } | |
| 8124 | + } | |
| 8125 | + throw new TypeError(_typeof(e) + " is not iterable"); | |
| 8126 | + } | |
| 8127 | + return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { | |
| 8128 | + value: GeneratorFunctionPrototype, | |
| 8129 | + configurable: !0 | |
| 8130 | + }), o(GeneratorFunctionPrototype, "constructor", { | |
| 8131 | + value: GeneratorFunction, | |
| 8132 | + configurable: !0 | |
| 8133 | + }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { | |
| 8134 | + var e = "function" == typeof t && t.constructor; | |
| 8135 | + return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); | |
| 8136 | + }, e.mark = function (t) { | |
| 8137 | + return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; | |
| 8138 | + }, e.awrap = function (t) { | |
| 8139 | + return { | |
| 8140 | + __await: t | |
| 8141 | + }; | |
| 8142 | + }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { | |
| 8143 | + return this; | |
| 8144 | + }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { | |
| 8145 | + void 0 === i && (i = Promise); | |
| 8146 | + var a = new AsyncIterator(wrap(t, r, n, o), i); | |
| 8147 | + return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { | |
| 8148 | + return t.done ? t.value : a.next(); | |
| 8149 | + }); | |
| 8150 | + }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { | |
| 8151 | + return this; | |
| 8152 | + }), define(g, "toString", function () { | |
| 8153 | + return "[object Generator]"; | |
| 8154 | + }), e.keys = function (t) { | |
| 8155 | + var e = Object(t), | |
| 8156 | + r = []; | |
| 8157 | + for (var n in e) r.push(n); | |
| 8158 | + return r.reverse(), function next() { | |
| 8159 | + for (; r.length;) { | |
| 8160 | + var t = r.pop(); | |
| 8161 | + if (t in e) return next.value = t, next.done = !1, next; | |
| 8162 | + } | |
| 8163 | + return next.done = !0, next; | |
| 8164 | + }; | |
| 8165 | + }, e.values = values, Context.prototype = { | |
| 8166 | + constructor: Context, | |
| 8167 | + reset: function reset(e) { | |
| 8168 | + if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); | |
| 8169 | + }, | |
| 8170 | + stop: function stop() { | |
| 8171 | + this.done = !0; | |
| 8172 | + var t = this.tryEntries[0].completion; | |
| 8173 | + if ("throw" === t.type) throw t.arg; | |
| 8174 | + return this.rval; | |
| 8175 | + }, | |
| 8176 | + dispatchException: function dispatchException(e) { | |
| 8177 | + if (this.done) throw e; | |
| 8178 | + var r = this; | |
| 8179 | + function handle(n, o) { | |
| 8180 | + return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; | |
| 8181 | + } | |
| 8182 | + for (var o = this.tryEntries.length - 1; o >= 0; --o) { | |
| 8183 | + var i = this.tryEntries[o], | |
| 8184 | + a = i.completion; | |
| 8185 | + if ("root" === i.tryLoc) return handle("end"); | |
| 8186 | + if (i.tryLoc <= this.prev) { | |
| 8187 | + var c = n.call(i, "catchLoc"), | |
| 8188 | + u = n.call(i, "finallyLoc"); | |
| 8189 | + if (c && u) { | |
| 8190 | + if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); | |
| 8191 | + if (this.prev < i.finallyLoc) return handle(i.finallyLoc); | |
| 8192 | + } else if (c) { | |
| 8193 | + if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); | |
| 8194 | + } else { | |
| 8195 | + if (!u) throw Error("try statement without catch or finally"); | |
| 8196 | + if (this.prev < i.finallyLoc) return handle(i.finallyLoc); | |
| 8197 | + } | |
| 8198 | + } | |
| 8199 | + } | |
| 8200 | + }, | |
| 8201 | + abrupt: function abrupt(t, e) { | |
| 8202 | + for (var r = this.tryEntries.length - 1; r >= 0; --r) { | |
| 8203 | + var o = this.tryEntries[r]; | |
| 8204 | + if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { | |
| 8205 | + var i = o; | |
| 8206 | + break; | |
| 8207 | + } | |
| 8208 | + } | |
| 8209 | + i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); | |
| 8210 | + var a = i ? i.completion : {}; | |
| 8211 | + return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); | |
| 8212 | + }, | |
| 8213 | + complete: function complete(t, e) { | |
| 8214 | + if ("throw" === t.type) throw t.arg; | |
| 8215 | + return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; | |
| 8216 | + }, | |
| 8217 | + finish: function finish(t) { | |
| 8218 | + for (var e = this.tryEntries.length - 1; e >= 0; --e) { | |
| 8219 | + var r = this.tryEntries[e]; | |
| 8220 | + if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; | |
| 8221 | + } | |
| 8222 | + }, | |
| 8223 | + "catch": function _catch(t) { | |
| 8224 | + for (var e = this.tryEntries.length - 1; e >= 0; --e) { | |
| 8225 | + var r = this.tryEntries[e]; | |
| 8226 | + if (r.tryLoc === t) { | |
| 8227 | + var n = r.completion; | |
| 8228 | + if ("throw" === n.type) { | |
| 8229 | + var o = n.arg; | |
| 8230 | + resetTryEntry(r); | |
| 8231 | + } | |
| 8232 | + return o; | |
| 8233 | + } | |
| 8234 | + } | |
| 8235 | + throw Error("illegal catch attempt"); | |
| 8236 | + }, | |
| 8237 | + delegateYield: function delegateYield(e, r, n) { | |
| 8238 | + return this.delegate = { | |
| 8239 | + iterator: values(e), | |
| 8240 | + resultName: r, | |
| 8241 | + nextLoc: n | |
| 8242 | + }, "next" === this.method && (this.arg = t), y; | |
| 8243 | + } | |
| 8244 | + }, e; | |
| 8245 | +} | |
| 8246 | +module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 8247 | + | |
| 8248 | +/***/ }), | |
| 8249 | + | |
| 8250 | +/***/ "../node_modules/@babel/runtime/helpers/setPrototypeOf.js": | |
| 8251 | +/*!****************************************************************!*\ | |
| 8252 | + !*** ../node_modules/@babel/runtime/helpers/setPrototypeOf.js ***! | |
| 8253 | + \****************************************************************/ | |
| 8254 | +/***/ ((module) => { | |
| 8255 | + | |
| 8256 | +function _setPrototypeOf(t, e) { | |
| 8257 | + return module.exports = _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { | |
| 8258 | + return t.__proto__ = e, t; | |
| 8259 | + }, module.exports.__esModule = true, module.exports["default"] = module.exports, _setPrototypeOf(t, e); | |
| 8260 | +} | |
| 8261 | +module.exports = _setPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 8262 | + | |
| 8263 | +/***/ }), | |
| 8264 | + | |
| 8265 | +/***/ "../node_modules/@babel/runtime/helpers/slicedToArray.js": | |
| 8266 | +/*!***************************************************************!*\ | |
| 8267 | + !*** ../node_modules/@babel/runtime/helpers/slicedToArray.js ***! | |
| 8268 | + \***************************************************************/ | |
| 8269 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 8270 | + | |
| 8271 | +var arrayWithHoles = __webpack_require__(/*! ./arrayWithHoles.js */ "../node_modules/@babel/runtime/helpers/arrayWithHoles.js"); | |
| 8272 | +var iterableToArrayLimit = __webpack_require__(/*! ./iterableToArrayLimit.js */ "../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js"); | |
| 8273 | +var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ "../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js"); | |
| 8274 | +var nonIterableRest = __webpack_require__(/*! ./nonIterableRest.js */ "../node_modules/@babel/runtime/helpers/nonIterableRest.js"); | |
| 8275 | +function _slicedToArray(r, e) { | |
| 8276 | + return arrayWithHoles(r) || iterableToArrayLimit(r, e) || unsupportedIterableToArray(r, e) || nonIterableRest(); | |
| 8277 | +} | |
| 8278 | +module.exports = _slicedToArray, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 8279 | + | |
| 8280 | +/***/ }), | |
| 8281 | + | |
| 8282 | +/***/ "../node_modules/@babel/runtime/helpers/superPropBase.js": | |
| 8283 | +/*!***************************************************************!*\ | |
| 8284 | + !*** ../node_modules/@babel/runtime/helpers/superPropBase.js ***! | |
| 8285 | + \***************************************************************/ | |
| 8286 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 8287 | + | |
| 8288 | +var getPrototypeOf = __webpack_require__(/*! ./getPrototypeOf.js */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js"); | |
| 8289 | +function _superPropBase(t, o) { | |
| 8290 | + for (; !{}.hasOwnProperty.call(t, o) && null !== (t = getPrototypeOf(t));); | |
| 8291 | + return t; | |
| 8292 | +} | |
| 8293 | +module.exports = _superPropBase, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 8294 | + | |
| 8295 | +/***/ }), | |
| 8296 | + | |
| 8297 | +/***/ "../node_modules/@babel/runtime/helpers/toConsumableArray.js": | |
| 8298 | +/*!*******************************************************************!*\ | |
| 8299 | + !*** ../node_modules/@babel/runtime/helpers/toConsumableArray.js ***! | |
| 8300 | + \*******************************************************************/ | |
| 8301 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 8302 | + | |
| 8303 | +var arrayWithoutHoles = __webpack_require__(/*! ./arrayWithoutHoles.js */ "../node_modules/@babel/runtime/helpers/arrayWithoutHoles.js"); | |
| 8304 | +var iterableToArray = __webpack_require__(/*! ./iterableToArray.js */ "../node_modules/@babel/runtime/helpers/iterableToArray.js"); | |
| 8305 | +var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ "../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js"); | |
| 8306 | +var nonIterableSpread = __webpack_require__(/*! ./nonIterableSpread.js */ "../node_modules/@babel/runtime/helpers/nonIterableSpread.js"); | |
| 8307 | +function _toConsumableArray(r) { | |
| 8308 | + return arrayWithoutHoles(r) || iterableToArray(r) || unsupportedIterableToArray(r) || nonIterableSpread(); | |
| 8309 | +} | |
| 8310 | +module.exports = _toConsumableArray, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 8311 | + | |
| 8312 | +/***/ }), | |
| 8313 | + | |
| 8314 | +/***/ "../node_modules/@babel/runtime/helpers/toPrimitive.js": | |
| 8315 | +/*!*************************************************************!*\ | |
| 8316 | + !*** ../node_modules/@babel/runtime/helpers/toPrimitive.js ***! | |
| 8317 | + \*************************************************************/ | |
| 8318 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 8319 | + | |
| 8320 | +var _typeof = (__webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/typeof.js")["default"]); | |
| 8321 | +function toPrimitive(t, r) { | |
| 8322 | + if ("object" != _typeof(t) || !t) return t; | |
| 8323 | + var e = t[Symbol.toPrimitive]; | |
| 8324 | + if (void 0 !== e) { | |
| 8325 | + var i = e.call(t, r || "default"); | |
| 8326 | + if ("object" != _typeof(i)) return i; | |
| 8327 | + throw new TypeError("@@toPrimitive must return a primitive value."); | |
| 8328 | + } | |
| 8329 | + return ("string" === r ? String : Number)(t); | |
| 8330 | +} | |
| 8331 | +module.exports = toPrimitive, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 8332 | + | |
| 8333 | +/***/ }), | |
| 8334 | + | |
| 8335 | +/***/ "../node_modules/@babel/runtime/helpers/toPropertyKey.js": | |
| 8336 | +/*!***************************************************************!*\ | |
| 8337 | + !*** ../node_modules/@babel/runtime/helpers/toPropertyKey.js ***! | |
| 8338 | + \***************************************************************/ | |
| 8339 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 8340 | + | |
| 8341 | +var _typeof = (__webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/typeof.js")["default"]); | |
| 8342 | +var toPrimitive = __webpack_require__(/*! ./toPrimitive.js */ "../node_modules/@babel/runtime/helpers/toPrimitive.js"); | |
| 8343 | +function toPropertyKey(t) { | |
| 8344 | + var i = toPrimitive(t, "string"); | |
| 8345 | + return "symbol" == _typeof(i) ? i : i + ""; | |
| 8346 | +} | |
| 8347 | +module.exports = toPropertyKey, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 8348 | + | |
| 8349 | +/***/ }), | |
| 8350 | + | |
| 8351 | +/***/ "../node_modules/@babel/runtime/helpers/typeof.js": | |
| 8352 | +/*!********************************************************!*\ | |
| 8353 | + !*** ../node_modules/@babel/runtime/helpers/typeof.js ***! | |
| 8354 | + \********************************************************/ | |
| 8355 | +/***/ ((module) => { | |
| 8356 | + | |
| 8357 | +function _typeof(o) { | |
| 8358 | + "@babel/helpers - typeof"; | |
| 8359 | + | |
| 8360 | + return module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { | |
| 8361 | + return typeof o; | |
| 8362 | + } : function (o) { | |
| 8363 | + return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; | |
| 8364 | + }, module.exports.__esModule = true, module.exports["default"] = module.exports, _typeof(o); | |
| 8365 | +} | |
| 8366 | +module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 8367 | + | |
| 8368 | +/***/ }), | |
| 8369 | + | |
| 8370 | +/***/ "../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js": | |
| 8371 | +/*!****************************************************************************!*\ | |
| 8372 | + !*** ../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js ***! | |
| 8373 | + \****************************************************************************/ | |
| 8374 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 8375 | + | |
| 8376 | +var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ "../node_modules/@babel/runtime/helpers/arrayLikeToArray.js"); | |
| 8377 | +function _unsupportedIterableToArray(r, a) { | |
| 8378 | + if (r) { | |
| 8379 | + if ("string" == typeof r) return arrayLikeToArray(r, a); | |
| 8380 | + var t = {}.toString.call(r).slice(8, -1); | |
| 8381 | + 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; | |
| 8382 | + } | |
| 8383 | +} | |
| 8384 | +module.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 8385 | + | |
| 8386 | +/***/ }), | |
| 8387 | + | |
| 8388 | +/***/ "../node_modules/@babel/runtime/regenerator/index.js": | |
| 8389 | +/*!***********************************************************!*\ | |
| 8390 | + !*** ../node_modules/@babel/runtime/regenerator/index.js ***! | |
| 8391 | + \***********************************************************/ | |
| 8392 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 8393 | + | |
| 8394 | +// TODO(Babel 8): Remove this file. | |
| 8395 | + | |
| 8396 | +var runtime = __webpack_require__(/*! ../helpers/regeneratorRuntime */ "../node_modules/@babel/runtime/helpers/regeneratorRuntime.js")(); | |
| 8397 | +module.exports = runtime; | |
| 8398 | + | |
| 8399 | +// Copied from https://github.com/facebook/regenerator/blob/main/packages/runtime/runtime.js#L736= | |
| 8400 | +try { | |
| 8401 | + regeneratorRuntime = runtime; | |
| 8402 | +} catch (accidentalStrictMode) { | |
| 8403 | + if (typeof globalThis === "object") { | |
| 8404 | + globalThis.regeneratorRuntime = runtime; | |
| 8405 | + } else { | |
| 8406 | + Function("r", "regeneratorRuntime = r")(runtime); | |
| 8407 | + } | |
| 8408 | +} | |
| 8409 | + | |
| 8764 | 8410 | |
| 8765 | 8411 | /***/ }) |
| 8766 | 8412 | |
| 8767 | 8413 | /******/ }); |