| 1 |
/*! elementor - v3.32.0 - 18-09-2025 */ |
| 2 |
/******/ (() => { // webpackBootstrap |
| 3 |
/******/ var __webpack_modules__ = ({ |
| 4 |
|
| 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; |
| 2427 |
} |
| 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; |
| 2436 |
} |
| 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; |
| 2442 |
} |
| 2443 |
var order2 = Object.getOwnPropertyNames(test2).map(function (n) { |
| 2444 |
return test2[n]; |
| 2445 |
}); |
| 2446 |
if (order2.join('') !== '0123456789') { |
| 2447 |
return false; |
| 2448 |
} |
| 2449 |
|
| 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 |
} |
| 2459 |
|
| 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; |
| 2464 |
} |
| 2465 |
} |
| 2466 |
|
| 2467 |
module.exports = shouldUseNative() ? Object.assign : function (target, source) { |
| 2468 |
var from; |
| 2469 |
var to = toObject(target); |
| 2470 |
var symbols; |
| 2471 |
|
| 2472 |
for (var s = 1; s < arguments.length; s++) { |
| 2473 |
from = Object(arguments[s]); |
| 2474 |
|
| 2475 |
for (var key in from) { |
| 2476 |
if (hasOwnProperty.call(from, key)) { |
| 2477 |
to[key] = from[key]; |
| 2478 |
} |
| 2479 |
} |
| 2480 |
|
| 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]]; |
| 2486 |
} |
| 2487 |
} |
| 2488 |
} |
| 2489 |
} |
| 2490 |
|
| 2491 |
return to; |
| 2492 |
}; |
| 2493 |
|
| 2494 |
|
| 2495 |
/***/ }), |
| 2496 |
|
| 2497 |
/***/ "../node_modules/prop-types/checkPropTypes.js": |
| 2498 |
/*!****************************************************!*\ |
| 2499 |
!*** ../node_modules/prop-types/checkPropTypes.js ***! |
| 2500 |
\****************************************************/ |
| 2501 |
/***/ ((module, __unused_webpack_exports, __webpack_require__) => { |
| 2502 |
|
| 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 |
*/ |
| 2510 |
|
| 2511 |
|
| 2512 |
|
| 2513 |
var printWarning = function() {}; |
| 2514 |
|
| 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"); |
| 2519 |
|
| 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 |
} |
| 2533 |
|
| 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; |
| 2583 |
|
| 2584 |
var stack = getStack ? getStack() : ''; |
| 2585 |
|
| 2586 |
printWarning( |
| 2587 |
'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '') |
| 2588 |
); |
| 2589 |
} |
| 2590 |
} |
| 2591 |
} |
| 2592 |
} |
| 2593 |
} |
| 2594 |
|
| 2595 |
/** |
| 2596 |
* Resets warning cache when testing. |
| 2597 |
* |
| 2598 |
* @private |
| 2599 |
*/ |
| 2600 |
checkPropTypes.resetWarningCache = function() { |
| 2601 |
if (true) { |
| 2602 |
loggedTypeFailures = {}; |
| 2603 |
} |
| 2604 |
} |
| 2605 |
|
| 2606 |
module.exports = checkPropTypes; |
| 2607 |
|
| 2608 |
|
| 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"; |
| 2618 |
/** |
| 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 |
*/ |
| 2624 |
|
| 2625 |
|
| 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 |
|
| 3238 |
/** |
| 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 |
*/ |
| 3244 |
|
| 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"; |
| 3265 |
/** |
| 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 |
*/ |
| 3271 |
|
| 3272 |
|
| 3273 |
|
| 3274 |
var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED'; |
| 3275 |
|
| 3276 |
module.exports = ReactPropTypesSecret; |
| 3277 |
|
| 3278 |
|
| 3279 |
/***/ }), |
| 3280 |
|
| 3281 |
/***/ "../node_modules/prop-types/lib/has.js": |
| 3282 |
/*!*********************************************!*\ |
| 3283 |
!*** ../node_modules/prop-types/lib/has.js ***! |
| 3284 |
\*********************************************/ |
| 3285 |
/***/ ((module) => { |
| 3286 |
|
| 3287 |
module.exports = Function.call.bind(Object.prototype.hasOwnProperty); |
| 3288 |
|
| 3289 |
|
| 3290 |
/***/ }), |
| 3291 |
|
| 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) => { |
| 3297 |
|
| 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 |
*/ |
| 3307 |
|
| 3308 |
|
| 3309 |
|
| 3310 |
|
| 3311 |
|
| 3312 |
if (true) { |
| 3313 |
(function() { |
| 3314 |
'use strict'; |
| 3315 |
|
| 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? |
| 3327 |
|
| 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; |
| 3339 |
|
| 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 |
} |
| 3344 |
|
| 3345 |
function typeOf(object) { |
| 3346 |
if (typeof object === 'object' && object !== null) { |
| 3347 |
var $$typeof = object.$$typeof; |
| 3348 |
|
| 3349 |
switch ($$typeof) { |
| 3350 |
case REACT_ELEMENT_TYPE: |
| 3351 |
var type = object.type; |
| 3352 |
|
| 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; |
| 3361 |
|
| 3362 |
default: |
| 3363 |
var $$typeofType = type && type.$$typeof; |
| 3364 |
|
| 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; |
| 3372 |
|
| 3373 |
default: |
| 3374 |
return $$typeof; |
| 3375 |
} |
| 3376 |
|
| 3377 |
} |
| 3378 |
|
| 3379 |
case REACT_PORTAL_TYPE: |
| 3380 |
return $$typeof; |
| 3381 |
} |
| 3382 |
} |
| 3383 |
|
| 3384 |
return undefined; |
| 3385 |
} // AsyncMode is deprecated along with isAsyncMode |
| 3386 |
|
| 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 |
| 3401 |
|
| 3402 |
function isAsyncMode(object) { |
| 3403 |
{ |
| 3404 |
if (!hasWarnedAboutDeprecatedIsAsyncMode) { |
| 3405 |
hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint |
| 3406 |
|
| 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 |
} |
| 3410 |
|
| 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 |
} |
| 3449 |
|
| 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 |
} |
| 3480 |
|
| 3481 |
|
| 3482 |
/***/ }), |
| 3483 |
|
| 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__) => { |
| 3489 |
|
| 3490 |
"use strict"; |
| 3491 |
|
| 3492 |
|
| 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 |
; |
| 3724 |
//# sourceMappingURL=checklist.js.map |