Version Description
1/5/2021 ==
- Fix: Compile the debug module so it can be used in older browsers like IE11. #5987
=
Download this release
Release Info
Developer | psealock |
Plugin | WooCommerce Admin |
Version | 1.8.3 |
Comparing to | |
See all releases |
Code changes from version 1.8.2 to 1.8.3
- dist/app/index.js +79 -79
- dist/app/index.min.js +1 -1
- dist/chunks/0.js +1 -1
- dist/chunks/0.min.js +1 -1
- dist/chunks/53.js +1 -1
- dist/chunks/53.min.js +1 -1
- dist/chunks/54.js +4 -4
- dist/chunks/54.min.js +1 -1
- dist/chunks/7.js +1 -1
- dist/chunks/7.min.js +1 -1
- dist/chunks/9.js +2 -2
- dist/chunks/9.min.js +1 -1
- dist/chunks/activity-panels-inbox.js +2 -2
- dist/chunks/activity-panels-inbox.min.js +1 -1
- dist/chunks/analytics-settings.js +1 -1
- dist/chunks/analytics-settings.min.js +1 -1
- dist/chunks/customizable-dashboard.js +1 -1
- dist/chunks/customizable-dashboard.min.js +1 -1
- dist/chunks/dashboard-charts.js +1 -1
- dist/chunks/dashboard-charts.min.js +1 -1
- dist/chunks/homescreen.js +647 -658
dist/app/index.js
CHANGED
@@ -793,13 +793,13 @@ function _toConsumableArray(arr) {
|
|
793 |
/* 28 */
|
794 |
/***/ (function(module, exports, __webpack_require__) {
|
795 |
|
796 |
-
var arrayWithoutHoles = __webpack_require__(
|
797 |
|
798 |
-
var iterableToArray = __webpack_require__(
|
799 |
|
800 |
-
var unsupportedIterableToArray = __webpack_require__(
|
801 |
|
802 |
-
var nonIterableSpread = __webpack_require__(
|
803 |
|
804 |
function _toConsumableArray(arr) {
|
805 |
return arrayWithoutHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableSpread();
|
@@ -883,7 +883,7 @@ var arrayWithHoles = __webpack_require__(100);
|
|
883 |
|
884 |
var iterableToArrayLimit = __webpack_require__(101);
|
885 |
|
886 |
-
var unsupportedIterableToArray = __webpack_require__(
|
887 |
|
888 |
var nonIterableRest = __webpack_require__(102);
|
889 |
|
@@ -3257,7 +3257,7 @@ var objectWithoutProperties = __webpack_require__(11);
|
|
3257 |
var defineProperty = __webpack_require__(6);
|
3258 |
|
3259 |
// EXTERNAL MODULE: ./node_modules/@wordpress/is-shallow-equal/lib/index.js
|
3260 |
-
var lib = __webpack_require__(
|
3261 |
var lib_default = /*#__PURE__*/__webpack_require__.n(lib);
|
3262 |
|
3263 |
// EXTERNAL MODULE: ./node_modules/@wordpress/components/build-module/slot-fill/bubbles-virtually/slot-fill-context.js
|
@@ -4010,7 +4010,7 @@ var SlotFillContext = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["cr
|
|
4010 |
});
|
4011 |
/* harmony default export */ __webpack_exports__["a"] = (SlotFillContext);
|
4012 |
//# sourceMappingURL=slot-fill-context.js.map
|
4013 |
-
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(
|
4014 |
|
4015 |
/***/ }),
|
4016 |
/* 62 */
|
@@ -4030,6 +4030,23 @@ module.exports = _arrayLikeToArray;
|
|
4030 |
|
4031 |
/***/ }),
|
4032 |
/* 63 */
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4033 |
/***/ (function(module, exports) {
|
4034 |
|
4035 |
// shim for using process in browser
|
@@ -4219,8 +4236,8 @@ process.umask = function() { return 0; };
|
|
4219 |
|
4220 |
|
4221 |
/***/ }),
|
4222 |
-
/*
|
4223 |
-
/*
|
4224 |
/***/ (function(module, exports, __webpack_require__) {
|
4225 |
|
4226 |
"use strict";
|
@@ -4265,8 +4282,8 @@ module.exports.isShallowEqualArrays = isShallowEqualArrays;
|
|
4265 |
|
4266 |
|
4267 |
/***/ }),
|
4268 |
-
/*
|
4269 |
-
/*
|
4270 |
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
4271 |
|
4272 |
"use strict";
|
@@ -4417,7 +4434,7 @@ function Button(props, ref) {
|
|
4417 |
//# sourceMappingURL=index.js.map
|
4418 |
|
4419 |
/***/ }),
|
4420 |
-
/*
|
4421 |
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
4422 |
|
4423 |
"use strict";
|
@@ -4736,7 +4753,7 @@ var build_module_focus = {
|
|
4736 |
//# sourceMappingURL=index.js.map
|
4737 |
|
4738 |
/***/ }),
|
4739 |
-
/*
|
4740 |
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
4741 |
|
4742 |
"use strict";
|
@@ -4912,23 +4929,6 @@ function isTextContent(node) {
|
|
4912 |
}
|
4913 |
//# sourceMappingURL=phrasing-content.js.map
|
4914 |
|
4915 |
-
/***/ }),
|
4916 |
-
/* 70 */
|
4917 |
-
/***/ (function(module, exports, __webpack_require__) {
|
4918 |
-
|
4919 |
-
var arrayLikeToArray = __webpack_require__(62);
|
4920 |
-
|
4921 |
-
function _unsupportedIterableToArray(o, minLen) {
|
4922 |
-
if (!o) return;
|
4923 |
-
if (typeof o === "string") return arrayLikeToArray(o, minLen);
|
4924 |
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
4925 |
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
4926 |
-
if (n === "Map" || n === "Set") return Array.from(o);
|
4927 |
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen);
|
4928 |
-
}
|
4929 |
-
|
4930 |
-
module.exports = _unsupportedIterableToArray;
|
4931 |
-
|
4932 |
/***/ }),
|
4933 |
/* 71 */
|
4934 |
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
@@ -5027,7 +5027,7 @@ function warning(message) {
|
|
5027 |
}
|
5028 |
}
|
5029 |
//# sourceMappingURL=index.js.map
|
5030 |
-
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(
|
5031 |
|
5032 |
/***/ }),
|
5033 |
/* 73 */
|
@@ -5342,7 +5342,7 @@ function domReady(callback) {
|
|
5342 |
|
5343 |
var stringify = __webpack_require__(136);
|
5344 |
var parse = __webpack_require__(137);
|
5345 |
-
var formats = __webpack_require__(
|
5346 |
|
5347 |
module.exports = {
|
5348 |
formats: formats,
|
@@ -5937,9 +5937,41 @@ function invariant(condition, message) {
|
|
5937 |
|
5938 |
|
5939 |
/***/ }),
|
5940 |
-
/* 93
|
5941 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5942 |
/* 95 */
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5943 |
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
5944 |
|
5945 |
"use strict";
|
@@ -6362,7 +6394,7 @@ function createSlotFill(name) {
|
|
6362 |
//# sourceMappingURL=index.js.map
|
6363 |
|
6364 |
/***/ }),
|
6365 |
-
/*
|
6366 |
/***/ (function(module, exports, __webpack_require__) {
|
6367 |
|
6368 |
"use strict";
|
@@ -6394,38 +6426,6 @@ module.exports = util.assign(
|
|
6394 |
);
|
6395 |
|
6396 |
|
6397 |
-
/***/ }),
|
6398 |
-
/* 97 */
|
6399 |
-
/***/ (function(module, exports, __webpack_require__) {
|
6400 |
-
|
6401 |
-
var arrayLikeToArray = __webpack_require__(62);
|
6402 |
-
|
6403 |
-
function _arrayWithoutHoles(arr) {
|
6404 |
-
if (Array.isArray(arr)) return arrayLikeToArray(arr);
|
6405 |
-
}
|
6406 |
-
|
6407 |
-
module.exports = _arrayWithoutHoles;
|
6408 |
-
|
6409 |
-
/***/ }),
|
6410 |
-
/* 98 */
|
6411 |
-
/***/ (function(module, exports) {
|
6412 |
-
|
6413 |
-
function _iterableToArray(iter) {
|
6414 |
-
if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter);
|
6415 |
-
}
|
6416 |
-
|
6417 |
-
module.exports = _iterableToArray;
|
6418 |
-
|
6419 |
-
/***/ }),
|
6420 |
-
/* 99 */
|
6421 |
-
/***/ (function(module, exports) {
|
6422 |
-
|
6423 |
-
function _nonIterableSpread() {
|
6424 |
-
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
6425 |
-
}
|
6426 |
-
|
6427 |
-
module.exports = _nonIterableSpread;
|
6428 |
-
|
6429 |
/***/ }),
|
6430 |
/* 100 */
|
6431 |
/***/ (function(module, exports) {
|
@@ -8881,7 +8881,7 @@ function createMemoryHistory(props) {
|
|
8881 |
/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__);
|
8882 |
/* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(77);
|
8883 |
/* harmony import */ var _wordpress_keycodes__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(57);
|
8884 |
-
/* harmony import */ var _wordpress_dom__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(
|
8885 |
|
8886 |
|
8887 |
|
@@ -9707,7 +9707,7 @@ var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames);
|
|
9707 |
var dom = __webpack_require__(129);
|
9708 |
|
9709 |
// EXTERNAL MODULE: ./node_modules/@wordpress/components/node_modules/@wordpress/dom/build-module/index.js + 2 modules
|
9710 |
-
var build_module = __webpack_require__(
|
9711 |
|
9712 |
// EXTERNAL MODULE: ./node_modules/@wordpress/components/node_modules/@wordpress/keycodes/build-module/index.js + 1 modules
|
9713 |
var keycodes_build_module = __webpack_require__(57);
|
@@ -10045,7 +10045,7 @@ var detect_outside_PopoverDetectOutside = /*#__PURE__*/function (_Component) {
|
|
10045 |
/* harmony default export */ var detect_outside = (Object(with_focus_outside["a" /* default */])(detect_outside_PopoverDetectOutside));
|
10046 |
//# sourceMappingURL=detect-outside.js.map
|
10047 |
// EXTERNAL MODULE: ./node_modules/@wordpress/components/build-module/button/index.js
|
10048 |
-
var build_module_button = __webpack_require__(
|
10049 |
|
10050 |
// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/scroll-lock/index.js
|
10051 |
|
@@ -10199,7 +10199,7 @@ var isolated_event_container = __webpack_require__(111);
|
|
10199 |
var use_slot = __webpack_require__(71);
|
10200 |
|
10201 |
// EXTERNAL MODULE: ./node_modules/@wordpress/components/build-module/slot-fill/index.js + 4 modules
|
10202 |
-
var slot_fill = __webpack_require__(
|
10203 |
|
10204 |
// EXTERNAL MODULE: ./node_modules/@wordpress/components/build-module/animate/index.js
|
10205 |
var build_module_animate = __webpack_require__(115);
|
@@ -11666,7 +11666,7 @@ module.exports = g;
|
|
11666 |
/* unused harmony export removeInvalidHTML */
|
11667 |
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
|
11668 |
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_0__);
|
11669 |
-
/* harmony import */ var _phrasing_content__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
11670 |
/**
|
11671 |
* External dependencies
|
11672 |
*/
|
@@ -12820,7 +12820,7 @@ module.exports = _setPrototypeOf;
|
|
12820 |
|
12821 |
|
12822 |
var utils = __webpack_require__(87);
|
12823 |
-
var formats = __webpack_require__(
|
12824 |
var has = Object.prototype.hasOwnProperty;
|
12825 |
|
12826 |
var arrayPrefixGenerators = {
|
@@ -15527,7 +15527,7 @@ var dist = __webpack_require__(338);
|
|
15527 |
var dist_default = /*#__PURE__*/__webpack_require__.n(dist);
|
15528 |
|
15529 |
// EXTERNAL MODULE: ./node_modules/@wordpress/components/build-module/button/index.js
|
15530 |
-
var build_module_button = __webpack_require__(
|
15531 |
|
15532 |
// EXTERNAL MODULE: ./node_modules/gridicons/dist/cross-small.js
|
15533 |
var cross_small = __webpack_require__(177);
|
@@ -20776,7 +20776,7 @@ function Dropdown(_ref) {
|
|
20776 |
/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(3);
|
20777 |
/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__);
|
20778 |
/* harmony import */ var _wordpress_warning__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(72);
|
20779 |
-
/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(
|
20780 |
|
20781 |
|
20782 |
/**
|
@@ -20909,7 +20909,7 @@ function Snackbar(_ref, ref) {
|
|
20909 |
}
|
20910 |
|
20911 |
/* harmony default export */ __webpack_exports__["a"] = (Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["forwardRef"])(Snackbar));
|
20912 |
-
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(
|
20913 |
|
20914 |
/***/ }),
|
20915 |
/* 341 */
|
@@ -21205,7 +21205,7 @@ var styled_base_browser_esm = __webpack_require__(32);
|
|
21205 |
var colors_values = __webpack_require__(86);
|
21206 |
|
21207 |
// EXTERNAL MODULE: ./node_modules/@wordpress/components/build-module/button/index.js
|
21208 |
-
var build_module_button = __webpack_require__(
|
21209 |
|
21210 |
// EXTERNAL MODULE: ./node_modules/@wordpress/components/build-module/text/index.js + 3 modules
|
21211 |
var build_module_text = __webpack_require__(142);
|
@@ -23986,7 +23986,7 @@ var useReducedMotion = process.env.FORCE_REDUCED_MOTION || IS_IE ? function () {
|
|
23986 |
};
|
23987 |
/* harmony default export */ __webpack_exports__["a"] = (useReducedMotion);
|
23988 |
//# sourceMappingURL=index.js.map
|
23989 |
-
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(
|
23990 |
|
23991 |
/***/ }),
|
23992 |
/* 573 */
|
@@ -24030,7 +24030,7 @@ var possibleConstructorReturn = __webpack_require__(21);
|
|
24030 |
var getPrototypeOf = __webpack_require__(9);
|
24031 |
|
24032 |
// EXTERNAL MODULE: ./node_modules/@wordpress/components/node_modules/@wordpress/dom/build-module/index.js + 2 modules
|
24033 |
-
var dom_build_module = __webpack_require__(
|
24034 |
|
24035 |
// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/navigable-container/container.js
|
24036 |
|
793 |
/* 28 */
|
794 |
/***/ (function(module, exports, __webpack_require__) {
|
795 |
|
796 |
+
var arrayWithoutHoles = __webpack_require__(93);
|
797 |
|
798 |
+
var iterableToArray = __webpack_require__(94);
|
799 |
|
800 |
+
var unsupportedIterableToArray = __webpack_require__(63);
|
801 |
|
802 |
+
var nonIterableSpread = __webpack_require__(95);
|
803 |
|
804 |
function _toConsumableArray(arr) {
|
805 |
return arrayWithoutHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableSpread();
|
883 |
|
884 |
var iterableToArrayLimit = __webpack_require__(101);
|
885 |
|
886 |
+
var unsupportedIterableToArray = __webpack_require__(63);
|
887 |
|
888 |
var nonIterableRest = __webpack_require__(102);
|
889 |
|
3257 |
var defineProperty = __webpack_require__(6);
|
3258 |
|
3259 |
// EXTERNAL MODULE: ./node_modules/@wordpress/is-shallow-equal/lib/index.js
|
3260 |
+
var lib = __webpack_require__(66);
|
3261 |
var lib_default = /*#__PURE__*/__webpack_require__.n(lib);
|
3262 |
|
3263 |
// EXTERNAL MODULE: ./node_modules/@wordpress/components/build-module/slot-fill/bubbles-virtually/slot-fill-context.js
|
4010 |
});
|
4011 |
/* harmony default export */ __webpack_exports__["a"] = (SlotFillContext);
|
4012 |
//# sourceMappingURL=slot-fill-context.js.map
|
4013 |
+
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(64)))
|
4014 |
|
4015 |
/***/ }),
|
4016 |
/* 62 */
|
4030 |
|
4031 |
/***/ }),
|
4032 |
/* 63 */
|
4033 |
+
/***/ (function(module, exports, __webpack_require__) {
|
4034 |
+
|
4035 |
+
var arrayLikeToArray = __webpack_require__(62);
|
4036 |
+
|
4037 |
+
function _unsupportedIterableToArray(o, minLen) {
|
4038 |
+
if (!o) return;
|
4039 |
+
if (typeof o === "string") return arrayLikeToArray(o, minLen);
|
4040 |
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
4041 |
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
4042 |
+
if (n === "Map" || n === "Set") return Array.from(o);
|
4043 |
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen);
|
4044 |
+
}
|
4045 |
+
|
4046 |
+
module.exports = _unsupportedIterableToArray;
|
4047 |
+
|
4048 |
+
/***/ }),
|
4049 |
+
/* 64 */
|
4050 |
/***/ (function(module, exports) {
|
4051 |
|
4052 |
// shim for using process in browser
|
4236 |
|
4237 |
|
4238 |
/***/ }),
|
4239 |
+
/* 65 */,
|
4240 |
+
/* 66 */
|
4241 |
/***/ (function(module, exports, __webpack_require__) {
|
4242 |
|
4243 |
"use strict";
|
4282 |
|
4283 |
|
4284 |
/***/ }),
|
4285 |
+
/* 67 */,
|
4286 |
+
/* 68 */
|
4287 |
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
4288 |
|
4289 |
"use strict";
|
4434 |
//# sourceMappingURL=index.js.map
|
4435 |
|
4436 |
/***/ }),
|
4437 |
+
/* 69 */
|
4438 |
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
4439 |
|
4440 |
"use strict";
|
4753 |
//# sourceMappingURL=index.js.map
|
4754 |
|
4755 |
/***/ }),
|
4756 |
+
/* 70 */
|
4757 |
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
4758 |
|
4759 |
"use strict";
|
4929 |
}
|
4930 |
//# sourceMappingURL=phrasing-content.js.map
|
4931 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4932 |
/***/ }),
|
4933 |
/* 71 */
|
4934 |
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
5027 |
}
|
5028 |
}
|
5029 |
//# sourceMappingURL=index.js.map
|
5030 |
+
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(64)))
|
5031 |
|
5032 |
/***/ }),
|
5033 |
/* 73 */
|
5342 |
|
5343 |
var stringify = __webpack_require__(136);
|
5344 |
var parse = __webpack_require__(137);
|
5345 |
+
var formats = __webpack_require__(99);
|
5346 |
|
5347 |
module.exports = {
|
5348 |
formats: formats,
|
5937 |
|
5938 |
|
5939 |
/***/ }),
|
5940 |
+
/* 93 */
|
5941 |
+
/***/ (function(module, exports, __webpack_require__) {
|
5942 |
+
|
5943 |
+
var arrayLikeToArray = __webpack_require__(62);
|
5944 |
+
|
5945 |
+
function _arrayWithoutHoles(arr) {
|
5946 |
+
if (Array.isArray(arr)) return arrayLikeToArray(arr);
|
5947 |
+
}
|
5948 |
+
|
5949 |
+
module.exports = _arrayWithoutHoles;
|
5950 |
+
|
5951 |
+
/***/ }),
|
5952 |
+
/* 94 */
|
5953 |
+
/***/ (function(module, exports) {
|
5954 |
+
|
5955 |
+
function _iterableToArray(iter) {
|
5956 |
+
if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter);
|
5957 |
+
}
|
5958 |
+
|
5959 |
+
module.exports = _iterableToArray;
|
5960 |
+
|
5961 |
+
/***/ }),
|
5962 |
/* 95 */
|
5963 |
+
/***/ (function(module, exports) {
|
5964 |
+
|
5965 |
+
function _nonIterableSpread() {
|
5966 |
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
5967 |
+
}
|
5968 |
+
|
5969 |
+
module.exports = _nonIterableSpread;
|
5970 |
+
|
5971 |
+
/***/ }),
|
5972 |
+
/* 96 */,
|
5973 |
+
/* 97 */,
|
5974 |
+
/* 98 */
|
5975 |
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
5976 |
|
5977 |
"use strict";
|
6394 |
//# sourceMappingURL=index.js.map
|
6395 |
|
6396 |
/***/ }),
|
6397 |
+
/* 99 */
|
6398 |
/***/ (function(module, exports, __webpack_require__) {
|
6399 |
|
6400 |
"use strict";
|
6426 |
);
|
6427 |
|
6428 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6429 |
/***/ }),
|
6430 |
/* 100 */
|
6431 |
/***/ (function(module, exports) {
|
8881 |
/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__);
|
8882 |
/* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(77);
|
8883 |
/* harmony import */ var _wordpress_keycodes__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(57);
|
8884 |
+
/* harmony import */ var _wordpress_dom__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(69);
|
8885 |
|
8886 |
|
8887 |
|
9707 |
var dom = __webpack_require__(129);
|
9708 |
|
9709 |
// EXTERNAL MODULE: ./node_modules/@wordpress/components/node_modules/@wordpress/dom/build-module/index.js + 2 modules
|
9710 |
+
var build_module = __webpack_require__(69);
|
9711 |
|
9712 |
// EXTERNAL MODULE: ./node_modules/@wordpress/components/node_modules/@wordpress/keycodes/build-module/index.js + 1 modules
|
9713 |
var keycodes_build_module = __webpack_require__(57);
|
10045 |
/* harmony default export */ var detect_outside = (Object(with_focus_outside["a" /* default */])(detect_outside_PopoverDetectOutside));
|
10046 |
//# sourceMappingURL=detect-outside.js.map
|
10047 |
// EXTERNAL MODULE: ./node_modules/@wordpress/components/build-module/button/index.js
|
10048 |
+
var build_module_button = __webpack_require__(68);
|
10049 |
|
10050 |
// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/scroll-lock/index.js
|
10051 |
|
10199 |
var use_slot = __webpack_require__(71);
|
10200 |
|
10201 |
// EXTERNAL MODULE: ./node_modules/@wordpress/components/build-module/slot-fill/index.js + 4 modules
|
10202 |
+
var slot_fill = __webpack_require__(98);
|
10203 |
|
10204 |
// EXTERNAL MODULE: ./node_modules/@wordpress/components/build-module/animate/index.js
|
10205 |
var build_module_animate = __webpack_require__(115);
|
11666 |
/* unused harmony export removeInvalidHTML */
|
11667 |
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
|
11668 |
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_0__);
|
11669 |
+
/* harmony import */ var _phrasing_content__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(70);
|
11670 |
/**
|
11671 |
* External dependencies
|
11672 |
*/
|
12820 |
|
12821 |
|
12822 |
var utils = __webpack_require__(87);
|
12823 |
+
var formats = __webpack_require__(99);
|
12824 |
var has = Object.prototype.hasOwnProperty;
|
12825 |
|
12826 |
var arrayPrefixGenerators = {
|
15527 |
var dist_default = /*#__PURE__*/__webpack_require__.n(dist);
|
15528 |
|
15529 |
// EXTERNAL MODULE: ./node_modules/@wordpress/components/build-module/button/index.js
|
15530 |
+
var build_module_button = __webpack_require__(68);
|
15531 |
|
15532 |
// EXTERNAL MODULE: ./node_modules/gridicons/dist/cross-small.js
|
15533 |
var cross_small = __webpack_require__(177);
|
20776 |
/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(3);
|
20777 |
/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__);
|
20778 |
/* harmony import */ var _wordpress_warning__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(72);
|
20779 |
+
/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(68);
|
20780 |
|
20781 |
|
20782 |
/**
|
20909 |
}
|
20910 |
|
20911 |
/* harmony default export */ __webpack_exports__["a"] = (Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["forwardRef"])(Snackbar));
|
20912 |
+
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(64)))
|
20913 |
|
20914 |
/***/ }),
|
20915 |
/* 341 */
|
21205 |
var colors_values = __webpack_require__(86);
|
21206 |
|
21207 |
// EXTERNAL MODULE: ./node_modules/@wordpress/components/build-module/button/index.js
|
21208 |
+
var build_module_button = __webpack_require__(68);
|
21209 |
|
21210 |
// EXTERNAL MODULE: ./node_modules/@wordpress/components/build-module/text/index.js + 3 modules
|
21211 |
var build_module_text = __webpack_require__(142);
|
23986 |
};
|
23987 |
/* harmony default export */ __webpack_exports__["a"] = (useReducedMotion);
|
23988 |
//# sourceMappingURL=index.js.map
|
23989 |
+
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(64)))
|
23990 |
|
23991 |
/***/ }),
|
23992 |
/* 573 */
|
24030 |
var getPrototypeOf = __webpack_require__(9);
|
24031 |
|
24032 |
// EXTERNAL MODULE: ./node_modules/@wordpress/components/node_modules/@wordpress/dom/build-module/index.js + 2 modules
|
24033 |
+
var dom_build_module = __webpack_require__(69);
|
24034 |
|
24035 |
// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/navigable-container/container.js
|
24036 |
|
dist/app/index.min.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1 |
/*! For license information please see index.min.js.LICENSE.txt */
|
2 |
-
this.wc=this.wc||{},this.wc.app=function(e){function t(t){for(var n,r,i=t[0],a=t[1],c=0,u=[];c<i.length;c++)r=i[c],Object.prototype.hasOwnProperty.call(o,r)&&o[r]&&u.push(o[r][0]),o[r]=0;for(n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n]);for(l&&l(t);u.length;)u.shift()()}var n={},r={24:0},o={24:0};function i(e){var t=function(e){return a.p+"chunks/"+({10:"activity-panels-help",11:"activity-panels-inbox",12:"analytics-report",13:"analytics-report-categories",14:"analytics-report-coupons",15:"analytics-report-customers",16:"analytics-report-downloads",17:"analytics-report-orders",18:"analytics-report-products",19:"analytics-report-revenue",20:"analytics-report-stock",21:"analytics-report-taxes",22:"analytics-report-variations",23:"analytics-settings",29:"customizable-dashboard",30:"dashboard",31:"dashboard-charts",34:"homescreen",36:"leaderboards",38:"marketing-overview",47:"profile-wizard",48:"store-alerts",49:"store-performance",50:"task-list",52:"wcpay-usage-modal"}[e]||e)+".min.js"}(e);return window.wcAdminAssets&&window.wcAdminAssets.version&&(t+="?ver="+window.wcAdminAssets.version),t}function a(t){if(n[t])return n[t].exports;var r=n[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,a),r.l=!0,r.exports}a.e=function(e){var t=[];r[e]?t.push(r[e]):0!==r[e]&&{0:1,6:1,10:1,11:1,12:1,17:1,23:1,30:1,31:1,34:1,36:1,38:1,47:1,48:1,49:1}[e]&&t.push(r[e]=new Promise((function(t,n){for(var o="rtl"===document.dir?"./chunks/"+e+".style.rtl.css":"./chunks/"+e+".style.css",i=a.p+o,c=document.getElementsByTagName("link"),u=0;u<c.length;u++){var s=(f=c[u]).getAttribute("data-href")||f.getAttribute("href");if("stylesheet"===f.rel&&(s===o||s===i))return t()}var l=document.getElementsByTagName("style");for(u=0;u<l.length;u++){var f;if((s=(f=l[u]).getAttribute("data-href"))===o||s===i)return t()}var d=document.createElement("link");d.rel="stylesheet",d.type="text/css",d.setAttribute("data-webpack",!0),d.onload=t,d.onerror=function(t){var o=t&&t.target&&t.target.src||i,a=new Error("Loading CSS chunk "+e+" failed.\n("+o+")");a.code="CSS_CHUNK_LOAD_FAILED",a.request=o,delete r[e],d.parentNode.removeChild(d),n(a)},d.href=i,window.wcAdminAssets&&window.wcAdminAssets.version&&(d.href+="?ver="+window.wcAdminAssets.version),document.getElementsByTagName("head")[0].appendChild(d)})).then((function(){r[e]=0})));var n=o[e];if(0!==n)if(n)t.push(n[2]);else{var c=new Promise((function(t,r){n=o[e]=[t,r]}));t.push(n[2]=c);var u,s=document.createElement("script");s.charset="utf-8",s.timeout=120,a.nc&&s.setAttribute("nonce",a.nc),s.src=i(e);var l=new Error;u=function(t){s.onerror=s.onload=null,clearTimeout(f);var n=o[e];if(0!==n){if(n){var r=t&&("load"===t.type?"missing":t.type),i=t&&t.target&&t.target.src;l.message="Loading chunk "+e+" failed.\n("+r+": "+i+")",l.name="ChunkLoadError",l.type=r,l.request=i,n[1](l)}o[e]=void 0}};var f=setTimeout((function(){u({type:"timeout",target:s})}),12e4);s.onerror=s.onload=u,document.head.appendChild(s)}return Promise.all(t)},a.m=e,a.c=n,a.d=function(e,t,n){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(a.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)a.d(n,r,function(t){return e[t]}.bind(null,r));return n},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="",a.oe=function(e){throw console.error(e),e};var c=window.__wcAdmin_webpackJsonp=window.__wcAdmin_webpackJsonp||[],u=c.push.bind(c);c.push=t,c=c.slice();for(var s=0;s<c.length;s++)t(c[s]);var l=u;return a(a.s=367)}([function(e,t){!function(){e.exports=this.wp.element}()},function(e,t,n){e.exports=n(120)()},function(e,t){!function(){e.exports=this.lodash}()},function(e,t){!function(){e.exports=this.wp.i18n}()},function(e,t,n){!function(){"use strict";var t={}.hasOwnProperty;function n(){for(var e=[],r=0;r<arguments.length;r++){var o=arguments[r];if(o){var i=typeof o;if("string"===i||"number"===i)e.push(o);else if(Array.isArray(o)&&o.length){var a=n.apply(null,o);a&&e.push(a)}else if("object"===i)for(var c in o)t.call(o,c)&&o[c]&&e.push(c)}}return e.join(" ")}e.exports?(n.default=n,e.exports=n):"function"==typeof define&&"object"==typeof define.amd&&define.amd?define("classnames",[],(function(){return n})):window.classNames=n}()},function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}n.d(t,"a",(function(){return r}))},function(e,t){!function(){e.exports=this.React}()},function(e,t,n){"use strict";function r(e){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"a",(function(){return r}))},function(e,t){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},n(t)}e.exports=n},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(54);function o(e,t){if(null==e)return{};var n,o,i=Object(r.a)(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}},function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,"a",(function(){return r}))},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},function(e,t,n){e.exports=n(119)},function(e,t){function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}e.exports=function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}n.d(t,"a",(function(){return o}))},function(e,t,n){"use strict";function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}n.d(t,"a",(function(){return o}))},function(e,t){!function(){e.exports=this.moment}()},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(41),o=n(12);function i(e,t){return!t||"object"!==Object(r.a)(t)&&"function"!=typeof t?Object(o.a)(e):t}},function(e,t,n){var r=n(135);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}},function(e,t,n){var r=n(52),o=n(13);e.exports=function(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?o(e):t}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(59);function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}}(e,t)||Object(r.a)(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},function(e,t){!function(){e.exports=this.wp.data}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(49);var o=n(59);function i(e){return function(e){if(Array.isArray(e))return Object(r.a)(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||Object(o.a)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},function(e,t){!function(){e.exports=this.wp.dataControls}()},function(e,t,n){var r=n(97),o=n(98),i=n(70),a=n(99);e.exports=function(e){return r(e)||o(e)||i(e)||a()}},function(e,t){!function(){e.exports=this.wc.navigation}()},function(e,t,n){"use strict";n.d(t,"b",(function(){return c})),n.d(t,"a",(function(){return u}));var r=n(2),o=n(106),i=n.n(o),a=n(86);function c(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=i()(e).toRgb(),r=n.r,o=n.g,a=n.b;return"rgba(".concat(r,", ").concat(o,", ").concat(a,", ").concat(t,")")}function u(e){return Object(r.get)(a.a,e,"#000")}},function(e,t,n){var r=n(100),o=n(101),i=n(70),a=n(102);e.exports=function(e,t){return r(e)||o(e,t)||i(e,t)||a()}},function(e,t,n){"use strict";var r=n(5),o=n.n(r),i=n(8),a=n(73),c=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,u=Object(a.a)((function(e){return c.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),s=n(48),l=n(38),f=n(37),d=u,p=function(e){return"theme"!==e&&"innerRef"!==e},m=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?d:p};function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function b(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(n,!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}t.a=function e(t,n){var r,o,a;void 0!==n&&(r=n.label,a=n.target,o=t.__emotion_forwardProp&&n.shouldForwardProp?function(e){return t.__emotion_forwardProp(e)&&n.shouldForwardProp(e)}:n.shouldForwardProp);var c=t.__emotion_real===t,u=c&&t.__emotion_base||t;"function"!=typeof o&&c&&(o=t.__emotion_forwardProp);var d=o||m(u),p=!d("as");return function(){var h=arguments,v=c&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&v.push("label:"+r+";"),null==h[0]||void 0===h[0].raw)v.push.apply(v,h);else{0,v.push(h[0][0]);for(var g=h.length,y=1;y<g;y++)v.push(h[y],h[0][y])}var O=Object(s.c)((function(e,t,n){return Object(i.createElement)(s.a.Consumer,null,(function(r){var c=p&&e.as||u,s="",h=[],b=e;if(null==e.theme){for(var g in b={},e)b[g]=e[g];b.theme=r}"string"==typeof e.className?s=Object(l.a)(t.registered,h,e.className):null!=e.className&&(s=e.className+" ");var y=Object(f.a)(v.concat(h),t.registered,b);Object(l.b)(t,y,"string"==typeof c);s+=t.key+"-"+y.name,void 0!==a&&(s+=" "+a);var O=p&&void 0===o?m(c):d,w={};for(var j in e)p&&"as"===j||O(j)&&(w[j]=e[j]);return w.className=s,w.ref=n||e.innerRef,Object(i.createElement)(c,w)}))}));return O.displayName=void 0!==r?r:"Styled("+("string"==typeof u?u:u.displayName||u.name||"Component")+")",O.defaultProps=t.defaultProps,O.__emotion_real=O,O.__emotion_base=u,O.__emotion_styles=v,O.__emotion_forwardProp=o,Object.defineProperty(O,"toString",{value:function(){return"."+a}}),O.withComponent=function(t,r){return e(t,void 0!==r?b({},n||{},{},r):n).apply(void 0,v)},O}}},function(e,t){!function(){e.exports=this.wp.url}()},function(e,t){!function(){e.exports=this.wc.data}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return l})),n.d(t,"c",(function(){return f})),n.d(t,"d",(function(){return d})),n.d(t,"e",(function(){return p})),n.d(t,"g",(function(){return m})),n.d(t,"h",(function(){return h})),n.d(t,"f",(function(){return b}));var r=n(52),o=n.n(r),i=n(3),a=["wcAdminSettings","preloadSettings"],c="object"===("undefined"==typeof wcSettings?"undefined":o()(wcSettings))?wcSettings:{},u=Object.keys(c).reduce((function(e,t){return a.includes(t)||(e[t]=c[t]),e}),{}),s=u.adminUrl,l=(u.countries,u.currency),f=u.locale,d=u.orderStatuses,p=(u.siteTitle,u.wcAssetUrl);function m(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(e){return e};if(a.includes(e))throw new Error(Object(i.__)("Mutable settings should be accessed via data store."));var r=u.hasOwnProperty(e)?u[e]:t;return n(r,t)}function h(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(e){return e};if(a.includes(e))throw new Error(Object(i.__)("Mutable settings should be mutated via data store."));u[e]=n(t)}function b(e){return(s||"")+e}},function(e,t){function n(){return e.exports=n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},n.apply(this,arguments)}e.exports=n},function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var r=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)},o={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},i=n(73),a=/[A-Z]|^ms/g,c=/_EMO_([^_]+?)_([^]*?)_EMO_/g,u=function(e){return 45===e.charCodeAt(1)},s=function(e){return null!=e&&"boolean"!=typeof e},l=Object(i.a)((function(e){return u(e)?e:e.replace(a,"-$&").toLowerCase()})),f=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(c,(function(e,t,n){return p={name:t,styles:n,next:p},t}))}return 1===o[e]||u(e)||"number"!=typeof t||0===t?t:t+"px"};function d(e,t,n,r){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return p={name:n.name,styles:n.styles,next:p},n.name;if(void 0!==n.styles){var o=n.next;if(void 0!==o)for(;void 0!==o;)p={name:o.name,styles:o.styles,next:p},o=o.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=d(e,t,n[o],!1);else for(var i in n){var a=n[i];if("object"!=typeof a)null!=t&&void 0!==t[a]?r+=i+"{"+t[a]+"}":s(a)&&(r+=l(i)+":"+f(i,a)+";");else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var c=d(e,t,a,!1);switch(i){case"animation":case"animationName":r+=l(i)+":"+c+";";break;default:r+=i+"{"+c+"}"}}else for(var u=0;u<a.length;u++)s(a[u])&&(r+=l(i)+":"+f(i,a[u])+";")}return r}(e,t,n);case"function":if(void 0!==e){var i=p,a=n(e);return p=i,d(e,t,a,r)}break;case"string":}if(null==t)return n;var c=t[n];return void 0===c||r?n:c}var p,m=/label:\s*([^\s;\n{]+)\s*;/g;var h=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var o=!0,i="";p=void 0;var a=e[0];null==a||void 0===a.raw?(o=!1,i+=d(n,t,a,!1)):i+=a[0];for(var c=1;c<e.length;c++)i+=d(n,t,e[c],46===i.charCodeAt(i.length-1)),o&&(i+=a[c]);m.lastIndex=0;for(var u,s="";null!==(u=m.exec(i));)s+="-"+u[1];return{name:r(i)+s,styles:i,next:p}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o}));function r(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]):r+=n+" "})),r}var o=function(e,t,n){var r=e.key+"-"+t.name;if(!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles),void 0===e.inserted[t.name]){var o=t;do{e.insert("."+r,o,e.sheet,!0);o=o.next}while(void 0!==o)}}},function(e,t,n){"use strict";function r(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}n.d(t,"a",(function(){return r}))},,function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n.d(t,"a",(function(){return r}))},function(e,t){!function(){e.exports=this.wc.date}()},,function(e,t){!function(){e.exports=this.wp.apiFetch}()},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(51),o=Object.create(null);function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.version,i=t.alternative,a=t.plugin,c=t.link,u=t.hint,s=a?" from ".concat(a):"",l=n?" and will be removed".concat(s," in version ").concat(n):"",f=i?" Please use ".concat(i," instead."):"",d=c?" See: ".concat(c):"",p=u?" Note: ".concat(u):"",m="".concat(e," is deprecated").concat(l,".").concat(f).concat(d).concat(p);m in o||(Object(r.doAction)("deprecated",e,t,m),console.warn(m),o[m]=!0)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return m})),n.d(t,"c",(function(){return h})),n.d(t,"b",(function(){return b}));var r=n(53),o=n(8);var i=function(){function e(e){this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.before=null}var t=e.prototype;return t.insert=function(e){if(this.ctr%(this.isSpeedy?65e3:1)==0){var t,n=function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t}(this);t=0===this.tags.length?this.before:this.tags[this.tags.length-1].nextSibling,this.container.insertBefore(n,t),this.tags.push(n)}var r=this.tags[this.tags.length-1];if(this.isSpeedy){var o=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(r);try{var i=105===e.charCodeAt(1)&&64===e.charCodeAt(0);o.insertRule(e,i?0:o.cssRules.length)}catch(e){0}}else r.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}();var a=function(e){function t(e,t,r){var o=t.trim().split(m);t=o;var i=o.length,a=e.length;switch(a){case 0:case 1:var c=0;for(e=0===a?"":e[0]+" ";c<i;++c)t[c]=n(e,t[c],r).trim();break;default:var u=c=0;for(t=[];c<i;++c)for(var s=0;s<a;++s)t[u++]=n(e[s]+" ",o[c],r).trim()}return t}function n(e,t,n){var r=t.charCodeAt(0);switch(33>r&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(h,"$1"+e.trim());case 58:return e.trim()+t.replace(h,"$1"+e.trim());default:if(0<1*n&&0<t.indexOf("\f"))return t.replace(h,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function r(e,t,n,i){var a=e+";",c=2*t+3*n+4*i;if(944===c){e=a.indexOf(":",9)+1;var u=a.substring(e,a.length-1).trim();return u=a.substring(0,e).trim()+u+";",1===P||2===P&&o(u,1)?"-webkit-"+u+u:u}if(0===P||2===P&&!o(a,1))return a;switch(c){case 1015:return 97===a.charCodeAt(10)?"-webkit-"+a+a:a;case 951:return 116===a.charCodeAt(3)?"-webkit-"+a+a:a;case 963:return 110===a.charCodeAt(5)?"-webkit-"+a+a:a;case 1009:if(100!==a.charCodeAt(4))break;case 969:case 942:return"-webkit-"+a+a;case 978:return"-webkit-"+a+"-moz-"+a+a;case 1019:case 983:return"-webkit-"+a+"-moz-"+a+"-ms-"+a+a;case 883:if(45===a.charCodeAt(8))return"-webkit-"+a+a;if(0<a.indexOf("image-set(",11))return a.replace(E,"$1-webkit-$2")+a;break;case 932:if(45===a.charCodeAt(4))switch(a.charCodeAt(5)){case 103:return"-webkit-box-"+a.replace("-grow","")+"-webkit-"+a+"-ms-"+a.replace("grow","positive")+a;case 115:return"-webkit-"+a+"-ms-"+a.replace("shrink","negative")+a;case 98:return"-webkit-"+a+"-ms-"+a.replace("basis","preferred-size")+a}return"-webkit-"+a+"-ms-"+a+a;case 964:return"-webkit-"+a+"-ms-flex-"+a+a;case 1023:if(99!==a.charCodeAt(8))break;return"-webkit-box-pack"+(u=a.substring(a.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+a+"-ms-flex-pack"+u+a;case 1005:return d.test(a)?a.replace(f,":-webkit-")+a.replace(f,":-moz-")+a:a;case 1e3:switch(t=(u=a.substring(13).trim()).indexOf("-")+1,u.charCodeAt(0)+u.charCodeAt(t)){case 226:u=a.replace(y,"tb");break;case 232:u=a.replace(y,"tb-rl");break;case 220:u=a.replace(y,"lr");break;default:return a}return"-webkit-"+a+"-ms-"+u+a;case 1017:if(-1===a.indexOf("sticky",9))break;case 975:switch(t=(a=e).length-10,c=(u=(33===a.charCodeAt(t)?a.substring(0,t):a).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|u.charCodeAt(7))){case 203:if(111>u.charCodeAt(8))break;case 115:a=a.replace(u,"-webkit-"+u)+";"+a;break;case 207:case 102:a=a.replace(u,"-webkit-"+(102<c?"inline-":"")+"box")+";"+a.replace(u,"-webkit-"+u)+";"+a.replace(u,"-ms-"+u+"box")+";"+a}return a+";";case 938:if(45===a.charCodeAt(5))switch(a.charCodeAt(6)){case 105:return u=a.replace("-items",""),"-webkit-"+a+"-webkit-box-"+u+"-ms-flex-"+u+a;case 115:return"-webkit-"+a+"-ms-flex-item-"+a.replace(j,"")+a;default:return"-webkit-"+a+"-ms-flex-line-pack"+a.replace("align-content","").replace(j,"")+a}break;case 973:case 989:if(45!==a.charCodeAt(3)||122===a.charCodeAt(4))break;case 931:case 953:if(!0===_.test(e))return 115===(u=e.substring(e.indexOf(":")+1)).charCodeAt(0)?r(e.replace("stretch","fill-available"),t,n,i).replace(":fill-available",":stretch"):a.replace(u,"-webkit-"+u)+a.replace(u,"-moz-"+u.replace("fill-",""))+a;break;case 962:if(a="-webkit-"+a+(102===a.charCodeAt(5)?"-ms-"+a:"")+a,211===n+i&&105===a.charCodeAt(13)&&0<a.indexOf("transform",10))return a.substring(0,a.indexOf(";",27)+1).replace(p,"$1-webkit-$2")+a}return a}function o(e,t){var n=e.indexOf(1===t?":":"{"),r=e.substring(0,3!==t?n:10);return n=e.substring(n+1,e.length-1),T(2!==t?r:r.replace(k,"$1"),n,t)}function i(e,t){var n=r(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(w," or ($1)").substring(4):"("+t+")"}function a(e,t,n,r,o,i,a,c,s,l){for(var f,d=0,p=t;d<R;++d)switch(f=N[d].call(u,e,p,n,r,o,i,a,c,s,l)){case void 0:case!1:case!0:case null:break;default:p=f}if(p!==t)return p}function c(e){return void 0!==(e=e.prefix)&&(T=null,e?"function"!=typeof e?P=1:(P=2,T=e):P=0),c}function u(e,n){var c=e;if(33>c.charCodeAt(0)&&(c=c.trim()),c=[c],0<R){var u=a(-1,n,c,c,C,x,0,0,0,0);void 0!==u&&"string"==typeof u&&(n=u)}var f=function e(n,c,u,f,d){for(var p,m,h,y,w,j=0,k=0,_=0,E=0,N=0,T=0,L=h=p=0,M=0,F=0,I=0,z=0,H=u.length,B=H-1,U="",V="",q="",W="";M<H;){if(m=u.charCodeAt(M),M===B&&0!==k+E+_+j&&(0!==k&&(m=47===k?10:47),E=_=j=0,H++,B++),0===k+E+_+j){if(M===B&&(0<F&&(U=U.replace(l,"")),0<U.trim().length)){switch(m){case 32:case 9:case 59:case 13:case 10:break;default:U+=u.charAt(M)}m=59}switch(m){case 123:for(p=(U=U.trim()).charCodeAt(0),h=1,z=++M;M<H;){switch(m=u.charCodeAt(M)){case 123:h++;break;case 125:h--;break;case 47:switch(m=u.charCodeAt(M+1)){case 42:case 47:e:{for(L=M+1;L<B;++L)switch(u.charCodeAt(L)){case 47:if(42===m&&42===u.charCodeAt(L-1)&&M+2!==L){M=L+1;break e}break;case 10:if(47===m){M=L+1;break e}}M=L}}break;case 91:m++;case 40:m++;case 34:case 39:for(;M++<B&&u.charCodeAt(M)!==m;);}if(0===h)break;M++}switch(h=u.substring(z,M),0===p&&(p=(U=U.replace(s,"").trim()).charCodeAt(0)),p){case 64:switch(0<F&&(U=U.replace(l,"")),m=U.charCodeAt(1)){case 100:case 109:case 115:case 45:F=c;break;default:F=A}if(z=(h=e(c,F,h,m,d+1)).length,0<R&&(w=a(3,h,F=t(A,U,I),c,C,x,z,m,d,f),U=F.join(""),void 0!==w&&0===(z=(h=w.trim()).length)&&(m=0,h="")),0<z)switch(m){case 115:U=U.replace(O,i);case 100:case 109:case 45:h=U+"{"+h+"}";break;case 107:h=(U=U.replace(b,"$1 $2"))+"{"+h+"}",h=1===P||2===P&&o("@"+h,3)?"@-webkit-"+h+"@"+h:"@"+h;break;default:h=U+h,112===f&&(V+=h,h="")}else h="";break;default:h=e(c,t(c,U,I),h,f,d+1)}q+=h,h=I=F=L=p=0,U="",m=u.charCodeAt(++M);break;case 125:case 59:if(1<(z=(U=(0<F?U.replace(l,""):U).trim()).length))switch(0===L&&(p=U.charCodeAt(0),45===p||96<p&&123>p)&&(z=(U=U.replace(" ",":")).length),0<R&&void 0!==(w=a(1,U,c,n,C,x,V.length,f,d,f))&&0===(z=(U=w.trim()).length)&&(U="\0\0"),p=U.charCodeAt(0),m=U.charCodeAt(1),p){case 0:break;case 64:if(105===m||99===m){W+=U+u.charAt(M);break}default:58!==U.charCodeAt(z-1)&&(V+=r(U,p,m,U.charCodeAt(2)))}I=F=L=p=0,U="",m=u.charCodeAt(++M)}}switch(m){case 13:case 10:47===k?k=0:0===1+p&&107!==f&&0<U.length&&(F=1,U+="\0"),0<R*D&&a(0,U,c,n,C,x,V.length,f,d,f),x=1,C++;break;case 59:case 125:if(0===k+E+_+j){x++;break}default:switch(x++,y=u.charAt(M),m){case 9:case 32:if(0===E+j+k)switch(N){case 44:case 58:case 9:case 32:y="";break;default:32!==m&&(y=" ")}break;case 0:y="\\0";break;case 12:y="\\f";break;case 11:y="\\v";break;case 38:0===E+k+j&&(F=I=1,y="\f"+y);break;case 108:if(0===E+k+j+S&&0<L)switch(M-L){case 2:112===N&&58===u.charCodeAt(M-3)&&(S=N);case 8:111===T&&(S=T)}break;case 58:0===E+k+j&&(L=M);break;case 44:0===k+_+E+j&&(F=1,y+="\r");break;case 34:case 39:0===k&&(E=E===m?0:0===E?m:E);break;case 91:0===E+k+_&&j++;break;case 93:0===E+k+_&&j--;break;case 41:0===E+k+j&&_--;break;case 40:if(0===E+k+j){if(0===p)switch(2*N+3*T){case 533:break;default:p=1}_++}break;case 64:0===k+_+E+j+L+h&&(h=1);break;case 42:case 47:if(!(0<E+j+_))switch(k){case 0:switch(2*m+3*u.charCodeAt(M+1)){case 235:k=47;break;case 220:z=M,k=42}break;case 42:47===m&&42===N&&z+2!==M&&(33===u.charCodeAt(z+2)&&(V+=u.substring(z,M+1)),y="",k=0)}}0===k&&(U+=y)}T=N,N=m,M++}if(0<(z=V.length)){if(F=c,0<R&&(void 0!==(w=a(2,V,F,n,C,x,z,f,d,f))&&0===(V=w).length))return W+V+q;if(V=F.join(",")+"{"+V+"}",0!=P*S){switch(2!==P||o(V,2)||(S=0),S){case 111:V=V.replace(g,":-moz-$1")+V;break;case 112:V=V.replace(v,"::-webkit-input-$1")+V.replace(v,"::-moz-$1")+V.replace(v,":-ms-input-$1")+V}S=0}}return W+V+q}(A,c,n,0,0);return 0<R&&(void 0!==(u=a(-2,f,c,c,C,x,f.length,0,0,0))&&(f=u)),"",S=0,x=C=1,f}var s=/^\0+/g,l=/[\0\r\f]/g,f=/: */g,d=/zoo|gra/,p=/([,: ])(transform)/g,m=/,\r+?/g,h=/([\t\r\n ])*\f?&/g,b=/@(k\w+)\s*(\S*)\s*/,v=/::(place)/g,g=/:(read-only)/g,y=/[svh]\w+-[tblr]{2}/,O=/\(\s*(.*)\s*\)/g,w=/([\s\S]*?);/g,j=/-self|flex-/g,k=/[^]*?(:[rp][el]a[\w-]+)[^]*/,_=/stretch|:\s*\w+\-(?:conte|avail)/,E=/([^-])(image-set\()/,x=1,C=1,S=0,P=1,A=[],N=[],R=0,T=null,D=0;return u.use=function e(t){switch(t){case void 0:case null:R=N.length=0;break;default:if("function"==typeof t)N[R++]=t;else if("object"==typeof t)for(var n=0,r=t.length;n<r;++n)e(t[n]);else D=0|!!t}return e},u.set=c,void 0!==e&&c(e),u};function c(e){e&&u.current.insert(e+"}")}var u={current:null},s=function(e,t,n,r,o,i,a,s,l,f){switch(e){case 1:switch(t.charCodeAt(0)){case 64:return u.current.insert(t+";"),"";case 108:if(98===t.charCodeAt(2))return""}break;case 2:if(0===s)return t+"/*|*/";break;case 3:switch(s){case 102:case 112:return u.current.insert(n[0]+t),"";default:return t+(0===f?"/*|*/":"")}case-2:t.split("/*|*/}").forEach(c)}},l=function(e){void 0===e&&(e={});var t,n=e.key||"css";void 0!==e.prefix&&(t={prefix:e.prefix});var r=new a(t);var o,c={};o=e.container||document.head;var l,f=document.querySelectorAll("style[data-emotion-"+n+"]");Array.prototype.forEach.call(f,(function(e){e.getAttribute("data-emotion-"+n).split(" ").forEach((function(e){c[e]=!0})),e.parentNode!==o&&o.appendChild(e)})),r.use(e.stylisPlugins)(s),l=function(e,t,n,o){var i=t.name;u.current=n,r(e,t.styles),o&&(d.inserted[i]=!0)};var d={key:n,sheet:new i({key:n,container:o,nonce:e.nonce,speedy:e.speedy}),nonce:e.nonce,inserted:c,registered:{},insert:l};return d},f=(n(130),n(38)),d=n(37),p=(Object.prototype.hasOwnProperty,Object(o.createContext)("undefined"!=typeof HTMLElement?l():null)),m=Object(o.createContext)({}),h=(p.Provider,function(e){var t=function(t,n){return Object(o.createElement)(p.Consumer,null,(function(r){return e(t,r,n)}))};return Object(o.forwardRef)(t)});var b=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Object(d.a)(t)},v=(o.Component,function e(t){for(var n=t.length,r=0,o="";r<n;r++){var i=t[r];if(null!=i){var a=void 0;switch(typeof i){case"boolean":break;case"object":if(Array.isArray(i))a=e(i);else for(var c in a="",i)i[c]&&c&&(a&&(a+=" "),a+=c);break;default:a=i}a&&(o&&(o+=" "),o+=a)}}return o});function g(e,t,n){var r=[],o=Object(f.a)(e,r,n);return r.length<2?n:o+t(r)}h((function(e,t){return Object(o.createElement)(m.Consumer,null,(function(n){var r=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=Object(d.a)(n,t.registered);return Object(f.b)(t,o,!1),t.key+"-"+o.name},o={css:r,cx:function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return g(t.registered,r,v(n))},theme:n},i=e.children(o);return!0,i}))}))},function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,"a",(function(){return r}))},function(e,t){!function(){e.exports=this.wc.tracks}()},function(e,t){!function(){e.exports=this.wp.hooks}()},function(e,t){function n(t){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=n=function(e){return typeof e}:e.exports=n=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(t)}e.exports=n},function(e,t,n){"use strict";function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}n.d(t,"a",(function(){return r}))},,function(e,t,n){"use strict";n.d(t,"c",(function(){return S})),n.d(t,"a",(function(){return x}));var r=n(24),o=n(26),i=n(16),a=n(17),c=n(12),u=n(18),s=n(21),l=n(9),f=n(0),d=n(2),p=n(41),m=n(11),h=n(6),b=n(65),v=n.n(b),g=n(61);function y(e){var t=function(e,t){if("object"!==Object(p.a)(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Object(p.a)(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Object(p.a)(t)?t:String(t)}function O(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function w(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?O(Object(n),!0).forEach((function(t){Object(h.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):O(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function j(e){var t,n,i,a,c,u,s,l,d,p,b,O,j,k=e.children,_=(t=Object(f.useState)({}),n=Object(r.a)(t,2),i=n[0],a=n[1],c=Object(f.useState)({}),u=Object(r.a)(c,2),s=u[0],l=u[1],d=Object(f.useCallback)((function(e,t,n){a((function(r){var o=r[e]||{};return w(w({},r),{},Object(h.a)({},e,w(w({},o),{},{ref:t||o.ref,fillProps:n||o.fillProps||{}})))}))}),[]),p=Object(f.useCallback)((function(e,t){a((function(n){var r=n[e],o=Object(m.a)(n,[e].map(y));return(null==r?void 0:r.ref)===t?o:n}))}),[]),b=Object(f.useCallback)((function(e,t){var n=i[e];if(n&&!v()(n.fillProps,t)){n.fillProps=t;var r=s[e];r&&r.map((function(e){return e.current.rerender()}))}}),[i,s]),O=Object(f.useCallback)((function(e,t){l((function(n){return w(w({},n),{},Object(h.a)({},e,[].concat(Object(o.a)(n[e]||[]),[t])))}))}),[]),j=Object(f.useCallback)((function(e,t){l((function(n){return n[e]?w(w({},n),{},Object(h.a)({},e,n[e].filter((function(e){return e!==t})))):n}))}),[]),Object(f.useMemo)((function(){return{slots:i,fills:s,registerSlot:d,updateSlot:b,unregisterSlot:p,registerFill:O,unregisterFill:j}}),[i,s,d,b,p,O,j]));return Object(f.createElement)(g.a.Provider,{value:_},k)}function k(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(l.a)(e);if(t){var o=Object(l.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(s.a)(this,n)}}var _=Object(f.createContext)({registerSlot:function(){},unregisterSlot:function(){},registerFill:function(){},unregisterFill:function(){},getSlot:function(){},getFills:function(){},subscribe:function(){}}),E=_.Provider,x=_.Consumer,C=function(e){Object(u.a)(n,e);var t=k(n);function n(){var e;return Object(i.a)(this,n),(e=t.apply(this,arguments)).registerSlot=e.registerSlot.bind(Object(c.a)(e)),e.registerFill=e.registerFill.bind(Object(c.a)(e)),e.unregisterSlot=e.unregisterSlot.bind(Object(c.a)(e)),e.unregisterFill=e.unregisterFill.bind(Object(c.a)(e)),e.getSlot=e.getSlot.bind(Object(c.a)(e)),e.getFills=e.getFills.bind(Object(c.a)(e)),e.hasFills=e.hasFills.bind(Object(c.a)(e)),e.subscribe=e.subscribe.bind(Object(c.a)(e)),e.slots={},e.fills={},e.listeners=[],e.contextValue={registerSlot:e.registerSlot,unregisterSlot:e.unregisterSlot,registerFill:e.registerFill,unregisterFill:e.unregisterFill,getSlot:e.getSlot,getFills:e.getFills,hasFills:e.hasFills,subscribe:e.subscribe},e}return Object(a.a)(n,[{key:"registerSlot",value:function(e,t){var n=this.slots[e];this.slots[e]=t,this.triggerListeners(),this.forceUpdateSlot(e),n&&n.forceUpdate()}},{key:"registerFill",value:function(e,t){this.fills[e]=[].concat(Object(o.a)(this.fills[e]||[]),[t]),this.forceUpdateSlot(e)}},{key:"unregisterSlot",value:function(e,t){this.slots[e]===t&&(delete this.slots[e],this.triggerListeners())}},{key:"unregisterFill",value:function(e,t){this.fills[e]=Object(d.without)(this.fills[e],t),this.resetFillOccurrence(e),this.forceUpdateSlot(e)}},{key:"getSlot",value:function(e){return this.slots[e]}},{key:"getFills",value:function(e,t){return this.slots[e]!==t?[]:Object(d.sortBy)(this.fills[e],"occurrence")}},{key:"hasFills",value:function(e){return this.fills[e]&&!!this.fills[e].length}},{key:"resetFillOccurrence",value:function(e){Object(d.forEach)(this.fills[e],(function(e){e.occurrence=void 0}))}},{key:"forceUpdateSlot",value:function(e){var t=this.getSlot(e);t&&t.forceUpdate()}},{key:"triggerListeners",value:function(){this.listeners.forEach((function(e){return e()}))}},{key:"subscribe",value:function(e){var t=this;return this.listeners.push(e),function(){t.listeners=Object(d.without)(t.listeners,e)}}},{key:"render",value:function(){return Object(f.createElement)(E,{value:this.contextValue},Object(f.createElement)(j,null,this.props.children))}}]),n}(f.Component),S=function(e){var t=Object(f.useContext)(_),n=t.getSlot,o=t.subscribe,i=Object(f.useState)(n(e)),a=Object(r.a)(i,2),c=a[0],u=a[1];return Object(f.useEffect)((function(){return u(n(e)),o((function(){u(n(e))}))}),[e]),c};t.b=C},function(e,t,n){"use strict";n.d(t,"e",(function(){return u})),n.d(t,"b",(function(){return s})),n.d(t,"c",(function(){return l})),n.d(t,"f",(function(){return f})),n.d(t,"d",(function(){return d})),n.d(t,"a",(function(){return p}));var r=n(6),o=n(26),i=n(2),a=n(3);function c(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window,t=e.navigator.platform;return-1!==t.indexOf("Mac")||Object(i.includes)(["iPad","iPhone"],t)}var u=9,s=27,l=37,f=38,d=39,p=40,m="alt",h="ctrl",b="meta",v="shift",g={primary:function(e){return e()?[b]:[h]},primaryShift:function(e){return e()?[v,b]:[h,v]},primaryAlt:function(e){return e()?[m,b]:[h,m]},secondary:function(e){return e()?[v,m,b]:[h,v,m]},access:function(e){return e()?[h,m]:[v,m]},ctrl:function(){return[h]},alt:function(){return[m]},ctrlShift:function(){return[h,v]},shift:function(){return[v]},shiftAlt:function(){return[v,m]}},y=(Object(i.mapValues)(g,(function(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c;return[].concat(Object(o.a)(e(n)),[t.toLowerCase()]).join("+")}})),Object(i.mapValues)(g,(function(e){return function(t){var n,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c,u=a(),s=(n={},Object(r.a)(n,m,u?"⌥":"Alt"),Object(r.a)(n,h,u?"⌃":"Ctrl"),Object(r.a)(n,b,"⌘"),Object(r.a)(n,v,u?"⇧":"Shift"),n),l=e(a).reduce((function(e,t){var n=Object(i.get)(s,t,t);return[].concat(Object(o.a)(e),u?[n]:[n,"+"])}),[]),f=Object(i.capitalize)(t);return[].concat(Object(o.a)(l),[f])}})));Object(i.mapValues)(y,(function(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c;return e(t,n).join("")}})),Object(i.mapValues)(g,(function(e){return function(t){var n,u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c,s=u(),l=(n={},Object(r.a)(n,v,"Shift"),Object(r.a)(n,b,s?"Command":"Control"),Object(r.a)(n,h,"Control"),Object(r.a)(n,m,s?"Option":"Alt"),Object(r.a)(n,",",Object(a.__)("Comma")),Object(r.a)(n,".",Object(a.__)("Period")),Object(r.a)(n,"`",Object(a.__)("Backtick")),n);return[].concat(Object(o.a)(e(u)),[t]).map((function(e){return Object(i.capitalize)(Object(i.get)(l,e,e))})).join(s?" ":" + ")}}));function O(e){return[m,h,b,v].filter((function(t){return e["".concat(t,"Key")]}))}Object(i.mapValues)(g,(function(e){return function(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:c,o=e(r),a=O(t);return!Object(i.xor)(o,a).length&&(n?t.key===n:Object(i.includes)(o,t.key.toLowerCase()))}}))},function(e,t,n){var r=n(150);e.exports=function(e,t){if(null==e)return{};var n,o,i=r(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(49);function o(e,t){if(e){if("string"==typeof e)return Object(r.a)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Object(r.a)(e,t):void 0}}},,function(e,t,n){"use strict";(function(e){var r=n(0),o=(n(72),Object(r.createContext)({slots:{},fills:{},registerSlot:function(){void 0!==e&&e.env},updateSlot:function(){},unregisterSlot:function(){},registerFill:function(){},unregisterFill:function(){}}));t.a=o}).call(this,n(63))},function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}},function(e,t){var n,r,o=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function c(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(e){n=i}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var u,s=[],l=!1,f=-1;function d(){l&&u&&(l=!1,u.length?s=u.concat(s):f=-1,s.length&&p())}function p(){if(!l){var e=c(d);l=!0;for(var t=s.length;t;){for(u=s,s=[];++f<t;)u&&u[f].run();f=-1,t=s.length}u=null,l=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function m(e,t){this.fun=e,this.array=t}function h(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];s.push(new m(e,t)),1!==s.length||l||c(p)},m.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=h,o.addListener=h,o.once=h,o.off=h,o.removeListener=h,o.removeAllListeners=h,o.emit=h,o.prependListener=h,o.prependOnceListener=h,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},,function(e,t,n){"use strict";var r=n(103),o=n(104),i=Array.isArray;e.exports=function(e,t){if(e&&t){if(e.constructor===Object&&t.constructor===Object)return r(e,t);if(i(e)&&i(t))return o(e,t)}return e===t},e.exports.isShallowEqualObjects=r,e.exports.isShallowEqualArrays=o},,function(e,t,n){"use strict";var r=n(7),o=n(11),i=n(0),a=n(4),c=n.n(a),u=n(2),s=n(47),l=n(133),f=n(114);function d(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return p(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return p(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,c=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){c=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(c)throw i}}}}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var m=["onMouseDown","onClick"];t.a=Object(i.forwardRef)((function(e,t){var n=e.href,a=e.target,p=e.isPrimary,h=e.isSmall,b=e.isTertiary,v=e.isPressed,g=e.isBusy,y=e.isDefault,O=e.isSecondary,w=e.isLink,j=e.isDestructive,k=e.className,_=e.disabled,E=e.icon,x=e.iconSize,C=e.showTooltip,S=e.tooltipPosition,P=e.shortcut,A=e.label,N=e.children,R=e.__experimentalIsFocusable,T=Object(o.a)(e,["href","target","isPrimary","isSmall","isTertiary","isPressed","isBusy","isDefault","isSecondary","isLink","isDestructive","className","disabled","icon","iconSize","showTooltip","tooltipPosition","shortcut","label","children","__experimentalIsFocusable"]);y&&Object(s.a)("Button isDefault prop",{alternative:"isSecondary"});var D=c()("components-button",k,{"is-secondary":y||O,"is-primary":p,"is-small":h,"is-tertiary":b,"is-pressed":v,"is-busy":g,"is-link":w,"is-destructive":j,"has-text":!!E&&!!N,"has-icon":!!E}),L=_&&!R,M=void 0===n||L?"button":"a",F="a"===M?{href:n,target:a}:{type:"button",disabled:L,"aria-pressed":v};if(_&&R){F["aria-disabled"]=!0;var I,z=d(m);try{for(z.s();!(I=z.n()).done;){T[I.value]=function(e){e.stopPropagation(),e.preventDefault()}}}catch(e){z.e(e)}finally{z.f()}}var H=!L&&(C&&A||P||!!A&&(!N||Object(u.isArray)(N)&&!N.length)&&!1!==C),B=Object(i.createElement)(M,Object(r.a)({},F,T,{className:D,"aria-label":T["aria-label"]||A,ref:t}),E&&Object(i.createElement)(f.a,{icon:E,size:x}),N);return H?Object(i.createElement)(l.a,{text:A,shortcut:P,position:S},B):B}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var r={};n.r(r),n.d(r,"find",(function(){return c}));var o={};n.r(o),n.d(o,"isTabbableIndex",(function(){return l})),n.d(o,"find",(function(){return h})),n.d(o,"findPrevious",(function(){return b})),n.d(o,"findNext",(function(){return v}));var i=["[tabindex]","a[href]","button:not([disabled])",'input:not([type="hidden"]):not([disabled])',"select:not([disabled])","textarea:not([disabled])","iframe","object","embed","area[href]","[contenteditable]:not([contenteditable=false])"].join(",");function a(e){return e.offsetWidth>0||e.offsetHeight>0||e.getClientRects().length>0}function c(e){var t=e.querySelectorAll(i);return Array.from(t).filter((function(e){return!(!a(e)||function(e){return"iframe"===e.nodeName.toLowerCase()&&"-1"===e.getAttribute("tabindex")}(e))&&("AREA"!==e.nodeName||function(e){var t=e.closest("map[name]");if(!t)return!1;var n=e.ownerDocument.querySelector('img[usemap="#'+t.name+'"]');return!!n&&a(n)}(e))}))}var u=n(2);function s(e){var t=e.getAttribute("tabindex");return null===t?0:parseInt(t,10)}function l(e){return-1!==s(e)}function f(e,t){return{element:e,index:t}}function d(e){return e.element}function p(e,t){var n=s(e.element),r=s(t.element);return n===r?e.index-t.index:n-r}function m(e){return e.filter(l).map(f).sort(p).map(d).reduce((t={},function(e,n){var r=n.nodeName,o=n.type,i=n.checked,a=n.name;if("INPUT"!==r||"radio"!==o||!a)return e.concat(n);var c=t.hasOwnProperty(a);if(!i&&c)return e;if(c){var s=t[a];e=Object(u.without)(e,s)}return t[a]=n,e.concat(n)}),[]);var t}function h(e){return m(c(e))}function b(e){var t=c(e.ownerDocument.body),n=t.indexOf(e);return t.length=n,Object(u.last)(m(t))}function v(e){var t=c(e.ownerDocument.body),n=t.indexOf(e),r=t.slice(n+1).filter((function(t){return!e.contains(t)}));return Object(u.first)(m(r))}var g={focusable:r,tabbable:o}},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(6),o=n(2);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){Object(r.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var c={strong:{},em:{},s:{},del:{},ins:{},a:{attributes:["href","target","rel"]},code:{},abbr:{attributes:["title"]},sub:{},sup:{},br:{},small:{},q:{attributes:["cite"]},dfn:{attributes:["title"]},data:{attributes:["value"]},time:{attributes:["datetime"]},var:{},samp:{},kbd:{},i:{},b:{},u:{},mark:{},ruby:{},rt:{},rp:{},bdi:{attributes:["dir"]},bdo:{attributes:["dir"]},wbr:{},"#text":{}};Object(o.without)(Object.keys(c),"#text","br").forEach((function(e){c[e].children=Object(o.omit)(c,e)}));var u=a(a({},c),{audio:{attributes:["src","preload","autoplay","mediagroup","loop","muted"]},canvas:{attributes:["width","height"]},embed:{attributes:["src","type","width","height"]},img:{attributes:["alt","src","srcset","usemap","ismap","width","height"]},object:{attributes:["data","type","name","usemap","form","width","height"]},video:{attributes:["src","poster","preload","autoplay","mediagroup","loop","muted","controls","width","height"]}});function s(e){var t,n=e.nodeName.toLowerCase();return("paste"!==t?u:Object(o.omit)(a(a({},u),{},{ins:{children:u.ins.children},del:{children:u.del.children}}),["u","abbr","data","time","wbr","bdi","bdo"])).hasOwnProperty(n)||"span"===n}},function(e,t,n){var r=n(62);e.exports=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n(6),o=n(0),i=n(61);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){Object(r.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function u(e){var t=Object(o.useContext)(i.a),n=t.slots[e]||{},r=t.fills[e],a=Object(o.useMemo)((function(){return r||[]}),[r]),u=Object(o.useCallback)((function(n){t.updateSlot(e,n)}),[e,t.updateSlot]),s=Object(o.useCallback)((function(n){t.unregisterSlot(e,n)}),[e,t.unregisterSlot]),l=Object(o.useCallback)((function(n){t.registerFill(e,n)}),[e,t.registerFill]),f=Object(o.useCallback)((function(n){t.unregisterFill(e,n)}),[e,t.unregisterFill]);return c(c({},n),{},{updateSlot:u,unregisterSlot:s,fills:a,registerFill:l,unregisterFill:f})}},function(e,t,n){"use strict";(function(e){function r(t){void 0!==e&&e.env}n.d(t,"a",(function(){return r}))}).call(this,n(63))},function(e,t,n){"use strict";t.a=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}},function(e,t){!function(){e.exports=this.wc.components}()},function(e,t){function n(e,t,n,r,o,i,a){try{var c=e[i](a),u=c.value}catch(e){return void n(e)}c.done?t(u):Promise.resolve(u).then(r,o)}e.exports=function(e){return function(){var t=this,r=arguments;return new Promise((function(o,i){var a=e.apply(t,r);function c(e){n(a,o,i,c,u,"next",e)}function u(e){n(a,o,i,c,u,"throw",e)}c(void 0)}))}}},function(e,t){!function(){e.exports=this.wp.htmlEntities}()},function(e,t,n){"use strict";var r=n(2);t.a=function(e,t){return function(n){var o=e(n),i=n.displayName,a=void 0===i?n.name||"Component":i;return o.displayName="".concat(Object(r.upperFirst)(Object(r.camelCase)(t)),"(").concat(a,")"),o}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return l})),n.d(t,"b",(function(){return f})),n.d(t,"c",(function(){return d}));var r=n(6),o=n(11),i=n(4),a=n.n(i),c=n(0);function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){Object(r.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var l=function(e){return Object(c.createElement)("circle",e)},f=function(e){return Object(c.createElement)("path",e)},d=function(e){var t=e.className,n=e.isPressed,r=s(s({},Object(o.a)(e,["className","isPressed"])),{},{className:a()(t,{"is-pressed":n})||void 0,role:"img","aria-hidden":!0,focusable:!1});return Object(c.createElement)("svg",r)}},,,function(e,t,n){"use strict";function r(e){"complete"!==document.readyState&&"interactive"!==document.readyState?document.addEventListener("DOMContentLoaded",e):e()}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r=n(136),o=n(137),i=n(96);e.exports={formats:i,parse:o,stringify:r}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(9);function o(e,t,n){return(o="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var o=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Object(r.a)(e)););return e}(e,t);if(o){var i=Object.getOwnPropertyDescriptor(o,t);return i.get?i.get.call(n):i.value}})(e,t,n||e)}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(24),o=n(0);function i(e){var t=Object(o.useState)(e&&window.matchMedia(e).matches),n=Object(r.a)(t,2),i=n[0],a=n[1];return Object(o.useEffect)((function(){if(e){var t=function(){return a(window.matchMedia(e).matches)};t();var n=window.matchMedia(e);return n.addListener(t),function(){n.removeListener(t)}}}),[e]),e&&i}},function(e,t,n){"use strict";n.d(t,"b",(function(){return s})),n.d(t,"c",(function(){return v})),n.d(t,"a",(function(){return g}));var r=n(6),o=n(2),i=n(30);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){Object(r.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var u={black:"#000",white:"#fff"},s={blue:{medium:{focus:"#007cba",focusDark:"#fff"}},gray:{900:"#1e1e1e",700:"#757575",600:"#949494",400:"#ccc",200:"#ddd",100:"#f0f0f0"},darkGray:{primary:"#1e1e1e"},mediumGray:{text:"#757575"},lightGray:{ui:"#949494",secondary:"#ccc",tertiary:"#e7e8e9"}},l={900:"#191e23",800:"#23282d",700:"#32373c",600:"#40464d",500:"#555d66",400:"#606a73",300:"#6c7781",200:"#7e8993",150:"#8d96a0",100:"#8f98a1"},f={900:Object(i.b)("#000510",.9),800:Object(i.b)("#00000a",.85),700:Object(i.b)("#06060b",.8),600:Object(i.b)("#000913",.75),500:Object(i.b)("#0a1829",.7),400:Object(i.b)("#0a1829",.65),300:Object(i.b)("#0e1c2e",.62),200:Object(i.b)("#162435",.55),100:Object(i.b)("#223443",.5),backgroundFill:Object(i.b)(l[700],.7)},d={900:Object(i.b)("#304455",.45),800:Object(i.b)("#425863",.4),700:Object(i.b)("#667886",.35),600:Object(i.b)("#7b86a2",.3),500:Object(i.b)("#9197a2",.25),400:Object(i.b)("#95959c",.2),300:Object(i.b)("#829493",.15),200:Object(i.b)("#8b8b96",.1),100:Object(i.b)("#747474",.05)},p={900:"#a2aab2",800:"#b5bcc2",700:"#ccd0d4",600:"#d7dade",500:"#e2e4e7",400:"#e8eaeb",300:"#edeff0",200:"#f3f4f5",100:"#f8f9f9"},m={900:Object(i.b)(u.white,.5),800:Object(i.b)(u.white,.45),700:Object(i.b)(u.white,.4),600:Object(i.b)(u.white,.35),500:Object(i.b)(u.white,.3),400:Object(i.b)(u.white,.25),300:Object(i.b)(u.white,.2),200:Object(i.b)(u.white,.15),100:Object(i.b)(u.white,.1),backgroundFill:Object(i.b)(p[300],.8)},h={wordpress:{700:"#00669b"},dark:{900:"#0071a1"},medium:{900:"#006589",800:"#00739c",700:"#007fac",600:"#008dbe",500:"#00a0d2",400:"#33b3db",300:"#66c6e4",200:"#bfe7f3",100:"#e5f5fa",highlight:"#b3e7fe",focus:"#007cba"}},b={theme:"var( --wp-admin-theme-color, ".concat(h.wordpress[700],")"),themeDark10:"var( --wp-admin-theme-color-darker-10, ".concat(h.medium.focus,")")},v={theme:b.theme,background:u.white,backgroundDisabled:p[200],border:s.gray[700],borderFocus:b.themeDark10,borderDisabled:s.gray[400],borderLight:s.gray[200],label:l[500],textDisabled:l[150],textDark:u.white,textLight:u.black},g=c(c({},u),{},{darkGray:Object(o.merge)({},l,s.darkGray),darkOpacity:f,darkOpacityLight:d,mediumGray:s.mediumGray,lightGray:Object(o.merge)({},p,s.lightGray),lightGrayLight:m,blue:Object(o.merge)({},h,s.blue),alert:{yellow:"#f0b849",red:"#d94f4f",green:"#4ab866"},admin:b,ui:v})},function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty,o=Array.isArray,i=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),a=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},r=0;r<e.length;++r)void 0!==e[r]&&(n[r]=e[r]);return n};e.exports={arrayToObject:a,assign:function(e,t){return Object.keys(t).reduce((function(e,n){return e[n]=t[n],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],r=0;r<t.length;++r)for(var i=t[r],a=i.obj[i.prop],c=Object.keys(a),u=0;u<c.length;++u){var s=c[u],l=a[s];"object"==typeof l&&null!==l&&-1===n.indexOf(l)&&(t.push({obj:a,prop:s}),n.push(l))}return function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(o(n)){for(var r=[],i=0;i<n.length;++i)void 0!==n[i]&&r.push(n[i]);t.obj[t.prop]=r}}}(t),e},decode:function(e,t,n){var r=e.replace(/\+/g," ");if("iso-8859-1"===n)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(e){return r}},encode:function(e,t,n){if(0===e.length)return e;var r=e;if("symbol"==typeof e?r=Symbol.prototype.toString.call(e):"string"!=typeof e&&(r=String(e)),"iso-8859-1"===n)return escape(r).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var o="",a=0;a<r.length;++a){var c=r.charCodeAt(a);45===c||46===c||95===c||126===c||c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122?o+=r.charAt(a):c<128?o+=i[c]:c<2048?o+=i[192|c>>6]+i[128|63&c]:c<55296||c>=57344?o+=i[224|c>>12]+i[128|c>>6&63]+i[128|63&c]:(a+=1,c=65536+((1023&c)<<10|1023&r.charCodeAt(a)),o+=i[240|c>>18]+i[128|c>>12&63]+i[128|c>>6&63]+i[128|63&c])}return o},isBuffer:function(e){return!(!e||"object"!=typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(o(e)){for(var n=[],r=0;r<e.length;r+=1)n.push(t(e[r]));return n}return t(e)},merge:function e(t,n,i){if(!n)return t;if("object"!=typeof n){if(o(t))t.push(n);else{if(!t||"object"!=typeof t)return[t,n];(i&&(i.plainObjects||i.allowPrototypes)||!r.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(n);var c=t;return o(t)&&!o(n)&&(c=a(t,i)),o(t)&&o(n)?(n.forEach((function(n,o){if(r.call(t,o)){var a=t[o];a&&"object"==typeof a&&n&&"object"==typeof n?t[o]=e(a,n,i):t.push(n)}else t[o]=n})),t):Object.keys(n).reduce((function(t,o){var a=n[o];return r.call(t,o)?t[o]=e(t[o],a,i):t[o]=a,t}),c)}}},,,function(e,t){!function(){e.exports=this.ReactDOM}()},function(e,t,n){var r=n(8),o={display:"block",opacity:0,position:"absolute",top:0,left:0,height:"100%",width:"100%",overflow:"hidden",pointerEvents:"none",zIndex:-1},i=function(e){var t=e.onResize,n=r.useRef();return function(e,t){var n=function(){return e.current&&e.current.contentDocument&&e.current.contentDocument.defaultView};function o(){t();var e=n();e&&e.addEventListener("resize",t)}r.useEffect((function(){return n()?o():e.current&&e.current.addEventListener&&e.current.addEventListener("load",o),function(){var e=n();e&&"function"==typeof e.removeEventListener&&e.removeEventListener("resize",t)}}),[])}(n,(function(){return t(n)})),r.createElement("iframe",{style:o,src:"about:blank",ref:n,"aria-hidden":!0,tabIndex:-1,frameBorder:0})},a=function(e){return{width:null!=e?e.offsetWidth:null,height:null!=e?e.offsetHeight:null}};e.exports=function(e){void 0===e&&(e=a);var t=r.useState(e(null)),n=t[0],o=t[1],c=r.useCallback((function(t){return o(e(t.current))}),[e]);return[r.useMemo((function(){return r.createElement(i,{onResize:c})}),[c]),n]}},function(e,t,n){"use strict";t.a=function(e,t){if(!e)throw new Error("Invariant failed")}},,,function(e,t,n){"use strict";n.d(t,"b",(function(){return x})),n.d(t,"a",(function(){return C}));var r=n(7),o=n(11),i=n(0),a=n(16),c=n(17),u=n(12),s=n(83),l=n(18),f=n(21),d=n(9),p=n(2),m=n(56);function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(d.a)(e);if(t){var o=Object(d.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(f.a)(this,n)}}var b=function(e){Object(l.a)(n,e);var t=h(n);function n(){var e;return Object(a.a)(this,n),(e=t.apply(this,arguments)).isUnmounted=!1,e.bindNode=e.bindNode.bind(Object(u.a)(e)),e}return Object(c.a)(n,[{key:"componentDidMount",value:function(){(0,this.props.registerSlot)(this.props.name,this)}},{key:"componentWillUnmount",value:function(){var e=this.props.unregisterSlot;this.isUnmounted=!0,e(this.props.name,this)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.name,r=t.unregisterSlot,o=t.registerSlot;e.name!==n&&(r(e.name),o(n,this))}},{key:"bindNode",value:function(e){this.node=e}},{key:"forceUpdate",value:function(){this.isUnmounted||Object(s.a)(Object(d.a)(n.prototype),"forceUpdate",this).call(this)}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.name,r=e.fillProps,o=void 0===r?{}:r,a=e.getFills,c=Object(p.map)(a(n,this),(function(e){var t=e.occurrence,n=Object(p.isFunction)(e.children)?e.children(o):e.children;return i.Children.map(n,(function(e,n){if(!e||Object(p.isString)(e))return e;var r="".concat(t,"---").concat(e.key||n);return Object(i.cloneElement)(e,{key:r})}))})).filter(Object(p.negate)(i.isEmptyElement));return Object(i.createElement)(i.Fragment,null,Object(p.isFunction)(t)?t(c):c)}}]),n}(i.Component),v=function(e){return Object(i.createElement)(m.a,null,(function(t){var n=t.registerSlot,o=t.unregisterSlot,a=t.getFills;return Object(i.createElement)(b,Object(r.a)({},e,{registerSlot:n,unregisterSlot:o,getFills:a}))}))},g=0;function y(e){var t=e.name,n=e.children,r=e.registerFill,o=e.unregisterFill,a=Object(m.c)(t),c=Object(i.useRef)({name:t,children:n});return c.current.occurrence||(c.current.occurrence=++g),Object(i.useLayoutEffect)((function(){return r(t,c.current),function(){return o(t,c.current)}}),[]),Object(i.useLayoutEffect)((function(){c.current.children=n,a&&a.forceUpdate()}),[n]),Object(i.useLayoutEffect)((function(){t!==c.current.name&&(o(c.current.name,c.current),c.current.name=t,r(t,c.current))}),[t]),a&&a.node?(Object(p.isFunction)(n)&&(n=n(a.props.fillProps)),Object(i.createPortal)(n,a.node)):null}var O=function(e){return Object(i.createElement)(m.a,null,(function(t){var n=t.registerFill,o=t.unregisterFill;return Object(i.createElement)(y,Object(r.a)({},e,{registerFill:n,unregisterFill:o}))}))},w=n(61);function j(e){var t=e.name,n=e.fillProps,a=void 0===n?{}:n,c=e.as,u=void 0===c?"div":c,s=Object(o.a)(e,["name","fillProps","as"]),l=Object(i.useContext)(w.a),f=Object(i.useRef)();return Object(i.useLayoutEffect)((function(){return l.registerSlot(t,f,a),function(){l.unregisterSlot(t,f)}}),[l.registerSlot,l.unregisterSlot,t]),Object(i.useLayoutEffect)((function(){l.updateSlot(t,a)})),Object(i.createElement)(u,Object(r.a)({ref:f},s))}var k=n(24),_=n(71);function E(e){var t,n,r=e.name,o=e.children,a=Object(_.a)(r),c=Object(i.useRef)({rerender:(t=Object(i.useState)({}),n=Object(k.a)(t,2)[1],function(){return n({})})});return Object(i.useEffect)((function(){return a.registerFill(c),function(){a.unregisterFill(c)}}),[a.registerFill,a.unregisterFill]),a.ref&&a.ref.current?("function"==typeof o&&(o=o(a.fillProps)),Object(i.createPortal)(o,a.ref.current)):null}function x(e){var t=e.bubblesVirtually,n=Object(o.a)(e,["bubblesVirtually"]);return t?Object(i.createElement)(j,n):Object(i.createElement)(v,n)}function C(e){return Object(i.createElement)(i.Fragment,null,Object(i.createElement)(O,e),Object(i.createElement)(E,e))}},function(e,t,n){"use strict";var r=String.prototype.replace,o=/%20/g,i=n(87),a={RFC1738:"RFC1738",RFC3986:"RFC3986"};e.exports=i.assign({default:a.RFC3986,formatters:{RFC1738:function(e){return r.call(e,o,"+")},RFC3986:function(e){return String(e)}}},a)},function(e,t,n){var r=n(62);e.exports=function(e){if(Array.isArray(e))return r(e)}},function(e,t){e.exports=function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},function(e,t){e.exports=function(e){if(Array.isArray(e))return e}},function(e,t){e.exports=function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},function(e,t,n){"use strict";var r=Object.keys;e.exports=function(e,t){var n,o,i,a,c;if(e===t)return!0;if(n=r(e),o=r(t),n.length!==o.length)return!1;for(i=0;i<n.length;){if(void 0===(c=e[a=n[i]])&&!t.hasOwnProperty(a)||c!==t[a])return!1;i++}return!0}},function(e,t,n){"use strict";e.exports=function(e,t){var n;if(e===t)return!0;if(e.length!==t.length)return!1;for(n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}},,function(e,t,n){!function(t){var n=/^\s+/,r=/\s+$/,o=0,i=t.round,a=t.min,c=t.max,u=t.random;function s(e,u){if(u=u||{},(e=e||"")instanceof s)return e;if(!(this instanceof s))return new s(e,u);var l=function(e){var o={r:0,g:0,b:0},i=1,u=null,s=null,l=null,f=!1,d=!1;"string"==typeof e&&(e=function(e){e=e.replace(n,"").replace(r,"").toLowerCase();var t,o=!1;if(C[e])e=C[e],o=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};if(t=H.rgb.exec(e))return{r:t[1],g:t[2],b:t[3]};if(t=H.rgba.exec(e))return{r:t[1],g:t[2],b:t[3],a:t[4]};if(t=H.hsl.exec(e))return{h:t[1],s:t[2],l:t[3]};if(t=H.hsla.exec(e))return{h:t[1],s:t[2],l:t[3],a:t[4]};if(t=H.hsv.exec(e))return{h:t[1],s:t[2],v:t[3]};if(t=H.hsva.exec(e))return{h:t[1],s:t[2],v:t[3],a:t[4]};if(t=H.hex8.exec(e))return{r:R(t[1]),g:R(t[2]),b:R(t[3]),a:M(t[4]),format:o?"name":"hex8"};if(t=H.hex6.exec(e))return{r:R(t[1]),g:R(t[2]),b:R(t[3]),format:o?"name":"hex"};if(t=H.hex4.exec(e))return{r:R(t[1]+""+t[1]),g:R(t[2]+""+t[2]),b:R(t[3]+""+t[3]),a:M(t[4]+""+t[4]),format:o?"name":"hex8"};if(t=H.hex3.exec(e))return{r:R(t[1]+""+t[1]),g:R(t[2]+""+t[2]),b:R(t[3]+""+t[3]),format:o?"name":"hex"};return!1}(e));"object"==typeof e&&(B(e.r)&&B(e.g)&&B(e.b)?(p=e.r,m=e.g,h=e.b,o={r:255*A(p,255),g:255*A(m,255),b:255*A(h,255)},f=!0,d="%"===String(e.r).substr(-1)?"prgb":"rgb"):B(e.h)&&B(e.s)&&B(e.v)?(u=D(e.s),s=D(e.v),o=function(e,n,r){e=6*A(e,360),n=A(n,100),r=A(r,100);var o=t.floor(e),i=e-o,a=r*(1-n),c=r*(1-i*n),u=r*(1-(1-i)*n),s=o%6;return{r:255*[r,c,a,a,u,r][s],g:255*[u,r,r,c,a,a][s],b:255*[a,a,u,r,r,c][s]}}(e.h,u,s),f=!0,d="hsv"):B(e.h)&&B(e.s)&&B(e.l)&&(u=D(e.s),l=D(e.l),o=function(e,t,n){var r,o,i;function a(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(e=A(e,360),t=A(t,100),n=A(n,100),0===t)r=o=i=n;else{var c=n<.5?n*(1+t):n+t-n*t,u=2*n-c;r=a(u,c,e+1/3),o=a(u,c,e),i=a(u,c,e-1/3)}return{r:255*r,g:255*o,b:255*i}}(e.h,u,l),f=!0,d="hsl"),e.hasOwnProperty("a")&&(i=e.a));var p,m,h;return i=P(i),{ok:f,format:e.format||d,r:a(255,c(o.r,0)),g:a(255,c(o.g,0)),b:a(255,c(o.b,0)),a:i}}(e);this._originalInput=e,this._r=l.r,this._g=l.g,this._b=l.b,this._a=l.a,this._roundA=i(100*this._a)/100,this._format=u.format||l.format,this._gradientType=u.gradientType,this._r<1&&(this._r=i(this._r)),this._g<1&&(this._g=i(this._g)),this._b<1&&(this._b=i(this._b)),this._ok=l.ok,this._tc_id=o++}function l(e,t,n){e=A(e,255),t=A(t,255),n=A(n,255);var r,o,i=c(e,t,n),u=a(e,t,n),s=(i+u)/2;if(i==u)r=o=0;else{var l=i-u;switch(o=s>.5?l/(2-i-u):l/(i+u),i){case e:r=(t-n)/l+(t<n?6:0);break;case t:r=(n-e)/l+2;break;case n:r=(e-t)/l+4}r/=6}return{h:r,s:o,l:s}}function f(e,t,n){e=A(e,255),t=A(t,255),n=A(n,255);var r,o,i=c(e,t,n),u=a(e,t,n),s=i,l=i-u;if(o=0===i?0:l/i,i==u)r=0;else{switch(i){case e:r=(t-n)/l+(t<n?6:0);break;case t:r=(n-e)/l+2;break;case n:r=(e-t)/l+4}r/=6}return{h:r,s:o,v:s}}function d(e,t,n,r){var o=[T(i(e).toString(16)),T(i(t).toString(16)),T(i(n).toString(16))];return r&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function p(e,t,n,r){return[T(L(r)),T(i(e).toString(16)),T(i(t).toString(16)),T(i(n).toString(16))].join("")}function m(e,t){t=0===t?0:t||10;var n=s(e).toHsl();return n.s-=t/100,n.s=N(n.s),s(n)}function h(e,t){t=0===t?0:t||10;var n=s(e).toHsl();return n.s+=t/100,n.s=N(n.s),s(n)}function b(e){return s(e).desaturate(100)}function v(e,t){t=0===t?0:t||10;var n=s(e).toHsl();return n.l+=t/100,n.l=N(n.l),s(n)}function g(e,t){t=0===t?0:t||10;var n=s(e).toRgb();return n.r=c(0,a(255,n.r-i(-t/100*255))),n.g=c(0,a(255,n.g-i(-t/100*255))),n.b=c(0,a(255,n.b-i(-t/100*255))),s(n)}function y(e,t){t=0===t?0:t||10;var n=s(e).toHsl();return n.l-=t/100,n.l=N(n.l),s(n)}function O(e,t){var n=s(e).toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,s(n)}function w(e){var t=s(e).toHsl();return t.h=(t.h+180)%360,s(t)}function j(e){var t=s(e).toHsl(),n=t.h;return[s(e),s({h:(n+120)%360,s:t.s,l:t.l}),s({h:(n+240)%360,s:t.s,l:t.l})]}function k(e){var t=s(e).toHsl(),n=t.h;return[s(e),s({h:(n+90)%360,s:t.s,l:t.l}),s({h:(n+180)%360,s:t.s,l:t.l}),s({h:(n+270)%360,s:t.s,l:t.l})]}function _(e){var t=s(e).toHsl(),n=t.h;return[s(e),s({h:(n+72)%360,s:t.s,l:t.l}),s({h:(n+216)%360,s:t.s,l:t.l})]}function E(e,t,n){t=t||6,n=n||30;var r=s(e).toHsl(),o=360/n,i=[s(e)];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,i.push(s(r));return i}function x(e,t){t=t||6;for(var n=s(e).toHsv(),r=n.h,o=n.s,i=n.v,a=[],c=1/t;t--;)a.push(s({h:r,s:o,v:i})),i=(i+c)%1;return a}s.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,n,r,o=this.toRgb();return e=o.r/255,n=o.g/255,r=o.b/255,.2126*(e<=.03928?e/12.92:t.pow((e+.055)/1.055,2.4))+.7152*(n<=.03928?n/12.92:t.pow((n+.055)/1.055,2.4))+.0722*(r<=.03928?r/12.92:t.pow((r+.055)/1.055,2.4))},setAlpha:function(e){return this._a=P(e),this._roundA=i(100*this._a)/100,this},toHsv:function(){var e=f(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=f(this._r,this._g,this._b),t=i(360*e.h),n=i(100*e.s),r=i(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+r+"%)":"hsva("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var e=l(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=l(this._r,this._g,this._b),t=i(360*e.h),n=i(100*e.s),r=i(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+r+"%)":"hsla("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(e){return d(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,n,r,o){var a=[T(i(e).toString(16)),T(i(t).toString(16)),T(i(n).toString(16)),T(L(r))];if(o&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)&&a[3].charAt(0)==a[3].charAt(1))return a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0);return a.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:i(this._r),g:i(this._g),b:i(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+i(this._r)+", "+i(this._g)+", "+i(this._b)+")":"rgba("+i(this._r)+", "+i(this._g)+", "+i(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:i(100*A(this._r,255))+"%",g:i(100*A(this._g,255))+"%",b:i(100*A(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+i(100*A(this._r,255))+"%, "+i(100*A(this._g,255))+"%, "+i(100*A(this._b,255))+"%)":"rgba("+i(100*A(this._r,255))+"%, "+i(100*A(this._g,255))+"%, "+i(100*A(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(S[d(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+p(this._r,this._g,this._b,this._a),n=t,r=this._gradientType?"GradientType = 1, ":"";if(e){var o=s(e);n="#"+p(o._r,o._g,o._b,o._a)}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var n=!1,r=this._a<1&&this._a>=0;return t||!r||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return s(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(v,arguments)},brighten:function(){return this._applyModification(g,arguments)},darken:function(){return this._applyModification(y,arguments)},desaturate:function(){return this._applyModification(m,arguments)},saturate:function(){return this._applyModification(h,arguments)},greyscale:function(){return this._applyModification(b,arguments)},spin:function(){return this._applyModification(O,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(E,arguments)},complement:function(){return this._applyCombination(w,arguments)},monochromatic:function(){return this._applyCombination(x,arguments)},splitcomplement:function(){return this._applyCombination(_,arguments)},triad:function(){return this._applyCombination(j,arguments)},tetrad:function(){return this._applyCombination(k,arguments)}},s.fromRatio=function(e,t){if("object"==typeof e){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]="a"===r?e[r]:D(e[r]));e=n}return s(e,t)},s.equals=function(e,t){return!(!e||!t)&&s(e).toRgbString()==s(t).toRgbString()},s.random=function(){return s.fromRatio({r:u(),g:u(),b:u()})},s.mix=function(e,t,n){n=0===n?0:n||50;var r=s(e).toRgb(),o=s(t).toRgb(),i=n/100;return s({r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b,a:(o.a-r.a)*i+r.a})},s.readability=function(e,n){var r=s(e),o=s(n);return(t.max(r.getLuminance(),o.getLuminance())+.05)/(t.min(r.getLuminance(),o.getLuminance())+.05)},s.isReadable=function(e,t,n){var r,o,i=s.readability(e,t);switch(o=!1,(r=function(e){var t,n;t=((e=e||{level:"AA",size:"small"}).level||"AA").toUpperCase(),n=(e.size||"small").toLowerCase(),"AA"!==t&&"AAA"!==t&&(t="AA");"small"!==n&&"large"!==n&&(n="small");return{level:t,size:n}}(n)).level+r.size){case"AAsmall":case"AAAlarge":o=i>=4.5;break;case"AAlarge":o=i>=3;break;case"AAAsmall":o=i>=7}return o},s.mostReadable=function(e,t,n){var r,o,i,a,c=null,u=0;o=(n=n||{}).includeFallbackColors,i=n.level,a=n.size;for(var l=0;l<t.length;l++)(r=s.readability(e,t[l]))>u&&(u=r,c=s(t[l]));return s.isReadable(e,c,{level:i,size:a})||!o?c:(n.includeFallbackColors=!1,s.mostReadable(e,["#fff","#000"],n))};var C=s.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},S=s.hexNames=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}(C);function P(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function A(e,n){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var r=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=a(n,c(0,parseFloat(e))),r&&(e=parseInt(e*n,10)/100),t.abs(e-n)<1e-6?1:e%n/parseFloat(n)}function N(e){return a(1,c(0,e))}function R(e){return parseInt(e,16)}function T(e){return 1==e.length?"0"+e:""+e}function D(e){return e<=1&&(e=100*e+"%"),e}function L(e){return t.round(255*parseFloat(e)).toString(16)}function M(e){return R(e)/255}var F,I,z,H=(I="[\\s|\\(]+("+(F="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+F+")[,|\\s]+("+F+")\\s*\\)?",z="[\\s|\\(]+("+F+")[,|\\s]+("+F+")[,|\\s]+("+F+")[,|\\s]+("+F+")\\s*\\)?",{CSS_UNIT:new RegExp(F),rgb:new RegExp("rgb"+I),rgba:new RegExp("rgba"+z),hsl:new RegExp("hsl"+I),hsla:new RegExp("hsla"+z),hsv:new RegExp("hsv"+I),hsva:new RegExp("hsva"+z),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function B(e){return!!H.CSS_UNIT.exec(e)}e.exports?e.exports=s:"function"==typeof define&&define.amd?define((function(){return s})):window.tinycolor=s}(Math)},function(e,t,n){"use strict";var r=n(7),o=n(11),i=n(0);t.a=function(e){var t=e.icon,n=e.size,a=void 0===n?20:n,c=e.className,u=Object(o.a)(e,["icon","size","className"]),s=["dashicon","dashicons","dashicons-"+t,c].filter(Boolean).join(" ");return Object(i.createElement)("span",Object(r.a)({className:s,width:a,height:a},u))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return O})),n.d(t,"c",(function(){return j})),n.d(t,"b",(function(){return m})),n.d(t,"e",(function(){return h})),n.d(t,"d",(function(){return p}));var r=n(7);function o(e){return"/"===e.charAt(0)}function i(e,t){for(var n=t,r=n+1,o=e.length;r<o;n+=1,r+=1)e[n]=e[r];e.pop()}var a=function(e,t){void 0===t&&(t="");var n,r=e&&e.split("/")||[],a=t&&t.split("/")||[],c=e&&o(e),u=t&&o(t),s=c||u;if(e&&o(e)?a=r:r.length&&(a.pop(),a=a.concat(r)),!a.length)return"/";if(a.length){var l=a[a.length-1];n="."===l||".."===l||""===l}else n=!1;for(var f=0,d=a.length;d>=0;d--){var p=a[d];"."===p?i(a,d):".."===p?(i(a,d),f++):f&&(i(a,d),f--)}if(!s)for(;f--;f)a.unshift("..");!s||""===a[0]||a[0]&&o(a[0])||a.unshift("");var m=a.join("/");return n&&"/"!==m.substr(-1)&&(m+="/"),m};function c(e){return e.valueOf?e.valueOf():Object.prototype.valueOf.call(e)}var u=function e(t,n){if(t===n)return!0;if(null==t||null==n)return!1;if(Array.isArray(t))return Array.isArray(n)&&t.length===n.length&&t.every((function(t,r){return e(t,n[r])}));if("object"==typeof t||"object"==typeof n){var r=c(t),o=c(n);return r!==t||o!==n?e(r,o):Object.keys(Object.assign({},t,n)).every((function(r){return e(t[r],n[r])}))}return!1},s=n(92);function l(e){return"/"===e.charAt(0)?e:"/"+e}function f(e,t){return function(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(t.length))}(e,t)?e.substr(t.length):e}function d(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function p(e){var t=e.pathname,n=e.search,r=e.hash,o=t||"/";return n&&"?"!==n&&(o+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(o+="#"===r.charAt(0)?r:"#"+r),o}function m(e,t,n,o){var i;"string"==typeof e?(i=function(e){var t=e||"/",n="",r="",o=t.indexOf("#");-1!==o&&(r=t.substr(o),t=t.substr(0,o));var i=t.indexOf("?");return-1!==i&&(n=t.substr(i),t=t.substr(0,i)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}(e)).state=t:(void 0===(i=Object(r.a)({},e)).pathname&&(i.pathname=""),i.search?"?"!==i.search.charAt(0)&&(i.search="?"+i.search):i.search="",i.hash?"#"!==i.hash.charAt(0)&&(i.hash="#"+i.hash):i.hash="",void 0!==t&&void 0===i.state&&(i.state=t));try{i.pathname=decodeURI(i.pathname)}catch(e){throw e instanceof URIError?new URIError('Pathname "'+i.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):e}return n&&(i.key=n),o?i.pathname?"/"!==i.pathname.charAt(0)&&(i.pathname=a(i.pathname,o.pathname)):i.pathname=o.pathname:i.pathname||(i.pathname="/"),i}function h(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash&&e.key===t.key&&u(e.state,t.state)}function b(){var e=null;var t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,o){if(null!=e){var i="function"==typeof e?e(t,n):e;"string"==typeof i?"function"==typeof r?r(i,o):o(!0):o(!1!==i)}else o(!0)},appendListener:function(e){var n=!0;function r(){n&&e.apply(void 0,arguments)}return t.push(r),function(){n=!1,t=t.filter((function(e){return e!==r}))}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t.forEach((function(e){return e.apply(void 0,n)}))}}}var v=!("undefined"==typeof window||!window.document||!window.document.createElement);function g(e,t){t(window.confirm(e))}function y(){try{return window.history.state||{}}catch(e){return{}}}function O(e){void 0===e&&(e={}),v||Object(s.a)(!1);var t,n=window.history,o=(-1===(t=window.navigator.userAgent).indexOf("Android 2.")&&-1===t.indexOf("Android 4.0")||-1===t.indexOf("Mobile Safari")||-1!==t.indexOf("Chrome")||-1!==t.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history,i=!(-1===window.navigator.userAgent.indexOf("Trident")),a=e,c=a.forceRefresh,u=void 0!==c&&c,h=a.getUserConfirmation,O=void 0===h?g:h,w=a.keyLength,j=void 0===w?6:w,k=e.basename?d(l(e.basename)):"";function _(e){var t=e||{},n=t.key,r=t.state,o=window.location,i=o.pathname+o.search+o.hash;return k&&(i=f(i,k)),m(i,r,n)}function E(){return Math.random().toString(36).substr(2,j)}var x=b();function C(e){Object(r.a)(z,e),z.length=n.length,x.notifyListeners(z.location,z.action)}function S(e){(function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")})(e)||N(_(e.state))}function P(){N(_(y()))}var A=!1;function N(e){if(A)A=!1,C();else{x.confirmTransitionTo(e,"POP",O,(function(t){t?C({action:"POP",location:e}):function(e){var t=z.location,n=T.indexOf(t.key);-1===n&&(n=0);var r=T.indexOf(e.key);-1===r&&(r=0);var o=n-r;o&&(A=!0,L(o))}(e)}))}}var R=_(y()),T=[R.key];function D(e){return k+p(e)}function L(e){n.go(e)}var M=0;function F(e){1===(M+=e)&&1===e?(window.addEventListener("popstate",S),i&&window.addEventListener("hashchange",P)):0===M&&(window.removeEventListener("popstate",S),i&&window.removeEventListener("hashchange",P))}var I=!1;var z={length:n.length,action:"POP",location:R,createHref:D,push:function(e,t){var r=m(e,t,E(),z.location);x.confirmTransitionTo(r,"PUSH",O,(function(e){if(e){var t=D(r),i=r.key,a=r.state;if(o)if(n.pushState({key:i,state:a},null,t),u)window.location.href=t;else{var c=T.indexOf(z.location.key),s=T.slice(0,c+1);s.push(r.key),T=s,C({action:"PUSH",location:r})}else window.location.href=t}}))},replace:function(e,t){var r=m(e,t,E(),z.location);x.confirmTransitionTo(r,"REPLACE",O,(function(e){if(e){var t=D(r),i=r.key,a=r.state;if(o)if(n.replaceState({key:i,state:a},null,t),u)window.location.replace(t);else{var c=T.indexOf(z.location.key);-1!==c&&(T[c]=r.key),C({action:"REPLACE",location:r})}else window.location.replace(t)}}))},go:L,goBack:function(){L(-1)},goForward:function(){L(1)},block:function(e){void 0===e&&(e=!1);var t=x.setPrompt(e);return I||(F(1),I=!0),function(){return I&&(I=!1,F(-1)),t()}},listen:function(e){var t=x.appendListener(e);return F(1),function(){F(-1),t()}}};return z}function w(e,t,n){return Math.min(Math.max(e,t),n)}function j(e){void 0===e&&(e={});var t=e,n=t.getUserConfirmation,o=t.initialEntries,i=void 0===o?["/"]:o,a=t.initialIndex,c=void 0===a?0:a,u=t.keyLength,s=void 0===u?6:u,l=b();function f(e){Object(r.a)(O,e),O.length=O.entries.length,l.notifyListeners(O.location,O.action)}function d(){return Math.random().toString(36).substr(2,s)}var h=w(c,0,i.length-1),v=i.map((function(e){return m(e,void 0,"string"==typeof e?d():e.key||d())})),g=p;function y(e){var t=w(O.index+e,0,O.entries.length-1),r=O.entries[t];l.confirmTransitionTo(r,"POP",n,(function(e){e?f({action:"POP",location:r,index:t}):f()}))}var O={length:v.length,action:"POP",location:v[h],index:h,entries:v,createHref:g,push:function(e,t){var r=m(e,t,d(),O.location);l.confirmTransitionTo(r,"PUSH",n,(function(e){if(e){var t=O.index+1,n=O.entries.slice(0);n.length>t?n.splice(t,n.length-t,r):n.push(r),f({action:"PUSH",location:r,index:t,entries:n})}}))},replace:function(e,t){var r=m(e,t,d(),O.location);l.confirmTransitionTo(r,"REPLACE",n,(function(e){e&&(O.entries[O.index]=r,f({action:"REPLACE",location:r}))}))},go:y,goBack:function(){y(-1)},goForward:function(){y(1)},canGo:function(e){var t=O.index+e;return t>=0&&t<O.entries.length},block:function(e){return void 0===e&&(e=!1),l.setPrompt(e)},listen:function(e){return l.appendListener(e)}};return O}},function(e,t,n){"use strict";var r=n(16),o=n(17),i=n(12),a=n(18),c=n(21),u=n(9),s=n(0),l=n(77),f=n(57),d=n(68);function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(u.a)(e);if(t){var o=Object(u.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(c.a)(this,n)}}var m=Object(l.a)((function(e){return function(t){Object(a.a)(c,t);var n=p(c);function c(){var e;return Object(r.a)(this,c),(e=n.apply(this,arguments)).focusContainRef=Object(s.createRef)(),e.handleTabBehaviour=e.handleTabBehaviour.bind(Object(i.a)(e)),e}return Object(o.a)(c,[{key:"handleTabBehaviour",value:function(e){if(e.keyCode===f.e){var t=d.a.tabbable.find(this.focusContainRef.current);if(t.length){var n=t[0],r=t[t.length-1];e.shiftKey&&e.target===n?(e.preventDefault(),r.focus()):(e.shiftKey||e.target!==r)&&t.includes(e.target)||(e.preventDefault(),n.focus())}}}},{key:"render",value:function(){return Object(s.createElement)("div",{onKeyDown:this.handleTabBehaviour,ref:this.focusContainRef,tabIndex:"-1"},Object(s.createElement)(e,this.props))}}]),c}(s.Component)}),"withConstrainedTabbing");t.a=m},function(e,t,n){"use strict";var r=n(7),o=n(16),i=n(17),a=n(12),c=n(18),u=n(21),s=n(9),l=n(0),f=n(2),d=n(77);function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(s.a)(e);if(t){var o=Object(s.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(u.a)(this,n)}}var m=["button","submit"];t.a=Object(d.a)((function(e){return function(t){Object(c.a)(u,t);var n=p(u);function u(){var e;return Object(o.a)(this,u),(e=n.apply(this,arguments)).bindNode=e.bindNode.bind(Object(a.a)(e)),e.cancelBlurCheck=e.cancelBlurCheck.bind(Object(a.a)(e)),e.queueBlurCheck=e.queueBlurCheck.bind(Object(a.a)(e)),e.normalizeButtonFocus=e.normalizeButtonFocus.bind(Object(a.a)(e)),e}return Object(i.a)(u,[{key:"componentWillUnmount",value:function(){this.cancelBlurCheck()}},{key:"bindNode",value:function(e){e?this.node=e:(delete this.node,this.cancelBlurCheck())}},{key:"queueBlurCheck",value:function(e){var t=this;e.persist(),this.preventBlurCheck||(this.blurCheckTimeout=setTimeout((function(){document.hasFocus()?"function"==typeof t.node.handleFocusOutside&&t.node.handleFocusOutside(e):e.preventDefault()}),0))}},{key:"cancelBlurCheck",value:function(){clearTimeout(this.blurCheckTimeout)}},{key:"normalizeButtonFocus",value:function(e){var t=e.type,n=e.target;Object(f.includes)(["mouseup","touchend"],t)?this.preventBlurCheck=!1:function(e){switch(e.nodeName){case"A":case"BUTTON":return!0;case"INPUT":return Object(f.includes)(m,e.type)}return!1}(n)&&(this.preventBlurCheck=!0)}},{key:"render",value:function(){return Object(l.createElement)("div",{onFocus:this.cancelBlurCheck,onMouseDown:this.normalizeButtonFocus,onMouseUp:this.normalizeButtonFocus,onTouchStart:this.normalizeButtonFocus,onTouchEnd:this.normalizeButtonFocus,onBlur:this.queueBlurCheck},Object(l.createElement)(e,Object(r.a)({ref:this.bindNode},this.props)))}}]),u}(l.Component)}),"withFocusOutside")},function(e,t,n){"use strict";var r=n(7),o=n(11),i=n(0);function a(e){e.stopPropagation()}t.a=Object(i.forwardRef)((function(e,t){var n=e.children,c=Object(o.a)(e,["children"]);return Object(i.createElement)("div",Object(r.a)({},c,{ref:t,onMouseDown:a}),n)}))},,function(e,t,n){"use strict";var r=n(26),o=n(16),i=n(17),a=n(18),c=n(21),u=n(9),s=n(0),l=n(2),f=n(77),d=n(12);function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(u.a)(e);if(t){var o=Object(u.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(c.a)(this,n)}}var m=Object(s.createContext)({focusHistory:[]}),h=m.Provider,b=m.Consumer;h.displayName="FocusReturnProvider",b.displayName="FocusReturnConsumer";s.Component;function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(u.a)(e);if(t){var o=Object(u.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(c.a)(this,n)}}t.a=Object(f.a)((function e(t){if((c=t)instanceof s.Component||"function"==typeof c){var n=t;return e({})(n)}var c,u=t.onFocusReturn,f=void 0===u?l.stubTrue:u;return function(e){var t=function(t){Object(a.a)(c,t);var n=v(c);function c(){var e;return Object(o.a)(this,c),(e=n.apply(this,arguments)).ownFocusedElements=new Set,e.activeElementOnMount=document.activeElement,e.setIsFocusedFalse=function(){return e.isFocused=!1},e.setIsFocusedTrue=function(t){e.ownFocusedElements.add(t.target),e.isFocused=!0},e}return Object(i.a)(c,[{key:"componentWillUnmount",value:function(){var e=this.activeElementOnMount,t=this.isFocused,n=this.ownFocusedElements;if(t&&!1!==f())for(var o,i=[].concat(Object(r.a)(l.without.apply(void 0,[this.props.focus.focusHistory].concat(Object(r.a)(n)))),[e]);o=i.pop();)if(document.body.contains(o))return void o.focus()}},{key:"render",value:function(){return Object(s.createElement)("div",{onFocus:this.setIsFocusedTrue,onBlur:this.setIsFocusedFalse},Object(s.createElement)(e,this.props.childProps))}}]),c}(s.Component);return function(e){return Object(s.createElement)(b,null,(function(n){return Object(s.createElement)(t,{childProps:e,focus:n})}))}}}),"withFocusReturn")},function(e,t,n){"use strict";var r=n(6),o=n(7),i=n(11),a=n(0),c=n(78),u=n(107);function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){Object(r.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}t.a=function(e){var t=e.icon,n=void 0===t?null:t,r=e.size,s=Object(i.a)(e,["icon","size"]),f=r||20;if("string"==typeof n)return Object(a.createElement)(u.a,Object(o.a)({icon:n,size:f},s));if(n&&u.a===n.type)return Object(a.cloneElement)(n,l({size:f},s));var d=r||24;if("function"==typeof n)return n.prototype instanceof a.Component?Object(a.createElement)(n,l({size:d},s)):n(l({size:d},s));if(n&&("svg"===n.type||n.type===c.c)){var p=l(l({width:d,height:d},n.props),s);return Object(a.createElement)(c.c,p)}return Object(a.isValidElement)(n)?Object(a.cloneElement)(n,l({size:d},s)):n}},function(e,t,n){"use strict";var r=n(6),o=n(24),i=n(4),a=n.n(i);t.a=function(e){var t=e.type,n=e.options,i=void 0===n?{}:n,c=e.children;if("appear"===t){var u,s=i.origin,l=(void 0===s?"top":s).split(" "),f=Object(o.a)(l,2),d=f[0],p=f[1],m=void 0===p?"center":p;return c({className:a()("components-animate__appear",(u={},Object(r.a)(u,"is-from-"+m,"center"!==m),Object(r.a)(u,"is-from-"+d,"middle"!==d),u))})}if("slide-in"===t){var h=i.origin,b=void 0===h?"left":h;return c({className:a()("components-animate__slide-in","is-from-"+b)})}return c("loading"===t?{className:a()("components-animate__loading")}:{})}},function(e,t,n){"use strict";var r=n(0),o=n(2);t.a=function(e){var t,n,i=e.shortcut,a=e.className;return i?(Object(o.isString)(i)&&(t=i),Object(o.isObject)(i)&&(t=i.display,n=i.ariaLabel),Object(r.createElement)("span",{className:a,"aria-label":n},t)):null}},function(e,t,n){"use strict";var r=n(7),o=n(24),i=n(11),a=n(0),c=n(4),u=n.n(c),s=n(129),l=n(68),f=n(57),d=n(47),p=n(180),m=n(207),h=n(257),b=n(6);function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?v(Object(n),!0).forEach((function(t){Object(b.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function y(e,t,n,r,o,i,a){var c=t.width,u="rtl"===document.documentElement.dir;"left"===n&&u?n="right":"right"===n&&u&&(n="left"),"left"===r&&u?r="right":"right"===r&&u&&(r="left");var s=Math.round(e.left+e.width/2),l={popoverLeft:s,contentWidth:(s-c/2>0?c/2:s)+(s+c/2>window.innerWidth?window.innerWidth-s:c/2)},f=e.left;"right"===r?f=e.right:"middle"!==i&&(f=s);var d=e.right;"left"===r?d=e.left:"middle"!==i&&(d=s);var p,m={popoverLeft:f,contentWidth:f-c>0?c:f},h={popoverLeft:d,contentWidth:d+c>window.innerWidth?window.innerWidth-d:c},b=n,v=null;if(!o)if("center"===n&&l.contentWidth===c)b="center";else if("left"===n&&m.contentWidth===c)b="left";else if("right"===n&&h.contentWidth===c)b="right";else{var g="left"===(b=m.contentWidth>h.contentWidth?"left":"right")?m.contentWidth:h.contentWidth;v=g!==c?g:null}if(p="center"===b?l.popoverLeft:"left"===b?m.popoverLeft:h.popoverLeft,a){var y=a.getBoundingClientRect();p=Math.min(p,y.right-c)}return{xAxis:b,popoverLeft:p,contentWidth:v}}function O(e,t,n,r,o,i,a){var c=t.height;if(o){var u=(Object(s.b)(i)||document.body).getBoundingClientRect().top+c-a;if(e.top<=u)return{yAxis:n,popoverTop:Math.min(e.bottom,u)}}var l=e.top+e.height/2;"bottom"===r?l=e.bottom:"top"===r&&(l=e.top);var f={popoverTop:l,contentHeight:(l-c/2>0?c/2:l)+(l+c/2>window.innerHeight?window.innerHeight-l:c/2)},d={popoverTop:e.top,contentHeight:e.top-10-c>0?c:e.top-10},p={popoverTop:e.bottom,contentHeight:e.bottom+10+c>window.innerHeight?window.innerHeight-10-e.bottom:c},m=n,h=null;if(!o)if("middle"===n&&f.contentHeight===c)m="middle";else if("top"===n&&d.contentHeight===c)m="top";else if("bottom"===n&&p.contentHeight===c)m="bottom";else{var b="top"===(m=d.contentHeight>p.contentHeight?"top":"bottom")?d.contentHeight:p.contentHeight;h=b!==c?b:null}return{yAxis:m,popoverTop:"middle"===m?f.popoverTop:"top"===m?d.popoverTop:p.popoverTop,contentHeight:h}}var w=n(113),j=n(109),k=n(16),_=n(17),E=n(18),x=n(21),C=n(9),S=n(110);function P(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(C.a)(e);if(t){var o=Object(C.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(x.a)(this,n)}}var A=function(e){Object(E.a)(n,e);var t=P(n);function n(){return Object(k.a)(this,n),t.apply(this,arguments)}return Object(_.a)(n,[{key:"handleFocusOutside",value:function(e){this.props.onFocusOutside(e)}},{key:"render",value:function(){return this.props.children}}]),n}(a.Component),N=Object(S.a)(A),R=n(67);function T(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(C.a)(e);if(t){var o=Object(C.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(x.a)(this,n)}}var D=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.htmlDocument,n=void 0===t?document:t,r=e.className,o=void 0===r?"lockscroll":r,i=0,c=0;function u(e){var t=n.scrollingElement||n.body;e&&(c=t.scrollTop);var r=e?"add":"remove";t.classList[r](o),n.documentElement.classList[r](o),e||(t.scrollTop=c)}function s(){0===i&&u(!0),++i}function l(){1===i&&u(!1),--i}return function(e){Object(E.a)(n,e);var t=T(n);function n(){return Object(k.a)(this,n),t.apply(this,arguments)}return Object(_.a)(n,[{key:"componentDidMount",value:function(){s()}},{key:"componentWillUnmount",value:function(){l()}},{key:"render",value:function(){return null}}]),n}(a.Component)}(),L=n(111),M=n(71),F=n(95),I=n(115),z=Object(j.a)(Object(w.a)((function(e){return e.children})));function H(e,t){var n,r=(n=t).ownerDocument.defaultView.getComputedStyle(n),o=r.paddingTop,i=r.paddingBottom,a=r.paddingLeft,c=r.paddingRight,u=o?parseInt(o,10):0,s=i?parseInt(i,10):0,l=a?parseInt(a,10):0,f=c?parseInt(c,10):0;return{x:e.left+l,y:e.top+u,width:e.width-l-f,height:e.height-u-s,left:e.left+l,right:e.right-f,top:e.top+u,bottom:e.bottom-s}}function B(e,t,n){n?e.getAttribute(t)!==n&&e.setAttribute(t,n):e.hasAttribute(t)&&e.removeAttribute(t)}function U(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";e.style[t]!==n&&(e.style[t]=n)}function V(e,t,n){n?e.classList.contains(t)||e.classList.add(t):e.classList.contains(t)&&e.classList.remove(t)}var q=function(e){var t=e.headerTitle,n=e.onClose,c=e.onKeyDown,b=e.children,v=e.className,w=e.noArrow,j=void 0===w||w,k=e.isAlternate,_=e.position,E=void 0===_?"bottom right":_,x=(e.range,e.focusOnMount),C=void 0===x?"firstElement":x,S=e.anchorRef,P=e.shouldAnchorIncludePadding,A=e.anchorRect,T=e.getAnchorRect,q=e.expandOnMobile,W=e.animate,$=void 0===W||W,G=e.onClickOutside,Q=e.onFocusOutside,K=e.__unstableSticky,Y=e.__unstableSlotName,Z=void 0===Y?"Popover":Y,X=e.__unstableObserveElement,J=e.__unstableBoundaryParent,ee=Object(i.a)(e,["headerTitle","onClose","onKeyDown","children","className","noArrow","isAlternate","position","range","focusOnMount","anchorRef","shouldAnchorIncludePadding","anchorRect","getAnchorRect","expandOnMobile","animate","onClickOutside","onFocusOutside","__unstableSticky","__unstableSlotName","__unstableObserveElement","__unstableBoundaryParent"]),te=Object(a.useRef)(null),ne=Object(a.useRef)(null),re=Object(a.useRef)(),oe=Object(p.a)("medium","<"),ie=Object(a.useState)(),ae=Object(o.a)(ie,2),ce=ae[0],ue=ae[1],se=Object(M.a)(Z),le=q&&oe,fe=Object(m.a)(),de=Object(o.a)(fe,2),pe=de[0],me=de[1];j=le||j,Object(a.useLayoutEffect)((function(){if(le)return V(re.current,"is-without-arrow",j),V(re.current,"is-alternate",k),B(re.current,"data-x-axis"),B(re.current,"data-y-axis"),U(re.current,"top"),U(re.current,"left"),U(ne.current,"maxHeight"),void U(ne.current,"maxWidth");var e=function(){if(re.current&&ne.current){var e=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=arguments.length>4?arguments[4]:void 0;if(t)return t;if(n){if(!e.current)return;return n(e.current)}if(!1!==r){if(!(r&&window.Range&&window.Element&&window.DOMRect))return;if(r instanceof window.Range)return Object(s.a)(r);if(r instanceof window.Element){var i=r.getBoundingClientRect();return o?i:H(i,r)}var a=r.top,c=r.bottom,u=a.getBoundingClientRect(),l=c.getBoundingClientRect(),f=new window.DOMRect(u.left,u.top,u.width,l.bottom-u.top);return o?f:H(f,r)}if(e.current){var d=e.current.parentNode,p=d.getBoundingClientRect();return o?p:H(p,d)}}(te,A,T,S,P);if(e){var t,n,r=re.current,i=r.offsetParent,a=r.ownerDocument,c=0;if(i&&i!==a.body){var u=i.getBoundingClientRect();c=u.top,e=new window.DOMRect(e.left-u.left,e.top-u.top,e.width,e.height)}if(J)t=null===(n=re.current.closest(".popover-slot"))||void 0===n?void 0:n.parentNode;var l=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"top",r=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0,a=arguments.length>5?arguments[5]:void 0,c=arguments.length>6?arguments[6]:void 0,u=n.split(" "),s=Object(o.a)(u,3),l=s[0],f=s[1],d=void 0===f?"center":f,p=s[2],m=O(e,t,l,p,r,i,a),h=y(e,t,d,p,r,m.yAxis,c);return g(g({},h),m)}(e,me.height?me:ne.current.getBoundingClientRect(),E,K,re.current,c,t),f=l.popoverTop,d=l.popoverLeft,p=l.xAxis,m=l.yAxis,h=l.contentHeight,b=l.contentWidth;"number"==typeof f&&"number"==typeof d&&(U(re.current,"top",f+"px"),U(re.current,"left",d+"px")),V(re.current,"is-without-arrow",j||"center"===p&&"middle"===m),V(re.current,"is-alternate",k),B(re.current,"data-x-axis",p),B(re.current,"data-y-axis",m),U(ne.current,"maxHeight","number"==typeof h?h+"px":""),U(ne.current,"maxWidth","number"==typeof b?b+"px":"");ue(({left:"right",right:"left"}[p]||"center")+" "+({top:"bottom",bottom:"top"}[m]||"middle"))}}};e();var t,n,r=window.setInterval(e,500),i=function(){window.cancelAnimationFrame(t),t=window.requestAnimationFrame(e)};return window.addEventListener("click",i),window.addEventListener("resize",e),window.addEventListener("scroll",e,!0),X&&(n=new window.MutationObserver(e)).observe(X,{attributes:!0}),function(){window.clearInterval(r),window.removeEventListener("resize",e),window.removeEventListener("scroll",e,!0),window.removeEventListener("click",i),window.cancelAnimationFrame(t),n&&n.disconnect()}}),[le,A,T,S,P,E,me,K,X,J]),function(e,t){Object(a.useEffect)((function(){var n=setTimeout((function(){if(e&&t.current)if("firstElement"!==e)"container"===e&&t.current.focus();else{var n=l.a.tabbable.find(t.current)[0];n?n.focus():t.current.focus()}}),0);return function(){return clearTimeout(n)}}),[])}(C,ne);var he=function(e){e.keyCode===f.b&&n&&(e.stopPropagation(),n()),c&&c(e)};var be=Object(a.createElement)(N,{onFocusOutside:function(e){if(Q)Q(e);else if(G){var t;try{t=new window.MouseEvent("click")}catch(e){(t=document.createEvent("MouseEvent")).initMouseEvent("click",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null)}Object.defineProperty(t,"target",{get:function(){return e.relatedTarget}}),Object(d.a)("Popover onClickOutside prop",{alternative:"onFocusOutside"}),G(t)}else n&&n()}},Object(a.createElement)(I.a,{type:$&&ce?"appear":null,options:{origin:ce}},(function(e){var o=e.className;return Object(a.createElement)(L.a,Object(r.a)({className:u()("components-popover",v,o,{"is-expanded":le,"is-without-arrow":j,"is-alternate":k})},ee,{onKeyDown:he,ref:re}),le&&Object(a.createElement)(D,null),le&&Object(a.createElement)("div",{className:"components-popover__header"},Object(a.createElement)("span",{className:"components-popover__header-title"},t),Object(a.createElement)(R.a,{className:"components-popover__close",icon:h.a,onClick:n})),Object(a.createElement)("div",{ref:ne,className:"components-popover__content",tabIndex:"-1"},Object(a.createElement)("div",{style:{position:"relative"}},pe,b)))})));return C&&(be=Object(a.createElement)(z,null,be)),se.ref&&(be=Object(a.createElement)(F.a,{name:Z},be)),S||A?be:Object(a.createElement)("span",{ref:te},be)};q.Slot=function(e){var t=e.name,n=void 0===t?"Popover":t;return Object(a.createElement)(F.b,{bubblesVirtually:!0,name:n,className:"popover-slot"})};t.a=q},function(e,t,n){"use strict";n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return i}));var r="wc/customer-effort-score",o="/wc-admin",i="woocommerce_ces_tracks_queue"},function(e,t,n){var r=function(e){"use strict";var t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",i=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var o=t&&t.prototype instanceof f?t:f,i=Object.create(o.prototype),a=new k(r||[]);return i._invoke=function(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return E()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=O(a,n);if(c){if(c===l)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=s(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===l)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}(e,n,a),i}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var l={};function f(){}function d(){}function p(){}var m={};m[o]=function(){return this};var h=Object.getPrototypeOf,b=h&&h(h(_([])));b&&b!==t&&n.call(b,o)&&(m=b);var v=p.prototype=f.prototype=Object.create(m);function g(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function y(e,t){var r;this._invoke=function(o,i){function a(){return new t((function(r,a){!function r(o,i,a,c){var u=s(e[o],e,i);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,a,c)}),(function(e){r("throw",e,a,c)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return r("throw",e,a,c)}))}c(u.arg)}(o,i,r,a)}))}return r=r?r.then(a,a):a()}}function O(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method))return l;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var r=s(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,l;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,l):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,l)}function w(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function _(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:E}}function E(){return{value:void 0,done:!0}}return d.prototype=v.constructor=p,p.constructor=d,d.displayName=c(p,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,c(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},g(y.prototype),y.prototype[i]=function(){return this},e.AsyncIterator=y,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new y(u(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(v),c(v,a,"Generator"),v[o]=function(){return this},v.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=_,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(j),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,l):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),l},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),l}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;j(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:_(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),l}},e}(e.exports);try{regeneratorRuntime=r}catch(e){Function("r","regeneratorRuntime = r")(r)}},function(e,t,n){"use strict";var r=n(121);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},,,,,,function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},,function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return i}));n(2),n(69);function r(e){return e.ownerDocument.defaultView.getComputedStyle(e)}function o(e){if(!e.collapsed)return e.getBoundingClientRect();var t=e.startContainer,n=t.ownerDocument;if("BR"===t.nodeName){var r=t.parentNode,o=Array.from(r.childNodes).indexOf(t);(e=n.createRange()).setStart(r,o),e.setEnd(r,o)}var i=e.getClientRects()[0];if(!i){var a=n.createTextNode("");(e=e.cloneRange()).insertNode(a),i=e.getClientRects()[0],a.parentNode.removeChild(a)}return i}function i(e){if(e){if(e.scrollHeight>e.clientHeight){var t=r(e).overflowY;if(/(auto|scroll)/.test(t))return e}return i(e.parentNode)}}},function(e,t){e.exports=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}},,,function(e,t,n){"use strict";var r=n(16),o=n(17),i=n(18),a=n(21),c=n(9),u=n(0),s=n(2),l=n(117),f=n(116);function d(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(c.a)(e);if(t){var o=Object(c.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(a.a)(this,n)}}var p=function(e){Object(i.a)(n,e);var t=d(n);function n(){var e;return Object(r.a)(this,n),(e=t.apply(this,arguments)).delayedSetIsOver=Object(s.debounce)((function(t){return e.setState({isOver:t})}),700),e.cancelIsMouseDown=e.createSetIsMouseDown(!1),e.isInMouseDown=!1,e.state={isOver:!1},e}return Object(o.a)(n,[{key:"componentWillUnmount",value:function(){this.delayedSetIsOver.cancel(),document.removeEventListener("mouseup",this.cancelIsMouseDown)}},{key:"emitToChild",value:function(e,t){var n=this.props.children;if(1===u.Children.count(n)){var r=u.Children.only(n);"function"==typeof r.props[e]&&r.props[e](t)}}},{key:"createToggleIsOver",value:function(e,t){var n=this;return function(r){if(n.emitToChild(e,r),!(r.currentTarget.disabled||"focus"===r.type&&n.isInMouseDown)){n.delayedSetIsOver.cancel();var o=Object(s.includes)(["focus","mouseenter"],r.type);o!==n.state.isOver&&(t?n.delayedSetIsOver(o):n.setState({isOver:o}))}}}},{key:"createSetIsMouseDown",value:function(e){var t=this;return function(n){t.emitToChild(e?"onMouseDown":"onMouseUp",n),document[e?"addEventListener":"removeEventListener"]("mouseup",t.cancelIsMouseDown),t.isInMouseDown=e}}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.position,r=e.text,o=e.shortcut;if(1!==u.Children.count(t))return t;var i=u.Children.only(t),a=this.state.isOver;return Object(u.cloneElement)(i,{onMouseEnter:this.createToggleIsOver("onMouseEnter",!0),onMouseLeave:this.createToggleIsOver("onMouseLeave"),onClick:this.createToggleIsOver("onClick"),onFocus:this.createToggleIsOver("onFocus"),onBlur:this.createToggleIsOver("onBlur"),onMouseDown:this.createSetIsMouseDown(!0),children:Object(u.concatChildren)(i.props.children,a&&Object(u.createElement)(l.a,{focusOnMount:!1,position:n,className:"components-tooltip","aria-hidden":"true",animate:!1,noArrow:!0},r,Object(u.createElement)(f.a,{className:"components-tooltip__shortcut",shortcut:o})))})}}]),n}(u.Component);t.a=p},,function(e,t){function n(t,r){return e.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},n(t,r)}e.exports=n},function(e,t,n){"use strict";var r=n(87),o=n(96),i=Object.prototype.hasOwnProperty,a={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},c=Array.isArray,u=Array.prototype.push,s=function(e,t){u.apply(e,c(t)?t:[t])},l=Date.prototype.toISOString,f=o.default,d={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:r.encode,encodeValuesOnly:!1,format:f,formatter:o.formatters[f],indices:!1,serializeDate:function(e){return l.call(e)},skipNulls:!1,strictNullHandling:!1},p=function e(t,n,o,i,a,u,l,f,p,m,h,b,v){var g,y=t;if("function"==typeof l?y=l(n,y):y instanceof Date?y=m(y):"comma"===o&&c(y)&&(y=r.maybeMap(y,(function(e){return e instanceof Date?m(e):e})).join(",")),null===y){if(i)return u&&!b?u(n,d.encoder,v,"key"):n;y=""}if("string"==typeof(g=y)||"number"==typeof g||"boolean"==typeof g||"symbol"==typeof g||"bigint"==typeof g||r.isBuffer(y))return u?[h(b?n:u(n,d.encoder,v,"key"))+"="+h(u(y,d.encoder,v,"value"))]:[h(n)+"="+h(String(y))];var O,w=[];if(void 0===y)return w;if(c(l))O=l;else{var j=Object.keys(y);O=f?j.sort(f):j}for(var k=0;k<O.length;++k){var _=O[k],E=y[_];if(!a||null!==E){var x=c(y)?"function"==typeof o?o(n,_):n:n+(p?"."+_:"["+_+"]");s(w,e(E,x,o,i,a,u,l,f,p,m,h,b,v))}}return w};e.exports=function(e,t){var n,r=e,u=function(e){if(!e)return d;if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||d.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=o.default;if(void 0!==e.format){if(!i.call(o.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var r=o.formatters[n],a=d.filter;return("function"==typeof e.filter||c(e.filter))&&(a=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:d.addQueryPrefix,allowDots:void 0===e.allowDots?d.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:d.charsetSentinel,delimiter:void 0===e.delimiter?d.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:d.encode,encoder:"function"==typeof e.encoder?e.encoder:d.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:d.encodeValuesOnly,filter:a,formatter:r,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:d.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:d.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:d.strictNullHandling}}(t);"function"==typeof u.filter?r=(0,u.filter)("",r):c(u.filter)&&(n=u.filter);var l,f=[];if("object"!=typeof r||null===r)return"";l=t&&t.arrayFormat in a?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var m=a[l];n||(n=Object.keys(r)),u.sort&&n.sort(u.sort);for(var h=0;h<n.length;++h){var b=n[h];u.skipNulls&&null===r[b]||s(f,p(r[b],b,m,u.strictNullHandling,u.skipNulls,u.encode?u.encoder:null,u.filter,u.sort,u.allowDots,u.serializeDate,u.formatter,u.encodeValuesOnly,u.charset))}var v=f.join(u.delimiter),g=!0===u.addQueryPrefix?"?":"";return u.charsetSentinel&&("iso-8859-1"===u.charset?g+="utf8=%26%2310003%3B&":g+="utf8=%E2%9C%93&"),v.length>0?g+v:""}},function(e,t,n){"use strict";var r=n(87),o=Object.prototype.hasOwnProperty,i=Array.isArray,a={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:r.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},c=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},u=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},s=function(e,t,n,r){if(e){var i=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/g,c=n.depth>0&&/(\[[^[\]]*])/.exec(i),s=c?i.slice(0,c.index):i,l=[];if(s){if(!n.plainObjects&&o.call(Object.prototype,s)&&!n.allowPrototypes)return;l.push(s)}for(var f=0;n.depth>0&&null!==(c=a.exec(i))&&f<n.depth;){if(f+=1,!n.plainObjects&&o.call(Object.prototype,c[1].slice(1,-1))&&!n.allowPrototypes)return;l.push(c[1])}return c&&l.push("["+i.slice(c.index)+"]"),function(e,t,n,r){for(var o=r?t:u(t,n),i=e.length-1;i>=0;--i){var a,c=e[i];if("[]"===c&&n.parseArrays)a=[].concat(o);else{a=n.plainObjects?Object.create(null):{};var s="["===c.charAt(0)&&"]"===c.charAt(c.length-1)?c.slice(1,-1):c,l=parseInt(s,10);n.parseArrays||""!==s?!isNaN(l)&&c!==s&&String(l)===s&&l>=0&&n.parseArrays&&l<=n.arrayLimit?(a=[])[l]=o:a[s]=o:a={0:o}}o=a}return o}(l,t,n,r)}};e.exports=function(e,t){var n=function(e){if(!e)return a;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?a.charset:e.charset;return{allowDots:void 0===e.allowDots?a.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:a.allowPrototypes,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:a.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:a.comma,decoder:"function"==typeof e.decoder?e.decoder:a.decoder,delimiter:"string"==typeof e.delimiter||r.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:a.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:a.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:a.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:a.strictNullHandling}}(t);if(""===e||null==e)return n.plainObjects?Object.create(null):{};for(var l="string"==typeof e?function(e,t){var n,s={},l=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,f=t.parameterLimit===1/0?void 0:t.parameterLimit,d=l.split(t.delimiter,f),p=-1,m=t.charset;if(t.charsetSentinel)for(n=0;n<d.length;++n)0===d[n].indexOf("utf8=")&&("utf8=%E2%9C%93"===d[n]?m="utf-8":"utf8=%26%2310003%3B"===d[n]&&(m="iso-8859-1"),p=n,n=d.length);for(n=0;n<d.length;++n)if(n!==p){var h,b,v=d[n],g=v.indexOf("]="),y=-1===g?v.indexOf("="):g+1;-1===y?(h=t.decoder(v,a.decoder,m,"key"),b=t.strictNullHandling?null:""):(h=t.decoder(v.slice(0,y),a.decoder,m,"key"),b=r.maybeMap(u(v.slice(y+1),t),(function(e){return t.decoder(e,a.decoder,m,"value")}))),b&&t.interpretNumericEntities&&"iso-8859-1"===m&&(b=c(b)),v.indexOf("[]=")>-1&&(b=i(b)?[b]:b),o.call(s,h)?s[h]=r.combine(s[h],b):s[h]=b}return s}(e,n):e,f=n.plainObjects?Object.create(null):{},d=Object.keys(l),p=0;p<d.length;++p){var m=d[p],h=s(m,l[m],n,"string"==typeof e);f=r.merge(f,h,n)}return r.compact(f)}},,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(81),o=n(3);function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"polite",t=document.createElement("div");t.id="a11y-speak-".concat(e),t.className="a11y-speak-region",t.setAttribute("style","position: absolute;margin: -1px;padding: 0;height: 1px;width: 1px;overflow: hidden;clip: rect(1px, 1px, 1px, 1px);-webkit-clip-path: inset(50%);clip-path: inset(50%);border: 0;word-wrap: normal !important;"),t.setAttribute("aria-live",e),t.setAttribute("aria-relevant","additions text"),t.setAttribute("aria-atomic","true");var n=document,r=n.body;return r&&r.appendChild(t),t}var a="";function c(e,t){!function(){for(var e=document.getElementsByClassName("a11y-speak-region"),t=document.getElementById("a11y-speak-intro-text"),n=0;n<e.length;n++)e[n].textContent="";t&&t.setAttribute("hidden","hidden")}(),e=function(e){return e=e.replace(/<[^<>]+>/g," "),a===e&&(e+=" "),a=e,e}(e);var n=document.getElementById("a11y-speak-intro-text"),r=document.getElementById("a11y-speak-assertive"),o=document.getElementById("a11y-speak-polite");r&&"assertive"===t?r.textContent=e:o&&(o.textContent=e),n&&n.removeAttribute("hidden")}Object(r.a)((function(){var e=document.getElementById("a11y-speak-intro-text"),t=document.getElementById("a11y-speak-assertive"),n=document.getElementById("a11y-speak-polite");null===e&&function(){var e=document.createElement("p");e.id="a11y-speak-intro-text",e.className="a11y-speak-intro-text",e.textContent=Object(o.__)("Notifications"),e.setAttribute("style","position: absolute;margin: -1px;padding: 0;height: 1px;width: 1px;overflow: hidden;clip: rect(1px, 1px, 1px, 1px);-webkit-clip-path: inset(50%);clip-path: inset(50%);border: 0;word-wrap: normal !important;"),e.setAttribute("hidden","hidden");var t=document.body;t&&t.appendChild(e)}(),null===t&&i("assertive"),null===n&&i("polite")}))},function(e,t,n){"use strict";var r=n(32),o=n(39),i=n(48).b;function a(){var e=Object(o.a)(["\n\t","\n\t","\n"]);return a=function(){return e},e}function c(){var e=Object(o.a)(["\n\t\t\t\t","\n\t\t\t\t","\n\t\t\t"]);return c=function(){return e},e}function u(){var e=Object(o.a)(["\n\t\t\t\t","\n\t\t\t\t","\n\t\t\t"]);return u=function(){return e},e}function s(){var e=Object(o.a)(["\n\t\t\t\t","\n\t\t\t"]);return s=function(){return e},e}function l(){var e=Object(o.a)(["\n\t\t\t\t","\n\t\t\t\t","\n\t\t\t"]);return l=function(){return e},e}function f(){var e=Object(o.a)(["\n\t\t\t\t","\n\t\t\t\t","\n\t\t\t"]);return f=function(){return e},e}function d(){var e=Object(o.a)(["\n\t\t\t\t","\n\t\t\t\t","\n\t\t\t"]);return d=function(){return e},e}function p(){var e=Object(o.a)(["\n\t\t\t\t","\n\t\t\t\t","\n\t\t\t"]);return p=function(){return e},e}function m(){var e=Object(o.a)(["\n\t\t\t\t","\n\t\t\t\t","\n\t\t\t"]);return m=function(){return e},e}var h="\n ".concat("font-weight: 400;","\n"),b="\n\tfont-size: 32px;\n\tline-height: 40px;\n",v="\n\tfont-size: 24px;\n\tline-height: 32px;\n",g="\n\tfont-size: 20px;\n\tline-height: 28px;\n",y="\n\t".concat("font-weight: 600;","\n\tfont-size: 14px;\n\tline-height: 20px;\n"),O="\n\t".concat("font-weight: 400;","\n"),w="\n\tfont-size: 16px;\n\tline-height: 24px;\n",j="\n\tfont-size: 14px;\n\tline-height: 20px;\n",k="\n ".concat("font-weight: 600;","\n font-size: 14px;\n line-height: 20px;\n"),_="\n\t".concat("font-weight: 400;","\n\tfont-size: 12px;\n\tline-height: 16px;\n"),E="\n\t".concat("font-weight: 600;","\n\tfont-size: 12px;\n\tline-height: 16px;\n"),x=Object(r.a)("p",{target:"e15wbhsk0",label:"Text"})("\n\tbox-sizing: border-box;\n\tmargin: 0;\n",(function(e){return i(a(),'font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,\nOxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;',function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body";switch(e){case"title.large":return i(m(),h,b);case"title.medium":return i(p(),h,v);case"title.small":return i(d(),h,g);case"subtitle":return i(f(),y,"\n\tfont-size: 16px;\n\tline-height: 24px;\n");case"subtitle.small":return i(l(),y,"\n\tfont-size: 14px;\n\tline-height: 20px;\n");case"body":return i(s(),O);case"body.large":return i(u(),O,w);case"body.small":return i(c(),O,j);case"button":return k;case"caption":return _;case"label":return E}}(e.variant))}),"");t.a=x},function(e,t,n){"use strict";n.d(t,"b",(function(){return u})),n.d(t,"c",(function(){return s})),n.d(t,"e",(function(){return l})),n.d(t,"a",(function(){return f})),n.d(t,"d",(function(){return p})),n.d(t,"f",(function(){return m}));var r=n(28),o=n.n(r),i=n(76),a=n(2),c=n(35);function u(e){return e?e.split(":")[0]:null}function s(e){var t=u(e);return Object(a.without)(Object(c.g)("onboarding",{euCountries:[]}).euCountries,"GB").includes(t)&&(t="EU"),t}function l(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2?arguments[2]:void 0,r=d(e,t,n),o=r.map((function(e){return e.id||e.product}));return o}function f(e,t){var n={};n.products=d(e,!0,t),n.remainingProducts=d(e,!1,t);var r=o()(new Set([].concat(o()(n.products),o()(n.remainingProducts))));return n.uniqueItemsList=r.map((function(e){return e.label?{type:"extension",name:e.label}:{type:"theme",name:e.title}})),n}function d(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2?arguments[2]:void 0,r=Object(c.g)("onboarding",{}),o=[];if(!r.productTypes)return o;var i=e.product_types||[];i.forEach((function(e){r.productTypes[e]&&r.productTypes[e].product&&(t||!n.includes(r.productTypes[e].slug))&&o.push(r.productTypes[e])}));var a=r.themes.find((function(t){return t.slug===e.theme}));return a&&a.id&&p(a.price)>0&&(t||!a.is_installed)&&o.push(a),o}function p(e){return Number(Object(i.decodeEntities)(e).replace(/[^0-9.-]+/g,""))}function m(e){return/admin.php\?page=wc-admin/.test(e)}},,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(0),o=new WeakMap;function i(e,t){return Object(r.useMemo)((function(){var n=function(e){var t=o.get(e)||0;return o.set(e,t+1),t}(e);return t?"".concat(t,"-").concat(n):n}),[e])}},,,function(e,t){e.exports=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}},,,,,,,,,,,,,,,,,function(e,t){!function(){e.exports=this.wc.currency}()},,,,,,,,,,function(e,t,n){"use strict";var r=Object.assign||function(e){for(var t,n=1;n<arguments.length;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.size,n=void 0===t?24:t,o=e.onClick,i=(e.icon,e.className),c=function(e,t){var n={};for(var r in e)0<=t.indexOf(r)||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["size","onClick","icon","className"]),u=["gridicon","gridicons-cross-small",i,!1,!1,!1].filter(Boolean).join(" ");return a.default.createElement("svg",r({className:u,height:n,width:n,onClick:o},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),a.default.createElement("g",null,a.default.createElement("path",{d:"M17.705 7.705l-1.41-1.41L12 10.59 7.705 6.295l-1.41 1.41L10.59 12l-4.295 4.295 1.41 1.41L12 13.41l4.295 4.295 1.41-1.41L13.41 12l4.295-4.295z"})))};var o,i=n(8),a=(o=i)&&o.__esModule?o:{default:o};e.exports=t.default},,,function(e,t,n){"use strict";var r=n(0),o=n(85),i={huge:1440,wide:1280,large:960,medium:782,small:600,mobile:480},a={">=":"min-width","<":"max-width"},c={">=":function(e,t){return t>=e},"<":function(e,t){return t<e}},u=Object(r.createContext)(null),s=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:">=",n=Object(r.useContext)(u),s=!n&&"(".concat(a[t],": ").concat(i[e],"px)"),l=Object(o.a)(s);return n?c[t](i[e],n):l};s.__experimentalWidthProvider=u.Provider,t.a=s},function(e,t,n){"use strict";var r=n(2);t.a=r.flowRight},function(e,t,n){"use strict";e.exports=n(208)},,,,,,,,,,,function(e,t,n){"use strict";var r=n(3),o=n(51),i=n(0),a=n(35),c=Object(a.g)("manageStock","no"),u=Object(i.lazy)((function(){return Promise.all([n.e(1),n.e(0),n.e(19)]).then(n.bind(null,554))})),s=Object(i.lazy)((function(){return Promise.all([n.e(1),n.e(0),n.e(6),n.e(18)]).then(n.bind(null,550))})),l=Object(i.lazy)((function(){return Promise.all([n.e(1),n.e(0),n.e(22)]).then(n.bind(null,555))})),f=Object(i.lazy)((function(){return Promise.all([n.e(1),n.e(0),n.e(8),n.e(17)]).then(n.bind(null,556))})),d=Object(i.lazy)((function(){return Promise.all([n.e(1),n.e(0),n.e(6),n.e(13)]).then(n.bind(null,552))})),p=Object(i.lazy)((function(){return Promise.all([n.e(1),n.e(0),n.e(14)]).then(n.bind(null,557))})),m=Object(i.lazy)((function(){return Promise.all([n.e(1),n.e(0),n.e(21)]).then(n.bind(null,558))})),h=Object(i.lazy)((function(){return Promise.all([n.e(1),n.e(0),n.e(16)]).then(n.bind(null,559))})),b=Object(i.lazy)((function(){return Promise.all([n.e(0),n.e(20)]).then(n.bind(null,551))})),v=Object(i.lazy)((function(){return Promise.all([n.e(0),n.e(15)]).then(n.bind(null,553))}));t.a=function(){var e=[{report:"revenue",title:Object(r.__)("Revenue","woocommerce-admin"),component:u,navArgs:{id:"woocommerce-analytics-revenue"}},{report:"products",title:Object(r.__)("Products","woocommerce-admin"),component:s,navArgs:{id:"woocommerce-analytics-products"}},{report:"variations",title:Object(r.__)("Variations","woocommerce-admin"),component:l,navArgs:{id:"woocommerce-analytics-variations"}},{report:"orders",title:Object(r.__)("Orders","woocommerce-admin"),component:f,navArgs:{id:"woocommerce-analytics-orders"}},{report:"categories",title:Object(r.__)("Categories","woocommerce-admin"),component:d,navArgs:{id:"woocommerce-analytics-categories"}},{report:"coupons",title:Object(r.__)("Coupons","woocommerce-admin"),component:p,navArgs:{id:"woocommerce-analytics-coupons"}},{report:"taxes",title:Object(r.__)("Taxes","woocommerce-admin"),component:m,navArgs:{id:"woocommerce-analytics-taxes"}},"yes"===c?{report:"stock",title:Object(r.__)("Stock","woocommerce-admin"),component:b,navArgs:{id:"woocommerce-analytics-stock"}}:null,{report:"customers",title:Object(r.__)("Customers","woocommerce-admin"),component:v},{report:"downloads",title:Object(r.__)("Downloads","woocommerce-admin"),component:h,navArgs:{id:"woocommerce-analytics-downloads"}}].filter(Boolean);return Object(o.applyFilters)("woocommerce_admin_reports_list",e)}},function(e,t,n){"use strict";var r=n(182),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},c={};function u(e){return r.isMemo(e)?a:c[e.$$typeof]||o}c[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},c[r.Memo]=a;var s=Object.defineProperty,l=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,m=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(m){var o=p(n);o&&o!==m&&e(t,o,r)}var a=l(n);f&&(a=a.concat(f(n)));for(var c=u(t),h=u(n),b=0;b<a.length;++b){var v=a[b];if(!(i[v]||r&&r[v]||h&&h[v]||c&&c[v])){var g=d(n,v);try{s(t,v,g)}catch(e){}}}}return t}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(31),o=n.n(r),i=n(0);function a(){var e=Object(i.useState)(!1),t=o()(e,2),n=t[0],r=t[1],a=Object(i.useRef)(null);return Object(i.useEffect)((function(){var e=function(){r(window.pageYOffset>20)},t=function(){a.current=window.requestAnimationFrame(e)};return window.addEventListener("scroll",t),function(){window.removeEventListener("scroll",t),window.cancelAnimationFrame(a.current)}}),[]),n}},function(e,t){!function(){e.exports=this.wp.plugins}()},function(e,t,n){"use strict";n.d(t,"c",(function(){return Pt})),n.d(t,"b",(function(){return Tt})),n.d(t,"a",(function(){return Dt}));var r=n(36),o=n.n(r),i=n(58),a=n.n(i),c=n(5),u=n.n(c),s=n(20),l=n.n(s),f=n(15),d=n.n(f),p=n(22),m=n.n(p),h=n(23),b=n.n(h),v=n(10),g=n.n(v),y=n(0),O=n(181),w=n(25),j=n(53),k=n(8),_=n.n(k),E=n(1),x=n.n(E),C=n(108),S=n(341),P=n(92),A=n(7),N=n(239),R=n.n(N),T=(n(182),n(54)),D=(n(194),function(e){var t=Object(S.a)();return t.displayName=e,t}("Router")),L=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={location:t.history.location},n._isMounted=!1,n._pendingLocation=null,t.staticContext||(n.unlisten=t.history.listen((function(e){n._isMounted?n.setState({location:e}):n._pendingLocation=e}))),n}Object(j.a)(t,e),t.computeRootMatch=function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}};var n=t.prototype;return n.componentDidMount=function(){this._isMounted=!0,this._pendingLocation&&this.setState({location:this._pendingLocation})},n.componentWillUnmount=function(){this.unlisten&&this.unlisten()},n.render=function(){return _.a.createElement(D.Provider,{children:this.props.children||null,value:{history:this.props.history,location:this.state.location,match:t.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}})},t}(_.a.Component);_.a.Component;_.a.Component;var M={},F=0;function I(e,t){void 0===t&&(t={}),("string"==typeof t||Array.isArray(t))&&(t={path:t});var n=t,r=n.path,o=n.exact,i=void 0!==o&&o,a=n.strict,c=void 0!==a&&a,u=n.sensitive,s=void 0!==u&&u;return[].concat(r).reduce((function(t,n){if(!n&&""!==n)return null;if(t)return t;var r=function(e,t){var n=""+t.end+t.strict+t.sensitive,r=M[n]||(M[n]={});if(r[e])return r[e];var o=[],i={regexp:R()(e,o,t),keys:o};return F<1e4&&(r[e]=i,F++),i}(n,{end:i,strict:c,sensitive:s}),o=r.regexp,a=r.keys,u=o.exec(e);if(!u)return null;var l=u[0],f=u.slice(1),d=e===l;return i&&!d?null:{path:n,url:"/"===n&&""===l?"/":l,isExact:d,params:a.reduce((function(e,t,n){return e[t.name]=f[n],e}),{})}}),null)}var z=function(e){function t(){return e.apply(this,arguments)||this}return Object(j.a)(t,e),t.prototype.render=function(){var e=this;return _.a.createElement(D.Consumer,null,(function(t){t||Object(P.a)(!1);var n=e.props.location||t.location,r=e.props.computedMatch?e.props.computedMatch:e.props.path?I(n.pathname,e.props):t.match,o=Object(A.a)({},t,{location:n,match:r}),i=e.props,a=i.children,c=i.component,u=i.render;return Array.isArray(a)&&0===a.length&&(a=null),_.a.createElement(D.Provider,{value:o},o.match?a?"function"==typeof a?a(o):a:c?_.a.createElement(c,o):u?u(o):null:"function"==typeof a?a(o):null)}))},t}(_.a.Component);function H(e){return"/"===e.charAt(0)?e:"/"+e}function B(e,t){if(!e)return t;var n=H(e);return 0!==t.pathname.indexOf(n)?t:Object(A.a)({},t,{pathname:t.pathname.substr(n.length)})}function U(e){return"string"==typeof e?e:Object(C.d)(e)}function V(e){return function(){Object(P.a)(!1)}}function q(){}_.a.Component;var W=function(e){function t(){return e.apply(this,arguments)||this}return Object(j.a)(t,e),t.prototype.render=function(){var e=this;return _.a.createElement(D.Consumer,null,(function(t){t||Object(P.a)(!1);var n,r,o=e.props.location||t.location;return _.a.Children.forEach(e.props.children,(function(e){if(null==r&&_.a.isValidElement(e)){n=e;var i=e.props.path||e.props.from;r=i?I(o.pathname,Object(A.a)({},e.props,{path:i})):t.match}})),r?_.a.cloneElement(n,{location:o,computedMatch:r}):null}))},t}(_.a.Component);_.a.useContext;var $=n(2),G=n(82),Q=n(74),K=n(29),Y=n(35),Z=n(34),X=n(50),J=(n(373),n(51)),ee=n(3),te=n(193),ne=n(143);function re(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var o=g()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return b()(this,n)}}var oe=Object(y.lazy)((function(){return n.e(12).then(n.bind(null,661))})),ie=Object(y.lazy)((function(){return Promise.all([n.e(2),n.e(23)]).then(n.bind(null,670))})),ae=Object(y.lazy)((function(){return n.e(30).then(n.bind(null,662))})),ce=Object(y.lazy)((function(){return Promise.all([n.e(3),n.e(4),n.e(5),n.e(7),n.e(34)]).then(n.bind(null,667))})),ue=Object(y.lazy)((function(){return Promise.all([n.e(4),n.e(5),n.e(38)]).then(n.bind(null,672))})),se=Object(y.lazy)((function(){return Promise.all([n.e(4),n.e(54),n.e(47)]).then(n.bind(null,668))})),le=function(){var e=[],t=[["",wcSettings.woocommerceTranslation]];return e.push({container:ce,path:"/",breadcrumbs:[].concat(t,[Object(ee.__)("Home","woocommerce-admin")]),wpOpenMenu:"toplevel_page_woocommerce",navArgs:{id:"woocommerce-home"}}),window.wcAdminFeatures.analytics&&(e.push({container:ae,path:"/analytics/overview",breadcrumbs:[].concat(t,[["/analytics/overview",Object(ee.__)("Analytics","woocommerce-admin")],Object(ee.__)("Overview","woocommerce-admin")]),wpOpenMenu:"toplevel_page_wc-admin-path--analytics-overview",navArgs:{id:"woocommerce-analytics-overview"}}),e.push({container:ie,path:"/analytics/settings",breadcrumbs:[].concat(t,[["/analytics/revenue",Object(ee.__)("Analytics","woocommerce-admin")],Object(ee.__)("Settings","woocommerce-admin")]),wpOpenMenu:"toplevel_page_wc-admin-path--analytics-overview",navArgs:{id:"woocommerce-analytics-settings"}}),e.push({container:oe,path:"/customers",breadcrumbs:[].concat(t,[Object(ee.__)("Customers","woocommerce-admin")]),wpOpenMenu:"toplevel_page_woocommerce",navArgs:{id:"woocommerce-analytics-customers"}}),e.push({container:oe,path:"/analytics/:report",breadcrumbs:function(e){var n=e.match,r=Object($.find)(Object(te.a)(),{report:n.params.report});return r?[].concat(t,[["/analytics/revenue",Object(ee.__)("Analytics","woocommerce-admin")],r.title]):[]},wpOpenMenu:"toplevel_page_wc-admin-path--analytics-overview"})),window.wcAdminFeatures.marketing&&e.push({container:ue,path:"/marketing",breadcrumbs:[].concat(t,[["/marketing",Object(ee.__)("Marketing","woocommerce-admin")],Object(ee.__)("Overview","woocommerce-admin")]),wpOpenMenu:"toplevel_page_woocommerce-marketing",navArgs:{id:"woocommerce-marketing-overview"}}),window.wcAdminFeatures.onboarding&&e.push({container:se,path:"/setup-wizard",breadcrumbs:[].concat(t,[["/setup-wizard",Object(ee.__)("Setup Wizard","woocommerce-admin")]])}),Object(J.applyFilters)("woocommerce_admin_pages_list",e)},fe=function(e){m()(n,e);var t=re(n);function n(){return l()(this,n),t.apply(this,arguments)}return d()(n,[{key:"componentDidMount",value:function(){window.document.documentElement.scrollTop=0,window.document.body.classList.remove("woocommerce-admin-is-loading")}},{key:"componentDidUpdate",value:function(e){var t=Object($.omit)(e.query,"chartType","filter","paged"),n=Object($.omit)(this.props.query,"chartType","filter","paged");e.query.paged>1&&!Object($.isEqual)(t,n)&&Object(K.getHistory)().replace(Object(K.getNewPath)({paged:1})),e.match.url!==this.props.match.url&&(window.document.documentElement.scrollTop=0)}},{key:"render",value:function(){var e=this.props,t=e.page,n=e.match,r=e.query,o=n.url,i=n.params;return window.wpNavMenuUrlUpdate(r),window.wpNavMenuClassChange(t,o),Object(y.createElement)(y.Suspense,{fallback:Object(y.createElement)(Q.Spinner,null)},Object(y.createElement)(t.container,{params:i,path:o,pathMatch:t.path,query:r}))}}]),n}(y.Component);window.wpNavMenuUrlUpdate=function(e){var t=Object(J.applyFilters)("woocommerce_admin_time_excluded_screens",["stock","settings","customers","homescreen"]),n=Object(K.getPersistedQuery)(e);Array.from(document.querySelectorAll("#adminmenu a")).forEach((function(e){return function(e,t,n){if(Object(ne.f)(e.href)){var r=Object($.last)(e.href.split("?")),o=Object(G.parse)(r),i=(o.path||"homescreen").replace("/analytics","").replace("/",""),a=n.includes(i),c="admin.php?"+Object(G.stringify)(Object.assign(o,a?{}:t));e.href=c,e.onclick=function(e){e.preventDefault(),Object(K.getHistory)().push(c)}}}(e,n,t)}))},window.wpNavMenuClassChange=function(e,t){Array.from(document.getElementsByClassName("current")).forEach((function(e){e.classList.remove("current")})),Array.from(document.querySelectorAll(".wp-has-current-submenu")).forEach((function(e){e.classList.remove("wp-has-current-submenu"),e.classList.remove("wp-menu-open"),e.classList.remove("selected"),e.classList.add("wp-not-current-submenu"),e.classList.add("menu-top")}));var n="/"===t?"admin.php?page=wc-admin":"admin.php?page=wc-admin&path="+encodeURIComponent(t),r="/"===t?'li > a[href$="'.concat(n,'"], li > a[href*="').concat(n,'?"]'):'li > a[href*="'.concat(n,'"]'),o=document.querySelectorAll(r);if(Array.from(o).forEach((function(e){e.parentElement.classList.add("current")})),e.wpOpenMenu){var i=document.querySelector("#"+e.wpOpenMenu);i&&(i.classList.remove("wp-not-current-submenu"),i.classList.add("wp-has-current-submenu"),i.classList.add("wp-menu-open"),i.classList.add("current"))}document.querySelector("#wpwrap").classList.remove("wp-responsive-open")};var de=n(4),pe=n.n(de),me=n(76),he=n(142),be=(n(374),n(338)),ve=n.n(be),ge=n(67),ye=n(177),Oe=n.n(ye),we=n(377),je=n(78),ke=Object(y.createElement)(je.c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(y.createElement)(je.b,{d:"M12 4.75a7.25 7.25 0 100 14.5 7.25 7.25 0 000-14.5zM3.25 12a8.75 8.75 0 1117.5 0 8.75 8.75 0 01-17.5 0zM12 8.75a1.5 1.5 0 01.167 2.99c-.465.052-.917.44-.917 1.01V14h1.5v-.845A3 3 0 109 10.25h1.5a1.5 1.5 0 011.5-1.5zM11.25 15v1.5h1.5V15h-1.5z"})),_e=(n(376),function(e){var t=e.height,n=void 0===t?24:t,r=e.width,o=void 0===r?24:r,i=e.hasUnread,a=void 0!==i&&i,c=pe()("woocommerce-layout__activity-panel-toggle-bubble",{"has-unread":a});return Object(y.createElement)("div",{className:c},Object(y.createElement)("svg",{height:n,width:o,viewBox:"0 0 24 24"},Object(y.createElement)("path",{d:"M18.9 2H5.1C3.4 2 2 3.4 2 5.1v10.7C2 17.6 3.4 19 5.1 19H9l6 3-1-3h4.9c1.7 0 3.1-1.4 3.1-3.1V5.1C22 3.4 20.6 2 18.9 2zm-1.5 4.5c-.4.8-.8 2.1-1 3.9-.3 1.8-.4 3.1-.3 4.1 0 .3 0 .5-.1.7-.1.2-.3.4-.6.4s-.6-.1-.9-.4c-1-1-1.8-2.6-2.4-4.6-.7 1.4-1.2 2.4-1.6 3.1-.6 1.2-1.2 1.8-1.6 1.9-.3 0-.5-.2-.8-.7-.5-1.4-1.1-4.2-1.7-8.2 0-.3 0-.5.2-.7.1-.2.4-.3.7-.4.5 0 .9.2.9.8.3 2.3.7 4.2 1.1 5.7l2.4-4.5c.2-.4.4-.6.8-.6.5 0 .8.3.9.9.3 1.4.6 2.6 1 3.7.3-2.7.8-4.7 1.4-5.9.2-.3.4-.5.7-.5.2 0 .5.1.7.2.2.2.3.4.3.6 0 .2 0 .4-.1.5z"})))});_e.propTypes={height:x.a.number,width:x.a.number,hasUnread:x.a.bool};var Ee=_e,xe=n(249);var Ce=n(31),Se=n.n(Ce),Pe=n(573),Ae=function(e){var t=e.icon,n=e.title,r=e.name,o=e.unread,i=e.selected,a=e.isPanelOpen,c=e.onTabClick,u=pe()("woocommerce-layout__activity-panel-tab",{"is-active":a&&i,"has-unread":o}),s="activity-panel-tab-".concat(r);return Object(y.createElement)(ge.a,{role:"tab",className:u,"aria-selected":i,"aria-controls":"activity-panel-".concat(r),key:s,id:s,onClick:function(){c(r)}},t,n," ",o&&Object(y.createElement)("span",{className:"screen-reader-text"},Object(ee.__)("unread activity","woocommerce-admin")))},Ne=function(e){var t=e.tabs,n=e.onTabClick,r=e.selectedTab,i=e.tabOpen,a=void 0!==i&&i,c=Object(y.useState)({tabOpen:a,currentTab:r}),u=Se()(c,2),s=u[0],l=s.tabOpen,f=s.currentTab,d=u[1];return Object(y.useEffect)((function(){d({tabOpen:a,currentTab:r})}),[a,r]),Object(y.createElement)(Pe.a,{role:"tablist",orientation:"horizontal",className:"woocommerce-layout__activity-panel-tabs"},t&&t.map((function(e,t){if(e.component){var r=e.component,i=e.options;return Object(y.createElement)(r,o()({key:t},i))}return Object(y.createElement)(Ae,o()({key:t,index:t,isPanelOpen:l,selected:f===e.name},e,{onTabClick:function(){var t=f!==e.name&&""!==f||!l;t&&f===e.name||Object(X.recordEvent)("activity_panel_open",{tab:e.name}),d({tabOpen:t,currentTab:e.name}),n(e,t)}}))})))},Re=function(){return Object(y.createElement)("svg",{className:"woocommerce-layout__activity-panel-tab-icon setup-progress",width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(y.createElement)("path",{d:"M12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20Z",stroke:"#DCDCDE",strokeWidth:"2"}),Object(y.createElement)("path",{d:"M4 12V12C4 16.4183 7.58172 20 12 20V20C16.4183 20 20 16.4183 20 12V12C20 7.58172 16.4183 4 12 4V4",strokeWidth:"2",strokeLinecap:"round"}))},Te=n(6),De=n(57),Le=n(47),Me=n(339);function Fe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ie(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Fe(Object(n),!0).forEach((function(t){Object(Te.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ze(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Ie(Ie({},e),t);return t.className&&e.className&&(n.className=pe()(t.className,e.className)),n}var He=function(e){var t,n=e.children,r=e.className,o=e.controls,i=e.icon,a=void 0===i?"menu":i,c=e.label,u=e.popoverProps,s=e.toggleProps,l=e.menuProps,f=e.disableOpenOnArrowDown,d=void 0!==f&&f,p=e.menuLabel,m=e.position,h=e.noIcons;if(p&&Object(Le.a)("`menuLabel` prop in `DropdownComponent`",{alternative:"`menuProps` object and its `aria-label` property",plugin:"Gutenberg"}),m&&Object(Le.a)("`position` prop in `DropdownComponent`",{alternative:"`popoverProps` object and its `position` property",plugin:"Gutenberg"}),Object($.isEmpty)(o)&&!Object($.isFunction)(n))return null;Object($.isEmpty)(o)||(t=o,Array.isArray(t[0])||(t=[t]));var b=ze({className:"components-dropdown-menu__popover",position:m},u);return Object(y.createElement)(Me.a,{className:pe()("components-dropdown-menu",r),popoverProps:b,renderToggle:function(e){var t,n=e.isOpen,r=e.onToggle,o=ze({className:pe()("components-dropdown-menu__toggle",{"is-opened":n})},s);return Object(y.createElement)(ge.a,Object(A.a)({},o,{icon:a,onClick:function(e){r(e),o.onClick&&o.onClick(e)},onKeyDown:function(e){!function(e){d||n||e.keyCode!==De.a||(e.preventDefault(),e.stopPropagation(),r())}(e),o.onKeyDown&&o.onKeyDown(e)},"aria-haspopup":"true","aria-expanded":n,label:c,showTooltip:null===(t=null==s?void 0:s.showTooltip)||void 0===t||t}),o.children)},renderContent:function(e){var r=ze({"aria-label":p||c,className:pe()("components-dropdown-menu__menu",{"no-icons":h})},l);return Object(y.createElement)(Pe.a,Object(A.a)({},r,{role:"menu"}),Object($.isFunction)(n)?n(e):null,Object($.flatMap)(t,(function(t,n){return t.map((function(t,r){return Object(y.createElement)(ge.a,{key:[n,r].join(),onClick:function(n){n.stopPropagation(),e.onClose(),t.onClick&&t.onClick()},className:pe()("components-dropdown-menu__menu-item",{"has-separator":n>0&&0===r,"is-active":t.isActive}),icon:t.icon,"aria-checked":"menuitemcheckbox"===t.role||"menuitemradio"===t.role?t.isActive:void 0,role:"menuitemcheckbox"===t.role||"menuitemradio"===t.role?t.role:"menuitem",disabled:t.isDisabled},t.title)}))})))}})},Be=n(147);var Ue=function e(t){var n=t.children,r=t.className,o=void 0===r?"":r,i=t.label,a=Object(Be.a)(e);if(!y.Children.count(n))return null;var c="components-menu-group-label-".concat(a),u=pe()(o,"components-menu-group");return Object(y.createElement)("div",{className:u},i&&Object(y.createElement)("div",{className:"components-menu-group__label",id:c,"aria-hidden":"true"},i),Object(y.createElement)("div",{role:"group","aria-labelledby":i?c:null},n))},Ve=n(571),qe=n(11),We=n(116),$e=n(114);var Ge=Object(y.forwardRef)((function(e,t){var n=e.children,r=e.info,o=e.className,i=e.icon,a=e.shortcut,c=e.isSelected,u=e.role,s=void 0===u?"menuitem":u,l=Object(qe.a)(e,["children","info","className","icon","shortcut","isSelected","role"]);return o=pe()("components-menu-item__button",o),r&&(n=Object(y.createElement)("span",{className:"components-menu-item__info-wrapper"},n,Object(y.createElement)("span",{className:"components-menu-item__info"},r))),i&&!Object($.isString)(i)&&(i=Object(y.cloneElement)(i,{className:"components-menu-items__item-icon"})),Object(y.createElement)(ge.a,Object(A.a)({ref:t,"aria-checked":"menuitemcheckbox"===s||"menuitemradio"===s?c:void 0,role:s,className:o},l),n,Object(y.createElement)(We.a,{className:"components-menu-item__shortcut",shortcut:a}),i&&Object(y.createElement)($e.a,{icon:i}))}));function Qe(e){var t=e.choices,n=void 0===t?[]:t,r=e.onHover,o=void 0===r?$.noop:r,i=e.onSelect,a=e.value;return n.map((function(e){var t=a===e.value;return Object(y.createElement)(Ge,{key:e.value,role:"menuitemradio",icon:t&&Ve.a,isSelected:t,shortcut:e.shortcut,className:"components-menu-items-choice",onClick:function(){t||i(e.value)},onMouseEnter:function(){return o(e.value)},onMouseLeave:function(){return o(null)}},e.label)}))}var Ke=function(){return Object(y.createElement)(y.Fragment,null,Object(y.createElement)("svg",{className:"woocommerce-layout__activity-panel-tab-icon",width:"24",height:"24",viewBox:"3 3 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(y.createElement)("path",{d:"M13.8053 15.3982C13.8053 15.7965 13.4867 16.1947 13.0089 16.1947H6.79646C6.55752 16.1947 6.39823 16.115 6.23894 15.9558C6.07965 15.7965 6 15.6372 6 15.3982V6.79646C6 6.63717 6.15929 6.39823 6.23894 6.23894C6.39823 6.07965 6.55752 6 6.79646 6H13.0089C13.4071 6 13.8053 6.31858 13.8053 6.79646V15.3982Z",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),Object(y.createElement)("path",{d:"M23.9203 10.6195C23.9203 11.0177 23.6017 11.4159 23.1238 11.4159H16.9115C16.6725 11.4159 16.5132 11.3363 16.3539 11.177C16.1946 11.0177 16.115 10.8584 16.115 10.6195V6.79646C16.115 6.39823 16.4336 6 16.9115 6H23.1238C23.5221 6 23.9203 6.31858 23.9203 6.79646V10.6195Z",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),Object(y.createElement)("path",{d:"M13.8053 23.2035C13.8053 23.4424 13.7257 23.6017 13.5664 23.761C13.4071 23.9203 13.2478 23.9999 13.0089 23.9999H6.79646C6.39823 23.9999 6 23.6813 6 23.2035V19.3804C6 19.1415 6.07965 18.9822 6.23894 18.8229C6.39823 18.6636 6.55752 18.584 6.79646 18.584H13.0089C13.4071 18.584 13.8053 18.9026 13.8053 19.3804V23.2035Z",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),Object(y.createElement)("path",{d:"M16.9912 23.9999C16.7522 23.9999 16.5929 23.9202 16.4336 23.7609C16.2743 23.6016 16.1947 23.4423 16.1947 23.2034V14.6016C16.1947 14.3627 16.2743 14.2034 16.4336 14.0441C16.5929 13.8848 16.7522 13.8052 16.9912 13.8052H23.2036C23.4425 13.8052 23.6018 13.8848 23.7611 14.0441C23.9204 14.2034 24 14.3627 24 14.6016V23.2034C24 23.6016 23.6814 23.9999 23.2036 23.9999H16.9912Z",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})),Object(ee.__)("Display","woocommerce-admin"))},Ye=[{value:"single_column",label:Object(y.createElement)(y.Fragment,null,Object(y.createElement)((function(){return Object(y.createElement)("svg",{className:"woocommerce-layout__activity-panel-tab-icon",width:"12",height:"14",viewBox:"0 0 12 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(y.createElement)("rect",{x:"0.5",y:"0.5",width:"11",height:"13",strokeWidth:"1"}))}),null),Object(ee.__)("Single column","woocommerce-admin"))},{value:"two_columns",label:Object(y.createElement)(y.Fragment,null,Object(y.createElement)((function(){return Object(y.createElement)("svg",{className:"woocommerce-layout__activity-panel-tab-icon",width:"18",height:"14",viewBox:"0 0 18 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(y.createElement)("rect",{x:"0.5",y:"0.5",width:"7",height:"13",strokeWidth:"1"}),Object(y.createElement)("rect",{x:"9.5",y:"0.5",width:"7",height:"13",strokeWidth:"1"}))}),null),Object(ee.__)("Two columns","woocommerce-admin"))}],Ze=function(){var e=Object(w.useSelect)((function(e){return(0,e(Z.OPTIONS_STORE_NAME).getOption)("woocommerce_default_homepage_layout")||"single_column"})),t=Object(Z.useUserPreferences)(),n=t.updateUserPreferences,r=t.homepage_layout;return Object(y.createElement)(He,{icon:Object(y.createElement)(Ke,null),label:Object(ee.__)("Display options","woocommerce-admin"),toggleProps:{className:"woocommerce-layout__activity-panel-tab display-options",onClick:function(){return Object(X.recordEvent)("homescreen_display_click")}},popoverProps:{className:"woocommerce-layout__activity-panel-popover"}},(function(t){var o=t.onClose;return Object(y.createElement)(Ue,{className:"woocommerce-layout__homescreen-display-options",label:Object(ee.__)("Layout","woocommerce-admin")},Object(y.createElement)(Qe,{choices:Ye,onSelect:function(e){n({homepage_layout:e}),o(),Object(X.recordEvent)("homescreen_display_option",{display_option:e})},value:r||e}))}))};function Xe(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var o=g()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return b()(this,n)}}var Je=Object(y.lazy)((function(){return Promise.all([n.e(53),n.e(9),n.e(10)]).then(n.bind(null,664))})),et=Object(y.lazy)((function(){return Promise.all([n.e(3),n.e(5),n.e(7),n.e(11)]).then(n.bind(null,612))})),tt=function(e){m()(n,e);var t=Xe(n);function n(e){var r;return l()(this,n),(r=t.call(this,e)).state={isPanelOpen:!1,mobileOpen:!1,currentTab:"",isPanelSwitching:!1},r}return d()(n,[{key:"togglePanel",value:function(e,t){var n=e.name;this.setState((function(e){var r=n!==e.currentTab&&""!==e.currentTab&&t&&e.isPanelOpen;return{isPanelOpen:t,mobileOpen:t,currentTab:n,isPanelSwitching:r}}))}},{key:"closePanel",value:function(){this.setState((function(){return{isPanelOpen:!1,currentTab:""}}))}},{key:"clearPanel",value:function(){this.setState((function(){return{isPanelSwitching:!1}}))}},{key:"toggleMobile",value:function(){var e=this.getTabs();this.setState((function(t){return{mobileOpen:!t.mobileOpen,currentTab:t.mobileOpen?"":e[0].name,isPanelOpen:!t.mobileOpen}}))}},{key:"handleClickOutside",value:function(e){var t=this.state.isPanelOpen,n=e.target.closest(".woocommerce-inbox-dismiss-confirmation_modal")||e.target.closest(".components-snackbar__action");t&&!n&&this.closePanel()}},{key:"isHomescreen",value:function(){return"/"===this.props.getHistory().location.pathname}},{key:"isPerformingSetupTask",value:function(){var e=this.props,t=e.requestingTaskListOptions,n=e.taskListComplete,r=e.taskListHidden,o=e.query,i=o.task&&!o.path&&(!0===t||!1===r&&!1===n);return i}},{key:"getTabs",value:function(){var e=this.props,t=e.hasUnreadNotes,n=e.isEmbedded,r=e.taskListComplete,o=e.taskListHidden,i=this.isPerformingSetupTask(),a=(n||!this.isHomescreen())&&!i,c=this.isHomescreen()&&!n||i,u=!n&&this.isHomescreen()&&!i,s=!r&&!o&&!i&&(!this.isHomescreen()||n),l=a?{name:"inbox",title:Object(ee.__)("Inbox","woocommerce-admin"),icon:Object(y.createElement)("i",{className:"material-icons-outlined"},"inbox"),unread:t}:null,f=s?{name:"setup",title:Object(ee.__)("Store Setup","woocommerce-admin"),icon:Object(y.createElement)(Re,null)}:null,d=c?{name:"help",title:Object(ee.__)("Help","woocommerce-admin"),icon:Object(y.createElement)(we.a,{icon:ke})}:null;return[l,f,u?{component:Ze}:null,d].filter(Boolean)}},{key:"getPanelContent",value:function(e){var t=this.props.query.task;switch(e){case"inbox":return Object(y.createElement)(et,null);case"help":return Object(y.createElement)(Je,{taskName:t});default:return null}}},{key:"renderPanel",value:function(){var e=this,t=this.props,n=t.updateOptions,r=t.taskListHidden,o=this.state,i=o.isPanelOpen,a=o.currentTab,c=o.isPanelSwitching,u=Object($.find)(this.getTabs(),{name:a});if(!u)return Object(y.createElement)("div",{className:"woocommerce-layout__activity-panel-wrapper"});var s=function(){e.clearPanel()};if("display-options"===a)return null;if("setup"===a)return window.location.href!==Object(Y.f)("admin.php?page=wc-admin")&&("no"===r?this.redirectToHomeScreen():n({woocommerce_task_list_hidden:"no"}).then(this.redirectToHomeScreen)),null;var l=pe()("woocommerce-layout__activity-panel-wrapper",{"is-open":i,"is-switching":c});return Object(y.createElement)("div",{className:l,tabIndex:0,role:"tabpanel","aria-label":u.title,onTransitionEnd:s,onAnimationEnd:s},Object(y.createElement)("div",{className:"woocommerce-layout__activity-panel-content",key:"activity-panel-"+a,id:"activity-panel-"+a},Object(y.createElement)(y.Suspense,{fallback:Object(y.createElement)(Q.Spinner,null)},this.getPanelContent(a))))}},{key:"redirectToHomeScreen",value:function(){Object(ne.f)(window.location.href)?Object(K.getHistory)().push(Object(K.getNewPath)({},"/",{})):window.location.href=Object(Y.f)("admin.php?page=wc-admin")}},{key:"render",value:function(){var e=this,t=this.getTabs(),n=this.state,r=n.mobileOpen,o=n.currentTab,i=n.isPanelOpen,a=Object($.uniqueId)("activity-panel-header_"),c=pe()("woocommerce-layout__activity-panel",{"is-mobile-open":this.state.mobileOpen}),u=t.some((function(e){return e.unread})),s=u?Object(ee.__)("View Activity Panel, you have unread activity","woocommerce-admin"):Object(ee.__)("View Activity Panel","woocommerce-admin");return Object(y.createElement)("div",null,Object(y.createElement)(Q.H,{id:a,className:"screen-reader-text"},Object(ee.__)("Store Activity","woocommerce-admin")),Object(y.createElement)(Q.Section,{component:"aside",id:"woocommerce-activity-panel","aria-labelledby":a},Object(y.createElement)(ge.a,{onClick:function(){e.toggleMobile()},label:r?Object(ee.__)("Close Activity Panel","woocommerce-admin"):s,"aria-expanded":r,className:"woocommerce-layout__activity-panel-mobile-toggle"},r?Object(y.createElement)(Oe.a,null):Object(y.createElement)(Ee,{hasUnread:u})),Object(y.createElement)("div",{className:c},Object(y.createElement)(Ne,{tabs:t,tabOpen:i,selectedTab:o,onTabClick:function(t,n){e.togglePanel(t,n)}}),this.renderPanel())))}}]),n}(y.Component);tt.defaultProps={getHistory:K.getHistory};var nt=Object(O.a)(Object(w.withSelect)((function(e){var t=function(e){var t=e(Z.NOTES_STORE_NAME),n=t.getNotes,r=t.getNotesError,o=t.isResolving,i=(0,e(Z.USER_STORE_NAME).getCurrentUser)(),a=parseInt(i&&i.woocommerce_meta&&i.woocommerce_meta.activity_panel_inbox_last_read,10);if(!a)return null;var c={page:1,per_page:Z.QUERY_DEFAULTS.pageSize,status:"unactioned",type:Z.QUERY_DEFAULTS.noteTypes,orderby:"date",order:"desc"},u=n(c),s=Boolean(r("getNotes",[c])),l=o("getNotes",[c]);return s||l?null:Object(xe.a)(u,a)>0}(e),n=e(Z.OPTIONS_STORE_NAME),r=n.getOption,o=n.isResolving,i="yes"===r("woocommerce_task_list_complete"),a="yes"===r("woocommerce_task_list_hidden");return{hasUnreadNotes:t,requestingTaskListOptions:o("getOption",["woocommerce_task_list_complete"])||o("getOption",["woocommerce_task_list_hidden"]),taskListComplete:i,taskListHidden:a}})),Object(w.withDispatch)((function(e){return{updateOptions:e(Z.OPTIONS_STORE_NAME).updateOptions}})),ve.a)(tt),rt=function(){return/iPhone|iPad|iPod/i.test(window.navigator.userAgent)?"ios":/Android/i.test(window.navigator.userAgent)?"android":"unknown"},ot=function(){return Object(y.createElement)("svg",{width:"37",height:"37",viewBox:"0 0 92 92",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(y.createElement)("rect",{width:"92",height:"92",rx:"21.3953",fill:"#7F54B3"}),Object(y.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M72.5937 28.043H19.8094C16.4781 28.0459 13.7783 30.7705 13.7754 34.1324V54.4501C13.7783 57.812 16.4781 60.5366 19.8094 60.5395H44.8229L56.2573 66.9607L53.6672 60.5395H72.599C74.2009 60.5402 75.7374 59.8983 76.8702 58.7552C78.0029 57.612 78.639 56.0614 78.6383 54.4447V34.1324C78.6376 32.5157 78.0002 30.9657 76.8664 29.8235C75.7327 28.6814 74.1956 28.0408 72.5937 28.043ZM19.1057 32.4208C18.4658 32.4324 17.8646 32.7359 17.467 33.2482C17.0888 33.7635 16.9404 34.4175 17.058 35.0502C18.5962 45.0986 20.0338 51.8757 21.371 55.3816C21.8779 56.658 22.4896 57.2703 23.2063 57.2185C24.3075 57.1489 25.6263 55.5968 27.1627 52.5621C27.9964 50.8412 29.2602 48.2662 30.9539 44.837C32.3785 49.88 34.309 53.6787 36.7456 56.2331C37.4291 56.9436 38.1204 57.2748 38.8195 57.2266C39.4185 57.1931 39.953 56.8315 40.217 56.2813C40.4753 55.7358 40.5806 55.1278 40.5211 54.5248C40.3516 52.0703 40.5919 48.667 41.2421 44.3149C41.9081 39.8057 42.7523 36.5818 43.7749 34.6432C43.9822 34.2526 44.0733 33.8087 44.037 33.366C44.0039 32.7587 43.7116 32.1969 43.2374 31.829C42.7745 31.4367 42.1799 31.2446 41.5803 31.2935C40.8334 31.3325 40.1682 31.7885 39.8499 32.4797C38.2331 35.5019 37.0812 40.4109 36.3943 47.2068C35.2823 44.2394 34.4509 41.1703 33.9114 38.0412C33.623 36.4613 32.9037 35.7125 31.7536 35.7946C30.9592 35.8589 30.3063 36.3944 29.7819 37.4012L24.0348 48.5643C23.0997 44.6692 22.2205 39.9289 21.3972 34.3433C21.1997 32.9652 20.4358 32.3244 19.1057 32.4208ZM69.9089 34.6877C71.6969 35.0381 73.2407 36.2 74.1186 37.8559C74.9693 39.3247 75.3946 41.1161 75.3946 43.23C75.4148 45.9567 74.7062 48.6357 73.3477 50.9687C71.7778 53.7023 69.7195 55.0691 67.1727 55.0691C66.6933 55.0668 66.2153 55.0128 65.7467 54.9078C63.9584 54.5581 62.4143 53.396 61.5371 51.7396C60.6864 50.2452 60.261 48.4411 60.261 46.3272C60.2357 43.6127 60.945 40.9454 62.3079 38.6295C63.9023 35.8959 65.9607 34.5291 68.4829 34.5291C68.9623 34.5304 69.4402 34.5836 69.9089 34.6877ZM68.7937 49.4848C69.7707 48.5773 70.4399 47.2269 70.8012 45.4337V45.4419C70.9315 44.7826 70.9959 44.1112 70.9933 43.4382C70.986 42.5849 70.8291 41.74 70.5302 40.9452C70.1443 39.901 69.6304 39.3124 68.9884 39.1793C68.0378 38.9643 67.1239 39.5256 66.2469 40.8632C65.5812 41.8393 65.109 42.9432 64.8577 44.1106C64.7276 44.7708 64.6632 45.4432 64.6657 46.1171C64.6739 46.9677 64.8308 47.8096 65.1287 48.6019C65.5146 49.6388 66.0294 50.2274 66.6731 50.3678C67.3169 50.5081 68.0237 50.2138 68.7937 49.4848ZM57.9079 37.8559C57.0291 36.2008 55.4854 35.0392 53.6976 34.6877C53.2279 34.5837 52.749 34.5306 52.2687 34.5291C49.7443 34.5291 47.6856 35.8959 46.0927 38.6295C44.7295 40.9454 44.0201 43.6127 44.0454 46.3272C44.0454 48.4411 44.4699 50.2452 45.319 51.7396C46.1976 53.3949 47.7414 54.5566 49.5294 54.9078C49.999 55.0126 50.4779 55.0667 50.9582 55.0691C53.5055 55.0691 55.5642 53.7023 57.1343 50.9687C58.4922 48.6355 59.2001 45.9565 59.1789 43.23C59.1789 41.1161 58.7544 39.3247 57.9053 37.8559H57.9079ZM54.5903 45.4337C54.2307 47.2269 53.5614 48.5773 52.5825 49.4848C51.8115 50.2065 51.101 50.5017 50.4589 50.3678C49.8169 50.2338 49.3011 49.6461 48.9169 48.6019C48.6181 47.8097 48.4603 46.9678 48.4511 46.1171C48.4495 45.4431 48.5148 44.7707 48.6459 44.1106C48.8971 42.9432 49.3694 41.8393 50.0353 40.8632C50.9124 39.5256 51.8264 38.9643 52.7773 39.1793C53.4193 39.3124 53.9333 39.901 54.3193 40.9452C54.617 41.7404 54.7739 42.585 54.7824 43.4382C54.785 44.1112 54.7207 44.7826 54.5903 45.4419V45.4337Z",fill:"white"}))},it=(n(378),function(e){var t=e.onInstall,n=e.onDismiss;Object(y.useEffect)((function(){var e=document.getElementsByClassName("woocommerce-layout")[0];return"android"===rt()&&e&&e.classList.add("woocommerce-layout__show-app-banner"),function(){e&&e.classList.remove("woocommerce-layout__show-app-banner")}}),[]);var r=Object(y.useState)(!1),o=Se()(r,2),i=o[0],a=o[1];return"android"!==rt()||i?null:Object(y.createElement)("div",{className:"woocommerce-mobile-app-banner"},Object(y.createElement)($e.a,{icon:"no-alt","data-testid":"dismiss-btn",onClick:function(){n(),a(!0),Object(X.recordEvent)("wcadmin_mobile_android_banner_click",{action:"dismiss"})}}),Object(y.createElement)(ot,null),Object(y.createElement)("div",{className:"woocommerce-mobile-app-banner__description"},Object(y.createElement)("p",{className:"woocommerce-mobile-app-banner__description__text"},Object(ee.__)("Run your store from anywhere","woocommerce-admin")),Object(y.createElement)("p",{className:"woocommerce-mobile-app-banner__description__text"},Object(ee.__)("Download the WooCommerce app","woocommerce-admin"))),Object(y.createElement)(ge.a,{href:"https://play.google.com/store/apps/details?id=com.woocommerce.android",isSecondary:!0,onClick:function(){t(),a(!0),Object(X.recordEvent)("wcadmin_mobile_android_banner_click",{action:"install"})}},Object(ee.__)("Install","woocommerce-admin")))}),at=n(196),ct=function(e){var t=e.sections,n=e.isEmbedded,r=void 0!==n&&n,o=e.query,i=Object(y.useRef)(null),c=Object(Y.g)("siteTitle",""),u=t.slice(-1)[0],s=Object(at.a)(),l=Object(Z.useUserPreferences)(),f=l.updateUserPreferences,d="yes"===a()(l,["updateUserPreferences"]).android_app_banner_dismissed,p=pe()("woocommerce-layout__header",{"is-scrolled":s});Object(y.useEffect)((function(){if(!r){var e=t.map((function(e){return Array.isArray(e)?e[1]:e})).reverse().join(" ‹ "),n=Object(me.decodeEntities)(Object(ee.sprintf)(Object(ee.__)("%1$s ‹ %2$s — WooCommerce","woocommerce-admin"),e,c));document.title!==n&&(document.title=n)}}),[r,t,c]);var m=function(){f({android_app_banner_dismissed:"yes"})};return Object(y.createElement)("div",{className:p,ref:i},!d&&Object(y.createElement)(it,{onDismiss:m,onInstall:m}),Object(y.createElement)(he.a,{className:"woocommerce-layout__header-heading",as:"h1",variant:"subtitle.small"},Object(me.decodeEntities)(u)),window.wcAdminFeatures["activity-panels"]&&Object(y.createElement)(nt,{isEmbedded:r,query:o}))};function ut(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var o=g()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return b()(this,n)}}var st=function(e){m()(n,e);var t=ut(n);function n(){return l()(this,n),t.apply(this,arguments)}return d()(n,[{key:"render",value:function(){return Object(y.createElement)("div",{id:"woocommerce-layout__notice-list",className:"woocommerce-layout__notice-list"})}}]),n}(y.Component),lt=n(14),ft=n.n(lt),dt=n(75),pt=n.n(dt),mt=n(238),ht=n(572),bt=n(340);var vt=function(e){var t=e.notices,n=e.className,r=e.children,i=e.onRemove,a=void 0===i?$.noop:i,c=e.onRemove2,u=void 0===c?$.noop:c,s=Object(ht.a)(),l=Object(y.useState)((function(){return new WeakMap})),f=Se()(l,1)[0],d=Object(mt.useTransition)(t,(function(e){return e.id}),{from:{opacity:0,height:0},enter:function(e){return function(){var t=pt()(ft.a.mark((function t(n){return ft.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n({opacity:1,height:f.get(e).offsetHeight});case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()},leave:function(){return function(){var e=pt()(ft.a.mark((function e(t){return ft.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t({opacity:0});case 2:return e.next=4,t({height:0});case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()},immediate:s});n=pe()("components-snackbar-list",n);var p=function(e){return function(){a(e.id),u(e.id)}};return Object(y.createElement)("div",{className:n},r,d.map((function(e){var t=e.item,n=e.key,r=e.props;return Object(y.createElement)(mt.animated.div,{key:n,style:r},Object(y.createElement)("div",{className:"components-snackbar-list__notice-container",ref:function(e){return e&&f.set(t,e)}},Object(y.createElement)(bt.a,o()({},Object($.omit)(t,["content"]),{onRemove:p(t)}),t.content)))})))};n(379);function gt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var o=g()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return b()(this,n)}}var yt=function(e){m()(n,e);var t=gt(n);function n(){return l()(this,n),t.apply(this,arguments)}return d()(n,[{key:"render",value:function(){var e=this.props,t=e.className,n=e.notices,r=e.onRemove,o=e.onRemove2,i=pe()("woocommerce-transient-notices","components-notices__snackbar",t);return Object(y.createElement)(vt,{notices:n,className:i,onRemove:r,onRemove2:o})}}]),n}(y.Component);yt.propTypes={className:x.a.string,notices:x.a.array};var Ot=Object(O.a)(Object(w.withSelect)((function(e){var t=e("core/notices").getNotices(),n=e("core/notices2").getNotices();return{notices:t.concat(n)}})),Object(w.withDispatch)((function(e){return{onRemove:e("core/notices").removeNotice,onRemove2:e("core/notices2").removeNotice}})))(yt),wt=n(197);function jt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function kt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jt(Object(n),!0).forEach((function(t){u()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Et(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_t(Object(n),!0).forEach((function(t){u()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_t(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function xt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var o=g()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return b()(this,n)}}Object(wt.registerPlugin)("wc-admin-navigation",{render:function(){if(!Object(ne.f)(window.location.href))return null;var e=Object(te.a)().filter((function(e){return e.navArgs})),t=le().filter((function(e){return e.navArgs})).map((function(e){return"/analytics/settings"===e.path?kt(kt({},e),{},{breadcrumbs:[Object(ee.__)("Analytics","woocommerce-admin")]}):e})),n=Object(K.getPersistedQuery)({});return Object(y.createElement)(y.Fragment,null,t.map((function(e){return Object(y.createElement)(K.WooNavigationItem,{item:e.navArgs.id,key:e.navArgs.id},Object(y.createElement)(Q.Link,{className:"components-button",href:Object(K.getNewPath)(n,e.path,{}),type:"wc-admin"},e.breadcrumbs[e.breadcrumbs.length-1]))})),e.map((function(e){return Object(y.createElement)(K.WooNavigationItem,{item:e.navArgs.id,key:e.navArgs.id},Object(y.createElement)(Q.Link,{className:"components-button",href:Object(K.getNewPath)(n,"/analytics/".concat(e.report),{}),type:"wc-admin"},e.title))})))}});var Ct=Object(y.lazy)((function(){return Promise.all([n.e(2),n.e(3),n.e(48)]).then(n.bind(null,673))})),St=Object(y.lazy)((function(){return n.e(52).then(n.bind(null,606))})),Pt=function(e){m()(n,e);var t=xt(n);function n(){return l()(this,n),t.apply(this,arguments)}return d()(n,[{key:"render",value:function(){var e=this.props.children;return Object(y.createElement)("div",{className:"woocommerce-layout__primary",id:"woocommerce-layout__primary"},window.wcAdminFeatures["store-alerts"]&&Object(y.createElement)(y.Suspense,{fallback:Object(y.createElement)(Q.Spinner,null)},Object(y.createElement)(Ct,null)),Object(y.createElement)(st,null),e)}}]),n}(y.Component),At=function(e){m()(n,e);var t=xt(n);function n(){return l()(this,n),t.apply(this,arguments)}return d()(n,[{key:"componentDidMount",value:function(){this.recordPageViewTrack()}},{key:"componentDidUpdate",value:function(e){var t=Object($.get)(e,"location.pathname"),n=Object($.get)(this.props,"location.pathname");t&&n&&t!==n&&this.recordPageViewTrack()}},{key:"recordPageViewTrack",value:function(){var e=this.props,t=e.activePlugins,n=e.installedPlugins,r=e.isEmbedded,o=e.isJetpackConnected,i={has_navigation:!!window.wcNavigation};if(r){var a=document.location.pathname+document.location.search;Object(X.recordPageView)(a,Et({is_embedded:!0},i))}else{var c=Object($.get)(this.props,"location.pathname");if(c){var u=c.substring(1).replace(/\//g,"_");0===u.length&&(u="home_screen"),Object(X.recordPageView)(u,Et({jetpack_installed:n.includes("jetpack"),jetpack_active:t.includes("jetpack"),jetpack_connected:o},i))}}}},{key:"getQuery",value:function(e){if(!e)return{};var t=e.substring(1);return Object(G.parse)(t)}},{key:"isWCPaySettingsPage",value:function(){var e=Object(K.getQuery)(),t=e.page,n=e.section,r=e.tab;return"wc-settings"===t&&"checkout"===r&&"woocommerce_payments"===n}},{key:"render",value:function(){var e=this.props,t=e.isEmbedded,n=a()(e,["isEmbedded"]),r=this.props,i=r.location,c=r.page.breadcrumbs,u=this.getQuery(i&&i.search);return Object(y.createElement)("div",{className:"woocommerce-layout"},Object(y.createElement)(ct,{sections:Object($.isFunction)(c)?c(this.props):c,isEmbedded:t,query:u}),Object(y.createElement)(Ot,null),!t&&Object(y.createElement)(Pt,null,Object(y.createElement)("div",{className:"woocommerce-layout__main"},Object(y.createElement)(fe,o()({},n,{query:u})))),t&&this.isWCPaySettingsPage()&&Object(y.createElement)(y.Suspense,{fallback:null},Object(y.createElement)(St,null)))}}]),n}(y.Component);At.propTypes={isEmbedded:x.a.bool,page:x.a.shape({container:x.a.oneOfType([x.a.func,x.a.object]),path:x.a.string,breadcrumbs:x.a.oneOfType([x.a.func,x.a.arrayOf(x.a.oneOfType([x.a.arrayOf(x.a.string),x.a.string]))]).isRequired,wpOpenMenu:x.a.string}).isRequired};var Nt=Object(O.a)(Object(Z.withPluginsHydration)(Et(Et({},window.wcSettings.plugins||{}),{},{jetpackStatus:window.wcSettings.dataEndpoints&&window.wcSettings.dataEndpoints.jetpackStatus||!1})),Object(w.withSelect)((function(e,t){if(!t.isEmbedded){var n=e(Z.PLUGINS_STORE_NAME),r=n.getActivePlugins,o=n.getInstalledPlugins,i=n.isJetpackConnected;return{activePlugins:r(),isJetpackConnected:i(),installedPlugins:o()}}})))(At),Rt=function(e){m()(n,e);var t=xt(n);function n(){return l()(this,n),t.apply(this,arguments)}return d()(n,[{key:"render",value:function(){return Object(y.createElement)(L,{history:Object(K.getHistory)()},Object(y.createElement)(W,null,le().map((function(e){return Object(y.createElement)(z,{key:e.path,path:e.path,exact:!0,render:function(t){return Object(y.createElement)(Nt,o()({page:e},t))}})}))))}}]),n}(y.Component),Tt=Object(O.a)(window.wcSettings.preloadOptions?Object(Z.withOptionsHydration)(Et({},window.wcSettings.preloadOptions)):$.identity)(Rt),Dt=Object(O.a)(window.wcSettings.preloadOptions?Object(Z.withOptionsHydration)(Et({},window.wcSettings.preloadOptions)):$.identity)((function(){return Object(y.createElement)(Nt,{page:{breadcrumbs:Object(Y.g)("embedBreadcrumbs",[])},isEmbedded:!0})}))},function(e,t){!function(){e.exports=this.wc.number}()},,,,,,,,function(e,t,n){"use strict";var r=n(91),o=n.n(r);t.a=o.a},function(e,t,n){"use strict";var r="function"==typeof Symbol&&Symbol.for,o=r?Symbol.for("react.element"):60103,i=r?Symbol.for("react.portal"):60106,a=r?Symbol.for("react.fragment"):60107,c=r?Symbol.for("react.strict_mode"):60108,u=r?Symbol.for("react.profiler"):60114,s=r?Symbol.for("react.provider"):60109,l=r?Symbol.for("react.context"):60110,f=r?Symbol.for("react.async_mode"):60111,d=r?Symbol.for("react.concurrent_mode"):60111,p=r?Symbol.for("react.forward_ref"):60112,m=r?Symbol.for("react.suspense"):60113,h=r?Symbol.for("react.suspense_list"):60120,b=r?Symbol.for("react.memo"):60115,v=r?Symbol.for("react.lazy"):60116,g=r?Symbol.for("react.block"):60121,y=r?Symbol.for("react.fundamental"):60117,O=r?Symbol.for("react.responder"):60118,w=r?Symbol.for("react.scope"):60119;function j(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case o:switch(e=e.type){case f:case d:case a:case u:case c:case m:return e;default:switch(e=e&&e.$$typeof){case l:case p:case v:case b:case s:return e;default:return t}}case i:return t}}}function k(e){return j(e)===d}t.AsyncMode=f,t.ConcurrentMode=d,t.ContextConsumer=l,t.ContextProvider=s,t.Element=o,t.ForwardRef=p,t.Fragment=a,t.Lazy=v,t.Memo=b,t.Portal=i,t.Profiler=u,t.StrictMode=c,t.Suspense=m,t.isAsyncMode=function(e){return k(e)||j(e)===f},t.isConcurrentMode=k,t.isContextConsumer=function(e){return j(e)===l},t.isContextProvider=function(e){return j(e)===s},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===o},t.isForwardRef=function(e){return j(e)===p},t.isFragment=function(e){return j(e)===a},t.isLazy=function(e){return j(e)===v},t.isMemo=function(e){return j(e)===b},t.isPortal=function(e){return j(e)===i},t.isProfiler=function(e){return j(e)===u},t.isStrictMode=function(e){return j(e)===c},t.isSuspense=function(e){return j(e)===m},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===d||e===u||e===c||e===m||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===b||e.$$typeof===s||e.$$typeof===l||e.$$typeof===p||e.$$typeof===y||e.$$typeof===O||e.$$typeof===w||e.$$typeof===g)},t.typeOf=j},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";function r(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(t,"__esModule",{value:!0});var o=r(n(36)),i=r(n(150)),a=n(8),c=r(a),u=r(n(130)),s=r(n(13)),l={arr:Array.isArray,obj:function(e){return"[object Object]"===Object.prototype.toString.call(e)},fun:function(e){return"function"==typeof e},str:function(e){return"string"==typeof e},num:function(e){return"number"==typeof e},und:function(e){return void 0===e},nul:function(e){return null===e},set:function(e){return e instanceof Set},map:function(e){return e instanceof Map},equ:function(e,t){if(typeof e!=typeof t)return!1;if(l.str(e)||l.num(e))return e===t;if(l.obj(e)&&l.obj(t)&&Object.keys(e).length+Object.keys(t).length===0)return!0;var n;for(n in e)if(!(n in t))return!1;for(n in t)if(e[n]!==t[n])return!1;return!l.und(n)||e===t}};function f(){var e=a.useState(!1)[1];return a.useCallback((function(){return e((function(e){return!e}))}),[])}function d(e,t){return l.und(e)||l.nul(e)?t:e}function p(e){return l.und(e)?[]:l.arr(e)?e:[e]}function m(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return l.fun(e)?e.apply(void 0,n):e}function h(e){var t=function(e){return e.to,e.from,e.config,e.onStart,e.onRest,e.onFrame,e.children,e.reset,e.reverse,e.force,e.immediate,e.delay,e.attach,e.destroyed,e.interpolateTo,e.ref,e.lazy,i(e,["to","from","config","onStart","onRest","onFrame","children","reset","reverse","force","immediate","delay","attach","destroyed","interpolateTo","ref","lazy"])}(e);if(l.und(t))return o({to:t},e);var n=Object.keys(e).reduce((function(n,r){var i;return l.und(t[r])?o({},n,((i={})[r]=e[r],i)):n}),{});return o({to:t},n)}var b,v,g=function(){function e(){this.payload=void 0,this.children=[]}var t=e.prototype;return t.getAnimatedValue=function(){return this.getValue()},t.getPayload=function(){return this.payload||this},t.attach=function(){},t.detach=function(){},t.getChildren=function(){return this.children},t.addChild=function(e){0===this.children.length&&this.attach(),this.children.push(e)},t.removeChild=function(e){var t=this.children.indexOf(e);this.children.splice(t,1),0===this.children.length&&this.detach()},e}(),y=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).payload=[],t.attach=function(){return t.payload.forEach((function(e){return e instanceof g&&e.addChild(s(t))}))},t.detach=function(){return t.payload.forEach((function(e){return e instanceof g&&e.removeChild(s(t))}))},t}return u(t,e),t}(g),O=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).payload={},t.attach=function(){return Object.values(t.payload).forEach((function(e){return e instanceof g&&e.addChild(s(t))}))},t.detach=function(){return Object.values(t.payload).forEach((function(e){return e instanceof g&&e.removeChild(s(t))}))},t}u(t,e);var n=t.prototype;return n.getValue=function(e){void 0===e&&(e=!1);var t={};for(var n in this.payload){var r=this.payload[n];(!e||r instanceof g)&&(t[n]=r instanceof g?r[e?"getAnimatedValue":"getValue"]():r)}return t},n.getAnimatedValue=function(){return this.getValue(!0)},t}(g);function w(e,t){b={fn:e,transform:t}}function j(e){v=e}var k,_=function(e){return"undefined"!=typeof window?window.requestAnimationFrame(e):-1},E=function(e){"undefined"!=typeof window&&window.cancelAnimationFrame(e)};function x(e){k=e}var C,S=function(){return Date.now()};function P(e){C=e}var A,N,R=function(e){return e.current};function T(e){A=e}var D=Object.freeze({get applyAnimatedValues(){return b},injectApplyAnimatedValues:w,get colorNames(){return v},injectColorNames:j,get requestFrame(){return _},get cancelFrame(){return E},injectFrame:function(e,t){_=e,E=t},get interpolation(){return k},injectStringInterpolator:x,get now(){return S},injectNow:function(e){S=e},get defaultElement(){return C},injectDefaultElement:P,get animatedApi(){return R},injectAnimatedApi:function(e){R=e},get createAnimatedStyle(){return A},injectCreateAnimatedStyle:T,get manualFrameloop(){return N},injectManualFrameloop:function(e){N=e}}),L=function(e){function t(t,n){var r;return(r=e.call(this)||this).update=void 0,r.payload=t.style?o({},t,{style:A(t.style)}):t,r.update=n,r.attach(),r}return u(t,e),t}(O),M=!1,F=new Set,I=function e(){if(!M)return!1;var t=S(),n=F,r=Array.isArray(n),o=0;for(n=r?n:n[Symbol.iterator]();;){var i;if(r){if(o>=n.length)break;i=n[o++]}else{if((o=n.next()).done)break;i=o.value}for(var a=i,c=!1,u=0;u<a.configs.length;u++){for(var s=a.configs[u],l=void 0,f=void 0,d=0;d<s.animatedValues.length;d++){var p=s.animatedValues[d];if(!p.done){var m=s.fromValues[d],h=s.toValues[d],b=p.lastPosition,v=h instanceof g,y=Array.isArray(s.initialVelocity)?s.initialVelocity[d]:s.initialVelocity;if(v&&(h=h.getValue()),s.immediate)p.setValue(h),p.done=!0;else if("string"!=typeof m&&"string"!=typeof h){if(void 0!==s.duration)b=m+s.easing((t-p.startTime)/s.duration)*(h-m),l=t>=p.startTime+s.duration;else if(s.decay)b=m+y/(1-.998)*(1-Math.exp(-(1-.998)*(t-p.startTime))),(l=Math.abs(p.lastPosition-b)<.1)&&(h=b);else{f=void 0!==p.lastTime?p.lastTime:t,y=void 0!==p.lastVelocity?p.lastVelocity:s.initialVelocity,t>f+64&&(f=t);for(var O=Math.floor(t-f),w=0;w<O;++w){b+=1*(y+=1*((-s.tension*(b-h)+-s.friction*y)/s.mass)/1e3)/1e3}var j=!(!s.clamp||0===s.tension)&&(m<h?b>h:b<h),k=Math.abs(y)<=s.precision,E=0===s.tension||Math.abs(h-b)<=s.precision;l=j||k&&E,p.lastVelocity=y,p.lastTime=t}v&&!s.toValues[d].done&&(l=!1),l?(p.value!==h&&(b=h),p.done=!0):c=!0,p.setValue(b),p.lastPosition=b}else p.setValue(h),p.done=!0}}a.props.onFrame&&(a.values[s.name]=s.interpolation.getValue())}a.props.onFrame&&a.props.onFrame(a.values),c||(F.delete(a),a.stop(!0))}return F.size?N?N():_(e):M=!1,M};function z(e,t,n){if("function"==typeof e)return e;if(Array.isArray(e))return z({range:e,output:t,extrapolate:n});if(k&&"string"==typeof e.output[0])return k(e);var r=e,o=r.output,i=r.range||[0,1],a=r.extrapolateLeft||r.extrapolate||"extend",c=r.extrapolateRight||r.extrapolate||"extend",u=r.easing||function(e){return e};return function(e){var t=function(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}(e,i);return function(e,t,n,r,o,i,a,c,u){var s=u?u(e):e;if(s<t){if("identity"===a)return s;"clamp"===a&&(s=t)}if(s>n){if("identity"===c)return s;"clamp"===c&&(s=n)}if(r===o)return r;if(t===n)return e<=t?r:o;t===-1/0?s=-s:n===1/0?s-=t:s=(s-t)/(n-t);s=i(s),r===-1/0?s=-s:o===1/0?s+=r:s=s*(o-r)+r;return s}(e,i[t],i[t+1],o[t],o[t+1],u,a,c,r.map)}}var H=function(e){function t(n,r,o,i){var a;return(a=e.call(this)||this).calc=void 0,a.payload=n instanceof y&&!(n instanceof t)?n.getPayload():Array.isArray(n)?n:[n],a.calc=z(r,o,i),a}u(t,e);var n=t.prototype;return n.getValue=function(){return this.calc.apply(this,this.payload.map((function(e){return e.getValue()})))},n.updateConfig=function(e,t,n){this.calc=z(e,t,n)},n.interpolate=function(e,n,r){return new t(this,e,n,r)},t}(y);var B=function(e){function t(t){var n;return(n=e.call(this)||this).animatedStyles=new Set,n.value=void 0,n.startPosition=void 0,n.lastPosition=void 0,n.lastVelocity=void 0,n.startTime=void 0,n.lastTime=void 0,n.done=!1,n.setValue=function(e,t){void 0===t&&(t=!0),n.value=e,t&&n.flush()},n.value=t,n.startPosition=t,n.lastPosition=t,n}u(t,e);var n=t.prototype;return n.flush=function(){0===this.animatedStyles.size&&function e(t,n){"update"in t?n.add(t):t.getChildren().forEach((function(t){return e(t,n)}))}(this,this.animatedStyles),this.animatedStyles.forEach((function(e){return e.update()}))},n.clearStyles=function(){this.animatedStyles.clear()},n.getValue=function(){return this.value},n.interpolate=function(e,t,n){return new H(this,e,t,n)},t}(g),U=function(e){function t(t){var n;return(n=e.call(this)||this).payload=t.map((function(e){return new B(e)})),n}u(t,e);var n=t.prototype;return n.setValue=function(e,t){var n=this;void 0===t&&(t=!0),Array.isArray(e)?e.length===this.payload.length&&e.forEach((function(e,r){return n.payload[r].setValue(e,t)})):this.payload.forEach((function(n){return n.setValue(e,t)}))},n.getValue=function(){return this.payload.map((function(e){return e.getValue()}))},n.interpolate=function(e,t){return new H(this,e,t)},t}(y),V=0,q=function(){function e(){var e=this;this.id=void 0,this.idle=!0,this.hasChanged=!1,this.guid=0,this.local=0,this.props={},this.merged={},this.animations={},this.interpolations={},this.values={},this.configs=[],this.listeners=[],this.queue=[],this.localQueue=void 0,this.getValues=function(){return e.interpolations},this.id=V++}var t=e.prototype;return t.update=function(e){if(!e)return this;var t=h(e),n=t.delay,r=void 0===n?0:n,a=t.to,c=i(t,["delay","to"]);if(l.arr(a)||l.fun(a))this.queue.push(o({},c,{delay:r,to:a}));else if(a){var u={};Object.entries(a).forEach((function(e){var t,n=e[0],i=e[1],a=o({to:(t={},t[n]=i,t),delay:m(r,n)},c),s=u[a.delay]&&u[a.delay].to;u[a.delay]=o({},u[a.delay],a,{to:o({},s,a.to)})})),this.queue=Object.values(u)}return this.queue=this.queue.sort((function(e,t){return e.delay-t.delay})),this.diff(c),this},t.start=function(e){var t,n=this;if(this.queue.length){this.idle=!1,this.localQueue&&this.localQueue.forEach((function(e){var t=e.from,r=void 0===t?{}:t,i=e.to,a=void 0===i?{}:i;l.obj(r)&&(n.merged=o({},r,n.merged)),l.obj(a)&&(n.merged=o({},n.merged,a))}));var r=this.local=++this.guid,a=this.localQueue=this.queue;this.queue=[],a.forEach((function(t,o){var c=t.delay,u=i(t,["delay"]),s=function(t){o===a.length-1&&r===n.guid&&t&&(n.idle=!0,n.props.onRest&&n.props.onRest(n.merged)),e&&e()},f=l.arr(u.to)||l.fun(u.to);c?setTimeout((function(){r===n.guid&&(f?n.runAsync(u,s):n.diff(u).start(s))}),c):f?n.runAsync(u,s):n.diff(u).start(s)}))}else l.fun(e)&&this.listeners.push(e),this.props.onStart&&this.props.onStart(),t=this,F.has(t)||F.add(t),M||(M=!0,_(N||I));return this},t.stop=function(e){return this.listeners.forEach((function(t){return t(e)})),this.listeners=[],this},t.pause=function(e){var t;return this.stop(!0),e&&(t=this,F.has(t)&&F.delete(t)),this},t.runAsync=function(e,t){var n=this,r=(e.delay,i(e,["delay"])),a=this.local,c=Promise.resolve(void 0);if(l.arr(r.to))for(var u=function(e){var t=e,i=o({},r,h(r.to[t]));l.arr(i.config)&&(i.config=i.config[t]),c=c.then((function(){if(a===n.guid)return new Promise((function(e){return n.diff(i).start(e)}))}))},s=0;s<r.to.length;s++)u(s);else if(l.fun(r.to)){var f,d=0;c=c.then((function(){return r.to((function(e){var t=o({},r,h(e));if(l.arr(t.config)&&(t.config=t.config[d]),d++,a===n.guid)return f=new Promise((function(e){return n.diff(t).start(e)}))}),(function(e){return void 0===e&&(e=!0),n.stop(e)})).then((function(){return f}))}))}c.then(t)},t.diff=function(e){var t=this;this.props=o({},this.props,e);var n=this.props,r=n.from,i=void 0===r?{}:r,a=n.to,c=void 0===a?{}:a,u=n.config,s=void 0===u?{}:u,f=n.reverse,h=n.attach,b=n.reset,g=n.immediate;if(f){var y=[c,i];i=y[0],c=y[1]}this.merged=o({},i,this.merged,c),this.hasChanged=!1;var O=h&&h(this);if(this.animations=Object.entries(this.merged).reduce((function(e,n){var r=n[0],a=n[1],c=e[r]||{},u=l.num(a),f=l.str(a)&&!a.startsWith("#")&&!/\d/.test(a)&&!v[a],h=l.arr(a),y=!u&&!h&&!f,w=l.und(i[r])?a:i[r],j=u||h||f?a:1,_=m(s,r);O&&(j=O.animations[r].parent);var E,x=c.parent,C=c.interpolation,P=p(O?j.getPayload():j),A=a;y&&(A=k({range:[0,1],output:[a,a]})(1));var N,R=C&&C.getValue(),T=!l.und(x)&&c.animatedValues.some((function(e){return!e.done})),D=!l.equ(A,R),L=!l.equ(A,c.previous),M=!l.equ(_,c.config);if(b||L&&D||M){var F;if(u||f)x=C=c.parent||new B(w);else if(h)x=C=c.parent||new U(w);else if(y){var I=c.interpolation&&c.interpolation.calc(c.parent.value);I=void 0===I||b?w:I,c.parent?(x=c.parent).setValue(0,!1):x=new B(0);var z={output:[I,a]};c.interpolation?(C=c.interpolation,c.interpolation.updateConfig(z)):C=x.interpolate(z)}return P=p(O?j.getPayload():j),E=p(x.getPayload()),b&&!y&&x.setValue(w,!1),t.hasChanged=!0,E.forEach((function(e){e.startPosition=e.value,e.lastPosition=e.value,e.lastVelocity=T?e.lastVelocity:void 0,e.lastTime=T?e.lastTime:void 0,e.startTime=S(),e.done=!1,e.animatedStyles.clear()})),m(g,r)&&x.setValue(y?j:a,!1),o({},e,((F={})[r]=o({},c,{name:r,parent:x,interpolation:C,animatedValues:E,toValues:P,previous:A,config:_,fromValues:p(x.getValue()),immediate:m(g,r),initialVelocity:d(_.velocity,0),clamp:d(_.clamp,!1),precision:d(_.precision,.01),tension:d(_.tension,170),friction:d(_.friction,26),mass:d(_.mass,1),duration:_.duration,easing:d(_.easing,(function(e){return e})),decay:_.decay}),F))}return D?e:(y&&(x.setValue(1,!1),C.updateConfig({output:[A,A]})),x.done=!0,t.hasChanged=!0,o({},e,((N={})[r]=o({},e[r],{previous:A}),N)))}),this.animations),this.hasChanged)for(var w in this.configs=Object.values(this.animations),this.values={},this.interpolations={},this.animations)this.interpolations[w]=this.animations[w].interpolation,this.values[w]=this.animations[w].interpolation.getValue();return this},t.destroy=function(){this.stop(),this.props={},this.merged={},this.animations={},this.interpolations={},this.values={},this.configs=[],this.local=0},e}(),W=function(e,t){var n=a.useRef(!1),r=a.useRef(),o=l.fun(t),i=a.useMemo((function(){var n;return r.current&&(r.current.map((function(e){return e.destroy()})),r.current=void 0),[new Array(e).fill().map((function(e,r){var i=new q,a=o?m(t,r,i):t[r];return 0===r&&(n=a.ref),i.update(a),n||i.start(),i})),n]}),[e]),c=i[0],u=i[1];r.current=c;a.useImperativeHandle(u,(function(){return{start:function(){return Promise.all(r.current.map((function(e){return new Promise((function(t){return e.start(t)}))})))},stop:function(e){return r.current.forEach((function(t){return t.stop(e)}))},get controllers(){return r.current}}}));var s=a.useMemo((function(){return function(e){return r.current.map((function(t,n){t.update(o?m(e,n,t):e[n]),u||t.start()}))}}),[e]);a.useEffect((function(){n.current?o||s(t):u||r.current.forEach((function(e){return e.start()}))})),a.useEffect((function(){return n.current=!0,function(){return r.current.forEach((function(e){return e.destroy()}))}}),[]);var f=r.current.map((function(e){return e.getValues()}));return o?[f,s,function(e){return r.current.forEach((function(t){return t.pause(e)}))}]:f},$=0,G=function(e,t){return("function"==typeof t?e.map(t):p(t)).map(String)},Q=function(e){var t=e.items,n=e.keys,r=void 0===n?function(e){return e}:n,a=i(e,["items","keys"]);return t=p(void 0!==t?t:null),o({items:t,keys:G(t,r)},a)};function K(e,t){var n=function(){if(o){if(i>=r.length)return"break";a=r[i++]}else{if((i=r.next()).done)return"break";a=i.value}var n=a.key,c=function(e){return e.key!==n};(l.und(t)||t===n)&&(e.current.instances.delete(n),e.current.transitions=e.current.transitions.filter(c),e.current.deleted=e.current.deleted.filter(c))},r=e.current.deleted,o=Array.isArray(r),i=0;for(r=o?r:r[Symbol.iterator]();;){var a;if("break"===n())break}e.current.forceUpdate()}var Y=function(e){function t(t){var n;return void 0===t&&(t={}),n=e.call(this)||this,!t.transform||t.transform instanceof g||(t=b.transform(t)),n.payload=t,n}return u(t,e),t}(O),Z={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},X="[-+]?\\d*\\.?\\d+";function J(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"\\(\\s*("+t.join(")\\s*,\\s*(")+")\\s*\\)"}var ee=new RegExp("rgb"+J(X,X,X)),te=new RegExp("rgba"+J(X,X,X,X)),ne=new RegExp("hsl"+J(X,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%")),re=new RegExp("hsla"+J(X,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%",X)),oe=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,ie=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,ae=/^#([0-9a-fA-F]{6})$/,ce=/^#([0-9a-fA-F]{8})$/;function ue(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function se(e,t,n){var r=n<.5?n*(1+t):n+t-n*t,o=2*n-r,i=ue(o,r,e+1/3),a=ue(o,r,e),c=ue(o,r,e-1/3);return Math.round(255*i)<<24|Math.round(255*a)<<16|Math.round(255*c)<<8}function le(e){var t=parseInt(e,10);return t<0?0:t>255?255:t}function fe(e){return(parseFloat(e)%360+360)%360/360}function de(e){var t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function pe(e){var t=parseFloat(e);return t<0?0:t>100?1:t/100}function me(e){var t,n,r="number"==typeof(t=e)?t>>>0===t&&t>=0&&t<=4294967295?t:null:(n=ae.exec(t))?parseInt(n[1]+"ff",16)>>>0:Z.hasOwnProperty(t)?Z[t]:(n=ee.exec(t))?(le(n[1])<<24|le(n[2])<<16|le(n[3])<<8|255)>>>0:(n=te.exec(t))?(le(n[1])<<24|le(n[2])<<16|le(n[3])<<8|de(n[4]))>>>0:(n=oe.exec(t))?parseInt(n[1]+n[1]+n[2]+n[2]+n[3]+n[3]+"ff",16)>>>0:(n=ce.exec(t))?parseInt(n[1],16)>>>0:(n=ie.exec(t))?parseInt(n[1]+n[1]+n[2]+n[2]+n[3]+n[3]+n[4]+n[4],16)>>>0:(n=ne.exec(t))?(255|se(fe(n[1]),pe(n[2]),pe(n[3])))>>>0:(n=re.exec(t))?(se(fe(n[1]),pe(n[2]),pe(n[3]))|de(n[4]))>>>0:null;return null===r?e:"rgba("+((4278190080&(r=r||0))>>>24)+", "+((16711680&r)>>>16)+", "+((65280&r)>>>8)+", "+(255&r)/255+")"}var he=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,be=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,ve=new RegExp("("+Object.keys(Z).join("|")+")","g"),ge={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},ye=["Webkit","Ms","Moz","O"];function Oe(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||ge.hasOwnProperty(e)&&ge[e]?(""+t).trim():t+"px"}ge=Object.keys(ge).reduce((function(e,t){return ye.forEach((function(n){return e[function(e,t){return e+t.charAt(0).toUpperCase()+t.substring(1)}(n,t)]=e[t]})),e}),ge);var we={};T((function(e){return new Y(e)})),P("div"),x((function(e){var t=e.output.map((function(e){return e.replace(be,me)})).map((function(e){return e.replace(ve,me)})),n=t[0].match(he).map((function(){return[]}));t.forEach((function(e){e.match(he).forEach((function(e,t){return n[t].push(+e)}))}));var r=t[0].match(he).map((function(t,r){return z(o({},e,{output:n[r]}))}));return function(e){var n=0;return t[0].replace(he,(function(){return r[n++](e)})).replace(/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,(function(e,t,n,r,o){return"rgba("+Math.round(t)+", "+Math.round(n)+", "+Math.round(r)+", "+o+")"}))}})),j(Z),w((function(e,t){if(!e.nodeType||void 0===e.setAttribute)return!1;var n=t.style,r=t.children,o=t.scrollTop,a=t.scrollLeft,c=i(t,["style","children","scrollTop","scrollLeft"]),u="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName;for(var s in void 0!==o&&(e.scrollTop=o),void 0!==a&&(e.scrollLeft=a),void 0!==r&&(e.textContent=r),n)if(n.hasOwnProperty(s)){var l=0===s.indexOf("--"),f=Oe(s,n[s],l);"float"===s&&(s="cssFloat"),l?e.style.setProperty(s,f):e.style[s]=f}for(var d in c){var p=u?d:we[d]||(we[d]=d.replace(/([A-Z])/g,(function(e){return"-"+e.toLowerCase()})));void 0!==e.getAttribute(p)&&e.setAttribute(p,c[d])}}),(function(e){return e}));var je,ke,_e=(je=function(e){return a.forwardRef((function(t,n){var r=f(),u=a.useRef(!0),s=a.useRef(null),d=a.useRef(null),p=a.useCallback((function(e){var t=s.current;s.current=new L(e,(function(){var e=!1;d.current&&(e=b.fn(d.current,s.current.getAnimatedValue())),d.current&&!1!==e||r()})),t&&t.detach()}),[]);a.useEffect((function(){return function(){u.current=!1,s.current&&s.current.detach()}}),[]),a.useImperativeHandle(n,(function(){return R(d,u,r)})),p(t);var m,h=s.current.getValue(),v=(h.scrollTop,h.scrollLeft,i(h,["scrollTop","scrollLeft"])),g=(m=e,!l.fun(m)||m.prototype instanceof c.Component?function(e){return d.current=function(e,t){return t&&(l.fun(t)?t(e):l.obj(t)&&(t.current=e)),e}(e,n)}:void 0);return c.createElement(e,o({},v,{ref:g}))}))},void 0===(ke=!1)&&(ke=!0),function(e){return(l.arr(e)?e:Object.keys(e)).reduce((function(e,t){var n=ke?t[0].toLowerCase()+t.substring(1):t;return e[n]=je(n),e}),je)}),Ee=_e(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]);t.apply=_e,t.config={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},t.update=I,t.animated=Ee,t.a=Ee,t.interpolate=function(e,t,n){return e&&new H(e,t,n)},t.Globals=D,t.useSpring=function(e){var t=l.fun(e),n=W(1,t?e:[e]),r=n[0],o=n[1],i=n[2];return t?[r[0],o,i]:r},t.useTrail=function(e,t){var n=a.useRef(!1),r=l.fun(t),i=m(t),c=a.useRef(),u=W(e,(function(e,t){return 0===e&&(c.current=[]),c.current.push(t),o({},i,{config:m(i.config,e),attach:e>0&&function(){return c.current[e-1]}})})),s=u[0],f=u[1],d=u[2],p=a.useMemo((function(){return function(e){return f((function(t,n){e.reverse;var r=e.reverse?t+1:t-1,a=c.current[r];return o({},e,{config:m(e.config||i.config,t),attach:a&&function(){return a}})}))}}),[e,i.reverse]);return a.useEffect((function(){n.current&&!r&&p(t)})),a.useEffect((function(){n.current=!0}),[]),r?[s,p,d]:s},t.useTransition=function(e,t,n){var r=o({items:e,keys:t||function(e){return e}},n),c=Q(r),u=c.lazy,s=void 0!==u&&u,l=(c.unique,c.reset),d=void 0!==l&&l,p=(c.enter,c.leave,c.update,c.onDestroyed),h=(c.keys,c.items,c.onFrame),b=c.onRest,v=c.onStart,g=c.ref,y=i(c,["lazy","unique","reset","enter","leave","update","onDestroyed","keys","items","onFrame","onRest","onStart","ref"]),O=f(),w=a.useRef(!1),j=a.useRef({mounted:!1,first:!0,deleted:[],current:{},transitions:[],prevProps:{},paused:!!r.ref,instances:!w.current&&new Map,forceUpdate:O});return a.useImperativeHandle(r.ref,(function(){return{start:function(){return Promise.all(Array.from(j.current.instances).map((function(e){var t=e[1];return new Promise((function(e){return t.start(e)}))})))},stop:function(e){return Array.from(j.current.instances).forEach((function(t){return t[1].stop(e)}))},get controllers(){return Array.from(j.current.instances).map((function(e){return e[1]}))}}})),j.current=function(e,t){var n=e.first,r=e.prevProps,a=i(e,["first","prevProps"]),c=Q(t),u=c.items,s=c.keys,l=c.initial,f=c.from,d=c.enter,p=c.leave,h=c.update,b=c.trail,v=void 0===b?0:b,g=c.unique,y=c.config,O=c.order,w=void 0===O?["enter","leave","update"]:O,j=Q(r),k=j.keys,_=j.items,E=o({},a.current),x=[].concat(a.deleted),C=Object.keys(E),S=new Set(C),P=new Set(s),A=s.filter((function(e){return!S.has(e)})),N=a.transitions.filter((function(e){return!e.destroyed&&!P.has(e.originalKey)})).map((function(e){return e.originalKey})),R=s.filter((function(e){return S.has(e)})),T=-v;for(;w.length;){switch(w.shift()){case"enter":A.forEach((function(e,t){g&&x.find((function(t){return t.originalKey===e}))&&(x=x.filter((function(t){return t.originalKey!==e})));var r=s.indexOf(e),o=u[r],i=n&&void 0!==l?"initial":"enter";E[e]={slot:i,originalKey:e,key:g?String(e):$++,item:o,trail:T+=v,config:m(y,o,i),from:m(n&&void 0!==l?l||{}:f,o),to:m(d,o)}}));break;case"leave":N.forEach((function(e){var t=k.indexOf(e),n=_[t];x.unshift(o({},E[e],{slot:"leave",destroyed:!0,left:k[Math.max(0,t-1)],right:k[Math.min(k.length,t+1)],trail:T+=v,config:m(y,n,"leave"),to:m(p,n)})),delete E[e]}));break;case"update":R.forEach((function(e){var t=s.indexOf(e),n=u[t];E[e]=o({},E[e],{item:n,slot:"update",trail:T+=v,config:m(y,n,"update"),to:m(h,n)})}))}}var D=s.map((function(e){return E[e]}));return x.forEach((function(e){var t,n=e.left,r=(e.right,i(e,["left","right"]));-1!==(t=D.findIndex((function(e){return e.originalKey===n})))&&(t+=1),t=Math.max(0,t),D=[].concat(D.slice(0,t),[r],D.slice(t))})),o({},a,{changed:A.length||N.length||R.length,first:n&&0===A.length,transitions:D,current:E,deleted:x,prevProps:t})}(j.current,r),j.current.changed&&j.current.transitions.forEach((function(e){var t=e.slot,n=e.from,r=e.to,i=e.config,a=e.trail,c=e.key,u=e.item;j.current.instances.has(c)||j.current.instances.set(c,new q);var l=j.current.instances.get(c),f=o({},y,{to:r,from:n,config:i,ref:g,onRest:function(n){j.current.mounted&&(e.destroyed&&(g||s||K(j,c),p&&p(u)),!Array.from(j.current.instances).some((function(e){return!e[1].idle}))&&(g||s)&&j.current.deleted.length>0&&K(j),b&&b(u,t,n))},onStart:v&&function(){return v(u,t)},onFrame:h&&function(e){return h(u,t,e)},delay:a,reset:d&&"enter"===t});l.update(f),j.current.paused||l.start()})),a.useEffect((function(){return j.current.mounted=w.current=!0,function(){j.current.mounted=w.current=!1,Array.from(j.current.instances).map((function(e){return e[1].destroy()})),j.current.instances.clear()}}),[]),j.current.transitions.map((function(e){var t=e.item,n=e.slot,r=e.key;return{item:t,key:r,state:n,props:j.current.instances.get(r).getValues()}}))},t.useChain=function(e,t,n){void 0===n&&(n=1e3);var r=a.useRef();a.useEffect((function(){l.equ(e,r.current)?e.forEach((function(e){var t=e.current;return t&&t.start()})):t?e.forEach((function(e,r){var i=e.current;if(i){var a=i.controllers;if(a.length){var c=n*t[r];a.forEach((function(e){e.queue=e.queue.map((function(e){return o({},e,{delay:e.delay+c})})),e.start()}))}}})):e.reduce((function(e,t,n){var r=t.current;return e.then((function(){return r.start()}))}),Promise.resolve()),r.current=e}))},t.useSprings=W},function(e,t,n){var r=n(380);e.exports=p,e.exports.parse=i,e.exports.compile=function(e,t){return c(i(e,t),t)},e.exports.tokensToFunction=c,e.exports.tokensToRegExp=d;var o=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function i(e,t){for(var n,r=[],i=0,a=0,c="",l=t&&t.delimiter||"/";null!=(n=o.exec(e));){var f=n[0],d=n[1],p=n.index;if(c+=e.slice(a,p),a=p+f.length,d)c+=d[1];else{var m=e[a],h=n[2],b=n[3],v=n[4],g=n[5],y=n[6],O=n[7];c&&(r.push(c),c="");var w=null!=h&&null!=m&&m!==h,j="+"===y||"*"===y,k="?"===y||"*"===y,_=n[2]||l,E=v||g;r.push({name:b||i++,prefix:h||"",delimiter:_,optional:k,repeat:j,partial:w,asterisk:!!O,pattern:E?s(E):O?".*":"[^"+u(_)+"]+?"})}}return a<e.length&&(c+=e.substr(a)),c&&r.push(c),r}function a(e){return encodeURI(e).replace(/[\/?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function c(e,t){for(var n=new Array(e.length),o=0;o<e.length;o++)"object"==typeof e[o]&&(n[o]=new RegExp("^(?:"+e[o].pattern+")$",f(t)));return function(t,o){for(var i="",c=t||{},u=(o||{}).pretty?a:encodeURIComponent,s=0;s<e.length;s++){var l=e[s];if("string"!=typeof l){var f,d=c[l.name];if(null==d){if(l.optional){l.partial&&(i+=l.prefix);continue}throw new TypeError('Expected "'+l.name+'" to be defined')}if(r(d)){if(!l.repeat)throw new TypeError('Expected "'+l.name+'" to not repeat, but received `'+JSON.stringify(d)+"`");if(0===d.length){if(l.optional)continue;throw new TypeError('Expected "'+l.name+'" to not be empty')}for(var p=0;p<d.length;p++){if(f=u(d[p]),!n[s].test(f))throw new TypeError('Expected all "'+l.name+'" to match "'+l.pattern+'", but received `'+JSON.stringify(f)+"`");i+=(0===p?l.prefix:l.delimiter)+f}}else{if(f=l.asterisk?encodeURI(d).replace(/[?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})):u(d),!n[s].test(f))throw new TypeError('Expected "'+l.name+'" to match "'+l.pattern+'", but received "'+f+'"');i+=l.prefix+f}}else i+=l}return i}}function u(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function s(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function l(e,t){return e.keys=t,e}function f(e){return e&&e.sensitive?"":"i"}function d(e,t,n){r(t)||(n=t||n,t=[]);for(var o=(n=n||{}).strict,i=!1!==n.end,a="",c=0;c<e.length;c++){var s=e[c];if("string"==typeof s)a+=u(s);else{var d=u(s.prefix),p="(?:"+s.pattern+")";t.push(s),s.repeat&&(p+="(?:"+d+p+")*"),a+=p=s.optional?s.partial?d+"("+p+")?":"(?:"+d+"("+p+"))?":d+"("+p+")"}}var m=u(n.delimiter||"/"),h=a.slice(-m.length)===m;return o||(a=(h?a.slice(0,-m.length):a)+"(?:"+m+"(?=$))?"),a+=i?"$":o&&h?"":"(?="+m+"|$)",l(new RegExp("^"+a,f(n)),t)}function p(e,t,n){return r(t)||(n=t||n,t=[]),n=n||{},e instanceof RegExp?function(e,t){var n=e.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)t.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return l(e,t)}(e,t):r(e)?function(e,t,n){for(var r=[],o=0;o<e.length;o++)r.push(p(e[o],t,n).source);return l(new RegExp("(?:"+r.join("|")+")",f(n)),t)}(e,t,n):function(e,t,n){return d(i(e,n),t,n)}(e,t,n)}},,,,,,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return i}));var r=n(2);function o(e,t){return Object(r.filter)(e,(function(e){var n=e.is_deleted,r=e.date_created_gmt,o=e.status;if(!n)return(!t||!r||new Date(r+"Z").getTime()>t)&&"unactioned"===o})).length}function i(e){return Object(r.filter)(e,(function(e){return!e.is_deleted})).length>0}},,,,,,,,function(e,t,n){"use strict";var r=n(0),o=n(78),i=Object(r.createElement)(o.c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.b,{d:"M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"}));t.a=i},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();var i=n(375),a=n(8),c=n(90);e.exports=function(e){var t=e.displayName||e.name,n=function(t){function n(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);var t=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e));return t.handleClickOutside=t.handleClickOutside.bind(t),t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,t),o(n,[{key:"componentDidMount",value:function(){document.addEventListener("click",this.handleClickOutside,!0)}},{key:"componentWillUnmount",value:function(){document.removeEventListener("click",this.handleClickOutside,!0)}},{key:"handleClickOutside",value:function(e){var t=this.__domNode;t&&t.contains(e.target)||!this.__wrappedInstance||"function"!=typeof this.__wrappedInstance.handleClickOutside||this.__wrappedInstance.handleClickOutside(e)}},{key:"render",value:function(){var t=this,n=this.props,o=n.wrappedRef,i=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(n,["wrappedRef"]);return a.createElement(e,r({},i,{ref:function(e){t.__wrappedInstance=e,t.__domNode=c.findDOMNode(e),o&&o(e)}}))}}]),n}(a.Component);return n.displayName="clickOutside("+t+")",i(n,e)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(7),o=n(24),i=n(0),a=n(4),c=n.n(a),u=n(117);function s(e){var t,n,a,s,l,f,d=e.renderContent,p=e.renderToggle,m=e.position,h=void 0===m?"bottom right":m,b=e.className,v=e.contentClassName,g=e.expandOnMobile,y=e.headerTitle,O=e.focusOnMount,w=e.popoverProps,j=e.onClose,k=e.onToggle,_=Object(i.useRef)(),E=(t=!1,n=k,a=Object(i.useState)(t),s=Object(o.a)(a,2),l=s[0],f=s[1],[l,function(e){f(e),n&&n(e)}]),x=Object(o.a)(E,2),C=x[0],S=x[1];function P(){j&&j(),S(!1)}Object(i.useEffect)((function(){return function(){k&&k(!1)}}),[]);var A={isOpen:C,onToggle:function(){S(!C)},onClose:P};return Object(i.createElement)("div",{className:c()("components-dropdown",b),ref:_},p(A),C&&Object(i.createElement)(u.a,Object(r.a)({position:h,onClose:P,onFocusOutside:function(){var e=_.current.ownerDocument;_.current.contains(e.activeElement)||e.activeElement.closest('[role="dialog"]')||P()},expandOnMobile:g,headerTitle:y,focusOnMount:O},w,{anchorRef:_.current,className:c()("components-dropdown__content",w?w.className:void 0,v)}),d(A)))}},function(e,t,n){"use strict";(function(e){var r=n(0),o=n(2),i=n(4),a=n.n(i),c=n(141),u=n(3),s=(n(72),n(67));t.a=Object(r.forwardRef)((function(t,n){var i=t.className,l=t.children,f=t.spokenMessage,d=void 0===f?l:f,p=t.politeness,m=void 0===p?"polite":p,h=t.actions,b=void 0===h?[]:h,v=t.onRemove,g=void 0===v?o.noop:v,y=t.icon,O=void 0===y?null:y,w=t.explicitDismiss,j=void 0!==w&&w,k=t.onDismiss,_=void 0===k?null:k;function E(e){e&&e.preventDefault&&e.preventDefault(),_(),g()}_=_||o.noop,function(e,t){var n="string"==typeof e?e:Object(r.renderToString)(e);Object(r.useEffect)((function(){n&&Object(c.a)(n,t)}),[n,t])}(d,m),Object(r.useEffect)((function(){var e=setTimeout((function(){j||(_(),g())}),1e4);return function(){return clearTimeout(e)}}),[j,_,g]);var x=a()(i,"components-snackbar",{"components-snackbar-explicit-dismiss":!!j});b&&b.length>1&&(void 0!==e&&e.env,b=[b[0]]);var C=a()("components-snackbar__content",{"components-snackbar__content-with-icon":!!O});return Object(r.createElement)("div",{ref:n,className:x,onClick:j?o.noop:E,tabIndex:"0",role:j?"":"button",onKeyPress:j?o.noop:E,"aria-label":j?"":Object(u.__)("Dismiss this notice")},Object(r.createElement)("div",{className:C},O&&Object(r.createElement)("div",{className:"components-snackbar__icon"},O),l,b.map((function(e,t){var n=e.label,o=e.onClick,i=e.url;return Object(r.createElement)(s.a,{key:t,href:i,isTertiary:!0,onClick:function(e){return function(e,t){e.stopPropagation(),g(),t&&t(e)}(e,o)},className:"components-snackbar__action"},n)})),j&&Object(r.createElement)("span",{role:"button","aria-label":"Dismiss this notice",tabIndex:"0",className:"components-snackbar__dismiss-button",onClick:E,onKeyPress:E},"✕")))}))}).call(this,n(63))},function(e,t,n){"use strict";(function(e){var r=n(8),o=n.n(r),i=n(53),a=n(1),c=n.n(a),u="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e?e:{};function s(e){var t=[];return{on:function(e){t.push(e)},off:function(e){t=t.filter((function(t){return t!==e}))},get:function(){return e},set:function(n,r){e=n,t.forEach((function(t){return t(e,r)}))}}}var l=o.a.createContext||function(e,t){var n,o,a,l="__create-react-context-"+((u[a="__global_unique_id__"]=(u[a]||0)+1)+"__"),f=function(e){function n(){var t;return(t=e.apply(this,arguments)||this).emitter=s(t.props.value),t}Object(i.a)(n,e);var r=n.prototype;return r.getChildContext=function(){var e;return(e={})[l]=this.emitter,e},r.componentWillReceiveProps=function(e){if(this.props.value!==e.value){var n,r=this.props.value,o=e.value;((i=r)===(a=o)?0!==i||1/i==1/a:i!=i&&a!=a)?n=0:(n="function"==typeof t?t(r,o):1073741823,0!==(n|=0)&&this.emitter.set(e.value,n))}var i,a},r.render=function(){return this.props.children},n}(r.Component);f.childContextTypes=((n={})[l]=c.a.object.isRequired,n);var d=function(t){function n(){var e;return(e=t.apply(this,arguments)||this).state={value:e.getValue()},e.onUpdate=function(t,n){0!=((0|e.observedBits)&n)&&e.setState({value:e.getValue()})},e}Object(i.a)(n,t);var r=n.prototype;return r.componentWillReceiveProps=function(e){var t=e.observedBits;this.observedBits=null==t?1073741823:t},r.componentDidMount=function(){this.context[l]&&this.context[l].on(this.onUpdate);var e=this.props.observedBits;this.observedBits=null==e?1073741823:e},r.componentWillUnmount=function(){this.context[l]&&this.context[l].off(this.onUpdate)},r.getValue=function(){return this.context[l]?this.context[l].get():e},r.render=function(){return(e=this.props.children,Array.isArray(e)?e[0]:e)(this.state.value);var e},n}(r.Component);return d.contextTypes=((o={})[l]=c.a.object,o),{Provider:f,Consumer:d}};t.a=l}).call(this,n(127))},function(e,t){!function(){e.exports=this.wc.customerEffortScore}()},,,,,,,function(e,t,n){"use strict";var r=n(0),o=n(197),i=n(29),a=n(34),c=(n(381),n(31)),u=n.n(c),s=n(5),l=n.n(s),f=n(3),d=n(181),p=n(6),m=n(24),h=n(4),b=n.n(h),v=n(2),g=n(115),y=Object(r.createContext)({activeItem:void 0,activeMenu:"root",setActiveMenu:v.noop,navigationTree:{items:{},getItem:v.noop,addItem:v.noop,removeItem:v.noop,menus:{},getMenu:v.noop,addMenu:v.noop,removeMenu:v.noop}}),O=function(){return Object(r.useContext)(y)},w=n(32),j=n(86),k=n(67),_=n(142);var E=Object(w.a)("div",{target:"ejwewyf0",label:"NavigationUI"})("width:100%;background-color:",j.b.darkGray.primary,";color:#f0f0f0;padding:0 8px;overflow:hidden;"),x=Object(w.a)("div",{target:"ejwewyf1",label:"MenuUI"})({name:"1wlvkgj",styles:"margin-top:24px;margin-bottom:24px;display:flex;flex-direction:column;ul{padding:0;margin:0;list-style:none;}.components-navigation__back-button{margin-bottom:24px;}"}),C=Object(w.a)(k.a,{target:"ejwewyf2",label:"MenuBackButtonUI"})("&.is-tertiary{color:",j.b.lightGray.ui,";&:hover:not(:disabled ){color:#ddd;box-shadow:none;}&:active:not(:disabled ){background:transparent;color:#ddd;}}"),S=Object(w.a)(_.a,{target:"ejwewyf3",label:"MenuTitleUI"})("padding:4px 0 4px 16px;margin-bottom:8px;color:",j.b.gray[100],";"),P=Object(w.a)(_.a,{target:"ejwewyf4",label:"GroupTitleUI"})("margin-top:8px;padding:4px 0 4px 16px;text-transform:uppercase;color:",j.b.gray[100],";"),A=Object(w.a)("li",{target:"ejwewyf5",label:"ItemUI"})("border-radius:2px;color:",j.b.lightGray.ui,";button,a{margin:0;font-weight:400;font-size:14px;line-height:20px;padding-left:16px;padding-right:16px;width:100%;color:",j.b.lightGray.ui,";&:hover,&:focus:not( [aria-disabled='true'] ):active,&:active:not( [aria-disabled='true'] ):active{color:#ddd;}}&.is-active{background-color:",j.c.theme,";color:",j.c.textDark,";button,a{color:",j.c.textDark,";}}svg path{color:",j.b.lightGray.ui,";}"),N=Object(w.a)("span",{target:"ejwewyf6",label:"ItemBadgeUI"})("margin-left:8px;display:inline-flex;padding:4px 12px;border-radius:2px;animation:fade-in 250ms ease-out;@keyframes fade-in{from{opacity:0;}to{opacity:1;}}",function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"transition";switch(t){case"transition":e="transition-duration: 0ms;";break;case"animation":e="animation-duration: 1ms;";break;default:e="\n\t\t\t\tanimation-duration: 1ms;\n\t\t\t\ttransition-duration: 0ms;\n\t\t\t"}return"\n\t\t@media ( prefers-reduced-motion: reduce ) {\n\t\t\t".concat(e,";\n\t\t}\n\t")}("animation"),";"),R=Object(w.a)(_.a,{target:"ejwewyf7",label:"ItemTitleUI"})({name:"zs804i",styles:"margin-right:auto;text-align:left;"});function T(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function D(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?T(Object(n),!0).forEach((function(t){Object(p.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):T(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var L=function(){var e=Object(r.useState)({}),t=Object(m.a)(e,2),n=t[0],o=t[1];return{nodes:n,getNode:function(e){return n[e]},addNode:function(e,t){return o((function(n){return D(D({},n),{},Object(p.a)({},e,Object(v.omit)(t,"children")))}))},removeNode:function(e){return o((function(t){return Object(v.omit)(t,e)}))}}};function M(e){var t,n,o,i,a,c,u=e.activeItem,s=e.activeMenu,l=void 0===s?"root":s,f=e.children,d=e.className,h=e.onActivateMenu,O=void 0===h?v.noop:h,w=Object(r.useState)(l),j=Object(m.a)(w,2),k=j[0],_=j[1],x=Object(r.useState)(),C=Object(m.a)(x,2),S=C[0],P=C[1],A=(t=L(),n=t.nodes,o=t.getNode,i=t.addNode,a=t.removeNode,c=L(),{items:n,getItem:o,addItem:i,removeItem:a,menus:c.nodes,getMenu:c.getNode,addMenu:c.addNode,removeMenu:c.removeNode}),N=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"left";A.getMenu(e)&&(P(t),_(e),O(e))},R=Object(r.useRef)(!1);Object(r.useEffect)((function(){R.current||(R.current=!0)}),[]),Object(r.useEffect)((function(){l!==k&&N(l)}),[l]);var T={activeItem:u,activeMenu:k,setActiveMenu:N,navigationTree:A},D=b()("components-navigation",d);return Object(r.createElement)(E,{className:D},Object(r.createElement)(g.a,{key:k,type:"slide-in",options:{origin:S}},(function(e){var t=e.className;return Object(r.createElement)("div",{className:b()(Object(p.a)({},t,R.current&&S))},Object(r.createElement)(y.Provider,{value:T},f))})))}var F=n(382),I=n(78),z=Object(r.createElement)(I.c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(I.b,{d:"M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"}));function H(e){var t,n=e.backButtonLabel,o=e.className,i=e.href,a=e.onClick,c=e.parentMenu,u=O(),s=u.setActiveMenu,l=u.navigationTree,d=b()("components-navigation__back-button",o),p=null===(t=l.getMenu(c))||void 0===t?void 0:t.title;return Object(r.createElement)(C,{className:d,isTertiary:!0,href:i,onClick:function(){return c?s(c,"right"):a}},Object(r.createElement)(F.a,{icon:z}),n||p||Object(f.__)("Back"))}var B=Object(r.createContext)({menu:void 0,isActive:!1}),U=function(){return Object(r.useContext)(B)};function V(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function q(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?V(Object(n),!0).forEach((function(t){Object(p.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):V(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function W(e){var t=e.backButtonLabel,n=e.children,o=e.className,i=e.menu,a=void 0===i?"root":i,c=e.parentMenu,u=e.title;!function(e){var t=O().navigationTree,n=t.addMenu,o=t.removeMenu,i=e.menu||"root";Object(r.useEffect)((function(){return n(i,q(q({},e),{},{menu:i})),function(){o(i)}}),[])}(e);var s=O().activeMenu===a,l=b()("components-navigation__menu",o),f={menu:a,isActive:s};return s?Object(r.createElement)(B.Provider,{value:f},Object(r.createElement)(x,{className:l},c&&Object(r.createElement)(H,{backButtonLabel:t,parentMenu:c}),u&&Object(r.createElement)(S,{as:"h2",className:"components-navigation__menu-title",variant:"subtitle"},u),Object(r.createElement)("ul",null,n))):Object(r.createElement)(B.Provider,{value:f},n)}function $(e){var t=e.children,n=e.className,o=e.title;if(!U().isActive)return t;var i=b()("components-navigation__group",n);return Object(r.createElement)("li",{className:i},o&&Object(r.createElement)(P,{as:"h3",className:"components-navigation__group-title",variant:"caption"},o),Object(r.createElement)("ul",null,t))}var G=n(35),Q=n(50),K=n(25),Y=function(e){var t=window.location,n=t.origin,r=t.pathname,o=t.search;return 0===e.indexOf("#")?n+r+o+e:0===e.indexOf("http")?e:n+e},Z=function(e){var t=e.replace(/[-\/\\^$*+?.()|[\]{}]/gi,"\\$&").split(/\\\?|#/),n=u()(t,3),r=n[0],o=n[1],i=n[2],a=i?"(.*#".concat(i,"$)"):"";return"^"+r+(o?o.split("&").reduce((function(e,t){return"".concat(e,"(?=.*[?|&]").concat(t,"(&|$|#))")}),""):"")+a},X=function(e){var t=null,n=0;return e.forEach((function(e){var r=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(t){var r=Y(t),o=e.href;if(r===o)return Number.MAX_SAFE_INTEGER;var i=Z(r),a=new RegExp(n||i,"i");return(decodeURIComponent(o).match(a)||[]).length}}(window.location,Object(G.f)(e.url),e.matchExpression);r>0&&r>=n&&(n=r,t=e)})),t||null},J=n(377),ee=Object(r.createElement)(I.c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(r.createElement)(I.b,{d:"M20 10c0-5.51-4.49-10-10-10C4.48 0 0 4.49 0 10c0 5.52 4.48 10 10 10 5.51 0 10-4.48 10-10zM7.78 15.37L4.37 6.22c.55-.02 1.17-.08 1.17-.08.5-.06.44-1.13-.06-1.11 0 0-1.45.11-2.37.11-.18 0-.37 0-.58-.01C4.12 2.69 6.87 1.11 10 1.11c2.33 0 4.45.87 6.05 2.34-.68-.11-1.65.39-1.65 1.58 0 .74.45 1.36.9 2.1.35.61.55 1.36.55 2.46 0 1.49-1.4 5-1.4 5l-3.03-8.37c.54-.02.82-.17.82-.17.5-.05.44-1.25-.06-1.22 0 0-1.44.12-2.38.12-.87 0-2.33-.12-2.33-.12-.5-.03-.56 1.2-.06 1.22l.92.08 1.26 3.41zM17.41 10c.24-.64.74-1.87.43-4.25.7 1.29 1.05 2.71 1.05 4.25 0 3.29-1.73 6.24-4.4 7.78.97-2.59 1.94-5.2 2.92-7.78zM6.1 18.09C3.12 16.65 1.11 13.53 1.11 10c0-1.3.23-2.48.72-3.59C3.25 10.3 4.67 14.2 6.1 18.09zm4.03-6.63l2.58 6.98c-.86.29-1.76.45-2.71.45-.79 0-1.57-.11-2.29-.33.81-2.38 1.62-4.74 2.42-7.1z"})),te=n(8),ne=n(196),re=function(){var e=Object(G.g)("siteTitle",""),t=Object(G.g)("siteUrl",""),n=Object(ne.a)(),o="is-wc-nav-folded",i="is-wc-nav-expanded",a=function(){document.body.classList.add(o),document.body.classList.remove(i)},c=function(){document.body.classList.remove(o),document.body.classList.add(i)},u=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.body.clientWidth;e<=960?a():c()};Object(te.useEffect)((function(){u();for(var e=0,t=[{eventName:"orientationchange",handler:function(e){return u(e.target.screen.availWidth)}},{eventName:"resize",handler:Object(v.debounce)((function(){return u()}),200)}];e<t.length;e++){var n=t[e],r=n.eventName,o=n.handler;window.addEventListener(r,o,!1)}}),[]);var s=Object(r.createElement)(J.a,{size:"36px",icon:ee}),l=Object(K.useSelect)((function(e){var t=e("core/data").isResolving,n=(0,e("core").getEntityRecord)("root","__unstableBase",void 0)||{};return{isRequestingSiteIcon:t("core","getEntityRecord",["root","__unstableBase",void 0]),siteIconUrl:n.siteIconUrl}})),d=l.isRequestingSiteIcon,p=l.siteIconUrl;p?s=Object(r.createElement)("img",{alt:Object(f.__)("Site Icon"),src:p}):d&&(s=null);var m=b()("woocommerce-navigation-header",{"is-scrolled":n});return Object(r.createElement)("div",{className:m},Object(r.createElement)(k.a,{onClick:function(){document.body.classList.contains(o)?c():a()},className:"woocommerce-navigation-header__site-icon"},s),Object(r.createElement)(k.a,{href:t,className:"woocommerce-navigation-header__site-title",as:"span"},e))},oe=n(7),ie=n(11),ae=Object(r.createElement)(I.c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(I.b,{d:"M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"}));function ce(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ue(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ce(Object(n),!0).forEach((function(t){Object(p.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ce(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function se(e){var t=e.badge,n=e.children,o=e.className,i=e.href,a=e.item,c=e.navigateToMenu,u=e.onClick,s=void 0===u?v.noop:u,l=e.title,f=Object(ie.a)(e,["badge","children","className","href","item","navigateToMenu","onClick","title"]);!function(e){var t=O().navigationTree,n=t.addItem,o=t.removeItem,i=U().menu,a=e.item;Object(r.useEffect)((function(){return n(a,ue(ue({},e),{},{menu:i})),function(){o(a)}}),[])}(e);var d=O(),p=d.activeItem,m=d.setActiveMenu;if(!U().isActive)return null;var h=b()("components-navigation__item",o,{"is-active":a&&p===a});return Object(r.createElement)(A,{className:h},n||Object(r.createElement)(k.a,Object(oe.a)({href:i,onClick:function(e){c&&m(c),s(e)}},f),l&&Object(r.createElement)(R,{className:"components-navigation__item-title",variant:"body.small",as:"span"},l),t&&Object(r.createElement)(N,{className:"components-navigation__item-badge"},t),c&&Object(r.createElement)(F.a,{icon:ae})))}var le=function(e){var t=e.item,n=Object(i.useNavSlot)("woocommerce_navigation_"+t.id),o=Boolean(n.fills&&n.fills.length),a=function(e){Object(Q.recordEvent)("navigation_click",{menu_item:e})};return o&&!t.isCategory?Object(r.createElement)(se,{key:t.id,item:t.id},Object(r.createElement)("div",{onClick:function(){return a(t.id)}},Object(r.createElement)(i.WooNavigationItem.Slot,{name:t.id}))):Object(r.createElement)(se,{key:t.id,item:t.id,title:t.title,href:t.url,navigateToMenu:!t.url&&t.id,onClick:function(){return a(t.id)}})};function fe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function de(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fe(Object(n),!0).forEach((function(t){l()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var pe=Object(d.a)(Object(K.withSelect)((function(e){var t=e(a.NAVIGATION_STORE_NAME),n=t.getActiveItem,r=t.getMenuItems;return{activeItem:n(),menuItems:r()}})))((function(e){var t=e.menuItems;Object(r.useEffect)((function(){document.getElementById("adminmenumain").classList.add("folded")}),[]);var n=Object(G.f)(""),o=t.reduce((function(e,t){return t.isCategory?de(de({},e),{},l()({},t.id,t)):e}),{woocommerce:{capability:"manage_woocommerce",id:"woocommerce",isCategory:!0,menuId:"primary",migrate:!0,order:10,parent:"",title:"WooCommerce"}}),i=Object.values(o),a=Object(r.useState)("woocommerce-home"),c=u()(a,2),s=c[0],d=c[1],p=Object(r.useState)("woocommerce"),m=u()(p,2),h=m[0],b=m[1];Object(r.useEffect)((function(){var e,n,r,o,i=X(t);return i&&(d(i),b(i.parent)),e=function(){setTimeout((function(){var e=X(t);e&&d(e)}),0)},window.wcNavigation.historyPatched||(n=window.history,r=n.pushState,o=n.replaceState,n.pushState=function(e){var t=new CustomEvent("pushstate",{state:e});return window.dispatchEvent(t),r.apply(n,arguments)},n.replaceState=function(e){var t=new CustomEvent("replacestate",{state:e});return window.dispatchEvent(t),o.apply(n,arguments)},window.wcNavigation.historyPatched=!0),window.addEventListener("popstate",e),window.addEventListener("pushstate",e),window.addEventListener("replacestate",e),function(){window.removeEventListener("popstate",e),window.removeEventListener("pushstate",e),window.removeEventListener("replacestate",e)}}),[t]);var v=Object(r.useMemo)((function(){return t.reduce((function(e,t){return e[t.parent]||(e[t.parent]={}),"woocommerce"!==t.parent&&o[t.parent]&&o[t.parent].menuId!==t.menuId||(e[t.parent][t.menuId]||(e[t.parent][t.menuId]=[]),e[t.parent][t.menuId].push(t)),e}),{})}),[t]),g=Object(r.useRef)(null),y=function(e){Object(Q.recordEvent)("navigation_back_click",{category:e})};return Object(r.createElement)("div",{className:"woocommerce-navigation"},Object(r.createElement)(re,null),Object(r.createElement)("div",{className:"woocommerce-navigation__wrapper",ref:g},Object(r.createElement)(M,{activeItem:s?s.id:null,activeMenu:h,onActivateMenu:function(){g&&g.current&&(g.current.scrollTop=0),b.apply(void 0,arguments)}},"woocommerce"===h&&n&&Object(r.createElement)(H,{className:"woocommerce-navigation__back-to-dashboard",href:n,backButtonLabel:Object(f.__)("WordPress Dashboard","woocommerce-navigation"),onClick:function(){return y("woocommerce")}}),i.map((function(e){var t=v[e.id]||{},n=t.primary,o=t.secondary,i=t.plugins;return Object(r.createElement)(W,{key:e.id,title:e.title,menu:e.id,parentMenu:e.parent,backButtonLabel:e.backButtonLabel||null,onBackButtonClick:function(){return y(e.id)}},!!n&&Object(r.createElement)($,null,n.map((function(e){return Object(r.createElement)(le,{key:e.id,item:e})}))),!!i&&Object(r.createElement)($,{title:"woocommerce"===e.id?Object(f.__)("Extensions","woocommerce-admin"):null},i.map((function(e){return Object(r.createElement)(le,{key:e.id,item:e})}))),!!o&&Object(r.createElement)($,{onBackButtonClick:function(){return y(e.id)}},o.map((function(e){return Object(r.createElement)(le,{key:e.id,item:e})}))))})))))})),me=Object(a.withNavigationHydration)(window.wcNavigation)((function(){return Object(r.createElement)(i.NavSlotFillProvider,null,Object(r.createElement)(pe,null),Object(r.createElement)(o.PluginArea,null))}));t.a=me},function(e,t,n){"use strict";n.d(t,"a",(function(){return U}));var r={};n.r(r),n.d(r,"setCesSurveyQueue",(function(){return P})),n.d(r,"addCesSurvey",(function(){return A})),n.d(r,"addCesSurveyForAnalytics",(function(){return N}));var o={};n.r(o),n.d(o,"getCesSurveyQueue",(function(){return L}));var i={};n.r(i),n.d(i,"getCesSurveyQueue",(function(){return M}));var a=n(28),c=n.n(a),u=n(5),s=n.n(u),l=n(31),f=n.n(l),d=n(0),p=n(1),m=n.n(p),h=n(50),b=n(342),v=n.n(b),g=n(181),y=n(25),O=n(34),w=n(3);function j(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function k(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?j(Object(n),!0).forEach((function(t){s()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):j(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _(e){var t=e.action,n=e.trackProps,r=e.label,o=e.onSubmitLabel,i=void 0===o?Object(w.__)("Thank you for your feedback!","woocommerce-admin"):o,a=e.cesShownForActions,u=e.allowTracking,l=e.resolving,p=e.storeAgeInWeeks,m=e.updateOptions,b=e.createNotice,g=Object(d.useState)(!1),y=f()(g,2),O=y[0],j=y[1];if(l)return null;if(!u)return null;if(-1!==a.indexOf(t)&&!O)return null;var _=function(){m(s()({},"woocommerce_ces_shown_for_actions",[t].concat(c()(a))))};return Object(d.createElement)(v.a,{recordScoreCallback:function(e,r){Object(h.recordEvent)("ces_feedback",k({action:t,score:e,comments:r||"",store_age:p},n)),b("success",i)},label:r,onNoticeShownCallback:function(){Object(h.recordEvent)("ces_snackbar_view",k({action:t,store_age:p},n))},onNoticeDismissedCallback:function(){Object(h.recordEvent)("ces_snackbar_dismiss",k({action:t,store_age:p},n)),_()},onModalShownCallback:function(){j(!0),Object(h.recordEvent)("ces_view",k({action:t,store_age:p},n)),_()},icon:Object(d.createElement)("span",{style:{height:21,width:21},role:"img","aria-label":Object(w.__)("Pencil icon","woocommerce-admin")},"✏️")})}_.propTypes={action:m.a.string.isRequired,trackProps:m.a.object,label:m.a.string.isRequired,onSubmitLabel:m.a.string,cesShownForActions:m.a.arrayOf(m.a.string).isRequired,allowTracking:m.a.bool,resolving:m.a.bool.isRequired,storeAgeInWeeks:m.a.number,updateOptions:m.a.func,createNotice:m.a.func};var E=Object(g.a)(Object(y.withSelect)((function(e){var t=e(O.OPTIONS_STORE_NAME),n=t.getOption,r=t.isResolving,o=n("woocommerce_ces_shown_for_actions")||[],i=function(e){if(0===e)return null;var t=Date.now()-1e3*e;return Math.round(t/O.WEEK)}(n("woocommerce_admin_install_timestamp")||0);return{cesShownForActions:o,allowTracking:"yes"===(n("woocommerce_allow_tracking")||"no"),storeAgeInWeeks:i,resolving:r("getOption",["woocommerce_ces_shown_for_actions"])||null===i||r("getOption",["woocommerce_admin_install_timestamp"])||r("getOption",["woocommerce_allow_tracking"])}})),Object(y.withDispatch)((function(e){return{updateOptions:e(O.OPTIONS_STORE_NAME).updateOptions,createNotice:e("core/notices").createNotice}})))(_),x=n(118),C=n(27),S={SET_CES_SURVEY_QUEUE:"SET_CES_SURVEY_QUEUE",ADD_CES_SURVEY:"ADD_CES_SURVEY"};function P(e){return{type:S.SET_CES_SURVEY_QUEUE,queue:e}}function A(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:window.pagenow,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:window.adminpage,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:void 0;return{type:S.ADD_CES_SURVEY,action:e,label:t,pageNow:n,adminPage:r,onsubmit_label:o}}function N(){return A("analytics_filtered",Object(w.__)("How easy was it to filter your store analytics?","woocommerce-admin"),"woocommerce_page_wc-admin","woocommerce_page_wc-admin")}var R=n(14),T=n.n(R),D=T.a.mark(L);function L(){var e;return T.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(C.apiFetch)({path:"".concat(x.a,"/options?options=").concat(x.b)});case 2:if(!(e=t.sent)){t.next=8;break}return t.next=6,P(e[x.b]||[]);case 6:t.next=9;break;case 8:throw new Error;case 9:case"end":return t.stop()}}),D)}function M(e){return e.queue}function F(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function I(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?F(Object(n),!0).forEach((function(t){s()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):F(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var z={queue:[]},H=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:z,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case S.SET_CES_SURVEY_QUEUE:return I(I({},e),{},{queue:t.queue});case S.ADD_CES_SURVEY:var n=e.queue.filter((function(e){return e.action===t.action}));if(n.length)return e;var r={action:t.action,label:t.label,pagenow:t.pageNow,adminpage:t.adminPage,onSubmitLabel:t.onSubmitLabel};return I(I({},e),{},{queue:[].concat(c()(e.queue),[r])});default:return e}};Object(y.registerStore)(x.c,{actions:r,selectors:i,resolvers:o,controls:C.controls,reducer:H});function B(e){var t=e.queue,n=e.resolving,r=e.clearQueue;if(n)return null;var o=t.filter((function(e){return e.pagenow===window.pagenow&&e.adminpage===window.adminpage}));return o.length&&r(),Object(d.createElement)(d.Fragment,null,o.map((function(e,t){return Object(d.createElement)(E,{key:t,action:e.action,label:e.label,onSubmitLabel:e.onsubmit_label,trackProps:e.props||{}})})))}B.propTypes={queue:m.a.arrayOf(m.a.object),resolving:m.a.bool,clearQueue:m.a.func};var U=Object(g.a)(Object(y.withSelect)((function(e){var t=e(x.c),n=t.getCesSurveyQueue,r=t.isResolving;return{queue:n(),resolving:r("getOption",[x.b])}})),Object(y.withDispatch)((function(e){var t=e(O.OPTIONS_STORE_NAME).updateOptions;return{clearQueue:function(){t({woocommerce_clear_ces_tracks_queue_for_page:{pagenow:window.pagenow,adminpage:window.adminpage}})}}})))(B)},,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.r(t),function(e){var t=n(0),r=(n(541),n(34)),o=(n(372),n(198)),i=n(350),a=n(349);n.p=e.wcAdminAssets.path;var c=document.getElementById("root"),u=document.getElementById("woocommerce-embedded-root"),s=window.wcSettings.currentUserData;if(c){var l=Object(r.withSettingsHydration)("wc_admin",window.wcSettings)(o.b);window.wcSettings.preloadSettings&&window.wcSettings.preloadSettings.general&&(l=Object(r.withSettingsHydration)("general",{general:window.wcSettings.preloadSettings.general})(l)),s&&(l=Object(r.withCurrentUserHydration)(s)(l)),Object(t.render)(Object(t.createElement)(l,null),c)}else if(u){var f=Object(r.withSettingsHydration)("wc_admin",window.wcSettings)(o.a);s&&(f=Object(r.withCurrentUserHydration)(s)(f)),Object(t.render)(Object(t.createElement)(f,null),u),u.classList.remove("is-embed-loading");var d=document.getElementById("wpbody-content"),p=d.querySelector(".wrap.woocommerce")||d.querySelector('[class="wrap"]'),m=document.createElement("div");Object(t.render)(Object(t.createElement)("div",{className:"woocommerce-layout"},Object(t.createElement)(o.c,null)),d.insertBefore(m,p))}var h,b=document.getElementById("woocommerce-embedded-navigation");b&&Object(t.render)(Object(t.createElement)(a.a,null),b),window.wcAdminFeatures&&!0===window.wcAdminFeatures["customer-effort-score-tracks"]&&(h=c||u,Object(t.render)(Object(t.createElement)(i.a,null),h.insertBefore(document.createElement("div"),null)))}.call(this,n(127))},,,,,function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";var r={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i=Object.defineProperty,a=Object.getOwnPropertyNames,c=Object.getOwnPropertySymbols,u=Object.getOwnPropertyDescriptor,s=Object.getPrototypeOf,l=s&&s(Object);e.exports=function e(t,n,f){if("string"!=typeof n){if(l){var d=s(n);d&&d!==l&&e(t,d,f)}var p=a(n);c&&(p=p.concat(c(n)));for(var m=0;m<p.length;++m){var h=p[m];if(!(r[h]||o[h]||f&&f[h])){var b=u(n,h);try{i(t,h,b)}catch(e){}}}return t}return t}},function(e,t,n){},function(e,t,n){"use strict";var r=n(6),o=n(11),i=n(0);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}t.a=function(e){var t=e.icon,n=e.size,c=void 0===n?24:n,u=Object(o.a)(e,["icon","size"]);return Object(i.cloneElement)(t,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){Object(r.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({width:c,height:c},u))}},function(e,t,n){},function(e,t,n){},function(e,t){e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},function(e,t,n){},function(e,t,n){"use strict";var r=n(6),o=n(11),i=n(0);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}t.a=function(e){var t=e.icon,n=e.size,c=void 0===n?24:n,u=Object(o.a)(e,["icon","size"]);return Object(i.cloneElement)(t,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){Object(r.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({width:c,height:c},u))}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";var r={};n.r(r),n.d(r,"createNotice",(function(){return h})),n.d(r,"createSuccessNotice",(function(){return b})),n.d(r,"createInfoNotice",(function(){return v})),n.d(r,"createErrorNotice",(function(){return g})),n.d(r,"createWarningNotice",(function(){return y})),n.d(r,"removeNotice",(function(){return O}));var o={};n.r(o),n.d(o,"getNotices",(function(){return j}));var i=n(25),a=n(26),c=n(2),u=n(6);function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){Object(u.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var f=function(e){return function(t){return function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0,o=r[e];if(void 0===o)return n;var i=t(n[o],r);return i===n[o]?n:l({},n,Object(u.a)({},o,i))}}}("context")((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"CREATE_NOTICE":return[].concat(Object(a.a)(Object(c.reject)(e,{id:t.notice.id})),[t.notice]);case"REMOVE_NOTICE":return Object(c.reject)(e,{id:t.id})}return e})),d=n(14),p=n.n(d),m=p.a.mark(h);function h(){var e,t,n,r,o,i,a,u,s,l,f,d,h,b,v,g,y=arguments;return p.a.wrap((function(p){for(;;)switch(p.prev=p.next){case 0:if(e=y.length>0&&void 0!==y[0]?y[0]:"info",t=y.length>1?y[1]:void 0,n=y.length>2&&void 0!==y[2]?y[2]:{},r=n.speak,o=void 0===r||r,i=n.isDismissible,a=void 0===i||i,u=n.context,s=void 0===u?"global":u,l=n.id,f=void 0===l?Object(c.uniqueId)(s):l,d=n.actions,h=void 0===d?[]:d,b=n.type,v=void 0===b?"default":b,g=n.__unstableHTML,t=String(t),!o){p.next=8;break}return p.next=8,{type:"SPEAK",message:t,ariaLive:"snackbar"===v?"polite":"assertive"};case 8:return p.next=10,{type:"CREATE_NOTICE",context:s,notice:{id:f,status:e,content:t,__unstableHTML:g,isDismissible:a,actions:h,type:v}};case 10:case"end":return p.stop()}}),m)}function b(e,t){return h("success",e,t)}function v(e,t){return h("info",e,t)}function g(e,t){return h("error",e,t)}function y(e,t){return h("warning",e,t)}function O(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"global";return{type:"REMOVE_NOTICE",id:e,context:t}}var w=[];function j(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"global";return e[t]||w}var k=n(141),_={SPEAK:function(e){Object(k.a)(e.message,e.ariaLive||"assertive")}};Object(i.registerStore)("core/notices",{reducer:f,actions:r,selectors:o,controls:_})},,,,,,,,function(e,t){!function(){e.exports=this.wc.csvExport}()},,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";var r=n(0),o=n(78),i=Object(r.createElement)(o.c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.b,{d:"M18.3 5.6L9.9 16.9l-4.6-3.4-.9 1.2 5.8 4.3 9.3-12.6z"}));t.a=i},function(e,t,n){"use strict";(function(e){var r=n(85),o="undefined"!=typeof window&&window.navigator.userAgent.indexOf("Trident")>=0,i=e.env.FORCE_REDUCED_MOTION||o?function(){return!0}:function(){return Object(r.a)("(prefers-reduced-motion: reduce)")};t.a=i}).call(this,n(63))},function(e,t,n){"use strict";var r=n(7),o=n(11),i=n(0),a=n(2),c=n(57),u=n(16),s=n(17),l=n(12),f=n(18),d=n(21),p=n(9),m=n(68);function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(p.a)(e);if(t){var o=Object(p.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(d.a)(this,n)}}var b=["menuitem","menuitemradio","menuitemcheckbox"];var v=function(e){Object(f.a)(n,e);var t=h(n);function n(){var e;return Object(u.a)(this,n),(e=t.apply(this,arguments)).onKeyDown=e.onKeyDown.bind(Object(l.a)(e)),e.bindContainer=e.bindContainer.bind(Object(l.a)(e)),e.getFocusableContext=e.getFocusableContext.bind(Object(l.a)(e)),e.getFocusableIndex=e.getFocusableIndex.bind(Object(l.a)(e)),e}return Object(s.a)(n,[{key:"componentDidMount",value:function(){this.container.addEventListener("keydown",this.onKeyDown),this.container.addEventListener("focus",this.onFocus)}},{key:"componentWillUnmount",value:function(){this.container.removeEventListener("keydown",this.onKeyDown),this.container.removeEventListener("focus",this.onFocus)}},{key:"bindContainer",value:function(e){var t=this.props.forwardedRef;this.container=e,Object(a.isFunction)(t)?t(e):t&&"current"in t&&(t.current=e)}},{key:"getFocusableContext",value:function(e){var t=(this.props.onlyBrowserTabstops?m.a.tabbable:m.a.focusable).find(this.container),n=this.getFocusableIndex(t,e);return n>-1&&e?{index:n,target:e,focusables:t}:null}},{key:"getFocusableIndex",value:function(e,t){var n=e.indexOf(t);if(-1!==n)return n}},{key:"onKeyDown",value:function(e){this.props.onKeyDown&&this.props.onKeyDown(e);var t=this.getFocusableContext,n=this.props,r=n.cycle,o=void 0===r||r,i=n.eventToOffset,c=n.onNavigate,u=void 0===c?a.noop:c,s=n.stopNavigationEvents,l=i(e);if(void 0!==l&&s){e.stopImmediatePropagation();var f=e.target.getAttribute("role");b.includes(f)&&e.preventDefault()}if(l){var d=t(e.target.ownerDocument.activeElement);if(d){var p=d.index,m=d.focusables,h=o?function(e,t,n){var r=e+n;return r<0?t+r:r>=t?r-t:r}(p,m.length,l):p+l;h>=0&&h<m.length&&(m[h].focus(),u(h,m[h]))}}}},{key:"render",value:function(){var e=this.props,t=e.children,n=Object(o.a)(e,["children"]);return Object(i.createElement)("div",Object(r.a)({ref:this.bindContainer},Object(a.omit)(n,["stopNavigationEvents","eventToOffset","onNavigate","onKeyDown","cycle","onlyBrowserTabstops","forwardedRef"])),t)}}]),n}(i.Component),g=function(e,t){return Object(i.createElement)(v,Object(r.a)({},e,{forwardedRef:t}))};g.displayName="NavigableContainer";var y=Object(i.forwardRef)(g);t.a=Object(i.forwardRef)((function(e,t){var n=e.role,u=void 0===n?"menu":n,s=e.orientation,l=void 0===s?"vertical":s,f=Object(o.a)(e,["role","orientation"]);return Object(i.createElement)(y,Object(r.a)({ref:t,stopNavigationEvents:!0,onlyBrowserTabstops:!1,role:u,"aria-orientation":"presentation"===u?null:l,eventToOffset:function(e){var t=e.keyCode,n=[c.a],r=[c.f];return"horizontal"===l&&(n=[c.d],r=[c.c]),"both"===l&&(n=[c.d,c.a],r=[c.c,c.f]),Object(a.includes)(n,t)?1:Object(a.includes)(r,t)?-1:Object(a.includes)([c.a,c.f,c.c,c.d],t)?0:void 0}},f))}))}]);
|
1 |
/*! For license information please see index.min.js.LICENSE.txt */
|
2 |
+
this.wc=this.wc||{},this.wc.app=function(e){function t(t){for(var n,r,i=t[0],a=t[1],c=0,u=[];c<i.length;c++)r=i[c],Object.prototype.hasOwnProperty.call(o,r)&&o[r]&&u.push(o[r][0]),o[r]=0;for(n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n]);for(l&&l(t);u.length;)u.shift()()}var n={},r={24:0},o={24:0};function i(e){var t=function(e){return a.p+"chunks/"+({10:"activity-panels-help",11:"activity-panels-inbox",12:"analytics-report",13:"analytics-report-categories",14:"analytics-report-coupons",15:"analytics-report-customers",16:"analytics-report-downloads",17:"analytics-report-orders",18:"analytics-report-products",19:"analytics-report-revenue",20:"analytics-report-stock",21:"analytics-report-taxes",22:"analytics-report-variations",23:"analytics-settings",29:"customizable-dashboard",30:"dashboard",31:"dashboard-charts",34:"homescreen",36:"leaderboards",38:"marketing-overview",47:"profile-wizard",48:"store-alerts",49:"store-performance",50:"task-list",52:"wcpay-usage-modal"}[e]||e)+".min.js"}(e);return window.wcAdminAssets&&window.wcAdminAssets.version&&(t+="?ver="+window.wcAdminAssets.version),t}function a(t){if(n[t])return n[t].exports;var r=n[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,a),r.l=!0,r.exports}a.e=function(e){var t=[];r[e]?t.push(r[e]):0!==r[e]&&{0:1,6:1,10:1,11:1,12:1,17:1,23:1,30:1,31:1,34:1,36:1,38:1,47:1,48:1,49:1}[e]&&t.push(r[e]=new Promise((function(t,n){for(var o="rtl"===document.dir?"./chunks/"+e+".style.rtl.css":"./chunks/"+e+".style.css",i=a.p+o,c=document.getElementsByTagName("link"),u=0;u<c.length;u++){var s=(f=c[u]).getAttribute("data-href")||f.getAttribute("href");if("stylesheet"===f.rel&&(s===o||s===i))return t()}var l=document.getElementsByTagName("style");for(u=0;u<l.length;u++){var f;if((s=(f=l[u]).getAttribute("data-href"))===o||s===i)return t()}var d=document.createElement("link");d.rel="stylesheet",d.type="text/css",d.setAttribute("data-webpack",!0),d.onload=t,d.onerror=function(t){var o=t&&t.target&&t.target.src||i,a=new Error("Loading CSS chunk "+e+" failed.\n("+o+")");a.code="CSS_CHUNK_LOAD_FAILED",a.request=o,delete r[e],d.parentNode.removeChild(d),n(a)},d.href=i,window.wcAdminAssets&&window.wcAdminAssets.version&&(d.href+="?ver="+window.wcAdminAssets.version),document.getElementsByTagName("head")[0].appendChild(d)})).then((function(){r[e]=0})));var n=o[e];if(0!==n)if(n)t.push(n[2]);else{var c=new Promise((function(t,r){n=o[e]=[t,r]}));t.push(n[2]=c);var u,s=document.createElement("script");s.charset="utf-8",s.timeout=120,a.nc&&s.setAttribute("nonce",a.nc),s.src=i(e);var l=new Error;u=function(t){s.onerror=s.onload=null,clearTimeout(f);var n=o[e];if(0!==n){if(n){var r=t&&("load"===t.type?"missing":t.type),i=t&&t.target&&t.target.src;l.message="Loading chunk "+e+" failed.\n("+r+": "+i+")",l.name="ChunkLoadError",l.type=r,l.request=i,n[1](l)}o[e]=void 0}};var f=setTimeout((function(){u({type:"timeout",target:s})}),12e4);s.onerror=s.onload=u,document.head.appendChild(s)}return Promise.all(t)},a.m=e,a.c=n,a.d=function(e,t,n){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(a.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)a.d(n,r,function(t){return e[t]}.bind(null,r));return n},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="",a.oe=function(e){throw console.error(e),e};var c=window.__wcAdmin_webpackJsonp=window.__wcAdmin_webpackJsonp||[],u=c.push.bind(c);c.push=t,c=c.slice();for(var s=0;s<c.length;s++)t(c[s]);var l=u;return a(a.s=367)}([function(e,t){!function(){e.exports=this.wp.element}()},function(e,t,n){e.exports=n(120)()},function(e,t){!function(){e.exports=this.lodash}()},function(e,t){!function(){e.exports=this.wp.i18n}()},function(e,t,n){!function(){"use strict";var t={}.hasOwnProperty;function n(){for(var e=[],r=0;r<arguments.length;r++){var o=arguments[r];if(o){var i=typeof o;if("string"===i||"number"===i)e.push(o);else if(Array.isArray(o)&&o.length){var a=n.apply(null,o);a&&e.push(a)}else if("object"===i)for(var c in o)t.call(o,c)&&o[c]&&e.push(c)}}return e.join(" ")}e.exports?(n.default=n,e.exports=n):"function"==typeof define&&"object"==typeof define.amd&&define.amd?define("classnames",[],(function(){return n})):window.classNames=n}()},function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}n.d(t,"a",(function(){return r}))},function(e,t){!function(){e.exports=this.React}()},function(e,t,n){"use strict";function r(e){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"a",(function(){return r}))},function(e,t){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},n(t)}e.exports=n},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(54);function o(e,t){if(null==e)return{};var n,o,i=Object(r.a)(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}},function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,"a",(function(){return r}))},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},function(e,t,n){e.exports=n(119)},function(e,t){function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}e.exports=function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}n.d(t,"a",(function(){return o}))},function(e,t,n){"use strict";function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}n.d(t,"a",(function(){return o}))},function(e,t){!function(){e.exports=this.moment}()},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(41),o=n(12);function i(e,t){return!t||"object"!==Object(r.a)(t)&&"function"!=typeof t?Object(o.a)(e):t}},function(e,t,n){var r=n(135);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}},function(e,t,n){var r=n(52),o=n(13);e.exports=function(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?o(e):t}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(59);function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}}(e,t)||Object(r.a)(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},function(e,t){!function(){e.exports=this.wp.data}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(49);var o=n(59);function i(e){return function(e){if(Array.isArray(e))return Object(r.a)(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||Object(o.a)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},function(e,t){!function(){e.exports=this.wp.dataControls}()},function(e,t,n){var r=n(93),o=n(94),i=n(63),a=n(95);e.exports=function(e){return r(e)||o(e)||i(e)||a()}},function(e,t){!function(){e.exports=this.wc.navigation}()},function(e,t,n){"use strict";n.d(t,"b",(function(){return c})),n.d(t,"a",(function(){return u}));var r=n(2),o=n(106),i=n.n(o),a=n(86);function c(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=i()(e).toRgb(),r=n.r,o=n.g,a=n.b;return"rgba(".concat(r,", ").concat(o,", ").concat(a,", ").concat(t,")")}function u(e){return Object(r.get)(a.a,e,"#000")}},function(e,t,n){var r=n(100),o=n(101),i=n(63),a=n(102);e.exports=function(e,t){return r(e)||o(e,t)||i(e,t)||a()}},function(e,t,n){"use strict";var r=n(5),o=n.n(r),i=n(8),a=n(73),c=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,u=Object(a.a)((function(e){return c.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),s=n(48),l=n(38),f=n(37),d=u,p=function(e){return"theme"!==e&&"innerRef"!==e},m=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?d:p};function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function b(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(n,!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}t.a=function e(t,n){var r,o,a;void 0!==n&&(r=n.label,a=n.target,o=t.__emotion_forwardProp&&n.shouldForwardProp?function(e){return t.__emotion_forwardProp(e)&&n.shouldForwardProp(e)}:n.shouldForwardProp);var c=t.__emotion_real===t,u=c&&t.__emotion_base||t;"function"!=typeof o&&c&&(o=t.__emotion_forwardProp);var d=o||m(u),p=!d("as");return function(){var h=arguments,v=c&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&v.push("label:"+r+";"),null==h[0]||void 0===h[0].raw)v.push.apply(v,h);else{0,v.push(h[0][0]);for(var g=h.length,y=1;y<g;y++)v.push(h[y],h[0][y])}var O=Object(s.c)((function(e,t,n){return Object(i.createElement)(s.a.Consumer,null,(function(r){var c=p&&e.as||u,s="",h=[],b=e;if(null==e.theme){for(var g in b={},e)b[g]=e[g];b.theme=r}"string"==typeof e.className?s=Object(l.a)(t.registered,h,e.className):null!=e.className&&(s=e.className+" ");var y=Object(f.a)(v.concat(h),t.registered,b);Object(l.b)(t,y,"string"==typeof c);s+=t.key+"-"+y.name,void 0!==a&&(s+=" "+a);var O=p&&void 0===o?m(c):d,w={};for(var j in e)p&&"as"===j||O(j)&&(w[j]=e[j]);return w.className=s,w.ref=n||e.innerRef,Object(i.createElement)(c,w)}))}));return O.displayName=void 0!==r?r:"Styled("+("string"==typeof u?u:u.displayName||u.name||"Component")+")",O.defaultProps=t.defaultProps,O.__emotion_real=O,O.__emotion_base=u,O.__emotion_styles=v,O.__emotion_forwardProp=o,Object.defineProperty(O,"toString",{value:function(){return"."+a}}),O.withComponent=function(t,r){return e(t,void 0!==r?b({},n||{},{},r):n).apply(void 0,v)},O}}},function(e,t){!function(){e.exports=this.wp.url}()},function(e,t){!function(){e.exports=this.wc.data}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return l})),n.d(t,"c",(function(){return f})),n.d(t,"d",(function(){return d})),n.d(t,"e",(function(){return p})),n.d(t,"g",(function(){return m})),n.d(t,"h",(function(){return h})),n.d(t,"f",(function(){return b}));var r=n(52),o=n.n(r),i=n(3),a=["wcAdminSettings","preloadSettings"],c="object"===("undefined"==typeof wcSettings?"undefined":o()(wcSettings))?wcSettings:{},u=Object.keys(c).reduce((function(e,t){return a.includes(t)||(e[t]=c[t]),e}),{}),s=u.adminUrl,l=(u.countries,u.currency),f=u.locale,d=u.orderStatuses,p=(u.siteTitle,u.wcAssetUrl);function m(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(e){return e};if(a.includes(e))throw new Error(Object(i.__)("Mutable settings should be accessed via data store."));var r=u.hasOwnProperty(e)?u[e]:t;return n(r,t)}function h(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(e){return e};if(a.includes(e))throw new Error(Object(i.__)("Mutable settings should be mutated via data store."));u[e]=n(t)}function b(e){return(s||"")+e}},function(e,t){function n(){return e.exports=n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},n.apply(this,arguments)}e.exports=n},function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var r=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)},o={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},i=n(73),a=/[A-Z]|^ms/g,c=/_EMO_([^_]+?)_([^]*?)_EMO_/g,u=function(e){return 45===e.charCodeAt(1)},s=function(e){return null!=e&&"boolean"!=typeof e},l=Object(i.a)((function(e){return u(e)?e:e.replace(a,"-$&").toLowerCase()})),f=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(c,(function(e,t,n){return p={name:t,styles:n,next:p},t}))}return 1===o[e]||u(e)||"number"!=typeof t||0===t?t:t+"px"};function d(e,t,n,r){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return p={name:n.name,styles:n.styles,next:p},n.name;if(void 0!==n.styles){var o=n.next;if(void 0!==o)for(;void 0!==o;)p={name:o.name,styles:o.styles,next:p},o=o.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=d(e,t,n[o],!1);else for(var i in n){var a=n[i];if("object"!=typeof a)null!=t&&void 0!==t[a]?r+=i+"{"+t[a]+"}":s(a)&&(r+=l(i)+":"+f(i,a)+";");else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var c=d(e,t,a,!1);switch(i){case"animation":case"animationName":r+=l(i)+":"+c+";";break;default:r+=i+"{"+c+"}"}}else for(var u=0;u<a.length;u++)s(a[u])&&(r+=l(i)+":"+f(i,a[u])+";")}return r}(e,t,n);case"function":if(void 0!==e){var i=p,a=n(e);return p=i,d(e,t,a,r)}break;case"string":}if(null==t)return n;var c=t[n];return void 0===c||r?n:c}var p,m=/label:\s*([^\s;\n{]+)\s*;/g;var h=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var o=!0,i="";p=void 0;var a=e[0];null==a||void 0===a.raw?(o=!1,i+=d(n,t,a,!1)):i+=a[0];for(var c=1;c<e.length;c++)i+=d(n,t,e[c],46===i.charCodeAt(i.length-1)),o&&(i+=a[c]);m.lastIndex=0;for(var u,s="";null!==(u=m.exec(i));)s+="-"+u[1];return{name:r(i)+s,styles:i,next:p}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o}));function r(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]):r+=n+" "})),r}var o=function(e,t,n){var r=e.key+"-"+t.name;if(!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles),void 0===e.inserted[t.name]){var o=t;do{e.insert("."+r,o,e.sheet,!0);o=o.next}while(void 0!==o)}}},function(e,t,n){"use strict";function r(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}n.d(t,"a",(function(){return r}))},,function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n.d(t,"a",(function(){return r}))},function(e,t){!function(){e.exports=this.wc.date}()},,function(e,t){!function(){e.exports=this.wp.apiFetch}()},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(51),o=Object.create(null);function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.version,i=t.alternative,a=t.plugin,c=t.link,u=t.hint,s=a?" from ".concat(a):"",l=n?" and will be removed".concat(s," in version ").concat(n):"",f=i?" Please use ".concat(i," instead."):"",d=c?" See: ".concat(c):"",p=u?" Note: ".concat(u):"",m="".concat(e," is deprecated").concat(l,".").concat(f).concat(d).concat(p);m in o||(Object(r.doAction)("deprecated",e,t,m),console.warn(m),o[m]=!0)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return m})),n.d(t,"c",(function(){return h})),n.d(t,"b",(function(){return b}));var r=n(53),o=n(8);var i=function(){function e(e){this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.before=null}var t=e.prototype;return t.insert=function(e){if(this.ctr%(this.isSpeedy?65e3:1)==0){var t,n=function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t}(this);t=0===this.tags.length?this.before:this.tags[this.tags.length-1].nextSibling,this.container.insertBefore(n,t),this.tags.push(n)}var r=this.tags[this.tags.length-1];if(this.isSpeedy){var o=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(r);try{var i=105===e.charCodeAt(1)&&64===e.charCodeAt(0);o.insertRule(e,i?0:o.cssRules.length)}catch(e){0}}else r.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}();var a=function(e){function t(e,t,r){var o=t.trim().split(m);t=o;var i=o.length,a=e.length;switch(a){case 0:case 1:var c=0;for(e=0===a?"":e[0]+" ";c<i;++c)t[c]=n(e,t[c],r).trim();break;default:var u=c=0;for(t=[];c<i;++c)for(var s=0;s<a;++s)t[u++]=n(e[s]+" ",o[c],r).trim()}return t}function n(e,t,n){var r=t.charCodeAt(0);switch(33>r&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(h,"$1"+e.trim());case 58:return e.trim()+t.replace(h,"$1"+e.trim());default:if(0<1*n&&0<t.indexOf("\f"))return t.replace(h,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function r(e,t,n,i){var a=e+";",c=2*t+3*n+4*i;if(944===c){e=a.indexOf(":",9)+1;var u=a.substring(e,a.length-1).trim();return u=a.substring(0,e).trim()+u+";",1===P||2===P&&o(u,1)?"-webkit-"+u+u:u}if(0===P||2===P&&!o(a,1))return a;switch(c){case 1015:return 97===a.charCodeAt(10)?"-webkit-"+a+a:a;case 951:return 116===a.charCodeAt(3)?"-webkit-"+a+a:a;case 963:return 110===a.charCodeAt(5)?"-webkit-"+a+a:a;case 1009:if(100!==a.charCodeAt(4))break;case 969:case 942:return"-webkit-"+a+a;case 978:return"-webkit-"+a+"-moz-"+a+a;case 1019:case 983:return"-webkit-"+a+"-moz-"+a+"-ms-"+a+a;case 883:if(45===a.charCodeAt(8))return"-webkit-"+a+a;if(0<a.indexOf("image-set(",11))return a.replace(E,"$1-webkit-$2")+a;break;case 932:if(45===a.charCodeAt(4))switch(a.charCodeAt(5)){case 103:return"-webkit-box-"+a.replace("-grow","")+"-webkit-"+a+"-ms-"+a.replace("grow","positive")+a;case 115:return"-webkit-"+a+"-ms-"+a.replace("shrink","negative")+a;case 98:return"-webkit-"+a+"-ms-"+a.replace("basis","preferred-size")+a}return"-webkit-"+a+"-ms-"+a+a;case 964:return"-webkit-"+a+"-ms-flex-"+a+a;case 1023:if(99!==a.charCodeAt(8))break;return"-webkit-box-pack"+(u=a.substring(a.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+a+"-ms-flex-pack"+u+a;case 1005:return d.test(a)?a.replace(f,":-webkit-")+a.replace(f,":-moz-")+a:a;case 1e3:switch(t=(u=a.substring(13).trim()).indexOf("-")+1,u.charCodeAt(0)+u.charCodeAt(t)){case 226:u=a.replace(y,"tb");break;case 232:u=a.replace(y,"tb-rl");break;case 220:u=a.replace(y,"lr");break;default:return a}return"-webkit-"+a+"-ms-"+u+a;case 1017:if(-1===a.indexOf("sticky",9))break;case 975:switch(t=(a=e).length-10,c=(u=(33===a.charCodeAt(t)?a.substring(0,t):a).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|u.charCodeAt(7))){case 203:if(111>u.charCodeAt(8))break;case 115:a=a.replace(u,"-webkit-"+u)+";"+a;break;case 207:case 102:a=a.replace(u,"-webkit-"+(102<c?"inline-":"")+"box")+";"+a.replace(u,"-webkit-"+u)+";"+a.replace(u,"-ms-"+u+"box")+";"+a}return a+";";case 938:if(45===a.charCodeAt(5))switch(a.charCodeAt(6)){case 105:return u=a.replace("-items",""),"-webkit-"+a+"-webkit-box-"+u+"-ms-flex-"+u+a;case 115:return"-webkit-"+a+"-ms-flex-item-"+a.replace(j,"")+a;default:return"-webkit-"+a+"-ms-flex-line-pack"+a.replace("align-content","").replace(j,"")+a}break;case 973:case 989:if(45!==a.charCodeAt(3)||122===a.charCodeAt(4))break;case 931:case 953:if(!0===_.test(e))return 115===(u=e.substring(e.indexOf(":")+1)).charCodeAt(0)?r(e.replace("stretch","fill-available"),t,n,i).replace(":fill-available",":stretch"):a.replace(u,"-webkit-"+u)+a.replace(u,"-moz-"+u.replace("fill-",""))+a;break;case 962:if(a="-webkit-"+a+(102===a.charCodeAt(5)?"-ms-"+a:"")+a,211===n+i&&105===a.charCodeAt(13)&&0<a.indexOf("transform",10))return a.substring(0,a.indexOf(";",27)+1).replace(p,"$1-webkit-$2")+a}return a}function o(e,t){var n=e.indexOf(1===t?":":"{"),r=e.substring(0,3!==t?n:10);return n=e.substring(n+1,e.length-1),T(2!==t?r:r.replace(k,"$1"),n,t)}function i(e,t){var n=r(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(w," or ($1)").substring(4):"("+t+")"}function a(e,t,n,r,o,i,a,c,s,l){for(var f,d=0,p=t;d<R;++d)switch(f=N[d].call(u,e,p,n,r,o,i,a,c,s,l)){case void 0:case!1:case!0:case null:break;default:p=f}if(p!==t)return p}function c(e){return void 0!==(e=e.prefix)&&(T=null,e?"function"!=typeof e?P=1:(P=2,T=e):P=0),c}function u(e,n){var c=e;if(33>c.charCodeAt(0)&&(c=c.trim()),c=[c],0<R){var u=a(-1,n,c,c,C,x,0,0,0,0);void 0!==u&&"string"==typeof u&&(n=u)}var f=function e(n,c,u,f,d){for(var p,m,h,y,w,j=0,k=0,_=0,E=0,N=0,T=0,L=h=p=0,M=0,F=0,I=0,z=0,H=u.length,B=H-1,U="",V="",q="",W="";M<H;){if(m=u.charCodeAt(M),M===B&&0!==k+E+_+j&&(0!==k&&(m=47===k?10:47),E=_=j=0,H++,B++),0===k+E+_+j){if(M===B&&(0<F&&(U=U.replace(l,"")),0<U.trim().length)){switch(m){case 32:case 9:case 59:case 13:case 10:break;default:U+=u.charAt(M)}m=59}switch(m){case 123:for(p=(U=U.trim()).charCodeAt(0),h=1,z=++M;M<H;){switch(m=u.charCodeAt(M)){case 123:h++;break;case 125:h--;break;case 47:switch(m=u.charCodeAt(M+1)){case 42:case 47:e:{for(L=M+1;L<B;++L)switch(u.charCodeAt(L)){case 47:if(42===m&&42===u.charCodeAt(L-1)&&M+2!==L){M=L+1;break e}break;case 10:if(47===m){M=L+1;break e}}M=L}}break;case 91:m++;case 40:m++;case 34:case 39:for(;M++<B&&u.charCodeAt(M)!==m;);}if(0===h)break;M++}switch(h=u.substring(z,M),0===p&&(p=(U=U.replace(s,"").trim()).charCodeAt(0)),p){case 64:switch(0<F&&(U=U.replace(l,"")),m=U.charCodeAt(1)){case 100:case 109:case 115:case 45:F=c;break;default:F=A}if(z=(h=e(c,F,h,m,d+1)).length,0<R&&(w=a(3,h,F=t(A,U,I),c,C,x,z,m,d,f),U=F.join(""),void 0!==w&&0===(z=(h=w.trim()).length)&&(m=0,h="")),0<z)switch(m){case 115:U=U.replace(O,i);case 100:case 109:case 45:h=U+"{"+h+"}";break;case 107:h=(U=U.replace(b,"$1 $2"))+"{"+h+"}",h=1===P||2===P&&o("@"+h,3)?"@-webkit-"+h+"@"+h:"@"+h;break;default:h=U+h,112===f&&(V+=h,h="")}else h="";break;default:h=e(c,t(c,U,I),h,f,d+1)}q+=h,h=I=F=L=p=0,U="",m=u.charCodeAt(++M);break;case 125:case 59:if(1<(z=(U=(0<F?U.replace(l,""):U).trim()).length))switch(0===L&&(p=U.charCodeAt(0),45===p||96<p&&123>p)&&(z=(U=U.replace(" ",":")).length),0<R&&void 0!==(w=a(1,U,c,n,C,x,V.length,f,d,f))&&0===(z=(U=w.trim()).length)&&(U="\0\0"),p=U.charCodeAt(0),m=U.charCodeAt(1),p){case 0:break;case 64:if(105===m||99===m){W+=U+u.charAt(M);break}default:58!==U.charCodeAt(z-1)&&(V+=r(U,p,m,U.charCodeAt(2)))}I=F=L=p=0,U="",m=u.charCodeAt(++M)}}switch(m){case 13:case 10:47===k?k=0:0===1+p&&107!==f&&0<U.length&&(F=1,U+="\0"),0<R*D&&a(0,U,c,n,C,x,V.length,f,d,f),x=1,C++;break;case 59:case 125:if(0===k+E+_+j){x++;break}default:switch(x++,y=u.charAt(M),m){case 9:case 32:if(0===E+j+k)switch(N){case 44:case 58:case 9:case 32:y="";break;default:32!==m&&(y=" ")}break;case 0:y="\\0";break;case 12:y="\\f";break;case 11:y="\\v";break;case 38:0===E+k+j&&(F=I=1,y="\f"+y);break;case 108:if(0===E+k+j+S&&0<L)switch(M-L){case 2:112===N&&58===u.charCodeAt(M-3)&&(S=N);case 8:111===T&&(S=T)}break;case 58:0===E+k+j&&(L=M);break;case 44:0===k+_+E+j&&(F=1,y+="\r");break;case 34:case 39:0===k&&(E=E===m?0:0===E?m:E);break;case 91:0===E+k+_&&j++;break;case 93:0===E+k+_&&j--;break;case 41:0===E+k+j&&_--;break;case 40:if(0===E+k+j){if(0===p)switch(2*N+3*T){case 533:break;default:p=1}_++}break;case 64:0===k+_+E+j+L+h&&(h=1);break;case 42:case 47:if(!(0<E+j+_))switch(k){case 0:switch(2*m+3*u.charCodeAt(M+1)){case 235:k=47;break;case 220:z=M,k=42}break;case 42:47===m&&42===N&&z+2!==M&&(33===u.charCodeAt(z+2)&&(V+=u.substring(z,M+1)),y="",k=0)}}0===k&&(U+=y)}T=N,N=m,M++}if(0<(z=V.length)){if(F=c,0<R&&(void 0!==(w=a(2,V,F,n,C,x,z,f,d,f))&&0===(V=w).length))return W+V+q;if(V=F.join(",")+"{"+V+"}",0!=P*S){switch(2!==P||o(V,2)||(S=0),S){case 111:V=V.replace(g,":-moz-$1")+V;break;case 112:V=V.replace(v,"::-webkit-input-$1")+V.replace(v,"::-moz-$1")+V.replace(v,":-ms-input-$1")+V}S=0}}return W+V+q}(A,c,n,0,0);return 0<R&&(void 0!==(u=a(-2,f,c,c,C,x,f.length,0,0,0))&&(f=u)),"",S=0,x=C=1,f}var s=/^\0+/g,l=/[\0\r\f]/g,f=/: */g,d=/zoo|gra/,p=/([,: ])(transform)/g,m=/,\r+?/g,h=/([\t\r\n ])*\f?&/g,b=/@(k\w+)\s*(\S*)\s*/,v=/::(place)/g,g=/:(read-only)/g,y=/[svh]\w+-[tblr]{2}/,O=/\(\s*(.*)\s*\)/g,w=/([\s\S]*?);/g,j=/-self|flex-/g,k=/[^]*?(:[rp][el]a[\w-]+)[^]*/,_=/stretch|:\s*\w+\-(?:conte|avail)/,E=/([^-])(image-set\()/,x=1,C=1,S=0,P=1,A=[],N=[],R=0,T=null,D=0;return u.use=function e(t){switch(t){case void 0:case null:R=N.length=0;break;default:if("function"==typeof t)N[R++]=t;else if("object"==typeof t)for(var n=0,r=t.length;n<r;++n)e(t[n]);else D=0|!!t}return e},u.set=c,void 0!==e&&c(e),u};function c(e){e&&u.current.insert(e+"}")}var u={current:null},s=function(e,t,n,r,o,i,a,s,l,f){switch(e){case 1:switch(t.charCodeAt(0)){case 64:return u.current.insert(t+";"),"";case 108:if(98===t.charCodeAt(2))return""}break;case 2:if(0===s)return t+"/*|*/";break;case 3:switch(s){case 102:case 112:return u.current.insert(n[0]+t),"";default:return t+(0===f?"/*|*/":"")}case-2:t.split("/*|*/}").forEach(c)}},l=function(e){void 0===e&&(e={});var t,n=e.key||"css";void 0!==e.prefix&&(t={prefix:e.prefix});var r=new a(t);var o,c={};o=e.container||document.head;var l,f=document.querySelectorAll("style[data-emotion-"+n+"]");Array.prototype.forEach.call(f,(function(e){e.getAttribute("data-emotion-"+n).split(" ").forEach((function(e){c[e]=!0})),e.parentNode!==o&&o.appendChild(e)})),r.use(e.stylisPlugins)(s),l=function(e,t,n,o){var i=t.name;u.current=n,r(e,t.styles),o&&(d.inserted[i]=!0)};var d={key:n,sheet:new i({key:n,container:o,nonce:e.nonce,speedy:e.speedy}),nonce:e.nonce,inserted:c,registered:{},insert:l};return d},f=(n(130),n(38)),d=n(37),p=(Object.prototype.hasOwnProperty,Object(o.createContext)("undefined"!=typeof HTMLElement?l():null)),m=Object(o.createContext)({}),h=(p.Provider,function(e){var t=function(t,n){return Object(o.createElement)(p.Consumer,null,(function(r){return e(t,r,n)}))};return Object(o.forwardRef)(t)});var b=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Object(d.a)(t)},v=(o.Component,function e(t){for(var n=t.length,r=0,o="";r<n;r++){var i=t[r];if(null!=i){var a=void 0;switch(typeof i){case"boolean":break;case"object":if(Array.isArray(i))a=e(i);else for(var c in a="",i)i[c]&&c&&(a&&(a+=" "),a+=c);break;default:a=i}a&&(o&&(o+=" "),o+=a)}}return o});function g(e,t,n){var r=[],o=Object(f.a)(e,r,n);return r.length<2?n:o+t(r)}h((function(e,t){return Object(o.createElement)(m.Consumer,null,(function(n){var r=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=Object(d.a)(n,t.registered);return Object(f.b)(t,o,!1),t.key+"-"+o.name},o={css:r,cx:function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return g(t.registered,r,v(n))},theme:n},i=e.children(o);return!0,i}))}))},function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,"a",(function(){return r}))},function(e,t){!function(){e.exports=this.wc.tracks}()},function(e,t){!function(){e.exports=this.wp.hooks}()},function(e,t){function n(t){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=n=function(e){return typeof e}:e.exports=n=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(t)}e.exports=n},function(e,t,n){"use strict";function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}n.d(t,"a",(function(){return r}))},,function(e,t,n){"use strict";n.d(t,"c",(function(){return S})),n.d(t,"a",(function(){return x}));var r=n(24),o=n(26),i=n(16),a=n(17),c=n(12),u=n(18),s=n(21),l=n(9),f=n(0),d=n(2),p=n(41),m=n(11),h=n(6),b=n(66),v=n.n(b),g=n(61);function y(e){var t=function(e,t){if("object"!==Object(p.a)(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Object(p.a)(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Object(p.a)(t)?t:String(t)}function O(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function w(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?O(Object(n),!0).forEach((function(t){Object(h.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):O(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function j(e){var t,n,i,a,c,u,s,l,d,p,b,O,j,k=e.children,_=(t=Object(f.useState)({}),n=Object(r.a)(t,2),i=n[0],a=n[1],c=Object(f.useState)({}),u=Object(r.a)(c,2),s=u[0],l=u[1],d=Object(f.useCallback)((function(e,t,n){a((function(r){var o=r[e]||{};return w(w({},r),{},Object(h.a)({},e,w(w({},o),{},{ref:t||o.ref,fillProps:n||o.fillProps||{}})))}))}),[]),p=Object(f.useCallback)((function(e,t){a((function(n){var r=n[e],o=Object(m.a)(n,[e].map(y));return(null==r?void 0:r.ref)===t?o:n}))}),[]),b=Object(f.useCallback)((function(e,t){var n=i[e];if(n&&!v()(n.fillProps,t)){n.fillProps=t;var r=s[e];r&&r.map((function(e){return e.current.rerender()}))}}),[i,s]),O=Object(f.useCallback)((function(e,t){l((function(n){return w(w({},n),{},Object(h.a)({},e,[].concat(Object(o.a)(n[e]||[]),[t])))}))}),[]),j=Object(f.useCallback)((function(e,t){l((function(n){return n[e]?w(w({},n),{},Object(h.a)({},e,n[e].filter((function(e){return e!==t})))):n}))}),[]),Object(f.useMemo)((function(){return{slots:i,fills:s,registerSlot:d,updateSlot:b,unregisterSlot:p,registerFill:O,unregisterFill:j}}),[i,s,d,b,p,O,j]));return Object(f.createElement)(g.a.Provider,{value:_},k)}function k(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(l.a)(e);if(t){var o=Object(l.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(s.a)(this,n)}}var _=Object(f.createContext)({registerSlot:function(){},unregisterSlot:function(){},registerFill:function(){},unregisterFill:function(){},getSlot:function(){},getFills:function(){},subscribe:function(){}}),E=_.Provider,x=_.Consumer,C=function(e){Object(u.a)(n,e);var t=k(n);function n(){var e;return Object(i.a)(this,n),(e=t.apply(this,arguments)).registerSlot=e.registerSlot.bind(Object(c.a)(e)),e.registerFill=e.registerFill.bind(Object(c.a)(e)),e.unregisterSlot=e.unregisterSlot.bind(Object(c.a)(e)),e.unregisterFill=e.unregisterFill.bind(Object(c.a)(e)),e.getSlot=e.getSlot.bind(Object(c.a)(e)),e.getFills=e.getFills.bind(Object(c.a)(e)),e.hasFills=e.hasFills.bind(Object(c.a)(e)),e.subscribe=e.subscribe.bind(Object(c.a)(e)),e.slots={},e.fills={},e.listeners=[],e.contextValue={registerSlot:e.registerSlot,unregisterSlot:e.unregisterSlot,registerFill:e.registerFill,unregisterFill:e.unregisterFill,getSlot:e.getSlot,getFills:e.getFills,hasFills:e.hasFills,subscribe:e.subscribe},e}return Object(a.a)(n,[{key:"registerSlot",value:function(e,t){var n=this.slots[e];this.slots[e]=t,this.triggerListeners(),this.forceUpdateSlot(e),n&&n.forceUpdate()}},{key:"registerFill",value:function(e,t){this.fills[e]=[].concat(Object(o.a)(this.fills[e]||[]),[t]),this.forceUpdateSlot(e)}},{key:"unregisterSlot",value:function(e,t){this.slots[e]===t&&(delete this.slots[e],this.triggerListeners())}},{key:"unregisterFill",value:function(e,t){this.fills[e]=Object(d.without)(this.fills[e],t),this.resetFillOccurrence(e),this.forceUpdateSlot(e)}},{key:"getSlot",value:function(e){return this.slots[e]}},{key:"getFills",value:function(e,t){return this.slots[e]!==t?[]:Object(d.sortBy)(this.fills[e],"occurrence")}},{key:"hasFills",value:function(e){return this.fills[e]&&!!this.fills[e].length}},{key:"resetFillOccurrence",value:function(e){Object(d.forEach)(this.fills[e],(function(e){e.occurrence=void 0}))}},{key:"forceUpdateSlot",value:function(e){var t=this.getSlot(e);t&&t.forceUpdate()}},{key:"triggerListeners",value:function(){this.listeners.forEach((function(e){return e()}))}},{key:"subscribe",value:function(e){var t=this;return this.listeners.push(e),function(){t.listeners=Object(d.without)(t.listeners,e)}}},{key:"render",value:function(){return Object(f.createElement)(E,{value:this.contextValue},Object(f.createElement)(j,null,this.props.children))}}]),n}(f.Component),S=function(e){var t=Object(f.useContext)(_),n=t.getSlot,o=t.subscribe,i=Object(f.useState)(n(e)),a=Object(r.a)(i,2),c=a[0],u=a[1];return Object(f.useEffect)((function(){return u(n(e)),o((function(){u(n(e))}))}),[e]),c};t.b=C},function(e,t,n){"use strict";n.d(t,"e",(function(){return u})),n.d(t,"b",(function(){return s})),n.d(t,"c",(function(){return l})),n.d(t,"f",(function(){return f})),n.d(t,"d",(function(){return d})),n.d(t,"a",(function(){return p}));var r=n(6),o=n(26),i=n(2),a=n(3);function c(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window,t=e.navigator.platform;return-1!==t.indexOf("Mac")||Object(i.includes)(["iPad","iPhone"],t)}var u=9,s=27,l=37,f=38,d=39,p=40,m="alt",h="ctrl",b="meta",v="shift",g={primary:function(e){return e()?[b]:[h]},primaryShift:function(e){return e()?[v,b]:[h,v]},primaryAlt:function(e){return e()?[m,b]:[h,m]},secondary:function(e){return e()?[v,m,b]:[h,v,m]},access:function(e){return e()?[h,m]:[v,m]},ctrl:function(){return[h]},alt:function(){return[m]},ctrlShift:function(){return[h,v]},shift:function(){return[v]},shiftAlt:function(){return[v,m]}},y=(Object(i.mapValues)(g,(function(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c;return[].concat(Object(o.a)(e(n)),[t.toLowerCase()]).join("+")}})),Object(i.mapValues)(g,(function(e){return function(t){var n,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c,u=a(),s=(n={},Object(r.a)(n,m,u?"⌥":"Alt"),Object(r.a)(n,h,u?"⌃":"Ctrl"),Object(r.a)(n,b,"⌘"),Object(r.a)(n,v,u?"⇧":"Shift"),n),l=e(a).reduce((function(e,t){var n=Object(i.get)(s,t,t);return[].concat(Object(o.a)(e),u?[n]:[n,"+"])}),[]),f=Object(i.capitalize)(t);return[].concat(Object(o.a)(l),[f])}})));Object(i.mapValues)(y,(function(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c;return e(t,n).join("")}})),Object(i.mapValues)(g,(function(e){return function(t){var n,u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c,s=u(),l=(n={},Object(r.a)(n,v,"Shift"),Object(r.a)(n,b,s?"Command":"Control"),Object(r.a)(n,h,"Control"),Object(r.a)(n,m,s?"Option":"Alt"),Object(r.a)(n,",",Object(a.__)("Comma")),Object(r.a)(n,".",Object(a.__)("Period")),Object(r.a)(n,"`",Object(a.__)("Backtick")),n);return[].concat(Object(o.a)(e(u)),[t]).map((function(e){return Object(i.capitalize)(Object(i.get)(l,e,e))})).join(s?" ":" + ")}}));function O(e){return[m,h,b,v].filter((function(t){return e["".concat(t,"Key")]}))}Object(i.mapValues)(g,(function(e){return function(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:c,o=e(r),a=O(t);return!Object(i.xor)(o,a).length&&(n?t.key===n:Object(i.includes)(o,t.key.toLowerCase()))}}))},function(e,t,n){var r=n(150);e.exports=function(e,t){if(null==e)return{};var n,o,i=r(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(49);function o(e,t){if(e){if("string"==typeof e)return Object(r.a)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Object(r.a)(e,t):void 0}}},,function(e,t,n){"use strict";(function(e){var r=n(0),o=(n(72),Object(r.createContext)({slots:{},fills:{},registerSlot:function(){void 0!==e&&e.env},updateSlot:function(){},unregisterSlot:function(){},registerFill:function(){},unregisterFill:function(){}}));t.a=o}).call(this,n(64))},function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}},function(e,t,n){var r=n(62);e.exports=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}},function(e,t){var n,r,o=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function c(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(e){n=i}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var u,s=[],l=!1,f=-1;function d(){l&&u&&(l=!1,u.length?s=u.concat(s):f=-1,s.length&&p())}function p(){if(!l){var e=c(d);l=!0;for(var t=s.length;t;){for(u=s,s=[];++f<t;)u&&u[f].run();f=-1,t=s.length}u=null,l=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function m(e,t){this.fun=e,this.array=t}function h(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];s.push(new m(e,t)),1!==s.length||l||c(p)},m.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=h,o.addListener=h,o.once=h,o.off=h,o.removeListener=h,o.removeAllListeners=h,o.emit=h,o.prependListener=h,o.prependOnceListener=h,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},,function(e,t,n){"use strict";var r=n(103),o=n(104),i=Array.isArray;e.exports=function(e,t){if(e&&t){if(e.constructor===Object&&t.constructor===Object)return r(e,t);if(i(e)&&i(t))return o(e,t)}return e===t},e.exports.isShallowEqualObjects=r,e.exports.isShallowEqualArrays=o},,function(e,t,n){"use strict";var r=n(7),o=n(11),i=n(0),a=n(4),c=n.n(a),u=n(2),s=n(47),l=n(133),f=n(114);function d(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return p(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return p(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,c=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){c=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(c)throw i}}}}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var m=["onMouseDown","onClick"];t.a=Object(i.forwardRef)((function(e,t){var n=e.href,a=e.target,p=e.isPrimary,h=e.isSmall,b=e.isTertiary,v=e.isPressed,g=e.isBusy,y=e.isDefault,O=e.isSecondary,w=e.isLink,j=e.isDestructive,k=e.className,_=e.disabled,E=e.icon,x=e.iconSize,C=e.showTooltip,S=e.tooltipPosition,P=e.shortcut,A=e.label,N=e.children,R=e.__experimentalIsFocusable,T=Object(o.a)(e,["href","target","isPrimary","isSmall","isTertiary","isPressed","isBusy","isDefault","isSecondary","isLink","isDestructive","className","disabled","icon","iconSize","showTooltip","tooltipPosition","shortcut","label","children","__experimentalIsFocusable"]);y&&Object(s.a)("Button isDefault prop",{alternative:"isSecondary"});var D=c()("components-button",k,{"is-secondary":y||O,"is-primary":p,"is-small":h,"is-tertiary":b,"is-pressed":v,"is-busy":g,"is-link":w,"is-destructive":j,"has-text":!!E&&!!N,"has-icon":!!E}),L=_&&!R,M=void 0===n||L?"button":"a",F="a"===M?{href:n,target:a}:{type:"button",disabled:L,"aria-pressed":v};if(_&&R){F["aria-disabled"]=!0;var I,z=d(m);try{for(z.s();!(I=z.n()).done;){T[I.value]=function(e){e.stopPropagation(),e.preventDefault()}}}catch(e){z.e(e)}finally{z.f()}}var H=!L&&(C&&A||P||!!A&&(!N||Object(u.isArray)(N)&&!N.length)&&!1!==C),B=Object(i.createElement)(M,Object(r.a)({},F,T,{className:D,"aria-label":T["aria-label"]||A,ref:t}),E&&Object(i.createElement)(f.a,{icon:E,size:x}),N);return H?Object(i.createElement)(l.a,{text:A,shortcut:P,position:S},B):B}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var r={};n.r(r),n.d(r,"find",(function(){return c}));var o={};n.r(o),n.d(o,"isTabbableIndex",(function(){return l})),n.d(o,"find",(function(){return h})),n.d(o,"findPrevious",(function(){return b})),n.d(o,"findNext",(function(){return v}));var i=["[tabindex]","a[href]","button:not([disabled])",'input:not([type="hidden"]):not([disabled])',"select:not([disabled])","textarea:not([disabled])","iframe","object","embed","area[href]","[contenteditable]:not([contenteditable=false])"].join(",");function a(e){return e.offsetWidth>0||e.offsetHeight>0||e.getClientRects().length>0}function c(e){var t=e.querySelectorAll(i);return Array.from(t).filter((function(e){return!(!a(e)||function(e){return"iframe"===e.nodeName.toLowerCase()&&"-1"===e.getAttribute("tabindex")}(e))&&("AREA"!==e.nodeName||function(e){var t=e.closest("map[name]");if(!t)return!1;var n=e.ownerDocument.querySelector('img[usemap="#'+t.name+'"]');return!!n&&a(n)}(e))}))}var u=n(2);function s(e){var t=e.getAttribute("tabindex");return null===t?0:parseInt(t,10)}function l(e){return-1!==s(e)}function f(e,t){return{element:e,index:t}}function d(e){return e.element}function p(e,t){var n=s(e.element),r=s(t.element);return n===r?e.index-t.index:n-r}function m(e){return e.filter(l).map(f).sort(p).map(d).reduce((t={},function(e,n){var r=n.nodeName,o=n.type,i=n.checked,a=n.name;if("INPUT"!==r||"radio"!==o||!a)return e.concat(n);var c=t.hasOwnProperty(a);if(!i&&c)return e;if(c){var s=t[a];e=Object(u.without)(e,s)}return t[a]=n,e.concat(n)}),[]);var t}function h(e){return m(c(e))}function b(e){var t=c(e.ownerDocument.body),n=t.indexOf(e);return t.length=n,Object(u.last)(m(t))}function v(e){var t=c(e.ownerDocument.body),n=t.indexOf(e),r=t.slice(n+1).filter((function(t){return!e.contains(t)}));return Object(u.first)(m(r))}var g={focusable:r,tabbable:o}},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(6),o=n(2);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){Object(r.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var c={strong:{},em:{},s:{},del:{},ins:{},a:{attributes:["href","target","rel"]},code:{},abbr:{attributes:["title"]},sub:{},sup:{},br:{},small:{},q:{attributes:["cite"]},dfn:{attributes:["title"]},data:{attributes:["value"]},time:{attributes:["datetime"]},var:{},samp:{},kbd:{},i:{},b:{},u:{},mark:{},ruby:{},rt:{},rp:{},bdi:{attributes:["dir"]},bdo:{attributes:["dir"]},wbr:{},"#text":{}};Object(o.without)(Object.keys(c),"#text","br").forEach((function(e){c[e].children=Object(o.omit)(c,e)}));var u=a(a({},c),{audio:{attributes:["src","preload","autoplay","mediagroup","loop","muted"]},canvas:{attributes:["width","height"]},embed:{attributes:["src","type","width","height"]},img:{attributes:["alt","src","srcset","usemap","ismap","width","height"]},object:{attributes:["data","type","name","usemap","form","width","height"]},video:{attributes:["src","poster","preload","autoplay","mediagroup","loop","muted","controls","width","height"]}});function s(e){var t,n=e.nodeName.toLowerCase();return("paste"!==t?u:Object(o.omit)(a(a({},u),{},{ins:{children:u.ins.children},del:{children:u.del.children}}),["u","abbr","data","time","wbr","bdi","bdo"])).hasOwnProperty(n)||"span"===n}},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n(6),o=n(0),i=n(61);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){Object(r.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function u(e){var t=Object(o.useContext)(i.a),n=t.slots[e]||{},r=t.fills[e],a=Object(o.useMemo)((function(){return r||[]}),[r]),u=Object(o.useCallback)((function(n){t.updateSlot(e,n)}),[e,t.updateSlot]),s=Object(o.useCallback)((function(n){t.unregisterSlot(e,n)}),[e,t.unregisterSlot]),l=Object(o.useCallback)((function(n){t.registerFill(e,n)}),[e,t.registerFill]),f=Object(o.useCallback)((function(n){t.unregisterFill(e,n)}),[e,t.unregisterFill]);return c(c({},n),{},{updateSlot:u,unregisterSlot:s,fills:a,registerFill:l,unregisterFill:f})}},function(e,t,n){"use strict";(function(e){function r(t){void 0!==e&&e.env}n.d(t,"a",(function(){return r}))}).call(this,n(64))},function(e,t,n){"use strict";t.a=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}},function(e,t){!function(){e.exports=this.wc.components}()},function(e,t){function n(e,t,n,r,o,i,a){try{var c=e[i](a),u=c.value}catch(e){return void n(e)}c.done?t(u):Promise.resolve(u).then(r,o)}e.exports=function(e){return function(){var t=this,r=arguments;return new Promise((function(o,i){var a=e.apply(t,r);function c(e){n(a,o,i,c,u,"next",e)}function u(e){n(a,o,i,c,u,"throw",e)}c(void 0)}))}}},function(e,t){!function(){e.exports=this.wp.htmlEntities}()},function(e,t,n){"use strict";var r=n(2);t.a=function(e,t){return function(n){var o=e(n),i=n.displayName,a=void 0===i?n.name||"Component":i;return o.displayName="".concat(Object(r.upperFirst)(Object(r.camelCase)(t)),"(").concat(a,")"),o}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return l})),n.d(t,"b",(function(){return f})),n.d(t,"c",(function(){return d}));var r=n(6),o=n(11),i=n(4),a=n.n(i),c=n(0);function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){Object(r.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var l=function(e){return Object(c.createElement)("circle",e)},f=function(e){return Object(c.createElement)("path",e)},d=function(e){var t=e.className,n=e.isPressed,r=s(s({},Object(o.a)(e,["className","isPressed"])),{},{className:a()(t,{"is-pressed":n})||void 0,role:"img","aria-hidden":!0,focusable:!1});return Object(c.createElement)("svg",r)}},,,function(e,t,n){"use strict";function r(e){"complete"!==document.readyState&&"interactive"!==document.readyState?document.addEventListener("DOMContentLoaded",e):e()}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r=n(136),o=n(137),i=n(99);e.exports={formats:i,parse:o,stringify:r}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(9);function o(e,t,n){return(o="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var o=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Object(r.a)(e)););return e}(e,t);if(o){var i=Object.getOwnPropertyDescriptor(o,t);return i.get?i.get.call(n):i.value}})(e,t,n||e)}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(24),o=n(0);function i(e){var t=Object(o.useState)(e&&window.matchMedia(e).matches),n=Object(r.a)(t,2),i=n[0],a=n[1];return Object(o.useEffect)((function(){if(e){var t=function(){return a(window.matchMedia(e).matches)};t();var n=window.matchMedia(e);return n.addListener(t),function(){n.removeListener(t)}}}),[e]),e&&i}},function(e,t,n){"use strict";n.d(t,"b",(function(){return s})),n.d(t,"c",(function(){return v})),n.d(t,"a",(function(){return g}));var r=n(6),o=n(2),i=n(30);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){Object(r.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var u={black:"#000",white:"#fff"},s={blue:{medium:{focus:"#007cba",focusDark:"#fff"}},gray:{900:"#1e1e1e",700:"#757575",600:"#949494",400:"#ccc",200:"#ddd",100:"#f0f0f0"},darkGray:{primary:"#1e1e1e"},mediumGray:{text:"#757575"},lightGray:{ui:"#949494",secondary:"#ccc",tertiary:"#e7e8e9"}},l={900:"#191e23",800:"#23282d",700:"#32373c",600:"#40464d",500:"#555d66",400:"#606a73",300:"#6c7781",200:"#7e8993",150:"#8d96a0",100:"#8f98a1"},f={900:Object(i.b)("#000510",.9),800:Object(i.b)("#00000a",.85),700:Object(i.b)("#06060b",.8),600:Object(i.b)("#000913",.75),500:Object(i.b)("#0a1829",.7),400:Object(i.b)("#0a1829",.65),300:Object(i.b)("#0e1c2e",.62),200:Object(i.b)("#162435",.55),100:Object(i.b)("#223443",.5),backgroundFill:Object(i.b)(l[700],.7)},d={900:Object(i.b)("#304455",.45),800:Object(i.b)("#425863",.4),700:Object(i.b)("#667886",.35),600:Object(i.b)("#7b86a2",.3),500:Object(i.b)("#9197a2",.25),400:Object(i.b)("#95959c",.2),300:Object(i.b)("#829493",.15),200:Object(i.b)("#8b8b96",.1),100:Object(i.b)("#747474",.05)},p={900:"#a2aab2",800:"#b5bcc2",700:"#ccd0d4",600:"#d7dade",500:"#e2e4e7",400:"#e8eaeb",300:"#edeff0",200:"#f3f4f5",100:"#f8f9f9"},m={900:Object(i.b)(u.white,.5),800:Object(i.b)(u.white,.45),700:Object(i.b)(u.white,.4),600:Object(i.b)(u.white,.35),500:Object(i.b)(u.white,.3),400:Object(i.b)(u.white,.25),300:Object(i.b)(u.white,.2),200:Object(i.b)(u.white,.15),100:Object(i.b)(u.white,.1),backgroundFill:Object(i.b)(p[300],.8)},h={wordpress:{700:"#00669b"},dark:{900:"#0071a1"},medium:{900:"#006589",800:"#00739c",700:"#007fac",600:"#008dbe",500:"#00a0d2",400:"#33b3db",300:"#66c6e4",200:"#bfe7f3",100:"#e5f5fa",highlight:"#b3e7fe",focus:"#007cba"}},b={theme:"var( --wp-admin-theme-color, ".concat(h.wordpress[700],")"),themeDark10:"var( --wp-admin-theme-color-darker-10, ".concat(h.medium.focus,")")},v={theme:b.theme,background:u.white,backgroundDisabled:p[200],border:s.gray[700],borderFocus:b.themeDark10,borderDisabled:s.gray[400],borderLight:s.gray[200],label:l[500],textDisabled:l[150],textDark:u.white,textLight:u.black},g=c(c({},u),{},{darkGray:Object(o.merge)({},l,s.darkGray),darkOpacity:f,darkOpacityLight:d,mediumGray:s.mediumGray,lightGray:Object(o.merge)({},p,s.lightGray),lightGrayLight:m,blue:Object(o.merge)({},h,s.blue),alert:{yellow:"#f0b849",red:"#d94f4f",green:"#4ab866"},admin:b,ui:v})},function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty,o=Array.isArray,i=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),a=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},r=0;r<e.length;++r)void 0!==e[r]&&(n[r]=e[r]);return n};e.exports={arrayToObject:a,assign:function(e,t){return Object.keys(t).reduce((function(e,n){return e[n]=t[n],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],r=0;r<t.length;++r)for(var i=t[r],a=i.obj[i.prop],c=Object.keys(a),u=0;u<c.length;++u){var s=c[u],l=a[s];"object"==typeof l&&null!==l&&-1===n.indexOf(l)&&(t.push({obj:a,prop:s}),n.push(l))}return function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(o(n)){for(var r=[],i=0;i<n.length;++i)void 0!==n[i]&&r.push(n[i]);t.obj[t.prop]=r}}}(t),e},decode:function(e,t,n){var r=e.replace(/\+/g," ");if("iso-8859-1"===n)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(e){return r}},encode:function(e,t,n){if(0===e.length)return e;var r=e;if("symbol"==typeof e?r=Symbol.prototype.toString.call(e):"string"!=typeof e&&(r=String(e)),"iso-8859-1"===n)return escape(r).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var o="",a=0;a<r.length;++a){var c=r.charCodeAt(a);45===c||46===c||95===c||126===c||c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122?o+=r.charAt(a):c<128?o+=i[c]:c<2048?o+=i[192|c>>6]+i[128|63&c]:c<55296||c>=57344?o+=i[224|c>>12]+i[128|c>>6&63]+i[128|63&c]:(a+=1,c=65536+((1023&c)<<10|1023&r.charCodeAt(a)),o+=i[240|c>>18]+i[128|c>>12&63]+i[128|c>>6&63]+i[128|63&c])}return o},isBuffer:function(e){return!(!e||"object"!=typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(o(e)){for(var n=[],r=0;r<e.length;r+=1)n.push(t(e[r]));return n}return t(e)},merge:function e(t,n,i){if(!n)return t;if("object"!=typeof n){if(o(t))t.push(n);else{if(!t||"object"!=typeof t)return[t,n];(i&&(i.plainObjects||i.allowPrototypes)||!r.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(n);var c=t;return o(t)&&!o(n)&&(c=a(t,i)),o(t)&&o(n)?(n.forEach((function(n,o){if(r.call(t,o)){var a=t[o];a&&"object"==typeof a&&n&&"object"==typeof n?t[o]=e(a,n,i):t.push(n)}else t[o]=n})),t):Object.keys(n).reduce((function(t,o){var a=n[o];return r.call(t,o)?t[o]=e(t[o],a,i):t[o]=a,t}),c)}}},,,function(e,t){!function(){e.exports=this.ReactDOM}()},function(e,t,n){var r=n(8),o={display:"block",opacity:0,position:"absolute",top:0,left:0,height:"100%",width:"100%",overflow:"hidden",pointerEvents:"none",zIndex:-1},i=function(e){var t=e.onResize,n=r.useRef();return function(e,t){var n=function(){return e.current&&e.current.contentDocument&&e.current.contentDocument.defaultView};function o(){t();var e=n();e&&e.addEventListener("resize",t)}r.useEffect((function(){return n()?o():e.current&&e.current.addEventListener&&e.current.addEventListener("load",o),function(){var e=n();e&&"function"==typeof e.removeEventListener&&e.removeEventListener("resize",t)}}),[])}(n,(function(){return t(n)})),r.createElement("iframe",{style:o,src:"about:blank",ref:n,"aria-hidden":!0,tabIndex:-1,frameBorder:0})},a=function(e){return{width:null!=e?e.offsetWidth:null,height:null!=e?e.offsetHeight:null}};e.exports=function(e){void 0===e&&(e=a);var t=r.useState(e(null)),n=t[0],o=t[1],c=r.useCallback((function(t){return o(e(t.current))}),[e]);return[r.useMemo((function(){return r.createElement(i,{onResize:c})}),[c]),n]}},function(e,t,n){"use strict";t.a=function(e,t){if(!e)throw new Error("Invariant failed")}},function(e,t,n){var r=n(62);e.exports=function(e){if(Array.isArray(e))return r(e)}},function(e,t){e.exports=function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},,,function(e,t,n){"use strict";n.d(t,"b",(function(){return x})),n.d(t,"a",(function(){return C}));var r=n(7),o=n(11),i=n(0),a=n(16),c=n(17),u=n(12),s=n(83),l=n(18),f=n(21),d=n(9),p=n(2),m=n(56);function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(d.a)(e);if(t){var o=Object(d.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(f.a)(this,n)}}var b=function(e){Object(l.a)(n,e);var t=h(n);function n(){var e;return Object(a.a)(this,n),(e=t.apply(this,arguments)).isUnmounted=!1,e.bindNode=e.bindNode.bind(Object(u.a)(e)),e}return Object(c.a)(n,[{key:"componentDidMount",value:function(){(0,this.props.registerSlot)(this.props.name,this)}},{key:"componentWillUnmount",value:function(){var e=this.props.unregisterSlot;this.isUnmounted=!0,e(this.props.name,this)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.name,r=t.unregisterSlot,o=t.registerSlot;e.name!==n&&(r(e.name),o(n,this))}},{key:"bindNode",value:function(e){this.node=e}},{key:"forceUpdate",value:function(){this.isUnmounted||Object(s.a)(Object(d.a)(n.prototype),"forceUpdate",this).call(this)}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.name,r=e.fillProps,o=void 0===r?{}:r,a=e.getFills,c=Object(p.map)(a(n,this),(function(e){var t=e.occurrence,n=Object(p.isFunction)(e.children)?e.children(o):e.children;return i.Children.map(n,(function(e,n){if(!e||Object(p.isString)(e))return e;var r="".concat(t,"---").concat(e.key||n);return Object(i.cloneElement)(e,{key:r})}))})).filter(Object(p.negate)(i.isEmptyElement));return Object(i.createElement)(i.Fragment,null,Object(p.isFunction)(t)?t(c):c)}}]),n}(i.Component),v=function(e){return Object(i.createElement)(m.a,null,(function(t){var n=t.registerSlot,o=t.unregisterSlot,a=t.getFills;return Object(i.createElement)(b,Object(r.a)({},e,{registerSlot:n,unregisterSlot:o,getFills:a}))}))},g=0;function y(e){var t=e.name,n=e.children,r=e.registerFill,o=e.unregisterFill,a=Object(m.c)(t),c=Object(i.useRef)({name:t,children:n});return c.current.occurrence||(c.current.occurrence=++g),Object(i.useLayoutEffect)((function(){return r(t,c.current),function(){return o(t,c.current)}}),[]),Object(i.useLayoutEffect)((function(){c.current.children=n,a&&a.forceUpdate()}),[n]),Object(i.useLayoutEffect)((function(){t!==c.current.name&&(o(c.current.name,c.current),c.current.name=t,r(t,c.current))}),[t]),a&&a.node?(Object(p.isFunction)(n)&&(n=n(a.props.fillProps)),Object(i.createPortal)(n,a.node)):null}var O=function(e){return Object(i.createElement)(m.a,null,(function(t){var n=t.registerFill,o=t.unregisterFill;return Object(i.createElement)(y,Object(r.a)({},e,{registerFill:n,unregisterFill:o}))}))},w=n(61);function j(e){var t=e.name,n=e.fillProps,a=void 0===n?{}:n,c=e.as,u=void 0===c?"div":c,s=Object(o.a)(e,["name","fillProps","as"]),l=Object(i.useContext)(w.a),f=Object(i.useRef)();return Object(i.useLayoutEffect)((function(){return l.registerSlot(t,f,a),function(){l.unregisterSlot(t,f)}}),[l.registerSlot,l.unregisterSlot,t]),Object(i.useLayoutEffect)((function(){l.updateSlot(t,a)})),Object(i.createElement)(u,Object(r.a)({ref:f},s))}var k=n(24),_=n(71);function E(e){var t,n,r=e.name,o=e.children,a=Object(_.a)(r),c=Object(i.useRef)({rerender:(t=Object(i.useState)({}),n=Object(k.a)(t,2)[1],function(){return n({})})});return Object(i.useEffect)((function(){return a.registerFill(c),function(){a.unregisterFill(c)}}),[a.registerFill,a.unregisterFill]),a.ref&&a.ref.current?("function"==typeof o&&(o=o(a.fillProps)),Object(i.createPortal)(o,a.ref.current)):null}function x(e){var t=e.bubblesVirtually,n=Object(o.a)(e,["bubblesVirtually"]);return t?Object(i.createElement)(j,n):Object(i.createElement)(v,n)}function C(e){return Object(i.createElement)(i.Fragment,null,Object(i.createElement)(O,e),Object(i.createElement)(E,e))}},function(e,t,n){"use strict";var r=String.prototype.replace,o=/%20/g,i=n(87),a={RFC1738:"RFC1738",RFC3986:"RFC3986"};e.exports=i.assign({default:a.RFC3986,formatters:{RFC1738:function(e){return r.call(e,o,"+")},RFC3986:function(e){return String(e)}}},a)},function(e,t){e.exports=function(e){if(Array.isArray(e))return e}},function(e,t){e.exports=function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},function(e,t,n){"use strict";var r=Object.keys;e.exports=function(e,t){var n,o,i,a,c;if(e===t)return!0;if(n=r(e),o=r(t),n.length!==o.length)return!1;for(i=0;i<n.length;){if(void 0===(c=e[a=n[i]])&&!t.hasOwnProperty(a)||c!==t[a])return!1;i++}return!0}},function(e,t,n){"use strict";e.exports=function(e,t){var n;if(e===t)return!0;if(e.length!==t.length)return!1;for(n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}},,function(e,t,n){!function(t){var n=/^\s+/,r=/\s+$/,o=0,i=t.round,a=t.min,c=t.max,u=t.random;function s(e,u){if(u=u||{},(e=e||"")instanceof s)return e;if(!(this instanceof s))return new s(e,u);var l=function(e){var o={r:0,g:0,b:0},i=1,u=null,s=null,l=null,f=!1,d=!1;"string"==typeof e&&(e=function(e){e=e.replace(n,"").replace(r,"").toLowerCase();var t,o=!1;if(C[e])e=C[e],o=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};if(t=H.rgb.exec(e))return{r:t[1],g:t[2],b:t[3]};if(t=H.rgba.exec(e))return{r:t[1],g:t[2],b:t[3],a:t[4]};if(t=H.hsl.exec(e))return{h:t[1],s:t[2],l:t[3]};if(t=H.hsla.exec(e))return{h:t[1],s:t[2],l:t[3],a:t[4]};if(t=H.hsv.exec(e))return{h:t[1],s:t[2],v:t[3]};if(t=H.hsva.exec(e))return{h:t[1],s:t[2],v:t[3],a:t[4]};if(t=H.hex8.exec(e))return{r:R(t[1]),g:R(t[2]),b:R(t[3]),a:M(t[4]),format:o?"name":"hex8"};if(t=H.hex6.exec(e))return{r:R(t[1]),g:R(t[2]),b:R(t[3]),format:o?"name":"hex"};if(t=H.hex4.exec(e))return{r:R(t[1]+""+t[1]),g:R(t[2]+""+t[2]),b:R(t[3]+""+t[3]),a:M(t[4]+""+t[4]),format:o?"name":"hex8"};if(t=H.hex3.exec(e))return{r:R(t[1]+""+t[1]),g:R(t[2]+""+t[2]),b:R(t[3]+""+t[3]),format:o?"name":"hex"};return!1}(e));"object"==typeof e&&(B(e.r)&&B(e.g)&&B(e.b)?(p=e.r,m=e.g,h=e.b,o={r:255*A(p,255),g:255*A(m,255),b:255*A(h,255)},f=!0,d="%"===String(e.r).substr(-1)?"prgb":"rgb"):B(e.h)&&B(e.s)&&B(e.v)?(u=D(e.s),s=D(e.v),o=function(e,n,r){e=6*A(e,360),n=A(n,100),r=A(r,100);var o=t.floor(e),i=e-o,a=r*(1-n),c=r*(1-i*n),u=r*(1-(1-i)*n),s=o%6;return{r:255*[r,c,a,a,u,r][s],g:255*[u,r,r,c,a,a][s],b:255*[a,a,u,r,r,c][s]}}(e.h,u,s),f=!0,d="hsv"):B(e.h)&&B(e.s)&&B(e.l)&&(u=D(e.s),l=D(e.l),o=function(e,t,n){var r,o,i;function a(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(e=A(e,360),t=A(t,100),n=A(n,100),0===t)r=o=i=n;else{var c=n<.5?n*(1+t):n+t-n*t,u=2*n-c;r=a(u,c,e+1/3),o=a(u,c,e),i=a(u,c,e-1/3)}return{r:255*r,g:255*o,b:255*i}}(e.h,u,l),f=!0,d="hsl"),e.hasOwnProperty("a")&&(i=e.a));var p,m,h;return i=P(i),{ok:f,format:e.format||d,r:a(255,c(o.r,0)),g:a(255,c(o.g,0)),b:a(255,c(o.b,0)),a:i}}(e);this._originalInput=e,this._r=l.r,this._g=l.g,this._b=l.b,this._a=l.a,this._roundA=i(100*this._a)/100,this._format=u.format||l.format,this._gradientType=u.gradientType,this._r<1&&(this._r=i(this._r)),this._g<1&&(this._g=i(this._g)),this._b<1&&(this._b=i(this._b)),this._ok=l.ok,this._tc_id=o++}function l(e,t,n){e=A(e,255),t=A(t,255),n=A(n,255);var r,o,i=c(e,t,n),u=a(e,t,n),s=(i+u)/2;if(i==u)r=o=0;else{var l=i-u;switch(o=s>.5?l/(2-i-u):l/(i+u),i){case e:r=(t-n)/l+(t<n?6:0);break;case t:r=(n-e)/l+2;break;case n:r=(e-t)/l+4}r/=6}return{h:r,s:o,l:s}}function f(e,t,n){e=A(e,255),t=A(t,255),n=A(n,255);var r,o,i=c(e,t,n),u=a(e,t,n),s=i,l=i-u;if(o=0===i?0:l/i,i==u)r=0;else{switch(i){case e:r=(t-n)/l+(t<n?6:0);break;case t:r=(n-e)/l+2;break;case n:r=(e-t)/l+4}r/=6}return{h:r,s:o,v:s}}function d(e,t,n,r){var o=[T(i(e).toString(16)),T(i(t).toString(16)),T(i(n).toString(16))];return r&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function p(e,t,n,r){return[T(L(r)),T(i(e).toString(16)),T(i(t).toString(16)),T(i(n).toString(16))].join("")}function m(e,t){t=0===t?0:t||10;var n=s(e).toHsl();return n.s-=t/100,n.s=N(n.s),s(n)}function h(e,t){t=0===t?0:t||10;var n=s(e).toHsl();return n.s+=t/100,n.s=N(n.s),s(n)}function b(e){return s(e).desaturate(100)}function v(e,t){t=0===t?0:t||10;var n=s(e).toHsl();return n.l+=t/100,n.l=N(n.l),s(n)}function g(e,t){t=0===t?0:t||10;var n=s(e).toRgb();return n.r=c(0,a(255,n.r-i(-t/100*255))),n.g=c(0,a(255,n.g-i(-t/100*255))),n.b=c(0,a(255,n.b-i(-t/100*255))),s(n)}function y(e,t){t=0===t?0:t||10;var n=s(e).toHsl();return n.l-=t/100,n.l=N(n.l),s(n)}function O(e,t){var n=s(e).toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,s(n)}function w(e){var t=s(e).toHsl();return t.h=(t.h+180)%360,s(t)}function j(e){var t=s(e).toHsl(),n=t.h;return[s(e),s({h:(n+120)%360,s:t.s,l:t.l}),s({h:(n+240)%360,s:t.s,l:t.l})]}function k(e){var t=s(e).toHsl(),n=t.h;return[s(e),s({h:(n+90)%360,s:t.s,l:t.l}),s({h:(n+180)%360,s:t.s,l:t.l}),s({h:(n+270)%360,s:t.s,l:t.l})]}function _(e){var t=s(e).toHsl(),n=t.h;return[s(e),s({h:(n+72)%360,s:t.s,l:t.l}),s({h:(n+216)%360,s:t.s,l:t.l})]}function E(e,t,n){t=t||6,n=n||30;var r=s(e).toHsl(),o=360/n,i=[s(e)];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,i.push(s(r));return i}function x(e,t){t=t||6;for(var n=s(e).toHsv(),r=n.h,o=n.s,i=n.v,a=[],c=1/t;t--;)a.push(s({h:r,s:o,v:i})),i=(i+c)%1;return a}s.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,n,r,o=this.toRgb();return e=o.r/255,n=o.g/255,r=o.b/255,.2126*(e<=.03928?e/12.92:t.pow((e+.055)/1.055,2.4))+.7152*(n<=.03928?n/12.92:t.pow((n+.055)/1.055,2.4))+.0722*(r<=.03928?r/12.92:t.pow((r+.055)/1.055,2.4))},setAlpha:function(e){return this._a=P(e),this._roundA=i(100*this._a)/100,this},toHsv:function(){var e=f(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=f(this._r,this._g,this._b),t=i(360*e.h),n=i(100*e.s),r=i(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+r+"%)":"hsva("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var e=l(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=l(this._r,this._g,this._b),t=i(360*e.h),n=i(100*e.s),r=i(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+r+"%)":"hsla("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(e){return d(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,n,r,o){var a=[T(i(e).toString(16)),T(i(t).toString(16)),T(i(n).toString(16)),T(L(r))];if(o&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)&&a[3].charAt(0)==a[3].charAt(1))return a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0);return a.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:i(this._r),g:i(this._g),b:i(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+i(this._r)+", "+i(this._g)+", "+i(this._b)+")":"rgba("+i(this._r)+", "+i(this._g)+", "+i(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:i(100*A(this._r,255))+"%",g:i(100*A(this._g,255))+"%",b:i(100*A(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+i(100*A(this._r,255))+"%, "+i(100*A(this._g,255))+"%, "+i(100*A(this._b,255))+"%)":"rgba("+i(100*A(this._r,255))+"%, "+i(100*A(this._g,255))+"%, "+i(100*A(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(S[d(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+p(this._r,this._g,this._b,this._a),n=t,r=this._gradientType?"GradientType = 1, ":"";if(e){var o=s(e);n="#"+p(o._r,o._g,o._b,o._a)}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var n=!1,r=this._a<1&&this._a>=0;return t||!r||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return s(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(v,arguments)},brighten:function(){return this._applyModification(g,arguments)},darken:function(){return this._applyModification(y,arguments)},desaturate:function(){return this._applyModification(m,arguments)},saturate:function(){return this._applyModification(h,arguments)},greyscale:function(){return this._applyModification(b,arguments)},spin:function(){return this._applyModification(O,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(E,arguments)},complement:function(){return this._applyCombination(w,arguments)},monochromatic:function(){return this._applyCombination(x,arguments)},splitcomplement:function(){return this._applyCombination(_,arguments)},triad:function(){return this._applyCombination(j,arguments)},tetrad:function(){return this._applyCombination(k,arguments)}},s.fromRatio=function(e,t){if("object"==typeof e){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]="a"===r?e[r]:D(e[r]));e=n}return s(e,t)},s.equals=function(e,t){return!(!e||!t)&&s(e).toRgbString()==s(t).toRgbString()},s.random=function(){return s.fromRatio({r:u(),g:u(),b:u()})},s.mix=function(e,t,n){n=0===n?0:n||50;var r=s(e).toRgb(),o=s(t).toRgb(),i=n/100;return s({r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b,a:(o.a-r.a)*i+r.a})},s.readability=function(e,n){var r=s(e),o=s(n);return(t.max(r.getLuminance(),o.getLuminance())+.05)/(t.min(r.getLuminance(),o.getLuminance())+.05)},s.isReadable=function(e,t,n){var r,o,i=s.readability(e,t);switch(o=!1,(r=function(e){var t,n;t=((e=e||{level:"AA",size:"small"}).level||"AA").toUpperCase(),n=(e.size||"small").toLowerCase(),"AA"!==t&&"AAA"!==t&&(t="AA");"small"!==n&&"large"!==n&&(n="small");return{level:t,size:n}}(n)).level+r.size){case"AAsmall":case"AAAlarge":o=i>=4.5;break;case"AAlarge":o=i>=3;break;case"AAAsmall":o=i>=7}return o},s.mostReadable=function(e,t,n){var r,o,i,a,c=null,u=0;o=(n=n||{}).includeFallbackColors,i=n.level,a=n.size;for(var l=0;l<t.length;l++)(r=s.readability(e,t[l]))>u&&(u=r,c=s(t[l]));return s.isReadable(e,c,{level:i,size:a})||!o?c:(n.includeFallbackColors=!1,s.mostReadable(e,["#fff","#000"],n))};var C=s.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},S=s.hexNames=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}(C);function P(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function A(e,n){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var r=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=a(n,c(0,parseFloat(e))),r&&(e=parseInt(e*n,10)/100),t.abs(e-n)<1e-6?1:e%n/parseFloat(n)}function N(e){return a(1,c(0,e))}function R(e){return parseInt(e,16)}function T(e){return 1==e.length?"0"+e:""+e}function D(e){return e<=1&&(e=100*e+"%"),e}function L(e){return t.round(255*parseFloat(e)).toString(16)}function M(e){return R(e)/255}var F,I,z,H=(I="[\\s|\\(]+("+(F="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+F+")[,|\\s]+("+F+")\\s*\\)?",z="[\\s|\\(]+("+F+")[,|\\s]+("+F+")[,|\\s]+("+F+")[,|\\s]+("+F+")\\s*\\)?",{CSS_UNIT:new RegExp(F),rgb:new RegExp("rgb"+I),rgba:new RegExp("rgba"+z),hsl:new RegExp("hsl"+I),hsla:new RegExp("hsla"+z),hsv:new RegExp("hsv"+I),hsva:new RegExp("hsva"+z),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function B(e){return!!H.CSS_UNIT.exec(e)}e.exports?e.exports=s:"function"==typeof define&&define.amd?define((function(){return s})):window.tinycolor=s}(Math)},function(e,t,n){"use strict";var r=n(7),o=n(11),i=n(0);t.a=function(e){var t=e.icon,n=e.size,a=void 0===n?20:n,c=e.className,u=Object(o.a)(e,["icon","size","className"]),s=["dashicon","dashicons","dashicons-"+t,c].filter(Boolean).join(" ");return Object(i.createElement)("span",Object(r.a)({className:s,width:a,height:a},u))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return O})),n.d(t,"c",(function(){return j})),n.d(t,"b",(function(){return m})),n.d(t,"e",(function(){return h})),n.d(t,"d",(function(){return p}));var r=n(7);function o(e){return"/"===e.charAt(0)}function i(e,t){for(var n=t,r=n+1,o=e.length;r<o;n+=1,r+=1)e[n]=e[r];e.pop()}var a=function(e,t){void 0===t&&(t="");var n,r=e&&e.split("/")||[],a=t&&t.split("/")||[],c=e&&o(e),u=t&&o(t),s=c||u;if(e&&o(e)?a=r:r.length&&(a.pop(),a=a.concat(r)),!a.length)return"/";if(a.length){var l=a[a.length-1];n="."===l||".."===l||""===l}else n=!1;for(var f=0,d=a.length;d>=0;d--){var p=a[d];"."===p?i(a,d):".."===p?(i(a,d),f++):f&&(i(a,d),f--)}if(!s)for(;f--;f)a.unshift("..");!s||""===a[0]||a[0]&&o(a[0])||a.unshift("");var m=a.join("/");return n&&"/"!==m.substr(-1)&&(m+="/"),m};function c(e){return e.valueOf?e.valueOf():Object.prototype.valueOf.call(e)}var u=function e(t,n){if(t===n)return!0;if(null==t||null==n)return!1;if(Array.isArray(t))return Array.isArray(n)&&t.length===n.length&&t.every((function(t,r){return e(t,n[r])}));if("object"==typeof t||"object"==typeof n){var r=c(t),o=c(n);return r!==t||o!==n?e(r,o):Object.keys(Object.assign({},t,n)).every((function(r){return e(t[r],n[r])}))}return!1},s=n(92);function l(e){return"/"===e.charAt(0)?e:"/"+e}function f(e,t){return function(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(t.length))}(e,t)?e.substr(t.length):e}function d(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function p(e){var t=e.pathname,n=e.search,r=e.hash,o=t||"/";return n&&"?"!==n&&(o+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(o+="#"===r.charAt(0)?r:"#"+r),o}function m(e,t,n,o){var i;"string"==typeof e?(i=function(e){var t=e||"/",n="",r="",o=t.indexOf("#");-1!==o&&(r=t.substr(o),t=t.substr(0,o));var i=t.indexOf("?");return-1!==i&&(n=t.substr(i),t=t.substr(0,i)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}(e)).state=t:(void 0===(i=Object(r.a)({},e)).pathname&&(i.pathname=""),i.search?"?"!==i.search.charAt(0)&&(i.search="?"+i.search):i.search="",i.hash?"#"!==i.hash.charAt(0)&&(i.hash="#"+i.hash):i.hash="",void 0!==t&&void 0===i.state&&(i.state=t));try{i.pathname=decodeURI(i.pathname)}catch(e){throw e instanceof URIError?new URIError('Pathname "'+i.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):e}return n&&(i.key=n),o?i.pathname?"/"!==i.pathname.charAt(0)&&(i.pathname=a(i.pathname,o.pathname)):i.pathname=o.pathname:i.pathname||(i.pathname="/"),i}function h(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash&&e.key===t.key&&u(e.state,t.state)}function b(){var e=null;var t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,o){if(null!=e){var i="function"==typeof e?e(t,n):e;"string"==typeof i?"function"==typeof r?r(i,o):o(!0):o(!1!==i)}else o(!0)},appendListener:function(e){var n=!0;function r(){n&&e.apply(void 0,arguments)}return t.push(r),function(){n=!1,t=t.filter((function(e){return e!==r}))}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t.forEach((function(e){return e.apply(void 0,n)}))}}}var v=!("undefined"==typeof window||!window.document||!window.document.createElement);function g(e,t){t(window.confirm(e))}function y(){try{return window.history.state||{}}catch(e){return{}}}function O(e){void 0===e&&(e={}),v||Object(s.a)(!1);var t,n=window.history,o=(-1===(t=window.navigator.userAgent).indexOf("Android 2.")&&-1===t.indexOf("Android 4.0")||-1===t.indexOf("Mobile Safari")||-1!==t.indexOf("Chrome")||-1!==t.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history,i=!(-1===window.navigator.userAgent.indexOf("Trident")),a=e,c=a.forceRefresh,u=void 0!==c&&c,h=a.getUserConfirmation,O=void 0===h?g:h,w=a.keyLength,j=void 0===w?6:w,k=e.basename?d(l(e.basename)):"";function _(e){var t=e||{},n=t.key,r=t.state,o=window.location,i=o.pathname+o.search+o.hash;return k&&(i=f(i,k)),m(i,r,n)}function E(){return Math.random().toString(36).substr(2,j)}var x=b();function C(e){Object(r.a)(z,e),z.length=n.length,x.notifyListeners(z.location,z.action)}function S(e){(function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")})(e)||N(_(e.state))}function P(){N(_(y()))}var A=!1;function N(e){if(A)A=!1,C();else{x.confirmTransitionTo(e,"POP",O,(function(t){t?C({action:"POP",location:e}):function(e){var t=z.location,n=T.indexOf(t.key);-1===n&&(n=0);var r=T.indexOf(e.key);-1===r&&(r=0);var o=n-r;o&&(A=!0,L(o))}(e)}))}}var R=_(y()),T=[R.key];function D(e){return k+p(e)}function L(e){n.go(e)}var M=0;function F(e){1===(M+=e)&&1===e?(window.addEventListener("popstate",S),i&&window.addEventListener("hashchange",P)):0===M&&(window.removeEventListener("popstate",S),i&&window.removeEventListener("hashchange",P))}var I=!1;var z={length:n.length,action:"POP",location:R,createHref:D,push:function(e,t){var r=m(e,t,E(),z.location);x.confirmTransitionTo(r,"PUSH",O,(function(e){if(e){var t=D(r),i=r.key,a=r.state;if(o)if(n.pushState({key:i,state:a},null,t),u)window.location.href=t;else{var c=T.indexOf(z.location.key),s=T.slice(0,c+1);s.push(r.key),T=s,C({action:"PUSH",location:r})}else window.location.href=t}}))},replace:function(e,t){var r=m(e,t,E(),z.location);x.confirmTransitionTo(r,"REPLACE",O,(function(e){if(e){var t=D(r),i=r.key,a=r.state;if(o)if(n.replaceState({key:i,state:a},null,t),u)window.location.replace(t);else{var c=T.indexOf(z.location.key);-1!==c&&(T[c]=r.key),C({action:"REPLACE",location:r})}else window.location.replace(t)}}))},go:L,goBack:function(){L(-1)},goForward:function(){L(1)},block:function(e){void 0===e&&(e=!1);var t=x.setPrompt(e);return I||(F(1),I=!0),function(){return I&&(I=!1,F(-1)),t()}},listen:function(e){var t=x.appendListener(e);return F(1),function(){F(-1),t()}}};return z}function w(e,t,n){return Math.min(Math.max(e,t),n)}function j(e){void 0===e&&(e={});var t=e,n=t.getUserConfirmation,o=t.initialEntries,i=void 0===o?["/"]:o,a=t.initialIndex,c=void 0===a?0:a,u=t.keyLength,s=void 0===u?6:u,l=b();function f(e){Object(r.a)(O,e),O.length=O.entries.length,l.notifyListeners(O.location,O.action)}function d(){return Math.random().toString(36).substr(2,s)}var h=w(c,0,i.length-1),v=i.map((function(e){return m(e,void 0,"string"==typeof e?d():e.key||d())})),g=p;function y(e){var t=w(O.index+e,0,O.entries.length-1),r=O.entries[t];l.confirmTransitionTo(r,"POP",n,(function(e){e?f({action:"POP",location:r,index:t}):f()}))}var O={length:v.length,action:"POP",location:v[h],index:h,entries:v,createHref:g,push:function(e,t){var r=m(e,t,d(),O.location);l.confirmTransitionTo(r,"PUSH",n,(function(e){if(e){var t=O.index+1,n=O.entries.slice(0);n.length>t?n.splice(t,n.length-t,r):n.push(r),f({action:"PUSH",location:r,index:t,entries:n})}}))},replace:function(e,t){var r=m(e,t,d(),O.location);l.confirmTransitionTo(r,"REPLACE",n,(function(e){e&&(O.entries[O.index]=r,f({action:"REPLACE",location:r}))}))},go:y,goBack:function(){y(-1)},goForward:function(){y(1)},canGo:function(e){var t=O.index+e;return t>=0&&t<O.entries.length},block:function(e){return void 0===e&&(e=!1),l.setPrompt(e)},listen:function(e){return l.appendListener(e)}};return O}},function(e,t,n){"use strict";var r=n(16),o=n(17),i=n(12),a=n(18),c=n(21),u=n(9),s=n(0),l=n(77),f=n(57),d=n(69);function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(u.a)(e);if(t){var o=Object(u.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(c.a)(this,n)}}var m=Object(l.a)((function(e){return function(t){Object(a.a)(c,t);var n=p(c);function c(){var e;return Object(r.a)(this,c),(e=n.apply(this,arguments)).focusContainRef=Object(s.createRef)(),e.handleTabBehaviour=e.handleTabBehaviour.bind(Object(i.a)(e)),e}return Object(o.a)(c,[{key:"handleTabBehaviour",value:function(e){if(e.keyCode===f.e){var t=d.a.tabbable.find(this.focusContainRef.current);if(t.length){var n=t[0],r=t[t.length-1];e.shiftKey&&e.target===n?(e.preventDefault(),r.focus()):(e.shiftKey||e.target!==r)&&t.includes(e.target)||(e.preventDefault(),n.focus())}}}},{key:"render",value:function(){return Object(s.createElement)("div",{onKeyDown:this.handleTabBehaviour,ref:this.focusContainRef,tabIndex:"-1"},Object(s.createElement)(e,this.props))}}]),c}(s.Component)}),"withConstrainedTabbing");t.a=m},function(e,t,n){"use strict";var r=n(7),o=n(16),i=n(17),a=n(12),c=n(18),u=n(21),s=n(9),l=n(0),f=n(2),d=n(77);function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(s.a)(e);if(t){var o=Object(s.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(u.a)(this,n)}}var m=["button","submit"];t.a=Object(d.a)((function(e){return function(t){Object(c.a)(u,t);var n=p(u);function u(){var e;return Object(o.a)(this,u),(e=n.apply(this,arguments)).bindNode=e.bindNode.bind(Object(a.a)(e)),e.cancelBlurCheck=e.cancelBlurCheck.bind(Object(a.a)(e)),e.queueBlurCheck=e.queueBlurCheck.bind(Object(a.a)(e)),e.normalizeButtonFocus=e.normalizeButtonFocus.bind(Object(a.a)(e)),e}return Object(i.a)(u,[{key:"componentWillUnmount",value:function(){this.cancelBlurCheck()}},{key:"bindNode",value:function(e){e?this.node=e:(delete this.node,this.cancelBlurCheck())}},{key:"queueBlurCheck",value:function(e){var t=this;e.persist(),this.preventBlurCheck||(this.blurCheckTimeout=setTimeout((function(){document.hasFocus()?"function"==typeof t.node.handleFocusOutside&&t.node.handleFocusOutside(e):e.preventDefault()}),0))}},{key:"cancelBlurCheck",value:function(){clearTimeout(this.blurCheckTimeout)}},{key:"normalizeButtonFocus",value:function(e){var t=e.type,n=e.target;Object(f.includes)(["mouseup","touchend"],t)?this.preventBlurCheck=!1:function(e){switch(e.nodeName){case"A":case"BUTTON":return!0;case"INPUT":return Object(f.includes)(m,e.type)}return!1}(n)&&(this.preventBlurCheck=!0)}},{key:"render",value:function(){return Object(l.createElement)("div",{onFocus:this.cancelBlurCheck,onMouseDown:this.normalizeButtonFocus,onMouseUp:this.normalizeButtonFocus,onTouchStart:this.normalizeButtonFocus,onTouchEnd:this.normalizeButtonFocus,onBlur:this.queueBlurCheck},Object(l.createElement)(e,Object(r.a)({ref:this.bindNode},this.props)))}}]),u}(l.Component)}),"withFocusOutside")},function(e,t,n){"use strict";var r=n(7),o=n(11),i=n(0);function a(e){e.stopPropagation()}t.a=Object(i.forwardRef)((function(e,t){var n=e.children,c=Object(o.a)(e,["children"]);return Object(i.createElement)("div",Object(r.a)({},c,{ref:t,onMouseDown:a}),n)}))},,function(e,t,n){"use strict";var r=n(26),o=n(16),i=n(17),a=n(18),c=n(21),u=n(9),s=n(0),l=n(2),f=n(77),d=n(12);function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(u.a)(e);if(t){var o=Object(u.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(c.a)(this,n)}}var m=Object(s.createContext)({focusHistory:[]}),h=m.Provider,b=m.Consumer;h.displayName="FocusReturnProvider",b.displayName="FocusReturnConsumer";s.Component;function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(u.a)(e);if(t){var o=Object(u.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(c.a)(this,n)}}t.a=Object(f.a)((function e(t){if((c=t)instanceof s.Component||"function"==typeof c){var n=t;return e({})(n)}var c,u=t.onFocusReturn,f=void 0===u?l.stubTrue:u;return function(e){var t=function(t){Object(a.a)(c,t);var n=v(c);function c(){var e;return Object(o.a)(this,c),(e=n.apply(this,arguments)).ownFocusedElements=new Set,e.activeElementOnMount=document.activeElement,e.setIsFocusedFalse=function(){return e.isFocused=!1},e.setIsFocusedTrue=function(t){e.ownFocusedElements.add(t.target),e.isFocused=!0},e}return Object(i.a)(c,[{key:"componentWillUnmount",value:function(){var e=this.activeElementOnMount,t=this.isFocused,n=this.ownFocusedElements;if(t&&!1!==f())for(var o,i=[].concat(Object(r.a)(l.without.apply(void 0,[this.props.focus.focusHistory].concat(Object(r.a)(n)))),[e]);o=i.pop();)if(document.body.contains(o))return void o.focus()}},{key:"render",value:function(){return Object(s.createElement)("div",{onFocus:this.setIsFocusedTrue,onBlur:this.setIsFocusedFalse},Object(s.createElement)(e,this.props.childProps))}}]),c}(s.Component);return function(e){return Object(s.createElement)(b,null,(function(n){return Object(s.createElement)(t,{childProps:e,focus:n})}))}}}),"withFocusReturn")},function(e,t,n){"use strict";var r=n(6),o=n(7),i=n(11),a=n(0),c=n(78),u=n(107);function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){Object(r.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}t.a=function(e){var t=e.icon,n=void 0===t?null:t,r=e.size,s=Object(i.a)(e,["icon","size"]),f=r||20;if("string"==typeof n)return Object(a.createElement)(u.a,Object(o.a)({icon:n,size:f},s));if(n&&u.a===n.type)return Object(a.cloneElement)(n,l({size:f},s));var d=r||24;if("function"==typeof n)return n.prototype instanceof a.Component?Object(a.createElement)(n,l({size:d},s)):n(l({size:d},s));if(n&&("svg"===n.type||n.type===c.c)){var p=l(l({width:d,height:d},n.props),s);return Object(a.createElement)(c.c,p)}return Object(a.isValidElement)(n)?Object(a.cloneElement)(n,l({size:d},s)):n}},function(e,t,n){"use strict";var r=n(6),o=n(24),i=n(4),a=n.n(i);t.a=function(e){var t=e.type,n=e.options,i=void 0===n?{}:n,c=e.children;if("appear"===t){var u,s=i.origin,l=(void 0===s?"top":s).split(" "),f=Object(o.a)(l,2),d=f[0],p=f[1],m=void 0===p?"center":p;return c({className:a()("components-animate__appear",(u={},Object(r.a)(u,"is-from-"+m,"center"!==m),Object(r.a)(u,"is-from-"+d,"middle"!==d),u))})}if("slide-in"===t){var h=i.origin,b=void 0===h?"left":h;return c({className:a()("components-animate__slide-in","is-from-"+b)})}return c("loading"===t?{className:a()("components-animate__loading")}:{})}},function(e,t,n){"use strict";var r=n(0),o=n(2);t.a=function(e){var t,n,i=e.shortcut,a=e.className;return i?(Object(o.isString)(i)&&(t=i),Object(o.isObject)(i)&&(t=i.display,n=i.ariaLabel),Object(r.createElement)("span",{className:a,"aria-label":n},t)):null}},function(e,t,n){"use strict";var r=n(7),o=n(24),i=n(11),a=n(0),c=n(4),u=n.n(c),s=n(129),l=n(69),f=n(57),d=n(47),p=n(180),m=n(207),h=n(257),b=n(6);function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?v(Object(n),!0).forEach((function(t){Object(b.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function y(e,t,n,r,o,i,a){var c=t.width,u="rtl"===document.documentElement.dir;"left"===n&&u?n="right":"right"===n&&u&&(n="left"),"left"===r&&u?r="right":"right"===r&&u&&(r="left");var s=Math.round(e.left+e.width/2),l={popoverLeft:s,contentWidth:(s-c/2>0?c/2:s)+(s+c/2>window.innerWidth?window.innerWidth-s:c/2)},f=e.left;"right"===r?f=e.right:"middle"!==i&&(f=s);var d=e.right;"left"===r?d=e.left:"middle"!==i&&(d=s);var p,m={popoverLeft:f,contentWidth:f-c>0?c:f},h={popoverLeft:d,contentWidth:d+c>window.innerWidth?window.innerWidth-d:c},b=n,v=null;if(!o)if("center"===n&&l.contentWidth===c)b="center";else if("left"===n&&m.contentWidth===c)b="left";else if("right"===n&&h.contentWidth===c)b="right";else{var g="left"===(b=m.contentWidth>h.contentWidth?"left":"right")?m.contentWidth:h.contentWidth;v=g!==c?g:null}if(p="center"===b?l.popoverLeft:"left"===b?m.popoverLeft:h.popoverLeft,a){var y=a.getBoundingClientRect();p=Math.min(p,y.right-c)}return{xAxis:b,popoverLeft:p,contentWidth:v}}function O(e,t,n,r,o,i,a){var c=t.height;if(o){var u=(Object(s.b)(i)||document.body).getBoundingClientRect().top+c-a;if(e.top<=u)return{yAxis:n,popoverTop:Math.min(e.bottom,u)}}var l=e.top+e.height/2;"bottom"===r?l=e.bottom:"top"===r&&(l=e.top);var f={popoverTop:l,contentHeight:(l-c/2>0?c/2:l)+(l+c/2>window.innerHeight?window.innerHeight-l:c/2)},d={popoverTop:e.top,contentHeight:e.top-10-c>0?c:e.top-10},p={popoverTop:e.bottom,contentHeight:e.bottom+10+c>window.innerHeight?window.innerHeight-10-e.bottom:c},m=n,h=null;if(!o)if("middle"===n&&f.contentHeight===c)m="middle";else if("top"===n&&d.contentHeight===c)m="top";else if("bottom"===n&&p.contentHeight===c)m="bottom";else{var b="top"===(m=d.contentHeight>p.contentHeight?"top":"bottom")?d.contentHeight:p.contentHeight;h=b!==c?b:null}return{yAxis:m,popoverTop:"middle"===m?f.popoverTop:"top"===m?d.popoverTop:p.popoverTop,contentHeight:h}}var w=n(113),j=n(109),k=n(16),_=n(17),E=n(18),x=n(21),C=n(9),S=n(110);function P(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(C.a)(e);if(t){var o=Object(C.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(x.a)(this,n)}}var A=function(e){Object(E.a)(n,e);var t=P(n);function n(){return Object(k.a)(this,n),t.apply(this,arguments)}return Object(_.a)(n,[{key:"handleFocusOutside",value:function(e){this.props.onFocusOutside(e)}},{key:"render",value:function(){return this.props.children}}]),n}(a.Component),N=Object(S.a)(A),R=n(68);function T(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(C.a)(e);if(t){var o=Object(C.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(x.a)(this,n)}}var D=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.htmlDocument,n=void 0===t?document:t,r=e.className,o=void 0===r?"lockscroll":r,i=0,c=0;function u(e){var t=n.scrollingElement||n.body;e&&(c=t.scrollTop);var r=e?"add":"remove";t.classList[r](o),n.documentElement.classList[r](o),e||(t.scrollTop=c)}function s(){0===i&&u(!0),++i}function l(){1===i&&u(!1),--i}return function(e){Object(E.a)(n,e);var t=T(n);function n(){return Object(k.a)(this,n),t.apply(this,arguments)}return Object(_.a)(n,[{key:"componentDidMount",value:function(){s()}},{key:"componentWillUnmount",value:function(){l()}},{key:"render",value:function(){return null}}]),n}(a.Component)}(),L=n(111),M=n(71),F=n(98),I=n(115),z=Object(j.a)(Object(w.a)((function(e){return e.children})));function H(e,t){var n,r=(n=t).ownerDocument.defaultView.getComputedStyle(n),o=r.paddingTop,i=r.paddingBottom,a=r.paddingLeft,c=r.paddingRight,u=o?parseInt(o,10):0,s=i?parseInt(i,10):0,l=a?parseInt(a,10):0,f=c?parseInt(c,10):0;return{x:e.left+l,y:e.top+u,width:e.width-l-f,height:e.height-u-s,left:e.left+l,right:e.right-f,top:e.top+u,bottom:e.bottom-s}}function B(e,t,n){n?e.getAttribute(t)!==n&&e.setAttribute(t,n):e.hasAttribute(t)&&e.removeAttribute(t)}function U(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";e.style[t]!==n&&(e.style[t]=n)}function V(e,t,n){n?e.classList.contains(t)||e.classList.add(t):e.classList.contains(t)&&e.classList.remove(t)}var q=function(e){var t=e.headerTitle,n=e.onClose,c=e.onKeyDown,b=e.children,v=e.className,w=e.noArrow,j=void 0===w||w,k=e.isAlternate,_=e.position,E=void 0===_?"bottom right":_,x=(e.range,e.focusOnMount),C=void 0===x?"firstElement":x,S=e.anchorRef,P=e.shouldAnchorIncludePadding,A=e.anchorRect,T=e.getAnchorRect,q=e.expandOnMobile,W=e.animate,$=void 0===W||W,G=e.onClickOutside,Q=e.onFocusOutside,K=e.__unstableSticky,Y=e.__unstableSlotName,Z=void 0===Y?"Popover":Y,X=e.__unstableObserveElement,J=e.__unstableBoundaryParent,ee=Object(i.a)(e,["headerTitle","onClose","onKeyDown","children","className","noArrow","isAlternate","position","range","focusOnMount","anchorRef","shouldAnchorIncludePadding","anchorRect","getAnchorRect","expandOnMobile","animate","onClickOutside","onFocusOutside","__unstableSticky","__unstableSlotName","__unstableObserveElement","__unstableBoundaryParent"]),te=Object(a.useRef)(null),ne=Object(a.useRef)(null),re=Object(a.useRef)(),oe=Object(p.a)("medium","<"),ie=Object(a.useState)(),ae=Object(o.a)(ie,2),ce=ae[0],ue=ae[1],se=Object(M.a)(Z),le=q&&oe,fe=Object(m.a)(),de=Object(o.a)(fe,2),pe=de[0],me=de[1];j=le||j,Object(a.useLayoutEffect)((function(){if(le)return V(re.current,"is-without-arrow",j),V(re.current,"is-alternate",k),B(re.current,"data-x-axis"),B(re.current,"data-y-axis"),U(re.current,"top"),U(re.current,"left"),U(ne.current,"maxHeight"),void U(ne.current,"maxWidth");var e=function(){if(re.current&&ne.current){var e=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=arguments.length>4?arguments[4]:void 0;if(t)return t;if(n){if(!e.current)return;return n(e.current)}if(!1!==r){if(!(r&&window.Range&&window.Element&&window.DOMRect))return;if(r instanceof window.Range)return Object(s.a)(r);if(r instanceof window.Element){var i=r.getBoundingClientRect();return o?i:H(i,r)}var a=r.top,c=r.bottom,u=a.getBoundingClientRect(),l=c.getBoundingClientRect(),f=new window.DOMRect(u.left,u.top,u.width,l.bottom-u.top);return o?f:H(f,r)}if(e.current){var d=e.current.parentNode,p=d.getBoundingClientRect();return o?p:H(p,d)}}(te,A,T,S,P);if(e){var t,n,r=re.current,i=r.offsetParent,a=r.ownerDocument,c=0;if(i&&i!==a.body){var u=i.getBoundingClientRect();c=u.top,e=new window.DOMRect(e.left-u.left,e.top-u.top,e.width,e.height)}if(J)t=null===(n=re.current.closest(".popover-slot"))||void 0===n?void 0:n.parentNode;var l=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"top",r=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0,a=arguments.length>5?arguments[5]:void 0,c=arguments.length>6?arguments[6]:void 0,u=n.split(" "),s=Object(o.a)(u,3),l=s[0],f=s[1],d=void 0===f?"center":f,p=s[2],m=O(e,t,l,p,r,i,a),h=y(e,t,d,p,r,m.yAxis,c);return g(g({},h),m)}(e,me.height?me:ne.current.getBoundingClientRect(),E,K,re.current,c,t),f=l.popoverTop,d=l.popoverLeft,p=l.xAxis,m=l.yAxis,h=l.contentHeight,b=l.contentWidth;"number"==typeof f&&"number"==typeof d&&(U(re.current,"top",f+"px"),U(re.current,"left",d+"px")),V(re.current,"is-without-arrow",j||"center"===p&&"middle"===m),V(re.current,"is-alternate",k),B(re.current,"data-x-axis",p),B(re.current,"data-y-axis",m),U(ne.current,"maxHeight","number"==typeof h?h+"px":""),U(ne.current,"maxWidth","number"==typeof b?b+"px":"");ue(({left:"right",right:"left"}[p]||"center")+" "+({top:"bottom",bottom:"top"}[m]||"middle"))}}};e();var t,n,r=window.setInterval(e,500),i=function(){window.cancelAnimationFrame(t),t=window.requestAnimationFrame(e)};return window.addEventListener("click",i),window.addEventListener("resize",e),window.addEventListener("scroll",e,!0),X&&(n=new window.MutationObserver(e)).observe(X,{attributes:!0}),function(){window.clearInterval(r),window.removeEventListener("resize",e),window.removeEventListener("scroll",e,!0),window.removeEventListener("click",i),window.cancelAnimationFrame(t),n&&n.disconnect()}}),[le,A,T,S,P,E,me,K,X,J]),function(e,t){Object(a.useEffect)((function(){var n=setTimeout((function(){if(e&&t.current)if("firstElement"!==e)"container"===e&&t.current.focus();else{var n=l.a.tabbable.find(t.current)[0];n?n.focus():t.current.focus()}}),0);return function(){return clearTimeout(n)}}),[])}(C,ne);var he=function(e){e.keyCode===f.b&&n&&(e.stopPropagation(),n()),c&&c(e)};var be=Object(a.createElement)(N,{onFocusOutside:function(e){if(Q)Q(e);else if(G){var t;try{t=new window.MouseEvent("click")}catch(e){(t=document.createEvent("MouseEvent")).initMouseEvent("click",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null)}Object.defineProperty(t,"target",{get:function(){return e.relatedTarget}}),Object(d.a)("Popover onClickOutside prop",{alternative:"onFocusOutside"}),G(t)}else n&&n()}},Object(a.createElement)(I.a,{type:$&&ce?"appear":null,options:{origin:ce}},(function(e){var o=e.className;return Object(a.createElement)(L.a,Object(r.a)({className:u()("components-popover",v,o,{"is-expanded":le,"is-without-arrow":j,"is-alternate":k})},ee,{onKeyDown:he,ref:re}),le&&Object(a.createElement)(D,null),le&&Object(a.createElement)("div",{className:"components-popover__header"},Object(a.createElement)("span",{className:"components-popover__header-title"},t),Object(a.createElement)(R.a,{className:"components-popover__close",icon:h.a,onClick:n})),Object(a.createElement)("div",{ref:ne,className:"components-popover__content",tabIndex:"-1"},Object(a.createElement)("div",{style:{position:"relative"}},pe,b)))})));return C&&(be=Object(a.createElement)(z,null,be)),se.ref&&(be=Object(a.createElement)(F.a,{name:Z},be)),S||A?be:Object(a.createElement)("span",{ref:te},be)};q.Slot=function(e){var t=e.name,n=void 0===t?"Popover":t;return Object(a.createElement)(F.b,{bubblesVirtually:!0,name:n,className:"popover-slot"})};t.a=q},function(e,t,n){"use strict";n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return i}));var r="wc/customer-effort-score",o="/wc-admin",i="woocommerce_ces_tracks_queue"},function(e,t,n){var r=function(e){"use strict";var t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",i=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var o=t&&t.prototype instanceof f?t:f,i=Object.create(o.prototype),a=new k(r||[]);return i._invoke=function(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return E()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=O(a,n);if(c){if(c===l)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=s(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===l)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}(e,n,a),i}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var l={};function f(){}function d(){}function p(){}var m={};m[o]=function(){return this};var h=Object.getPrototypeOf,b=h&&h(h(_([])));b&&b!==t&&n.call(b,o)&&(m=b);var v=p.prototype=f.prototype=Object.create(m);function g(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function y(e,t){var r;this._invoke=function(o,i){function a(){return new t((function(r,a){!function r(o,i,a,c){var u=s(e[o],e,i);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,a,c)}),(function(e){r("throw",e,a,c)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return r("throw",e,a,c)}))}c(u.arg)}(o,i,r,a)}))}return r=r?r.then(a,a):a()}}function O(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method))return l;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var r=s(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,l;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,l):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,l)}function w(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function _(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:E}}function E(){return{value:void 0,done:!0}}return d.prototype=v.constructor=p,p.constructor=d,d.displayName=c(p,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,c(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},g(y.prototype),y.prototype[i]=function(){return this},e.AsyncIterator=y,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new y(u(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(v),c(v,a,"Generator"),v[o]=function(){return this},v.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=_,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(j),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,l):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),l},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),l}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;j(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:_(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),l}},e}(e.exports);try{regeneratorRuntime=r}catch(e){Function("r","regeneratorRuntime = r")(r)}},function(e,t,n){"use strict";var r=n(121);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},,,,,,function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},,function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return i}));n(2),n(70);function r(e){return e.ownerDocument.defaultView.getComputedStyle(e)}function o(e){if(!e.collapsed)return e.getBoundingClientRect();var t=e.startContainer,n=t.ownerDocument;if("BR"===t.nodeName){var r=t.parentNode,o=Array.from(r.childNodes).indexOf(t);(e=n.createRange()).setStart(r,o),e.setEnd(r,o)}var i=e.getClientRects()[0];if(!i){var a=n.createTextNode("");(e=e.cloneRange()).insertNode(a),i=e.getClientRects()[0],a.parentNode.removeChild(a)}return i}function i(e){if(e){if(e.scrollHeight>e.clientHeight){var t=r(e).overflowY;if(/(auto|scroll)/.test(t))return e}return i(e.parentNode)}}},function(e,t){e.exports=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}},,,function(e,t,n){"use strict";var r=n(16),o=n(17),i=n(18),a=n(21),c=n(9),u=n(0),s=n(2),l=n(117),f=n(116);function d(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(c.a)(e);if(t){var o=Object(c.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(a.a)(this,n)}}var p=function(e){Object(i.a)(n,e);var t=d(n);function n(){var e;return Object(r.a)(this,n),(e=t.apply(this,arguments)).delayedSetIsOver=Object(s.debounce)((function(t){return e.setState({isOver:t})}),700),e.cancelIsMouseDown=e.createSetIsMouseDown(!1),e.isInMouseDown=!1,e.state={isOver:!1},e}return Object(o.a)(n,[{key:"componentWillUnmount",value:function(){this.delayedSetIsOver.cancel(),document.removeEventListener("mouseup",this.cancelIsMouseDown)}},{key:"emitToChild",value:function(e,t){var n=this.props.children;if(1===u.Children.count(n)){var r=u.Children.only(n);"function"==typeof r.props[e]&&r.props[e](t)}}},{key:"createToggleIsOver",value:function(e,t){var n=this;return function(r){if(n.emitToChild(e,r),!(r.currentTarget.disabled||"focus"===r.type&&n.isInMouseDown)){n.delayedSetIsOver.cancel();var o=Object(s.includes)(["focus","mouseenter"],r.type);o!==n.state.isOver&&(t?n.delayedSetIsOver(o):n.setState({isOver:o}))}}}},{key:"createSetIsMouseDown",value:function(e){var t=this;return function(n){t.emitToChild(e?"onMouseDown":"onMouseUp",n),document[e?"addEventListener":"removeEventListener"]("mouseup",t.cancelIsMouseDown),t.isInMouseDown=e}}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.position,r=e.text,o=e.shortcut;if(1!==u.Children.count(t))return t;var i=u.Children.only(t),a=this.state.isOver;return Object(u.cloneElement)(i,{onMouseEnter:this.createToggleIsOver("onMouseEnter",!0),onMouseLeave:this.createToggleIsOver("onMouseLeave"),onClick:this.createToggleIsOver("onClick"),onFocus:this.createToggleIsOver("onFocus"),onBlur:this.createToggleIsOver("onBlur"),onMouseDown:this.createSetIsMouseDown(!0),children:Object(u.concatChildren)(i.props.children,a&&Object(u.createElement)(l.a,{focusOnMount:!1,position:n,className:"components-tooltip","aria-hidden":"true",animate:!1,noArrow:!0},r,Object(u.createElement)(f.a,{className:"components-tooltip__shortcut",shortcut:o})))})}}]),n}(u.Component);t.a=p},,function(e,t){function n(t,r){return e.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},n(t,r)}e.exports=n},function(e,t,n){"use strict";var r=n(87),o=n(99),i=Object.prototype.hasOwnProperty,a={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},c=Array.isArray,u=Array.prototype.push,s=function(e,t){u.apply(e,c(t)?t:[t])},l=Date.prototype.toISOString,f=o.default,d={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:r.encode,encodeValuesOnly:!1,format:f,formatter:o.formatters[f],indices:!1,serializeDate:function(e){return l.call(e)},skipNulls:!1,strictNullHandling:!1},p=function e(t,n,o,i,a,u,l,f,p,m,h,b,v){var g,y=t;if("function"==typeof l?y=l(n,y):y instanceof Date?y=m(y):"comma"===o&&c(y)&&(y=r.maybeMap(y,(function(e){return e instanceof Date?m(e):e})).join(",")),null===y){if(i)return u&&!b?u(n,d.encoder,v,"key"):n;y=""}if("string"==typeof(g=y)||"number"==typeof g||"boolean"==typeof g||"symbol"==typeof g||"bigint"==typeof g||r.isBuffer(y))return u?[h(b?n:u(n,d.encoder,v,"key"))+"="+h(u(y,d.encoder,v,"value"))]:[h(n)+"="+h(String(y))];var O,w=[];if(void 0===y)return w;if(c(l))O=l;else{var j=Object.keys(y);O=f?j.sort(f):j}for(var k=0;k<O.length;++k){var _=O[k],E=y[_];if(!a||null!==E){var x=c(y)?"function"==typeof o?o(n,_):n:n+(p?"."+_:"["+_+"]");s(w,e(E,x,o,i,a,u,l,f,p,m,h,b,v))}}return w};e.exports=function(e,t){var n,r=e,u=function(e){if(!e)return d;if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||d.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=o.default;if(void 0!==e.format){if(!i.call(o.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var r=o.formatters[n],a=d.filter;return("function"==typeof e.filter||c(e.filter))&&(a=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:d.addQueryPrefix,allowDots:void 0===e.allowDots?d.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:d.charsetSentinel,delimiter:void 0===e.delimiter?d.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:d.encode,encoder:"function"==typeof e.encoder?e.encoder:d.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:d.encodeValuesOnly,filter:a,formatter:r,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:d.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:d.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:d.strictNullHandling}}(t);"function"==typeof u.filter?r=(0,u.filter)("",r):c(u.filter)&&(n=u.filter);var l,f=[];if("object"!=typeof r||null===r)return"";l=t&&t.arrayFormat in a?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var m=a[l];n||(n=Object.keys(r)),u.sort&&n.sort(u.sort);for(var h=0;h<n.length;++h){var b=n[h];u.skipNulls&&null===r[b]||s(f,p(r[b],b,m,u.strictNullHandling,u.skipNulls,u.encode?u.encoder:null,u.filter,u.sort,u.allowDots,u.serializeDate,u.formatter,u.encodeValuesOnly,u.charset))}var v=f.join(u.delimiter),g=!0===u.addQueryPrefix?"?":"";return u.charsetSentinel&&("iso-8859-1"===u.charset?g+="utf8=%26%2310003%3B&":g+="utf8=%E2%9C%93&"),v.length>0?g+v:""}},function(e,t,n){"use strict";var r=n(87),o=Object.prototype.hasOwnProperty,i=Array.isArray,a={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:r.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},c=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},u=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},s=function(e,t,n,r){if(e){var i=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/g,c=n.depth>0&&/(\[[^[\]]*])/.exec(i),s=c?i.slice(0,c.index):i,l=[];if(s){if(!n.plainObjects&&o.call(Object.prototype,s)&&!n.allowPrototypes)return;l.push(s)}for(var f=0;n.depth>0&&null!==(c=a.exec(i))&&f<n.depth;){if(f+=1,!n.plainObjects&&o.call(Object.prototype,c[1].slice(1,-1))&&!n.allowPrototypes)return;l.push(c[1])}return c&&l.push("["+i.slice(c.index)+"]"),function(e,t,n,r){for(var o=r?t:u(t,n),i=e.length-1;i>=0;--i){var a,c=e[i];if("[]"===c&&n.parseArrays)a=[].concat(o);else{a=n.plainObjects?Object.create(null):{};var s="["===c.charAt(0)&&"]"===c.charAt(c.length-1)?c.slice(1,-1):c,l=parseInt(s,10);n.parseArrays||""!==s?!isNaN(l)&&c!==s&&String(l)===s&&l>=0&&n.parseArrays&&l<=n.arrayLimit?(a=[])[l]=o:a[s]=o:a={0:o}}o=a}return o}(l,t,n,r)}};e.exports=function(e,t){var n=function(e){if(!e)return a;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?a.charset:e.charset;return{allowDots:void 0===e.allowDots?a.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:a.allowPrototypes,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:a.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:a.comma,decoder:"function"==typeof e.decoder?e.decoder:a.decoder,delimiter:"string"==typeof e.delimiter||r.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:a.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:a.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:a.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:a.strictNullHandling}}(t);if(""===e||null==e)return n.plainObjects?Object.create(null):{};for(var l="string"==typeof e?function(e,t){var n,s={},l=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,f=t.parameterLimit===1/0?void 0:t.parameterLimit,d=l.split(t.delimiter,f),p=-1,m=t.charset;if(t.charsetSentinel)for(n=0;n<d.length;++n)0===d[n].indexOf("utf8=")&&("utf8=%E2%9C%93"===d[n]?m="utf-8":"utf8=%26%2310003%3B"===d[n]&&(m="iso-8859-1"),p=n,n=d.length);for(n=0;n<d.length;++n)if(n!==p){var h,b,v=d[n],g=v.indexOf("]="),y=-1===g?v.indexOf("="):g+1;-1===y?(h=t.decoder(v,a.decoder,m,"key"),b=t.strictNullHandling?null:""):(h=t.decoder(v.slice(0,y),a.decoder,m,"key"),b=r.maybeMap(u(v.slice(y+1),t),(function(e){return t.decoder(e,a.decoder,m,"value")}))),b&&t.interpretNumericEntities&&"iso-8859-1"===m&&(b=c(b)),v.indexOf("[]=")>-1&&(b=i(b)?[b]:b),o.call(s,h)?s[h]=r.combine(s[h],b):s[h]=b}return s}(e,n):e,f=n.plainObjects?Object.create(null):{},d=Object.keys(l),p=0;p<d.length;++p){var m=d[p],h=s(m,l[m],n,"string"==typeof e);f=r.merge(f,h,n)}return r.compact(f)}},,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(81),o=n(3);function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"polite",t=document.createElement("div");t.id="a11y-speak-".concat(e),t.className="a11y-speak-region",t.setAttribute("style","position: absolute;margin: -1px;padding: 0;height: 1px;width: 1px;overflow: hidden;clip: rect(1px, 1px, 1px, 1px);-webkit-clip-path: inset(50%);clip-path: inset(50%);border: 0;word-wrap: normal !important;"),t.setAttribute("aria-live",e),t.setAttribute("aria-relevant","additions text"),t.setAttribute("aria-atomic","true");var n=document,r=n.body;return r&&r.appendChild(t),t}var a="";function c(e,t){!function(){for(var e=document.getElementsByClassName("a11y-speak-region"),t=document.getElementById("a11y-speak-intro-text"),n=0;n<e.length;n++)e[n].textContent="";t&&t.setAttribute("hidden","hidden")}(),e=function(e){return e=e.replace(/<[^<>]+>/g," "),a===e&&(e+=" "),a=e,e}(e);var n=document.getElementById("a11y-speak-intro-text"),r=document.getElementById("a11y-speak-assertive"),o=document.getElementById("a11y-speak-polite");r&&"assertive"===t?r.textContent=e:o&&(o.textContent=e),n&&n.removeAttribute("hidden")}Object(r.a)((function(){var e=document.getElementById("a11y-speak-intro-text"),t=document.getElementById("a11y-speak-assertive"),n=document.getElementById("a11y-speak-polite");null===e&&function(){var e=document.createElement("p");e.id="a11y-speak-intro-text",e.className="a11y-speak-intro-text",e.textContent=Object(o.__)("Notifications"),e.setAttribute("style","position: absolute;margin: -1px;padding: 0;height: 1px;width: 1px;overflow: hidden;clip: rect(1px, 1px, 1px, 1px);-webkit-clip-path: inset(50%);clip-path: inset(50%);border: 0;word-wrap: normal !important;"),e.setAttribute("hidden","hidden");var t=document.body;t&&t.appendChild(e)}(),null===t&&i("assertive"),null===n&&i("polite")}))},function(e,t,n){"use strict";var r=n(32),o=n(39),i=n(48).b;function a(){var e=Object(o.a)(["\n\t","\n\t","\n"]);return a=function(){return e},e}function c(){var e=Object(o.a)(["\n\t\t\t\t","\n\t\t\t\t","\n\t\t\t"]);return c=function(){return e},e}function u(){var e=Object(o.a)(["\n\t\t\t\t","\n\t\t\t\t","\n\t\t\t"]);return u=function(){return e},e}function s(){var e=Object(o.a)(["\n\t\t\t\t","\n\t\t\t"]);return s=function(){return e},e}function l(){var e=Object(o.a)(["\n\t\t\t\t","\n\t\t\t\t","\n\t\t\t"]);return l=function(){return e},e}function f(){var e=Object(o.a)(["\n\t\t\t\t","\n\t\t\t\t","\n\t\t\t"]);return f=function(){return e},e}function d(){var e=Object(o.a)(["\n\t\t\t\t","\n\t\t\t\t","\n\t\t\t"]);return d=function(){return e},e}function p(){var e=Object(o.a)(["\n\t\t\t\t","\n\t\t\t\t","\n\t\t\t"]);return p=function(){return e},e}function m(){var e=Object(o.a)(["\n\t\t\t\t","\n\t\t\t\t","\n\t\t\t"]);return m=function(){return e},e}var h="\n ".concat("font-weight: 400;","\n"),b="\n\tfont-size: 32px;\n\tline-height: 40px;\n",v="\n\tfont-size: 24px;\n\tline-height: 32px;\n",g="\n\tfont-size: 20px;\n\tline-height: 28px;\n",y="\n\t".concat("font-weight: 600;","\n\tfont-size: 14px;\n\tline-height: 20px;\n"),O="\n\t".concat("font-weight: 400;","\n"),w="\n\tfont-size: 16px;\n\tline-height: 24px;\n",j="\n\tfont-size: 14px;\n\tline-height: 20px;\n",k="\n ".concat("font-weight: 600;","\n font-size: 14px;\n line-height: 20px;\n"),_="\n\t".concat("font-weight: 400;","\n\tfont-size: 12px;\n\tline-height: 16px;\n"),E="\n\t".concat("font-weight: 600;","\n\tfont-size: 12px;\n\tline-height: 16px;\n"),x=Object(r.a)("p",{target:"e15wbhsk0",label:"Text"})("\n\tbox-sizing: border-box;\n\tmargin: 0;\n",(function(e){return i(a(),'font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,\nOxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;',function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body";switch(e){case"title.large":return i(m(),h,b);case"title.medium":return i(p(),h,v);case"title.small":return i(d(),h,g);case"subtitle":return i(f(),y,"\n\tfont-size: 16px;\n\tline-height: 24px;\n");case"subtitle.small":return i(l(),y,"\n\tfont-size: 14px;\n\tline-height: 20px;\n");case"body":return i(s(),O);case"body.large":return i(u(),O,w);case"body.small":return i(c(),O,j);case"button":return k;case"caption":return _;case"label":return E}}(e.variant))}),"");t.a=x},function(e,t,n){"use strict";n.d(t,"b",(function(){return u})),n.d(t,"c",(function(){return s})),n.d(t,"e",(function(){return l})),n.d(t,"a",(function(){return f})),n.d(t,"d",(function(){return p})),n.d(t,"f",(function(){return m}));var r=n(28),o=n.n(r),i=n(76),a=n(2),c=n(35);function u(e){return e?e.split(":")[0]:null}function s(e){var t=u(e);return Object(a.without)(Object(c.g)("onboarding",{euCountries:[]}).euCountries,"GB").includes(t)&&(t="EU"),t}function l(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2?arguments[2]:void 0,r=d(e,t,n),o=r.map((function(e){return e.id||e.product}));return o}function f(e,t){var n={};n.products=d(e,!0,t),n.remainingProducts=d(e,!1,t);var r=o()(new Set([].concat(o()(n.products),o()(n.remainingProducts))));return n.uniqueItemsList=r.map((function(e){return e.label?{type:"extension",name:e.label}:{type:"theme",name:e.title}})),n}function d(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2?arguments[2]:void 0,r=Object(c.g)("onboarding",{}),o=[];if(!r.productTypes)return o;var i=e.product_types||[];i.forEach((function(e){r.productTypes[e]&&r.productTypes[e].product&&(t||!n.includes(r.productTypes[e].slug))&&o.push(r.productTypes[e])}));var a=r.themes.find((function(t){return t.slug===e.theme}));return a&&a.id&&p(a.price)>0&&(t||!a.is_installed)&&o.push(a),o}function p(e){return Number(Object(i.decodeEntities)(e).replace(/[^0-9.-]+/g,""))}function m(e){return/admin.php\?page=wc-admin/.test(e)}},,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(0),o=new WeakMap;function i(e,t){return Object(r.useMemo)((function(){var n=function(e){var t=o.get(e)||0;return o.set(e,t+1),t}(e);return t?"".concat(t,"-").concat(n):n}),[e])}},,,function(e,t){e.exports=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}},,,,,,,,,,,,,,,,,function(e,t){!function(){e.exports=this.wc.currency}()},,,,,,,,,,function(e,t,n){"use strict";var r=Object.assign||function(e){for(var t,n=1;n<arguments.length;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.size,n=void 0===t?24:t,o=e.onClick,i=(e.icon,e.className),c=function(e,t){var n={};for(var r in e)0<=t.indexOf(r)||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["size","onClick","icon","className"]),u=["gridicon","gridicons-cross-small",i,!1,!1,!1].filter(Boolean).join(" ");return a.default.createElement("svg",r({className:u,height:n,width:n,onClick:o},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),a.default.createElement("g",null,a.default.createElement("path",{d:"M17.705 7.705l-1.41-1.41L12 10.59 7.705 6.295l-1.41 1.41L10.59 12l-4.295 4.295 1.41 1.41L12 13.41l4.295 4.295 1.41-1.41L13.41 12l4.295-4.295z"})))};var o,i=n(8),a=(o=i)&&o.__esModule?o:{default:o};e.exports=t.default},,,function(e,t,n){"use strict";var r=n(0),o=n(85),i={huge:1440,wide:1280,large:960,medium:782,small:600,mobile:480},a={">=":"min-width","<":"max-width"},c={">=":function(e,t){return t>=e},"<":function(e,t){return t<e}},u=Object(r.createContext)(null),s=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:">=",n=Object(r.useContext)(u),s=!n&&"(".concat(a[t],": ").concat(i[e],"px)"),l=Object(o.a)(s);return n?c[t](i[e],n):l};s.__experimentalWidthProvider=u.Provider,t.a=s},function(e,t,n){"use strict";var r=n(2);t.a=r.flowRight},function(e,t,n){"use strict";e.exports=n(208)},,,,,,,,,,,function(e,t,n){"use strict";var r=n(3),o=n(51),i=n(0),a=n(35),c=Object(a.g)("manageStock","no"),u=Object(i.lazy)((function(){return Promise.all([n.e(1),n.e(0),n.e(19)]).then(n.bind(null,554))})),s=Object(i.lazy)((function(){return Promise.all([n.e(1),n.e(0),n.e(6),n.e(18)]).then(n.bind(null,550))})),l=Object(i.lazy)((function(){return Promise.all([n.e(1),n.e(0),n.e(22)]).then(n.bind(null,555))})),f=Object(i.lazy)((function(){return Promise.all([n.e(1),n.e(0),n.e(8),n.e(17)]).then(n.bind(null,556))})),d=Object(i.lazy)((function(){return Promise.all([n.e(1),n.e(0),n.e(6),n.e(13)]).then(n.bind(null,552))})),p=Object(i.lazy)((function(){return Promise.all([n.e(1),n.e(0),n.e(14)]).then(n.bind(null,557))})),m=Object(i.lazy)((function(){return Promise.all([n.e(1),n.e(0),n.e(21)]).then(n.bind(null,558))})),h=Object(i.lazy)((function(){return Promise.all([n.e(1),n.e(0),n.e(16)]).then(n.bind(null,559))})),b=Object(i.lazy)((function(){return Promise.all([n.e(0),n.e(20)]).then(n.bind(null,551))})),v=Object(i.lazy)((function(){return Promise.all([n.e(0),n.e(15)]).then(n.bind(null,553))}));t.a=function(){var e=[{report:"revenue",title:Object(r.__)("Revenue","woocommerce-admin"),component:u,navArgs:{id:"woocommerce-analytics-revenue"}},{report:"products",title:Object(r.__)("Products","woocommerce-admin"),component:s,navArgs:{id:"woocommerce-analytics-products"}},{report:"variations",title:Object(r.__)("Variations","woocommerce-admin"),component:l,navArgs:{id:"woocommerce-analytics-variations"}},{report:"orders",title:Object(r.__)("Orders","woocommerce-admin"),component:f,navArgs:{id:"woocommerce-analytics-orders"}},{report:"categories",title:Object(r.__)("Categories","woocommerce-admin"),component:d,navArgs:{id:"woocommerce-analytics-categories"}},{report:"coupons",title:Object(r.__)("Coupons","woocommerce-admin"),component:p,navArgs:{id:"woocommerce-analytics-coupons"}},{report:"taxes",title:Object(r.__)("Taxes","woocommerce-admin"),component:m,navArgs:{id:"woocommerce-analytics-taxes"}},"yes"===c?{report:"stock",title:Object(r.__)("Stock","woocommerce-admin"),component:b,navArgs:{id:"woocommerce-analytics-stock"}}:null,{report:"customers",title:Object(r.__)("Customers","woocommerce-admin"),component:v},{report:"downloads",title:Object(r.__)("Downloads","woocommerce-admin"),component:h,navArgs:{id:"woocommerce-analytics-downloads"}}].filter(Boolean);return Object(o.applyFilters)("woocommerce_admin_reports_list",e)}},function(e,t,n){"use strict";var r=n(182),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},c={};function u(e){return r.isMemo(e)?a:c[e.$$typeof]||o}c[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},c[r.Memo]=a;var s=Object.defineProperty,l=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,m=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(m){var o=p(n);o&&o!==m&&e(t,o,r)}var a=l(n);f&&(a=a.concat(f(n)));for(var c=u(t),h=u(n),b=0;b<a.length;++b){var v=a[b];if(!(i[v]||r&&r[v]||h&&h[v]||c&&c[v])){var g=d(n,v);try{s(t,v,g)}catch(e){}}}}return t}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(31),o=n.n(r),i=n(0);function a(){var e=Object(i.useState)(!1),t=o()(e,2),n=t[0],r=t[1],a=Object(i.useRef)(null);return Object(i.useEffect)((function(){var e=function(){r(window.pageYOffset>20)},t=function(){a.current=window.requestAnimationFrame(e)};return window.addEventListener("scroll",t),function(){window.removeEventListener("scroll",t),window.cancelAnimationFrame(a.current)}}),[]),n}},function(e,t){!function(){e.exports=this.wp.plugins}()},function(e,t,n){"use strict";n.d(t,"c",(function(){return Pt})),n.d(t,"b",(function(){return Tt})),n.d(t,"a",(function(){return Dt}));var r=n(36),o=n.n(r),i=n(58),a=n.n(i),c=n(5),u=n.n(c),s=n(20),l=n.n(s),f=n(15),d=n.n(f),p=n(22),m=n.n(p),h=n(23),b=n.n(h),v=n(10),g=n.n(v),y=n(0),O=n(181),w=n(25),j=n(53),k=n(8),_=n.n(k),E=n(1),x=n.n(E),C=n(108),S=n(341),P=n(92),A=n(7),N=n(239),R=n.n(N),T=(n(182),n(54)),D=(n(194),function(e){var t=Object(S.a)();return t.displayName=e,t}("Router")),L=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={location:t.history.location},n._isMounted=!1,n._pendingLocation=null,t.staticContext||(n.unlisten=t.history.listen((function(e){n._isMounted?n.setState({location:e}):n._pendingLocation=e}))),n}Object(j.a)(t,e),t.computeRootMatch=function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}};var n=t.prototype;return n.componentDidMount=function(){this._isMounted=!0,this._pendingLocation&&this.setState({location:this._pendingLocation})},n.componentWillUnmount=function(){this.unlisten&&this.unlisten()},n.render=function(){return _.a.createElement(D.Provider,{children:this.props.children||null,value:{history:this.props.history,location:this.state.location,match:t.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}})},t}(_.a.Component);_.a.Component;_.a.Component;var M={},F=0;function I(e,t){void 0===t&&(t={}),("string"==typeof t||Array.isArray(t))&&(t={path:t});var n=t,r=n.path,o=n.exact,i=void 0!==o&&o,a=n.strict,c=void 0!==a&&a,u=n.sensitive,s=void 0!==u&&u;return[].concat(r).reduce((function(t,n){if(!n&&""!==n)return null;if(t)return t;var r=function(e,t){var n=""+t.end+t.strict+t.sensitive,r=M[n]||(M[n]={});if(r[e])return r[e];var o=[],i={regexp:R()(e,o,t),keys:o};return F<1e4&&(r[e]=i,F++),i}(n,{end:i,strict:c,sensitive:s}),o=r.regexp,a=r.keys,u=o.exec(e);if(!u)return null;var l=u[0],f=u.slice(1),d=e===l;return i&&!d?null:{path:n,url:"/"===n&&""===l?"/":l,isExact:d,params:a.reduce((function(e,t,n){return e[t.name]=f[n],e}),{})}}),null)}var z=function(e){function t(){return e.apply(this,arguments)||this}return Object(j.a)(t,e),t.prototype.render=function(){var e=this;return _.a.createElement(D.Consumer,null,(function(t){t||Object(P.a)(!1);var n=e.props.location||t.location,r=e.props.computedMatch?e.props.computedMatch:e.props.path?I(n.pathname,e.props):t.match,o=Object(A.a)({},t,{location:n,match:r}),i=e.props,a=i.children,c=i.component,u=i.render;return Array.isArray(a)&&0===a.length&&(a=null),_.a.createElement(D.Provider,{value:o},o.match?a?"function"==typeof a?a(o):a:c?_.a.createElement(c,o):u?u(o):null:"function"==typeof a?a(o):null)}))},t}(_.a.Component);function H(e){return"/"===e.charAt(0)?e:"/"+e}function B(e,t){if(!e)return t;var n=H(e);return 0!==t.pathname.indexOf(n)?t:Object(A.a)({},t,{pathname:t.pathname.substr(n.length)})}function U(e){return"string"==typeof e?e:Object(C.d)(e)}function V(e){return function(){Object(P.a)(!1)}}function q(){}_.a.Component;var W=function(e){function t(){return e.apply(this,arguments)||this}return Object(j.a)(t,e),t.prototype.render=function(){var e=this;return _.a.createElement(D.Consumer,null,(function(t){t||Object(P.a)(!1);var n,r,o=e.props.location||t.location;return _.a.Children.forEach(e.props.children,(function(e){if(null==r&&_.a.isValidElement(e)){n=e;var i=e.props.path||e.props.from;r=i?I(o.pathname,Object(A.a)({},e.props,{path:i})):t.match}})),r?_.a.cloneElement(n,{location:o,computedMatch:r}):null}))},t}(_.a.Component);_.a.useContext;var $=n(2),G=n(82),Q=n(74),K=n(29),Y=n(35),Z=n(34),X=n(50),J=(n(373),n(51)),ee=n(3),te=n(193),ne=n(143);function re(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var o=g()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return b()(this,n)}}var oe=Object(y.lazy)((function(){return n.e(12).then(n.bind(null,661))})),ie=Object(y.lazy)((function(){return Promise.all([n.e(2),n.e(23)]).then(n.bind(null,670))})),ae=Object(y.lazy)((function(){return n.e(30).then(n.bind(null,662))})),ce=Object(y.lazy)((function(){return Promise.all([n.e(3),n.e(4),n.e(5),n.e(7),n.e(34)]).then(n.bind(null,667))})),ue=Object(y.lazy)((function(){return Promise.all([n.e(4),n.e(5),n.e(38)]).then(n.bind(null,672))})),se=Object(y.lazy)((function(){return Promise.all([n.e(4),n.e(54),n.e(47)]).then(n.bind(null,668))})),le=function(){var e=[],t=[["",wcSettings.woocommerceTranslation]];return e.push({container:ce,path:"/",breadcrumbs:[].concat(t,[Object(ee.__)("Home","woocommerce-admin")]),wpOpenMenu:"toplevel_page_woocommerce",navArgs:{id:"woocommerce-home"}}),window.wcAdminFeatures.analytics&&(e.push({container:ae,path:"/analytics/overview",breadcrumbs:[].concat(t,[["/analytics/overview",Object(ee.__)("Analytics","woocommerce-admin")],Object(ee.__)("Overview","woocommerce-admin")]),wpOpenMenu:"toplevel_page_wc-admin-path--analytics-overview",navArgs:{id:"woocommerce-analytics-overview"}}),e.push({container:ie,path:"/analytics/settings",breadcrumbs:[].concat(t,[["/analytics/revenue",Object(ee.__)("Analytics","woocommerce-admin")],Object(ee.__)("Settings","woocommerce-admin")]),wpOpenMenu:"toplevel_page_wc-admin-path--analytics-overview",navArgs:{id:"woocommerce-analytics-settings"}}),e.push({container:oe,path:"/customers",breadcrumbs:[].concat(t,[Object(ee.__)("Customers","woocommerce-admin")]),wpOpenMenu:"toplevel_page_woocommerce",navArgs:{id:"woocommerce-analytics-customers"}}),e.push({container:oe,path:"/analytics/:report",breadcrumbs:function(e){var n=e.match,r=Object($.find)(Object(te.a)(),{report:n.params.report});return r?[].concat(t,[["/analytics/revenue",Object(ee.__)("Analytics","woocommerce-admin")],r.title]):[]},wpOpenMenu:"toplevel_page_wc-admin-path--analytics-overview"})),window.wcAdminFeatures.marketing&&e.push({container:ue,path:"/marketing",breadcrumbs:[].concat(t,[["/marketing",Object(ee.__)("Marketing","woocommerce-admin")],Object(ee.__)("Overview","woocommerce-admin")]),wpOpenMenu:"toplevel_page_woocommerce-marketing",navArgs:{id:"woocommerce-marketing-overview"}}),window.wcAdminFeatures.onboarding&&e.push({container:se,path:"/setup-wizard",breadcrumbs:[].concat(t,[["/setup-wizard",Object(ee.__)("Setup Wizard","woocommerce-admin")]])}),Object(J.applyFilters)("woocommerce_admin_pages_list",e)},fe=function(e){m()(n,e);var t=re(n);function n(){return l()(this,n),t.apply(this,arguments)}return d()(n,[{key:"componentDidMount",value:function(){window.document.documentElement.scrollTop=0,window.document.body.classList.remove("woocommerce-admin-is-loading")}},{key:"componentDidUpdate",value:function(e){var t=Object($.omit)(e.query,"chartType","filter","paged"),n=Object($.omit)(this.props.query,"chartType","filter","paged");e.query.paged>1&&!Object($.isEqual)(t,n)&&Object(K.getHistory)().replace(Object(K.getNewPath)({paged:1})),e.match.url!==this.props.match.url&&(window.document.documentElement.scrollTop=0)}},{key:"render",value:function(){var e=this.props,t=e.page,n=e.match,r=e.query,o=n.url,i=n.params;return window.wpNavMenuUrlUpdate(r),window.wpNavMenuClassChange(t,o),Object(y.createElement)(y.Suspense,{fallback:Object(y.createElement)(Q.Spinner,null)},Object(y.createElement)(t.container,{params:i,path:o,pathMatch:t.path,query:r}))}}]),n}(y.Component);window.wpNavMenuUrlUpdate=function(e){var t=Object(J.applyFilters)("woocommerce_admin_time_excluded_screens",["stock","settings","customers","homescreen"]),n=Object(K.getPersistedQuery)(e);Array.from(document.querySelectorAll("#adminmenu a")).forEach((function(e){return function(e,t,n){if(Object(ne.f)(e.href)){var r=Object($.last)(e.href.split("?")),o=Object(G.parse)(r),i=(o.path||"homescreen").replace("/analytics","").replace("/",""),a=n.includes(i),c="admin.php?"+Object(G.stringify)(Object.assign(o,a?{}:t));e.href=c,e.onclick=function(e){e.preventDefault(),Object(K.getHistory)().push(c)}}}(e,n,t)}))},window.wpNavMenuClassChange=function(e,t){Array.from(document.getElementsByClassName("current")).forEach((function(e){e.classList.remove("current")})),Array.from(document.querySelectorAll(".wp-has-current-submenu")).forEach((function(e){e.classList.remove("wp-has-current-submenu"),e.classList.remove("wp-menu-open"),e.classList.remove("selected"),e.classList.add("wp-not-current-submenu"),e.classList.add("menu-top")}));var n="/"===t?"admin.php?page=wc-admin":"admin.php?page=wc-admin&path="+encodeURIComponent(t),r="/"===t?'li > a[href$="'.concat(n,'"], li > a[href*="').concat(n,'?"]'):'li > a[href*="'.concat(n,'"]'),o=document.querySelectorAll(r);if(Array.from(o).forEach((function(e){e.parentElement.classList.add("current")})),e.wpOpenMenu){var i=document.querySelector("#"+e.wpOpenMenu);i&&(i.classList.remove("wp-not-current-submenu"),i.classList.add("wp-has-current-submenu"),i.classList.add("wp-menu-open"),i.classList.add("current"))}document.querySelector("#wpwrap").classList.remove("wp-responsive-open")};var de=n(4),pe=n.n(de),me=n(76),he=n(142),be=(n(374),n(338)),ve=n.n(be),ge=n(68),ye=n(177),Oe=n.n(ye),we=n(377),je=n(78),ke=Object(y.createElement)(je.c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(y.createElement)(je.b,{d:"M12 4.75a7.25 7.25 0 100 14.5 7.25 7.25 0 000-14.5zM3.25 12a8.75 8.75 0 1117.5 0 8.75 8.75 0 01-17.5 0zM12 8.75a1.5 1.5 0 01.167 2.99c-.465.052-.917.44-.917 1.01V14h1.5v-.845A3 3 0 109 10.25h1.5a1.5 1.5 0 011.5-1.5zM11.25 15v1.5h1.5V15h-1.5z"})),_e=(n(376),function(e){var t=e.height,n=void 0===t?24:t,r=e.width,o=void 0===r?24:r,i=e.hasUnread,a=void 0!==i&&i,c=pe()("woocommerce-layout__activity-panel-toggle-bubble",{"has-unread":a});return Object(y.createElement)("div",{className:c},Object(y.createElement)("svg",{height:n,width:o,viewBox:"0 0 24 24"},Object(y.createElement)("path",{d:"M18.9 2H5.1C3.4 2 2 3.4 2 5.1v10.7C2 17.6 3.4 19 5.1 19H9l6 3-1-3h4.9c1.7 0 3.1-1.4 3.1-3.1V5.1C22 3.4 20.6 2 18.9 2zm-1.5 4.5c-.4.8-.8 2.1-1 3.9-.3 1.8-.4 3.1-.3 4.1 0 .3 0 .5-.1.7-.1.2-.3.4-.6.4s-.6-.1-.9-.4c-1-1-1.8-2.6-2.4-4.6-.7 1.4-1.2 2.4-1.6 3.1-.6 1.2-1.2 1.8-1.6 1.9-.3 0-.5-.2-.8-.7-.5-1.4-1.1-4.2-1.7-8.2 0-.3 0-.5.2-.7.1-.2.4-.3.7-.4.5 0 .9.2.9.8.3 2.3.7 4.2 1.1 5.7l2.4-4.5c.2-.4.4-.6.8-.6.5 0 .8.3.9.9.3 1.4.6 2.6 1 3.7.3-2.7.8-4.7 1.4-5.9.2-.3.4-.5.7-.5.2 0 .5.1.7.2.2.2.3.4.3.6 0 .2 0 .4-.1.5z"})))});_e.propTypes={height:x.a.number,width:x.a.number,hasUnread:x.a.bool};var Ee=_e,xe=n(249);var Ce=n(31),Se=n.n(Ce),Pe=n(573),Ae=function(e){var t=e.icon,n=e.title,r=e.name,o=e.unread,i=e.selected,a=e.isPanelOpen,c=e.onTabClick,u=pe()("woocommerce-layout__activity-panel-tab",{"is-active":a&&i,"has-unread":o}),s="activity-panel-tab-".concat(r);return Object(y.createElement)(ge.a,{role:"tab",className:u,"aria-selected":i,"aria-controls":"activity-panel-".concat(r),key:s,id:s,onClick:function(){c(r)}},t,n," ",o&&Object(y.createElement)("span",{className:"screen-reader-text"},Object(ee.__)("unread activity","woocommerce-admin")))},Ne=function(e){var t=e.tabs,n=e.onTabClick,r=e.selectedTab,i=e.tabOpen,a=void 0!==i&&i,c=Object(y.useState)({tabOpen:a,currentTab:r}),u=Se()(c,2),s=u[0],l=s.tabOpen,f=s.currentTab,d=u[1];return Object(y.useEffect)((function(){d({tabOpen:a,currentTab:r})}),[a,r]),Object(y.createElement)(Pe.a,{role:"tablist",orientation:"horizontal",className:"woocommerce-layout__activity-panel-tabs"},t&&t.map((function(e,t){if(e.component){var r=e.component,i=e.options;return Object(y.createElement)(r,o()({key:t},i))}return Object(y.createElement)(Ae,o()({key:t,index:t,isPanelOpen:l,selected:f===e.name},e,{onTabClick:function(){var t=f!==e.name&&""!==f||!l;t&&f===e.name||Object(X.recordEvent)("activity_panel_open",{tab:e.name}),d({tabOpen:t,currentTab:e.name}),n(e,t)}}))})))},Re=function(){return Object(y.createElement)("svg",{className:"woocommerce-layout__activity-panel-tab-icon setup-progress",width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(y.createElement)("path",{d:"M12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20Z",stroke:"#DCDCDE",strokeWidth:"2"}),Object(y.createElement)("path",{d:"M4 12V12C4 16.4183 7.58172 20 12 20V20C16.4183 20 20 16.4183 20 12V12C20 7.58172 16.4183 4 12 4V4",strokeWidth:"2",strokeLinecap:"round"}))},Te=n(6),De=n(57),Le=n(47),Me=n(339);function Fe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ie(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Fe(Object(n),!0).forEach((function(t){Object(Te.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ze(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Ie(Ie({},e),t);return t.className&&e.className&&(n.className=pe()(t.className,e.className)),n}var He=function(e){var t,n=e.children,r=e.className,o=e.controls,i=e.icon,a=void 0===i?"menu":i,c=e.label,u=e.popoverProps,s=e.toggleProps,l=e.menuProps,f=e.disableOpenOnArrowDown,d=void 0!==f&&f,p=e.menuLabel,m=e.position,h=e.noIcons;if(p&&Object(Le.a)("`menuLabel` prop in `DropdownComponent`",{alternative:"`menuProps` object and its `aria-label` property",plugin:"Gutenberg"}),m&&Object(Le.a)("`position` prop in `DropdownComponent`",{alternative:"`popoverProps` object and its `position` property",plugin:"Gutenberg"}),Object($.isEmpty)(o)&&!Object($.isFunction)(n))return null;Object($.isEmpty)(o)||(t=o,Array.isArray(t[0])||(t=[t]));var b=ze({className:"components-dropdown-menu__popover",position:m},u);return Object(y.createElement)(Me.a,{className:pe()("components-dropdown-menu",r),popoverProps:b,renderToggle:function(e){var t,n=e.isOpen,r=e.onToggle,o=ze({className:pe()("components-dropdown-menu__toggle",{"is-opened":n})},s);return Object(y.createElement)(ge.a,Object(A.a)({},o,{icon:a,onClick:function(e){r(e),o.onClick&&o.onClick(e)},onKeyDown:function(e){!function(e){d||n||e.keyCode!==De.a||(e.preventDefault(),e.stopPropagation(),r())}(e),o.onKeyDown&&o.onKeyDown(e)},"aria-haspopup":"true","aria-expanded":n,label:c,showTooltip:null===(t=null==s?void 0:s.showTooltip)||void 0===t||t}),o.children)},renderContent:function(e){var r=ze({"aria-label":p||c,className:pe()("components-dropdown-menu__menu",{"no-icons":h})},l);return Object(y.createElement)(Pe.a,Object(A.a)({},r,{role:"menu"}),Object($.isFunction)(n)?n(e):null,Object($.flatMap)(t,(function(t,n){return t.map((function(t,r){return Object(y.createElement)(ge.a,{key:[n,r].join(),onClick:function(n){n.stopPropagation(),e.onClose(),t.onClick&&t.onClick()},className:pe()("components-dropdown-menu__menu-item",{"has-separator":n>0&&0===r,"is-active":t.isActive}),icon:t.icon,"aria-checked":"menuitemcheckbox"===t.role||"menuitemradio"===t.role?t.isActive:void 0,role:"menuitemcheckbox"===t.role||"menuitemradio"===t.role?t.role:"menuitem",disabled:t.isDisabled},t.title)}))})))}})},Be=n(147);var Ue=function e(t){var n=t.children,r=t.className,o=void 0===r?"":r,i=t.label,a=Object(Be.a)(e);if(!y.Children.count(n))return null;var c="components-menu-group-label-".concat(a),u=pe()(o,"components-menu-group");return Object(y.createElement)("div",{className:u},i&&Object(y.createElement)("div",{className:"components-menu-group__label",id:c,"aria-hidden":"true"},i),Object(y.createElement)("div",{role:"group","aria-labelledby":i?c:null},n))},Ve=n(571),qe=n(11),We=n(116),$e=n(114);var Ge=Object(y.forwardRef)((function(e,t){var n=e.children,r=e.info,o=e.className,i=e.icon,a=e.shortcut,c=e.isSelected,u=e.role,s=void 0===u?"menuitem":u,l=Object(qe.a)(e,["children","info","className","icon","shortcut","isSelected","role"]);return o=pe()("components-menu-item__button",o),r&&(n=Object(y.createElement)("span",{className:"components-menu-item__info-wrapper"},n,Object(y.createElement)("span",{className:"components-menu-item__info"},r))),i&&!Object($.isString)(i)&&(i=Object(y.cloneElement)(i,{className:"components-menu-items__item-icon"})),Object(y.createElement)(ge.a,Object(A.a)({ref:t,"aria-checked":"menuitemcheckbox"===s||"menuitemradio"===s?c:void 0,role:s,className:o},l),n,Object(y.createElement)(We.a,{className:"components-menu-item__shortcut",shortcut:a}),i&&Object(y.createElement)($e.a,{icon:i}))}));function Qe(e){var t=e.choices,n=void 0===t?[]:t,r=e.onHover,o=void 0===r?$.noop:r,i=e.onSelect,a=e.value;return n.map((function(e){var t=a===e.value;return Object(y.createElement)(Ge,{key:e.value,role:"menuitemradio",icon:t&&Ve.a,isSelected:t,shortcut:e.shortcut,className:"components-menu-items-choice",onClick:function(){t||i(e.value)},onMouseEnter:function(){return o(e.value)},onMouseLeave:function(){return o(null)}},e.label)}))}var Ke=function(){return Object(y.createElement)(y.Fragment,null,Object(y.createElement)("svg",{className:"woocommerce-layout__activity-panel-tab-icon",width:"24",height:"24",viewBox:"3 3 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(y.createElement)("path",{d:"M13.8053 15.3982C13.8053 15.7965 13.4867 16.1947 13.0089 16.1947H6.79646C6.55752 16.1947 6.39823 16.115 6.23894 15.9558C6.07965 15.7965 6 15.6372 6 15.3982V6.79646C6 6.63717 6.15929 6.39823 6.23894 6.23894C6.39823 6.07965 6.55752 6 6.79646 6H13.0089C13.4071 6 13.8053 6.31858 13.8053 6.79646V15.3982Z",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),Object(y.createElement)("path",{d:"M23.9203 10.6195C23.9203 11.0177 23.6017 11.4159 23.1238 11.4159H16.9115C16.6725 11.4159 16.5132 11.3363 16.3539 11.177C16.1946 11.0177 16.115 10.8584 16.115 10.6195V6.79646C16.115 6.39823 16.4336 6 16.9115 6H23.1238C23.5221 6 23.9203 6.31858 23.9203 6.79646V10.6195Z",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),Object(y.createElement)("path",{d:"M13.8053 23.2035C13.8053 23.4424 13.7257 23.6017 13.5664 23.761C13.4071 23.9203 13.2478 23.9999 13.0089 23.9999H6.79646C6.39823 23.9999 6 23.6813 6 23.2035V19.3804C6 19.1415 6.07965 18.9822 6.23894 18.8229C6.39823 18.6636 6.55752 18.584 6.79646 18.584H13.0089C13.4071 18.584 13.8053 18.9026 13.8053 19.3804V23.2035Z",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),Object(y.createElement)("path",{d:"M16.9912 23.9999C16.7522 23.9999 16.5929 23.9202 16.4336 23.7609C16.2743 23.6016 16.1947 23.4423 16.1947 23.2034V14.6016C16.1947 14.3627 16.2743 14.2034 16.4336 14.0441C16.5929 13.8848 16.7522 13.8052 16.9912 13.8052H23.2036C23.4425 13.8052 23.6018 13.8848 23.7611 14.0441C23.9204 14.2034 24 14.3627 24 14.6016V23.2034C24 23.6016 23.6814 23.9999 23.2036 23.9999H16.9912Z",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})),Object(ee.__)("Display","woocommerce-admin"))},Ye=[{value:"single_column",label:Object(y.createElement)(y.Fragment,null,Object(y.createElement)((function(){return Object(y.createElement)("svg",{className:"woocommerce-layout__activity-panel-tab-icon",width:"12",height:"14",viewBox:"0 0 12 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(y.createElement)("rect",{x:"0.5",y:"0.5",width:"11",height:"13",strokeWidth:"1"}))}),null),Object(ee.__)("Single column","woocommerce-admin"))},{value:"two_columns",label:Object(y.createElement)(y.Fragment,null,Object(y.createElement)((function(){return Object(y.createElement)("svg",{className:"woocommerce-layout__activity-panel-tab-icon",width:"18",height:"14",viewBox:"0 0 18 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(y.createElement)("rect",{x:"0.5",y:"0.5",width:"7",height:"13",strokeWidth:"1"}),Object(y.createElement)("rect",{x:"9.5",y:"0.5",width:"7",height:"13",strokeWidth:"1"}))}),null),Object(ee.__)("Two columns","woocommerce-admin"))}],Ze=function(){var e=Object(w.useSelect)((function(e){return(0,e(Z.OPTIONS_STORE_NAME).getOption)("woocommerce_default_homepage_layout")||"single_column"})),t=Object(Z.useUserPreferences)(),n=t.updateUserPreferences,r=t.homepage_layout;return Object(y.createElement)(He,{icon:Object(y.createElement)(Ke,null),label:Object(ee.__)("Display options","woocommerce-admin"),toggleProps:{className:"woocommerce-layout__activity-panel-tab display-options",onClick:function(){return Object(X.recordEvent)("homescreen_display_click")}},popoverProps:{className:"woocommerce-layout__activity-panel-popover"}},(function(t){var o=t.onClose;return Object(y.createElement)(Ue,{className:"woocommerce-layout__homescreen-display-options",label:Object(ee.__)("Layout","woocommerce-admin")},Object(y.createElement)(Qe,{choices:Ye,onSelect:function(e){n({homepage_layout:e}),o(),Object(X.recordEvent)("homescreen_display_option",{display_option:e})},value:r||e}))}))};function Xe(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var o=g()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return b()(this,n)}}var Je=Object(y.lazy)((function(){return Promise.all([n.e(53),n.e(9),n.e(10)]).then(n.bind(null,664))})),et=Object(y.lazy)((function(){return Promise.all([n.e(3),n.e(5),n.e(7),n.e(11)]).then(n.bind(null,612))})),tt=function(e){m()(n,e);var t=Xe(n);function n(e){var r;return l()(this,n),(r=t.call(this,e)).state={isPanelOpen:!1,mobileOpen:!1,currentTab:"",isPanelSwitching:!1},r}return d()(n,[{key:"togglePanel",value:function(e,t){var n=e.name;this.setState((function(e){var r=n!==e.currentTab&&""!==e.currentTab&&t&&e.isPanelOpen;return{isPanelOpen:t,mobileOpen:t,currentTab:n,isPanelSwitching:r}}))}},{key:"closePanel",value:function(){this.setState((function(){return{isPanelOpen:!1,currentTab:""}}))}},{key:"clearPanel",value:function(){this.setState((function(){return{isPanelSwitching:!1}}))}},{key:"toggleMobile",value:function(){var e=this.getTabs();this.setState((function(t){return{mobileOpen:!t.mobileOpen,currentTab:t.mobileOpen?"":e[0].name,isPanelOpen:!t.mobileOpen}}))}},{key:"handleClickOutside",value:function(e){var t=this.state.isPanelOpen,n=e.target.closest(".woocommerce-inbox-dismiss-confirmation_modal")||e.target.closest(".components-snackbar__action");t&&!n&&this.closePanel()}},{key:"isHomescreen",value:function(){return"/"===this.props.getHistory().location.pathname}},{key:"isPerformingSetupTask",value:function(){var e=this.props,t=e.requestingTaskListOptions,n=e.taskListComplete,r=e.taskListHidden,o=e.query,i=o.task&&!o.path&&(!0===t||!1===r&&!1===n);return i}},{key:"getTabs",value:function(){var e=this.props,t=e.hasUnreadNotes,n=e.isEmbedded,r=e.taskListComplete,o=e.taskListHidden,i=this.isPerformingSetupTask(),a=(n||!this.isHomescreen())&&!i,c=this.isHomescreen()&&!n||i,u=!n&&this.isHomescreen()&&!i,s=!r&&!o&&!i&&(!this.isHomescreen()||n),l=a?{name:"inbox",title:Object(ee.__)("Inbox","woocommerce-admin"),icon:Object(y.createElement)("i",{className:"material-icons-outlined"},"inbox"),unread:t}:null,f=s?{name:"setup",title:Object(ee.__)("Store Setup","woocommerce-admin"),icon:Object(y.createElement)(Re,null)}:null,d=c?{name:"help",title:Object(ee.__)("Help","woocommerce-admin"),icon:Object(y.createElement)(we.a,{icon:ke})}:null;return[l,f,u?{component:Ze}:null,d].filter(Boolean)}},{key:"getPanelContent",value:function(e){var t=this.props.query.task;switch(e){case"inbox":return Object(y.createElement)(et,null);case"help":return Object(y.createElement)(Je,{taskName:t});default:return null}}},{key:"renderPanel",value:function(){var e=this,t=this.props,n=t.updateOptions,r=t.taskListHidden,o=this.state,i=o.isPanelOpen,a=o.currentTab,c=o.isPanelSwitching,u=Object($.find)(this.getTabs(),{name:a});if(!u)return Object(y.createElement)("div",{className:"woocommerce-layout__activity-panel-wrapper"});var s=function(){e.clearPanel()};if("display-options"===a)return null;if("setup"===a)return window.location.href!==Object(Y.f)("admin.php?page=wc-admin")&&("no"===r?this.redirectToHomeScreen():n({woocommerce_task_list_hidden:"no"}).then(this.redirectToHomeScreen)),null;var l=pe()("woocommerce-layout__activity-panel-wrapper",{"is-open":i,"is-switching":c});return Object(y.createElement)("div",{className:l,tabIndex:0,role:"tabpanel","aria-label":u.title,onTransitionEnd:s,onAnimationEnd:s},Object(y.createElement)("div",{className:"woocommerce-layout__activity-panel-content",key:"activity-panel-"+a,id:"activity-panel-"+a},Object(y.createElement)(y.Suspense,{fallback:Object(y.createElement)(Q.Spinner,null)},this.getPanelContent(a))))}},{key:"redirectToHomeScreen",value:function(){Object(ne.f)(window.location.href)?Object(K.getHistory)().push(Object(K.getNewPath)({},"/",{})):window.location.href=Object(Y.f)("admin.php?page=wc-admin")}},{key:"render",value:function(){var e=this,t=this.getTabs(),n=this.state,r=n.mobileOpen,o=n.currentTab,i=n.isPanelOpen,a=Object($.uniqueId)("activity-panel-header_"),c=pe()("woocommerce-layout__activity-panel",{"is-mobile-open":this.state.mobileOpen}),u=t.some((function(e){return e.unread})),s=u?Object(ee.__)("View Activity Panel, you have unread activity","woocommerce-admin"):Object(ee.__)("View Activity Panel","woocommerce-admin");return Object(y.createElement)("div",null,Object(y.createElement)(Q.H,{id:a,className:"screen-reader-text"},Object(ee.__)("Store Activity","woocommerce-admin")),Object(y.createElement)(Q.Section,{component:"aside",id:"woocommerce-activity-panel","aria-labelledby":a},Object(y.createElement)(ge.a,{onClick:function(){e.toggleMobile()},label:r?Object(ee.__)("Close Activity Panel","woocommerce-admin"):s,"aria-expanded":r,className:"woocommerce-layout__activity-panel-mobile-toggle"},r?Object(y.createElement)(Oe.a,null):Object(y.createElement)(Ee,{hasUnread:u})),Object(y.createElement)("div",{className:c},Object(y.createElement)(Ne,{tabs:t,tabOpen:i,selectedTab:o,onTabClick:function(t,n){e.togglePanel(t,n)}}),this.renderPanel())))}}]),n}(y.Component);tt.defaultProps={getHistory:K.getHistory};var nt=Object(O.a)(Object(w.withSelect)((function(e){var t=function(e){var t=e(Z.NOTES_STORE_NAME),n=t.getNotes,r=t.getNotesError,o=t.isResolving,i=(0,e(Z.USER_STORE_NAME).getCurrentUser)(),a=parseInt(i&&i.woocommerce_meta&&i.woocommerce_meta.activity_panel_inbox_last_read,10);if(!a)return null;var c={page:1,per_page:Z.QUERY_DEFAULTS.pageSize,status:"unactioned",type:Z.QUERY_DEFAULTS.noteTypes,orderby:"date",order:"desc"},u=n(c),s=Boolean(r("getNotes",[c])),l=o("getNotes",[c]);return s||l?null:Object(xe.a)(u,a)>0}(e),n=e(Z.OPTIONS_STORE_NAME),r=n.getOption,o=n.isResolving,i="yes"===r("woocommerce_task_list_complete"),a="yes"===r("woocommerce_task_list_hidden");return{hasUnreadNotes:t,requestingTaskListOptions:o("getOption",["woocommerce_task_list_complete"])||o("getOption",["woocommerce_task_list_hidden"]),taskListComplete:i,taskListHidden:a}})),Object(w.withDispatch)((function(e){return{updateOptions:e(Z.OPTIONS_STORE_NAME).updateOptions}})),ve.a)(tt),rt=function(){return/iPhone|iPad|iPod/i.test(window.navigator.userAgent)?"ios":/Android/i.test(window.navigator.userAgent)?"android":"unknown"},ot=function(){return Object(y.createElement)("svg",{width:"37",height:"37",viewBox:"0 0 92 92",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(y.createElement)("rect",{width:"92",height:"92",rx:"21.3953",fill:"#7F54B3"}),Object(y.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M72.5937 28.043H19.8094C16.4781 28.0459 13.7783 30.7705 13.7754 34.1324V54.4501C13.7783 57.812 16.4781 60.5366 19.8094 60.5395H44.8229L56.2573 66.9607L53.6672 60.5395H72.599C74.2009 60.5402 75.7374 59.8983 76.8702 58.7552C78.0029 57.612 78.639 56.0614 78.6383 54.4447V34.1324C78.6376 32.5157 78.0002 30.9657 76.8664 29.8235C75.7327 28.6814 74.1956 28.0408 72.5937 28.043ZM19.1057 32.4208C18.4658 32.4324 17.8646 32.7359 17.467 33.2482C17.0888 33.7635 16.9404 34.4175 17.058 35.0502C18.5962 45.0986 20.0338 51.8757 21.371 55.3816C21.8779 56.658 22.4896 57.2703 23.2063 57.2185C24.3075 57.1489 25.6263 55.5968 27.1627 52.5621C27.9964 50.8412 29.2602 48.2662 30.9539 44.837C32.3785 49.88 34.309 53.6787 36.7456 56.2331C37.4291 56.9436 38.1204 57.2748 38.8195 57.2266C39.4185 57.1931 39.953 56.8315 40.217 56.2813C40.4753 55.7358 40.5806 55.1278 40.5211 54.5248C40.3516 52.0703 40.5919 48.667 41.2421 44.3149C41.9081 39.8057 42.7523 36.5818 43.7749 34.6432C43.9822 34.2526 44.0733 33.8087 44.037 33.366C44.0039 32.7587 43.7116 32.1969 43.2374 31.829C42.7745 31.4367 42.1799 31.2446 41.5803 31.2935C40.8334 31.3325 40.1682 31.7885 39.8499 32.4797C38.2331 35.5019 37.0812 40.4109 36.3943 47.2068C35.2823 44.2394 34.4509 41.1703 33.9114 38.0412C33.623 36.4613 32.9037 35.7125 31.7536 35.7946C30.9592 35.8589 30.3063 36.3944 29.7819 37.4012L24.0348 48.5643C23.0997 44.6692 22.2205 39.9289 21.3972 34.3433C21.1997 32.9652 20.4358 32.3244 19.1057 32.4208ZM69.9089 34.6877C71.6969 35.0381 73.2407 36.2 74.1186 37.8559C74.9693 39.3247 75.3946 41.1161 75.3946 43.23C75.4148 45.9567 74.7062 48.6357 73.3477 50.9687C71.7778 53.7023 69.7195 55.0691 67.1727 55.0691C66.6933 55.0668 66.2153 55.0128 65.7467 54.9078C63.9584 54.5581 62.4143 53.396 61.5371 51.7396C60.6864 50.2452 60.261 48.4411 60.261 46.3272C60.2357 43.6127 60.945 40.9454 62.3079 38.6295C63.9023 35.8959 65.9607 34.5291 68.4829 34.5291C68.9623 34.5304 69.4402 34.5836 69.9089 34.6877ZM68.7937 49.4848C69.7707 48.5773 70.4399 47.2269 70.8012 45.4337V45.4419C70.9315 44.7826 70.9959 44.1112 70.9933 43.4382C70.986 42.5849 70.8291 41.74 70.5302 40.9452C70.1443 39.901 69.6304 39.3124 68.9884 39.1793C68.0378 38.9643 67.1239 39.5256 66.2469 40.8632C65.5812 41.8393 65.109 42.9432 64.8577 44.1106C64.7276 44.7708 64.6632 45.4432 64.6657 46.1171C64.6739 46.9677 64.8308 47.8096 65.1287 48.6019C65.5146 49.6388 66.0294 50.2274 66.6731 50.3678C67.3169 50.5081 68.0237 50.2138 68.7937 49.4848ZM57.9079 37.8559C57.0291 36.2008 55.4854 35.0392 53.6976 34.6877C53.2279 34.5837 52.749 34.5306 52.2687 34.5291C49.7443 34.5291 47.6856 35.8959 46.0927 38.6295C44.7295 40.9454 44.0201 43.6127 44.0454 46.3272C44.0454 48.4411 44.4699 50.2452 45.319 51.7396C46.1976 53.3949 47.7414 54.5566 49.5294 54.9078C49.999 55.0126 50.4779 55.0667 50.9582 55.0691C53.5055 55.0691 55.5642 53.7023 57.1343 50.9687C58.4922 48.6355 59.2001 45.9565 59.1789 43.23C59.1789 41.1161 58.7544 39.3247 57.9053 37.8559H57.9079ZM54.5903 45.4337C54.2307 47.2269 53.5614 48.5773 52.5825 49.4848C51.8115 50.2065 51.101 50.5017 50.4589 50.3678C49.8169 50.2338 49.3011 49.6461 48.9169 48.6019C48.6181 47.8097 48.4603 46.9678 48.4511 46.1171C48.4495 45.4431 48.5148 44.7707 48.6459 44.1106C48.8971 42.9432 49.3694 41.8393 50.0353 40.8632C50.9124 39.5256 51.8264 38.9643 52.7773 39.1793C53.4193 39.3124 53.9333 39.901 54.3193 40.9452C54.617 41.7404 54.7739 42.585 54.7824 43.4382C54.785 44.1112 54.7207 44.7826 54.5903 45.4419V45.4337Z",fill:"white"}))},it=(n(378),function(e){var t=e.onInstall,n=e.onDismiss;Object(y.useEffect)((function(){var e=document.getElementsByClassName("woocommerce-layout")[0];return"android"===rt()&&e&&e.classList.add("woocommerce-layout__show-app-banner"),function(){e&&e.classList.remove("woocommerce-layout__show-app-banner")}}),[]);var r=Object(y.useState)(!1),o=Se()(r,2),i=o[0],a=o[1];return"android"!==rt()||i?null:Object(y.createElement)("div",{className:"woocommerce-mobile-app-banner"},Object(y.createElement)($e.a,{icon:"no-alt","data-testid":"dismiss-btn",onClick:function(){n(),a(!0),Object(X.recordEvent)("wcadmin_mobile_android_banner_click",{action:"dismiss"})}}),Object(y.createElement)(ot,null),Object(y.createElement)("div",{className:"woocommerce-mobile-app-banner__description"},Object(y.createElement)("p",{className:"woocommerce-mobile-app-banner__description__text"},Object(ee.__)("Run your store from anywhere","woocommerce-admin")),Object(y.createElement)("p",{className:"woocommerce-mobile-app-banner__description__text"},Object(ee.__)("Download the WooCommerce app","woocommerce-admin"))),Object(y.createElement)(ge.a,{href:"https://play.google.com/store/apps/details?id=com.woocommerce.android",isSecondary:!0,onClick:function(){t(),a(!0),Object(X.recordEvent)("wcadmin_mobile_android_banner_click",{action:"install"})}},Object(ee.__)("Install","woocommerce-admin")))}),at=n(196),ct=function(e){var t=e.sections,n=e.isEmbedded,r=void 0!==n&&n,o=e.query,i=Object(y.useRef)(null),c=Object(Y.g)("siteTitle",""),u=t.slice(-1)[0],s=Object(at.a)(),l=Object(Z.useUserPreferences)(),f=l.updateUserPreferences,d="yes"===a()(l,["updateUserPreferences"]).android_app_banner_dismissed,p=pe()("woocommerce-layout__header",{"is-scrolled":s});Object(y.useEffect)((function(){if(!r){var e=t.map((function(e){return Array.isArray(e)?e[1]:e})).reverse().join(" ‹ "),n=Object(me.decodeEntities)(Object(ee.sprintf)(Object(ee.__)("%1$s ‹ %2$s — WooCommerce","woocommerce-admin"),e,c));document.title!==n&&(document.title=n)}}),[r,t,c]);var m=function(){f({android_app_banner_dismissed:"yes"})};return Object(y.createElement)("div",{className:p,ref:i},!d&&Object(y.createElement)(it,{onDismiss:m,onInstall:m}),Object(y.createElement)(he.a,{className:"woocommerce-layout__header-heading",as:"h1",variant:"subtitle.small"},Object(me.decodeEntities)(u)),window.wcAdminFeatures["activity-panels"]&&Object(y.createElement)(nt,{isEmbedded:r,query:o}))};function ut(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var o=g()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return b()(this,n)}}var st=function(e){m()(n,e);var t=ut(n);function n(){return l()(this,n),t.apply(this,arguments)}return d()(n,[{key:"render",value:function(){return Object(y.createElement)("div",{id:"woocommerce-layout__notice-list",className:"woocommerce-layout__notice-list"})}}]),n}(y.Component),lt=n(14),ft=n.n(lt),dt=n(75),pt=n.n(dt),mt=n(238),ht=n(572),bt=n(340);var vt=function(e){var t=e.notices,n=e.className,r=e.children,i=e.onRemove,a=void 0===i?$.noop:i,c=e.onRemove2,u=void 0===c?$.noop:c,s=Object(ht.a)(),l=Object(y.useState)((function(){return new WeakMap})),f=Se()(l,1)[0],d=Object(mt.useTransition)(t,(function(e){return e.id}),{from:{opacity:0,height:0},enter:function(e){return function(){var t=pt()(ft.a.mark((function t(n){return ft.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n({opacity:1,height:f.get(e).offsetHeight});case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()},leave:function(){return function(){var e=pt()(ft.a.mark((function e(t){return ft.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t({opacity:0});case 2:return e.next=4,t({height:0});case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()},immediate:s});n=pe()("components-snackbar-list",n);var p=function(e){return function(){a(e.id),u(e.id)}};return Object(y.createElement)("div",{className:n},r,d.map((function(e){var t=e.item,n=e.key,r=e.props;return Object(y.createElement)(mt.animated.div,{key:n,style:r},Object(y.createElement)("div",{className:"components-snackbar-list__notice-container",ref:function(e){return e&&f.set(t,e)}},Object(y.createElement)(bt.a,o()({},Object($.omit)(t,["content"]),{onRemove:p(t)}),t.content)))})))};n(379);function gt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var o=g()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return b()(this,n)}}var yt=function(e){m()(n,e);var t=gt(n);function n(){return l()(this,n),t.apply(this,arguments)}return d()(n,[{key:"render",value:function(){var e=this.props,t=e.className,n=e.notices,r=e.onRemove,o=e.onRemove2,i=pe()("woocommerce-transient-notices","components-notices__snackbar",t);return Object(y.createElement)(vt,{notices:n,className:i,onRemove:r,onRemove2:o})}}]),n}(y.Component);yt.propTypes={className:x.a.string,notices:x.a.array};var Ot=Object(O.a)(Object(w.withSelect)((function(e){var t=e("core/notices").getNotices(),n=e("core/notices2").getNotices();return{notices:t.concat(n)}})),Object(w.withDispatch)((function(e){return{onRemove:e("core/notices").removeNotice,onRemove2:e("core/notices2").removeNotice}})))(yt),wt=n(197);function jt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function kt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jt(Object(n),!0).forEach((function(t){u()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Et(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_t(Object(n),!0).forEach((function(t){u()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_t(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function xt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var o=g()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return b()(this,n)}}Object(wt.registerPlugin)("wc-admin-navigation",{render:function(){if(!Object(ne.f)(window.location.href))return null;var e=Object(te.a)().filter((function(e){return e.navArgs})),t=le().filter((function(e){return e.navArgs})).map((function(e){return"/analytics/settings"===e.path?kt(kt({},e),{},{breadcrumbs:[Object(ee.__)("Analytics","woocommerce-admin")]}):e})),n=Object(K.getPersistedQuery)({});return Object(y.createElement)(y.Fragment,null,t.map((function(e){return Object(y.createElement)(K.WooNavigationItem,{item:e.navArgs.id,key:e.navArgs.id},Object(y.createElement)(Q.Link,{className:"components-button",href:Object(K.getNewPath)(n,e.path,{}),type:"wc-admin"},e.breadcrumbs[e.breadcrumbs.length-1]))})),e.map((function(e){return Object(y.createElement)(K.WooNavigationItem,{item:e.navArgs.id,key:e.navArgs.id},Object(y.createElement)(Q.Link,{className:"components-button",href:Object(K.getNewPath)(n,"/analytics/".concat(e.report),{}),type:"wc-admin"},e.title))})))}});var Ct=Object(y.lazy)((function(){return Promise.all([n.e(2),n.e(3),n.e(48)]).then(n.bind(null,673))})),St=Object(y.lazy)((function(){return n.e(52).then(n.bind(null,606))})),Pt=function(e){m()(n,e);var t=xt(n);function n(){return l()(this,n),t.apply(this,arguments)}return d()(n,[{key:"render",value:function(){var e=this.props.children;return Object(y.createElement)("div",{className:"woocommerce-layout__primary",id:"woocommerce-layout__primary"},window.wcAdminFeatures["store-alerts"]&&Object(y.createElement)(y.Suspense,{fallback:Object(y.createElement)(Q.Spinner,null)},Object(y.createElement)(Ct,null)),Object(y.createElement)(st,null),e)}}]),n}(y.Component),At=function(e){m()(n,e);var t=xt(n);function n(){return l()(this,n),t.apply(this,arguments)}return d()(n,[{key:"componentDidMount",value:function(){this.recordPageViewTrack()}},{key:"componentDidUpdate",value:function(e){var t=Object($.get)(e,"location.pathname"),n=Object($.get)(this.props,"location.pathname");t&&n&&t!==n&&this.recordPageViewTrack()}},{key:"recordPageViewTrack",value:function(){var e=this.props,t=e.activePlugins,n=e.installedPlugins,r=e.isEmbedded,o=e.isJetpackConnected,i={has_navigation:!!window.wcNavigation};if(r){var a=document.location.pathname+document.location.search;Object(X.recordPageView)(a,Et({is_embedded:!0},i))}else{var c=Object($.get)(this.props,"location.pathname");if(c){var u=c.substring(1).replace(/\//g,"_");0===u.length&&(u="home_screen"),Object(X.recordPageView)(u,Et({jetpack_installed:n.includes("jetpack"),jetpack_active:t.includes("jetpack"),jetpack_connected:o},i))}}}},{key:"getQuery",value:function(e){if(!e)return{};var t=e.substring(1);return Object(G.parse)(t)}},{key:"isWCPaySettingsPage",value:function(){var e=Object(K.getQuery)(),t=e.page,n=e.section,r=e.tab;return"wc-settings"===t&&"checkout"===r&&"woocommerce_payments"===n}},{key:"render",value:function(){var e=this.props,t=e.isEmbedded,n=a()(e,["isEmbedded"]),r=this.props,i=r.location,c=r.page.breadcrumbs,u=this.getQuery(i&&i.search);return Object(y.createElement)("div",{className:"woocommerce-layout"},Object(y.createElement)(ct,{sections:Object($.isFunction)(c)?c(this.props):c,isEmbedded:t,query:u}),Object(y.createElement)(Ot,null),!t&&Object(y.createElement)(Pt,null,Object(y.createElement)("div",{className:"woocommerce-layout__main"},Object(y.createElement)(fe,o()({},n,{query:u})))),t&&this.isWCPaySettingsPage()&&Object(y.createElement)(y.Suspense,{fallback:null},Object(y.createElement)(St,null)))}}]),n}(y.Component);At.propTypes={isEmbedded:x.a.bool,page:x.a.shape({container:x.a.oneOfType([x.a.func,x.a.object]),path:x.a.string,breadcrumbs:x.a.oneOfType([x.a.func,x.a.arrayOf(x.a.oneOfType([x.a.arrayOf(x.a.string),x.a.string]))]).isRequired,wpOpenMenu:x.a.string}).isRequired};var Nt=Object(O.a)(Object(Z.withPluginsHydration)(Et(Et({},window.wcSettings.plugins||{}),{},{jetpackStatus:window.wcSettings.dataEndpoints&&window.wcSettings.dataEndpoints.jetpackStatus||!1})),Object(w.withSelect)((function(e,t){if(!t.isEmbedded){var n=e(Z.PLUGINS_STORE_NAME),r=n.getActivePlugins,o=n.getInstalledPlugins,i=n.isJetpackConnected;return{activePlugins:r(),isJetpackConnected:i(),installedPlugins:o()}}})))(At),Rt=function(e){m()(n,e);var t=xt(n);function n(){return l()(this,n),t.apply(this,arguments)}return d()(n,[{key:"render",value:function(){return Object(y.createElement)(L,{history:Object(K.getHistory)()},Object(y.createElement)(W,null,le().map((function(e){return Object(y.createElement)(z,{key:e.path,path:e.path,exact:!0,render:function(t){return Object(y.createElement)(Nt,o()({page:e},t))}})}))))}}]),n}(y.Component),Tt=Object(O.a)(window.wcSettings.preloadOptions?Object(Z.withOptionsHydration)(Et({},window.wcSettings.preloadOptions)):$.identity)(Rt),Dt=Object(O.a)(window.wcSettings.preloadOptions?Object(Z.withOptionsHydration)(Et({},window.wcSettings.preloadOptions)):$.identity)((function(){return Object(y.createElement)(Nt,{page:{breadcrumbs:Object(Y.g)("embedBreadcrumbs",[])},isEmbedded:!0})}))},function(e,t){!function(){e.exports=this.wc.number}()},,,,,,,,function(e,t,n){"use strict";var r=n(91),o=n.n(r);t.a=o.a},function(e,t,n){"use strict";var r="function"==typeof Symbol&&Symbol.for,o=r?Symbol.for("react.element"):60103,i=r?Symbol.for("react.portal"):60106,a=r?Symbol.for("react.fragment"):60107,c=r?Symbol.for("react.strict_mode"):60108,u=r?Symbol.for("react.profiler"):60114,s=r?Symbol.for("react.provider"):60109,l=r?Symbol.for("react.context"):60110,f=r?Symbol.for("react.async_mode"):60111,d=r?Symbol.for("react.concurrent_mode"):60111,p=r?Symbol.for("react.forward_ref"):60112,m=r?Symbol.for("react.suspense"):60113,h=r?Symbol.for("react.suspense_list"):60120,b=r?Symbol.for("react.memo"):60115,v=r?Symbol.for("react.lazy"):60116,g=r?Symbol.for("react.block"):60121,y=r?Symbol.for("react.fundamental"):60117,O=r?Symbol.for("react.responder"):60118,w=r?Symbol.for("react.scope"):60119;function j(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case o:switch(e=e.type){case f:case d:case a:case u:case c:case m:return e;default:switch(e=e&&e.$$typeof){case l:case p:case v:case b:case s:return e;default:return t}}case i:return t}}}function k(e){return j(e)===d}t.AsyncMode=f,t.ConcurrentMode=d,t.ContextConsumer=l,t.ContextProvider=s,t.Element=o,t.ForwardRef=p,t.Fragment=a,t.Lazy=v,t.Memo=b,t.Portal=i,t.Profiler=u,t.StrictMode=c,t.Suspense=m,t.isAsyncMode=function(e){return k(e)||j(e)===f},t.isConcurrentMode=k,t.isContextConsumer=function(e){return j(e)===l},t.isContextProvider=function(e){return j(e)===s},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===o},t.isForwardRef=function(e){return j(e)===p},t.isFragment=function(e){return j(e)===a},t.isLazy=function(e){return j(e)===v},t.isMemo=function(e){return j(e)===b},t.isPortal=function(e){return j(e)===i},t.isProfiler=function(e){return j(e)===u},t.isStrictMode=function(e){return j(e)===c},t.isSuspense=function(e){return j(e)===m},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===d||e===u||e===c||e===m||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===b||e.$$typeof===s||e.$$typeof===l||e.$$typeof===p||e.$$typeof===y||e.$$typeof===O||e.$$typeof===w||e.$$typeof===g)},t.typeOf=j},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";function r(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(t,"__esModule",{value:!0});var o=r(n(36)),i=r(n(150)),a=n(8),c=r(a),u=r(n(130)),s=r(n(13)),l={arr:Array.isArray,obj:function(e){return"[object Object]"===Object.prototype.toString.call(e)},fun:function(e){return"function"==typeof e},str:function(e){return"string"==typeof e},num:function(e){return"number"==typeof e},und:function(e){return void 0===e},nul:function(e){return null===e},set:function(e){return e instanceof Set},map:function(e){return e instanceof Map},equ:function(e,t){if(typeof e!=typeof t)return!1;if(l.str(e)||l.num(e))return e===t;if(l.obj(e)&&l.obj(t)&&Object.keys(e).length+Object.keys(t).length===0)return!0;var n;for(n in e)if(!(n in t))return!1;for(n in t)if(e[n]!==t[n])return!1;return!l.und(n)||e===t}};function f(){var e=a.useState(!1)[1];return a.useCallback((function(){return e((function(e){return!e}))}),[])}function d(e,t){return l.und(e)||l.nul(e)?t:e}function p(e){return l.und(e)?[]:l.arr(e)?e:[e]}function m(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return l.fun(e)?e.apply(void 0,n):e}function h(e){var t=function(e){return e.to,e.from,e.config,e.onStart,e.onRest,e.onFrame,e.children,e.reset,e.reverse,e.force,e.immediate,e.delay,e.attach,e.destroyed,e.interpolateTo,e.ref,e.lazy,i(e,["to","from","config","onStart","onRest","onFrame","children","reset","reverse","force","immediate","delay","attach","destroyed","interpolateTo","ref","lazy"])}(e);if(l.und(t))return o({to:t},e);var n=Object.keys(e).reduce((function(n,r){var i;return l.und(t[r])?o({},n,((i={})[r]=e[r],i)):n}),{});return o({to:t},n)}var b,v,g=function(){function e(){this.payload=void 0,this.children=[]}var t=e.prototype;return t.getAnimatedValue=function(){return this.getValue()},t.getPayload=function(){return this.payload||this},t.attach=function(){},t.detach=function(){},t.getChildren=function(){return this.children},t.addChild=function(e){0===this.children.length&&this.attach(),this.children.push(e)},t.removeChild=function(e){var t=this.children.indexOf(e);this.children.splice(t,1),0===this.children.length&&this.detach()},e}(),y=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).payload=[],t.attach=function(){return t.payload.forEach((function(e){return e instanceof g&&e.addChild(s(t))}))},t.detach=function(){return t.payload.forEach((function(e){return e instanceof g&&e.removeChild(s(t))}))},t}return u(t,e),t}(g),O=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).payload={},t.attach=function(){return Object.values(t.payload).forEach((function(e){return e instanceof g&&e.addChild(s(t))}))},t.detach=function(){return Object.values(t.payload).forEach((function(e){return e instanceof g&&e.removeChild(s(t))}))},t}u(t,e);var n=t.prototype;return n.getValue=function(e){void 0===e&&(e=!1);var t={};for(var n in this.payload){var r=this.payload[n];(!e||r instanceof g)&&(t[n]=r instanceof g?r[e?"getAnimatedValue":"getValue"]():r)}return t},n.getAnimatedValue=function(){return this.getValue(!0)},t}(g);function w(e,t){b={fn:e,transform:t}}function j(e){v=e}var k,_=function(e){return"undefined"!=typeof window?window.requestAnimationFrame(e):-1},E=function(e){"undefined"!=typeof window&&window.cancelAnimationFrame(e)};function x(e){k=e}var C,S=function(){return Date.now()};function P(e){C=e}var A,N,R=function(e){return e.current};function T(e){A=e}var D=Object.freeze({get applyAnimatedValues(){return b},injectApplyAnimatedValues:w,get colorNames(){return v},injectColorNames:j,get requestFrame(){return _},get cancelFrame(){return E},injectFrame:function(e,t){_=e,E=t},get interpolation(){return k},injectStringInterpolator:x,get now(){return S},injectNow:function(e){S=e},get defaultElement(){return C},injectDefaultElement:P,get animatedApi(){return R},injectAnimatedApi:function(e){R=e},get createAnimatedStyle(){return A},injectCreateAnimatedStyle:T,get manualFrameloop(){return N},injectManualFrameloop:function(e){N=e}}),L=function(e){function t(t,n){var r;return(r=e.call(this)||this).update=void 0,r.payload=t.style?o({},t,{style:A(t.style)}):t,r.update=n,r.attach(),r}return u(t,e),t}(O),M=!1,F=new Set,I=function e(){if(!M)return!1;var t=S(),n=F,r=Array.isArray(n),o=0;for(n=r?n:n[Symbol.iterator]();;){var i;if(r){if(o>=n.length)break;i=n[o++]}else{if((o=n.next()).done)break;i=o.value}for(var a=i,c=!1,u=0;u<a.configs.length;u++){for(var s=a.configs[u],l=void 0,f=void 0,d=0;d<s.animatedValues.length;d++){var p=s.animatedValues[d];if(!p.done){var m=s.fromValues[d],h=s.toValues[d],b=p.lastPosition,v=h instanceof g,y=Array.isArray(s.initialVelocity)?s.initialVelocity[d]:s.initialVelocity;if(v&&(h=h.getValue()),s.immediate)p.setValue(h),p.done=!0;else if("string"!=typeof m&&"string"!=typeof h){if(void 0!==s.duration)b=m+s.easing((t-p.startTime)/s.duration)*(h-m),l=t>=p.startTime+s.duration;else if(s.decay)b=m+y/(1-.998)*(1-Math.exp(-(1-.998)*(t-p.startTime))),(l=Math.abs(p.lastPosition-b)<.1)&&(h=b);else{f=void 0!==p.lastTime?p.lastTime:t,y=void 0!==p.lastVelocity?p.lastVelocity:s.initialVelocity,t>f+64&&(f=t);for(var O=Math.floor(t-f),w=0;w<O;++w){b+=1*(y+=1*((-s.tension*(b-h)+-s.friction*y)/s.mass)/1e3)/1e3}var j=!(!s.clamp||0===s.tension)&&(m<h?b>h:b<h),k=Math.abs(y)<=s.precision,E=0===s.tension||Math.abs(h-b)<=s.precision;l=j||k&&E,p.lastVelocity=y,p.lastTime=t}v&&!s.toValues[d].done&&(l=!1),l?(p.value!==h&&(b=h),p.done=!0):c=!0,p.setValue(b),p.lastPosition=b}else p.setValue(h),p.done=!0}}a.props.onFrame&&(a.values[s.name]=s.interpolation.getValue())}a.props.onFrame&&a.props.onFrame(a.values),c||(F.delete(a),a.stop(!0))}return F.size?N?N():_(e):M=!1,M};function z(e,t,n){if("function"==typeof e)return e;if(Array.isArray(e))return z({range:e,output:t,extrapolate:n});if(k&&"string"==typeof e.output[0])return k(e);var r=e,o=r.output,i=r.range||[0,1],a=r.extrapolateLeft||r.extrapolate||"extend",c=r.extrapolateRight||r.extrapolate||"extend",u=r.easing||function(e){return e};return function(e){var t=function(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}(e,i);return function(e,t,n,r,o,i,a,c,u){var s=u?u(e):e;if(s<t){if("identity"===a)return s;"clamp"===a&&(s=t)}if(s>n){if("identity"===c)return s;"clamp"===c&&(s=n)}if(r===o)return r;if(t===n)return e<=t?r:o;t===-1/0?s=-s:n===1/0?s-=t:s=(s-t)/(n-t);s=i(s),r===-1/0?s=-s:o===1/0?s+=r:s=s*(o-r)+r;return s}(e,i[t],i[t+1],o[t],o[t+1],u,a,c,r.map)}}var H=function(e){function t(n,r,o,i){var a;return(a=e.call(this)||this).calc=void 0,a.payload=n instanceof y&&!(n instanceof t)?n.getPayload():Array.isArray(n)?n:[n],a.calc=z(r,o,i),a}u(t,e);var n=t.prototype;return n.getValue=function(){return this.calc.apply(this,this.payload.map((function(e){return e.getValue()})))},n.updateConfig=function(e,t,n){this.calc=z(e,t,n)},n.interpolate=function(e,n,r){return new t(this,e,n,r)},t}(y);var B=function(e){function t(t){var n;return(n=e.call(this)||this).animatedStyles=new Set,n.value=void 0,n.startPosition=void 0,n.lastPosition=void 0,n.lastVelocity=void 0,n.startTime=void 0,n.lastTime=void 0,n.done=!1,n.setValue=function(e,t){void 0===t&&(t=!0),n.value=e,t&&n.flush()},n.value=t,n.startPosition=t,n.lastPosition=t,n}u(t,e);var n=t.prototype;return n.flush=function(){0===this.animatedStyles.size&&function e(t,n){"update"in t?n.add(t):t.getChildren().forEach((function(t){return e(t,n)}))}(this,this.animatedStyles),this.animatedStyles.forEach((function(e){return e.update()}))},n.clearStyles=function(){this.animatedStyles.clear()},n.getValue=function(){return this.value},n.interpolate=function(e,t,n){return new H(this,e,t,n)},t}(g),U=function(e){function t(t){var n;return(n=e.call(this)||this).payload=t.map((function(e){return new B(e)})),n}u(t,e);var n=t.prototype;return n.setValue=function(e,t){var n=this;void 0===t&&(t=!0),Array.isArray(e)?e.length===this.payload.length&&e.forEach((function(e,r){return n.payload[r].setValue(e,t)})):this.payload.forEach((function(n){return n.setValue(e,t)}))},n.getValue=function(){return this.payload.map((function(e){return e.getValue()}))},n.interpolate=function(e,t){return new H(this,e,t)},t}(y),V=0,q=function(){function e(){var e=this;this.id=void 0,this.idle=!0,this.hasChanged=!1,this.guid=0,this.local=0,this.props={},this.merged={},this.animations={},this.interpolations={},this.values={},this.configs=[],this.listeners=[],this.queue=[],this.localQueue=void 0,this.getValues=function(){return e.interpolations},this.id=V++}var t=e.prototype;return t.update=function(e){if(!e)return this;var t=h(e),n=t.delay,r=void 0===n?0:n,a=t.to,c=i(t,["delay","to"]);if(l.arr(a)||l.fun(a))this.queue.push(o({},c,{delay:r,to:a}));else if(a){var u={};Object.entries(a).forEach((function(e){var t,n=e[0],i=e[1],a=o({to:(t={},t[n]=i,t),delay:m(r,n)},c),s=u[a.delay]&&u[a.delay].to;u[a.delay]=o({},u[a.delay],a,{to:o({},s,a.to)})})),this.queue=Object.values(u)}return this.queue=this.queue.sort((function(e,t){return e.delay-t.delay})),this.diff(c),this},t.start=function(e){var t,n=this;if(this.queue.length){this.idle=!1,this.localQueue&&this.localQueue.forEach((function(e){var t=e.from,r=void 0===t?{}:t,i=e.to,a=void 0===i?{}:i;l.obj(r)&&(n.merged=o({},r,n.merged)),l.obj(a)&&(n.merged=o({},n.merged,a))}));var r=this.local=++this.guid,a=this.localQueue=this.queue;this.queue=[],a.forEach((function(t,o){var c=t.delay,u=i(t,["delay"]),s=function(t){o===a.length-1&&r===n.guid&&t&&(n.idle=!0,n.props.onRest&&n.props.onRest(n.merged)),e&&e()},f=l.arr(u.to)||l.fun(u.to);c?setTimeout((function(){r===n.guid&&(f?n.runAsync(u,s):n.diff(u).start(s))}),c):f?n.runAsync(u,s):n.diff(u).start(s)}))}else l.fun(e)&&this.listeners.push(e),this.props.onStart&&this.props.onStart(),t=this,F.has(t)||F.add(t),M||(M=!0,_(N||I));return this},t.stop=function(e){return this.listeners.forEach((function(t){return t(e)})),this.listeners=[],this},t.pause=function(e){var t;return this.stop(!0),e&&(t=this,F.has(t)&&F.delete(t)),this},t.runAsync=function(e,t){var n=this,r=(e.delay,i(e,["delay"])),a=this.local,c=Promise.resolve(void 0);if(l.arr(r.to))for(var u=function(e){var t=e,i=o({},r,h(r.to[t]));l.arr(i.config)&&(i.config=i.config[t]),c=c.then((function(){if(a===n.guid)return new Promise((function(e){return n.diff(i).start(e)}))}))},s=0;s<r.to.length;s++)u(s);else if(l.fun(r.to)){var f,d=0;c=c.then((function(){return r.to((function(e){var t=o({},r,h(e));if(l.arr(t.config)&&(t.config=t.config[d]),d++,a===n.guid)return f=new Promise((function(e){return n.diff(t).start(e)}))}),(function(e){return void 0===e&&(e=!0),n.stop(e)})).then((function(){return f}))}))}c.then(t)},t.diff=function(e){var t=this;this.props=o({},this.props,e);var n=this.props,r=n.from,i=void 0===r?{}:r,a=n.to,c=void 0===a?{}:a,u=n.config,s=void 0===u?{}:u,f=n.reverse,h=n.attach,b=n.reset,g=n.immediate;if(f){var y=[c,i];i=y[0],c=y[1]}this.merged=o({},i,this.merged,c),this.hasChanged=!1;var O=h&&h(this);if(this.animations=Object.entries(this.merged).reduce((function(e,n){var r=n[0],a=n[1],c=e[r]||{},u=l.num(a),f=l.str(a)&&!a.startsWith("#")&&!/\d/.test(a)&&!v[a],h=l.arr(a),y=!u&&!h&&!f,w=l.und(i[r])?a:i[r],j=u||h||f?a:1,_=m(s,r);O&&(j=O.animations[r].parent);var E,x=c.parent,C=c.interpolation,P=p(O?j.getPayload():j),A=a;y&&(A=k({range:[0,1],output:[a,a]})(1));var N,R=C&&C.getValue(),T=!l.und(x)&&c.animatedValues.some((function(e){return!e.done})),D=!l.equ(A,R),L=!l.equ(A,c.previous),M=!l.equ(_,c.config);if(b||L&&D||M){var F;if(u||f)x=C=c.parent||new B(w);else if(h)x=C=c.parent||new U(w);else if(y){var I=c.interpolation&&c.interpolation.calc(c.parent.value);I=void 0===I||b?w:I,c.parent?(x=c.parent).setValue(0,!1):x=new B(0);var z={output:[I,a]};c.interpolation?(C=c.interpolation,c.interpolation.updateConfig(z)):C=x.interpolate(z)}return P=p(O?j.getPayload():j),E=p(x.getPayload()),b&&!y&&x.setValue(w,!1),t.hasChanged=!0,E.forEach((function(e){e.startPosition=e.value,e.lastPosition=e.value,e.lastVelocity=T?e.lastVelocity:void 0,e.lastTime=T?e.lastTime:void 0,e.startTime=S(),e.done=!1,e.animatedStyles.clear()})),m(g,r)&&x.setValue(y?j:a,!1),o({},e,((F={})[r]=o({},c,{name:r,parent:x,interpolation:C,animatedValues:E,toValues:P,previous:A,config:_,fromValues:p(x.getValue()),immediate:m(g,r),initialVelocity:d(_.velocity,0),clamp:d(_.clamp,!1),precision:d(_.precision,.01),tension:d(_.tension,170),friction:d(_.friction,26),mass:d(_.mass,1),duration:_.duration,easing:d(_.easing,(function(e){return e})),decay:_.decay}),F))}return D?e:(y&&(x.setValue(1,!1),C.updateConfig({output:[A,A]})),x.done=!0,t.hasChanged=!0,o({},e,((N={})[r]=o({},e[r],{previous:A}),N)))}),this.animations),this.hasChanged)for(var w in this.configs=Object.values(this.animations),this.values={},this.interpolations={},this.animations)this.interpolations[w]=this.animations[w].interpolation,this.values[w]=this.animations[w].interpolation.getValue();return this},t.destroy=function(){this.stop(),this.props={},this.merged={},this.animations={},this.interpolations={},this.values={},this.configs=[],this.local=0},e}(),W=function(e,t){var n=a.useRef(!1),r=a.useRef(),o=l.fun(t),i=a.useMemo((function(){var n;return r.current&&(r.current.map((function(e){return e.destroy()})),r.current=void 0),[new Array(e).fill().map((function(e,r){var i=new q,a=o?m(t,r,i):t[r];return 0===r&&(n=a.ref),i.update(a),n||i.start(),i})),n]}),[e]),c=i[0],u=i[1];r.current=c;a.useImperativeHandle(u,(function(){return{start:function(){return Promise.all(r.current.map((function(e){return new Promise((function(t){return e.start(t)}))})))},stop:function(e){return r.current.forEach((function(t){return t.stop(e)}))},get controllers(){return r.current}}}));var s=a.useMemo((function(){return function(e){return r.current.map((function(t,n){t.update(o?m(e,n,t):e[n]),u||t.start()}))}}),[e]);a.useEffect((function(){n.current?o||s(t):u||r.current.forEach((function(e){return e.start()}))})),a.useEffect((function(){return n.current=!0,function(){return r.current.forEach((function(e){return e.destroy()}))}}),[]);var f=r.current.map((function(e){return e.getValues()}));return o?[f,s,function(e){return r.current.forEach((function(t){return t.pause(e)}))}]:f},$=0,G=function(e,t){return("function"==typeof t?e.map(t):p(t)).map(String)},Q=function(e){var t=e.items,n=e.keys,r=void 0===n?function(e){return e}:n,a=i(e,["items","keys"]);return t=p(void 0!==t?t:null),o({items:t,keys:G(t,r)},a)};function K(e,t){var n=function(){if(o){if(i>=r.length)return"break";a=r[i++]}else{if((i=r.next()).done)return"break";a=i.value}var n=a.key,c=function(e){return e.key!==n};(l.und(t)||t===n)&&(e.current.instances.delete(n),e.current.transitions=e.current.transitions.filter(c),e.current.deleted=e.current.deleted.filter(c))},r=e.current.deleted,o=Array.isArray(r),i=0;for(r=o?r:r[Symbol.iterator]();;){var a;if("break"===n())break}e.current.forceUpdate()}var Y=function(e){function t(t){var n;return void 0===t&&(t={}),n=e.call(this)||this,!t.transform||t.transform instanceof g||(t=b.transform(t)),n.payload=t,n}return u(t,e),t}(O),Z={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},X="[-+]?\\d*\\.?\\d+";function J(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"\\(\\s*("+t.join(")\\s*,\\s*(")+")\\s*\\)"}var ee=new RegExp("rgb"+J(X,X,X)),te=new RegExp("rgba"+J(X,X,X,X)),ne=new RegExp("hsl"+J(X,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%")),re=new RegExp("hsla"+J(X,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%",X)),oe=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,ie=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,ae=/^#([0-9a-fA-F]{6})$/,ce=/^#([0-9a-fA-F]{8})$/;function ue(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function se(e,t,n){var r=n<.5?n*(1+t):n+t-n*t,o=2*n-r,i=ue(o,r,e+1/3),a=ue(o,r,e),c=ue(o,r,e-1/3);return Math.round(255*i)<<24|Math.round(255*a)<<16|Math.round(255*c)<<8}function le(e){var t=parseInt(e,10);return t<0?0:t>255?255:t}function fe(e){return(parseFloat(e)%360+360)%360/360}function de(e){var t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function pe(e){var t=parseFloat(e);return t<0?0:t>100?1:t/100}function me(e){var t,n,r="number"==typeof(t=e)?t>>>0===t&&t>=0&&t<=4294967295?t:null:(n=ae.exec(t))?parseInt(n[1]+"ff",16)>>>0:Z.hasOwnProperty(t)?Z[t]:(n=ee.exec(t))?(le(n[1])<<24|le(n[2])<<16|le(n[3])<<8|255)>>>0:(n=te.exec(t))?(le(n[1])<<24|le(n[2])<<16|le(n[3])<<8|de(n[4]))>>>0:(n=oe.exec(t))?parseInt(n[1]+n[1]+n[2]+n[2]+n[3]+n[3]+"ff",16)>>>0:(n=ce.exec(t))?parseInt(n[1],16)>>>0:(n=ie.exec(t))?parseInt(n[1]+n[1]+n[2]+n[2]+n[3]+n[3]+n[4]+n[4],16)>>>0:(n=ne.exec(t))?(255|se(fe(n[1]),pe(n[2]),pe(n[3])))>>>0:(n=re.exec(t))?(se(fe(n[1]),pe(n[2]),pe(n[3]))|de(n[4]))>>>0:null;return null===r?e:"rgba("+((4278190080&(r=r||0))>>>24)+", "+((16711680&r)>>>16)+", "+((65280&r)>>>8)+", "+(255&r)/255+")"}var he=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,be=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,ve=new RegExp("("+Object.keys(Z).join("|")+")","g"),ge={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},ye=["Webkit","Ms","Moz","O"];function Oe(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||ge.hasOwnProperty(e)&&ge[e]?(""+t).trim():t+"px"}ge=Object.keys(ge).reduce((function(e,t){return ye.forEach((function(n){return e[function(e,t){return e+t.charAt(0).toUpperCase()+t.substring(1)}(n,t)]=e[t]})),e}),ge);var we={};T((function(e){return new Y(e)})),P("div"),x((function(e){var t=e.output.map((function(e){return e.replace(be,me)})).map((function(e){return e.replace(ve,me)})),n=t[0].match(he).map((function(){return[]}));t.forEach((function(e){e.match(he).forEach((function(e,t){return n[t].push(+e)}))}));var r=t[0].match(he).map((function(t,r){return z(o({},e,{output:n[r]}))}));return function(e){var n=0;return t[0].replace(he,(function(){return r[n++](e)})).replace(/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,(function(e,t,n,r,o){return"rgba("+Math.round(t)+", "+Math.round(n)+", "+Math.round(r)+", "+o+")"}))}})),j(Z),w((function(e,t){if(!e.nodeType||void 0===e.setAttribute)return!1;var n=t.style,r=t.children,o=t.scrollTop,a=t.scrollLeft,c=i(t,["style","children","scrollTop","scrollLeft"]),u="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName;for(var s in void 0!==o&&(e.scrollTop=o),void 0!==a&&(e.scrollLeft=a),void 0!==r&&(e.textContent=r),n)if(n.hasOwnProperty(s)){var l=0===s.indexOf("--"),f=Oe(s,n[s],l);"float"===s&&(s="cssFloat"),l?e.style.setProperty(s,f):e.style[s]=f}for(var d in c){var p=u?d:we[d]||(we[d]=d.replace(/([A-Z])/g,(function(e){return"-"+e.toLowerCase()})));void 0!==e.getAttribute(p)&&e.setAttribute(p,c[d])}}),(function(e){return e}));var je,ke,_e=(je=function(e){return a.forwardRef((function(t,n){var r=f(),u=a.useRef(!0),s=a.useRef(null),d=a.useRef(null),p=a.useCallback((function(e){var t=s.current;s.current=new L(e,(function(){var e=!1;d.current&&(e=b.fn(d.current,s.current.getAnimatedValue())),d.current&&!1!==e||r()})),t&&t.detach()}),[]);a.useEffect((function(){return function(){u.current=!1,s.current&&s.current.detach()}}),[]),a.useImperativeHandle(n,(function(){return R(d,u,r)})),p(t);var m,h=s.current.getValue(),v=(h.scrollTop,h.scrollLeft,i(h,["scrollTop","scrollLeft"])),g=(m=e,!l.fun(m)||m.prototype instanceof c.Component?function(e){return d.current=function(e,t){return t&&(l.fun(t)?t(e):l.obj(t)&&(t.current=e)),e}(e,n)}:void 0);return c.createElement(e,o({},v,{ref:g}))}))},void 0===(ke=!1)&&(ke=!0),function(e){return(l.arr(e)?e:Object.keys(e)).reduce((function(e,t){var n=ke?t[0].toLowerCase()+t.substring(1):t;return e[n]=je(n),e}),je)}),Ee=_e(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]);t.apply=_e,t.config={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},t.update=I,t.animated=Ee,t.a=Ee,t.interpolate=function(e,t,n){return e&&new H(e,t,n)},t.Globals=D,t.useSpring=function(e){var t=l.fun(e),n=W(1,t?e:[e]),r=n[0],o=n[1],i=n[2];return t?[r[0],o,i]:r},t.useTrail=function(e,t){var n=a.useRef(!1),r=l.fun(t),i=m(t),c=a.useRef(),u=W(e,(function(e,t){return 0===e&&(c.current=[]),c.current.push(t),o({},i,{config:m(i.config,e),attach:e>0&&function(){return c.current[e-1]}})})),s=u[0],f=u[1],d=u[2],p=a.useMemo((function(){return function(e){return f((function(t,n){e.reverse;var r=e.reverse?t+1:t-1,a=c.current[r];return o({},e,{config:m(e.config||i.config,t),attach:a&&function(){return a}})}))}}),[e,i.reverse]);return a.useEffect((function(){n.current&&!r&&p(t)})),a.useEffect((function(){n.current=!0}),[]),r?[s,p,d]:s},t.useTransition=function(e,t,n){var r=o({items:e,keys:t||function(e){return e}},n),c=Q(r),u=c.lazy,s=void 0!==u&&u,l=(c.unique,c.reset),d=void 0!==l&&l,p=(c.enter,c.leave,c.update,c.onDestroyed),h=(c.keys,c.items,c.onFrame),b=c.onRest,v=c.onStart,g=c.ref,y=i(c,["lazy","unique","reset","enter","leave","update","onDestroyed","keys","items","onFrame","onRest","onStart","ref"]),O=f(),w=a.useRef(!1),j=a.useRef({mounted:!1,first:!0,deleted:[],current:{},transitions:[],prevProps:{},paused:!!r.ref,instances:!w.current&&new Map,forceUpdate:O});return a.useImperativeHandle(r.ref,(function(){return{start:function(){return Promise.all(Array.from(j.current.instances).map((function(e){var t=e[1];return new Promise((function(e){return t.start(e)}))})))},stop:function(e){return Array.from(j.current.instances).forEach((function(t){return t[1].stop(e)}))},get controllers(){return Array.from(j.current.instances).map((function(e){return e[1]}))}}})),j.current=function(e,t){var n=e.first,r=e.prevProps,a=i(e,["first","prevProps"]),c=Q(t),u=c.items,s=c.keys,l=c.initial,f=c.from,d=c.enter,p=c.leave,h=c.update,b=c.trail,v=void 0===b?0:b,g=c.unique,y=c.config,O=c.order,w=void 0===O?["enter","leave","update"]:O,j=Q(r),k=j.keys,_=j.items,E=o({},a.current),x=[].concat(a.deleted),C=Object.keys(E),S=new Set(C),P=new Set(s),A=s.filter((function(e){return!S.has(e)})),N=a.transitions.filter((function(e){return!e.destroyed&&!P.has(e.originalKey)})).map((function(e){return e.originalKey})),R=s.filter((function(e){return S.has(e)})),T=-v;for(;w.length;){switch(w.shift()){case"enter":A.forEach((function(e,t){g&&x.find((function(t){return t.originalKey===e}))&&(x=x.filter((function(t){return t.originalKey!==e})));var r=s.indexOf(e),o=u[r],i=n&&void 0!==l?"initial":"enter";E[e]={slot:i,originalKey:e,key:g?String(e):$++,item:o,trail:T+=v,config:m(y,o,i),from:m(n&&void 0!==l?l||{}:f,o),to:m(d,o)}}));break;case"leave":N.forEach((function(e){var t=k.indexOf(e),n=_[t];x.unshift(o({},E[e],{slot:"leave",destroyed:!0,left:k[Math.max(0,t-1)],right:k[Math.min(k.length,t+1)],trail:T+=v,config:m(y,n,"leave"),to:m(p,n)})),delete E[e]}));break;case"update":R.forEach((function(e){var t=s.indexOf(e),n=u[t];E[e]=o({},E[e],{item:n,slot:"update",trail:T+=v,config:m(y,n,"update"),to:m(h,n)})}))}}var D=s.map((function(e){return E[e]}));return x.forEach((function(e){var t,n=e.left,r=(e.right,i(e,["left","right"]));-1!==(t=D.findIndex((function(e){return e.originalKey===n})))&&(t+=1),t=Math.max(0,t),D=[].concat(D.slice(0,t),[r],D.slice(t))})),o({},a,{changed:A.length||N.length||R.length,first:n&&0===A.length,transitions:D,current:E,deleted:x,prevProps:t})}(j.current,r),j.current.changed&&j.current.transitions.forEach((function(e){var t=e.slot,n=e.from,r=e.to,i=e.config,a=e.trail,c=e.key,u=e.item;j.current.instances.has(c)||j.current.instances.set(c,new q);var l=j.current.instances.get(c),f=o({},y,{to:r,from:n,config:i,ref:g,onRest:function(n){j.current.mounted&&(e.destroyed&&(g||s||K(j,c),p&&p(u)),!Array.from(j.current.instances).some((function(e){return!e[1].idle}))&&(g||s)&&j.current.deleted.length>0&&K(j),b&&b(u,t,n))},onStart:v&&function(){return v(u,t)},onFrame:h&&function(e){return h(u,t,e)},delay:a,reset:d&&"enter"===t});l.update(f),j.current.paused||l.start()})),a.useEffect((function(){return j.current.mounted=w.current=!0,function(){j.current.mounted=w.current=!1,Array.from(j.current.instances).map((function(e){return e[1].destroy()})),j.current.instances.clear()}}),[]),j.current.transitions.map((function(e){var t=e.item,n=e.slot,r=e.key;return{item:t,key:r,state:n,props:j.current.instances.get(r).getValues()}}))},t.useChain=function(e,t,n){void 0===n&&(n=1e3);var r=a.useRef();a.useEffect((function(){l.equ(e,r.current)?e.forEach((function(e){var t=e.current;return t&&t.start()})):t?e.forEach((function(e,r){var i=e.current;if(i){var a=i.controllers;if(a.length){var c=n*t[r];a.forEach((function(e){e.queue=e.queue.map((function(e){return o({},e,{delay:e.delay+c})})),e.start()}))}}})):e.reduce((function(e,t,n){var r=t.current;return e.then((function(){return r.start()}))}),Promise.resolve()),r.current=e}))},t.useSprings=W},function(e,t,n){var r=n(380);e.exports=p,e.exports.parse=i,e.exports.compile=function(e,t){return c(i(e,t),t)},e.exports.tokensToFunction=c,e.exports.tokensToRegExp=d;var o=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function i(e,t){for(var n,r=[],i=0,a=0,c="",l=t&&t.delimiter||"/";null!=(n=o.exec(e));){var f=n[0],d=n[1],p=n.index;if(c+=e.slice(a,p),a=p+f.length,d)c+=d[1];else{var m=e[a],h=n[2],b=n[3],v=n[4],g=n[5],y=n[6],O=n[7];c&&(r.push(c),c="");var w=null!=h&&null!=m&&m!==h,j="+"===y||"*"===y,k="?"===y||"*"===y,_=n[2]||l,E=v||g;r.push({name:b||i++,prefix:h||"",delimiter:_,optional:k,repeat:j,partial:w,asterisk:!!O,pattern:E?s(E):O?".*":"[^"+u(_)+"]+?"})}}return a<e.length&&(c+=e.substr(a)),c&&r.push(c),r}function a(e){return encodeURI(e).replace(/[\/?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function c(e,t){for(var n=new Array(e.length),o=0;o<e.length;o++)"object"==typeof e[o]&&(n[o]=new RegExp("^(?:"+e[o].pattern+")$",f(t)));return function(t,o){for(var i="",c=t||{},u=(o||{}).pretty?a:encodeURIComponent,s=0;s<e.length;s++){var l=e[s];if("string"!=typeof l){var f,d=c[l.name];if(null==d){if(l.optional){l.partial&&(i+=l.prefix);continue}throw new TypeError('Expected "'+l.name+'" to be defined')}if(r(d)){if(!l.repeat)throw new TypeError('Expected "'+l.name+'" to not repeat, but received `'+JSON.stringify(d)+"`");if(0===d.length){if(l.optional)continue;throw new TypeError('Expected "'+l.name+'" to not be empty')}for(var p=0;p<d.length;p++){if(f=u(d[p]),!n[s].test(f))throw new TypeError('Expected all "'+l.name+'" to match "'+l.pattern+'", but received `'+JSON.stringify(f)+"`");i+=(0===p?l.prefix:l.delimiter)+f}}else{if(f=l.asterisk?encodeURI(d).replace(/[?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})):u(d),!n[s].test(f))throw new TypeError('Expected "'+l.name+'" to match "'+l.pattern+'", but received "'+f+'"');i+=l.prefix+f}}else i+=l}return i}}function u(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function s(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function l(e,t){return e.keys=t,e}function f(e){return e&&e.sensitive?"":"i"}function d(e,t,n){r(t)||(n=t||n,t=[]);for(var o=(n=n||{}).strict,i=!1!==n.end,a="",c=0;c<e.length;c++){var s=e[c];if("string"==typeof s)a+=u(s);else{var d=u(s.prefix),p="(?:"+s.pattern+")";t.push(s),s.repeat&&(p+="(?:"+d+p+")*"),a+=p=s.optional?s.partial?d+"("+p+")?":"(?:"+d+"("+p+"))?":d+"("+p+")"}}var m=u(n.delimiter||"/"),h=a.slice(-m.length)===m;return o||(a=(h?a.slice(0,-m.length):a)+"(?:"+m+"(?=$))?"),a+=i?"$":o&&h?"":"(?="+m+"|$)",l(new RegExp("^"+a,f(n)),t)}function p(e,t,n){return r(t)||(n=t||n,t=[]),n=n||{},e instanceof RegExp?function(e,t){var n=e.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)t.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return l(e,t)}(e,t):r(e)?function(e,t,n){for(var r=[],o=0;o<e.length;o++)r.push(p(e[o],t,n).source);return l(new RegExp("(?:"+r.join("|")+")",f(n)),t)}(e,t,n):function(e,t,n){return d(i(e,n),t,n)}(e,t,n)}},,,,,,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return i}));var r=n(2);function o(e,t){return Object(r.filter)(e,(function(e){var n=e.is_deleted,r=e.date_created_gmt,o=e.status;if(!n)return(!t||!r||new Date(r+"Z").getTime()>t)&&"unactioned"===o})).length}function i(e){return Object(r.filter)(e,(function(e){return!e.is_deleted})).length>0}},,,,,,,,function(e,t,n){"use strict";var r=n(0),o=n(78),i=Object(r.createElement)(o.c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.b,{d:"M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"}));t.a=i},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();var i=n(375),a=n(8),c=n(90);e.exports=function(e){var t=e.displayName||e.name,n=function(t){function n(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);var t=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e));return t.handleClickOutside=t.handleClickOutside.bind(t),t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,t),o(n,[{key:"componentDidMount",value:function(){document.addEventListener("click",this.handleClickOutside,!0)}},{key:"componentWillUnmount",value:function(){document.removeEventListener("click",this.handleClickOutside,!0)}},{key:"handleClickOutside",value:function(e){var t=this.__domNode;t&&t.contains(e.target)||!this.__wrappedInstance||"function"!=typeof this.__wrappedInstance.handleClickOutside||this.__wrappedInstance.handleClickOutside(e)}},{key:"render",value:function(){var t=this,n=this.props,o=n.wrappedRef,i=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(n,["wrappedRef"]);return a.createElement(e,r({},i,{ref:function(e){t.__wrappedInstance=e,t.__domNode=c.findDOMNode(e),o&&o(e)}}))}}]),n}(a.Component);return n.displayName="clickOutside("+t+")",i(n,e)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(7),o=n(24),i=n(0),a=n(4),c=n.n(a),u=n(117);function s(e){var t,n,a,s,l,f,d=e.renderContent,p=e.renderToggle,m=e.position,h=void 0===m?"bottom right":m,b=e.className,v=e.contentClassName,g=e.expandOnMobile,y=e.headerTitle,O=e.focusOnMount,w=e.popoverProps,j=e.onClose,k=e.onToggle,_=Object(i.useRef)(),E=(t=!1,n=k,a=Object(i.useState)(t),s=Object(o.a)(a,2),l=s[0],f=s[1],[l,function(e){f(e),n&&n(e)}]),x=Object(o.a)(E,2),C=x[0],S=x[1];function P(){j&&j(),S(!1)}Object(i.useEffect)((function(){return function(){k&&k(!1)}}),[]);var A={isOpen:C,onToggle:function(){S(!C)},onClose:P};return Object(i.createElement)("div",{className:c()("components-dropdown",b),ref:_},p(A),C&&Object(i.createElement)(u.a,Object(r.a)({position:h,onClose:P,onFocusOutside:function(){var e=_.current.ownerDocument;_.current.contains(e.activeElement)||e.activeElement.closest('[role="dialog"]')||P()},expandOnMobile:g,headerTitle:y,focusOnMount:O},w,{anchorRef:_.current,className:c()("components-dropdown__content",w?w.className:void 0,v)}),d(A)))}},function(e,t,n){"use strict";(function(e){var r=n(0),o=n(2),i=n(4),a=n.n(i),c=n(141),u=n(3),s=(n(72),n(68));t.a=Object(r.forwardRef)((function(t,n){var i=t.className,l=t.children,f=t.spokenMessage,d=void 0===f?l:f,p=t.politeness,m=void 0===p?"polite":p,h=t.actions,b=void 0===h?[]:h,v=t.onRemove,g=void 0===v?o.noop:v,y=t.icon,O=void 0===y?null:y,w=t.explicitDismiss,j=void 0!==w&&w,k=t.onDismiss,_=void 0===k?null:k;function E(e){e&&e.preventDefault&&e.preventDefault(),_(),g()}_=_||o.noop,function(e,t){var n="string"==typeof e?e:Object(r.renderToString)(e);Object(r.useEffect)((function(){n&&Object(c.a)(n,t)}),[n,t])}(d,m),Object(r.useEffect)((function(){var e=setTimeout((function(){j||(_(),g())}),1e4);return function(){return clearTimeout(e)}}),[j,_,g]);var x=a()(i,"components-snackbar",{"components-snackbar-explicit-dismiss":!!j});b&&b.length>1&&(void 0!==e&&e.env,b=[b[0]]);var C=a()("components-snackbar__content",{"components-snackbar__content-with-icon":!!O});return Object(r.createElement)("div",{ref:n,className:x,onClick:j?o.noop:E,tabIndex:"0",role:j?"":"button",onKeyPress:j?o.noop:E,"aria-label":j?"":Object(u.__)("Dismiss this notice")},Object(r.createElement)("div",{className:C},O&&Object(r.createElement)("div",{className:"components-snackbar__icon"},O),l,b.map((function(e,t){var n=e.label,o=e.onClick,i=e.url;return Object(r.createElement)(s.a,{key:t,href:i,isTertiary:!0,onClick:function(e){return function(e,t){e.stopPropagation(),g(),t&&t(e)}(e,o)},className:"components-snackbar__action"},n)})),j&&Object(r.createElement)("span",{role:"button","aria-label":"Dismiss this notice",tabIndex:"0",className:"components-snackbar__dismiss-button",onClick:E,onKeyPress:E},"✕")))}))}).call(this,n(64))},function(e,t,n){"use strict";(function(e){var r=n(8),o=n.n(r),i=n(53),a=n(1),c=n.n(a),u="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e?e:{};function s(e){var t=[];return{on:function(e){t.push(e)},off:function(e){t=t.filter((function(t){return t!==e}))},get:function(){return e},set:function(n,r){e=n,t.forEach((function(t){return t(e,r)}))}}}var l=o.a.createContext||function(e,t){var n,o,a,l="__create-react-context-"+((u[a="__global_unique_id__"]=(u[a]||0)+1)+"__"),f=function(e){function n(){var t;return(t=e.apply(this,arguments)||this).emitter=s(t.props.value),t}Object(i.a)(n,e);var r=n.prototype;return r.getChildContext=function(){var e;return(e={})[l]=this.emitter,e},r.componentWillReceiveProps=function(e){if(this.props.value!==e.value){var n,r=this.props.value,o=e.value;((i=r)===(a=o)?0!==i||1/i==1/a:i!=i&&a!=a)?n=0:(n="function"==typeof t?t(r,o):1073741823,0!==(n|=0)&&this.emitter.set(e.value,n))}var i,a},r.render=function(){return this.props.children},n}(r.Component);f.childContextTypes=((n={})[l]=c.a.object.isRequired,n);var d=function(t){function n(){var e;return(e=t.apply(this,arguments)||this).state={value:e.getValue()},e.onUpdate=function(t,n){0!=((0|e.observedBits)&n)&&e.setState({value:e.getValue()})},e}Object(i.a)(n,t);var r=n.prototype;return r.componentWillReceiveProps=function(e){var t=e.observedBits;this.observedBits=null==t?1073741823:t},r.componentDidMount=function(){this.context[l]&&this.context[l].on(this.onUpdate);var e=this.props.observedBits;this.observedBits=null==e?1073741823:e},r.componentWillUnmount=function(){this.context[l]&&this.context[l].off(this.onUpdate)},r.getValue=function(){return this.context[l]?this.context[l].get():e},r.render=function(){return(e=this.props.children,Array.isArray(e)?e[0]:e)(this.state.value);var e},n}(r.Component);return d.contextTypes=((o={})[l]=c.a.object,o),{Provider:f,Consumer:d}};t.a=l}).call(this,n(127))},function(e,t){!function(){e.exports=this.wc.customerEffortScore}()},,,,,,,function(e,t,n){"use strict";var r=n(0),o=n(197),i=n(29),a=n(34),c=(n(381),n(31)),u=n.n(c),s=n(5),l=n.n(s),f=n(3),d=n(181),p=n(6),m=n(24),h=n(4),b=n.n(h),v=n(2),g=n(115),y=Object(r.createContext)({activeItem:void 0,activeMenu:"root",setActiveMenu:v.noop,navigationTree:{items:{},getItem:v.noop,addItem:v.noop,removeItem:v.noop,menus:{},getMenu:v.noop,addMenu:v.noop,removeMenu:v.noop}}),O=function(){return Object(r.useContext)(y)},w=n(32),j=n(86),k=n(68),_=n(142);var E=Object(w.a)("div",{target:"ejwewyf0",label:"NavigationUI"})("width:100%;background-color:",j.b.darkGray.primary,";color:#f0f0f0;padding:0 8px;overflow:hidden;"),x=Object(w.a)("div",{target:"ejwewyf1",label:"MenuUI"})({name:"1wlvkgj",styles:"margin-top:24px;margin-bottom:24px;display:flex;flex-direction:column;ul{padding:0;margin:0;list-style:none;}.components-navigation__back-button{margin-bottom:24px;}"}),C=Object(w.a)(k.a,{target:"ejwewyf2",label:"MenuBackButtonUI"})("&.is-tertiary{color:",j.b.lightGray.ui,";&:hover:not(:disabled ){color:#ddd;box-shadow:none;}&:active:not(:disabled ){background:transparent;color:#ddd;}}"),S=Object(w.a)(_.a,{target:"ejwewyf3",label:"MenuTitleUI"})("padding:4px 0 4px 16px;margin-bottom:8px;color:",j.b.gray[100],";"),P=Object(w.a)(_.a,{target:"ejwewyf4",label:"GroupTitleUI"})("margin-top:8px;padding:4px 0 4px 16px;text-transform:uppercase;color:",j.b.gray[100],";"),A=Object(w.a)("li",{target:"ejwewyf5",label:"ItemUI"})("border-radius:2px;color:",j.b.lightGray.ui,";button,a{margin:0;font-weight:400;font-size:14px;line-height:20px;padding-left:16px;padding-right:16px;width:100%;color:",j.b.lightGray.ui,";&:hover,&:focus:not( [aria-disabled='true'] ):active,&:active:not( [aria-disabled='true'] ):active{color:#ddd;}}&.is-active{background-color:",j.c.theme,";color:",j.c.textDark,";button,a{color:",j.c.textDark,";}}svg path{color:",j.b.lightGray.ui,";}"),N=Object(w.a)("span",{target:"ejwewyf6",label:"ItemBadgeUI"})("margin-left:8px;display:inline-flex;padding:4px 12px;border-radius:2px;animation:fade-in 250ms ease-out;@keyframes fade-in{from{opacity:0;}to{opacity:1;}}",function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"transition";switch(t){case"transition":e="transition-duration: 0ms;";break;case"animation":e="animation-duration: 1ms;";break;default:e="\n\t\t\t\tanimation-duration: 1ms;\n\t\t\t\ttransition-duration: 0ms;\n\t\t\t"}return"\n\t\t@media ( prefers-reduced-motion: reduce ) {\n\t\t\t".concat(e,";\n\t\t}\n\t")}("animation"),";"),R=Object(w.a)(_.a,{target:"ejwewyf7",label:"ItemTitleUI"})({name:"zs804i",styles:"margin-right:auto;text-align:left;"});function T(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function D(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?T(Object(n),!0).forEach((function(t){Object(p.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):T(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var L=function(){var e=Object(r.useState)({}),t=Object(m.a)(e,2),n=t[0],o=t[1];return{nodes:n,getNode:function(e){return n[e]},addNode:function(e,t){return o((function(n){return D(D({},n),{},Object(p.a)({},e,Object(v.omit)(t,"children")))}))},removeNode:function(e){return o((function(t){return Object(v.omit)(t,e)}))}}};function M(e){var t,n,o,i,a,c,u=e.activeItem,s=e.activeMenu,l=void 0===s?"root":s,f=e.children,d=e.className,h=e.onActivateMenu,O=void 0===h?v.noop:h,w=Object(r.useState)(l),j=Object(m.a)(w,2),k=j[0],_=j[1],x=Object(r.useState)(),C=Object(m.a)(x,2),S=C[0],P=C[1],A=(t=L(),n=t.nodes,o=t.getNode,i=t.addNode,a=t.removeNode,c=L(),{items:n,getItem:o,addItem:i,removeItem:a,menus:c.nodes,getMenu:c.getNode,addMenu:c.addNode,removeMenu:c.removeNode}),N=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"left";A.getMenu(e)&&(P(t),_(e),O(e))},R=Object(r.useRef)(!1);Object(r.useEffect)((function(){R.current||(R.current=!0)}),[]),Object(r.useEffect)((function(){l!==k&&N(l)}),[l]);var T={activeItem:u,activeMenu:k,setActiveMenu:N,navigationTree:A},D=b()("components-navigation",d);return Object(r.createElement)(E,{className:D},Object(r.createElement)(g.a,{key:k,type:"slide-in",options:{origin:S}},(function(e){var t=e.className;return Object(r.createElement)("div",{className:b()(Object(p.a)({},t,R.current&&S))},Object(r.createElement)(y.Provider,{value:T},f))})))}var F=n(382),I=n(78),z=Object(r.createElement)(I.c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(I.b,{d:"M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"}));function H(e){var t,n=e.backButtonLabel,o=e.className,i=e.href,a=e.onClick,c=e.parentMenu,u=O(),s=u.setActiveMenu,l=u.navigationTree,d=b()("components-navigation__back-button",o),p=null===(t=l.getMenu(c))||void 0===t?void 0:t.title;return Object(r.createElement)(C,{className:d,isTertiary:!0,href:i,onClick:function(){return c?s(c,"right"):a}},Object(r.createElement)(F.a,{icon:z}),n||p||Object(f.__)("Back"))}var B=Object(r.createContext)({menu:void 0,isActive:!1}),U=function(){return Object(r.useContext)(B)};function V(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function q(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?V(Object(n),!0).forEach((function(t){Object(p.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):V(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function W(e){var t=e.backButtonLabel,n=e.children,o=e.className,i=e.menu,a=void 0===i?"root":i,c=e.parentMenu,u=e.title;!function(e){var t=O().navigationTree,n=t.addMenu,o=t.removeMenu,i=e.menu||"root";Object(r.useEffect)((function(){return n(i,q(q({},e),{},{menu:i})),function(){o(i)}}),[])}(e);var s=O().activeMenu===a,l=b()("components-navigation__menu",o),f={menu:a,isActive:s};return s?Object(r.createElement)(B.Provider,{value:f},Object(r.createElement)(x,{className:l},c&&Object(r.createElement)(H,{backButtonLabel:t,parentMenu:c}),u&&Object(r.createElement)(S,{as:"h2",className:"components-navigation__menu-title",variant:"subtitle"},u),Object(r.createElement)("ul",null,n))):Object(r.createElement)(B.Provider,{value:f},n)}function $(e){var t=e.children,n=e.className,o=e.title;if(!U().isActive)return t;var i=b()("components-navigation__group",n);return Object(r.createElement)("li",{className:i},o&&Object(r.createElement)(P,{as:"h3",className:"components-navigation__group-title",variant:"caption"},o),Object(r.createElement)("ul",null,t))}var G=n(35),Q=n(50),K=n(25),Y=function(e){var t=window.location,n=t.origin,r=t.pathname,o=t.search;return 0===e.indexOf("#")?n+r+o+e:0===e.indexOf("http")?e:n+e},Z=function(e){var t=e.replace(/[-\/\\^$*+?.()|[\]{}]/gi,"\\$&").split(/\\\?|#/),n=u()(t,3),r=n[0],o=n[1],i=n[2],a=i?"(.*#".concat(i,"$)"):"";return"^"+r+(o?o.split("&").reduce((function(e,t){return"".concat(e,"(?=.*[?|&]").concat(t,"(&|$|#))")}),""):"")+a},X=function(e){var t=null,n=0;return e.forEach((function(e){var r=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(t){var r=Y(t),o=e.href;if(r===o)return Number.MAX_SAFE_INTEGER;var i=Z(r),a=new RegExp(n||i,"i");return(decodeURIComponent(o).match(a)||[]).length}}(window.location,Object(G.f)(e.url),e.matchExpression);r>0&&r>=n&&(n=r,t=e)})),t||null},J=n(377),ee=Object(r.createElement)(I.c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(r.createElement)(I.b,{d:"M20 10c0-5.51-4.49-10-10-10C4.48 0 0 4.49 0 10c0 5.52 4.48 10 10 10 5.51 0 10-4.48 10-10zM7.78 15.37L4.37 6.22c.55-.02 1.17-.08 1.17-.08.5-.06.44-1.13-.06-1.11 0 0-1.45.11-2.37.11-.18 0-.37 0-.58-.01C4.12 2.69 6.87 1.11 10 1.11c2.33 0 4.45.87 6.05 2.34-.68-.11-1.65.39-1.65 1.58 0 .74.45 1.36.9 2.1.35.61.55 1.36.55 2.46 0 1.49-1.4 5-1.4 5l-3.03-8.37c.54-.02.82-.17.82-.17.5-.05.44-1.25-.06-1.22 0 0-1.44.12-2.38.12-.87 0-2.33-.12-2.33-.12-.5-.03-.56 1.2-.06 1.22l.92.08 1.26 3.41zM17.41 10c.24-.64.74-1.87.43-4.25.7 1.29 1.05 2.71 1.05 4.25 0 3.29-1.73 6.24-4.4 7.78.97-2.59 1.94-5.2 2.92-7.78zM6.1 18.09C3.12 16.65 1.11 13.53 1.11 10c0-1.3.23-2.48.72-3.59C3.25 10.3 4.67 14.2 6.1 18.09zm4.03-6.63l2.58 6.98c-.86.29-1.76.45-2.71.45-.79 0-1.57-.11-2.29-.33.81-2.38 1.62-4.74 2.42-7.1z"})),te=n(8),ne=n(196),re=function(){var e=Object(G.g)("siteTitle",""),t=Object(G.g)("siteUrl",""),n=Object(ne.a)(),o="is-wc-nav-folded",i="is-wc-nav-expanded",a=function(){document.body.classList.add(o),document.body.classList.remove(i)},c=function(){document.body.classList.remove(o),document.body.classList.add(i)},u=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.body.clientWidth;e<=960?a():c()};Object(te.useEffect)((function(){u();for(var e=0,t=[{eventName:"orientationchange",handler:function(e){return u(e.target.screen.availWidth)}},{eventName:"resize",handler:Object(v.debounce)((function(){return u()}),200)}];e<t.length;e++){var n=t[e],r=n.eventName,o=n.handler;window.addEventListener(r,o,!1)}}),[]);var s=Object(r.createElement)(J.a,{size:"36px",icon:ee}),l=Object(K.useSelect)((function(e){var t=e("core/data").isResolving,n=(0,e("core").getEntityRecord)("root","__unstableBase",void 0)||{};return{isRequestingSiteIcon:t("core","getEntityRecord",["root","__unstableBase",void 0]),siteIconUrl:n.siteIconUrl}})),d=l.isRequestingSiteIcon,p=l.siteIconUrl;p?s=Object(r.createElement)("img",{alt:Object(f.__)("Site Icon"),src:p}):d&&(s=null);var m=b()("woocommerce-navigation-header",{"is-scrolled":n});return Object(r.createElement)("div",{className:m},Object(r.createElement)(k.a,{onClick:function(){document.body.classList.contains(o)?c():a()},className:"woocommerce-navigation-header__site-icon"},s),Object(r.createElement)(k.a,{href:t,className:"woocommerce-navigation-header__site-title",as:"span"},e))},oe=n(7),ie=n(11),ae=Object(r.createElement)(I.c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(I.b,{d:"M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"}));function ce(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ue(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ce(Object(n),!0).forEach((function(t){Object(p.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ce(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function se(e){var t=e.badge,n=e.children,o=e.className,i=e.href,a=e.item,c=e.navigateToMenu,u=e.onClick,s=void 0===u?v.noop:u,l=e.title,f=Object(ie.a)(e,["badge","children","className","href","item","navigateToMenu","onClick","title"]);!function(e){var t=O().navigationTree,n=t.addItem,o=t.removeItem,i=U().menu,a=e.item;Object(r.useEffect)((function(){return n(a,ue(ue({},e),{},{menu:i})),function(){o(a)}}),[])}(e);var d=O(),p=d.activeItem,m=d.setActiveMenu;if(!U().isActive)return null;var h=b()("components-navigation__item",o,{"is-active":a&&p===a});return Object(r.createElement)(A,{className:h},n||Object(r.createElement)(k.a,Object(oe.a)({href:i,onClick:function(e){c&&m(c),s(e)}},f),l&&Object(r.createElement)(R,{className:"components-navigation__item-title",variant:"body.small",as:"span"},l),t&&Object(r.createElement)(N,{className:"components-navigation__item-badge"},t),c&&Object(r.createElement)(F.a,{icon:ae})))}var le=function(e){var t=e.item,n=Object(i.useNavSlot)("woocommerce_navigation_"+t.id),o=Boolean(n.fills&&n.fills.length),a=function(e){Object(Q.recordEvent)("navigation_click",{menu_item:e})};return o&&!t.isCategory?Object(r.createElement)(se,{key:t.id,item:t.id},Object(r.createElement)("div",{onClick:function(){return a(t.id)}},Object(r.createElement)(i.WooNavigationItem.Slot,{name:t.id}))):Object(r.createElement)(se,{key:t.id,item:t.id,title:t.title,href:t.url,navigateToMenu:!t.url&&t.id,onClick:function(){return a(t.id)}})};function fe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function de(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fe(Object(n),!0).forEach((function(t){l()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var pe=Object(d.a)(Object(K.withSelect)((function(e){var t=e(a.NAVIGATION_STORE_NAME),n=t.getActiveItem,r=t.getMenuItems;return{activeItem:n(),menuItems:r()}})))((function(e){var t=e.menuItems;Object(r.useEffect)((function(){document.getElementById("adminmenumain").classList.add("folded")}),[]);var n=Object(G.f)(""),o=t.reduce((function(e,t){return t.isCategory?de(de({},e),{},l()({},t.id,t)):e}),{woocommerce:{capability:"manage_woocommerce",id:"woocommerce",isCategory:!0,menuId:"primary",migrate:!0,order:10,parent:"",title:"WooCommerce"}}),i=Object.values(o),a=Object(r.useState)("woocommerce-home"),c=u()(a,2),s=c[0],d=c[1],p=Object(r.useState)("woocommerce"),m=u()(p,2),h=m[0],b=m[1];Object(r.useEffect)((function(){var e,n,r,o,i=X(t);return i&&(d(i),b(i.parent)),e=function(){setTimeout((function(){var e=X(t);e&&d(e)}),0)},window.wcNavigation.historyPatched||(n=window.history,r=n.pushState,o=n.replaceState,n.pushState=function(e){var t=new CustomEvent("pushstate",{state:e});return window.dispatchEvent(t),r.apply(n,arguments)},n.replaceState=function(e){var t=new CustomEvent("replacestate",{state:e});return window.dispatchEvent(t),o.apply(n,arguments)},window.wcNavigation.historyPatched=!0),window.addEventListener("popstate",e),window.addEventListener("pushstate",e),window.addEventListener("replacestate",e),function(){window.removeEventListener("popstate",e),window.removeEventListener("pushstate",e),window.removeEventListener("replacestate",e)}}),[t]);var v=Object(r.useMemo)((function(){return t.reduce((function(e,t){return e[t.parent]||(e[t.parent]={}),"woocommerce"!==t.parent&&o[t.parent]&&o[t.parent].menuId!==t.menuId||(e[t.parent][t.menuId]||(e[t.parent][t.menuId]=[]),e[t.parent][t.menuId].push(t)),e}),{})}),[t]),g=Object(r.useRef)(null),y=function(e){Object(Q.recordEvent)("navigation_back_click",{category:e})};return Object(r.createElement)("div",{className:"woocommerce-navigation"},Object(r.createElement)(re,null),Object(r.createElement)("div",{className:"woocommerce-navigation__wrapper",ref:g},Object(r.createElement)(M,{activeItem:s?s.id:null,activeMenu:h,onActivateMenu:function(){g&&g.current&&(g.current.scrollTop=0),b.apply(void 0,arguments)}},"woocommerce"===h&&n&&Object(r.createElement)(H,{className:"woocommerce-navigation__back-to-dashboard",href:n,backButtonLabel:Object(f.__)("WordPress Dashboard","woocommerce-navigation"),onClick:function(){return y("woocommerce")}}),i.map((function(e){var t=v[e.id]||{},n=t.primary,o=t.secondary,i=t.plugins;return Object(r.createElement)(W,{key:e.id,title:e.title,menu:e.id,parentMenu:e.parent,backButtonLabel:e.backButtonLabel||null,onBackButtonClick:function(){return y(e.id)}},!!n&&Object(r.createElement)($,null,n.map((function(e){return Object(r.createElement)(le,{key:e.id,item:e})}))),!!i&&Object(r.createElement)($,{title:"woocommerce"===e.id?Object(f.__)("Extensions","woocommerce-admin"):null},i.map((function(e){return Object(r.createElement)(le,{key:e.id,item:e})}))),!!o&&Object(r.createElement)($,{onBackButtonClick:function(){return y(e.id)}},o.map((function(e){return Object(r.createElement)(le,{key:e.id,item:e})}))))})))))})),me=Object(a.withNavigationHydration)(window.wcNavigation)((function(){return Object(r.createElement)(i.NavSlotFillProvider,null,Object(r.createElement)(pe,null),Object(r.createElement)(o.PluginArea,null))}));t.a=me},function(e,t,n){"use strict";n.d(t,"a",(function(){return U}));var r={};n.r(r),n.d(r,"setCesSurveyQueue",(function(){return P})),n.d(r,"addCesSurvey",(function(){return A})),n.d(r,"addCesSurveyForAnalytics",(function(){return N}));var o={};n.r(o),n.d(o,"getCesSurveyQueue",(function(){return L}));var i={};n.r(i),n.d(i,"getCesSurveyQueue",(function(){return M}));var a=n(28),c=n.n(a),u=n(5),s=n.n(u),l=n(31),f=n.n(l),d=n(0),p=n(1),m=n.n(p),h=n(50),b=n(342),v=n.n(b),g=n(181),y=n(25),O=n(34),w=n(3);function j(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function k(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?j(Object(n),!0).forEach((function(t){s()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):j(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _(e){var t=e.action,n=e.trackProps,r=e.label,o=e.onSubmitLabel,i=void 0===o?Object(w.__)("Thank you for your feedback!","woocommerce-admin"):o,a=e.cesShownForActions,u=e.allowTracking,l=e.resolving,p=e.storeAgeInWeeks,m=e.updateOptions,b=e.createNotice,g=Object(d.useState)(!1),y=f()(g,2),O=y[0],j=y[1];if(l)return null;if(!u)return null;if(-1!==a.indexOf(t)&&!O)return null;var _=function(){m(s()({},"woocommerce_ces_shown_for_actions",[t].concat(c()(a))))};return Object(d.createElement)(v.a,{recordScoreCallback:function(e,r){Object(h.recordEvent)("ces_feedback",k({action:t,score:e,comments:r||"",store_age:p},n)),b("success",i)},label:r,onNoticeShownCallback:function(){Object(h.recordEvent)("ces_snackbar_view",k({action:t,store_age:p},n))},onNoticeDismissedCallback:function(){Object(h.recordEvent)("ces_snackbar_dismiss",k({action:t,store_age:p},n)),_()},onModalShownCallback:function(){j(!0),Object(h.recordEvent)("ces_view",k({action:t,store_age:p},n)),_()},icon:Object(d.createElement)("span",{style:{height:21,width:21},role:"img","aria-label":Object(w.__)("Pencil icon","woocommerce-admin")},"✏️")})}_.propTypes={action:m.a.string.isRequired,trackProps:m.a.object,label:m.a.string.isRequired,onSubmitLabel:m.a.string,cesShownForActions:m.a.arrayOf(m.a.string).isRequired,allowTracking:m.a.bool,resolving:m.a.bool.isRequired,storeAgeInWeeks:m.a.number,updateOptions:m.a.func,createNotice:m.a.func};var E=Object(g.a)(Object(y.withSelect)((function(e){var t=e(O.OPTIONS_STORE_NAME),n=t.getOption,r=t.isResolving,o=n("woocommerce_ces_shown_for_actions")||[],i=function(e){if(0===e)return null;var t=Date.now()-1e3*e;return Math.round(t/O.WEEK)}(n("woocommerce_admin_install_timestamp")||0);return{cesShownForActions:o,allowTracking:"yes"===(n("woocommerce_allow_tracking")||"no"),storeAgeInWeeks:i,resolving:r("getOption",["woocommerce_ces_shown_for_actions"])||null===i||r("getOption",["woocommerce_admin_install_timestamp"])||r("getOption",["woocommerce_allow_tracking"])}})),Object(y.withDispatch)((function(e){return{updateOptions:e(O.OPTIONS_STORE_NAME).updateOptions,createNotice:e("core/notices").createNotice}})))(_),x=n(118),C=n(27),S={SET_CES_SURVEY_QUEUE:"SET_CES_SURVEY_QUEUE",ADD_CES_SURVEY:"ADD_CES_SURVEY"};function P(e){return{type:S.SET_CES_SURVEY_QUEUE,queue:e}}function A(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:window.pagenow,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:window.adminpage,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:void 0;return{type:S.ADD_CES_SURVEY,action:e,label:t,pageNow:n,adminPage:r,onsubmit_label:o}}function N(){return A("analytics_filtered",Object(w.__)("How easy was it to filter your store analytics?","woocommerce-admin"),"woocommerce_page_wc-admin","woocommerce_page_wc-admin")}var R=n(14),T=n.n(R),D=T.a.mark(L);function L(){var e;return T.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(C.apiFetch)({path:"".concat(x.a,"/options?options=").concat(x.b)});case 2:if(!(e=t.sent)){t.next=8;break}return t.next=6,P(e[x.b]||[]);case 6:t.next=9;break;case 8:throw new Error;case 9:case"end":return t.stop()}}),D)}function M(e){return e.queue}function F(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function I(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?F(Object(n),!0).forEach((function(t){s()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):F(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var z={queue:[]},H=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:z,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case S.SET_CES_SURVEY_QUEUE:return I(I({},e),{},{queue:t.queue});case S.ADD_CES_SURVEY:var n=e.queue.filter((function(e){return e.action===t.action}));if(n.length)return e;var r={action:t.action,label:t.label,pagenow:t.pageNow,adminpage:t.adminPage,onSubmitLabel:t.onSubmitLabel};return I(I({},e),{},{queue:[].concat(c()(e.queue),[r])});default:return e}};Object(y.registerStore)(x.c,{actions:r,selectors:i,resolvers:o,controls:C.controls,reducer:H});function B(e){var t=e.queue,n=e.resolving,r=e.clearQueue;if(n)return null;var o=t.filter((function(e){return e.pagenow===window.pagenow&&e.adminpage===window.adminpage}));return o.length&&r(),Object(d.createElement)(d.Fragment,null,o.map((function(e,t){return Object(d.createElement)(E,{key:t,action:e.action,label:e.label,onSubmitLabel:e.onsubmit_label,trackProps:e.props||{}})})))}B.propTypes={queue:m.a.arrayOf(m.a.object),resolving:m.a.bool,clearQueue:m.a.func};var U=Object(g.a)(Object(y.withSelect)((function(e){var t=e(x.c),n=t.getCesSurveyQueue,r=t.isResolving;return{queue:n(),resolving:r("getOption",[x.b])}})),Object(y.withDispatch)((function(e){var t=e(O.OPTIONS_STORE_NAME).updateOptions;return{clearQueue:function(){t({woocommerce_clear_ces_tracks_queue_for_page:{pagenow:window.pagenow,adminpage:window.adminpage}})}}})))(B)},,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.r(t),function(e){var t=n(0),r=(n(541),n(34)),o=(n(372),n(198)),i=n(350),a=n(349);n.p=e.wcAdminAssets.path;var c=document.getElementById("root"),u=document.getElementById("woocommerce-embedded-root"),s=window.wcSettings.currentUserData;if(c){var l=Object(r.withSettingsHydration)("wc_admin",window.wcSettings)(o.b);window.wcSettings.preloadSettings&&window.wcSettings.preloadSettings.general&&(l=Object(r.withSettingsHydration)("general",{general:window.wcSettings.preloadSettings.general})(l)),s&&(l=Object(r.withCurrentUserHydration)(s)(l)),Object(t.render)(Object(t.createElement)(l,null),c)}else if(u){var f=Object(r.withSettingsHydration)("wc_admin",window.wcSettings)(o.a);s&&(f=Object(r.withCurrentUserHydration)(s)(f)),Object(t.render)(Object(t.createElement)(f,null),u),u.classList.remove("is-embed-loading");var d=document.getElementById("wpbody-content"),p=d.querySelector(".wrap.woocommerce")||d.querySelector('[class="wrap"]'),m=document.createElement("div");Object(t.render)(Object(t.createElement)("div",{className:"woocommerce-layout"},Object(t.createElement)(o.c,null)),d.insertBefore(m,p))}var h,b=document.getElementById("woocommerce-embedded-navigation");b&&Object(t.render)(Object(t.createElement)(a.a,null),b),window.wcAdminFeatures&&!0===window.wcAdminFeatures["customer-effort-score-tracks"]&&(h=c||u,Object(t.render)(Object(t.createElement)(i.a,null),h.insertBefore(document.createElement("div"),null)))}.call(this,n(127))},,,,,function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";var r={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i=Object.defineProperty,a=Object.getOwnPropertyNames,c=Object.getOwnPropertySymbols,u=Object.getOwnPropertyDescriptor,s=Object.getPrototypeOf,l=s&&s(Object);e.exports=function e(t,n,f){if("string"!=typeof n){if(l){var d=s(n);d&&d!==l&&e(t,d,f)}var p=a(n);c&&(p=p.concat(c(n)));for(var m=0;m<p.length;++m){var h=p[m];if(!(r[h]||o[h]||f&&f[h])){var b=u(n,h);try{i(t,h,b)}catch(e){}}}return t}return t}},function(e,t,n){},function(e,t,n){"use strict";var r=n(6),o=n(11),i=n(0);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}t.a=function(e){var t=e.icon,n=e.size,c=void 0===n?24:n,u=Object(o.a)(e,["icon","size"]);return Object(i.cloneElement)(t,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){Object(r.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({width:c,height:c},u))}},function(e,t,n){},function(e,t,n){},function(e,t){e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},function(e,t,n){},function(e,t,n){"use strict";var r=n(6),o=n(11),i=n(0);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}t.a=function(e){var t=e.icon,n=e.size,c=void 0===n?24:n,u=Object(o.a)(e,["icon","size"]);return Object(i.cloneElement)(t,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){Object(r.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({width:c,height:c},u))}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";var r={};n.r(r),n.d(r,"createNotice",(function(){return h})),n.d(r,"createSuccessNotice",(function(){return b})),n.d(r,"createInfoNotice",(function(){return v})),n.d(r,"createErrorNotice",(function(){return g})),n.d(r,"createWarningNotice",(function(){return y})),n.d(r,"removeNotice",(function(){return O}));var o={};n.r(o),n.d(o,"getNotices",(function(){return j}));var i=n(25),a=n(26),c=n(2),u=n(6);function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){Object(u.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var f=function(e){return function(t){return function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0,o=r[e];if(void 0===o)return n;var i=t(n[o],r);return i===n[o]?n:l({},n,Object(u.a)({},o,i))}}}("context")((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"CREATE_NOTICE":return[].concat(Object(a.a)(Object(c.reject)(e,{id:t.notice.id})),[t.notice]);case"REMOVE_NOTICE":return Object(c.reject)(e,{id:t.id})}return e})),d=n(14),p=n.n(d),m=p.a.mark(h);function h(){var e,t,n,r,o,i,a,u,s,l,f,d,h,b,v,g,y=arguments;return p.a.wrap((function(p){for(;;)switch(p.prev=p.next){case 0:if(e=y.length>0&&void 0!==y[0]?y[0]:"info",t=y.length>1?y[1]:void 0,n=y.length>2&&void 0!==y[2]?y[2]:{},r=n.speak,o=void 0===r||r,i=n.isDismissible,a=void 0===i||i,u=n.context,s=void 0===u?"global":u,l=n.id,f=void 0===l?Object(c.uniqueId)(s):l,d=n.actions,h=void 0===d?[]:d,b=n.type,v=void 0===b?"default":b,g=n.__unstableHTML,t=String(t),!o){p.next=8;break}return p.next=8,{type:"SPEAK",message:t,ariaLive:"snackbar"===v?"polite":"assertive"};case 8:return p.next=10,{type:"CREATE_NOTICE",context:s,notice:{id:f,status:e,content:t,__unstableHTML:g,isDismissible:a,actions:h,type:v}};case 10:case"end":return p.stop()}}),m)}function b(e,t){return h("success",e,t)}function v(e,t){return h("info",e,t)}function g(e,t){return h("error",e,t)}function y(e,t){return h("warning",e,t)}function O(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"global";return{type:"REMOVE_NOTICE",id:e,context:t}}var w=[];function j(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"global";return e[t]||w}var k=n(141),_={SPEAK:function(e){Object(k.a)(e.message,e.ariaLive||"assertive")}};Object(i.registerStore)("core/notices",{reducer:f,actions:r,selectors:o,controls:_})},,,,,,,,function(e,t){!function(){e.exports=this.wc.csvExport}()},,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";var r=n(0),o=n(78),i=Object(r.createElement)(o.c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.b,{d:"M18.3 5.6L9.9 16.9l-4.6-3.4-.9 1.2 5.8 4.3 9.3-12.6z"}));t.a=i},function(e,t,n){"use strict";(function(e){var r=n(85),o="undefined"!=typeof window&&window.navigator.userAgent.indexOf("Trident")>=0,i=e.env.FORCE_REDUCED_MOTION||o?function(){return!0}:function(){return Object(r.a)("(prefers-reduced-motion: reduce)")};t.a=i}).call(this,n(64))},function(e,t,n){"use strict";var r=n(7),o=n(11),i=n(0),a=n(2),c=n(57),u=n(16),s=n(17),l=n(12),f=n(18),d=n(21),p=n(9),m=n(69);function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(p.a)(e);if(t){var o=Object(p.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(d.a)(this,n)}}var b=["menuitem","menuitemradio","menuitemcheckbox"];var v=function(e){Object(f.a)(n,e);var t=h(n);function n(){var e;return Object(u.a)(this,n),(e=t.apply(this,arguments)).onKeyDown=e.onKeyDown.bind(Object(l.a)(e)),e.bindContainer=e.bindContainer.bind(Object(l.a)(e)),e.getFocusableContext=e.getFocusableContext.bind(Object(l.a)(e)),e.getFocusableIndex=e.getFocusableIndex.bind(Object(l.a)(e)),e}return Object(s.a)(n,[{key:"componentDidMount",value:function(){this.container.addEventListener("keydown",this.onKeyDown),this.container.addEventListener("focus",this.onFocus)}},{key:"componentWillUnmount",value:function(){this.container.removeEventListener("keydown",this.onKeyDown),this.container.removeEventListener("focus",this.onFocus)}},{key:"bindContainer",value:function(e){var t=this.props.forwardedRef;this.container=e,Object(a.isFunction)(t)?t(e):t&&"current"in t&&(t.current=e)}},{key:"getFocusableContext",value:function(e){var t=(this.props.onlyBrowserTabstops?m.a.tabbable:m.a.focusable).find(this.container),n=this.getFocusableIndex(t,e);return n>-1&&e?{index:n,target:e,focusables:t}:null}},{key:"getFocusableIndex",value:function(e,t){var n=e.indexOf(t);if(-1!==n)return n}},{key:"onKeyDown",value:function(e){this.props.onKeyDown&&this.props.onKeyDown(e);var t=this.getFocusableContext,n=this.props,r=n.cycle,o=void 0===r||r,i=n.eventToOffset,c=n.onNavigate,u=void 0===c?a.noop:c,s=n.stopNavigationEvents,l=i(e);if(void 0!==l&&s){e.stopImmediatePropagation();var f=e.target.getAttribute("role");b.includes(f)&&e.preventDefault()}if(l){var d=t(e.target.ownerDocument.activeElement);if(d){var p=d.index,m=d.focusables,h=o?function(e,t,n){var r=e+n;return r<0?t+r:r>=t?r-t:r}(p,m.length,l):p+l;h>=0&&h<m.length&&(m[h].focus(),u(h,m[h]))}}}},{key:"render",value:function(){var e=this.props,t=e.children,n=Object(o.a)(e,["children"]);return Object(i.createElement)("div",Object(r.a)({ref:this.bindContainer},Object(a.omit)(n,["stopNavigationEvents","eventToOffset","onNavigate","onKeyDown","cycle","onlyBrowserTabstops","forwardedRef"])),t)}}]),n}(i.Component),g=function(e,t){return Object(i.createElement)(v,Object(r.a)({},e,{forwardedRef:t}))};g.displayName="NavigableContainer";var y=Object(i.forwardRef)(g);t.a=Object(i.forwardRef)((function(e,t){var n=e.role,u=void 0===n?"menu":n,s=e.orientation,l=void 0===s?"vertical":s,f=Object(o.a)(e,["role","orientation"]);return Object(i.createElement)(y,Object(r.a)({ref:t,stopNavigationEvents:!0,onlyBrowserTabstops:!1,role:u,"aria-orientation":"presentation"===u?null:l,eventToOffset:function(e){var t=e.keyCode,n=[c.a],r=[c.f];return"horizontal"===l&&(n=[c.d],r=[c.c]),"both"===l&&(n=[c.d,c.a],r=[c.c,c.f]),Object(a.includes)(n,t)?1:Object(a.includes)(r,t)?-1:Object(a.includes)([c.a,c.f,c.c,c.d],t)?0:void 0}},f))}))}]);
|
dist/chunks/0.js
CHANGED
@@ -915,7 +915,7 @@ var external_this_wp_element_ = __webpack_require__(0);
|
|
915 |
var checkbox_control = __webpack_require__(589);
|
916 |
|
917 |
// EXTERNAL MODULE: ./node_modules/@wordpress/components/build-module/button/index.js
|
918 |
-
var build_module_button = __webpack_require__(
|
919 |
|
920 |
// EXTERNAL MODULE: external {"this":["wp","hooks"]}
|
921 |
var external_this_wp_hooks_ = __webpack_require__(51);
|
915 |
var checkbox_control = __webpack_require__(589);
|
916 |
|
917 |
// EXTERNAL MODULE: ./node_modules/@wordpress/components/build-module/button/index.js
|
918 |
+
var build_module_button = __webpack_require__(68);
|
919 |
|
920 |
// EXTERNAL MODULE: external {"this":["wp","hooks"]}
|
921 |
var external_this_wp_hooks_ = __webpack_require__(51);
|
dist/chunks/0.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
(window.__wcAdmin_webpackJsonp=window.__wcAdmin_webpackJsonp||[]).push([[0],{241:function(e,t,r){"use strict";var n=r(6),a=r(11),c=r(4),o=r.n(c),i=r(0);function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}t.a=function(e){var t=e.as,r=void 0===t?"div":t,c=e.className,l=Object(a.a)(e,["as","className"]);return function(e){var t=e.as,r=void 0===t?"div":t,n=Object(a.a)(e,["as"]);return"function"==typeof n.children?n.children(n):Object(i.createElement)(r,n)}(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?s(Object(r),!0).forEach((function(t){Object(n.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({as:r,className:o()("components-visually-hidden",c)},l))}},253:function(e,t,r){"use strict";r.d(t,"a",(function(){return h}));var n={};r.r(n),r.d(n,"find",(function(){return i}));var a={};r.r(a),r.d(a,"isTabbableIndex",(function(){return u})),r.d(a,"find",(function(){return f})),r.d(a,"findPrevious",(function(){return y})),r.d(a,"findNext",(function(){return O}));var c=["[tabindex]","a[href]","button:not([disabled])",'input:not([type="hidden"]):not([disabled])',"select:not([disabled])","textarea:not([disabled])","iframe","object","embed","area[href]","[contenteditable]:not([contenteditable=false])"].join(",");function o(e){return e.offsetWidth>0||e.offsetHeight>0||e.getClientRects().length>0}function i(e){var t=e.querySelectorAll(c);return Array.from(t).filter((function(e){return!!o(e)&&("AREA"!==e.nodeName||function(e){var t=e.closest("map[name]");if(!t)return!1;var r=document.querySelector('img[usemap="#'+t.name+'"]');return!!r&&o(r)}(e))}))}var s=r(2);function l(e){var t=e.getAttribute("tabindex");return null===t?0:parseInt(t,10)}function u(e){return-1!==l(e)}function d(e,t){return{element:e,index:t}}function b(e){return e.element}function m(e,t){var r=l(e.element),n=l(t.element);return r===n?e.index-t.index:r-n}function p(e){return e.filter(u).map(d).sort(m).map(b).reduce((t={},function(e,r){var n=r.nodeName,a=r.type,c=r.checked,o=r.name;if("INPUT"!==n||"radio"!==a||!o)return e.concat(r);var i=t.hasOwnProperty(o);if(!c&&i)return e;if(i){var l=t[o];e=Object(s.without)(e,l)}return t[o]=r,e.concat(r)}),[]);var t}function f(e){return p(i(e))}function y(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.activeElement,t=i(document.body),r=t.indexOf(e);return t.length=r,Object(s.last)(p(t))}function O(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.activeElement,t=i(document.body),r=t.indexOf(e),n=t.slice(r+1).filter((function(t){return!e.contains(t)}));return Object(s.first)(p(n))}var h={focusable:n,tabbable:a}},574:function(e,t,r){"use strict";r.d(t,"b",(function(){return l})),r.d(t,"a",(function(){return u}));var n=r(0),a=r(51),c=r(167),o=r.n(c),i=r(35),s=o()(i.b),l=function(e){var t=s.getCurrencyConfig(),r=Object(a.applyFilters)("woocommerce_admin_report_currency",t,e);return o()(r)},u=Object(n.createContext)(s)},575:function(e,t,r){"use strict";var n=r(20),a=r.n(n),c=r(15),o=r.n(c),i=r(22),s=r.n(i),l=r(23),u=r.n(l),d=r(10),b=r.n(d),m=r(0),p=r(3),f=r(1),y=r.n(f),O=r(74),h=r(35);function g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=b()(e);if(t){var a=b()(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return u()(this,r)}}var j=function(e){s()(r,e);var t=g(r);function r(){return a()(this,r),t.apply(this,arguments)}return o()(r,[{key:"render",value:function(){var e,t,r,n,a=this.props,c=a.className,o=a.isError,i=a.isEmpty;return o?(e=Object(p.__)("There was an error getting your stats. Please try again.","woocommerce-admin"),t=Object(p.__)("Reload","woocommerce-admin"),n=function(){window.location.reload()}):i&&(e=Object(p.__)("No results could be found for this date range.","woocommerce-admin"),t=Object(p.__)("View Orders","woocommerce-admin"),r=Object(h.f)("edit.php?post_type=shop_order")),Object(m.createElement)(O.EmptyContent,{className:c,title:e,actionLabel:t,actionURL:r,actionCallback:n})}}]),r}(m.Component);j.propTypes={className:y.a.string,isError:y.a.bool,isEmpty:y.a.bool},j.defaultProps={className:""},t.a=j},581:function(e,t,r){"use strict";var n=r(0),a=r(4),c=r.n(a),o=r(241);function i(e){var t=e.id,r=e.label,a=e.hideLabelFromVision,s=e.help,l=e.className,u=e.children;return Object(n.createElement)("div",{className:c()("components-base-control",l)},Object(n.createElement)("div",{className:"components-base-control__field"},r&&t&&(a?Object(n.createElement)(o.a,{as:"label",htmlFor:t},r):Object(n.createElement)("label",{className:"components-base-control__label",htmlFor:t},r)),r&&!t&&(a?Object(n.createElement)(o.a,{as:"label"},r):Object(n.createElement)(i.VisualLabel,null,r)),u),!!s&&Object(n.createElement)("p",{id:t+"__help",className:"components-base-control__help"},s))}i.VisualLabel=function(e){var t=e.className,r=e.children;return t=c()("components-base-control__label",t),Object(n.createElement)("span",{className:t},r)},t.a=i},582:function(e,t,r){"use strict";var n=r(5),a=r.n(n),c=r(20),o=r.n(c),i=r(15),s=r.n(i),l=r(13),u=r.n(l),d=r(22),b=r.n(d),m=r(23),p=r.n(m),f=r(10),y=r.n(f),O=r(0),h=r(181),g=r(1),j=r.n(g),v=r(2),_=r(25),w=r(74),E=r(35),S=r(34),P=r(42),D=r(50),C=r(574),R=r(118);function k(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function F(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?k(Object(r),!0).forEach((function(t){a()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):k(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function N(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=y()(e);if(t){var a=y()(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return p()(this,r)}}var x=function(e){b()(r,e);var t=N(r);function r(){var e;return o()(this,r),(e=t.call(this)).onDateSelect=e.onDateSelect.bind(u()(e)),e.onFilterSelect=e.onFilterSelect.bind(u()(e)),e.onAdvancedFilterAction=e.onAdvancedFilterAction.bind(u()(e)),e}return s()(r,[{key:"onDateSelect",value:function(e){var t=this.props,r=t.report;(0,t.addCesSurveyForAnalytics)(),Object(D.recordEvent)("datepicker_update",F({report:r},Object(v.omitBy)(e,v.isUndefined)))}},{key:"onFilterSelect",value:function(e){var t=this.props,r=t.report,n=t.addCesSurveyForAnalytics,a=e.filter||e["filter-variations"];["single_product","single_category","single_coupon","single_variation"].includes(a)&&n(),Object(D.recordEvent)("analytics_filter",{report:r,filter:e.filter||"all"})}},{key:"onAdvancedFilterAction",value:function(e,t){var r=this.props,n=r.report,a=r.addCesSurveyForAnalytics;switch(e){case"add":Object(D.recordEvent)("analytics_filters_add",{report:n,filter:t.key});break;case"remove":Object(D.recordEvent)("analytics_filters_remove",{report:n,filter:t.key});break;case"filter":var c=Object.keys(t).reduce((function(e,r){return e[Object(v.snakeCase)(r)]=t[r],e}),{});a(),Object(D.recordEvent)("analytics_filters_filter",F({report:n},c));break;case"clear_all":Object(D.recordEvent)("analytics_filters_clear_all",{report:n});break;case"match":Object(D.recordEvent)("analytics_filters_all_any",{report:n,value:t.match})}}},{key:"render",value:function(){var e=this.props,t=e.advancedFilters,r=e.filters,n=e.path,a=e.query,c=e.showDatePicker,o=e.defaultDateRange,i=Object(P.getDateParamsFromQuery)(a,o),s=i.period,l=i.compare,u=i.before,d=i.after,b=Object(P.getCurrentDates)(a,o),m={period:s,compare:l,before:u,after:d,primaryDate:b.primary,secondaryDate:b.secondary},p=this.context;return Object(O.createElement)(w.ReportFilters,{query:a,siteLocale:E.c.siteLocale,currency:p.getCurrencyConfig(),path:n,filters:r,advancedFilters:t,showDatePicker:c,onDateSelect:this.onDateSelect,onFilterSelect:this.onFilterSelect,onAdvancedFilterAction:this.onAdvancedFilterAction,dateQuery:m,isoDateFormat:P.isoDateFormat})}}]),r}(O.Component);x.contextType=C.a,t.a=Object(h.a)(Object(_.withSelect)((function(e){return{defaultDateRange:e(S.SETTINGS_STORE_NAME).getSetting("wc_admin","wcAdminSettings").woocommerce_default_date_range}})),Object(_.withDispatch)((function(e){return{addCesSurveyForAnalytics:e(R.c).addCesSurveyForAnalytics}})))(x),x.propTypes={advancedFilters:j.a.object,filters:j.a.array,path:j.a.string.isRequired,query:j.a.object,showDatePicker:j.a.bool,report:j.a.string.isRequired}},583:function(e,t,r){"use strict";var n=r(36),a=r.n(n),c=r(28),o=r.n(c),i=r(5),s=r.n(i),l=r(31),u=r.n(l),d=r(58),b=r.n(d),m=r(0),p=r(589),f=r(67),y=r(51),O=r(181),h=r(253),g=r(25),j=r(2),v=r(3),_=r(4),w=r.n(_),E=r(1),S=r.n(E),P=r(74),D=r(29),C=r(549),R=r(34),k=r(50),F=function(){return Object(m.createElement)("svg",{role:"img","aria-hidden":"true",focusable:"false",version:"1.1",xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 24 24"},Object(m.createElement)("path",{d:"M18,9c-0.009,0-0.017,0.002-0.025,0.003C17.72,5.646,14.922,3,11.5,3C7.91,3,5,5.91,5,9.5c0,0.524,0.069,1.031,0.186,1.519 C5.123,11.016,5.064,11,5,11c-2.209,0-4,1.791-4,4c0,1.202,0.541,2.267,1.38,3h18.593C22.196,17.089,23,15.643,23,14 C23,11.239,20.761,9,18,9z M12,16l-4-5h3V8h2v3h3L12,16z"}))},N=r(575);function x(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function q(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?x(Object(r),!0).forEach((function(t){s()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):x(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}r(648);function A(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function T(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?A(Object(r),!0).forEach((function(t){s()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):A(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Q=function(e){var t=e.getHeadersContent,r=e.getRowsContent,n=e.getSummary,c=e.isRequesting,i=e.primaryData,l=e.tableData,d=e.endpoint,O=(e.itemIdField,e.tableQuery,e.compareBy),g=e.compareParam,_=e.searchBy,E=e.labels,S=void 0===E?{}:E,x=b()(e,["getHeadersContent","getRowsContent","getSummary","isRequesting","primaryData","tableData","endpoint","itemIdField","tableQuery","compareBy","compareParam","searchBy","labels"]),q=e.query,A=e.columnPrefsKey,Q=l.items,I=l.query,B=q[g]?Object(D.getIdsFromQuery)(q[O]):[],L=Object(m.useState)(B),V=u()(L,2),U=V[0],M=V[1],H=Object(m.useRef)(null),z=Object(R.useUserPreferences)(),G=z.updateUserPreferences,J=b()(z,["updateUserPreferences"]);if(l.isError||i.isError)return Object(m.createElement)(N.a,{isError:!0});var K=[];A&&(K=J&&J[A]?J[A]:K);var W,Y,X,Z,$=function(t){var r=e.ids;M(t?r:[])},ee=function(t,r){var n=e.ids;if(r)M(Object(j.uniq)([n[t]].concat(o()(U))));else{var a=U.indexOf(n[t]);M([].concat(o()(U.slice(0,a)),o()(U.slice(a+1))))}},te=function(t){var r=e.ids,n=void 0===r?[]:r,a=-1!==U.indexOf(n[t]);return{display:Object(m.createElement)(p.a,{onChange:Object(j.partial)(ee,t),checked:a}),value:!1}},re=c||l.isRequesting||i.isRequesting,ne=Object(j.get)(i,["data","totals"],{}),ae=Q.totalResults,ce=ae>0,oe=Object(D.getSearchWords)(q).map((function(e){return{key:e,label:e}})),ie=Object(y.applyFilters)("woocommerce_admin_report_table",{endpoint:d,headers:t(),rows:r(Q.data),totals:ne,summary:n?n(ne,ae):null,items:Q}),se=ie.headers,le=ie.rows,ue=ie.summary;O&&(le=le.map((function(e,t){return[te(t)].concat(o()(e))})),se=[(W=e.ids,Y=void 0===W?[]:W,X=Y.length>0,Z=X&&Y.length===U.length,{cellClassName:"is-checkbox-column",key:"compare",label:Object(m.createElement)(p.a,{onChange:$,"aria-label":Object(v.__)("Select All"),checked:Z,disabled:!X}),required:!0})].concat(o()(se)));var de=function(e,t){return t?e.map((function(e){return T(T({},e),{},{visible:e.required||!t.includes(e.key)})})):e.map((function(e){return T(T({},e),{},{visible:e.required||!e.hiddenByDefault})}))}(se,K),be=w()("woocommerce-report-table",{"has-compare":!!O,"has-search":!!_});return Object(m.createElement)(m.Fragment,null,Object(m.createElement)("div",{className:"woocommerce-report-table__scroll-point",ref:H,"aria-hidden":!0}),Object(m.createElement)(P.TableCard,a()({className:be,actions:[O&&Object(m.createElement)(P.CompareButton,{key:"compare",className:"woocommerce-table__compare",count:U.length,helpText:S.helpText||Object(v.__)("Check at least two items below to compare","woocommerce-admin"),onClick:function(){O&&Object(D.onQueryChange)("compare")(O,g,U.join(","))},disabled:!ce},S.compareButton||Object(v.__)("Compare","woocommerce-admin")),_&&Object(m.createElement)(P.Search,{allowFreeTextSearch:!0,inlineTags:!0,key:"search",onChange:function(t){var r,n=e.baseSearchQuery,a=t.map((function(e){return e.label.replace(",","%2C")}));a.length?Object(D.updateQueryString)(T(T((r={filter:void 0},s()(r,g,void 0),s()(r,_,void 0),r),n),{},{search:Object(j.uniq)(a).join(",")})):Object(D.updateQueryString)({search:void 0});Object(k.recordEvent)("analytics_table_filter",{report:d})},placeholder:S.placeholder||Object(v.__)("Search by item name","woocommerce-admin"),selected:oe,showClearButton:!0,type:_,disabled:!ce}),ce&&Object(m.createElement)(f.a,{key:"download",className:"woocommerce-table__download-button",disabled:re,onClick:function(){var n=e.createNotice,a=e.startExport,c=e.title,o=Object.assign({},q),i=Q.data,s=Q.totalResults,l="browser";delete o.extended_info,o.search&&delete o[_],i&&i.length===s?Object(C.downloadCSVFile)(Object(C.generateCSVFileName)(c,o),Object(C.generateCSVDataFromTable)(t(),r(i))):(l="email",a(d,I).then((function(){return n("success",Object(v.sprintf)(Object(v.__)("Your %s Report will be emailed to you.","woocommerce-admin"),c))})).catch((function(e){return n("error",e.message||Object(v.sprintf)(Object(v.__)("There was a problem exporting your %s Report. Please try again.","woocommerce-admin"),c))}))),Object(k.recordEvent)("analytics_table_download",{report:d,rows:s,downloadType:l})}},Object(m.createElement)(F,null),Object(m.createElement)("span",{className:"woocommerce-table__download-button__label"},S.downloadButton||Object(v.__)("Download","woocommerce-admin")))],headers:de,isLoading:re,onQueryChange:D.onQueryChange,onColumnsChange:function(e,t){var r=se.map((function(e){return e.key})).filter((function(t){return!e.includes(t)}));if(A){var n=s()({},A,r);G(n)}if(t){var a={report:d,column:t,status:e.includes(t)?"on":"off"};Object(k.recordEvent)("analytics_table_header_toggle",a)}},onSort:function(e,t){Object(D.onQueryChange)("sort")(e,t);var r={report:d,column:e,direction:t};Object(k.recordEvent)("analytics_table_sort",r)},onPageChange:function(e,t){H.current.scrollIntoView();var r=H.current.nextSibling.querySelector(".woocommerce-table__table"),n=h.a.focusable.find(r);n.length&&n[0].focus(),t&&("goto"===t?Object(k.recordEvent)("analytics_table_go_to_page",{report:d,page:e}):Object(k.recordEvent)("analytics_table_page_click",{report:d,direction:t}))},rows:le,rowsPerPage:parseInt(I.per_page,10)||R.QUERY_DEFAULTS.pageSize,summary:ue,totalRows:ae},x)))};Q.propTypes={baseSearchQuery:S.a.object,compareBy:S.a.string,compareParam:S.a.string,columnPrefsKey:S.a.string,endpoint:S.a.string,extendItemsMethodNames:S.a.shape({getError:S.a.string,isRequesting:S.a.string,load:S.a.string}),extendedItemsStoreName:S.a.string,getHeadersContent:S.a.func.isRequired,getRowsContent:S.a.func.isRequired,getSummary:S.a.func,itemIdField:S.a.string,labels:S.a.shape({compareButton:S.a.string,downloadButton:S.a.string,helpText:S.a.string,placeholder:S.a.string}),primaryData:S.a.object,searchBy:S.a.string,summaryFields:S.a.arrayOf(S.a.string),tableData:S.a.object.isRequired,tableQuery:S.a.object,title:S.a.string.isRequired},Q.defaultProps={primaryData:{},tableData:{items:{data:[],totalResults:0},query:{}},tableQuery:{},compareParam:"filter",downloadable:!1,onSearch:j.noop,baseSearchQuery:{}};t.a=Object(O.a)(Object(g.withSelect)((function(e,t){var r=t.endpoint,n=t.getSummary,a=t.isRequesting,c=t.itemIdField,o=t.query,i=t.tableData,s=t.tableQuery,l=t.filters,u=t.advancedFilters,d=t.summaryFields;if(a||o.search&&(!o[r]||!o[r].length))return{};var b=e(R.SETTINGS_STORE_NAME).getSetting("wc_admin","wcAdminSettings").woocommerce_default_date_range,m="categories"===r?"products":r,p=n?Object(R.getReportChartData)({endpoint:m,dataType:"primary",query:o,select:e,filters:l,advancedFilters:u,tableQuery:s,defaultDateRange:b,fields:d}):{},f=function(e,t,r){var n=t.extendItemsMethodNames,a=t.extendedItemsStoreName,c=t.itemIdField,o=r.items.data;if(!(Array.isArray(o)&&o.length&&n&&c))return r;var i=e(a),s=i[n.getError],l=i[n.isRequesting],u=i[n.load],d={include:o.map((function(e){return e[c]})).join(","),per_page:o.length},b=u(d),m=!!l&&l(d),p=!!s&&s(d),f=o.map((function(e){var t=Object(j.first)(b.filter((function(t){return e.id===t.id})));return q(q({},e),t)})),y=r.isRequesting||m,O=r.isError||p;return q(q({},r),{},{isRequesting:y,isError:O,items:q(q({},r.items),{},{data:f})})}(e,t,i||Object(R.getReportTableData)({endpoint:r,query:o,select:e,tableQuery:s,filters:l,advancedFilters:u,defaultDateRange:b}));return{primaryData:p,ids:c&&f.items.data?f.items.data.map((function(e){return e[c]})):[],tableData:f,query:T(T({},s),o)}})),Object(g.withDispatch)((function(e){var t=e(R.EXPORT_STORE_NAME).startExport;return{createNotice:e("core/notices").createNotice,startExport:t}})))(Q)},589:function(e,t,r){"use strict";r.d(t,"a",(function(){return u}));var n=r(7),a=r(11),c=r(0),o=r(147),i=r(382),s=r(571),l=r(581);function u(e){var t=e.label,r=e.className,d=e.heading,b=e.checked,m=e.help,p=e.onChange,f=Object(a.a)(e,["label","className","heading","checked","help","onChange"]),y=Object(o.a)(u),O="inspector-checkbox-control-".concat(y);return Object(c.createElement)(l.a,{label:d,id:O,help:m,className:r},Object(c.createElement)("span",{className:"components-checkbox-control__input-container"},Object(c.createElement)("input",Object(n.a)({id:O,className:"components-checkbox-control__input",type:"checkbox",value:"1",onChange:function(e){return p(e.target.checked)},checked:b,"aria-describedby":m?O+"__help":void 0},f)),b?Object(c.createElement)(i.a,{icon:s.a,className:"components-checkbox-control__checked",role:"presentation"}):null),Object(c.createElement)("label",{className:"components-checkbox-control__label",htmlFor:O},t))}},648:function(e,t,r){}}]);
|
1 |
+
(window.__wcAdmin_webpackJsonp=window.__wcAdmin_webpackJsonp||[]).push([[0],{241:function(e,t,r){"use strict";var n=r(6),a=r(11),c=r(4),o=r.n(c),i=r(0);function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}t.a=function(e){var t=e.as,r=void 0===t?"div":t,c=e.className,l=Object(a.a)(e,["as","className"]);return function(e){var t=e.as,r=void 0===t?"div":t,n=Object(a.a)(e,["as"]);return"function"==typeof n.children?n.children(n):Object(i.createElement)(r,n)}(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?s(Object(r),!0).forEach((function(t){Object(n.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({as:r,className:o()("components-visually-hidden",c)},l))}},253:function(e,t,r){"use strict";r.d(t,"a",(function(){return h}));var n={};r.r(n),r.d(n,"find",(function(){return i}));var a={};r.r(a),r.d(a,"isTabbableIndex",(function(){return u})),r.d(a,"find",(function(){return f})),r.d(a,"findPrevious",(function(){return y})),r.d(a,"findNext",(function(){return O}));var c=["[tabindex]","a[href]","button:not([disabled])",'input:not([type="hidden"]):not([disabled])',"select:not([disabled])","textarea:not([disabled])","iframe","object","embed","area[href]","[contenteditable]:not([contenteditable=false])"].join(",");function o(e){return e.offsetWidth>0||e.offsetHeight>0||e.getClientRects().length>0}function i(e){var t=e.querySelectorAll(c);return Array.from(t).filter((function(e){return!!o(e)&&("AREA"!==e.nodeName||function(e){var t=e.closest("map[name]");if(!t)return!1;var r=document.querySelector('img[usemap="#'+t.name+'"]');return!!r&&o(r)}(e))}))}var s=r(2);function l(e){var t=e.getAttribute("tabindex");return null===t?0:parseInt(t,10)}function u(e){return-1!==l(e)}function d(e,t){return{element:e,index:t}}function b(e){return e.element}function m(e,t){var r=l(e.element),n=l(t.element);return r===n?e.index-t.index:r-n}function p(e){return e.filter(u).map(d).sort(m).map(b).reduce((t={},function(e,r){var n=r.nodeName,a=r.type,c=r.checked,o=r.name;if("INPUT"!==n||"radio"!==a||!o)return e.concat(r);var i=t.hasOwnProperty(o);if(!c&&i)return e;if(i){var l=t[o];e=Object(s.without)(e,l)}return t[o]=r,e.concat(r)}),[]);var t}function f(e){return p(i(e))}function y(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.activeElement,t=i(document.body),r=t.indexOf(e);return t.length=r,Object(s.last)(p(t))}function O(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.activeElement,t=i(document.body),r=t.indexOf(e),n=t.slice(r+1).filter((function(t){return!e.contains(t)}));return Object(s.first)(p(n))}var h={focusable:n,tabbable:a}},574:function(e,t,r){"use strict";r.d(t,"b",(function(){return l})),r.d(t,"a",(function(){return u}));var n=r(0),a=r(51),c=r(167),o=r.n(c),i=r(35),s=o()(i.b),l=function(e){var t=s.getCurrencyConfig(),r=Object(a.applyFilters)("woocommerce_admin_report_currency",t,e);return o()(r)},u=Object(n.createContext)(s)},575:function(e,t,r){"use strict";var n=r(20),a=r.n(n),c=r(15),o=r.n(c),i=r(22),s=r.n(i),l=r(23),u=r.n(l),d=r(10),b=r.n(d),m=r(0),p=r(3),f=r(1),y=r.n(f),O=r(74),h=r(35);function g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=b()(e);if(t){var a=b()(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return u()(this,r)}}var j=function(e){s()(r,e);var t=g(r);function r(){return a()(this,r),t.apply(this,arguments)}return o()(r,[{key:"render",value:function(){var e,t,r,n,a=this.props,c=a.className,o=a.isError,i=a.isEmpty;return o?(e=Object(p.__)("There was an error getting your stats. Please try again.","woocommerce-admin"),t=Object(p.__)("Reload","woocommerce-admin"),n=function(){window.location.reload()}):i&&(e=Object(p.__)("No results could be found for this date range.","woocommerce-admin"),t=Object(p.__)("View Orders","woocommerce-admin"),r=Object(h.f)("edit.php?post_type=shop_order")),Object(m.createElement)(O.EmptyContent,{className:c,title:e,actionLabel:t,actionURL:r,actionCallback:n})}}]),r}(m.Component);j.propTypes={className:y.a.string,isError:y.a.bool,isEmpty:y.a.bool},j.defaultProps={className:""},t.a=j},581:function(e,t,r){"use strict";var n=r(0),a=r(4),c=r.n(a),o=r(241);function i(e){var t=e.id,r=e.label,a=e.hideLabelFromVision,s=e.help,l=e.className,u=e.children;return Object(n.createElement)("div",{className:c()("components-base-control",l)},Object(n.createElement)("div",{className:"components-base-control__field"},r&&t&&(a?Object(n.createElement)(o.a,{as:"label",htmlFor:t},r):Object(n.createElement)("label",{className:"components-base-control__label",htmlFor:t},r)),r&&!t&&(a?Object(n.createElement)(o.a,{as:"label"},r):Object(n.createElement)(i.VisualLabel,null,r)),u),!!s&&Object(n.createElement)("p",{id:t+"__help",className:"components-base-control__help"},s))}i.VisualLabel=function(e){var t=e.className,r=e.children;return t=c()("components-base-control__label",t),Object(n.createElement)("span",{className:t},r)},t.a=i},582:function(e,t,r){"use strict";var n=r(5),a=r.n(n),c=r(20),o=r.n(c),i=r(15),s=r.n(i),l=r(13),u=r.n(l),d=r(22),b=r.n(d),m=r(23),p=r.n(m),f=r(10),y=r.n(f),O=r(0),h=r(181),g=r(1),j=r.n(g),v=r(2),_=r(25),w=r(74),E=r(35),S=r(34),P=r(42),D=r(50),C=r(574),R=r(118);function k(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function F(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?k(Object(r),!0).forEach((function(t){a()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):k(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function N(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=y()(e);if(t){var a=y()(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return p()(this,r)}}var x=function(e){b()(r,e);var t=N(r);function r(){var e;return o()(this,r),(e=t.call(this)).onDateSelect=e.onDateSelect.bind(u()(e)),e.onFilterSelect=e.onFilterSelect.bind(u()(e)),e.onAdvancedFilterAction=e.onAdvancedFilterAction.bind(u()(e)),e}return s()(r,[{key:"onDateSelect",value:function(e){var t=this.props,r=t.report;(0,t.addCesSurveyForAnalytics)(),Object(D.recordEvent)("datepicker_update",F({report:r},Object(v.omitBy)(e,v.isUndefined)))}},{key:"onFilterSelect",value:function(e){var t=this.props,r=t.report,n=t.addCesSurveyForAnalytics,a=e.filter||e["filter-variations"];["single_product","single_category","single_coupon","single_variation"].includes(a)&&n(),Object(D.recordEvent)("analytics_filter",{report:r,filter:e.filter||"all"})}},{key:"onAdvancedFilterAction",value:function(e,t){var r=this.props,n=r.report,a=r.addCesSurveyForAnalytics;switch(e){case"add":Object(D.recordEvent)("analytics_filters_add",{report:n,filter:t.key});break;case"remove":Object(D.recordEvent)("analytics_filters_remove",{report:n,filter:t.key});break;case"filter":var c=Object.keys(t).reduce((function(e,r){return e[Object(v.snakeCase)(r)]=t[r],e}),{});a(),Object(D.recordEvent)("analytics_filters_filter",F({report:n},c));break;case"clear_all":Object(D.recordEvent)("analytics_filters_clear_all",{report:n});break;case"match":Object(D.recordEvent)("analytics_filters_all_any",{report:n,value:t.match})}}},{key:"render",value:function(){var e=this.props,t=e.advancedFilters,r=e.filters,n=e.path,a=e.query,c=e.showDatePicker,o=e.defaultDateRange,i=Object(P.getDateParamsFromQuery)(a,o),s=i.period,l=i.compare,u=i.before,d=i.after,b=Object(P.getCurrentDates)(a,o),m={period:s,compare:l,before:u,after:d,primaryDate:b.primary,secondaryDate:b.secondary},p=this.context;return Object(O.createElement)(w.ReportFilters,{query:a,siteLocale:E.c.siteLocale,currency:p.getCurrencyConfig(),path:n,filters:r,advancedFilters:t,showDatePicker:c,onDateSelect:this.onDateSelect,onFilterSelect:this.onFilterSelect,onAdvancedFilterAction:this.onAdvancedFilterAction,dateQuery:m,isoDateFormat:P.isoDateFormat})}}]),r}(O.Component);x.contextType=C.a,t.a=Object(h.a)(Object(_.withSelect)((function(e){return{defaultDateRange:e(S.SETTINGS_STORE_NAME).getSetting("wc_admin","wcAdminSettings").woocommerce_default_date_range}})),Object(_.withDispatch)((function(e){return{addCesSurveyForAnalytics:e(R.c).addCesSurveyForAnalytics}})))(x),x.propTypes={advancedFilters:j.a.object,filters:j.a.array,path:j.a.string.isRequired,query:j.a.object,showDatePicker:j.a.bool,report:j.a.string.isRequired}},583:function(e,t,r){"use strict";var n=r(36),a=r.n(n),c=r(28),o=r.n(c),i=r(5),s=r.n(i),l=r(31),u=r.n(l),d=r(58),b=r.n(d),m=r(0),p=r(589),f=r(68),y=r(51),O=r(181),h=r(253),g=r(25),j=r(2),v=r(3),_=r(4),w=r.n(_),E=r(1),S=r.n(E),P=r(74),D=r(29),C=r(549),R=r(34),k=r(50),F=function(){return Object(m.createElement)("svg",{role:"img","aria-hidden":"true",focusable:"false",version:"1.1",xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 24 24"},Object(m.createElement)("path",{d:"M18,9c-0.009,0-0.017,0.002-0.025,0.003C17.72,5.646,14.922,3,11.5,3C7.91,3,5,5.91,5,9.5c0,0.524,0.069,1.031,0.186,1.519 C5.123,11.016,5.064,11,5,11c-2.209,0-4,1.791-4,4c0,1.202,0.541,2.267,1.38,3h18.593C22.196,17.089,23,15.643,23,14 C23,11.239,20.761,9,18,9z M12,16l-4-5h3V8h2v3h3L12,16z"}))},N=r(575);function x(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function q(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?x(Object(r),!0).forEach((function(t){s()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):x(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}r(648);function A(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function T(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?A(Object(r),!0).forEach((function(t){s()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):A(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Q=function(e){var t=e.getHeadersContent,r=e.getRowsContent,n=e.getSummary,c=e.isRequesting,i=e.primaryData,l=e.tableData,d=e.endpoint,O=(e.itemIdField,e.tableQuery,e.compareBy),g=e.compareParam,_=e.searchBy,E=e.labels,S=void 0===E?{}:E,x=b()(e,["getHeadersContent","getRowsContent","getSummary","isRequesting","primaryData","tableData","endpoint","itemIdField","tableQuery","compareBy","compareParam","searchBy","labels"]),q=e.query,A=e.columnPrefsKey,Q=l.items,I=l.query,B=q[g]?Object(D.getIdsFromQuery)(q[O]):[],L=Object(m.useState)(B),V=u()(L,2),U=V[0],M=V[1],H=Object(m.useRef)(null),z=Object(R.useUserPreferences)(),G=z.updateUserPreferences,J=b()(z,["updateUserPreferences"]);if(l.isError||i.isError)return Object(m.createElement)(N.a,{isError:!0});var K=[];A&&(K=J&&J[A]?J[A]:K);var W,Y,X,Z,$=function(t){var r=e.ids;M(t?r:[])},ee=function(t,r){var n=e.ids;if(r)M(Object(j.uniq)([n[t]].concat(o()(U))));else{var a=U.indexOf(n[t]);M([].concat(o()(U.slice(0,a)),o()(U.slice(a+1))))}},te=function(t){var r=e.ids,n=void 0===r?[]:r,a=-1!==U.indexOf(n[t]);return{display:Object(m.createElement)(p.a,{onChange:Object(j.partial)(ee,t),checked:a}),value:!1}},re=c||l.isRequesting||i.isRequesting,ne=Object(j.get)(i,["data","totals"],{}),ae=Q.totalResults,ce=ae>0,oe=Object(D.getSearchWords)(q).map((function(e){return{key:e,label:e}})),ie=Object(y.applyFilters)("woocommerce_admin_report_table",{endpoint:d,headers:t(),rows:r(Q.data),totals:ne,summary:n?n(ne,ae):null,items:Q}),se=ie.headers,le=ie.rows,ue=ie.summary;O&&(le=le.map((function(e,t){return[te(t)].concat(o()(e))})),se=[(W=e.ids,Y=void 0===W?[]:W,X=Y.length>0,Z=X&&Y.length===U.length,{cellClassName:"is-checkbox-column",key:"compare",label:Object(m.createElement)(p.a,{onChange:$,"aria-label":Object(v.__)("Select All"),checked:Z,disabled:!X}),required:!0})].concat(o()(se)));var de=function(e,t){return t?e.map((function(e){return T(T({},e),{},{visible:e.required||!t.includes(e.key)})})):e.map((function(e){return T(T({},e),{},{visible:e.required||!e.hiddenByDefault})}))}(se,K),be=w()("woocommerce-report-table",{"has-compare":!!O,"has-search":!!_});return Object(m.createElement)(m.Fragment,null,Object(m.createElement)("div",{className:"woocommerce-report-table__scroll-point",ref:H,"aria-hidden":!0}),Object(m.createElement)(P.TableCard,a()({className:be,actions:[O&&Object(m.createElement)(P.CompareButton,{key:"compare",className:"woocommerce-table__compare",count:U.length,helpText:S.helpText||Object(v.__)("Check at least two items below to compare","woocommerce-admin"),onClick:function(){O&&Object(D.onQueryChange)("compare")(O,g,U.join(","))},disabled:!ce},S.compareButton||Object(v.__)("Compare","woocommerce-admin")),_&&Object(m.createElement)(P.Search,{allowFreeTextSearch:!0,inlineTags:!0,key:"search",onChange:function(t){var r,n=e.baseSearchQuery,a=t.map((function(e){return e.label.replace(",","%2C")}));a.length?Object(D.updateQueryString)(T(T((r={filter:void 0},s()(r,g,void 0),s()(r,_,void 0),r),n),{},{search:Object(j.uniq)(a).join(",")})):Object(D.updateQueryString)({search:void 0});Object(k.recordEvent)("analytics_table_filter",{report:d})},placeholder:S.placeholder||Object(v.__)("Search by item name","woocommerce-admin"),selected:oe,showClearButton:!0,type:_,disabled:!ce}),ce&&Object(m.createElement)(f.a,{key:"download",className:"woocommerce-table__download-button",disabled:re,onClick:function(){var n=e.createNotice,a=e.startExport,c=e.title,o=Object.assign({},q),i=Q.data,s=Q.totalResults,l="browser";delete o.extended_info,o.search&&delete o[_],i&&i.length===s?Object(C.downloadCSVFile)(Object(C.generateCSVFileName)(c,o),Object(C.generateCSVDataFromTable)(t(),r(i))):(l="email",a(d,I).then((function(){return n("success",Object(v.sprintf)(Object(v.__)("Your %s Report will be emailed to you.","woocommerce-admin"),c))})).catch((function(e){return n("error",e.message||Object(v.sprintf)(Object(v.__)("There was a problem exporting your %s Report. Please try again.","woocommerce-admin"),c))}))),Object(k.recordEvent)("analytics_table_download",{report:d,rows:s,downloadType:l})}},Object(m.createElement)(F,null),Object(m.createElement)("span",{className:"woocommerce-table__download-button__label"},S.downloadButton||Object(v.__)("Download","woocommerce-admin")))],headers:de,isLoading:re,onQueryChange:D.onQueryChange,onColumnsChange:function(e,t){var r=se.map((function(e){return e.key})).filter((function(t){return!e.includes(t)}));if(A){var n=s()({},A,r);G(n)}if(t){var a={report:d,column:t,status:e.includes(t)?"on":"off"};Object(k.recordEvent)("analytics_table_header_toggle",a)}},onSort:function(e,t){Object(D.onQueryChange)("sort")(e,t);var r={report:d,column:e,direction:t};Object(k.recordEvent)("analytics_table_sort",r)},onPageChange:function(e,t){H.current.scrollIntoView();var r=H.current.nextSibling.querySelector(".woocommerce-table__table"),n=h.a.focusable.find(r);n.length&&n[0].focus(),t&&("goto"===t?Object(k.recordEvent)("analytics_table_go_to_page",{report:d,page:e}):Object(k.recordEvent)("analytics_table_page_click",{report:d,direction:t}))},rows:le,rowsPerPage:parseInt(I.per_page,10)||R.QUERY_DEFAULTS.pageSize,summary:ue,totalRows:ae},x)))};Q.propTypes={baseSearchQuery:S.a.object,compareBy:S.a.string,compareParam:S.a.string,columnPrefsKey:S.a.string,endpoint:S.a.string,extendItemsMethodNames:S.a.shape({getError:S.a.string,isRequesting:S.a.string,load:S.a.string}),extendedItemsStoreName:S.a.string,getHeadersContent:S.a.func.isRequired,getRowsContent:S.a.func.isRequired,getSummary:S.a.func,itemIdField:S.a.string,labels:S.a.shape({compareButton:S.a.string,downloadButton:S.a.string,helpText:S.a.string,placeholder:S.a.string}),primaryData:S.a.object,searchBy:S.a.string,summaryFields:S.a.arrayOf(S.a.string),tableData:S.a.object.isRequired,tableQuery:S.a.object,title:S.a.string.isRequired},Q.defaultProps={primaryData:{},tableData:{items:{data:[],totalResults:0},query:{}},tableQuery:{},compareParam:"filter",downloadable:!1,onSearch:j.noop,baseSearchQuery:{}};t.a=Object(O.a)(Object(g.withSelect)((function(e,t){var r=t.endpoint,n=t.getSummary,a=t.isRequesting,c=t.itemIdField,o=t.query,i=t.tableData,s=t.tableQuery,l=t.filters,u=t.advancedFilters,d=t.summaryFields;if(a||o.search&&(!o[r]||!o[r].length))return{};var b=e(R.SETTINGS_STORE_NAME).getSetting("wc_admin","wcAdminSettings").woocommerce_default_date_range,m="categories"===r?"products":r,p=n?Object(R.getReportChartData)({endpoint:m,dataType:"primary",query:o,select:e,filters:l,advancedFilters:u,tableQuery:s,defaultDateRange:b,fields:d}):{},f=function(e,t,r){var n=t.extendItemsMethodNames,a=t.extendedItemsStoreName,c=t.itemIdField,o=r.items.data;if(!(Array.isArray(o)&&o.length&&n&&c))return r;var i=e(a),s=i[n.getError],l=i[n.isRequesting],u=i[n.load],d={include:o.map((function(e){return e[c]})).join(","),per_page:o.length},b=u(d),m=!!l&&l(d),p=!!s&&s(d),f=o.map((function(e){var t=Object(j.first)(b.filter((function(t){return e.id===t.id})));return q(q({},e),t)})),y=r.isRequesting||m,O=r.isError||p;return q(q({},r),{},{isRequesting:y,isError:O,items:q(q({},r.items),{},{data:f})})}(e,t,i||Object(R.getReportTableData)({endpoint:r,query:o,select:e,tableQuery:s,filters:l,advancedFilters:u,defaultDateRange:b}));return{primaryData:p,ids:c&&f.items.data?f.items.data.map((function(e){return e[c]})):[],tableData:f,query:T(T({},s),o)}})),Object(g.withDispatch)((function(e){var t=e(R.EXPORT_STORE_NAME).startExport;return{createNotice:e("core/notices").createNotice,startExport:t}})))(Q)},589:function(e,t,r){"use strict";r.d(t,"a",(function(){return u}));var n=r(7),a=r(11),c=r(0),o=r(147),i=r(382),s=r(571),l=r(581);function u(e){var t=e.label,r=e.className,d=e.heading,b=e.checked,m=e.help,p=e.onChange,f=Object(a.a)(e,["label","className","heading","checked","help","onChange"]),y=Object(o.a)(u),O="inspector-checkbox-control-".concat(y);return Object(c.createElement)(l.a,{label:d,id:O,help:m,className:r},Object(c.createElement)("span",{className:"components-checkbox-control__input-container"},Object(c.createElement)("input",Object(n.a)({id:O,className:"components-checkbox-control__input",type:"checkbox",value:"1",onChange:function(e){return p(e.target.checked)},checked:b,"aria-describedby":m?O+"__help":void 0},f)),b?Object(c.createElement)(i.a,{icon:s.a,className:"components-checkbox-control__checked",role:"presentation"}):null),Object(c.createElement)("label",{className:"components-checkbox-control__label",htmlFor:O},t))}},648:function(e,t,r){}}]);
|
dist/chunks/53.js
CHANGED
@@ -1023,7 +1023,7 @@ var external_this_wp_i18n_ = __webpack_require__(3);
|
|
1023 |
var library_close = __webpack_require__(257);
|
1024 |
|
1025 |
// EXTERNAL MODULE: ./node_modules/@wordpress/components/build-module/button/index.js
|
1026 |
-
var build_module_button = __webpack_require__(
|
1027 |
|
1028 |
// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/modal/header.js
|
1029 |
|
1023 |
var library_close = __webpack_require__(257);
|
1024 |
|
1025 |
// EXTERNAL MODULE: ./node_modules/@wordpress/components/build-module/button/index.js
|
1026 |
+
var build_module_button = __webpack_require__(68);
|
1027 |
|
1028 |
// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/modal/header.js
|
1029 |
|
dist/chunks/53.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
(window.__wcAdmin_webpackJsonp=window.__wcAdmin_webpackJsonp||[]).push([[53],{125:function(e,t,n){"use strict";function o(e){return function(){return e}}var r=function(){};r.thatReturns=o,r.thatReturnsFalse=o(!1),r.thatReturnsTrue=o(!0),r.thatReturnsNull=o(null),r.thatReturnsThis=function(){return this},r.thatReturnsArgument=function(e){return e},e.exports=r},163:function(e,t,n){"use strict";var o=n(8),r="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,a=n(125),c=n(164),i=n(165),l="function"==typeof Symbol&&Symbol.iterator;function s(e,t){return e&&"object"==typeof e&&null!=e.key?(n=e.key,o={"=":"=0",":":"=2"},"$"+(""+n).replace(/[=:]/g,(function(e){return o[e]}))):t.toString(36);var n,o}function u(e,t,n,o){var a,i=typeof e;if("undefined"!==i&&"boolean"!==i||(e=null),null===e||"string"===i||"number"===i||"object"===i&&e.$$typeof===r)return n(o,e,""===t?"."+s(e,0):t),1;var f=0,d=""===t?".":t+":";if(Array.isArray(e))for(var p=0;p<e.length;p++)f+=u(a=e[p],d+s(a,p),n,o);else{var b=function(e){var t=e&&(l&&e[l]||e["@@iterator"]);if("function"==typeof t)return t}(e);if(b){0;for(var h,m=b.call(e),v=0;!(h=m.next()).done;)f+=u(a=h.value,d+s(a,v++),n,o)}else if("object"===i){0;var y=""+e;c(!1,"Objects are not valid as a React child (found: %s).%s","[object Object]"===y?"object with keys {"+Object.keys(e).join(", ")+"}":y,"")}}return f}var f=/\/+/g;function d(e){return(""+e).replace(f,"$&/")}var p,b,h=m,m=function(e){if(this.instancePool.length){var t=this.instancePool.pop();return this.call(t,e),t}return new this(e)},v=function(e){c(e instanceof this,"Trying to release an instance into a pool of a different type."),e.destructor(),this.instancePool.length<this.poolSize&&this.instancePool.push(e)};function y(e,t,n,o){this.result=e,this.keyPrefix=t,this.func=n,this.context=o,this.count=0}function O(e,t,n){var r,c,i=e.result,l=e.keyPrefix,s=e.func,u=e.context,f=s.call(u,t,e.count++);Array.isArray(f)?j(f,i,n,a.thatReturnsArgument):null!=f&&(o.isValidElement(f)&&(r=f,c=l+(!f.key||t&&t.key===f.key?"":d(f.key)+"/")+n,f=o.cloneElement(r,{key:c},void 0!==r.props?r.props.children:void 0)),i.push(f))}function j(e,t,n,o,r){var a="";null!=n&&(a=d(n)+"/");var c=y.getPooled(t,a,o,r);!function(e,t,n){null==e||u(e,"",t,n)}(e,O,c),y.release(c)}y.prototype.destructor=function(){this.result=null,this.keyPrefix=null,this.func=null,this.context=null,this.count=0},p=function(e,t,n,o){if(this.instancePool.length){var r=this.instancePool.pop();return this.call(r,e,t,n,o),r}return new this(e,t,n,o)},(b=y).instancePool=[],b.getPooled=p||h,b.poolSize||(b.poolSize=10),b.release=v;e.exports=function(e){if("object"!=typeof e||!e||Array.isArray(e))return i(!1,"React.addons.createFragment only accepts a single object. Got: %s",e),e;if(o.isValidElement(e))return i(!1,"React.addons.createFragment does not accept a ReactElement without a wrapper object."),e;c(1!==e.nodeType,"React.addons.createFragment(...): Encountered an invalid child; DOM elements are not valid children of React components.");var t=[];for(var n in e)j(e[n],t,n,a.thatReturnsArgument);return t}},164:function(e,t,n){"use strict";e.exports=function(e,t,n,o,r,a,c,i){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var s=[n,o,r,a,c,i],u=0;(l=new Error(t.replace(/%s/g,(function(){return s[u++]})))).name="Invariant Violation"}throw l.framesToPop=1,l}}},165:function(e,t,n){"use strict";var o=n(125);e.exports=o},166:function(e,t,n){"use strict";function o(e){return e.match(/^\{\{\//)?{type:"componentClose",value:e.replace(/\W/g,"")}:e.match(/\/\}\}$/)?{type:"componentSelfClosing",value:e.replace(/\W/g,"")}:e.match(/^\{\{/)?{type:"componentOpen",value:e.replace(/\W/g,"")}:{type:"string",value:e}}e.exports=function(e){return e.split(/(\{\{\/?\s*\w+\s*\/?\}\})/g).map(o)}},241:function(e,t,n){"use strict";var o=n(6),r=n(11),a=n(4),c=n.n(a),i=n(0);function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}t.a=function(e){var t=e.as,n=void 0===t?"div":t,a=e.className,s=Object(r.a)(e,["as","className"]);return function(e){var t=e.as,n=void 0===t?"div":t,o=Object(r.a)(e,["as"]);return"function"==typeof o.children?o.children(o):Object(i.createElement)(n,o)}(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){Object(o.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({as:n,className:c()("components-visually-hidden",a)},s))}},353:function(e,t,n){"use strict";var o=n(7),r=n(0),a=n(77),c=n(147);t.a=Object(a.a)((function(e){return function(t){var n=Object(c.a)(e);return Object(r.createElement)(e,Object(o.a)({},t,{instanceId:n}))}}),"withInstanceId")},43:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=i(n(8)),a=i(n(163)),c=i(n(166));function i(e){return e&&e.__esModule?e:{default:e}}var l=void 0;function s(e,t){var n,c,i,u,f,d,p,b,h=[],m={};for(d=0;d<e.length;d++)if("string"!==(f=e[d]).type){if(!t.hasOwnProperty(f.value)||void 0===t[f.value])throw new Error("Invalid interpolation, missing component node: `"+f.value+"`");if("object"!==o(t[f.value]))throw new Error("Invalid interpolation, component node must be a ReactElement or null: `"+f.value+"`","\n> "+l);if("componentClose"===f.type)throw new Error("Missing opening component token: `"+f.value+"`");if("componentOpen"===f.type){n=t[f.value],i=d;break}h.push(t[f.value])}else h.push(f.value);return n&&(u=function(e,t){var n,o,r=t[e],a=0;for(o=e+1;o<t.length;o++)if((n=t[o]).value===r.value){if("componentOpen"===n.type){a++;continue}if("componentClose"===n.type){if(0===a)return o;a--}}throw new Error("Missing closing component token `"+r.value+"`")}(i,e),p=s(e.slice(i+1,u),t),c=r.default.cloneElement(n,{},p),h.push(c),u<e.length-1&&(b=s(e.slice(u+1),t),h=h.concat(b))),1===h.length?h[0]:(h.forEach((function(e,t){e&&(m["interpolation-child-"+t]=e)})),(0,a.default)(m))}t.default=function(e){var t=e.mixedString,n=e.components,r=e.throwErrors;if(l=t,!n)return t;if("object"!==(void 0===n?"undefined":o(n))){if(r)throw new Error("Interpolation Error: unable to process `"+t+"` because components is not an object");return t}var a=(0,c.default)(t);try{return s(a,n)}catch(e){if(r)throw new Error("Interpolation Error: unable to process `"+t+"` because of error `"+e.message+"`");return t}}},546:function(e,t,n){"use strict";var o=n(7),r=n(11),a=n(16),c=n(17),i=n(18),l=n(21),s=n(9),u=n(0),f=n(353),d=n(47),p=n(12),b=n(4),h=n.n(b),m=n(57),v=n(181),y=n(111),O=n(110),j=n(113),g=n(109);function w(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=Object(s.a)(e);if(t){var r=Object(s.a)(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return Object(l.a)(this,n)}}var E=function(e){Object(i.a)(n,e);var t=w(n);function n(){var e;return Object(a.a)(this,n),(e=t.apply(this,arguments)).containerRef=Object(u.createRef)(),e.handleKeyDown=e.handleKeyDown.bind(Object(p.a)(e)),e.handleFocusOutside=e.handleFocusOutside.bind(Object(p.a)(e)),e}return Object(c.a)(n,[{key:"componentDidMount",value:function(){this.props.focusOnMount&&this.containerRef.current.focus()}},{key:"handleFocusOutside",value:function(e){this.props.shouldCloseOnClickOutside&&this.onRequestClose(e)}},{key:"handleKeyDown",value:function(e){e.keyCode===m.b&&this.handleEscapeKeyDown(e)}},{key:"handleEscapeKeyDown",value:function(e){this.props.shouldCloseOnEsc&&(e.stopPropagation(),this.onRequestClose(e))}},{key:"onRequestClose",value:function(e){var t=this.props.onRequestClose;t&&t(e)}},{key:"render",value:function(){var e=this.props,t=e.overlayClassName,n=e.contentLabel,o=e.aria,r=o.describedby,a=o.labelledby,c=e.children,i=e.className,l=e.role,s=e.style;return Object(u.createElement)(y.a,{className:h()("components-modal__screen-overlay",t),onKeyDown:this.handleKeyDown},Object(u.createElement)("div",{className:h()("components-modal__frame",i),style:s,ref:this.containerRef,role:l,"aria-label":n,"aria-labelledby":n?null:a,"aria-describedby":r,tabIndex:"-1"},c))}}]),n}(u.Component),k=Object(v.a)([j.a,g.a,O.a])(E),_=n(3),R=n(257),C=n(67),P=function(e){var t=e.icon,n=e.title,o=e.onClose,r=e.closeLabel,a=e.headingId,c=e.isDismissible,i=r||Object(_.__)("Close dialog");return Object(u.createElement)("div",{className:"components-modal__header"},Object(u.createElement)("div",{className:"components-modal__header-heading-container"},t&&Object(u.createElement)("span",{className:"components-modal__icon-container","aria-hidden":!0},t),n&&Object(u.createElement)("h1",{id:a,className:"components-modal__header-heading"},n)),c&&Object(u.createElement)(C.a,{onClick:o,icon:R.a,label:i}))},D=n(2),N=new Set(["alert","status","log","marquee","timer"]),x=[],M=!1;function S(e){if(!M){var t=document.body.children;Object(D.forEach)(t,(function(t){t!==e&&function(e){var t=e.getAttribute("role");return!("SCRIPT"===e.tagName||e.hasAttribute("aria-hidden")||e.hasAttribute("aria-live")||N.has(t))}(t)&&(t.setAttribute("aria-hidden","true"),x.push(t))})),M=!0}}function A(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=Object(s.a)(e);if(t){var r=Object(s.a)(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return Object(l.a)(this,n)}}var I,F=0,L=function(e){Object(i.a)(n,e);var t=A(n);function n(e){var o;return Object(a.a)(this,n),(o=t.call(this,e)).prepareDOM(),o}return Object(c.a)(n,[{key:"componentDidMount",value:function(){1===++F&&this.openFirstModal()}},{key:"componentWillUnmount",value:function(){0===--F&&this.closeLastModal(),this.cleanDOM()}},{key:"prepareDOM",value:function(){I||(I=document.createElement("div"),document.body.appendChild(I)),this.node=document.createElement("div"),I.appendChild(this.node)}},{key:"cleanDOM",value:function(){I.removeChild(this.node)}},{key:"openFirstModal",value:function(){S(I),document.body.classList.add(this.props.bodyOpenClassName)}},{key:"closeLastModal",value:function(){document.body.classList.remove(this.props.bodyOpenClassName),M&&(Object(D.forEach)(x,(function(e){e.removeAttribute("aria-hidden")})),x=[],M=!1)}},{key:"render",value:function(){var e=this.props,t=e.onRequestClose,n=e.title,a=e.icon,c=e.closeButtonLabel,i=e.children,l=e.aria,s=e.instanceId,f=e.isDismissible,p=e.isDismissable,b=Object(r.a)(e,["onRequestClose","title","icon","closeButtonLabel","children","aria","instanceId","isDismissible","isDismissable"]),h=l.labelledby||"components-modal-header-".concat(s);return p&&Object(d.a)("isDismissable prop of the Modal component",{alternative:"isDismissible prop (renamed) of the Modal component"}),Object(u.createPortal)(Object(u.createElement)(k,Object(o.a)({onRequestClose:t,aria:{labelledby:n?h:null,describedby:l.describedby}},b),Object(u.createElement)("div",{className:"components-modal__content",role:"document"},Object(u.createElement)(P,{closeLabel:c,headingId:h,icon:a,isDismissible:f||p,onClose:t,title:n}),i)),this.node)}}]),n}(u.Component);L.defaultProps={bodyOpenClassName:"modal-open",role:"dialog",title:null,focusOnMount:!0,shouldCloseOnEsc:!0,shouldCloseOnClickOutside:!0,isDismissible:!0,aria:{labelledby:null,describedby:null}};t.a=Object(f.a)(L)},581:function(e,t,n){"use strict";var o=n(0),r=n(4),a=n.n(r),c=n(241);function i(e){var t=e.id,n=e.label,r=e.hideLabelFromVision,l=e.help,s=e.className,u=e.children;return Object(o.createElement)("div",{className:a()("components-base-control",s)},Object(o.createElement)("div",{className:"components-base-control__field"},n&&t&&(r?Object(o.createElement)(c.a,{as:"label",htmlFor:t},n):Object(o.createElement)("label",{className:"components-base-control__label",htmlFor:t},n)),n&&!t&&(r?Object(o.createElement)(c.a,{as:"label"},n):Object(o.createElement)(i.VisualLabel,null,n)),u),!!l&&Object(o.createElement)("p",{id:t+"__help",className:"components-base-control__help"},l))}i.VisualLabel=function(e){var t=e.className,n=e.children;return t=a()("components-base-control__label",t),Object(o.createElement)("span",{className:t},n)},t.a=i},589:function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var o=n(7),r=n(11),a=n(0),c=n(147),i=n(382),l=n(571),s=n(581);function u(e){var t=e.label,n=e.className,f=e.heading,d=e.checked,p=e.help,b=e.onChange,h=Object(r.a)(e,["label","className","heading","checked","help","onChange"]),m=Object(c.a)(u),v="inspector-checkbox-control-".concat(m);return Object(a.createElement)(s.a,{label:f,id:v,help:p,className:n},Object(a.createElement)("span",{className:"components-checkbox-control__input-container"},Object(a.createElement)("input",Object(o.a)({id:v,className:"components-checkbox-control__input",type:"checkbox",value:"1",onChange:function(e){return b(e.target.checked)},checked:d,"aria-describedby":p?v+"__help":void 0},h)),d?Object(a.createElement)(i.a,{icon:l.a,className:"components-checkbox-control__checked",role:"presentation"}):null),Object(a.createElement)("label",{className:"components-checkbox-control__label",htmlFor:v},t))}},614:function(e,t,n){"use strict";var o=n(0),r=n(78),a=Object(o.createElement)(r.c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.b,{d:"M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"}));t.a=a},651:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));n(652);var o=function(){return Math.random().toString(36).substring(7).split("").join(".")};o(),o();function r(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}},652:function(e,t,n){"use strict";(function(e,o){var r,a=n(654);r="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e?e:o;var c=Object(a.a)(r);t.a=c}).call(this,n(127),n(653)(e))},653:function(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t}},654:function(e,t,n){"use strict";function o(e){var t,n=e.Symbol;return"function"==typeof n?n.observable?t=n.observable:(t=n("observable"),n.observable=t):t="@@observable",t}n.d(t,"a",(function(){return o}))},665:function(e,t,n){"use strict";var o=n(0),r=n(78),a=Object(o.createElement)(r.c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.b,{d:"M7 5.5h10a.5.5 0 01.5.5v12a.5.5 0 01-.5.5H7a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM17 4H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V6a2 2 0 00-2-2zm-1 3.75H8v1.5h8v-1.5zM8 11h8v1.5H8V11zm6 3.25H8v1.5h6v-1.5z"}));t.a=a}}]);
|
1 |
+
(window.__wcAdmin_webpackJsonp=window.__wcAdmin_webpackJsonp||[]).push([[53],{125:function(e,t,n){"use strict";function o(e){return function(){return e}}var r=function(){};r.thatReturns=o,r.thatReturnsFalse=o(!1),r.thatReturnsTrue=o(!0),r.thatReturnsNull=o(null),r.thatReturnsThis=function(){return this},r.thatReturnsArgument=function(e){return e},e.exports=r},163:function(e,t,n){"use strict";var o=n(8),r="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,a=n(125),c=n(164),i=n(165),l="function"==typeof Symbol&&Symbol.iterator;function s(e,t){return e&&"object"==typeof e&&null!=e.key?(n=e.key,o={"=":"=0",":":"=2"},"$"+(""+n).replace(/[=:]/g,(function(e){return o[e]}))):t.toString(36);var n,o}function u(e,t,n,o){var a,i=typeof e;if("undefined"!==i&&"boolean"!==i||(e=null),null===e||"string"===i||"number"===i||"object"===i&&e.$$typeof===r)return n(o,e,""===t?"."+s(e,0):t),1;var f=0,d=""===t?".":t+":";if(Array.isArray(e))for(var p=0;p<e.length;p++)f+=u(a=e[p],d+s(a,p),n,o);else{var b=function(e){var t=e&&(l&&e[l]||e["@@iterator"]);if("function"==typeof t)return t}(e);if(b){0;for(var h,m=b.call(e),v=0;!(h=m.next()).done;)f+=u(a=h.value,d+s(a,v++),n,o)}else if("object"===i){0;var y=""+e;c(!1,"Objects are not valid as a React child (found: %s).%s","[object Object]"===y?"object with keys {"+Object.keys(e).join(", ")+"}":y,"")}}return f}var f=/\/+/g;function d(e){return(""+e).replace(f,"$&/")}var p,b,h=m,m=function(e){if(this.instancePool.length){var t=this.instancePool.pop();return this.call(t,e),t}return new this(e)},v=function(e){c(e instanceof this,"Trying to release an instance into a pool of a different type."),e.destructor(),this.instancePool.length<this.poolSize&&this.instancePool.push(e)};function y(e,t,n,o){this.result=e,this.keyPrefix=t,this.func=n,this.context=o,this.count=0}function O(e,t,n){var r,c,i=e.result,l=e.keyPrefix,s=e.func,u=e.context,f=s.call(u,t,e.count++);Array.isArray(f)?j(f,i,n,a.thatReturnsArgument):null!=f&&(o.isValidElement(f)&&(r=f,c=l+(!f.key||t&&t.key===f.key?"":d(f.key)+"/")+n,f=o.cloneElement(r,{key:c},void 0!==r.props?r.props.children:void 0)),i.push(f))}function j(e,t,n,o,r){var a="";null!=n&&(a=d(n)+"/");var c=y.getPooled(t,a,o,r);!function(e,t,n){null==e||u(e,"",t,n)}(e,O,c),y.release(c)}y.prototype.destructor=function(){this.result=null,this.keyPrefix=null,this.func=null,this.context=null,this.count=0},p=function(e,t,n,o){if(this.instancePool.length){var r=this.instancePool.pop();return this.call(r,e,t,n,o),r}return new this(e,t,n,o)},(b=y).instancePool=[],b.getPooled=p||h,b.poolSize||(b.poolSize=10),b.release=v;e.exports=function(e){if("object"!=typeof e||!e||Array.isArray(e))return i(!1,"React.addons.createFragment only accepts a single object. Got: %s",e),e;if(o.isValidElement(e))return i(!1,"React.addons.createFragment does not accept a ReactElement without a wrapper object."),e;c(1!==e.nodeType,"React.addons.createFragment(...): Encountered an invalid child; DOM elements are not valid children of React components.");var t=[];for(var n in e)j(e[n],t,n,a.thatReturnsArgument);return t}},164:function(e,t,n){"use strict";e.exports=function(e,t,n,o,r,a,c,i){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var s=[n,o,r,a,c,i],u=0;(l=new Error(t.replace(/%s/g,(function(){return s[u++]})))).name="Invariant Violation"}throw l.framesToPop=1,l}}},165:function(e,t,n){"use strict";var o=n(125);e.exports=o},166:function(e,t,n){"use strict";function o(e){return e.match(/^\{\{\//)?{type:"componentClose",value:e.replace(/\W/g,"")}:e.match(/\/\}\}$/)?{type:"componentSelfClosing",value:e.replace(/\W/g,"")}:e.match(/^\{\{/)?{type:"componentOpen",value:e.replace(/\W/g,"")}:{type:"string",value:e}}e.exports=function(e){return e.split(/(\{\{\/?\s*\w+\s*\/?\}\})/g).map(o)}},241:function(e,t,n){"use strict";var o=n(6),r=n(11),a=n(4),c=n.n(a),i=n(0);function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}t.a=function(e){var t=e.as,n=void 0===t?"div":t,a=e.className,s=Object(r.a)(e,["as","className"]);return function(e){var t=e.as,n=void 0===t?"div":t,o=Object(r.a)(e,["as"]);return"function"==typeof o.children?o.children(o):Object(i.createElement)(n,o)}(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){Object(o.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({as:n,className:c()("components-visually-hidden",a)},s))}},353:function(e,t,n){"use strict";var o=n(7),r=n(0),a=n(77),c=n(147);t.a=Object(a.a)((function(e){return function(t){var n=Object(c.a)(e);return Object(r.createElement)(e,Object(o.a)({},t,{instanceId:n}))}}),"withInstanceId")},43:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=i(n(8)),a=i(n(163)),c=i(n(166));function i(e){return e&&e.__esModule?e:{default:e}}var l=void 0;function s(e,t){var n,c,i,u,f,d,p,b,h=[],m={};for(d=0;d<e.length;d++)if("string"!==(f=e[d]).type){if(!t.hasOwnProperty(f.value)||void 0===t[f.value])throw new Error("Invalid interpolation, missing component node: `"+f.value+"`");if("object"!==o(t[f.value]))throw new Error("Invalid interpolation, component node must be a ReactElement or null: `"+f.value+"`","\n> "+l);if("componentClose"===f.type)throw new Error("Missing opening component token: `"+f.value+"`");if("componentOpen"===f.type){n=t[f.value],i=d;break}h.push(t[f.value])}else h.push(f.value);return n&&(u=function(e,t){var n,o,r=t[e],a=0;for(o=e+1;o<t.length;o++)if((n=t[o]).value===r.value){if("componentOpen"===n.type){a++;continue}if("componentClose"===n.type){if(0===a)return o;a--}}throw new Error("Missing closing component token `"+r.value+"`")}(i,e),p=s(e.slice(i+1,u),t),c=r.default.cloneElement(n,{},p),h.push(c),u<e.length-1&&(b=s(e.slice(u+1),t),h=h.concat(b))),1===h.length?h[0]:(h.forEach((function(e,t){e&&(m["interpolation-child-"+t]=e)})),(0,a.default)(m))}t.default=function(e){var t=e.mixedString,n=e.components,r=e.throwErrors;if(l=t,!n)return t;if("object"!==(void 0===n?"undefined":o(n))){if(r)throw new Error("Interpolation Error: unable to process `"+t+"` because components is not an object");return t}var a=(0,c.default)(t);try{return s(a,n)}catch(e){if(r)throw new Error("Interpolation Error: unable to process `"+t+"` because of error `"+e.message+"`");return t}}},546:function(e,t,n){"use strict";var o=n(7),r=n(11),a=n(16),c=n(17),i=n(18),l=n(21),s=n(9),u=n(0),f=n(353),d=n(47),p=n(12),b=n(4),h=n.n(b),m=n(57),v=n(181),y=n(111),O=n(110),j=n(113),g=n(109);function w(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=Object(s.a)(e);if(t){var r=Object(s.a)(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return Object(l.a)(this,n)}}var E=function(e){Object(i.a)(n,e);var t=w(n);function n(){var e;return Object(a.a)(this,n),(e=t.apply(this,arguments)).containerRef=Object(u.createRef)(),e.handleKeyDown=e.handleKeyDown.bind(Object(p.a)(e)),e.handleFocusOutside=e.handleFocusOutside.bind(Object(p.a)(e)),e}return Object(c.a)(n,[{key:"componentDidMount",value:function(){this.props.focusOnMount&&this.containerRef.current.focus()}},{key:"handleFocusOutside",value:function(e){this.props.shouldCloseOnClickOutside&&this.onRequestClose(e)}},{key:"handleKeyDown",value:function(e){e.keyCode===m.b&&this.handleEscapeKeyDown(e)}},{key:"handleEscapeKeyDown",value:function(e){this.props.shouldCloseOnEsc&&(e.stopPropagation(),this.onRequestClose(e))}},{key:"onRequestClose",value:function(e){var t=this.props.onRequestClose;t&&t(e)}},{key:"render",value:function(){var e=this.props,t=e.overlayClassName,n=e.contentLabel,o=e.aria,r=o.describedby,a=o.labelledby,c=e.children,i=e.className,l=e.role,s=e.style;return Object(u.createElement)(y.a,{className:h()("components-modal__screen-overlay",t),onKeyDown:this.handleKeyDown},Object(u.createElement)("div",{className:h()("components-modal__frame",i),style:s,ref:this.containerRef,role:l,"aria-label":n,"aria-labelledby":n?null:a,"aria-describedby":r,tabIndex:"-1"},c))}}]),n}(u.Component),k=Object(v.a)([j.a,g.a,O.a])(E),_=n(3),R=n(257),C=n(68),P=function(e){var t=e.icon,n=e.title,o=e.onClose,r=e.closeLabel,a=e.headingId,c=e.isDismissible,i=r||Object(_.__)("Close dialog");return Object(u.createElement)("div",{className:"components-modal__header"},Object(u.createElement)("div",{className:"components-modal__header-heading-container"},t&&Object(u.createElement)("span",{className:"components-modal__icon-container","aria-hidden":!0},t),n&&Object(u.createElement)("h1",{id:a,className:"components-modal__header-heading"},n)),c&&Object(u.createElement)(C.a,{onClick:o,icon:R.a,label:i}))},D=n(2),N=new Set(["alert","status","log","marquee","timer"]),x=[],M=!1;function S(e){if(!M){var t=document.body.children;Object(D.forEach)(t,(function(t){t!==e&&function(e){var t=e.getAttribute("role");return!("SCRIPT"===e.tagName||e.hasAttribute("aria-hidden")||e.hasAttribute("aria-live")||N.has(t))}(t)&&(t.setAttribute("aria-hidden","true"),x.push(t))})),M=!0}}function A(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=Object(s.a)(e);if(t){var r=Object(s.a)(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return Object(l.a)(this,n)}}var I,F=0,L=function(e){Object(i.a)(n,e);var t=A(n);function n(e){var o;return Object(a.a)(this,n),(o=t.call(this,e)).prepareDOM(),o}return Object(c.a)(n,[{key:"componentDidMount",value:function(){1===++F&&this.openFirstModal()}},{key:"componentWillUnmount",value:function(){0===--F&&this.closeLastModal(),this.cleanDOM()}},{key:"prepareDOM",value:function(){I||(I=document.createElement("div"),document.body.appendChild(I)),this.node=document.createElement("div"),I.appendChild(this.node)}},{key:"cleanDOM",value:function(){I.removeChild(this.node)}},{key:"openFirstModal",value:function(){S(I),document.body.classList.add(this.props.bodyOpenClassName)}},{key:"closeLastModal",value:function(){document.body.classList.remove(this.props.bodyOpenClassName),M&&(Object(D.forEach)(x,(function(e){e.removeAttribute("aria-hidden")})),x=[],M=!1)}},{key:"render",value:function(){var e=this.props,t=e.onRequestClose,n=e.title,a=e.icon,c=e.closeButtonLabel,i=e.children,l=e.aria,s=e.instanceId,f=e.isDismissible,p=e.isDismissable,b=Object(r.a)(e,["onRequestClose","title","icon","closeButtonLabel","children","aria","instanceId","isDismissible","isDismissable"]),h=l.labelledby||"components-modal-header-".concat(s);return p&&Object(d.a)("isDismissable prop of the Modal component",{alternative:"isDismissible prop (renamed) of the Modal component"}),Object(u.createPortal)(Object(u.createElement)(k,Object(o.a)({onRequestClose:t,aria:{labelledby:n?h:null,describedby:l.describedby}},b),Object(u.createElement)("div",{className:"components-modal__content",role:"document"},Object(u.createElement)(P,{closeLabel:c,headingId:h,icon:a,isDismissible:f||p,onClose:t,title:n}),i)),this.node)}}]),n}(u.Component);L.defaultProps={bodyOpenClassName:"modal-open",role:"dialog",title:null,focusOnMount:!0,shouldCloseOnEsc:!0,shouldCloseOnClickOutside:!0,isDismissible:!0,aria:{labelledby:null,describedby:null}};t.a=Object(f.a)(L)},581:function(e,t,n){"use strict";var o=n(0),r=n(4),a=n.n(r),c=n(241);function i(e){var t=e.id,n=e.label,r=e.hideLabelFromVision,l=e.help,s=e.className,u=e.children;return Object(o.createElement)("div",{className:a()("components-base-control",s)},Object(o.createElement)("div",{className:"components-base-control__field"},n&&t&&(r?Object(o.createElement)(c.a,{as:"label",htmlFor:t},n):Object(o.createElement)("label",{className:"components-base-control__label",htmlFor:t},n)),n&&!t&&(r?Object(o.createElement)(c.a,{as:"label"},n):Object(o.createElement)(i.VisualLabel,null,n)),u),!!l&&Object(o.createElement)("p",{id:t+"__help",className:"components-base-control__help"},l))}i.VisualLabel=function(e){var t=e.className,n=e.children;return t=a()("components-base-control__label",t),Object(o.createElement)("span",{className:t},n)},t.a=i},589:function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var o=n(7),r=n(11),a=n(0),c=n(147),i=n(382),l=n(571),s=n(581);function u(e){var t=e.label,n=e.className,f=e.heading,d=e.checked,p=e.help,b=e.onChange,h=Object(r.a)(e,["label","className","heading","checked","help","onChange"]),m=Object(c.a)(u),v="inspector-checkbox-control-".concat(m);return Object(a.createElement)(s.a,{label:f,id:v,help:p,className:n},Object(a.createElement)("span",{className:"components-checkbox-control__input-container"},Object(a.createElement)("input",Object(o.a)({id:v,className:"components-checkbox-control__input",type:"checkbox",value:"1",onChange:function(e){return b(e.target.checked)},checked:d,"aria-describedby":p?v+"__help":void 0},h)),d?Object(a.createElement)(i.a,{icon:l.a,className:"components-checkbox-control__checked",role:"presentation"}):null),Object(a.createElement)("label",{className:"components-checkbox-control__label",htmlFor:v},t))}},614:function(e,t,n){"use strict";var o=n(0),r=n(78),a=Object(o.createElement)(r.c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.b,{d:"M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"}));t.a=a},651:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));n(652);var o=function(){return Math.random().toString(36).substring(7).split("").join(".")};o(),o();function r(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}},652:function(e,t,n){"use strict";(function(e,o){var r,a=n(654);r="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e?e:o;var c=Object(a.a)(r);t.a=c}).call(this,n(127),n(653)(e))},653:function(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t}},654:function(e,t,n){"use strict";function o(e){var t,n=e.Symbol;return"function"==typeof n?n.observable?t=n.observable:(t=n("observable"),n.observable=t):t="@@observable",t}n.d(t,"a",(function(){return o}))},665:function(e,t,n){"use strict";var o=n(0),r=n(78),a=Object(o.createElement)(r.c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(r.b,{d:"M7 5.5h10a.5.5 0 01.5.5v12a.5.5 0 01-.5.5H7a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM17 4H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V6a2 2 0 00-2-2zm-1 3.75H8v1.5h8v-1.5zM8 11h8v1.5H8V11zm6 3.25H8v1.5h6v-1.5z"}));t.a=a}}]);
|
dist/chunks/54.js
CHANGED
@@ -403,7 +403,7 @@ var external_this_wp_i18n_ = __webpack_require__(3);
|
|
403 |
var library_close = __webpack_require__(257);
|
404 |
|
405 |
// EXTERNAL MODULE: ./node_modules/@wordpress/components/build-module/button/index.js
|
406 |
-
var build_module_button = __webpack_require__(
|
407 |
|
408 |
// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/modal/header.js
|
409 |
|
@@ -873,7 +873,7 @@ function CheckboxControl(_ref) {
|
|
873 |
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_6__);
|
874 |
/* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(147);
|
875 |
/* harmony import */ var _navigable_container__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(573);
|
876 |
-
/* harmony import */ var _button__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(
|
877 |
|
878 |
|
879 |
|
@@ -1129,7 +1129,7 @@ var _extends=Object.assign||function(a){for(var c,b=1;b<arguments.length;b++)for
|
|
1129 |
/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_7__);
|
1130 |
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(2);
|
1131 |
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_8__);
|
1132 |
-
/* harmony import */ var _wordpress_is_shallow_equal__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(
|
1133 |
/* harmony import */ var _wordpress_is_shallow_equal__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_wordpress_is_shallow_equal__WEBPACK_IMPORTED_MODULE_9__);
|
1134 |
|
1135 |
|
@@ -1423,7 +1423,7 @@ var DropZoneProvider = /*#__PURE__*/function (_Component) {
|
|
1423 |
/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(11);
|
1424 |
/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(0);
|
1425 |
/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__);
|
1426 |
-
/* harmony import */ var _button__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
|
1427 |
|
1428 |
|
1429 |
|
403 |
var library_close = __webpack_require__(257);
|
404 |
|
405 |
// EXTERNAL MODULE: ./node_modules/@wordpress/components/build-module/button/index.js
|
406 |
+
var build_module_button = __webpack_require__(68);
|
407 |
|
408 |
// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/modal/header.js
|
409 |
|
873 |
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_6__);
|
874 |
/* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(147);
|
875 |
/* harmony import */ var _navigable_container__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(573);
|
876 |
+
/* harmony import */ var _button__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(68);
|
877 |
|
878 |
|
879 |
|
1129 |
/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_7__);
|
1130 |
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(2);
|
1131 |
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_8__);
|
1132 |
+
/* harmony import */ var _wordpress_is_shallow_equal__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(66);
|
1133 |
/* harmony import */ var _wordpress_is_shallow_equal__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_wordpress_is_shallow_equal__WEBPACK_IMPORTED_MODULE_9__);
|
1134 |
|
1135 |
|
1423 |
/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(11);
|
1424 |
/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(0);
|
1425 |
/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__);
|
1426 |
+
/* harmony import */ var _button__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(68);
|
1427 |
|
1428 |
|
1429 |
|
dist/chunks/54.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
(window.__wcAdmin_webpackJsonp=window.__wcAdmin_webpackJsonp||[]).push([[54],{241:function(e,t,n){"use strict";var o=n(6),a=n(11),r=n(4),c=n.n(r),i=n(0);function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}t.a=function(e){var t=e.as,n=void 0===t?"div":t,r=e.className,l=Object(a.a)(e,["as","className"]);return function(e){var t=e.as,n=void 0===t?"div":t,o=Object(a.a)(e,["as"]);return"function"==typeof o.children?o.children(o):Object(i.createElement)(n,o)}(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){Object(o.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({as:n,className:c()("components-visually-hidden",r)},l))}},351:function(e,t,n){"use strict";var o=n(7),a=n(11),r=n(0),c=n(4),i=n.n(c),s=n(243);t.a=Object(r.forwardRef)((function(e,t){var n=e.className,c=Object(a.a)(e,["className"]),l=i()("components-flex__item",n);return Object(r.createElement)(s.b,Object(o.a)({},c,{className:l,ref:t}))}))},353:function(e,t,n){"use strict";var o=n(7),a=n(0),r=n(77),c=n(147);t.a=Object(r.a)((function(e){return function(t){var n=Object(c.a)(e);return Object(a.createElement)(e,Object(o.a)({},t,{instanceId:n}))}}),"withInstanceId")},546:function(e,t,n){"use strict";var o=n(7),a=n(11),r=n(16),c=n(17),i=n(18),s=n(21),l=n(9),u=n(0),d=n(353),p=n(47),m=n(12),b=n(4),f=n.n(b),h=n(57),v=n(181),O=n(111),j=n(110),g=n(113),D=n(109);function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=Object(l.a)(e);if(t){var a=Object(l.a)(this).constructor;n=Reflect.construct(o,arguments,a)}else n=o.apply(this,arguments);return Object(s.a)(this,n)}}var E=function(e){Object(i.a)(n,e);var t=y(n);function n(){var e;return Object(r.a)(this,n),(e=t.apply(this,arguments)).containerRef=Object(u.createRef)(),e.handleKeyDown=e.handleKeyDown.bind(Object(m.a)(e)),e.handleFocusOutside=e.handleFocusOutside.bind(Object(m.a)(e)),e}return Object(c.a)(n,[{key:"componentDidMount",value:function(){this.props.focusOnMount&&this.containerRef.current.focus()}},{key:"handleFocusOutside",value:function(e){this.props.shouldCloseOnClickOutside&&this.onRequestClose(e)}},{key:"handleKeyDown",value:function(e){e.keyCode===h.b&&this.handleEscapeKeyDown(e)}},{key:"handleEscapeKeyDown",value:function(e){this.props.shouldCloseOnEsc&&(e.stopPropagation(),this.onRequestClose(e))}},{key:"onRequestClose",value:function(e){var t=this.props.onRequestClose;t&&t(e)}},{key:"render",value:function(){var e=this.props,t=e.overlayClassName,n=e.contentLabel,o=e.aria,a=o.describedby,r=o.labelledby,c=e.children,i=e.className,s=e.role,l=e.style;return Object(u.createElement)(O.a,{className:f()("components-modal__screen-overlay",t),onKeyDown:this.handleKeyDown},Object(u.createElement)("div",{className:f()("components-modal__frame",i),style:l,ref:this.containerRef,role:s,"aria-label":n,"aria-labelledby":n?null:r,"aria-describedby":a,tabIndex:"-1"},c))}}]),n}(u.Component),_=Object(v.a)([g.a,D.a,j.a])(E),k=n(3),w=n(257),N=n(67),C=function(e){var t=e.icon,n=e.title,o=e.onClose,a=e.closeLabel,r=e.headingId,c=e.isDismissible,i=a||Object(k.__)("Close dialog");return Object(u.createElement)("div",{className:"components-modal__header"},Object(u.createElement)("div",{className:"components-modal__header-heading-container"},t&&Object(u.createElement)("span",{className:"components-modal__icon-container","aria-hidden":!0},t),n&&Object(u.createElement)("h1",{id:r,className:"components-modal__header-heading"},n)),c&&Object(u.createElement)(N.a,{onClick:o,icon:w.a,label:i}))},Z=n(2),R=new Set(["alert","status","log","marquee","timer"]),P=[],x=!1;function M(e){if(!x){var t=document.body.children;Object(Z.forEach)(t,(function(t){t!==e&&function(e){var t=e.getAttribute("role");return!("SCRIPT"===e.tagName||e.hasAttribute("aria-hidden")||e.hasAttribute("aria-live")||R.has(t))}(t)&&(t.setAttribute("aria-hidden","true"),P.push(t))})),x=!0}}function S(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=Object(l.a)(e);if(t){var a=Object(l.a)(this).constructor;n=Reflect.construct(o,arguments,a)}else n=o.apply(this,arguments);return Object(s.a)(this,n)}}var L,z=0,F=function(e){Object(i.a)(n,e);var t=S(n);function n(e){var o;return Object(r.a)(this,n),(o=t.call(this,e)).prepareDOM(),o}return Object(c.a)(n,[{key:"componentDidMount",value:function(){1===++z&&this.openFirstModal()}},{key:"componentWillUnmount",value:function(){0===--z&&this.closeLastModal(),this.cleanDOM()}},{key:"prepareDOM",value:function(){L||(L=document.createElement("div"),document.body.appendChild(L)),this.node=document.createElement("div"),L.appendChild(this.node)}},{key:"cleanDOM",value:function(){L.removeChild(this.node)}},{key:"openFirstModal",value:function(){M(L),document.body.classList.add(this.props.bodyOpenClassName)}},{key:"closeLastModal",value:function(){document.body.classList.remove(this.props.bodyOpenClassName),x&&(Object(Z.forEach)(P,(function(e){e.removeAttribute("aria-hidden")})),P=[],x=!1)}},{key:"render",value:function(){var e=this.props,t=e.onRequestClose,n=e.title,r=e.icon,c=e.closeButtonLabel,i=e.children,s=e.aria,l=e.instanceId,d=e.isDismissible,m=e.isDismissable,b=Object(a.a)(e,["onRequestClose","title","icon","closeButtonLabel","children","aria","instanceId","isDismissible","isDismissable"]),f=s.labelledby||"components-modal-header-".concat(l);return m&&Object(p.a)("isDismissable prop of the Modal component",{alternative:"isDismissible prop (renamed) of the Modal component"}),Object(u.createPortal)(Object(u.createElement)(_,Object(o.a)({onRequestClose:t,aria:{labelledby:n?f:null,describedby:s.describedby}},b),Object(u.createElement)("div",{className:"components-modal__content",role:"document"},Object(u.createElement)(C,{closeLabel:c,headingId:f,icon:r,isDismissible:d||m,onClose:t,title:n}),i)),this.node)}}]),n}(u.Component);F.defaultProps={bodyOpenClassName:"modal-open",role:"dialog",title:null,focusOnMount:!0,shouldCloseOnEsc:!0,shouldCloseOnClickOutside:!0,isDismissible:!0,aria:{labelledby:null,describedby:null}};t.a=Object(d.a)(F)},581:function(e,t,n){"use strict";var o=n(0),a=n(4),r=n.n(a),c=n(241);function i(e){var t=e.id,n=e.label,a=e.hideLabelFromVision,s=e.help,l=e.className,u=e.children;return Object(o.createElement)("div",{className:r()("components-base-control",l)},Object(o.createElement)("div",{className:"components-base-control__field"},n&&t&&(a?Object(o.createElement)(c.a,{as:"label",htmlFor:t},n):Object(o.createElement)("label",{className:"components-base-control__label",htmlFor:t},n)),n&&!t&&(a?Object(o.createElement)(c.a,{as:"label"},n):Object(o.createElement)(i.VisualLabel,null,n)),u),!!s&&Object(o.createElement)("p",{id:t+"__help",className:"components-base-control__help"},s))}i.VisualLabel=function(e){var t=e.className,n=e.children;return t=r()("components-base-control__label",t),Object(o.createElement)("span",{className:t},n)},t.a=i},589:function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var o=n(7),a=n(11),r=n(0),c=n(147),i=n(382),s=n(571),l=n(581);function u(e){var t=e.label,n=e.className,d=e.heading,p=e.checked,m=e.help,b=e.onChange,f=Object(a.a)(e,["label","className","heading","checked","help","onChange"]),h=Object(c.a)(u),v="inspector-checkbox-control-".concat(h);return Object(r.createElement)(l.a,{label:d,id:v,help:m,className:n},Object(r.createElement)("span",{className:"components-checkbox-control__input-container"},Object(r.createElement)("input",Object(o.a)({id:v,className:"components-checkbox-control__input",type:"checkbox",value:"1",onChange:function(e){return b(e.target.checked)},checked:p,"aria-describedby":m?v+"__help":void 0},f)),p?Object(r.createElement)(i.a,{icon:s.a,className:"components-checkbox-control__checked",role:"presentation"}):null),Object(r.createElement)("label",{className:"components-checkbox-control__label",htmlFor:v},t))}},621:function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var o=n(6),a=n(24),r=n(7),c=n(11),i=n(0),s=n(4),l=n.n(s),u=n(2),d=n(147),p=n(573),m=n(67),b=function(e){var t=e.tabId,n=e.onClick,o=e.children,a=e.selected,s=Object(c.a)(e,["tabId","onClick","children","selected"]);return Object(i.createElement)(m.a,Object(r.a)({role:"tab",tabIndex:a?null:-1,"aria-selected":a,id:t,onClick:n},s),o)};function f(e){var t,n=e.className,r=e.children,c=e.tabs,s=e.initialTabName,m=e.orientation,h=void 0===m?"horizontal":m,v=e.activeClass,O=void 0===v?"is-active":v,j=e.onSelect,g=void 0===j?u.noop:j,D=Object(d.a)(f,"tab-panel"),y=Object(i.useState)(null),E=Object(a.a)(y,2),_=E[0],k=E[1],w=function(e){k(e),g(e)},N=Object(u.find)(c,{name:_}),C="".concat(D,"-").concat(null!==(t=null==N?void 0:N.name)&&void 0!==t?t:"none");return Object(i.useEffect)((function(){Object(u.find)(c,{name:_})||k(s||(c.length>0?c[0].name:null))}),[c]),Object(i.createElement)("div",{className:n},Object(i.createElement)(p.a,{role:"tablist",orientation:h,onNavigate:function(e,t){t.click()},className:"components-tab-panel__tabs"},c.map((function(e){return Object(i.createElement)(b,{className:l()("components-tab-panel__tabs-item",e.className,Object(o.a)({},O,e.name===_)),tabId:"".concat(D,"-").concat(e.name),"aria-controls":"".concat(D,"-").concat(e.name,"-view"),selected:e.name===_,key:e.name,onClick:Object(u.partial)(w,e.name)},e.title)}))),N&&Object(i.createElement)("div",{"aria-labelledby":C,role:"tabpanel",id:"".concat(C,"-view"),className:"components-tab-panel__tab-content"},r(N)))}},622:function(e,t,n){"use strict";var o=n(7),a=n(6),r=n(11),c=n(0),i=n(4),s=n.n(i),l=n(145),u=n(144);function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var m={isBorderless:!1,isShady:!1,size:"medium"};t.a=function(e){var t=e.className,n=e.isShady,a=Object(r.a)(e,["className","isShady"]),i=p(p(p({},m),Object(u.b)()),e),d=i.isBorderless,b=i.size,f=s()("components-card__footer",d&&"is-borderless",n&&"is-shady",b&&"is-size-".concat(b),t);return Object(c.createElement)(l.c,Object(o.a)({},a,{className:f}))}},640:function(e,t,n){"use strict";var o=n(7),a=n(11),r=n(0),c=n(4),i=n.n(c),s=n(2);t.a=function(e){var t=e.className,n=e.checked,c=e.id,l=e.onChange,u=void 0===l?s.noop:l,d=Object(a.a)(e,["className","checked","id","onChange"]),p=i()("components-form-toggle",t,{"is-checked":n});return Object(r.createElement)("span",{className:p},Object(r.createElement)("input",Object(o.a)({className:"components-form-toggle__input",id:c,type:"checkbox",checked:n,onChange:u},d)),Object(r.createElement)("span",{className:"components-form-toggle__track"}),Object(r.createElement)("span",{className:"components-form-toggle__thumb"}))}},643:function(e,t,n){"use strict";var o=Object.assign||function(e){for(var t,n=1;n<arguments.length;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n=e.size,a=void 0===n?24:n,r=e.onClick,i=(e.icon,e.className),s=function(e,t){var n={};for(var o in e)0<=t.indexOf(o)||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}(e,["size","onClick","icon","className"]),l=["gridicon","gridicons-info",i,(t=a,!(0!=t%18)&&"needs-offset"),!1,!1].filter(Boolean).join(" ");return c.default.createElement("svg",o({className:l,height:a,width:a,onClick:r},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),c.default.createElement("g",null,c.default.createElement("path",{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"})))};var a,r=n(8),c=(a=r)&&a.__esModule?a:{default:a};e.exports=t.default},645:function(e,t,n){"use strict";var o=Object.assign||function(e){for(var t,n=1;n<arguments.length;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.size,n=void 0===t?24:t,a=e.onClick,r=(e.icon,e.className),i=function(e,t){var n={};for(var o in e)0<=t.indexOf(o)||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}(e,["size","onClick","icon","className"]),s=["gridicon","gridicons-cloud-upload",r,!1,!1,!1].filter(Boolean).join(" ");return c.default.createElement("svg",o({className:s,height:n,width:n,onClick:a},i,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),c.default.createElement("g",null,c.default.createElement("path",{d:"M18 9c-.01 0-.017.002-.025.003C17.72 5.646 14.922 3 11.5 3 7.91 3 5 5.91 5 9.5c0 .524.07 1.03.186 1.52C5.123 11.015 5.064 11 5 11c-2.21 0-4 1.79-4 4 0 1.202.54 2.267 1.38 3h18.593C22.196 17.09 23 15.643 23 14c0-2.76-2.24-5-5-5zm-5 4v3h-2v-3H8l4-5 4 5h-3z"})))};var a,r=n(8),c=(a=r)&&a.__esModule?a:{default:a};e.exports=t.default},646:function(e,t,n){"use strict";n.d(t,"a",(function(){return f})),n.d(t,"b",(function(){return v}));var o=n(26),a=n(16),r=n(17),c=n(12),i=n(18),s=n(21),l=n(9),u=n(0),d=n(2),p=n(65),m=n.n(p);function b(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=Object(l.a)(e);if(t){var a=Object(l.a)(this).constructor;n=Reflect.construct(o,arguments,a)}else n=o.apply(this,arguments);return Object(s.a)(this,n)}}var f=Object(u.createContext)({addDropZone:function(){},removeDropZone:function(){}}),h=f.Provider,v=f.Consumer,O=function(e){var t=e.dataTransfer;if(t){if(Object(d.includes)(t.types,"Files"))return"file";if(Object(d.includes)(t.types,"text/html"))return"html"}return"default"},j=function(e,t){return"file"===e&&t.onFilesDrop||"html"===e&&t.onHTMLDrop||"default"===e&&t.onDrop},g=function(e){Object(i.a)(n,e);var t=b(n);function n(){var e;return Object(a.a)(this,n),(e=t.apply(this,arguments)).onDragOver=e.onDragOver.bind(Object(c.a)(e)),e.onDrop=e.onDrop.bind(Object(c.a)(e)),e.addDropZone=e.addDropZone.bind(Object(c.a)(e)),e.removeDropZone=e.removeDropZone.bind(Object(c.a)(e)),e.resetDragState=e.resetDragState.bind(Object(c.a)(e)),e.toggleDraggingOverDocument=Object(d.throttle)(e.toggleDraggingOverDocument.bind(Object(c.a)(e)),200),e.dropZones=[],e.dropZoneCallbacks={addDropZone:e.addDropZone,removeDropZone:e.removeDropZone},e.state={hoveredDropZone:-1,isDraggingOverDocument:!1,position:null},e.ref=Object(u.createRef)(),e}return Object(r.a)(n,[{key:"componentDidMount",value:function(){var e=this.ref.current.ownerDocument.defaultView;e.addEventListener("dragover",this.onDragOver),e.addEventListener("mouseup",this.resetDragState)}},{key:"componentWillUnmount",value:function(){var e=this.ref.current.ownerDocument.defaultView;e.removeEventListener("dragover",this.onDragOver),e.removeEventListener("mouseup",this.resetDragState)}},{key:"addDropZone",value:function(e){this.dropZones.push(e)}},{key:"removeDropZone",value:function(e){this.dropZones=Object(d.filter)(this.dropZones,(function(t){return t!==e}))}},{key:"resetDragState",value:function(){this.toggleDraggingOverDocument.cancel();var e=this.state,t=e.isDraggingOverDocument,n=e.hoveredDropZone;(t||-1!==n)&&(this.setState({hoveredDropZone:-1,isDraggingOverDocument:!1,position:null}),this.dropZones.forEach((function(e){return e.setState({isDraggingOverDocument:!1,isDraggingOverElement:!1,position:null,type:null})})))}},{key:"toggleDraggingOverDocument",value:function(e,t){var n=this,o=window.CustomEvent&&e instanceof window.CustomEvent?e.detail:e,a=Object(d.filter)(this.dropZones,(function(e){return j(t,e)&&(n=e.element.current,a=o.clientX,r=o.clientY,(c=n.getBoundingClientRect()).bottom!==c.top&&c.left!==c.right&&a>=c.left&&a<=c.right&&r>=c.top&&r<=c.bottom);var n,a,r,c})),r=Object(d.find)(a,(function(e){var t=e.isRelative?e.element.current.parentElement:e.element.current;return!Object(d.some)(a,(function(n){return n!==e&&t.contains(n.element.current)}))})),c=this.dropZones.indexOf(r),i=null;r&&r.withPosition&&(i={x:o.clientX,y:o.clientY});var s=[];this.state.isDraggingOverDocument?c!==this.state.hoveredDropZone?(-1!==this.state.hoveredDropZone&&s.push(this.dropZones[this.state.hoveredDropZone]),r&&s.push(r)):r&&c===this.state.hoveredDropZone&&!Object(d.isEqual)(i,this.state.position)&&s.push(r):s=this.dropZones,s.forEach((function(e){var o=n.dropZones.indexOf(e)===c;e.setState({isDraggingOverDocument:j(t,e),isDraggingOverElement:o,position:o?i:null,type:o?t:null})}));var l={isDraggingOverDocument:!0,hoveredDropZone:c,position:i};m()(l,this.state)||this.setState(l)}},{key:"onDragOver",value:function(e){this.toggleDraggingOverDocument(e,O(e)),e.preventDefault()}},{key:"onDrop",value:function(e){e.dataTransfer&&e.dataTransfer.files.length;var t=this.state,n=t.position,a=t.hoveredDropZone,r=O(e),c=this.dropZones[a];if(this.resetDragState(),c)switch(r){case"file":c.onFilesDrop(Object(o.a)(e.dataTransfer.files),n);break;case"html":c.onHTMLDrop(e.dataTransfer.getData("text/html"),n);break;case"default":c.onDrop(e,n)}e.stopPropagation(),e.preventDefault()}},{key:"render",value:function(){return Object(u.createElement)("div",{ref:this.ref,onDrop:this.onDrop,className:"components-drop-zone__provider"},Object(u.createElement)(h,{value:this.dropZoneCallbacks},this.props.children))}}]),n}(u.Component);t.c=g},663:function(e,t,n){"use strict";var o=n(7),a=n(11),r=n(0),c=n(67);t.a=function(e){var t=e.accept,n=e.children,i=e.multiple,s=void 0!==i&&i,l=e.onChange,u=e.render,d=Object(a.a)(e,["accept","children","multiple","onChange","render"]),p=Object(r.useRef)(),m=function(){p.current.click()},b=u?u({openFileDialog:m}):Object(r.createElement)(c.a,Object(o.a)({onClick:m},d),n);return Object(r.createElement)("div",{className:"components-form-file-upload"},b,Object(r.createElement)("input",{type:"file",ref:p,multiple:s,style:{display:"none"},accept:t,onChange:l}))}},675:function(e,t,n){"use strict";var o=n(6),a=n(7),r=n(24),c=n(0),i=n(4),s=n.n(i),l=n(3),u=n(382),d=n(78),p=Object(c.createElement)(d.c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(c.createElement)(d.b,{d:"M18.5 15v3.5H13V6.7l4.5 4.1 1-1.1-6.2-5.8-5.8 5.8 1 1.1 4-4v11.7h-6V15H4v5h16v-5z"})),m=n(646);function b(e){var t,n=e.className,a=e.label,i=e.onFilesDrop,d=e.onHTMLDrop,b=e.onDrop,f=Object(c.useRef)(),h=function(e){var t=e.element,n=e.onFilesDrop,o=e.onHTMLDrop,a=e.onDrop,i=e.isDisabled,s=e.withPosition,l=e.__unstableIsRelative,u=void 0!==l&&l,d=Object(c.useContext)(m.a),p=d.addDropZone,b=d.removeDropZone,f=Object(c.useState)({isDraggingOverDocument:!1,isDraggingOverElement:!1,type:null}),h=Object(r.a)(f,2),v=h[0],O=h[1];return Object(c.useEffect)((function(){if(!i){var e={element:t,onDrop:a,onFilesDrop:n,onHTMLDrop:o,setState:O,withPosition:s,isRelative:u};return p(e),function(){b(e)}}}),[i,a,n,o,s]),v}({element:f,onFilesDrop:i,onHTMLDrop:d,onDrop:b,__unstableIsRelative:!0}),v=h.isDraggingOverDocument,O=h.isDraggingOverElement,j=h.type;O&&(t=Object(c.createElement)("div",{className:"components-drop-zone__content"},Object(c.createElement)(u.a,{icon:p,className:"components-drop-zone__content-icon"}),Object(c.createElement)("span",{className:"components-drop-zone__content-text"},a||Object(l.__)("Drop files to upload"))));var g=s()("components-drop-zone",n,Object(o.a)({"is-active":(v||O)&&("file"===j&&i||"html"===j&&d||"default"===j&&b),"is-dragging-over-document":v,"is-dragging-over-element":O},"is-dragging-".concat(j),!!j));return Object(c.createElement)("div",{ref:f,className:g},t)}t.a=function(e){return Object(c.createElement)(m.b,null,(function(t){var n=t.addDropZone,o=t.removeDropZone;return Object(c.createElement)(b,Object(a.a)({addDropZone:n,removeDropZone:o},e))}))}}}]);
|
1 |
+
(window.__wcAdmin_webpackJsonp=window.__wcAdmin_webpackJsonp||[]).push([[54],{241:function(e,t,n){"use strict";var o=n(6),a=n(11),r=n(4),c=n.n(r),i=n(0);function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}t.a=function(e){var t=e.as,n=void 0===t?"div":t,r=e.className,l=Object(a.a)(e,["as","className"]);return function(e){var t=e.as,n=void 0===t?"div":t,o=Object(a.a)(e,["as"]);return"function"==typeof o.children?o.children(o):Object(i.createElement)(n,o)}(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){Object(o.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({as:n,className:c()("components-visually-hidden",r)},l))}},351:function(e,t,n){"use strict";var o=n(7),a=n(11),r=n(0),c=n(4),i=n.n(c),s=n(243);t.a=Object(r.forwardRef)((function(e,t){var n=e.className,c=Object(a.a)(e,["className"]),l=i()("components-flex__item",n);return Object(r.createElement)(s.b,Object(o.a)({},c,{className:l,ref:t}))}))},353:function(e,t,n){"use strict";var o=n(7),a=n(0),r=n(77),c=n(147);t.a=Object(r.a)((function(e){return function(t){var n=Object(c.a)(e);return Object(a.createElement)(e,Object(o.a)({},t,{instanceId:n}))}}),"withInstanceId")},546:function(e,t,n){"use strict";var o=n(7),a=n(11),r=n(16),c=n(17),i=n(18),s=n(21),l=n(9),u=n(0),d=n(353),p=n(47),m=n(12),b=n(4),f=n.n(b),h=n(57),v=n(181),O=n(111),j=n(110),g=n(113),D=n(109);function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=Object(l.a)(e);if(t){var a=Object(l.a)(this).constructor;n=Reflect.construct(o,arguments,a)}else n=o.apply(this,arguments);return Object(s.a)(this,n)}}var E=function(e){Object(i.a)(n,e);var t=y(n);function n(){var e;return Object(r.a)(this,n),(e=t.apply(this,arguments)).containerRef=Object(u.createRef)(),e.handleKeyDown=e.handleKeyDown.bind(Object(m.a)(e)),e.handleFocusOutside=e.handleFocusOutside.bind(Object(m.a)(e)),e}return Object(c.a)(n,[{key:"componentDidMount",value:function(){this.props.focusOnMount&&this.containerRef.current.focus()}},{key:"handleFocusOutside",value:function(e){this.props.shouldCloseOnClickOutside&&this.onRequestClose(e)}},{key:"handleKeyDown",value:function(e){e.keyCode===h.b&&this.handleEscapeKeyDown(e)}},{key:"handleEscapeKeyDown",value:function(e){this.props.shouldCloseOnEsc&&(e.stopPropagation(),this.onRequestClose(e))}},{key:"onRequestClose",value:function(e){var t=this.props.onRequestClose;t&&t(e)}},{key:"render",value:function(){var e=this.props,t=e.overlayClassName,n=e.contentLabel,o=e.aria,a=o.describedby,r=o.labelledby,c=e.children,i=e.className,s=e.role,l=e.style;return Object(u.createElement)(O.a,{className:f()("components-modal__screen-overlay",t),onKeyDown:this.handleKeyDown},Object(u.createElement)("div",{className:f()("components-modal__frame",i),style:l,ref:this.containerRef,role:s,"aria-label":n,"aria-labelledby":n?null:r,"aria-describedby":a,tabIndex:"-1"},c))}}]),n}(u.Component),_=Object(v.a)([g.a,D.a,j.a])(E),k=n(3),w=n(257),N=n(68),C=function(e){var t=e.icon,n=e.title,o=e.onClose,a=e.closeLabel,r=e.headingId,c=e.isDismissible,i=a||Object(k.__)("Close dialog");return Object(u.createElement)("div",{className:"components-modal__header"},Object(u.createElement)("div",{className:"components-modal__header-heading-container"},t&&Object(u.createElement)("span",{className:"components-modal__icon-container","aria-hidden":!0},t),n&&Object(u.createElement)("h1",{id:r,className:"components-modal__header-heading"},n)),c&&Object(u.createElement)(N.a,{onClick:o,icon:w.a,label:i}))},Z=n(2),R=new Set(["alert","status","log","marquee","timer"]),P=[],x=!1;function M(e){if(!x){var t=document.body.children;Object(Z.forEach)(t,(function(t){t!==e&&function(e){var t=e.getAttribute("role");return!("SCRIPT"===e.tagName||e.hasAttribute("aria-hidden")||e.hasAttribute("aria-live")||R.has(t))}(t)&&(t.setAttribute("aria-hidden","true"),P.push(t))})),x=!0}}function S(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=Object(l.a)(e);if(t){var a=Object(l.a)(this).constructor;n=Reflect.construct(o,arguments,a)}else n=o.apply(this,arguments);return Object(s.a)(this,n)}}var L,z=0,F=function(e){Object(i.a)(n,e);var t=S(n);function n(e){var o;return Object(r.a)(this,n),(o=t.call(this,e)).prepareDOM(),o}return Object(c.a)(n,[{key:"componentDidMount",value:function(){1===++z&&this.openFirstModal()}},{key:"componentWillUnmount",value:function(){0===--z&&this.closeLastModal(),this.cleanDOM()}},{key:"prepareDOM",value:function(){L||(L=document.createElement("div"),document.body.appendChild(L)),this.node=document.createElement("div"),L.appendChild(this.node)}},{key:"cleanDOM",value:function(){L.removeChild(this.node)}},{key:"openFirstModal",value:function(){M(L),document.body.classList.add(this.props.bodyOpenClassName)}},{key:"closeLastModal",value:function(){document.body.classList.remove(this.props.bodyOpenClassName),x&&(Object(Z.forEach)(P,(function(e){e.removeAttribute("aria-hidden")})),P=[],x=!1)}},{key:"render",value:function(){var e=this.props,t=e.onRequestClose,n=e.title,r=e.icon,c=e.closeButtonLabel,i=e.children,s=e.aria,l=e.instanceId,d=e.isDismissible,m=e.isDismissable,b=Object(a.a)(e,["onRequestClose","title","icon","closeButtonLabel","children","aria","instanceId","isDismissible","isDismissable"]),f=s.labelledby||"components-modal-header-".concat(l);return m&&Object(p.a)("isDismissable prop of the Modal component",{alternative:"isDismissible prop (renamed) of the Modal component"}),Object(u.createPortal)(Object(u.createElement)(_,Object(o.a)({onRequestClose:t,aria:{labelledby:n?f:null,describedby:s.describedby}},b),Object(u.createElement)("div",{className:"components-modal__content",role:"document"},Object(u.createElement)(C,{closeLabel:c,headingId:f,icon:r,isDismissible:d||m,onClose:t,title:n}),i)),this.node)}}]),n}(u.Component);F.defaultProps={bodyOpenClassName:"modal-open",role:"dialog",title:null,focusOnMount:!0,shouldCloseOnEsc:!0,shouldCloseOnClickOutside:!0,isDismissible:!0,aria:{labelledby:null,describedby:null}};t.a=Object(d.a)(F)},581:function(e,t,n){"use strict";var o=n(0),a=n(4),r=n.n(a),c=n(241);function i(e){var t=e.id,n=e.label,a=e.hideLabelFromVision,s=e.help,l=e.className,u=e.children;return Object(o.createElement)("div",{className:r()("components-base-control",l)},Object(o.createElement)("div",{className:"components-base-control__field"},n&&t&&(a?Object(o.createElement)(c.a,{as:"label",htmlFor:t},n):Object(o.createElement)("label",{className:"components-base-control__label",htmlFor:t},n)),n&&!t&&(a?Object(o.createElement)(c.a,{as:"label"},n):Object(o.createElement)(i.VisualLabel,null,n)),u),!!s&&Object(o.createElement)("p",{id:t+"__help",className:"components-base-control__help"},s))}i.VisualLabel=function(e){var t=e.className,n=e.children;return t=r()("components-base-control__label",t),Object(o.createElement)("span",{className:t},n)},t.a=i},589:function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var o=n(7),a=n(11),r=n(0),c=n(147),i=n(382),s=n(571),l=n(581);function u(e){var t=e.label,n=e.className,d=e.heading,p=e.checked,m=e.help,b=e.onChange,f=Object(a.a)(e,["label","className","heading","checked","help","onChange"]),h=Object(c.a)(u),v="inspector-checkbox-control-".concat(h);return Object(r.createElement)(l.a,{label:d,id:v,help:m,className:n},Object(r.createElement)("span",{className:"components-checkbox-control__input-container"},Object(r.createElement)("input",Object(o.a)({id:v,className:"components-checkbox-control__input",type:"checkbox",value:"1",onChange:function(e){return b(e.target.checked)},checked:p,"aria-describedby":m?v+"__help":void 0},f)),p?Object(r.createElement)(i.a,{icon:s.a,className:"components-checkbox-control__checked",role:"presentation"}):null),Object(r.createElement)("label",{className:"components-checkbox-control__label",htmlFor:v},t))}},621:function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var o=n(6),a=n(24),r=n(7),c=n(11),i=n(0),s=n(4),l=n.n(s),u=n(2),d=n(147),p=n(573),m=n(68),b=function(e){var t=e.tabId,n=e.onClick,o=e.children,a=e.selected,s=Object(c.a)(e,["tabId","onClick","children","selected"]);return Object(i.createElement)(m.a,Object(r.a)({role:"tab",tabIndex:a?null:-1,"aria-selected":a,id:t,onClick:n},s),o)};function f(e){var t,n=e.className,r=e.children,c=e.tabs,s=e.initialTabName,m=e.orientation,h=void 0===m?"horizontal":m,v=e.activeClass,O=void 0===v?"is-active":v,j=e.onSelect,g=void 0===j?u.noop:j,D=Object(d.a)(f,"tab-panel"),y=Object(i.useState)(null),E=Object(a.a)(y,2),_=E[0],k=E[1],w=function(e){k(e),g(e)},N=Object(u.find)(c,{name:_}),C="".concat(D,"-").concat(null!==(t=null==N?void 0:N.name)&&void 0!==t?t:"none");return Object(i.useEffect)((function(){Object(u.find)(c,{name:_})||k(s||(c.length>0?c[0].name:null))}),[c]),Object(i.createElement)("div",{className:n},Object(i.createElement)(p.a,{role:"tablist",orientation:h,onNavigate:function(e,t){t.click()},className:"components-tab-panel__tabs"},c.map((function(e){return Object(i.createElement)(b,{className:l()("components-tab-panel__tabs-item",e.className,Object(o.a)({},O,e.name===_)),tabId:"".concat(D,"-").concat(e.name),"aria-controls":"".concat(D,"-").concat(e.name,"-view"),selected:e.name===_,key:e.name,onClick:Object(u.partial)(w,e.name)},e.title)}))),N&&Object(i.createElement)("div",{"aria-labelledby":C,role:"tabpanel",id:"".concat(C,"-view"),className:"components-tab-panel__tab-content"},r(N)))}},622:function(e,t,n){"use strict";var o=n(7),a=n(6),r=n(11),c=n(0),i=n(4),s=n.n(i),l=n(145),u=n(144);function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var m={isBorderless:!1,isShady:!1,size:"medium"};t.a=function(e){var t=e.className,n=e.isShady,a=Object(r.a)(e,["className","isShady"]),i=p(p(p({},m),Object(u.b)()),e),d=i.isBorderless,b=i.size,f=s()("components-card__footer",d&&"is-borderless",n&&"is-shady",b&&"is-size-".concat(b),t);return Object(c.createElement)(l.c,Object(o.a)({},a,{className:f}))}},640:function(e,t,n){"use strict";var o=n(7),a=n(11),r=n(0),c=n(4),i=n.n(c),s=n(2);t.a=function(e){var t=e.className,n=e.checked,c=e.id,l=e.onChange,u=void 0===l?s.noop:l,d=Object(a.a)(e,["className","checked","id","onChange"]),p=i()("components-form-toggle",t,{"is-checked":n});return Object(r.createElement)("span",{className:p},Object(r.createElement)("input",Object(o.a)({className:"components-form-toggle__input",id:c,type:"checkbox",checked:n,onChange:u},d)),Object(r.createElement)("span",{className:"components-form-toggle__track"}),Object(r.createElement)("span",{className:"components-form-toggle__thumb"}))}},643:function(e,t,n){"use strict";var o=Object.assign||function(e){for(var t,n=1;n<arguments.length;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n=e.size,a=void 0===n?24:n,r=e.onClick,i=(e.icon,e.className),s=function(e,t){var n={};for(var o in e)0<=t.indexOf(o)||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}(e,["size","onClick","icon","className"]),l=["gridicon","gridicons-info",i,(t=a,!(0!=t%18)&&"needs-offset"),!1,!1].filter(Boolean).join(" ");return c.default.createElement("svg",o({className:l,height:a,width:a,onClick:r},s,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),c.default.createElement("g",null,c.default.createElement("path",{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"})))};var a,r=n(8),c=(a=r)&&a.__esModule?a:{default:a};e.exports=t.default},645:function(e,t,n){"use strict";var o=Object.assign||function(e){for(var t,n=1;n<arguments.length;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.size,n=void 0===t?24:t,a=e.onClick,r=(e.icon,e.className),i=function(e,t){var n={};for(var o in e)0<=t.indexOf(o)||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}(e,["size","onClick","icon","className"]),s=["gridicon","gridicons-cloud-upload",r,!1,!1,!1].filter(Boolean).join(" ");return c.default.createElement("svg",o({className:s,height:n,width:n,onClick:a},i,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),c.default.createElement("g",null,c.default.createElement("path",{d:"M18 9c-.01 0-.017.002-.025.003C17.72 5.646 14.922 3 11.5 3 7.91 3 5 5.91 5 9.5c0 .524.07 1.03.186 1.52C5.123 11.015 5.064 11 5 11c-2.21 0-4 1.79-4 4 0 1.202.54 2.267 1.38 3h18.593C22.196 17.09 23 15.643 23 14c0-2.76-2.24-5-5-5zm-5 4v3h-2v-3H8l4-5 4 5h-3z"})))};var a,r=n(8),c=(a=r)&&a.__esModule?a:{default:a};e.exports=t.default},646:function(e,t,n){"use strict";n.d(t,"a",(function(){return f})),n.d(t,"b",(function(){return v}));var o=n(26),a=n(16),r=n(17),c=n(12),i=n(18),s=n(21),l=n(9),u=n(0),d=n(2),p=n(66),m=n.n(p);function b(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=Object(l.a)(e);if(t){var a=Object(l.a)(this).constructor;n=Reflect.construct(o,arguments,a)}else n=o.apply(this,arguments);return Object(s.a)(this,n)}}var f=Object(u.createContext)({addDropZone:function(){},removeDropZone:function(){}}),h=f.Provider,v=f.Consumer,O=function(e){var t=e.dataTransfer;if(t){if(Object(d.includes)(t.types,"Files"))return"file";if(Object(d.includes)(t.types,"text/html"))return"html"}return"default"},j=function(e,t){return"file"===e&&t.onFilesDrop||"html"===e&&t.onHTMLDrop||"default"===e&&t.onDrop},g=function(e){Object(i.a)(n,e);var t=b(n);function n(){var e;return Object(a.a)(this,n),(e=t.apply(this,arguments)).onDragOver=e.onDragOver.bind(Object(c.a)(e)),e.onDrop=e.onDrop.bind(Object(c.a)(e)),e.addDropZone=e.addDropZone.bind(Object(c.a)(e)),e.removeDropZone=e.removeDropZone.bind(Object(c.a)(e)),e.resetDragState=e.resetDragState.bind(Object(c.a)(e)),e.toggleDraggingOverDocument=Object(d.throttle)(e.toggleDraggingOverDocument.bind(Object(c.a)(e)),200),e.dropZones=[],e.dropZoneCallbacks={addDropZone:e.addDropZone,removeDropZone:e.removeDropZone},e.state={hoveredDropZone:-1,isDraggingOverDocument:!1,position:null},e.ref=Object(u.createRef)(),e}return Object(r.a)(n,[{key:"componentDidMount",value:function(){var e=this.ref.current.ownerDocument.defaultView;e.addEventListener("dragover",this.onDragOver),e.addEventListener("mouseup",this.resetDragState)}},{key:"componentWillUnmount",value:function(){var e=this.ref.current.ownerDocument.defaultView;e.removeEventListener("dragover",this.onDragOver),e.removeEventListener("mouseup",this.resetDragState)}},{key:"addDropZone",value:function(e){this.dropZones.push(e)}},{key:"removeDropZone",value:function(e){this.dropZones=Object(d.filter)(this.dropZones,(function(t){return t!==e}))}},{key:"resetDragState",value:function(){this.toggleDraggingOverDocument.cancel();var e=this.state,t=e.isDraggingOverDocument,n=e.hoveredDropZone;(t||-1!==n)&&(this.setState({hoveredDropZone:-1,isDraggingOverDocument:!1,position:null}),this.dropZones.forEach((function(e){return e.setState({isDraggingOverDocument:!1,isDraggingOverElement:!1,position:null,type:null})})))}},{key:"toggleDraggingOverDocument",value:function(e,t){var n=this,o=window.CustomEvent&&e instanceof window.CustomEvent?e.detail:e,a=Object(d.filter)(this.dropZones,(function(e){return j(t,e)&&(n=e.element.current,a=o.clientX,r=o.clientY,(c=n.getBoundingClientRect()).bottom!==c.top&&c.left!==c.right&&a>=c.left&&a<=c.right&&r>=c.top&&r<=c.bottom);var n,a,r,c})),r=Object(d.find)(a,(function(e){var t=e.isRelative?e.element.current.parentElement:e.element.current;return!Object(d.some)(a,(function(n){return n!==e&&t.contains(n.element.current)}))})),c=this.dropZones.indexOf(r),i=null;r&&r.withPosition&&(i={x:o.clientX,y:o.clientY});var s=[];this.state.isDraggingOverDocument?c!==this.state.hoveredDropZone?(-1!==this.state.hoveredDropZone&&s.push(this.dropZones[this.state.hoveredDropZone]),r&&s.push(r)):r&&c===this.state.hoveredDropZone&&!Object(d.isEqual)(i,this.state.position)&&s.push(r):s=this.dropZones,s.forEach((function(e){var o=n.dropZones.indexOf(e)===c;e.setState({isDraggingOverDocument:j(t,e),isDraggingOverElement:o,position:o?i:null,type:o?t:null})}));var l={isDraggingOverDocument:!0,hoveredDropZone:c,position:i};m()(l,this.state)||this.setState(l)}},{key:"onDragOver",value:function(e){this.toggleDraggingOverDocument(e,O(e)),e.preventDefault()}},{key:"onDrop",value:function(e){e.dataTransfer&&e.dataTransfer.files.length;var t=this.state,n=t.position,a=t.hoveredDropZone,r=O(e),c=this.dropZones[a];if(this.resetDragState(),c)switch(r){case"file":c.onFilesDrop(Object(o.a)(e.dataTransfer.files),n);break;case"html":c.onHTMLDrop(e.dataTransfer.getData("text/html"),n);break;case"default":c.onDrop(e,n)}e.stopPropagation(),e.preventDefault()}},{key:"render",value:function(){return Object(u.createElement)("div",{ref:this.ref,onDrop:this.onDrop,className:"components-drop-zone__provider"},Object(u.createElement)(h,{value:this.dropZoneCallbacks},this.props.children))}}]),n}(u.Component);t.c=g},663:function(e,t,n){"use strict";var o=n(7),a=n(11),r=n(0),c=n(68);t.a=function(e){var t=e.accept,n=e.children,i=e.multiple,s=void 0!==i&&i,l=e.onChange,u=e.render,d=Object(a.a)(e,["accept","children","multiple","onChange","render"]),p=Object(r.useRef)(),m=function(){p.current.click()},b=u?u({openFileDialog:m}):Object(r.createElement)(c.a,Object(o.a)({onClick:m},d),n);return Object(r.createElement)("div",{className:"components-form-file-upload"},b,Object(r.createElement)("input",{type:"file",ref:p,multiple:s,style:{display:"none"},accept:t,onChange:l}))}},675:function(e,t,n){"use strict";var o=n(6),a=n(7),r=n(24),c=n(0),i=n(4),s=n.n(i),l=n(3),u=n(382),d=n(78),p=Object(c.createElement)(d.c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(c.createElement)(d.b,{d:"M18.5 15v3.5H13V6.7l4.5 4.1 1-1.1-6.2-5.8-5.8 5.8 1 1.1 4-4v11.7h-6V15H4v5h16v-5z"})),m=n(646);function b(e){var t,n=e.className,a=e.label,i=e.onFilesDrop,d=e.onHTMLDrop,b=e.onDrop,f=Object(c.useRef)(),h=function(e){var t=e.element,n=e.onFilesDrop,o=e.onHTMLDrop,a=e.onDrop,i=e.isDisabled,s=e.withPosition,l=e.__unstableIsRelative,u=void 0!==l&&l,d=Object(c.useContext)(m.a),p=d.addDropZone,b=d.removeDropZone,f=Object(c.useState)({isDraggingOverDocument:!1,isDraggingOverElement:!1,type:null}),h=Object(r.a)(f,2),v=h[0],O=h[1];return Object(c.useEffect)((function(){if(!i){var e={element:t,onDrop:a,onFilesDrop:n,onHTMLDrop:o,setState:O,withPosition:s,isRelative:u};return p(e),function(){b(e)}}}),[i,a,n,o,s]),v}({element:f,onFilesDrop:i,onHTMLDrop:d,onDrop:b,__unstableIsRelative:!0}),v=h.isDraggingOverDocument,O=h.isDraggingOverElement,j=h.type;O&&(t=Object(c.createElement)("div",{className:"components-drop-zone__content"},Object(c.createElement)(u.a,{icon:p,className:"components-drop-zone__content-icon"}),Object(c.createElement)("span",{className:"components-drop-zone__content-text"},a||Object(l.__)("Drop files to upload"))));var g=s()("components-drop-zone",n,Object(o.a)({"is-active":(v||O)&&("file"===j&&i||"html"===j&&d||"default"===j&&b),"is-dragging-over-document":v,"is-dragging-over-element":O},"is-dragging-".concat(j),!!j));return Object(c.createElement)("div",{ref:f,className:g},t)}t.a=function(e){return Object(c.createElement)(m.b,null,(function(t){var n=t.addDropZone,o=t.removeDropZone;return Object(c.createElement)(b,Object(a.a)({addDropZone:n,removeDropZone:o},e))}))}}}]);
|
dist/chunks/7.js
CHANGED
@@ -273,7 +273,7 @@ var external_this_wp_i18n_ = __webpack_require__(3);
|
|
273 |
var library_close = __webpack_require__(257);
|
274 |
|
275 |
// EXTERNAL MODULE: ./node_modules/@wordpress/components/build-module/button/index.js
|
276 |
-
var build_module_button = __webpack_require__(
|
277 |
|
278 |
// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/modal/header.js
|
279 |
|
273 |
var library_close = __webpack_require__(257);
|
274 |
|
275 |
// EXTERNAL MODULE: ./node_modules/@wordpress/components/build-module/button/index.js
|
276 |
+
var build_module_button = __webpack_require__(68);
|
277 |
|
278 |
// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/modal/header.js
|
279 |
|
dist/chunks/7.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
(window.__wcAdmin_webpackJsonp=window.__wcAdmin_webpackJsonp||[]).push([[7],{248:function(e,t,n){"use strict";var o=Object.assign||function(e){for(var t,n=1;n<arguments.length;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n=e.size,r=void 0===n?24:n,i=e.onClick,c=(e.icon,e.className),l=function(e,t){var n={};for(var o in e)0<=t.indexOf(o)||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}(e,["size","onClick","icon","className"]),s=["gridicon","gridicons-notice-outline",c,(t=r,!(0!=t%18)&&"needs-offset"),!1,!1].filter(Boolean).join(" ");return a.default.createElement("svg",o({className:s,height:r,width:r,onClick:i},l,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),a.default.createElement("g",null,a.default.createElement("path",{d:"M12 4c4.41 0 8 3.59 8 8s-3.59 8-8 8-8-3.59-8-8 3.59-8 8-8m0-2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm1 13h-2v2h2v-2zm-2-2h2l.5-6h-3l.5 6z"})))};var r,i=n(8),a=(r=i)&&r.__esModule?r:{default:r};e.exports=t.default},353:function(e,t,n){"use strict";var o=n(7),r=n(0),i=n(77),a=n(147);t.a=Object(i.a)((function(e){return function(t){var n=Object(a.a)(e);return Object(r.createElement)(e,Object(o.a)({},t,{instanceId:n}))}}),"withInstanceId")},546:function(e,t,n){"use strict";var o=n(7),r=n(11),i=n(16),a=n(17),c=n(18),l=n(21),s=n(9),u=n(0),p=n(353),f=n(47),d=n(12),h=n(4),b=n.n(h),m=n(57),y=n(181),v=n(111),O=n(110),g=n(113),C=n(109);function j(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=Object(s.a)(e);if(t){var r=Object(s.a)(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return Object(l.a)(this,n)}}var w=function(e){Object(c.a)(n,e);var t=j(n);function n(){var e;return Object(i.a)(this,n),(e=t.apply(this,arguments)).containerRef=Object(u.createRef)(),e.handleKeyDown=e.handleKeyDown.bind(Object(d.a)(e)),e.handleFocusOutside=e.handleFocusOutside.bind(Object(d.a)(e)),e}return Object(a.a)(n,[{key:"componentDidMount",value:function(){this.props.focusOnMount&&this.containerRef.current.focus()}},{key:"handleFocusOutside",value:function(e){this.props.shouldCloseOnClickOutside&&this.onRequestClose(e)}},{key:"handleKeyDown",value:function(e){e.keyCode===m.b&&this.handleEscapeKeyDown(e)}},{key:"handleEscapeKeyDown",value:function(e){this.props.shouldCloseOnEsc&&(e.stopPropagation(),this.onRequestClose(e))}},{key:"onRequestClose",value:function(e){var t=this.props.onRequestClose;t&&t(e)}},{key:"render",value:function(){var e=this.props,t=e.overlayClassName,n=e.contentLabel,o=e.aria,r=o.describedby,i=o.labelledby,a=e.children,c=e.className,l=e.role,s=e.style;return Object(u.createElement)(v.a,{className:b()("components-modal__screen-overlay",t),onKeyDown:this.handleKeyDown},Object(u.createElement)("div",{className:b()("components-modal__frame",c),style:s,ref:this.containerRef,role:l,"aria-label":n,"aria-labelledby":n?null:i,"aria-describedby":r,tabIndex:"-1"},a))}}]),n}(u.Component),k=Object(y.a)([g.a,C.a,O.a])(w),_=n(3),D=n(257),E=n(67),R=function(e){var t=e.icon,n=e.title,o=e.onClose,r=e.closeLabel,i=e.headingId,a=e.isDismissible,c=r||Object(_.__)("Close dialog");return Object(u.createElement)("div",{className:"components-modal__header"},Object(u.createElement)("div",{className:"components-modal__header-heading-container"},t&&Object(u.createElement)("span",{className:"components-modal__icon-container","aria-hidden":!0},t),n&&Object(u.createElement)("h1",{id:i,className:"components-modal__header-heading"},n)),a&&Object(u.createElement)(E.a,{onClick:o,icon:D.a,label:c}))},T=n(2),P=new Set(["alert","status","log","marquee","timer"]),M=[],x=!1;function S(e){if(!x){var t=document.body.children;Object(T.forEach)(t,(function(t){t!==e&&function(e){var t=e.getAttribute("role");return!("SCRIPT"===e.tagName||e.hasAttribute("aria-hidden")||e.hasAttribute("aria-live")||P.has(t))}(t)&&(t.setAttribute("aria-hidden","true"),M.push(t))})),x=!0}}function N(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=Object(s.a)(e);if(t){var r=Object(s.a)(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return Object(l.a)(this,n)}}var L,V=0,z=function(e){Object(c.a)(n,e);var t=N(n);function n(e){var o;return Object(i.a)(this,n),(o=t.call(this,e)).prepareDOM(),o}return Object(a.a)(n,[{key:"componentDidMount",value:function(){1===++V&&this.openFirstModal()}},{key:"componentWillUnmount",value:function(){0===--V&&this.closeLastModal(),this.cleanDOM()}},{key:"prepareDOM",value:function(){L||(L=document.createElement("div"),document.body.appendChild(L)),this.node=document.createElement("div"),L.appendChild(this.node)}},{key:"cleanDOM",value:function(){L.removeChild(this.node)}},{key:"openFirstModal",value:function(){S(L),document.body.classList.add(this.props.bodyOpenClassName)}},{key:"closeLastModal",value:function(){document.body.classList.remove(this.props.bodyOpenClassName),x&&(Object(T.forEach)(M,(function(e){e.removeAttribute("aria-hidden")})),M=[],x=!1)}},{key:"render",value:function(){var e=this.props,t=e.onRequestClose,n=e.title,i=e.icon,a=e.closeButtonLabel,c=e.children,l=e.aria,s=e.instanceId,p=e.isDismissible,d=e.isDismissable,h=Object(r.a)(e,["onRequestClose","title","icon","closeButtonLabel","children","aria","instanceId","isDismissible","isDismissable"]),b=l.labelledby||"components-modal-header-".concat(s);return d&&Object(f.a)("isDismissable prop of the Modal component",{alternative:"isDismissible prop (renamed) of the Modal component"}),Object(u.createPortal)(Object(u.createElement)(k,Object(o.a)({onRequestClose:t,aria:{labelledby:n?b:null,describedby:l.describedby}},h),Object(u.createElement)("div",{className:"components-modal__content",role:"document"},Object(u.createElement)(R,{closeLabel:a,headingId:b,icon:i,isDismissible:p||d,onClose:t,title:n}),c)),this.node)}}]),n}(u.Component);z.defaultProps={bodyOpenClassName:"modal-open",role:"dialog",title:null,focusOnMount:!0,shouldCloseOnEsc:!0,shouldCloseOnClickOutside:!0,isDismissible:!0,aria:{labelledby:null,describedby:null}};t.a=Object(p.a)(z)},608:function(e,t,n){var o;o=function(e,t){return function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=4)}([function(e,t,n){e.exports=n(5)()},function(t,n){t.exports=e},function(e,n){e.exports=t},function(e,t){e.exports=function(e,t,n){var o=e.direction,r=e.value;switch(o){case"top":return n.top+r<t.top&&n.bottom>t.bottom&&n.left<t.left&&n.right>t.right;case"left":return n.left+r<t.left&&n.bottom>t.bottom&&n.top<t.top&&n.right>t.right;case"bottom":return n.bottom-r>t.bottom&&n.left<t.left&&n.right>t.right&&n.top<t.top;case"right":return n.right-r>t.right&&n.left<t.left&&n.top<t.top&&n.bottom>t.bottom}}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return y}));var o=n(1),r=n.n(o),i=n(2),a=n.n(i),c=n(0),l=n.n(c),s=n(3),u=n.n(s);function p(e){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function h(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function b(e,t){return(b=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var y=function(e){function t(e){var n,o,r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),o=this,r=d(t).call(this,e),n=!r||"object"!==p(r)&&"function"!=typeof r?h(o):r,m(h(n),"getContainer",(function(){return n.props.containment||window})),m(h(n),"addEventListener",(function(e,t,o,r){var i;n.debounceCheck||(n.debounceCheck={});var a=function(){i=null,n.check()},c={target:e,fn:r>-1?function(){i||(i=setTimeout(a,r||0))}:function(){clearTimeout(i),i=setTimeout(a,o||0)},getLastTimeout:function(){return i}};e.addEventListener(t,c.fn),n.debounceCheck[t]=c})),m(h(n),"startWatching",(function(){n.debounceCheck||n.interval||(n.props.intervalCheck&&(n.interval=setInterval(n.check,n.props.intervalDelay)),n.props.scrollCheck&&n.addEventListener(n.getContainer(),"scroll",n.props.scrollDelay,n.props.scrollThrottle),n.props.resizeCheck&&n.addEventListener(window,"resize",n.props.resizeDelay,n.props.resizeThrottle),!n.props.delayedCall&&n.check())})),m(h(n),"stopWatching",(function(){if(n.debounceCheck)for(var e in n.debounceCheck)if(n.debounceCheck.hasOwnProperty(e)){var t=n.debounceCheck[e];clearTimeout(t.getLastTimeout()),t.target.removeEventListener(e,t.fn),n.debounceCheck[e]=null}n.debounceCheck=null,n.interval&&(n.interval=clearInterval(n.interval))})),m(h(n),"check",(function(){var e,t,o=n.node;if(!o)return n.state;if(e=function(e){return void 0===e.width&&(e.width=e.right-e.left),void 0===e.height&&(e.height=e.bottom-e.top),e}(n.roundRectDown(o.getBoundingClientRect())),n.props.containment){var r=n.props.containment.getBoundingClientRect();t={top:r.top,left:r.left,bottom:r.bottom,right:r.right}}else t={top:0,left:0,bottom:window.innerHeight||document.documentElement.clientHeight,right:window.innerWidth||document.documentElement.clientWidth};var i=n.props.offset||{};"object"===p(i)&&(t.top+=i.top||0,t.left+=i.left||0,t.bottom-=i.bottom||0,t.right-=i.right||0);var a={top:e.top>=t.top,left:e.left>=t.left,bottom:e.bottom<=t.bottom,right:e.right<=t.right},c=e.height>0&&e.width>0,l=c&&a.top&&a.left&&a.bottom&&a.right;if(c&&n.props.partialVisibility){var s=e.top<=t.bottom&&e.bottom>=t.top&&e.left<=t.right&&e.right>=t.left;"string"==typeof n.props.partialVisibility&&(s=a[n.props.partialVisibility]),l=n.props.minTopValue?s&&e.top<=t.bottom-n.props.minTopValue:s}"string"==typeof i.direction&&"number"==typeof i.value&&(console.warn("[notice] offset.direction and offset.value have been deprecated. They still work for now, but will be removed in next major version. Please upgrade to the new syntax: { %s: %d }",i.direction,i.value),l=u()(i,e,t));var f=n.state;return n.state.isVisible!==l&&(f={isVisible:l,visibilityRect:a},n.setState(f),n.props.onChange&&n.props.onChange(l)),f})),n.state={isVisible:null,visibilityRect:{}},n}var n,o,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&b(e,t)}(t,e),n=t,(o=[{key:"componentDidMount",value:function(){this.node=a.a.findDOMNode(this),this.props.active&&this.startWatching()}},{key:"componentWillUnmount",value:function(){this.stopWatching()}},{key:"componentDidUpdate",value:function(e){this.node=a.a.findDOMNode(this),this.props.active&&!e.active?(this.setState({isVisible:null,visibilityRect:{}}),this.startWatching()):this.props.active||this.stopWatching()}},{key:"roundRectDown",value:function(e){return{top:Math.floor(e.top),left:Math.floor(e.left),bottom:Math.floor(e.bottom),right:Math.floor(e.right)}}},{key:"render",value:function(){return this.props.children instanceof Function?this.props.children({isVisible:this.state.isVisible,visibilityRect:this.state.visibilityRect}):r.a.Children.only(this.props.children)}}])&&f(n.prototype,o),i&&f(n,i),t}(r.a.Component);m(y,"defaultProps",{active:!0,partialVisibility:!1,minTopValue:0,scrollCheck:!1,scrollDelay:250,scrollThrottle:-1,resizeCheck:!1,resizeDelay:250,resizeThrottle:-1,intervalCheck:!0,intervalDelay:100,delayedCall:!1,offset:{},containment:null,children:r.a.createElement("span",null)}),m(y,"propTypes",{onChange:l.a.func,active:l.a.bool,partialVisibility:l.a.oneOfType([l.a.bool,l.a.oneOf(["top","right","bottom","left"])]),delayedCall:l.a.bool,offset:l.a.oneOfType([l.a.shape({top:l.a.number,left:l.a.number,bottom:l.a.number,right:l.a.number}),l.a.shape({direction:l.a.oneOf(["top","right","bottom","left"]),value:l.a.number})]),scrollCheck:l.a.bool,scrollDelay:l.a.number,scrollThrottle:l.a.number,resizeCheck:l.a.bool,resizeDelay:l.a.number,resizeThrottle:l.a.number,intervalCheck:l.a.bool,intervalDelay:l.a.number,containment:"undefined"!=typeof window?l.a.instanceOf(window.Element):l.a.any,children:l.a.oneOfType([l.a.element,l.a.func]),minTopValue:l.a.number})},function(e,t,n){"use strict";var o=n(6);function r(){}function i(){}i.resetWarningCache=r,e.exports=function(){function e(e,t,n,r,i,a){if(a!==o){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:r};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}])},e.exports=o(n(8),n(90))}}]);
|
1 |
+
(window.__wcAdmin_webpackJsonp=window.__wcAdmin_webpackJsonp||[]).push([[7],{248:function(e,t,n){"use strict";var o=Object.assign||function(e){for(var t,n=1;n<arguments.length;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n=e.size,r=void 0===n?24:n,i=e.onClick,c=(e.icon,e.className),l=function(e,t){var n={};for(var o in e)0<=t.indexOf(o)||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}(e,["size","onClick","icon","className"]),s=["gridicon","gridicons-notice-outline",c,(t=r,!(0!=t%18)&&"needs-offset"),!1,!1].filter(Boolean).join(" ");return a.default.createElement("svg",o({className:s,height:r,width:r,onClick:i},l,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),a.default.createElement("g",null,a.default.createElement("path",{d:"M12 4c4.41 0 8 3.59 8 8s-3.59 8-8 8-8-3.59-8-8 3.59-8 8-8m0-2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm1 13h-2v2h2v-2zm-2-2h2l.5-6h-3l.5 6z"})))};var r,i=n(8),a=(r=i)&&r.__esModule?r:{default:r};e.exports=t.default},353:function(e,t,n){"use strict";var o=n(7),r=n(0),i=n(77),a=n(147);t.a=Object(i.a)((function(e){return function(t){var n=Object(a.a)(e);return Object(r.createElement)(e,Object(o.a)({},t,{instanceId:n}))}}),"withInstanceId")},546:function(e,t,n){"use strict";var o=n(7),r=n(11),i=n(16),a=n(17),c=n(18),l=n(21),s=n(9),u=n(0),p=n(353),f=n(47),d=n(12),h=n(4),b=n.n(h),m=n(57),y=n(181),v=n(111),O=n(110),g=n(113),C=n(109);function j(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=Object(s.a)(e);if(t){var r=Object(s.a)(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return Object(l.a)(this,n)}}var w=function(e){Object(c.a)(n,e);var t=j(n);function n(){var e;return Object(i.a)(this,n),(e=t.apply(this,arguments)).containerRef=Object(u.createRef)(),e.handleKeyDown=e.handleKeyDown.bind(Object(d.a)(e)),e.handleFocusOutside=e.handleFocusOutside.bind(Object(d.a)(e)),e}return Object(a.a)(n,[{key:"componentDidMount",value:function(){this.props.focusOnMount&&this.containerRef.current.focus()}},{key:"handleFocusOutside",value:function(e){this.props.shouldCloseOnClickOutside&&this.onRequestClose(e)}},{key:"handleKeyDown",value:function(e){e.keyCode===m.b&&this.handleEscapeKeyDown(e)}},{key:"handleEscapeKeyDown",value:function(e){this.props.shouldCloseOnEsc&&(e.stopPropagation(),this.onRequestClose(e))}},{key:"onRequestClose",value:function(e){var t=this.props.onRequestClose;t&&t(e)}},{key:"render",value:function(){var e=this.props,t=e.overlayClassName,n=e.contentLabel,o=e.aria,r=o.describedby,i=o.labelledby,a=e.children,c=e.className,l=e.role,s=e.style;return Object(u.createElement)(v.a,{className:b()("components-modal__screen-overlay",t),onKeyDown:this.handleKeyDown},Object(u.createElement)("div",{className:b()("components-modal__frame",c),style:s,ref:this.containerRef,role:l,"aria-label":n,"aria-labelledby":n?null:i,"aria-describedby":r,tabIndex:"-1"},a))}}]),n}(u.Component),k=Object(y.a)([g.a,C.a,O.a])(w),_=n(3),D=n(257),E=n(68),R=function(e){var t=e.icon,n=e.title,o=e.onClose,r=e.closeLabel,i=e.headingId,a=e.isDismissible,c=r||Object(_.__)("Close dialog");return Object(u.createElement)("div",{className:"components-modal__header"},Object(u.createElement)("div",{className:"components-modal__header-heading-container"},t&&Object(u.createElement)("span",{className:"components-modal__icon-container","aria-hidden":!0},t),n&&Object(u.createElement)("h1",{id:i,className:"components-modal__header-heading"},n)),a&&Object(u.createElement)(E.a,{onClick:o,icon:D.a,label:c}))},T=n(2),P=new Set(["alert","status","log","marquee","timer"]),M=[],x=!1;function S(e){if(!x){var t=document.body.children;Object(T.forEach)(t,(function(t){t!==e&&function(e){var t=e.getAttribute("role");return!("SCRIPT"===e.tagName||e.hasAttribute("aria-hidden")||e.hasAttribute("aria-live")||P.has(t))}(t)&&(t.setAttribute("aria-hidden","true"),M.push(t))})),x=!0}}function N(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=Object(s.a)(e);if(t){var r=Object(s.a)(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return Object(l.a)(this,n)}}var L,V=0,z=function(e){Object(c.a)(n,e);var t=N(n);function n(e){var o;return Object(i.a)(this,n),(o=t.call(this,e)).prepareDOM(),o}return Object(a.a)(n,[{key:"componentDidMount",value:function(){1===++V&&this.openFirstModal()}},{key:"componentWillUnmount",value:function(){0===--V&&this.closeLastModal(),this.cleanDOM()}},{key:"prepareDOM",value:function(){L||(L=document.createElement("div"),document.body.appendChild(L)),this.node=document.createElement("div"),L.appendChild(this.node)}},{key:"cleanDOM",value:function(){L.removeChild(this.node)}},{key:"openFirstModal",value:function(){S(L),document.body.classList.add(this.props.bodyOpenClassName)}},{key:"closeLastModal",value:function(){document.body.classList.remove(this.props.bodyOpenClassName),x&&(Object(T.forEach)(M,(function(e){e.removeAttribute("aria-hidden")})),M=[],x=!1)}},{key:"render",value:function(){var e=this.props,t=e.onRequestClose,n=e.title,i=e.icon,a=e.closeButtonLabel,c=e.children,l=e.aria,s=e.instanceId,p=e.isDismissible,d=e.isDismissable,h=Object(r.a)(e,["onRequestClose","title","icon","closeButtonLabel","children","aria","instanceId","isDismissible","isDismissable"]),b=l.labelledby||"components-modal-header-".concat(s);return d&&Object(f.a)("isDismissable prop of the Modal component",{alternative:"isDismissible prop (renamed) of the Modal component"}),Object(u.createPortal)(Object(u.createElement)(k,Object(o.a)({onRequestClose:t,aria:{labelledby:n?b:null,describedby:l.describedby}},h),Object(u.createElement)("div",{className:"components-modal__content",role:"document"},Object(u.createElement)(R,{closeLabel:a,headingId:b,icon:i,isDismissible:p||d,onClose:t,title:n}),c)),this.node)}}]),n}(u.Component);z.defaultProps={bodyOpenClassName:"modal-open",role:"dialog",title:null,focusOnMount:!0,shouldCloseOnEsc:!0,shouldCloseOnClickOutside:!0,isDismissible:!0,aria:{labelledby:null,describedby:null}};t.a=Object(p.a)(z)},608:function(e,t,n){var o;o=function(e,t){return function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=4)}([function(e,t,n){e.exports=n(5)()},function(t,n){t.exports=e},function(e,n){e.exports=t},function(e,t){e.exports=function(e,t,n){var o=e.direction,r=e.value;switch(o){case"top":return n.top+r<t.top&&n.bottom>t.bottom&&n.left<t.left&&n.right>t.right;case"left":return n.left+r<t.left&&n.bottom>t.bottom&&n.top<t.top&&n.right>t.right;case"bottom":return n.bottom-r>t.bottom&&n.left<t.left&&n.right>t.right&&n.top<t.top;case"right":return n.right-r>t.right&&n.left<t.left&&n.top<t.top&&n.bottom>t.bottom}}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return y}));var o=n(1),r=n.n(o),i=n(2),a=n.n(i),c=n(0),l=n.n(c),s=n(3),u=n.n(s);function p(e){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function h(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function b(e,t){return(b=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var y=function(e){function t(e){var n,o,r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),o=this,r=d(t).call(this,e),n=!r||"object"!==p(r)&&"function"!=typeof r?h(o):r,m(h(n),"getContainer",(function(){return n.props.containment||window})),m(h(n),"addEventListener",(function(e,t,o,r){var i;n.debounceCheck||(n.debounceCheck={});var a=function(){i=null,n.check()},c={target:e,fn:r>-1?function(){i||(i=setTimeout(a,r||0))}:function(){clearTimeout(i),i=setTimeout(a,o||0)},getLastTimeout:function(){return i}};e.addEventListener(t,c.fn),n.debounceCheck[t]=c})),m(h(n),"startWatching",(function(){n.debounceCheck||n.interval||(n.props.intervalCheck&&(n.interval=setInterval(n.check,n.props.intervalDelay)),n.props.scrollCheck&&n.addEventListener(n.getContainer(),"scroll",n.props.scrollDelay,n.props.scrollThrottle),n.props.resizeCheck&&n.addEventListener(window,"resize",n.props.resizeDelay,n.props.resizeThrottle),!n.props.delayedCall&&n.check())})),m(h(n),"stopWatching",(function(){if(n.debounceCheck)for(var e in n.debounceCheck)if(n.debounceCheck.hasOwnProperty(e)){var t=n.debounceCheck[e];clearTimeout(t.getLastTimeout()),t.target.removeEventListener(e,t.fn),n.debounceCheck[e]=null}n.debounceCheck=null,n.interval&&(n.interval=clearInterval(n.interval))})),m(h(n),"check",(function(){var e,t,o=n.node;if(!o)return n.state;if(e=function(e){return void 0===e.width&&(e.width=e.right-e.left),void 0===e.height&&(e.height=e.bottom-e.top),e}(n.roundRectDown(o.getBoundingClientRect())),n.props.containment){var r=n.props.containment.getBoundingClientRect();t={top:r.top,left:r.left,bottom:r.bottom,right:r.right}}else t={top:0,left:0,bottom:window.innerHeight||document.documentElement.clientHeight,right:window.innerWidth||document.documentElement.clientWidth};var i=n.props.offset||{};"object"===p(i)&&(t.top+=i.top||0,t.left+=i.left||0,t.bottom-=i.bottom||0,t.right-=i.right||0);var a={top:e.top>=t.top,left:e.left>=t.left,bottom:e.bottom<=t.bottom,right:e.right<=t.right},c=e.height>0&&e.width>0,l=c&&a.top&&a.left&&a.bottom&&a.right;if(c&&n.props.partialVisibility){var s=e.top<=t.bottom&&e.bottom>=t.top&&e.left<=t.right&&e.right>=t.left;"string"==typeof n.props.partialVisibility&&(s=a[n.props.partialVisibility]),l=n.props.minTopValue?s&&e.top<=t.bottom-n.props.minTopValue:s}"string"==typeof i.direction&&"number"==typeof i.value&&(console.warn("[notice] offset.direction and offset.value have been deprecated. They still work for now, but will be removed in next major version. Please upgrade to the new syntax: { %s: %d }",i.direction,i.value),l=u()(i,e,t));var f=n.state;return n.state.isVisible!==l&&(f={isVisible:l,visibilityRect:a},n.setState(f),n.props.onChange&&n.props.onChange(l)),f})),n.state={isVisible:null,visibilityRect:{}},n}var n,o,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&b(e,t)}(t,e),n=t,(o=[{key:"componentDidMount",value:function(){this.node=a.a.findDOMNode(this),this.props.active&&this.startWatching()}},{key:"componentWillUnmount",value:function(){this.stopWatching()}},{key:"componentDidUpdate",value:function(e){this.node=a.a.findDOMNode(this),this.props.active&&!e.active?(this.setState({isVisible:null,visibilityRect:{}}),this.startWatching()):this.props.active||this.stopWatching()}},{key:"roundRectDown",value:function(e){return{top:Math.floor(e.top),left:Math.floor(e.left),bottom:Math.floor(e.bottom),right:Math.floor(e.right)}}},{key:"render",value:function(){return this.props.children instanceof Function?this.props.children({isVisible:this.state.isVisible,visibilityRect:this.state.visibilityRect}):r.a.Children.only(this.props.children)}}])&&f(n.prototype,o),i&&f(n,i),t}(r.a.Component);m(y,"defaultProps",{active:!0,partialVisibility:!1,minTopValue:0,scrollCheck:!1,scrollDelay:250,scrollThrottle:-1,resizeCheck:!1,resizeDelay:250,resizeThrottle:-1,intervalCheck:!0,intervalDelay:100,delayedCall:!1,offset:{},containment:null,children:r.a.createElement("span",null)}),m(y,"propTypes",{onChange:l.a.func,active:l.a.bool,partialVisibility:l.a.oneOfType([l.a.bool,l.a.oneOf(["top","right","bottom","left"])]),delayedCall:l.a.bool,offset:l.a.oneOfType([l.a.shape({top:l.a.number,left:l.a.number,bottom:l.a.number,right:l.a.number}),l.a.shape({direction:l.a.oneOf(["top","right","bottom","left"]),value:l.a.number})]),scrollCheck:l.a.bool,scrollDelay:l.a.number,scrollThrottle:l.a.number,resizeCheck:l.a.bool,resizeDelay:l.a.number,resizeThrottle:l.a.number,intervalCheck:l.a.bool,intervalDelay:l.a.number,containment:"undefined"!=typeof window?l.a.instanceOf(window.Element):l.a.any,children:l.a.oneOfType([l.a.element,l.a.func]),minTopValue:l.a.number})},function(e,t,n){"use strict";var o=n(6);function r(){}function i(){}i.resetWarningCache=r,e.exports=function(){function e(e,t,n,r,i,a){if(a!==o){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:r};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}])},e.exports=o(n(8),n(90))}}]);
|
dist/chunks/9.js
CHANGED
@@ -56,7 +56,7 @@ function createNoticesFromResponse(response) {
|
|
56 |
/* harmony import */ var interpolate_components__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(43);
|
57 |
/* harmony import */ var interpolate_components__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(interpolate_components__WEBPACK_IMPORTED_MODULE_11__);
|
58 |
/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(546);
|
59 |
-
/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(
|
60 |
/* harmony import */ var _woocommerce_components__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(74);
|
61 |
/* harmony import */ var _woocommerce_components__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(_woocommerce_components__WEBPACK_IMPORTED_MODULE_14__);
|
62 |
/* harmony import */ var _woocommerce_data__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(34);
|
@@ -373,7 +373,7 @@ var defineProperty = __webpack_require__(5);
|
|
373 |
var defineProperty_default = /*#__PURE__*/__webpack_require__.n(defineProperty);
|
374 |
|
375 |
// EXTERNAL MODULE: ./node_modules/@wordpress/components/build-module/button/index.js
|
376 |
-
var build_module_button = __webpack_require__(
|
377 |
|
378 |
// EXTERNAL MODULE: ./node_modules/@wordpress/compose/build-module/higher-order/compose.js
|
379 |
var compose = __webpack_require__(181);
|
56 |
/* harmony import */ var interpolate_components__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(43);
|
57 |
/* harmony import */ var interpolate_components__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(interpolate_components__WEBPACK_IMPORTED_MODULE_11__);
|
58 |
/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(546);
|
59 |
+
/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(68);
|
60 |
/* harmony import */ var _woocommerce_components__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(74);
|
61 |
/* harmony import */ var _woocommerce_components__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(_woocommerce_components__WEBPACK_IMPORTED_MODULE_14__);
|
62 |
/* harmony import */ var _woocommerce_data__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(34);
|
373 |
var defineProperty_default = /*#__PURE__*/__webpack_require__.n(defineProperty);
|
374 |
|
375 |
// EXTERNAL MODULE: ./node_modules/@wordpress/components/build-module/button/index.js
|
376 |
+
var build_module_button = __webpack_require__(68);
|
377 |
|
378 |
// EXTERNAL MODULE: ./node_modules/@wordpress/compose/build-module/higher-order/compose.js
|
379 |
var compose = __webpack_require__(181);
|
dist/chunks/9.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
(window.__wcAdmin_webpackJsonp=window.__wcAdmin_webpackJsonp||[]).push([[9],{585:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var c=n(25);function r(e){var t=Object(c.dispatch)("core/notices").createNotice;e.error_data&&e.errors&&Object.keys(e.errors).length?Object.keys(e.errors).forEach((function(n){t("error",e.errors[n].join(" "))})):e.message&&t(e.code?"error":"success",e.message)}},587:function(e,t,n){"use strict";var c=n(14),r=n.n(c),o=n(75),a=n.n(o),i=n(20),s=n.n(i),l=n(15),u=n.n(l),m=n(22),p=n.n(m),d=n(23),_=n.n(d),b=n(10),h=n.n(b),y=n(0),f=n(3),O=n(181),g=n(25),w=n(43),k=n.n(w),j=n(546),v=n(67),C=n(74),E=n(34);function S(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,c=h()(e);if(t){var r=h()(this).constructor;n=Reflect.construct(c,arguments,r)}else n=c.apply(this,arguments);return _()(this,n)}}var P=function(e){p()(c,e);var t,n=S(c);function c(e){var t;return s()(this,c),(t=n.call(this,e)).state={isLoadingScripts:!1,isRequestStarted:!1},t}return u()(c,[{key:"componentDidUpdate",value:(t=a()(r.a.mark((function e(t,n){var c,o,a,i,s,l,u,m,p,d;return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(c=this.props,o=c.hasErrors,a=c.isRequesting,i=c.onClose,s=c.onContinue,l=c.createNotice,u=this.state,m=u.isLoadingScripts,u.isRequestStarted){e.next=4;break}return e.abrupt("return");case 4:p=!a&&!m&&(t.isRequesting||n.isLoadingScripts)&&!o,d=!a&&t.isRequesting&&o,p&&(i(),s()),d&&(l("error",Object(f.__)("There was a problem updating your preferences.","woocommerce-admin")),i());case 8:case"end":return e.stop()}}),e,this)}))),function(e,n){return t.apply(this,arguments)})},{key:"updateTracking",value:function(e){var t=this,n=e.allowTracking,c=this.props.updateOptions;n&&"function"==typeof window.wcTracks.enable?(this.setState({isLoadingScripts:!0}),window.wcTracks.enable((function(){t._isMounted&&t.setState({isLoadingScripts:!1})}))):n||(window.wcTracks.isEnabled=!1);var r=n?"yes":"no";this.setState({isRequestStarted:!0}),c({woocommerce_allow_tracking:r})}},{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1}},{key:"render",value:function(){var e=this;if(this.props.allowTracking){var t=this.props,n=t.onClose,c=t.onContinue;return n(),c(),null}var r=this.props,o=r.isRequesting,a=r.title,i=void 0===a?Object(f.__)("Build a better WooCommerce","woocommerce-admin"):a,s=r.message,l=void 0===s?k()({mixedString:Object(f.__)("Get improved features and faster fixes by sharing non-sensitive data via {{link}}usage tracking{{/link}} that shows us how WooCommerce is used. No personal data is tracked or stored.","woocommerce-admin"),components:{link:Object(y.createElement)(C.Link,{href:"https://woocommerce.com/usage-tracking",target:"_blank",type:"external"})}}):s,u=r.dismissActionText,m=void 0===u?Object(f.__)("No thanks","woocommerce-admin"):u,p=r.acceptActionText,d=void 0===p?Object(f.__)("Yes, count me in!","woocommerce-admin"):p,_=this.state.isRequestStarted&&o;return Object(y.createElement)(j.a,{title:i,isDismissible:this.props.isDismissible,onRequestClose:function(){return e.props.onClose()},className:"woocommerce-usage-modal"},Object(y.createElement)("div",{className:"woocommerce-usage-modal__wrapper"},Object(y.createElement)("div",{className:"woocommerce-usage-modal__message"},l),Object(y.createElement)("div",{className:"woocommerce-usage-modal__actions"},Object(y.createElement)(v.a,{isSecondary:!0,isBusy:_,onClick:function(){return e.updateTracking({allowTracking:!1})}},m),Object(y.createElement)(v.a,{isPrimary:!0,isBusy:_,onClick:function(){return e.updateTracking({allowTracking:!0})}},d))))}}]),c}(y.Component);t.a=Object(O.a)(Object(g.withSelect)((function(e){var t=e(E.OPTIONS_STORE_NAME),n=t.getOption,c=t.getOptionsUpdatingError,r=t.isOptionsUpdating;return{allowTracking:"yes"===n("woocommerce_allow_tracking"),isRequesting:Boolean(r()),hasErrors:Boolean(c())}})),Object(g.withDispatch)((function(e){return{createNotice:e("core/notices").createNotice,updateOptions:e(E.OPTIONS_STORE_NAME).updateOptions}})))(P)},604:function(e,t,n){"use strict";n.d(t,"b",(function(){return Ee})),n.d(t,"a",(function(){return Se}));var c=n(0),r=n(3),o=n(44),a=n.n(o),i=n(2),s=n(43),l=n.n(s),u=n(35),m=n(74),p=n(34),d=n(36),_=n.n(d),b=n(14),h=n.n(b),y=n(75),f=n.n(y),O=n(20),g=n.n(O),w=n(15),k=n.n(w),j=n(13),v=n.n(j),C=n(22),E=n.n(C),S=n(23),P=n.n(S),x=n(10),R=n.n(x),N=n(5),A=n.n(N),T=n(67),L=n(181),M=n(25);function q(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,c=R()(e);if(t){var r=R()(this).constructor;n=Reflect.construct(c,arguments,r)}else n=c.apply(this,arguments);return P()(this,n)}}var D=function(e){E()(n,e);var t=q(n);function n(){var e;g()(this,n);for(var c=arguments.length,o=new Array(c),a=0;a<c;a++)o[a]=arguments[a];return e=t.call.apply(t,[this].concat(o)),A()(v()(e),"getInitialConfigValues",(function(){return{account_name:"",account_number:"",bank_name:"",sort_code:"",iban:"",bic:""}})),A()(v()(e),"validate",(function(e){var t={};return e.account_number||e.iban||(t.account_number=t.iban=Object(r.__)("Please enter an account number or IBAN","woocommerce-admin")),t})),A()(v()(e),"updateSettings",function(){var t=f()(h.a.mark((function t(n){var c,o,a,i;return h.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return c=e.props,o=c.updateOptions,a=c.createNotice,i=c.markConfigured,t.next=3,o({woocommerce_bacs_settings:{enabled:"yes"},woocommerce_bacs_accounts:[n]});case 3:t.sent.success?(i("bacs"),a("success",Object(r.__)("Direct bank transfer details added successfully","woocommerce-admin"))):a("error",Object(r.__)("There was a problem saving your payment settings","woocommerce-admin"));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()),e}return k()(n,[{key:"render",value:function(){var e=this.props.isOptionsRequesting;return Object(c.createElement)(m.Form,{initialValues:this.getInitialConfigValues(),onSubmitCallback:this.updateSettings,validate:this.validate},(function(t){var n=t.getInputProps,o=t.handleSubmit;return Object(c.createElement)(c.Fragment,null,Object(c.createElement)(m.H,null,Object(r.__)("Add your bank details","woocommerce-admin")),Object(c.createElement)("p",null,Object(r.__)("These details are required to receive payments via bank transfer","woocommerce-admin")),Object(c.createElement)("div",{className:"woocommerce-task-payment-method__fields"},Object(c.createElement)(m.TextControl,_()({label:Object(r.__)("Account name","woocommerce-admin"),required:!0},n("account_name"))),Object(c.createElement)(m.TextControl,_()({label:Object(r.__)("Account number","woocommerce-admin"),required:!0},n("account_number"))),Object(c.createElement)(m.TextControl,_()({label:Object(r.__)("Bank name","woocommerce-admin"),required:!0},n("bank_name"))),Object(c.createElement)(m.TextControl,_()({label:Object(r.__)("Sort code","woocommerce-admin"),required:!0},n("sort_code"))),Object(c.createElement)(m.TextControl,_()({label:Object(r.__)("IBAN","woocommerce-admin"),required:!0},n("iban"))),Object(c.createElement)(m.TextControl,_()({label:Object(r.__)("BIC / Swift","woocommerce-admin"),required:!0},n("bic")))),Object(c.createElement)(T.a,{isPrimary:!0,isBusy:e,onClick:o},Object(r.__)("Save","woocommerce-admin")))}))}}]),n}(c.Component),I=Object(L.a)(Object(M.withSelect)((function(e){return{isOptionsRequesting:(0,e(p.OPTIONS_STORE_NAME).isOptionsUpdating)()}})),Object(M.withDispatch)((function(e){return{createNotice:e("core/notices").createNotice,updateOptions:e(p.OPTIONS_STORE_NAME).updateOptions}})))(D),U=function(){return Object(c.createElement)("svg",{width:"96",height:"32",viewBox:"0 0 96 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(c.createElement)("rect",{width:"32",height:"32",rx:"16",fill:"#8E9196"}),Object(c.createElement)("mask",{id:"bacs0","mask-type":"alpha",maskUnits:"userSpaceOnUse",x:"8",y:"8",width:"16",height:"16"},Object(c.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.875 12.25L16 8.5L23.125 12.25V13.75H8.875V12.25ZM16 10.195L19.9075 12.25H12.0925L16 10.195ZM10.75 15.25H12.25V20.5H10.75V15.25ZM15.25 20.5V15.25H16.75V20.5H15.25ZM23.125 23.5V22H8.875V23.5H23.125ZM19.75 15.25H21.25V20.5H19.75V15.25Z",fill:"white"})),Object(c.createElement)("g",{mask:"url(#bacs0)"},Object(c.createElement)("rect",{x:"7",y:"7",width:"18",height:"18",fill:"white"})),Object(c.createElement)("mask",{id:"bacs1","mask-type":"alpha",maskUnits:"userSpaceOnUse",x:"39",y:"10",width:"18",height:"12"},Object(c.createElement)("path",{d:"M39 17L53.17 17L49.59 20.59L51 22L57 16L51 10L49.59 11.41L53.17 15L39 15L39 17Z",fill:"white"})),Object(c.createElement)("g",{mask:"url(#bacs1)"},Object(c.createElement)("rect",{x:"60",y:"28",width:"24",height:"24",transform:"rotate(-180 60 28)",fill:"#8E9196"})),Object(c.createElement)("rect",{x:"64",width:"32",height:"32",rx:"16",fill:"#8E9196"}),Object(c.createElement)("mask",{id:"bacs2","mask-type":"alpha",maskUnits:"userSpaceOnUse",x:"72",y:"8",width:"16",height:"16"},Object(c.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M72.875 12.25L80 8.5L87.125 12.25V13.75H72.875V12.25ZM80 10.195L83.9075 12.25H76.0925L80 10.195ZM74.75 15.25H76.25V20.5H74.75V15.25ZM79.25 20.5V15.25H80.75V20.5H79.25ZM87.125 23.5V22H72.875V23.5H87.125ZM83.75 15.25H85.25V20.5H83.75V15.25Z",fill:"white"})),Object(c.createElement)("g",{mask:"url(#bacs2)"},Object(c.createElement)("rect",{x:"71",y:"7",width:"18",height:"18",fill:"white"})))},V=function(){return Object(c.createElement)("svg",{width:"96",height:"32",viewBox:"0 0 96 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(c.createElement)("rect",{width:"32",height:"32",rx:"16",fill:"#8E9196"}),Object(c.createElement)("mask",{id:"cod-mask-0","mask-type":"alpha",maskUnits:"userSpaceOnUse",x:"7",y:"10",width:"18",height:"12"},Object(c.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22 13H19.75V10H9.25C8.425 10 7.75 10.675 7.75 11.5V19.75H9.25C9.25 20.995 10.255 22 11.5 22C12.745 22 13.75 20.995 13.75 19.75H18.25C18.25 20.995 19.255 22 20.5 22C21.745 22 22.75 20.995 22.75 19.75H24.25V16L22 13ZM21.625 14.125L23.095 16H19.75V14.125H21.625ZM10.75 19.75C10.75 20.1625 11.0875 20.5 11.5 20.5C11.9125 20.5 12.25 20.1625 12.25 19.75C12.25 19.3375 11.9125 19 11.5 19C11.0875 19 10.75 19.3375 10.75 19.75ZM13.165 18.25C12.7525 17.7925 12.1675 17.5 11.5 17.5C10.8325 17.5 10.2475 17.7925 9.835 18.25H9.25V11.5H18.25V18.25H13.165ZM19.75 19.75C19.75 20.1625 20.0875 20.5 20.5 20.5C20.9125 20.5 21.25 20.1625 21.25 19.75C21.25 19.3375 20.9125 19 20.5 19C20.0875 19 19.75 19.3375 19.75 19.75Z",fill:"white"})),Object(c.createElement)("g",{mask:"url(#cod-mask-0)"},Object(c.createElement)("rect",{x:"7",y:"7",width:"18",height:"18",fill:"white"})),Object(c.createElement)("mask",{id:"cod-mask-1","mask-type":"alpha",maskUnits:"userSpaceOnUse",x:"39",y:"10",width:"18",height:"12"},Object(c.createElement)("path",{d:"M39 17L53.17 17L49.59 20.59L51 22L57 16L51 10L49.59 11.41L53.17 15L39 15L39 17Z",fill:"white"})),Object(c.createElement)("g",{mask:"url(#cod-mask-1)"},Object(c.createElement)("rect",{x:"60",y:"28",width:"24",height:"24",transform:"rotate(-180 60 28)",fill:"#8E9196"})),Object(c.createElement)("rect",{x:"64",width:"32",height:"32",rx:"16",fill:"#8E9196"}),Object(c.createElement)("mask",{id:"cod-mask-2","mask-type":"alpha",maskUnits:"userSpaceOnUse",x:"76",y:"9",width:"8",height:"14"},Object(c.createElement)("path",{d:"M80.2926 15.175C78.5901 14.7325 78.0426 14.275 78.0426 13.5625C78.0426 12.745 78.8001 12.175 80.0676 12.175C81.4026 12.175 81.8976 12.8125 81.9426 13.75H83.6001C83.5476 12.46 82.7601 11.275 81.1926 10.8925V9.25H78.9426V10.87C77.4876 11.185 76.3176 12.13 76.3176 13.5775C76.3176 15.31 77.7501 16.1725 79.8426 16.675C81.7176 17.125 82.0926 17.785 82.0926 18.4825C82.0926 19 81.7251 19.825 80.0676 19.825C78.5226 19.825 77.9151 19.135 77.8326 18.25H76.1826C76.2726 19.8925 77.5026 20.815 78.9426 21.1225V22.75H81.1926V21.1375C82.6551 20.86 83.8176 20.0125 83.8176 18.475C83.8176 16.345 81.9951 15.6175 80.2926 15.175Z",fill:"white"})),Object(c.createElement)("g",{mask:"url(#cod-mask-2)"},Object(c.createElement)("rect",{x:"71",y:"7",width:"18",height:"18",fill:"white"})))},F=n(585),H=n(29);function Z(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);t&&(c=c.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,c)}return n}function B(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Z(Object(n),!0).forEach((function(t){A()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Z(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function z(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,c=R()(e);if(t){var r=R()(this).constructor;n=Reflect.construct(c,arguments,r)}else n=c.apply(this,arguments);return P()(this,n)}}var W=function(e){E()(i,e);var t,n,o=z(i);function i(e){var t;return g()(this,i),(t=o.call(this,e)).state={oAuthConnectFailed:!1,connectURL:null,isPending:!1},t.updateSettings=t.updateSettings.bind(v()(t)),t}return k()(i,[{key:"componentDidMount",value:function(){var e=this.state.oAuthConnectFailed,t=this.props.stripeSettings,n=Object(H.getQuery)();if(n["stripe-connect"]&&"1"===n["stripe-connect"]&&(t.publishable_key&&t.secret_key))return void this.completeMethod();e||this.fetchOAuthConnectURL()}},{key:"componentDidUpdate",value:function(e){var t=this.props.activePlugins;!e.activePlugins.includes("woocommerce-gateway-stripe")&&t.includes("woocommerce-gateway-stripe")&&this.fetchOAuthConnectURL()}},{key:"completeMethod",value:function(){var e=this.props,t=e.createNotice,n=e.markConfigured;this.setState({isPending:!1}),t("success",Object(r.__)("Stripe connected successfully.","woocommerce-admin")),n("stripe")}},{key:"fetchOAuthConnectURL",value:(n=f()(h.a.mark((function e(){var t;return h.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.props.activePlugins.includes("woocommerce-gateway-stripe")){e.next=3;break}return e.abrupt("return");case 3:return e.prev=3,this.setState({isPending:!0}),e.next=7,a()({path:p.WCS_NAMESPACE+"/connect/stripe/oauth/init",method:"POST",data:{returnUrl:Object(u.f)("admin.php?page=wc-admin&task=payments&method=stripe&stripe-connect=1")}});case 7:if((t=e.sent)&&t.oauthUrl){e.next=11;break}return this.setState({oAuthConnectFailed:!0,isPending:!1}),e.abrupt("return");case 11:this.setState({connectURL:t.oauthUrl,isPending:!1}),e.next=17;break;case 14:e.prev=14,e.t0=e.catch(3),this.setState({oAuthConnectFailed:!0,isPending:!1});case 17:case"end":return e.stop()}}),e,this,[[3,14]])}))),function(){return n.apply(this,arguments)})},{key:"renderConnectButton",value:function(){var e=this.state.connectURL;return Object(c.createElement)(T.a,{isPrimary:!0,href:e},Object(r.__)("Connect","woocommerce-admin"))}},{key:"updateSettings",value:(t=f()(h.a.mark((function e(t){var n,c,o,a,i,s;return h.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return c=this.props,o=c.updateOptions,a=c.stripeSettings,i=c.createNotice,s=t.publishable_key.match(/^pk_live_/)?"":"test_",e.next=4,o({woocommerce_stripe_settings:B(B({},a),{},(n={},A()(n,s+"publishable_key",t.publishable_key),A()(n,s+"secret_key",t.secret_key),A()(n,"testmode","test_"===s?"yes":"no"),A()(n,"enabled","yes"),n))});case 4:e.sent.success?this.completeMethod():i("error",Object(r.__)("There was a problem saving your payment settings","woocommerce-admin"));case 6:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"getInitialConfigValues",value:function(){return{publishable_key:"",secret_key:""}}},{key:"validateManualConfig",value:function(e){var t={};return null===e.publishable_key.match(/^pk_(live|test)_[a-zA-Z0-9_]+/)&&(t.publishable_key=Object(r.__)('Please enter a valid publishable key (starting with "pk_").',"woocommerce-admin")),null===e.secret_key.match(/^[rs]k_(live|test)_[a-zA-Z0-9_]+/)?t.secret_key=Object(r.__)('Please enter a valid secret key (starting with "sk_" or "rk_").',"woocommerce-admin"):e.secret_key.slice(3,7)!==e.publishable_key.slice(3,7)&&(t.secret_key=Object(r.__)("Please enter a secret key in the same mode as the publishable key.","woocommerce-admin")),t}},{key:"renderManualConfig",value:function(){var e=this.props.isOptionsUpdating,t=l()({mixedString:Object(r.__)("Your API details can be obtained from your {{docsLink}}Stripe account{{/docsLink}}. Don’t have a Stripe account? {{registerLink}}Create one.{{/registerLink}}","woocommerce-admin"),components:{docsLink:Object(c.createElement)(m.Link,{href:"https://stripe.com/docs/keys",target:"_blank",type:"external"}),registerLink:Object(c.createElement)(m.Link,{href:"https://dashboard.stripe.com/register",target:"_blank",type:"external"})}});return Object(c.createElement)(m.Form,{initialValues:this.getInitialConfigValues(),onSubmitCallback:this.updateSettings,validate:this.validateManualConfig},(function(n){var o=n.getInputProps,a=n.handleSubmit;return Object(c.createElement)(c.Fragment,null,Object(c.createElement)(m.TextControl,_()({label:Object(r.__)("Publishable Key","woocommerce-admin"),required:!0},o("publishable_key"))),Object(c.createElement)(m.TextControl,_()({label:Object(r.__)("Secret Key","woocommerce-admin"),required:!0},o("secret_key"))),Object(c.createElement)(T.a,{isPrimary:!0,isBusy:e,onClick:a},Object(r.__)("Proceed","woocommerce-admin")),Object(c.createElement)("p",null,t))}))}},{key:"renderOauthConfig",value:function(){var e=this,t=l()({mixedString:Object(r.__)('By clicking "Connect," you agree to the {{tosLink}}Terms of Service{{/tosLink}}. Or {{manualConfigLink}}manually enter your Stripe API details{{/manualConfigLink}} instead.',"woocommerce-admin"),components:{tosLink:Object(c.createElement)(m.Link,{href:"https://wordpress.com/tos",target:"_blank",type:"external"}),manualConfigLink:Object(c.createElement)(T.a,{isLink:!0,onClick:function(){e.setState({connectURL:null})}})}});return Object(c.createElement)(c.Fragment,null,Object(c.createElement)("p",null,this.renderConnectButton()),t)}},{key:"getConnectStep",value:function(){var e=this.state,t=e.connectURL,n=e.isPending,c=e.oAuthConnectFailed,o={key:"connect",label:Object(r.__)("Connect your Stripe account","woocommerce-admin")};return n?o:B(B({},o),{},!c&&t?{description:Object(r.__)("A Stripe account is required to process payments.","woocommerce-admin"),content:this.renderOauthConfig()}:{content:this.renderManualConfig()})}},{key:"render",value:function(){var e=this.props,t=e.installStep,n=e.isOptionsUpdating,r=this.state.isPending;return Object(c.createElement)(m.Stepper,{isVertical:!0,isPending:!t.isComplete||n||r,currentStep:t.isComplete?"connect":"install",steps:[t,this.getConnectStep()]})}}]),i}(c.Component),Y=Object(L.a)(Object(M.withSelect)((function(e){var t=e(p.OPTIONS_STORE_NAME),n=t.getOption,c=t.isOptionsUpdating;return{activePlugins:(0,e(p.PLUGINS_STORE_NAME).getActivePlugins)(),isOptionsUpdating:c(),stripeSettings:n("woocommerce_stripe_settings")||[]}})),Object(M.withDispatch)((function(e){return{createNotice:e("core/notices").createNotice,updateOptions:e(p.OPTIONS_STORE_NAME).updateOptions}})))(W);function K(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);t&&(c=c.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,c)}return n}function J(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?K(Object(n),!0).forEach((function(t){A()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):K(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Q(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,c=R()(e);if(t){var r=R()(this).constructor;n=Reflect.construct(c,arguments,r)}else n=c.apply(this,arguments);return P()(this,n)}}var G=function(e){E()(o,e);var t,n=Q(o);function o(e){var t;return g()(this,o),(t=n.call(this,e)).state={isPending:!1},t.connect=t.connect.bind(v()(t)),t}return k()(o,[{key:"componentDidMount",value:function(){var e=this.props,t=e.createNotice,n=e.markConfigured,c=Object(H.getQuery)();c["square-connect"]&&"1"===c["square-connect"]&&(t("success",Object(r.__)("Square connected successfully.","woocommerce-admin")),n("square"))}},{key:"connect",value:(t=f()(h.a.mark((function e(){var t,n,c,o,i,s,l,u;return h.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.props,n=t.createNotice,c=t.hasCbdIndustry,o=t.options,i=t.updateOptions,this.setState({isPending:!0}),i({woocommerce_square_credit_card_settings:J(J({},o.woocommerce_square_credit_card_settings),{},{enabled:"yes"})}),s=Object(r.__)("There was an error connecting to Square. Please try again or skip to connect later in store settings.","woocommerce-admin"),e.prev=4,l=null,c&&(l=window.open("/","_blank")),e.next=9,a()({path:p.WC_ADMIN_NAMESPACE+"/plugins/connect-square",method:"POST"});case 9:if((u=e.sent)&&u.connectUrl){e.next=15;break}return this.setState({isPending:!1}),n("error",s),c&&l.close(),e.abrupt("return");case 15:this.setState({isPending:!0}),this.redirect(u.connectUrl,l),e.next=23;break;case 19:e.prev=19,e.t0=e.catch(4),this.setState({isPending:!1}),n("error",s);case 23:case"end":return e.stop()}}),e,this,[[4,19]])}))),function(){return t.apply(this,arguments)})},{key:"redirect",value:function(e,t){t?(t.location.href=e,window.location=Object(u.f)("admin.php?page=wc-admin")):window.location=e}},{key:"render",value:function(){var e=this.props.installStep,t=this.state.isPending;return Object(c.createElement)(m.Stepper,{isVertical:!0,isPending:!e.isComplete||t,currentStep:e.isComplete?"connect":"install",steps:[e,{key:"connect",label:Object(r.__)("Connect your Square account","woocommerce-admin"),description:Object(r.__)("A Square account is required to process payments. You will be redirected to the Square website to create the connection.","woocommerce-admin"),content:Object(c.createElement)(c.Fragment,null,Object(c.createElement)(T.a,{isPrimary:!0,isBusy:t,onClick:this.connect},Object(r.__)("Connect","woocommerce-admin")))}]})}}]),o}(c.Component),$=Object(L.a)(Object(M.withSelect)((function(e){var t=e(p.OPTIONS_STORE_NAME),n=t.getOption,c=t.isResolving;return{options:n("woocommerce_square_credit_card_settings"),optionsIsRequesting:c("getOption",["woocommerce_square_credit_card_settings"])}})),Object(M.withDispatch)((function(e){return{createNotice:e("core/notices").createNotice,updateOptions:e(p.OPTIONS_STORE_NAME).updateOptions}})))(G);function X(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,c=R()(e);if(t){var r=R()(this).constructor;n=Reflect.construct(c,arguments,r)}else n=c.apply(this,arguments);return P()(this,n)}}var ee=function(e){E()(n,e);var t=X(n);function n(){return g()(this,n),t.apply(this,arguments)}return k()(n,[{key:"componentDidMount",value:function(){var e=this.props,t=e.createNotice,n=e.markConfigured;Object(H.getQuery)()["wcpay-connection-success"]&&(t("success",Object(r.__)("WooCommerce Payments connected successfully.","woocommerce-admin")),n("wcpay",{"wcpay-connection-success":"1"}))}},{key:"render",value:function(){return null}}]),n}(c.Component),te=Object(M.withDispatch)((function(e){return{createNotice:e("core/notices").createNotice}}))(ee),ne=function(){return Object(c.createElement)("svg",{width:"100",height:"64",viewBox:"-10 0 120 64",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(c.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.78073 0.5H91.1787C96.3299 0.5 100.5 4.77335 100.5 10.0522V41.8929C100.5 47.1717 96.3299 51.4451 91.1787 51.4451H61.9883L65.9948 61.5L48.3742 51.4451H9.82161C4.67036 51.4451 0.500298 47.1717 0.500298 41.8929V10.0522C0.459415 4.81524 4.62947 0.5 9.78073 0.5Z",fill:"#7F54B3"}),Object(c.createElement)("path",{d:"M5.48791 9.1725C6.06028 8.37648 6.91882 7.95752 8.06354 7.87373C10.1486 7.70615 11.3342 8.71165 11.6204 10.8902C12.8877 19.6464 14.2778 27.0619 15.7495 33.1368L24.7029 15.6663C25.5206 14.0743 26.5426 13.2364 27.7691 13.1526C29.568 13.0269 30.6718 14.2 31.1215 16.6718C32.1436 22.2439 33.4519 26.9781 35.0054 31.0001C36.0684 20.3586 37.8672 12.6917 40.402 7.95753C41.0152 6.78445 41.9146 6.19791 43.1002 6.11412C44.0405 6.03033 44.8991 6.3236 45.6759 6.95203C46.4526 7.58047 46.8615 8.37648 46.9432 9.34008C46.9841 10.0942 46.8615 10.7226 46.5344 11.3511C44.94 14.3676 43.6317 19.4369 42.5688 26.4754C41.5467 33.3044 41.1787 38.6251 41.424 42.4376C41.5058 43.485 41.3423 44.4067 40.9334 45.2027C40.4428 46.1244 39.707 46.6272 38.7666 46.711C37.7037 46.7948 36.5998 46.292 35.5369 45.1608C31.7348 41.1807 28.7094 35.2316 26.5018 27.3133C23.8444 32.6759 21.882 36.6979 20.6146 39.3792C18.2025 44.1134 16.1584 46.5434 14.4413 46.6691C13.3374 46.7529 12.3971 45.7893 11.5795 43.7783C9.49445 38.2899 7.24589 27.6904 4.83379 11.9795C4.71114 10.8902 4.91555 9.92662 5.48791 9.1725Z",fill:"white"}),Object(c.createElement)("path",{d:"M93.3864 15.7499C91.9146 13.1105 89.7478 11.5185 86.8451 10.89C86.0683 10.7225 85.3324 10.6387 84.6374 10.6387C80.7127 10.6387 77.5238 12.7335 75.0299 16.923C72.904 20.4841 71.8411 24.4223 71.8411 28.7376C71.8411 31.9635 72.4952 34.7286 73.8034 37.0329C75.2752 39.6723 77.442 41.2644 80.3447 41.8928C81.1215 42.0604 81.8574 42.1442 82.5524 42.1442C86.518 42.1442 89.7069 40.0494 92.1599 35.8598C94.2858 32.2568 95.3488 28.3186 95.3488 24.0034C95.3488 20.7355 94.6946 18.0123 93.3864 15.7499ZM88.2351 27.355C87.6628 30.1201 86.6407 32.173 85.128 33.5556C83.9424 34.6449 82.8386 35.1057 81.8165 34.8962C80.8353 34.6868 80.0177 33.8069 79.4044 32.173C78.9138 30.8742 78.6685 29.5755 78.6685 28.3605C78.6685 27.3131 78.7503 26.2657 78.9547 25.3021C79.3226 23.5844 80.0177 21.9086 81.1215 20.3166C82.4706 18.2637 83.9015 17.4258 85.3733 17.719C86.3545 17.9285 87.1722 18.8083 87.7854 20.4422C88.276 21.741 88.5213 23.0398 88.5213 24.2547C88.5213 25.344 88.3987 26.3914 88.2351 27.355Z",fill:"white"}),Object(c.createElement)("path",{d:"M67.7528 15.7499C66.281 13.1105 64.0734 11.5185 61.2116 10.89C60.4348 10.7225 59.6989 10.6387 59.0039 10.6387C55.0791 10.6387 51.8903 12.7335 49.3964 16.923C47.2705 20.4841 46.2075 24.4223 46.2075 28.7376C46.2075 31.9635 46.8616 34.7286 48.1699 37.0329C49.6417 39.6723 51.8085 41.2644 54.7112 41.8928C55.488 42.0604 56.2238 42.1442 56.9189 42.1442C60.8845 42.1442 64.0734 40.0494 66.5263 35.8598C68.6523 32.2568 69.7152 28.3186 69.7152 24.0034C69.7152 20.7355 69.0611 18.0123 67.7528 15.7499ZM62.6016 27.355C62.0292 30.1201 61.0071 32.173 59.4945 33.5556C58.3089 34.6449 57.205 35.1057 56.183 34.8962C55.2018 34.6868 54.3841 33.8069 53.7709 32.173C53.2803 30.8742 53.035 29.5755 53.035 28.3605C53.035 27.3131 53.1167 26.2657 53.3212 25.3021C53.6891 23.5844 54.3841 21.9086 55.4879 20.3166C56.8371 18.2637 58.268 17.4258 59.7398 17.719C60.721 17.9285 61.5386 18.8083 62.1519 20.4422C62.6425 21.741 62.8878 23.0398 62.8878 24.2547C62.8878 25.344 62.806 26.3914 62.6016 27.355Z",fill:"white"}))},ce=n(589),re=n(33);function oe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);t&&(c=c.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,c)}return n}function ae(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oe(Object(n),!0).forEach((function(t){A()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ie(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,c=R()(e);if(t){var r=R()(this).constructor;n=Reflect.construct(c,arguments,r)}else n=c.apply(this,arguments);return P()(this,n)}}var se=function(e){E()(i,e);var t,n,o=ie(i);function i(e){var t;return g()(this,i),(t=o.call(this,e)).state={autoConnectFailed:!1,connectURL:"",isPending:!1},t.updateSettings=t.updateSettings.bind(v()(t)),t.validate=t.validate.bind(v()(t)),t}return k()(i,[{key:"componentDidMount",value:function(){var e=this.props,t=e.createNotice,n=e.markConfigured,c=Object(H.getQuery)();if(c["paypal-connect"])return"1"===c["paypal-connect"]?(t("success",Object(r.__)("PayPal connected successfully.","woocommerce-admin")),void n("paypal")):void this.setState({autoConnectFailed:!0});this.fetchOAuthConnectURL()}},{key:"componentDidUpdate",value:function(e){var t=this.props.activePlugins;!e.activePlugins.includes("woocommerce-gateway-paypal-express-checkout")&&t.includes("woocommerce-gateway-paypal-express-checkout")&&this.fetchOAuthConnectURL()}},{key:"isWooCommerceServicesConnected",value:function(){var e=this.props,t=e.activePlugins,n=e.isJetpackConnected,c=e.wcsTosAccepted;return n&&c&&t.includes("woocommerce-services")}},{key:"fetchOAuthConnectURL",value:(n=f()(h.a.mark((function e(){var t;return h.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.props.activePlugins.includes("woocommerce-gateway-paypal-express-checkout")){e.next=3;break}return e.abrupt("return");case 3:return this.setState({isPending:!0}),e.prev=4,e.next=7,a()({path:p.WC_ADMIN_NAMESPACE+"/plugins/connect-paypal",method:"POST"});case 7:if((t=e.sent)&&t.connectUrl){e.next=11;break}return this.setState({autoConnectFailed:!0,isPending:!1}),e.abrupt("return");case 11:this.setState({connectURL:t.connectUrl,isPending:!1}),e.next=17;break;case 14:e.prev=14,e.t0=e.catch(4),this.setState({autoConnectFailed:!0,isPending:!1});case 17:case"end":return e.stop()}}),e,this,[[4,14]])}))),function(){return n.apply(this,arguments)})},{key:"updateSettings",value:(t=f()(h.a.mark((function e(t){var n,c,o,a,i,s;return h.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=this.props,c=n.createNotice,o=n.options,a=n.updateOptions,i=n.markConfigured,s=ae(ae({},o.woocommerce_ppec_paypal_settings),{},{enabled:"yes"}),t.create_account?(s.reroute_requests="yes",s.email=t.account_email):(s.api_username=t.api_username,s.api_password=t.api_password),e.next=5,a({woocommerce_ppec_paypal_settings:s});case 5:e.sent.success?(c("success",Object(r.__)("PayPal connected successfully.","woocommerce-admin")),i("paypal")):c("error",Object(r.__)("There was a problem saving your payment settings.","woocommerce-admin"));case 7:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"getInitialConfigValues",value:function(){return{api_username:"",api_password:"",create_account:this.isWooCommerceServicesConnected(),account_email:""}}},{key:"validate",value:function(e){var t={};return e.create_account||e.api_username||(t.api_username=Object(r.__)("Please enter your API username","woocommerce-admin")),e.create_account||e.api_password||(t.api_password=Object(r.__)("Please enter your API password","woocommerce-admin")),this.isWooCommerceServicesConnected()&&e.create_account&&!Object(re.isEmail)(e.account_email)&&(t.account_email=Object(r.__)("Please enter a valid email address","woocommerce-admin")),t}},{key:"renderAutomaticConfig",value:function(){var e=this.props.isOptionsUpdating,t=this.state,n=t.autoConnectFailed,o=t.connectURL,a=t.isPending,i=this.isWooCommerceServicesConnected(),s=this.getInitialConfigValues();return Object(c.createElement)(m.Form,{initialValues:s,onSubmitCallback:this.updateSettings,validate:this.validate},(function(t){var s=t.getInputProps,u=t.handleSubmit,p=t.values;return Object(c.createElement)(c.Fragment,null,i&&Object(c.createElement)("div",{className:"woocommerce-task-payments__paypal-auto-create-account"},Object(c.createElement)(ce.a,_()({label:Object(r.__)("Create a PayPal account for me","woocommerce-admin")},s("create_account"))),p.create_account&&Object(c.createElement)(m.TextControl,_()({label:Object(r.__)("Email address","woocommerce-admin"),type:"email"},s("account_email")))),!a&&(n||!o)&&(!i||!p.create_account)&&Object(c.createElement)(c.Fragment,null,Object(c.createElement)(m.TextControl,_()({label:Object(r.__)("API Username","woocommerce-admin"),required:!0},s("api_username"))),Object(c.createElement)(m.TextControl,_()({label:Object(r.__)("API Password","woocommerce-admin"),required:!0},s("api_password"))),Object(c.createElement)(T.a,{onClick:u,isPrimary:!0,isBusy:e},Object(r.__)("Proceed","woocommerce-admin")),Object(c.createElement)("p",null,l()({mixedString:Object(r.__)("Your API details can be obtained from your {{link}}PayPal account{{/link}}","woocommerce-admin"),components:{link:Object(c.createElement)(m.Link,{href:"https://docs.woocommerce.com/document/paypal-express-checkout/#section-8",target:"_blank",type:"external"})}}))),i&&p.create_account&&Object(c.createElement)(T.a,{onClick:u,isPrimary:!0,isBusy:e},Object(r.__)("Create account","woocommerce-admin")),!n&&o&&(!i||!p.create_account)&&Object(c.createElement)(c.Fragment,null,Object(c.createElement)(T.a,{isPrimary:!0,href:o},Object(r.__)("Connect","woocommerce-admin")),Object(c.createElement)("p",null,Object(r.__)("You will be redirected to the PayPal website to create the connection.","woocommerce-admin"))))}))}},{key:"getConnectStep",value:function(){return{key:"connect",label:Object(r.__)("Connect your PayPal account","woocommerce-admin"),description:Object(r.__)("A PayPal account is required to process payments. Connect your store to your PayPal account.","woocommerce-admin"),content:this.renderAutomaticConfig()}}},{key:"render",value:function(){var e=this.props.installStep,t=this.state.isPending;return Object(c.createElement)(m.Stepper,{isVertical:!0,isPending:!e.isComplete||t,currentStep:e.isComplete?"connect":"install",steps:[e,this.getConnectStep()]})}}]),i}(c.Component);se.defaultProps={manualConfig:!1};var le=Object(L.a)(Object(M.withSelect)((function(e){var t=e(p.OPTIONS_STORE_NAME),n=t.getOption,c=t.isOptionsUpdating,r=e(p.PLUGINS_STORE_NAME),o=r.getActivePlugins,a=r.isJetpackConnected,i=n("woocommerce_ppec_paypal_settings"),s=n("wc_connect_options");return{activePlugins:o(),isJetpackConnected:a(),isOptionsUpdating:c(),options:i,wcsTosAccepted:s&&s.tos_accepted}})),Object(M.withDispatch)((function(e){return{createNotice:e("core/notices").createNotice,updateOptions:e(p.OPTIONS_STORE_NAME).updateOptions}})))(se);function ue(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,c=R()(e);if(t){var r=R()(this).constructor;n=Reflect.construct(c,arguments,r)}else n=c.apply(this,arguments);return P()(this,n)}}var me=function(e){E()(n,e);var t=ue(n);function n(e){var c;return g()(this,n),(c=t.call(this,e)).continue=c.continue.bind(v()(c)),c}return k()(n,[{key:"continue",value:function(){var e=this.props;(0,e.markConfigured)("checkout"===e.plugin?"klarna-checkout":"klarna-payments")}},{key:"renderConnectStep",value:function(){var e=this.props.plugin,t="checkout"===e?"klarna-checkout":"klarna-payments",n="checkout"===e?"kco":"klarna_payments",o=Object(c.createElement)(m.Link,{href:u.a+"admin.php?page=wc-settings&tab=checkout§ion="+n,target:"_blank",type:"external"}),a=Object(c.createElement)(m.Link,{href:"https://docs.woocommerce.com/document/"+t+"/#section-3",target:"_blank",type:"external"}),i=l()({mixedString:Object(r.__)("Klarna can be configured under your {{link}}store settings{{/link}}. Figure out {{helpLink}}what you need{{/helpLink}}.","woocommerce-admin"),components:{link:o,helpLink:a}});return Object(c.createElement)(c.Fragment,null,Object(c.createElement)("p",null,i),Object(c.createElement)(T.a,{isPrimary:!0,onClick:this.continue},Object(r.__)("Continue","woocommerce-admin")))}},{key:"render",value:function(){var e=this.props.installStep;return Object(c.createElement)(m.Stepper,{isVertical:!0,isPending:!e.isComplete,currentStep:e.isComplete?"connect":"install",steps:[e,{key:"connect",label:Object(r.__)("Connect your Klarna account","woocommerce-admin"),content:this.renderConnectStep()}]})}}]),n}(c.Component);function pe(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,c=R()(e);if(t){var r=R()(this).constructor;n=Reflect.construct(c,arguments,r)}else n=c.apply(this,arguments);return P()(this,n)}}var de=function(e){E()(n,e);var t=pe(n);function n(){var e;g()(this,n);for(var c=arguments.length,o=new Array(c),a=0;a<c;a++)o[a]=arguments[a];return e=t.call.apply(t,[this].concat(o)),A()(v()(e),"getInitialConfigValues",(function(){return{merchant_id:"",merchant_key:"",pass_phrase:""}})),A()(v()(e),"validate",(function(e){var t={};return e.merchant_id||(t.merchant_id=Object(r.__)("Please enter your merchant ID","woocommerce-admin")),e.merchant_key||(t.merchant_key=Object(r.__)("Please enter your merchant key","woocommerce-admin")),e.pass_phrase||(t.pass_phrase=Object(r.__)("Please enter your passphrase","woocommerce-admin")),t})),A()(v()(e),"updateSettings",function(){var t=f()(h.a.mark((function t(n){var c,o,a,i;return h.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return c=e.props,o=c.updateOptions,a=c.createNotice,i=c.markConfigured,t.next=3,o({woocommerce_currency:"ZAR",woocommerce_payfast_settings:{merchant_id:n.merchant_id,merchant_key:n.merchant_key,pass_phrase:n.pass_phrase,enabled:"yes"}});case 3:t.sent.success?(i("payfast"),a("success",Object(r.__)("PayFast connected successfully","woocommerce-admin"))):a("error",Object(r.__)("There was a problem saving your payment settings","woocommerce-admin"));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()),e}return k()(n,[{key:"renderConnectStep",value:function(){var e=this.props.isOptionsRequesting,t=l()({mixedString:Object(r.__)("Your API details can be obtained from your {{link}}PayFast account{{/link}}","woocommerce-admin"),components:{link:Object(c.createElement)(m.Link,{href:"https://www.payfast.co.za/",target:"_blank",type:"external"})}});return Object(c.createElement)(m.Form,{initialValues:this.getInitialConfigValues(),onSubmitCallback:this.updateSettings,validate:this.validate},(function(n){var o=n.getInputProps,a=n.handleSubmit;return Object(c.createElement)(c.Fragment,null,Object(c.createElement)(m.TextControl,_()({label:Object(r.__)("Merchant ID","woocommerce-admin"),required:!0},o("merchant_id"))),Object(c.createElement)(m.TextControl,_()({label:Object(r.__)("Merchant Key","woocommerce-admin"),required:!0},o("merchant_key"))),Object(c.createElement)(m.TextControl,_()({label:Object(r.__)("Passphrase","woocommerce-admin"),required:!0},o("pass_phrase"))),Object(c.createElement)(T.a,{isPrimary:!0,isBusy:e,onClick:a},Object(r.__)("Proceed","woocommerce-admin")),Object(c.createElement)("p",null,t))}))}},{key:"render",value:function(){var e=this.props,t=e.installStep,n=e.isOptionsRequesting;return Object(c.createElement)(m.Stepper,{isVertical:!0,isPending:!t.isComplete||n,currentStep:t.isComplete?"connect":"install",steps:[t,{key:"connect",label:Object(r.__)("Connect your PayFast account","woocommerce-admin"),content:this.renderConnectStep()}]})}}]),n}(c.Component),_e=Object(L.a)(Object(M.withSelect)((function(e){return{isOptionsRequesting:(0,e(p.OPTIONS_STORE_NAME).isOptionsUpdating)()}})),Object(M.withDispatch)((function(e){return{createNotice:e("core/notices").createNotice,updateOptions:e(p.OPTIONS_STORE_NAME).updateOptions}})))(de);function be(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,c=R()(e);if(t){var r=R()(this).constructor;n=Reflect.construct(c,arguments,r)}else n=c.apply(this,arguments);return P()(this,n)}}var he=function(e){E()(n,e);var t=be(n);function n(){var e;g()(this,n);for(var c=arguments.length,o=new Array(c),a=0;a<c;a++)o[a]=arguments[a];return e=t.call.apply(t,[this].concat(o)),A()(v()(e),"getInitialConfigValues",(function(){return{customer_api:"",customer_password:""}})),A()(v()(e),"validate",(function(e){var t={};return e.customer_api||(t.customer_api=Object(r.__)("Please enter your customer API key ","woocommerce-admin")),e.customer_password||(t.customer_password=Object(r.__)("Please enter your customer password","woocommerce-admin")),t})),A()(v()(e),"updateSettings",function(){var t=f()(h.a.mark((function t(n){var c,o,a,i;return h.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return c=e.props,o=c.updateOptions,a=c.createNotice,i=c.markConfigured,t.next=3,o({woocommerce_eway_settings:{customer_api:n.customer_api,customer_password:n.customer_password,enabled:"yes"}});case 3:t.sent.success?(i("eway"),a("success",Object(r.__)("eWAY connected successfully","woocommerce-admin"))):a("error",Object(r.__)("There was a problem saving your payment settings","woocommerce-admin"));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()),e}return k()(n,[{key:"renderConnectStep",value:function(){var e=this.props.isOptionsRequesting,t=l()({mixedString:Object(r.__)("Your API details can be obtained from your {{link}}eWAY account{{/link}}","woocommerce-admin"),components:{link:Object(c.createElement)(m.Link,{href:"https://www.eway.com.au/",target:"_blank",type:"external"})}});return Object(c.createElement)(m.Form,{initialValues:this.getInitialConfigValues(),onSubmitCallback:this.updateSettings,validate:this.validate},(function(n){var o=n.getInputProps,a=n.handleSubmit;return Object(c.createElement)(c.Fragment,null,Object(c.createElement)(m.TextControl,_()({label:Object(r.__)("Customer API Key","woocommerce-admin"),required:!0},o("customer_api"))),Object(c.createElement)(m.TextControl,_()({label:Object(r.__)("Customer Password","woocommerce-admin"),required:!0},o("customer_password"))),Object(c.createElement)(T.a,{isPrimary:!0,isBusy:e,onClick:a},Object(r.__)("Proceed","woocommerce-admin")),Object(c.createElement)("p",null,t))}))}},{key:"render",value:function(){var e=this.props,t=e.installStep,n=e.isOptionsRequesting;return Object(c.createElement)(m.Stepper,{isVertical:!0,isPending:!t.isComplete||n,currentStep:t.isComplete?"connect":"install",steps:[t,{key:"connect",label:Object(r.__)("Connect your eWAY account","woocommerce-admin"),content:this.renderConnectStep()}]})}}]),n}(c.Component),ye=Object(L.a)(Object(M.withSelect)((function(e){return{isOptionsRequesting:(0,e(p.OPTIONS_STORE_NAME).isOptionsUpdating)()}})),Object(M.withDispatch)((function(e){return{createNotice:e("core/notices").createNotice,updateOptions:e(p.OPTIONS_STORE_NAME).updateOptions}})))(he),fe=n(606),Oe={key_id:"",key_secret:""},ge=function(e){var t={};return e.key_id||(t.key_id=Object(r.__)("Please enter your Key ID","woocommerce-admin")),e.key_secret||(t.key_secret=Object(r.__)("Please enter your Key Secret","woocommerce-admin")),t},we=function(){var e=f()(h.a.mark((function e(t,n,c,o){return h.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,o({woocommerce_razorpay_settings:{key_id:t.key_id,key_secret:t.key_secret,enabled:"yes"}});case 2:e.sent.success?(c("razorpay"),n("success",Object(r.__)("Razorpay connected successfully","woocommerce-admin"))):n("error",Object(r.__)("There was a problem saving your payment settings","woocommerce-admin"));case 4:case"end":return e.stop()}}),e)})));return function(t,n,c,r){return e.apply(this,arguments)}}(),ke=function(e){var t=e.createNotice,n=e.isOptionsRequesting,o=e.markConfigured,a=e.updateOptions,i=l()({mixedString:Object(r.__)("Your key details can be obtained from your {{link}}Razorpay account{{/link}}","woocommerce-admin"),components:{link:Object(c.createElement)(m.Link,{href:"https://dashboard.razorpay.com/#/access/signin",target:"_blank",type:"external"})}});return Object(c.createElement)(m.Form,{initialValues:Oe,onSubmitCallback:function(e){return we(e,t,o,a)},validate:ge},(function(e){var t=e.getInputProps,o=e.handleSubmit;return Object(c.createElement)(c.Fragment,null,Object(c.createElement)(m.TextControl,_()({label:Object(r.__)("Key ID","woocommerce-admin"),required:!0},t("key_id"))),Object(c.createElement)(m.TextControl,_()({label:Object(r.__)("Key Secret","woocommerce-admin"),required:!0},t("key_secret"))),Object(c.createElement)(T.a,{isPrimary:!0,isBusy:n,onClick:o},Object(r.__)("Proceed","woocommerce-admin")),Object(c.createElement)("p",null,i))}))},je=function(e){var t=e.createNotice,n=e.installStep,o=e.isOptionsRequesting,a=e.markConfigured,i=e.updateOptions;return Object(c.createElement)(m.Stepper,{isVertical:!0,isPending:!n.isComplete||o,currentStep:n.isComplete?"connect":"install",steps:[n,{key:"connect",label:Object(r.__)("Connect your Razorpay account","woocommerce-admin"),content:ke({createNotice:t,isOptionsRequesting:o,markConfigured:a,updateOptions:i})}]})},ve=function(e){var t=e.installStep,n=e.markConfigured,r=Object(M.useSelect)((function(e){return e(p.OPTIONS_STORE_NAME).isOptionsUpdating}))(),o=Object(M.useDispatch)("core/notices").createNotice,a=Object(M.useDispatch)(p.OPTIONS_STORE_NAME).updateOptions;return Object(c.createElement)(je,{createNotice:o,installStep:t,isOptionsRequesting:r,markConfigured:n,updateOptions:a})},Ce=function(){return Object(c.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"100",height:"24",fill:"#072654",viewBox:"0 0 1896 401"},Object(c.createElement)("path",{fill:"#3395FF",d:"M122.63 105.7l-15.75 57.97 90.15-58.3-58.96 219.98 59.88.05L285.05.48"}),Object(c.createElement)("path",{d:"M25.6 232.92L.8 325.4h122.73l50.22-188.13L25.6 232.92m426.32-81.42c-3 11.15-8.78 19.34-17.4 24.57-8.6 5.22-20.67 7.84-36.25 7.84h-49.5l17.38-64.8h49.5c15.56 0 26.25 2.6 32.05 7.9 5.8 5.3 7.2 13.4 4.22 24.6m51.25-1.4c6.3-23.4 3.7-41.4-7.82-54-11.5-12.5-31.68-18.8-60.48-18.8H324.4l-66.5 248.1h53.67l26.8-100h35.2c7.9 0 14.12 1.3 18.66 3.8 4.55 2.6 7.22 7.1 8.04 13.6l9.58 82.6h57.5l-9.32-77c-1.9-17.2-9.77-27.3-23.6-30.3 17.63-5.1 32.4-13.6 44.3-25.4a92.6 92.6 0 0 0 24.44-42.5m130.46 86.4c-4.5 16.8-11.4 29.5-20.73 38.4-9.34 8.9-20.5 13.3-33.52 13.3-13.26 0-22.25-4.3-27-13-4.76-8.7-4.92-21.3-.5-37.8 4.42-16.5 11.47-29.4 21.17-38.7 9.7-9.3 21.04-13.95 34.06-13.95 13 0 21.9 4.5 26.4 13.43 4.6 8.97 4.7 21.8.2 38.5zm23.52-87.8l-6.72 25.1c-2.9-9-8.53-16.2-16.85-21.6-8.34-5.3-18.66-8-30.97-8-15.1 0-29.6 3.9-43.5 11.7-13.9 7.8-26.1 18.8-36.5 33-10.4 14.2-18 30.3-22.9 48.4-4.8 18.2-5.8 34.1-2.9 47.9 3 13.9 9.3 24.5 19 31.9 9.8 7.5 22.3 11.2 37.6 11.2a82.4 82.4 0 0 0 35.2-7.7 82.11 82.11 0 0 0 28.4-21.2l-7 26.16h51.9L709.3 149h-52zm238.65 0H744.87l-10.55 39.4h87.82l-116.1 100.3-9.92 37h155.8l10.55-39.4h-94.1l117.88-101.8m142.4 52c-4.67 17.4-11.6 30.48-20.75 39-9.15 8.6-20.23 12.9-33.24 12.9-27.2 0-36.14-17.3-26.86-51.9 4.6-17.2 11.56-30.13 20.86-38.84 9.3-8.74 20.57-13.1 33.82-13.1 13 0 21.78 4.33 26.3 13.05 4.52 8.7 4.48 21.67-.13 38.87m30.38-80.83c-11.95-7.44-27.2-11.16-45.8-11.16-18.83 0-36.26 3.7-52.3 11.1a113.09 113.09 0 0 0-41 32.06c-11.3 13.9-19.43 30.2-24.42 48.8-4.9 18.53-5.5 34.8-1.7 48.73 3.8 13.9 11.8 24.6 23.8 32 12.1 7.46 27.5 11.17 46.4 11.17 18.6 0 35.9-3.74 51.8-11.18 15.9-7.48 29.5-18.1 40.8-32.1 11.3-13.94 19.4-30.2 24.4-48.8 5-18.6 5.6-34.84 1.8-48.8-3.8-13.9-11.7-24.6-23.6-32.05m185.1 40.8l13.3-48.1c-4.5-2.3-10.4-3.5-17.8-3.5-11.9 0-23.3 2.94-34.3 8.9-9.46 5.06-17.5 12.2-24.3 21.14l6.9-25.9-15.07.06h-37l-47.7 176.7h52.63l24.75-92.37c3.6-13.43 10.08-24 19.43-31.5 9.3-7.53 20.9-11.3 34.9-11.3 8.6 0 16.6 1.97 24.2 5.9m146.5 41.1c-4.5 16.5-11.3 29.1-20.6 37.8-9.3 8.74-20.5 13.1-33.5 13.1s-21.9-4.4-26.6-13.2c-4.8-8.85-4.9-21.6-.4-38.36 4.5-16.75 11.4-29.6 20.9-38.5 9.5-8.97 20.7-13.45 33.7-13.45 12.8 0 21.4 4.6 26 13.9 4.6 9.3 4.7 22.2.28 38.7m36.8-81.4c-9.75-7.8-22.2-11.7-37.3-11.7-13.23 0-25.84 3-37.8 9.06-11.95 6.05-21.65 14.3-29.1 24.74l.18-1.2 8.83-28.1h-51.4l-13.1 48.9-.4 1.7-54 201.44h52.7l27.2-101.4c2.7 9.02 8.2 16.1 16.6 21.22 8.4 5.1 18.77 7.63 31.1 7.63 15.3 0 29.9-3.7 43.75-11.1 13.9-7.42 25.9-18.1 36.1-31.9 10.2-13.8 17.77-29.8 22.6-47.9 4.9-18.13 5.9-34.3 3.1-48.45-2.85-14.17-9.16-25.14-18.9-32.9m174.65 80.65c-4.5 16.7-11.4 29.5-20.7 38.3-9.3 8.86-20.5 13.27-33.5 13.27-13.3 0-22.3-4.3-27-13-4.8-8.7-4.9-21.3-.5-37.8 4.4-16.5 11.42-29.4 21.12-38.7 9.7-9.3 21.05-13.94 34.07-13.94 13 0 21.8 4.5 26.4 13.4 4.6 8.93 4.63 21.76.15 38.5zm23.5-87.85l-6.73 25.1c-2.9-9.05-8.5-16.25-16.8-21.6-8.4-5.34-18.7-8-31-8-15.1 0-29.68 3.9-43.6 11.7-13.9 7.8-26.1 18.74-36.5 32.9-10.4 14.16-18 30.3-22.9 48.4-4.85 18.17-5.8 34.1-2.9 47.96 2.93 13.8 9.24 24.46 19 31.9 9.74 7.4 22.3 11.14 37.6 11.14 12.3 0 24.05-2.56 35.2-7.7a82.3 82.3 0 0 0 28.33-21.23l-7 26.18h51.9l47.38-176.7h-51.9zm269.87.06l.03-.05h-31.9c-1.02 0-1.92.05-2.85.07h-16.55l-8.5 11.8-2.1 2.8-.9 1.4-67.25 93.68-13.9-109.7h-55.08l27.9 166.7-61.6 85.3h54.9l14.9-21.13c.42-.62.8-1.14 1.3-1.8l17.4-24.7.5-.7 77.93-110.5 65.7-93 .1-.06h-.03z"}))};function Ee(e,t,n,c){var o=Object(r.__)("There was an error connecting to WooCommerce Payments. Please try again or connect later in store settings.","woocommerce-admin");c(["woocommerce-payments"]).then((function(){a()({path:p.WC_ADMIN_NAMESPACE+"/plugins/connect-wcpay",method:"POST"}).then((function(e){window.location=e.connectUrl})).catch((function(){n("error",o),t()}))})).catch((function(e){Object(F.a)(e),t()}))}function Se(e){var t=e.activePlugins,n=e.countryCode,o=e.createNotice,a=e.installAndActivatePlugins,s=e.onboardingStatus,p=e.options,d=e.profileItems,_=s.stripeSupportedCountries,b=void 0===_?[]:_,h=s.wcPayIsConnected,y=void 0!==h&&h,f=Object(i.some)(d.industry,{slug:"cbd-other-hemp-derived-products"})||!1,O=[];if(window.wcAdminFeatures.wcpay){var g=Object(c.createElement)(m.Link,{href:"https://wordpress.com/tos/",target:"_blank",type:"external"}),w=l()({mixedString:Object(r.__)('By clicking "Set up," you agree to the {{link}}Terms of Service{{/link}}',"woocommerce-admin"),components:{link:g}}),k=Object(c.createElement)(m.Link,{href:"https://docs.woocommerce.com/document/payments/testing/dev-mode/",target:"_blank",type:"external"}),j=l()({mixedString:Object(r.__)("Setting up a store for a client? {{link}}Start here{{/link}}","woocommerce-admin"),components:{link:k}}),v=Object(c.createElement)(m.Link,{href:Object(u.f)("admin.php?page=wc-settings&tab=checkout§ion=woocommerce_payments"),type:"wp-admin"},Object(r.__)("Settings","woocommerce-admin"));O.push({key:"wcpay",title:Object(r.__)("WooCommerce Payments","woocommerce-admin"),content:Object(c.createElement)(c.Fragment,null,Object(r.__)("Accept credit card payments the easy way! No setup fees. No monthly fees. Just 2.9% + $0.30 per transaction on U.S. issued cards. ","woocommerce-admin"),y&&v,!y&&Object(c.createElement)("p",null,w),d.setup_client&&Object(c.createElement)("p",null,j),Object(c.createElement)(fe.default,null)),before:Object(c.createElement)(ne,null),onClick:function(e,t){return Ee(0,t,o,a)},visible:["US","PR"].includes(n)&&!f,plugins:["woocommerce-payments"],container:Object(c.createElement)(te,null),isConfigured:y,isEnabled:p.woocommerce_woocommerce_payments_settings&&"yes"===p.woocommerce_woocommerce_payments_settings.enabled,optionName:"woocommerce_woocommerce_payments_settings"})}var C=p.woocommerce_stripe_settings&&("no"===p.woocommerce_stripe_settings.testmode?p.woocommerce_stripe_settings.publishable_key&&p.woocommerce_stripe_settings.secret_key:p.woocommerce_stripe_settings.test_publishable_key&&p.woocommerce_stripe_settings.test_secret_key);return O.push({key:"stripe",title:Object(r.__)("Credit cards - powered by Stripe","woocommerce-admin"),content:Object(c.createElement)(c.Fragment,null,Object(r.__)("Accept debit and credit cards in 135+ currencies, methods such as Alipay, and one-touch checkout with Apple Pay.","woocommerce-admin")),before:Object(c.createElement)("img",{src:u.e+"images/stripe.png",alt:""}),visible:b.includes(n)&&!f,plugins:["woocommerce-gateway-stripe"],container:Object(c.createElement)(Y,null),isConfigured:C,isEnabled:p.woocommerce_stripe_settings&&"yes"===p.woocommerce_stripe_settings.enabled,optionName:"woocommerce_stripe_settings"},{key:"paypal",title:Object(r.__)("PayPal Checkout","woocommerce-admin"),content:Object(c.createElement)(c.Fragment,null,Object(r.__)("Safe and secure payments using credit cards or your customer's PayPal account.","woocommerce-admin")),before:Object(c.createElement)("img",{src:u.e+"images/paypal.png",alt:""}),visible:!f,plugins:["woocommerce-gateway-paypal-express-checkout"],container:Object(c.createElement)(le,null),isConfigured:p.woocommerce_ppec_paypal_settings&&(p.woocommerce_ppec_paypal_settings.reroute_requests&&p.woocommerce_ppec_paypal_settings.email||p.woocommerce_ppec_paypal_settings.api_username&&p.woocommerce_ppec_paypal_settings.api_password),isEnabled:p.woocommerce_ppec_paypal_settings&&"yes"===p.woocommerce_ppec_paypal_settings.enabled,optionName:"woocommerce_ppec_paypal_settings"},{key:"klarna_checkout",title:Object(r.__)("Klarna Checkout","woocommerce-admin"),content:Object(r.__)("Choose the payment that you want, pay now, pay later or slice it. No credit card numbers, no passwords, no worries.","woocommerce-admin"),before:Object(c.createElement)("img",{src:u.e+"images/klarna-black.png",alt:""}),visible:["SE","FI","NO","NL"].includes(n)&&!f,plugins:["klarna-checkout-for-woocommerce"],container:Object(c.createElement)(me,{plugin:"checkout"}),isConfigured:t.includes("klarna-checkout-for-woocommerce"),isEnabled:p.woocommerce_kco_settings&&"yes"===p.woocommerce_kco_settings.enabled,optionName:"woocommerce_kco_settings"},{key:"klarna_payments",title:Object(r.__)("Klarna Payments","woocommerce-admin"),content:Object(r.__)("Choose the payment that you want, pay now, pay later or slice it. No credit card numbers, no passwords, no worries.","woocommerce-admin"),before:Object(c.createElement)("img",{src:u.e+"images/klarna-black.png",alt:""}),visible:["DK","DE","AT"].includes(n)&&!f,plugins:["klarna-payments-for-woocommerce"],container:Object(c.createElement)(me,{plugin:"payments"}),isConfigured:t.includes("klarna-payments-for-woocommerce"),isEnabled:p.woocommerce_klarna_payments_settings&&"yes"===p.woocommerce_klarna_payments_settings.enabled,optionName:"woocommerce_klarna_payments_settings"},{key:"square",title:Object(r.__)("Square","woocommerce-admin"),content:Object(c.createElement)(c.Fragment,null,Object(r.__)("Securely accept credit and debit cards with one low rate, no surprise fees (custom rates available). Sell online and in store and track sales and inventory in one place.","woocommerce-admin"),f&&Object(c.createElement)("span",{className:"text-style-strong"},Object(r.__)(" Selling CBD products is only supported by Square.","woocommerce-admin"))),before:Object(c.createElement)("img",{src:u.e+"images/square-black.png",alt:""}),visible:f&&["US"].includes(n)||["brick-mortar","brick-mortar-other"].includes(d.selling_venues)&&["US","CA","JP","GB","AU"].includes(n),plugins:["woocommerce-square"],container:Object(c.createElement)($,null),isConfigured:p.wc_square_refresh_tokens&&p.wc_square_refresh_tokens.length,isEnabled:p.woocommerce_square_credit_card_settings&&"yes"===p.woocommerce_square_credit_card_settings.enabled,optionName:"woocommerce_square_credit_card_settings",hasCbdIndustry:f},{key:"payfast",title:Object(r.__)("PayFast","woocommerce-admin"),content:Object(c.createElement)(c.Fragment,null,Object(r.__)("The PayFast extension for WooCommerce enables you to accept payments by Credit Card and EFT via one of South Africa’s most popular payment gateways. No setup fees or monthly subscription costs.","woocommerce-admin"),Object(c.createElement)("p",null,Object(r.__)("Selecting this extension will configure your store to use South African rands as the selected currency.","woocommerce-admin"))),before:Object(c.createElement)("img",{src:u.e+"images/payfast.png",alt:"PayFast logo"}),visible:["ZA"].includes(n)&&!f,plugins:["woocommerce-payfast-gateway"],container:Object(c.createElement)(_e,null),isConfigured:p.woocommerce_payfast_settings&&p.woocommerce_payfast_settings.merchant_id&&p.woocommerce_payfast_settings.merchant_key&&p.woocommerce_payfast_settings.pass_phrase,isEnabled:p.woocommerce_payfast_settings&&"yes"===p.woocommerce_payfast_settings.enabled,optionName:"woocommerce_payfast_settings"},{key:"eway",title:Object(r.__)("eWAY","woocommerce-admin"),content:Object(c.createElement)(c.Fragment,null,Object(r.__)("The eWAY extension for WooCommerce allows you to take credit card payments directly on your store without redirecting your customers to a third party site to make payment.","woocommerce-admin")),before:Object(c.createElement)("img",{src:u.e+"images/eway-logo.jpg",alt:"eWAY logo"}),visible:["AU","NZ"].includes(n)&&!f,plugins:["woocommerce-gateway-eway"],container:Object(c.createElement)(ye,null),isConfigured:p.woocommerce_eway_settings&&p.woocommerce_eway_settings.customer_api&&p.woocommerce_eway_settings.customer_password,isEnabled:p.woocommerce_eway_settings&&"yes"===p.woocommerce_eway_settings.enabled,optionName:"woocommerce_eway_settings"},{key:"razorpay",title:Object(r.__)("Razorpay","woocommerce-admin"),content:Object(c.createElement)(c.Fragment,null,Object(r.__)("The official Razorpay extension for WooCommerce allows you to accept credit cards, debit cards, netbanking, wallet, and UPI payments.","woocommerce-admin")),before:Object(c.createElement)(Ce,null),visible:"IN"===n&&!f,plugins:["woo-razorpay"],container:Object(c.createElement)(ve,null),isConfigured:p.woocommerce_razorpay_settings&&p.woocommerce_razorpay_settings.key_id&&p.woocommerce_razorpay_settings.key_secret,isEnabled:p.woocommerce_razorpay_settings&&"yes"===p.woocommerce_razorpay_settings.enabled,optionName:"woocommerce_razorpay_settings"},{key:"cod",title:Object(r.__)("Cash on delivery","woocommerce-admin"),content:Object(r.__)("Take payments in cash upon delivery.","woocommerce-admin"),before:Object(c.createElement)(V,null),visible:!f,isEnabled:p.woocommerce_cod_settings&&"yes"===p.woocommerce_cod_settings.enabled,optionName:"woocommerce_cod_settings"},{key:"bacs",title:Object(r.__)("Direct bank transfer","woocommerce-admin"),content:Object(r.__)("Take payments via bank transfer.","woocommerce-admin"),before:Object(c.createElement)(U,null),visible:!f,container:Object(c.createElement)(I,null),isConfigured:p.woocommerce_bacs_accounts&&p.woocommerce_bacs_accounts.length,isEnabled:p.woocommerce_bacs_settings&&"yes"===p.woocommerce_bacs_settings.enabled,optionName:"woocommerce_bacs_settings"}),Object(i.filter)(O,(function(e){return e.visible}))}},606:function(e,t,n){"use strict";n.r(t);var c=n(31),r=n.n(c),o=n(0),a=n(3),i=n(29),s=n(43),l=n.n(s),u=n(74),m=n(587);t.default=function(){var e="1"===Object(i.getQuery)()["wcpay-connection-success"],t=Object(o.useState)(e),n=r()(t,2),c=n[0],s=n[1];if(!c)return null;var p=function(){s(!1),Object(i.updateQueryString)({"wcpay-connection-success":void 0})},d=Object(a.__)("Help us build a better WooCommerce Payments experience","woocommerce-admin"),_=l()({mixedString:Object(a.__)("By agreeing to share non-sensitive {{link}}usage data{{/link}}, you’ll help us improve features and optimize the WooCommerce Payments experience. You can opt out at any time.","woocommerce-admin"),components:{link:Object(o.createElement)(u.Link,{href:"https://woocommerce.com/usage-tracking",target:"_blank",type:"external"})}});return Object(o.createElement)(m.a,{isDismissible:!1,title:d,message:_,acceptActionText:Object(a.__)("I agree","woocommerce-admin"),dismissActionText:Object(a.__)("No thanks","woocommerce-admin"),onContinue:p,onClose:p})}}}]);
|
1 |
+
(window.__wcAdmin_webpackJsonp=window.__wcAdmin_webpackJsonp||[]).push([[9],{585:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var c=n(25);function r(e){var t=Object(c.dispatch)("core/notices").createNotice;e.error_data&&e.errors&&Object.keys(e.errors).length?Object.keys(e.errors).forEach((function(n){t("error",e.errors[n].join(" "))})):e.message&&t(e.code?"error":"success",e.message)}},587:function(e,t,n){"use strict";var c=n(14),r=n.n(c),o=n(75),a=n.n(o),i=n(20),s=n.n(i),l=n(15),u=n.n(l),m=n(22),p=n.n(m),d=n(23),_=n.n(d),b=n(10),h=n.n(b),y=n(0),f=n(3),O=n(181),g=n(25),w=n(43),k=n.n(w),j=n(546),v=n(68),C=n(74),E=n(34);function S(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,c=h()(e);if(t){var r=h()(this).constructor;n=Reflect.construct(c,arguments,r)}else n=c.apply(this,arguments);return _()(this,n)}}var P=function(e){p()(c,e);var t,n=S(c);function c(e){var t;return s()(this,c),(t=n.call(this,e)).state={isLoadingScripts:!1,isRequestStarted:!1},t}return u()(c,[{key:"componentDidUpdate",value:(t=a()(r.a.mark((function e(t,n){var c,o,a,i,s,l,u,m,p,d;return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(c=this.props,o=c.hasErrors,a=c.isRequesting,i=c.onClose,s=c.onContinue,l=c.createNotice,u=this.state,m=u.isLoadingScripts,u.isRequestStarted){e.next=4;break}return e.abrupt("return");case 4:p=!a&&!m&&(t.isRequesting||n.isLoadingScripts)&&!o,d=!a&&t.isRequesting&&o,p&&(i(),s()),d&&(l("error",Object(f.__)("There was a problem updating your preferences.","woocommerce-admin")),i());case 8:case"end":return e.stop()}}),e,this)}))),function(e,n){return t.apply(this,arguments)})},{key:"updateTracking",value:function(e){var t=this,n=e.allowTracking,c=this.props.updateOptions;n&&"function"==typeof window.wcTracks.enable?(this.setState({isLoadingScripts:!0}),window.wcTracks.enable((function(){t._isMounted&&t.setState({isLoadingScripts:!1})}))):n||(window.wcTracks.isEnabled=!1);var r=n?"yes":"no";this.setState({isRequestStarted:!0}),c({woocommerce_allow_tracking:r})}},{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1}},{key:"render",value:function(){var e=this;if(this.props.allowTracking){var t=this.props,n=t.onClose,c=t.onContinue;return n(),c(),null}var r=this.props,o=r.isRequesting,a=r.title,i=void 0===a?Object(f.__)("Build a better WooCommerce","woocommerce-admin"):a,s=r.message,l=void 0===s?k()({mixedString:Object(f.__)("Get improved features and faster fixes by sharing non-sensitive data via {{link}}usage tracking{{/link}} that shows us how WooCommerce is used. No personal data is tracked or stored.","woocommerce-admin"),components:{link:Object(y.createElement)(C.Link,{href:"https://woocommerce.com/usage-tracking",target:"_blank",type:"external"})}}):s,u=r.dismissActionText,m=void 0===u?Object(f.__)("No thanks","woocommerce-admin"):u,p=r.acceptActionText,d=void 0===p?Object(f.__)("Yes, count me in!","woocommerce-admin"):p,_=this.state.isRequestStarted&&o;return Object(y.createElement)(j.a,{title:i,isDismissible:this.props.isDismissible,onRequestClose:function(){return e.props.onClose()},className:"woocommerce-usage-modal"},Object(y.createElement)("div",{className:"woocommerce-usage-modal__wrapper"},Object(y.createElement)("div",{className:"woocommerce-usage-modal__message"},l),Object(y.createElement)("div",{className:"woocommerce-usage-modal__actions"},Object(y.createElement)(v.a,{isSecondary:!0,isBusy:_,onClick:function(){return e.updateTracking({allowTracking:!1})}},m),Object(y.createElement)(v.a,{isPrimary:!0,isBusy:_,onClick:function(){return e.updateTracking({allowTracking:!0})}},d))))}}]),c}(y.Component);t.a=Object(O.a)(Object(g.withSelect)((function(e){var t=e(E.OPTIONS_STORE_NAME),n=t.getOption,c=t.getOptionsUpdatingError,r=t.isOptionsUpdating;return{allowTracking:"yes"===n("woocommerce_allow_tracking"),isRequesting:Boolean(r()),hasErrors:Boolean(c())}})),Object(g.withDispatch)((function(e){return{createNotice:e("core/notices").createNotice,updateOptions:e(E.OPTIONS_STORE_NAME).updateOptions}})))(P)},604:function(e,t,n){"use strict";n.d(t,"b",(function(){return Ee})),n.d(t,"a",(function(){return Se}));var c=n(0),r=n(3),o=n(44),a=n.n(o),i=n(2),s=n(43),l=n.n(s),u=n(35),m=n(74),p=n(34),d=n(36),_=n.n(d),b=n(14),h=n.n(b),y=n(75),f=n.n(y),O=n(20),g=n.n(O),w=n(15),k=n.n(w),j=n(13),v=n.n(j),C=n(22),E=n.n(C),S=n(23),P=n.n(S),x=n(10),R=n.n(x),N=n(5),A=n.n(N),T=n(68),L=n(181),M=n(25);function q(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,c=R()(e);if(t){var r=R()(this).constructor;n=Reflect.construct(c,arguments,r)}else n=c.apply(this,arguments);return P()(this,n)}}var D=function(e){E()(n,e);var t=q(n);function n(){var e;g()(this,n);for(var c=arguments.length,o=new Array(c),a=0;a<c;a++)o[a]=arguments[a];return e=t.call.apply(t,[this].concat(o)),A()(v()(e),"getInitialConfigValues",(function(){return{account_name:"",account_number:"",bank_name:"",sort_code:"",iban:"",bic:""}})),A()(v()(e),"validate",(function(e){var t={};return e.account_number||e.iban||(t.account_number=t.iban=Object(r.__)("Please enter an account number or IBAN","woocommerce-admin")),t})),A()(v()(e),"updateSettings",function(){var t=f()(h.a.mark((function t(n){var c,o,a,i;return h.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return c=e.props,o=c.updateOptions,a=c.createNotice,i=c.markConfigured,t.next=3,o({woocommerce_bacs_settings:{enabled:"yes"},woocommerce_bacs_accounts:[n]});case 3:t.sent.success?(i("bacs"),a("success",Object(r.__)("Direct bank transfer details added successfully","woocommerce-admin"))):a("error",Object(r.__)("There was a problem saving your payment settings","woocommerce-admin"));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()),e}return k()(n,[{key:"render",value:function(){var e=this.props.isOptionsRequesting;return Object(c.createElement)(m.Form,{initialValues:this.getInitialConfigValues(),onSubmitCallback:this.updateSettings,validate:this.validate},(function(t){var n=t.getInputProps,o=t.handleSubmit;return Object(c.createElement)(c.Fragment,null,Object(c.createElement)(m.H,null,Object(r.__)("Add your bank details","woocommerce-admin")),Object(c.createElement)("p",null,Object(r.__)("These details are required to receive payments via bank transfer","woocommerce-admin")),Object(c.createElement)("div",{className:"woocommerce-task-payment-method__fields"},Object(c.createElement)(m.TextControl,_()({label:Object(r.__)("Account name","woocommerce-admin"),required:!0},n("account_name"))),Object(c.createElement)(m.TextControl,_()({label:Object(r.__)("Account number","woocommerce-admin"),required:!0},n("account_number"))),Object(c.createElement)(m.TextControl,_()({label:Object(r.__)("Bank name","woocommerce-admin"),required:!0},n("bank_name"))),Object(c.createElement)(m.TextControl,_()({label:Object(r.__)("Sort code","woocommerce-admin"),required:!0},n("sort_code"))),Object(c.createElement)(m.TextControl,_()({label:Object(r.__)("IBAN","woocommerce-admin"),required:!0},n("iban"))),Object(c.createElement)(m.TextControl,_()({label:Object(r.__)("BIC / Swift","woocommerce-admin"),required:!0},n("bic")))),Object(c.createElement)(T.a,{isPrimary:!0,isBusy:e,onClick:o},Object(r.__)("Save","woocommerce-admin")))}))}}]),n}(c.Component),I=Object(L.a)(Object(M.withSelect)((function(e){return{isOptionsRequesting:(0,e(p.OPTIONS_STORE_NAME).isOptionsUpdating)()}})),Object(M.withDispatch)((function(e){return{createNotice:e("core/notices").createNotice,updateOptions:e(p.OPTIONS_STORE_NAME).updateOptions}})))(D),U=function(){return Object(c.createElement)("svg",{width:"96",height:"32",viewBox:"0 0 96 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(c.createElement)("rect",{width:"32",height:"32",rx:"16",fill:"#8E9196"}),Object(c.createElement)("mask",{id:"bacs0","mask-type":"alpha",maskUnits:"userSpaceOnUse",x:"8",y:"8",width:"16",height:"16"},Object(c.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.875 12.25L16 8.5L23.125 12.25V13.75H8.875V12.25ZM16 10.195L19.9075 12.25H12.0925L16 10.195ZM10.75 15.25H12.25V20.5H10.75V15.25ZM15.25 20.5V15.25H16.75V20.5H15.25ZM23.125 23.5V22H8.875V23.5H23.125ZM19.75 15.25H21.25V20.5H19.75V15.25Z",fill:"white"})),Object(c.createElement)("g",{mask:"url(#bacs0)"},Object(c.createElement)("rect",{x:"7",y:"7",width:"18",height:"18",fill:"white"})),Object(c.createElement)("mask",{id:"bacs1","mask-type":"alpha",maskUnits:"userSpaceOnUse",x:"39",y:"10",width:"18",height:"12"},Object(c.createElement)("path",{d:"M39 17L53.17 17L49.59 20.59L51 22L57 16L51 10L49.59 11.41L53.17 15L39 15L39 17Z",fill:"white"})),Object(c.createElement)("g",{mask:"url(#bacs1)"},Object(c.createElement)("rect",{x:"60",y:"28",width:"24",height:"24",transform:"rotate(-180 60 28)",fill:"#8E9196"})),Object(c.createElement)("rect",{x:"64",width:"32",height:"32",rx:"16",fill:"#8E9196"}),Object(c.createElement)("mask",{id:"bacs2","mask-type":"alpha",maskUnits:"userSpaceOnUse",x:"72",y:"8",width:"16",height:"16"},Object(c.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M72.875 12.25L80 8.5L87.125 12.25V13.75H72.875V12.25ZM80 10.195L83.9075 12.25H76.0925L80 10.195ZM74.75 15.25H76.25V20.5H74.75V15.25ZM79.25 20.5V15.25H80.75V20.5H79.25ZM87.125 23.5V22H72.875V23.5H87.125ZM83.75 15.25H85.25V20.5H83.75V15.25Z",fill:"white"})),Object(c.createElement)("g",{mask:"url(#bacs2)"},Object(c.createElement)("rect",{x:"71",y:"7",width:"18",height:"18",fill:"white"})))},V=function(){return Object(c.createElement)("svg",{width:"96",height:"32",viewBox:"0 0 96 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(c.createElement)("rect",{width:"32",height:"32",rx:"16",fill:"#8E9196"}),Object(c.createElement)("mask",{id:"cod-mask-0","mask-type":"alpha",maskUnits:"userSpaceOnUse",x:"7",y:"10",width:"18",height:"12"},Object(c.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22 13H19.75V10H9.25C8.425 10 7.75 10.675 7.75 11.5V19.75H9.25C9.25 20.995 10.255 22 11.5 22C12.745 22 13.75 20.995 13.75 19.75H18.25C18.25 20.995 19.255 22 20.5 22C21.745 22 22.75 20.995 22.75 19.75H24.25V16L22 13ZM21.625 14.125L23.095 16H19.75V14.125H21.625ZM10.75 19.75C10.75 20.1625 11.0875 20.5 11.5 20.5C11.9125 20.5 12.25 20.1625 12.25 19.75C12.25 19.3375 11.9125 19 11.5 19C11.0875 19 10.75 19.3375 10.75 19.75ZM13.165 18.25C12.7525 17.7925 12.1675 17.5 11.5 17.5C10.8325 17.5 10.2475 17.7925 9.835 18.25H9.25V11.5H18.25V18.25H13.165ZM19.75 19.75C19.75 20.1625 20.0875 20.5 20.5 20.5C20.9125 20.5 21.25 20.1625 21.25 19.75C21.25 19.3375 20.9125 19 20.5 19C20.0875 19 19.75 19.3375 19.75 19.75Z",fill:"white"})),Object(c.createElement)("g",{mask:"url(#cod-mask-0)"},Object(c.createElement)("rect",{x:"7",y:"7",width:"18",height:"18",fill:"white"})),Object(c.createElement)("mask",{id:"cod-mask-1","mask-type":"alpha",maskUnits:"userSpaceOnUse",x:"39",y:"10",width:"18",height:"12"},Object(c.createElement)("path",{d:"M39 17L53.17 17L49.59 20.59L51 22L57 16L51 10L49.59 11.41L53.17 15L39 15L39 17Z",fill:"white"})),Object(c.createElement)("g",{mask:"url(#cod-mask-1)"},Object(c.createElement)("rect",{x:"60",y:"28",width:"24",height:"24",transform:"rotate(-180 60 28)",fill:"#8E9196"})),Object(c.createElement)("rect",{x:"64",width:"32",height:"32",rx:"16",fill:"#8E9196"}),Object(c.createElement)("mask",{id:"cod-mask-2","mask-type":"alpha",maskUnits:"userSpaceOnUse",x:"76",y:"9",width:"8",height:"14"},Object(c.createElement)("path",{d:"M80.2926 15.175C78.5901 14.7325 78.0426 14.275 78.0426 13.5625C78.0426 12.745 78.8001 12.175 80.0676 12.175C81.4026 12.175 81.8976 12.8125 81.9426 13.75H83.6001C83.5476 12.46 82.7601 11.275 81.1926 10.8925V9.25H78.9426V10.87C77.4876 11.185 76.3176 12.13 76.3176 13.5775C76.3176 15.31 77.7501 16.1725 79.8426 16.675C81.7176 17.125 82.0926 17.785 82.0926 18.4825C82.0926 19 81.7251 19.825 80.0676 19.825C78.5226 19.825 77.9151 19.135 77.8326 18.25H76.1826C76.2726 19.8925 77.5026 20.815 78.9426 21.1225V22.75H81.1926V21.1375C82.6551 20.86 83.8176 20.0125 83.8176 18.475C83.8176 16.345 81.9951 15.6175 80.2926 15.175Z",fill:"white"})),Object(c.createElement)("g",{mask:"url(#cod-mask-2)"},Object(c.createElement)("rect",{x:"71",y:"7",width:"18",height:"18",fill:"white"})))},F=n(585),H=n(29);function Z(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);t&&(c=c.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,c)}return n}function B(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Z(Object(n),!0).forEach((function(t){A()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Z(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function z(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,c=R()(e);if(t){var r=R()(this).constructor;n=Reflect.construct(c,arguments,r)}else n=c.apply(this,arguments);return P()(this,n)}}var W=function(e){E()(i,e);var t,n,o=z(i);function i(e){var t;return g()(this,i),(t=o.call(this,e)).state={oAuthConnectFailed:!1,connectURL:null,isPending:!1},t.updateSettings=t.updateSettings.bind(v()(t)),t}return k()(i,[{key:"componentDidMount",value:function(){var e=this.state.oAuthConnectFailed,t=this.props.stripeSettings,n=Object(H.getQuery)();if(n["stripe-connect"]&&"1"===n["stripe-connect"]&&(t.publishable_key&&t.secret_key))return void this.completeMethod();e||this.fetchOAuthConnectURL()}},{key:"componentDidUpdate",value:function(e){var t=this.props.activePlugins;!e.activePlugins.includes("woocommerce-gateway-stripe")&&t.includes("woocommerce-gateway-stripe")&&this.fetchOAuthConnectURL()}},{key:"completeMethod",value:function(){var e=this.props,t=e.createNotice,n=e.markConfigured;this.setState({isPending:!1}),t("success",Object(r.__)("Stripe connected successfully.","woocommerce-admin")),n("stripe")}},{key:"fetchOAuthConnectURL",value:(n=f()(h.a.mark((function e(){var t;return h.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.props.activePlugins.includes("woocommerce-gateway-stripe")){e.next=3;break}return e.abrupt("return");case 3:return e.prev=3,this.setState({isPending:!0}),e.next=7,a()({path:p.WCS_NAMESPACE+"/connect/stripe/oauth/init",method:"POST",data:{returnUrl:Object(u.f)("admin.php?page=wc-admin&task=payments&method=stripe&stripe-connect=1")}});case 7:if((t=e.sent)&&t.oauthUrl){e.next=11;break}return this.setState({oAuthConnectFailed:!0,isPending:!1}),e.abrupt("return");case 11:this.setState({connectURL:t.oauthUrl,isPending:!1}),e.next=17;break;case 14:e.prev=14,e.t0=e.catch(3),this.setState({oAuthConnectFailed:!0,isPending:!1});case 17:case"end":return e.stop()}}),e,this,[[3,14]])}))),function(){return n.apply(this,arguments)})},{key:"renderConnectButton",value:function(){var e=this.state.connectURL;return Object(c.createElement)(T.a,{isPrimary:!0,href:e},Object(r.__)("Connect","woocommerce-admin"))}},{key:"updateSettings",value:(t=f()(h.a.mark((function e(t){var n,c,o,a,i,s;return h.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return c=this.props,o=c.updateOptions,a=c.stripeSettings,i=c.createNotice,s=t.publishable_key.match(/^pk_live_/)?"":"test_",e.next=4,o({woocommerce_stripe_settings:B(B({},a),{},(n={},A()(n,s+"publishable_key",t.publishable_key),A()(n,s+"secret_key",t.secret_key),A()(n,"testmode","test_"===s?"yes":"no"),A()(n,"enabled","yes"),n))});case 4:e.sent.success?this.completeMethod():i("error",Object(r.__)("There was a problem saving your payment settings","woocommerce-admin"));case 6:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"getInitialConfigValues",value:function(){return{publishable_key:"",secret_key:""}}},{key:"validateManualConfig",value:function(e){var t={};return null===e.publishable_key.match(/^pk_(live|test)_[a-zA-Z0-9_]+/)&&(t.publishable_key=Object(r.__)('Please enter a valid publishable key (starting with "pk_").',"woocommerce-admin")),null===e.secret_key.match(/^[rs]k_(live|test)_[a-zA-Z0-9_]+/)?t.secret_key=Object(r.__)('Please enter a valid secret key (starting with "sk_" or "rk_").',"woocommerce-admin"):e.secret_key.slice(3,7)!==e.publishable_key.slice(3,7)&&(t.secret_key=Object(r.__)("Please enter a secret key in the same mode as the publishable key.","woocommerce-admin")),t}},{key:"renderManualConfig",value:function(){var e=this.props.isOptionsUpdating,t=l()({mixedString:Object(r.__)("Your API details can be obtained from your {{docsLink}}Stripe account{{/docsLink}}. Don’t have a Stripe account? {{registerLink}}Create one.{{/registerLink}}","woocommerce-admin"),components:{docsLink:Object(c.createElement)(m.Link,{href:"https://stripe.com/docs/keys",target:"_blank",type:"external"}),registerLink:Object(c.createElement)(m.Link,{href:"https://dashboard.stripe.com/register",target:"_blank",type:"external"})}});return Object(c.createElement)(m.Form,{initialValues:this.getInitialConfigValues(),onSubmitCallback:this.updateSettings,validate:this.validateManualConfig},(function(n){var o=n.getInputProps,a=n.handleSubmit;return Object(c.createElement)(c.Fragment,null,Object(c.createElement)(m.TextControl,_()({label:Object(r.__)("Publishable Key","woocommerce-admin"),required:!0},o("publishable_key"))),Object(c.createElement)(m.TextControl,_()({label:Object(r.__)("Secret Key","woocommerce-admin"),required:!0},o("secret_key"))),Object(c.createElement)(T.a,{isPrimary:!0,isBusy:e,onClick:a},Object(r.__)("Proceed","woocommerce-admin")),Object(c.createElement)("p",null,t))}))}},{key:"renderOauthConfig",value:function(){var e=this,t=l()({mixedString:Object(r.__)('By clicking "Connect," you agree to the {{tosLink}}Terms of Service{{/tosLink}}. Or {{manualConfigLink}}manually enter your Stripe API details{{/manualConfigLink}} instead.',"woocommerce-admin"),components:{tosLink:Object(c.createElement)(m.Link,{href:"https://wordpress.com/tos",target:"_blank",type:"external"}),manualConfigLink:Object(c.createElement)(T.a,{isLink:!0,onClick:function(){e.setState({connectURL:null})}})}});return Object(c.createElement)(c.Fragment,null,Object(c.createElement)("p",null,this.renderConnectButton()),t)}},{key:"getConnectStep",value:function(){var e=this.state,t=e.connectURL,n=e.isPending,c=e.oAuthConnectFailed,o={key:"connect",label:Object(r.__)("Connect your Stripe account","woocommerce-admin")};return n?o:B(B({},o),{},!c&&t?{description:Object(r.__)("A Stripe account is required to process payments.","woocommerce-admin"),content:this.renderOauthConfig()}:{content:this.renderManualConfig()})}},{key:"render",value:function(){var e=this.props,t=e.installStep,n=e.isOptionsUpdating,r=this.state.isPending;return Object(c.createElement)(m.Stepper,{isVertical:!0,isPending:!t.isComplete||n||r,currentStep:t.isComplete?"connect":"install",steps:[t,this.getConnectStep()]})}}]),i}(c.Component),Y=Object(L.a)(Object(M.withSelect)((function(e){var t=e(p.OPTIONS_STORE_NAME),n=t.getOption,c=t.isOptionsUpdating;return{activePlugins:(0,e(p.PLUGINS_STORE_NAME).getActivePlugins)(),isOptionsUpdating:c(),stripeSettings:n("woocommerce_stripe_settings")||[]}})),Object(M.withDispatch)((function(e){return{createNotice:e("core/notices").createNotice,updateOptions:e(p.OPTIONS_STORE_NAME).updateOptions}})))(W);function K(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);t&&(c=c.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,c)}return n}function J(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?K(Object(n),!0).forEach((function(t){A()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):K(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Q(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,c=R()(e);if(t){var r=R()(this).constructor;n=Reflect.construct(c,arguments,r)}else n=c.apply(this,arguments);return P()(this,n)}}var G=function(e){E()(o,e);var t,n=Q(o);function o(e){var t;return g()(this,o),(t=n.call(this,e)).state={isPending:!1},t.connect=t.connect.bind(v()(t)),t}return k()(o,[{key:"componentDidMount",value:function(){var e=this.props,t=e.createNotice,n=e.markConfigured,c=Object(H.getQuery)();c["square-connect"]&&"1"===c["square-connect"]&&(t("success",Object(r.__)("Square connected successfully.","woocommerce-admin")),n("square"))}},{key:"connect",value:(t=f()(h.a.mark((function e(){var t,n,c,o,i,s,l,u;return h.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.props,n=t.createNotice,c=t.hasCbdIndustry,o=t.options,i=t.updateOptions,this.setState({isPending:!0}),i({woocommerce_square_credit_card_settings:J(J({},o.woocommerce_square_credit_card_settings),{},{enabled:"yes"})}),s=Object(r.__)("There was an error connecting to Square. Please try again or skip to connect later in store settings.","woocommerce-admin"),e.prev=4,l=null,c&&(l=window.open("/","_blank")),e.next=9,a()({path:p.WC_ADMIN_NAMESPACE+"/plugins/connect-square",method:"POST"});case 9:if((u=e.sent)&&u.connectUrl){e.next=15;break}return this.setState({isPending:!1}),n("error",s),c&&l.close(),e.abrupt("return");case 15:this.setState({isPending:!0}),this.redirect(u.connectUrl,l),e.next=23;break;case 19:e.prev=19,e.t0=e.catch(4),this.setState({isPending:!1}),n("error",s);case 23:case"end":return e.stop()}}),e,this,[[4,19]])}))),function(){return t.apply(this,arguments)})},{key:"redirect",value:function(e,t){t?(t.location.href=e,window.location=Object(u.f)("admin.php?page=wc-admin")):window.location=e}},{key:"render",value:function(){var e=this.props.installStep,t=this.state.isPending;return Object(c.createElement)(m.Stepper,{isVertical:!0,isPending:!e.isComplete||t,currentStep:e.isComplete?"connect":"install",steps:[e,{key:"connect",label:Object(r.__)("Connect your Square account","woocommerce-admin"),description:Object(r.__)("A Square account is required to process payments. You will be redirected to the Square website to create the connection.","woocommerce-admin"),content:Object(c.createElement)(c.Fragment,null,Object(c.createElement)(T.a,{isPrimary:!0,isBusy:t,onClick:this.connect},Object(r.__)("Connect","woocommerce-admin")))}]})}}]),o}(c.Component),$=Object(L.a)(Object(M.withSelect)((function(e){var t=e(p.OPTIONS_STORE_NAME),n=t.getOption,c=t.isResolving;return{options:n("woocommerce_square_credit_card_settings"),optionsIsRequesting:c("getOption",["woocommerce_square_credit_card_settings"])}})),Object(M.withDispatch)((function(e){return{createNotice:e("core/notices").createNotice,updateOptions:e(p.OPTIONS_STORE_NAME).updateOptions}})))(G);function X(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,c=R()(e);if(t){var r=R()(this).constructor;n=Reflect.construct(c,arguments,r)}else n=c.apply(this,arguments);return P()(this,n)}}var ee=function(e){E()(n,e);var t=X(n);function n(){return g()(this,n),t.apply(this,arguments)}return k()(n,[{key:"componentDidMount",value:function(){var e=this.props,t=e.createNotice,n=e.markConfigured;Object(H.getQuery)()["wcpay-connection-success"]&&(t("success",Object(r.__)("WooCommerce Payments connected successfully.","woocommerce-admin")),n("wcpay",{"wcpay-connection-success":"1"}))}},{key:"render",value:function(){return null}}]),n}(c.Component),te=Object(M.withDispatch)((function(e){return{createNotice:e("core/notices").createNotice}}))(ee),ne=function(){return Object(c.createElement)("svg",{width:"100",height:"64",viewBox:"-10 0 120 64",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(c.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.78073 0.5H91.1787C96.3299 0.5 100.5 4.77335 100.5 10.0522V41.8929C100.5 47.1717 96.3299 51.4451 91.1787 51.4451H61.9883L65.9948 61.5L48.3742 51.4451H9.82161C4.67036 51.4451 0.500298 47.1717 0.500298 41.8929V10.0522C0.459415 4.81524 4.62947 0.5 9.78073 0.5Z",fill:"#7F54B3"}),Object(c.createElement)("path",{d:"M5.48791 9.1725C6.06028 8.37648 6.91882 7.95752 8.06354 7.87373C10.1486 7.70615 11.3342 8.71165 11.6204 10.8902C12.8877 19.6464 14.2778 27.0619 15.7495 33.1368L24.7029 15.6663C25.5206 14.0743 26.5426 13.2364 27.7691 13.1526C29.568 13.0269 30.6718 14.2 31.1215 16.6718C32.1436 22.2439 33.4519 26.9781 35.0054 31.0001C36.0684 20.3586 37.8672 12.6917 40.402 7.95753C41.0152 6.78445 41.9146 6.19791 43.1002 6.11412C44.0405 6.03033 44.8991 6.3236 45.6759 6.95203C46.4526 7.58047 46.8615 8.37648 46.9432 9.34008C46.9841 10.0942 46.8615 10.7226 46.5344 11.3511C44.94 14.3676 43.6317 19.4369 42.5688 26.4754C41.5467 33.3044 41.1787 38.6251 41.424 42.4376C41.5058 43.485 41.3423 44.4067 40.9334 45.2027C40.4428 46.1244 39.707 46.6272 38.7666 46.711C37.7037 46.7948 36.5998 46.292 35.5369 45.1608C31.7348 41.1807 28.7094 35.2316 26.5018 27.3133C23.8444 32.6759 21.882 36.6979 20.6146 39.3792C18.2025 44.1134 16.1584 46.5434 14.4413 46.6691C13.3374 46.7529 12.3971 45.7893 11.5795 43.7783C9.49445 38.2899 7.24589 27.6904 4.83379 11.9795C4.71114 10.8902 4.91555 9.92662 5.48791 9.1725Z",fill:"white"}),Object(c.createElement)("path",{d:"M93.3864 15.7499C91.9146 13.1105 89.7478 11.5185 86.8451 10.89C86.0683 10.7225 85.3324 10.6387 84.6374 10.6387C80.7127 10.6387 77.5238 12.7335 75.0299 16.923C72.904 20.4841 71.8411 24.4223 71.8411 28.7376C71.8411 31.9635 72.4952 34.7286 73.8034 37.0329C75.2752 39.6723 77.442 41.2644 80.3447 41.8928C81.1215 42.0604 81.8574 42.1442 82.5524 42.1442C86.518 42.1442 89.7069 40.0494 92.1599 35.8598C94.2858 32.2568 95.3488 28.3186 95.3488 24.0034C95.3488 20.7355 94.6946 18.0123 93.3864 15.7499ZM88.2351 27.355C87.6628 30.1201 86.6407 32.173 85.128 33.5556C83.9424 34.6449 82.8386 35.1057 81.8165 34.8962C80.8353 34.6868 80.0177 33.8069 79.4044 32.173C78.9138 30.8742 78.6685 29.5755 78.6685 28.3605C78.6685 27.3131 78.7503 26.2657 78.9547 25.3021C79.3226 23.5844 80.0177 21.9086 81.1215 20.3166C82.4706 18.2637 83.9015 17.4258 85.3733 17.719C86.3545 17.9285 87.1722 18.8083 87.7854 20.4422C88.276 21.741 88.5213 23.0398 88.5213 24.2547C88.5213 25.344 88.3987 26.3914 88.2351 27.355Z",fill:"white"}),Object(c.createElement)("path",{d:"M67.7528 15.7499C66.281 13.1105 64.0734 11.5185 61.2116 10.89C60.4348 10.7225 59.6989 10.6387 59.0039 10.6387C55.0791 10.6387 51.8903 12.7335 49.3964 16.923C47.2705 20.4841 46.2075 24.4223 46.2075 28.7376C46.2075 31.9635 46.8616 34.7286 48.1699 37.0329C49.6417 39.6723 51.8085 41.2644 54.7112 41.8928C55.488 42.0604 56.2238 42.1442 56.9189 42.1442C60.8845 42.1442 64.0734 40.0494 66.5263 35.8598C68.6523 32.2568 69.7152 28.3186 69.7152 24.0034C69.7152 20.7355 69.0611 18.0123 67.7528 15.7499ZM62.6016 27.355C62.0292 30.1201 61.0071 32.173 59.4945 33.5556C58.3089 34.6449 57.205 35.1057 56.183 34.8962C55.2018 34.6868 54.3841 33.8069 53.7709 32.173C53.2803 30.8742 53.035 29.5755 53.035 28.3605C53.035 27.3131 53.1167 26.2657 53.3212 25.3021C53.6891 23.5844 54.3841 21.9086 55.4879 20.3166C56.8371 18.2637 58.268 17.4258 59.7398 17.719C60.721 17.9285 61.5386 18.8083 62.1519 20.4422C62.6425 21.741 62.8878 23.0398 62.8878 24.2547C62.8878 25.344 62.806 26.3914 62.6016 27.355Z",fill:"white"}))},ce=n(589),re=n(33);function oe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);t&&(c=c.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,c)}return n}function ae(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oe(Object(n),!0).forEach((function(t){A()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ie(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,c=R()(e);if(t){var r=R()(this).constructor;n=Reflect.construct(c,arguments,r)}else n=c.apply(this,arguments);return P()(this,n)}}var se=function(e){E()(i,e);var t,n,o=ie(i);function i(e){var t;return g()(this,i),(t=o.call(this,e)).state={autoConnectFailed:!1,connectURL:"",isPending:!1},t.updateSettings=t.updateSettings.bind(v()(t)),t.validate=t.validate.bind(v()(t)),t}return k()(i,[{key:"componentDidMount",value:function(){var e=this.props,t=e.createNotice,n=e.markConfigured,c=Object(H.getQuery)();if(c["paypal-connect"])return"1"===c["paypal-connect"]?(t("success",Object(r.__)("PayPal connected successfully.","woocommerce-admin")),void n("paypal")):void this.setState({autoConnectFailed:!0});this.fetchOAuthConnectURL()}},{key:"componentDidUpdate",value:function(e){var t=this.props.activePlugins;!e.activePlugins.includes("woocommerce-gateway-paypal-express-checkout")&&t.includes("woocommerce-gateway-paypal-express-checkout")&&this.fetchOAuthConnectURL()}},{key:"isWooCommerceServicesConnected",value:function(){var e=this.props,t=e.activePlugins,n=e.isJetpackConnected,c=e.wcsTosAccepted;return n&&c&&t.includes("woocommerce-services")}},{key:"fetchOAuthConnectURL",value:(n=f()(h.a.mark((function e(){var t;return h.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.props.activePlugins.includes("woocommerce-gateway-paypal-express-checkout")){e.next=3;break}return e.abrupt("return");case 3:return this.setState({isPending:!0}),e.prev=4,e.next=7,a()({path:p.WC_ADMIN_NAMESPACE+"/plugins/connect-paypal",method:"POST"});case 7:if((t=e.sent)&&t.connectUrl){e.next=11;break}return this.setState({autoConnectFailed:!0,isPending:!1}),e.abrupt("return");case 11:this.setState({connectURL:t.connectUrl,isPending:!1}),e.next=17;break;case 14:e.prev=14,e.t0=e.catch(4),this.setState({autoConnectFailed:!0,isPending:!1});case 17:case"end":return e.stop()}}),e,this,[[4,14]])}))),function(){return n.apply(this,arguments)})},{key:"updateSettings",value:(t=f()(h.a.mark((function e(t){var n,c,o,a,i,s;return h.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=this.props,c=n.createNotice,o=n.options,a=n.updateOptions,i=n.markConfigured,s=ae(ae({},o.woocommerce_ppec_paypal_settings),{},{enabled:"yes"}),t.create_account?(s.reroute_requests="yes",s.email=t.account_email):(s.api_username=t.api_username,s.api_password=t.api_password),e.next=5,a({woocommerce_ppec_paypal_settings:s});case 5:e.sent.success?(c("success",Object(r.__)("PayPal connected successfully.","woocommerce-admin")),i("paypal")):c("error",Object(r.__)("There was a problem saving your payment settings.","woocommerce-admin"));case 7:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"getInitialConfigValues",value:function(){return{api_username:"",api_password:"",create_account:this.isWooCommerceServicesConnected(),account_email:""}}},{key:"validate",value:function(e){var t={};return e.create_account||e.api_username||(t.api_username=Object(r.__)("Please enter your API username","woocommerce-admin")),e.create_account||e.api_password||(t.api_password=Object(r.__)("Please enter your API password","woocommerce-admin")),this.isWooCommerceServicesConnected()&&e.create_account&&!Object(re.isEmail)(e.account_email)&&(t.account_email=Object(r.__)("Please enter a valid email address","woocommerce-admin")),t}},{key:"renderAutomaticConfig",value:function(){var e=this.props.isOptionsUpdating,t=this.state,n=t.autoConnectFailed,o=t.connectURL,a=t.isPending,i=this.isWooCommerceServicesConnected(),s=this.getInitialConfigValues();return Object(c.createElement)(m.Form,{initialValues:s,onSubmitCallback:this.updateSettings,validate:this.validate},(function(t){var s=t.getInputProps,u=t.handleSubmit,p=t.values;return Object(c.createElement)(c.Fragment,null,i&&Object(c.createElement)("div",{className:"woocommerce-task-payments__paypal-auto-create-account"},Object(c.createElement)(ce.a,_()({label:Object(r.__)("Create a PayPal account for me","woocommerce-admin")},s("create_account"))),p.create_account&&Object(c.createElement)(m.TextControl,_()({label:Object(r.__)("Email address","woocommerce-admin"),type:"email"},s("account_email")))),!a&&(n||!o)&&(!i||!p.create_account)&&Object(c.createElement)(c.Fragment,null,Object(c.createElement)(m.TextControl,_()({label:Object(r.__)("API Username","woocommerce-admin"),required:!0},s("api_username"))),Object(c.createElement)(m.TextControl,_()({label:Object(r.__)("API Password","woocommerce-admin"),required:!0},s("api_password"))),Object(c.createElement)(T.a,{onClick:u,isPrimary:!0,isBusy:e},Object(r.__)("Proceed","woocommerce-admin")),Object(c.createElement)("p",null,l()({mixedString:Object(r.__)("Your API details can be obtained from your {{link}}PayPal account{{/link}}","woocommerce-admin"),components:{link:Object(c.createElement)(m.Link,{href:"https://docs.woocommerce.com/document/paypal-express-checkout/#section-8",target:"_blank",type:"external"})}}))),i&&p.create_account&&Object(c.createElement)(T.a,{onClick:u,isPrimary:!0,isBusy:e},Object(r.__)("Create account","woocommerce-admin")),!n&&o&&(!i||!p.create_account)&&Object(c.createElement)(c.Fragment,null,Object(c.createElement)(T.a,{isPrimary:!0,href:o},Object(r.__)("Connect","woocommerce-admin")),Object(c.createElement)("p",null,Object(r.__)("You will be redirected to the PayPal website to create the connection.","woocommerce-admin"))))}))}},{key:"getConnectStep",value:function(){return{key:"connect",label:Object(r.__)("Connect your PayPal account","woocommerce-admin"),description:Object(r.__)("A PayPal account is required to process payments. Connect your store to your PayPal account.","woocommerce-admin"),content:this.renderAutomaticConfig()}}},{key:"render",value:function(){var e=this.props.installStep,t=this.state.isPending;return Object(c.createElement)(m.Stepper,{isVertical:!0,isPending:!e.isComplete||t,currentStep:e.isComplete?"connect":"install",steps:[e,this.getConnectStep()]})}}]),i}(c.Component);se.defaultProps={manualConfig:!1};var le=Object(L.a)(Object(M.withSelect)((function(e){var t=e(p.OPTIONS_STORE_NAME),n=t.getOption,c=t.isOptionsUpdating,r=e(p.PLUGINS_STORE_NAME),o=r.getActivePlugins,a=r.isJetpackConnected,i=n("woocommerce_ppec_paypal_settings"),s=n("wc_connect_options");return{activePlugins:o(),isJetpackConnected:a(),isOptionsUpdating:c(),options:i,wcsTosAccepted:s&&s.tos_accepted}})),Object(M.withDispatch)((function(e){return{createNotice:e("core/notices").createNotice,updateOptions:e(p.OPTIONS_STORE_NAME).updateOptions}})))(se);function ue(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,c=R()(e);if(t){var r=R()(this).constructor;n=Reflect.construct(c,arguments,r)}else n=c.apply(this,arguments);return P()(this,n)}}var me=function(e){E()(n,e);var t=ue(n);function n(e){var c;return g()(this,n),(c=t.call(this,e)).continue=c.continue.bind(v()(c)),c}return k()(n,[{key:"continue",value:function(){var e=this.props;(0,e.markConfigured)("checkout"===e.plugin?"klarna-checkout":"klarna-payments")}},{key:"renderConnectStep",value:function(){var e=this.props.plugin,t="checkout"===e?"klarna-checkout":"klarna-payments",n="checkout"===e?"kco":"klarna_payments",o=Object(c.createElement)(m.Link,{href:u.a+"admin.php?page=wc-settings&tab=checkout§ion="+n,target:"_blank",type:"external"}),a=Object(c.createElement)(m.Link,{href:"https://docs.woocommerce.com/document/"+t+"/#section-3",target:"_blank",type:"external"}),i=l()({mixedString:Object(r.__)("Klarna can be configured under your {{link}}store settings{{/link}}. Figure out {{helpLink}}what you need{{/helpLink}}.","woocommerce-admin"),components:{link:o,helpLink:a}});return Object(c.createElement)(c.Fragment,null,Object(c.createElement)("p",null,i),Object(c.createElement)(T.a,{isPrimary:!0,onClick:this.continue},Object(r.__)("Continue","woocommerce-admin")))}},{key:"render",value:function(){var e=this.props.installStep;return Object(c.createElement)(m.Stepper,{isVertical:!0,isPending:!e.isComplete,currentStep:e.isComplete?"connect":"install",steps:[e,{key:"connect",label:Object(r.__)("Connect your Klarna account","woocommerce-admin"),content:this.renderConnectStep()}]})}}]),n}(c.Component);function pe(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,c=R()(e);if(t){var r=R()(this).constructor;n=Reflect.construct(c,arguments,r)}else n=c.apply(this,arguments);return P()(this,n)}}var de=function(e){E()(n,e);var t=pe(n);function n(){var e;g()(this,n);for(var c=arguments.length,o=new Array(c),a=0;a<c;a++)o[a]=arguments[a];return e=t.call.apply(t,[this].concat(o)),A()(v()(e),"getInitialConfigValues",(function(){return{merchant_id:"",merchant_key:"",pass_phrase:""}})),A()(v()(e),"validate",(function(e){var t={};return e.merchant_id||(t.merchant_id=Object(r.__)("Please enter your merchant ID","woocommerce-admin")),e.merchant_key||(t.merchant_key=Object(r.__)("Please enter your merchant key","woocommerce-admin")),e.pass_phrase||(t.pass_phrase=Object(r.__)("Please enter your passphrase","woocommerce-admin")),t})),A()(v()(e),"updateSettings",function(){var t=f()(h.a.mark((function t(n){var c,o,a,i;return h.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return c=e.props,o=c.updateOptions,a=c.createNotice,i=c.markConfigured,t.next=3,o({woocommerce_currency:"ZAR",woocommerce_payfast_settings:{merchant_id:n.merchant_id,merchant_key:n.merchant_key,pass_phrase:n.pass_phrase,enabled:"yes"}});case 3:t.sent.success?(i("payfast"),a("success",Object(r.__)("PayFast connected successfully","woocommerce-admin"))):a("error",Object(r.__)("There was a problem saving your payment settings","woocommerce-admin"));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()),e}return k()(n,[{key:"renderConnectStep",value:function(){var e=this.props.isOptionsRequesting,t=l()({mixedString:Object(r.__)("Your API details can be obtained from your {{link}}PayFast account{{/link}}","woocommerce-admin"),components:{link:Object(c.createElement)(m.Link,{href:"https://www.payfast.co.za/",target:"_blank",type:"external"})}});return Object(c.createElement)(m.Form,{initialValues:this.getInitialConfigValues(),onSubmitCallback:this.updateSettings,validate:this.validate},(function(n){var o=n.getInputProps,a=n.handleSubmit;return Object(c.createElement)(c.Fragment,null,Object(c.createElement)(m.TextControl,_()({label:Object(r.__)("Merchant ID","woocommerce-admin"),required:!0},o("merchant_id"))),Object(c.createElement)(m.TextControl,_()({label:Object(r.__)("Merchant Key","woocommerce-admin"),required:!0},o("merchant_key"))),Object(c.createElement)(m.TextControl,_()({label:Object(r.__)("Passphrase","woocommerce-admin"),required:!0},o("pass_phrase"))),Object(c.createElement)(T.a,{isPrimary:!0,isBusy:e,onClick:a},Object(r.__)("Proceed","woocommerce-admin")),Object(c.createElement)("p",null,t))}))}},{key:"render",value:function(){var e=this.props,t=e.installStep,n=e.isOptionsRequesting;return Object(c.createElement)(m.Stepper,{isVertical:!0,isPending:!t.isComplete||n,currentStep:t.isComplete?"connect":"install",steps:[t,{key:"connect",label:Object(r.__)("Connect your PayFast account","woocommerce-admin"),content:this.renderConnectStep()}]})}}]),n}(c.Component),_e=Object(L.a)(Object(M.withSelect)((function(e){return{isOptionsRequesting:(0,e(p.OPTIONS_STORE_NAME).isOptionsUpdating)()}})),Object(M.withDispatch)((function(e){return{createNotice:e("core/notices").createNotice,updateOptions:e(p.OPTIONS_STORE_NAME).updateOptions}})))(de);function be(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,c=R()(e);if(t){var r=R()(this).constructor;n=Reflect.construct(c,arguments,r)}else n=c.apply(this,arguments);return P()(this,n)}}var he=function(e){E()(n,e);var t=be(n);function n(){var e;g()(this,n);for(var c=arguments.length,o=new Array(c),a=0;a<c;a++)o[a]=arguments[a];return e=t.call.apply(t,[this].concat(o)),A()(v()(e),"getInitialConfigValues",(function(){return{customer_api:"",customer_password:""}})),A()(v()(e),"validate",(function(e){var t={};return e.customer_api||(t.customer_api=Object(r.__)("Please enter your customer API key ","woocommerce-admin")),e.customer_password||(t.customer_password=Object(r.__)("Please enter your customer password","woocommerce-admin")),t})),A()(v()(e),"updateSettings",function(){var t=f()(h.a.mark((function t(n){var c,o,a,i;return h.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return c=e.props,o=c.updateOptions,a=c.createNotice,i=c.markConfigured,t.next=3,o({woocommerce_eway_settings:{customer_api:n.customer_api,customer_password:n.customer_password,enabled:"yes"}});case 3:t.sent.success?(i("eway"),a("success",Object(r.__)("eWAY connected successfully","woocommerce-admin"))):a("error",Object(r.__)("There was a problem saving your payment settings","woocommerce-admin"));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()),e}return k()(n,[{key:"renderConnectStep",value:function(){var e=this.props.isOptionsRequesting,t=l()({mixedString:Object(r.__)("Your API details can be obtained from your {{link}}eWAY account{{/link}}","woocommerce-admin"),components:{link:Object(c.createElement)(m.Link,{href:"https://www.eway.com.au/",target:"_blank",type:"external"})}});return Object(c.createElement)(m.Form,{initialValues:this.getInitialConfigValues(),onSubmitCallback:this.updateSettings,validate:this.validate},(function(n){var o=n.getInputProps,a=n.handleSubmit;return Object(c.createElement)(c.Fragment,null,Object(c.createElement)(m.TextControl,_()({label:Object(r.__)("Customer API Key","woocommerce-admin"),required:!0},o("customer_api"))),Object(c.createElement)(m.TextControl,_()({label:Object(r.__)("Customer Password","woocommerce-admin"),required:!0},o("customer_password"))),Object(c.createElement)(T.a,{isPrimary:!0,isBusy:e,onClick:a},Object(r.__)("Proceed","woocommerce-admin")),Object(c.createElement)("p",null,t))}))}},{key:"render",value:function(){var e=this.props,t=e.installStep,n=e.isOptionsRequesting;return Object(c.createElement)(m.Stepper,{isVertical:!0,isPending:!t.isComplete||n,currentStep:t.isComplete?"connect":"install",steps:[t,{key:"connect",label:Object(r.__)("Connect your eWAY account","woocommerce-admin"),content:this.renderConnectStep()}]})}}]),n}(c.Component),ye=Object(L.a)(Object(M.withSelect)((function(e){return{isOptionsRequesting:(0,e(p.OPTIONS_STORE_NAME).isOptionsUpdating)()}})),Object(M.withDispatch)((function(e){return{createNotice:e("core/notices").createNotice,updateOptions:e(p.OPTIONS_STORE_NAME).updateOptions}})))(he),fe=n(606),Oe={key_id:"",key_secret:""},ge=function(e){var t={};return e.key_id||(t.key_id=Object(r.__)("Please enter your Key ID","woocommerce-admin")),e.key_secret||(t.key_secret=Object(r.__)("Please enter your Key Secret","woocommerce-admin")),t},we=function(){var e=f()(h.a.mark((function e(t,n,c,o){return h.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,o({woocommerce_razorpay_settings:{key_id:t.key_id,key_secret:t.key_secret,enabled:"yes"}});case 2:e.sent.success?(c("razorpay"),n("success",Object(r.__)("Razorpay connected successfully","woocommerce-admin"))):n("error",Object(r.__)("There was a problem saving your payment settings","woocommerce-admin"));case 4:case"end":return e.stop()}}),e)})));return function(t,n,c,r){return e.apply(this,arguments)}}(),ke=function(e){var t=e.createNotice,n=e.isOptionsRequesting,o=e.markConfigured,a=e.updateOptions,i=l()({mixedString:Object(r.__)("Your key details can be obtained from your {{link}}Razorpay account{{/link}}","woocommerce-admin"),components:{link:Object(c.createElement)(m.Link,{href:"https://dashboard.razorpay.com/#/access/signin",target:"_blank",type:"external"})}});return Object(c.createElement)(m.Form,{initialValues:Oe,onSubmitCallback:function(e){return we(e,t,o,a)},validate:ge},(function(e){var t=e.getInputProps,o=e.handleSubmit;return Object(c.createElement)(c.Fragment,null,Object(c.createElement)(m.TextControl,_()({label:Object(r.__)("Key ID","woocommerce-admin"),required:!0},t("key_id"))),Object(c.createElement)(m.TextControl,_()({label:Object(r.__)("Key Secret","woocommerce-admin"),required:!0},t("key_secret"))),Object(c.createElement)(T.a,{isPrimary:!0,isBusy:n,onClick:o},Object(r.__)("Proceed","woocommerce-admin")),Object(c.createElement)("p",null,i))}))},je=function(e){var t=e.createNotice,n=e.installStep,o=e.isOptionsRequesting,a=e.markConfigured,i=e.updateOptions;return Object(c.createElement)(m.Stepper,{isVertical:!0,isPending:!n.isComplete||o,currentStep:n.isComplete?"connect":"install",steps:[n,{key:"connect",label:Object(r.__)("Connect your Razorpay account","woocommerce-admin"),content:ke({createNotice:t,isOptionsRequesting:o,markConfigured:a,updateOptions:i})}]})},ve=function(e){var t=e.installStep,n=e.markConfigured,r=Object(M.useSelect)((function(e){return e(p.OPTIONS_STORE_NAME).isOptionsUpdating}))(),o=Object(M.useDispatch)("core/notices").createNotice,a=Object(M.useDispatch)(p.OPTIONS_STORE_NAME).updateOptions;return Object(c.createElement)(je,{createNotice:o,installStep:t,isOptionsRequesting:r,markConfigured:n,updateOptions:a})},Ce=function(){return Object(c.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"100",height:"24",fill:"#072654",viewBox:"0 0 1896 401"},Object(c.createElement)("path",{fill:"#3395FF",d:"M122.63 105.7l-15.75 57.97 90.15-58.3-58.96 219.98 59.88.05L285.05.48"}),Object(c.createElement)("path",{d:"M25.6 232.92L.8 325.4h122.73l50.22-188.13L25.6 232.92m426.32-81.42c-3 11.15-8.78 19.34-17.4 24.57-8.6 5.22-20.67 7.84-36.25 7.84h-49.5l17.38-64.8h49.5c15.56 0 26.25 2.6 32.05 7.9 5.8 5.3 7.2 13.4 4.22 24.6m51.25-1.4c6.3-23.4 3.7-41.4-7.82-54-11.5-12.5-31.68-18.8-60.48-18.8H324.4l-66.5 248.1h53.67l26.8-100h35.2c7.9 0 14.12 1.3 18.66 3.8 4.55 2.6 7.22 7.1 8.04 13.6l9.58 82.6h57.5l-9.32-77c-1.9-17.2-9.77-27.3-23.6-30.3 17.63-5.1 32.4-13.6 44.3-25.4a92.6 92.6 0 0 0 24.44-42.5m130.46 86.4c-4.5 16.8-11.4 29.5-20.73 38.4-9.34 8.9-20.5 13.3-33.52 13.3-13.26 0-22.25-4.3-27-13-4.76-8.7-4.92-21.3-.5-37.8 4.42-16.5 11.47-29.4 21.17-38.7 9.7-9.3 21.04-13.95 34.06-13.95 13 0 21.9 4.5 26.4 13.43 4.6 8.97 4.7 21.8.2 38.5zm23.52-87.8l-6.72 25.1c-2.9-9-8.53-16.2-16.85-21.6-8.34-5.3-18.66-8-30.97-8-15.1 0-29.6 3.9-43.5 11.7-13.9 7.8-26.1 18.8-36.5 33-10.4 14.2-18 30.3-22.9 48.4-4.8 18.2-5.8 34.1-2.9 47.9 3 13.9 9.3 24.5 19 31.9 9.8 7.5 22.3 11.2 37.6 11.2a82.4 82.4 0 0 0 35.2-7.7 82.11 82.11 0 0 0 28.4-21.2l-7 26.16h51.9L709.3 149h-52zm238.65 0H744.87l-10.55 39.4h87.82l-116.1 100.3-9.92 37h155.8l10.55-39.4h-94.1l117.88-101.8m142.4 52c-4.67 17.4-11.6 30.48-20.75 39-9.15 8.6-20.23 12.9-33.24 12.9-27.2 0-36.14-17.3-26.86-51.9 4.6-17.2 11.56-30.13 20.86-38.84 9.3-8.74 20.57-13.1 33.82-13.1 13 0 21.78 4.33 26.3 13.05 4.52 8.7 4.48 21.67-.13 38.87m30.38-80.83c-11.95-7.44-27.2-11.16-45.8-11.16-18.83 0-36.26 3.7-52.3 11.1a113.09 113.09 0 0 0-41 32.06c-11.3 13.9-19.43 30.2-24.42 48.8-4.9 18.53-5.5 34.8-1.7 48.73 3.8 13.9 11.8 24.6 23.8 32 12.1 7.46 27.5 11.17 46.4 11.17 18.6 0 35.9-3.74 51.8-11.18 15.9-7.48 29.5-18.1 40.8-32.1 11.3-13.94 19.4-30.2 24.4-48.8 5-18.6 5.6-34.84 1.8-48.8-3.8-13.9-11.7-24.6-23.6-32.05m185.1 40.8l13.3-48.1c-4.5-2.3-10.4-3.5-17.8-3.5-11.9 0-23.3 2.94-34.3 8.9-9.46 5.06-17.5 12.2-24.3 21.14l6.9-25.9-15.07.06h-37l-47.7 176.7h52.63l24.75-92.37c3.6-13.43 10.08-24 19.43-31.5 9.3-7.53 20.9-11.3 34.9-11.3 8.6 0 16.6 1.97 24.2 5.9m146.5 41.1c-4.5 16.5-11.3 29.1-20.6 37.8-9.3 8.74-20.5 13.1-33.5 13.1s-21.9-4.4-26.6-13.2c-4.8-8.85-4.9-21.6-.4-38.36 4.5-16.75 11.4-29.6 20.9-38.5 9.5-8.97 20.7-13.45 33.7-13.45 12.8 0 21.4 4.6 26 13.9 4.6 9.3 4.7 22.2.28 38.7m36.8-81.4c-9.75-7.8-22.2-11.7-37.3-11.7-13.23 0-25.84 3-37.8 9.06-11.95 6.05-21.65 14.3-29.1 24.74l.18-1.2 8.83-28.1h-51.4l-13.1 48.9-.4 1.7-54 201.44h52.7l27.2-101.4c2.7 9.02 8.2 16.1 16.6 21.22 8.4 5.1 18.77 7.63 31.1 7.63 15.3 0 29.9-3.7 43.75-11.1 13.9-7.42 25.9-18.1 36.1-31.9 10.2-13.8 17.77-29.8 22.6-47.9 4.9-18.13 5.9-34.3 3.1-48.45-2.85-14.17-9.16-25.14-18.9-32.9m174.65 80.65c-4.5 16.7-11.4 29.5-20.7 38.3-9.3 8.86-20.5 13.27-33.5 13.27-13.3 0-22.3-4.3-27-13-4.8-8.7-4.9-21.3-.5-37.8 4.4-16.5 11.42-29.4 21.12-38.7 9.7-9.3 21.05-13.94 34.07-13.94 13 0 21.8 4.5 26.4 13.4 4.6 8.93 4.63 21.76.15 38.5zm23.5-87.85l-6.73 25.1c-2.9-9.05-8.5-16.25-16.8-21.6-8.4-5.34-18.7-8-31-8-15.1 0-29.68 3.9-43.6 11.7-13.9 7.8-26.1 18.74-36.5 32.9-10.4 14.16-18 30.3-22.9 48.4-4.85 18.17-5.8 34.1-2.9 47.96 2.93 13.8 9.24 24.46 19 31.9 9.74 7.4 22.3 11.14 37.6 11.14 12.3 0 24.05-2.56 35.2-7.7a82.3 82.3 0 0 0 28.33-21.23l-7 26.18h51.9l47.38-176.7h-51.9zm269.87.06l.03-.05h-31.9c-1.02 0-1.92.05-2.85.07h-16.55l-8.5 11.8-2.1 2.8-.9 1.4-67.25 93.68-13.9-109.7h-55.08l27.9 166.7-61.6 85.3h54.9l14.9-21.13c.42-.62.8-1.14 1.3-1.8l17.4-24.7.5-.7 77.93-110.5 65.7-93 .1-.06h-.03z"}))};function Ee(e,t,n,c){var o=Object(r.__)("There was an error connecting to WooCommerce Payments. Please try again or connect later in store settings.","woocommerce-admin");c(["woocommerce-payments"]).then((function(){a()({path:p.WC_ADMIN_NAMESPACE+"/plugins/connect-wcpay",method:"POST"}).then((function(e){window.location=e.connectUrl})).catch((function(){n("error",o),t()}))})).catch((function(e){Object(F.a)(e),t()}))}function Se(e){var t=e.activePlugins,n=e.countryCode,o=e.createNotice,a=e.installAndActivatePlugins,s=e.onboardingStatus,p=e.options,d=e.profileItems,_=s.stripeSupportedCountries,b=void 0===_?[]:_,h=s.wcPayIsConnected,y=void 0!==h&&h,f=Object(i.some)(d.industry,{slug:"cbd-other-hemp-derived-products"})||!1,O=[];if(window.wcAdminFeatures.wcpay){var g=Object(c.createElement)(m.Link,{href:"https://wordpress.com/tos/",target:"_blank",type:"external"}),w=l()({mixedString:Object(r.__)('By clicking "Set up," you agree to the {{link}}Terms of Service{{/link}}',"woocommerce-admin"),components:{link:g}}),k=Object(c.createElement)(m.Link,{href:"https://docs.woocommerce.com/document/payments/testing/dev-mode/",target:"_blank",type:"external"}),j=l()({mixedString:Object(r.__)("Setting up a store for a client? {{link}}Start here{{/link}}","woocommerce-admin"),components:{link:k}}),v=Object(c.createElement)(m.Link,{href:Object(u.f)("admin.php?page=wc-settings&tab=checkout§ion=woocommerce_payments"),type:"wp-admin"},Object(r.__)("Settings","woocommerce-admin"));O.push({key:"wcpay",title:Object(r.__)("WooCommerce Payments","woocommerce-admin"),content:Object(c.createElement)(c.Fragment,null,Object(r.__)("Accept credit card payments the easy way! No setup fees. No monthly fees. Just 2.9% + $0.30 per transaction on U.S. issued cards. ","woocommerce-admin"),y&&v,!y&&Object(c.createElement)("p",null,w),d.setup_client&&Object(c.createElement)("p",null,j),Object(c.createElement)(fe.default,null)),before:Object(c.createElement)(ne,null),onClick:function(e,t){return Ee(0,t,o,a)},visible:["US","PR"].includes(n)&&!f,plugins:["woocommerce-payments"],container:Object(c.createElement)(te,null),isConfigured:y,isEnabled:p.woocommerce_woocommerce_payments_settings&&"yes"===p.woocommerce_woocommerce_payments_settings.enabled,optionName:"woocommerce_woocommerce_payments_settings"})}var C=p.woocommerce_stripe_settings&&("no"===p.woocommerce_stripe_settings.testmode?p.woocommerce_stripe_settings.publishable_key&&p.woocommerce_stripe_settings.secret_key:p.woocommerce_stripe_settings.test_publishable_key&&p.woocommerce_stripe_settings.test_secret_key);return O.push({key:"stripe",title:Object(r.__)("Credit cards - powered by Stripe","woocommerce-admin"),content:Object(c.createElement)(c.Fragment,null,Object(r.__)("Accept debit and credit cards in 135+ currencies, methods such as Alipay, and one-touch checkout with Apple Pay.","woocommerce-admin")),before:Object(c.createElement)("img",{src:u.e+"images/stripe.png",alt:""}),visible:b.includes(n)&&!f,plugins:["woocommerce-gateway-stripe"],container:Object(c.createElement)(Y,null),isConfigured:C,isEnabled:p.woocommerce_stripe_settings&&"yes"===p.woocommerce_stripe_settings.enabled,optionName:"woocommerce_stripe_settings"},{key:"paypal",title:Object(r.__)("PayPal Checkout","woocommerce-admin"),content:Object(c.createElement)(c.Fragment,null,Object(r.__)("Safe and secure payments using credit cards or your customer's PayPal account.","woocommerce-admin")),before:Object(c.createElement)("img",{src:u.e+"images/paypal.png",alt:""}),visible:!f,plugins:["woocommerce-gateway-paypal-express-checkout"],container:Object(c.createElement)(le,null),isConfigured:p.woocommerce_ppec_paypal_settings&&(p.woocommerce_ppec_paypal_settings.reroute_requests&&p.woocommerce_ppec_paypal_settings.email||p.woocommerce_ppec_paypal_settings.api_username&&p.woocommerce_ppec_paypal_settings.api_password),isEnabled:p.woocommerce_ppec_paypal_settings&&"yes"===p.woocommerce_ppec_paypal_settings.enabled,optionName:"woocommerce_ppec_paypal_settings"},{key:"klarna_checkout",title:Object(r.__)("Klarna Checkout","woocommerce-admin"),content:Object(r.__)("Choose the payment that you want, pay now, pay later or slice it. No credit card numbers, no passwords, no worries.","woocommerce-admin"),before:Object(c.createElement)("img",{src:u.e+"images/klarna-black.png",alt:""}),visible:["SE","FI","NO","NL"].includes(n)&&!f,plugins:["klarna-checkout-for-woocommerce"],container:Object(c.createElement)(me,{plugin:"checkout"}),isConfigured:t.includes("klarna-checkout-for-woocommerce"),isEnabled:p.woocommerce_kco_settings&&"yes"===p.woocommerce_kco_settings.enabled,optionName:"woocommerce_kco_settings"},{key:"klarna_payments",title:Object(r.__)("Klarna Payments","woocommerce-admin"),content:Object(r.__)("Choose the payment that you want, pay now, pay later or slice it. No credit card numbers, no passwords, no worries.","woocommerce-admin"),before:Object(c.createElement)("img",{src:u.e+"images/klarna-black.png",alt:""}),visible:["DK","DE","AT"].includes(n)&&!f,plugins:["klarna-payments-for-woocommerce"],container:Object(c.createElement)(me,{plugin:"payments"}),isConfigured:t.includes("klarna-payments-for-woocommerce"),isEnabled:p.woocommerce_klarna_payments_settings&&"yes"===p.woocommerce_klarna_payments_settings.enabled,optionName:"woocommerce_klarna_payments_settings"},{key:"square",title:Object(r.__)("Square","woocommerce-admin"),content:Object(c.createElement)(c.Fragment,null,Object(r.__)("Securely accept credit and debit cards with one low rate, no surprise fees (custom rates available). Sell online and in store and track sales and inventory in one place.","woocommerce-admin"),f&&Object(c.createElement)("span",{className:"text-style-strong"},Object(r.__)(" Selling CBD products is only supported by Square.","woocommerce-admin"))),before:Object(c.createElement)("img",{src:u.e+"images/square-black.png",alt:""}),visible:f&&["US"].includes(n)||["brick-mortar","brick-mortar-other"].includes(d.selling_venues)&&["US","CA","JP","GB","AU"].includes(n),plugins:["woocommerce-square"],container:Object(c.createElement)($,null),isConfigured:p.wc_square_refresh_tokens&&p.wc_square_refresh_tokens.length,isEnabled:p.woocommerce_square_credit_card_settings&&"yes"===p.woocommerce_square_credit_card_settings.enabled,optionName:"woocommerce_square_credit_card_settings",hasCbdIndustry:f},{key:"payfast",title:Object(r.__)("PayFast","woocommerce-admin"),content:Object(c.createElement)(c.Fragment,null,Object(r.__)("The PayFast extension for WooCommerce enables you to accept payments by Credit Card and EFT via one of South Africa’s most popular payment gateways. No setup fees or monthly subscription costs.","woocommerce-admin"),Object(c.createElement)("p",null,Object(r.__)("Selecting this extension will configure your store to use South African rands as the selected currency.","woocommerce-admin"))),before:Object(c.createElement)("img",{src:u.e+"images/payfast.png",alt:"PayFast logo"}),visible:["ZA"].includes(n)&&!f,plugins:["woocommerce-payfast-gateway"],container:Object(c.createElement)(_e,null),isConfigured:p.woocommerce_payfast_settings&&p.woocommerce_payfast_settings.merchant_id&&p.woocommerce_payfast_settings.merchant_key&&p.woocommerce_payfast_settings.pass_phrase,isEnabled:p.woocommerce_payfast_settings&&"yes"===p.woocommerce_payfast_settings.enabled,optionName:"woocommerce_payfast_settings"},{key:"eway",title:Object(r.__)("eWAY","woocommerce-admin"),content:Object(c.createElement)(c.Fragment,null,Object(r.__)("The eWAY extension for WooCommerce allows you to take credit card payments directly on your store without redirecting your customers to a third party site to make payment.","woocommerce-admin")),before:Object(c.createElement)("img",{src:u.e+"images/eway-logo.jpg",alt:"eWAY logo"}),visible:["AU","NZ"].includes(n)&&!f,plugins:["woocommerce-gateway-eway"],container:Object(c.createElement)(ye,null),isConfigured:p.woocommerce_eway_settings&&p.woocommerce_eway_settings.customer_api&&p.woocommerce_eway_settings.customer_password,isEnabled:p.woocommerce_eway_settings&&"yes"===p.woocommerce_eway_settings.enabled,optionName:"woocommerce_eway_settings"},{key:"razorpay",title:Object(r.__)("Razorpay","woocommerce-admin"),content:Object(c.createElement)(c.Fragment,null,Object(r.__)("The official Razorpay extension for WooCommerce allows you to accept credit cards, debit cards, netbanking, wallet, and UPI payments.","woocommerce-admin")),before:Object(c.createElement)(Ce,null),visible:"IN"===n&&!f,plugins:["woo-razorpay"],container:Object(c.createElement)(ve,null),isConfigured:p.woocommerce_razorpay_settings&&p.woocommerce_razorpay_settings.key_id&&p.woocommerce_razorpay_settings.key_secret,isEnabled:p.woocommerce_razorpay_settings&&"yes"===p.woocommerce_razorpay_settings.enabled,optionName:"woocommerce_razorpay_settings"},{key:"cod",title:Object(r.__)("Cash on delivery","woocommerce-admin"),content:Object(r.__)("Take payments in cash upon delivery.","woocommerce-admin"),before:Object(c.createElement)(V,null),visible:!f,isEnabled:p.woocommerce_cod_settings&&"yes"===p.woocommerce_cod_settings.enabled,optionName:"woocommerce_cod_settings"},{key:"bacs",title:Object(r.__)("Direct bank transfer","woocommerce-admin"),content:Object(r.__)("Take payments via bank transfer.","woocommerce-admin"),before:Object(c.createElement)(U,null),visible:!f,container:Object(c.createElement)(I,null),isConfigured:p.woocommerce_bacs_accounts&&p.woocommerce_bacs_accounts.length,isEnabled:p.woocommerce_bacs_settings&&"yes"===p.woocommerce_bacs_settings.enabled,optionName:"woocommerce_bacs_settings"}),Object(i.filter)(O,(function(e){return e.visible}))}},606:function(e,t,n){"use strict";n.r(t);var c=n(31),r=n.n(c),o=n(0),a=n(3),i=n(29),s=n(43),l=n.n(s),u=n(74),m=n(587);t.default=function(){var e="1"===Object(i.getQuery)()["wcpay-connection-success"],t=Object(o.useState)(e),n=r()(t,2),c=n[0],s=n[1];if(!c)return null;var p=function(){s(!1),Object(i.updateQueryString)({"wcpay-connection-success":void 0})},d=Object(a.__)("Help us build a better WooCommerce Payments experience","woocommerce-admin"),_=l()({mixedString:Object(a.__)("By agreeing to share non-sensitive {{link}}usage data{{/link}}, you’ll help us improve features and optimize the WooCommerce Payments experience. You can opt out at any time.","woocommerce-admin"),components:{link:Object(o.createElement)(u.Link,{href:"https://woocommerce.com/usage-tracking",target:"_blank",type:"external"})}});return Object(o.createElement)(m.a,{isDismissible:!1,title:d,message:_,acceptActionText:Object(a.__)("I agree","woocommerce-admin"),dismissActionText:Object(a.__)("No thanks","woocommerce-admin"),onContinue:p,onClose:p})}}}]);
|
dist/chunks/activity-panels-inbox.js
CHANGED
@@ -77,7 +77,7 @@ var prop_types_default = /*#__PURE__*/__webpack_require__.n(prop_types);
|
|
77 |
var external_this_wc_components_ = __webpack_require__(74);
|
78 |
|
79 |
// EXTERNAL MODULE: ./node_modules/@wordpress/components/build-module/button/index.js
|
80 |
-
var build_module_button = __webpack_require__(
|
81 |
|
82 |
// EXTERNAL MODULE: ./client/header/activity-panel/activity-card/style.scss
|
83 |
var style = __webpack_require__(593);
|
@@ -472,7 +472,7 @@ var defineProperty_default = /*#__PURE__*/__webpack_require__.n(defineProperty);
|
|
472 |
var dropdown = __webpack_require__(339);
|
473 |
|
474 |
// EXTERNAL MODULE: ./node_modules/@wordpress/components/build-module/button/index.js
|
475 |
-
var build_module_button = __webpack_require__(
|
476 |
|
477 |
// EXTERNAL MODULE: ./node_modules/@wordpress/components/build-module/modal/index.js + 3 modules
|
478 |
var modal = __webpack_require__(546);
|
77 |
var external_this_wc_components_ = __webpack_require__(74);
|
78 |
|
79 |
// EXTERNAL MODULE: ./node_modules/@wordpress/components/build-module/button/index.js
|
80 |
+
var build_module_button = __webpack_require__(68);
|
81 |
|
82 |
// EXTERNAL MODULE: ./client/header/activity-panel/activity-card/style.scss
|
83 |
var style = __webpack_require__(593);
|
472 |
var dropdown = __webpack_require__(339);
|
473 |
|
474 |
// EXTERNAL MODULE: ./node_modules/@wordpress/components/build-module/button/index.js
|
475 |
+
var build_module_button = __webpack_require__(68);
|
476 |
|
477 |
// EXTERNAL MODULE: ./node_modules/@wordpress/components/build-module/modal/index.js + 3 modules
|
478 |
var modal = __webpack_require__(546);
|
dist/chunks/activity-panels-inbox.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
(window.__wcAdmin_webpackJsonp=window.__wcAdmin_webpackJsonp||[]).push([[11],{584:function(e,t,n){"use strict";var c=n(588),a=["a","b","em","i","strong","p","br"],o=["target","href","rel","name","download"];t.a=function(e){return{__html:Object(c.sanitize)(e,{ALLOWED_TAGS:a,ALLOWED_ATTR:o})}}},586:function(e,t,n){"use strict";n.d(t,"a",(function(){return C})),n.d(t,"b",(function(){return R}));var c=n(20),a=n.n(c),o=n(15),i=n.n(o),r=n(22),s=n.n(r),l=n(23),m=n.n(l),u=n(10),d=n.n(u),f=n(0),b=n(4),p=n.n(b),_=n(248),v=n.n(_),h=n(19),y=n.n(h),O=n(1),g=n.n(O),j=n(74),N=n(67),E=(n(593),n(2));function w(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,c=d()(e);if(t){var a=d()(this).constructor;n=Reflect.construct(c,arguments,a)}else n=c.apply(this,arguments);return m()(this,n)}}var k=function(e){s()(n,e);var t=w(n);function n(){return a()(this,n),t.apply(this,arguments)}return i()(n,[{key:"render",value:function(){var e=this.props,t=e.className,n=e.hasAction,c=e.hasDate,a=e.hasSubtitle,o=e.lines,i=p()("woocommerce-activity-card is-loading",t);return Object(f.createElement)("div",{className:i,"aria-hidden":!0},Object(f.createElement)("span",{className:"woocommerce-activity-card__icon"},Object(f.createElement)("span",{className:"is-placeholder"})),Object(f.createElement)("div",{className:"woocommerce-activity-card__header"},Object(f.createElement)("div",{className:"woocommerce-activity-card__title is-placeholder"}),a&&Object(f.createElement)("div",{className:"woocommerce-activity-card__subtitle is-placeholder"}),c&&Object(f.createElement)("div",{className:"woocommerce-activity-card__date"},Object(f.createElement)("span",{className:"is-placeholder"}))),Object(f.createElement)("div",{className:"woocommerce-activity-card__body"},Object(E.range)(o).map((function(e){return Object(f.createElement)("span",{className:"is-placeholder",key:e})}))),n&&Object(f.createElement)("div",{className:"woocommerce-activity-card__actions"},Object(f.createElement)("span",{className:"is-placeholder"})))}}]),n}(f.Component);k.propTypes={className:g.a.string,hasAction:g.a.bool,hasDate:g.a.bool,hasSubtitle:g.a.bool,lines:g.a.number},k.defaultProps={hasAction:!1,hasDate:!1,hasSubtitle:!1,lines:1};var R=k;function D(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,c=d()(e);if(t){var a=d()(this).constructor;n=Reflect.construct(c,arguments,a)}else n=c.apply(this,arguments);return m()(this,n)}}var C=function(e){s()(n,e);var t=D(n);function n(){return a()(this,n),t.apply(this,arguments)}return i()(n,[{key:"getCard",value:function(){var e=this.props,t=e.actions,n=e.className,c=e.children,a=e.date,o=e.icon,i=e.subtitle,r=e.title,s=e.unread,l=p()("woocommerce-activity-card",n),m=Array.isArray(t)?t:[t],u=/\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}/.test(a)?y.a.utc(a).fromNow():a;return Object(f.createElement)("section",{className:l},s&&Object(f.createElement)("span",{className:"woocommerce-activity-card__unread"}),o&&Object(f.createElement)("span",{className:"woocommerce-activity-card__icon","aria-hidden":!0},o),r&&Object(f.createElement)("header",{className:"woocommerce-activity-card__header"},Object(f.createElement)(j.H,{className:"woocommerce-activity-card__title"},r),i&&Object(f.createElement)("div",{className:"woocommerce-activity-card__subtitle"},i),u&&Object(f.createElement)("span",{className:"woocommerce-activity-card__date"},u)),c&&Object(f.createElement)(j.Section,{className:"woocommerce-activity-card__body"},c),t&&Object(f.createElement)("footer",{className:"woocommerce-activity-card__actions"},m.map((function(e,t){return Object(f.cloneElement)(e,{key:t})}))))}},{key:"render",value:function(){var e=this.props.onClick;return e?Object(f.createElement)(N.a,{className:"woocommerce-activity-card__button",onClick:e},this.getCard()):this.getCard()}}]),n}(f.Component);C.propTypes={actions:g.a.oneOfType([g.a.arrayOf(g.a.element),g.a.element]),onClick:g.a.func,className:g.a.string,children:g.a.node,date:g.a.string,icon:g.a.node,subtitle:g.a.node,title:g.a.oneOfType([g.a.string,g.a.node]),unread:g.a.bool},C.defaultProps={icon:Object(f.createElement)(v.a,{size:48}),unread:!1}},593:function(e,t,n){},594:function(e,t,n){},612:function(e,t,n){"use strict";n.r(t);var c=n(58),a=n.n(c),o=n(0),i=n(3),r=n(181),s=n(74),l=n(34),m=n(25),u=n(366),d=n(365),f=n(586),b=n(20),p=n.n(b),_=n(15),v=n.n(_),h=n(22),y=n.n(h),O=n(23),g=n.n(O),j=n(10),N=n.n(j),E=n(1),w=n.n(E);function k(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,c=N()(e);if(t){var a=N()(this).constructor;n=Reflect.construct(c,arguments,a)}else n=c.apply(this,arguments);return g()(this,n)}}var R=function(e){y()(n,e);var t=k(n);function n(){return p()(this,n),t.apply(this,arguments)}return v()(n,[{key:"render",value:function(){var e=this.props.className;return Object(o.createElement)("div",{className:"woocommerce-inbox-message is-placeholder ".concat(e),"aria-hidden":!0},Object(o.createElement)("div",{className:"woocommerce-inbox-message__image"},Object(o.createElement)("div",{className:"banner-block"})),Object(o.createElement)("div",{className:"woocommerce-inbox-message__wrapper"},Object(o.createElement)("div",{className:"woocommerce-inbox-message__content"},Object(o.createElement)("div",{className:"woocommerce-inbox-message__date"},Object(o.createElement)("div",{className:"sixth-line"})),Object(o.createElement)("div",{className:"woocommerce-inbox-message__title"},Object(o.createElement)("div",{className:"line"}),Object(o.createElement)("div",{className:"line"})),Object(o.createElement)("div",{className:"woocommerce-inbox-message__text"},Object(o.createElement)("div",{className:"line"}),Object(o.createElement)("div",{className:"third-line"}))),Object(o.createElement)("div",{className:"woocommerce-inbox-message__actions"},Object(o.createElement)("div",{className:"fifth-line"}),Object(o.createElement)("div",{className:"fifth-line"}))))}}]),n}(o.Component);R.propTypes={className:w.a.string};var D=R,C=n(13),x=n.n(C),A=n(5),T=n.n(A),S=n(339),M=n(67),U=n(546),B=n(608),P=n.n(B),L=n(19),q=n.n(L),I=n(4),F=n.n(I),Y=n(50),V=n(35);function W(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,c=N()(e);if(t){var a=N()(this).constructor;n=Reflect.construct(c,arguments,a)}else n=c.apply(this,arguments);return g()(this,n)}}var z=function(e){y()(n,e);var t=W(n);function n(e){var c;return p()(this,n),(c=t.call(this,e)).state={inAction:!1},c.handleActionClick=c.handleActionClick.bind(x()(c)),c}return v()(n,[{key:"handleActionClick",value:function(e){var t=this.props,n=t.action,c=t.actionCallback,a=t.batchUpdateNotes,o=t.createNotice,r=t.noteId,s=t.triggerNoteAction,l=t.removeAllNotes,m=t.removeNote,u=t.onClick,d=t.updateNote,f=e.target.href||"",b=!0;f.length&&!f.startsWith(V.a)&&(e.preventDefault(),b=!1,window.open(f,"_blank")),n?this.setState({inAction:b},(function(){s(r,n.id),u&&u()})):(r?m(r).then((function(){o("success",Object(i.__)("Message dismissed.","woocommerce-admin"),{actions:[{label:Object(i.__)("Undo","woocommerce-admin"),onClick:function(){d(r,{is_deleted:0})}}]})})).catch((function(){o("error",Object(i.__)("Message could not be dismissed.","woocommerce-admin"))})):l().then((function(e){o("success",Object(i.__)("All messages dismissed.","woocommerce-admin"),{actions:[{label:Object(i.__)("Undo","woocommerce-admin"),onClick:function(){a(e.map((function(e){return e.id})),{is_deleted:0})}}]})})).catch((function(){o("error",Object(i.__)("Message could not be dismissed.","woocommerce-admin"))})),c(!0))}},{key:"render",value:function(){var e=this.props,t=e.action,n=e.dismiss,c=e.label;return Object(o.createElement)(M.a,{isSecondary:!0,isBusy:this.state.inAction,disabled:this.state.inAction,href:t&&t.url&&t.url.length?t.url:void 0,onClick:this.handleActionClick},n?c:t.label)}}]),n}(o.Component);z.propTypes={noteId:w.a.number,label:w.a.string,dismiss:w.a.bool,actionCallback:w.a.func,action:w.a.shape({id:w.a.number.isRequired,url:w.a.string,label:w.a.string.isRequired,primary:w.a.bool.isRequired}),onClick:w.a.func};var H=Object(r.a)(Object(m.withDispatch)((function(e){var t=e("core/notices").createNotice,n=e(l.NOTES_STORE_NAME),c=n.batchUpdateNotes,a=n.removeAllNotes,o=n.removeNote,i=n.updateNote;return{batchUpdateNotes:c,createNotice:t,removeAllNotes:a,removeNote:o,triggerNoteAction:n.triggerNoteAction,updateNote:i}})))(z),J=n(584);n(594);function Q(){var e,t="",n=(e=window.location.search)?e.substr(1).split("&").reduce((function(e,t){var n=t.split("="),c=n[0],a=decodeURIComponent(n[1]);return a=isNaN(Number(a))?a:Number(a),e[c]=a,e}),{}):{},c=n.page,a=n.path,o=n.post_type;if(c){var i="wc-admin"===c?"home_screen":c;t=a?a.replace(/\//g,"_").substring(1):i}else o&&(t=o);return t}function G(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,c=N()(e);if(t){var a=N()(this).constructor;n=Reflect.construct(c,arguments,a)}else n=c.apply(this,arguments);return g()(this,n)}}var Z=function(e){y()(n,e);var t=G(n);function n(e){var c;return p()(this,n),c=t.call(this,e),T()(x()(c),"onActionClicked",(function(e){e.actioned_text&&c.setState({clickedActionText:e.actioned_text})})),c.onVisible=c.onVisible.bind(x()(c)),c.hasBeenSeen=!1,c.state={isDismissModalOpen:!1,dismissType:null,clickedActionText:null},c.openDismissModal=c.openDismissModal.bind(x()(c)),c.closeDismissModal=c.closeDismissModal.bind(x()(c)),c.bodyNotificationRef=Object(o.createRef)(),c.screen=Q(),c}return v()(n,[{key:"componentDidMount",value:function(){var e=this;this.bodyNotificationRef.current&&this.bodyNotificationRef.current.addEventListener("click",(function(t){return e.handleBodyClick(t,e.props)}))}},{key:"componentWillUnmount",value:function(){var e=this;this.bodyNotificationRef.current&&this.bodyNotificationRef.current.removeEventListener("click",(function(t){return e.handleBodyClick(t,e.props)}))}},{key:"handleBodyClick",value:function(e,t){var n=e.target.href;if(n){var c=t.note;Object(Y.recordEvent)("wcadmin_inbox_action_click",{note_name:c.name,note_title:c.title,note_content_inner_link:n})}}},{key:"onVisible",value:function(e){if(e&&!this.hasBeenSeen){var t=this.props.note;Object(Y.recordEvent)("inbox_note_view",{note_content:t.content,note_name:t.name,note_title:t.title,note_type:t.type,screen:this.screen}),this.hasBeenSeen=!0}}},{key:"openDismissModal",value:function(e,t){this.setState({isDismissModalOpen:!0,dismissType:e}),t()}},{key:"closeDismissModal",value:function(e){var t=this.state.dismissType,n=this.props.note,c="all"===t;Object(Y.recordEvent)("inbox_action_dismiss",{note_name:n.name,note_title:n.title,note_name_dismiss_all:c,note_name_dismiss_confirmation:e||!1,screen:this.screen}),this.setState({isDismissModalOpen:!1})}},{key:"handleBlur",value:function(e,t){var n=e.relatedTarget?e.relatedTarget:document.activeElement;!!n&&["woocommerce-admin-dismiss-notification","components-popover__content"].some((function(e){return n.className.includes(e)}))?e.preventDefault():t()}},{key:"renderDismissButton",value:function(){var e=this;return this.state.clickedActionText?null:Object(o.createElement)(S.a,{contentClassName:"woocommerce-admin-dismiss-dropdown",position:"bottom right",renderToggle:function(t){var n=t.onClose,c=t.onToggle;return Object(o.createElement)(M.a,{isTertiary:!0,onClick:c,onBlur:function(t){return e.handleBlur(t,n)}},Object(i.__)("Dismiss","woocommerce-admin"))},focusOnMount:!1,popoverProps:{noArrow:!0},renderContent:function(t){var n=t.onToggle;return Object(o.createElement)("ul",null,Object(o.createElement)("li",null,Object(o.createElement)(M.a,{className:"woocommerce-admin-dismiss-notification",onClick:function(){return e.openDismissModal("this",n)}},Object(i.__)("Dismiss this message","woocommerce-admin"))),Object(o.createElement)("li",null,Object(o.createElement)(M.a,{className:"woocommerce-admin-dismiss-notification",onClick:function(){return e.openDismissModal("all",n)}},Object(i.__)("Dismiss all messages","woocommerce-admin"))))}})}},{key:"getDismissConfirmationButton",value:function(){var e=this.props.note,t=this.state.dismissType;return Object(o.createElement)(H,{key:e.id,noteId:"all"===t?null:e.id,label:Object(i.__)("Yes, I'm sure","woocommerce-admin"),actionCallback:this.closeDismissModal,dismiss:!0,screen:this.screen})}},{key:"renderDismissConfirmationModal",value:function(){var e=this;return Object(o.createElement)(U.a,{title:Object(o.createElement)(o.Fragment,null,Object(i.__)("Are you sure?","woocommerce-admin")),onRequestClose:function(){return e.closeDismissModal()},className:"woocommerce-inbox-dismiss-confirmation_modal"},Object(o.createElement)("div",{className:"woocommerce-inbox-dismiss-confirmation_wrapper"},Object(o.createElement)("p",null,Object(i.__)("Dismissed messages cannot be viewed again","woocommerce-admin")),Object(o.createElement)("div",{className:"woocommerce-inbox-dismiss-confirmation_buttons"},Object(o.createElement)(M.a,{isSecondary:!0,onClick:function(){return e.closeDismissModal()}},Object(i.__)("Cancel","woocommerce-admin")),this.getDismissConfirmationButton())))}},{key:"renderActions",value:function(e){var t=this,n=e.actions,c=e.id,a=this.state.clickedActionText;return a||(n?Object(o.createElement)(o.Fragment,null,n.map((function(e,n){return Object(o.createElement)(H,{key:n,noteId:c,action:e,onClick:function(){return t.onActionClicked(e)}})}))):void 0)}},{key:"render",value:function(){var e=this.props,t=e.lastRead,n=e.note,c=this.state.isDismissModalOpen,a=n.content,i=n.date_created,r=n.date_created_gmt,l=n.image,m=n.is_deleted,u=n.layout,d=n.status,f=n.title;if(m)return null;var b=!t||!r||new Date(r+"Z").getTime()>t,p=i,_="plain"!==u&&""!==u,v=F()("woocommerce-inbox-message",u,{"message-is-unread":b&&"unactioned"===d});return Object(o.createElement)(P.a,{onChange:this.onVisible},Object(o.createElement)("section",{className:v},_&&Object(o.createElement)("div",{className:"woocommerce-inbox-message__image"},Object(o.createElement)("img",{src:l,alt:""})),Object(o.createElement)("div",{className:"woocommerce-inbox-message__wrapper"},Object(o.createElement)("div",{className:"woocommerce-inbox-message__content"},p&&Object(o.createElement)("span",{className:"woocommerce-inbox-message__date"},q.a.utc(p).fromNow()),Object(o.createElement)(s.H,{className:"woocommerce-inbox-message__title"},f),Object(o.createElement)(s.Section,{className:"woocommerce-inbox-message__text"},Object(o.createElement)("span",{dangerouslySetInnerHTML:Object(J.a)(a),ref:this.bodyNotificationRef}))),Object(o.createElement)("div",{className:"woocommerce-inbox-message__actions"},this.renderActions(n),this.renderDismissButton())),c&&this.renderDismissConfirmationModal()))}}]),n}(o.Component);Z.propTypes={note:w.a.shape({id:w.a.number,status:w.a.string,title:w.a.string,content:w.a.string,date_created:w.a.string,date_created_gmt:w.a.string,actions:w.a.arrayOf(w.a.shape({id:w.a.number.isRequired,url:w.a.string,label:w.a.string.isRequired,primary:w.a.bool.isRequired})),layout:w.a.string,image:w.a.string,is_deleted:w.a.bool}),lastRead:w.a.number};var K=Z,X=n(249),$=function(e){var t=e.hasNotes,n=e.isBatchUpdating,c=e.lastRead,a=e.notes;if(!n){if(!t)return Object(o.createElement)(f.a,{className:"woocommerce-empty-activity-card",title:Object(i.__)("Your inbox is empty","woocommerce-admin"),icon:!1},Object(i.__)("As things begin to happen in your store your inbox will start to fill up. You'll see things like achievements, new feature announcements, extension recommendations and more!","woocommerce-admin"));var r=Object.keys(a).map((function(e){return a[e]}));return Object(o.createElement)(u.a,{role:"menu"},r.map((function(e){var t=e.id;return e.is_deleted?null:Object(o.createElement)(d.a,{key:t,timeout:500,classNames:"woocommerce-inbox-message"},Object(o.createElement)(K,{key:t,note:e,lastRead:c}))})))}};t.default=Object(r.a)(Object(m.withSelect)((function(e){var t=e(l.NOTES_STORE_NAME),n=t.getNotes,c=t.getNotesError,a=t.isResolving,o=t.isNotesRequesting,i={page:1,per_page:l.QUERY_DEFAULTS.pageSize,status:"unactioned",type:l.QUERY_DEFAULTS.noteTypes,orderby:"date",order:"desc",_fields:["id","name","title","content","type","status","actions","date_created","date_created_gmt","layout","image","is_deleted"]};return{notes:n(i),isError:Boolean(c("getNotes",[i])),isResolving:a("getNotes",[i]),isBatchUpdating:o("batchUpdateNotes")}})))((function(e){var t=e.isError,n=e.isResolving,c=e.isBatchUpdating,r=e.notes,m=Object(l.useUserPreferences)(),u=m.updateUserPreferences,d=a()(m,["updateUserPreferences"]).activity_panel_inbox_last_read;if(Object(o.useEffect)((function(){var e=Date.now();return function(){u({activity_panel_inbox_last_read:e})}}),[]),t){var f=Object(i.__)("There was an error getting your inbox. Please try again.","woocommerce-admin"),b=Object(i.__)("Reload","woocommerce-admin");return Object(o.createElement)(s.EmptyContent,{title:f,actionLabel:b,actionURL:null,actionCallback:function(){window.location.reload()}})}var p=Object(X.b)(r);return Object(o.createElement)(o.Fragment,null,Object(o.createElement)("div",{className:"woocommerce-homepage-notes-wrapper"},(n||c)&&Object(o.createElement)(s.Section,null,Object(o.createElement)(D,{className:"banner message-is-unread"})),Object(o.createElement)(s.Section,null,!n&&!c&&$({hasNotes:p,isBatchUpdating:c,lastRead:d,notes:r}))))}))}}]);
|
1 |
+
(window.__wcAdmin_webpackJsonp=window.__wcAdmin_webpackJsonp||[]).push([[11],{584:function(e,t,n){"use strict";var c=n(588),a=["a","b","em","i","strong","p","br"],o=["target","href","rel","name","download"];t.a=function(e){return{__html:Object(c.sanitize)(e,{ALLOWED_TAGS:a,ALLOWED_ATTR:o})}}},586:function(e,t,n){"use strict";n.d(t,"a",(function(){return C})),n.d(t,"b",(function(){return R}));var c=n(20),a=n.n(c),o=n(15),i=n.n(o),r=n(22),s=n.n(r),l=n(23),m=n.n(l),u=n(10),d=n.n(u),f=n(0),b=n(4),p=n.n(b),_=n(248),v=n.n(_),h=n(19),y=n.n(h),O=n(1),g=n.n(O),j=n(74),N=n(68),E=(n(593),n(2));function w(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,c=d()(e);if(t){var a=d()(this).constructor;n=Reflect.construct(c,arguments,a)}else n=c.apply(this,arguments);return m()(this,n)}}var k=function(e){s()(n,e);var t=w(n);function n(){return a()(this,n),t.apply(this,arguments)}return i()(n,[{key:"render",value:function(){var e=this.props,t=e.className,n=e.hasAction,c=e.hasDate,a=e.hasSubtitle,o=e.lines,i=p()("woocommerce-activity-card is-loading",t);return Object(f.createElement)("div",{className:i,"aria-hidden":!0},Object(f.createElement)("span",{className:"woocommerce-activity-card__icon"},Object(f.createElement)("span",{className:"is-placeholder"})),Object(f.createElement)("div",{className:"woocommerce-activity-card__header"},Object(f.createElement)("div",{className:"woocommerce-activity-card__title is-placeholder"}),a&&Object(f.createElement)("div",{className:"woocommerce-activity-card__subtitle is-placeholder"}),c&&Object(f.createElement)("div",{className:"woocommerce-activity-card__date"},Object(f.createElement)("span",{className:"is-placeholder"}))),Object(f.createElement)("div",{className:"woocommerce-activity-card__body"},Object(E.range)(o).map((function(e){return Object(f.createElement)("span",{className:"is-placeholder",key:e})}))),n&&Object(f.createElement)("div",{className:"woocommerce-activity-card__actions"},Object(f.createElement)("span",{className:"is-placeholder"})))}}]),n}(f.Component);k.propTypes={className:g.a.string,hasAction:g.a.bool,hasDate:g.a.bool,hasSubtitle:g.a.bool,lines:g.a.number},k.defaultProps={hasAction:!1,hasDate:!1,hasSubtitle:!1,lines:1};var R=k;function D(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,c=d()(e);if(t){var a=d()(this).constructor;n=Reflect.construct(c,arguments,a)}else n=c.apply(this,arguments);return m()(this,n)}}var C=function(e){s()(n,e);var t=D(n);function n(){return a()(this,n),t.apply(this,arguments)}return i()(n,[{key:"getCard",value:function(){var e=this.props,t=e.actions,n=e.className,c=e.children,a=e.date,o=e.icon,i=e.subtitle,r=e.title,s=e.unread,l=p()("woocommerce-activity-card",n),m=Array.isArray(t)?t:[t],u=/\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}/.test(a)?y.a.utc(a).fromNow():a;return Object(f.createElement)("section",{className:l},s&&Object(f.createElement)("span",{className:"woocommerce-activity-card__unread"}),o&&Object(f.createElement)("span",{className:"woocommerce-activity-card__icon","aria-hidden":!0},o),r&&Object(f.createElement)("header",{className:"woocommerce-activity-card__header"},Object(f.createElement)(j.H,{className:"woocommerce-activity-card__title"},r),i&&Object(f.createElement)("div",{className:"woocommerce-activity-card__subtitle"},i),u&&Object(f.createElement)("span",{className:"woocommerce-activity-card__date"},u)),c&&Object(f.createElement)(j.Section,{className:"woocommerce-activity-card__body"},c),t&&Object(f.createElement)("footer",{className:"woocommerce-activity-card__actions"},m.map((function(e,t){return Object(f.cloneElement)(e,{key:t})}))))}},{key:"render",value:function(){var e=this.props.onClick;return e?Object(f.createElement)(N.a,{className:"woocommerce-activity-card__button",onClick:e},this.getCard()):this.getCard()}}]),n}(f.Component);C.propTypes={actions:g.a.oneOfType([g.a.arrayOf(g.a.element),g.a.element]),onClick:g.a.func,className:g.a.string,children:g.a.node,date:g.a.string,icon:g.a.node,subtitle:g.a.node,title:g.a.oneOfType([g.a.string,g.a.node]),unread:g.a.bool},C.defaultProps={icon:Object(f.createElement)(v.a,{size:48}),unread:!1}},593:function(e,t,n){},594:function(e,t,n){},612:function(e,t,n){"use strict";n.r(t);var c=n(58),a=n.n(c),o=n(0),i=n(3),r=n(181),s=n(74),l=n(34),m=n(25),u=n(366),d=n(365),f=n(586),b=n(20),p=n.n(b),_=n(15),v=n.n(_),h=n(22),y=n.n(h),O=n(23),g=n.n(O),j=n(10),N=n.n(j),E=n(1),w=n.n(E);function k(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,c=N()(e);if(t){var a=N()(this).constructor;n=Reflect.construct(c,arguments,a)}else n=c.apply(this,arguments);return g()(this,n)}}var R=function(e){y()(n,e);var t=k(n);function n(){return p()(this,n),t.apply(this,arguments)}return v()(n,[{key:"render",value:function(){var e=this.props.className;return Object(o.createElement)("div",{className:"woocommerce-inbox-message is-placeholder ".concat(e),"aria-hidden":!0},Object(o.createElement)("div",{className:"woocommerce-inbox-message__image"},Object(o.createElement)("div",{className:"banner-block"})),Object(o.createElement)("div",{className:"woocommerce-inbox-message__wrapper"},Object(o.createElement)("div",{className:"woocommerce-inbox-message__content"},Object(o.createElement)("div",{className:"woocommerce-inbox-message__date"},Object(o.createElement)("div",{className:"sixth-line"})),Object(o.createElement)("div",{className:"woocommerce-inbox-message__title"},Object(o.createElement)("div",{className:"line"}),Object(o.createElement)("div",{className:"line"})),Object(o.createElement)("div",{className:"woocommerce-inbox-message__text"},Object(o.createElement)("div",{className:"line"}),Object(o.createElement)("div",{className:"third-line"}))),Object(o.createElement)("div",{className:"woocommerce-inbox-message__actions"},Object(o.createElement)("div",{className:"fifth-line"}),Object(o.createElement)("div",{className:"fifth-line"}))))}}]),n}(o.Component);R.propTypes={className:w.a.string};var D=R,C=n(13),x=n.n(C),A=n(5),T=n.n(A),S=n(339),M=n(68),U=n(546),B=n(608),P=n.n(B),L=n(19),q=n.n(L),I=n(4),F=n.n(I),Y=n(50),V=n(35);function W(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,c=N()(e);if(t){var a=N()(this).constructor;n=Reflect.construct(c,arguments,a)}else n=c.apply(this,arguments);return g()(this,n)}}var z=function(e){y()(n,e);var t=W(n);function n(e){var c;return p()(this,n),(c=t.call(this,e)).state={inAction:!1},c.handleActionClick=c.handleActionClick.bind(x()(c)),c}return v()(n,[{key:"handleActionClick",value:function(e){var t=this.props,n=t.action,c=t.actionCallback,a=t.batchUpdateNotes,o=t.createNotice,r=t.noteId,s=t.triggerNoteAction,l=t.removeAllNotes,m=t.removeNote,u=t.onClick,d=t.updateNote,f=e.target.href||"",b=!0;f.length&&!f.startsWith(V.a)&&(e.preventDefault(),b=!1,window.open(f,"_blank")),n?this.setState({inAction:b},(function(){s(r,n.id),u&&u()})):(r?m(r).then((function(){o("success",Object(i.__)("Message dismissed.","woocommerce-admin"),{actions:[{label:Object(i.__)("Undo","woocommerce-admin"),onClick:function(){d(r,{is_deleted:0})}}]})})).catch((function(){o("error",Object(i.__)("Message could not be dismissed.","woocommerce-admin"))})):l().then((function(e){o("success",Object(i.__)("All messages dismissed.","woocommerce-admin"),{actions:[{label:Object(i.__)("Undo","woocommerce-admin"),onClick:function(){a(e.map((function(e){return e.id})),{is_deleted:0})}}]})})).catch((function(){o("error",Object(i.__)("Message could not be dismissed.","woocommerce-admin"))})),c(!0))}},{key:"render",value:function(){var e=this.props,t=e.action,n=e.dismiss,c=e.label;return Object(o.createElement)(M.a,{isSecondary:!0,isBusy:this.state.inAction,disabled:this.state.inAction,href:t&&t.url&&t.url.length?t.url:void 0,onClick:this.handleActionClick},n?c:t.label)}}]),n}(o.Component);z.propTypes={noteId:w.a.number,label:w.a.string,dismiss:w.a.bool,actionCallback:w.a.func,action:w.a.shape({id:w.a.number.isRequired,url:w.a.string,label:w.a.string.isRequired,primary:w.a.bool.isRequired}),onClick:w.a.func};var H=Object(r.a)(Object(m.withDispatch)((function(e){var t=e("core/notices").createNotice,n=e(l.NOTES_STORE_NAME),c=n.batchUpdateNotes,a=n.removeAllNotes,o=n.removeNote,i=n.updateNote;return{batchUpdateNotes:c,createNotice:t,removeAllNotes:a,removeNote:o,triggerNoteAction:n.triggerNoteAction,updateNote:i}})))(z),J=n(584);n(594);function Q(){var e,t="",n=(e=window.location.search)?e.substr(1).split("&").reduce((function(e,t){var n=t.split("="),c=n[0],a=decodeURIComponent(n[1]);return a=isNaN(Number(a))?a:Number(a),e[c]=a,e}),{}):{},c=n.page,a=n.path,o=n.post_type;if(c){var i="wc-admin"===c?"home_screen":c;t=a?a.replace(/\//g,"_").substring(1):i}else o&&(t=o);return t}function G(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,c=N()(e);if(t){var a=N()(this).constructor;n=Reflect.construct(c,arguments,a)}else n=c.apply(this,arguments);return g()(this,n)}}var Z=function(e){y()(n,e);var t=G(n);function n(e){var c;return p()(this,n),c=t.call(this,e),T()(x()(c),"onActionClicked",(function(e){e.actioned_text&&c.setState({clickedActionText:e.actioned_text})})),c.onVisible=c.onVisible.bind(x()(c)),c.hasBeenSeen=!1,c.state={isDismissModalOpen:!1,dismissType:null,clickedActionText:null},c.openDismissModal=c.openDismissModal.bind(x()(c)),c.closeDismissModal=c.closeDismissModal.bind(x()(c)),c.bodyNotificationRef=Object(o.createRef)(),c.screen=Q(),c}return v()(n,[{key:"componentDidMount",value:function(){var e=this;this.bodyNotificationRef.current&&this.bodyNotificationRef.current.addEventListener("click",(function(t){return e.handleBodyClick(t,e.props)}))}},{key:"componentWillUnmount",value:function(){var e=this;this.bodyNotificationRef.current&&this.bodyNotificationRef.current.removeEventListener("click",(function(t){return e.handleBodyClick(t,e.props)}))}},{key:"handleBodyClick",value:function(e,t){var n=e.target.href;if(n){var c=t.note;Object(Y.recordEvent)("wcadmin_inbox_action_click",{note_name:c.name,note_title:c.title,note_content_inner_link:n})}}},{key:"onVisible",value:function(e){if(e&&!this.hasBeenSeen){var t=this.props.note;Object(Y.recordEvent)("inbox_note_view",{note_content:t.content,note_name:t.name,note_title:t.title,note_type:t.type,screen:this.screen}),this.hasBeenSeen=!0}}},{key:"openDismissModal",value:function(e,t){this.setState({isDismissModalOpen:!0,dismissType:e}),t()}},{key:"closeDismissModal",value:function(e){var t=this.state.dismissType,n=this.props.note,c="all"===t;Object(Y.recordEvent)("inbox_action_dismiss",{note_name:n.name,note_title:n.title,note_name_dismiss_all:c,note_name_dismiss_confirmation:e||!1,screen:this.screen}),this.setState({isDismissModalOpen:!1})}},{key:"handleBlur",value:function(e,t){var n=e.relatedTarget?e.relatedTarget:document.activeElement;!!n&&["woocommerce-admin-dismiss-notification","components-popover__content"].some((function(e){return n.className.includes(e)}))?e.preventDefault():t()}},{key:"renderDismissButton",value:function(){var e=this;return this.state.clickedActionText?null:Object(o.createElement)(S.a,{contentClassName:"woocommerce-admin-dismiss-dropdown",position:"bottom right",renderToggle:function(t){var n=t.onClose,c=t.onToggle;return Object(o.createElement)(M.a,{isTertiary:!0,onClick:c,onBlur:function(t){return e.handleBlur(t,n)}},Object(i.__)("Dismiss","woocommerce-admin"))},focusOnMount:!1,popoverProps:{noArrow:!0},renderContent:function(t){var n=t.onToggle;return Object(o.createElement)("ul",null,Object(o.createElement)("li",null,Object(o.createElement)(M.a,{className:"woocommerce-admin-dismiss-notification",onClick:function(){return e.openDismissModal("this",n)}},Object(i.__)("Dismiss this message","woocommerce-admin"))),Object(o.createElement)("li",null,Object(o.createElement)(M.a,{className:"woocommerce-admin-dismiss-notification",onClick:function(){return e.openDismissModal("all",n)}},Object(i.__)("Dismiss all messages","woocommerce-admin"))))}})}},{key:"getDismissConfirmationButton",value:function(){var e=this.props.note,t=this.state.dismissType;return Object(o.createElement)(H,{key:e.id,noteId:"all"===t?null:e.id,label:Object(i.__)("Yes, I'm sure","woocommerce-admin"),actionCallback:this.closeDismissModal,dismiss:!0,screen:this.screen})}},{key:"renderDismissConfirmationModal",value:function(){var e=this;return Object(o.createElement)(U.a,{title:Object(o.createElement)(o.Fragment,null,Object(i.__)("Are you sure?","woocommerce-admin")),onRequestClose:function(){return e.closeDismissModal()},className:"woocommerce-inbox-dismiss-confirmation_modal"},Object(o.createElement)("div",{className:"woocommerce-inbox-dismiss-confirmation_wrapper"},Object(o.createElement)("p",null,Object(i.__)("Dismissed messages cannot be viewed again","woocommerce-admin")),Object(o.createElement)("div",{className:"woocommerce-inbox-dismiss-confirmation_buttons"},Object(o.createElement)(M.a,{isSecondary:!0,onClick:function(){return e.closeDismissModal()}},Object(i.__)("Cancel","woocommerce-admin")),this.getDismissConfirmationButton())))}},{key:"renderActions",value:function(e){var t=this,n=e.actions,c=e.id,a=this.state.clickedActionText;return a||(n?Object(o.createElement)(o.Fragment,null,n.map((function(e,n){return Object(o.createElement)(H,{key:n,noteId:c,action:e,onClick:function(){return t.onActionClicked(e)}})}))):void 0)}},{key:"render",value:function(){var e=this.props,t=e.lastRead,n=e.note,c=this.state.isDismissModalOpen,a=n.content,i=n.date_created,r=n.date_created_gmt,l=n.image,m=n.is_deleted,u=n.layout,d=n.status,f=n.title;if(m)return null;var b=!t||!r||new Date(r+"Z").getTime()>t,p=i,_="plain"!==u&&""!==u,v=F()("woocommerce-inbox-message",u,{"message-is-unread":b&&"unactioned"===d});return Object(o.createElement)(P.a,{onChange:this.onVisible},Object(o.createElement)("section",{className:v},_&&Object(o.createElement)("div",{className:"woocommerce-inbox-message__image"},Object(o.createElement)("img",{src:l,alt:""})),Object(o.createElement)("div",{className:"woocommerce-inbox-message__wrapper"},Object(o.createElement)("div",{className:"woocommerce-inbox-message__content"},p&&Object(o.createElement)("span",{className:"woocommerce-inbox-message__date"},q.a.utc(p).fromNow()),Object(o.createElement)(s.H,{className:"woocommerce-inbox-message__title"},f),Object(o.createElement)(s.Section,{className:"woocommerce-inbox-message__text"},Object(o.createElement)("span",{dangerouslySetInnerHTML:Object(J.a)(a),ref:this.bodyNotificationRef}))),Object(o.createElement)("div",{className:"woocommerce-inbox-message__actions"},this.renderActions(n),this.renderDismissButton())),c&&this.renderDismissConfirmationModal()))}}]),n}(o.Component);Z.propTypes={note:w.a.shape({id:w.a.number,status:w.a.string,title:w.a.string,content:w.a.string,date_created:w.a.string,date_created_gmt:w.a.string,actions:w.a.arrayOf(w.a.shape({id:w.a.number.isRequired,url:w.a.string,label:w.a.string.isRequired,primary:w.a.bool.isRequired})),layout:w.a.string,image:w.a.string,is_deleted:w.a.bool}),lastRead:w.a.number};var K=Z,X=n(249),$=function(e){var t=e.hasNotes,n=e.isBatchUpdating,c=e.lastRead,a=e.notes;if(!n){if(!t)return Object(o.createElement)(f.a,{className:"woocommerce-empty-activity-card",title:Object(i.__)("Your inbox is empty","woocommerce-admin"),icon:!1},Object(i.__)("As things begin to happen in your store your inbox will start to fill up. You'll see things like achievements, new feature announcements, extension recommendations and more!","woocommerce-admin"));var r=Object.keys(a).map((function(e){return a[e]}));return Object(o.createElement)(u.a,{role:"menu"},r.map((function(e){var t=e.id;return e.is_deleted?null:Object(o.createElement)(d.a,{key:t,timeout:500,classNames:"woocommerce-inbox-message"},Object(o.createElement)(K,{key:t,note:e,lastRead:c}))})))}};t.default=Object(r.a)(Object(m.withSelect)((function(e){var t=e(l.NOTES_STORE_NAME),n=t.getNotes,c=t.getNotesError,a=t.isResolving,o=t.isNotesRequesting,i={page:1,per_page:l.QUERY_DEFAULTS.pageSize,status:"unactioned",type:l.QUERY_DEFAULTS.noteTypes,orderby:"date",order:"desc",_fields:["id","name","title","content","type","status","actions","date_created","date_created_gmt","layout","image","is_deleted"]};return{notes:n(i),isError:Boolean(c("getNotes",[i])),isResolving:a("getNotes",[i]),isBatchUpdating:o("batchUpdateNotes")}})))((function(e){var t=e.isError,n=e.isResolving,c=e.isBatchUpdating,r=e.notes,m=Object(l.useUserPreferences)(),u=m.updateUserPreferences,d=a()(m,["updateUserPreferences"]).activity_panel_inbox_last_read;if(Object(o.useEffect)((function(){var e=Date.now();return function(){u({activity_panel_inbox_last_read:e})}}),[]),t){var f=Object(i.__)("There was an error getting your inbox. Please try again.","woocommerce-admin"),b=Object(i.__)("Reload","woocommerce-admin");return Object(o.createElement)(s.EmptyContent,{title:f,actionLabel:b,actionURL:null,actionCallback:function(){window.location.reload()}})}var p=Object(X.b)(r);return Object(o.createElement)(o.Fragment,null,Object(o.createElement)("div",{className:"woocommerce-homepage-notes-wrapper"},(n||c)&&Object(o.createElement)(s.Section,null,Object(o.createElement)(D,{className:"banner message-is-unread"})),Object(o.createElement)(s.Section,null,!n&&!c&&$({hasNotes:p,isBatchUpdating:c,lastRead:d,notes:r}))))}))}}]);
|
dist/chunks/analytics-settings.js
CHANGED
@@ -1134,7 +1134,7 @@ var external_this_wp_element_ = __webpack_require__(0);
|
|
1134 |
var external_this_wp_i18n_ = __webpack_require__(3);
|
1135 |
|
1136 |
// EXTERNAL MODULE: ./node_modules/@wordpress/components/build-module/button/index.js
|
1137 |
-
var build_module_button = __webpack_require__(
|
1138 |
|
1139 |
// EXTERNAL MODULE: ./node_modules/@wordpress/compose/build-module/higher-order/compose.js
|
1140 |
var compose = __webpack_require__(181);
|
1134 |
var external_this_wp_i18n_ = __webpack_require__(3);
|
1135 |
|
1136 |
// EXTERNAL MODULE: ./node_modules/@wordpress/components/build-module/button/index.js
|
1137 |
+
var build_module_button = __webpack_require__(68);
|
1138 |
|
1139 |
// EXTERNAL MODULE: ./node_modules/@wordpress/compose/build-module/higher-order/compose.js
|
1140 |
var compose = __webpack_require__(181);
|
dist/chunks/analytics-settings.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
(window.__wcAdmin_webpackJsonp=window.__wcAdmin_webpackJsonp||[]).push([[23],{125:function(e,t,r){"use strict";function n(e){return function(){return e}}var o=function(){};o.thatReturns=n,o.thatReturnsFalse=n(!1),o.thatReturnsTrue=n(!0),o.thatReturnsNull=n(null),o.thatReturnsThis=function(){return this},o.thatReturnsArgument=function(e){return e},e.exports=o},163:function(e,t,r){"use strict";var n=r(8),o="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,a=r(125),c=r(164),i=r(165),s="function"==typeof Symbol&&Symbol.iterator;function l(e,t){return e&&"object"==typeof e&&null!=e.key?(r=e.key,n={"=":"=0",":":"=2"},"$"+(""+r).replace(/[=:]/g,(function(e){return n[e]}))):t.toString(36);var r,n}function u(e,t,r,n){var a,i=typeof e;if("undefined"!==i&&"boolean"!==i||(e=null),null===e||"string"===i||"number"===i||"object"===i&&e.$$typeof===o)return r(n,e,""===t?"."+l(e,0):t),1;var m=0,p=""===t?".":t+":";if(Array.isArray(e))for(var d=0;d<e.length;d++)m+=u(a=e[d],p+l(a,d),r,n);else{var b=function(e){var t=e&&(s&&e[s]||e["@@iterator"]);if("function"==typeof t)return t}(e);if(b){0;for(var f,h=b.call(e),v=0;!(f=h.next()).done;)m+=u(a=f.value,p+l(a,v++),r,n)}else if("object"===i){0;var O=""+e;c(!1,"Objects are not valid as a React child (found: %s).%s","[object Object]"===O?"object with keys {"+Object.keys(e).join(", ")+"}":O,"")}}return m}var m=/\/+/g;function p(e){return(""+e).replace(m,"$&/")}var d,b,f=h,h=function(e){if(this.instancePool.length){var t=this.instancePool.pop();return this.call(t,e),t}return new this(e)},v=function(e){c(e instanceof this,"Trying to release an instance into a pool of a different type."),e.destructor(),this.instancePool.length<this.poolSize&&this.instancePool.push(e)};function O(e,t,r,n){this.result=e,this.keyPrefix=t,this.func=r,this.context=n,this.count=0}function g(e,t,r){var o,c,i=e.result,s=e.keyPrefix,l=e.func,u=e.context,m=l.call(u,t,e.count++);Array.isArray(m)?j(m,i,r,a.thatReturnsArgument):null!=m&&(n.isValidElement(m)&&(o=m,c=s+(!m.key||t&&t.key===m.key?"":p(m.key)+"/")+r,m=n.cloneElement(o,{key:c},void 0!==o.props?o.props.children:void 0)),i.push(m))}function j(e,t,r,n,o){var a="";null!=r&&(a=p(r)+"/");var c=O.getPooled(t,a,n,o);!function(e,t,r){null==e||u(e,"",t,r)}(e,g,c),O.release(c)}O.prototype.destructor=function(){this.result=null,this.keyPrefix=null,this.func=null,this.context=null,this.count=0},d=function(e,t,r,n){if(this.instancePool.length){var o=this.instancePool.pop();return this.call(o,e,t,r,n),o}return new this(e,t,r,n)},(b=O).instancePool=[],b.getPooled=d||f,b.poolSize||(b.poolSize=10),b.release=v;e.exports=function(e){if("object"!=typeof e||!e||Array.isArray(e))return i(!1,"React.addons.createFragment only accepts a single object. Got: %s",e),e;if(n.isValidElement(e))return i(!1,"React.addons.createFragment does not accept a ReactElement without a wrapper object."),e;c(1!==e.nodeType,"React.addons.createFragment(...): Encountered an invalid child; DOM elements are not valid children of React components.");var t=[];for(var r in e)j(e[r],t,r,a.thatReturnsArgument);return t}},164:function(e,t,r){"use strict";e.exports=function(e,t,r,n,o,a,c,i){if(!e){var s;if(void 0===t)s=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[r,n,o,a,c,i],u=0;(s=new Error(t.replace(/%s/g,(function(){return l[u++]})))).name="Invariant Violation"}throw s.framesToPop=1,s}}},165:function(e,t,r){"use strict";var n=r(125);e.exports=n},166:function(e,t,r){"use strict";function n(e){return e.match(/^\{\{\//)?{type:"componentClose",value:e.replace(/\W/g,"")}:e.match(/\/\}\}$/)?{type:"componentSelfClosing",value:e.replace(/\W/g,"")}:e.match(/^\{\{/)?{type:"componentOpen",value:e.replace(/\W/g,"")}:{type:"string",value:e}}e.exports=function(e){return e.split(/(\{\{\/?\s*\w+\s*\/?\}\})/g).map(n)}},241:function(e,t,r){"use strict";var n=r(6),o=r(11),a=r(4),c=r.n(a),i=r(0);function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}t.a=function(e){var t=e.as,r=void 0===t?"div":t,a=e.className,l=Object(o.a)(e,["as","className"]);return function(e){var t=e.as,r=void 0===t?"div":t,n=Object(o.a)(e,["as"]);return"function"==typeof n.children?n.children(n):Object(i.createElement)(r,n)}(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?s(Object(r),!0).forEach((function(t){Object(n.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({as:r,className:c()("components-visually-hidden",a)},l))}},43:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=i(r(8)),a=i(r(163)),c=i(r(166));function i(e){return e&&e.__esModule?e:{default:e}}var s=void 0;function l(e,t){var r,c,i,u,m,p,d,b,f=[],h={};for(p=0;p<e.length;p++)if("string"!==(m=e[p]).type){if(!t.hasOwnProperty(m.value)||void 0===t[m.value])throw new Error("Invalid interpolation, missing component node: `"+m.value+"`");if("object"!==n(t[m.value]))throw new Error("Invalid interpolation, component node must be a ReactElement or null: `"+m.value+"`","\n> "+s);if("componentClose"===m.type)throw new Error("Missing opening component token: `"+m.value+"`");if("componentOpen"===m.type){r=t[m.value],i=p;break}f.push(t[m.value])}else f.push(m.value);return r&&(u=function(e,t){var r,n,o=t[e],a=0;for(n=e+1;n<t.length;n++)if((r=t[n]).value===o.value){if("componentOpen"===r.type){a++;continue}if("componentClose"===r.type){if(0===a)return n;a--}}throw new Error("Missing closing component token `"+o.value+"`")}(i,e),d=l(e.slice(i+1,u),t),c=o.default.cloneElement(r,{},d),f.push(c),u<e.length-1&&(b=l(e.slice(u+1),t),f=f.concat(b))),1===f.length?f[0]:(f.forEach((function(e,t){e&&(h["interpolation-child-"+t]=e)})),(0,a.default)(h))}t.default=function(e){var t=e.mixedString,r=e.components,o=e.throwErrors;if(s=t,!r)return t;if("object"!==(void 0===r?"undefined":n(r))){if(o)throw new Error("Interpolation Error: unable to process `"+t+"` because components is not an object");return t}var a=(0,c.default)(t);try{return l(a,r)}catch(e){if(o)throw new Error("Interpolation Error: unable to process `"+t+"` because of error `"+e.message+"`");return t}}},581:function(e,t,r){"use strict";var n=r(0),o=r(4),a=r.n(o),c=r(241);function i(e){var t=e.id,r=e.label,o=e.hideLabelFromVision,s=e.help,l=e.className,u=e.children;return Object(n.createElement)("div",{className:a()("components-base-control",l)},Object(n.createElement)("div",{className:"components-base-control__field"},r&&t&&(o?Object(n.createElement)(c.a,{as:"label",htmlFor:t},r):Object(n.createElement)("label",{className:"components-base-control__label",htmlFor:t},r)),r&&!t&&(o?Object(n.createElement)(c.a,{as:"label"},r):Object(n.createElement)(i.VisualLabel,null,r)),u),!!s&&Object(n.createElement)("p",{id:t+"__help",className:"components-base-control__help"},s))}i.VisualLabel=function(e){var t=e.className,r=e.children;return t=a()("components-base-control__label",t),Object(n.createElement)("span",{className:t},r)},t.a=i},589:function(e,t,r){"use strict";r.d(t,"a",(function(){return u}));var n=r(7),o=r(11),a=r(0),c=r(147),i=r(382),s=r(571),l=r(581);function u(e){var t=e.label,r=e.className,m=e.heading,p=e.checked,d=e.help,b=e.onChange,f=Object(o.a)(e,["label","className","heading","checked","help","onChange"]),h=Object(c.a)(u),v="inspector-checkbox-control-".concat(h);return Object(a.createElement)(l.a,{label:m,id:v,help:d,className:r},Object(a.createElement)("span",{className:"components-checkbox-control__input-container"},Object(a.createElement)("input",Object(n.a)({id:v,className:"components-checkbox-control__input",type:"checkbox",value:"1",onChange:function(e){return b(e.target.checked)},checked:p,"aria-describedby":d?v+"__help":void 0},f)),p?Object(a.createElement)(i.a,{icon:s.a,className:"components-checkbox-control__checked",role:"presentation"}):null),Object(a.createElement)("label",{className:"components-checkbox-control__label",htmlFor:v},t))}},605:function(e,t,r){"use strict";r.d(t,"a",(function(){return b})),r.d(t,"b",(function(){return g}));var n=r(0),o=r(3),a=r(51),c=r(43),i=r.n(c),s=r(35),l=r(82),u=r(74),m=r(34),p=r(42),d=function(e){var t=e.value,r=e.onChange,o=Object(m.useSettings)("wc_admin",["wcAdminSettings"]).wcAdminSettings.woocommerce_default_date_range,a=Object(l.parse)(t.replace(/&/g,"&")),c=Object(p.getDateParamsFromQuery)(a,o),i=c.period,s=c.compare,d=c.before,b=c.after,f=Object(p.getCurrentDates)(a,o),h={period:i,compare:s,before:d,after:b,primaryDate:f.primary,secondaryDate:f.secondary};return Object(n.createElement)(u.DateRangeFilterPicker,{query:a,onRangeSelect:function(e){r({target:{name:"woocommerce_default_date_range",value:Object(l.stringify)(e)}})},dateQuery:h,isoDateFormat:p.isoDateFormat})},b=["processing","on-hold"],f=["completed","processing","refunded","cancelled","failed","pending","on-hold"],h=Object.keys(s.d).filter((function(e){return"refunded"!==e})).map((function(e){return{value:e,label:s.d[e],description:Object(o.sprintf)(Object(o.__)("Exclude the %s status from reports","woocommerce-admin"),s.d[e])}})),v=Object(s.g)("unregisteredOrderStatuses",{}),O=[{key:"defaultStatuses",options:h.filter((function(e){return f.includes(e.value)}))},{key:"customStatuses",label:Object(o.__)("Custom Statuses","woocommerce-admin"),options:h.filter((function(e){return!f.includes(e.value)}))},{key:"unregisteredStatuses",label:Object(o.__)("Unregistered Statuses","woocommerce-admin"),options:Object.keys(v).map((function(e){return{value:e,label:e,description:Object(o.sprintf)(Object(o.__)("Exclude the %s status from reports","woocommerce-admin"),e)}}))}],g=Object(a.applyFilters)("woocommerce_admin_analytics_settings",{woocommerce_excluded_report_order_statuses:{label:Object(o.__)("Excluded Statuses:","woocommerce-admin"),inputType:"checkboxGroup",options:O,helpText:i()({mixedString:Object(o.__)("Orders with these statuses are excluded from the totals in your reports. The {{strong}}Refunded{{/strong}} status can not be excluded.","woocommerce-admin"),components:{strong:Object(n.createElement)("strong",null)}}),defaultValue:["pending","cancelled","failed"]},woocommerce_actionable_order_statuses:{label:Object(o.__)("Actionable Statuses:","woocommerce-admin"),inputType:"checkboxGroup",options:O,helpText:Object(o.__)("Orders with these statuses require action on behalf of the store admin. These orders will show up in the Home Screen - Orders task.","woocommerce-admin"),defaultValue:b},woocommerce_default_date_range:{name:"woocommerce_default_date_range",label:Object(o.__)("Default Date Range:","woocommerce-admin"),inputType:"component",component:d,helpText:Object(o.__)("Select a default date range. When no range is selected, reports will be viewed by the default date range.","woocommerce-admin"),defaultValue:"period=month&compare=previous_year"}})},616:function(e,t,r){},617:function(e,t,r){},618:function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var n=r(0);function o(){return Object(n.createElement)("span",{className:"components-spinner"})}},619:function(e,t,r){},670:function(e,t,r){"use strict";r.r(t);var n=r(36),o=r.n(n),a=r(28),c=r.n(a),i=r(5),s=r.n(i),l=r(0),u=r(3),m=r(67),p=r(181),d=r(25),b=r(74),f=r(34),h=r(50),v=(r(616),r(605)),O=r(20),g=r.n(O),j=r(15),y=r.n(j),_=r(13),w=r.n(_),S=r(22),E=r.n(S),k=r(23),I=r.n(k),N=r(10),P=r.n(N),C=r(589),T=r(1),R=r.n(T),D=r(2);r(617);function x(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=P()(e);if(t){var o=P()(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return I()(this,r)}}var A=function(e){E()(r,e);var t=x(r);function r(e){var n;return g()(this,r),n=t.call(this,e),s()(w()(n),"renderInput",(function(){var e=n.props,t=e.handleChange,r=e.name,a=e.inputText,c=e.inputType,i=e.options,s=e.value,u=e.component,p=n.state.disabled;switch(c){case"checkboxGroup":return i.map((function(e){return e.options.length>0&&Object(l.createElement)("div",{className:"woocommerce-setting__options-group",key:e.key,"aria-labelledby":r+"-label"},e.label&&Object(l.createElement)("span",{className:"woocommerce-setting__options-group-label"},e.label),n.renderCheckboxOptions(e.options))}));case"checkbox":return n.renderCheckboxOptions(i);case"button":return Object(l.createElement)(m.a,{isSecondary:!0,onClick:n.handleInputCallback,disabled:p},a);case"component":var d=u;return Object(l.createElement)(d,o()({value:s,onChange:t},n.props));case"text":default:var b=Object(D.uniqueId)(r);return Object(l.createElement)("input",{id:b,type:"text",name:r,onChange:t,value:s,placeholder:a,disabled:p})}})),s()(w()(n),"handleInputCallback",(function(){var e=n.props,t=e.createNotice,r=e.callback;if("function"==typeof r)return new Promise((function(e,o){n.setState({disabled:!0}),r(e,o,t)})).then((function(){n.setState({disabled:!1})})).catch((function(){n.setState({disabled:!1})}))})),n.state={disabled:!1},n}return y()(r,[{key:"renderCheckboxOptions",value:function(e){var t=this.props,r=t.handleChange,n=t.name,o=t.value,a=this.state.disabled;return e.map((function(e){return Object(l.createElement)(C.a,{key:n+"-"+e.value,label:e.label,name:n,checked:o&&o.includes(e.value),onChange:function(t){return r({target:{checked:t,name:n,type:"checkbox",value:e.value}})},disabled:a})}))}},{key:"render",value:function(){var e=this.props,t=e.helpText,r=e.label,n=e.name;return Object(l.createElement)("div",{className:"woocommerce-setting"},Object(l.createElement)("div",{className:"woocommerce-setting__label",id:n+"-label"},r),Object(l.createElement)("div",{className:"woocommerce-setting__input"},this.renderInput(),t&&Object(l.createElement)("span",{className:"woocommerce-setting__help"},t)))}}]),r}(l.Component);A.propTypes={callback:R.a.func,handleChange:R.a.func.isRequired,helpText:R.a.oneOfType([R.a.string,R.a.array]),inputText:R.a.string,inputType:R.a.oneOf(["button","checkbox","checkboxGroup","text","component"]),label:R.a.string.isRequired,name:R.a.string.isRequired,options:R.a.arrayOf(R.a.shape({value:R.a.string,label:R.a.string,description:R.a.string,key:R.a.string,options:R.a.array})),value:R.a.oneOfType([R.a.string,R.a.array])};var F=Object(p.a)(Object(d.withDispatch)((function(e){return{createNotice:e("core/notices").createNotice}})))(A),M=r(7),V=r(16),z=r(17),L=r(12),Y=r(18),q=r(21),U=r(9),H=r(141),W=r(77);function B(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Object(U.a)(e);if(t){var o=Object(U.a)(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Object(q.a)(this,r)}}var G=Object(W.a)((function(e){return function(t){Object(Y.a)(n,t);var r=B(n);function n(){var e;return Object(V.a)(this,n),(e=r.apply(this,arguments)).debouncedSpeak=Object(D.debounce)(e.speak.bind(Object(L.a)(e)),500),e}return Object(z.a)(n,[{key:"speak",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"polite";Object(H.a)(e,t)}},{key:"componentWillUnmount",value:function(){this.debouncedSpeak.cancel()}},{key:"render",value:function(){return Object(l.createElement)(e,Object(M.a)({},this.props,{speak:this.speak,debouncedSpeak:this.debouncedSpeak}))}}]),n}(l.Component)}),"withSpokenMessages"),$=r(19),Q=r.n($),J=function(e,t,r){var n={};if(r&&(n.skip_existing=!0),"all"!==t.label)if("custom"===t.label){var o=Q()().diff(Q()(t.date,e),"days",!0);n.days=Math.floor(o)}else n.days=parseInt(t.label,10);return n},K=r(33);var X=Object(p.a)([Object(d.withSelect)((function(e){var t=(0,e(f.IMPORT_STORE_NAME).getFormSettings)();return{selectedPeriod:t.period,skipChecked:t.skipPrevious}})),Object(d.withDispatch)((function(e){var t=e(f.IMPORT_STORE_NAME),r=t.updateImportation,n=t.setImportStarted;return{createNotice:e("core/notices").createNotice,setImportStarted:n,updateImportation:r}}))])((function(e){var t,r=e.clearStatusAndTotalsCache,n=e.createNotice,o=e.dateFormat,a=e.importDate,c=e.onImportStarted,i=e.selectedPeriod,s=e.stopImport,p=e.skipChecked,d=e.status,b=e.setImportStarted,f=e.updateImportation,v=function(){var e=Object(K.addQueryArgs)("/wc-analytics/reports/import",J(o,i,p)),t=Object(u.__)("There was a problem rebuilding your report data.","woocommerce-admin");g(e,t,!0),c()},O=function(){s();var e=Object(u.__)("There was a problem stopping your current import.","woocommerce-admin");g("/wc-analytics/reports/import/cancel",e)},g=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];f(e,r).then((function(e){"success"===e.status?n("success",e.message):(n("error",t),b(!1),s())})).catch((function(e){e&&e.message&&(n("error",e.message),b(!1),s())}))},j=function(){var e=Object(u.__)("There was a problem deleting your previous data.","woocommerce-admin");g("/wc-analytics/reports/import/delete",e),Object(h.recordEvent)("analytics_import_delete_previous"),b(!1)},y=function(){b(!1),r()};return Object(l.createElement)("div",{className:"woocommerce-settings__actions woocommerce-settings-historical-data__actions"},(t="ready"!==d,["initializing","customers","orders","finalizing"].includes(d)?Object(l.createElement)(l.Fragment,null,Object(l.createElement)(m.a,{className:"woocommerce-settings-historical-data__action-button",isPrimary:!0,onClick:O},Object(u.__)("Stop Import","woocommerce-admin")),Object(l.createElement)("div",{className:"woocommerce-setting__help woocommerce-settings-historical-data__action-help"},Object(u.__)("Imported data will not be lost if the import is stopped.","woocommerce-admin"),Object(l.createElement)("br",null),Object(u.__)("Navigating away from this page will not affect the import.","woocommerce-admin"))):["ready","nothing"].includes(d)?a?Object(l.createElement)(l.Fragment,null,Object(l.createElement)(m.a,{isPrimary:!0,onClick:v,disabled:t},Object(u.__)("Start","woocommerce-admin")),Object(l.createElement)(m.a,{isSecondary:!0,onClick:j},Object(u.__)("Delete Previously Imported Data","woocommerce-admin"))):Object(l.createElement)(l.Fragment,null,Object(l.createElement)(m.a,{isPrimary:!0,onClick:v,disabled:t},Object(u.__)("Start","woocommerce-admin"))):("error"===d&&n("error",Object(u.__)("Something went wrong with the importation process.","woocommerce-admin")),Object(l.createElement)(l.Fragment,null,Object(l.createElement)(m.a,{isSecondary:!0,onClick:y},Object(u.__)("Re-import Data","woocommerce-admin")),Object(l.createElement)(m.a,{isSecondary:!0,onClick:j},Object(u.__)("Delete Previously Imported Data","woocommerce-admin"))))))})),Z=r(671),ee=r(42);var te=Object(d.withDispatch)((function(e){return{setImportPeriod:e(f.IMPORT_STORE_NAME).setImportPeriod}}))((function(e){var t,r=e.dateFormat,n=e.disabled,o=e.setImportPeriod,a=e.value,c=function(e){e.date&&e.date.isValid?o(e.date.format(r),!0):o(e.text,!0)},i=function(e){return e.isValid()&&a.date.length===r.length?e.isAfter(new Date,"day")?ee.dateValidationMessages.future:null:ee.dateValidationMessages.invalid};return Object(l.createElement)("div",{className:"woocommerce-settings-historical-data__columns"},Object(l.createElement)("div",{className:"woocommerce-settings-historical-data__column"},Object(l.createElement)(Z.a,{label:Object(u.__)("Import Historical Data","woocommerce-admin"),value:a.label,disabled:n,onChange:function(e){o(e)},options:[{label:"All",value:"all"},{label:"Last 365 days",value:"365"},{label:"Last 90 days",value:"90"},{label:"Last 30 days",value:"30"},{label:"Last 7 days",value:"7"},{label:"Last 24 hours",value:"1"},{label:"Custom",value:"custom"}]})),"custom"===a.label&&(t=Q()(a.date,r),Object(l.createElement)("div",{className:"woocommerce-settings-historical-data__column"},Object(l.createElement)("div",{className:"woocommerce-settings-historical-data__column-label"},Object(u.__)("Beginning on","woocommerce-admin")),Object(l.createElement)(b.DatePicker,{date:t.isValid()?t.toDate():null,dateFormat:r,disabled:n,error:i(t),isInvalidDate:function(e){return Q()(e).isAfter(new Date,"day")},onUpdate:c,text:a.date}))))}));var re=function(e){var t=e.label,r=e.progress,n=e.total,o=Object(u.sprintf)(Object(u.__)("Imported %(label)s","woocommerce-admin"),{label:t}),a=Object(D.isNil)(n)?null:Object(u.sprintf)(Object(u.__)("%(progress)s of %(total)s","woocommerce-admin"),{progress:r||0,total:n});return Object(l.createElement)("div",{className:"woocommerce-settings-historical-data__progress"},Object(l.createElement)("span",{className:"woocommerce-settings-historical-data__progress-label"},o),a&&Object(l.createElement)("span",{className:"woocommerce-settings-historical-data__progress-label"},a),Object(l.createElement)("progress",{className:"woocommerce-settings-historical-data__progress-bar",max:n,value:r||0}))},ne=r(51),oe=r(618);var ae=function(e){var t=e.importDate,r=e.status,n=Object(ne.applyFilters)("woocommerce_admin_import_status",{nothing:Object(u.__)("Nothing To Import","woocommerce-admin"),ready:Object(u.__)("Ready To Import","woocommerce-admin"),initializing:[Object(u.__)("Initializing","woocommerce-admin"),Object(l.createElement)(oe.a,{key:"spinner"})],customers:[Object(u.__)("Importing Customers","woocommerce-admin"),Object(l.createElement)(oe.a,{key:"spinner"})],orders:[Object(u.__)("Importing Orders","woocommerce-admin"),Object(l.createElement)(oe.a,{key:"spinner"})],finalizing:[Object(u.__)("Finalizing","woocommerce-admin"),Object(l.createElement)(oe.a,{key:"spinner"})],finished:-1===t?Object(u.__)("All historical data imported","woocommerce-admin"):Object(u.sprintf)(Object(u.__)("Historical data from %s onward imported","woocommerce-admin"),Q()(t).format("YYYY-MM-DD"))});return Object(l.createElement)("span",{className:"woocommerce-settings-historical-data__status"},Object(u.__)("Status:","woocommerce-admin")+" ",n[r])};var ce=Object(d.withDispatch)((function(e){return{setSkipPrevious:e(f.IMPORT_STORE_NAME).setSkipPrevious}}))((function(e){var t=e.checked,r=e.disabled,n=e.setSkipPrevious;return Object(l.createElement)(C.a,{className:"woocommerce-settings-historical-data__skip-checkbox",checked:t,disabled:r,label:Object(u.__)("Skip previously imported customers and orders","woocommerce-admin"),onChange:function(e){n(e)}})}));r(619);function ie(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function se(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ie(Object(r),!0).forEach((function(t){s()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ie(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function le(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=P()(e);if(t){var o=P()(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return I()(this,r)}}var ue=function(e){E()(r,e);var t=le(r);function r(){return g()(this,r),t.apply(this,arguments)}return y()(r,[{key:"render",value:function(){var e=this.props,t=e.customersProgress,r=e.customersTotal,n=e.dateFormat,o=e.importDate,a=e.inProgress,c=e.lastImportStartTimestamp,i=e.clearStatusAndTotalsCache,s=e.ordersProgress,m=e.ordersTotal,p=e.onImportStarted,d=e.period,f=e.stopImport,h=e.skipChecked,v=e.status;return Object(l.createElement)(l.Fragment,null,Object(l.createElement)(b.SectionHeader,{title:Object(u.__)("Import Historical Data","woocommerce-admin")}),Object(l.createElement)("div",{className:"woocommerce-settings__wrapper"},Object(l.createElement)("div",{className:"woocommerce-setting"},Object(l.createElement)("div",{className:"woocommerce-setting__input"},Object(l.createElement)("span",{className:"woocommerce-setting__help"},Object(u.__)("This tool populates historical analytics data by processing customers and orders created prior to activating WooCommerce Admin.","woocommerce-admin")),"finished"!==v&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(te,{dateFormat:n,disabled:a,value:d}),Object(l.createElement)(ce,{disabled:a,checked:h}),Object(l.createElement)(re,{label:Object(u.__)("Registered Customers","woocommerce-admin"),progress:t,total:r}),Object(l.createElement)(re,{label:Object(u.__)("Orders and Refunds","woocommerce-admin"),progress:s,total:m})),Object(l.createElement)(ae,{importDate:o,status:v})))),Object(l.createElement)(X,{clearStatusAndTotalsCache:i,dateFormat:n,importDate:o,lastImportStartTimestamp:c,onImportStarted:p,stopImport:f,status:v}))}}]),r}(l.Component),me=Object(d.withSelect)((function(e,t){var r=e(f.IMPORT_STORE_NAME),n=r.getImportError,o=r.getImportStatus,a=r.getImportTotals,c=t.activeImport,i=t.cacheNeedsClearing,s=t.dateFormat,l=t.inProgress,u=t.onImportStarted,m=t.onImportFinished,p=t.period,d=t.startStatusCheckInterval,b=t.skipChecked,h=J(s,p,b),v=a(h),O=v.customers,g=v.orders,j=v.lastImportStartTimestamp,y=o(j),_=y.customers,w=y.imported_from,S=y.is_importing,E=y.orders,k=_||{},I=k.imported,N=k.total,P=E||{},C=P.imported,T=P.total,R=Boolean(n(j)||n(h));Boolean(!j&&!l&&!0===S)&&u();var x=Boolean(l&&!i&&!1===S&&(N>0||T>0)&&I===N&&C===T),A={customersTotal:O,isError:R,ordersTotal:g};c&&(A={cacheNeedsClearing:i,customersProgress:I,customersTotal:Object(D.isNil)(N)?O:N,inProgress:l,isError:R,ordersProgress:C,ordersTotal:Object(D.isNil)(T)?g:T});var F=function(e){var t=e.cacheNeedsClearing,r=e.customersProgress,n=e.customersTotal,o=e.isError,a=e.inProgress,c=e.ordersProgress,i=e.ordersTotal;return o?"error":a?Object(D.isNil)(r)||Object(D.isNil)(c)||Object(D.isNil)(n)||Object(D.isNil)(i)||t?"initializing":r<n?"customers":c<i?"orders":"finalizing":n>0||i>0?r===n&&c===i?"finished":"ready":"nothing"}(A);return"initializing"===F&&d(),x&&m(),se(se({},A),{},{importDate:w,status:F})}))(ue);function pe(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=P()(e);if(t){var o=P()(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return I()(this,r)}}var de=function(e){E()(r,e);var t=pe(r);function r(){var e;return g()(this,r),(e=t.apply(this,arguments)).dateFormat=Object(u.__)("MM/DD/YYYY","woocommerce-admin"),e.intervalId=-1,e.lastImportStopTimestamp=0,e.cacheNeedsClearing=!0,e.onImportFinished=e.onImportFinished.bind(w()(e)),e.onImportStarted=e.onImportStarted.bind(w()(e)),e.clearStatusAndTotalsCache=e.clearStatusAndTotalsCache.bind(w()(e)),e.stopImport=e.stopImport.bind(w()(e)),e.startStatusCheckInterval=e.startStatusCheckInterval.bind(w()(e)),e.cancelStatusCheckInterval=e.cancelStatusCheckInterval.bind(w()(e)),e}return y()(r,[{key:"startStatusCheckInterval",value:function(){var e=this;this.intervalId<0&&(this.cacheNeedsClearing=!0,this.intervalId=setInterval((function(){e.clearCache("getImportStatus")}),3*f.SECOND))}},{key:"cancelStatusCheckInterval",value:function(){clearInterval(this.intervalId),this.intervalId=-1}},{key:"clearCache",value:function(e,t){var r=this,n=this.props,o=n.invalidateResolution,a=n.lastImportStartTimestamp;o(e,["getImportStatus"===e?a:t]).then((function(){r.cacheNeedsClearing=!1}))}},{key:"stopImport",value:function(){this.cancelStatusCheckInterval(),this.lastImportStopTimestamp=Date.now()}},{key:"onImportFinished",value:function(){var e=this.props.debouncedSpeak;this.cacheNeedsClearing||(e("Import complete"),this.stopImport())}},{key:"onImportStarted",value:function(){var e=this.props,t=e.notes,r=e.setImportStarted,n=e.updateNote,o=t.find((function(e){return"wc-admin-historical-data"===e.name}));o&&n(o.id,{status:"actioned"}),r(!0)}},{key:"clearStatusAndTotalsCache",value:function(){var e=this.props,t=e.selectedPeriod,r=e.skipChecked,n=J(this.dateFormat,t,r);this.clearCache("getImportTotals",n),this.clearCache("getImportStatus")}},{key:"isImportationInProgress",value:function(){var e=this.props.lastImportStartTimestamp;return void 0!==e&&void 0===this.lastImportStopTimestamp||e>this.lastImportStopTimestamp}},{key:"render",value:function(){var e=this.props,t=e.activeImport,r=e.createNotice,n=e.lastImportStartTimestamp,o=e.selectedPeriod,a=e.skipChecked;return Object(l.createElement)(me,{activeImport:t,cacheNeedsClearing:this.cacheNeedsClearing,createNotice:r,dateFormat:this.dateFormat,inProgress:this.isImportationInProgress(),onImportFinished:this.onImportFinished,onImportStarted:this.onImportStarted,lastImportStartTimestamp:n,clearStatusAndTotalsCache:this.clearStatusAndTotalsCache,period:o,skipChecked:a,startStatusCheckInterval:this.startStatusCheckInterval,stopImport:this.stopImport})}}]),r}(l.Component),be=Object(p.a)([Object(d.withSelect)((function(e){var t=e(f.NOTES_STORE_NAME).getNotes,r=e(f.IMPORT_STORE_NAME),n=r.getImportStarted,o=r.getFormSettings,a=t({page:1,per_page:f.QUERY_DEFAULTS.pageSize,type:"update",status:"unactioned"}),c=n(),i=c.activeImport,s=c.lastImportStartTimestamp,l=o();return{activeImport:i,lastImportStartTimestamp:s,notes:a,selectedPeriod:l.period,skipChecked:l.skipPrevious}})),Object(d.withDispatch)((function(e){var t=e(f.NOTES_STORE_NAME).updateNote,r=e(f.IMPORT_STORE_NAME);return{invalidateResolution:r.invalidateResolution,setImportStarted:r.setImportStarted,updateNote:t}})),G])(de);function fe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}t.default=Object(p.a)(Object(d.withDispatch)((function(e){return{createNotice:e("core/notices").createNotice}})))((function(e){var t=e.createNotice,r=e.query,n=Object(f.useSettings)("wc_admin",["wcAdminSettings"]),a=n.settingsError,i=n.isRequesting,p=n.isDirty,d=n.persistSettings,O=n.updateAndPersistSettings,g=n.updateSettings,j=n.wcAdminSettings,y=Object(l.useRef)(!1);Object(l.useEffect)((function(){function e(e){if(p)return e.returnValue=Object(u.__)("You have unsaved changes. If you proceed, they will be lost.","woocommerce-admin"),e.returnValue}return window.addEventListener("beforeunload",e),function(){return window.removeEventListener("beforeunload",e)}}),[p]),Object(l.useEffect)((function(){i?y.current=!0:!i&&y.current&&(a?t("error",Object(u.__)("There was an error saving your settings. Please try again.","woocommerce-admin")):t("success",Object(u.__)("Your settings have been successfully saved.","woocommerce-admin")),y.current=!1)}),[i,a,t]);var _=function(e){var t=e.target,r=t.checked,n=t.name,o=t.type,a=t.value,i=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?fe(Object(r),!0).forEach((function(t){s()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):fe(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},j);i[n]="checkbox"===o?r?[].concat(c()(i[n]),[a]):i[n].filter((function(e){return e!==a})):a,g("wcAdminSettings",i)};return Object(l.createElement)(l.Fragment,null,Object(l.createElement)(b.SectionHeader,{title:Object(u.__)("Analytics Settings","woocommerce-admin")}),Object(l.createElement)("div",{className:"woocommerce-settings__wrapper"},Object.keys(v.b).map((function(e){return Object(l.createElement)(F,o()({handleChange:_,value:j[e],key:e,name:e},v.b[e]))})),Object(l.createElement)("div",{className:"woocommerce-settings__actions"},Object(l.createElement)(m.a,{isSecondary:!0,onClick:function(){if(window.confirm(Object(u.__)("Are you sure you want to reset all settings to default values?","woocommerce-admin"))){var e=Object.keys(v.b).reduce((function(e,t){return e[t]=v.b[t].defaultValue,e}),{});O("wcAdminSettings",e),Object(h.recordEvent)("analytics_settings_reset_defaults")}}},Object(u.__)("Reset Defaults","woocommerce-admin")),Object(l.createElement)(m.a,{isPrimary:!0,isBusy:i,onClick:function(){d(),Object(h.recordEvent)("analytics_settings_save",j),r.period=void 0,r.compare=void 0,r.before=void 0,r.after=void 0,r.interval=void 0,r.type=void 0,window.wpNavMenuUrlUpdate(r)}},Object(u.__)("Save Settings","woocommerce-admin")))),"true"===r.import?Object(l.createElement)(b.ScrollTo,{offset:"-56"},Object(l.createElement)(be,{createNotice:t})):Object(l.createElement)(be,{createNotice:t}))}))}}]);
|
1 |
+
(window.__wcAdmin_webpackJsonp=window.__wcAdmin_webpackJsonp||[]).push([[23],{125:function(e,t,r){"use strict";function n(e){return function(){return e}}var o=function(){};o.thatReturns=n,o.thatReturnsFalse=n(!1),o.thatReturnsTrue=n(!0),o.thatReturnsNull=n(null),o.thatReturnsThis=function(){return this},o.thatReturnsArgument=function(e){return e},e.exports=o},163:function(e,t,r){"use strict";var n=r(8),o="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,a=r(125),c=r(164),i=r(165),s="function"==typeof Symbol&&Symbol.iterator;function l(e,t){return e&&"object"==typeof e&&null!=e.key?(r=e.key,n={"=":"=0",":":"=2"},"$"+(""+r).replace(/[=:]/g,(function(e){return n[e]}))):t.toString(36);var r,n}function u(e,t,r,n){var a,i=typeof e;if("undefined"!==i&&"boolean"!==i||(e=null),null===e||"string"===i||"number"===i||"object"===i&&e.$$typeof===o)return r(n,e,""===t?"."+l(e,0):t),1;var m=0,p=""===t?".":t+":";if(Array.isArray(e))for(var d=0;d<e.length;d++)m+=u(a=e[d],p+l(a,d),r,n);else{var b=function(e){var t=e&&(s&&e[s]||e["@@iterator"]);if("function"==typeof t)return t}(e);if(b){0;for(var f,h=b.call(e),v=0;!(f=h.next()).done;)m+=u(a=f.value,p+l(a,v++),r,n)}else if("object"===i){0;var O=""+e;c(!1,"Objects are not valid as a React child (found: %s).%s","[object Object]"===O?"object with keys {"+Object.keys(e).join(", ")+"}":O,"")}}return m}var m=/\/+/g;function p(e){return(""+e).replace(m,"$&/")}var d,b,f=h,h=function(e){if(this.instancePool.length){var t=this.instancePool.pop();return this.call(t,e),t}return new this(e)},v=function(e){c(e instanceof this,"Trying to release an instance into a pool of a different type."),e.destructor(),this.instancePool.length<this.poolSize&&this.instancePool.push(e)};function O(e,t,r,n){this.result=e,this.keyPrefix=t,this.func=r,this.context=n,this.count=0}function g(e,t,r){var o,c,i=e.result,s=e.keyPrefix,l=e.func,u=e.context,m=l.call(u,t,e.count++);Array.isArray(m)?j(m,i,r,a.thatReturnsArgument):null!=m&&(n.isValidElement(m)&&(o=m,c=s+(!m.key||t&&t.key===m.key?"":p(m.key)+"/")+r,m=n.cloneElement(o,{key:c},void 0!==o.props?o.props.children:void 0)),i.push(m))}function j(e,t,r,n,o){var a="";null!=r&&(a=p(r)+"/");var c=O.getPooled(t,a,n,o);!function(e,t,r){null==e||u(e,"",t,r)}(e,g,c),O.release(c)}O.prototype.destructor=function(){this.result=null,this.keyPrefix=null,this.func=null,this.context=null,this.count=0},d=function(e,t,r,n){if(this.instancePool.length){var o=this.instancePool.pop();return this.call(o,e,t,r,n),o}return new this(e,t,r,n)},(b=O).instancePool=[],b.getPooled=d||f,b.poolSize||(b.poolSize=10),b.release=v;e.exports=function(e){if("object"!=typeof e||!e||Array.isArray(e))return i(!1,"React.addons.createFragment only accepts a single object. Got: %s",e),e;if(n.isValidElement(e))return i(!1,"React.addons.createFragment does not accept a ReactElement without a wrapper object."),e;c(1!==e.nodeType,"React.addons.createFragment(...): Encountered an invalid child; DOM elements are not valid children of React components.");var t=[];for(var r in e)j(e[r],t,r,a.thatReturnsArgument);return t}},164:function(e,t,r){"use strict";e.exports=function(e,t,r,n,o,a,c,i){if(!e){var s;if(void 0===t)s=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[r,n,o,a,c,i],u=0;(s=new Error(t.replace(/%s/g,(function(){return l[u++]})))).name="Invariant Violation"}throw s.framesToPop=1,s}}},165:function(e,t,r){"use strict";var n=r(125);e.exports=n},166:function(e,t,r){"use strict";function n(e){return e.match(/^\{\{\//)?{type:"componentClose",value:e.replace(/\W/g,"")}:e.match(/\/\}\}$/)?{type:"componentSelfClosing",value:e.replace(/\W/g,"")}:e.match(/^\{\{/)?{type:"componentOpen",value:e.replace(/\W/g,"")}:{type:"string",value:e}}e.exports=function(e){return e.split(/(\{\{\/?\s*\w+\s*\/?\}\})/g).map(n)}},241:function(e,t,r){"use strict";var n=r(6),o=r(11),a=r(4),c=r.n(a),i=r(0);function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}t.a=function(e){var t=e.as,r=void 0===t?"div":t,a=e.className,l=Object(o.a)(e,["as","className"]);return function(e){var t=e.as,r=void 0===t?"div":t,n=Object(o.a)(e,["as"]);return"function"==typeof n.children?n.children(n):Object(i.createElement)(r,n)}(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?s(Object(r),!0).forEach((function(t){Object(n.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({as:r,className:c()("components-visually-hidden",a)},l))}},43:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=i(r(8)),a=i(r(163)),c=i(r(166));function i(e){return e&&e.__esModule?e:{default:e}}var s=void 0;function l(e,t){var r,c,i,u,m,p,d,b,f=[],h={};for(p=0;p<e.length;p++)if("string"!==(m=e[p]).type){if(!t.hasOwnProperty(m.value)||void 0===t[m.value])throw new Error("Invalid interpolation, missing component node: `"+m.value+"`");if("object"!==n(t[m.value]))throw new Error("Invalid interpolation, component node must be a ReactElement or null: `"+m.value+"`","\n> "+s);if("componentClose"===m.type)throw new Error("Missing opening component token: `"+m.value+"`");if("componentOpen"===m.type){r=t[m.value],i=p;break}f.push(t[m.value])}else f.push(m.value);return r&&(u=function(e,t){var r,n,o=t[e],a=0;for(n=e+1;n<t.length;n++)if((r=t[n]).value===o.value){if("componentOpen"===r.type){a++;continue}if("componentClose"===r.type){if(0===a)return n;a--}}throw new Error("Missing closing component token `"+o.value+"`")}(i,e),d=l(e.slice(i+1,u),t),c=o.default.cloneElement(r,{},d),f.push(c),u<e.length-1&&(b=l(e.slice(u+1),t),f=f.concat(b))),1===f.length?f[0]:(f.forEach((function(e,t){e&&(h["interpolation-child-"+t]=e)})),(0,a.default)(h))}t.default=function(e){var t=e.mixedString,r=e.components,o=e.throwErrors;if(s=t,!r)return t;if("object"!==(void 0===r?"undefined":n(r))){if(o)throw new Error("Interpolation Error: unable to process `"+t+"` because components is not an object");return t}var a=(0,c.default)(t);try{return l(a,r)}catch(e){if(o)throw new Error("Interpolation Error: unable to process `"+t+"` because of error `"+e.message+"`");return t}}},581:function(e,t,r){"use strict";var n=r(0),o=r(4),a=r.n(o),c=r(241);function i(e){var t=e.id,r=e.label,o=e.hideLabelFromVision,s=e.help,l=e.className,u=e.children;return Object(n.createElement)("div",{className:a()("components-base-control",l)},Object(n.createElement)("div",{className:"components-base-control__field"},r&&t&&(o?Object(n.createElement)(c.a,{as:"label",htmlFor:t},r):Object(n.createElement)("label",{className:"components-base-control__label",htmlFor:t},r)),r&&!t&&(o?Object(n.createElement)(c.a,{as:"label"},r):Object(n.createElement)(i.VisualLabel,null,r)),u),!!s&&Object(n.createElement)("p",{id:t+"__help",className:"components-base-control__help"},s))}i.VisualLabel=function(e){var t=e.className,r=e.children;return t=a()("components-base-control__label",t),Object(n.createElement)("span",{className:t},r)},t.a=i},589:function(e,t,r){"use strict";r.d(t,"a",(function(){return u}));var n=r(7),o=r(11),a=r(0),c=r(147),i=r(382),s=r(571),l=r(581);function u(e){var t=e.label,r=e.className,m=e.heading,p=e.checked,d=e.help,b=e.onChange,f=Object(o.a)(e,["label","className","heading","checked","help","onChange"]),h=Object(c.a)(u),v="inspector-checkbox-control-".concat(h);return Object(a.createElement)(l.a,{label:m,id:v,help:d,className:r},Object(a.createElement)("span",{className:"components-checkbox-control__input-container"},Object(a.createElement)("input",Object(n.a)({id:v,className:"components-checkbox-control__input",type:"checkbox",value:"1",onChange:function(e){return b(e.target.checked)},checked:p,"aria-describedby":d?v+"__help":void 0},f)),p?Object(a.createElement)(i.a,{icon:s.a,className:"components-checkbox-control__checked",role:"presentation"}):null),Object(a.createElement)("label",{className:"components-checkbox-control__label",htmlFor:v},t))}},605:function(e,t,r){"use strict";r.d(t,"a",(function(){return b})),r.d(t,"b",(function(){return g}));var n=r(0),o=r(3),a=r(51),c=r(43),i=r.n(c),s=r(35),l=r(82),u=r(74),m=r(34),p=r(42),d=function(e){var t=e.value,r=e.onChange,o=Object(m.useSettings)("wc_admin",["wcAdminSettings"]).wcAdminSettings.woocommerce_default_date_range,a=Object(l.parse)(t.replace(/&/g,"&")),c=Object(p.getDateParamsFromQuery)(a,o),i=c.period,s=c.compare,d=c.before,b=c.after,f=Object(p.getCurrentDates)(a,o),h={period:i,compare:s,before:d,after:b,primaryDate:f.primary,secondaryDate:f.secondary};return Object(n.createElement)(u.DateRangeFilterPicker,{query:a,onRangeSelect:function(e){r({target:{name:"woocommerce_default_date_range",value:Object(l.stringify)(e)}})},dateQuery:h,isoDateFormat:p.isoDateFormat})},b=["processing","on-hold"],f=["completed","processing","refunded","cancelled","failed","pending","on-hold"],h=Object.keys(s.d).filter((function(e){return"refunded"!==e})).map((function(e){return{value:e,label:s.d[e],description:Object(o.sprintf)(Object(o.__)("Exclude the %s status from reports","woocommerce-admin"),s.d[e])}})),v=Object(s.g)("unregisteredOrderStatuses",{}),O=[{key:"defaultStatuses",options:h.filter((function(e){return f.includes(e.value)}))},{key:"customStatuses",label:Object(o.__)("Custom Statuses","woocommerce-admin"),options:h.filter((function(e){return!f.includes(e.value)}))},{key:"unregisteredStatuses",label:Object(o.__)("Unregistered Statuses","woocommerce-admin"),options:Object.keys(v).map((function(e){return{value:e,label:e,description:Object(o.sprintf)(Object(o.__)("Exclude the %s status from reports","woocommerce-admin"),e)}}))}],g=Object(a.applyFilters)("woocommerce_admin_analytics_settings",{woocommerce_excluded_report_order_statuses:{label:Object(o.__)("Excluded Statuses:","woocommerce-admin"),inputType:"checkboxGroup",options:O,helpText:i()({mixedString:Object(o.__)("Orders with these statuses are excluded from the totals in your reports. The {{strong}}Refunded{{/strong}} status can not be excluded.","woocommerce-admin"),components:{strong:Object(n.createElement)("strong",null)}}),defaultValue:["pending","cancelled","failed"]},woocommerce_actionable_order_statuses:{label:Object(o.__)("Actionable Statuses:","woocommerce-admin"),inputType:"checkboxGroup",options:O,helpText:Object(o.__)("Orders with these statuses require action on behalf of the store admin. These orders will show up in the Home Screen - Orders task.","woocommerce-admin"),defaultValue:b},woocommerce_default_date_range:{name:"woocommerce_default_date_range",label:Object(o.__)("Default Date Range:","woocommerce-admin"),inputType:"component",component:d,helpText:Object(o.__)("Select a default date range. When no range is selected, reports will be viewed by the default date range.","woocommerce-admin"),defaultValue:"period=month&compare=previous_year"}})},616:function(e,t,r){},617:function(e,t,r){},618:function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var n=r(0);function o(){return Object(n.createElement)("span",{className:"components-spinner"})}},619:function(e,t,r){},670:function(e,t,r){"use strict";r.r(t);var n=r(36),o=r.n(n),a=r(28),c=r.n(a),i=r(5),s=r.n(i),l=r(0),u=r(3),m=r(68),p=r(181),d=r(25),b=r(74),f=r(34),h=r(50),v=(r(616),r(605)),O=r(20),g=r.n(O),j=r(15),y=r.n(j),_=r(13),w=r.n(_),S=r(22),E=r.n(S),k=r(23),I=r.n(k),N=r(10),P=r.n(N),C=r(589),T=r(1),R=r.n(T),D=r(2);r(617);function x(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=P()(e);if(t){var o=P()(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return I()(this,r)}}var A=function(e){E()(r,e);var t=x(r);function r(e){var n;return g()(this,r),n=t.call(this,e),s()(w()(n),"renderInput",(function(){var e=n.props,t=e.handleChange,r=e.name,a=e.inputText,c=e.inputType,i=e.options,s=e.value,u=e.component,p=n.state.disabled;switch(c){case"checkboxGroup":return i.map((function(e){return e.options.length>0&&Object(l.createElement)("div",{className:"woocommerce-setting__options-group",key:e.key,"aria-labelledby":r+"-label"},e.label&&Object(l.createElement)("span",{className:"woocommerce-setting__options-group-label"},e.label),n.renderCheckboxOptions(e.options))}));case"checkbox":return n.renderCheckboxOptions(i);case"button":return Object(l.createElement)(m.a,{isSecondary:!0,onClick:n.handleInputCallback,disabled:p},a);case"component":var d=u;return Object(l.createElement)(d,o()({value:s,onChange:t},n.props));case"text":default:var b=Object(D.uniqueId)(r);return Object(l.createElement)("input",{id:b,type:"text",name:r,onChange:t,value:s,placeholder:a,disabled:p})}})),s()(w()(n),"handleInputCallback",(function(){var e=n.props,t=e.createNotice,r=e.callback;if("function"==typeof r)return new Promise((function(e,o){n.setState({disabled:!0}),r(e,o,t)})).then((function(){n.setState({disabled:!1})})).catch((function(){n.setState({disabled:!1})}))})),n.state={disabled:!1},n}return y()(r,[{key:"renderCheckboxOptions",value:function(e){var t=this.props,r=t.handleChange,n=t.name,o=t.value,a=this.state.disabled;return e.map((function(e){return Object(l.createElement)(C.a,{key:n+"-"+e.value,label:e.label,name:n,checked:o&&o.includes(e.value),onChange:function(t){return r({target:{checked:t,name:n,type:"checkbox",value:e.value}})},disabled:a})}))}},{key:"render",value:function(){var e=this.props,t=e.helpText,r=e.label,n=e.name;return Object(l.createElement)("div",{className:"woocommerce-setting"},Object(l.createElement)("div",{className:"woocommerce-setting__label",id:n+"-label"},r),Object(l.createElement)("div",{className:"woocommerce-setting__input"},this.renderInput(),t&&Object(l.createElement)("span",{className:"woocommerce-setting__help"},t)))}}]),r}(l.Component);A.propTypes={callback:R.a.func,handleChange:R.a.func.isRequired,helpText:R.a.oneOfType([R.a.string,R.a.array]),inputText:R.a.string,inputType:R.a.oneOf(["button","checkbox","checkboxGroup","text","component"]),label:R.a.string.isRequired,name:R.a.string.isRequired,options:R.a.arrayOf(R.a.shape({value:R.a.string,label:R.a.string,description:R.a.string,key:R.a.string,options:R.a.array})),value:R.a.oneOfType([R.a.string,R.a.array])};var F=Object(p.a)(Object(d.withDispatch)((function(e){return{createNotice:e("core/notices").createNotice}})))(A),M=r(7),V=r(16),z=r(17),L=r(12),Y=r(18),q=r(21),U=r(9),H=r(141),W=r(77);function B(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Object(U.a)(e);if(t){var o=Object(U.a)(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Object(q.a)(this,r)}}var G=Object(W.a)((function(e){return function(t){Object(Y.a)(n,t);var r=B(n);function n(){var e;return Object(V.a)(this,n),(e=r.apply(this,arguments)).debouncedSpeak=Object(D.debounce)(e.speak.bind(Object(L.a)(e)),500),e}return Object(z.a)(n,[{key:"speak",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"polite";Object(H.a)(e,t)}},{key:"componentWillUnmount",value:function(){this.debouncedSpeak.cancel()}},{key:"render",value:function(){return Object(l.createElement)(e,Object(M.a)({},this.props,{speak:this.speak,debouncedSpeak:this.debouncedSpeak}))}}]),n}(l.Component)}),"withSpokenMessages"),$=r(19),Q=r.n($),J=function(e,t,r){var n={};if(r&&(n.skip_existing=!0),"all"!==t.label)if("custom"===t.label){var o=Q()().diff(Q()(t.date,e),"days",!0);n.days=Math.floor(o)}else n.days=parseInt(t.label,10);return n},K=r(33);var X=Object(p.a)([Object(d.withSelect)((function(e){var t=(0,e(f.IMPORT_STORE_NAME).getFormSettings)();return{selectedPeriod:t.period,skipChecked:t.skipPrevious}})),Object(d.withDispatch)((function(e){var t=e(f.IMPORT_STORE_NAME),r=t.updateImportation,n=t.setImportStarted;return{createNotice:e("core/notices").createNotice,setImportStarted:n,updateImportation:r}}))])((function(e){var t,r=e.clearStatusAndTotalsCache,n=e.createNotice,o=e.dateFormat,a=e.importDate,c=e.onImportStarted,i=e.selectedPeriod,s=e.stopImport,p=e.skipChecked,d=e.status,b=e.setImportStarted,f=e.updateImportation,v=function(){var e=Object(K.addQueryArgs)("/wc-analytics/reports/import",J(o,i,p)),t=Object(u.__)("There was a problem rebuilding your report data.","woocommerce-admin");g(e,t,!0),c()},O=function(){s();var e=Object(u.__)("There was a problem stopping your current import.","woocommerce-admin");g("/wc-analytics/reports/import/cancel",e)},g=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];f(e,r).then((function(e){"success"===e.status?n("success",e.message):(n("error",t),b(!1),s())})).catch((function(e){e&&e.message&&(n("error",e.message),b(!1),s())}))},j=function(){var e=Object(u.__)("There was a problem deleting your previous data.","woocommerce-admin");g("/wc-analytics/reports/import/delete",e),Object(h.recordEvent)("analytics_import_delete_previous"),b(!1)},y=function(){b(!1),r()};return Object(l.createElement)("div",{className:"woocommerce-settings__actions woocommerce-settings-historical-data__actions"},(t="ready"!==d,["initializing","customers","orders","finalizing"].includes(d)?Object(l.createElement)(l.Fragment,null,Object(l.createElement)(m.a,{className:"woocommerce-settings-historical-data__action-button",isPrimary:!0,onClick:O},Object(u.__)("Stop Import","woocommerce-admin")),Object(l.createElement)("div",{className:"woocommerce-setting__help woocommerce-settings-historical-data__action-help"},Object(u.__)("Imported data will not be lost if the import is stopped.","woocommerce-admin"),Object(l.createElement)("br",null),Object(u.__)("Navigating away from this page will not affect the import.","woocommerce-admin"))):["ready","nothing"].includes(d)?a?Object(l.createElement)(l.Fragment,null,Object(l.createElement)(m.a,{isPrimary:!0,onClick:v,disabled:t},Object(u.__)("Start","woocommerce-admin")),Object(l.createElement)(m.a,{isSecondary:!0,onClick:j},Object(u.__)("Delete Previously Imported Data","woocommerce-admin"))):Object(l.createElement)(l.Fragment,null,Object(l.createElement)(m.a,{isPrimary:!0,onClick:v,disabled:t},Object(u.__)("Start","woocommerce-admin"))):("error"===d&&n("error",Object(u.__)("Something went wrong with the importation process.","woocommerce-admin")),Object(l.createElement)(l.Fragment,null,Object(l.createElement)(m.a,{isSecondary:!0,onClick:y},Object(u.__)("Re-import Data","woocommerce-admin")),Object(l.createElement)(m.a,{isSecondary:!0,onClick:j},Object(u.__)("Delete Previously Imported Data","woocommerce-admin"))))))})),Z=r(671),ee=r(42);var te=Object(d.withDispatch)((function(e){return{setImportPeriod:e(f.IMPORT_STORE_NAME).setImportPeriod}}))((function(e){var t,r=e.dateFormat,n=e.disabled,o=e.setImportPeriod,a=e.value,c=function(e){e.date&&e.date.isValid?o(e.date.format(r),!0):o(e.text,!0)},i=function(e){return e.isValid()&&a.date.length===r.length?e.isAfter(new Date,"day")?ee.dateValidationMessages.future:null:ee.dateValidationMessages.invalid};return Object(l.createElement)("div",{className:"woocommerce-settings-historical-data__columns"},Object(l.createElement)("div",{className:"woocommerce-settings-historical-data__column"},Object(l.createElement)(Z.a,{label:Object(u.__)("Import Historical Data","woocommerce-admin"),value:a.label,disabled:n,onChange:function(e){o(e)},options:[{label:"All",value:"all"},{label:"Last 365 days",value:"365"},{label:"Last 90 days",value:"90"},{label:"Last 30 days",value:"30"},{label:"Last 7 days",value:"7"},{label:"Last 24 hours",value:"1"},{label:"Custom",value:"custom"}]})),"custom"===a.label&&(t=Q()(a.date,r),Object(l.createElement)("div",{className:"woocommerce-settings-historical-data__column"},Object(l.createElement)("div",{className:"woocommerce-settings-historical-data__column-label"},Object(u.__)("Beginning on","woocommerce-admin")),Object(l.createElement)(b.DatePicker,{date:t.isValid()?t.toDate():null,dateFormat:r,disabled:n,error:i(t),isInvalidDate:function(e){return Q()(e).isAfter(new Date,"day")},onUpdate:c,text:a.date}))))}));var re=function(e){var t=e.label,r=e.progress,n=e.total,o=Object(u.sprintf)(Object(u.__)("Imported %(label)s","woocommerce-admin"),{label:t}),a=Object(D.isNil)(n)?null:Object(u.sprintf)(Object(u.__)("%(progress)s of %(total)s","woocommerce-admin"),{progress:r||0,total:n});return Object(l.createElement)("div",{className:"woocommerce-settings-historical-data__progress"},Object(l.createElement)("span",{className:"woocommerce-settings-historical-data__progress-label"},o),a&&Object(l.createElement)("span",{className:"woocommerce-settings-historical-data__progress-label"},a),Object(l.createElement)("progress",{className:"woocommerce-settings-historical-data__progress-bar",max:n,value:r||0}))},ne=r(51),oe=r(618);var ae=function(e){var t=e.importDate,r=e.status,n=Object(ne.applyFilters)("woocommerce_admin_import_status",{nothing:Object(u.__)("Nothing To Import","woocommerce-admin"),ready:Object(u.__)("Ready To Import","woocommerce-admin"),initializing:[Object(u.__)("Initializing","woocommerce-admin"),Object(l.createElement)(oe.a,{key:"spinner"})],customers:[Object(u.__)("Importing Customers","woocommerce-admin"),Object(l.createElement)(oe.a,{key:"spinner"})],orders:[Object(u.__)("Importing Orders","woocommerce-admin"),Object(l.createElement)(oe.a,{key:"spinner"})],finalizing:[Object(u.__)("Finalizing","woocommerce-admin"),Object(l.createElement)(oe.a,{key:"spinner"})],finished:-1===t?Object(u.__)("All historical data imported","woocommerce-admin"):Object(u.sprintf)(Object(u.__)("Historical data from %s onward imported","woocommerce-admin"),Q()(t).format("YYYY-MM-DD"))});return Object(l.createElement)("span",{className:"woocommerce-settings-historical-data__status"},Object(u.__)("Status:","woocommerce-admin")+" ",n[r])};var ce=Object(d.withDispatch)((function(e){return{setSkipPrevious:e(f.IMPORT_STORE_NAME).setSkipPrevious}}))((function(e){var t=e.checked,r=e.disabled,n=e.setSkipPrevious;return Object(l.createElement)(C.a,{className:"woocommerce-settings-historical-data__skip-checkbox",checked:t,disabled:r,label:Object(u.__)("Skip previously imported customers and orders","woocommerce-admin"),onChange:function(e){n(e)}})}));r(619);function ie(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function se(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ie(Object(r),!0).forEach((function(t){s()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ie(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function le(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=P()(e);if(t){var o=P()(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return I()(this,r)}}var ue=function(e){E()(r,e);var t=le(r);function r(){return g()(this,r),t.apply(this,arguments)}return y()(r,[{key:"render",value:function(){var e=this.props,t=e.customersProgress,r=e.customersTotal,n=e.dateFormat,o=e.importDate,a=e.inProgress,c=e.lastImportStartTimestamp,i=e.clearStatusAndTotalsCache,s=e.ordersProgress,m=e.ordersTotal,p=e.onImportStarted,d=e.period,f=e.stopImport,h=e.skipChecked,v=e.status;return Object(l.createElement)(l.Fragment,null,Object(l.createElement)(b.SectionHeader,{title:Object(u.__)("Import Historical Data","woocommerce-admin")}),Object(l.createElement)("div",{className:"woocommerce-settings__wrapper"},Object(l.createElement)("div",{className:"woocommerce-setting"},Object(l.createElement)("div",{className:"woocommerce-setting__input"},Object(l.createElement)("span",{className:"woocommerce-setting__help"},Object(u.__)("This tool populates historical analytics data by processing customers and orders created prior to activating WooCommerce Admin.","woocommerce-admin")),"finished"!==v&&Object(l.createElement)(l.Fragment,null,Object(l.createElement)(te,{dateFormat:n,disabled:a,value:d}),Object(l.createElement)(ce,{disabled:a,checked:h}),Object(l.createElement)(re,{label:Object(u.__)("Registered Customers","woocommerce-admin"),progress:t,total:r}),Object(l.createElement)(re,{label:Object(u.__)("Orders and Refunds","woocommerce-admin"),progress:s,total:m})),Object(l.createElement)(ae,{importDate:o,status:v})))),Object(l.createElement)(X,{clearStatusAndTotalsCache:i,dateFormat:n,importDate:o,lastImportStartTimestamp:c,onImportStarted:p,stopImport:f,status:v}))}}]),r}(l.Component),me=Object(d.withSelect)((function(e,t){var r=e(f.IMPORT_STORE_NAME),n=r.getImportError,o=r.getImportStatus,a=r.getImportTotals,c=t.activeImport,i=t.cacheNeedsClearing,s=t.dateFormat,l=t.inProgress,u=t.onImportStarted,m=t.onImportFinished,p=t.period,d=t.startStatusCheckInterval,b=t.skipChecked,h=J(s,p,b),v=a(h),O=v.customers,g=v.orders,j=v.lastImportStartTimestamp,y=o(j),_=y.customers,w=y.imported_from,S=y.is_importing,E=y.orders,k=_||{},I=k.imported,N=k.total,P=E||{},C=P.imported,T=P.total,R=Boolean(n(j)||n(h));Boolean(!j&&!l&&!0===S)&&u();var x=Boolean(l&&!i&&!1===S&&(N>0||T>0)&&I===N&&C===T),A={customersTotal:O,isError:R,ordersTotal:g};c&&(A={cacheNeedsClearing:i,customersProgress:I,customersTotal:Object(D.isNil)(N)?O:N,inProgress:l,isError:R,ordersProgress:C,ordersTotal:Object(D.isNil)(T)?g:T});var F=function(e){var t=e.cacheNeedsClearing,r=e.customersProgress,n=e.customersTotal,o=e.isError,a=e.inProgress,c=e.ordersProgress,i=e.ordersTotal;return o?"error":a?Object(D.isNil)(r)||Object(D.isNil)(c)||Object(D.isNil)(n)||Object(D.isNil)(i)||t?"initializing":r<n?"customers":c<i?"orders":"finalizing":n>0||i>0?r===n&&c===i?"finished":"ready":"nothing"}(A);return"initializing"===F&&d(),x&&m(),se(se({},A),{},{importDate:w,status:F})}))(ue);function pe(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=P()(e);if(t){var o=P()(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return I()(this,r)}}var de=function(e){E()(r,e);var t=pe(r);function r(){var e;return g()(this,r),(e=t.apply(this,arguments)).dateFormat=Object(u.__)("MM/DD/YYYY","woocommerce-admin"),e.intervalId=-1,e.lastImportStopTimestamp=0,e.cacheNeedsClearing=!0,e.onImportFinished=e.onImportFinished.bind(w()(e)),e.onImportStarted=e.onImportStarted.bind(w()(e)),e.clearStatusAndTotalsCache=e.clearStatusAndTotalsCache.bind(w()(e)),e.stopImport=e.stopImport.bind(w()(e)),e.startStatusCheckInterval=e.startStatusCheckInterval.bind(w()(e)),e.cancelStatusCheckInterval=e.cancelStatusCheckInterval.bind(w()(e)),e}return y()(r,[{key:"startStatusCheckInterval",value:function(){var e=this;this.intervalId<0&&(this.cacheNeedsClearing=!0,this.intervalId=setInterval((function(){e.clearCache("getImportStatus")}),3*f.SECOND))}},{key:"cancelStatusCheckInterval",value:function(){clearInterval(this.intervalId),this.intervalId=-1}},{key:"clearCache",value:function(e,t){var r=this,n=this.props,o=n.invalidateResolution,a=n.lastImportStartTimestamp;o(e,["getImportStatus"===e?a:t]).then((function(){r.cacheNeedsClearing=!1}))}},{key:"stopImport",value:function(){this.cancelStatusCheckInterval(),this.lastImportStopTimestamp=Date.now()}},{key:"onImportFinished",value:function(){var e=this.props.debouncedSpeak;this.cacheNeedsClearing||(e("Import complete"),this.stopImport())}},{key:"onImportStarted",value:function(){var e=this.props,t=e.notes,r=e.setImportStarted,n=e.updateNote,o=t.find((function(e){return"wc-admin-historical-data"===e.name}));o&&n(o.id,{status:"actioned"}),r(!0)}},{key:"clearStatusAndTotalsCache",value:function(){var e=this.props,t=e.selectedPeriod,r=e.skipChecked,n=J(this.dateFormat,t,r);this.clearCache("getImportTotals",n),this.clearCache("getImportStatus")}},{key:"isImportationInProgress",value:function(){var e=this.props.lastImportStartTimestamp;return void 0!==e&&void 0===this.lastImportStopTimestamp||e>this.lastImportStopTimestamp}},{key:"render",value:function(){var e=this.props,t=e.activeImport,r=e.createNotice,n=e.lastImportStartTimestamp,o=e.selectedPeriod,a=e.skipChecked;return Object(l.createElement)(me,{activeImport:t,cacheNeedsClearing:this.cacheNeedsClearing,createNotice:r,dateFormat:this.dateFormat,inProgress:this.isImportationInProgress(),onImportFinished:this.onImportFinished,onImportStarted:this.onImportStarted,lastImportStartTimestamp:n,clearStatusAndTotalsCache:this.clearStatusAndTotalsCache,period:o,skipChecked:a,startStatusCheckInterval:this.startStatusCheckInterval,stopImport:this.stopImport})}}]),r}(l.Component),be=Object(p.a)([Object(d.withSelect)((function(e){var t=e(f.NOTES_STORE_NAME).getNotes,r=e(f.IMPORT_STORE_NAME),n=r.getImportStarted,o=r.getFormSettings,a=t({page:1,per_page:f.QUERY_DEFAULTS.pageSize,type:"update",status:"unactioned"}),c=n(),i=c.activeImport,s=c.lastImportStartTimestamp,l=o();return{activeImport:i,lastImportStartTimestamp:s,notes:a,selectedPeriod:l.period,skipChecked:l.skipPrevious}})),Object(d.withDispatch)((function(e){var t=e(f.NOTES_STORE_NAME).updateNote,r=e(f.IMPORT_STORE_NAME);return{invalidateResolution:r.invalidateResolution,setImportStarted:r.setImportStarted,updateNote:t}})),G])(de);function fe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}t.default=Object(p.a)(Object(d.withDispatch)((function(e){return{createNotice:e("core/notices").createNotice}})))((function(e){var t=e.createNotice,r=e.query,n=Object(f.useSettings)("wc_admin",["wcAdminSettings"]),a=n.settingsError,i=n.isRequesting,p=n.isDirty,d=n.persistSettings,O=n.updateAndPersistSettings,g=n.updateSettings,j=n.wcAdminSettings,y=Object(l.useRef)(!1);Object(l.useEffect)((function(){function e(e){if(p)return e.returnValue=Object(u.__)("You have unsaved changes. If you proceed, they will be lost.","woocommerce-admin"),e.returnValue}return window.addEventListener("beforeunload",e),function(){return window.removeEventListener("beforeunload",e)}}),[p]),Object(l.useEffect)((function(){i?y.current=!0:!i&&y.current&&(a?t("error",Object(u.__)("There was an error saving your settings. Please try again.","woocommerce-admin")):t("success",Object(u.__)("Your settings have been successfully saved.","woocommerce-admin")),y.current=!1)}),[i,a,t]);var _=function(e){var t=e.target,r=t.checked,n=t.name,o=t.type,a=t.value,i=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?fe(Object(r),!0).forEach((function(t){s()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):fe(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},j);i[n]="checkbox"===o?r?[].concat(c()(i[n]),[a]):i[n].filter((function(e){return e!==a})):a,g("wcAdminSettings",i)};return Object(l.createElement)(l.Fragment,null,Object(l.createElement)(b.SectionHeader,{title:Object(u.__)("Analytics Settings","woocommerce-admin")}),Object(l.createElement)("div",{className:"woocommerce-settings__wrapper"},Object.keys(v.b).map((function(e){return Object(l.createElement)(F,o()({handleChange:_,value:j[e],key:e,name:e},v.b[e]))})),Object(l.createElement)("div",{className:"woocommerce-settings__actions"},Object(l.createElement)(m.a,{isSecondary:!0,onClick:function(){if(window.confirm(Object(u.__)("Are you sure you want to reset all settings to default values?","woocommerce-admin"))){var e=Object.keys(v.b).reduce((function(e,t){return e[t]=v.b[t].defaultValue,e}),{});O("wcAdminSettings",e),Object(h.recordEvent)("analytics_settings_reset_defaults")}}},Object(u.__)("Reset Defaults","woocommerce-admin")),Object(l.createElement)(m.a,{isPrimary:!0,isBusy:i,onClick:function(){d(),Object(h.recordEvent)("analytics_settings_save",j),r.period=void 0,r.compare=void 0,r.before=void 0,r.after=void 0,r.interval=void 0,r.type=void 0,window.wpNavMenuUrlUpdate(r)}},Object(u.__)("Save Settings","woocommerce-admin")))),"true"===r.import?Object(l.createElement)(b.ScrollTo,{offset:"-56"},Object(l.createElement)(be,{createNotice:t})):Object(l.createElement)(be,{createNotice:t}))}))}}]);
|
dist/chunks/customizable-dashboard.js
CHANGED
@@ -493,7 +493,7 @@ var external_lodash_ = __webpack_require__(2);
|
|
493 |
var dropdown = __webpack_require__(339);
|
494 |
|
495 |
// EXTERNAL MODULE: ./node_modules/@wordpress/components/build-module/button/index.js
|
496 |
-
var build_module_button = __webpack_require__(
|
497 |
|
498 |
// EXTERNAL MODULE: ./node_modules/@wordpress/components/build-module/icon/index.js
|
499 |
var icon = __webpack_require__(114);
|
493 |
var dropdown = __webpack_require__(339);
|
494 |
|
495 |
// EXTERNAL MODULE: ./node_modules/@wordpress/components/build-module/button/index.js
|
496 |
+
var build_module_button = __webpack_require__(68);
|
497 |
|
498 |
// EXTERNAL MODULE: ./node_modules/@wordpress/components/build-module/icon/index.js
|
499 |
var icon = __webpack_require__(114);
|
dist/chunks/customizable-dashboard.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
(window.__wcAdmin_webpackJsonp=window.__wcAdmin_webpackJsonp||[]).push([[29],{241:function(e,t,n){"use strict";var r=n(6),o=n(11),c=n(4),a=n.n(c),i=n(0);function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}t.a=function(e){var t=e.as,n=void 0===t?"div":t,c=e.className,s=Object(o.a)(e,["as","className"]);return function(e){var t=e.as,n=void 0===t?"div":t,r=Object(o.a)(e,["as"]);return"function"==typeof r.children?r.children(r):Object(i.createElement)(n,r)}(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){Object(r.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({as:n,className:a()("components-visually-hidden",c)},s))}},574:function(e,t,n){"use strict";n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return u}));var r=n(0),o=n(51),c=n(167),a=n.n(c),i=n(35),l=a()(i.b),s=function(e){var t=l.getCurrencyConfig(),n=Object(o.applyFilters)("woocommerce_admin_report_currency",t,e);return a()(n)},u=Object(r.createContext)(l)},581:function(e,t,n){"use strict";var r=n(0),o=n(4),c=n.n(o),a=n(241);function i(e){var t=e.id,n=e.label,o=e.hideLabelFromVision,l=e.help,s=e.className,u=e.children;return Object(r.createElement)("div",{className:c()("components-base-control",s)},Object(r.createElement)("div",{className:"components-base-control__field"},n&&t&&(o?Object(r.createElement)(a.a,{as:"label",htmlFor:t},n):Object(r.createElement)("label",{className:"components-base-control__label",htmlFor:t},n)),n&&!t&&(o?Object(r.createElement)(a.a,{as:"label"},n):Object(r.createElement)(i.VisualLabel,null,n)),u),!!l&&Object(r.createElement)("p",{id:t+"__help",className:"components-base-control__help"},l))}i.VisualLabel=function(e){var t=e.className,n=e.children;return t=c()("components-base-control__label",t),Object(r.createElement)("span",{className:t},n)},t.a=i},582:function(e,t,n){"use strict";var r=n(5),o=n.n(r),c=n(20),a=n.n(c),i=n(15),l=n.n(i),s=n(13),u=n.n(s),d=n(22),b=n.n(d),p=n(23),m=n.n(p),f=n(10),v=n.n(f),O=n(0),h=n(181),y=n(1),j=n.n(y),_=n(2),g=n(25),k=n(74),w=n(35),E=n(34),D=n(42),S=n(50),C=n(574),F=n(118);function P(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function T(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?P(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):P(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function R(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=v()(e);if(t){var o=v()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m()(this,n)}}var x=function(e){b()(n,e);var t=R(n);function n(){var e;return a()(this,n),(e=t.call(this)).onDateSelect=e.onDateSelect.bind(u()(e)),e.onFilterSelect=e.onFilterSelect.bind(u()(e)),e.onAdvancedFilterAction=e.onAdvancedFilterAction.bind(u()(e)),e}return l()(n,[{key:"onDateSelect",value:function(e){var t=this.props,n=t.report;(0,t.addCesSurveyForAnalytics)(),Object(S.recordEvent)("datepicker_update",T({report:n},Object(_.omitBy)(e,_.isUndefined)))}},{key:"onFilterSelect",value:function(e){var t=this.props,n=t.report,r=t.addCesSurveyForAnalytics,o=e.filter||e["filter-variations"];["single_product","single_category","single_coupon","single_variation"].includes(o)&&r(),Object(S.recordEvent)("analytics_filter",{report:n,filter:e.filter||"all"})}},{key:"onAdvancedFilterAction",value:function(e,t){var n=this.props,r=n.report,o=n.addCesSurveyForAnalytics;switch(e){case"add":Object(S.recordEvent)("analytics_filters_add",{report:r,filter:t.key});break;case"remove":Object(S.recordEvent)("analytics_filters_remove",{report:r,filter:t.key});break;case"filter":var c=Object.keys(t).reduce((function(e,n){return e[Object(_.snakeCase)(n)]=t[n],e}),{});o(),Object(S.recordEvent)("analytics_filters_filter",T({report:r},c));break;case"clear_all":Object(S.recordEvent)("analytics_filters_clear_all",{report:r});break;case"match":Object(S.recordEvent)("analytics_filters_all_any",{report:r,value:t.match})}}},{key:"render",value:function(){var e=this.props,t=e.advancedFilters,n=e.filters,r=e.path,o=e.query,c=e.showDatePicker,a=e.defaultDateRange,i=Object(D.getDateParamsFromQuery)(o,a),l=i.period,s=i.compare,u=i.before,d=i.after,b=Object(D.getCurrentDates)(o,a),p={period:l,compare:s,before:u,after:d,primaryDate:b.primary,secondaryDate:b.secondary},m=this.context;return Object(O.createElement)(k.ReportFilters,{query:o,siteLocale:w.c.siteLocale,currency:m.getCurrencyConfig(),path:r,filters:n,advancedFilters:t,showDatePicker:c,onDateSelect:this.onDateSelect,onFilterSelect:this.onFilterSelect,onAdvancedFilterAction:this.onAdvancedFilterAction,dateQuery:p,isoDateFormat:D.isoDateFormat})}}]),n}(O.Component);x.contextType=C.a,t.a=Object(h.a)(Object(g.withSelect)((function(e){return{defaultDateRange:e(E.SETTINGS_STORE_NAME).getSetting("wc_admin","wcAdminSettings").woocommerce_default_date_range}})),Object(g.withDispatch)((function(e){return{addCesSurveyForAnalytics:e(F.c).addCesSurveyForAnalytics}})))(x),x.propTypes={advancedFilters:j.a.object,filters:j.a.array,path:j.a.string.isRequired,query:j.a.object,showDatePicker:j.a.bool,report:j.a.string.isRequired}},660:function(e,t,n){"use strict";n.r(t);var r=n(58),o=n.n(r),c=n(5),a=n.n(c),i=n(28),l=n.n(i),s=n(0),u=n(3),d=n(181),b=n(2),p=n(339),m=n(67),f=n(114),v=n(51),O=n(377),h=n(78),y=Object(s.createElement)(h.c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(s.createElement)(h.b,{d:"M2 12C2 6.44444 6.44444 2 12 2C17.5556 2 22 6.44444 22 12C22 17.5556 17.5556 22 12 22C6.44444 22 2 17.5556 2 12ZM13 11V7H11V11H7V13H11V17H13V13H17V11H13Z"})),j=n(25),_=n(74),g=n(34),k=n(29),w=n(42),E=n(50),D=(n(590),Object(s.lazy)((function(){return Promise.all([n.e(1),n.e(2),n.e(8),n.e(31)]).then(n.bind(null,674))}))),S=Object(s.lazy)((function(){return Promise.all([n.e(2),n.e(3),n.e(36)]).then(n.bind(null,676))})),C=Object(s.lazy)((function(){return n.e(49).then(n.bind(null,666))})),F=Object(v.applyFilters)("woocommerce_dashboard_default_sections",[{key:"store-performance",component:function(e){return Object(s.createElement)(s.Suspense,{fallback:Object(s.createElement)(_.Spinner,null)},Object(s.createElement)(C,e))},title:Object(u.__)("Performance","woocommerce-admin"),isVisible:!0,icon:"arrow-right-alt",hiddenBlocks:["coupons/amount","coupons/orders_count","downloads/download_count","taxes/order_tax","taxes/total_tax","taxes/shipping_tax","revenue/shipping","orders/avg_order_value","revenue/refunds","revenue/gross_sales"]},{key:"charts",component:function(e){return Object(s.createElement)(s.Suspense,{fallback:Object(s.createElement)(_.Spinner,null)},Object(s.createElement)(D,e))},title:Object(u.__)("Charts","woocommerce-admin"),isVisible:!0,icon:"chart-bar",hiddenBlocks:["orders_avg_order_value","avg_items_per_order","products_items_sold","revenue_total_sales","revenue_refunds","coupons_amount","coupons_orders_count","revenue_shipping","taxes_total_tax","taxes_order_tax","taxes_shipping_tax","downloads_download_count"]},{key:"leaderboards",component:function(e){return Object(s.createElement)(s.Suspense,{fallback:Object(s.createElement)(_.Spinner,null)},Object(s.createElement)(S,e))},title:Object(u.__)("Leaderboards","woocommerce-admin"),isVisible:!0,icon:"editor-ol",hiddenBlocks:["coupons","customers"]}]),P=n(36),T=n.n(P),R=n(20),x=n.n(R),N=n(15),A=n.n(N),B=n(13),M=n.n(B),V=n(22),I=n.n(V),H=n(23),L=n.n(H),U=n(10),q=n.n(U),Q=n(7),z=n(11),G=n(147),J=n(581);function Z(e){var t=e.label,n=e.hideLabelFromVision,r=e.value,o=e.help,c=e.className,a=e.onChange,i=e.type,l=void 0===i?"text":i,u=Object(z.a)(e,["label","hideLabelFromVision","value","help","className","onChange","type"]),d=Object(G.a)(Z),b="inspector-text-control-".concat(d);return Object(s.createElement)(J.a,{label:t,hideLabelFromVision:n,id:b,help:o,className:c},Object(s.createElement)("input",Object(Q.a)({className:"components-text-control__input",type:l,id:b,value:r,onChange:function(e){return a(e.target.value)},"aria-describedby":o?b+"__help":void 0},u)))}function K(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=q()(e);if(t){var o=q()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return L()(this,n)}}var W=function(e){I()(n,e);var t=K(n);function n(e){var r;return x()(this,n),(r=t.call(this,e)).onMoveUp=r.onMoveUp.bind(M()(r)),r.onMoveDown=r.onMoveDown.bind(M()(r)),r}return A()(n,[{key:"onMoveUp",value:function(){var e=this.props,t=e.onMove,n=e.onToggle;t(-1),n()}},{key:"onMoveDown",value:function(){var e=this.props,t=e.onMove,n=e.onToggle;t(1),n()}},{key:"render",value:function(){var e=this.props,t=e.onRemove,n=e.isFirst,r=e.isLast,o=e.onTitleBlur,c=e.onTitleChange,a=e.titleInput;return Object(s.createElement)(s.Fragment,null,Object(s.createElement)("div",{className:"woocommerce-ellipsis-menu__item"},Object(s.createElement)(Z,{label:Object(u.__)("Section Title","woocommerce-admin"),onBlur:o,onChange:c,required:!0,value:a})),Object(s.createElement)("div",{className:"woocommerce-dashboard-section-controls"},!n&&Object(s.createElement)(_.MenuItem,{isClickable:!0,onInvoke:this.onMoveUp},Object(s.createElement)(f.a,{icon:"arrow-up-alt2",label:Object(u.__)("Move up")}),Object(u.__)("Move up","woocommerce-admin")),!r&&Object(s.createElement)(_.MenuItem,{isClickable:!0,onInvoke:this.onMoveDown},Object(s.createElement)(f.a,{icon:"arrow-down-alt2",label:Object(u.__)("Move Down")}),Object(u.__)("Move Down","woocommerce-admin")),Object(s.createElement)(_.MenuItem,{isClickable:!0,onInvoke:t},Object(s.createElement)(f.a,{icon:"trash",label:Object(u.__)("Remove block")}),Object(u.__)("Remove section","woocommerce-admin"))))}}]),n}(s.Component);function X(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=q()(e);if(t){var o=q()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return L()(this,n)}}var Y=function(e){I()(n,e);var t=X(n);function n(e){var r;x()(this,n),r=t.call(this,e);var o=e.title;return r.state={titleInput:o},r.onToggleHiddenBlock=r.onToggleHiddenBlock.bind(M()(r)),r.onTitleChange=r.onTitleChange.bind(M()(r)),r.onTitleBlur=r.onTitleBlur.bind(M()(r)),r}return A()(n,[{key:"onTitleChange",value:function(e){this.setState({titleInput:e})}},{key:"onTitleBlur",value:function(){var e=this.props,t=e.onTitleUpdate,n=e.title,r=this.state.titleInput;""===r?this.setState({titleInput:n}):t&&t(r)}},{key:"onToggleHiddenBlock",value:function(e){var t=this;return function(){var n=Object(b.xor)(t.props.hiddenBlocks,[e]);t.props.onChangeHiddenBlocks(n)}}},{key:"render",value:function(){var e=this.props,t=e.component,n=o()(e,["component"]),r=this.state.titleInput;return Object(s.createElement)("div",{className:"woocommerce-dashboard-section"},Object(s.createElement)(t,T()({onTitleChange:this.onTitleChange,onTitleBlur:this.onTitleBlur,onToggleHiddenBlock:this.onToggleHiddenBlock,titleInput:r,controls:W},n)))}}]),n}(s.Component),$=n(582),ee=n(574);function te(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ne(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?te(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):te(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var re=Object(v.applyFilters)("woocommerce_admin_dashboard_filters",[]);t.default=Object(d.a)(Object(j.withSelect)((function(e){return{defaultDateRange:e(g.SETTINGS_STORE_NAME).getSetting("wc_admin","wcAdminSettings").woocommerce_default_date_range}})))((function(e){var t,n,r,c,a,i,d,v,h,j=e.defaultDateRange,D=e.path,S=e.query,C=Object(g.useUserPreferences)(),P=C.updateUserPreferences,T=function(e){if(!e||0===e.length)return F;var t=F.map((function(e){return e.key})),n=e.map((function(e){return e.key})),r=new Set([].concat(l()(n),l()(t))),o=[];return r.forEach((function(t){var n=F.find((function(e){return e.key===t}));if(n){var r=e.find((function(e){return e.key===t}));o.push(ne(ne({},n),r))}})),o}(o()(C,["updateUserPreferences"]).dashboard_sections),R=function(e){P({dashboard_sections:e})},x=function(e,t){var n=T.map((function(n){return n.key===e?ne(ne({},n),t):n}));R(n)},N=function(e){return function(t){Object(E.recordEvent)("dash_section_rename",{key:e}),x(e,{title:t})}},A=function(e,t){return function(){t&&t();var n=T.findIndex((function(t){return e===t.key})),r=T.splice(n,1).shift();r.isVisible=!r.isVisible,T.push(r),r.isVisible?Object(E.recordEvent)("dash_section_add",{key:r.key}):Object(E.recordEvent)("dash_section_remove",{key:r.key}),R(T)}},B=function e(t,n){var r=T.splice(t,1).shift(),o=t+n;if(T[n<0?o:o-1].isVisible||0===t||t===T.length-1){T.splice(o,0,r),R(T);var c={key:r.key,direction:n>0?"down":"up"};Object(E.recordEvent)("dash_section_order_change",c)}else e(t,n+n)};return Object(s.createElement)(ee.a.Provider,{value:Object(ee.b)(Object(k.getQuery)())},(n=Object(w.getDateParamsFromQuery)(S,j),r=n.period,c=n.compare,a=n.before,i=n.after,d=Object(w.getCurrentDates)(S,j),v={period:r,compare:c,before:a,after:i,primaryDate:d.primary,secondaryDate:d.secondary},h=T.filter((function(e){return e.isVisible})).map((function(e){return e.key})),Object(s.createElement)(s.Fragment,null,Object(s.createElement)($.a,{report:"dashboard",query:S,path:D,dateQuery:v,isoDateFormat:w.isoDateFormat,filters:re}),T.map((function(e,t){return e.isVisible?Object(s.createElement)(Y,{component:e.component,hiddenBlocks:e.hiddenBlocks,key:e.key,onChangeHiddenBlocks:(n=e.key,function(e){x(n,{hiddenBlocks:e})}),onTitleUpdate:N(e.key),path:D,query:S,title:e.title,onMove:Object(b.partial)(B,t),onRemove:A(e.key),isFirst:e.key===h[0],isLast:e.key===h[h.length-1],filters:re}):null;var n})),0===(t=T.filter((function(e){return!1===e.isVisible}))).length?null:Object(s.createElement)(p.a,{position:"top center",className:"woocommerce-dashboard-section__add-more",renderToggle:function(e){var t=e.onToggle,n=e.isOpen;return Object(s.createElement)(m.a,{onClick:t,title:Object(u.__)("Add more sections","woocommerce-admin"),"aria-expanded":n},Object(s.createElement)(O.a,{icon:y}))},renderContent:function(e){var n=e.onToggle;return Object(s.createElement)(s.Fragment,null,Object(s.createElement)(_.H,null,Object(u.__)("Dashboard Sections","woocommerce-admin")),Object(s.createElement)("div",{className:"woocommerce-dashboard-section__add-more-choices"},t.map((function(e){return Object(s.createElement)(m.a,{key:e.key,onClick:A(e.key,n),className:"woocommerce-dashboard-section__add-more-btn",title:Object(u.sprintf)(Object(u.__)("Add %s section","woocommerce-admin"),e.title)},Object(s.createElement)(f.a,{icon:e.icon,size:30}),Object(s.createElement)("span",{className:"woocommerce-dashboard-section__add-more-btn-title"},e.title))}))))}}))))}))}}]);
|
1 |
+
(window.__wcAdmin_webpackJsonp=window.__wcAdmin_webpackJsonp||[]).push([[29],{241:function(e,t,n){"use strict";var r=n(6),o=n(11),c=n(4),a=n.n(c),i=n(0);function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}t.a=function(e){var t=e.as,n=void 0===t?"div":t,c=e.className,s=Object(o.a)(e,["as","className"]);return function(e){var t=e.as,n=void 0===t?"div":t,r=Object(o.a)(e,["as"]);return"function"==typeof r.children?r.children(r):Object(i.createElement)(n,r)}(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){Object(r.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({as:n,className:a()("components-visually-hidden",c)},s))}},574:function(e,t,n){"use strict";n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return u}));var r=n(0),o=n(51),c=n(167),a=n.n(c),i=n(35),l=a()(i.b),s=function(e){var t=l.getCurrencyConfig(),n=Object(o.applyFilters)("woocommerce_admin_report_currency",t,e);return a()(n)},u=Object(r.createContext)(l)},581:function(e,t,n){"use strict";var r=n(0),o=n(4),c=n.n(o),a=n(241);function i(e){var t=e.id,n=e.label,o=e.hideLabelFromVision,l=e.help,s=e.className,u=e.children;return Object(r.createElement)("div",{className:c()("components-base-control",s)},Object(r.createElement)("div",{className:"components-base-control__field"},n&&t&&(o?Object(r.createElement)(a.a,{as:"label",htmlFor:t},n):Object(r.createElement)("label",{className:"components-base-control__label",htmlFor:t},n)),n&&!t&&(o?Object(r.createElement)(a.a,{as:"label"},n):Object(r.createElement)(i.VisualLabel,null,n)),u),!!l&&Object(r.createElement)("p",{id:t+"__help",className:"components-base-control__help"},l))}i.VisualLabel=function(e){var t=e.className,n=e.children;return t=c()("components-base-control__label",t),Object(r.createElement)("span",{className:t},n)},t.a=i},582:function(e,t,n){"use strict";var r=n(5),o=n.n(r),c=n(20),a=n.n(c),i=n(15),l=n.n(i),s=n(13),u=n.n(s),d=n(22),b=n.n(d),p=n(23),m=n.n(p),f=n(10),v=n.n(f),O=n(0),h=n(181),y=n(1),j=n.n(y),_=n(2),g=n(25),k=n(74),w=n(35),E=n(34),D=n(42),S=n(50),C=n(574),F=n(118);function P(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function T(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?P(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):P(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function R(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=v()(e);if(t){var o=v()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m()(this,n)}}var x=function(e){b()(n,e);var t=R(n);function n(){var e;return a()(this,n),(e=t.call(this)).onDateSelect=e.onDateSelect.bind(u()(e)),e.onFilterSelect=e.onFilterSelect.bind(u()(e)),e.onAdvancedFilterAction=e.onAdvancedFilterAction.bind(u()(e)),e}return l()(n,[{key:"onDateSelect",value:function(e){var t=this.props,n=t.report;(0,t.addCesSurveyForAnalytics)(),Object(S.recordEvent)("datepicker_update",T({report:n},Object(_.omitBy)(e,_.isUndefined)))}},{key:"onFilterSelect",value:function(e){var t=this.props,n=t.report,r=t.addCesSurveyForAnalytics,o=e.filter||e["filter-variations"];["single_product","single_category","single_coupon","single_variation"].includes(o)&&r(),Object(S.recordEvent)("analytics_filter",{report:n,filter:e.filter||"all"})}},{key:"onAdvancedFilterAction",value:function(e,t){var n=this.props,r=n.report,o=n.addCesSurveyForAnalytics;switch(e){case"add":Object(S.recordEvent)("analytics_filters_add",{report:r,filter:t.key});break;case"remove":Object(S.recordEvent)("analytics_filters_remove",{report:r,filter:t.key});break;case"filter":var c=Object.keys(t).reduce((function(e,n){return e[Object(_.snakeCase)(n)]=t[n],e}),{});o(),Object(S.recordEvent)("analytics_filters_filter",T({report:r},c));break;case"clear_all":Object(S.recordEvent)("analytics_filters_clear_all",{report:r});break;case"match":Object(S.recordEvent)("analytics_filters_all_any",{report:r,value:t.match})}}},{key:"render",value:function(){var e=this.props,t=e.advancedFilters,n=e.filters,r=e.path,o=e.query,c=e.showDatePicker,a=e.defaultDateRange,i=Object(D.getDateParamsFromQuery)(o,a),l=i.period,s=i.compare,u=i.before,d=i.after,b=Object(D.getCurrentDates)(o,a),p={period:l,compare:s,before:u,after:d,primaryDate:b.primary,secondaryDate:b.secondary},m=this.context;return Object(O.createElement)(k.ReportFilters,{query:o,siteLocale:w.c.siteLocale,currency:m.getCurrencyConfig(),path:r,filters:n,advancedFilters:t,showDatePicker:c,onDateSelect:this.onDateSelect,onFilterSelect:this.onFilterSelect,onAdvancedFilterAction:this.onAdvancedFilterAction,dateQuery:p,isoDateFormat:D.isoDateFormat})}}]),n}(O.Component);x.contextType=C.a,t.a=Object(h.a)(Object(g.withSelect)((function(e){return{defaultDateRange:e(E.SETTINGS_STORE_NAME).getSetting("wc_admin","wcAdminSettings").woocommerce_default_date_range}})),Object(g.withDispatch)((function(e){return{addCesSurveyForAnalytics:e(F.c).addCesSurveyForAnalytics}})))(x),x.propTypes={advancedFilters:j.a.object,filters:j.a.array,path:j.a.string.isRequired,query:j.a.object,showDatePicker:j.a.bool,report:j.a.string.isRequired}},660:function(e,t,n){"use strict";n.r(t);var r=n(58),o=n.n(r),c=n(5),a=n.n(c),i=n(28),l=n.n(i),s=n(0),u=n(3),d=n(181),b=n(2),p=n(339),m=n(68),f=n(114),v=n(51),O=n(377),h=n(78),y=Object(s.createElement)(h.c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(s.createElement)(h.b,{d:"M2 12C2 6.44444 6.44444 2 12 2C17.5556 2 22 6.44444 22 12C22 17.5556 17.5556 22 12 22C6.44444 22 2 17.5556 2 12ZM13 11V7H11V11H7V13H11V17H13V13H17V11H13Z"})),j=n(25),_=n(74),g=n(34),k=n(29),w=n(42),E=n(50),D=(n(590),Object(s.lazy)((function(){return Promise.all([n.e(1),n.e(2),n.e(8),n.e(31)]).then(n.bind(null,674))}))),S=Object(s.lazy)((function(){return Promise.all([n.e(2),n.e(3),n.e(36)]).then(n.bind(null,676))})),C=Object(s.lazy)((function(){return n.e(49).then(n.bind(null,666))})),F=Object(v.applyFilters)("woocommerce_dashboard_default_sections",[{key:"store-performance",component:function(e){return Object(s.createElement)(s.Suspense,{fallback:Object(s.createElement)(_.Spinner,null)},Object(s.createElement)(C,e))},title:Object(u.__)("Performance","woocommerce-admin"),isVisible:!0,icon:"arrow-right-alt",hiddenBlocks:["coupons/amount","coupons/orders_count","downloads/download_count","taxes/order_tax","taxes/total_tax","taxes/shipping_tax","revenue/shipping","orders/avg_order_value","revenue/refunds","revenue/gross_sales"]},{key:"charts",component:function(e){return Object(s.createElement)(s.Suspense,{fallback:Object(s.createElement)(_.Spinner,null)},Object(s.createElement)(D,e))},title:Object(u.__)("Charts","woocommerce-admin"),isVisible:!0,icon:"chart-bar",hiddenBlocks:["orders_avg_order_value","avg_items_per_order","products_items_sold","revenue_total_sales","revenue_refunds","coupons_amount","coupons_orders_count","revenue_shipping","taxes_total_tax","taxes_order_tax","taxes_shipping_tax","downloads_download_count"]},{key:"leaderboards",component:function(e){return Object(s.createElement)(s.Suspense,{fallback:Object(s.createElement)(_.Spinner,null)},Object(s.createElement)(S,e))},title:Object(u.__)("Leaderboards","woocommerce-admin"),isVisible:!0,icon:"editor-ol",hiddenBlocks:["coupons","customers"]}]),P=n(36),T=n.n(P),R=n(20),x=n.n(R),N=n(15),A=n.n(N),B=n(13),M=n.n(B),V=n(22),I=n.n(V),H=n(23),L=n.n(H),U=n(10),q=n.n(U),Q=n(7),z=n(11),G=n(147),J=n(581);function Z(e){var t=e.label,n=e.hideLabelFromVision,r=e.value,o=e.help,c=e.className,a=e.onChange,i=e.type,l=void 0===i?"text":i,u=Object(z.a)(e,["label","hideLabelFromVision","value","help","className","onChange","type"]),d=Object(G.a)(Z),b="inspector-text-control-".concat(d);return Object(s.createElement)(J.a,{label:t,hideLabelFromVision:n,id:b,help:o,className:c},Object(s.createElement)("input",Object(Q.a)({className:"components-text-control__input",type:l,id:b,value:r,onChange:function(e){return a(e.target.value)},"aria-describedby":o?b+"__help":void 0},u)))}function K(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=q()(e);if(t){var o=q()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return L()(this,n)}}var W=function(e){I()(n,e);var t=K(n);function n(e){var r;return x()(this,n),(r=t.call(this,e)).onMoveUp=r.onMoveUp.bind(M()(r)),r.onMoveDown=r.onMoveDown.bind(M()(r)),r}return A()(n,[{key:"onMoveUp",value:function(){var e=this.props,t=e.onMove,n=e.onToggle;t(-1),n()}},{key:"onMoveDown",value:function(){var e=this.props,t=e.onMove,n=e.onToggle;t(1),n()}},{key:"render",value:function(){var e=this.props,t=e.onRemove,n=e.isFirst,r=e.isLast,o=e.onTitleBlur,c=e.onTitleChange,a=e.titleInput;return Object(s.createElement)(s.Fragment,null,Object(s.createElement)("div",{className:"woocommerce-ellipsis-menu__item"},Object(s.createElement)(Z,{label:Object(u.__)("Section Title","woocommerce-admin"),onBlur:o,onChange:c,required:!0,value:a})),Object(s.createElement)("div",{className:"woocommerce-dashboard-section-controls"},!n&&Object(s.createElement)(_.MenuItem,{isClickable:!0,onInvoke:this.onMoveUp},Object(s.createElement)(f.a,{icon:"arrow-up-alt2",label:Object(u.__)("Move up")}),Object(u.__)("Move up","woocommerce-admin")),!r&&Object(s.createElement)(_.MenuItem,{isClickable:!0,onInvoke:this.onMoveDown},Object(s.createElement)(f.a,{icon:"arrow-down-alt2",label:Object(u.__)("Move Down")}),Object(u.__)("Move Down","woocommerce-admin")),Object(s.createElement)(_.MenuItem,{isClickable:!0,onInvoke:t},Object(s.createElement)(f.a,{icon:"trash",label:Object(u.__)("Remove block")}),Object(u.__)("Remove section","woocommerce-admin"))))}}]),n}(s.Component);function X(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=q()(e);if(t){var o=q()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return L()(this,n)}}var Y=function(e){I()(n,e);var t=X(n);function n(e){var r;x()(this,n),r=t.call(this,e);var o=e.title;return r.state={titleInput:o},r.onToggleHiddenBlock=r.onToggleHiddenBlock.bind(M()(r)),r.onTitleChange=r.onTitleChange.bind(M()(r)),r.onTitleBlur=r.onTitleBlur.bind(M()(r)),r}return A()(n,[{key:"onTitleChange",value:function(e){this.setState({titleInput:e})}},{key:"onTitleBlur",value:function(){var e=this.props,t=e.onTitleUpdate,n=e.title,r=this.state.titleInput;""===r?this.setState({titleInput:n}):t&&t(r)}},{key:"onToggleHiddenBlock",value:function(e){var t=this;return function(){var n=Object(b.xor)(t.props.hiddenBlocks,[e]);t.props.onChangeHiddenBlocks(n)}}},{key:"render",value:function(){var e=this.props,t=e.component,n=o()(e,["component"]),r=this.state.titleInput;return Object(s.createElement)("div",{className:"woocommerce-dashboard-section"},Object(s.createElement)(t,T()({onTitleChange:this.onTitleChange,onTitleBlur:this.onTitleBlur,onToggleHiddenBlock:this.onToggleHiddenBlock,titleInput:r,controls:W},n)))}}]),n}(s.Component),$=n(582),ee=n(574);function te(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ne(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?te(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):te(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var re=Object(v.applyFilters)("woocommerce_admin_dashboard_filters",[]);t.default=Object(d.a)(Object(j.withSelect)((function(e){return{defaultDateRange:e(g.SETTINGS_STORE_NAME).getSetting("wc_admin","wcAdminSettings").woocommerce_default_date_range}})))((function(e){var t,n,r,c,a,i,d,v,h,j=e.defaultDateRange,D=e.path,S=e.query,C=Object(g.useUserPreferences)(),P=C.updateUserPreferences,T=function(e){if(!e||0===e.length)return F;var t=F.map((function(e){return e.key})),n=e.map((function(e){return e.key})),r=new Set([].concat(l()(n),l()(t))),o=[];return r.forEach((function(t){var n=F.find((function(e){return e.key===t}));if(n){var r=e.find((function(e){return e.key===t}));o.push(ne(ne({},n),r))}})),o}(o()(C,["updateUserPreferences"]).dashboard_sections),R=function(e){P({dashboard_sections:e})},x=function(e,t){var n=T.map((function(n){return n.key===e?ne(ne({},n),t):n}));R(n)},N=function(e){return function(t){Object(E.recordEvent)("dash_section_rename",{key:e}),x(e,{title:t})}},A=function(e,t){return function(){t&&t();var n=T.findIndex((function(t){return e===t.key})),r=T.splice(n,1).shift();r.isVisible=!r.isVisible,T.push(r),r.isVisible?Object(E.recordEvent)("dash_section_add",{key:r.key}):Object(E.recordEvent)("dash_section_remove",{key:r.key}),R(T)}},B=function e(t,n){var r=T.splice(t,1).shift(),o=t+n;if(T[n<0?o:o-1].isVisible||0===t||t===T.length-1){T.splice(o,0,r),R(T);var c={key:r.key,direction:n>0?"down":"up"};Object(E.recordEvent)("dash_section_order_change",c)}else e(t,n+n)};return Object(s.createElement)(ee.a.Provider,{value:Object(ee.b)(Object(k.getQuery)())},(n=Object(w.getDateParamsFromQuery)(S,j),r=n.period,c=n.compare,a=n.before,i=n.after,d=Object(w.getCurrentDates)(S,j),v={period:r,compare:c,before:a,after:i,primaryDate:d.primary,secondaryDate:d.secondary},h=T.filter((function(e){return e.isVisible})).map((function(e){return e.key})),Object(s.createElement)(s.Fragment,null,Object(s.createElement)($.a,{report:"dashboard",query:S,path:D,dateQuery:v,isoDateFormat:w.isoDateFormat,filters:re}),T.map((function(e,t){return e.isVisible?Object(s.createElement)(Y,{component:e.component,hiddenBlocks:e.hiddenBlocks,key:e.key,onChangeHiddenBlocks:(n=e.key,function(e){x(n,{hiddenBlocks:e})}),onTitleUpdate:N(e.key),path:D,query:S,title:e.title,onMove:Object(b.partial)(B,t),onRemove:A(e.key),isFirst:e.key===h[0],isLast:e.key===h[h.length-1],filters:re}):null;var n})),0===(t=T.filter((function(e){return!1===e.isVisible}))).length?null:Object(s.createElement)(p.a,{position:"top center",className:"woocommerce-dashboard-section__add-more",renderToggle:function(e){var t=e.onToggle,n=e.isOpen;return Object(s.createElement)(m.a,{onClick:t,title:Object(u.__)("Add more sections","woocommerce-admin"),"aria-expanded":n},Object(s.createElement)(O.a,{icon:y}))},renderContent:function(e){var n=e.onToggle;return Object(s.createElement)(s.Fragment,null,Object(s.createElement)(_.H,null,Object(u.__)("Dashboard Sections","woocommerce-admin")),Object(s.createElement)("div",{className:"woocommerce-dashboard-section__add-more-choices"},t.map((function(e){return Object(s.createElement)(m.a,{key:e.key,onClick:A(e.key,n),className:"woocommerce-dashboard-section__add-more-btn",title:Object(u.sprintf)(Object(u.__)("Add %s section","woocommerce-admin"),e.title)},Object(s.createElement)(f.a,{icon:e.icon,size:30}),Object(s.createElement)("span",{className:"woocommerce-dashboard-section__add-more-btn-title"},e.title))}))))}}))))}))}}]);
|
dist/chunks/dashboard-charts.js
CHANGED
@@ -818,7 +818,7 @@ var select_control = __webpack_require__(671);
|
|
818 |
var menu = __webpack_require__(573);
|
819 |
|
820 |
// EXTERNAL MODULE: ./node_modules/@wordpress/components/build-module/button/index.js
|
821 |
-
var build_module_button = __webpack_require__(
|
822 |
|
823 |
// EXTERNAL MODULE: external {"this":["wc","components"]}
|
824 |
var external_this_wc_components_ = __webpack_require__(74);
|
818 |
var menu = __webpack_require__(573);
|
819 |
|
820 |
// EXTERNAL MODULE: ./node_modules/@wordpress/components/build-module/button/index.js
|
821 |
+
var build_module_button = __webpack_require__(68);
|
822 |
|
823 |
// EXTERNAL MODULE: external {"this":["wc","components"]}
|
824 |
var external_this_wc_components_ = __webpack_require__(74);
|
dist/chunks/dashboard-charts.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
(window.__wcAdmin_webpackJsonp=window.__wcAdmin_webpackJsonp||[]).push([[31],{250:function(e,t,r){"use strict";var o=Object.assign||function(e){for(var t,r=1;r<arguments.length;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.size,r=void 0===t?24:t,c=e.onClick,a=(e.icon,e.className),l=function(e,t){var r={};for(var o in e)0<=t.indexOf(o)||Object.prototype.hasOwnProperty.call(e,o)&&(r[o]=e[o]);return r}(e,["size","onClick","icon","className"]),i=["gridicon","gridicons-line-graph",a,!1,!1,!1].filter(Boolean).join(" ");return n.default.createElement("svg",o({className:i,height:r,width:r,onClick:c},l,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),n.default.createElement("g",null,n.default.createElement("path",{d:"M3 19h18v2H3zm3-3c1.1 0 2-.9 2-2 0-.5-.2-1-.5-1.3L8.8 10H9c.5 0 1-.2 1.3-.5l2.7 1.4v.1c0 1.1.9 2 2 2s2-.9 2-2c0-.5-.2-.9-.5-1.3L17.8 7h.2c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2c0 .5.2 1 .5 1.3L15.2 9H15c-.5 0-1 .2-1.3.5L11 8.2V8c0-1.1-.9-2-2-2s-2 .9-2 2c0 .5.2 1 .5 1.3L6.2 12H6c-1.1 0-2 .9-2 2s.9 2 2 2z"})))};var c,a=r(8),n=(c=a)&&c.__esModule?c:{default:c};e.exports=t.default},251:function(e,t,r){"use strict";var o=Object.assign||function(e){for(var t,r=1;r<arguments.length;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,r=e.size,c=void 0===r?24:r,a=e.onClick,l=(e.icon,e.className),i=function(e,t){var r={};for(var o in e)0<=t.indexOf(o)||Object.prototype.hasOwnProperty.call(e,o)&&(r[o]=e[o]);return r}(e,["size","onClick","icon","className"]),s=["gridicon","gridicons-stats-alt",l,!1,!1,(t=c,!(0!=t%18)&&"needs-offset-y")].filter(Boolean).join(" ");return n.default.createElement("svg",o({className:s,height:c,width:c,onClick:a},i,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),n.default.createElement("g",null,n.default.createElement("path",{d:"M21 21H3v-2h18v2zM8 10H4v7h4v-7zm6-7h-4v14h4V3zm6 3h-4v11h4V6z"})))};var c,a=r(8),n=(c=a)&&c.__esModule?c:{default:c};e.exports=t.default},575:function(e,t,r){"use strict";var o=r(20),c=r.n(o),a=r(15),n=r.n(a),l=r(22),i=r.n(l),s=r(23),m=r.n(s),d=r(10),u=r.n(d),p=r(0),_=r(3),b=r(1),h=r.n(b),f=r(74),y=r(35);function w(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,o=u()(e);if(t){var c=u()(this).constructor;r=Reflect.construct(o,arguments,c)}else r=o.apply(this,arguments);return m()(this,r)}}var O=function(e){i()(r,e);var t=w(r);function r(){return c()(this,r),t.apply(this,arguments)}return n()(r,[{key:"render",value:function(){var e,t,r,o,c=this.props,a=c.className,n=c.isError,l=c.isEmpty;return n?(e=Object(_.__)("There was an error getting your stats. Please try again.","woocommerce-admin"),t=Object(_.__)("Reload","woocommerce-admin"),o=function(){window.location.reload()}):l&&(e=Object(_.__)("No results could be found for this date range.","woocommerce-admin"),t=Object(_.__)("View Orders","woocommerce-admin"),r=Object(y.f)("edit.php?post_type=shop_order")),Object(p.createElement)(f.EmptyContent,{className:a,title:e,actionLabel:t,actionURL:r,actionCallback:o})}}]),r}(p.Component);O.propTypes={className:h.a.string,isError:h.a.bool,isEmpty:h.a.bool},O.defaultProps={className:""},t.a=O},598:function(e,t,r){"use strict";r.d(t,"b",(function(){return a})),r.d(t,"c",(function(){return n})),r.d(t,"a",(function(){return l}));var o=r(3),c=r(51),a=Object(c.applyFilters)("woocommerce_admin_revenue_report_charts",[{key:"gross_sales",label:Object(o.__)("Gross Sales","woocommerce-admin"),order:"desc",orderby:"gross_sales",type:"currency"},{key:"refunds",label:Object(o.__)("Returns","woocommerce-admin"),order:"desc",orderby:"refunds",type:"currency"},{key:"coupons",label:Object(o.__)("Coupons","woocommerce-admin"),order:"desc",orderby:"coupons",type:"currency"},{key:"net_revenue",label:Object(o.__)("Net Sales","woocommerce-admin"),orderby:"net_revenue",type:"currency"},{key:"taxes",label:Object(o.__)("Taxes","woocommerce-admin"),order:"desc",orderby:"taxes",type:"currency"},{key:"shipping",label:Object(o.__)("Shipping","woocommerce-admin"),orderby:"shipping",type:"currency"},{key:"total_sales",label:Object(o.__)("Total Sales","woocommerce-admin"),order:"desc",orderby:"total_sales",type:"currency"}]),n=Object(c.applyFilters)("woocommerce_admin_revenue_report_filters",[]),l=Object(c.applyFilters)("woocommerce_admin_revenue_report_advanced_filters",{})},599:function(e,t,r){"use strict";r.d(t,"b",(function(){return n})),r.d(t,"c",(function(){return s})),r.d(t,"a",(function(){return m}));var o=r(3),c=r(51),a=r(576),n=Object(c.applyFilters)("woocommerce_admin_products_report_charts",[{key:"items_sold",label:Object(o.__)("Items Sold","woocommerce-admin"),order:"desc",orderby:"items_sold",type:"number"},{key:"net_revenue",label:Object(o.__)("Net Sales","woocommerce-admin"),order:"desc",orderby:"net_revenue",type:"currency"},{key:"orders_count",label:Object(o.__)("Orders","woocommerce-admin"),order:"desc",orderby:"orders_count",type:"number"}]),l={label:Object(o.__)("Show","woocommerce-admin"),staticParams:["chartType","paged","per_page"],param:"filter",showFilters:function(){return!0},filters:[{label:Object(o.__)("All Products","woocommerce-admin"),value:"all"},{label:Object(o.__)("Single Product","woocommerce-admin"),value:"select_product",chartMode:"item-comparison",subFilters:[{component:"Search",value:"single_product",chartMode:"item-comparison",path:["select_product"],settings:{type:"products",param:"products",getLabels:a.d,labels:{placeholder:Object(o.__)("Type to search for a product","woocommerce-admin"),button:Object(o.__)("Single Product","woocommerce-admin")}}}]},{label:Object(o.__)("Comparison","woocommerce-admin"),value:"compare-products",chartMode:"item-comparison",settings:{type:"products",param:"products",getLabels:a.d,labels:{helpText:Object(o.__)("Check at least two products below to compare","woocommerce-admin"),placeholder:Object(o.__)("Search for products to compare","woocommerce-admin"),title:Object(o.__)("Compare Products","woocommerce-admin"),update:Object(o.__)("Compare","woocommerce-admin")}}}]},i={showFilters:function(e){return"single_product"===e.filter&&!!e.products&&e["is-variable"]},staticParams:["filter","products","chartType","paged","per_page"],param:"filter-variations",filters:[{label:Object(o.__)("All Variations","woocommerce-admin"),chartMode:"item-comparison",value:"all"},{label:Object(o.__)("Single Variation","woocommerce-admin"),value:"select_variation",subFilters:[{component:"Search",value:"single_variation",path:["select_variation"],settings:{type:"variations",param:"variations",getLabels:a.g,labels:{placeholder:Object(o.__)("Type to search for a variation","woocommerce-admin"),button:Object(o.__)("Single Variation","woocommerce-admin")}}}]},{label:Object(o.__)("Comparison","woocommerce-admin"),chartMode:"item-comparison",value:"compare-variations",settings:{type:"variations",param:"variations",getLabels:a.g,labels:{helpText:Object(o.__)("Check at least two variations below to compare","woocommerce-admin"),placeholder:Object(o.__)("Search for variations to compare","woocommerce-admin"),title:Object(o.__)("Compare Variations","woocommerce-admin"),update:Object(o.__)("Compare","woocommerce-admin")}}}]},s=Object(c.applyFilters)("woocommerce_admin_products_report_filters",[l,i]),m=Object(c.applyFilters)("woocommerce_admin_products_report_advanced_filters",{})},601:function(e,t,r){"use strict";r.d(t,"b",(function(){return n})),r.d(t,"c",(function(){return l})),r.d(t,"a",(function(){return i}));var o=r(3),c=r(51),a=r(576),n=Object(c.applyFilters)("woocommerce_admin_coupons_report_charts",[{key:"orders_count",label:Object(o.__)("Discounted Orders","woocommerce-admin"),order:"desc",orderby:"orders_count",type:"number"},{key:"amount",label:Object(o.__)("Amount","woocommerce-admin"),order:"desc",orderby:"amount",type:"currency"}]),l=Object(c.applyFilters)("woocommerce_admin_coupons_report_filters",[{label:Object(o.__)("Show","woocommerce-admin"),staticParams:["chartType","paged","per_page"],param:"filter",showFilters:function(){return!0},filters:[{label:Object(o.__)("All Coupons","woocommerce-admin"),value:"all"},{label:Object(o.__)("Single Coupon","woocommerce-admin"),value:"select_coupon",chartMode:"item-comparison",subFilters:[{component:"Search",value:"single_coupon",chartMode:"item-comparison",path:["select_coupon"],settings:{type:"coupons",param:"coupons",getLabels:a.b,labels:{placeholder:Object(o.__)("Type to search for a coupon","woocommerce-admin"),button:Object(o.__)("Single Coupon","woocommerce-admin")}}}]},{label:Object(o.__)("Comparison","woocommerce-admin"),value:"compare-coupons",settings:{type:"coupons",param:"coupons",getLabels:a.b,labels:{title:Object(o.__)("Compare Coupon Codes","woocommerce-admin"),update:Object(o.__)("Compare","woocommerce-admin"),helpText:Object(o.__)("Check at least two coupon codes below to compare","woocommerce-admin")}}}]}]),i=Object(c.applyFilters)("woocommerce_admin_coupon_report_advanced_filters",{})},602:function(e,t,r){"use strict";r.d(t,"b",(function(){return i})),r.d(t,"c",(function(){return s})),r.d(t,"a",(function(){return m}));var o=r(3),c=r(51),a=r(34),n=r(576),l=r(577),i=Object(c.applyFilters)("woocommerce_admin_taxes_report_charts",[{key:"total_tax",label:Object(o.__)("Total Tax","woocommerce-admin"),order:"desc",orderby:"total_tax",type:"currency"},{key:"order_tax",label:Object(o.__)("Order Tax","woocommerce-admin"),order:"desc",orderby:"order_tax",type:"currency"},{key:"shipping_tax",label:Object(o.__)("Shipping Tax","woocommerce-admin"),order:"desc",orderby:"shipping_tax",type:"currency"},{key:"orders_count",label:Object(o.__)("Orders","woocommerce-admin"),order:"desc",orderby:"orders_count",type:"number"}]),s=Object(c.applyFilters)("woocommerce_admin_taxes_report_filters",[{label:Object(o.__)("Show","woocommerce-admin"),staticParams:["chartType","paged","per_page"],param:"filter",showFilters:function(){return!0},filters:[{label:Object(o.__)("All Taxes","woocommerce-admin"),value:"all"},{label:Object(o.__)("Comparison","woocommerce-admin"),value:"compare-taxes",chartMode:"item-comparison",settings:{type:"taxes",param:"taxes",getLabels:Object(n.e)(a.NAMESPACE+"/taxes",(function(e){return{id:e.id,key:e.id,label:Object(l.a)(e)}})),labels:{helpText:Object(o.__)("Check at least two tax codes below to compare","woocommerce-admin"),placeholder:Object(o.__)("Search for tax codes to compare","woocommerce-admin"),title:Object(o.__)("Compare Tax Codes","woocommerce-admin"),update:Object(o.__)("Compare","woocommerce-admin")}}}]}]),m=Object(c.applyFilters)("woocommerce_admin_taxes_report_advanced_filters",{})},603:function(e,t,r){"use strict";r.d(t,"b",(function(){return u})),r.d(t,"c",(function(){return p})),r.d(t,"a",(function(){return _}));var o,c,a=r(14),n=r.n(a),l=r(75),i=r.n(l),s=r(3),m=r(51),d=r(576),u=Object(m.applyFilters)("woocommerce_admin_downloads_report_charts",[{key:"download_count",label:Object(s.__)("Downloads","woocommerce-admin"),type:"number"}]),p=Object(m.applyFilters)("woocommerce_admin_downloads_report_filters",[{label:Object(s.__)("Show","woocommerce-admin"),staticParams:["chartType","paged","per_page"],param:"filter",showFilters:function(){return!0},filters:[{label:Object(s.__)("All Downloads","woocommerce-admin"),value:"all"},{label:Object(s.__)("Advanced Filters","woocommerce-admin"),value:"advanced"}]}]),_=Object(m.applyFilters)("woocommerce_admin_downloads_report_advanced_filters",{title:Object(s._x)("Downloads Match {{select /}} Filters","A sentence describing filters for Downloads. See screen shot for context: https://cloudup.com/ccxhyH2mEDg","woocommerce-admin"),filters:{product:{labels:{add:Object(s.__)("Product","woocommerce-admin"),placeholder:Object(s.__)("Search","woocommerce-admin"),remove:Object(s.__)("Remove product filter","woocommerce-admin"),rule:Object(s.__)("Select a product filter match","woocommerce-admin"),title:Object(s.__)("{{title}}Product{{/title}} {{rule /}} {{filter /}}","woocommerce-admin"),filter:Object(s.__)("Select product","woocommerce-admin")},rules:[{value:"includes",label:Object(s._x)("Includes","products","woocommerce-admin")},{value:"excludes",label:Object(s._x)("Excludes","products","woocommerce-admin")}],input:{component:"Search",type:"products",getLabels:d.d}},customer:{labels:{add:Object(s.__)("Username","woocommerce-admin"),placeholder:Object(s.__)("Search customer username","woocommerce-admin"),remove:Object(s.__)("Remove customer username filter","woocommerce-admin"),rule:Object(s.__)("Select a customer username filter match","woocommerce-admin"),title:Object(s.__)("{{title}}Username{{/title}} {{rule /}} {{filter /}}","woocommerce-admin"),filter:Object(s.__)("Select customer username","woocommerce-admin")},rules:[{value:"includes",label:Object(s._x)("Includes","customer usernames","woocommerce-admin")},{value:"excludes",label:Object(s._x)("Excludes","customer usernames","woocommerce-admin")}],input:{component:"Search",type:"usernames",getLabels:d.c}},order:{labels:{add:Object(s.__)("Order #","woocommerce-admin"),placeholder:Object(s.__)("Search order number","woocommerce-admin"),remove:Object(s.__)("Remove order number filter","woocommerce-admin"),rule:Object(s.__)("Select a order number filter match","woocommerce-admin"),title:Object(s.__)("{{title}}Order #{{/title}} {{rule /}} {{filter /}}","woocommerce-admin"),filter:Object(s.__)("Select order number","woocommerce-admin")},rules:[{value:"includes",label:Object(s._x)("Includes","order numbers","woocommerce-admin")},{value:"excludes",label:Object(s._x)("Excludes","order numbers","woocommerce-admin")}],input:{component:"Search",type:"orders",getLabels:(c=i()(n.a.mark((function e(t){var r;return n.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.split(","),e.next=3,r.map((function(e){return{id:e,label:"#"+e}}));case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e)}))),function(e){return c.apply(this,arguments)})}},ip_address:{labels:{add:Object(s.__)("IP Address","woocommerce-admin"),placeholder:Object(s.__)("Search IP address","woocommerce-admin"),remove:Object(s.__)("Remove IP address filter","woocommerce-admin"),rule:Object(s.__)("Select an IP address filter match","woocommerce-admin"),title:Object(s.__)("{{title}}IP Address{{/title}} {{rule /}} {{filter /}}","woocommerce-admin"),filter:Object(s.__)("Select IP address","woocommerce-admin")},rules:[{value:"includes",label:Object(s._x)("Includes","IP addresses","woocommerce-admin")},{value:"excludes",label:Object(s._x)("Excludes","IP addresses","woocommerce-admin")}],input:{component:"Search",type:"downloadIps",getLabels:(o=i()(n.a.mark((function e(t){var r;return n.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.split(","),e.next=3,r.map((function(e){return{id:e,label:e}}));case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e)}))),function(e){return o.apply(this,arguments)})}}}})},655:function(e,t,r){},656:function(e,t,r){},674:function(e,t,r){"use strict";r.r(t);var o=r(5),c=r.n(o),a=r(31),n=r.n(a),l=r(58),i=r.n(l),s=r(0),m=r(3),d=r(4),u=r.n(d),p=r(250),_=r.n(p),b=r(251),h=r.n(b),f=r(1),y=r.n(f),w=r(671),O=r(573),j=r(67),v=r(74),g=r(34),k=r(42),x=r(50),C=r(20),P=r.n(C),S=r(15),T=r.n(S),E=r(13),F=r.n(E),R=r(22),I=r.n(R),N=r(23),L=r.n(N),M=r(10),B=r.n(M),D=r(29),q=r(35),A=r(578);r(655);function H(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,o=B()(e);if(t){var c=B()(this).constructor;r=Reflect.construct(o,arguments,c)}else r=o.apply(this,arguments);return L()(this,r)}}var z=function(e){I()(r,e);var t=H(r);function r(){var e;P()(this,r);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return e=t.call.apply(t,[this].concat(a)),c()(F()(e),"handleChartClick",(function(){var t=e.props.selectedChart;Object(D.getHistory)().push(e.getChartPath(t))})),e}return T()(r,[{key:"getChartPath",value:function(e){return Object(D.getNewPath)({chart:e.key},"/analytics/"+e.endpoint,Object(D.getPersistedQuery)())}},{key:"render",value:function(){var e=this.props,t=e.charts,r=e.endpoint,o=e.path,c=e.query,a=e.selectedChart,n=e.filters;return a?Object(s.createElement)("div",{role:"presentation",className:"woocommerce-dashboard__chart-block-wrapper",onClick:this.handleChartClick},Object(s.createElement)(v.Card,{className:"woocommerce-dashboard__chart-block woocommerce-analytics__card",title:a.label},Object(s.createElement)("a",{className:"screen-reader-text",href:Object(q.f)(this.getChartPath(a))},Object(m.sprintf)(Object(m.__)("%s Report","woocommerce-admin"),a.label)),Object(s.createElement)(A.a,{charts:t,endpoint:r,query:c,interactiveLegend:!1,legendPosition:"bottom",path:o,selectedChart:a,showHeaderControls:!1,filters:n}))):null}}]),r}(s.Component);z.propTypes={charts:y.a.array,endpoint:y.a.string.isRequired,path:y.a.string.isRequired,query:y.a.object.isRequired,selectedChart:y.a.object.isRequired};var V=z,U=r(51),G=r(611),J=r(599),Q=r(598),K=r(601),W=r(602),X=r(603);function Y(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function Z(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Y(Object(r),!0).forEach((function(t){c()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Y(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var $={revenue:Q.b,orders:G.b,products:J.b,coupons:K.b,taxes:W.b,downloads:X.b},ee=[{label:Object(m.__)("Total Sales","woocommerce-admin"),report:"revenue",key:"total_sales"},{label:Object(m.__)("Net Sales","woocommerce-admin"),report:"revenue",key:"net_revenue"},{label:Object(m.__)("Orders","woocommerce-admin"),report:"orders",key:"orders_count"},{label:Object(m.__)("Average Order Value","woocommerce-admin"),report:"orders",key:"avg_order_value"},{label:Object(m.__)("Items Sold","woocommerce-admin"),report:"products",key:"items_sold"},{label:Object(m.__)("Returns","woocommerce-admin"),report:"revenue",key:"refunds"},{label:Object(m.__)("Discounted Orders","woocommerce-admin"),report:"coupons",key:"orders_count"},{label:Object(m.__)("Gross discounted","woocommerce-admin"),report:"coupons",key:"amount"},{label:Object(m.__)("Total Tax","woocommerce-admin"),report:"taxes",key:"total_tax"},{label:Object(m.__)("Order Tax","woocommerce-admin"),report:"taxes",key:"order_tax"},{label:Object(m.__)("Shipping Tax","woocommerce-admin"),report:"taxes",key:"shipping_tax"},{label:Object(m.__)("Shipping","woocommerce-admin"),report:"revenue",key:"shipping"},{label:Object(m.__)("Downloads","woocommerce-admin"),report:"downloads",key:"download_count"}],te=Object(U.applyFilters)("woocommerce_admin_dashboard_charts_filter",ee.map((function(e){return Z(Z({},$[e.report].find((function(t){return t.key===e.key}))),{},{label:e.label,endpoint:e.report})})));r(656);function re(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function oe(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?re(Object(r),!0).forEach((function(t){c()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):re(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var ce=function(e){var t=e.controls,r=e.hiddenBlocks,o=e.isFirst,c=e.isLast,a=e.onMove,l=e.onRemove,d=e.onTitleBlur,p=e.onTitleChange,b=e.onToggleHiddenBlock,f=e.path,y=e.title,C=e.titleInput,P=e.filters,S=Object(g.useUserPreferences)(),T=S.updateUserPreferences,E=i()(S,["updateUserPreferences"]),F=Object(s.useState)(E.dashboard_chart_type||"line"),R=n()(F,2),I=R[0],N=R[1],L=Object(s.useState)(E.dashboard_chart_interval||"day"),M=n()(L,2),B=M[0],D=M[1],q=oe(oe({},e.query),{},{chartType:I,interval:B}),A=function(e){return function(){N(e),T({dashboard_chart_type:e}),Object(x.recordEvent)("dash_charts_type_toggle",{chart_type:e})}};return Object(s.createElement)("div",{className:"woocommerce-dashboard__dashboard-charts"},Object(s.createElement)(v.SectionHeader,{title:y||Object(m.__)("Charts","woocommerce-admin"),menu:Object(s.createElement)(v.EllipsisMenu,{label:Object(m.__)("Choose which charts to display","woocommerce-admin"),renderContent:function(e){var n=e.onToggle;return Object(s.createElement)(s.Fragment,null,Object(s.createElement)(v.MenuTitle,null,Object(m.__)("Charts","woocommerce-admin")),function(e){var t=e.hiddenBlocks,r=e.onToggleHiddenBlock;return te.map((function(e){var o=e.endpoint+"_"+e.key,c=!t.includes(o);return Object(s.createElement)(v.MenuItem,{checked:c,isCheckbox:!0,isClickable:!0,key:e.endpoint+"_"+e.key,onInvoke:function(){r(o)(),Object(x.recordEvent)("dash_charts_chart_toggle",{status:c?"off":"on",key:o})}},e.label)}))}({hiddenBlocks:r,onToggleHiddenBlock:b}),window.wcAdminFeatures["analytics-dashboard/customizable"]&&Object(s.createElement)(t,{onToggle:n,onMove:a,onRemove:l,isFirst:o,isLast:c,onTitleBlur:d,onTitleChange:p,titleInput:C}))}}),className:"has-interval-select"},function(e){var t=e.chartInterval,r=e.setInterval,o=e.query,c=Object(k.getAllowedIntervalsForQuery)(o);if(!c||c.length<1)return null;var a={hour:Object(m.__)("By hour","woocommerce-admin"),day:Object(m.__)("By day","woocommerce-admin"),week:Object(m.__)("By week","woocommerce-admin"),month:Object(m.__)("By month","woocommerce-admin"),quarter:Object(m.__)("By quarter","woocommerce-admin"),year:Object(m.__)("By year","woocommerce-admin")};return Object(s.createElement)(w.a,{className:"woocommerce-chart__interval-select",value:t,options:c.map((function(e){return{value:e,label:a[e]}})),onChange:r})}({chartInterval:B,setInterval:function(e){D(e),T({dashboard_chart_interval:e}),Object(x.recordEvent)("dash_charts_interval",{interval:e})},query:q}),Object(s.createElement)(O.a,{className:"woocommerce-chart__types",orientation:"horizontal",role:"menubar"},Object(s.createElement)(j.a,{className:u()("woocommerce-chart__type-button",{"woocommerce-chart__type-button-selected":!q.chartType||"line"===q.chartType}),title:Object(m.__)("Line chart","woocommerce-admin"),"aria-checked":"line"===q.chartType,role:"menuitemradio",tabIndex:"line"===q.chartType?0:-1,onClick:A("line")},Object(s.createElement)(_.a,null)),Object(s.createElement)(j.a,{className:u()("woocommerce-chart__type-button",{"woocommerce-chart__type-button-selected":"bar"===q.chartType}),title:Object(m.__)("Bar chart","woocommerce-admin"),"aria-checked":"bar"===q.chartType,role:"menuitemradio",tabIndex:"bar"===q.chartType?0:-1,onClick:A("bar")},Object(s.createElement)(h.a,null)))),function(e){var t=e.hiddenBlocks,r=e.path,o=e.query,c=e.filters,a=te.reduce((function(e,t){return void 0===e[t.endpoint]&&(e[t.endpoint]=[]),e[t.endpoint].push(t),e}),{});return Object(s.createElement)("div",{className:"woocommerce-dashboard__columns"},te.map((function(e){return t.includes(e.endpoint+"_"+e.key)?null:Object(s.createElement)(V,{charts:a[e.endpoint],endpoint:e.endpoint,key:e.endpoint+"_"+e.key,path:r,query:o,selectedChart:e,filters:c})})))}({hiddenBlocks:r,path:f,query:q,filters:P}))};ce.propTypes={path:y.a.string.isRequired,query:y.a.object.isRequired};t.default=ce}}]);
|
1 |
+
(window.__wcAdmin_webpackJsonp=window.__wcAdmin_webpackJsonp||[]).push([[31],{250:function(e,t,r){"use strict";var o=Object.assign||function(e){for(var t,r=1;r<arguments.length;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.size,r=void 0===t?24:t,c=e.onClick,a=(e.icon,e.className),l=function(e,t){var r={};for(var o in e)0<=t.indexOf(o)||Object.prototype.hasOwnProperty.call(e,o)&&(r[o]=e[o]);return r}(e,["size","onClick","icon","className"]),i=["gridicon","gridicons-line-graph",a,!1,!1,!1].filter(Boolean).join(" ");return n.default.createElement("svg",o({className:i,height:r,width:r,onClick:c},l,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),n.default.createElement("g",null,n.default.createElement("path",{d:"M3 19h18v2H3zm3-3c1.1 0 2-.9 2-2 0-.5-.2-1-.5-1.3L8.8 10H9c.5 0 1-.2 1.3-.5l2.7 1.4v.1c0 1.1.9 2 2 2s2-.9 2-2c0-.5-.2-.9-.5-1.3L17.8 7h.2c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2c0 .5.2 1 .5 1.3L15.2 9H15c-.5 0-1 .2-1.3.5L11 8.2V8c0-1.1-.9-2-2-2s-2 .9-2 2c0 .5.2 1 .5 1.3L6.2 12H6c-1.1 0-2 .9-2 2s.9 2 2 2z"})))};var c,a=r(8),n=(c=a)&&c.__esModule?c:{default:c};e.exports=t.default},251:function(e,t,r){"use strict";var o=Object.assign||function(e){for(var t,r=1;r<arguments.length;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,r=e.size,c=void 0===r?24:r,a=e.onClick,l=(e.icon,e.className),i=function(e,t){var r={};for(var o in e)0<=t.indexOf(o)||Object.prototype.hasOwnProperty.call(e,o)&&(r[o]=e[o]);return r}(e,["size","onClick","icon","className"]),s=["gridicon","gridicons-stats-alt",l,!1,!1,(t=c,!(0!=t%18)&&"needs-offset-y")].filter(Boolean).join(" ");return n.default.createElement("svg",o({className:s,height:c,width:c,onClick:a},i,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),n.default.createElement("g",null,n.default.createElement("path",{d:"M21 21H3v-2h18v2zM8 10H4v7h4v-7zm6-7h-4v14h4V3zm6 3h-4v11h4V6z"})))};var c,a=r(8),n=(c=a)&&c.__esModule?c:{default:c};e.exports=t.default},575:function(e,t,r){"use strict";var o=r(20),c=r.n(o),a=r(15),n=r.n(a),l=r(22),i=r.n(l),s=r(23),m=r.n(s),d=r(10),u=r.n(d),p=r(0),_=r(3),b=r(1),h=r.n(b),f=r(74),y=r(35);function w(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,o=u()(e);if(t){var c=u()(this).constructor;r=Reflect.construct(o,arguments,c)}else r=o.apply(this,arguments);return m()(this,r)}}var O=function(e){i()(r,e);var t=w(r);function r(){return c()(this,r),t.apply(this,arguments)}return n()(r,[{key:"render",value:function(){var e,t,r,o,c=this.props,a=c.className,n=c.isError,l=c.isEmpty;return n?(e=Object(_.__)("There was an error getting your stats. Please try again.","woocommerce-admin"),t=Object(_.__)("Reload","woocommerce-admin"),o=function(){window.location.reload()}):l&&(e=Object(_.__)("No results could be found for this date range.","woocommerce-admin"),t=Object(_.__)("View Orders","woocommerce-admin"),r=Object(y.f)("edit.php?post_type=shop_order")),Object(p.createElement)(f.EmptyContent,{className:a,title:e,actionLabel:t,actionURL:r,actionCallback:o})}}]),r}(p.Component);O.propTypes={className:h.a.string,isError:h.a.bool,isEmpty:h.a.bool},O.defaultProps={className:""},t.a=O},598:function(e,t,r){"use strict";r.d(t,"b",(function(){return a})),r.d(t,"c",(function(){return n})),r.d(t,"a",(function(){return l}));var o=r(3),c=r(51),a=Object(c.applyFilters)("woocommerce_admin_revenue_report_charts",[{key:"gross_sales",label:Object(o.__)("Gross Sales","woocommerce-admin"),order:"desc",orderby:"gross_sales",type:"currency"},{key:"refunds",label:Object(o.__)("Returns","woocommerce-admin"),order:"desc",orderby:"refunds",type:"currency"},{key:"coupons",label:Object(o.__)("Coupons","woocommerce-admin"),order:"desc",orderby:"coupons",type:"currency"},{key:"net_revenue",label:Object(o.__)("Net Sales","woocommerce-admin"),orderby:"net_revenue",type:"currency"},{key:"taxes",label:Object(o.__)("Taxes","woocommerce-admin"),order:"desc",orderby:"taxes",type:"currency"},{key:"shipping",label:Object(o.__)("Shipping","woocommerce-admin"),orderby:"shipping",type:"currency"},{key:"total_sales",label:Object(o.__)("Total Sales","woocommerce-admin"),order:"desc",orderby:"total_sales",type:"currency"}]),n=Object(c.applyFilters)("woocommerce_admin_revenue_report_filters",[]),l=Object(c.applyFilters)("woocommerce_admin_revenue_report_advanced_filters",{})},599:function(e,t,r){"use strict";r.d(t,"b",(function(){return n})),r.d(t,"c",(function(){return s})),r.d(t,"a",(function(){return m}));var o=r(3),c=r(51),a=r(576),n=Object(c.applyFilters)("woocommerce_admin_products_report_charts",[{key:"items_sold",label:Object(o.__)("Items Sold","woocommerce-admin"),order:"desc",orderby:"items_sold",type:"number"},{key:"net_revenue",label:Object(o.__)("Net Sales","woocommerce-admin"),order:"desc",orderby:"net_revenue",type:"currency"},{key:"orders_count",label:Object(o.__)("Orders","woocommerce-admin"),order:"desc",orderby:"orders_count",type:"number"}]),l={label:Object(o.__)("Show","woocommerce-admin"),staticParams:["chartType","paged","per_page"],param:"filter",showFilters:function(){return!0},filters:[{label:Object(o.__)("All Products","woocommerce-admin"),value:"all"},{label:Object(o.__)("Single Product","woocommerce-admin"),value:"select_product",chartMode:"item-comparison",subFilters:[{component:"Search",value:"single_product",chartMode:"item-comparison",path:["select_product"],settings:{type:"products",param:"products",getLabels:a.d,labels:{placeholder:Object(o.__)("Type to search for a product","woocommerce-admin"),button:Object(o.__)("Single Product","woocommerce-admin")}}}]},{label:Object(o.__)("Comparison","woocommerce-admin"),value:"compare-products",chartMode:"item-comparison",settings:{type:"products",param:"products",getLabels:a.d,labels:{helpText:Object(o.__)("Check at least two products below to compare","woocommerce-admin"),placeholder:Object(o.__)("Search for products to compare","woocommerce-admin"),title:Object(o.__)("Compare Products","woocommerce-admin"),update:Object(o.__)("Compare","woocommerce-admin")}}}]},i={showFilters:function(e){return"single_product"===e.filter&&!!e.products&&e["is-variable"]},staticParams:["filter","products","chartType","paged","per_page"],param:"filter-variations",filters:[{label:Object(o.__)("All Variations","woocommerce-admin"),chartMode:"item-comparison",value:"all"},{label:Object(o.__)("Single Variation","woocommerce-admin"),value:"select_variation",subFilters:[{component:"Search",value:"single_variation",path:["select_variation"],settings:{type:"variations",param:"variations",getLabels:a.g,labels:{placeholder:Object(o.__)("Type to search for a variation","woocommerce-admin"),button:Object(o.__)("Single Variation","woocommerce-admin")}}}]},{label:Object(o.__)("Comparison","woocommerce-admin"),chartMode:"item-comparison",value:"compare-variations",settings:{type:"variations",param:"variations",getLabels:a.g,labels:{helpText:Object(o.__)("Check at least two variations below to compare","woocommerce-admin"),placeholder:Object(o.__)("Search for variations to compare","woocommerce-admin"),title:Object(o.__)("Compare Variations","woocommerce-admin"),update:Object(o.__)("Compare","woocommerce-admin")}}}]},s=Object(c.applyFilters)("woocommerce_admin_products_report_filters",[l,i]),m=Object(c.applyFilters)("woocommerce_admin_products_report_advanced_filters",{})},601:function(e,t,r){"use strict";r.d(t,"b",(function(){return n})),r.d(t,"c",(function(){return l})),r.d(t,"a",(function(){return i}));var o=r(3),c=r(51),a=r(576),n=Object(c.applyFilters)("woocommerce_admin_coupons_report_charts",[{key:"orders_count",label:Object(o.__)("Discounted Orders","woocommerce-admin"),order:"desc",orderby:"orders_count",type:"number"},{key:"amount",label:Object(o.__)("Amount","woocommerce-admin"),order:"desc",orderby:"amount",type:"currency"}]),l=Object(c.applyFilters)("woocommerce_admin_coupons_report_filters",[{label:Object(o.__)("Show","woocommerce-admin"),staticParams:["chartType","paged","per_page"],param:"filter",showFilters:function(){return!0},filters:[{label:Object(o.__)("All Coupons","woocommerce-admin"),value:"all"},{label:Object(o.__)("Single Coupon","woocommerce-admin"),value:"select_coupon",chartMode:"item-comparison",subFilters:[{component:"Search",value:"single_coupon",chartMode:"item-comparison",path:["select_coupon"],settings:{type:"coupons",param:"coupons",getLabels:a.b,labels:{placeholder:Object(o.__)("Type to search for a coupon","woocommerce-admin"),button:Object(o.__)("Single Coupon","woocommerce-admin")}}}]},{label:Object(o.__)("Comparison","woocommerce-admin"),value:"compare-coupons",settings:{type:"coupons",param:"coupons",getLabels:a.b,labels:{title:Object(o.__)("Compare Coupon Codes","woocommerce-admin"),update:Object(o.__)("Compare","woocommerce-admin"),helpText:Object(o.__)("Check at least two coupon codes below to compare","woocommerce-admin")}}}]}]),i=Object(c.applyFilters)("woocommerce_admin_coupon_report_advanced_filters",{})},602:function(e,t,r){"use strict";r.d(t,"b",(function(){return i})),r.d(t,"c",(function(){return s})),r.d(t,"a",(function(){return m}));var o=r(3),c=r(51),a=r(34),n=r(576),l=r(577),i=Object(c.applyFilters)("woocommerce_admin_taxes_report_charts",[{key:"total_tax",label:Object(o.__)("Total Tax","woocommerce-admin"),order:"desc",orderby:"total_tax",type:"currency"},{key:"order_tax",label:Object(o.__)("Order Tax","woocommerce-admin"),order:"desc",orderby:"order_tax",type:"currency"},{key:"shipping_tax",label:Object(o.__)("Shipping Tax","woocommerce-admin"),order:"desc",orderby:"shipping_tax",type:"currency"},{key:"orders_count",label:Object(o.__)("Orders","woocommerce-admin"),order:"desc",orderby:"orders_count",type:"number"}]),s=Object(c.applyFilters)("woocommerce_admin_taxes_report_filters",[{label:Object(o.__)("Show","woocommerce-admin"),staticParams:["chartType","paged","per_page"],param:"filter",showFilters:function(){return!0},filters:[{label:Object(o.__)("All Taxes","woocommerce-admin"),value:"all"},{label:Object(o.__)("Comparison","woocommerce-admin"),value:"compare-taxes",chartMode:"item-comparison",settings:{type:"taxes",param:"taxes",getLabels:Object(n.e)(a.NAMESPACE+"/taxes",(function(e){return{id:e.id,key:e.id,label:Object(l.a)(e)}})),labels:{helpText:Object(o.__)("Check at least two tax codes below to compare","woocommerce-admin"),placeholder:Object(o.__)("Search for tax codes to compare","woocommerce-admin"),title:Object(o.__)("Compare Tax Codes","woocommerce-admin"),update:Object(o.__)("Compare","woocommerce-admin")}}}]}]),m=Object(c.applyFilters)("woocommerce_admin_taxes_report_advanced_filters",{})},603:function(e,t,r){"use strict";r.d(t,"b",(function(){return u})),r.d(t,"c",(function(){return p})),r.d(t,"a",(function(){return _}));var o,c,a=r(14),n=r.n(a),l=r(75),i=r.n(l),s=r(3),m=r(51),d=r(576),u=Object(m.applyFilters)("woocommerce_admin_downloads_report_charts",[{key:"download_count",label:Object(s.__)("Downloads","woocommerce-admin"),type:"number"}]),p=Object(m.applyFilters)("woocommerce_admin_downloads_report_filters",[{label:Object(s.__)("Show","woocommerce-admin"),staticParams:["chartType","paged","per_page"],param:"filter",showFilters:function(){return!0},filters:[{label:Object(s.__)("All Downloads","woocommerce-admin"),value:"all"},{label:Object(s.__)("Advanced Filters","woocommerce-admin"),value:"advanced"}]}]),_=Object(m.applyFilters)("woocommerce_admin_downloads_report_advanced_filters",{title:Object(s._x)("Downloads Match {{select /}} Filters","A sentence describing filters for Downloads. See screen shot for context: https://cloudup.com/ccxhyH2mEDg","woocommerce-admin"),filters:{product:{labels:{add:Object(s.__)("Product","woocommerce-admin"),placeholder:Object(s.__)("Search","woocommerce-admin"),remove:Object(s.__)("Remove product filter","woocommerce-admin"),rule:Object(s.__)("Select a product filter match","woocommerce-admin"),title:Object(s.__)("{{title}}Product{{/title}} {{rule /}} {{filter /}}","woocommerce-admin"),filter:Object(s.__)("Select product","woocommerce-admin")},rules:[{value:"includes",label:Object(s._x)("Includes","products","woocommerce-admin")},{value:"excludes",label:Object(s._x)("Excludes","products","woocommerce-admin")}],input:{component:"Search",type:"products",getLabels:d.d}},customer:{labels:{add:Object(s.__)("Username","woocommerce-admin"),placeholder:Object(s.__)("Search customer username","woocommerce-admin"),remove:Object(s.__)("Remove customer username filter","woocommerce-admin"),rule:Object(s.__)("Select a customer username filter match","woocommerce-admin"),title:Object(s.__)("{{title}}Username{{/title}} {{rule /}} {{filter /}}","woocommerce-admin"),filter:Object(s.__)("Select customer username","woocommerce-admin")},rules:[{value:"includes",label:Object(s._x)("Includes","customer usernames","woocommerce-admin")},{value:"excludes",label:Object(s._x)("Excludes","customer usernames","woocommerce-admin")}],input:{component:"Search",type:"usernames",getLabels:d.c}},order:{labels:{add:Object(s.__)("Order #","woocommerce-admin"),placeholder:Object(s.__)("Search order number","woocommerce-admin"),remove:Object(s.__)("Remove order number filter","woocommerce-admin"),rule:Object(s.__)("Select a order number filter match","woocommerce-admin"),title:Object(s.__)("{{title}}Order #{{/title}} {{rule /}} {{filter /}}","woocommerce-admin"),filter:Object(s.__)("Select order number","woocommerce-admin")},rules:[{value:"includes",label:Object(s._x)("Includes","order numbers","woocommerce-admin")},{value:"excludes",label:Object(s._x)("Excludes","order numbers","woocommerce-admin")}],input:{component:"Search",type:"orders",getLabels:(c=i()(n.a.mark((function e(t){var r;return n.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.split(","),e.next=3,r.map((function(e){return{id:e,label:"#"+e}}));case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e)}))),function(e){return c.apply(this,arguments)})}},ip_address:{labels:{add:Object(s.__)("IP Address","woocommerce-admin"),placeholder:Object(s.__)("Search IP address","woocommerce-admin"),remove:Object(s.__)("Remove IP address filter","woocommerce-admin"),rule:Object(s.__)("Select an IP address filter match","woocommerce-admin"),title:Object(s.__)("{{title}}IP Address{{/title}} {{rule /}} {{filter /}}","woocommerce-admin"),filter:Object(s.__)("Select IP address","woocommerce-admin")},rules:[{value:"includes",label:Object(s._x)("Includes","IP addresses","woocommerce-admin")},{value:"excludes",label:Object(s._x)("Excludes","IP addresses","woocommerce-admin")}],input:{component:"Search",type:"downloadIps",getLabels:(o=i()(n.a.mark((function e(t){var r;return n.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.split(","),e.next=3,r.map((function(e){return{id:e,label:e}}));case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e)}))),function(e){return o.apply(this,arguments)})}}}})},655:function(e,t,r){},656:function(e,t,r){},674:function(e,t,r){"use strict";r.r(t);var o=r(5),c=r.n(o),a=r(31),n=r.n(a),l=r(58),i=r.n(l),s=r(0),m=r(3),d=r(4),u=r.n(d),p=r(250),_=r.n(p),b=r(251),h=r.n(b),f=r(1),y=r.n(f),w=r(671),O=r(573),j=r(68),v=r(74),g=r(34),k=r(42),x=r(50),C=r(20),P=r.n(C),S=r(15),T=r.n(S),E=r(13),F=r.n(E),R=r(22),I=r.n(R),N=r(23),L=r.n(N),M=r(10),B=r.n(M),D=r(29),q=r(35),A=r(578);r(655);function H(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,o=B()(e);if(t){var c=B()(this).constructor;r=Reflect.construct(o,arguments,c)}else r=o.apply(this,arguments);return L()(this,r)}}var z=function(e){I()(r,e);var t=H(r);function r(){var e;P()(this,r);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return e=t.call.apply(t,[this].concat(a)),c()(F()(e),"handleChartClick",(function(){var t=e.props.selectedChart;Object(D.getHistory)().push(e.getChartPath(t))})),e}return T()(r,[{key:"getChartPath",value:function(e){return Object(D.getNewPath)({chart:e.key},"/analytics/"+e.endpoint,Object(D.getPersistedQuery)())}},{key:"render",value:function(){var e=this.props,t=e.charts,r=e.endpoint,o=e.path,c=e.query,a=e.selectedChart,n=e.filters;return a?Object(s.createElement)("div",{role:"presentation",className:"woocommerce-dashboard__chart-block-wrapper",onClick:this.handleChartClick},Object(s.createElement)(v.Card,{className:"woocommerce-dashboard__chart-block woocommerce-analytics__card",title:a.label},Object(s.createElement)("a",{className:"screen-reader-text",href:Object(q.f)(this.getChartPath(a))},Object(m.sprintf)(Object(m.__)("%s Report","woocommerce-admin"),a.label)),Object(s.createElement)(A.a,{charts:t,endpoint:r,query:c,interactiveLegend:!1,legendPosition:"bottom",path:o,selectedChart:a,showHeaderControls:!1,filters:n}))):null}}]),r}(s.Component);z.propTypes={charts:y.a.array,endpoint:y.a.string.isRequired,path:y.a.string.isRequired,query:y.a.object.isRequired,selectedChart:y.a.object.isRequired};var V=z,U=r(51),G=r(611),J=r(599),Q=r(598),K=r(601),W=r(602),X=r(603);function Y(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function Z(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Y(Object(r),!0).forEach((function(t){c()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Y(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var $={revenue:Q.b,orders:G.b,products:J.b,coupons:K.b,taxes:W.b,downloads:X.b},ee=[{label:Object(m.__)("Total Sales","woocommerce-admin"),report:"revenue",key:"total_sales"},{label:Object(m.__)("Net Sales","woocommerce-admin"),report:"revenue",key:"net_revenue"},{label:Object(m.__)("Orders","woocommerce-admin"),report:"orders",key:"orders_count"},{label:Object(m.__)("Average Order Value","woocommerce-admin"),report:"orders",key:"avg_order_value"},{label:Object(m.__)("Items Sold","woocommerce-admin"),report:"products",key:"items_sold"},{label:Object(m.__)("Returns","woocommerce-admin"),report:"revenue",key:"refunds"},{label:Object(m.__)("Discounted Orders","woocommerce-admin"),report:"coupons",key:"orders_count"},{label:Object(m.__)("Gross discounted","woocommerce-admin"),report:"coupons",key:"amount"},{label:Object(m.__)("Total Tax","woocommerce-admin"),report:"taxes",key:"total_tax"},{label:Object(m.__)("Order Tax","woocommerce-admin"),report:"taxes",key:"order_tax"},{label:Object(m.__)("Shipping Tax","woocommerce-admin"),report:"taxes",key:"shipping_tax"},{label:Object(m.__)("Shipping","woocommerce-admin"),report:"revenue",key:"shipping"},{label:Object(m.__)("Downloads","woocommerce-admin"),report:"downloads",key:"download_count"}],te=Object(U.applyFilters)("woocommerce_admin_dashboard_charts_filter",ee.map((function(e){return Z(Z({},$[e.report].find((function(t){return t.key===e.key}))),{},{label:e.label,endpoint:e.report})})));r(656);function re(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function oe(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?re(Object(r),!0).forEach((function(t){c()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):re(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var ce=function(e){var t=e.controls,r=e.hiddenBlocks,o=e.isFirst,c=e.isLast,a=e.onMove,l=e.onRemove,d=e.onTitleBlur,p=e.onTitleChange,b=e.onToggleHiddenBlock,f=e.path,y=e.title,C=e.titleInput,P=e.filters,S=Object(g.useUserPreferences)(),T=S.updateUserPreferences,E=i()(S,["updateUserPreferences"]),F=Object(s.useState)(E.dashboard_chart_type||"line"),R=n()(F,2),I=R[0],N=R[1],L=Object(s.useState)(E.dashboard_chart_interval||"day"),M=n()(L,2),B=M[0],D=M[1],q=oe(oe({},e.query),{},{chartType:I,interval:B}),A=function(e){return function(){N(e),T({dashboard_chart_type:e}),Object(x.recordEvent)("dash_charts_type_toggle",{chart_type:e})}};return Object(s.createElement)("div",{className:"woocommerce-dashboard__dashboard-charts"},Object(s.createElement)(v.SectionHeader,{title:y||Object(m.__)("Charts","woocommerce-admin"),menu:Object(s.createElement)(v.EllipsisMenu,{label:Object(m.__)("Choose which charts to display","woocommerce-admin"),renderContent:function(e){var n=e.onToggle;return Object(s.createElement)(s.Fragment,null,Object(s.createElement)(v.MenuTitle,null,Object(m.__)("Charts","woocommerce-admin")),function(e){var t=e.hiddenBlocks,r=e.onToggleHiddenBlock;return te.map((function(e){var o=e.endpoint+"_"+e.key,c=!t.includes(o);return Object(s.createElement)(v.MenuItem,{checked:c,isCheckbox:!0,isClickable:!0,key:e.endpoint+"_"+e.key,onInvoke:function(){r(o)(),Object(x.recordEvent)("dash_charts_chart_toggle",{status:c?"off":"on",key:o})}},e.label)}))}({hiddenBlocks:r,onToggleHiddenBlock:b}),window.wcAdminFeatures["analytics-dashboard/customizable"]&&Object(s.createElement)(t,{onToggle:n,onMove:a,onRemove:l,isFirst:o,isLast:c,onTitleBlur:d,onTitleChange:p,titleInput:C}))}}),className:"has-interval-select"},function(e){var t=e.chartInterval,r=e.setInterval,o=e.query,c=Object(k.getAllowedIntervalsForQuery)(o);if(!c||c.length<1)return null;var a={hour:Object(m.__)("By hour","woocommerce-admin"),day:Object(m.__)("By day","woocommerce-admin"),week:Object(m.__)("By week","woocommerce-admin"),month:Object(m.__)("By month","woocommerce-admin"),quarter:Object(m.__)("By quarter","woocommerce-admin"),year:Object(m.__)("By year","woocommerce-admin")};return Object(s.createElement)(w.a,{className:"woocommerce-chart__interval-select",value:t,options:c.map((function(e){return{value:e,label:a[e]}})),onChange:r})}({chartInterval:B,setInterval:function(e){D(e),T({dashboard_chart_interval:e}),Object(x.recordEvent)("dash_charts_interval",{interval:e})},query:q}),Object(s.createElement)(O.a,{className:"woocommerce-chart__types",orientation:"horizontal",role:"menubar"},Object(s.createElement)(j.a,{className:u()("woocommerce-chart__type-button",{"woocommerce-chart__type-button-selected":!q.chartType||"line"===q.chartType}),title:Object(m.__)("Line chart","woocommerce-admin"),"aria-checked":"line"===q.chartType,role:"menuitemradio",tabIndex:"line"===q.chartType?0:-1,onClick:A("line")},Object(s.createElement)(_.a,null)),Object(s.createElement)(j.a,{className:u()("woocommerce-chart__type-button",{"woocommerce-chart__type-button-selected":"bar"===q.chartType}),title:Object(m.__)("Bar chart","woocommerce-admin"),"aria-checked":"bar"===q.chartType,role:"menuitemradio",tabIndex:"bar"===q.chartType?0:-1,onClick:A("bar")},Object(s.createElement)(h.a,null)))),function(e){var t=e.hiddenBlocks,r=e.path,o=e.query,c=e.filters,a=te.reduce((function(e,t){return void 0===e[t.endpoint]&&(e[t.endpoint]=[]),e[t.endpoint].push(t),e}),{});return Object(s.createElement)("div",{className:"woocommerce-dashboard__columns"},te.map((function(e){return t.includes(e.endpoint+"_"+e.key)?null:Object(s.createElement)(V,{charts:a[e.endpoint],endpoint:e.endpoint,key:e.endpoint+"_"+e.key,path:r,query:o,selectedChart:e,filters:c})})))}({hiddenBlocks:r,path:f,query:q,filters:P}))};ce.propTypes={path:y.a.string.isRequired,query:y.a.object.isRequired};t.default=ce}}]);
|
dist/chunks/homescreen.js
CHANGED
@@ -328,7 +328,7 @@ var prop_types_default = /*#__PURE__*/__webpack_require__.n(prop_types);
|
|
328 |
var external_this_wc_components_ = __webpack_require__(74);
|
329 |
|
330 |
// EXTERNAL MODULE: ./node_modules/@wordpress/components/build-module/button/index.js
|
331 |
-
var build_module_button = __webpack_require__(
|
332 |
|
333 |
// EXTERNAL MODULE: ./client/header/activity-panel/activity-card/style.scss
|
334 |
var style = __webpack_require__(593);
|
@@ -1171,7 +1171,7 @@ var defineProperty_default = /*#__PURE__*/__webpack_require__.n(defineProperty);
|
|
1171 |
var dropdown = __webpack_require__(339);
|
1172 |
|
1173 |
// EXTERNAL MODULE: ./node_modules/@wordpress/components/build-module/button/index.js
|
1174 |
-
var build_module_button = __webpack_require__(
|
1175 |
|
1176 |
// EXTERNAL MODULE: ./node_modules/@wordpress/components/build-module/modal/index.js + 3 modules
|
1177 |
var modal = __webpack_require__(546);
|
@@ -1940,7 +1940,7 @@ var inbox_panel_InboxPanel = function InboxPanel(props) {
|
|
1940 |
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_6__);
|
1941 |
/* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(147);
|
1942 |
/* harmony import */ var _navigable_container__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(573);
|
1943 |
-
/* harmony import */ var _button__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(
|
1944 |
|
1945 |
|
1946 |
|
@@ -3300,538 +3300,206 @@ var _extends=Object.assign||function(a){for(var c,b=1;b<arguments.length;b++)for
|
|
3300 |
|
3301 |
/***/ }),
|
3302 |
|
3303 |
-
/***/
|
3304 |
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
3305 |
|
3306 |
"use strict";
|
|
|
|
|
3307 |
|
3308 |
-
//
|
3309 |
-
|
3310 |
-
__webpack_require__.d(__webpack_exports__, "h", function() { return /* binding */ TAB; });
|
3311 |
-
__webpack_require__.d(__webpack_exports__, "c", function() { return /* binding */ ENTER; });
|
3312 |
-
__webpack_require__.d(__webpack_exports__, "d", function() { return /* binding */ ESCAPE; });
|
3313 |
-
__webpack_require__.d(__webpack_exports__, "g", function() { return /* binding */ SPACE; });
|
3314 |
-
__webpack_require__.d(__webpack_exports__, "e", function() { return /* binding */ LEFT; });
|
3315 |
-
__webpack_require__.d(__webpack_exports__, "i", function() { return /* binding */ UP; });
|
3316 |
-
__webpack_require__.d(__webpack_exports__, "f", function() { return /* binding */ RIGHT; });
|
3317 |
-
__webpack_require__.d(__webpack_exports__, "b", function() { return /* binding */ DOWN; });
|
3318 |
-
|
3319 |
-
// UNUSED EXPORTS: DELETE, F10, ALT, CTRL, COMMAND, SHIFT, ZERO, modifiers, rawShortcut, displayShortcutList, displayShortcut, shortcutAriaLabel, isKeyboardEvent
|
3320 |
|
3321 |
-
// EXTERNAL MODULE: ./node_modules/@
|
3322 |
-
var
|
3323 |
|
3324 |
-
// EXTERNAL MODULE:
|
3325 |
-
var
|
3326 |
|
3327 |
// EXTERNAL MODULE: external "lodash"
|
3328 |
var external_lodash_ = __webpack_require__(2);
|
3329 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3330 |
// EXTERNAL MODULE: external {"this":["wp","i18n"]}
|
3331 |
var external_this_wp_i18n_ = __webpack_require__(3);
|
3332 |
|
3333 |
-
//
|
3334 |
-
|
3335 |
-
|
3336 |
-
*/
|
3337 |
|
3338 |
-
|
3339 |
-
|
3340 |
-
*
|
3341 |
-
* @param {Object} _window window object by default; used for DI testing.
|
3342 |
-
*
|
3343 |
-
* @return {boolean} True if MacOS; false otherwise.
|
3344 |
-
*/
|
3345 |
|
3346 |
-
|
3347 |
-
|
3348 |
|
3349 |
-
|
3350 |
-
|
3351 |
-
}
|
3352 |
-
//# sourceMappingURL=platform.js.map
|
3353 |
-
// CONCATENATED MODULE: ./node_modules/@wordpress/keycodes/build-module/index.js
|
3354 |
|
|
|
|
|
3355 |
|
|
|
|
|
3356 |
|
3357 |
-
|
3358 |
-
|
3359 |
-
|
3360 |
-
|
3361 |
-
|
3362 |
-
|
3363 |
-
|
3364 |
-
|
3365 |
-
|
3366 |
-
|
|
|
|
|
|
|
|
|
3367 |
|
|
|
3368 |
/**
|
3369 |
* External dependencies
|
3370 |
*/
|
3371 |
|
3372 |
-
|
3373 |
-
|
3374 |
-
|
|
|
3375 |
|
|
|
|
|
3376 |
|
3377 |
-
|
3378 |
-
* Internal dependencies
|
3379 |
-
*/
|
3380 |
|
3381 |
|
3382 |
/**
|
3383 |
-
*
|
3384 |
*/
|
3385 |
|
3386 |
-
/**
|
3387 |
-
* An object of handler functions for each of the possible modifier
|
3388 |
-
* combinations. A handler will return a value for a given key.
|
3389 |
-
*
|
3390 |
-
* @typedef {Record<WPKeycodeModifier, (key:string)=>any>} WPKeycodeHandlerByModifier
|
3391 |
-
*/
|
3392 |
|
3393 |
-
/**
|
3394 |
-
* Keycode for BACKSPACE key.
|
3395 |
-
*/
|
3396 |
|
3397 |
-
var BACKSPACE = 8;
|
3398 |
-
/**
|
3399 |
-
* Keycode for TAB key.
|
3400 |
-
*/
|
3401 |
|
3402 |
-
var TAB = 9;
|
3403 |
-
/**
|
3404 |
-
* Keycode for ENTER key.
|
3405 |
-
*/
|
3406 |
|
3407 |
-
var ENTER = 13;
|
3408 |
-
/**
|
3409 |
-
* Keycode for ESCAPE key.
|
3410 |
-
*/
|
3411 |
|
3412 |
-
var ESCAPE = 27;
|
3413 |
-
/**
|
3414 |
-
* Keycode for SPACE key.
|
3415 |
-
*/
|
3416 |
|
3417 |
-
var SPACE = 32;
|
3418 |
/**
|
3419 |
-
*
|
3420 |
*/
|
3421 |
|
3422 |
-
var LEFT = 37;
|
3423 |
-
/**
|
3424 |
-
* Keycode for UP key.
|
3425 |
-
*/
|
3426 |
|
3427 |
-
var UP = 38;
|
3428 |
-
/**
|
3429 |
-
* Keycode for RIGHT key.
|
3430 |
-
*/
|
3431 |
|
3432 |
-
var
|
3433 |
-
|
3434 |
-
|
3435 |
-
|
|
|
|
|
|
|
|
|
|
|
3436 |
|
3437 |
-
var
|
3438 |
-
|
3439 |
-
|
3440 |
-
*/
|
3441 |
|
3442 |
-
|
3443 |
-
|
3444 |
-
|
3445 |
-
*/
|
3446 |
|
3447 |
-
var
|
3448 |
-
|
3449 |
-
|
3450 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3451 |
|
3452 |
-
var
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3453 |
/**
|
3454 |
-
*
|
3455 |
*/
|
3456 |
|
3457 |
-
var
|
3458 |
/**
|
3459 |
-
*
|
3460 |
-
*/
|
3461 |
-
|
3462 |
-
var COMMAND = 'meta';
|
3463 |
-
/**
|
3464 |
-
* Keycode for SHIFT key.
|
3465 |
-
*/
|
3466 |
-
|
3467 |
-
var SHIFT = 'shift';
|
3468 |
-
/**
|
3469 |
-
* Keycode for ZERO key.
|
3470 |
-
*/
|
3471 |
-
|
3472 |
-
var ZERO = 48;
|
3473 |
-
/**
|
3474 |
-
* Object that contains functions that return the available modifier
|
3475 |
-
* depending on platform.
|
3476 |
-
*
|
3477 |
-
* - `primary`: takes a isApple function as a parameter.
|
3478 |
-
* - `primaryShift`: takes a isApple function as a parameter.
|
3479 |
-
* - `primaryAlt`: takes a isApple function as a parameter.
|
3480 |
-
* - `secondary`: takes a isApple function as a parameter.
|
3481 |
-
* - `access`: takes a isApple function as a parameter.
|
3482 |
-
* - `ctrl`
|
3483 |
-
* - `alt`
|
3484 |
-
* - `ctrlShift`
|
3485 |
-
* - `shift`
|
3486 |
-
* - `shiftAlt`
|
3487 |
-
*/
|
3488 |
-
|
3489 |
-
var modifiers = {
|
3490 |
-
primary: function primary(_isApple) {
|
3491 |
-
return _isApple() ? [COMMAND] : [CTRL];
|
3492 |
-
},
|
3493 |
-
primaryShift: function primaryShift(_isApple) {
|
3494 |
-
return _isApple() ? [SHIFT, COMMAND] : [CTRL, SHIFT];
|
3495 |
-
},
|
3496 |
-
primaryAlt: function primaryAlt(_isApple) {
|
3497 |
-
return _isApple() ? [ALT, COMMAND] : [CTRL, ALT];
|
3498 |
-
},
|
3499 |
-
secondary: function secondary(_isApple) {
|
3500 |
-
return _isApple() ? [SHIFT, ALT, COMMAND] : [CTRL, SHIFT, ALT];
|
3501 |
-
},
|
3502 |
-
access: function access(_isApple) {
|
3503 |
-
return _isApple() ? [CTRL, ALT] : [SHIFT, ALT];
|
3504 |
-
},
|
3505 |
-
ctrl: function ctrl() {
|
3506 |
-
return [CTRL];
|
3507 |
-
},
|
3508 |
-
alt: function alt() {
|
3509 |
-
return [ALT];
|
3510 |
-
},
|
3511 |
-
ctrlShift: function ctrlShift() {
|
3512 |
-
return [CTRL, SHIFT];
|
3513 |
-
},
|
3514 |
-
shift: function shift() {
|
3515 |
-
return [SHIFT];
|
3516 |
-
},
|
3517 |
-
shiftAlt: function shiftAlt() {
|
3518 |
-
return [SHIFT, ALT];
|
3519 |
-
}
|
3520 |
-
};
|
3521 |
-
/**
|
3522 |
-
* An object that contains functions to get raw shortcuts.
|
3523 |
-
* E.g. rawShortcut.primary( 'm' ) will return 'meta+m' on Mac.
|
3524 |
-
* These are intended for user with the KeyboardShortcuts component or TinyMCE.
|
3525 |
-
*
|
3526 |
-
* @type {WPKeycodeHandlerByModifier} Keyed map of functions to raw shortcuts.
|
3527 |
-
*/
|
3528 |
-
|
3529 |
-
var rawShortcut = Object(external_lodash_["mapValues"])(modifiers, function (modifier) {
|
3530 |
-
return function (character) {
|
3531 |
-
var _isApple = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : isAppleOS;
|
3532 |
-
|
3533 |
-
return [].concat(Object(toConsumableArray["a" /* default */])(modifier(_isApple)), [character.toLowerCase()]).join('+');
|
3534 |
-
};
|
3535 |
-
});
|
3536 |
-
/**
|
3537 |
-
* Return an array of the parts of a keyboard shortcut chord for display
|
3538 |
-
* E.g displayShortcutList.primary( 'm' ) will return [ '⌘', 'M' ] on Mac.
|
3539 |
-
*
|
3540 |
-
* @type {WPKeycodeHandlerByModifier} Keyed map of functions to shortcut
|
3541 |
-
* sequences.
|
3542 |
-
*/
|
3543 |
-
|
3544 |
-
var displayShortcutList = Object(external_lodash_["mapValues"])(modifiers, function (modifier) {
|
3545 |
-
return function (character) {
|
3546 |
-
var _replacementKeyMap;
|
3547 |
-
|
3548 |
-
var _isApple = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : isAppleOS;
|
3549 |
-
|
3550 |
-
var isApple = _isApple();
|
3551 |
-
|
3552 |
-
var replacementKeyMap = (_replacementKeyMap = {}, Object(defineProperty["a" /* default */])(_replacementKeyMap, ALT, isApple ? '⌥' : 'Alt'), Object(defineProperty["a" /* default */])(_replacementKeyMap, CTRL, isApple ? '^' : 'Ctrl'), Object(defineProperty["a" /* default */])(_replacementKeyMap, COMMAND, '⌘'), Object(defineProperty["a" /* default */])(_replacementKeyMap, SHIFT, isApple ? '⇧' : 'Shift'), _replacementKeyMap);
|
3553 |
-
var modifierKeys = modifier(_isApple).reduce(function (accumulator, key) {
|
3554 |
-
var replacementKey = Object(external_lodash_["get"])(replacementKeyMap, key, key); // If on the Mac, adhere to platform convention and don't show plus between keys.
|
3555 |
-
|
3556 |
-
if (isApple) {
|
3557 |
-
return [].concat(Object(toConsumableArray["a" /* default */])(accumulator), [replacementKey]);
|
3558 |
-
}
|
3559 |
-
|
3560 |
-
return [].concat(Object(toConsumableArray["a" /* default */])(accumulator), [replacementKey, '+']);
|
3561 |
-
}, []);
|
3562 |
-
var capitalizedCharacter = Object(external_lodash_["capitalize"])(character);
|
3563 |
-
return [].concat(Object(toConsumableArray["a" /* default */])(modifierKeys), [capitalizedCharacter]);
|
3564 |
-
};
|
3565 |
-
});
|
3566 |
-
/**
|
3567 |
-
* An object that contains functions to display shortcuts.
|
3568 |
-
* E.g. displayShortcut.primary( 'm' ) will return '⌘M' on Mac.
|
3569 |
-
*
|
3570 |
-
* @type {WPKeycodeHandlerByModifier} Keyed map of functions to display
|
3571 |
-
* shortcuts.
|
3572 |
-
*/
|
3573 |
-
|
3574 |
-
var displayShortcut = Object(external_lodash_["mapValues"])(displayShortcutList, function (shortcutList) {
|
3575 |
-
return function (character) {
|
3576 |
-
var _isApple = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : isAppleOS;
|
3577 |
-
|
3578 |
-
return shortcutList(character, _isApple).join('');
|
3579 |
-
};
|
3580 |
-
});
|
3581 |
-
/**
|
3582 |
-
* An object that contains functions to return an aria label for a keyboard shortcut.
|
3583 |
-
* E.g. shortcutAriaLabel.primary( '.' ) will return 'Command + Period' on Mac.
|
3584 |
-
*
|
3585 |
-
* @type {WPKeycodeHandlerByModifier} Keyed map of functions to shortcut ARIA
|
3586 |
-
* labels.
|
3587 |
-
*/
|
3588 |
-
|
3589 |
-
var shortcutAriaLabel = Object(external_lodash_["mapValues"])(modifiers, function (modifier) {
|
3590 |
-
return function (character) {
|
3591 |
-
var _replacementKeyMap2;
|
3592 |
-
|
3593 |
-
var _isApple = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : isAppleOS;
|
3594 |
-
|
3595 |
-
var isApple = _isApple();
|
3596 |
-
|
3597 |
-
var replacementKeyMap = (_replacementKeyMap2 = {}, Object(defineProperty["a" /* default */])(_replacementKeyMap2, SHIFT, 'Shift'), Object(defineProperty["a" /* default */])(_replacementKeyMap2, COMMAND, isApple ? 'Command' : 'Control'), Object(defineProperty["a" /* default */])(_replacementKeyMap2, CTRL, 'Control'), Object(defineProperty["a" /* default */])(_replacementKeyMap2, ALT, isApple ? 'Option' : 'Alt'), Object(defineProperty["a" /* default */])(_replacementKeyMap2, ',', Object(external_this_wp_i18n_["__"])('Comma')), Object(defineProperty["a" /* default */])(_replacementKeyMap2, '.', Object(external_this_wp_i18n_["__"])('Period')), Object(defineProperty["a" /* default */])(_replacementKeyMap2, '`', Object(external_this_wp_i18n_["__"])('Backtick')), _replacementKeyMap2);
|
3598 |
-
return [].concat(Object(toConsumableArray["a" /* default */])(modifier(_isApple)), [character]).map(function (key) {
|
3599 |
-
return Object(external_lodash_["capitalize"])(Object(external_lodash_["get"])(replacementKeyMap, key, key));
|
3600 |
-
}).join(isApple ? ' ' : ' + ');
|
3601 |
-
};
|
3602 |
-
});
|
3603 |
-
/**
|
3604 |
-
* An object that contains functions to check if a keyboard event matches a
|
3605 |
-
* predefined shortcut combination.
|
3606 |
-
* E.g. isKeyboardEvent.primary( event, 'm' ) will return true if the event
|
3607 |
-
* signals pressing ⌘M.
|
3608 |
-
*
|
3609 |
-
* @type {WPKeycodeHandlerByModifier} Keyed map of functions to match events.
|
3610 |
-
*/
|
3611 |
-
|
3612 |
-
var isKeyboardEvent = Object(external_lodash_["mapValues"])(modifiers, function (getModifiers) {
|
3613 |
-
return function (event, character) {
|
3614 |
-
var _isApple = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : isAppleOS;
|
3615 |
-
|
3616 |
-
var mods = getModifiers(_isApple);
|
3617 |
-
|
3618 |
-
if (!mods.every(function (key) {
|
3619 |
-
return event["".concat(key, "Key")];
|
3620 |
-
})) {
|
3621 |
-
return false;
|
3622 |
-
}
|
3623 |
-
|
3624 |
-
if (!character) {
|
3625 |
-
return Object(external_lodash_["includes"])(mods, event.key.toLowerCase());
|
3626 |
-
}
|
3627 |
-
|
3628 |
-
return event.key === character;
|
3629 |
-
};
|
3630 |
-
});
|
3631 |
-
//# sourceMappingURL=index.js.map
|
3632 |
-
|
3633 |
-
/***/ }),
|
3634 |
-
|
3635 |
-
/***/ 667:
|
3636 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
3637 |
-
|
3638 |
-
"use strict";
|
3639 |
-
// ESM COMPAT FLAG
|
3640 |
-
__webpack_require__.r(__webpack_exports__);
|
3641 |
-
|
3642 |
-
// EXTERNAL MODULE: external {"this":["wp","element"]}
|
3643 |
-
var external_this_wp_element_ = __webpack_require__(0);
|
3644 |
-
|
3645 |
-
// EXTERNAL MODULE: ./node_modules/@wordpress/compose/build-module/higher-order/compose.js
|
3646 |
-
var compose = __webpack_require__(181);
|
3647 |
-
|
3648 |
-
// EXTERNAL MODULE: external {"this":["wp","data"]}
|
3649 |
-
var external_this_wp_data_ = __webpack_require__(25);
|
3650 |
-
|
3651 |
-
// EXTERNAL MODULE: external "lodash"
|
3652 |
-
var external_lodash_ = __webpack_require__(2);
|
3653 |
-
|
3654 |
-
// EXTERNAL MODULE: ./client/settings/index.js
|
3655 |
-
var settings = __webpack_require__(35);
|
3656 |
-
|
3657 |
-
// EXTERNAL MODULE: external {"this":["wc","data"]}
|
3658 |
-
var external_this_wc_data_ = __webpack_require__(34);
|
3659 |
-
|
3660 |
-
// EXTERNAL MODULE: external {"this":["wc","navigation"]}
|
3661 |
-
var external_this_wc_navigation_ = __webpack_require__(29);
|
3662 |
-
|
3663 |
-
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/slicedToArray.js
|
3664 |
-
var slicedToArray = __webpack_require__(31);
|
3665 |
-
var slicedToArray_default = /*#__PURE__*/__webpack_require__.n(slicedToArray);
|
3666 |
-
|
3667 |
-
// EXTERNAL MODULE: ./node_modules/classnames/index.js
|
3668 |
-
var classnames = __webpack_require__(4);
|
3669 |
-
var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames);
|
3670 |
-
|
3671 |
-
// EXTERNAL MODULE: ./node_modules/prop-types/index.js
|
3672 |
-
var prop_types = __webpack_require__(1);
|
3673 |
-
var prop_types_default = /*#__PURE__*/__webpack_require__.n(prop_types);
|
3674 |
-
|
3675 |
-
// EXTERNAL MODULE: external {"this":["wp","i18n"]}
|
3676 |
-
var external_this_wp_i18n_ = __webpack_require__(3);
|
3677 |
-
|
3678 |
-
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/objectWithoutProperties.js
|
3679 |
-
var objectWithoutProperties = __webpack_require__(58);
|
3680 |
-
var objectWithoutProperties_default = /*#__PURE__*/__webpack_require__.n(objectWithoutProperties);
|
3681 |
-
|
3682 |
-
// EXTERNAL MODULE: ./node_modules/@wordpress/components/build-module/card/index.js
|
3683 |
-
var card = __webpack_require__(532);
|
3684 |
-
|
3685 |
-
// EXTERNAL MODULE: ./node_modules/@wordpress/components/build-module/card/header.js
|
3686 |
-
var header = __webpack_require__(364);
|
3687 |
-
|
3688 |
-
// EXTERNAL MODULE: ./node_modules/@wordpress/components/build-module/text/index.js + 3 modules
|
3689 |
-
var build_module_text = __webpack_require__(142);
|
3690 |
-
|
3691 |
-
// EXTERNAL MODULE: ./node_modules/@wordpress/components/build-module/card/body.js
|
3692 |
-
var card_body = __webpack_require__(533);
|
3693 |
-
|
3694 |
-
// EXTERNAL MODULE: ./node_modules/@wordpress/components/build-module/tab-panel/index.js
|
3695 |
-
var tab_panel = __webpack_require__(621);
|
3696 |
-
|
3697 |
-
// EXTERNAL MODULE: ./node_modules/@wordpress/components/build-module/card/footer.js
|
3698 |
-
var footer = __webpack_require__(622);
|
3699 |
-
|
3700 |
-
// EXTERNAL MODULE: external {"this":["wc","components"]}
|
3701 |
-
var external_this_wc_components_ = __webpack_require__(74);
|
3702 |
-
|
3703 |
-
// EXTERNAL MODULE: external {"this":["wc","tracks"]}
|
3704 |
-
var external_this_wc_tracks_ = __webpack_require__(50);
|
3705 |
-
|
3706 |
-
// EXTERNAL MODULE: ./client/homescreen/stats-overview/style.scss
|
3707 |
-
var style = __webpack_require__(620);
|
3708 |
-
|
3709 |
-
// EXTERNAL MODULE: external {"this":["wp","hooks"]}
|
3710 |
-
var external_this_wp_hooks_ = __webpack_require__(51);
|
3711 |
-
|
3712 |
-
// CONCATENATED MODULE: ./client/homescreen/stats-overview/defaults.js
|
3713 |
-
/**
|
3714 |
-
* External dependencies
|
3715 |
-
*/
|
3716 |
-
|
3717 |
-
var DEFAULT_STATS = Object(external_this_wp_hooks_["applyFilters"])('woocommerce_admin_homepage_default_stats', ['revenue/total_sales', 'revenue/net_revenue', 'orders/orders_count', 'products/items_sold', 'jetpack/stats/visitors', 'jetpack/stats/views']);
|
3718 |
-
var DEFAULT_HIDDEN_STATS = ['revenue/net_revenue', 'products/items_sold'];
|
3719 |
-
// EXTERNAL MODULE: ./client/lib/currency-context.js
|
3720 |
-
var currency_context = __webpack_require__(574);
|
3721 |
-
|
3722 |
-
// EXTERNAL MODULE: ./client/dashboard/store-performance/utils.js
|
3723 |
-
var utils = __webpack_require__(592);
|
3724 |
-
|
3725 |
-
// CONCATENATED MODULE: ./client/homescreen/stats-overview/stats-list.js
|
3726 |
-
|
3727 |
-
|
3728 |
-
/**
|
3729 |
-
* External dependencies
|
3730 |
-
*/
|
3731 |
-
|
3732 |
-
|
3733 |
-
|
3734 |
-
|
3735 |
-
|
3736 |
-
|
3737 |
-
|
3738 |
-
/**
|
3739 |
-
* Internal dependencies
|
3740 |
-
*/
|
3741 |
-
|
3742 |
-
|
3743 |
-
|
3744 |
-
var stats_list_StatsList = function StatsList(_ref) {
|
3745 |
-
var stats = _ref.stats,
|
3746 |
-
primaryData = _ref.primaryData,
|
3747 |
-
secondaryData = _ref.secondaryData,
|
3748 |
-
primaryRequesting = _ref.primaryRequesting,
|
3749 |
-
secondaryRequesting = _ref.secondaryRequesting,
|
3750 |
-
primaryError = _ref.primaryError,
|
3751 |
-
secondaryError = _ref.secondaryError,
|
3752 |
-
query = _ref.query;
|
3753 |
-
|
3754 |
-
var _useContext = Object(external_this_wp_element_["useContext"])(currency_context["a" /* CurrencyContext */]),
|
3755 |
-
formatAmount = _useContext.formatAmount,
|
3756 |
-
getCurrencyConfig = _useContext.getCurrencyConfig;
|
3757 |
-
|
3758 |
-
if (primaryError || secondaryError) {
|
3759 |
-
return null;
|
3760 |
-
}
|
3761 |
-
|
3762 |
-
var persistedQuery = Object(external_this_wc_navigation_["getPersistedQuery"])(query);
|
3763 |
-
var currency = getCurrencyConfig();
|
3764 |
-
return Object(external_this_wp_element_["createElement"])("ul", {
|
3765 |
-
className: classnames_default()('woocommerce-stats-overview__stats', {
|
3766 |
-
'is-even': stats.length % 2 === 0
|
3767 |
-
})
|
3768 |
-
}, stats.map(function (item) {
|
3769 |
-
if (primaryRequesting || secondaryRequesting) {
|
3770 |
-
return Object(external_this_wp_element_["createElement"])(external_this_wc_components_["SummaryNumberPlaceholder"], {
|
3771 |
-
key: item.stat
|
3772 |
-
});
|
3773 |
-
}
|
3774 |
-
|
3775 |
-
var _getIndicatorValues = Object(utils["b" /* getIndicatorValues */])({
|
3776 |
-
indicator: item,
|
3777 |
-
primaryData: primaryData,
|
3778 |
-
secondaryData: secondaryData,
|
3779 |
-
currency: currency,
|
3780 |
-
formatAmount: formatAmount,
|
3781 |
-
persistedQuery: persistedQuery
|
3782 |
-
}),
|
3783 |
-
primaryValue = _getIndicatorValues.primaryValue,
|
3784 |
-
secondaryValue = _getIndicatorValues.secondaryValue,
|
3785 |
-
delta = _getIndicatorValues.delta,
|
3786 |
-
reportUrl = _getIndicatorValues.reportUrl,
|
3787 |
-
reportUrlType = _getIndicatorValues.reportUrlType;
|
3788 |
-
|
3789 |
-
return Object(external_this_wp_element_["createElement"])(external_this_wc_components_["SummaryNumber"], {
|
3790 |
-
isHomescreen: true,
|
3791 |
-
key: item.stat,
|
3792 |
-
href: reportUrl,
|
3793 |
-
hrefType: reportUrlType,
|
3794 |
-
label: item.label,
|
3795 |
-
value: primaryValue,
|
3796 |
-
prevLabel: Object(external_this_wp_i18n_["__"])('Previous Period:', 'woocommerce-admin'),
|
3797 |
-
prevValue: secondaryValue,
|
3798 |
-
delta: delta,
|
3799 |
-
onLinkClickCallback: function onLinkClickCallback() {
|
3800 |
-
Object(external_this_wc_tracks_["recordEvent"])('statsoverview_indicators_click', {
|
3801 |
-
key: item.stat
|
3802 |
-
});
|
3803 |
-
}
|
3804 |
-
});
|
3805 |
-
}));
|
3806 |
-
};
|
3807 |
-
/* harmony default export */ var stats_list = (Object(external_this_wp_data_["withSelect"])(function (select, _ref2) {
|
3808 |
-
var stats = _ref2.stats,
|
3809 |
-
query = _ref2.query;
|
3810 |
-
|
3811 |
-
if (stats.length === 0) {
|
3812 |
-
return;
|
3813 |
-
}
|
3814 |
-
|
3815 |
-
return Object(utils["a" /* getIndicatorData */])(select, stats, query);
|
3816 |
-
})(stats_list_StatsList));
|
3817 |
-
// EXTERNAL MODULE: ./node_modules/@wordpress/components/build-module/button/index.js
|
3818 |
-
var build_module_button = __webpack_require__(67);
|
3819 |
-
|
3820 |
-
// EXTERNAL MODULE: ./node_modules/@babel/runtime/regenerator/index.js
|
3821 |
-
var regenerator = __webpack_require__(14);
|
3822 |
-
var regenerator_default = /*#__PURE__*/__webpack_require__.n(regenerator);
|
3823 |
-
|
3824 |
-
// EXTERNAL MODULE: external {"this":["wp","dataControls"]}
|
3825 |
-
var external_this_wp_dataControls_ = __webpack_require__(27);
|
3826 |
-
|
3827 |
-
// CONCATENATED MODULE: ./packages/data/src/plugins/constants.js
|
3828 |
-
/**
|
3829 |
-
* External dependencies
|
3830 |
-
*/
|
3831 |
-
|
3832 |
-
var STORE_NAME = 'wc/admin/plugins';
|
3833 |
-
/**
|
3834 |
-
* Plugin slugs and names as key/value pairs.
|
3835 |
*/
|
3836 |
|
3837 |
var pluginNames = {
|
@@ -5662,7 +5330,7 @@ var assertThisInitialized_default = /*#__PURE__*/__webpack_require__.n(assertThi
|
|
5662 |
var base_control = __webpack_require__(581);
|
5663 |
|
5664 |
// EXTERNAL MODULE: ./node_modules/@wordpress/keycodes/build-module/index.js + 1 modules
|
5665 |
-
var keycodes_build_module = __webpack_require__(
|
5666 |
|
5667 |
// EXTERNAL MODULE: external "moment"
|
5668 |
var external_moment_ = __webpack_require__(19);
|
@@ -7099,265 +6767,597 @@ var store_management_links_StoreManagementLinks = function StoreManagementLinks(
|
|
7099 |
* External dependencies
|
7100 |
*/
|
7101 |
|
7102 |
-
var column_Column = function Column(_ref) {
|
7103 |
-
var children = _ref.children,
|
7104 |
-
_ref$shouldStick = _ref.shouldStick,
|
7105 |
-
shouldStick = _ref$shouldStick === void 0 ? false : _ref$shouldStick;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7106 |
|
7107 |
-
var _useState = Object(external_this_wp_element_["useState"])(false),
|
7108 |
-
_useState2 = slicedToArray_default()(_useState, 2),
|
7109 |
-
isContentStuck = _useState2[0],
|
7110 |
-
setIsContentStuck = _useState2[1];
|
7111 |
|
7112 |
-
var content = Object(external_this_wp_element_["useRef"])(null);
|
7113 |
-
var initialTop = Object(external_this_wp_element_["useRef"])(null);
|
7114 |
-
var maybeStickContent = Object(external_this_wp_element_["useCallback"])(function () {
|
7115 |
-
if (!content.current) {
|
7116 |
-
return;
|
7117 |
-
}
|
7118 |
|
7119 |
-
var _content$current$getB = content.current.getBoundingClientRect(),
|
7120 |
-
bottom = _content$current$getB.bottom,
|
7121 |
-
top = _content$current$getB.top;
|
7122 |
|
7123 |
-
if (initialTop.current === null) {
|
7124 |
-
initialTop.current = top;
|
7125 |
-
}
|
7126 |
|
7127 |
-
|
|
|
|
|
7128 |
|
7129 |
-
if (top === initialTop.current) {
|
7130 |
-
setIsContentStuck(shouldBeSticky);
|
7131 |
-
}
|
7132 |
-
}, []);
|
7133 |
-
Object(external_this_wp_element_["useLayoutEffect"])(function () {
|
7134 |
-
if (!shouldStick) {
|
7135 |
-
return;
|
7136 |
-
}
|
7137 |
|
7138 |
-
|
7139 |
-
|
7140 |
-
|
7141 |
-
|
7142 |
-
|
7143 |
-
|
7144 |
-
|
7145 |
-
|
7146 |
-
|
7147 |
-
|
7148 |
-
|
7149 |
-
|
7150 |
-
|
7151 |
-
|
7152 |
-
|
|
|
7153 |
};
|
7154 |
-
// CONCATENATED MODULE: ./client/homescreen/layout.js
|
7155 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7156 |
|
|
|
|
|
7157 |
|
|
|
7158 |
/**
|
7159 |
* External dependencies
|
7160 |
*/
|
7161 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7162 |
|
|
|
|
|
7163 |
|
7164 |
-
|
|
|
|
|
|
|
|
|
7165 |
|
7166 |
|
7167 |
|
7168 |
/**
|
7169 |
-
*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7170 |
*/
|
7171 |
|
|
|
|
|
|
|
7172 |
|
|
|
|
|
|
|
7173 |
|
7174 |
|
|
|
|
|
|
|
7175 |
|
7176 |
|
|
|
|
|
|
|
7177 |
|
|
|
|
|
|
|
|
|
|
|
|
|
7178 |
|
|
|
|
|
|
|
7179 |
|
|
|
|
|
|
|
|
|
7180 |
|
|
|
|
|
|
|
|
|
7181 |
|
7182 |
-
var
|
7183 |
-
|
7184 |
-
|
7185 |
-
|
7186 |
-
var defaultHomescreenLayout = _ref.defaultHomescreenLayout,
|
7187 |
-
isBatchUpdating = _ref.isBatchUpdating,
|
7188 |
-
query = _ref.query,
|
7189 |
-
requestingTaskList = _ref.requestingTaskList,
|
7190 |
-
taskListHidden = _ref.taskListHidden,
|
7191 |
-
shouldShowWelcomeModal = _ref.shouldShowWelcomeModal,
|
7192 |
-
updateOptions = _ref.updateOptions;
|
7193 |
-
var userPrefs = Object(external_this_wc_data_["useUserPreferences"])();
|
7194 |
-
var twoColumns = (userPrefs.homepage_layout || defaultHomescreenLayout) === 'two_columns';
|
7195 |
|
7196 |
-
|
7197 |
-
|
7198 |
-
|
7199 |
-
|
7200 |
|
7201 |
-
|
7202 |
-
|
|
|
|
|
7203 |
|
7204 |
-
|
7205 |
-
|
7206 |
-
|
|
|
7207 |
|
7208 |
-
|
7209 |
-
|
7210 |
-
|
7211 |
-
|
7212 |
-
Object(external_this_wp_element_["useLayoutEffect"])(function () {
|
7213 |
-
maybeToggleColumns();
|
7214 |
-
window.addEventListener('resize', maybeToggleColumns);
|
7215 |
-
return function () {
|
7216 |
-
window.removeEventListener('resize', maybeToggleColumns);
|
7217 |
-
};
|
7218 |
-
}, [maybeToggleColumns]);
|
7219 |
-
var shouldStickColumns = isWideViewport.current && twoColumns;
|
7220 |
|
7221 |
-
|
7222 |
-
|
7223 |
-
|
7224 |
-
|
7225 |
-
className: "your-store-today",
|
7226 |
-
title: Object(external_this_wp_i18n_["__"])('Your store today', 'woocommerce-admin'),
|
7227 |
-
subtitle: Object(external_this_wp_i18n_["__"])("To do's, tips, and insights for your business", 'woocommerce-admin')
|
7228 |
-
}), Object(external_this_wp_element_["createElement"])(activity_panel_ActivityPanel, null), isTaskListEnabled && renderTaskList(), !isTaskListEnabled && shouldStickColumns && Object(external_this_wp_element_["createElement"])(store_management_links_StoreManagementLinks, null)), Object(external_this_wp_element_["createElement"])(column_Column, {
|
7229 |
-
shouldStick: shouldStickColumns
|
7230 |
-
}, Object(external_this_wp_element_["createElement"])(stats_overview, null), Object(external_this_wp_element_["createElement"])(inbox_panel["default"], null), !isTaskListEnabled && !shouldStickColumns && Object(external_this_wp_element_["createElement"])(store_management_links_StoreManagementLinks, null)));
|
7231 |
-
};
|
7232 |
|
7233 |
-
|
7234 |
-
|
7235 |
-
|
7236 |
-
|
7237 |
|
7238 |
-
|
7239 |
-
|
7240 |
-
|
7241 |
-
|
7242 |
-
}));
|
7243 |
-
};
|
7244 |
|
7245 |
-
|
7246 |
-
|
7247 |
-
|
7248 |
-
|
7249 |
-
}, isDashboardShown ? renderColumns() : isTaskListEnabled && renderTaskList(), shouldShowWelcomeModal && Object(external_this_wp_element_["createElement"])(welcome_modal_WelcomeModal, {
|
7250 |
-
onClose: function onClose() {
|
7251 |
-
updateOptions({
|
7252 |
-
woocommerce_task_list_welcome_modal_dismissed: 'yes'
|
7253 |
-
});
|
7254 |
-
}
|
7255 |
-
}));
|
7256 |
-
};
|
7257 |
-
layout_Layout.propTypes = {
|
7258 |
-
/**
|
7259 |
-
* If the task list option is being fetched.
|
7260 |
-
*/
|
7261 |
-
requestingTaskList: prop_types_default.a.bool.isRequired,
|
7262 |
|
7263 |
-
|
7264 |
-
|
7265 |
-
|
7266 |
-
|
7267 |
|
7268 |
-
|
7269 |
-
|
7270 |
-
|
7271 |
-
|
7272 |
|
7273 |
-
|
7274 |
-
|
7275 |
-
|
7276 |
-
|
7277 |
|
7278 |
-
|
7279 |
-
|
7280 |
-
|
7281 |
-
|
7282 |
|
7283 |
-
|
7284 |
-
|
7285 |
-
|
7286 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7287 |
};
|
7288 |
-
|
7289 |
-
|
7290 |
-
|
|
|
|
|
|
|
|
|
7291 |
|
7292 |
-
|
7293 |
-
|
7294 |
-
|
7295 |
-
hasFinishedResolution = _select2.hasFinishedResolution;
|
7296 |
|
7297 |
-
|
7298 |
-
var welcomeModalDismissedHasResolved = hasFinishedResolution('getOption', ['woocommerce_task_list_welcome_modal_dismissed']);
|
7299 |
-
var shouldShowWelcomeModal = welcomeModalDismissedHasResolved && !welcomeModalDismissed;
|
7300 |
-
var defaultHomescreenLayout = getOption('woocommerce_default_homepage_layout') || 'single_column';
|
7301 |
-
return {
|
7302 |
-
defaultHomescreenLayout: defaultHomescreenLayout,
|
7303 |
-
isBatchUpdating: isNotesRequesting('batchUpdateNotes'),
|
7304 |
-
shouldShowWelcomeModal: shouldShowWelcomeModal,
|
7305 |
-
taskListHidden: getOption('woocommerce_task_list_hidden') === 'yes' && getOption('woocommerce_extended_task_list_hidden') !== 'no',
|
7306 |
-
requestingTaskList: isResolving('getOption', ['woocommerce_task_list_complete']) || isResolving('getOption', ['woocommerce_task_list_hidden']) || isResolving('getOption', ['woocommerce_extended_task_list_hidden'])
|
7307 |
-
};
|
7308 |
-
}), Object(external_this_wp_data_["withDispatch"])(function (dispatch) {
|
7309 |
-
return {
|
7310 |
-
updateOptions: dispatch(external_this_wc_data_["OPTIONS_STORE_NAME"]).updateOptions
|
7311 |
};
|
7312 |
-
})
|
7313 |
-
// CONCATENATED MODULE: ./client/homescreen/index.js
|
7314 |
-
|
7315 |
-
|
7316 |
/**
|
7317 |
-
*
|
|
|
|
|
|
|
|
|
7318 |
*/
|
7319 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7320 |
|
|
|
|
|
|
|
7321 |
|
|
|
|
|
|
|
7322 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7323 |
|
|
|
|
|
|
|
7324 |
|
|
|
|
|
|
|
7325 |
/**
|
7326 |
-
*
|
|
|
|
|
|
|
|
|
7327 |
*/
|
7328 |
|
|
|
|
|
|
|
7329 |
|
|
|
7330 |
|
7331 |
-
var
|
7332 |
-
var profileItems = _ref.profileItems,
|
7333 |
-
query = _ref.query;
|
7334 |
|
7335 |
-
|
7336 |
-
profilerCompleted = _ref2.completed,
|
7337 |
-
profilerSkipped = _ref2.skipped;
|
328 |
var external_this_wc_components_ = __webpack_require__(74);
|
329 |
|
330 |
// EXTERNAL MODULE: ./node_modules/@wordpress/components/build-module/button/index.js
|
331 |
+
var build_module_button = __webpack_require__(68);
|
332 |
|
333 |
// EXTERNAL MODULE: ./client/header/activity-panel/activity-card/style.scss
|
334 |
var style = __webpack_require__(593);
|
1171 |
var dropdown = __webpack_require__(339);
|
1172 |
|
1173 |
// EXTERNAL MODULE: ./node_modules/@wordpress/components/build-module/button/index.js
|
1174 |
+
var build_module_button = __webpack_require__(68);
|
1175 |
|
1176 |
// EXTERNAL MODULE: ./node_modules/@wordpress/components/build-module/modal/index.js + 3 modules
|
1177 |
var modal = __webpack_require__(546);
|
1940 |
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_6__);
|
1941 |
/* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(147);
|
1942 |
/* harmony import */ var _navigable_container__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(573);
|
1943 |
+
/* harmony import */ var _button__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(68);
|
1944 |
|
1945 |
|
1946 |
|
3300 |
|
3301 |
/***/ }),
|
3302 |
|
3303 |
+
/***/ 667:
|
3304 |
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
3305 |
|
3306 |
"use strict";
|
3307 |
+
// ESM COMPAT FLAG
|
3308 |
+
__webpack_require__.r(__webpack_exports__);
|
3309 |
|
3310 |
+
// EXTERNAL MODULE: external {"this":["wp","element"]}
|
3311 |
+
var external_this_wp_element_ = __webpack_require__(0);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3312 |
|
3313 |
+
// EXTERNAL MODULE: ./node_modules/@wordpress/compose/build-module/higher-order/compose.js
|
3314 |
+
var compose = __webpack_require__(181);
|
3315 |
|
3316 |
+
// EXTERNAL MODULE: external {"this":["wp","data"]}
|
3317 |
+
var external_this_wp_data_ = __webpack_require__(25);
|
3318 |
|
3319 |
// EXTERNAL MODULE: external "lodash"
|
3320 |
var external_lodash_ = __webpack_require__(2);
|
3321 |
|
3322 |
+
// EXTERNAL MODULE: ./client/settings/index.js
|
3323 |
+
var settings = __webpack_require__(35);
|
3324 |
+
|
3325 |
+
// EXTERNAL MODULE: external {"this":["wc","data"]}
|
3326 |
+
var external_this_wc_data_ = __webpack_require__(34);
|
3327 |
+
|
3328 |
+
// EXTERNAL MODULE: external {"this":["wc","navigation"]}
|
3329 |
+
var external_this_wc_navigation_ = __webpack_require__(29);
|
3330 |
+
|
3331 |
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/slicedToArray.js
|
3332 |
+
var slicedToArray = __webpack_require__(31);
|
3333 |
+
var slicedToArray_default = /*#__PURE__*/__webpack_require__.n(slicedToArray);
|
3334 |
+
|
3335 |
+
// EXTERNAL MODULE: ./node_modules/classnames/index.js
|
3336 |
+
var classnames = __webpack_require__(4);
|
3337 |
+
var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames);
|
3338 |
+
|
3339 |
+
// EXTERNAL MODULE: ./node_modules/prop-types/index.js
|
3340 |
+
var prop_types = __webpack_require__(1);
|
3341 |
+
var prop_types_default = /*#__PURE__*/__webpack_require__.n(prop_types);
|
3342 |
+
|
3343 |
// EXTERNAL MODULE: external {"this":["wp","i18n"]}
|
3344 |
var external_this_wp_i18n_ = __webpack_require__(3);
|
3345 |
|
3346 |
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/objectWithoutProperties.js
|
3347 |
+
var objectWithoutProperties = __webpack_require__(58);
|
3348 |
+
var objectWithoutProperties_default = /*#__PURE__*/__webpack_require__.n(objectWithoutProperties);
|
|
|
3349 |
|
3350 |
+
// EXTERNAL MODULE: ./node_modules/@wordpress/components/build-module/card/index.js
|
3351 |
+
var card = __webpack_require__(532);
|
|
|
|
|
|
|
|
|
|
|
3352 |
|
3353 |
+
// EXTERNAL MODULE: ./node_modules/@wordpress/components/build-module/card/header.js
|
3354 |
+
var header = __webpack_require__(364);
|
3355 |
|
3356 |
+
// EXTERNAL MODULE: ./node_modules/@wordpress/components/build-module/text/index.js + 3 modules
|
3357 |
+
var build_module_text = __webpack_require__(142);
|
|
|
|
|
|
|
3358 |
|
3359 |
+
// EXTERNAL MODULE: ./node_modules/@wordpress/components/build-module/card/body.js
|
3360 |
+
var card_body = __webpack_require__(533);
|
3361 |
|
3362 |
+
// EXTERNAL MODULE: ./node_modules/@wordpress/components/build-module/tab-panel/index.js
|
3363 |
+
var tab_panel = __webpack_require__(621);
|
3364 |
|
3365 |
+
// EXTERNAL MODULE: ./node_modules/@wordpress/components/build-module/card/footer.js
|
3366 |
+
var footer = __webpack_require__(622);
|
3367 |
+
|
3368 |
+
// EXTERNAL MODULE: external {"this":["wc","components"]}
|
3369 |
+
var external_this_wc_components_ = __webpack_require__(74);
|
3370 |
+
|
3371 |
+
// EXTERNAL MODULE: external {"this":["wc","tracks"]}
|
3372 |
+
var external_this_wc_tracks_ = __webpack_require__(50);
|
3373 |
+
|
3374 |
+
// EXTERNAL MODULE: ./client/homescreen/stats-overview/style.scss
|
3375 |
+
var style = __webpack_require__(620);
|
3376 |
+
|
3377 |
+
// EXTERNAL MODULE: external {"this":["wp","hooks"]}
|
3378 |
+
var external_this_wp_hooks_ = __webpack_require__(51);
|
3379 |
|
3380 |
+
// CONCATENATED MODULE: ./client/homescreen/stats-overview/defaults.js
|
3381 |
/**
|
3382 |
* External dependencies
|
3383 |
*/
|
3384 |
|
3385 |
+
var DEFAULT_STATS = Object(external_this_wp_hooks_["applyFilters"])('woocommerce_admin_homepage_default_stats', ['revenue/total_sales', 'revenue/net_revenue', 'orders/orders_count', 'products/items_sold', 'jetpack/stats/visitors', 'jetpack/stats/views']);
|
3386 |
+
var DEFAULT_HIDDEN_STATS = ['revenue/net_revenue', 'products/items_sold'];
|
3387 |
+
// EXTERNAL MODULE: ./client/lib/currency-context.js
|
3388 |
+
var currency_context = __webpack_require__(574);
|
3389 |
|
3390 |
+
// EXTERNAL MODULE: ./client/dashboard/store-performance/utils.js
|
3391 |
+
var utils = __webpack_require__(592);
|
3392 |
|
3393 |
+
// CONCATENATED MODULE: ./client/homescreen/stats-overview/stats-list.js
|
|
|
|
|
3394 |
|
3395 |
|
3396 |
/**
|
3397 |
+
* External dependencies
|
3398 |
*/
|
3399 |
|
|
|
|
|
|
|
|
|
|
|
|
|
3400 |
|
|
|
|
|
|
|
3401 |
|
|
|
|
|
|
|
|
|
3402 |
|
|
|
|
|
|
|
|
|
3403 |
|
|
|
|
|
|
|
|
|
3404 |
|
|
|
|
|
|
|
|
|
3405 |
|
|
|
3406 |
/**
|
3407 |
+
* Internal dependencies
|
3408 |
*/
|
3409 |
|
|
|
|
|
|
|
|
|
3410 |
|
|
|
|
|
|
|
|
|
3411 |
|
3412 |
+
var stats_list_StatsList = function StatsList(_ref) {
|
3413 |
+
var stats = _ref.stats,
|
3414 |
+
primaryData = _ref.primaryData,
|
3415 |
+
secondaryData = _ref.secondaryData,
|
3416 |
+
primaryRequesting = _ref.primaryRequesting,
|
3417 |
+
secondaryRequesting = _ref.secondaryRequesting,
|
3418 |
+
primaryError = _ref.primaryError,
|
3419 |
+
secondaryError = _ref.secondaryError,
|
3420 |
+
query = _ref.query;
|
3421 |
|
3422 |
+
var _useContext = Object(external_this_wp_element_["useContext"])(currency_context["a" /* CurrencyContext */]),
|
3423 |
+
formatAmount = _useContext.formatAmount,
|
3424 |
+
getCurrencyConfig = _useContext.getCurrencyConfig;
|
|
|
3425 |
|
3426 |
+
if (primaryError || secondaryError) {
|
3427 |
+
return null;
|
3428 |
+
}
|
|
|
3429 |
|
3430 |
+
var persistedQuery = Object(external_this_wc_navigation_["getPersistedQuery"])(query);
|
3431 |
+
var currency = getCurrencyConfig();
|
3432 |
+
return Object(external_this_wp_element_["createElement"])("ul", {
|
3433 |
+
className: classnames_default()('woocommerce-stats-overview__stats', {
|
3434 |
+
'is-even': stats.length % 2 === 0
|
3435 |
+
})
|
3436 |
+
}, stats.map(function (item) {
|
3437 |
+
if (primaryRequesting || secondaryRequesting) {
|
3438 |
+
return Object(external_this_wp_element_["createElement"])(external_this_wc_components_["SummaryNumberPlaceholder"], {
|
3439 |
+
key: item.stat
|
3440 |
+
});
|
3441 |
+
}
|
3442 |
|
3443 |
+
var _getIndicatorValues = Object(utils["b" /* getIndicatorValues */])({
|
3444 |
+
indicator: item,
|
3445 |
+
primaryData: primaryData,
|
3446 |
+
secondaryData: secondaryData,
|
3447 |
+
currency: currency,
|
3448 |
+
formatAmount: formatAmount,
|
3449 |
+
persistedQuery: persistedQuery
|
3450 |
+
}),
|
3451 |
+
primaryValue = _getIndicatorValues.primaryValue,
|
3452 |
+
secondaryValue = _getIndicatorValues.secondaryValue,
|
3453 |
+
delta = _getIndicatorValues.delta,
|
3454 |
+
reportUrl = _getIndicatorValues.reportUrl,
|
3455 |
+
reportUrlType = _getIndicatorValues.reportUrlType;
|
3456 |
+
|
3457 |
+
return Object(external_this_wp_element_["createElement"])(external_this_wc_components_["SummaryNumber"], {
|
3458 |
+
isHomescreen: true,
|
3459 |
+
key: item.stat,
|
3460 |
+
href: reportUrl,
|
3461 |
+
hrefType: reportUrlType,
|
3462 |
+
label: item.label,
|
3463 |
+
value: primaryValue,
|
3464 |
+
prevLabel: Object(external_this_wp_i18n_["__"])('Previous Period:', 'woocommerce-admin'),
|
3465 |
+
prevValue: secondaryValue,
|
3466 |
+
delta: delta,
|
3467 |
+
onLinkClickCallback: function onLinkClickCallback() {
|
3468 |
+
Object(external_this_wc_tracks_["recordEvent"])('statsoverview_indicators_click', {
|
3469 |
+
key: item.stat
|
3470 |
+
});
|
3471 |
+
}
|
3472 |
+
});
|
3473 |
+
}));
|
3474 |
+
};
|
3475 |
+
/* harmony default export */ var stats_list = (Object(external_this_wp_data_["withSelect"])(function (select, _ref2) {
|
3476 |
+
var stats = _ref2.stats,
|
3477 |
+
query = _ref2.query;
|
3478 |
+
|
3479 |
+
if (stats.length === 0) {
|
3480 |
+
return;
|
3481 |
+
}
|
3482 |
+
|
3483 |
+
return Object(utils["a" /* getIndicatorData */])(select, stats, query);
|
3484 |
+
})(stats_list_StatsList));
|
3485 |
+
// EXTERNAL MODULE: ./node_modules/@wordpress/components/build-module/button/index.js
|
3486 |
+
var build_module_button = __webpack_require__(68);
|
3487 |
+
|
3488 |
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/regenerator/index.js
|
3489 |
+
var regenerator = __webpack_require__(14);
|
3490 |
+
var regenerator_default = /*#__PURE__*/__webpack_require__.n(regenerator);
|
3491 |
+
|
3492 |
+
// EXTERNAL MODULE: external {"this":["wp","dataControls"]}
|
3493 |
+
var external_this_wp_dataControls_ = __webpack_require__(27);
|
3494 |
+
|
3495 |
+
// CONCATENATED MODULE: ./packages/data/src/plugins/constants.js
|
3496 |
/**
|
3497 |
+
* External dependencies
|
3498 |
*/
|
3499 |
|
3500 |
+
var STORE_NAME = 'wc/admin/plugins';
|
3501 |
/**
|
3502 |
+
* Plugin slugs and names as key/value pairs.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3503 |
*/
|
3504 |
|
3505 |
var pluginNames = {
|
5330 |
var base_control = __webpack_require__(581);
|
5331 |
|
5332 |
// EXTERNAL MODULE: ./node_modules/@wordpress/keycodes/build-module/index.js + 1 modules
|
5333 |
+
var keycodes_build_module = __webpack_require__(67);
|
5334 |
|
5335 |
// EXTERNAL MODULE: external "moment"
|
5336 |
var external_moment_ = __webpack_require__(19);
|
6767 |
* External dependencies
|
6768 |
*/
|
6769 |
|
6770 |
+
var column_Column = function Column(_ref) {
|
6771 |
+
var children = _ref.children,
|
6772 |
+
_ref$shouldStick = _ref.shouldStick,
|
6773 |
+
shouldStick = _ref$shouldStick === void 0 ? false : _ref$shouldStick;
|
6774 |
+
|
6775 |
+
var _useState = Object(external_this_wp_element_["useState"])(false),
|
6776 |
+
_useState2 = slicedToArray_default()(_useState, 2),
|
6777 |
+
isContentStuck = _useState2[0],
|
6778 |
+
setIsContentStuck = _useState2[1];
|
6779 |
+
|
6780 |
+
var content = Object(external_this_wp_element_["useRef"])(null);
|
6781 |
+
var initialTop = Object(external_this_wp_element_["useRef"])(null);
|
6782 |
+
var maybeStickContent = Object(external_this_wp_element_["useCallback"])(function () {
|
6783 |
+
if (!content.current) {
|
6784 |
+
return;
|
6785 |
+
}
|
6786 |
+
|
6787 |
+
var _content$current$getB = content.current.getBoundingClientRect(),
|
6788 |
+
bottom = _content$current$getB.bottom,
|
6789 |
+
top = _content$current$getB.top;
|
6790 |
+
|
6791 |
+
if (initialTop.current === null) {
|
6792 |
+
initialTop.current = top;
|
6793 |
+
}
|
6794 |
+
|
6795 |
+
var shouldBeSticky = bottom < window.innerHeight;
|
6796 |
+
|
6797 |
+
if (top === initialTop.current) {
|
6798 |
+
setIsContentStuck(shouldBeSticky);
|
6799 |
+
}
|
6800 |
+
}, []);
|
6801 |
+
Object(external_this_wp_element_["useLayoutEffect"])(function () {
|
6802 |
+
if (!shouldStick) {
|
6803 |
+
return;
|
6804 |
+
}
|
6805 |
+
|
6806 |
+
maybeStickContent();
|
6807 |
+
window.addEventListener('resize', maybeStickContent);
|
6808 |
+
window.addEventListener('scroll', maybeStickContent);
|
6809 |
+
return function () {
|
6810 |
+
window.removeEventListener('resize', maybeStickContent);
|
6811 |
+
window.removeEventListener('scroll', maybeStickContent);
|
6812 |
+
};
|
6813 |
+
}, [maybeStickContent, shouldStick]);
|
6814 |
+
return Object(external_this_wp_element_["createElement"])("div", {
|
6815 |
+
className: "woocommerce-homescreen-column",
|
6816 |
+
ref: content,
|
6817 |
+
style: {
|
6818 |
+
position: shouldStick && isContentStuck ? 'sticky' : 'static'
|
6819 |
+
}
|
6820 |
+
}, children);
|
6821 |
+
};
|
6822 |
+
// CONCATENATED MODULE: ./client/homescreen/layout.js
|
6823 |
+
|
6824 |
+
|
6825 |
+
|
6826 |
+
/**
|
6827 |
+
* External dependencies
|
6828 |
+
*/
|
6829 |
+
|
6830 |
+
|
6831 |
+
|
6832 |
+
|
6833 |
+
|
6834 |
+
|
6835 |
+
|
6836 |
+
/**
|
6837 |
+
* Internal dependencies
|
6838 |
+
*/
|
6839 |
+
|
6840 |
+
|
6841 |
+
|
6842 |
+
|
6843 |
+
|
6844 |
+
|
6845 |
+
|
6846 |
+
|
6847 |
+
|
6848 |
+
|
6849 |
+
|
6850 |
+
var TaskList = Object(external_this_wp_element_["lazy"])(function () {
|
6851 |
+
return Promise.all(/* import() | task-list */[__webpack_require__.e(9), __webpack_require__.e(50)]).then(__webpack_require__.bind(null, 669));
|
6852 |
+
});
|
6853 |
+
var layout_Layout = function Layout(_ref) {
|
6854 |
+
var defaultHomescreenLayout = _ref.defaultHomescreenLayout,
|
6855 |
+
isBatchUpdating = _ref.isBatchUpdating,
|
6856 |
+
query = _ref.query,
|
6857 |
+
requestingTaskList = _ref.requestingTaskList,
|
6858 |
+
taskListHidden = _ref.taskListHidden,
|
6859 |
+
shouldShowWelcomeModal = _ref.shouldShowWelcomeModal,
|
6860 |
+
updateOptions = _ref.updateOptions;
|
6861 |
+
var userPrefs = Object(external_this_wc_data_["useUserPreferences"])();
|
6862 |
+
var twoColumns = (userPrefs.homepage_layout || defaultHomescreenLayout) === 'two_columns';
|
6863 |
+
|
6864 |
+
var _useState = Object(external_this_wp_element_["useState"])(true),
|
6865 |
+
_useState2 = slicedToArray_default()(_useState, 2),
|
6866 |
+
showInbox = _useState2[0],
|
6867 |
+
setShowInbox = _useState2[1];
|
6868 |
+
|
6869 |
+
var isTaskListEnabled = taskListHidden === false;
|
6870 |
+
var isDashboardShown = !isTaskListEnabled || !query.task;
|
6871 |
+
|
6872 |
+
if (isBatchUpdating && !showInbox) {
|
6873 |
+
setShowInbox(true);
|
6874 |
+
}
|
6875 |
+
|
6876 |
+
var isWideViewport = Object(external_this_wp_element_["useRef"])(true);
|
6877 |
+
var maybeToggleColumns = Object(external_this_wp_element_["useCallback"])(function () {
|
6878 |
+
isWideViewport.current = window.innerWidth >= 782;
|
6879 |
+
}, []);
|
6880 |
+
Object(external_this_wp_element_["useLayoutEffect"])(function () {
|
6881 |
+
maybeToggleColumns();
|
6882 |
+
window.addEventListener('resize', maybeToggleColumns);
|
6883 |
+
return function () {
|
6884 |
+
window.removeEventListener('resize', maybeToggleColumns);
|
6885 |
+
};
|
6886 |
+
}, [maybeToggleColumns]);
|
6887 |
+
var shouldStickColumns = isWideViewport.current && twoColumns;
|
6888 |
+
|
6889 |
+
var renderColumns = function renderColumns() {
|
6890 |
+
return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, Object(external_this_wp_element_["createElement"])(column_Column, {
|
6891 |
+
shouldStick: shouldStickColumns
|
6892 |
+
}, Object(external_this_wp_element_["createElement"])(activity_header["a" /* default */], {
|
6893 |
+
className: "your-store-today",
|
6894 |
+
title: Object(external_this_wp_i18n_["__"])('Your store today', 'woocommerce-admin'),
|
6895 |
+
subtitle: Object(external_this_wp_i18n_["__"])("To do's, tips, and insights for your business", 'woocommerce-admin')
|
6896 |
+
}), Object(external_this_wp_element_["createElement"])(activity_panel_ActivityPanel, null), isTaskListEnabled && renderTaskList(), !isTaskListEnabled && shouldStickColumns && Object(external_this_wp_element_["createElement"])(store_management_links_StoreManagementLinks, null)), Object(external_this_wp_element_["createElement"])(column_Column, {
|
6897 |
+
shouldStick: shouldStickColumns
|
6898 |
+
}, Object(external_this_wp_element_["createElement"])(stats_overview, null), Object(external_this_wp_element_["createElement"])(inbox_panel["default"], null), !isTaskListEnabled && !shouldStickColumns && Object(external_this_wp_element_["createElement"])(store_management_links_StoreManagementLinks, null)));
|
6899 |
+
};
|
6900 |
+
|
6901 |
+
var renderTaskList = function renderTaskList() {
|
6902 |
+
if (requestingTaskList) {
|
6903 |
+
return Object(external_this_wp_element_["createElement"])(placeholder, null);
|
6904 |
+
}
|
6905 |
+
|
6906 |
+
return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Suspense"], {
|
6907 |
+
fallback: Object(external_this_wp_element_["createElement"])(placeholder, null)
|
6908 |
+
}, Object(external_this_wp_element_["createElement"])(TaskList, {
|
6909 |
+
query: query
|
6910 |
+
}));
|
6911 |
+
};
|
6912 |
+
|
6913 |
+
return Object(external_this_wp_element_["createElement"])("div", {
|
6914 |
+
className: classnames_default()('woocommerce-homescreen', {
|
6915 |
+
'two-columns': twoColumns
|
6916 |
+
})
|
6917 |
+
}, isDashboardShown ? renderColumns() : isTaskListEnabled && renderTaskList(), shouldShowWelcomeModal && Object(external_this_wp_element_["createElement"])(welcome_modal_WelcomeModal, {
|
6918 |
+
onClose: function onClose() {
|
6919 |
+
updateOptions({
|
6920 |
+
woocommerce_task_list_welcome_modal_dismissed: 'yes'
|
6921 |
+
});
|
6922 |
+
}
|
6923 |
+
}));
|
6924 |
+
};
|
6925 |
+
layout_Layout.propTypes = {
|
6926 |
+
/**
|
6927 |
+
* If the task list option is being fetched.
|
6928 |
+
*/
|
6929 |
+
requestingTaskList: prop_types_default.a.bool.isRequired,
|
6930 |
+
|
6931 |
+
/**
|
6932 |
+
* If the task list has been completed.
|
6933 |
+
*/
|
6934 |
+
taskListComplete: prop_types_default.a.bool,
|
6935 |
+
|
6936 |
+
/**
|
6937 |
+
* If the task list is hidden.
|
6938 |
+
*/
|
6939 |
+
taskListHidden: prop_types_default.a.bool,
|
6940 |
+
|
6941 |
+
/**
|
6942 |
+
* Page query, used to determine the current task if any.
|
6943 |
+
*/
|
6944 |
+
query: prop_types_default.a.object.isRequired,
|
6945 |
+
|
6946 |
+
/**
|
6947 |
+
* If the welcome modal should display
|
6948 |
+
*/
|
6949 |
+
shouldShowWelcomeModal: prop_types_default.a.bool,
|
6950 |
+
|
6951 |
+
/**
|
6952 |
+
* Dispatch an action to update an option
|
6953 |
+
*/
|
6954 |
+
updateOptions: prop_types_default.a.func.isRequired
|
6955 |
+
};
|
6956 |
+
/* harmony default export */ var layout = (Object(compose["a" /* default */])(Object(external_this_wp_data_["withSelect"])(function (select) {
|
6957 |
+
var _select = select(external_this_wc_data_["NOTES_STORE_NAME"]),
|
6958 |
+
isNotesRequesting = _select.isNotesRequesting;
|
6959 |
+
|
6960 |
+
var _select2 = select(external_this_wc_data_["OPTIONS_STORE_NAME"]),
|
6961 |
+
getOption = _select2.getOption,
|
6962 |
+
isResolving = _select2.isResolving,
|
6963 |
+
hasFinishedResolution = _select2.hasFinishedResolution;
|
6964 |
+
|
6965 |
+
var welcomeModalDismissed = getOption('woocommerce_task_list_welcome_modal_dismissed') === 'yes';
|
6966 |
+
var welcomeModalDismissedHasResolved = hasFinishedResolution('getOption', ['woocommerce_task_list_welcome_modal_dismissed']);
|
6967 |
+
var shouldShowWelcomeModal = welcomeModalDismissedHasResolved && !welcomeModalDismissed;
|
6968 |
+
var defaultHomescreenLayout = getOption('woocommerce_default_homepage_layout') || 'single_column';
|
6969 |
+
return {
|
6970 |
+
defaultHomescreenLayout: defaultHomescreenLayout,
|
6971 |
+
isBatchUpdating: isNotesRequesting('batchUpdateNotes'),
|
6972 |
+
shouldShowWelcomeModal: shouldShowWelcomeModal,
|
6973 |
+
taskListHidden: getOption('woocommerce_task_list_hidden') === 'yes' && getOption('woocommerce_extended_task_list_hidden') !== 'no',
|
6974 |
+
requestingTaskList: isResolving('getOption', ['woocommerce_task_list_complete']) || isResolving('getOption', ['woocommerce_task_list_hidden']) || isResolving('getOption', ['woocommerce_extended_task_list_hidden'])
|
6975 |
+
};
|
6976 |
+
}), Object(external_this_wp_data_["withDispatch"])(function (dispatch) {
|
6977 |
+
return {
|
6978 |
+
updateOptions: dispatch(external_this_wc_data_["OPTIONS_STORE_NAME"]).updateOptions
|
6979 |
+
};
|
6980 |
+
}))(layout_Layout));
|
6981 |
+
// CONCATENATED MODULE: ./client/homescreen/index.js
|
6982 |
+
|
6983 |
+
|
6984 |
+
/**
|
6985 |
+
* External dependencies
|
6986 |
+
*/
|
6987 |
+
|
6988 |
|
|
|
|
|
|
|
|
|
6989 |
|
|
|
|
|
|
|
|
|
|
|
|
|
6990 |
|
|
|
|
|
|
|
6991 |
|
|
|
|
|
|
|
6992 |
|
6993 |
+
/**
|
6994 |
+
* Internal dependencies
|
6995 |
+
*/
|
6996 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6997 |
|
6998 |
+
|
6999 |
+
var homescreen_Homescreen = function Homescreen(_ref) {
|
7000 |
+
var profileItems = _ref.profileItems,
|
7001 |
+
query = _ref.query;
|
7002 |
+
|
7003 |
+
var _ref2 = profileItems || {},
|
7004 |
+
profilerCompleted = _ref2.completed,
|
7005 |
+
profilerSkipped = _ref2.skipped;
|
7006 |
+
|
7007 |
+
if (!profilerCompleted && !profilerSkipped) {
|
7008 |
+
Object(external_this_wc_navigation_["getHistory"])().push(Object(external_this_wc_navigation_["getNewPath"])({}, '/setup-wizard', {}));
|
7009 |
+
}
|
7010 |
+
|
7011 |
+
return Object(external_this_wp_element_["createElement"])(layout, {
|
7012 |
+
query: query
|
7013 |
+
});
|
7014 |
};
|
|
|
7015 |
|
7016 |
+
var onboardingData = Object(settings["g" /* getSetting */])('onboarding', {});
|
7017 |
+
/* harmony default export */ var homescreen = __webpack_exports__["default"] = (Object(compose["a" /* default */])(onboardingData.profile || onboardingData.tasksStatus ? Object(external_this_wc_data_["withOnboardingHydration"])({
|
7018 |
+
profileItems: onboardingData.profile,
|
7019 |
+
tasksStatus: onboardingData.tasksStatus
|
7020 |
+
}) : external_lodash_["identity"], Object(external_this_wp_data_["withSelect"])(function (select) {
|
7021 |
+
var _select = select(external_this_wc_data_["ONBOARDING_STORE_NAME"]),
|
7022 |
+
getProfileItems = _select.getProfileItems;
|
7023 |
+
|
7024 |
+
var profileItems = getProfileItems();
|
7025 |
+
return {
|
7026 |
+
profileItems: profileItems
|
7027 |
+
};
|
7028 |
+
}))(homescreen_Homescreen));
|
7029 |
+
|
7030 |
+
/***/ }),
|
7031 |
+
|
7032 |
+
/***/ 67:
|
7033 |
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
7034 |
+
|
7035 |
+
"use strict";
|
7036 |
+
|
7037 |
+
// EXPORTS
|
7038 |
+
__webpack_require__.d(__webpack_exports__, "a", function() { return /* binding */ BACKSPACE; });
|
7039 |
+
__webpack_require__.d(__webpack_exports__, "h", function() { return /* binding */ TAB; });
|
7040 |
+
__webpack_require__.d(__webpack_exports__, "c", function() { return /* binding */ ENTER; });
|
7041 |
+
__webpack_require__.d(__webpack_exports__, "d", function() { return /* binding */ ESCAPE; });
|
7042 |
+
__webpack_require__.d(__webpack_exports__, "g", function() { return /* binding */ SPACE; });
|
7043 |
+
__webpack_require__.d(__webpack_exports__, "e", function() { return /* binding */ LEFT; });
|
7044 |
+
__webpack_require__.d(__webpack_exports__, "i", function() { return /* binding */ UP; });
|
7045 |
+
__webpack_require__.d(__webpack_exports__, "f", function() { return /* binding */ RIGHT; });
|
7046 |
+
__webpack_require__.d(__webpack_exports__, "b", function() { return /* binding */ DOWN; });
|
7047 |
+
|
7048 |
+
// UNUSED EXPORTS: DELETE, F10, ALT, CTRL, COMMAND, SHIFT, ZERO, modifiers, rawShortcut, displayShortcutList, displayShortcut, shortcutAriaLabel, isKeyboardEvent
|
7049 |
+
|
7050 |
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
7051 |
+
var defineProperty = __webpack_require__(6);
|
7052 |
+
|
7053 |
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + 3 modules
|
7054 |
+
var toConsumableArray = __webpack_require__(26);
|
7055 |
+
|
7056 |
+
// EXTERNAL MODULE: external "lodash"
|
7057 |
+
var external_lodash_ = __webpack_require__(2);
|
7058 |
|
7059 |
+
// EXTERNAL MODULE: external {"this":["wp","i18n"]}
|
7060 |
+
var external_this_wp_i18n_ = __webpack_require__(3);
|
7061 |
|
7062 |
+
// CONCATENATED MODULE: ./node_modules/@wordpress/keycodes/build-module/platform.js
|
7063 |
/**
|
7064 |
* External dependencies
|
7065 |
*/
|
7066 |
|
7067 |
+
/**
|
7068 |
+
* Return true if platform is MacOS.
|
7069 |
+
*
|
7070 |
+
* @param {Object} _window window object by default; used for DI testing.
|
7071 |
+
*
|
7072 |
+
* @return {boolean} True if MacOS; false otherwise.
|
7073 |
+
*/
|
7074 |
|
7075 |
+
function isAppleOS() {
|
7076 |
+
var _window = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : window;
|
7077 |
|
7078 |
+
var platform = _window.navigator.platform;
|
7079 |
+
return platform.indexOf('Mac') !== -1 || Object(external_lodash_["includes"])(['iPad', 'iPhone'], platform);
|
7080 |
+
}
|
7081 |
+
//# sourceMappingURL=platform.js.map
|
7082 |
+
// CONCATENATED MODULE: ./node_modules/@wordpress/keycodes/build-module/index.js
|
7083 |
|
7084 |
|
7085 |
|
7086 |
/**
|
7087 |
+
* Note: The order of the modifier keys in many of the [foo]Shortcut()
|
7088 |
+
* functions in this file are intentional and should not be changed. They're
|
7089 |
+
* designed to fit with the standard menu keyboard shortcuts shown in the
|
7090 |
+
* user's platform.
|
7091 |
+
*
|
7092 |
+
* For example, on MacOS menu shortcuts will place Shift before Command, but
|
7093 |
+
* on Windows Control will usually come first. So don't provide your own
|
7094 |
+
* shortcut combos directly to keyboardShortcut().
|
7095 |
*/
|
7096 |
|
7097 |
+
/**
|
7098 |
+
* External dependencies
|
7099 |
+
*/
|
7100 |
|
7101 |
+
/**
|
7102 |
+
* WordPress dependencies
|
7103 |
+
*/
|
7104 |
|
7105 |
|
7106 |
+
/**
|
7107 |
+
* Internal dependencies
|
7108 |
+
*/
|
7109 |
|
7110 |
|
7111 |
+
/**
|
7112 |
+
* @typedef {'primary'|'primaryShift'|'primaryAlt'|'secondary'|'access'|'ctrl'|'alt'|'ctrlShift'|'shift'|'shiftAlt'} WPKeycodeModifier
|
7113 |
+
*/
|
7114 |
|
7115 |
+
/**
|
7116 |
+
* An object of handler functions for each of the possible modifier
|
7117 |
+
* combinations. A handler will return a value for a given key.
|
7118 |
+
*
|
7119 |
+
* @typedef {Record<WPKeycodeModifier, (key:string)=>any>} WPKeycodeHandlerByModifier
|
7120 |
+
*/
|
7121 |
|
7122 |
+
/**
|
7123 |
+
* Keycode for BACKSPACE key.
|
7124 |
+
*/
|
7125 |
|
7126 |
+
var BACKSPACE = 8;
|
7127 |
+
/**
|
7128 |
+
* Keycode for TAB key.
|
7129 |
+
*/
|
7130 |
|
7131 |
+
var TAB = 9;
|
7132 |
+
/**
|
7133 |
+
* Keycode for ENTER key.
|
7134 |
+
*/
|
7135 |
|
7136 |
+
var ENTER = 13;
|
7137 |
+
/**
|
7138 |
+
* Keycode for ESCAPE key.
|
7139 |
+
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7140 |
|
7141 |
+
var ESCAPE = 27;
|
7142 |
+
/**
|
7143 |
+
* Keycode for SPACE key.
|
7144 |
+
*/
|
7145 |
|
7146 |
+
var SPACE = 32;
|
7147 |
+
/**
|
7148 |
+
* Keycode for LEFT key.
|
7149 |
+
*/
|
7150 |
|
7151 |
+
var LEFT = 37;
|
7152 |
+
/**
|
7153 |
+
* Keycode for UP key.
|
7154 |
+
*/
|
7155 |
|
7156 |
+
var UP = 38;
|
7157 |
+
/**
|
7158 |
+
* Keycode for RIGHT key.
|
7159 |
+
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7160 |
|
7161 |
+
var RIGHT = 39;
|
7162 |
+
/**
|
7163 |
+
* Keycode for DOWN key.
|
7164 |
+
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7165 |
|
7166 |
+
var DOWN = 40;
|
7167 |
+
/**
|
7168 |
+
* Keycode for DELETE key.
|
7169 |
+
*/
|
7170 |
|
7171 |
+
var DELETE = 46;
|
7172 |
+
/**
|
7173 |
+
* Keycode for F10 key.
|
7174 |
+
*/
|
|
|
|
|
7175 |
|
7176 |
+
var F10 = 121;
|
7177 |
+
/**
|
7178 |
+
* Keycode for ALT key.
|
7179 |
+
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7180 |
|
7181 |
+
var ALT = 'alt';
|
7182 |
+
/**
|
7183 |
+
* Keycode for CTRL key.
|
7184 |
+
*/
|
7185 |
|
7186 |
+
var CTRL = 'ctrl';
|
7187 |
+
/**
|
7188 |
+
* Keycode for COMMAND/META key.
|
7189 |
+
*/
|
7190 |
|
7191 |
+
var COMMAND = 'meta';
|
7192 |
+
/**
|
7193 |
+
* Keycode for SHIFT key.
|
7194 |
+
*/
|
7195 |
|
7196 |
+
var SHIFT = 'shift';
|
7197 |
+
/**
|
7198 |
+
* Keycode for ZERO key.
|
7199 |
+
*/
|
7200 |
|
7201 |
+
var ZERO = 48;
|
7202 |
+
/**
|
7203 |
+
* Object that contains functions that return the available modifier
|
7204 |
+
* depending on platform.
|
7205 |
+
*
|
7206 |
+
* - `primary`: takes a isApple function as a parameter.
|
7207 |
+
* - `primaryShift`: takes a isApple function as a parameter.
|
7208 |
+
* - `primaryAlt`: takes a isApple function as a parameter.
|
7209 |
+
* - `secondary`: takes a isApple function as a parameter.
|
7210 |
+
* - `access`: takes a isApple function as a parameter.
|
7211 |
+
* - `ctrl`
|
7212 |
+
* - `alt`
|
7213 |
+
* - `ctrlShift`
|
7214 |
+
* - `shift`
|
7215 |
+
* - `shiftAlt`
|
7216 |
+
*/
|
7217 |
+
|
7218 |
+
var modifiers = {
|
7219 |
+
primary: function primary(_isApple) {
|
7220 |
+
return _isApple() ? [COMMAND] : [CTRL];
|
7221 |
+
},
|
7222 |
+
primaryShift: function primaryShift(_isApple) {
|
7223 |
+
return _isApple() ? [SHIFT, COMMAND] : [CTRL, SHIFT];
|
7224 |
+
},
|
7225 |
+
primaryAlt: function primaryAlt(_isApple) {
|
7226 |
+
return _isApple() ? [ALT, COMMAND] : [CTRL, ALT];
|
7227 |
+
},
|
7228 |
+
secondary: function secondary(_isApple) {
|
7229 |
+
return _isApple() ? [SHIFT, ALT, COMMAND] : [CTRL, SHIFT, ALT];
|
7230 |
+
},
|
7231 |
+
access: function access(_isApple) {
|
7232 |
+
return _isApple() ? [CTRL, ALT] : [SHIFT, ALT];
|
7233 |
+
},
|
7234 |
+
ctrl: function ctrl() {
|
7235 |
+
return [CTRL];
|
7236 |
+
},
|
7237 |
+
alt: function alt() {
|
7238 |
+
return [ALT];
|
7239 |
+
},
|
7240 |
+
ctrlShift: function ctrlShift() {
|
7241 |
+
return [CTRL, SHIFT];
|
7242 |
+
},
|
7243 |
+
shift: function shift() {
|
7244 |
+
return [SHIFT];
|
7245 |
+
},
|
7246 |
+
shiftAlt: function shiftAlt() {
|
7247 |
+
return [SHIFT, ALT];
|
7248 |
+
}
|
7249 |
};
|
7250 |
+
/**
|
7251 |
+
* An object that contains functions to get raw shortcuts.
|
7252 |
+
* E.g. rawShortcut.primary( 'm' ) will return 'meta+m' on Mac.
|
7253 |
+
* These are intended for user with the KeyboardShortcuts component or TinyMCE.
|
7254 |
+
*
|
7255 |
+
* @type {WPKeycodeHandlerByModifier} Keyed map of functions to raw shortcuts.
|
7256 |
+
*/
|
7257 |
|
7258 |
+
var rawShortcut = Object(external_lodash_["mapValues"])(modifiers, function (modifier) {
|
7259 |
+
return function (character) {
|
7260 |
+
var _isApple = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : isAppleOS;
|
|
|
7261 |
|
7262 |
+
return [].concat(Object(toConsumableArray["a" /* default */])(modifier(_isApple)), [character.toLowerCase()]).join('+');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7263 |
};
|
7264 |
+
});
|
|
|
|
|
|
|
7265 |
/**
|
7266 |
+
* Return an array of the parts of a keyboard shortcut chord for display
|
7267 |
+
* E.g displayShortcutList.primary( 'm' ) will return [ '⌘', 'M' ] on Mac.
|
7268 |
+
*
|
7269 |
+
* @type {WPKeycodeHandlerByModifier} Keyed map of functions to shortcut
|
7270 |
+
* sequences.
|
7271 |
*/
|
7272 |
|
7273 |
+
var displayShortcutList = Object(external_lodash_["mapValues"])(modifiers, function (modifier) {
|
7274 |
+
return function (character) {
|
7275 |
+
var _replacementKeyMap;
|
7276 |
+
|
7277 |
+
var _isApple = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : isAppleOS;
|
7278 |
+
|
7279 |
+
var isApple = _isApple();
|
7280 |
|
7281 |
+
var replacementKeyMap = (_replacementKeyMap = {}, Object(defineProperty["a" /* default */])(_replacementKeyMap, ALT, isApple ? '⌥' : 'Alt'), Object(defineProperty["a" /* default */])(_replacementKeyMap, CTRL, isApple ? '^' : 'Ctrl'), Object(defineProperty["a" /* default */])(_replacementKeyMap, COMMAND, '⌘'), Object(defineProperty["a" /* default */])(_replacementKeyMap, SHIFT, isApple ? '⇧' : 'Shift'), _replacementKeyMap);
|
7282 |
+
var modifierKeys = modifier(_isApple).reduce(function (accumulator, key) {
|
7283 |
+
var replacementKey = Object(external_lodash_["get"])(replacementKeyMap, key, key); // If on the Mac, adhere to platform convention and don't show plus between keys.
|
7284 |
|
7285 |
+
if (isApple) {
|
7286 |
+
return [].concat(Object(toConsumableArray["a" /* default */])(accumulator), [replacementKey]);
|
7287 |
+
}
|
7288 |
|
7289 |
+
return [].concat(Object(toConsumableArray["a" /* default */])(accumulator), [replacementKey, '+']);
|
7290 |
+
}, []);
|
7291 |
+
var capitalizedCharacter = Object(external_lodash_["capitalize"])(character);
|
7292 |
+
return [].concat(Object(toConsumableArray["a" /* default */])(modifierKeys), [capitalizedCharacter]);
|
7293 |
+
};
|
7294 |
+
});
|
7295 |
+
/**
|
7296 |
+
* An object that contains functions to display shortcuts.
|
7297 |
+
* E.g. displayShortcut.primary( 'm' ) will return '⌘M' on Mac.
|
7298 |
+
*
|
7299 |
+
* @type {WPKeycodeHandlerByModifier} Keyed map of functions to display
|
7300 |
+
* shortcuts.
|
7301 |
+
*/
|
7302 |
|
7303 |
+
var displayShortcut = Object(external_lodash_["mapValues"])(displayShortcutList, function (shortcutList) {
|
7304 |
+
return function (character) {
|
7305 |
+
var _isApple = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : isAppleOS;
|
7306 |
|
7307 |
+
return shortcutList(character, _isApple).join('');
|
7308 |
+
};
|
7309 |
+
});
|
7310 |
/**
|
7311 |
+
* An object that contains functions to return an aria label for a keyboard shortcut.
|
7312 |
+
* E.g. shortcutAriaLabel.primary( '.' ) will return 'Command + Period' on Mac.
|
7313 |
+
*
|
7314 |
+
* @type {WPKeycodeHandlerByModifier} Keyed map of functions to shortcut ARIA
|
7315 |
+
* labels.
|
7316 |
*/
|
7317 |
|
7318 |
+
var shortcutAriaLabel = Object(external_lodash_["mapValues"])(modifiers, function (modifier) {
|
7319 |
+
return function (character) {
|
7320 |
+
var _replacementKeyMap2;
|
7321 |
|
7322 |
+
var _isApple = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : isAppleOS;
|
7323 |
|
7324 |
+
var isApple = _isApple();
|
|
|
|
|
7325 |
|
7326 |
+
var replacementKeyMap = (_replacementKeyMap2 = {}, Object(defineProperty["a" /* default
|
|
|
|