| @@ -1,2459 +1,3724 @@ | ||
| 1 | -(function(_elementor_editor_app_bar, _wordpress_i18n, react, _elementor_query, _elementor_editor_v1_adapters, _elementor_icons_RocketIcon, _elementor_ui, _elementor_icons) { | |
| 1 | +/*! elementor - v3.32.0 - 29-09-2025 */ | |
| 2 | +/******/ (() => { // webpackBootstrap | |
| 3 | +/******/ var __webpack_modules__ = ({ | |
| 2 | 4 | |
| 3 | -//#region \0rolldown/runtime.js | |
| 4 | - var __create = Object.create; | |
| 5 | - var __defProp = Object.defineProperty; | |
| 6 | - var __name = (target, value) => __defProp(target, "name", { | |
| 7 | - value, | |
| 8 | - configurable: true | |
| 9 | - }); | |
| 10 | - var __getOwnPropDesc = Object.getOwnPropertyDescriptor; | |
| 11 | - var __getOwnPropNames = Object.getOwnPropertyNames; | |
| 12 | - var __getProtoOf = Object.getPrototypeOf; | |
| 13 | - var __hasOwnProp = Object.prototype.hasOwnProperty; | |
| 14 | - var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports); | |
| 15 | - var __exportAll = (all, no_symbols) => { | |
| 16 | - let target = {}; | |
| 17 | - for (var name in all) { | |
| 18 | - __defProp(target, name, { | |
| 19 | - get: all[name], | |
| 20 | - enumerable: true | |
| 21 | - }); | |
| 5 | +/***/ "../app/assets/js/hooks/use-ajax.js": | |
| 6 | +/*!******************************************!*\ | |
| 7 | + !*** ../app/assets/js/hooks/use-ajax.js ***! | |
| 8 | + \******************************************/ | |
| 9 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 10 | + | |
| 11 | +"use strict"; | |
| 12 | + | |
| 13 | + | |
| 14 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 15 | +Object.defineProperty(exports, "__esModule", ({ | |
| 16 | + value: true | |
| 17 | +})); | |
| 18 | +exports["default"] = useAjax; | |
| 19 | +var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/regenerator */ "../node_modules/@babel/runtime/regenerator/index.js")); | |
| 20 | +var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "../node_modules/@babel/runtime/helpers/defineProperty.js")); | |
| 21 | +var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ "../node_modules/@babel/runtime/helpers/asyncToGenerator.js")); | |
| 22 | +var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ "../node_modules/@babel/runtime/helpers/slicedToArray.js")); | |
| 23 | +var _react = __webpack_require__(/*! react */ "react"); | |
| 24 | +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; } | |
| 25 | +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; } | |
| 26 | +function useAjax() { | |
| 27 | + var _useState = (0, _react.useState)(null), | |
| 28 | + _useState2 = (0, _slicedToArray2.default)(_useState, 2), | |
| 29 | + ajax = _useState2[0], | |
| 30 | + setAjax = _useState2[1], | |
| 31 | + initialStatusKey = 'initial', | |
| 32 | + uploadInitialState = { | |
| 33 | + status: initialStatusKey, | |
| 34 | + isComplete: false, | |
| 35 | + response: null | |
| 36 | + }, | |
| 37 | + _useState3 = (0, _react.useState)(uploadInitialState), | |
| 38 | + _useState4 = (0, _slicedToArray2.default)(_useState3, 2), | |
| 39 | + ajaxState = _useState4[0], | |
| 40 | + setAjaxState = _useState4[1], | |
| 41 | + ajaxActions = { | |
| 42 | + reset: function reset() { | |
| 43 | + return setAjaxState(initialStatusKey); | |
| 44 | + } | |
| 45 | + }; | |
| 46 | + var runRequest = /*#__PURE__*/function () { | |
| 47 | + var _ref = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee(config) { | |
| 48 | + return _regenerator.default.wrap(function (_context) { | |
| 49 | + while (1) switch (_context.prev = _context.next) { | |
| 50 | + case 0: | |
| 51 | + return _context.abrupt("return", new Promise(function (resolve, reject) { | |
| 52 | + var formData = new FormData(); | |
| 53 | + if (config.data) { | |
| 54 | + for (var key in config.data) { | |
| 55 | + formData.append(key, config.data[key]); | |
| 56 | + } | |
| 57 | + if (!config.data.nonce) { | |
| 58 | + formData.append('_nonce', elementorCommon.config.ajax.nonce); | |
| 59 | + } | |
| 60 | + } | |
| 61 | + var options = _objectSpread(_objectSpread({ | |
| 62 | + type: 'post', | |
| 63 | + url: elementorCommon.config.ajax.url, | |
| 64 | + headers: {}, | |
| 65 | + cache: false, | |
| 66 | + contentType: false, | |
| 67 | + processData: false | |
| 68 | + }, config), {}, { | |
| 69 | + data: formData, | |
| 70 | + success: function success(response) { | |
| 71 | + resolve(response); | |
| 72 | + }, | |
| 73 | + error: function error(_error) { | |
| 74 | + reject(_error); | |
| 75 | + } | |
| 76 | + }); | |
| 77 | + jQuery.ajax(options); | |
| 78 | + })); | |
| 79 | + case 1: | |
| 80 | + case "end": | |
| 81 | + return _context.stop(); | |
| 82 | + } | |
| 83 | + }, _callee); | |
| 84 | + })); | |
| 85 | + return function runRequest(_x) { | |
| 86 | + return _ref.apply(this, arguments); | |
| 87 | + }; | |
| 88 | + }(); | |
| 89 | + (0, _react.useEffect)(function () { | |
| 90 | + if (ajax) { | |
| 91 | + runRequest(ajax).then(function (response) { | |
| 92 | + var status = response.success ? 'success' : 'error'; | |
| 93 | + setAjaxState(function (prevState) { | |
| 94 | + return _objectSpread(_objectSpread({}, prevState), {}, { | |
| 95 | + status: status, | |
| 96 | + response: response === null || response === void 0 ? void 0 : response.data | |
| 97 | + }); | |
| 98 | + }); | |
| 99 | + }).catch(function (error) { | |
| 100 | + var _error$responseJSON; | |
| 101 | + var response = 408 === error.status ? 'timeout' : (_error$responseJSON = error.responseJSON) === null || _error$responseJSON === void 0 ? void 0 : _error$responseJSON.data; | |
| 102 | + setAjaxState(function (prevState) { | |
| 103 | + return _objectSpread(_objectSpread({}, prevState), {}, { | |
| 104 | + status: 'error', | |
| 105 | + response: response | |
| 106 | + }); | |
| 107 | + }); | |
| 108 | + }).finally(function () { | |
| 109 | + setAjaxState(function (prevState) { | |
| 110 | + return _objectSpread(_objectSpread({}, prevState), {}, { | |
| 111 | + isComplete: true | |
| 112 | + }); | |
| 113 | + }); | |
| 114 | + }); | |
| 115 | + } | |
| 116 | + }, [ajax]); | |
| 117 | + return { | |
| 118 | + ajax: ajax, | |
| 119 | + setAjax: setAjax, | |
| 120 | + ajaxState: ajaxState, | |
| 121 | + ajaxActions: ajaxActions, | |
| 122 | + runRequest: runRequest | |
| 123 | + }; | |
| 124 | +} | |
| 125 | + | |
| 126 | +/***/ }), | |
| 127 | + | |
| 128 | +/***/ "../modules/checklist/assets/js/app/app.js": | |
| 129 | +/*!*************************************************!*\ | |
| 130 | + !*** ../modules/checklist/assets/js/app/app.js ***! | |
| 131 | + \*************************************************/ | |
| 132 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 133 | + | |
| 134 | +"use strict"; | |
| 135 | + | |
| 136 | + | |
| 137 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 138 | +var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ "../node_modules/@babel/runtime/helpers/typeof.js"); | |
| 139 | +Object.defineProperty(exports, "__esModule", ({ | |
| 140 | + value: true | |
| 141 | +})); | |
| 142 | +exports["default"] = void 0; | |
| 143 | +var _react = _interopRequireWildcard(__webpack_require__(/*! react */ "react")); | |
| 144 | +var _toConsumableArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/toConsumableArray */ "../node_modules/@babel/runtime/helpers/toConsumableArray.js")); | |
| 145 | +var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui"); | |
| 146 | +var _query = __webpack_require__(/*! @elementor/query */ "@elementor/query"); | |
| 147 | +var _editorV1Adapters = __webpack_require__(/*! @elementor/editor-v1-adapters */ "@elementor/editor-v1-adapters"); | |
| 148 | +var _checklist = _interopRequireDefault(__webpack_require__(/*! ./components/checklist */ "../modules/checklist/assets/js/app/components/checklist.js")); | |
| 149 | +var _functions = __webpack_require__(/*! ../utils/functions */ "../modules/checklist/assets/js/utils/functions.js"); | |
| 150 | +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); } | |
| 151 | +var App = function App() { | |
| 152 | + var isRTL = elementorCommon.config.isRTL, | |
| 153 | + _useQuery = (0, _query.useQuery)({ | |
| 154 | + queryKey: ['steps'], | |
| 155 | + queryFn: _functions.fetchSteps, | |
| 156 | + gcTime: 0, | |
| 157 | + enabled: false | |
| 158 | + }), | |
| 159 | + stepsError = _useQuery.error, | |
| 160 | + steps = _useQuery.data, | |
| 161 | + refetchSteps = _useQuery.refetch, | |
| 162 | + _useQuery2 = (0, _query.useQuery)({ | |
| 163 | + queryKey: ['statusData'], | |
| 164 | + queryFn: _functions.fetchUserProgress, | |
| 165 | + gcTime: 0, | |
| 166 | + enabled: false | |
| 167 | + }), | |
| 168 | + userProgressError = _useQuery2.error, | |
| 169 | + userProgress = _useQuery2.data, | |
| 170 | + refetchUserProgress = _useQuery2.refetch; | |
| 171 | + var fetchData = function fetchData() { | |
| 172 | + refetchSteps(); | |
| 173 | + refetchUserProgress(); | |
| 174 | + }; | |
| 175 | + (0, _react.useEffect)(function () { | |
| 176 | + fetchData(); | |
| 177 | + return (0, _editorV1Adapters.__privateListenTo)((0, _editorV1Adapters.commandEndEvent)('document/save/save'), function (_ref) { | |
| 178 | + var _args$document; | |
| 179 | + var args = _ref.args; | |
| 180 | + if ('kit' === (args === null || args === void 0 || (_args$document = args.document) === null || _args$document === void 0 || (_args$document = _args$document.config) === null || _args$document === void 0 ? void 0 : _args$document.type)) { | |
| 181 | + fetchData(); | |
| 182 | + } | |
| 183 | + }); | |
| 184 | + }, []); | |
| 185 | + if (userProgressError || !userProgress || stepsError || !(steps !== null && steps !== void 0 && steps.length)) { | |
| 186 | + return null; | |
| 187 | + } | |
| 188 | + return /*#__PURE__*/_react.default.createElement(_ui.DirectionProvider, { | |
| 189 | + rtl: isRTL | |
| 190 | + }, /*#__PURE__*/_react.default.createElement(_ui.ThemeProvider, { | |
| 191 | + colorScheme: "light" | |
| 192 | + }, /*#__PURE__*/_react.default.createElement(_checklist.default, { | |
| 193 | + steps: (0, _toConsumableArray2.default)(steps), | |
| 194 | + userProgress: userProgress | |
| 195 | + }))); | |
| 196 | +}; | |
| 197 | +var _default = exports["default"] = App; | |
| 198 | + | |
| 199 | +/***/ }), | |
| 200 | + | |
| 201 | +/***/ "../modules/checklist/assets/js/app/components/checklist-card-content.js": | |
| 202 | +/*!*******************************************************************************!*\ | |
| 203 | + !*** ../modules/checklist/assets/js/app/components/checklist-card-content.js ***! | |
| 204 | + \*******************************************************************************/ | |
| 205 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 206 | + | |
| 207 | +"use strict"; | |
| 208 | + | |
| 209 | + | |
| 210 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 211 | +Object.defineProperty(exports, "__esModule", ({ | |
| 212 | + value: true | |
| 213 | +})); | |
| 214 | +exports["default"] = void 0; | |
| 215 | +var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react")); | |
| 216 | +var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/regenerator */ "../node_modules/@babel/runtime/regenerator/index.js")); | |
| 217 | +var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "../node_modules/@babel/runtime/helpers/defineProperty.js")); | |
| 218 | +var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ "../node_modules/@babel/runtime/helpers/asyncToGenerator.js")); | |
| 219 | +var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui"); | |
| 220 | +var _i18n = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n"); | |
| 221 | +var _propTypes = _interopRequireDefault(__webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js")); | |
| 222 | +var _functions = __webpack_require__(/*! ../../utils/functions */ "../modules/checklist/assets/js/utils/functions.js"); | |
| 223 | +var _consts = __webpack_require__(/*! ../../utils/consts */ "../modules/checklist/assets/js/utils/consts.js"); | |
| 224 | +var IS_MARKED_COMPLETED = _consts.STEP.IS_MARKED_COMPLETED, | |
| 225 | + IS_ABSOLUTE_COMPLETED = _consts.STEP.IS_ABSOLUTE_COMPLETED, | |
| 226 | + IS_IMMUTABLE_COMPLETED = _consts.STEP.IS_IMMUTABLE_COMPLETED; | |
| 227 | +var DONE = _consts.MIXPANEL_CHECKLIST_STEPS.DONE, | |
| 228 | + UNDONE = _consts.MIXPANEL_CHECKLIST_STEPS.UNDONE, | |
| 229 | + ACTION = _consts.MIXPANEL_CHECKLIST_STEPS.ACTION, | |
| 230 | + UPGRADE = _consts.MIXPANEL_CHECKLIST_STEPS.UPGRADE; | |
| 231 | +var ChecklistCardContent = function ChecklistCardContent(_ref) { | |
| 232 | + var step = _ref.step, | |
| 233 | + setSteps = _ref.setSteps; | |
| 234 | + var _step$config = step.config, | |
| 235 | + id = _step$config.id, | |
| 236 | + description = _step$config.description, | |
| 237 | + learnMoreUrl = _step$config.learn_more_url, | |
| 238 | + learnMoreText = _step$config.learn_more_text, | |
| 239 | + imageSrc = _step$config.image_src, | |
| 240 | + promotionData = _step$config.promotion_data; | |
| 241 | + var ctaText = promotionData ? (promotionData === null || promotionData === void 0 ? void 0 : promotionData.text) || (0, _i18n.__)('Upgrade Now', 'elementor') : step.config.cta_text, | |
| 242 | + ctaUrl = promotionData ? promotionData.url : step.config.cta_url, | |
| 243 | + isAbsoluteCompleted = step[IS_ABSOLUTE_COMPLETED], | |
| 244 | + isImmutableCompleted = step[IS_IMMUTABLE_COMPLETED], | |
| 245 | + isMarkedCompleted = step[IS_MARKED_COMPLETED], | |
| 246 | + shouldShowMarkAsDone = !isAbsoluteCompleted && !isImmutableCompleted && !promotionData; | |
| 247 | + var redirectHandler = /*#__PURE__*/function () { | |
| 248 | + var _ref2 = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() { | |
| 249 | + return _regenerator.default.wrap(function (_context) { | |
| 250 | + while (1) switch (_context.prev = _context.next) { | |
| 251 | + case 0: | |
| 252 | + if (promotionData) { | |
| 253 | + (0, _functions.addMixpanelTrackingChecklistSteps)(step.config.id, UPGRADE); | |
| 254 | + } else { | |
| 255 | + (0, _functions.addMixpanelTrackingChecklistSteps)(step.config.id, ACTION); | |
| 256 | + } | |
| 257 | + if (!(!elementor || !_consts.STEP_IDS_TO_COMPLETE_IN_EDITOR.includes(id) || !_consts.PANEL_ROUTES[id])) { | |
| 258 | + _context.next = 1; | |
| 259 | + break; | |
| 260 | + } | |
| 261 | + return _context.abrupt("return", window.open(ctaUrl, '_blank')); | |
| 262 | + case 1: | |
| 263 | + _context.next = 2; | |
| 264 | + return $e.run('panel/global/open'); | |
| 265 | + case 2: | |
| 266 | + $e.route(_consts.PANEL_ROUTES[id]); | |
| 267 | + case 3: | |
| 268 | + case "end": | |
| 269 | + return _context.stop(); | |
| 270 | + } | |
| 271 | + }, _callee); | |
| 272 | + })); | |
| 273 | + return function redirectHandler() { | |
| 274 | + return _ref2.apply(this, arguments); | |
| 275 | + }; | |
| 276 | + }(); | |
| 277 | + var toggleMarkAsDone = /*#__PURE__*/function () { | |
| 278 | + var _ref3 = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee2() { | |
| 279 | + var currState, _t; | |
| 280 | + return _regenerator.default.wrap(function (_context2) { | |
| 281 | + while (1) switch (_context2.prev = _context2.next) { | |
| 282 | + case 0: | |
| 283 | + currState = isMarkedCompleted; | |
| 284 | + if (isMarkedCompleted) { | |
| 285 | + (0, _functions.addMixpanelTrackingChecklistSteps)(step.config.id, UNDONE); | |
| 286 | + } else { | |
| 287 | + (0, _functions.addMixpanelTrackingChecklistSteps)(step.config.id, DONE); | |
| 288 | + } | |
| 289 | + _context2.prev = 1; | |
| 290 | + updateStepsState(IS_MARKED_COMPLETED, !currState); | |
| 291 | + _context2.next = 2; | |
| 292 | + return (0, _functions.updateStep)(id, (0, _defineProperty2.default)({}, IS_MARKED_COMPLETED, !currState)); | |
| 293 | + case 2: | |
| 294 | + _context2.next = 4; | |
| 295 | + break; | |
| 296 | + case 3: | |
| 297 | + _context2.prev = 3; | |
| 298 | + _t = _context2["catch"](1); | |
| 299 | + updateStepsState(IS_MARKED_COMPLETED, currState); | |
| 300 | + case 4: | |
| 301 | + case "end": | |
| 302 | + return _context2.stop(); | |
| 303 | + } | |
| 304 | + }, _callee2, null, [[1, 3]]); | |
| 305 | + })); | |
| 306 | + return function toggleMarkAsDone() { | |
| 307 | + return _ref3.apply(this, arguments); | |
| 308 | + }; | |
| 309 | + }(); | |
| 310 | + var updateStepsState = function updateStepsState(key, value) { | |
| 311 | + setSteps(function (steps) { | |
| 312 | + return steps.map(function (iteratedStep) { | |
| 313 | + return (0, _functions.getAndUpdateStep)(step.config.id, iteratedStep, key, value); | |
| 314 | + }); | |
| 315 | + }); | |
| 316 | + }; | |
| 317 | + return /*#__PURE__*/_react.default.createElement(_ui.Card, { | |
| 318 | + elevation: 0, | |
| 319 | + square: true, | |
| 320 | + "data-step-id": id | |
| 321 | + }, /*#__PURE__*/_react.default.createElement(_ui.CardMedia, { | |
| 322 | + image: imageSrc, | |
| 323 | + sx: { | |
| 324 | + height: 180 | |
| 325 | + } | |
| 326 | + }), /*#__PURE__*/_react.default.createElement(_ui.CardContent, null, /*#__PURE__*/_react.default.createElement(_ui.Typography, { | |
| 327 | + variant: "body2", | |
| 328 | + color: "text.secondary", | |
| 329 | + component: "p" | |
| 330 | + }, description + ' ', /*#__PURE__*/_react.default.createElement(_ui.Link, { | |
| 331 | + href: learnMoreUrl, | |
| 332 | + target: "_blank", | |
| 333 | + rel: "noreferrer", | |
| 334 | + underline: "hover", | |
| 335 | + color: "info.main", | |
| 336 | + noWrap: true | |
| 337 | + }, learnMoreText))), /*#__PURE__*/_react.default.createElement(_ui.CardActions, null, shouldShowMarkAsDone ? /*#__PURE__*/_react.default.createElement(_ui.Button, { | |
| 338 | + size: "small", | |
| 339 | + color: "secondary", | |
| 340 | + variant: "text", | |
| 341 | + onClick: toggleMarkAsDone | |
| 342 | + }, isMarkedCompleted ? (0, _i18n.__)('Unmark as done', 'elementor') : (0, _i18n.__)('Mark as done', 'elementor')) : null, /*#__PURE__*/_react.default.createElement(_ui.Button, { | |
| 343 | + color: promotionData ? 'promotion' : 'primary', | |
| 344 | + size: "small", | |
| 345 | + variant: "contained", | |
| 346 | + onClick: redirectHandler | |
| 347 | + }, ctaText))); | |
| 348 | +}; | |
| 349 | +var _default = exports["default"] = ChecklistCardContent; | |
| 350 | +ChecklistCardContent.propTypes = { | |
| 351 | + step: _propTypes.default.object.isRequired, | |
| 352 | + setSteps: _propTypes.default.func.isRequired | |
| 353 | +}; | |
| 354 | + | |
| 355 | +/***/ }), | |
| 356 | + | |
| 357 | +/***/ "../modules/checklist/assets/js/app/components/checklist-item.js": | |
| 358 | +/*!***********************************************************************!*\ | |
| 359 | + !*** ../modules/checklist/assets/js/app/components/checklist-item.js ***! | |
| 360 | + \***********************************************************************/ | |
| 361 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 362 | + | |
| 363 | +"use strict"; | |
| 364 | + | |
| 365 | + | |
| 366 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 367 | +Object.defineProperty(exports, "__esModule", ({ | |
| 368 | + value: true | |
| 369 | +})); | |
| 370 | +exports["default"] = void 0; | |
| 371 | +var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react")); | |
| 372 | +var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "../node_modules/@babel/runtime/helpers/defineProperty.js")); | |
| 373 | +var _propTypes = _interopRequireDefault(__webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js")); | |
| 374 | +var _checklistCardContent = _interopRequireDefault(__webpack_require__(/*! ./checklist-card-content */ "../modules/checklist/assets/js/app/components/checklist-card-content.js")); | |
| 375 | +var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui"); | |
| 376 | +var _icons = __webpack_require__(/*! @elementor/icons */ "@elementor/icons"); | |
| 377 | +var _functions = __webpack_require__(/*! ../../utils/functions */ "../modules/checklist/assets/js/utils/functions.js"); | |
| 378 | +var _consts = __webpack_require__(/*! ../../utils/consts */ "../modules/checklist/assets/js/utils/consts.js"); | |
| 379 | +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; } | |
| 380 | +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; } | |
| 381 | +var PROMOTION_DATA = _consts.STEP.PROMOTION_DATA; | |
| 382 | +var TITLE = _consts.MIXPANEL_CHECKLIST_STEPS.TITLE, | |
| 383 | + ACCORDION_SECTION = _consts.MIXPANEL_CHECKLIST_STEPS.ACCORDION_SECTION; | |
| 384 | +function CheckListItem(props) { | |
| 385 | + var expandedIndex = props.expandedIndex, | |
| 386 | + setExpandedIndex = props.setExpandedIndex, | |
| 387 | + setSteps = props.setSteps, | |
| 388 | + index = props.index, | |
| 389 | + step = props.step, | |
| 390 | + chevronStyle = index === expandedIndex ? { | |
| 391 | + transform: 'rotate(180deg)' | |
| 392 | + } : {}, | |
| 393 | + isChecked = (0, _functions.isStepChecked)(step), | |
| 394 | + promotionData = step.config[PROMOTION_DATA]; | |
| 395 | + var handleExpandClick = function handleExpandClick() { | |
| 396 | + (0, _functions.addMixpanelTrackingChecklistSteps)(step.config.id, TITLE, ACCORDION_SECTION); | |
| 397 | + setExpandedIndex(index === expandedIndex ? -1 : index); | |
| 398 | + }; | |
| 399 | + var getUpgradeIcon = function getUpgradeIcon() { | |
| 400 | + return 'default' === (promotionData === null || promotionData === void 0 ? void 0 : promotionData.icon) ? /*#__PURE__*/_react.default.createElement(_icons.UpgradeIcon, { | |
| 401 | + color: "promotion", | |
| 402 | + sx: { | |
| 403 | + mr: 1 | |
| 404 | + } | |
| 405 | + }) : /*#__PURE__*/_react.default.createElement(_ui.SvgIcon, { | |
| 406 | + color: "promotion", | |
| 407 | + sx: { | |
| 408 | + mr: 1 | |
| 409 | + } | |
| 410 | + }, /*#__PURE__*/_react.default.createElement("img", { | |
| 411 | + src: promotionData === null || promotionData === void 0 ? void 0 : promotionData.icon, | |
| 412 | + alt: promotionData.iconAlt || '' | |
| 413 | + })); | |
| 414 | + }; | |
| 415 | + return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_ui.ListItemButton, { | |
| 416 | + onClick: handleExpandClick, | |
| 417 | + "data-step-id": step.config.id, | |
| 418 | + dense: true | |
| 419 | + }, /*#__PURE__*/_react.default.createElement(_ui.ListItemIcon, null, /*#__PURE__*/_react.default.createElement(_ui.Checkbox, { | |
| 420 | + "data-is-checked": isChecked, | |
| 421 | + icon: /*#__PURE__*/_react.default.createElement(_icons.RadioButtonUncheckedIcon, null), | |
| 422 | + checkedIcon: /*#__PURE__*/_react.default.createElement(_icons.CircleCheckFilledIcon, { | |
| 423 | + color: "primary" | |
| 424 | + }), | |
| 425 | + edge: "start", | |
| 426 | + checked: isChecked, | |
| 427 | + tabIndex: -1, | |
| 428 | + inputProps: { | |
| 429 | + 'aria-labelledby': step.config.title | |
| 430 | + } | |
| 431 | + })), /*#__PURE__*/_react.default.createElement(_ui.ListItemText, { | |
| 432 | + primary: step.config.title, | |
| 433 | + primaryTypographyProps: { | |
| 434 | + variant: 'body2' | |
| 435 | + } | |
| 436 | + }), promotionData ? getUpgradeIcon() : null, /*#__PURE__*/_react.default.createElement(_icons.ChevronDownIcon, { | |
| 437 | + sx: _objectSpread(_objectSpread({}, chevronStyle), {}, { | |
| 438 | + transition: '300ms' | |
| 439 | + }) | |
| 440 | + })), /*#__PURE__*/_react.default.createElement(_ui.Collapse, { | |
| 441 | + in: index === expandedIndex | |
| 442 | + }, /*#__PURE__*/_react.default.createElement(_checklistCardContent.default, { | |
| 443 | + step: step, | |
| 444 | + setSteps: setSteps | |
| 445 | + }))); | |
| 446 | +} | |
| 447 | +var _default = exports["default"] = CheckListItem; | |
| 448 | +CheckListItem.propTypes = { | |
| 449 | + step: _propTypes.default.object.isRequired, | |
| 450 | + expandedIndex: _propTypes.default.number, | |
| 451 | + setExpandedIndex: _propTypes.default.func.isRequired, | |
| 452 | + setSteps: _propTypes.default.func.isRequired, | |
| 453 | + index: _propTypes.default.number.isRequired | |
| 454 | +}; | |
| 455 | + | |
| 456 | +/***/ }), | |
| 457 | + | |
| 458 | +/***/ "../modules/checklist/assets/js/app/components/checklist-wrapper.js": | |
| 459 | +/*!**************************************************************************!*\ | |
| 460 | + !*** ../modules/checklist/assets/js/app/components/checklist-wrapper.js ***! | |
| 461 | + \**************************************************************************/ | |
| 462 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 463 | + | |
| 464 | +"use strict"; | |
| 465 | + | |
| 466 | + | |
| 467 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 468 | +var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ "../node_modules/@babel/runtime/helpers/typeof.js"); | |
| 469 | +Object.defineProperty(exports, "__esModule", ({ | |
| 470 | + value: true | |
| 471 | +})); | |
| 472 | +exports["default"] = void 0; | |
| 473 | +var _react = _interopRequireWildcard(__webpack_require__(/*! react */ "react")); | |
| 474 | +var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ "../node_modules/@babel/runtime/helpers/slicedToArray.js")); | |
| 475 | +var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui"); | |
| 476 | +var _checklistItem = _interopRequireDefault(__webpack_require__(/*! ./checklist-item */ "../modules/checklist/assets/js/app/components/checklist-item.js")); | |
| 477 | +var _propTypes = _interopRequireDefault(__webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js")); | |
| 478 | +var _successMessage = _interopRequireDefault(__webpack_require__(/*! ./success-message */ "../modules/checklist/assets/js/app/components/success-message.js")); | |
| 479 | +var _functions = __webpack_require__(/*! ../../utils/functions */ "../modules/checklist/assets/js/utils/functions.js"); | |
| 480 | +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); } | |
| 481 | +var ChecklistWrapper = function ChecklistWrapper(_ref) { | |
| 482 | + var steps = _ref.steps, | |
| 483 | + setSteps = _ref.setSteps, | |
| 484 | + isMinimized = _ref.isMinimized; | |
| 485 | + var _useState = (0, _react.useState)(-1), | |
| 486 | + _useState2 = (0, _slicedToArray2.default)(_useState, 2), | |
| 487 | + expandedIndex = _useState2[0], | |
| 488 | + setExpandedIndex = _useState2[1]; | |
| 489 | + var isChecklistCompleted = steps.filter(_functions.isStepChecked).length === steps.length; | |
| 490 | + return /*#__PURE__*/_react.default.createElement(_ui.Box, { | |
| 491 | + sx: { | |
| 492 | + transition: '400ms', | |
| 493 | + maxHeight: isMinimized ? 0 : '645px' | |
| 494 | + } | |
| 495 | + }, /*#__PURE__*/_react.default.createElement(_ui.List, { | |
| 496 | + component: "div", | |
| 497 | + sx: { | |
| 498 | + py: 0 | |
| 499 | + } | |
| 500 | + }, steps.map(function (step, index) { | |
| 501 | + return /*#__PURE__*/_react.default.createElement(_react.Fragment, { | |
| 502 | + key: index | |
| 503 | + }, index ? /*#__PURE__*/_react.default.createElement(_ui.Divider, null) : null, /*#__PURE__*/_react.default.createElement(_checklistItem.default, { | |
| 504 | + step: step, | |
| 505 | + setSteps: setSteps, | |
| 506 | + setExpandedIndex: setExpandedIndex, | |
| 507 | + expandedIndex: expandedIndex, | |
| 508 | + index: index | |
| 509 | + })); | |
| 510 | + })), isChecklistCompleted ? /*#__PURE__*/_react.default.createElement(_successMessage.default, null) : null); | |
| 511 | +}; | |
| 512 | +var _default = exports["default"] = ChecklistWrapper; | |
| 513 | +ChecklistWrapper.propTypes = { | |
| 514 | + steps: _propTypes.default.array.isRequired, | |
| 515 | + setSteps: _propTypes.default.func.isRequired, | |
| 516 | + isMinimized: _propTypes.default.bool.isRequired | |
| 517 | +}; | |
| 518 | + | |
| 519 | +/***/ }), | |
| 520 | + | |
| 521 | +/***/ "../modules/checklist/assets/js/app/components/checklist.js": | |
| 522 | +/*!******************************************************************!*\ | |
| 523 | + !*** ../modules/checklist/assets/js/app/components/checklist.js ***! | |
| 524 | + \******************************************************************/ | |
| 525 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 526 | + | |
| 527 | +"use strict"; | |
| 528 | +/* provided dependency */ var PropTypes = __webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js"); | |
| 529 | + | |
| 530 | + | |
| 531 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 532 | +var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ "../node_modules/@babel/runtime/helpers/typeof.js"); | |
| 533 | +Object.defineProperty(exports, "__esModule", ({ | |
| 534 | + value: true | |
| 535 | +})); | |
| 536 | +exports["default"] = void 0; | |
| 537 | +var _react = _interopRequireWildcard(__webpack_require__(/*! react */ "react")); | |
| 538 | +var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/regenerator */ "../node_modules/@babel/runtime/regenerator/index.js")); | |
| 539 | +var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "../node_modules/@babel/runtime/helpers/defineProperty.js")); | |
| 540 | +var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ "../node_modules/@babel/runtime/helpers/asyncToGenerator.js")); | |
| 541 | +var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ "../node_modules/@babel/runtime/helpers/slicedToArray.js")); | |
| 542 | +var _header = _interopRequireDefault(__webpack_require__(/*! ./header */ "../modules/checklist/assets/js/app/components/header.js")); | |
| 543 | +var _checklistWrapper = _interopRequireDefault(__webpack_require__(/*! ./checklist-wrapper */ "../modules/checklist/assets/js/app/components/checklist-wrapper.js")); | |
| 544 | +var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui"); | |
| 545 | +var _consts = __webpack_require__(/*! ../../utils/consts */ "../modules/checklist/assets/js/utils/consts.js"); | |
| 546 | +var _functions = __webpack_require__(/*! ../../utils/functions */ "../modules/checklist/assets/js/utils/functions.js"); | |
| 547 | +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 _t2 in e) "default" !== _t2 && {}.hasOwnProperty.call(e, _t2) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t2)) && (i.get || i.set) ? o(f, _t2, i) : f[_t2] = e[_t2]); return f; })(e, t); } | |
| 548 | +var IS_POPUP_MINIMIZED = _consts.USER_PROGRESS.IS_POPUP_MINIMIZED; | |
| 549 | +var Checklist = function Checklist(props) { | |
| 550 | + var _useState = (0, _react.useState)(props.steps), | |
| 551 | + _useState2 = (0, _slicedToArray2.default)(_useState, 2), | |
| 552 | + steps = _useState2[0], | |
| 553 | + setSteps = _useState2[1], | |
| 554 | + _useState3 = (0, _react.useState)(!!props.userProgress[IS_POPUP_MINIMIZED]), | |
| 555 | + _useState4 = (0, _slicedToArray2.default)(_useState3, 2), | |
| 556 | + isMinimized = _useState4[0], | |
| 557 | + setIsMinimized = _useState4[1]; | |
| 558 | + var toggleIsMinimized = /*#__PURE__*/function () { | |
| 559 | + var _ref = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() { | |
| 560 | + var currState, _t; | |
| 561 | + return _regenerator.default.wrap(function (_context) { | |
| 562 | + while (1) switch (_context.prev = _context.next) { | |
| 563 | + case 0: | |
| 564 | + currState = isMinimized; | |
| 565 | + _context.prev = 1; | |
| 566 | + setIsMinimized(!currState); | |
| 567 | + _context.next = 2; | |
| 568 | + return (0, _functions.updateUserProgress)((0, _defineProperty2.default)({}, IS_POPUP_MINIMIZED, !currState)); | |
| 569 | + case 2: | |
| 570 | + _context.next = 4; | |
| 571 | + break; | |
| 572 | + case 3: | |
| 573 | + _context.prev = 3; | |
| 574 | + _t = _context["catch"](1); | |
| 575 | + setIsMinimized(currState); | |
| 576 | + case 4: | |
| 577 | + case "end": | |
| 578 | + return _context.stop(); | |
| 579 | + } | |
| 580 | + }, _callee, null, [[1, 3]]); | |
| 581 | + })); | |
| 582 | + return function toggleIsMinimized() { | |
| 583 | + return _ref.apply(this, arguments); | |
| 584 | + }; | |
| 585 | + }(); | |
| 586 | + (0, _react.useEffect)(function () { | |
| 587 | + setSteps(props.steps); | |
| 588 | + }, [props.steps]); | |
| 589 | + return /*#__PURE__*/_react.default.createElement(_ui.Paper, { | |
| 590 | + elevation: 5, | |
| 591 | + sx: { | |
| 592 | + position: 'fixed', | |
| 593 | + width: '360px', | |
| 594 | + bottom: '40px', | |
| 595 | + insetInlineEnd: '40px', | |
| 596 | + zIndex: '99999', | |
| 597 | + hidden: true, | |
| 598 | + maxHeight: '645px', | |
| 599 | + overflowY: 'auto' | |
| 600 | + } | |
| 601 | + }, /*#__PURE__*/_react.default.createElement(_header.default, { | |
| 602 | + steps: steps, | |
| 603 | + isMinimized: isMinimized, | |
| 604 | + toggleIsMinimized: toggleIsMinimized | |
| 605 | + }), /*#__PURE__*/_react.default.createElement(_checklistWrapper.default, { | |
| 606 | + steps: steps, | |
| 607 | + setSteps: setSteps, | |
| 608 | + isMinimized: isMinimized | |
| 609 | + })); | |
| 610 | +}; | |
| 611 | +Checklist.propTypes = { | |
| 612 | + steps: PropTypes.array.isRequired, | |
| 613 | + userProgress: PropTypes.object.isRequired | |
| 614 | +}; | |
| 615 | +var _default = exports["default"] = Checklist; | |
| 616 | + | |
| 617 | +/***/ }), | |
| 618 | + | |
| 619 | +/***/ "../modules/checklist/assets/js/app/components/header.js": | |
| 620 | +/*!***************************************************************!*\ | |
| 621 | + !*** ../modules/checklist/assets/js/app/components/header.js ***! | |
| 622 | + \***************************************************************/ | |
| 623 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 624 | + | |
| 625 | +"use strict"; | |
| 626 | + | |
| 627 | + | |
| 628 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 629 | +var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ "../node_modules/@babel/runtime/helpers/typeof.js"); | |
| 630 | +Object.defineProperty(exports, "__esModule", ({ | |
| 631 | + value: true | |
| 632 | +})); | |
| 633 | +exports["default"] = void 0; | |
| 634 | +var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/regenerator */ "../node_modules/@babel/runtime/regenerator/index.js")); | |
| 635 | +var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "../node_modules/@babel/runtime/helpers/defineProperty.js")); | |
| 636 | +var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ "../node_modules/@babel/runtime/helpers/asyncToGenerator.js")); | |
| 637 | +var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui"); | |
| 638 | +var _i18n = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n"); | |
| 639 | +var _progress = _interopRequireDefault(__webpack_require__(/*! ./progress */ "../modules/checklist/assets/js/app/components/progress.js")); | |
| 640 | +var _propTypes = _interopRequireDefault(__webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js")); | |
| 641 | +var _query = __webpack_require__(/*! @elementor/query */ "@elementor/query"); | |
| 642 | +var React = _interopRequireWildcard(__webpack_require__(/*! react */ "react")); | |
| 643 | +var _functions = __webpack_require__(/*! ../../utils/functions */ "../modules/checklist/assets/js/utils/functions.js"); | |
| 644 | +var _consts = __webpack_require__(/*! ../../utils/consts */ "../modules/checklist/assets/js/utils/consts.js"); | |
| 645 | +var _icons = __webpack_require__(/*! @elementor/icons */ "@elementor/icons"); | |
| 646 | +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); } | |
| 647 | +var CHECKLIST_CLOSED_IN_THE_EDITOR_FOR_FIRST_TIME = _consts.USER_PROGRESS.CHECKLIST_CLOSED_IN_THE_EDITOR_FOR_FIRST_TIME; | |
| 648 | +var CHECKLIST_HEADER_CLOSE = _consts.MIXPANEL_CHECKLIST_STEPS.CHECKLIST_HEADER_CLOSE; | |
| 649 | +var Header = function Header(_ref) { | |
| 650 | + var steps = _ref.steps, | |
| 651 | + isMinimized = _ref.isMinimized, | |
| 652 | + toggleIsMinimized = _ref.toggleIsMinimized; | |
| 653 | + var _useQuery = (0, _query.useQuery)({ | |
| 654 | + queryKey: ['closedForFirstTime'], | |
| 655 | + queryFn: _functions.fetchUserProgress | |
| 656 | + }), | |
| 657 | + userProgress = _useQuery.data, | |
| 658 | + closedForFirstTime = (userProgress === null || userProgress === void 0 ? void 0 : userProgress[CHECKLIST_CLOSED_IN_THE_EDITOR_FOR_FIRST_TIME]) || false; | |
| 659 | + var closeChecklist = /*#__PURE__*/function () { | |
| 660 | + var _ref2 = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() { | |
| 661 | + return _regenerator.default.wrap(function (_context) { | |
| 662 | + while (1) switch (_context.prev = _context.next) { | |
| 663 | + case 0: | |
| 664 | + (0, _functions.addMixpanelTrackingChecklistHeader)(CHECKLIST_HEADER_CLOSE); | |
| 665 | + if (closedForFirstTime) { | |
| 666 | + _context.next = 2; | |
| 667 | + break; | |
| 668 | + } | |
| 669 | + _context.next = 1; | |
| 670 | + return (0, _functions.updateUserProgress)((0, _defineProperty2.default)({}, CHECKLIST_CLOSED_IN_THE_EDITOR_FOR_FIRST_TIME, true)); | |
| 671 | + case 1: | |
| 672 | + window.dispatchEvent(new CustomEvent('elementor/checklist/first_close', { | |
| 673 | + detail: { | |
| 674 | + message: 'firstClose' | |
| 675 | + } | |
| 676 | + })); | |
| 677 | + case 2: | |
| 678 | + (0, _functions.toggleChecklistPopup)(); | |
| 679 | + case 3: | |
| 680 | + case "end": | |
| 681 | + return _context.stop(); | |
| 682 | + } | |
| 683 | + }, _callee); | |
| 684 | + })); | |
| 685 | + return function closeChecklist() { | |
| 686 | + return _ref2.apply(this, arguments); | |
| 687 | + }; | |
| 688 | + }(); | |
| 689 | + return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(_ui.AppBar, { | |
| 690 | + elevation: 0, | |
| 691 | + position: "sticky", | |
| 692 | + sx: { | |
| 693 | + p: 2, | |
| 694 | + backgroundColor: 'background.default' | |
| 695 | + } | |
| 696 | + }, /*#__PURE__*/React.createElement(_ui.Toolbar, { | |
| 697 | + variant: "dense", | |
| 698 | + disableGutters: true | |
| 699 | + }, /*#__PURE__*/React.createElement(_ui.Typography, { | |
| 700 | + variant: "subtitle1", | |
| 701 | + sx: { | |
| 702 | + flexGrow: 1 | |
| 703 | + } | |
| 704 | + }, (0, _i18n.__)('Let\'s make a productivity boost', 'elementor')), /*#__PURE__*/React.createElement(_ui.IconButton, { | |
| 705 | + size: "small", | |
| 706 | + onClick: toggleIsMinimized, | |
| 707 | + "aria-expanded": !isMinimized | |
| 708 | + }, isMinimized ? /*#__PURE__*/React.createElement(_icons.ExpandDiagonalIcon, null) : /*#__PURE__*/React.createElement(_icons.MinimizeDiagonalIcon, null)), /*#__PURE__*/React.createElement(_ui.CloseButton, { | |
| 709 | + sx: { | |
| 710 | + mr: -0.5 | |
| 711 | + }, | |
| 712 | + size: "small", | |
| 713 | + onClick: closeChecklist | |
| 714 | + })), /*#__PURE__*/React.createElement(_progress.default, { | |
| 715 | + steps: steps | |
| 716 | + })), /*#__PURE__*/React.createElement(_ui.Divider, null)); | |
| 717 | +}; | |
| 718 | +Header.propTypes = { | |
| 719 | + steps: _propTypes.default.array.isRequired, | |
| 720 | + isMinimized: _propTypes.default.bool.isRequired, | |
| 721 | + toggleIsMinimized: _propTypes.default.func.isRequired | |
| 722 | +}; | |
| 723 | +var _default = exports["default"] = Header; | |
| 724 | + | |
| 725 | +/***/ }), | |
| 726 | + | |
| 727 | +/***/ "../modules/checklist/assets/js/app/components/progress.js": | |
| 728 | +/*!*****************************************************************!*\ | |
| 729 | + !*** ../modules/checklist/assets/js/app/components/progress.js ***! | |
| 730 | + \*****************************************************************/ | |
| 731 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 732 | + | |
| 733 | +"use strict"; | |
| 734 | + | |
| 735 | + | |
| 736 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 737 | +Object.defineProperty(exports, "__esModule", ({ | |
| 738 | + value: true | |
| 739 | +})); | |
| 740 | +exports["default"] = void 0; | |
| 741 | +var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react")); | |
| 742 | +var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui"); | |
| 743 | +var _propTypes = _interopRequireDefault(__webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js")); | |
| 744 | +var _functions = __webpack_require__(/*! ../../utils/functions */ "../modules/checklist/assets/js/utils/functions.js"); | |
| 745 | +var Progress = function Progress(_ref) { | |
| 746 | + var steps = _ref.steps; | |
| 747 | + var progress = steps.filter(_functions.isStepChecked).length * 100 / steps.length; | |
| 748 | + return /*#__PURE__*/_react.default.createElement(_ui.Box, { | |
| 749 | + sx: { | |
| 750 | + display: 'flex', | |
| 751 | + alignItems: 'center', | |
| 752 | + gap: 1 | |
| 753 | + } | |
| 754 | + }, /*#__PURE__*/_react.default.createElement(_ui.Box, { | |
| 755 | + sx: { | |
| 756 | + width: '100%' | |
| 757 | + } | |
| 758 | + }, /*#__PURE__*/_react.default.createElement(_ui.LinearProgress, { | |
| 759 | + variant: "determinate", | |
| 760 | + value: progress | |
| 761 | + })), /*#__PURE__*/_react.default.createElement(_ui.Box, { | |
| 762 | + sx: { | |
| 763 | + width: 'fit-content' | |
| 764 | + } | |
| 765 | + }, /*#__PURE__*/_react.default.createElement(_ui.Typography, { | |
| 766 | + variant: "body2", | |
| 767 | + color: "text.secondary" | |
| 768 | + }, "".concat(Math.round(progress), "%")))); | |
| 769 | +}; | |
| 770 | +var _default = exports["default"] = Progress; | |
| 771 | +Progress.propTypes = { | |
| 772 | + steps: _propTypes.default.array.isRequired | |
| 773 | +}; | |
| 774 | + | |
| 775 | +/***/ }), | |
| 776 | + | |
| 777 | +/***/ "../modules/checklist/assets/js/app/components/reminder-modal.js": | |
| 778 | +/*!***********************************************************************!*\ | |
| 779 | + !*** ../modules/checklist/assets/js/app/components/reminder-modal.js ***! | |
| 780 | + \***********************************************************************/ | |
| 781 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 782 | + | |
| 783 | +"use strict"; | |
| 784 | + | |
| 785 | + | |
| 786 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 787 | +Object.defineProperty(exports, "__esModule", ({ | |
| 788 | + value: true | |
| 789 | +})); | |
| 790 | +exports["default"] = void 0; | |
| 791 | +var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react")); | |
| 792 | +var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui"); | |
| 793 | +var _i18n = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n"); | |
| 794 | +var _propTypes = _interopRequireDefault(__webpack_require__(/*! prop-types */ "../node_modules/prop-types/index.js")); | |
| 795 | +var ReminderModal = function ReminderModal(_ref) { | |
| 796 | + var setOpen = _ref.setOpen; | |
| 797 | + var closeChecklist = function closeChecklist(e) { | |
| 798 | + e.stopPropagation(); | |
| 799 | + setOpen(false); | |
| 800 | + }; | |
| 801 | + return /*#__PURE__*/_react.default.createElement(_ui.Card, { | |
| 802 | + elevation: 0, | |
| 803 | + sx: { | |
| 804 | + maxWidth: 336 | |
| 805 | + }, | |
| 806 | + className: "e-checklist-infotip-first-time-closed" | |
| 807 | + }, /*#__PURE__*/_react.default.createElement(_ui.CardContent, null, /*#__PURE__*/_react.default.createElement(_ui.Typography, { | |
| 808 | + variant: "subtitle2", | |
| 809 | + sx: { | |
| 810 | + mb: 2 | |
| 811 | + } | |
| 812 | + }, (0, _i18n.__)('Looking for your Launchpad Checklist?', 'elementor')), /*#__PURE__*/_react.default.createElement(_ui.Typography, { | |
| 813 | + variant: "body2" | |
| 814 | + }, (0, _i18n.__)('Click the launch icon to continue setting up your site.', 'elementor'))), /*#__PURE__*/_react.default.createElement(_ui.CardActions, null, /*#__PURE__*/_react.default.createElement(_ui.Button, { | |
| 815 | + size: "small", | |
| 816 | + variant: "contained", | |
| 817 | + className: "infotip-first-time-closed-button", | |
| 818 | + onClick: closeChecklist | |
| 819 | + }, (0, _i18n.__)('Got it', 'elementor')))); | |
| 820 | +}; | |
| 821 | +var _default = exports["default"] = ReminderModal; | |
| 822 | +ReminderModal.propTypes = { | |
| 823 | + setOpen: _propTypes.default.func.isRequired | |
| 824 | +}; | |
| 825 | + | |
| 826 | +/***/ }), | |
| 827 | + | |
| 828 | +/***/ "../modules/checklist/assets/js/app/components/success-message.js": | |
| 829 | +/*!************************************************************************!*\ | |
| 830 | + !*** ../modules/checklist/assets/js/app/components/success-message.js ***! | |
| 831 | + \************************************************************************/ | |
| 832 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 833 | + | |
| 834 | +"use strict"; | |
| 835 | + | |
| 836 | + | |
| 837 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 838 | +var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ "../node_modules/@babel/runtime/helpers/typeof.js"); | |
| 839 | +Object.defineProperty(exports, "__esModule", ({ | |
| 840 | + value: true | |
| 841 | +})); | |
| 842 | +exports["default"] = void 0; | |
| 843 | +var _react = _interopRequireWildcard(__webpack_require__(/*! react */ "react")); | |
| 844 | +var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui"); | |
| 845 | +var _i18n = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n"); | |
| 846 | +var _useAjax2 = _interopRequireDefault(__webpack_require__(/*! elementor-app/hooks/use-ajax */ "../app/assets/js/hooks/use-ajax.js")); | |
| 847 | +var _functions = __webpack_require__(/*! ../../utils/functions */ "../modules/checklist/assets/js/utils/functions.js"); | |
| 848 | +var _consts = __webpack_require__(/*! ../../utils/consts */ "../modules/checklist/assets/js/utils/consts.js"); | |
| 849 | +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); } | |
| 850 | +var ACTION = _consts.MIXPANEL_CHECKLIST_STEPS.ACTION, | |
| 851 | + WELL_DONE = _consts.MIXPANEL_CHECKLIST_STEPS.WELL_DONE; | |
| 852 | +var SuccessMessage = function SuccessMessage() { | |
| 853 | + var _useAjax = (0, _useAjax2.default)(), | |
| 854 | + ajaxState = _useAjax.ajaxState, | |
| 855 | + setAjax = _useAjax.setAjax; | |
| 856 | + var hideChecklist = function hideChecklist() { | |
| 857 | + (0, _functions.addMixpanelTrackingChecklistSteps)(WELL_DONE, ACTION); | |
| 858 | + setAjax({ | |
| 859 | + data: { | |
| 860 | + action: 'elementor_ajax', | |
| 861 | + actions: JSON.stringify({ | |
| 862 | + save_editorPreferences_settings: { | |
| 863 | + action: 'save_editorPreferences_settings', | |
| 864 | + data: { | |
| 865 | + data: { | |
| 866 | + show_launchpad_checklist: '' | |
| 867 | + } | |
| 868 | + } | |
| 869 | + } | |
| 870 | + }) | |
| 871 | + } | |
| 872 | + }); | |
| 873 | + }; | |
| 874 | + (0, _react.useEffect)(function () { | |
| 875 | + switch (ajaxState.status) { | |
| 876 | + case 'success': | |
| 877 | + setTimeout(function () { | |
| 878 | + $e.commands.run('checklist/toggle-icon', false); | |
| 879 | + }, 0); | |
| 880 | + break; | |
| 881 | + case 'error': | |
| 882 | + break; | |
| 883 | + } | |
| 884 | + }, [ajaxState]); | |
| 885 | + return /*#__PURE__*/_react.default.createElement(_ui.Card, { | |
| 886 | + elevation: 0, | |
| 887 | + square: true, | |
| 888 | + className: "e-checklist-done" | |
| 889 | + }, /*#__PURE__*/_react.default.createElement(_ui.CardMedia, { | |
| 890 | + image: "https://assets.elementor.com/checklist/v1/images/checklist-step-7.jpg", | |
| 891 | + sx: { | |
| 892 | + height: 180 | |
| 893 | + } | |
| 894 | + }), /*#__PURE__*/_react.default.createElement(_ui.CardContent, { | |
| 895 | + sx: { | |
| 896 | + textAlign: 'center' | |
| 897 | + } | |
| 898 | + }, /*#__PURE__*/_react.default.createElement(_ui.Typography, { | |
| 899 | + variant: "h6", | |
| 900 | + color: "text.primary" | |
| 901 | + }, (0, _i18n.__)('You\'re on your way!', 'elementor')), /*#__PURE__*/_react.default.createElement(_ui.Typography, { | |
| 902 | + variant: "body2", | |
| 903 | + color: "text.secondary", | |
| 904 | + component: "p" | |
| 905 | + }, (0, _i18n.__)('With these steps, you\'ve got a great base for a robust website. Enjoy your web creation journey!', 'elementor'))), /*#__PURE__*/_react.default.createElement(_ui.CardActions, { | |
| 906 | + sx: { | |
| 907 | + justifyContent: 'center' | |
| 908 | + } | |
| 909 | + }, /*#__PURE__*/_react.default.createElement(_ui.Button, { | |
| 910 | + color: "primary", | |
| 911 | + size: "small", | |
| 912 | + variant: "contained", | |
| 913 | + onClick: hideChecklist | |
| 914 | + }, (0, _i18n.__)('Got it', 'elementor')))); | |
| 915 | +}; | |
| 916 | +var _default = exports["default"] = SuccessMessage; | |
| 917 | + | |
| 918 | +/***/ }), | |
| 919 | + | |
| 920 | +/***/ "../modules/checklist/assets/js/commands-data/index.js": | |
| 921 | +/*!*************************************************************!*\ | |
| 922 | + !*** ../modules/checklist/assets/js/commands-data/index.js ***! | |
| 923 | + \*************************************************************/ | |
| 924 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 925 | + | |
| 926 | +"use strict"; | |
| 927 | + | |
| 928 | + | |
| 929 | +Object.defineProperty(exports, "__esModule", ({ | |
| 930 | + value: true | |
| 931 | +})); | |
| 932 | +Object.defineProperty(exports, "Steps", ({ | |
| 933 | + enumerable: true, | |
| 934 | + get: function get() { | |
| 935 | + return _steps.Steps; | |
| 936 | + } | |
| 937 | +})); | |
| 938 | +Object.defineProperty(exports, "UserProgress", ({ | |
| 939 | + enumerable: true, | |
| 940 | + get: function get() { | |
| 941 | + return _userProgress.UserProgress; | |
| 942 | + } | |
| 943 | +})); | |
| 944 | +var _steps = __webpack_require__(/*! ./steps */ "../modules/checklist/assets/js/commands-data/steps.js"); | |
| 945 | +var _userProgress = __webpack_require__(/*! ./user-progress */ "../modules/checklist/assets/js/commands-data/user-progress.js"); | |
| 946 | + | |
| 947 | +/***/ }), | |
| 948 | + | |
| 949 | +/***/ "../modules/checklist/assets/js/commands-data/steps.js": | |
| 950 | +/*!*************************************************************!*\ | |
| 951 | + !*** ../modules/checklist/assets/js/commands-data/steps.js ***! | |
| 952 | + \*************************************************************/ | |
| 953 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 954 | + | |
| 955 | +"use strict"; | |
| 956 | + | |
| 957 | + | |
| 958 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 959 | +Object.defineProperty(exports, "__esModule", ({ | |
| 960 | + value: true | |
| 961 | +})); | |
| 962 | +exports["default"] = exports.Steps = void 0; | |
| 963 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); | |
| 964 | +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); | |
| 965 | +var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); | |
| 966 | +var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); | |
| 967 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 968 | +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)); } | |
| 969 | +function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } | |
| 970 | +var Steps = exports.Steps = /*#__PURE__*/function (_$e$modules$CommandDa) { | |
| 971 | + function Steps() { | |
| 972 | + (0, _classCallCheck2.default)(this, Steps); | |
| 973 | + return _callSuper(this, Steps, arguments); | |
| 974 | + } | |
| 975 | + (0, _inherits2.default)(Steps, _$e$modules$CommandDa); | |
| 976 | + return (0, _createClass2.default)(Steps, null, [{ | |
| 977 | + key: "getEndpointFormat", | |
| 978 | + value: function getEndpointFormat() { | |
| 979 | + return 'checklist/steps/{id}'; | |
| 980 | + } | |
| 981 | + }]); | |
| 982 | +}($e.modules.CommandData); | |
| 983 | +var _default = exports["default"] = Steps; | |
| 984 | + | |
| 985 | +/***/ }), | |
| 986 | + | |
| 987 | +/***/ "../modules/checklist/assets/js/commands-data/user-progress.js": | |
| 988 | +/*!*********************************************************************!*\ | |
| 989 | + !*** ../modules/checklist/assets/js/commands-data/user-progress.js ***! | |
| 990 | + \*********************************************************************/ | |
| 991 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 992 | + | |
| 993 | +"use strict"; | |
| 994 | + | |
| 995 | + | |
| 996 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 997 | +Object.defineProperty(exports, "__esModule", ({ | |
| 998 | + value: true | |
| 999 | +})); | |
| 1000 | +exports["default"] = exports.UserProgress = void 0; | |
| 1001 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); | |
| 1002 | +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); | |
| 1003 | +var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); | |
| 1004 | +var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); | |
| 1005 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 1006 | +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)); } | |
| 1007 | +function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } | |
| 1008 | +var UserProgress = exports.UserProgress = /*#__PURE__*/function (_$e$modules$CommandDa) { | |
| 1009 | + function UserProgress() { | |
| 1010 | + (0, _classCallCheck2.default)(this, UserProgress); | |
| 1011 | + return _callSuper(this, UserProgress, arguments); | |
| 1012 | + } | |
| 1013 | + (0, _inherits2.default)(UserProgress, _$e$modules$CommandDa); | |
| 1014 | + return (0, _createClass2.default)(UserProgress, null, [{ | |
| 1015 | + key: "getEndpointFormat", | |
| 1016 | + value: function getEndpointFormat() { | |
| 1017 | + return 'checklist/user-progress'; | |
| 1018 | + } | |
| 1019 | + }]); | |
| 1020 | +}($e.modules.CommandData); | |
| 1021 | +var _default = exports["default"] = UserProgress; | |
| 1022 | + | |
| 1023 | +/***/ }), | |
| 1024 | + | |
| 1025 | +/***/ "../modules/checklist/assets/js/commands/index.js": | |
| 1026 | +/*!********************************************************!*\ | |
| 1027 | + !*** ../modules/checklist/assets/js/commands/index.js ***! | |
| 1028 | + \********************************************************/ | |
| 1029 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 1030 | + | |
| 1031 | +"use strict"; | |
| 1032 | + | |
| 1033 | + | |
| 1034 | +Object.defineProperty(exports, "__esModule", ({ | |
| 1035 | + value: true | |
| 1036 | +})); | |
| 1037 | +Object.defineProperty(exports, "ToggleIcon", ({ | |
| 1038 | + enumerable: true, | |
| 1039 | + get: function get() { | |
| 1040 | + return _toggleIcon.ToggleIcon; | |
| 1041 | + } | |
| 1042 | +})); | |
| 1043 | +Object.defineProperty(exports, "TogglePopup", ({ | |
| 1044 | + enumerable: true, | |
| 1045 | + get: function get() { | |
| 1046 | + return _togglePopup.TogglePopup; | |
| 1047 | + } | |
| 1048 | +})); | |
| 1049 | +var _togglePopup = __webpack_require__(/*! ./toggle-popup */ "../modules/checklist/assets/js/commands/toggle-popup.js"); | |
| 1050 | +var _toggleIcon = __webpack_require__(/*! ./toggle-icon */ "../modules/checklist/assets/js/commands/toggle-icon.js"); | |
| 1051 | + | |
| 1052 | +/***/ }), | |
| 1053 | + | |
| 1054 | +/***/ "../modules/checklist/assets/js/commands/toggle-icon.js": | |
| 1055 | +/*!**************************************************************!*\ | |
| 1056 | + !*** ../modules/checklist/assets/js/commands/toggle-icon.js ***! | |
| 1057 | + \**************************************************************/ | |
| 1058 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 1059 | + | |
| 1060 | +"use strict"; | |
| 1061 | + | |
| 1062 | + | |
| 1063 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 1064 | +Object.defineProperty(exports, "__esModule", ({ | |
| 1065 | + value: true | |
| 1066 | +})); | |
| 1067 | +exports["default"] = exports.ToggleIcon = void 0; | |
| 1068 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); | |
| 1069 | +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); | |
| 1070 | +var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); | |
| 1071 | +var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); | |
| 1072 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 1073 | +var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "../node_modules/@babel/runtime/helpers/defineProperty.js")); | |
| 1074 | +var _togglePopup = _interopRequireDefault(__webpack_require__(/*! ./toggle-popup */ "../modules/checklist/assets/js/commands/toggle-popup.js")); | |
| 1075 | +var _functions = __webpack_require__(/*! ../utils/functions */ "../modules/checklist/assets/js/utils/functions.js"); | |
| 1076 | +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)); } | |
| 1077 | +function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } | |
| 1078 | +var ToggleIcon = exports.ToggleIcon = /*#__PURE__*/function (_$e$modules$CommandBa) { | |
| 1079 | + function ToggleIcon() { | |
| 1080 | + (0, _classCallCheck2.default)(this, ToggleIcon); | |
| 1081 | + return _callSuper(this, ToggleIcon, arguments); | |
| 1082 | + } | |
| 1083 | + (0, _inherits2.default)(ToggleIcon, _$e$modules$CommandBa); | |
| 1084 | + return (0, _createClass2.default)(ToggleIcon, [{ | |
| 1085 | + key: "apply", | |
| 1086 | + value: function apply(shouldShow) { | |
| 1087 | + document.body.querySelector('[aria-label="Checklist"]').parentElement.style.display = shouldShow ? 'block' : 'none'; | |
| 1088 | + if (!shouldShow && _togglePopup.default.isOpen) { | |
| 1089 | + (0, _functions.toggleChecklistPopup)(); | |
| 1090 | + } | |
| 1091 | + } | |
| 1092 | + }]); | |
| 1093 | +}($e.modules.CommandBase); | |
| 1094 | +(0, _defineProperty2.default)(ToggleIcon, "isSettingsOn", true); | |
| 1095 | +var _default = exports["default"] = ToggleIcon; | |
| 1096 | + | |
| 1097 | +/***/ }), | |
| 1098 | + | |
| 1099 | +/***/ "../modules/checklist/assets/js/commands/toggle-popup.js": | |
| 1100 | +/*!***************************************************************!*\ | |
| 1101 | + !*** ../modules/checklist/assets/js/commands/toggle-popup.js ***! | |
| 1102 | + \***************************************************************/ | |
| 1103 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 1104 | + | |
| 1105 | +"use strict"; | |
| 1106 | + | |
| 1107 | + | |
| 1108 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 1109 | +Object.defineProperty(exports, "__esModule", ({ | |
| 1110 | + value: true | |
| 1111 | +})); | |
| 1112 | +exports["default"] = exports.TogglePopup = void 0; | |
| 1113 | +var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react")); | |
| 1114 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); | |
| 1115 | +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); | |
| 1116 | +var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); | |
| 1117 | +var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); | |
| 1118 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 1119 | +var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "../node_modules/@babel/runtime/helpers/defineProperty.js")); | |
| 1120 | +var _app = _interopRequireDefault(__webpack_require__(/*! ../app/app */ "../modules/checklist/assets/js/app/app.js")); | |
| 1121 | +var _query = __webpack_require__(/*! @elementor/query */ "@elementor/query"); | |
| 1122 | +var _client = _interopRequireDefault(__webpack_require__(/*! react-dom/client */ "../node_modules/react-dom/client.js")); | |
| 1123 | +var _functions = __webpack_require__(/*! ../utils/functions */ "../modules/checklist/assets/js/utils/functions.js"); | |
| 1124 | +var _consts = __webpack_require__(/*! ../utils/consts */ "../modules/checklist/assets/js/utils/consts.js"); | |
| 1125 | +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)); } | |
| 1126 | +function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } | |
| 1127 | +var queryClient = new _query.QueryClient(); | |
| 1128 | +var TogglePopup = exports.TogglePopup = /*#__PURE__*/function (_$e$modules$CommandBa) { | |
| 1129 | + function TogglePopup() { | |
| 1130 | + (0, _classCallCheck2.default)(this, TogglePopup); | |
| 1131 | + return _callSuper(this, TogglePopup, arguments); | |
| 1132 | + } | |
| 1133 | + (0, _inherits2.default)(TogglePopup, _$e$modules$CommandBa); | |
| 1134 | + return (0, _createClass2.default)(TogglePopup, [{ | |
| 1135 | + key: "apply", | |
| 1136 | + value: function apply(args) { | |
| 1137 | + if (!TogglePopup.isOpen) { | |
| 1138 | + this.mount(); | |
| 1139 | + } else { | |
| 1140 | + this.unmount(); | |
| 1141 | + } | |
| 1142 | + TogglePopup.isOpen = !TogglePopup.isOpen; | |
| 1143 | + args.isOpen = TogglePopup.isOpen; | |
| 1144 | + (0, _functions.updateUserProgress)((0, _defineProperty2.default)({}, _consts.USER_PROGRESS.LAST_OPENED_TIMESTAMP, TogglePopup.isOpen)); | |
| 1145 | + } | |
| 1146 | + }, { | |
| 1147 | + key: "mount", | |
| 1148 | + value: function mount() { | |
| 1149 | + this.setRootElement(); | |
| 1150 | + TogglePopup.rootElement.render(/*#__PURE__*/_react.default.createElement(_query.QueryClientProvider, { | |
| 1151 | + client: queryClient | |
| 1152 | + }, /*#__PURE__*/_react.default.createElement(_app.default, null))); | |
| 1153 | + } | |
| 1154 | + }, { | |
| 1155 | + key: "unmount", | |
| 1156 | + value: function unmount() { | |
| 1157 | + TogglePopup.rootElement.unmount(); | |
| 1158 | + document.body.removeChild(document.body.querySelector('#e-checklist')); | |
| 1159 | + } | |
| 1160 | + }, { | |
| 1161 | + key: "setRootElement", | |
| 1162 | + value: function setRootElement() { | |
| 1163 | + var root = document.body.querySelector('#e-checklist'); | |
| 1164 | + if (!root) { | |
| 1165 | + root = document.createElement('div'); | |
| 1166 | + root.id = 'e-checklist'; | |
| 1167 | + document.body.appendChild(root); | |
| 1168 | + } | |
| 1169 | + TogglePopup.rootElement = _client.default.createRoot(root); | |
| 1170 | + } | |
| 1171 | + }]); | |
| 1172 | +}($e.modules.CommandBase); | |
| 1173 | +(0, _defineProperty2.default)(TogglePopup, "rootElement", null); | |
| 1174 | +(0, _defineProperty2.default)(TogglePopup, "isOpen", false); | |
| 1175 | +var _default = exports["default"] = TogglePopup; | |
| 1176 | + | |
| 1177 | +/***/ }), | |
| 1178 | + | |
| 1179 | +/***/ "../modules/checklist/assets/js/component.js": | |
| 1180 | +/*!***************************************************!*\ | |
| 1181 | + !*** ../modules/checklist/assets/js/component.js ***! | |
| 1182 | + \***************************************************/ | |
| 1183 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 1184 | + | |
| 1185 | +"use strict"; | |
| 1186 | + | |
| 1187 | + | |
| 1188 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 1189 | +var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ "../node_modules/@babel/runtime/helpers/typeof.js"); | |
| 1190 | +Object.defineProperty(exports, "__esModule", ({ | |
| 1191 | + value: true | |
| 1192 | +})); | |
| 1193 | +exports["default"] = void 0; | |
| 1194 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); | |
| 1195 | +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); | |
| 1196 | +var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); | |
| 1197 | +var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); | |
| 1198 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 1199 | +var commands = _interopRequireWildcard(__webpack_require__(/*! ./commands/ */ "../modules/checklist/assets/js/commands/index.js")); | |
| 1200 | +var commandsData = _interopRequireWildcard(__webpack_require__(/*! ./commands-data/ */ "../modules/checklist/assets/js/commands-data/index.js")); | |
| 1201 | +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); } | |
| 1202 | +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)); } | |
| 1203 | +function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } | |
| 1204 | +var Component = exports["default"] = /*#__PURE__*/function (_$e$modules$Component) { | |
| 1205 | + function Component() { | |
| 1206 | + (0, _classCallCheck2.default)(this, Component); | |
| 1207 | + return _callSuper(this, Component, arguments); | |
| 1208 | + } | |
| 1209 | + (0, _inherits2.default)(Component, _$e$modules$Component); | |
| 1210 | + return (0, _createClass2.default)(Component, [{ | |
| 1211 | + key: "getNamespace", | |
| 1212 | + value: function getNamespace() { | |
| 1213 | + return 'checklist'; | |
| 1214 | + } | |
| 1215 | + }, { | |
| 1216 | + key: "defaultCommands", | |
| 1217 | + value: function defaultCommands() { | |
| 1218 | + return this.importCommands(commands); | |
| 1219 | + } | |
| 1220 | + }, { | |
| 1221 | + key: "defaultData", | |
| 1222 | + value: function defaultData() { | |
| 1223 | + return this.importCommands(commandsData); | |
| 1224 | + } | |
| 1225 | + }], [{ | |
| 1226 | + key: "getEndpointFormat", | |
| 1227 | + value: function getEndpointFormat() { | |
| 1228 | + return 'checklist'; | |
| 1229 | + } | |
| 1230 | + }]); | |
| 1231 | +}($e.modules.ComponentBase); | |
| 1232 | + | |
| 1233 | +/***/ }), | |
| 1234 | + | |
| 1235 | +/***/ "../modules/checklist/assets/js/editor-app-bar-link.js": | |
| 1236 | +/*!*************************************************************!*\ | |
| 1237 | + !*** ../modules/checklist/assets/js/editor-app-bar-link.js ***! | |
| 1238 | + \*************************************************************/ | |
| 1239 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 1240 | + | |
| 1241 | +"use strict"; | |
| 1242 | + | |
| 1243 | + | |
| 1244 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 1245 | +var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ "../node_modules/@babel/runtime/helpers/typeof.js"); | |
| 1246 | +Object.defineProperty(exports, "__esModule", ({ | |
| 1247 | + value: true | |
| 1248 | +})); | |
| 1249 | +exports.editorAppBarLink = void 0; | |
| 1250 | +var EditorAppBar = _interopRequireWildcard(__webpack_require__(/*! @elementor/editor-app-bar */ "@elementor/editor-app-bar")); | |
| 1251 | +var _i18n = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n"); | |
| 1252 | +var React = _interopRequireWildcard(__webpack_require__(/*! react */ "react")); | |
| 1253 | +var _topbarIcon = _interopRequireDefault(__webpack_require__(/*! ./topbar-icon */ "../modules/checklist/assets/js/topbar-icon.js")); | |
| 1254 | +var _functions = __webpack_require__(/*! ./utils/functions */ "../modules/checklist/assets/js/utils/functions.js"); | |
| 1255 | +var _query = __webpack_require__(/*! @elementor/query */ "@elementor/query"); | |
| 1256 | +var _commands = __webpack_require__(/*! ./commands */ "../modules/checklist/assets/js/commands/index.js"); | |
| 1257 | +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); } | |
| 1258 | +var queryClient = new _query.QueryClient(); | |
| 1259 | +var editorAppBarLink = exports.editorAppBarLink = function editorAppBarLink() { | |
| 1260 | + var utilitiesMenu = EditorAppBar.utilitiesMenu; | |
| 1261 | + utilitiesMenu.registerLink({ | |
| 1262 | + id: 'app-bar-menu-item-checklist', | |
| 1263 | + priority: 5, | |
| 1264 | + useProps: function useProps() { | |
| 1265 | + return { | |
| 1266 | + title: (0, _i18n.__)('Checklist', 'elementor'), | |
| 1267 | + icon: function icon() { | |
| 1268 | + return /*#__PURE__*/React.createElement(_query.QueryClientProvider, { | |
| 1269 | + client: queryClient | |
| 1270 | + }, /*#__PURE__*/React.createElement(_topbarIcon.default, null)); | |
| 1271 | + }, | |
| 1272 | + onClick: function onClick() { | |
| 1273 | + (0, _functions.addMixpanelTrackingChecklistTopBar)(_commands.TogglePopup.isOpen); | |
| 1274 | + (0, _functions.toggleChecklistPopup)(); | |
| 1275 | + } | |
| 1276 | + }; | |
| 1277 | + } | |
| 1278 | + }); | |
| 1279 | +}; | |
| 1280 | + | |
| 1281 | +/***/ }), | |
| 1282 | + | |
| 1283 | +/***/ "../modules/checklist/assets/js/topbar-icon.js": | |
| 1284 | +/*!*****************************************************!*\ | |
| 1285 | + !*** ../modules/checklist/assets/js/topbar-icon.js ***! | |
| 1286 | + \*****************************************************/ | |
| 1287 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 1288 | + | |
| 1289 | +"use strict"; | |
| 1290 | + | |
| 1291 | + | |
| 1292 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 1293 | +var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ "../node_modules/@babel/runtime/helpers/typeof.js"); | |
| 1294 | +Object.defineProperty(exports, "__esModule", ({ | |
| 1295 | + value: true | |
| 1296 | +})); | |
| 1297 | +exports["default"] = void 0; | |
| 1298 | +var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ "../node_modules/@babel/runtime/helpers/slicedToArray.js")); | |
| 1299 | +var _react = _interopRequireWildcard(__webpack_require__(/*! react */ "react")); | |
| 1300 | +var React = _react; | |
| 1301 | +var _query = __webpack_require__(/*! @elementor/query */ "@elementor/query"); | |
| 1302 | +var _editorV1Adapters = __webpack_require__(/*! @elementor/editor-v1-adapters */ "@elementor/editor-v1-adapters"); | |
| 1303 | +var _RocketIcon = _interopRequireDefault(__webpack_require__(/*! @elementor/icons/RocketIcon */ "@elementor/icons/RocketIcon")); | |
| 1304 | +var _ui = __webpack_require__(/*! @elementor/ui */ "@elementor/ui"); | |
| 1305 | +var _reminderModal = _interopRequireDefault(__webpack_require__(/*! ./app/components/reminder-modal */ "../modules/checklist/assets/js/app/components/reminder-modal.js")); | |
| 1306 | +var _consts = __webpack_require__(/*! ./utils/consts */ "../modules/checklist/assets/js/utils/consts.js"); | |
| 1307 | +var _functions = __webpack_require__(/*! ./utils/functions */ "../modules/checklist/assets/js/utils/functions.js"); | |
| 1308 | +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); } | |
| 1309 | +var CHECKLIST_CLOSED_IN_THE_EDITOR_FOR_FIRST_TIME = _consts.USER_PROGRESS.CHECKLIST_CLOSED_IN_THE_EDITOR_FOR_FIRST_TIME; | |
| 1310 | +var TopBarIcon = function TopBarIcon() { | |
| 1311 | + var _useState = (0, _react.useState)(false), | |
| 1312 | + _useState2 = (0, _slicedToArray2.default)(_useState, 2), | |
| 1313 | + hasRoot = _useState2[0], | |
| 1314 | + setHasRoot = _useState2[1], | |
| 1315 | + _useState3 = (0, _react.useState)(false), | |
| 1316 | + _useState4 = (0, _slicedToArray2.default)(_useState3, 2), | |
| 1317 | + open = _useState4[0], | |
| 1318 | + setOpen = _useState4[1], | |
| 1319 | + _useQuery = (0, _query.useQuery)({ | |
| 1320 | + queryKey: ['closedForFirstTime'], | |
| 1321 | + queryFn: _functions.fetchUserProgress | |
| 1322 | + }), | |
| 1323 | + error = _useQuery.error, | |
| 1324 | + userProgress = _useQuery.data, | |
| 1325 | + closedForFirstTime = userProgress === null || userProgress === void 0 ? void 0 : userProgress[CHECKLIST_CLOSED_IN_THE_EDITOR_FOR_FIRST_TIME]; | |
| 1326 | + (0, _react.useEffect)(function () { | |
| 1327 | + return (0, _editorV1Adapters.__privateListenTo)((0, _editorV1Adapters.commandEndEvent)('checklist/toggle-popup'), function (e) { | |
| 1328 | + setHasRoot(e.args.isOpen); | |
| 1329 | + }); | |
| 1330 | + }, [hasRoot]); | |
| 1331 | + (0, _react.useEffect)(function () { | |
| 1332 | + var handleFirstClosed = function handleFirstClosed() { | |
| 1333 | + setOpen(true); | |
| 1334 | + }; | |
| 1335 | + window.addEventListener('elementor/checklist/first_close', handleFirstClosed); | |
| 1336 | + return function () { | |
| 1337 | + window.removeEventListener('elementor/checklist/first_close', handleFirstClosed); | |
| 1338 | + }; | |
| 1339 | + }, []); | |
| 1340 | + if (error) { | |
| 1341 | + return null; | |
| 1342 | + } | |
| 1343 | + return hasRoot && !closedForFirstTime ? /*#__PURE__*/React.createElement(_RocketIcon.default, null) : /*#__PURE__*/React.createElement(_ui.Infotip, { | |
| 1344 | + placement: "bottom-start", | |
| 1345 | + content: /*#__PURE__*/React.createElement(_reminderModal.default, { | |
| 1346 | + setHasRoot: setHasRoot, | |
| 1347 | + setOpen: setOpen | |
| 1348 | + }), | |
| 1349 | + open: open, | |
| 1350 | + PopperProps: { | |
| 1351 | + modifiers: [{ | |
| 1352 | + name: 'offset', | |
| 1353 | + options: { | |
| 1354 | + offset: [-16, 12] | |
| 1355 | + } | |
| 1356 | + }] | |
| 1357 | + } | |
| 1358 | + }, /*#__PURE__*/React.createElement(_RocketIcon.default, null)); | |
| 1359 | +}; | |
| 1360 | +var _default = exports["default"] = TopBarIcon; | |
| 1361 | + | |
| 1362 | +/***/ }), | |
| 1363 | + | |
| 1364 | +/***/ "../modules/checklist/assets/js/utils/consts.js": | |
| 1365 | +/*!******************************************************!*\ | |
| 1366 | + !*** ../modules/checklist/assets/js/utils/consts.js ***! | |
| 1367 | + \******************************************************/ | |
| 1368 | +/***/ ((__unused_webpack_module, exports) => { | |
| 1369 | + | |
| 1370 | +"use strict"; | |
| 1371 | + | |
| 1372 | + | |
| 1373 | +Object.defineProperty(exports, "__esModule", ({ | |
| 1374 | + value: true | |
| 1375 | +})); | |
| 1376 | +exports.USER_PROGRESS_ROUTE = exports.USER_PROGRESS = exports.STEP_IDS_TO_COMPLETE_IN_EDITOR = exports.STEPS_ROUTE = exports.STEP = exports.PANEL_ROUTES = exports.MIXPANEL_CHECKLIST_STEPS = void 0; | |
| 1377 | +var STEPS_ROUTE = exports.STEPS_ROUTE = 'checklist/steps', | |
| 1378 | + USER_PROGRESS_ROUTE = exports.USER_PROGRESS_ROUTE = 'checklist/user-progress'; | |
| 1379 | +var STEP = exports.STEP = { | |
| 1380 | + IS_MARKED_COMPLETED: 'is_marked_completed', | |
| 1381 | + IS_IMMUTABLE_COMPLETED: 'is_immutable_completed', | |
| 1382 | + IS_ABSOLUTE_COMPLETED: 'is_absolute_completed', | |
| 1383 | + PROMOTION_DATA: 'promotion_data' | |
| 1384 | +}; | |
| 1385 | +var USER_PROGRESS = exports.USER_PROGRESS = { | |
| 1386 | + LAST_OPENED_TIMESTAMP: 'last_opened_timestamp', | |
| 1387 | + SHOULD_OPEN_IN_EDITOR: 'should_open_in_editor', | |
| 1388 | + CHECKLIST_CLOSED_IN_THE_EDITOR_FOR_FIRST_TIME: 'first_closed_checklist_in_editor', | |
| 1389 | + IS_POPUP_MINIMIZED: 'is_popup_minimized', | |
| 1390 | + EDITOR_VISIT_COUNT: 'e_editor_counter' | |
| 1391 | +}; | |
| 1392 | +var STEP_IDS_TO_COMPLETE_IN_EDITOR = exports.STEP_IDS_TO_COMPLETE_IN_EDITOR = ['add_logo', 'set_fonts_and_colors']; | |
| 1393 | +var PANEL_ROUTES = exports.PANEL_ROUTES = { | |
| 1394 | + add_logo: 'panel/global/settings-site-identity', | |
| 1395 | + set_fonts_and_colors: 'panel/global/global-typography' | |
| 1396 | +}; | |
| 1397 | +var MIXPANEL_CHECKLIST_STEPS = exports.MIXPANEL_CHECKLIST_STEPS = { | |
| 1398 | + UPGRADE: 'upgrade', | |
| 1399 | + ACTION: 'action', | |
| 1400 | + DONE: 'done', | |
| 1401 | + UNDONE: 'undone', | |
| 1402 | + TITLE: 'title', | |
| 1403 | + WELL_DONE: 'well_done', | |
| 1404 | + CHECKLIST_HEADER_CLOSE: 'checklistHeaderClose', | |
| 1405 | + ACCORDION_SECTION: 'accordionSection' | |
| 1406 | +}; | |
| 1407 | + | |
| 1408 | +/***/ }), | |
| 1409 | + | |
| 1410 | +/***/ "../modules/checklist/assets/js/utils/functions.js": | |
| 1411 | +/*!*********************************************************!*\ | |
| 1412 | + !*** ../modules/checklist/assets/js/utils/functions.js ***! | |
| 1413 | + \*********************************************************/ | |
| 1414 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 1415 | + | |
| 1416 | +"use strict"; | |
| 1417 | + | |
| 1418 | + | |
| 1419 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 1420 | +Object.defineProperty(exports, "__esModule", ({ | |
| 1421 | + value: true | |
| 1422 | +})); | |
| 1423 | +exports.addMixpanelTrackingChecklistHeader = addMixpanelTrackingChecklistHeader; | |
| 1424 | +exports.addMixpanelTrackingChecklistSteps = addMixpanelTrackingChecklistSteps; | |
| 1425 | +exports.addMixpanelTrackingChecklistTopBar = addMixpanelTrackingChecklistTopBar; | |
| 1426 | +exports.dispatchChecklistOpenEvent = dispatchChecklistOpenEvent; | |
| 1427 | +exports.fetchSteps = fetchSteps; | |
| 1428 | +exports.fetchUserProgress = fetchUserProgress; | |
| 1429 | +exports.getAndUpdateStep = getAndUpdateStep; | |
| 1430 | +exports.getDocumentMetaDataMixpanel = getDocumentMetaDataMixpanel; | |
| 1431 | +exports.isStepChecked = isStepChecked; | |
| 1432 | +exports.toggleChecklistPopup = toggleChecklistPopup; | |
| 1433 | +exports.updateStep = updateStep; | |
| 1434 | +exports.updateUserProgress = updateUserProgress; | |
| 1435 | +var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/regenerator */ "../node_modules/@babel/runtime/regenerator/index.js")); | |
| 1436 | +var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "../node_modules/@babel/runtime/helpers/defineProperty.js")); | |
| 1437 | +var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ "../node_modules/@babel/runtime/helpers/asyncToGenerator.js")); | |
| 1438 | +var _consts = __webpack_require__(/*! ./consts */ "../modules/checklist/assets/js/utils/consts.js"); | |
| 1439 | +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; } | |
| 1440 | +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; } | |
| 1441 | +var IS_MARKED_COMPLETED = _consts.STEP.IS_MARKED_COMPLETED, | |
| 1442 | + IS_ABSOLUTE_COMPLETED = _consts.STEP.IS_ABSOLUTE_COMPLETED, | |
| 1443 | + IS_IMMUTABLE_COMPLETED = _consts.STEP.IS_IMMUTABLE_COMPLETED, | |
| 1444 | + PROMOTION_DATA = _consts.STEP.PROMOTION_DATA; | |
| 1445 | +function isStepChecked(step) { | |
| 1446 | + return !step[PROMOTION_DATA] && (step[IS_MARKED_COMPLETED] || step[IS_ABSOLUTE_COMPLETED] || step[IS_IMMUTABLE_COMPLETED]); | |
| 1447 | +} | |
| 1448 | +function toggleChecklistPopup() { | |
| 1449 | + $e.run('checklist/toggle-popup'); | |
| 1450 | +} | |
| 1451 | +function fetchSteps() { | |
| 1452 | + return _fetchSteps.apply(this, arguments); | |
| 1453 | +} | |
| 1454 | +function _fetchSteps() { | |
| 1455 | + _fetchSteps = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() { | |
| 1456 | + var _response$data; | |
| 1457 | + var response; | |
| 1458 | + return _regenerator.default.wrap(function (_context) { | |
| 1459 | + while (1) switch (_context.prev = _context.next) { | |
| 1460 | + case 0: | |
| 1461 | + _context.next = 1; | |
| 1462 | + return $e.data.get(_consts.STEPS_ROUTE, {}, { | |
| 1463 | + refresh: true | |
| 1464 | + }); | |
| 1465 | + case 1: | |
| 1466 | + response = _context.sent; | |
| 1467 | + return _context.abrupt("return", (response === null || response === void 0 || (_response$data = response.data) === null || _response$data === void 0 ? void 0 : _response$data.data) || null); | |
| 1468 | + case 2: | |
| 1469 | + case "end": | |
| 1470 | + return _context.stop(); | |
| 1471 | + } | |
| 1472 | + }, _callee); | |
| 1473 | + })); | |
| 1474 | + return _fetchSteps.apply(this, arguments); | |
| 1475 | +} | |
| 1476 | +function fetchUserProgress() { | |
| 1477 | + return _fetchUserProgress.apply(this, arguments); | |
| 1478 | +} | |
| 1479 | +function _fetchUserProgress() { | |
| 1480 | + _fetchUserProgress = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee2() { | |
| 1481 | + var _response$data2; | |
| 1482 | + var response; | |
| 1483 | + return _regenerator.default.wrap(function (_context2) { | |
| 1484 | + while (1) switch (_context2.prev = _context2.next) { | |
| 1485 | + case 0: | |
| 1486 | + _context2.next = 1; | |
| 1487 | + return $e.data.get(_consts.USER_PROGRESS_ROUTE, {}, { | |
| 1488 | + refresh: true | |
| 1489 | + }); | |
| 1490 | + case 1: | |
| 1491 | + response = _context2.sent; | |
| 1492 | + return _context2.abrupt("return", (response === null || response === void 0 || (_response$data2 = response.data) === null || _response$data2 === void 0 ? void 0 : _response$data2.data) || null); | |
| 1493 | + case 2: | |
| 1494 | + case "end": | |
| 1495 | + return _context2.stop(); | |
| 1496 | + } | |
| 1497 | + }, _callee2); | |
| 1498 | + })); | |
| 1499 | + return _fetchUserProgress.apply(this, arguments); | |
| 1500 | +} | |
| 1501 | +function updateStep(_x, _x2) { | |
| 1502 | + return _updateStep.apply(this, arguments); | |
| 1503 | +} | |
| 1504 | +function _updateStep() { | |
| 1505 | + _updateStep = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee3(id, data) { | |
| 1506 | + return _regenerator.default.wrap(function (_context3) { | |
| 1507 | + while (1) switch (_context3.prev = _context3.next) { | |
| 1508 | + case 0: | |
| 1509 | + _context3.next = 1; | |
| 1510 | + return $e.data.update(_consts.STEPS_ROUTE, _objectSpread({ | |
| 1511 | + id: id | |
| 1512 | + }, data), { | |
| 1513 | + id: id | |
| 1514 | + }); | |
| 1515 | + case 1: | |
| 1516 | + return _context3.abrupt("return", _context3.sent); | |
| 1517 | + case 2: | |
| 1518 | + case "end": | |
| 1519 | + return _context3.stop(); | |
| 1520 | + } | |
| 1521 | + }, _callee3); | |
| 1522 | + })); | |
| 1523 | + return _updateStep.apply(this, arguments); | |
| 1524 | +} | |
| 1525 | +function updateUserProgress(_x3) { | |
| 1526 | + return _updateUserProgress.apply(this, arguments); | |
| 1527 | +} | |
| 1528 | +function _updateUserProgress() { | |
| 1529 | + _updateUserProgress = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee4(data) { | |
| 1530 | + return _regenerator.default.wrap(function (_context4) { | |
| 1531 | + while (1) switch (_context4.prev = _context4.next) { | |
| 1532 | + case 0: | |
| 1533 | + _context4.next = 1; | |
| 1534 | + return $e.data.update(_consts.USER_PROGRESS_ROUTE, data); | |
| 1535 | + case 1: | |
| 1536 | + return _context4.abrupt("return", _context4.sent); | |
| 1537 | + case 2: | |
| 1538 | + case "end": | |
| 1539 | + return _context4.stop(); | |
| 1540 | + } | |
| 1541 | + }, _callee4); | |
| 1542 | + })); | |
| 1543 | + return _updateUserProgress.apply(this, arguments); | |
| 1544 | +} | |
| 1545 | +function getAndUpdateStep(id, step, key, value) { | |
| 1546 | + if (step.config.id !== id) { | |
| 1547 | + return step; | |
| 1548 | + } | |
| 1549 | + return _objectSpread(_objectSpread({}, step), {}, (0, _defineProperty2.default)({}, key, value)); | |
| 1550 | +} | |
| 1551 | +function addMixpanelTrackingChecklistSteps(name, action) { | |
| 1552 | + var element = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'button'; | |
| 1553 | + var documentMetaData = getDocumentMetaDataMixpanel(); | |
| 1554 | + name = name.replace(/_/g, ''); | |
| 1555 | + var eventName = "checklist_steps_".concat(action, "_").concat(name); | |
| 1556 | + return elementorCommon.eventsManager.dispatchEvent(eventName, _objectSpread({ | |
| 1557 | + location: elementorCommon.eventsManager.config.locations.elementorEditor, | |
| 1558 | + secondaryLocation: elementorCommon.eventsManager.config.secondaryLocations.checklistSteps, | |
| 1559 | + trigger: elementorCommon.eventsManager.config.triggers.click, | |
| 1560 | + element: elementorCommon.eventsManager.config.elements[element] | |
| 1561 | + }, documentMetaData)); | |
| 1562 | +} | |
| 1563 | +function addMixpanelTrackingChecklistHeader(name) { | |
| 1564 | + var documentMetaData = getDocumentMetaDataMixpanel(); | |
| 1565 | + return elementorCommon.eventsManager.dispatchEvent(elementorCommon.eventsManager.config.names.elementorEditor.checklist[name], _objectSpread({ | |
| 1566 | + location: elementorCommon.eventsManager.config.locations.elementorEditor, | |
| 1567 | + secondaryLocation: elementorCommon.eventsManager.config.secondaryLocations.checklistHeader, | |
| 1568 | + trigger: elementorCommon.eventsManager.config.triggers.click, | |
| 1569 | + element: elementorCommon.eventsManager.config.elements.buttonIcon | |
| 1570 | + }, documentMetaData)); | |
| 1571 | +} | |
| 1572 | +function addMixpanelTrackingChecklistTopBar(togglePopupState) { | |
| 1573 | + var documentMetaData = getDocumentMetaDataMixpanel(); | |
| 1574 | + var name = !togglePopupState ? 'launchpadOn' : 'launchpadOff'; | |
| 1575 | + return elementorCommon.eventsManager.dispatchEvent(elementorCommon.eventsManager.config.names.topBar[name], _objectSpread({ | |
| 1576 | + location: elementorCommon.eventsManager.config.locations.topBar, | |
| 1577 | + secondaryLocation: elementorCommon.eventsManager.config.secondaryLocations.launchpad, | |
| 1578 | + trigger: elementorCommon.eventsManager.config.triggers.toggleClick, | |
| 1579 | + element: elementorCommon.eventsManager.config.elements.buttonIcon | |
| 1580 | + }, documentMetaData)); | |
| 1581 | +} | |
| 1582 | +function dispatchChecklistOpenEvent() { | |
| 1583 | + var documentMetaData = getDocumentMetaDataMixpanel(); | |
| 1584 | + return elementorCommon.eventsManager.dispatchEvent(elementorCommon.eventsManager.config.names.elementorEditor.checklist.checklistFirstPopup, _objectSpread({ | |
| 1585 | + location: elementorCommon.eventsManager.config.locations.elementorEditor, | |
| 1586 | + secondaryLocation: elementorCommon.eventsManager.config.secondaryLocations.launchpad, | |
| 1587 | + trigger: elementorCommon.eventsManager.config.triggers.editorLoaded, | |
| 1588 | + element: elementorCommon.eventsManager.config.elements.launchpadChecklist | |
| 1589 | + }, documentMetaData)); | |
| 1590 | +} | |
| 1591 | +function getDocumentMetaDataMixpanel() { | |
| 1592 | + var postId = elementor.getPreviewContainer().document.config.id; | |
| 1593 | + var postTitle = elementor.getPreviewContainer().model.attributes.settings.attributes.post_title; | |
| 1594 | + var postTypeTitle = elementor.getPreviewContainer().document.config.post_type_title; | |
| 1595 | + var documentType = elementor.getPreviewContainer().document.config.type; | |
| 1596 | + return { | |
| 1597 | + postId: postId, | |
| 1598 | + postTitle: postTitle, | |
| 1599 | + postTypeTitle: postTypeTitle, | |
| 1600 | + documentType: documentType | |
| 1601 | + }; | |
| 1602 | +} | |
| 1603 | + | |
| 1604 | +/***/ }), | |
| 1605 | + | |
| 1606 | +/***/ "../node_modules/@babel/runtime/helpers/OverloadYield.js": | |
| 1607 | +/*!***************************************************************!*\ | |
| 1608 | + !*** ../node_modules/@babel/runtime/helpers/OverloadYield.js ***! | |
| 1609 | + \***************************************************************/ | |
| 1610 | +/***/ ((module) => { | |
| 1611 | + | |
| 1612 | +function _OverloadYield(e, d) { | |
| 1613 | + this.v = e, this.k = d; | |
| 1614 | +} | |
| 1615 | +module.exports = _OverloadYield, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 1616 | + | |
| 1617 | +/***/ }), | |
| 1618 | + | |
| 1619 | +/***/ "../node_modules/@babel/runtime/helpers/arrayLikeToArray.js": | |
| 1620 | +/*!******************************************************************!*\ | |
| 1621 | + !*** ../node_modules/@babel/runtime/helpers/arrayLikeToArray.js ***! | |
| 1622 | + \******************************************************************/ | |
| 1623 | +/***/ ((module) => { | |
| 1624 | + | |
| 1625 | +function _arrayLikeToArray(r, a) { | |
| 1626 | + (null == a || a > r.length) && (a = r.length); | |
| 1627 | + for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; | |
| 1628 | + return n; | |
| 1629 | +} | |
| 1630 | +module.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 1631 | + | |
| 1632 | +/***/ }), | |
| 1633 | + | |
| 1634 | +/***/ "../node_modules/@babel/runtime/helpers/arrayWithHoles.js": | |
| 1635 | +/*!****************************************************************!*\ | |
| 1636 | + !*** ../node_modules/@babel/runtime/helpers/arrayWithHoles.js ***! | |
| 1637 | + \****************************************************************/ | |
| 1638 | +/***/ ((module) => { | |
| 1639 | + | |
| 1640 | +function _arrayWithHoles(r) { | |
| 1641 | + if (Array.isArray(r)) return r; | |
| 1642 | +} | |
| 1643 | +module.exports = _arrayWithHoles, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 1644 | + | |
| 1645 | +/***/ }), | |
| 1646 | + | |
| 1647 | +/***/ "../node_modules/@babel/runtime/helpers/arrayWithoutHoles.js": | |
| 1648 | +/*!*******************************************************************!*\ | |
| 1649 | + !*** ../node_modules/@babel/runtime/helpers/arrayWithoutHoles.js ***! | |
| 1650 | + \*******************************************************************/ | |
| 1651 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 1652 | + | |
| 1653 | +var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ "../node_modules/@babel/runtime/helpers/arrayLikeToArray.js"); | |
| 1654 | +function _arrayWithoutHoles(r) { | |
| 1655 | + if (Array.isArray(r)) return arrayLikeToArray(r); | |
| 1656 | +} | |
| 1657 | +module.exports = _arrayWithoutHoles, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 1658 | + | |
| 1659 | +/***/ }), | |
| 1660 | + | |
| 1661 | +/***/ "../node_modules/@babel/runtime/helpers/assertThisInitialized.js": | |
| 1662 | +/*!***********************************************************************!*\ | |
| 1663 | + !*** ../node_modules/@babel/runtime/helpers/assertThisInitialized.js ***! | |
| 1664 | + \***********************************************************************/ | |
| 1665 | +/***/ ((module) => { | |
| 1666 | + | |
| 1667 | +function _assertThisInitialized(e) { | |
| 1668 | + if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); | |
| 1669 | + return e; | |
| 1670 | +} | |
| 1671 | +module.exports = _assertThisInitialized, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 1672 | + | |
| 1673 | +/***/ }), | |
| 1674 | + | |
| 1675 | +/***/ "../node_modules/@babel/runtime/helpers/asyncToGenerator.js": | |
| 1676 | +/*!******************************************************************!*\ | |
| 1677 | + !*** ../node_modules/@babel/runtime/helpers/asyncToGenerator.js ***! | |
| 1678 | + \******************************************************************/ | |
| 1679 | +/***/ ((module) => { | |
| 1680 | + | |
| 1681 | +function asyncGeneratorStep(n, t, e, r, o, a, c) { | |
| 1682 | + try { | |
| 1683 | + var i = n[a](c), | |
| 1684 | + u = i.value; | |
| 1685 | + } catch (n) { | |
| 1686 | + return void e(n); | |
| 1687 | + } | |
| 1688 | + i.done ? t(u) : Promise.resolve(u).then(r, o); | |
| 1689 | +} | |
| 1690 | +function _asyncToGenerator(n) { | |
| 1691 | + return function () { | |
| 1692 | + var t = this, | |
| 1693 | + e = arguments; | |
| 1694 | + return new Promise(function (r, o) { | |
| 1695 | + var a = n.apply(t, e); | |
| 1696 | + function _next(n) { | |
| 1697 | + asyncGeneratorStep(a, r, o, _next, _throw, "next", n); | |
| 1698 | + } | |
| 1699 | + function _throw(n) { | |
| 1700 | + asyncGeneratorStep(a, r, o, _next, _throw, "throw", n); | |
| 1701 | + } | |
| 1702 | + _next(void 0); | |
| 1703 | + }); | |
| 1704 | + }; | |
| 1705 | +} | |
| 1706 | +module.exports = _asyncToGenerator, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 1707 | + | |
| 1708 | +/***/ }), | |
| 1709 | + | |
| 1710 | +/***/ "../node_modules/@babel/runtime/helpers/classCallCheck.js": | |
| 1711 | +/*!****************************************************************!*\ | |
| 1712 | + !*** ../node_modules/@babel/runtime/helpers/classCallCheck.js ***! | |
| 1713 | + \****************************************************************/ | |
| 1714 | +/***/ ((module) => { | |
| 1715 | + | |
| 1716 | +function _classCallCheck(a, n) { | |
| 1717 | + if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); | |
| 1718 | +} | |
| 1719 | +module.exports = _classCallCheck, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 1720 | + | |
| 1721 | +/***/ }), | |
| 1722 | + | |
| 1723 | +/***/ "../node_modules/@babel/runtime/helpers/createClass.js": | |
| 1724 | +/*!*************************************************************!*\ | |
| 1725 | + !*** ../node_modules/@babel/runtime/helpers/createClass.js ***! | |
| 1726 | + \*************************************************************/ | |
| 1727 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 1728 | + | |
| 1729 | +var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ "../node_modules/@babel/runtime/helpers/toPropertyKey.js"); | |
| 1730 | +function _defineProperties(e, r) { | |
| 1731 | + for (var t = 0; t < r.length; t++) { | |
| 1732 | + var o = r[t]; | |
| 1733 | + o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, toPropertyKey(o.key), o); | |
| 1734 | + } | |
| 1735 | +} | |
| 1736 | +function _createClass(e, r, t) { | |
| 1737 | + return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { | |
| 1738 | + writable: !1 | |
| 1739 | + }), e; | |
| 1740 | +} | |
| 1741 | +module.exports = _createClass, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 1742 | + | |
| 1743 | +/***/ }), | |
| 1744 | + | |
| 1745 | +/***/ "../node_modules/@babel/runtime/helpers/defineProperty.js": | |
| 1746 | +/*!****************************************************************!*\ | |
| 1747 | + !*** ../node_modules/@babel/runtime/helpers/defineProperty.js ***! | |
| 1748 | + \****************************************************************/ | |
| 1749 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 1750 | + | |
| 1751 | +var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ "../node_modules/@babel/runtime/helpers/toPropertyKey.js"); | |
| 1752 | +function _defineProperty(e, r, t) { | |
| 1753 | + return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, { | |
| 1754 | + value: t, | |
| 1755 | + enumerable: !0, | |
| 1756 | + configurable: !0, | |
| 1757 | + writable: !0 | |
| 1758 | + }) : e[r] = t, e; | |
| 1759 | +} | |
| 1760 | +module.exports = _defineProperty, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 1761 | + | |
| 1762 | +/***/ }), | |
| 1763 | + | |
| 1764 | +/***/ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js": | |
| 1765 | +/*!****************************************************************!*\ | |
| 1766 | + !*** ../node_modules/@babel/runtime/helpers/getPrototypeOf.js ***! | |
| 1767 | + \****************************************************************/ | |
| 1768 | +/***/ ((module) => { | |
| 1769 | + | |
| 1770 | +function _getPrototypeOf(t) { | |
| 1771 | + return module.exports = _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { | |
| 1772 | + return t.__proto__ || Object.getPrototypeOf(t); | |
| 1773 | + }, module.exports.__esModule = true, module.exports["default"] = module.exports, _getPrototypeOf(t); | |
| 1774 | +} | |
| 1775 | +module.exports = _getPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 1776 | + | |
| 1777 | +/***/ }), | |
| 1778 | + | |
| 1779 | +/***/ "../node_modules/@babel/runtime/helpers/inherits.js": | |
| 1780 | +/*!**********************************************************!*\ | |
| 1781 | + !*** ../node_modules/@babel/runtime/helpers/inherits.js ***! | |
| 1782 | + \**********************************************************/ | |
| 1783 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 1784 | + | |
| 1785 | +var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf.js */ "../node_modules/@babel/runtime/helpers/setPrototypeOf.js"); | |
| 1786 | +function _inherits(t, e) { | |
| 1787 | + if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); | |
| 1788 | + t.prototype = Object.create(e && e.prototype, { | |
| 1789 | + constructor: { | |
| 1790 | + value: t, | |
| 1791 | + writable: !0, | |
| 1792 | + configurable: !0 | |
| 1793 | + } | |
| 1794 | + }), Object.defineProperty(t, "prototype", { | |
| 1795 | + writable: !1 | |
| 1796 | + }), e && setPrototypeOf(t, e); | |
| 1797 | +} | |
| 1798 | +module.exports = _inherits, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 1799 | + | |
| 1800 | +/***/ }), | |
| 1801 | + | |
| 1802 | +/***/ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js": | |
| 1803 | +/*!***********************************************************************!*\ | |
| 1804 | + !*** ../node_modules/@babel/runtime/helpers/interopRequireDefault.js ***! | |
| 1805 | + \***********************************************************************/ | |
| 1806 | +/***/ ((module) => { | |
| 1807 | + | |
| 1808 | +function _interopRequireDefault(e) { | |
| 1809 | + return e && e.__esModule ? e : { | |
| 1810 | + "default": e | |
| 1811 | + }; | |
| 1812 | +} | |
| 1813 | +module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 1814 | + | |
| 1815 | +/***/ }), | |
| 1816 | + | |
| 1817 | +/***/ "../node_modules/@babel/runtime/helpers/iterableToArray.js": | |
| 1818 | +/*!*****************************************************************!*\ | |
| 1819 | + !*** ../node_modules/@babel/runtime/helpers/iterableToArray.js ***! | |
| 1820 | + \*****************************************************************/ | |
| 1821 | +/***/ ((module) => { | |
| 1822 | + | |
| 1823 | +function _iterableToArray(r) { | |
| 1824 | + if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); | |
| 1825 | +} | |
| 1826 | +module.exports = _iterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 1827 | + | |
| 1828 | +/***/ }), | |
| 1829 | + | |
| 1830 | +/***/ "../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js": | |
| 1831 | +/*!**********************************************************************!*\ | |
| 1832 | + !*** ../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js ***! | |
| 1833 | + \**********************************************************************/ | |
| 1834 | +/***/ ((module) => { | |
| 1835 | + | |
| 1836 | +function _iterableToArrayLimit(r, l) { | |
| 1837 | + var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; | |
| 1838 | + if (null != t) { | |
| 1839 | + var e, | |
| 1840 | + n, | |
| 1841 | + i, | |
| 1842 | + u, | |
| 1843 | + a = [], | |
| 1844 | + f = !0, | |
| 1845 | + o = !1; | |
| 1846 | + try { | |
| 1847 | + if (i = (t = t.call(r)).next, 0 === l) { | |
| 1848 | + if (Object(t) !== t) return; | |
| 1849 | + f = !1; | |
| 1850 | + } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); | |
| 1851 | + } catch (r) { | |
| 1852 | + o = !0, n = r; | |
| 1853 | + } finally { | |
| 1854 | + try { | |
| 1855 | + if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; | |
| 1856 | + } finally { | |
| 1857 | + if (o) throw n; | |
| 1858 | + } | |
| 1859 | + } | |
| 1860 | + return a; | |
| 1861 | + } | |
| 1862 | +} | |
| 1863 | +module.exports = _iterableToArrayLimit, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 1864 | + | |
| 1865 | +/***/ }), | |
| 1866 | + | |
| 1867 | +/***/ "../node_modules/@babel/runtime/helpers/nonIterableRest.js": | |
| 1868 | +/*!*****************************************************************!*\ | |
| 1869 | + !*** ../node_modules/@babel/runtime/helpers/nonIterableRest.js ***! | |
| 1870 | + \*****************************************************************/ | |
| 1871 | +/***/ ((module) => { | |
| 1872 | + | |
| 1873 | +function _nonIterableRest() { | |
| 1874 | + throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); | |
| 1875 | +} | |
| 1876 | +module.exports = _nonIterableRest, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 1877 | + | |
| 1878 | +/***/ }), | |
| 1879 | + | |
| 1880 | +/***/ "../node_modules/@babel/runtime/helpers/nonIterableSpread.js": | |
| 1881 | +/*!*******************************************************************!*\ | |
| 1882 | + !*** ../node_modules/@babel/runtime/helpers/nonIterableSpread.js ***! | |
| 1883 | + \*******************************************************************/ | |
| 1884 | +/***/ ((module) => { | |
| 1885 | + | |
| 1886 | +function _nonIterableSpread() { | |
| 1887 | + throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); | |
| 1888 | +} | |
| 1889 | +module.exports = _nonIterableSpread, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 1890 | + | |
| 1891 | +/***/ }), | |
| 1892 | + | |
| 1893 | +/***/ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js": | |
| 1894 | +/*!***************************************************************************!*\ | |
| 1895 | + !*** ../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js ***! | |
| 1896 | + \***************************************************************************/ | |
| 1897 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 1898 | + | |
| 1899 | +var _typeof = (__webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/typeof.js")["default"]); | |
| 1900 | +var assertThisInitialized = __webpack_require__(/*! ./assertThisInitialized.js */ "../node_modules/@babel/runtime/helpers/assertThisInitialized.js"); | |
| 1901 | +function _possibleConstructorReturn(t, e) { | |
| 1902 | + if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; | |
| 1903 | + if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); | |
| 1904 | + return assertThisInitialized(t); | |
| 1905 | +} | |
| 1906 | +module.exports = _possibleConstructorReturn, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 1907 | + | |
| 1908 | +/***/ }), | |
| 1909 | + | |
| 1910 | +/***/ "../node_modules/@babel/runtime/helpers/regenerator.js": | |
| 1911 | +/*!*************************************************************!*\ | |
| 1912 | + !*** ../node_modules/@babel/runtime/helpers/regenerator.js ***! | |
| 1913 | + \*************************************************************/ | |
| 1914 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 1915 | + | |
| 1916 | +var regeneratorDefine = __webpack_require__(/*! ./regeneratorDefine.js */ "../node_modules/@babel/runtime/helpers/regeneratorDefine.js"); | |
| 1917 | +function _regenerator() { | |
| 1918 | + /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ | |
| 1919 | + var e, | |
| 1920 | + t, | |
| 1921 | + r = "function" == typeof Symbol ? Symbol : {}, | |
| 1922 | + n = r.iterator || "@@iterator", | |
| 1923 | + o = r.toStringTag || "@@toStringTag"; | |
| 1924 | + function i(r, n, o, i) { | |
| 1925 | + var c = n && n.prototype instanceof Generator ? n : Generator, | |
| 1926 | + u = Object.create(c.prototype); | |
| 1927 | + return regeneratorDefine(u, "_invoke", function (r, n, o) { | |
| 1928 | + var i, | |
| 1929 | + c, | |
| 1930 | + u, | |
| 1931 | + f = 0, | |
| 1932 | + p = o || [], | |
| 1933 | + y = !1, | |
| 1934 | + G = { | |
| 1935 | + p: 0, | |
| 1936 | + n: 0, | |
| 1937 | + v: e, | |
| 1938 | + a: d, | |
| 1939 | + f: d.bind(e, 4), | |
| 1940 | + d: function d(t, r) { | |
| 1941 | + return i = t, c = 0, u = e, G.n = r, a; | |
| 1942 | + } | |
| 1943 | + }; | |
| 1944 | + function d(r, n) { | |
| 1945 | + for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) { | |
| 1946 | + var o, | |
| 1947 | + i = p[t], | |
| 1948 | + d = G.p, | |
| 1949 | + l = i[2]; | |
| 1950 | + 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)); | |
| 1951 | + } | |
| 1952 | + if (o || r > 1) return a; | |
| 1953 | + throw y = !0, n; | |
| 1954 | + } | |
| 1955 | + return function (o, p, l) { | |
| 1956 | + if (f > 1) throw TypeError("Generator is already running"); | |
| 1957 | + for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) { | |
| 1958 | + i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u); | |
| 1959 | + try { | |
| 1960 | + if (f = 2, i) { | |
| 1961 | + if (c || (o = "next"), t = i[o]) { | |
| 1962 | + if (!(t = t.call(i, u))) throw TypeError("iterator result is not an object"); | |
| 1963 | + if (!t.done) return t; | |
| 1964 | + u = t.value, c < 2 && (c = 0); | |
| 1965 | + } else 1 === c && (t = i["return"]) && t.call(i), c < 2 && (u = TypeError("The iterator does not provide a '" + o + "' method"), c = 1); | |
| 1966 | + i = e; | |
| 1967 | + } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break; | |
| 1968 | + } catch (t) { | |
| 1969 | + i = e, c = 1, u = t; | |
| 1970 | + } finally { | |
| 1971 | + f = 1; | |
| 1972 | + } | |
| 1973 | + } | |
| 1974 | + return { | |
| 1975 | + value: t, | |
| 1976 | + done: y | |
| 1977 | + }; | |
| 1978 | + }; | |
| 1979 | + }(r, o, i), !0), u; | |
| 1980 | + } | |
| 1981 | + var a = {}; | |
| 1982 | + function Generator() {} | |
| 1983 | + function GeneratorFunction() {} | |
| 1984 | + function GeneratorFunctionPrototype() {} | |
| 1985 | + t = Object.getPrototypeOf; | |
| 1986 | + var c = [][n] ? t(t([][n]())) : (regeneratorDefine(t = {}, n, function () { | |
| 1987 | + return this; | |
| 1988 | + }), t), | |
| 1989 | + u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c); | |
| 1990 | + function f(e) { | |
| 1991 | + return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, regeneratorDefine(e, o, "GeneratorFunction")), e.prototype = Object.create(u), e; | |
| 1992 | + } | |
| 1993 | + 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 () { | |
| 1994 | + return this; | |
| 1995 | + }), regeneratorDefine(u, "toString", function () { | |
| 1996 | + return "[object Generator]"; | |
| 1997 | + }), (module.exports = _regenerator = function _regenerator() { | |
| 1998 | + return { | |
| 1999 | + w: i, | |
| 2000 | + m: f | |
| 2001 | + }; | |
| 2002 | + }, module.exports.__esModule = true, module.exports["default"] = module.exports)(); | |
| 2003 | +} | |
| 2004 | +module.exports = _regenerator, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 2005 | + | |
| 2006 | +/***/ }), | |
| 2007 | + | |
| 2008 | +/***/ "../node_modules/@babel/runtime/helpers/regeneratorAsync.js": | |
| 2009 | +/*!******************************************************************!*\ | |
| 2010 | + !*** ../node_modules/@babel/runtime/helpers/regeneratorAsync.js ***! | |
| 2011 | + \******************************************************************/ | |
| 2012 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 2013 | + | |
| 2014 | +var regeneratorAsyncGen = __webpack_require__(/*! ./regeneratorAsyncGen.js */ "../node_modules/@babel/runtime/helpers/regeneratorAsyncGen.js"); | |
| 2015 | +function _regeneratorAsync(n, e, r, t, o) { | |
| 2016 | + var a = regeneratorAsyncGen(n, e, r, t, o); | |
| 2017 | + return a.next().then(function (n) { | |
| 2018 | + return n.done ? n.value : a.next(); | |
| 2019 | + }); | |
| 2020 | +} | |
| 2021 | +module.exports = _regeneratorAsync, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 2022 | + | |
| 2023 | +/***/ }), | |
| 2024 | + | |
| 2025 | +/***/ "../node_modules/@babel/runtime/helpers/regeneratorAsyncGen.js": | |
| 2026 | +/*!*********************************************************************!*\ | |
| 2027 | + !*** ../node_modules/@babel/runtime/helpers/regeneratorAsyncGen.js ***! | |
| 2028 | + \*********************************************************************/ | |
| 2029 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 2030 | + | |
| 2031 | +var regenerator = __webpack_require__(/*! ./regenerator.js */ "../node_modules/@babel/runtime/helpers/regenerator.js"); | |
| 2032 | +var regeneratorAsyncIterator = __webpack_require__(/*! ./regeneratorAsyncIterator.js */ "../node_modules/@babel/runtime/helpers/regeneratorAsyncIterator.js"); | |
| 2033 | +function _regeneratorAsyncGen(r, e, t, o, n) { | |
| 2034 | + return new regeneratorAsyncIterator(regenerator().w(r, e, t, o), n || Promise); | |
| 2035 | +} | |
| 2036 | +module.exports = _regeneratorAsyncGen, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 2037 | + | |
| 2038 | +/***/ }), | |
| 2039 | + | |
| 2040 | +/***/ "../node_modules/@babel/runtime/helpers/regeneratorAsyncIterator.js": | |
| 2041 | +/*!**************************************************************************!*\ | |
| 2042 | + !*** ../node_modules/@babel/runtime/helpers/regeneratorAsyncIterator.js ***! | |
| 2043 | + \**************************************************************************/ | |
| 2044 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 2045 | + | |
| 2046 | +var OverloadYield = __webpack_require__(/*! ./OverloadYield.js */ "../node_modules/@babel/runtime/helpers/OverloadYield.js"); | |
| 2047 | +var regeneratorDefine = __webpack_require__(/*! ./regeneratorDefine.js */ "../node_modules/@babel/runtime/helpers/regeneratorDefine.js"); | |
| 2048 | +function AsyncIterator(t, e) { | |
| 2049 | + function n(r, o, i, f) { | |
| 2050 | + try { | |
| 2051 | + var c = t[r](o), | |
| 2052 | + u = c.value; | |
| 2053 | + return u instanceof OverloadYield ? e.resolve(u.v).then(function (t) { | |
| 2054 | + n("next", t, i, f); | |
| 2055 | + }, function (t) { | |
| 2056 | + n("throw", t, i, f); | |
| 2057 | + }) : e.resolve(u).then(function (t) { | |
| 2058 | + c.value = t, i(c); | |
| 2059 | + }, function (t) { | |
| 2060 | + return n("throw", t, i, f); | |
| 2061 | + }); | |
| 2062 | + } catch (t) { | |
| 2063 | + f(t); | |
| 2064 | + } | |
| 2065 | + } | |
| 2066 | + var r; | |
| 2067 | + this.next || (regeneratorDefine(AsyncIterator.prototype), regeneratorDefine(AsyncIterator.prototype, "function" == typeof Symbol && Symbol.asyncIterator || "@asyncIterator", function () { | |
| 2068 | + return this; | |
| 2069 | + })), regeneratorDefine(this, "_invoke", function (t, o, i) { | |
| 2070 | + function f() { | |
| 2071 | + return new e(function (e, r) { | |
| 2072 | + n(t, i, e, r); | |
| 2073 | + }); | |
| 2074 | + } | |
| 2075 | + return r = r ? r.then(f, f) : f(); | |
| 2076 | + }, !0); | |
| 2077 | +} | |
| 2078 | +module.exports = AsyncIterator, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 2079 | + | |
| 2080 | +/***/ }), | |
| 2081 | + | |
| 2082 | +/***/ "../node_modules/@babel/runtime/helpers/regeneratorDefine.js": | |
| 2083 | +/*!*******************************************************************!*\ | |
| 2084 | + !*** ../node_modules/@babel/runtime/helpers/regeneratorDefine.js ***! | |
| 2085 | + \*******************************************************************/ | |
| 2086 | +/***/ ((module) => { | |
| 2087 | + | |
| 2088 | +function _regeneratorDefine(e, r, n, t) { | |
| 2089 | + var i = Object.defineProperty; | |
| 2090 | + try { | |
| 2091 | + i({}, "", {}); | |
| 2092 | + } catch (e) { | |
| 2093 | + i = 0; | |
| 2094 | + } | |
| 2095 | + module.exports = _regeneratorDefine = function regeneratorDefine(e, r, n, t) { | |
| 2096 | + if (r) i ? i(e, r, { | |
| 2097 | + value: n, | |
| 2098 | + enumerable: !t, | |
| 2099 | + configurable: !t, | |
| 2100 | + writable: !t | |
| 2101 | + }) : e[r] = n;else { | |
| 2102 | + var o = function o(r, n) { | |
| 2103 | + _regeneratorDefine(e, r, function (e) { | |
| 2104 | + return this._invoke(r, n, e); | |
| 2105 | + }); | |
| 2106 | + }; | |
| 2107 | + o("next", 0), o("throw", 1), o("return", 2); | |
| 2108 | + } | |
| 2109 | + }, module.exports.__esModule = true, module.exports["default"] = module.exports, _regeneratorDefine(e, r, n, t); | |
| 2110 | +} | |
| 2111 | +module.exports = _regeneratorDefine, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 2112 | + | |
| 2113 | +/***/ }), | |
| 2114 | + | |
| 2115 | +/***/ "../node_modules/@babel/runtime/helpers/regeneratorKeys.js": | |
| 2116 | +/*!*****************************************************************!*\ | |
| 2117 | + !*** ../node_modules/@babel/runtime/helpers/regeneratorKeys.js ***! | |
| 2118 | + \*****************************************************************/ | |
| 2119 | +/***/ ((module) => { | |
| 2120 | + | |
| 2121 | +function _regeneratorKeys(e) { | |
| 2122 | + var n = Object(e), | |
| 2123 | + r = []; | |
| 2124 | + for (var t in n) r.unshift(t); | |
| 2125 | + return function e() { | |
| 2126 | + for (; r.length;) if ((t = r.pop()) in n) return e.value = t, e.done = !1, e; | |
| 2127 | + return e.done = !0, e; | |
| 2128 | + }; | |
| 2129 | +} | |
| 2130 | +module.exports = _regeneratorKeys, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 2131 | + | |
| 2132 | +/***/ }), | |
| 2133 | + | |
| 2134 | +/***/ "../node_modules/@babel/runtime/helpers/regeneratorRuntime.js": | |
| 2135 | +/*!********************************************************************!*\ | |
| 2136 | + !*** ../node_modules/@babel/runtime/helpers/regeneratorRuntime.js ***! | |
| 2137 | + \********************************************************************/ | |
| 2138 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 2139 | + | |
| 2140 | +var OverloadYield = __webpack_require__(/*! ./OverloadYield.js */ "../node_modules/@babel/runtime/helpers/OverloadYield.js"); | |
| 2141 | +var regenerator = __webpack_require__(/*! ./regenerator.js */ "../node_modules/@babel/runtime/helpers/regenerator.js"); | |
| 2142 | +var regeneratorAsync = __webpack_require__(/*! ./regeneratorAsync.js */ "../node_modules/@babel/runtime/helpers/regeneratorAsync.js"); | |
| 2143 | +var regeneratorAsyncGen = __webpack_require__(/*! ./regeneratorAsyncGen.js */ "../node_modules/@babel/runtime/helpers/regeneratorAsyncGen.js"); | |
| 2144 | +var regeneratorAsyncIterator = __webpack_require__(/*! ./regeneratorAsyncIterator.js */ "../node_modules/@babel/runtime/helpers/regeneratorAsyncIterator.js"); | |
| 2145 | +var regeneratorKeys = __webpack_require__(/*! ./regeneratorKeys.js */ "../node_modules/@babel/runtime/helpers/regeneratorKeys.js"); | |
| 2146 | +var regeneratorValues = __webpack_require__(/*! ./regeneratorValues.js */ "../node_modules/@babel/runtime/helpers/regeneratorValues.js"); | |
| 2147 | +function _regeneratorRuntime() { | |
| 2148 | + "use strict"; | |
| 2149 | + | |
| 2150 | + var r = regenerator(), | |
| 2151 | + e = r.m(_regeneratorRuntime), | |
| 2152 | + t = (Object.getPrototypeOf ? Object.getPrototypeOf(e) : e.__proto__).constructor; | |
| 2153 | + function n(r) { | |
| 2154 | + var e = "function" == typeof r && r.constructor; | |
| 2155 | + return !!e && (e === t || "GeneratorFunction" === (e.displayName || e.name)); | |
| 2156 | + } | |
| 2157 | + var o = { | |
| 2158 | + "throw": 1, | |
| 2159 | + "return": 2, | |
| 2160 | + "break": 3, | |
| 2161 | + "continue": 3 | |
| 2162 | + }; | |
| 2163 | + function a(r) { | |
| 2164 | + var e, t; | |
| 2165 | + return function (n) { | |
| 2166 | + e || (e = { | |
| 2167 | + stop: function stop() { | |
| 2168 | + return t(n.a, 2); | |
| 2169 | + }, | |
| 2170 | + "catch": function _catch() { | |
| 2171 | + return n.v; | |
| 2172 | + }, | |
| 2173 | + abrupt: function abrupt(r, e) { | |
| 2174 | + return t(n.a, o[r], e); | |
| 2175 | + }, | |
| 2176 | + delegateYield: function delegateYield(r, o, a) { | |
| 2177 | + return e.resultName = o, t(n.d, regeneratorValues(r), a); | |
| 2178 | + }, | |
| 2179 | + finish: function finish(r) { | |
| 2180 | + return t(n.f, r); | |
| 2181 | + } | |
| 2182 | + }, t = function t(r, _t, o) { | |
| 2183 | + n.p = e.prev, n.n = e.next; | |
| 2184 | + try { | |
| 2185 | + return r(_t, o); | |
| 2186 | + } finally { | |
| 2187 | + e.next = n.n; | |
| 2188 | + } | |
| 2189 | + }), e.resultName && (e[e.resultName] = n.v, e.resultName = void 0), e.sent = n.v, e.next = n.n; | |
| 2190 | + try { | |
| 2191 | + return r.call(this, e); | |
| 2192 | + } finally { | |
| 2193 | + n.p = e.prev, n.n = e.next; | |
| 2194 | + } | |
| 2195 | + }; | |
| 2196 | + } | |
| 2197 | + return (module.exports = _regeneratorRuntime = function _regeneratorRuntime() { | |
| 2198 | + return { | |
| 2199 | + wrap: function wrap(e, t, n, o) { | |
| 2200 | + return r.w(a(e), t, n, o && o.reverse()); | |
| 2201 | + }, | |
| 2202 | + isGeneratorFunction: n, | |
| 2203 | + mark: r.m, | |
| 2204 | + awrap: function awrap(r, e) { | |
| 2205 | + return new OverloadYield(r, e); | |
| 2206 | + }, | |
| 2207 | + AsyncIterator: regeneratorAsyncIterator, | |
| 2208 | + async: function async(r, e, t, o, u) { | |
| 2209 | + return (n(e) ? regeneratorAsyncGen : regeneratorAsync)(a(r), e, t, o, u); | |
| 2210 | + }, | |
| 2211 | + keys: regeneratorKeys, | |
| 2212 | + values: regeneratorValues | |
| 2213 | + }; | |
| 2214 | + }, module.exports.__esModule = true, module.exports["default"] = module.exports)(); | |
| 2215 | +} | |
| 2216 | +module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 2217 | + | |
| 2218 | +/***/ }), | |
| 2219 | + | |
| 2220 | +/***/ "../node_modules/@babel/runtime/helpers/regeneratorValues.js": | |
| 2221 | +/*!*******************************************************************!*\ | |
| 2222 | + !*** ../node_modules/@babel/runtime/helpers/regeneratorValues.js ***! | |
| 2223 | + \*******************************************************************/ | |
| 2224 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 2225 | + | |
| 2226 | +var _typeof = (__webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/typeof.js")["default"]); | |
| 2227 | +function _regeneratorValues(e) { | |
| 2228 | + if (null != e) { | |
| 2229 | + var t = e["function" == typeof Symbol && Symbol.iterator || "@@iterator"], | |
| 2230 | + r = 0; | |
| 2231 | + if (t) return t.call(e); | |
| 2232 | + if ("function" == typeof e.next) return e; | |
| 2233 | + if (!isNaN(e.length)) return { | |
| 2234 | + next: function next() { | |
| 2235 | + return e && r >= e.length && (e = void 0), { | |
| 2236 | + value: e && e[r++], | |
| 2237 | + done: !e | |
| 2238 | + }; | |
| 2239 | + } | |
| 2240 | + }; | |
| 2241 | + } | |
| 2242 | + throw new TypeError(_typeof(e) + " is not iterable"); | |
| 2243 | +} | |
| 2244 | +module.exports = _regeneratorValues, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 2245 | + | |
| 2246 | +/***/ }), | |
| 2247 | + | |
| 2248 | +/***/ "../node_modules/@babel/runtime/helpers/setPrototypeOf.js": | |
| 2249 | +/*!****************************************************************!*\ | |
| 2250 | + !*** ../node_modules/@babel/runtime/helpers/setPrototypeOf.js ***! | |
| 2251 | + \****************************************************************/ | |
| 2252 | +/***/ ((module) => { | |
| 2253 | + | |
| 2254 | +function _setPrototypeOf(t, e) { | |
| 2255 | + return module.exports = _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { | |
| 2256 | + return t.__proto__ = e, t; | |
| 2257 | + }, module.exports.__esModule = true, module.exports["default"] = module.exports, _setPrototypeOf(t, e); | |
| 2258 | +} | |
| 2259 | +module.exports = _setPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 2260 | + | |
| 2261 | +/***/ }), | |
| 2262 | + | |
| 2263 | +/***/ "../node_modules/@babel/runtime/helpers/slicedToArray.js": | |
| 2264 | +/*!***************************************************************!*\ | |
| 2265 | + !*** ../node_modules/@babel/runtime/helpers/slicedToArray.js ***! | |
| 2266 | + \***************************************************************/ | |
| 2267 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 2268 | + | |
| 2269 | +var arrayWithHoles = __webpack_require__(/*! ./arrayWithHoles.js */ "../node_modules/@babel/runtime/helpers/arrayWithHoles.js"); | |
| 2270 | +var iterableToArrayLimit = __webpack_require__(/*! ./iterableToArrayLimit.js */ "../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js"); | |
| 2271 | +var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ "../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js"); | |
| 2272 | +var nonIterableRest = __webpack_require__(/*! ./nonIterableRest.js */ "../node_modules/@babel/runtime/helpers/nonIterableRest.js"); | |
| 2273 | +function _slicedToArray(r, e) { | |
| 2274 | + return arrayWithHoles(r) || iterableToArrayLimit(r, e) || unsupportedIterableToArray(r, e) || nonIterableRest(); | |
| 2275 | +} | |
| 2276 | +module.exports = _slicedToArray, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 2277 | + | |
| 2278 | +/***/ }), | |
| 2279 | + | |
| 2280 | +/***/ "../node_modules/@babel/runtime/helpers/toConsumableArray.js": | |
| 2281 | +/*!*******************************************************************!*\ | |
| 2282 | + !*** ../node_modules/@babel/runtime/helpers/toConsumableArray.js ***! | |
| 2283 | + \*******************************************************************/ | |
| 2284 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 2285 | + | |
| 2286 | +var arrayWithoutHoles = __webpack_require__(/*! ./arrayWithoutHoles.js */ "../node_modules/@babel/runtime/helpers/arrayWithoutHoles.js"); | |
| 2287 | +var iterableToArray = __webpack_require__(/*! ./iterableToArray.js */ "../node_modules/@babel/runtime/helpers/iterableToArray.js"); | |
| 2288 | +var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ "../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js"); | |
| 2289 | +var nonIterableSpread = __webpack_require__(/*! ./nonIterableSpread.js */ "../node_modules/@babel/runtime/helpers/nonIterableSpread.js"); | |
| 2290 | +function _toConsumableArray(r) { | |
| 2291 | + return arrayWithoutHoles(r) || iterableToArray(r) || unsupportedIterableToArray(r) || nonIterableSpread(); | |
| 2292 | +} | |
| 2293 | +module.exports = _toConsumableArray, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 2294 | + | |
| 2295 | +/***/ }), | |
| 2296 | + | |
| 2297 | +/***/ "../node_modules/@babel/runtime/helpers/toPrimitive.js": | |
| 2298 | +/*!*************************************************************!*\ | |
| 2299 | + !*** ../node_modules/@babel/runtime/helpers/toPrimitive.js ***! | |
| 2300 | + \*************************************************************/ | |
| 2301 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 2302 | + | |
| 2303 | +var _typeof = (__webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/typeof.js")["default"]); | |
| 2304 | +function toPrimitive(t, r) { | |
| 2305 | + if ("object" != _typeof(t) || !t) return t; | |
| 2306 | + var e = t[Symbol.toPrimitive]; | |
| 2307 | + if (void 0 !== e) { | |
| 2308 | + var i = e.call(t, r || "default"); | |
| 2309 | + if ("object" != _typeof(i)) return i; | |
| 2310 | + throw new TypeError("@@toPrimitive must return a primitive value."); | |
| 2311 | + } | |
| 2312 | + return ("string" === r ? String : Number)(t); | |
| 2313 | +} | |
| 2314 | +module.exports = toPrimitive, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 2315 | + | |
| 2316 | +/***/ }), | |
| 2317 | + | |
| 2318 | +/***/ "../node_modules/@babel/runtime/helpers/toPropertyKey.js": | |
| 2319 | +/*!***************************************************************!*\ | |
| 2320 | + !*** ../node_modules/@babel/runtime/helpers/toPropertyKey.js ***! | |
| 2321 | + \***************************************************************/ | |
| 2322 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 2323 | + | |
| 2324 | +var _typeof = (__webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/typeof.js")["default"]); | |
| 2325 | +var toPrimitive = __webpack_require__(/*! ./toPrimitive.js */ "../node_modules/@babel/runtime/helpers/toPrimitive.js"); | |
| 2326 | +function toPropertyKey(t) { | |
| 2327 | + var i = toPrimitive(t, "string"); | |
| 2328 | + return "symbol" == _typeof(i) ? i : i + ""; | |
| 2329 | +} | |
| 2330 | +module.exports = toPropertyKey, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 2331 | + | |
| 2332 | +/***/ }), | |
| 2333 | + | |
| 2334 | +/***/ "../node_modules/@babel/runtime/helpers/typeof.js": | |
| 2335 | +/*!********************************************************!*\ | |
| 2336 | + !*** ../node_modules/@babel/runtime/helpers/typeof.js ***! | |
| 2337 | + \********************************************************/ | |
| 2338 | +/***/ ((module) => { | |
| 2339 | + | |
| 2340 | +function _typeof(o) { | |
| 2341 | + "@babel/helpers - typeof"; | |
| 2342 | + | |
| 2343 | + return module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { | |
| 2344 | + return typeof o; | |
| 2345 | + } : function (o) { | |
| 2346 | + return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; | |
| 2347 | + }, module.exports.__esModule = true, module.exports["default"] = module.exports, _typeof(o); | |
| 2348 | +} | |
| 2349 | +module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 2350 | + | |
| 2351 | +/***/ }), | |
| 2352 | + | |
| 2353 | +/***/ "../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js": | |
| 2354 | +/*!****************************************************************************!*\ | |
| 2355 | + !*** ../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js ***! | |
| 2356 | + \****************************************************************************/ | |
| 2357 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 2358 | + | |
| 2359 | +var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ "../node_modules/@babel/runtime/helpers/arrayLikeToArray.js"); | |
| 2360 | +function _unsupportedIterableToArray(r, a) { | |
| 2361 | + if (r) { | |
| 2362 | + if ("string" == typeof r) return arrayLikeToArray(r, a); | |
| 2363 | + var t = {}.toString.call(r).slice(8, -1); | |
| 2364 | + 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; | |
| 2365 | + } | |
| 2366 | +} | |
| 2367 | +module.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 2368 | + | |
| 2369 | +/***/ }), | |
| 2370 | + | |
| 2371 | +/***/ "../node_modules/@babel/runtime/regenerator/index.js": | |
| 2372 | +/*!***********************************************************!*\ | |
| 2373 | + !*** ../node_modules/@babel/runtime/regenerator/index.js ***! | |
| 2374 | + \***********************************************************/ | |
| 2375 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 2376 | + | |
| 2377 | +// TODO(Babel 8): Remove this file. | |
| 2378 | + | |
| 2379 | +var runtime = __webpack_require__(/*! ../helpers/regeneratorRuntime */ "../node_modules/@babel/runtime/helpers/regeneratorRuntime.js")(); | |
| 2380 | +module.exports = runtime; | |
| 2381 | + | |
| 2382 | +// Copied from https://github.com/facebook/regenerator/blob/main/packages/runtime/runtime.js#L736= | |
| 2383 | +try { | |
| 2384 | + regeneratorRuntime = runtime; | |
| 2385 | +} catch (accidentalStrictMode) { | |
| 2386 | + if (typeof globalThis === "object") { | |
| 2387 | + globalThis.regeneratorRuntime = runtime; | |
| 2388 | + } else { | |
| 2389 | + Function("r", "regeneratorRuntime = r")(runtime); | |
| 2390 | + } | |
| 2391 | +} | |
| 2392 | + | |
| 2393 | + | |
| 2394 | +/***/ }), | |
| 2395 | + | |
| 2396 | +/***/ "../node_modules/object-assign/index.js": | |
| 2397 | +/*!**********************************************!*\ | |
| 2398 | + !*** ../node_modules/object-assign/index.js ***! | |
| 2399 | + \**********************************************/ | |
| 2400 | +/***/ ((module) => { | |
| 2401 | + | |
| 2402 | +"use strict"; | |
| 2403 | +/* | |
| 2404 | +object-assign | |
| 2405 | +(c) Sindre Sorhus | |
| 2406 | +@license MIT | |
| 2407 | +*/ | |
| 2408 | + | |
| 2409 | + | |
| 2410 | +/* eslint-disable no-unused-vars */ | |
| 2411 | +var getOwnPropertySymbols = Object.getOwnPropertySymbols; | |
| 2412 | +var hasOwnProperty = Object.prototype.hasOwnProperty; | |
| 2413 | +var propIsEnumerable = Object.prototype.propertyIsEnumerable; | |
| 2414 | + | |
| 2415 | +function toObject(val) { | |
| 2416 | + if (val === null || val === undefined) { | |
| 2417 | + throw new TypeError('Object.assign cannot be called with null or undefined'); | |
| 2418 | + } | |
| 2419 | + | |
| 2420 | + return Object(val); | |
| 2421 | +} | |
| 2422 | + | |
| 2423 | +function shouldUseNative() { | |
| 2424 | + try { | |
| 2425 | + if (!Object.assign) { | |
| 2426 | + return false; | |
| 22 | 2427 | } |
| 23 | - if (!no_symbols) { | |
| 24 | - __defProp(target, Symbol.toStringTag, { value: "Module" }); | |
| 2428 | + | |
| 2429 | + // Detect buggy property enumeration order in older V8 versions. | |
| 2430 | + | |
| 2431 | + // https://bugs.chromium.org/p/v8/issues/detail?id=4118 | |
| 2432 | + var test1 = new String('abc'); // eslint-disable-line no-new-wrappers | |
| 2433 | + test1[5] = 'de'; | |
| 2434 | + if (Object.getOwnPropertyNames(test1)[0] === '5') { | |
| 2435 | + return false; | |
| 25 | 2436 | } |
| 26 | - return target; | |
| 27 | - }; | |
| 28 | - var __copyProps = (to, from, except, desc) => { | |
| 29 | - if (from && typeof from === "object" || typeof from === "function") { | |
| 30 | - for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) { | |
| 31 | - key = keys[i]; | |
| 32 | - if (!__hasOwnProp.call(to, key) && key !== except) { | |
| 33 | - __defProp(to, key, { | |
| 34 | - get: ((k) => from[k]).bind(null, key), | |
| 35 | - enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable | |
| 36 | - }); | |
| 37 | - } | |
| 38 | - } | |
| 2437 | + | |
| 2438 | + // https://bugs.chromium.org/p/v8/issues/detail?id=3056 | |
| 2439 | + var test2 = {}; | |
| 2440 | + for (var i = 0; i < 10; i++) { | |
| 2441 | + test2['_' + String.fromCharCode(i)] = i; | |
| 39 | 2442 | } |
| 40 | - return to; | |
| 41 | - }; | |
| 42 | - var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { | |
| 43 | - value: mod, | |
| 44 | - enumerable: true | |
| 45 | - }) : target, mod)); | |
| 2443 | + var order2 = Object.getOwnPropertyNames(test2).map(function (n) { | |
| 2444 | + return test2[n]; | |
| 2445 | + }); | |
| 2446 | + if (order2.join('') !== '0123456789') { | |
| 2447 | + return false; | |
| 2448 | + } | |
| 46 | 2449 | |
| 47 | -//#endregion | |
| 48 | -_elementor_editor_app_bar = __toESM(_elementor_editor_app_bar); | |
| 49 | -react = __toESM(react); | |
| 50 | -_elementor_icons_RocketIcon = __toESM(_elementor_icons_RocketIcon); | |
| 2450 | + // https://bugs.chromium.org/p/v8/issues/detail?id=3056 | |
| 2451 | + var test3 = {}; | |
| 2452 | + 'abcdefghijklmnopqrst'.split('').forEach(function (letter) { | |
| 2453 | + test3[letter] = letter; | |
| 2454 | + }); | |
| 2455 | + if (Object.keys(Object.assign({}, test3)).join('') !== | |
| 2456 | + 'abcdefghijklmnopqrst') { | |
| 2457 | + return false; | |
| 2458 | + } | |
| 51 | 2459 | |
| 52 | -//#region node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js | |
| 53 | - function asyncGeneratorStep(n, t, e, r, o, a, c) { | |
| 54 | - try { | |
| 55 | - var i = n[a](c); | |
| 56 | - var u = i.value; | |
| 57 | - } catch (n) { | |
| 58 | - e(n); | |
| 59 | - return; | |
| 60 | - } | |
| 61 | - i.done ? t(u) : Promise.resolve(u).then(r, o); | |
| 2460 | + return true; | |
| 2461 | + } catch (err) { | |
| 2462 | + // We don't expect any of the above to throw, but better to be safe. | |
| 2463 | + return false; | |
| 62 | 2464 | } |
| 63 | - function _asyncToGenerator(n) { | |
| 64 | - return function() { | |
| 65 | - var t = this; | |
| 66 | - var e = arguments; | |
| 67 | - return new Promise(function(r, o) { | |
| 68 | - var a = n.apply(t, e); | |
| 69 | - function _next(n) { | |
| 70 | - asyncGeneratorStep(a, r, o, _next, _throw, "next", n); | |
| 71 | - } | |
| 72 | - function _throw(n) { | |
| 73 | - asyncGeneratorStep(a, r, o, _next, _throw, "throw", n); | |
| 74 | - } | |
| 75 | - _next(void 0); | |
| 76 | - }); | |
| 77 | - }; | |
| 78 | - } | |
| 2465 | +} | |
| 79 | 2466 | |
| 80 | -//#endregion | |
| 81 | -//#region node_modules/@babel/runtime/helpers/OverloadYield.js | |
| 82 | - var require_OverloadYield = /* @__PURE__ */ __commonJSMin(((exports, module) => { | |
| 83 | - function _OverloadYield(e, d) { | |
| 84 | - this.v = e, this.k = d; | |
| 85 | - } | |
| 86 | - module.exports = _OverloadYield, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 87 | - })); | |
| 2467 | +module.exports = shouldUseNative() ? Object.assign : function (target, source) { | |
| 2468 | + var from; | |
| 2469 | + var to = toObject(target); | |
| 2470 | + var symbols; | |
| 88 | 2471 | |
| 89 | -//#endregion | |
| 90 | -//#region node_modules/@babel/runtime/helpers/regeneratorDefine.js | |
| 91 | - var require_regeneratorDefine = /* @__PURE__ */ __commonJSMin(((exports, module) => { | |
| 92 | - function _regeneratorDefine(e, r, n, t) { | |
| 93 | - var i = Object.defineProperty; | |
| 94 | - try { | |
| 95 | - i({}, "", {}); | |
| 96 | - } catch (e) { | |
| 97 | - i = 0; | |
| 98 | - } | |
| 99 | - module.exports = _regeneratorDefine = function regeneratorDefine(e, r, n, t) { | |
| 100 | - function o(r, n) { | |
| 101 | - _regeneratorDefine(e, r, function(e) { | |
| 102 | - return this._invoke(r, n, e); | |
| 103 | - }); | |
| 104 | - } | |
| 105 | - r ? i ? i(e, r, { | |
| 106 | - value: n, | |
| 107 | - enumerable: !t, | |
| 108 | - configurable: !t, | |
| 109 | - writable: !t | |
| 110 | - }) : e[r] = n : (o("next", 0), o("throw", 1), o("return", 2)); | |
| 111 | - }, module.exports.__esModule = true, module.exports["default"] = module.exports, _regeneratorDefine(e, r, n, t); | |
| 112 | - } | |
| 113 | - module.exports = _regeneratorDefine, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 114 | - })); | |
| 2472 | + for (var s = 1; s < arguments.length; s++) { | |
| 2473 | + from = Object(arguments[s]); | |
| 115 | 2474 | |
| 116 | -//#endregion | |
| 117 | -//#region node_modules/@babel/runtime/helpers/regenerator.js | |
| 118 | - var require_regenerator$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => { | |
| 119 | - var regeneratorDefine = require_regeneratorDefine(); | |
| 120 | - function _regenerator() { | |
| 121 | - /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ | |
| 122 | - var e; | |
| 123 | - var t; | |
| 124 | - var r = "function" == typeof Symbol ? Symbol : {}; | |
| 125 | - var n = r.iterator || "@@iterator"; | |
| 126 | - var o = r.toStringTag || "@@toStringTag"; | |
| 127 | - function i(r, n, o, i) { | |
| 128 | - var c = n && n.prototype instanceof Generator ? n : Generator; | |
| 129 | - var u = Object.create(c.prototype); | |
| 130 | - return regeneratorDefine(u, "_invoke", function(r, n, o) { | |
| 131 | - var i; | |
| 132 | - var c; | |
| 133 | - var u; | |
| 134 | - var f = 0; | |
| 135 | - var p = o || []; | |
| 136 | - var y = !1; | |
| 137 | - var G = { | |
| 138 | - p: 0, | |
| 139 | - n: 0, | |
| 140 | - v: e, | |
| 141 | - a: d, | |
| 142 | - f: d.bind(e, 4), | |
| 143 | - d: function d(t, r) { | |
| 144 | - return i = t, c = 0, u = e, G.n = r, a; | |
| 145 | - } | |
| 146 | - }; | |
| 147 | - function d(r, n) { | |
| 148 | - for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) { | |
| 149 | - var o; | |
| 150 | - var i = p[t]; | |
| 151 | - var d = G.p; | |
| 152 | - var l = i[2]; | |
| 153 | - 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)); | |
| 154 | - } | |
| 155 | - if (o || r > 1) return a; | |
| 156 | - throw y = !0, n; | |
| 157 | - } | |
| 158 | - return function(o, p, l) { | |
| 159 | - if (f > 1) throw TypeError("Generator is already running"); | |
| 160 | - for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) { | |
| 161 | - i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u); | |
| 162 | - try { | |
| 163 | - if (f = 2, i) { | |
| 164 | - if (c || (o = "next"), t = i[o]) { | |
| 165 | - if (!(t = t.call(i, u))) throw TypeError("iterator result is not an object"); | |
| 166 | - if (!t.done) return t; | |
| 167 | - u = t.value, c < 2 && (c = 0); | |
| 168 | - } else 1 === c && (t = i["return"]) && t.call(i), c < 2 && (u = TypeError("The iterator does not provide a '" + o + "' method"), c = 1); | |
| 169 | - i = e; | |
| 170 | - } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break; | |
| 171 | - } catch (t) { | |
| 172 | - i = e, c = 1, u = t; | |
| 173 | - } finally { | |
| 174 | - f = 1; | |
| 175 | - } | |
| 176 | - } | |
| 177 | - return { | |
| 178 | - value: t, | |
| 179 | - done: y | |
| 180 | - }; | |
| 181 | - }; | |
| 182 | - }(r, o, i), !0), u; | |
| 2475 | + for (var key in from) { | |
| 2476 | + if (hasOwnProperty.call(from, key)) { | |
| 2477 | + to[key] = from[key]; | |
| 183 | 2478 | } |
| 184 | - var a = {}; | |
| 185 | - function Generator() {} | |
| 186 | - function GeneratorFunction() {} | |
| 187 | - function GeneratorFunctionPrototype() {} | |
| 188 | - t = Object.getPrototypeOf; | |
| 189 | - var c = [][n] ? t(t([][n]())) : (regeneratorDefine(t = {}, n, function() { | |
| 190 | - return this; | |
| 191 | - }), t); | |
| 192 | - var u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c); | |
| 193 | - function f(e) { | |
| 194 | - return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, regeneratorDefine(e, o, "GeneratorFunction")), e.prototype = Object.create(u), e; | |
| 195 | - } | |
| 196 | - 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() { | |
| 197 | - return this; | |
| 198 | - }), regeneratorDefine(u, "toString", function() { | |
| 199 | - return "[object Generator]"; | |
| 200 | - }), (module.exports = _regenerator = function _regenerator() { | |
| 201 | - return { | |
| 202 | - w: i, | |
| 203 | - m: f | |
| 204 | - }; | |
| 205 | - }, module.exports.__esModule = true, module.exports["default"] = module.exports)(); | |
| 206 | 2479 | } |
| 207 | - module.exports = _regenerator, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 208 | - })); | |
| 209 | 2480 | |
| 210 | -//#endregion | |
| 211 | -//#region node_modules/@babel/runtime/helpers/regeneratorAsyncIterator.js | |
| 212 | - var require_regeneratorAsyncIterator = /* @__PURE__ */ __commonJSMin(((exports, module) => { | |
| 213 | - var OverloadYield = require_OverloadYield(); | |
| 214 | - var regeneratorDefine = require_regeneratorDefine(); | |
| 215 | - function AsyncIterator(t, e) { | |
| 216 | - function n(r, o, i, f) { | |
| 217 | - try { | |
| 218 | - var c = t[r](o); | |
| 219 | - var u = c.value; | |
| 220 | - return u instanceof OverloadYield ? e.resolve(u.v).then(function(t) { | |
| 221 | - n("next", t, i, f); | |
| 222 | - }, function(t) { | |
| 223 | - n("throw", t, i, f); | |
| 224 | - }) : e.resolve(u).then(function(t) { | |
| 225 | - c.value = t, i(c); | |
| 226 | - }, function(t) { | |
| 227 | - return n("throw", t, i, f); | |
| 228 | - }); | |
| 229 | - } catch (t) { | |
| 230 | - f(t); | |
| 2481 | + if (getOwnPropertySymbols) { | |
| 2482 | + symbols = getOwnPropertySymbols(from); | |
| 2483 | + for (var i = 0; i < symbols.length; i++) { | |
| 2484 | + if (propIsEnumerable.call(from, symbols[i])) { | |
| 2485 | + to[symbols[i]] = from[symbols[i]]; | |
| 231 | 2486 | } |
| 232 | 2487 | } |
| 233 | - var r; | |
| 234 | - this.next || (regeneratorDefine(AsyncIterator.prototype), regeneratorDefine(AsyncIterator.prototype, "function" == typeof Symbol && Symbol.asyncIterator || "@asyncIterator", function() { | |
| 235 | - return this; | |
| 236 | - })), regeneratorDefine(this, "_invoke", function(t, o, i) { | |
| 237 | - function f() { | |
| 238 | - return new e(function(e, r) { | |
| 239 | - n(t, i, e, r); | |
| 240 | - }); | |
| 241 | - } | |
| 242 | - return r = r ? r.then(f, f) : f(); | |
| 243 | - }, !0); | |
| 244 | 2488 | } |
| 245 | - module.exports = AsyncIterator, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 246 | - })); | |
| 2489 | + } | |
| 247 | 2490 | |
| 248 | -//#endregion | |
| 249 | -//#region node_modules/@babel/runtime/helpers/regeneratorAsyncGen.js | |
| 250 | - var require_regeneratorAsyncGen = /* @__PURE__ */ __commonJSMin(((exports, module) => { | |
| 251 | - var regenerator = require_regenerator$1(); | |
| 252 | - var regeneratorAsyncIterator = require_regeneratorAsyncIterator(); | |
| 253 | - function _regeneratorAsyncGen(r, e, t, o, n) { | |
| 254 | - return new regeneratorAsyncIterator(regenerator().w(r, e, t, o), n || Promise); | |
| 255 | - } | |
| 256 | - module.exports = _regeneratorAsyncGen, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 257 | - })); | |
| 2491 | + return to; | |
| 2492 | +}; | |
| 258 | 2493 | |
| 259 | -//#endregion | |
| 260 | -//#region node_modules/@babel/runtime/helpers/regeneratorAsync.js | |
| 261 | - var require_regeneratorAsync = /* @__PURE__ */ __commonJSMin(((exports, module) => { | |
| 262 | - var regeneratorAsyncGen = require_regeneratorAsyncGen(); | |
| 263 | - function _regeneratorAsync(n, e, r, t, o) { | |
| 264 | - var a = regeneratorAsyncGen(n, e, r, t, o); | |
| 265 | - return a.next().then(function(n) { | |
| 266 | - return n.done ? n.value : a.next(); | |
| 267 | - }); | |
| 268 | - } | |
| 269 | - module.exports = _regeneratorAsync, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 270 | - })); | |
| 271 | 2494 | |
| 272 | -//#endregion | |
| 273 | -//#region node_modules/@babel/runtime/helpers/regeneratorKeys.js | |
| 274 | - var require_regeneratorKeys = /* @__PURE__ */ __commonJSMin(((exports, module) => { | |
| 275 | - function _regeneratorKeys(e) { | |
| 276 | - var n = Object(e); | |
| 277 | - var r = []; | |
| 278 | - for (var t in n) r.unshift(t); | |
| 279 | - return function e() { | |
| 280 | - for (; r.length;) if ((t = r.pop()) in n) return e.value = t, e.done = !1, e; | |
| 281 | - return e.done = !0, e; | |
| 282 | - }; | |
| 283 | - } | |
| 284 | - module.exports = _regeneratorKeys, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 285 | - })); | |
| 2495 | +/***/ }), | |
| 286 | 2496 | |
| 287 | -//#endregion | |
| 288 | -//#region node_modules/@babel/runtime/helpers/typeof.js | |
| 289 | - var require_typeof = /* @__PURE__ */ __commonJSMin(((exports, module) => { | |
| 290 | - function _typeof(o) { | |
| 291 | - "@babel/helpers - typeof"; | |
| 292 | - return module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) { | |
| 293 | - return typeof o; | |
| 294 | - } : function(o) { | |
| 295 | - return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; | |
| 296 | - }, module.exports.__esModule = true, module.exports["default"] = module.exports, _typeof(o); | |
| 297 | - } | |
| 298 | - module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 299 | - })); | |
| 2497 | +/***/ "../node_modules/prop-types/checkPropTypes.js": | |
| 2498 | +/*!****************************************************!*\ | |
| 2499 | + !*** ../node_modules/prop-types/checkPropTypes.js ***! | |
| 2500 | + \****************************************************/ | |
| 2501 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 300 | 2502 | |
| 301 | -//#endregion | |
| 302 | -//#region node_modules/@babel/runtime/helpers/regeneratorValues.js | |
| 303 | - var require_regeneratorValues = /* @__PURE__ */ __commonJSMin(((exports, module) => { | |
| 304 | - var _typeof = require_typeof()["default"]; | |
| 305 | - function _regeneratorValues(e) { | |
| 306 | - if (null != e) { | |
| 307 | - var t = e["function" == typeof Symbol && Symbol.iterator || "@@iterator"]; | |
| 308 | - var r = 0; | |
| 309 | - if (t) return t.call(e); | |
| 310 | - if ("function" == typeof e.next) return e; | |
| 311 | - if (!isNaN(e.length)) return { next: function next() { | |
| 312 | - return e && r >= e.length && (e = void 0), { | |
| 313 | - value: e && e[r++], | |
| 314 | - done: !e | |
| 315 | - }; | |
| 316 | - } }; | |
| 317 | - } | |
| 318 | - throw new TypeError(_typeof(e) + " is not iterable"); | |
| 319 | - } | |
| 320 | - module.exports = _regeneratorValues, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 321 | - })); | |
| 2503 | +"use strict"; | |
| 2504 | +/** | |
| 2505 | + * Copyright (c) 2013-present, Facebook, Inc. | |
| 2506 | + * | |
| 2507 | + * This source code is licensed under the MIT license found in the | |
| 2508 | + * LICENSE file in the root directory of this source tree. | |
| 2509 | + */ | |
| 322 | 2510 | |
| 323 | -//#endregion | |
| 324 | -//#region node_modules/@babel/runtime/helpers/regeneratorRuntime.js | |
| 325 | - var require_regeneratorRuntime = /* @__PURE__ */ __commonJSMin(((exports, module) => { | |
| 326 | - var OverloadYield = require_OverloadYield(); | |
| 327 | - var regenerator = require_regenerator$1(); | |
| 328 | - var regeneratorAsync = require_regeneratorAsync(); | |
| 329 | - var regeneratorAsyncGen = require_regeneratorAsyncGen(); | |
| 330 | - var regeneratorAsyncIterator = require_regeneratorAsyncIterator(); | |
| 331 | - var regeneratorKeys = require_regeneratorKeys(); | |
| 332 | - var regeneratorValues = require_regeneratorValues(); | |
| 333 | - function _regeneratorRuntime() { | |
| 334 | - "use strict"; | |
| 335 | - var r = regenerator(); | |
| 336 | - var e = r.m(_regeneratorRuntime); | |
| 337 | - var t = (Object.getPrototypeOf ? Object.getPrototypeOf(e) : e.__proto__).constructor; | |
| 338 | - function n(r) { | |
| 339 | - var e = "function" == typeof r && r.constructor; | |
| 340 | - return !!e && (e === t || "GeneratorFunction" === (e.displayName || e.name)); | |
| 341 | - } | |
| 342 | - var o = { | |
| 343 | - "throw": 1, | |
| 344 | - "return": 2, | |
| 345 | - "break": 3, | |
| 346 | - "continue": 3 | |
| 347 | - }; | |
| 348 | - function a(r) { | |
| 349 | - var e; | |
| 350 | - var t; | |
| 351 | - return function(n) { | |
| 352 | - e || (e = { | |
| 353 | - stop: function stop() { | |
| 354 | - return t(n.a, 2); | |
| 355 | - }, | |
| 356 | - "catch": function _catch() { | |
| 357 | - return n.v; | |
| 358 | - }, | |
| 359 | - abrupt: function abrupt(r, e) { | |
| 360 | - return t(n.a, o[r], e); | |
| 361 | - }, | |
| 362 | - delegateYield: function delegateYield(r, o, a) { | |
| 363 | - return e.resultName = o, t(n.d, regeneratorValues(r), a); | |
| 364 | - }, | |
| 365 | - finish: function finish(r) { | |
| 366 | - return t(n.f, r); | |
| 367 | - } | |
| 368 | - }, t = function t(r, _t, o) { | |
| 369 | - n.p = e.prev, n.n = e.next; | |
| 370 | - try { | |
| 371 | - return r(_t, o); | |
| 372 | - } finally { | |
| 373 | - e.next = n.n; | |
| 374 | - } | |
| 375 | - }), e.resultName && (e[e.resultName] = n.v, e.resultName = void 0), e.sent = n.v, e.next = n.n; | |
| 376 | - try { | |
| 377 | - return r.call(this, e); | |
| 378 | - } finally { | |
| 379 | - n.p = e.prev, n.n = e.next; | |
| 380 | - } | |
| 381 | - }; | |
| 382 | - } | |
| 383 | - return (module.exports = _regeneratorRuntime = function _regeneratorRuntime() { | |
| 384 | - return { | |
| 385 | - wrap: function wrap(e, t, n, o) { | |
| 386 | - return r.w(a(e), t, n, o && o.reverse()); | |
| 387 | - }, | |
| 388 | - isGeneratorFunction: n, | |
| 389 | - mark: r.m, | |
| 390 | - awrap: function awrap(r, e) { | |
| 391 | - return new OverloadYield(r, e); | |
| 392 | - }, | |
| 393 | - AsyncIterator: regeneratorAsyncIterator, | |
| 394 | - async: function async(r, e, t, o, u) { | |
| 395 | - return (n(e) ? regeneratorAsyncGen : regeneratorAsync)(a(r), e, t, o, u); | |
| 396 | - }, | |
| 397 | - keys: regeneratorKeys, | |
| 398 | - values: regeneratorValues | |
| 399 | - }; | |
| 400 | - }, module.exports.__esModule = true, module.exports["default"] = module.exports)(); | |
| 401 | - } | |
| 402 | - module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 403 | - })); | |
| 404 | 2511 | |
| 405 | -//#endregion | |
| 406 | -//#region node_modules/@babel/runtime/regenerator/index.js | |
| 407 | - var require_regenerator = /* @__PURE__ */ __commonJSMin(((exports, module) => { | |
| 408 | - var runtime = require_regeneratorRuntime()(); | |
| 409 | - module.exports = runtime; | |
| 410 | - try { | |
| 411 | - regeneratorRuntime = runtime; | |
| 412 | - } catch (accidentalStrictMode) { | |
| 413 | - if (typeof globalThis === "object") globalThis.regeneratorRuntime = runtime; | |
| 414 | - else Function("r", "regeneratorRuntime = r")(runtime); | |
| 415 | - } | |
| 416 | - })); | |
| 417 | 2512 | |
| 418 | -//#endregion | |
| 419 | -//#region node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js | |
| 420 | -var import_regenerator = /* @__PURE__ */ __toESM(require_regenerator()); | |
| 421 | - function _arrayWithHoles(r) { | |
| 422 | - if (Array.isArray(r)) return r; | |
| 423 | - } | |
| 2513 | +var printWarning = function() {}; | |
| 424 | 2514 | |
| 425 | -//#endregion | |
| 426 | -//#region node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js | |
| 427 | - function _iterableToArrayLimit(r, l) { | |
| 428 | - var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; | |
| 429 | - if (null != t) { | |
| 430 | - var e; | |
| 431 | - var n; | |
| 432 | - var i; | |
| 433 | - var u; | |
| 434 | - var a = []; | |
| 435 | - var f = !0; | |
| 436 | - var o = !1; | |
| 437 | - try { | |
| 438 | - if (i = (t = t.call(r)).next, 0 === l) { | |
| 439 | - if (Object(t) !== t) return; | |
| 440 | - f = !1; | |
| 441 | - } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); | |
| 442 | - } catch (r) { | |
| 443 | - o = !0, n = r; | |
| 444 | - } finally { | |
| 445 | - try { | |
| 446 | - if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; | |
| 447 | - } finally { | |
| 448 | - if (o) throw n; | |
| 449 | - } | |
| 450 | - } | |
| 451 | - return a; | |
| 452 | - } | |
| 453 | - } | |
| 2515 | +if (true) { | |
| 2516 | + var ReactPropTypesSecret = __webpack_require__(/*! ./lib/ReactPropTypesSecret */ "../node_modules/prop-types/lib/ReactPropTypesSecret.js"); | |
| 2517 | + var loggedTypeFailures = {}; | |
| 2518 | + var has = __webpack_require__(/*! ./lib/has */ "../node_modules/prop-types/lib/has.js"); | |
| 454 | 2519 | |
| 455 | -//#endregion | |
| 456 | -//#region node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js | |
| 457 | - function _arrayLikeToArray(r, a) { | |
| 458 | - (null == a || a > r.length) && (a = r.length); | |
| 459 | - for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; | |
| 460 | - return n; | |
| 461 | - } | |
| 2520 | + printWarning = function(text) { | |
| 2521 | + var message = 'Warning: ' + text; | |
| 2522 | + if (typeof console !== 'undefined') { | |
| 2523 | + console.error(message); | |
| 2524 | + } | |
| 2525 | + try { | |
| 2526 | + // --- Welcome to debugging React --- | |
| 2527 | + // This error was thrown as a convenience so that you can use this stack | |
| 2528 | + // to find the callsite that caused this warning to fire. | |
| 2529 | + throw new Error(message); | |
| 2530 | + } catch (x) { /**/ } | |
| 2531 | + }; | |
| 2532 | +} | |
| 462 | 2533 | |
| 463 | -//#endregion | |
| 464 | -//#region node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js | |
| 465 | - function _unsupportedIterableToArray(r, a) { | |
| 466 | - if (r) { | |
| 467 | - if ("string" == typeof r) return _arrayLikeToArray(r, a); | |
| 468 | - var t = {}.toString.call(r).slice(8, -1); | |
| 469 | - 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; | |
| 470 | - } | |
| 471 | - } | |
| 2534 | +/** | |
| 2535 | + * Assert that the values match with the type specs. | |
| 2536 | + * Error messages are memorized and will only be shown once. | |
| 2537 | + * | |
| 2538 | + * @param {object} typeSpecs Map of name to a ReactPropType | |
| 2539 | + * @param {object} values Runtime values that need to be type-checked | |
| 2540 | + * @param {string} location e.g. "prop", "context", "child context" | |
| 2541 | + * @param {string} componentName Name of the component for error messages. | |
| 2542 | + * @param {?Function} getStack Returns the component stack. | |
| 2543 | + * @private | |
| 2544 | + */ | |
| 2545 | +function checkPropTypes(typeSpecs, values, location, componentName, getStack) { | |
| 2546 | + if (true) { | |
| 2547 | + for (var typeSpecName in typeSpecs) { | |
| 2548 | + if (has(typeSpecs, typeSpecName)) { | |
| 2549 | + var error; | |
| 2550 | + // Prop type validation may throw. In case they do, we don't want to | |
| 2551 | + // fail the render phase where it didn't fail before. So we log it. | |
| 2552 | + // After these have been cleaned up, we'll let them throw. | |
| 2553 | + try { | |
| 2554 | + // This is intentionally an invariant that gets caught. It's the same | |
| 2555 | + // behavior as without this statement except with a better message. | |
| 2556 | + if (typeof typeSpecs[typeSpecName] !== 'function') { | |
| 2557 | + var err = Error( | |
| 2558 | + (componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' + | |
| 2559 | + 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' + | |
| 2560 | + 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.' | |
| 2561 | + ); | |
| 2562 | + err.name = 'Invariant Violation'; | |
| 2563 | + throw err; | |
| 2564 | + } | |
| 2565 | + error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret); | |
| 2566 | + } catch (ex) { | |
| 2567 | + error = ex; | |
| 2568 | + } | |
| 2569 | + if (error && !(error instanceof Error)) { | |
| 2570 | + printWarning( | |
| 2571 | + (componentName || 'React class') + ': type specification of ' + | |
| 2572 | + location + ' `' + typeSpecName + '` is invalid; the type checker ' + | |
| 2573 | + 'function must return `null` or an `Error` but returned a ' + typeof error + '. ' + | |
| 2574 | + 'You may have forgotten to pass an argument to the type checker ' + | |
| 2575 | + 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' + | |
| 2576 | + 'shape all require an argument).' | |
| 2577 | + ); | |
| 2578 | + } | |
| 2579 | + if (error instanceof Error && !(error.message in loggedTypeFailures)) { | |
| 2580 | + // Only monitor this failure once because there tends to be a lot of the | |
| 2581 | + // same error. | |
| 2582 | + loggedTypeFailures[error.message] = true; | |
| 472 | 2583 | |
| 473 | -//#endregion | |
| 474 | -//#region node_modules/@babel/runtime/helpers/esm/nonIterableRest.js | |
| 475 | - function _nonIterableRest() { | |
| 476 | - throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); | |
| 477 | - } | |
| 2584 | + var stack = getStack ? getStack() : ''; | |
| 478 | 2585 | |
| 479 | -//#endregion | |
| 480 | -//#region node_modules/@babel/runtime/helpers/esm/slicedToArray.js | |
| 481 | - function _slicedToArray(r, e) { | |
| 482 | - return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); | |
| 483 | - } | |
| 2586 | + printWarning( | |
| 2587 | + 'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '') | |
| 2588 | + ); | |
| 2589 | + } | |
| 2590 | + } | |
| 2591 | + } | |
| 2592 | + } | |
| 2593 | +} | |
| 484 | 2594 | |
| 485 | -//#endregion | |
| 486 | -//#region node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js | |
| 487 | -/** @license React v16.13.1 | |
| 488 | - * react-is.development.js | |
| 489 | - * | |
| 490 | - * Copyright (c) Facebook, Inc. and its affiliates. | |
| 491 | - * | |
| 492 | - * This source code is licensed under the MIT license found in the | |
| 493 | - * LICENSE file in the root directory of this source tree. | |
| 494 | - */ | |
| 495 | - var require_react_is_development = /* @__PURE__ */ __commonJSMin(((exports) => { | |
| 496 | - (function() { | |
| 497 | - "use strict"; | |
| 498 | - var hasSymbol = typeof Symbol === "function" && Symbol.for; | |
| 499 | - var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for("react.element") : 60103; | |
| 500 | - var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for("react.portal") : 60106; | |
| 501 | - var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for("react.fragment") : 60107; | |
| 502 | - var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for("react.strict_mode") : 60108; | |
| 503 | - var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for("react.profiler") : 60114; | |
| 504 | - var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for("react.provider") : 60109; | |
| 505 | - var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for("react.context") : 60110; | |
| 506 | - var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for("react.async_mode") : 60111; | |
| 507 | - var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for("react.concurrent_mode") : 60111; | |
| 508 | - var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for("react.forward_ref") : 60112; | |
| 509 | - var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for("react.suspense") : 60113; | |
| 510 | - var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for("react.suspense_list") : 60120; | |
| 511 | - var REACT_MEMO_TYPE = hasSymbol ? Symbol.for("react.memo") : 60115; | |
| 512 | - var REACT_LAZY_TYPE = hasSymbol ? Symbol.for("react.lazy") : 60116; | |
| 513 | - var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for("react.block") : 60121; | |
| 514 | - var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for("react.fundamental") : 60117; | |
| 515 | - var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for("react.responder") : 60118; | |
| 516 | - var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for("react.scope") : 60119; | |
| 517 | - function isValidElementType(type) { | |
| 518 | - return typeof type === "string" || typeof type === "function" || type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === "object" && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE); | |
| 519 | - } | |
| 520 | - function typeOf(object) { | |
| 521 | - if (typeof object === "object" && object !== null) { | |
| 522 | - var $$typeof = object.$$typeof; | |
| 523 | - switch ($$typeof) { | |
| 524 | - case REACT_ELEMENT_TYPE: | |
| 525 | - var type = object.type; | |
| 526 | - switch (type) { | |
| 527 | - case REACT_ASYNC_MODE_TYPE: | |
| 528 | - case REACT_CONCURRENT_MODE_TYPE: | |
| 529 | - case REACT_FRAGMENT_TYPE: | |
| 530 | - case REACT_PROFILER_TYPE: | |
| 531 | - case REACT_STRICT_MODE_TYPE: | |
| 532 | - case REACT_SUSPENSE_TYPE: return type; | |
| 533 | - default: | |
| 534 | - var $$typeofType = type && type.$$typeof; | |
| 535 | - switch ($$typeofType) { | |
| 536 | - case REACT_CONTEXT_TYPE: | |
| 537 | - case REACT_FORWARD_REF_TYPE: | |
| 538 | - case REACT_LAZY_TYPE: | |
| 539 | - case REACT_MEMO_TYPE: | |
| 540 | - case REACT_PROVIDER_TYPE: return $$typeofType; | |
| 541 | - default: return $$typeof; | |
| 542 | - } | |
| 543 | - } | |
| 544 | - case REACT_PORTAL_TYPE: return $$typeof; | |
| 545 | - } | |
| 546 | - } | |
| 547 | - } | |
| 548 | - var AsyncMode = REACT_ASYNC_MODE_TYPE; | |
| 549 | - var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE; | |
| 550 | - var ContextConsumer = REACT_CONTEXT_TYPE; | |
| 551 | - var ContextProvider = REACT_PROVIDER_TYPE; | |
| 552 | - var Element = REACT_ELEMENT_TYPE; | |
| 553 | - var ForwardRef = REACT_FORWARD_REF_TYPE; | |
| 554 | - var Fragment = REACT_FRAGMENT_TYPE; | |
| 555 | - var Lazy = REACT_LAZY_TYPE; | |
| 556 | - var Memo = REACT_MEMO_TYPE; | |
| 557 | - var Portal = REACT_PORTAL_TYPE; | |
| 558 | - var Profiler = REACT_PROFILER_TYPE; | |
| 559 | - var StrictMode = REACT_STRICT_MODE_TYPE; | |
| 560 | - var Suspense = REACT_SUSPENSE_TYPE; | |
| 561 | - var hasWarnedAboutDeprecatedIsAsyncMode = false; | |
| 562 | - function isAsyncMode(object) { | |
| 563 | - if (!hasWarnedAboutDeprecatedIsAsyncMode) { | |
| 564 | - hasWarnedAboutDeprecatedIsAsyncMode = true; | |
| 565 | - 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."); | |
| 566 | - } | |
| 567 | - return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE; | |
| 568 | - } | |
| 569 | - function isConcurrentMode(object) { | |
| 570 | - return typeOf(object) === REACT_CONCURRENT_MODE_TYPE; | |
| 571 | - } | |
| 572 | - function isContextConsumer(object) { | |
| 573 | - return typeOf(object) === REACT_CONTEXT_TYPE; | |
| 574 | - } | |
| 575 | - function isContextProvider(object) { | |
| 576 | - return typeOf(object) === REACT_PROVIDER_TYPE; | |
| 577 | - } | |
| 578 | - function isElement(object) { | |
| 579 | - return typeof object === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE; | |
| 580 | - } | |
| 581 | - function isForwardRef(object) { | |
| 582 | - return typeOf(object) === REACT_FORWARD_REF_TYPE; | |
| 583 | - } | |
| 584 | - function isFragment(object) { | |
| 585 | - return typeOf(object) === REACT_FRAGMENT_TYPE; | |
| 586 | - } | |
| 587 | - function isLazy(object) { | |
| 588 | - return typeOf(object) === REACT_LAZY_TYPE; | |
| 589 | - } | |
| 590 | - function isMemo(object) { | |
| 591 | - return typeOf(object) === REACT_MEMO_TYPE; | |
| 592 | - } | |
| 593 | - function isPortal(object) { | |
| 594 | - return typeOf(object) === REACT_PORTAL_TYPE; | |
| 595 | - } | |
| 596 | - function isProfiler(object) { | |
| 597 | - return typeOf(object) === REACT_PROFILER_TYPE; | |
| 598 | - } | |
| 599 | - function isStrictMode(object) { | |
| 600 | - return typeOf(object) === REACT_STRICT_MODE_TYPE; | |
| 601 | - } | |
| 602 | - function isSuspense(object) { | |
| 603 | - return typeOf(object) === REACT_SUSPENSE_TYPE; | |
| 604 | - } | |
| 605 | - exports.AsyncMode = AsyncMode; | |
| 606 | - exports.ConcurrentMode = ConcurrentMode; | |
| 607 | - exports.ContextConsumer = ContextConsumer; | |
| 608 | - exports.ContextProvider = ContextProvider; | |
| 609 | - exports.Element = Element; | |
| 610 | - exports.ForwardRef = ForwardRef; | |
| 611 | - exports.Fragment = Fragment; | |
| 612 | - exports.Lazy = Lazy; | |
| 613 | - exports.Memo = Memo; | |
| 614 | - exports.Portal = Portal; | |
| 615 | - exports.Profiler = Profiler; | |
| 616 | - exports.StrictMode = StrictMode; | |
| 617 | - exports.Suspense = Suspense; | |
| 618 | - exports.isAsyncMode = isAsyncMode; | |
| 619 | - exports.isConcurrentMode = isConcurrentMode; | |
| 620 | - exports.isContextConsumer = isContextConsumer; | |
| 621 | - exports.isContextProvider = isContextProvider; | |
| 622 | - exports.isElement = isElement; | |
| 623 | - exports.isForwardRef = isForwardRef; | |
| 624 | - exports.isFragment = isFragment; | |
| 625 | - exports.isLazy = isLazy; | |
| 626 | - exports.isMemo = isMemo; | |
| 627 | - exports.isPortal = isPortal; | |
| 628 | - exports.isProfiler = isProfiler; | |
| 629 | - exports.isStrictMode = isStrictMode; | |
| 630 | - exports.isSuspense = isSuspense; | |
| 631 | - exports.isValidElementType = isValidElementType; | |
| 632 | - exports.typeOf = typeOf; | |
| 633 | - })(); | |
| 634 | - })); | |
| 2595 | +/** | |
| 2596 | + * Resets warning cache when testing. | |
| 2597 | + * | |
| 2598 | + * @private | |
| 2599 | + */ | |
| 2600 | +checkPropTypes.resetWarningCache = function() { | |
| 2601 | + if (true) { | |
| 2602 | + loggedTypeFailures = {}; | |
| 2603 | + } | |
| 2604 | +} | |
| 635 | 2605 | |
| 636 | -//#endregion | |
| 637 | -//#region node_modules/prop-types/node_modules/react-is/index.js | |
| 638 | - var require_react_is = /* @__PURE__ */ __commonJSMin(((exports, module) => { | |
| 639 | - module.exports = require_react_is_development(); | |
| 640 | - })); | |
| 2606 | +module.exports = checkPropTypes; | |
| 641 | 2607 | |
| 642 | -//#endregion | |
| 643 | -//#region node_modules/object-assign/index.js | |
| 644 | -/* | |
| 645 | - object-assign | |
| 646 | - (c) Sindre Sorhus | |
| 647 | - @license MIT | |
| 648 | - */ | |
| 649 | - var require_object_assign = /* @__PURE__ */ __commonJSMin(((exports, module) => { | |
| 650 | - var getOwnPropertySymbols = Object.getOwnPropertySymbols; | |
| 651 | - var hasOwnProperty = Object.prototype.hasOwnProperty; | |
| 652 | - var propIsEnumerable = Object.prototype.propertyIsEnumerable; | |
| 653 | - function toObject(val) { | |
| 654 | - if (val === null || val === void 0) throw new TypeError("Object.assign cannot be called with null or undefined"); | |
| 655 | - return Object(val); | |
| 656 | - } | |
| 657 | - function shouldUseNative() { | |
| 658 | - try { | |
| 659 | - if (!Object.assign) return false; | |
| 660 | - var test1 = /* @__PURE__ */ new String("abc"); | |
| 661 | - test1[5] = "de"; | |
| 662 | - if (Object.getOwnPropertyNames(test1)[0] === "5") return false; | |
| 663 | - var test2 = {}; | |
| 664 | - for (var i = 0; i < 10; i++) test2["_" + String.fromCharCode(i)] = i; | |
| 665 | - if (Object.getOwnPropertyNames(test2).map(function(n) { | |
| 666 | - return test2[n]; | |
| 667 | - }).join("") !== "0123456789") return false; | |
| 668 | - var test3 = {}; | |
| 669 | - "abcdefghijklmnopqrst".split("").forEach(function(letter) { | |
| 670 | - test3[letter] = letter; | |
| 671 | - }); | |
| 672 | - if (Object.keys(Object.assign({}, test3)).join("") !== "abcdefghijklmnopqrst") return false; | |
| 673 | - return true; | |
| 674 | - } catch (err) { | |
| 675 | - return false; | |
| 676 | - } | |
| 677 | - } | |
| 678 | - module.exports = shouldUseNative() ? Object.assign : function(target, source) { | |
| 679 | - var from; | |
| 680 | - var to = toObject(target); | |
| 681 | - var symbols; | |
| 682 | - for (var s = 1; s < arguments.length; s++) { | |
| 683 | - from = Object(arguments[s]); | |
| 684 | - for (var key in from) if (hasOwnProperty.call(from, key)) to[key] = from[key]; | |
| 685 | - if (getOwnPropertySymbols) { | |
| 686 | - symbols = getOwnPropertySymbols(from); | |
| 687 | - for (var i = 0; i < symbols.length; i++) if (propIsEnumerable.call(from, symbols[i])) to[symbols[i]] = from[symbols[i]]; | |
| 688 | - } | |
| 689 | - } | |
| 690 | - return to; | |
| 691 | - }; | |
| 692 | - })); | |
| 693 | 2608 | |
| 694 | -//#endregion | |
| 695 | -//#region node_modules/prop-types/lib/ReactPropTypesSecret.js | |
| 2609 | +/***/ }), | |
| 2610 | + | |
| 2611 | +/***/ "../node_modules/prop-types/factoryWithTypeCheckers.js": | |
| 2612 | +/*!*************************************************************!*\ | |
| 2613 | + !*** ../node_modules/prop-types/factoryWithTypeCheckers.js ***! | |
| 2614 | + \*************************************************************/ | |
| 2615 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 2616 | + | |
| 2617 | +"use strict"; | |
| 696 | 2618 | /** |
| 697 | - * Copyright (c) 2013-present, Facebook, Inc. | |
| 698 | - * | |
| 699 | - * This source code is licensed under the MIT license found in the | |
| 700 | - * LICENSE file in the root directory of this source tree. | |
| 701 | - */ | |
| 702 | - var require_ReactPropTypesSecret = /* @__PURE__ */ __commonJSMin(((exports, module) => { | |
| 703 | - var ReactPropTypesSecret = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"; | |
| 704 | - module.exports = ReactPropTypesSecret; | |
| 705 | - })); | |
| 2619 | + * Copyright (c) 2013-present, Facebook, Inc. | |
| 2620 | + * | |
| 2621 | + * This source code is licensed under the MIT license found in the | |
| 2622 | + * LICENSE file in the root directory of this source tree. | |
| 2623 | + */ | |
| 706 | 2624 | |
| 707 | -//#endregion | |
| 708 | -//#region node_modules/prop-types/lib/has.js | |
| 709 | - var require_has = /* @__PURE__ */ __commonJSMin(((exports, module) => { | |
| 710 | - module.exports = Function.call.bind(Object.prototype.hasOwnProperty); | |
| 711 | - })); | |
| 712 | 2625 | |
| 713 | -//#endregion | |
| 714 | -//#region node_modules/prop-types/checkPropTypes.js | |
| 2626 | + | |
| 2627 | +var ReactIs = __webpack_require__(/*! react-is */ "../node_modules/prop-types/node_modules/react-is/index.js"); | |
| 2628 | +var assign = __webpack_require__(/*! object-assign */ "../node_modules/object-assign/index.js"); | |
| 2629 | + | |
| 2630 | +var ReactPropTypesSecret = __webpack_require__(/*! ./lib/ReactPropTypesSecret */ "../node_modules/prop-types/lib/ReactPropTypesSecret.js"); | |
| 2631 | +var has = __webpack_require__(/*! ./lib/has */ "../node_modules/prop-types/lib/has.js"); | |
| 2632 | +var checkPropTypes = __webpack_require__(/*! ./checkPropTypes */ "../node_modules/prop-types/checkPropTypes.js"); | |
| 2633 | + | |
| 2634 | +var printWarning = function() {}; | |
| 2635 | + | |
| 2636 | +if (true) { | |
| 2637 | + printWarning = function(text) { | |
| 2638 | + var message = 'Warning: ' + text; | |
| 2639 | + if (typeof console !== 'undefined') { | |
| 2640 | + console.error(message); | |
| 2641 | + } | |
| 2642 | + try { | |
| 2643 | + // --- Welcome to debugging React --- | |
| 2644 | + // This error was thrown as a convenience so that you can use this stack | |
| 2645 | + // to find the callsite that caused this warning to fire. | |
| 2646 | + throw new Error(message); | |
| 2647 | + } catch (x) {} | |
| 2648 | + }; | |
| 2649 | +} | |
| 2650 | + | |
| 2651 | +function emptyFunctionThatReturnsNull() { | |
| 2652 | + return null; | |
| 2653 | +} | |
| 2654 | + | |
| 2655 | +module.exports = function(isValidElement, throwOnDirectAccess) { | |
| 2656 | + /* global Symbol */ | |
| 2657 | + var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator; | |
| 2658 | + var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec. | |
| 2659 | + | |
| 2660 | + /** | |
| 2661 | + * Returns the iterator method function contained on the iterable object. | |
| 2662 | + * | |
| 2663 | + * Be sure to invoke the function with the iterable as context: | |
| 2664 | + * | |
| 2665 | + * var iteratorFn = getIteratorFn(myIterable); | |
| 2666 | + * if (iteratorFn) { | |
| 2667 | + * var iterator = iteratorFn.call(myIterable); | |
| 2668 | + * ... | |
| 2669 | + * } | |
| 2670 | + * | |
| 2671 | + * @param {?object} maybeIterable | |
| 2672 | + * @return {?function} | |
| 2673 | + */ | |
| 2674 | + function getIteratorFn(maybeIterable) { | |
| 2675 | + var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]); | |
| 2676 | + if (typeof iteratorFn === 'function') { | |
| 2677 | + return iteratorFn; | |
| 2678 | + } | |
| 2679 | + } | |
| 2680 | + | |
| 2681 | + /** | |
| 2682 | + * Collection of methods that allow declaration and validation of props that are | |
| 2683 | + * supplied to React components. Example usage: | |
| 2684 | + * | |
| 2685 | + * var Props = require('ReactPropTypes'); | |
| 2686 | + * var MyArticle = React.createClass({ | |
| 2687 | + * propTypes: { | |
| 2688 | + * // An optional string prop named "description". | |
| 2689 | + * description: Props.string, | |
| 2690 | + * | |
| 2691 | + * // A required enum prop named "category". | |
| 2692 | + * category: Props.oneOf(['News','Photos']).isRequired, | |
| 2693 | + * | |
| 2694 | + * // A prop named "dialog" that requires an instance of Dialog. | |
| 2695 | + * dialog: Props.instanceOf(Dialog).isRequired | |
| 2696 | + * }, | |
| 2697 | + * render: function() { ... } | |
| 2698 | + * }); | |
| 2699 | + * | |
| 2700 | + * A more formal specification of how these methods are used: | |
| 2701 | + * | |
| 2702 | + * type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...) | |
| 2703 | + * decl := ReactPropTypes.{type}(.isRequired)? | |
| 2704 | + * | |
| 2705 | + * Each and every declaration produces a function with the same signature. This | |
| 2706 | + * allows the creation of custom validation functions. For example: | |
| 2707 | + * | |
| 2708 | + * var MyLink = React.createClass({ | |
| 2709 | + * propTypes: { | |
| 2710 | + * // An optional string or URI prop named "href". | |
| 2711 | + * href: function(props, propName, componentName) { | |
| 2712 | + * var propValue = props[propName]; | |
| 2713 | + * if (propValue != null && typeof propValue !== 'string' && | |
| 2714 | + * !(propValue instanceof URI)) { | |
| 2715 | + * return new Error( | |
| 2716 | + * 'Expected a string or an URI for ' + propName + ' in ' + | |
| 2717 | + * componentName | |
| 2718 | + * ); | |
| 2719 | + * } | |
| 2720 | + * } | |
| 2721 | + * }, | |
| 2722 | + * render: function() {...} | |
| 2723 | + * }); | |
| 2724 | + * | |
| 2725 | + * @internal | |
| 2726 | + */ | |
| 2727 | + | |
| 2728 | + var ANONYMOUS = '<<anonymous>>'; | |
| 2729 | + | |
| 2730 | + // Important! | |
| 2731 | + // Keep this list in sync with production version in `./factoryWithThrowingShims.js`. | |
| 2732 | + var ReactPropTypes = { | |
| 2733 | + array: createPrimitiveTypeChecker('array'), | |
| 2734 | + bigint: createPrimitiveTypeChecker('bigint'), | |
| 2735 | + bool: createPrimitiveTypeChecker('boolean'), | |
| 2736 | + func: createPrimitiveTypeChecker('function'), | |
| 2737 | + number: createPrimitiveTypeChecker('number'), | |
| 2738 | + object: createPrimitiveTypeChecker('object'), | |
| 2739 | + string: createPrimitiveTypeChecker('string'), | |
| 2740 | + symbol: createPrimitiveTypeChecker('symbol'), | |
| 2741 | + | |
| 2742 | + any: createAnyTypeChecker(), | |
| 2743 | + arrayOf: createArrayOfTypeChecker, | |
| 2744 | + element: createElementTypeChecker(), | |
| 2745 | + elementType: createElementTypeTypeChecker(), | |
| 2746 | + instanceOf: createInstanceTypeChecker, | |
| 2747 | + node: createNodeChecker(), | |
| 2748 | + objectOf: createObjectOfTypeChecker, | |
| 2749 | + oneOf: createEnumTypeChecker, | |
| 2750 | + oneOfType: createUnionTypeChecker, | |
| 2751 | + shape: createShapeTypeChecker, | |
| 2752 | + exact: createStrictShapeTypeChecker, | |
| 2753 | + }; | |
| 2754 | + | |
| 2755 | + /** | |
| 2756 | + * inlined Object.is polyfill to avoid requiring consumers ship their own | |
| 2757 | + * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is | |
| 2758 | + */ | |
| 2759 | + /*eslint-disable no-self-compare*/ | |
| 2760 | + function is(x, y) { | |
| 2761 | + // SameValue algorithm | |
| 2762 | + if (x === y) { | |
| 2763 | + // Steps 1-5, 7-10 | |
| 2764 | + // Steps 6.b-6.e: +0 != -0 | |
| 2765 | + return x !== 0 || 1 / x === 1 / y; | |
| 2766 | + } else { | |
| 2767 | + // Step 6.a: NaN == NaN | |
| 2768 | + return x !== x && y !== y; | |
| 2769 | + } | |
| 2770 | + } | |
| 2771 | + /*eslint-enable no-self-compare*/ | |
| 2772 | + | |
| 2773 | + /** | |
| 2774 | + * We use an Error-like object for backward compatibility as people may call | |
| 2775 | + * PropTypes directly and inspect their output. However, we don't use real | |
| 2776 | + * Errors anymore. We don't inspect their stack anyway, and creating them | |
| 2777 | + * is prohibitively expensive if they are created too often, such as what | |
| 2778 | + * happens in oneOfType() for any type before the one that matched. | |
| 2779 | + */ | |
| 2780 | + function PropTypeError(message, data) { | |
| 2781 | + this.message = message; | |
| 2782 | + this.data = data && typeof data === 'object' ? data: {}; | |
| 2783 | + this.stack = ''; | |
| 2784 | + } | |
| 2785 | + // Make `instanceof Error` still work for returned errors. | |
| 2786 | + PropTypeError.prototype = Error.prototype; | |
| 2787 | + | |
| 2788 | + function createChainableTypeChecker(validate) { | |
| 2789 | + if (true) { | |
| 2790 | + var manualPropTypeCallCache = {}; | |
| 2791 | + var manualPropTypeWarningCount = 0; | |
| 2792 | + } | |
| 2793 | + function checkType(isRequired, props, propName, componentName, location, propFullName, secret) { | |
| 2794 | + componentName = componentName || ANONYMOUS; | |
| 2795 | + propFullName = propFullName || propName; | |
| 2796 | + | |
| 2797 | + if (secret !== ReactPropTypesSecret) { | |
| 2798 | + if (throwOnDirectAccess) { | |
| 2799 | + // New behavior only for users of `prop-types` package | |
| 2800 | + var err = new Error( | |
| 2801 | + 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' + | |
| 2802 | + 'Use `PropTypes.checkPropTypes()` to call them. ' + | |
| 2803 | + 'Read more at http://fb.me/use-check-prop-types' | |
| 2804 | + ); | |
| 2805 | + err.name = 'Invariant Violation'; | |
| 2806 | + throw err; | |
| 2807 | + } else if ( true && typeof console !== 'undefined') { | |
| 2808 | + // Old behavior for people using React.PropTypes | |
| 2809 | + var cacheKey = componentName + ':' + propName; | |
| 2810 | + if ( | |
| 2811 | + !manualPropTypeCallCache[cacheKey] && | |
| 2812 | + // Avoid spamming the console because they are often not actionable except for lib authors | |
| 2813 | + manualPropTypeWarningCount < 3 | |
| 2814 | + ) { | |
| 2815 | + printWarning( | |
| 2816 | + 'You are manually calling a React.PropTypes validation ' + | |
| 2817 | + 'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' + | |
| 2818 | + 'and will throw in the standalone `prop-types` package. ' + | |
| 2819 | + 'You may be seeing this warning due to a third-party PropTypes ' + | |
| 2820 | + 'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.' | |
| 2821 | + ); | |
| 2822 | + manualPropTypeCallCache[cacheKey] = true; | |
| 2823 | + manualPropTypeWarningCount++; | |
| 2824 | + } | |
| 2825 | + } | |
| 2826 | + } | |
| 2827 | + if (props[propName] == null) { | |
| 2828 | + if (isRequired) { | |
| 2829 | + if (props[propName] === null) { | |
| 2830 | + return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.')); | |
| 2831 | + } | |
| 2832 | + return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.')); | |
| 2833 | + } | |
| 2834 | + return null; | |
| 2835 | + } else { | |
| 2836 | + return validate(props, propName, componentName, location, propFullName); | |
| 2837 | + } | |
| 2838 | + } | |
| 2839 | + | |
| 2840 | + var chainedCheckType = checkType.bind(null, false); | |
| 2841 | + chainedCheckType.isRequired = checkType.bind(null, true); | |
| 2842 | + | |
| 2843 | + return chainedCheckType; | |
| 2844 | + } | |
| 2845 | + | |
| 2846 | + function createPrimitiveTypeChecker(expectedType) { | |
| 2847 | + function validate(props, propName, componentName, location, propFullName, secret) { | |
| 2848 | + var propValue = props[propName]; | |
| 2849 | + var propType = getPropType(propValue); | |
| 2850 | + if (propType !== expectedType) { | |
| 2851 | + // `propValue` being instance of, say, date/regexp, pass the 'object' | |
| 2852 | + // check, but we can offer a more precise error message here rather than | |
| 2853 | + // 'of type `object`'. | |
| 2854 | + var preciseType = getPreciseType(propValue); | |
| 2855 | + | |
| 2856 | + return new PropTypeError( | |
| 2857 | + 'Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'), | |
| 2858 | + {expectedType: expectedType} | |
| 2859 | + ); | |
| 2860 | + } | |
| 2861 | + return null; | |
| 2862 | + } | |
| 2863 | + return createChainableTypeChecker(validate); | |
| 2864 | + } | |
| 2865 | + | |
| 2866 | + function createAnyTypeChecker() { | |
| 2867 | + return createChainableTypeChecker(emptyFunctionThatReturnsNull); | |
| 2868 | + } | |
| 2869 | + | |
| 2870 | + function createArrayOfTypeChecker(typeChecker) { | |
| 2871 | + function validate(props, propName, componentName, location, propFullName) { | |
| 2872 | + if (typeof typeChecker !== 'function') { | |
| 2873 | + return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.'); | |
| 2874 | + } | |
| 2875 | + var propValue = props[propName]; | |
| 2876 | + if (!Array.isArray(propValue)) { | |
| 2877 | + var propType = getPropType(propValue); | |
| 2878 | + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.')); | |
| 2879 | + } | |
| 2880 | + for (var i = 0; i < propValue.length; i++) { | |
| 2881 | + var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret); | |
| 2882 | + if (error instanceof Error) { | |
| 2883 | + return error; | |
| 2884 | + } | |
| 2885 | + } | |
| 2886 | + return null; | |
| 2887 | + } | |
| 2888 | + return createChainableTypeChecker(validate); | |
| 2889 | + } | |
| 2890 | + | |
| 2891 | + function createElementTypeChecker() { | |
| 2892 | + function validate(props, propName, componentName, location, propFullName) { | |
| 2893 | + var propValue = props[propName]; | |
| 2894 | + if (!isValidElement(propValue)) { | |
| 2895 | + var propType = getPropType(propValue); | |
| 2896 | + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.')); | |
| 2897 | + } | |
| 2898 | + return null; | |
| 2899 | + } | |
| 2900 | + return createChainableTypeChecker(validate); | |
| 2901 | + } | |
| 2902 | + | |
| 2903 | + function createElementTypeTypeChecker() { | |
| 2904 | + function validate(props, propName, componentName, location, propFullName) { | |
| 2905 | + var propValue = props[propName]; | |
| 2906 | + if (!ReactIs.isValidElementType(propValue)) { | |
| 2907 | + var propType = getPropType(propValue); | |
| 2908 | + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement type.')); | |
| 2909 | + } | |
| 2910 | + return null; | |
| 2911 | + } | |
| 2912 | + return createChainableTypeChecker(validate); | |
| 2913 | + } | |
| 2914 | + | |
| 2915 | + function createInstanceTypeChecker(expectedClass) { | |
| 2916 | + function validate(props, propName, componentName, location, propFullName) { | |
| 2917 | + if (!(props[propName] instanceof expectedClass)) { | |
| 2918 | + var expectedClassName = expectedClass.name || ANONYMOUS; | |
| 2919 | + var actualClassName = getClassName(props[propName]); | |
| 2920 | + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.')); | |
| 2921 | + } | |
| 2922 | + return null; | |
| 2923 | + } | |
| 2924 | + return createChainableTypeChecker(validate); | |
| 2925 | + } | |
| 2926 | + | |
| 2927 | + function createEnumTypeChecker(expectedValues) { | |
| 2928 | + if (!Array.isArray(expectedValues)) { | |
| 2929 | + if (true) { | |
| 2930 | + if (arguments.length > 1) { | |
| 2931 | + printWarning( | |
| 2932 | + 'Invalid arguments supplied to oneOf, expected an array, got ' + arguments.length + ' arguments. ' + | |
| 2933 | + 'A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).' | |
| 2934 | + ); | |
| 2935 | + } else { | |
| 2936 | + printWarning('Invalid argument supplied to oneOf, expected an array.'); | |
| 2937 | + } | |
| 2938 | + } | |
| 2939 | + return emptyFunctionThatReturnsNull; | |
| 2940 | + } | |
| 2941 | + | |
| 2942 | + function validate(props, propName, componentName, location, propFullName) { | |
| 2943 | + var propValue = props[propName]; | |
| 2944 | + for (var i = 0; i < expectedValues.length; i++) { | |
| 2945 | + if (is(propValue, expectedValues[i])) { | |
| 2946 | + return null; | |
| 2947 | + } | |
| 2948 | + } | |
| 2949 | + | |
| 2950 | + var valuesString = JSON.stringify(expectedValues, function replacer(key, value) { | |
| 2951 | + var type = getPreciseType(value); | |
| 2952 | + if (type === 'symbol') { | |
| 2953 | + return String(value); | |
| 2954 | + } | |
| 2955 | + return value; | |
| 2956 | + }); | |
| 2957 | + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + String(propValue) + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.')); | |
| 2958 | + } | |
| 2959 | + return createChainableTypeChecker(validate); | |
| 2960 | + } | |
| 2961 | + | |
| 2962 | + function createObjectOfTypeChecker(typeChecker) { | |
| 2963 | + function validate(props, propName, componentName, location, propFullName) { | |
| 2964 | + if (typeof typeChecker !== 'function') { | |
| 2965 | + return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.'); | |
| 2966 | + } | |
| 2967 | + var propValue = props[propName]; | |
| 2968 | + var propType = getPropType(propValue); | |
| 2969 | + if (propType !== 'object') { | |
| 2970 | + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.')); | |
| 2971 | + } | |
| 2972 | + for (var key in propValue) { | |
| 2973 | + if (has(propValue, key)) { | |
| 2974 | + var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret); | |
| 2975 | + if (error instanceof Error) { | |
| 2976 | + return error; | |
| 2977 | + } | |
| 2978 | + } | |
| 2979 | + } | |
| 2980 | + return null; | |
| 2981 | + } | |
| 2982 | + return createChainableTypeChecker(validate); | |
| 2983 | + } | |
| 2984 | + | |
| 2985 | + function createUnionTypeChecker(arrayOfTypeCheckers) { | |
| 2986 | + if (!Array.isArray(arrayOfTypeCheckers)) { | |
| 2987 | + true ? printWarning('Invalid argument supplied to oneOfType, expected an instance of array.') : 0; | |
| 2988 | + return emptyFunctionThatReturnsNull; | |
| 2989 | + } | |
| 2990 | + | |
| 2991 | + for (var i = 0; i < arrayOfTypeCheckers.length; i++) { | |
| 2992 | + var checker = arrayOfTypeCheckers[i]; | |
| 2993 | + if (typeof checker !== 'function') { | |
| 2994 | + printWarning( | |
| 2995 | + 'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' + | |
| 2996 | + 'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.' | |
| 2997 | + ); | |
| 2998 | + return emptyFunctionThatReturnsNull; | |
| 2999 | + } | |
| 3000 | + } | |
| 3001 | + | |
| 3002 | + function validate(props, propName, componentName, location, propFullName) { | |
| 3003 | + var expectedTypes = []; | |
| 3004 | + for (var i = 0; i < arrayOfTypeCheckers.length; i++) { | |
| 3005 | + var checker = arrayOfTypeCheckers[i]; | |
| 3006 | + var checkerResult = checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret); | |
| 3007 | + if (checkerResult == null) { | |
| 3008 | + return null; | |
| 3009 | + } | |
| 3010 | + if (checkerResult.data && has(checkerResult.data, 'expectedType')) { | |
| 3011 | + expectedTypes.push(checkerResult.data.expectedType); | |
| 3012 | + } | |
| 3013 | + } | |
| 3014 | + var expectedTypesMessage = (expectedTypes.length > 0) ? ', expected one of type [' + expectedTypes.join(', ') + ']': ''; | |
| 3015 | + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`' + expectedTypesMessage + '.')); | |
| 3016 | + } | |
| 3017 | + return createChainableTypeChecker(validate); | |
| 3018 | + } | |
| 3019 | + | |
| 3020 | + function createNodeChecker() { | |
| 3021 | + function validate(props, propName, componentName, location, propFullName) { | |
| 3022 | + if (!isNode(props[propName])) { | |
| 3023 | + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.')); | |
| 3024 | + } | |
| 3025 | + return null; | |
| 3026 | + } | |
| 3027 | + return createChainableTypeChecker(validate); | |
| 3028 | + } | |
| 3029 | + | |
| 3030 | + function invalidValidatorError(componentName, location, propFullName, key, type) { | |
| 3031 | + return new PropTypeError( | |
| 3032 | + (componentName || 'React class') + ': ' + location + ' type `' + propFullName + '.' + key + '` is invalid; ' + | |
| 3033 | + 'it must be a function, usually from the `prop-types` package, but received `' + type + '`.' | |
| 3034 | + ); | |
| 3035 | + } | |
| 3036 | + | |
| 3037 | + function createShapeTypeChecker(shapeTypes) { | |
| 3038 | + function validate(props, propName, componentName, location, propFullName) { | |
| 3039 | + var propValue = props[propName]; | |
| 3040 | + var propType = getPropType(propValue); | |
| 3041 | + if (propType !== 'object') { | |
| 3042 | + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.')); | |
| 3043 | + } | |
| 3044 | + for (var key in shapeTypes) { | |
| 3045 | + var checker = shapeTypes[key]; | |
| 3046 | + if (typeof checker !== 'function') { | |
| 3047 | + return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker)); | |
| 3048 | + } | |
| 3049 | + var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret); | |
| 3050 | + if (error) { | |
| 3051 | + return error; | |
| 3052 | + } | |
| 3053 | + } | |
| 3054 | + return null; | |
| 3055 | + } | |
| 3056 | + return createChainableTypeChecker(validate); | |
| 3057 | + } | |
| 3058 | + | |
| 3059 | + function createStrictShapeTypeChecker(shapeTypes) { | |
| 3060 | + function validate(props, propName, componentName, location, propFullName) { | |
| 3061 | + var propValue = props[propName]; | |
| 3062 | + var propType = getPropType(propValue); | |
| 3063 | + if (propType !== 'object') { | |
| 3064 | + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.')); | |
| 3065 | + } | |
| 3066 | + // We need to check all keys in case some are required but missing from props. | |
| 3067 | + var allKeys = assign({}, props[propName], shapeTypes); | |
| 3068 | + for (var key in allKeys) { | |
| 3069 | + var checker = shapeTypes[key]; | |
| 3070 | + if (has(shapeTypes, key) && typeof checker !== 'function') { | |
| 3071 | + return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker)); | |
| 3072 | + } | |
| 3073 | + if (!checker) { | |
| 3074 | + return new PropTypeError( | |
| 3075 | + 'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' + | |
| 3076 | + '\nBad object: ' + JSON.stringify(props[propName], null, ' ') + | |
| 3077 | + '\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ') | |
| 3078 | + ); | |
| 3079 | + } | |
| 3080 | + var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret); | |
| 3081 | + if (error) { | |
| 3082 | + return error; | |
| 3083 | + } | |
| 3084 | + } | |
| 3085 | + return null; | |
| 3086 | + } | |
| 3087 | + | |
| 3088 | + return createChainableTypeChecker(validate); | |
| 3089 | + } | |
| 3090 | + | |
| 3091 | + function isNode(propValue) { | |
| 3092 | + switch (typeof propValue) { | |
| 3093 | + case 'number': | |
| 3094 | + case 'string': | |
| 3095 | + case 'undefined': | |
| 3096 | + return true; | |
| 3097 | + case 'boolean': | |
| 3098 | + return !propValue; | |
| 3099 | + case 'object': | |
| 3100 | + if (Array.isArray(propValue)) { | |
| 3101 | + return propValue.every(isNode); | |
| 3102 | + } | |
| 3103 | + if (propValue === null || isValidElement(propValue)) { | |
| 3104 | + return true; | |
| 3105 | + } | |
| 3106 | + | |
| 3107 | + var iteratorFn = getIteratorFn(propValue); | |
| 3108 | + if (iteratorFn) { | |
| 3109 | + var iterator = iteratorFn.call(propValue); | |
| 3110 | + var step; | |
| 3111 | + if (iteratorFn !== propValue.entries) { | |
| 3112 | + while (!(step = iterator.next()).done) { | |
| 3113 | + if (!isNode(step.value)) { | |
| 3114 | + return false; | |
| 3115 | + } | |
| 3116 | + } | |
| 3117 | + } else { | |
| 3118 | + // Iterator will provide entry [k,v] tuples rather than values. | |
| 3119 | + while (!(step = iterator.next()).done) { | |
| 3120 | + var entry = step.value; | |
| 3121 | + if (entry) { | |
| 3122 | + if (!isNode(entry[1])) { | |
| 3123 | + return false; | |
| 3124 | + } | |
| 3125 | + } | |
| 3126 | + } | |
| 3127 | + } | |
| 3128 | + } else { | |
| 3129 | + return false; | |
| 3130 | + } | |
| 3131 | + | |
| 3132 | + return true; | |
| 3133 | + default: | |
| 3134 | + return false; | |
| 3135 | + } | |
| 3136 | + } | |
| 3137 | + | |
| 3138 | + function isSymbol(propType, propValue) { | |
| 3139 | + // Native Symbol. | |
| 3140 | + if (propType === 'symbol') { | |
| 3141 | + return true; | |
| 3142 | + } | |
| 3143 | + | |
| 3144 | + // falsy value can't be a Symbol | |
| 3145 | + if (!propValue) { | |
| 3146 | + return false; | |
| 3147 | + } | |
| 3148 | + | |
| 3149 | + // 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol' | |
| 3150 | + if (propValue['@@toStringTag'] === 'Symbol') { | |
| 3151 | + return true; | |
| 3152 | + } | |
| 3153 | + | |
| 3154 | + // Fallback for non-spec compliant Symbols which are polyfilled. | |
| 3155 | + if (typeof Symbol === 'function' && propValue instanceof Symbol) { | |
| 3156 | + return true; | |
| 3157 | + } | |
| 3158 | + | |
| 3159 | + return false; | |
| 3160 | + } | |
| 3161 | + | |
| 3162 | + // Equivalent of `typeof` but with special handling for array and regexp. | |
| 3163 | + function getPropType(propValue) { | |
| 3164 | + var propType = typeof propValue; | |
| 3165 | + if (Array.isArray(propValue)) { | |
| 3166 | + return 'array'; | |
| 3167 | + } | |
| 3168 | + if (propValue instanceof RegExp) { | |
| 3169 | + // Old webkits (at least until Android 4.0) return 'function' rather than | |
| 3170 | + // 'object' for typeof a RegExp. We'll normalize this here so that /bla/ | |
| 3171 | + // passes PropTypes.object. | |
| 3172 | + return 'object'; | |
| 3173 | + } | |
| 3174 | + if (isSymbol(propType, propValue)) { | |
| 3175 | + return 'symbol'; | |
| 3176 | + } | |
| 3177 | + return propType; | |
| 3178 | + } | |
| 3179 | + | |
| 3180 | + // This handles more types than `getPropType`. Only used for error messages. | |
| 3181 | + // See `createPrimitiveTypeChecker`. | |
| 3182 | + function getPreciseType(propValue) { | |
| 3183 | + if (typeof propValue === 'undefined' || propValue === null) { | |
| 3184 | + return '' + propValue; | |
| 3185 | + } | |
| 3186 | + var propType = getPropType(propValue); | |
| 3187 | + if (propType === 'object') { | |
| 3188 | + if (propValue instanceof Date) { | |
| 3189 | + return 'date'; | |
| 3190 | + } else if (propValue instanceof RegExp) { | |
| 3191 | + return 'regexp'; | |
| 3192 | + } | |
| 3193 | + } | |
| 3194 | + return propType; | |
| 3195 | + } | |
| 3196 | + | |
| 3197 | + // Returns a string that is postfixed to a warning about an invalid type. | |
| 3198 | + // For example, "undefined" or "of type array" | |
| 3199 | + function getPostfixForTypeWarning(value) { | |
| 3200 | + var type = getPreciseType(value); | |
| 3201 | + switch (type) { | |
| 3202 | + case 'array': | |
| 3203 | + case 'object': | |
| 3204 | + return 'an ' + type; | |
| 3205 | + case 'boolean': | |
| 3206 | + case 'date': | |
| 3207 | + case 'regexp': | |
| 3208 | + return 'a ' + type; | |
| 3209 | + default: | |
| 3210 | + return type; | |
| 3211 | + } | |
| 3212 | + } | |
| 3213 | + | |
| 3214 | + // Returns class name of the object, if any. | |
| 3215 | + function getClassName(propValue) { | |
| 3216 | + if (!propValue.constructor || !propValue.constructor.name) { | |
| 3217 | + return ANONYMOUS; | |
| 3218 | + } | |
| 3219 | + return propValue.constructor.name; | |
| 3220 | + } | |
| 3221 | + | |
| 3222 | + ReactPropTypes.checkPropTypes = checkPropTypes; | |
| 3223 | + ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache; | |
| 3224 | + ReactPropTypes.PropTypes = ReactPropTypes; | |
| 3225 | + | |
| 3226 | + return ReactPropTypes; | |
| 3227 | +}; | |
| 3228 | + | |
| 3229 | + | |
| 3230 | +/***/ }), | |
| 3231 | + | |
| 3232 | +/***/ "../node_modules/prop-types/index.js": | |
| 3233 | +/*!*******************************************!*\ | |
| 3234 | + !*** ../node_modules/prop-types/index.js ***! | |
| 3235 | + \*******************************************/ | |
| 3236 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 3237 | + | |
| 715 | 3238 | /** |
| 716 | - * Copyright (c) 2013-present, Facebook, Inc. | |
| 717 | - * | |
| 718 | - * This source code is licensed under the MIT license found in the | |
| 719 | - * LICENSE file in the root directory of this source tree. | |
| 720 | - */ | |
| 721 | - var require_checkPropTypes = /* @__PURE__ */ __commonJSMin(((exports, module) => { | |
| 722 | - var printWarning = function() {}; | |
| 723 | - var ReactPropTypesSecret = require_ReactPropTypesSecret(); | |
| 724 | - var loggedTypeFailures = {}; | |
| 725 | - var has = require_has(); | |
| 726 | - printWarning = function(text) { | |
| 727 | - var message = "Warning: " + text; | |
| 728 | - if (typeof console !== "undefined") console.error(message); | |
| 729 | - try { | |
| 730 | - throw new Error(message); | |
| 731 | - } catch (x) {} | |
| 732 | - }; | |
| 733 | - /** | |
| 734 | - * Assert that the values match with the type specs. | |
| 735 | - * Error messages are memorized and will only be shown once. | |
| 736 | - * | |
| 737 | - * @param {object} typeSpecs Map of name to a ReactPropType | |
| 738 | - * @param {object} values Runtime values that need to be type-checked | |
| 739 | - * @param {string} location e.g. "prop", "context", "child context" | |
| 740 | - * @param {string} componentName Name of the component for error messages. | |
| 741 | - * @param {?Function} getStack Returns the component stack. | |
| 742 | - * @private | |
| 743 | - */ | |
| 744 | - function checkPropTypes(typeSpecs, values, location, componentName, getStack) { | |
| 745 | - for (var typeSpecName in typeSpecs) if (has(typeSpecs, typeSpecName)) { | |
| 746 | - var error; | |
| 747 | - try { | |
| 748 | - if (typeof typeSpecs[typeSpecName] !== "function") { | |
| 749 | - var err = Error((componentName || "React class") + ": " + location + " type `" + typeSpecName + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof typeSpecs[typeSpecName] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."); | |
| 750 | - err.name = "Invariant Violation"; | |
| 751 | - throw err; | |
| 752 | - } | |
| 753 | - error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret); | |
| 754 | - } catch (ex) { | |
| 755 | - error = ex; | |
| 756 | - } | |
| 757 | - if (error && !(error instanceof Error)) printWarning((componentName || "React class") + ": type specification of " + location + " `" + typeSpecName + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof error + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."); | |
| 758 | - if (error instanceof Error && !(error.message in loggedTypeFailures)) { | |
| 759 | - loggedTypeFailures[error.message] = true; | |
| 760 | - var stack = getStack ? getStack() : ""; | |
| 761 | - printWarning("Failed " + location + " type: " + error.message + (stack != null ? stack : "")); | |
| 762 | - } | |
| 763 | - } | |
| 764 | - } | |
| 765 | - /** | |
| 766 | - * Resets warning cache when testing. | |
| 767 | - * | |
| 768 | - * @private | |
| 769 | - */ | |
| 770 | - checkPropTypes.resetWarningCache = function() { | |
| 771 | - loggedTypeFailures = {}; | |
| 772 | - }; | |
| 773 | - module.exports = checkPropTypes; | |
| 774 | - })); | |
| 3239 | + * Copyright (c) 2013-present, Facebook, Inc. | |
| 3240 | + * | |
| 3241 | + * This source code is licensed under the MIT license found in the | |
| 3242 | + * LICENSE file in the root directory of this source tree. | |
| 3243 | + */ | |
| 775 | 3244 | |
| 776 | -//#endregion | |
| 777 | -//#region node_modules/prop-types/factoryWithTypeCheckers.js | |
| 3245 | +if (true) { | |
| 3246 | + var ReactIs = __webpack_require__(/*! react-is */ "../node_modules/prop-types/node_modules/react-is/index.js"); | |
| 3247 | + | |
| 3248 | + // By explicitly using `prop-types` you are opting into new development behavior. | |
| 3249 | + // http://fb.me/prop-types-in-prod | |
| 3250 | + var throwOnDirectAccess = true; | |
| 3251 | + module.exports = __webpack_require__(/*! ./factoryWithTypeCheckers */ "../node_modules/prop-types/factoryWithTypeCheckers.js")(ReactIs.isElement, throwOnDirectAccess); | |
| 3252 | +} else // removed by dead control flow | |
| 3253 | +{} | |
| 3254 | + | |
| 3255 | + | |
| 3256 | +/***/ }), | |
| 3257 | + | |
| 3258 | +/***/ "../node_modules/prop-types/lib/ReactPropTypesSecret.js": | |
| 3259 | +/*!**************************************************************!*\ | |
| 3260 | + !*** ../node_modules/prop-types/lib/ReactPropTypesSecret.js ***! | |
| 3261 | + \**************************************************************/ | |
| 3262 | +/***/ ((module) => { | |
| 3263 | + | |
| 3264 | +"use strict"; | |
| 778 | 3265 | /** |
| 779 | - * Copyright (c) 2013-present, Facebook, Inc. | |
| 780 | - * | |
| 781 | - * This source code is licensed under the MIT license found in the | |
| 782 | - * LICENSE file in the root directory of this source tree. | |
| 783 | - */ | |
| 784 | - var require_factoryWithTypeCheckers = /* @__PURE__ */ __commonJSMin(((exports, module) => { | |
| 785 | - var ReactIs = require_react_is(); | |
| 786 | - var assign = require_object_assign(); | |
| 787 | - var ReactPropTypesSecret = require_ReactPropTypesSecret(); | |
| 788 | - var has = require_has(); | |
| 789 | - var checkPropTypes = require_checkPropTypes(); | |
| 790 | - var printWarning = function() {}; | |
| 791 | - printWarning = function(text) { | |
| 792 | - var message = "Warning: " + text; | |
| 793 | - if (typeof console !== "undefined") console.error(message); | |
| 794 | - try { | |
| 795 | - throw new Error(message); | |
| 796 | - } catch (x) {} | |
| 797 | - }; | |
| 798 | - function emptyFunctionThatReturnsNull() { | |
| 799 | - return null; | |
| 800 | - } | |
| 801 | - module.exports = function(isValidElement, throwOnDirectAccess) { | |
| 802 | - var ITERATOR_SYMBOL = typeof Symbol === "function" && Symbol.iterator; | |
| 803 | - var FAUX_ITERATOR_SYMBOL = "@@iterator"; | |
| 804 | - /** | |
| 805 | - * Returns the iterator method function contained on the iterable object. | |
| 806 | - * | |
| 807 | - * Be sure to invoke the function with the iterable as context: | |
| 808 | - * | |
| 809 | - * var iteratorFn = getIteratorFn(myIterable); | |
| 810 | - * if (iteratorFn) { | |
| 811 | - * var iterator = iteratorFn.call(myIterable); | |
| 812 | - * ... | |
| 813 | - * } | |
| 814 | - * | |
| 815 | - * @param {?object} maybeIterable | |
| 816 | - * @return {?function} | |
| 817 | - */ | |
| 818 | - function getIteratorFn(maybeIterable) { | |
| 819 | - var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]); | |
| 820 | - if (typeof iteratorFn === "function") return iteratorFn; | |
| 821 | - } | |
| 822 | - /** | |
| 823 | - * Collection of methods that allow declaration and validation of props that are | |
| 824 | - * supplied to React components. Example usage: | |
| 825 | - * | |
| 826 | - * var Props = require('ReactPropTypes'); | |
| 827 | - * var MyArticle = React.createClass({ | |
| 828 | - * propTypes: { | |
| 829 | - * // An optional string prop named "description". | |
| 830 | - * description: Props.string, | |
| 831 | - * | |
| 832 | - * // A required enum prop named "category". | |
| 833 | - * category: Props.oneOf(['News','Photos']).isRequired, | |
| 834 | - * | |
| 835 | - * // A prop named "dialog" that requires an instance of Dialog. | |
| 836 | - * dialog: Props.instanceOf(Dialog).isRequired | |
| 837 | - * }, | |
| 838 | - * render: function() { ... } | |
| 839 | - * }); | |
| 840 | - * | |
| 841 | - * A more formal specification of how these methods are used: | |
| 842 | - * | |
| 843 | - * type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...) | |
| 844 | - * decl := ReactPropTypes.{type}(.isRequired)? | |
| 845 | - * | |
| 846 | - * Each and every declaration produces a function with the same signature. This | |
| 847 | - * allows the creation of custom validation functions. For example: | |
| 848 | - * | |
| 849 | - * var MyLink = React.createClass({ | |
| 850 | - * propTypes: { | |
| 851 | - * // An optional string or URI prop named "href". | |
| 852 | - * href: function(props, propName, componentName) { | |
| 853 | - * var propValue = props[propName]; | |
| 854 | - * if (propValue != null && typeof propValue !== 'string' && | |
| 855 | - * !(propValue instanceof URI)) { | |
| 856 | - * return new Error( | |
| 857 | - * 'Expected a string or an URI for ' + propName + ' in ' + | |
| 858 | - * componentName | |
| 859 | - * ); | |
| 860 | - * } | |
| 861 | - * } | |
| 862 | - * }, | |
| 863 | - * render: function() {...} | |
| 864 | - * }); | |
| 865 | - * | |
| 866 | - * @internal | |
| 867 | - */ | |
| 868 | - var ANONYMOUS = "<<anonymous>>"; | |
| 869 | - var ReactPropTypes = { | |
| 870 | - array: createPrimitiveTypeChecker("array"), | |
| 871 | - bigint: createPrimitiveTypeChecker("bigint"), | |
| 872 | - bool: createPrimitiveTypeChecker("boolean"), | |
| 873 | - func: createPrimitiveTypeChecker("function"), | |
| 874 | - number: createPrimitiveTypeChecker("number"), | |
| 875 | - object: createPrimitiveTypeChecker("object"), | |
| 876 | - string: createPrimitiveTypeChecker("string"), | |
| 877 | - symbol: createPrimitiveTypeChecker("symbol"), | |
| 878 | - any: createAnyTypeChecker(), | |
| 879 | - arrayOf: createArrayOfTypeChecker, | |
| 880 | - element: createElementTypeChecker(), | |
| 881 | - elementType: createElementTypeTypeChecker(), | |
| 882 | - instanceOf: createInstanceTypeChecker, | |
| 883 | - node: createNodeChecker(), | |
| 884 | - objectOf: createObjectOfTypeChecker, | |
| 885 | - oneOf: createEnumTypeChecker, | |
| 886 | - oneOfType: createUnionTypeChecker, | |
| 887 | - shape: createShapeTypeChecker, | |
| 888 | - exact: createStrictShapeTypeChecker | |
| 889 | - }; | |
| 890 | - /** | |
| 891 | - * inlined Object.is polyfill to avoid requiring consumers ship their own | |
| 892 | - * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is | |
| 893 | - */ | |
| 894 | - function is(x, y) { | |
| 895 | - if (x === y) return x !== 0 || 1 / x === 1 / y; | |
| 896 | - else return x !== x && y !== y; | |
| 897 | - } | |
| 898 | - /** | |
| 899 | - * We use an Error-like object for backward compatibility as people may call | |
| 900 | - * PropTypes directly and inspect their output. However, we don't use real | |
| 901 | - * Errors anymore. We don't inspect their stack anyway, and creating them | |
| 902 | - * is prohibitively expensive if they are created too often, such as what | |
| 903 | - * happens in oneOfType() for any type before the one that matched. | |
| 904 | - */ | |
| 905 | - function PropTypeError(message, data) { | |
| 906 | - this.message = message; | |
| 907 | - this.data = data && typeof data === "object" ? data : {}; | |
| 908 | - this.stack = ""; | |
| 909 | - } | |
| 910 | - PropTypeError.prototype = Error.prototype; | |
| 911 | - function createChainableTypeChecker(validate) { | |
| 912 | - var manualPropTypeCallCache = {}; | |
| 913 | - var manualPropTypeWarningCount = 0; | |
| 914 | - function checkType(isRequired, props, propName, componentName, location, propFullName, secret) { | |
| 915 | - componentName = componentName || ANONYMOUS; | |
| 916 | - propFullName = propFullName || propName; | |
| 917 | - if (secret !== ReactPropTypesSecret) { | |
| 918 | - if (throwOnDirectAccess) { | |
| 919 | - var err = /* @__PURE__ */ new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"); | |
| 920 | - err.name = "Invariant Violation"; | |
| 921 | - throw err; | |
| 922 | - } else if (typeof console !== "undefined") { | |
| 923 | - var cacheKey = componentName + ":" + propName; | |
| 924 | - if (!manualPropTypeCallCache[cacheKey] && manualPropTypeWarningCount < 3) { | |
| 925 | - printWarning("You are manually calling a React.PropTypes validation function for the `" + propFullName + "` prop on `" + componentName + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."); | |
| 926 | - manualPropTypeCallCache[cacheKey] = true; | |
| 927 | - manualPropTypeWarningCount++; | |
| 928 | - } | |
| 929 | - } | |
| 930 | - } | |
| 931 | - if (props[propName] == null) { | |
| 932 | - if (isRequired) { | |
| 933 | - if (props[propName] === null) return new PropTypeError("The " + location + " `" + propFullName + "` is marked as required " + ("in `" + componentName + "`, but its value is `null`.")); | |
| 934 | - return new PropTypeError("The " + location + " `" + propFullName + "` is marked as required in " + ("`" + componentName + "`, but its value is `undefined`.")); | |
| 935 | - } | |
| 936 | - return null; | |
| 937 | - } else return validate(props, propName, componentName, location, propFullName); | |
| 938 | - } | |
| 939 | - var chainedCheckType = checkType.bind(null, false); | |
| 940 | - chainedCheckType.isRequired = checkType.bind(null, true); | |
| 941 | - return chainedCheckType; | |
| 942 | - } | |
| 943 | - function createPrimitiveTypeChecker(expectedType) { | |
| 944 | - function validate(props, propName, componentName, location, propFullName, secret) { | |
| 945 | - var propValue = props[propName]; | |
| 946 | - if (getPropType(propValue) !== expectedType) { | |
| 947 | - var preciseType = getPreciseType(propValue); | |
| 948 | - return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + preciseType + "` supplied to `" + componentName + "`, expected ") + ("`" + expectedType + "`."), { expectedType }); | |
| 949 | - } | |
| 950 | - return null; | |
| 951 | - } | |
| 952 | - return createChainableTypeChecker(validate); | |
| 953 | - } | |
| 954 | - function createAnyTypeChecker() { | |
| 955 | - return createChainableTypeChecker(emptyFunctionThatReturnsNull); | |
| 956 | - } | |
| 957 | - function createArrayOfTypeChecker(typeChecker) { | |
| 958 | - function validate(props, propName, componentName, location, propFullName) { | |
| 959 | - if (typeof typeChecker !== "function") return new PropTypeError("Property `" + propFullName + "` of component `" + componentName + "` has invalid PropType notation inside arrayOf."); | |
| 960 | - var propValue = props[propName]; | |
| 961 | - if (!Array.isArray(propValue)) { | |
| 962 | - var propType = getPropType(propValue); | |
| 963 | - return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected an array.")); | |
| 964 | - } | |
| 965 | - for (var i = 0; i < propValue.length; i++) { | |
| 966 | - var error = typeChecker(propValue, i, componentName, location, propFullName + "[" + i + "]", ReactPropTypesSecret); | |
| 967 | - if (error instanceof Error) return error; | |
| 968 | - } | |
| 969 | - return null; | |
| 970 | - } | |
| 971 | - return createChainableTypeChecker(validate); | |
| 972 | - } | |
| 973 | - function createElementTypeChecker() { | |
| 974 | - function validate(props, propName, componentName, location, propFullName) { | |
| 975 | - var propValue = props[propName]; | |
| 976 | - if (!isValidElement(propValue)) { | |
| 977 | - var propType = getPropType(propValue); | |
| 978 | - return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected a single ReactElement.")); | |
| 979 | - } | |
| 980 | - return null; | |
| 981 | - } | |
| 982 | - return createChainableTypeChecker(validate); | |
| 983 | - } | |
| 984 | - function createElementTypeTypeChecker() { | |
| 985 | - function validate(props, propName, componentName, location, propFullName) { | |
| 986 | - var propValue = props[propName]; | |
| 987 | - if (!ReactIs.isValidElementType(propValue)) { | |
| 988 | - var propType = getPropType(propValue); | |
| 989 | - return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected a single ReactElement type.")); | |
| 990 | - } | |
| 991 | - return null; | |
| 992 | - } | |
| 993 | - return createChainableTypeChecker(validate); | |
| 994 | - } | |
| 995 | - function createInstanceTypeChecker(expectedClass) { | |
| 996 | - function validate(props, propName, componentName, location, propFullName) { | |
| 997 | - if (!(props[propName] instanceof expectedClass)) { | |
| 998 | - var expectedClassName = expectedClass.name || ANONYMOUS; | |
| 999 | - var actualClassName = getClassName(props[propName]); | |
| 1000 | - return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + actualClassName + "` supplied to `" + componentName + "`, expected ") + ("instance of `" + expectedClassName + "`.")); | |
| 1001 | - } | |
| 1002 | - return null; | |
| 1003 | - } | |
| 1004 | - return createChainableTypeChecker(validate); | |
| 1005 | - } | |
| 1006 | - function createEnumTypeChecker(expectedValues) { | |
| 1007 | - if (!Array.isArray(expectedValues)) { | |
| 1008 | - if (arguments.length > 1) printWarning("Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."); | |
| 1009 | - else printWarning("Invalid argument supplied to oneOf, expected an array."); | |
| 1010 | - return emptyFunctionThatReturnsNull; | |
| 1011 | - } | |
| 1012 | - function validate(props, propName, componentName, location, propFullName) { | |
| 1013 | - var propValue = props[propName]; | |
| 1014 | - for (var i = 0; i < expectedValues.length; i++) if (is(propValue, expectedValues[i])) return null; | |
| 1015 | - var valuesString = JSON.stringify(expectedValues, function replacer(key, value) { | |
| 1016 | - if (getPreciseType(value) === "symbol") return String(value); | |
| 1017 | - return value; | |
| 1018 | - }); | |
| 1019 | - return new PropTypeError("Invalid " + location + " `" + propFullName + "` of value `" + String(propValue) + "` " + ("supplied to `" + componentName + "`, expected one of " + valuesString + ".")); | |
| 1020 | - } | |
| 1021 | - return createChainableTypeChecker(validate); | |
| 1022 | - } | |
| 1023 | - function createObjectOfTypeChecker(typeChecker) { | |
| 1024 | - function validate(props, propName, componentName, location, propFullName) { | |
| 1025 | - if (typeof typeChecker !== "function") return new PropTypeError("Property `" + propFullName + "` of component `" + componentName + "` has invalid PropType notation inside objectOf."); | |
| 1026 | - var propValue = props[propName]; | |
| 1027 | - var propType = getPropType(propValue); | |
| 1028 | - if (propType !== "object") return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected an object.")); | |
| 1029 | - for (var key in propValue) if (has(propValue, key)) { | |
| 1030 | - var error = typeChecker(propValue, key, componentName, location, propFullName + "." + key, ReactPropTypesSecret); | |
| 1031 | - if (error instanceof Error) return error; | |
| 1032 | - } | |
| 1033 | - return null; | |
| 1034 | - } | |
| 1035 | - return createChainableTypeChecker(validate); | |
| 1036 | - } | |
| 1037 | - function createUnionTypeChecker(arrayOfTypeCheckers) { | |
| 1038 | - if (!Array.isArray(arrayOfTypeCheckers)) { | |
| 1039 | - printWarning("Invalid argument supplied to oneOfType, expected an instance of array."); | |
| 1040 | - return emptyFunctionThatReturnsNull; | |
| 1041 | - } | |
| 1042 | - for (var i = 0; i < arrayOfTypeCheckers.length; i++) { | |
| 1043 | - var checker = arrayOfTypeCheckers[i]; | |
| 1044 | - if (typeof checker !== "function") { | |
| 1045 | - printWarning("Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + getPostfixForTypeWarning(checker) + " at index " + i + "."); | |
| 1046 | - return emptyFunctionThatReturnsNull; | |
| 1047 | - } | |
| 1048 | - } | |
| 1049 | - function validate(props, propName, componentName, location, propFullName) { | |
| 1050 | - var expectedTypes = []; | |
| 1051 | - for (var i = 0; i < arrayOfTypeCheckers.length; i++) { | |
| 1052 | - var checker = arrayOfTypeCheckers[i]; | |
| 1053 | - var checkerResult = checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret); | |
| 1054 | - if (checkerResult == null) return null; | |
| 1055 | - if (checkerResult.data && has(checkerResult.data, "expectedType")) expectedTypes.push(checkerResult.data.expectedType); | |
| 1056 | - } | |
| 1057 | - var expectedTypesMessage = expectedTypes.length > 0 ? ", expected one of type [" + expectedTypes.join(", ") + "]" : ""; | |
| 1058 | - return new PropTypeError("Invalid " + location + " `" + propFullName + "` supplied to " + ("`" + componentName + "`" + expectedTypesMessage + ".")); | |
| 1059 | - } | |
| 1060 | - return createChainableTypeChecker(validate); | |
| 1061 | - } | |
| 1062 | - function createNodeChecker() { | |
| 1063 | - function validate(props, propName, componentName, location, propFullName) { | |
| 1064 | - if (!isNode(props[propName])) return new PropTypeError("Invalid " + location + " `" + propFullName + "` supplied to " + ("`" + componentName + "`, expected a ReactNode.")); | |
| 1065 | - return null; | |
| 1066 | - } | |
| 1067 | - return createChainableTypeChecker(validate); | |
| 1068 | - } | |
| 1069 | - function invalidValidatorError(componentName, location, propFullName, key, type) { | |
| 1070 | - return new PropTypeError((componentName || "React class") + ": " + location + " type `" + propFullName + "." + key + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + type + "`."); | |
| 1071 | - } | |
| 1072 | - function createShapeTypeChecker(shapeTypes) { | |
| 1073 | - function validate(props, propName, componentName, location, propFullName) { | |
| 1074 | - var propValue = props[propName]; | |
| 1075 | - var propType = getPropType(propValue); | |
| 1076 | - if (propType !== "object") return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type `" + propType + "` " + ("supplied to `" + componentName + "`, expected `object`.")); | |
| 1077 | - for (var key in shapeTypes) { | |
| 1078 | - var checker = shapeTypes[key]; | |
| 1079 | - if (typeof checker !== "function") return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker)); | |
| 1080 | - var error = checker(propValue, key, componentName, location, propFullName + "." + key, ReactPropTypesSecret); | |
| 1081 | - if (error) return error; | |
| 1082 | - } | |
| 1083 | - return null; | |
| 1084 | - } | |
| 1085 | - return createChainableTypeChecker(validate); | |
| 1086 | - } | |
| 1087 | - function createStrictShapeTypeChecker(shapeTypes) { | |
| 1088 | - function validate(props, propName, componentName, location, propFullName) { | |
| 1089 | - var propValue = props[propName]; | |
| 1090 | - var propType = getPropType(propValue); | |
| 1091 | - if (propType !== "object") return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type `" + propType + "` " + ("supplied to `" + componentName + "`, expected `object`.")); | |
| 1092 | - for (var key in assign({}, props[propName], shapeTypes)) { | |
| 1093 | - var checker = shapeTypes[key]; | |
| 1094 | - if (has(shapeTypes, key) && typeof checker !== "function") return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker)); | |
| 1095 | - if (!checker) return new PropTypeError("Invalid " + location + " `" + propFullName + "` key `" + key + "` supplied to `" + componentName + "`.\nBad object: " + JSON.stringify(props[propName], null, " ") + "\nValid keys: " + JSON.stringify(Object.keys(shapeTypes), null, " ")); | |
| 1096 | - var error = checker(propValue, key, componentName, location, propFullName + "." + key, ReactPropTypesSecret); | |
| 1097 | - if (error) return error; | |
| 1098 | - } | |
| 1099 | - return null; | |
| 1100 | - } | |
| 1101 | - return createChainableTypeChecker(validate); | |
| 1102 | - } | |
| 1103 | - function isNode(propValue) { | |
| 1104 | - switch (typeof propValue) { | |
| 1105 | - case "number": | |
| 1106 | - case "string": | |
| 1107 | - case "undefined": return true; | |
| 1108 | - case "boolean": return !propValue; | |
| 1109 | - case "object": | |
| 1110 | - if (Array.isArray(propValue)) return propValue.every(isNode); | |
| 1111 | - if (propValue === null || isValidElement(propValue)) return true; | |
| 1112 | - var iteratorFn = getIteratorFn(propValue); | |
| 1113 | - if (iteratorFn) { | |
| 1114 | - var iterator = iteratorFn.call(propValue); | |
| 1115 | - var step; | |
| 1116 | - if (iteratorFn !== propValue.entries) { | |
| 1117 | - while (!(step = iterator.next()).done) if (!isNode(step.value)) return false; | |
| 1118 | - } else while (!(step = iterator.next()).done) { | |
| 1119 | - var entry = step.value; | |
| 1120 | - if (entry) { | |
| 1121 | - if (!isNode(entry[1])) return false; | |
| 1122 | - } | |
| 1123 | - } | |
| 1124 | - } else return false; | |
| 1125 | - return true; | |
| 1126 | - default: return false; | |
| 1127 | - } | |
| 1128 | - } | |
| 1129 | - function isSymbol(propType, propValue) { | |
| 1130 | - if (propType === "symbol") return true; | |
| 1131 | - if (!propValue) return false; | |
| 1132 | - if (propValue["@@toStringTag"] === "Symbol") return true; | |
| 1133 | - if (typeof Symbol === "function" && propValue instanceof Symbol) return true; | |
| 1134 | - return false; | |
| 1135 | - } | |
| 1136 | - function getPropType(propValue) { | |
| 1137 | - var propType = typeof propValue; | |
| 1138 | - if (Array.isArray(propValue)) return "array"; | |
| 1139 | - if (propValue instanceof RegExp) return "object"; | |
| 1140 | - if (isSymbol(propType, propValue)) return "symbol"; | |
| 1141 | - return propType; | |
| 1142 | - } | |
| 1143 | - function getPreciseType(propValue) { | |
| 1144 | - if (typeof propValue === "undefined" || propValue === null) return "" + propValue; | |
| 1145 | - var propType = getPropType(propValue); | |
| 1146 | - if (propType === "object") { | |
| 1147 | - if (propValue instanceof Date) return "date"; | |
| 1148 | - else if (propValue instanceof RegExp) return "regexp"; | |
| 1149 | - } | |
| 1150 | - return propType; | |
| 1151 | - } | |
| 1152 | - function getPostfixForTypeWarning(value) { | |
| 1153 | - var type = getPreciseType(value); | |
| 1154 | - switch (type) { | |
| 1155 | - case "array": | |
| 1156 | - case "object": return "an " + type; | |
| 1157 | - case "boolean": | |
| 1158 | - case "date": | |
| 1159 | - case "regexp": return "a " + type; | |
| 1160 | - default: return type; | |
| 1161 | - } | |
| 1162 | - } | |
| 1163 | - function getClassName(propValue) { | |
| 1164 | - if (!propValue.constructor || !propValue.constructor.name) return ANONYMOUS; | |
| 1165 | - return propValue.constructor.name; | |
| 1166 | - } | |
| 1167 | - ReactPropTypes.checkPropTypes = checkPropTypes; | |
| 1168 | - ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache; | |
| 1169 | - ReactPropTypes.PropTypes = ReactPropTypes; | |
| 1170 | - return ReactPropTypes; | |
| 1171 | - }; | |
| 1172 | - })); | |
| 3266 | + * Copyright (c) 2013-present, Facebook, Inc. | |
| 3267 | + * | |
| 3268 | + * This source code is licensed under the MIT license found in the | |
| 3269 | + * LICENSE file in the root directory of this source tree. | |
| 3270 | + */ | |
| 1173 | 3271 | |
| 1174 | -//#endregion | |
| 1175 | -//#region node_modules/prop-types/index.js | |
| 1176 | - var require_prop_types = /* @__PURE__ */ __commonJSMin(((exports, module) => { | |
| 1177 | - var ReactIs = require_react_is(); | |
| 1178 | - var throwOnDirectAccess = true; | |
| 1179 | - module.exports = require_factoryWithTypeCheckers()(ReactIs.isElement, throwOnDirectAccess); | |
| 1180 | - })); | |
| 1181 | 3272 | |
| 1182 | -//#endregion | |
| 1183 | -//#region modules/checklist/assets/js/app/components/reminder-modal.js | |
| 1184 | - var import_prop_types = /* @__PURE__ */ __toESM(require_prop_types()); | |
| 1185 | - var ReminderModal = function ReminderModal(_ref) { | |
| 1186 | - var setOpen = _ref.setOpen; | |
| 1187 | - return /*#__PURE__*/ react.default.createElement(_elementor_ui.Card, { | |
| 1188 | - elevation: 0, | |
| 1189 | - sx: { maxWidth: 336 }, | |
| 1190 | - className: "e-checklist-infotip-first-time-closed" | |
| 1191 | - }, /*#__PURE__*/ react.default.createElement(_elementor_ui.CardContent, null, /*#__PURE__*/ react.default.createElement(_elementor_ui.Typography, { | |
| 1192 | - variant: "subtitle2", | |
| 1193 | - sx: { mb: 2 } | |
| 1194 | - }, (0, _wordpress_i18n.__)("Looking for your Launchpad Checklist?", "elementor")), /*#__PURE__*/ react.default.createElement(_elementor_ui.Typography, { variant: "body2" }, (0, _wordpress_i18n.__)("Click the launch icon to continue setting up your site.", "elementor"))), /*#__PURE__*/ react.default.createElement(_elementor_ui.CardActions, null, /*#__PURE__*/ react.default.createElement(_elementor_ui.Button, { | |
| 1195 | - size: "small", | |
| 1196 | - variant: "contained", | |
| 1197 | - className: "infotip-first-time-closed-button", | |
| 1198 | - onClick: function closeChecklist(e) { | |
| 1199 | - e.stopPropagation(); | |
| 1200 | - setOpen(false); | |
| 1201 | - } | |
| 1202 | - }, (0, _wordpress_i18n.__)("Got it", "elementor")))); | |
| 1203 | - }; | |
| 1204 | - ReminderModal.propTypes = { setOpen: import_prop_types.default.func.isRequired }; | |
| 1205 | 3273 | |
| 1206 | -//#endregion | |
| 1207 | -//#region modules/checklist/assets/js/utils/consts.js | |
| 1208 | - var STEPS_ROUTE = "checklist/steps"; | |
| 1209 | - var USER_PROGRESS_ROUTE = "checklist/user-progress"; | |
| 1210 | - var STEP = { | |
| 1211 | - IS_MARKED_COMPLETED: "is_marked_completed", | |
| 1212 | - IS_IMMUTABLE_COMPLETED: "is_immutable_completed", | |
| 1213 | - IS_ABSOLUTE_COMPLETED: "is_absolute_completed", | |
| 1214 | - PROMOTION_DATA: "promotion_data" | |
| 1215 | - }; | |
| 1216 | - var USER_PROGRESS = { | |
| 1217 | - LAST_OPENED_TIMESTAMP: "last_opened_timestamp", | |
| 1218 | - SHOULD_OPEN_IN_EDITOR: "should_open_in_editor", | |
| 1219 | - CHECKLIST_CLOSED_IN_THE_EDITOR_FOR_FIRST_TIME: "first_closed_checklist_in_editor", | |
| 1220 | - IS_POPUP_MINIMIZED: "is_popup_minimized", | |
| 1221 | - EDITOR_VISIT_COUNT: "e_editor_counter" | |
| 1222 | - }; | |
| 1223 | - var STEP_IDS_TO_COMPLETE_IN_EDITOR = ["add_logo", "set_fonts_and_colors"]; | |
| 1224 | - var PANEL_ROUTES = { | |
| 1225 | - add_logo: "panel/global/settings-site-identity", | |
| 1226 | - set_fonts_and_colors: "panel/global/global-typography" | |
| 1227 | - }; | |
| 1228 | - var MIXPANEL_CHECKLIST_STEPS = { | |
| 1229 | - UPGRADE: "upgrade", | |
| 1230 | - ACTION: "action", | |
| 1231 | - DONE: "done", | |
| 1232 | - UNDONE: "undone", | |
| 1233 | - TITLE: "title", | |
| 1234 | - WELL_DONE: "well_done", | |
| 1235 | - CHECKLIST_HEADER_CLOSE: "checklistHeaderClose", | |
| 1236 | - ACCORDION_SECTION: "accordionSection" | |
| 1237 | - }; | |
| 3274 | +var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED'; | |
| 1238 | 3275 | |
| 1239 | -//#endregion | |
| 1240 | -//#region node_modules/@babel/runtime/helpers/esm/typeof.js | |
| 1241 | - function _typeof(o) { | |
| 1242 | - "@babel/helpers - typeof"; | |
| 1243 | - return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) { | |
| 1244 | - return typeof o; | |
| 1245 | - } : function(o) { | |
| 1246 | - return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; | |
| 1247 | - }, _typeof(o); | |
| 1248 | - } | |
| 3276 | +module.exports = ReactPropTypesSecret; | |
| 1249 | 3277 | |
| 1250 | -//#endregion | |
| 1251 | -//#region node_modules/@babel/runtime/helpers/esm/toPrimitive.js | |
| 1252 | - function toPrimitive(t, r) { | |
| 1253 | - if ("object" != _typeof(t) || !t) return t; | |
| 1254 | - var e = t[Symbol.toPrimitive]; | |
| 1255 | - if (void 0 !== e) { | |
| 1256 | - var i = e.call(t, r || "default"); | |
| 1257 | - if ("object" != _typeof(i)) return i; | |
| 1258 | - throw new TypeError("@@toPrimitive must return a primitive value."); | |
| 1259 | - } | |
| 1260 | - return ("string" === r ? String : Number)(t); | |
| 1261 | - } | |
| 1262 | 3278 | |
| 1263 | -//#endregion | |
| 1264 | -//#region node_modules/@babel/runtime/helpers/esm/toPropertyKey.js | |
| 1265 | - function toPropertyKey(t) { | |
| 1266 | - var i = toPrimitive(t, "string"); | |
| 1267 | - return "symbol" == _typeof(i) ? i : i + ""; | |
| 1268 | - } | |
| 3279 | +/***/ }), | |
| 1269 | 3280 | |
| 1270 | -//#endregion | |
| 1271 | -//#region node_modules/@babel/runtime/helpers/esm/defineProperty.js | |
| 1272 | - function _defineProperty(e, r, t) { | |
| 1273 | - return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, { | |
| 1274 | - value: t, | |
| 1275 | - enumerable: !0, | |
| 1276 | - configurable: !0, | |
| 1277 | - writable: !0 | |
| 1278 | - }) : e[r] = t, e; | |
| 1279 | - } | |
| 3281 | +/***/ "../node_modules/prop-types/lib/has.js": | |
| 3282 | +/*!*********************************************!*\ | |
| 3283 | + !*** ../node_modules/prop-types/lib/has.js ***! | |
| 3284 | + \*********************************************/ | |
| 3285 | +/***/ ((module) => { | |
| 1280 | 3286 | |
| 1281 | -//#endregion | |
| 1282 | -//#region modules/checklist/assets/js/utils/functions.js | |
| 1283 | - function ownKeys$2(e, r) { | |
| 1284 | - var t = Object.keys(e); | |
| 1285 | - if (Object.getOwnPropertySymbols) { | |
| 1286 | - var o = Object.getOwnPropertySymbols(e); | |
| 1287 | - r && (o = o.filter(function(r) { | |
| 1288 | - return Object.getOwnPropertyDescriptor(e, r).enumerable; | |
| 1289 | - })), t.push.apply(t, o); | |
| 1290 | - } | |
| 1291 | - return t; | |
| 1292 | - } | |
| 1293 | - __name(ownKeys$2, "ownKeys"); | |
| 1294 | - function _objectSpread$2(e) { | |
| 1295 | - for (var r = 1; r < arguments.length; r++) { | |
| 1296 | - var t = null != arguments[r] ? arguments[r] : {}; | |
| 1297 | - r % 2 ? ownKeys$2(Object(t), !0).forEach(function(r) { | |
| 1298 | - _defineProperty(e, r, t[r]); | |
| 1299 | - }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2(Object(t)).forEach(function(r) { | |
| 1300 | - Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); | |
| 1301 | - }); | |
| 1302 | - } | |
| 1303 | - return e; | |
| 1304 | - } | |
| 1305 | - __name(_objectSpread$2, "_objectSpread"); | |
| 1306 | - var IS_MARKED_COMPLETED$1 = STEP.IS_MARKED_COMPLETED; | |
| 1307 | - var IS_ABSOLUTE_COMPLETED$1 = STEP.IS_ABSOLUTE_COMPLETED; | |
| 1308 | - var IS_IMMUTABLE_COMPLETED$1 = STEP.IS_IMMUTABLE_COMPLETED; | |
| 1309 | - var PROMOTION_DATA$1 = STEP.PROMOTION_DATA; | |
| 1310 | - function isStepChecked(step) { | |
| 1311 | - return !step[PROMOTION_DATA$1] && (step[IS_MARKED_COMPLETED$1] || step[IS_ABSOLUTE_COMPLETED$1] || step[IS_IMMUTABLE_COMPLETED$1]); | |
| 1312 | - } | |
| 1313 | - function toggleChecklistPopup() { | |
| 1314 | - $e.run("checklist/toggle-popup"); | |
| 1315 | - } | |
| 1316 | - function fetchSteps() { | |
| 1317 | - return _fetchSteps.apply(this, arguments); | |
| 1318 | - } | |
| 1319 | - function _fetchSteps() { | |
| 1320 | - _fetchSteps = _asyncToGenerator(/*#__PURE__*/ import_regenerator.default.mark(function _callee() { | |
| 1321 | - var _response$data; | |
| 1322 | - var response; | |
| 1323 | - return import_regenerator.default.wrap(function(_context) { | |
| 1324 | - while (1) switch (_context.prev = _context.next) { | |
| 1325 | - case 0: | |
| 1326 | - _context.next = 1; | |
| 1327 | - return $e.data.get(STEPS_ROUTE, {}, { refresh: true }); | |
| 1328 | - case 1: | |
| 1329 | - response = _context.sent; | |
| 1330 | - return _context.abrupt("return", (response === null || response === void 0 || (_response$data = response.data) === null || _response$data === void 0 ? void 0 : _response$data.data) || null); | |
| 1331 | - case 2: | |
| 1332 | - case "end": return _context.stop(); | |
| 1333 | - } | |
| 1334 | - }, _callee); | |
| 1335 | - })); | |
| 1336 | - return _fetchSteps.apply(this, arguments); | |
| 1337 | - } | |
| 1338 | - function fetchUserProgress() { | |
| 1339 | - return _fetchUserProgress.apply(this, arguments); | |
| 1340 | - } | |
| 1341 | - function _fetchUserProgress() { | |
| 1342 | - _fetchUserProgress = _asyncToGenerator(/*#__PURE__*/ import_regenerator.default.mark(function _callee2() { | |
| 1343 | - var _response$data2; | |
| 1344 | - var response; | |
| 1345 | - return import_regenerator.default.wrap(function(_context2) { | |
| 1346 | - while (1) switch (_context2.prev = _context2.next) { | |
| 1347 | - case 0: | |
| 1348 | - _context2.next = 1; | |
| 1349 | - return $e.data.get(USER_PROGRESS_ROUTE, {}, { refresh: true }); | |
| 1350 | - case 1: | |
| 1351 | - response = _context2.sent; | |
| 1352 | - return _context2.abrupt("return", (response === null || response === void 0 || (_response$data2 = response.data) === null || _response$data2 === void 0 ? void 0 : _response$data2.data) || null); | |
| 1353 | - case 2: | |
| 1354 | - case "end": return _context2.stop(); | |
| 1355 | - } | |
| 1356 | - }, _callee2); | |
| 1357 | - })); | |
| 1358 | - return _fetchUserProgress.apply(this, arguments); | |
| 1359 | - } | |
| 1360 | - function updateStep(_x, _x2) { | |
| 1361 | - return _updateStep.apply(this, arguments); | |
| 1362 | - } | |
| 1363 | - function _updateStep() { | |
| 1364 | - _updateStep = _asyncToGenerator(/*#__PURE__*/ import_regenerator.default.mark(function _callee3(id, data) { | |
| 1365 | - return import_regenerator.default.wrap(function(_context3) { | |
| 1366 | - while (1) switch (_context3.prev = _context3.next) { | |
| 1367 | - case 0: | |
| 1368 | - _context3.next = 1; | |
| 1369 | - return $e.data.update(STEPS_ROUTE, _objectSpread$2({ id }, data), { id }); | |
| 1370 | - case 1: return _context3.abrupt("return", _context3.sent); | |
| 1371 | - case 2: | |
| 1372 | - case "end": return _context3.stop(); | |
| 1373 | - } | |
| 1374 | - }, _callee3); | |
| 1375 | - })); | |
| 1376 | - return _updateStep.apply(this, arguments); | |
| 1377 | - } | |
| 1378 | - function updateUserProgress(_x3) { | |
| 1379 | - return _updateUserProgress.apply(this, arguments); | |
| 1380 | - } | |
| 1381 | - function _updateUserProgress() { | |
| 1382 | - _updateUserProgress = _asyncToGenerator(/*#__PURE__*/ import_regenerator.default.mark(function _callee4(data) { | |
| 1383 | - return import_regenerator.default.wrap(function(_context4) { | |
| 1384 | - while (1) switch (_context4.prev = _context4.next) { | |
| 1385 | - case 0: | |
| 1386 | - _context4.next = 1; | |
| 1387 | - return $e.data.update(USER_PROGRESS_ROUTE, data); | |
| 1388 | - case 1: return _context4.abrupt("return", _context4.sent); | |
| 1389 | - case 2: | |
| 1390 | - case "end": return _context4.stop(); | |
| 1391 | - } | |
| 1392 | - }, _callee4); | |
| 1393 | - })); | |
| 1394 | - return _updateUserProgress.apply(this, arguments); | |
| 1395 | - } | |
| 1396 | - function getAndUpdateStep(id, step, key, value) { | |
| 1397 | - if (step.config.id !== id) return step; | |
| 1398 | - return _objectSpread$2(_objectSpread$2({}, step), {}, _defineProperty({}, key, value)); | |
| 1399 | - } | |
| 1400 | - function addMixpanelTrackingChecklistSteps(name, action) { | |
| 1401 | - var element = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : "button"; | |
| 1402 | - var documentMetaData = getDocumentMetaDataMixpanel(); | |
| 1403 | - name = name.replace(/_/g, ""); | |
| 1404 | - var eventName = "checklist_steps_".concat(action, "_").concat(name); | |
| 1405 | - return elementorCommon.eventsManager.dispatchEvent(eventName, _objectSpread$2({ | |
| 1406 | - location: elementorCommon.eventsManager.config.locations.elementorEditor, | |
| 1407 | - secondaryLocation: elementorCommon.eventsManager.config.secondaryLocations.checklistSteps, | |
| 1408 | - trigger: elementorCommon.eventsManager.config.triggers.click, | |
| 1409 | - element: elementorCommon.eventsManager.config.elements[element] | |
| 1410 | - }, documentMetaData)); | |
| 1411 | - } | |
| 1412 | - function addMixpanelTrackingChecklistHeader(name) { | |
| 1413 | - var documentMetaData = getDocumentMetaDataMixpanel(); | |
| 1414 | - return elementorCommon.eventsManager.dispatchEvent(elementorCommon.eventsManager.config.names.elementorEditor.checklist[name], _objectSpread$2({ | |
| 1415 | - location: elementorCommon.eventsManager.config.locations.elementorEditor, | |
| 1416 | - secondaryLocation: elementorCommon.eventsManager.config.secondaryLocations.checklistHeader, | |
| 1417 | - trigger: elementorCommon.eventsManager.config.triggers.click, | |
| 1418 | - element: elementorCommon.eventsManager.config.elements.buttonIcon | |
| 1419 | - }, documentMetaData)); | |
| 1420 | - } | |
| 1421 | - function addMixpanelTrackingChecklistTopBar(togglePopupState) { | |
| 1422 | - var documentMetaData = getDocumentMetaDataMixpanel(); | |
| 1423 | - var name = !togglePopupState ? "launchpadOn" : "launchpadOff"; | |
| 1424 | - return elementorCommon.eventsManager.dispatchEvent(elementorCommon.eventsManager.config.names.topBar[name], _objectSpread$2({ | |
| 1425 | - location: elementorCommon.eventsManager.config.locations.topBar, | |
| 1426 | - secondaryLocation: elementorCommon.eventsManager.config.secondaryLocations.launchpad, | |
| 1427 | - trigger: elementorCommon.eventsManager.config.triggers.toggleClick, | |
| 1428 | - element: elementorCommon.eventsManager.config.elements.buttonIcon | |
| 1429 | - }, documentMetaData)); | |
| 1430 | - } | |
| 1431 | - function dispatchChecklistOpenEvent() { | |
| 1432 | - var documentMetaData = getDocumentMetaDataMixpanel(); | |
| 1433 | - return elementorCommon.eventsManager.dispatchEvent(elementorCommon.eventsManager.config.names.elementorEditor.checklist.checklistFirstPopup, _objectSpread$2({ | |
| 1434 | - location: elementorCommon.eventsManager.config.locations.elementorEditor, | |
| 1435 | - secondaryLocation: elementorCommon.eventsManager.config.secondaryLocations.launchpad, | |
| 1436 | - trigger: elementorCommon.eventsManager.config.triggers.editorLoaded, | |
| 1437 | - element: elementorCommon.eventsManager.config.elements.launchpadChecklist | |
| 1438 | - }, documentMetaData)); | |
| 1439 | - } | |
| 1440 | - function getDocumentMetaDataMixpanel() { | |
| 1441 | - return { | |
| 1442 | - postId: elementor.getPreviewContainer().document.config.id, | |
| 1443 | - postTitle: elementor.getPreviewContainer().model.attributes.settings.attributes.post_title, | |
| 1444 | - postTypeTitle: elementor.getPreviewContainer().document.config.post_type_title, | |
| 1445 | - documentType: elementor.getPreviewContainer().document.config.type | |
| 1446 | - }; | |
| 1447 | - } | |
| 3287 | +module.exports = Function.call.bind(Object.prototype.hasOwnProperty); | |
| 1448 | 3288 | |
| 1449 | -//#endregion | |
| 1450 | -//#region modules/checklist/assets/js/topbar-icon.js | |
| 1451 | - var CHECKLIST_CLOSED_IN_THE_EDITOR_FOR_FIRST_TIME$1 = USER_PROGRESS.CHECKLIST_CLOSED_IN_THE_EDITOR_FOR_FIRST_TIME; | |
| 1452 | - var TopBarIcon = function TopBarIcon() { | |
| 1453 | - var _useState2 = _slicedToArray((0, react.useState)(false), 2); | |
| 1454 | - var hasRoot = _useState2[0]; | |
| 1455 | - var setHasRoot = _useState2[1]; | |
| 1456 | - var _useState4 = _slicedToArray((0, react.useState)(false), 2); | |
| 1457 | - var open = _useState4[0]; | |
| 1458 | - var setOpen = _useState4[1]; | |
| 1459 | - var _useQuery = (0, _elementor_query.useQuery)({ | |
| 1460 | - queryKey: ["closedForFirstTime"], | |
| 1461 | - queryFn: fetchUserProgress | |
| 1462 | - }); | |
| 1463 | - var error = _useQuery.error; | |
| 1464 | - var userProgress = _useQuery.data; | |
| 1465 | - var closedForFirstTime = userProgress === null || userProgress === void 0 ? void 0 : userProgress[CHECKLIST_CLOSED_IN_THE_EDITOR_FOR_FIRST_TIME$1]; | |
| 1466 | - (0, react.useEffect)(function() { | |
| 1467 | - return (0, _elementor_editor_v1_adapters.__privateListenTo)((0, _elementor_editor_v1_adapters.commandEndEvent)("checklist/toggle-popup"), function(e) { | |
| 1468 | - setHasRoot(e.args.isOpen); | |
| 1469 | - }); | |
| 1470 | - }, [hasRoot]); | |
| 1471 | - (0, react.useEffect)(function() { | |
| 1472 | - var handleFirstClosed = function handleFirstClosed() { | |
| 1473 | - setOpen(true); | |
| 1474 | - }; | |
| 1475 | - window.addEventListener("elementor/checklist/first_close", handleFirstClosed); | |
| 1476 | - return function() { | |
| 1477 | - window.removeEventListener("elementor/checklist/first_close", handleFirstClosed); | |
| 1478 | - }; | |
| 1479 | - }, []); | |
| 1480 | - if (error) return null; | |
| 1481 | - return hasRoot && !closedForFirstTime ? /*#__PURE__*/ react.createElement(_elementor_icons_RocketIcon.default, null) : /*#__PURE__*/ react.createElement(_elementor_ui.Infotip, { | |
| 1482 | - placement: "bottom-start", | |
| 1483 | - content: /*#__PURE__*/ react.createElement(ReminderModal, { | |
| 1484 | - setHasRoot, | |
| 1485 | - setOpen | |
| 1486 | - }), | |
| 1487 | - open, | |
| 1488 | - PopperProps: { modifiers: [{ | |
| 1489 | - name: "offset", | |
| 1490 | - options: { offset: [-16, 12] } | |
| 1491 | - }] } | |
| 1492 | - }, /*#__PURE__*/ react.createElement(_elementor_icons_RocketIcon.default, null)); | |
| 1493 | - }; | |
| 1494 | 3289 | |
| 1495 | -//#endregion | |
| 1496 | -//#region node_modules/@babel/runtime/helpers/esm/classCallCheck.js | |
| 1497 | - function _classCallCheck(a, n) { | |
| 1498 | - if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); | |
| 1499 | - } | |
| 3290 | +/***/ }), | |
| 1500 | 3291 | |
| 1501 | -//#endregion | |
| 1502 | -//#region node_modules/@babel/runtime/helpers/esm/createClass.js | |
| 1503 | - function _defineProperties(e, r) { | |
| 1504 | - for (var t = 0; t < r.length; t++) { | |
| 1505 | - var o = r[t]; | |
| 1506 | - o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, toPropertyKey(o.key), o); | |
| 1507 | - } | |
| 1508 | - } | |
| 1509 | - function _createClass(e, r, t) { | |
| 1510 | - return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; | |
| 1511 | - } | |
| 3292 | +/***/ "../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js": | |
| 3293 | +/*!************************************************************************************!*\ | |
| 3294 | + !*** ../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js ***! | |
| 3295 | + \************************************************************************************/ | |
| 3296 | +/***/ ((__unused_webpack_module, exports) => { | |
| 1512 | 3297 | |
| 1513 | -//#endregion | |
| 1514 | -//#region node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js | |
| 1515 | - function _assertThisInitialized(e) { | |
| 1516 | - if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); | |
| 1517 | - return e; | |
| 1518 | - } | |
| 3298 | +"use strict"; | |
| 3299 | +/** @license React v16.13.1 | |
| 3300 | + * react-is.development.js | |
| 3301 | + * | |
| 3302 | + * Copyright (c) Facebook, Inc. and its affiliates. | |
| 3303 | + * | |
| 3304 | + * This source code is licensed under the MIT license found in the | |
| 3305 | + * LICENSE file in the root directory of this source tree. | |
| 3306 | + */ | |
| 1519 | 3307 | |
| 1520 | -//#endregion | |
| 1521 | -//#region node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js | |
| 1522 | - function _possibleConstructorReturn(t, e) { | |
| 1523 | - if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; | |
| 1524 | - if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); | |
| 1525 | - return _assertThisInitialized(t); | |
| 1526 | - } | |
| 1527 | 3308 | |
| 1528 | -//#endregion | |
| 1529 | -//#region node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js | |
| 1530 | - function _getPrototypeOf(t) { | |
| 1531 | - return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(t) { | |
| 1532 | - return t.__proto__ || Object.getPrototypeOf(t); | |
| 1533 | - }, _getPrototypeOf(t); | |
| 1534 | - } | |
| 1535 | 3309 | |
| 1536 | -//#endregion | |
| 1537 | -//#region node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js | |
| 1538 | - function _setPrototypeOf(t, e) { | |
| 1539 | - return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, e) { | |
| 1540 | - return t.__proto__ = e, t; | |
| 1541 | - }, _setPrototypeOf(t, e); | |
| 1542 | - } | |
| 1543 | 3310 | |
| 1544 | -//#endregion | |
| 1545 | -//#region node_modules/@babel/runtime/helpers/esm/inherits.js | |
| 1546 | - function _inherits(t, e) { | |
| 1547 | - if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); | |
| 1548 | - t.prototype = Object.create(e && e.prototype, { constructor: { | |
| 1549 | - value: t, | |
| 1550 | - writable: !0, | |
| 1551 | - configurable: !0 | |
| 1552 | - } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); | |
| 1553 | - } | |
| 1554 | 3311 | |
| 1555 | -//#endregion | |
| 1556 | -//#region node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js | |
| 1557 | - function _arrayWithoutHoles(r) { | |
| 1558 | - if (Array.isArray(r)) return _arrayLikeToArray(r); | |
| 1559 | - } | |
| 3312 | +if (true) { | |
| 3313 | + (function() { | |
| 3314 | +'use strict'; | |
| 1560 | 3315 | |
| 1561 | -//#endregion | |
| 1562 | -//#region node_modules/@babel/runtime/helpers/esm/iterableToArray.js | |
| 1563 | - function _iterableToArray(r) { | |
| 1564 | - if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); | |
| 1565 | - } | |
| 3316 | +// The Symbol used to tag the ReactElement-like types. If there is no native Symbol | |
| 3317 | +// nor polyfill, then a plain number is used for performance. | |
| 3318 | +var hasSymbol = typeof Symbol === 'function' && Symbol.for; | |
| 3319 | +var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7; | |
| 3320 | +var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca; | |
| 3321 | +var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb; | |
| 3322 | +var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc; | |
| 3323 | +var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2; | |
| 3324 | +var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd; | |
| 3325 | +var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary | |
| 3326 | +// (unstable) APIs that have been removed. Can we remove the symbols? | |
| 1566 | 3327 | |
| 1567 | -//#endregion | |
| 1568 | -//#region node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js | |
| 1569 | - function _nonIterableSpread() { | |
| 1570 | - throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); | |
| 1571 | - } | |
| 3328 | +var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf; | |
| 3329 | +var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf; | |
| 3330 | +var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0; | |
| 3331 | +var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1; | |
| 3332 | +var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8; | |
| 3333 | +var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3; | |
| 3334 | +var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4; | |
| 3335 | +var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9; | |
| 3336 | +var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5; | |
| 3337 | +var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6; | |
| 3338 | +var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7; | |
| 1572 | 3339 | |
| 1573 | -//#endregion | |
| 1574 | -//#region node_modules/@babel/runtime/helpers/esm/toConsumableArray.js | |
| 1575 | - function _toConsumableArray(r) { | |
| 1576 | - return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); | |
| 1577 | - } | |
| 3340 | +function isValidElementType(type) { | |
| 3341 | + return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill. | |
| 3342 | + 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); | |
| 3343 | +} | |
| 1578 | 3344 | |
| 1579 | -//#endregion | |
| 1580 | -//#region modules/checklist/assets/js/app/components/progress.js | |
| 1581 | - var Progress = function Progress(_ref) { | |
| 1582 | - var steps = _ref.steps; | |
| 1583 | - var progress = steps.filter(isStepChecked).length * 100 / steps.length; | |
| 1584 | - return /*#__PURE__*/ react.default.createElement(_elementor_ui.Box, { sx: { | |
| 1585 | - display: "flex", | |
| 1586 | - alignItems: "center", | |
| 1587 | - gap: 1 | |
| 1588 | - } }, /*#__PURE__*/ react.default.createElement(_elementor_ui.Box, { sx: { width: "100%" } }, /*#__PURE__*/ react.default.createElement(_elementor_ui.LinearProgress, { | |
| 1589 | - variant: "determinate", | |
| 1590 | - value: progress | |
| 1591 | - })), /*#__PURE__*/ react.default.createElement(_elementor_ui.Box, { sx: { width: "fit-content" } }, /*#__PURE__*/ react.default.createElement(_elementor_ui.Typography, { | |
| 1592 | - variant: "body2", | |
| 1593 | - color: "text.secondary" | |
| 1594 | - }, "".concat(Math.round(progress), "%")))); | |
| 1595 | - }; | |
| 1596 | - Progress.propTypes = { steps: import_prop_types.default.array.isRequired }; | |
| 3345 | +function typeOf(object) { | |
| 3346 | + if (typeof object === 'object' && object !== null) { | |
| 3347 | + var $$typeof = object.$$typeof; | |
| 1597 | 3348 | |
| 1598 | -//#endregion | |
| 1599 | -//#region modules/checklist/assets/js/app/components/header.js | |
| 1600 | - var CHECKLIST_CLOSED_IN_THE_EDITOR_FOR_FIRST_TIME = USER_PROGRESS.CHECKLIST_CLOSED_IN_THE_EDITOR_FOR_FIRST_TIME; | |
| 1601 | - var CHECKLIST_HEADER_CLOSE = MIXPANEL_CHECKLIST_STEPS.CHECKLIST_HEADER_CLOSE; | |
| 1602 | - var Header = function Header(_ref) { | |
| 1603 | - var steps = _ref.steps; | |
| 1604 | - var isMinimized = _ref.isMinimized; | |
| 1605 | - var toggleIsMinimized = _ref.toggleIsMinimized; | |
| 1606 | - var userProgress = (0, _elementor_query.useQuery)({ | |
| 1607 | - queryKey: ["closedForFirstTime"], | |
| 1608 | - queryFn: fetchUserProgress | |
| 1609 | - }).data; | |
| 1610 | - var closedForFirstTime = (userProgress === null || userProgress === void 0 ? void 0 : userProgress[CHECKLIST_CLOSED_IN_THE_EDITOR_FOR_FIRST_TIME]) || false; | |
| 1611 | - var closeChecklist = /*#__PURE__*/ function() { | |
| 1612 | - var _ref2 = _asyncToGenerator(/*#__PURE__*/ import_regenerator.default.mark(function _callee() { | |
| 1613 | - return import_regenerator.default.wrap(function(_context) { | |
| 1614 | - while (1) switch (_context.prev = _context.next) { | |
| 1615 | - case 0: | |
| 1616 | - addMixpanelTrackingChecklistHeader(CHECKLIST_HEADER_CLOSE); | |
| 1617 | - if (closedForFirstTime) { | |
| 1618 | - _context.next = 2; | |
| 1619 | - break; | |
| 1620 | - } | |
| 1621 | - _context.next = 1; | |
| 1622 | - return updateUserProgress(_defineProperty({}, CHECKLIST_CLOSED_IN_THE_EDITOR_FOR_FIRST_TIME, true)); | |
| 1623 | - case 1: window.dispatchEvent(new CustomEvent("elementor/checklist/first_close", { detail: { message: "firstClose" } })); | |
| 1624 | - case 2: toggleChecklistPopup(); | |
| 1625 | - case 3: | |
| 1626 | - case "end": return _context.stop(); | |
| 1627 | - } | |
| 1628 | - }, _callee); | |
| 1629 | - })); | |
| 1630 | - return function closeChecklist() { | |
| 1631 | - return _ref2.apply(this, arguments); | |
| 1632 | - }; | |
| 1633 | - }(); | |
| 1634 | - return /*#__PURE__*/ react.createElement(react.Fragment, null, /*#__PURE__*/ react.createElement(_elementor_ui.AppBar, { | |
| 1635 | - elevation: 0, | |
| 1636 | - position: "sticky", | |
| 1637 | - sx: { | |
| 1638 | - p: 2, | |
| 1639 | - backgroundColor: "background.default" | |
| 1640 | - } | |
| 1641 | - }, /*#__PURE__*/ react.createElement(_elementor_ui.Toolbar, { | |
| 1642 | - variant: "dense", | |
| 1643 | - disableGutters: true | |
| 1644 | - }, /*#__PURE__*/ react.createElement(_elementor_ui.Typography, { | |
| 1645 | - variant: "subtitle1", | |
| 1646 | - sx: { flexGrow: 1 } | |
| 1647 | - }, (0, _wordpress_i18n.__)("Let's make a productivity boost", "elementor")), /*#__PURE__*/ react.createElement(_elementor_ui.IconButton, { | |
| 1648 | - size: "small", | |
| 1649 | - onClick: toggleIsMinimized, | |
| 1650 | - "aria-expanded": !isMinimized | |
| 1651 | - }, isMinimized ? /*#__PURE__*/ react.createElement(_elementor_icons.ExpandDiagonalIcon, null) : /*#__PURE__*/ react.createElement(_elementor_icons.MinimizeDiagonalIcon, null)), /*#__PURE__*/ react.createElement(_elementor_ui.CloseButton, { | |
| 1652 | - sx: { mr: -.5 }, | |
| 1653 | - size: "small", | |
| 1654 | - onClick: closeChecklist | |
| 1655 | - })), /*#__PURE__*/ react.createElement(Progress, { steps })), /*#__PURE__*/ react.createElement(_elementor_ui.Divider, null)); | |
| 1656 | - }; | |
| 1657 | - Header.propTypes = { | |
| 1658 | - steps: import_prop_types.default.array.isRequired, | |
| 1659 | - isMinimized: import_prop_types.default.bool.isRequired, | |
| 1660 | - toggleIsMinimized: import_prop_types.default.func.isRequired | |
| 1661 | - }; | |
| 3349 | + switch ($$typeof) { | |
| 3350 | + case REACT_ELEMENT_TYPE: | |
| 3351 | + var type = object.type; | |
| 1662 | 3352 | |
| 1663 | -//#endregion | |
| 1664 | -//#region modules/checklist/assets/js/app/components/checklist-card-content.js | |
| 1665 | - var IS_MARKED_COMPLETED = STEP.IS_MARKED_COMPLETED; | |
| 1666 | - var IS_ABSOLUTE_COMPLETED = STEP.IS_ABSOLUTE_COMPLETED; | |
| 1667 | - var IS_IMMUTABLE_COMPLETED = STEP.IS_IMMUTABLE_COMPLETED; | |
| 1668 | - var DONE = MIXPANEL_CHECKLIST_STEPS.DONE; | |
| 1669 | - var UNDONE = MIXPANEL_CHECKLIST_STEPS.UNDONE; | |
| 1670 | - var ACTION$1 = MIXPANEL_CHECKLIST_STEPS.ACTION; | |
| 1671 | - var UPGRADE = MIXPANEL_CHECKLIST_STEPS.UPGRADE; | |
| 1672 | - var ChecklistCardContent = function ChecklistCardContent(_ref) { | |
| 1673 | - var step = _ref.step; | |
| 1674 | - var setSteps = _ref.setSteps; | |
| 1675 | - var _step$config = step.config; | |
| 1676 | - var id = _step$config.id; | |
| 1677 | - var description = _step$config.description; | |
| 1678 | - var learnMoreUrl = _step$config.learn_more_url; | |
| 1679 | - var learnMoreText = _step$config.learn_more_text; | |
| 1680 | - var imageSrc = _step$config.image_src; | |
| 1681 | - var promotionData = _step$config.promotion_data; | |
| 1682 | - var ctaText = promotionData ? (promotionData === null || promotionData === void 0 ? void 0 : promotionData.text) || (0, _wordpress_i18n.__)("Upgrade Now", "elementor") : step.config.cta_text; | |
| 1683 | - var ctaUrl = promotionData ? promotionData.url : step.config.cta_url; | |
| 1684 | - var isAbsoluteCompleted = step[IS_ABSOLUTE_COMPLETED]; | |
| 1685 | - var isImmutableCompleted = step[IS_IMMUTABLE_COMPLETED]; | |
| 1686 | - var isMarkedCompleted = step[IS_MARKED_COMPLETED]; | |
| 1687 | - var shouldShowMarkAsDone = !isAbsoluteCompleted && !isImmutableCompleted && !promotionData; | |
| 1688 | - var redirectHandler = /*#__PURE__*/ function() { | |
| 1689 | - var _ref2 = _asyncToGenerator(/*#__PURE__*/ import_regenerator.default.mark(function _callee() { | |
| 1690 | - return import_regenerator.default.wrap(function(_context) { | |
| 1691 | - while (1) switch (_context.prev = _context.next) { | |
| 1692 | - case 0: | |
| 1693 | - if (promotionData) addMixpanelTrackingChecklistSteps(step.config.id, UPGRADE); | |
| 1694 | - else addMixpanelTrackingChecklistSteps(step.config.id, ACTION$1); | |
| 1695 | - if (!(!elementor || !STEP_IDS_TO_COMPLETE_IN_EDITOR.includes(id) || !PANEL_ROUTES[id])) { | |
| 1696 | - _context.next = 1; | |
| 1697 | - break; | |
| 1698 | - } | |
| 1699 | - return _context.abrupt("return", window.open(ctaUrl, "_blank")); | |
| 1700 | - case 1: | |
| 1701 | - _context.next = 2; | |
| 1702 | - return $e.run("panel/global/open"); | |
| 1703 | - case 2: $e.route(PANEL_ROUTES[id]); | |
| 1704 | - case 3: | |
| 1705 | - case "end": return _context.stop(); | |
| 1706 | - } | |
| 1707 | - }, _callee); | |
| 1708 | - })); | |
| 1709 | - return function redirectHandler() { | |
| 1710 | - return _ref2.apply(this, arguments); | |
| 1711 | - }; | |
| 1712 | - }(); | |
| 1713 | - var toggleMarkAsDone = /*#__PURE__*/ function() { | |
| 1714 | - var _ref3 = _asyncToGenerator(/*#__PURE__*/ import_regenerator.default.mark(function _callee2() { | |
| 1715 | - var currState; | |
| 1716 | - return import_regenerator.default.wrap(function(_context2) { | |
| 1717 | - while (1) switch (_context2.prev = _context2.next) { | |
| 1718 | - case 0: | |
| 1719 | - currState = isMarkedCompleted; | |
| 1720 | - if (isMarkedCompleted) addMixpanelTrackingChecklistSteps(step.config.id, UNDONE); | |
| 1721 | - else addMixpanelTrackingChecklistSteps(step.config.id, DONE); | |
| 1722 | - _context2.prev = 1; | |
| 1723 | - updateStepsState(IS_MARKED_COMPLETED, !currState); | |
| 1724 | - _context2.next = 2; | |
| 1725 | - return updateStep(id, _defineProperty({}, IS_MARKED_COMPLETED, !currState)); | |
| 1726 | - case 2: | |
| 1727 | - _context2.next = 4; | |
| 1728 | - break; | |
| 1729 | - case 3: | |
| 1730 | - _context2.prev = 3; | |
| 1731 | - _context2["catch"](1); | |
| 1732 | - updateStepsState(IS_MARKED_COMPLETED, currState); | |
| 1733 | - case 4: | |
| 1734 | - case "end": return _context2.stop(); | |
| 1735 | - } | |
| 1736 | - }, _callee2, null, [[1, 3]]); | |
| 1737 | - })); | |
| 1738 | - return function toggleMarkAsDone() { | |
| 1739 | - return _ref3.apply(this, arguments); | |
| 1740 | - }; | |
| 1741 | - }(); | |
| 1742 | - var updateStepsState = function updateStepsState(key, value) { | |
| 1743 | - setSteps(function(steps) { | |
| 1744 | - return steps.map(function(iteratedStep) { | |
| 1745 | - return getAndUpdateStep(step.config.id, iteratedStep, key, value); | |
| 1746 | - }); | |
| 1747 | - }); | |
| 1748 | - }; | |
| 1749 | - return /*#__PURE__*/ react.default.createElement(_elementor_ui.Card, { | |
| 1750 | - elevation: 0, | |
| 1751 | - square: true, | |
| 1752 | - "data-step-id": id | |
| 1753 | - }, /*#__PURE__*/ react.default.createElement(_elementor_ui.CardMedia, { | |
| 1754 | - image: imageSrc, | |
| 1755 | - sx: { height: 180 } | |
| 1756 | - }), /*#__PURE__*/ react.default.createElement(_elementor_ui.CardContent, null, /*#__PURE__*/ react.default.createElement(_elementor_ui.Typography, { | |
| 1757 | - variant: "body2", | |
| 1758 | - color: "text.secondary", | |
| 1759 | - component: "p" | |
| 1760 | - }, description + " ", /*#__PURE__*/ react.default.createElement(_elementor_ui.Link, { | |
| 1761 | - href: learnMoreUrl, | |
| 1762 | - target: "_blank", | |
| 1763 | - rel: "noreferrer", | |
| 1764 | - underline: "hover", | |
| 1765 | - color: "info.main", | |
| 1766 | - noWrap: true | |
| 1767 | - }, learnMoreText))), /*#__PURE__*/ react.default.createElement(_elementor_ui.CardActions, null, shouldShowMarkAsDone ? /*#__PURE__*/ react.default.createElement(_elementor_ui.Button, { | |
| 1768 | - size: "small", | |
| 1769 | - color: "secondary", | |
| 1770 | - variant: "text", | |
| 1771 | - onClick: toggleMarkAsDone | |
| 1772 | - }, isMarkedCompleted ? (0, _wordpress_i18n.__)("Unmark as done", "elementor") : (0, _wordpress_i18n.__)("Mark as done", "elementor")) : null, /*#__PURE__*/ react.default.createElement(_elementor_ui.Button, { | |
| 1773 | - color: promotionData ? "promotion" : "primary", | |
| 1774 | - size: "small", | |
| 1775 | - variant: "contained", | |
| 1776 | - onClick: redirectHandler | |
| 1777 | - }, ctaText))); | |
| 1778 | - }; | |
| 1779 | - ChecklistCardContent.propTypes = { | |
| 1780 | - step: import_prop_types.default.object.isRequired, | |
| 1781 | - setSteps: import_prop_types.default.func.isRequired | |
| 1782 | - }; | |
| 3353 | + switch (type) { | |
| 3354 | + case REACT_ASYNC_MODE_TYPE: | |
| 3355 | + case REACT_CONCURRENT_MODE_TYPE: | |
| 3356 | + case REACT_FRAGMENT_TYPE: | |
| 3357 | + case REACT_PROFILER_TYPE: | |
| 3358 | + case REACT_STRICT_MODE_TYPE: | |
| 3359 | + case REACT_SUSPENSE_TYPE: | |
| 3360 | + return type; | |
| 1783 | 3361 | |
| 1784 | -//#endregion | |
| 1785 | -//#region modules/checklist/assets/js/app/components/checklist-item.js | |
| 1786 | - function ownKeys$1(e, r) { | |
| 1787 | - var t = Object.keys(e); | |
| 1788 | - if (Object.getOwnPropertySymbols) { | |
| 1789 | - var o = Object.getOwnPropertySymbols(e); | |
| 1790 | - r && (o = o.filter(function(r) { | |
| 1791 | - return Object.getOwnPropertyDescriptor(e, r).enumerable; | |
| 1792 | - })), t.push.apply(t, o); | |
| 1793 | - } | |
| 1794 | - return t; | |
| 1795 | - } | |
| 1796 | - __name(ownKeys$1, "ownKeys"); | |
| 1797 | - function _objectSpread$1(e) { | |
| 1798 | - for (var r = 1; r < arguments.length; r++) { | |
| 1799 | - var t = null != arguments[r] ? arguments[r] : {}; | |
| 1800 | - r % 2 ? ownKeys$1(Object(t), !0).forEach(function(r) { | |
| 1801 | - _defineProperty(e, r, t[r]); | |
| 1802 | - }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1(Object(t)).forEach(function(r) { | |
| 1803 | - Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); | |
| 1804 | - }); | |
| 1805 | - } | |
| 1806 | - return e; | |
| 1807 | - } | |
| 1808 | - __name(_objectSpread$1, "_objectSpread"); | |
| 1809 | - var PROMOTION_DATA = STEP.PROMOTION_DATA; | |
| 1810 | - var TITLE = MIXPANEL_CHECKLIST_STEPS.TITLE; | |
| 1811 | - var ACCORDION_SECTION = MIXPANEL_CHECKLIST_STEPS.ACCORDION_SECTION; | |
| 1812 | - function CheckListItem(props) { | |
| 1813 | - var expandedIndex = props.expandedIndex; | |
| 1814 | - var setExpandedIndex = props.setExpandedIndex; | |
| 1815 | - var setSteps = props.setSteps; | |
| 1816 | - var index = props.index; | |
| 1817 | - var step = props.step; | |
| 1818 | - var chevronStyle = index === expandedIndex ? { transform: "rotate(180deg)" } : {}; | |
| 1819 | - var isChecked = isStepChecked(step); | |
| 1820 | - var promotionData = step.config[PROMOTION_DATA]; | |
| 1821 | - return /*#__PURE__*/ react.default.createElement(react.default.Fragment, null, /*#__PURE__*/ react.default.createElement(_elementor_ui.ListItemButton, { | |
| 1822 | - onClick: function handleExpandClick() { | |
| 1823 | - addMixpanelTrackingChecklistSteps(step.config.id, TITLE, ACCORDION_SECTION); | |
| 1824 | - setExpandedIndex(index === expandedIndex ? -1 : index); | |
| 1825 | - }, | |
| 1826 | - "data-step-id": step.config.id, | |
| 1827 | - dense: true | |
| 1828 | - }, /*#__PURE__*/ react.default.createElement(_elementor_ui.ListItemIcon, null, /*#__PURE__*/ react.default.createElement(_elementor_ui.Checkbox, { | |
| 1829 | - "data-is-checked": isChecked, | |
| 1830 | - icon: /*#__PURE__*/ react.default.createElement(_elementor_icons.RadioButtonUncheckedIcon, null), | |
| 1831 | - checkedIcon: /*#__PURE__*/ react.default.createElement(_elementor_icons.CircleCheckFilledIcon, { color: "primary" }), | |
| 1832 | - edge: "start", | |
| 1833 | - checked: isChecked, | |
| 1834 | - tabIndex: -1, | |
| 1835 | - inputProps: { "aria-labelledby": step.config.title } | |
| 1836 | - })), /*#__PURE__*/ react.default.createElement(_elementor_ui.ListItemText, { | |
| 1837 | - primary: step.config.title, | |
| 1838 | - primaryTypographyProps: { variant: "body2" } | |
| 1839 | - }), promotionData ? function getUpgradeIcon() { | |
| 1840 | - return "default" === (promotionData === null || promotionData === void 0 ? void 0 : promotionData.icon) ? /*#__PURE__*/ react.default.createElement(_elementor_icons.UpgradeIcon, { | |
| 1841 | - color: "promotion", | |
| 1842 | - sx: { mr: 1 } | |
| 1843 | - }) : /*#__PURE__*/ react.default.createElement(_elementor_ui.SvgIcon, { | |
| 1844 | - color: "promotion", | |
| 1845 | - sx: { mr: 1 } | |
| 1846 | - }, /*#__PURE__*/ react.default.createElement("img", { | |
| 1847 | - src: promotionData === null || promotionData === void 0 ? void 0 : promotionData.icon, | |
| 1848 | - alt: promotionData.iconAlt || "" | |
| 1849 | - })); | |
| 1850 | - }() : null, /*#__PURE__*/ react.default.createElement(_elementor_icons.ChevronDownIcon, { sx: _objectSpread$1(_objectSpread$1({}, chevronStyle), {}, { transition: "300ms" }) })), /*#__PURE__*/ react.default.createElement(_elementor_ui.Collapse, { in: index === expandedIndex }, /*#__PURE__*/ react.default.createElement(ChecklistCardContent, { | |
| 1851 | - step, | |
| 1852 | - setSteps | |
| 1853 | - }))); | |
| 1854 | - } | |
| 1855 | - CheckListItem.propTypes = { | |
| 1856 | - step: import_prop_types.default.object.isRequired, | |
| 1857 | - expandedIndex: import_prop_types.default.number, | |
| 1858 | - setExpandedIndex: import_prop_types.default.func.isRequired, | |
| 1859 | - setSteps: import_prop_types.default.func.isRequired, | |
| 1860 | - index: import_prop_types.default.number.isRequired | |
| 1861 | - }; | |
| 3362 | + default: | |
| 3363 | + var $$typeofType = type && type.$$typeof; | |
| 1862 | 3364 | |
| 1863 | -//#endregion | |
| 1864 | -//#region app/assets/js/hooks/use-ajax.js | |
| 1865 | - function ownKeys(e, r) { | |
| 1866 | - var t = Object.keys(e); | |
| 1867 | - if (Object.getOwnPropertySymbols) { | |
| 1868 | - var o = Object.getOwnPropertySymbols(e); | |
| 1869 | - r && (o = o.filter(function(r) { | |
| 1870 | - return Object.getOwnPropertyDescriptor(e, r).enumerable; | |
| 1871 | - })), t.push.apply(t, o); | |
| 1872 | - } | |
| 1873 | - return t; | |
| 1874 | - } | |
| 1875 | - function _objectSpread(e) { | |
| 1876 | - for (var r = 1; r < arguments.length; r++) { | |
| 1877 | - var t = null != arguments[r] ? arguments[r] : {}; | |
| 1878 | - r % 2 ? ownKeys(Object(t), !0).forEach(function(r) { | |
| 1879 | - _defineProperty(e, r, t[r]); | |
| 1880 | - }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function(r) { | |
| 1881 | - Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); | |
| 1882 | - }); | |
| 1883 | - } | |
| 1884 | - return e; | |
| 1885 | - } | |
| 1886 | - function useAjax() { | |
| 1887 | - var _useState2 = _slicedToArray((0, react.useState)(null), 2); | |
| 1888 | - var ajax = _useState2[0]; | |
| 1889 | - var setAjax = _useState2[1]; | |
| 1890 | - var initialStatusKey = "initial"; | |
| 1891 | - var _useState4 = _slicedToArray((0, react.useState)({ | |
| 1892 | - status: initialStatusKey, | |
| 1893 | - isComplete: false, | |
| 1894 | - response: null | |
| 1895 | - }), 2); | |
| 1896 | - var ajaxState = _useState4[0]; | |
| 1897 | - var setAjaxState = _useState4[1]; | |
| 1898 | - var ajaxActions = { reset: function reset() { | |
| 1899 | - return setAjaxState(initialStatusKey); | |
| 1900 | - } }; | |
| 1901 | - var runRequest = /*#__PURE__*/ function() { | |
| 1902 | - var _ref = _asyncToGenerator(/*#__PURE__*/ import_regenerator.default.mark(function _callee(config) { | |
| 1903 | - return import_regenerator.default.wrap(function(_context) { | |
| 1904 | - while (1) switch (_context.prev = _context.next) { | |
| 1905 | - case 0: return _context.abrupt("return", new Promise(function(resolve, reject) { | |
| 1906 | - var formData = new FormData(); | |
| 1907 | - if (config.data) { | |
| 1908 | - for (var key in config.data) formData.append(key, config.data[key]); | |
| 1909 | - if (!config.data.nonce) formData.append("_nonce", elementorCommon.config.ajax.nonce); | |
| 1910 | - } | |
| 1911 | - var options = _objectSpread(_objectSpread({ | |
| 1912 | - type: "post", | |
| 1913 | - url: elementorCommon.config.ajax.url, | |
| 1914 | - headers: {}, | |
| 1915 | - cache: false, | |
| 1916 | - contentType: false, | |
| 1917 | - processData: false | |
| 1918 | - }, config), {}, { | |
| 1919 | - data: formData, | |
| 1920 | - success: function success(response) { | |
| 1921 | - resolve(response); | |
| 1922 | - }, | |
| 1923 | - error: function error(_error) { | |
| 1924 | - reject(_error); | |
| 1925 | - } | |
| 1926 | - }); | |
| 1927 | - jQuery.ajax(options); | |
| 1928 | - })); | |
| 1929 | - case 1: | |
| 1930 | - case "end": return _context.stop(); | |
| 1931 | - } | |
| 1932 | - }, _callee); | |
| 1933 | - })); | |
| 1934 | - return function runRequest(_x) { | |
| 1935 | - return _ref.apply(this, arguments); | |
| 1936 | - }; | |
| 1937 | - }(); | |
| 1938 | - (0, react.useEffect)(function() { | |
| 1939 | - if (ajax) runRequest(ajax).then(function(response) { | |
| 1940 | - var status = response.success ? "success" : "error"; | |
| 1941 | - setAjaxState(function(prevState) { | |
| 1942 | - return _objectSpread(_objectSpread({}, prevState), {}, { | |
| 1943 | - status, | |
| 1944 | - response: response === null || response === void 0 ? void 0 : response.data | |
| 1945 | - }); | |
| 1946 | - }); | |
| 1947 | - }).catch(function(error) { | |
| 1948 | - var _error$responseJSON; | |
| 1949 | - var response = 408 === error.status ? "timeout" : (_error$responseJSON = error.responseJSON) === null || _error$responseJSON === void 0 ? void 0 : _error$responseJSON.data; | |
| 1950 | - setAjaxState(function(prevState) { | |
| 1951 | - return _objectSpread(_objectSpread({}, prevState), {}, { | |
| 1952 | - status: "error", | |
| 1953 | - response | |
| 1954 | - }); | |
| 1955 | - }); | |
| 1956 | - }).finally(function() { | |
| 1957 | - setAjaxState(function(prevState) { | |
| 1958 | - return _objectSpread(_objectSpread({}, prevState), {}, { isComplete: true }); | |
| 1959 | - }); | |
| 1960 | - }); | |
| 1961 | - }, [ajax]); | |
| 1962 | - return { | |
| 1963 | - ajax, | |
| 1964 | - setAjax, | |
| 1965 | - ajaxState, | |
| 1966 | - ajaxActions, | |
| 1967 | - runRequest | |
| 1968 | - }; | |
| 1969 | - } | |
| 3365 | + switch ($$typeofType) { | |
| 3366 | + case REACT_CONTEXT_TYPE: | |
| 3367 | + case REACT_FORWARD_REF_TYPE: | |
| 3368 | + case REACT_LAZY_TYPE: | |
| 3369 | + case REACT_MEMO_TYPE: | |
| 3370 | + case REACT_PROVIDER_TYPE: | |
| 3371 | + return $$typeofType; | |
| 1970 | 3372 | |
| 1971 | -//#endregion | |
| 1972 | -//#region modules/checklist/assets/js/app/components/success-message.js | |
| 1973 | - var ACTION = MIXPANEL_CHECKLIST_STEPS.ACTION; | |
| 1974 | - var WELL_DONE = MIXPANEL_CHECKLIST_STEPS.WELL_DONE; | |
| 1975 | - var SuccessMessage = function SuccessMessage() { | |
| 1976 | - var _useAjax = useAjax(); | |
| 1977 | - var ajaxState = _useAjax.ajaxState; | |
| 1978 | - var setAjax = _useAjax.setAjax; | |
| 1979 | - var hideChecklist = function hideChecklist() { | |
| 1980 | - addMixpanelTrackingChecklistSteps(WELL_DONE, ACTION); | |
| 1981 | - setAjax({ data: { | |
| 1982 | - action: "elementor_ajax", | |
| 1983 | - actions: JSON.stringify({ save_editorPreferences_settings: { | |
| 1984 | - action: "save_editorPreferences_settings", | |
| 1985 | - data: { data: { show_launchpad_checklist: "" } } | |
| 1986 | - } }) | |
| 1987 | - } }); | |
| 1988 | - }; | |
| 1989 | - (0, react.useEffect)(function() { | |
| 1990 | - switch (ajaxState.status) { | |
| 1991 | - case "success": | |
| 1992 | - setTimeout(function() { | |
| 1993 | - $e.commands.run("checklist/toggle-icon", false); | |
| 1994 | - }, 0); | |
| 1995 | - break; | |
| 1996 | - case "error": break; | |
| 1997 | - } | |
| 1998 | - }, [ajaxState]); | |
| 1999 | - return /*#__PURE__*/ react.default.createElement(_elementor_ui.Card, { | |
| 2000 | - elevation: 0, | |
| 2001 | - square: true, | |
| 2002 | - className: "e-checklist-done" | |
| 2003 | - }, /*#__PURE__*/ react.default.createElement(_elementor_ui.CardMedia, { | |
| 2004 | - image: "https://assets.elementor.com/checklist/v1/images/checklist-step-7.jpg", | |
| 2005 | - sx: { height: 180 } | |
| 2006 | - }), /*#__PURE__*/ react.default.createElement(_elementor_ui.CardContent, { sx: { textAlign: "center" } }, /*#__PURE__*/ react.default.createElement(_elementor_ui.Typography, { | |
| 2007 | - variant: "h6", | |
| 2008 | - color: "text.primary" | |
| 2009 | - }, (0, _wordpress_i18n.__)("You're on your way!", "elementor")), /*#__PURE__*/ react.default.createElement(_elementor_ui.Typography, { | |
| 2010 | - variant: "body2", | |
| 2011 | - color: "text.secondary", | |
| 2012 | - component: "p" | |
| 2013 | - }, (0, _wordpress_i18n.__)("With these steps, you've got a great base for a robust website. Enjoy your web creation journey!", "elementor"))), /*#__PURE__*/ react.default.createElement(_elementor_ui.CardActions, { sx: { justifyContent: "center" } }, /*#__PURE__*/ react.default.createElement(_elementor_ui.Button, { | |
| 2014 | - color: "primary", | |
| 2015 | - size: "small", | |
| 2016 | - variant: "contained", | |
| 2017 | - onClick: hideChecklist | |
| 2018 | - }, (0, _wordpress_i18n.__)("Got it", "elementor")))); | |
| 2019 | - }; | |
| 3373 | + default: | |
| 3374 | + return $$typeof; | |
| 3375 | + } | |
| 2020 | 3376 | |
| 2021 | -//#endregion | |
| 2022 | -//#region modules/checklist/assets/js/app/components/checklist-wrapper.js | |
| 2023 | - var ChecklistWrapper = function ChecklistWrapper(_ref) { | |
| 2024 | - var steps = _ref.steps; | |
| 2025 | - var setSteps = _ref.setSteps; | |
| 2026 | - var isMinimized = _ref.isMinimized; | |
| 2027 | - var _useState2 = _slicedToArray((0, react.useState)(-1), 2); | |
| 2028 | - var expandedIndex = _useState2[0]; | |
| 2029 | - var setExpandedIndex = _useState2[1]; | |
| 2030 | - var isChecklistCompleted = steps.filter(isStepChecked).length === steps.length; | |
| 2031 | - return /*#__PURE__*/ react.default.createElement(_elementor_ui.Box, { sx: { | |
| 2032 | - transition: "400ms", | |
| 2033 | - maxHeight: isMinimized ? 0 : "645px" | |
| 2034 | - } }, /*#__PURE__*/ react.default.createElement(_elementor_ui.List, { | |
| 2035 | - component: "div", | |
| 2036 | - sx: { py: 0 } | |
| 2037 | - }, steps.map(function(step, index) { | |
| 2038 | - return /*#__PURE__*/ react.default.createElement(react.Fragment, { key: index }, index ? /*#__PURE__*/ react.default.createElement(_elementor_ui.Divider, null) : null, /*#__PURE__*/ react.default.createElement(CheckListItem, { | |
| 2039 | - step, | |
| 2040 | - setSteps, | |
| 2041 | - setExpandedIndex, | |
| 2042 | - expandedIndex, | |
| 2043 | - index | |
| 2044 | - })); | |
| 2045 | - })), isChecklistCompleted ? /*#__PURE__*/ react.default.createElement(SuccessMessage, null) : null); | |
| 2046 | - }; | |
| 2047 | - ChecklistWrapper.propTypes = { | |
| 2048 | - steps: import_prop_types.default.array.isRequired, | |
| 2049 | - setSteps: import_prop_types.default.func.isRequired, | |
| 2050 | - isMinimized: import_prop_types.default.bool.isRequired | |
| 2051 | - }; | |
| 3377 | + } | |
| 2052 | 3378 | |
| 2053 | -//#endregion | |
| 2054 | -//#region modules/checklist/assets/js/app/components/checklist.js | |
| 2055 | - var IS_POPUP_MINIMIZED = USER_PROGRESS.IS_POPUP_MINIMIZED; | |
| 2056 | - var Checklist = function Checklist(props) { | |
| 2057 | - var _useState2 = _slicedToArray((0, react.useState)(props.steps), 2); | |
| 2058 | - var steps = _useState2[0]; | |
| 2059 | - var setSteps = _useState2[1]; | |
| 2060 | - var _useState4 = _slicedToArray((0, react.useState)(!!props.userProgress[IS_POPUP_MINIMIZED]), 2); | |
| 2061 | - var isMinimized = _useState4[0]; | |
| 2062 | - var setIsMinimized = _useState4[1]; | |
| 2063 | - var toggleIsMinimized = /*#__PURE__*/ function() { | |
| 2064 | - var _ref = _asyncToGenerator(/*#__PURE__*/ import_regenerator.default.mark(function _callee() { | |
| 2065 | - var currState; | |
| 2066 | - return import_regenerator.default.wrap(function(_context) { | |
| 2067 | - while (1) switch (_context.prev = _context.next) { | |
| 2068 | - case 0: | |
| 2069 | - currState = isMinimized; | |
| 2070 | - _context.prev = 1; | |
| 2071 | - setIsMinimized(!currState); | |
| 2072 | - _context.next = 2; | |
| 2073 | - return updateUserProgress(_defineProperty({}, IS_POPUP_MINIMIZED, !currState)); | |
| 2074 | - case 2: | |
| 2075 | - _context.next = 4; | |
| 2076 | - break; | |
| 2077 | - case 3: | |
| 2078 | - _context.prev = 3; | |
| 2079 | - _context["catch"](1); | |
| 2080 | - setIsMinimized(currState); | |
| 2081 | - case 4: | |
| 2082 | - case "end": return _context.stop(); | |
| 2083 | - } | |
| 2084 | - }, _callee, null, [[1, 3]]); | |
| 2085 | - })); | |
| 2086 | - return function toggleIsMinimized() { | |
| 2087 | - return _ref.apply(this, arguments); | |
| 2088 | - }; | |
| 2089 | - }(); | |
| 2090 | - (0, react.useEffect)(function() { | |
| 2091 | - setSteps(props.steps); | |
| 2092 | - }, [props.steps]); | |
| 2093 | - return /*#__PURE__*/ react.default.createElement(_elementor_ui.Paper, { | |
| 2094 | - elevation: 5, | |
| 2095 | - sx: { | |
| 2096 | - position: "fixed", | |
| 2097 | - width: "360px", | |
| 2098 | - bottom: "40px", | |
| 2099 | - insetInlineEnd: "40px", | |
| 2100 | - zIndex: "99999", | |
| 2101 | - hidden: true, | |
| 2102 | - maxHeight: "645px", | |
| 2103 | - overflowY: "auto" | |
| 2104 | - } | |
| 2105 | - }, /*#__PURE__*/ react.default.createElement(Header, { | |
| 2106 | - steps, | |
| 2107 | - isMinimized, | |
| 2108 | - toggleIsMinimized | |
| 2109 | - }), /*#__PURE__*/ react.default.createElement(ChecklistWrapper, { | |
| 2110 | - steps, | |
| 2111 | - setSteps, | |
| 2112 | - isMinimized | |
| 2113 | - })); | |
| 2114 | - }; | |
| 2115 | - Checklist.propTypes = { | |
| 2116 | - steps: import_prop_types.default.array.isRequired, | |
| 2117 | - userProgress: import_prop_types.default.object.isRequired | |
| 2118 | - }; | |
| 3379 | + case REACT_PORTAL_TYPE: | |
| 3380 | + return $$typeof; | |
| 3381 | + } | |
| 3382 | + } | |
| 2119 | 3383 | |
| 2120 | -//#endregion | |
| 2121 | -//#region modules/checklist/assets/js/app/app.js | |
| 2122 | - var App = function App() { | |
| 2123 | - var isRTL = elementorCommon.config.isRTL; | |
| 2124 | - var _useQuery = (0, _elementor_query.useQuery)({ | |
| 2125 | - queryKey: ["steps"], | |
| 2126 | - queryFn: fetchSteps, | |
| 2127 | - gcTime: 0, | |
| 2128 | - enabled: false | |
| 2129 | - }); | |
| 2130 | - var stepsError = _useQuery.error; | |
| 2131 | - var steps = _useQuery.data; | |
| 2132 | - var refetchSteps = _useQuery.refetch; | |
| 2133 | - var _useQuery2 = (0, _elementor_query.useQuery)({ | |
| 2134 | - queryKey: ["statusData"], | |
| 2135 | - queryFn: fetchUserProgress, | |
| 2136 | - gcTime: 0, | |
| 2137 | - enabled: false | |
| 2138 | - }); | |
| 2139 | - var userProgressError = _useQuery2.error; | |
| 2140 | - var userProgress = _useQuery2.data; | |
| 2141 | - var refetchUserProgress = _useQuery2.refetch; | |
| 2142 | - var fetchData = function fetchData() { | |
| 2143 | - refetchSteps(); | |
| 2144 | - refetchUserProgress(); | |
| 2145 | - }; | |
| 2146 | - (0, react.useEffect)(function() { | |
| 2147 | - fetchData(); | |
| 2148 | - return (0, _elementor_editor_v1_adapters.__privateListenTo)((0, _elementor_editor_v1_adapters.commandEndEvent)("document/save/save"), function(_ref) { | |
| 2149 | - var _args$document; | |
| 2150 | - var args = _ref.args; | |
| 2151 | - if ("kit" === (args === null || args === void 0 || (_args$document = args.document) === null || _args$document === void 0 || (_args$document = _args$document.config) === null || _args$document === void 0 ? void 0 : _args$document.type)) fetchData(); | |
| 2152 | - }); | |
| 2153 | - }, []); | |
| 2154 | - if (userProgressError || !userProgress || stepsError || !(steps !== null && steps !== void 0 && steps.length)) return null; | |
| 2155 | - return /*#__PURE__*/ react.default.createElement(_elementor_ui.DirectionProvider, { rtl: isRTL }, /*#__PURE__*/ react.default.createElement(_elementor_ui.ThemeProvider, { colorScheme: "light" }, /*#__PURE__*/ react.default.createElement(Checklist, { | |
| 2156 | - steps: _toConsumableArray(steps), | |
| 2157 | - userProgress | |
| 2158 | - }))); | |
| 2159 | - }; | |
| 3384 | + return undefined; | |
| 3385 | +} // AsyncMode is deprecated along with isAsyncMode | |
| 2160 | 3386 | |
| 2161 | -//#endregion | |
| 2162 | -//#region node_modules/react-dom/client.js | |
| 2163 | - var require_client = /* @__PURE__ */ __commonJSMin(((exports) => { | |
| 2164 | - var m = (globalThis.ReactDOM); | |
| 2165 | - var i = m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; | |
| 2166 | - exports.createRoot = function(c, o) { | |
| 2167 | - i.usingClientEntryPoint = true; | |
| 2168 | - try { | |
| 2169 | - return m.createRoot(c, o); | |
| 2170 | - } finally { | |
| 2171 | - i.usingClientEntryPoint = false; | |
| 2172 | - } | |
| 2173 | - }; | |
| 2174 | - })); | |
| 3387 | +var AsyncMode = REACT_ASYNC_MODE_TYPE; | |
| 3388 | +var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE; | |
| 3389 | +var ContextConsumer = REACT_CONTEXT_TYPE; | |
| 3390 | +var ContextProvider = REACT_PROVIDER_TYPE; | |
| 3391 | +var Element = REACT_ELEMENT_TYPE; | |
| 3392 | +var ForwardRef = REACT_FORWARD_REF_TYPE; | |
| 3393 | +var Fragment = REACT_FRAGMENT_TYPE; | |
| 3394 | +var Lazy = REACT_LAZY_TYPE; | |
| 3395 | +var Memo = REACT_MEMO_TYPE; | |
| 3396 | +var Portal = REACT_PORTAL_TYPE; | |
| 3397 | +var Profiler = REACT_PROFILER_TYPE; | |
| 3398 | +var StrictMode = REACT_STRICT_MODE_TYPE; | |
| 3399 | +var Suspense = REACT_SUSPENSE_TYPE; | |
| 3400 | +var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated | |
| 2175 | 3401 | |
| 2176 | -//#endregion | |
| 2177 | -//#region modules/checklist/assets/js/commands/toggle-popup.js | |
| 2178 | - var import_client = /* @__PURE__ */ __toESM(require_client()); | |
| 2179 | - function _callSuper$4(t, o, e) { | |
| 2180 | - return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct$4() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); | |
| 2181 | - } | |
| 2182 | - __name(_callSuper$4, "_callSuper"); | |
| 2183 | - function _isNativeReflectConstruct$4() { | |
| 2184 | - try { | |
| 2185 | - var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {})); | |
| 2186 | - } catch (t) {} | |
| 2187 | - return (_isNativeReflectConstruct$4 = function _isNativeReflectConstruct() { | |
| 2188 | - return !!t; | |
| 2189 | - })(); | |
| 2190 | - } | |
| 2191 | - __name(_isNativeReflectConstruct$4, "_isNativeReflectConstruct"); | |
| 2192 | - var queryClient$1 = new _elementor_query.QueryClient(); | |
| 2193 | - var TogglePopup = /*#__PURE__*/ function(_$e$modules$CommandBa) { | |
| 2194 | - function TogglePopup() { | |
| 2195 | - _classCallCheck(this, TogglePopup); | |
| 2196 | - return _callSuper$4(this, TogglePopup, arguments); | |
| 2197 | - } | |
| 2198 | - _inherits(TogglePopup, _$e$modules$CommandBa); | |
| 2199 | - return _createClass(TogglePopup, [ | |
| 2200 | - { | |
| 2201 | - key: "apply", | |
| 2202 | - value: function apply(args) { | |
| 2203 | - if (!TogglePopup.isOpen) this.mount(); | |
| 2204 | - else this.unmount(); | |
| 2205 | - TogglePopup.isOpen = !TogglePopup.isOpen; | |
| 2206 | - args.isOpen = TogglePopup.isOpen; | |
| 2207 | - updateUserProgress(_defineProperty({}, USER_PROGRESS.LAST_OPENED_TIMESTAMP, TogglePopup.isOpen)); | |
| 2208 | - } | |
| 2209 | - }, | |
| 2210 | - { | |
| 2211 | - key: "mount", | |
| 2212 | - value: function mount() { | |
| 2213 | - this.setRootElement(); | |
| 2214 | - TogglePopup.rootElement.render(/*#__PURE__*/ react.default.createElement(_elementor_query.QueryClientProvider, { client: queryClient$1 }, /*#__PURE__*/ react.default.createElement(App, null))); | |
| 2215 | - } | |
| 2216 | - }, | |
| 2217 | - { | |
| 2218 | - key: "unmount", | |
| 2219 | - value: function unmount() { | |
| 2220 | - TogglePopup.rootElement.unmount(); | |
| 2221 | - document.body.removeChild(document.body.querySelector("#e-checklist")); | |
| 2222 | - } | |
| 2223 | - }, | |
| 2224 | - { | |
| 2225 | - key: "setRootElement", | |
| 2226 | - value: function setRootElement() { | |
| 2227 | - var root = document.body.querySelector("#e-checklist"); | |
| 2228 | - if (!root) { | |
| 2229 | - root = document.createElement("div"); | |
| 2230 | - root.id = "e-checklist"; | |
| 2231 | - document.body.appendChild(root); | |
| 2232 | - } | |
| 2233 | - TogglePopup.rootElement = import_client.createRoot(root); | |
| 2234 | - } | |
| 2235 | - } | |
| 2236 | - ]); | |
| 2237 | - }($e.modules.CommandBase); | |
| 2238 | - _defineProperty(TogglePopup, "rootElement", null); | |
| 2239 | - _defineProperty(TogglePopup, "isOpen", false); | |
| 3402 | +function isAsyncMode(object) { | |
| 3403 | + { | |
| 3404 | + if (!hasWarnedAboutDeprecatedIsAsyncMode) { | |
| 3405 | + hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint | |
| 2240 | 3406 | |
| 2241 | -//#endregion | |
| 2242 | -//#region modules/checklist/assets/js/commands/toggle-icon.js | |
| 2243 | - function _callSuper$3(t, o, e) { | |
| 2244 | - return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct$3() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); | |
| 2245 | - } | |
| 2246 | - __name(_callSuper$3, "_callSuper"); | |
| 2247 | - function _isNativeReflectConstruct$3() { | |
| 2248 | - try { | |
| 2249 | - var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {})); | |
| 2250 | - } catch (t) {} | |
| 2251 | - return (_isNativeReflectConstruct$3 = function _isNativeReflectConstruct() { | |
| 2252 | - return !!t; | |
| 2253 | - })(); | |
| 2254 | - } | |
| 2255 | - __name(_isNativeReflectConstruct$3, "_isNativeReflectConstruct"); | |
| 2256 | - var ToggleIcon = /*#__PURE__*/ function(_$e$modules$CommandBa) { | |
| 2257 | - function ToggleIcon() { | |
| 2258 | - _classCallCheck(this, ToggleIcon); | |
| 2259 | - return _callSuper$3(this, ToggleIcon, arguments); | |
| 2260 | - } | |
| 2261 | - _inherits(ToggleIcon, _$e$modules$CommandBa); | |
| 2262 | - return _createClass(ToggleIcon, [{ | |
| 2263 | - key: "apply", | |
| 2264 | - value: function apply(shouldShow) { | |
| 2265 | - document.body.querySelector("[aria-label=\"Checklist\"]").parentElement.style.display = shouldShow ? "block" : "none"; | |
| 2266 | - if (!shouldShow && TogglePopup.isOpen) toggleChecklistPopup(); | |
| 2267 | - } | |
| 2268 | - }]); | |
| 2269 | - }($e.modules.CommandBase); | |
| 2270 | - _defineProperty(ToggleIcon, "isSettingsOn", true); | |
| 3407 | + 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.'); | |
| 3408 | + } | |
| 3409 | + } | |
| 2271 | 3410 | |
| 2272 | -//#endregion | |
| 2273 | -//#region modules/checklist/assets/js/commands/index.js | |
| 2274 | - var commands_exports = /* @__PURE__ */ __exportAll({ | |
| 2275 | - ToggleIcon: () => ToggleIcon, | |
| 2276 | - TogglePopup: () => TogglePopup | |
| 2277 | - }); | |
| 3411 | + return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE; | |
| 3412 | +} | |
| 3413 | +function isConcurrentMode(object) { | |
| 3414 | + return typeOf(object) === REACT_CONCURRENT_MODE_TYPE; | |
| 3415 | +} | |
| 3416 | +function isContextConsumer(object) { | |
| 3417 | + return typeOf(object) === REACT_CONTEXT_TYPE; | |
| 3418 | +} | |
| 3419 | +function isContextProvider(object) { | |
| 3420 | + return typeOf(object) === REACT_PROVIDER_TYPE; | |
| 3421 | +} | |
| 3422 | +function isElement(object) { | |
| 3423 | + return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE; | |
| 3424 | +} | |
| 3425 | +function isForwardRef(object) { | |
| 3426 | + return typeOf(object) === REACT_FORWARD_REF_TYPE; | |
| 3427 | +} | |
| 3428 | +function isFragment(object) { | |
| 3429 | + return typeOf(object) === REACT_FRAGMENT_TYPE; | |
| 3430 | +} | |
| 3431 | +function isLazy(object) { | |
| 3432 | + return typeOf(object) === REACT_LAZY_TYPE; | |
| 3433 | +} | |
| 3434 | +function isMemo(object) { | |
| 3435 | + return typeOf(object) === REACT_MEMO_TYPE; | |
| 3436 | +} | |
| 3437 | +function isPortal(object) { | |
| 3438 | + return typeOf(object) === REACT_PORTAL_TYPE; | |
| 3439 | +} | |
| 3440 | +function isProfiler(object) { | |
| 3441 | + return typeOf(object) === REACT_PROFILER_TYPE; | |
| 3442 | +} | |
| 3443 | +function isStrictMode(object) { | |
| 3444 | + return typeOf(object) === REACT_STRICT_MODE_TYPE; | |
| 3445 | +} | |
| 3446 | +function isSuspense(object) { | |
| 3447 | + return typeOf(object) === REACT_SUSPENSE_TYPE; | |
| 3448 | +} | |
| 2278 | 3449 | |
| 2279 | -//#endregion | |
| 2280 | -//#region modules/checklist/assets/js/editor-app-bar-link.js | |
| 2281 | - var queryClient = new _elementor_query.QueryClient(); | |
| 2282 | - var editorAppBarLink = function editorAppBarLink() { | |
| 2283 | - _elementor_editor_app_bar.utilitiesMenu.registerLink({ | |
| 2284 | - id: "app-bar-menu-item-checklist", | |
| 2285 | - priority: 5, | |
| 2286 | - useProps: function useProps() { | |
| 2287 | - return { | |
| 2288 | - title: (0, _wordpress_i18n.__)("Checklist", "elementor"), | |
| 2289 | - icon: function icon() { | |
| 2290 | - return /*#__PURE__*/ react.createElement(_elementor_query.QueryClientProvider, { client: queryClient }, /*#__PURE__*/ react.createElement(TopBarIcon, null)); | |
| 2291 | - }, | |
| 2292 | - onClick: function onClick() { | |
| 2293 | - addMixpanelTrackingChecklistTopBar(TogglePopup.isOpen); | |
| 2294 | - toggleChecklistPopup(); | |
| 2295 | - } | |
| 2296 | - }; | |
| 2297 | - } | |
| 2298 | - }); | |
| 2299 | - }; | |
| 3450 | +exports.AsyncMode = AsyncMode; | |
| 3451 | +exports.ConcurrentMode = ConcurrentMode; | |
| 3452 | +exports.ContextConsumer = ContextConsumer; | |
| 3453 | +exports.ContextProvider = ContextProvider; | |
| 3454 | +exports.Element = Element; | |
| 3455 | +exports.ForwardRef = ForwardRef; | |
| 3456 | +exports.Fragment = Fragment; | |
| 3457 | +exports.Lazy = Lazy; | |
| 3458 | +exports.Memo = Memo; | |
| 3459 | +exports.Portal = Portal; | |
| 3460 | +exports.Profiler = Profiler; | |
| 3461 | +exports.StrictMode = StrictMode; | |
| 3462 | +exports.Suspense = Suspense; | |
| 3463 | +exports.isAsyncMode = isAsyncMode; | |
| 3464 | +exports.isConcurrentMode = isConcurrentMode; | |
| 3465 | +exports.isContextConsumer = isContextConsumer; | |
| 3466 | +exports.isContextProvider = isContextProvider; | |
| 3467 | +exports.isElement = isElement; | |
| 3468 | +exports.isForwardRef = isForwardRef; | |
| 3469 | +exports.isFragment = isFragment; | |
| 3470 | +exports.isLazy = isLazy; | |
| 3471 | +exports.isMemo = isMemo; | |
| 3472 | +exports.isPortal = isPortal; | |
| 3473 | +exports.isProfiler = isProfiler; | |
| 3474 | +exports.isStrictMode = isStrictMode; | |
| 3475 | +exports.isSuspense = isSuspense; | |
| 3476 | +exports.isValidElementType = isValidElementType; | |
| 3477 | +exports.typeOf = typeOf; | |
| 3478 | + })(); | |
| 3479 | +} | |
| 2300 | 3480 | |
| 2301 | -//#endregion | |
| 2302 | -//#region modules/checklist/assets/js/commands-data/steps.js | |
| 2303 | - function _callSuper$2(t, o, e) { | |
| 2304 | - return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct$2() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); | |
| 2305 | - } | |
| 2306 | - __name(_callSuper$2, "_callSuper"); | |
| 2307 | - function _isNativeReflectConstruct$2() { | |
| 2308 | - try { | |
| 2309 | - var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {})); | |
| 2310 | - } catch (t) {} | |
| 2311 | - return (_isNativeReflectConstruct$2 = function _isNativeReflectConstruct() { | |
| 2312 | - return !!t; | |
| 2313 | - })(); | |
| 2314 | - } | |
| 2315 | - __name(_isNativeReflectConstruct$2, "_isNativeReflectConstruct"); | |
| 2316 | - var Steps = /*#__PURE__*/ function(_$e$modules$CommandDa) { | |
| 2317 | - function Steps() { | |
| 2318 | - _classCallCheck(this, Steps); | |
| 2319 | - return _callSuper$2(this, Steps, arguments); | |
| 2320 | - } | |
| 2321 | - _inherits(Steps, _$e$modules$CommandDa); | |
| 2322 | - return _createClass(Steps, null, [{ | |
| 2323 | - key: "getEndpointFormat", | |
| 2324 | - value: function getEndpointFormat() { | |
| 2325 | - return "checklist/steps/{id}"; | |
| 2326 | - } | |
| 2327 | - }]); | |
| 2328 | - }($e.modules.CommandData); | |
| 2329 | 3481 | |
| 2330 | -//#endregion | |
| 2331 | -//#region modules/checklist/assets/js/commands-data/user-progress.js | |
| 2332 | - function _callSuper$1(t, o, e) { | |
| 2333 | - return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct$1() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); | |
| 2334 | - } | |
| 2335 | - __name(_callSuper$1, "_callSuper"); | |
| 2336 | - function _isNativeReflectConstruct$1() { | |
| 2337 | - try { | |
| 2338 | - var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {})); | |
| 2339 | - } catch (t) {} | |
| 2340 | - return (_isNativeReflectConstruct$1 = function _isNativeReflectConstruct() { | |
| 2341 | - return !!t; | |
| 2342 | - })(); | |
| 2343 | - } | |
| 2344 | - __name(_isNativeReflectConstruct$1, "_isNativeReflectConstruct"); | |
| 2345 | - var UserProgress = /*#__PURE__*/ function(_$e$modules$CommandDa) { | |
| 2346 | - function UserProgress() { | |
| 2347 | - _classCallCheck(this, UserProgress); | |
| 2348 | - return _callSuper$1(this, UserProgress, arguments); | |
| 2349 | - } | |
| 2350 | - _inherits(UserProgress, _$e$modules$CommandDa); | |
| 2351 | - return _createClass(UserProgress, null, [{ | |
| 2352 | - key: "getEndpointFormat", | |
| 2353 | - value: function getEndpointFormat() { | |
| 2354 | - return "checklist/user-progress"; | |
| 2355 | - } | |
| 2356 | - }]); | |
| 2357 | - }($e.modules.CommandData); | |
| 3482 | +/***/ }), | |
| 2358 | 3483 | |
| 2359 | -//#endregion | |
| 2360 | -//#region modules/checklist/assets/js/commands-data/index.js | |
| 2361 | - var commands_data_exports = /* @__PURE__ */ __exportAll({ | |
| 2362 | - Steps: () => Steps, | |
| 2363 | - UserProgress: () => UserProgress | |
| 2364 | - }); | |
| 3484 | +/***/ "../node_modules/prop-types/node_modules/react-is/index.js": | |
| 3485 | +/*!*****************************************************************!*\ | |
| 3486 | + !*** ../node_modules/prop-types/node_modules/react-is/index.js ***! | |
| 3487 | + \*****************************************************************/ | |
| 3488 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 2365 | 3489 | |
| 2366 | -//#endregion | |
| 2367 | -//#region modules/checklist/assets/js/component.js | |
| 2368 | - function _callSuper(t, o, e) { | |
| 2369 | - return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); | |
| 2370 | - } | |
| 2371 | - function _isNativeReflectConstruct() { | |
| 2372 | - try { | |
| 2373 | - var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {})); | |
| 2374 | - } catch (t) {} | |
| 2375 | - return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { | |
| 2376 | - return !!t; | |
| 2377 | - })(); | |
| 2378 | - } | |
| 2379 | - var Component = /*#__PURE__*/ function(_$e$modules$Component) { | |
| 2380 | - function Component() { | |
| 2381 | - _classCallCheck(this, Component); | |
| 2382 | - return _callSuper(this, Component, arguments); | |
| 2383 | - } | |
| 2384 | - _inherits(Component, _$e$modules$Component); | |
| 2385 | - return _createClass(Component, [ | |
| 2386 | - { | |
| 2387 | - key: "getNamespace", | |
| 2388 | - value: function getNamespace() { | |
| 2389 | - return "checklist"; | |
| 2390 | - } | |
| 2391 | - }, | |
| 2392 | - { | |
| 2393 | - key: "defaultCommands", | |
| 2394 | - value: function defaultCommands() { | |
| 2395 | - return this.importCommands(commands_exports); | |
| 2396 | - } | |
| 2397 | - }, | |
| 2398 | - { | |
| 2399 | - key: "defaultData", | |
| 2400 | - value: function defaultData() { | |
| 2401 | - return this.importCommands(commands_data_exports); | |
| 2402 | - } | |
| 2403 | - } | |
| 2404 | - ], [{ | |
| 2405 | - key: "getEndpointFormat", | |
| 2406 | - value: function getEndpointFormat() { | |
| 2407 | - return "checklist"; | |
| 2408 | - } | |
| 2409 | - }]); | |
| 2410 | - }($e.modules.ComponentBase); | |
| 3490 | +"use strict"; | |
| 2411 | 3491 | |
| 2412 | -//#endregion | |
| 2413 | -//#region modules/checklist/assets/js/editor.js | |
| 2414 | - $e.components.register(new Component()); | |
| 2415 | - editorAppBarLink(); | |
| 2416 | - elementorCommon.elements.$window.on("elementor:loaded", elementorLoaded); | |
| 2417 | - function elementorLoaded() { | |
| 2418 | - elementor.on("document:loaded", checklistStartup); | |
| 2419 | - elementorCommon.elements.$window.off("elementor:loaded", elementorLoaded); | |
| 2420 | - } | |
| 2421 | - function checklistStartup() { | |
| 2422 | - return _checklistStartup.apply(this, arguments); | |
| 2423 | - } | |
| 2424 | - function _checklistStartup() { | |
| 2425 | - _checklistStartup = _asyncToGenerator(/*#__PURE__*/ import_regenerator.default.mark(function _callee() { | |
| 2426 | - var shouldHide; | |
| 2427 | - var userProgress; | |
| 2428 | - return import_regenerator.default.wrap(function(_context) { | |
| 2429 | - while (1) switch (_context.prev = _context.next) { | |
| 2430 | - case 0: | |
| 2431 | - shouldHide = "yes" !== elementor.getPreferences("show_launchpad_checklist"); | |
| 2432 | - if (!shouldHide) { | |
| 2433 | - _context.next = 1; | |
| 2434 | - break; | |
| 2435 | - } | |
| 2436 | - $e.commands.run("checklist/toggle-icon", false); | |
| 2437 | - _context.next = 3; | |
| 2438 | - break; | |
| 2439 | - case 1: | |
| 2440 | - _context.next = 2; | |
| 2441 | - return fetchUserProgress(); | |
| 2442 | - case 2: | |
| 2443 | - userProgress = _context.sent; | |
| 2444 | - if (userProgress !== null && userProgress !== void 0 && userProgress[USER_PROGRESS.SHOULD_OPEN_IN_EDITOR]) { | |
| 2445 | - toggleChecklistPopup(); | |
| 2446 | - dispatchChecklistOpenEvent(); | |
| 2447 | - } | |
| 2448 | - case 3: elementor.off("document:loaded", checklistStartup); | |
| 2449 | - case 4: | |
| 2450 | - case "end": return _context.stop(); | |
| 2451 | - } | |
| 2452 | - }, _callee); | |
| 2453 | - })); | |
| 2454 | - return _checklistStartup.apply(this, arguments); | |
| 2455 | - } | |
| 2456 | 3492 | |
| 2457 | -//#endregion | |
| 2458 | -})(elementorV2.editorAppBar, wp.i18n, React, elementorV2.query, elementorV2.editorV1Adapters, elementorV2.icons['RocketIcon'], elementorV2.ui, elementorV2.icons); | |
| 3493 | +if (false) // removed by dead control flow | |
| 3494 | +{} else { | |
| 3495 | + module.exports = __webpack_require__(/*! ./cjs/react-is.development.js */ "../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js"); | |
| 3496 | +} | |
| 3497 | + | |
| 3498 | + | |
| 3499 | +/***/ }), | |
| 3500 | + | |
| 3501 | +/***/ "../node_modules/react-dom/client.js": | |
| 3502 | +/*!*******************************************!*\ | |
| 3503 | + !*** ../node_modules/react-dom/client.js ***! | |
| 3504 | + \*******************************************/ | |
| 3505 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 3506 | + | |
| 3507 | +"use strict"; | |
| 3508 | + | |
| 3509 | + | |
| 3510 | +var m = __webpack_require__(/*! react-dom */ "react-dom"); | |
| 3511 | +if (false) // removed by dead control flow | |
| 3512 | +{} else { | |
| 3513 | + var i = m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; | |
| 3514 | + exports.createRoot = function(c, o) { | |
| 3515 | + i.usingClientEntryPoint = true; | |
| 3516 | + try { | |
| 3517 | + return m.createRoot(c, o); | |
| 3518 | + } finally { | |
| 3519 | + i.usingClientEntryPoint = false; | |
| 3520 | + } | |
| 3521 | + }; | |
| 3522 | + exports.hydrateRoot = function(c, h, o) { | |
| 3523 | + i.usingClientEntryPoint = true; | |
| 3524 | + try { | |
| 3525 | + return m.hydrateRoot(c, h, o); | |
| 3526 | + } finally { | |
| 3527 | + i.usingClientEntryPoint = false; | |
| 3528 | + } | |
| 3529 | + }; | |
| 3530 | +} | |
| 3531 | + | |
| 3532 | + | |
| 3533 | +/***/ }), | |
| 3534 | + | |
| 3535 | +/***/ "@elementor/editor-app-bar": | |
| 3536 | +/*!*******************************************!*\ | |
| 3537 | + !*** external "elementorV2.editorAppBar" ***! | |
| 3538 | + \*******************************************/ | |
| 3539 | +/***/ ((module) => { | |
| 3540 | + | |
| 3541 | +"use strict"; | |
| 3542 | +module.exports = elementorV2.editorAppBar; | |
| 3543 | + | |
| 3544 | +/***/ }), | |
| 3545 | + | |
| 3546 | +/***/ "@elementor/editor-v1-adapters": | |
| 3547 | +/*!***********************************************!*\ | |
| 3548 | + !*** external "elementorV2.editorV1Adapters" ***! | |
| 3549 | + \***********************************************/ | |
| 3550 | +/***/ ((module) => { | |
| 3551 | + | |
| 3552 | +"use strict"; | |
| 3553 | +module.exports = elementorV2.editorV1Adapters; | |
| 3554 | + | |
| 3555 | +/***/ }), | |
| 3556 | + | |
| 3557 | +/***/ "@elementor/icons": | |
| 3558 | +/*!************************************!*\ | |
| 3559 | + !*** external "elementorV2.icons" ***! | |
| 3560 | + \************************************/ | |
| 3561 | +/***/ ((module) => { | |
| 3562 | + | |
| 3563 | +"use strict"; | |
| 3564 | +module.exports = elementorV2.icons; | |
| 3565 | + | |
| 3566 | +/***/ }), | |
| 3567 | + | |
| 3568 | +/***/ "@elementor/icons/RocketIcon": | |
| 3569 | +/*!**************************************************!*\ | |
| 3570 | + !*** external "elementorV2.icons['RocketIcon']" ***! | |
| 3571 | + \**************************************************/ | |
| 3572 | +/***/ ((module) => { | |
| 3573 | + | |
| 3574 | +"use strict"; | |
| 3575 | +module.exports = elementorV2.icons['RocketIcon']; | |
| 3576 | + | |
| 3577 | +/***/ }), | |
| 3578 | + | |
| 3579 | +/***/ "@elementor/query": | |
| 3580 | +/*!************************************!*\ | |
| 3581 | + !*** external "elementorV2.query" ***! | |
| 3582 | + \************************************/ | |
| 3583 | +/***/ ((module) => { | |
| 3584 | + | |
| 3585 | +"use strict"; | |
| 3586 | +module.exports = elementorV2.query; | |
| 3587 | + | |
| 3588 | +/***/ }), | |
| 3589 | + | |
| 3590 | +/***/ "@elementor/ui": | |
| 3591 | +/*!*********************************!*\ | |
| 3592 | + !*** external "elementorV2.ui" ***! | |
| 3593 | + \*********************************/ | |
| 3594 | +/***/ ((module) => { | |
| 3595 | + | |
| 3596 | +"use strict"; | |
| 3597 | +module.exports = elementorV2.ui; | |
| 3598 | + | |
| 3599 | +/***/ }), | |
| 3600 | + | |
| 3601 | +/***/ "@wordpress/i18n": | |
| 3602 | +/*!**************************!*\ | |
| 3603 | + !*** external "wp.i18n" ***! | |
| 3604 | + \**************************/ | |
| 3605 | +/***/ ((module) => { | |
| 3606 | + | |
| 3607 | +"use strict"; | |
| 3608 | +module.exports = wp.i18n; | |
| 3609 | + | |
| 3610 | +/***/ }), | |
| 3611 | + | |
| 3612 | +/***/ "react": | |
| 3613 | +/*!************************!*\ | |
| 3614 | + !*** external "React" ***! | |
| 3615 | + \************************/ | |
| 3616 | +/***/ ((module) => { | |
| 3617 | + | |
| 3618 | +"use strict"; | |
| 3619 | +module.exports = React; | |
| 3620 | + | |
| 3621 | +/***/ }), | |
| 3622 | + | |
| 3623 | +/***/ "react-dom": | |
| 3624 | +/*!***************************!*\ | |
| 3625 | + !*** external "ReactDOM" ***! | |
| 3626 | + \***************************/ | |
| 3627 | +/***/ ((module) => { | |
| 3628 | + | |
| 3629 | +"use strict"; | |
| 3630 | +module.exports = ReactDOM; | |
| 3631 | + | |
| 3632 | +/***/ }) | |
| 3633 | + | |
| 3634 | +/******/ }); | |
| 3635 | +/************************************************************************/ | |
| 3636 | +/******/ // The module cache | |
| 3637 | +/******/ var __webpack_module_cache__ = {}; | |
| 3638 | +/******/ | |
| 3639 | +/******/ // The require function | |
| 3640 | +/******/ function __webpack_require__(moduleId) { | |
| 3641 | +/******/ // Check if module is in cache | |
| 3642 | +/******/ var cachedModule = __webpack_module_cache__[moduleId]; | |
| 3643 | +/******/ if (cachedModule !== undefined) { | |
| 3644 | +/******/ return cachedModule.exports; | |
| 3645 | +/******/ } | |
| 3646 | +/******/ // Create a new module (and put it into the cache) | |
| 3647 | +/******/ var module = __webpack_module_cache__[moduleId] = { | |
| 3648 | +/******/ // no module.id needed | |
| 3649 | +/******/ // no module.loaded needed | |
| 3650 | +/******/ exports: {} | |
| 3651 | +/******/ }; | |
| 3652 | +/******/ | |
| 3653 | +/******/ // Execute the module function | |
| 3654 | +/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__); | |
| 3655 | +/******/ | |
| 3656 | +/******/ // Return the exports of the module | |
| 3657 | +/******/ return module.exports; | |
| 3658 | +/******/ } | |
| 3659 | +/******/ | |
| 3660 | +/************************************************************************/ | |
| 3661 | +var __webpack_exports__ = {}; | |
| 3662 | +// This entry needs to be wrapped in an IIFE because it needs to be in strict mode. | |
| 3663 | +(() => { | |
| 3664 | +"use strict"; | |
| 3665 | +/*!************************************************!*\ | |
| 3666 | + !*** ../modules/checklist/assets/js/editor.js ***! | |
| 3667 | + \************************************************/ | |
| 3668 | + | |
| 3669 | + | |
| 3670 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 3671 | +var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/regenerator */ "../node_modules/@babel/runtime/regenerator/index.js")); | |
| 3672 | +var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ "../node_modules/@babel/runtime/helpers/asyncToGenerator.js")); | |
| 3673 | +var _editorAppBarLink = __webpack_require__(/*! ./editor-app-bar-link */ "../modules/checklist/assets/js/editor-app-bar-link.js"); | |
| 3674 | +var _component = _interopRequireDefault(__webpack_require__(/*! ./component */ "../modules/checklist/assets/js/component.js")); | |
| 3675 | +var _consts = __webpack_require__(/*! ./utils/consts */ "../modules/checklist/assets/js/utils/consts.js"); | |
| 3676 | +var _functions = __webpack_require__(/*! ./utils/functions */ "../modules/checklist/assets/js/utils/functions.js"); | |
| 3677 | +$e.components.register(new _component.default()); | |
| 3678 | +(0, _editorAppBarLink.editorAppBarLink)(); | |
| 3679 | +elementorCommon.elements.$window.on('elementor:loaded', elementorLoaded); | |
| 3680 | +function elementorLoaded() { | |
| 3681 | + elementor.on('document:loaded', checklistStartup); | |
| 3682 | + elementorCommon.elements.$window.off('elementor:loaded', elementorLoaded); | |
| 3683 | +} | |
| 3684 | +function checklistStartup() { | |
| 3685 | + return _checklistStartup.apply(this, arguments); | |
| 3686 | +} | |
| 3687 | +function _checklistStartup() { | |
| 3688 | + _checklistStartup = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() { | |
| 3689 | + var shouldHide, userProgress; | |
| 3690 | + return _regenerator.default.wrap(function (_context) { | |
| 3691 | + while (1) switch (_context.prev = _context.next) { | |
| 3692 | + case 0: | |
| 3693 | + shouldHide = 'yes' !== elementor.getPreferences('show_launchpad_checklist'); | |
| 3694 | + if (!shouldHide) { | |
| 3695 | + _context.next = 1; | |
| 3696 | + break; | |
| 3697 | + } | |
| 3698 | + $e.commands.run('checklist/toggle-icon', false); | |
| 3699 | + _context.next = 3; | |
| 3700 | + break; | |
| 3701 | + case 1: | |
| 3702 | + _context.next = 2; | |
| 3703 | + return (0, _functions.fetchUserProgress)(); | |
| 3704 | + case 2: | |
| 3705 | + userProgress = _context.sent; | |
| 3706 | + if (userProgress !== null && userProgress !== void 0 && userProgress[_consts.USER_PROGRESS.SHOULD_OPEN_IN_EDITOR]) { | |
| 3707 | + (0, _functions.toggleChecklistPopup)(); | |
| 3708 | + (0, _functions.dispatchChecklistOpenEvent)(); | |
| 3709 | + } | |
| 3710 | + case 3: | |
| 3711 | + elementor.off('document:loaded', checklistStartup); | |
| 3712 | + case 4: | |
| 3713 | + case "end": | |
| 3714 | + return _context.stop(); | |
| 3715 | + } | |
| 3716 | + }, _callee); | |
| 3717 | + })); | |
| 3718 | + return _checklistStartup.apply(this, arguments); | |
| 3719 | +} | |
| 3720 | +})(); | |
| 3721 | + | |
| 3722 | +/******/ })() | |
| 3723 | +; | |
| 2459 | 3724 | //# sourceMappingURL=checklist.js.map |