| @@ -1,3284 +1,4088 @@ | ||
| 1 | -/******/ (() => { // webpackBootstrap | |
| 2 | -/******/ var __webpack_modules__ = ({ | |
| 1 | +/*! elementor - v3.0.7 - 09-09-2020 */ | |
| 2 | +/******/ (function(modules) { // webpackBootstrap | |
| 3 | +/******/ // The module cache | |
| 4 | +/******/ var installedModules = {}; | |
| 5 | +/******/ | |
| 6 | +/******/ // The require function | |
| 7 | +/******/ function __webpack_require__(moduleId) { | |
| 8 | +/******/ | |
| 9 | +/******/ // Check if module is in cache | |
| 10 | +/******/ if(installedModules[moduleId]) { | |
| 11 | +/******/ return installedModules[moduleId].exports; | |
| 12 | +/******/ } | |
| 13 | +/******/ // Create a new module (and put it into the cache) | |
| 14 | +/******/ var module = installedModules[moduleId] = { | |
| 15 | +/******/ i: moduleId, | |
| 16 | +/******/ l: false, | |
| 17 | +/******/ exports: {} | |
| 18 | +/******/ }; | |
| 19 | +/******/ | |
| 20 | +/******/ // Execute the module function | |
| 21 | +/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); | |
| 22 | +/******/ | |
| 23 | +/******/ // Flag the module as loaded | |
| 24 | +/******/ module.l = true; | |
| 25 | +/******/ | |
| 26 | +/******/ // Return the exports of the module | |
| 27 | +/******/ return module.exports; | |
| 28 | +/******/ } | |
| 29 | +/******/ | |
| 30 | +/******/ | |
| 31 | +/******/ // expose the modules object (__webpack_modules__) | |
| 32 | +/******/ __webpack_require__.m = modules; | |
| 33 | +/******/ | |
| 34 | +/******/ // expose the module cache | |
| 35 | +/******/ __webpack_require__.c = installedModules; | |
| 36 | +/******/ | |
| 37 | +/******/ // define getter function for harmony exports | |
| 38 | +/******/ __webpack_require__.d = function(exports, name, getter) { | |
| 39 | +/******/ if(!__webpack_require__.o(exports, name)) { | |
| 40 | +/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); | |
| 41 | +/******/ } | |
| 42 | +/******/ }; | |
| 43 | +/******/ | |
| 44 | +/******/ // define __esModule on exports | |
| 45 | +/******/ __webpack_require__.r = function(exports) { | |
| 46 | +/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { | |
| 47 | +/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); | |
| 48 | +/******/ } | |
| 49 | +/******/ Object.defineProperty(exports, '__esModule', { value: true }); | |
| 50 | +/******/ }; | |
| 51 | +/******/ | |
| 52 | +/******/ // create a fake namespace object | |
| 53 | +/******/ // mode & 1: value is a module id, require it | |
| 54 | +/******/ // mode & 2: merge all properties of value into the ns | |
| 55 | +/******/ // mode & 4: return value when already ns object | |
| 56 | +/******/ // mode & 8|1: behave like require | |
| 57 | +/******/ __webpack_require__.t = function(value, mode) { | |
| 58 | +/******/ if(mode & 1) value = __webpack_require__(value); | |
| 59 | +/******/ if(mode & 8) return value; | |
| 60 | +/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; | |
| 61 | +/******/ var ns = Object.create(null); | |
| 62 | +/******/ __webpack_require__.r(ns); | |
| 63 | +/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); | |
| 64 | +/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); | |
| 65 | +/******/ return ns; | |
| 66 | +/******/ }; | |
| 67 | +/******/ | |
| 68 | +/******/ // getDefaultExport function for compatibility with non-harmony modules | |
| 69 | +/******/ __webpack_require__.n = function(module) { | |
| 70 | +/******/ var getter = module && module.__esModule ? | |
| 71 | +/******/ function getDefault() { return module['default']; } : | |
| 72 | +/******/ function getModuleExports() { return module; }; | |
| 73 | +/******/ __webpack_require__.d(getter, 'a', getter); | |
| 74 | +/******/ return getter; | |
| 75 | +/******/ }; | |
| 76 | +/******/ | |
| 77 | +/******/ // Object.prototype.hasOwnProperty.call | |
| 78 | +/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; | |
| 79 | +/******/ | |
| 80 | +/******/ // __webpack_public_path__ | |
| 81 | +/******/ __webpack_require__.p = ""; | |
| 82 | +/******/ | |
| 83 | +/******/ | |
| 84 | +/******/ // Load entry module and return exports | |
| 85 | +/******/ return __webpack_require__(__webpack_require__.s = 760); | |
| 86 | +/******/ }) | |
| 87 | +/************************************************************************/ | |
| 88 | +/******/ ([ | |
| 89 | +/* 0 */ | |
| 90 | +/***/ (function(module, exports) { | |
| 3 | 91 | |
| 4 | -/***/ "../app/assets/js/hooks/use-action.js": | |
| 5 | -/*!********************************************!*\ | |
| 6 | - !*** ../app/assets/js/hooks/use-action.js ***! | |
| 7 | - \********************************************/ | |
| 8 | -/***/ ((__unused_webpack_module, exports) => { | |
| 92 | +function _interopRequireDefault(obj) { | |
| 93 | + return obj && obj.__esModule ? obj : { | |
| 94 | + "default": obj | |
| 95 | + }; | |
| 96 | +} | |
| 9 | 97 | |
| 10 | -"use strict"; | |
| 98 | +module.exports = _interopRequireDefault; | |
| 11 | 99 | |
| 100 | +/***/ }), | |
| 101 | +/* 1 */ | |
| 102 | +/***/ (function(module, exports, __webpack_require__) { | |
| 12 | 103 | |
| 13 | -Object.defineProperty(exports, "__esModule", ({ | |
| 14 | - value: true | |
| 15 | -})); | |
| 16 | -exports["default"] = useAction; | |
| 17 | -function useAction() { | |
| 18 | - return { | |
| 19 | - backToDashboard: function backToDashboard() { | |
| 20 | - if (window.top === window) { | |
| 21 | - window.top.location = elementorAppConfig.admin_url; | |
| 22 | - } else { | |
| 23 | - // Iframe. | |
| 24 | - window.top.$e.run('app/close'); | |
| 25 | - } | |
| 26 | - }, | |
| 27 | - backToReferrer: function backToReferrer() { | |
| 28 | - if (window.top === window) { | |
| 29 | - // Directly - in case that the return_url is the login-page, the target should be the admin-page and not the login-page again. | |
| 30 | - window.top.location = elementorAppConfig.return_url.includes(elementorAppConfig.login_url) ? elementorAppConfig.admin_url : elementorAppConfig.return_url; | |
| 31 | - } else { | |
| 32 | - // Iframe. | |
| 33 | - window.top.$e.run('app/close'); | |
| 34 | - } | |
| 35 | - } | |
| 36 | - }; | |
| 104 | +module.exports = __webpack_require__(156); | |
| 105 | + | |
| 106 | +/***/ }), | |
| 107 | +/* 2 */ | |
| 108 | +/***/ (function(module, exports) { | |
| 109 | + | |
| 110 | +function _classCallCheck(instance, Constructor) { | |
| 111 | + if (!(instance instanceof Constructor)) { | |
| 112 | + throw new TypeError("Cannot call a class as a function"); | |
| 113 | + } | |
| 37 | 114 | } |
| 38 | 115 | |
| 116 | +module.exports = _classCallCheck; | |
| 117 | + | |
| 39 | 118 | /***/ }), |
| 119 | +/* 3 */ | |
| 120 | +/***/ (function(module, exports, __webpack_require__) { | |
| 40 | 121 | |
| 41 | -/***/ "../app/assets/js/hooks/use-ajax.js": | |
| 42 | -/*!******************************************!*\ | |
| 43 | - !*** ../app/assets/js/hooks/use-ajax.js ***! | |
| 44 | - \******************************************/ | |
| 45 | -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 122 | +var _Object$defineProperty = __webpack_require__(1); | |
| 46 | 123 | |
| 47 | -"use strict"; | |
| 124 | +function _defineProperties(target, props) { | |
| 125 | + for (var i = 0; i < props.length; i++) { | |
| 126 | + var descriptor = props[i]; | |
| 127 | + descriptor.enumerable = descriptor.enumerable || false; | |
| 128 | + descriptor.configurable = true; | |
| 129 | + if ("value" in descriptor) descriptor.writable = true; | |
| 48 | 130 | |
| 131 | + _Object$defineProperty(target, descriptor.key, descriptor); | |
| 132 | + } | |
| 133 | +} | |
| 49 | 134 | |
| 50 | -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 51 | -Object.defineProperty(exports, "__esModule", ({ | |
| 52 | - value: true | |
| 53 | -})); | |
| 54 | -exports["default"] = useAjax; | |
| 55 | -var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/regenerator */ "../node_modules/@babel/runtime/regenerator/index.js")); | |
| 56 | -var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "../node_modules/@babel/runtime/helpers/defineProperty.js")); | |
| 57 | -var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ "../node_modules/@babel/runtime/helpers/asyncToGenerator.js")); | |
| 58 | -var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ "../node_modules/@babel/runtime/helpers/slicedToArray.js")); | |
| 59 | -var _react = __webpack_require__(/*! react */ "react"); | |
| 60 | -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } | |
| 61 | -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } | |
| 62 | -function useAjax() { | |
| 63 | - var _useState = (0, _react.useState)(null), | |
| 64 | - _useState2 = (0, _slicedToArray2.default)(_useState, 2), | |
| 65 | - ajax = _useState2[0], | |
| 66 | - setAjax = _useState2[1], | |
| 67 | - initialStatusKey = 'initial', | |
| 68 | - uploadInitialState = { | |
| 69 | - status: initialStatusKey, | |
| 70 | - isComplete: false, | |
| 71 | - response: null | |
| 72 | - }, | |
| 73 | - _useState3 = (0, _react.useState)(uploadInitialState), | |
| 74 | - _useState4 = (0, _slicedToArray2.default)(_useState3, 2), | |
| 75 | - ajaxState = _useState4[0], | |
| 76 | - setAjaxState = _useState4[1], | |
| 77 | - ajaxActions = { | |
| 78 | - reset: function reset() { | |
| 79 | - return setAjaxState(initialStatusKey); | |
| 80 | - } | |
| 81 | - }; | |
| 82 | - var runRequest = /*#__PURE__*/function () { | |
| 83 | - var _ref = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee(config) { | |
| 84 | - return _regenerator.default.wrap(function (_context) { | |
| 85 | - while (1) switch (_context.prev = _context.next) { | |
| 86 | - case 0: | |
| 87 | - return _context.abrupt("return", new Promise(function (resolve, reject) { | |
| 88 | - var formData = new FormData(); | |
| 89 | - if (config.data) { | |
| 90 | - for (var key in config.data) { | |
| 91 | - formData.append(key, config.data[key]); | |
| 92 | - } | |
| 93 | - if (!config.data.nonce) { | |
| 94 | - formData.append('_nonce', elementorCommon.config.ajax.nonce); | |
| 95 | - } | |
| 96 | - } | |
| 97 | - var options = _objectSpread(_objectSpread({ | |
| 98 | - type: 'post', | |
| 99 | - url: elementorCommon.config.ajax.url, | |
| 100 | - headers: {}, | |
| 101 | - cache: false, | |
| 102 | - contentType: false, | |
| 103 | - processData: false | |
| 104 | - }, config), {}, { | |
| 105 | - data: formData, | |
| 106 | - success: function success(response) { | |
| 107 | - resolve(response); | |
| 108 | - }, | |
| 109 | - error: function error(_error) { | |
| 110 | - reject(_error); | |
| 111 | - } | |
| 112 | - }); | |
| 113 | - jQuery.ajax(options); | |
| 114 | - })); | |
| 115 | - case 1: | |
| 116 | - case "end": | |
| 117 | - return _context.stop(); | |
| 118 | - } | |
| 119 | - }, _callee); | |
| 120 | - })); | |
| 121 | - return function runRequest(_x) { | |
| 122 | - return _ref.apply(this, arguments); | |
| 123 | - }; | |
| 124 | - }(); | |
| 125 | - (0, _react.useEffect)(function () { | |
| 126 | - if (ajax) { | |
| 127 | - runRequest(ajax).then(function (response) { | |
| 128 | - var status = response.success ? 'success' : 'error'; | |
| 129 | - setAjaxState(function (prevState) { | |
| 130 | - return _objectSpread(_objectSpread({}, prevState), {}, { | |
| 131 | - status: status, | |
| 132 | - response: response === null || response === void 0 ? void 0 : response.data | |
| 133 | - }); | |
| 134 | - }); | |
| 135 | - }).catch(function (error) { | |
| 136 | - var _error$responseJSON; | |
| 137 | - var response = 408 === error.status ? 'timeout' : (_error$responseJSON = error.responseJSON) === null || _error$responseJSON === void 0 ? void 0 : _error$responseJSON.data; | |
| 138 | - setAjaxState(function (prevState) { | |
| 139 | - return _objectSpread(_objectSpread({}, prevState), {}, { | |
| 140 | - status: 'error', | |
| 141 | - response: response | |
| 142 | - }); | |
| 143 | - }); | |
| 144 | - }).finally(function () { | |
| 145 | - setAjaxState(function (prevState) { | |
| 146 | - return _objectSpread(_objectSpread({}, prevState), {}, { | |
| 147 | - isComplete: true | |
| 148 | - }); | |
| 149 | - }); | |
| 150 | - }); | |
| 135 | +function _createClass(Constructor, protoProps, staticProps) { | |
| 136 | + if (protoProps) _defineProperties(Constructor.prototype, protoProps); | |
| 137 | + if (staticProps) _defineProperties(Constructor, staticProps); | |
| 138 | + return Constructor; | |
| 139 | +} | |
| 140 | + | |
| 141 | +module.exports = _createClass; | |
| 142 | + | |
| 143 | +/***/ }), | |
| 144 | +/* 4 */ | |
| 145 | +/***/ (function(module, exports, __webpack_require__) { | |
| 146 | + | |
| 147 | +var _Object$create = __webpack_require__(139); | |
| 148 | + | |
| 149 | +var setPrototypeOf = __webpack_require__(137); | |
| 150 | + | |
| 151 | +function _inherits(subClass, superClass) { | |
| 152 | + if (typeof superClass !== "function" && superClass !== null) { | |
| 153 | + throw new TypeError("Super expression must either be null or a function"); | |
| 154 | + } | |
| 155 | + | |
| 156 | + subClass.prototype = _Object$create(superClass && superClass.prototype, { | |
| 157 | + constructor: { | |
| 158 | + value: subClass, | |
| 159 | + writable: true, | |
| 160 | + configurable: true | |
| 151 | 161 | } |
| 152 | - }, [ajax]); | |
| 153 | - return { | |
| 154 | - ajax: ajax, | |
| 155 | - setAjax: setAjax, | |
| 156 | - ajaxState: ajaxState, | |
| 157 | - ajaxActions: ajaxActions, | |
| 158 | - runRequest: runRequest | |
| 159 | - }; | |
| 162 | + }); | |
| 163 | + if (superClass) setPrototypeOf(subClass, superClass); | |
| 160 | 164 | } |
| 161 | 165 | |
| 166 | +module.exports = _inherits; | |
| 167 | + | |
| 162 | 168 | /***/ }), |
| 169 | +/* 5 */ | |
| 170 | +/***/ (function(module, exports, __webpack_require__) { | |
| 163 | 171 | |
| 164 | -/***/ "../app/assets/js/hooks/use-confirm-action.js": | |
| 165 | -/*!****************************************************!*\ | |
| 166 | - !*** ../app/assets/js/hooks/use-confirm-action.js ***! | |
| 167 | - \****************************************************/ | |
| 168 | -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 172 | +var _Reflect$construct = __webpack_require__(107); | |
| 169 | 173 | |
| 170 | -"use strict"; | |
| 174 | +var getPrototypeOf = __webpack_require__(16); | |
| 171 | 175 | |
| 176 | +var isNativeReflectConstruct = __webpack_require__(149); | |
| 172 | 177 | |
| 173 | -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 174 | -Object.defineProperty(exports, "__esModule", ({ | |
| 175 | - value: true | |
| 176 | -})); | |
| 177 | -exports["default"] = useConfirmAction; | |
| 178 | -var _toConsumableArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/toConsumableArray */ "../node_modules/@babel/runtime/helpers/toConsumableArray.js")); | |
| 179 | -var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ "../node_modules/@babel/runtime/helpers/slicedToArray.js")); | |
| 180 | -var _react = __webpack_require__(/*! react */ "react"); | |
| 181 | -var _useIntroduction2 = _interopRequireDefault(__webpack_require__(/*! ./use-introduction */ "../app/assets/js/hooks/use-introduction.js")); | |
| 182 | -function useConfirmAction(_ref) { | |
| 183 | - var action = _ref.action, | |
| 184 | - _ref$doNotShowAgainKe = _ref.doNotShowAgainKey, | |
| 185 | - doNotShowAgainKey = _ref$doNotShowAgainKe === void 0 ? null : _ref$doNotShowAgainKe; | |
| 186 | - var _useIntroduction = (0, _useIntroduction2.default)(doNotShowAgainKey), | |
| 187 | - shouldNotShowAgain = _useIntroduction.isViewed, | |
| 188 | - markAsShouldNotShowAgain = _useIntroduction.markAsViewed; | |
| 189 | - var _useState = (0, _react.useState)({ | |
| 190 | - isOpen: false, | |
| 191 | - actionArgs: [] | |
| 192 | - }), | |
| 193 | - _useState2 = (0, _slicedToArray2.default)(_useState, 2), | |
| 194 | - dialogState = _useState2[0], | |
| 195 | - setDialogState = _useState2[1]; | |
| 196 | - var _useState3 = (0, _react.useState)(false), | |
| 197 | - _useState4 = (0, _slicedToArray2.default)(_useState3, 2), | |
| 198 | - doNotShowAgainCheckboxState = _useState4[0], | |
| 199 | - setDoNotShowAgainCheckboxState = _useState4[1]; | |
| 200 | - return { | |
| 201 | - checkbox: { | |
| 202 | - isChecked: doNotShowAgainCheckboxState, | |
| 203 | - setIsChecked: setDoNotShowAgainCheckboxState | |
| 204 | - }, | |
| 205 | - dialog: { | |
| 206 | - isOpen: dialogState.isOpen, | |
| 207 | - approve: function approve() { | |
| 208 | - action.apply(void 0, (0, _toConsumableArray2.default)(dialogState.actionArgs)); | |
| 209 | - if (doNotShowAgainCheckboxState && doNotShowAgainKey) { | |
| 210 | - markAsShouldNotShowAgain(); | |
| 211 | - } | |
| 212 | - setDialogState({ | |
| 213 | - isOpen: false, | |
| 214 | - actionArgs: [] | |
| 215 | - }); | |
| 216 | - }, | |
| 217 | - dismiss: function dismiss() { | |
| 218 | - setDialogState({ | |
| 219 | - isOpen: false, | |
| 220 | - actionArgs: [] | |
| 221 | - }); | |
| 222 | - } | |
| 223 | - }, | |
| 224 | - runAction: function runAction() { | |
| 225 | - for (var _len = arguments.length, actionArgs = new Array(_len), _key = 0; _key < _len; _key++) { | |
| 226 | - actionArgs[_key] = arguments[_key]; | |
| 227 | - } | |
| 228 | - if (shouldNotShowAgain) { | |
| 229 | - action.apply(void 0, actionArgs); | |
| 230 | - return; | |
| 231 | - } | |
| 232 | - setDialogState({ | |
| 233 | - isOpen: true, | |
| 234 | - actionArgs: actionArgs | |
| 235 | - }); | |
| 178 | +var possibleConstructorReturn = __webpack_require__(171); | |
| 179 | + | |
| 180 | +function _createSuper(Derived) { | |
| 181 | + var hasNativeReflectConstruct = isNativeReflectConstruct(); | |
| 182 | + return function _createSuperInternal() { | |
| 183 | + var Super = getPrototypeOf(Derived), | |
| 184 | + result; | |
| 185 | + | |
| 186 | + if (hasNativeReflectConstruct) { | |
| 187 | + var NewTarget = getPrototypeOf(this).constructor; | |
| 188 | + result = _Reflect$construct(Super, arguments, NewTarget); | |
| 189 | + } else { | |
| 190 | + result = Super.apply(this, arguments); | |
| 236 | 191 | } |
| 192 | + | |
| 193 | + return possibleConstructorReturn(this, result); | |
| 237 | 194 | }; |
| 238 | 195 | } |
| 239 | 196 | |
| 197 | +module.exports = _createSuper; | |
| 198 | + | |
| 240 | 199 | /***/ }), |
| 200 | +/* 6 */ | |
| 201 | +/***/ (function(module, exports) { | |
| 241 | 202 | |
| 242 | -/***/ "../app/assets/js/hooks/use-introduction.js": | |
| 243 | -/*!**************************************************!*\ | |
| 244 | - !*** ../app/assets/js/hooks/use-introduction.js ***! | |
| 245 | - \**************************************************/ | |
| 246 | -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 203 | +var core = module.exports = { version: '2.6.11' }; | |
| 204 | +if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef | |
| 247 | 205 | |
| 248 | -"use strict"; | |
| 249 | 206 | |
| 207 | +/***/ }), | |
| 208 | +/* 7 */ | |
| 209 | +/***/ (function(module, exports, __webpack_require__) { | |
| 250 | 210 | |
| 251 | -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 252 | -Object.defineProperty(exports, "__esModule", ({ | |
| 253 | - value: true | |
| 254 | -})); | |
| 255 | -exports["default"] = useIntroduction; | |
| 256 | -var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ "../node_modules/@babel/runtime/helpers/slicedToArray.js")); | |
| 257 | -var _react = __webpack_require__(/*! react */ "react"); | |
| 258 | -function useIntroduction(key) { | |
| 259 | - var _window$elementorAppC; | |
| 260 | - var _useState = (0, _react.useState)(!!((_window$elementorAppC = window.elementorAppConfig) !== null && _window$elementorAppC !== void 0 && (_window$elementorAppC = _window$elementorAppC.user) !== null && _window$elementorAppC !== void 0 && (_window$elementorAppC = _window$elementorAppC.introduction) !== null && _window$elementorAppC !== void 0 && _window$elementorAppC[key])), | |
| 261 | - _useState2 = (0, _slicedToArray2.default)(_useState, 2), | |
| 262 | - isViewed = _useState2[0], | |
| 263 | - setIsViewed = _useState2[1]; | |
| 264 | - function markAsViewed() { | |
| 265 | - if (!key) { | |
| 266 | - return Promise.reject(); | |
| 211 | +var global = __webpack_require__(8); | |
| 212 | +var core = __webpack_require__(6); | |
| 213 | +var ctx = __webpack_require__(31); | |
| 214 | +var hide = __webpack_require__(24); | |
| 215 | +var has = __webpack_require__(19); | |
| 216 | +var PROTOTYPE = 'prototype'; | |
| 217 | + | |
| 218 | +var $export = function (type, name, source) { | |
| 219 | + var IS_FORCED = type & $export.F; | |
| 220 | + var IS_GLOBAL = type & $export.G; | |
| 221 | + var IS_STATIC = type & $export.S; | |
| 222 | + var IS_PROTO = type & $export.P; | |
| 223 | + var IS_BIND = type & $export.B; | |
| 224 | + var IS_WRAP = type & $export.W; | |
| 225 | + var exports = IS_GLOBAL ? core : core[name] || (core[name] = {}); | |
| 226 | + var expProto = exports[PROTOTYPE]; | |
| 227 | + var target = IS_GLOBAL ? global : IS_STATIC ? global[name] : (global[name] || {})[PROTOTYPE]; | |
| 228 | + var key, own, out; | |
| 229 | + if (IS_GLOBAL) source = name; | |
| 230 | + for (key in source) { | |
| 231 | + // contains in native | |
| 232 | + own = !IS_FORCED && target && target[key] !== undefined; | |
| 233 | + if (own && has(exports, key)) continue; | |
| 234 | + // export native or passed | |
| 235 | + out = own ? target[key] : source[key]; | |
| 236 | + // prevent global pollution for namespaces | |
| 237 | + exports[key] = IS_GLOBAL && typeof target[key] != 'function' ? source[key] | |
| 238 | + // bind timers to global for call from export context | |
| 239 | + : IS_BIND && own ? ctx(out, global) | |
| 240 | + // wrap global constructors for prevent change them in library | |
| 241 | + : IS_WRAP && target[key] == out ? (function (C) { | |
| 242 | + var F = function (a, b, c) { | |
| 243 | + if (this instanceof C) { | |
| 244 | + switch (arguments.length) { | |
| 245 | + case 0: return new C(); | |
| 246 | + case 1: return new C(a); | |
| 247 | + case 2: return new C(a, b); | |
| 248 | + } return new C(a, b, c); | |
| 249 | + } return C.apply(this, arguments); | |
| 250 | + }; | |
| 251 | + F[PROTOTYPE] = C[PROTOTYPE]; | |
| 252 | + return F; | |
| 253 | + // make static versions for prototype methods | |
| 254 | + })(out) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out; | |
| 255 | + // export proto methods to core.%CONSTRUCTOR%.methods.%NAME% | |
| 256 | + if (IS_PROTO) { | |
| 257 | + (exports.virtual || (exports.virtual = {}))[key] = out; | |
| 258 | + // export proto methods to core.%CONSTRUCTOR%.prototype.%NAME% | |
| 259 | + if (type & $export.R && expProto && !expProto[key]) hide(expProto, key, out); | |
| 267 | 260 | } |
| 268 | - return new Promise(function (resolve, reject) { | |
| 269 | - if (isViewed) { | |
| 270 | - reject(); | |
| 271 | - } | |
| 272 | - elementorCommon.ajax.addRequest('introduction_viewed', { | |
| 273 | - data: { | |
| 274 | - introductionKey: key | |
| 275 | - }, | |
| 276 | - error: function error() { | |
| 277 | - return reject(); | |
| 278 | - }, | |
| 279 | - success: function success() { | |
| 280 | - var _window$elementorAppC2; | |
| 281 | - setIsViewed(true); | |
| 282 | - if ((_window$elementorAppC2 = window.elementorAppConfig) !== null && _window$elementorAppC2 !== void 0 && (_window$elementorAppC2 = _window$elementorAppC2.user) !== null && _window$elementorAppC2 !== void 0 && _window$elementorAppC2.introduction) { | |
| 283 | - window.elementorAppConfig.user.introduction[key] = true; | |
| 284 | - } | |
| 285 | - resolve(); | |
| 286 | - } | |
| 287 | - }); | |
| 288 | - }); | |
| 289 | 261 | } |
| 290 | - return { | |
| 291 | - isViewed: isViewed, | |
| 292 | - markAsViewed: markAsViewed | |
| 293 | - }; | |
| 294 | -} | |
| 262 | +}; | |
| 263 | +// type bitmap | |
| 264 | +$export.F = 1; // forced | |
| 265 | +$export.G = 2; // global | |
| 266 | +$export.S = 4; // static | |
| 267 | +$export.P = 8; // proto | |
| 268 | +$export.B = 16; // bind | |
| 269 | +$export.W = 32; // wrap | |
| 270 | +$export.U = 64; // safe | |
| 271 | +$export.R = 128; // real proto method for `library` | |
| 272 | +module.exports = $export; | |
| 295 | 273 | |
| 274 | + | |
| 296 | 275 | /***/ }), |
| 276 | +/* 8 */ | |
| 277 | +/***/ (function(module, exports) { | |
| 297 | 278 | |
| 298 | -/***/ "../app/assets/js/hooks/use-page-title.js": | |
| 299 | -/*!************************************************!*\ | |
| 300 | - !*** ../app/assets/js/hooks/use-page-title.js ***! | |
| 301 | - \************************************************/ | |
| 302 | -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 279 | +// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028 | |
| 280 | +var global = module.exports = typeof window != 'undefined' && window.Math == Math | |
| 281 | + ? window : typeof self != 'undefined' && self.Math == Math ? self | |
| 282 | + // eslint-disable-next-line no-new-func | |
| 283 | + : Function('return this')(); | |
| 284 | +if (typeof __g == 'number') __g = global; // eslint-disable-line no-undef | |
| 303 | 285 | |
| 304 | -"use strict"; | |
| 305 | -/* provided dependency */ var __ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n")["__"]; | |
| 306 | 286 | |
| 287 | +/***/ }), | |
| 288 | +/* 9 */ | |
| 289 | +/***/ (function(module, exports) { | |
| 307 | 290 | |
| 308 | -Object.defineProperty(exports, "__esModule", ({ | |
| 309 | - value: true | |
| 310 | -})); | |
| 311 | -exports["default"] = usePageTitle; | |
| 312 | -var _react = __webpack_require__(/*! react */ "react"); | |
| 313 | -function usePageTitle(_ref) { | |
| 314 | - var title = _ref.title, | |
| 315 | - prefix = _ref.prefix; | |
| 316 | - var prefixRef = (0, _react.useRef)(prefix); | |
| 317 | - (0, _react.useEffect)(function () { | |
| 318 | - if (!prefix) { | |
| 319 | - prefixRef.current = __('Elementor', 'elementor'); | |
| 320 | - } | |
| 321 | - document.title = "".concat(prefixRef.current, " | ").concat(title); | |
| 322 | - }, [title, prefix]); | |
| 323 | -} | |
| 291 | +module.exports = function (it) { | |
| 292 | + return typeof it === 'object' ? it !== null : typeof it === 'function'; | |
| 293 | +}; | |
| 324 | 294 | |
| 295 | + | |
| 325 | 296 | /***/ }), |
| 297 | +/* 10 */ | |
| 298 | +/***/ (function(module, exports, __webpack_require__) { | |
| 326 | 299 | |
| 327 | -/***/ "../app/assets/js/hooks/use-query-params.js": | |
| 328 | -/*!**************************************************!*\ | |
| 329 | - !*** ../app/assets/js/hooks/use-query-params.js ***! | |
| 330 | - \**************************************************/ | |
| 331 | -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 300 | +var store = __webpack_require__(76)('wks'); | |
| 301 | +var uid = __webpack_require__(59); | |
| 302 | +var Symbol = __webpack_require__(8).Symbol; | |
| 303 | +var USE_SYMBOL = typeof Symbol == 'function'; | |
| 332 | 304 | |
| 333 | -"use strict"; | |
| 305 | +var $exports = module.exports = function (name) { | |
| 306 | + return store[name] || (store[name] = | |
| 307 | + USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name)); | |
| 308 | +}; | |
| 334 | 309 | |
| 310 | +$exports.store = store; | |
| 335 | 311 | |
| 336 | -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 337 | -Object.defineProperty(exports, "__esModule", ({ | |
| 338 | - value: true | |
| 339 | -})); | |
| 340 | -exports["default"] = useQueryParams; | |
| 341 | -var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "../node_modules/@babel/runtime/helpers/defineProperty.js")); | |
| 342 | -var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ "../node_modules/@babel/runtime/helpers/slicedToArray.js")); | |
| 343 | -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } | |
| 344 | -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } | |
| 345 | -function useQueryParams() { | |
| 346 | - var _location$hash$match; | |
| 347 | - var urlSearchParams = new URLSearchParams(window.location.search), | |
| 348 | - urlParams = Object.fromEntries(urlSearchParams.entries()), | |
| 349 | - hashValue = (_location$hash$match = location.hash.match(/\?(.+)/)) === null || _location$hash$match === void 0 ? void 0 : _location$hash$match[1], | |
| 350 | - hashParams = {}; | |
| 351 | - if (hashValue) { | |
| 352 | - hashValue.split('&').forEach(function (pair) { | |
| 353 | - var _pair$split = pair.split('='), | |
| 354 | - _pair$split2 = (0, _slicedToArray2.default)(_pair$split, 2), | |
| 355 | - key = _pair$split2[0], | |
| 356 | - value = _pair$split2[1]; | |
| 357 | - hashParams[key] = value; | |
| 358 | - }); | |
| 359 | - } | |
| 360 | 312 | |
| 361 | - // Merging the URL params with the hash params. | |
| 362 | - var queryParams = _objectSpread(_objectSpread({}, urlParams), hashParams); | |
| 363 | - return { | |
| 364 | - getAll: function getAll() { | |
| 365 | - return queryParams; | |
| 366 | - } | |
| 313 | +/***/ }), | |
| 314 | +/* 11 */ | |
| 315 | +/***/ (function(module, exports) { | |
| 316 | + | |
| 317 | +module.exports = React; | |
| 318 | + | |
| 319 | +/***/ }), | |
| 320 | +/* 12 */ | |
| 321 | +/***/ (function(module, exports, __webpack_require__) { | |
| 322 | + | |
| 323 | +var store = __webpack_require__(67)('wks'); | |
| 324 | +var uid = __webpack_require__(68); | |
| 325 | +var Symbol = __webpack_require__(17).Symbol; | |
| 326 | +var USE_SYMBOL = typeof Symbol == 'function'; | |
| 327 | + | |
| 328 | +var $exports = module.exports = function (name) { | |
| 329 | + return store[name] || (store[name] = | |
| 330 | + USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name)); | |
| 331 | +}; | |
| 332 | + | |
| 333 | +$exports.store = store; | |
| 334 | + | |
| 335 | + | |
| 336 | +/***/ }), | |
| 337 | +/* 13 */ | |
| 338 | +/***/ (function(module, exports, __webpack_require__) { | |
| 339 | + | |
| 340 | +var isObject = __webpack_require__(9); | |
| 341 | +module.exports = function (it) { | |
| 342 | + if (!isObject(it)) throw TypeError(it + ' is not an object!'); | |
| 343 | + return it; | |
| 344 | +}; | |
| 345 | + | |
| 346 | + | |
| 347 | +/***/ }), | |
| 348 | +/* 14 */ | |
| 349 | +/***/ (function(module, exports, __webpack_require__) { | |
| 350 | + | |
| 351 | +// Thank's IE8 for his funny defineProperty | |
| 352 | +module.exports = !__webpack_require__(22)(function () { | |
| 353 | + return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7; | |
| 354 | +}); | |
| 355 | + | |
| 356 | + | |
| 357 | +/***/ }), | |
| 358 | +/* 15 */ | |
| 359 | +/***/ (function(module, exports, __webpack_require__) { | |
| 360 | + | |
| 361 | +var anObject = __webpack_require__(13); | |
| 362 | +var IE8_DOM_DEFINE = __webpack_require__(114); | |
| 363 | +var toPrimitive = __webpack_require__(74); | |
| 364 | +var dP = Object.defineProperty; | |
| 365 | + | |
| 366 | +exports.f = __webpack_require__(14) ? Object.defineProperty : function defineProperty(O, P, Attributes) { | |
| 367 | + anObject(O); | |
| 368 | + P = toPrimitive(P, true); | |
| 369 | + anObject(Attributes); | |
| 370 | + if (IE8_DOM_DEFINE) try { | |
| 371 | + return dP(O, P, Attributes); | |
| 372 | + } catch (e) { /* empty */ } | |
| 373 | + if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!'); | |
| 374 | + if ('value' in Attributes) O[P] = Attributes.value; | |
| 375 | + return O; | |
| 376 | +}; | |
| 377 | + | |
| 378 | + | |
| 379 | +/***/ }), | |
| 380 | +/* 16 */ | |
| 381 | +/***/ (function(module, exports, __webpack_require__) { | |
| 382 | + | |
| 383 | +var _Object$getPrototypeOf = __webpack_require__(158); | |
| 384 | + | |
| 385 | +var _Object$setPrototypeOf = __webpack_require__(115); | |
| 386 | + | |
| 387 | +function _getPrototypeOf(o) { | |
| 388 | + module.exports = _getPrototypeOf = _Object$setPrototypeOf ? _Object$getPrototypeOf : function _getPrototypeOf(o) { | |
| 389 | + return o.__proto__ || _Object$getPrototypeOf(o); | |
| 367 | 390 | }; |
| 391 | + return _getPrototypeOf(o); | |
| 368 | 392 | } |
| 369 | 393 | |
| 394 | +module.exports = _getPrototypeOf; | |
| 395 | + | |
| 370 | 396 | /***/ }), |
| 397 | +/* 17 */ | |
| 398 | +/***/ (function(module, exports) { | |
| 371 | 399 | |
| 372 | -/***/ "../app/assets/js/layout/content.js": | |
| 373 | -/*!******************************************!*\ | |
| 374 | - !*** ../app/assets/js/layout/content.js ***! | |
| 375 | - \******************************************/ | |
| 376 | -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 400 | +// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028 | |
| 401 | +var global = module.exports = typeof window != 'undefined' && window.Math == Math | |
| 402 | + ? window : typeof self != 'undefined' && self.Math == Math ? self | |
| 403 | + // eslint-disable-next-line no-new-func | |
| 404 | + : Function('return this')(); | |
| 405 | +if (typeof __g == 'number') __g = global; // eslint-disable-line no-undef | |
| 377 | 406 | |
| 378 | -"use strict"; | |
| 379 | -/* provided dependency */ var PropTypes = __webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js"); | |
| 380 | 407 | |
| 408 | +/***/ }), | |
| 409 | +/* 18 */ | |
| 410 | +/***/ (function(module, exports, __webpack_require__) { | |
| 381 | 411 | |
| 382 | -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 383 | -Object.defineProperty(exports, "__esModule", ({ | |
| 384 | - value: true | |
| 385 | -})); | |
| 386 | -exports["default"] = Content; | |
| 387 | -var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react")); | |
| 388 | -function Content(props) { | |
| 389 | - return /*#__PURE__*/_react.default.createElement("main", { | |
| 390 | - className: "eps-app__content ".concat(props.className) | |
| 391 | - }, props.children); | |
| 392 | -} | |
| 393 | -Content.propTypes = { | |
| 394 | - children: PropTypes.any, | |
| 395 | - className: PropTypes.string | |
| 412 | +var isObject = __webpack_require__(30); | |
| 413 | +module.exports = function (it) { | |
| 414 | + if (!isObject(it)) throw TypeError(it + ' is not an object!'); | |
| 415 | + return it; | |
| 396 | 416 | }; |
| 397 | -Content.defaultProps = { | |
| 398 | - className: '' | |
| 417 | + | |
| 418 | + | |
| 419 | +/***/ }), | |
| 420 | +/* 19 */ | |
| 421 | +/***/ (function(module, exports) { | |
| 422 | + | |
| 423 | +var hasOwnProperty = {}.hasOwnProperty; | |
| 424 | +module.exports = function (it, key) { | |
| 425 | + return hasOwnProperty.call(it, key); | |
| 399 | 426 | }; |
| 400 | 427 | |
| 428 | + | |
| 401 | 429 | /***/ }), |
| 430 | +/* 20 */ | |
| 431 | +/***/ (function(module, exports, __webpack_require__) { | |
| 402 | 432 | |
| 403 | -/***/ "../app/assets/js/layout/footer.js": | |
| 404 | -/*!*****************************************!*\ | |
| 405 | - !*** ../app/assets/js/layout/footer.js ***! | |
| 406 | - \*****************************************/ | |
| 407 | -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 433 | +// to indexed object, toObject with fallback for non-array-like ES3 strings | |
| 434 | +var IObject = __webpack_require__(104); | |
| 435 | +var defined = __webpack_require__(65); | |
| 436 | +module.exports = function (it) { | |
| 437 | + return IObject(defined(it)); | |
| 438 | +}; | |
| 408 | 439 | |
| 409 | -"use strict"; | |
| 410 | -/* provided dependency */ var PropTypes = __webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js"); | |
| 411 | 440 | |
| 441 | +/***/ }), | |
| 442 | +/* 21 */, | |
| 443 | +/* 22 */ | |
| 444 | +/***/ (function(module, exports) { | |
| 412 | 445 | |
| 413 | -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 414 | -Object.defineProperty(exports, "__esModule", ({ | |
| 415 | - value: true | |
| 416 | -})); | |
| 417 | -exports["default"] = Footer; | |
| 418 | -var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react")); | |
| 419 | -function Footer(props) { | |
| 420 | - return /*#__PURE__*/_react.default.createElement("footer", { | |
| 421 | - className: "eps-app__footer" | |
| 422 | - }, props.children); | |
| 423 | -} | |
| 424 | -Footer.propTypes = { | |
| 425 | - children: PropTypes.object | |
| 446 | +module.exports = function (exec) { | |
| 447 | + try { | |
| 448 | + return !!exec(); | |
| 449 | + } catch (e) { | |
| 450 | + return true; | |
| 451 | + } | |
| 426 | 452 | }; |
| 427 | 453 | |
| 454 | + | |
| 428 | 455 | /***/ }), |
| 456 | +/* 23 */ | |
| 457 | +/***/ (function(module, exports, __webpack_require__) { | |
| 429 | 458 | |
| 430 | -/***/ "../app/assets/js/layout/header-button.js": | |
| 431 | -/*!************************************************!*\ | |
| 432 | - !*** ../app/assets/js/layout/header-button.js ***! | |
| 433 | - \************************************************/ | |
| 434 | -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 459 | +module.exports = __webpack_require__(201); | |
| 435 | 460 | |
| 436 | -"use strict"; | |
| 461 | +/***/ }), | |
| 462 | +/* 24 */ | |
| 463 | +/***/ (function(module, exports, __webpack_require__) { | |
| 437 | 464 | |
| 465 | +var dP = __webpack_require__(15); | |
| 466 | +var createDesc = __webpack_require__(44); | |
| 467 | +module.exports = __webpack_require__(14) ? function (object, key, value) { | |
| 468 | + return dP.f(object, key, createDesc(1, value)); | |
| 469 | +} : function (object, key, value) { | |
| 470 | + object[key] = value; | |
| 471 | + return object; | |
| 472 | +}; | |
| 438 | 473 | |
| 439 | -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 440 | -Object.defineProperty(exports, "__esModule", ({ | |
| 441 | - value: true | |
| 442 | -})); | |
| 443 | -exports["default"] = void 0; | |
| 444 | -var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); | |
| 445 | -var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); | |
| 446 | -var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); | |
| 447 | -var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); | |
| 448 | -var _get2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/get */ "../node_modules/@babel/runtime/helpers/get.js")); | |
| 449 | -var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 450 | -var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "../node_modules/@babel/runtime/helpers/defineProperty.js")); | |
| 451 | -var _button = _interopRequireDefault(__webpack_require__(/*! ../ui/molecules/button */ "../app/assets/js/ui/molecules/button.js")); | |
| 452 | -function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } | |
| 453 | -function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } | |
| 454 | -function _superPropGet(t, o, e, r) { var p = (0, _get2.default)((0, _getPrototypeOf2.default)(1 & r ? t.prototype : t), o, e); return 2 & r && "function" == typeof p ? function (t) { return p.apply(e, t); } : p; } | |
| 455 | -var Button = exports["default"] = /*#__PURE__*/function (_BaseButton) { | |
| 456 | - function Button() { | |
| 457 | - (0, _classCallCheck2.default)(this, Button); | |
| 458 | - return _callSuper(this, Button, arguments); | |
| 474 | + | |
| 475 | +/***/ }), | |
| 476 | +/* 25 */, | |
| 477 | +/* 26 */ | |
| 478 | +/***/ (function(module, exports, __webpack_require__) { | |
| 479 | + | |
| 480 | +var _Object$getOwnPropertyDescriptor = __webpack_require__(124); | |
| 481 | + | |
| 482 | +var _Reflect$get = __webpack_require__(193); | |
| 483 | + | |
| 484 | +var superPropBase = __webpack_require__(196); | |
| 485 | + | |
| 486 | +function _get(target, property, receiver) { | |
| 487 | + if (typeof Reflect !== "undefined" && _Reflect$get) { | |
| 488 | + module.exports = _get = _Reflect$get; | |
| 489 | + } else { | |
| 490 | + module.exports = _get = function _get(target, property, receiver) { | |
| 491 | + var base = superPropBase(target, property); | |
| 492 | + if (!base) return; | |
| 493 | + | |
| 494 | + var desc = _Object$getOwnPropertyDescriptor(base, property); | |
| 495 | + | |
| 496 | + if (desc.get) { | |
| 497 | + return desc.get.call(receiver); | |
| 498 | + } | |
| 499 | + | |
| 500 | + return desc.value; | |
| 501 | + }; | |
| 459 | 502 | } |
| 460 | - (0, _inherits2.default)(Button, _BaseButton); | |
| 461 | - return (0, _createClass2.default)(Button, [{ | |
| 462 | - key: "getCssId", | |
| 463 | - value: function getCssId() { | |
| 464 | - return "eps-app-header-btn-" + _superPropGet(Button, "getCssId", this, 3)([]); | |
| 465 | - } | |
| 466 | - }, { | |
| 467 | - key: "getClassName", | |
| 468 | - value: function getClassName() { | |
| 469 | - // Avoid using the 'eps-app__header-btn' class to make sure it is not override custom styles. | |
| 470 | - if (!this.props.includeHeaderBtnClass) { | |
| 471 | - return _superPropGet(Button, "getClassName", this, 3)([]); | |
| 472 | - } | |
| 473 | - return "eps-app__header-btn " + _superPropGet(Button, "getClassName", this, 3)([]); | |
| 474 | - } | |
| 475 | - }]); | |
| 476 | -}(_button.default); | |
| 477 | -(0, _defineProperty2.default)(Button, "defaultProps", Object.assign({} /* Clone */, _button.default.defaultProps, { | |
| 478 | - hideText: true, | |
| 479 | - includeHeaderBtnClass: true | |
| 480 | -})); | |
| 481 | 503 | |
| 504 | + return _get(target, property, receiver || target); | |
| 505 | +} | |
| 506 | + | |
| 507 | +module.exports = _get; | |
| 508 | + | |
| 482 | 509 | /***/ }), |
| 510 | +/* 27 */ | |
| 511 | +/***/ (function(module, exports, __webpack_require__) { | |
| 483 | 512 | |
| 484 | -/***/ "../app/assets/js/layout/header-buttons.js": | |
| 485 | -/*!*************************************************!*\ | |
| 486 | - !*** ../app/assets/js/layout/header-buttons.js ***! | |
| 487 | - \*************************************************/ | |
| 488 | -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 513 | +// Thank's IE8 for his funny defineProperty | |
| 514 | +module.exports = !__webpack_require__(33)(function () { | |
| 515 | + return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7; | |
| 516 | +}); | |
| 489 | 517 | |
| 490 | -"use strict"; | |
| 491 | -/* provided dependency */ var __ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n")["__"]; | |
| 492 | -/* provided dependency */ var PropTypes = __webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js"); | |
| 493 | 518 | |
| 519 | +/***/ }), | |
| 520 | +/* 28 */ | |
| 521 | +/***/ (function(module, exports, __webpack_require__) { | |
| 494 | 522 | |
| 495 | -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 496 | -Object.defineProperty(exports, "__esModule", ({ | |
| 497 | - value: true | |
| 498 | -})); | |
| 499 | -exports["default"] = HeaderButtons; | |
| 500 | -var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react")); | |
| 501 | -var _extends2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/extends */ "../node_modules/@babel/runtime/helpers/extends.js")); | |
| 502 | -var _useAction = _interopRequireDefault(__webpack_require__(/*! elementor-app/hooks/use-action */ "../app/assets/js/hooks/use-action.js")); | |
| 503 | -var _headerButton = _interopRequireDefault(__webpack_require__(/*! ./header-button */ "../app/assets/js/layout/header-button.js")); | |
| 504 | -function HeaderButtons(props) { | |
| 505 | - var action = (0, _useAction.default)(); | |
| 506 | - var actionOnClose = function actionOnClose() { | |
| 507 | - if (props.onClose) { | |
| 508 | - props.onClose(); | |
| 509 | - } else { | |
| 510 | - action.backToDashboard(); | |
| 511 | - } | |
| 512 | - }; | |
| 513 | - var tools = ''; | |
| 514 | - if (props.buttons.length) { | |
| 515 | - var buttons = props.buttons.map(function (button) { | |
| 516 | - return /*#__PURE__*/_react.default.createElement(_headerButton.default, (0, _extends2.default)({ | |
| 517 | - key: button.id | |
| 518 | - }, button)); | |
| 523 | +var _Object$defineProperty = __webpack_require__(1); | |
| 524 | + | |
| 525 | +function _defineProperty(obj, key, value) { | |
| 526 | + if (key in obj) { | |
| 527 | + _Object$defineProperty(obj, key, { | |
| 528 | + value: value, | |
| 529 | + enumerable: true, | |
| 530 | + configurable: true, | |
| 531 | + writable: true | |
| 519 | 532 | }); |
| 520 | - tools = /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, buttons); | |
| 533 | + } else { | |
| 534 | + obj[key] = value; | |
| 521 | 535 | } |
| 522 | - return /*#__PURE__*/_react.default.createElement("div", { | |
| 523 | - className: "eps-app__header-buttons" | |
| 524 | - }, /*#__PURE__*/_react.default.createElement(_headerButton.default, { | |
| 525 | - text: __('Close', 'elementor'), | |
| 526 | - icon: "eicon-close", | |
| 527 | - className: "eps-app__close-button", | |
| 528 | - onClick: actionOnClose | |
| 529 | - }), tools); | |
| 536 | + | |
| 537 | + return obj; | |
| 530 | 538 | } |
| 531 | -HeaderButtons.propTypes = { | |
| 532 | - buttons: PropTypes.arrayOf(PropTypes.object), | |
| 533 | - onClose: PropTypes.func | |
| 539 | + | |
| 540 | +module.exports = _defineProperty; | |
| 541 | + | |
| 542 | +/***/ }), | |
| 543 | +/* 29 */ | |
| 544 | +/***/ (function(module, exports, __webpack_require__) { | |
| 545 | + | |
| 546 | +var dP = __webpack_require__(45); | |
| 547 | +var createDesc = __webpack_require__(103); | |
| 548 | +module.exports = __webpack_require__(27) ? function (object, key, value) { | |
| 549 | + return dP.f(object, key, createDesc(1, value)); | |
| 550 | +} : function (object, key, value) { | |
| 551 | + object[key] = value; | |
| 552 | + return object; | |
| 534 | 553 | }; |
| 535 | -HeaderButtons.defaultProps = { | |
| 536 | - buttons: [] | |
| 554 | + | |
| 555 | + | |
| 556 | +/***/ }), | |
| 557 | +/* 30 */ | |
| 558 | +/***/ (function(module, exports) { | |
| 559 | + | |
| 560 | +module.exports = function (it) { | |
| 561 | + return typeof it === 'object' ? it !== null : typeof it === 'function'; | |
| 537 | 562 | }; |
| 538 | 563 | |
| 564 | + | |
| 539 | 565 | /***/ }), |
| 566 | +/* 31 */ | |
| 567 | +/***/ (function(module, exports, __webpack_require__) { | |
| 540 | 568 | |
| 541 | -/***/ "../app/assets/js/layout/header.js": | |
| 542 | -/*!*****************************************!*\ | |
| 543 | - !*** ../app/assets/js/layout/header.js ***! | |
| 544 | - \*****************************************/ | |
| 545 | -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 569 | +// optional / simple context binding | |
| 570 | +var aFunction = __webpack_require__(38); | |
| 571 | +module.exports = function (fn, that, length) { | |
| 572 | + aFunction(fn); | |
| 573 | + if (that === undefined) return fn; | |
| 574 | + switch (length) { | |
| 575 | + case 1: return function (a) { | |
| 576 | + return fn.call(that, a); | |
| 577 | + }; | |
| 578 | + case 2: return function (a, b) { | |
| 579 | + return fn.call(that, a, b); | |
| 580 | + }; | |
| 581 | + case 3: return function (a, b, c) { | |
| 582 | + return fn.call(that, a, b, c); | |
| 583 | + }; | |
| 584 | + } | |
| 585 | + return function (/* ...args */) { | |
| 586 | + return fn.apply(that, arguments); | |
| 587 | + }; | |
| 588 | +}; | |
| 546 | 589 | |
| 547 | -"use strict"; | |
| 548 | -/* provided dependency */ var PropTypes = __webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js"); | |
| 549 | 590 | |
| 591 | +/***/ }), | |
| 592 | +/* 32 */ | |
| 593 | +/***/ (function(module, exports, __webpack_require__) { | |
| 550 | 594 | |
| 551 | -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 552 | -Object.defineProperty(exports, "__esModule", ({ | |
| 553 | - value: true | |
| 554 | -})); | |
| 555 | -exports["default"] = Header; | |
| 556 | -var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react")); | |
| 557 | -var _extends2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/extends */ "../node_modules/@babel/runtime/helpers/extends.js")); | |
| 558 | -var _grid = _interopRequireDefault(__webpack_require__(/*! ../ui/grid/grid */ "../app/assets/js/ui/grid/grid.js")); | |
| 559 | -var _headerButtons = _interopRequireDefault(__webpack_require__(/*! ./header-buttons */ "../app/assets/js/layout/header-buttons.js")); | |
| 560 | -var _usePageTitle = _interopRequireDefault(__webpack_require__(/*! elementor-app/hooks/use-page-title */ "../app/assets/js/hooks/use-page-title.js")); | |
| 561 | -function Header(props) { | |
| 562 | - (0, _usePageTitle.default)({ | |
| 563 | - title: props.title | |
| 564 | - }); | |
| 565 | - var TitleTag = 'span', | |
| 566 | - titleAttrs = {}; | |
| 567 | - if (props.titleRedirectRoute) { | |
| 568 | - TitleTag = 'a'; | |
| 569 | - titleAttrs = { | |
| 570 | - href: "#".concat(props.titleRedirectRoute), | |
| 571 | - target: '_self' | |
| 572 | - }; | |
| 595 | +// 7.1.13 ToObject(argument) | |
| 596 | +var defined = __webpack_require__(65); | |
| 597 | +module.exports = function (it) { | |
| 598 | + return Object(defined(it)); | |
| 599 | +}; | |
| 600 | + | |
| 601 | + | |
| 602 | +/***/ }), | |
| 603 | +/* 33 */ | |
| 604 | +/***/ (function(module, exports) { | |
| 605 | + | |
| 606 | +module.exports = function (exec) { | |
| 607 | + try { | |
| 608 | + return !!exec(); | |
| 609 | + } catch (e) { | |
| 610 | + return true; | |
| 573 | 611 | } |
| 574 | - return /*#__PURE__*/_react.default.createElement(_grid.default, { | |
| 575 | - container: true, | |
| 576 | - alignItems: "center", | |
| 577 | - justify: "space-between", | |
| 578 | - className: "eps-app__header" | |
| 579 | - }, /*#__PURE__*/_react.default.createElement(TitleTag, (0, _extends2.default)({ | |
| 580 | - className: "eps-app__logo-title-wrapper" | |
| 581 | - }, titleAttrs), /*#__PURE__*/_react.default.createElement("i", { | |
| 582 | - className: "eps-app__logo eicon-elementor-circle" | |
| 583 | - }), /*#__PURE__*/_react.default.createElement("h1", { | |
| 584 | - className: "eps-app__title" | |
| 585 | - }, props.title)), /*#__PURE__*/_react.default.createElement(_headerButtons.default, { | |
| 586 | - buttons: props.buttons, | |
| 587 | - onClose: props.onClose | |
| 588 | - })); | |
| 589 | -} | |
| 590 | -Header.propTypes = { | |
| 591 | - title: PropTypes.string, | |
| 592 | - titleRedirectRoute: PropTypes.string, | |
| 593 | - buttons: PropTypes.arrayOf(PropTypes.object), | |
| 594 | - onClose: PropTypes.func | |
| 595 | 612 | }; |
| 596 | -Header.defaultProps = { | |
| 597 | - buttons: [] | |
| 613 | + | |
| 614 | + | |
| 615 | +/***/ }), | |
| 616 | +/* 34 */ | |
| 617 | +/***/ (function(module, exports, __webpack_require__) { | |
| 618 | + | |
| 619 | +var global = __webpack_require__(17); | |
| 620 | +var core = __webpack_require__(54); | |
| 621 | +var hide = __webpack_require__(29); | |
| 622 | +var redefine = __webpack_require__(37); | |
| 623 | +var ctx = __webpack_require__(73); | |
| 624 | +var PROTOTYPE = 'prototype'; | |
| 625 | + | |
| 626 | +var $export = function (type, name, source) { | |
| 627 | + var IS_FORCED = type & $export.F; | |
| 628 | + var IS_GLOBAL = type & $export.G; | |
| 629 | + var IS_STATIC = type & $export.S; | |
| 630 | + var IS_PROTO = type & $export.P; | |
| 631 | + var IS_BIND = type & $export.B; | |
| 632 | + var target = IS_GLOBAL ? global : IS_STATIC ? global[name] || (global[name] = {}) : (global[name] || {})[PROTOTYPE]; | |
| 633 | + var exports = IS_GLOBAL ? core : core[name] || (core[name] = {}); | |
| 634 | + var expProto = exports[PROTOTYPE] || (exports[PROTOTYPE] = {}); | |
| 635 | + var key, own, out, exp; | |
| 636 | + if (IS_GLOBAL) source = name; | |
| 637 | + for (key in source) { | |
| 638 | + // contains in native | |
| 639 | + own = !IS_FORCED && target && target[key] !== undefined; | |
| 640 | + // export native or passed | |
| 641 | + out = (own ? target : source)[key]; | |
| 642 | + // bind timers to global for call from export context | |
| 643 | + exp = IS_BIND && own ? ctx(out, global) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out; | |
| 644 | + // extend global | |
| 645 | + if (target) redefine(target, key, out, type & $export.U); | |
| 646 | + // export | |
| 647 | + if (exports[key] != out) hide(exports, key, exp); | |
| 648 | + if (IS_PROTO && expProto[key] != out) expProto[key] = out; | |
| 649 | + } | |
| 598 | 650 | }; |
| 651 | +global.core = core; | |
| 652 | +// type bitmap | |
| 653 | +$export.F = 1; // forced | |
| 654 | +$export.G = 2; // global | |
| 655 | +$export.S = 4; // static | |
| 656 | +$export.P = 8; // proto | |
| 657 | +$export.B = 16; // bind | |
| 658 | +$export.W = 32; // wrap | |
| 659 | +$export.U = 64; // safe | |
| 660 | +$export.R = 128; // real proto method for `library` | |
| 661 | +module.exports = $export; | |
| 599 | 662 | |
| 663 | + | |
| 600 | 664 | /***/ }), |
| 665 | +/* 35 */ | |
| 666 | +/***/ (function(module, exports) { | |
| 601 | 667 | |
| 602 | -/***/ "../app/assets/js/layout/page.js": | |
| 603 | -/*!***************************************!*\ | |
| 604 | - !*** ../app/assets/js/layout/page.js ***! | |
| 605 | - \***************************************/ | |
| 606 | -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 668 | +module.exports = {}; | |
| 607 | 669 | |
| 608 | -"use strict"; | |
| 609 | -/* provided dependency */ var PropTypes = __webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js"); | |
| 610 | 670 | |
| 671 | +/***/ }), | |
| 672 | +/* 36 */ | |
| 673 | +/***/ (function(module, exports, __webpack_require__) { | |
| 611 | 674 | |
| 612 | -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 613 | -Object.defineProperty(exports, "__esModule", ({ | |
| 614 | - value: true | |
| 615 | -})); | |
| 616 | -exports["default"] = Page; | |
| 617 | -var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react")); | |
| 618 | -var _header = _interopRequireDefault(__webpack_require__(/*! ./header */ "../app/assets/js/layout/header.js")); | |
| 619 | -var _sidebar = _interopRequireDefault(__webpack_require__(/*! ./sidebar */ "../app/assets/js/layout/sidebar.js")); | |
| 620 | -var _content = _interopRequireDefault(__webpack_require__(/*! ./content */ "../app/assets/js/layout/content.js")); | |
| 621 | -var _footer = _interopRequireDefault(__webpack_require__(/*! ./footer */ "../app/assets/js/layout/footer.js")); | |
| 622 | -function Page(props) { | |
| 623 | - var AppSidebar = function AppSidebar() { | |
| 624 | - if (!props.sidebar) { | |
| 625 | - return; | |
| 675 | +var _Object$getOwnPropertyDescriptor = __webpack_require__(124); | |
| 676 | + | |
| 677 | +var _Object$defineProperty = __webpack_require__(1); | |
| 678 | + | |
| 679 | +var _typeof = __webpack_require__(48); | |
| 680 | + | |
| 681 | +var _WeakMap = __webpack_require__(263); | |
| 682 | + | |
| 683 | +function _getRequireWildcardCache() { | |
| 684 | + if (typeof _WeakMap !== "function") return null; | |
| 685 | + var cache = new _WeakMap(); | |
| 686 | + | |
| 687 | + _getRequireWildcardCache = function _getRequireWildcardCache() { | |
| 688 | + return cache; | |
| 689 | + }; | |
| 690 | + | |
| 691 | + return cache; | |
| 692 | +} | |
| 693 | + | |
| 694 | +function _interopRequireWildcard(obj) { | |
| 695 | + if (obj && obj.__esModule) { | |
| 696 | + return obj; | |
| 697 | + } | |
| 698 | + | |
| 699 | + if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { | |
| 700 | + return { | |
| 701 | + "default": obj | |
| 702 | + }; | |
| 703 | + } | |
| 704 | + | |
| 705 | + var cache = _getRequireWildcardCache(); | |
| 706 | + | |
| 707 | + if (cache && cache.has(obj)) { | |
| 708 | + return cache.get(obj); | |
| 709 | + } | |
| 710 | + | |
| 711 | + var newObj = {}; | |
| 712 | + var hasPropertyDescriptor = _Object$defineProperty && _Object$getOwnPropertyDescriptor; | |
| 713 | + | |
| 714 | + for (var key in obj) { | |
| 715 | + if (Object.prototype.hasOwnProperty.call(obj, key)) { | |
| 716 | + var desc = hasPropertyDescriptor ? _Object$getOwnPropertyDescriptor(obj, key) : null; | |
| 717 | + | |
| 718 | + if (desc && (desc.get || desc.set)) { | |
| 719 | + _Object$defineProperty(newObj, key, desc); | |
| 720 | + } else { | |
| 721 | + newObj[key] = obj[key]; | |
| 626 | 722 | } |
| 627 | - return /*#__PURE__*/_react.default.createElement(_sidebar.default, null, props.sidebar); | |
| 628 | - }, | |
| 629 | - AppFooter = function AppFooter() { | |
| 630 | - if (!props.footer) { | |
| 631 | - return; | |
| 632 | - } | |
| 633 | - return /*#__PURE__*/_react.default.createElement(_footer.default, null, props.footer); | |
| 634 | - }; | |
| 635 | - return /*#__PURE__*/_react.default.createElement("div", { | |
| 636 | - className: "eps-app__lightbox ".concat(props.className) | |
| 637 | - }, /*#__PURE__*/_react.default.createElement("div", { | |
| 638 | - className: "eps-app" | |
| 639 | - }, /*#__PURE__*/_react.default.createElement(_header.default, { | |
| 640 | - title: props.title, | |
| 641 | - buttons: props.headerButtons, | |
| 642 | - titleRedirectRoute: props.titleRedirectRoute, | |
| 643 | - onClose: props.onClose | |
| 644 | - }), /*#__PURE__*/_react.default.createElement("div", { | |
| 645 | - className: "eps-app__main" | |
| 646 | - }, AppSidebar(), /*#__PURE__*/_react.default.createElement(_content.default, null, props.content)), AppFooter())); | |
| 723 | + } | |
| 724 | + } | |
| 725 | + | |
| 726 | + newObj["default"] = obj; | |
| 727 | + | |
| 728 | + if (cache) { | |
| 729 | + cache.set(obj, newObj); | |
| 730 | + } | |
| 731 | + | |
| 732 | + return newObj; | |
| 647 | 733 | } |
| 648 | -Page.propTypes = { | |
| 649 | - title: PropTypes.string, | |
| 650 | - titleRedirectRoute: PropTypes.string, | |
| 651 | - className: PropTypes.string, | |
| 652 | - headerButtons: PropTypes.arrayOf(PropTypes.object), | |
| 653 | - sidebar: PropTypes.object, | |
| 654 | - content: PropTypes.object.isRequired, | |
| 655 | - footer: PropTypes.object, | |
| 656 | - onClose: PropTypes.func | |
| 734 | + | |
| 735 | +module.exports = _interopRequireWildcard; | |
| 736 | + | |
| 737 | +/***/ }), | |
| 738 | +/* 37 */ | |
| 739 | +/***/ (function(module, exports, __webpack_require__) { | |
| 740 | + | |
| 741 | +var global = __webpack_require__(17); | |
| 742 | +var hide = __webpack_require__(29); | |
| 743 | +var has = __webpack_require__(61); | |
| 744 | +var SRC = __webpack_require__(68)('src'); | |
| 745 | +var $toString = __webpack_require__(145); | |
| 746 | +var TO_STRING = 'toString'; | |
| 747 | +var TPL = ('' + $toString).split(TO_STRING); | |
| 748 | + | |
| 749 | +__webpack_require__(54).inspectSource = function (it) { | |
| 750 | + return $toString.call(it); | |
| 657 | 751 | }; |
| 658 | -Page.defaultProps = { | |
| 659 | - className: '' | |
| 752 | + | |
| 753 | +(module.exports = function (O, key, val, safe) { | |
| 754 | + var isFunction = typeof val == 'function'; | |
| 755 | + if (isFunction) has(val, 'name') || hide(val, 'name', key); | |
| 756 | + if (O[key] === val) return; | |
| 757 | + if (isFunction) has(val, SRC) || hide(val, SRC, O[key] ? '' + O[key] : TPL.join(String(key))); | |
| 758 | + if (O === global) { | |
| 759 | + O[key] = val; | |
| 760 | + } else if (!safe) { | |
| 761 | + delete O[key]; | |
| 762 | + hide(O, key, val); | |
| 763 | + } else if (O[key]) { | |
| 764 | + O[key] = val; | |
| 765 | + } else { | |
| 766 | + hide(O, key, val); | |
| 767 | + } | |
| 768 | +// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative | |
| 769 | +})(Function.prototype, TO_STRING, function toString() { | |
| 770 | + return typeof this == 'function' && this[SRC] || $toString.call(this); | |
| 771 | +}); | |
| 772 | + | |
| 773 | + | |
| 774 | +/***/ }), | |
| 775 | +/* 38 */ | |
| 776 | +/***/ (function(module, exports) { | |
| 777 | + | |
| 778 | +module.exports = function (it) { | |
| 779 | + if (typeof it != 'function') throw TypeError(it + ' is not a function!'); | |
| 780 | + return it; | |
| 660 | 781 | }; |
| 661 | 782 | |
| 783 | + | |
| 662 | 784 | /***/ }), |
| 785 | +/* 39 */, | |
| 786 | +/* 40 */ | |
| 787 | +/***/ (function(module, exports, __webpack_require__) { | |
| 663 | 788 | |
| 664 | -/***/ "../app/assets/js/layout/sidebar.js": | |
| 665 | -/*!******************************************!*\ | |
| 666 | - !*** ../app/assets/js/layout/sidebar.js ***! | |
| 667 | - \******************************************/ | |
| 668 | -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 789 | +// 19.1.2.14 / 15.2.3.14 Object.keys(O) | |
| 790 | +var $keys = __webpack_require__(116); | |
| 791 | +var enumBugKeys = __webpack_require__(78); | |
| 669 | 792 | |
| 670 | -"use strict"; | |
| 671 | -/* provided dependency */ var PropTypes = __webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js"); | |
| 793 | +module.exports = Object.keys || function keys(O) { | |
| 794 | + return $keys(O, enumBugKeys); | |
| 795 | +}; | |
| 672 | 796 | |
| 673 | 797 | |
| 674 | -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 675 | -Object.defineProperty(exports, "__esModule", ({ | |
| 676 | - value: true | |
| 677 | -})); | |
| 678 | -exports["default"] = Sidebar; | |
| 679 | -var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react")); | |
| 680 | -function Sidebar(props) { | |
| 681 | - return /*#__PURE__*/_react.default.createElement("div", { | |
| 682 | - className: "eps-app__sidebar" | |
| 683 | - }, props.children); | |
| 798 | +/***/ }), | |
| 799 | +/* 41 */ | |
| 800 | +/***/ (function(module, exports, __webpack_require__) { | |
| 801 | + | |
| 802 | +/** | |
| 803 | + * Copyright (c) 2013-present, Facebook, Inc. | |
| 804 | + * | |
| 805 | + * This source code is licensed under the MIT license found in the | |
| 806 | + * LICENSE file in the root directory of this source tree. | |
| 807 | + */ | |
| 808 | + | |
| 809 | +if (false) { var throwOnDirectAccess, ReactIs; } else { | |
| 810 | + // By explicitly using `prop-types` you are opting into new production behavior. | |
| 811 | + // http://fb.me/prop-types-in-prod | |
| 812 | + module.exports = __webpack_require__(325)(); | |
| 684 | 813 | } |
| 685 | -Sidebar.propTypes = { | |
| 686 | - children: PropTypes.object | |
| 814 | + | |
| 815 | + | |
| 816 | +/***/ }), | |
| 817 | +/* 42 */ | |
| 818 | +/***/ (function(module, exports) { | |
| 819 | + | |
| 820 | +// 7.2.1 RequireObjectCoercible(argument) | |
| 821 | +module.exports = function (it) { | |
| 822 | + if (it == undefined) throw TypeError("Can't call method on " + it); | |
| 823 | + return it; | |
| 687 | 824 | }; |
| 688 | 825 | |
| 826 | + | |
| 689 | 827 | /***/ }), |
| 828 | +/* 43 */ | |
| 829 | +/***/ (function(module, exports, __webpack_require__) { | |
| 690 | 830 | |
| 691 | -/***/ "../app/assets/js/molecules/collapse-content.js": | |
| 692 | -/*!******************************************************!*\ | |
| 693 | - !*** ../app/assets/js/molecules/collapse-content.js ***! | |
| 694 | - \******************************************************/ | |
| 695 | -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 831 | +// 7.1.15 ToLength | |
| 832 | +var toInteger = __webpack_require__(57); | |
| 833 | +var min = Math.min; | |
| 834 | +module.exports = function (it) { | |
| 835 | + return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991 | |
| 836 | +}; | |
| 696 | 837 | |
| 697 | -"use strict"; | |
| 698 | -/* provided dependency */ var PropTypes = __webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js"); | |
| 699 | 838 | |
| 839 | +/***/ }), | |
| 840 | +/* 44 */ | |
| 841 | +/***/ (function(module, exports) { | |
| 700 | 842 | |
| 701 | -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 702 | -Object.defineProperty(exports, "__esModule", ({ | |
| 703 | - value: true | |
| 704 | -})); | |
| 705 | -exports["default"] = CollapseContent; | |
| 706 | -var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react")); | |
| 707 | -function CollapseContent(props) { | |
| 708 | - return /*#__PURE__*/_react.default.createElement("div", { | |
| 709 | - className: "e-app-collapse-content" | |
| 710 | - }, props.children); | |
| 711 | -} | |
| 712 | -CollapseContent.propTypes = { | |
| 713 | - className: PropTypes.string, | |
| 714 | - children: PropTypes.any | |
| 843 | +module.exports = function (bitmap, value) { | |
| 844 | + return { | |
| 845 | + enumerable: !(bitmap & 1), | |
| 846 | + configurable: !(bitmap & 2), | |
| 847 | + writable: !(bitmap & 4), | |
| 848 | + value: value | |
| 849 | + }; | |
| 715 | 850 | }; |
| 716 | -CollapseContent.defaultProps = { | |
| 717 | - className: '' | |
| 851 | + | |
| 852 | + | |
| 853 | +/***/ }), | |
| 854 | +/* 45 */ | |
| 855 | +/***/ (function(module, exports, __webpack_require__) { | |
| 856 | + | |
| 857 | +var anObject = __webpack_require__(18); | |
| 858 | +var IE8_DOM_DEFINE = __webpack_require__(129); | |
| 859 | +var toPrimitive = __webpack_require__(123); | |
| 860 | +var dP = Object.defineProperty; | |
| 861 | + | |
| 862 | +exports.f = __webpack_require__(27) ? Object.defineProperty : function defineProperty(O, P, Attributes) { | |
| 863 | + anObject(O); | |
| 864 | + P = toPrimitive(P, true); | |
| 865 | + anObject(Attributes); | |
| 866 | + if (IE8_DOM_DEFINE) try { | |
| 867 | + return dP(O, P, Attributes); | |
| 868 | + } catch (e) { /* empty */ } | |
| 869 | + if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!'); | |
| 870 | + if ('value' in Attributes) O[P] = Attributes.value; | |
| 871 | + return O; | |
| 718 | 872 | }; |
| 719 | 873 | |
| 874 | + | |
| 720 | 875 | /***/ }), |
| 876 | +/* 46 */ | |
| 877 | +/***/ (function(module, exports) { | |
| 721 | 878 | |
| 722 | -/***/ "../app/assets/js/molecules/collapse-context.js": | |
| 723 | -/*!******************************************************!*\ | |
| 724 | - !*** ../app/assets/js/molecules/collapse-context.js ***! | |
| 725 | - \******************************************************/ | |
| 726 | -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 879 | +var toString = {}.toString; | |
| 727 | 880 | |
| 728 | -"use strict"; | |
| 881 | +module.exports = function (it) { | |
| 882 | + return toString.call(it).slice(8, -1); | |
| 883 | +}; | |
| 729 | 884 | |
| 730 | 885 | |
| 731 | -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 732 | -Object.defineProperty(exports, "__esModule", ({ | |
| 733 | - value: true | |
| 734 | -})); | |
| 735 | -exports.CollapseContext = void 0; | |
| 736 | -var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react")); | |
| 737 | -var CollapseContext = exports.CollapseContext = _react.default.createContext(); | |
| 886 | +/***/ }), | |
| 887 | +/* 47 */ | |
| 888 | +/***/ (function(module, exports) { | |
| 738 | 889 | |
| 890 | +module.exports = true; | |
| 891 | + | |
| 892 | + | |
| 739 | 893 | /***/ }), |
| 894 | +/* 48 */ | |
| 895 | +/***/ (function(module, exports, __webpack_require__) { | |
| 740 | 896 | |
| 741 | -/***/ "../app/assets/js/molecules/collapse-toggle.js": | |
| 742 | -/*!*****************************************************!*\ | |
| 743 | - !*** ../app/assets/js/molecules/collapse-toggle.js ***! | |
| 744 | - \*****************************************************/ | |
| 745 | -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 897 | +var _Symbol$iterator = __webpack_require__(151); | |
| 746 | 898 | |
| 747 | -"use strict"; | |
| 748 | -/* provided dependency */ var PropTypes = __webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js"); | |
| 899 | +var _Symbol = __webpack_require__(111); | |
| 749 | 900 | |
| 901 | +function _typeof(obj) { | |
| 902 | + "@babel/helpers - typeof"; | |
| 750 | 903 | |
| 751 | -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 752 | -var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ "../node_modules/@babel/runtime/helpers/typeof.js"); | |
| 753 | -Object.defineProperty(exports, "__esModule", ({ | |
| 754 | - value: true | |
| 755 | -})); | |
| 756 | -exports["default"] = CollapseToggle; | |
| 757 | -var _react = _interopRequireWildcard(__webpack_require__(/*! react */ "react")); | |
| 758 | -var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "../node_modules/@babel/runtime/helpers/defineProperty.js")); | |
| 759 | -var _utils = __webpack_require__(/*! elementor-app/utils/utils.js */ "../app/assets/js/utils/utils.js"); | |
| 760 | -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); } | |
| 762 | -function CollapseToggle(props) { | |
| 763 | - var context = (0, _react.useContext)(_collapseContext.CollapseContext), | |
| 764 | - style = { | |
| 765 | - '--e-app-collapse-toggle-icon-spacing': (0, _utils.pxToRem)(props.iconSpacing) | |
| 766 | - }, | |
| 767 | - classNameBase = 'e-app-collapse-toggle', | |
| 768 | - classes = [classNameBase, (0, _defineProperty2.default)({}, classNameBase + '--active', props.active)], | |
| 769 | - attrs = { | |
| 770 | - style: style, | |
| 771 | - className: (0, _utils.arrayToClassName)(classes) | |
| 904 | + if (typeof _Symbol === "function" && typeof _Symbol$iterator === "symbol") { | |
| 905 | + module.exports = _typeof = function _typeof(obj) { | |
| 906 | + return typeof obj; | |
| 772 | 907 | }; |
| 773 | - if (props.active) { | |
| 774 | - attrs.onClick = function () { | |
| 775 | - return context.toggle(); | |
| 908 | + } else { | |
| 909 | + module.exports = _typeof = function _typeof(obj) { | |
| 910 | + return obj && typeof _Symbol === "function" && obj.constructor === _Symbol && obj !== _Symbol.prototype ? "symbol" : typeof obj; | |
| 776 | 911 | }; |
| 777 | 912 | } |
| 778 | - return /*#__PURE__*/_react.default.createElement("div", attrs, props.children, props.active && props.showIcon && /*#__PURE__*/_react.default.createElement("i", { | |
| 779 | - className: "eicon-caret-down e-app-collapse-toggle__icon" | |
| 780 | - })); | |
| 913 | + | |
| 914 | + return _typeof(obj); | |
| 781 | 915 | } |
| 782 | -CollapseToggle.propTypes = { | |
| 783 | - className: PropTypes.string, | |
| 784 | - iconSpacing: PropTypes.number, | |
| 785 | - showIcon: PropTypes.bool, | |
| 786 | - active: PropTypes.bool, | |
| 787 | - children: PropTypes.any | |
| 788 | -}; | |
| 789 | -CollapseToggle.defaultProps = { | |
| 790 | - className: '', | |
| 791 | - iconSpacing: 20, | |
| 792 | - showIcon: true, | |
| 793 | - active: true | |
| 794 | -}; | |
| 795 | 916 | |
| 917 | +module.exports = _typeof; | |
| 918 | + | |
| 796 | 919 | /***/ }), |
| 920 | +/* 49 */ | |
| 921 | +/***/ (function(module, exports) { | |
| 797 | 922 | |
| 798 | -/***/ "../app/assets/js/molecules/collapse.js": | |
| 799 | -/*!**********************************************!*\ | |
| 800 | - !*** ../app/assets/js/molecules/collapse.js ***! | |
| 801 | - \**********************************************/ | |
| 802 | -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 923 | +function _assertThisInitialized(self) { | |
| 924 | + if (self === void 0) { | |
| 925 | + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); | |
| 926 | + } | |
| 803 | 927 | |
| 804 | -"use strict"; | |
| 805 | -/* provided dependency */ var PropTypes = __webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js"); | |
| 928 | + return self; | |
| 929 | +} | |
| 806 | 930 | |
| 931 | +module.exports = _assertThisInitialized; | |
| 807 | 932 | |
| 808 | -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 809 | -var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ "../node_modules/@babel/runtime/helpers/typeof.js"); | |
| 810 | -Object.defineProperty(exports, "__esModule", ({ | |
| 811 | - value: true | |
| 812 | -})); | |
| 813 | -exports["default"] = Collapse; | |
| 814 | -var _react = _interopRequireWildcard(__webpack_require__(/*! react */ "react")); | |
| 815 | -var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "../node_modules/@babel/runtime/helpers/defineProperty.js")); | |
| 816 | -var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ "../node_modules/@babel/runtime/helpers/slicedToArray.js")); | |
| 817 | -var _utils = __webpack_require__(/*! elementor-app/utils/utils.js */ "../app/assets/js/utils/utils.js"); | |
| 818 | -var _collapseContext = __webpack_require__(/*! ./collapse-context */ "../app/assets/js/molecules/collapse-context.js"); | |
| 819 | -var _collapseToggle = _interopRequireDefault(__webpack_require__(/*! ./collapse-toggle */ "../app/assets/js/molecules/collapse-toggle.js")); | |
| 820 | -var _collapseContent = _interopRequireDefault(__webpack_require__(/*! ./collapse-content */ "../app/assets/js/molecules/collapse-content.js")); | |
| 821 | -__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); } | |
| 823 | -function Collapse(props) { | |
| 824 | - var _useState = (0, _react.useState)(props.isOpened), | |
| 825 | - _useState2 = (0, _slicedToArray2.default)(_useState, 2), | |
| 826 | - isOpened = _useState2[0], | |
| 827 | - setIsOpened = _useState2[1], | |
| 828 | - classNameBase = 'e-app-collapse', | |
| 829 | - classes = [classNameBase, props.className, (0, _defineProperty2.default)({}, classNameBase + '--opened', isOpened)], | |
| 830 | - toggle = function toggle() { | |
| 831 | - return setIsOpened(function (prevState) { | |
| 832 | - return !prevState; | |
| 833 | - }); | |
| 834 | - }; | |
| 835 | - (0, _react.useEffect)(function () { | |
| 836 | - if (props.isOpened !== isOpened) { | |
| 837 | - setIsOpened(props.isOpened); | |
| 838 | - } | |
| 839 | - // eslint-disable-next-line react-hooks/exhaustive-deps | |
| 840 | - }, [props.isOpened]); | |
| 841 | - (0, _react.useEffect)(function () { | |
| 842 | - if (props.onChange) { | |
| 843 | - props.onChange(isOpened); | |
| 844 | - } | |
| 845 | - // eslint-disable-next-line react-hooks/exhaustive-deps | |
| 846 | - }, [isOpened]); | |
| 847 | - return /*#__PURE__*/_react.default.createElement(_collapseContext.CollapseContext.Provider, { | |
| 848 | - value: { | |
| 849 | - toggle: toggle | |
| 850 | - } | |
| 851 | - }, /*#__PURE__*/_react.default.createElement("div", { | |
| 852 | - className: (0, _utils.arrayToClassName)(classes) | |
| 853 | - }, props.children)); | |
| 854 | -} | |
| 855 | -Collapse.propTypes = { | |
| 856 | - className: PropTypes.string, | |
| 857 | - isOpened: PropTypes.bool, | |
| 858 | - onChange: PropTypes.func, | |
| 859 | - children: PropTypes.oneOfType([PropTypes.node, PropTypes.arrayOf(PropTypes.node)]) | |
| 933 | +/***/ }), | |
| 934 | +/* 50 */ | |
| 935 | +/***/ (function(module, exports) { | |
| 936 | + | |
| 937 | +exports.f = {}.propertyIsEnumerable; | |
| 938 | + | |
| 939 | + | |
| 940 | +/***/ }), | |
| 941 | +/* 51 */ | |
| 942 | +/***/ (function(module, exports, __webpack_require__) { | |
| 943 | + | |
| 944 | +var pIE = __webpack_require__(50); | |
| 945 | +var createDesc = __webpack_require__(44); | |
| 946 | +var toIObject = __webpack_require__(20); | |
| 947 | +var toPrimitive = __webpack_require__(74); | |
| 948 | +var has = __webpack_require__(19); | |
| 949 | +var IE8_DOM_DEFINE = __webpack_require__(114); | |
| 950 | +var gOPD = Object.getOwnPropertyDescriptor; | |
| 951 | + | |
| 952 | +exports.f = __webpack_require__(14) ? gOPD : function getOwnPropertyDescriptor(O, P) { | |
| 953 | + O = toIObject(O); | |
| 954 | + P = toPrimitive(P, true); | |
| 955 | + if (IE8_DOM_DEFINE) try { | |
| 956 | + return gOPD(O, P); | |
| 957 | + } catch (e) { /* empty */ } | |
| 958 | + if (has(O, P)) return createDesc(!pIE.f.call(O, P), O[P]); | |
| 860 | 959 | }; |
| 861 | -Collapse.defaultProps = { | |
| 862 | - className: '', | |
| 863 | - isOpened: false | |
| 960 | + | |
| 961 | + | |
| 962 | +/***/ }), | |
| 963 | +/* 52 */ | |
| 964 | +/***/ (function(module, exports, __webpack_require__) { | |
| 965 | + | |
| 966 | +// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties]) | |
| 967 | +var anObject = __webpack_require__(13); | |
| 968 | +var dPs = __webpack_require__(136); | |
| 969 | +var enumBugKeys = __webpack_require__(78); | |
| 970 | +var IE_PROTO = __webpack_require__(75)('IE_PROTO'); | |
| 971 | +var Empty = function () { /* empty */ }; | |
| 972 | +var PROTOTYPE = 'prototype'; | |
| 973 | + | |
| 974 | +// Create object with fake `null` prototype: use iframe Object with cleared prototype | |
| 975 | +var createDict = function () { | |
| 976 | + // Thrash, waste and sodomy: IE GC bug | |
| 977 | + var iframe = __webpack_require__(92)('iframe'); | |
| 978 | + var i = enumBugKeys.length; | |
| 979 | + var lt = '<'; | |
| 980 | + var gt = '>'; | |
| 981 | + var iframeDocument; | |
| 982 | + iframe.style.display = 'none'; | |
| 983 | + __webpack_require__(131).appendChild(iframe); | |
| 984 | + iframe.src = 'javascript:'; // eslint-disable-line no-script-url | |
| 985 | + // createDict = iframe.contentWindow.Object; | |
| 986 | + // html.removeChild(iframe); | |
| 987 | + iframeDocument = iframe.contentWindow.document; | |
| 988 | + iframeDocument.open(); | |
| 989 | + iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt); | |
| 990 | + iframeDocument.close(); | |
| 991 | + createDict = iframeDocument.F; | |
| 992 | + while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]]; | |
| 993 | + return createDict(); | |
| 864 | 994 | }; |
| 865 | -Collapse.Toggle = _collapseToggle.default; | |
| 866 | -Collapse.Content = _collapseContent.default; | |
| 867 | 995 | |
| 996 | +module.exports = Object.create || function create(O, Properties) { | |
| 997 | + var result; | |
| 998 | + if (O !== null) { | |
| 999 | + Empty[PROTOTYPE] = anObject(O); | |
| 1000 | + result = new Empty(); | |
| 1001 | + Empty[PROTOTYPE] = null; | |
| 1002 | + // add "__proto__" for Object.getPrototypeOf polyfill | |
| 1003 | + result[IE_PROTO] = O; | |
| 1004 | + } else result = createDict(); | |
| 1005 | + return Properties === undefined ? result : dPs(result, Properties); | |
| 1006 | +}; | |
| 1007 | + | |
| 1008 | + | |
| 868 | 1009 | /***/ }), |
| 1010 | +/* 53 */ | |
| 1011 | +/***/ (function(module, exports, __webpack_require__) { | |
| 869 | 1012 | |
| 870 | -/***/ "../app/assets/js/molecules/collapse.scss": | |
| 871 | -/*!************************************************!*\ | |
| 872 | - !*** ../app/assets/js/molecules/collapse.scss ***! | |
| 873 | - \************************************************/ | |
| 874 | -/***/ (() => { | |
| 1013 | +var def = __webpack_require__(15).f; | |
| 1014 | +var has = __webpack_require__(19); | |
| 1015 | +var TAG = __webpack_require__(10)('toStringTag'); | |
| 875 | 1016 | |
| 1017 | +module.exports = function (it, tag, stat) { | |
| 1018 | + if (it && !has(it = stat ? it : it.prototype, TAG)) def(it, TAG, { configurable: true, value: tag }); | |
| 1019 | +}; | |
| 876 | 1020 | |
| 877 | 1021 | |
| 878 | 1022 | /***/ }), |
| 1023 | +/* 54 */ | |
| 1024 | +/***/ (function(module, exports) { | |
| 879 | 1025 | |
| 880 | -/***/ "../app/assets/js/molecules/go-pro-button.js": | |
| 881 | -/*!***************************************************!*\ | |
| 882 | - !*** ../app/assets/js/molecules/go-pro-button.js ***! | |
| 883 | - \***************************************************/ | |
| 884 | -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 1026 | +var core = module.exports = { version: '2.6.11' }; | |
| 1027 | +if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef | |
| 885 | 1028 | |
| 886 | -"use strict"; | |
| 887 | -/* provided dependency */ var PropTypes = __webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js"); | |
| 888 | -/* provided dependency */ var __ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n")["__"]; | |
| 889 | 1029 | |
| 1030 | +/***/ }), | |
| 1031 | +/* 55 */, | |
| 1032 | +/* 56 */ | |
| 1033 | +/***/ (function(module, exports) { | |
| 890 | 1034 | |
| 891 | -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 892 | -Object.defineProperty(exports, "__esModule", ({ | |
| 893 | - value: true | |
| 894 | -})); | |
| 895 | -exports["default"] = GoProButton; | |
| 896 | -var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react")); | |
| 897 | -var _extends2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/extends */ "../node_modules/@babel/runtime/helpers/extends.js")); | |
| 898 | -var _button = _interopRequireDefault(__webpack_require__(/*! elementor-app/ui/molecules/button */ "../app/assets/js/ui/molecules/button.js")); | |
| 899 | -var _utils = __webpack_require__(/*! elementor-app/utils/utils.js */ "../app/assets/js/utils/utils.js"); | |
| 900 | -function GoProButton(props) { | |
| 901 | - var baseClassName = 'e-app-go-pro-button', | |
| 902 | - classes = [baseClassName, props.className]; | |
| 903 | - return /*#__PURE__*/_react.default.createElement(_button.default, (0, _extends2.default)({}, props, { | |
| 904 | - className: (0, _utils.arrayToClassName)(classes), | |
| 905 | - text: props.text | |
| 906 | - })); | |
| 907 | -} | |
| 908 | -GoProButton.propTypes = { | |
| 909 | - className: PropTypes.string, | |
| 910 | - text: PropTypes.string | |
| 1035 | +var toString = {}.toString; | |
| 1036 | + | |
| 1037 | +module.exports = function (it) { | |
| 1038 | + return toString.call(it).slice(8, -1); | |
| 911 | 1039 | }; |
| 912 | -GoProButton.defaultProps = { | |
| 913 | - className: '', | |
| 914 | - variant: 'outlined', | |
| 915 | - size: 'sm', | |
| 916 | - color: 'cta', | |
| 917 | - target: '_blank', | |
| 918 | - rel: 'noopener noreferrer', | |
| 919 | - text: __('Upgrade Now', 'elementor') | |
| 1040 | + | |
| 1041 | + | |
| 1042 | +/***/ }), | |
| 1043 | +/* 57 */ | |
| 1044 | +/***/ (function(module, exports) { | |
| 1045 | + | |
| 1046 | +// 7.1.4 ToInteger | |
| 1047 | +var ceil = Math.ceil; | |
| 1048 | +var floor = Math.floor; | |
| 1049 | +module.exports = function (it) { | |
| 1050 | + return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it); | |
| 920 | 1051 | }; |
| 921 | 1052 | |
| 1053 | + | |
| 922 | 1054 | /***/ }), |
| 1055 | +/* 58 */ | |
| 1056 | +/***/ (function(module, exports, __webpack_require__) { | |
| 923 | 1057 | |
| 924 | -/***/ "../app/assets/js/molecules/upload-file.js": | |
| 925 | -/*!*************************************************!*\ | |
| 926 | - !*** ../app/assets/js/molecules/upload-file.js ***! | |
| 927 | - \*************************************************/ | |
| 928 | -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 1058 | +"use strict"; | |
| 929 | 1059 | |
| 930 | -"use strict"; | |
| 931 | -/* provided dependency */ var __ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n")["__"]; | |
| 932 | -/* provided dependency */ var PropTypes = __webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js"); | |
| 933 | 1060 | |
| 1061 | +var anObject = __webpack_require__(18); | |
| 1062 | +var toObject = __webpack_require__(96); | |
| 1063 | +var toLength = __webpack_require__(43); | |
| 1064 | +var toInteger = __webpack_require__(57); | |
| 1065 | +var advanceStringIndex = __webpack_require__(105); | |
| 1066 | +var regExpExec = __webpack_require__(94); | |
| 1067 | +var max = Math.max; | |
| 1068 | +var min = Math.min; | |
| 1069 | +var floor = Math.floor; | |
| 1070 | +var SUBSTITUTION_SYMBOLS = /\$([$&`']|\d\d?|<[^>]*>)/g; | |
| 1071 | +var SUBSTITUTION_SYMBOLS_NO_NAMED = /\$([$&`']|\d\d?)/g; | |
| 934 | 1072 | |
| 935 | -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 936 | -var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ "../node_modules/@babel/runtime/helpers/typeof.js"); | |
| 937 | -Object.defineProperty(exports, "__esModule", ({ | |
| 938 | - value: true | |
| 939 | -})); | |
| 940 | -exports["default"] = UploadFile; | |
| 941 | -var _react = _interopRequireWildcard(__webpack_require__(/*! react */ "react")); | |
| 942 | -var _button = _interopRequireDefault(__webpack_require__(/*! elementor-app/ui/molecules/button */ "../app/assets/js/ui/molecules/button.js")); | |
| 943 | -var _utils = __webpack_require__(/*! elementor-app/utils/utils.js */ "../app/assets/js/utils/utils.js"); | |
| 944 | -__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); } | |
| 946 | -function UploadFile(props) { | |
| 947 | - var fileInput = (0, _react.useRef)(null), | |
| 948 | - baseClassName = 'e-app-upload-file', | |
| 949 | - classes = [baseClassName, props.className]; | |
| 1073 | +var maybeToString = function (it) { | |
| 1074 | + return it === undefined ? it : String(it); | |
| 1075 | +}; | |
| 950 | 1076 | |
| 951 | - // For 'wp-media' type. | |
| 952 | - var frame; | |
| 953 | - return /*#__PURE__*/_react.default.createElement("div", { | |
| 954 | - className: (0, _utils.arrayToClassName)(classes) | |
| 955 | - }, /*#__PURE__*/_react.default.createElement("input", { | |
| 956 | - ref: fileInput, | |
| 957 | - type: "file", | |
| 958 | - accept: props.filetypes.map(function (type) { | |
| 959 | - return '.' + type; | |
| 960 | - }).join(', '), | |
| 961 | - className: "e-app-upload-file__input", | |
| 962 | - onChange: function onChange(event) { | |
| 963 | - var file = event.target.files[0]; | |
| 964 | - if (file && (0, _utils.isOneOf)(file.type, props.filetypes)) { | |
| 965 | - props.onFileSelect(file, event, 'browse'); | |
| 966 | - } else { | |
| 967 | - fileInput.current.value = ''; | |
| 968 | - props.onError({ | |
| 969 | - id: 'file_not_allowed', | |
| 970 | - message: __('This file type is not allowed', 'elementor') | |
| 971 | - }); | |
| 1077 | +// @@replace logic | |
| 1078 | +__webpack_require__(95)('replace', 2, function (defined, REPLACE, $replace, maybeCallNative) { | |
| 1079 | + return [ | |
| 1080 | + // `String.prototype.replace` method | |
| 1081 | + // https://tc39.github.io/ecma262/#sec-string.prototype.replace | |
| 1082 | + function replace(searchValue, replaceValue) { | |
| 1083 | + var O = defined(this); | |
| 1084 | + var fn = searchValue == undefined ? undefined : searchValue[REPLACE]; | |
| 1085 | + return fn !== undefined | |
| 1086 | + ? fn.call(searchValue, O, replaceValue) | |
| 1087 | + : $replace.call(String(O), searchValue, replaceValue); | |
| 1088 | + }, | |
| 1089 | + // `RegExp.prototype[@@replace]` method | |
| 1090 | + // https://tc39.github.io/ecma262/#sec-regexp.prototype-@@replace | |
| 1091 | + function (regexp, replaceValue) { | |
| 1092 | + var res = maybeCallNative($replace, regexp, this, replaceValue); | |
| 1093 | + if (res.done) return res.value; | |
| 1094 | + | |
| 1095 | + var rx = anObject(regexp); | |
| 1096 | + var S = String(this); | |
| 1097 | + var functionalReplace = typeof replaceValue === 'function'; | |
| 1098 | + if (!functionalReplace) replaceValue = String(replaceValue); | |
| 1099 | + var global = rx.global; | |
| 1100 | + if (global) { | |
| 1101 | + var fullUnicode = rx.unicode; | |
| 1102 | + rx.lastIndex = 0; | |
| 972 | 1103 | } |
| 973 | - } | |
| 974 | - }), /*#__PURE__*/_react.default.createElement(_button.default, { | |
| 975 | - className: "e-app-upload-file__button", | |
| 976 | - text: props.text, | |
| 977 | - variant: props.variant, | |
| 978 | - color: props.color, | |
| 979 | - size: "lg", | |
| 980 | - hideText: props.isLoading, | |
| 981 | - icon: props.isLoading ? 'eicon-loading eicon-animation-spin' : '', | |
| 982 | - onClick: function onClick() { | |
| 983 | - if (props.onFileChoose) { | |
| 984 | - props.onFileChoose(); | |
| 1104 | + var results = []; | |
| 1105 | + while (true) { | |
| 1106 | + var result = regExpExec(rx, S); | |
| 1107 | + if (result === null) break; | |
| 1108 | + results.push(result); | |
| 1109 | + if (!global) break; | |
| 1110 | + var matchStr = String(result[0]); | |
| 1111 | + if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode); | |
| 985 | 1112 | } |
| 986 | - if (!props.isLoading) { | |
| 987 | - if (props.onButtonClick) { | |
| 988 | - props.onButtonClick(); | |
| 1113 | + var accumulatedResult = ''; | |
| 1114 | + var nextSourcePosition = 0; | |
| 1115 | + for (var i = 0; i < results.length; i++) { | |
| 1116 | + result = results[i]; | |
| 1117 | + var matched = String(result[0]); | |
| 1118 | + var position = max(min(toInteger(result.index), S.length), 0); | |
| 1119 | + var captures = []; | |
| 1120 | + // NOTE: This is equivalent to | |
| 1121 | + // captures = result.slice(1).map(maybeToString) | |
| 1122 | + // but for some reason `nativeSlice.call(result, 1, result.length)` (called in | |
| 1123 | + // the slice polyfill when slicing native arrays) "doesn't work" in safari 9 and | |
| 1124 | + // causes a crash (https://pastebin.com/N21QzeQA) when trying to debug it. | |
| 1125 | + for (var j = 1; j < result.length; j++) captures.push(maybeToString(result[j])); | |
| 1126 | + var namedCaptures = result.groups; | |
| 1127 | + if (functionalReplace) { | |
| 1128 | + var replacerArgs = [matched].concat(captures, position, S); | |
| 1129 | + if (namedCaptures !== undefined) replacerArgs.push(namedCaptures); | |
| 1130 | + var replacement = String(replaceValue.apply(undefined, replacerArgs)); | |
| 1131 | + } else { | |
| 1132 | + replacement = getSubstitution(matched, S, position, captures, namedCaptures, replaceValue); | |
| 989 | 1133 | } |
| 990 | - if ('file-explorer' === props.type) { | |
| 991 | - fileInput.current.click(); | |
| 992 | - } else if ('wp-media' === props.type) { | |
| 993 | - if (frame) { | |
| 994 | - frame.open(); | |
| 995 | - return; | |
| 996 | - } | |
| 997 | - | |
| 998 | - // Initialize the WP Media frame. | |
| 999 | - frame = wp.media({ | |
| 1000 | - multiple: false, | |
| 1001 | - library: { | |
| 1002 | - type: ['image', 'image/svg+xml'] | |
| 1003 | - } | |
| 1004 | - }); | |
| 1005 | - frame.on('select', function () { | |
| 1006 | - if (props.onWpMediaSelect) { | |
| 1007 | - props.onWpMediaSelect(frame); | |
| 1008 | - } | |
| 1009 | - }); | |
| 1010 | - frame.open(); | |
| 1134 | + if (position >= nextSourcePosition) { | |
| 1135 | + accumulatedResult += S.slice(nextSourcePosition, position) + replacement; | |
| 1136 | + nextSourcePosition = position + matched.length; | |
| 1011 | 1137 | } |
| 1012 | 1138 | } |
| 1139 | + return accumulatedResult + S.slice(nextSourcePosition); | |
| 1013 | 1140 | } |
| 1014 | - })); | |
| 1141 | + ]; | |
| 1142 | + | |
| 1143 | + // https://tc39.github.io/ecma262/#sec-getsubstitution | |
| 1144 | + function getSubstitution(matched, str, position, captures, namedCaptures, replacement) { | |
| 1145 | + var tailPos = position + matched.length; | |
| 1146 | + var m = captures.length; | |
| 1147 | + var symbols = SUBSTITUTION_SYMBOLS_NO_NAMED; | |
| 1148 | + if (namedCaptures !== undefined) { | |
| 1149 | + namedCaptures = toObject(namedCaptures); | |
| 1150 | + symbols = SUBSTITUTION_SYMBOLS; | |
| 1151 | + } | |
| 1152 | + return $replace.call(replacement, symbols, function (match, ch) { | |
| 1153 | + var capture; | |
| 1154 | + switch (ch.charAt(0)) { | |
| 1155 | + case '$': return '$'; | |
| 1156 | + case '&': return matched; | |
| 1157 | + case '`': return str.slice(0, position); | |
| 1158 | + case "'": return str.slice(tailPos); | |
| 1159 | + case '<': | |
| 1160 | + capture = namedCaptures[ch.slice(1, -1)]; | |
| 1161 | + break; | |
| 1162 | + default: // \d\d? | |
| 1163 | + var n = +ch; | |
| 1164 | + if (n === 0) return match; | |
| 1165 | + if (n > m) { | |
| 1166 | + var f = floor(n / 10); | |
| 1167 | + if (f === 0) return match; | |
| 1168 | + if (f <= m) return captures[f - 1] === undefined ? ch.charAt(1) : captures[f - 1] + ch.charAt(1); | |
| 1169 | + return match; | |
| 1170 | + } | |
| 1171 | + capture = captures[n - 1]; | |
| 1172 | + } | |
| 1173 | + return capture === undefined ? '' : capture; | |
| 1174 | + }); | |
| 1175 | + } | |
| 1176 | +}); | |
| 1177 | + | |
| 1178 | + | |
| 1179 | +/***/ }), | |
| 1180 | +/* 59 */ | |
| 1181 | +/***/ (function(module, exports) { | |
| 1182 | + | |
| 1183 | +var id = 0; | |
| 1184 | +var px = Math.random(); | |
| 1185 | +module.exports = function (key) { | |
| 1186 | + return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36)); | |
| 1187 | +}; | |
| 1188 | + | |
| 1189 | + | |
| 1190 | +/***/ }), | |
| 1191 | +/* 60 */ | |
| 1192 | +/***/ (function(module, exports, __webpack_require__) { | |
| 1193 | + | |
| 1194 | +"use strict"; | |
| 1195 | + | |
| 1196 | +var $at = __webpack_require__(173)(true); | |
| 1197 | + | |
| 1198 | +// 21.1.3.27 String.prototype[@@iterator]() | |
| 1199 | +__webpack_require__(108)(String, 'String', function (iterated) { | |
| 1200 | + this._t = String(iterated); // target | |
| 1201 | + this._i = 0; // next index | |
| 1202 | +// 21.1.5.2.1 %StringIteratorPrototype%.next() | |
| 1203 | +}, function () { | |
| 1204 | + var O = this._t; | |
| 1205 | + var index = this._i; | |
| 1206 | + var point; | |
| 1207 | + if (index >= O.length) return { value: undefined, done: true }; | |
| 1208 | + point = $at(O, index); | |
| 1209 | + this._i += point.length; | |
| 1210 | + return { value: point, done: false }; | |
| 1211 | +}); | |
| 1212 | + | |
| 1213 | + | |
| 1214 | +/***/ }), | |
| 1215 | +/* 61 */ | |
| 1216 | +/***/ (function(module, exports) { | |
| 1217 | + | |
| 1218 | +var hasOwnProperty = {}.hasOwnProperty; | |
| 1219 | +module.exports = function (it, key) { | |
| 1220 | + return hasOwnProperty.call(it, key); | |
| 1221 | +}; | |
| 1222 | + | |
| 1223 | + | |
| 1224 | +/***/ }), | |
| 1225 | +/* 62 */ | |
| 1226 | +/***/ (function(module, exports, __webpack_require__) { | |
| 1227 | + | |
| 1228 | +__webpack_require__(175); | |
| 1229 | +var global = __webpack_require__(8); | |
| 1230 | +var hide = __webpack_require__(24); | |
| 1231 | +var Iterators = __webpack_require__(35); | |
| 1232 | +var TO_STRING_TAG = __webpack_require__(10)('toStringTag'); | |
| 1233 | + | |
| 1234 | +var DOMIterables = ('CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,' + | |
| 1235 | + 'DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,' + | |
| 1236 | + 'MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,' + | |
| 1237 | + 'SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,' + | |
| 1238 | + 'TextTrackList,TouchList').split(','); | |
| 1239 | + | |
| 1240 | +for (var i = 0; i < DOMIterables.length; i++) { | |
| 1241 | + var NAME = DOMIterables[i]; | |
| 1242 | + var Collection = global[NAME]; | |
| 1243 | + var proto = Collection && Collection.prototype; | |
| 1244 | + if (proto && !proto[TO_STRING_TAG]) hide(proto, TO_STRING_TAG, NAME); | |
| 1245 | + Iterators[NAME] = Iterators.Array; | |
| 1015 | 1246 | } |
| 1016 | -UploadFile.propTypes = { | |
| 1017 | - className: PropTypes.string, | |
| 1018 | - type: PropTypes.string, | |
| 1019 | - onWpMediaSelect: PropTypes.func, | |
| 1020 | - text: PropTypes.string, | |
| 1021 | - onFileSelect: PropTypes.func, | |
| 1022 | - isLoading: PropTypes.bool, | |
| 1023 | - filetypes: PropTypes.array.isRequired, | |
| 1024 | - onError: PropTypes.func, | |
| 1025 | - variant: PropTypes.string, | |
| 1026 | - color: PropTypes.string, | |
| 1027 | - onButtonClick: PropTypes.func, | |
| 1028 | - onFileChoose: PropTypes.func | |
| 1247 | + | |
| 1248 | + | |
| 1249 | +/***/ }), | |
| 1250 | +/* 63 */ | |
| 1251 | +/***/ (function(module, exports, __webpack_require__) { | |
| 1252 | + | |
| 1253 | +exports.f = __webpack_require__(10); | |
| 1254 | + | |
| 1255 | + | |
| 1256 | +/***/ }), | |
| 1257 | +/* 64 */ | |
| 1258 | +/***/ (function(module, exports, __webpack_require__) { | |
| 1259 | + | |
| 1260 | +// 19.1.2.9 / 15.2.3.2 Object.getPrototypeOf(O) | |
| 1261 | +var has = __webpack_require__(19); | |
| 1262 | +var toObject = __webpack_require__(32); | |
| 1263 | +var IE_PROTO = __webpack_require__(75)('IE_PROTO'); | |
| 1264 | +var ObjectProto = Object.prototype; | |
| 1265 | + | |
| 1266 | +module.exports = Object.getPrototypeOf || function (O) { | |
| 1267 | + O = toObject(O); | |
| 1268 | + if (has(O, IE_PROTO)) return O[IE_PROTO]; | |
| 1269 | + if (typeof O.constructor == 'function' && O instanceof O.constructor) { | |
| 1270 | + return O.constructor.prototype; | |
| 1271 | + } return O instanceof Object ? ObjectProto : null; | |
| 1029 | 1272 | }; |
| 1030 | -UploadFile.defaultProps = { | |
| 1031 | - className: '', | |
| 1032 | - type: 'file-explorer', | |
| 1033 | - text: __('Select File', 'elementor'), | |
| 1034 | - onError: function onError() {}, | |
| 1035 | - variant: 'contained', | |
| 1036 | - color: 'primary' | |
| 1273 | + | |
| 1274 | + | |
| 1275 | +/***/ }), | |
| 1276 | +/* 65 */ | |
| 1277 | +/***/ (function(module, exports) { | |
| 1278 | + | |
| 1279 | +// 7.2.1 RequireObjectCoercible(argument) | |
| 1280 | +module.exports = function (it) { | |
| 1281 | + if (it == undefined) throw TypeError("Can't call method on " + it); | |
| 1282 | + return it; | |
| 1037 | 1283 | }; |
| 1038 | 1284 | |
| 1285 | + | |
| 1039 | 1286 | /***/ }), |
| 1287 | +/* 66 */, | |
| 1288 | +/* 67 */ | |
| 1289 | +/***/ (function(module, exports, __webpack_require__) { | |
| 1040 | 1290 | |
| 1041 | -/***/ "../app/assets/js/molecules/upload-file.scss": | |
| 1042 | -/*!***************************************************!*\ | |
| 1043 | - !*** ../app/assets/js/molecules/upload-file.scss ***! | |
| 1044 | - \***************************************************/ | |
| 1045 | -/***/ (() => { | |
| 1291 | +var core = __webpack_require__(54); | |
| 1292 | +var global = __webpack_require__(17); | |
| 1293 | +var SHARED = '__core-js_shared__'; | |
| 1294 | +var store = global[SHARED] || (global[SHARED] = {}); | |
| 1046 | 1295 | |
| 1296 | +(module.exports = function (key, value) { | |
| 1297 | + return store[key] || (store[key] = value !== undefined ? value : {}); | |
| 1298 | +})('versions', []).push({ | |
| 1299 | + version: core.version, | |
| 1300 | + mode: __webpack_require__(110) ? 'pure' : 'global', | |
| 1301 | + copyright: '© 2019 Denis Pushkarev (zloirock.ru)' | |
| 1302 | +}); | |
| 1047 | 1303 | |
| 1048 | 1304 | |
| 1049 | 1305 | /***/ }), |
| 1306 | +/* 68 */ | |
| 1307 | +/***/ (function(module, exports) { | |
| 1050 | 1308 | |
| 1051 | -/***/ "../app/assets/js/organisms/drop-zone.js": | |
| 1052 | -/*!***********************************************!*\ | |
| 1053 | - !*** ../app/assets/js/organisms/drop-zone.js ***! | |
| 1054 | - \***********************************************/ | |
| 1055 | -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 1309 | +var id = 0; | |
| 1310 | +var px = Math.random(); | |
| 1311 | +module.exports = function (key) { | |
| 1312 | + return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36)); | |
| 1313 | +}; | |
| 1056 | 1314 | |
| 1057 | -"use strict"; | |
| 1058 | -/* provided dependency */ var __ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n")["__"]; | |
| 1059 | -/* provided dependency */ var PropTypes = __webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js"); | |
| 1060 | 1315 | |
| 1316 | +/***/ }), | |
| 1317 | +/* 69 */ | |
| 1318 | +/***/ (function(module, exports, __webpack_require__) { | |
| 1061 | 1319 | |
| 1062 | -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 1063 | -Object.defineProperty(exports, "__esModule", ({ | |
| 1064 | - value: true | |
| 1065 | -})); | |
| 1066 | -exports["default"] = DropZone; | |
| 1067 | -var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react")); | |
| 1068 | -var _extends2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/extends */ "../node_modules/@babel/runtime/helpers/extends.js")); | |
| 1069 | -var _utils = __webpack_require__(/*! elementor-app/utils/utils.js */ "../app/assets/js/utils/utils.js"); | |
| 1070 | -var _uploadFile = _interopRequireDefault(__webpack_require__(/*! elementor-app/molecules/upload-file */ "../app/assets/js/molecules/upload-file.js")); | |
| 1071 | -var _dragDrop = _interopRequireDefault(__webpack_require__(/*! elementor-app/ui/atoms/drag-drop */ "../app/assets/js/ui/atoms/drag-drop.js")); | |
| 1072 | -var _icon = _interopRequireDefault(__webpack_require__(/*! elementor-app/ui/atoms/icon */ "../app/assets/js/ui/atoms/icon.js")); | |
| 1073 | -var _heading = _interopRequireDefault(__webpack_require__(/*! elementor-app/ui/atoms/heading */ "../app/assets/js/ui/atoms/heading.js")); | |
| 1074 | -var _text = _interopRequireDefault(__webpack_require__(/*! elementor-app/ui/atoms/text */ "../app/assets/js/ui/atoms/text.js")); | |
| 1075 | -__webpack_require__(/*! ./drop-zone.scss */ "../app/assets/js/organisms/drop-zone.scss"); | |
| 1076 | -function DropZone(props) { | |
| 1077 | - var classes = ['e-app-drop-zone', props.className], | |
| 1078 | - dragDropEvents = { | |
| 1079 | - onDrop: function onDrop(event) { | |
| 1080 | - if (!props.isLoading) { | |
| 1081 | - var file = event.dataTransfer.files[0]; | |
| 1082 | - if (file && (0, _utils.isOneOf)(file.type, props.filetypes)) { | |
| 1083 | - props.onFileSelect(file, event, 'drop'); | |
| 1084 | - } else { | |
| 1085 | - props.onError({ | |
| 1086 | - id: 'file_not_allowed', | |
| 1087 | - message: __('This file type is not allowed', 'elementor') | |
| 1088 | - }); | |
| 1089 | - } | |
| 1090 | - } | |
| 1091 | - } | |
| 1320 | +// 7.1.15 ToLength | |
| 1321 | +var toInteger = __webpack_require__(77); | |
| 1322 | +var min = Math.min; | |
| 1323 | +module.exports = function (it) { | |
| 1324 | + return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991 | |
| 1325 | +}; | |
| 1326 | + | |
| 1327 | + | |
| 1328 | +/***/ }), | |
| 1329 | +/* 70 */ | |
| 1330 | +/***/ (function(module, exports, __webpack_require__) { | |
| 1331 | + | |
| 1332 | +var META = __webpack_require__(59)('meta'); | |
| 1333 | +var isObject = __webpack_require__(9); | |
| 1334 | +var has = __webpack_require__(19); | |
| 1335 | +var setDesc = __webpack_require__(15).f; | |
| 1336 | +var id = 0; | |
| 1337 | +var isExtensible = Object.isExtensible || function () { | |
| 1338 | + return true; | |
| 1339 | +}; | |
| 1340 | +var FREEZE = !__webpack_require__(22)(function () { | |
| 1341 | + return isExtensible(Object.preventExtensions({})); | |
| 1342 | +}); | |
| 1343 | +var setMeta = function (it) { | |
| 1344 | + setDesc(it, META, { value: { | |
| 1345 | + i: 'O' + ++id, // object ID | |
| 1346 | + w: {} // weak collections IDs | |
| 1347 | + } }); | |
| 1348 | +}; | |
| 1349 | +var fastKey = function (it, create) { | |
| 1350 | + // return primitive with prefix | |
| 1351 | + if (!isObject(it)) return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it; | |
| 1352 | + if (!has(it, META)) { | |
| 1353 | + // can't set metadata to uncaught frozen object | |
| 1354 | + if (!isExtensible(it)) return 'F'; | |
| 1355 | + // not necessary to add metadata | |
| 1356 | + if (!create) return 'E'; | |
| 1357 | + // add missing metadata | |
| 1358 | + setMeta(it); | |
| 1359 | + // return object ID | |
| 1360 | + } return it[META].i; | |
| 1361 | +}; | |
| 1362 | +var getWeak = function (it, create) { | |
| 1363 | + if (!has(it, META)) { | |
| 1364 | + // can't set metadata to uncaught frozen object | |
| 1365 | + if (!isExtensible(it)) return true; | |
| 1366 | + // not necessary to add metadata | |
| 1367 | + if (!create) return false; | |
| 1368 | + // add missing metadata | |
| 1369 | + setMeta(it); | |
| 1370 | + // return hash weak collections IDs | |
| 1371 | + } return it[META].w; | |
| 1372 | +}; | |
| 1373 | +// add metadata on freeze-family methods calling | |
| 1374 | +var onFreeze = function (it) { | |
| 1375 | + if (FREEZE && meta.NEED && isExtensible(it) && !has(it, META)) setMeta(it); | |
| 1376 | + return it; | |
| 1377 | +}; | |
| 1378 | +var meta = module.exports = { | |
| 1379 | + KEY: META, | |
| 1380 | + NEED: false, | |
| 1381 | + fastKey: fastKey, | |
| 1382 | + getWeak: getWeak, | |
| 1383 | + onFreeze: onFreeze | |
| 1384 | +}; | |
| 1385 | + | |
| 1386 | + | |
| 1387 | +/***/ }), | |
| 1388 | +/* 71 */ | |
| 1389 | +/***/ (function(module, exports) { | |
| 1390 | + | |
| 1391 | +exports.f = Object.getOwnPropertySymbols; | |
| 1392 | + | |
| 1393 | + | |
| 1394 | +/***/ }), | |
| 1395 | +/* 72 */, | |
| 1396 | +/* 73 */ | |
| 1397 | +/***/ (function(module, exports, __webpack_require__) { | |
| 1398 | + | |
| 1399 | +// optional / simple context binding | |
| 1400 | +var aFunction = __webpack_require__(91); | |
| 1401 | +module.exports = function (fn, that, length) { | |
| 1402 | + aFunction(fn); | |
| 1403 | + if (that === undefined) return fn; | |
| 1404 | + switch (length) { | |
| 1405 | + case 1: return function (a) { | |
| 1406 | + return fn.call(that, a); | |
| 1092 | 1407 | }; |
| 1093 | - return /*#__PURE__*/_react.default.createElement("section", { | |
| 1094 | - className: (0, _utils.arrayToClassName)(classes) | |
| 1095 | - }, /*#__PURE__*/_react.default.createElement(_dragDrop.default, (0, _extends2.default)({}, dragDropEvents, { | |
| 1096 | - isLoading: props.isLoading | |
| 1097 | - }), props.icon && /*#__PURE__*/_react.default.createElement(_icon.default, { | |
| 1098 | - className: "e-app-drop-zone__icon ".concat(props.icon) | |
| 1099 | - }), props.heading && /*#__PURE__*/_react.default.createElement(_heading.default, { | |
| 1100 | - variant: "display-3" | |
| 1101 | - }, props.heading), props.text && /*#__PURE__*/_react.default.createElement(_text.default, { | |
| 1102 | - variant: "xl", | |
| 1103 | - className: "e-app-drop-zone__text" | |
| 1104 | - }, props.text), props.secondaryText && /*#__PURE__*/_react.default.createElement(_text.default, { | |
| 1105 | - variant: "xl", | |
| 1106 | - className: "e-app-drop-zone__secondary-text" | |
| 1107 | - }, props.secondaryText), props.showButton && /*#__PURE__*/_react.default.createElement(_uploadFile.default, { | |
| 1108 | - isLoading: props.isLoading, | |
| 1109 | - type: props.type, | |
| 1110 | - onButtonClick: props.onButtonClick, | |
| 1111 | - onFileSelect: props.onFileSelect, | |
| 1112 | - onWpMediaSelect: function onWpMediaSelect(frame) { | |
| 1113 | - return props.onWpMediaSelect(frame); | |
| 1114 | - }, | |
| 1115 | - onError: function onError(error) { | |
| 1116 | - return props.onError(error); | |
| 1117 | - }, | |
| 1118 | - text: props.buttonText, | |
| 1119 | - filetypes: props.filetypes, | |
| 1120 | - variant: props.buttonVariant, | |
| 1121 | - color: props.buttonColor, | |
| 1122 | - onFileChoose: props.onFileChoose | |
| 1123 | - }), props.description && /*#__PURE__*/_react.default.createElement(_text.default, { | |
| 1124 | - variant: "xl", | |
| 1125 | - className: "e-app-drop-zone__description" | |
| 1126 | - }, props.description))); | |
| 1127 | -} | |
| 1128 | -DropZone.propTypes = { | |
| 1129 | - className: PropTypes.string, | |
| 1130 | - children: PropTypes.any, | |
| 1131 | - type: PropTypes.string, | |
| 1132 | - onFileSelect: PropTypes.func.isRequired, | |
| 1133 | - onWpMediaSelect: PropTypes.func, | |
| 1134 | - heading: PropTypes.string, | |
| 1135 | - text: PropTypes.string, | |
| 1136 | - secondaryText: PropTypes.string, | |
| 1137 | - buttonText: PropTypes.string, | |
| 1138 | - buttonVariant: PropTypes.string, | |
| 1139 | - buttonColor: PropTypes.string, | |
| 1140 | - icon: PropTypes.string, | |
| 1141 | - showButton: PropTypes.bool, | |
| 1142 | - showIcon: PropTypes.bool, | |
| 1143 | - isLoading: PropTypes.bool, | |
| 1144 | - filetypes: PropTypes.array.isRequired, | |
| 1145 | - onError: PropTypes.func, | |
| 1146 | - description: PropTypes.string, | |
| 1147 | - onButtonClick: PropTypes.func, | |
| 1148 | - onFileChoose: PropTypes.func | |
| 1408 | + case 2: return function (a, b) { | |
| 1409 | + return fn.call(that, a, b); | |
| 1410 | + }; | |
| 1411 | + case 3: return function (a, b, c) { | |
| 1412 | + return fn.call(that, a, b, c); | |
| 1413 | + }; | |
| 1414 | + } | |
| 1415 | + return function (/* ...args */) { | |
| 1416 | + return fn.apply(that, arguments); | |
| 1417 | + }; | |
| 1149 | 1418 | }; |
| 1150 | -DropZone.defaultProps = { | |
| 1151 | - className: '', | |
| 1152 | - type: 'file-explorer', | |
| 1153 | - icon: 'eicon-library-upload', | |
| 1154 | - showButton: true, | |
| 1155 | - showIcon: true, | |
| 1156 | - onError: function onError() {} | |
| 1419 | + | |
| 1420 | + | |
| 1421 | +/***/ }), | |
| 1422 | +/* 74 */ | |
| 1423 | +/***/ (function(module, exports, __webpack_require__) { | |
| 1424 | + | |
| 1425 | +// 7.1.1 ToPrimitive(input [, PreferredType]) | |
| 1426 | +var isObject = __webpack_require__(9); | |
| 1427 | +// instead of the ES6 spec version, we didn't implement @@toPrimitive case | |
| 1428 | +// and the second argument - flag - preferred type is a string | |
| 1429 | +module.exports = function (it, S) { | |
| 1430 | + if (!isObject(it)) return it; | |
| 1431 | + var fn, val; | |
| 1432 | + if (S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val; | |
| 1433 | + if (typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it))) return val; | |
| 1434 | + if (!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val; | |
| 1435 | + throw TypeError("Can't convert object to primitive value"); | |
| 1157 | 1436 | }; |
| 1158 | 1437 | |
| 1438 | + | |
| 1159 | 1439 | /***/ }), |
| 1440 | +/* 75 */ | |
| 1441 | +/***/ (function(module, exports, __webpack_require__) { | |
| 1160 | 1442 | |
| 1161 | -/***/ "../app/assets/js/organisms/drop-zone.scss": | |
| 1162 | -/*!*************************************************!*\ | |
| 1163 | - !*** ../app/assets/js/organisms/drop-zone.scss ***! | |
| 1164 | - \*************************************************/ | |
| 1165 | -/***/ (() => { | |
| 1443 | +var shared = __webpack_require__(76)('keys'); | |
| 1444 | +var uid = __webpack_require__(59); | |
| 1445 | +module.exports = function (key) { | |
| 1446 | + return shared[key] || (shared[key] = uid(key)); | |
| 1447 | +}; | |
| 1166 | 1448 | |
| 1167 | 1449 | |
| 1450 | +/***/ }), | |
| 1451 | +/* 76 */ | |
| 1452 | +/***/ (function(module, exports, __webpack_require__) { | |
| 1168 | 1453 | |
| 1454 | +var core = __webpack_require__(6); | |
| 1455 | +var global = __webpack_require__(8); | |
| 1456 | +var SHARED = '__core-js_shared__'; | |
| 1457 | +var store = global[SHARED] || (global[SHARED] = {}); | |
| 1458 | + | |
| 1459 | +(module.exports = function (key, value) { | |
| 1460 | + return store[key] || (store[key] = value !== undefined ? value : {}); | |
| 1461 | +})('versions', []).push({ | |
| 1462 | + version: core.version, | |
| 1463 | + mode: __webpack_require__(47) ? 'pure' : 'global', | |
| 1464 | + copyright: '© 2019 Denis Pushkarev (zloirock.ru)' | |
| 1465 | +}); | |
| 1466 | + | |
| 1467 | + | |
| 1169 | 1468 | /***/ }), |
| 1469 | +/* 77 */ | |
| 1470 | +/***/ (function(module, exports) { | |
| 1170 | 1471 | |
| 1171 | -/***/ "../app/assets/js/organisms/error-boundary.js": | |
| 1172 | -/*!****************************************************!*\ | |
| 1173 | - !*** ../app/assets/js/organisms/error-boundary.js ***! | |
| 1174 | - \****************************************************/ | |
| 1175 | -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 1472 | +// 7.1.4 ToInteger | |
| 1473 | +var ceil = Math.ceil; | |
| 1474 | +var floor = Math.floor; | |
| 1475 | +module.exports = function (it) { | |
| 1476 | + return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it); | |
| 1477 | +}; | |
| 1176 | 1478 | |
| 1479 | + | |
| 1480 | +/***/ }), | |
| 1481 | +/* 78 */ | |
| 1482 | +/***/ (function(module, exports) { | |
| 1483 | + | |
| 1484 | +// IE 8- don't enum bug keys | |
| 1485 | +module.exports = ( | |
| 1486 | + 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf' | |
| 1487 | +).split(','); | |
| 1488 | + | |
| 1489 | + | |
| 1490 | +/***/ }), | |
| 1491 | +/* 79 */ | |
| 1492 | +/***/ (function(module, exports, __webpack_require__) { | |
| 1493 | + | |
| 1494 | +var global = __webpack_require__(8); | |
| 1495 | +var core = __webpack_require__(6); | |
| 1496 | +var LIBRARY = __webpack_require__(47); | |
| 1497 | +var wksExt = __webpack_require__(63); | |
| 1498 | +var defineProperty = __webpack_require__(15).f; | |
| 1499 | +module.exports = function (name) { | |
| 1500 | + var $Symbol = core.Symbol || (core.Symbol = LIBRARY ? {} : global.Symbol || {}); | |
| 1501 | + if (name.charAt(0) != '_' && !(name in $Symbol)) defineProperty($Symbol, name, { value: wksExt.f(name) }); | |
| 1502 | +}; | |
| 1503 | + | |
| 1504 | + | |
| 1505 | +/***/ }), | |
| 1506 | +/* 80 */ | |
| 1507 | +/***/ (function(module, exports, __webpack_require__) { | |
| 1508 | + | |
| 1177 | 1509 | "use strict"; |
| 1178 | -/* provided dependency */ var __ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n")["__"]; | |
| 1179 | -/* provided dependency */ var PropTypes = __webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js"); | |
| 1180 | 1510 | |
| 1181 | 1511 | |
| 1182 | -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 1183 | -Object.defineProperty(exports, "__esModule", ({ | |
| 1184 | - value: true | |
| 1185 | -})); | |
| 1186 | -exports["default"] = void 0; | |
| 1187 | -var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react")); | |
| 1188 | -var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); | |
| 1189 | -var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); | |
| 1190 | -var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); | |
| 1191 | -var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); | |
| 1192 | -var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 1193 | -var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "../node_modules/@babel/runtime/helpers/defineProperty.js")); | |
| 1194 | -var _dialog = _interopRequireDefault(__webpack_require__(/*! elementor-app/ui/dialog/dialog */ "../app/assets/js/ui/dialog/dialog.js")); | |
| 1195 | -function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } | |
| 1196 | -function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } | |
| 1197 | -// In the current time there is no solution to use "getDerivedStateFromError" static method with functional component | |
| 1198 | -// That is why this component is a class component. | |
| 1199 | -// @link https://reactjs.org/docs/hooks-faq.html#do-hooks-cover-all-use-cases-for-classes | |
| 1200 | -var ErrorBoundary = exports["default"] = /*#__PURE__*/function (_React$Component) { | |
| 1201 | - function ErrorBoundary(props) { | |
| 1202 | - var _this; | |
| 1203 | - (0, _classCallCheck2.default)(this, ErrorBoundary); | |
| 1204 | - _this = _callSuper(this, ErrorBoundary, [props]); | |
| 1205 | - _this.state = { | |
| 1206 | - hasError: null | |
| 1512 | +var isRegExp = __webpack_require__(122); | |
| 1513 | +var anObject = __webpack_require__(18); | |
| 1514 | +var speciesConstructor = __webpack_require__(154); | |
| 1515 | +var advanceStringIndex = __webpack_require__(105); | |
| 1516 | +var toLength = __webpack_require__(43); | |
| 1517 | +var callRegExpExec = __webpack_require__(94); | |
| 1518 | +var regexpExec = __webpack_require__(90); | |
| 1519 | +var fails = __webpack_require__(33); | |
| 1520 | +var $min = Math.min; | |
| 1521 | +var $push = [].push; | |
| 1522 | +var $SPLIT = 'split'; | |
| 1523 | +var LENGTH = 'length'; | |
| 1524 | +var LAST_INDEX = 'lastIndex'; | |
| 1525 | +var MAX_UINT32 = 0xffffffff; | |
| 1526 | + | |
| 1527 | +// babel-minify transpiles RegExp('x', 'y') -> /x/y and it causes SyntaxError | |
| 1528 | +var SUPPORTS_Y = !fails(function () { RegExp(MAX_UINT32, 'y'); }); | |
| 1529 | + | |
| 1530 | +// @@split logic | |
| 1531 | +__webpack_require__(95)('split', 2, function (defined, SPLIT, $split, maybeCallNative) { | |
| 1532 | + var internalSplit; | |
| 1533 | + if ( | |
| 1534 | + 'abbc'[$SPLIT](/(b)*/)[1] == 'c' || | |
| 1535 | + 'test'[$SPLIT](/(?:)/, -1)[LENGTH] != 4 || | |
| 1536 | + 'ab'[$SPLIT](/(?:ab)*/)[LENGTH] != 2 || | |
| 1537 | + '.'[$SPLIT](/(.?)(.?)/)[LENGTH] != 4 || | |
| 1538 | + '.'[$SPLIT](/()()/)[LENGTH] > 1 || | |
| 1539 | + ''[$SPLIT](/.?/)[LENGTH] | |
| 1540 | + ) { | |
| 1541 | + // based on es5-shim implementation, need to rework it | |
| 1542 | + internalSplit = function (separator, limit) { | |
| 1543 | + var string = String(this); | |
| 1544 | + if (separator === undefined && limit === 0) return []; | |
| 1545 | + // If `separator` is not a regex, use native split | |
| 1546 | + if (!isRegExp(separator)) return $split.call(string, separator, limit); | |
| 1547 | + var output = []; | |
| 1548 | + var flags = (separator.ignoreCase ? 'i' : '') + | |
| 1549 | + (separator.multiline ? 'm' : '') + | |
| 1550 | + (separator.unicode ? 'u' : '') + | |
| 1551 | + (separator.sticky ? 'y' : ''); | |
| 1552 | + var lastLastIndex = 0; | |
| 1553 | + var splitLimit = limit === undefined ? MAX_UINT32 : limit >>> 0; | |
| 1554 | + // Make `global` and avoid `lastIndex` issues by working with a copy | |
| 1555 | + var separatorCopy = new RegExp(separator.source, flags + 'g'); | |
| 1556 | + var match, lastIndex, lastLength; | |
| 1557 | + while (match = regexpExec.call(separatorCopy, string)) { | |
| 1558 | + lastIndex = separatorCopy[LAST_INDEX]; | |
| 1559 | + if (lastIndex > lastLastIndex) { | |
| 1560 | + output.push(string.slice(lastLastIndex, match.index)); | |
| 1561 | + if (match[LENGTH] > 1 && match.index < string[LENGTH]) $push.apply(output, match.slice(1)); | |
| 1562 | + lastLength = match[0][LENGTH]; | |
| 1563 | + lastLastIndex = lastIndex; | |
| 1564 | + if (output[LENGTH] >= splitLimit) break; | |
| 1565 | + } | |
| 1566 | + if (separatorCopy[LAST_INDEX] === match.index) separatorCopy[LAST_INDEX]++; // Avoid an infinite loop | |
| 1567 | + } | |
| 1568 | + if (lastLastIndex === string[LENGTH]) { | |
| 1569 | + if (lastLength || !separatorCopy.test('')) output.push(''); | |
| 1570 | + } else output.push(string.slice(lastLastIndex)); | |
| 1571 | + return output[LENGTH] > splitLimit ? output.slice(0, splitLimit) : output; | |
| 1207 | 1572 | }; |
| 1208 | - return _this; | |
| 1573 | + // Chakra, V8 | |
| 1574 | + } else if ('0'[$SPLIT](undefined, 0)[LENGTH]) { | |
| 1575 | + internalSplit = function (separator, limit) { | |
| 1576 | + return separator === undefined && limit === 0 ? [] : $split.call(this, separator, limit); | |
| 1577 | + }; | |
| 1578 | + } else { | |
| 1579 | + internalSplit = $split; | |
| 1209 | 1580 | } |
| 1210 | - (0, _inherits2.default)(ErrorBoundary, _React$Component); | |
| 1211 | - return (0, _createClass2.default)(ErrorBoundary, [{ | |
| 1212 | - key: "goBack", | |
| 1213 | - value: function goBack() { | |
| 1214 | - // If the app was opened inside an iframe, it will close it, | |
| 1215 | - // if not, it will redirect to the last location. | |
| 1216 | - if (window.top !== window.self) { | |
| 1217 | - window.top.$e.run('app/close'); | |
| 1581 | + | |
| 1582 | + return [ | |
| 1583 | + // `String.prototype.split` method | |
| 1584 | + // https://tc39.github.io/ecma262/#sec-string.prototype.split | |
| 1585 | + function split(separator, limit) { | |
| 1586 | + var O = defined(this); | |
| 1587 | + var splitter = separator == undefined ? undefined : separator[SPLIT]; | |
| 1588 | + return splitter !== undefined | |
| 1589 | + ? splitter.call(separator, O, limit) | |
| 1590 | + : internalSplit.call(String(O), separator, limit); | |
| 1591 | + }, | |
| 1592 | + // `RegExp.prototype[@@split]` method | |
| 1593 | + // https://tc39.github.io/ecma262/#sec-regexp.prototype-@@split | |
| 1594 | + // | |
| 1595 | + // NOTE: This cannot be properly polyfilled in engines that don't support | |
| 1596 | + // the 'y' flag. | |
| 1597 | + function (regexp, limit) { | |
| 1598 | + var res = maybeCallNative(internalSplit, regexp, this, limit, internalSplit !== $split); | |
| 1599 | + if (res.done) return res.value; | |
| 1600 | + | |
| 1601 | + var rx = anObject(regexp); | |
| 1602 | + var S = String(this); | |
| 1603 | + var C = speciesConstructor(rx, RegExp); | |
| 1604 | + | |
| 1605 | + var unicodeMatching = rx.unicode; | |
| 1606 | + var flags = (rx.ignoreCase ? 'i' : '') + | |
| 1607 | + (rx.multiline ? 'm' : '') + | |
| 1608 | + (rx.unicode ? 'u' : '') + | |
| 1609 | + (SUPPORTS_Y ? 'y' : 'g'); | |
| 1610 | + | |
| 1611 | + // ^(? + rx + ) is needed, in combination with some S slicing, to | |
| 1612 | + // simulate the 'y' flag. | |
| 1613 | + var splitter = new C(SUPPORTS_Y ? rx : '^(?:' + rx.source + ')', flags); | |
| 1614 | + var lim = limit === undefined ? MAX_UINT32 : limit >>> 0; | |
| 1615 | + if (lim === 0) return []; | |
| 1616 | + if (S.length === 0) return callRegExpExec(splitter, S) === null ? [S] : []; | |
| 1617 | + var p = 0; | |
| 1618 | + var q = 0; | |
| 1619 | + var A = []; | |
| 1620 | + while (q < S.length) { | |
| 1621 | + splitter.lastIndex = SUPPORTS_Y ? q : 0; | |
| 1622 | + var z = callRegExpExec(splitter, SUPPORTS_Y ? S : S.slice(q)); | |
| 1623 | + var e; | |
| 1624 | + if ( | |
| 1625 | + z === null || | |
| 1626 | + (e = $min(toLength(splitter.lastIndex + (SUPPORTS_Y ? 0 : q)), S.length)) === p | |
| 1627 | + ) { | |
| 1628 | + q = advanceStringIndex(S, q, unicodeMatching); | |
| 1629 | + } else { | |
| 1630 | + A.push(S.slice(p, q)); | |
| 1631 | + if (A.length === lim) return A; | |
| 1632 | + for (var i = 1; i <= z.length - 1; i++) { | |
| 1633 | + A.push(z[i]); | |
| 1634 | + if (A.length === lim) return A; | |
| 1635 | + } | |
| 1636 | + q = p = e; | |
| 1637 | + } | |
| 1218 | 1638 | } |
| 1219 | - window.location = elementorAppConfig.return_url; | |
| 1639 | + A.push(S.slice(p)); | |
| 1640 | + return A; | |
| 1220 | 1641 | } |
| 1221 | - }, { | |
| 1222 | - key: "render", | |
| 1223 | - value: function render() { | |
| 1224 | - if (this.state.hasError) { | |
| 1225 | - return /*#__PURE__*/_react.default.createElement(_dialog.default, { | |
| 1226 | - title: this.props.title, | |
| 1227 | - text: this.props.text, | |
| 1228 | - approveButtonUrl: this.props.learnMoreUrl, | |
| 1229 | - approveButtonColor: "link", | |
| 1230 | - approveButtonTarget: "_blank", | |
| 1231 | - approveButtonText: __('Learn More', 'elementor'), | |
| 1232 | - dismissButtonText: __('Go Back', 'elementor'), | |
| 1233 | - dismissButtonOnClick: this.goBack | |
| 1234 | - }); | |
| 1235 | - } | |
| 1236 | - return this.props.children; | |
| 1237 | - } | |
| 1238 | - }], [{ | |
| 1239 | - key: "getDerivedStateFromError", | |
| 1240 | - value: function getDerivedStateFromError() { | |
| 1241 | - return { | |
| 1242 | - hasError: true | |
| 1243 | - }; | |
| 1244 | - } | |
| 1245 | - }]); | |
| 1246 | -}(_react.default.Component); | |
| 1247 | -(0, _defineProperty2.default)(ErrorBoundary, "propTypes", { | |
| 1248 | - children: PropTypes.any, | |
| 1249 | - title: PropTypes.string, | |
| 1250 | - text: PropTypes.string, | |
| 1251 | - learnMoreUrl: PropTypes.string | |
| 1642 | + ]; | |
| 1252 | 1643 | }); |
| 1253 | -(0, _defineProperty2.default)(ErrorBoundary, "defaultProps", { | |
| 1254 | - title: __('App could not be loaded', 'elementor'), | |
| 1255 | - text: __('We’re sorry, but something went wrong. Click on ‘Learn more’ and follow each of the steps to quickly solve it.', 'elementor'), | |
| 1256 | - learnMoreUrl: 'https://go.elementor.com/app-general-load-issue/' | |
| 1257 | -}); | |
| 1258 | 1644 | |
| 1645 | + | |
| 1259 | 1646 | /***/ }), |
| 1647 | +/* 81 */, | |
| 1648 | +/* 82 */, | |
| 1649 | +/* 83 */, | |
| 1650 | +/* 84 */ | |
| 1651 | +/***/ (function(module, exports, __webpack_require__) { | |
| 1260 | 1652 | |
| 1261 | -/***/ "../app/assets/js/organisms/unfiltered-files-dialog.js": | |
| 1262 | -/*!*************************************************************!*\ | |
| 1263 | - !*** ../app/assets/js/organisms/unfiltered-files-dialog.js ***! | |
| 1264 | - \*************************************************************/ | |
| 1265 | -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 1653 | +module.exports = __webpack_require__(220); | |
| 1266 | 1654 | |
| 1655 | +/***/ }), | |
| 1656 | +/* 85 */, | |
| 1657 | +/* 86 */ | |
| 1658 | +/***/ (function(module, exports, __webpack_require__) { | |
| 1659 | + | |
| 1660 | +// most Object methods by ES6 should accept primitives | |
| 1661 | +var $export = __webpack_require__(7); | |
| 1662 | +var core = __webpack_require__(6); | |
| 1663 | +var fails = __webpack_require__(22); | |
| 1664 | +module.exports = function (KEY, exec) { | |
| 1665 | + var fn = (core.Object || {})[KEY] || Object[KEY]; | |
| 1666 | + var exp = {}; | |
| 1667 | + exp[KEY] = exec(fn); | |
| 1668 | + $export($export.S + $export.F * fails(function () { fn(1); }), 'Object', exp); | |
| 1669 | +}; | |
| 1670 | + | |
| 1671 | + | |
| 1672 | +/***/ }), | |
| 1673 | +/* 87 */ | |
| 1674 | +/***/ (function(module, exports, __webpack_require__) { | |
| 1675 | + | |
| 1676 | +// 22.1.3.31 Array.prototype[@@unscopables] | |
| 1677 | +var UNSCOPABLES = __webpack_require__(12)('unscopables'); | |
| 1678 | +var ArrayProto = Array.prototype; | |
| 1679 | +if (ArrayProto[UNSCOPABLES] == undefined) __webpack_require__(29)(ArrayProto, UNSCOPABLES, {}); | |
| 1680 | +module.exports = function (key) { | |
| 1681 | + ArrayProto[UNSCOPABLES][key] = true; | |
| 1682 | +}; | |
| 1683 | + | |
| 1684 | + | |
| 1685 | +/***/ }), | |
| 1686 | +/* 88 */ | |
| 1687 | +/***/ (function(module, exports, __webpack_require__) { | |
| 1688 | + | |
| 1689 | +var ctx = __webpack_require__(31); | |
| 1690 | +var call = __webpack_require__(141); | |
| 1691 | +var isArrayIter = __webpack_require__(142); | |
| 1692 | +var anObject = __webpack_require__(13); | |
| 1693 | +var toLength = __webpack_require__(69); | |
| 1694 | +var getIterFn = __webpack_require__(112); | |
| 1695 | +var BREAK = {}; | |
| 1696 | +var RETURN = {}; | |
| 1697 | +var exports = module.exports = function (iterable, entries, fn, that, ITERATOR) { | |
| 1698 | + var iterFn = ITERATOR ? function () { return iterable; } : getIterFn(iterable); | |
| 1699 | + var f = ctx(fn, that, entries ? 2 : 1); | |
| 1700 | + var index = 0; | |
| 1701 | + var length, step, iterator, result; | |
| 1702 | + if (typeof iterFn != 'function') throw TypeError(iterable + ' is not iterable!'); | |
| 1703 | + // fast case for arrays with default iterator | |
| 1704 | + if (isArrayIter(iterFn)) for (length = toLength(iterable.length); length > index; index++) { | |
| 1705 | + result = entries ? f(anObject(step = iterable[index])[0], step[1]) : f(iterable[index]); | |
| 1706 | + if (result === BREAK || result === RETURN) return result; | |
| 1707 | + } else for (iterator = iterFn.call(iterable); !(step = iterator.next()).done;) { | |
| 1708 | + result = call(iterator, f, step.value, entries); | |
| 1709 | + if (result === BREAK || result === RETURN) return result; | |
| 1710 | + } | |
| 1711 | +}; | |
| 1712 | +exports.BREAK = BREAK; | |
| 1713 | +exports.RETURN = RETURN; | |
| 1714 | + | |
| 1715 | + | |
| 1716 | +/***/ }), | |
| 1717 | +/* 89 */, | |
| 1718 | +/* 90 */ | |
| 1719 | +/***/ (function(module, exports, __webpack_require__) { | |
| 1720 | + | |
| 1267 | 1721 | "use strict"; |
| 1268 | -/* provided dependency */ var __ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n")["__"]; | |
| 1269 | -/* provided dependency */ var PropTypes = __webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js"); | |
| 1270 | 1722 | |
| 1271 | 1723 | |
| 1272 | -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 1273 | -var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ "../node_modules/@babel/runtime/helpers/typeof.js"); | |
| 1274 | -Object.defineProperty(exports, "__esModule", ({ | |
| 1275 | - value: true | |
| 1276 | -})); | |
| 1277 | -exports["default"] = UnfilteredFilesDialog; | |
| 1278 | -var _react = _interopRequireWildcard(__webpack_require__(/*! react */ "react")); | |
| 1279 | -var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ "../node_modules/@babel/runtime/helpers/slicedToArray.js")); | |
| 1280 | -var _dialog = _interopRequireDefault(__webpack_require__(/*! elementor-app/ui/dialog/dialog */ "../app/assets/js/ui/dialog/dialog.js")); | |
| 1281 | -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); } | |
| 1283 | -function UnfilteredFilesDialog(props) { | |
| 1284 | - var show = props.show, | |
| 1285 | - setShow = props.setShow, | |
| 1286 | - onReady = props.onReady, | |
| 1287 | - onCancel = props.onCancel, | |
| 1288 | - onDismiss = props.onDismiss, | |
| 1289 | - onLoad = props.onLoad, | |
| 1290 | - onEnable = props.onEnable, | |
| 1291 | - onClose = props.onClose, | |
| 1292 | - _useAjax = (0, _useAjax2.default)(), | |
| 1293 | - ajaxState = _useAjax.ajaxState, | |
| 1294 | - setAjax = _useAjax.setAjax, | |
| 1295 | - _useState = (0, _react.useState)(false), | |
| 1296 | - _useState2 = (0, _slicedToArray2.default)(_useState, 2), | |
| 1297 | - enableUnfilteredFiles = _useState2[0], | |
| 1298 | - setEnableUnfilteredFiles = _useState2[1], | |
| 1299 | - _useState3 = (0, _react.useState)(false), | |
| 1300 | - _useState4 = (0, _slicedToArray2.default)(_useState3, 2), | |
| 1301 | - isEnableError = _useState4[0], | |
| 1302 | - setIsEnableError = _useState4[1]; | |
| 1724 | +var regexpFlags = __webpack_require__(106); | |
| 1303 | 1725 | |
| 1304 | - // Sending the enable unfiltered files request. | |
| 1305 | - (0, _react.useEffect)(function () { | |
| 1306 | - if (enableUnfilteredFiles) { | |
| 1307 | - setShow(false); | |
| 1308 | - setAjax({ | |
| 1309 | - data: { | |
| 1310 | - action: 'elementor_ajax', | |
| 1311 | - actions: JSON.stringify({ | |
| 1312 | - enable_unfiltered_files_upload: { | |
| 1313 | - action: 'enable_unfiltered_files_upload' | |
| 1314 | - } | |
| 1315 | - }) | |
| 1726 | +var nativeExec = RegExp.prototype.exec; | |
| 1727 | +// This always refers to the native implementation, because the | |
| 1728 | +// String#replace polyfill uses ./fix-regexp-well-known-symbol-logic.js, | |
| 1729 | +// which loads this file before patching the method. | |
| 1730 | +var nativeReplace = String.prototype.replace; | |
| 1731 | + | |
| 1732 | +var patchedExec = nativeExec; | |
| 1733 | + | |
| 1734 | +var LAST_INDEX = 'lastIndex'; | |
| 1735 | + | |
| 1736 | +var UPDATES_LAST_INDEX_WRONG = (function () { | |
| 1737 | + var re1 = /a/, | |
| 1738 | + re2 = /b*/g; | |
| 1739 | + nativeExec.call(re1, 'a'); | |
| 1740 | + nativeExec.call(re2, 'a'); | |
| 1741 | + return re1[LAST_INDEX] !== 0 || re2[LAST_INDEX] !== 0; | |
| 1742 | +})(); | |
| 1743 | + | |
| 1744 | +// nonparticipating capturing group, copied from es5-shim's String#split patch. | |
| 1745 | +var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined; | |
| 1746 | + | |
| 1747 | +var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED; | |
| 1748 | + | |
| 1749 | +if (PATCH) { | |
| 1750 | + patchedExec = function exec(str) { | |
| 1751 | + var re = this; | |
| 1752 | + var lastIndex, reCopy, match, i; | |
| 1753 | + | |
| 1754 | + if (NPCG_INCLUDED) { | |
| 1755 | + reCopy = new RegExp('^' + re.source + '$(?!\\s)', regexpFlags.call(re)); | |
| 1756 | + } | |
| 1757 | + if (UPDATES_LAST_INDEX_WRONG) lastIndex = re[LAST_INDEX]; | |
| 1758 | + | |
| 1759 | + match = nativeExec.call(re, str); | |
| 1760 | + | |
| 1761 | + if (UPDATES_LAST_INDEX_WRONG && match) { | |
| 1762 | + re[LAST_INDEX] = re.global ? match.index + match[0].length : lastIndex; | |
| 1763 | + } | |
| 1764 | + if (NPCG_INCLUDED && match && match.length > 1) { | |
| 1765 | + // Fix browsers whose `exec` methods don't consistently return `undefined` | |
| 1766 | + // for NPCG, like IE8. NOTE: This doesn' work for /(.?)?/ | |
| 1767 | + // eslint-disable-next-line no-loop-func | |
| 1768 | + nativeReplace.call(match[0], reCopy, function () { | |
| 1769 | + for (i = 1; i < arguments.length - 2; i++) { | |
| 1770 | + if (arguments[i] === undefined) match[i] = undefined; | |
| 1316 | 1771 | } |
| 1317 | 1772 | }); |
| 1318 | - if (onEnable) { | |
| 1319 | - onEnable(); | |
| 1320 | - } | |
| 1321 | 1773 | } |
| 1322 | - // eslint-disable-next-line react-hooks/exhaustive-deps | |
| 1323 | - }, [enableUnfilteredFiles]); | |
| 1324 | 1774 | |
| 1325 | - // Enabling unfiltered files ajax status. | |
| 1326 | - (0, _react.useEffect)(function () { | |
| 1327 | - switch (ajaxState.status) { | |
| 1328 | - case 'success': | |
| 1329 | - onReady(); | |
| 1330 | - break; | |
| 1331 | - case 'error': | |
| 1332 | - setIsEnableError(true); | |
| 1333 | - setShow(true); | |
| 1334 | - break; | |
| 1335 | - } | |
| 1336 | - // eslint-disable-next-line react-hooks/exhaustive-deps | |
| 1337 | - }, [ajaxState]); | |
| 1338 | - (0, _react.useEffect)(function () { | |
| 1339 | - if (show && onLoad) { | |
| 1340 | - onLoad(); | |
| 1341 | - } | |
| 1342 | - // eslint-disable-next-line react-hooks/exhaustive-deps | |
| 1343 | - }, [show]); | |
| 1344 | - if (!show) { | |
| 1345 | - return null; | |
| 1346 | - } | |
| 1347 | - return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, isEnableError ? /*#__PURE__*/_react.default.createElement(_dialog.default, { | |
| 1348 | - title: __('Something went wrong.', 'elementor'), | |
| 1349 | - text: props.errorModalText, | |
| 1350 | - approveButtonColor: "link", | |
| 1351 | - approveButtonText: __('Continue', 'elementor'), | |
| 1352 | - approveButtonOnClick: onReady, | |
| 1353 | - dismissButtonText: __('Go Back', 'elementor'), | |
| 1354 | - dismissButtonOnClick: onCancel, | |
| 1355 | - onClose: onCancel | |
| 1356 | - }) : /*#__PURE__*/_react.default.createElement(_dialog.default, { | |
| 1357 | - title: __('First, enable unfiltered file uploads.', 'elementor'), | |
| 1358 | - text: props.confirmModalText, | |
| 1359 | - approveButtonColor: "link", | |
| 1360 | - approveButtonText: __('Enable', 'elementor'), | |
| 1361 | - approveButtonOnClick: function approveButtonOnClick() { | |
| 1362 | - return setEnableUnfilteredFiles(true); | |
| 1363 | - }, | |
| 1364 | - dismissButtonText: __('Skip', 'elementor'), | |
| 1365 | - dismissButtonOnClick: onDismiss || onReady, | |
| 1366 | - onClose: onClose || onDismiss || onReady | |
| 1367 | - })); | |
| 1775 | + return match; | |
| 1776 | + }; | |
| 1368 | 1777 | } |
| 1369 | -UnfilteredFilesDialog.propTypes = { | |
| 1370 | - show: PropTypes.bool, | |
| 1371 | - setShow: PropTypes.func.isRequired, | |
| 1372 | - onReady: PropTypes.func.isRequired, | |
| 1373 | - onCancel: PropTypes.func.isRequired, | |
| 1374 | - onDismiss: PropTypes.func, | |
| 1375 | - confirmModalText: PropTypes.string.isRequired, | |
| 1376 | - errorModalText: PropTypes.string.isRequired, | |
| 1377 | - onLoad: PropTypes.func, | |
| 1378 | - onEnable: PropTypes.func, | |
| 1379 | - onClose: PropTypes.func | |
| 1778 | + | |
| 1779 | +module.exports = patchedExec; | |
| 1780 | + | |
| 1781 | + | |
| 1782 | +/***/ }), | |
| 1783 | +/* 91 */ | |
| 1784 | +/***/ (function(module, exports) { | |
| 1785 | + | |
| 1786 | +module.exports = function (it) { | |
| 1787 | + if (typeof it != 'function') throw TypeError(it + ' is not a function!'); | |
| 1788 | + return it; | |
| 1380 | 1789 | }; |
| 1381 | -UnfilteredFilesDialog.defaultProps = { | |
| 1382 | - show: false, | |
| 1383 | - onReady: function onReady() {}, | |
| 1384 | - onCancel: function onCancel() {} | |
| 1790 | + | |
| 1791 | + | |
| 1792 | +/***/ }), | |
| 1793 | +/* 92 */ | |
| 1794 | +/***/ (function(module, exports, __webpack_require__) { | |
| 1795 | + | |
| 1796 | +var isObject = __webpack_require__(9); | |
| 1797 | +var document = __webpack_require__(8).document; | |
| 1798 | +// typeof document.createElement is 'object' in old IE | |
| 1799 | +var is = isObject(document) && isObject(document.createElement); | |
| 1800 | +module.exports = function (it) { | |
| 1801 | + return is ? document.createElement(it) : {}; | |
| 1385 | 1802 | }; |
| 1386 | 1803 | |
| 1804 | + | |
| 1387 | 1805 | /***/ }), |
| 1806 | +/* 93 */ | |
| 1807 | +/***/ (function(module, exports, __webpack_require__) { | |
| 1388 | 1808 | |
| 1389 | -/***/ "../app/assets/js/package.js": | |
| 1390 | -/*!***********************************!*\ | |
| 1391 | - !*** ../app/assets/js/package.js ***! | |
| 1392 | - \***********************************/ | |
| 1393 | -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 1809 | +module.exports = __webpack_require__(24); | |
| 1394 | 1810 | |
| 1811 | + | |
| 1812 | +/***/ }), | |
| 1813 | +/* 94 */ | |
| 1814 | +/***/ (function(module, exports, __webpack_require__) { | |
| 1815 | + | |
| 1395 | 1816 | "use strict"; |
| 1396 | 1817 | |
| 1397 | 1818 | |
| 1398 | -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 1399 | -var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ "../node_modules/@babel/runtime/helpers/typeof.js"); | |
| 1400 | -Object.defineProperty(exports, "__esModule", ({ | |
| 1401 | - value: true | |
| 1402 | -})); | |
| 1403 | -exports.hooks = exports.components = exports.appUi = void 0; | |
| 1404 | -var _addNewButton = _interopRequireDefault(__webpack_require__(/*! ./ui/molecules/add-new-button */ "../app/assets/js/ui/molecules/add-new-button.js")); | |
| 1405 | -var _box = _interopRequireDefault(__webpack_require__(/*! ./ui/atoms/box */ "../app/assets/js/ui/atoms/box.js")); | |
| 1406 | -var _button = _interopRequireDefault(__webpack_require__(/*! ./ui/molecules/button */ "../app/assets/js/ui/molecules/button.js")); | |
| 1407 | -var _card = _interopRequireDefault(__webpack_require__(/*! ./ui/card/card */ "../app/assets/js/ui/card/card.js")); | |
| 1408 | -var _cardBody = _interopRequireDefault(__webpack_require__(/*! ./ui/card/card-body */ "../app/assets/js/ui/card/card-body.js")); | |
| 1409 | -var _cardFooter = _interopRequireDefault(__webpack_require__(/*! ./ui/card/card-footer */ "../app/assets/js/ui/card/card-footer.js")); | |
| 1410 | -var _cardImage = _interopRequireDefault(__webpack_require__(/*! ./ui/card/card-image */ "../app/assets/js/ui/card/card-image.js")); | |
| 1411 | -var _cardHeader = _interopRequireDefault(__webpack_require__(/*! ./ui/card/card-header */ "../app/assets/js/ui/card/card-header.js")); | |
| 1412 | -var _cardOverlay = _interopRequireDefault(__webpack_require__(/*! ./ui/card/card-overlay */ "../app/assets/js/ui/card/card-overlay.js")); | |
| 1413 | -var _checkbox = _interopRequireDefault(__webpack_require__(/*! ./ui/atoms/checkbox */ "../app/assets/js/ui/atoms/checkbox.js")); | |
| 1414 | -var _collapse = _interopRequireDefault(__webpack_require__(/*! ./molecules/collapse */ "../app/assets/js/molecules/collapse.js")); | |
| 1415 | -var _cssGrid = _interopRequireDefault(__webpack_require__(/*! ./ui/atoms/css-grid */ "../app/assets/js/ui/atoms/css-grid.js")); | |
| 1416 | -var _dialog = _interopRequireDefault(__webpack_require__(/*! ./ui/dialog/dialog */ "../app/assets/js/ui/dialog/dialog.js")); | |
| 1417 | -var _dragDrop = _interopRequireDefault(__webpack_require__(/*! ./ui/atoms/drag-drop */ "../app/assets/js/ui/atoms/drag-drop.js")); | |
| 1418 | -var _dropZone = _interopRequireDefault(__webpack_require__(/*! ./organisms/drop-zone */ "../app/assets/js/organisms/drop-zone.js")); | |
| 1419 | -var _errorBoundary = _interopRequireDefault(__webpack_require__(/*! ./organisms/error-boundary */ "../app/assets/js/organisms/error-boundary.js")); | |
| 1420 | -var _heading = _interopRequireDefault(__webpack_require__(/*! ./ui/atoms/heading */ "../app/assets/js/ui/atoms/heading.js")); | |
| 1421 | -var _goProButton = _interopRequireDefault(__webpack_require__(/*! ./molecules/go-pro-button */ "../app/assets/js/molecules/go-pro-button.js")); | |
| 1422 | -var _grid = _interopRequireDefault(__webpack_require__(/*! ./ui/grid/grid */ "../app/assets/js/ui/grid/grid.js")); | |
| 1423 | -var _icon = _interopRequireDefault(__webpack_require__(/*! ./ui/atoms/icon */ "../app/assets/js/ui/atoms/icon.js")); | |
| 1424 | -var _list = _interopRequireDefault(__webpack_require__(/*! ./ui/molecules/list */ "../app/assets/js/ui/molecules/list.js")); | |
| 1425 | -var _menu = _interopRequireDefault(__webpack_require__(/*! ./ui/menu/menu */ "../app/assets/js/ui/menu/menu.js")); | |
| 1426 | -var _menuItem = _interopRequireDefault(__webpack_require__(/*! ./ui/menu/menu-item */ "../app/assets/js/ui/menu/menu-item.js")); | |
| 1427 | -var _modal = _interopRequireWildcard(__webpack_require__(/*! ./ui/modal/modal */ "../app/assets/js/ui/modal/modal.js")); | |
| 1428 | -var _notFound = _interopRequireDefault(__webpack_require__(/*! ./pages/not-found */ "../app/assets/js/pages/not-found.js")); | |
| 1429 | -var _notice = _interopRequireDefault(__webpack_require__(/*! ./ui/molecules/notice */ "../app/assets/js/ui/molecules/notice.js")); | |
| 1430 | -var _page = _interopRequireDefault(__webpack_require__(/*! ./layout/page */ "../app/assets/js/layout/page.js")); | |
| 1431 | -var _popover = _interopRequireDefault(__webpack_require__(/*! ./ui/molecules/popover */ "../app/assets/js/ui/molecules/popover.js")); | |
| 1432 | -var _select = _interopRequireDefault(__webpack_require__(/*! ./ui/atoms/select */ "../app/assets/js/ui/atoms/select.js")); | |
| 1433 | -var _select2 = _interopRequireDefault(__webpack_require__(/*! ./ui/molecules/select2 */ "../app/assets/js/ui/molecules/select2.js")); | |
| 1434 | -var _text = _interopRequireDefault(__webpack_require__(/*! ./ui/atoms/text */ "../app/assets/js/ui/atoms/text.js")); | |
| 1435 | -var _uploadFile = _interopRequireDefault(__webpack_require__(/*! ./molecules/upload-file */ "../app/assets/js/molecules/upload-file.js")); | |
| 1436 | -var _inlineLink = _interopRequireDefault(__webpack_require__(/*! ./ui/molecules/inline-link */ "../app/assets/js/ui/molecules/inline-link.js")); | |
| 1437 | -var _unfilteredFilesDialog = _interopRequireDefault(__webpack_require__(/*! ./organisms/unfiltered-files-dialog.js */ "../app/assets/js/organisms/unfiltered-files-dialog.js")); | |
| 1438 | -var _useAjax = _interopRequireDefault(__webpack_require__(/*! ./hooks/use-ajax */ "../app/assets/js/hooks/use-ajax.js")); | |
| 1439 | -var _useAction = _interopRequireDefault(__webpack_require__(/*! ./hooks/use-action */ "../app/assets/js/hooks/use-action.js")); | |
| 1440 | -var _usePageTitle = _interopRequireDefault(__webpack_require__(/*! ./hooks/use-page-title */ "../app/assets/js/hooks/use-page-title.js")); | |
| 1441 | -var _useQueryParams = _interopRequireDefault(__webpack_require__(/*! ./hooks/use-query-params */ "../app/assets/js/hooks/use-query-params.js")); | |
| 1442 | -var _useIntroduction = _interopRequireDefault(__webpack_require__(/*! ./hooks/use-introduction */ "../app/assets/js/hooks/use-introduction.js")); | |
| 1443 | -var _useConfirmAction = _interopRequireDefault(__webpack_require__(/*! ./hooks/use-confirm-action */ "../app/assets/js/hooks/use-confirm-action.js")); | |
| 1444 | -function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); } | |
| 1445 | -// Alphabetical order. | |
| 1446 | -// App UI | |
| 1819 | +var classof = __webpack_require__(113); | |
| 1820 | +var builtinExec = RegExp.prototype.exec; | |
| 1447 | 1821 | |
| 1448 | -// Components | |
| 1822 | + // `RegExpExec` abstract operation | |
| 1823 | +// https://tc39.github.io/ecma262/#sec-regexpexec | |
| 1824 | +module.exports = function (R, S) { | |
| 1825 | + var exec = R.exec; | |
| 1826 | + if (typeof exec === 'function') { | |
| 1827 | + var result = exec.call(R, S); | |
| 1828 | + if (typeof result !== 'object') { | |
| 1829 | + throw new TypeError('RegExp exec method returned something other than an Object or null'); | |
| 1830 | + } | |
| 1831 | + return result; | |
| 1832 | + } | |
| 1833 | + if (classof(R) !== 'RegExp') { | |
| 1834 | + throw new TypeError('RegExp#exec called on incompatible receiver'); | |
| 1835 | + } | |
| 1836 | + return builtinExec.call(R, S); | |
| 1837 | +}; | |
| 1449 | 1838 | |
| 1450 | -// Hooks | |
| 1451 | 1839 | |
| 1452 | -var appUi = exports.appUi = { | |
| 1453 | - AddNewButton: _addNewButton.default, | |
| 1454 | - Box: _box.default, | |
| 1455 | - Button: _button.default, | |
| 1456 | - Card: _card.default, | |
| 1457 | - CardBody: _cardBody.default, | |
| 1458 | - CardFooter: _cardFooter.default, | |
| 1459 | - CardHeader: _cardHeader.default, | |
| 1460 | - CardImage: _cardImage.default, | |
| 1461 | - CardOverlay: _cardOverlay.default, | |
| 1462 | - Checkbox: _checkbox.default, | |
| 1463 | - Collapse: _collapse.default, | |
| 1464 | - CssGrid: _cssGrid.default, | |
| 1465 | - Dialog: _dialog.default, | |
| 1466 | - DragDrop: _dragDrop.default, | |
| 1467 | - DropZone: _dropZone.default, | |
| 1468 | - ErrorBoundary: _errorBoundary.default, | |
| 1469 | - Heading: _heading.default, | |
| 1470 | - GoProButton: _goProButton.default, | |
| 1471 | - Grid: _grid.default, | |
| 1472 | - Icon: _icon.default, | |
| 1473 | - List: _list.default, | |
| 1474 | - Menu: _menu.default, | |
| 1475 | - MenuItem: _menuItem.default, | |
| 1476 | - Modal: _modal.Modal, | |
| 1477 | - ModalProvider: _modal.default, | |
| 1478 | - NotFound: _notFound.default, | |
| 1479 | - Notice: _notice.default, | |
| 1480 | - Page: _page.default, | |
| 1481 | - Popover: _popover.default, | |
| 1482 | - Select: _select.default, | |
| 1483 | - Select2: _select2.default, | |
| 1484 | - Text: _text.default, | |
| 1485 | - UploadFile: _uploadFile.default, | |
| 1486 | - InlineLink: _inlineLink.default | |
| 1840 | +/***/ }), | |
| 1841 | +/* 95 */ | |
| 1842 | +/***/ (function(module, exports, __webpack_require__) { | |
| 1843 | + | |
| 1844 | +"use strict"; | |
| 1845 | + | |
| 1846 | +__webpack_require__(190); | |
| 1847 | +var redefine = __webpack_require__(37); | |
| 1848 | +var hide = __webpack_require__(29); | |
| 1849 | +var fails = __webpack_require__(33); | |
| 1850 | +var defined = __webpack_require__(42); | |
| 1851 | +var wks = __webpack_require__(12); | |
| 1852 | +var regexpExec = __webpack_require__(90); | |
| 1853 | + | |
| 1854 | +var SPECIES = wks('species'); | |
| 1855 | + | |
| 1856 | +var REPLACE_SUPPORTS_NAMED_GROUPS = !fails(function () { | |
| 1857 | + // #replace needs built-in support for named groups. | |
| 1858 | + // #match works fine because it just return the exec results, even if it has | |
| 1859 | + // a "grops" property. | |
| 1860 | + var re = /./; | |
| 1861 | + re.exec = function () { | |
| 1862 | + var result = []; | |
| 1863 | + result.groups = { a: '7' }; | |
| 1864 | + return result; | |
| 1865 | + }; | |
| 1866 | + return ''.replace(re, '$<a>') !== '7'; | |
| 1867 | +}); | |
| 1868 | + | |
| 1869 | +var SPLIT_WORKS_WITH_OVERWRITTEN_EXEC = (function () { | |
| 1870 | + // Chrome 51 has a buggy "split" implementation when RegExp#exec !== nativeExec | |
| 1871 | + var re = /(?:)/; | |
| 1872 | + var originalExec = re.exec; | |
| 1873 | + re.exec = function () { return originalExec.apply(this, arguments); }; | |
| 1874 | + var result = 'ab'.split(re); | |
| 1875 | + return result.length === 2 && result[0] === 'a' && result[1] === 'b'; | |
| 1876 | +})(); | |
| 1877 | + | |
| 1878 | +module.exports = function (KEY, length, exec) { | |
| 1879 | + var SYMBOL = wks(KEY); | |
| 1880 | + | |
| 1881 | + var DELEGATES_TO_SYMBOL = !fails(function () { | |
| 1882 | + // String methods call symbol-named RegEp methods | |
| 1883 | + var O = {}; | |
| 1884 | + O[SYMBOL] = function () { return 7; }; | |
| 1885 | + return ''[KEY](O) != 7; | |
| 1886 | + }); | |
| 1887 | + | |
| 1888 | + var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL ? !fails(function () { | |
| 1889 | + // Symbol-named RegExp methods call .exec | |
| 1890 | + var execCalled = false; | |
| 1891 | + var re = /a/; | |
| 1892 | + re.exec = function () { execCalled = true; return null; }; | |
| 1893 | + if (KEY === 'split') { | |
| 1894 | + // RegExp[@@split] doesn't call the regex's exec method, but first creates | |
| 1895 | + // a new one. We need to return the patched regex when creating the new one. | |
| 1896 | + re.constructor = {}; | |
| 1897 | + re.constructor[SPECIES] = function () { return re; }; | |
| 1898 | + } | |
| 1899 | + re[SYMBOL](''); | |
| 1900 | + return !execCalled; | |
| 1901 | + }) : undefined; | |
| 1902 | + | |
| 1903 | + if ( | |
| 1904 | + !DELEGATES_TO_SYMBOL || | |
| 1905 | + !DELEGATES_TO_EXEC || | |
| 1906 | + (KEY === 'replace' && !REPLACE_SUPPORTS_NAMED_GROUPS) || | |
| 1907 | + (KEY === 'split' && !SPLIT_WORKS_WITH_OVERWRITTEN_EXEC) | |
| 1908 | + ) { | |
| 1909 | + var nativeRegExpMethod = /./[SYMBOL]; | |
| 1910 | + var fns = exec( | |
| 1911 | + defined, | |
| 1912 | + SYMBOL, | |
| 1913 | + ''[KEY], | |
| 1914 | + function maybeCallNative(nativeMethod, regexp, str, arg2, forceStringMethod) { | |
| 1915 | + if (regexp.exec === regexpExec) { | |
| 1916 | + if (DELEGATES_TO_SYMBOL && !forceStringMethod) { | |
| 1917 | + // The native String method already delegates to @@method (this | |
| 1918 | + // polyfilled function), leasing to infinite recursion. | |
| 1919 | + // We avoid it by directly calling the native @@method method. | |
| 1920 | + return { done: true, value: nativeRegExpMethod.call(regexp, str, arg2) }; | |
| 1921 | + } | |
| 1922 | + return { done: true, value: nativeMethod.call(str, regexp, arg2) }; | |
| 1923 | + } | |
| 1924 | + return { done: false }; | |
| 1925 | + } | |
| 1926 | + ); | |
| 1927 | + var strfn = fns[0]; | |
| 1928 | + var rxfn = fns[1]; | |
| 1929 | + | |
| 1930 | + redefine(String.prototype, KEY, strfn); | |
| 1931 | + hide(RegExp.prototype, SYMBOL, length == 2 | |
| 1932 | + // 21.2.5.8 RegExp.prototype[@@replace](string, replaceValue) | |
| 1933 | + // 21.2.5.11 RegExp.prototype[@@split](string, limit) | |
| 1934 | + ? function (string, arg) { return rxfn.call(string, this, arg); } | |
| 1935 | + // 21.2.5.6 RegExp.prototype[@@match](string) | |
| 1936 | + // 21.2.5.9 RegExp.prototype[@@search](string) | |
| 1937 | + : function (string) { return rxfn.call(string, this); } | |
| 1938 | + ); | |
| 1939 | + } | |
| 1487 | 1940 | }; |
| 1488 | -var components = exports.components = { | |
| 1489 | - UnfilteredFilesDialog: _unfilteredFilesDialog.default | |
| 1941 | + | |
| 1942 | + | |
| 1943 | +/***/ }), | |
| 1944 | +/* 96 */ | |
| 1945 | +/***/ (function(module, exports, __webpack_require__) { | |
| 1946 | + | |
| 1947 | +// 7.1.13 ToObject(argument) | |
| 1948 | +var defined = __webpack_require__(42); | |
| 1949 | +module.exports = function (it) { | |
| 1950 | + return Object(defined(it)); | |
| 1490 | 1951 | }; |
| 1491 | -var hooks = exports.hooks = { | |
| 1492 | - useAjax: _useAjax.default, | |
| 1493 | - useAction: _useAction.default, | |
| 1494 | - usePageTitle: _usePageTitle.default, | |
| 1495 | - useQueryParams: _useQueryParams.default, | |
| 1496 | - useIntroduction: _useIntroduction.default, | |
| 1497 | - useConfirmAction: _useConfirmAction.default | |
| 1952 | + | |
| 1953 | + | |
| 1954 | +/***/ }), | |
| 1955 | +/* 97 */ | |
| 1956 | +/***/ (function(module, exports, __webpack_require__) { | |
| 1957 | + | |
| 1958 | +// 7.2.2 IsArray(argument) | |
| 1959 | +var cof = __webpack_require__(56); | |
| 1960 | +module.exports = Array.isArray || function isArray(arg) { | |
| 1961 | + return cof(arg) == 'Array'; | |
| 1498 | 1962 | }; |
| 1499 | 1963 | |
| 1964 | + | |
| 1500 | 1965 | /***/ }), |
| 1966 | +/* 98 */ | |
| 1967 | +/***/ (function(module, exports, __webpack_require__) { | |
| 1501 | 1968 | |
| 1502 | -/***/ "../app/assets/js/pages/not-found.js": | |
| 1503 | -/*!*******************************************!*\ | |
| 1504 | - !*** ../app/assets/js/pages/not-found.js ***! | |
| 1505 | - \*******************************************/ | |
| 1506 | -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 1969 | +// to indexed object, toObject with fallback for non-array-like ES3 strings | |
| 1970 | +var IObject = __webpack_require__(120); | |
| 1971 | +var defined = __webpack_require__(42); | |
| 1972 | +module.exports = function (it) { | |
| 1973 | + return IObject(defined(it)); | |
| 1974 | +}; | |
| 1507 | 1975 | |
| 1508 | -"use strict"; | |
| 1509 | -/* provided dependency */ var __ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n")["__"]; | |
| 1510 | 1976 | |
| 1977 | +/***/ }), | |
| 1978 | +/* 99 */ | |
| 1979 | +/***/ (function(module, exports, __webpack_require__) { | |
| 1511 | 1980 | |
| 1512 | -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 1513 | -Object.defineProperty(exports, "__esModule", ({ | |
| 1514 | - value: true | |
| 1515 | -})); | |
| 1516 | -exports["default"] = NotFound; | |
| 1517 | -var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react")); | |
| 1518 | -var _page = _interopRequireDefault(__webpack_require__(/*! elementor-app/layout/page */ "../app/assets/js/layout/page.js")); | |
| 1519 | -function NotFound() { | |
| 1520 | - var config = { | |
| 1521 | - title: __('Not Found', 'elementor'), | |
| 1522 | - className: 'eps-app__not-found', | |
| 1523 | - content: /*#__PURE__*/_react.default.createElement("h1", null, " ", __('Not Found', 'elementor'), " "), | |
| 1524 | - sidebar: /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null) | |
| 1525 | - }; | |
| 1526 | - return /*#__PURE__*/_react.default.createElement(_page.default, config); | |
| 1527 | -} | |
| 1981 | +// 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O) | |
| 1982 | +var $keys = __webpack_require__(116); | |
| 1983 | +var hiddenKeys = __webpack_require__(78).concat('length', 'prototype'); | |
| 1528 | 1984 | |
| 1985 | +exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) { | |
| 1986 | + return $keys(O, hiddenKeys); | |
| 1987 | +}; | |
| 1988 | + | |
| 1989 | + | |
| 1529 | 1990 | /***/ }), |
| 1991 | +/* 100 */ | |
| 1992 | +/***/ (function(module, exports) { | |
| 1530 | 1993 | |
| 1531 | -/***/ "../app/assets/js/router.js": | |
| 1532 | -/*!**********************************!*\ | |
| 1533 | - !*** ../app/assets/js/router.js ***! | |
| 1534 | - \**********************************/ | |
| 1535 | -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 1536 | 1994 | |
| 1537 | -"use strict"; | |
| 1538 | -/* provided dependency */ var React = __webpack_require__(/*! react */ "react"); | |
| 1539 | 1995 | |
| 1996 | +/***/ }), | |
| 1997 | +/* 101 */ | |
| 1998 | +/***/ (function(module, exports, __webpack_require__) { | |
| 1540 | 1999 | |
| 1541 | -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 1542 | -Object.defineProperty(exports, "__esModule", ({ | |
| 1543 | - value: true | |
| 1544 | -})); | |
| 1545 | -exports["default"] = void 0; | |
| 1546 | -var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); | |
| 1547 | -var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); | |
| 1548 | -var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "../node_modules/@babel/runtime/helpers/defineProperty.js")); | |
| 1549 | -/** | |
| 1550 | - * App Router | |
| 1551 | - * | |
| 1552 | - * TODO: Temporary solution for routing extensibility. | |
| 1553 | - */ | |
| 1554 | -var Router = /*#__PURE__*/function () { | |
| 1555 | - function Router() { | |
| 1556 | - (0, _classCallCheck2.default)(this, Router); | |
| 1557 | - /** | |
| 1558 | - * @type {*[]} | |
| 1559 | - */ | |
| 1560 | - (0, _defineProperty2.default)(this, "routes", []); | |
| 1561 | - (0, _defineProperty2.default)(this, "history", null); | |
| 1562 | - } | |
| 1563 | - return (0, _createClass2.default)(Router, [{ | |
| 1564 | - key: "addRoute", | |
| 1565 | - value: | |
| 1566 | - /** | |
| 1567 | - * | |
| 1568 | - * @param {{path: string, component: Object, props: Object}} route | |
| 1569 | - */ | |
| 1570 | - function addRoute(route) { | |
| 1571 | - this.routes.push(route); | |
| 1572 | - } | |
| 1573 | - }, { | |
| 1574 | - key: "getRoutes", | |
| 1575 | - value: function getRoutes() { | |
| 1576 | - return this.routes.map(function (route) { | |
| 1577 | - var props = route.props || {}; | |
| 1578 | - // Use the path as a key, and add it as a prop. | |
| 1579 | - props.path = props.key = route.path; | |
| 1580 | - return React.createElement(route.component, props); | |
| 1581 | - }); | |
| 1582 | - } | |
| 1583 | - }]); | |
| 1584 | -}(); | |
| 1585 | -var router = new Router(); | |
| 2000 | +// getting tag from 19.1.3.6 Object.prototype.toString() | |
| 2001 | +var cof = __webpack_require__(56); | |
| 2002 | +var TAG = __webpack_require__(10)('toStringTag'); | |
| 2003 | +// ES3 wrong here | |
| 2004 | +var ARG = cof(function () { return arguments; }()) == 'Arguments'; | |
| 1586 | 2005 | |
| 1587 | -// Make router available for use within packages. | |
| 1588 | -window.elementorAppPackages = { | |
| 1589 | - router: router | |
| 2006 | +// fallback for IE11 Script Access Denied error | |
| 2007 | +var tryGet = function (it, key) { | |
| 2008 | + try { | |
| 2009 | + return it[key]; | |
| 2010 | + } catch (e) { /* empty */ } | |
| 1590 | 2011 | }; |
| 1591 | -var _default = exports["default"] = router; | |
| 1592 | 2012 | |
| 2013 | +module.exports = function (it) { | |
| 2014 | + var O, T, B; | |
| 2015 | + return it === undefined ? 'Undefined' : it === null ? 'Null' | |
| 2016 | + // @@toStringTag case | |
| 2017 | + : typeof (T = tryGet(O = Object(it), TAG)) == 'string' ? T | |
| 2018 | + // builtinTag case | |
| 2019 | + : ARG ? cof(O) | |
| 2020 | + // ES3 arguments fallback | |
| 2021 | + : (B = cof(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : B; | |
| 2022 | +}; | |
| 2023 | + | |
| 2024 | + | |
| 1593 | 2025 | /***/ }), |
| 2026 | +/* 102 */ | |
| 2027 | +/***/ (function(module, exports, __webpack_require__) { | |
| 1594 | 2028 | |
| 1595 | -/***/ "../app/assets/js/ui/atoms/box.js": | |
| 1596 | -/*!****************************************!*\ | |
| 1597 | - !*** ../app/assets/js/ui/atoms/box.js ***! | |
| 1598 | - \****************************************/ | |
| 1599 | -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 2029 | +var arrayWithHoles = __webpack_require__(247); | |
| 1600 | 2030 | |
| 1601 | -"use strict"; | |
| 1602 | -/* provided dependency */ var PropTypes = __webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js"); | |
| 2031 | +var iterableToArrayLimit = __webpack_require__(248); | |
| 1603 | 2032 | |
| 2033 | +var unsupportedIterableToArray = __webpack_require__(187); | |
| 1604 | 2034 | |
| 1605 | -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 1606 | -Object.defineProperty(exports, "__esModule", ({ | |
| 1607 | - value: true | |
| 1608 | -})); | |
| 1609 | -exports["default"] = Box; | |
| 1610 | -var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react")); | |
| 1611 | -var _utils = __webpack_require__(/*! elementor-app/utils/utils.js */ "../app/assets/js/utils/utils.js"); | |
| 1612 | -__webpack_require__(/*! ./box.scss */ "../app/assets/js/ui/atoms/box.scss"); | |
| 1613 | -function Box(props) { | |
| 1614 | - var baseClassName = 'eps-box', | |
| 1615 | - classes = [baseClassName, props.className], | |
| 1616 | - style = {}; | |
| 1617 | - if (Object.prototype.hasOwnProperty.call(props, 'padding')) { | |
| 1618 | - style['--eps-box-padding'] = (0, _utils.pxToRem)(props.padding); | |
| 1619 | - classes.push(baseClassName + '--padding'); | |
| 1620 | - } | |
| 1621 | - return /*#__PURE__*/_react.default.createElement("div", { | |
| 1622 | - style: style, | |
| 1623 | - className: (0, _utils.arrayToClassName)(classes) | |
| 1624 | - }, props.children); | |
| 2035 | +var nonIterableRest = __webpack_require__(251); | |
| 2036 | + | |
| 2037 | +function _slicedToArray(arr, i) { | |
| 2038 | + return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest(); | |
| 1625 | 2039 | } |
| 1626 | -Box.propTypes = { | |
| 1627 | - className: PropTypes.string, | |
| 1628 | - padding: PropTypes.string, | |
| 1629 | - children: PropTypes.oneOfType([PropTypes.string, PropTypes.object, PropTypes.arrayOf(PropTypes.object)]).isRequired | |
| 2040 | + | |
| 2041 | +module.exports = _slicedToArray; | |
| 2042 | + | |
| 2043 | +/***/ }), | |
| 2044 | +/* 103 */ | |
| 2045 | +/***/ (function(module, exports) { | |
| 2046 | + | |
| 2047 | +module.exports = function (bitmap, value) { | |
| 2048 | + return { | |
| 2049 | + enumerable: !(bitmap & 1), | |
| 2050 | + configurable: !(bitmap & 2), | |
| 2051 | + writable: !(bitmap & 4), | |
| 2052 | + value: value | |
| 2053 | + }; | |
| 1630 | 2054 | }; |
| 1631 | -Box.defaultProps = { | |
| 1632 | - className: '' | |
| 2055 | + | |
| 2056 | + | |
| 2057 | +/***/ }), | |
| 2058 | +/* 104 */ | |
| 2059 | +/***/ (function(module, exports, __webpack_require__) { | |
| 2060 | + | |
| 2061 | +// fallback for non-array-like ES3 and non-enumerable old V8 strings | |
| 2062 | +var cof = __webpack_require__(56); | |
| 2063 | +// eslint-disable-next-line no-prototype-builtins | |
| 2064 | +module.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) { | |
| 2065 | + return cof(it) == 'String' ? it.split('') : Object(it); | |
| 1633 | 2066 | }; |
| 1634 | 2067 | |
| 2068 | + | |
| 1635 | 2069 | /***/ }), |
| 2070 | +/* 105 */ | |
| 2071 | +/***/ (function(module, exports, __webpack_require__) { | |
| 1636 | 2072 | |
| 1637 | -/***/ "../app/assets/js/ui/atoms/box.scss": | |
| 1638 | -/*!******************************************!*\ | |
| 1639 | - !*** ../app/assets/js/ui/atoms/box.scss ***! | |
| 1640 | - \******************************************/ | |
| 1641 | -/***/ (() => { | |
| 2073 | +"use strict"; | |
| 1642 | 2074 | |
| 2075 | +var at = __webpack_require__(144)(true); | |
| 1643 | 2076 | |
| 2077 | + // `AdvanceStringIndex` abstract operation | |
| 2078 | +// https://tc39.github.io/ecma262/#sec-advancestringindex | |
| 2079 | +module.exports = function (S, index, unicode) { | |
| 2080 | + return index + (unicode ? at(S, index).length : 1); | |
| 2081 | +}; | |
| 1644 | 2082 | |
| 2083 | + | |
| 1645 | 2084 | /***/ }), |
| 2085 | +/* 106 */ | |
| 2086 | +/***/ (function(module, exports, __webpack_require__) { | |
| 1646 | 2087 | |
| 1647 | -/***/ "../app/assets/js/ui/atoms/checkbox.js": | |
| 1648 | -/*!*********************************************!*\ | |
| 1649 | - !*** ../app/assets/js/ui/atoms/checkbox.js ***! | |
| 1650 | - \*********************************************/ | |
| 1651 | -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 2088 | +"use strict"; | |
| 1652 | 2089 | |
| 2090 | +// 21.2.5.3 get RegExp.prototype.flags | |
| 2091 | +var anObject = __webpack_require__(18); | |
| 2092 | +module.exports = function () { | |
| 2093 | + var that = anObject(this); | |
| 2094 | + var result = ''; | |
| 2095 | + if (that.global) result += 'g'; | |
| 2096 | + if (that.ignoreCase) result += 'i'; | |
| 2097 | + if (that.multiline) result += 'm'; | |
| 2098 | + if (that.unicode) result += 'u'; | |
| 2099 | + if (that.sticky) result += 'y'; | |
| 2100 | + return result; | |
| 2101 | +}; | |
| 2102 | + | |
| 2103 | + | |
| 2104 | +/***/ }), | |
| 2105 | +/* 107 */ | |
| 2106 | +/***/ (function(module, exports, __webpack_require__) { | |
| 2107 | + | |
| 2108 | +module.exports = __webpack_require__(168); | |
| 2109 | + | |
| 2110 | +/***/ }), | |
| 2111 | +/* 108 */ | |
| 2112 | +/***/ (function(module, exports, __webpack_require__) { | |
| 2113 | + | |
| 1653 | 2114 | "use strict"; |
| 1654 | -/* provided dependency */ var PropTypes = __webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js"); | |
| 1655 | 2115 | |
| 2116 | +var LIBRARY = __webpack_require__(47); | |
| 2117 | +var $export = __webpack_require__(7); | |
| 2118 | +var redefine = __webpack_require__(93); | |
| 2119 | +var hide = __webpack_require__(24); | |
| 2120 | +var Iterators = __webpack_require__(35); | |
| 2121 | +var $iterCreate = __webpack_require__(174); | |
| 2122 | +var setToStringTag = __webpack_require__(53); | |
| 2123 | +var getPrototypeOf = __webpack_require__(64); | |
| 2124 | +var ITERATOR = __webpack_require__(10)('iterator'); | |
| 2125 | +var BUGGY = !([].keys && 'next' in [].keys()); // Safari has buggy iterators w/o `next` | |
| 2126 | +var FF_ITERATOR = '@@iterator'; | |
| 2127 | +var KEYS = 'keys'; | |
| 2128 | +var VALUES = 'values'; | |
| 1656 | 2129 | |
| 1657 | -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 1658 | -Object.defineProperty(exports, "__esModule", ({ | |
| 1659 | - value: true | |
| 1660 | -})); | |
| 1661 | -exports["default"] = Checkbox; | |
| 1662 | -var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react")); | |
| 1663 | -var _utils = __webpack_require__(/*! elementor-app/utils/utils.js */ "../app/assets/js/utils/utils.js"); | |
| 1664 | -__webpack_require__(/*! ./checkbox.scss */ "../app/assets/js/ui/atoms/checkbox.scss"); | |
| 1665 | -function Checkbox(_ref) { | |
| 1666 | - var className = _ref.className, | |
| 1667 | - checked = _ref.checked, | |
| 1668 | - rounded = _ref.rounded, | |
| 1669 | - indeterminate = _ref.indeterminate, | |
| 1670 | - error = _ref.error, | |
| 1671 | - disabled = _ref.disabled, | |
| 1672 | - onChange = _ref.onChange, | |
| 1673 | - id = _ref.id; | |
| 1674 | - var baseClassName = 'eps-checkbox', | |
| 1675 | - classes = [baseClassName, className]; | |
| 1676 | - if (rounded) { | |
| 1677 | - classes.push(baseClassName + '--rounded'); | |
| 2130 | +var returnThis = function () { return this; }; | |
| 2131 | + | |
| 2132 | +module.exports = function (Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED) { | |
| 2133 | + $iterCreate(Constructor, NAME, next); | |
| 2134 | + var getMethod = function (kind) { | |
| 2135 | + if (!BUGGY && kind in proto) return proto[kind]; | |
| 2136 | + switch (kind) { | |
| 2137 | + case KEYS: return function keys() { return new Constructor(this, kind); }; | |
| 2138 | + case VALUES: return function values() { return new Constructor(this, kind); }; | |
| 2139 | + } return function entries() { return new Constructor(this, kind); }; | |
| 2140 | + }; | |
| 2141 | + var TAG = NAME + ' Iterator'; | |
| 2142 | + var DEF_VALUES = DEFAULT == VALUES; | |
| 2143 | + var VALUES_BUG = false; | |
| 2144 | + var proto = Base.prototype; | |
| 2145 | + var $native = proto[ITERATOR] || proto[FF_ITERATOR] || DEFAULT && proto[DEFAULT]; | |
| 2146 | + var $default = $native || getMethod(DEFAULT); | |
| 2147 | + var $entries = DEFAULT ? !DEF_VALUES ? $default : getMethod('entries') : undefined; | |
| 2148 | + var $anyNative = NAME == 'Array' ? proto.entries || $native : $native; | |
| 2149 | + var methods, key, IteratorPrototype; | |
| 2150 | + // Fix native | |
| 2151 | + if ($anyNative) { | |
| 2152 | + IteratorPrototype = getPrototypeOf($anyNative.call(new Base())); | |
| 2153 | + if (IteratorPrototype !== Object.prototype && IteratorPrototype.next) { | |
| 2154 | + // Set @@toStringTag to native iterators | |
| 2155 | + setToStringTag(IteratorPrototype, TAG, true); | |
| 2156 | + // fix for some old engines | |
| 2157 | + if (!LIBRARY && typeof IteratorPrototype[ITERATOR] != 'function') hide(IteratorPrototype, ITERATOR, returnThis); | |
| 2158 | + } | |
| 1678 | 2159 | } |
| 1679 | - if (indeterminate) { | |
| 1680 | - classes.push(baseClassName + '--indeterminate'); | |
| 2160 | + // fix Array#{values, @@iterator}.name in V8 / FF | |
| 2161 | + if (DEF_VALUES && $native && $native.name !== VALUES) { | |
| 2162 | + VALUES_BUG = true; | |
| 2163 | + $default = function values() { return $native.call(this); }; | |
| 1681 | 2164 | } |
| 1682 | - if (error) { | |
| 1683 | - classes.push(baseClassName + '--error'); | |
| 2165 | + // Define iterator | |
| 2166 | + if ((!LIBRARY || FORCED) && (BUGGY || VALUES_BUG || !proto[ITERATOR])) { | |
| 2167 | + hide(proto, ITERATOR, $default); | |
| 1684 | 2168 | } |
| 1685 | - return /*#__PURE__*/_react.default.createElement("input", { | |
| 1686 | - className: (0, _utils.arrayToClassName)(classes), | |
| 1687 | - type: "checkbox", | |
| 1688 | - checked: checked, | |
| 1689 | - disabled: disabled, | |
| 1690 | - onChange: onChange, | |
| 1691 | - id: id | |
| 1692 | - }); | |
| 1693 | -} | |
| 1694 | -Checkbox.propTypes = { | |
| 1695 | - className: PropTypes.string, | |
| 1696 | - checked: PropTypes.bool, | |
| 1697 | - disabled: PropTypes.bool, | |
| 1698 | - indeterminate: PropTypes.bool, | |
| 1699 | - rounded: PropTypes.bool, | |
| 1700 | - error: PropTypes.bool, | |
| 1701 | - onChange: PropTypes.func, | |
| 1702 | - id: PropTypes.string | |
| 2169 | + // Plug for library | |
| 2170 | + Iterators[NAME] = $default; | |
| 2171 | + Iterators[TAG] = returnThis; | |
| 2172 | + if (DEFAULT) { | |
| 2173 | + methods = { | |
| 2174 | + values: DEF_VALUES ? $default : getMethod(VALUES), | |
| 2175 | + keys: IS_SET ? $default : getMethod(KEYS), | |
| 2176 | + entries: $entries | |
| 2177 | + }; | |
| 2178 | + if (FORCED) for (key in methods) { | |
| 2179 | + if (!(key in proto)) redefine(proto, key, methods[key]); | |
| 2180 | + } else $export($export.P + $export.F * (BUGGY || VALUES_BUG), NAME, methods); | |
| 2181 | + } | |
| 2182 | + return methods; | |
| 1703 | 2183 | }; |
| 1704 | -Checkbox.defaultProps = { | |
| 1705 | - className: '', | |
| 1706 | - checked: null, | |
| 1707 | - disabled: false, | |
| 1708 | - indeterminate: false, | |
| 1709 | - error: false, | |
| 1710 | - onChange: function onChange() {} | |
| 2184 | + | |
| 2185 | + | |
| 2186 | +/***/ }), | |
| 2187 | +/* 109 */ | |
| 2188 | +/***/ (function(module, exports, __webpack_require__) { | |
| 2189 | + | |
| 2190 | +var isObject = __webpack_require__(30); | |
| 2191 | +var document = __webpack_require__(17).document; | |
| 2192 | +// typeof document.createElement is 'object' in old IE | |
| 2193 | +var is = isObject(document) && isObject(document.createElement); | |
| 2194 | +module.exports = function (it) { | |
| 2195 | + return is ? document.createElement(it) : {}; | |
| 1711 | 2196 | }; |
| 1712 | 2197 | |
| 2198 | + | |
| 1713 | 2199 | /***/ }), |
| 2200 | +/* 110 */ | |
| 2201 | +/***/ (function(module, exports) { | |
| 1714 | 2202 | |
| 1715 | -/***/ "../app/assets/js/ui/atoms/checkbox.scss": | |
| 1716 | -/*!***********************************************!*\ | |
| 1717 | - !*** ../app/assets/js/ui/atoms/checkbox.scss ***! | |
| 1718 | - \***********************************************/ | |
| 1719 | -/***/ (() => { | |
| 2203 | +module.exports = false; | |
| 1720 | 2204 | |
| 1721 | 2205 | |
| 2206 | +/***/ }), | |
| 2207 | +/* 111 */ | |
| 2208 | +/***/ (function(module, exports, __webpack_require__) { | |
| 1722 | 2209 | |
| 2210 | +module.exports = __webpack_require__(177); | |
| 2211 | + | |
| 1723 | 2212 | /***/ }), |
| 2213 | +/* 112 */ | |
| 2214 | +/***/ (function(module, exports, __webpack_require__) { | |
| 1724 | 2215 | |
| 1725 | -/***/ "../app/assets/js/ui/atoms/css-grid.js": | |
| 1726 | -/*!*********************************************!*\ | |
| 1727 | - !*** ../app/assets/js/ui/atoms/css-grid.js ***! | |
| 1728 | - \*********************************************/ | |
| 1729 | -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 2216 | +var classof = __webpack_require__(101); | |
| 2217 | +var ITERATOR = __webpack_require__(10)('iterator'); | |
| 2218 | +var Iterators = __webpack_require__(35); | |
| 2219 | +module.exports = __webpack_require__(6).getIteratorMethod = function (it) { | |
| 2220 | + if (it != undefined) return it[ITERATOR] | |
| 2221 | + || it['@@iterator'] | |
| 2222 | + || Iterators[classof(it)]; | |
| 2223 | +}; | |
| 1730 | 2224 | |
| 1731 | -"use strict"; | |
| 1732 | -/* provided dependency */ var PropTypes = __webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js"); | |
| 1733 | 2225 | |
| 2226 | +/***/ }), | |
| 2227 | +/* 113 */ | |
| 2228 | +/***/ (function(module, exports, __webpack_require__) { | |
| 1734 | 2229 | |
| 1735 | -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 1736 | -Object.defineProperty(exports, "__esModule", ({ | |
| 1737 | - value: true | |
| 1738 | -})); | |
| 1739 | -exports["default"] = CssGrid; | |
| 1740 | -var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react")); | |
| 1741 | -var _utils = __webpack_require__(/*! ../../utils/utils */ "../app/assets/js/utils/utils.js"); | |
| 1742 | -__webpack_require__(/*! ./css-grid.scss */ "../app/assets/js/ui/atoms/css-grid.scss"); | |
| 1743 | -function CssGrid(props) { | |
| 1744 | - var gridStyle = { | |
| 1745 | - '--eps-grid-columns': props.columns, | |
| 1746 | - '--eps-grid-spacing': (0, _utils.pxToRem)(props.spacing), | |
| 1747 | - '--eps-grid-col-min-width': (0, _utils.pxToRem)(props.colMinWidth), | |
| 1748 | - '--eps-grid-col-max-width': (0, _utils.pxToRem)(props.colMaxWidth) | |
| 1749 | - }; | |
| 1750 | - return /*#__PURE__*/_react.default.createElement("div", { | |
| 1751 | - style: gridStyle, | |
| 1752 | - className: "eps-css-grid ".concat(props.className) | |
| 1753 | - }, props.children); | |
| 1754 | -} | |
| 1755 | -CssGrid.propTypes = { | |
| 1756 | - className: PropTypes.string, | |
| 1757 | - children: PropTypes.any.isRequired, | |
| 1758 | - columns: PropTypes.number, | |
| 1759 | - spacing: PropTypes.number, | |
| 1760 | - colMinWidth: PropTypes.number, | |
| 1761 | - colMaxWidth: PropTypes.number | |
| 2230 | +// getting tag from 19.1.3.6 Object.prototype.toString() | |
| 2231 | +var cof = __webpack_require__(46); | |
| 2232 | +var TAG = __webpack_require__(12)('toStringTag'); | |
| 2233 | +// ES3 wrong here | |
| 2234 | +var ARG = cof(function () { return arguments; }()) == 'Arguments'; | |
| 2235 | + | |
| 2236 | +// fallback for IE11 Script Access Denied error | |
| 2237 | +var tryGet = function (it, key) { | |
| 2238 | + try { | |
| 2239 | + return it[key]; | |
| 2240 | + } catch (e) { /* empty */ } | |
| 1762 | 2241 | }; |
| 1763 | -CssGrid.defaultProps = { | |
| 1764 | - spacing: 24, | |
| 1765 | - className: '' | |
| 2242 | + | |
| 2243 | +module.exports = function (it) { | |
| 2244 | + var O, T, B; | |
| 2245 | + return it === undefined ? 'Undefined' : it === null ? 'Null' | |
| 2246 | + // @@toStringTag case | |
| 2247 | + : typeof (T = tryGet(O = Object(it), TAG)) == 'string' ? T | |
| 2248 | + // builtinTag case | |
| 2249 | + : ARG ? cof(O) | |
| 2250 | + // ES3 arguments fallback | |
| 2251 | + : (B = cof(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : B; | |
| 1766 | 2252 | }; |
| 1767 | 2253 | |
| 2254 | + | |
| 1768 | 2255 | /***/ }), |
| 2256 | +/* 114 */ | |
| 2257 | +/***/ (function(module, exports, __webpack_require__) { | |
| 1769 | 2258 | |
| 1770 | -/***/ "../app/assets/js/ui/atoms/css-grid.scss": | |
| 1771 | -/*!***********************************************!*\ | |
| 1772 | - !*** ../app/assets/js/ui/atoms/css-grid.scss ***! | |
| 1773 | - \***********************************************/ | |
| 1774 | -/***/ (() => { | |
| 2259 | +module.exports = !__webpack_require__(14) && !__webpack_require__(22)(function () { | |
| 2260 | + return Object.defineProperty(__webpack_require__(92)('div'), 'a', { get: function () { return 7; } }).a != 7; | |
| 2261 | +}); | |
| 1775 | 2262 | |
| 1776 | 2263 | |
| 2264 | +/***/ }), | |
| 2265 | +/* 115 */ | |
| 2266 | +/***/ (function(module, exports, __webpack_require__) { | |
| 1777 | 2267 | |
| 2268 | +module.exports = __webpack_require__(161); | |
| 2269 | + | |
| 1778 | 2270 | /***/ }), |
| 2271 | +/* 116 */ | |
| 2272 | +/***/ (function(module, exports, __webpack_require__) { | |
| 1779 | 2273 | |
| 1780 | -/***/ "../app/assets/js/ui/atoms/drag-drop.js": | |
| 1781 | -/*!**********************************************!*\ | |
| 1782 | - !*** ../app/assets/js/ui/atoms/drag-drop.js ***! | |
| 1783 | - \**********************************************/ | |
| 1784 | -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 2274 | +var has = __webpack_require__(19); | |
| 2275 | +var toIObject = __webpack_require__(20); | |
| 2276 | +var arrayIndexOf = __webpack_require__(166)(false); | |
| 2277 | +var IE_PROTO = __webpack_require__(75)('IE_PROTO'); | |
| 1785 | 2278 | |
| 2279 | +module.exports = function (object, names) { | |
| 2280 | + var O = toIObject(object); | |
| 2281 | + var i = 0; | |
| 2282 | + var result = []; | |
| 2283 | + var key; | |
| 2284 | + for (key in O) if (key != IE_PROTO) has(O, key) && result.push(key); | |
| 2285 | + // Don't enum bug & hidden keys | |
| 2286 | + while (names.length > i) if (has(O, key = names[i++])) { | |
| 2287 | + ~arrayIndexOf(result, key) || result.push(key); | |
| 2288 | + } | |
| 2289 | + return result; | |
| 2290 | +}; | |
| 2291 | + | |
| 2292 | + | |
| 2293 | +/***/ }), | |
| 2294 | +/* 117 */, | |
| 2295 | +/* 118 */, | |
| 2296 | +/* 119 */ | |
| 2297 | +/***/ (function(module, exports, __webpack_require__) { | |
| 2298 | + | |
| 1786 | 2299 | "use strict"; |
| 1787 | -/* provided dependency */ var PropTypes = __webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js"); | |
| 1788 | 2300 | |
| 1789 | 2301 | |
| 1790 | -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 1791 | -var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ "../node_modules/@babel/runtime/helpers/typeof.js"); | |
| 1792 | -Object.defineProperty(exports, "__esModule", ({ | |
| 1793 | - value: true | |
| 1794 | -})); | |
| 1795 | -exports["default"] = DragDrop; | |
| 1796 | -var _react = _interopRequireWildcard(__webpack_require__(/*! react */ "react")); | |
| 1797 | -var _extends2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/extends */ "../node_modules/@babel/runtime/helpers/extends.js")); | |
| 1798 | -var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ "../node_modules/@babel/runtime/helpers/slicedToArray.js")); | |
| 1799 | -var _utils = __webpack_require__(/*! ../../utils/utils */ "../app/assets/js/utils/utils.js"); | |
| 1800 | -__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); } | |
| 1802 | -function DragDrop(props) { | |
| 1803 | - var _useState = (0, _react.useState)(false), | |
| 1804 | - _useState2 = (0, _slicedToArray2.default)(_useState, 2), | |
| 1805 | - isDragOver = _useState2[0], | |
| 1806 | - setIsDragOver = _useState2[1], | |
| 1807 | - getClassName = function getClassName() { | |
| 1808 | - var baseClassName = 'e-app-drag-drop', | |
| 1809 | - classes = [baseClassName, props.className]; | |
| 1810 | - if (isDragOver && !props.isLoading) { | |
| 1811 | - classes.push(baseClassName + '--drag-over'); | |
| 1812 | - } | |
| 1813 | - return (0, _utils.arrayToClassName)(classes); | |
| 2302 | +var anObject = __webpack_require__(18); | |
| 2303 | +var toLength = __webpack_require__(43); | |
| 2304 | +var advanceStringIndex = __webpack_require__(105); | |
| 2305 | +var regExpExec = __webpack_require__(94); | |
| 2306 | + | |
| 2307 | +// @@match logic | |
| 2308 | +__webpack_require__(95)('match', 1, function (defined, MATCH, $match, maybeCallNative) { | |
| 2309 | + return [ | |
| 2310 | + // `String.prototype.match` method | |
| 2311 | + // https://tc39.github.io/ecma262/#sec-string.prototype.match | |
| 2312 | + function match(regexp) { | |
| 2313 | + var O = defined(this); | |
| 2314 | + var fn = regexp == undefined ? undefined : regexp[MATCH]; | |
| 2315 | + return fn !== undefined ? fn.call(regexp, O) : new RegExp(regexp)[MATCH](String(O)); | |
| 1814 | 2316 | }, |
| 1815 | - onDragDropActions = function onDragDropActions(event) { | |
| 1816 | - event.preventDefault(); | |
| 1817 | - event.stopPropagation(); | |
| 1818 | - }, | |
| 1819 | - dragDropEvents = { | |
| 1820 | - onDrop: function onDrop(event) { | |
| 1821 | - onDragDropActions(event); | |
| 1822 | - setIsDragOver(false); | |
| 1823 | - if (props.onDrop) { | |
| 1824 | - props.onDrop(event); | |
| 1825 | - } | |
| 1826 | - }, | |
| 1827 | - onDragOver: function onDragOver(event) { | |
| 1828 | - onDragDropActions(event); | |
| 1829 | - setIsDragOver(true); | |
| 1830 | - if (props.onDragOver) { | |
| 1831 | - props.onDragOver(event); | |
| 1832 | - } | |
| 1833 | - }, | |
| 1834 | - onDragLeave: function onDragLeave(event) { | |
| 1835 | - onDragDropActions(event); | |
| 1836 | - setIsDragOver(false); | |
| 1837 | - if (props.onDragLeave) { | |
| 1838 | - props.onDragLeave(event); | |
| 1839 | - } | |
| 2317 | + // `RegExp.prototype[@@match]` method | |
| 2318 | + // https://tc39.github.io/ecma262/#sec-regexp.prototype-@@match | |
| 2319 | + function (regexp) { | |
| 2320 | + var res = maybeCallNative($match, regexp, this); | |
| 2321 | + if (res.done) return res.value; | |
| 2322 | + var rx = anObject(regexp); | |
| 2323 | + var S = String(this); | |
| 2324 | + if (!rx.global) return regExpExec(rx, S); | |
| 2325 | + var fullUnicode = rx.unicode; | |
| 2326 | + rx.lastIndex = 0; | |
| 2327 | + var A = []; | |
| 2328 | + var n = 0; | |
| 2329 | + var result; | |
| 2330 | + while ((result = regExpExec(rx, S)) !== null) { | |
| 2331 | + var matchStr = String(result[0]); | |
| 2332 | + A[n] = matchStr; | |
| 2333 | + if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode); | |
| 2334 | + n++; | |
| 1840 | 2335 | } |
| 1841 | - }; | |
| 1842 | - return /*#__PURE__*/_react.default.createElement("div", (0, _extends2.default)({}, dragDropEvents, { | |
| 1843 | - className: getClassName() | |
| 1844 | - }), props.children); | |
| 1845 | -} | |
| 1846 | -DragDrop.propTypes = { | |
| 1847 | - className: PropTypes.string, | |
| 1848 | - children: PropTypes.any, | |
| 1849 | - onDrop: PropTypes.func, | |
| 1850 | - onDragLeave: PropTypes.func, | |
| 1851 | - onDragOver: PropTypes.func, | |
| 1852 | - isLoading: PropTypes.bool | |
| 2336 | + return n === 0 ? null : A; | |
| 2337 | + } | |
| 2338 | + ]; | |
| 2339 | +}); | |
| 2340 | + | |
| 2341 | + | |
| 2342 | +/***/ }), | |
| 2343 | +/* 120 */ | |
| 2344 | +/***/ (function(module, exports, __webpack_require__) { | |
| 2345 | + | |
| 2346 | +// fallback for non-array-like ES3 and non-enumerable old V8 strings | |
| 2347 | +var cof = __webpack_require__(46); | |
| 2348 | +// eslint-disable-next-line no-prototype-builtins | |
| 2349 | +module.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) { | |
| 2350 | + return cof(it) == 'String' ? it.split('') : Object(it); | |
| 1853 | 2351 | }; |
| 1854 | -DragDrop.defaultProps = { | |
| 1855 | - className: '' | |
| 2352 | + | |
| 2353 | + | |
| 2354 | +/***/ }), | |
| 2355 | +/* 121 */ | |
| 2356 | +/***/ (function(module, exports, __webpack_require__) { | |
| 2357 | + | |
| 2358 | +var isObject = __webpack_require__(9); | |
| 2359 | +module.exports = function (it, TYPE) { | |
| 2360 | + if (!isObject(it) || it._t !== TYPE) throw TypeError('Incompatible receiver, ' + TYPE + ' required!'); | |
| 2361 | + return it; | |
| 1856 | 2362 | }; |
| 1857 | 2363 | |
| 2364 | + | |
| 1858 | 2365 | /***/ }), |
| 2366 | +/* 122 */ | |
| 2367 | +/***/ (function(module, exports, __webpack_require__) { | |
| 1859 | 2368 | |
| 1860 | -/***/ "../app/assets/js/ui/atoms/drag-drop.scss": | |
| 1861 | -/*!************************************************!*\ | |
| 1862 | - !*** ../app/assets/js/ui/atoms/drag-drop.scss ***! | |
| 1863 | - \************************************************/ | |
| 1864 | -/***/ (() => { | |
| 2369 | +// 7.2.8 IsRegExp(argument) | |
| 2370 | +var isObject = __webpack_require__(30); | |
| 2371 | +var cof = __webpack_require__(46); | |
| 2372 | +var MATCH = __webpack_require__(12)('match'); | |
| 2373 | +module.exports = function (it) { | |
| 2374 | + var isRegExp; | |
| 2375 | + return isObject(it) && ((isRegExp = it[MATCH]) !== undefined ? !!isRegExp : cof(it) == 'RegExp'); | |
| 2376 | +}; | |
| 1865 | 2377 | |
| 1866 | 2378 | |
| 2379 | +/***/ }), | |
| 2380 | +/* 123 */ | |
| 2381 | +/***/ (function(module, exports, __webpack_require__) { | |
| 1867 | 2382 | |
| 2383 | +// 7.1.1 ToPrimitive(input [, PreferredType]) | |
| 2384 | +var isObject = __webpack_require__(30); | |
| 2385 | +// instead of the ES6 spec version, we didn't implement @@toPrimitive case | |
| 2386 | +// and the second argument - flag - preferred type is a string | |
| 2387 | +module.exports = function (it, S) { | |
| 2388 | + if (!isObject(it)) return it; | |
| 2389 | + var fn, val; | |
| 2390 | + if (S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val; | |
| 2391 | + if (typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it))) return val; | |
| 2392 | + if (!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val; | |
| 2393 | + throw TypeError("Can't convert object to primitive value"); | |
| 2394 | +}; | |
| 2395 | + | |
| 2396 | + | |
| 1868 | 2397 | /***/ }), |
| 2398 | +/* 124 */ | |
| 2399 | +/***/ (function(module, exports, __webpack_require__) { | |
| 1869 | 2400 | |
| 1870 | -/***/ "../app/assets/js/ui/atoms/heading.js": | |
| 1871 | -/*!********************************************!*\ | |
| 1872 | - !*** ../app/assets/js/ui/atoms/heading.js ***! | |
| 1873 | - \********************************************/ | |
| 1874 | -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 2401 | +module.exports = __webpack_require__(191); | |
| 1875 | 2402 | |
| 1876 | -"use strict"; | |
| 1877 | -/* provided dependency */ var PropTypes = __webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js"); | |
| 2403 | +/***/ }), | |
| 2404 | +/* 125 */ | |
| 2405 | +/***/ (function(module, exports) { | |
| 1878 | 2406 | |
| 2407 | +module.exports = function (it, Constructor, name, forbiddenField) { | |
| 2408 | + if (!(it instanceof Constructor) || (forbiddenField !== undefined && forbiddenField in it)) { | |
| 2409 | + throw TypeError(name + ': incorrect invocation!'); | |
| 2410 | + } return it; | |
| 2411 | +}; | |
| 1879 | 2412 | |
| 1880 | -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 1881 | -Object.defineProperty(exports, "__esModule", ({ | |
| 1882 | - value: true | |
| 1883 | -})); | |
| 1884 | -exports["default"] = Heading; | |
| 1885 | -var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react")); | |
| 1886 | -var _utils = __webpack_require__(/*! ../../utils/utils */ "../app/assets/js/utils/utils.js"); | |
| 1887 | -function Heading(props) { | |
| 1888 | - var baseClassName = 'eps', | |
| 1889 | - classes = [props.className]; | |
| 1890 | - if (props.variant) { | |
| 1891 | - classes.push(baseClassName + '-' + props.variant); | |
| 1892 | - } | |
| 1893 | - var Element = function Element() { | |
| 1894 | - return _react.default.createElement(props.tag, { | |
| 1895 | - className: (0, _utils.arrayToClassName)(classes) | |
| 1896 | - }, props.children); | |
| 1897 | - }; | |
| 1898 | - return /*#__PURE__*/_react.default.createElement(Element, null); | |
| 1899 | -} | |
| 1900 | -Heading.propTypes = { | |
| 1901 | - className: PropTypes.string, | |
| 1902 | - children: PropTypes.oneOfType([PropTypes.string, PropTypes.object, PropTypes.arrayOf(PropTypes.object)]).isRequired, | |
| 1903 | - tag: PropTypes.oneOf(['h1', 'h2', 'h3', 'h4', 'h5', 'h6']), | |
| 1904 | - variant: PropTypes.oneOf(['display-1', 'display-2', 'display-3', 'display-4', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6']).isRequired | |
| 2413 | + | |
| 2414 | +/***/ }), | |
| 2415 | +/* 126 */ | |
| 2416 | +/***/ (function(module, exports, __webpack_require__) { | |
| 2417 | + | |
| 2418 | +var hide = __webpack_require__(24); | |
| 2419 | +module.exports = function (target, src, safe) { | |
| 2420 | + for (var key in src) { | |
| 2421 | + if (safe && target[key]) target[key] = src[key]; | |
| 2422 | + else hide(target, key, src[key]); | |
| 2423 | + } return target; | |
| 1905 | 2424 | }; |
| 1906 | -Heading.defaultProps = { | |
| 1907 | - className: '', | |
| 1908 | - tag: 'h1' | |
| 2425 | + | |
| 2426 | + | |
| 2427 | +/***/ }), | |
| 2428 | +/* 127 */, | |
| 2429 | +/* 128 */, | |
| 2430 | +/* 129 */ | |
| 2431 | +/***/ (function(module, exports, __webpack_require__) { | |
| 2432 | + | |
| 2433 | +module.exports = !__webpack_require__(27) && !__webpack_require__(33)(function () { | |
| 2434 | + return Object.defineProperty(__webpack_require__(109)('div'), 'a', { get: function () { return 7; } }).a != 7; | |
| 2435 | +}); | |
| 2436 | + | |
| 2437 | + | |
| 2438 | +/***/ }), | |
| 2439 | +/* 130 */, | |
| 2440 | +/* 131 */ | |
| 2441 | +/***/ (function(module, exports, __webpack_require__) { | |
| 2442 | + | |
| 2443 | +var document = __webpack_require__(8).document; | |
| 2444 | +module.exports = document && document.documentElement; | |
| 2445 | + | |
| 2446 | + | |
| 2447 | +/***/ }), | |
| 2448 | +/* 132 */ | |
| 2449 | +/***/ (function(module, exports) { | |
| 2450 | + | |
| 2451 | +// fast apply, http://jsperf.lnkit.com/fast-apply/5 | |
| 2452 | +module.exports = function (fn, args, that) { | |
| 2453 | + var un = that === undefined; | |
| 2454 | + switch (args.length) { | |
| 2455 | + case 0: return un ? fn() | |
| 2456 | + : fn.call(that); | |
| 2457 | + case 1: return un ? fn(args[0]) | |
| 2458 | + : fn.call(that, args[0]); | |
| 2459 | + case 2: return un ? fn(args[0], args[1]) | |
| 2460 | + : fn.call(that, args[0], args[1]); | |
| 2461 | + case 3: return un ? fn(args[0], args[1], args[2]) | |
| 2462 | + : fn.call(that, args[0], args[1], args[2]); | |
| 2463 | + case 4: return un ? fn(args[0], args[1], args[2], args[3]) | |
| 2464 | + : fn.call(that, args[0], args[1], args[2], args[3]); | |
| 2465 | + } return fn.apply(that, args); | |
| 1909 | 2466 | }; |
| 1910 | 2467 | |
| 2468 | + | |
| 1911 | 2469 | /***/ }), |
| 2470 | +/* 133 */, | |
| 2471 | +/* 134 */ | |
| 2472 | +/***/ (function(module, exports, __webpack_require__) { | |
| 1912 | 2473 | |
| 1913 | -/***/ "../app/assets/js/ui/atoms/icon.js": | |
| 1914 | -/*!*****************************************!*\ | |
| 1915 | - !*** ../app/assets/js/ui/atoms/icon.js ***! | |
| 1916 | - \*****************************************/ | |
| 1917 | -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 2474 | +module.exports = __webpack_require__(288); | |
| 1918 | 2475 | |
| 2476 | +/***/ }), | |
| 2477 | +/* 135 */ | |
| 2478 | +/***/ (function(module, exports, __webpack_require__) { | |
| 2479 | + | |
| 1919 | 2480 | "use strict"; |
| 1920 | -/* provided dependency */ var PropTypes = __webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js"); | |
| 1921 | 2481 | |
| 2482 | +// https://github.com/tc39/Array.prototype.includes | |
| 2483 | +var $export = __webpack_require__(34); | |
| 2484 | +var $includes = __webpack_require__(143)(true); | |
| 1922 | 2485 | |
| 1923 | -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 | -Object.defineProperty(exports, "__esModule", ({ | |
| 1926 | - value: true | |
| 1927 | -})); | |
| 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)); | |
| 2486 | +$export($export.P, 'Array', { | |
| 2487 | + includes: function includes(el /* , fromIndex = 0 */) { | |
| 2488 | + return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined); | |
| 2489 | + } | |
| 1941 | 2490 | }); |
| 1942 | -Icon.propTypes = { | |
| 1943 | - className: PropTypes.string.isRequired | |
| 2491 | + | |
| 2492 | +__webpack_require__(87)('includes'); | |
| 2493 | + | |
| 2494 | + | |
| 2495 | +/***/ }), | |
| 2496 | +/* 136 */ | |
| 2497 | +/***/ (function(module, exports, __webpack_require__) { | |
| 2498 | + | |
| 2499 | +var dP = __webpack_require__(15); | |
| 2500 | +var anObject = __webpack_require__(13); | |
| 2501 | +var getKeys = __webpack_require__(40); | |
| 2502 | + | |
| 2503 | +module.exports = __webpack_require__(14) ? Object.defineProperties : function defineProperties(O, Properties) { | |
| 2504 | + anObject(O); | |
| 2505 | + var keys = getKeys(Properties); | |
| 2506 | + var length = keys.length; | |
| 2507 | + var i = 0; | |
| 2508 | + var P; | |
| 2509 | + while (length > i) dP.f(O, P = keys[i++], Properties[P]); | |
| 2510 | + return O; | |
| 1944 | 2511 | }; |
| 1945 | -Icon.defaultProps = { | |
| 1946 | - className: '' | |
| 2512 | + | |
| 2513 | + | |
| 2514 | +/***/ }), | |
| 2515 | +/* 137 */ | |
| 2516 | +/***/ (function(module, exports, __webpack_require__) { | |
| 2517 | + | |
| 2518 | +var _Object$setPrototypeOf = __webpack_require__(115); | |
| 2519 | + | |
| 2520 | +function _setPrototypeOf(o, p) { | |
| 2521 | + module.exports = _setPrototypeOf = _Object$setPrototypeOf || function _setPrototypeOf(o, p) { | |
| 2522 | + o.__proto__ = p; | |
| 2523 | + return o; | |
| 2524 | + }; | |
| 2525 | + | |
| 2526 | + return _setPrototypeOf(o, p); | |
| 2527 | +} | |
| 2528 | + | |
| 2529 | +module.exports = _setPrototypeOf; | |
| 2530 | + | |
| 2531 | +/***/ }), | |
| 2532 | +/* 138 */ | |
| 2533 | +/***/ (function(module, exports, __webpack_require__) { | |
| 2534 | + | |
| 2535 | +// 0 -> Array#forEach | |
| 2536 | +// 1 -> Array#map | |
| 2537 | +// 2 -> Array#filter | |
| 2538 | +// 3 -> Array#some | |
| 2539 | +// 4 -> Array#every | |
| 2540 | +// 5 -> Array#find | |
| 2541 | +// 6 -> Array#findIndex | |
| 2542 | +var ctx = __webpack_require__(31); | |
| 2543 | +var IObject = __webpack_require__(104); | |
| 2544 | +var toObject = __webpack_require__(32); | |
| 2545 | +var toLength = __webpack_require__(69); | |
| 2546 | +var asc = __webpack_require__(245); | |
| 2547 | +module.exports = function (TYPE, $create) { | |
| 2548 | + var IS_MAP = TYPE == 1; | |
| 2549 | + var IS_FILTER = TYPE == 2; | |
| 2550 | + var IS_SOME = TYPE == 3; | |
| 2551 | + var IS_EVERY = TYPE == 4; | |
| 2552 | + var IS_FIND_INDEX = TYPE == 6; | |
| 2553 | + var NO_HOLES = TYPE == 5 || IS_FIND_INDEX; | |
| 2554 | + var create = $create || asc; | |
| 2555 | + return function ($this, callbackfn, that) { | |
| 2556 | + var O = toObject($this); | |
| 2557 | + var self = IObject(O); | |
| 2558 | + var f = ctx(callbackfn, that, 3); | |
| 2559 | + var length = toLength(self.length); | |
| 2560 | + var index = 0; | |
| 2561 | + var result = IS_MAP ? create($this, length) : IS_FILTER ? create($this, 0) : undefined; | |
| 2562 | + var val, res; | |
| 2563 | + for (;length > index; index++) if (NO_HOLES || index in self) { | |
| 2564 | + val = self[index]; | |
| 2565 | + res = f(val, index, O); | |
| 2566 | + if (TYPE) { | |
| 2567 | + if (IS_MAP) result[index] = res; // map | |
| 2568 | + else if (res) switch (TYPE) { | |
| 2569 | + case 3: return true; // some | |
| 2570 | + case 5: return val; // find | |
| 2571 | + case 6: return index; // findIndex | |
| 2572 | + case 2: result.push(val); // filter | |
| 2573 | + } else if (IS_EVERY) return false; // every | |
| 2574 | + } | |
| 2575 | + } | |
| 2576 | + return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : result; | |
| 2577 | + }; | |
| 1947 | 2578 | }; |
| 1948 | -var _default = exports["default"] = Icon; | |
| 1949 | 2579 | |
| 2580 | + | |
| 1950 | 2581 | /***/ }), |
| 2582 | +/* 139 */ | |
| 2583 | +/***/ (function(module, exports, __webpack_require__) { | |
| 1951 | 2584 | |
| 1952 | -/***/ "../app/assets/js/ui/atoms/select.js": | |
| 1953 | -/*!*******************************************!*\ | |
| 1954 | - !*** ../app/assets/js/ui/atoms/select.js ***! | |
| 1955 | - \*******************************************/ | |
| 1956 | -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 2585 | +module.exports = __webpack_require__(164); | |
| 1957 | 2586 | |
| 2587 | +/***/ }), | |
| 2588 | +/* 140 */ | |
| 2589 | +/***/ (function(module, exports, __webpack_require__) { | |
| 2590 | + | |
| 1958 | 2591 | "use strict"; |
| 1959 | -/* provided dependency */ var PropTypes = __webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js"); | |
| 1960 | 2592 | |
| 2593 | +// ECMAScript 6 symbols shim | |
| 2594 | +var global = __webpack_require__(8); | |
| 2595 | +var has = __webpack_require__(19); | |
| 2596 | +var DESCRIPTORS = __webpack_require__(14); | |
| 2597 | +var $export = __webpack_require__(7); | |
| 2598 | +var redefine = __webpack_require__(93); | |
| 2599 | +var META = __webpack_require__(70).KEY; | |
| 2600 | +var $fails = __webpack_require__(22); | |
| 2601 | +var shared = __webpack_require__(76); | |
| 2602 | +var setToStringTag = __webpack_require__(53); | |
| 2603 | +var uid = __webpack_require__(59); | |
| 2604 | +var wks = __webpack_require__(10); | |
| 2605 | +var wksExt = __webpack_require__(63); | |
| 2606 | +var wksDefine = __webpack_require__(79); | |
| 2607 | +var enumKeys = __webpack_require__(178); | |
| 2608 | +var isArray = __webpack_require__(97); | |
| 2609 | +var anObject = __webpack_require__(13); | |
| 2610 | +var isObject = __webpack_require__(9); | |
| 2611 | +var toObject = __webpack_require__(32); | |
| 2612 | +var toIObject = __webpack_require__(20); | |
| 2613 | +var toPrimitive = __webpack_require__(74); | |
| 2614 | +var createDesc = __webpack_require__(44); | |
| 2615 | +var _create = __webpack_require__(52); | |
| 2616 | +var gOPNExt = __webpack_require__(179); | |
| 2617 | +var $GOPD = __webpack_require__(51); | |
| 2618 | +var $GOPS = __webpack_require__(71); | |
| 2619 | +var $DP = __webpack_require__(15); | |
| 2620 | +var $keys = __webpack_require__(40); | |
| 2621 | +var gOPD = $GOPD.f; | |
| 2622 | +var dP = $DP.f; | |
| 2623 | +var gOPN = gOPNExt.f; | |
| 2624 | +var $Symbol = global.Symbol; | |
| 2625 | +var $JSON = global.JSON; | |
| 2626 | +var _stringify = $JSON && $JSON.stringify; | |
| 2627 | +var PROTOTYPE = 'prototype'; | |
| 2628 | +var HIDDEN = wks('_hidden'); | |
| 2629 | +var TO_PRIMITIVE = wks('toPrimitive'); | |
| 2630 | +var isEnum = {}.propertyIsEnumerable; | |
| 2631 | +var SymbolRegistry = shared('symbol-registry'); | |
| 2632 | +var AllSymbols = shared('symbols'); | |
| 2633 | +var OPSymbols = shared('op-symbols'); | |
| 2634 | +var ObjectProto = Object[PROTOTYPE]; | |
| 2635 | +var USE_NATIVE = typeof $Symbol == 'function' && !!$GOPS.f; | |
| 2636 | +var QObject = global.QObject; | |
| 2637 | +// Don't use setters in Qt Script, https://github.com/zloirock/core-js/issues/173 | |
| 2638 | +var setter = !QObject || !QObject[PROTOTYPE] || !QObject[PROTOTYPE].findChild; | |
| 1961 | 2639 | |
| 1962 | -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 1963 | -Object.defineProperty(exports, "__esModule", ({ | |
| 1964 | - value: true | |
| 1965 | -})); | |
| 1966 | -exports["default"] = Select; | |
| 1967 | -var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react")); | |
| 1968 | -function Select(props) { | |
| 1969 | - return /*#__PURE__*/_react.default.createElement("select", { | |
| 1970 | - multiple: props.multiple, | |
| 1971 | - className: props.className, | |
| 1972 | - value: props.value, | |
| 1973 | - onChange: props.onChange, | |
| 1974 | - ref: props.elRef, | |
| 1975 | - onClick: function onClick() { | |
| 1976 | - var _props$onClick; | |
| 1977 | - return (_props$onClick = props.onClick) === null || _props$onClick === void 0 ? void 0 : _props$onClick.call(props); | |
| 1978 | - } | |
| 1979 | - }, props.options.map(function (option) { | |
| 1980 | - return option.children ? /*#__PURE__*/_react.default.createElement("optgroup", { | |
| 1981 | - label: option.label, | |
| 1982 | - key: option.label | |
| 1983 | - }, option.children.map(function (childOption) { | |
| 1984 | - return /*#__PURE__*/_react.default.createElement("option", { | |
| 1985 | - key: childOption.value, | |
| 1986 | - value: childOption.value | |
| 1987 | - }, childOption.label); | |
| 1988 | - })) : /*#__PURE__*/_react.default.createElement("option", { | |
| 1989 | - key: option.value, | |
| 1990 | - value: option.value | |
| 1991 | - }, option.label); | |
| 1992 | - })); | |
| 1993 | -} | |
| 1994 | -Select.propTypes = { | |
| 1995 | - className: PropTypes.string, | |
| 1996 | - onChange: PropTypes.func, | |
| 1997 | - options: PropTypes.array, | |
| 1998 | - elRef: PropTypes.object, | |
| 1999 | - multiple: PropTypes.bool, | |
| 2000 | - value: PropTypes.oneOfType([PropTypes.array, PropTypes.string]), | |
| 2001 | - onClick: PropTypes.func | |
| 2640 | +// fallback for old Android, https://code.google.com/p/v8/issues/detail?id=687 | |
| 2641 | +var setSymbolDesc = DESCRIPTORS && $fails(function () { | |
| 2642 | + return _create(dP({}, 'a', { | |
| 2643 | + get: function () { return dP(this, 'a', { value: 7 }).a; } | |
| 2644 | + })).a != 7; | |
| 2645 | +}) ? function (it, key, D) { | |
| 2646 | + var protoDesc = gOPD(ObjectProto, key); | |
| 2647 | + if (protoDesc) delete ObjectProto[key]; | |
| 2648 | + dP(it, key, D); | |
| 2649 | + if (protoDesc && it !== ObjectProto) dP(ObjectProto, key, protoDesc); | |
| 2650 | +} : dP; | |
| 2651 | + | |
| 2652 | +var wrap = function (tag) { | |
| 2653 | + var sym = AllSymbols[tag] = _create($Symbol[PROTOTYPE]); | |
| 2654 | + sym._k = tag; | |
| 2655 | + return sym; | |
| 2002 | 2656 | }; |
| 2003 | -Select.defaultProps = { | |
| 2004 | - className: '', | |
| 2005 | - options: [] | |
| 2657 | + | |
| 2658 | +var isSymbol = USE_NATIVE && typeof $Symbol.iterator == 'symbol' ? function (it) { | |
| 2659 | + return typeof it == 'symbol'; | |
| 2660 | +} : function (it) { | |
| 2661 | + return it instanceof $Symbol; | |
| 2006 | 2662 | }; |
| 2007 | 2663 | |
| 2008 | -/***/ }), | |
| 2664 | +var $defineProperty = function defineProperty(it, key, D) { | |
| 2665 | + if (it === ObjectProto) $defineProperty(OPSymbols, key, D); | |
| 2666 | + anObject(it); | |
| 2667 | + key = toPrimitive(key, true); | |
| 2668 | + anObject(D); | |
| 2669 | + if (has(AllSymbols, key)) { | |
| 2670 | + if (!D.enumerable) { | |
| 2671 | + if (!has(it, HIDDEN)) dP(it, HIDDEN, createDesc(1, {})); | |
| 2672 | + it[HIDDEN][key] = true; | |
| 2673 | + } else { | |
| 2674 | + if (has(it, HIDDEN) && it[HIDDEN][key]) it[HIDDEN][key] = false; | |
| 2675 | + D = _create(D, { enumerable: createDesc(0, false) }); | |
| 2676 | + } return setSymbolDesc(it, key, D); | |
| 2677 | + } return dP(it, key, D); | |
| 2678 | +}; | |
| 2679 | +var $defineProperties = function defineProperties(it, P) { | |
| 2680 | + anObject(it); | |
| 2681 | + var keys = enumKeys(P = toIObject(P)); | |
| 2682 | + var i = 0; | |
| 2683 | + var l = keys.length; | |
| 2684 | + var key; | |
| 2685 | + while (l > i) $defineProperty(it, key = keys[i++], P[key]); | |
| 2686 | + return it; | |
| 2687 | +}; | |
| 2688 | +var $create = function create(it, P) { | |
| 2689 | + return P === undefined ? _create(it) : $defineProperties(_create(it), P); | |
| 2690 | +}; | |
| 2691 | +var $propertyIsEnumerable = function propertyIsEnumerable(key) { | |
| 2692 | + var E = isEnum.call(this, key = toPrimitive(key, true)); | |
| 2693 | + if (this === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key)) return false; | |
| 2694 | + return E || !has(this, key) || !has(AllSymbols, key) || has(this, HIDDEN) && this[HIDDEN][key] ? E : true; | |
| 2695 | +}; | |
| 2696 | +var $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(it, key) { | |
| 2697 | + it = toIObject(it); | |
| 2698 | + key = toPrimitive(key, true); | |
| 2699 | + if (it === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key)) return; | |
| 2700 | + var D = gOPD(it, key); | |
| 2701 | + if (D && has(AllSymbols, key) && !(has(it, HIDDEN) && it[HIDDEN][key])) D.enumerable = true; | |
| 2702 | + return D; | |
| 2703 | +}; | |
| 2704 | +var $getOwnPropertyNames = function getOwnPropertyNames(it) { | |
| 2705 | + var names = gOPN(toIObject(it)); | |
| 2706 | + var result = []; | |
| 2707 | + var i = 0; | |
| 2708 | + var key; | |
| 2709 | + while (names.length > i) { | |
| 2710 | + if (!has(AllSymbols, key = names[i++]) && key != HIDDEN && key != META) result.push(key); | |
| 2711 | + } return result; | |
| 2712 | +}; | |
| 2713 | +var $getOwnPropertySymbols = function getOwnPropertySymbols(it) { | |
| 2714 | + var IS_OP = it === ObjectProto; | |
| 2715 | + var names = gOPN(IS_OP ? OPSymbols : toIObject(it)); | |
| 2716 | + var result = []; | |
| 2717 | + var i = 0; | |
| 2718 | + var key; | |
| 2719 | + while (names.length > i) { | |
| 2720 | + if (has(AllSymbols, key = names[i++]) && (IS_OP ? has(ObjectProto, key) : true)) result.push(AllSymbols[key]); | |
| 2721 | + } return result; | |
| 2722 | +}; | |
| 2009 | 2723 | |
| 2010 | -/***/ "../app/assets/js/ui/atoms/text.js": | |
| 2011 | -/*!*****************************************!*\ | |
| 2012 | - !*** ../app/assets/js/ui/atoms/text.js ***! | |
| 2013 | - \*****************************************/ | |
| 2014 | -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 2724 | +// 19.4.1.1 Symbol([description]) | |
| 2725 | +if (!USE_NATIVE) { | |
| 2726 | + $Symbol = function Symbol() { | |
| 2727 | + if (this instanceof $Symbol) throw TypeError('Symbol is not a constructor!'); | |
| 2728 | + var tag = uid(arguments.length > 0 ? arguments[0] : undefined); | |
| 2729 | + var $set = function (value) { | |
| 2730 | + if (this === ObjectProto) $set.call(OPSymbols, value); | |
| 2731 | + if (has(this, HIDDEN) && has(this[HIDDEN], tag)) this[HIDDEN][tag] = false; | |
| 2732 | + setSymbolDesc(this, tag, createDesc(1, value)); | |
| 2733 | + }; | |
| 2734 | + if (DESCRIPTORS && setter) setSymbolDesc(ObjectProto, tag, { configurable: true, set: $set }); | |
| 2735 | + return wrap(tag); | |
| 2736 | + }; | |
| 2737 | + redefine($Symbol[PROTOTYPE], 'toString', function toString() { | |
| 2738 | + return this._k; | |
| 2739 | + }); | |
| 2015 | 2740 | |
| 2016 | -"use strict"; | |
| 2017 | -/* provided dependency */ var PropTypes = __webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js"); | |
| 2741 | + $GOPD.f = $getOwnPropertyDescriptor; | |
| 2742 | + $DP.f = $defineProperty; | |
| 2743 | + __webpack_require__(99).f = gOPNExt.f = $getOwnPropertyNames; | |
| 2744 | + __webpack_require__(50).f = $propertyIsEnumerable; | |
| 2745 | + $GOPS.f = $getOwnPropertySymbols; | |
| 2018 | 2746 | |
| 2747 | + if (DESCRIPTORS && !__webpack_require__(47)) { | |
| 2748 | + redefine(ObjectProto, 'propertyIsEnumerable', $propertyIsEnumerable, true); | |
| 2749 | + } | |
| 2019 | 2750 | |
| 2020 | -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 2021 | -Object.defineProperty(exports, "__esModule", ({ | |
| 2022 | - value: true | |
| 2023 | -})); | |
| 2024 | -exports["default"] = Text; | |
| 2025 | -var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react")); | |
| 2026 | -var _utils = __webpack_require__(/*! ../../utils/utils */ "../app/assets/js/utils/utils.js"); | |
| 2027 | -function Text(props) { | |
| 2028 | - var baseClassName = 'eps', | |
| 2029 | - classes = [props.className], | |
| 2030 | - variant = props.variant && 'md' !== props.variant ? '-' + props.variant : ''; | |
| 2031 | - classes.push(baseClassName + '-text' + variant); | |
| 2032 | - var Element = function Element() { | |
| 2033 | - return _react.default.createElement(props.tag, { | |
| 2034 | - className: (0, _utils.arrayToClassName)(classes) | |
| 2035 | - }, props.children); | |
| 2751 | + wksExt.f = function (name) { | |
| 2752 | + return wrap(wks(name)); | |
| 2036 | 2753 | }; |
| 2037 | - return /*#__PURE__*/_react.default.createElement(Element, null); | |
| 2038 | 2754 | } |
| 2039 | -Text.propTypes = { | |
| 2040 | - className: PropTypes.string, | |
| 2041 | - variant: PropTypes.oneOf(['xl', 'lg', 'md', 'sm', 'xs', 'xxs']), | |
| 2042 | - tag: PropTypes.string, | |
| 2043 | - children: PropTypes.any.isRequired | |
| 2044 | -}; | |
| 2045 | -Text.defaultProps = { | |
| 2046 | - className: '', | |
| 2047 | - tag: 'p' | |
| 2048 | -}; | |
| 2049 | 2755 | |
| 2050 | -/***/ }), | |
| 2756 | +$export($export.G + $export.W + $export.F * !USE_NATIVE, { Symbol: $Symbol }); | |
| 2051 | 2757 | |
| 2052 | -/***/ "../app/assets/js/ui/card/card-body.js": | |
| 2053 | -/*!*********************************************!*\ | |
| 2054 | - !*** ../app/assets/js/ui/card/card-body.js ***! | |
| 2055 | - \*********************************************/ | |
| 2056 | -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 2758 | +for (var es6Symbols = ( | |
| 2759 | + // 19.4.2.2, 19.4.2.3, 19.4.2.4, 19.4.2.6, 19.4.2.8, 19.4.2.9, 19.4.2.10, 19.4.2.11, 19.4.2.12, 19.4.2.13, 19.4.2.14 | |
| 2760 | + 'hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables' | |
| 2761 | +).split(','), j = 0; es6Symbols.length > j;)wks(es6Symbols[j++]); | |
| 2057 | 2762 | |
| 2058 | -"use strict"; | |
| 2059 | -/* provided dependency */ var PropTypes = __webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js"); | |
| 2763 | +for (var wellKnownSymbols = $keys(wks.store), k = 0; wellKnownSymbols.length > k;) wksDefine(wellKnownSymbols[k++]); | |
| 2060 | 2764 | |
| 2765 | +$export($export.S + $export.F * !USE_NATIVE, 'Symbol', { | |
| 2766 | + // 19.4.2.1 Symbol.for(key) | |
| 2767 | + 'for': function (key) { | |
| 2768 | + return has(SymbolRegistry, key += '') | |
| 2769 | + ? SymbolRegistry[key] | |
| 2770 | + : SymbolRegistry[key] = $Symbol(key); | |
| 2771 | + }, | |
| 2772 | + // 19.4.2.5 Symbol.keyFor(sym) | |
| 2773 | + keyFor: function keyFor(sym) { | |
| 2774 | + if (!isSymbol(sym)) throw TypeError(sym + ' is not a symbol!'); | |
| 2775 | + for (var key in SymbolRegistry) if (SymbolRegistry[key] === sym) return key; | |
| 2776 | + }, | |
| 2777 | + useSetter: function () { setter = true; }, | |
| 2778 | + useSimple: function () { setter = false; } | |
| 2779 | +}); | |
| 2061 | 2780 | |
| 2062 | -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 2063 | -Object.defineProperty(exports, "__esModule", ({ | |
| 2064 | - value: true | |
| 2065 | -})); | |
| 2066 | -exports["default"] = CardBody; | |
| 2067 | -var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react")); | |
| 2068 | -var _utils = __webpack_require__(/*! elementor-app/utils/utils.js */ "../app/assets/js/utils/utils.js"); | |
| 2069 | -__webpack_require__(/*! ./card.scss */ "../app/assets/js/ui/card/card.scss"); | |
| 2070 | -function CardBody(props) { | |
| 2071 | - var classNameBase = 'eps-card__body', | |
| 2072 | - classes = [classNameBase, props.className], | |
| 2073 | - style = {}; | |
| 2074 | - if (Object.prototype.hasOwnProperty.call(props, 'padding')) { | |
| 2075 | - style['--eps-card-body-padding'] = (0, _utils.pxToRem)(props.padding); | |
| 2076 | - classes.push(classNameBase + '--padding'); | |
| 2781 | +$export($export.S + $export.F * !USE_NATIVE, 'Object', { | |
| 2782 | + // 19.1.2.2 Object.create(O [, Properties]) | |
| 2783 | + create: $create, | |
| 2784 | + // 19.1.2.4 Object.defineProperty(O, P, Attributes) | |
| 2785 | + defineProperty: $defineProperty, | |
| 2786 | + // 19.1.2.3 Object.defineProperties(O, Properties) | |
| 2787 | + defineProperties: $defineProperties, | |
| 2788 | + // 19.1.2.6 Object.getOwnPropertyDescriptor(O, P) | |
| 2789 | + getOwnPropertyDescriptor: $getOwnPropertyDescriptor, | |
| 2790 | + // 19.1.2.7 Object.getOwnPropertyNames(O) | |
| 2791 | + getOwnPropertyNames: $getOwnPropertyNames, | |
| 2792 | + // 19.1.2.8 Object.getOwnPropertySymbols(O) | |
| 2793 | + getOwnPropertySymbols: $getOwnPropertySymbols | |
| 2794 | +}); | |
| 2795 | + | |
| 2796 | +// Chrome 38 and 39 `Object.getOwnPropertySymbols` fails on primitives | |
| 2797 | +// https://bugs.chromium.org/p/v8/issues/detail?id=3443 | |
| 2798 | +var FAILS_ON_PRIMITIVES = $fails(function () { $GOPS.f(1); }); | |
| 2799 | + | |
| 2800 | +$export($export.S + $export.F * FAILS_ON_PRIMITIVES, 'Object', { | |
| 2801 | + getOwnPropertySymbols: function getOwnPropertySymbols(it) { | |
| 2802 | + return $GOPS.f(toObject(it)); | |
| 2077 | 2803 | } |
| 2078 | - return /*#__PURE__*/_react.default.createElement("main", { | |
| 2079 | - className: (0, _utils.arrayToClassName)(classes), | |
| 2080 | - style: style | |
| 2081 | - }, props.children); | |
| 2082 | -} | |
| 2083 | -CardBody.propTypes = { | |
| 2084 | - className: PropTypes.string, | |
| 2085 | - padding: PropTypes.string, | |
| 2086 | - passive: PropTypes.bool, | |
| 2087 | - active: PropTypes.bool, | |
| 2088 | - children: PropTypes.any.isRequired | |
| 2804 | +}); | |
| 2805 | + | |
| 2806 | +// 24.3.2 JSON.stringify(value [, replacer [, space]]) | |
| 2807 | +$JSON && $export($export.S + $export.F * (!USE_NATIVE || $fails(function () { | |
| 2808 | + var S = $Symbol(); | |
| 2809 | + // MS Edge converts symbol values to JSON as {} | |
| 2810 | + // WebKit converts symbol values to JSON as null | |
| 2811 | + // V8 throws on boxed symbols | |
| 2812 | + return _stringify([S]) != '[null]' || _stringify({ a: S }) != '{}' || _stringify(Object(S)) != '{}'; | |
| 2813 | +})), 'JSON', { | |
| 2814 | + stringify: function stringify(it) { | |
| 2815 | + var args = [it]; | |
| 2816 | + var i = 1; | |
| 2817 | + var replacer, $replacer; | |
| 2818 | + while (arguments.length > i) args.push(arguments[i++]); | |
| 2819 | + $replacer = replacer = args[1]; | |
| 2820 | + if (!isObject(replacer) && it === undefined || isSymbol(it)) return; // IE8 returns string on undefined | |
| 2821 | + if (!isArray(replacer)) replacer = function (key, value) { | |
| 2822 | + if (typeof $replacer == 'function') value = $replacer.call(this, key, value); | |
| 2823 | + if (!isSymbol(value)) return value; | |
| 2824 | + }; | |
| 2825 | + args[1] = replacer; | |
| 2826 | + return _stringify.apply($JSON, args); | |
| 2827 | + } | |
| 2828 | +}); | |
| 2829 | + | |
| 2830 | +// 19.4.3.4 Symbol.prototype[@@toPrimitive](hint) | |
| 2831 | +$Symbol[PROTOTYPE][TO_PRIMITIVE] || __webpack_require__(24)($Symbol[PROTOTYPE], TO_PRIMITIVE, $Symbol[PROTOTYPE].valueOf); | |
| 2832 | +// 19.4.3.5 Symbol.prototype[@@toStringTag] | |
| 2833 | +setToStringTag($Symbol, 'Symbol'); | |
| 2834 | +// 20.2.1.9 Math[@@toStringTag] | |
| 2835 | +setToStringTag(Math, 'Math', true); | |
| 2836 | +// 24.3.3 JSON[@@toStringTag] | |
| 2837 | +setToStringTag(global.JSON, 'JSON', true); | |
| 2838 | + | |
| 2839 | + | |
| 2840 | +/***/ }), | |
| 2841 | +/* 141 */ | |
| 2842 | +/***/ (function(module, exports, __webpack_require__) { | |
| 2843 | + | |
| 2844 | +// call something on iterator step with safe closing on error | |
| 2845 | +var anObject = __webpack_require__(13); | |
| 2846 | +module.exports = function (iterator, fn, value, entries) { | |
| 2847 | + try { | |
| 2848 | + return entries ? fn(anObject(value)[0], value[1]) : fn(value); | |
| 2849 | + // 7.4.6 IteratorClose(iterator, completion) | |
| 2850 | + } catch (e) { | |
| 2851 | + var ret = iterator['return']; | |
| 2852 | + if (ret !== undefined) anObject(ret.call(iterator)); | |
| 2853 | + throw e; | |
| 2854 | + } | |
| 2089 | 2855 | }; |
| 2090 | -CardBody.defaultProps = { | |
| 2091 | - className: '' | |
| 2856 | + | |
| 2857 | + | |
| 2858 | +/***/ }), | |
| 2859 | +/* 142 */ | |
| 2860 | +/***/ (function(module, exports, __webpack_require__) { | |
| 2861 | + | |
| 2862 | +// check on default Array iterator | |
| 2863 | +var Iterators = __webpack_require__(35); | |
| 2864 | +var ITERATOR = __webpack_require__(10)('iterator'); | |
| 2865 | +var ArrayProto = Array.prototype; | |
| 2866 | + | |
| 2867 | +module.exports = function (it) { | |
| 2868 | + return it !== undefined && (Iterators.Array === it || ArrayProto[ITERATOR] === it); | |
| 2092 | 2869 | }; |
| 2093 | 2870 | |
| 2871 | + | |
| 2094 | 2872 | /***/ }), |
| 2873 | +/* 143 */ | |
| 2874 | +/***/ (function(module, exports, __webpack_require__) { | |
| 2095 | 2875 | |
| 2096 | -/***/ "../app/assets/js/ui/card/card-divider.js": | |
| 2097 | -/*!************************************************!*\ | |
| 2098 | - !*** ../app/assets/js/ui/card/card-divider.js ***! | |
| 2099 | - \************************************************/ | |
| 2100 | -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 2876 | +// false -> Array#indexOf | |
| 2877 | +// true -> Array#includes | |
| 2878 | +var toIObject = __webpack_require__(98); | |
| 2879 | +var toLength = __webpack_require__(43); | |
| 2880 | +var toAbsoluteIndex = __webpack_require__(198); | |
| 2881 | +module.exports = function (IS_INCLUDES) { | |
| 2882 | + return function ($this, el, fromIndex) { | |
| 2883 | + var O = toIObject($this); | |
| 2884 | + var length = toLength(O.length); | |
| 2885 | + var index = toAbsoluteIndex(fromIndex, length); | |
| 2886 | + var value; | |
| 2887 | + // Array#includes uses SameValueZero equality algorithm | |
| 2888 | + // eslint-disable-next-line no-self-compare | |
| 2889 | + if (IS_INCLUDES && el != el) while (length > index) { | |
| 2890 | + value = O[index++]; | |
| 2891 | + // eslint-disable-next-line no-self-compare | |
| 2892 | + if (value != value) return true; | |
| 2893 | + // Array#indexOf ignores holes, Array#includes - not | |
| 2894 | + } else for (;length > index; index++) if (IS_INCLUDES || index in O) { | |
| 2895 | + if (O[index] === el) return IS_INCLUDES || index || 0; | |
| 2896 | + } return !IS_INCLUDES && -1; | |
| 2897 | + }; | |
| 2898 | +}; | |
| 2101 | 2899 | |
| 2102 | -"use strict"; | |
| 2103 | -/* provided dependency */ var PropTypes = __webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js"); | |
| 2104 | 2900 | |
| 2901 | +/***/ }), | |
| 2902 | +/* 144 */ | |
| 2903 | +/***/ (function(module, exports, __webpack_require__) { | |
| 2105 | 2904 | |
| 2106 | -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 2107 | -Object.defineProperty(exports, "__esModule", ({ | |
| 2108 | - value: true | |
| 2109 | -})); | |
| 2110 | -exports["default"] = CardDivider; | |
| 2111 | -var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react")); | |
| 2112 | -var _utils = __webpack_require__(/*! elementor-app/utils/utils.js */ "../app/assets/js/utils/utils.js"); | |
| 2113 | -__webpack_require__(/*! ./card.scss */ "../app/assets/js/ui/card/card.scss"); | |
| 2114 | -function CardDivider(props) { | |
| 2115 | - var classNameBase = 'eps-card__divider', | |
| 2116 | - classes = [classNameBase, props.className]; | |
| 2117 | - return /*#__PURE__*/_react.default.createElement("hr", { | |
| 2118 | - className: (0, _utils.arrayToClassName)(classes) | |
| 2119 | - }); | |
| 2120 | -} | |
| 2121 | -CardDivider.propTypes = { | |
| 2122 | - className: PropTypes.string | |
| 2905 | +var toInteger = __webpack_require__(57); | |
| 2906 | +var defined = __webpack_require__(42); | |
| 2907 | +// true -> String#at | |
| 2908 | +// false -> String#codePointAt | |
| 2909 | +module.exports = function (TO_STRING) { | |
| 2910 | + return function (that, pos) { | |
| 2911 | + var s = String(defined(that)); | |
| 2912 | + var i = toInteger(pos); | |
| 2913 | + var l = s.length; | |
| 2914 | + var a, b; | |
| 2915 | + if (i < 0 || i >= l) return TO_STRING ? '' : undefined; | |
| 2916 | + a = s.charCodeAt(i); | |
| 2917 | + return a < 0xd800 || a > 0xdbff || i + 1 === l || (b = s.charCodeAt(i + 1)) < 0xdc00 || b > 0xdfff | |
| 2918 | + ? TO_STRING ? s.charAt(i) : a | |
| 2919 | + : TO_STRING ? s.slice(i, i + 2) : (a - 0xd800 << 10) + (b - 0xdc00) + 0x10000; | |
| 2920 | + }; | |
| 2123 | 2921 | }; |
| 2124 | -CardDivider.defaultProps = { | |
| 2125 | - className: '' | |
| 2126 | -}; | |
| 2127 | 2922 | |
| 2923 | + | |
| 2128 | 2924 | /***/ }), |
| 2925 | +/* 145 */ | |
| 2926 | +/***/ (function(module, exports, __webpack_require__) { | |
| 2129 | 2927 | |
| 2130 | -/***/ "../app/assets/js/ui/card/card-footer.js": | |
| 2131 | -/*!***********************************************!*\ | |
| 2132 | - !*** ../app/assets/js/ui/card/card-footer.js ***! | |
| 2133 | - \***********************************************/ | |
| 2134 | -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 2928 | +module.exports = __webpack_require__(67)('native-function-to-string', Function.toString); | |
| 2135 | 2929 | |
| 2136 | -"use strict"; | |
| 2137 | -/* provided dependency */ var PropTypes = __webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js"); | |
| 2138 | 2930 | |
| 2931 | +/***/ }), | |
| 2932 | +/* 146 */, | |
| 2933 | +/* 147 */, | |
| 2934 | +/* 148 */, | |
| 2935 | +/* 149 */ | |
| 2936 | +/***/ (function(module, exports, __webpack_require__) { | |
| 2139 | 2937 | |
| 2140 | -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 2141 | -Object.defineProperty(exports, "__esModule", ({ | |
| 2142 | - value: true | |
| 2143 | -})); | |
| 2144 | -exports["default"] = CardFooter; | |
| 2145 | -var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react")); | |
| 2146 | -var _utils = __webpack_require__(/*! elementor-app/utils/utils.js */ "../app/assets/js/utils/utils.js"); | |
| 2147 | -__webpack_require__(/*! ./card.scss */ "../app/assets/js/ui/card/card.scss"); | |
| 2148 | -function CardFooter(props) { | |
| 2149 | - var classNameBase = 'eps-card__footer', | |
| 2150 | - classes = [classNameBase, props.className], | |
| 2151 | - style = {}; | |
| 2152 | - if (Object.prototype.hasOwnProperty.call(props, 'padding')) { | |
| 2153 | - style['--eps-card-footer-padding'] = (0, _utils.pxToRem)(props.padding); | |
| 2154 | - classes.push(classNameBase + '--padding'); | |
| 2938 | +var _Reflect$construct = __webpack_require__(107); | |
| 2939 | + | |
| 2940 | +function _isNativeReflectConstruct() { | |
| 2941 | + if (typeof Reflect === "undefined" || !_Reflect$construct) return false; | |
| 2942 | + if (_Reflect$construct.sham) return false; | |
| 2943 | + if (typeof Proxy === "function") return true; | |
| 2944 | + | |
| 2945 | + try { | |
| 2946 | + Date.prototype.toString.call(_Reflect$construct(Date, [], function () {})); | |
| 2947 | + return true; | |
| 2948 | + } catch (e) { | |
| 2949 | + return false; | |
| 2155 | 2950 | } |
| 2156 | - return /*#__PURE__*/_react.default.createElement("footer", { | |
| 2157 | - className: (0, _utils.arrayToClassName)(classes), | |
| 2158 | - style: style | |
| 2159 | - }, props.children); | |
| 2160 | 2951 | } |
| 2161 | -CardFooter.propTypes = { | |
| 2162 | - className: PropTypes.string, | |
| 2163 | - padding: PropTypes.string, | |
| 2164 | - passive: PropTypes.bool, | |
| 2165 | - active: PropTypes.bool, | |
| 2166 | - children: PropTypes.object.isRequired | |
| 2952 | + | |
| 2953 | +module.exports = _isNativeReflectConstruct; | |
| 2954 | + | |
| 2955 | +/***/ }), | |
| 2956 | +/* 150 */ | |
| 2957 | +/***/ (function(module, exports) { | |
| 2958 | + | |
| 2959 | +module.exports = function (done, value) { | |
| 2960 | + return { value: value, done: !!done }; | |
| 2167 | 2961 | }; |
| 2168 | -CardFooter.defaultProps = { | |
| 2169 | - className: '' | |
| 2962 | + | |
| 2963 | + | |
| 2964 | +/***/ }), | |
| 2965 | +/* 151 */ | |
| 2966 | +/***/ (function(module, exports, __webpack_require__) { | |
| 2967 | + | |
| 2968 | +module.exports = __webpack_require__(172); | |
| 2969 | + | |
| 2970 | +/***/ }), | |
| 2971 | +/* 152 */ | |
| 2972 | +/***/ (function(module, exports, __webpack_require__) { | |
| 2973 | + | |
| 2974 | +var ITERATOR = __webpack_require__(10)('iterator'); | |
| 2975 | +var SAFE_CLOSING = false; | |
| 2976 | + | |
| 2977 | +try { | |
| 2978 | + var riter = [7][ITERATOR](); | |
| 2979 | + riter['return'] = function () { SAFE_CLOSING = true; }; | |
| 2980 | + // eslint-disable-next-line no-throw-literal | |
| 2981 | + Array.from(riter, function () { throw 2; }); | |
| 2982 | +} catch (e) { /* empty */ } | |
| 2983 | + | |
| 2984 | +module.exports = function (exec, skipClosing) { | |
| 2985 | + if (!skipClosing && !SAFE_CLOSING) return false; | |
| 2986 | + var safe = false; | |
| 2987 | + try { | |
| 2988 | + var arr = [7]; | |
| 2989 | + var iter = arr[ITERATOR](); | |
| 2990 | + iter.next = function () { return { done: safe = true }; }; | |
| 2991 | + arr[ITERATOR] = function () { return iter; }; | |
| 2992 | + exec(arr); | |
| 2993 | + } catch (e) { /* empty */ } | |
| 2994 | + return safe; | |
| 2170 | 2995 | }; |
| 2171 | 2996 | |
| 2997 | + | |
| 2172 | 2998 | /***/ }), |
| 2999 | +/* 153 */, | |
| 3000 | +/* 154 */ | |
| 3001 | +/***/ (function(module, exports, __webpack_require__) { | |
| 2173 | 3002 | |
| 2174 | -/***/ "../app/assets/js/ui/card/card-header.js": | |
| 2175 | -/*!***********************************************!*\ | |
| 2176 | - !*** ../app/assets/js/ui/card/card-header.js ***! | |
| 2177 | - \***********************************************/ | |
| 2178 | -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 3003 | +// 7.3.20 SpeciesConstructor(O, defaultConstructor) | |
| 3004 | +var anObject = __webpack_require__(18); | |
| 3005 | +var aFunction = __webpack_require__(91); | |
| 3006 | +var SPECIES = __webpack_require__(12)('species'); | |
| 3007 | +module.exports = function (O, D) { | |
| 3008 | + var C = anObject(O).constructor; | |
| 3009 | + var S; | |
| 3010 | + return C === undefined || (S = anObject(C)[SPECIES]) == undefined ? D : aFunction(S); | |
| 3011 | +}; | |
| 2179 | 3012 | |
| 2180 | -"use strict"; | |
| 2181 | -/* provided dependency */ var PropTypes = __webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js"); | |
| 2182 | 3013 | |
| 3014 | +/***/ }), | |
| 3015 | +/* 155 */, | |
| 3016 | +/* 156 */ | |
| 3017 | +/***/ (function(module, exports, __webpack_require__) { | |
| 2183 | 3018 | |
| 2184 | -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 2185 | -Object.defineProperty(exports, "__esModule", ({ | |
| 2186 | - value: true | |
| 2187 | -})); | |
| 2188 | -exports["default"] = CardHeader; | |
| 2189 | -var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react")); | |
| 2190 | -var _utils = __webpack_require__(/*! elementor-app/utils/utils.js */ "../app/assets/js/utils/utils.js"); | |
| 2191 | -__webpack_require__(/*! ./card.scss */ "../app/assets/js/ui/card/card.scss"); | |
| 2192 | -function CardHeader(props) { | |
| 2193 | - var classNameBase = 'eps-card__header', | |
| 2194 | - classes = [classNameBase, props.className], | |
| 2195 | - style = {}; | |
| 2196 | - if (Object.prototype.hasOwnProperty.call(props, 'padding')) { | |
| 2197 | - style['--eps-card-header-padding'] = (0, _utils.pxToRem)(props.padding); | |
| 2198 | - classes.push(classNameBase + '--padding'); | |
| 2199 | - } | |
| 2200 | - return /*#__PURE__*/_react.default.createElement("header", { | |
| 2201 | - className: (0, _utils.arrayToClassName)(classes), | |
| 2202 | - style: style | |
| 2203 | - }, props.children); | |
| 2204 | -} | |
| 2205 | -CardHeader.propTypes = { | |
| 2206 | - className: PropTypes.string, | |
| 2207 | - padding: PropTypes.string, | |
| 2208 | - passive: PropTypes.bool, | |
| 2209 | - active: PropTypes.bool, | |
| 2210 | - children: PropTypes.any.isRequired | |
| 3019 | +__webpack_require__(157); | |
| 3020 | +var $Object = __webpack_require__(6).Object; | |
| 3021 | +module.exports = function defineProperty(it, key, desc) { | |
| 3022 | + return $Object.defineProperty(it, key, desc); | |
| 2211 | 3023 | }; |
| 2212 | -CardHeader.defaultProps = { | |
| 2213 | - className: '' | |
| 2214 | -}; | |
| 2215 | 3024 | |
| 3025 | + | |
| 2216 | 3026 | /***/ }), |
| 3027 | +/* 157 */ | |
| 3028 | +/***/ (function(module, exports, __webpack_require__) { | |
| 2217 | 3029 | |
| 2218 | -/***/ "../app/assets/js/ui/card/card-headline.js": | |
| 2219 | -/*!*************************************************!*\ | |
| 2220 | - !*** ../app/assets/js/ui/card/card-headline.js ***! | |
| 2221 | - \*************************************************/ | |
| 2222 | -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 3030 | +var $export = __webpack_require__(7); | |
| 3031 | +// 19.1.2.4 / 15.2.3.6 Object.defineProperty(O, P, Attributes) | |
| 3032 | +$export($export.S + $export.F * !__webpack_require__(14), 'Object', { defineProperty: __webpack_require__(15).f }); | |
| 2223 | 3033 | |
| 2224 | -"use strict"; | |
| 2225 | -/* provided dependency */ var PropTypes = __webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js"); | |
| 2226 | 3034 | |
| 3035 | +/***/ }), | |
| 3036 | +/* 158 */ | |
| 3037 | +/***/ (function(module, exports, __webpack_require__) { | |
| 2227 | 3038 | |
| 2228 | -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 2229 | -Object.defineProperty(exports, "__esModule", ({ | |
| 2230 | - value: true | |
| 2231 | -})); | |
| 2232 | -exports["default"] = CardHeadline; | |
| 2233 | -var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react")); | |
| 2234 | -var _utils = __webpack_require__(/*! elementor-app/utils/utils.js */ "../app/assets/js/utils/utils.js"); | |
| 2235 | -__webpack_require__(/*! ./card.scss */ "../app/assets/js/ui/card/card.scss"); | |
| 2236 | -function CardHeadline(props) { | |
| 2237 | - var classNameBase = 'eps-card__headline', | |
| 2238 | - classes = [classNameBase, props.className]; | |
| 2239 | - return /*#__PURE__*/_react.default.createElement("h4", { | |
| 2240 | - className: (0, _utils.arrayToClassName)(classes) | |
| 2241 | - }, props.children); | |
| 2242 | -} | |
| 2243 | -CardHeadline.propTypes = { | |
| 2244 | - className: PropTypes.string, | |
| 2245 | - children: PropTypes.any.isRequired | |
| 2246 | -}; | |
| 2247 | -CardHeadline.defaultProps = { | |
| 2248 | - className: '' | |
| 2249 | -}; | |
| 3039 | +module.exports = __webpack_require__(159); | |
| 2250 | 3040 | |
| 2251 | 3041 | /***/ }), |
| 3042 | +/* 159 */ | |
| 3043 | +/***/ (function(module, exports, __webpack_require__) { | |
| 2252 | 3044 | |
| 2253 | -/***/ "../app/assets/js/ui/card/card-image.js": | |
| 2254 | -/*!**********************************************!*\ | |
| 2255 | - !*** ../app/assets/js/ui/card/card-image.js ***! | |
| 2256 | - \**********************************************/ | |
| 2257 | -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 3045 | +__webpack_require__(160); | |
| 3046 | +module.exports = __webpack_require__(6).Object.getPrototypeOf; | |
| 2258 | 3047 | |
| 2259 | -"use strict"; | |
| 2260 | -/* provided dependency */ var PropTypes = __webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js"); | |
| 2261 | 3048 | |
| 3049 | +/***/ }), | |
| 3050 | +/* 160 */ | |
| 3051 | +/***/ (function(module, exports, __webpack_require__) { | |
| 2262 | 3052 | |
| 2263 | -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 2264 | -Object.defineProperty(exports, "__esModule", ({ | |
| 2265 | - value: true | |
| 2266 | -})); | |
| 2267 | -exports["default"] = CardImage; | |
| 2268 | -var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react")); | |
| 2269 | -__webpack_require__(/*! ./card.scss */ "../app/assets/js/ui/card/card.scss"); | |
| 2270 | -function CardImage(props) { | |
| 2271 | - var image = /*#__PURE__*/_react.default.createElement("img", { | |
| 2272 | - src: props.src, | |
| 2273 | - alt: props.alt, | |
| 2274 | - className: "eps-card__image", | |
| 2275 | - loading: "lazy", | |
| 2276 | - onError: props.onError | |
| 2277 | - }); | |
| 2278 | - return /*#__PURE__*/_react.default.createElement("figure", { | |
| 2279 | - className: "eps-card__figure ".concat(props.className) | |
| 2280 | - }, image, props.children); | |
| 2281 | -} | |
| 2282 | -CardImage.propTypes = { | |
| 2283 | - className: PropTypes.string, | |
| 2284 | - src: PropTypes.string.isRequired, | |
| 2285 | - alt: PropTypes.string.isRequired, | |
| 2286 | - children: PropTypes.any, | |
| 2287 | - onError: PropTypes.func | |
| 3053 | +// 19.1.2.9 Object.getPrototypeOf(O) | |
| 3054 | +var toObject = __webpack_require__(32); | |
| 3055 | +var $getPrototypeOf = __webpack_require__(64); | |
| 3056 | + | |
| 3057 | +__webpack_require__(86)('getPrototypeOf', function () { | |
| 3058 | + return function getPrototypeOf(it) { | |
| 3059 | + return $getPrototypeOf(toObject(it)); | |
| 3060 | + }; | |
| 3061 | +}); | |
| 3062 | + | |
| 3063 | + | |
| 3064 | +/***/ }), | |
| 3065 | +/* 161 */ | |
| 3066 | +/***/ (function(module, exports, __webpack_require__) { | |
| 3067 | + | |
| 3068 | +__webpack_require__(162); | |
| 3069 | +module.exports = __webpack_require__(6).Object.setPrototypeOf; | |
| 3070 | + | |
| 3071 | + | |
| 3072 | +/***/ }), | |
| 3073 | +/* 162 */ | |
| 3074 | +/***/ (function(module, exports, __webpack_require__) { | |
| 3075 | + | |
| 3076 | +// 19.1.3.19 Object.setPrototypeOf(O, proto) | |
| 3077 | +var $export = __webpack_require__(7); | |
| 3078 | +$export($export.S, 'Object', { setPrototypeOf: __webpack_require__(163).set }); | |
| 3079 | + | |
| 3080 | + | |
| 3081 | +/***/ }), | |
| 3082 | +/* 163 */ | |
| 3083 | +/***/ (function(module, exports, __webpack_require__) { | |
| 3084 | + | |
| 3085 | +// Works with __proto__ only. Old v8 can't work with null proto objects. | |
| 3086 | +/* eslint-disable no-proto */ | |
| 3087 | +var isObject = __webpack_require__(9); | |
| 3088 | +var anObject = __webpack_require__(13); | |
| 3089 | +var check = function (O, proto) { | |
| 3090 | + anObject(O); | |
| 3091 | + if (!isObject(proto) && proto !== null) throw TypeError(proto + ": can't set as prototype!"); | |
| 2288 | 3092 | }; |
| 2289 | -CardImage.defaultProps = { | |
| 2290 | - className: '', | |
| 2291 | - onError: function onError() {} | |
| 3093 | +module.exports = { | |
| 3094 | + set: Object.setPrototypeOf || ('__proto__' in {} ? // eslint-disable-line | |
| 3095 | + function (test, buggy, set) { | |
| 3096 | + try { | |
| 3097 | + set = __webpack_require__(31)(Function.call, __webpack_require__(51).f(Object.prototype, '__proto__').set, 2); | |
| 3098 | + set(test, []); | |
| 3099 | + buggy = !(test instanceof Array); | |
| 3100 | + } catch (e) { buggy = true; } | |
| 3101 | + return function setPrototypeOf(O, proto) { | |
| 3102 | + check(O, proto); | |
| 3103 | + if (buggy) O.__proto__ = proto; | |
| 3104 | + else set(O, proto); | |
| 3105 | + return O; | |
| 3106 | + }; | |
| 3107 | + }({}, false) : undefined), | |
| 3108 | + check: check | |
| 2292 | 3109 | }; |
| 2293 | 3110 | |
| 3111 | + | |
| 2294 | 3112 | /***/ }), |
| 3113 | +/* 164 */ | |
| 3114 | +/***/ (function(module, exports, __webpack_require__) { | |
| 2295 | 3115 | |
| 2296 | -/***/ "../app/assets/js/ui/card/card-overlay.js": | |
| 2297 | -/*!************************************************!*\ | |
| 2298 | - !*** ../app/assets/js/ui/card/card-overlay.js ***! | |
| 2299 | - \************************************************/ | |
| 2300 | -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 3116 | +__webpack_require__(165); | |
| 3117 | +var $Object = __webpack_require__(6).Object; | |
| 3118 | +module.exports = function create(P, D) { | |
| 3119 | + return $Object.create(P, D); | |
| 3120 | +}; | |
| 2301 | 3121 | |
| 2302 | -"use strict"; | |
| 2303 | -/* provided dependency */ var PropTypes = __webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js"); | |
| 2304 | 3122 | |
| 3123 | +/***/ }), | |
| 3124 | +/* 165 */ | |
| 3125 | +/***/ (function(module, exports, __webpack_require__) { | |
| 2305 | 3126 | |
| 2306 | -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 2307 | -Object.defineProperty(exports, "__esModule", ({ | |
| 2308 | - value: true | |
| 2309 | -})); | |
| 2310 | -exports["default"] = CardOverlay; | |
| 2311 | -var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react")); | |
| 2312 | -__webpack_require__(/*! ./card.scss */ "../app/assets/js/ui/card/card.scss"); | |
| 2313 | -function CardOverlay(props) { | |
| 2314 | - return /*#__PURE__*/_react.default.createElement("div", { | |
| 2315 | - className: "eps-card__image-overlay ".concat(props.className) | |
| 2316 | - }, props.children); | |
| 2317 | -} | |
| 2318 | -CardOverlay.propTypes = { | |
| 2319 | - className: PropTypes.string, | |
| 2320 | - children: PropTypes.object.isRequired | |
| 3127 | +var $export = __webpack_require__(7); | |
| 3128 | +// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties]) | |
| 3129 | +$export($export.S, 'Object', { create: __webpack_require__(52) }); | |
| 3130 | + | |
| 3131 | + | |
| 3132 | +/***/ }), | |
| 3133 | +/* 166 */ | |
| 3134 | +/***/ (function(module, exports, __webpack_require__) { | |
| 3135 | + | |
| 3136 | +// false -> Array#indexOf | |
| 3137 | +// true -> Array#includes | |
| 3138 | +var toIObject = __webpack_require__(20); | |
| 3139 | +var toLength = __webpack_require__(69); | |
| 3140 | +var toAbsoluteIndex = __webpack_require__(167); | |
| 3141 | +module.exports = function (IS_INCLUDES) { | |
| 3142 | + return function ($this, el, fromIndex) { | |
| 3143 | + var O = toIObject($this); | |
| 3144 | + var length = toLength(O.length); | |
| 3145 | + var index = toAbsoluteIndex(fromIndex, length); | |
| 3146 | + var value; | |
| 3147 | + // Array#includes uses SameValueZero equality algorithm | |
| 3148 | + // eslint-disable-next-line no-self-compare | |
| 3149 | + if (IS_INCLUDES && el != el) while (length > index) { | |
| 3150 | + value = O[index++]; | |
| 3151 | + // eslint-disable-next-line no-self-compare | |
| 3152 | + if (value != value) return true; | |
| 3153 | + // Array#indexOf ignores holes, Array#includes - not | |
| 3154 | + } else for (;length > index; index++) if (IS_INCLUDES || index in O) { | |
| 3155 | + if (O[index] === el) return IS_INCLUDES || index || 0; | |
| 3156 | + } return !IS_INCLUDES && -1; | |
| 3157 | + }; | |
| 2321 | 3158 | }; |
| 2322 | -CardOverlay.defaultProps = { | |
| 2323 | - className: '' | |
| 3159 | + | |
| 3160 | + | |
| 3161 | +/***/ }), | |
| 3162 | +/* 167 */ | |
| 3163 | +/***/ (function(module, exports, __webpack_require__) { | |
| 3164 | + | |
| 3165 | +var toInteger = __webpack_require__(77); | |
| 3166 | +var max = Math.max; | |
| 3167 | +var min = Math.min; | |
| 3168 | +module.exports = function (index, length) { | |
| 3169 | + index = toInteger(index); | |
| 3170 | + return index < 0 ? max(index + length, 0) : min(index, length); | |
| 2324 | 3171 | }; |
| 2325 | 3172 | |
| 3173 | + | |
| 2326 | 3174 | /***/ }), |
| 3175 | +/* 168 */ | |
| 3176 | +/***/ (function(module, exports, __webpack_require__) { | |
| 2327 | 3177 | |
| 2328 | -/***/ "../app/assets/js/ui/card/card.js": | |
| 2329 | -/*!****************************************!*\ | |
| 2330 | - !*** ../app/assets/js/ui/card/card.js ***! | |
| 2331 | - \****************************************/ | |
| 2332 | -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 3178 | +__webpack_require__(169); | |
| 3179 | +module.exports = __webpack_require__(6).Reflect.construct; | |
| 2333 | 3180 | |
| 3181 | + | |
| 3182 | +/***/ }), | |
| 3183 | +/* 169 */ | |
| 3184 | +/***/ (function(module, exports, __webpack_require__) { | |
| 3185 | + | |
| 3186 | +// 26.1.2 Reflect.construct(target, argumentsList [, newTarget]) | |
| 3187 | +var $export = __webpack_require__(7); | |
| 3188 | +var create = __webpack_require__(52); | |
| 3189 | +var aFunction = __webpack_require__(38); | |
| 3190 | +var anObject = __webpack_require__(13); | |
| 3191 | +var isObject = __webpack_require__(9); | |
| 3192 | +var fails = __webpack_require__(22); | |
| 3193 | +var bind = __webpack_require__(170); | |
| 3194 | +var rConstruct = (__webpack_require__(8).Reflect || {}).construct; | |
| 3195 | + | |
| 3196 | +// MS Edge supports only 2 arguments and argumentsList argument is optional | |
| 3197 | +// FF Nightly sets third argument as `new.target`, but does not create `this` from it | |
| 3198 | +var NEW_TARGET_BUG = fails(function () { | |
| 3199 | + function F() { /* empty */ } | |
| 3200 | + return !(rConstruct(function () { /* empty */ }, [], F) instanceof F); | |
| 3201 | +}); | |
| 3202 | +var ARGS_BUG = !fails(function () { | |
| 3203 | + rConstruct(function () { /* empty */ }); | |
| 3204 | +}); | |
| 3205 | + | |
| 3206 | +$export($export.S + $export.F * (NEW_TARGET_BUG || ARGS_BUG), 'Reflect', { | |
| 3207 | + construct: function construct(Target, args /* , newTarget */) { | |
| 3208 | + aFunction(Target); | |
| 3209 | + anObject(args); | |
| 3210 | + var newTarget = arguments.length < 3 ? Target : aFunction(arguments[2]); | |
| 3211 | + if (ARGS_BUG && !NEW_TARGET_BUG) return rConstruct(Target, args, newTarget); | |
| 3212 | + if (Target == newTarget) { | |
| 3213 | + // w/o altered newTarget, optimization for 0-4 arguments | |
| 3214 | + switch (args.length) { | |
| 3215 | + case 0: return new Target(); | |
| 3216 | + case 1: return new Target(args[0]); | |
| 3217 | + case 2: return new Target(args[0], args[1]); | |
| 3218 | + case 3: return new Target(args[0], args[1], args[2]); | |
| 3219 | + case 4: return new Target(args[0], args[1], args[2], args[3]); | |
| 3220 | + } | |
| 3221 | + // w/o altered newTarget, lot of arguments case | |
| 3222 | + var $args = [null]; | |
| 3223 | + $args.push.apply($args, args); | |
| 3224 | + return new (bind.apply(Target, $args))(); | |
| 3225 | + } | |
| 3226 | + // with altered newTarget, not support built-in constructors | |
| 3227 | + var proto = newTarget.prototype; | |
| 3228 | + var instance = create(isObject(proto) ? proto : Object.prototype); | |
| 3229 | + var result = Function.apply.call(Target, instance, args); | |
| 3230 | + return isObject(result) ? result : instance; | |
| 3231 | + } | |
| 3232 | +}); | |
| 3233 | + | |
| 3234 | + | |
| 3235 | +/***/ }), | |
| 3236 | +/* 170 */ | |
| 3237 | +/***/ (function(module, exports, __webpack_require__) { | |
| 3238 | + | |
| 2334 | 3239 | "use strict"; |
| 2335 | -/* provided dependency */ var PropTypes = __webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js"); | |
| 2336 | 3240 | |
| 3241 | +var aFunction = __webpack_require__(38); | |
| 3242 | +var isObject = __webpack_require__(9); | |
| 3243 | +var invoke = __webpack_require__(132); | |
| 3244 | +var arraySlice = [].slice; | |
| 3245 | +var factories = {}; | |
| 2337 | 3246 | |
| 2338 | -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 2339 | -Object.defineProperty(exports, "__esModule", ({ | |
| 2340 | - value: true | |
| 2341 | -})); | |
| 2342 | -exports["default"] = void 0; | |
| 2343 | -var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react")); | |
| 2344 | -var _cardHeader = _interopRequireDefault(__webpack_require__(/*! ./card-header */ "../app/assets/js/ui/card/card-header.js")); | |
| 2345 | -var _cardBody = _interopRequireDefault(__webpack_require__(/*! ./card-body */ "../app/assets/js/ui/card/card-body.js")); | |
| 2346 | -var _cardImage = _interopRequireDefault(__webpack_require__(/*! ./card-image */ "../app/assets/js/ui/card/card-image.js")); | |
| 2347 | -var _cardOverlay = _interopRequireDefault(__webpack_require__(/*! ./card-overlay */ "../app/assets/js/ui/card/card-overlay.js")); | |
| 2348 | -var _cardFooter = _interopRequireDefault(__webpack_require__(/*! ./card-footer */ "../app/assets/js/ui/card/card-footer.js")); | |
| 2349 | -var _cardHeadline = _interopRequireDefault(__webpack_require__(/*! ./card-headline */ "../app/assets/js/ui/card/card-headline.js")); | |
| 2350 | -var _cardDivider = _interopRequireDefault(__webpack_require__(/*! ./card-divider */ "../app/assets/js/ui/card/card-divider.js")); | |
| 2351 | -__webpack_require__(/*! ./card.scss */ "../app/assets/js/ui/card/card.scss"); | |
| 2352 | -var Card = _react.default.forwardRef(function (props, ref) { | |
| 2353 | - return /*#__PURE__*/_react.default.createElement("article", { | |
| 2354 | - className: "eps-card ".concat(props.className), | |
| 2355 | - ref: ref | |
| 2356 | - }, props.children); | |
| 2357 | -}); | |
| 2358 | -Card.propTypes = { | |
| 2359 | - type: PropTypes.string, | |
| 2360 | - className: PropTypes.string, | |
| 2361 | - children: PropTypes.any | |
| 3247 | +var construct = function (F, len, args) { | |
| 3248 | + if (!(len in factories)) { | |
| 3249 | + for (var n = [], i = 0; i < len; i++) n[i] = 'a[' + i + ']'; | |
| 3250 | + // eslint-disable-next-line no-new-func | |
| 3251 | + factories[len] = Function('F,a', 'return new F(' + n.join(',') + ')'); | |
| 3252 | + } return factories[len](F, args); | |
| 2362 | 3253 | }; |
| 2363 | -Card.defaultProps = { | |
| 2364 | - className: '' | |
| 3254 | + | |
| 3255 | +module.exports = Function.bind || function bind(that /* , ...args */) { | |
| 3256 | + var fn = aFunction(this); | |
| 3257 | + var partArgs = arraySlice.call(arguments, 1); | |
| 3258 | + var bound = function (/* args... */) { | |
| 3259 | + var args = partArgs.concat(arraySlice.call(arguments)); | |
| 3260 | + return this instanceof bound ? construct(fn, args.length, args) : invoke(fn, args, that); | |
| 3261 | + }; | |
| 3262 | + if (isObject(fn.prototype)) bound.prototype = fn.prototype; | |
| 3263 | + return bound; | |
| 2365 | 3264 | }; |
| 2366 | -Card.displayName = 'Card'; | |
| 2367 | -Card.Header = _cardHeader.default; | |
| 2368 | -Card.Body = _cardBody.default; | |
| 2369 | -Card.Image = _cardImage.default; | |
| 2370 | -Card.Overlay = _cardOverlay.default; | |
| 2371 | -Card.Footer = _cardFooter.default; | |
| 2372 | -Card.Headline = _cardHeadline.default; | |
| 2373 | -Card.Divider = _cardDivider.default; | |
| 2374 | -var _default = exports["default"] = Card; | |
| 2375 | 3265 | |
| 3266 | + | |
| 2376 | 3267 | /***/ }), |
| 3268 | +/* 171 */ | |
| 3269 | +/***/ (function(module, exports, __webpack_require__) { | |
| 2377 | 3270 | |
| 2378 | -/***/ "../app/assets/js/ui/card/card.scss": | |
| 2379 | -/*!******************************************!*\ | |
| 2380 | - !*** ../app/assets/js/ui/card/card.scss ***! | |
| 2381 | - \******************************************/ | |
| 2382 | -/***/ (() => { | |
| 3271 | +var _typeof = __webpack_require__(48); | |
| 2383 | 3272 | |
| 3273 | +var assertThisInitialized = __webpack_require__(49); | |
| 2384 | 3274 | |
| 3275 | +function _possibleConstructorReturn(self, call) { | |
| 3276 | + if (call && (_typeof(call) === "object" || typeof call === "function")) { | |
| 3277 | + return call; | |
| 3278 | + } | |
| 2385 | 3279 | |
| 3280 | + return assertThisInitialized(self); | |
| 3281 | +} | |
| 3282 | + | |
| 3283 | +module.exports = _possibleConstructorReturn; | |
| 3284 | + | |
| 2386 | 3285 | /***/ }), |
| 3286 | +/* 172 */ | |
| 3287 | +/***/ (function(module, exports, __webpack_require__) { | |
| 2387 | 3288 | |
| 2388 | -/***/ "../app/assets/js/ui/dialog/dialog-actions.js": | |
| 2389 | -/*!****************************************************!*\ | |
| 2390 | - !*** ../app/assets/js/ui/dialog/dialog-actions.js ***! | |
| 2391 | - \****************************************************/ | |
| 2392 | -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 3289 | +__webpack_require__(60); | |
| 3290 | +__webpack_require__(62); | |
| 3291 | +module.exports = __webpack_require__(63).f('iterator'); | |
| 2393 | 3292 | |
| 3293 | + | |
| 3294 | +/***/ }), | |
| 3295 | +/* 173 */ | |
| 3296 | +/***/ (function(module, exports, __webpack_require__) { | |
| 3297 | + | |
| 3298 | +var toInteger = __webpack_require__(77); | |
| 3299 | +var defined = __webpack_require__(65); | |
| 3300 | +// true -> String#at | |
| 3301 | +// false -> String#codePointAt | |
| 3302 | +module.exports = function (TO_STRING) { | |
| 3303 | + return function (that, pos) { | |
| 3304 | + var s = String(defined(that)); | |
| 3305 | + var i = toInteger(pos); | |
| 3306 | + var l = s.length; | |
| 3307 | + var a, b; | |
| 3308 | + if (i < 0 || i >= l) return TO_STRING ? '' : undefined; | |
| 3309 | + a = s.charCodeAt(i); | |
| 3310 | + return a < 0xd800 || a > 0xdbff || i + 1 === l || (b = s.charCodeAt(i + 1)) < 0xdc00 || b > 0xdfff | |
| 3311 | + ? TO_STRING ? s.charAt(i) : a | |
| 3312 | + : TO_STRING ? s.slice(i, i + 2) : (a - 0xd800 << 10) + (b - 0xdc00) + 0x10000; | |
| 3313 | + }; | |
| 3314 | +}; | |
| 3315 | + | |
| 3316 | + | |
| 3317 | +/***/ }), | |
| 3318 | +/* 174 */ | |
| 3319 | +/***/ (function(module, exports, __webpack_require__) { | |
| 3320 | + | |
| 2394 | 3321 | "use strict"; |
| 2395 | -/* provided dependency */ var PropTypes = __webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js"); | |
| 2396 | 3322 | |
| 3323 | +var create = __webpack_require__(52); | |
| 3324 | +var descriptor = __webpack_require__(44); | |
| 3325 | +var setToStringTag = __webpack_require__(53); | |
| 3326 | +var IteratorPrototype = {}; | |
| 2397 | 3327 | |
| 2398 | -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 2399 | -Object.defineProperty(exports, "__esModule", ({ | |
| 2400 | - value: true | |
| 2401 | -})); | |
| 2402 | -exports["default"] = DialogActions; | |
| 2403 | -var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react")); | |
| 2404 | -function DialogActions(props) { | |
| 2405 | - return /*#__PURE__*/_react.default.createElement("div", { | |
| 2406 | - className: "eps-dialog__buttons" | |
| 2407 | - }, props.children); | |
| 2408 | -} | |
| 2409 | -DialogActions.propTypes = { | |
| 2410 | - children: PropTypes.any | |
| 3328 | +// 25.1.2.1.1 %IteratorPrototype%[@@iterator]() | |
| 3329 | +__webpack_require__(24)(IteratorPrototype, __webpack_require__(10)('iterator'), function () { return this; }); | |
| 3330 | + | |
| 3331 | +module.exports = function (Constructor, NAME, next) { | |
| 3332 | + Constructor.prototype = create(IteratorPrototype, { next: descriptor(1, next) }); | |
| 3333 | + setToStringTag(Constructor, NAME + ' Iterator'); | |
| 2411 | 3334 | }; |
| 2412 | 3335 | |
| 3336 | + | |
| 2413 | 3337 | /***/ }), |
| 3338 | +/* 175 */ | |
| 3339 | +/***/ (function(module, exports, __webpack_require__) { | |
| 2414 | 3340 | |
| 2415 | -/***/ "../app/assets/js/ui/dialog/dialog-button.js": | |
| 2416 | -/*!***************************************************!*\ | |
| 2417 | - !*** ../app/assets/js/ui/dialog/dialog-button.js ***! | |
| 2418 | - \***************************************************/ | |
| 2419 | -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 3341 | +"use strict"; | |
| 2420 | 3342 | |
| 2421 | -"use strict"; | |
| 2422 | -/* provided dependency */ var PropTypes = __webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js"); | |
| 3343 | +var addToUnscopables = __webpack_require__(176); | |
| 3344 | +var step = __webpack_require__(150); | |
| 3345 | +var Iterators = __webpack_require__(35); | |
| 3346 | +var toIObject = __webpack_require__(20); | |
| 2423 | 3347 | |
| 3348 | +// 22.1.3.4 Array.prototype.entries() | |
| 3349 | +// 22.1.3.13 Array.prototype.keys() | |
| 3350 | +// 22.1.3.29 Array.prototype.values() | |
| 3351 | +// 22.1.3.30 Array.prototype[@@iterator]() | |
| 3352 | +module.exports = __webpack_require__(108)(Array, 'Array', function (iterated, kind) { | |
| 3353 | + this._t = toIObject(iterated); // target | |
| 3354 | + this._i = 0; // next index | |
| 3355 | + this._k = kind; // kind | |
| 3356 | +// 22.1.5.2.1 %ArrayIteratorPrototype%.next() | |
| 3357 | +}, function () { | |
| 3358 | + var O = this._t; | |
| 3359 | + var kind = this._k; | |
| 3360 | + var index = this._i++; | |
| 3361 | + if (!O || index >= O.length) { | |
| 3362 | + this._t = undefined; | |
| 3363 | + return step(1); | |
| 3364 | + } | |
| 3365 | + if (kind == 'keys') return step(0, index); | |
| 3366 | + if (kind == 'values') return step(0, O[index]); | |
| 3367 | + return step(0, [index, O[index]]); | |
| 3368 | +}, 'values'); | |
| 2424 | 3369 | |
| 2425 | -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 2426 | -Object.defineProperty(exports, "__esModule", ({ | |
| 2427 | - value: true | |
| 2428 | -})); | |
| 2429 | -exports["default"] = DialogButton; | |
| 2430 | -var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react")); | |
| 2431 | -var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "../node_modules/@babel/runtime/helpers/defineProperty.js")); | |
| 2432 | -var _extends2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/extends */ "../node_modules/@babel/runtime/helpers/extends.js")); | |
| 2433 | -var _button = _interopRequireDefault(__webpack_require__(/*! elementor-app/ui/molecules/button */ "../app/assets/js/ui/molecules/button.js")); | |
| 2434 | -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } | |
| 2435 | -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } | |
| 2436 | -function DialogButton(props) { | |
| 2437 | - return /*#__PURE__*/_react.default.createElement(_button.default, (0, _extends2.default)({}, props, { | |
| 2438 | - className: "eps-dialog__button ".concat(props.className) | |
| 2439 | - })); | |
| 2440 | -} | |
| 2441 | -DialogButton.propTypes = _objectSpread(_objectSpread({}, _button.default.propTypes), {}, { | |
| 2442 | - tabIndex: PropTypes.string, | |
| 2443 | - type: PropTypes.string | |
| 2444 | -}); | |
| 2445 | -DialogButton.defaultProps = _objectSpread(_objectSpread({}, _button.default.defaultProps), {}, { | |
| 2446 | - tabIndex: '0', | |
| 2447 | - type: 'button' | |
| 2448 | -}); | |
| 3370 | +// argumentsList[@@iterator] is %ArrayProto_values% (9.4.4.6, 9.4.4.7) | |
| 3371 | +Iterators.Arguments = Iterators.Array; | |
| 2449 | 3372 | |
| 3373 | +addToUnscopables('keys'); | |
| 3374 | +addToUnscopables('values'); | |
| 3375 | +addToUnscopables('entries'); | |
| 3376 | + | |
| 3377 | + | |
| 2450 | 3378 | /***/ }), |
| 3379 | +/* 176 */ | |
| 3380 | +/***/ (function(module, exports) { | |
| 2451 | 3381 | |
| 2452 | -/***/ "../app/assets/js/ui/dialog/dialog-content.js": | |
| 2453 | -/*!****************************************************!*\ | |
| 2454 | - !*** ../app/assets/js/ui/dialog/dialog-content.js ***! | |
| 2455 | - \****************************************************/ | |
| 2456 | -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 3382 | +module.exports = function () { /* empty */ }; | |
| 2457 | 3383 | |
| 2458 | -"use strict"; | |
| 2459 | -/* provided dependency */ var PropTypes = __webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js"); | |
| 2460 | 3384 | |
| 3385 | +/***/ }), | |
| 3386 | +/* 177 */ | |
| 3387 | +/***/ (function(module, exports, __webpack_require__) { | |
| 2461 | 3388 | |
| 2462 | -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 2463 | -Object.defineProperty(exports, "__esModule", ({ | |
| 2464 | - value: true | |
| 2465 | -})); | |
| 2466 | -exports["default"] = DialogContent; | |
| 2467 | -var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react")); | |
| 2468 | -function DialogContent(props) { | |
| 2469 | - return /*#__PURE__*/_react.default.createElement("div", { | |
| 2470 | - className: "eps-dialog__content" | |
| 2471 | - }, props.children); | |
| 2472 | -} | |
| 2473 | -DialogContent.propTypes = { | |
| 2474 | - children: PropTypes.any | |
| 3389 | +__webpack_require__(140); | |
| 3390 | +__webpack_require__(100); | |
| 3391 | +__webpack_require__(180); | |
| 3392 | +__webpack_require__(181); | |
| 3393 | +module.exports = __webpack_require__(6).Symbol; | |
| 3394 | + | |
| 3395 | + | |
| 3396 | +/***/ }), | |
| 3397 | +/* 178 */ | |
| 3398 | +/***/ (function(module, exports, __webpack_require__) { | |
| 3399 | + | |
| 3400 | +// all enumerable object keys, includes symbols | |
| 3401 | +var getKeys = __webpack_require__(40); | |
| 3402 | +var gOPS = __webpack_require__(71); | |
| 3403 | +var pIE = __webpack_require__(50); | |
| 3404 | +module.exports = function (it) { | |
| 3405 | + var result = getKeys(it); | |
| 3406 | + var getSymbols = gOPS.f; | |
| 3407 | + if (getSymbols) { | |
| 3408 | + var symbols = getSymbols(it); | |
| 3409 | + var isEnum = pIE.f; | |
| 3410 | + var i = 0; | |
| 3411 | + var key; | |
| 3412 | + while (symbols.length > i) if (isEnum.call(it, key = symbols[i++])) result.push(key); | |
| 3413 | + } return result; | |
| 2475 | 3414 | }; |
| 2476 | 3415 | |
| 3416 | + | |
| 2477 | 3417 | /***/ }), |
| 3418 | +/* 179 */ | |
| 3419 | +/***/ (function(module, exports, __webpack_require__) { | |
| 2478 | 3420 | |
| 2479 | -/***/ "../app/assets/js/ui/dialog/dialog-text.js": | |
| 2480 | -/*!*************************************************!*\ | |
| 2481 | - !*** ../app/assets/js/ui/dialog/dialog-text.js ***! | |
| 2482 | - \*************************************************/ | |
| 2483 | -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 3421 | +// fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window | |
| 3422 | +var toIObject = __webpack_require__(20); | |
| 3423 | +var gOPN = __webpack_require__(99).f; | |
| 3424 | +var toString = {}.toString; | |
| 2484 | 3425 | |
| 2485 | -"use strict"; | |
| 3426 | +var windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames | |
| 3427 | + ? Object.getOwnPropertyNames(window) : []; | |
| 2486 | 3428 | |
| 3429 | +var getWindowNames = function (it) { | |
| 3430 | + try { | |
| 3431 | + return gOPN(it); | |
| 3432 | + } catch (e) { | |
| 3433 | + return windowNames.slice(); | |
| 3434 | + } | |
| 3435 | +}; | |
| 2487 | 3436 | |
| 2488 | -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 2489 | -Object.defineProperty(exports, "__esModule", ({ | |
| 2490 | - value: true | |
| 2491 | -})); | |
| 2492 | -exports["default"] = DialogText; | |
| 2493 | -var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react")); | |
| 2494 | -var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "../node_modules/@babel/runtime/helpers/defineProperty.js")); | |
| 2495 | -var _extends2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/extends */ "../node_modules/@babel/runtime/helpers/extends.js")); | |
| 2496 | -var _text = _interopRequireDefault(__webpack_require__(/*! elementor-app/ui/atoms/text */ "../app/assets/js/ui/atoms/text.js")); | |
| 2497 | -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } | |
| 2498 | -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } | |
| 2499 | -function DialogText(props) { | |
| 2500 | - return /*#__PURE__*/_react.default.createElement(_text.default, (0, _extends2.default)({ | |
| 2501 | - variant: "xs" | |
| 2502 | - }, props, { | |
| 2503 | - className: "eps-dialog__text ".concat(props.className) | |
| 2504 | - })); | |
| 2505 | -} | |
| 2506 | -DialogText.propTypes = _objectSpread({}, _text.default.propTypes); | |
| 2507 | -DialogText.defaultProps = _objectSpread(_objectSpread({}, _text.default.defaultProps), {}, { | |
| 2508 | - tag: 'p', | |
| 2509 | - variant: 'sm' | |
| 2510 | -}); | |
| 3437 | +module.exports.f = function getOwnPropertyNames(it) { | |
| 3438 | + return windowNames && toString.call(it) == '[object Window]' ? getWindowNames(it) : gOPN(toIObject(it)); | |
| 3439 | +}; | |
| 2511 | 3440 | |
| 3441 | + | |
| 2512 | 3442 | /***/ }), |
| 3443 | +/* 180 */ | |
| 3444 | +/***/ (function(module, exports, __webpack_require__) { | |
| 2513 | 3445 | |
| 2514 | -/***/ "../app/assets/js/ui/dialog/dialog-title.js": | |
| 2515 | -/*!**************************************************!*\ | |
| 2516 | - !*** ../app/assets/js/ui/dialog/dialog-title.js ***! | |
| 2517 | - \**************************************************/ | |
| 2518 | -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 3446 | +__webpack_require__(79)('asyncIterator'); | |
| 2519 | 3447 | |
| 3448 | + | |
| 3449 | +/***/ }), | |
| 3450 | +/* 181 */ | |
| 3451 | +/***/ (function(module, exports, __webpack_require__) { | |
| 3452 | + | |
| 3453 | +__webpack_require__(79)('observable'); | |
| 3454 | + | |
| 3455 | + | |
| 3456 | +/***/ }), | |
| 3457 | +/* 182 */, | |
| 3458 | +/* 183 */, | |
| 3459 | +/* 184 */, | |
| 3460 | +/* 185 */, | |
| 3461 | +/* 186 */ | |
| 3462 | +/***/ (function(module, exports, __webpack_require__) { | |
| 3463 | + | |
| 2520 | 3464 | "use strict"; |
| 2521 | -/* provided dependency */ var PropTypes = __webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js"); | |
| 2522 | 3465 | |
| 3466 | +var $defineProperty = __webpack_require__(15); | |
| 3467 | +var createDesc = __webpack_require__(44); | |
| 2523 | 3468 | |
| 2524 | -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 2525 | -Object.defineProperty(exports, "__esModule", ({ | |
| 2526 | - value: true | |
| 2527 | -})); | |
| 2528 | -exports["default"] = DialogTitle; | |
| 2529 | -var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react")); | |
| 2530 | -var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "../node_modules/@babel/runtime/helpers/defineProperty.js")); | |
| 2531 | -var _extends2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/extends */ "../node_modules/@babel/runtime/helpers/extends.js")); | |
| 2532 | -var _heading = _interopRequireDefault(__webpack_require__(/*! elementor-app/ui/atoms/heading */ "../app/assets/js/ui/atoms/heading.js")); | |
| 2533 | -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } | |
| 2534 | -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } | |
| 2535 | -function DialogTitle(props) { | |
| 2536 | - return /*#__PURE__*/_react.default.createElement(_heading.default, (0, _extends2.default)({}, props, { | |
| 2537 | - className: "eps-dialog__title ".concat(props.className) | |
| 2538 | - })); | |
| 3469 | +module.exports = function (object, index, value) { | |
| 3470 | + if (index in object) $defineProperty.f(object, index, createDesc(0, value)); | |
| 3471 | + else object[index] = value; | |
| 3472 | +}; | |
| 3473 | + | |
| 3474 | + | |
| 3475 | +/***/ }), | |
| 3476 | +/* 187 */ | |
| 3477 | +/***/ (function(module, exports, __webpack_require__) { | |
| 3478 | + | |
| 3479 | +var _Array$from = __webpack_require__(200); | |
| 3480 | + | |
| 3481 | +var arrayLikeToArray = __webpack_require__(199); | |
| 3482 | + | |
| 3483 | +function _unsupportedIterableToArray(o, minLen) { | |
| 3484 | + if (!o) return; | |
| 3485 | + if (typeof o === "string") return arrayLikeToArray(o, minLen); | |
| 3486 | + var n = Object.prototype.toString.call(o).slice(8, -1); | |
| 3487 | + if (n === "Object" && o.constructor) n = o.constructor.name; | |
| 3488 | + if (n === "Map" || n === "Set") return _Array$from(o); | |
| 3489 | + if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen); | |
| 2539 | 3490 | } |
| 2540 | -DialogTitle.propTypes = _objectSpread(_objectSpread({}, _heading.default.propTypes), {}, { | |
| 2541 | - className: PropTypes.string | |
| 2542 | -}); | |
| 2543 | -DialogTitle.defaultProps = _objectSpread(_objectSpread({}, _heading.default.propTypes), {}, { | |
| 2544 | - variant: 'h3', | |
| 2545 | - tag: 'h3', | |
| 2546 | - className: '' | |
| 2547 | -}); | |
| 2548 | 3491 | |
| 3492 | +module.exports = _unsupportedIterableToArray; | |
| 3493 | + | |
| 2549 | 3494 | /***/ }), |
| 3495 | +/* 188 */ | |
| 3496 | +/***/ (function(module, exports, __webpack_require__) { | |
| 2550 | 3497 | |
| 2551 | -/***/ "../app/assets/js/ui/dialog/dialog-wrapper.js": | |
| 2552 | -/*!****************************************************!*\ | |
| 2553 | - !*** ../app/assets/js/ui/dialog/dialog-wrapper.js ***! | |
| 2554 | - \****************************************************/ | |
| 2555 | -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 3498 | +var _Object$assign = __webpack_require__(134); | |
| 2556 | 3499 | |
| 2557 | -"use strict"; | |
| 2558 | -/* provided dependency */ var __ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n")["__"]; | |
| 2559 | -/* provided dependency */ var PropTypes = __webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js"); | |
| 3500 | +function _extends() { | |
| 3501 | + module.exports = _extends = _Object$assign || function (target) { | |
| 3502 | + for (var i = 1; i < arguments.length; i++) { | |
| 3503 | + var source = arguments[i]; | |
| 2560 | 3504 | |
| 3505 | + for (var key in source) { | |
| 3506 | + if (Object.prototype.hasOwnProperty.call(source, key)) { | |
| 3507 | + target[key] = source[key]; | |
| 3508 | + } | |
| 3509 | + } | |
| 3510 | + } | |
| 2561 | 3511 | |
| 2562 | -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 2563 | -Object.defineProperty(exports, "__esModule", ({ | |
| 2564 | - value: true | |
| 2565 | -})); | |
| 2566 | -exports["default"] = DialogWrapper; | |
| 2567 | -var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react")); | |
| 2568 | -var _button = _interopRequireDefault(__webpack_require__(/*! elementor-app/ui/molecules/button */ "../app/assets/js/ui/molecules/button.js")); | |
| 2569 | -function DialogWrapper(props) { | |
| 2570 | - var WrapperTag = 'div'; | |
| 2571 | - if (props.onSubmit) { | |
| 2572 | - WrapperTag = 'form'; | |
| 2573 | - } | |
| 2574 | - return /*#__PURE__*/_react.default.createElement("section", { | |
| 2575 | - className: "eps-modal__overlay" | |
| 2576 | - }, /*#__PURE__*/_react.default.createElement(WrapperTag, { | |
| 2577 | - className: "eps-modal eps-dialog", | |
| 2578 | - onSubmit: props.onSubmit | |
| 2579 | - }, props.onClose && /*#__PURE__*/_react.default.createElement(_button.default, { | |
| 2580 | - onClick: props.onClose, | |
| 2581 | - text: __('Close', 'elementor'), | |
| 2582 | - hideText: true, | |
| 2583 | - icon: "eicon-close", | |
| 2584 | - className: "eps-dialog__close-button" | |
| 2585 | - }), props.children)); | |
| 3512 | + return target; | |
| 3513 | + }; | |
| 3514 | + | |
| 3515 | + return _extends.apply(this, arguments); | |
| 2586 | 3516 | } |
| 2587 | -DialogWrapper.propTypes = { | |
| 2588 | - onClose: PropTypes.func, | |
| 2589 | - onSubmit: PropTypes.func, | |
| 2590 | - children: PropTypes.any | |
| 2591 | -}; | |
| 2592 | 3517 | |
| 3518 | +module.exports = _extends; | |
| 3519 | + | |
| 2593 | 3520 | /***/ }), |
| 3521 | +/* 189 */ | |
| 3522 | +/***/ (function(module, exports) { | |
| 2594 | 3523 | |
| 2595 | -/***/ "../app/assets/js/ui/dialog/dialog.js": | |
| 2596 | -/*!********************************************!*\ | |
| 2597 | - !*** ../app/assets/js/ui/dialog/dialog.js ***! | |
| 2598 | - \********************************************/ | |
| 2599 | -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 3524 | +module.exports = wp.i18n; | |
| 2600 | 3525 | |
| 3526 | +/***/ }), | |
| 3527 | +/* 190 */ | |
| 3528 | +/***/ (function(module, exports, __webpack_require__) { | |
| 3529 | + | |
| 2601 | 3530 | "use strict"; |
| 2602 | -/* provided dependency */ var PropTypes = __webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js"); | |
| 2603 | 3531 | |
| 3532 | +var regexpExec = __webpack_require__(90); | |
| 3533 | +__webpack_require__(34)({ | |
| 3534 | + target: 'RegExp', | |
| 3535 | + proto: true, | |
| 3536 | + forced: regexpExec !== /./.exec | |
| 3537 | +}, { | |
| 3538 | + exec: regexpExec | |
| 3539 | +}); | |
| 2604 | 3540 | |
| 2605 | -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 2606 | -Object.defineProperty(exports, "__esModule", ({ | |
| 2607 | - value: true | |
| 2608 | -})); | |
| 2609 | -exports["default"] = Dialog; | |
| 2610 | -var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react")); | |
| 2611 | -var _dialogWrapper = _interopRequireDefault(__webpack_require__(/*! ./dialog-wrapper */ "../app/assets/js/ui/dialog/dialog-wrapper.js")); | |
| 2612 | -var _dialogContent = _interopRequireDefault(__webpack_require__(/*! ./dialog-content */ "../app/assets/js/ui/dialog/dialog-content.js")); | |
| 2613 | -var _dialogTitle = _interopRequireDefault(__webpack_require__(/*! ./dialog-title */ "../app/assets/js/ui/dialog/dialog-title.js")); | |
| 2614 | -var _dialogText = _interopRequireDefault(__webpack_require__(/*! ./dialog-text */ "../app/assets/js/ui/dialog/dialog-text.js")); | |
| 2615 | -var _dialogActions = _interopRequireDefault(__webpack_require__(/*! ./dialog-actions */ "../app/assets/js/ui/dialog/dialog-actions.js")); | |
| 2616 | -var _dialogButton = _interopRequireDefault(__webpack_require__(/*! ./dialog-button */ "../app/assets/js/ui/dialog/dialog-button.js")); | |
| 2617 | -__webpack_require__(/*! ./dialog.scss */ "../app/assets/js/ui/dialog/dialog.scss"); | |
| 2618 | -function Dialog(props) { | |
| 2619 | - return /*#__PURE__*/_react.default.createElement(_dialogWrapper.default, { | |
| 2620 | - onSubmit: props.onSubmit, | |
| 2621 | - onClose: props.onClose | |
| 2622 | - }, /*#__PURE__*/_react.default.createElement(_dialogContent.default, null, props.title && /*#__PURE__*/_react.default.createElement(_dialogTitle.default, null, props.title), props.text && /*#__PURE__*/_react.default.createElement(_dialogText.default, null, props.text), props.children), /*#__PURE__*/_react.default.createElement(_dialogActions.default, null, /*#__PURE__*/_react.default.createElement(_dialogButton.default, { | |
| 2623 | - key: "dismiss", | |
| 2624 | - text: props.dismissButtonText, | |
| 2625 | - onClick: props.dismissButtonOnClick, | |
| 2626 | - url: props.dismissButtonUrl, | |
| 2627 | - target: props.dismissButtonTarget | |
| 2628 | - // eslint-disable-next-line jsx-a11y/tabindex-no-positive | |
| 2629 | - , | |
| 2630 | - tabIndex: "2" | |
| 2631 | - }), /*#__PURE__*/_react.default.createElement(_dialogButton.default, { | |
| 2632 | - key: "approve", | |
| 2633 | - text: props.approveButtonText, | |
| 2634 | - onClick: props.approveButtonOnClick, | |
| 2635 | - url: props.approveButtonUrl, | |
| 2636 | - target: props.approveButtonTarget, | |
| 2637 | - color: props.approveButtonColor, | |
| 2638 | - elRef: props.approveButtonRef | |
| 2639 | - // eslint-disable-next-line jsx-a11y/tabindex-no-positive | |
| 2640 | - , | |
| 2641 | - tabIndex: "1" | |
| 2642 | - }))); | |
| 2643 | -} | |
| 2644 | -Dialog.propTypes = { | |
| 2645 | - title: PropTypes.any, | |
| 2646 | - text: PropTypes.any, | |
| 2647 | - children: PropTypes.any, | |
| 2648 | - onSubmit: PropTypes.func, | |
| 2649 | - onClose: PropTypes.func, | |
| 2650 | - dismissButtonText: PropTypes.string.isRequired, | |
| 2651 | - dismissButtonOnClick: PropTypes.func, | |
| 2652 | - dismissButtonUrl: PropTypes.string, | |
| 2653 | - dismissButtonTarget: PropTypes.string, | |
| 2654 | - approveButtonText: PropTypes.string.isRequired, | |
| 2655 | - approveButtonOnClick: PropTypes.func, | |
| 2656 | - approveButtonUrl: PropTypes.string, | |
| 2657 | - approveButtonColor: PropTypes.string, | |
| 2658 | - approveButtonTarget: PropTypes.string, | |
| 2659 | - approveButtonRef: PropTypes.object | |
| 3541 | + | |
| 3542 | +/***/ }), | |
| 3543 | +/* 191 */ | |
| 3544 | +/***/ (function(module, exports, __webpack_require__) { | |
| 3545 | + | |
| 3546 | +__webpack_require__(192); | |
| 3547 | +var $Object = __webpack_require__(6).Object; | |
| 3548 | +module.exports = function getOwnPropertyDescriptor(it, key) { | |
| 3549 | + return $Object.getOwnPropertyDescriptor(it, key); | |
| 2660 | 3550 | }; |
| 2661 | -Dialog.defaultProps = {}; | |
| 2662 | -Dialog.Wrapper = _dialogWrapper.default; | |
| 2663 | -Dialog.Content = _dialogContent.default; | |
| 2664 | -Dialog.Title = _dialogTitle.default; | |
| 2665 | -Dialog.Text = _dialogText.default; | |
| 2666 | -Dialog.Actions = _dialogActions.default; | |
| 2667 | -Dialog.Button = _dialogButton.default; | |
| 2668 | 3551 | |
| 3552 | + | |
| 2669 | 3553 | /***/ }), |
| 3554 | +/* 192 */ | |
| 3555 | +/***/ (function(module, exports, __webpack_require__) { | |
| 2670 | 3556 | |
| 2671 | -/***/ "../app/assets/js/ui/dialog/dialog.scss": | |
| 2672 | -/*!**********************************************!*\ | |
| 2673 | - !*** ../app/assets/js/ui/dialog/dialog.scss ***! | |
| 2674 | - \**********************************************/ | |
| 2675 | -/***/ (() => { | |
| 3557 | +// 19.1.2.6 Object.getOwnPropertyDescriptor(O, P) | |
| 3558 | +var toIObject = __webpack_require__(20); | |
| 3559 | +var $getOwnPropertyDescriptor = __webpack_require__(51).f; | |
| 2676 | 3560 | |
| 3561 | +__webpack_require__(86)('getOwnPropertyDescriptor', function () { | |
| 3562 | + return function getOwnPropertyDescriptor(it, key) { | |
| 3563 | + return $getOwnPropertyDescriptor(toIObject(it), key); | |
| 3564 | + }; | |
| 3565 | +}); | |
| 2677 | 3566 | |
| 2678 | 3567 | |
| 2679 | 3568 | /***/ }), |
| 3569 | +/* 193 */ | |
| 3570 | +/***/ (function(module, exports, __webpack_require__) { | |
| 2680 | 3571 | |
| 2681 | -/***/ "../app/assets/js/ui/grid/grid.js": | |
| 2682 | -/*!****************************************!*\ | |
| 2683 | - !*** ../app/assets/js/ui/grid/grid.js ***! | |
| 2684 | - \****************************************/ | |
| 2685 | -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 3572 | +module.exports = __webpack_require__(194); | |
| 2686 | 3573 | |
| 2687 | -"use strict"; | |
| 2688 | -/* provided dependency */ var PropTypes = __webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js"); | |
| 3574 | +/***/ }), | |
| 3575 | +/* 194 */ | |
| 3576 | +/***/ (function(module, exports, __webpack_require__) { | |
| 2689 | 3577 | |
| 3578 | +__webpack_require__(195); | |
| 3579 | +module.exports = __webpack_require__(6).Reflect.get; | |
| 2690 | 3580 | |
| 2691 | -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 2692 | -Object.defineProperty(exports, "__esModule", ({ | |
| 2693 | - value: true | |
| 2694 | -})); | |
| 2695 | -exports["default"] = Grid; | |
| 2696 | -var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react")); | |
| 2697 | -var _toConsumableArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/toConsumableArray */ "../node_modules/@babel/runtime/helpers/toConsumableArray.js")); | |
| 2698 | -var _utils = __webpack_require__(/*! elementor-app/utils/utils.js */ "../app/assets/js/utils/utils.js"); | |
| 2699 | -__webpack_require__(/*! ./grid.scss */ "../app/assets/js/ui/grid/grid.scss"); | |
| 2700 | -function Grid(props) { | |
| 2701 | - var propsMap = { | |
| 2702 | - direction: '--direction{{ -VALUE }}', | |
| 2703 | - justify: '--justify{{ -VALUE }}', | |
| 2704 | - alignContent: '--align-content{{ -VALUE }}', | |
| 2705 | - alignItems: '--align-items{{ -VALUE }}', | |
| 2706 | - container: '-container', | |
| 2707 | - item: '-item', | |
| 2708 | - noWrap: '-container--no-wrap', | |
| 2709 | - wrapReverse: '-container--wrap-reverse', | |
| 2710 | - zeroMinWidth: '-item--zero-min-width', | |
| 2711 | - spacing: '-container--spacing', | |
| 2712 | - xs: '-item-xs{{ -VALUE }}', | |
| 2713 | - sm: '-item-sm{{ -VALUE }}', | |
| 2714 | - md: '-item-md{{ -VALUE }}', | |
| 2715 | - lg: '-item-lg{{ -VALUE }}', | |
| 2716 | - xl: '-item-xl{{ -VALUE }}', | |
| 2717 | - xxl: '-item-xxl{{ -VALUE }}' | |
| 2718 | - }, | |
| 2719 | - getStyle = function getStyle() { | |
| 2720 | - return isValidPropValue(props.spacing) ? { | |
| 2721 | - '--grid-spacing-gutter': (0, _utils.pxToRem)(props.spacing) | |
| 2722 | - } : {}; | |
| 2723 | - }, | |
| 2724 | - classes = [getBaseClassName(), props.className].concat((0, _toConsumableArray2.default)(getPropsClasses(propsMap, props))); | |
| 2725 | - return /*#__PURE__*/_react.default.createElement("div", { | |
| 2726 | - style: getStyle(), | |
| 2727 | - className: (0, _utils.arrayToClassName)(classes) | |
| 2728 | - }, props.children); | |
| 3581 | + | |
| 3582 | +/***/ }), | |
| 3583 | +/* 195 */ | |
| 3584 | +/***/ (function(module, exports, __webpack_require__) { | |
| 3585 | + | |
| 3586 | +// 26.1.6 Reflect.get(target, propertyKey [, receiver]) | |
| 3587 | +var gOPD = __webpack_require__(51); | |
| 3588 | +var getPrototypeOf = __webpack_require__(64); | |
| 3589 | +var has = __webpack_require__(19); | |
| 3590 | +var $export = __webpack_require__(7); | |
| 3591 | +var isObject = __webpack_require__(9); | |
| 3592 | +var anObject = __webpack_require__(13); | |
| 3593 | + | |
| 3594 | +function get(target, propertyKey /* , receiver */) { | |
| 3595 | + var receiver = arguments.length < 3 ? target : arguments[2]; | |
| 3596 | + var desc, proto; | |
| 3597 | + if (anObject(target) === receiver) return target[propertyKey]; | |
| 3598 | + if (desc = gOPD.f(target, propertyKey)) return has(desc, 'value') | |
| 3599 | + ? desc.value | |
| 3600 | + : desc.get !== undefined | |
| 3601 | + ? desc.get.call(receiver) | |
| 3602 | + : undefined; | |
| 3603 | + if (isObject(proto = getPrototypeOf(target))) return get(proto, propertyKey, receiver); | |
| 2729 | 3604 | } |
| 2730 | -function getPropsClasses(propsMap, props) { | |
| 2731 | - var classes = []; | |
| 2732 | - for (var prop in propsMap) { | |
| 2733 | - if (props[prop]) { | |
| 2734 | - var propValue = isValidPropValue(props[prop]) ? props[prop] : ''; | |
| 2735 | - classes.push(getBaseClassName() + renderPropValueBrackets(propsMap[prop], propValue)); | |
| 2736 | - } | |
| 3605 | + | |
| 3606 | +$export($export.S, 'Reflect', { get: get }); | |
| 3607 | + | |
| 3608 | + | |
| 3609 | +/***/ }), | |
| 3610 | +/* 196 */ | |
| 3611 | +/***/ (function(module, exports, __webpack_require__) { | |
| 3612 | + | |
| 3613 | +var getPrototypeOf = __webpack_require__(16); | |
| 3614 | + | |
| 3615 | +function _superPropBase(object, property) { | |
| 3616 | + while (!Object.prototype.hasOwnProperty.call(object, property)) { | |
| 3617 | + object = getPrototypeOf(object); | |
| 3618 | + if (object === null) break; | |
| 2737 | 3619 | } |
| 2738 | - return classes; | |
| 3620 | + | |
| 3621 | + return object; | |
| 2739 | 3622 | } |
| 2740 | -function renderPropValueBrackets(propClass, propValue) { | |
| 2741 | - var brackets = propClass.match(/{{.*?}}/); | |
| 2742 | - if (brackets) { | |
| 2743 | - var bracketsValue = propValue ? brackets[0].replace(/[{ }]/g, '').replace(/value/i, propValue) : ''; | |
| 2744 | - propClass = propClass.replace(brackets[0], bracketsValue); | |
| 3623 | + | |
| 3624 | +module.exports = _superPropBase; | |
| 3625 | + | |
| 3626 | +/***/ }), | |
| 3627 | +/* 197 */, | |
| 3628 | +/* 198 */ | |
| 3629 | +/***/ (function(module, exports, __webpack_require__) { | |
| 3630 | + | |
| 3631 | +var toInteger = __webpack_require__(57); | |
| 3632 | +var max = Math.max; | |
| 3633 | +var min = Math.min; | |
| 3634 | +module.exports = function (index, length) { | |
| 3635 | + index = toInteger(index); | |
| 3636 | + return index < 0 ? max(index + length, 0) : min(index, length); | |
| 3637 | +}; | |
| 3638 | + | |
| 3639 | + | |
| 3640 | +/***/ }), | |
| 3641 | +/* 199 */ | |
| 3642 | +/***/ (function(module, exports) { | |
| 3643 | + | |
| 3644 | +function _arrayLikeToArray(arr, len) { | |
| 3645 | + if (len == null || len > arr.length) len = arr.length; | |
| 3646 | + | |
| 3647 | + for (var i = 0, arr2 = new Array(len); i < len; i++) { | |
| 3648 | + arr2[i] = arr[i]; | |
| 2745 | 3649 | } |
| 2746 | - return propClass; | |
| 3650 | + | |
| 3651 | + return arr2; | |
| 2747 | 3652 | } |
| 2748 | -function getBaseClassName() { | |
| 2749 | - return 'eps-grid'; | |
| 2750 | -} | |
| 2751 | -function isValidPropValue(propValue) { | |
| 2752 | - return propValue && 'boolean' !== typeof propValue; | |
| 2753 | -} | |
| 2754 | -Grid.propTypes = { | |
| 2755 | - className: PropTypes.string, | |
| 2756 | - direction: PropTypes.oneOf(['row', 'column', 'row-reverse', 'column-reverse']), | |
| 2757 | - justify: PropTypes.oneOf(['start', 'center', 'end', 'space-between', 'space-evenly', 'space-around', 'stretch']), | |
| 2758 | - alignContent: PropTypes.oneOf(['start', 'center', 'end', 'space-between', 'stretch']), | |
| 2759 | - alignItems: PropTypes.oneOf(['start', 'center', 'end', 'baseline', 'stretch']), | |
| 2760 | - container: PropTypes.bool, | |
| 2761 | - item: PropTypes.bool, | |
| 2762 | - noWrap: PropTypes.bool, | |
| 2763 | - wrapReverse: PropTypes.bool, | |
| 2764 | - zeroMinWidth: PropTypes.bool, | |
| 2765 | - spacing: PropTypes.number, | |
| 2766 | - xs: PropTypes.oneOfType([PropTypes.number, PropTypes.bool]), | |
| 2767 | - sm: PropTypes.oneOfType([PropTypes.number, PropTypes.bool]), | |
| 2768 | - md: PropTypes.oneOfType([PropTypes.number, PropTypes.bool]), | |
| 2769 | - lg: PropTypes.oneOfType([PropTypes.number, PropTypes.bool]), | |
| 2770 | - xl: PropTypes.oneOfType([PropTypes.number, PropTypes.bool]), | |
| 2771 | - xxl: PropTypes.oneOfType([PropTypes.number, PropTypes.bool]), | |
| 2772 | - children: PropTypes.any.isRequired | |
| 2773 | -}; | |
| 2774 | -Grid.defaultProps = { | |
| 2775 | - className: '' | |
| 2776 | -}; | |
| 2777 | 3653 | |
| 3654 | +module.exports = _arrayLikeToArray; | |
| 3655 | + | |
| 2778 | 3656 | /***/ }), |
| 3657 | +/* 200 */ | |
| 3658 | +/***/ (function(module, exports, __webpack_require__) { | |
| 2779 | 3659 | |
| 2780 | -/***/ "../app/assets/js/ui/grid/grid.scss": | |
| 2781 | -/*!******************************************!*\ | |
| 2782 | - !*** ../app/assets/js/ui/grid/grid.scss ***! | |
| 2783 | - \******************************************/ | |
| 2784 | -/***/ (() => { | |
| 3660 | +module.exports = __webpack_require__(228); | |
| 2785 | 3661 | |
| 3662 | +/***/ }), | |
| 3663 | +/* 201 */ | |
| 3664 | +/***/ (function(module, exports, __webpack_require__) { | |
| 2786 | 3665 | |
| 3666 | +__webpack_require__(202); | |
| 3667 | +module.exports = __webpack_require__(6).Object.keys; | |
| 2787 | 3668 | |
| 3669 | + | |
| 2788 | 3670 | /***/ }), |
| 3671 | +/* 202 */ | |
| 3672 | +/***/ (function(module, exports, __webpack_require__) { | |
| 2789 | 3673 | |
| 2790 | -/***/ "../app/assets/js/ui/menu/menu-item.js": | |
| 2791 | -/*!*********************************************!*\ | |
| 2792 | - !*** ../app/assets/js/ui/menu/menu-item.js ***! | |
| 2793 | - \*********************************************/ | |
| 2794 | -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 3674 | +// 19.1.2.14 Object.keys(O) | |
| 3675 | +var toObject = __webpack_require__(32); | |
| 3676 | +var $keys = __webpack_require__(40); | |
| 2795 | 3677 | |
| 3678 | +__webpack_require__(86)('keys', function () { | |
| 3679 | + return function keys(it) { | |
| 3680 | + return $keys(toObject(it)); | |
| 3681 | + }; | |
| 3682 | +}); | |
| 3683 | + | |
| 3684 | + | |
| 3685 | +/***/ }), | |
| 3686 | +/* 203 */, | |
| 3687 | +/* 204 */, | |
| 3688 | +/* 205 */, | |
| 3689 | +/* 206 */, | |
| 3690 | +/* 207 */, | |
| 3691 | +/* 208 */, | |
| 3692 | +/* 209 */, | |
| 3693 | +/* 210 */, | |
| 3694 | +/* 211 */ | |
| 3695 | +/***/ (function(module, exports, __webpack_require__) { | |
| 3696 | + | |
| 3697 | +module.exports = __webpack_require__(230); | |
| 3698 | + | |
| 3699 | +/***/ }), | |
| 3700 | +/* 212 */ | |
| 3701 | +/***/ (function(module, exports, __webpack_require__) { | |
| 3702 | + | |
| 2796 | 3703 | "use strict"; |
| 2797 | 3704 | |
| 3705 | +// 19.1.2.1 Object.assign(target, source, ...) | |
| 3706 | +var DESCRIPTORS = __webpack_require__(14); | |
| 3707 | +var getKeys = __webpack_require__(40); | |
| 3708 | +var gOPS = __webpack_require__(71); | |
| 3709 | +var pIE = __webpack_require__(50); | |
| 3710 | +var toObject = __webpack_require__(32); | |
| 3711 | +var IObject = __webpack_require__(104); | |
| 3712 | +var $assign = Object.assign; | |
| 2798 | 3713 | |
| 2799 | -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 2800 | -Object.defineProperty(exports, "__esModule", ({ | |
| 2801 | - value: true | |
| 2802 | -})); | |
| 2803 | -exports["default"] = void 0; | |
| 2804 | -var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); | |
| 2805 | -var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); | |
| 2806 | -var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); | |
| 2807 | -var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); | |
| 2808 | -var _get2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/get */ "../node_modules/@babel/runtime/helpers/get.js")); | |
| 2809 | -var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 2810 | -__webpack_require__(/*! ./menu-item.scss */ "../app/assets/js/ui/menu/menu-item.scss"); | |
| 2811 | -var _button = _interopRequireDefault(__webpack_require__(/*! ../molecules/button */ "../app/assets/js/ui/molecules/button.js")); | |
| 2812 | -function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } | |
| 2813 | -function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } | |
| 2814 | -function _superPropGet(t, o, e, r) { var p = (0, _get2.default)((0, _getPrototypeOf2.default)(1 & r ? t.prototype : t), o, e); return 2 & r && "function" == typeof p ? function (t) { return p.apply(e, t); } : p; } | |
| 2815 | -var SideMenuItem = exports["default"] = /*#__PURE__*/function (_BaseButton) { | |
| 2816 | - function SideMenuItem() { | |
| 2817 | - (0, _classCallCheck2.default)(this, SideMenuItem); | |
| 2818 | - return _callSuper(this, SideMenuItem, arguments); | |
| 2819 | - } | |
| 2820 | - (0, _inherits2.default)(SideMenuItem, _BaseButton); | |
| 2821 | - return (0, _createClass2.default)(SideMenuItem, [{ | |
| 2822 | - key: "getCssId", | |
| 2823 | - value: function getCssId() { | |
| 2824 | - return "eps-menu-item-" + _superPropGet(SideMenuItem, "getCssId", this, 3)([]); | |
| 3714 | +// should work with symbols and should have deterministic property order (V8 bug) | |
| 3715 | +module.exports = !$assign || __webpack_require__(22)(function () { | |
| 3716 | + var A = {}; | |
| 3717 | + var B = {}; | |
| 3718 | + // eslint-disable-next-line no-undef | |
| 3719 | + var S = Symbol(); | |
| 3720 | + var K = 'abcdefghijklmnopqrst'; | |
| 3721 | + A[S] = 7; | |
| 3722 | + K.split('').forEach(function (k) { B[k] = k; }); | |
| 3723 | + return $assign({}, A)[S] != 7 || Object.keys($assign({}, B)).join('') != K; | |
| 3724 | +}) ? function assign(target, source) { // eslint-disable-line no-unused-vars | |
| 3725 | + var T = toObject(target); | |
| 3726 | + var aLen = arguments.length; | |
| 3727 | + var index = 1; | |
| 3728 | + var getSymbols = gOPS.f; | |
| 3729 | + var isEnum = pIE.f; | |
| 3730 | + while (aLen > index) { | |
| 3731 | + var S = IObject(arguments[index++]); | |
| 3732 | + var keys = getSymbols ? getKeys(S).concat(getSymbols(S)) : getKeys(S); | |
| 3733 | + var length = keys.length; | |
| 3734 | + var j = 0; | |
| 3735 | + var key; | |
| 3736 | + while (length > j) { | |
| 3737 | + key = keys[j++]; | |
| 3738 | + if (!DESCRIPTORS || isEnum.call(S, key)) T[key] = S[key]; | |
| 2825 | 3739 | } |
| 2826 | - }, { | |
| 2827 | - key: "getClassName", | |
| 2828 | - value: function getClassName() { | |
| 2829 | - return "eps-menu-item " + _superPropGet(SideMenuItem, "getClassName", this, 3)([]); | |
| 2830 | - } | |
| 2831 | - }]); | |
| 2832 | -}(_button.default); | |
| 3740 | + } return T; | |
| 3741 | +} : $assign; | |
| 2833 | 3742 | |
| 3743 | + | |
| 2834 | 3744 | /***/ }), |
| 3745 | +/* 213 */, | |
| 3746 | +/* 214 */ | |
| 3747 | +/***/ (function(module, exports, __webpack_require__) { | |
| 2835 | 3748 | |
| 2836 | -/***/ "../app/assets/js/ui/menu/menu-item.scss": | |
| 2837 | -/*!***********************************************!*\ | |
| 2838 | - !*** ../app/assets/js/ui/menu/menu-item.scss ***! | |
| 2839 | - \***********************************************/ | |
| 2840 | -/***/ (() => { | |
| 3749 | +var _Object$defineProperty = __webpack_require__(1); | |
| 2841 | 3750 | |
| 3751 | +var _Object$defineProperties = __webpack_require__(290); | |
| 2842 | 3752 | |
| 3753 | +var _Object$getOwnPropertyDescriptors = __webpack_require__(303); | |
| 2843 | 3754 | |
| 2844 | -/***/ }), | |
| 3755 | +var _Object$getOwnPropertyDescriptor = __webpack_require__(124); | |
| 2845 | 3756 | |
| 2846 | -/***/ "../app/assets/js/ui/menu/menu.js": | |
| 2847 | -/*!****************************************!*\ | |
| 2848 | - !*** ../app/assets/js/ui/menu/menu.js ***! | |
| 2849 | - \****************************************/ | |
| 2850 | -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 3757 | +var _Object$getOwnPropertySymbols = __webpack_require__(307); | |
| 2851 | 3758 | |
| 2852 | -"use strict"; | |
| 2853 | -/* provided dependency */ var PropTypes = __webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js"); | |
| 3759 | +var _Object$keys = __webpack_require__(23); | |
| 2854 | 3760 | |
| 3761 | +var defineProperty = __webpack_require__(28); | |
| 2855 | 3762 | |
| 2856 | -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 2857 | -Object.defineProperty(exports, "__esModule", ({ | |
| 2858 | - value: true | |
| 2859 | -})); | |
| 2860 | -exports["default"] = Menu; | |
| 2861 | -var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react")); | |
| 2862 | -var _extends2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/extends */ "../node_modules/@babel/runtime/helpers/extends.js")); | |
| 2863 | -__webpack_require__(/*! ./menu.scss */ "../app/assets/js/ui/menu/menu.scss"); | |
| 2864 | -var _button = _interopRequireDefault(__webpack_require__(/*! ../molecules/button */ "../app/assets/js/ui/molecules/button.js")); | |
| 2865 | -var _router = _interopRequireDefault(__webpack_require__(/*! @elementor/router */ "@elementor/router")); | |
| 2866 | -var _router2 = __webpack_require__(/*! @reach/router */ "../node_modules/@reach/router/es/index.js"); | |
| 2867 | -function Menu(props) { | |
| 2868 | - var ActionButton = function ActionButton(itemProps) { | |
| 2869 | - if (!props.actionButton) { | |
| 2870 | - return ''; | |
| 3763 | +function ownKeys(object, enumerableOnly) { | |
| 3764 | + var keys = _Object$keys(object); | |
| 3765 | + | |
| 3766 | + if (_Object$getOwnPropertySymbols) { | |
| 3767 | + var symbols = _Object$getOwnPropertySymbols(object); | |
| 3768 | + | |
| 3769 | + if (enumerableOnly) symbols = symbols.filter(function (sym) { | |
| 3770 | + return _Object$getOwnPropertyDescriptor(object, sym).enumerable; | |
| 3771 | + }); | |
| 3772 | + keys.push.apply(keys, symbols); | |
| 3773 | + } | |
| 3774 | + | |
| 3775 | + return keys; | |
| 3776 | +} | |
| 3777 | + | |
| 3778 | +function _objectSpread2(target) { | |
| 3779 | + for (var i = 1; i < arguments.length; i++) { | |
| 3780 | + var source = arguments[i] != null ? arguments[i] : {}; | |
| 3781 | + | |
| 3782 | + if (i % 2) { | |
| 3783 | + ownKeys(Object(source), true).forEach(function (key) { | |
| 3784 | + defineProperty(target, key, source[key]); | |
| 3785 | + }); | |
| 3786 | + } else if (_Object$getOwnPropertyDescriptors) { | |
| 3787 | + _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)); | |
| 3788 | + } else { | |
| 3789 | + ownKeys(Object(source)).forEach(function (key) { | |
| 3790 | + _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); | |
| 3791 | + }); | |
| 2871 | 3792 | } |
| 2872 | - return props.actionButton(itemProps); | |
| 2873 | - }; | |
| 2874 | - if (props.promotion) { | |
| 2875 | - return /*#__PURE__*/_react.default.createElement("nav", { | |
| 2876 | - className: "eps-menu" | |
| 2877 | - }, props.children, /*#__PURE__*/_react.default.createElement("ul", null, props.menuItems.map(function (item) { | |
| 2878 | - return /*#__PURE__*/_react.default.createElement("li", { | |
| 2879 | - key: item.type, | |
| 2880 | - className: "eps-menu-item" | |
| 2881 | - }, /*#__PURE__*/_react.default.createElement(_button.default, (0, _extends2.default)({ | |
| 2882 | - text: item.title, | |
| 2883 | - className: "eps-menu-item__link" | |
| 2884 | - }, item)), /*#__PURE__*/_react.default.createElement(ActionButton, item)); | |
| 2885 | - }))); | |
| 2886 | 3793 | } |
| 2887 | - return /*#__PURE__*/_react.default.createElement(_router2.LocationProvider, { | |
| 2888 | - history: _router.default.appHistory | |
| 2889 | - }, /*#__PURE__*/_react.default.createElement("nav", { | |
| 2890 | - className: "eps-menu" | |
| 2891 | - }, props.children, /*#__PURE__*/_react.default.createElement("ul", null, props.menuItems.map(function (item) { | |
| 2892 | - return /*#__PURE__*/_react.default.createElement(_router2.Match, { | |
| 2893 | - key: item.type, | |
| 2894 | - path: item.url | |
| 2895 | - }, function (_ref) { | |
| 2896 | - var match = _ref.match; | |
| 2897 | - return /*#__PURE__*/_react.default.createElement("li", { | |
| 2898 | - key: item.type, | |
| 2899 | - className: "eps-menu-item".concat(match ? ' eps-menu-item--active' : '') | |
| 2900 | - }, /*#__PURE__*/_react.default.createElement(_button.default, (0, _extends2.default)({ | |
| 2901 | - text: item.title, | |
| 2902 | - className: "eps-menu-item__link" | |
| 2903 | - }, item)), /*#__PURE__*/_react.default.createElement(ActionButton, item)); | |
| 2904 | - }); | |
| 2905 | - })))); | |
| 3794 | + | |
| 3795 | + return target; | |
| 2906 | 3796 | } |
| 2907 | -Menu.propTypes = { | |
| 2908 | - menuItems: PropTypes.arrayOf(PropTypes.object), | |
| 2909 | - children: PropTypes.any, | |
| 2910 | - actionButton: PropTypes.func, | |
| 2911 | - promotion: PropTypes.bool | |
| 2912 | -}; | |
| 2913 | 3797 | |
| 3798 | +module.exports = _objectSpread2; | |
| 3799 | + | |
| 2914 | 3800 | /***/ }), |
| 3801 | +/* 215 */, | |
| 3802 | +/* 216 */, | |
| 3803 | +/* 217 */, | |
| 3804 | +/* 218 */, | |
| 3805 | +/* 219 */, | |
| 3806 | +/* 220 */ | |
| 3807 | +/***/ (function(module, exports, __webpack_require__) { | |
| 2915 | 3808 | |
| 2916 | -/***/ "../app/assets/js/ui/menu/menu.scss": | |
| 2917 | -/*!******************************************!*\ | |
| 2918 | - !*** ../app/assets/js/ui/menu/menu.scss ***! | |
| 2919 | - \******************************************/ | |
| 2920 | -/***/ (() => { | |
| 3809 | +__webpack_require__(221); | |
| 3810 | +module.exports = __webpack_require__(6).Array.isArray; | |
| 2921 | 3811 | |
| 2922 | 3812 | |
| 3813 | +/***/ }), | |
| 3814 | +/* 221 */ | |
| 3815 | +/***/ (function(module, exports, __webpack_require__) { | |
| 2923 | 3816 | |
| 3817 | +// 22.1.2.2 / 15.4.3.2 Array.isArray(arg) | |
| 3818 | +var $export = __webpack_require__(7); | |
| 3819 | + | |
| 3820 | +$export($export.S, 'Array', { isArray: __webpack_require__(97) }); | |
| 3821 | + | |
| 3822 | + | |
| 2924 | 3823 | /***/ }), |
| 3824 | +/* 222 */, | |
| 3825 | +/* 223 */, | |
| 3826 | +/* 224 */, | |
| 3827 | +/* 225 */, | |
| 3828 | +/* 226 */, | |
| 3829 | +/* 227 */, | |
| 3830 | +/* 228 */ | |
| 3831 | +/***/ (function(module, exports, __webpack_require__) { | |
| 2925 | 3832 | |
| 2926 | -/***/ "../app/assets/js/ui/modal/modal-section.js": | |
| 2927 | -/*!**************************************************!*\ | |
| 2928 | - !*** ../app/assets/js/ui/modal/modal-section.js ***! | |
| 2929 | - \**************************************************/ | |
| 2930 | -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 3833 | +__webpack_require__(60); | |
| 3834 | +__webpack_require__(229); | |
| 3835 | +module.exports = __webpack_require__(6).Array.from; | |
| 2931 | 3836 | |
| 3837 | + | |
| 3838 | +/***/ }), | |
| 3839 | +/* 229 */ | |
| 3840 | +/***/ (function(module, exports, __webpack_require__) { | |
| 3841 | + | |
| 2932 | 3842 | "use strict"; |
| 2933 | -/* provided dependency */ var PropTypes = __webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js"); | |
| 2934 | 3843 | |
| 3844 | +var ctx = __webpack_require__(31); | |
| 3845 | +var $export = __webpack_require__(7); | |
| 3846 | +var toObject = __webpack_require__(32); | |
| 3847 | +var call = __webpack_require__(141); | |
| 3848 | +var isArrayIter = __webpack_require__(142); | |
| 3849 | +var toLength = __webpack_require__(69); | |
| 3850 | +var createProperty = __webpack_require__(186); | |
| 3851 | +var getIterFn = __webpack_require__(112); | |
| 2935 | 3852 | |
| 2936 | -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 2937 | -Object.defineProperty(exports, "__esModule", ({ | |
| 2938 | - value: true | |
| 2939 | -})); | |
| 2940 | -exports["default"] = ModalSection; | |
| 2941 | -var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react")); | |
| 2942 | -var _utils = __webpack_require__(/*! ../../utils/utils */ "../app/assets/js/utils/utils.js"); | |
| 2943 | -function ModalSection(props) { | |
| 2944 | - return /*#__PURE__*/_react.default.createElement("section", { | |
| 2945 | - className: (0, _utils.arrayToClassName)(['eps-modal__section', props.className]) | |
| 2946 | - }, props.children); | |
| 2947 | -} | |
| 2948 | -ModalSection.propTypes = { | |
| 2949 | - className: PropTypes.string, | |
| 2950 | - children: PropTypes.any | |
| 2951 | -}; | |
| 2952 | -ModalSection.defaultProps = { | |
| 2953 | - className: '' | |
| 2954 | -}; | |
| 3853 | +$export($export.S + $export.F * !__webpack_require__(152)(function (iter) { Array.from(iter); }), 'Array', { | |
| 3854 | + // 22.1.2.1 Array.from(arrayLike, mapfn = undefined, thisArg = undefined) | |
| 3855 | + from: function from(arrayLike /* , mapfn = undefined, thisArg = undefined */) { | |
| 3856 | + var O = toObject(arrayLike); | |
| 3857 | + var C = typeof this == 'function' ? this : Array; | |
| 3858 | + var aLen = arguments.length; | |
| 3859 | + var mapfn = aLen > 1 ? arguments[1] : undefined; | |
| 3860 | + var mapping = mapfn !== undefined; | |
| 3861 | + var index = 0; | |
| 3862 | + var iterFn = getIterFn(O); | |
| 3863 | + var length, result, step, iterator; | |
| 3864 | + if (mapping) mapfn = ctx(mapfn, aLen > 2 ? arguments[2] : undefined, 2); | |
| 3865 | + // if object isn't iterable or it's array with default iterator - use simple case | |
| 3866 | + if (iterFn != undefined && !(C == Array && isArrayIter(iterFn))) { | |
| 3867 | + for (iterator = iterFn.call(O), result = new C(); !(step = iterator.next()).done; index++) { | |
| 3868 | + createProperty(result, index, mapping ? call(iterator, mapfn, [step.value, index], true) : step.value); | |
| 3869 | + } | |
| 3870 | + } else { | |
| 3871 | + length = toLength(O.length); | |
| 3872 | + for (result = new C(length); length > index; index++) { | |
| 3873 | + createProperty(result, index, mapping ? mapfn(O[index], index) : O[index]); | |
| 3874 | + } | |
| 3875 | + } | |
| 3876 | + result.length = index; | |
| 3877 | + return result; | |
| 3878 | + } | |
| 3879 | +}); | |
| 2955 | 3880 | |
| 3881 | + | |
| 2956 | 3882 | /***/ }), |
| 3883 | +/* 230 */ | |
| 3884 | +/***/ (function(module, exports, __webpack_require__) { | |
| 2957 | 3885 | |
| 2958 | -/***/ "../app/assets/js/ui/modal/modal-tip.js": | |
| 2959 | -/*!**********************************************!*\ | |
| 2960 | - !*** ../app/assets/js/ui/modal/modal-tip.js ***! | |
| 2961 | - \**********************************************/ | |
| 2962 | -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 3886 | +__webpack_require__(62); | |
| 3887 | +__webpack_require__(60); | |
| 3888 | +module.exports = __webpack_require__(231); | |
| 2963 | 3889 | |
| 2964 | -"use strict"; | |
| 2965 | -/* provided dependency */ var PropTypes = __webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js"); | |
| 2966 | -/* provided dependency */ var __ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n")["__"]; | |
| 2967 | 3890 | |
| 3891 | +/***/ }), | |
| 3892 | +/* 231 */ | |
| 3893 | +/***/ (function(module, exports, __webpack_require__) { | |
| 2968 | 3894 | |
| 2969 | -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 2970 | -Object.defineProperty(exports, "__esModule", ({ | |
| 2971 | - value: true | |
| 2972 | -})); | |
| 2973 | -exports["default"] = ModalTip; | |
| 2974 | -var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react")); | |
| 2975 | -var _utils = __webpack_require__(/*! ../../utils/utils */ "../app/assets/js/utils/utils.js"); | |
| 2976 | -var _heading = _interopRequireDefault(__webpack_require__(/*! elementor-app/ui/atoms/heading */ "../app/assets/js/ui/atoms/heading.js")); | |
| 2977 | -var _text = _interopRequireDefault(__webpack_require__(/*! elementor-app/ui/atoms/text */ "../app/assets/js/ui/atoms/text.js")); | |
| 2978 | -function ModalTip(props) { | |
| 2979 | - return /*#__PURE__*/_react.default.createElement("div", { | |
| 2980 | - className: (0, _utils.arrayToClassName)(['eps-modal__tip', props.className]) | |
| 2981 | - }, /*#__PURE__*/_react.default.createElement(_heading.default, { | |
| 2982 | - variant: "h3", | |
| 2983 | - tag: "h3" | |
| 2984 | - }, props.title), props.description && /*#__PURE__*/_react.default.createElement(_text.default, { | |
| 2985 | - variant: "xs" | |
| 2986 | - }, props.description)); | |
| 2987 | -} | |
| 2988 | -ModalTip.propTypes = { | |
| 2989 | - className: PropTypes.string, | |
| 2990 | - title: PropTypes.string, | |
| 2991 | - description: PropTypes.string | |
| 3895 | +var classof = __webpack_require__(101); | |
| 3896 | +var ITERATOR = __webpack_require__(10)('iterator'); | |
| 3897 | +var Iterators = __webpack_require__(35); | |
| 3898 | +module.exports = __webpack_require__(6).isIterable = function (it) { | |
| 3899 | + var O = Object(it); | |
| 3900 | + return O[ITERATOR] !== undefined | |
| 3901 | + || '@@iterator' in O | |
| 3902 | + // eslint-disable-next-line no-prototype-builtins | |
| 3903 | + || Iterators.hasOwnProperty(classof(O)); | |
| 2992 | 3904 | }; |
| 2993 | -ModalTip.defaultProps = { | |
| 2994 | - className: '', | |
| 2995 | - title: __('Tip', 'elementor') | |
| 2996 | -}; | |
| 2997 | 3905 | |
| 3906 | + | |
| 2998 | 3907 | /***/ }), |
| 3908 | +/* 232 */ | |
| 3909 | +/***/ (function(module, exports, __webpack_require__) { | |
| 2999 | 3910 | |
| 3000 | -/***/ "../app/assets/js/ui/modal/modal.js": | |
| 3001 | -/*!******************************************!*\ | |
| 3002 | - !*** ../app/assets/js/ui/modal/modal.js ***! | |
| 3003 | - \******************************************/ | |
| 3004 | -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 3911 | +"use strict"; | |
| 3005 | 3912 | |
| 3006 | -"use strict"; | |
| 3007 | -/* provided dependency */ var PropTypes = __webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js"); | |
| 3008 | -/* provided dependency */ var __ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n")["__"]; | |
| 3913 | +var global = __webpack_require__(8); | |
| 3914 | +var $export = __webpack_require__(7); | |
| 3915 | +var meta = __webpack_require__(70); | |
| 3916 | +var fails = __webpack_require__(22); | |
| 3917 | +var hide = __webpack_require__(24); | |
| 3918 | +var redefineAll = __webpack_require__(126); | |
| 3919 | +var forOf = __webpack_require__(88); | |
| 3920 | +var anInstance = __webpack_require__(125); | |
| 3921 | +var isObject = __webpack_require__(9); | |
| 3922 | +var setToStringTag = __webpack_require__(53); | |
| 3923 | +var dP = __webpack_require__(15).f; | |
| 3924 | +var each = __webpack_require__(138)(0); | |
| 3925 | +var DESCRIPTORS = __webpack_require__(14); | |
| 3009 | 3926 | |
| 3927 | +module.exports = function (NAME, wrapper, methods, common, IS_MAP, IS_WEAK) { | |
| 3928 | + var Base = global[NAME]; | |
| 3929 | + var C = Base; | |
| 3930 | + var ADDER = IS_MAP ? 'set' : 'add'; | |
| 3931 | + var proto = C && C.prototype; | |
| 3932 | + var O = {}; | |
| 3933 | + if (!DESCRIPTORS || typeof C != 'function' || !(IS_WEAK || proto.forEach && !fails(function () { | |
| 3934 | + new C().entries().next(); | |
| 3935 | + }))) { | |
| 3936 | + // create collection constructor | |
| 3937 | + C = common.getConstructor(wrapper, NAME, IS_MAP, ADDER); | |
| 3938 | + redefineAll(C.prototype, methods); | |
| 3939 | + meta.NEED = true; | |
| 3940 | + } else { | |
| 3941 | + C = wrapper(function (target, iterable) { | |
| 3942 | + anInstance(target, C, NAME, '_c'); | |
| 3943 | + target._c = new Base(); | |
| 3944 | + if (iterable != undefined) forOf(iterable, IS_MAP, target[ADDER], target); | |
| 3945 | + }); | |
| 3946 | + each('add,clear,delete,forEach,get,has,set,keys,values,entries,toJSON'.split(','), function (KEY) { | |
| 3947 | + var IS_ADDER = KEY == 'add' || KEY == 'set'; | |
| 3948 | + if (KEY in proto && !(IS_WEAK && KEY == 'clear')) hide(C.prototype, KEY, function (a, b) { | |
| 3949 | + anInstance(this, C, KEY); | |
| 3950 | + if (!IS_ADDER && IS_WEAK && !isObject(a)) return KEY == 'get' ? undefined : false; | |
| 3951 | + var result = this._c[KEY](a === 0 ? 0 : a, b); | |
| 3952 | + return IS_ADDER ? this : result; | |
| 3953 | + }); | |
| 3954 | + }); | |
| 3955 | + IS_WEAK || dP(C.prototype, 'size', { | |
| 3956 | + get: function () { | |
| 3957 | + return this._c.size; | |
| 3958 | + } | |
| 3959 | + }); | |
| 3960 | + } | |
| 3010 | 3961 | |
| 3011 | -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 3012 | -var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ "../node_modules/@babel/runtime/helpers/typeof.js"); | |
| 3013 | -Object.defineProperty(exports, "__esModule", ({ | |
| 3014 | - value: true | |
| 3015 | -})); | |
| 3016 | -exports.Modal = void 0; | |
| 3017 | -exports["default"] = ModalProvider; | |
| 3018 | -var _react = _interopRequireWildcard(__webpack_require__(/*! react */ "react")); | |
| 3019 | -var _extends2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/extends */ "../node_modules/@babel/runtime/helpers/extends.js")); | |
| 3020 | -var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "../node_modules/@babel/runtime/helpers/defineProperty.js")); | |
| 3021 | -var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ "../node_modules/@babel/runtime/helpers/slicedToArray.js")); | |
| 3022 | -var _utils = __webpack_require__(/*! elementor-app/utils/utils.js */ "../app/assets/js/utils/utils.js"); | |
| 3023 | -var _button = _interopRequireDefault(__webpack_require__(/*! elementor-app/ui/molecules/button */ "../app/assets/js/ui/molecules/button.js")); | |
| 3024 | -var _grid = _interopRequireDefault(__webpack_require__(/*! elementor-app/ui/grid/grid */ "../app/assets/js/ui/grid/grid.js")); | |
| 3025 | -var _icon = _interopRequireDefault(__webpack_require__(/*! elementor-app/ui/atoms/icon */ "../app/assets/js/ui/atoms/icon.js")); | |
| 3026 | -var _text = _interopRequireDefault(__webpack_require__(/*! elementor-app/ui/atoms/text */ "../app/assets/js/ui/atoms/text.js")); | |
| 3027 | -var _modalSection = _interopRequireDefault(__webpack_require__(/*! ./modal-section */ "../app/assets/js/ui/modal/modal-section.js")); | |
| 3028 | -var _modalTip = _interopRequireDefault(__webpack_require__(/*! ./modal-tip */ "../app/assets/js/ui/modal/modal-tip.js")); | |
| 3029 | -__webpack_require__(/*! ./modal.scss */ "../app/assets/js/ui/modal/modal.scss"); | |
| 3030 | -function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); } | |
| 3031 | -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } | |
| 3032 | -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } | |
| 3033 | -function ModalProvider(props) { | |
| 3034 | - var _useState = (0, _react.useState)(props.show), | |
| 3035 | - _useState2 = (0, _slicedToArray2.default)(_useState, 2), | |
| 3036 | - show = _useState2[0], | |
| 3037 | - setShow = _useState2[1], | |
| 3038 | - hideModal = function hideModal() { | |
| 3039 | - setShow(false); | |
| 3962 | + setToStringTag(C, NAME); | |
| 3040 | 3963 | |
| 3041 | - // The purpose of the props.setShow is to sync an external state with the component inner state. | |
| 3042 | - if (props.setShow) { | |
| 3043 | - props.setShow(false); | |
| 3044 | - } | |
| 3045 | - }, | |
| 3046 | - showModal = function showModal() { | |
| 3047 | - setShow(true); | |
| 3964 | + O[NAME] = C; | |
| 3965 | + $export($export.G + $export.W + $export.F, O); | |
| 3048 | 3966 | |
| 3049 | - // The purpose of the props.setShow is to sync an external state with the component inner state. | |
| 3050 | - if (props.setShow) { | |
| 3051 | - props.setShow(true); | |
| 3052 | - } | |
| 3053 | - }, | |
| 3054 | - modalAttrs = _objectSpread(_objectSpread({}, props), {}, { | |
| 3055 | - show: show, | |
| 3056 | - hideModal: hideModal, | |
| 3057 | - showModal: showModal | |
| 3058 | - }); | |
| 3059 | - (0, _react.useEffect)(function () { | |
| 3060 | - // Sync with external state. | |
| 3061 | - setShow(props.show); | |
| 3062 | - }, [props.show]); | |
| 3063 | - return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, props.toggleButtonProps && /*#__PURE__*/_react.default.createElement(_button.default, (0, _extends2.default)({}, props.toggleButtonProps, { | |
| 3064 | - onClick: showModal | |
| 3065 | - })), /*#__PURE__*/_react.default.createElement(Modal, modalAttrs, props.children)); | |
| 3066 | -} | |
| 3067 | -ModalProvider.propTypes = { | |
| 3068 | - children: PropTypes.node.isRequired, | |
| 3069 | - toggleButtonProps: PropTypes.object, | |
| 3070 | - title: PropTypes.string, | |
| 3071 | - icon: PropTypes.string, | |
| 3072 | - show: PropTypes.bool, | |
| 3073 | - setShow: PropTypes.func, | |
| 3074 | - onOpen: PropTypes.func, | |
| 3075 | - onClose: PropTypes.func | |
| 3967 | + if (!IS_WEAK) common.setStrong(C, NAME, IS_MAP); | |
| 3968 | + | |
| 3969 | + return C; | |
| 3076 | 3970 | }; |
| 3077 | -ModalProvider.defaultProps = { | |
| 3078 | - show: false | |
| 3971 | + | |
| 3972 | + | |
| 3973 | +/***/ }), | |
| 3974 | +/* 233 */ | |
| 3975 | +/***/ (function(module, exports, __webpack_require__) { | |
| 3976 | + | |
| 3977 | +"use strict"; | |
| 3978 | + | |
| 3979 | +// https://tc39.github.io/proposal-setmap-offrom/ | |
| 3980 | +var $export = __webpack_require__(7); | |
| 3981 | + | |
| 3982 | +module.exports = function (COLLECTION) { | |
| 3983 | + $export($export.S, COLLECTION, { of: function of() { | |
| 3984 | + var length = arguments.length; | |
| 3985 | + var A = new Array(length); | |
| 3986 | + while (length--) A[length] = arguments[length]; | |
| 3987 | + return new this(A); | |
| 3988 | + } }); | |
| 3079 | 3989 | }; |
| 3080 | -ModalProvider.Section = _modalSection.default; | |
| 3081 | -ModalProvider.Tip = _modalTip.default; | |
| 3082 | -var Modal = exports.Modal = function Modal(props) { | |
| 3083 | - var modalRef = (0, _react.useRef)(null), | |
| 3084 | - closeRef = (0, _react.useRef)(null), | |
| 3085 | - closeModal = function closeModal(e) { | |
| 3086 | - var node = modalRef.current, | |
| 3087 | - closeNode = closeRef.current, | |
| 3088 | - isInCloseNode = closeNode && closeNode.contains(e.target); | |
| 3089 | 3990 | |
| 3090 | - // Ignore if click is inside the modal | |
| 3091 | - if (node && node.contains(e.target) && !isInCloseNode) { | |
| 3092 | - return; | |
| 3093 | - } | |
| 3094 | - props.hideModal(); | |
| 3095 | - if (props.onClose) { | |
| 3096 | - props.onClose(e); | |
| 3097 | - } | |
| 3098 | - }; | |
| 3099 | - (0, _react.useEffect)(function () { | |
| 3100 | - if (props.show) { | |
| 3101 | - var _props$onOpen; | |
| 3102 | - document.addEventListener('mousedown', closeModal, false); | |
| 3103 | - (_props$onOpen = props.onOpen) === null || _props$onOpen === void 0 || _props$onOpen.call(props); | |
| 3104 | - } | |
| 3105 | - return function () { | |
| 3106 | - return document.removeEventListener('mousedown', closeModal, false); | |
| 3107 | - }; | |
| 3108 | - // eslint-disable-next-line react-hooks/exhaustive-deps | |
| 3109 | - }, [props.show]); | |
| 3110 | - if (!props.show) { | |
| 3111 | - return null; | |
| 3112 | - } | |
| 3113 | - return ( | |
| 3114 | - /*#__PURE__*/ | |
| 3115 | - // eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions | |
| 3116 | - _react.default.createElement("div", { | |
| 3117 | - className: "eps-modal__overlay", | |
| 3118 | - onClick: closeModal | |
| 3119 | - }, /*#__PURE__*/_react.default.createElement("div", { | |
| 3120 | - className: (0, _utils.arrayToClassName)(['eps-modal', props.className]), | |
| 3121 | - ref: modalRef | |
| 3122 | - }, /*#__PURE__*/_react.default.createElement(_grid.default, { | |
| 3123 | - container: true, | |
| 3124 | - className: "eps-modal__header", | |
| 3125 | - justify: "space-between", | |
| 3126 | - alignItems: "center" | |
| 3127 | - }, /*#__PURE__*/_react.default.createElement(_grid.default, { | |
| 3128 | - item: true | |
| 3129 | - }, /*#__PURE__*/_react.default.createElement(_icon.default, { | |
| 3130 | - className: "eps-modal__icon ".concat(props.icon) | |
| 3131 | - }), /*#__PURE__*/_react.default.createElement(_text.default, { | |
| 3132 | - className: "title", | |
| 3133 | - tag: "span" | |
| 3134 | - }, props.title)), /*#__PURE__*/_react.default.createElement(_grid.default, { | |
| 3135 | - item: true | |
| 3136 | - }, /*#__PURE__*/_react.default.createElement("div", { | |
| 3137 | - className: "eps-modal__close-wrapper", | |
| 3138 | - ref: closeRef | |
| 3139 | - }, /*#__PURE__*/_react.default.createElement(_button.default, { | |
| 3140 | - text: __('Close', 'elementor'), | |
| 3141 | - hideText: true, | |
| 3142 | - icon: "eicon-close", | |
| 3143 | - onClick: props.closeModal | |
| 3144 | - })))), /*#__PURE__*/_react.default.createElement("div", { | |
| 3145 | - className: "eps-modal__body" | |
| 3146 | - }, props.children))) | |
| 3147 | - ); | |
| 3148 | -}; | |
| 3149 | -Modal.propTypes = { | |
| 3150 | - className: PropTypes.string, | |
| 3151 | - children: PropTypes.any.isRequired, | |
| 3152 | - title: PropTypes.string.isRequired, | |
| 3153 | - icon: PropTypes.string, | |
| 3154 | - show: PropTypes.bool, | |
| 3155 | - setShow: PropTypes.func, | |
| 3156 | - hideModal: PropTypes.func, | |
| 3157 | - showModal: PropTypes.func, | |
| 3158 | - closeModal: PropTypes.func, | |
| 3159 | - onOpen: PropTypes.func, | |
| 3160 | - onClose: PropTypes.func | |
| 3161 | -}; | |
| 3162 | -Modal.defaultProps = { | |
| 3163 | - className: '' | |
| 3164 | -}; | |
| 3165 | 3991 | |
| 3166 | 3992 | /***/ }), |
| 3993 | +/* 234 */ | |
| 3994 | +/***/ (function(module, exports, __webpack_require__) { | |
| 3167 | 3995 | |
| 3168 | -/***/ "../app/assets/js/ui/modal/modal.scss": | |
| 3169 | -/*!********************************************!*\ | |
| 3170 | - !*** ../app/assets/js/ui/modal/modal.scss ***! | |
| 3171 | - \********************************************/ | |
| 3172 | -/***/ (() => { | |
| 3996 | +"use strict"; | |
| 3173 | 3997 | |
| 3998 | +// https://tc39.github.io/proposal-setmap-offrom/ | |
| 3999 | +var $export = __webpack_require__(7); | |
| 4000 | +var aFunction = __webpack_require__(38); | |
| 4001 | +var ctx = __webpack_require__(31); | |
| 4002 | +var forOf = __webpack_require__(88); | |
| 3174 | 4003 | |
| 4004 | +module.exports = function (COLLECTION) { | |
| 4005 | + $export($export.S, COLLECTION, { from: function from(source /* , mapFn, thisArg */) { | |
| 4006 | + var mapFn = arguments[1]; | |
| 4007 | + var mapping, A, n, cb; | |
| 4008 | + aFunction(this); | |
| 4009 | + mapping = mapFn !== undefined; | |
| 4010 | + if (mapping) aFunction(mapFn); | |
| 4011 | + if (source == undefined) return new this(); | |
| 4012 | + A = []; | |
| 4013 | + if (mapping) { | |
| 4014 | + n = 0; | |
| 4015 | + cb = ctx(mapFn, arguments[2], 2); | |
| 4016 | + forOf(source, false, function (nextItem) { | |
| 4017 | + A.push(cb(nextItem, n++)); | |
| 4018 | + }); | |
| 4019 | + } else { | |
| 4020 | + forOf(source, false, A.push, A); | |
| 4021 | + } | |
| 4022 | + return new this(A); | |
| 4023 | + } }); | |
| 4024 | +}; | |
| 3175 | 4025 | |
| 4026 | + | |
| 3176 | 4027 | /***/ }), |
| 4028 | +/* 235 */, | |
| 4029 | +/* 236 */ | |
| 4030 | +/***/ (function(module, exports, __webpack_require__) { | |
| 3177 | 4031 | |
| 3178 | -/***/ "../app/assets/js/ui/molecules/add-new-button.js": | |
| 3179 | -/*!*******************************************************!*\ | |
| 3180 | - !*** ../app/assets/js/ui/molecules/add-new-button.js ***! | |
| 3181 | - \*******************************************************/ | |
| 3182 | -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 4032 | +module.exports = __webpack_require__(249); | |
| 3183 | 4033 | |
| 4034 | +/***/ }), | |
| 4035 | +/* 237 */, | |
| 4036 | +/* 238 */ | |
| 4037 | +/***/ (function(module, exports, __webpack_require__) { | |
| 4038 | + | |
| 3184 | 4039 | "use strict"; |
| 3185 | -/* provided dependency */ var PropTypes = __webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js"); | |
| 3186 | -/* provided dependency */ var __ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n")["__"]; | |
| 4040 | +/* WEBPACK VAR INJECTION */(function(PropTypes) { | |
| 3187 | 4041 | |
| 4042 | +var _interopRequireDefault = __webpack_require__(0); | |
| 3188 | 4043 | |
| 3189 | -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 3190 | -Object.defineProperty(exports, "__esModule", ({ | |
| 4044 | +var _Object$defineProperty = __webpack_require__(1); | |
| 4045 | + | |
| 4046 | +_Object$defineProperty(exports, "__esModule", { | |
| 3191 | 4047 | value: true |
| 3192 | -})); | |
| 3193 | -exports["default"] = void 0; | |
| 3194 | -var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); | |
| 3195 | -var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); | |
| 3196 | -var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); | |
| 3197 | -var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); | |
| 3198 | -var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 3199 | -var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "../node_modules/@babel/runtime/helpers/defineProperty.js")); | |
| 3200 | -var _button = _interopRequireDefault(__webpack_require__(/*! ./button */ "../app/assets/js/ui/molecules/button.js")); | |
| 3201 | -__webpack_require__(/*! ./add-new-button.scss */ "../app/assets/js/ui/molecules/add-new-button.scss"); | |
| 3202 | -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } | |
| 3203 | -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } | |
| 3204 | -function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } | |
| 3205 | -function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } | |
| 3206 | -var AddNewButton = exports["default"] = /*#__PURE__*/function (_Button) { | |
| 3207 | - function AddNewButton() { | |
| 3208 | - (0, _classCallCheck2.default)(this, AddNewButton); | |
| 3209 | - return _callSuper(this, AddNewButton, arguments); | |
| 3210 | - } | |
| 3211 | - (0, _inherits2.default)(AddNewButton, _Button); | |
| 3212 | - return (0, _createClass2.default)(AddNewButton, [{ | |
| 3213 | - key: "getClassName", | |
| 3214 | - value: function getClassName() { | |
| 3215 | - var className = this.props.className; | |
| 3216 | - if (this.props.size) { | |
| 3217 | - className += ' eps-add-new-button--' + this.props.size; | |
| 3218 | - } | |
| 3219 | - return className; | |
| 3220 | - } | |
| 3221 | - }]); | |
| 3222 | -}(_button.default); | |
| 3223 | -(0, _defineProperty2.default)(AddNewButton, "propTypes", _objectSpread(_objectSpread({}, _button.default.propTypes), {}, { | |
| 3224 | - text: PropTypes.string, | |
| 3225 | - size: PropTypes.string | |
| 3226 | -})); | |
| 3227 | -(0, _defineProperty2.default)(AddNewButton, "defaultProps", _objectSpread(_objectSpread({}, _button.default.defaultProps), {}, { | |
| 3228 | - className: 'eps-add-new-button', | |
| 3229 | - text: __('Add New', 'elementor'), | |
| 3230 | - icon: 'eicon-plus' | |
| 3231 | -})); | |
| 4048 | +}); | |
| 3232 | 4049 | |
| 3233 | -/***/ }), | |
| 4050 | +exports.default = void 0; | |
| 3234 | 4051 | |
| 3235 | -/***/ "../app/assets/js/ui/molecules/add-new-button.scss": | |
| 3236 | -/*!*********************************************************!*\ | |
| 3237 | - !*** ../app/assets/js/ui/molecules/add-new-button.scss ***! | |
| 3238 | - \*********************************************************/ | |
| 3239 | -/***/ (() => { | |
| 4052 | +var _react = _interopRequireDefault(__webpack_require__(11)); | |
| 3240 | 4053 | |
| 4054 | +var _extends2 = _interopRequireDefault(__webpack_require__(188)); | |
| 3241 | 4055 | |
| 4056 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2)); | |
| 3242 | 4057 | |
| 3243 | -/***/ }), | |
| 4058 | +var _createClass2 = _interopRequireDefault(__webpack_require__(3)); | |
| 3244 | 4059 | |
| 3245 | -/***/ "../app/assets/js/ui/molecules/button.js": | |
| 3246 | -/*!***********************************************!*\ | |
| 3247 | - !*** ../app/assets/js/ui/molecules/button.js ***! | |
| 3248 | - \***********************************************/ | |
| 3249 | -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 4060 | +var _inherits2 = _interopRequireDefault(__webpack_require__(4)); | |
| 3250 | 4061 | |
| 3251 | -"use strict"; | |
| 3252 | -/* provided dependency */ var PropTypes = __webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js"); | |
| 4062 | +var _createSuper2 = _interopRequireDefault(__webpack_require__(5)); | |
| 3253 | 4063 | |
| 4064 | +var _defineProperty2 = _interopRequireDefault(__webpack_require__(28)); | |
| 3254 | 4065 | |
| 3255 | -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 3256 | -Object.defineProperty(exports, "__esModule", ({ | |
| 3257 | - value: true | |
| 3258 | -})); | |
| 3259 | -exports["default"] = void 0; | |
| 3260 | -var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react")); | |
| 3261 | -var _extends2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/extends */ "../node_modules/@babel/runtime/helpers/extends.js")); | |
| 3262 | -var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); | |
| 3263 | -var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); | |
| 3264 | -var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); | |
| 3265 | -var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); | |
| 3266 | -var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 3267 | -var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "../node_modules/@babel/runtime/helpers/defineProperty.js")); | |
| 3268 | -var _router = __webpack_require__(/*! @reach/router */ "../node_modules/@reach/router/es/index.js"); | |
| 3269 | -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 | -var _icon = _interopRequireDefault(__webpack_require__(/*! elementor-app/ui/atoms/icon */ "../app/assets/js/ui/atoms/icon.js")); | |
| 3272 | -function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } | |
| 3273 | -function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } | |
| 3274 | -var Button = exports["default"] = /*#__PURE__*/function (_React$Component) { | |
| 4066 | +var _router = __webpack_require__(340); | |
| 4067 | + | |
| 4068 | +var _router2 = _interopRequireDefault(__webpack_require__(344)); | |
| 4069 | + | |
| 4070 | +var _icon = _interopRequireDefault(__webpack_require__(345)); | |
| 4071 | + | |
| 4072 | +__webpack_require__(648); | |
| 4073 | + | |
| 4074 | +var Button = /*#__PURE__*/function (_React$Component) { | |
| 4075 | + (0, _inherits2.default)(Button, _React$Component); | |
| 4076 | + | |
| 4077 | + var _super = (0, _createSuper2.default)(Button); | |
| 4078 | + | |
| 3275 | 4079 | function Button() { |
| 3276 | 4080 | (0, _classCallCheck2.default)(this, Button); |
| 3277 | - return _callSuper(this, Button, arguments); | |
| 4081 | + return _super.apply(this, arguments); | |
| 3278 | 4082 | } |
| 3279 | - (0, _inherits2.default)(Button, _React$Component); | |
| 3280 | - return (0, _createClass2.default)(Button, [{ | |
| 4083 | + | |
| 4084 | + (0, _createClass2.default)(Button, [{ | |
| 3281 | 4085 | key: "getCssId", |
| 3282 | 4086 | value: function getCssId() { |
| 3283 | 4087 | return this.props.id; |
| 3284 | 4088 | } |
| @@ -3285,9 +4089,9 @@ | ||
| 3285 | 4089 | }, { |
| 3286 | 4090 | key: "getClassName", |
| 3287 | 4091 | value: function getClassName() { |
| 3288 | 4092 | var baseClassName = 'eps-button', |
| 3289 | - classes = [baseClassName, this.props.className]; | |
| 4093 | + classes = [baseClassName, this.props.className]; | |
| 3290 | 4094 | return classes.concat(this.getStylePropsClasses(baseClassName)).filter(function (classItem) { |
| 3291 | 4095 | return '' !== classItem; |
| 3292 | 4096 | }).join(' '); |
| 3293 | 4097 | } |
| @@ -3294,12 +4098,14 @@ | ||
| 3294 | 4098 | }, { |
| 3295 | 4099 | key: "getStylePropsClasses", |
| 3296 | 4100 | value: function getStylePropsClasses(baseClassName) { |
| 3297 | 4101 | var _this = this; |
| 4102 | + | |
| 3298 | 4103 | var styleProps = ['color', 'size', 'variant'], |
| 3299 | - stylePropClasses = []; | |
| 4104 | + stylePropClasses = []; | |
| 3300 | 4105 | styleProps.forEach(function (styleProp) { |
| 3301 | 4106 | var stylePropValue = _this.props[styleProp]; |
| 4107 | + | |
| 3302 | 4108 | if (stylePropValue) { |
| 3303 | 4109 | stylePropClasses.push(baseClassName + '--' + stylePropValue); |
| 3304 | 4110 | } |
| 3305 | 4111 | }); |
| @@ -3308,26 +4114,27 @@ | ||
| 3308 | 4114 | }, { |
| 3309 | 4115 | key: "getIcon", |
| 3310 | 4116 | value: function getIcon() { |
| 3311 | 4117 | if (this.props.icon) { |
| 3312 | - var iconRef = _react.default.createRef(null); | |
| 3313 | 4118 | var tooltip = this.props.tooltip || this.props.text; |
| 4119 | + | |
| 3314 | 4120 | var icon = /*#__PURE__*/_react.default.createElement(_icon.default, { |
| 3315 | - ref: iconRef, | |
| 3316 | 4121 | className: this.props.icon, |
| 3317 | - "aria-hidden": "true" | |
| 4122 | + "aria-hidden": "true", | |
| 4123 | + title: tooltip | |
| 3318 | 4124 | }); |
| 4125 | + | |
| 3319 | 4126 | var screenReaderText = ''; |
| 4127 | + | |
| 3320 | 4128 | if (this.props.hideText) { |
| 3321 | 4129 | screenReaderText = /*#__PURE__*/_react.default.createElement("span", { |
| 3322 | 4130 | className: "sr-only" |
| 3323 | 4131 | }, tooltip); |
| 3324 | 4132 | } |
| 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)); | |
| 4133 | + | |
| 4134 | + return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, icon, screenReaderText); | |
| 3329 | 4135 | } |
| 4136 | + | |
| 3330 | 4137 | return ''; |
| 3331 | 4138 | } |
| 3332 | 4139 | }, { |
| 3333 | 4140 | key: "getText", |
| @@ -3337,28 +4144,25 @@ | ||
| 3337 | 4144 | }, { |
| 3338 | 4145 | key: "render", |
| 3339 | 4146 | value: function render() { |
| 3340 | 4147 | var attributes = {}, |
| 3341 | - id = this.getCssId(), | |
| 3342 | - className = this.getClassName(); | |
| 4148 | + id = this.getCssId(), | |
| 4149 | + className = this.getClassName(); // Add attributes only if they are not empty. | |
| 3343 | 4150 | |
| 3344 | - // Add attributes only if they are not empty. | |
| 3345 | 4151 | if (id) { |
| 3346 | 4152 | attributes.id = id; |
| 3347 | 4153 | } |
| 4154 | + | |
| 3348 | 4155 | if (className) { |
| 3349 | 4156 | attributes.className = className; |
| 3350 | 4157 | } |
| 4158 | + | |
| 3351 | 4159 | if (this.props.onClick) { |
| 3352 | 4160 | attributes.onClick = this.props.onClick; |
| 3353 | 4161 | } |
| 3354 | - if (this.props.rel) { | |
| 3355 | - attributes.rel = this.props.rel; | |
| 3356 | - } | |
| 3357 | - if (this.props.elRef) { | |
| 3358 | - attributes.ref = this.props.elRef; | |
| 3359 | - } | |
| 4162 | + | |
| 3360 | 4163 | var buttonContent = /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, this.getIcon(), this.getText()); |
| 4164 | + | |
| 3361 | 4165 | if (this.props.url) { |
| 3362 | 4166 | if (0 === this.props.url.indexOf('http')) { |
| 3363 | 4167 | return /*#__PURE__*/_react.default.createElement("a", (0, _extends2.default)({ |
| 3364 | 4168 | href: this.props.url, |
| @@ -3363,19 +4167,21 @@ | ||
| 3363 | 4167 | return /*#__PURE__*/_react.default.createElement("a", (0, _extends2.default)({ |
| 3364 | 4168 | href: this.props.url, |
| 3365 | 4169 | target: this.props.target |
| 3366 | 4170 | }, attributes), buttonContent); |
| 3367 | - } | |
| 4171 | + } // @see https://reach.tech/router/example/active-links. | |
| 3368 | 4172 | |
| 3369 | - // @see https://reach.tech/router/example/active-links. | |
| 4173 | + | |
| 3370 | 4174 | attributes.getProps = function (props) { |
| 3371 | 4175 | if (props.isCurrent) { |
| 3372 | 4176 | attributes.className += ' active'; |
| 3373 | 4177 | } |
| 4178 | + | |
| 3374 | 4179 | return { |
| 3375 | 4180 | className: attributes.className |
| 3376 | 4181 | }; |
| 3377 | 4182 | }; |
| 4183 | + | |
| 3378 | 4184 | return /*#__PURE__*/_react.default.createElement(_router.LocationProvider, { |
| 3379 | 4185 | history: _router2.default.appHistory |
| 3380 | 4186 | }, /*#__PURE__*/_react.default.createElement(_router.Link, (0, _extends2.default)({ |
| 3381 | 4187 | to: this.props.url |
| @@ -3380,12 +4186,16 @@ | ||
| 3380 | 4186 | }, /*#__PURE__*/_react.default.createElement(_router.Link, (0, _extends2.default)({ |
| 3381 | 4187 | to: this.props.url |
| 3382 | 4188 | }, attributes), buttonContent)); |
| 3383 | 4189 | } |
| 4190 | + | |
| 3384 | 4191 | return /*#__PURE__*/_react.default.createElement("div", attributes, buttonContent); |
| 3385 | 4192 | } |
| 3386 | 4193 | }]); |
| 4194 | + return Button; | |
| 3387 | 4195 | }(_react.default.Component); |
| 4196 | + | |
| 4197 | +exports.default = Button; | |
| 3388 | 4198 | (0, _defineProperty2.default)(Button, "propTypes", { |
| 3389 | 4199 | text: PropTypes.string.isRequired, |
| 3390 | 4200 | hideText: PropTypes.bool, |
| 3391 | 4201 | icon: PropTypes.string, |
| @@ -3393,14 +4203,12 @@ | ||
| 3393 | 4203 | id: PropTypes.string, |
| 3394 | 4204 | className: PropTypes.string, |
| 3395 | 4205 | url: PropTypes.string, |
| 3396 | 4206 | onClick: PropTypes.func, |
| 3397 | - variant: PropTypes.oneOf(['contained', 'underlined', 'outlined', '']), | |
| 3398 | - color: PropTypes.oneOf(['primary', 'secondary', 'cta', 'link', 'disabled']), | |
| 3399 | - size: PropTypes.oneOf(['sm', 'md', 'lg']), | |
| 3400 | - target: PropTypes.string, | |
| 3401 | - rel: PropTypes.string, | |
| 3402 | - elRef: PropTypes.object | |
| 4207 | + variant: PropTypes.string, | |
| 4208 | + color: PropTypes.string, | |
| 4209 | + size: PropTypes.string, | |
| 4210 | + target: PropTypes.string | |
| 3403 | 4211 | }); |
| 3404 | 4212 | (0, _defineProperty2.default)(Button, "defaultProps", { |
| 3405 | 4213 | id: '', |
| 3406 | 4214 | className: '', |
| @@ -3406,2448 +4214,1424 @@ | ||
| 3406 | 4214 | className: '', |
| 3407 | 4215 | variant: '', |
| 3408 | 4216 | target: '_parent' |
| 3409 | 4217 | }); |
| 4218 | +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(41))) | |
| 3410 | 4219 | |
| 3411 | 4220 | /***/ }), |
| 4221 | +/* 239 */, | |
| 4222 | +/* 240 */, | |
| 4223 | +/* 241 */, | |
| 4224 | +/* 242 */, | |
| 4225 | +/* 243 */, | |
| 4226 | +/* 244 */, | |
| 4227 | +/* 245 */ | |
| 4228 | +/***/ (function(module, exports, __webpack_require__) { | |
| 3412 | 4229 | |
| 3413 | -/***/ "../app/assets/js/ui/molecules/inline-link.js": | |
| 3414 | -/*!****************************************************!*\ | |
| 3415 | - !*** ../app/assets/js/ui/molecules/inline-link.js ***! | |
| 3416 | - \****************************************************/ | |
| 3417 | -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 4230 | +// 9.4.2.3 ArraySpeciesCreate(originalArray, length) | |
| 4231 | +var speciesConstructor = __webpack_require__(246); | |
| 3418 | 4232 | |
| 3419 | -"use strict"; | |
| 3420 | -/* provided dependency */ var PropTypes = __webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js"); | |
| 4233 | +module.exports = function (original, length) { | |
| 4234 | + return new (speciesConstructor(original))(length); | |
| 4235 | +}; | |
| 3421 | 4236 | |
| 3422 | 4237 | |
| 3423 | -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 3424 | -Object.defineProperty(exports, "__esModule", ({ | |
| 3425 | - value: true | |
| 3426 | -})); | |
| 3427 | -exports["default"] = InlineLink; | |
| 3428 | -var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react")); | |
| 3429 | -var _router = __webpack_require__(/*! @reach/router */ "../node_modules/@reach/router/es/index.js"); | |
| 3430 | -var _router2 = _interopRequireDefault(__webpack_require__(/*! @elementor/router */ "@elementor/router")); | |
| 3431 | -var _utils = __webpack_require__(/*! elementor-app/utils/utils.js */ "../app/assets/js/utils/utils.js"); | |
| 3432 | -__webpack_require__(/*! ./inline-link.scss */ "../app/assets/js/ui/molecules/inline-link.scss"); | |
| 3433 | -function InlineLink(props) { | |
| 3434 | - var baseClassName = 'eps-inline-link', | |
| 3435 | - colorClassName = "".concat(baseClassName, "--color-").concat(props.color), | |
| 3436 | - underlineClassName = 'none' !== props.underline ? "".concat(baseClassName, "--underline-").concat(props.underline) : '', | |
| 3437 | - italicClassName = props.italic ? "".concat(baseClassName, "--italic") : '', | |
| 3438 | - classes = [baseClassName, colorClassName, underlineClassName, italicClassName, props.className], | |
| 3439 | - className = (0, _utils.arrayToClassName)(classes), | |
| 3440 | - getRouterLink = function getRouterLink() { | |
| 3441 | - return /*#__PURE__*/_react.default.createElement(_router.LocationProvider, { | |
| 3442 | - history: _router2.default.appHistory | |
| 3443 | - }, /*#__PURE__*/_react.default.createElement(_router.Link, { | |
| 3444 | - to: props.url, | |
| 3445 | - className: className | |
| 3446 | - }, props.children)); | |
| 3447 | - }, | |
| 3448 | - getExternalLink = function getExternalLink() { | |
| 3449 | - return /*#__PURE__*/_react.default.createElement("a", { | |
| 3450 | - href: props.url, | |
| 3451 | - target: props.target, | |
| 3452 | - rel: props.rel, | |
| 3453 | - className: className, | |
| 3454 | - onClick: props.onClick | |
| 3455 | - }, props.children); | |
| 3456 | - }, | |
| 3457 | - getActionLink = function getActionLink() { | |
| 3458 | - return /*#__PURE__*/_react.default.createElement("button", { | |
| 3459 | - className: className, | |
| 3460 | - onClick: props.onClick | |
| 3461 | - }, props.children); | |
| 3462 | - }; | |
| 3463 | - if (!props.url) { | |
| 3464 | - return getActionLink(); | |
| 3465 | - } | |
| 3466 | - return props.url.includes('http') ? getExternalLink() : getRouterLink(); | |
| 3467 | -} | |
| 3468 | -InlineLink.propTypes = { | |
| 3469 | - className: PropTypes.string, | |
| 3470 | - children: PropTypes.any, | |
| 3471 | - url: PropTypes.string, | |
| 3472 | - target: PropTypes.string, | |
| 3473 | - rel: PropTypes.string, | |
| 3474 | - text: PropTypes.string, | |
| 3475 | - color: PropTypes.oneOf(['primary', 'secondary', 'cta', 'link', 'disabled']), | |
| 3476 | - underline: PropTypes.oneOf(['none', 'hover', 'always']), | |
| 3477 | - italic: PropTypes.bool, | |
| 3478 | - onClick: PropTypes.func | |
| 3479 | -}; | |
| 3480 | -InlineLink.defaultProps = { | |
| 3481 | - className: '', | |
| 3482 | - color: 'link', | |
| 3483 | - underline: 'always', | |
| 3484 | - target: '_blank', | |
| 3485 | - rel: 'noopener noreferrer' | |
| 3486 | -}; | |
| 3487 | - | |
| 3488 | 4238 | /***/ }), |
| 4239 | +/* 246 */ | |
| 4240 | +/***/ (function(module, exports, __webpack_require__) { | |
| 3489 | 4241 | |
| 3490 | -/***/ "../app/assets/js/ui/molecules/inline-link.scss": | |
| 3491 | -/*!******************************************************!*\ | |
| 3492 | - !*** ../app/assets/js/ui/molecules/inline-link.scss ***! | |
| 3493 | - \******************************************************/ | |
| 3494 | -/***/ (() => { | |
| 4242 | +var isObject = __webpack_require__(9); | |
| 4243 | +var isArray = __webpack_require__(97); | |
| 4244 | +var SPECIES = __webpack_require__(10)('species'); | |
| 3495 | 4245 | |
| 4246 | +module.exports = function (original) { | |
| 4247 | + var C; | |
| 4248 | + if (isArray(original)) { | |
| 4249 | + C = original.constructor; | |
| 4250 | + // cross-realm fallback | |
| 4251 | + if (typeof C == 'function' && (C === Array || isArray(C.prototype))) C = undefined; | |
| 4252 | + if (isObject(C)) { | |
| 4253 | + C = C[SPECIES]; | |
| 4254 | + if (C === null) C = undefined; | |
| 4255 | + } | |
| 4256 | + } return C === undefined ? Array : C; | |
| 4257 | +}; | |
| 3496 | 4258 | |
| 3497 | 4259 | |
| 3498 | 4260 | /***/ }), |
| 4261 | +/* 247 */ | |
| 4262 | +/***/ (function(module, exports, __webpack_require__) { | |
| 3499 | 4263 | |
| 3500 | -/***/ "../app/assets/js/ui/molecules/list-item.js": | |
| 3501 | -/*!**************************************************!*\ | |
| 3502 | - !*** ../app/assets/js/ui/molecules/list-item.js ***! | |
| 3503 | - \**************************************************/ | |
| 3504 | -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 4264 | +var _Array$isArray = __webpack_require__(84); | |
| 3505 | 4265 | |
| 3506 | -"use strict"; | |
| 3507 | -/* provided dependency */ var PropTypes = __webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js"); | |
| 4266 | +function _arrayWithHoles(arr) { | |
| 4267 | + if (_Array$isArray(arr)) return arr; | |
| 4268 | +} | |
| 3508 | 4269 | |
| 4270 | +module.exports = _arrayWithHoles; | |
| 3509 | 4271 | |
| 3510 | -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 3511 | -Object.defineProperty(exports, "__esModule", ({ | |
| 3512 | - value: true | |
| 3513 | -})); | |
| 3514 | -exports["default"] = ListItem; | |
| 3515 | -var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react")); | |
| 3516 | -var _utils = __webpack_require__(/*! elementor-app/utils/utils.js */ "../app/assets/js/utils/utils.js"); | |
| 3517 | -function ListItem(props) { | |
| 3518 | - var baseClassName = 'eps-list__item', | |
| 3519 | - classes = [baseClassName, props.className]; | |
| 3520 | - var style; | |
| 3521 | - if (Object.prototype.hasOwnProperty.call(props, 'padding')) { | |
| 3522 | - style = { | |
| 3523 | - '--eps-list-item-padding': (0, _utils.pxToRem)(props.padding) | |
| 3524 | - }; | |
| 3525 | - classes.push(baseClassName + '--padding'); | |
| 3526 | - } | |
| 3527 | - return /*#__PURE__*/_react.default.createElement("li", { | |
| 3528 | - style: style, | |
| 3529 | - className: (0, _utils.arrayToClassName)(classes) | |
| 3530 | - }, props.children); | |
| 3531 | -} | |
| 3532 | -ListItem.propTypes = { | |
| 3533 | - className: PropTypes.string, | |
| 3534 | - padding: PropTypes.string, | |
| 3535 | - children: PropTypes.any.isRequired | |
| 3536 | -}; | |
| 3537 | -ListItem.defaultProps = { | |
| 3538 | - className: '' | |
| 3539 | -}; | |
| 4272 | +/***/ }), | |
| 4273 | +/* 248 */ | |
| 4274 | +/***/ (function(module, exports, __webpack_require__) { | |
| 3540 | 4275 | |
| 3541 | -/***/ }), | |
| 4276 | +var _getIterator = __webpack_require__(236); | |
| 3542 | 4277 | |
| 3543 | -/***/ "../app/assets/js/ui/molecules/list.js": | |
| 3544 | -/*!*********************************************!*\ | |
| 3545 | - !*** ../app/assets/js/ui/molecules/list.js ***! | |
| 3546 | - \*********************************************/ | |
| 3547 | -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 4278 | +var _isIterable = __webpack_require__(211); | |
| 3548 | 4279 | |
| 3549 | -"use strict"; | |
| 3550 | -/* provided dependency */ var PropTypes = __webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js"); | |
| 4280 | +var _Symbol = __webpack_require__(111); | |
| 3551 | 4281 | |
| 4282 | +function _iterableToArrayLimit(arr, i) { | |
| 4283 | + if (typeof _Symbol === "undefined" || !_isIterable(Object(arr))) return; | |
| 4284 | + var _arr = []; | |
| 4285 | + var _n = true; | |
| 4286 | + var _d = false; | |
| 4287 | + var _e = undefined; | |
| 3552 | 4288 | |
| 3553 | -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 3554 | -Object.defineProperty(exports, "__esModule", ({ | |
| 3555 | - value: true | |
| 3556 | -})); | |
| 3557 | -exports["default"] = List; | |
| 3558 | -var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react")); | |
| 3559 | -var _utils = __webpack_require__(/*! elementor-app/utils/utils.js */ "../app/assets/js/utils/utils.js"); | |
| 3560 | -var _listItem = _interopRequireDefault(__webpack_require__(/*! ./list-item */ "../app/assets/js/ui/molecules/list-item.js")); | |
| 3561 | -__webpack_require__(/*! ./list.scss */ "../app/assets/js/ui/molecules/list.scss"); | |
| 3562 | -function List(props) { | |
| 3563 | - var baseClassName = 'eps-list', | |
| 3564 | - classes = [baseClassName, props.className]; | |
| 3565 | - var style; | |
| 3566 | - if (Object.prototype.hasOwnProperty.call(props, 'padding')) { | |
| 3567 | - style = { | |
| 3568 | - '--eps-list-padding': (0, _utils.pxToRem)(props.padding) | |
| 3569 | - }; | |
| 3570 | - classes.push(baseClassName + '--padding'); | |
| 4289 | + try { | |
| 4290 | + for (var _i = _getIterator(arr), _s; !(_n = (_s = _i.next()).done); _n = true) { | |
| 4291 | + _arr.push(_s.value); | |
| 4292 | + | |
| 4293 | + if (i && _arr.length === i) break; | |
| 4294 | + } | |
| 4295 | + } catch (err) { | |
| 4296 | + _d = true; | |
| 4297 | + _e = err; | |
| 4298 | + } finally { | |
| 4299 | + try { | |
| 4300 | + if (!_n && _i["return"] != null) _i["return"](); | |
| 4301 | + } finally { | |
| 4302 | + if (_d) throw _e; | |
| 4303 | + } | |
| 3571 | 4304 | } |
| 3572 | - if (props.separated) { | |
| 3573 | - classes.push(baseClassName + '--separated'); | |
| 3574 | - } | |
| 3575 | - return /*#__PURE__*/_react.default.createElement("ul", { | |
| 3576 | - style: style, | |
| 3577 | - className: (0, _utils.arrayToClassName)(classes) | |
| 3578 | - }, props.children); | |
| 4305 | + | |
| 4306 | + return _arr; | |
| 3579 | 4307 | } |
| 3580 | -List.propTypes = { | |
| 3581 | - className: PropTypes.string, | |
| 3582 | - divided: PropTypes.any, | |
| 3583 | - separated: PropTypes.any, | |
| 3584 | - padding: PropTypes.string, | |
| 3585 | - children: PropTypes.oneOfType([PropTypes.object, PropTypes.arrayOf(PropTypes.object)]).isRequired | |
| 3586 | -}; | |
| 3587 | -List.defaultProps = { | |
| 3588 | - className: '' | |
| 3589 | -}; | |
| 3590 | -List.Item = _listItem.default; | |
| 3591 | 4308 | |
| 4309 | +module.exports = _iterableToArrayLimit; | |
| 4310 | + | |
| 3592 | 4311 | /***/ }), |
| 4312 | +/* 249 */ | |
| 4313 | +/***/ (function(module, exports, __webpack_require__) { | |
| 3593 | 4314 | |
| 3594 | -/***/ "../app/assets/js/ui/molecules/list.scss": | |
| 3595 | -/*!***********************************************!*\ | |
| 3596 | - !*** ../app/assets/js/ui/molecules/list.scss ***! | |
| 3597 | - \***********************************************/ | |
| 3598 | -/***/ (() => { | |
| 4315 | +__webpack_require__(62); | |
| 4316 | +__webpack_require__(60); | |
| 4317 | +module.exports = __webpack_require__(250); | |
| 3599 | 4318 | |
| 3600 | 4319 | |
| 3601 | - | |
| 3602 | 4320 | /***/ }), |
| 4321 | +/* 250 */ | |
| 4322 | +/***/ (function(module, exports, __webpack_require__) { | |
| 3603 | 4323 | |
| 3604 | -/***/ "../app/assets/js/ui/molecules/notice.js": | |
| 3605 | -/*!***********************************************!*\ | |
| 3606 | - !*** ../app/assets/js/ui/molecules/notice.js ***! | |
| 3607 | - \***********************************************/ | |
| 3608 | -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 4324 | +var anObject = __webpack_require__(13); | |
| 4325 | +var get = __webpack_require__(112); | |
| 4326 | +module.exports = __webpack_require__(6).getIterator = function (it) { | |
| 4327 | + var iterFn = get(it); | |
| 4328 | + if (typeof iterFn != 'function') throw TypeError(it + ' is not iterable!'); | |
| 4329 | + return anObject(iterFn.call(it)); | |
| 4330 | +}; | |
| 3609 | 4331 | |
| 3610 | -"use strict"; | |
| 3611 | -/* provided dependency */ var PropTypes = __webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js"); | |
| 3612 | 4332 | |
| 4333 | +/***/ }), | |
| 4334 | +/* 251 */ | |
| 4335 | +/***/ (function(module, exports) { | |
| 3613 | 4336 | |
| 3614 | -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 3615 | -Object.defineProperty(exports, "__esModule", ({ | |
| 3616 | - value: true | |
| 3617 | -})); | |
| 3618 | -exports["default"] = Notice; | |
| 3619 | -var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react")); | |
| 3620 | -var _utils = __webpack_require__(/*! elementor-app/utils/utils.js */ "../app/assets/js/utils/utils.js"); | |
| 3621 | -var _text = _interopRequireDefault(__webpack_require__(/*! elementor-app/ui/atoms/text */ "../app/assets/js/ui/atoms/text.js")); | |
| 3622 | -var _icon = _interopRequireDefault(__webpack_require__(/*! elementor-app/ui/atoms/icon */ "../app/assets/js/ui/atoms/icon.js")); | |
| 3623 | -var _grid = _interopRequireDefault(__webpack_require__(/*! elementor-app/ui/grid/grid */ "../app/assets/js/ui/grid/grid.js")); | |
| 3624 | -__webpack_require__(/*! ./notice.scss */ "../app/assets/js/ui/molecules/notice.scss"); | |
| 3625 | -var iconsClassesMap = { | |
| 3626 | - danger: 'eicon-warning', | |
| 3627 | - info: 'eicon-info-circle-o', | |
| 3628 | - warning: 'eicon-warning' | |
| 3629 | -}; | |
| 3630 | -function Notice(props) { | |
| 3631 | - var baseClassName = 'eps-notice', | |
| 3632 | - classes = [baseClassName, props.className]; | |
| 3633 | - if (props.color) { | |
| 3634 | - classes.push(baseClassName + '-semantic', baseClassName + '--' + props.color); | |
| 3635 | - } | |
| 3636 | - return /*#__PURE__*/_react.default.createElement(_grid.default, { | |
| 3637 | - className: (0, _utils.arrayToClassName)(classes), | |
| 3638 | - container: true, | |
| 3639 | - noWrap: true, | |
| 3640 | - alignItems: "center", | |
| 3641 | - justify: "space-between" | |
| 3642 | - }, /*#__PURE__*/_react.default.createElement(_grid.default, { | |
| 3643 | - item: true, | |
| 3644 | - container: true, | |
| 3645 | - alignItems: "start", | |
| 3646 | - noWrap: true | |
| 3647 | - }, props.withIcon && props.color && /*#__PURE__*/_react.default.createElement(_icon.default, { | |
| 3648 | - className: (0, _utils.arrayToClassName)(['eps-notice__icon', iconsClassesMap[props.color]]) | |
| 3649 | - }), /*#__PURE__*/_react.default.createElement(_text.default, { | |
| 3650 | - variant: "xs", | |
| 3651 | - className: "eps-notice__text" | |
| 3652 | - }, props.label && /*#__PURE__*/_react.default.createElement("strong", null, props.label + ' '), props.children)), props.button && /*#__PURE__*/_react.default.createElement(_grid.default, { | |
| 3653 | - item: true, | |
| 3654 | - container: true, | |
| 3655 | - justify: "end", | |
| 3656 | - className: baseClassName + '__button-container' | |
| 3657 | - }, props.button)); | |
| 4337 | +function _nonIterableRest() { | |
| 4338 | + throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); | |
| 3658 | 4339 | } |
| 3659 | -Notice.propTypes = { | |
| 3660 | - className: PropTypes.string, | |
| 3661 | - color: PropTypes.string, | |
| 3662 | - label: PropTypes.string, | |
| 3663 | - children: PropTypes.any.isRequired, | |
| 3664 | - icon: PropTypes.string, | |
| 3665 | - withIcon: PropTypes.bool, | |
| 3666 | - button: PropTypes.object | |
| 3667 | -}; | |
| 3668 | -Notice.defaultProps = { | |
| 3669 | - className: '', | |
| 3670 | - withIcon: true, | |
| 3671 | - button: null | |
| 3672 | -}; | |
| 3673 | 4340 | |
| 4341 | +module.exports = _nonIterableRest; | |
| 4342 | + | |
| 3674 | 4343 | /***/ }), |
| 4344 | +/* 252 */, | |
| 4345 | +/* 253 */, | |
| 4346 | +/* 254 */, | |
| 4347 | +/* 255 */, | |
| 4348 | +/* 256 */, | |
| 4349 | +/* 257 */, | |
| 4350 | +/* 258 */, | |
| 4351 | +/* 259 */, | |
| 4352 | +/* 260 */, | |
| 4353 | +/* 261 */, | |
| 4354 | +/* 262 */, | |
| 4355 | +/* 263 */ | |
| 4356 | +/***/ (function(module, exports, __webpack_require__) { | |
| 3675 | 4357 | |
| 3676 | -/***/ "../app/assets/js/ui/molecules/notice.scss": | |
| 3677 | -/*!*************************************************!*\ | |
| 3678 | - !*** ../app/assets/js/ui/molecules/notice.scss ***! | |
| 3679 | - \*************************************************/ | |
| 3680 | -/***/ (() => { | |
| 4358 | +module.exports = __webpack_require__(264); | |
| 3681 | 4359 | |
| 4360 | +/***/ }), | |
| 4361 | +/* 264 */ | |
| 4362 | +/***/ (function(module, exports, __webpack_require__) { | |
| 3682 | 4363 | |
| 4364 | +__webpack_require__(100); | |
| 4365 | +__webpack_require__(62); | |
| 4366 | +__webpack_require__(265); | |
| 4367 | +__webpack_require__(267); | |
| 4368 | +__webpack_require__(268); | |
| 4369 | +module.exports = __webpack_require__(6).WeakMap; | |
| 3683 | 4370 | |
| 4371 | + | |
| 3684 | 4372 | /***/ }), |
| 4373 | +/* 265 */ | |
| 4374 | +/***/ (function(module, exports, __webpack_require__) { | |
| 3685 | 4375 | |
| 3686 | -/***/ "../app/assets/js/ui/molecules/popover.js": | |
| 3687 | -/*!************************************************!*\ | |
| 3688 | - !*** ../app/assets/js/ui/molecules/popover.js ***! | |
| 3689 | - \************************************************/ | |
| 3690 | -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 3691 | - | |
| 3692 | 4376 | "use strict"; |
| 3693 | -/* provided dependency */ var PropTypes = __webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js"); | |
| 3694 | 4377 | |
| 4378 | +var global = __webpack_require__(8); | |
| 4379 | +var each = __webpack_require__(138)(0); | |
| 4380 | +var redefine = __webpack_require__(93); | |
| 4381 | +var meta = __webpack_require__(70); | |
| 4382 | +var assign = __webpack_require__(212); | |
| 4383 | +var weak = __webpack_require__(266); | |
| 4384 | +var isObject = __webpack_require__(9); | |
| 4385 | +var validate = __webpack_require__(121); | |
| 4386 | +var NATIVE_WEAK_MAP = __webpack_require__(121); | |
| 4387 | +var IS_IE11 = !global.ActiveXObject && 'ActiveXObject' in global; | |
| 4388 | +var WEAK_MAP = 'WeakMap'; | |
| 4389 | +var getWeak = meta.getWeak; | |
| 4390 | +var isExtensible = Object.isExtensible; | |
| 4391 | +var uncaughtFrozenStore = weak.ufstore; | |
| 4392 | +var InternalMap; | |
| 3695 | 4393 | |
| 3696 | -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 3697 | -Object.defineProperty(exports, "__esModule", ({ | |
| 3698 | - value: true | |
| 3699 | -})); | |
| 3700 | -exports["default"] = Popover; | |
| 3701 | -var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react")); | |
| 3702 | -__webpack_require__(/*! ./popover.scss */ "../app/assets/js/ui/molecules/popover.scss"); | |
| 3703 | -/* eslint-disable jsx-a11y/no-noninteractive-element-interactions */ | |
| 3704 | -/* eslint-disable jsx-a11y/no-static-element-interactions */ | |
| 3705 | -/* eslint-disable jsx-a11y/click-events-have-key-events */ | |
| 4394 | +var wrapper = function (get) { | |
| 4395 | + return function WeakMap() { | |
| 4396 | + return get(this, arguments.length > 0 ? arguments[0] : undefined); | |
| 4397 | + }; | |
| 4398 | +}; | |
| 3706 | 4399 | |
| 3707 | -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'; | |
| 4400 | +var methods = { | |
| 4401 | + // 23.3.3.3 WeakMap.prototype.get(key) | |
| 4402 | + get: function get(key) { | |
| 4403 | + if (isObject(key)) { | |
| 4404 | + var data = getWeak(key); | |
| 4405 | + if (data === true) return uncaughtFrozenStore(validate(this, WEAK_MAP)).get(key); | |
| 4406 | + return data ? data[this._i] : undefined; | |
| 3718 | 4407 | } |
| 3719 | - }; | |
| 3720 | - return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("div", { | |
| 3721 | - className: "eps-popover__background", | |
| 3722 | - onClick: props.closeFunction | |
| 3723 | - }), /*#__PURE__*/_react.default.createElement("ul", { | |
| 3724 | - className: "eps-popover ".concat(getArrowPositionClass(), " ").concat(props.className), | |
| 3725 | - onClick: props.closeFunction | |
| 3726 | - }, props.children)); | |
| 3727 | -} | |
| 3728 | -Popover.propTypes = { | |
| 3729 | - children: PropTypes.any.isRequired, | |
| 3730 | - className: PropTypes.string, | |
| 3731 | - closeFunction: PropTypes.func, | |
| 3732 | - arrowPosition: PropTypes.oneOf(['start', 'center', 'end', 'none']) | |
| 4408 | + }, | |
| 4409 | + // 23.3.3.5 WeakMap.prototype.set(key, value) | |
| 4410 | + set: function set(key, value) { | |
| 4411 | + return weak.def(validate(this, WEAK_MAP), key, value); | |
| 4412 | + } | |
| 3733 | 4413 | }; |
| 3734 | -Popover.defaultProps = { | |
| 3735 | - className: '', | |
| 3736 | - arrowPosition: 'center' | |
| 3737 | -}; | |
| 3738 | 4414 | |
| 3739 | -/***/ }), | |
| 4415 | +// 23.3 WeakMap Objects | |
| 4416 | +var $WeakMap = module.exports = __webpack_require__(232)(WEAK_MAP, wrapper, methods, weak, true, true); | |
| 3740 | 4417 | |
| 3741 | -/***/ "../app/assets/js/ui/molecules/popover.scss": | |
| 3742 | -/*!**************************************************!*\ | |
| 3743 | - !*** ../app/assets/js/ui/molecules/popover.scss ***! | |
| 3744 | - \**************************************************/ | |
| 3745 | -/***/ (() => { | |
| 4418 | +// IE11 WeakMap frozen keys fix | |
| 4419 | +if (NATIVE_WEAK_MAP && IS_IE11) { | |
| 4420 | + InternalMap = weak.getConstructor(wrapper, WEAK_MAP); | |
| 4421 | + assign(InternalMap.prototype, methods); | |
| 4422 | + meta.NEED = true; | |
| 4423 | + each(['delete', 'has', 'get', 'set'], function (key) { | |
| 4424 | + var proto = $WeakMap.prototype; | |
| 4425 | + var method = proto[key]; | |
| 4426 | + redefine(proto, key, function (a, b) { | |
| 4427 | + // store frozen objects on internal weakmap shim | |
| 4428 | + if (isObject(a) && !isExtensible(a)) { | |
| 4429 | + if (!this._f) this._f = new InternalMap(); | |
| 4430 | + var result = this._f[key](a, b); | |
| 4431 | + return key == 'set' ? this : result; | |
| 4432 | + // store all the rest on native weakmap | |
| 4433 | + } return method.call(this, a, b); | |
| 4434 | + }); | |
| 4435 | + }); | |
| 4436 | +} | |
| 3746 | 4437 | |
| 3747 | 4438 | |
| 3748 | - | |
| 3749 | 4439 | /***/ }), |
| 4440 | +/* 266 */ | |
| 4441 | +/***/ (function(module, exports, __webpack_require__) { | |
| 3750 | 4442 | |
| 3751 | -/***/ "../app/assets/js/ui/molecules/select2.js": | |
| 3752 | -/*!************************************************!*\ | |
| 3753 | - !*** ../app/assets/js/ui/molecules/select2.js ***! | |
| 3754 | - \************************************************/ | |
| 3755 | -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 3756 | - | |
| 3757 | 4443 | "use strict"; |
| 3758 | -/* provided dependency */ var PropTypes = __webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js"); | |
| 3759 | 4444 | |
| 4445 | +var redefineAll = __webpack_require__(126); | |
| 4446 | +var getWeak = __webpack_require__(70).getWeak; | |
| 4447 | +var anObject = __webpack_require__(13); | |
| 4448 | +var isObject = __webpack_require__(9); | |
| 4449 | +var anInstance = __webpack_require__(125); | |
| 4450 | +var forOf = __webpack_require__(88); | |
| 4451 | +var createArrayMethod = __webpack_require__(138); | |
| 4452 | +var $has = __webpack_require__(19); | |
| 4453 | +var validate = __webpack_require__(121); | |
| 4454 | +var arrayFind = createArrayMethod(5); | |
| 4455 | +var arrayFindIndex = createArrayMethod(6); | |
| 4456 | +var id = 0; | |
| 3760 | 4457 | |
| 3761 | -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 3762 | -Object.defineProperty(exports, "__esModule", ({ | |
| 3763 | - value: true | |
| 3764 | -})); | |
| 3765 | -exports["default"] = Select2; | |
| 3766 | -var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react")); | |
| 3767 | -var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "../node_modules/@babel/runtime/helpers/defineProperty.js")); | |
| 3768 | -var _select = _interopRequireDefault(__webpack_require__(/*! ../atoms/select */ "../app/assets/js/ui/atoms/select.js")); | |
| 3769 | -__webpack_require__(/*! ./select2.scss */ "../app/assets/js/ui/molecules/select2.scss"); | |
| 3770 | -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } | |
| 3771 | -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } | |
| 3772 | -/** | |
| 3773 | - * Default settings of the select 2 | |
| 3774 | - * | |
| 3775 | - * @return {{placeholder: string, allowClear: boolean, dir: string}} | |
| 3776 | - */ | |
| 3777 | - | |
| 3778 | -var getDefaultSettings = function getDefaultSettings() { | |
| 3779 | - return { | |
| 3780 | - allowClear: true, | |
| 3781 | - placeholder: '', | |
| 3782 | - dir: elementorCommon.config.isRTL ? 'rtl' : 'ltr' | |
| 3783 | - }; | |
| 4458 | +// fallback for uncaught frozen keys | |
| 4459 | +var uncaughtFrozenStore = function (that) { | |
| 4460 | + return that._l || (that._l = new UncaughtFrozenStore()); | |
| 3784 | 4461 | }; |
| 3785 | -/** | |
| 3786 | - * Main component | |
| 3787 | - * | |
| 3788 | - * @param {*} props | |
| 3789 | - * @return {*} component | |
| 3790 | - * @function Object() { [native code] } | |
| 3791 | - */ | |
| 3792 | -function Select2(props) { | |
| 3793 | - var ref = _react.default.useRef(null); | |
| 3794 | - | |
| 3795 | - // Initiate the select 2 library, call to onReady after initiate, and | |
| 3796 | - // listen to select event on the select instance. | |
| 3797 | - _react.default.useEffect(function () { | |
| 3798 | - var $select2 = jQuery(ref.current).select2(_objectSpread(_objectSpread(_objectSpread({}, getDefaultSettings()), props.settings), {}, { | |
| 3799 | - placeholder: props.placeholder | |
| 3800 | - })).on('select2:select select2:unselect', props.onChange); | |
| 3801 | - if (props.onReady) { | |
| 3802 | - props.onReady($select2); | |
| 3803 | - } | |
| 3804 | - return function () { | |
| 3805 | - $select2.select2('destroy').off('select2:select select2:unselect'); | |
| 3806 | - }; | |
| 3807 | - // eslint-disable-next-line react-hooks/exhaustive-deps | |
| 3808 | - }, [props.settings, props.options]); | |
| 3809 | - | |
| 3810 | - // Listen to changes in the prop `value`, if changed update the select 2. | |
| 3811 | - _react.default.useEffect(function () { | |
| 3812 | - jQuery(ref.current).val(props.value).trigger('change'); | |
| 3813 | - }, [props.value]); | |
| 3814 | - return /*#__PURE__*/_react.default.createElement(_select.default, { | |
| 3815 | - multiple: props.multiple, | |
| 3816 | - value: props.value, | |
| 3817 | - onChange: props.onChange, | |
| 3818 | - elRef: ref, | |
| 3819 | - options: props.options, | |
| 3820 | - placeholder: props.placeholder | |
| 4462 | +var UncaughtFrozenStore = function () { | |
| 4463 | + this.a = []; | |
| 4464 | +}; | |
| 4465 | +var findUncaughtFrozen = function (store, key) { | |
| 4466 | + return arrayFind(store.a, function (it) { | |
| 4467 | + return it[0] === key; | |
| 3821 | 4468 | }); |
| 3822 | -} | |
| 3823 | -Select2.propTypes = { | |
| 3824 | - value: PropTypes.oneOfType([PropTypes.array, PropTypes.string]), | |
| 3825 | - onChange: PropTypes.func, | |
| 3826 | - onReady: PropTypes.func, | |
| 3827 | - options: PropTypes.array, | |
| 3828 | - settings: PropTypes.object, | |
| 3829 | - multiple: PropTypes.bool, | |
| 3830 | - placeholder: PropTypes.string | |
| 3831 | 4469 | }; |
| 3832 | -Select2.defaultProps = { | |
| 3833 | - settings: {}, | |
| 3834 | - options: [], | |
| 3835 | - dependencies: [], | |
| 3836 | - placeholder: '' | |
| 4470 | +UncaughtFrozenStore.prototype = { | |
| 4471 | + get: function (key) { | |
| 4472 | + var entry = findUncaughtFrozen(this, key); | |
| 4473 | + if (entry) return entry[1]; | |
| 4474 | + }, | |
| 4475 | + has: function (key) { | |
| 4476 | + return !!findUncaughtFrozen(this, key); | |
| 4477 | + }, | |
| 4478 | + set: function (key, value) { | |
| 4479 | + var entry = findUncaughtFrozen(this, key); | |
| 4480 | + if (entry) entry[1] = value; | |
| 4481 | + else this.a.push([key, value]); | |
| 4482 | + }, | |
| 4483 | + 'delete': function (key) { | |
| 4484 | + var index = arrayFindIndex(this.a, function (it) { | |
| 4485 | + return it[0] === key; | |
| 4486 | + }); | |
| 4487 | + if (~index) this.a.splice(index, 1); | |
| 4488 | + return !!~index; | |
| 4489 | + } | |
| 3837 | 4490 | }; |
| 3838 | 4491 | |
| 3839 | -/***/ }), | |
| 4492 | +module.exports = { | |
| 4493 | + getConstructor: function (wrapper, NAME, IS_MAP, ADDER) { | |
| 4494 | + var C = wrapper(function (that, iterable) { | |
| 4495 | + anInstance(that, C, NAME, '_i'); | |
| 4496 | + that._t = NAME; // collection type | |
| 4497 | + that._i = id++; // collection id | |
| 4498 | + that._l = undefined; // leak store for uncaught frozen objects | |
| 4499 | + if (iterable != undefined) forOf(iterable, IS_MAP, that[ADDER], that); | |
| 4500 | + }); | |
| 4501 | + redefineAll(C.prototype, { | |
| 4502 | + // 23.3.3.2 WeakMap.prototype.delete(key) | |
| 4503 | + // 23.4.3.3 WeakSet.prototype.delete(value) | |
| 4504 | + 'delete': function (key) { | |
| 4505 | + if (!isObject(key)) return false; | |
| 4506 | + var data = getWeak(key); | |
| 4507 | + if (data === true) return uncaughtFrozenStore(validate(this, NAME))['delete'](key); | |
| 4508 | + return data && $has(data, this._i) && delete data[this._i]; | |
| 4509 | + }, | |
| 4510 | + // 23.3.3.4 WeakMap.prototype.has(key) | |
| 4511 | + // 23.4.3.4 WeakSet.prototype.has(value) | |
| 4512 | + has: function has(key) { | |
| 4513 | + if (!isObject(key)) return false; | |
| 4514 | + var data = getWeak(key); | |
| 4515 | + if (data === true) return uncaughtFrozenStore(validate(this, NAME)).has(key); | |
| 4516 | + return data && $has(data, this._i); | |
| 4517 | + } | |
| 4518 | + }); | |
| 4519 | + return C; | |
| 4520 | + }, | |
| 4521 | + def: function (that, key, value) { | |
| 4522 | + var data = getWeak(anObject(key), true); | |
| 4523 | + if (data === true) uncaughtFrozenStore(that).set(key, value); | |
| 4524 | + else data[that._i] = value; | |
| 4525 | + return that; | |
| 4526 | + }, | |
| 4527 | + ufstore: uncaughtFrozenStore | |
| 4528 | +}; | |
| 3840 | 4529 | |
| 3841 | -/***/ "../app/assets/js/ui/molecules/select2.scss": | |
| 3842 | -/*!**************************************************!*\ | |
| 3843 | - !*** ../app/assets/js/ui/molecules/select2.scss ***! | |
| 3844 | - \**************************************************/ | |
| 3845 | -/***/ (() => { | |
| 3846 | 4530 | |
| 3847 | - | |
| 3848 | - | |
| 3849 | 4531 | /***/ }), |
| 4532 | +/* 267 */ | |
| 4533 | +/***/ (function(module, exports, __webpack_require__) { | |
| 3850 | 4534 | |
| 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__) => { | |
| 4535 | +// https://tc39.github.io/proposal-setmap-offrom/#sec-weakmap.of | |
| 4536 | +__webpack_require__(233)('WeakMap'); | |
| 3856 | 4537 | |
| 3857 | -"use strict"; | |
| 3858 | -/* provided dependency */ var PropTypes = __webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js"); | |
| 3859 | 4538 | |
| 4539 | +/***/ }), | |
| 4540 | +/* 268 */ | |
| 4541 | +/***/ (function(module, exports, __webpack_require__) { | |
| 3860 | 4542 | |
| 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; | |
| 4543 | +// https://tc39.github.io/proposal-setmap-offrom/#sec-weakmap.from | |
| 4544 | +__webpack_require__(234)('WeakMap'); | |
| 3877 | 4545 | |
| 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 | 4546 | |
| 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'; | |
| 4547 | +/***/ }), | |
| 4548 | +/* 269 */, | |
| 4549 | +/* 270 */, | |
| 4550 | +/* 271 */, | |
| 4551 | +/* 272 */, | |
| 4552 | +/* 273 */, | |
| 4553 | +/* 274 */, | |
| 4554 | +/* 275 */, | |
| 4555 | +/* 276 */ | |
| 4556 | +/***/ (function(module, exports, __webpack_require__) { | |
| 3894 | 4557 | |
| 3895 | - // 16px to compensate for the arrow width. | |
| 3896 | - popoverEl.style.setProperty('--popover-arrow-offset-end', (popoverRect.width - 16) / 2 + 'px'); | |
| 3897 | - }; | |
| 4558 | +"use strict"; | |
| 4559 | +/** | |
| 4560 | + * Copyright (c) 2013-present, Facebook, Inc. | |
| 4561 | + * | |
| 4562 | + * This source code is licensed under the MIT license found in the | |
| 4563 | + * LICENSE file in the root directory of this source tree. | |
| 4564 | + */ | |
| 3898 | 4565 | |
| 3899 | - /** | |
| 3900 | - * Hide Popover | |
| 3901 | - */ | |
| 3902 | - var hidePopover = function hidePopover() { | |
| 3903 | - popoverEl.style.display = 'none'; | |
| 3904 | - popoverEl.setAttribute('aria-expanded', false); | |
| 3905 | - }; | |
| 3906 | 4566 | |
| 3907 | - /** | |
| 3908 | - * Handle the Popover's hover functionality | |
| 3909 | - */ | |
| 3910 | - var handlePopoverHover = function handlePopoverHover() { | |
| 3911 | - var hideOnMouseOut = true, | |
| 3912 | - timeOut = null; | |
| 3913 | 4567 | |
| 3914 | - // Show popover on hover of the target | |
| 3915 | - target.addEventListener('mouseover', function () { | |
| 3916 | - hideOnMouseOut = true; | |
| 3917 | - showPopover(); | |
| 3918 | - }); | |
| 4568 | +/** | |
| 4569 | + * Use invariant() to assert state which your program assumes to be true. | |
| 4570 | + * | |
| 4571 | + * Provide sprintf-style format (only %s is supported) and arguments | |
| 4572 | + * to provide information about what broke and what you were | |
| 4573 | + * expecting. | |
| 4574 | + * | |
| 4575 | + * The invariant message will be stripped in production, but the invariant | |
| 4576 | + * will remain to ensure logic does not differ in production. | |
| 4577 | + */ | |
| 3919 | 4578 | |
| 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 | - }); | |
| 4579 | +var invariant = function(condition, format, a, b, c, d, e, f) { | |
| 4580 | + if (false) {} | |
| 3930 | 4581 | |
| 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 | - }); | |
| 4582 | + if (!condition) { | |
| 4583 | + var error; | |
| 4584 | + if (format === undefined) { | |
| 4585 | + error = new Error( | |
| 4586 | + 'Minified exception occurred; use the non-minified dev environment ' + | |
| 4587 | + 'for the full error message and additional helpful warnings.' | |
| 4588 | + ); | |
| 4589 | + } else { | |
| 4590 | + var args = [a, b, c, d, e, f]; | |
| 4591 | + var argIndex = 0; | |
| 4592 | + error = new Error( | |
| 4593 | + format.replace(/%s/g, function() { return args[argIndex++]; }) | |
| 4594 | + ); | |
| 4595 | + error.name = 'Invariant Violation'; | |
| 4596 | + } | |
| 3939 | 4597 | |
| 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; | |
| 4598 | + error.framesToPop = 1; // we don't care about invariant's own frame | |
| 4599 | + throw error; | |
| 3993 | 4600 | } |
| 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 | 4601 | }; |
| 4011 | -PopoverDialog.defaultProps = { | |
| 4012 | - direction: 'bottom', | |
| 4013 | - trigger: 'hover', | |
| 4014 | - offsetTop: 10, | |
| 4015 | - offsetLeft: 0, | |
| 4016 | - hideAfter: 300 | |
| 4017 | -}; | |
| 4018 | 4602 | |
| 4019 | -/***/ }), | |
| 4603 | +module.exports = invariant; | |
| 4020 | 4604 | |
| 4021 | -/***/ "../app/assets/js/utils/utils.js": | |
| 4022 | -/*!***************************************!*\ | |
| 4023 | - !*** ../app/assets/js/utils/utils.js ***! | |
| 4024 | - \***************************************/ | |
| 4025 | -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 4026 | 4605 | |
| 4027 | -"use strict"; | |
| 4606 | +/***/ }), | |
| 4607 | +/* 277 */, | |
| 4608 | +/* 278 */, | |
| 4609 | +/* 279 */, | |
| 4610 | +/* 280 */, | |
| 4611 | +/* 281 */, | |
| 4612 | +/* 282 */, | |
| 4613 | +/* 283 */, | |
| 4614 | +/* 284 */, | |
| 4615 | +/* 285 */, | |
| 4616 | +/* 286 */, | |
| 4617 | +/* 287 */, | |
| 4618 | +/* 288 */ | |
| 4619 | +/***/ (function(module, exports, __webpack_require__) { | |
| 4028 | 4620 | |
| 4621 | +__webpack_require__(289); | |
| 4622 | +module.exports = __webpack_require__(6).Object.assign; | |
| 4029 | 4623 | |
| 4030 | -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 4031 | -Object.defineProperty(exports, "__esModule", ({ | |
| 4032 | - value: true | |
| 4033 | -})); | |
| 4034 | -exports.stringToRemValues = exports.rgbToHex = exports.pxToRem = exports.isOneOf = exports.htmlDecodeTextContent = exports.arrayToObjectByKey = exports.arrayToClassName = void 0; | |
| 4035 | -var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ "../node_modules/@babel/runtime/helpers/typeof.js")); | |
| 4036 | -var pxToRem = exports.pxToRem = function pxToRem(pixels) { | |
| 4037 | - if (!pixels) { | |
| 4038 | - return; | |
| 4039 | - } else if ('string' !== typeof pixels) { | |
| 4040 | - pixels = pixels.toString(); | |
| 4041 | - } | |
| 4042 | - return pixels.split(' ').map(function (value) { | |
| 4043 | - return "".concat(value * 0.0625, "rem"); | |
| 4044 | - }).join(' '); | |
| 4045 | -}; | |
| 4046 | -var arrayToClassName = exports.arrayToClassName = function arrayToClassName(array, action) { | |
| 4047 | - return array.filter(function (item) { | |
| 4048 | - return 'object' === (0, _typeof2.default)(item) ? Object.entries(item)[0][1] : item; | |
| 4049 | - }).map(function (item) { | |
| 4050 | - var value = 'object' === (0, _typeof2.default)(item) ? Object.entries(item)[0][0] : item; | |
| 4051 | - return action ? action(value) : value; | |
| 4052 | - }).join(' '); | |
| 4053 | -}; | |
| 4054 | -var stringToRemValues = exports.stringToRemValues = function stringToRemValues(string) { | |
| 4055 | - return string.split(' ').map(function (value) { | |
| 4056 | - return pxToRem(value); | |
| 4057 | - }).join(' '); | |
| 4058 | -}; | |
| 4059 | -var rgbToHex = exports.rgbToHex = function rgbToHex(r, g, b) { | |
| 4060 | - return '#' + [r, g, b].map(function (x) { | |
| 4061 | - var hex = x.toString(16); | |
| 4062 | - return 1 === hex.length ? '0' + hex : hex; | |
| 4063 | - }).join(''); | |
| 4064 | -}; | |
| 4065 | -var isOneOf = exports.isOneOf = function isOneOf(filetype, filetypeOptions) { | |
| 4066 | - return filetypeOptions.some(function (type) { | |
| 4067 | - return filetype.includes(type); | |
| 4068 | - }); | |
| 4069 | -}; | |
| 4070 | -var arrayToObjectByKey = exports.arrayToObjectByKey = function arrayToObjectByKey(array, key) { | |
| 4071 | - var finalObject = {}; | |
| 4072 | - array.forEach(function (item) { | |
| 4073 | - return finalObject[item[key]] = item; | |
| 4074 | - }); | |
| 4075 | - return finalObject; | |
| 4076 | -}; | |
| 4077 | -var htmlDecodeTextContent = exports.htmlDecodeTextContent = function htmlDecodeTextContent(input) { | |
| 4078 | - var doc = new DOMParser().parseFromString(input, 'text/html'); | |
| 4079 | - return doc.documentElement.textContent; | |
| 4080 | -}; | |
| 4081 | 4624 | |
| 4082 | 4625 | /***/ }), |
| 4626 | +/* 289 */ | |
| 4627 | +/***/ (function(module, exports, __webpack_require__) { | |
| 4083 | 4628 | |
| 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) => { | |
| 4629 | +// 19.1.3.1 Object.assign(target, source) | |
| 4630 | +var $export = __webpack_require__(7); | |
| 4089 | 4631 | |
| 4090 | -"use strict"; | |
| 4632 | +$export($export.S + $export.F, 'Object', { assign: __webpack_require__(212) }); | |
| 4091 | 4633 | |
| 4092 | 4634 | |
| 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 | 4635 | /***/ }), |
| 4636 | +/* 290 */ | |
| 4637 | +/***/ (function(module, exports, __webpack_require__) { | |
| 4107 | 4638 | |
| 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__) => { | |
| 4639 | +module.exports = __webpack_require__(291); | |
| 4113 | 4640 | |
| 4114 | -"use strict"; | |
| 4641 | +/***/ }), | |
| 4642 | +/* 291 */ | |
| 4643 | +/***/ (function(module, exports, __webpack_require__) { | |
| 4115 | 4644 | |
| 4645 | +__webpack_require__(292); | |
| 4646 | +var $Object = __webpack_require__(6).Object; | |
| 4647 | +module.exports = function defineProperties(T, D) { | |
| 4648 | + return $Object.defineProperties(T, D); | |
| 4649 | +}; | |
| 4116 | 4650 | |
| 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 | 4651 | |
| 4138 | 4652 | /***/ }), |
| 4653 | +/* 292 */ | |
| 4654 | +/***/ (function(module, exports, __webpack_require__) { | |
| 4139 | 4655 | |
| 4140 | -/***/ "../app/modules/site-editor/assets/js/context/template-types.js": | |
| 4141 | -/*!**********************************************************************!*\ | |
| 4142 | - !*** ../app/modules/site-editor/assets/js/context/template-types.js ***! | |
| 4143 | - \**********************************************************************/ | |
| 4144 | -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 4656 | +var $export = __webpack_require__(7); | |
| 4657 | +// 19.1.2.3 / 15.2.3.7 Object.defineProperties(O, Properties) | |
| 4658 | +$export($export.S + $export.F * !__webpack_require__(14), 'Object', { defineProperties: __webpack_require__(136) }); | |
| 4145 | 4659 | |
| 4146 | -"use strict"; | |
| 4147 | -/* provided dependency */ var __ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n")["__"]; | |
| 4148 | -/* provided dependency */ var PropTypes = __webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js"); | |
| 4149 | 4660 | |
| 4661 | +/***/ }), | |
| 4662 | +/* 293 */, | |
| 4663 | +/* 294 */, | |
| 4664 | +/* 295 */, | |
| 4665 | +/* 296 */, | |
| 4666 | +/* 297 */, | |
| 4667 | +/* 298 */, | |
| 4668 | +/* 299 */ | |
| 4669 | +/***/ (function(module, exports, __webpack_require__) { | |
| 4150 | 4670 | |
| 4151 | -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 4152 | -Object.defineProperty(exports, "__esModule", ({ | |
| 4153 | - value: true | |
| 4154 | -})); | |
| 4155 | -exports["default"] = exports.TemplateTypesConsumer = exports.Context = void 0; | |
| 4156 | -var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react")); | |
| 4157 | -var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); | |
| 4158 | -var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); | |
| 4159 | -var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); | |
| 4160 | -var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); | |
| 4161 | -var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 4162 | -var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "../node_modules/@babel/runtime/helpers/defineProperty.js")); | |
| 4163 | -__webpack_require__(/*! ../../scss/loading.scss */ "../app/modules/site-editor/assets/scss/loading.scss"); | |
| 4164 | -function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } | |
| 4165 | -function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } | |
| 4166 | -var Context = exports.Context = _react.default.createContext(); | |
| 4167 | -var TemplateTypesContext = /*#__PURE__*/function (_React$Component) { | |
| 4168 | - function TemplateTypesContext(props) { | |
| 4169 | - var _this; | |
| 4170 | - (0, _classCallCheck2.default)(this, TemplateTypesContext); | |
| 4171 | - _this = _callSuper(this, TemplateTypesContext, [props]); | |
| 4172 | - _this.state = { | |
| 4173 | - templateTypes: [], | |
| 4174 | - loading: true, | |
| 4175 | - error: false | |
| 4176 | - }; | |
| 4177 | - return _this; | |
| 4178 | - } | |
| 4179 | - (0, _inherits2.default)(TemplateTypesContext, _React$Component); | |
| 4180 | - return (0, _createClass2.default)(TemplateTypesContext, [{ | |
| 4181 | - key: "componentDidMount", | |
| 4182 | - value: function componentDidMount() { | |
| 4183 | - var _this2 = this; | |
| 4184 | - this.getTemplateTypes().then(function (response) { | |
| 4185 | - _this2.setState({ | |
| 4186 | - templateTypes: response, | |
| 4187 | - loading: false | |
| 4188 | - }); | |
| 4189 | - }).fail(function (error) { | |
| 4190 | - _this2.setState({ | |
| 4191 | - error: error.statusText ? error.statusText : error, | |
| 4192 | - loading: false | |
| 4193 | - }); | |
| 4194 | - }); | |
| 4195 | - } | |
| 4196 | - }, { | |
| 4197 | - key: "getTemplateTypes", | |
| 4198 | - value: function getTemplateTypes() { | |
| 4199 | - return elementorCommon.ajax.load({ | |
| 4200 | - action: 'app_site_editor_template_types' | |
| 4201 | - }); | |
| 4202 | - } | |
| 4203 | - }, { | |
| 4204 | - key: "render", | |
| 4205 | - value: function render() { | |
| 4206 | - if (this.state.error) { | |
| 4207 | - return /*#__PURE__*/_react.default.createElement("div", { | |
| 4208 | - className: "e-loading-wrapper" | |
| 4209 | - }, /*#__PURE__*/_react.default.createElement("h3", null, __('Error:', 'elementor'), " ", this.state.error)); | |
| 4210 | - } | |
| 4211 | - if (this.state.loading) { | |
| 4212 | - return /*#__PURE__*/_react.default.createElement("div", { | |
| 4213 | - className: "elementor-loading" | |
| 4214 | - }, /*#__PURE__*/_react.default.createElement("div", { | |
| 4215 | - className: "elementor-loader-wrapper" | |
| 4216 | - }, /*#__PURE__*/_react.default.createElement("div", { | |
| 4217 | - className: "elementor-loader" | |
| 4218 | - }, /*#__PURE__*/_react.default.createElement("div", { | |
| 4219 | - className: "elementor-loader-boxes" | |
| 4220 | - }, /*#__PURE__*/_react.default.createElement("div", { | |
| 4221 | - className: "elementor-loader-box" | |
| 4222 | - }), /*#__PURE__*/_react.default.createElement("div", { | |
| 4223 | - className: "elementor-loader-box" | |
| 4224 | - }), /*#__PURE__*/_react.default.createElement("div", { | |
| 4225 | - className: "elementor-loader-box" | |
| 4226 | - }), /*#__PURE__*/_react.default.createElement("div", { | |
| 4227 | - className: "elementor-loader-box" | |
| 4228 | - }))), /*#__PURE__*/_react.default.createElement("div", { | |
| 4229 | - className: "elementor-loading-title" | |
| 4230 | - }, __('Loading', 'elementor')))); | |
| 4231 | - } | |
| 4232 | - return /*#__PURE__*/_react.default.createElement(Context.Provider, { | |
| 4233 | - value: this.state | |
| 4234 | - }, this.props.children); | |
| 4235 | - } | |
| 4236 | - }]); | |
| 4237 | -}(_react.default.Component); | |
| 4238 | -(0, _defineProperty2.default)(TemplateTypesContext, "propTypes", { | |
| 4239 | - children: PropTypes.object.isRequired | |
| 4240 | -}); | |
| 4241 | -var TemplateTypesConsumer = exports.TemplateTypesConsumer = Context.Consumer; | |
| 4242 | -var _default = exports["default"] = TemplateTypesContext; | |
| 4671 | +var arrayWithoutHoles = __webpack_require__(317); | |
| 4243 | 4672 | |
| 4244 | -/***/ }), | |
| 4673 | +var iterableToArray = __webpack_require__(318); | |
| 4245 | 4674 | |
| 4246 | -/***/ "../app/modules/site-editor/assets/js/module.js": | |
| 4247 | -/*!******************************************************!*\ | |
| 4248 | - !*** ../app/modules/site-editor/assets/js/module.js ***! | |
| 4249 | - \******************************************************/ | |
| 4250 | -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 4675 | +var unsupportedIterableToArray = __webpack_require__(187); | |
| 4251 | 4676 | |
| 4252 | -"use strict"; | |
| 4253 | -/* provided dependency */ var __ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n")["__"]; | |
| 4677 | +var nonIterableSpread = __webpack_require__(319); | |
| 4254 | 4678 | |
| 4679 | +function _toConsumableArray(arr) { | |
| 4680 | + return arrayWithoutHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableSpread(); | |
| 4681 | +} | |
| 4255 | 4682 | |
| 4256 | -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 4257 | -Object.defineProperty(exports, "__esModule", ({ | |
| 4258 | - value: true | |
| 4259 | -})); | |
| 4260 | -exports["default"] = void 0; | |
| 4261 | -var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); | |
| 4262 | -var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); | |
| 4263 | -var _router = _interopRequireDefault(__webpack_require__(/*! @elementor/router */ "@elementor/router")); | |
| 4264 | -var _promotion = _interopRequireDefault(__webpack_require__(/*! ./pages/promotion */ "../app/modules/site-editor/assets/js/pages/promotion.js")); | |
| 4265 | -var _notFound = _interopRequireDefault(__webpack_require__(/*! ./pages/not-found */ "../app/modules/site-editor/assets/js/pages/not-found.js")); | |
| 4266 | -var SiteEditor = exports["default"] = /*#__PURE__*/function () { | |
| 4267 | - function SiteEditor() { | |
| 4268 | - (0, _classCallCheck2.default)(this, SiteEditor); | |
| 4269 | - this.saveTemplateTypesToCache(); | |
| 4270 | - _router.default.addRoute({ | |
| 4271 | - path: '/site-editor/promotion', | |
| 4272 | - component: _promotion.default | |
| 4273 | - }); | |
| 4274 | - _router.default.addRoute({ | |
| 4275 | - path: '/site-editor/*', | |
| 4276 | - component: _notFound.default | |
| 4277 | - }); | |
| 4278 | - } | |
| 4279 | - return (0, _createClass2.default)(SiteEditor, [{ | |
| 4280 | - key: "saveTemplateTypesToCache", | |
| 4281 | - value: function saveTemplateTypesToCache() { | |
| 4282 | - var types = this.getTypes(); | |
| 4283 | - elementorCommon.ajax.addRequestCache({ | |
| 4284 | - unique_id: 'app_site_editor_template_types' | |
| 4285 | - }, types); | |
| 4286 | - } | |
| 4287 | - }, { | |
| 4288 | - key: "getTypes", | |
| 4289 | - value: function getTypes() { | |
| 4290 | - return [{ | |
| 4291 | - type: 'header', | |
| 4292 | - icon: 'eicon-header', | |
| 4293 | - title: __('Header', 'elementor'), | |
| 4294 | - urls: { | |
| 4295 | - thumbnail: elementorAppConfig.assets_url + '/images/app/site-editor/header.svg' | |
| 4296 | - }, | |
| 4297 | - tooltip_data: { | |
| 4298 | - title: __('What is a Header Template?', 'elementor'), | |
| 4299 | - content: __('The header template allows you to easily design and edit custom WordPress headers so you are no longer constrained by your theme’s header design limitations.', 'elementor'), | |
| 4300 | - tip: __('You can create multiple headers, and assign each to different areas of your site.', 'elementor'), | |
| 4301 | - docs: 'https://go.elementor.com/app-theme-builder-header/', | |
| 4302 | - video_url: 'https://www.youtube.com/embed/HHy5RK6W-6I' | |
| 4303 | - } | |
| 4304 | - }, { | |
| 4305 | - type: 'footer', | |
| 4306 | - icon: 'eicon-footer', | |
| 4307 | - title: __('Footer', 'elementor'), | |
| 4308 | - urls: { | |
| 4309 | - thumbnail: elementorAppConfig.assets_url + '/images/app/site-editor/footer.svg' | |
| 4310 | - }, | |
| 4311 | - tooltip_data: { | |
| 4312 | - title: __('What is a Footer Template?', 'elementor'), | |
| 4313 | - content: __('The footer template allows you to easily design and edit custom WordPress footers without the limits of your theme’s footer design constraints', 'elementor'), | |
| 4314 | - tip: __('You can create multiple footers, and assign each to different areas of your site.', 'elementor'), | |
| 4315 | - docs: 'https://go.elementor.com/app-theme-builder-footer/', | |
| 4316 | - video_url: 'https://www.youtube.com/embed/xa8DoR4tQrY' | |
| 4317 | - } | |
| 4318 | - }, { | |
| 4319 | - type: 'single-page', | |
| 4320 | - icon: 'eicon-single-page', | |
| 4321 | - title: __('Single Page', 'elementor'), | |
| 4322 | - urls: { | |
| 4323 | - thumbnail: elementorAppConfig.assets_url + '/images/app/site-editor/single-page.svg' | |
| 4324 | - }, | |
| 4325 | - tooltip_data: { | |
| 4326 | - title: __('What is a Single Page Template?', 'elementor'), | |
| 4327 | - content: __('A single page template allows you to easily create the layout and style of pages, ensuring design consistency across all the pages of your site.', 'elementor'), | |
| 4328 | - tip: __('You can create multiple single page templates, and assign each to different areas of your site.', 'elementor'), | |
| 4329 | - docs: 'https://go.elementor.com/app-theme-builder-page/', | |
| 4330 | - video_url: 'https://www.youtube.com/embed/_y5eZ60lVoY' | |
| 4331 | - } | |
| 4332 | - }, { | |
| 4333 | - type: 'single-post', | |
| 4334 | - icon: 'eicon-single-post', | |
| 4335 | - title: __('Single Post', 'elementor'), | |
| 4336 | - urls: { | |
| 4337 | - thumbnail: elementorAppConfig.assets_url + '/images/app/site-editor/single-post.svg' | |
| 4338 | - }, | |
| 4339 | - tooltip_data: { | |
| 4340 | - title: __('What is a Single Post Template?', 'elementor'), | |
| 4341 | - content: __('A single post template allows you to easily design the layout and style of posts, ensuring a design consistency throughout all your blog posts, for example.', 'elementor'), | |
| 4342 | - tip: __('You can create multiple single post templates, and assign each to a different category.', 'elementor'), | |
| 4343 | - docs: 'https://go.elementor.com/app-theme-builder-post/', | |
| 4344 | - video_url: 'https://www.youtube.com/embed/8Fk-Edu7DL0' | |
| 4345 | - } | |
| 4346 | - }, { | |
| 4347 | - type: 'archive', | |
| 4348 | - icon: 'eicon-archive', | |
| 4349 | - title: __('Archive', 'elementor'), | |
| 4350 | - urls: { | |
| 4351 | - thumbnail: elementorAppConfig.assets_url + '/images/app/site-editor/archive.svg' | |
| 4352 | - }, | |
| 4353 | - tooltip_data: { | |
| 4354 | - title: __('What is an Archive Template?', 'elementor'), | |
| 4355 | - content: __('An archive template allows you to easily design the layout and style of archive pages - those pages that show a list of posts (e.g. a blog’s list of recent posts), which may be filtered by terms such as authors, categories, tags, search results, etc.', 'elementor'), | |
| 4356 | - tip: __('If you’d like a different style for a specific category, it’s easy to create a separate archive template whose condition is to only display when users are viewing that category’s list of posts.', 'elementor'), | |
| 4357 | - docs: 'https://go.elementor.com/app-theme-builder-archive/', | |
| 4358 | - video_url: 'https://www.youtube.com/embed/wxElpEh9bfA' | |
| 4359 | - } | |
| 4360 | - }, { | |
| 4361 | - type: 'search-results', | |
| 4362 | - icon: 'eicon-search-results', | |
| 4363 | - title: __('search results page', 'elementor'), | |
| 4364 | - urls: { | |
| 4365 | - thumbnail: elementorAppConfig.assets_url + '/images/app/site-editor/search-results.svg' | |
| 4366 | - }, | |
| 4367 | - tooltip_data: { | |
| 4368 | - title: __('What is a Search Results Template?', 'elementor'), | |
| 4369 | - content: __('You can easily control the layout and design of the Search Results page with the Search Results template, which is simply a special archive template just for displaying search results.', 'elementor'), | |
| 4370 | - tip: __('You can customize the message if there are no results for the search term.', 'elementor'), | |
| 4371 | - docs: 'https://go.elementor.com/app-theme-builder-search-results/', | |
| 4372 | - video_url: 'https://www.youtube.com/embed/KKkIU_L5sDo' | |
| 4373 | - } | |
| 4374 | - }, { | |
| 4375 | - type: 'product', | |
| 4376 | - icon: 'eicon-single-product', | |
| 4377 | - title: __('Product', 'elementor'), | |
| 4378 | - urls: { | |
| 4379 | - thumbnail: elementorAppConfig.assets_url + '/images/app/site-editor/product.svg' | |
| 4380 | - }, | |
| 4381 | - tooltip_data: { | |
| 4382 | - title: __('What is a Single Product Template?', 'elementor'), | |
| 4383 | - content: __('A single product template allows you to easily design the layout and style of WooCommerce single product pages, and apply that template to various conditions that you assign.', 'elementor'), | |
| 4384 | - tip: __('You can create multiple single product templates, and assign each to different types of products, enabling a custom design for each group of similar products.', 'elementor'), | |
| 4385 | - docs: 'https://go.elementor.com/app-theme-builder-product/', | |
| 4386 | - video_url: 'https://www.youtube.com/embed/PjhoB1RWkBM' | |
| 4387 | - } | |
| 4388 | - }, { | |
| 4389 | - type: 'products', | |
| 4390 | - icon: 'eicon-products', | |
| 4391 | - title: __('Products Archive', 'elementor'), | |
| 4392 | - urls: { | |
| 4393 | - thumbnail: elementorAppConfig.assets_url + '/images/app/site-editor/products.svg' | |
| 4394 | - }, | |
| 4395 | - tooltip_data: { | |
| 4396 | - title: __('What is a Products Archive Template?', 'elementor'), | |
| 4397 | - content: __('A products archive template allows you to easily design the layout and style of your WooCommerce shop page or other product archive pages - those pages that show a list of products, which may be filtered by terms such as categories, tags, etc.', 'elementor'), | |
| 4398 | - tip: __('You can create multiple archive product templates, and assign each to different categories of products. This gives you the freedom to customize the appearance for each type of product being shown.', 'elementor'), | |
| 4399 | - docs: 'https://go.elementor.com/app-theme-builder-products-archive/', | |
| 4400 | - video_url: 'https://www.youtube.com/embed/cQLeirgkguA' | |
| 4401 | - } | |
| 4402 | - }, { | |
| 4403 | - type: 'error-404', | |
| 4404 | - icon: 'eicon-error-404', | |
| 4405 | - title: __('404 page', 'elementor'), | |
| 4406 | - urls: { | |
| 4407 | - thumbnail: elementorAppConfig.assets_url + '/images/app/site-editor/error-404.svg' | |
| 4408 | - }, | |
| 4409 | - tooltip_data: { | |
| 4410 | - title: __('What is a 404 Page Template?', 'elementor'), | |
| 4411 | - content: __('A 404 page template allows you to easily design the layout and style of the page that is displayed when a visitor arrives at a page that does not exist.', 'elementor'), | |
| 4412 | - tip: __('Keep your site\'s visitors happy when they get lost by displaying your recent posts, a search bar, or any information that might help the user find what they were looking for.', 'elementor'), | |
| 4413 | - docs: 'https://go.elementor.com/app-theme-builder-404/', | |
| 4414 | - video_url: 'https://www.youtube.com/embed/ACCNp9tBMQg' | |
| 4415 | - } | |
| 4416 | - }]; | |
| 4417 | - } | |
| 4418 | - }]); | |
| 4419 | -}(); | |
| 4683 | +module.exports = _toConsumableArray; | |
| 4420 | 4684 | |
| 4421 | 4685 | /***/ }), |
| 4686 | +/* 300 */, | |
| 4687 | +/* 301 */, | |
| 4688 | +/* 302 */, | |
| 4689 | +/* 303 */ | |
| 4690 | +/***/ (function(module, exports, __webpack_require__) { | |
| 4422 | 4691 | |
| 4423 | -/***/ "../app/modules/site-editor/assets/js/molecules/site-part.js": | |
| 4424 | -/*!*******************************************************************!*\ | |
| 4425 | - !*** ../app/modules/site-editor/assets/js/molecules/site-part.js ***! | |
| 4426 | - \*******************************************************************/ | |
| 4427 | -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 4692 | +module.exports = __webpack_require__(304); | |
| 4428 | 4693 | |
| 4429 | -"use strict"; | |
| 4430 | -/* provided dependency */ var PropTypes = __webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js"); | |
| 4694 | +/***/ }), | |
| 4695 | +/* 304 */ | |
| 4696 | +/***/ (function(module, exports, __webpack_require__) { | |
| 4431 | 4697 | |
| 4698 | +__webpack_require__(305); | |
| 4699 | +module.exports = __webpack_require__(6).Object.getOwnPropertyDescriptors; | |
| 4432 | 4700 | |
| 4433 | -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 4434 | -Object.defineProperty(exports, "__esModule", ({ | |
| 4435 | - value: true | |
| 4436 | -})); | |
| 4437 | -exports["default"] = SitePart; | |
| 4438 | -var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react")); | |
| 4439 | -var _card = _interopRequireDefault(__webpack_require__(/*! elementor-app/ui/card/card */ "../app/assets/js/ui/card/card.js")); | |
| 4440 | -var _cardHeader = _interopRequireDefault(__webpack_require__(/*! elementor-app/ui/card/card-header */ "../app/assets/js/ui/card/card-header.js")); | |
| 4441 | -var _cardBody = _interopRequireDefault(__webpack_require__(/*! elementor-app/ui/card/card-body */ "../app/assets/js/ui/card/card-body.js")); | |
| 4442 | -var _cardImage = _interopRequireDefault(__webpack_require__(/*! elementor-app/ui/card/card-image */ "../app/assets/js/ui/card/card-image.js")); | |
| 4443 | -var _heading = _interopRequireDefault(__webpack_require__(/*! elementor-app/ui/atoms/heading */ "../app/assets/js/ui/atoms/heading.js")); | |
| 4444 | -__webpack_require__(/*! ./site-part.scss */ "../app/modules/site-editor/assets/js/molecules/site-part.scss"); | |
| 4445 | -function SitePart(props) { | |
| 4446 | - return /*#__PURE__*/_react.default.createElement(_card.default, { | |
| 4447 | - className: "e-site-part" | |
| 4448 | - }, /*#__PURE__*/_react.default.createElement(_cardHeader.default, null, /*#__PURE__*/_react.default.createElement(_heading.default, { | |
| 4449 | - tag: "h1", | |
| 4450 | - variant: "text-sm", | |
| 4451 | - className: "eps-card__headline" | |
| 4452 | - }, props.title), props.actionButton), /*#__PURE__*/_react.default.createElement(_cardBody.default, null, /*#__PURE__*/_react.default.createElement(_cardImage.default, { | |
| 4453 | - alt: props.title, | |
| 4454 | - src: props.thumbnail | |
| 4455 | - }, props.children))); | |
| 4456 | -} | |
| 4457 | -SitePart.propTypes = { | |
| 4458 | - thumbnail: PropTypes.string.isRequired, | |
| 4459 | - title: PropTypes.string.isRequired, | |
| 4460 | - children: PropTypes.object, | |
| 4461 | - showIndicator: PropTypes.bool, | |
| 4462 | - actionButton: PropTypes.object | |
| 4463 | -}; | |
| 4464 | 4701 | |
| 4465 | 4702 | /***/ }), |
| 4703 | +/* 305 */ | |
| 4704 | +/***/ (function(module, exports, __webpack_require__) { | |
| 4466 | 4705 | |
| 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 | -/***/ (() => { | |
| 4706 | +// https://github.com/tc39/proposal-object-getownpropertydescriptors | |
| 4707 | +var $export = __webpack_require__(7); | |
| 4708 | +var ownKeys = __webpack_require__(306); | |
| 4709 | +var toIObject = __webpack_require__(20); | |
| 4710 | +var gOPD = __webpack_require__(51); | |
| 4711 | +var createProperty = __webpack_require__(186); | |
| 4472 | 4712 | |
| 4713 | +$export($export.S, 'Object', { | |
| 4714 | + getOwnPropertyDescriptors: function getOwnPropertyDescriptors(object) { | |
| 4715 | + var O = toIObject(object); | |
| 4716 | + var getDesc = gOPD.f; | |
| 4717 | + var keys = ownKeys(O); | |
| 4718 | + var result = {}; | |
| 4719 | + var i = 0; | |
| 4720 | + var key, desc; | |
| 4721 | + while (keys.length > i) { | |
| 4722 | + desc = getDesc(O, key = keys[i++]); | |
| 4723 | + if (desc !== undefined) createProperty(result, key, desc); | |
| 4724 | + } | |
| 4725 | + return result; | |
| 4726 | + } | |
| 4727 | +}); | |
| 4473 | 4728 | |
| 4474 | 4729 | |
| 4475 | 4730 | /***/ }), |
| 4731 | +/* 306 */ | |
| 4732 | +/***/ (function(module, exports, __webpack_require__) { | |
| 4476 | 4733 | |
| 4477 | -/***/ "../app/modules/site-editor/assets/js/organisms/all-parts-button.js": | |
| 4478 | -/*!**************************************************************************!*\ | |
| 4479 | - !*** ../app/modules/site-editor/assets/js/organisms/all-parts-button.js ***! | |
| 4480 | - \**************************************************************************/ | |
| 4481 | -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 4734 | +// all object keys, includes non-enumerable and symbols | |
| 4735 | +var gOPN = __webpack_require__(99); | |
| 4736 | +var gOPS = __webpack_require__(71); | |
| 4737 | +var anObject = __webpack_require__(13); | |
| 4738 | +var Reflect = __webpack_require__(8).Reflect; | |
| 4739 | +module.exports = Reflect && Reflect.ownKeys || function ownKeys(it) { | |
| 4740 | + var keys = gOPN.f(anObject(it)); | |
| 4741 | + var getSymbols = gOPS.f; | |
| 4742 | + return getSymbols ? keys.concat(getSymbols(it)) : keys; | |
| 4743 | +}; | |
| 4482 | 4744 | |
| 4483 | -"use strict"; | |
| 4484 | -/* provided dependency */ var __ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n")["__"]; | |
| 4485 | -/* provided dependency */ var PropTypes = __webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js"); | |
| 4486 | 4745 | |
| 4746 | +/***/ }), | |
| 4747 | +/* 307 */ | |
| 4748 | +/***/ (function(module, exports, __webpack_require__) { | |
| 4487 | 4749 | |
| 4488 | -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 4489 | -Object.defineProperty(exports, "__esModule", ({ | |
| 4490 | - value: true | |
| 4491 | -})); | |
| 4492 | -exports["default"] = AllPartsButton; | |
| 4493 | -var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react")); | |
| 4494 | -var _menuItem = _interopRequireDefault(__webpack_require__(/*! elementor-app/ui/menu/menu-item */ "../app/assets/js/ui/menu/menu-item.js")); | |
| 4495 | -var _router = __webpack_require__(/*! @reach/router */ "../node_modules/@reach/router/es/index.js"); | |
| 4496 | -function AllPartsButton(props) { | |
| 4497 | - var activePathname = '/site-editor/templates'; | |
| 4498 | - return /*#__PURE__*/_react.default.createElement(_router.Match, { | |
| 4499 | - path: activePathname | |
| 4500 | - }, function (_ref) { | |
| 4501 | - var match = _ref.match; | |
| 4502 | - var className = "eps-menu-item__link".concat(match || props.promotion ? ' eps-menu-item--active' : ''); | |
| 4503 | - return /*#__PURE__*/_react.default.createElement(_menuItem.default, { | |
| 4504 | - text: __('All Parts', 'elementor'), | |
| 4505 | - className: className, | |
| 4506 | - icon: "eicon-filter", | |
| 4507 | - url: props.url | |
| 4508 | - }); | |
| 4509 | - }); | |
| 4510 | -} | |
| 4511 | -AllPartsButton.propTypes = { | |
| 4512 | - url: PropTypes.string, | |
| 4513 | - promotion: PropTypes.bool | |
| 4514 | -}; | |
| 4750 | +module.exports = __webpack_require__(308); | |
| 4515 | 4751 | |
| 4516 | 4752 | /***/ }), |
| 4753 | +/* 308 */ | |
| 4754 | +/***/ (function(module, exports, __webpack_require__) { | |
| 4517 | 4755 | |
| 4518 | -/***/ "../app/modules/site-editor/assets/js/organisms/menu.js": | |
| 4519 | -/*!**************************************************************!*\ | |
| 4520 | - !*** ../app/modules/site-editor/assets/js/organisms/menu.js ***! | |
| 4521 | - \**************************************************************/ | |
| 4522 | -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 4756 | +__webpack_require__(140); | |
| 4757 | +module.exports = __webpack_require__(6).Object.getOwnPropertySymbols; | |
| 4523 | 4758 | |
| 4524 | -"use strict"; | |
| 4525 | -/* provided dependency */ var __ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n")["__"]; | |
| 4526 | -/* provided dependency */ var PropTypes = __webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js"); | |
| 4527 | 4759 | |
| 4760 | +/***/ }), | |
| 4761 | +/* 309 */, | |
| 4762 | +/* 310 */, | |
| 4763 | +/* 311 */, | |
| 4764 | +/* 312 */, | |
| 4765 | +/* 313 */, | |
| 4766 | +/* 314 */, | |
| 4767 | +/* 315 */, | |
| 4768 | +/* 316 */, | |
| 4769 | +/* 317 */ | |
| 4770 | +/***/ (function(module, exports, __webpack_require__) { | |
| 4528 | 4771 | |
| 4529 | -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 4530 | -Object.defineProperty(exports, "__esModule", ({ | |
| 4531 | - value: true | |
| 4532 | -})); | |
| 4533 | -exports["default"] = Menu; | |
| 4534 | -var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react")); | |
| 4535 | -var _menu = _interopRequireDefault(__webpack_require__(/*! elementor-app/ui/menu/menu */ "../app/assets/js/ui/menu/menu.js")); | |
| 4536 | -var _templateTypes = __webpack_require__(/*! ../context/template-types */ "../app/modules/site-editor/assets/js/context/template-types.js"); | |
| 4537 | -var _button = _interopRequireDefault(__webpack_require__(/*! elementor-app/ui/molecules/button */ "../app/assets/js/ui/molecules/button.js")); | |
| 4538 | -var _addNewButton = _interopRequireDefault(__webpack_require__(/*! elementor-app/ui/molecules/add-new-button */ "../app/assets/js/ui/molecules/add-new-button.js")); | |
| 4539 | -__webpack_require__(/*! ./menu.scss */ "../app/modules/site-editor/assets/js/organisms/menu.scss"); | |
| 4540 | -function Menu(props) { | |
| 4541 | - var _React$useContext = _react.default.useContext(_templateTypes.Context), | |
| 4542 | - templateTypes = _React$useContext.templateTypes, | |
| 4543 | - actionButton = function actionButton(itemProps) { | |
| 4544 | - var className = 'eps-menu-item__action-button'; | |
| 4545 | - if (props.promotion) { | |
| 4546 | - return /*#__PURE__*/_react.default.createElement(_button.default, { | |
| 4547 | - text: __('Upgrade Now', 'elementor'), | |
| 4548 | - hideText: true, | |
| 4549 | - icon: "eicon-lock", | |
| 4550 | - className: className | |
| 4551 | - }); | |
| 4552 | - } | |
| 4553 | - var goToCreate = function goToCreate() { | |
| 4554 | - location.href = itemProps.urls.create; | |
| 4555 | - }; | |
| 4556 | - return /*#__PURE__*/_react.default.createElement("span", { | |
| 4557 | - className: className | |
| 4558 | - }, /*#__PURE__*/_react.default.createElement(_addNewButton.default, { | |
| 4559 | - hideText: true, | |
| 4560 | - size: "sm", | |
| 4561 | - onClick: function onClick() { | |
| 4562 | - return goToCreate(); | |
| 4563 | - } | |
| 4564 | - })); | |
| 4565 | - }; | |
| 4566 | - return /*#__PURE__*/_react.default.createElement(_menu.default, { | |
| 4567 | - menuItems: templateTypes, | |
| 4568 | - actionButton: actionButton, | |
| 4569 | - promotion: props.promotion | |
| 4570 | - }, props.allPartsButton, /*#__PURE__*/_react.default.createElement("div", { | |
| 4571 | - className: "eps-menu__title" | |
| 4572 | - }, __('Site Parts', 'elementor'))); | |
| 4573 | -} | |
| 4574 | -Menu.propTypes = { | |
| 4575 | - allPartsButton: PropTypes.element.isRequired, | |
| 4576 | - promotion: PropTypes.bool | |
| 4577 | -}; | |
| 4772 | +var _Array$isArray = __webpack_require__(84); | |
| 4578 | 4773 | |
| 4579 | -/***/ }), | |
| 4774 | +var arrayLikeToArray = __webpack_require__(199); | |
| 4580 | 4775 | |
| 4581 | -/***/ "../app/modules/site-editor/assets/js/organisms/menu.scss": | |
| 4582 | -/*!****************************************************************!*\ | |
| 4583 | - !*** ../app/modules/site-editor/assets/js/organisms/menu.scss ***! | |
| 4584 | - \****************************************************************/ | |
| 4585 | -/***/ (() => { | |
| 4776 | +function _arrayWithoutHoles(arr) { | |
| 4777 | + if (_Array$isArray(arr)) return arrayLikeToArray(arr); | |
| 4778 | +} | |
| 4586 | 4779 | |
| 4780 | +module.exports = _arrayWithoutHoles; | |
| 4587 | 4781 | |
| 4588 | - | |
| 4589 | 4782 | /***/ }), |
| 4783 | +/* 318 */ | |
| 4784 | +/***/ (function(module, exports, __webpack_require__) { | |
| 4590 | 4785 | |
| 4591 | -/***/ "../app/modules/site-editor/assets/js/organisms/site-parts.js": | |
| 4592 | -/*!********************************************************************!*\ | |
| 4593 | - !*** ../app/modules/site-editor/assets/js/organisms/site-parts.js ***! | |
| 4594 | - \********************************************************************/ | |
| 4595 | -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 4786 | +var _Array$from = __webpack_require__(200); | |
| 4596 | 4787 | |
| 4597 | -"use strict"; | |
| 4598 | -/* provided dependency */ var __ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n")["__"]; | |
| 4599 | -/* provided dependency */ var PropTypes = __webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js"); | |
| 4788 | +var _isIterable = __webpack_require__(211); | |
| 4600 | 4789 | |
| 4790 | +var _Symbol = __webpack_require__(111); | |
| 4601 | 4791 | |
| 4602 | -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 4603 | -Object.defineProperty(exports, "__esModule", ({ | |
| 4604 | - value: true | |
| 4605 | -})); | |
| 4606 | -exports["default"] = SiteParts; | |
| 4607 | -var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react")); | |
| 4608 | -var _extends2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/extends */ "../node_modules/@babel/runtime/helpers/extends.js")); | |
| 4609 | -var _button = _interopRequireDefault(__webpack_require__(/*! elementor-app/ui/molecules/button */ "../app/assets/js/ui/molecules/button.js")); | |
| 4610 | -var _cssGrid = _interopRequireDefault(__webpack_require__(/*! elementor-app/ui/atoms/css-grid */ "../app/assets/js/ui/atoms/css-grid.js")); | |
| 4611 | -var _modal = _interopRequireDefault(__webpack_require__(/*! elementor-app/ui/modal/modal */ "../app/assets/js/ui/modal/modal.js")); | |
| 4612 | -var _sitePart = _interopRequireDefault(__webpack_require__(/*! ../molecules/site-part */ "../app/modules/site-editor/assets/js/molecules/site-part.js")); | |
| 4613 | -var _templateTypes = __webpack_require__(/*! ../context/template-types */ "../app/modules/site-editor/assets/js/context/template-types.js"); | |
| 4614 | -/* eslint-disable jsx-a11y/iframe-has-title */ | |
| 4792 | +function _iterableToArray(iter) { | |
| 4793 | + if (typeof _Symbol !== "undefined" && _isIterable(Object(iter))) return _Array$from(iter); | |
| 4794 | +} | |
| 4615 | 4795 | |
| 4616 | -var InfoButton = function InfoButton(props) { | |
| 4617 | - var toggleButtonProps = { | |
| 4618 | - text: __('Info', 'elementor'), | |
| 4619 | - hideText: true, | |
| 4620 | - icon: 'eicon-info-circle e-site-part__info-toggle' | |
| 4621 | - }; | |
| 4622 | - return /*#__PURE__*/_react.default.createElement(_modal.default, { | |
| 4623 | - toggleButtonProps: toggleButtonProps, | |
| 4624 | - title: props.title | |
| 4625 | - }, /*#__PURE__*/_react.default.createElement(_cssGrid.default, { | |
| 4626 | - columns: 2, | |
| 4627 | - spacing: 60 | |
| 4628 | - }, /*#__PURE__*/_react.default.createElement("section", null, /*#__PURE__*/_react.default.createElement("h3", null, props.type), /*#__PURE__*/_react.default.createElement("p", null, props.content, /*#__PURE__*/_react.default.createElement("br", null), /*#__PURE__*/_react.default.createElement(_button.default, { | |
| 4629 | - text: __('Learn More', 'elementor'), | |
| 4630 | - color: "link", | |
| 4631 | - target: "_blank", | |
| 4632 | - url: props.docs | |
| 4633 | - })), /*#__PURE__*/_react.default.createElement("div", { | |
| 4634 | - className: "eps-modal__tip" | |
| 4635 | - }, /*#__PURE__*/_react.default.createElement("h3", null, __('Tip', 'elementor')), /*#__PURE__*/_react.default.createElement("p", null, props.tip))), /*#__PURE__*/_react.default.createElement("section", null, /*#__PURE__*/_react.default.createElement("h3", null, __('Watch Video', 'elementor')), /*#__PURE__*/_react.default.createElement("div", { | |
| 4636 | - className: "video-wrapper" | |
| 4637 | - }, /*#__PURE__*/_react.default.createElement("iframe", { | |
| 4638 | - id: "ytplayer", | |
| 4639 | - src: props.video_url, | |
| 4640 | - frameBorder: "0" | |
| 4641 | - }))))); | |
| 4642 | -}; | |
| 4643 | -InfoButton.propTypes = { | |
| 4644 | - content: PropTypes.string.isRequired, | |
| 4645 | - docs: PropTypes.string.isRequired, | |
| 4646 | - tip: PropTypes.string.isRequired, | |
| 4647 | - title: PropTypes.string.isRequired, | |
| 4648 | - type: PropTypes.string.isRequired, | |
| 4649 | - video_url: PropTypes.string.isRequired | |
| 4650 | -}; | |
| 4651 | -function SiteParts(props) { | |
| 4652 | - var _React$useContext = _react.default.useContext(_templateTypes.Context), | |
| 4653 | - templateTypes = _React$useContext.templateTypes; | |
| 4654 | - return /*#__PURE__*/_react.default.createElement(_cssGrid.default, { | |
| 4655 | - className: "e-site-editor__site-parts", | |
| 4656 | - colMinWidth: 200, | |
| 4657 | - spacing: 25 | |
| 4658 | - }, templateTypes.map(function (item) { | |
| 4659 | - return /*#__PURE__*/_react.default.createElement(_sitePart.default, (0, _extends2.default)({ | |
| 4660 | - className: "e-site-editor__site-part", | |
| 4661 | - actionButton: /*#__PURE__*/_react.default.createElement(InfoButton, (0, _extends2.default)({ | |
| 4662 | - type: item.title | |
| 4663 | - }, item.tooltip_data)), | |
| 4664 | - thumbnail: item.urls.thumbnail, | |
| 4665 | - key: item.type | |
| 4666 | - }, item), _react.default.createElement(props.hoverElement, item)); | |
| 4667 | - })); | |
| 4668 | -} | |
| 4669 | -SiteParts.propTypes = { | |
| 4670 | - hoverElement: PropTypes.func.isRequired | |
| 4671 | -}; | |
| 4796 | +module.exports = _iterableToArray; | |
| 4672 | 4797 | |
| 4673 | 4798 | /***/ }), |
| 4799 | +/* 319 */ | |
| 4800 | +/***/ (function(module, exports) { | |
| 4674 | 4801 | |
| 4675 | -/***/ "../app/modules/site-editor/assets/js/package.js": | |
| 4676 | -/*!*******************************************************!*\ | |
| 4677 | - !*** ../app/modules/site-editor/assets/js/package.js ***! | |
| 4678 | - \*******************************************************/ | |
| 4679 | -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 4802 | +function _nonIterableSpread() { | |
| 4803 | + throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); | |
| 4804 | +} | |
| 4680 | 4805 | |
| 4681 | -"use strict"; | |
| 4806 | +module.exports = _nonIterableSpread; | |
| 4682 | 4807 | |
| 4683 | - | |
| 4684 | -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 4685 | -Object.defineProperty(exports, "__esModule", ({ | |
| 4686 | - value: true | |
| 4687 | -})); | |
| 4688 | -exports["default"] = void 0; | |
| 4689 | -var _allPartsButton = _interopRequireDefault(__webpack_require__(/*! ./organisms/all-parts-button */ "../app/modules/site-editor/assets/js/organisms/all-parts-button.js")); | |
| 4690 | -var _layout = _interopRequireDefault(__webpack_require__(/*! ./templates/layout */ "../app/modules/site-editor/assets/js/templates/layout.js")); | |
| 4691 | -var _module = _interopRequireDefault(__webpack_require__(/*! ./module */ "../app/modules/site-editor/assets/js/module.js")); | |
| 4692 | -var _notFound = _interopRequireDefault(__webpack_require__(/*! ./pages/not-found */ "../app/modules/site-editor/assets/js/pages/not-found.js")); | |
| 4693 | -var _siteParts = _interopRequireDefault(__webpack_require__(/*! ./organisms/site-parts */ "../app/modules/site-editor/assets/js/organisms/site-parts.js")); | |
| 4694 | -var _sitePart = _interopRequireDefault(__webpack_require__(/*! ./molecules/site-part */ "../app/modules/site-editor/assets/js/molecules/site-part.js")); | |
| 4695 | -var _templateTypes = __webpack_require__(/*! ./context/template-types */ "../app/modules/site-editor/assets/js/context/template-types.js"); | |
| 4696 | -// Alphabetical order. | |
| 4697 | -var _default = exports["default"] = { | |
| 4698 | - AllPartsButton: _allPartsButton.default, | |
| 4699 | - Layout: _layout.default, | |
| 4700 | - Module: _module.default, | |
| 4701 | - NotFound: _notFound.default, | |
| 4702 | - SitePart: _sitePart.default, | |
| 4703 | - SiteParts: _siteParts.default, | |
| 4704 | - TemplateTypesContext: _templateTypes.Context | |
| 4705 | -}; | |
| 4706 | - | |
| 4707 | 4808 | /***/ }), |
| 4809 | +/* 320 */, | |
| 4810 | +/* 321 */, | |
| 4811 | +/* 322 */, | |
| 4812 | +/* 323 */, | |
| 4813 | +/* 324 */, | |
| 4814 | +/* 325 */ | |
| 4815 | +/***/ (function(module, exports, __webpack_require__) { | |
| 4708 | 4816 | |
| 4709 | -/***/ "../app/modules/site-editor/assets/js/pages/not-found.js": | |
| 4710 | -/*!***************************************************************!*\ | |
| 4711 | - !*** ../app/modules/site-editor/assets/js/pages/not-found.js ***! | |
| 4712 | - \***************************************************************/ | |
| 4713 | -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 4714 | - | |
| 4715 | 4817 | "use strict"; |
| 4716 | -/* provided dependency */ var __ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n")["__"]; | |
| 4818 | +/** | |
| 4819 | + * Copyright (c) 2013-present, Facebook, Inc. | |
| 4820 | + * | |
| 4821 | + * This source code is licensed under the MIT license found in the | |
| 4822 | + * LICENSE file in the root directory of this source tree. | |
| 4823 | + */ | |
| 4717 | 4824 | |
| 4718 | 4825 | |
| 4719 | -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 4720 | -Object.defineProperty(exports, "__esModule", ({ | |
| 4721 | - value: true | |
| 4722 | -})); | |
| 4723 | -exports["default"] = NotFound; | |
| 4724 | -var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react")); | |
| 4725 | -var _dialog = _interopRequireDefault(__webpack_require__(/*! elementor-app/ui/dialog/dialog */ "../app/assets/js/ui/dialog/dialog.js")); | |
| 4726 | -function NotFound() { | |
| 4727 | - var url = _react.default.useMemo(function () { | |
| 4728 | - var _elementorAppConfig$m; | |
| 4729 | - return ((_elementorAppConfig$m = elementorAppConfig.menu_url.split('#')) === null || _elementorAppConfig$m === void 0 ? void 0 : _elementorAppConfig$m[1]) || '/site-editor'; | |
| 4730 | - }, []); | |
| 4731 | - return /*#__PURE__*/_react.default.createElement(_dialog.default, { | |
| 4732 | - title: __('Theme Builder could not be loaded', 'elementor'), | |
| 4733 | - text: __('We’re sorry, but something went wrong. Click on ‘Learn more’ and follow each of the steps to quickly solve it.', 'elementor'), | |
| 4734 | - approveButtonUrl: "https://go.elementor.com/app-theme-builder-load-issue/", | |
| 4735 | - approveButtonColor: "link", | |
| 4736 | - approveButtonTarget: "_blank", | |
| 4737 | - approveButtonText: __('Learn More', 'elementor'), | |
| 4738 | - dismissButtonText: __('Go Back', 'elementor'), | |
| 4739 | - dismissButtonUrl: url | |
| 4740 | - }); | |
| 4741 | -} | |
| 4742 | 4826 | |
| 4743 | -/***/ }), | |
| 4827 | +var ReactPropTypesSecret = __webpack_require__(326); | |
| 4744 | 4828 | |
| 4745 | -/***/ "../app/modules/site-editor/assets/js/pages/promotion.js": | |
| 4746 | -/*!***************************************************************!*\ | |
| 4747 | - !*** ../app/modules/site-editor/assets/js/pages/promotion.js ***! | |
| 4748 | - \***************************************************************/ | |
| 4749 | -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 4829 | +function emptyFunction() {} | |
| 4830 | +function emptyFunctionWithReset() {} | |
| 4831 | +emptyFunctionWithReset.resetWarningCache = emptyFunction; | |
| 4750 | 4832 | |
| 4751 | -"use strict"; | |
| 4752 | -/* provided dependency */ var __ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n")["__"]; | |
| 4753 | -/* provided dependency */ var PropTypes = __webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js"); | |
| 4833 | +module.exports = function() { | |
| 4834 | + function shim(props, propName, componentName, location, propFullName, secret) { | |
| 4835 | + if (secret === ReactPropTypesSecret) { | |
| 4836 | + // It is still safe when called from React. | |
| 4837 | + return; | |
| 4838 | + } | |
| 4839 | + var err = new Error( | |
| 4840 | + 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' + | |
| 4841 | + 'Use PropTypes.checkPropTypes() to call them. ' + | |
| 4842 | + 'Read more at http://fb.me/use-check-prop-types' | |
| 4843 | + ); | |
| 4844 | + err.name = 'Invariant Violation'; | |
| 4845 | + throw err; | |
| 4846 | + }; | |
| 4847 | + shim.isRequired = shim; | |
| 4848 | + function getShim() { | |
| 4849 | + return shim; | |
| 4850 | + }; | |
| 4851 | + // Important! | |
| 4852 | + // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`. | |
| 4853 | + var ReactPropTypes = { | |
| 4854 | + array: shim, | |
| 4855 | + bool: shim, | |
| 4856 | + func: shim, | |
| 4857 | + number: shim, | |
| 4858 | + object: shim, | |
| 4859 | + string: shim, | |
| 4860 | + symbol: shim, | |
| 4754 | 4861 | |
| 4862 | + any: shim, | |
| 4863 | + arrayOf: getShim, | |
| 4864 | + element: shim, | |
| 4865 | + elementType: shim, | |
| 4866 | + instanceOf: getShim, | |
| 4867 | + node: shim, | |
| 4868 | + objectOf: getShim, | |
| 4869 | + oneOf: getShim, | |
| 4870 | + oneOfType: getShim, | |
| 4871 | + shape: getShim, | |
| 4872 | + exact: getShim, | |
| 4755 | 4873 | |
| 4756 | -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 4757 | -Object.defineProperty(exports, "__esModule", ({ | |
| 4758 | - value: true | |
| 4759 | -})); | |
| 4760 | -exports["default"] = Promotion; | |
| 4761 | -var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react")); | |
| 4762 | -var _allPartsButton = _interopRequireDefault(__webpack_require__(/*! ../organisms/all-parts-button */ "../app/modules/site-editor/assets/js/organisms/all-parts-button.js")); | |
| 4763 | -var _button = _interopRequireDefault(__webpack_require__(/*! elementor-app/ui/molecules/button */ "../app/assets/js/ui/molecules/button.js")); | |
| 4764 | -var _cardOverlay = _interopRequireDefault(__webpack_require__(/*! elementor-app/ui/card/card-overlay */ "../app/assets/js/ui/card/card-overlay.js")); | |
| 4765 | -var _grid = _interopRequireDefault(__webpack_require__(/*! elementor-app/ui/grid/grid */ "../app/assets/js/ui/grid/grid.js")); | |
| 4766 | -var _heading = _interopRequireDefault(__webpack_require__(/*! elementor-app/ui/atoms/heading */ "../app/assets/js/ui/atoms/heading.js")); | |
| 4767 | -var _layout = _interopRequireDefault(__webpack_require__(/*! ../templates/layout */ "../app/modules/site-editor/assets/js/templates/layout.js")); | |
| 4768 | -var _siteParts = _interopRequireDefault(__webpack_require__(/*! ../organisms/site-parts */ "../app/modules/site-editor/assets/js/organisms/site-parts.js")); | |
| 4769 | -var _text = _interopRequireDefault(__webpack_require__(/*! elementor-app/ui/atoms/text */ "../app/assets/js/ui/atoms/text.js")); | |
| 4770 | -__webpack_require__(/*! ./promotion.scss */ "../app/modules/site-editor/assets/js/pages/promotion.scss"); | |
| 4771 | -function Promotion() { | |
| 4772 | - var promotionUrl = elementorAppConfig.promotion.upgrade_url || 'https://go.elementor.com/go-pro-theme-builder/', | |
| 4773 | - PromotionHoverElement = function PromotionHoverElement(props) { | |
| 4774 | - var promotionUrlWithType = "".concat(promotionUrl, "?type=").concat(props.type); | |
| 4775 | - return /*#__PURE__*/_react.default.createElement(_cardOverlay.default, { | |
| 4776 | - className: "e-site-editor__promotion-overlay" | |
| 4777 | - }, /*#__PURE__*/_react.default.createElement("a", { | |
| 4778 | - className: "e-site-editor__promotion-overlay__link", | |
| 4779 | - target: "_blank", | |
| 4780 | - rel: "noopener noreferrer", | |
| 4781 | - href: promotionUrlWithType | |
| 4782 | - }, /*#__PURE__*/_react.default.createElement("i", { | |
| 4783 | - className: "e-site-editor__promotion-overlay__icon eicon-lock" | |
| 4784 | - }), /*#__PURE__*/_react.default.createElement(_button.default, { | |
| 4785 | - size: "sm", | |
| 4786 | - color: "brand", | |
| 4787 | - variant: "contained", | |
| 4788 | - text: __('Upgrade', 'elementor') | |
| 4789 | - }))); | |
| 4790 | - }; | |
| 4791 | - PromotionHoverElement.propTypes = { | |
| 4792 | - className: PropTypes.string, | |
| 4793 | - type: PropTypes.string.isRequired | |
| 4874 | + checkPropTypes: emptyFunctionWithReset, | |
| 4875 | + resetWarningCache: emptyFunction | |
| 4794 | 4876 | }; |
| 4795 | - return /*#__PURE__*/_react.default.createElement(_layout.default, { | |
| 4796 | - allPartsButton: /*#__PURE__*/_react.default.createElement(_allPartsButton.default, { | |
| 4797 | - promotion: true | |
| 4798 | - }), | |
| 4799 | - promotion: true | |
| 4800 | - }, /*#__PURE__*/_react.default.createElement("section", { | |
| 4801 | - className: "e-site-editor__promotion" | |
| 4802 | - }, /*#__PURE__*/_react.default.createElement(_grid.default, { | |
| 4803 | - container: true, | |
| 4804 | - className: "page-header" | |
| 4805 | - }, /*#__PURE__*/_react.default.createElement(_grid.default, { | |
| 4806 | - item: true, | |
| 4807 | - sm: 7, | |
| 4808 | - justify: "end" | |
| 4809 | - }, /*#__PURE__*/_react.default.createElement(_heading.default, { | |
| 4810 | - variant: "h1" | |
| 4811 | - }, __('Customize every part of your site', 'elementor')), /*#__PURE__*/_react.default.createElement(_text.default, null, __('Get total control, consistency and a faster workflow by designing the recurring parts that make up a complete website like the Header & Footer, Archive, 404, WooCommerce pages and more.', 'elementor'))), /*#__PURE__*/_react.default.createElement(_grid.default, { | |
| 4812 | - item: true, | |
| 4813 | - container: true, | |
| 4814 | - justify: "end", | |
| 4815 | - alignItems: "start", | |
| 4816 | - sm: 5 | |
| 4817 | - }, /*#__PURE__*/_react.default.createElement(_button.default, { | |
| 4818 | - size: "sm", | |
| 4819 | - color: "cta", | |
| 4820 | - variant: "contained", | |
| 4821 | - url: promotionUrl, | |
| 4822 | - target: "_blank", | |
| 4823 | - text: __('Upgrade Now', 'elementor') | |
| 4824 | - }))), /*#__PURE__*/_react.default.createElement("hr", { | |
| 4825 | - className: "eps-separator" | |
| 4826 | - }), /*#__PURE__*/_react.default.createElement(_siteParts.default, { | |
| 4827 | - hoverElement: PromotionHoverElement | |
| 4828 | - }))); | |
| 4829 | -} | |
| 4830 | 4877 | |
| 4831 | -/***/ }), | |
| 4878 | + ReactPropTypes.PropTypes = ReactPropTypes; | |
| 4832 | 4879 | |
| 4833 | -/***/ "../app/modules/site-editor/assets/js/pages/promotion.scss": | |
| 4834 | -/*!*****************************************************************!*\ | |
| 4835 | - !*** ../app/modules/site-editor/assets/js/pages/promotion.scss ***! | |
| 4836 | - \*****************************************************************/ | |
| 4837 | -/***/ (() => { | |
| 4880 | + return ReactPropTypes; | |
| 4881 | +}; | |
| 4838 | 4882 | |
| 4839 | 4883 | |
| 4840 | - | |
| 4841 | 4884 | /***/ }), |
| 4885 | +/* 326 */ | |
| 4886 | +/***/ (function(module, exports, __webpack_require__) { | |
| 4842 | 4887 | |
| 4843 | -/***/ "../app/modules/site-editor/assets/js/templates/layout.js": | |
| 4844 | -/*!****************************************************************!*\ | |
| 4845 | - !*** ../app/modules/site-editor/assets/js/templates/layout.js ***! | |
| 4846 | - \****************************************************************/ | |
| 4847 | -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 4848 | - | |
| 4849 | 4888 | "use strict"; |
| 4850 | -/* provided dependency */ var __ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n")["__"]; | |
| 4851 | -/* provided dependency */ var PropTypes = __webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js"); | |
| 4889 | +/** | |
| 4890 | + * Copyright (c) 2013-present, Facebook, Inc. | |
| 4891 | + * | |
| 4892 | + * This source code is licensed under the MIT license found in the | |
| 4893 | + * LICENSE file in the root directory of this source tree. | |
| 4894 | + */ | |
| 4852 | 4895 | |
| 4853 | 4896 | |
| 4854 | -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 | -Object.defineProperty(exports, "__esModule", ({ | |
| 4857 | - value: true | |
| 4858 | -})); | |
| 4859 | -exports["default"] = Layout; | |
| 4860 | -var _react = _interopRequireWildcard(__webpack_require__(/*! react */ "react")); | |
| 4861 | -var _page = _interopRequireDefault(__webpack_require__(/*! elementor-app/layout/page */ "../app/assets/js/layout/page.js")); | |
| 4862 | -var _menu = _interopRequireDefault(__webpack_require__(/*! ../organisms/menu */ "../app/modules/site-editor/assets/js/organisms/menu.js")); | |
| 4863 | -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 | -__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 | -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]); | |
| 4891 | - return /*#__PURE__*/_react.default.createElement(_templateTypes.default, null, /*#__PURE__*/_react.default.createElement(_page.default, config)); | |
| 4892 | -} | |
| 4893 | -Layout.propTypes = { | |
| 4894 | - headerButtons: PropTypes.arrayOf(PropTypes.object), | |
| 4895 | - allPartsButton: PropTypes.element.isRequired, | |
| 4896 | - children: PropTypes.object.isRequired, | |
| 4897 | - promotion: PropTypes.bool, | |
| 4898 | - titleRedirectRoute: PropTypes.string | |
| 4899 | -}; | |
| 4900 | -Layout.defaultProps = { | |
| 4901 | - headerButtons: [] | |
| 4902 | -}; | |
| 4903 | 4897 | |
| 4904 | -/***/ }), | |
| 4898 | +var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED'; | |
| 4905 | 4899 | |
| 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 | -/***/ (() => { | |
| 4900 | +module.exports = ReactPropTypesSecret; | |
| 4911 | 4901 | |
| 4912 | 4902 | |
| 4913 | - | |
| 4914 | 4903 | /***/ }), |
| 4904 | +/* 327 */, | |
| 4905 | +/* 328 */, | |
| 4906 | +/* 329 */, | |
| 4907 | +/* 330 */, | |
| 4908 | +/* 331 */, | |
| 4909 | +/* 332 */, | |
| 4910 | +/* 333 */, | |
| 4911 | +/* 334 */, | |
| 4912 | +/* 335 */, | |
| 4913 | +/* 336 */ | |
| 4914 | +/***/ (function(module, exports, __webpack_require__) { | |
| 4915 | 4915 | |
| 4916 | -/***/ "../app/modules/site-editor/assets/scss/loading.scss": | |
| 4917 | -/*!***********************************************************!*\ | |
| 4918 | - !*** ../app/modules/site-editor/assets/scss/loading.scss ***! | |
| 4919 | - \***********************************************************/ | |
| 4920 | -/***/ (() => { | |
| 4916 | +"use strict"; | |
| 4917 | +/* WEBPACK VAR INJECTION */(function(React, PropTypes) { | |
| 4921 | 4918 | |
| 4919 | +var _Object$defineProperty = __webpack_require__(1); | |
| 4922 | 4920 | |
| 4921 | +_Object$defineProperty(exports, "__esModule", { | |
| 4922 | + value: true | |
| 4923 | +}); | |
| 4923 | 4924 | |
| 4924 | -/***/ }), | |
| 4925 | +exports.default = Heading; | |
| 4925 | 4926 | |
| 4926 | -/***/ "../node_modules/@babel/runtime/helpers/OverloadYield.js": | |
| 4927 | -/*!***************************************************************!*\ | |
| 4928 | - !*** ../node_modules/@babel/runtime/helpers/OverloadYield.js ***! | |
| 4929 | - \***************************************************************/ | |
| 4930 | -/***/ ((module) => { | |
| 4927 | +__webpack_require__(135); | |
| 4931 | 4928 | |
| 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; | |
| 4929 | +function Heading(props) { | |
| 4930 | + var baseClassName = 'eps', | |
| 4931 | + allowedTags = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6'], | |
| 4932 | + classes = [props.className], | |
| 4933 | + tagName = allowedTags.includes(props.tag) ? props.tag : 'h1'; | |
| 4936 | 4934 | |
| 4937 | -/***/ }), | |
| 4935 | + if (props.variant) { | |
| 4936 | + classes.push(baseClassName + '-' + props.variant); | |
| 4937 | + } | |
| 4938 | 4938 | |
| 4939 | -/***/ "../node_modules/@babel/runtime/helpers/arrayLikeToArray.js": | |
| 4940 | -/*!******************************************************************!*\ | |
| 4941 | - !*** ../node_modules/@babel/runtime/helpers/arrayLikeToArray.js ***! | |
| 4942 | - \******************************************************************/ | |
| 4943 | -/***/ ((module) => { | |
| 4939 | + return React.createElement(tagName, { | |
| 4940 | + className: classes.filter(function (classItem) { | |
| 4941 | + return classItem; | |
| 4942 | + }).join(' ') | |
| 4943 | + }, props.children); | |
| 4944 | +} | |
| 4944 | 4945 | |
| 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; | |
| 4946 | +Heading.propTypes = { | |
| 4947 | + className: PropTypes.string, | |
| 4948 | + children: PropTypes.oneOfType([PropTypes.string, PropTypes.object, PropTypes.arrayOf(PropTypes.object)]).isRequired, | |
| 4949 | + tag: PropTypes.string, | |
| 4950 | + variant: PropTypes.string.isRequired | |
| 4951 | +}; | |
| 4952 | +Heading.defaultProps = { | |
| 4953 | + className: '' | |
| 4954 | +}; | |
| 4955 | +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(11), __webpack_require__(41))) | |
| 4951 | 4956 | |
| 4952 | 4957 | /***/ }), |
| 4958 | +/* 337 */, | |
| 4959 | +/* 338 */, | |
| 4960 | +/* 339 */, | |
| 4961 | +/* 340 */ | |
| 4962 | +/***/ (function(module, __webpack_exports__, __webpack_require__) { | |
| 4953 | 4963 | |
| 4954 | -/***/ "../node_modules/@babel/runtime/helpers/arrayWithHoles.js": | |
| 4955 | -/*!****************************************************************!*\ | |
| 4956 | - !*** ../node_modules/@babel/runtime/helpers/arrayWithHoles.js ***! | |
| 4957 | - \****************************************************************/ | |
| 4958 | -/***/ ((module) => { | |
| 4964 | +"use strict"; | |
| 4965 | +// ESM COMPAT FLAG | |
| 4966 | +__webpack_require__.r(__webpack_exports__); | |
| 4959 | 4967 | |
| 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; | |
| 4968 | +// EXPORTS | |
| 4969 | +__webpack_require__.d(__webpack_exports__, "Link", function() { return /* binding */ Link; }); | |
| 4970 | +__webpack_require__.d(__webpack_exports__, "Location", function() { return /* binding */ es_Location; }); | |
| 4971 | +__webpack_require__.d(__webpack_exports__, "LocationProvider", function() { return /* binding */ es_LocationProvider; }); | |
| 4972 | +__webpack_require__.d(__webpack_exports__, "Match", function() { return /* binding */ es_Match; }); | |
| 4973 | +__webpack_require__.d(__webpack_exports__, "Redirect", function() { return /* binding */ es_Redirect; }); | |
| 4974 | +__webpack_require__.d(__webpack_exports__, "Router", function() { return /* binding */ es_Router; }); | |
| 4975 | +__webpack_require__.d(__webpack_exports__, "ServerLocation", function() { return /* binding */ es_ServerLocation; }); | |
| 4976 | +__webpack_require__.d(__webpack_exports__, "createHistory", function() { return /* reexport */ createHistory; }); | |
| 4977 | +__webpack_require__.d(__webpack_exports__, "createMemorySource", function() { return /* reexport */ createMemorySource; }); | |
| 4978 | +__webpack_require__.d(__webpack_exports__, "isRedirect", function() { return /* binding */ isRedirect; }); | |
| 4979 | +__webpack_require__.d(__webpack_exports__, "navigate", function() { return /* reexport */ history_navigate; }); | |
| 4980 | +__webpack_require__.d(__webpack_exports__, "redirectTo", function() { return /* binding */ redirectTo; }); | |
| 4981 | +__webpack_require__.d(__webpack_exports__, "globalHistory", function() { return /* reexport */ globalHistory; }); | |
| 4982 | +__webpack_require__.d(__webpack_exports__, "matchPath", function() { return /* reexport */ utils_match; }); | |
| 4983 | +__webpack_require__.d(__webpack_exports__, "useLocation", function() { return /* binding */ es_useLocation; }); | |
| 4984 | +__webpack_require__.d(__webpack_exports__, "useNavigate", function() { return /* binding */ es_useNavigate; }); | |
| 4985 | +__webpack_require__.d(__webpack_exports__, "useParams", function() { return /* binding */ es_useParams; }); | |
| 4986 | +__webpack_require__.d(__webpack_exports__, "useMatch", function() { return /* binding */ es_useMatch; }); | |
| 4964 | 4987 | |
| 4965 | -/***/ }), | |
| 4988 | +// EXTERNAL MODULE: external "React" | |
| 4989 | +var external_React_ = __webpack_require__(11); | |
| 4990 | +var external_React_default = /*#__PURE__*/__webpack_require__.n(external_React_); | |
| 4966 | 4991 | |
| 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__) => { | |
| 4992 | +// EXTERNAL MODULE: ../node_modules/prop-types/index.js | |
| 4993 | +var prop_types = __webpack_require__(41); | |
| 4972 | 4994 | |
| 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; | |
| 4995 | +// EXTERNAL MODULE: ../node_modules/invariant/browser.js | |
| 4996 | +var browser = __webpack_require__(276); | |
| 4997 | +var browser_default = /*#__PURE__*/__webpack_require__.n(browser); | |
| 4978 | 4998 | |
| 4979 | -/***/ }), | |
| 4999 | +// EXTERNAL MODULE: ../node_modules/create-react-context/lib/index.js | |
| 5000 | +var lib = __webpack_require__(411); | |
| 5001 | +var lib_default = /*#__PURE__*/__webpack_require__.n(lib); | |
| 4980 | 5002 | |
| 4981 | -/***/ "../node_modules/@babel/runtime/helpers/assertThisInitialized.js": | |
| 4982 | -/*!***********************************************************************!*\ | |
| 4983 | - !*** ../node_modules/@babel/runtime/helpers/assertThisInitialized.js ***! | |
| 4984 | - \***********************************************************************/ | |
| 4985 | -/***/ ((module) => { | |
| 5003 | +// CONCATENATED MODULE: ../node_modules/react-lifecycles-compat/react-lifecycles-compat.es.js | |
| 5004 | +/** | |
| 5005 | + * Copyright (c) 2013-present, Facebook, Inc. | |
| 5006 | + * | |
| 5007 | + * This source code is licensed under the MIT license found in the | |
| 5008 | + * LICENSE file in the root directory of this source tree. | |
| 5009 | + */ | |
| 4986 | 5010 | |
| 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; | |
| 5011 | +function componentWillMount() { | |
| 5012 | + // Call this.constructor.gDSFP to support sub-classes. | |
| 5013 | + var state = this.constructor.getDerivedStateFromProps(this.props, this.state); | |
| 5014 | + if (state !== null && state !== undefined) { | |
| 5015 | + this.setState(state); | |
| 5016 | + } | |
| 4990 | 5017 | } |
| 4991 | -module.exports = _assertThisInitialized, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 4992 | 5018 | |
| 4993 | -/***/ }), | |
| 5019 | +function componentWillReceiveProps(nextProps) { | |
| 5020 | + // Call this.constructor.gDSFP to support sub-classes. | |
| 5021 | + // Use the setState() updater to ensure state isn't stale in certain edge cases. | |
| 5022 | + function updater(prevState) { | |
| 5023 | + var state = this.constructor.getDerivedStateFromProps(nextProps, prevState); | |
| 5024 | + return state !== null && state !== undefined ? state : null; | |
| 5025 | + } | |
| 5026 | + // Binding "this" is important for shallow renderer support. | |
| 5027 | + this.setState(updater.bind(this)); | |
| 5028 | +} | |
| 4994 | 5029 | |
| 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) { | |
| 5030 | +function componentWillUpdate(nextProps, nextState) { | |
| 5002 | 5031 | try { |
| 5003 | - var i = n[a](c), | |
| 5004 | - u = i.value; | |
| 5005 | - } catch (n) { | |
| 5006 | - return void e(n); | |
| 5032 | + var prevProps = this.props; | |
| 5033 | + var prevState = this.state; | |
| 5034 | + this.props = nextProps; | |
| 5035 | + this.state = nextState; | |
| 5036 | + this.__reactInternalSnapshotFlag = true; | |
| 5037 | + this.__reactInternalSnapshot = this.getSnapshotBeforeUpdate( | |
| 5038 | + prevProps, | |
| 5039 | + prevState | |
| 5040 | + ); | |
| 5041 | + } finally { | |
| 5042 | + this.props = prevProps; | |
| 5043 | + this.state = prevState; | |
| 5007 | 5044 | } |
| 5008 | - i.done ? t(u) : Promise.resolve(u).then(r, o); | |
| 5009 | 5045 | } |
| 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 | 5046 | |
| 5028 | -/***/ }), | |
| 5047 | +// React may warn about cWM/cWRP/cWU methods being deprecated. | |
| 5048 | +// Add a flag to suppress these warnings for this special case. | |
| 5049 | +componentWillMount.__suppressDeprecationWarning = true; | |
| 5050 | +componentWillReceiveProps.__suppressDeprecationWarning = true; | |
| 5051 | +componentWillUpdate.__suppressDeprecationWarning = true; | |
| 5029 | 5052 | |
| 5030 | -/***/ "../node_modules/@babel/runtime/helpers/classCallCheck.js": | |
| 5031 | -/*!****************************************************************!*\ | |
| 5032 | - !*** ../node_modules/@babel/runtime/helpers/classCallCheck.js ***! | |
| 5033 | - \****************************************************************/ | |
| 5034 | -/***/ ((module) => { | |
| 5053 | +function polyfill(Component) { | |
| 5054 | + var prototype = Component.prototype; | |
| 5035 | 5055 | |
| 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; | |
| 5056 | + if (!prototype || !prototype.isReactComponent) { | |
| 5057 | + throw new Error('Can only polyfill class components'); | |
| 5058 | + } | |
| 5040 | 5059 | |
| 5041 | -/***/ }), | |
| 5060 | + if ( | |
| 5061 | + typeof Component.getDerivedStateFromProps !== 'function' && | |
| 5062 | + typeof prototype.getSnapshotBeforeUpdate !== 'function' | |
| 5063 | + ) { | |
| 5064 | + return Component; | |
| 5065 | + } | |
| 5042 | 5066 | |
| 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__) => { | |
| 5067 | + // If new component APIs are defined, "unsafe" lifecycles won't be called. | |
| 5068 | + // Error if any of these lifecycles are present, | |
| 5069 | + // Because they would work differently between older and newer (16.3+) versions of React. | |
| 5070 | + var foundWillMountName = null; | |
| 5071 | + var foundWillReceivePropsName = null; | |
| 5072 | + var foundWillUpdateName = null; | |
| 5073 | + if (typeof prototype.componentWillMount === 'function') { | |
| 5074 | + foundWillMountName = 'componentWillMount'; | |
| 5075 | + } else if (typeof prototype.UNSAFE_componentWillMount === 'function') { | |
| 5076 | + foundWillMountName = 'UNSAFE_componentWillMount'; | |
| 5077 | + } | |
| 5078 | + if (typeof prototype.componentWillReceiveProps === 'function') { | |
| 5079 | + foundWillReceivePropsName = 'componentWillReceiveProps'; | |
| 5080 | + } else if (typeof prototype.UNSAFE_componentWillReceiveProps === 'function') { | |
| 5081 | + foundWillReceivePropsName = 'UNSAFE_componentWillReceiveProps'; | |
| 5082 | + } | |
| 5083 | + if (typeof prototype.componentWillUpdate === 'function') { | |
| 5084 | + foundWillUpdateName = 'componentWillUpdate'; | |
| 5085 | + } else if (typeof prototype.UNSAFE_componentWillUpdate === 'function') { | |
| 5086 | + foundWillUpdateName = 'UNSAFE_componentWillUpdate'; | |
| 5087 | + } | |
| 5088 | + if ( | |
| 5089 | + foundWillMountName !== null || | |
| 5090 | + foundWillReceivePropsName !== null || | |
| 5091 | + foundWillUpdateName !== null | |
| 5092 | + ) { | |
| 5093 | + var componentName = Component.displayName || Component.name; | |
| 5094 | + var newApiName = | |
| 5095 | + typeof Component.getDerivedStateFromProps === 'function' | |
| 5096 | + ? 'getDerivedStateFromProps()' | |
| 5097 | + : 'getSnapshotBeforeUpdate()'; | |
| 5048 | 5098 | |
| 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); | |
| 5099 | + throw Error( | |
| 5100 | + 'Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n' + | |
| 5101 | + componentName + | |
| 5102 | + ' uses ' + | |
| 5103 | + newApiName + | |
| 5104 | + ' but also contains the following legacy lifecycles:' + | |
| 5105 | + (foundWillMountName !== null ? '\n ' + foundWillMountName : '') + | |
| 5106 | + (foundWillReceivePropsName !== null | |
| 5107 | + ? '\n ' + foundWillReceivePropsName | |
| 5108 | + : '') + | |
| 5109 | + (foundWillUpdateName !== null ? '\n ' + foundWillUpdateName : '') + | |
| 5110 | + '\n\nThe above lifecycles should be removed. Learn more about this warning here:\n' + | |
| 5111 | + 'https://fb.me/react-async-component-lifecycle-hooks' | |
| 5112 | + ); | |
| 5054 | 5113 | } |
| 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 | 5114 | |
| 5063 | -/***/ }), | |
| 5115 | + // React <= 16.2 does not support static getDerivedStateFromProps. | |
| 5116 | + // As a workaround, use cWM and cWRP to invoke the new static lifecycle. | |
| 5117 | + // Newer versions of React will ignore these lifecycles if gDSFP exists. | |
| 5118 | + if (typeof Component.getDerivedStateFromProps === 'function') { | |
| 5119 | + prototype.componentWillMount = componentWillMount; | |
| 5120 | + prototype.componentWillReceiveProps = componentWillReceiveProps; | |
| 5121 | + } | |
| 5064 | 5122 | |
| 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]); | |
| 5123 | + // React <= 16.2 does not support getSnapshotBeforeUpdate. | |
| 5124 | + // As a workaround, use cWU to invoke the new lifecycle. | |
| 5125 | + // Newer versions of React will ignore that lifecycle if gSBU exists. | |
| 5126 | + if (typeof prototype.getSnapshotBeforeUpdate === 'function') { | |
| 5127 | + if (typeof prototype.componentDidUpdate !== 'function') { | |
| 5128 | + throw new Error( | |
| 5129 | + 'Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype' | |
| 5130 | + ); | |
| 5095 | 5131 | } |
| 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 | 5132 | |
| 5101 | -/***/ }), | |
| 5133 | + prototype.componentWillUpdate = componentWillUpdate; | |
| 5102 | 5134 | |
| 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__) => { | |
| 5135 | + var componentDidUpdate = prototype.componentDidUpdate; | |
| 5108 | 5136 | |
| 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; | |
| 5137 | + prototype.componentDidUpdate = function componentDidUpdatePolyfill( | |
| 5138 | + prevProps, | |
| 5139 | + prevState, | |
| 5140 | + maybeSnapshot | |
| 5141 | + ) { | |
| 5142 | + // 16.3+ will not execute our will-update method; | |
| 5143 | + // It will pass a snapshot value to did-update though. | |
| 5144 | + // Older versions will require our polyfilled will-update value. | |
| 5145 | + // We need to handle both cases, but can't just check for the presence of "maybeSnapshot", | |
| 5146 | + // Because for <= 15.x versions this might be a "prevContext" object. | |
| 5147 | + // We also can't just check "__reactInternalSnapshot", | |
| 5148 | + // Because get-snapshot might return a falsy value. | |
| 5149 | + // So check for the explicit __reactInternalSnapshotFlag flag to determine behavior. | |
| 5150 | + var snapshot = this.__reactInternalSnapshotFlag | |
| 5151 | + ? this.__reactInternalSnapshot | |
| 5152 | + : maybeSnapshot; | |
| 5120 | 5153 | |
| 5121 | -/***/ }), | |
| 5154 | + componentDidUpdate.call(this, prevProps, prevState, snapshot); | |
| 5155 | + }; | |
| 5156 | + } | |
| 5122 | 5157 | |
| 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); | |
| 5158 | + return Component; | |
| 5133 | 5159 | } |
| 5134 | -module.exports = _getPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 5135 | 5160 | |
| 5136 | -/***/ }), | |
| 5137 | 5161 | |
| 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 | 5162 | |
| 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; | |
| 5163 | +// CONCATENATED MODULE: ../node_modules/@reach/router/es/lib/utils.js | |
| 5158 | 5164 | |
| 5159 | -/***/ }), | |
| 5160 | 5165 | |
| 5161 | -/***/ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js": | |
| 5162 | -/*!***********************************************************************!*\ | |
| 5163 | - !*** ../node_modules/@babel/runtime/helpers/interopRequireDefault.js ***! | |
| 5164 | - \***********************************************************************/ | |
| 5165 | -/***/ ((module) => { | |
| 5166 | +//////////////////////////////////////////////////////////////////////////////// | |
| 5167 | +// startsWith(string, search) - Check if `string` starts with `search` | |
| 5168 | +var startsWith = function startsWith(string, search) { | |
| 5169 | + return string.substr(0, search.length) === search; | |
| 5170 | +}; | |
| 5166 | 5171 | |
| 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; | |
| 5172 | +//////////////////////////////////////////////////////////////////////////////// | |
| 5173 | +// pick(routes, uri) | |
| 5174 | +// | |
| 5175 | +// Ranks and picks the best route to match. Each segment gets the highest | |
| 5176 | +// amount of points, then the type of segment gets an additional amount of | |
| 5177 | +// points where | |
| 5178 | +// | |
| 5179 | +// static > dynamic > splat > root | |
| 5180 | +// | |
| 5181 | +// This way we don't have to worry about the order of our routes, let the | |
| 5182 | +// computers do it. | |
| 5183 | +// | |
| 5184 | +// A route looks like this | |
| 5185 | +// | |
| 5186 | +// { path, default, value } | |
| 5187 | +// | |
| 5188 | +// And a returned match looks like: | |
| 5189 | +// | |
| 5190 | +// { route, params, uri } | |
| 5191 | +// | |
| 5192 | +// I know, I should use TypeScript not comments for these types. | |
| 5193 | +var utils_pick = function pick(routes, uri) { | |
| 5194 | + var match = void 0; | |
| 5195 | + var default_ = void 0; | |
| 5173 | 5196 | |
| 5174 | -/***/ }), | |
| 5197 | + var _uri$split = uri.split("?"), | |
| 5198 | + uriPathname = _uri$split[0]; | |
| 5175 | 5199 | |
| 5176 | -/***/ "../node_modules/@babel/runtime/helpers/iterableToArray.js": | |
| 5177 | -/*!*****************************************************************!*\ | |
| 5178 | - !*** ../node_modules/@babel/runtime/helpers/iterableToArray.js ***! | |
| 5179 | - \*****************************************************************/ | |
| 5180 | -/***/ ((module) => { | |
| 5200 | + var uriSegments = segmentize(uriPathname); | |
| 5201 | + var isRootUri = uriSegments[0] === ""; | |
| 5202 | + var ranked = rankRoutes(routes); | |
| 5181 | 5203 | |
| 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; | |
| 5204 | + for (var i = 0, l = ranked.length; i < l; i++) { | |
| 5205 | + var missed = false; | |
| 5206 | + var route = ranked[i].route; | |
| 5186 | 5207 | |
| 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 | - } | |
| 5208 | + if (route.default) { | |
| 5209 | + default_ = { | |
| 5210 | + route: route, | |
| 5211 | + params: {}, | |
| 5212 | + uri: uri | |
| 5213 | + }; | |
| 5214 | + continue; | |
| 5218 | 5215 | } |
| 5219 | - return a; | |
| 5220 | - } | |
| 5221 | -} | |
| 5222 | -module.exports = _iterableToArrayLimit, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 5223 | 5216 | |
| 5224 | -/***/ }), | |
| 5217 | + var routeSegments = segmentize(route.path); | |
| 5218 | + var params = {}; | |
| 5219 | + var max = Math.max(uriSegments.length, routeSegments.length); | |
| 5220 | + var index = 0; | |
| 5225 | 5221 | |
| 5226 | -/***/ "../node_modules/@babel/runtime/helpers/nonIterableRest.js": | |
| 5227 | -/*!*****************************************************************!*\ | |
| 5228 | - !*** ../node_modules/@babel/runtime/helpers/nonIterableRest.js ***! | |
| 5229 | - \*****************************************************************/ | |
| 5230 | -/***/ ((module) => { | |
| 5222 | + for (; index < max; index++) { | |
| 5223 | + var routeSegment = routeSegments[index]; | |
| 5224 | + var uriSegment = uriSegments[index]; | |
| 5231 | 5225 | |
| 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; | |
| 5226 | + if (isSplat(routeSegment)) { | |
| 5227 | + // Hit a splat, just grab the rest, and return a match | |
| 5228 | + // uri: /files/documents/work | |
| 5229 | + // route: /files/* | |
| 5230 | + var param = routeSegment.slice(1) || "*"; | |
| 5231 | + params[param] = uriSegments.slice(index).map(decodeURIComponent).join("/"); | |
| 5232 | + break; | |
| 5233 | + } | |
| 5236 | 5234 | |
| 5237 | -/***/ }), | |
| 5235 | + if (uriSegment === undefined) { | |
| 5236 | + // URI is shorter than the route, no match | |
| 5237 | + // uri: /users | |
| 5238 | + // route: /users/:userId | |
| 5239 | + missed = true; | |
| 5240 | + break; | |
| 5241 | + } | |
| 5238 | 5242 | |
| 5239 | -/***/ "../node_modules/@babel/runtime/helpers/nonIterableSpread.js": | |
| 5240 | -/*!*******************************************************************!*\ | |
| 5241 | - !*** ../node_modules/@babel/runtime/helpers/nonIterableSpread.js ***! | |
| 5242 | - \*******************************************************************/ | |
| 5243 | -/***/ ((module) => { | |
| 5243 | + var dynamicMatch = paramRe.exec(routeSegment); | |
| 5244 | 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; | |
| 5245 | + if (dynamicMatch && !isRootUri) { | |
| 5246 | + var matchIsNotReserved = reservedNames.indexOf(dynamicMatch[1]) === -1; | |
| 5247 | + !matchIsNotReserved ? false ? undefined : browser_default()(false) : void 0; | |
| 5248 | + var value = decodeURIComponent(uriSegment); | |
| 5249 | + params[dynamicMatch[1]] = value; | |
| 5250 | + } else if (routeSegment !== uriSegment) { | |
| 5251 | + // Current segments don't match, not dynamic, not splat, so no match | |
| 5252 | + // uri: /users/123/settings | |
| 5253 | + // route: /users/:id/profile | |
| 5254 | + missed = true; | |
| 5255 | + break; | |
| 5256 | + } | |
| 5257 | + } | |
| 5249 | 5258 | |
| 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]); | |
| 5259 | + if (!missed) { | |
| 5260 | + match = { | |
| 5261 | + route: route, | |
| 5262 | + params: params, | |
| 5263 | + uri: "/" + uriSegments.slice(0, index).join("/") | |
| 5264 | + }; | |
| 5265 | + break; | |
| 5266 | + } | |
| 5267 | 5267 | } |
| 5268 | - return i; | |
| 5269 | -} | |
| 5270 | -module.exports = _objectWithoutProperties, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 5271 | 5268 | |
| 5272 | -/***/ }), | |
| 5269 | + return match || default_ || null; | |
| 5270 | +}; | |
| 5273 | 5271 | |
| 5274 | -/***/ "../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js": | |
| 5275 | -/*!******************************************************************************!*\ | |
| 5276 | - !*** ../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js ***! | |
| 5277 | - \******************************************************************************/ | |
| 5278 | -/***/ ((module) => { | |
| 5272 | +//////////////////////////////////////////////////////////////////////////////// | |
| 5273 | +// match(path, uri) - Matches just one path to a uri, also lol | |
| 5274 | +var utils_match = function match(path, uri) { | |
| 5275 | + return utils_pick([{ path: path }], uri); | |
| 5276 | +}; | |
| 5279 | 5277 | |
| 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]; | |
| 5278 | +//////////////////////////////////////////////////////////////////////////////// | |
| 5279 | +// resolve(to, basepath) | |
| 5280 | +// | |
| 5281 | +// Resolves URIs as though every path is a directory, no files. Relative URIs | |
| 5282 | +// in the browser can feel awkward because not only can you be "in a directory" | |
| 5283 | +// you can be "at a file", too. For example | |
| 5284 | +// | |
| 5285 | +// browserSpecResolve('foo', '/bar/') => /bar/foo | |
| 5286 | +// browserSpecResolve('foo', '/bar') => /foo | |
| 5287 | +// | |
| 5288 | +// But on the command line of a file system, it's not as complicated, you can't | |
| 5289 | +// `cd` from a file, only directories. This way, links have to know less about | |
| 5290 | +// their current path. To go deeper you can do this: | |
| 5291 | +// | |
| 5292 | +// <Link to="deeper"/> | |
| 5293 | +// // instead of | |
| 5294 | +// <Link to=`{${props.uri}/deeper}`/> | |
| 5295 | +// | |
| 5296 | +// Just like `cd`, if you want to go deeper from the command line, you do this: | |
| 5297 | +// | |
| 5298 | +// cd deeper | |
| 5299 | +// # not | |
| 5300 | +// cd $(pwd)/deeper | |
| 5301 | +// | |
| 5302 | +// By treating every path as a directory, linking to relative paths should | |
| 5303 | +// require less contextual information and (fingers crossed) be more intuitive. | |
| 5304 | +var resolve = function resolve(to, base) { | |
| 5305 | + // /foo/bar, /baz/qux => /foo/bar | |
| 5306 | + if (startsWith(to, "/")) { | |
| 5307 | + return to; | |
| 5286 | 5308 | } |
| 5287 | - return t; | |
| 5288 | -} | |
| 5289 | -module.exports = _objectWithoutPropertiesLoose, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 5290 | 5309 | |
| 5291 | -/***/ }), | |
| 5310 | + var _to$split = to.split("?"), | |
| 5311 | + toPathname = _to$split[0], | |
| 5312 | + toQuery = _to$split[1]; | |
| 5292 | 5313 | |
| 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__) => { | |
| 5314 | + var _base$split = base.split("?"), | |
| 5315 | + basePathname = _base$split[0]; | |
| 5298 | 5316 | |
| 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; | |
| 5317 | + var toSegments = segmentize(toPathname); | |
| 5318 | + var baseSegments = segmentize(basePathname); | |
| 5307 | 5319 | |
| 5308 | -/***/ }), | |
| 5320 | + // ?a=b, /users?b=c => /users?a=b | |
| 5321 | + if (toSegments[0] === "") { | |
| 5322 | + return addQuery(basePathname, toQuery); | |
| 5323 | + } | |
| 5309 | 5324 | |
| 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; | |
| 5325 | + // profile, /users/789 => /users/789/profile | |
| 5326 | + if (!startsWith(toSegments[0], ".")) { | |
| 5327 | + var pathname = baseSegments.concat(toSegments).join("/"); | |
| 5328 | + return addQuery((basePathname === "/" ? "" : "/") + pathname, toQuery); | |
| 5380 | 5329 | } |
| 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 | 5330 | |
| 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 | - } | |
| 5331 | + // ./ /users/123 => /users/123 | |
| 5332 | + // ../ /users/123 => /users | |
| 5333 | + // ../.. /users/123 => / | |
| 5334 | + // ../../one /a/b/c/d => /a/b/one | |
| 5335 | + // .././one /a/b/c/d => /a/b/c/one | |
| 5336 | + var allSegments = baseSegments.concat(toSegments); | |
| 5337 | + var segments = []; | |
| 5338 | + for (var i = 0, l = allSegments.length; i < l; i++) { | |
| 5339 | + var segment = allSegments[i]; | |
| 5340 | + if (segment === "..") segments.pop();else if (segment !== ".") segments.push(segment); | |
| 5465 | 5341 | } |
| 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 | 5342 | |
| 5480 | -/***/ }), | |
| 5343 | + return addQuery("/" + segments.join("/"), toQuery); | |
| 5344 | +}; | |
| 5481 | 5345 | |
| 5482 | -/***/ "../node_modules/@babel/runtime/helpers/regeneratorDefine.js": | |
| 5483 | -/*!*******************************************************************!*\ | |
| 5484 | - !*** ../node_modules/@babel/runtime/helpers/regeneratorDefine.js ***! | |
| 5485 | - \*******************************************************************/ | |
| 5486 | -/***/ ((module) => { | |
| 5346 | +//////////////////////////////////////////////////////////////////////////////// | |
| 5347 | +// insertParams(path, params) | |
| 5487 | 5348 | |
| 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; | |
| 5349 | +var insertParams = function insertParams(path, params) { | |
| 5350 | + var _path$split = path.split("?"), | |
| 5351 | + pathBase = _path$split[0], | |
| 5352 | + _path$split$ = _path$split[1], | |
| 5353 | + query = _path$split$ === undefined ? "" : _path$split$; | |
| 5510 | 5354 | |
| 5511 | -/***/ }), | |
| 5355 | + var segments = segmentize(pathBase); | |
| 5356 | + var constructedPath = "/" + segments.map(function (segment) { | |
| 5357 | + var match = paramRe.exec(segment); | |
| 5358 | + return match ? params[match[1]] : segment; | |
| 5359 | + }).join("/"); | |
| 5360 | + var _params$location = params.location; | |
| 5361 | + _params$location = _params$location === undefined ? {} : _params$location; | |
| 5362 | + var _params$location$sear = _params$location.search, | |
| 5363 | + search = _params$location$sear === undefined ? "" : _params$location$sear; | |
| 5512 | 5364 | |
| 5513 | -/***/ "../node_modules/@babel/runtime/helpers/regeneratorKeys.js": | |
| 5514 | -/*!*****************************************************************!*\ | |
| 5515 | - !*** ../node_modules/@babel/runtime/helpers/regeneratorKeys.js ***! | |
| 5516 | - \*****************************************************************/ | |
| 5517 | -/***/ ((module) => { | |
| 5365 | + var searchSplit = search.split("?")[1] || ""; | |
| 5366 | + constructedPath = addQuery(constructedPath, query, searchSplit); | |
| 5367 | + return constructedPath; | |
| 5368 | +}; | |
| 5518 | 5369 | |
| 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; | |
| 5370 | +var validateRedirect = function validateRedirect(from, to) { | |
| 5371 | + var filter = function filter(segment) { | |
| 5372 | + return isDynamic(segment); | |
| 5526 | 5373 | }; |
| 5527 | -} | |
| 5528 | -module.exports = _regeneratorKeys, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 5374 | + var fromString = segmentize(from).filter(filter).sort().join("/"); | |
| 5375 | + var toString = segmentize(to).filter(filter).sort().join("/"); | |
| 5376 | + return fromString === toString; | |
| 5377 | +}; | |
| 5529 | 5378 | |
| 5530 | -/***/ }), | |
| 5379 | +//////////////////////////////////////////////////////////////////////////////// | |
| 5380 | +// Junk | |
| 5381 | +var paramRe = /^:(.+)/; | |
| 5531 | 5382 | |
| 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__) => { | |
| 5383 | +var SEGMENT_POINTS = 4; | |
| 5384 | +var STATIC_POINTS = 3; | |
| 5385 | +var DYNAMIC_POINTS = 2; | |
| 5386 | +var SPLAT_PENALTY = 1; | |
| 5387 | +var ROOT_POINTS = 1; | |
| 5537 | 5388 | |
| 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"; | |
| 5389 | +var isRootSegment = function isRootSegment(segment) { | |
| 5390 | + return segment === ""; | |
| 5391 | +}; | |
| 5392 | +var isDynamic = function isDynamic(segment) { | |
| 5393 | + return paramRe.test(segment); | |
| 5394 | +}; | |
| 5395 | +var isSplat = function isSplat(segment) { | |
| 5396 | + return segment && segment[0] === "*"; | |
| 5397 | +}; | |
| 5547 | 5398 | |
| 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; | |
| 5399 | +var rankRoute = function rankRoute(route, index) { | |
| 5400 | + var score = route.default ? 0 : segmentize(route.path).reduce(function (score, segment) { | |
| 5401 | + score += SEGMENT_POINTS; | |
| 5402 | + 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; | |
| 5403 | + return score; | |
| 5404 | + }, 0); | |
| 5405 | + return { route: route, score: score, index: index }; | |
| 5406 | +}; | |
| 5615 | 5407 | |
| 5616 | -/***/ }), | |
| 5408 | +var rankRoutes = function rankRoutes(routes) { | |
| 5409 | + return routes.map(rankRoute).sort(function (a, b) { | |
| 5410 | + return a.score < b.score ? 1 : a.score > b.score ? -1 : a.index - b.index; | |
| 5411 | + }); | |
| 5412 | +}; | |
| 5617 | 5413 | |
| 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__) => { | |
| 5414 | +var segmentize = function segmentize(uri) { | |
| 5415 | + return uri | |
| 5416 | + // strip starting/ending slashes | |
| 5417 | + .replace(/(^\/+|\/+$)/g, "").split("/"); | |
| 5418 | +}; | |
| 5623 | 5419 | |
| 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 | - }; | |
| 5420 | +var addQuery = function addQuery(pathname) { | |
| 5421 | + for (var _len = arguments.length, query = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { | |
| 5422 | + query[_key - 1] = arguments[_key]; | |
| 5639 | 5423 | } |
| 5640 | - throw new TypeError(_typeof(e) + " is not iterable"); | |
| 5641 | -} | |
| 5642 | -module.exports = _regeneratorValues, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 5643 | 5424 | |
| 5644 | -/***/ }), | |
| 5425 | + query = query.filter(function (q) { | |
| 5426 | + return q && q.length > 0; | |
| 5427 | + }); | |
| 5428 | + return pathname + (query && query.length > 0 ? "?" + query.join("&") : ""); | |
| 5429 | +}; | |
| 5645 | 5430 | |
| 5646 | -/***/ "../node_modules/@babel/runtime/helpers/setPrototypeOf.js": | |
| 5647 | -/*!****************************************************************!*\ | |
| 5648 | - !*** ../node_modules/@babel/runtime/helpers/setPrototypeOf.js ***! | |
| 5649 | - \****************************************************************/ | |
| 5650 | -/***/ ((module) => { | |
| 5431 | +var reservedNames = ["uri", "path"]; | |
| 5651 | 5432 | |
| 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; | |
| 5433 | +/** | |
| 5434 | + * Shallow compares two objects. | |
| 5435 | + * @param {Object} obj1 The first object to compare. | |
| 5436 | + * @param {Object} obj2 The second object to compare. | |
| 5437 | + */ | |
| 5438 | +var shallowCompare = function shallowCompare(obj1, obj2) { | |
| 5439 | + var obj1Keys = Object.keys(obj1); | |
| 5440 | + return obj1Keys.length === Object.keys(obj2).length && obj1Keys.every(function (key) { | |
| 5441 | + return obj2.hasOwnProperty(key) && obj1[key] === obj2[key]; | |
| 5442 | + }); | |
| 5443 | +}; | |
| 5658 | 5444 | |
| 5659 | -/***/ }), | |
| 5445 | +//////////////////////////////////////////////////////////////////////////////// | |
| 5660 | 5446 | |
| 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__) => { | |
| 5447 | +// CONCATENATED MODULE: ../node_modules/@reach/router/es/lib/history.js | |
| 5448 | +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; }; | |
| 5666 | 5449 | |
| 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; | |
| 5450 | +var getLocation = function getLocation(source) { | |
| 5451 | + var _source$location = source.location, | |
| 5452 | + search = _source$location.search, | |
| 5453 | + hash = _source$location.hash, | |
| 5454 | + href = _source$location.href, | |
| 5455 | + origin = _source$location.origin, | |
| 5456 | + protocol = _source$location.protocol, | |
| 5457 | + host = _source$location.host, | |
| 5458 | + hostname = _source$location.hostname, | |
| 5459 | + port = _source$location.port; | |
| 5460 | + var pathname = source.location.pathname; | |
| 5675 | 5461 | |
| 5676 | -/***/ }), | |
| 5677 | 5462 | |
| 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__) => { | |
| 5463 | + if (!pathname && href && canUseDOM) { | |
| 5464 | + var url = new URL(href); | |
| 5465 | + pathname = url.pathname; | |
| 5466 | + } | |
| 5683 | 5467 | |
| 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; | |
| 5468 | + return { | |
| 5469 | + pathname: encodeURI(decodeURI(pathname)), | |
| 5470 | + search: search, | |
| 5471 | + hash: hash, | |
| 5472 | + href: href, | |
| 5473 | + origin: origin, | |
| 5474 | + protocol: protocol, | |
| 5475 | + host: host, | |
| 5476 | + hostname: hostname, | |
| 5477 | + port: port, | |
| 5478 | + state: source.history.state, | |
| 5479 | + key: source.history.state && source.history.state.key || "initial" | |
| 5480 | + }; | |
| 5481 | +}; | |
| 5690 | 5482 | |
| 5691 | -/***/ }), | |
| 5483 | +var createHistory = function createHistory(source, options) { | |
| 5484 | + var listeners = []; | |
| 5485 | + var location = getLocation(source); | |
| 5486 | + var transitioning = false; | |
| 5487 | + var resolveTransition = function resolveTransition() {}; | |
| 5692 | 5488 | |
| 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__) => { | |
| 5489 | + return { | |
| 5490 | + get location() { | |
| 5491 | + return location; | |
| 5492 | + }, | |
| 5698 | 5493 | |
| 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; | |
| 5494 | + get transitioning() { | |
| 5495 | + return transitioning; | |
| 5496 | + }, | |
| 5707 | 5497 | |
| 5708 | -/***/ }), | |
| 5498 | + _onTransitionComplete: function _onTransitionComplete() { | |
| 5499 | + transitioning = false; | |
| 5500 | + resolveTransition(); | |
| 5501 | + }, | |
| 5502 | + listen: function listen(listener) { | |
| 5503 | + listeners.push(listener); | |
| 5709 | 5504 | |
| 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__) => { | |
| 5505 | + var popstateListener = function popstateListener() { | |
| 5506 | + location = getLocation(source); | |
| 5507 | + listener({ location: location, action: "POP" }); | |
| 5508 | + }; | |
| 5715 | 5509 | |
| 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; | |
| 5510 | + source.addEventListener("popstate", popstateListener); | |
| 5728 | 5511 | |
| 5729 | -/***/ }), | |
| 5512 | + return function () { | |
| 5513 | + source.removeEventListener("popstate", popstateListener); | |
| 5514 | + listeners = listeners.filter(function (fn) { | |
| 5515 | + return fn !== listener; | |
| 5516 | + }); | |
| 5517 | + }; | |
| 5518 | + }, | |
| 5519 | + navigate: function navigate(to) { | |
| 5520 | + var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, | |
| 5521 | + state = _ref.state, | |
| 5522 | + _ref$replace = _ref.replace, | |
| 5523 | + replace = _ref$replace === undefined ? false : _ref$replace; | |
| 5730 | 5524 | |
| 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__) => { | |
| 5525 | + if (typeof to === "number") { | |
| 5526 | + source.history.go(to); | |
| 5527 | + } else { | |
| 5528 | + state = _extends({}, state, { key: Date.now() + "" }); | |
| 5529 | + // try...catch iOS Safari limits to 100 pushState calls | |
| 5530 | + try { | |
| 5531 | + if (transitioning || replace) { | |
| 5532 | + source.history.replaceState(state, null, to); | |
| 5533 | + } else { | |
| 5534 | + source.history.pushState(state, null, to); | |
| 5535 | + } | |
| 5536 | + } catch (e) { | |
| 5537 | + source.location[replace ? "replace" : "assign"](to); | |
| 5538 | + } | |
| 5539 | + } | |
| 5736 | 5540 | |
| 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; | |
| 5541 | + location = getLocation(source); | |
| 5542 | + transitioning = true; | |
| 5543 | + var transition = new Promise(function (res) { | |
| 5544 | + return resolveTransition = res; | |
| 5545 | + }); | |
| 5546 | + listeners.forEach(function (listener) { | |
| 5547 | + return listener({ location: location, action: "PUSH" }); | |
| 5548 | + }); | |
| 5549 | + return transition; | |
| 5550 | + } | |
| 5551 | + }; | |
| 5552 | +}; | |
| 5744 | 5553 | |
| 5745 | -/***/ }), | |
| 5554 | +//////////////////////////////////////////////////////////////////////////////// | |
| 5555 | +// Stores history entries in memory for testing or other platforms like Native | |
| 5556 | +var createMemorySource = function createMemorySource() { | |
| 5557 | + var initialPath = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "/"; | |
| 5746 | 5558 | |
| 5747 | -/***/ "../node_modules/@babel/runtime/helpers/typeof.js": | |
| 5748 | -/*!********************************************************!*\ | |
| 5749 | - !*** ../node_modules/@babel/runtime/helpers/typeof.js ***! | |
| 5750 | - \********************************************************/ | |
| 5751 | -/***/ ((module) => { | |
| 5559 | + var searchIndex = initialPath.indexOf("?"); | |
| 5560 | + var initialLocation = { | |
| 5561 | + pathname: searchIndex > -1 ? initialPath.substr(0, searchIndex) : initialPath, | |
| 5562 | + search: searchIndex > -1 ? initialPath.substr(searchIndex) : "" | |
| 5563 | + }; | |
| 5564 | + var index = 0; | |
| 5565 | + var stack = [initialLocation]; | |
| 5566 | + var states = [null]; | |
| 5752 | 5567 | |
| 5753 | -function _typeof(o) { | |
| 5754 | - "@babel/helpers - typeof"; | |
| 5568 | + return { | |
| 5569 | + get location() { | |
| 5570 | + return stack[index]; | |
| 5571 | + }, | |
| 5572 | + addEventListener: function addEventListener(name, fn) {}, | |
| 5573 | + removeEventListener: function removeEventListener(name, fn) {}, | |
| 5755 | 5574 | |
| 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; | |
| 5575 | + history: { | |
| 5576 | + get entries() { | |
| 5577 | + return stack; | |
| 5578 | + }, | |
| 5579 | + get index() { | |
| 5580 | + return index; | |
| 5581 | + }, | |
| 5582 | + get state() { | |
| 5583 | + return states[index]; | |
| 5584 | + }, | |
| 5585 | + pushState: function pushState(state, _, uri) { | |
| 5586 | + var _uri$split = uri.split("?"), | |
| 5587 | + pathname = _uri$split[0], | |
| 5588 | + _uri$split$ = _uri$split[1], | |
| 5589 | + search = _uri$split$ === undefined ? "" : _uri$split$; | |
| 5763 | 5590 | |
| 5764 | -/***/ }), | |
| 5591 | + index++; | |
| 5592 | + stack.push({ pathname: pathname, search: search.length ? "?" + search : search }); | |
| 5593 | + states.push(state); | |
| 5594 | + }, | |
| 5595 | + replaceState: function replaceState(state, _, uri) { | |
| 5596 | + var _uri$split2 = uri.split("?"), | |
| 5597 | + pathname = _uri$split2[0], | |
| 5598 | + _uri$split2$ = _uri$split2[1], | |
| 5599 | + search = _uri$split2$ === undefined ? "" : _uri$split2$; | |
| 5765 | 5600 | |
| 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__) => { | |
| 5601 | + stack[index] = { pathname: pathname, search: search }; | |
| 5602 | + states[index] = state; | |
| 5603 | + }, | |
| 5604 | + go: function go(to) { | |
| 5605 | + var newIndex = index + to; | |
| 5771 | 5606 | |
| 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; | |
| 5607 | + if (newIndex < 0 || newIndex > states.length - 1) { | |
| 5608 | + return; | |
| 5609 | + } | |
| 5781 | 5610 | |
| 5782 | -/***/ }), | |
| 5611 | + index = newIndex; | |
| 5612 | + } | |
| 5613 | + } | |
| 5614 | + }; | |
| 5615 | +}; | |
| 5783 | 5616 | |
| 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__) => { | |
| 5617 | +//////////////////////////////////////////////////////////////////////////////// | |
| 5618 | +// global history - uses window.history as the source if available, otherwise a | |
| 5619 | +// memory history | |
| 5620 | +var canUseDOM = !!(typeof window !== "undefined" && window.document && window.document.createElement); | |
| 5621 | +var getSource = function getSource() { | |
| 5622 | + return canUseDOM ? window : createMemorySource(); | |
| 5623 | +}; | |
| 5789 | 5624 | |
| 5790 | -// TODO(Babel 8): Remove this file. | |
| 5625 | +var globalHistory = createHistory(getSource()); | |
| 5626 | +var history_navigate = globalHistory.navigate; | |
| 5791 | 5627 | |
| 5792 | -var runtime = __webpack_require__(/*! ../helpers/regeneratorRuntime */ "../node_modules/@babel/runtime/helpers/regeneratorRuntime.js")(); | |
| 5793 | -module.exports = runtime; | |
| 5628 | +//////////////////////////////////////////////////////////////////////////////// | |
| 5794 | 5629 | |
| 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 | 5630 | |
| 5631 | +// CONCATENATED MODULE: ../node_modules/@reach/router/es/index.js | |
| 5632 | +var es_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; }; | |
| 5806 | 5633 | |
| 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 | 5634 | 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 | 5635 | |
| 5852 | 5636 | function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } |
| 5853 | 5637 | |
| @@ -5865,10 +5649,10 @@ | ||
| 5865 | 5649 | |
| 5866 | 5650 | |
| 5867 | 5651 | //////////////////////////////////////////////////////////////////////////////// |
| 5868 | 5652 | |
| 5869 | -var createNamedContext = function createNamedContext(name, defaultValue) { | |
| 5870 | - var Ctx = create_react_context__WEBPACK_IMPORTED_MODULE_3___default()(defaultValue); | |
| 5653 | +var es_createNamedContext = function createNamedContext(name, defaultValue) { | |
| 5654 | + var Ctx = lib_default()(defaultValue); | |
| 5871 | 5655 | Ctx.displayName = name; |
| 5872 | 5656 | return Ctx; |
| 5873 | 5657 | }; |
| 5874 | 5658 | |
| @@ -5873,20 +5657,20 @@ | ||
| 5873 | 5657 | }; |
| 5874 | 5658 | |
| 5875 | 5659 | //////////////////////////////////////////////////////////////////////////////// |
| 5876 | 5660 | // Location Context/Provider |
| 5877 | -var LocationContext = createNamedContext("Location"); | |
| 5661 | +var LocationContext = es_createNamedContext("Location"); | |
| 5878 | 5662 | |
| 5879 | 5663 | // sets up a listener if there isn't one already so apps don't need to be |
| 5880 | 5664 | // wrapped in some top level provider |
| 5881 | -var Location = function Location(_ref) { | |
| 5665 | +var es_Location = function Location(_ref) { | |
| 5882 | 5666 | var children = _ref.children; |
| 5883 | - return react__WEBPACK_IMPORTED_MODULE_0___default().createElement( | |
| 5667 | + return external_React_default.a.createElement( | |
| 5884 | 5668 | LocationContext.Consumer, |
| 5885 | 5669 | null, |
| 5886 | 5670 | function (context) { |
| 5887 | - return context ? children(context) : react__WEBPACK_IMPORTED_MODULE_0___default().createElement( | |
| 5888 | - LocationProvider, | |
| 5671 | + return context ? children(context) : external_React_default.a.createElement( | |
| 5672 | + es_LocationProvider, | |
| 5889 | 5673 | null, |
| 5890 | 5674 | children |
| 5891 | 5675 | ); |
| 5892 | 5676 | } |
| @@ -5892,9 +5676,9 @@ | ||
| 5892 | 5676 | } |
| 5893 | 5677 | ); |
| 5894 | 5678 | }; |
| 5895 | 5679 | |
| 5896 | -var LocationProvider = function (_React$Component) { | |
| 5680 | +var es_LocationProvider = function (_React$Component) { | |
| 5897 | 5681 | _inherits(LocationProvider, _React$Component); |
| 5898 | 5682 | |
| 5899 | 5683 | function LocationProvider() { |
| 5900 | 5684 | var _temp, _this, _ret; |
| @@ -5966,9 +5750,9 @@ | ||
| 5966 | 5750 | LocationProvider.prototype.render = function render() { |
| 5967 | 5751 | var context = this.state.context, |
| 5968 | 5752 | children = this.props.children; |
| 5969 | 5753 | |
| 5970 | - return react__WEBPACK_IMPORTED_MODULE_0___default().createElement( | |
| 5754 | + return external_React_default.a.createElement( | |
| 5971 | 5755 | LocationContext.Provider, |
| 5972 | 5756 | { value: context }, |
| 5973 | 5757 | typeof children === "function" ? children(context) : children || null |
| 5974 | 5758 | ); |
| @@ -5974,20 +5758,18 @@ | ||
| 5974 | 5758 | ); |
| 5975 | 5759 | }; |
| 5976 | 5760 | |
| 5977 | 5761 | return LocationProvider; |
| 5978 | -}((react__WEBPACK_IMPORTED_MODULE_0___default().Component)); | |
| 5762 | +}(external_React_default.a.Component); | |
| 5979 | 5763 | |
| 5980 | 5764 | //////////////////////////////////////////////////////////////////////////////// |
| 5981 | 5765 | |
| 5982 | 5766 | |
| 5983 | -LocationProvider.defaultProps = { | |
| 5984 | - history: _lib_history__WEBPACK_IMPORTED_MODULE_6__.globalHistory | |
| 5767 | +es_LocationProvider.defaultProps = { | |
| 5768 | + history: globalHistory | |
| 5985 | 5769 | }; |
| 5986 | - true ? LocationProvider.propTypes = { | |
| 5987 | - history: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().object).isRequired | |
| 5988 | -} : 0; | |
| 5989 | -var ServerLocation = function ServerLocation(_ref2) { | |
| 5770 | + false ? undefined : void 0; | |
| 5771 | +var es_ServerLocation = function ServerLocation(_ref2) { | |
| 5990 | 5772 | var url = _ref2.url, |
| 5991 | 5773 | children = _ref2.children; |
| 5992 | 5774 | |
| 5993 | 5775 | var searchIndex = url.indexOf("?"); |
| @@ -6002,9 +5784,9 @@ | ||
| 6002 | 5784 | } else { |
| 6003 | 5785 | pathname = url; |
| 6004 | 5786 | } |
| 6005 | 5787 | |
| 6006 | - return react__WEBPACK_IMPORTED_MODULE_0___default().createElement( | |
| 5788 | + return external_React_default.a.createElement( | |
| 6007 | 5789 | LocationContext.Provider, |
| 6008 | 5790 | { |
| 6009 | 5791 | value: { |
| 6010 | 5792 | location: { |
| @@ -6021,22 +5803,22 @@ | ||
| 6021 | 5803 | ); |
| 6022 | 5804 | }; |
| 6023 | 5805 | //////////////////////////////////////////////////////////////////////////////// |
| 6024 | 5806 | // Sets baseuri and basepath for nested routers and links |
| 6025 | -var BaseContext = createNamedContext("Base", { baseuri: "/", basepath: "/" }); | |
| 5807 | +var BaseContext = es_createNamedContext("Base", { baseuri: "/", basepath: "/" }); | |
| 6026 | 5808 | |
| 6027 | 5809 | //////////////////////////////////////////////////////////////////////////////// |
| 6028 | 5810 | // The main event, welcome to the show everybody. |
| 6029 | -var Router = function Router(props) { | |
| 6030 | - return react__WEBPACK_IMPORTED_MODULE_0___default().createElement( | |
| 5811 | +var es_Router = function Router(props) { | |
| 5812 | + return external_React_default.a.createElement( | |
| 6031 | 5813 | BaseContext.Consumer, |
| 6032 | 5814 | null, |
| 6033 | 5815 | function (baseContext) { |
| 6034 | - return react__WEBPACK_IMPORTED_MODULE_0___default().createElement( | |
| 6035 | - Location, | |
| 5816 | + return external_React_default.a.createElement( | |
| 5817 | + es_Location, | |
| 6036 | 5818 | null, |
| 6037 | 5819 | function (locationContext) { |
| 6038 | - return react__WEBPACK_IMPORTED_MODULE_0___default().createElement(RouterImpl, _extends({}, baseContext, locationContext, props)); | |
| 5820 | + return external_React_default.a.createElement(es_RouterImpl, es_extends({}, baseContext, locationContext, props)); | |
| 6039 | 5821 | } |
| 6040 | 5822 | ); |
| 6041 | 5823 | } |
| 6042 | 5824 | ); |
| @@ -6041,9 +5823,9 @@ | ||
| 6041 | 5823 | } |
| 6042 | 5824 | ); |
| 6043 | 5825 | }; |
| 6044 | 5826 | |
| 6045 | -var RouterImpl = function (_React$PureComponent) { | |
| 5827 | +var es_RouterImpl = function (_React$PureComponent) { | |
| 6046 | 5828 | _inherits(RouterImpl, _React$PureComponent); |
| 6047 | 5829 | |
| 6048 | 5830 | function RouterImpl() { |
| 6049 | 5831 | _classCallCheck(this, RouterImpl); |
| @@ -6062,16 +5844,16 @@ | ||
| 6062 | 5844 | _props$component = _props.component, |
| 6063 | 5845 | component = _props$component === undefined ? "div" : _props$component, |
| 6064 | 5846 | domProps = _objectWithoutProperties(_props, ["location", "navigate", "basepath", "primary", "children", "baseuri", "component"]); |
| 6065 | 5847 | |
| 6066 | - var routes = react__WEBPACK_IMPORTED_MODULE_0___default().Children.toArray(children).reduce(function (array, child) { | |
| 6067 | - var routes = createRoute(basepath)(child); | |
| 5848 | + var routes = external_React_default.a.Children.toArray(children).reduce(function (array, child) { | |
| 5849 | + var routes = es_createRoute(basepath)(child); | |
| 6068 | 5850 | return array.concat(routes); |
| 6069 | 5851 | }, []); |
| 6070 | 5852 | var pathname = location.pathname; |
| 6071 | 5853 | |
| 6072 | 5854 | |
| 6073 | - var match = (0,_lib_utils__WEBPACK_IMPORTED_MODULE_5__.pick)(routes, pathname); | |
| 5855 | + var match = utils_pick(routes, pathname); | |
| 6074 | 5856 | |
| 6075 | 5857 | if (match) { |
| 6076 | 5858 | var params = match.params, |
| 6077 | 5859 | uri = match.uri, |
| @@ -6081,31 +5863,31 @@ | ||
| 6081 | 5863 | // remove the /* from the end for child routes relative paths |
| 6082 | 5864 | |
| 6083 | 5865 | basepath = route.default ? basepath : route.path.replace(/\*$/, ""); |
| 6084 | 5866 | |
| 6085 | - var props = _extends({}, params, { | |
| 5867 | + var props = es_extends({}, params, { | |
| 6086 | 5868 | uri: uri, |
| 6087 | 5869 | location: location, |
| 6088 | 5870 | navigate: function navigate(to, options) { |
| 6089 | - return _navigate2((0,_lib_utils__WEBPACK_IMPORTED_MODULE_5__.resolve)(to, uri), options); | |
| 5871 | + return _navigate2(resolve(to, uri), options); | |
| 6090 | 5872 | } |
| 6091 | 5873 | }); |
| 6092 | 5874 | |
| 6093 | - var clone = react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(element, props, element.props.children ? react__WEBPACK_IMPORTED_MODULE_0___default().createElement( | |
| 6094 | - Router, | |
| 5875 | + var clone = external_React_default.a.cloneElement(element, props, element.props.children ? external_React_default.a.createElement( | |
| 5876 | + es_Router, | |
| 6095 | 5877 | { location: location, primary: primary }, |
| 6096 | 5878 | element.props.children |
| 6097 | 5879 | ) : undefined); |
| 6098 | 5880 | |
| 6099 | 5881 | // using 'div' for < 16.3 support |
| 6100 | - var FocusWrapper = primary ? FocusHandler : component; | |
| 5882 | + var FocusWrapper = primary ? es_FocusHandler : component; | |
| 6101 | 5883 | // don't pass any props to 'div' |
| 6102 | - var wrapperProps = primary ? _extends({ uri: uri, location: location, component: component }, domProps) : domProps; | |
| 5884 | + var wrapperProps = primary ? es_extends({ uri: uri, location: location, component: component }, domProps) : domProps; | |
| 6103 | 5885 | |
| 6104 | - return react__WEBPACK_IMPORTED_MODULE_0___default().createElement( | |
| 5886 | + return external_React_default.a.createElement( | |
| 6105 | 5887 | BaseContext.Provider, |
| 6106 | 5888 | { value: { baseuri: uri, basepath: basepath } }, |
| 6107 | - react__WEBPACK_IMPORTED_MODULE_0___default().createElement( | |
| 5889 | + external_React_default.a.createElement( | |
| 6108 | 5890 | FocusWrapper, |
| 6109 | 5891 | wrapperProps, |
| 6110 | 5892 | clone |
| 6111 | 5893 | ) |
| @@ -6128,28 +5910,28 @@ | ||
| 6128 | 5910 | } |
| 6129 | 5911 | }; |
| 6130 | 5912 | |
| 6131 | 5913 | return RouterImpl; |
| 6132 | -}((react__WEBPACK_IMPORTED_MODULE_0___default().PureComponent)); | |
| 5914 | +}(external_React_default.a.PureComponent); | |
| 6133 | 5915 | |
| 6134 | -RouterImpl.defaultProps = { | |
| 5916 | +es_RouterImpl.defaultProps = { | |
| 6135 | 5917 | primary: true |
| 6136 | 5918 | }; |
| 6137 | 5919 | |
| 6138 | 5920 | |
| 6139 | -var FocusContext = createNamedContext("Focus"); | |
| 5921 | +var FocusContext = es_createNamedContext("Focus"); | |
| 6140 | 5922 | |
| 6141 | -var FocusHandler = function FocusHandler(_ref3) { | |
| 5923 | +var es_FocusHandler = function FocusHandler(_ref3) { | |
| 6142 | 5924 | var uri = _ref3.uri, |
| 6143 | 5925 | location = _ref3.location, |
| 6144 | 5926 | component = _ref3.component, |
| 6145 | 5927 | domProps = _objectWithoutProperties(_ref3, ["uri", "location", "component"]); |
| 6146 | 5928 | |
| 6147 | - return react__WEBPACK_IMPORTED_MODULE_0___default().createElement( | |
| 5929 | + return external_React_default.a.createElement( | |
| 6148 | 5930 | FocusContext.Consumer, |
| 6149 | 5931 | null, |
| 6150 | 5932 | function (requestFocus) { |
| 6151 | - return react__WEBPACK_IMPORTED_MODULE_0___default().createElement(FocusHandlerImpl, _extends({}, domProps, { | |
| 5933 | + return external_React_default.a.createElement(es_FocusHandlerImpl, es_extends({}, domProps, { | |
| 6152 | 5934 | component: component, |
| 6153 | 5935 | requestFocus: requestFocus, |
| 6154 | 5936 | uri: uri, |
| 6155 | 5937 | location: location |
| @@ -6161,9 +5943,9 @@ | ||
| 6161 | 5943 | // don't focus on initial render |
| 6162 | 5944 | var initialRender = true; |
| 6163 | 5945 | var focusHandlerCount = 0; |
| 6164 | 5946 | |
| 6165 | -var FocusHandlerImpl = function (_React$Component2) { | |
| 5947 | +var es_FocusHandlerImpl = function (_React$Component2) { | |
| 6166 | 5948 | _inherits(FocusHandlerImpl, _React$Component2); |
| 6167 | 5949 | |
| 6168 | 5950 | function FocusHandlerImpl() { |
| 6169 | 5951 | var _temp2, _this4, _ret2; |
| @@ -6183,15 +5965,15 @@ | ||
| 6183 | 5965 | |
| 6184 | 5966 | FocusHandlerImpl.getDerivedStateFromProps = function getDerivedStateFromProps(nextProps, prevState) { |
| 6185 | 5967 | var initial = prevState.uri == null; |
| 6186 | 5968 | if (initial) { |
| 6187 | - return _extends({ | |
| 5969 | + return es_extends({ | |
| 6188 | 5970 | shouldFocus: true |
| 6189 | 5971 | }, nextProps); |
| 6190 | 5972 | } else { |
| 6191 | 5973 | var myURIChanged = nextProps.uri !== prevState.uri; |
| 6192 | 5974 | var navigatedUpToMe = prevState.location.pathname !== nextProps.location.pathname && nextProps.location.pathname === nextProps.uri; |
| 6193 | - return _extends({ | |
| 5975 | + return es_extends({ | |
| 6194 | 5976 | shouldFocus: myURIChanged || navigatedUpToMe |
| 6195 | 5977 | }, nextProps); |
| 6196 | 5978 | } |
| 6197 | 5979 | }; |
| @@ -6214,10 +5996,9 @@ | ||
| 6214 | 5996 | } |
| 6215 | 5997 | }; |
| 6216 | 5998 | |
| 6217 | 5999 | FocusHandlerImpl.prototype.focus = function focus() { |
| 6218 | - if (false) // removed by dead control flow | |
| 6219 | -{} | |
| 6000 | + if (false) {} | |
| 6220 | 6001 | |
| 6221 | 6002 | var requestFocus = this.props.requestFocus; |
| 6222 | 6003 | |
| 6223 | 6004 | |
| @@ -6248,18 +6029,18 @@ | ||
| 6248 | 6029 | uri = _props2.uri, |
| 6249 | 6030 | location = _props2.location, |
| 6250 | 6031 | domProps = _objectWithoutProperties(_props2, ["children", "style", "requestFocus", "component", "uri", "location"]); |
| 6251 | 6032 | |
| 6252 | - return react__WEBPACK_IMPORTED_MODULE_0___default().createElement( | |
| 6033 | + return external_React_default.a.createElement( | |
| 6253 | 6034 | Comp, |
| 6254 | - _extends({ | |
| 6255 | - style: _extends({ outline: "none" }, style), | |
| 6035 | + es_extends({ | |
| 6036 | + style: es_extends({ outline: "none" }, style), | |
| 6256 | 6037 | tabIndex: "-1", |
| 6257 | 6038 | ref: function ref(n) { |
| 6258 | 6039 | return _this5.node = n; |
| 6259 | 6040 | } |
| 6260 | 6041 | }, domProps), |
| 6261 | - react__WEBPACK_IMPORTED_MODULE_0___default().createElement( | |
| 6042 | + external_React_default.a.createElement( | |
| 6262 | 6043 | FocusContext.Provider, |
| 6263 | 6044 | { value: this.requestFocus }, |
| 6264 | 6045 | this.props.children |
| 6265 | 6046 | ) |
| @@ -6266,16 +6047,16 @@ | ||
| 6266 | 6047 | ); |
| 6267 | 6048 | }; |
| 6268 | 6049 | |
| 6269 | 6050 | return FocusHandlerImpl; |
| 6270 | -}((react__WEBPACK_IMPORTED_MODULE_0___default().Component)); | |
| 6051 | +}(external_React_default.a.Component); | |
| 6271 | 6052 | |
| 6272 | -(0,react_lifecycles_compat__WEBPACK_IMPORTED_MODULE_4__.polyfill)(FocusHandlerImpl); | |
| 6053 | +polyfill(es_FocusHandlerImpl); | |
| 6273 | 6054 | |
| 6274 | 6055 | var k = function k() {}; |
| 6275 | 6056 | |
| 6276 | 6057 | //////////////////////////////////////////////////////////////////////////////// |
| 6277 | -var forwardRef = (react__WEBPACK_IMPORTED_MODULE_0___default().forwardRef); | |
| 6058 | +var forwardRef = external_React_default.a.forwardRef; | |
| 6278 | 6059 | |
| 6279 | 6060 | if (typeof forwardRef === "undefined") { |
| 6280 | 6061 | forwardRef = function forwardRef(C) { |
| 6281 | 6062 | return C; |
| @@ -6285,16 +6066,16 @@ | ||
| 6285 | 6066 | var Link = forwardRef(function (_ref4, ref) { |
| 6286 | 6067 | var innerRef = _ref4.innerRef, |
| 6287 | 6068 | props = _objectWithoutProperties(_ref4, ["innerRef"]); |
| 6288 | 6069 | |
| 6289 | - return react__WEBPACK_IMPORTED_MODULE_0___default().createElement( | |
| 6070 | + return external_React_default.a.createElement( | |
| 6290 | 6071 | BaseContext.Consumer, |
| 6291 | 6072 | null, |
| 6292 | 6073 | function (_ref5) { |
| 6293 | 6074 | var basepath = _ref5.basepath, |
| 6294 | 6075 | baseuri = _ref5.baseuri; |
| 6295 | - return react__WEBPACK_IMPORTED_MODULE_0___default().createElement( | |
| 6296 | - Location, | |
| 6076 | + return external_React_default.a.createElement( | |
| 6077 | + es_Location, | |
| 6297 | 6078 | null, |
| 6298 | 6079 | function (_ref6) { |
| 6299 | 6080 | var location = _ref6.location, |
| 6300 | 6081 | navigate = _ref6.navigate; |
| @@ -6305,14 +6086,14 @@ | ||
| 6305 | 6086 | _props$getProps = props.getProps, |
| 6306 | 6087 | getProps = _props$getProps === undefined ? k : _props$getProps, |
| 6307 | 6088 | anchorProps = _objectWithoutProperties(props, ["to", "state", "replace", "getProps"]); |
| 6308 | 6089 | |
| 6309 | - var href = (0,_lib_utils__WEBPACK_IMPORTED_MODULE_5__.resolve)(to, baseuri); | |
| 6090 | + var href = resolve(to, baseuri); | |
| 6310 | 6091 | var encodedHref = encodeURI(href); |
| 6311 | 6092 | var isCurrent = location.pathname === encodedHref; |
| 6312 | - var isPartiallyCurrent = (0,_lib_utils__WEBPACK_IMPORTED_MODULE_5__.startsWith)(location.pathname, encodedHref); | |
| 6093 | + var isPartiallyCurrent = startsWith(location.pathname, encodedHref); | |
| 6313 | 6094 | |
| 6314 | - return react__WEBPACK_IMPORTED_MODULE_0___default().createElement("a", _extends({ | |
| 6095 | + return external_React_default.a.createElement("a", es_extends({ | |
| 6315 | 6096 | ref: ref || innerRef, |
| 6316 | 6097 | "aria-current": isCurrent ? "page" : undefined |
| 6317 | 6098 | }, anchorProps, getProps({ isCurrent: isCurrent, isPartiallyCurrent: isPartiallyCurrent, href: href, location: location }), { |
| 6318 | 6099 | href: href, |
| @@ -6321,13 +6102,13 @@ | ||
| 6321 | 6102 | if (shouldNavigate(event)) { |
| 6322 | 6103 | event.preventDefault(); |
| 6323 | 6104 | var shouldReplace = replace; |
| 6324 | 6105 | if (typeof replace !== "boolean" && isCurrent) { |
| 6325 | - var _location$state = _extends({}, location.state), | |
| 6106 | + var _location$state = es_extends({}, location.state), | |
| 6326 | 6107 | key = _location$state.key, |
| 6327 | 6108 | restState = _objectWithoutProperties(_location$state, ["key"]); |
| 6328 | 6109 | |
| 6329 | - shouldReplace = (0,_lib_utils__WEBPACK_IMPORTED_MODULE_5__.shallowCompare)(_extends({}, state), restState); | |
| 6110 | + shouldReplace = shallowCompare(es_extends({}, state), restState); | |
| 6330 | 6111 | } |
| 6331 | 6112 | navigate(href, { |
| 6332 | 6113 | state: state, |
| 6333 | 6114 | replace: shouldReplace |
| @@ -6342,11 +6123,9 @@ | ||
| 6342 | 6123 | }); |
| 6343 | 6124 | |
| 6344 | 6125 | Link.displayName = "Link"; |
| 6345 | 6126 | |
| 6346 | - true ? Link.propTypes = { | |
| 6347 | - to: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string).isRequired | |
| 6348 | -} : 0; | |
| 6127 | + false ? undefined : void 0; | |
| 6349 | 6128 | |
| 6350 | 6129 | //////////////////////////////////////////////////////////////////////////////// |
| 6351 | 6130 | function RedirectRequest(uri) { |
| 6352 | 6131 | this.uri = uri; |
| @@ -6359,9 +6138,9 @@ | ||
| 6359 | 6138 | var redirectTo = function redirectTo(to) { |
| 6360 | 6139 | throw new RedirectRequest(to); |
| 6361 | 6140 | }; |
| 6362 | 6141 | |
| 6363 | -var RedirectImpl = function (_React$Component3) { | |
| 6142 | +var es_RedirectImpl = function (_React$Component3) { | |
| 6364 | 6143 | _inherits(RedirectImpl, _React$Component3); |
| 6365 | 6144 | |
| 6366 | 6145 | function RedirectImpl() { |
| 6367 | 6146 | _classCallCheck(this, RedirectImpl); |
| @@ -6382,10 +6161,10 @@ | ||
| 6382 | 6161 | baseuri = _props3.baseuri, |
| 6383 | 6162 | props = _objectWithoutProperties(_props3, ["navigate", "to", "from", "replace", "state", "noThrow", "baseuri"]); |
| 6384 | 6163 | |
| 6385 | 6164 | 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 }); | |
| 6165 | + var resolvedTo = resolve(to, baseuri); | |
| 6166 | + navigate(insertParams(resolvedTo, props), { replace: replace, state: state }); | |
| 6388 | 6167 | }); |
| 6389 | 6168 | }; |
| 6390 | 6169 | |
| 6391 | 6170 | RedirectImpl.prototype.render = function render() { |
| @@ -6398,27 +6177,27 @@ | ||
| 6398 | 6177 | noThrow = _props4.noThrow, |
| 6399 | 6178 | baseuri = _props4.baseuri, |
| 6400 | 6179 | props = _objectWithoutProperties(_props4, ["navigate", "to", "from", "replace", "state", "noThrow", "baseuri"]); |
| 6401 | 6180 | |
| 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)); | |
| 6181 | + var resolvedTo = resolve(to, baseuri); | |
| 6182 | + if (!noThrow) redirectTo(insertParams(resolvedTo, props)); | |
| 6404 | 6183 | return null; |
| 6405 | 6184 | }; |
| 6406 | 6185 | |
| 6407 | 6186 | return RedirectImpl; |
| 6408 | -}((react__WEBPACK_IMPORTED_MODULE_0___default().Component)); | |
| 6187 | +}(external_React_default.a.Component); | |
| 6409 | 6188 | |
| 6410 | -var Redirect = function Redirect(props) { | |
| 6411 | - return react__WEBPACK_IMPORTED_MODULE_0___default().createElement( | |
| 6189 | +var es_Redirect = function Redirect(props) { | |
| 6190 | + return external_React_default.a.createElement( | |
| 6412 | 6191 | BaseContext.Consumer, |
| 6413 | 6192 | null, |
| 6414 | 6193 | function (_ref7) { |
| 6415 | 6194 | var baseuri = _ref7.baseuri; |
| 6416 | - return react__WEBPACK_IMPORTED_MODULE_0___default().createElement( | |
| 6417 | - Location, | |
| 6195 | + return external_React_default.a.createElement( | |
| 6196 | + es_Location, | |
| 6418 | 6197 | null, |
| 6419 | 6198 | function (locationContext) { |
| 6420 | - return react__WEBPACK_IMPORTED_MODULE_0___default().createElement(RedirectImpl, _extends({}, locationContext, { baseuri: baseuri }, props)); | |
| 6199 | + return external_React_default.a.createElement(es_RedirectImpl, es_extends({}, locationContext, { baseuri: baseuri }, props)); | |
| 6421 | 6200 | } |
| 6422 | 6201 | ); |
| 6423 | 6202 | } |
| 6424 | 6203 | ); |
| @@ -6423,35 +6202,32 @@ | ||
| 6423 | 6202 | } |
| 6424 | 6203 | ); |
| 6425 | 6204 | }; |
| 6426 | 6205 | |
| 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; | |
| 6206 | + false ? undefined : void 0; | |
| 6431 | 6207 | |
| 6432 | 6208 | //////////////////////////////////////////////////////////////////////////////// |
| 6433 | -var Match = function Match(_ref8) { | |
| 6209 | +var es_Match = function Match(_ref8) { | |
| 6434 | 6210 | var path = _ref8.path, |
| 6435 | 6211 | children = _ref8.children; |
| 6436 | - return react__WEBPACK_IMPORTED_MODULE_0___default().createElement( | |
| 6212 | + return external_React_default.a.createElement( | |
| 6437 | 6213 | BaseContext.Consumer, |
| 6438 | 6214 | null, |
| 6439 | 6215 | function (_ref9) { |
| 6440 | 6216 | var baseuri = _ref9.baseuri; |
| 6441 | - return react__WEBPACK_IMPORTED_MODULE_0___default().createElement( | |
| 6442 | - Location, | |
| 6217 | + return external_React_default.a.createElement( | |
| 6218 | + es_Location, | |
| 6443 | 6219 | null, |
| 6444 | 6220 | function (_ref10) { |
| 6445 | 6221 | var navigate = _ref10.navigate, |
| 6446 | 6222 | location = _ref10.location; |
| 6447 | 6223 | |
| 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); | |
| 6224 | + var resolvedPath = resolve(path, baseuri); | |
| 6225 | + var result = utils_match(resolvedPath, location.pathname); | |
| 6450 | 6226 | return children({ |
| 6451 | 6227 | navigate: navigate, |
| 6452 | 6228 | location: location, |
| 6453 | - match: result ? _extends({}, result.params, { | |
| 6229 | + match: result ? es_extends({}, result.params, { | |
| 6454 | 6230 | uri: result.uri, |
| 6455 | 6231 | path: path |
| 6456 | 6232 | }) : null |
| 6457 | 6233 | }); |
| @@ -6463,10 +6239,10 @@ | ||
| 6463 | 6239 | |
| 6464 | 6240 | //////////////////////////////////////////////////////////////////////////////// |
| 6465 | 6241 | // Hooks |
| 6466 | 6242 | |
| 6467 | -var useLocation = function useLocation() { | |
| 6468 | - var context = (0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(LocationContext); | |
| 6243 | +var es_useLocation = function useLocation() { | |
| 6244 | + var context = Object(external_React_["useContext"])(LocationContext); | |
| 6469 | 6245 | |
| 6470 | 6246 | if (!context) { |
| 6471 | 6247 | 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 | 6248 | } |
| @@ -6473,10 +6249,10 @@ | ||
| 6473 | 6249 | |
| 6474 | 6250 | return context.location; |
| 6475 | 6251 | }; |
| 6476 | 6252 | |
| 6477 | -var useNavigate = function useNavigate() { | |
| 6478 | - var context = (0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(LocationContext); | |
| 6253 | +var es_useNavigate = function useNavigate() { | |
| 6254 | + var context = Object(external_React_["useContext"])(LocationContext); | |
| 6479 | 6255 | |
| 6480 | 6256 | if (!context) { |
| 6481 | 6257 | 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 | 6258 | } |
| @@ -6483,37 +6259,37 @@ | ||
| 6483 | 6259 | |
| 6484 | 6260 | return context.navigate; |
| 6485 | 6261 | }; |
| 6486 | 6262 | |
| 6487 | -var useParams = function useParams() { | |
| 6488 | - var context = (0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(BaseContext); | |
| 6263 | +var es_useParams = function useParams() { | |
| 6264 | + var context = Object(external_React_["useContext"])(BaseContext); | |
| 6489 | 6265 | |
| 6490 | 6266 | if (!context) { |
| 6491 | 6267 | 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 | 6268 | } |
| 6493 | 6269 | |
| 6494 | - var location = useLocation(); | |
| 6270 | + var location = es_useLocation(); | |
| 6495 | 6271 | |
| 6496 | - var results = (0,_lib_utils__WEBPACK_IMPORTED_MODULE_5__.match)(context.basepath, location.pathname); | |
| 6272 | + var results = utils_match(context.basepath, location.pathname); | |
| 6497 | 6273 | |
| 6498 | 6274 | return results ? results.params : null; |
| 6499 | 6275 | }; |
| 6500 | 6276 | |
| 6501 | -var useMatch = function useMatch(path) { | |
| 6277 | +var es_useMatch = function useMatch(path) { | |
| 6502 | 6278 | if (!path) { |
| 6503 | 6279 | throw new Error("useMatch(path: string) requires an argument of a string to match against"); |
| 6504 | 6280 | } |
| 6505 | - var context = (0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(BaseContext); | |
| 6281 | + var context = Object(external_React_["useContext"])(BaseContext); | |
| 6506 | 6282 | |
| 6507 | 6283 | if (!context) { |
| 6508 | 6284 | 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 | 6285 | } |
| 6510 | 6286 | |
| 6511 | - var location = useLocation(); | |
| 6287 | + var location = es_useLocation(); | |
| 6512 | 6288 | |
| 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, { | |
| 6289 | + var resolvedPath = resolve(path, context.baseuri); | |
| 6290 | + var result = utils_match(resolvedPath, location.pathname); | |
| 6291 | + return result ? es_extends({}, result.params, { | |
| 6516 | 6292 | uri: result.uri, |
| 6517 | 6293 | path: path |
| 6518 | 6294 | }) : null; |
| 6519 | 6295 | }; |
| @@ -6523,28 +6299,28 @@ | ||
| 6523 | 6299 | var stripSlashes = function stripSlashes(str) { |
| 6524 | 6300 | return str.replace(/(^\/+|\/+$)/g, ""); |
| 6525 | 6301 | }; |
| 6526 | 6302 | |
| 6527 | -var createRoute = function createRoute(basepath) { | |
| 6303 | +var es_createRoute = function createRoute(basepath) { | |
| 6528 | 6304 | return function (element) { |
| 6529 | 6305 | if (!element) { |
| 6530 | 6306 | return null; |
| 6531 | 6307 | } |
| 6532 | 6308 | |
| 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)); | |
| 6309 | + if (element.type === external_React_default.a.Fragment && element.props.children) { | |
| 6310 | + return external_React_default.a.Children.map(element.props.children, createRoute(basepath)); | |
| 6535 | 6311 | } |
| 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; | |
| 6312 | + !(element.props.path || element.props.default || element.type === es_Redirect) ? false ? undefined : browser_default()(false) : void 0; | |
| 6537 | 6313 | |
| 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; | |
| 6314 | + !!(element.type === es_Redirect && (!element.props.from || !element.props.to)) ? false ? undefined : browser_default()(false) : void 0; | |
| 6539 | 6315 | |
| 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; | |
| 6316 | + !!(element.type === es_Redirect && !validateRedirect(element.props.from, element.props.to)) ? false ? undefined : browser_default()(false) : void 0; | |
| 6541 | 6317 | |
| 6542 | 6318 | if (element.props.default) { |
| 6543 | 6319 | return { value: element, default: true }; |
| 6544 | 6320 | } |
| 6545 | 6321 | |
| 6546 | - var elementPath = element.type === Redirect ? element.props.from : element.props.path; | |
| 6322 | + var elementPath = element.type === es_Redirect ? element.props.from : element.props.path; | |
| 6547 | 6323 | |
| 6548 | 6324 | var path = elementPath === "/" ? basepath : stripSlashes(basepath) + "/" + stripSlashes(elementPath); |
| 6549 | 6325 | |
| 6550 | 6326 | return { |
| @@ -6562,538 +6338,819 @@ | ||
| 6562 | 6338 | //////////////////////////////////////////////////////////////////////// |
| 6563 | 6339 | |
| 6564 | 6340 | |
| 6565 | 6341 | /***/ }), |
| 6342 | +/* 341 */, | |
| 6343 | +/* 342 */, | |
| 6344 | +/* 343 */, | |
| 6345 | +/* 344 */ | |
| 6346 | +/***/ (function(module, exports) { | |
| 6566 | 6347 | |
| 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__) => { | |
| 6348 | +module.exports = elementorAppPackages.router; | |
| 6572 | 6349 | |
| 6350 | +/***/ }), | |
| 6351 | +/* 345 */ | |
| 6352 | +/***/ (function(module, exports, __webpack_require__) { | |
| 6353 | + | |
| 6573 | 6354 | "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; }; | |
| 6355 | +/* WEBPACK VAR INJECTION */(function(PropTypes) { | |
| 6582 | 6356 | |
| 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; | |
| 6357 | +var _interopRequireDefault = __webpack_require__(0); | |
| 6594 | 6358 | |
| 6359 | +var _Object$defineProperty = __webpack_require__(1); | |
| 6595 | 6360 | |
| 6596 | - if (!pathname && href && canUseDOM) { | |
| 6597 | - var url = new URL(href); | |
| 6598 | - pathname = url.pathname; | |
| 6599 | - } | |
| 6361 | +_Object$defineProperty(exports, "__esModule", { | |
| 6362 | + value: true | |
| 6363 | +}); | |
| 6600 | 6364 | |
| 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 | - }; | |
| 6365 | +exports.default = Icon; | |
| 6366 | + | |
| 6367 | +var _react = _interopRequireDefault(__webpack_require__(11)); | |
| 6368 | + | |
| 6369 | +function Icon(props) { | |
| 6370 | + return /*#__PURE__*/_react.default.createElement("i", { | |
| 6371 | + className: "eps-icon ".concat(props.className) | |
| 6372 | + }); | |
| 6373 | +} | |
| 6374 | + | |
| 6375 | +Icon.propTypes = { | |
| 6376 | + className: PropTypes.string.isRequired | |
| 6614 | 6377 | }; |
| 6378 | +Icon.defaultProps = { | |
| 6379 | + className: '' | |
| 6380 | +}; | |
| 6381 | +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(41))) | |
| 6615 | 6382 | |
| 6616 | -var createHistory = function createHistory(source, options) { | |
| 6617 | - var listeners = []; | |
| 6618 | - var location = getLocation(source); | |
| 6619 | - var transitioning = false; | |
| 6620 | - var resolveTransition = function resolveTransition() {}; | |
| 6383 | +/***/ }), | |
| 6384 | +/* 346 */ | |
| 6385 | +/***/ (function(module, exports, __webpack_require__) { | |
| 6621 | 6386 | |
| 6622 | - return { | |
| 6623 | - get location() { | |
| 6624 | - return location; | |
| 6625 | - }, | |
| 6387 | +"use strict"; | |
| 6388 | +/* WEBPACK VAR INJECTION */(function(PropTypes) { | |
| 6626 | 6389 | |
| 6627 | - get transitioning() { | |
| 6628 | - return transitioning; | |
| 6629 | - }, | |
| 6390 | +var _interopRequireDefault = __webpack_require__(0); | |
| 6630 | 6391 | |
| 6631 | - _onTransitionComplete: function _onTransitionComplete() { | |
| 6632 | - transitioning = false; | |
| 6633 | - resolveTransition(); | |
| 6634 | - }, | |
| 6635 | - listen: function listen(listener) { | |
| 6636 | - listeners.push(listener); | |
| 6392 | +var _Object$defineProperty = __webpack_require__(1); | |
| 6637 | 6393 | |
| 6638 | - var popstateListener = function popstateListener() { | |
| 6639 | - location = getLocation(source); | |
| 6640 | - listener({ location: location, action: "POP" }); | |
| 6641 | - }; | |
| 6394 | +_Object$defineProperty(exports, "__esModule", { | |
| 6395 | + value: true | |
| 6396 | +}); | |
| 6642 | 6397 | |
| 6643 | - source.addEventListener("popstate", popstateListener); | |
| 6398 | +exports.default = Grid; | |
| 6644 | 6399 | |
| 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; | |
| 6400 | +var _react = _interopRequireDefault(__webpack_require__(11)); | |
| 6657 | 6401 | |
| 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 | - } | |
| 6402 | +__webpack_require__(58); | |
| 6673 | 6403 | |
| 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 | -}; | |
| 6404 | +__webpack_require__(119); | |
| 6686 | 6405 | |
| 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] : "/"; | |
| 6406 | +var _toConsumableArray2 = _interopRequireDefault(__webpack_require__(299)); | |
| 6691 | 6407 | |
| 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]; | |
| 6408 | +__webpack_require__(649); | |
| 6700 | 6409 | |
| 6701 | - return { | |
| 6702 | - get location() { | |
| 6703 | - return stack[index]; | |
| 6704 | - }, | |
| 6705 | - addEventListener: function addEventListener(name, fn) {}, | |
| 6706 | - removeEventListener: function removeEventListener(name, fn) {}, | |
| 6410 | +function Grid(props) { | |
| 6411 | + var propsMap = { | |
| 6412 | + direction: '--direction{{ -VALUE }}', | |
| 6413 | + justify: '--justify{{ -VALUE }}', | |
| 6414 | + alignContent: '--align-content{{ -VALUE }}', | |
| 6415 | + alignItems: '--align-items{{ -VALUE }}', | |
| 6416 | + container: '-container', | |
| 6417 | + item: '-item', | |
| 6418 | + noWrap: '-container--no-wrap', | |
| 6419 | + wrapReverse: '-container--wrap-reverse', | |
| 6420 | + zeroMinWidth: '-item--zero-min-width', | |
| 6421 | + spacing: '-container--spacing', | |
| 6422 | + xs: '-item-xs{{ -VALUE }}', | |
| 6423 | + sm: '-item-sm{{ -VALUE }}', | |
| 6424 | + md: '-item-md{{ -VALUE }}', | |
| 6425 | + lg: '-item-lg{{ -VALUE }}', | |
| 6426 | + xl: '-item-xl{{ -VALUE }}', | |
| 6427 | + xxl: '-item-xxl{{ -VALUE }}' | |
| 6428 | + }, | |
| 6429 | + getStyle = function getStyle() { | |
| 6430 | + return isValidPropValue(props.spacing) ? { | |
| 6431 | + '--grid-spacing-gutter': props.spacing | |
| 6432 | + } : {}; | |
| 6433 | + }, | |
| 6434 | + classes = [getBaseClassName(), props.className].concat((0, _toConsumableArray2.default)(getPropsClasses(propsMap, props))); | |
| 6707 | 6435 | |
| 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$; | |
| 6436 | + return /*#__PURE__*/_react.default.createElement("div", { | |
| 6437 | + style: getStyle(), | |
| 6438 | + className: classes.filter(function (classItem) { | |
| 6439 | + return '' !== classItem; | |
| 6440 | + }).join(' ') | |
| 6441 | + }, props.children); | |
| 6442 | +} | |
| 6723 | 6443 | |
| 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$; | |
| 6444 | +function getPropsClasses(propsMap, props) { | |
| 6445 | + var classes = []; | |
| 6733 | 6446 | |
| 6734 | - stack[index] = { pathname: pathname, search: search }; | |
| 6735 | - states[index] = state; | |
| 6736 | - }, | |
| 6737 | - go: function go(to) { | |
| 6738 | - var newIndex = index + to; | |
| 6447 | + for (var prop in propsMap) { | |
| 6448 | + if (props[prop]) { | |
| 6449 | + var propValue = isValidPropValue(props[prop]) ? props[prop] : ''; | |
| 6450 | + classes.push(getBaseClassName() + renderPropValueBrackets(propsMap[prop], propValue)); | |
| 6451 | + } | |
| 6452 | + } | |
| 6739 | 6453 | |
| 6740 | - if (newIndex < 0 || newIndex > states.length - 1) { | |
| 6741 | - return; | |
| 6742 | - } | |
| 6454 | + return classes; | |
| 6455 | +} | |
| 6743 | 6456 | |
| 6744 | - index = newIndex; | |
| 6745 | - } | |
| 6746 | - } | |
| 6747 | - }; | |
| 6748 | -}; | |
| 6457 | +function renderPropValueBrackets(propClass, propValue) { | |
| 6458 | + var brackets = propClass.match(/{{.*?}}/); | |
| 6749 | 6459 | |
| 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 | -}; | |
| 6460 | + if (brackets) { | |
| 6461 | + var bracketsValue = propValue ? brackets[0].replace(/[{ }]/g, '').replace(/value/i, propValue) : ''; | |
| 6462 | + propClass = propClass.replace(brackets[0], bracketsValue); | |
| 6463 | + } | |
| 6757 | 6464 | |
| 6758 | -var globalHistory = createHistory(getSource()); | |
| 6759 | -var navigate = globalHistory.navigate; | |
| 6465 | + return propClass; | |
| 6466 | +} | |
| 6760 | 6467 | |
| 6761 | -//////////////////////////////////////////////////////////////////////////////// | |
| 6468 | +function getBaseClassName() { | |
| 6469 | + return 'eps-grid'; | |
| 6470 | +} | |
| 6762 | 6471 | |
| 6472 | +function isValidPropValue(propValue) { | |
| 6473 | + return propValue && 'boolean' !== typeof propValue; | |
| 6474 | +} | |
| 6763 | 6475 | |
| 6476 | +Grid.propTypes = { | |
| 6477 | + className: PropTypes.string, | |
| 6478 | + direction: PropTypes.string, | |
| 6479 | + justify: PropTypes.string, | |
| 6480 | + alignContent: PropTypes.string, | |
| 6481 | + alignItems: PropTypes.string, | |
| 6482 | + container: PropTypes.bool, | |
| 6483 | + item: PropTypes.bool, | |
| 6484 | + noWrap: PropTypes.bool, | |
| 6485 | + wrapReverse: PropTypes.bool, | |
| 6486 | + zeroMinWidth: PropTypes.bool, | |
| 6487 | + spacing: PropTypes.number, | |
| 6488 | + xs: PropTypes.oneOfType([PropTypes.number, PropTypes.bool]), | |
| 6489 | + sm: PropTypes.oneOfType([PropTypes.number, PropTypes.bool]), | |
| 6490 | + md: PropTypes.oneOfType([PropTypes.number, PropTypes.bool]), | |
| 6491 | + lg: PropTypes.oneOfType([PropTypes.number, PropTypes.bool]), | |
| 6492 | + xl: PropTypes.oneOfType([PropTypes.number, PropTypes.bool]), | |
| 6493 | + xxl: PropTypes.oneOfType([PropTypes.number, PropTypes.bool]), | |
| 6494 | + children: PropTypes.oneOfType([PropTypes.string, PropTypes.object, PropTypes.arrayOf(PropTypes.object)]).isRequired | |
| 6495 | +}; | |
| 6496 | +Grid.defaultProps = { | |
| 6497 | + className: '' | |
| 6498 | +}; | |
| 6499 | +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(41))) | |
| 6764 | 6500 | |
| 6765 | 6501 | /***/ }), |
| 6502 | +/* 347 */ | |
| 6503 | +/***/ (function(module, exports, __webpack_require__) { | |
| 6766 | 6504 | |
| 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__) => { | |
| 6505 | +"use strict"; | |
| 6506 | +/* WEBPACK VAR INJECTION */(function(React, PropTypes) { | |
| 6772 | 6507 | |
| 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__); | |
| 6508 | +var _Object$defineProperty = __webpack_require__(1); | |
| 6786 | 6509 | |
| 6510 | +_Object$defineProperty(exports, "__esModule", { | |
| 6511 | + value: true | |
| 6512 | +}); | |
| 6787 | 6513 | |
| 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; | |
| 6514 | +exports.default = Text; | |
| 6515 | + | |
| 6516 | +function Text(props) { | |
| 6517 | + var baseClassName = 'eps', | |
| 6518 | + classes = [props.className], | |
| 6519 | + tagName = props.tag, | |
| 6520 | + variant = props.variant && 'md' !== props.variant ? '-' + props.variant : ''; | |
| 6521 | + classes.push(baseClassName + '-text' + variant); | |
| 6522 | + return React.createElement(tagName, { | |
| 6523 | + className: classes.filter(function (classItem) { | |
| 6524 | + return classItem; | |
| 6525 | + }).join(' ') | |
| 6526 | + }, props.children); | |
| 6527 | +} | |
| 6528 | + | |
| 6529 | +Text.propTypes = { | |
| 6530 | + className: PropTypes.string, | |
| 6531 | + variant: PropTypes.string, | |
| 6532 | + tag: PropTypes.string, | |
| 6533 | + children: PropTypes.any.isRequired | |
| 6792 | 6534 | }; |
| 6535 | +Text.defaultProps = { | |
| 6536 | + className: '', | |
| 6537 | + tag: 'p' | |
| 6538 | +}; | |
| 6539 | +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(11), __webpack_require__(41))) | |
| 6793 | 6540 | |
| 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; | |
| 6541 | +/***/ }), | |
| 6542 | +/* 348 */ | |
| 6543 | +/***/ (function(module, exports) { | |
| 6818 | 6544 | |
| 6819 | - var _uri$split = uri.split("?"), | |
| 6820 | - uriPathname = _uri$split[0]; | |
| 6821 | 6545 | |
| 6822 | - var uriSegments = segmentize(uriPathname); | |
| 6823 | - var isRootUri = uriSegments[0] === ""; | |
| 6824 | - var ranked = rankRoutes(routes); | |
| 6825 | 6546 | |
| 6826 | - for (var i = 0, l = ranked.length; i < l; i++) { | |
| 6827 | - var missed = false; | |
| 6828 | - var route = ranked[i].route; | |
| 6547 | +/***/ }), | |
| 6548 | +/* 349 */, | |
| 6549 | +/* 350 */, | |
| 6550 | +/* 351 */, | |
| 6551 | +/* 352 */, | |
| 6552 | +/* 353 */, | |
| 6553 | +/* 354 */, | |
| 6554 | +/* 355 */, | |
| 6555 | +/* 356 */, | |
| 6556 | +/* 357 */, | |
| 6557 | +/* 358 */, | |
| 6558 | +/* 359 */, | |
| 6559 | +/* 360 */, | |
| 6560 | +/* 361 */, | |
| 6561 | +/* 362 */, | |
| 6562 | +/* 363 */, | |
| 6563 | +/* 364 */, | |
| 6564 | +/* 365 */, | |
| 6565 | +/* 366 */, | |
| 6566 | +/* 367 */, | |
| 6567 | +/* 368 */, | |
| 6568 | +/* 369 */, | |
| 6569 | +/* 370 */, | |
| 6570 | +/* 371 */, | |
| 6571 | +/* 372 */, | |
| 6572 | +/* 373 */, | |
| 6573 | +/* 374 */, | |
| 6574 | +/* 375 */, | |
| 6575 | +/* 376 */, | |
| 6576 | +/* 377 */, | |
| 6577 | +/* 378 */, | |
| 6578 | +/* 379 */, | |
| 6579 | +/* 380 */, | |
| 6580 | +/* 381 */, | |
| 6581 | +/* 382 */, | |
| 6582 | +/* 383 */, | |
| 6583 | +/* 384 */, | |
| 6584 | +/* 385 */, | |
| 6585 | +/* 386 */, | |
| 6586 | +/* 387 */, | |
| 6587 | +/* 388 */, | |
| 6588 | +/* 389 */, | |
| 6589 | +/* 390 */, | |
| 6590 | +/* 391 */, | |
| 6591 | +/* 392 */, | |
| 6592 | +/* 393 */, | |
| 6593 | +/* 394 */, | |
| 6594 | +/* 395 */, | |
| 6595 | +/* 396 */, | |
| 6596 | +/* 397 */, | |
| 6597 | +/* 398 */, | |
| 6598 | +/* 399 */, | |
| 6599 | +/* 400 */, | |
| 6600 | +/* 401 */, | |
| 6601 | +/* 402 */, | |
| 6602 | +/* 403 */, | |
| 6603 | +/* 404 */ | |
| 6604 | +/***/ (function(module, exports, __webpack_require__) { | |
| 6829 | 6605 | |
| 6830 | - if (route.default) { | |
| 6831 | - default_ = { | |
| 6832 | - route: route, | |
| 6833 | - params: {}, | |
| 6834 | - uri: uri | |
| 6835 | - }; | |
| 6836 | - continue; | |
| 6837 | - } | |
| 6606 | +"use strict"; | |
| 6607 | +/* WEBPACK VAR INJECTION */(function(PropTypes) { | |
| 6838 | 6608 | |
| 6839 | - var routeSegments = segmentize(route.path); | |
| 6840 | - var params = {}; | |
| 6841 | - var max = Math.max(uriSegments.length, routeSegments.length); | |
| 6842 | - var index = 0; | |
| 6609 | +var _interopRequireDefault = __webpack_require__(0); | |
| 6843 | 6610 | |
| 6844 | - for (; index < max; index++) { | |
| 6845 | - var routeSegment = routeSegments[index]; | |
| 6846 | - var uriSegment = uriSegments[index]; | |
| 6611 | +var _Object$defineProperty = __webpack_require__(1); | |
| 6847 | 6612 | |
| 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 | - } | |
| 6613 | +_Object$defineProperty(exports, "__esModule", { | |
| 6614 | + value: true | |
| 6615 | +}); | |
| 6856 | 6616 | |
| 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 | - } | |
| 6617 | +exports.default = Page; | |
| 6864 | 6618 | |
| 6865 | - var dynamicMatch = paramRe.exec(routeSegment); | |
| 6619 | +var _react = _interopRequireDefault(__webpack_require__(11)); | |
| 6866 | 6620 | |
| 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 | - } | |
| 6621 | +var _header = _interopRequireDefault(__webpack_require__(645)); | |
| 6622 | + | |
| 6623 | +var _sidebar = _interopRequireDefault(__webpack_require__(650)); | |
| 6624 | + | |
| 6625 | +var _content = _interopRequireDefault(__webpack_require__(651)); | |
| 6626 | + | |
| 6627 | +var _footer = _interopRequireDefault(__webpack_require__(652)); | |
| 6628 | + | |
| 6629 | +function Page(props) { | |
| 6630 | + var AppSidebar = function AppSidebar() { | |
| 6631 | + if (!props.sidebar) { | |
| 6632 | + return; | |
| 6879 | 6633 | } |
| 6880 | 6634 | |
| 6881 | - if (!missed) { | |
| 6882 | - match = { | |
| 6883 | - route: route, | |
| 6884 | - params: params, | |
| 6885 | - uri: "/" + uriSegments.slice(0, index).join("/") | |
| 6886 | - }; | |
| 6887 | - break; | |
| 6635 | + return /*#__PURE__*/_react.default.createElement(_sidebar.default, null, props.sidebar); | |
| 6636 | + }, | |
| 6637 | + AppFooter = function AppFooter() { | |
| 6638 | + if (!props.footer) { | |
| 6639 | + return; | |
| 6888 | 6640 | } |
| 6889 | - } | |
| 6890 | 6641 | |
| 6891 | - return match || default_ || null; | |
| 6642 | + return /*#__PURE__*/_react.default.createElement(_footer.default, null, props.footer); | |
| 6643 | + }; | |
| 6644 | + | |
| 6645 | + return /*#__PURE__*/_react.default.createElement("div", { | |
| 6646 | + className: "eps-app__lightbox ".concat(props.className) | |
| 6647 | + }, /*#__PURE__*/_react.default.createElement("div", { | |
| 6648 | + className: "eps-app" | |
| 6649 | + }, /*#__PURE__*/_react.default.createElement(_header.default, { | |
| 6650 | + title: props.title, | |
| 6651 | + buttons: props.headerButtons, | |
| 6652 | + titleRedirectRoute: props.titleRedirectRoute | |
| 6653 | + }), /*#__PURE__*/_react.default.createElement("div", { | |
| 6654 | + className: "eps-app__main" | |
| 6655 | + }, AppSidebar(), /*#__PURE__*/_react.default.createElement(_content.default, null, props.content)), AppFooter())); | |
| 6656 | +} | |
| 6657 | + | |
| 6658 | +Page.propTypes = { | |
| 6659 | + title: PropTypes.string, | |
| 6660 | + titleRedirectRoute: PropTypes.string, | |
| 6661 | + className: PropTypes.string, | |
| 6662 | + headerButtons: PropTypes.arrayOf(PropTypes.object), | |
| 6663 | + sidebar: PropTypes.object, | |
| 6664 | + content: PropTypes.object.isRequired, | |
| 6665 | + footer: PropTypes.object | |
| 6892 | 6666 | }; |
| 6667 | +Page.defaultProps = { | |
| 6668 | + className: '' | |
| 6669 | +}; | |
| 6670 | +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(41))) | |
| 6893 | 6671 | |
| 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); | |
| 6672 | +/***/ }), | |
| 6673 | +/* 405 */ | |
| 6674 | +/***/ (function(module, exports, __webpack_require__) { | |
| 6675 | + | |
| 6676 | +"use strict"; | |
| 6677 | +/* WEBPACK VAR INJECTION */(function(PropTypes) { | |
| 6678 | + | |
| 6679 | +var _interopRequireDefault = __webpack_require__(0); | |
| 6680 | + | |
| 6681 | +var _Object$defineProperty = __webpack_require__(1); | |
| 6682 | + | |
| 6683 | +_Object$defineProperty(exports, "__esModule", { | |
| 6684 | + value: true | |
| 6685 | +}); | |
| 6686 | + | |
| 6687 | +exports.default = Dialog; | |
| 6688 | + | |
| 6689 | +var _react = _interopRequireDefault(__webpack_require__(11)); | |
| 6690 | + | |
| 6691 | +var _dialogWrapper = _interopRequireDefault(__webpack_require__(654)); | |
| 6692 | + | |
| 6693 | +var _dialogContent = _interopRequireDefault(__webpack_require__(655)); | |
| 6694 | + | |
| 6695 | +var _dialogTitle = _interopRequireDefault(__webpack_require__(656)); | |
| 6696 | + | |
| 6697 | +var _dialogText = _interopRequireDefault(__webpack_require__(657)); | |
| 6698 | + | |
| 6699 | +var _dialogActions = _interopRequireDefault(__webpack_require__(658)); | |
| 6700 | + | |
| 6701 | +var _dialogButton = _interopRequireDefault(__webpack_require__(659)); | |
| 6702 | + | |
| 6703 | +__webpack_require__(660); | |
| 6704 | + | |
| 6705 | +function Dialog(props) { | |
| 6706 | + return /*#__PURE__*/_react.default.createElement(_dialogWrapper.default, { | |
| 6707 | + onSubmit: props.onSubmit, | |
| 6708 | + onClose: props.onClose | |
| 6709 | + }, /*#__PURE__*/_react.default.createElement(_dialogContent.default, null, props.title && /*#__PURE__*/_react.default.createElement(_dialogTitle.default, null, props.title), props.text && /*#__PURE__*/_react.default.createElement(_dialogText.default, null, props.text), props.children), /*#__PURE__*/_react.default.createElement(_dialogActions.default, null, /*#__PURE__*/_react.default.createElement(_dialogButton.default, { | |
| 6710 | + key: "dismiss", | |
| 6711 | + text: props.dismissButtonText, | |
| 6712 | + onClick: props.dismissButtonOnClick, | |
| 6713 | + url: props.dismissButtonUrl, | |
| 6714 | + target: props.dismissButtonTarget, | |
| 6715 | + tabIndex: "2" | |
| 6716 | + }), /*#__PURE__*/_react.default.createElement(_dialogButton.default, { | |
| 6717 | + key: "approve", | |
| 6718 | + text: props.approveButtonText, | |
| 6719 | + onClick: props.approveButtonOnClick, | |
| 6720 | + url: props.approveButtonUrl, | |
| 6721 | + target: props.approveButtonTarget, | |
| 6722 | + color: props.approveButtonColor, | |
| 6723 | + tabIndex: "1" | |
| 6724 | + }))); | |
| 6725 | +} | |
| 6726 | + | |
| 6727 | +Dialog.propTypes = { | |
| 6728 | + title: PropTypes.any, | |
| 6729 | + text: PropTypes.any, | |
| 6730 | + children: PropTypes.any, | |
| 6731 | + onSubmit: PropTypes.func, | |
| 6732 | + onClose: PropTypes.func, | |
| 6733 | + dismissButtonText: PropTypes.string.isRequired, | |
| 6734 | + dismissButtonOnClick: PropTypes.func, | |
| 6735 | + dismissButtonUrl: PropTypes.string, | |
| 6736 | + dismissButtonTarget: PropTypes.string, | |
| 6737 | + approveButtonText: PropTypes.string.isRequired, | |
| 6738 | + approveButtonOnClick: PropTypes.func, | |
| 6739 | + approveButtonUrl: PropTypes.string, | |
| 6740 | + approveButtonColor: PropTypes.string, | |
| 6741 | + approveButtonTarget: PropTypes.string | |
| 6898 | 6742 | }; |
| 6743 | +Dialog.defaultProps = {}; | |
| 6744 | +Dialog.Wrapper = _dialogWrapper.default; | |
| 6745 | +Dialog.Content = _dialogContent.default; | |
| 6746 | +Dialog.Title = _dialogTitle.default; | |
| 6747 | +Dialog.Text = _dialogText.default; | |
| 6748 | +Dialog.Actions = _dialogActions.default; | |
| 6749 | +Dialog.Button = _dialogButton.default; | |
| 6750 | +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(41))) | |
| 6899 | 6751 | |
| 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 | - } | |
| 6752 | +/***/ }), | |
| 6753 | +/* 406 */, | |
| 6754 | +/* 407 */, | |
| 6755 | +/* 408 */, | |
| 6756 | +/* 409 */, | |
| 6757 | +/* 410 */, | |
| 6758 | +/* 411 */ | |
| 6759 | +/***/ (function(module, exports, __webpack_require__) { | |
| 6931 | 6760 | |
| 6932 | - var _to$split = to.split("?"), | |
| 6933 | - toPathname = _to$split[0], | |
| 6934 | - toQuery = _to$split[1]; | |
| 6761 | +"use strict"; | |
| 6935 | 6762 | |
| 6936 | - var _base$split = base.split("?"), | |
| 6937 | - basePathname = _base$split[0]; | |
| 6938 | 6763 | |
| 6939 | - var toSegments = segmentize(toPathname); | |
| 6940 | - var baseSegments = segmentize(basePathname); | |
| 6764 | +exports.__esModule = true; | |
| 6941 | 6765 | |
| 6942 | - // ?a=b, /users?b=c => /users?a=b | |
| 6943 | - if (toSegments[0] === "") { | |
| 6944 | - return addQuery(basePathname, toQuery); | |
| 6945 | - } | |
| 6766 | +var _react = __webpack_require__(11); | |
| 6946 | 6767 | |
| 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 | - } | |
| 6768 | +var _react2 = _interopRequireDefault(_react); | |
| 6952 | 6769 | |
| 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 | - } | |
| 6770 | +var _implementation = __webpack_require__(640); | |
| 6964 | 6771 | |
| 6965 | - return addQuery("/" + segments.join("/"), toQuery); | |
| 6966 | -}; | |
| 6772 | +var _implementation2 = _interopRequireDefault(_implementation); | |
| 6967 | 6773 | |
| 6968 | -//////////////////////////////////////////////////////////////////////////////// | |
| 6969 | -// insertParams(path, params) | |
| 6774 | +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | |
| 6970 | 6775 | |
| 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$; | |
| 6776 | +exports.default = _react2.default.createContext || _implementation2.default; | |
| 6777 | +module.exports = exports['default']; | |
| 6976 | 6778 | |
| 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; | |
| 6779 | +/***/ }), | |
| 6780 | +/* 412 */, | |
| 6781 | +/* 413 */ | |
| 6782 | +/***/ (function(module, exports, __webpack_require__) { | |
| 6986 | 6783 | |
| 6987 | - var searchSplit = search.split("?")[1] || ""; | |
| 6988 | - constructedPath = addQuery(constructedPath, query, searchSplit); | |
| 6989 | - return constructedPath; | |
| 6990 | -}; | |
| 6784 | +"use strict"; | |
| 6785 | +/* WEBPACK VAR INJECTION */(function(__, PropTypes) { | |
| 6991 | 6786 | |
| 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 | -}; | |
| 6787 | +var _interopRequireDefault = __webpack_require__(0); | |
| 7000 | 6788 | |
| 7001 | -//////////////////////////////////////////////////////////////////////////////// | |
| 7002 | -// Junk | |
| 7003 | -var paramRe = /^:(.+)/; | |
| 6789 | +var _Object$defineProperty = __webpack_require__(1); | |
| 7004 | 6790 | |
| 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; | |
| 6791 | +_Object$defineProperty(exports, "__esModule", { | |
| 6792 | + value: true | |
| 6793 | +}); | |
| 7010 | 6794 | |
| 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 | -}; | |
| 6795 | +exports.default = exports.TemplateTypesConsumer = exports.Context = void 0; | |
| 7020 | 6796 | |
| 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 | -}; | |
| 6797 | +var _react = _interopRequireDefault(__webpack_require__(11)); | |
| 7029 | 6798 | |
| 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 | -}; | |
| 6799 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2)); | |
| 7035 | 6800 | |
| 7036 | -var segmentize = function segmentize(uri) { | |
| 7037 | - return uri | |
| 7038 | - // strip starting/ending slashes | |
| 7039 | - .replace(/(^\/+|\/+$)/g, "").split("/"); | |
| 7040 | -}; | |
| 6801 | +var _createClass2 = _interopRequireDefault(__webpack_require__(3)); | |
| 7041 | 6802 | |
| 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]; | |
| 6803 | +var _inherits2 = _interopRequireDefault(__webpack_require__(4)); | |
| 6804 | + | |
| 6805 | +var _createSuper2 = _interopRequireDefault(__webpack_require__(5)); | |
| 6806 | + | |
| 6807 | +var _defineProperty2 = _interopRequireDefault(__webpack_require__(28)); | |
| 6808 | + | |
| 6809 | +__webpack_require__(779); | |
| 6810 | + | |
| 6811 | +var Context = _react.default.createContext(); | |
| 6812 | + | |
| 6813 | +exports.Context = Context; | |
| 6814 | + | |
| 6815 | +var TemplateTypesContext = /*#__PURE__*/function (_React$Component) { | |
| 6816 | + (0, _inherits2.default)(TemplateTypesContext, _React$Component); | |
| 6817 | + | |
| 6818 | + var _super = (0, _createSuper2.default)(TemplateTypesContext); | |
| 6819 | + | |
| 6820 | + function TemplateTypesContext(props) { | |
| 6821 | + var _this; | |
| 6822 | + | |
| 6823 | + (0, _classCallCheck2.default)(this, TemplateTypesContext); | |
| 6824 | + _this = _super.call(this, props); | |
| 6825 | + _this.state = { | |
| 6826 | + templateTypes: [], | |
| 6827 | + loading: true, | |
| 6828 | + error: false | |
| 6829 | + }; | |
| 6830 | + return _this; | |
| 7045 | 6831 | } |
| 7046 | 6832 | |
| 7047 | - query = query.filter(function (q) { | |
| 7048 | - return q && q.length > 0; | |
| 7049 | - }); | |
| 7050 | - return pathname + (query && query.length > 0 ? "?" + query.join("&") : ""); | |
| 7051 | -}; | |
| 6833 | + (0, _createClass2.default)(TemplateTypesContext, [{ | |
| 6834 | + key: "componentDidMount", | |
| 6835 | + value: function componentDidMount() { | |
| 6836 | + var _this2 = this; | |
| 7052 | 6837 | |
| 7053 | -var reservedNames = ["uri", "path"]; | |
| 6838 | + this.getTemplateTypes().then(function (response) { | |
| 6839 | + _this2.setState({ | |
| 6840 | + templateTypes: response, | |
| 6841 | + loading: false | |
| 6842 | + }); | |
| 6843 | + }).fail(function (error) { | |
| 6844 | + _this2.setState({ | |
| 6845 | + error: error.statusText ? error.statusText : error, | |
| 6846 | + loading: false | |
| 6847 | + }); | |
| 6848 | + }); | |
| 6849 | + } | |
| 6850 | + }, { | |
| 6851 | + key: "getTemplateTypes", | |
| 6852 | + value: function getTemplateTypes() { | |
| 6853 | + return elementorCommon.ajax.load({ | |
| 6854 | + action: 'app_site_editor_template_types' | |
| 6855 | + }); | |
| 6856 | + } | |
| 6857 | + }, { | |
| 6858 | + key: "render", | |
| 6859 | + value: function render() { | |
| 6860 | + if (this.state.error) { | |
| 6861 | + return /*#__PURE__*/_react.default.createElement("div", { | |
| 6862 | + className: "e-loading-wrapper" | |
| 6863 | + }, /*#__PURE__*/_react.default.createElement("h3", null, __('Error:', 'elementor'), " ", this.state.error)); | |
| 6864 | + } | |
| 7054 | 6865 | |
| 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 | -}; | |
| 6866 | + if (this.state.loading) { | |
| 6867 | + return /*#__PURE__*/_react.default.createElement("div", { | |
| 6868 | + className: "elementor-loading" | |
| 6869 | + }, /*#__PURE__*/_react.default.createElement("div", { | |
| 6870 | + className: "elementor-loader-wrapper" | |
| 6871 | + }, /*#__PURE__*/_react.default.createElement("div", { | |
| 6872 | + className: "elementor-loader" | |
| 6873 | + }, /*#__PURE__*/_react.default.createElement("div", { | |
| 6874 | + className: "elementor-loader-boxes" | |
| 6875 | + }, /*#__PURE__*/_react.default.createElement("div", { | |
| 6876 | + className: "elementor-loader-box" | |
| 6877 | + }), /*#__PURE__*/_react.default.createElement("div", { | |
| 6878 | + className: "elementor-loader-box" | |
| 6879 | + }), /*#__PURE__*/_react.default.createElement("div", { | |
| 6880 | + className: "elementor-loader-box" | |
| 6881 | + }), /*#__PURE__*/_react.default.createElement("div", { | |
| 6882 | + className: "elementor-loader-box" | |
| 6883 | + }))), /*#__PURE__*/_react.default.createElement("div", { | |
| 6884 | + className: "elementor-loading-title" | |
| 6885 | + }, __('Loading', 'elementor')))); // <div className="e-loading-wrapper"><h3>{ __( 'Loading', 'elementor' ) }...</h3></div>; | |
| 6886 | + } | |
| 7066 | 6887 | |
| 7067 | -//////////////////////////////////////////////////////////////////////////////// | |
| 6888 | + return /*#__PURE__*/_react.default.createElement(Context.Provider, { | |
| 6889 | + value: this.state | |
| 6890 | + }, this.props.children); | |
| 6891 | + } | |
| 6892 | + }]); | |
| 6893 | + return TemplateTypesContext; | |
| 6894 | +}(_react.default.Component); | |
| 7068 | 6895 | |
| 6896 | +(0, _defineProperty2.default)(TemplateTypesContext, "propTypes", { | |
| 6897 | + children: PropTypes.object.isRequired | |
| 6898 | +}); | |
| 6899 | +var TemplateTypesConsumer = Context.Consumer; | |
| 6900 | +exports.TemplateTypesConsumer = TemplateTypesConsumer; | |
| 6901 | +var _default = TemplateTypesContext; | |
| 6902 | +exports.default = _default; | |
| 6903 | +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(189)["__"], __webpack_require__(41))) | |
| 7069 | 6904 | |
| 7070 | 6905 | /***/ }), |
| 6906 | +/* 414 */, | |
| 6907 | +/* 415 */, | |
| 6908 | +/* 416 */, | |
| 6909 | +/* 417 */, | |
| 6910 | +/* 418 */, | |
| 6911 | +/* 419 */, | |
| 6912 | +/* 420 */, | |
| 6913 | +/* 421 */, | |
| 6914 | +/* 422 */, | |
| 6915 | +/* 423 */, | |
| 6916 | +/* 424 */, | |
| 6917 | +/* 425 */, | |
| 6918 | +/* 426 */, | |
| 6919 | +/* 427 */, | |
| 6920 | +/* 428 */, | |
| 6921 | +/* 429 */, | |
| 6922 | +/* 430 */, | |
| 6923 | +/* 431 */, | |
| 6924 | +/* 432 */, | |
| 6925 | +/* 433 */, | |
| 6926 | +/* 434 */, | |
| 6927 | +/* 435 */, | |
| 6928 | +/* 436 */, | |
| 6929 | +/* 437 */, | |
| 6930 | +/* 438 */, | |
| 6931 | +/* 439 */, | |
| 6932 | +/* 440 */, | |
| 6933 | +/* 441 */, | |
| 6934 | +/* 442 */, | |
| 6935 | +/* 443 */, | |
| 6936 | +/* 444 */, | |
| 6937 | +/* 445 */, | |
| 6938 | +/* 446 */, | |
| 6939 | +/* 447 */, | |
| 6940 | +/* 448 */, | |
| 6941 | +/* 449 */, | |
| 6942 | +/* 450 */, | |
| 6943 | +/* 451 */, | |
| 6944 | +/* 452 */, | |
| 6945 | +/* 453 */, | |
| 6946 | +/* 454 */, | |
| 6947 | +/* 455 */, | |
| 6948 | +/* 456 */, | |
| 6949 | +/* 457 */, | |
| 6950 | +/* 458 */, | |
| 6951 | +/* 459 */, | |
| 6952 | +/* 460 */, | |
| 6953 | +/* 461 */, | |
| 6954 | +/* 462 */, | |
| 6955 | +/* 463 */, | |
| 6956 | +/* 464 */, | |
| 6957 | +/* 465 */, | |
| 6958 | +/* 466 */, | |
| 6959 | +/* 467 */, | |
| 6960 | +/* 468 */, | |
| 6961 | +/* 469 */, | |
| 6962 | +/* 470 */, | |
| 6963 | +/* 471 */, | |
| 6964 | +/* 472 */, | |
| 6965 | +/* 473 */, | |
| 6966 | +/* 474 */, | |
| 6967 | +/* 475 */, | |
| 6968 | +/* 476 */, | |
| 6969 | +/* 477 */, | |
| 6970 | +/* 478 */, | |
| 6971 | +/* 479 */, | |
| 6972 | +/* 480 */, | |
| 6973 | +/* 481 */, | |
| 6974 | +/* 482 */, | |
| 6975 | +/* 483 */, | |
| 6976 | +/* 484 */, | |
| 6977 | +/* 485 */, | |
| 6978 | +/* 486 */, | |
| 6979 | +/* 487 */, | |
| 6980 | +/* 488 */, | |
| 6981 | +/* 489 */, | |
| 6982 | +/* 490 */, | |
| 6983 | +/* 491 */, | |
| 6984 | +/* 492 */, | |
| 6985 | +/* 493 */, | |
| 6986 | +/* 494 */, | |
| 6987 | +/* 495 */, | |
| 6988 | +/* 496 */, | |
| 6989 | +/* 497 */, | |
| 6990 | +/* 498 */, | |
| 6991 | +/* 499 */, | |
| 6992 | +/* 500 */, | |
| 6993 | +/* 501 */, | |
| 6994 | +/* 502 */, | |
| 6995 | +/* 503 */, | |
| 6996 | +/* 504 */, | |
| 6997 | +/* 505 */, | |
| 6998 | +/* 506 */, | |
| 6999 | +/* 507 */, | |
| 7000 | +/* 508 */, | |
| 7001 | +/* 509 */, | |
| 7002 | +/* 510 */, | |
| 7003 | +/* 511 */, | |
| 7004 | +/* 512 */, | |
| 7005 | +/* 513 */, | |
| 7006 | +/* 514 */, | |
| 7007 | +/* 515 */, | |
| 7008 | +/* 516 */, | |
| 7009 | +/* 517 */, | |
| 7010 | +/* 518 */, | |
| 7011 | +/* 519 */, | |
| 7012 | +/* 520 */, | |
| 7013 | +/* 521 */, | |
| 7014 | +/* 522 */, | |
| 7015 | +/* 523 */, | |
| 7016 | +/* 524 */, | |
| 7017 | +/* 525 */, | |
| 7018 | +/* 526 */, | |
| 7019 | +/* 527 */, | |
| 7020 | +/* 528 */, | |
| 7021 | +/* 529 */, | |
| 7022 | +/* 530 */, | |
| 7023 | +/* 531 */, | |
| 7024 | +/* 532 */, | |
| 7025 | +/* 533 */, | |
| 7026 | +/* 534 */, | |
| 7027 | +/* 535 */, | |
| 7028 | +/* 536 */, | |
| 7029 | +/* 537 */, | |
| 7030 | +/* 538 */, | |
| 7031 | +/* 539 */, | |
| 7032 | +/* 540 */, | |
| 7033 | +/* 541 */, | |
| 7034 | +/* 542 */, | |
| 7035 | +/* 543 */, | |
| 7036 | +/* 544 */, | |
| 7037 | +/* 545 */, | |
| 7038 | +/* 546 */, | |
| 7039 | +/* 547 */, | |
| 7040 | +/* 548 */, | |
| 7041 | +/* 549 */, | |
| 7042 | +/* 550 */, | |
| 7043 | +/* 551 */, | |
| 7044 | +/* 552 */, | |
| 7045 | +/* 553 */, | |
| 7046 | +/* 554 */, | |
| 7047 | +/* 555 */, | |
| 7048 | +/* 556 */, | |
| 7049 | +/* 557 */, | |
| 7050 | +/* 558 */, | |
| 7051 | +/* 559 */, | |
| 7052 | +/* 560 */, | |
| 7053 | +/* 561 */, | |
| 7054 | +/* 562 */, | |
| 7055 | +/* 563 */, | |
| 7056 | +/* 564 */, | |
| 7057 | +/* 565 */, | |
| 7058 | +/* 566 */, | |
| 7059 | +/* 567 */, | |
| 7060 | +/* 568 */, | |
| 7061 | +/* 569 */, | |
| 7062 | +/* 570 */, | |
| 7063 | +/* 571 */, | |
| 7064 | +/* 572 */, | |
| 7065 | +/* 573 */, | |
| 7066 | +/* 574 */, | |
| 7067 | +/* 575 */, | |
| 7068 | +/* 576 */, | |
| 7069 | +/* 577 */, | |
| 7070 | +/* 578 */, | |
| 7071 | +/* 579 */, | |
| 7072 | +/* 580 */, | |
| 7073 | +/* 581 */, | |
| 7074 | +/* 582 */, | |
| 7075 | +/* 583 */, | |
| 7076 | +/* 584 */, | |
| 7077 | +/* 585 */, | |
| 7078 | +/* 586 */, | |
| 7079 | +/* 587 */, | |
| 7080 | +/* 588 */, | |
| 7081 | +/* 589 */, | |
| 7082 | +/* 590 */, | |
| 7083 | +/* 591 */, | |
| 7084 | +/* 592 */, | |
| 7085 | +/* 593 */, | |
| 7086 | +/* 594 */, | |
| 7087 | +/* 595 */, | |
| 7088 | +/* 596 */, | |
| 7089 | +/* 597 */, | |
| 7090 | +/* 598 */, | |
| 7091 | +/* 599 */, | |
| 7092 | +/* 600 */, | |
| 7093 | +/* 601 */, | |
| 7094 | +/* 602 */, | |
| 7095 | +/* 603 */, | |
| 7096 | +/* 604 */, | |
| 7097 | +/* 605 */, | |
| 7098 | +/* 606 */, | |
| 7099 | +/* 607 */, | |
| 7100 | +/* 608 */, | |
| 7101 | +/* 609 */, | |
| 7102 | +/* 610 */, | |
| 7103 | +/* 611 */, | |
| 7104 | +/* 612 */, | |
| 7105 | +/* 613 */, | |
| 7106 | +/* 614 */, | |
| 7107 | +/* 615 */, | |
| 7108 | +/* 616 */, | |
| 7109 | +/* 617 */, | |
| 7110 | +/* 618 */, | |
| 7111 | +/* 619 */, | |
| 7112 | +/* 620 */, | |
| 7113 | +/* 621 */, | |
| 7114 | +/* 622 */, | |
| 7115 | +/* 623 */, | |
| 7116 | +/* 624 */, | |
| 7117 | +/* 625 */, | |
| 7118 | +/* 626 */, | |
| 7119 | +/* 627 */, | |
| 7120 | +/* 628 */, | |
| 7121 | +/* 629 */, | |
| 7122 | +/* 630 */, | |
| 7123 | +/* 631 */, | |
| 7124 | +/* 632 */, | |
| 7125 | +/* 633 */, | |
| 7126 | +/* 634 */, | |
| 7127 | +/* 635 */, | |
| 7128 | +/* 636 */, | |
| 7129 | +/* 637 */, | |
| 7130 | +/* 638 */, | |
| 7131 | +/* 639 */, | |
| 7132 | +/* 640 */ | |
| 7133 | +/***/ (function(module, exports, __webpack_require__) { | |
| 7071 | 7134 | |
| 7072 | -/***/ "../node_modules/create-react-context/lib/implementation.js": | |
| 7073 | -/*!******************************************************************!*\ | |
| 7074 | - !*** ../node_modules/create-react-context/lib/implementation.js ***! | |
| 7075 | - \******************************************************************/ | |
| 7076 | -/***/ ((module, exports, __webpack_require__) => { | |
| 7077 | - | |
| 7078 | 7135 | "use strict"; |
| 7079 | 7136 | |
| 7080 | 7137 | |
| 7081 | 7138 | exports.__esModule = true; |
| 7082 | 7139 | |
| 7083 | -var _react = __webpack_require__(/*! react */ "react"); | |
| 7140 | +var _react = __webpack_require__(11); | |
| 7084 | 7141 | |
| 7085 | 7142 | var _react2 = _interopRequireDefault(_react); |
| 7086 | 7143 | |
| 7087 | -var _propTypes = __webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js"); | |
| 7144 | +var _propTypes = __webpack_require__(41); | |
| 7088 | 7145 | |
| 7089 | 7146 | var _propTypes2 = _interopRequireDefault(_propTypes); |
| 7090 | 7147 | |
| 7091 | -var _gud = __webpack_require__(/*! gud */ "../node_modules/gud/index.js"); | |
| 7148 | +var _gud = __webpack_require__(641); | |
| 7092 | 7149 | |
| 7093 | 7150 | var _gud2 = _interopRequireDefault(_gud); |
| 7094 | 7151 | |
| 7095 | -var _warning = __webpack_require__(/*! warning */ "../node_modules/warning/warning.js"); | |
| 7152 | +var _warning = __webpack_require__(643); | |
| 7096 | 7153 | |
| 7097 | 7154 | var _warning2 = _interopRequireDefault(_warning); |
| 7098 | 7155 | |
| 7099 | 7156 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } |
| @@ -7178,11 +7235,9 @@ | ||
| 7178 | 7235 | if (objectIs(oldValue, newValue)) { |
| 7179 | 7236 | changedBits = 0; // No change |
| 7180 | 7237 | } else { |
| 7181 | 7238 | changedBits = typeof calculateChangedBits === 'function' ? calculateChangedBits(oldValue, newValue) : MAX_SIGNED_31_BIT_INT; |
| 7182 | - if (true) { | |
| 7183 | - (0, _warning2.default)((changedBits & MAX_SIGNED_31_BIT_INT) === changedBits, 'calculateChangedBits: Expected the return value to be a ' + '31-bit integer. Instead received: %s', changedBits); | |
| 7184 | - } | |
| 7239 | + if (false) {} | |
| 7185 | 7240 | |
| 7186 | 7241 | changedBits |= 0; |
| 7187 | 7242 | |
| 7188 | 7243 | if (changedBits !== 0) { |
| @@ -7269,67 +7324,60 @@ | ||
| 7269 | 7324 | Consumer: Consumer |
| 7270 | 7325 | }; |
| 7271 | 7326 | } |
| 7272 | 7327 | |
| 7273 | -exports["default"] = createReactContext; | |
| 7328 | +exports.default = createReactContext; | |
| 7274 | 7329 | module.exports = exports['default']; |
| 7275 | 7330 | |
| 7276 | 7331 | /***/ }), |
| 7332 | +/* 641 */ | |
| 7333 | +/***/ (function(module, exports, __webpack_require__) { | |
| 7277 | 7334 | |
| 7278 | -/***/ "../node_modules/create-react-context/lib/index.js": | |
| 7279 | -/*!*********************************************************!*\ | |
| 7280 | - !*** ../node_modules/create-react-context/lib/index.js ***! | |
| 7281 | - \*********************************************************/ | |
| 7282 | -/***/ ((module, exports, __webpack_require__) => { | |
| 7283 | - | |
| 7284 | 7335 | "use strict"; |
| 7336 | +/* WEBPACK VAR INJECTION */(function(global) {// @flow | |
| 7285 | 7337 | |
| 7286 | 7338 | |
| 7287 | -exports.__esModule = true; | |
| 7339 | +var key = '__global_unique_id__'; | |
| 7288 | 7340 | |
| 7289 | -var _react = __webpack_require__(/*! react */ "react"); | |
| 7341 | +module.exports = function() { | |
| 7342 | + return global[key] = (global[key] || 0) + 1; | |
| 7343 | +}; | |
| 7290 | 7344 | |
| 7291 | -var _react2 = _interopRequireDefault(_react); | |
| 7345 | +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(642))) | |
| 7292 | 7346 | |
| 7293 | -var _implementation = __webpack_require__(/*! ./implementation */ "../node_modules/create-react-context/lib/implementation.js"); | |
| 7294 | - | |
| 7295 | -var _implementation2 = _interopRequireDefault(_implementation); | |
| 7296 | - | |
| 7297 | -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | |
| 7298 | - | |
| 7299 | -exports["default"] = _react2.default.createContext || _implementation2.default; | |
| 7300 | -module.exports = exports['default']; | |
| 7301 | - | |
| 7302 | 7347 | /***/ }), |
| 7348 | +/* 642 */ | |
| 7349 | +/***/ (function(module, exports) { | |
| 7303 | 7350 | |
| 7304 | -/***/ "../node_modules/gud/index.js": | |
| 7305 | -/*!************************************!*\ | |
| 7306 | - !*** ../node_modules/gud/index.js ***! | |
| 7307 | - \************************************/ | |
| 7308 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 7351 | +var g; | |
| 7309 | 7352 | |
| 7310 | -"use strict"; | |
| 7311 | -// @flow | |
| 7353 | +// This works in non-strict mode | |
| 7354 | +g = (function() { | |
| 7355 | + return this; | |
| 7356 | +})(); | |
| 7312 | 7357 | |
| 7358 | +try { | |
| 7359 | + // This works if eval is allowed (see CSP) | |
| 7360 | + g = g || new Function("return this")(); | |
| 7361 | +} catch (e) { | |
| 7362 | + // This works if the window reference is available | |
| 7363 | + if (typeof window === "object") g = window; | |
| 7364 | +} | |
| 7313 | 7365 | |
| 7314 | -var key = '__global_unique_id__'; | |
| 7366 | +// g can still be undefined, but nothing to do about it... | |
| 7367 | +// We return undefined, instead of nothing here, so it's | |
| 7368 | +// easier to handle this case. if(!global) { ...} | |
| 7315 | 7369 | |
| 7316 | -module.exports = function() { | |
| 7317 | - return __webpack_require__.g[key] = (__webpack_require__.g[key] || 0) + 1; | |
| 7318 | -}; | |
| 7370 | +module.exports = g; | |
| 7319 | 7371 | |
| 7320 | 7372 | |
| 7321 | 7373 | /***/ }), |
| 7374 | +/* 643 */ | |
| 7375 | +/***/ (function(module, exports, __webpack_require__) { | |
| 7322 | 7376 | |
| 7323 | -/***/ "../node_modules/invariant/browser.js": | |
| 7324 | -/*!********************************************!*\ | |
| 7325 | - !*** ../node_modules/invariant/browser.js ***! | |
| 7326 | - \********************************************/ | |
| 7327 | -/***/ ((module) => { | |
| 7328 | - | |
| 7329 | 7377 | "use strict"; |
| 7330 | 7378 | /** |
| 7331 | - * Copyright (c) 2013-present, Facebook, Inc. | |
| 7379 | + * Copyright (c) 2014-present, Facebook, Inc. | |
| 7332 | 7380 | * |
| 7333 | 7381 | * This source code is licensed under the MIT license found in the |
| 7334 | 7382 | * LICENSE file in the root directory of this source tree. |
| 7335 | 7383 | */ |
| @@ -7336,1545 +7384,2927 @@ | ||
| 7336 | 7384 | |
| 7337 | 7385 | |
| 7338 | 7386 | |
| 7339 | 7387 | /** |
| 7340 | - * Use invariant() to assert state which your program assumes to be true. | |
| 7341 | - * | |
| 7342 | - * Provide sprintf-style format (only %s is supported) and arguments | |
| 7343 | - * to provide information about what broke and what you were | |
| 7344 | - * expecting. | |
| 7345 | - * | |
| 7346 | - * The invariant message will be stripped in production, but the invariant | |
| 7347 | - * will remain to ensure logic does not differ in production. | |
| 7388 | + * Similar to invariant but only logs a warning if the condition is not met. | |
| 7389 | + * This can be used to log issues in development environments in critical | |
| 7390 | + * paths. Removing the logging code for production environments will keep the | |
| 7391 | + * same logic and follow the same code paths. | |
| 7348 | 7392 | */ |
| 7349 | 7393 | |
| 7350 | -var invariant = function(condition, format, a, b, c, d, e, f) { | |
| 7351 | - if (true) { | |
| 7352 | - if (format === undefined) { | |
| 7353 | - throw new Error('invariant requires an error message argument'); | |
| 7394 | +var __DEV__ = "production" !== 'production'; | |
| 7395 | + | |
| 7396 | +var warning = function() {}; | |
| 7397 | + | |
| 7398 | +if (__DEV__) { | |
| 7399 | + var printWarning = function printWarning(format, args) { | |
| 7400 | + var len = arguments.length; | |
| 7401 | + args = new Array(len > 1 ? len - 1 : 0); | |
| 7402 | + for (var key = 1; key < len; key++) { | |
| 7403 | + args[key - 1] = arguments[key]; | |
| 7354 | 7404 | } |
| 7405 | + var argIndex = 0; | |
| 7406 | + var message = 'Warning: ' + | |
| 7407 | + format.replace(/%s/g, function() { | |
| 7408 | + return args[argIndex++]; | |
| 7409 | + }); | |
| 7410 | + if (typeof console !== 'undefined') { | |
| 7411 | + console.error(message); | |
| 7412 | + } | |
| 7413 | + try { | |
| 7414 | + // --- Welcome to debugging React --- | |
| 7415 | + // This error was thrown as a convenience so that you can use this stack | |
| 7416 | + // to find the callsite that caused this warning to fire. | |
| 7417 | + throw new Error(message); | |
| 7418 | + } catch (x) {} | |
| 7355 | 7419 | } |
| 7356 | 7420 | |
| 7357 | - if (!condition) { | |
| 7358 | - var error; | |
| 7421 | + warning = function(condition, format, args) { | |
| 7422 | + var len = arguments.length; | |
| 7423 | + args = new Array(len > 2 ? len - 2 : 0); | |
| 7424 | + for (var key = 2; key < len; key++) { | |
| 7425 | + args[key - 2] = arguments[key]; | |
| 7426 | + } | |
| 7359 | 7427 | if (format === undefined) { |
| 7360 | - error = new Error( | |
| 7361 | - 'Minified exception occurred; use the non-minified dev environment ' + | |
| 7362 | - 'for the full error message and additional helpful warnings.' | |
| 7428 | + throw new Error( | |
| 7429 | + '`warning(condition, format, ...args)` requires a warning ' + | |
| 7430 | + 'message argument' | |
| 7363 | 7431 | ); |
| 7364 | - } else { | |
| 7365 | - var args = [a, b, c, d, e, f]; | |
| 7366 | - var argIndex = 0; | |
| 7367 | - error = new Error( | |
| 7368 | - format.replace(/%s/g, function() { return args[argIndex++]; }) | |
| 7369 | - ); | |
| 7370 | - error.name = 'Invariant Violation'; | |
| 7371 | 7432 | } |
| 7433 | + if (!condition) { | |
| 7434 | + printWarning.apply(null, [format].concat(args)); | |
| 7435 | + } | |
| 7436 | + }; | |
| 7437 | +} | |
| 7372 | 7438 | |
| 7373 | - error.framesToPop = 1; // we don't care about invariant's own frame | |
| 7374 | - throw error; | |
| 7439 | +module.exports = warning; | |
| 7440 | + | |
| 7441 | + | |
| 7442 | +/***/ }), | |
| 7443 | +/* 644 */ | |
| 7444 | +/***/ (function(module, exports, __webpack_require__) { | |
| 7445 | + | |
| 7446 | +"use strict"; | |
| 7447 | +/* WEBPACK VAR INJECTION */(function(__) { | |
| 7448 | + | |
| 7449 | +var _interopRequireDefault = __webpack_require__(0); | |
| 7450 | + | |
| 7451 | +var _Object$defineProperty = __webpack_require__(1); | |
| 7452 | + | |
| 7453 | +_Object$defineProperty(exports, "__esModule", { | |
| 7454 | + value: true | |
| 7455 | +}); | |
| 7456 | + | |
| 7457 | +exports.default = NotFound; | |
| 7458 | + | |
| 7459 | +var _react = _interopRequireDefault(__webpack_require__(11)); | |
| 7460 | + | |
| 7461 | +var _page = _interopRequireDefault(__webpack_require__(404)); | |
| 7462 | + | |
| 7463 | +function NotFound() { | |
| 7464 | + var config = { | |
| 7465 | + title: __('Not Found', 'elementor'), | |
| 7466 | + className: 'eps-app__not-found', | |
| 7467 | + content: /*#__PURE__*/_react.default.createElement("h1", null, " ", __('Not Found', 'elementor'), " "), | |
| 7468 | + sidebar: /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null) | |
| 7469 | + }; | |
| 7470 | + return /*#__PURE__*/_react.default.createElement(_page.default, config); | |
| 7471 | +} | |
| 7472 | +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(189)["__"])) | |
| 7473 | + | |
| 7474 | +/***/ }), | |
| 7475 | +/* 645 */ | |
| 7476 | +/***/ (function(module, exports, __webpack_require__) { | |
| 7477 | + | |
| 7478 | +"use strict"; | |
| 7479 | +/* WEBPACK VAR INJECTION */(function(__, PropTypes) { | |
| 7480 | + | |
| 7481 | +var _interopRequireDefault = __webpack_require__(0); | |
| 7482 | + | |
| 7483 | +var _Object$defineProperty = __webpack_require__(1); | |
| 7484 | + | |
| 7485 | +_Object$defineProperty(exports, "__esModule", { | |
| 7486 | + value: true | |
| 7487 | +}); | |
| 7488 | + | |
| 7489 | +exports.default = Header; | |
| 7490 | + | |
| 7491 | +var _react = _interopRequireDefault(__webpack_require__(11)); | |
| 7492 | + | |
| 7493 | +var _extends2 = _interopRequireDefault(__webpack_require__(188)); | |
| 7494 | + | |
| 7495 | +var _headerButtons = _interopRequireDefault(__webpack_require__(646)); | |
| 7496 | + | |
| 7497 | +var _grid = _interopRequireDefault(__webpack_require__(346)); | |
| 7498 | + | |
| 7499 | +function Header(props) { | |
| 7500 | + var TitleTag = 'span', | |
| 7501 | + titleAttrs = {}; | |
| 7502 | + | |
| 7503 | + if (props.titleRedirectRoute) { | |
| 7504 | + TitleTag = 'a'; | |
| 7505 | + titleAttrs = { | |
| 7506 | + href: "#".concat(props.titleRedirectRoute), | |
| 7507 | + target: '_self' | |
| 7508 | + }; | |
| 7375 | 7509 | } |
| 7510 | + | |
| 7511 | + _react.default.useEffect(function () { | |
| 7512 | + document.title = __('Elementor', 'elementor') + ' | ' + props.title; | |
| 7513 | + }); | |
| 7514 | + | |
| 7515 | + return /*#__PURE__*/_react.default.createElement(_grid.default, { | |
| 7516 | + container: true, | |
| 7517 | + alignItems: "center", | |
| 7518 | + justify: "space-between", | |
| 7519 | + className: "eps-app__header" | |
| 7520 | + }, /*#__PURE__*/_react.default.createElement(TitleTag, (0, _extends2.default)({ | |
| 7521 | + className: "eps-app__logo-title-wrapper" | |
| 7522 | + }, titleAttrs), /*#__PURE__*/_react.default.createElement("i", { | |
| 7523 | + className: "eps-app__logo eicon-elementor" | |
| 7524 | + }), /*#__PURE__*/_react.default.createElement("h1", { | |
| 7525 | + className: "eps-app__title" | |
| 7526 | + }, props.title)), /*#__PURE__*/_react.default.createElement(_headerButtons.default, { | |
| 7527 | + buttons: props.buttons | |
| 7528 | + })); | |
| 7529 | +} | |
| 7530 | + | |
| 7531 | +Header.propTypes = { | |
| 7532 | + title: PropTypes.string, | |
| 7533 | + titleRedirectRoute: PropTypes.string, | |
| 7534 | + buttons: PropTypes.arrayOf(PropTypes.object) | |
| 7376 | 7535 | }; |
| 7536 | +Header.defaultProps = { | |
| 7537 | + buttons: [] | |
| 7538 | +}; | |
| 7539 | +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(189)["__"], __webpack_require__(41))) | |
| 7377 | 7540 | |
| 7378 | -module.exports = invariant; | |
| 7541 | +/***/ }), | |
| 7542 | +/* 646 */ | |
| 7543 | +/***/ (function(module, exports, __webpack_require__) { | |
| 7379 | 7544 | |
| 7545 | +"use strict"; | |
| 7546 | +/* WEBPACK VAR INJECTION */(function(__, PropTypes) { | |
| 7380 | 7547 | |
| 7548 | +var _interopRequireDefault = __webpack_require__(0); | |
| 7549 | + | |
| 7550 | +var _Object$defineProperty = __webpack_require__(1); | |
| 7551 | + | |
| 7552 | +_Object$defineProperty(exports, "__esModule", { | |
| 7553 | + value: true | |
| 7554 | +}); | |
| 7555 | + | |
| 7556 | +exports.default = HeaderButtons; | |
| 7557 | + | |
| 7558 | +var _react = _interopRequireDefault(__webpack_require__(11)); | |
| 7559 | + | |
| 7560 | +var _extends2 = _interopRequireDefault(__webpack_require__(188)); | |
| 7561 | + | |
| 7562 | +var _headerButton = _interopRequireDefault(__webpack_require__(647)); | |
| 7563 | + | |
| 7564 | +function HeaderButtons(props) { | |
| 7565 | + var tools = ''; | |
| 7566 | + | |
| 7567 | + if (props.buttons.length) { | |
| 7568 | + var buttons = props.buttons.map(function (button) { | |
| 7569 | + return /*#__PURE__*/_react.default.createElement(_headerButton.default, (0, _extends2.default)({ | |
| 7570 | + key: button.id | |
| 7571 | + }, button)); | |
| 7572 | + }); | |
| 7573 | + tools = /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, buttons); | |
| 7574 | + } | |
| 7575 | + | |
| 7576 | + return /*#__PURE__*/_react.default.createElement("div", { | |
| 7577 | + className: "eps-app__header-buttons" | |
| 7578 | + }, /*#__PURE__*/_react.default.createElement(_headerButton.default, { | |
| 7579 | + text: __('Close', 'elementor'), | |
| 7580 | + icon: "eicon-close", | |
| 7581 | + className: "eps-app__close-button", | |
| 7582 | + onClick: function onClick() { | |
| 7583 | + if (window.top === window) { | |
| 7584 | + // Directly. | |
| 7585 | + window.top.location = elementorAppConfig.return_url; | |
| 7586 | + } else { | |
| 7587 | + // Iframe. | |
| 7588 | + window.top.$e.run('app/close'); | |
| 7589 | + } | |
| 7590 | + } | |
| 7591 | + }), tools); | |
| 7592 | +} | |
| 7593 | + | |
| 7594 | +HeaderButtons.propTypes = { | |
| 7595 | + buttons: PropTypes.arrayOf(PropTypes.object) | |
| 7596 | +}; | |
| 7597 | +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(189)["__"], __webpack_require__(41))) | |
| 7598 | + | |
| 7381 | 7599 | /***/ }), |
| 7600 | +/* 647 */ | |
| 7601 | +/***/ (function(module, exports, __webpack_require__) { | |
| 7382 | 7602 | |
| 7383 | -/***/ "../node_modules/object-assign/index.js": | |
| 7384 | -/*!**********************************************!*\ | |
| 7385 | - !*** ../node_modules/object-assign/index.js ***! | |
| 7386 | - \**********************************************/ | |
| 7387 | -/***/ ((module) => { | |
| 7603 | +"use strict"; | |
| 7388 | 7604 | |
| 7605 | + | |
| 7606 | +var _interopRequireDefault = __webpack_require__(0); | |
| 7607 | + | |
| 7608 | +var _Object$defineProperty = __webpack_require__(1); | |
| 7609 | + | |
| 7610 | +_Object$defineProperty(exports, "__esModule", { | |
| 7611 | + value: true | |
| 7612 | +}); | |
| 7613 | + | |
| 7614 | +exports.default = void 0; | |
| 7615 | + | |
| 7616 | +var _assign = _interopRequireDefault(__webpack_require__(134)); | |
| 7617 | + | |
| 7618 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2)); | |
| 7619 | + | |
| 7620 | +var _createClass2 = _interopRequireDefault(__webpack_require__(3)); | |
| 7621 | + | |
| 7622 | +var _get2 = _interopRequireDefault(__webpack_require__(26)); | |
| 7623 | + | |
| 7624 | +var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(16)); | |
| 7625 | + | |
| 7626 | +var _inherits2 = _interopRequireDefault(__webpack_require__(4)); | |
| 7627 | + | |
| 7628 | +var _createSuper2 = _interopRequireDefault(__webpack_require__(5)); | |
| 7629 | + | |
| 7630 | +var _defineProperty2 = _interopRequireDefault(__webpack_require__(28)); | |
| 7631 | + | |
| 7632 | +var _button = _interopRequireDefault(__webpack_require__(238)); | |
| 7633 | + | |
| 7634 | +var Button = /*#__PURE__*/function (_BaseButton) { | |
| 7635 | + (0, _inherits2.default)(Button, _BaseButton); | |
| 7636 | + | |
| 7637 | + var _super = (0, _createSuper2.default)(Button); | |
| 7638 | + | |
| 7639 | + function Button() { | |
| 7640 | + (0, _classCallCheck2.default)(this, Button); | |
| 7641 | + return _super.apply(this, arguments); | |
| 7642 | + } | |
| 7643 | + | |
| 7644 | + (0, _createClass2.default)(Button, [{ | |
| 7645 | + key: "getCssId", | |
| 7646 | + value: function getCssId() { | |
| 7647 | + return "eps-app-header-btn-" + (0, _get2.default)((0, _getPrototypeOf2.default)(Button.prototype), "getCssId", this).call(this); | |
| 7648 | + } | |
| 7649 | + }, { | |
| 7650 | + key: "getClassName", | |
| 7651 | + value: function getClassName() { | |
| 7652 | + return "eps-app__header-btn " + (0, _get2.default)((0, _getPrototypeOf2.default)(Button.prototype), "getClassName", this).call(this); | |
| 7653 | + } | |
| 7654 | + }]); | |
| 7655 | + return Button; | |
| 7656 | +}(_button.default); | |
| 7657 | + | |
| 7658 | +exports.default = Button; | |
| 7659 | +(0, _defineProperty2.default)(Button, "defaultProps", (0, _assign.default)({} | |
| 7660 | +/* clone */ | |
| 7661 | +, _button.default.defaultProps, { | |
| 7662 | + hideText: true | |
| 7663 | +})); | |
| 7664 | + | |
| 7665 | +/***/ }), | |
| 7666 | +/* 648 */ | |
| 7667 | +/***/ (function(module, exports) { | |
| 7668 | + | |
| 7669 | + | |
| 7670 | + | |
| 7671 | +/***/ }), | |
| 7672 | +/* 649 */ | |
| 7673 | +/***/ (function(module, exports) { | |
| 7674 | + | |
| 7675 | + | |
| 7676 | + | |
| 7677 | +/***/ }), | |
| 7678 | +/* 650 */ | |
| 7679 | +/***/ (function(module, exports, __webpack_require__) { | |
| 7680 | + | |
| 7389 | 7681 | "use strict"; |
| 7390 | -/* | |
| 7391 | -object-assign | |
| 7392 | -(c) Sindre Sorhus | |
| 7393 | -@license MIT | |
| 7394 | -*/ | |
| 7682 | +/* WEBPACK VAR INJECTION */(function(PropTypes) { | |
| 7395 | 7683 | |
| 7684 | +var _interopRequireDefault = __webpack_require__(0); | |
| 7396 | 7685 | |
| 7397 | -/* eslint-disable no-unused-vars */ | |
| 7398 | -var getOwnPropertySymbols = Object.getOwnPropertySymbols; | |
| 7399 | -var hasOwnProperty = Object.prototype.hasOwnProperty; | |
| 7400 | -var propIsEnumerable = Object.prototype.propertyIsEnumerable; | |
| 7686 | +var _Object$defineProperty = __webpack_require__(1); | |
| 7401 | 7687 | |
| 7402 | -function toObject(val) { | |
| 7403 | - if (val === null || val === undefined) { | |
| 7404 | - throw new TypeError('Object.assign cannot be called with null or undefined'); | |
| 7405 | - } | |
| 7688 | +_Object$defineProperty(exports, "__esModule", { | |
| 7689 | + value: true | |
| 7690 | +}); | |
| 7406 | 7691 | |
| 7407 | - return Object(val); | |
| 7692 | +exports.default = Sidebar; | |
| 7693 | + | |
| 7694 | +var _react = _interopRequireDefault(__webpack_require__(11)); | |
| 7695 | + | |
| 7696 | +function Sidebar(props) { | |
| 7697 | + return /*#__PURE__*/_react.default.createElement("div", { | |
| 7698 | + className: "eps-app__sidebar" | |
| 7699 | + }, props.children); | |
| 7408 | 7700 | } |
| 7409 | 7701 | |
| 7410 | -function shouldUseNative() { | |
| 7411 | - try { | |
| 7412 | - if (!Object.assign) { | |
| 7413 | - return false; | |
| 7414 | - } | |
| 7702 | +Sidebar.propTypes = { | |
| 7703 | + children: PropTypes.object | |
| 7704 | +}; | |
| 7705 | +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(41))) | |
| 7415 | 7706 | |
| 7416 | - // Detect buggy property enumeration order in older V8 versions. | |
| 7707 | +/***/ }), | |
| 7708 | +/* 651 */ | |
| 7709 | +/***/ (function(module, exports, __webpack_require__) { | |
| 7417 | 7710 | |
| 7418 | - // https://bugs.chromium.org/p/v8/issues/detail?id=4118 | |
| 7419 | - var test1 = new String('abc'); // eslint-disable-line no-new-wrappers | |
| 7420 | - test1[5] = 'de'; | |
| 7421 | - if (Object.getOwnPropertyNames(test1)[0] === '5') { | |
| 7422 | - return false; | |
| 7423 | - } | |
| 7711 | +"use strict"; | |
| 7712 | +/* WEBPACK VAR INJECTION */(function(PropTypes) { | |
| 7424 | 7713 | |
| 7425 | - // https://bugs.chromium.org/p/v8/issues/detail?id=3056 | |
| 7426 | - var test2 = {}; | |
| 7427 | - for (var i = 0; i < 10; i++) { | |
| 7428 | - test2['_' + String.fromCharCode(i)] = i; | |
| 7429 | - } | |
| 7430 | - var order2 = Object.getOwnPropertyNames(test2).map(function (n) { | |
| 7431 | - return test2[n]; | |
| 7432 | - }); | |
| 7433 | - if (order2.join('') !== '0123456789') { | |
| 7434 | - return false; | |
| 7435 | - } | |
| 7714 | +var _interopRequireDefault = __webpack_require__(0); | |
| 7436 | 7715 | |
| 7437 | - // https://bugs.chromium.org/p/v8/issues/detail?id=3056 | |
| 7438 | - var test3 = {}; | |
| 7439 | - 'abcdefghijklmnopqrst'.split('').forEach(function (letter) { | |
| 7440 | - test3[letter] = letter; | |
| 7441 | - }); | |
| 7442 | - if (Object.keys(Object.assign({}, test3)).join('') !== | |
| 7443 | - 'abcdefghijklmnopqrst') { | |
| 7444 | - return false; | |
| 7445 | - } | |
| 7716 | +var _Object$defineProperty = __webpack_require__(1); | |
| 7446 | 7717 | |
| 7447 | - return true; | |
| 7448 | - } catch (err) { | |
| 7449 | - // We don't expect any of the above to throw, but better to be safe. | |
| 7450 | - return false; | |
| 7451 | - } | |
| 7718 | +_Object$defineProperty(exports, "__esModule", { | |
| 7719 | + value: true | |
| 7720 | +}); | |
| 7721 | + | |
| 7722 | +exports.default = Content; | |
| 7723 | + | |
| 7724 | +var _react = _interopRequireDefault(__webpack_require__(11)); | |
| 7725 | + | |
| 7726 | +function Content(props) { | |
| 7727 | + return /*#__PURE__*/_react.default.createElement("main", { | |
| 7728 | + className: "eps-app__content" | |
| 7729 | + }, props.children); | |
| 7452 | 7730 | } |
| 7453 | 7731 | |
| 7454 | -module.exports = shouldUseNative() ? Object.assign : function (target, source) { | |
| 7455 | - var from; | |
| 7456 | - var to = toObject(target); | |
| 7457 | - var symbols; | |
| 7732 | +Content.propTypes = { | |
| 7733 | + children: PropTypes.object | |
| 7734 | +}; | |
| 7735 | +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(41))) | |
| 7458 | 7736 | |
| 7459 | - for (var s = 1; s < arguments.length; s++) { | |
| 7460 | - from = Object(arguments[s]); | |
| 7737 | +/***/ }), | |
| 7738 | +/* 652 */ | |
| 7739 | +/***/ (function(module, exports, __webpack_require__) { | |
| 7461 | 7740 | |
| 7462 | - for (var key in from) { | |
| 7463 | - if (hasOwnProperty.call(from, key)) { | |
| 7464 | - to[key] = from[key]; | |
| 7465 | - } | |
| 7466 | - } | |
| 7741 | +"use strict"; | |
| 7742 | +/* WEBPACK VAR INJECTION */(function(PropTypes) { | |
| 7467 | 7743 | |
| 7468 | - if (getOwnPropertySymbols) { | |
| 7469 | - symbols = getOwnPropertySymbols(from); | |
| 7470 | - for (var i = 0; i < symbols.length; i++) { | |
| 7471 | - if (propIsEnumerable.call(from, symbols[i])) { | |
| 7472 | - to[symbols[i]] = from[symbols[i]]; | |
| 7473 | - } | |
| 7474 | - } | |
| 7475 | - } | |
| 7476 | - } | |
| 7744 | +var _interopRequireDefault = __webpack_require__(0); | |
| 7477 | 7745 | |
| 7478 | - return to; | |
| 7746 | +var _Object$defineProperty = __webpack_require__(1); | |
| 7747 | + | |
| 7748 | +_Object$defineProperty(exports, "__esModule", { | |
| 7749 | + value: true | |
| 7750 | +}); | |
| 7751 | + | |
| 7752 | +exports.default = Footer; | |
| 7753 | + | |
| 7754 | +var _react = _interopRequireDefault(__webpack_require__(11)); | |
| 7755 | + | |
| 7756 | +function Footer(props) { | |
| 7757 | + return /*#__PURE__*/_react.default.createElement("footer", { | |
| 7758 | + className: "eps-app__footer" | |
| 7759 | + }, props.children); | |
| 7760 | +} | |
| 7761 | + | |
| 7762 | +Footer.propTypes = { | |
| 7763 | + children: PropTypes.object | |
| 7479 | 7764 | }; |
| 7765 | +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(41))) | |
| 7480 | 7766 | |
| 7767 | +/***/ }), | |
| 7768 | +/* 653 */ | |
| 7769 | +/***/ (function(module, exports, __webpack_require__) { | |
| 7481 | 7770 | |
| 7482 | -/***/ }), | |
| 7771 | +"use strict"; | |
| 7772 | +/* WEBPACK VAR INJECTION */(function(__, PropTypes) { | |
| 7483 | 7773 | |
| 7484 | -/***/ "../node_modules/prop-types/checkPropTypes.js": | |
| 7485 | -/*!****************************************************!*\ | |
| 7486 | - !*** ../node_modules/prop-types/checkPropTypes.js ***! | |
| 7487 | - \****************************************************/ | |
| 7488 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 7774 | +var _interopRequireDefault = __webpack_require__(0); | |
| 7489 | 7775 | |
| 7490 | -"use strict"; | |
| 7491 | -/** | |
| 7492 | - * Copyright (c) 2013-present, Facebook, Inc. | |
| 7493 | - * | |
| 7494 | - * This source code is licensed under the MIT license found in the | |
| 7495 | - * LICENSE file in the root directory of this source tree. | |
| 7496 | - */ | |
| 7776 | +var _Object$defineProperty = __webpack_require__(1); | |
| 7497 | 7777 | |
| 7778 | +_Object$defineProperty(exports, "__esModule", { | |
| 7779 | + value: true | |
| 7780 | +}); | |
| 7498 | 7781 | |
| 7782 | +exports.default = void 0; | |
| 7499 | 7783 | |
| 7500 | -var printWarning = function() {}; | |
| 7784 | +var _react = _interopRequireDefault(__webpack_require__(11)); | |
| 7501 | 7785 | |
| 7502 | -if (true) { | |
| 7503 | - var ReactPropTypesSecret = __webpack_require__(/*! ./lib/ReactPropTypesSecret */ "../node_modules/prop-types/lib/ReactPropTypesSecret.js"); | |
| 7504 | - var loggedTypeFailures = {}; | |
| 7505 | - var has = __webpack_require__(/*! ./lib/has */ "../node_modules/prop-types/lib/has.js"); | |
| 7786 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2)); | |
| 7506 | 7787 | |
| 7507 | - printWarning = function(text) { | |
| 7508 | - var message = 'Warning: ' + text; | |
| 7509 | - if (typeof console !== 'undefined') { | |
| 7510 | - console.error(message); | |
| 7511 | - } | |
| 7512 | - try { | |
| 7513 | - // --- Welcome to debugging React --- | |
| 7514 | - // This error was thrown as a convenience so that you can use this stack | |
| 7515 | - // to find the callsite that caused this warning to fire. | |
| 7516 | - throw new Error(message); | |
| 7517 | - } catch (x) { /**/ } | |
| 7518 | - }; | |
| 7519 | -} | |
| 7788 | +var _createClass2 = _interopRequireDefault(__webpack_require__(3)); | |
| 7520 | 7789 | |
| 7521 | -/** | |
| 7522 | - * Assert that the values match with the type specs. | |
| 7523 | - * Error messages are memorized and will only be shown once. | |
| 7524 | - * | |
| 7525 | - * @param {object} typeSpecs Map of name to a ReactPropType | |
| 7526 | - * @param {object} values Runtime values that need to be type-checked | |
| 7527 | - * @param {string} location e.g. "prop", "context", "child context" | |
| 7528 | - * @param {string} componentName Name of the component for error messages. | |
| 7529 | - * @param {?Function} getStack Returns the component stack. | |
| 7530 | - * @private | |
| 7531 | - */ | |
| 7532 | -function checkPropTypes(typeSpecs, values, location, componentName, getStack) { | |
| 7533 | - if (true) { | |
| 7534 | - for (var typeSpecName in typeSpecs) { | |
| 7535 | - if (has(typeSpecs, typeSpecName)) { | |
| 7536 | - var error; | |
| 7537 | - // Prop type validation may throw. In case they do, we don't want to | |
| 7538 | - // fail the render phase where it didn't fail before. So we log it. | |
| 7539 | - // After these have been cleaned up, we'll let them throw. | |
| 7540 | - try { | |
| 7541 | - // This is intentionally an invariant that gets caught. It's the same | |
| 7542 | - // behavior as without this statement except with a better message. | |
| 7543 | - if (typeof typeSpecs[typeSpecName] !== 'function') { | |
| 7544 | - var err = Error( | |
| 7545 | - (componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' + | |
| 7546 | - 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' + | |
| 7547 | - 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.' | |
| 7548 | - ); | |
| 7549 | - err.name = 'Invariant Violation'; | |
| 7550 | - throw err; | |
| 7551 | - } | |
| 7552 | - error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret); | |
| 7553 | - } catch (ex) { | |
| 7554 | - error = ex; | |
| 7555 | - } | |
| 7556 | - if (error && !(error instanceof Error)) { | |
| 7557 | - printWarning( | |
| 7558 | - (componentName || 'React class') + ': type specification of ' + | |
| 7559 | - location + ' `' + typeSpecName + '` is invalid; the type checker ' + | |
| 7560 | - 'function must return `null` or an `Error` but returned a ' + typeof error + '. ' + | |
| 7561 | - 'You may have forgotten to pass an argument to the type checker ' + | |
| 7562 | - 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' + | |
| 7563 | - 'shape all require an argument).' | |
| 7564 | - ); | |
| 7565 | - } | |
| 7566 | - if (error instanceof Error && !(error.message in loggedTypeFailures)) { | |
| 7567 | - // Only monitor this failure once because there tends to be a lot of the | |
| 7568 | - // same error. | |
| 7569 | - loggedTypeFailures[error.message] = true; | |
| 7790 | +var _inherits2 = _interopRequireDefault(__webpack_require__(4)); | |
| 7570 | 7791 | |
| 7571 | - var stack = getStack ? getStack() : ''; | |
| 7792 | +var _createSuper2 = _interopRequireDefault(__webpack_require__(5)); | |
| 7572 | 7793 | |
| 7573 | - printWarning( | |
| 7574 | - 'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '') | |
| 7575 | - ); | |
| 7576 | - } | |
| 7794 | +var _defineProperty2 = _interopRequireDefault(__webpack_require__(28)); | |
| 7795 | + | |
| 7796 | +var _dialog = _interopRequireDefault(__webpack_require__(405)); | |
| 7797 | + | |
| 7798 | +// In the current time there is no solution to use "getDerivedStateFromError" static method with functional component | |
| 7799 | +// That is why this component is a class component. | |
| 7800 | +// @link https://reactjs.org/docs/hooks-faq.html#do-hooks-cover-all-use-cases-for-classes | |
| 7801 | +var ErrorBoundary = /*#__PURE__*/function (_React$Component) { | |
| 7802 | + (0, _inherits2.default)(ErrorBoundary, _React$Component); | |
| 7803 | + | |
| 7804 | + var _super = (0, _createSuper2.default)(ErrorBoundary); | |
| 7805 | + | |
| 7806 | + function ErrorBoundary(props) { | |
| 7807 | + var _this; | |
| 7808 | + | |
| 7809 | + (0, _classCallCheck2.default)(this, ErrorBoundary); | |
| 7810 | + _this = _super.call(this, props); | |
| 7811 | + _this.state = { | |
| 7812 | + hasError: null | |
| 7813 | + }; | |
| 7814 | + return _this; | |
| 7815 | + } | |
| 7816 | + | |
| 7817 | + (0, _createClass2.default)(ErrorBoundary, [{ | |
| 7818 | + key: "goBack", | |
| 7819 | + value: function goBack() { | |
| 7820 | + // If the app was opened inside an iframe, it will close it, | |
| 7821 | + // if not, it will redirect to the last location. | |
| 7822 | + if (window.top !== window.self) { | |
| 7823 | + window.top.$e.run('app/close'); | |
| 7577 | 7824 | } |
| 7825 | + | |
| 7826 | + window.location = elementorAppConfig.return_url; | |
| 7578 | 7827 | } |
| 7828 | + }, { | |
| 7829 | + key: "render", | |
| 7830 | + value: function render() { | |
| 7831 | + if (this.state.hasError) { | |
| 7832 | + return /*#__PURE__*/_react.default.createElement(_dialog.default, { | |
| 7833 | + title: this.props.title, | |
| 7834 | + text: this.props.text, | |
| 7835 | + approveButtonUrl: this.props.learnMoreUrl, | |
| 7836 | + approveButtonColor: "link", | |
| 7837 | + approveButtonTarget: "_blank", | |
| 7838 | + approveButtonText: __('Learn More', 'elementor'), | |
| 7839 | + dismissButtonText: __('Go Back', 'elementor'), | |
| 7840 | + dismissButtonOnClick: this.goBack | |
| 7841 | + }); | |
| 7842 | + } | |
| 7843 | + | |
| 7844 | + return this.props.children; | |
| 7845 | + } | |
| 7846 | + }], [{ | |
| 7847 | + key: "getDerivedStateFromError", | |
| 7848 | + value: function getDerivedStateFromError() { | |
| 7849 | + return { | |
| 7850 | + hasError: true | |
| 7851 | + }; | |
| 7852 | + } | |
| 7853 | + }]); | |
| 7854 | + return ErrorBoundary; | |
| 7855 | +}(_react.default.Component); | |
| 7856 | + | |
| 7857 | +exports.default = ErrorBoundary; | |
| 7858 | +(0, _defineProperty2.default)(ErrorBoundary, "propTypes", { | |
| 7859 | + children: PropTypes.any, | |
| 7860 | + title: PropTypes.string, | |
| 7861 | + text: PropTypes.string, | |
| 7862 | + learnMoreUrl: PropTypes.string | |
| 7863 | +}); | |
| 7864 | +(0, _defineProperty2.default)(ErrorBoundary, "defaultProps", { | |
| 7865 | + title: __('App could not be loaded', 'elementor'), | |
| 7866 | + text: __('We’re sorry, but something went wrong. Click on ‘Learn more’ and follow each of the steps to quickly solve it.', 'elementor'), | |
| 7867 | + learnMoreUrl: 'https://go.elementor.com/app-general-load-issue/' | |
| 7868 | +}); | |
| 7869 | +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(189)["__"], __webpack_require__(41))) | |
| 7870 | + | |
| 7871 | +/***/ }), | |
| 7872 | +/* 654 */ | |
| 7873 | +/***/ (function(module, exports, __webpack_require__) { | |
| 7874 | + | |
| 7875 | +"use strict"; | |
| 7876 | +/* WEBPACK VAR INJECTION */(function(__, PropTypes) { | |
| 7877 | + | |
| 7878 | +var _interopRequireDefault = __webpack_require__(0); | |
| 7879 | + | |
| 7880 | +var _Object$defineProperty = __webpack_require__(1); | |
| 7881 | + | |
| 7882 | +_Object$defineProperty(exports, "__esModule", { | |
| 7883 | + value: true | |
| 7884 | +}); | |
| 7885 | + | |
| 7886 | +exports.default = DialogWrapper; | |
| 7887 | + | |
| 7888 | +var _react = _interopRequireDefault(__webpack_require__(11)); | |
| 7889 | + | |
| 7890 | +var _button = _interopRequireDefault(__webpack_require__(238)); | |
| 7891 | + | |
| 7892 | +function DialogWrapper(props) { | |
| 7893 | + var WrapperTag = 'div'; | |
| 7894 | + | |
| 7895 | + if (props.onSubmit) { | |
| 7896 | + WrapperTag = 'form'; | |
| 7579 | 7897 | } |
| 7898 | + | |
| 7899 | + return /*#__PURE__*/_react.default.createElement("section", { | |
| 7900 | + className: "eps-modal__overlay" | |
| 7901 | + }, props.onClose && /*#__PURE__*/_react.default.createElement(_button.default, { | |
| 7902 | + onClick: props.onClose, | |
| 7903 | + text: __('Close', 'elementor'), | |
| 7904 | + hideText: true, | |
| 7905 | + icon: "eicon-close", | |
| 7906 | + className: "eps-dialog__close-button" | |
| 7907 | + }), /*#__PURE__*/_react.default.createElement(WrapperTag, { | |
| 7908 | + className: "eps-modal eps-dialog", | |
| 7909 | + onSubmit: props.onSubmit | |
| 7910 | + }, props.children)); | |
| 7580 | 7911 | } |
| 7581 | 7912 | |
| 7582 | -/** | |
| 7583 | - * Resets warning cache when testing. | |
| 7584 | - * | |
| 7585 | - * @private | |
| 7586 | - */ | |
| 7587 | -checkPropTypes.resetWarningCache = function() { | |
| 7588 | - if (true) { | |
| 7589 | - loggedTypeFailures = {}; | |
| 7590 | - } | |
| 7913 | +DialogWrapper.propTypes = { | |
| 7914 | + onClose: PropTypes.func, | |
| 7915 | + onSubmit: PropTypes.func, | |
| 7916 | + children: PropTypes.any | |
| 7917 | +}; | |
| 7918 | +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(189)["__"], __webpack_require__(41))) | |
| 7919 | + | |
| 7920 | +/***/ }), | |
| 7921 | +/* 655 */ | |
| 7922 | +/***/ (function(module, exports, __webpack_require__) { | |
| 7923 | + | |
| 7924 | +"use strict"; | |
| 7925 | +/* WEBPACK VAR INJECTION */(function(PropTypes) { | |
| 7926 | + | |
| 7927 | +var _interopRequireDefault = __webpack_require__(0); | |
| 7928 | + | |
| 7929 | +var _Object$defineProperty = __webpack_require__(1); | |
| 7930 | + | |
| 7931 | +_Object$defineProperty(exports, "__esModule", { | |
| 7932 | + value: true | |
| 7933 | +}); | |
| 7934 | + | |
| 7935 | +exports.default = DialogContent; | |
| 7936 | + | |
| 7937 | +var _react = _interopRequireDefault(__webpack_require__(11)); | |
| 7938 | + | |
| 7939 | +function DialogContent(props) { | |
| 7940 | + return /*#__PURE__*/_react.default.createElement("div", { | |
| 7941 | + className: "eps-dialog__content" | |
| 7942 | + }, props.children); | |
| 7591 | 7943 | } |
| 7592 | 7944 | |
| 7593 | -module.exports = checkPropTypes; | |
| 7945 | +DialogContent.propTypes = { | |
| 7946 | + children: PropTypes.any | |
| 7947 | +}; | |
| 7948 | +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(41))) | |
| 7594 | 7949 | |
| 7950 | +/***/ }), | |
| 7951 | +/* 656 */ | |
| 7952 | +/***/ (function(module, exports, __webpack_require__) { | |
| 7595 | 7953 | |
| 7954 | +"use strict"; | |
| 7955 | +/* WEBPACK VAR INJECTION */(function(PropTypes) { | |
| 7956 | + | |
| 7957 | +var _interopRequireDefault = __webpack_require__(0); | |
| 7958 | + | |
| 7959 | +var _Object$defineProperty = __webpack_require__(1); | |
| 7960 | + | |
| 7961 | +_Object$defineProperty(exports, "__esModule", { | |
| 7962 | + value: true | |
| 7963 | +}); | |
| 7964 | + | |
| 7965 | +exports.default = DialogTitle; | |
| 7966 | + | |
| 7967 | +var _react = _interopRequireDefault(__webpack_require__(11)); | |
| 7968 | + | |
| 7969 | +var _objectSpread2 = _interopRequireDefault(__webpack_require__(214)); | |
| 7970 | + | |
| 7971 | +var _extends2 = _interopRequireDefault(__webpack_require__(188)); | |
| 7972 | + | |
| 7973 | +var _heading = _interopRequireDefault(__webpack_require__(336)); | |
| 7974 | + | |
| 7975 | +function DialogTitle(props) { | |
| 7976 | + return /*#__PURE__*/_react.default.createElement(_heading.default, (0, _extends2.default)({}, props, { | |
| 7977 | + className: "eps-dialog__title ".concat(props.className) | |
| 7978 | + })); | |
| 7979 | +} | |
| 7980 | + | |
| 7981 | +DialogTitle.propTypes = (0, _objectSpread2.default)((0, _objectSpread2.default)({}, _heading.default.propTypes), {}, { | |
| 7982 | + className: PropTypes.string | |
| 7983 | +}); | |
| 7984 | +DialogTitle.defaultProps = (0, _objectSpread2.default)((0, _objectSpread2.default)({}, _heading.default.propTypes), {}, { | |
| 7985 | + variant: 'h3', | |
| 7986 | + tag: 'h3', | |
| 7987 | + className: '' | |
| 7988 | +}); | |
| 7989 | +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(41))) | |
| 7990 | + | |
| 7596 | 7991 | /***/ }), |
| 7992 | +/* 657 */ | |
| 7993 | +/***/ (function(module, exports, __webpack_require__) { | |
| 7597 | 7994 | |
| 7598 | -/***/ "../node_modules/prop-types/factoryWithTypeCheckers.js": | |
| 7599 | -/*!*************************************************************!*\ | |
| 7600 | - !*** ../node_modules/prop-types/factoryWithTypeCheckers.js ***! | |
| 7601 | - \*************************************************************/ | |
| 7602 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 7995 | +"use strict"; | |
| 7603 | 7996 | |
| 7997 | + | |
| 7998 | +var _interopRequireDefault = __webpack_require__(0); | |
| 7999 | + | |
| 8000 | +var _Object$defineProperty = __webpack_require__(1); | |
| 8001 | + | |
| 8002 | +_Object$defineProperty(exports, "__esModule", { | |
| 8003 | + value: true | |
| 8004 | +}); | |
| 8005 | + | |
| 8006 | +exports.default = DialogText; | |
| 8007 | + | |
| 8008 | +var _react = _interopRequireDefault(__webpack_require__(11)); | |
| 8009 | + | |
| 8010 | +var _objectSpread2 = _interopRequireDefault(__webpack_require__(214)); | |
| 8011 | + | |
| 8012 | +var _extends2 = _interopRequireDefault(__webpack_require__(188)); | |
| 8013 | + | |
| 8014 | +var _text = _interopRequireDefault(__webpack_require__(347)); | |
| 8015 | + | |
| 8016 | +function DialogText(props) { | |
| 8017 | + return /*#__PURE__*/_react.default.createElement(_text.default, (0, _extends2.default)({ | |
| 8018 | + variant: "xs" | |
| 8019 | + }, props, { | |
| 8020 | + className: "eps-dialog__text ".concat(props.className) | |
| 8021 | + })); | |
| 8022 | +} | |
| 8023 | + | |
| 8024 | +DialogText.propTypes = (0, _objectSpread2.default)({}, _text.default.propTypes); | |
| 8025 | +DialogText.defaultProps = (0, _objectSpread2.default)((0, _objectSpread2.default)({}, _text.default.defaultProps), {}, { | |
| 8026 | + tag: 'p', | |
| 8027 | + variant: 'sm' | |
| 8028 | +}); | |
| 8029 | + | |
| 8030 | +/***/ }), | |
| 8031 | +/* 658 */ | |
| 8032 | +/***/ (function(module, exports, __webpack_require__) { | |
| 8033 | + | |
| 7604 | 8034 | "use strict"; |
| 7605 | -/** | |
| 7606 | - * Copyright (c) 2013-present, Facebook, Inc. | |
| 7607 | - * | |
| 7608 | - * This source code is licensed under the MIT license found in the | |
| 7609 | - * LICENSE file in the root directory of this source tree. | |
| 7610 | - */ | |
| 8035 | +/* WEBPACK VAR INJECTION */(function(PropTypes) { | |
| 7611 | 8036 | |
| 8037 | +var _interopRequireDefault = __webpack_require__(0); | |
| 7612 | 8038 | |
| 8039 | +var _Object$defineProperty = __webpack_require__(1); | |
| 7613 | 8040 | |
| 7614 | -var ReactIs = __webpack_require__(/*! react-is */ "../node_modules/prop-types/node_modules/react-is/index.js"); | |
| 7615 | -var assign = __webpack_require__(/*! object-assign */ "../node_modules/object-assign/index.js"); | |
| 8041 | +_Object$defineProperty(exports, "__esModule", { | |
| 8042 | + value: true | |
| 8043 | +}); | |
| 7616 | 8044 | |
| 7617 | -var ReactPropTypesSecret = __webpack_require__(/*! ./lib/ReactPropTypesSecret */ "../node_modules/prop-types/lib/ReactPropTypesSecret.js"); | |
| 7618 | -var has = __webpack_require__(/*! ./lib/has */ "../node_modules/prop-types/lib/has.js"); | |
| 7619 | -var checkPropTypes = __webpack_require__(/*! ./checkPropTypes */ "../node_modules/prop-types/checkPropTypes.js"); | |
| 8045 | +exports.default = DialogActions; | |
| 7620 | 8046 | |
| 7621 | -var printWarning = function() {}; | |
| 8047 | +var _react = _interopRequireDefault(__webpack_require__(11)); | |
| 7622 | 8048 | |
| 7623 | -if (true) { | |
| 7624 | - printWarning = function(text) { | |
| 7625 | - var message = 'Warning: ' + text; | |
| 7626 | - if (typeof console !== 'undefined') { | |
| 7627 | - console.error(message); | |
| 7628 | - } | |
| 7629 | - try { | |
| 7630 | - // --- Welcome to debugging React --- | |
| 7631 | - // This error was thrown as a convenience so that you can use this stack | |
| 7632 | - // to find the callsite that caused this warning to fire. | |
| 7633 | - throw new Error(message); | |
| 7634 | - } catch (x) {} | |
| 7635 | - }; | |
| 8049 | +function DialogActions(props) { | |
| 8050 | + return /*#__PURE__*/_react.default.createElement("div", { | |
| 8051 | + className: "eps-dialog__buttons" | |
| 8052 | + }, props.children); | |
| 7636 | 8053 | } |
| 7637 | 8054 | |
| 7638 | -function emptyFunctionThatReturnsNull() { | |
| 7639 | - return null; | |
| 8055 | +DialogActions.propTypes = { | |
| 8056 | + children: PropTypes.any | |
| 8057 | +}; | |
| 8058 | +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(41))) | |
| 8059 | + | |
| 8060 | +/***/ }), | |
| 8061 | +/* 659 */ | |
| 8062 | +/***/ (function(module, exports, __webpack_require__) { | |
| 8063 | + | |
| 8064 | +"use strict"; | |
| 8065 | +/* WEBPACK VAR INJECTION */(function(PropTypes) { | |
| 8066 | + | |
| 8067 | +var _interopRequireDefault = __webpack_require__(0); | |
| 8068 | + | |
| 8069 | +var _Object$defineProperty = __webpack_require__(1); | |
| 8070 | + | |
| 8071 | +_Object$defineProperty(exports, "__esModule", { | |
| 8072 | + value: true | |
| 8073 | +}); | |
| 8074 | + | |
| 8075 | +exports.default = DialogButton; | |
| 8076 | + | |
| 8077 | +var _react = _interopRequireDefault(__webpack_require__(11)); | |
| 8078 | + | |
| 8079 | +var _objectSpread2 = _interopRequireDefault(__webpack_require__(214)); | |
| 8080 | + | |
| 8081 | +var _extends2 = _interopRequireDefault(__webpack_require__(188)); | |
| 8082 | + | |
| 8083 | +var _button = _interopRequireDefault(__webpack_require__(238)); | |
| 8084 | + | |
| 8085 | +function DialogButton(props) { | |
| 8086 | + return /*#__PURE__*/_react.default.createElement(_button.default, (0, _extends2.default)({}, props, { | |
| 8087 | + className: "eps-dialog__button ".concat(props.className) | |
| 8088 | + })); | |
| 7640 | 8089 | } |
| 7641 | 8090 | |
| 7642 | -module.exports = function(isValidElement, throwOnDirectAccess) { | |
| 7643 | - /* global Symbol */ | |
| 7644 | - var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator; | |
| 7645 | - var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec. | |
| 8091 | +DialogButton.propTypes = (0, _objectSpread2.default)((0, _objectSpread2.default)({}, _button.default.propTypes), {}, { | |
| 8092 | + tabIndex: PropTypes.string, | |
| 8093 | + type: PropTypes.string | |
| 8094 | +}); | |
| 8095 | +DialogButton.defaultProps = (0, _objectSpread2.default)((0, _objectSpread2.default)({}, _button.default.defaultProps), {}, { | |
| 8096 | + tabIndex: '0', | |
| 8097 | + type: 'button' | |
| 8098 | +}); | |
| 8099 | +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(41))) | |
| 7646 | 8100 | |
| 7647 | - /** | |
| 7648 | - * Returns the iterator method function contained on the iterable object. | |
| 7649 | - * | |
| 7650 | - * Be sure to invoke the function with the iterable as context: | |
| 7651 | - * | |
| 7652 | - * var iteratorFn = getIteratorFn(myIterable); | |
| 7653 | - * if (iteratorFn) { | |
| 7654 | - * var iterator = iteratorFn.call(myIterable); | |
| 7655 | - * ... | |
| 7656 | - * } | |
| 7657 | - * | |
| 7658 | - * @param {?object} maybeIterable | |
| 7659 | - * @return {?function} | |
| 7660 | - */ | |
| 7661 | - function getIteratorFn(maybeIterable) { | |
| 7662 | - var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]); | |
| 7663 | - if (typeof iteratorFn === 'function') { | |
| 7664 | - return iteratorFn; | |
| 7665 | - } | |
| 7666 | - } | |
| 8101 | +/***/ }), | |
| 8102 | +/* 660 */ | |
| 8103 | +/***/ (function(module, exports) { | |
| 7667 | 8104 | |
| 7668 | - /** | |
| 7669 | - * Collection of methods that allow declaration and validation of props that are | |
| 7670 | - * supplied to React components. Example usage: | |
| 7671 | - * | |
| 7672 | - * var Props = require('ReactPropTypes'); | |
| 7673 | - * var MyArticle = React.createClass({ | |
| 7674 | - * propTypes: { | |
| 7675 | - * // An optional string prop named "description". | |
| 7676 | - * description: Props.string, | |
| 7677 | - * | |
| 7678 | - * // A required enum prop named "category". | |
| 7679 | - * category: Props.oneOf(['News','Photos']).isRequired, | |
| 7680 | - * | |
| 7681 | - * // A prop named "dialog" that requires an instance of Dialog. | |
| 7682 | - * dialog: Props.instanceOf(Dialog).isRequired | |
| 7683 | - * }, | |
| 7684 | - * render: function() { ... } | |
| 7685 | - * }); | |
| 7686 | - * | |
| 7687 | - * A more formal specification of how these methods are used: | |
| 7688 | - * | |
| 7689 | - * type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...) | |
| 7690 | - * decl := ReactPropTypes.{type}(.isRequired)? | |
| 7691 | - * | |
| 7692 | - * Each and every declaration produces a function with the same signature. This | |
| 7693 | - * allows the creation of custom validation functions. For example: | |
| 7694 | - * | |
| 7695 | - * var MyLink = React.createClass({ | |
| 7696 | - * propTypes: { | |
| 7697 | - * // An optional string or URI prop named "href". | |
| 7698 | - * href: function(props, propName, componentName) { | |
| 7699 | - * var propValue = props[propName]; | |
| 7700 | - * if (propValue != null && typeof propValue !== 'string' && | |
| 7701 | - * !(propValue instanceof URI)) { | |
| 7702 | - * return new Error( | |
| 7703 | - * 'Expected a string or an URI for ' + propName + ' in ' + | |
| 7704 | - * componentName | |
| 7705 | - * ); | |
| 7706 | - * } | |
| 7707 | - * } | |
| 7708 | - * }, | |
| 7709 | - * render: function() {...} | |
| 7710 | - * }); | |
| 7711 | - * | |
| 7712 | - * @internal | |
| 7713 | - */ | |
| 7714 | 8105 | |
| 7715 | - var ANONYMOUS = '<<anonymous>>'; | |
| 7716 | 8106 | |
| 7717 | - // Important! | |
| 7718 | - // Keep this list in sync with production version in `./factoryWithThrowingShims.js`. | |
| 7719 | - var ReactPropTypes = { | |
| 7720 | - array: createPrimitiveTypeChecker('array'), | |
| 7721 | - bigint: createPrimitiveTypeChecker('bigint'), | |
| 7722 | - bool: createPrimitiveTypeChecker('boolean'), | |
| 7723 | - func: createPrimitiveTypeChecker('function'), | |
| 7724 | - number: createPrimitiveTypeChecker('number'), | |
| 7725 | - object: createPrimitiveTypeChecker('object'), | |
| 7726 | - string: createPrimitiveTypeChecker('string'), | |
| 7727 | - symbol: createPrimitiveTypeChecker('symbol'), | |
| 8107 | +/***/ }), | |
| 8108 | +/* 661 */, | |
| 8109 | +/* 662 */, | |
| 8110 | +/* 663 */, | |
| 8111 | +/* 664 */, | |
| 8112 | +/* 665 */, | |
| 8113 | +/* 666 */, | |
| 8114 | +/* 667 */, | |
| 8115 | +/* 668 */, | |
| 8116 | +/* 669 */, | |
| 8117 | +/* 670 */, | |
| 8118 | +/* 671 */, | |
| 8119 | +/* 672 */, | |
| 8120 | +/* 673 */, | |
| 8121 | +/* 674 */, | |
| 8122 | +/* 675 */, | |
| 8123 | +/* 676 */, | |
| 8124 | +/* 677 */, | |
| 8125 | +/* 678 */, | |
| 8126 | +/* 679 */, | |
| 8127 | +/* 680 */, | |
| 8128 | +/* 681 */ | |
| 8129 | +/***/ (function(module, exports, __webpack_require__) { | |
| 7728 | 8130 | |
| 7729 | - any: createAnyTypeChecker(), | |
| 7730 | - arrayOf: createArrayOfTypeChecker, | |
| 7731 | - element: createElementTypeChecker(), | |
| 7732 | - elementType: createElementTypeTypeChecker(), | |
| 7733 | - instanceOf: createInstanceTypeChecker, | |
| 7734 | - node: createNodeChecker(), | |
| 7735 | - objectOf: createObjectOfTypeChecker, | |
| 7736 | - oneOf: createEnumTypeChecker, | |
| 7737 | - oneOfType: createUnionTypeChecker, | |
| 7738 | - shape: createShapeTypeChecker, | |
| 7739 | - exact: createStrictShapeTypeChecker, | |
| 7740 | - }; | |
| 8131 | +"use strict"; | |
| 8132 | +/* WEBPACK VAR INJECTION */(function(PropTypes, __) { | |
| 7741 | 8133 | |
| 7742 | - /** | |
| 7743 | - * inlined Object.is polyfill to avoid requiring consumers ship their own | |
| 7744 | - * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is | |
| 7745 | - */ | |
| 7746 | - /*eslint-disable no-self-compare*/ | |
| 7747 | - function is(x, y) { | |
| 7748 | - // SameValue algorithm | |
| 7749 | - if (x === y) { | |
| 7750 | - // Steps 1-5, 7-10 | |
| 7751 | - // Steps 6.b-6.e: +0 != -0 | |
| 7752 | - return x !== 0 || 1 / x === 1 / y; | |
| 7753 | - } else { | |
| 7754 | - // Step 6.a: NaN == NaN | |
| 7755 | - return x !== x && y !== y; | |
| 7756 | - } | |
| 7757 | - } | |
| 7758 | - /*eslint-enable no-self-compare*/ | |
| 8134 | +var _interopRequireDefault = __webpack_require__(0); | |
| 7759 | 8135 | |
| 7760 | - /** | |
| 7761 | - * We use an Error-like object for backward compatibility as people may call | |
| 7762 | - * PropTypes directly and inspect their output. However, we don't use real | |
| 7763 | - * Errors anymore. We don't inspect their stack anyway, and creating them | |
| 7764 | - * is prohibitively expensive if they are created too often, such as what | |
| 7765 | - * happens in oneOfType() for any type before the one that matched. | |
| 7766 | - */ | |
| 7767 | - function PropTypeError(message, data) { | |
| 7768 | - this.message = message; | |
| 7769 | - this.data = data && typeof data === 'object' ? data: {}; | |
| 7770 | - this.stack = ''; | |
| 8136 | +var _Object$defineProperty = __webpack_require__(1); | |
| 8137 | + | |
| 8138 | +_Object$defineProperty(exports, "__esModule", { | |
| 8139 | + value: true | |
| 8140 | +}); | |
| 8141 | + | |
| 8142 | +exports.default = void 0; | |
| 8143 | + | |
| 8144 | +var _objectSpread2 = _interopRequireDefault(__webpack_require__(214)); | |
| 8145 | + | |
| 8146 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2)); | |
| 8147 | + | |
| 8148 | +var _createClass2 = _interopRequireDefault(__webpack_require__(3)); | |
| 8149 | + | |
| 8150 | +var _inherits2 = _interopRequireDefault(__webpack_require__(4)); | |
| 8151 | + | |
| 8152 | +var _createSuper2 = _interopRequireDefault(__webpack_require__(5)); | |
| 8153 | + | |
| 8154 | +var _defineProperty2 = _interopRequireDefault(__webpack_require__(28)); | |
| 8155 | + | |
| 8156 | +var _button = _interopRequireDefault(__webpack_require__(238)); | |
| 8157 | + | |
| 8158 | +__webpack_require__(763); | |
| 8159 | + | |
| 8160 | +var AddNewButton = /*#__PURE__*/function (_Button) { | |
| 8161 | + (0, _inherits2.default)(AddNewButton, _Button); | |
| 8162 | + | |
| 8163 | + var _super = (0, _createSuper2.default)(AddNewButton); | |
| 8164 | + | |
| 8165 | + function AddNewButton() { | |
| 8166 | + (0, _classCallCheck2.default)(this, AddNewButton); | |
| 8167 | + return _super.apply(this, arguments); | |
| 7771 | 8168 | } |
| 7772 | - // Make `instanceof Error` still work for returned errors. | |
| 7773 | - PropTypeError.prototype = Error.prototype; | |
| 7774 | 8169 | |
| 7775 | - function createChainableTypeChecker(validate) { | |
| 7776 | - if (true) { | |
| 7777 | - var manualPropTypeCallCache = {}; | |
| 7778 | - var manualPropTypeWarningCount = 0; | |
| 7779 | - } | |
| 7780 | - function checkType(isRequired, props, propName, componentName, location, propFullName, secret) { | |
| 7781 | - componentName = componentName || ANONYMOUS; | |
| 7782 | - propFullName = propFullName || propName; | |
| 8170 | + (0, _createClass2.default)(AddNewButton, [{ | |
| 8171 | + key: "getClassName", | |
| 8172 | + value: function getClassName() { | |
| 8173 | + var className = this.props.className; | |
| 7783 | 8174 | |
| 7784 | - if (secret !== ReactPropTypesSecret) { | |
| 7785 | - if (throwOnDirectAccess) { | |
| 7786 | - // New behavior only for users of `prop-types` package | |
| 7787 | - var err = new Error( | |
| 7788 | - 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' + | |
| 7789 | - 'Use `PropTypes.checkPropTypes()` to call them. ' + | |
| 7790 | - 'Read more at http://fb.me/use-check-prop-types' | |
| 7791 | - ); | |
| 7792 | - err.name = 'Invariant Violation'; | |
| 7793 | - throw err; | |
| 7794 | - } else if ( true && typeof console !== 'undefined') { | |
| 7795 | - // Old behavior for people using React.PropTypes | |
| 7796 | - var cacheKey = componentName + ':' + propName; | |
| 7797 | - if ( | |
| 7798 | - !manualPropTypeCallCache[cacheKey] && | |
| 7799 | - // Avoid spamming the console because they are often not actionable except for lib authors | |
| 7800 | - manualPropTypeWarningCount < 3 | |
| 7801 | - ) { | |
| 7802 | - printWarning( | |
| 7803 | - 'You are manually calling a React.PropTypes validation ' + | |
| 7804 | - 'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' + | |
| 7805 | - 'and will throw in the standalone `prop-types` package. ' + | |
| 7806 | - 'You may be seeing this warning due to a third-party PropTypes ' + | |
| 7807 | - 'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.' | |
| 7808 | - ); | |
| 7809 | - manualPropTypeCallCache[cacheKey] = true; | |
| 7810 | - manualPropTypeWarningCount++; | |
| 7811 | - } | |
| 7812 | - } | |
| 8175 | + if (this.props.size) { | |
| 8176 | + className += ' eps-add-new-button--' + this.props.size; | |
| 7813 | 8177 | } |
| 7814 | - if (props[propName] == null) { | |
| 7815 | - if (isRequired) { | |
| 7816 | - if (props[propName] === null) { | |
| 7817 | - return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.')); | |
| 7818 | - } | |
| 7819 | - return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.')); | |
| 7820 | - } | |
| 7821 | - return null; | |
| 7822 | - } else { | |
| 7823 | - return validate(props, propName, componentName, location, propFullName); | |
| 7824 | - } | |
| 8178 | + | |
| 8179 | + return className; | |
| 7825 | 8180 | } |
| 8181 | + }]); | |
| 8182 | + return AddNewButton; | |
| 8183 | +}(_button.default); | |
| 7826 | 8184 | |
| 7827 | - var chainedCheckType = checkType.bind(null, false); | |
| 7828 | - chainedCheckType.isRequired = checkType.bind(null, true); | |
| 8185 | +exports.default = AddNewButton; | |
| 8186 | +(0, _defineProperty2.default)(AddNewButton, "propTypes", (0, _objectSpread2.default)((0, _objectSpread2.default)({}, _button.default.propTypes), {}, { | |
| 8187 | + text: PropTypes.string, | |
| 8188 | + size: PropTypes.string | |
| 8189 | +})); | |
| 8190 | +(0, _defineProperty2.default)(AddNewButton, "defaultProps", (0, _objectSpread2.default)((0, _objectSpread2.default)({}, _button.default.defaultProps), {}, { | |
| 8191 | + className: 'eps-add-new-button', | |
| 8192 | + text: __('Add New', 'elementor-pro'), | |
| 8193 | + icon: 'eicon-plus' | |
| 8194 | +})); | |
| 8195 | +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(41), __webpack_require__(189)["__"])) | |
| 7829 | 8196 | |
| 7830 | - return chainedCheckType; | |
| 8197 | +/***/ }), | |
| 8198 | +/* 682 */ | |
| 8199 | +/***/ (function(module, exports, __webpack_require__) { | |
| 8200 | + | |
| 8201 | +"use strict"; | |
| 8202 | +/* WEBPACK VAR INJECTION */(function(PropTypes) { | |
| 8203 | + | |
| 8204 | +var _interopRequireDefault = __webpack_require__(0); | |
| 8205 | + | |
| 8206 | +var _Object$defineProperty = __webpack_require__(1); | |
| 8207 | + | |
| 8208 | +_Object$defineProperty(exports, "__esModule", { | |
| 8209 | + value: true | |
| 8210 | +}); | |
| 8211 | + | |
| 8212 | +exports.default = void 0; | |
| 8213 | + | |
| 8214 | +var _react = _interopRequireDefault(__webpack_require__(11)); | |
| 8215 | + | |
| 8216 | +__webpack_require__(348); | |
| 8217 | + | |
| 8218 | +var Card = _react.default.forwardRef(function (props, ref) { | |
| 8219 | + return /*#__PURE__*/_react.default.createElement("article", { | |
| 8220 | + className: "eps-card ".concat(props.className), | |
| 8221 | + ref: ref | |
| 8222 | + }, props.children); | |
| 8223 | +}); | |
| 8224 | + | |
| 8225 | +Card.propTypes = { | |
| 8226 | + type: PropTypes.string, | |
| 8227 | + className: PropTypes.string, | |
| 8228 | + children: PropTypes.any | |
| 8229 | +}; | |
| 8230 | +Card.defaultProps = { | |
| 8231 | + className: '' | |
| 8232 | +}; | |
| 8233 | +Card.displayName = 'Card'; | |
| 8234 | +var _default = Card; | |
| 8235 | +exports.default = _default; | |
| 8236 | +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(41))) | |
| 8237 | + | |
| 8238 | +/***/ }), | |
| 8239 | +/* 683 */ | |
| 8240 | +/***/ (function(module, exports, __webpack_require__) { | |
| 8241 | + | |
| 8242 | +"use strict"; | |
| 8243 | +/* WEBPACK VAR INJECTION */(function(PropTypes) { | |
| 8244 | + | |
| 8245 | +var _interopRequireDefault = __webpack_require__(0); | |
| 8246 | + | |
| 8247 | +var _Object$defineProperty = __webpack_require__(1); | |
| 8248 | + | |
| 8249 | +_Object$defineProperty(exports, "__esModule", { | |
| 8250 | + value: true | |
| 8251 | +}); | |
| 8252 | + | |
| 8253 | +exports.default = CardBody; | |
| 8254 | + | |
| 8255 | +var _react = _interopRequireDefault(__webpack_require__(11)); | |
| 8256 | + | |
| 8257 | +__webpack_require__(348); | |
| 8258 | + | |
| 8259 | +function CardBody(props) { | |
| 8260 | + return /*#__PURE__*/_react.default.createElement("main", { | |
| 8261 | + className: "eps-card__body ".concat(props.className) | |
| 8262 | + }, props.children); | |
| 8263 | +} | |
| 8264 | + | |
| 8265 | +CardBody.propTypes = { | |
| 8266 | + className: PropTypes.string, | |
| 8267 | + children: PropTypes.object.isRequired | |
| 8268 | +}; | |
| 8269 | +CardBody.defaultProps = { | |
| 8270 | + className: '' | |
| 8271 | +}; | |
| 8272 | +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(41))) | |
| 8273 | + | |
| 8274 | +/***/ }), | |
| 8275 | +/* 684 */ | |
| 8276 | +/***/ (function(module, exports, __webpack_require__) { | |
| 8277 | + | |
| 8278 | +"use strict"; | |
| 8279 | +/* WEBPACK VAR INJECTION */(function(PropTypes) { | |
| 8280 | + | |
| 8281 | +var _interopRequireDefault = __webpack_require__(0); | |
| 8282 | + | |
| 8283 | +var _Object$defineProperty = __webpack_require__(1); | |
| 8284 | + | |
| 8285 | +_Object$defineProperty(exports, "__esModule", { | |
| 8286 | + value: true | |
| 8287 | +}); | |
| 8288 | + | |
| 8289 | +exports.default = CardImage; | |
| 8290 | + | |
| 8291 | +var _react = _interopRequireDefault(__webpack_require__(11)); | |
| 8292 | + | |
| 8293 | +__webpack_require__(348); | |
| 8294 | + | |
| 8295 | +function CardImage(props) { | |
| 8296 | + var image = /*#__PURE__*/_react.default.createElement("img", { | |
| 8297 | + src: props.src, | |
| 8298 | + alt: props.alt, | |
| 8299 | + className: "eps-card__image" | |
| 8300 | + }); | |
| 8301 | + | |
| 8302 | + return /*#__PURE__*/_react.default.createElement("figure", { | |
| 8303 | + className: "eps-card__figure ".concat(props.className) | |
| 8304 | + }, image, props.children); | |
| 8305 | +} | |
| 8306 | + | |
| 8307 | +CardImage.propTypes = { | |
| 8308 | + className: PropTypes.string, | |
| 8309 | + src: PropTypes.string.isRequired, | |
| 8310 | + alt: PropTypes.string.isRequired, | |
| 8311 | + children: PropTypes.any | |
| 8312 | +}; | |
| 8313 | +CardImage.defaultProps = { | |
| 8314 | + className: '' | |
| 8315 | +}; | |
| 8316 | +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(41))) | |
| 8317 | + | |
| 8318 | +/***/ }), | |
| 8319 | +/* 685 */ | |
| 8320 | +/***/ (function(module, exports, __webpack_require__) { | |
| 8321 | + | |
| 8322 | +"use strict"; | |
| 8323 | +/* WEBPACK VAR INJECTION */(function(PropTypes) { | |
| 8324 | + | |
| 8325 | +var _interopRequireDefault = __webpack_require__(0); | |
| 8326 | + | |
| 8327 | +var _Object$defineProperty = __webpack_require__(1); | |
| 8328 | + | |
| 8329 | +_Object$defineProperty(exports, "__esModule", { | |
| 8330 | + value: true | |
| 8331 | +}); | |
| 8332 | + | |
| 8333 | +exports.default = CardHeader; | |
| 8334 | + | |
| 8335 | +var _react = _interopRequireDefault(__webpack_require__(11)); | |
| 8336 | + | |
| 8337 | +__webpack_require__(348); | |
| 8338 | + | |
| 8339 | +function CardHeader(props) { | |
| 8340 | + return /*#__PURE__*/_react.default.createElement("header", { | |
| 8341 | + className: "eps-card__header ".concat(props.className) | |
| 8342 | + }, props.children); | |
| 8343 | +} | |
| 8344 | + | |
| 8345 | +CardHeader.propTypes = { | |
| 8346 | + className: PropTypes.string, | |
| 8347 | + children: PropTypes.any.isRequired | |
| 8348 | +}; | |
| 8349 | +CardHeader.defaultProps = { | |
| 8350 | + className: '' | |
| 8351 | +}; | |
| 8352 | +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(41))) | |
| 8353 | + | |
| 8354 | +/***/ }), | |
| 8355 | +/* 686 */ | |
| 8356 | +/***/ (function(module, exports, __webpack_require__) { | |
| 8357 | + | |
| 8358 | +"use strict"; | |
| 8359 | +/* WEBPACK VAR INJECTION */(function(PropTypes) { | |
| 8360 | + | |
| 8361 | +var _interopRequireDefault = __webpack_require__(0); | |
| 8362 | + | |
| 8363 | +var _Object$defineProperty = __webpack_require__(1); | |
| 8364 | + | |
| 8365 | +_Object$defineProperty(exports, "__esModule", { | |
| 8366 | + value: true | |
| 8367 | +}); | |
| 8368 | + | |
| 8369 | +exports.default = CardOverlay; | |
| 8370 | + | |
| 8371 | +var _react = _interopRequireDefault(__webpack_require__(11)); | |
| 8372 | + | |
| 8373 | +__webpack_require__(348); | |
| 8374 | + | |
| 8375 | +function CardOverlay(props) { | |
| 8376 | + return /*#__PURE__*/_react.default.createElement("div", { | |
| 8377 | + className: "eps-card__image-overlay ".concat(props.className) | |
| 8378 | + }, props.children); | |
| 8379 | +} | |
| 8380 | + | |
| 8381 | +CardOverlay.propTypes = { | |
| 8382 | + className: PropTypes.string, | |
| 8383 | + children: PropTypes.object.isRequired | |
| 8384 | +}; | |
| 8385 | +CardOverlay.defaultProps = { | |
| 8386 | + className: '' | |
| 8387 | +}; | |
| 8388 | +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(41))) | |
| 8389 | + | |
| 8390 | +/***/ }), | |
| 8391 | +/* 687 */ | |
| 8392 | +/***/ (function(module, exports, __webpack_require__) { | |
| 8393 | + | |
| 8394 | +"use strict"; | |
| 8395 | +/* WEBPACK VAR INJECTION */(function(PropTypes) { | |
| 8396 | + | |
| 8397 | +var _interopRequireDefault = __webpack_require__(0); | |
| 8398 | + | |
| 8399 | +var _Object$defineProperty = __webpack_require__(1); | |
| 8400 | + | |
| 8401 | +_Object$defineProperty(exports, "__esModule", { | |
| 8402 | + value: true | |
| 8403 | +}); | |
| 8404 | + | |
| 8405 | +exports.default = CssGrid; | |
| 8406 | + | |
| 8407 | +var _react = _interopRequireDefault(__webpack_require__(11)); | |
| 8408 | + | |
| 8409 | +var _utils = _interopRequireDefault(__webpack_require__(688)); | |
| 8410 | + | |
| 8411 | +__webpack_require__(765); | |
| 8412 | + | |
| 8413 | +function CssGrid(props) { | |
| 8414 | + var gridStyle = { | |
| 8415 | + '--eps-grid-columns': props.columns, | |
| 8416 | + '--eps-grid-spacing': _utils.default.pxToRem(props.spacing), | |
| 8417 | + '--eps-grid-col-min-width': _utils.default.pxToRem(props.colMinWidth), | |
| 8418 | + '--eps-grid-col-max-width': _utils.default.pxToRem(props.colMaxWidth) | |
| 8419 | + }; | |
| 8420 | + return /*#__PURE__*/_react.default.createElement("div", { | |
| 8421 | + style: gridStyle, | |
| 8422 | + className: "eps-css-grid ".concat(props.className) | |
| 8423 | + }, props.children); | |
| 8424 | +} | |
| 8425 | + | |
| 8426 | +CssGrid.propTypes = { | |
| 8427 | + className: PropTypes.string, | |
| 8428 | + children: PropTypes.any.isRequired, | |
| 8429 | + columns: PropTypes.number, | |
| 8430 | + spacing: PropTypes.number, | |
| 8431 | + colMinWidth: PropTypes.number, | |
| 8432 | + colMaxWidth: PropTypes.number | |
| 8433 | +}; | |
| 8434 | +CssGrid.defaultProps = { | |
| 8435 | + spacing: 24, | |
| 8436 | + className: '' | |
| 8437 | +}; | |
| 8438 | +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(41))) | |
| 8439 | + | |
| 8440 | +/***/ }), | |
| 8441 | +/* 688 */ | |
| 8442 | +/***/ (function(module, exports, __webpack_require__) { | |
| 8443 | + | |
| 8444 | +"use strict"; | |
| 8445 | + | |
| 8446 | + | |
| 8447 | +var _interopRequireDefault = __webpack_require__(0); | |
| 8448 | + | |
| 8449 | +var _Object$defineProperty = __webpack_require__(1); | |
| 8450 | + | |
| 8451 | +_Object$defineProperty(exports, "__esModule", { | |
| 8452 | + value: true | |
| 8453 | +}); | |
| 8454 | + | |
| 8455 | +exports.default = void 0; | |
| 8456 | + | |
| 8457 | +__webpack_require__(80); | |
| 8458 | + | |
| 8459 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2)); | |
| 8460 | + | |
| 8461 | +var _defineProperty2 = _interopRequireDefault(__webpack_require__(28)); | |
| 8462 | + | |
| 8463 | +var Utils = function Utils() { | |
| 8464 | + (0, _classCallCheck2.default)(this, Utils); | |
| 8465 | +}; | |
| 8466 | + | |
| 8467 | +exports.default = Utils; | |
| 8468 | +(0, _defineProperty2.default)(Utils, "pxToRem", function (pixels) { | |
| 8469 | + if (!pixels) { | |
| 8470 | + return; | |
| 7831 | 8471 | } |
| 7832 | 8472 | |
| 7833 | - function createPrimitiveTypeChecker(expectedType) { | |
| 7834 | - function validate(props, propName, componentName, location, propFullName, secret) { | |
| 7835 | - var propValue = props[propName]; | |
| 7836 | - var propType = getPropType(propValue); | |
| 7837 | - if (propType !== expectedType) { | |
| 7838 | - // `propValue` being instance of, say, date/regexp, pass the 'object' | |
| 7839 | - // check, but we can offer a more precise error message here rather than | |
| 7840 | - // 'of type `object`'. | |
| 7841 | - var preciseType = getPreciseType(propValue); | |
| 8473 | + return "".concat(pixels * 0.0625, "rem"); | |
| 8474 | +}); | |
| 8475 | +(0, _defineProperty2.default)(Utils, "arrayToClassName", function (array) { | |
| 8476 | + return array.filter(function (classItem) { | |
| 8477 | + return '' !== classItem; | |
| 8478 | + }).join(' '); | |
| 8479 | +}); | |
| 8480 | +(0, _defineProperty2.default)(Utils, "stringToRemValues", function (string) { | |
| 8481 | + return string.split(' ').map(function (value) { | |
| 8482 | + return Utils.pxToRem(value); | |
| 8483 | + }).join(' '); | |
| 8484 | +}); | |
| 7842 | 8485 | |
| 7843 | - return new PropTypeError( | |
| 7844 | - 'Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'), | |
| 7845 | - {expectedType: expectedType} | |
| 7846 | - ); | |
| 7847 | - } | |
| 7848 | - return null; | |
| 8486 | +/***/ }), | |
| 8487 | +/* 689 */ | |
| 8488 | +/***/ (function(module, exports, __webpack_require__) { | |
| 8489 | + | |
| 8490 | +"use strict"; | |
| 8491 | +/* WEBPACK VAR INJECTION */(function(PropTypes) { | |
| 8492 | + | |
| 8493 | +var _interopRequireDefault = __webpack_require__(0); | |
| 8494 | + | |
| 8495 | +var _interopRequireWildcard = __webpack_require__(36); | |
| 8496 | + | |
| 8497 | +var _Object$defineProperty = __webpack_require__(1); | |
| 8498 | + | |
| 8499 | +_Object$defineProperty(exports, "__esModule", { | |
| 8500 | + value: true | |
| 8501 | +}); | |
| 8502 | + | |
| 8503 | +exports.default = DragDrop; | |
| 8504 | + | |
| 8505 | +var _react = _interopRequireWildcard(__webpack_require__(11)); | |
| 8506 | + | |
| 8507 | +var _extends2 = _interopRequireDefault(__webpack_require__(188)); | |
| 8508 | + | |
| 8509 | +var _slicedToArray2 = _interopRequireDefault(__webpack_require__(102)); | |
| 8510 | + | |
| 8511 | +var _utils = _interopRequireDefault(__webpack_require__(688)); | |
| 8512 | + | |
| 8513 | +__webpack_require__(766); | |
| 8514 | + | |
| 8515 | +function DragDrop(props) { | |
| 8516 | + var _useState = (0, _react.useState)(false), | |
| 8517 | + _useState2 = (0, _slicedToArray2.default)(_useState, 2), | |
| 8518 | + isDragOver = _useState2[0], | |
| 8519 | + setIsDragOver = _useState2[1], | |
| 8520 | + getClassName = function getClassName() { | |
| 8521 | + var baseClassName = 'e-app-drag-drop', | |
| 8522 | + classes = [baseClassName, props.className]; | |
| 8523 | + | |
| 8524 | + if (isDragOver && !props.isLoading) { | |
| 8525 | + classes.push(baseClassName + '--drag-over'); | |
| 7849 | 8526 | } |
| 7850 | - return createChainableTypeChecker(validate); | |
| 7851 | - } | |
| 7852 | 8527 | |
| 7853 | - function createAnyTypeChecker() { | |
| 7854 | - return createChainableTypeChecker(emptyFunctionThatReturnsNull); | |
| 7855 | - } | |
| 8528 | + return _utils.default.arrayToClassName(classes); | |
| 8529 | + }, | |
| 8530 | + onDragDropActions = function onDragDropActions(event) { | |
| 8531 | + event.preventDefault(); | |
| 8532 | + event.stopPropagation(); | |
| 8533 | + }, | |
| 8534 | + dragDropEvents = { | |
| 8535 | + onDrop: function onDrop(event) { | |
| 8536 | + onDragDropActions(event); | |
| 8537 | + setIsDragOver(false); | |
| 7856 | 8538 | |
| 7857 | - function createArrayOfTypeChecker(typeChecker) { | |
| 7858 | - function validate(props, propName, componentName, location, propFullName) { | |
| 7859 | - if (typeof typeChecker !== 'function') { | |
| 7860 | - return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.'); | |
| 8539 | + if (props.onDrop) { | |
| 8540 | + props.onDrop(event); | |
| 7861 | 8541 | } |
| 7862 | - var propValue = props[propName]; | |
| 7863 | - if (!Array.isArray(propValue)) { | |
| 7864 | - var propType = getPropType(propValue); | |
| 7865 | - return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.')); | |
| 8542 | + }, | |
| 8543 | + onDragOver: function onDragOver(event) { | |
| 8544 | + onDragDropActions(event); | |
| 8545 | + setIsDragOver(true); | |
| 8546 | + | |
| 8547 | + if (props.onDragOver) { | |
| 8548 | + props.onDragOver(event); | |
| 7866 | 8549 | } |
| 7867 | - for (var i = 0; i < propValue.length; i++) { | |
| 7868 | - var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret); | |
| 7869 | - if (error instanceof Error) { | |
| 7870 | - return error; | |
| 7871 | - } | |
| 8550 | + }, | |
| 8551 | + onDragLeave: function onDragLeave(event) { | |
| 8552 | + onDragDropActions(event); | |
| 8553 | + setIsDragOver(false); | |
| 8554 | + | |
| 8555 | + if (props.onDragLeave) { | |
| 8556 | + props.onDragLeave(event); | |
| 7872 | 8557 | } |
| 7873 | - return null; | |
| 7874 | 8558 | } |
| 7875 | - return createChainableTypeChecker(validate); | |
| 7876 | - } | |
| 8559 | + }; | |
| 7877 | 8560 | |
| 7878 | - function createElementTypeChecker() { | |
| 7879 | - function validate(props, propName, componentName, location, propFullName) { | |
| 7880 | - var propValue = props[propName]; | |
| 7881 | - if (!isValidElement(propValue)) { | |
| 7882 | - var propType = getPropType(propValue); | |
| 7883 | - return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.')); | |
| 8561 | + return /*#__PURE__*/_react.default.createElement("div", (0, _extends2.default)({}, dragDropEvents, { | |
| 8562 | + className: getClassName() | |
| 8563 | + }), props.children); | |
| 8564 | +} | |
| 8565 | + | |
| 8566 | +DragDrop.propTypes = { | |
| 8567 | + className: PropTypes.string, | |
| 8568 | + children: PropTypes.any, | |
| 8569 | + onDrop: PropTypes.func, | |
| 8570 | + onDragLeave: PropTypes.func, | |
| 8571 | + onDragOver: PropTypes.func, | |
| 8572 | + isLoading: PropTypes.bool | |
| 8573 | +}; | |
| 8574 | +DragDrop.defaultProps = { | |
| 8575 | + className: '' | |
| 8576 | +}; | |
| 8577 | +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(41))) | |
| 8578 | + | |
| 8579 | +/***/ }), | |
| 8580 | +/* 690 */ | |
| 8581 | +/***/ (function(module, exports, __webpack_require__) { | |
| 8582 | + | |
| 8583 | +"use strict"; | |
| 8584 | +/* WEBPACK VAR INJECTION */(function(PropTypes, __) { | |
| 8585 | + | |
| 8586 | +var _interopRequireDefault = __webpack_require__(0); | |
| 8587 | + | |
| 8588 | +var _interopRequireWildcard = __webpack_require__(36); | |
| 8589 | + | |
| 8590 | +var _Object$defineProperty = __webpack_require__(1); | |
| 8591 | + | |
| 8592 | +_Object$defineProperty(exports, "__esModule", { | |
| 8593 | + value: true | |
| 8594 | +}); | |
| 8595 | + | |
| 8596 | +exports.default = UploadFile; | |
| 8597 | + | |
| 8598 | +var _react = _interopRequireWildcard(__webpack_require__(11)); | |
| 8599 | + | |
| 8600 | +var _button = _interopRequireDefault(__webpack_require__(238)); | |
| 8601 | + | |
| 8602 | +__webpack_require__(768); | |
| 8603 | + | |
| 8604 | +function UploadFile(props) { | |
| 8605 | + var fileInput = (0, _react.useRef)(null); | |
| 8606 | + return /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement("input", { | |
| 8607 | + ref: fileInput, | |
| 8608 | + type: "file", | |
| 8609 | + className: "e-app-upload-file__input", | |
| 8610 | + onChange: function onChange(event) { | |
| 8611 | + props.onFileSelect(event.target.files, event); | |
| 8612 | + } | |
| 8613 | + }), /*#__PURE__*/_react.default.createElement(_button.default, { | |
| 8614 | + className: "e-app-upload-file__button", | |
| 8615 | + text: props.text, | |
| 8616 | + variant: "contained", | |
| 8617 | + color: "primary", | |
| 8618 | + size: "lg", | |
| 8619 | + hideText: props.isLoading, | |
| 8620 | + icon: props.isLoading ? 'eicon-loading eicon-animation-spin' : '', | |
| 8621 | + onClick: function onClick() { | |
| 8622 | + if (!props.isLoading) { | |
| 8623 | + fileInput.current.click(); | |
| 7884 | 8624 | } |
| 7885 | - return null; | |
| 7886 | 8625 | } |
| 7887 | - return createChainableTypeChecker(validate); | |
| 7888 | - } | |
| 8626 | + })); | |
| 8627 | +} | |
| 7889 | 8628 | |
| 7890 | - function createElementTypeTypeChecker() { | |
| 7891 | - function validate(props, propName, componentName, location, propFullName) { | |
| 7892 | - var propValue = props[propName]; | |
| 7893 | - if (!ReactIs.isValidElementType(propValue)) { | |
| 7894 | - var propType = getPropType(propValue); | |
| 7895 | - return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement type.')); | |
| 7896 | - } | |
| 7897 | - return null; | |
| 8629 | +UploadFile.propTypes = { | |
| 8630 | + className: PropTypes.string, | |
| 8631 | + text: PropTypes.string, | |
| 8632 | + onFileSelect: PropTypes.func, | |
| 8633 | + isLoading: PropTypes.bool | |
| 8634 | +}; | |
| 8635 | +UploadFile.defaultProps = { | |
| 8636 | + className: '', | |
| 8637 | + text: __('Select File', 'elementor') | |
| 8638 | +}; | |
| 8639 | +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(41), __webpack_require__(189)["__"])) | |
| 8640 | + | |
| 8641 | +/***/ }), | |
| 8642 | +/* 691 */ | |
| 8643 | +/***/ (function(module, exports, __webpack_require__) { | |
| 8644 | + | |
| 8645 | +"use strict"; | |
| 8646 | +/* WEBPACK VAR INJECTION */(function(PropTypes) { | |
| 8647 | + | |
| 8648 | +var _interopRequireDefault = __webpack_require__(0); | |
| 8649 | + | |
| 8650 | +var _Object$defineProperty = __webpack_require__(1); | |
| 8651 | + | |
| 8652 | +_Object$defineProperty(exports, "__esModule", { | |
| 8653 | + value: true | |
| 8654 | +}); | |
| 8655 | + | |
| 8656 | +exports.default = Menu; | |
| 8657 | + | |
| 8658 | +var _react = _interopRequireDefault(__webpack_require__(11)); | |
| 8659 | + | |
| 8660 | +__webpack_require__(119); | |
| 8661 | + | |
| 8662 | +var _extends2 = _interopRequireDefault(__webpack_require__(188)); | |
| 8663 | + | |
| 8664 | +__webpack_require__(770); | |
| 8665 | + | |
| 8666 | +var _button = _interopRequireDefault(__webpack_require__(238)); | |
| 8667 | + | |
| 8668 | +var _router = _interopRequireDefault(__webpack_require__(344)); | |
| 8669 | + | |
| 8670 | +var _router2 = __webpack_require__(340); | |
| 8671 | + | |
| 8672 | +function Menu(props) { | |
| 8673 | + var ActionButton = function ActionButton(itemProps) { | |
| 8674 | + if (!props.actionButton) { | |
| 8675 | + return ''; | |
| 7898 | 8676 | } |
| 7899 | - return createChainableTypeChecker(validate); | |
| 8677 | + | |
| 8678 | + return props.actionButton(itemProps); | |
| 8679 | + }; | |
| 8680 | + | |
| 8681 | + if (props.promotion) { | |
| 8682 | + return /*#__PURE__*/_react.default.createElement("nav", { | |
| 8683 | + className: "eps-menu" | |
| 8684 | + }, props.children, /*#__PURE__*/_react.default.createElement("ul", null, props.menuItems.map(function (item) { | |
| 8685 | + return /*#__PURE__*/_react.default.createElement("li", { | |
| 8686 | + key: item.type, | |
| 8687 | + className: "eps-menu-item" | |
| 8688 | + }, /*#__PURE__*/_react.default.createElement(_button.default, (0, _extends2.default)({ | |
| 8689 | + text: item.title, | |
| 8690 | + className: "eps-menu-item__link" | |
| 8691 | + }, item)), /*#__PURE__*/_react.default.createElement(ActionButton, item)); | |
| 8692 | + }))); | |
| 7900 | 8693 | } |
| 7901 | 8694 | |
| 7902 | - function createInstanceTypeChecker(expectedClass) { | |
| 7903 | - function validate(props, propName, componentName, location, propFullName) { | |
| 7904 | - if (!(props[propName] instanceof expectedClass)) { | |
| 7905 | - var expectedClassName = expectedClass.name || ANONYMOUS; | |
| 7906 | - var actualClassName = getClassName(props[propName]); | |
| 7907 | - return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.')); | |
| 7908 | - } | |
| 7909 | - return null; | |
| 7910 | - } | |
| 7911 | - return createChainableTypeChecker(validate); | |
| 8695 | + return /*#__PURE__*/_react.default.createElement(_router2.LocationProvider, { | |
| 8696 | + history: _router.default.appHistory | |
| 8697 | + }, /*#__PURE__*/_react.default.createElement("nav", { | |
| 8698 | + className: "eps-menu" | |
| 8699 | + }, props.children, /*#__PURE__*/_react.default.createElement("ul", null, props.menuItems.map(function (item) { | |
| 8700 | + return /*#__PURE__*/_react.default.createElement(_router2.Match, { | |
| 8701 | + key: item.type, | |
| 8702 | + path: item.url | |
| 8703 | + }, function (_ref) { | |
| 8704 | + var match = _ref.match; | |
| 8705 | + return /*#__PURE__*/_react.default.createElement("li", { | |
| 8706 | + key: item.type, | |
| 8707 | + className: "eps-menu-item".concat(match ? ' eps-menu-item--active' : '') | |
| 8708 | + }, /*#__PURE__*/_react.default.createElement(_button.default, (0, _extends2.default)({ | |
| 8709 | + text: item.title, | |
| 8710 | + className: "eps-menu-item__link" | |
| 8711 | + }, item)), /*#__PURE__*/_react.default.createElement(ActionButton, item)); | |
| 8712 | + }); | |
| 8713 | + })))); | |
| 8714 | +} | |
| 8715 | + | |
| 8716 | +Menu.propTypes = { | |
| 8717 | + menuItems: PropTypes.arrayOf(PropTypes.object), | |
| 8718 | + children: PropTypes.any, | |
| 8719 | + actionButton: PropTypes.func, | |
| 8720 | + promotion: PropTypes.bool | |
| 8721 | +}; | |
| 8722 | +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(41))) | |
| 8723 | + | |
| 8724 | +/***/ }), | |
| 8725 | +/* 692 */ | |
| 8726 | +/***/ (function(module, exports, __webpack_require__) { | |
| 8727 | + | |
| 8728 | +"use strict"; | |
| 8729 | + | |
| 8730 | + | |
| 8731 | +var _interopRequireDefault = __webpack_require__(0); | |
| 8732 | + | |
| 8733 | +var _Object$defineProperty = __webpack_require__(1); | |
| 8734 | + | |
| 8735 | +_Object$defineProperty(exports, "__esModule", { | |
| 8736 | + value: true | |
| 8737 | +}); | |
| 8738 | + | |
| 8739 | +exports.default = void 0; | |
| 8740 | + | |
| 8741 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2)); | |
| 8742 | + | |
| 8743 | +var _createClass2 = _interopRequireDefault(__webpack_require__(3)); | |
| 8744 | + | |
| 8745 | +var _get2 = _interopRequireDefault(__webpack_require__(26)); | |
| 8746 | + | |
| 8747 | +var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(16)); | |
| 8748 | + | |
| 8749 | +var _inherits2 = _interopRequireDefault(__webpack_require__(4)); | |
| 8750 | + | |
| 8751 | +var _createSuper2 = _interopRequireDefault(__webpack_require__(5)); | |
| 8752 | + | |
| 8753 | +__webpack_require__(771); | |
| 8754 | + | |
| 8755 | +var _button = _interopRequireDefault(__webpack_require__(238)); | |
| 8756 | + | |
| 8757 | +var SideMenuItem = /*#__PURE__*/function (_BaseButton) { | |
| 8758 | + (0, _inherits2.default)(SideMenuItem, _BaseButton); | |
| 8759 | + | |
| 8760 | + var _super = (0, _createSuper2.default)(SideMenuItem); | |
| 8761 | + | |
| 8762 | + function SideMenuItem() { | |
| 8763 | + (0, _classCallCheck2.default)(this, SideMenuItem); | |
| 8764 | + return _super.apply(this, arguments); | |
| 7912 | 8765 | } |
| 7913 | 8766 | |
| 7914 | - function createEnumTypeChecker(expectedValues) { | |
| 7915 | - if (!Array.isArray(expectedValues)) { | |
| 7916 | - if (true) { | |
| 7917 | - if (arguments.length > 1) { | |
| 7918 | - printWarning( | |
| 7919 | - 'Invalid arguments supplied to oneOf, expected an array, got ' + arguments.length + ' arguments. ' + | |
| 7920 | - 'A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).' | |
| 7921 | - ); | |
| 7922 | - } else { | |
| 7923 | - printWarning('Invalid argument supplied to oneOf, expected an array.'); | |
| 7924 | - } | |
| 7925 | - } | |
| 7926 | - return emptyFunctionThatReturnsNull; | |
| 8767 | + (0, _createClass2.default)(SideMenuItem, [{ | |
| 8768 | + key: "getCssId", | |
| 8769 | + value: function getCssId() { | |
| 8770 | + return "eps-menu-item-" + (0, _get2.default)((0, _getPrototypeOf2.default)(SideMenuItem.prototype), "getCssId", this).call(this); | |
| 7927 | 8771 | } |
| 8772 | + }, { | |
| 8773 | + key: "getClassName", | |
| 8774 | + value: function getClassName() { | |
| 8775 | + return "eps-menu-item " + (0, _get2.default)((0, _getPrototypeOf2.default)(SideMenuItem.prototype), "getClassName", this).call(this); | |
| 8776 | + } | |
| 8777 | + }]); | |
| 8778 | + return SideMenuItem; | |
| 8779 | +}(_button.default); | |
| 7928 | 8780 | |
| 7929 | - function validate(props, propName, componentName, location, propFullName) { | |
| 7930 | - var propValue = props[propName]; | |
| 7931 | - for (var i = 0; i < expectedValues.length; i++) { | |
| 7932 | - if (is(propValue, expectedValues[i])) { | |
| 7933 | - return null; | |
| 7934 | - } | |
| 7935 | - } | |
| 8781 | +exports.default = SideMenuItem; | |
| 7936 | 8782 | |
| 7937 | - var valuesString = JSON.stringify(expectedValues, function replacer(key, value) { | |
| 7938 | - var type = getPreciseType(value); | |
| 7939 | - if (type === 'symbol') { | |
| 7940 | - return String(value); | |
| 7941 | - } | |
| 7942 | - return value; | |
| 8783 | +/***/ }), | |
| 8784 | +/* 693 */ | |
| 8785 | +/***/ (function(module, exports, __webpack_require__) { | |
| 8786 | + | |
| 8787 | +"use strict"; | |
| 8788 | +/* WEBPACK VAR INJECTION */(function(PropTypes, __) { | |
| 8789 | + | |
| 8790 | +var _interopRequireDefault = __webpack_require__(0); | |
| 8791 | + | |
| 8792 | +var _Object$defineProperty = __webpack_require__(1); | |
| 8793 | + | |
| 8794 | +_Object$defineProperty(exports, "__esModule", { | |
| 8795 | + value: true | |
| 8796 | +}); | |
| 8797 | + | |
| 8798 | +exports.default = void 0; | |
| 8799 | + | |
| 8800 | +var _react = _interopRequireDefault(__webpack_require__(11)); | |
| 8801 | + | |
| 8802 | +var _extends2 = _interopRequireDefault(__webpack_require__(188)); | |
| 8803 | + | |
| 8804 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2)); | |
| 8805 | + | |
| 8806 | +var _createClass2 = _interopRequireDefault(__webpack_require__(3)); | |
| 8807 | + | |
| 8808 | +var _assertThisInitialized2 = _interopRequireDefault(__webpack_require__(49)); | |
| 8809 | + | |
| 8810 | +var _inherits2 = _interopRequireDefault(__webpack_require__(4)); | |
| 8811 | + | |
| 8812 | +var _createSuper2 = _interopRequireDefault(__webpack_require__(5)); | |
| 8813 | + | |
| 8814 | +var _defineProperty2 = _interopRequireDefault(__webpack_require__(28)); | |
| 8815 | + | |
| 8816 | +var _button = _interopRequireDefault(__webpack_require__(238)); | |
| 8817 | + | |
| 8818 | +var _grid = _interopRequireDefault(__webpack_require__(346)); | |
| 8819 | + | |
| 8820 | +var _icon = _interopRequireDefault(__webpack_require__(345)); | |
| 8821 | + | |
| 8822 | +__webpack_require__(772); | |
| 8823 | + | |
| 8824 | +var ModalProvider = /*#__PURE__*/function (_React$Component) { | |
| 8825 | + (0, _inherits2.default)(ModalProvider, _React$Component); | |
| 8826 | + | |
| 8827 | + var _super = (0, _createSuper2.default)(ModalProvider); | |
| 8828 | + | |
| 8829 | + function ModalProvider(props) { | |
| 8830 | + var _this; | |
| 8831 | + | |
| 8832 | + (0, _classCallCheck2.default)(this, ModalProvider); | |
| 8833 | + _this = _super.call(this, props); | |
| 8834 | + (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "hideModal", function () { | |
| 8835 | + _this.setState({ | |
| 8836 | + show: false | |
| 7943 | 8837 | }); |
| 7944 | - return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + String(propValue) + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.')); | |
| 7945 | - } | |
| 7946 | - return createChainableTypeChecker(validate); | |
| 8838 | + }); | |
| 8839 | + (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "showModal", function () { | |
| 8840 | + _this.setState({ | |
| 8841 | + show: true | |
| 8842 | + }); | |
| 8843 | + }); | |
| 8844 | + _this.state = { | |
| 8845 | + hideModal: _this.hideModal, | |
| 8846 | + show: false, | |
| 8847 | + showModal: _this.showModal | |
| 8848 | + }; | |
| 8849 | + return _this; | |
| 7947 | 8850 | } |
| 7948 | 8851 | |
| 7949 | - function createObjectOfTypeChecker(typeChecker) { | |
| 7950 | - function validate(props, propName, componentName, location, propFullName) { | |
| 7951 | - if (typeof typeChecker !== 'function') { | |
| 7952 | - return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.'); | |
| 7953 | - } | |
| 7954 | - var propValue = props[propName]; | |
| 7955 | - var propType = getPropType(propValue); | |
| 7956 | - if (propType !== 'object') { | |
| 7957 | - return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.')); | |
| 7958 | - } | |
| 7959 | - for (var key in propValue) { | |
| 7960 | - if (has(propValue, key)) { | |
| 7961 | - var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret); | |
| 7962 | - if (error instanceof Error) { | |
| 7963 | - return error; | |
| 7964 | - } | |
| 7965 | - } | |
| 7966 | - } | |
| 7967 | - return null; | |
| 8852 | + (0, _createClass2.default)(ModalProvider, [{ | |
| 8853 | + key: "render", | |
| 8854 | + value: function render() { | |
| 8855 | + return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_button.default, (0, _extends2.default)({}, this.props.toggleButtonProps, { | |
| 8856 | + onClick: this.state.showModal | |
| 8857 | + })), /*#__PURE__*/_react.default.createElement(Modal, { | |
| 8858 | + modalProps: this.state, | |
| 8859 | + title: this.props.title | |
| 8860 | + }, this.props.children)); | |
| 7968 | 8861 | } |
| 7969 | - return createChainableTypeChecker(validate); | |
| 7970 | - } | |
| 8862 | + }]); | |
| 8863 | + return ModalProvider; | |
| 8864 | +}(_react.default.Component); | |
| 7971 | 8865 | |
| 7972 | - function createUnionTypeChecker(arrayOfTypeCheckers) { | |
| 7973 | - if (!Array.isArray(arrayOfTypeCheckers)) { | |
| 7974 | - true ? printWarning('Invalid argument supplied to oneOfType, expected an instance of array.') : 0; | |
| 7975 | - return emptyFunctionThatReturnsNull; | |
| 8866 | +exports.default = ModalProvider; | |
| 8867 | +ModalProvider.propTypes = { | |
| 8868 | + children: PropTypes.node.isRequired, | |
| 8869 | + toggleButtonProps: PropTypes.object.isRequired, | |
| 8870 | + title: PropTypes.string.isRequired | |
| 8871 | +}; | |
| 8872 | + | |
| 8873 | +var Modal = /*#__PURE__*/function (_React$Component2) { | |
| 8874 | + (0, _inherits2.default)(Modal, _React$Component2); | |
| 8875 | + | |
| 8876 | + var _super2 = (0, _createSuper2.default)(Modal); | |
| 8877 | + | |
| 8878 | + function Modal() { | |
| 8879 | + var _this2; | |
| 8880 | + | |
| 8881 | + (0, _classCallCheck2.default)(this, Modal); | |
| 8882 | + | |
| 8883 | + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { | |
| 8884 | + args[_key] = arguments[_key]; | |
| 7976 | 8885 | } |
| 7977 | 8886 | |
| 7978 | - for (var i = 0; i < arrayOfTypeCheckers.length; i++) { | |
| 7979 | - var checker = arrayOfTypeCheckers[i]; | |
| 7980 | - if (typeof checker !== 'function') { | |
| 7981 | - printWarning( | |
| 7982 | - 'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' + | |
| 7983 | - 'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.' | |
| 7984 | - ); | |
| 7985 | - return emptyFunctionThatReturnsNull; | |
| 8887 | + _this2 = _super2.call.apply(_super2, [this].concat(args)); | |
| 8888 | + (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this2), "modalRef", _react.default.createRef()); | |
| 8889 | + (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this2), "closeRef", _react.default.createRef()); | |
| 8890 | + (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this2), "closeModal", function (e) { | |
| 8891 | + var modalProps = _this2.props.modalProps; | |
| 8892 | + var node = _this2.modalRef.current, | |
| 8893 | + closeNode = _this2.closeRef.current, | |
| 8894 | + isInCloseNode = closeNode && closeNode.contains(e.target); // ignore if click is inside the modal | |
| 8895 | + | |
| 8896 | + if (node && node.contains(e.target) && !isInCloseNode) { | |
| 8897 | + return; | |
| 7986 | 8898 | } |
| 7987 | - } | |
| 7988 | 8899 | |
| 7989 | - function validate(props, propName, componentName, location, propFullName) { | |
| 7990 | - var expectedTypes = []; | |
| 7991 | - for (var i = 0; i < arrayOfTypeCheckers.length; i++) { | |
| 7992 | - var checker = arrayOfTypeCheckers[i]; | |
| 7993 | - var checkerResult = checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret); | |
| 7994 | - if (checkerResult == null) { | |
| 7995 | - return null; | |
| 7996 | - } | |
| 7997 | - if (checkerResult.data && has(checkerResult.data, 'expectedType')) { | |
| 7998 | - expectedTypes.push(checkerResult.data.expectedType); | |
| 7999 | - } | |
| 8000 | - } | |
| 8001 | - var expectedTypesMessage = (expectedTypes.length > 0) ? ', expected one of type [' + expectedTypes.join(', ') + ']': ''; | |
| 8002 | - return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`' + expectedTypesMessage + '.')); | |
| 8003 | - } | |
| 8004 | - return createChainableTypeChecker(validate); | |
| 8900 | + modalProps.hideModal(); | |
| 8901 | + }); | |
| 8902 | + return _this2; | |
| 8005 | 8903 | } |
| 8006 | 8904 | |
| 8007 | - function createNodeChecker() { | |
| 8008 | - function validate(props, propName, componentName, location, propFullName) { | |
| 8009 | - if (!isNode(props[propName])) { | |
| 8010 | - return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.')); | |
| 8011 | - } | |
| 8012 | - return null; | |
| 8905 | + (0, _createClass2.default)(Modal, [{ | |
| 8906 | + key: "componentDidMount", | |
| 8907 | + value: function componentDidMount() { | |
| 8908 | + document.addEventListener('mousedown', this.closeModal, false); | |
| 8013 | 8909 | } |
| 8014 | - return createChainableTypeChecker(validate); | |
| 8015 | - } | |
| 8910 | + }, { | |
| 8911 | + key: "componentWillUnmount", | |
| 8912 | + value: function componentWillUnmount() { | |
| 8913 | + document.removeEventListener('mousedown', this.closeModal, false); | |
| 8914 | + } | |
| 8915 | + }, { | |
| 8916 | + key: "render", | |
| 8917 | + value: function render() { | |
| 8918 | + var _this$props = this.props, | |
| 8919 | + modalProps = _this$props.modalProps, | |
| 8920 | + children = _this$props.children; | |
| 8921 | + return modalProps.show ? /*#__PURE__*/_react.default.createElement("div", { | |
| 8922 | + className: "eps-modal__overlay", | |
| 8923 | + onClick: this.closeModal | |
| 8924 | + }, /*#__PURE__*/_react.default.createElement("div", { | |
| 8925 | + className: "eps-modal", | |
| 8926 | + ref: this.modalRef | |
| 8927 | + }, /*#__PURE__*/_react.default.createElement(_grid.default, { | |
| 8928 | + container: true, | |
| 8929 | + className: "eps-modal__header", | |
| 8930 | + justify: "space-between", | |
| 8931 | + alignItems: "center" | |
| 8932 | + }, /*#__PURE__*/_react.default.createElement(_grid.default, { | |
| 8933 | + item: true | |
| 8934 | + }, /*#__PURE__*/_react.default.createElement(_icon.default, { | |
| 8935 | + className: "eps-modal__icon eicon-info-circle" | |
| 8936 | + }), this.props.title), /*#__PURE__*/_react.default.createElement(_grid.default, { | |
| 8937 | + item: true | |
| 8938 | + }, /*#__PURE__*/_react.default.createElement("div", { | |
| 8939 | + className: "eps-modal__close-wrapper", | |
| 8940 | + ref: this.closeRef | |
| 8941 | + }, /*#__PURE__*/_react.default.createElement(_button.default, { | |
| 8942 | + text: __('Close', 'elementor'), | |
| 8943 | + hideText: true, | |
| 8944 | + icon: "eicon-close", | |
| 8945 | + onClick: this.closeModal | |
| 8946 | + })))), /*#__PURE__*/_react.default.createElement("div", { | |
| 8947 | + className: "eps-modal__body" | |
| 8948 | + }, children))) : null; | |
| 8949 | + } | |
| 8950 | + }]); | |
| 8951 | + return Modal; | |
| 8952 | +}(_react.default.Component); | |
| 8016 | 8953 | |
| 8017 | - function invalidValidatorError(componentName, location, propFullName, key, type) { | |
| 8018 | - return new PropTypeError( | |
| 8019 | - (componentName || 'React class') + ': ' + location + ' type `' + propFullName + '.' + key + '` is invalid; ' + | |
| 8020 | - 'it must be a function, usually from the `prop-types` package, but received `' + type + '`.' | |
| 8021 | - ); | |
| 8022 | - } | |
| 8954 | +Modal.propTypes = { | |
| 8955 | + modalProps: PropTypes.object.isRequired, | |
| 8956 | + children: PropTypes.any.isRequired, | |
| 8957 | + title: PropTypes.string.isRequired | |
| 8958 | +}; | |
| 8959 | +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(41), __webpack_require__(189)["__"])) | |
| 8023 | 8960 | |
| 8024 | - function createShapeTypeChecker(shapeTypes) { | |
| 8025 | - function validate(props, propName, componentName, location, propFullName) { | |
| 8026 | - var propValue = props[propName]; | |
| 8027 | - var propType = getPropType(propValue); | |
| 8028 | - if (propType !== 'object') { | |
| 8029 | - return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.')); | |
| 8030 | - } | |
| 8031 | - for (var key in shapeTypes) { | |
| 8032 | - var checker = shapeTypes[key]; | |
| 8033 | - if (typeof checker !== 'function') { | |
| 8034 | - return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker)); | |
| 8035 | - } | |
| 8036 | - var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret); | |
| 8037 | - if (error) { | |
| 8038 | - return error; | |
| 8039 | - } | |
| 8040 | - } | |
| 8041 | - return null; | |
| 8042 | - } | |
| 8043 | - return createChainableTypeChecker(validate); | |
| 8044 | - } | |
| 8961 | +/***/ }), | |
| 8962 | +/* 694 */ | |
| 8963 | +/***/ (function(module, exports, __webpack_require__) { | |
| 8045 | 8964 | |
| 8046 | - function createStrictShapeTypeChecker(shapeTypes) { | |
| 8047 | - function validate(props, propName, componentName, location, propFullName) { | |
| 8048 | - var propValue = props[propName]; | |
| 8049 | - var propType = getPropType(propValue); | |
| 8050 | - if (propType !== 'object') { | |
| 8051 | - return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.')); | |
| 8052 | - } | |
| 8053 | - // We need to check all keys in case some are required but missing from props. | |
| 8054 | - var allKeys = assign({}, props[propName], shapeTypes); | |
| 8055 | - for (var key in allKeys) { | |
| 8056 | - var checker = shapeTypes[key]; | |
| 8057 | - if (has(shapeTypes, key) && typeof checker !== 'function') { | |
| 8058 | - return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker)); | |
| 8059 | - } | |
| 8060 | - if (!checker) { | |
| 8061 | - return new PropTypeError( | |
| 8062 | - 'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' + | |
| 8063 | - '\nBad object: ' + JSON.stringify(props[propName], null, ' ') + | |
| 8064 | - '\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ') | |
| 8065 | - ); | |
| 8066 | - } | |
| 8067 | - var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret); | |
| 8068 | - if (error) { | |
| 8069 | - return error; | |
| 8070 | - } | |
| 8071 | - } | |
| 8072 | - return null; | |
| 8073 | - } | |
| 8965 | +"use strict"; | |
| 8966 | +/* WEBPACK VAR INJECTION */(function(PropTypes) { | |
| 8074 | 8967 | |
| 8075 | - return createChainableTypeChecker(validate); | |
| 8076 | - } | |
| 8968 | +var _interopRequireDefault = __webpack_require__(0); | |
| 8077 | 8969 | |
| 8078 | - function isNode(propValue) { | |
| 8079 | - switch (typeof propValue) { | |
| 8080 | - case 'number': | |
| 8081 | - case 'string': | |
| 8082 | - case 'undefined': | |
| 8083 | - return true; | |
| 8084 | - case 'boolean': | |
| 8085 | - return !propValue; | |
| 8086 | - case 'object': | |
| 8087 | - if (Array.isArray(propValue)) { | |
| 8088 | - return propValue.every(isNode); | |
| 8089 | - } | |
| 8090 | - if (propValue === null || isValidElement(propValue)) { | |
| 8091 | - return true; | |
| 8092 | - } | |
| 8970 | +var _Object$defineProperty = __webpack_require__(1); | |
| 8093 | 8971 | |
| 8094 | - var iteratorFn = getIteratorFn(propValue); | |
| 8095 | - if (iteratorFn) { | |
| 8096 | - var iterator = iteratorFn.call(propValue); | |
| 8097 | - var step; | |
| 8098 | - if (iteratorFn !== propValue.entries) { | |
| 8099 | - while (!(step = iterator.next()).done) { | |
| 8100 | - if (!isNode(step.value)) { | |
| 8101 | - return false; | |
| 8102 | - } | |
| 8103 | - } | |
| 8104 | - } else { | |
| 8105 | - // Iterator will provide entry [k,v] tuples rather than values. | |
| 8106 | - while (!(step = iterator.next()).done) { | |
| 8107 | - var entry = step.value; | |
| 8108 | - if (entry) { | |
| 8109 | - if (!isNode(entry[1])) { | |
| 8110 | - return false; | |
| 8111 | - } | |
| 8112 | - } | |
| 8113 | - } | |
| 8114 | - } | |
| 8115 | - } else { | |
| 8116 | - return false; | |
| 8117 | - } | |
| 8972 | +_Object$defineProperty(exports, "__esModule", { | |
| 8973 | + value: true | |
| 8974 | +}); | |
| 8118 | 8975 | |
| 8119 | - return true; | |
| 8120 | - default: | |
| 8121 | - return false; | |
| 8122 | - } | |
| 8123 | - } | |
| 8976 | +exports.default = Select; | |
| 8124 | 8977 | |
| 8125 | - function isSymbol(propType, propValue) { | |
| 8126 | - // Native Symbol. | |
| 8127 | - if (propType === 'symbol') { | |
| 8128 | - return true; | |
| 8129 | - } | |
| 8978 | +var _react = _interopRequireDefault(__webpack_require__(11)); | |
| 8130 | 8979 | |
| 8131 | - // falsy value can't be a Symbol | |
| 8132 | - if (!propValue) { | |
| 8133 | - return false; | |
| 8134 | - } | |
| 8980 | +function Select(props) { | |
| 8981 | + return /*#__PURE__*/_react.default.createElement("select", { | |
| 8982 | + multiple: props.multiple, | |
| 8983 | + className: props.className, | |
| 8984 | + value: props.value, | |
| 8985 | + onChange: props.onChange, | |
| 8986 | + ref: props.elRef | |
| 8987 | + }, props.options.map(function (option) { | |
| 8988 | + return option.children ? /*#__PURE__*/_react.default.createElement("optgroup", { | |
| 8989 | + label: option.label, | |
| 8990 | + key: option.label | |
| 8991 | + }, option.children.map(function (childOption) { | |
| 8992 | + return /*#__PURE__*/_react.default.createElement("option", { | |
| 8993 | + key: childOption.value, | |
| 8994 | + value: childOption.value | |
| 8995 | + }, childOption.label); | |
| 8996 | + })) : /*#__PURE__*/_react.default.createElement("option", { | |
| 8997 | + key: option.value, | |
| 8998 | + value: option.value | |
| 8999 | + }, option.label); | |
| 9000 | + })); | |
| 9001 | +} | |
| 8135 | 9002 | |
| 8136 | - // 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol' | |
| 8137 | - if (propValue['@@toStringTag'] === 'Symbol') { | |
| 8138 | - return true; | |
| 8139 | - } | |
| 9003 | +Select.propTypes = { | |
| 9004 | + className: PropTypes.string, | |
| 9005 | + value: PropTypes.string, | |
| 9006 | + onChange: PropTypes.func, | |
| 9007 | + options: PropTypes.array, | |
| 9008 | + elRef: PropTypes.object, | |
| 9009 | + multiple: PropTypes.bool | |
| 9010 | +}; | |
| 9011 | +Select.defaultProps = { | |
| 9012 | + className: '', | |
| 9013 | + options: [] | |
| 9014 | +}; | |
| 9015 | +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(41))) | |
| 8140 | 9016 | |
| 8141 | - // Fallback for non-spec compliant Symbols which are polyfilled. | |
| 8142 | - if (typeof Symbol === 'function' && propValue instanceof Symbol) { | |
| 8143 | - return true; | |
| 8144 | - } | |
| 9017 | +/***/ }), | |
| 9018 | +/* 695 */ | |
| 9019 | +/***/ (function(module, exports, __webpack_require__) { | |
| 8145 | 9020 | |
| 8146 | - return false; | |
| 8147 | - } | |
| 9021 | +"use strict"; | |
| 9022 | +/* WEBPACK VAR INJECTION */(function(__, PropTypes) { | |
| 8148 | 9023 | |
| 8149 | - // Equivalent of `typeof` but with special handling for array and regexp. | |
| 8150 | - function getPropType(propValue) { | |
| 8151 | - var propType = typeof propValue; | |
| 8152 | - if (Array.isArray(propValue)) { | |
| 8153 | - return 'array'; | |
| 8154 | - } | |
| 8155 | - if (propValue instanceof RegExp) { | |
| 8156 | - // Old webkits (at least until Android 4.0) return 'function' rather than | |
| 8157 | - // 'object' for typeof a RegExp. We'll normalize this here so that /bla/ | |
| 8158 | - // passes PropTypes.object. | |
| 8159 | - return 'object'; | |
| 8160 | - } | |
| 8161 | - if (isSymbol(propType, propValue)) { | |
| 8162 | - return 'symbol'; | |
| 8163 | - } | |
| 8164 | - return propType; | |
| 8165 | - } | |
| 9024 | +var _interopRequireDefault = __webpack_require__(0); | |
| 8166 | 9025 | |
| 8167 | - // This handles more types than `getPropType`. Only used for error messages. | |
| 8168 | - // See `createPrimitiveTypeChecker`. | |
| 8169 | - function getPreciseType(propValue) { | |
| 8170 | - if (typeof propValue === 'undefined' || propValue === null) { | |
| 8171 | - return '' + propValue; | |
| 8172 | - } | |
| 8173 | - var propType = getPropType(propValue); | |
| 8174 | - if (propType === 'object') { | |
| 8175 | - if (propValue instanceof Date) { | |
| 8176 | - return 'date'; | |
| 8177 | - } else if (propValue instanceof RegExp) { | |
| 8178 | - return 'regexp'; | |
| 8179 | - } | |
| 8180 | - } | |
| 8181 | - return propType; | |
| 8182 | - } | |
| 9026 | +var _Object$defineProperty = __webpack_require__(1); | |
| 8183 | 9027 | |
| 8184 | - // Returns a string that is postfixed to a warning about an invalid type. | |
| 8185 | - // For example, "undefined" or "of type array" | |
| 8186 | - function getPostfixForTypeWarning(value) { | |
| 8187 | - var type = getPreciseType(value); | |
| 8188 | - switch (type) { | |
| 8189 | - case 'array': | |
| 8190 | - case 'object': | |
| 8191 | - return 'an ' + type; | |
| 8192 | - case 'boolean': | |
| 8193 | - case 'date': | |
| 8194 | - case 'regexp': | |
| 8195 | - return 'a ' + type; | |
| 8196 | - default: | |
| 8197 | - return type; | |
| 8198 | - } | |
| 8199 | - } | |
| 9028 | +_Object$defineProperty(exports, "__esModule", { | |
| 9029 | + value: true | |
| 9030 | +}); | |
| 8200 | 9031 | |
| 8201 | - // Returns class name of the object, if any. | |
| 8202 | - function getClassName(propValue) { | |
| 8203 | - if (!propValue.constructor || !propValue.constructor.name) { | |
| 8204 | - return ANONYMOUS; | |
| 8205 | - } | |
| 8206 | - return propValue.constructor.name; | |
| 8207 | - } | |
| 9032 | +exports.default = AllPartsButton; | |
| 8208 | 9033 | |
| 8209 | - ReactPropTypes.checkPropTypes = checkPropTypes; | |
| 8210 | - ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache; | |
| 8211 | - ReactPropTypes.PropTypes = ReactPropTypes; | |
| 9034 | +var _react = _interopRequireDefault(__webpack_require__(11)); | |
| 8212 | 9035 | |
| 8213 | - return ReactPropTypes; | |
| 9036 | +__webpack_require__(119); | |
| 9037 | + | |
| 9038 | +var _menuItem = _interopRequireDefault(__webpack_require__(692)); | |
| 9039 | + | |
| 9040 | +var _router = __webpack_require__(340); | |
| 9041 | + | |
| 9042 | +function AllPartsButton(props) { | |
| 9043 | + var activePathname = '/site-editor/templates'; | |
| 9044 | + return /*#__PURE__*/_react.default.createElement(_router.Match, { | |
| 9045 | + path: activePathname | |
| 9046 | + }, function (_ref) { | |
| 9047 | + var match = _ref.match; | |
| 9048 | + var className = "eps-menu-item__link".concat(match || props.promotion ? ' eps-menu-item--active' : ''); | |
| 9049 | + return /*#__PURE__*/_react.default.createElement(_menuItem.default, { | |
| 9050 | + text: __('All Parts', 'elementor'), | |
| 9051 | + className: className, | |
| 9052 | + icon: "eicon-filter", | |
| 9053 | + url: props.url | |
| 9054 | + }); | |
| 9055 | + }); | |
| 9056 | +} | |
| 9057 | + | |
| 9058 | +AllPartsButton.propTypes = { | |
| 9059 | + url: PropTypes.string, | |
| 9060 | + promotion: PropTypes.bool | |
| 8214 | 9061 | }; |
| 9062 | +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(189)["__"], __webpack_require__(41))) | |
| 8215 | 9063 | |
| 9064 | +/***/ }), | |
| 9065 | +/* 696 */ | |
| 9066 | +/***/ (function(module, exports, __webpack_require__) { | |
| 8216 | 9067 | |
| 9068 | +"use strict"; | |
| 9069 | +/* WEBPACK VAR INJECTION */(function(__, PropTypes) { | |
| 9070 | + | |
| 9071 | +var _interopRequireDefault = __webpack_require__(0); | |
| 9072 | + | |
| 9073 | +var _Object$defineProperty = __webpack_require__(1); | |
| 9074 | + | |
| 9075 | +_Object$defineProperty(exports, "__esModule", { | |
| 9076 | + value: true | |
| 9077 | +}); | |
| 9078 | + | |
| 9079 | +exports.default = Layout; | |
| 9080 | + | |
| 9081 | +var _react = _interopRequireDefault(__webpack_require__(11)); | |
| 9082 | + | |
| 9083 | +var _page = _interopRequireDefault(__webpack_require__(404)); | |
| 9084 | + | |
| 9085 | +var _menu = _interopRequireDefault(__webpack_require__(778)); | |
| 9086 | + | |
| 9087 | +var _templateTypes = _interopRequireDefault(__webpack_require__(413)); | |
| 9088 | + | |
| 9089 | +__webpack_require__(781); | |
| 9090 | + | |
| 9091 | +function Layout(props) { | |
| 9092 | + var config = { | |
| 9093 | + title: __('Theme Builder', 'elementor'), | |
| 9094 | + titleRedirectRoute: '/site-editor', | |
| 9095 | + headerButtons: props.headerButtons, | |
| 9096 | + sidebar: /*#__PURE__*/_react.default.createElement(_menu.default, { | |
| 9097 | + allPartsButton: props.allPartsButton, | |
| 9098 | + promotion: props.promotion | |
| 9099 | + }), | |
| 9100 | + content: props.children | |
| 9101 | + }; | |
| 9102 | + return /*#__PURE__*/_react.default.createElement(_templateTypes.default, null, /*#__PURE__*/_react.default.createElement(_page.default, config)); | |
| 9103 | +} | |
| 9104 | + | |
| 9105 | +Layout.propTypes = { | |
| 9106 | + headerButtons: PropTypes.arrayOf(PropTypes.object), | |
| 9107 | + allPartsButton: PropTypes.element.isRequired, | |
| 9108 | + children: PropTypes.object.isRequired, | |
| 9109 | + promotion: PropTypes.bool | |
| 9110 | +}; | |
| 9111 | +Layout.defaultProps = { | |
| 9112 | + headerButtons: [] | |
| 9113 | +}; | |
| 9114 | +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(189)["__"], __webpack_require__(41))) | |
| 9115 | + | |
| 8217 | 9116 | /***/ }), |
| 9117 | +/* 697 */ | |
| 9118 | +/***/ (function(module, exports, __webpack_require__) { | |
| 8218 | 9119 | |
| 8219 | -/***/ "../node_modules/prop-types/index.js": | |
| 8220 | -/*!*******************************************!*\ | |
| 8221 | - !*** ../node_modules/prop-types/index.js ***! | |
| 8222 | - \*******************************************/ | |
| 8223 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 9120 | +"use strict"; | |
| 9121 | +/* WEBPACK VAR INJECTION */(function(__, PropTypes) { | |
| 8224 | 9122 | |
| 9123 | +var _interopRequireDefault = __webpack_require__(0); | |
| 9124 | + | |
| 9125 | +var _Object$defineProperty = __webpack_require__(1); | |
| 9126 | + | |
| 9127 | +_Object$defineProperty(exports, "__esModule", { | |
| 9128 | + value: true | |
| 9129 | +}); | |
| 9130 | + | |
| 9131 | +exports.default = SiteParts; | |
| 9132 | + | |
| 9133 | +var _react = _interopRequireDefault(__webpack_require__(11)); | |
| 9134 | + | |
| 9135 | +var _extends2 = _interopRequireDefault(__webpack_require__(188)); | |
| 9136 | + | |
| 9137 | +var _button = _interopRequireDefault(__webpack_require__(238)); | |
| 9138 | + | |
| 9139 | +var _cssGrid = _interopRequireDefault(__webpack_require__(687)); | |
| 9140 | + | |
| 9141 | +var _modal = _interopRequireDefault(__webpack_require__(693)); | |
| 9142 | + | |
| 9143 | +var _sitePart = _interopRequireDefault(__webpack_require__(698)); | |
| 9144 | + | |
| 9145 | +var _templateTypes = __webpack_require__(413); | |
| 9146 | + | |
| 9147 | +var InfoButton = function InfoButton(props) { | |
| 9148 | + var toggleButtonProps = { | |
| 9149 | + text: __('Info', 'elementor'), | |
| 9150 | + hideText: true, | |
| 9151 | + icon: 'eicon-info-circle e-site-part__info-toggle' | |
| 9152 | + }; | |
| 9153 | + return /*#__PURE__*/_react.default.createElement(_modal.default, { | |
| 9154 | + toggleButtonProps: toggleButtonProps, | |
| 9155 | + title: props.title | |
| 9156 | + }, /*#__PURE__*/_react.default.createElement(_cssGrid.default, { | |
| 9157 | + columns: 2, | |
| 9158 | + spacing: 60 | |
| 9159 | + }, /*#__PURE__*/_react.default.createElement("section", null, /*#__PURE__*/_react.default.createElement("h3", null, props.type), /*#__PURE__*/_react.default.createElement("p", null, props.content, /*#__PURE__*/_react.default.createElement("br", null), /*#__PURE__*/_react.default.createElement(_button.default, { | |
| 9160 | + text: __('Learn More', 'elementor'), | |
| 9161 | + color: "link", | |
| 9162 | + target: "_blank", | |
| 9163 | + url: props.docs | |
| 9164 | + })), /*#__PURE__*/_react.default.createElement("div", { | |
| 9165 | + className: "eps-modal__tip" | |
| 9166 | + }, /*#__PURE__*/_react.default.createElement("h3", null, __('Tip', 'elementor')), /*#__PURE__*/_react.default.createElement("p", null, props.tip))), /*#__PURE__*/_react.default.createElement("section", null, /*#__PURE__*/_react.default.createElement("h3", null, __('Watch Video', 'elementor')), /*#__PURE__*/_react.default.createElement("div", { | |
| 9167 | + className: "video-wrapper" | |
| 9168 | + }, /*#__PURE__*/_react.default.createElement("iframe", { | |
| 9169 | + id: "ytplayer", | |
| 9170 | + src: props.video_url, | |
| 9171 | + frameBorder: "0" | |
| 9172 | + }))))); | |
| 9173 | +}; | |
| 9174 | + | |
| 9175 | +InfoButton.propTypes = { | |
| 9176 | + content: PropTypes.string.isRequired, | |
| 9177 | + docs: PropTypes.string.isRequired, | |
| 9178 | + tip: PropTypes.string.isRequired, | |
| 9179 | + title: PropTypes.string.isRequired, | |
| 9180 | + type: PropTypes.string.isRequired, | |
| 9181 | + video_url: PropTypes.string.isRequired | |
| 9182 | +}; | |
| 9183 | + | |
| 9184 | +function SiteParts(props) { | |
| 9185 | + var _React$useContext = _react.default.useContext(_templateTypes.Context), | |
| 9186 | + templateTypes = _React$useContext.templateTypes; | |
| 9187 | + | |
| 9188 | + return /*#__PURE__*/_react.default.createElement(_cssGrid.default, { | |
| 9189 | + className: "e-site-editor__site-parts", | |
| 9190 | + colMinWidth: 200, | |
| 9191 | + spacing: 25 | |
| 9192 | + }, templateTypes.map(function (item) { | |
| 9193 | + return /*#__PURE__*/_react.default.createElement(_sitePart.default, (0, _extends2.default)({ | |
| 9194 | + className: "e-site-editor__site-part", | |
| 9195 | + actionButton: /*#__PURE__*/_react.default.createElement(InfoButton, (0, _extends2.default)({ | |
| 9196 | + type: item.title | |
| 9197 | + }, item.tooltip_data)), | |
| 9198 | + thumbnail: item.urls.thumbnail, | |
| 9199 | + key: item.type | |
| 9200 | + }, item), _react.default.createElement(props.hoverElement, item)); | |
| 9201 | + })); | |
| 9202 | +} | |
| 9203 | + | |
| 9204 | +SiteParts.propTypes = { | |
| 9205 | + hoverElement: PropTypes.func.isRequired | |
| 9206 | +}; | |
| 9207 | +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(189)["__"], __webpack_require__(41))) | |
| 9208 | + | |
| 9209 | +/***/ }), | |
| 9210 | +/* 698 */ | |
| 9211 | +/***/ (function(module, exports, __webpack_require__) { | |
| 9212 | + | |
| 9213 | +"use strict"; | |
| 9214 | +/* WEBPACK VAR INJECTION */(function(PropTypes) { | |
| 9215 | + | |
| 9216 | +var _interopRequireDefault = __webpack_require__(0); | |
| 9217 | + | |
| 9218 | +var _Object$defineProperty = __webpack_require__(1); | |
| 9219 | + | |
| 9220 | +_Object$defineProperty(exports, "__esModule", { | |
| 9221 | + value: true | |
| 9222 | +}); | |
| 9223 | + | |
| 9224 | +exports.default = SitePart; | |
| 9225 | + | |
| 9226 | +var _react = _interopRequireDefault(__webpack_require__(11)); | |
| 9227 | + | |
| 9228 | +var _card = _interopRequireDefault(__webpack_require__(682)); | |
| 9229 | + | |
| 9230 | +var _cardHeader = _interopRequireDefault(__webpack_require__(685)); | |
| 9231 | + | |
| 9232 | +var _cardBody = _interopRequireDefault(__webpack_require__(683)); | |
| 9233 | + | |
| 9234 | +var _cardImage = _interopRequireDefault(__webpack_require__(684)); | |
| 9235 | + | |
| 9236 | +var _heading = _interopRequireDefault(__webpack_require__(336)); | |
| 9237 | + | |
| 9238 | +__webpack_require__(784); | |
| 9239 | + | |
| 9240 | +function SitePart(props) { | |
| 9241 | + return /*#__PURE__*/_react.default.createElement(_card.default, { | |
| 9242 | + className: "e-site-part" | |
| 9243 | + }, /*#__PURE__*/_react.default.createElement(_cardHeader.default, null, /*#__PURE__*/_react.default.createElement(_heading.default, { | |
| 9244 | + tag: "h1", | |
| 9245 | + variant: "text-sm", | |
| 9246 | + className: "eps-card__headline" | |
| 9247 | + }, props.title), props.actionButton), /*#__PURE__*/_react.default.createElement(_cardBody.default, null, /*#__PURE__*/_react.default.createElement(_cardImage.default, { | |
| 9248 | + alt: props.title, | |
| 9249 | + src: props.thumbnail | |
| 9250 | + }, props.children))); | |
| 9251 | +} | |
| 9252 | + | |
| 9253 | +SitePart.propTypes = { | |
| 9254 | + thumbnail: PropTypes.string.isRequired, | |
| 9255 | + title: PropTypes.string.isRequired, | |
| 9256 | + children: PropTypes.object, | |
| 9257 | + showIndicator: PropTypes.bool, | |
| 9258 | + actionButton: PropTypes.object | |
| 9259 | +}; | |
| 9260 | +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(41))) | |
| 9261 | + | |
| 9262 | +/***/ }), | |
| 9263 | +/* 699 */ | |
| 9264 | +/***/ (function(module, exports, __webpack_require__) { | |
| 9265 | + | |
| 9266 | +"use strict"; | |
| 9267 | +/* WEBPACK VAR INJECTION */(function(__) { | |
| 9268 | + | |
| 9269 | +var _interopRequireDefault = __webpack_require__(0); | |
| 9270 | + | |
| 9271 | +var _Object$defineProperty = __webpack_require__(1); | |
| 9272 | + | |
| 9273 | +_Object$defineProperty(exports, "__esModule", { | |
| 9274 | + value: true | |
| 9275 | +}); | |
| 9276 | + | |
| 9277 | +exports.default = NotFound; | |
| 9278 | + | |
| 9279 | +var _react = _interopRequireDefault(__webpack_require__(11)); | |
| 9280 | + | |
| 9281 | +__webpack_require__(80); | |
| 9282 | + | |
| 9283 | +var _dialog = _interopRequireDefault(__webpack_require__(405)); | |
| 9284 | + | |
| 9285 | +function NotFound() { | |
| 9286 | + var url = _react.default.useMemo(function () { | |
| 9287 | + var _elementorAppConfig$m; | |
| 9288 | + | |
| 9289 | + return ((_elementorAppConfig$m = elementorAppConfig.menu_url.split('#')) === null || _elementorAppConfig$m === void 0 ? void 0 : _elementorAppConfig$m[1]) || '/site-editor'; | |
| 9290 | + }, []); | |
| 9291 | + | |
| 9292 | + return /*#__PURE__*/_react.default.createElement(_dialog.default, { | |
| 9293 | + title: __('Theme Builder could not be loaded', 'elementor'), | |
| 9294 | + text: __('We’re sorry, but something went wrong. Click on ‘Learn more’ and follow each of the steps to quickly solve it.', 'elementor'), | |
| 9295 | + approveButtonUrl: "https://go.elementor.com/app-theme-builder-load-issue", | |
| 9296 | + approveButtonColor: "link", | |
| 9297 | + approveButtonTarget: "_blank", | |
| 9298 | + approveButtonText: __('Learn More', 'elementor'), | |
| 9299 | + dismissButtonText: __('Go Back', 'elementor'), | |
| 9300 | + dismissButtonUrl: url | |
| 9301 | + }); | |
| 9302 | +} | |
| 9303 | +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(189)["__"])) | |
| 9304 | + | |
| 9305 | +/***/ }), | |
| 9306 | +/* 700 */, | |
| 9307 | +/* 701 */, | |
| 9308 | +/* 702 */, | |
| 9309 | +/* 703 */, | |
| 9310 | +/* 704 */, | |
| 9311 | +/* 705 */, | |
| 9312 | +/* 706 */, | |
| 9313 | +/* 707 */, | |
| 9314 | +/* 708 */, | |
| 9315 | +/* 709 */, | |
| 9316 | +/* 710 */, | |
| 9317 | +/* 711 */, | |
| 9318 | +/* 712 */, | |
| 9319 | +/* 713 */, | |
| 9320 | +/* 714 */, | |
| 9321 | +/* 715 */, | |
| 9322 | +/* 716 */, | |
| 9323 | +/* 717 */, | |
| 9324 | +/* 718 */, | |
| 9325 | +/* 719 */, | |
| 9326 | +/* 720 */, | |
| 9327 | +/* 721 */, | |
| 9328 | +/* 722 */, | |
| 9329 | +/* 723 */, | |
| 9330 | +/* 724 */, | |
| 9331 | +/* 725 */, | |
| 9332 | +/* 726 */, | |
| 9333 | +/* 727 */, | |
| 9334 | +/* 728 */, | |
| 9335 | +/* 729 */, | |
| 9336 | +/* 730 */, | |
| 9337 | +/* 731 */, | |
| 9338 | +/* 732 */, | |
| 9339 | +/* 733 */, | |
| 9340 | +/* 734 */, | |
| 9341 | +/* 735 */, | |
| 9342 | +/* 736 */, | |
| 9343 | +/* 737 */, | |
| 9344 | +/* 738 */, | |
| 9345 | +/* 739 */, | |
| 9346 | +/* 740 */, | |
| 9347 | +/* 741 */, | |
| 9348 | +/* 742 */, | |
| 9349 | +/* 743 */, | |
| 9350 | +/* 744 */, | |
| 9351 | +/* 745 */, | |
| 9352 | +/* 746 */, | |
| 9353 | +/* 747 */, | |
| 9354 | +/* 748 */, | |
| 9355 | +/* 749 */, | |
| 9356 | +/* 750 */, | |
| 9357 | +/* 751 */, | |
| 9358 | +/* 752 */, | |
| 9359 | +/* 753 */, | |
| 9360 | +/* 754 */, | |
| 9361 | +/* 755 */, | |
| 9362 | +/* 756 */, | |
| 9363 | +/* 757 */, | |
| 9364 | +/* 758 */, | |
| 9365 | +/* 759 */, | |
| 9366 | +/* 760 */ | |
| 9367 | +/***/ (function(module, exports, __webpack_require__) { | |
| 9368 | + | |
| 9369 | +"use strict"; | |
| 9370 | + | |
| 9371 | + | |
| 9372 | +var _interopRequireDefault = __webpack_require__(0); | |
| 9373 | + | |
| 9374 | +var _router = _interopRequireDefault(__webpack_require__(761)); | |
| 9375 | + | |
| 9376 | +var _package = _interopRequireDefault(__webpack_require__(762)); | |
| 9377 | + | |
| 9378 | +var _package2 = _interopRequireDefault(__webpack_require__(777)); | |
| 9379 | + | |
| 8225 | 9380 | /** |
| 8226 | - * Copyright (c) 2013-present, Facebook, Inc. | |
| 8227 | - * | |
| 8228 | - * This source code is licensed under the MIT license found in the | |
| 8229 | - * LICENSE file in the root directory of this source tree. | |
| 9381 | + * Temporary solution for share components. | |
| 9382 | + * TODO. | |
| 8230 | 9383 | */ |
| 9384 | +// Make router available for use within packages. | |
| 9385 | +// Alphabetical order. | |
| 9386 | +window.elementorAppPackages = { | |
| 9387 | + appUi: _package.default, | |
| 9388 | + router: _router.default, | |
| 9389 | + siteEditor: _package2.default | |
| 9390 | +}; | |
| 8231 | 9391 | |
| 8232 | -if (true) { | |
| 8233 | - var ReactIs = __webpack_require__(/*! react-is */ "../node_modules/prop-types/node_modules/react-is/index.js"); | |
| 9392 | +/***/ }), | |
| 9393 | +/* 761 */ | |
| 9394 | +/***/ (function(module, exports, __webpack_require__) { | |
| 8234 | 9395 | |
| 8235 | - // By explicitly using `prop-types` you are opting into new development behavior. | |
| 8236 | - // http://fb.me/prop-types-in-prod | |
| 8237 | - var throwOnDirectAccess = true; | |
| 8238 | - module.exports = __webpack_require__(/*! ./factoryWithTypeCheckers */ "../node_modules/prop-types/factoryWithTypeCheckers.js")(ReactIs.isElement, throwOnDirectAccess); | |
| 8239 | -} else // removed by dead control flow | |
| 8240 | -{} | |
| 9396 | +"use strict"; | |
| 9397 | +/* WEBPACK VAR INJECTION */(function(React) { | |
| 8241 | 9398 | |
| 9399 | +var _interopRequireDefault = __webpack_require__(0); | |
| 8242 | 9400 | |
| 8243 | -/***/ }), | |
| 9401 | +var _Object$defineProperty = __webpack_require__(1); | |
| 8244 | 9402 | |
| 8245 | -/***/ "../node_modules/prop-types/lib/ReactPropTypesSecret.js": | |
| 8246 | -/*!**************************************************************!*\ | |
| 8247 | - !*** ../node_modules/prop-types/lib/ReactPropTypesSecret.js ***! | |
| 8248 | - \**************************************************************/ | |
| 8249 | -/***/ ((module) => { | |
| 9403 | +_Object$defineProperty(exports, "__esModule", { | |
| 9404 | + value: true | |
| 9405 | +}); | |
| 8250 | 9406 | |
| 8251 | -"use strict"; | |
| 9407 | +exports.default = void 0; | |
| 9408 | + | |
| 9409 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2)); | |
| 9410 | + | |
| 9411 | +var _createClass2 = _interopRequireDefault(__webpack_require__(3)); | |
| 9412 | + | |
| 9413 | +var _defineProperty2 = _interopRequireDefault(__webpack_require__(28)); | |
| 9414 | + | |
| 8252 | 9415 | /** |
| 8253 | - * Copyright (c) 2013-present, Facebook, Inc. | |
| 9416 | + * App Router | |
| 8254 | 9417 | * |
| 8255 | - * This source code is licensed under the MIT license found in the | |
| 8256 | - * LICENSE file in the root directory of this source tree. | |
| 9418 | + * TODO: Temporary solution for routing extensibility. | |
| 8257 | 9419 | */ |
| 9420 | +var Router = /*#__PURE__*/function () { | |
| 9421 | + function Router() { | |
| 9422 | + (0, _classCallCheck2.default)(this, Router); | |
| 9423 | + (0, _defineProperty2.default)(this, "routes", []); | |
| 9424 | + (0, _defineProperty2.default)(this, "history", null); | |
| 9425 | + } | |
| 8258 | 9426 | |
| 9427 | + (0, _createClass2.default)(Router, [{ | |
| 9428 | + key: "addRoute", | |
| 8259 | 9429 | |
| 9430 | + /** | |
| 9431 | + * | |
| 9432 | + * @param route {{ | |
| 9433 | + * path: string, | |
| 9434 | + * component: object, | |
| 9435 | + * props: object, | |
| 9436 | + * }} | |
| 9437 | + */ | |
| 9438 | + value: function addRoute(route) { | |
| 9439 | + this.routes.push(route); | |
| 9440 | + } | |
| 9441 | + }, { | |
| 9442 | + key: "getRoutes", | |
| 9443 | + value: function getRoutes() { | |
| 9444 | + return this.routes.map(function (route) { | |
| 9445 | + var props = route.props || {}; // Use the path as a key, and add it as a prop. | |
| 8260 | 9446 | |
| 8261 | -var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED'; | |
| 9447 | + props.path = props.key = route.path; | |
| 9448 | + return React.createElement(route.component, props); | |
| 9449 | + }); | |
| 9450 | + } | |
| 9451 | + }]); | |
| 9452 | + return Router; | |
| 9453 | +}(); | |
| 8262 | 9454 | |
| 8263 | -module.exports = ReactPropTypesSecret; | |
| 9455 | +var router = new Router(); // Make router available for use within packages. | |
| 8264 | 9456 | |
| 9457 | +window.elementorAppPackages = { | |
| 9458 | + router: router | |
| 9459 | +}; | |
| 9460 | +var _default = router; | |
| 9461 | +exports.default = _default; | |
| 9462 | +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(11))) | |
| 8265 | 9463 | |
| 8266 | 9464 | /***/ }), |
| 9465 | +/* 762 */ | |
| 9466 | +/***/ (function(module, exports, __webpack_require__) { | |
| 8267 | 9467 | |
| 8268 | -/***/ "../node_modules/prop-types/lib/has.js": | |
| 8269 | -/*!*********************************************!*\ | |
| 8270 | - !*** ../node_modules/prop-types/lib/has.js ***! | |
| 8271 | - \*********************************************/ | |
| 8272 | -/***/ ((module) => { | |
| 9468 | +"use strict"; | |
| 8273 | 9469 | |
| 8274 | -module.exports = Function.call.bind(Object.prototype.hasOwnProperty); | |
| 8275 | 9470 | |
| 9471 | +var _interopRequireDefault = __webpack_require__(0); | |
| 8276 | 9472 | |
| 9473 | +var _Object$defineProperty = __webpack_require__(1); | |
| 9474 | + | |
| 9475 | +_Object$defineProperty(exports, "__esModule", { | |
| 9476 | + value: true | |
| 9477 | +}); | |
| 9478 | + | |
| 9479 | +exports.default = void 0; | |
| 9480 | + | |
| 9481 | +var _addNewButton = _interopRequireDefault(__webpack_require__(681)); | |
| 9482 | + | |
| 9483 | +var _button = _interopRequireDefault(__webpack_require__(238)); | |
| 9484 | + | |
| 9485 | +var _card = _interopRequireDefault(__webpack_require__(682)); | |
| 9486 | + | |
| 9487 | +var _cardBody = _interopRequireDefault(__webpack_require__(683)); | |
| 9488 | + | |
| 9489 | +var _cardFooter = _interopRequireDefault(__webpack_require__(764)); | |
| 9490 | + | |
| 9491 | +var _cardImage = _interopRequireDefault(__webpack_require__(684)); | |
| 9492 | + | |
| 9493 | +var _cardHeader = _interopRequireDefault(__webpack_require__(685)); | |
| 9494 | + | |
| 9495 | +var _cardOverlay = _interopRequireDefault(__webpack_require__(686)); | |
| 9496 | + | |
| 9497 | +var _cssGrid = _interopRequireDefault(__webpack_require__(687)); | |
| 9498 | + | |
| 9499 | +var _dialog = _interopRequireDefault(__webpack_require__(405)); | |
| 9500 | + | |
| 9501 | +var _dragDrop = _interopRequireDefault(__webpack_require__(689)); | |
| 9502 | + | |
| 9503 | +var _dropZone = _interopRequireDefault(__webpack_require__(767)); | |
| 9504 | + | |
| 9505 | +var _errorBoundary = _interopRequireDefault(__webpack_require__(653)); | |
| 9506 | + | |
| 9507 | +var _heading = _interopRequireDefault(__webpack_require__(336)); | |
| 9508 | + | |
| 9509 | +var _grid = _interopRequireDefault(__webpack_require__(346)); | |
| 9510 | + | |
| 9511 | +var _icon = _interopRequireDefault(__webpack_require__(345)); | |
| 9512 | + | |
| 9513 | +var _menu = _interopRequireDefault(__webpack_require__(691)); | |
| 9514 | + | |
| 9515 | +var _menuItem = _interopRequireDefault(__webpack_require__(692)); | |
| 9516 | + | |
| 9517 | +var _modal = _interopRequireDefault(__webpack_require__(693)); | |
| 9518 | + | |
| 9519 | +var _notFound = _interopRequireDefault(__webpack_require__(644)); | |
| 9520 | + | |
| 9521 | +var _page = _interopRequireDefault(__webpack_require__(404)); | |
| 9522 | + | |
| 9523 | +var _popover = _interopRequireDefault(__webpack_require__(773)); | |
| 9524 | + | |
| 9525 | +var _select = _interopRequireDefault(__webpack_require__(694)); | |
| 9526 | + | |
| 9527 | +var _select2 = _interopRequireDefault(__webpack_require__(775)); | |
| 9528 | + | |
| 9529 | +var _text = _interopRequireDefault(__webpack_require__(347)); | |
| 9530 | + | |
| 9531 | +var _uploadFile = _interopRequireDefault(__webpack_require__(690)); | |
| 9532 | + | |
| 9533 | +// Alphabetical order. | |
| 9534 | +var _default = { | |
| 9535 | + AddNewButton: _addNewButton.default, | |
| 9536 | + Button: _button.default, | |
| 9537 | + Card: _card.default, | |
| 9538 | + CardBody: _cardBody.default, | |
| 9539 | + CardFooter: _cardFooter.default, | |
| 9540 | + CardHeader: _cardHeader.default, | |
| 9541 | + CardImage: _cardImage.default, | |
| 9542 | + CardOverlay: _cardOverlay.default, | |
| 9543 | + CssGrid: _cssGrid.default, | |
| 9544 | + Dialog: _dialog.default, | |
| 9545 | + DragDrop: _dragDrop.default, | |
| 9546 | + DropZone: _dropZone.default, | |
| 9547 | + ErrorBoundary: _errorBoundary.default, | |
| 9548 | + Heading: _heading.default, | |
| 9549 | + Grid: _grid.default, | |
| 9550 | + Icon: _icon.default, | |
| 9551 | + Menu: _menu.default, | |
| 9552 | + MenuItem: _menuItem.default, | |
| 9553 | + ModalProvider: _modal.default, | |
| 9554 | + NotFound: _notFound.default, | |
| 9555 | + Page: _page.default, | |
| 9556 | + Popover: _popover.default, | |
| 9557 | + Select: _select.default, | |
| 9558 | + Select2: _select2.default, | |
| 9559 | + Text: _text.default, | |
| 9560 | + UploadFile: _uploadFile.default | |
| 9561 | +}; | |
| 9562 | +exports.default = _default; | |
| 9563 | + | |
| 8277 | 9564 | /***/ }), |
| 9565 | +/* 763 */ | |
| 9566 | +/***/ (function(module, exports) { | |
| 8278 | 9567 | |
| 8279 | -/***/ "../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js": | |
| 8280 | -/*!************************************************************************************!*\ | |
| 8281 | - !*** ../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js ***! | |
| 8282 | - \************************************************************************************/ | |
| 8283 | -/***/ ((__unused_webpack_module, exports) => { | |
| 8284 | 9568 | |
| 9569 | + | |
| 9570 | +/***/ }), | |
| 9571 | +/* 764 */ | |
| 9572 | +/***/ (function(module, exports, __webpack_require__) { | |
| 9573 | + | |
| 8285 | 9574 | "use strict"; |
| 8286 | -/** @license React v16.13.1 | |
| 8287 | - * react-is.development.js | |
| 8288 | - * | |
| 8289 | - * Copyright (c) Facebook, Inc. and its affiliates. | |
| 8290 | - * | |
| 8291 | - * This source code is licensed under the MIT license found in the | |
| 8292 | - * LICENSE file in the root directory of this source tree. | |
| 8293 | - */ | |
| 9575 | +/* WEBPACK VAR INJECTION */(function(PropTypes) { | |
| 8294 | 9576 | |
| 9577 | +var _interopRequireDefault = __webpack_require__(0); | |
| 8295 | 9578 | |
| 9579 | +var _Object$defineProperty = __webpack_require__(1); | |
| 8296 | 9580 | |
| 9581 | +_Object$defineProperty(exports, "__esModule", { | |
| 9582 | + value: true | |
| 9583 | +}); | |
| 8297 | 9584 | |
| 9585 | +exports.default = CardFooter; | |
| 8298 | 9586 | |
| 8299 | -if (true) { | |
| 8300 | - (function() { | |
| 8301 | -'use strict'; | |
| 9587 | +var _react = _interopRequireDefault(__webpack_require__(11)); | |
| 8302 | 9588 | |
| 8303 | -// The Symbol used to tag the ReactElement-like types. If there is no native Symbol | |
| 8304 | -// nor polyfill, then a plain number is used for performance. | |
| 8305 | -var hasSymbol = typeof Symbol === 'function' && Symbol.for; | |
| 8306 | -var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7; | |
| 8307 | -var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca; | |
| 8308 | -var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb; | |
| 8309 | -var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc; | |
| 8310 | -var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2; | |
| 8311 | -var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd; | |
| 8312 | -var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary | |
| 8313 | -// (unstable) APIs that have been removed. Can we remove the symbols? | |
| 9589 | +__webpack_require__(348); | |
| 8314 | 9590 | |
| 8315 | -var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf; | |
| 8316 | -var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf; | |
| 8317 | -var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0; | |
| 8318 | -var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1; | |
| 8319 | -var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8; | |
| 8320 | -var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3; | |
| 8321 | -var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4; | |
| 8322 | -var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9; | |
| 8323 | -var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5; | |
| 8324 | -var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6; | |
| 8325 | -var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7; | |
| 9591 | +function CardFooter(props) { | |
| 9592 | + return /*#__PURE__*/_react.default.createElement("footer", { | |
| 9593 | + className: "eps-card__footer ".concat(props.className) | |
| 9594 | + }, props.children); | |
| 9595 | +} | |
| 8326 | 9596 | |
| 8327 | -function isValidElementType(type) { | |
| 8328 | - return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill. | |
| 8329 | - type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE); | |
| 8330 | -} | |
| 9597 | +CardFooter.propTypes = { | |
| 9598 | + className: PropTypes.string, | |
| 9599 | + children: PropTypes.object.isRequired | |
| 9600 | +}; | |
| 9601 | +CardFooter.defaultProps = { | |
| 9602 | + className: '' | |
| 9603 | +}; | |
| 9604 | +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(41))) | |
| 8331 | 9605 | |
| 8332 | -function typeOf(object) { | |
| 8333 | - if (typeof object === 'object' && object !== null) { | |
| 8334 | - var $$typeof = object.$$typeof; | |
| 9606 | +/***/ }), | |
| 9607 | +/* 765 */ | |
| 9608 | +/***/ (function(module, exports) { | |
| 8335 | 9609 | |
| 8336 | - switch ($$typeof) { | |
| 8337 | - case REACT_ELEMENT_TYPE: | |
| 8338 | - var type = object.type; | |
| 8339 | 9610 | |
| 8340 | - switch (type) { | |
| 8341 | - case REACT_ASYNC_MODE_TYPE: | |
| 8342 | - case REACT_CONCURRENT_MODE_TYPE: | |
| 8343 | - case REACT_FRAGMENT_TYPE: | |
| 8344 | - case REACT_PROFILER_TYPE: | |
| 8345 | - case REACT_STRICT_MODE_TYPE: | |
| 8346 | - case REACT_SUSPENSE_TYPE: | |
| 8347 | - return type; | |
| 8348 | 9611 | |
| 8349 | - default: | |
| 8350 | - var $$typeofType = type && type.$$typeof; | |
| 9612 | +/***/ }), | |
| 9613 | +/* 766 */ | |
| 9614 | +/***/ (function(module, exports) { | |
| 8351 | 9615 | |
| 8352 | - switch ($$typeofType) { | |
| 8353 | - case REACT_CONTEXT_TYPE: | |
| 8354 | - case REACT_FORWARD_REF_TYPE: | |
| 8355 | - case REACT_LAZY_TYPE: | |
| 8356 | - case REACT_MEMO_TYPE: | |
| 8357 | - case REACT_PROVIDER_TYPE: | |
| 8358 | - return $$typeofType; | |
| 8359 | 9616 | |
| 8360 | - default: | |
| 8361 | - return $$typeof; | |
| 8362 | - } | |
| 8363 | 9617 | |
| 8364 | - } | |
| 9618 | +/***/ }), | |
| 9619 | +/* 767 */ | |
| 9620 | +/***/ (function(module, exports, __webpack_require__) { | |
| 8365 | 9621 | |
| 8366 | - case REACT_PORTAL_TYPE: | |
| 8367 | - return $$typeof; | |
| 9622 | +"use strict"; | |
| 9623 | +/* WEBPACK VAR INJECTION */(function(PropTypes) { | |
| 9624 | + | |
| 9625 | +var _interopRequireDefault = __webpack_require__(0); | |
| 9626 | + | |
| 9627 | +var _Object$defineProperty = __webpack_require__(1); | |
| 9628 | + | |
| 9629 | +_Object$defineProperty(exports, "__esModule", { | |
| 9630 | + value: true | |
| 9631 | +}); | |
| 9632 | + | |
| 9633 | +exports.default = DropZone; | |
| 9634 | + | |
| 9635 | +var _react = _interopRequireDefault(__webpack_require__(11)); | |
| 9636 | + | |
| 9637 | +var _extends2 = _interopRequireDefault(__webpack_require__(188)); | |
| 9638 | + | |
| 9639 | +var _uploadFile = _interopRequireDefault(__webpack_require__(690)); | |
| 9640 | + | |
| 9641 | +var _dragDrop = _interopRequireDefault(__webpack_require__(689)); | |
| 9642 | + | |
| 9643 | +var _icon = _interopRequireDefault(__webpack_require__(345)); | |
| 9644 | + | |
| 9645 | +var _heading = _interopRequireDefault(__webpack_require__(336)); | |
| 9646 | + | |
| 9647 | +var _text = _interopRequireDefault(__webpack_require__(347)); | |
| 9648 | + | |
| 9649 | +__webpack_require__(769); | |
| 9650 | + | |
| 9651 | +function DropZone(props) { | |
| 9652 | + var dragDropEvents = { | |
| 9653 | + onDrop: function onDrop(event) { | |
| 9654 | + if (!props.isLoading) { | |
| 9655 | + props.onFileSelect(event.dataTransfer.files, event); | |
| 9656 | + } | |
| 8368 | 9657 | } |
| 8369 | - } | |
| 9658 | + }; | |
| 9659 | + return /*#__PURE__*/_react.default.createElement("section", { | |
| 9660 | + className: "e-app-drop-zone" | |
| 9661 | + }, /*#__PURE__*/_react.default.createElement(_dragDrop.default, (0, _extends2.default)({}, dragDropEvents, { | |
| 9662 | + isLoading: props.isLoading | |
| 9663 | + }), props.icon && /*#__PURE__*/_react.default.createElement(_icon.default, { | |
| 9664 | + className: "e-app-drop-zone__icon ".concat(props.icon) | |
| 9665 | + }), props.heading && /*#__PURE__*/_react.default.createElement(_heading.default, { | |
| 9666 | + variant: "display-3" | |
| 9667 | + }, props.heading), props.text && /*#__PURE__*/_react.default.createElement(_text.default, { | |
| 9668 | + variant: "xl" | |
| 9669 | + }, props.text), props.secondaryText && /*#__PURE__*/_react.default.createElement(_text.default, { | |
| 9670 | + variant: "xl" | |
| 9671 | + }, props.secondaryText), props.showButton && /*#__PURE__*/_react.default.createElement(_uploadFile.default, { | |
| 9672 | + isLoading: props.isLoading, | |
| 9673 | + onFileSelect: props.onFileSelect, | |
| 9674 | + text: props.buttonText | |
| 9675 | + }))); | |
| 9676 | +} | |
| 8370 | 9677 | |
| 8371 | - return undefined; | |
| 8372 | -} // AsyncMode is deprecated along with isAsyncMode | |
| 9678 | +DropZone.propTypes = { | |
| 9679 | + className: PropTypes.string, | |
| 9680 | + children: PropTypes.any, | |
| 9681 | + onFileSelect: PropTypes.func, | |
| 9682 | + heading: PropTypes.string, | |
| 9683 | + text: PropTypes.string, | |
| 9684 | + secondaryText: PropTypes.string, | |
| 9685 | + buttonText: PropTypes.string, | |
| 9686 | + icon: PropTypes.string, | |
| 9687 | + showButton: PropTypes.bool, | |
| 9688 | + showIcon: PropTypes.bool, | |
| 9689 | + isLoading: PropTypes.bool | |
| 9690 | +}; | |
| 9691 | +DropZone.defaultProps = { | |
| 9692 | + className: '', | |
| 9693 | + icon: 'eicon-library-upload', | |
| 9694 | + showButton: true, | |
| 9695 | + showIcon: true | |
| 9696 | +}; | |
| 9697 | +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(41))) | |
| 8373 | 9698 | |
| 8374 | -var AsyncMode = REACT_ASYNC_MODE_TYPE; | |
| 8375 | -var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE; | |
| 8376 | -var ContextConsumer = REACT_CONTEXT_TYPE; | |
| 8377 | -var ContextProvider = REACT_PROVIDER_TYPE; | |
| 8378 | -var Element = REACT_ELEMENT_TYPE; | |
| 8379 | -var ForwardRef = REACT_FORWARD_REF_TYPE; | |
| 8380 | -var Fragment = REACT_FRAGMENT_TYPE; | |
| 8381 | -var Lazy = REACT_LAZY_TYPE; | |
| 8382 | -var Memo = REACT_MEMO_TYPE; | |
| 8383 | -var Portal = REACT_PORTAL_TYPE; | |
| 8384 | -var Profiler = REACT_PROFILER_TYPE; | |
| 8385 | -var StrictMode = REACT_STRICT_MODE_TYPE; | |
| 8386 | -var Suspense = REACT_SUSPENSE_TYPE; | |
| 8387 | -var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated | |
| 9699 | +/***/ }), | |
| 9700 | +/* 768 */ | |
| 9701 | +/***/ (function(module, exports) { | |
| 8388 | 9702 | |
| 8389 | -function isAsyncMode(object) { | |
| 8390 | - { | |
| 8391 | - if (!hasWarnedAboutDeprecatedIsAsyncMode) { | |
| 8392 | - hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint | |
| 8393 | 9703 | |
| 8394 | - console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.'); | |
| 8395 | - } | |
| 8396 | - } | |
| 8397 | 9704 | |
| 8398 | - return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE; | |
| 8399 | -} | |
| 8400 | -function isConcurrentMode(object) { | |
| 8401 | - return typeOf(object) === REACT_CONCURRENT_MODE_TYPE; | |
| 8402 | -} | |
| 8403 | -function isContextConsumer(object) { | |
| 8404 | - return typeOf(object) === REACT_CONTEXT_TYPE; | |
| 8405 | -} | |
| 8406 | -function isContextProvider(object) { | |
| 8407 | - return typeOf(object) === REACT_PROVIDER_TYPE; | |
| 8408 | -} | |
| 8409 | -function isElement(object) { | |
| 8410 | - return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE; | |
| 8411 | -} | |
| 8412 | -function isForwardRef(object) { | |
| 8413 | - return typeOf(object) === REACT_FORWARD_REF_TYPE; | |
| 8414 | -} | |
| 8415 | -function isFragment(object) { | |
| 8416 | - return typeOf(object) === REACT_FRAGMENT_TYPE; | |
| 8417 | -} | |
| 8418 | -function isLazy(object) { | |
| 8419 | - return typeOf(object) === REACT_LAZY_TYPE; | |
| 8420 | -} | |
| 8421 | -function isMemo(object) { | |
| 8422 | - return typeOf(object) === REACT_MEMO_TYPE; | |
| 8423 | -} | |
| 8424 | -function isPortal(object) { | |
| 8425 | - return typeOf(object) === REACT_PORTAL_TYPE; | |
| 8426 | -} | |
| 8427 | -function isProfiler(object) { | |
| 8428 | - return typeOf(object) === REACT_PROFILER_TYPE; | |
| 8429 | -} | |
| 8430 | -function isStrictMode(object) { | |
| 8431 | - return typeOf(object) === REACT_STRICT_MODE_TYPE; | |
| 8432 | -} | |
| 8433 | -function isSuspense(object) { | |
| 8434 | - return typeOf(object) === REACT_SUSPENSE_TYPE; | |
| 8435 | -} | |
| 9705 | +/***/ }), | |
| 9706 | +/* 769 */ | |
| 9707 | +/***/ (function(module, exports) { | |
| 8436 | 9708 | |
| 8437 | -exports.AsyncMode = AsyncMode; | |
| 8438 | -exports.ConcurrentMode = ConcurrentMode; | |
| 8439 | -exports.ContextConsumer = ContextConsumer; | |
| 8440 | -exports.ContextProvider = ContextProvider; | |
| 8441 | -exports.Element = Element; | |
| 8442 | -exports.ForwardRef = ForwardRef; | |
| 8443 | -exports.Fragment = Fragment; | |
| 8444 | -exports.Lazy = Lazy; | |
| 8445 | -exports.Memo = Memo; | |
| 8446 | -exports.Portal = Portal; | |
| 8447 | -exports.Profiler = Profiler; | |
| 8448 | -exports.StrictMode = StrictMode; | |
| 8449 | -exports.Suspense = Suspense; | |
| 8450 | -exports.isAsyncMode = isAsyncMode; | |
| 8451 | -exports.isConcurrentMode = isConcurrentMode; | |
| 8452 | -exports.isContextConsumer = isContextConsumer; | |
| 8453 | -exports.isContextProvider = isContextProvider; | |
| 8454 | -exports.isElement = isElement; | |
| 8455 | -exports.isForwardRef = isForwardRef; | |
| 8456 | -exports.isFragment = isFragment; | |
| 8457 | -exports.isLazy = isLazy; | |
| 8458 | -exports.isMemo = isMemo; | |
| 8459 | -exports.isPortal = isPortal; | |
| 8460 | -exports.isProfiler = isProfiler; | |
| 8461 | -exports.isStrictMode = isStrictMode; | |
| 8462 | -exports.isSuspense = isSuspense; | |
| 8463 | -exports.isValidElementType = isValidElementType; | |
| 8464 | -exports.typeOf = typeOf; | |
| 8465 | - })(); | |
| 8466 | -} | |
| 8467 | 9709 | |
| 8468 | 9710 | |
| 8469 | 9711 | /***/ }), |
| 9712 | +/* 770 */ | |
| 9713 | +/***/ (function(module, exports) { | |
| 8470 | 9714 | |
| 8471 | -/***/ "../node_modules/prop-types/node_modules/react-is/index.js": | |
| 8472 | -/*!*****************************************************************!*\ | |
| 8473 | - !*** ../node_modules/prop-types/node_modules/react-is/index.js ***! | |
| 8474 | - \*****************************************************************/ | |
| 8475 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 8476 | 9715 | |
| 9716 | + | |
| 9717 | +/***/ }), | |
| 9718 | +/* 771 */ | |
| 9719 | +/***/ (function(module, exports) { | |
| 9720 | + | |
| 9721 | + | |
| 9722 | + | |
| 9723 | +/***/ }), | |
| 9724 | +/* 772 */ | |
| 9725 | +/***/ (function(module, exports) { | |
| 9726 | + | |
| 9727 | + | |
| 9728 | + | |
| 9729 | +/***/ }), | |
| 9730 | +/* 773 */ | |
| 9731 | +/***/ (function(module, exports, __webpack_require__) { | |
| 9732 | + | |
| 8477 | 9733 | "use strict"; |
| 9734 | +/* WEBPACK VAR INJECTION */(function(PropTypes) { | |
| 8478 | 9735 | |
| 9736 | +var _interopRequireDefault = __webpack_require__(0); | |
| 8479 | 9737 | |
| 8480 | -if (false) // removed by dead control flow | |
| 8481 | -{} else { | |
| 8482 | - module.exports = __webpack_require__(/*! ./cjs/react-is.development.js */ "../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js"); | |
| 9738 | +var _Object$defineProperty = __webpack_require__(1); | |
| 9739 | + | |
| 9740 | +_Object$defineProperty(exports, "__esModule", { | |
| 9741 | + value: true | |
| 9742 | +}); | |
| 9743 | + | |
| 9744 | +exports.default = Popover; | |
| 9745 | + | |
| 9746 | +var _react = _interopRequireDefault(__webpack_require__(11)); | |
| 9747 | + | |
| 9748 | +__webpack_require__(774); | |
| 9749 | + | |
| 9750 | +function Popover(props) { | |
| 9751 | + return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("div", { | |
| 9752 | + className: "eps-popover__background", | |
| 9753 | + onClick: props.closeFunction | |
| 9754 | + }), /*#__PURE__*/_react.default.createElement("ul", { | |
| 9755 | + className: "eps-popover ".concat(props.className), | |
| 9756 | + onClick: props.closeFunction | |
| 9757 | + }, props.children)); | |
| 8483 | 9758 | } |
| 8484 | 9759 | |
| 9760 | +Popover.propTypes = { | |
| 9761 | + children: PropTypes.any.isRequired, | |
| 9762 | + className: PropTypes.string, | |
| 9763 | + closeFunction: PropTypes.func | |
| 9764 | +}; | |
| 9765 | +Popover.defaultProps = { | |
| 9766 | + className: '' | |
| 9767 | +}; | |
| 9768 | +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(41))) | |
| 8485 | 9769 | |
| 8486 | 9770 | /***/ }), |
| 9771 | +/* 774 */ | |
| 9772 | +/***/ (function(module, exports) { | |
| 8487 | 9773 | |
| 8488 | -/***/ "../node_modules/react-lifecycles-compat/react-lifecycles-compat.es.js": | |
| 8489 | -/*!*****************************************************************************!*\ | |
| 8490 | - !*** ../node_modules/react-lifecycles-compat/react-lifecycles-compat.es.js ***! | |
| 8491 | - \*****************************************************************************/ | |
| 8492 | -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { | |
| 8493 | 9774 | |
| 9775 | + | |
| 9776 | +/***/ }), | |
| 9777 | +/* 775 */ | |
| 9778 | +/***/ (function(module, exports, __webpack_require__) { | |
| 9779 | + | |
| 8494 | 9780 | "use strict"; |
| 8495 | -__webpack_require__.r(__webpack_exports__); | |
| 8496 | -/* harmony export */ __webpack_require__.d(__webpack_exports__, { | |
| 8497 | -/* harmony export */ polyfill: () => (/* binding */ polyfill) | |
| 8498 | -/* harmony export */ }); | |
| 9781 | +/* WEBPACK VAR INJECTION */(function(PropTypes) { | |
| 9782 | + | |
| 9783 | +var _interopRequireDefault = __webpack_require__(0); | |
| 9784 | + | |
| 9785 | +var _Object$defineProperty = __webpack_require__(1); | |
| 9786 | + | |
| 9787 | +_Object$defineProperty(exports, "__esModule", { | |
| 9788 | + value: true | |
| 9789 | +}); | |
| 9790 | + | |
| 9791 | +exports.default = Select2; | |
| 9792 | + | |
| 9793 | +var _react = _interopRequireDefault(__webpack_require__(11)); | |
| 9794 | + | |
| 9795 | +var _objectSpread2 = _interopRequireDefault(__webpack_require__(214)); | |
| 9796 | + | |
| 9797 | +var _select = _interopRequireDefault(__webpack_require__(694)); | |
| 9798 | + | |
| 9799 | +__webpack_require__(776); | |
| 9800 | + | |
| 8499 | 9801 | /** |
| 8500 | - * Copyright (c) 2013-present, Facebook, Inc. | |
| 9802 | + * Default settings of the select 2 | |
| 8501 | 9803 | * |
| 8502 | - * This source code is licensed under the MIT license found in the | |
| 8503 | - * LICENSE file in the root directory of this source tree. | |
| 9804 | + * @returns {{placeholder: string, allowClear: boolean, dir: string}} | |
| 8504 | 9805 | */ |
| 9806 | +var getDefaultSettings = function getDefaultSettings() { | |
| 9807 | + return { | |
| 9808 | + allowClear: true, | |
| 9809 | + placeholder: '', | |
| 9810 | + dir: elementorCommon.config.isRTL ? 'rtl' : 'ltr' | |
| 9811 | + }; | |
| 9812 | +}; | |
| 9813 | +/** | |
| 9814 | + * Main component | |
| 9815 | + * | |
| 9816 | + * @param props | |
| 9817 | + * @returns {*} | |
| 9818 | + * @constructor | |
| 9819 | + */ | |
| 8505 | 9820 | |
| 8506 | -function componentWillMount() { | |
| 8507 | - // Call this.constructor.gDSFP to support sub-classes. | |
| 8508 | - var state = this.constructor.getDerivedStateFromProps(this.props, this.state); | |
| 8509 | - if (state !== null && state !== undefined) { | |
| 8510 | - this.setState(state); | |
| 8511 | - } | |
| 9821 | + | |
| 9822 | +function Select2(props) { | |
| 9823 | + var ref = _react.default.useRef(null); // Initiate the select 2 library, call to onReady after initiate, and | |
| 9824 | + // listen to select event on the select instance. | |
| 9825 | + | |
| 9826 | + | |
| 9827 | + _react.default.useEffect(function () { | |
| 9828 | + var $select2 = jQuery(ref.current).select2((0, _objectSpread2.default)((0, _objectSpread2.default)({}, getDefaultSettings()), props.settings)).on('select2:select select2:unselect', props.onChange); | |
| 9829 | + | |
| 9830 | + if (props.onReady) { | |
| 9831 | + props.onReady($select2); | |
| 9832 | + } | |
| 9833 | + | |
| 9834 | + return function () { | |
| 9835 | + $select2.select2('destroy').off('select2:select select2:unselect'); | |
| 9836 | + }; | |
| 9837 | + }, [props.settings, props.options]); // Listen to changes in the prop `value`, if changed update the select 2. | |
| 9838 | + | |
| 9839 | + | |
| 9840 | + _react.default.useEffect(function () { | |
| 9841 | + jQuery(ref.current).val(props.value).trigger('change'); | |
| 9842 | + }, [props.value]); | |
| 9843 | + | |
| 9844 | + return /*#__PURE__*/_react.default.createElement(_select.default, { | |
| 9845 | + multiple: props.multiple, | |
| 9846 | + value: props.value, | |
| 9847 | + onChange: props.onChange, | |
| 9848 | + elRef: ref, | |
| 9849 | + options: props.options | |
| 9850 | + }); | |
| 8512 | 9851 | } |
| 8513 | 9852 | |
| 8514 | -function componentWillReceiveProps(nextProps) { | |
| 8515 | - // Call this.constructor.gDSFP to support sub-classes. | |
| 8516 | - // Use the setState() updater to ensure state isn't stale in certain edge cases. | |
| 8517 | - function updater(prevState) { | |
| 8518 | - var state = this.constructor.getDerivedStateFromProps(nextProps, prevState); | |
| 8519 | - return state !== null && state !== undefined ? state : null; | |
| 8520 | - } | |
| 8521 | - // Binding "this" is important for shallow renderer support. | |
| 8522 | - this.setState(updater.bind(this)); | |
| 8523 | -} | |
| 9853 | +Select2.propTypes = { | |
| 9854 | + value: PropTypes.string, | |
| 9855 | + onChange: PropTypes.func, | |
| 9856 | + onReady: PropTypes.func, | |
| 9857 | + options: PropTypes.array, | |
| 9858 | + settings: PropTypes.object, | |
| 9859 | + multiple: PropTypes.bool | |
| 9860 | +}; | |
| 9861 | +Select2.defaultProps = { | |
| 9862 | + settings: {}, | |
| 9863 | + options: [], | |
| 9864 | + dependencies: [] | |
| 9865 | +}; | |
| 9866 | +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(41))) | |
| 8524 | 9867 | |
| 8525 | -function componentWillUpdate(nextProps, nextState) { | |
| 8526 | - try { | |
| 8527 | - var prevProps = this.props; | |
| 8528 | - var prevState = this.state; | |
| 8529 | - this.props = nextProps; | |
| 8530 | - this.state = nextState; | |
| 8531 | - this.__reactInternalSnapshotFlag = true; | |
| 8532 | - this.__reactInternalSnapshot = this.getSnapshotBeforeUpdate( | |
| 8533 | - prevProps, | |
| 8534 | - prevState | |
| 8535 | - ); | |
| 8536 | - } finally { | |
| 8537 | - this.props = prevProps; | |
| 8538 | - this.state = prevState; | |
| 8539 | - } | |
| 8540 | -} | |
| 9868 | +/***/ }), | |
| 9869 | +/* 776 */ | |
| 9870 | +/***/ (function(module, exports) { | |
| 8541 | 9871 | |
| 8542 | -// React may warn about cWM/cWRP/cWU methods being deprecated. | |
| 8543 | -// Add a flag to suppress these warnings for this special case. | |
| 8544 | -componentWillMount.__suppressDeprecationWarning = true; | |
| 8545 | -componentWillReceiveProps.__suppressDeprecationWarning = true; | |
| 8546 | -componentWillUpdate.__suppressDeprecationWarning = true; | |
| 8547 | 9872 | |
| 8548 | -function polyfill(Component) { | |
| 8549 | - var prototype = Component.prototype; | |
| 8550 | 9873 | |
| 8551 | - if (!prototype || !prototype.isReactComponent) { | |
| 8552 | - throw new Error('Can only polyfill class components'); | |
| 8553 | - } | |
| 9874 | +/***/ }), | |
| 9875 | +/* 777 */ | |
| 9876 | +/***/ (function(module, exports, __webpack_require__) { | |
| 8554 | 9877 | |
| 8555 | - if ( | |
| 8556 | - typeof Component.getDerivedStateFromProps !== 'function' && | |
| 8557 | - typeof prototype.getSnapshotBeforeUpdate !== 'function' | |
| 8558 | - ) { | |
| 8559 | - return Component; | |
| 8560 | - } | |
| 9878 | +"use strict"; | |
| 8561 | 9879 | |
| 8562 | - // If new component APIs are defined, "unsafe" lifecycles won't be called. | |
| 8563 | - // Error if any of these lifecycles are present, | |
| 8564 | - // Because they would work differently between older and newer (16.3+) versions of React. | |
| 8565 | - var foundWillMountName = null; | |
| 8566 | - var foundWillReceivePropsName = null; | |
| 8567 | - var foundWillUpdateName = null; | |
| 8568 | - if (typeof prototype.componentWillMount === 'function') { | |
| 8569 | - foundWillMountName = 'componentWillMount'; | |
| 8570 | - } else if (typeof prototype.UNSAFE_componentWillMount === 'function') { | |
| 8571 | - foundWillMountName = 'UNSAFE_componentWillMount'; | |
| 8572 | - } | |
| 8573 | - if (typeof prototype.componentWillReceiveProps === 'function') { | |
| 8574 | - foundWillReceivePropsName = 'componentWillReceiveProps'; | |
| 8575 | - } else if (typeof prototype.UNSAFE_componentWillReceiveProps === 'function') { | |
| 8576 | - foundWillReceivePropsName = 'UNSAFE_componentWillReceiveProps'; | |
| 8577 | - } | |
| 8578 | - if (typeof prototype.componentWillUpdate === 'function') { | |
| 8579 | - foundWillUpdateName = 'componentWillUpdate'; | |
| 8580 | - } else if (typeof prototype.UNSAFE_componentWillUpdate === 'function') { | |
| 8581 | - foundWillUpdateName = 'UNSAFE_componentWillUpdate'; | |
| 8582 | - } | |
| 8583 | - if ( | |
| 8584 | - foundWillMountName !== null || | |
| 8585 | - foundWillReceivePropsName !== null || | |
| 8586 | - foundWillUpdateName !== null | |
| 8587 | - ) { | |
| 8588 | - var componentName = Component.displayName || Component.name; | |
| 8589 | - var newApiName = | |
| 8590 | - typeof Component.getDerivedStateFromProps === 'function' | |
| 8591 | - ? 'getDerivedStateFromProps()' | |
| 8592 | - : 'getSnapshotBeforeUpdate()'; | |
| 8593 | 9880 | |
| 8594 | - throw Error( | |
| 8595 | - 'Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n' + | |
| 8596 | - componentName + | |
| 8597 | - ' uses ' + | |
| 8598 | - newApiName + | |
| 8599 | - ' but also contains the following legacy lifecycles:' + | |
| 8600 | - (foundWillMountName !== null ? '\n ' + foundWillMountName : '') + | |
| 8601 | - (foundWillReceivePropsName !== null | |
| 8602 | - ? '\n ' + foundWillReceivePropsName | |
| 8603 | - : '') + | |
| 8604 | - (foundWillUpdateName !== null ? '\n ' + foundWillUpdateName : '') + | |
| 8605 | - '\n\nThe above lifecycles should be removed. Learn more about this warning here:\n' + | |
| 8606 | - 'https://fb.me/react-async-component-lifecycle-hooks' | |
| 8607 | - ); | |
| 8608 | - } | |
| 9881 | +var _interopRequireDefault = __webpack_require__(0); | |
| 8609 | 9882 | |
| 8610 | - // React <= 16.2 does not support static getDerivedStateFromProps. | |
| 8611 | - // As a workaround, use cWM and cWRP to invoke the new static lifecycle. | |
| 8612 | - // Newer versions of React will ignore these lifecycles if gDSFP exists. | |
| 8613 | - if (typeof Component.getDerivedStateFromProps === 'function') { | |
| 8614 | - prototype.componentWillMount = componentWillMount; | |
| 8615 | - prototype.componentWillReceiveProps = componentWillReceiveProps; | |
| 8616 | - } | |
| 9883 | +var _Object$defineProperty = __webpack_require__(1); | |
| 8617 | 9884 | |
| 8618 | - // React <= 16.2 does not support getSnapshotBeforeUpdate. | |
| 8619 | - // As a workaround, use cWU to invoke the new lifecycle. | |
| 8620 | - // Newer versions of React will ignore that lifecycle if gSBU exists. | |
| 8621 | - if (typeof prototype.getSnapshotBeforeUpdate === 'function') { | |
| 8622 | - if (typeof prototype.componentDidUpdate !== 'function') { | |
| 8623 | - throw new Error( | |
| 8624 | - 'Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype' | |
| 8625 | - ); | |
| 8626 | - } | |
| 9885 | +_Object$defineProperty(exports, "__esModule", { | |
| 9886 | + value: true | |
| 9887 | +}); | |
| 8627 | 9888 | |
| 8628 | - prototype.componentWillUpdate = componentWillUpdate; | |
| 9889 | +exports.default = void 0; | |
| 8629 | 9890 | |
| 8630 | - var componentDidUpdate = prototype.componentDidUpdate; | |
| 9891 | +var _allPartsButton = _interopRequireDefault(__webpack_require__(695)); | |
| 8631 | 9892 | |
| 8632 | - prototype.componentDidUpdate = function componentDidUpdatePolyfill( | |
| 8633 | - prevProps, | |
| 8634 | - prevState, | |
| 8635 | - maybeSnapshot | |
| 8636 | - ) { | |
| 8637 | - // 16.3+ will not execute our will-update method; | |
| 8638 | - // It will pass a snapshot value to did-update though. | |
| 8639 | - // Older versions will require our polyfilled will-update value. | |
| 8640 | - // We need to handle both cases, but can't just check for the presence of "maybeSnapshot", | |
| 8641 | - // Because for <= 15.x versions this might be a "prevContext" object. | |
| 8642 | - // We also can't just check "__reactInternalSnapshot", | |
| 8643 | - // Because get-snapshot might return a falsy value. | |
| 8644 | - // So check for the explicit __reactInternalSnapshotFlag flag to determine behavior. | |
| 8645 | - var snapshot = this.__reactInternalSnapshotFlag | |
| 8646 | - ? this.__reactInternalSnapshot | |
| 8647 | - : maybeSnapshot; | |
| 9893 | +var _layout = _interopRequireDefault(__webpack_require__(696)); | |
| 8648 | 9894 | |
| 8649 | - componentDidUpdate.call(this, prevProps, prevState, snapshot); | |
| 8650 | - }; | |
| 8651 | - } | |
| 9895 | +var _module = _interopRequireDefault(__webpack_require__(782)); | |
| 8652 | 9896 | |
| 8653 | - return Component; | |
| 8654 | -} | |
| 9897 | +var _notFound = _interopRequireDefault(__webpack_require__(699)); | |
| 8655 | 9898 | |
| 9899 | +var _siteParts = _interopRequireDefault(__webpack_require__(697)); | |
| 8656 | 9900 | |
| 9901 | +var _sitePart = _interopRequireDefault(__webpack_require__(698)); | |
| 8657 | 9902 | |
| 9903 | +var _templateTypes = __webpack_require__(413); | |
| 8658 | 9904 | |
| 9905 | +// Alphabetical order. | |
| 9906 | +var _default = { | |
| 9907 | + AllPartsButton: _allPartsButton.default, | |
| 9908 | + Layout: _layout.default, | |
| 9909 | + Module: _module.default, | |
| 9910 | + NotFound: _notFound.default, | |
| 9911 | + SitePart: _sitePart.default, | |
| 9912 | + SiteParts: _siteParts.default, | |
| 9913 | + TemplateTypesContext: _templateTypes.Context | |
| 9914 | +}; | |
| 9915 | +exports.default = _default; | |
| 9916 | + | |
| 8659 | 9917 | /***/ }), |
| 9918 | +/* 778 */ | |
| 9919 | +/***/ (function(module, exports, __webpack_require__) { | |
| 8660 | 9920 | |
| 8661 | -/***/ "../node_modules/warning/warning.js": | |
| 8662 | -/*!******************************************!*\ | |
| 8663 | - !*** ../node_modules/warning/warning.js ***! | |
| 8664 | - \******************************************/ | |
| 8665 | -/***/ ((module) => { | |
| 9921 | +"use strict"; | |
| 9922 | +/* WEBPACK VAR INJECTION */(function(__, PropTypes) { | |
| 8666 | 9923 | |
| 8667 | -"use strict"; | |
| 8668 | -/** | |
| 8669 | - * Copyright (c) 2014-present, Facebook, Inc. | |
| 8670 | - * | |
| 8671 | - * This source code is licensed under the MIT license found in the | |
| 8672 | - * LICENSE file in the root directory of this source tree. | |
| 8673 | - */ | |
| 9924 | +var _interopRequireDefault = __webpack_require__(0); | |
| 8674 | 9925 | |
| 9926 | +var _Object$defineProperty = __webpack_require__(1); | |
| 8675 | 9927 | |
| 9928 | +_Object$defineProperty(exports, "__esModule", { | |
| 9929 | + value: true | |
| 9930 | +}); | |
| 8676 | 9931 | |
| 8677 | -/** | |
| 8678 | - * Similar to invariant but only logs a warning if the condition is not met. | |
| 8679 | - * This can be used to log issues in development environments in critical | |
| 8680 | - * paths. Removing the logging code for production environments will keep the | |
| 8681 | - * same logic and follow the same code paths. | |
| 8682 | - */ | |
| 9932 | +exports.default = Menu; | |
| 8683 | 9933 | |
| 8684 | -var __DEV__ = "development" !== 'production'; | |
| 9934 | +var _react = _interopRequireDefault(__webpack_require__(11)); | |
| 8685 | 9935 | |
| 8686 | -var warning = function() {}; | |
| 9936 | +var _menu = _interopRequireDefault(__webpack_require__(691)); | |
| 8687 | 9937 | |
| 8688 | -if (__DEV__) { | |
| 8689 | - var printWarning = function printWarning(format, args) { | |
| 8690 | - var len = arguments.length; | |
| 8691 | - args = new Array(len > 1 ? len - 1 : 0); | |
| 8692 | - for (var key = 1; key < len; key++) { | |
| 8693 | - args[key - 1] = arguments[key]; | |
| 8694 | - } | |
| 8695 | - var argIndex = 0; | |
| 8696 | - var message = 'Warning: ' + | |
| 8697 | - format.replace(/%s/g, function() { | |
| 8698 | - return args[argIndex++]; | |
| 9938 | +var _templateTypes = __webpack_require__(413); | |
| 9939 | + | |
| 9940 | +var _button = _interopRequireDefault(__webpack_require__(238)); | |
| 9941 | + | |
| 9942 | +var _addNewButton = _interopRequireDefault(__webpack_require__(681)); | |
| 9943 | + | |
| 9944 | +__webpack_require__(780); | |
| 9945 | + | |
| 9946 | +function Menu(props) { | |
| 9947 | + var _React$useContext = _react.default.useContext(_templateTypes.Context), | |
| 9948 | + templateTypes = _React$useContext.templateTypes, | |
| 9949 | + actionButton = function actionButton(itemProps) { | |
| 9950 | + var className = 'eps-menu-item__action-button'; | |
| 9951 | + | |
| 9952 | + if (props.promotion) { | |
| 9953 | + return /*#__PURE__*/_react.default.createElement(_button.default, { | |
| 9954 | + text: __('Go Pro', 'elementor'), | |
| 9955 | + hideText: true, | |
| 9956 | + icon: "eicon-lock", | |
| 9957 | + className: className | |
| 8699 | 9958 | }); |
| 8700 | - if (typeof console !== 'undefined') { | |
| 8701 | - console.error(message); | |
| 8702 | 9959 | } |
| 8703 | - try { | |
| 8704 | - // --- Welcome to debugging React --- | |
| 8705 | - // This error was thrown as a convenience so that you can use this stack | |
| 8706 | - // to find the callsite that caused this warning to fire. | |
| 8707 | - throw new Error(message); | |
| 8708 | - } catch (x) {} | |
| 8709 | - } | |
| 8710 | 9960 | |
| 8711 | - warning = function(condition, format, args) { | |
| 8712 | - var len = arguments.length; | |
| 8713 | - args = new Array(len > 2 ? len - 2 : 0); | |
| 8714 | - for (var key = 2; key < len; key++) { | |
| 8715 | - args[key - 2] = arguments[key]; | |
| 8716 | - } | |
| 8717 | - if (format === undefined) { | |
| 8718 | - throw new Error( | |
| 8719 | - '`warning(condition, format, ...args)` requires a warning ' + | |
| 8720 | - 'message argument' | |
| 8721 | - ); | |
| 8722 | - } | |
| 8723 | - if (!condition) { | |
| 8724 | - printWarning.apply(null, [format].concat(args)); | |
| 8725 | - } | |
| 9961 | + var goToCreate = function goToCreate() { | |
| 9962 | + location.href = itemProps.urls.create; | |
| 9963 | + }; | |
| 9964 | + | |
| 9965 | + return /*#__PURE__*/_react.default.createElement("span", { | |
| 9966 | + className: className | |
| 9967 | + }, /*#__PURE__*/_react.default.createElement(_addNewButton.default, { | |
| 9968 | + hideText: true, | |
| 9969 | + size: "sm", | |
| 9970 | + onClick: function onClick() { | |
| 9971 | + return goToCreate(); | |
| 9972 | + } | |
| 9973 | + })); | |
| 8726 | 9974 | }; |
| 9975 | + | |
| 9976 | + return /*#__PURE__*/_react.default.createElement(_menu.default, { | |
| 9977 | + menuItems: templateTypes, | |
| 9978 | + actionButton: actionButton, | |
| 9979 | + promotion: props.promotion | |
| 9980 | + }, props.allPartsButton, /*#__PURE__*/_react.default.createElement("div", { | |
| 9981 | + className: "eps-menu__title" | |
| 9982 | + }, __('Site Parts', 'elementor'))); | |
| 8727 | 9983 | } |
| 8728 | 9984 | |
| 8729 | -module.exports = warning; | |
| 9985 | +Menu.propTypes = { | |
| 9986 | + allPartsButton: PropTypes.element.isRequired, | |
| 9987 | + promotion: PropTypes.bool | |
| 9988 | +}; | |
| 9989 | +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(189)["__"], __webpack_require__(41))) | |
| 8730 | 9990 | |
| 9991 | +/***/ }), | |
| 9992 | +/* 779 */ | |
| 9993 | +/***/ (function(module, exports) { | |
| 8731 | 9994 | |
| 9995 | + | |
| 9996 | + | |
| 8732 | 9997 | /***/ }), |
| 9998 | +/* 780 */ | |
| 9999 | +/***/ (function(module, exports) { | |
| 8733 | 10000 | |
| 8734 | -/***/ "@elementor/router": | |
| 8735 | -/*!**********************************************!*\ | |
| 8736 | - !*** external "elementorAppPackages.router" ***! | |
| 8737 | - \**********************************************/ | |
| 8738 | -/***/ ((module) => { | |
| 8739 | 10001 | |
| 8740 | -"use strict"; | |
| 8741 | -module.exports = elementorAppPackages.router; | |
| 8742 | 10002 | |
| 8743 | 10003 | /***/ }), |
| 10004 | +/* 781 */ | |
| 10005 | +/***/ (function(module, exports) { | |
| 8744 | 10006 | |
| 8745 | -/***/ "@wordpress/i18n": | |
| 8746 | -/*!**************************!*\ | |
| 8747 | - !*** external "wp.i18n" ***! | |
| 8748 | - \**************************/ | |
| 8749 | -/***/ ((module) => { | |
| 8750 | 10007 | |
| 10008 | + | |
| 10009 | +/***/ }), | |
| 10010 | +/* 782 */ | |
| 10011 | +/***/ (function(module, exports, __webpack_require__) { | |
| 10012 | + | |
| 8751 | 10013 | "use strict"; |
| 8752 | -module.exports = wp.i18n; | |
| 10014 | +/* WEBPACK VAR INJECTION */(function(__) { | |
| 8753 | 10015 | |
| 10016 | +var _interopRequireDefault = __webpack_require__(0); | |
| 10017 | + | |
| 10018 | +var _Object$defineProperty = __webpack_require__(1); | |
| 10019 | + | |
| 10020 | +_Object$defineProperty(exports, "__esModule", { | |
| 10021 | + value: true | |
| 10022 | +}); | |
| 10023 | + | |
| 10024 | +exports.default = void 0; | |
| 10025 | + | |
| 10026 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2)); | |
| 10027 | + | |
| 10028 | +var _createClass2 = _interopRequireDefault(__webpack_require__(3)); | |
| 10029 | + | |
| 10030 | +var _router = _interopRequireDefault(__webpack_require__(344)); | |
| 10031 | + | |
| 10032 | +var _promotion = _interopRequireDefault(__webpack_require__(783)); | |
| 10033 | + | |
| 10034 | +var _notFound = _interopRequireDefault(__webpack_require__(699)); | |
| 10035 | + | |
| 10036 | +var SiteEditor = /*#__PURE__*/function () { | |
| 10037 | + function SiteEditor() { | |
| 10038 | + (0, _classCallCheck2.default)(this, SiteEditor); | |
| 10039 | + this.saveTemplateTypesToCache(); | |
| 10040 | + | |
| 10041 | + _router.default.addRoute({ | |
| 10042 | + path: '/site-editor/promotion', | |
| 10043 | + component: _promotion.default | |
| 10044 | + }); | |
| 10045 | + | |
| 10046 | + _router.default.addRoute({ | |
| 10047 | + path: '/site-editor/*', | |
| 10048 | + component: _notFound.default | |
| 10049 | + }); | |
| 10050 | + } | |
| 10051 | + | |
| 10052 | + (0, _createClass2.default)(SiteEditor, [{ | |
| 10053 | + key: "saveTemplateTypesToCache", | |
| 10054 | + value: function saveTemplateTypesToCache() { | |
| 10055 | + var types = this.getTypes(); | |
| 10056 | + elementorCommon.ajax.addRequestCache({ | |
| 10057 | + unique_id: 'app_site_editor_template_types' | |
| 10058 | + }, types); | |
| 10059 | + } | |
| 10060 | + }, { | |
| 10061 | + key: "getTypes", | |
| 10062 | + value: function getTypes() { | |
| 10063 | + return [{ | |
| 10064 | + type: 'header', | |
| 10065 | + icon: 'eicon-header', | |
| 10066 | + title: __('Header', 'elementor'), | |
| 10067 | + urls: { | |
| 10068 | + thumbnail: elementorAppConfig.assets_url + '/images/app/site-editor/header.svg' | |
| 10069 | + }, | |
| 10070 | + tooltip_data: { | |
| 10071 | + title: __('What is a Header Template?', 'elementor'), | |
| 10072 | + content: __('The header template allows you to easily design and edit custom WordPress headers so you are no longer constrained by your theme’s header design limitations.', 'elementor'), | |
| 10073 | + tip: __('You can create multiple headers, and assign each to different areas of your site.', 'elementor'), | |
| 10074 | + docs: 'https://go.elementor.com/app-theme-builder-header', | |
| 10075 | + video_url: 'https://www.youtube.com/embed/HHy5RK6W-6I' | |
| 10076 | + } | |
| 10077 | + }, { | |
| 10078 | + type: 'footer', | |
| 10079 | + icon: 'eicon-footer', | |
| 10080 | + title: __('Footer', 'elementor'), | |
| 10081 | + urls: { | |
| 10082 | + thumbnail: elementorAppConfig.assets_url + '/images/app/site-editor/footer.svg' | |
| 10083 | + }, | |
| 10084 | + tooltip_data: { | |
| 10085 | + title: __('What is a Footer Template?', 'elementor'), | |
| 10086 | + content: __('The footer template allows you to easily design and edit custom WordPress footers without the limits of your theme’s footer design constraints', 'elementor'), | |
| 10087 | + tip: __('You can create multiple footers, and assign each to different areas of your site.', 'elementor'), | |
| 10088 | + docs: 'https://go.elementor.com/app-theme-builder-footer', | |
| 10089 | + video_url: 'https://www.youtube.com/embed/xa8DoR4tQrY' | |
| 10090 | + } | |
| 10091 | + }, { | |
| 10092 | + type: 'single-page', | |
| 10093 | + icon: 'eicon-single-page', | |
| 10094 | + title: __('Single Page', 'elementor'), | |
| 10095 | + urls: { | |
| 10096 | + thumbnail: elementorAppConfig.assets_url + '/images/app/site-editor/single-page.svg' | |
| 10097 | + }, | |
| 10098 | + tooltip_data: { | |
| 10099 | + title: __('What is a Single Page Template?', 'elementor'), | |
| 10100 | + content: __('A single page template allows you to easily create the layout and style of pages, ensuring design consistency across all the pages of your site.', 'elementor'), | |
| 10101 | + tip: __('You can create multiple global page templates, and assign each to different areas of your site.', 'elementor'), | |
| 10102 | + docs: 'https://go.elementor.com/app-theme-builder-page', | |
| 10103 | + video_url: 'https://www.youtube.com/embed/_y5eZ60lVoY' | |
| 10104 | + } | |
| 10105 | + }, { | |
| 10106 | + type: 'single-post', | |
| 10107 | + icon: 'eicon-single-post', | |
| 10108 | + title: __('Single Post', 'elementor'), | |
| 10109 | + urls: { | |
| 10110 | + thumbnail: elementorAppConfig.assets_url + '/images/app/site-editor/single-post.svg' | |
| 10111 | + }, | |
| 10112 | + tooltip_data: { | |
| 10113 | + title: __('What is a Single Post Template?', 'elementor'), | |
| 10114 | + content: __('A single post template allows you to easily design the layout and style of posts, ensuring a design consistency throughout all your blog posts, for example.', 'elementor'), | |
| 10115 | + tip: __('You can create multiple global post templates, and assign each to a different category.', 'elementor'), | |
| 10116 | + docs: 'https://go.elementor.com/app-theme-builder-post', | |
| 10117 | + video_url: 'https://www.youtube.com/embed/8Fk-Edu7DL0' | |
| 10118 | + } | |
| 10119 | + }, { | |
| 10120 | + type: 'archive', | |
| 10121 | + icon: 'eicon-archive', | |
| 10122 | + title: __('Archive', 'elementor'), | |
| 10123 | + urls: { | |
| 10124 | + thumbnail: elementorAppConfig.assets_url + '/images/app/site-editor/archive.svg' | |
| 10125 | + }, | |
| 10126 | + tooltip_data: { | |
| 10127 | + title: __('What is an Archive Template?', 'elementor'), | |
| 10128 | + content: __('An archive template allows you to easily design the layout and style of archive pages - those pages that show a list of posts (e.g. a blog’s list of recent posts), which may be filtered by terms such as authors, categories, tags, search results, etc.', 'elementor'), | |
| 10129 | + tip: __('If you’d like a different style for a specific category, it’s easy to create a separate global archive template whose condition is to only display when users are viewing that category’s list of posts.', 'elementor'), | |
| 10130 | + docs: 'https://go.elementor.com/app-theme-builder-archive', | |
| 10131 | + video_url: 'https://www.youtube.com/embed/wxElpEh9bfA' | |
| 10132 | + } | |
| 10133 | + }, { | |
| 10134 | + type: 'search-results', | |
| 10135 | + icon: 'eicon-search-results', | |
| 10136 | + title: __('Search Results', 'elementor'), | |
| 10137 | + urls: { | |
| 10138 | + thumbnail: elementorAppConfig.assets_url + '/images/app/site-editor/search-results.svg' | |
| 10139 | + }, | |
| 10140 | + tooltip_data: { | |
| 10141 | + title: __('What is a Search Results Template?', 'elementor'), | |
| 10142 | + content: __('You can easily control the layout and design of the Search Results page with the Search Results template, which is simply a special archive template just for displaying search results.', 'elementor'), | |
| 10143 | + tip: __('You can customize the message if there are no results for the search term.', 'elementor'), | |
| 10144 | + docs: 'https://go.elementor.com/app-theme-builder-search-results', | |
| 10145 | + video_url: 'https://www.youtube.com/embed/KKkIU_L5sDo' | |
| 10146 | + } | |
| 10147 | + }, { | |
| 10148 | + type: 'product', | |
| 10149 | + icon: 'eicon-single-product', | |
| 10150 | + title: __('Product', 'elementor'), | |
| 10151 | + urls: { | |
| 10152 | + thumbnail: elementorAppConfig.assets_url + '/images/app/site-editor/product.svg' | |
| 10153 | + }, | |
| 10154 | + tooltip_data: { | |
| 10155 | + title: __('What is a Single Product Template?', 'elementor'), | |
| 10156 | + content: __('A single product template allows you to easily design the layout and style of WooCommerce single product pages, and apply that template to various conditions that you assign.', 'elementor'), | |
| 10157 | + tip: __('You can create multiple global product templates, and assign each to different types of products, enabling a custom design for each group of similar products.', 'elementor'), | |
| 10158 | + docs: 'https://go.elementor.com/app-theme-builder-product', | |
| 10159 | + video_url: 'https://www.youtube.com/embed/PjhoB1RWkBM' | |
| 10160 | + } | |
| 10161 | + }, { | |
| 10162 | + type: 'products', | |
| 10163 | + icon: 'eicon-products', | |
| 10164 | + title: __('Products Archive', 'elementor'), | |
| 10165 | + urls: { | |
| 10166 | + thumbnail: elementorAppConfig.assets_url + '/images/app/site-editor/products.svg' | |
| 10167 | + }, | |
| 10168 | + tooltip_data: { | |
| 10169 | + title: __('What is a Products Archive Template?', 'elementor'), | |
| 10170 | + content: __('A products archive template allows you to easily design the layout and style of your WooCommerce shop page or other product archive pages - those pages that show a list of products, which may be filtered by terms such as categories, tags, etc.', 'elementor'), | |
| 10171 | + tip: __('You can create multiple global archive product templates, and assign each to different categories of products. This gives you the freedom to customize the appearance for each type of product being shown.', 'elementor'), | |
| 10172 | + docs: 'https://go.elementor.com/app-theme-builder-products-archive', | |
| 10173 | + video_url: 'https://www.youtube.com/embed/cQLeirgkguA' | |
| 10174 | + } | |
| 10175 | + }, { | |
| 10176 | + type: 'error-404', | |
| 10177 | + icon: 'eicon-error-404', | |
| 10178 | + title: __('Error 404', 'elementor'), | |
| 10179 | + urls: { | |
| 10180 | + thumbnail: elementorAppConfig.assets_url + '/images/app/site-editor/error-404.svg' | |
| 10181 | + }, | |
| 10182 | + tooltip_data: { | |
| 10183 | + title: __('What is a 404 Page Template?', 'elementor'), | |
| 10184 | + content: __('A 404 page template allows you to easily design the layout and style of the page that is displayed when a visitor arrives at a page that does not exist.', 'elementor'), | |
| 10185 | + tip: __('Keep your site\'s visitors happy when they get lost by displaying your recent posts, a search bar, or any information that might help the user find what they were looking for.', 'elementor'), | |
| 10186 | + docs: 'https://go.elementor.com/app-theme-builder-404', | |
| 10187 | + video_url: 'https://www.youtube.com/embed/ACCNp9tBMQg' | |
| 10188 | + } | |
| 10189 | + }]; | |
| 10190 | + } | |
| 10191 | + }]); | |
| 10192 | + return SiteEditor; | |
| 10193 | +}(); | |
| 10194 | + | |
| 10195 | +exports.default = SiteEditor; | |
| 10196 | +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(189)["__"])) | |
| 10197 | + | |
| 8754 | 10198 | /***/ }), |
| 10199 | +/* 783 */ | |
| 10200 | +/***/ (function(module, exports, __webpack_require__) { | |
| 8755 | 10201 | |
| 8756 | -/***/ "react": | |
| 8757 | -/*!************************!*\ | |
| 8758 | - !*** external "React" ***! | |
| 8759 | - \************************/ | |
| 8760 | -/***/ ((module) => { | |
| 10202 | +"use strict"; | |
| 10203 | +/* WEBPACK VAR INJECTION */(function(__, PropTypes) { | |
| 8761 | 10204 | |
| 8762 | -"use strict"; | |
| 8763 | -module.exports = React; | |
| 10205 | +var _interopRequireDefault = __webpack_require__(0); | |
| 8764 | 10206 | |
| 8765 | -/***/ }) | |
| 10207 | +var _Object$defineProperty = __webpack_require__(1); | |
| 8766 | 10208 | |
| 8767 | -/******/ }); | |
| 8768 | -/************************************************************************/ | |
| 8769 | -/******/ // The module cache | |
| 8770 | -/******/ var __webpack_module_cache__ = {}; | |
| 8771 | -/******/ | |
| 8772 | -/******/ // The require function | |
| 8773 | -/******/ function __webpack_require__(moduleId) { | |
| 8774 | -/******/ // Check if module is in cache | |
| 8775 | -/******/ var cachedModule = __webpack_module_cache__[moduleId]; | |
| 8776 | -/******/ if (cachedModule !== undefined) { | |
| 8777 | -/******/ return cachedModule.exports; | |
| 8778 | -/******/ } | |
| 8779 | -/******/ // Create a new module (and put it into the cache) | |
| 8780 | -/******/ var module = __webpack_module_cache__[moduleId] = { | |
| 8781 | -/******/ // no module.id needed | |
| 8782 | -/******/ // no module.loaded needed | |
| 8783 | -/******/ exports: {} | |
| 8784 | -/******/ }; | |
| 8785 | -/******/ | |
| 8786 | -/******/ // Execute the module function | |
| 8787 | -/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__); | |
| 8788 | -/******/ | |
| 8789 | -/******/ // Return the exports of the module | |
| 8790 | -/******/ return module.exports; | |
| 8791 | -/******/ } | |
| 8792 | -/******/ | |
| 8793 | -/************************************************************************/ | |
| 8794 | -/******/ /* webpack/runtime/compat get default export */ | |
| 8795 | -/******/ (() => { | |
| 8796 | -/******/ // getDefaultExport function for compatibility with non-harmony modules | |
| 8797 | -/******/ __webpack_require__.n = (module) => { | |
| 8798 | -/******/ var getter = module && module.__esModule ? | |
| 8799 | -/******/ () => (module['default']) : | |
| 8800 | -/******/ () => (module); | |
| 8801 | -/******/ __webpack_require__.d(getter, { a: getter }); | |
| 8802 | -/******/ return getter; | |
| 8803 | -/******/ }; | |
| 8804 | -/******/ })(); | |
| 8805 | -/******/ | |
| 8806 | -/******/ /* webpack/runtime/define property getters */ | |
| 8807 | -/******/ (() => { | |
| 8808 | -/******/ // define getter functions for harmony exports | |
| 8809 | -/******/ __webpack_require__.d = (exports, definition) => { | |
| 8810 | -/******/ for(var key in definition) { | |
| 8811 | -/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) { | |
| 8812 | -/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] }); | |
| 8813 | -/******/ } | |
| 8814 | -/******/ } | |
| 8815 | -/******/ }; | |
| 8816 | -/******/ })(); | |
| 8817 | -/******/ | |
| 8818 | -/******/ /* webpack/runtime/global */ | |
| 8819 | -/******/ (() => { | |
| 8820 | -/******/ __webpack_require__.g = (function() { | |
| 8821 | -/******/ if (typeof globalThis === 'object') return globalThis; | |
| 8822 | -/******/ try { | |
| 8823 | -/******/ return this || new Function('return this')(); | |
| 8824 | -/******/ } catch (e) { | |
| 8825 | -/******/ if (typeof window === 'object') return window; | |
| 8826 | -/******/ } | |
| 8827 | -/******/ })(); | |
| 8828 | -/******/ })(); | |
| 8829 | -/******/ | |
| 8830 | -/******/ /* webpack/runtime/hasOwnProperty shorthand */ | |
| 8831 | -/******/ (() => { | |
| 8832 | -/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop)) | |
| 8833 | -/******/ })(); | |
| 8834 | -/******/ | |
| 8835 | -/******/ /* webpack/runtime/make namespace object */ | |
| 8836 | -/******/ (() => { | |
| 8837 | -/******/ // define __esModule on exports | |
| 8838 | -/******/ __webpack_require__.r = (exports) => { | |
| 8839 | -/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { | |
| 8840 | -/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); | |
| 8841 | -/******/ } | |
| 8842 | -/******/ Object.defineProperty(exports, '__esModule', { value: true }); | |
| 8843 | -/******/ }; | |
| 8844 | -/******/ })(); | |
| 8845 | -/******/ | |
| 8846 | -/************************************************************************/ | |
| 8847 | -var __webpack_exports__ = {}; | |
| 8848 | -// This entry needs to be wrapped in an IIFE because it needs to be in strict mode. | |
| 8849 | -(() => { | |
| 8850 | -"use strict"; | |
| 8851 | -/*!****************************************!*\ | |
| 8852 | - !*** ../app/assets/js/app-packages.js ***! | |
| 8853 | - \****************************************/ | |
| 10209 | +_Object$defineProperty(exports, "__esModule", { | |
| 10210 | + value: true | |
| 10211 | +}); | |
| 8854 | 10212 | |
| 10213 | +exports.default = Promotion; | |
| 8855 | 10214 | |
| 8856 | -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 8857 | -var _router = _interopRequireDefault(__webpack_require__(/*! ./router */ "../app/assets/js/router.js")); | |
| 8858 | -var _package = __webpack_require__(/*! ./package */ "../app/assets/js/package.js"); | |
| 8859 | -var _package2 = _interopRequireDefault(__webpack_require__(/*! ../../modules/site-editor/assets/js/package */ "../app/modules/site-editor/assets/js/package.js")); | |
| 8860 | -/** | |
| 8861 | - * Temporary solution for share components. | |
| 8862 | - * TODO. | |
| 8863 | - */ | |
| 10215 | +var _react = _interopRequireDefault(__webpack_require__(11)); | |
| 8864 | 10216 | |
| 8865 | -// Make router available for use within packages. | |
| 10217 | +var _allPartsButton = _interopRequireDefault(__webpack_require__(695)); | |
| 8866 | 10218 | |
| 8867 | -// Alphabetical order. | |
| 10219 | +var _button = _interopRequireDefault(__webpack_require__(238)); | |
| 8868 | 10220 | |
| 8869 | -window.elementorAppPackages = { | |
| 8870 | - appUi: _package.appUi, | |
| 8871 | - components: _package.components, | |
| 8872 | - hooks: _package.hooks, | |
| 8873 | - router: _router.default, | |
| 8874 | - siteEditor: _package2.default | |
| 8875 | -}; | |
| 8876 | -})(); | |
| 10221 | +var _cardOverlay = _interopRequireDefault(__webpack_require__(686)); | |
| 8877 | 10222 | |
| 8878 | -/******/ })() | |
| 8879 | -; | |
| 10223 | +var _grid = _interopRequireDefault(__webpack_require__(346)); | |
| 10224 | + | |
| 10225 | +var _heading = _interopRequireDefault(__webpack_require__(336)); | |
| 10226 | + | |
| 10227 | +var _layout = _interopRequireDefault(__webpack_require__(696)); | |
| 10228 | + | |
| 10229 | +var _siteParts = _interopRequireDefault(__webpack_require__(697)); | |
| 10230 | + | |
| 10231 | +var _text = _interopRequireDefault(__webpack_require__(347)); | |
| 10232 | + | |
| 10233 | +__webpack_require__(785); | |
| 10234 | + | |
| 10235 | +function Promotion() { | |
| 10236 | + var promotionUrl = 'https://go.elementor.com/go-pro-theme-builder', | |
| 10237 | + PromotionHoverElement = function PromotionHoverElement(props) { | |
| 10238 | + var promotionUrlWithType = "".concat(promotionUrl, "?type=").concat(props.type); | |
| 10239 | + return /*#__PURE__*/_react.default.createElement(_cardOverlay.default, { | |
| 10240 | + className: "e-site-editor__promotion-overlay" | |
| 10241 | + }, /*#__PURE__*/_react.default.createElement("a", { | |
| 10242 | + className: "e-site-editor__promotion-overlay__link", | |
| 10243 | + target: "_blank", | |
| 10244 | + rel: "noopener noreferrer", | |
| 10245 | + href: promotionUrlWithType | |
| 10246 | + }, /*#__PURE__*/_react.default.createElement("i", { | |
| 10247 | + className: "e-site-editor__promotion-overlay__icon eicon-lock" | |
| 10248 | + }), /*#__PURE__*/_react.default.createElement(_button.default, { | |
| 10249 | + size: "sm", | |
| 10250 | + color: "cta", | |
| 10251 | + variant: "contained", | |
| 10252 | + text: __('Go Pro', 'elementor') | |
| 10253 | + }))); | |
| 10254 | + }; | |
| 10255 | + | |
| 10256 | + PromotionHoverElement.propTypes = { | |
| 10257 | + className: PropTypes.string, | |
| 10258 | + type: PropTypes.string.isRequired | |
| 10259 | + }; | |
| 10260 | + return /*#__PURE__*/_react.default.createElement(_layout.default, { | |
| 10261 | + allPartsButton: /*#__PURE__*/_react.default.createElement(_allPartsButton.default, { | |
| 10262 | + promotion: true | |
| 10263 | + }), | |
| 10264 | + promotion: true | |
| 10265 | + }, /*#__PURE__*/_react.default.createElement("section", { | |
| 10266 | + className: "e-site-editor__promotion" | |
| 10267 | + }, /*#__PURE__*/_react.default.createElement(_grid.default, { | |
| 10268 | + container: true, | |
| 10269 | + className: "page-header" | |
| 10270 | + }, /*#__PURE__*/_react.default.createElement(_grid.default, { | |
| 10271 | + item: true, | |
| 10272 | + sm: 7, | |
| 10273 | + justify: "end" | |
| 10274 | + }, /*#__PURE__*/_react.default.createElement(_heading.default, { | |
| 10275 | + variant: "h1" | |
| 10276 | + }, __('Create Full Site', 'elementor')), /*#__PURE__*/_react.default.createElement(_text.default, null, __('Theme Builder is the industry leading all-in-one solution that lets you customize every part of your WordPress theme visually: Header, Footer, Single, Archive & WooCommerce', 'elementor'))), /*#__PURE__*/_react.default.createElement(_grid.default, { | |
| 10277 | + item: true, | |
| 10278 | + container: true, | |
| 10279 | + justify: "end", | |
| 10280 | + alignItems: "start", | |
| 10281 | + sm: 5 | |
| 10282 | + }, /*#__PURE__*/_react.default.createElement(_button.default, { | |
| 10283 | + size: "sm", | |
| 10284 | + color: "cta", | |
| 10285 | + variant: "contained", | |
| 10286 | + url: promotionUrl, | |
| 10287 | + text: __('Go Pro', 'elementor') | |
| 10288 | + }))), /*#__PURE__*/_react.default.createElement("hr", { | |
| 10289 | + className: "eps-separator" | |
| 10290 | + }), /*#__PURE__*/_react.default.createElement(_siteParts.default, { | |
| 10291 | + hoverElement: PromotionHoverElement | |
| 10292 | + }))); | |
| 10293 | +} | |
| 10294 | +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(189)["__"], __webpack_require__(41))) | |
| 10295 | + | |
| 10296 | +/***/ }), | |
| 10297 | +/* 784 */ | |
| 10298 | +/***/ (function(module, exports) { | |
| 10299 | + | |
| 10300 | + | |
| 10301 | + | |
| 10302 | +/***/ }), | |
| 10303 | +/* 785 */ | |
| 10304 | +/***/ (function(module, exports) { | |
| 10305 | + | |
| 10306 | + | |
| 10307 | + | |
| 10308 | +/***/ }) | |
| 10309 | +/******/ ]); | |
| 8880 | 10310 | //# sourceMappingURL=app-packages.js.map |