WooCommerce Admin - Version 2.1.2

Version Description

3/10/2021 ==

  • Fix: Add guard to "Deactivate Plugin" note handlers to prevent fatal error. #6532
  • Fix: Crash of Analytics > Settings page when Gutenberg is installed. #6540

=

Download this release

Release Info

Developer adrianduffell
Plugin Icon 128x128 WooCommerce Admin
Version 2.1.2
Comparing to
See all releases

Code changes from version 2.0.3 to 2.1.2

dist/app/index.js CHANGED
@@ -259,7 +259,7 @@ this["wc"] = this["wc"] || {}; this["wc"]["app"] =
259
  /******/
260
  /******/
261
  /******/ // Load entry module and return exports
262
- /******/ return __webpack_require__(__webpack_require__.s = 295);
263
  /******/ })
264
  /************************************************************************/
265
  /******/ ({
@@ -284,7 +284,7 @@ this["wc"] = this["wc"] || {}; this["wc"]["app"] =
284
  if (false) { var throwOnDirectAccess, ReactIs; } else {
285
  // By explicitly using `prop-types` you are opting into new production behavior.
286
  // http://fb.me/prop-types-in-prod
287
- module.exports = __webpack_require__(75)();
288
  }
289
 
290
 
@@ -300,17 +300,11 @@ if (false) { var throwOnDirectAccess, ReactIs; } else {
300
  /***/ 11:
301
  /***/ (function(module, exports) {
302
 
303
- function _classCallCheck(instance, Constructor) {
304
- if (!(instance instanceof Constructor)) {
305
- throw new TypeError("Cannot call a class as a function");
306
- }
307
- }
308
-
309
- module.exports = _classCallCheck;
310
 
311
  /***/ }),
312
 
313
- /***/ 110:
314
  /***/ (function(module, exports) {
315
 
316
  (function() { module.exports = this["wc"]["currency"]; }());
@@ -320,27 +314,17 @@ module.exports = _classCallCheck;
320
  /***/ 12:
321
  /***/ (function(module, exports) {
322
 
323
- function _defineProperties(target, props) {
324
- for (var i = 0; i < props.length; i++) {
325
- var descriptor = props[i];
326
- descriptor.enumerable = descriptor.enumerable || false;
327
- descriptor.configurable = true;
328
- if ("value" in descriptor) descriptor.writable = true;
329
- Object.defineProperty(target, descriptor.key, descriptor);
330
  }
331
  }
332
 
333
- function _createClass(Constructor, protoProps, staticProps) {
334
- if (protoProps) _defineProperties(Constructor.prototype, protoProps);
335
- if (staticProps) _defineProperties(Constructor, staticProps);
336
- return Constructor;
337
- }
338
-
339
- module.exports = _createClass;
340
 
341
  /***/ }),
342
 
343
- /***/ 120:
344
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
345
 
346
  "use strict";
@@ -348,7 +332,7 @@ module.exports = _createClass;
348
  // EXPORTS
349
  __webpack_require__.d(__webpack_exports__, "a", function() { return /* binding */ build_module_focus; });
350
 
351
- // UNUSED EXPORTS: isHorizontalEdge, isVerticalEdge, getRectangleFromRange, computeCaretRect, placeCaretAtHorizontalEdge, placeCaretAtVerticalEdge, isTextField, isNumberInput, documentHasSelection, isEntirelySelected, getScrollContainer, getOffsetParent, replace, remove, insertAfter, unwrap, replaceTag, wrap, __unstableStripHTML
352
 
353
  // NAMESPACE OBJECT: ./node_modules/@wordpress/dom/build-module/focusable.js
354
  var focusable_namespaceObject = {};
@@ -395,6 +379,19 @@ var SELECTOR = ['[tabindex]', 'a[href]', 'button:not([disabled])', 'input:not([t
395
  function isVisible(element) {
396
  return element.offsetWidth > 0 || element.offsetHeight > 0 || element.getClientRects().length > 0;
397
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
398
  /**
399
  * Returns true if the specified area element is a valid focusable element, or
400
  * false otherwise. Area is only focusable if within a map where a named map
@@ -413,7 +410,7 @@ function isValidFocusableArea(element) {
413
  return false;
414
  }
415
 
416
- var img = document.querySelector('img[usemap="#' + map.name + '"]');
417
  return !!img && isVisible(img);
418
  }
419
  /**
@@ -428,7 +425,7 @@ function isValidFocusableArea(element) {
428
  function find(context) {
429
  var elements = context.querySelectorAll(SELECTOR);
430
  return Array.from(elements).filter(function (element) {
431
- if (!isVisible(element)) {
432
  return false;
433
  }
434
 
@@ -602,9 +599,8 @@ function tabbable_find(context) {
602
  * to the active element.
603
  */
604
 
605
- function findPrevious() {
606
- var element = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : document.activeElement;
607
- var focusables = find(document.body);
608
  var index = focusables.indexOf(element); // Remove all focusables after and including `element`.
609
 
610
  focusables.length = index;
@@ -617,9 +613,8 @@ function findPrevious() {
617
  * to the active element.
618
  */
619
 
620
- function findNext() {
621
- var element = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : document.activeElement;
622
- var focusables = find(document.body);
623
  var index = focusables.indexOf(element); // Remove all focusables before and inside `element`.
624
 
625
  var remaining = focusables.slice(index + 1).filter(function (node) {
@@ -644,11 +639,13 @@ var build_module_focus = {
644
  tabbable: tabbable_namespaceObject
645
  };
646
 
 
 
647
  //# sourceMappingURL=index.js.map
648
 
649
  /***/ }),
650
 
651
- /***/ 121:
652
  /***/ (function(module, exports, __webpack_require__) {
653
 
654
  "use strict";
@@ -862,26 +859,25 @@ if (true) {
862
  /***/ }),
863
 
864
  /***/ 13:
865
- /***/ (function(module, exports, __webpack_require__) {
866
-
867
- var setPrototypeOf = __webpack_require__(74);
868
 
869
- function _inherits(subClass, superClass) {
870
- if (typeof superClass !== "function" && superClass !== null) {
871
- throw new TypeError("Super expression must either be null or a function");
 
 
 
 
872
  }
 
873
 
874
- subClass.prototype = Object.create(superClass && superClass.prototype, {
875
- constructor: {
876
- value: subClass,
877
- writable: true,
878
- configurable: true
879
- }
880
- });
881
- if (superClass) setPrototypeOf(subClass, superClass);
882
  }
883
 
884
- module.exports = _inherits;
885
 
886
  /***/ }),
887
 
@@ -891,57 +887,53 @@ module.exports = _inherits;
891
  "use strict";
892
  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
893
  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__);
894
- /* harmony import */ var _wordpress_hooks__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(42);
895
  /* harmony import */ var _wordpress_hooks__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_hooks__WEBPACK_IMPORTED_MODULE_1__);
896
- /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(0);
897
- /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__);
898
- /* harmony import */ var _settings__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(25);
899
  /**
900
  * External dependencies
901
  */
902
 
903
 
904
 
905
- /**
906
- * Internal dependencies
907
- */
908
-
909
 
910
- var manageStock = Object(_settings__WEBPACK_IMPORTED_MODULE_3__[/* getSetting */ "g"])('manageStock', 'no');
911
  var REPORTS_FILTER = 'woocommerce_admin_reports_list';
912
  /**
913
  * Internal dependencies
914
  */
915
 
916
- var RevenueReport = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["lazy"])(function () {
917
- return Promise.all(/* import() | analytics-report-revenue */[__webpack_require__.e(0), __webpack_require__.e(16)]).then(__webpack_require__.bind(null, 482));
918
  });
919
- var ProductsReport = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["lazy"])(function () {
920
- return Promise.all(/* import() | analytics-report-products */[__webpack_require__.e(0), __webpack_require__.e(3), __webpack_require__.e(15)]).then(__webpack_require__.bind(null, 478));
921
  });
922
- var VariationsReport = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["lazy"])(function () {
923
- return Promise.all(/* import() | analytics-report-variations */[__webpack_require__.e(0), __webpack_require__.e(19)]).then(__webpack_require__.bind(null, 483));
924
  });
925
- var OrdersReport = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["lazy"])(function () {
926
- return Promise.all(/* import() | analytics-report-orders */[__webpack_require__.e(0), __webpack_require__.e(5), __webpack_require__.e(14)]).then(__webpack_require__.bind(null, 484));
927
  });
928
- var CategoriesReport = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["lazy"])(function () {
929
- return Promise.all(/* import() | analytics-report-categories */[__webpack_require__.e(0), __webpack_require__.e(3), __webpack_require__.e(10)]).then(__webpack_require__.bind(null, 480));
930
  });
931
- var CouponsReport = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["lazy"])(function () {
932
- return Promise.all(/* import() | analytics-report-coupons */[__webpack_require__.e(0), __webpack_require__.e(11)]).then(__webpack_require__.bind(null, 485));
933
  });
934
- var TaxesReport = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["lazy"])(function () {
935
- return Promise.all(/* import() | analytics-report-taxes */[__webpack_require__.e(0), __webpack_require__.e(18)]).then(__webpack_require__.bind(null, 486));
936
  });
937
- var DownloadsReport = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["lazy"])(function () {
938
- return Promise.all(/* import() | analytics-report-downloads */[__webpack_require__.e(0), __webpack_require__.e(13)]).then(__webpack_require__.bind(null, 487));
939
  });
940
- var StockReport = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["lazy"])(function () {
941
- return Promise.all(/* import() | analytics-report-stock */[__webpack_require__.e(0), __webpack_require__.e(17)]).then(__webpack_require__.bind(null, 479));
942
  });
943
- var CustomersReport = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["lazy"])(function () {
944
- return Promise.all(/* import() | analytics-report-customers */[__webpack_require__.e(0), __webpack_require__.e(12)]).then(__webpack_require__.bind(null, 481));
945
  });
946
  /* harmony default export */ __webpack_exports__["a"] = (function () {
947
  var reports = [{
@@ -1129,74 +1121,37 @@ module.exports = hoistNonReactStatics;
1129
  /***/ }),
1130
 
1131
  /***/ 139:
1132
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
1133
-
1134
- "use strict";
1135
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return useIsScrolled; });
1136
- /* harmony import */ var _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(20);
1137
- /* harmony import */ var _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0__);
1138
- /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(0);
1139
- /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__);
1140
-
1141
-
1142
- /**
1143
- * External dependencies
1144
- */
1145
-
1146
- function useIsScrolled() {
1147
- var _useState = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["useState"])(false),
1148
- _useState2 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0___default()(_useState, 2),
1149
- isScrolled = _useState2[0],
1150
- setIsScrolled = _useState2[1];
1151
-
1152
- var rafHandle = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["useRef"])(null);
1153
- Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__["useEffect"])(function () {
1154
- var updateIsScrolled = function updateIsScrolled() {
1155
- setIsScrolled(window.pageYOffset > 20);
1156
- };
1157
-
1158
- var scrollListener = function scrollListener() {
1159
- rafHandle.current = window.requestAnimationFrame(updateIsScrolled);
1160
- };
1161
 
1162
- window.addEventListener('scroll', scrollListener);
1163
- return function () {
1164
- window.removeEventListener('scroll', scrollListener);
1165
- window.cancelAnimationFrame(rafHandle.current);
1166
- };
1167
- }, []);
1168
- return isScrolled;
1169
- }
1170
 
1171
  /***/ }),
1172
 
1173
  /***/ 14:
1174
  /***/ (function(module, exports, __webpack_require__) {
1175
 
1176
- var _typeof = __webpack_require__(30);
1177
 
1178
- var assertThisInitialized = __webpack_require__(9);
1179
-
1180
- function _possibleConstructorReturn(self, call) {
1181
- if (call && (_typeof(call) === "object" || typeof call === "function")) {
1182
- return call;
1183
  }
1184
 
1185
- return assertThisInitialized(self);
 
 
 
 
 
 
 
1186
  }
1187
 
1188
- module.exports = _possibleConstructorReturn;
1189
 
1190
  /***/ }),
1191
 
1192
  /***/ 140:
1193
- /***/ (function(module, exports) {
1194
-
1195
- (function() { module.exports = this["wp"]["plugins"]; }());
1196
-
1197
- /***/ }),
1198
-
1199
- /***/ 141:
1200
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1201
 
1202
  "use strict";
@@ -1408,7 +1363,7 @@ function speak(message, ariaLive) {
1408
 
1409
  /***/ }),
1410
 
1411
- /***/ 142:
1412
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1413
 
1414
  "use strict";
@@ -1431,35 +1386,35 @@ var defineProperty = __webpack_require__(5);
1431
  var defineProperty_default = /*#__PURE__*/__webpack_require__.n(defineProperty);
1432
 
1433
  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/classCallCheck.js
1434
- var classCallCheck = __webpack_require__(11);
1435
  var classCallCheck_default = /*#__PURE__*/__webpack_require__.n(classCallCheck);
1436
 
1437
  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/createClass.js
1438
- var createClass = __webpack_require__(12);
1439
  var createClass_default = /*#__PURE__*/__webpack_require__.n(createClass);
1440
 
1441
  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/inherits.js
1442
- var inherits = __webpack_require__(13);
1443
  var inherits_default = /*#__PURE__*/__webpack_require__.n(inherits);
1444
 
1445
  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js
1446
- var possibleConstructorReturn = __webpack_require__(14);
1447
  var possibleConstructorReturn_default = /*#__PURE__*/__webpack_require__.n(possibleConstructorReturn);
1448
 
1449
  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/getPrototypeOf.js
1450
- var getPrototypeOf = __webpack_require__(6);
1451
  var getPrototypeOf_default = /*#__PURE__*/__webpack_require__.n(getPrototypeOf);
1452
 
1453
  // EXTERNAL MODULE: external {"this":["wp","element"]}
1454
  var external_this_wp_element_ = __webpack_require__(0);
1455
 
1456
  // EXTERNAL MODULE: external {"this":["wp","compose"]}
1457
- var external_this_wp_compose_ = __webpack_require__(18);
1458
 
1459
  // EXTERNAL MODULE: external {"this":["wp","data"]}
1460
- var external_this_wp_data_ = __webpack_require__(15);
1461
 
1462
- // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/inheritsLoose.js
1463
  var inheritsLoose = __webpack_require__(38);
1464
 
1465
  // EXTERNAL MODULE: external "React"
@@ -1471,7 +1426,7 @@ var prop_types = __webpack_require__(1);
1471
  var prop_types_default = /*#__PURE__*/__webpack_require__.n(prop_types);
1472
 
1473
  // EXTERNAL MODULE: ./node_modules/history/esm/history.js + 2 modules
1474
- var esm_history = __webpack_require__(70);
1475
 
1476
  // EXTERNAL MODULE: ./node_modules/mini-create-react-context/dist/esm/index.js
1477
  var esm = __webpack_require__(183);
@@ -1490,7 +1445,7 @@ var path_to_regexp_default = /*#__PURE__*/__webpack_require__.n(path_to_regexp);
1490
  var react_is = __webpack_require__(126);
1491
 
1492
  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
1493
- var objectWithoutPropertiesLoose = __webpack_require__(41);
1494
 
1495
  // EXTERNAL MODULE: ./node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js
1496
  var hoist_non_react_statics_cjs = __webpack_require__(138);
@@ -2168,20 +2123,20 @@ var external_this_wc_components_ = __webpack_require__(47);
2168
  // EXTERNAL MODULE: external {"this":["wc","navigation"]}
2169
  var external_this_wc_navigation_ = __webpack_require__(21);
2170
 
2171
- // EXTERNAL MODULE: ./client/settings/index.js
2172
- var settings = __webpack_require__(25);
2173
 
2174
  // EXTERNAL MODULE: external {"this":["wc","data"]}
2175
- var external_this_wc_data_ = __webpack_require__(23);
2176
 
2177
  // EXTERNAL MODULE: external {"this":["wc","tracks"]}
2178
- var external_this_wc_tracks_ = __webpack_require__(28);
2179
 
2180
  // EXTERNAL MODULE: ./client/layout/style.scss
2181
- var layout_style = __webpack_require__(298);
2182
 
2183
  // EXTERNAL MODULE: external {"this":["wp","hooks"]}
2184
- var external_this_wp_hooks_ = __webpack_require__(42);
2185
 
2186
  // EXTERNAL MODULE: external {"this":["wp","i18n"]}
2187
  var external_this_wp_i18n_ = __webpack_require__(2);
@@ -2190,7 +2145,7 @@ var external_this_wp_i18n_ = __webpack_require__(2);
2190
  var get_reports = __webpack_require__(137);
2191
 
2192
  // EXTERNAL MODULE: ./client/dashboard/utils.js
2193
- var utils = __webpack_require__(94);
2194
 
2195
  // CONCATENATED MODULE: ./client/layout/controller.js
2196
 
@@ -2214,6 +2169,7 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
2214
 
2215
 
2216
 
 
2217
  /**
2218
  * Internal dependencies
2219
  */
@@ -2221,22 +2177,25 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
2221
 
2222
 
2223
  var AnalyticsReport = Object(external_this_wp_element_["lazy"])(function () {
2224
- return __webpack_require__.e(/* import() | analytics-report */ 9).then(__webpack_require__.bind(null, 576));
2225
  });
2226
  var AnalyticsSettings = Object(external_this_wp_element_["lazy"])(function () {
2227
- return __webpack_require__.e(/* import() | analytics-settings */ 20).then(__webpack_require__.bind(null, 593));
2228
  });
2229
  var Dashboard = Object(external_this_wp_element_["lazy"])(function () {
2230
- return __webpack_require__.e(/* import() | dashboard */ 28).then(__webpack_require__.bind(null, 577));
2231
  });
2232
  var Homescreen = Object(external_this_wp_element_["lazy"])(function () {
2233
- return Promise.all(/* import() | homescreen */[__webpack_require__.e(1), __webpack_require__.e(2), __webpack_require__.e(52), __webpack_require__.e(4), __webpack_require__.e(32)]).then(__webpack_require__.bind(null, 590));
2234
  });
2235
  var MarketingOverview = Object(external_this_wp_element_["lazy"])(function () {
2236
- return Promise.all(/* import() | marketing-overview */[__webpack_require__.e(2), __webpack_require__.e(36)]).then(__webpack_require__.bind(null, 594));
2237
  });
2238
  var ProfileWizard = Object(external_this_wp_element_["lazy"])(function () {
2239
- return __webpack_require__.e(/* import() | profile-wizard */ 46).then(__webpack_require__.bind(null, 591));
 
 
 
2240
  });
2241
  var PAGES_FILTER = 'woocommerce_admin_pages_list';
2242
  var controller_getPages = function getPages() {
@@ -2249,7 +2208,8 @@ var controller_getPages = function getPages() {
2249
  wpOpenMenu: 'toplevel_page_woocommerce',
2250
  navArgs: {
2251
  id: 'woocommerce-home'
2252
- }
 
2253
  });
2254
 
2255
  if (window.wcAdminFeatures.analytics) {
@@ -2260,7 +2220,8 @@ var controller_getPages = function getPages() {
2260
  wpOpenMenu: 'toplevel_page_wc-admin-path--analytics-overview',
2261
  navArgs: {
2262
  id: 'woocommerce-analytics-overview'
2263
- }
 
2264
  });
2265
  pages.push({
2266
  container: AnalyticsSettings,
@@ -2269,7 +2230,8 @@ var controller_getPages = function getPages() {
2269
  wpOpenMenu: 'toplevel_page_wc-admin-path--analytics-overview',
2270
  navArgs: {
2271
  id: 'woocommerce-analytics-settings'
2272
- }
 
2273
  });
2274
  pages.push({
2275
  container: AnalyticsReport,
@@ -2278,7 +2240,8 @@ var controller_getPages = function getPages() {
2278
  wpOpenMenu: 'toplevel_page_woocommerce',
2279
  navArgs: {
2280
  id: 'woocommerce-analytics-customers'
2281
- }
 
2282
  });
2283
  pages.push({
2284
  container: AnalyticsReport,
@@ -2295,7 +2258,8 @@ var controller_getPages = function getPages() {
2295
 
2296
  return [].concat(initialBreadcrumbs, [['/analytics/revenue', Object(external_this_wp_i18n_["__"])('Analytics', 'woocommerce-admin')], report.title]);
2297
  },
2298
- wpOpenMenu: 'toplevel_page_wc-admin-path--analytics-overview'
 
2299
  });
2300
  }
2301
 
@@ -2307,7 +2271,8 @@ var controller_getPages = function getPages() {
2307
  wpOpenMenu: 'toplevel_page_woocommerce-marketing',
2308
  navArgs: {
2309
  id: 'woocommerce-marketing-overview'
2310
- }
 
2311
  });
2312
  }
2313
 
@@ -2315,7 +2280,29 @@ var controller_getPages = function getPages() {
2315
  pages.push({
2316
  container: ProfileWizard,
2317
  path: '/setup-wizard',
2318
- breadcrumbs: [].concat(initialBreadcrumbs, [['/setup-wizard', Object(external_this_wp_i18n_["__"])('Setup Wizard', 'woocommerce-admin')]])
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2319
  });
2320
  }
2321
 
@@ -2448,31 +2435,52 @@ window.wpNavMenuClassChange = function (page, url) {
2448
  wpWrap.classList.remove('wp-responsive-open');
2449
  };
2450
  // EXTERNAL MODULE: ./node_modules/classnames/index.js
2451
- var classnames = __webpack_require__(7);
2452
  var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames);
2453
 
2454
  // EXTERNAL MODULE: external {"this":["wp","htmlEntities"]}
2455
- var external_this_wp_htmlEntities_ = __webpack_require__(40);
2456
 
2457
  // EXTERNAL MODULE: ./packages/experimental/build-module/index.js
2458
- var build_module = __webpack_require__(31);
2459
 
2460
  // EXTERNAL MODULE: ./client/header/style.scss
2461
- var header_style = __webpack_require__(299);
 
 
 
 
2462
 
2463
  // EXTERNAL MODULE: external {"this":["wp","components"]}
2464
  var external_this_wp_components_ = __webpack_require__(4);
2465
 
2466
  // EXTERNAL MODULE: ./node_modules/gridicons/dist/cross-small.js
2467
- var cross_small = __webpack_require__(121);
2468
  var cross_small_default = /*#__PURE__*/__webpack_require__.n(cross_small);
2469
 
2470
  // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/icon/index.js
2471
- var build_module_icon = __webpack_require__(302);
2472
 
2473
  // EXTERNAL MODULE: ./node_modules/@wordpress/primitives/build-module/svg/index.js
2474
- var svg = __webpack_require__(197);
 
 
 
 
 
 
 
2475
 
 
 
 
 
 
 
 
 
 
 
2476
  // CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/help.js
2477
 
2478
 
@@ -2489,7 +2497,7 @@ var help_help = Object(external_this_wp_element_["createElement"])(svg["b" /* SV
2489
  /* harmony default export */ var library_help = (help_help);
2490
  //# sourceMappingURL=help.js.map
2491
  // EXTERNAL MODULE: ./client/header/activity-panel/style.scss
2492
- var activity_panel_style = __webpack_require__(300);
2493
 
2494
  // CONCATENATED MODULE: ./client/header/activity-panel/toggle-bubble.js
2495
 
@@ -2544,6 +2552,14 @@ var inbox_panel_utils = __webpack_require__(196);
2544
  */
2545
 
2546
 
 
 
 
 
 
 
 
 
2547
  function getUnreadNotes(select) {
2548
  var _select = select(external_this_wc_data_["NOTES_STORE_NAME"]),
2549
  getNotes = _select.getNotes,
@@ -2558,39 +2574,23 @@ function getUnreadNotes(select) {
2558
 
2559
  if (!lastRead) {
2560
  return null;
2561
- } // @todo This method would be more performant if we ask only for 1 item per page with status "unactioned".
2562
- // This change should be applied after having pagination implemented.
2563
-
2564
-
2565
- var notesQuery = {
2566
- page: 1,
2567
- per_page: external_this_wc_data_["QUERY_DEFAULTS"].pageSize,
2568
- status: 'unactioned',
2569
- type: external_this_wc_data_["QUERY_DEFAULTS"].noteTypes,
2570
- orderby: 'date',
2571
- order: 'desc'
2572
- }; // Disable eslint rule requiring `latestNotes` to be defined below because the next two statements
2573
- // depend on `getNotes` to have been called.
2574
- // eslint-disable-next-line @wordpress/no-unused-vars-before-return
2575
 
2576
- var latestNotes = getNotes(notesQuery);
2577
- var isError = Boolean(getNotesError('getNotes', [notesQuery]));
2578
- var isRequesting = isResolving('getNotes', [notesQuery]);
2579
 
2580
  if (isError || isRequesting) {
2581
  return null;
2582
  }
2583
 
 
2584
  var unreadNotesCount = Object(inbox_panel_utils["a" /* getUnreadNotesCount */])(latestNotes, lastRead);
2585
  return unreadNotesCount > 0;
2586
  }
2587
  function getLowStockCount() {
2588
- return Object(settings["g" /* getSetting */])('lowStockCount', 0);
2589
  }
2590
- // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/slicedToArray.js
2591
- var slicedToArray = __webpack_require__(20);
2592
- var slicedToArray_default = /*#__PURE__*/__webpack_require__.n(slicedToArray);
2593
-
2594
  // CONCATENATED MODULE: ./client/header/activity-panel/tab/index.js
2595
 
2596
 
@@ -2875,23 +2875,11 @@ var display_options_DisplayOptions = function DisplayOptions() {
2875
  }));
2876
  });
2877
  };
2878
- // CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/close.js
2879
-
2880
-
2881
- /**
2882
- * WordPress dependencies
2883
- */
2884
 
2885
- var close_close = Object(external_this_wp_element_["createElement"])(svg["b" /* SVG */], {
2886
- xmlns: "http://www.w3.org/2000/svg",
2887
- viewBox: "0 0 24 24"
2888
- }, Object(external_this_wp_element_["createElement"])(svg["a" /* Path */], {
2889
- 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"
2890
- }));
2891
- /* harmony default export */ var library_close = (close_close);
2892
- //# sourceMappingURL=close.js.map
2893
  // EXTERNAL MODULE: ./client/header/activity-panel/highlight-tooltip/style.scss
2894
- var highlight_tooltip_style = __webpack_require__(301);
2895
 
2896
  // CONCATENATED MODULE: ./client/header/activity-panel/highlight-tooltip/index.js
2897
 
@@ -2923,7 +2911,9 @@ function HighlightTooltip(_ref) {
2923
  onClose = _ref.onClose,
2924
  delay = _ref.delay,
2925
  _ref$onShow = _ref.onShow,
2926
- onShow = _ref$onShow === void 0 ? external_lodash_["noop"] : _ref$onShow;
 
 
2927
 
2928
  var _useState = Object(external_this_wp_element_["useState"])(delay > 0 ? null : show),
2929
  _useState2 = slicedToArray_default()(_useState, 2),
@@ -2935,25 +2925,39 @@ function HighlightTooltip(_ref) {
2935
  node = _useState4[0],
2936
  setNode = _useState4[1];
2937
 
 
 
 
 
 
2938
  Object(external_this_wp_element_["useEffect"])(function () {
2939
  var element = document.getElementById(id);
2940
- var container;
2941
 
2942
  if (element && !node) {
2943
  // Add tooltip container
2944
- var parent = element.parentElement;
 
 
 
 
 
 
2945
  container = document.createElement('div');
2946
  container.classList.add('highlight-tooltip__container');
2947
  parent.appendChild(container);
2948
  setNode(container);
2949
  }
2950
 
2951
- var timeoutId = showTooltip(container);
2952
  return function () {
2953
  if (container) {
2954
- var _parent = container.parentElement;
 
2955
 
2956
- _parent.removeChild(container);
 
 
2957
  }
2958
 
2959
  if (timeoutId) {
@@ -2973,37 +2977,54 @@ function HighlightTooltip(_ref) {
2973
  if (!show) {
2974
  node.classList.remove(SHOW_CLASS);
2975
  } else if (node) {
2976
- showTooltip(node);
2977
  }
2978
  }
2979
  }, [show]);
 
 
 
 
 
 
2980
 
2981
- var showTooltip = function showTooltip(container) {
 
 
 
 
 
 
 
2982
  var timeoutId = null;
2983
 
2984
  if (delay > 0) {
2985
  timeoutId = setTimeout(function () {
2986
  timeoutId = null;
2987
-
2988
- if (container) {
2989
- container.classList.add(SHOW_CLASS);
2990
- }
2991
-
2992
- setShowHighlight(show);
2993
- onShow();
2994
  }, delay);
2995
  } else if (!showHighlight) {
2996
- if (container) {
2997
- container.classList.add(SHOW_CLASS);
2998
- }
2999
-
3000
- setShowHighlight(true);
3001
- onShow();
3002
  }
3003
 
3004
  return timeoutId;
3005
  };
3006
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3007
  var triggerClose = function triggerClose() {
3008
  setShowHighlight(false);
3009
 
@@ -3023,13 +3044,14 @@ function HighlightTooltip(_ref) {
3023
  }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Popover"], {
3024
  className: "highlight-tooltip__popover",
3025
  noArrow: false,
 
3026
  focusOnMount: "container"
3027
  }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Card"], {
3028
  size: "medium"
3029
  }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["CardHeader"], null, title, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], {
3030
  isSmall: true,
3031
  onClick: triggerClose,
3032
- icon: library_close
3033
  })), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["CardBody"], null, content || null), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["CardFooter"], {
3034
  isBorderless: true
3035
  }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], {
@@ -3078,11 +3100,17 @@ HighlightTooltip.propTypes = {
3078
  /**
3079
  * A callback for when the tooltip is shown.
3080
  */
3081
- onShow: prop_types_default.a.func
 
 
 
 
 
 
3082
  };
3083
 
3084
  // EXTERNAL MODULE: ./node_modules/@wordpress/dom/build-module/index.js + 2 modules
3085
- var dom_build_module = __webpack_require__(120);
3086
 
3087
  // CONCATENATED MODULE: ./client/hooks/useFocusOnMount.js
3088
  /**
@@ -3355,8 +3383,8 @@ function useFocusOutside(onFocusOutside) {
3355
  var panel_Panel = function Panel(_ref) {
3356
  var content = _ref.content,
3357
  isPanelOpen = _ref.isPanelOpen,
3358
- currentTab = _ref.currentTab,
3359
  isPanelSwitching = _ref.isPanelSwitching,
 
3360
  tab = _ref.tab,
3361
  closePanel = _ref.closePanel,
3362
  clearPanel = _ref.clearPanel;
@@ -3369,8 +3397,28 @@ var panel_Panel = function Panel(_ref) {
3369
  }
3370
  };
3371
 
3372
- var ref = useFocusOnMount();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3373
  var useFocusOutsideProps = useFocusOutside(handleFocusOutside);
 
 
 
 
 
3374
 
3375
  if (!tab) {
3376
  return Object(external_this_wp_element_["createElement"])("div", {
@@ -3391,10 +3439,9 @@ var panel_Panel = function Panel(_ref) {
3391
  tabIndex: 0,
3392
  role: "tabpanel",
3393
  "aria-label": tab.title,
3394
- onTransitionEnd: clearPanel,
3395
- onAnimationEnd: clearPanel
3396
  }, useFocusOutsideProps, {
3397
- ref: ref
3398
  }), Object(external_this_wp_element_["createElement"])("div", {
3399
  className: "woocommerce-layout__activity-panel-content",
3400
  key: 'activity-panel-' + currentTab,
@@ -3408,14 +3455,6 @@ var panel_Panel = function Panel(_ref) {
3408
 
3409
 
3410
 
3411
-
3412
-
3413
-
3414
-
3415
- function activity_panel_createSuper(Derived) { var hasNativeReflectConstruct = activity_panel_isNativeReflectConstruct(); return function _createSuperInternal() { var Super = getPrototypeOf_default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = getPrototypeOf_default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return possibleConstructorReturn_default()(this, result); }; }
3416
-
3417
- function activity_panel_isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
3418
-
3419
  /**
3420
  * External dependencies
3421
  */
@@ -3432,7 +3471,6 @@ function activity_panel_isNativeReflectConstruct() { if (typeof Reflect === "und
3432
 
3433
 
3434
 
3435
-
3436
  /**
3437
  * Internal dependencies
3438
  */
@@ -3447,331 +3485,269 @@ function activity_panel_isNativeReflectConstruct() { if (typeof Reflect === "und
3447
 
3448
 
3449
  var HelpPanel = Object(external_this_wp_element_["lazy"])(function () {
3450
- return Promise.all(/* import() | activity-panels-help */[__webpack_require__.e(53), __webpack_require__.e(6), __webpack_require__.e(7)]).then(__webpack_require__.bind(null, 587));
3451
  });
3452
  var InboxPanel = Object(external_this_wp_element_["lazy"])(function () {
3453
- return Promise.all(/* import() | activity-panels-inbox */[__webpack_require__.e(1), __webpack_require__.e(2), __webpack_require__.e(4), __webpack_require__.e(8)]).then(__webpack_require__.bind(null, 574));
3454
  });
3455
- var activity_panel_ActivityPanel = /*#__PURE__*/function (_Component) {
3456
- inherits_default()(ActivityPanel, _Component);
 
 
3457
 
3458
- var _super = activity_panel_createSuper(ActivityPanel);
 
 
 
3459
 
3460
- function ActivityPanel(props) {
3461
- var _this;
 
 
3462
 
3463
- classCallCheck_default()(this, ActivityPanel);
 
 
 
3464
 
3465
- _this = _super.call(this, props);
3466
- _this.state = {
3467
- isPanelOpen: false,
3468
- mobileOpen: false,
3469
- currentTab: '',
3470
- isPanelSwitching: false
 
 
 
 
 
 
 
 
 
 
3471
  };
3472
- return _this;
3473
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3474
 
3475
- createClass_default()(ActivityPanel, [{
3476
- key: "togglePanel",
3477
- value: function togglePanel(_ref, isTabOpen) {
3478
- var tabName = _ref.name;
3479
- this.setState(function (state) {
3480
- var isPanelSwitching = tabName !== state.currentTab && state.currentTab !== '' && isTabOpen && state.isPanelOpen;
3481
- return {
3482
- isPanelOpen: isTabOpen,
3483
- mobileOpen: isTabOpen,
3484
- currentTab: tabName,
3485
- isPanelSwitching: isPanelSwitching
3486
- };
3487
- });
3488
- }
3489
- }, {
3490
- key: "closePanel",
3491
- value: function closePanel() {
3492
- this.setState(function () {
3493
- return {
3494
- isPanelOpen: false,
3495
- currentTab: ''
3496
- };
3497
- });
3498
  }
3499
- }, {
3500
- key: "clearPanel",
3501
- value: function clearPanel() {
3502
- this.setState(function () {
3503
- return {
3504
- isPanelSwitching: false
3505
- };
3506
- });
3507
- } // On smaller screen, the panel buttons are hidden behind a toggle.
3508
 
3509
- }, {
3510
- key: "toggleMobile",
3511
- value: function toggleMobile() {
3512
- var tabs = this.getTabs();
3513
- this.setState(function (state) {
3514
- return {
3515
- mobileOpen: !state.mobileOpen,
3516
- currentTab: state.mobileOpen ? '' : tabs[0].name,
3517
- isPanelOpen: !state.mobileOpen
3518
- };
3519
- });
3520
- }
3521
- }, {
3522
- key: "handleClickOutside",
3523
- value: function handleClickOutside(event) {
3524
- var isPanelOpen = this.state.isPanelOpen;
3525
- var isClickOnModalOrSnackbar = event.target.closest('.woocommerce-inbox-dismiss-confirmation_modal') || event.target.closest('.components-snackbar__action');
3526
 
3527
- if (isPanelOpen && !isClickOnModalOrSnackbar) {
3528
- this.closePanel();
3529
- }
3530
- }
3531
- }, {
3532
- key: "isHomescreen",
3533
- value: function isHomescreen() {
3534
- var _this$props$getHistor = this.props.getHistory(),
3535
- location = _this$props$getHistor.location;
3536
 
3537
- return location.pathname === '/';
3538
- }
3539
- }, {
3540
- key: "isPerformingSetupTask",
3541
- value: function isPerformingSetupTask() {
3542
- var _this$props = this.props,
3543
- requestingTaskListOptions = _this$props.requestingTaskListOptions,
3544
- setupTaskListComplete = _this$props.setupTaskListComplete,
3545
- setupTaskListHidden = _this$props.setupTaskListHidden,
3546
- query = _this$props.query;
3547
- var isPerformingSetupTask = query.task && !query.path && (requestingTaskListOptions === true || setupTaskListHidden === false && setupTaskListComplete === false);
3548
- return isPerformingSetupTask;
3549
- } // @todo Pull in dynamic unread status/count
3550
 
3551
- }, {
3552
- key: "getTabs",
3553
- value: function getTabs() {
3554
- var _this2 = this;
3555
 
3556
- var _this$props2 = this.props,
3557
- hasUnreadNotes = _this$props2.hasUnreadNotes,
3558
- isEmbedded = _this$props2.isEmbedded,
3559
- setupTaskListComplete = _this$props2.setupTaskListComplete,
3560
- setupTaskListHidden = _this$props2.setupTaskListHidden,
3561
- updateOptions = _this$props2.updateOptions;
3562
- var isPerformingSetupTask = this.isPerformingSetupTask(); // Don't show the inbox on the Home screen.
3563
-
3564
- var showInbox = (isEmbedded || !this.isHomescreen()) && !isPerformingSetupTask;
3565
- var showHelp = this.isHomescreen() && !isEmbedded || isPerformingSetupTask;
3566
- var showDisplayOptions = !isEmbedded && this.isHomescreen() && !isPerformingSetupTask;
3567
- var showStoreSetup = !setupTaskListComplete && !setupTaskListHidden && !isPerformingSetupTask && (!this.isHomescreen() || isEmbedded);
3568
- var inbox = showInbox ? {
3569
- name: 'inbox',
3570
- title: Object(external_this_wp_i18n_["__"])('Inbox', 'woocommerce-admin'),
3571
- icon: Object(external_this_wp_element_["createElement"])("i", {
3572
- className: "material-icons-outlined"
3573
- }, "inbox"),
3574
- unread: hasUnreadNotes
3575
- } : null;
3576
- var setup = showStoreSetup ? {
3577
- name: 'setup',
3578
- title: Object(external_this_wp_i18n_["__"])('Store Setup', 'woocommerce-admin'),
3579
- icon: Object(external_this_wp_element_["createElement"])(setup_progress_SetupProgress, null),
3580
- onClick: function onClick() {
3581
- var currentLocation = window.location.href;
3582
- var homescreenLocation = Object(settings["f" /* getAdminLink */])('admin.php?page=wc-admin'); // Don't navigate if we're already on the homescreen, this will cause an infinite loop
3583
-
3584
- if (currentLocation !== homescreenLocation) {
3585
- // Ensure that if the user is trying to get to the task list they can see it even if
3586
- // it was dismissed.
3587
- if (setupTaskListHidden === 'no') {
3588
- _this2.redirectToHomeScreen();
3589
- } else {
3590
- updateOptions({
3591
- woocommerce_task_list_hidden: 'no'
3592
- }).then(_this2.redirectToHomeScreen);
3593
- }
3594
- }
3595
 
3596
- return null;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3597
  }
3598
- } : null;
3599
- var help = showHelp ? {
3600
- name: 'help',
3601
- title: Object(external_this_wp_i18n_["__"])('Help', 'woocommerce-admin'),
3602
- icon: Object(external_this_wp_element_["createElement"])(build_module_icon["a" /* default */], {
3603
- icon: library_help
3604
- })
3605
- } : null;
3606
- var displayOptions = showDisplayOptions ? {
3607
- component: display_options_DisplayOptions
3608
- } : null;
3609
- return [inbox, setup, displayOptions, help].filter(Boolean);
3610
- }
3611
- }, {
3612
- key: "getPanelContent",
3613
- value: function getPanelContent(tab) {
3614
- var query = this.props.query;
3615
- var task = query.task;
3616
-
3617
- switch (tab) {
3618
- case 'inbox':
3619
- return Object(external_this_wp_element_["createElement"])(InboxPanel, null);
3620
-
3621
- case 'help':
3622
- return Object(external_this_wp_element_["createElement"])(HelpPanel, {
3623
- taskName: task
3624
- });
3625
 
3626
- default:
3627
- return null;
3628
- }
3629
- }
3630
- }, {
3631
- key: "redirectToHomeScreen",
3632
- value: function redirectToHomeScreen() {
3633
- if (Object(utils["f" /* isWCAdmin */])(window.location.href)) {
3634
- Object(external_this_wc_navigation_["getHistory"])().push(Object(external_this_wc_navigation_["getNewPath"])({}, '/', {}));
3635
- } else {
3636
- window.location.href = Object(settings["f" /* getAdminLink */])('admin.php?page=wc-admin');
3637
- }
3638
- }
3639
- }, {
3640
- key: "closedHelpPanelHighlight",
3641
- value: function closedHelpPanelHighlight() {
3642
- var userPreferencesData = this.props.userPreferencesData;
3643
- Object(external_this_wc_tracks_["recordEvent"])('help_tooltip_click');
3644
-
3645
- if (userPreferencesData && userPreferencesData.updateUserPreferences) {
3646
- userPreferencesData.updateUserPreferences({
3647
- help_panel_highlight_shown: 'yes'
 
 
 
 
 
 
 
 
 
3648
  });
3649
- }
 
 
3650
  }
3651
- }, {
3652
- key: "shouldShowHelpTooltip",
3653
- value: function shouldShowHelpTooltip() {
3654
- var _this$props3 = this.props,
3655
- userPreferencesData = _this$props3.userPreferencesData,
3656
- trackedCompletedTasks = _this$props3.trackedCompletedTasks,
3657
- query = _this$props3.query;
3658
- var task = query.task;
3659
- var startedTasks = userPreferencesData && userPreferencesData.task_list_tracked_started_tasks;
3660
- var highlightShown = userPreferencesData && userPreferencesData.help_panel_highlight_shown;
3661
-
3662
- if (task && highlightShown !== 'yes' && (startedTasks || {})[task] > 1 && !trackedCompletedTasks.includes(task)) {
3663
- return true;
3664
- }
3665
 
3666
- return false;
 
 
 
 
3667
  }
3668
- }, {
3669
- key: "render",
3670
- value: function render() {
3671
- var _this3 = this;
3672
-
3673
- var tabs = this.getTabs();
3674
- var _this$state = this.state,
3675
- mobileOpen = _this$state.mobileOpen,
3676
- currentTab = _this$state.currentTab,
3677
- isPanelOpen = _this$state.isPanelOpen;
3678
- var headerId = Object(external_lodash_["uniqueId"])('activity-panel-header_');
3679
- var panelClasses = classnames_default()('woocommerce-layout__activity-panel', {
3680
- 'is-mobile-open': this.state.mobileOpen
3681
- });
3682
- var showHelpHighlightTooltip = this.shouldShowHelpTooltip();
3683
- var hasUnread = tabs.some(function (tab) {
3684
- return tab.unread;
3685
  });
3686
- var viewLabel = hasUnread ? Object(external_this_wp_i18n_["__"])('View Activity Panel, you have unread activity', 'woocommerce-admin') : Object(external_this_wp_i18n_["__"])('View Activity Panel', 'woocommerce-admin');
3687
- return Object(external_this_wp_element_["createElement"])("div", null, Object(external_this_wp_element_["createElement"])(external_this_wc_components_["H"], {
3688
- id: headerId,
3689
- className: "screen-reader-text"
3690
- }, Object(external_this_wp_i18n_["__"])('Store Activity', 'woocommerce-admin')), Object(external_this_wp_element_["createElement"])(external_this_wc_components_["Section"], {
3691
- component: "aside",
3692
- id: "woocommerce-activity-panel",
3693
- "aria-labelledby": headerId
3694
- }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], {
3695
- onClick: function onClick() {
3696
- _this3.toggleMobile();
3697
- },
3698
- label: mobileOpen ? Object(external_this_wp_i18n_["__"])('Close Activity Panel', 'woocommerce-admin') : viewLabel,
3699
- "aria-expanded": mobileOpen,
3700
- className: "woocommerce-layout__activity-panel-mobile-toggle"
3701
- }, mobileOpen ? Object(external_this_wp_element_["createElement"])(cross_small_default.a, null) : Object(external_this_wp_element_["createElement"])(toggle_bubble, {
3702
- hasUnread: hasUnread
3703
- })), Object(external_this_wp_element_["createElement"])("div", {
3704
- className: panelClasses
3705
- }, Object(external_this_wp_element_["createElement"])(tabs_Tabs, {
3706
- tabs: tabs,
3707
- tabOpen: isPanelOpen,
3708
- selectedTab: currentTab,
3709
- onTabClick: function onTabClick(tab, tabOpen) {
3710
- if (tab.onClick) {
3711
- tab.onClick();
3712
- return;
3713
- }
3714
 
3715
- _this3.togglePanel(tab, tabOpen);
3716
- }
3717
- }), Object(external_this_wp_element_["createElement"])(panel_Panel, {
3718
- isPanelOpen: true,
3719
- currentTab: true,
3720
- isPanelSwitching: true,
3721
- tab: Object(external_lodash_["find"])(this.getTabs(), {
3722
- name: currentTab
3723
- }),
3724
- content: this.getPanelContent(currentTab),
3725
- closePanel: function closePanel() {
3726
- return _this3.closePanel();
3727
- },
3728
- clearPanel: function clearPanel() {
3729
- return _this3.clearPanel();
3730
- }
3731
- }))), showHelpHighlightTooltip ? Object(external_this_wp_element_["createElement"])(HighlightTooltip, {
3732
- delay: 1000,
3733
- title: Object(external_this_wp_i18n_["__"])("We're here for help", 'woocommerce-admin'),
3734
- content: Object(external_this_wp_i18n_["__"])('If you have any questions, feel free to explore the WooCommerce docs listed here.', 'woocommerce-admin'),
3735
- closeButtonText: Object(external_this_wp_i18n_["__"])('Got it', 'woocommerce-admin'),
3736
- id: "activity-panel-tab-help",
3737
- onClose: function onClose() {
3738
- return _this3.closedHelpPanelHighlight();
3739
- },
3740
- onShow: function onShow() {
3741
- return Object(external_this_wc_tracks_["recordEvent"])('help_tooltip_view');
3742
- }
3743
- }) : null);
3744
  }
3745
- }]);
3746
 
3747
- return ActivityPanel;
3748
- }(external_this_wp_element_["Component"]);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3749
  activity_panel_ActivityPanel.defaultProps = {
3750
  getHistory: external_this_wc_navigation_["getHistory"]
3751
  };
3752
- /* harmony default export */ var activity_panel = (Object(external_this_wp_compose_["compose"])(Object(external_this_wp_data_["withSelect"])(function (select) {
3753
- var hasUnreadNotes = getUnreadNotes(select);
3754
-
3755
- var _select = select(external_this_wc_data_["OPTIONS_STORE_NAME"]),
3756
- getOption = _select.getOption,
3757
- isResolving = _select.isResolving;
3758
-
3759
- var setupTaskListComplete = getOption('woocommerce_task_list_complete') === 'yes';
3760
- var setupTaskListHidden = getOption('woocommerce_task_list_hidden') === 'yes';
3761
- var requestingTaskListOptions = isResolving('getOption', ['woocommerce_task_list_complete']) || isResolving('getOption', ['woocommerce_task_list_hidden']);
3762
- var trackedCompletedTasks = getOption('woocommerce_task_list_tracked_completed_tasks') || [];
3763
- return {
3764
- hasUnreadNotes: hasUnreadNotes,
3765
- requestingTaskListOptions: requestingTaskListOptions,
3766
- setupTaskListComplete: setupTaskListComplete,
3767
- setupTaskListHidden: setupTaskListHidden,
3768
- trackedCompletedTasks: trackedCompletedTasks
3769
- };
3770
- }), Object(external_this_wp_data_["withDispatch"])(function (dispatch) {
3771
- return {
3772
- updateOptions: dispatch(external_this_wc_data_["OPTIONS_STORE_NAME"]).updateOptions
3773
- };
3774
- }))(activity_panel_ActivityPanel));
3775
  // CONCATENATED MODULE: ./client/lib/platform/index.js
3776
  var ANDROID_PLATFORM = 'android';
3777
  var IOS_PLATFORM = 'ios';
@@ -3813,7 +3789,7 @@ var app_icon_AppIcon = function AppIcon() {
3813
  }));
3814
  };
3815
  // EXTERNAL MODULE: ./client/mobile-banner/style.scss
3816
- var mobile_banner_style = __webpack_require__(303);
3817
 
3818
  // CONCATENATED MODULE: ./client/mobile-banner/constants.js
3819
  // The Play Store link is defined as an exported constant mainly for the sake of testing the Mobile App Banner.
@@ -3903,315 +3879,301 @@ var mobile_banner_MobileAppBanner = function MobileAppBanner(_ref) {
3903
 
3904
  return null;
3905
  };
3906
- // EXTERNAL MODULE: ./client/hooks/useIsScrolled.js
3907
- var useIsScrolled = __webpack_require__(139);
3908
-
3909
- // CONCATENATED MODULE: ./client/header/index.js
3910
-
3911
 
3912
 
3913
-
3914
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
3915
-
3916
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { defineProperty_default()(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
3917
-
3918
  /**
3919
  * External dependencies
3920
  */
3921
 
 
 
 
 
 
3922
 
 
 
 
 
 
3923
 
 
 
 
3924
 
 
 
 
 
 
 
 
 
 
 
3925
 
 
 
3926
 
 
 
 
3927
 
3928
- /**
3929
- * Internal dependencies
3930
- */
3931
 
3932
 
3933
 
 
3934
 
 
3935
 
3936
- var header_Header = function Header(_ref) {
3937
- var sections = _ref.sections,
3938
- _ref$isEmbedded = _ref.isEmbedded,
3939
- isEmbedded = _ref$isEmbedded === void 0 ? false : _ref$isEmbedded,
3940
- query = _ref.query;
3941
- var headerElement = Object(external_this_wp_element_["useRef"])(null);
3942
- var siteTitle = Object(settings["g" /* getSetting */])('siteTitle', '');
3943
- var pageTitle = sections.slice(-1)[0];
3944
- var isScrolled = Object(useIsScrolled["a" /* default */])();
3945
 
3946
- var _useUserPreferences = Object(external_this_wc_data_["useUserPreferences"])(),
3947
- updateUserPreferences = _useUserPreferences.updateUserPreferences,
3948
- userData = objectWithoutProperties_default()(_useUserPreferences, ["updateUserPreferences"]);
 
 
 
3949
 
3950
- var isModalDismissed = userData.android_app_banner_dismissed === 'yes';
3951
- var className = classnames_default()('woocommerce-layout__header', {
3952
- 'is-scrolled': isScrolled
3953
- });
3954
- Object(external_this_wp_element_["useEffect"])(function () {
3955
- if (!isEmbedded) {
3956
- var documentTitle = sections.map(function (section) {
3957
- return Array.isArray(section) ? section[1] : section;
3958
- }).reverse().join(' &lsaquo; ');
3959
- var decodedTitle = Object(external_this_wp_htmlEntities_["decodeEntities"])(Object(external_this_wp_i18n_["sprintf"])(
3960
- /* translators: 1: document title. 2: page title */
3961
- Object(external_this_wp_i18n_["__"])('%1$s &lsaquo; %2$s &#8212; WooCommerce', 'woocommerce-admin'), documentTitle, siteTitle));
3962
 
3963
- if (document.title !== decodedTitle) {
3964
- document.title = decodedTitle;
3965
- }
3966
- }
3967
- }, [isEmbedded, sections, siteTitle]);
3968
 
3969
- var dismissHandler = function dismissHandler() {
3970
- updateUserPreferences({
3971
- android_app_banner_dismissed: 'yes'
3972
- });
3973
- };
3974
 
3975
- return Object(external_this_wp_element_["createElement"])("div", {
3976
- className: className,
3977
- ref: headerElement
3978
- }, !isModalDismissed && Object(external_this_wp_element_["createElement"])(mobile_banner_MobileAppBanner, {
3979
- onDismiss: dismissHandler,
3980
- onInstall: dismissHandler
3981
- }), Object(external_this_wp_element_["createElement"])(build_module["f" /* Text */], {
3982
- className: "woocommerce-layout__header-heading",
3983
- as: "h1",
3984
- variant: "subtitle.small"
3985
- }, Object(external_this_wp_htmlEntities_["decodeEntities"])(pageTitle)), window.wcAdminFeatures['activity-panels'] && Object(external_this_wp_element_["createElement"])(activity_panel, {
3986
- isEmbedded: isEmbedded,
3987
- query: query,
3988
- userPreferencesData: _objectSpread(_objectSpread({}, userData), {}, {
3989
- updateUserPreferences: updateUserPreferences
3990
- })
3991
- }));
3992
  };
3993
- // CONCATENATED MODULE: ./client/layout/notices.js
3994
-
 
 
 
 
 
 
3995
 
 
 
3996
 
 
 
 
3997
 
 
 
3998
 
 
 
 
3999
 
 
 
 
 
 
 
 
 
 
 
4000
 
4001
- function notices_createSuper(Derived) { var hasNativeReflectConstruct = notices_isNativeReflectConstruct(); return function _createSuperInternal() { var Super = getPrototypeOf_default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = getPrototypeOf_default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return possibleConstructorReturn_default()(this, result); }; }
 
4002
 
4003
- function notices_isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
 
 
 
 
4004
 
 
 
 
 
 
 
4005
  /**
4006
- * External dependencies
 
 
 
4007
  */
4008
 
 
 
 
 
 
 
 
4009
 
4010
- var notices_Notices = /*#__PURE__*/function (_Component) {
4011
- inherits_default()(Notices, _Component);
4012
-
4013
- var _super = notices_createSuper(Notices);
 
 
 
4014
 
4015
- function Notices() {
4016
- classCallCheck_default()(this, Notices);
 
 
 
 
 
4017
 
4018
- return _super.apply(this, arguments);
 
4019
  }
4020
 
4021
- createClass_default()(Notices, [{
4022
- key: "render",
4023
- value: function render() {
4024
- return Object(external_this_wp_element_["createElement"])("div", {
4025
- id: "woocommerce-layout__notice-list",
4026
- className: "woocommerce-layout__notice-list"
4027
- });
4028
- }
4029
- }]);
4030
-
4031
- return Notices;
4032
- }(external_this_wp_element_["Component"]);
4033
-
4034
- /* harmony default export */ var layout_notices = (notices_Notices);
4035
- // EXTERNAL MODULE: ./node_modules/@babel/runtime/regenerator/index.js
4036
- var regenerator = __webpack_require__(8);
4037
- var regenerator_default = /*#__PURE__*/__webpack_require__.n(regenerator);
4038
-
4039
- // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/asyncToGenerator.js
4040
- var asyncToGenerator = __webpack_require__(43);
4041
- var asyncToGenerator_default = /*#__PURE__*/__webpack_require__.n(asyncToGenerator);
4042
-
4043
- // EXTERNAL MODULE: ./node_modules/react-spring/web.cjs.js
4044
- var web_cjs = __webpack_require__(182);
4045
-
4046
- // EXTERNAL MODULE: ./client/layout/transient-notices/snackbar/index.js
4047
- var snackbar = __webpack_require__(277);
4048
-
4049
- // CONCATENATED MODULE: ./client/layout/transient-notices/snackbar/list.js
4050
-
4051
-
4052
-
4053
-
4054
-
4055
-
4056
  /**
4057
- * External dependencies
 
 
4058
  */
4059
 
 
 
 
 
 
4060
 
 
 
 
 
 
 
 
 
 
 
4061
 
 
 
 
 
4062
 
4063
-
 
 
 
 
 
 
 
 
 
 
4064
  /**
4065
- * Internal dependencies
 
 
 
4066
  */
4067
 
 
 
 
 
 
4068
 
 
 
 
4069
  /**
4070
- * Renders a list of notices.
4071
  *
4072
- * @param {Object} $0 Props passed to the component.
4073
- * @param {Array} $0.notices Array of notices to render.
4074
- * @param {Function} $0.onRemove Function called when a notice should be removed / dismissed.
4075
- * @param {Function} $0.onRemove2 Function called when a notice should be removed / dismissed.
4076
- * @param {Object} $0.className Name of the class used by the component.
4077
- * @param {Object} $0.children Array of children to be rendered inside the notice list.
4078
- * @return {Object} The rendered notices list.
4079
  */
4080
 
4081
- function SnackbarList(_ref) {
4082
- var notices = _ref.notices,
4083
- className = _ref.className,
4084
- children = _ref.children,
4085
- _ref$onRemove = _ref.onRemove,
4086
- onRemove = _ref$onRemove === void 0 ? external_lodash_["noop"] : _ref$onRemove,
4087
- _ref$onRemove2 = _ref.onRemove2,
4088
- onRemove2 = _ref$onRemove2 === void 0 ? external_lodash_["noop"] : _ref$onRemove2;
4089
- var isReducedMotion = Object(external_this_wp_compose_["useReducedMotion"])();
4090
-
4091
- var _useState = Object(external_this_wp_element_["useState"])(function () {
4092
- return new WeakMap();
4093
- }),
4094
- _useState2 = slicedToArray_default()(_useState, 1),
4095
- refMap = _useState2[0];
4096
 
4097
- var transitions = Object(web_cjs["useTransition"])(notices, function (notice) {
4098
- return notice.id;
4099
- }, {
4100
- from: {
4101
- opacity: 0,
4102
- height: 0
4103
- },
4104
- enter: function enter(item) {
4105
- return /*#__PURE__*/function () {
4106
- var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regenerator_default.a.mark(function _callee(next) {
4107
- return regenerator_default.a.wrap(function _callee$(_context) {
4108
- while (1) {
4109
- switch (_context.prev = _context.next) {
4110
- case 0:
4111
- _context.next = 2;
4112
- return next({
4113
- opacity: 1,
4114
- height: refMap.get(item).offsetHeight
4115
- });
4116
 
4117
- case 2:
4118
- return _context.abrupt("return", _context.sent);
 
 
 
 
 
 
4119
 
4120
- case 3:
4121
- case "end":
4122
- return _context.stop();
4123
- }
4124
- }
4125
- }, _callee);
4126
- }));
4127
 
4128
- return function (_x) {
4129
- return _ref2.apply(this, arguments);
4130
- };
4131
- }();
4132
- },
4133
- leave: function leave() {
4134
- return /*#__PURE__*/function () {
4135
- var _ref3 = asyncToGenerator_default()( /*#__PURE__*/regenerator_default.a.mark(function _callee2(next) {
4136
- return regenerator_default.a.wrap(function _callee2$(_context2) {
4137
- while (1) {
4138
- switch (_context2.prev = _context2.next) {
4139
- case 0:
4140
- _context2.next = 2;
4141
- return next({
4142
- opacity: 0
4143
- });
4144
 
4145
- case 2:
4146
- _context2.next = 4;
4147
- return next({
4148
- height: 0
4149
- });
4150
 
4151
- case 4:
4152
- case "end":
4153
- return _context2.stop();
4154
- }
4155
- }
4156
- }, _callee2);
4157
- }));
4158
 
4159
- return function (_x2) {
4160
- return _ref3.apply(this, arguments);
4161
- };
4162
- }();
4163
- },
4164
- immediate: isReducedMotion
4165
- });
4166
- className = classnames_default()('components-snackbar-list', className);
4167
 
4168
- var removeNotice = function removeNotice(notice) {
4169
- return function () {
4170
- onRemove(notice.id); // To be removed when we're no longer using core/notices2.
4171
 
4172
- onRemove2(notice.id);
4173
- };
 
 
 
 
4174
  };
 
 
4175
 
4176
- return Object(external_this_wp_element_["createElement"])("div", {
4177
- className: className
4178
- }, children, transitions.map(function (_ref4) {
4179
- var notice = _ref4.item,
4180
- key = _ref4.key,
4181
- style = _ref4.props;
4182
- return Object(external_this_wp_element_["createElement"])(web_cjs["animated"].div, {
4183
- key: key,
4184
- style: style
4185
- }, Object(external_this_wp_element_["createElement"])("div", {
4186
- className: "components-snackbar-list__notice-container",
4187
- ref: function ref(_ref5) {
4188
- return _ref5 && refMap.set(notice, _ref5);
4189
- }
4190
- }, Object(external_this_wp_element_["createElement"])(snackbar["a" /* default */], extends_default()({}, Object(external_lodash_["omit"])(notice, ['content']), {
4191
- onRemove: removeNotice(notice)
4192
- }), notice.content)));
4193
- }));
4194
- }
4195
-
4196
- /* harmony default export */ var list = (SnackbarList);
4197
- // EXTERNAL MODULE: ./client/layout/transient-notices/style.scss
4198
- var transient_notices_style = __webpack_require__(305);
4199
-
4200
- // CONCATENATED MODULE: ./client/layout/transient-notices/index.js
4201
 
 
 
 
4202
 
 
 
 
 
 
 
 
 
 
4203
 
4204
 
4205
 
 
 
 
4206
 
4207
 
4208
- function transient_notices_createSuper(Derived) { var hasNativeReflectConstruct = transient_notices_isNativeReflectConstruct(); return function _createSuperInternal() { var Super = getPrototypeOf_default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = getPrototypeOf_default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return possibleConstructorReturn_default()(this, result); }; }
4209
 
4210
- function transient_notices_isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
4211
 
4212
- /**
4213
- * External dependencies
4214
- */
4215
 
4216
 
4217
 
@@ -4224,4569 +4186,4954 @@ function transient_notices_isNativeReflectConstruct() { if (typeof Reflect === "
4224
 
4225
 
4226
 
4227
- var transient_notices_TransientNotices = /*#__PURE__*/function (_Component) {
4228
- inherits_default()(TransientNotices, _Component);
4229
-
4230
- var _super = transient_notices_createSuper(TransientNotices);
4231
 
4232
- function TransientNotices() {
4233
- classCallCheck_default()(this, TransientNotices);
 
 
4234
 
4235
- return _super.apply(this, arguments);
4236
- }
4237
-
4238
- createClass_default()(TransientNotices, [{
4239
- key: "render",
4240
- value: function render() {
4241
- var _this$props = this.props,
4242
- className = _this$props.className,
4243
- notices = _this$props.notices,
4244
- onRemove = _this$props.onRemove,
4245
- onRemove2 = _this$props.onRemove2;
4246
- var classes = classnames_default()('woocommerce-transient-notices', 'components-notices__snackbar', className);
4247
- return Object(external_this_wp_element_["createElement"])(list, {
4248
- notices: notices,
4249
- className: classes,
4250
- onRemove: onRemove,
4251
- onRemove2: onRemove2
4252
- });
4253
- }
4254
- }]);
4255
 
4256
- return TransientNotices;
4257
- }(external_this_wp_element_["Component"]);
 
 
 
4258
 
4259
- transient_notices_TransientNotices.propTypes = {
4260
- /**
4261
- * Additional class name to style the component.
4262
- */
4263
- className: prop_types_default.a.string,
4264
 
4265
- /**
4266
- * Array of notices to be displayed.
4267
- */
4268
- notices: prop_types_default.a.array
4269
- };
4270
- /* harmony default export */ var transient_notices = (Object(external_this_wp_compose_["compose"])(Object(external_this_wp_data_["withSelect"])(function (select) {
4271
- // NOTE: This uses core/notices2, if this file is copied back upstream
4272
- // to Gutenberg this needs to be changed back to just core/notices.
4273
- var notices = select('core/notices').getNotices();
4274
- var notices2 = select('core/notices2').getNotices();
4275
- return {
4276
- notices: notices.concat(notices2)
4277
  };
4278
- }), Object(external_this_wp_data_["withDispatch"])(function (dispatch) {
4279
- return {
4280
- // NOTE: This uses core/notices2, if this file is copied back upstream
4281
- // to Gutenberg this needs to be changed back to core/notices.
4282
- onRemove: dispatch('core/notices').removeNotice,
4283
- onRemove2: dispatch('core/notices2').removeNotice
 
 
 
4284
  };
4285
- }))(transient_notices_TransientNotices));
4286
- // EXTERNAL MODULE: external {"this":["wp","plugins"]}
4287
- var external_this_wp_plugins_ = __webpack_require__(140);
4288
 
4289
- // EXTERNAL MODULE: ./client/navigation/utils.js
4290
- var navigation_utils = __webpack_require__(86);
 
 
 
 
 
 
 
 
 
 
 
4291
 
4292
- // CONCATENATED MODULE: ./client/layout/navigation.js
 
 
 
 
 
4293
 
 
 
 
 
 
 
 
 
4294
 
 
 
 
4295
 
 
 
4296
 
4297
- function navigation_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
 
 
 
 
 
 
 
4298
 
4299
- function navigation_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { navigation_ownKeys(Object(source), true).forEach(function (key) { defineProperty_default()(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { navigation_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
 
 
 
 
 
 
 
4300
 
4301
- /**
4302
- * External dependencies
4303
- */
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4304
 
 
 
 
4305
 
 
 
4306
 
 
4307
 
4308
 
4309
  /**
4310
- * Internal dependencies
4311
  */
4312
 
4313
 
4314
 
4315
 
4316
 
 
 
 
4317
 
4318
- var navigation_NavigationPlugin = function NavigationPlugin() {
4319
- var _useState = Object(external_this_wp_element_["useState"])(Object(external_this_wc_navigation_["getPersistedQuery"])()),
4320
- _useState2 = slicedToArray_default()(_useState, 2),
4321
- persistedQuery = _useState2[0],
4322
- setPersistedQuery = _useState2[1];
4323
 
4324
- var pathIsExcluded = function pathIsExcluded(path) {
4325
- return Object(external_this_wc_navigation_["getQueryExcludedScreens"])().includes(Object(external_this_wc_navigation_["getScreenFromPath"])(path));
4326
- }; // Update the persisted queries when history is updated
4327
 
 
 
 
 
 
 
 
 
4328
 
4329
- Object(external_this_wp_element_["useEffect"])(function () {
4330
- return Object(navigation_utils["a" /* addHistoryListener */])(function () {
4331
- setTimeout(function () {
4332
- if (pathIsExcluded()) {
4333
- return;
4334
- }
4335
 
4336
- setPersistedQuery(Object(external_this_wc_navigation_["getPersistedQuery"])());
4337
- }, 0);
 
 
 
 
 
 
4338
  });
4339
- }, []);
4340
- /**
4341
- * If the current page is embedded, stay with the default urls
4342
- * provided by Navigation because the router isn't present to
4343
- * respond to <Link /> component's manipulation of the url.
4344
- */
4345
 
4346
- if (!Object(utils["f" /* isWCAdmin */])(window.location.href)) {
4347
  return null;
4348
  }
4349
 
4350
- var reports = Object(get_reports["a" /* default */])().filter(function (item) {
4351
- return item.navArgs;
4352
- });
4353
- var pages = controller_getPages().filter(function (page) {
4354
- return page.navArgs;
4355
- }).map(function (page) {
4356
- if (page.path === '/analytics/settings') {
4357
- return navigation_objectSpread(navigation_objectSpread({}, page), {}, {
4358
- breadcrumbs: [Object(external_this_wp_i18n_["__"])('Analytics', 'woocommerce-admin')]
4359
- });
4360
- }
4361
-
4362
- return page;
4363
  });
4364
- return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, pages.map(function (page) {
4365
- return Object(external_this_wp_element_["createElement"])(external_this_wc_navigation_["WooNavigationItem"], {
4366
- item: page.navArgs.id,
4367
- key: page.navArgs.id
4368
- }, Object(external_this_wp_element_["createElement"])(external_this_wc_components_["Link"], {
4369
- className: "components-button",
4370
- href: Object(external_this_wc_navigation_["getNewPath"])(pathIsExcluded(page.path) ? {} : persistedQuery, page.path, {}),
4371
- type: "wc-admin"
4372
- }, page.breadcrumbs[page.breadcrumbs.length - 1]));
4373
- }), reports.map(function (item) {
4374
- return Object(external_this_wp_element_["createElement"])(external_this_wc_navigation_["WooNavigationItem"], {
4375
- item: item.navArgs.id,
4376
- key: item.navArgs.id
4377
- }, Object(external_this_wp_element_["createElement"])(external_this_wc_components_["Link"], {
4378
- className: "components-button",
4379
- href: Object(external_this_wc_navigation_["getNewPath"])(pathIsExcluded(item.report) ? {} : persistedQuery, "/analytics/".concat(item.report), {}),
4380
- type: "wc-admin"
4381
- }, item.title));
4382
- }));
4383
  };
 
 
4384
 
4385
- Object(external_this_wp_plugins_["registerPlugin"])('wc-admin-navigation', {
4386
- render: navigation_NavigationPlugin
4387
- });
4388
- // CONCATENATED MODULE: ./client/layout/index.js
4389
 
4390
 
 
 
 
4391
 
4392
 
4393
 
 
 
 
4394
 
4395
 
 
 
 
 
 
 
4396
 
 
 
 
 
 
 
 
 
 
4397
 
 
 
4398
 
4399
- function layout_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
 
 
4400
 
4401
- function layout_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { layout_ownKeys(Object(source), true).forEach(function (key) { defineProperty_default()(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { layout_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
 
 
4402
 
4403
- function layout_createSuper(Derived) { var hasNativeReflectConstruct = layout_isNativeReflectConstruct(); return function _createSuperInternal() { var Super = getPrototypeOf_default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = getPrototypeOf_default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return possibleConstructorReturn_default()(this, result); }; }
 
 
 
 
 
 
 
 
 
 
 
 
 
4404
 
4405
- function layout_isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
4406
 
4407
  /**
4408
- * External dependencies
4409
  */
4410
 
4411
 
4412
 
 
 
 
 
 
4413
 
 
 
 
 
 
 
 
 
 
4414
 
4415
-
4416
-
4417
-
4418
-
4419
-
 
4420
 
4421
 
4422
  /**
4423
- * Internal dependencies
4424
  */
4425
 
4426
 
4427
 
4428
 
 
 
 
 
4429
 
 
 
 
 
 
 
4430
 
 
 
4431
 
4432
- var StoreAlerts = Object(external_this_wp_element_["lazy"])(function () {
4433
- return Promise.all(/* import() | store-alerts */[__webpack_require__.e(1), __webpack_require__.e(47)]).then(__webpack_require__.bind(null, 595));
4434
- });
4435
- var WCPayUsageModal = Object(external_this_wp_element_["lazy"])(function () {
4436
- return __webpack_require__.e(/* import() | wcpay-usage-modal */ 51).then(__webpack_require__.bind(null, 522));
4437
- });
4438
- var layout_PrimaryLayout = /*#__PURE__*/function (_Component) {
4439
- inherits_default()(PrimaryLayout, _Component);
4440
-
4441
- var _super = layout_createSuper(PrimaryLayout);
4442
-
4443
- function PrimaryLayout() {
4444
- classCallCheck_default()(this, PrimaryLayout);
4445
-
4446
- return _super.apply(this, arguments);
4447
- }
4448
 
4449
- createClass_default()(PrimaryLayout, [{
4450
- key: "render",
4451
- value: function render() {
4452
- var children = this.props.children;
4453
- return Object(external_this_wp_element_["createElement"])("div", {
4454
- className: "woocommerce-layout__primary",
4455
- id: "woocommerce-layout__primary"
4456
- }, window.wcAdminFeatures['store-alerts'] && Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Suspense"], {
4457
- fallback: Object(external_this_wp_element_["createElement"])(external_this_wc_components_["Spinner"], null)
4458
- }, Object(external_this_wp_element_["createElement"])(StoreAlerts, null)), Object(external_this_wp_element_["createElement"])(layout_notices, null), children);
4459
- }
4460
- }]);
4461
-
4462
- return PrimaryLayout;
4463
- }(external_this_wp_element_["Component"]);
4464
-
4465
- var layout_Layout = /*#__PURE__*/function (_Component2) {
4466
- inherits_default()(_Layout, _Component2);
4467
 
4468
- var _super2 = layout_createSuper(_Layout);
 
 
 
 
 
 
 
 
 
 
 
 
4469
 
4470
- function _Layout() {
4471
- classCallCheck_default()(this, _Layout);
4472
 
4473
- return _super2.apply(this, arguments);
4474
- }
4475
 
4476
- createClass_default()(_Layout, [{
4477
- key: "componentDidMount",
4478
- value: function componentDidMount() {
4479
- this.recordPageViewTrack();
4480
- }
4481
- }, {
4482
- key: "componentDidUpdate",
4483
- value: function componentDidUpdate(prevProps) {
4484
- var previousPath = Object(external_lodash_["get"])(prevProps, 'location.pathname');
4485
- var currentPath = Object(external_lodash_["get"])(this.props, 'location.pathname');
4486
 
4487
- if (!previousPath || !currentPath) {
4488
- return;
4489
- }
4490
 
4491
- if (previousPath !== currentPath) {
4492
- this.recordPageViewTrack();
4493
- }
4494
- }
4495
- }, {
4496
- key: "recordPageViewTrack",
4497
- value: function recordPageViewTrack() {
4498
- var _this$props = this.props,
4499
- activePlugins = _this$props.activePlugins,
4500
- installedPlugins = _this$props.installedPlugins,
4501
- isEmbedded = _this$props.isEmbedded,
4502
- isJetpackConnected = _this$props.isJetpackConnected;
4503
- var navigationFlag = {
4504
- has_navigation: !!window.wcNavigation
4505
- };
4506
 
4507
- if (isEmbedded) {
4508
- var _path = document.location.pathname + document.location.search;
4509
 
4510
- Object(external_this_wc_tracks_["recordPageView"])(_path, layout_objectSpread({
4511
- is_embedded: true
4512
- }, navigationFlag));
4513
- return;
4514
- }
4515
 
4516
- var pathname = Object(external_lodash_["get"])(this.props, 'location.pathname');
 
 
 
 
4517
 
4518
- if (!pathname) {
4519
- return;
4520
- } // Remove leading slash, and camel case remaining pathname
4521
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4522
 
4523
- var path = pathname.substring(1).replace(/\//g, '_'); // When pathname is `/` we are on the home screen.
4524
 
4525
- if (path.length === 0) {
4526
- path = 'home_screen';
4527
- }
4528
 
4529
- Object(external_this_wc_tracks_["recordPageView"])(path, layout_objectSpread({
4530
- jetpack_installed: installedPlugins.includes('jetpack'),
4531
- jetpack_active: activePlugins.includes('jetpack'),
4532
- jetpack_connected: isJetpackConnected
4533
- }, navigationFlag));
4534
- }
4535
- }, {
4536
- key: "getQuery",
4537
- value: function getQuery(searchString) {
4538
- if (!searchString) {
4539
- return {};
4540
- }
4541
 
4542
- var search = searchString.substring(1);
4543
- return Object(lib["parse"])(search);
4544
- }
4545
- }, {
4546
- key: "isWCPaySettingsPage",
4547
- value: function isWCPaySettingsPage() {
4548
- var _getQuery = Object(external_this_wc_navigation_["getQuery"])(),
4549
- page = _getQuery.page,
4550
- section = _getQuery.section,
4551
- tab = _getQuery.tab;
4552
 
4553
- return page === 'wc-settings' && tab === 'checkout' && section === 'woocommerce_payments';
4554
- }
4555
- }, {
4556
- key: "render",
4557
- value: function render() {
4558
- var _this$props2 = this.props,
4559
- isEmbedded = _this$props2.isEmbedded,
4560
- restProps = objectWithoutProperties_default()(_this$props2, ["isEmbedded"]);
4561
 
4562
- var _this$props3 = this.props,
4563
- location = _this$props3.location,
4564
- page = _this$props3.page;
4565
- var breadcrumbs = page.breadcrumbs;
4566
- var query = this.getQuery(location && location.search);
4567
- return Object(external_this_wp_element_["createElement"])("div", {
4568
- className: "woocommerce-layout"
4569
- }, Object(external_this_wp_element_["createElement"])(header_Header, {
4570
- sections: Object(external_lodash_["isFunction"])(breadcrumbs) ? breadcrumbs(this.props) : breadcrumbs,
4571
- isEmbedded: isEmbedded,
4572
- query: query
4573
- }), Object(external_this_wp_element_["createElement"])(transient_notices, null), !isEmbedded && Object(external_this_wp_element_["createElement"])(layout_PrimaryLayout, null, Object(external_this_wp_element_["createElement"])("div", {
4574
- className: "woocommerce-layout__main"
4575
- }, Object(external_this_wp_element_["createElement"])(controller_Controller, extends_default()({}, restProps, {
4576
- query: query
4577
- })))), isEmbedded && this.isWCPaySettingsPage() && Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Suspense"], {
4578
- fallback: null
4579
- }, Object(external_this_wp_element_["createElement"])(WCPayUsageModal, null)));
4580
- }
4581
- }]);
4582
 
4583
- return _Layout;
4584
- }(external_this_wp_element_["Component"]);
 
4585
 
4586
- layout_Layout.propTypes = {
4587
- isEmbedded: prop_types_default.a.bool,
4588
- page: prop_types_default.a.shape({
4589
- container: prop_types_default.a.oneOfType([prop_types_default.a.func, prop_types_default.a.object // Support React.lazy
4590
- ]),
4591
- path: prop_types_default.a.string,
4592
- breadcrumbs: prop_types_default.a.oneOfType([prop_types_default.a.func, prop_types_default.a.arrayOf(prop_types_default.a.oneOfType([prop_types_default.a.arrayOf(prop_types_default.a.string), prop_types_default.a.string]))]).isRequired,
4593
- wpOpenMenu: prop_types_default.a.string
4594
- }).isRequired
 
 
 
 
 
 
 
 
 
 
 
 
 
4595
  };
4596
- var Layout = Object(external_this_wp_compose_["compose"])(Object(external_this_wc_data_["withPluginsHydration"])(layout_objectSpread(layout_objectSpread({}, window.wcSettings.plugins || {}), {}, {
4597
- jetpackStatus: window.wcSettings.dataEndpoints && window.wcSettings.dataEndpoints.jetpackStatus || false
4598
- })), Object(external_this_wp_data_["withSelect"])(function (select, _ref) {
4599
- var isEmbedded = _ref.isEmbedded;
4600
 
4601
- // Embedded pages don't send plugin info to Tracks.
4602
- if (isEmbedded) {
4603
- return;
4604
- }
4605
 
4606
- var _select = select(external_this_wc_data_["PLUGINS_STORE_NAME"]),
4607
- getActivePlugins = _select.getActivePlugins,
4608
- getInstalledPlugins = _select.getInstalledPlugins,
4609
- isJetpackConnected = _select.isJetpackConnected;
4610
 
4611
- return {
4612
- activePlugins: getActivePlugins(),
4613
- isJetpackConnected: isJetpackConnected(),
4614
- installedPlugins: getInstalledPlugins()
4615
- };
4616
- }))(layout_Layout);
4617
 
4618
- var layout_PageLayout = /*#__PURE__*/function (_Component3) {
4619
- inherits_default()(_PageLayout, _Component3);
 
4620
 
4621
- var _super3 = layout_createSuper(_PageLayout);
4622
 
4623
- function _PageLayout() {
4624
- classCallCheck_default()(this, _PageLayout);
4625
 
4626
- return _super3.apply(this, arguments);
4627
- }
4628
 
4629
- createClass_default()(_PageLayout, [{
4630
- key: "render",
4631
- value: function render() {
4632
- return Object(external_this_wp_element_["createElement"])(react_router_Router, {
4633
- history: Object(external_this_wc_navigation_["getHistory"])()
4634
- }, Object(external_this_wp_element_["createElement"])(react_router_Switch, null, controller_getPages().map(function (page) {
4635
- return Object(external_this_wp_element_["createElement"])(react_router_Route, {
4636
- key: page.path,
4637
- path: page.path,
4638
- exact: true,
4639
- render: function render(props) {
4640
- return Object(external_this_wp_element_["createElement"])(Layout, extends_default()({
4641
- page: page
4642
- }, props));
4643
- }
4644
- });
4645
- })));
4646
- }
4647
- }]);
4648
 
4649
- return _PageLayout;
4650
- }(external_this_wp_element_["Component"]);
4651
 
4652
- var PageLayout = Object(external_this_wp_compose_["compose"])(window.wcSettings.preloadOptions ? Object(external_this_wc_data_["withOptionsHydration"])(layout_objectSpread({}, window.wcSettings.preloadOptions)) : external_lodash_["identity"])(layout_PageLayout);
4653
 
4654
- var layout_EmbedLayout = function _EmbedLayout() {
4655
- return Object(external_this_wp_element_["createElement"])(Layout, {
4656
- page: {
4657
- breadcrumbs: Object(settings["g" /* getSetting */])('embedBreadcrumbs', [])
4658
- },
4659
- isEmbedded: true
4660
- });
4661
- };
4662
 
4663
- var EmbedLayout = Object(external_this_wp_compose_["compose"])(window.wcSettings.preloadOptions ? Object(external_this_wc_data_["withOptionsHydration"])(layout_objectSpread({}, window.wcSettings.preloadOptions)) : external_lodash_["identity"])(layout_EmbedLayout);
4664
 
4665
- /***/ }),
4666
 
4667
- /***/ 143:
4668
- /***/ (function(module, exports) {
4669
 
4670
- (function() { module.exports = this["wc"]["number"]; }());
4671
 
4672
- /***/ }),
4673
 
4674
- /***/ 15:
4675
- /***/ (function(module, exports) {
 
 
 
 
 
4676
 
4677
- (function() { module.exports = this["wp"]["data"]; }());
 
 
4678
 
4679
- /***/ }),
 
4680
 
4681
- /***/ 152:
4682
- /***/ (function(module, exports, __webpack_require__) {
 
 
4683
 
4684
- "use strict";
4685
- /** @license React v16.13.1
4686
- * react-is.production.min.js
4687
- *
4688
- * Copyright (c) Facebook, Inc. and its affiliates.
4689
- *
4690
- * This source code is licensed under the MIT license found in the
4691
- * LICENSE file in the root directory of this source tree.
4692
- */
4693
-
4694
- var b="function"===typeof Symbol&&Symbol.for,c=b?Symbol.for("react.element"):60103,d=b?Symbol.for("react.portal"):60106,e=b?Symbol.for("react.fragment"):60107,f=b?Symbol.for("react.strict_mode"):60108,g=b?Symbol.for("react.profiler"):60114,h=b?Symbol.for("react.provider"):60109,k=b?Symbol.for("react.context"):60110,l=b?Symbol.for("react.async_mode"):60111,m=b?Symbol.for("react.concurrent_mode"):60111,n=b?Symbol.for("react.forward_ref"):60112,p=b?Symbol.for("react.suspense"):60113,q=b?
4695
- Symbol.for("react.suspense_list"):60120,r=b?Symbol.for("react.memo"):60115,t=b?Symbol.for("react.lazy"):60116,v=b?Symbol.for("react.block"):60121,w=b?Symbol.for("react.fundamental"):60117,x=b?Symbol.for("react.responder"):60118,y=b?Symbol.for("react.scope"):60119;
4696
- function z(a){if("object"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type,a){case l:case m:case e:case g:case f:case p:return a;default:switch(a=a&&a.$$typeof,a){case k:case n:case t:case r:case h:return a;default:return u}}case d:return u}}}function A(a){return z(a)===m}exports.AsyncMode=l;exports.ConcurrentMode=m;exports.ContextConsumer=k;exports.ContextProvider=h;exports.Element=c;exports.ForwardRef=n;exports.Fragment=e;exports.Lazy=t;exports.Memo=r;exports.Portal=d;
4697
- exports.Profiler=g;exports.StrictMode=f;exports.Suspense=p;exports.isAsyncMode=function(a){return A(a)||z(a)===l};exports.isConcurrentMode=A;exports.isContextConsumer=function(a){return z(a)===k};exports.isContextProvider=function(a){return z(a)===h};exports.isElement=function(a){return"object"===typeof a&&null!==a&&a.$$typeof===c};exports.isForwardRef=function(a){return z(a)===n};exports.isFragment=function(a){return z(a)===e};exports.isLazy=function(a){return z(a)===t};
4698
- exports.isMemo=function(a){return z(a)===r};exports.isPortal=function(a){return z(a)===d};exports.isProfiler=function(a){return z(a)===g};exports.isStrictMode=function(a){return z(a)===f};exports.isSuspense=function(a){return z(a)===p};
4699
- exports.isValidElementType=function(a){return"string"===typeof a||"function"===typeof a||a===e||a===m||a===g||a===f||a===p||a===q||"object"===typeof a&&null!==a&&(a.$$typeof===t||a.$$typeof===r||a.$$typeof===h||a.$$typeof===k||a.$$typeof===n||a.$$typeof===w||a.$$typeof===x||a.$$typeof===y||a.$$typeof===v)};exports.typeOf=z;
4700
 
 
 
4701
 
4702
- /***/ }),
 
 
 
4703
 
4704
- /***/ 16:
4705
- /***/ (function(module, exports) {
 
4706
 
4707
- (function() { module.exports = this["moment"]; }());
 
 
 
 
 
 
4708
 
4709
- /***/ }),
 
4710
 
4711
- /***/ 17:
4712
- /***/ (function(module, exports) {
 
 
 
4713
 
4714
- (function() { module.exports = this["wp"]["dataControls"]; }());
4715
 
4716
- /***/ }),
 
 
 
 
4717
 
4718
- /***/ 18:
4719
- /***/ (function(module, exports) {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4720
 
4721
- (function() { module.exports = this["wp"]["compose"]; }());
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4722
 
4723
- /***/ }),
 
 
 
4724
 
4725
- /***/ 182:
4726
- /***/ (function(module, exports, __webpack_require__) {
 
 
 
 
4727
 
4728
- "use strict";
4729
 
 
 
 
4730
 
4731
- Object.defineProperty(exports, '__esModule', { value: true });
4732
 
4733
- function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
4734
 
4735
- var _extends = _interopDefault(__webpack_require__(24));
4736
- var _objectWithoutPropertiesLoose = _interopDefault(__webpack_require__(96));
4737
- var React = __webpack_require__(10);
4738
- var React__default = _interopDefault(React);
4739
- var _inheritsLoose = _interopDefault(__webpack_require__(304));
4740
- var _assertThisInitialized = _interopDefault(__webpack_require__(9));
4741
 
4742
- var is = {
4743
- arr: Array.isArray,
4744
- obj: function obj(a) {
4745
- return Object.prototype.toString.call(a) === '[object Object]';
4746
- },
4747
- fun: function fun(a) {
4748
- return typeof a === 'function';
4749
- },
4750
- str: function str(a) {
4751
- return typeof a === 'string';
4752
- },
4753
- num: function num(a) {
4754
- return typeof a === 'number';
4755
- },
4756
- und: function und(a) {
4757
- return a === void 0;
4758
- },
4759
- nul: function nul(a) {
4760
- return a === null;
4761
- },
4762
- set: function set(a) {
4763
- return a instanceof Set;
4764
- },
4765
- map: function map(a) {
4766
- return a instanceof Map;
4767
- },
4768
- equ: function equ(a, b) {
4769
- if (typeof a !== typeof b) return false;
4770
- if (is.str(a) || is.num(a)) return a === b;
4771
- if (is.obj(a) && is.obj(b) && Object.keys(a).length + Object.keys(b).length === 0) return true;
4772
- var i;
4773
 
4774
- for (i in a) {
4775
- if (!(i in b)) return false;
4776
- }
4777
 
4778
- for (i in b) {
4779
- if (a[i] !== b[i]) return false;
4780
- }
4781
 
4782
- return is.und(i) ? a === b : true;
4783
- }
4784
  };
4785
- function merge(target, lowercase) {
4786
- if (lowercase === void 0) {
4787
- lowercase = true;
4788
- }
4789
 
4790
- return function (object) {
4791
- return (is.arr(object) ? object : Object.keys(object)).reduce(function (acc, element) {
4792
- var key = lowercase ? element[0].toLowerCase() + element.substring(1) : element;
4793
- acc[key] = target(key);
4794
- return acc;
4795
- }, target);
4796
- };
4797
- }
4798
- function useForceUpdate() {
4799
- var _useState = React.useState(false),
4800
- f = _useState[1];
4801
 
4802
- var forceUpdate = React.useCallback(function () {
4803
- return f(function (v) {
4804
- return !v;
4805
- });
4806
- }, []);
4807
- return forceUpdate;
4808
- }
4809
- function withDefault(value, defaultValue) {
4810
- return is.und(value) || is.nul(value) ? defaultValue : value;
4811
- }
4812
- function toArray(a) {
4813
- return !is.und(a) ? is.arr(a) ? a : [a] : [];
4814
- }
4815
- function callProp(obj) {
4816
- for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
4817
- args[_key - 1] = arguments[_key];
4818
- }
4819
 
4820
- return is.fun(obj) ? obj.apply(void 0, args) : obj;
4821
- }
4822
 
4823
- function getForwardProps(props) {
4824
- var to = props.to,
4825
- from = props.from,
4826
- config = props.config,
4827
- onStart = props.onStart,
4828
- onRest = props.onRest,
4829
- onFrame = props.onFrame,
4830
- children = props.children,
4831
- reset = props.reset,
4832
- reverse = props.reverse,
4833
- force = props.force,
4834
- immediate = props.immediate,
4835
- delay = props.delay,
4836
- attach = props.attach,
4837
- destroyed = props.destroyed,
4838
- interpolateTo = props.interpolateTo,
4839
- ref = props.ref,
4840
- lazy = props.lazy,
4841
- forward = _objectWithoutPropertiesLoose(props, ["to", "from", "config", "onStart", "onRest", "onFrame", "children", "reset", "reverse", "force", "immediate", "delay", "attach", "destroyed", "interpolateTo", "ref", "lazy"]);
4842
 
4843
- return forward;
4844
- }
4845
 
4846
- function interpolateTo(props) {
4847
- var forward = getForwardProps(props);
4848
- if (is.und(forward)) return _extends({
4849
- to: forward
4850
- }, props);
4851
- var rest = Object.keys(props).reduce(function (a, k) {
4852
- var _extends2;
4853
 
4854
- return !is.und(forward[k]) ? a : _extends({}, a, (_extends2 = {}, _extends2[k] = props[k], _extends2));
4855
- }, {});
4856
- return _extends({
4857
- to: forward
4858
- }, rest);
4859
- }
4860
- function handleRef(ref, forward) {
4861
- if (forward) {
4862
- // If it's a function, assume it's a ref callback
4863
- if (is.fun(forward)) forward(ref);else if (is.obj(forward)) {
4864
- forward.current = ref;
4865
- }
4866
- }
4867
 
4868
- return ref;
4869
- }
4870
 
4871
- var Animated =
4872
- /*#__PURE__*/
4873
- function () {
4874
- function Animated() {
4875
- this.payload = void 0;
4876
- this.children = [];
4877
- }
4878
 
4879
- var _proto = Animated.prototype;
4880
 
4881
- _proto.getAnimatedValue = function getAnimatedValue() {
4882
- return this.getValue();
4883
- };
4884
 
4885
- _proto.getPayload = function getPayload() {
4886
- return this.payload || this;
4887
- };
4888
 
4889
- _proto.attach = function attach() {};
4890
 
4891
- _proto.detach = function detach() {};
 
 
4892
 
4893
- _proto.getChildren = function getChildren() {
4894
- return this.children;
4895
- };
4896
 
4897
- _proto.addChild = function addChild(child) {
4898
- if (this.children.length === 0) this.attach();
4899
- this.children.push(child);
4900
- };
4901
 
4902
- _proto.removeChild = function removeChild(child) {
4903
- var index = this.children.indexOf(child);
4904
- this.children.splice(index, 1);
4905
- if (this.children.length === 0) this.detach();
4906
- };
4907
 
4908
- return Animated;
4909
- }();
4910
- var AnimatedArray =
4911
- /*#__PURE__*/
4912
- function (_Animated) {
4913
- _inheritsLoose(AnimatedArray, _Animated);
4914
 
4915
- function AnimatedArray() {
4916
- var _this;
4917
 
4918
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
4919
- args[_key] = arguments[_key];
4920
- }
 
 
 
 
 
 
4921
 
4922
- _this = _Animated.call.apply(_Animated, [this].concat(args)) || this;
4923
- _this.payload = [];
 
4924
 
4925
- _this.attach = function () {
4926
- return _this.payload.forEach(function (p) {
4927
- return p instanceof Animated && p.addChild(_assertThisInitialized(_this));
4928
- });
4929
- };
4930
-
4931
- _this.detach = function () {
4932
- return _this.payload.forEach(function (p) {
4933
- return p instanceof Animated && p.removeChild(_assertThisInitialized(_this));
4934
- });
4935
- };
4936
 
4937
- return _this;
4938
- }
 
4939
 
4940
- return AnimatedArray;
4941
- }(Animated);
4942
- var AnimatedObject =
4943
- /*#__PURE__*/
4944
- function (_Animated2) {
4945
- _inheritsLoose(AnimatedObject, _Animated2);
4946
 
4947
- function AnimatedObject() {
4948
- var _this2;
 
 
4949
 
4950
- for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
4951
- args[_key3] = arguments[_key3];
4952
- }
4953
 
4954
- _this2 = _Animated2.call.apply(_Animated2, [this].concat(args)) || this;
4955
- _this2.payload = {};
 
4956
 
4957
- _this2.attach = function () {
4958
- return Object.values(_this2.payload).forEach(function (s) {
4959
- return s instanceof Animated && s.addChild(_assertThisInitialized(_this2));
4960
- });
4961
- };
 
 
 
4962
 
4963
- _this2.detach = function () {
4964
- return Object.values(_this2.payload).forEach(function (s) {
4965
- return s instanceof Animated && s.removeChild(_assertThisInitialized(_this2));
4966
- });
4967
- };
4968
 
4969
- return _this2;
4970
- }
 
 
 
4971
 
4972
- var _proto2 = AnimatedObject.prototype;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4973
 
4974
- _proto2.getValue = function getValue(animated) {
4975
- if (animated === void 0) {
4976
- animated = false;
4977
- }
4978
 
4979
- var payload = {};
4980
 
4981
- for (var _key4 in this.payload) {
4982
- var value = this.payload[_key4];
4983
- if (animated && !(value instanceof Animated)) continue;
4984
- payload[_key4] = value instanceof Animated ? value[animated ? 'getAnimatedValue' : 'getValue']() : value;
4985
- }
4986
 
4987
- return payload;
4988
- };
4989
 
4990
- _proto2.getAnimatedValue = function getAnimatedValue() {
4991
- return this.getValue(true);
4992
- };
4993
 
4994
- return AnimatedObject;
4995
- }(Animated);
4996
 
4997
- var applyAnimatedValues;
4998
- function injectApplyAnimatedValues(fn, transform) {
4999
- applyAnimatedValues = {
5000
- fn: fn,
5001
- transform: transform
5002
- };
5003
- }
5004
- var colorNames;
5005
- function injectColorNames(names) {
5006
- colorNames = names;
5007
- }
5008
- var requestFrame = function requestFrame(cb) {
5009
- return typeof window !== 'undefined' ? window.requestAnimationFrame(cb) : -1;
5010
- };
5011
- var cancelFrame = function cancelFrame(id) {
5012
- typeof window !== 'undefined' && window.cancelAnimationFrame(id);
5013
- };
5014
- function injectFrame(raf, caf) {
5015
- requestFrame = raf;
5016
- cancelFrame = caf;
5017
- }
5018
- var interpolation;
5019
- function injectStringInterpolator(fn) {
5020
- interpolation = fn;
5021
- }
5022
- var now = function now() {
5023
- return Date.now();
5024
- };
5025
- function injectNow(nowFn) {
5026
- now = nowFn;
5027
- }
5028
- var defaultElement;
5029
- function injectDefaultElement(el) {
5030
- defaultElement = el;
5031
- }
5032
- var animatedApi = function animatedApi(node) {
5033
- return node.current;
5034
- };
5035
- function injectAnimatedApi(fn) {
5036
- animatedApi = fn;
5037
- }
5038
- var createAnimatedStyle;
5039
- function injectCreateAnimatedStyle(factory) {
5040
- createAnimatedStyle = factory;
5041
- }
5042
- var manualFrameloop;
5043
- function injectManualFrameloop(callback) {
5044
- manualFrameloop = callback;
5045
- }
5046
 
5047
- var Globals = /*#__PURE__*/Object.freeze({
5048
- get applyAnimatedValues () { return applyAnimatedValues; },
5049
- injectApplyAnimatedValues: injectApplyAnimatedValues,
5050
- get colorNames () { return colorNames; },
5051
- injectColorNames: injectColorNames,
5052
- get requestFrame () { return requestFrame; },
5053
- get cancelFrame () { return cancelFrame; },
5054
- injectFrame: injectFrame,
5055
- get interpolation () { return interpolation; },
5056
- injectStringInterpolator: injectStringInterpolator,
5057
- get now () { return now; },
5058
- injectNow: injectNow,
5059
- get defaultElement () { return defaultElement; },
5060
- injectDefaultElement: injectDefaultElement,
5061
- get animatedApi () { return animatedApi; },
5062
- injectAnimatedApi: injectAnimatedApi,
5063
- get createAnimatedStyle () { return createAnimatedStyle; },
5064
- injectCreateAnimatedStyle: injectCreateAnimatedStyle,
5065
- get manualFrameloop () { return manualFrameloop; },
5066
- injectManualFrameloop: injectManualFrameloop
5067
- });
5068
 
5069
  /**
5070
- * Wraps the `style` property with `AnimatedStyle`.
5071
  */
5072
 
5073
- var AnimatedProps =
5074
- /*#__PURE__*/
5075
- function (_AnimatedObject) {
5076
- _inheritsLoose(AnimatedProps, _AnimatedObject);
5077
 
5078
- function AnimatedProps(props, callback) {
5079
- var _this;
5080
 
5081
- _this = _AnimatedObject.call(this) || this;
5082
- _this.update = void 0;
5083
- _this.payload = !props.style ? props : _extends({}, props, {
5084
- style: createAnimatedStyle(props.style)
5085
- });
5086
- _this.update = callback;
5087
 
5088
- _this.attach();
 
5089
 
5090
- return _this;
5091
  }
5092
 
5093
- return AnimatedProps;
5094
- }(AnimatedObject);
 
 
 
 
 
 
 
5095
 
5096
- var isFunctionComponent = function isFunctionComponent(val) {
5097
- return is.fun(val) && !(val.prototype instanceof React__default.Component);
5098
- };
5099
 
5100
- var createAnimatedComponent = function createAnimatedComponent(Component) {
5101
- var AnimatedComponent = React.forwardRef(function (props, ref) {
5102
- var forceUpdate = useForceUpdate();
5103
- var mounted = React.useRef(true);
5104
- var propsAnimated = React.useRef(null);
5105
- var node = React.useRef(null);
5106
- var attachProps = React.useCallback(function (props) {
5107
- var oldPropsAnimated = propsAnimated.current;
5108
 
5109
- var callback = function callback() {
5110
- var didUpdate = false;
 
5111
 
5112
- if (node.current) {
5113
- didUpdate = applyAnimatedValues.fn(node.current, propsAnimated.current.getAnimatedValue());
5114
- }
5115
 
5116
- if (!node.current || didUpdate === false) {
5117
- // If no referenced node has been found, or the update target didn't have a
5118
- // native-responder, then forceUpdate the animation ...
5119
- forceUpdate();
5120
- }
5121
- };
5122
 
5123
- propsAnimated.current = new AnimatedProps(props, callback);
5124
- oldPropsAnimated && oldPropsAnimated.detach();
5125
- }, []);
5126
- React.useEffect(function () {
5127
- return function () {
5128
- mounted.current = false;
5129
- propsAnimated.current && propsAnimated.current.detach();
5130
- };
5131
- }, []);
5132
- React.useImperativeHandle(ref, function () {
5133
- return animatedApi(node, mounted, forceUpdate);
5134
- });
5135
- attachProps(props);
5136
 
5137
- var _getValue = propsAnimated.current.getValue(),
5138
- scrollTop = _getValue.scrollTop,
5139
- scrollLeft = _getValue.scrollLeft,
5140
- animatedProps = _objectWithoutPropertiesLoose(_getValue, ["scrollTop", "scrollLeft"]); // Functions cannot have refs, see:
5141
- // See: https://github.com/react-spring/react-spring/issues/569
5142
 
5143
 
5144
- var refFn = isFunctionComponent(Component) ? undefined : function (childRef) {
5145
- return node.current = handleRef(childRef, ref);
5146
- };
5147
- return React__default.createElement(Component, _extends({}, animatedProps, {
5148
- ref: refFn
5149
- }));
5150
- });
5151
- return AnimatedComponent;
5152
- };
5153
 
5154
- var active = false;
5155
- var controllers = new Set();
5156
 
5157
- var update = function update() {
5158
- if (!active) return false;
5159
- var time = now();
5160
 
5161
- for (var _iterator = controllers, _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _iterator[Symbol.iterator]();;) {
5162
- var _ref;
 
5163
 
5164
- if (_isArray) {
5165
- if (_i >= _iterator.length) break;
5166
- _ref = _iterator[_i++];
5167
- } else {
5168
- _i = _iterator.next();
5169
- if (_i.done) break;
5170
- _ref = _i.value;
5171
- }
5172
 
5173
- var controller = _ref;
5174
- var isActive = false;
5175
 
5176
- for (var configIdx = 0; configIdx < controller.configs.length; configIdx++) {
5177
- var config = controller.configs[configIdx];
5178
- var endOfAnimation = void 0,
5179
- lastTime = void 0;
5180
 
5181
- for (var valIdx = 0; valIdx < config.animatedValues.length; valIdx++) {
5182
- var animation = config.animatedValues[valIdx]; // If an animation is done, skip, until all of them conclude
5183
 
5184
- if (animation.done) continue;
5185
- var from = config.fromValues[valIdx];
5186
- var to = config.toValues[valIdx];
5187
- var position = animation.lastPosition;
5188
- var isAnimated = to instanceof Animated;
5189
- var velocity = Array.isArray(config.initialVelocity) ? config.initialVelocity[valIdx] : config.initialVelocity;
5190
- if (isAnimated) to = to.getValue(); // Conclude animation if it's either immediate, or from-values match end-state
5191
 
5192
- if (config.immediate) {
5193
- animation.setValue(to);
5194
- animation.done = true;
5195
- continue;
5196
- } // Break animation when string values are involved
5197
 
 
 
 
 
 
 
 
 
 
 
 
5198
 
5199
- if (typeof from === 'string' || typeof to === 'string') {
5200
- animation.setValue(to);
5201
- animation.done = true;
5202
- continue;
5203
- }
 
 
 
 
5204
 
5205
- if (config.duration !== void 0) {
5206
- /** Duration easing */
5207
- position = from + config.easing((time - animation.startTime) / config.duration) * (to - from);
5208
- endOfAnimation = time >= animation.startTime + config.duration;
5209
- } else if (config.decay) {
5210
- /** Decay easing */
5211
- position = from + velocity / (1 - 0.998) * (1 - Math.exp(-(1 - 0.998) * (time - animation.startTime)));
5212
- endOfAnimation = Math.abs(animation.lastPosition - position) < 0.1;
5213
- if (endOfAnimation) to = position;
5214
- } else {
5215
- /** Spring easing */
5216
- lastTime = animation.lastTime !== void 0 ? animation.lastTime : time;
5217
- velocity = animation.lastVelocity !== void 0 ? animation.lastVelocity : config.initialVelocity; // If we lost a lot of frames just jump to the end.
5218
 
5219
- if (time > lastTime + 64) lastTime = time; // http://gafferongames.com/game-physics/fix-your-timestep/
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5220
 
5221
- var numSteps = Math.floor(time - lastTime);
 
5222
 
5223
- for (var i = 0; i < numSteps; ++i) {
5224
- var force = -config.tension * (position - to);
5225
- var damping = -config.friction * velocity;
5226
- var acceleration = (force + damping) / config.mass;
5227
- velocity = velocity + acceleration * 1 / 1000;
5228
- position = position + velocity * 1 / 1000;
5229
- } // Conditions for stopping the spring animation
5230
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5231
 
5232
- var isOvershooting = config.clamp && config.tension !== 0 ? from < to ? position > to : position < to : false;
5233
- var isVelocity = Math.abs(velocity) <= config.precision;
5234
- var isDisplacement = config.tension !== 0 ? Math.abs(to - position) <= config.precision : true;
5235
- endOfAnimation = isOvershooting || isVelocity && isDisplacement;
5236
- animation.lastVelocity = velocity;
5237
- animation.lastTime = time;
5238
- } // Trails aren't done until their parents conclude
5239
 
 
 
 
 
 
 
 
5240
 
5241
- if (isAnimated && !config.toValues[valIdx].done) endOfAnimation = false;
 
 
 
 
 
 
 
5242
 
5243
- if (endOfAnimation) {
5244
- // Ensure that we end up with a round value
5245
- if (animation.value !== to) position = to;
5246
- animation.done = true;
5247
- } else isActive = true;
5248
 
5249
- animation.setValue(position);
5250
- animation.lastPosition = position;
5251
- } // Keep track of updated values only when necessary
5252
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5253
 
5254
- if (controller.props.onFrame) controller.values[config.name] = config.interpolation.getValue();
5255
- } // Update callbacks in the end of the frame
 
5256
 
 
5257
 
5258
- if (controller.props.onFrame) controller.props.onFrame(controller.values); // Either call onEnd or next frame
5259
 
5260
- if (!isActive) {
5261
- controllers.delete(controller);
5262
- controller.stop(true);
5263
- }
5264
- } // Loop over as long as there are controllers ...
5265
 
5266
 
5267
- if (controllers.size) {
5268
- if (manualFrameloop) manualFrameloop();else requestFrame(update);
5269
- } else {
5270
- active = false;
5271
- }
5272
 
5273
- return active;
5274
- };
 
5275
 
5276
- var start = function start(controller) {
5277
- if (!controllers.has(controller)) controllers.add(controller);
5278
 
5279
- if (!active) {
5280
- active = true;
5281
- if (manualFrameloop) requestFrame(manualFrameloop);else requestFrame(update);
5282
- }
5283
- };
5284
 
5285
- var stop = function stop(controller) {
5286
- if (controllers.has(controller)) controllers.delete(controller);
5287
- };
5288
 
5289
- function createInterpolator(range, output, extrapolate) {
5290
- if (typeof range === 'function') {
5291
- return range;
5292
- }
5293
 
5294
- if (Array.isArray(range)) {
5295
- return createInterpolator({
5296
- range: range,
5297
- output: output,
5298
- extrapolate: extrapolate
5299
- });
5300
- }
5301
 
5302
- if (interpolation && typeof range.output[0] === 'string') {
5303
- return interpolation(range);
5304
- }
5305
-
5306
- var config = range;
5307
- var outputRange = config.output;
5308
- var inputRange = config.range || [0, 1];
5309
- var extrapolateLeft = config.extrapolateLeft || config.extrapolate || 'extend';
5310
- var extrapolateRight = config.extrapolateRight || config.extrapolate || 'extend';
 
 
 
 
 
5311
 
5312
- var easing = config.easing || function (t) {
5313
- return t;
 
 
 
5314
  };
5315
 
5316
- return function (input) {
5317
- var range = findRange(input, inputRange);
5318
- return interpolate(input, inputRange[range], inputRange[range + 1], outputRange[range], outputRange[range + 1], easing, extrapolateLeft, extrapolateRight, config.map);
5319
- };
 
 
 
 
 
5320
  }
5321
 
5322
- function interpolate(input, inputMin, inputMax, outputMin, outputMax, easing, extrapolateLeft, extrapolateRight, map) {
5323
- var result = map ? map(input) : input; // Extrapolate
5324
-
5325
- if (result < inputMin) {
5326
- if (extrapolateLeft === 'identity') return result;else if (extrapolateLeft === 'clamp') result = inputMin;
5327
- }
5328
-
5329
- if (result > inputMax) {
5330
- if (extrapolateRight === 'identity') return result;else if (extrapolateRight === 'clamp') result = inputMax;
5331
- }
5332
 
5333
- if (outputMin === outputMax) return outputMin;
5334
- if (inputMin === inputMax) return input <= inputMin ? outputMin : outputMax; // Input Range
 
 
 
 
 
5335
 
5336
- if (inputMin === -Infinity) result = -result;else if (inputMax === Infinity) result = result - inputMin;else result = (result - inputMin) / (inputMax - inputMin); // Easing
5337
 
5338
- result = easing(result); // Output Range
5339
 
5340
- if (outputMin === -Infinity) result = -result;else if (outputMax === Infinity) result = result + outputMin;else result = result * (outputMax - outputMin) + outputMin;
5341
- return result;
5342
- }
5343
 
5344
- function findRange(input, inputRange) {
5345
- for (var i = 1; i < inputRange.length - 1; ++i) {
5346
- if (inputRange[i] >= input) break;
5347
- }
5348
 
5349
- return i - 1;
5350
- }
5351
 
5352
- var AnimatedInterpolation =
5353
- /*#__PURE__*/
5354
- function (_AnimatedArray) {
5355
- _inheritsLoose(AnimatedInterpolation, _AnimatedArray);
5356
 
5357
- function AnimatedInterpolation(parents, range, output, extrapolate) {
5358
- var _this;
5359
 
5360
- _this = _AnimatedArray.call(this) || this;
5361
- _this.calc = void 0;
5362
- _this.payload = parents instanceof AnimatedArray && !(parents instanceof AnimatedInterpolation) ? parents.getPayload() : Array.isArray(parents) ? parents : [parents];
5363
- _this.calc = createInterpolator(range, output, extrapolate);
5364
- return _this;
5365
- }
5366
 
5367
- var _proto = AnimatedInterpolation.prototype;
5368
 
5369
- _proto.getValue = function getValue() {
5370
- return this.calc.apply(this, this.payload.map(function (value) {
5371
- return value.getValue();
5372
- }));
5373
- };
5374
 
5375
- _proto.updateConfig = function updateConfig(range, output, extrapolate) {
5376
- this.calc = createInterpolator(range, output, extrapolate);
5377
- };
5378
 
5379
- _proto.interpolate = function interpolate(range, output, extrapolate) {
5380
- return new AnimatedInterpolation(this, range, output, extrapolate);
5381
- };
5382
 
5383
- return AnimatedInterpolation;
5384
- }(AnimatedArray);
5385
 
5386
- var interpolate$1 = function interpolate(parents, range, output) {
5387
- return parents && new AnimatedInterpolation(parents, range, output);
5388
- };
5389
 
5390
- var config = {
5391
- default: {
5392
- tension: 170,
5393
- friction: 26
5394
- },
5395
- gentle: {
5396
- tension: 120,
5397
- friction: 14
5398
- },
5399
- wobbly: {
5400
- tension: 180,
5401
- friction: 12
5402
- },
5403
- stiff: {
5404
- tension: 210,
5405
- friction: 20
5406
- },
5407
- slow: {
5408
- tension: 280,
5409
- friction: 60
5410
- },
5411
- molasses: {
5412
- tension: 280,
5413
- friction: 120
5414
- }
5415
- };
5416
 
5417
- /** API
5418
- * useChain(references, timeSteps, timeFrame)
5419
- */
5420
 
5421
- function useChain(refs, timeSteps, timeFrame) {
5422
- if (timeFrame === void 0) {
5423
- timeFrame = 1000;
5424
- }
 
5425
 
5426
- var previous = React.useRef();
5427
- React.useEffect(function () {
5428
- if (is.equ(refs, previous.current)) refs.forEach(function (_ref) {
5429
- var current = _ref.current;
5430
- return current && current.start();
5431
- });else if (timeSteps) {
5432
- refs.forEach(function (_ref2, index) {
5433
- var current = _ref2.current;
5434
 
5435
- if (current) {
5436
- var ctrls = current.controllers;
5437
 
5438
- if (ctrls.length) {
5439
- var t = timeFrame * timeSteps[index];
5440
- ctrls.forEach(function (ctrl) {
5441
- ctrl.queue = ctrl.queue.map(function (e) {
5442
- return _extends({}, e, {
5443
- delay: e.delay + t
5444
- });
5445
- });
5446
- ctrl.start();
5447
- });
5448
- }
5449
  }
5450
- });
5451
- } else refs.reduce(function (q, _ref3, rI) {
5452
- var current = _ref3.current;
5453
- return q = q.then(function () {
5454
- return current.start();
5455
- });
5456
- }, Promise.resolve());
5457
- previous.current = refs;
5458
- });
5459
- }
5460
 
5461
- /**
5462
- * Animated works by building a directed acyclic graph of dependencies
5463
- * transparently when you render your Animated components.
5464
- *
5465
- * new Animated.Value(0)
5466
- * .interpolate() .interpolate() new Animated.Value(1)
5467
- * opacity translateY scale
5468
- * style transform
5469
- * View#234 style
5470
- * View#123
5471
- *
5472
- * A) Top Down phase
5473
- * When an AnimatedValue is updated, we recursively go down through this
5474
- * graph in order to find leaf nodes: the views that we flag as needing
5475
- * an update.
5476
- *
5477
- * B) Bottom Up phase
5478
- * When a view is flagged as needing an update, we recursively go back up
5479
- * in order to build the new value that it needs. The reason why we need
5480
- * this two-phases process is to deal with composite props such as
5481
- * transform which can receive values from multiple parents.
5482
- */
5483
- function addAnimatedStyles(node, styles) {
5484
- if ('update' in node) {
5485
- styles.add(node);
5486
- } else {
5487
- node.getChildren().forEach(function (child) {
5488
- return addAnimatedStyles(child, styles);
5489
  });
5490
- }
5491
- }
5492
-
5493
- var AnimatedValue =
5494
- /*#__PURE__*/
5495
- function (_Animated) {
5496
- _inheritsLoose(AnimatedValue, _Animated);
5497
-
5498
- function AnimatedValue(_value) {
5499
- var _this;
5500
-
5501
- _this = _Animated.call(this) || this;
5502
- _this.animatedStyles = new Set();
5503
- _this.value = void 0;
5504
- _this.startPosition = void 0;
5505
- _this.lastPosition = void 0;
5506
- _this.lastVelocity = void 0;
5507
- _this.startTime = void 0;
5508
- _this.lastTime = void 0;
5509
- _this.done = false;
5510
-
5511
- _this.setValue = function (value, flush) {
5512
- if (flush === void 0) {
5513
- flush = true;
5514
- }
5515
-
5516
- _this.value = value;
5517
- if (flush) _this.flush();
5518
- };
5519
 
5520
- _this.value = _value;
5521
- _this.startPosition = _value;
5522
- _this.lastPosition = _value;
5523
- return _this;
5524
  }
5525
 
5526
- var _proto = AnimatedValue.prototype;
5527
-
5528
- _proto.flush = function flush() {
5529
- if (this.animatedStyles.size === 0) {
5530
- addAnimatedStyles(this, this.animatedStyles);
 
 
 
 
 
5531
  }
5532
 
5533
- this.animatedStyles.forEach(function (animatedStyle) {
5534
- return animatedStyle.update();
5535
- });
5536
- };
5537
-
5538
- _proto.clearStyles = function clearStyles() {
5539
- this.animatedStyles.clear();
5540
- };
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5541
 
5542
- _proto.getValue = function getValue() {
5543
- return this.value;
5544
- };
 
5545
 
5546
- _proto.interpolate = function interpolate(range, output, extrapolate) {
5547
- return new AnimatedInterpolation(this, range, output, extrapolate);
5548
- };
5549
 
5550
- return AnimatedValue;
5551
- }(Animated);
5552
 
5553
- var AnimatedValueArray =
5554
- /*#__PURE__*/
5555
- function (_AnimatedArray) {
5556
- _inheritsLoose(AnimatedValueArray, _AnimatedArray);
5557
 
5558
- function AnimatedValueArray(values) {
5559
- var _this;
5560
 
5561
- _this = _AnimatedArray.call(this) || this;
5562
- _this.payload = values.map(function (n) {
5563
- return new AnimatedValue(n);
5564
- });
5565
- return _this;
5566
- }
5567
 
5568
- var _proto = AnimatedValueArray.prototype;
5569
 
5570
- _proto.setValue = function setValue(value, flush) {
5571
- var _this2 = this;
5572
 
5573
- if (flush === void 0) {
5574
- flush = true;
5575
- }
5576
 
5577
- if (Array.isArray(value)) {
5578
- if (value.length === this.payload.length) {
5579
- value.forEach(function (v, i) {
5580
- return _this2.payload[i].setValue(v, flush);
5581
- });
5582
- }
5583
- } else {
5584
- this.payload.forEach(function (p) {
5585
- return p.setValue(value, flush);
5586
- });
5587
- }
5588
- };
5589
 
5590
- _proto.getValue = function getValue() {
5591
- return this.payload.map(function (v) {
5592
- return v.getValue();
5593
- });
5594
- };
5595
 
5596
- _proto.interpolate = function interpolate(range, output) {
5597
- return new AnimatedInterpolation(this, range, output);
5598
- };
5599
 
5600
- return AnimatedValueArray;
5601
- }(AnimatedArray);
5602
 
5603
- var G = 0;
5604
 
5605
- var Controller =
5606
- /*#__PURE__*/
5607
- function () {
5608
- function Controller() {
5609
- var _this = this;
5610
 
5611
- this.id = void 0;
5612
- this.idle = true;
5613
- this.hasChanged = false;
5614
- this.guid = 0;
5615
- this.local = 0;
5616
- this.props = {};
5617
- this.merged = {};
5618
- this.animations = {};
5619
- this.interpolations = {};
5620
- this.values = {};
5621
- this.configs = [];
5622
- this.listeners = [];
5623
- this.queue = [];
5624
- this.localQueue = void 0;
5625
 
5626
- this.getValues = function () {
5627
- return _this.interpolations;
5628
- };
5629
 
5630
- this.id = G++;
5631
- }
5632
- /** update(props)
5633
- * This function filters input props and creates an array of tasks which are executed in .start()
5634
- * Each task is allowed to carry a delay, which means it can execute asnychroneously */
5635
 
5636
 
5637
- var _proto = Controller.prototype;
5638
 
5639
- _proto.update = function update$$1(args) {
5640
- //this._id = n + this.id
5641
- if (!args) return this; // Extract delay and the to-prop from props
5642
 
5643
- var _ref = interpolateTo(args),
5644
- _ref$delay = _ref.delay,
5645
- delay = _ref$delay === void 0 ? 0 : _ref$delay,
5646
- to = _ref.to,
5647
- props = _objectWithoutPropertiesLoose(_ref, ["delay", "to"]);
5648
 
5649
- if (is.arr(to) || is.fun(to)) {
5650
- // If config is either a function or an array queue it up as is
5651
- this.queue.push(_extends({}, props, {
5652
- delay: delay,
5653
- to: to
5654
- }));
5655
- } else if (to) {
5656
- // Otherwise go through each key since it could be delayed individually
5657
- var ops = {};
5658
- Object.entries(to).forEach(function (_ref2) {
5659
- var _to;
5660
 
5661
- var k = _ref2[0],
5662
- v = _ref2[1];
5663
 
5664
- // Fetch delay and create an entry, consisting of the to-props, the delay, and basic props
5665
- var entry = _extends({
5666
- to: (_to = {}, _to[k] = v, _to),
5667
- delay: callProp(delay, k)
5668
- }, props);
5669
 
5670
- var previous = ops[entry.delay] && ops[entry.delay].to;
5671
- ops[entry.delay] = _extends({}, ops[entry.delay], entry, {
5672
- to: _extends({}, previous, entry.to)
5673
- });
5674
- });
5675
- this.queue = Object.values(ops);
5676
- } // Sort queue, so that async calls go last
5677
 
 
 
 
5678
 
5679
- this.queue = this.queue.sort(function (a, b) {
5680
- return a.delay - b.delay;
5681
- }); // Diff the reduced props immediately (they'll contain the from-prop and some config)
5682
 
5683
- this.diff(props);
5684
- return this;
5685
- }
5686
- /** start(onEnd)
5687
- * This function either executes a queue, if present, or starts the frameloop, which animates */
5688
- ;
5689
 
5690
- _proto.start = function start$$1(onEnd) {
5691
- var _this2 = this;
5692
 
5693
- // If a queue is present we must excecute it
5694
- if (this.queue.length) {
5695
- this.idle = false; // Updates can interrupt trailing queues, in that case we just merge values
5696
 
5697
- if (this.localQueue) {
5698
- this.localQueue.forEach(function (_ref3) {
5699
- var _ref3$from = _ref3.from,
5700
- from = _ref3$from === void 0 ? {} : _ref3$from,
5701
- _ref3$to = _ref3.to,
5702
- to = _ref3$to === void 0 ? {} : _ref3$to;
5703
- if (is.obj(from)) _this2.merged = _extends({}, from, _this2.merged);
5704
- if (is.obj(to)) _this2.merged = _extends({}, _this2.merged, to);
5705
- });
5706
- } // The guid helps us tracking frames, a new queue over an old one means an override
5707
- // We discard async calls in that caseÍ
5708
 
5709
 
5710
- var local = this.local = ++this.guid;
5711
- var queue = this.localQueue = this.queue;
5712
- this.queue = []; // Go through each entry and execute it
 
 
 
 
 
5713
 
5714
- queue.forEach(function (_ref4, index) {
5715
- var delay = _ref4.delay,
5716
- props = _objectWithoutPropertiesLoose(_ref4, ["delay"]);
5717
 
5718
- var cb = function cb(finished) {
5719
- if (index === queue.length - 1 && local === _this2.guid && finished) {
5720
- _this2.idle = true;
5721
- if (_this2.props.onRest) _this2.props.onRest(_this2.merged);
5722
- }
5723
 
5724
- if (onEnd) onEnd();
5725
- }; // Entries can be delayed, ansyc or immediate
5726
 
 
 
 
 
 
 
 
 
 
 
 
 
5727
 
5728
- var async = is.arr(props.to) || is.fun(props.to);
 
5729
 
5730
- if (delay) {
5731
- setTimeout(function () {
5732
- if (local === _this2.guid) {
5733
- if (async) _this2.runAsync(props, cb);else _this2.diff(props).start(cb);
5734
- }
5735
- }, delay);
5736
- } else if (async) _this2.runAsync(props, cb);else _this2.diff(props).start(cb);
5737
- });
5738
- } // Otherwise we kick of the frameloop
5739
- else {
5740
- if (is.fun(onEnd)) this.listeners.push(onEnd);
5741
- if (this.props.onStart) this.props.onStart();
5742
 
5743
- start(this);
5744
- }
5745
 
5746
- return this;
5747
- };
5748
 
5749
- _proto.stop = function stop$$1(finished) {
5750
- this.listeners.forEach(function (onEnd) {
5751
- return onEnd(finished);
5752
- });
5753
- this.listeners = [];
5754
- return this;
5755
  }
5756
- /** Pause sets onEnd listeners free, but also removes the controller from the frameloop */
5757
- ;
5758
-
5759
- _proto.pause = function pause(finished) {
5760
- this.stop(true);
5761
- if (finished) stop(this);
5762
- return this;
5763
- };
5764
-
5765
- _proto.runAsync = function runAsync(_ref5, onEnd) {
5766
- var _this3 = this;
5767
 
5768
- var delay = _ref5.delay,
5769
- props = _objectWithoutPropertiesLoose(_ref5, ["delay"]);
 
 
 
 
 
 
 
 
5770
 
5771
- var local = this.local; // If "to" is either a function or an array it will be processed async, therefor "to" should be empty right now
5772
- // If the view relies on certain values "from" has to be present
 
5773
 
5774
- var queue = Promise.resolve(undefined);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5775
 
5776
- if (is.arr(props.to)) {
5777
- var _loop = function _loop(i) {
5778
- var index = i;
5779
 
5780
- var fresh = _extends({}, props, interpolateTo(props.to[index]));
 
 
 
 
5781
 
5782
- if (is.arr(fresh.config)) fresh.config = fresh.config[index];
5783
- queue = queue.then(function () {
5784
- //this.stop()
5785
- if (local === _this3.guid) return new Promise(function (r) {
5786
- return _this3.diff(fresh).start(r);
5787
- });
5788
- });
5789
- };
5790
 
5791
- for (var i = 0; i < props.to.length; i++) {
5792
- _loop(i);
 
 
 
 
 
 
 
5793
  }
5794
- } else if (is.fun(props.to)) {
5795
- var index = 0;
5796
- var last;
5797
- queue = queue.then(function () {
5798
- return props.to( // next(props)
5799
- function (p) {
5800
- var fresh = _extends({}, props, interpolateTo(p));
5801
 
5802
- if (is.arr(fresh.config)) fresh.config = fresh.config[index];
5803
- index++; //this.stop()
 
 
 
 
 
 
 
 
 
 
5804
 
5805
- if (local === _this3.guid) return last = new Promise(function (r) {
5806
- return _this3.diff(fresh).start(r);
5807
- });
5808
- return;
5809
- }, // cancel()
5810
- function (finished) {
5811
- if (finished === void 0) {
5812
- finished = true;
5813
- }
 
5814
 
5815
- return _this3.stop(finished);
5816
- }).then(function () {
5817
- return last;
5818
- });
5819
- });
5820
  }
 
 
 
 
 
 
5821
 
5822
- queue.then(onEnd);
5823
- };
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5824
 
5825
- _proto.diff = function diff(props) {
5826
- var _this4 = this;
5827
 
5828
- this.props = _extends({}, this.props, props);
5829
- var _this$props = this.props,
5830
- _this$props$from = _this$props.from,
5831
- from = _this$props$from === void 0 ? {} : _this$props$from,
5832
- _this$props$to = _this$props.to,
5833
- to = _this$props$to === void 0 ? {} : _this$props$to,
5834
- _this$props$config = _this$props.config,
5835
- config = _this$props$config === void 0 ? {} : _this$props$config,
5836
- reverse = _this$props.reverse,
5837
- attach = _this$props.attach,
5838
- reset = _this$props.reset,
5839
- immediate = _this$props.immediate; // Reverse values when requested
 
 
5840
 
5841
- if (reverse) {
5842
- var _ref6 = [to, from];
5843
- from = _ref6[0];
5844
- to = _ref6[1];
5845
- } // This will collect all props that were ever set, reset merged props when necessary
5846
 
 
 
 
 
5847
 
5848
- this.merged = _extends({}, from, this.merged, to);
5849
- this.hasChanged = false; // Attachment handling, trailed springs can "attach" themselves to a previous spring
 
 
 
 
5850
 
5851
- var target = attach && attach(this); // Reduces input { name: value } pairs into animated values
 
 
5852
 
5853
- this.animations = Object.entries(this.merged).reduce(function (acc, _ref7) {
5854
- var name = _ref7[0],
5855
- value = _ref7[1];
5856
- // Issue cached entries, except on reset
5857
- var entry = acc[name] || {}; // Figure out what the value is supposed to be
 
 
 
 
 
 
 
 
 
 
 
 
5858
 
5859
- var isNumber = is.num(value);
5860
- var isString = is.str(value) && !value.startsWith('#') && !/\d/.test(value) && !colorNames[value];
5861
- var isArray = is.arr(value);
5862
- var isInterpolation = !isNumber && !isArray && !isString;
5863
- var fromValue = !is.und(from[name]) ? from[name] : value;
5864
- var toValue = isNumber || isArray ? value : isString ? value : 1;
5865
- var toConfig = callProp(config, name);
5866
- if (target) toValue = target.animations[name].parent;
5867
- var parent = entry.parent,
5868
- interpolation$$1 = entry.interpolation,
5869
- toValues = toArray(target ? toValue.getPayload() : toValue),
5870
- animatedValues;
5871
- var newValue = value;
5872
- if (isInterpolation) newValue = interpolation({
5873
- range: [0, 1],
5874
- output: [value, value]
5875
- })(1);
5876
- var currentValue = interpolation$$1 && interpolation$$1.getValue(); // Change detection flags
5877
 
5878
- var isFirst = is.und(parent);
5879
- var isActive = !isFirst && entry.animatedValues.some(function (v) {
5880
- return !v.done;
5881
- });
5882
- var currentValueDiffersFromGoal = !is.equ(newValue, currentValue);
5883
- var hasNewGoal = !is.equ(newValue, entry.previous);
5884
- var hasNewConfig = !is.equ(toConfig, entry.config); // Change animation props when props indicate a new goal (new value differs from previous one)
5885
- // and current values differ from it. Config changes trigger a new update as well (though probably shouldn't?)
5886
 
5887
- if (reset || hasNewGoal && currentValueDiffersFromGoal || hasNewConfig) {
5888
- var _extends2;
5889
 
5890
- // Convert regular values into animated values, ALWAYS re-use if possible
5891
- if (isNumber || isString) parent = interpolation$$1 = entry.parent || new AnimatedValue(fromValue);else if (isArray) parent = interpolation$$1 = entry.parent || new AnimatedValueArray(fromValue);else if (isInterpolation) {
5892
- var prev = entry.interpolation && entry.interpolation.calc(entry.parent.value);
5893
- prev = prev !== void 0 && !reset ? prev : fromValue;
5894
 
5895
- if (entry.parent) {
5896
- parent = entry.parent;
5897
- parent.setValue(0, false);
5898
- } else parent = new AnimatedValue(0);
5899
 
5900
- var range = {
5901
- output: [prev, value]
5902
- };
5903
 
5904
- if (entry.interpolation) {
5905
- interpolation$$1 = entry.interpolation;
5906
- entry.interpolation.updateConfig(range);
5907
- } else interpolation$$1 = parent.interpolate(range);
5908
- }
5909
- toValues = toArray(target ? toValue.getPayload() : toValue);
5910
- animatedValues = toArray(parent.getPayload());
5911
- if (reset && !isInterpolation) parent.setValue(fromValue, false);
5912
- _this4.hasChanged = true; // Reset animated values
5913
 
5914
- animatedValues.forEach(function (value) {
5915
- value.startPosition = value.value;
5916
- value.lastPosition = value.value;
5917
- value.lastVelocity = isActive ? value.lastVelocity : undefined;
5918
- value.lastTime = isActive ? value.lastTime : undefined;
5919
- value.startTime = now();
5920
- value.done = false;
5921
- value.animatedStyles.clear();
5922
- }); // Set immediate values
5923
 
5924
- if (callProp(immediate, name)) {
5925
- parent.setValue(isInterpolation ? toValue : value, false);
5926
- }
5927
 
5928
- return _extends({}, acc, (_extends2 = {}, _extends2[name] = _extends({}, entry, {
5929
- name: name,
5930
- parent: parent,
5931
- interpolation: interpolation$$1,
5932
- animatedValues: animatedValues,
5933
- toValues: toValues,
5934
- previous: newValue,
5935
- config: toConfig,
5936
- fromValues: toArray(parent.getValue()),
5937
- immediate: callProp(immediate, name),
5938
- initialVelocity: withDefault(toConfig.velocity, 0),
5939
- clamp: withDefault(toConfig.clamp, false),
5940
- precision: withDefault(toConfig.precision, 0.01),
5941
- tension: withDefault(toConfig.tension, 170),
5942
- friction: withDefault(toConfig.friction, 26),
5943
- mass: withDefault(toConfig.mass, 1),
5944
- duration: toConfig.duration,
5945
- easing: withDefault(toConfig.easing, function (t) {
5946
- return t;
5947
- }),
5948
- decay: toConfig.decay
5949
- }), _extends2));
5950
- } else {
5951
- if (!currentValueDiffersFromGoal) {
5952
- var _extends3;
5953
 
5954
- // So ... the current target value (newValue) appears to be different from the previous value,
5955
- // which normally constitutes an update, but the actual value (currentValue) matches the target!
5956
- // In order to resolve this without causing an animation update we silently flag the animation as done,
5957
- // which it technically is. Interpolations also needs a config update with their target set to 1.
5958
- if (isInterpolation) {
5959
- parent.setValue(1, false);
5960
- interpolation$$1.updateConfig({
5961
- output: [newValue, newValue]
5962
- });
5963
- }
5964
 
5965
- parent.done = true;
5966
- _this4.hasChanged = true;
5967
- return _extends({}, acc, (_extends3 = {}, _extends3[name] = _extends({}, acc[name], {
5968
- previous: newValue
5969
- }), _extends3));
5970
- }
5971
 
5972
- return acc;
5973
- }
5974
- }, this.animations);
5975
 
5976
- if (this.hasChanged) {
5977
- // Make animations available to frameloop
5978
- this.configs = Object.values(this.animations);
5979
- this.values = {};
5980
- this.interpolations = {};
5981
 
5982
- for (var key in this.animations) {
5983
- this.interpolations[key] = this.animations[key].interpolation;
5984
- this.values[key] = this.animations[key].interpolation.getValue();
5985
- }
5986
- }
5987
 
5988
- return this;
5989
- };
 
 
 
 
 
 
 
5990
 
5991
- _proto.destroy = function destroy() {
5992
- this.stop();
5993
- this.props = {};
5994
- this.merged = {};
5995
- this.animations = {};
5996
- this.interpolations = {};
5997
- this.values = {};
5998
- this.configs = [];
5999
- this.local = 0;
6000
- };
6001
 
6002
- return Controller;
6003
- }();
6004
 
6005
- /** API
6006
- * const props = useSprings(number, [{ ... }, { ... }, ...])
6007
- * const [props, set] = useSprings(number, (i, controller) => ({ ... }))
6008
- */
6009
 
6010
- var useSprings = function useSprings(length, props) {
6011
- var mounted = React.useRef(false);
6012
- var ctrl = React.useRef();
6013
- var isFn = is.fun(props); // The controller maintains the animation values, starts and stops animations
6014
 
6015
- var _useMemo = React.useMemo(function () {
6016
- // Remove old controllers
6017
- if (ctrl.current) {
6018
- ctrl.current.map(function (c) {
6019
- return c.destroy();
6020
- });
6021
- ctrl.current = undefined;
6022
- }
6023
 
6024
- var ref;
6025
- return [new Array(length).fill().map(function (_, i) {
6026
- var ctrl = new Controller();
6027
- var newProps = isFn ? callProp(props, i, ctrl) : props[i];
6028
- if (i === 0) ref = newProps.ref;
6029
- ctrl.update(newProps);
6030
- if (!ref) ctrl.start();
6031
- return ctrl;
6032
- }), ref];
6033
- }, [length]),
6034
- controllers = _useMemo[0],
6035
- ref = _useMemo[1];
6036
 
6037
- ctrl.current = controllers; // The hooks reference api gets defined here ...
 
6038
 
6039
- var api = React.useImperativeHandle(ref, function () {
6040
- return {
6041
- start: function start() {
6042
- return Promise.all(ctrl.current.map(function (c) {
6043
- return new Promise(function (r) {
6044
- return c.start(r);
6045
- });
6046
- }));
6047
- },
6048
- stop: function stop(finished) {
6049
- return ctrl.current.forEach(function (c) {
6050
- return c.stop(finished);
6051
- });
6052
- },
6053
 
6054
- get controllers() {
6055
- return ctrl.current;
6056
- }
6057
 
6058
- };
6059
- }); // This function updates the controllers
6060
 
6061
- var updateCtrl = React.useMemo(function () {
6062
- return function (updateProps) {
6063
- return ctrl.current.map(function (c, i) {
6064
- c.update(isFn ? callProp(updateProps, i, c) : updateProps[i]);
6065
- if (!ref) c.start();
6066
- });
6067
- };
6068
- }, [length]); // Update controller if props aren't functional
6069
 
6070
- React.useEffect(function () {
6071
- if (mounted.current) {
6072
- if (!isFn) updateCtrl(props);
6073
- } else if (!ref) ctrl.current.forEach(function (c) {
6074
- return c.start();
6075
- });
6076
- }); // Update mounted flag and destroy controller on unmount
6077
 
6078
- React.useEffect(function () {
6079
- return mounted.current = true, function () {
6080
- return ctrl.current.forEach(function (c) {
6081
- return c.destroy();
6082
- });
6083
- };
6084
- }, []); // Return animated props, or, anim-props + the update-setter above
6085
 
6086
- var propValues = ctrl.current.map(function (c) {
6087
- return c.getValues();
6088
- });
6089
- return isFn ? [propValues, updateCtrl, function (finished) {
6090
- return ctrl.current.forEach(function (c) {
6091
- return c.pause(finished);
6092
- });
6093
- }] : propValues;
6094
- };
6095
 
6096
- /** API
6097
- * const props = useSpring({ ... })
6098
- * const [props, set] = useSpring(() => ({ ... }))
6099
- */
6100
 
6101
- var useSpring = function useSpring(props) {
6102
- var isFn = is.fun(props);
6103
 
6104
- var _useSprings = useSprings(1, isFn ? props : [props]),
6105
- result = _useSprings[0],
6106
- set = _useSprings[1],
6107
- pause = _useSprings[2];
6108
 
6109
- return isFn ? [result[0], set, pause] : result;
6110
- };
6111
 
6112
- /** API
6113
- * const trails = useTrail(number, { ... })
6114
- * const [trails, set] = useTrail(number, () => ({ ... }))
6115
- */
6116
 
6117
- var useTrail = function useTrail(length, props) {
6118
- var mounted = React.useRef(false);
6119
- var isFn = is.fun(props);
6120
- var updateProps = callProp(props);
6121
- var instances = React.useRef();
6122
 
6123
- var _useSprings = useSprings(length, function (i, ctrl) {
6124
- if (i === 0) instances.current = [];
6125
- instances.current.push(ctrl);
6126
- return _extends({}, updateProps, {
6127
- config: callProp(updateProps.config, i),
6128
- attach: i > 0 && function () {
6129
- return instances.current[i - 1];
6130
- }
6131
- });
6132
- }),
6133
- result = _useSprings[0],
6134
- set = _useSprings[1],
6135
- pause = _useSprings[2]; // Set up function to update controller
6136
 
 
6137
 
6138
- var updateCtrl = React.useMemo(function () {
6139
- return function (props) {
6140
- return set(function (i, ctrl) {
6141
- var last = props.reverse ? i === 0 : length - 1 === i;
6142
- var attachIdx = props.reverse ? i + 1 : i - 1;
6143
- var attachController = instances.current[attachIdx];
6144
- return _extends({}, props, {
6145
- config: callProp(props.config || updateProps.config, i),
6146
- attach: attachController && function () {
6147
- return attachController;
6148
- }
6149
- });
6150
- });
6151
- };
6152
- }, [length, updateProps.reverse]); // Update controller if props aren't functional
6153
 
6154
- React.useEffect(function () {
6155
- return void (mounted.current && !isFn && updateCtrl(props));
6156
- }); // Update mounted flag and destroy controller on unmount
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6157
 
6158
- React.useEffect(function () {
6159
- return void (mounted.current = true);
6160
- }, []);
6161
- return isFn ? [result, updateCtrl, pause] : result;
 
 
 
 
 
 
6162
  };
 
 
 
 
6163
 
6164
- /** API
6165
- * const transitions = useTransition(items, itemKeys, { ... })
6166
- * const [transitions, update] = useTransition(items, itemKeys, () => ({ ... }))
6167
- */
 
 
 
 
 
 
 
6168
 
6169
- var guid = 0;
6170
- var ENTER = 'enter';
6171
- var LEAVE = 'leave';
6172
- var UPDATE = 'update';
 
 
 
 
 
 
 
 
 
 
 
 
 
6173
 
6174
- var mapKeys = function mapKeys(items, keys) {
6175
- return (typeof keys === 'function' ? items.map(keys) : toArray(keys)).map(String);
6176
- };
6177
 
6178
- var get = function get(props) {
6179
- var items = props.items,
6180
- _props$keys = props.keys,
6181
- keys = _props$keys === void 0 ? function (item) {
6182
- return item;
6183
- } : _props$keys,
6184
- rest = _objectWithoutPropertiesLoose(props, ["items", "keys"]);
 
 
 
 
 
 
 
 
 
 
 
 
6185
 
6186
- items = toArray(items !== void 0 ? items : null);
 
 
 
 
 
 
 
 
 
 
 
 
6187
  return _extends({
6188
- items: items,
6189
- keys: mapKeys(items, keys)
6190
  }, rest);
6191
- };
6192
-
6193
- function useTransition(input, keyTransform, config) {
6194
- var props = _extends({
6195
- items: input,
6196
- keys: keyTransform || function (i) {
6197
- return i;
6198
  }
6199
- }, config);
6200
 
6201
- var _get = get(props),
6202
- _get$lazy = _get.lazy,
6203
- lazy = _get$lazy === void 0 ? false : _get$lazy,
6204
- _get$unique = _get.unique,
6205
- _get$reset = _get.reset,
6206
- reset = _get$reset === void 0 ? false : _get$reset,
6207
- enter = _get.enter,
6208
- leave = _get.leave,
6209
- update = _get.update,
6210
- onDestroyed = _get.onDestroyed,
6211
- keys = _get.keys,
6212
- items = _get.items,
6213
- onFrame = _get.onFrame,
6214
- _onRest = _get.onRest,
6215
- onStart = _get.onStart,
6216
- ref = _get.ref,
6217
- extra = _objectWithoutPropertiesLoose(_get, ["lazy", "unique", "reset", "enter", "leave", "update", "onDestroyed", "keys", "items", "onFrame", "onRest", "onStart", "ref"]);
6218
 
6219
- var forceUpdate = useForceUpdate();
6220
- var mounted = React.useRef(false);
6221
- var state = React.useRef({
6222
- mounted: false,
6223
- first: true,
6224
- deleted: [],
6225
- current: {},
6226
- transitions: [],
6227
- prevProps: {},
6228
- paused: !!props.ref,
6229
- instances: !mounted.current && new Map(),
6230
- forceUpdate: forceUpdate
6231
- });
6232
- React.useImperativeHandle(props.ref, function () {
6233
- return {
6234
- start: function start() {
6235
- return Promise.all(Array.from(state.current.instances).map(function (_ref) {
6236
- var c = _ref[1];
6237
- return new Promise(function (r) {
6238
- return c.start(r);
6239
- });
6240
- }));
6241
- },
6242
- stop: function stop(finished) {
6243
- return Array.from(state.current.instances).forEach(function (_ref2) {
6244
- var c = _ref2[1];
6245
- return c.stop(finished);
6246
- });
6247
- },
6248
 
6249
- get controllers() {
6250
- return Array.from(state.current.instances).map(function (_ref3) {
6251
- var c = _ref3[1];
6252
- return c;
6253
- });
6254
- }
6255
 
6256
- };
6257
- }); // Update state
 
6258
 
6259
- state.current = diffItems(state.current, props);
 
 
6260
 
6261
- if (state.current.changed) {
6262
- // Update state
6263
- state.current.transitions.forEach(function (transition) {
6264
- var slot = transition.slot,
6265
- from = transition.from,
6266
- to = transition.to,
6267
- config = transition.config,
6268
- trail = transition.trail,
6269
- key = transition.key,
6270
- item = transition.item;
6271
- if (!state.current.instances.has(key)) state.current.instances.set(key, new Controller()); // update the map object
6272
 
6273
- var ctrl = state.current.instances.get(key);
6274
 
6275
- var newProps = _extends({}, extra, {
6276
- to: to,
6277
- from: from,
6278
- config: config,
6279
- ref: ref,
6280
- onRest: function onRest(values) {
6281
- if (state.current.mounted) {
6282
- if (transition.destroyed) {
6283
- // If no ref is given delete destroyed items immediately
6284
- if (!ref && !lazy) cleanUp(state, key);
6285
- if (onDestroyed) onDestroyed(item);
6286
- } // A transition comes to rest once all its springs conclude
6287
 
 
 
 
 
6288
 
6289
- var curInstances = Array.from(state.current.instances);
6290
- var active = curInstances.some(function (_ref4) {
6291
- var c = _ref4[1];
6292
- return !c.idle;
6293
- });
6294
- if (!active && (ref || lazy) && state.current.deleted.length > 0) cleanUp(state);
6295
- if (_onRest) _onRest(item, slot, values);
6296
- }
6297
- },
6298
- onStart: onStart && function () {
6299
- return onStart(item, slot);
6300
- },
6301
- onFrame: onFrame && function (values) {
6302
- return onFrame(item, slot, values);
6303
- },
6304
- delay: trail,
6305
- reset: reset && slot === ENTER // Update controller
6306
 
6307
- });
 
 
 
 
 
6308
 
6309
- ctrl.update(newProps);
6310
- if (!state.current.paused) ctrl.start();
6311
- });
6312
- }
6313
 
6314
- React.useEffect(function () {
6315
- state.current.mounted = mounted.current = true;
6316
- return function () {
6317
- state.current.mounted = mounted.current = false;
6318
- Array.from(state.current.instances).map(function (_ref5) {
6319
- var c = _ref5[1];
6320
- return c.destroy();
 
 
 
6321
  });
6322
- state.current.instances.clear();
6323
- };
6324
- }, []);
6325
- return state.current.transitions.map(function (_ref6) {
6326
- var item = _ref6.item,
6327
- slot = _ref6.slot,
6328
- key = _ref6.key;
6329
- return {
6330
- item: item,
6331
- key: key,
6332
- state: slot,
6333
- props: state.current.instances.get(key).getValues()
6334
  };
6335
- });
6336
- }
6337
 
6338
- function cleanUp(state, filterKey) {
6339
- var deleted = state.current.deleted;
 
 
 
6340
 
6341
- var _loop = function _loop() {
6342
- if (_isArray) {
6343
- if (_i >= _iterator.length) return "break";
6344
- _ref8 = _iterator[_i++];
6345
- } else {
6346
- _i = _iterator.next();
6347
- if (_i.done) return "break";
6348
- _ref8 = _i.value;
6349
- }
6350
 
6351
- var _ref7 = _ref8;
6352
- var key = _ref7.key;
 
 
 
 
6353
 
6354
- var filter = function filter(t) {
6355
- return t.key !== key;
6356
- };
6357
 
6358
- if (is.und(filterKey) || filterKey === key) {
6359
- state.current.instances.delete(key);
6360
- state.current.transitions = state.current.transitions.filter(filter);
6361
- state.current.deleted = state.current.deleted.filter(filter);
6362
  }
6363
- };
6364
 
6365
- for (var _iterator = deleted, _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _iterator[Symbol.iterator]();;) {
6366
- var _ref8;
6367
 
6368
- var _ret = _loop();
 
 
 
 
6369
 
6370
- if (_ret === "break") break;
 
 
 
 
 
 
6371
  }
6372
 
6373
- state.current.forceUpdate();
6374
- }
6375
 
6376
- function diffItems(_ref9, props) {
6377
- var first = _ref9.first,
6378
- prevProps = _ref9.prevProps,
6379
- state = _objectWithoutPropertiesLoose(_ref9, ["first", "prevProps"]);
6380
 
6381
- var _get2 = get(props),
6382
- items = _get2.items,
6383
- keys = _get2.keys,
6384
- initial = _get2.initial,
6385
- from = _get2.from,
6386
- enter = _get2.enter,
6387
- leave = _get2.leave,
6388
- update = _get2.update,
6389
- _get2$trail = _get2.trail,
6390
- trail = _get2$trail === void 0 ? 0 : _get2$trail,
6391
- unique = _get2.unique,
6392
- config = _get2.config,
6393
- _get2$order = _get2.order,
6394
- order = _get2$order === void 0 ? [ENTER, LEAVE, UPDATE] : _get2$order;
6395
 
6396
- var _get3 = get(prevProps),
6397
- _keys = _get3.keys,
6398
- _items = _get3.items;
 
 
6399
 
6400
- var current = _extends({}, state.current);
 
6401
 
6402
- var deleted = [].concat(state.deleted); // Compare next keys with current keys
 
 
6403
 
6404
- var currentKeys = Object.keys(current);
6405
- var currentSet = new Set(currentKeys);
6406
- var nextSet = new Set(keys);
6407
- var added = keys.filter(function (item) {
6408
- return !currentSet.has(item);
6409
- });
6410
- var removed = state.transitions.filter(function (item) {
6411
- return !item.destroyed && !nextSet.has(item.originalKey);
6412
- }).map(function (i) {
6413
- return i.originalKey;
6414
- });
6415
- var updated = keys.filter(function (item) {
6416
- return currentSet.has(item);
6417
- });
6418
- var delay = -trail;
6419
 
6420
- while (order.length) {
6421
- var changeType = order.shift();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6422
 
6423
- switch (changeType) {
6424
- case ENTER:
6425
- {
6426
- added.forEach(function (key, index) {
6427
- // In unique mode, remove fading out transitions if their key comes in again
6428
- if (unique && deleted.find(function (d) {
6429
- return d.originalKey === key;
6430
- })) deleted = deleted.filter(function (t) {
6431
- return t.originalKey !== key;
6432
- });
6433
- var keyIndex = keys.indexOf(key);
6434
- var item = items[keyIndex];
6435
- var slot = first && initial !== void 0 ? 'initial' : ENTER;
6436
- current[key] = {
6437
- slot: slot,
6438
- originalKey: key,
6439
- key: unique ? String(key) : guid++,
6440
- item: item,
6441
- trail: delay = delay + trail,
6442
- config: callProp(config, item, slot),
6443
- from: callProp(first ? initial !== void 0 ? initial || {} : from : from, item),
6444
- to: callProp(enter, item)
6445
- };
6446
- });
6447
- break;
6448
- }
6449
 
6450
- case LEAVE:
6451
- {
6452
- removed.forEach(function (key) {
6453
- var keyIndex = _keys.indexOf(key);
6454
 
6455
- var item = _items[keyIndex];
6456
- var slot = LEAVE;
6457
- deleted.unshift(_extends({}, current[key], {
6458
- slot: slot,
6459
- destroyed: true,
6460
- left: _keys[Math.max(0, keyIndex - 1)],
6461
- right: _keys[Math.min(_keys.length, keyIndex + 1)],
6462
- trail: delay = delay + trail,
6463
- config: callProp(config, item, slot),
6464
- to: callProp(leave, item)
6465
- }));
6466
- delete current[key];
6467
- });
6468
- break;
6469
- }
6470
 
6471
- case UPDATE:
6472
- {
6473
- updated.forEach(function (key) {
6474
- var keyIndex = keys.indexOf(key);
6475
- var item = items[keyIndex];
6476
- var slot = UPDATE;
6477
- current[key] = _extends({}, current[key], {
6478
- item: item,
6479
- slot: slot,
6480
- trail: delay = delay + trail,
6481
- config: callProp(config, item, slot),
6482
- to: callProp(update, item)
6483
- });
6484
- });
6485
- break;
6486
- }
6487
- }
6488
  }
6489
 
6490
- var out = keys.map(function (key) {
6491
- return current[key];
6492
- }); // This tries to restore order for deleted items by finding their last known siblings
6493
- // only using the left sibling to keep order placement consistent for all deleted items
6494
 
6495
- deleted.forEach(function (_ref10) {
6496
- var left = _ref10.left,
6497
- right = _ref10.right,
6498
- item = _objectWithoutPropertiesLoose(_ref10, ["left", "right"]);
6499
 
6500
- var pos; // Was it the element on the left, if yes, move there ...
 
 
 
 
 
 
 
6501
 
6502
- if ((pos = out.findIndex(function (t) {
6503
- return t.originalKey === left;
6504
- })) !== -1) pos += 1; // And if nothing else helps, move it to the start ¯\_(ツ)_/¯
6505
 
6506
- pos = Math.max(0, pos);
6507
- out = [].concat(out.slice(0, pos), [item], out.slice(pos));
6508
- });
6509
- return _extends({}, state, {
6510
- changed: added.length || removed.length || updated.length,
6511
- first: first && added.length === 0,
6512
- transitions: out,
6513
- current: current,
6514
- deleted: deleted,
6515
- prevProps: props
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6516
  });
6517
- }
 
6518
 
6519
- var AnimatedStyle =
6520
- /*#__PURE__*/
6521
- function (_AnimatedObject) {
6522
- _inheritsLoose(AnimatedStyle, _AnimatedObject);
6523
 
6524
- function AnimatedStyle(style) {
6525
- var _this;
 
6526
 
6527
- if (style === void 0) {
6528
- style = {};
 
 
 
 
 
 
 
 
6529
  }
6530
 
6531
- _this = _AnimatedObject.call(this) || this;
 
6532
 
6533
- if (style.transform && !(style.transform instanceof Animated)) {
6534
- style = applyAnimatedValues.transform(style);
6535
- }
 
6536
 
6537
- _this.payload = style;
6538
- return _this;
6539
- }
6540
 
6541
- return AnimatedStyle;
6542
- }(AnimatedObject);
 
 
 
 
 
6543
 
6544
- // http://www.w3.org/TR/css3-color/#svg-color
6545
- var colors = {
6546
- transparent: 0x00000000,
6547
- aliceblue: 0xf0f8ffff,
6548
- antiquewhite: 0xfaebd7ff,
6549
- aqua: 0x00ffffff,
6550
- aquamarine: 0x7fffd4ff,
6551
- azure: 0xf0ffffff,
6552
- beige: 0xf5f5dcff,
6553
- bisque: 0xffe4c4ff,
6554
- black: 0x000000ff,
6555
- blanchedalmond: 0xffebcdff,
6556
- blue: 0x0000ffff,
6557
- blueviolet: 0x8a2be2ff,
6558
- brown: 0xa52a2aff,
6559
- burlywood: 0xdeb887ff,
6560
- burntsienna: 0xea7e5dff,
6561
- cadetblue: 0x5f9ea0ff,
6562
- chartreuse: 0x7fff00ff,
6563
- chocolate: 0xd2691eff,
6564
- coral: 0xff7f50ff,
6565
- cornflowerblue: 0x6495edff,
6566
- cornsilk: 0xfff8dcff,
6567
- crimson: 0xdc143cff,
6568
- cyan: 0x00ffffff,
6569
- darkblue: 0x00008bff,
6570
- darkcyan: 0x008b8bff,
6571
- darkgoldenrod: 0xb8860bff,
6572
- darkgray: 0xa9a9a9ff,
6573
- darkgreen: 0x006400ff,
6574
- darkgrey: 0xa9a9a9ff,
6575
- darkkhaki: 0xbdb76bff,
6576
- darkmagenta: 0x8b008bff,
6577
- darkolivegreen: 0x556b2fff,
6578
- darkorange: 0xff8c00ff,
6579
- darkorchid: 0x9932ccff,
6580
- darkred: 0x8b0000ff,
6581
- darksalmon: 0xe9967aff,
6582
- darkseagreen: 0x8fbc8fff,
6583
- darkslateblue: 0x483d8bff,
6584
- darkslategray: 0x2f4f4fff,
6585
- darkslategrey: 0x2f4f4fff,
6586
- darkturquoise: 0x00ced1ff,
6587
- darkviolet: 0x9400d3ff,
6588
- deeppink: 0xff1493ff,
6589
- deepskyblue: 0x00bfffff,
6590
- dimgray: 0x696969ff,
6591
- dimgrey: 0x696969ff,
6592
- dodgerblue: 0x1e90ffff,
6593
- firebrick: 0xb22222ff,
6594
- floralwhite: 0xfffaf0ff,
6595
- forestgreen: 0x228b22ff,
6596
- fuchsia: 0xff00ffff,
6597
- gainsboro: 0xdcdcdcff,
6598
- ghostwhite: 0xf8f8ffff,
6599
- gold: 0xffd700ff,
6600
- goldenrod: 0xdaa520ff,
6601
- gray: 0x808080ff,
6602
- green: 0x008000ff,
6603
- greenyellow: 0xadff2fff,
6604
- grey: 0x808080ff,
6605
- honeydew: 0xf0fff0ff,
6606
- hotpink: 0xff69b4ff,
6607
- indianred: 0xcd5c5cff,
6608
- indigo: 0x4b0082ff,
6609
- ivory: 0xfffff0ff,
6610
- khaki: 0xf0e68cff,
6611
- lavender: 0xe6e6faff,
6612
- lavenderblush: 0xfff0f5ff,
6613
- lawngreen: 0x7cfc00ff,
6614
- lemonchiffon: 0xfffacdff,
6615
- lightblue: 0xadd8e6ff,
6616
- lightcoral: 0xf08080ff,
6617
- lightcyan: 0xe0ffffff,
6618
- lightgoldenrodyellow: 0xfafad2ff,
6619
- lightgray: 0xd3d3d3ff,
6620
- lightgreen: 0x90ee90ff,
6621
- lightgrey: 0xd3d3d3ff,
6622
- lightpink: 0xffb6c1ff,
6623
- lightsalmon: 0xffa07aff,
6624
- lightseagreen: 0x20b2aaff,
6625
- lightskyblue: 0x87cefaff,
6626
- lightslategray: 0x778899ff,
6627
- lightslategrey: 0x778899ff,
6628
- lightsteelblue: 0xb0c4deff,
6629
- lightyellow: 0xffffe0ff,
6630
- lime: 0x00ff00ff,
6631
- limegreen: 0x32cd32ff,
6632
- linen: 0xfaf0e6ff,
6633
- magenta: 0xff00ffff,
6634
- maroon: 0x800000ff,
6635
- mediumaquamarine: 0x66cdaaff,
6636
- mediumblue: 0x0000cdff,
6637
- mediumorchid: 0xba55d3ff,
6638
- mediumpurple: 0x9370dbff,
6639
- mediumseagreen: 0x3cb371ff,
6640
- mediumslateblue: 0x7b68eeff,
6641
- mediumspringgreen: 0x00fa9aff,
6642
- mediumturquoise: 0x48d1ccff,
6643
- mediumvioletred: 0xc71585ff,
6644
- midnightblue: 0x191970ff,
6645
- mintcream: 0xf5fffaff,
6646
- mistyrose: 0xffe4e1ff,
6647
- moccasin: 0xffe4b5ff,
6648
- navajowhite: 0xffdeadff,
6649
- navy: 0x000080ff,
6650
- oldlace: 0xfdf5e6ff,
6651
- olive: 0x808000ff,
6652
- olivedrab: 0x6b8e23ff,
6653
- orange: 0xffa500ff,
6654
- orangered: 0xff4500ff,
6655
- orchid: 0xda70d6ff,
6656
- palegoldenrod: 0xeee8aaff,
6657
- palegreen: 0x98fb98ff,
6658
- paleturquoise: 0xafeeeeff,
6659
- palevioletred: 0xdb7093ff,
6660
- papayawhip: 0xffefd5ff,
6661
- peachpuff: 0xffdab9ff,
6662
- peru: 0xcd853fff,
6663
- pink: 0xffc0cbff,
6664
- plum: 0xdda0ddff,
6665
- powderblue: 0xb0e0e6ff,
6666
- purple: 0x800080ff,
6667
- rebeccapurple: 0x663399ff,
6668
- red: 0xff0000ff,
6669
- rosybrown: 0xbc8f8fff,
6670
- royalblue: 0x4169e1ff,
6671
- saddlebrown: 0x8b4513ff,
6672
- salmon: 0xfa8072ff,
6673
- sandybrown: 0xf4a460ff,
6674
- seagreen: 0x2e8b57ff,
6675
- seashell: 0xfff5eeff,
6676
- sienna: 0xa0522dff,
6677
- silver: 0xc0c0c0ff,
6678
- skyblue: 0x87ceebff,
6679
- slateblue: 0x6a5acdff,
6680
- slategray: 0x708090ff,
6681
- slategrey: 0x708090ff,
6682
- snow: 0xfffafaff,
6683
- springgreen: 0x00ff7fff,
6684
- steelblue: 0x4682b4ff,
6685
- tan: 0xd2b48cff,
6686
- teal: 0x008080ff,
6687
- thistle: 0xd8bfd8ff,
6688
- tomato: 0xff6347ff,
6689
- turquoise: 0x40e0d0ff,
6690
- violet: 0xee82eeff,
6691
- wheat: 0xf5deb3ff,
6692
- white: 0xffffffff,
6693
- whitesmoke: 0xf5f5f5ff,
6694
- yellow: 0xffff00ff,
6695
- yellowgreen: 0x9acd32ff
6696
- };
6697
 
6698
- // const INTEGER = '[-+]?\\d+';
6699
- var NUMBER = '[-+]?\\d*\\.?\\d+';
6700
- var PERCENTAGE = NUMBER + '%';
6701
 
6702
- function call() {
6703
- for (var _len = arguments.length, parts = new Array(_len), _key = 0; _key < _len; _key++) {
6704
- parts[_key] = arguments[_key];
6705
- }
 
6706
 
6707
- return '\\(\\s*(' + parts.join(')\\s*,\\s*(') + ')\\s*\\)';
6708
- }
 
 
 
 
 
 
 
 
 
 
 
6709
 
6710
- var rgb = new RegExp('rgb' + call(NUMBER, NUMBER, NUMBER));
6711
- var rgba = new RegExp('rgba' + call(NUMBER, NUMBER, NUMBER, NUMBER));
6712
- var hsl = new RegExp('hsl' + call(NUMBER, PERCENTAGE, PERCENTAGE));
6713
- var hsla = new RegExp('hsla' + call(NUMBER, PERCENTAGE, PERCENTAGE, NUMBER));
6714
- var hex3 = /^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/;
6715
- var hex4 = /^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/;
6716
- var hex6 = /^#([0-9a-fA-F]{6})$/;
6717
- var hex8 = /^#([0-9a-fA-F]{8})$/;
6718
 
6719
- /*
6720
- https://github.com/react-community/normalize-css-color
6721
 
6722
- BSD 3-Clause License
 
 
 
 
 
 
6723
 
6724
- Copyright (c) 2016, React Community
6725
- All rights reserved.
6726
 
6727
- Redistribution and use in source and binary forms, with or without
6728
- modification, are permitted provided that the following conditions are met:
 
 
 
 
 
6729
 
6730
- * Redistributions of source code must retain the above copyright notice, this
6731
- list of conditions and the following disclaimer.
6732
 
6733
- * Redistributions in binary form must reproduce the above copyright notice,
6734
- this list of conditions and the following disclaimer in the documentation
6735
- and/or other materials provided with the distribution.
6736
 
6737
- * Neither the name of the copyright holder nor the names of its
6738
- contributors may be used to endorse or promote products derived from
6739
- this software without specific prior written permission.
 
 
6740
 
6741
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
6742
- AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
6743
- IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
6744
- DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
6745
- FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
6746
- DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
6747
- SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
6748
- CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
6749
- OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
6750
- OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
6751
- */
6752
- function normalizeColor(color) {
6753
- var match;
6754
 
6755
- if (typeof color === 'number') {
6756
- return color >>> 0 === color && color >= 0 && color <= 0xffffffff ? color : null;
6757
- } // Ordered based on occurrences on Facebook codebase
6758
 
 
 
6759
 
6760
- if (match = hex6.exec(color)) return parseInt(match[1] + 'ff', 16) >>> 0;
6761
- if (colors.hasOwnProperty(color)) return colors[color];
6762
 
6763
- if (match = rgb.exec(color)) {
6764
- return (parse255(match[1]) << 24 | // r
6765
- parse255(match[2]) << 16 | // g
6766
- parse255(match[3]) << 8 | // b
6767
- 0x000000ff) >>> // a
6768
- 0;
6769
- }
6770
 
6771
- if (match = rgba.exec(color)) {
6772
- return (parse255(match[1]) << 24 | // r
6773
- parse255(match[2]) << 16 | // g
6774
- parse255(match[3]) << 8 | // b
6775
- parse1(match[4])) >>> // a
6776
- 0;
6777
- }
6778
 
6779
- if (match = hex3.exec(color)) {
6780
- return parseInt(match[1] + match[1] + // r
6781
- match[2] + match[2] + // g
6782
- match[3] + match[3] + // b
6783
- 'ff', // a
6784
- 16) >>> 0;
6785
- } // https://drafts.csswg.org/css-color-4/#hex-notation
6786
 
 
 
 
 
 
6787
 
6788
- if (match = hex8.exec(color)) return parseInt(match[1], 16) >>> 0;
 
6789
 
6790
- if (match = hex4.exec(color)) {
6791
- return parseInt(match[1] + match[1] + // r
6792
- match[2] + match[2] + // g
6793
- match[3] + match[3] + // b
6794
- match[4] + match[4], // a
6795
- 16) >>> 0;
6796
- }
6797
 
6798
- if (match = hsl.exec(color)) {
6799
- return (hslToRgb(parse360(match[1]), // h
6800
- parsePercentage(match[2]), // s
6801
- parsePercentage(match[3]) // l
6802
- ) | 0x000000ff) >>> // a
6803
- 0;
6804
  }
 
6805
 
6806
- if (match = hsla.exec(color)) {
6807
- return (hslToRgb(parse360(match[1]), // h
6808
- parsePercentage(match[2]), // s
6809
- parsePercentage(match[3]) // l
6810
- ) | parse1(match[4])) >>> // a
6811
- 0;
 
6812
  }
6813
 
6814
- return null;
6815
- }
 
 
 
 
 
6816
 
6817
- function hue2rgb(p, q, t) {
6818
- if (t < 0) t += 1;
6819
- if (t > 1) t -= 1;
6820
- if (t < 1 / 6) return p + (q - p) * 6 * t;
6821
- if (t < 1 / 2) return q;
6822
- if (t < 2 / 3) return p + (q - p) * (2 / 3 - t) * 6;
6823
- return p;
6824
- }
6825
 
6826
- function hslToRgb(h, s, l) {
6827
- var q = l < 0.5 ? l * (1 + s) : l + s - l * s;
6828
- var p = 2 * l - q;
6829
- var r = hue2rgb(p, q, h + 1 / 3);
6830
- var g = hue2rgb(p, q, h);
6831
- var b = hue2rgb(p, q, h - 1 / 3);
6832
- return Math.round(r * 255) << 24 | Math.round(g * 255) << 16 | Math.round(b * 255) << 8;
6833
- }
6834
 
6835
- function parse255(str) {
6836
- var int = parseInt(str, 10);
6837
- if (int < 0) return 0;
6838
- if (int > 255) return 255;
6839
- return int;
6840
- }
6841
 
6842
- function parse360(str) {
6843
- var int = parseFloat(str);
6844
- return (int % 360 + 360) % 360 / 360;
 
6845
  }
6846
 
6847
- function parse1(str) {
6848
- var num = parseFloat(str);
6849
- if (num < 0) return 0;
6850
- if (num > 1) return 255;
6851
- return Math.round(num * 255);
6852
- }
6853
 
6854
- function parsePercentage(str) {
6855
- // parseFloat conveniently ignores the final %
6856
- var int = parseFloat(str);
6857
- if (int < 0) return 0;
6858
- if (int > 100) return 1;
6859
- return int / 100;
 
 
 
 
 
 
 
 
 
 
 
6860
  }
6861
 
6862
- function colorToRgba(input) {
6863
- var int32Color = normalizeColor(input);
6864
- if (int32Color === null) return input;
6865
- int32Color = int32Color || 0;
6866
- var r = (int32Color & 0xff000000) >>> 24;
6867
- var g = (int32Color & 0x00ff0000) >>> 16;
6868
- var b = (int32Color & 0x0000ff00) >>> 8;
6869
- var a = (int32Color & 0x000000ff) / 255;
6870
- return "rgba(" + r + ", " + g + ", " + b + ", " + a + ")";
6871
- } // Problem: https://github.com/animatedjs/animated/pull/102
6872
- // Solution: https://stackoverflow.com/questions/638565/parsing-scientific-notation-sensibly/658662
6873
 
 
 
6874
 
6875
- var stringShapeRegex = /[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g; // Covers rgb, rgba, hsl, hsla
6876
- // Taken from https://gist.github.com/olmokramer/82ccce673f86db7cda5e
 
 
6877
 
6878
- var colorRegex = /(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi; // Covers color names (transparent, blue, etc.)
 
6879
 
6880
- var colorNamesRegex = new RegExp("(" + Object.keys(colors).join('|') + ")", 'g');
6881
- /**
6882
- * Supports string shapes by extracting numbers so new values can be computed,
6883
- * and recombines those values into new strings of the same shape. Supports
6884
- * things like:
6885
- *
6886
- * rgba(123, 42, 99, 0.36) // colors
6887
- * -45deg // values with units
6888
- * 0 2px 2px 0px rgba(0, 0, 0, 0.12) // box shadows
6889
- */
6890
 
6891
- var createStringInterpolator = function createStringInterpolator(config) {
6892
- // Replace colors with rgba
6893
- var outputRange = config.output.map(function (rangeValue) {
6894
- return rangeValue.replace(colorRegex, colorToRgba);
6895
- }).map(function (rangeValue) {
6896
- return rangeValue.replace(colorNamesRegex, colorToRgba);
6897
- });
6898
- var outputRanges = outputRange[0].match(stringShapeRegex).map(function () {
6899
- return [];
6900
- });
6901
- outputRange.forEach(function (value) {
6902
- value.match(stringShapeRegex).forEach(function (number, i) {
6903
- return outputRanges[i].push(+number);
6904
- });
6905
- });
6906
- var interpolations = outputRange[0].match(stringShapeRegex).map(function (_value, i) {
6907
- return createInterpolator(_extends({}, config, {
6908
- output: outputRanges[i]
6909
  }));
6910
- });
6911
- return function (input) {
6912
- var i = 0;
6913
- return outputRange[0] // 'rgba(0, 100, 200, 0)'
6914
- // ->
6915
- // 'rgba(${interpolations[0](input)}, ${interpolations[1](input)}, ...'
6916
- .replace(stringShapeRegex, function () {
6917
- return interpolations[i++](input);
6918
- }) // rgba requires that the r,g,b are integers.... so we want to round them, but we *dont* want to
6919
- // round the opacity (4th column).
6920
- .replace(/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi, function (_, p1, p2, p3, p4) {
6921
- return "rgba(" + Math.round(p1) + ", " + Math.round(p2) + ", " + Math.round(p3) + ", " + p4 + ")";
6922
- });
6923
  };
6924
- };
6925
-
6926
- var isUnitlessNumber = {
6927
- animationIterationCount: true,
6928
- borderImageOutset: true,
6929
- borderImageSlice: true,
6930
- borderImageWidth: true,
6931
- boxFlex: true,
6932
- boxFlexGroup: true,
6933
- boxOrdinalGroup: true,
6934
- columnCount: true,
6935
- columns: true,
6936
- flex: true,
6937
- flexGrow: true,
6938
- flexPositive: true,
6939
- flexShrink: true,
6940
- flexNegative: true,
6941
- flexOrder: true,
6942
- gridRow: true,
6943
- gridRowEnd: true,
6944
- gridRowSpan: true,
6945
- gridRowStart: true,
6946
- gridColumn: true,
6947
- gridColumnEnd: true,
6948
- gridColumnSpan: true,
6949
- gridColumnStart: true,
6950
- fontWeight: true,
6951
- lineClamp: true,
6952
- lineHeight: true,
6953
- opacity: true,
6954
- order: true,
6955
- orphans: true,
6956
- tabSize: true,
6957
- widows: true,
6958
- zIndex: true,
6959
- zoom: true,
6960
- // SVG-related properties
6961
- fillOpacity: true,
6962
- floodOpacity: true,
6963
- stopOpacity: true,
6964
- strokeDasharray: true,
6965
- strokeDashoffset: true,
6966
- strokeMiterlimit: true,
6967
- strokeOpacity: true,
6968
- strokeWidth: true
6969
- };
6970
 
6971
- var prefixKey = function prefixKey(prefix, key) {
6972
- return prefix + key.charAt(0).toUpperCase() + key.substring(1);
6973
- };
6974
 
6975
- var prefixes = ['Webkit', 'Ms', 'Moz', 'O'];
6976
- isUnitlessNumber = Object.keys(isUnitlessNumber).reduce(function (acc, prop) {
6977
- prefixes.forEach(function (prefix) {
6978
- return acc[prefixKey(prefix, prop)] = acc[prop];
6979
- });
6980
- return acc;
6981
- }, isUnitlessNumber);
6982
 
6983
- function dangerousStyleValue(name, value, isCustomProperty) {
6984
- if (value == null || typeof value === 'boolean' || value === '') return '';
6985
- if (!isCustomProperty && typeof value === 'number' && value !== 0 && !(isUnitlessNumber.hasOwnProperty(name) && isUnitlessNumber[name])) return value + 'px'; // Presumes implicit 'px' suffix for unitless numbers
6986
 
6987
- return ('' + value).trim();
6988
- }
6989
-
6990
- var attributeCache = {};
6991
- injectCreateAnimatedStyle(function (style) {
6992
- return new AnimatedStyle(style);
6993
- });
6994
- injectDefaultElement('div');
6995
- injectStringInterpolator(createStringInterpolator);
6996
- injectColorNames(colors);
6997
- injectApplyAnimatedValues(function (instance, props) {
6998
- if (instance.nodeType && instance.setAttribute !== undefined) {
6999
- var style = props.style,
7000
- children = props.children,
7001
- scrollTop = props.scrollTop,
7002
- scrollLeft = props.scrollLeft,
7003
- attributes = _objectWithoutPropertiesLoose(props, ["style", "children", "scrollTop", "scrollLeft"]);
7004
-
7005
- var filter = instance.nodeName === 'filter' || instance.parentNode && instance.parentNode.nodeName === 'filter';
7006
- if (scrollTop !== void 0) instance.scrollTop = scrollTop;
7007
- if (scrollLeft !== void 0) instance.scrollLeft = scrollLeft; // Set textContent, if children is an animatable value
7008
-
7009
- if (children !== void 0) instance.textContent = children; // Set styles ...
7010
-
7011
- for (var styleName in style) {
7012
- if (!style.hasOwnProperty(styleName)) continue;
7013
- var isCustomProperty = styleName.indexOf('--') === 0;
7014
- var styleValue = dangerousStyleValue(styleName, style[styleName], isCustomProperty);
7015
- if (styleName === 'float') styleName = 'cssFloat';
7016
- if (isCustomProperty) instance.style.setProperty(styleName, styleValue);else instance.style[styleName] = styleValue;
7017
- } // Set attributes ...
7018
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7019
 
7020
- for (var name in attributes) {
7021
- // Attributes are written in dash case
7022
- var dashCase = filter ? name : attributeCache[name] || (attributeCache[name] = name.replace(/([A-Z])/g, function (n) {
7023
- return '-' + n.toLowerCase();
7024
- }));
7025
- if (typeof instance.getAttribute(dashCase) !== 'undefined') instance.setAttribute(dashCase, attributes[name]);
7026
- }
7027
 
7028
- return;
7029
- } else return false;
7030
- }, function (style) {
7031
- return style;
7032
- });
7033
 
7034
- var domElements = ['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', // SVG
7035
- 'circle', 'clipPath', 'defs', 'ellipse', 'foreignObject', 'g', 'image', 'line', 'linearGradient', 'mask', 'path', 'pattern', 'polygon', 'polyline', 'radialGradient', 'rect', 'stop', 'svg', 'text', 'tspan'];
7036
- // Extend animated with all the available THREE elements
7037
- var apply = merge(createAnimatedComponent, false);
7038
- var extendedAnimated = apply(domElements);
 
 
 
7039
 
7040
- exports.apply = apply;
7041
- exports.config = config;
7042
- exports.update = update;
7043
- exports.animated = extendedAnimated;
7044
- exports.a = extendedAnimated;
7045
- exports.interpolate = interpolate$1;
7046
- exports.Globals = Globals;
7047
- exports.useSpring = useSpring;
7048
- exports.useTrail = useTrail;
7049
- exports.useTransition = useTransition;
7050
- exports.useChain = useChain;
7051
- exports.useSprings = useSprings;
7052
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7053
 
7054
- /***/ }),
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7055
 
7056
- /***/ 183:
7057
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
 
 
7058
 
7059
- "use strict";
7060
- /* WEBPACK VAR INJECTION */(function(global) {/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(10);
7061
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
7062
- /* harmony import */ var _babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(38);
7063
- /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
7064
- /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
7065
 
 
 
 
 
 
 
 
 
 
7066
 
 
 
 
 
7067
 
 
 
 
7068
 
 
 
 
 
 
7069
 
7070
- var MAX_SIGNED_31_BIT_INT = 1073741823;
7071
- var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : {};
7072
 
7073
- function getUniqueId() {
7074
- var key = '__global_unique_id__';
7075
- return commonjsGlobal[key] = (commonjsGlobal[key] || 0) + 1;
7076
- }
7077
 
7078
- function objectIs(x, y) {
7079
- if (x === y) {
7080
- return x !== 0 || 1 / x === 1 / y;
7081
- } else {
7082
- return x !== x && y !== y;
7083
- }
7084
- }
7085
 
7086
- function createEventEmitter(value) {
7087
- var handlers = [];
7088
- return {
7089
- on: function on(handler) {
7090
- handlers.push(handler);
7091
- },
7092
- off: function off(handler) {
7093
- handlers = handlers.filter(function (h) {
7094
- return h !== handler;
7095
- });
7096
- },
7097
- get: function get() {
7098
- return value;
7099
- },
7100
- set: function set(newValue, changedBits) {
7101
- value = newValue;
7102
- handlers.forEach(function (handler) {
7103
- return handler(value, changedBits);
7104
- });
7105
- }
7106
  };
7107
- }
7108
 
7109
- function onlyChild(children) {
7110
- return Array.isArray(children) ? children[0] : children;
7111
- }
7112
 
7113
- function createReactContext(defaultValue, calculateChangedBits) {
7114
- var _Provider$childContex, _Consumer$contextType;
 
7115
 
7116
- var contextProp = '__create-react-context-' + getUniqueId() + '__';
 
7117
 
7118
- var Provider = /*#__PURE__*/function (_Component) {
7119
- Object(_babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"])(Provider, _Component);
 
 
7120
 
7121
- function Provider() {
7122
- var _this;
7123
 
7124
- _this = _Component.apply(this, arguments) || this;
7125
- _this.emitter = createEventEmitter(_this.props.value);
7126
- return _this;
 
 
 
 
 
 
 
 
 
 
 
7127
  }
7128
 
7129
- var _proto = Provider.prototype;
 
 
 
 
 
 
 
 
 
 
 
7130
 
7131
- _proto.getChildContext = function getChildContext() {
7132
- var _ref;
 
 
 
7133
 
7134
- return _ref = {}, _ref[contextProp] = this.emitter, _ref;
7135
- };
 
7136
 
7137
- _proto.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {
7138
- if (this.props.value !== nextProps.value) {
7139
- var oldValue = this.props.value;
7140
- var newValue = nextProps.value;
7141
- var changedBits;
7142
 
7143
- if (objectIs(oldValue, newValue)) {
7144
- changedBits = 0;
7145
- } else {
7146
- changedBits = typeof calculateChangedBits === 'function' ? calculateChangedBits(oldValue, newValue) : MAX_SIGNED_31_BIT_INT;
7147
 
7148
- if (false) {}
 
 
 
 
7149
 
7150
- changedBits |= 0;
 
 
 
 
 
 
 
 
 
 
 
 
 
7151
 
7152
- if (changedBits !== 0) {
7153
- this.emitter.set(nextProps.value, changedBits);
7154
- }
7155
- }
7156
- }
7157
  };
7158
 
7159
- _proto.render = function render() {
7160
- return this.props.children;
7161
- };
 
 
7162
 
7163
- return Provider;
7164
- }(react__WEBPACK_IMPORTED_MODULE_0__["Component"]);
7165
 
7166
- Provider.childContextTypes = (_Provider$childContex = {}, _Provider$childContex[contextProp] = prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.object.isRequired, _Provider$childContex);
7167
 
7168
- var Consumer = /*#__PURE__*/function (_Component2) {
7169
- Object(_babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"])(Consumer, _Component2);
 
7170
 
7171
- function Consumer() {
7172
- var _this2;
 
 
 
7173
 
7174
- _this2 = _Component2.apply(this, arguments) || this;
7175
- _this2.state = {
7176
- value: _this2.getValue()
7177
- };
 
 
 
 
 
 
 
7178
 
7179
- _this2.onUpdate = function (newValue, changedBits) {
7180
- var observedBits = _this2.observedBits | 0;
7181
 
7182
- if ((observedBits & changedBits) !== 0) {
7183
- _this2.setState({
7184
- value: _this2.getValue()
7185
- });
7186
- }
7187
- };
7188
 
7189
- return _this2;
7190
- }
 
 
 
 
 
7191
 
7192
- var _proto2 = Consumer.prototype;
7193
 
7194
- _proto2.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {
7195
- var observedBits = nextProps.observedBits;
7196
- this.observedBits = observedBits === undefined || observedBits === null ? MAX_SIGNED_31_BIT_INT : observedBits;
7197
- };
7198
 
7199
- _proto2.componentDidMount = function componentDidMount() {
7200
- if (this.context[contextProp]) {
7201
- this.context[contextProp].on(this.onUpdate);
7202
- }
 
 
7203
 
7204
- var observedBits = this.props.observedBits;
7205
- this.observedBits = observedBits === undefined || observedBits === null ? MAX_SIGNED_31_BIT_INT : observedBits;
7206
- };
7207
 
7208
- _proto2.componentWillUnmount = function componentWillUnmount() {
7209
- if (this.context[contextProp]) {
7210
- this.context[contextProp].off(this.onUpdate);
7211
- }
7212
- };
7213
 
7214
- _proto2.getValue = function getValue() {
7215
- if (this.context[contextProp]) {
7216
- return this.context[contextProp].get();
7217
- } else {
7218
- return defaultValue;
7219
- }
7220
- };
 
 
 
 
7221
 
7222
- _proto2.render = function render() {
7223
- return onlyChild(this.props.children)(this.state.value);
7224
- };
7225
 
7226
- return Consumer;
7227
- }(react__WEBPACK_IMPORTED_MODULE_0__["Component"]);
 
7228
 
7229
- Consumer.contextTypes = (_Consumer$contextType = {}, _Consumer$contextType[contextProp] = prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.object, _Consumer$contextType);
7230
- return {
7231
- Provider: Provider,
7232
- Consumer: Consumer
7233
- };
7234
- }
7235
 
7236
- var index = react__WEBPACK_IMPORTED_MODULE_0___default.a.createContext || createReactContext;
 
 
 
 
7237
 
7238
- /* harmony default export */ __webpack_exports__["a"] = (index);
 
7239
 
7240
- /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(82)))
7241
 
7242
- /***/ }),
7243
 
7244
- /***/ 184:
7245
- /***/ (function(module, exports, __webpack_require__) {
 
 
 
 
 
 
 
 
 
 
7246
 
7247
- var isarray = __webpack_require__(306)
 
7248
 
7249
- /**
7250
- * Expose `pathToRegexp`.
7251
- */
7252
- module.exports = pathToRegexp
7253
- module.exports.parse = parse
7254
- module.exports.compile = compile
7255
- module.exports.tokensToFunction = tokensToFunction
7256
- module.exports.tokensToRegExp = tokensToRegExp
7257
 
7258
- /**
7259
- * The main path matching regexp utility.
7260
- *
7261
- * @type {RegExp}
7262
- */
7263
- var PATH_REGEXP = new RegExp([
7264
- // Match escaped characters that would otherwise appear in future matches.
7265
- // This allows the user to escape special characters that won't transform.
7266
- '(\\\\.)',
7267
- // Match Express-style parameters and un-named parameters with a prefix
7268
- // and optional suffixes. Matches appear as:
7269
- //
7270
- // "/:test(\\d+)?" => ["/", "test", "\d+", undefined, "?", undefined]
7271
- // "/route(\\d+)" => [undefined, undefined, undefined, "\d+", undefined, undefined]
7272
- // "/*" => ["/", undefined, undefined, undefined, undefined, "*"]
7273
- '([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))'
7274
- ].join('|'), 'g')
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7275
 
7276
- /**
7277
- * Parse a string for the raw tokens.
7278
- *
7279
- * @param {string} str
7280
- * @param {Object=} options
7281
- * @return {!Array}
7282
- */
7283
- function parse (str, options) {
7284
- var tokens = []
7285
- var key = 0
7286
- var index = 0
7287
- var path = ''
7288
- var defaultDelimiter = options && options.delimiter || '/'
7289
- var res
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7290
 
7291
- while ((res = PATH_REGEXP.exec(str)) != null) {
7292
- var m = res[0]
7293
- var escaped = res[1]
7294
- var offset = res.index
7295
- path += str.slice(index, offset)
7296
- index = offset + m.length
7297
 
7298
- // Ignore already escaped sequences.
7299
- if (escaped) {
7300
- path += escaped[1]
7301
- continue
7302
- }
 
 
 
7303
 
7304
- var next = str[index]
7305
- var prefix = res[2]
7306
- var name = res[3]
7307
- var capture = res[4]
7308
- var group = res[5]
7309
- var modifier = res[6]
7310
- var asterisk = res[7]
7311
 
7312
- // Push the current path onto the tokens.
7313
- if (path) {
7314
- tokens.push(path)
7315
- path = ''
7316
- }
7317
 
7318
- var partial = prefix != null && next != null && next !== prefix
7319
- var repeat = modifier === '+' || modifier === '*'
7320
- var optional = modifier === '?' || modifier === '*'
7321
- var delimiter = res[2] || defaultDelimiter
7322
- var pattern = capture || group
7323
 
7324
- tokens.push({
7325
- name: name || key++,
7326
- prefix: prefix || '',
7327
- delimiter: delimiter,
7328
- optional: optional,
7329
- repeat: repeat,
7330
- partial: partial,
7331
- asterisk: !!asterisk,
7332
- pattern: pattern ? escapeGroup(pattern) : (asterisk ? '.*' : '[^' + escapeString(delimiter) + ']+?')
7333
- })
7334
- }
7335
 
7336
- // Match any characters still remaining.
7337
- if (index < str.length) {
7338
- path += str.substr(index)
7339
- }
7340
 
7341
- // If the path exists, push it onto the end.
7342
- if (path) {
7343
- tokens.push(path)
7344
- }
7345
 
7346
- return tokens
7347
- }
 
7348
 
7349
- /**
7350
- * Compile a string to a template function for the path.
7351
- *
7352
- * @param {string} str
7353
- * @param {Object=} options
7354
- * @return {!function(Object=, Object=)}
7355
- */
7356
- function compile (str, options) {
7357
- return tokensToFunction(parse(str, options), options)
7358
- }
 
 
 
7359
 
7360
- /**
7361
- * Prettier encoding of URI path segments.
7362
- *
7363
- * @param {string}
7364
- * @return {string}
7365
- */
7366
- function encodeURIComponentPretty (str) {
7367
- return encodeURI(str).replace(/[\/?#]/g, function (c) {
7368
- return '%' + c.charCodeAt(0).toString(16).toUpperCase()
7369
- })
7370
- }
7371
 
7372
- /**
7373
- * Encode the asterisk parameter. Similar to `pretty`, but allows slashes.
7374
- *
7375
- * @param {string}
7376
- * @return {string}
7377
- */
7378
- function encodeAsterisk (str) {
7379
- return encodeURI(str).replace(/[?#]/g, function (c) {
7380
- return '%' + c.charCodeAt(0).toString(16).toUpperCase()
7381
- })
7382
- }
7383
 
7384
- /**
7385
- * Expose a method for transforming tokens into the path function.
7386
- */
7387
- function tokensToFunction (tokens, options) {
7388
- // Compile all the tokens into regexps.
7389
- var matches = new Array(tokens.length)
7390
 
7391
- // Compile all the patterns before compilation.
7392
- for (var i = 0; i < tokens.length; i++) {
7393
- if (typeof tokens[i] === 'object') {
7394
- matches[i] = new RegExp('^(?:' + tokens[i].pattern + ')$', flags(options))
7395
- }
 
7396
  }
7397
 
7398
- return function (obj, opts) {
7399
- var path = ''
7400
- var data = obj || {}
7401
- var options = opts || {}
7402
- var encode = options.pretty ? encodeURIComponentPretty : encodeURIComponent
 
 
7403
 
7404
- for (var i = 0; i < tokens.length; i++) {
7405
- var token = tokens[i]
 
 
 
 
 
7406
 
7407
- if (typeof token === 'string') {
7408
- path += token
7409
 
7410
- continue
7411
- }
7412
 
7413
- var value = data[token.name]
7414
- var segment
 
 
 
 
 
7415
 
7416
- if (value == null) {
7417
- if (token.optional) {
7418
- // Prepend partial segment prefixes.
7419
- if (token.partial) {
7420
- path += token.prefix
7421
- }
 
7422
 
7423
- continue
7424
- } else {
7425
- throw new TypeError('Expected "' + token.name + '" to be defined')
7426
- }
7427
- }
 
 
7428
 
7429
- if (isarray(value)) {
7430
- if (!token.repeat) {
7431
- throw new TypeError('Expected "' + token.name + '" to not repeat, but received `' + JSON.stringify(value) + '`')
7432
- }
7433
 
7434
- if (value.length === 0) {
7435
- if (token.optional) {
7436
- continue
7437
- } else {
7438
- throw new TypeError('Expected "' + token.name + '" to not be empty')
7439
- }
7440
- }
 
7441
 
7442
- for (var j = 0; j < value.length; j++) {
7443
- segment = encode(value[j])
 
 
 
 
 
 
7444
 
7445
- if (!matches[i].test(segment)) {
7446
- throw new TypeError('Expected all "' + token.name + '" to match "' + token.pattern + '", but received `' + JSON.stringify(segment) + '`')
7447
- }
 
 
 
7448
 
7449
- path += (j === 0 ? token.prefix : token.delimiter) + segment
7450
- }
 
 
 
 
 
 
 
 
 
7451
 
7452
- continue
7453
- }
 
 
 
 
 
7454
 
7455
- segment = token.asterisk ? encodeAsterisk(value) : encode(value)
 
 
 
 
 
 
 
 
 
 
7456
 
7457
- if (!matches[i].test(segment)) {
7458
- throw new TypeError('Expected "' + token.name + '" to match "' + token.pattern + '", but received "' + segment + '"')
7459
- }
7460
 
7461
- path += token.prefix + segment
7462
- }
7463
 
7464
- return path
7465
- }
7466
- }
7467
 
 
7468
  /**
7469
- * Escape a regular expression string.
 
 
7470
  *
7471
- * @param {string} str
7472
- * @return {string}
 
7473
  */
7474
- function escapeString (str) {
7475
- return str.replace(/([.+*?=^!:${}()[\]|\/\\])/g, '\\$1')
7476
- }
7477
 
7478
- /**
7479
- * Escape the capturing group by escaping special characters and meaning.
7480
- *
7481
- * @param {string} group
7482
- * @return {string}
7483
- */
7484
- function escapeGroup (group) {
7485
- return group.replace(/([=!:$\/()])/g, '\\$1')
7486
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7487
 
7488
- /**
7489
- * Attach the keys as a property of the regexp.
7490
- *
7491
- * @param {!RegExp} re
7492
- * @param {Array} keys
7493
- * @return {!RegExp}
7494
- */
7495
- function attachKeys (re, keys) {
7496
- re.keys = keys
7497
- return re
7498
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7499
 
7500
- /**
7501
- * Get the flags for a regexp from the options.
7502
- *
7503
- * @param {Object} options
7504
- * @return {string}
7505
- */
7506
- function flags (options) {
7507
- return options && options.sensitive ? '' : 'i'
7508
- }
7509
 
7510
- /**
7511
- * Pull out keys from a regexp.
7512
- *
7513
- * @param {!RegExp} path
7514
- * @param {!Array} keys
7515
- * @return {!RegExp}
7516
- */
7517
- function regexpToRegexp (path, keys) {
7518
- // Use a negative lookahead to match only capturing groups.
7519
- var groups = path.source.match(/\((?!\?)/g)
7520
 
7521
- if (groups) {
7522
- for (var i = 0; i < groups.length; i++) {
7523
- keys.push({
7524
- name: i,
7525
- prefix: null,
7526
- delimiter: null,
7527
- optional: false,
7528
- repeat: false,
7529
- partial: false,
7530
- asterisk: false,
7531
- pattern: null
7532
- })
7533
- }
7534
- }
7535
 
7536
- return attachKeys(path, keys)
7537
  }
7538
 
7539
- /**
7540
- * Transform an array into a regexp.
7541
- *
7542
- * @param {!Array} path
7543
- * @param {Array} keys
7544
- * @param {!Object} options
7545
- * @return {!RegExp}
7546
- */
7547
- function arrayToRegexp (path, keys, options) {
7548
- var parts = []
 
 
 
 
7549
 
7550
- for (var i = 0; i < path.length; i++) {
7551
- parts.push(pathToRegexp(path[i], keys, options).source)
7552
- }
7553
 
7554
- var regexp = new RegExp('(?:' + parts.join('|') + ')', flags(options))
7555
 
7556
- return attachKeys(regexp, keys)
7557
- }
 
 
 
 
 
7558
 
7559
- /**
7560
- * Create a path regexp from string input.
7561
- *
7562
- * @param {string} path
7563
- * @param {!Array} keys
7564
- * @param {!Object} options
7565
- * @return {!RegExp}
7566
- */
7567
- function stringToRegexp (path, keys, options) {
7568
- return tokensToRegExp(parse(path, options), keys, options)
7569
- }
7570
 
7571
- /**
7572
- * Expose a function for taking tokens and returning a RegExp.
7573
- *
7574
- * @param {!Array} tokens
7575
- * @param {(Array|Object)=} keys
7576
- * @param {Object=} options
7577
- * @return {!RegExp}
7578
- */
7579
- function tokensToRegExp (tokens, keys, options) {
7580
- if (!isarray(keys)) {
7581
- options = /** @type {!Object} */ (keys || options)
7582
- keys = []
7583
- }
 
 
 
 
 
 
7584
 
7585
- options = options || {}
 
 
 
 
 
 
 
 
 
 
 
7586
 
7587
- var strict = options.strict
7588
- var end = options.end !== false
7589
- var route = ''
7590
 
7591
- // Iterate over the tokens and create our regexp string.
7592
- for (var i = 0; i < tokens.length; i++) {
7593
- var token = tokens[i]
7594
 
7595
- if (typeof token === 'string') {
7596
- route += escapeString(token)
7597
- } else {
7598
- var prefix = escapeString(token.prefix)
7599
- var capture = '(?:' + token.pattern + ')'
7600
 
7601
- keys.push(token)
 
 
 
 
 
7602
 
7603
- if (token.repeat) {
7604
- capture += '(?:' + prefix + capture + ')*'
7605
- }
7606
 
7607
- if (token.optional) {
7608
- if (!token.partial) {
7609
- capture = '(?:' + prefix + '(' + capture + '))?'
7610
- } else {
7611
- capture = prefix + '(' + capture + ')?'
7612
- }
7613
- } else {
7614
- capture = prefix + '(' + capture + ')'
7615
- }
7616
 
7617
- route += capture
7618
- }
7619
- }
7620
 
7621
- var delimiter = escapeString(options.delimiter || '/')
7622
- var endsWithDelimiter = route.slice(-delimiter.length) === delimiter
7623
 
7624
- // In non-strict mode we allow a slash at the end of match. If the path to
7625
- // match already ends with a slash, we remove it for consistency. The slash
7626
- // is valid at the end of a path match, not in the middle. This is important
7627
- // in non-ending mode, where "/test/" shouldn't match "/test//route".
7628
- if (!strict) {
7629
- route = (endsWithDelimiter ? route.slice(0, -delimiter.length) : route) + '(?:' + delimiter + '(?=$))?'
7630
- }
7631
 
7632
- if (end) {
7633
- route += '$'
 
 
 
 
 
 
7634
  } else {
7635
- // In non-ending mode, we need the capturing groups to match as much as
7636
- // possible by using a positive lookahead to the end or next path segment.
7637
- route += strict && endsWithDelimiter ? '' : '(?=' + delimiter + '|$)'
7638
  }
7639
-
7640
- return attachKeys(new RegExp('^' + route, flags(options)), keys)
7641
  }
7642
 
7643
- /**
7644
- * Normalize the given path string, returning a regular expression.
7645
- *
7646
- * An empty array can be passed in for the keys, which will hold the
7647
- * placeholder key descriptions. For example, using `/user/:id`, `keys` will
7648
- * contain `[{ name: 'id', delimiter: '/', optional: false, repeat: false }]`.
7649
- *
7650
- * @param {(string|RegExp|Array)} path
7651
- * @param {(Array|Object)=} keys
7652
- * @param {Object=} options
7653
- * @return {!RegExp}
7654
- */
7655
- function pathToRegexp (path, keys, options) {
7656
- if (!isarray(keys)) {
7657
- options = /** @type {!Object} */ (keys || options)
7658
- keys = []
7659
- }
 
 
 
 
 
7660
 
7661
- options = options || {}
 
 
7662
 
7663
- if (path instanceof RegExp) {
7664
- return regexpToRegexp(path, /** @type {!Array} */ (keys))
7665
- }
7666
 
7667
- if (isarray(path)) {
7668
- return arrayToRegexp(/** @type {!Array} */ (path), /** @type {!Array} */ (keys), options)
7669
- }
7670
 
7671
- return stringToRegexp(/** @type {string} */ (path), /** @type {!Array} */ (keys), options)
7672
- }
7673
 
 
 
7674
 
7675
- /***/ }),
 
 
 
7676
 
7677
- /***/ 19:
7678
- /***/ (function(module, exports, __webpack_require__) {
7679
 
7680
- var arrayWithoutHoles = __webpack_require__(57);
 
7681
 
7682
- var iterableToArray = __webpack_require__(58);
 
7683
 
7684
- var unsupportedIterableToArray = __webpack_require__(39);
 
 
 
 
7685
 
7686
- var nonIterableSpread = __webpack_require__(59);
 
 
 
7687
 
7688
- function _toConsumableArray(arr) {
7689
- return arrayWithoutHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableSpread();
7690
- }
7691
 
7692
- module.exports = _toConsumableArray;
7693
 
7694
- /***/ }),
 
 
 
 
 
7695
 
7696
- /***/ 196:
7697
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
 
7698
 
7699
- "use strict";
7700
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return getUnreadNotesCount; });
7701
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return hasValidNotes; });
7702
- /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3);
7703
- /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_0__);
7704
- /**
7705
- * External dependencies
7706
- */
7707
 
7708
- /**
7709
- * Get the count of the unread notes from the received list.
7710
- *
7711
- * @param {Array} notes - List of notes, contains read and unread notes.
7712
- * @param {number} lastRead - The timestamp that the user read a note.
7713
- * @return {number} - Unread notes count.
7714
- */
7715
 
7716
- function getUnreadNotesCount(notes, lastRead) {
7717
- var unreadNotes = Object(lodash__WEBPACK_IMPORTED_MODULE_0__["filter"])(notes, function (note) {
7718
- var isDeleted = note.is_deleted,
7719
- dateCreatedGmt = note.date_created_gmt,
7720
- status = note.status;
7721
 
7722
- if (!isDeleted) {
7723
- var unread = !lastRead || !dateCreatedGmt || new Date(dateCreatedGmt + 'Z').getTime() > lastRead;
7724
- return unread && status === 'unactioned';
7725
- }
7726
- });
7727
- return unreadNotes.length;
7728
- }
7729
- /**
7730
- * Verifies if there are any valid notes in the list.
7731
- *
7732
- * @param {Array} notes - List of notes, contains read and unread notes.
7733
- * @return {boolean} - Whether there are valid notes or not.
7734
- */
7735
 
7736
- function hasValidNotes(notes) {
7737
- var validNotes = Object(lodash__WEBPACK_IMPORTED_MODULE_0__["filter"])(notes, function (note) {
7738
- var isDeleted = note.is_deleted;
7739
- return !isDeleted;
7740
- });
7741
- return validNotes.length > 0;
7742
- }
7743
 
7744
- /***/ }),
 
7745
 
7746
- /***/ 197:
7747
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
 
 
 
 
7748
 
7749
- "use strict";
7750
- /* unused harmony export Circle */
7751
- /* unused harmony export G */
7752
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return Path; });
7753
- /* unused harmony export Polygon */
7754
- /* unused harmony export Rect */
7755
- /* unused harmony export Defs */
7756
- /* unused harmony export RadialGradient */
7757
- /* unused harmony export LinearGradient */
7758
- /* unused harmony export Stop */
7759
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return SVG; });
7760
- /* harmony import */ var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(36);
7761
- /* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(55);
7762
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7);
7763
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
7764
- /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(0);
7765
- /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__);
7766
 
 
7767
 
 
 
 
 
7768
 
7769
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
 
 
 
7770
 
7771
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
 
 
7772
 
7773
- /**
7774
- * External dependencies
7775
- */
 
 
7776
 
7777
- /**
7778
- * WordPress dependencies
7779
- */
 
 
 
 
7780
 
 
 
 
7781
 
7782
- /** @typedef {{isPressed?: boolean} & import('react').ComponentPropsWithoutRef<'svg'>} SVGProps */
 
7783
 
7784
- /**
7785
- * @param {import('react').ComponentPropsWithoutRef<'circle'>} props
7786
- *
7787
- * @return {JSX.Element} Circle component
7788
- */
 
7789
 
7790
- var Circle = function Circle(props) {
7791
- return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__["createElement"])('circle', props);
7792
- };
7793
- /**
7794
- * @param {import('react').ComponentPropsWithoutRef<'g'>} props
7795
- *
7796
- * @return {JSX.Element} G component
7797
- */
7798
 
7799
- var G = function G(props) {
7800
- return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__["createElement"])('g', props);
7801
- };
7802
- /**
7803
- * @param {import('react').ComponentPropsWithoutRef<'path'>} props
7804
- *
7805
- * @return {JSX.Element} Path component
7806
- */
7807
 
7808
- var Path = function Path(props) {
7809
- return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__["createElement"])('path', props);
7810
- };
7811
- /**
7812
- * @param {import('react').ComponentPropsWithoutRef<'polygon'>} props
7813
- *
7814
- * @return {JSX.Element} Polygon component
7815
- */
7816
 
7817
- var Polygon = function Polygon(props) {
7818
- return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__["createElement"])('polygon', props);
7819
- };
7820
- /**
7821
- * @param {import('react').ComponentPropsWithoutRef<'rect'>} props
7822
- *
7823
- * @return {JSX.Element} Rect component
7824
- */
7825
 
7826
- var Rect = function Rect(props) {
7827
- return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__["createElement"])('rect', props);
7828
- };
7829
- /**
7830
- * @param {import('react').ComponentPropsWithoutRef<'defs'>} props
7831
- *
7832
- * @return {JSX.Element} Defs component
7833
- */
7834
 
7835
- var Defs = function Defs(props) {
7836
- return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__["createElement"])('defs', props);
7837
- };
7838
- /**
7839
- * @param {import('react').ComponentPropsWithoutRef<'radialGradient'>} props
7840
- *
7841
- * @return {JSX.Element} RadialGradient component
7842
- */
7843
 
7844
- var RadialGradient = function RadialGradient(props) {
7845
- return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__["createElement"])('radialGradient', props);
7846
- };
7847
  /**
7848
- * @param {import('react').ComponentPropsWithoutRef<'linearGradient'>} props
7849
- *
7850
- * @return {JSX.Element} LinearGradient component
7851
  */
 
 
 
 
 
7852
 
7853
- var LinearGradient = function LinearGradient(props) {
7854
- return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__["createElement"])('linearGradient', props);
7855
- };
7856
  /**
7857
- * @param {import('react').ComponentPropsWithoutRef<'stop'>} props
7858
  *
7859
- * @return {JSX.Element} Stop component
7860
  */
 
 
 
 
 
 
 
 
 
 
 
 
7861
 
7862
- var Stop = function Stop(props) {
7863
- return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__["createElement"])('stop', props);
7864
- };
7865
  /**
 
7866
  *
7867
- * @param {SVGProps} props isPressed indicates whether the SVG should appear as pressed.
7868
- * Other props will be passed through to svg component.
7869
- *
7870
- * @return {JSX.Element} Stop component
7871
  */
 
 
 
 
 
 
 
7872
 
7873
- var SVG = function SVG(_ref) {
7874
- var className = _ref.className,
7875
- isPressed = _ref.isPressed,
7876
- props = Object(_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"])(_ref, ["className", "isPressed"]);
7877
-
7878
- var appliedProps = _objectSpread(_objectSpread({}, props), {}, {
7879
- className: classnames__WEBPACK_IMPORTED_MODULE_2___default()(className, {
7880
- 'is-pressed': isPressed
7881
- }) || undefined,
7882
- role: 'img',
7883
- 'aria-hidden': true,
7884
- focusable: false
7885
- }); // Disable reason: We need to have a way to render HTML tag for web.
7886
- // eslint-disable-next-line react/forbid-elements
7887
-
7888
 
7889
- return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__["createElement"])("svg", appliedProps);
7890
- };
7891
- //# sourceMappingURL=index.js.map
 
 
7892
 
7893
- /***/ }),
 
 
 
 
 
 
7894
 
7895
- /***/ 2:
7896
- /***/ (function(module, exports) {
 
 
 
7897
 
7898
- (function() { module.exports = this["wp"]["i18n"]; }());
 
 
 
 
7899
 
7900
- /***/ }),
 
 
 
 
 
 
 
 
 
 
7901
 
7902
- /***/ 20:
7903
- /***/ (function(module, exports, __webpack_require__) {
 
 
7904
 
7905
- var arrayWithHoles = __webpack_require__(60);
 
 
 
7906
 
7907
- var iterableToArrayLimit = __webpack_require__(61);
 
7908
 
7909
- var unsupportedIterableToArray = __webpack_require__(39);
 
 
 
 
 
 
 
 
 
7910
 
7911
- var nonIterableRest = __webpack_require__(62);
 
 
 
 
 
 
 
 
 
 
7912
 
7913
- function _slicedToArray(arr, i) {
7914
- return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest();
 
 
 
 
 
 
 
 
7915
  }
7916
 
7917
- module.exports = _slicedToArray;
 
 
 
 
 
7918
 
7919
- /***/ }),
 
 
 
 
 
7920
 
7921
- /***/ 21:
7922
- /***/ (function(module, exports) {
 
 
 
7923
 
7924
- (function() { module.exports = this["wc"]["navigation"]; }());
 
7925
 
7926
- /***/ }),
 
7927
 
7928
- /***/ 22:
7929
- /***/ (function(module, exports) {
7930
 
7931
- (function() { module.exports = this["wp"]["url"]; }());
 
7932
 
7933
- /***/ }),
 
 
 
 
 
7934
 
7935
- /***/ 23:
7936
- /***/ (function(module, exports) {
 
 
 
7937
 
7938
- (function() { module.exports = this["wc"]["data"]; }());
 
 
 
7939
 
7940
- /***/ }),
 
 
 
 
 
 
7941
 
7942
- /***/ 24:
7943
- /***/ (function(module, exports) {
7944
 
7945
- function _extends() {
7946
- module.exports = _extends = Object.assign || function (target) {
7947
- for (var i = 1; i < arguments.length; i++) {
7948
- var source = arguments[i];
7949
 
7950
- for (var key in source) {
7951
- if (Object.prototype.hasOwnProperty.call(source, key)) {
7952
- target[key] = source[key];
7953
  }
7954
- }
7955
- }
7956
-
7957
- return target;
7958
- };
7959
-
7960
- return _extends.apply(this, arguments);
7961
- }
7962
 
7963
- module.exports = _extends;
 
7964
 
7965
- /***/ }),
7966
 
7967
- /***/ 25:
7968
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
 
7969
 
7970
- "use strict";
7971
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return ADMIN_URL; });
7972
- /* unused harmony export COUNTRIES */
7973
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return CURRENCY; });
7974
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return LOCALE; });
7975
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return ORDER_STATUSES; });
7976
- /* unused harmony export SITE_TITLE */
7977
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return WC_ASSET_URL; });
7978
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return getSetting; });
7979
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return setSetting; });
7980
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return getAdminLink; });
7981
- /* harmony import */ var _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(30);
7982
- /* harmony import */ var _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__);
7983
- /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2);
7984
- /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__);
7985
 
 
 
 
7986
 
7987
  /**
7988
- * External dependencies
 
 
 
7989
  */
7990
- // Remove mutable data from settings object to prevent access. Data stores should be used instead.
 
 
7991
 
7992
- var mutableSources = ['wcAdminSettings', 'preloadSettings'];
7993
- var settings = (typeof wcSettings === "undefined" ? "undefined" : _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default()(wcSettings)) === 'object' ? wcSettings : {};
7994
- var SOURCE = Object.keys(settings).reduce(function (source, key) {
7995
- if (!mutableSources.includes(key)) {
7996
- source[key] = settings[key];
7997
- }
 
 
 
7998
 
7999
- return source;
8000
- }, {});
8001
- var ADMIN_URL = SOURCE.adminUrl;
8002
- var COUNTRIES = SOURCE.countries;
8003
- var CURRENCY = SOURCE.currency;
8004
- var LOCALE = SOURCE.locale;
8005
- var ORDER_STATUSES = SOURCE.orderStatuses;
8006
- var SITE_TITLE = SOURCE.siteTitle;
8007
- var WC_ASSET_URL = SOURCE.wcAssetUrl;
8008
  /**
8009
- * Retrieves a setting value from the setting state.
8010
  *
8011
- * @param {string} name The identifier for the setting.
8012
- * @param {*} [fallback=false] The value to use as a fallback
8013
- * if the setting is not in the
8014
- * state.
8015
- * @param {Function} [filter=( val ) => val] A callback for filtering the
8016
- * value before it's returned.
8017
- * Receives both the found value
8018
- * (if it exists for the key) and
8019
- * the provided fallback arg.
 
 
8020
  *
8021
- * @return {*} The value present in the settings state for the given
8022
- * name.
8023
  */
 
 
 
8024
 
8025
- function getSetting(name) {
8026
- var fallback = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
8027
- var filter = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : function (val) {
8028
- return val;
8029
- };
 
 
 
 
 
8030
 
8031
- if (mutableSources.includes(name)) {
8032
- throw new Error(Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Mutable settings should be accessed via data store.'));
 
 
 
 
 
 
 
 
 
 
 
8033
  }
8034
 
8035
- var value = SOURCE.hasOwnProperty(name) ? SOURCE[name] : fallback;
8036
- return filter(value, fallback);
8037
  }
 
8038
  /**
8039
- * Sets a value to a property on the settings state.
8040
- *
8041
- * NOTE: This feature is to be removed in favour of data stores when a full migration
8042
- * is complete.
8043
- *
8044
- * @deprecated
8045
  *
8046
- * @param {string} name The setting property key for the
8047
- * setting being mutated.
8048
- * @param {*} value The value to set.
8049
- * @param {Function} [filter=( val ) => val] Allows for providing a callback
8050
- * to sanitize the setting (eg.
8051
- * ensure it's a number)
8052
- */
8053
-
8054
- function setSetting(name, value) {
8055
- var filter = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : function (val) {
8056
- return val;
8057
- };
8058
 
8059
- if (mutableSources.includes(name)) {
8060
- throw new Error(Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Mutable settings should be mutated via data store.'));
8061
  }
8062
 
8063
- SOURCE[name] = filter(value);
 
 
8064
  }
 
8065
  /**
8066
- * Returns a string with the site's wp-admin URL appended. JS version of `admin_url`.
8067
  *
8068
- * @param {string} path Relative path.
8069
- * @return {string} Full admin URL.
 
 
8070
  */
8071
-
8072
- function getAdminLink(path) {
8073
- return (ADMIN_URL || '') + path;
8074
  }
8075
 
8076
- /***/ }),
8077
-
8078
- /***/ 27:
8079
- /***/ (function(module, exports) {
8080
-
8081
- (function() { module.exports = this["wp"]["apiFetch"]; }());
 
 
 
 
 
 
 
8082
 
8083
- /***/ }),
8084
 
8085
- /***/ 277:
8086
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
 
8087
 
8088
- "use strict";
8089
- /* WEBPACK VAR INJECTION */(function(process) {/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
8090
- /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
8091
- /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3);
8092
- /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_1__);
8093
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7);
8094
- /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
8095
- /* harmony import */ var _wordpress_a11y__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(141);
8096
- /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(2);
8097
- /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__);
8098
- /* harmony import */ var _wordpress_warning__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(278);
8099
- /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(4);
8100
- /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_6__);
8101
 
 
 
 
 
 
8102
 
8103
- /**
8104
- * External dependencies
8105
- */
8106
 
 
 
 
8107
 
 
 
 
 
 
 
 
 
 
8108
 
 
 
 
8109
 
 
 
8110
 
 
 
 
 
 
 
 
8111
 
 
 
 
 
 
 
 
8112
 
8113
- var NOTICE_TIMEOUT = 10000;
8114
- /** @typedef {import('@wordpress/element').WPElement} WPElement */
8115
 
8116
  /**
8117
- * Custom hook which announces the message with the given politeness, if a
8118
- * valid message is provided.
8119
  *
8120
- * @param {string|WPElement} [message] Message to announce.
8121
- * @param {'polite'|'assertive'} politeness Politeness to announce.
 
 
 
 
 
 
8122
  */
 
 
 
 
 
8123
 
8124
- function useSpokenMessage(message, politeness) {
8125
- var spokenMessage = typeof message === 'string' ? message : Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["renderToString"])(message);
8126
- Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["useEffect"])(function () {
8127
- if (spokenMessage) {
8128
- Object(_wordpress_a11y__WEBPACK_IMPORTED_MODULE_3__[/* speak */ "a"])(spokenMessage, politeness);
8129
- }
8130
- }, [spokenMessage, politeness]);
 
 
 
 
8131
  }
8132
 
8133
- function Snackbar(_ref, ref) {
8134
- var className = _ref.className,
8135
- children = _ref.children,
8136
- _ref$spokenMessage = _ref.spokenMessage,
8137
- spokenMessage = _ref$spokenMessage === void 0 ? children : _ref$spokenMessage,
8138
- _ref$politeness = _ref.politeness,
8139
- politeness = _ref$politeness === void 0 ? 'polite' : _ref$politeness,
8140
- _ref$actions = _ref.actions,
8141
- actions = _ref$actions === void 0 ? [] : _ref$actions,
8142
- _ref$onRemove = _ref.onRemove,
8143
- onRemove = _ref$onRemove === void 0 ? lodash__WEBPACK_IMPORTED_MODULE_1__["noop"] : _ref$onRemove,
8144
- _ref$icon = _ref.icon,
8145
- icon = _ref$icon === void 0 ? null : _ref$icon,
8146
- _ref$explicitDismiss = _ref.explicitDismiss,
8147
- explicitDismiss = _ref$explicitDismiss === void 0 ? false : _ref$explicitDismiss,
8148
- _ref$onDismiss = _ref.onDismiss,
8149
- onDismiss = _ref$onDismiss === void 0 ? null : _ref$onDismiss;
8150
- onDismiss = onDismiss || lodash__WEBPACK_IMPORTED_MODULE_1__["noop"];
8151
 
8152
- function dismissMe(event) {
8153
- if (event && event.preventDefault) {
8154
- event.preventDefault();
8155
- }
8156
 
8157
- onDismiss();
8158
- onRemove();
8159
- }
8160
 
8161
- function onActionClick(event, onClick) {
8162
- event.stopPropagation();
8163
- onRemove();
8164
 
8165
- if (onClick) {
8166
- onClick(event);
8167
- }
8168
- }
8169
 
8170
- useSpokenMessage(spokenMessage, politeness); // Only set up the timeout dismiss if we're not explicitly dismissing.
8171
 
8172
- Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["useEffect"])(function () {
8173
- var timeoutHandle = setTimeout(function () {
8174
- if (!explicitDismiss) {
8175
- onDismiss();
8176
- onRemove();
8177
- }
8178
- }, NOTICE_TIMEOUT);
8179
- return function () {
8180
- return clearTimeout(timeoutHandle);
8181
- };
8182
- }, [explicitDismiss, onDismiss, onRemove]);
8183
- var classes = classnames__WEBPACK_IMPORTED_MODULE_2___default()(className, 'components-snackbar', {
8184
- 'components-snackbar-explicit-dismiss': !!explicitDismiss
8185
- });
8186
 
8187
- if (actions && actions.length > 1) {
8188
- // we need to inform developers that snackbar only accepts 1 action
8189
- typeof process !== "undefined" && process.env && "production" !== "production" ? Object(_wordpress_warning__WEBPACK_IMPORTED_MODULE_5__[/* default */ "a"])('Snackbar can only have 1 action, use Notice if your message require many messages') : void 0; // return first element only while keeping it inside an array
8190
 
8191
- actions = [actions[0]];
8192
- }
8193
 
8194
- var snackbarContentClassnames = classnames__WEBPACK_IMPORTED_MODULE_2___default()('components-snackbar__content', {
8195
- 'components-snackbar__content-with-icon': !!icon
8196
- });
8197
- return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("div", {
8198
- ref: ref,
8199
- className: classes,
8200
- onClick: !explicitDismiss ? dismissMe : lodash__WEBPACK_IMPORTED_MODULE_1__["noop"],
8201
- tabIndex: "0",
8202
- role: !explicitDismiss ? 'button' : '',
8203
- onKeyPress: !explicitDismiss ? dismissMe : lodash__WEBPACK_IMPORTED_MODULE_1__["noop"],
8204
- "aria-label": !explicitDismiss ? Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__["__"])('Dismiss this notice') : ''
8205
- }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("div", {
8206
- className: snackbarContentClassnames
8207
- }, icon && Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("div", {
8208
- className: "components-snackbar__icon"
8209
- }, icon), children, actions.map(function (_ref2, index) {
8210
- var label = _ref2.label,
8211
- _onClick = _ref2.onClick,
8212
- url = _ref2.url;
8213
- return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_6__["Button"], {
8214
- key: index,
8215
- href: url,
8216
- isTertiary: true,
8217
- onClick: function onClick(event) {
8218
- return onActionClick(event, _onClick);
8219
- },
8220
- className: "components-snackbar__action"
8221
- }, label);
8222
- }), explicitDismiss && Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("span", {
8223
- role: "button",
8224
- "aria-label": "Dismiss this notice",
8225
- tabIndex: "0",
8226
- className: "components-snackbar__dismiss-button",
8227
- onClick: dismissMe,
8228
- onKeyPress: dismissMe
8229
- }, "\u2715")));
8230
  }
 
 
 
 
 
 
8231
 
8232
- /* harmony default export */ __webpack_exports__["a"] = (Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["forwardRef"])(Snackbar));
8233
- /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(125)))
 
 
 
 
 
8234
 
8235
  /***/ }),
8236
 
8237
- /***/ 278:
8238
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
8239
 
8240
  "use strict";
8241
- /* WEBPACK VAR INJECTION */(function(process) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return warning; });
8242
- function isDev() {
8243
- return typeof process !== 'undefined' && process.env && "production" !== 'production';
8244
- }
 
 
 
 
 
 
 
8245
  /**
8246
- * Shows a warning with `message` if environment is not `production`.
8247
- *
8248
- * @param {string} message Message to show in the warning.
8249
- *
8250
- * @example
8251
- * ```js
8252
- * import warning from '@wordpress/warning';
8253
- *
8254
- * function MyComponent( props ) {
8255
- * if ( ! props.title ) {
8256
- * warning( '`props.title` was not passed' );
8257
- * }
8258
- * ...
8259
- * }
8260
- * ```
8261
  */
8262
 
 
8263
 
8264
- function warning(message) {
8265
- if (!isDev()) {
8266
- return;
8267
- } // eslint-disable-next-line no-console
8268
-
 
 
 
 
8269
 
8270
- console.warn(message); // Throwing an error and catching it immediately to improve debugging
8271
- // A consumer can use 'pause on caught exceptions'
8272
- // https://github.com/facebook/react/issues/4216
 
 
8273
 
8274
- try {
8275
- throw Error(message);
8276
- } catch (x) {// do nothing
8277
- }
8278
  }
 
 
8279
  //# sourceMappingURL=index.js.map
8280
- /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(125)))
8281
 
8282
  /***/ }),
8283
 
8284
- /***/ 279:
8285
  /***/ (function(module, exports) {
8286
 
8287
- (function() { module.exports = this["wc"]["customerEffortScore"]; }());
8288
 
8289
  /***/ }),
8290
 
8291
- /***/ 28:
8292
  /***/ (function(module, exports) {
8293
 
8294
- (function() { module.exports = this["wc"]["tracks"]; }());
8295
 
8296
  /***/ }),
8297
 
8298
- /***/ 286:
8299
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
8300
-
8301
- "use strict";
8302
 
8303
- // EXPORTS
8304
- __webpack_require__.d(__webpack_exports__, "a", function() { return /* reexport */ customer_effort_score_tracks_container; });
8305
 
8306
- // UNUSED EXPORTS: CustomerEffortScoreTracks
8307
 
8308
- // NAMESPACE OBJECT: ./client/customer-effort-score-tracks/data/actions.js
8309
- var actions_namespaceObject = {};
8310
- __webpack_require__.r(actions_namespaceObject);
8311
- __webpack_require__.d(actions_namespaceObject, "setCesSurveyQueue", function() { return setCesSurveyQueue; });
8312
- __webpack_require__.d(actions_namespaceObject, "addCesSurvey", function() { return addCesSurvey; });
8313
- __webpack_require__.d(actions_namespaceObject, "addCesSurveyForAnalytics", function() { return addCesSurveyForAnalytics; });
8314
 
8315
- // NAMESPACE OBJECT: ./client/customer-effort-score-tracks/data/resolvers.js
8316
- var resolvers_namespaceObject = {};
8317
- __webpack_require__.r(resolvers_namespaceObject);
8318
- __webpack_require__.d(resolvers_namespaceObject, "getCesSurveyQueue", function() { return resolvers_getCesSurveyQueue; });
8319
 
8320
- // NAMESPACE OBJECT: ./client/customer-effort-score-tracks/data/selectors.js
8321
- var selectors_namespaceObject = {};
8322
- __webpack_require__.r(selectors_namespaceObject);
8323
- __webpack_require__.d(selectors_namespaceObject, "getCesSurveyQueue", function() { return selectors_getCesSurveyQueue; });
8324
 
8325
- // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/toConsumableArray.js
8326
- var toConsumableArray = __webpack_require__(19);
8327
- var toConsumableArray_default = /*#__PURE__*/__webpack_require__.n(toConsumableArray);
8328
 
8329
- // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/defineProperty.js
8330
- var defineProperty = __webpack_require__(5);
8331
- var defineProperty_default = /*#__PURE__*/__webpack_require__.n(defineProperty);
8332
 
8333
- // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/slicedToArray.js
8334
- var slicedToArray = __webpack_require__(20);
8335
- var slicedToArray_default = /*#__PURE__*/__webpack_require__.n(slicedToArray);
8336
 
8337
- // EXTERNAL MODULE: external {"this":["wp","element"]}
8338
- var external_this_wp_element_ = __webpack_require__(0);
8339
 
8340
- // EXTERNAL MODULE: ./node_modules/prop-types/index.js
8341
- var prop_types = __webpack_require__(1);
8342
- var prop_types_default = /*#__PURE__*/__webpack_require__.n(prop_types);
 
8343
 
8344
- // EXTERNAL MODULE: external {"this":["wc","tracks"]}
8345
- var external_this_wc_tracks_ = __webpack_require__(28);
 
 
 
 
8346
 
8347
- // EXTERNAL MODULE: external {"this":["wc","customerEffortScore"]}
8348
- var external_this_wc_customerEffortScore_ = __webpack_require__(279);
8349
- var external_this_wc_customerEffortScore_default = /*#__PURE__*/__webpack_require__.n(external_this_wc_customerEffortScore_);
8350
 
8351
- // EXTERNAL MODULE: external {"this":["wp","compose"]}
8352
- var external_this_wp_compose_ = __webpack_require__(18);
8353
 
8354
- // EXTERNAL MODULE: external {"this":["wp","data"]}
8355
- var external_this_wp_data_ = __webpack_require__(15);
8356
 
8357
- // EXTERNAL MODULE: external {"this":["wc","data"]}
8358
- var external_this_wc_data_ = __webpack_require__(23);
8359
 
8360
- // EXTERNAL MODULE: external {"this":["wp","i18n"]}
8361
- var external_this_wp_i18n_ = __webpack_require__(2);
8362
 
8363
- // CONCATENATED MODULE: ./client/customer-effort-score-tracks/customer-effort-score-tracks.js
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8364
 
8365
 
 
 
 
 
8366
 
 
 
 
 
 
 
8367
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8368
 
8369
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
 
 
 
 
8370
 
8371
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { defineProperty_default()(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
 
 
8372
 
 
 
 
8373
  /**
8374
- * External dependencies
 
 
 
 
 
 
 
 
 
 
 
 
8375
  */
8376
 
 
 
 
 
8377
 
 
 
 
8378
 
8379
-
8380
-
8381
-
8382
-
8383
-
8384
- var SHOWN_FOR_ACTIONS_OPTION_NAME = 'woocommerce_ces_shown_for_actions';
8385
- var ADMIN_INSTALL_TIMESTAMP_OPTION_NAME = 'woocommerce_admin_install_timestamp';
8386
- var ALLOW_TRACKING_OPTION_NAME = 'woocommerce_allow_tracking';
8387
  /**
8388
- * A CustomerEffortScore wrapper that uses tracks to track the selected
8389
- * customer effort score.
8390
  *
8391
- * @param {Object} props Component props.
8392
- * @param {string} props.action The action name sent to Tracks.
8393
- * @param {Object} props.trackProps Additional props sent to Tracks.
8394
- * @param {string} props.label The label displayed in the modal.
8395
- * @param {string} props.onSubmitLabel The label displayed upon survey submission.
8396
- * @param {Array} props.cesShownForActions The array of actions that the CES modal has been shown for.
8397
- * @param {boolean} props.allowTracking Whether tracking is allowed or not.
8398
- * @param {boolean} props.resolving Are values still being resolved.
8399
- * @param {number} props.storeAgeInWeeks The age of the store in weeks.
8400
- * @param {Function} props.updateOptions Function to update options.
8401
- * @param {Function} props.createNotice Function to create a snackbar.
8402
  */
8403
 
8404
- function CustomerEffortScoreTracks(_ref) {
8405
- var action = _ref.action,
8406
- trackProps = _ref.trackProps,
8407
- label = _ref.label,
8408
- _ref$onSubmitLabel = _ref.onSubmitLabel,
8409
- onSubmitLabel = _ref$onSubmitLabel === void 0 ? Object(external_this_wp_i18n_["__"])('Thank you for your feedback!', 'woocommerce-admin') : _ref$onSubmitLabel,
8410
- cesShownForActions = _ref.cesShownForActions,
8411
- allowTracking = _ref.allowTracking,
8412
- resolving = _ref.resolving,
8413
- storeAgeInWeeks = _ref.storeAgeInWeeks,
8414
- updateOptions = _ref.updateOptions,
8415
- createNotice = _ref.createNotice;
8416
-
8417
- var _useState = Object(external_this_wp_element_["useState"])(false),
8418
- _useState2 = slicedToArray_default()(_useState, 2),
8419
- modalShown = _useState2[0],
8420
- setModalShown = _useState2[1];
8421
-
8422
- if (resolving) {
8423
- return null;
8424
- } // Don't show if tracking is disallowed.
8425
-
8426
-
8427
- if (!allowTracking) {
8428
- return null;
8429
- } // We only want to return null early if the modal was already shown
8430
- // for this action *before* this component was initially instantiated.
8431
- //
8432
- // We want to make sure we still render CustomerEffortScore below
8433
- // (we don't want to return null early), if the modal was shown for this
8434
- // instantiation, so that the component doesn't go away while we are
8435
- // still showing it.
8436
-
8437
 
8438
- if (cesShownForActions.indexOf(action) !== -1 && !modalShown) {
8439
- return null;
8440
- }
8441
 
8442
- var onNoticeShown = function onNoticeShown() {
8443
- Object(external_this_wc_tracks_["recordEvent"])('ces_snackbar_view', _objectSpread({
8444
- action: action,
8445
- store_age: storeAgeInWeeks
8446
- }, trackProps));
8447
- };
8448
 
8449
- var addActionToShownOption = function addActionToShownOption() {
8450
- updateOptions(defineProperty_default()({}, SHOWN_FOR_ACTIONS_OPTION_NAME, [action].concat(toConsumableArray_default()(cesShownForActions))));
8451
- };
8452
 
8453
- var onNoticeDismissed = function onNoticeDismissed() {
8454
- Object(external_this_wc_tracks_["recordEvent"])('ces_snackbar_dismiss', _objectSpread({
8455
- action: action,
8456
- store_age: storeAgeInWeeks
8457
- }, trackProps));
8458
- addActionToShownOption();
8459
- };
8460
 
8461
- var onModalShown = function onModalShown() {
8462
- setModalShown(true);
8463
- Object(external_this_wc_tracks_["recordEvent"])('ces_view', _objectSpread({
8464
- action: action,
8465
- store_age: storeAgeInWeeks
8466
- }, trackProps));
8467
- addActionToShownOption();
8468
- };
8469
 
8470
- var recordScore = function recordScore(score, comments) {
8471
- Object(external_this_wc_tracks_["recordEvent"])('ces_feedback', _objectSpread({
8472
- action: action,
8473
- score: score,
8474
- comments: comments || '',
8475
- store_age: storeAgeInWeeks
8476
- }, trackProps));
8477
- createNotice('success', onSubmitLabel);
8478
- };
8479
 
8480
- return Object(external_this_wp_element_["createElement"])(external_this_wc_customerEffortScore_default.a, {
8481
- recordScoreCallback: recordScore,
8482
- label: label,
8483
- onNoticeShownCallback: onNoticeShown,
8484
- onNoticeDismissedCallback: onNoticeDismissed,
8485
- onModalShownCallback: onModalShown,
8486
- icon: Object(external_this_wp_element_["createElement"])("span", {
8487
- style: {
8488
- height: 21,
8489
- width: 21
8490
- },
8491
- role: "img",
8492
- "aria-label": Object(external_this_wp_i18n_["__"])('Pencil icon', 'woocommerce-admin')
8493
- }, "\u270F\uFE0F")
8494
- });
8495
- }
8496
 
8497
- CustomerEffortScoreTracks.propTypes = {
8498
- /**
8499
- * The action name sent to Tracks.
8500
- */
8501
- action: prop_types_default.a.string.isRequired,
8502
 
8503
- /**
8504
- * Additional props sent to Tracks.
8505
- */
8506
- trackProps: prop_types_default.a.object,
 
 
 
 
 
 
 
 
 
8507
 
8508
- /**
8509
- * The label displayed in the modal.
8510
- */
8511
- label: prop_types_default.a.string.isRequired,
8512
 
8513
- /**
8514
- * The label for the snackbar that appears upon survey submission.
8515
- */
8516
- onSubmitLabel: prop_types_default.a.string,
8517
 
8518
- /**
8519
- * The array of actions that the CES modal has been shown for.
8520
- */
8521
- cesShownForActions: prop_types_default.a.arrayOf(prop_types_default.a.string).isRequired,
8522
 
8523
- /**
8524
- * Whether tracking is allowed or not.
8525
- */
8526
- allowTracking: prop_types_default.a.bool,
8527
 
8528
- /**
8529
- * Whether props are still being resolved.
8530
- */
8531
- resolving: prop_types_default.a.bool.isRequired,
8532
 
8533
- /**
8534
- * The age of the store in weeks.
8535
- */
8536
- storeAgeInWeeks: prop_types_default.a.number,
8537
 
8538
- /**
8539
- * Function to update options.
8540
- */
8541
- updateOptions: prop_types_default.a.func,
8542
 
8543
- /**
8544
- * Function to create a snackbar
8545
- */
8546
- createNotice: prop_types_default.a.func
8547
- };
8548
 
8549
- function getStoreAgeInWeeks(adminInstallTimestamp) {
8550
- if (adminInstallTimestamp === 0) {
8551
- return null;
8552
- } // Date.now() is ms since Unix epoch, adminInstallTimestamp is in
8553
- // seconds since Unix epoch.
8554
 
 
 
 
 
 
 
 
8555
 
8556
- var storeAgeInMs = Date.now() - adminInstallTimestamp * 1000;
8557
- var storeAgeInWeeks = Math.round(storeAgeInMs / external_this_wc_data_["WEEK"]);
8558
- return storeAgeInWeeks;
 
 
 
 
8559
  }
8560
 
8561
- /* harmony default export */ var customer_effort_score_tracks = (Object(external_this_wp_compose_["compose"])(Object(external_this_wp_data_["withSelect"])(function (select) {
8562
- var _select = select(external_this_wc_data_["OPTIONS_STORE_NAME"]),
8563
- getOption = _select.getOption,
8564
- isResolving = _select.isResolving;
8565
-
8566
- var cesShownForActions = getOption(SHOWN_FOR_ACTIONS_OPTION_NAME) || [];
8567
- var adminInstallTimestamp = getOption(ADMIN_INSTALL_TIMESTAMP_OPTION_NAME) || 0;
8568
- var storeAgeInWeeks = getStoreAgeInWeeks(adminInstallTimestamp);
8569
- var allowTrackingOption = getOption(ALLOW_TRACKING_OPTION_NAME) || 'no';
8570
- var allowTracking = allowTrackingOption === 'yes';
8571
- var resolving = isResolving('getOption', [SHOWN_FOR_ACTIONS_OPTION_NAME]) || storeAgeInWeeks === null || isResolving('getOption', [ADMIN_INSTALL_TIMESTAMP_OPTION_NAME]) || isResolving('getOption', [ALLOW_TRACKING_OPTION_NAME]);
8572
- return {
8573
- cesShownForActions: cesShownForActions,
8574
- allowTracking: allowTracking,
8575
- storeAgeInWeeks: storeAgeInWeeks,
8576
- resolving: resolving
8577
- };
8578
- }), Object(external_this_wp_data_["withDispatch"])(function (dispatch) {
8579
- var _dispatch = dispatch(external_this_wc_data_["OPTIONS_STORE_NAME"]),
8580
- updateOptions = _dispatch.updateOptions;
8581
-
8582
- var _dispatch2 = dispatch('core/notices'),
8583
- createNotice = _dispatch2.createNotice;
8584
 
8585
- return {
8586
- updateOptions: updateOptions,
8587
- createNotice: createNotice
8588
- };
8589
- }))(CustomerEffortScoreTracks));
8590
- // EXTERNAL MODULE: ./client/customer-effort-score-tracks/data/constants.js
8591
- var constants = __webpack_require__(73);
8592
 
8593
- // EXTERNAL MODULE: external {"this":["wp","dataControls"]}
8594
- var external_this_wp_dataControls_ = __webpack_require__(17);
 
8595
 
8596
- // CONCATENATED MODULE: ./client/customer-effort-score-tracks/data/action-types.js
8597
- var TYPES = {
8598
- SET_CES_SURVEY_QUEUE: 'SET_CES_SURVEY_QUEUE',
8599
- ADD_CES_SURVEY: 'ADD_CES_SURVEY'
8600
- };
8601
- /* harmony default export */ var action_types = (TYPES);
8602
- // CONCATENATED MODULE: ./client/customer-effort-score-tracks/data/actions.js
8603
- /**
8604
- * External dependencies
8605
- */
8606
 
8607
- /**
8608
- * Internal dependencies
8609
- */
 
8610
 
 
8611
 
8612
- /**
8613
- * Initialize the state
8614
- *
8615
- * @param {Object} queue initial queue
8616
- */
 
 
 
 
 
 
 
 
 
8617
 
8618
- function setCesSurveyQueue(queue) {
8619
- return {
8620
- type: action_types.SET_CES_SURVEY_QUEUE,
8621
- queue: queue
8622
- };
8623
- }
8624
- /**
8625
- * Add a new CES track to the state.
8626
- *
8627
- * @param {string} action action name for the survey
8628
- * @param {string} label label for the snackback
8629
- * @param {string} pageNow value of window.pagenow
8630
- * @param {string} adminPage value of window.adminpage
8631
- * @param {string} onsubmit_label label for the snackback onsubmit
8632
- */
8633
 
8634
- function addCesSurvey(action, label) {
8635
- var pageNow = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : window.pagenow;
8636
- var adminPage = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : window.adminpage;
8637
- var onsubmit_label = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : undefined;
8638
- return {
8639
- type: action_types.ADD_CES_SURVEY,
8640
- action: action,
8641
- label: label,
8642
- pageNow: pageNow,
8643
- adminPage: adminPage,
8644
- onsubmit_label: onsubmit_label
8645
- };
8646
- }
8647
- /**
8648
- * Add a new CES survey track for the pages in Analytics menu
8649
- */
8650
 
8651
- function addCesSurveyForAnalytics() {
8652
- return addCesSurvey('analytics_filtered', Object(external_this_wp_i18n_["__"])('How easy was it to filter your store analytics?', 'woocommerce-admin'), 'woocommerce_page_wc-admin', 'woocommerce_page_wc-admin');
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8653
  }
8654
- // EXTERNAL MODULE: ./node_modules/@babel/runtime/regenerator/index.js
8655
- var regenerator = __webpack_require__(8);
8656
- var regenerator_default = /*#__PURE__*/__webpack_require__.n(regenerator);
8657
 
8658
- // CONCATENATED MODULE: ./client/customer-effort-score-tracks/data/resolvers.js
 
8659
 
 
8660
 
8661
- var _marked = /*#__PURE__*/regenerator_default.a.mark(resolvers_getCesSurveyQueue);
 
8662
 
 
 
 
 
 
8663
  /**
8664
- * External dependencies
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8665
  */
8666
 
8667
- /**
8668
- * Internal dependencies
8669
- */
8670
 
 
 
 
 
8671
 
8672
 
8673
- function resolvers_getCesSurveyQueue() {
8674
- var response;
8675
- return regenerator_default.a.wrap(function getCesSurveyQueue$(_context) {
8676
- while (1) {
8677
- switch (_context.prev = _context.next) {
8678
- case 0:
8679
- _context.next = 2;
8680
- return Object(external_this_wp_dataControls_["apiFetch"])({
8681
- path: "".concat(constants["a" /* API_NAMESPACE */], "/options?options=").concat(constants["b" /* QUEUE_OPTION_NAME */])
8682
- });
8683
 
8684
- case 2:
8685
- response = _context.sent;
 
 
 
 
 
8686
 
8687
- if (!response) {
8688
- _context.next = 8;
8689
- break;
8690
- }
8691
 
8692
- _context.next = 6;
8693
- return setCesSurveyQueue(response[constants["b" /* QUEUE_OPTION_NAME */]] || []);
8694
 
8695
- case 6:
8696
- _context.next = 9;
8697
- break;
8698
 
8699
- case 8:
8700
- throw new Error();
8701
 
8702
- case 9:
8703
- case "end":
8704
- return _context.stop();
8705
- }
8706
- }
8707
- }, _marked);
8708
- }
8709
- // CONCATENATED MODULE: ./client/customer-effort-score-tracks/data/selectors.js
8710
- function selectors_getCesSurveyQueue(state) {
8711
- return state.queue;
8712
- }
8713
- // CONCATENATED MODULE: ./client/customer-effort-score-tracks/data/reducer.js
8714
 
 
 
8715
 
 
8716
 
8717
- function reducer_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
 
 
 
 
 
8718
 
8719
- function reducer_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { reducer_ownKeys(Object(source), true).forEach(function (key) { defineProperty_default()(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { reducer_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
 
 
 
8720
 
8721
- /**
8722
- * Internal dependencies
8723
- */
 
8724
 
8725
- var DEFAULT_STATE = {
8726
- queue: []
8727
- };
8728
 
8729
- var reducer_reducer = function reducer() {
8730
- var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : DEFAULT_STATE;
8731
- var action = arguments.length > 1 ? arguments[1] : undefined;
8732
 
8733
- switch (action.type) {
8734
- case action_types.SET_CES_SURVEY_QUEUE:
8735
- return reducer_objectSpread(reducer_objectSpread({}, state), {}, {
8736
- queue: action.queue
8737
- });
8738
 
8739
- case action_types.ADD_CES_SURVEY:
8740
- // Prevent duplicate
8741
- var hasDuplicate = state.queue.filter(function (track) {
8742
- return track.action === action.action;
8743
- });
8744
 
8745
- if (hasDuplicate.length) {
8746
- return state;
8747
- }
8748
 
8749
- var newTrack = {
8750
- action: action.action,
8751
- label: action.label,
8752
- pagenow: action.pageNow,
8753
- adminpage: action.adminPage,
8754
- onSubmitLabel: action.onSubmitLabel
8755
- };
8756
- return reducer_objectSpread(reducer_objectSpread({}, state), {}, {
8757
- queue: [].concat(toConsumableArray_default()(state.queue), [newTrack])
8758
- });
8759
 
8760
- default:
8761
- return state;
8762
- }
8763
- };
8764
 
8765
- /* harmony default export */ var data_reducer = (reducer_reducer);
8766
- // CONCATENATED MODULE: ./client/customer-effort-score-tracks/data/index.js
8767
- /**
8768
- * External dependencies
8769
- */
8770
 
 
 
8771
 
8772
- /**
8773
- * Internal dependencies
8774
- */
8775
 
 
 
8776
 
 
8777
 
8778
 
8779
 
8780
 
8781
- /* harmony default export */ var data = (Object(external_this_wp_data_["registerStore"])(constants["c" /* STORE_KEY */], {
8782
- actions: actions_namespaceObject,
8783
- selectors: selectors_namespaceObject,
8784
- resolvers: resolvers_namespaceObject,
8785
- controls: external_this_wp_dataControls_["controls"],
8786
- reducer: data_reducer
8787
- }));
8788
- // CONCATENATED MODULE: ./client/customer-effort-score-tracks/customer-effort-score-tracks-container.js
8789
 
 
 
 
8790
 
8791
  /**
8792
  * External dependencies
@@ -8795,605 +9142,521 @@ var reducer_reducer = function reducer() {
8795
 
8796
 
8797
 
8798
- /**
8799
- * Internal dependencies
8800
- */
8801
 
8802
 
8803
 
8804
 
 
 
 
8805
  /**
8806
- * Maps the queue of CES tracks surveys to CustomerEffortScoreTracks
8807
- * components. Note that generally there will only be a single survey per page
8808
- * however this is designed to be flexible if multiple surveys per page are
8809
- * added in the future.
8810
  *
8811
- * @param {Object} props Component props.
8812
- * @param {Array} props.queue The queue of surveys.
8813
- * @param {boolean} props.resolving Whether the queue is resolving.
8814
- * @param {Function} props.clearQueue Sets up clearing of the queue on the next page load.
 
 
 
 
 
 
 
8815
  */
8816
 
8817
- function CustomerEffortScoreTracksContainer(_ref) {
8818
- var queue = _ref.queue,
 
 
 
 
 
 
8819
  resolving = _ref.resolving,
8820
- clearQueue = _ref.clearQueue;
 
 
 
 
 
 
 
8821
 
8822
  if (resolving) {
8823
  return null;
8824
- }
8825
-
8826
- var queueForPage = queue.filter(function (item) {
8827
- return item.pagenow === window.pagenow && item.adminpage === window.adminpage;
8828
- });
8829
-
8830
- if (queueForPage.length) {
8831
- clearQueue();
8832
- }
8833
 
8834
- return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, queueForPage.map(function (item, index) {
8835
- return Object(external_this_wp_element_["createElement"])(customer_effort_score_tracks, {
8836
- key: index,
8837
- action: item.action,
8838
- label: item.label,
8839
- onSubmitLabel: item.onsubmit_label,
8840
- trackProps: item.props || {}
8841
- });
8842
- }));
8843
- }
8844
 
8845
- CustomerEffortScoreTracksContainer.propTypes = {
8846
- /**
8847
- * The queue of CES tracks surveys to display.
8848
- */
8849
- queue: prop_types_default.a.arrayOf(prop_types_default.a.object),
 
 
 
 
8850
 
8851
- /**
8852
- * If the queue option is being resolved.
8853
- */
8854
- resolving: prop_types_default.a.bool,
8855
 
8856
- /**
8857
- * Set up clearing the queue on the next page load.
8858
- */
8859
- clearQueue: prop_types_default.a.func
8860
- };
8861
- /* harmony default export */ var customer_effort_score_tracks_container = (Object(external_this_wp_compose_["compose"])(Object(external_this_wp_data_["withSelect"])(function (select) {
8862
- var _select = select(constants["c" /* STORE_KEY */]),
8863
- getCesSurveyQueue = _select.getCesSurveyQueue,
8864
- isResolving = _select.isResolving;
8865
 
8866
- var queue = getCesSurveyQueue();
8867
- var resolving = isResolving('getOption', [constants["b" /* QUEUE_OPTION_NAME */]]);
8868
- return {
8869
- queue: queue,
8870
- resolving: resolving
8871
  };
8872
- }), Object(external_this_wp_data_["withDispatch"])(function (dispatch) {
8873
- var _dispatch = dispatch(external_this_wc_data_["OPTIONS_STORE_NAME"]),
8874
- updateOptions = _dispatch.updateOptions;
8875
 
8876
- return {
8877
- clearQueue: function clearQueue() {
8878
- // This sets an option that should be used on the next page
8879
- // load to clear the CES tracks queue for the current page (see
8880
- // CustomerEffortScoreTracks.php) - clearing the queue
8881
- // directly puts this into an infinite loop which is picked
8882
- // up by React.
8883
- updateOptions({
8884
- woocommerce_clear_ces_tracks_queue_for_page: {
8885
- pagenow: window.pagenow,
8886
- adminpage: window.adminpage
8887
- }
8888
- });
8889
- }
8890
  };
8891
- }))(CustomerEffortScoreTracksContainer));
8892
- // CONCATENATED MODULE: ./client/customer-effort-score-tracks/index.js
8893
-
8894
 
 
 
 
 
 
 
 
8895
 
8896
- /***/ }),
8897
-
8898
- /***/ 287:
8899
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
8900
-
8901
- "use strict";
8902
-
8903
- // EXTERNAL MODULE: external {"this":["wp","element"]}
8904
- var external_this_wp_element_ = __webpack_require__(0);
8905
-
8906
- // EXTERNAL MODULE: external {"this":["wp","plugins"]}
8907
- var external_this_wp_plugins_ = __webpack_require__(140);
8908
-
8909
- // EXTERNAL MODULE: external {"this":["wc","navigation"]}
8910
- var external_this_wc_navigation_ = __webpack_require__(21);
8911
-
8912
- // EXTERNAL MODULE: external {"this":["wc","data"]}
8913
- var external_this_wc_data_ = __webpack_require__(23);
8914
-
8915
- // EXTERNAL MODULE: ./client/navigation/style.scss
8916
- var style = __webpack_require__(307);
8917
-
8918
- // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/slicedToArray.js
8919
- var slicedToArray = __webpack_require__(20);
8920
- var slicedToArray_default = /*#__PURE__*/__webpack_require__.n(slicedToArray);
8921
-
8922
- // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/defineProperty.js
8923
- var defineProperty = __webpack_require__(5);
8924
- var defineProperty_default = /*#__PURE__*/__webpack_require__.n(defineProperty);
8925
 
8926
- // EXTERNAL MODULE: external {"this":["wp","i18n"]}
8927
- var external_this_wp_i18n_ = __webpack_require__(2);
 
 
 
 
 
 
 
8928
 
8929
- // EXTERNAL MODULE: external {"this":["wp","compose"]}
8930
- var external_this_wp_compose_ = __webpack_require__(18);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8931
 
8932
- // EXTERNAL MODULE: ./packages/experimental/build-module/index.js
8933
- var build_module = __webpack_require__(31);
 
 
 
8934
 
8935
- // EXTERNAL MODULE: external {"this":["wc","tracks"]}
8936
- var external_this_wc_tracks_ = __webpack_require__(28);
 
 
8937
 
8938
- // EXTERNAL MODULE: external {"this":["wp","data"]}
8939
- var external_this_wp_data_ = __webpack_require__(15);
 
 
8940
 
8941
- // EXTERNAL MODULE: ./client/navigation/utils.js
8942
- var utils = __webpack_require__(86);
 
 
8943
 
8944
- // EXTERNAL MODULE: external {"this":["wp","components"]}
8945
- var external_this_wp_components_ = __webpack_require__(4);
 
 
8946
 
8947
- // EXTERNAL MODULE: external {"this":["wp","htmlEntities"]}
8948
- var external_this_wp_htmlEntities_ = __webpack_require__(40);
 
 
8949
 
8950
- // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/icon/index.js
8951
- var icon = __webpack_require__(302);
 
 
8952
 
8953
- // EXTERNAL MODULE: ./node_modules/@wordpress/primitives/build-module/svg/index.js
8954
- var svg = __webpack_require__(197);
 
 
8955
 
8956
- // CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/wordpress.js
 
 
 
8957
 
 
 
 
 
 
8958
 
8959
- /**
8960
- * WordPress dependencies
8961
- */
 
 
8962
 
8963
- var wordpress = Object(external_this_wp_element_["createElement"])(svg["b" /* SVG */], {
8964
- xmlns: "http://www.w3.org/2000/svg",
8965
- viewBox: "-2 -2 24 24"
8966
- }, Object(external_this_wp_element_["createElement"])(svg["a" /* Path */], {
8967
- 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"
8968
- }));
8969
- /* harmony default export */ var library_wordpress = (wordpress);
8970
- //# sourceMappingURL=wordpress.js.map
8971
- // EXTERNAL MODULE: ./client/settings/index.js
8972
- var settings = __webpack_require__(25);
8973
 
8974
- // EXTERNAL MODULE: ./node_modules/classnames/index.js
8975
- var classnames = __webpack_require__(7);
8976
- var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames);
 
8977
 
8978
- // EXTERNAL MODULE: external "lodash"
8979
- var external_lodash_ = __webpack_require__(3);
 
 
8980
 
8981
- // EXTERNAL MODULE: ./client/hooks/useIsScrolled.js
8982
- var useIsScrolled = __webpack_require__(139);
 
 
 
 
 
 
 
 
 
 
 
 
 
8983
 
8984
- // CONCATENATED MODULE: ./client/navigation/components/header/index.js
 
8985
 
 
 
 
 
 
 
 
8986
 
 
 
8987
 
 
 
 
 
 
 
 
8988
  /**
8989
  * External dependencies
8990
  */
8991
 
8992
-
8993
-
8994
-
8995
-
8996
-
8997
-
8998
-
8999
-
9000
  /**
9001
  * Internal dependencies
9002
  */
9003
 
9004
 
 
 
 
 
 
9005
 
9006
-
9007
- var header_Header = function Header() {
9008
- var siteTitle = Object(settings["g" /* getSetting */])('siteTitle', '');
9009
- var siteUrl = Object(settings["g" /* getSetting */])('siteUrl', '');
9010
- var isScrolled = Object(useIsScrolled["a" /* default */])();
9011
-
9012
- var _useState = Object(external_this_wp_element_["useState"])(document.body.classList.contains(false)),
9013
- _useState2 = slicedToArray_default()(_useState, 2),
9014
- isFolded = _useState2[0],
9015
- setIsFolded = _useState2[1];
9016
-
9017
- var navClasses = {
9018
- folded: 'is-wc-nav-folded',
9019
- expanded: 'is-wc-nav-expanded'
9020
- };
9021
-
9022
- var foldNav = function foldNav() {
9023
- document.body.classList.add(navClasses.folded);
9024
- document.body.classList.remove(navClasses.expanded);
9025
- setIsFolded(true);
9026
- };
9027
-
9028
- var expandNav = function expandNav() {
9029
- document.body.classList.remove(navClasses.folded);
9030
- document.body.classList.add(navClasses.expanded);
9031
- setIsFolded(false);
9032
- };
9033
-
9034
- var toggleFolded = function toggleFolded() {
9035
- if (document.body.classList.contains(navClasses.folded)) {
9036
- expandNav();
9037
- } else {
9038
- foldNav();
9039
- }
9040
- };
9041
-
9042
- var foldOnMobile = function foldOnMobile() {
9043
- var screenWidth = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : document.body.clientWidth;
9044
-
9045
- if (screenWidth <= 960) {
9046
- foldNav();
9047
- } else {
9048
- expandNav();
9049
- }
9050
  };
 
 
 
 
 
 
 
 
 
 
9051
 
9052
- Object(external_this_wp_element_["useEffect"])(function () {
9053
- foldOnMobile();
9054
- var foldEvents = [{
9055
- eventName: 'orientationchange',
9056
- handler: function handler(e) {
9057
- return foldOnMobile(e.target.screen.availWidth);
9058
- }
9059
- }, {
9060
- eventName: 'resize',
9061
- handler: Object(external_lodash_["debounce"])(function () {
9062
- return foldOnMobile();
9063
- }, 200)
9064
- }];
9065
-
9066
- for (var _i = 0, _foldEvents = foldEvents; _i < _foldEvents.length; _i++) {
9067
- var _foldEvents$_i = _foldEvents[_i],
9068
- eventName = _foldEvents$_i.eventName,
9069
- handler = _foldEvents$_i.handler;
9070
- window.addEventListener(eventName, handler, false);
9071
- }
9072
-
9073
- Object(utils["a" /* addHistoryListener */])(function () {
9074
- return foldOnMobile();
9075
- });
9076
- }, []);
9077
- var buttonIcon = Object(external_this_wp_element_["createElement"])(icon["a" /* default */], {
9078
- size: "36px",
9079
- icon: library_wordpress
9080
- });
9081
-
9082
- var _useSelect = Object(external_this_wp_data_["useSelect"])(function (select) {
9083
- var _select = select('core/data'),
9084
- isResolving = _select.isResolving;
9085
-
9086
- var _select2 = select('core'),
9087
- getEntityRecord = _select2.getEntityRecord;
9088
-
9089
- var siteData = getEntityRecord('root', '__unstableBase', undefined) || {};
9090
- return {
9091
- isRequestingSiteIcon: isResolving('core', 'getEntityRecord', ['root', '__unstableBase', undefined]),
9092
- siteIconUrl: siteData.siteIconUrl
9093
- };
9094
- }),
9095
- isRequestingSiteIcon = _useSelect.isRequestingSiteIcon,
9096
- siteIconUrl = _useSelect.siteIconUrl;
9097
-
9098
- if (siteIconUrl) {
9099
- buttonIcon = Object(external_this_wp_element_["createElement"])("img", {
9100
- alt: Object(external_this_wp_i18n_["__"])('Site Icon'),
9101
- src: siteIconUrl
9102
- });
9103
- } else if (isRequestingSiteIcon) {
9104
- buttonIcon = null;
9105
- }
9106
-
9107
- var className = classnames_default()('woocommerce-navigation-header', {
9108
- 'is-scrolled': isScrolled
9109
- });
9110
- return Object(external_this_wp_element_["createElement"])("div", {
9111
- className: className
9112
- }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], {
9113
- onClick: function onClick() {
9114
- return toggleFolded();
9115
- },
9116
- className: "woocommerce-navigation-header__site-icon",
9117
- "aria-label": "Fold navigation",
9118
- role: "switch",
9119
- "aria-checked": isFolded ? 'true' : 'false'
9120
- }, buttonIcon), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], {
9121
- href: siteUrl,
9122
- className: "woocommerce-navigation-header__site-title",
9123
- as: "span"
9124
- }, Object(external_this_wp_htmlEntities_["decodeEntities"])(siteTitle)));
9125
- };
9126
-
9127
- /* harmony default export */ var header = (header_Header);
9128
- // CONCATENATED MODULE: ./client/navigation/components/Item/index.js
9129
-
9130
-
9131
  /**
9132
- * External dependencies
9133
  */
9134
 
 
 
 
 
 
 
9135
 
 
9136
 
9137
 
9138
- var Item_Item = function Item(_ref) {
9139
- var item = _ref.item;
9140
- var slot = Object(external_this_wc_navigation_["useNavSlot"])('woocommerce_navigation_' + item.id);
9141
- var hasFills = Boolean(slot.fills && slot.fills.length);
9142
-
9143
- var trackClick = function trackClick(id) {
9144
- Object(external_this_wc_tracks_["recordEvent"])('navigation_click', {
9145
- menu_item: id
9146
- });
9147
- }; // Disable reason: The div wrapping the slot item is used for tracking purposes
9148
- // and should not be a tabbable element.
9149
-
9150
- /* eslint-disable jsx-a11y/no-static-element-interactions, jsx-a11y/click-events-have-key-events */
9151
- // Only render a slot if a coresponding Fill exists and the item is not a category
9152
-
9153
 
9154
- if (hasFills && !item.isCategory) {
9155
- return Object(external_this_wp_element_["createElement"])(build_module["d" /* NavigationItem */], {
9156
- key: item.id,
9157
- item: item.id
9158
- }, Object(external_this_wp_element_["createElement"])("div", {
9159
- onClick: function onClick() {
9160
- return trackClick(item.id);
9161
- }
9162
- }, Object(external_this_wp_element_["createElement"])(external_this_wc_navigation_["WooNavigationItem"].Slot, {
9163
- name: item.id
9164
- })));
9165
- }
9166
 
9167
- return Object(external_this_wp_element_["createElement"])(build_module["d" /* NavigationItem */], {
9168
- key: item.id,
9169
- item: item.id,
9170
- title: item.title,
9171
- href: item.url,
9172
- navigateToMenu: !item.url && item.id,
9173
- onClick: function onClick() {
9174
- return trackClick(item.id);
9175
- }
9176
- });
9177
- /* eslint-enable jsx-a11y/no-static-element-interactions, jsx-a11y/click-events-have-key-events */
9178
- };
9179
 
9180
- /* harmony default export */ var components_Item = (Item_Item);
9181
- // CONCATENATED MODULE: ./client/navigation/components/container/index.js
9182
 
9183
 
 
 
 
 
 
 
 
 
 
 
9184
 
 
 
9185
 
9186
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
 
 
 
9187
 
9188
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { defineProperty_default()(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
 
9189
 
9190
- /**
9191
- * External dependencies
9192
- */
9193
 
 
 
9194
 
 
 
 
 
 
 
 
 
 
 
 
 
9195
 
9196
 
9197
 
 
9198
 
 
9199
 
9200
  /**
9201
  * Internal dependencies
9202
  */
9203
 
 
 
 
9204
 
 
 
 
9205
 
 
 
 
 
 
9206
 
 
 
 
 
 
9207
 
9208
- var container_Container = function Container(_ref) {
9209
- var menuItems = _ref.menuItems;
9210
- Object(external_this_wp_element_["useEffect"])(function () {
9211
- // Collapse the original WP Menu.
9212
- var adminMenu = document.getElementById('adminmenumain');
9213
- adminMenu.classList.add('folded');
9214
- }, []);
9215
- var _window$wcNavigation = window.wcNavigation,
9216
- rootBackLabel = _window$wcNavigation.rootBackLabel,
9217
- rootBackUrl = _window$wcNavigation.rootBackUrl;
9218
- var parentCategory = {
9219
- capability: 'manage_woocommerce',
9220
- id: 'woocommerce',
9221
- isCategory: true,
9222
- menuId: 'primary',
9223
- migrate: true,
9224
- order: 10,
9225
- parent: '',
9226
- title: 'WooCommerce'
9227
- };
9228
- var categoriesMap = menuItems.reduce(function (acc, item) {
9229
- if (item.isCategory) {
9230
- return _objectSpread(_objectSpread({}, acc), {}, defineProperty_default()({}, item.id, item));
9231
- }
9232
-
9233
- return acc;
9234
- }, {
9235
- woocommerce: parentCategory
9236
- });
9237
- var categories = Object.values(categoriesMap);
9238
 
9239
- var _useState = Object(external_this_wp_element_["useState"])('woocommerce-home'),
9240
- _useState2 = slicedToArray_default()(_useState, 2),
9241
- activeItem = _useState2[0],
9242
- setActiveItem = _useState2[1];
 
 
 
 
 
 
9243
 
9244
- var _useState3 = Object(external_this_wp_element_["useState"])('woocommerce'),
9245
- _useState4 = slicedToArray_default()(_useState3, 2),
9246
- activeLevel = _useState4[0],
9247
- setActiveLevel = _useState4[1];
9248
 
9249
- Object(external_this_wp_element_["useEffect"])(function () {
9250
- var initialMatchedItem = Object(utils["b" /* getMatchingItem */])(menuItems);
 
 
 
9251
 
9252
- if (initialMatchedItem) {
9253
- setActiveItem(initialMatchedItem);
9254
- setActiveLevel(initialMatchedItem.parent);
9255
- }
9256
 
9257
- var removeListener = Object(utils["a" /* addHistoryListener */])(function () {
9258
- setTimeout(function () {
9259
- var matchedItem = Object(utils["b" /* getMatchingItem */])(menuItems);
9260
 
9261
- if (matchedItem) {
9262
- setActiveItem(matchedItem);
9263
- }
9264
- }, 0);
9265
- });
9266
- return removeListener;
9267
- }, [menuItems]);
9268
 
9269
- var getMenuItemsByCategory = function getMenuItemsByCategory(items) {
9270
- return items.reduce(function (acc, item) {
9271
- // Set up the category if it doesn't yet exist.
9272
- if (!acc[item.parent]) {
9273
- acc[item.parent] = {};
9274
- } // Check if parent category is in the same menu.
9275
 
9276
 
9277
- if (item.parent !== 'woocommerce' && categoriesMap[item.parent] && categoriesMap[item.parent].menuId !== item.menuId) {
9278
- return acc;
9279
- } // Create the menu object if it doesn't exist in this category.
9280
 
9281
 
9282
- if (!acc[item.parent][item.menuId]) {
9283
- acc[item.parent][item.menuId] = [];
9284
- }
 
 
 
 
 
9285
 
9286
- acc[item.parent][item.menuId].push(item);
9287
- return acc;
9288
- }, {});
9289
- };
9290
 
9291
- var categorizedItems = Object(external_this_wp_element_["useMemo"])(function () {
9292
- return getMenuItemsByCategory(menuItems);
9293
- }, [menuItems]);
9294
- var navDomRef = Object(external_this_wp_element_["useRef"])(null);
9295
 
9296
- var trackBackClick = function trackBackClick(id) {
9297
- Object(external_this_wc_tracks_["recordEvent"])('navigation_back_click', {
9298
- category: id
9299
- });
9300
- };
9301
 
9302
- var isRootBackVisible = activeLevel === 'woocommerce' && rootBackUrl;
9303
- return Object(external_this_wp_element_["createElement"])("div", {
9304
- className: "woocommerce-navigation"
9305
- }, Object(external_this_wp_element_["createElement"])(header, null), Object(external_this_wp_element_["createElement"])("div", {
9306
- className: "woocommerce-navigation__wrapper",
9307
- ref: navDomRef
9308
- }, Object(external_this_wp_element_["createElement"])(build_module["a" /* Navigation */], {
9309
- activeItem: activeItem ? activeItem.id : null,
9310
- activeMenu: activeLevel,
9311
- onActivateMenu: function onActivateMenu() {
9312
- if (navDomRef && navDomRef.current) {
9313
- navDomRef.current.scrollTop = 0;
9314
- }
9315
 
9316
- setActiveLevel.apply(void 0, arguments);
9317
- }
9318
- }, isRootBackVisible && Object(external_this_wp_element_["createElement"])(build_module["b" /* NavigationBackButton */], {
9319
- className: "woocommerce-navigation__back-to-dashboard",
9320
- href: rootBackUrl,
9321
- backButtonLabel: rootBackLabel,
9322
- onClick: function onClick() {
9323
- return trackBackClick('woocommerce');
9324
- }
9325
- }), categories.map(function (category) {
9326
- var _ref2 = categorizedItems[category.id] || {},
9327
- primaryItems = _ref2.primary,
9328
- secondaryItems = _ref2.secondary,
9329
- pluginItems = _ref2.plugins;
9330
 
9331
- return Object(external_this_wp_element_["createElement"])(build_module["e" /* NavigationMenu */], {
9332
- key: category.id,
9333
- title: category.title,
9334
- menu: category.id,
9335
- parentMenu: category.parent,
9336
- backButtonLabel: category.backButtonLabel || null,
9337
- onBackButtonClick: isRootBackVisible ? null : function () {
9338
- return trackBackClick(category.id);
9339
- }
9340
- }, !!primaryItems && Object(external_this_wp_element_["createElement"])(build_module["c" /* NavigationGroup */], null, primaryItems.map(function (item) {
9341
- return Object(external_this_wp_element_["createElement"])(components_Item, {
9342
- key: item.id,
9343
- item: item
9344
- });
9345
- })), !!pluginItems && Object(external_this_wp_element_["createElement"])(build_module["c" /* NavigationGroup */], {
9346
- title: category.id === 'woocommerce' ? Object(external_this_wp_i18n_["__"])('Extensions', 'woocommerce-admin') : null
9347
- }, pluginItems.map(function (item) {
9348
- return Object(external_this_wp_element_["createElement"])(components_Item, {
9349
- key: item.id,
9350
- item: item
9351
- });
9352
- })), !!secondaryItems && Object(external_this_wp_element_["createElement"])(build_module["c" /* NavigationGroup */], {
9353
- onBackButtonClick: function onBackButtonClick() {
9354
- return trackBackClick(category.id);
9355
- }
9356
- }, secondaryItems.map(function (item) {
9357
- return Object(external_this_wp_element_["createElement"])(components_Item, {
9358
- key: item.id,
9359
- item: item
9360
- });
9361
- })));
9362
- }))));
9363
- };
9364
 
9365
- /* harmony default export */ var container = (Object(external_this_wp_compose_["compose"])(Object(external_this_wp_data_["withSelect"])(function (select) {
9366
- var _select = select(external_this_wc_data_["NAVIGATION_STORE_NAME"]),
9367
- getActiveItem = _select.getActiveItem,
9368
- getMenuItems = _select.getMenuItems;
9369
 
9370
- return {
9371
- activeItem: getActiveItem(),
9372
- menuItems: getMenuItems()
9373
- };
9374
- }))(container_Container));
9375
- // CONCATENATED MODULE: ./client/navigation/index.js
9376
 
9377
 
9378
  /**
9379
- * External dependencies
 
 
 
 
 
 
 
 
9380
  */
9381
 
 
 
 
 
 
 
 
 
9382
 
 
 
 
9383
 
9384
- /**
9385
- * Internal dependencies
9386
- */
9387
 
 
 
 
 
 
 
 
 
 
 
9388
 
 
 
 
 
 
9389
 
 
 
 
 
9390
 
9391
- var navigation_Navigation = function Navigation() {
9392
- return Object(external_this_wp_element_["createElement"])(external_this_wc_navigation_["NavSlotFillProvider"], null, Object(external_this_wp_element_["createElement"])(container, null), Object(external_this_wp_element_["createElement"])(external_this_wp_plugins_["PluginArea"], null));
 
 
9393
  };
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9394
 
9395
- var HydratedNavigation = Object(external_this_wc_data_["withNavigationHydration"])(window.wcNavigation)(navigation_Navigation);
9396
- /* harmony default export */ var navigation = __webpack_exports__["a"] = (HydratedNavigation);
9397
 
9398
  /***/ }),
9399
 
@@ -9404,7 +9667,7 @@ var HydratedNavigation = Object(external_this_wc_data_["withNavigationHydration"
9404
 
9405
  /***/ }),
9406
 
9407
- /***/ 295:
9408
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
9409
 
9410
  "use strict";
@@ -9412,13 +9675,12 @@ __webpack_require__.r(__webpack_exports__);
9412
  /* WEBPACK VAR INJECTION */(function(global) {/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
9413
  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
9414
  /* harmony import */ var _wordpress_notices__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(469);
9415
- /* harmony import */ var _woocommerce_data__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(23);
9416
  /* harmony import */ var _woocommerce_data__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_woocommerce_data__WEBPACK_IMPORTED_MODULE_2__);
9417
- /* harmony import */ var _stylesheets_index_scss__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(297);
9418
  /* harmony import */ var _stylesheets_index_scss__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_stylesheets_index_scss__WEBPACK_IMPORTED_MODULE_3__);
9419
- /* harmony import */ var _layout__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(142);
9420
  /* harmony import */ var _customer_effort_score_tracks__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(286);
9421
- /* harmony import */ var _navigation__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(287);
9422
 
9423
 
9424
  /**
@@ -9433,7 +9695,6 @@ __webpack_require__.r(__webpack_exports__);
9433
 
9434
 
9435
 
9436
-
9437
  // Modify webpack pubilcPath at runtime based on location of WordPress Plugin.
9438
  // eslint-disable-next-line no-undef,camelcase
9439
 
@@ -9475,12 +9736,6 @@ if (appRoot) {
9475
  Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["render"])(Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("div", {
9476
  className: "woocommerce-layout"
9477
  }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_layout__WEBPACK_IMPORTED_MODULE_4__[/* PrimaryLayout */ "c"], null)), wpBody.insertBefore(noticeContainer, wrap));
9478
- }
9479
-
9480
- var navigationRoot = document.getElementById('woocommerce-embedded-navigation');
9481
-
9482
- if (navigationRoot) {
9483
- Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["render"])(Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_navigation__WEBPACK_IMPORTED_MODULE_6__[/* default */ "a"], null), navigationRoot);
9484
  } // Render the CustomerEffortScoreTracksContainer only if
9485
  // the feature flag is enabled.
9486
 
@@ -9492,7 +9747,14 @@ if (window.wcAdminFeatures && window.wcAdminFeatures['customer-effort-score-trac
9492
  Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["render"])(Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_customer_effort_score_tracks__WEBPACK_IMPORTED_MODULE_5__[/* CustomerEffortScoreTracksContainer */ "a"], null), root.insertBefore(document.createElement('div'), null));
9493
  })();
9494
  }
9495
- /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(82)))
 
 
 
 
 
 
 
9496
 
9497
  /***/ }),
9498
 
@@ -9525,25 +9787,33 @@ if (window.wcAdminFeatures && window.wcAdminFeatures['customer-effort-score-trac
9525
  /***/ }),
9526
 
9527
  /***/ 30:
9528
- /***/ (function(module, exports) {
9529
-
9530
- function _typeof(obj) {
9531
- "@babel/helpers - typeof";
9532
 
9533
- if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
9534
- module.exports = _typeof = function _typeof(obj) {
9535
- return typeof obj;
9536
- };
9537
- } else {
9538
- module.exports = _typeof = function _typeof(obj) {
9539
- return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
9540
- };
9541
- }
 
 
 
 
9542
 
9543
- return _typeof(obj);
9544
- }
 
9545
 
9546
- module.exports = _typeof;
 
 
 
 
 
 
9547
 
9548
  /***/ }),
9549
 
@@ -9562,81 +9832,49 @@ module.exports = _typeof;
9562
  /***/ }),
9563
 
9564
  /***/ 302:
9565
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
9566
-
9567
- "use strict";
9568
- /* harmony import */ var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(36);
9569
- /* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(55);
9570
- /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(0);
9571
- /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__);
9572
-
9573
-
9574
-
9575
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
9576
-
9577
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
9578
-
9579
- /**
9580
- * WordPress dependencies
9581
- */
9582
-
9583
- /** @typedef {{icon: JSX.Element, size?: number} & import('@wordpress/primitives').SVGProps} IconProps */
9584
 
9585
- /**
9586
- * Return an SVG icon.
9587
- *
9588
- * @param {IconProps} props icon is the SVG component to render
9589
- * size is a number specifiying the icon size in pixels
9590
- * Other props will be passed to wrapped SVG component
9591
- *
9592
- * @return {JSX.Element} Icon component
9593
- */
9594
 
9595
- function Icon(_ref) {
9596
- var icon = _ref.icon,
9597
- _ref$size = _ref.size,
9598
- size = _ref$size === void 0 ? 24 : _ref$size,
9599
- props = Object(_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"])(_ref, ["icon", "size"]);
9600
 
9601
- return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["cloneElement"])(icon, _objectSpread({
9602
- width: size,
9603
- height: size
9604
- }, props));
9605
- }
9606
 
9607
- /* harmony default export */ __webpack_exports__["a"] = (Icon);
9608
- //# sourceMappingURL=index.js.map
9609
 
9610
  /***/ }),
9611
 
9612
- /***/ 303:
9613
  /***/ (function(module, exports, __webpack_require__) {
9614
 
9615
  // extracted by mini-css-extract-plugin
9616
 
9617
  /***/ }),
9618
 
9619
- /***/ 304:
9620
- /***/ (function(module, exports) {
 
 
9621
 
9622
  function _inheritsLoose(subClass, superClass) {
9623
  subClass.prototype = Object.create(superClass.prototype);
9624
  subClass.prototype.constructor = subClass;
9625
- subClass.__proto__ = superClass;
9626
  }
9627
 
9628
  module.exports = _inheritsLoose;
9629
 
9630
  /***/ }),
9631
 
9632
- /***/ 305:
9633
  /***/ (function(module, exports, __webpack_require__) {
9634
 
9635
  // extracted by mini-css-extract-plugin
9636
 
9637
  /***/ }),
9638
 
9639
- /***/ 306:
9640
  /***/ (function(module, exports) {
9641
 
9642
  module.exports = Array.isArray || function (arr) {
@@ -9644,43 +9882,28 @@ module.exports = Array.isArray || function (arr) {
9644
  };
9645
 
9646
 
9647
- /***/ }),
9648
-
9649
- /***/ 307:
9650
- /***/ (function(module, exports, __webpack_require__) {
9651
-
9652
- // extracted by mini-css-extract-plugin
9653
-
9654
  /***/ }),
9655
 
9656
  /***/ 31:
9657
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
9658
 
9659
- "use strict";
9660
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return Navigation; });
9661
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return NavigationBackButton; });
9662
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return NavigationGroup; });
9663
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return NavigationMenu; });
9664
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return NavigationItem; });
9665
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return Text; });
9666
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return useSlot; });
9667
- /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4);
9668
- /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_0__);
9669
- /**
9670
- * External dependencies
9671
- */
9672
 
9673
- /**
9674
- * Prioritize exports of non-experimental components over experimental.
9675
- */
 
 
 
 
 
 
9676
 
9677
- var Navigation = _wordpress_components__WEBPACK_IMPORTED_MODULE_0__["Navigation"] || _wordpress_components__WEBPACK_IMPORTED_MODULE_0__["__experimentalNavigation"];
9678
- var NavigationBackButton = _wordpress_components__WEBPACK_IMPORTED_MODULE_0__["NavigationBackButton"] || _wordpress_components__WEBPACK_IMPORTED_MODULE_0__["__experimentalNavigationBackButton"];
9679
- var NavigationGroup = _wordpress_components__WEBPACK_IMPORTED_MODULE_0__["NavigationGroup"] || _wordpress_components__WEBPACK_IMPORTED_MODULE_0__["__experimentalNavigationGroup"];
9680
- var NavigationMenu = _wordpress_components__WEBPACK_IMPORTED_MODULE_0__["NavigationMenu"] || _wordpress_components__WEBPACK_IMPORTED_MODULE_0__["__experimentalNavigationMenu"];
9681
- var NavigationItem = _wordpress_components__WEBPACK_IMPORTED_MODULE_0__["NavigationItem"] || _wordpress_components__WEBPACK_IMPORTED_MODULE_0__["__experimentalNavigationItem"];
9682
- var Text = _wordpress_components__WEBPACK_IMPORTED_MODULE_0__["Text"] || _wordpress_components__WEBPACK_IMPORTED_MODULE_0__["__experimentalText"];
9683
- var useSlot = _wordpress_components__WEBPACK_IMPORTED_MODULE_0__["useSlot"] || _wordpress_components__WEBPACK_IMPORTED_MODULE_0__["__experimentalUseSlot"];
9684
 
9685
  /***/ }),
9686
 
@@ -9712,7 +9935,7 @@ function _extends() {
9712
  /***/ 34:
9713
  /***/ (function(module, exports, __webpack_require__) {
9714
 
9715
- var objectWithoutPropertiesLoose = __webpack_require__(96);
9716
 
9717
  function _objectWithoutProperties(source, excluded) {
9718
  if (source == null) return {};
@@ -9780,16 +10003,37 @@ module.exports = _arrayLikeToArray;
9780
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
9781
 
9782
  "use strict";
9783
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _inheritsLoose; });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9784
  function _inheritsLoose(subClass, superClass) {
9785
  subClass.prototype = Object.create(superClass.prototype);
9786
  subClass.prototype.constructor = subClass;
9787
- subClass.__proto__ = superClass;
9788
  }
9789
 
9790
  /***/ }),
9791
 
9792
- /***/ 39:
 
 
 
 
 
 
 
9793
  /***/ (function(module, exports, __webpack_require__) {
9794
 
9795
  var arrayLikeToArray = __webpack_require__(37);
@@ -9800,28 +10044,21 @@ function _unsupportedIterableToArray(o, minLen) {
9800
  var n = Object.prototype.toString.call(o).slice(8, -1);
9801
  if (n === "Object" && o.constructor) n = o.constructor.name;
9802
  if (n === "Map" || n === "Set") return Array.from(o);
9803
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen);
9804
- }
9805
-
9806
- module.exports = _unsupportedIterableToArray;
9807
-
9808
- /***/ }),
9809
-
9810
- /***/ 4:
9811
- /***/ (function(module, exports) {
9812
 
9813
- (function() { module.exports = this["wp"]["components"]; }());
9814
 
9815
  /***/ }),
9816
 
9817
- /***/ 40:
9818
  /***/ (function(module, exports) {
9819
 
9820
  (function() { module.exports = this["wp"]["htmlEntities"]; }());
9821
 
9822
  /***/ }),
9823
 
9824
- /***/ 41:
9825
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
9826
 
9827
  "use strict";
@@ -9843,14 +10080,14 @@ function _objectWithoutPropertiesLoose(source, excluded) {
9843
 
9844
  /***/ }),
9845
 
9846
- /***/ 42:
9847
  /***/ (function(module, exports) {
9848
 
9849
  (function() { module.exports = this["wp"]["hooks"]; }());
9850
 
9851
  /***/ }),
9852
 
9853
- /***/ 43:
9854
  /***/ (function(module, exports) {
9855
 
9856
  function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
@@ -9914,10 +10151,10 @@ __webpack_require__.r(selectors_namespaceObject);
9914
  __webpack_require__.d(selectors_namespaceObject, "getNotices", function() { return getNotices; });
9915
 
9916
  // EXTERNAL MODULE: external {"this":["wp","data"]}
9917
- var external_this_wp_data_ = __webpack_require__(15);
9918
 
9919
  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + 3 modules
9920
- var toConsumableArray = __webpack_require__(80);
9921
 
9922
  // EXTERNAL MODULE: external "lodash"
9923
  var external_lodash_ = __webpack_require__(3);
@@ -10285,7 +10522,7 @@ function getNotices(state) {
10285
  }
10286
  //# sourceMappingURL=selectors.js.map
10287
  // EXTERNAL MODULE: ./node_modules/@wordpress/a11y/build-module/index.js + 4 modules
10288
- var build_module = __webpack_require__(141);
10289
 
10290
  // CONCATENATED MODULE: ./node_modules/@wordpress/notices/build-module/store/controls.js
10291
  /**
@@ -10334,7 +10571,7 @@ var build_module = __webpack_require__(141);
10334
 
10335
  /***/ }),
10336
 
10337
- /***/ 477:
10338
  /***/ (function(module, exports) {
10339
 
10340
  (function() { module.exports = this["wc"]["csvExport"]; }());
@@ -10347,8 +10584,8 @@ var build_module = __webpack_require__(141);
10347
  "use strict";
10348
 
10349
 
10350
- var stringify = __webpack_require__(87);
10351
- var parse = __webpack_require__(88);
10352
  var formats = __webpack_require__(52);
10353
 
10354
  module.exports = {
@@ -10358,6 +10595,30 @@ module.exports = {
10358
  };
10359
 
10360
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
10361
  /***/ }),
10362
 
10363
  /***/ 5:
@@ -10474,7 +10735,7 @@ function domReady(callback) {
10474
 
10475
  "use strict";
10476
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _objectWithoutProperties; });
10477
- /* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(41);
10478
 
10479
  function _objectWithoutProperties(source, excluded) {
10480
  if (source == null) return {};
@@ -10554,16 +10815,61 @@ module.exports = _nonIterableSpread;
10554
  /***/ }),
10555
 
10556
  /***/ 6:
10557
- /***/ (function(module, exports) {
10558
 
10559
- function _getPrototypeOf(o) {
10560
- module.exports = _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
10561
- return o.__proto__ || Object.getPrototypeOf(o);
10562
- };
10563
- return _getPrototypeOf(o);
10564
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
10565
 
10566
- module.exports = _getPrototypeOf;
10567
 
10568
  /***/ }),
10569
 
@@ -10624,6 +10930,155 @@ module.exports = _nonIterableRest;
10624
  /***/ }),
10625
 
10626
  /***/ 67:
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
10627
  /***/ (function(module, exports, __webpack_require__) {
10628
 
10629
  /**
@@ -11378,7 +11833,7 @@ try {
11378
 
11379
  /***/ }),
11380
 
11381
- /***/ 68:
11382
  /***/ (function(module, exports, __webpack_require__) {
11383
 
11384
  "use strict";
@@ -11637,7 +12092,21 @@ module.exports = {
11637
 
11638
  /***/ }),
11639
 
11640
- /***/ 69:
 
 
 
 
 
 
 
 
 
 
 
 
 
 
11641
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
11642
 
11643
  "use strict";
@@ -11654,66 +12123,7 @@ function _arrayLikeToArray(arr, len) {
11654
 
11655
  /***/ }),
11656
 
11657
- /***/ 7:
11658
- /***/ (function(module, exports, __webpack_require__) {
11659
-
11660
- /*!
11661
- Copyright (c) 2017 Jed Watson.
11662
- Licensed under the MIT License (MIT), see
11663
- http://jedwatson.github.io/classnames
11664
- */
11665
- /* global define */
11666
-
11667
- (function () {
11668
- 'use strict';
11669
-
11670
- var hasOwn = {}.hasOwnProperty;
11671
-
11672
- function classNames () {
11673
- var classes = [];
11674
-
11675
- for (var i = 0; i < arguments.length; i++) {
11676
- var arg = arguments[i];
11677
- if (!arg) continue;
11678
-
11679
- var argType = typeof arg;
11680
-
11681
- if (argType === 'string' || argType === 'number') {
11682
- classes.push(arg);
11683
- } else if (Array.isArray(arg) && arg.length) {
11684
- var inner = classNames.apply(null, arg);
11685
- if (inner) {
11686
- classes.push(inner);
11687
- }
11688
- } else if (argType === 'object') {
11689
- for (var key in arg) {
11690
- if (hasOwn.call(arg, key) && arg[key]) {
11691
- classes.push(key);
11692
- }
11693
- }
11694
- }
11695
- }
11696
-
11697
- return classes.join(' ');
11698
- }
11699
-
11700
- if ( true && module.exports) {
11701
- classNames.default = classNames;
11702
- module.exports = classNames;
11703
- } else if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {
11704
- // register as 'classnames', consistent with npm package name
11705
- define('classnames', [], function () {
11706
- return classNames;
11707
- });
11708
- } else {
11709
- window.classNames = classNames;
11710
- }
11711
- }());
11712
-
11713
-
11714
- /***/ }),
11715
-
11716
- /***/ 70:
11717
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
11718
 
11719
  "use strict";
@@ -12775,11 +13185,27 @@ function createMemoryHistory(props) {
12775
  /***/ 72:
12776
  /***/ (function(module, exports) {
12777
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
12778
  (function() { module.exports = this["wp"]["date"]; }());
12779
 
12780
  /***/ }),
12781
 
12782
- /***/ 73:
12783
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
12784
 
12785
  "use strict";
@@ -12792,23 +13218,7 @@ var QUEUE_OPTION_NAME = 'woocommerce_ces_tracks_queue';
12792
 
12793
  /***/ }),
12794
 
12795
- /***/ 74:
12796
- /***/ (function(module, exports) {
12797
-
12798
- function _setPrototypeOf(o, p) {
12799
- module.exports = _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
12800
- o.__proto__ = p;
12801
- return o;
12802
- };
12803
-
12804
- return _setPrototypeOf(o, p);
12805
- }
12806
-
12807
- module.exports = _setPrototypeOf;
12808
-
12809
- /***/ }),
12810
-
12811
- /***/ 75:
12812
  /***/ (function(module, exports, __webpack_require__) {
12813
 
12814
  "use strict";
@@ -12821,7 +13231,7 @@ module.exports = _setPrototypeOf;
12821
 
12822
 
12823
 
12824
- var ReactPropTypesSecret = __webpack_require__(76);
12825
 
12826
  function emptyFunction() {}
12827
  function emptyFunctionWithReset() {}
@@ -12880,7 +13290,7 @@ module.exports = function() {
12880
 
12881
  /***/ }),
12882
 
12883
- /***/ 76:
12884
  /***/ (function(module, exports, __webpack_require__) {
12885
 
12886
  "use strict";
@@ -12903,12 +13313,12 @@ module.exports = ReactPropTypesSecret;
12903
  /***/ 8:
12904
  /***/ (function(module, exports, __webpack_require__) {
12905
 
12906
- module.exports = __webpack_require__(67);
12907
 
12908
 
12909
  /***/ }),
12910
 
12911
- /***/ 80:
12912
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
12913
 
12914
  "use strict";
@@ -12917,7 +13327,7 @@ module.exports = __webpack_require__(67);
12917
  __webpack_require__.d(__webpack_exports__, "a", function() { return /* binding */ _toConsumableArray; });
12918
 
12919
  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
12920
- var arrayLikeToArray = __webpack_require__(69);
12921
 
12922
  // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js
12923
 
@@ -12929,7 +13339,7 @@ function _iterableToArray(iter) {
12929
  if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter);
12930
  }
12931
  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
12932
- var unsupportedIterableToArray = __webpack_require__(93);
12933
 
12934
  // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js
12935
  function _nonIterableSpread() {
@@ -12946,7 +13356,7 @@ function _toConsumableArray(arr) {
12946
 
12947
  /***/ }),
12948
 
12949
- /***/ 82:
12950
  /***/ (function(module, exports) {
12951
 
12952
  var g;
@@ -12973,169 +13383,28 @@ module.exports = g;
12973
 
12974
  /***/ }),
12975
 
12976
- /***/ 86:
12977
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
12978
-
12979
- "use strict";
12980
- /* unused harmony export getFullUrl */
12981
- /* unused harmony export getMatchScore */
12982
- /* unused harmony export getDefaultMatchExpression */
12983
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return addHistoryListener; });
12984
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return getMatchingItem; });
12985
- /* harmony import */ var _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(20);
12986
- /* harmony import */ var _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0__);
12987
- /* harmony import */ var _woocommerce_wc_admin_settings__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(25);
12988
-
12989
-
12990
- /**
12991
- * External dependencies
12992
- */
12993
-
12994
- /**
12995
- * Get the full URL if a relative path is passed.
12996
- *
12997
- * @param {string} url URL
12998
- * @return {string} Full URL
12999
- */
13000
-
13001
- var getFullUrl = function getFullUrl(url) {
13002
- var _window$location = window.location,
13003
- origin = _window$location.origin,
13004
- pathname = _window$location.pathname,
13005
- search = _window$location.search;
13006
-
13007
- if (url.indexOf('#') === 0) {
13008
- return origin + pathname + search + url;
13009
- }
13010
-
13011
- if (url.indexOf('http') === 0) {
13012
- return url;
13013
- }
13014
-
13015
- return origin + url;
13016
- };
13017
- /**
13018
- * Get a match score for a menu item given a location.
13019
- *
13020
- * @param {Object} location Window location
13021
- * @param {string} itemUrl URL to compare
13022
- * @param {string} itemExpression Custom match expression
13023
- * @return {number} Number of matches or 0 if not matched.
13024
- */
13025
-
13026
- var getMatchScore = function getMatchScore(location, itemUrl) {
13027
- var itemExpression = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
13028
-
13029
- if (!itemUrl) {
13030
- return;
13031
- }
13032
-
13033
- var fullUrl = getFullUrl(itemUrl);
13034
- var href = location.href; // Return highest possible score for exact match.
13035
-
13036
- if (fullUrl === href) {
13037
- return Number.MAX_SAFE_INTEGER;
13038
- }
13039
-
13040
- var defaultExpression = getDefaultMatchExpression(fullUrl);
13041
- var regexp = new RegExp(itemExpression || defaultExpression, 'i');
13042
- return (decodeURIComponent(href).match(regexp) || []).length;
13043
- };
13044
- /**
13045
- * Get a default expression to match the path and provided params.
13046
- *
13047
- * @param {string} url URL to match.
13048
- * @return {string} Regex expression.
13049
- */
13050
-
13051
- var getDefaultMatchExpression = function getDefaultMatchExpression(url) {
13052
- var escapedUrl = url.replace(/[-\/\\^$*+?.()|[\]{}]/gi, '\\$&');
13053
-
13054
- var _escapedUrl$split = escapedUrl.split(/\\\?|#/),
13055
- _escapedUrl$split2 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0___default()(_escapedUrl$split, 3),
13056
- path = _escapedUrl$split2[0],
13057
- args = _escapedUrl$split2[1],
13058
- hash = _escapedUrl$split2[2];
13059
-
13060
- var hashExpression = hash ? "(.*#".concat(hash, "$)") : '';
13061
- var argsExpression = args ? args.split('&').reduce(function (acc, param) {
13062
- return "".concat(acc, "(?=.*[?|&]").concat(param, "(&|$|#))");
13063
- }, '') : '';
13064
- return '^' + path + argsExpression + hashExpression;
13065
- };
13066
- /**
13067
- * Adds a listener that runs on history change.
13068
- *
13069
- * @param {Function} listener Listener to add on history change.
13070
- * @return {Function} Function to remove listeners.
13071
- */
13072
-
13073
- var addHistoryListener = function addHistoryListener(listener) {
13074
- // Monkey patch pushState to allow trigger the pushstate event listener.
13075
- if (!window.wcNavigation.historyPatched) {
13076
- (function (history) {
13077
- /* global CustomEvent */
13078
- var pushState = history.pushState;
13079
- var replaceState = history.replaceState;
13080
-
13081
- history.pushState = function (state) {
13082
- var pushStateEvent = new CustomEvent('pushstate', {
13083
- state: state
13084
- });
13085
- window.dispatchEvent(pushStateEvent);
13086
- return pushState.apply(history, arguments);
13087
- };
13088
-
13089
- history.replaceState = function (state) {
13090
- var replaceStateEvent = new CustomEvent('replacestate', {
13091
- state: state
13092
- });
13093
- window.dispatchEvent(replaceStateEvent);
13094
- return replaceState.apply(history, arguments);
13095
- };
13096
 
13097
- window.wcNavigation.historyPatched = true;
13098
- })(window.history);
 
13099
  }
13100
 
13101
- window.addEventListener('popstate', listener);
13102
- window.addEventListener('pushstate', listener);
13103
- window.addEventListener('replacestate', listener);
13104
- return function () {
13105
- window.removeEventListener('popstate', listener);
13106
- window.removeEventListener('pushstate', listener);
13107
- window.removeEventListener('replacestate', listener);
13108
- };
13109
- };
13110
- /**
13111
- * Get the closest matching item.
13112
- *
13113
- * @param {Array} items An array of items to match against.
13114
- */
13115
-
13116
- var getMatchingItem = function getMatchingItem(items) {
13117
- var matchedItem = null;
13118
- var highestMatchScore = 0;
13119
- items.forEach(function (item) {
13120
- var score = getMatchScore(window.location, Object(_woocommerce_wc_admin_settings__WEBPACK_IMPORTED_MODULE_1__[/* getAdminLink */ "f"])(item.url), item.matchExpression);
13121
 
13122
- if (score > 0 && score >= highestMatchScore) {
13123
- highestMatchScore = score;
13124
- matchedItem = item;
13125
- }
13126
- });
13127
- return matchedItem || null;
13128
- };
13129
 
13130
  /***/ }),
13131
 
13132
- /***/ 87:
13133
  /***/ (function(module, exports, __webpack_require__) {
13134
 
13135
  "use strict";
13136
 
13137
 
13138
- var utils = __webpack_require__(68);
13139
  var formats = __webpack_require__(52);
13140
  var has = Object.prototype.hasOwnProperty;
13141
 
@@ -13415,13 +13684,13 @@ module.exports = function (object, opts) {
13415
 
13416
  /***/ }),
13417
 
13418
- /***/ 88:
13419
  /***/ (function(module, exports, __webpack_require__) {
13420
 
13421
  "use strict";
13422
 
13423
 
13424
- var utils = __webpack_require__(68);
13425
 
13426
  var has = Object.prototype.hasOwnProperty;
13427
  var isArray = Array.isArray;
@@ -13680,27 +13949,12 @@ module.exports = function (str, opts) {
13680
 
13681
  /***/ }),
13682
 
13683
- /***/ 9:
13684
- /***/ (function(module, exports) {
13685
-
13686
- function _assertThisInitialized(self) {
13687
- if (self === void 0) {
13688
- throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
13689
- }
13690
-
13691
- return self;
13692
- }
13693
-
13694
- module.exports = _assertThisInitialized;
13695
-
13696
- /***/ }),
13697
-
13698
- /***/ 93:
13699
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
13700
 
13701
  "use strict";
13702
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _unsupportedIterableToArray; });
13703
- /* harmony import */ var _babel_runtime_helpers_esm_arrayLikeToArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(69);
13704
 
13705
  function _unsupportedIterableToArray(o, minLen) {
13706
  if (!o) return;
@@ -13713,7 +13967,7 @@ function _unsupportedIterableToArray(o, minLen) {
13713
 
13714
  /***/ }),
13715
 
13716
- /***/ 94:
13717
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
13718
 
13719
  "use strict";
@@ -13726,7 +13980,7 @@ function _unsupportedIterableToArray(o, minLen) {
13726
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return isWCAdmin; });
13727
  /* harmony import */ var _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(19);
13728
  /* harmony import */ var _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__);
13729
- /* harmony import */ var _wordpress_html_entities__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(40);
13730
  /* harmony import */ var _wordpress_html_entities__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_html_entities__WEBPACK_IMPORTED_MODULE_1__);
13731
  /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(3);
13732
  /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_2__);
@@ -13876,7 +14130,7 @@ function isWCAdmin(url) {
13876
 
13877
  /***/ }),
13878
 
13879
- /***/ 96:
13880
  /***/ (function(module, exports) {
13881
 
13882
  function _objectWithoutPropertiesLoose(source, excluded) {
259
  /******/
260
  /******/
261
  /******/ // Load entry module and return exports
262
+ /******/ return __webpack_require__(__webpack_require__.s = 294);
263
  /******/ })
264
  /************************************************************************/
265
  /******/ ({
284
  if (false) { var throwOnDirectAccess, ReactIs; } else {
285
  // By explicitly using `prop-types` you are opting into new production behavior.
286
  // http://fb.me/prop-types-in-prod
287
+ module.exports = __webpack_require__(77)();
288
  }
289
 
290
 
300
  /***/ 11:
301
  /***/ (function(module, exports) {
302
 
303
+ (function() { module.exports = this["wp"]["data"]; }());
 
 
 
 
 
 
304
 
305
  /***/ }),
306
 
307
+ /***/ 111:
308
  /***/ (function(module, exports) {
309
 
310
  (function() { module.exports = this["wc"]["currency"]; }());
314
  /***/ 12:
315
  /***/ (function(module, exports) {
316
 
317
+ function _classCallCheck(instance, Constructor) {
318
+ if (!(instance instanceof Constructor)) {
319
+ throw new TypeError("Cannot call a class as a function");
 
 
 
 
320
  }
321
  }
322
 
323
+ module.exports = _classCallCheck;
 
 
 
 
 
 
324
 
325
  /***/ }),
326
 
327
+ /***/ 121:
328
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
329
 
330
  "use strict";
332
  // EXPORTS
333
  __webpack_require__.d(__webpack_exports__, "a", function() { return /* binding */ build_module_focus; });
334
 
335
+ // UNUSED EXPORTS: isHorizontalEdge, isVerticalEdge, getRectangleFromRange, computeCaretRect, placeCaretAtHorizontalEdge, placeCaretAtVerticalEdge, isTextField, isNumberInput, documentHasTextSelection, documentHasUncollapsedSelection, documentHasSelection, isEntirelySelected, getScrollContainer, getOffsetParent, replace, remove, insertAfter, unwrap, replaceTag, wrap, __unstableStripHTML, isEmpty, removeInvalidHTML, getPhrasingContentSchema, isPhrasingContent, isTextContent, getFilesFromDataTransfer
336
 
337
  // NAMESPACE OBJECT: ./node_modules/@wordpress/dom/build-module/focusable.js
338
  var focusable_namespaceObject = {};
379
  function isVisible(element) {
380
  return element.offsetWidth > 0 || element.offsetHeight > 0 || element.getClientRects().length > 0;
381
  }
382
+ /**
383
+ * Returns true if the specified element should be skipped from focusable elements.
384
+ * For now it rather specific for `iframes` and if tabindex attribute is set to -1.
385
+ *
386
+ * @param {Element} element DOM element to test.
387
+ *
388
+ * @return {boolean} Whether element should be skipped from focusable elements.
389
+ */
390
+
391
+
392
+ function skipFocus(element) {
393
+ return element.nodeName.toLowerCase() === 'iframe' && element.getAttribute('tabindex') === '-1';
394
+ }
395
  /**
396
  * Returns true if the specified area element is a valid focusable element, or
397
  * false otherwise. Area is only focusable if within a map where a named map
410
  return false;
411
  }
412
 
413
+ var img = element.ownerDocument.querySelector('img[usemap="#' + map.name + '"]');
414
  return !!img && isVisible(img);
415
  }
416
  /**
425
  function find(context) {
426
  var elements = context.querySelectorAll(SELECTOR);
427
  return Array.from(elements).filter(function (element) {
428
+ if (!isVisible(element) || skipFocus(element)) {
429
  return false;
430
  }
431
 
599
  * to the active element.
600
  */
601
 
602
+ function findPrevious(element) {
603
+ var focusables = find(element.ownerDocument.body);
 
604
  var index = focusables.indexOf(element); // Remove all focusables after and including `element`.
605
 
606
  focusables.length = index;
613
  * to the active element.
614
  */
615
 
616
+ function findNext(element) {
617
+ var focusables = find(element.ownerDocument.body);
 
618
  var index = focusables.indexOf(element); // Remove all focusables before and inside `element`.
619
 
620
  var remaining = focusables.slice(index + 1).filter(function (node) {
639
  tabbable: tabbable_namespaceObject
640
  };
641
 
642
+
643
+
644
  //# sourceMappingURL=index.js.map
645
 
646
  /***/ }),
647
 
648
+ /***/ 122:
649
  /***/ (function(module, exports, __webpack_require__) {
650
 
651
  "use strict";
859
  /***/ }),
860
 
861
  /***/ 13:
862
+ /***/ (function(module, exports) {
 
 
863
 
864
+ function _defineProperties(target, props) {
865
+ for (var i = 0; i < props.length; i++) {
866
+ var descriptor = props[i];
867
+ descriptor.enumerable = descriptor.enumerable || false;
868
+ descriptor.configurable = true;
869
+ if ("value" in descriptor) descriptor.writable = true;
870
+ Object.defineProperty(target, descriptor.key, descriptor);
871
  }
872
+ }
873
 
874
+ function _createClass(Constructor, protoProps, staticProps) {
875
+ if (protoProps) _defineProperties(Constructor.prototype, protoProps);
876
+ if (staticProps) _defineProperties(Constructor, staticProps);
877
+ return Constructor;
 
 
 
 
878
  }
879
 
880
+ module.exports = _createClass;
881
 
882
  /***/ }),
883
 
887
  "use strict";
888
  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
889
  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__);
890
+ /* harmony import */ var _wordpress_hooks__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(43);
891
  /* harmony import */ var _wordpress_hooks__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_hooks__WEBPACK_IMPORTED_MODULE_1__);
892
+ /* harmony import */ var _woocommerce_wc_admin_settings__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(25);
893
+ /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(0);
894
+ /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__);
895
  /**
896
  * External dependencies
897
  */
898
 
899
 
900
 
 
 
 
 
901
 
902
+ var manageStock = Object(_woocommerce_wc_admin_settings__WEBPACK_IMPORTED_MODULE_2__[/* getSetting */ "g"])('manageStock', 'no');
903
  var REPORTS_FILTER = 'woocommerce_admin_reports_list';
904
  /**
905
  * Internal dependencies
906
  */
907
 
908
+ var RevenueReport = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__["lazy"])(function () {
909
+ return Promise.all(/* import() | analytics-report-revenue */[__webpack_require__.e(0), __webpack_require__.e(16)]).then(__webpack_require__.bind(null, 486));
910
  });
911
+ var ProductsReport = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__["lazy"])(function () {
912
+ return Promise.all(/* import() | analytics-report-products */[__webpack_require__.e(0), __webpack_require__.e(3), __webpack_require__.e(15)]).then(__webpack_require__.bind(null, 482));
913
  });
914
+ var VariationsReport = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__["lazy"])(function () {
915
+ return Promise.all(/* import() | analytics-report-variations */[__webpack_require__.e(0), __webpack_require__.e(19)]).then(__webpack_require__.bind(null, 487));
916
  });
917
+ var OrdersReport = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__["lazy"])(function () {
918
+ return Promise.all(/* import() | analytics-report-orders */[__webpack_require__.e(0), __webpack_require__.e(5), __webpack_require__.e(14)]).then(__webpack_require__.bind(null, 488));
919
  });
920
+ var CategoriesReport = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__["lazy"])(function () {
921
+ return Promise.all(/* import() | analytics-report-categories */[__webpack_require__.e(0), __webpack_require__.e(3), __webpack_require__.e(10)]).then(__webpack_require__.bind(null, 484));
922
  });
923
+ var CouponsReport = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__["lazy"])(function () {
924
+ return Promise.all(/* import() | analytics-report-coupons */[__webpack_require__.e(0), __webpack_require__.e(11)]).then(__webpack_require__.bind(null, 489));
925
  });
926
+ var TaxesReport = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__["lazy"])(function () {
927
+ return Promise.all(/* import() | analytics-report-taxes */[__webpack_require__.e(0), __webpack_require__.e(18)]).then(__webpack_require__.bind(null, 490));
928
  });
929
+ var DownloadsReport = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__["lazy"])(function () {
930
+ return Promise.all(/* import() | analytics-report-downloads */[__webpack_require__.e(0), __webpack_require__.e(13)]).then(__webpack_require__.bind(null, 491));
931
  });
932
+ var StockReport = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__["lazy"])(function () {
933
+ return Promise.all(/* import() | analytics-report-stock */[__webpack_require__.e(0), __webpack_require__.e(17)]).then(__webpack_require__.bind(null, 483));
934
  });
935
+ var CustomersReport = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__["lazy"])(function () {
936
+ return Promise.all(/* import() | analytics-report-customers */[__webpack_require__.e(0), __webpack_require__.e(12)]).then(__webpack_require__.bind(null, 485));
937
  });
938
  /* harmony default export */ __webpack_exports__["a"] = (function () {
939
  var reports = [{
1121
  /***/ }),
1122
 
1123
  /***/ 139:
1124
+ /***/ (function(module, exports) {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1125
 
1126
+ (function() { module.exports = this["wp"]["plugins"]; }());
 
 
 
 
 
 
 
1127
 
1128
  /***/ }),
1129
 
1130
  /***/ 14:
1131
  /***/ (function(module, exports, __webpack_require__) {
1132
 
1133
+ var setPrototypeOf = __webpack_require__(72);
1134
 
1135
+ function _inherits(subClass, superClass) {
1136
+ if (typeof superClass !== "function" && superClass !== null) {
1137
+ throw new TypeError("Super expression must either be null or a function");
 
 
1138
  }
1139
 
1140
+ subClass.prototype = Object.create(superClass && superClass.prototype, {
1141
+ constructor: {
1142
+ value: subClass,
1143
+ writable: true,
1144
+ configurable: true
1145
+ }
1146
+ });
1147
+ if (superClass) setPrototypeOf(subClass, superClass);
1148
  }
1149
 
1150
+ module.exports = _inherits;
1151
 
1152
  /***/ }),
1153
 
1154
  /***/ 140:
 
 
 
 
 
 
 
1155
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1156
 
1157
  "use strict";
1363
 
1364
  /***/ }),
1365
 
1366
+ /***/ 141:
1367
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1368
 
1369
  "use strict";
1386
  var defineProperty_default = /*#__PURE__*/__webpack_require__.n(defineProperty);
1387
 
1388
  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/classCallCheck.js
1389
+ var classCallCheck = __webpack_require__(12);
1390
  var classCallCheck_default = /*#__PURE__*/__webpack_require__.n(classCallCheck);
1391
 
1392
  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/createClass.js
1393
+ var createClass = __webpack_require__(13);
1394
  var createClass_default = /*#__PURE__*/__webpack_require__.n(createClass);
1395
 
1396
  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/inherits.js
1397
+ var inherits = __webpack_require__(14);
1398
  var inherits_default = /*#__PURE__*/__webpack_require__.n(inherits);
1399
 
1400
  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js
1401
+ var possibleConstructorReturn = __webpack_require__(15);
1402
  var possibleConstructorReturn_default = /*#__PURE__*/__webpack_require__.n(possibleConstructorReturn);
1403
 
1404
  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/getPrototypeOf.js
1405
+ var getPrototypeOf = __webpack_require__(7);
1406
  var getPrototypeOf_default = /*#__PURE__*/__webpack_require__.n(getPrototypeOf);
1407
 
1408
  // EXTERNAL MODULE: external {"this":["wp","element"]}
1409
  var external_this_wp_element_ = __webpack_require__(0);
1410
 
1411
  // EXTERNAL MODULE: external {"this":["wp","compose"]}
1412
+ var external_this_wp_compose_ = __webpack_require__(20);
1413
 
1414
  // EXTERNAL MODULE: external {"this":["wp","data"]}
1415
+ var external_this_wp_data_ = __webpack_require__(11);
1416
 
1417
+ // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/inheritsLoose.js + 1 modules
1418
  var inheritsLoose = __webpack_require__(38);
1419
 
1420
  // EXTERNAL MODULE: external "React"
1426
  var prop_types_default = /*#__PURE__*/__webpack_require__.n(prop_types);
1427
 
1428
  // EXTERNAL MODULE: ./node_modules/history/esm/history.js + 2 modules
1429
+ var esm_history = __webpack_require__(71);
1430
 
1431
  // EXTERNAL MODULE: ./node_modules/mini-create-react-context/dist/esm/index.js
1432
  var esm = __webpack_require__(183);
1445
  var react_is = __webpack_require__(126);
1446
 
1447
  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
1448
+ var objectWithoutPropertiesLoose = __webpack_require__(42);
1449
 
1450
  // EXTERNAL MODULE: ./node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js
1451
  var hoist_non_react_statics_cjs = __webpack_require__(138);
2123
  // EXTERNAL MODULE: external {"this":["wc","navigation"]}
2124
  var external_this_wc_navigation_ = __webpack_require__(21);
2125
 
2126
+ // EXTERNAL MODULE: ./client/wc-admin-settings/index.js
2127
+ var wc_admin_settings = __webpack_require__(25);
2128
 
2129
  // EXTERNAL MODULE: external {"this":["wc","data"]}
2130
+ var external_this_wc_data_ = __webpack_require__(22);
2131
 
2132
  // EXTERNAL MODULE: external {"this":["wc","tracks"]}
2133
+ var external_this_wc_tracks_ = __webpack_require__(27);
2134
 
2135
  // EXTERNAL MODULE: ./client/layout/style.scss
2136
+ var layout_style = __webpack_require__(297);
2137
 
2138
  // EXTERNAL MODULE: external {"this":["wp","hooks"]}
2139
+ var external_this_wp_hooks_ = __webpack_require__(43);
2140
 
2141
  // EXTERNAL MODULE: external {"this":["wp","i18n"]}
2142
  var external_this_wp_i18n_ = __webpack_require__(2);
2145
  var get_reports = __webpack_require__(137);
2146
 
2147
  // EXTERNAL MODULE: ./client/dashboard/utils.js
2148
+ var utils = __webpack_require__(95);
2149
 
2150
  // CONCATENATED MODULE: ./client/layout/controller.js
2151
 
2169
 
2170
 
2171
 
2172
+
2173
  /**
2174
  * Internal dependencies
2175
  */
2177
 
2178
 
2179
  var AnalyticsReport = Object(external_this_wp_element_["lazy"])(function () {
2180
+ return __webpack_require__.e(/* import() | analytics-report */ 9).then(__webpack_require__.bind(null, 589));
2181
  });
2182
  var AnalyticsSettings = Object(external_this_wp_element_["lazy"])(function () {
2183
+ return __webpack_require__.e(/* import() | analytics-settings */ 20).then(__webpack_require__.bind(null, 608));
2184
  });
2185
  var Dashboard = Object(external_this_wp_element_["lazy"])(function () {
2186
+ return __webpack_require__.e(/* import() | dashboard */ 28).then(__webpack_require__.bind(null, 590));
2187
  });
2188
  var Homescreen = Object(external_this_wp_element_["lazy"])(function () {
2189
+ return Promise.all(/* import() | homescreen */[__webpack_require__.e(1), __webpack_require__.e(2), __webpack_require__.e(52), __webpack_require__.e(4), __webpack_require__.e(32)]).then(__webpack_require__.bind(null, 605));
2190
  });
2191
  var MarketingOverview = Object(external_this_wp_element_["lazy"])(function () {
2192
+ return Promise.all(/* import() | marketing-overview */[__webpack_require__.e(2), __webpack_require__.e(36)]).then(__webpack_require__.bind(null, 609));
2193
  });
2194
  var ProfileWizard = Object(external_this_wp_element_["lazy"])(function () {
2195
+ return Promise.all(/* import() | profile-wizard */[__webpack_require__.e(53), __webpack_require__.e(46)]).then(__webpack_require__.bind(null, 606));
2196
+ });
2197
+ var SettingsGroup = Object(external_this_wp_element_["lazy"])(function () {
2198
+ return Promise.all(/* import() | profile-wizard */[__webpack_require__.e(53), __webpack_require__.e(46)]).then(__webpack_require__.bind(null, 601));
2199
  });
2200
  var PAGES_FILTER = 'woocommerce_admin_pages_list';
2201
  var controller_getPages = function getPages() {
2208
  wpOpenMenu: 'toplevel_page_woocommerce',
2209
  navArgs: {
2210
  id: 'woocommerce-home'
2211
+ },
2212
+ capability: 'manage_woocommerce'
2213
  });
2214
 
2215
  if (window.wcAdminFeatures.analytics) {
2220
  wpOpenMenu: 'toplevel_page_wc-admin-path--analytics-overview',
2221
  navArgs: {
2222
  id: 'woocommerce-analytics-overview'
2223
+ },
2224
+ capability: 'view_woocommerce_reports'
2225
  });
2226
  pages.push({
2227
  container: AnalyticsSettings,
2230
  wpOpenMenu: 'toplevel_page_wc-admin-path--analytics-overview',
2231
  navArgs: {
2232
  id: 'woocommerce-analytics-settings'
2233
+ },
2234
+ capability: 'view_woocommerce_reports'
2235
  });
2236
  pages.push({
2237
  container: AnalyticsReport,
2240
  wpOpenMenu: 'toplevel_page_woocommerce',
2241
  navArgs: {
2242
  id: 'woocommerce-analytics-customers'
2243
+ },
2244
+ capability: 'view_woocommerce_reports'
2245
  });
2246
  pages.push({
2247
  container: AnalyticsReport,
2258
 
2259
  return [].concat(initialBreadcrumbs, [['/analytics/revenue', Object(external_this_wp_i18n_["__"])('Analytics', 'woocommerce-admin')], report.title]);
2260
  },
2261
+ wpOpenMenu: 'toplevel_page_wc-admin-path--analytics-overview',
2262
+ capability: 'view_woocommerce_reports'
2263
  });
2264
  }
2265
 
2271
  wpOpenMenu: 'toplevel_page_woocommerce-marketing',
2272
  navArgs: {
2273
  id: 'woocommerce-marketing-overview'
2274
+ },
2275
+ capability: 'view_woocommerce_reports'
2276
  });
2277
  }
2278
 
2280
  pages.push({
2281
  container: ProfileWizard,
2282
  path: '/setup-wizard',
2283
+ breadcrumbs: [].concat(initialBreadcrumbs, [['/setup-wizard', Object(external_this_wp_i18n_["__"])('Setup Wizard', 'woocommerce-admin')]]),
2284
+ capability: 'manage_woocommerce'
2285
+ });
2286
+ }
2287
+
2288
+ if (window.wcAdminFeatures.settings) {
2289
+ pages.push({
2290
+ container: SettingsGroup,
2291
+ path: '/settings/:page',
2292
+ breadcrumbs: function breadcrumbs(_ref2) {
2293
+ var match = _ref2.match;
2294
+ // @todo This might need to be refactored to retreive groups via data store.
2295
+ var settingsPages = Object(wc_admin_settings["g" /* getSetting */])('settingsPages');
2296
+ var page = settingsPages[match.params.page];
2297
+
2298
+ if (!page) {
2299
+ return [];
2300
+ }
2301
+
2302
+ return [].concat(initialBreadcrumbs, [[settingsPages.general ? '/settings/general' : "/settings/".concat(Object.keys(settingsPages)[0]), Object(external_this_wp_i18n_["__"])('Settings', 'woocommerce-admin')], page]);
2303
+ },
2304
+ wpOpenMenu: 'toplevel_page_woocommerce',
2305
+ capability: 'manage_woocommerce'
2306
  });
2307
  }
2308
 
2435
  wpWrap.classList.remove('wp-responsive-open');
2436
  };
2437
  // EXTERNAL MODULE: ./node_modules/classnames/index.js
2438
+ var classnames = __webpack_require__(6);
2439
  var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames);
2440
 
2441
  // EXTERNAL MODULE: external {"this":["wp","htmlEntities"]}
2442
+ var external_this_wp_htmlEntities_ = __webpack_require__(41);
2443
 
2444
  // EXTERNAL MODULE: ./packages/experimental/build-module/index.js
2445
+ var build_module = __webpack_require__(30);
2446
 
2447
  // EXTERNAL MODULE: ./client/header/style.scss
2448
+ var header_style = __webpack_require__(298);
2449
+
2450
+ // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/slicedToArray.js
2451
+ var slicedToArray = __webpack_require__(18);
2452
+ var slicedToArray_default = /*#__PURE__*/__webpack_require__.n(slicedToArray);
2453
 
2454
  // EXTERNAL MODULE: external {"this":["wp","components"]}
2455
  var external_this_wp_components_ = __webpack_require__(4);
2456
 
2457
  // EXTERNAL MODULE: ./node_modules/gridicons/dist/cross-small.js
2458
+ var cross_small = __webpack_require__(122);
2459
  var cross_small_default = /*#__PURE__*/__webpack_require__.n(cross_small);
2460
 
2461
  // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/icon/index.js
2462
+ var build_module_icon = __webpack_require__(197);
2463
 
2464
  // EXTERNAL MODULE: ./node_modules/@wordpress/primitives/build-module/svg/index.js
2465
+ var svg = __webpack_require__(67);
2466
+
2467
+ // CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/inbox.js
2468
+
2469
+
2470
+ /**
2471
+ * WordPress dependencies
2472
+ */
2473
 
2474
+ var inbox_inbox = Object(external_this_wp_element_["createElement"])(svg["b" /* SVG */], {
2475
+ xmlns: "http://www.w3.org/2000/svg",
2476
+ viewBox: "0 0 24 24"
2477
+ }, Object(external_this_wp_element_["createElement"])(svg["a" /* Path */], {
2478
+ fillRule: "evenodd",
2479
+ d: "M6 5.5h12a.5.5 0 01.5.5v7H14a2 2 0 11-4 0H5.5V6a.5.5 0 01.5-.5zm-.5 9V18a.5.5 0 00.5.5h12a.5.5 0 00.5-.5v-3.5h-3.337a3.5 3.5 0 01-6.326 0H5.5zM4 13V6a2 2 0 012-2h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2v-5z",
2480
+ clipRule: "evenodd"
2481
+ }));
2482
+ /* harmony default export */ var library_inbox = (inbox_inbox);
2483
+ //# sourceMappingURL=inbox.js.map
2484
  // CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/help.js
2485
 
2486
 
2497
  /* harmony default export */ var library_help = (help_help);
2498
  //# sourceMappingURL=help.js.map
2499
  // EXTERNAL MODULE: ./client/header/activity-panel/style.scss
2500
+ var activity_panel_style = __webpack_require__(299);
2501
 
2502
  // CONCATENATED MODULE: ./client/header/activity-panel/toggle-bubble.js
2503
 
2552
  */
2553
 
2554
 
2555
+ var UNREAD_NOTES_QUERY = {
2556
+ page: 1,
2557
+ per_page: external_this_wc_data_["QUERY_DEFAULTS"].pageSize,
2558
+ status: 'unactioned',
2559
+ type: external_this_wc_data_["QUERY_DEFAULTS"].noteTypes,
2560
+ orderby: 'date',
2561
+ order: 'desc'
2562
+ };
2563
  function getUnreadNotes(select) {
2564
  var _select = select(external_this_wc_data_["NOTES_STORE_NAME"]),
2565
  getNotes = _select.getNotes,
2574
 
2575
  if (!lastRead) {
2576
  return null;
2577
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
2578
 
2579
+ getNotes(UNREAD_NOTES_QUERY);
2580
+ var isError = Boolean(getNotesError('getNotes', [UNREAD_NOTES_QUERY]));
2581
+ var isRequesting = isResolving('getNotes', [UNREAD_NOTES_QUERY]);
2582
 
2583
  if (isError || isRequesting) {
2584
  return null;
2585
  }
2586
 
2587
+ var latestNotes = getNotes(UNREAD_NOTES_QUERY);
2588
  var unreadNotesCount = Object(inbox_panel_utils["a" /* getUnreadNotesCount */])(latestNotes, lastRead);
2589
  return unreadNotesCount > 0;
2590
  }
2591
  function getLowStockCount() {
2592
+ return Object(wc_admin_settings["g" /* getSetting */])('lowStockCount', 0);
2593
  }
 
 
 
 
2594
  // CONCATENATED MODULE: ./client/header/activity-panel/tab/index.js
2595
 
2596
 
2875
  }));
2876
  });
2877
  };
2878
+ // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/close.js
2879
+ var library_close = __webpack_require__(497);
 
 
 
 
2880
 
 
 
 
 
 
 
 
 
2881
  // EXTERNAL MODULE: ./client/header/activity-panel/highlight-tooltip/style.scss
2882
+ var highlight_tooltip_style = __webpack_require__(300);
2883
 
2884
  // CONCATENATED MODULE: ./client/header/activity-panel/highlight-tooltip/index.js
2885
 
2911
  onClose = _ref.onClose,
2912
  delay = _ref.delay,
2913
  _ref$onShow = _ref.onShow,
2914
+ onShow = _ref$onShow === void 0 ? external_lodash_["noop"] : _ref$onShow,
2915
+ _ref$useAnchor = _ref.useAnchor,
2916
+ useAnchor = _ref$useAnchor === void 0 ? false : _ref$useAnchor;
2917
 
2918
  var _useState = Object(external_this_wp_element_["useState"])(delay > 0 ? null : show),
2919
  _useState2 = slicedToArray_default()(_useState, 2),
2925
  node = _useState4[0],
2926
  setNode = _useState4[1];
2927
 
2928
+ var _useState5 = Object(external_this_wp_element_["useState"])(null),
2929
+ _useState6 = slicedToArray_default()(_useState5, 2),
2930
+ anchorRect = _useState6[0],
2931
+ setAnchorRect = _useState6[1];
2932
+
2933
  Object(external_this_wp_element_["useEffect"])(function () {
2934
  var element = document.getElementById(id);
2935
+ var container, parent;
2936
 
2937
  if (element && !node) {
2938
  // Add tooltip container
2939
+ if (!useAnchor) {
2940
+ parent = element.parentElement;
2941
+ } else {
2942
+ parent = document.createElement('div');
2943
+ document.body.appendChild(parent);
2944
+ }
2945
+
2946
  container = document.createElement('div');
2947
  container.classList.add('highlight-tooltip__container');
2948
  parent.appendChild(container);
2949
  setNode(container);
2950
  }
2951
 
2952
+ var timeoutId = triggerShowTooltip(container);
2953
  return function () {
2954
  if (container) {
2955
+ var parentElement = container.parentElement;
2956
+ parentElement.removeChild(container);
2957
 
2958
+ if (useAnchor) {
2959
+ parentElement.remove();
2960
+ }
2961
  }
2962
 
2963
  if (timeoutId) {
2977
  if (!show) {
2978
  node.classList.remove(SHOW_CLASS);
2979
  } else if (node) {
2980
+ triggerShowTooltip(node);
2981
  }
2982
  }
2983
  }, [show]);
2984
+ Object(external_this_wp_element_["useLayoutEffect"])(function () {
2985
+ window.addEventListener('resize', updateSize);
2986
+ return function () {
2987
+ return window.removeEventListener('resize', updateSize);
2988
+ };
2989
+ }, []);
2990
 
2991
+ function updateSize() {
2992
+ if (useAnchor) {
2993
+ var element = document.getElementById(id);
2994
+ setAnchorRect(element.getBoundingClientRect());
2995
+ }
2996
+ }
2997
+
2998
+ var triggerShowTooltip = function triggerShowTooltip(container) {
2999
  var timeoutId = null;
3000
 
3001
  if (delay > 0) {
3002
  timeoutId = setTimeout(function () {
3003
  timeoutId = null;
3004
+ showTooltip(container);
 
 
 
 
 
 
3005
  }, delay);
3006
  } else if (!showHighlight) {
3007
+ showTooltip(container);
 
 
 
 
 
3008
  }
3009
 
3010
  return timeoutId;
3011
  };
3012
 
3013
+ var showTooltip = function showTooltip(container) {
3014
+ var element = document.getElementById(id);
3015
+
3016
+ if (element && useAnchor) {
3017
+ setAnchorRect(element.getBoundingClientRect());
3018
+ }
3019
+
3020
+ if (container) {
3021
+ container.classList.add(SHOW_CLASS);
3022
+ }
3023
+
3024
+ setShowHighlight(true);
3025
+ onShow();
3026
+ };
3027
+
3028
  var triggerClose = function triggerClose() {
3029
  setShowHighlight(false);
3030
 
3044
  }), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Popover"], {
3045
  className: "highlight-tooltip__popover",
3046
  noArrow: false,
3047
+ anchorRect: anchorRect,
3048
  focusOnMount: "container"
3049
  }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Card"], {
3050
  size: "medium"
3051
  }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["CardHeader"], null, title, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], {
3052
  isSmall: true,
3053
  onClick: triggerClose,
3054
+ icon: library_close["a" /* default */]
3055
  })), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["CardBody"], null, content || null), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["CardFooter"], {
3056
  isBorderless: true
3057
  }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], {
3100
  /**
3101
  * A callback for when the tooltip is shown.
3102
  */
3103
+ onShow: prop_types_default.a.func,
3104
+
3105
+ /**
3106
+ * useAnchor, will append the tooltip to the body tag, and make use of the anchorRect to display the tooltip.
3107
+ * Defaults to false.
3108
+ */
3109
+ useAnchor: prop_types_default.a.bool
3110
  };
3111
 
3112
  // EXTERNAL MODULE: ./node_modules/@wordpress/dom/build-module/index.js + 2 modules
3113
+ var dom_build_module = __webpack_require__(121);
3114
 
3115
  // CONCATENATED MODULE: ./client/hooks/useFocusOnMount.js
3116
  /**
3383
  var panel_Panel = function Panel(_ref) {
3384
  var content = _ref.content,
3385
  isPanelOpen = _ref.isPanelOpen,
 
3386
  isPanelSwitching = _ref.isPanelSwitching,
3387
+ currentTab = _ref.currentTab,
3388
  tab = _ref.tab,
3389
  closePanel = _ref.closePanel,
3390
  clearPanel = _ref.clearPanel;
3397
  }
3398
  };
3399
 
3400
+ var possibleFocusPanel = function possibleFocusPanel() {
3401
+ if (!containerRef.current || !isPanelOpen || !tab) {
3402
+ return;
3403
+ }
3404
+
3405
+ focusOnMountRef(containerRef.current);
3406
+ };
3407
+
3408
+ var finishTransition = function finishTransition(e) {
3409
+ if (e && e.propertyName === 'transform') {
3410
+ clearPanel();
3411
+ possibleFocusPanel();
3412
+ }
3413
+ };
3414
+
3415
+ var focusOnMountRef = useFocusOnMount();
3416
  var useFocusOutsideProps = useFocusOutside(handleFocusOutside);
3417
+ var containerRef = Object(external_this_wp_element_["useRef"])(null);
3418
+ var mergedContainerRef = Object(external_this_wp_element_["useCallback"])(function (node) {
3419
+ containerRef.current = node;
3420
+ focusOnMountRef(node);
3421
+ }, []);
3422
 
3423
  if (!tab) {
3424
  return Object(external_this_wp_element_["createElement"])("div", {
3439
  tabIndex: 0,
3440
  role: "tabpanel",
3441
  "aria-label": tab.title,
3442
+ onTransitionEnd: finishTransition
 
3443
  }, useFocusOutsideProps, {
3444
+ ref: mergedContainerRef
3445
  }), Object(external_this_wp_element_["createElement"])("div", {
3446
  className: "woocommerce-layout__activity-panel-content",
3447
  key: 'activity-panel-' + currentTab,
3455
 
3456
 
3457
 
 
 
 
 
 
 
 
 
3458
  /**
3459
  * External dependencies
3460
  */
3471
 
3472
 
3473
 
 
3474
  /**
3475
  * Internal dependencies
3476
  */
3485
 
3486
 
3487
  var HelpPanel = Object(external_this_wp_element_["lazy"])(function () {
3488
+ return Promise.all(/* import() | activity-panels-help */[__webpack_require__.e(54), __webpack_require__.e(6), __webpack_require__.e(7)]).then(__webpack_require__.bind(null, 602));
3489
  });
3490
  var InboxPanel = Object(external_this_wp_element_["lazy"])(function () {
3491
+ return Promise.all(/* import() | activity-panels-inbox */[__webpack_require__.e(1), __webpack_require__.e(2), __webpack_require__.e(4), __webpack_require__.e(8)]).then(__webpack_require__.bind(null, 587));
3492
  });
3493
+ var activity_panel_ActivityPanel = function ActivityPanel(_ref) {
3494
+ var isEmbedded = _ref.isEmbedded,
3495
+ query = _ref.query,
3496
+ userPreferencesData = _ref.userPreferencesData;
3497
 
3498
+ var _useState = Object(external_this_wp_element_["useState"])(''),
3499
+ _useState2 = slicedToArray_default()(_useState, 2),
3500
+ currentTab = _useState2[0],
3501
+ setCurrentTab = _useState2[1];
3502
 
3503
+ var _useState3 = Object(external_this_wp_element_["useState"])(false),
3504
+ _useState4 = slicedToArray_default()(_useState3, 2),
3505
+ isPanelOpen = _useState4[0],
3506
+ setIsPanelOpen = _useState4[1];
3507
 
3508
+ var _useState5 = Object(external_this_wp_element_["useState"])(false),
3509
+ _useState6 = slicedToArray_default()(_useState5, 2),
3510
+ isPanelSwitching = _useState6[0],
3511
+ setIsPanelSwitching = _useState6[1];
3512
 
3513
+ var _useState7 = Object(external_this_wp_element_["useState"])(false),
3514
+ _useState8 = slicedToArray_default()(_useState7, 2),
3515
+ mobileOpen = _useState8[0],
3516
+ setMobileOpen = _useState8[1];
3517
+
3518
+ var _useSelect = Object(external_this_wp_data_["useSelect"])(function (select) {
3519
+ var _select = select(external_this_wc_data_["OPTIONS_STORE_NAME"]),
3520
+ getOption = _select.getOption,
3521
+ isResolving = _select.isResolving;
3522
+
3523
+ return {
3524
+ hasUnreadNotes: getUnreadNotes(select),
3525
+ requestingTaskListOptions: isResolving('getOption', ['woocommerce_task_list_complete']) || isResolving('getOption', ['woocommerce_task_list_hidden']),
3526
+ setupTaskListComplete: getOption('woocommerce_task_list_complete') === 'yes',
3527
+ setupTaskListHidden: getOption('woocommerce_task_list_hidden') === 'yes',
3528
+ trackedCompletedTasks: getOption('woocommerce_task_list_tracked_completed_tasks') || []
3529
  };
3530
+ }),
3531
+ hasUnreadNotes = _useSelect.hasUnreadNotes,
3532
+ requestingTaskListOptions = _useSelect.requestingTaskListOptions,
3533
+ setupTaskListComplete = _useSelect.setupTaskListComplete,
3534
+ setupTaskListHidden = _useSelect.setupTaskListHidden,
3535
+ trackedCompletedTasks = _useSelect.trackedCompletedTasks;
3536
+
3537
+ var _useDispatch = Object(external_this_wp_data_["useDispatch"])(external_this_wc_data_["OPTIONS_STORE_NAME"]),
3538
+ updateOptions = _useDispatch.updateOptions;
3539
+
3540
+ var _useUser = Object(external_this_wc_data_["useUser"])(),
3541
+ currentUserCan = _useUser.currentUserCan;
3542
+
3543
+ var togglePanel = function togglePanel(_ref2, isTabOpen) {
3544
+ var tabName = _ref2.name;
3545
+ var panelSwitching = tabName !== currentTab && currentTab !== '' && isTabOpen && isPanelOpen;
3546
+ setCurrentTab(tabName);
3547
+ setMobileOpen(isTabOpen);
3548
+ setIsPanelOpen(isTabOpen);
3549
+ setIsPanelSwitching(panelSwitching);
3550
+ };
3551
 
3552
+ var _closePanel = function closePanel() {
3553
+ setIsPanelOpen(false);
3554
+ };
3555
+
3556
+ var _clearPanel = function clearPanel() {
3557
+ if (!isPanelOpen) {
3558
+ setIsPanelSwitching(false);
3559
+ setCurrentTab('');
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3560
  }
3561
+ }; // On smaller screen, the panel buttons are hidden behind a toggle.
 
 
 
 
 
 
 
 
3562
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3563
 
3564
+ var toggleMobile = function toggleMobile() {
3565
+ var tabs = getTabs();
3566
+ setCurrentTab(mobileOpen ? '' : tabs[0].name);
3567
+ setMobileOpen(!mobileOpen);
3568
+ setIsPanelOpen(!mobileOpen);
3569
+ };
 
 
 
3570
 
3571
+ var isHomescreen = function isHomescreen() {
3572
+ return query.page === 'wc-admin' && !query.path;
3573
+ };
 
 
 
 
 
 
 
 
 
 
3574
 
3575
+ var isPerformingSetupTask = function isPerformingSetupTask() {
3576
+ return query.task && !query.path && (requestingTaskListOptions === true || setupTaskListHidden === false && setupTaskListComplete === false);
3577
+ }; // @todo Pull in dynamic unread status/count
 
3578
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3579
 
3580
+ var getTabs = function getTabs() {
3581
+ var inbox = {
3582
+ name: 'inbox',
3583
+ title: Object(external_this_wp_i18n_["__"])('Inbox', 'woocommerce-admin'),
3584
+ icon: Object(external_this_wp_element_["createElement"])(build_module_icon["a" /* default */], {
3585
+ icon: library_inbox
3586
+ }),
3587
+ unread: hasUnreadNotes,
3588
+ visible: (isEmbedded || !isHomescreen()) && !isPerformingSetupTask()
3589
+ };
3590
+ var setup = {
3591
+ name: 'setup',
3592
+ title: Object(external_this_wp_i18n_["__"])('Store Setup', 'woocommerce-admin'),
3593
+ icon: Object(external_this_wp_element_["createElement"])(setup_progress_SetupProgress, null),
3594
+ onClick: function onClick() {
3595
+ var currentLocation = window.location.href;
3596
+ var homescreenLocation = Object(wc_admin_settings["f" /* getAdminLink */])('admin.php?page=wc-admin'); // Don't navigate if we're already on the homescreen, this will cause an infinite loop
3597
+
3598
+ if (currentLocation !== homescreenLocation) {
3599
+ // Ensure that if the user is trying to get to the task list they can see it even if
3600
+ // it was dismissed.
3601
+ if (setupTaskListHidden === 'no') {
3602
+ redirectToHomeScreen();
3603
+ } else {
3604
+ updateOptions({
3605
+ woocommerce_task_list_hidden: 'no'
3606
+ }).then(redirectToHomeScreen);
3607
+ }
3608
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3609
 
3610
+ return null;
3611
+ },
3612
+ visible: currentUserCan('manage_woocommerce') && !setupTaskListComplete && !setupTaskListHidden && !isPerformingSetupTask() && (!isHomescreen() || isEmbedded)
3613
+ };
3614
+ var help = {
3615
+ name: 'help',
3616
+ title: Object(external_this_wp_i18n_["__"])('Help', 'woocommerce-admin'),
3617
+ icon: Object(external_this_wp_element_["createElement"])(build_module_icon["a" /* default */], {
3618
+ icon: library_help
3619
+ }),
3620
+ visible: isHomescreen() && !isEmbedded || isPerformingSetupTask()
3621
+ };
3622
+ var displayOptions = {
3623
+ component: display_options_DisplayOptions,
3624
+ visible: !isEmbedded && isHomescreen() && !isPerformingSetupTask()
3625
+ };
3626
+ return [inbox, setup, displayOptions, help].filter(function (tab) {
3627
+ return tab.visible;
3628
+ });
3629
+ };
3630
+
3631
+ var getPanelContent = function getPanelContent(tab) {
3632
+ var task = query.task;
3633
+
3634
+ switch (tab) {
3635
+ case 'inbox':
3636
+ return Object(external_this_wp_element_["createElement"])(InboxPanel, null);
3637
+
3638
+ case 'help':
3639
+ return Object(external_this_wp_element_["createElement"])(HelpPanel, {
3640
+ taskName: task
3641
  });
3642
+
3643
+ default:
3644
+ return null;
3645
  }
3646
+ };
 
 
 
 
 
 
 
 
 
 
 
 
 
3647
 
3648
+ var redirectToHomeScreen = function redirectToHomeScreen() {
3649
+ if (Object(utils["f" /* isWCAdmin */])(window.location.href)) {
3650
+ Object(external_this_wc_navigation_["getHistory"])().push(Object(external_this_wc_navigation_["getNewPath"])({}, '/', {}));
3651
+ } else {
3652
+ window.location.href = Object(wc_admin_settings["f" /* getAdminLink */])('admin.php?page=wc-admin');
3653
  }
3654
+ };
3655
+
3656
+ var closedHelpPanelHighlight = function closedHelpPanelHighlight() {
3657
+ Object(external_this_wc_tracks_["recordEvent"])('help_tooltip_click');
3658
+
3659
+ if (userPreferencesData && userPreferencesData.updateUserPreferences) {
3660
+ userPreferencesData.updateUserPreferences({
3661
+ help_panel_highlight_shown: 'yes'
 
 
 
 
 
 
 
 
 
3662
  });
3663
+ }
3664
+ };
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3665
 
3666
+ var shouldShowHelpTooltip = function shouldShowHelpTooltip() {
3667
+ var task = query.task;
3668
+ var startedTasks = userPreferencesData && userPreferencesData.task_list_tracked_started_tasks;
3669
+ var highlightShown = userPreferencesData && userPreferencesData.help_panel_highlight_shown;
3670
+
3671
+ if (task && highlightShown !== 'yes' && (startedTasks || {})[task] > 1 && !trackedCompletedTasks.includes(task)) {
3672
+ return true;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3673
  }
 
3674
 
3675
+ return false;
3676
+ };
3677
+
3678
+ var tabs = getTabs();
3679
+ var headerId = Object(external_lodash_["uniqueId"])('activity-panel-header_');
3680
+ var panelClasses = classnames_default()('woocommerce-layout__activity-panel', {
3681
+ 'is-mobile-open': mobileOpen
3682
+ });
3683
+ var showHelpHighlightTooltip = shouldShowHelpTooltip();
3684
+ var hasUnread = tabs.some(function (tab) {
3685
+ return tab.unread;
3686
+ });
3687
+ var viewLabel = hasUnread ? Object(external_this_wp_i18n_["__"])('View Activity Panel, you have unread activity', 'woocommerce-admin') : Object(external_this_wp_i18n_["__"])('View Activity Panel', 'woocommerce-admin');
3688
+ return Object(external_this_wp_element_["createElement"])("div", null, Object(external_this_wp_element_["createElement"])(external_this_wc_components_["H"], {
3689
+ id: headerId,
3690
+ className: "screen-reader-text"
3691
+ }, Object(external_this_wp_i18n_["__"])('Store Activity', 'woocommerce-admin')), Object(external_this_wp_element_["createElement"])(external_this_wc_components_["Section"], {
3692
+ component: "aside",
3693
+ id: "woocommerce-activity-panel",
3694
+ "aria-labelledby": headerId
3695
+ }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], {
3696
+ onClick: function onClick() {
3697
+ toggleMobile();
3698
+ },
3699
+ label: mobileOpen ? Object(external_this_wp_i18n_["__"])('Close Activity Panel', 'woocommerce-admin') : viewLabel,
3700
+ "aria-expanded": mobileOpen,
3701
+ className: "woocommerce-layout__activity-panel-mobile-toggle"
3702
+ }, mobileOpen ? Object(external_this_wp_element_["createElement"])(cross_small_default.a, null) : Object(external_this_wp_element_["createElement"])(toggle_bubble, {
3703
+ hasUnread: hasUnread
3704
+ })), Object(external_this_wp_element_["createElement"])("div", {
3705
+ className: panelClasses
3706
+ }, Object(external_this_wp_element_["createElement"])(tabs_Tabs, {
3707
+ tabs: tabs,
3708
+ tabOpen: isPanelOpen,
3709
+ selectedTab: currentTab,
3710
+ onTabClick: function onTabClick(tab, tabOpen) {
3711
+ if (tab.onClick) {
3712
+ tab.onClick();
3713
+ return;
3714
+ }
3715
+
3716
+ togglePanel(tab, tabOpen);
3717
+ }
3718
+ }), Object(external_this_wp_element_["createElement"])(panel_Panel, {
3719
+ currentTab: true,
3720
+ isPanelOpen: isPanelOpen,
3721
+ isPanelSwitching: isPanelSwitching,
3722
+ tab: Object(external_lodash_["find"])(getTabs(), {
3723
+ name: currentTab
3724
+ }),
3725
+ content: getPanelContent(currentTab),
3726
+ closePanel: function closePanel() {
3727
+ return _closePanel();
3728
+ },
3729
+ clearPanel: function clearPanel() {
3730
+ return _clearPanel();
3731
+ }
3732
+ }))), showHelpHighlightTooltip ? Object(external_this_wp_element_["createElement"])(HighlightTooltip, {
3733
+ delay: 1000,
3734
+ useAnchor: true,
3735
+ title: Object(external_this_wp_i18n_["__"])("We're here for help", 'woocommerce-admin'),
3736
+ content: Object(external_this_wp_i18n_["__"])('If you have any questions, feel free to explore the WooCommerce docs listed here.', 'woocommerce-admin'),
3737
+ closeButtonText: Object(external_this_wp_i18n_["__"])('Got it', 'woocommerce-admin'),
3738
+ id: "activity-panel-tab-help",
3739
+ onClose: function onClose() {
3740
+ return closedHelpPanelHighlight();
3741
+ },
3742
+ onShow: function onShow() {
3743
+ return Object(external_this_wc_tracks_["recordEvent"])('help_tooltip_view');
3744
+ }
3745
+ }) : null);
3746
+ };
3747
  activity_panel_ActivityPanel.defaultProps = {
3748
  getHistory: external_this_wc_navigation_["getHistory"]
3749
  };
3750
+ /* harmony default export */ var activity_panel = (activity_panel_ActivityPanel);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3751
  // CONCATENATED MODULE: ./client/lib/platform/index.js
3752
  var ANDROID_PLATFORM = 'android';
3753
  var IOS_PLATFORM = 'ios';
3789
  }));
3790
  };
3791
  // EXTERNAL MODULE: ./client/mobile-banner/style.scss
3792
+ var mobile_banner_style = __webpack_require__(301);
3793
 
3794
  // CONCATENATED MODULE: ./client/mobile-banner/constants.js
3795
  // The Play Store link is defined as an exported constant mainly for the sake of testing the Mobile App Banner.
3879
 
3880
  return null;
3881
  };
3882
+ // CONCATENATED MODULE: ./client/hooks/useIsScrolled.js
 
 
 
 
3883
 
3884
 
 
 
 
 
 
3885
  /**
3886
  * External dependencies
3887
  */
3888
 
3889
+ function useIsScrolled() {
3890
+ var _useState = Object(external_this_wp_element_["useState"])(false),
3891
+ _useState2 = slicedToArray_default()(_useState, 2),
3892
+ isScrolled = _useState2[0],
3893
+ setIsScrolled = _useState2[1];
3894
 
3895
+ var rafHandle = Object(external_this_wp_element_["useRef"])(null);
3896
+ Object(external_this_wp_element_["useEffect"])(function () {
3897
+ var updateIsScrolled = function updateIsScrolled() {
3898
+ setIsScrolled(window.pageYOffset > 20);
3899
+ };
3900
 
3901
+ var scrollListener = function scrollListener() {
3902
+ rafHandle.current = window.requestAnimationFrame(updateIsScrolled);
3903
+ };
3904
 
3905
+ window.addEventListener('scroll', scrollListener);
3906
+ return function () {
3907
+ window.removeEventListener('scroll', scrollListener);
3908
+ window.cancelAnimationFrame(rafHandle.current);
3909
+ };
3910
+ }, []);
3911
+ return isScrolled;
3912
+ }
3913
+ // EXTERNAL MODULE: external {"this":["wp","plugins"]}
3914
+ var external_this_wp_plugins_ = __webpack_require__(139);
3915
 
3916
+ // EXTERNAL MODULE: ./client/navigation/style.scss
3917
+ var navigation_style = __webpack_require__(302);
3918
 
3919
+ // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/toConsumableArray.js
3920
+ var toConsumableArray = __webpack_require__(19);
3921
+ var toConsumableArray_default = /*#__PURE__*/__webpack_require__.n(toConsumableArray);
3922
 
3923
+ // CONCATENATED MODULE: ./client/navigation/utils.js
 
 
3924
 
3925
 
3926
 
3927
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
3928
 
3929
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { defineProperty_default()(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
3930
 
3931
+ /**
3932
+ * External dependencies
3933
+ */
 
 
 
 
 
 
3934
 
3935
+ /**
3936
+ * Get the full URL if a relative path is passed.
3937
+ *
3938
+ * @param {string} url URL
3939
+ * @return {string} Full URL
3940
+ */
3941
 
3942
+ var getFullUrl = function getFullUrl(url) {
3943
+ var _window$location = window.location,
3944
+ origin = _window$location.origin,
3945
+ pathname = _window$location.pathname,
3946
+ search = _window$location.search;
 
 
 
 
 
 
 
3947
 
3948
+ if (url.indexOf('#') === 0) {
3949
+ return origin + pathname + search + url;
3950
+ }
 
 
3951
 
3952
+ if (url.indexOf('http') === 0) {
3953
+ return url;
3954
+ }
 
 
3955
 
3956
+ return origin + url;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3957
  };
3958
+ /**
3959
+ * Get a match score for a menu item given a location.
3960
+ *
3961
+ * @param {Object} location Window location
3962
+ * @param {string} itemUrl URL to compare
3963
+ * @param {string} itemExpression Custom match expression
3964
+ * @return {number} Number of matches or 0 if not matched.
3965
+ */
3966
 
3967
+ var getMatchScore = function getMatchScore(location, itemUrl) {
3968
+ var itemExpression = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
3969
 
3970
+ if (!itemUrl) {
3971
+ return;
3972
+ }
3973
 
3974
+ var fullUrl = getFullUrl(itemUrl);
3975
+ var href = location.href; // Return highest possible score for exact match.
3976
 
3977
+ if (fullUrl === href) {
3978
+ return Number.MAX_SAFE_INTEGER;
3979
+ }
3980
 
3981
+ var defaultExpression = utils_getDefaultMatchExpression(fullUrl);
3982
+ var regexp = new RegExp(itemExpression || defaultExpression, 'i');
3983
+ return (decodeURIComponent(href).match(regexp) || []).length;
3984
+ };
3985
+ /**
3986
+ * Get a default expression to match the path and provided params.
3987
+ *
3988
+ * @param {string} url URL to match.
3989
+ * @return {string} Regex expression.
3990
+ */
3991
 
3992
+ var utils_getDefaultMatchExpression = function getDefaultMatchExpression(url) {
3993
+ var escapedUrl = url.replace(/[-\/\\^$*+?.()|[\]{}]/gi, '\\$&');
3994
 
3995
+ var _escapedUrl$split = escapedUrl.split(/\\\?|#/),
3996
+ _escapedUrl$split2 = slicedToArray_default()(_escapedUrl$split, 3),
3997
+ path = _escapedUrl$split2[0],
3998
+ args = _escapedUrl$split2[1],
3999
+ hash = _escapedUrl$split2[2];
4000
 
4001
+ var hashExpression = hash ? "(.*#".concat(hash, "$)") : '';
4002
+ var argsExpression = args ? args.split('&').reduce(function (acc, param) {
4003
+ return "".concat(acc, "(?=.*[?|&]").concat(param, "(&|$|#))");
4004
+ }, '') : '';
4005
+ return '^' + path + argsExpression + hashExpression;
4006
+ };
4007
  /**
4008
+ * Adds a listener that runs on history change.
4009
+ *
4010
+ * @param {Function} listener Listener to add on history change.
4011
+ * @return {Function} Function to remove listeners.
4012
  */
4013
 
4014
+ var addHistoryListener = function addHistoryListener(listener) {
4015
+ // Monkey patch pushState to allow trigger the pushstate event listener.
4016
+ if (!window.wcNavigation.historyPatched) {
4017
+ (function (history) {
4018
+ /* global CustomEvent */
4019
+ var pushState = history.pushState;
4020
+ var replaceState = history.replaceState;
4021
 
4022
+ history.pushState = function (state) {
4023
+ var pushStateEvent = new CustomEvent('pushstate', {
4024
+ state: state
4025
+ });
4026
+ window.dispatchEvent(pushStateEvent);
4027
+ return pushState.apply(history, arguments);
4028
+ };
4029
 
4030
+ history.replaceState = function (state) {
4031
+ var replaceStateEvent = new CustomEvent('replacestate', {
4032
+ state: state
4033
+ });
4034
+ window.dispatchEvent(replaceStateEvent);
4035
+ return replaceState.apply(history, arguments);
4036
+ };
4037
 
4038
+ window.wcNavigation.historyPatched = true;
4039
+ })(window.history);
4040
  }
4041
 
4042
+ window.addEventListener('popstate', listener);
4043
+ window.addEventListener('pushstate', listener);
4044
+ window.addEventListener('replacestate', listener);
4045
+ return function () {
4046
+ window.removeEventListener('popstate', listener);
4047
+ window.removeEventListener('pushstate', listener);
4048
+ window.removeEventListener('replacestate', listener);
4049
+ };
4050
+ };
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4051
  /**
4052
+ * Get the closest matching item.
4053
+ *
4054
+ * @param {Array} items An array of items to match against.
4055
  */
4056
 
4057
+ var utils_getMatchingItem = function getMatchingItem(items) {
4058
+ var matchedItem = null;
4059
+ var highestMatchScore = 0;
4060
+ items.forEach(function (item) {
4061
+ var score = getMatchScore(window.location, Object(wc_admin_settings["f" /* getAdminLink */])(item.url), item.matchExpression);
4062
 
4063
+ if (score > 0 && score >= highestMatchScore) {
4064
+ highestMatchScore = score;
4065
+ matchedItem = item;
4066
+ }
4067
+ });
4068
+ return matchedItem || null;
4069
+ };
4070
+ /**
4071
+ * Available menu IDs.
4072
+ */
4073
 
4074
+ var menuIds = ['primary', 'favorites', 'plugins', 'secondary'];
4075
+ /**
4076
+ * Default categories for the menu.
4077
+ */
4078
 
4079
+ var defaultCategories = {
4080
+ woocommerce: {
4081
+ id: 'woocommerce',
4082
+ isCategory: true,
4083
+ menuId: 'primary',
4084
+ migrate: true,
4085
+ order: 10,
4086
+ parent: '',
4087
+ title: 'WooCommerce'
4088
+ }
4089
+ };
4090
  /**
4091
+ * Sort an array of menu items by their order property.
4092
+ *
4093
+ * @param {Array} menuItems Array of menu items.
4094
+ * @return {Array} Sorted menu items.
4095
  */
4096
 
4097
+ var sortMenuItems = function sortMenuItems(menuItems) {
4098
+ return menuItems.sort(function (a, b) {
4099
+ if (a.order === b.order) {
4100
+ return a.title.localeCompare(b.title);
4101
+ }
4102
 
4103
+ return a.order - b.order;
4104
+ });
4105
+ };
4106
  /**
4107
+ * Get a flat tree structure of all Categories and thier children grouped by menuId
4108
  *
4109
+ * @param {Array} menuItems Array of menu items.
4110
+ * @param {Function} currentUserCan Callback method passed the capability to determine if a menu item is visible.
4111
+ * @return {Object} Mapped menu items and categories.
 
 
 
 
4112
  */
4113
 
4114
+ var getMappedItemsCategories = function getMappedItemsCategories(menuItems) {
4115
+ var currentUserCan = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
 
 
 
 
 
 
 
 
 
 
 
 
 
4116
 
4117
+ var categories = _objectSpread({}, defaultCategories);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4118
 
4119
+ var items = sortMenuItems(menuItems).reduce(function (acc, item) {
4120
+ // Set up the category if it doesn't yet exist.
4121
+ if (!acc[item.parent]) {
4122
+ acc[item.parent] = {};
4123
+ menuIds.forEach(function (menuId) {
4124
+ acc[item.parent][menuId] = [];
4125
+ });
4126
+ } // Incorrect menu ID.
4127
 
 
 
 
 
 
 
 
4128
 
4129
+ if (!acc[item.parent][item.menuId]) {
4130
+ return acc;
4131
+ } // User does not have permission to view this item.
 
 
 
 
 
 
 
 
 
 
 
 
 
4132
 
 
 
 
 
 
4133
 
4134
+ if (currentUserCan && item.capability && !currentUserCan(item.capability)) {
4135
+ return acc;
4136
+ } // Add categories.
 
 
 
 
4137
 
 
 
 
 
 
 
 
 
4138
 
4139
+ if (item.isCategory) {
4140
+ categories[item.id] = item;
4141
+ }
4142
 
4143
+ acc[item.parent][item.menuId].push(item);
4144
+ return acc;
4145
+ }, {});
4146
+ return {
4147
+ items: items,
4148
+ categories: categories
4149
  };
4150
+ };
4151
+ // CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/wordpress.js
4152
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4153
 
4154
+ /**
4155
+ * WordPress dependencies
4156
+ */
4157
 
4158
+ var wordpress = Object(external_this_wp_element_["createElement"])(svg["b" /* SVG */], {
4159
+ xmlns: "http://www.w3.org/2000/svg",
4160
+ viewBox: "-2 -2 24 24"
4161
+ }, Object(external_this_wp_element_["createElement"])(svg["a" /* Path */], {
4162
+ 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"
4163
+ }));
4164
+ /* harmony default export */ var library_wordpress = (wordpress);
4165
+ //# sourceMappingURL=wordpress.js.map
4166
+ // CONCATENATED MODULE: ./client/navigation/components/header/index.js
4167
 
4168
 
4169
 
4170
+ /**
4171
+ * External dependencies
4172
+ */
4173
 
4174
 
 
4175
 
 
4176
 
 
 
 
4177
 
4178
 
4179
 
4186
 
4187
 
4188
 
4189
+ var header_Header = function Header() {
4190
+ var siteTitle = Object(wc_admin_settings["g" /* getSetting */])('siteTitle', '');
4191
+ var homeUrl = Object(wc_admin_settings["g" /* getSetting */])('homeUrl', '');
4192
+ var isScrolled = useIsScrolled();
4193
 
4194
+ var _useState = Object(external_this_wp_element_["useState"])(document.body.classList.contains(false)),
4195
+ _useState2 = slicedToArray_default()(_useState, 2),
4196
+ isFolded = _useState2[0],
4197
+ setIsFolded = _useState2[1];
4198
 
4199
+ var navClasses = {
4200
+ folded: 'is-wc-nav-folded',
4201
+ expanded: 'is-wc-nav-expanded'
4202
+ };
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4203
 
4204
+ var foldNav = function foldNav() {
4205
+ document.body.classList.add(navClasses.folded);
4206
+ document.body.classList.remove(navClasses.expanded);
4207
+ setIsFolded(true);
4208
+ };
4209
 
4210
+ var expandNav = function expandNav() {
4211
+ document.body.classList.remove(navClasses.folded);
4212
+ document.body.classList.add(navClasses.expanded);
4213
+ setIsFolded(false);
4214
+ };
4215
 
4216
+ var toggleFolded = function toggleFolded() {
4217
+ if (document.body.classList.contains(navClasses.folded)) {
4218
+ expandNav();
4219
+ } else {
4220
+ foldNav();
4221
+ }
 
 
 
 
 
 
4222
  };
4223
+
4224
+ var foldOnMobile = function foldOnMobile() {
4225
+ var screenWidth = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : document.body.clientWidth;
4226
+
4227
+ if (screenWidth <= 960) {
4228
+ foldNav();
4229
+ } else {
4230
+ expandNav();
4231
+ }
4232
  };
 
 
 
4233
 
4234
+ Object(external_this_wp_element_["useEffect"])(function () {
4235
+ foldOnMobile();
4236
+ var foldEvents = [{
4237
+ eventName: 'orientationchange',
4238
+ handler: function handler(e) {
4239
+ return foldOnMobile(e.target.screen.availWidth);
4240
+ }
4241
+ }, {
4242
+ eventName: 'resize',
4243
+ handler: Object(external_lodash_["debounce"])(function () {
4244
+ return foldOnMobile();
4245
+ }, 200)
4246
+ }];
4247
 
4248
+ for (var _i = 0, _foldEvents = foldEvents; _i < _foldEvents.length; _i++) {
4249
+ var _foldEvents$_i = _foldEvents[_i],
4250
+ eventName = _foldEvents$_i.eventName,
4251
+ handler = _foldEvents$_i.handler;
4252
+ window.addEventListener(eventName, handler, false);
4253
+ }
4254
 
4255
+ addHistoryListener(function () {
4256
+ return foldOnMobile();
4257
+ });
4258
+ }, []);
4259
+ var buttonIcon = Object(external_this_wp_element_["createElement"])(build_module_icon["a" /* default */], {
4260
+ size: "36px",
4261
+ icon: library_wordpress
4262
+ });
4263
 
4264
+ var _useSelect = Object(external_this_wp_data_["useSelect"])(function (select) {
4265
+ var _select = select('core/data'),
4266
+ isResolving = _select.isResolving;
4267
 
4268
+ var _select2 = select('core'),
4269
+ getEntityRecord = _select2.getEntityRecord;
4270
 
4271
+ var siteData = getEntityRecord('root', '__unstableBase', undefined) || {};
4272
+ return {
4273
+ isRequestingSiteIcon: isResolving('core', 'getEntityRecord', ['root', '__unstableBase', undefined]),
4274
+ siteIconUrl: siteData.siteIconUrl
4275
+ };
4276
+ }),
4277
+ isRequestingSiteIcon = _useSelect.isRequestingSiteIcon,
4278
+ siteIconUrl = _useSelect.siteIconUrl;
4279
 
4280
+ if (siteIconUrl) {
4281
+ buttonIcon = Object(external_this_wp_element_["createElement"])("img", {
4282
+ alt: Object(external_this_wp_i18n_["__"])('Site Icon'),
4283
+ src: siteIconUrl
4284
+ });
4285
+ } else if (isRequestingSiteIcon) {
4286
+ buttonIcon = null;
4287
+ }
4288
 
4289
+ var className = classnames_default()('woocommerce-navigation-header', {
4290
+ 'is-scrolled': isScrolled
4291
+ });
4292
+ return Object(external_this_wp_element_["createElement"])("div", {
4293
+ className: className
4294
+ }, Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], {
4295
+ onClick: function onClick() {
4296
+ return toggleFolded();
4297
+ },
4298
+ className: "woocommerce-navigation-header__site-icon",
4299
+ "aria-label": "Fold navigation",
4300
+ role: "switch",
4301
+ "aria-checked": isFolded ? 'true' : 'false'
4302
+ }, buttonIcon), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], {
4303
+ href: homeUrl,
4304
+ className: "woocommerce-navigation-header__site-title",
4305
+ as: "span"
4306
+ }, Object(external_this_wp_htmlEntities_["decodeEntities"])(siteTitle)));
4307
+ };
4308
 
4309
+ /* harmony default export */ var header = (header_Header);
4310
+ // EXTERNAL MODULE: ./client/navigation/components/category-title/style.scss
4311
+ var category_title_style = __webpack_require__(303);
4312
 
4313
+ // EXTERNAL MODULE: ./client/navigation/components/favorite-button/style.scss
4314
+ var favorite_button_style = __webpack_require__(304);
4315
 
4316
+ // CONCATENATED MODULE: ./client/navigation/components/favorite-button/index.js
4317
 
4318
 
4319
  /**
4320
+ * External dependencies
4321
  */
4322
 
4323
 
4324
 
4325
 
4326
 
4327
+ /**
4328
+ * Internal dependencies
4329
+ */
4330
 
 
 
 
 
 
4331
 
4332
+ var favorite_button_FavoriteButton = function FavoriteButton(_ref) {
4333
+ var id = _ref.id;
 
4334
 
4335
+ var _useSelect = Object(external_this_wp_data_["useSelect"])(function (select) {
4336
+ return {
4337
+ favorites: select(external_this_wc_data_["NAVIGATION_STORE_NAME"]).getFavorites(),
4338
+ isResolving: select(external_this_wc_data_["NAVIGATION_STORE_NAME"]).isResolving('getFavorites')
4339
+ };
4340
+ }),
4341
+ favorites = _useSelect.favorites,
4342
+ isResolving = _useSelect.isResolving;
4343
 
4344
+ var _useDispatch = Object(external_this_wp_data_["useDispatch"])(external_this_wc_data_["NAVIGATION_STORE_NAME"]),
4345
+ addFavorite = _useDispatch.addFavorite,
4346
+ removeFavorite = _useDispatch.removeFavorite;
 
 
 
4347
 
4348
+ var isFavorited = favorites.includes(id);
4349
+
4350
+ var toggleFavorite = function toggleFavorite() {
4351
+ var toggle = isFavorited ? removeFavorite : addFavorite;
4352
+ toggle(id);
4353
+ Object(external_this_wc_tracks_["recordEvent"])('navigation_favorite', {
4354
+ id: id,
4355
+ action: isFavorited ? 'unfavorite' : 'favorite'
4356
  });
4357
+ };
 
 
 
 
 
4358
 
4359
+ if (isResolving) {
4360
  return null;
4361
  }
4362
 
4363
+ return Object(external_this_wp_element_["createElement"])(external_this_wp_components_["Button"], {
4364
+ id: "woocommerce-navigation-favorite-button",
4365
+ className: "woocommerce-navigation-favorite-button",
4366
+ isTertiary: true,
4367
+ onClick: toggleFavorite,
4368
+ icon: isFavorited ? 'star-filled' : 'star-empty',
4369
+ "aria-label": isFavorited ? Object(external_this_wp_i18n_["__"])('Add this item to your favorites.', 'woocommerce-admin') : Object(external_this_wp_i18n_["__"])('Remove this item from your favorites.', 'woocommerce-admin')
 
 
 
 
 
 
4370
  });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4371
  };
4372
+ /* harmony default export */ var favorite_button = (favorite_button_FavoriteButton);
4373
+ // CONCATENATED MODULE: ./client/navigation/components/favorites-tooltip/index.js
4374
 
 
 
 
 
4375
 
4376
 
4377
+ /**
4378
+ * External dependencies
4379
+ */
4380
 
4381
 
4382
 
4383
+ /**
4384
+ * Internal dependencies
4385
+ */
4386
 
4387
 
4388
+ var tooltipHiddenOption = 'woocommerce_navigation_favorites_tooltip_hidden';
4389
+ var favorites_tooltip_FavoritesTooltip = function FavoritesTooltip() {
4390
+ var _useSelect = Object(external_this_wp_data_["useSelect"])(function (select) {
4391
+ var _select = select(external_this_wc_data_["OPTIONS_STORE_NAME"]),
4392
+ getOption = _select.getOption,
4393
+ isResolving = _select.isResolving;
4394
 
4395
+ return {
4396
+ isFavoritesResolving: select(external_this_wc_data_["NAVIGATION_STORE_NAME"]).isResolving('getFavorites'),
4397
+ isOptionResolving: isResolving('getOption', [tooltipHiddenOption]),
4398
+ isTooltipHidden: getOption(tooltipHiddenOption) === 'yes'
4399
+ };
4400
+ }),
4401
+ isFavoritesResolving = _useSelect.isFavoritesResolving,
4402
+ isOptionResolving = _useSelect.isOptionResolving,
4403
+ isTooltipHidden = _useSelect.isTooltipHidden;
4404
 
4405
+ var _useDispatch = Object(external_this_wp_data_["useDispatch"])(external_this_wc_data_["OPTIONS_STORE_NAME"]),
4406
+ updateOptions = _useDispatch.updateOptions;
4407
 
4408
+ if (isFavoritesResolving || isTooltipHidden || isOptionResolving) {
4409
+ return null;
4410
+ }
4411
 
4412
+ if (document.body.classList.contains('is-wc-nav-folded')) {
4413
+ return null;
4414
+ }
4415
 
4416
+ return Object(external_this_wp_element_["createElement"])(HighlightTooltip, {
4417
+ delay: 1000,
4418
+ title: Object(external_this_wp_i18n_["__"])('Introducing favorites', 'woocommerce-admin'),
4419
+ content: Object(external_this_wp_i18n_["__"])('You can now favorite your extensions to pin them in the top level of the navigation.', 'woocommerce-admin'),
4420
+ closeButtonText: Object(external_this_wp_i18n_["__"])('Got it', 'woocommerce-admin'),
4421
+ id: "woocommerce-navigation-favorite-button",
4422
+ onClose: function onClose() {
4423
+ return updateOptions(defineProperty_default()({}, tooltipHiddenOption, 'yes'));
4424
+ },
4425
+ useAnchor: true
4426
+ });
4427
+ };
4428
+ /* harmony default export */ var favorites_tooltip = (favorites_tooltip_FavoritesTooltip);
4429
+ // CONCATENATED MODULE: ./client/navigation/components/category-title/index.js
4430
 
 
4431
 
4432
  /**
4433
+ * Internal dependencies
4434
  */
4435
 
4436
 
4437
 
4438
+ var category_title_CategoryTitle = function CategoryTitle(_ref) {
4439
+ var category = _ref.category;
4440
+ var id = category.id,
4441
+ title = category.title;
4442
+ var className = 'woocommerce-navigation-category-title';
4443
 
4444
+ if (['plugins', 'favorites'].includes(category.menuId)) {
4445
+ return Object(external_this_wp_element_["createElement"])("span", {
4446
+ className: className
4447
+ }, Object(external_this_wp_element_["createElement"])("span", {
4448
+ className: "".concat(className, "__text")
4449
+ }, title), Object(external_this_wp_element_["createElement"])(favorite_button_FavoriteButton, {
4450
+ id: id
4451
+ }), Object(external_this_wp_element_["createElement"])(favorites_tooltip_FavoritesTooltip, null));
4452
+ }
4453
 
4454
+ return Object(external_this_wp_element_["createElement"])("span", {
4455
+ className: className
4456
+ }, title);
4457
+ };
4458
+ /* harmony default export */ var category_title = (category_title_CategoryTitle);
4459
+ // CONCATENATED MODULE: ./client/navigation/components/Item/index.js
4460
 
4461
 
4462
  /**
4463
+ * External dependencies
4464
  */
4465
 
4466
 
4467
 
4468
 
4469
+ var Item_Item = function Item(_ref) {
4470
+ var item = _ref.item;
4471
+ var slot = Object(external_this_wc_navigation_["useNavSlot"])('woocommerce_navigation_' + item.id);
4472
+ var hasFills = Boolean(slot.fills && slot.fills.length);
4473
 
4474
+ var trackClick = function trackClick(id) {
4475
+ Object(external_this_wc_tracks_["recordEvent"])('navigation_click', {
4476
+ menu_item: id
4477
+ });
4478
+ }; // Disable reason: The div wrapping the slot item is used for tracking purposes
4479
+ // and should not be a tabbable element.
4480
 
4481
+ /* eslint-disable jsx-a11y/no-static-element-interactions, jsx-a11y/click-events-have-key-events */
4482
+ // Only render a slot if a coresponding Fill exists and the item is not a category
4483
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4484
 
4485
+ if (hasFills && !item.isCategory) {
4486
+ return Object(external_this_wp_element_["createElement"])(build_module["c" /* NavigationItem */], {
4487
+ key: item.id,
4488
+ item: item.id
4489
+ }, Object(external_this_wp_element_["createElement"])("div", {
4490
+ onClick: function onClick() {
4491
+ return trackClick(item.id);
4492
+ }
4493
+ }, Object(external_this_wp_element_["createElement"])(external_this_wc_navigation_["WooNavigationItem"].Slot, {
4494
+ name: item.id
4495
+ })));
4496
+ }
 
 
 
 
 
 
4497
 
4498
+ return Object(external_this_wp_element_["createElement"])(build_module["c" /* NavigationItem */], {
4499
+ key: item.id,
4500
+ item: item.id,
4501
+ title: item.title,
4502
+ href: item.url,
4503
+ navigateToMenu: !item.url && item.id,
4504
+ onClick: function onClick() {
4505
+ return trackClick(item.id);
4506
+ },
4507
+ hideIfTargetMenuEmpty: true
4508
+ });
4509
+ /* eslint-enable jsx-a11y/no-static-element-interactions, jsx-a11y/click-events-have-key-events */
4510
+ };
4511
 
4512
+ /* harmony default export */ var components_Item = (Item_Item);
4513
+ // CONCATENATED MODULE: ./client/navigation/components/container/primary-menu.js
4514
 
 
 
4515
 
4516
+ /**
4517
+ * External dependencies
4518
+ */
 
 
 
 
 
 
 
4519
 
 
 
 
4520
 
4521
+ /**
4522
+ * Internal dependencies
4523
+ */
 
 
 
 
 
 
 
 
 
 
 
 
4524
 
 
 
4525
 
 
 
 
 
 
4526
 
4527
+ var primary_menu_PrimaryMenu = function PrimaryMenu(_ref) {
4528
+ var category = _ref.category,
4529
+ onBackClick = _ref.onBackClick,
4530
+ pluginItems = _ref.pluginItems,
4531
+ primaryItems = _ref.primaryItems;
4532
 
4533
+ if (!primaryItems.length && !pluginItems.length) {
4534
+ return null;
4535
+ }
4536
 
4537
+ var _window$wcNavigation = window.wcNavigation,
4538
+ rootBackLabel = _window$wcNavigation.rootBackLabel,
4539
+ rootBackUrl = _window$wcNavigation.rootBackUrl;
4540
+ var isRootBackVisible = category.id === 'woocommerce' && rootBackUrl;
4541
+ return Object(external_this_wp_element_["createElement"])(build_module["d" /* NavigationMenu */], {
4542
+ title: Object(external_this_wp_element_["createElement"])(category_title, {
4543
+ category: category
4544
+ }),
4545
+ menu: category.id,
4546
+ parentMenu: category.parent,
4547
+ backButtonLabel: isRootBackVisible ? rootBackLabel : category.backButtonLabel || null,
4548
+ onBackButtonClick: isRootBackVisible ? function () {
4549
+ onBackClick('woocommerce');
4550
+ window.location = rootBackUrl;
4551
+ } : function () {
4552
+ return onBackClick(category.id);
4553
+ }
4554
+ }, !!primaryItems.length && Object(external_this_wp_element_["createElement"])(build_module["b" /* NavigationGroup */], null, primaryItems.map(function (item) {
4555
+ return Object(external_this_wp_element_["createElement"])(components_Item, {
4556
+ key: item.id,
4557
+ item: item
4558
+ });
4559
+ })), !!pluginItems.length && Object(external_this_wp_element_["createElement"])(build_module["b" /* NavigationGroup */], {
4560
+ title: category.id === 'woocommerce' ? Object(external_this_wp_i18n_["__"])('Extensions', 'woocommerce-admin') : null
4561
+ }, pluginItems.map(function (item) {
4562
+ return Object(external_this_wp_element_["createElement"])(components_Item, {
4563
+ key: item.id,
4564
+ item: item
4565
+ });
4566
+ })));
4567
+ };
4568
+ // CONCATENATED MODULE: ./client/navigation/components/container/secondary-menu.js
4569
 
 
4570
 
4571
+ /**
4572
+ * External dependencies
4573
+ */
4574
 
4575
+ /**
4576
+ * Internal dependencies
4577
+ */
 
 
 
 
 
 
 
 
 
4578
 
 
 
 
 
 
 
 
 
 
 
4579
 
 
 
 
 
 
 
 
 
4580
 
4581
+ var secondary_menu_SecondaryMenu = function SecondaryMenu(_ref) {
4582
+ var category = _ref.category,
4583
+ items = _ref.items,
4584
+ onBackClick = _ref.onBackClick;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4585
 
4586
+ if (!items.length) {
4587
+ return null;
4588
+ }
4589
 
4590
+ var isRoot = category.id === 'woocommerce';
4591
+ return Object(external_this_wp_element_["createElement"])(build_module["d" /* NavigationMenu */], {
4592
+ className: "components-navigation__menu-secondary",
4593
+ title: !isRoot && Object(external_this_wp_element_["createElement"])(category_title, {
4594
+ category: category
4595
+ }),
4596
+ menu: category.id,
4597
+ parentMenu: category.parent,
4598
+ backButtonLabel: category.backButtonLabel || null,
4599
+ onBackButtonClick: isRoot ? null : function () {
4600
+ return onBackClick(category.id);
4601
+ }
4602
+ }, Object(external_this_wp_element_["createElement"])(build_module["b" /* NavigationGroup */], {
4603
+ onBackButtonClick: function onBackButtonClick() {
4604
+ return onBackClick(category.id);
4605
+ }
4606
+ }, items.map(function (item) {
4607
+ return Object(external_this_wp_element_["createElement"])(components_Item, {
4608
+ key: item.id,
4609
+ item: item
4610
+ });
4611
+ })));
4612
  };
4613
+ // CONCATENATED MODULE: ./client/navigation/components/container/index.js
 
 
 
4614
 
 
 
 
 
4615
 
 
 
 
 
4616
 
 
 
 
 
 
 
4617
 
4618
+ /**
4619
+ * External dependencies
4620
+ */
4621
 
 
4622
 
 
 
4623
 
 
 
4624
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4625
 
 
 
4626
 
 
4627
 
4628
+ /**
4629
+ * Internal dependencies
4630
+ */
 
 
 
 
 
4631
 
 
4632
 
 
4633
 
 
 
4634
 
 
4635
 
 
4636
 
4637
+ var container_Container = function Container(_ref) {
4638
+ var menuItems = _ref.menuItems;
4639
+ Object(external_this_wp_element_["useEffect"])(function () {
4640
+ // Collapse the original WP Menu.
4641
+ document.documentElement.classList.remove('wp-toolbar');
4642
+ document.body.classList.add('has-woocommerce-navigation');
4643
+ var adminMenu = document.getElementById('adminmenumain');
4644
 
4645
+ if (!adminMenu) {
4646
+ return;
4647
+ }
4648
 
4649
+ adminMenu.classList.add('folded');
4650
+ }, []);
4651
 
4652
+ var _useState = Object(external_this_wp_element_["useState"])('woocommerce-home'),
4653
+ _useState2 = slicedToArray_default()(_useState, 2),
4654
+ activeItem = _useState2[0],
4655
+ setActiveItem = _useState2[1];
4656
 
4657
+ var _useState3 = Object(external_this_wp_element_["useState"])('woocommerce'),
4658
+ _useState4 = slicedToArray_default()(_useState3, 2),
4659
+ activeLevel = _useState4[0],
4660
+ setActiveLevel = _useState4[1];
 
 
 
 
 
 
 
 
 
 
 
 
4661
 
4662
+ Object(external_this_wp_element_["useEffect"])(function () {
4663
+ var initialMatchedItem = utils_getMatchingItem(menuItems);
4664
 
4665
+ if (initialMatchedItem && activeItem !== initialMatchedItem) {
4666
+ setActiveItem(initialMatchedItem);
4667
+ setActiveLevel(initialMatchedItem.parent);
4668
+ }
4669
 
4670
+ var removeListener = addHistoryListener(function () {
4671
+ setTimeout(function () {
4672
+ var matchedItem = utils_getMatchingItem(menuItems);
4673
 
4674
+ if (matchedItem) {
4675
+ setActiveItem(matchedItem);
4676
+ }
4677
+ }, 0);
4678
+ });
4679
+ return removeListener;
4680
+ }, [menuItems]);
4681
 
4682
+ var _useUser = Object(external_this_wc_data_["useUser"])(),
4683
+ currentUserCan = _useUser.currentUserCan;
4684
 
4685
+ var _useMemo = Object(external_this_wp_element_["useMemo"])(function () {
4686
+ return getMappedItemsCategories(menuItems, currentUserCan);
4687
+ }, [menuItems, currentUserCan]),
4688
+ categories = _useMemo.categories,
4689
+ items = _useMemo.items;
4690
 
4691
+ var navDomRef = Object(external_this_wp_element_["useRef"])(null);
4692
 
4693
+ var onBackClick = function onBackClick(id) {
4694
+ Object(external_this_wc_tracks_["recordEvent"])('navigation_back_click', {
4695
+ category: id
4696
+ });
4697
+ };
4698
 
4699
+ var isRoot = activeLevel === 'woocommerce';
4700
+ var classes = classnames_default()('woocommerce-navigation', {
4701
+ 'is-root': isRoot
4702
+ });
4703
+ return Object(external_this_wp_element_["createElement"])("div", {
4704
+ className: classes
4705
+ }, Object(external_this_wp_element_["createElement"])(header, null), Object(external_this_wp_element_["createElement"])("div", {
4706
+ className: "woocommerce-navigation__wrapper",
4707
+ ref: navDomRef
4708
+ }, Object(external_this_wp_element_["createElement"])(build_module["a" /* Navigation */], {
4709
+ activeItem: activeItem ? activeItem.id : null,
4710
+ activeMenu: activeLevel,
4711
+ onActivateMenu: function onActivateMenu() {
4712
+ if (navDomRef && navDomRef.current) {
4713
+ navDomRef.current.scrollTop = 0;
4714
+ }
4715
 
4716
+ setActiveLevel.apply(void 0, arguments);
4717
+ }
4718
+ }, Object.values(categories).map(function (category) {
4719
+ var categoryItems = items[category.id];
4720
+ return !!categoryItems && [Object(external_this_wp_element_["createElement"])(primary_menu_PrimaryMenu, {
4721
+ key: category.id,
4722
+ category: category,
4723
+ onBackClick: onBackClick,
4724
+ primaryItems: [].concat(toConsumableArray_default()(categoryItems.primary), toConsumableArray_default()(categoryItems.favorites)),
4725
+ pluginItems: categoryItems.plugins
4726
+ }), Object(external_this_wp_element_["createElement"])(secondary_menu_SecondaryMenu, {
4727
+ key: "secondary/".concat(category.id),
4728
+ category: category,
4729
+ onBackClick: onBackClick,
4730
+ items: categoryItems.secondary
4731
+ })];
4732
+ }))));
4733
+ };
4734
 
4735
+ /* harmony default export */ var container = (Object(external_this_wp_compose_["compose"])(Object(external_this_wp_data_["withSelect"])(function (select) {
4736
+ var _select = select(external_this_wc_data_["NAVIGATION_STORE_NAME"]),
4737
+ getActiveItem = _select.getActiveItem,
4738
+ getMenuItems = _select.getMenuItems;
4739
 
4740
+ return {
4741
+ activeItem: getActiveItem(),
4742
+ menuItems: getMenuItems()
4743
+ };
4744
+ }))(container_Container));
4745
+ // CONCATENATED MODULE: ./client/navigation/index.js
4746
 
 
4747
 
4748
+ /**
4749
+ * External dependencies
4750
+ */
4751
 
 
4752
 
 
4753
 
4754
+ /**
4755
+ * Internal dependencies
4756
+ */
 
 
 
4757
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4758
 
 
 
 
4759
 
 
 
 
4760
 
4761
+ var navigation_Navigation = function Navigation() {
4762
+ return Object(external_this_wp_element_["createElement"])(external_this_wc_navigation_["NavSlotFillProvider"], null, Object(external_this_wp_element_["createElement"])(container, null), Object(external_this_wp_element_["createElement"])(external_this_wp_plugins_["PluginArea"], null));
4763
  };
 
 
 
 
4764
 
4765
+ var HydratedNavigation = Object(external_this_wc_data_["withNavigationHydration"])(window.wcNavigation)(navigation_Navigation);
4766
+ /* harmony default export */ var navigation = (HydratedNavigation);
4767
+ // CONCATENATED MODULE: ./client/header/index.js
 
 
 
 
 
 
 
 
4768
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4769
 
 
 
4770
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4771
 
4772
+ function header_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
 
4773
 
4774
+ function header_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { header_ownKeys(Object(source), true).forEach(function (key) { defineProperty_default()(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { header_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
 
 
 
 
 
 
4775
 
4776
+ /**
4777
+ * External dependencies
4778
+ */
 
 
 
 
 
 
 
 
 
 
4779
 
 
 
4780
 
 
 
 
 
 
 
 
4781
 
 
4782
 
 
 
 
4783
 
 
 
 
4784
 
 
4785
 
4786
+ /**
4787
+ * Internal dependencies
4788
+ */
4789
 
 
 
 
4790
 
 
 
 
 
4791
 
 
 
 
 
 
4792
 
 
 
 
 
 
 
4793
 
 
 
4794
 
4795
+ var client_header_Header = function Header(_ref) {
4796
+ var sections = _ref.sections,
4797
+ _ref$isEmbedded = _ref.isEmbedded,
4798
+ isEmbedded = _ref$isEmbedded === void 0 ? false : _ref$isEmbedded,
4799
+ query = _ref.query;
4800
+ var headerElement = Object(external_this_wp_element_["useRef"])(null);
4801
+ var siteTitle = Object(wc_admin_settings["g" /* getSetting */])('siteTitle', '');
4802
+ var pageTitle = sections.slice(-1)[0];
4803
+ var isScrolled = useIsScrolled();
4804
 
4805
+ var _useUserPreferences = Object(external_this_wc_data_["useUserPreferences"])(),
4806
+ updateUserPreferences = _useUserPreferences.updateUserPreferences,
4807
+ userData = objectWithoutProperties_default()(_useUserPreferences, ["updateUserPreferences"]);
4808
 
4809
+ var isModalDismissed = userData.android_app_banner_dismissed === 'yes';
4810
+ var debounceTimer = null;
4811
+ var className = classnames_default()('woocommerce-layout__header', {
4812
+ 'is-scrolled': isScrolled
4813
+ });
4814
+ Object(external_this_wp_element_["useLayoutEffect"])(function () {
4815
+ updateBodyMargin();
4816
+ window.addEventListener('resize', updateBodyMargin);
4817
+ return function () {
4818
+ window.removeEventListener('resize', updateBodyMargin);
4819
+ var wpBody = document.querySelector('#wpbody');
4820
 
4821
+ if (!wpBody) {
4822
+ return;
4823
+ }
4824
 
4825
+ wpBody.style.marginTop = null;
4826
+ };
4827
+ }, [isModalDismissed]);
 
 
 
4828
 
4829
+ var updateBodyMargin = function updateBodyMargin() {
4830
+ clearTimeout(debounceTimer);
4831
+ debounceTimer = setTimeout(function () {
4832
+ var wpBody = document.querySelector('#wpbody');
4833
 
4834
+ if (!wpBody || !headerElement.current) {
4835
+ return;
4836
+ }
4837
 
4838
+ wpBody.style.marginTop = "".concat(headerElement.current.offsetHeight, "px");
4839
+ }, 200);
4840
+ };
4841
 
4842
+ Object(external_this_wp_element_["useEffect"])(function () {
4843
+ if (!isEmbedded) {
4844
+ var documentTitle = sections.map(function (section) {
4845
+ return Array.isArray(section) ? section[1] : section;
4846
+ }).reverse().join(' &lsaquo; ');
4847
+ var decodedTitle = Object(external_this_wp_htmlEntities_["decodeEntities"])(Object(external_this_wp_i18n_["sprintf"])(
4848
+ /* translators: 1: document title. 2: page title */
4849
+ Object(external_this_wp_i18n_["__"])('%1$s &lsaquo; %2$s &#8212; WooCommerce', 'woocommerce-admin'), documentTitle, siteTitle));
4850
 
4851
+ if (document.title !== decodedTitle) {
4852
+ document.title = decodedTitle;
4853
+ }
4854
+ }
4855
+ }, [isEmbedded, sections, siteTitle]);
4856
 
4857
+ var dismissHandler = function dismissHandler() {
4858
+ updateUserPreferences({
4859
+ android_app_banner_dismissed: 'yes'
4860
+ });
4861
+ };
4862
 
4863
+ return Object(external_this_wp_element_["createElement"])("div", {
4864
+ className: className,
4865
+ ref: headerElement
4866
+ }, !isModalDismissed && Object(external_this_wp_element_["createElement"])(mobile_banner_MobileAppBanner, {
4867
+ onDismiss: dismissHandler,
4868
+ onInstall: dismissHandler
4869
+ }), Object(external_this_wp_element_["createElement"])("div", {
4870
+ className: "woocommerce-layout__header-wrapper"
4871
+ }, window.wcAdminFeatures.navigation && Object(external_this_wp_element_["createElement"])(navigation, null), Object(external_this_wp_element_["createElement"])(build_module["e" /* Text */], {
4872
+ className: "woocommerce-layout__header-heading",
4873
+ as: "h1",
4874
+ variant: "subtitle.small"
4875
+ }, Object(external_this_wp_htmlEntities_["decodeEntities"])(pageTitle)), window.wcAdminFeatures['activity-panels'] && Object(external_this_wp_element_["createElement"])(activity_panel, {
4876
+ isEmbedded: isEmbedded,
4877
+ query: query,
4878
+ userPreferencesData: header_objectSpread(header_objectSpread({}, userData), {}, {
4879
+ updateUserPreferences: updateUserPreferences
4880
+ })
4881
+ })));
4882
+ };
4883
+ // CONCATENATED MODULE: ./client/layout/notices.js
4884
 
 
 
 
 
4885
 
 
4886
 
 
 
 
 
 
4887
 
 
 
4888
 
 
 
 
4889
 
 
 
4890
 
4891
+ function notices_createSuper(Derived) { var hasNativeReflectConstruct = notices_isNativeReflectConstruct(); return function _createSuperInternal() { var Super = getPrototypeOf_default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = getPrototypeOf_default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return possibleConstructorReturn_default()(this, result); }; }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4892
 
4893
+ function notices_isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4894
 
4895
  /**
4896
+ * External dependencies
4897
  */
4898
 
 
 
 
 
4899
 
4900
+ var notices_Notices = /*#__PURE__*/function (_Component) {
4901
+ inherits_default()(Notices, _Component);
4902
 
4903
+ var _super = notices_createSuper(Notices);
 
 
 
 
 
4904
 
4905
+ function Notices() {
4906
+ classCallCheck_default()(this, Notices);
4907
 
4908
+ return _super.apply(this, arguments);
4909
  }
4910
 
4911
+ createClass_default()(Notices, [{
4912
+ key: "render",
4913
+ value: function render() {
4914
+ return Object(external_this_wp_element_["createElement"])("div", {
4915
+ id: "woocommerce-layout__notice-list",
4916
+ className: "woocommerce-layout__notice-list"
4917
+ });
4918
+ }
4919
+ }]);
4920
 
4921
+ return Notices;
4922
+ }(external_this_wp_element_["Component"]);
 
4923
 
4924
+ /* harmony default export */ var layout_notices = (notices_Notices);
4925
+ // EXTERNAL MODULE: ./node_modules/@babel/runtime/regenerator/index.js
4926
+ var regenerator = __webpack_require__(8);
4927
+ var regenerator_default = /*#__PURE__*/__webpack_require__.n(regenerator);
 
 
 
 
4928
 
4929
+ // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/asyncToGenerator.js
4930
+ var asyncToGenerator = __webpack_require__(44);
4931
+ var asyncToGenerator_default = /*#__PURE__*/__webpack_require__.n(asyncToGenerator);
4932
 
4933
+ // EXTERNAL MODULE: ./node_modules/react-spring/web.cjs.js
4934
+ var web_cjs = __webpack_require__(182);
 
4935
 
4936
+ // EXTERNAL MODULE: ./client/layout/transient-notices/snackbar/index.js
4937
+ var snackbar = __webpack_require__(277);
 
 
 
 
4938
 
4939
+ // CONCATENATED MODULE: ./client/layout/transient-notices/snackbar/list.js
 
 
 
 
 
 
 
 
 
 
 
 
4940
 
 
 
 
 
 
4941
 
4942
 
 
 
 
 
 
 
 
 
 
4943
 
 
 
4944
 
 
 
 
4945
 
4946
+ /**
4947
+ * External dependencies
4948
+ */
4949
 
 
 
 
 
 
 
 
 
4950
 
 
 
4951
 
 
 
 
 
4952
 
 
 
4953
 
4954
+ /**
4955
+ * Internal dependencies
4956
+ */
 
 
 
 
4957
 
 
 
 
 
 
4958
 
4959
+ /**
4960
+ * Renders a list of notices.
4961
+ *
4962
+ * @param {Object} $0 Props passed to the component.
4963
+ * @param {Array} $0.notices Array of notices to render.
4964
+ * @param {Function} $0.onRemove Function called when a notice should be removed / dismissed.
4965
+ * @param {Function} $0.onRemove2 Function called when a notice should be removed / dismissed.
4966
+ * @param {Object} $0.className Name of the class used by the component.
4967
+ * @param {Object} $0.children Array of children to be rendered inside the notice list.
4968
+ * @return {Object} The rendered notices list.
4969
+ */
4970
 
4971
+ function SnackbarList(_ref) {
4972
+ var notices = _ref.notices,
4973
+ className = _ref.className,
4974
+ children = _ref.children,
4975
+ _ref$onRemove = _ref.onRemove,
4976
+ onRemove = _ref$onRemove === void 0 ? external_lodash_["noop"] : _ref$onRemove,
4977
+ _ref$onRemove2 = _ref.onRemove2,
4978
+ onRemove2 = _ref$onRemove2 === void 0 ? external_lodash_["noop"] : _ref$onRemove2;
4979
+ var isReducedMotion = Object(external_this_wp_compose_["useReducedMotion"])();
4980
 
4981
+ var _useState = Object(external_this_wp_element_["useState"])(function () {
4982
+ return new WeakMap();
4983
+ }),
4984
+ _useState2 = slicedToArray_default()(_useState, 1),
4985
+ refMap = _useState2[0];
 
 
 
 
 
 
 
 
4986
 
4987
+ var transitions = Object(web_cjs["useTransition"])(notices, function (notice) {
4988
+ return notice.id;
4989
+ }, {
4990
+ from: {
4991
+ opacity: 0,
4992
+ height: 0
4993
+ },
4994
+ enter: function enter(item) {
4995
+ return /*#__PURE__*/function () {
4996
+ var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regenerator_default.a.mark(function _callee(next) {
4997
+ return regenerator_default.a.wrap(function _callee$(_context) {
4998
+ while (1) {
4999
+ switch (_context.prev = _context.next) {
5000
+ case 0:
5001
+ _context.next = 2;
5002
+ return next({
5003
+ opacity: 1,
5004
+ height: refMap.get(item).offsetHeight
5005
+ });
5006
 
5007
+ case 2:
5008
+ return _context.abrupt("return", _context.sent);
5009
 
5010
+ case 3:
5011
+ case "end":
5012
+ return _context.stop();
5013
+ }
5014
+ }
5015
+ }, _callee);
5016
+ }));
5017
 
5018
+ return function (_x) {
5019
+ return _ref2.apply(this, arguments);
5020
+ };
5021
+ }();
5022
+ },
5023
+ leave: function leave() {
5024
+ return /*#__PURE__*/function () {
5025
+ var _ref3 = asyncToGenerator_default()( /*#__PURE__*/regenerator_default.a.mark(function _callee2(next) {
5026
+ return regenerator_default.a.wrap(function _callee2$(_context2) {
5027
+ while (1) {
5028
+ switch (_context2.prev = _context2.next) {
5029
+ case 0:
5030
+ _context2.next = 2;
5031
+ return next({
5032
+ opacity: 0
5033
+ });
5034
 
5035
+ case 2:
5036
+ _context2.next = 4;
5037
+ return next({
5038
+ height: 0
5039
+ });
 
 
5040
 
5041
+ case 4:
5042
+ case "end":
5043
+ return _context2.stop();
5044
+ }
5045
+ }
5046
+ }, _callee2);
5047
+ }));
5048
 
5049
+ return function (_x2) {
5050
+ return _ref3.apply(this, arguments);
5051
+ };
5052
+ }();
5053
+ },
5054
+ immediate: isReducedMotion
5055
+ });
5056
+ className = classnames_default()('components-snackbar-list', className);
5057
 
5058
+ var removeNotice = function removeNotice(notice) {
5059
+ return function () {
5060
+ onRemove(notice.id); // To be removed when we're no longer using core/notices2.
 
 
5061
 
5062
+ onRemove2(notice.id);
5063
+ };
5064
+ };
5065
 
5066
+ return Object(external_this_wp_element_["createElement"])("div", {
5067
+ className: className
5068
+ }, children, transitions.map(function (_ref4) {
5069
+ var notice = _ref4.item,
5070
+ key = _ref4.key,
5071
+ style = _ref4.props;
5072
+ return Object(external_this_wp_element_["createElement"])(web_cjs["animated"].div, {
5073
+ key: key,
5074
+ style: style
5075
+ }, Object(external_this_wp_element_["createElement"])("div", {
5076
+ className: "components-snackbar-list__notice-container",
5077
+ ref: function ref(_ref5) {
5078
+ return _ref5 && refMap.set(notice, _ref5);
5079
+ }
5080
+ }, Object(external_this_wp_element_["createElement"])(snackbar["a" /* default */], extends_default()({}, Object(external_lodash_["omit"])(notice, ['content']), {
5081
+ onRemove: removeNotice(notice)
5082
+ }), notice.content)));
5083
+ }));
5084
+ }
5085
 
5086
+ /* harmony default export */ var list = (SnackbarList);
5087
+ // EXTERNAL MODULE: ./client/layout/transient-notices/style.scss
5088
+ var transient_notices_style = __webpack_require__(306);
5089
 
5090
+ // CONCATENATED MODULE: ./client/layout/transient-notices/index.js
5091
 
 
5092
 
5093
+ /**
5094
+ * External dependencies
5095
+ */
 
 
5096
 
5097
 
 
 
 
 
 
5098
 
5099
+ /**
5100
+ * Internal dependencies
5101
+ */
5102
 
 
 
5103
 
 
 
 
 
 
5104
 
 
 
 
5105
 
5106
+ function TransientNotices(props) {
5107
+ var _useDispatch = Object(external_this_wp_data_["useDispatch"])('core/notices'),
5108
+ onRemove = _useDispatch.removeNotice;
 
5109
 
5110
+ var _useDispatch2 = Object(external_this_wp_data_["useDispatch"])('core/notices2'),
5111
+ onRemove2 = _useDispatch2.removeNotice;
 
 
 
 
 
5112
 
5113
+ var noticeData = Object(external_this_wp_data_["useSelect"])(function (select) {
5114
+ // NOTE: This uses core/notices2, if this file is copied back upstream
5115
+ // to Gutenberg this needs to be changed back to just core/notices.
5116
+ var notices = select('core/notices').getNotices();
5117
+ var notices2 = select('core/notices2').getNotices();
5118
+ return {
5119
+ notices: notices,
5120
+ notices2: notices2
5121
+ };
5122
+ });
5123
+ /**
5124
+ * Combines the two notices in the component vs in the useSelect, as we don't want to
5125
+ * create new object references on each useSelect call.
5126
+ */
5127
 
5128
+ var getNotices = function getNotices() {
5129
+ var notices = noticeData.notices,
5130
+ _noticeData$notices = noticeData.notices2,
5131
+ notices2 = _noticeData$notices === void 0 ? [] : _noticeData$notices;
5132
+ return notices.concat(notices2);
5133
  };
5134
 
5135
+ var className = props.className;
5136
+ var classes = classnames_default()('woocommerce-transient-notices', 'components-notices__snackbar', className);
5137
+ var notices = getNotices();
5138
+ return Object(external_this_wp_element_["createElement"])(list, {
5139
+ notices: notices,
5140
+ className: classes,
5141
+ onRemove: onRemove,
5142
+ onRemove2: onRemove2
5143
+ });
5144
  }
5145
 
5146
+ TransientNotices.propTypes = {
5147
+ /**
5148
+ * Additional class name to style the component.
5149
+ */
5150
+ className: prop_types_default.a.string,
 
 
 
 
 
5151
 
5152
+ /**
5153
+ * Array of notices to be displayed.
5154
+ */
5155
+ notices: prop_types_default.a.array
5156
+ };
5157
+ /* harmony default export */ var transient_notices = (TransientNotices);
5158
+ // CONCATENATED MODULE: ./client/layout/navigation.js
5159
 
 
5160
 
 
5161
 
 
 
 
5162
 
5163
+ function navigation_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
 
 
 
5164
 
5165
+ function navigation_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { navigation_ownKeys(Object(source), true).forEach(function (key) { defineProperty_default()(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { navigation_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
 
5166
 
5167
+ /**
5168
+ * External dependencies
5169
+ */
 
5170
 
 
 
5171
 
 
 
 
 
 
 
5172
 
 
5173
 
 
 
 
 
 
5174
 
5175
+ /**
5176
+ * Internal dependencies
5177
+ */
5178
 
 
 
 
5179
 
 
 
5180
 
 
 
 
5181
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5182
 
 
 
 
5183
 
5184
+ var navigation_NavigationPlugin = function NavigationPlugin() {
5185
+ var _useState = Object(external_this_wp_element_["useState"])(Object(external_this_wc_navigation_["getPersistedQuery"])()),
5186
+ _useState2 = slicedToArray_default()(_useState, 2),
5187
+ persistedQuery = _useState2[0],
5188
+ setPersistedQuery = _useState2[1];
5189
 
5190
+ var pathIsExcluded = function pathIsExcluded(path) {
5191
+ return Object(external_this_wc_navigation_["getQueryExcludedScreens"])().includes(Object(external_this_wc_navigation_["getScreenFromPath"])(path));
5192
+ }; // Update the persisted queries when history is updated
 
 
 
 
 
5193
 
 
 
5194
 
5195
+ Object(external_this_wp_element_["useEffect"])(function () {
5196
+ return addHistoryListener(function () {
5197
+ setTimeout(function () {
5198
+ if (pathIsExcluded()) {
5199
+ return;
 
 
 
 
 
 
5200
  }
 
 
 
 
 
 
 
 
 
 
5201
 
5202
+ setPersistedQuery(Object(external_this_wc_navigation_["getPersistedQuery"])());
5203
+ }, 0);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5204
  });
5205
+ }, []);
5206
+ /**
5207
+ * If the current page is embedded, stay with the default urls
5208
+ * provided by Navigation because the router isn't present to
5209
+ * respond to <Link /> component's manipulation of the url.
5210
+ */
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5211
 
5212
+ if (!Object(utils["f" /* isWCAdmin */])(window.location.href)) {
5213
+ return null;
 
 
5214
  }
5215
 
5216
+ var reports = Object(get_reports["a" /* default */])().filter(function (item) {
5217
+ return item.navArgs;
5218
+ });
5219
+ var pages = controller_getPages().filter(function (page) {
5220
+ return page.navArgs;
5221
+ }).map(function (page) {
5222
+ if (page.path === '/analytics/settings') {
5223
+ return navigation_objectSpread(navigation_objectSpread({}, page), {}, {
5224
+ breadcrumbs: [Object(external_this_wp_i18n_["__"])('Analytics', 'woocommerce-admin')]
5225
+ });
5226
  }
5227
 
5228
+ return page;
5229
+ });
5230
+ return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, pages.map(function (page) {
5231
+ return Object(external_this_wp_element_["createElement"])(external_this_wc_navigation_["WooNavigationItem"], {
5232
+ item: page.navArgs.id,
5233
+ key: page.navArgs.id
5234
+ }, Object(external_this_wp_element_["createElement"])(external_this_wc_components_["Link"], {
5235
+ className: "components-button",
5236
+ href: Object(external_this_wc_navigation_["getNewPath"])(pathIsExcluded(page.path) ? {} : persistedQuery, page.path, {}),
5237
+ type: "wc-admin"
5238
+ }, page.breadcrumbs[page.breadcrumbs.length - 1]));
5239
+ }), reports.map(function (item) {
5240
+ return Object(external_this_wp_element_["createElement"])(external_this_wc_navigation_["WooNavigationItem"], {
5241
+ item: item.navArgs.id,
5242
+ key: item.navArgs.id
5243
+ }, Object(external_this_wp_element_["createElement"])(external_this_wc_components_["Link"], {
5244
+ className: "components-button",
5245
+ href: Object(external_this_wc_navigation_["getNewPath"])(pathIsExcluded(item.report) ? {} : persistedQuery, "/analytics/".concat(item.report), {}),
5246
+ type: "wc-admin"
5247
+ }, item.title));
5248
+ }));
5249
+ };
5250
 
5251
+ Object(external_this_wp_plugins_["registerPlugin"])('wc-admin-navigation', {
5252
+ render: navigation_NavigationPlugin
5253
+ });
5254
+ // CONCATENATED MODULE: ./client/layout/index.js
5255
 
 
 
 
5256
 
 
 
5257
 
 
 
 
 
5258
 
 
 
5259
 
 
 
 
 
 
 
5260
 
 
5261
 
 
 
5262
 
 
 
 
5263
 
 
 
 
 
 
 
 
 
 
 
 
 
5264
 
5265
+ function layout_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
 
 
 
 
5266
 
5267
+ function layout_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { layout_ownKeys(Object(source), true).forEach(function (key) { defineProperty_default()(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { layout_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
 
 
5268
 
5269
+ function layout_createSuper(Derived) { var hasNativeReflectConstruct = layout_isNativeReflectConstruct(); return function _createSuperInternal() { var Super = getPrototypeOf_default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = getPrototypeOf_default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return possibleConstructorReturn_default()(this, result); }; }
 
5270
 
5271
+ function layout_isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
5272
 
5273
+ /**
5274
+ * External dependencies
5275
+ */
 
 
5276
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5277
 
 
 
 
5278
 
 
 
 
 
 
5279
 
5280
 
 
5281
 
 
 
 
5282
 
 
 
 
 
 
5283
 
 
 
 
 
 
 
 
 
 
 
 
5284
 
 
 
5285
 
 
 
 
 
 
5286
 
 
 
 
 
 
 
 
5287
 
5288
+ /**
5289
+ * Internal dependencies
5290
+ */
5291
 
 
 
 
5292
 
 
 
 
 
 
 
5293
 
 
 
5294
 
 
 
 
5295
 
 
 
 
 
 
 
 
 
 
 
 
5296
 
5297
 
5298
+ var StoreAlerts = Object(external_this_wp_element_["lazy"])(function () {
5299
+ return Promise.all(/* import() | store-alerts */[__webpack_require__.e(1), __webpack_require__.e(47)]).then(__webpack_require__.bind(null, 611));
5300
+ });
5301
+ var WCPayUsageModal = Object(external_this_wp_element_["lazy"])(function () {
5302
+ return __webpack_require__.e(/* import() | wcpay-usage-modal */ 51).then(__webpack_require__.bind(null, 527));
5303
+ });
5304
+ var layout_PrimaryLayout = /*#__PURE__*/function (_Component) {
5305
+ inherits_default()(PrimaryLayout, _Component);
5306
 
5307
+ var _super = layout_createSuper(PrimaryLayout);
 
 
5308
 
5309
+ function PrimaryLayout() {
5310
+ classCallCheck_default()(this, PrimaryLayout);
 
 
 
5311
 
5312
+ return _super.apply(this, arguments);
5313
+ }
5314
 
5315
+ createClass_default()(PrimaryLayout, [{
5316
+ key: "render",
5317
+ value: function render() {
5318
+ var children = this.props.children;
5319
+ return Object(external_this_wp_element_["createElement"])("div", {
5320
+ className: "woocommerce-layout__primary",
5321
+ id: "woocommerce-layout__primary"
5322
+ }, window.wcAdminFeatures['store-alerts'] && Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Suspense"], {
5323
+ fallback: Object(external_this_wp_element_["createElement"])(external_this_wc_components_["Spinner"], null)
5324
+ }, Object(external_this_wp_element_["createElement"])(StoreAlerts, null)), Object(external_this_wp_element_["createElement"])(layout_notices, null), children);
5325
+ }
5326
+ }]);
5327
 
5328
+ return PrimaryLayout;
5329
+ }(external_this_wp_element_["Component"]);
5330
 
5331
+ var layout_Layout = /*#__PURE__*/function (_Component2) {
5332
+ inherits_default()(_Layout, _Component2);
 
 
 
 
 
 
 
 
 
 
5333
 
5334
+ var _super2 = layout_createSuper(_Layout);
 
5335
 
5336
+ function _Layout() {
5337
+ classCallCheck_default()(this, _Layout);
5338
 
5339
+ return _super2.apply(this, arguments);
 
 
 
 
 
5340
  }
 
 
 
 
 
 
 
 
 
 
 
5341
 
5342
+ createClass_default()(_Layout, [{
5343
+ key: "componentDidMount",
5344
+ value: function componentDidMount() {
5345
+ this.recordPageViewTrack();
5346
+ }
5347
+ }, {
5348
+ key: "componentDidUpdate",
5349
+ value: function componentDidUpdate(prevProps) {
5350
+ var previousPath = Object(external_lodash_["get"])(prevProps, 'location.pathname');
5351
+ var currentPath = Object(external_lodash_["get"])(this.props, 'location.pathname');
5352
 
5353
+ if (!previousPath || !currentPath) {
5354
+ return;
5355
+ }
5356
 
5357
+ if (previousPath !== currentPath) {
5358
+ this.recordPageViewTrack();
5359
+ }
5360
+ }
5361
+ }, {
5362
+ key: "recordPageViewTrack",
5363
+ value: function recordPageViewTrack() {
5364
+ var _this$props = this.props,
5365
+ activePlugins = _this$props.activePlugins,
5366
+ installedPlugins = _this$props.installedPlugins,
5367
+ isEmbedded = _this$props.isEmbedded,
5368
+ isJetpackConnected = _this$props.isJetpackConnected;
5369
+ var navigationFlag = {
5370
+ has_navigation: !!window.wcNavigation
5371
+ };
5372
 
5373
+ if (isEmbedded) {
5374
+ var _path = document.location.pathname + document.location.search;
 
5375
 
5376
+ Object(external_this_wc_tracks_["recordPageView"])(_path, layout_objectSpread({
5377
+ is_embedded: true
5378
+ }, navigationFlag));
5379
+ return;
5380
+ }
5381
 
5382
+ var pathname = Object(external_lodash_["get"])(this.props, 'location.pathname');
 
 
 
 
 
 
 
5383
 
5384
+ if (!pathname) {
5385
+ return;
5386
+ } // Remove leading slash, and camel case remaining pathname
5387
+
5388
+
5389
+ var path = pathname.substring(1).replace(/\//g, '_'); // When pathname is `/` we are on the home screen.
5390
+
5391
+ if (path.length === 0) {
5392
+ path = 'home_screen';
5393
  }
 
 
 
 
 
 
 
5394
 
5395
+ Object(external_this_wc_tracks_["recordPageView"])(path, layout_objectSpread({
5396
+ jetpack_installed: installedPlugins.includes('jetpack'),
5397
+ jetpack_active: activePlugins.includes('jetpack'),
5398
+ jetpack_connected: isJetpackConnected
5399
+ }, navigationFlag));
5400
+ }
5401
+ }, {
5402
+ key: "getQuery",
5403
+ value: function getQuery(searchString) {
5404
+ if (!searchString) {
5405
+ return {};
5406
+ }
5407
 
5408
+ var search = searchString.substring(1);
5409
+ return Object(lib["parse"])(search);
5410
+ }
5411
+ }, {
5412
+ key: "isWCPaySettingsPage",
5413
+ value: function isWCPaySettingsPage() {
5414
+ var _getQuery = Object(external_this_wc_navigation_["getQuery"])(),
5415
+ page = _getQuery.page,
5416
+ section = _getQuery.section,
5417
+ tab = _getQuery.tab;
5418
 
5419
+ return page === 'wc-settings' && tab === 'checkout' && section === 'woocommerce_payments';
 
 
 
 
5420
  }
5421
+ }, {
5422
+ key: "render",
5423
+ value: function render() {
5424
+ var _this$props2 = this.props,
5425
+ isEmbedded = _this$props2.isEmbedded,
5426
+ restProps = objectWithoutProperties_default()(_this$props2, ["isEmbedded"]);
5427
 
5428
+ var _this$props3 = this.props,
5429
+ location = _this$props3.location,
5430
+ page = _this$props3.page;
5431
+ var breadcrumbs = page.breadcrumbs;
5432
+ var query = this.getQuery(location && location.search);
5433
+ return Object(external_this_wp_element_["createElement"])("div", {
5434
+ className: "woocommerce-layout"
5435
+ }, Object(external_this_wp_element_["createElement"])(client_header_Header, {
5436
+ sections: Object(external_lodash_["isFunction"])(breadcrumbs) ? breadcrumbs(this.props) : breadcrumbs,
5437
+ isEmbedded: isEmbedded,
5438
+ query: query
5439
+ }), Object(external_this_wp_element_["createElement"])(transient_notices, null), !isEmbedded && Object(external_this_wp_element_["createElement"])(layout_PrimaryLayout, null, Object(external_this_wp_element_["createElement"])("div", {
5440
+ className: "woocommerce-layout__main"
5441
+ }, Object(external_this_wp_element_["createElement"])(controller_Controller, extends_default()({}, restProps, {
5442
+ query: query
5443
+ })))), isEmbedded && this.isWCPaySettingsPage() && Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Suspense"], {
5444
+ fallback: null
5445
+ }, Object(external_this_wp_element_["createElement"])(WCPayUsageModal, null)));
5446
+ }
5447
+ }]);
5448
 
5449
+ return _Layout;
5450
+ }(external_this_wp_element_["Component"]);
5451
 
5452
+ layout_Layout.propTypes = {
5453
+ isEmbedded: prop_types_default.a.bool,
5454
+ page: prop_types_default.a.shape({
5455
+ container: prop_types_default.a.oneOfType([prop_types_default.a.func, prop_types_default.a.object // Support React.lazy
5456
+ ]),
5457
+ path: prop_types_default.a.string,
5458
+ breadcrumbs: prop_types_default.a.oneOfType([prop_types_default.a.func, prop_types_default.a.arrayOf(prop_types_default.a.oneOfType([prop_types_default.a.arrayOf(prop_types_default.a.string), prop_types_default.a.string]))]).isRequired,
5459
+ wpOpenMenu: prop_types_default.a.string
5460
+ }).isRequired
5461
+ };
5462
+ var Layout = Object(external_this_wp_compose_["compose"])(Object(external_this_wc_data_["withPluginsHydration"])(layout_objectSpread(layout_objectSpread({}, window.wcSettings.plugins || {}), {}, {
5463
+ jetpackStatus: window.wcSettings.dataEndpoints && window.wcSettings.dataEndpoints.jetpackStatus || false
5464
+ })), Object(external_this_wp_data_["withSelect"])(function (select, _ref) {
5465
+ var isEmbedded = _ref.isEmbedded;
5466
 
5467
+ // Embedded pages don't send plugin info to Tracks.
5468
+ if (isEmbedded) {
5469
+ return;
5470
+ }
 
5471
 
5472
+ var _select = select(external_this_wc_data_["PLUGINS_STORE_NAME"]),
5473
+ getActivePlugins = _select.getActivePlugins,
5474
+ getInstalledPlugins = _select.getInstalledPlugins,
5475
+ isJetpackConnected = _select.isJetpackConnected;
5476
 
5477
+ return {
5478
+ activePlugins: getActivePlugins(),
5479
+ isJetpackConnected: isJetpackConnected(),
5480
+ installedPlugins: getInstalledPlugins()
5481
+ };
5482
+ }))(layout_Layout);
5483
 
5484
+ var layout_PageLayout = function _PageLayout() {
5485
+ var _useUser = Object(external_this_wc_data_["useUser"])(),
5486
+ currentUserCan = _useUser.currentUserCan;
5487
 
5488
+ return Object(external_this_wp_element_["createElement"])(react_router_Router, {
5489
+ history: Object(external_this_wc_navigation_["getHistory"])()
5490
+ }, Object(external_this_wp_element_["createElement"])(react_router_Switch, null, controller_getPages().filter(function (page) {
5491
+ return !page.capability || currentUserCan(page.capability);
5492
+ }).map(function (page) {
5493
+ return Object(external_this_wp_element_["createElement"])(react_router_Route, {
5494
+ key: page.path,
5495
+ path: page.path,
5496
+ exact: true,
5497
+ render: function render(props) {
5498
+ return Object(external_this_wp_element_["createElement"])(Layout, extends_default()({
5499
+ page: page
5500
+ }, props));
5501
+ }
5502
+ });
5503
+ })));
5504
+ };
5505
 
5506
+ var PageLayout = Object(external_this_wp_compose_["compose"])(window.wcSettings.preloadOptions ? Object(external_this_wc_data_["withOptionsHydration"])(layout_objectSpread({}, window.wcSettings.preloadOptions)) : external_lodash_["identity"])(layout_PageLayout);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5507
 
5508
+ var layout_EmbedLayout = function _EmbedLayout() {
5509
+ return Object(external_this_wp_element_["createElement"])(Layout, {
5510
+ page: {
5511
+ breadcrumbs: Object(wc_admin_settings["g" /* getSetting */])('embedBreadcrumbs', [])
5512
+ },
5513
+ isEmbedded: true
5514
+ });
5515
+ };
5516
 
5517
+ var EmbedLayout = Object(external_this_wp_compose_["compose"])(window.wcSettings.preloadOptions ? Object(external_this_wc_data_["withOptionsHydration"])(layout_objectSpread({}, window.wcSettings.preloadOptions)) : external_lodash_["identity"])(layout_EmbedLayout);
 
5518
 
5519
+ /***/ }),
 
 
 
5520
 
5521
+ /***/ 142:
5522
+ /***/ (function(module, exports) {
 
 
5523
 
5524
+ (function() { module.exports = this["wc"]["number"]; }());
 
 
5525
 
5526
+ /***/ }),
 
 
 
 
 
 
 
 
5527
 
5528
+ /***/ 15:
5529
+ /***/ (function(module, exports, __webpack_require__) {
 
 
 
 
 
 
 
5530
 
5531
+ var _typeof = __webpack_require__(31);
 
 
5532
 
5533
+ var assertThisInitialized = __webpack_require__(9);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5534
 
5535
+ function _possibleConstructorReturn(self, call) {
5536
+ if (call && (_typeof(call) === "object" || typeof call === "function")) {
5537
+ return call;
5538
+ }
 
 
 
 
 
 
5539
 
5540
+ return assertThisInitialized(self);
5541
+ }
 
 
 
 
5542
 
5543
+ module.exports = _possibleConstructorReturn;
 
 
5544
 
5545
+ /***/ }),
 
 
 
 
5546
 
5547
+ /***/ 152:
5548
+ /***/ (function(module, exports, __webpack_require__) {
 
 
 
5549
 
5550
+ "use strict";
5551
+ /** @license React v16.13.1
5552
+ * react-is.production.min.js
5553
+ *
5554
+ * Copyright (c) Facebook, Inc. and its affiliates.
5555
+ *
5556
+ * This source code is licensed under the MIT license found in the
5557
+ * LICENSE file in the root directory of this source tree.
5558
+ */
5559
 
5560
+ var b="function"===typeof Symbol&&Symbol.for,c=b?Symbol.for("react.element"):60103,d=b?Symbol.for("react.portal"):60106,e=b?Symbol.for("react.fragment"):60107,f=b?Symbol.for("react.strict_mode"):60108,g=b?Symbol.for("react.profiler"):60114,h=b?Symbol.for("react.provider"):60109,k=b?Symbol.for("react.context"):60110,l=b?Symbol.for("react.async_mode"):60111,m=b?Symbol.for("react.concurrent_mode"):60111,n=b?Symbol.for("react.forward_ref"):60112,p=b?Symbol.for("react.suspense"):60113,q=b?
5561
+ Symbol.for("react.suspense_list"):60120,r=b?Symbol.for("react.memo"):60115,t=b?Symbol.for("react.lazy"):60116,v=b?Symbol.for("react.block"):60121,w=b?Symbol.for("react.fundamental"):60117,x=b?Symbol.for("react.responder"):60118,y=b?Symbol.for("react.scope"):60119;
5562
+ function z(a){if("object"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type,a){case l:case m:case e:case g:case f:case p:return a;default:switch(a=a&&a.$$typeof,a){case k:case n:case t:case r:case h:return a;default:return u}}case d:return u}}}function A(a){return z(a)===m}exports.AsyncMode=l;exports.ConcurrentMode=m;exports.ContextConsumer=k;exports.ContextProvider=h;exports.Element=c;exports.ForwardRef=n;exports.Fragment=e;exports.Lazy=t;exports.Memo=r;exports.Portal=d;
5563
+ exports.Profiler=g;exports.StrictMode=f;exports.Suspense=p;exports.isAsyncMode=function(a){return A(a)||z(a)===l};exports.isConcurrentMode=A;exports.isContextConsumer=function(a){return z(a)===k};exports.isContextProvider=function(a){return z(a)===h};exports.isElement=function(a){return"object"===typeof a&&null!==a&&a.$$typeof===c};exports.isForwardRef=function(a){return z(a)===n};exports.isFragment=function(a){return z(a)===e};exports.isLazy=function(a){return z(a)===t};
5564
+ exports.isMemo=function(a){return z(a)===r};exports.isPortal=function(a){return z(a)===d};exports.isProfiler=function(a){return z(a)===g};exports.isStrictMode=function(a){return z(a)===f};exports.isSuspense=function(a){return z(a)===p};
5565
+ exports.isValidElementType=function(a){return"string"===typeof a||"function"===typeof a||a===e||a===m||a===g||a===f||a===p||a===q||"object"===typeof a&&null!==a&&(a.$$typeof===t||a.$$typeof===r||a.$$typeof===h||a.$$typeof===k||a.$$typeof===n||a.$$typeof===w||a.$$typeof===x||a.$$typeof===y||a.$$typeof===v)};exports.typeOf=z;
 
 
 
 
5566
 
 
 
5567
 
5568
+ /***/ }),
 
 
 
5569
 
5570
+ /***/ 16:
5571
+ /***/ (function(module, exports) {
 
 
5572
 
5573
+ (function() { module.exports = this["moment"]; }());
 
 
 
 
 
 
 
5574
 
5575
+ /***/ }),
 
 
 
 
 
 
 
 
 
 
 
5576
 
5577
+ /***/ 17:
5578
+ /***/ (function(module, exports) {
5579
 
5580
+ (function() { module.exports = this["wp"]["dataControls"]; }());
 
 
 
 
 
 
 
 
 
 
 
 
 
5581
 
5582
+ /***/ }),
 
 
5583
 
5584
+ /***/ 18:
5585
+ /***/ (function(module, exports, __webpack_require__) {
5586
 
5587
+ var arrayWithHoles = __webpack_require__(60);
 
 
 
 
 
 
 
5588
 
5589
+ var iterableToArrayLimit = __webpack_require__(61);
 
 
 
 
 
 
5590
 
5591
+ var unsupportedIterableToArray = __webpack_require__(40);
 
 
 
 
 
 
5592
 
5593
+ var nonIterableRest = __webpack_require__(62);
 
 
 
 
 
 
 
 
5594
 
5595
+ function _slicedToArray(arr, i) {
5596
+ return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest();
5597
+ }
 
5598
 
5599
+ module.exports = _slicedToArray;
 
5600
 
5601
+ /***/ }),
 
 
 
5602
 
5603
+ /***/ 182:
5604
+ /***/ (function(module, exports, __webpack_require__) {
5605
 
5606
+ "use strict";
 
 
 
5607
 
 
 
 
 
 
5608
 
5609
+ Object.defineProperty(exports, '__esModule', { value: true });
 
 
 
 
 
 
 
 
 
 
 
 
5610
 
5611
+ function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
5612
 
5613
+ var _extends = _interopDefault(__webpack_require__(24));
5614
+ var _objectWithoutPropertiesLoose = _interopDefault(__webpack_require__(97));
5615
+ var React = __webpack_require__(10);
5616
+ var React__default = _interopDefault(React);
5617
+ var _inheritsLoose = _interopDefault(__webpack_require__(305));
5618
+ var _assertThisInitialized = _interopDefault(__webpack_require__(9));
 
 
 
 
 
 
 
 
 
5619
 
5620
+ var is = {
5621
+ arr: Array.isArray,
5622
+ obj: function obj(a) {
5623
+ return Object.prototype.toString.call(a) === '[object Object]';
5624
+ },
5625
+ fun: function fun(a) {
5626
+ return typeof a === 'function';
5627
+ },
5628
+ str: function str(a) {
5629
+ return typeof a === 'string';
5630
+ },
5631
+ num: function num(a) {
5632
+ return typeof a === 'number';
5633
+ },
5634
+ und: function und(a) {
5635
+ return a === void 0;
5636
+ },
5637
+ nul: function nul(a) {
5638
+ return a === null;
5639
+ },
5640
+ set: function set(a) {
5641
+ return a instanceof Set;
5642
+ },
5643
+ map: function map(a) {
5644
+ return a instanceof Map;
5645
+ },
5646
+ equ: function equ(a, b) {
5647
+ if (typeof a !== typeof b) return false;
5648
+ if (is.str(a) || is.num(a)) return a === b;
5649
+ if (is.obj(a) && is.obj(b) && Object.keys(a).length + Object.keys(b).length === 0) return true;
5650
+ var i;
5651
 
5652
+ for (i in a) {
5653
+ if (!(i in b)) return false;
5654
+ }
5655
+
5656
+ for (i in b) {
5657
+ if (a[i] !== b[i]) return false;
5658
+ }
5659
+
5660
+ return is.und(i) ? a === b : true;
5661
+ }
5662
  };
5663
+ function merge(target, lowercase) {
5664
+ if (lowercase === void 0) {
5665
+ lowercase = true;
5666
+ }
5667
 
5668
+ return function (object) {
5669
+ return (is.arr(object) ? object : Object.keys(object)).reduce(function (acc, element) {
5670
+ var key = lowercase ? element[0].toLowerCase() + element.substring(1) : element;
5671
+ acc[key] = target(key);
5672
+ return acc;
5673
+ }, target);
5674
+ };
5675
+ }
5676
+ function useForceUpdate() {
5677
+ var _useState = React.useState(false),
5678
+ f = _useState[1];
5679
 
5680
+ var forceUpdate = React.useCallback(function () {
5681
+ return f(function (v) {
5682
+ return !v;
5683
+ });
5684
+ }, []);
5685
+ return forceUpdate;
5686
+ }
5687
+ function withDefault(value, defaultValue) {
5688
+ return is.und(value) || is.nul(value) ? defaultValue : value;
5689
+ }
5690
+ function toArray(a) {
5691
+ return !is.und(a) ? is.arr(a) ? a : [a] : [];
5692
+ }
5693
+ function callProp(obj) {
5694
+ for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
5695
+ args[_key - 1] = arguments[_key];
5696
+ }
5697
 
5698
+ return is.fun(obj) ? obj.apply(void 0, args) : obj;
5699
+ }
 
5700
 
5701
+ function getForwardProps(props) {
5702
+ var to = props.to,
5703
+ from = props.from,
5704
+ config = props.config,
5705
+ onStart = props.onStart,
5706
+ onRest = props.onRest,
5707
+ onFrame = props.onFrame,
5708
+ children = props.children,
5709
+ reset = props.reset,
5710
+ reverse = props.reverse,
5711
+ force = props.force,
5712
+ immediate = props.immediate,
5713
+ delay = props.delay,
5714
+ attach = props.attach,
5715
+ destroyed = props.destroyed,
5716
+ interpolateTo = props.interpolateTo,
5717
+ ref = props.ref,
5718
+ lazy = props.lazy,
5719
+ forward = _objectWithoutPropertiesLoose(props, ["to", "from", "config", "onStart", "onRest", "onFrame", "children", "reset", "reverse", "force", "immediate", "delay", "attach", "destroyed", "interpolateTo", "ref", "lazy"]);
5720
 
5721
+ return forward;
5722
+ }
5723
+
5724
+ function interpolateTo(props) {
5725
+ var forward = getForwardProps(props);
5726
+ if (is.und(forward)) return _extends({
5727
+ to: forward
5728
+ }, props);
5729
+ var rest = Object.keys(props).reduce(function (a, k) {
5730
+ var _extends2;
5731
+
5732
+ return !is.und(forward[k]) ? a : _extends({}, a, (_extends2 = {}, _extends2[k] = props[k], _extends2));
5733
+ }, {});
5734
  return _extends({
5735
+ to: forward
 
5736
  }, rest);
5737
+ }
5738
+ function handleRef(ref, forward) {
5739
+ if (forward) {
5740
+ // If it's a function, assume it's a ref callback
5741
+ if (is.fun(forward)) forward(ref);else if (is.obj(forward)) {
5742
+ forward.current = ref;
 
5743
  }
5744
+ }
5745
 
5746
+ return ref;
5747
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5748
 
5749
+ var Animated =
5750
+ /*#__PURE__*/
5751
+ function () {
5752
+ function Animated() {
5753
+ this.payload = void 0;
5754
+ this.children = [];
5755
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5756
 
5757
+ var _proto = Animated.prototype;
 
 
 
 
 
5758
 
5759
+ _proto.getAnimatedValue = function getAnimatedValue() {
5760
+ return this.getValue();
5761
+ };
5762
 
5763
+ _proto.getPayload = function getPayload() {
5764
+ return this.payload || this;
5765
+ };
5766
 
5767
+ _proto.attach = function attach() {};
 
 
 
 
 
 
 
 
 
 
5768
 
5769
+ _proto.detach = function detach() {};
5770
 
5771
+ _proto.getChildren = function getChildren() {
5772
+ return this.children;
5773
+ };
 
 
 
 
 
 
 
 
 
5774
 
5775
+ _proto.addChild = function addChild(child) {
5776
+ if (this.children.length === 0) this.attach();
5777
+ this.children.push(child);
5778
+ };
5779
 
5780
+ _proto.removeChild = function removeChild(child) {
5781
+ var index = this.children.indexOf(child);
5782
+ this.children.splice(index, 1);
5783
+ if (this.children.length === 0) this.detach();
5784
+ };
 
 
 
 
 
 
 
 
 
 
 
 
5785
 
5786
+ return Animated;
5787
+ }();
5788
+ var AnimatedArray =
5789
+ /*#__PURE__*/
5790
+ function (_Animated) {
5791
+ _inheritsLoose(AnimatedArray, _Animated);
5792
 
5793
+ function AnimatedArray() {
5794
+ var _this;
 
 
5795
 
5796
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
5797
+ args[_key] = arguments[_key];
5798
+ }
5799
+
5800
+ _this = _Animated.call.apply(_Animated, [this].concat(args)) || this;
5801
+ _this.payload = [];
5802
+
5803
+ _this.attach = function () {
5804
+ return _this.payload.forEach(function (p) {
5805
+ return p instanceof Animated && p.addChild(_assertThisInitialized(_this));
5806
  });
 
 
 
 
 
 
 
 
 
 
 
 
5807
  };
 
 
5808
 
5809
+ _this.detach = function () {
5810
+ return _this.payload.forEach(function (p) {
5811
+ return p instanceof Animated && p.removeChild(_assertThisInitialized(_this));
5812
+ });
5813
+ };
5814
 
5815
+ return _this;
5816
+ }
 
 
 
 
 
 
 
5817
 
5818
+ return AnimatedArray;
5819
+ }(Animated);
5820
+ var AnimatedObject =
5821
+ /*#__PURE__*/
5822
+ function (_Animated2) {
5823
+ _inheritsLoose(AnimatedObject, _Animated2);
5824
 
5825
+ function AnimatedObject() {
5826
+ var _this2;
 
5827
 
5828
+ for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
5829
+ args[_key3] = arguments[_key3];
 
 
5830
  }
 
5831
 
5832
+ _this2 = _Animated2.call.apply(_Animated2, [this].concat(args)) || this;
5833
+ _this2.payload = {};
5834
 
5835
+ _this2.attach = function () {
5836
+ return Object.values(_this2.payload).forEach(function (s) {
5837
+ return s instanceof Animated && s.addChild(_assertThisInitialized(_this2));
5838
+ });
5839
+ };
5840
 
5841
+ _this2.detach = function () {
5842
+ return Object.values(_this2.payload).forEach(function (s) {
5843
+ return s instanceof Animated && s.removeChild(_assertThisInitialized(_this2));
5844
+ });
5845
+ };
5846
+
5847
+ return _this2;
5848
  }
5849
 
5850
+ var _proto2 = AnimatedObject.prototype;
 
5851
 
5852
+ _proto2.getValue = function getValue(animated) {
5853
+ if (animated === void 0) {
5854
+ animated = false;
5855
+ }
5856
 
5857
+ var payload = {};
 
 
 
 
 
 
 
 
 
 
 
 
 
5858
 
5859
+ for (var _key4 in this.payload) {
5860
+ var value = this.payload[_key4];
5861
+ if (animated && !(value instanceof Animated)) continue;
5862
+ payload[_key4] = value instanceof Animated ? value[animated ? 'getAnimatedValue' : 'getValue']() : value;
5863
+ }
5864
 
5865
+ return payload;
5866
+ };
5867
 
5868
+ _proto2.getAnimatedValue = function getAnimatedValue() {
5869
+ return this.getValue(true);
5870
+ };
5871
 
5872
+ return AnimatedObject;
5873
+ }(Animated);
 
 
 
 
 
 
 
 
 
 
 
 
 
5874
 
5875
+ var applyAnimatedValues;
5876
+ function injectApplyAnimatedValues(fn, transform) {
5877
+ applyAnimatedValues = {
5878
+ fn: fn,
5879
+ transform: transform
5880
+ };
5881
+ }
5882
+ var colorNames;
5883
+ function injectColorNames(names) {
5884
+ colorNames = names;
5885
+ }
5886
+ var requestFrame = function requestFrame(cb) {
5887
+ return typeof window !== 'undefined' ? window.requestAnimationFrame(cb) : -1;
5888
+ };
5889
+ var cancelFrame = function cancelFrame(id) {
5890
+ typeof window !== 'undefined' && window.cancelAnimationFrame(id);
5891
+ };
5892
+ function injectFrame(raf, caf) {
5893
+ requestFrame = raf;
5894
+ cancelFrame = caf;
5895
+ }
5896
+ var interpolation;
5897
+ function injectStringInterpolator(fn) {
5898
+ interpolation = fn;
5899
+ }
5900
+ var now = function now() {
5901
+ return Date.now();
5902
+ };
5903
+ function injectNow(nowFn) {
5904
+ now = nowFn;
5905
+ }
5906
+ var defaultElement;
5907
+ function injectDefaultElement(el) {
5908
+ defaultElement = el;
5909
+ }
5910
+ var animatedApi = function animatedApi(node) {
5911
+ return node.current;
5912
+ };
5913
+ function injectAnimatedApi(fn) {
5914
+ animatedApi = fn;
5915
+ }
5916
+ var createAnimatedStyle;
5917
+ function injectCreateAnimatedStyle(factory) {
5918
+ createAnimatedStyle = factory;
5919
+ }
5920
+ var manualFrameloop;
5921
+ function injectManualFrameloop(callback) {
5922
+ manualFrameloop = callback;
5923
+ }
5924
 
5925
+ var Globals = /*#__PURE__*/Object.freeze({
5926
+ get applyAnimatedValues () { return applyAnimatedValues; },
5927
+ injectApplyAnimatedValues: injectApplyAnimatedValues,
5928
+ get colorNames () { return colorNames; },
5929
+ injectColorNames: injectColorNames,
5930
+ get requestFrame () { return requestFrame; },
5931
+ get cancelFrame () { return cancelFrame; },
5932
+ injectFrame: injectFrame,
5933
+ get interpolation () { return interpolation; },
5934
+ injectStringInterpolator: injectStringInterpolator,
5935
+ get now () { return now; },
5936
+ injectNow: injectNow,
5937
+ get defaultElement () { return defaultElement; },
5938
+ injectDefaultElement: injectDefaultElement,
5939
+ get animatedApi () { return animatedApi; },
5940
+ injectAnimatedApi: injectAnimatedApi,
5941
+ get createAnimatedStyle () { return createAnimatedStyle; },
5942
+ injectCreateAnimatedStyle: injectCreateAnimatedStyle,
5943
+ get manualFrameloop () { return manualFrameloop; },
5944
+ injectManualFrameloop: injectManualFrameloop
5945
+ });
 
 
 
 
 
5946
 
5947
+ /**
5948
+ * Wraps the `style` property with `AnimatedStyle`.
5949
+ */
 
5950
 
5951
+ var AnimatedProps =
5952
+ /*#__PURE__*/
5953
+ function (_AnimatedObject) {
5954
+ _inheritsLoose(AnimatedProps, _AnimatedObject);
 
 
 
 
 
 
 
 
 
 
 
5955
 
5956
+ function AnimatedProps(props, callback) {
5957
+ var _this;
5958
+
5959
+ _this = _AnimatedObject.call(this) || this;
5960
+ _this.update = void 0;
5961
+ _this.payload = !props.style ? props : _extends({}, props, {
5962
+ style: createAnimatedStyle(props.style)
5963
+ });
5964
+ _this.update = callback;
5965
+
5966
+ _this.attach();
5967
+
5968
+ return _this;
 
 
 
 
5969
  }
5970
 
5971
+ return AnimatedProps;
5972
+ }(AnimatedObject);
 
 
5973
 
5974
+ var isFunctionComponent = function isFunctionComponent(val) {
5975
+ return is.fun(val) && !(val.prototype instanceof React__default.Component);
5976
+ };
 
5977
 
5978
+ var createAnimatedComponent = function createAnimatedComponent(Component) {
5979
+ var AnimatedComponent = React.forwardRef(function (props, ref) {
5980
+ var forceUpdate = useForceUpdate();
5981
+ var mounted = React.useRef(true);
5982
+ var propsAnimated = React.useRef(null);
5983
+ var node = React.useRef(null);
5984
+ var attachProps = React.useCallback(function (props) {
5985
+ var oldPropsAnimated = propsAnimated.current;
5986
 
5987
+ var callback = function callback() {
5988
+ var didUpdate = false;
 
5989
 
5990
+ if (node.current) {
5991
+ didUpdate = applyAnimatedValues.fn(node.current, propsAnimated.current.getAnimatedValue());
5992
+ }
5993
+
5994
+ if (!node.current || didUpdate === false) {
5995
+ // If no referenced node has been found, or the update target didn't have a
5996
+ // native-responder, then forceUpdate the animation ...
5997
+ forceUpdate();
5998
+ }
5999
+ };
6000
+
6001
+ propsAnimated.current = new AnimatedProps(props, callback);
6002
+ oldPropsAnimated && oldPropsAnimated.detach();
6003
+ }, []);
6004
+ React.useEffect(function () {
6005
+ return function () {
6006
+ mounted.current = false;
6007
+ propsAnimated.current && propsAnimated.current.detach();
6008
+ };
6009
+ }, []);
6010
+ React.useImperativeHandle(ref, function () {
6011
+ return animatedApi(node, mounted, forceUpdate);
6012
+ });
6013
+ attachProps(props);
6014
+
6015
+ var _getValue = propsAnimated.current.getValue(),
6016
+ scrollTop = _getValue.scrollTop,
6017
+ scrollLeft = _getValue.scrollLeft,
6018
+ animatedProps = _objectWithoutPropertiesLoose(_getValue, ["scrollTop", "scrollLeft"]); // Functions cannot have refs, see:
6019
+ // See: https://github.com/react-spring/react-spring/issues/569
6020
+
6021
+
6022
+ var refFn = isFunctionComponent(Component) ? undefined : function (childRef) {
6023
+ return node.current = handleRef(childRef, ref);
6024
+ };
6025
+ return React__default.createElement(Component, _extends({}, animatedProps, {
6026
+ ref: refFn
6027
+ }));
6028
  });
6029
+ return AnimatedComponent;
6030
+ };
6031
 
6032
+ var active = false;
6033
+ var controllers = new Set();
 
 
6034
 
6035
+ var update = function update() {
6036
+ if (!active) return false;
6037
+ var time = now();
6038
 
6039
+ for (var _iterator = controllers, _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _iterator[Symbol.iterator]();;) {
6040
+ var _ref;
6041
+
6042
+ if (_isArray) {
6043
+ if (_i >= _iterator.length) break;
6044
+ _ref = _iterator[_i++];
6045
+ } else {
6046
+ _i = _iterator.next();
6047
+ if (_i.done) break;
6048
+ _ref = _i.value;
6049
  }
6050
 
6051
+ var controller = _ref;
6052
+ var isActive = false;
6053
 
6054
+ for (var configIdx = 0; configIdx < controller.configs.length; configIdx++) {
6055
+ var config = controller.configs[configIdx];
6056
+ var endOfAnimation = void 0,
6057
+ lastTime = void 0;
6058
 
6059
+ for (var valIdx = 0; valIdx < config.animatedValues.length; valIdx++) {
6060
+ var animation = config.animatedValues[valIdx]; // If an animation is done, skip, until all of them conclude
 
6061
 
6062
+ if (animation.done) continue;
6063
+ var from = config.fromValues[valIdx];
6064
+ var to = config.toValues[valIdx];
6065
+ var position = animation.lastPosition;
6066
+ var isAnimated = to instanceof Animated;
6067
+ var velocity = Array.isArray(config.initialVelocity) ? config.initialVelocity[valIdx] : config.initialVelocity;
6068
+ if (isAnimated) to = to.getValue(); // Conclude animation if it's either immediate, or from-values match end-state
6069
 
6070
+ if (config.immediate) {
6071
+ animation.setValue(to);
6072
+ animation.done = true;
6073
+ continue;
6074
+ } // Break animation when string values are involved
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6075
 
 
 
 
6076
 
6077
+ if (typeof from === 'string' || typeof to === 'string') {
6078
+ animation.setValue(to);
6079
+ animation.done = true;
6080
+ continue;
6081
+ }
6082
 
6083
+ if (config.duration !== void 0) {
6084
+ /** Duration easing */
6085
+ position = from + config.easing((time - animation.startTime) / config.duration) * (to - from);
6086
+ endOfAnimation = time >= animation.startTime + config.duration;
6087
+ } else if (config.decay) {
6088
+ /** Decay easing */
6089
+ position = from + velocity / (1 - 0.998) * (1 - Math.exp(-(1 - 0.998) * (time - animation.startTime)));
6090
+ endOfAnimation = Math.abs(animation.lastPosition - position) < 0.1;
6091
+ if (endOfAnimation) to = position;
6092
+ } else {
6093
+ /** Spring easing */
6094
+ lastTime = animation.lastTime !== void 0 ? animation.lastTime : time;
6095
+ velocity = animation.lastVelocity !== void 0 ? animation.lastVelocity : config.initialVelocity; // If we lost a lot of frames just jump to the end.
6096
 
6097
+ if (time > lastTime + 64) lastTime = time; // http://gafferongames.com/game-physics/fix-your-timestep/
 
 
 
 
 
 
 
6098
 
6099
+ var numSteps = Math.floor(time - lastTime);
 
6100
 
6101
+ for (var i = 0; i < numSteps; ++i) {
6102
+ var force = -config.tension * (position - to);
6103
+ var damping = -config.friction * velocity;
6104
+ var acceleration = (force + damping) / config.mass;
6105
+ velocity = velocity + acceleration * 1 / 1000;
6106
+ position = position + velocity * 1 / 1000;
6107
+ } // Conditions for stopping the spring animation
6108
 
 
 
6109
 
6110
+ var isOvershooting = config.clamp && config.tension !== 0 ? from < to ? position > to : position < to : false;
6111
+ var isVelocity = Math.abs(velocity) <= config.precision;
6112
+ var isDisplacement = config.tension !== 0 ? Math.abs(to - position) <= config.precision : true;
6113
+ endOfAnimation = isOvershooting || isVelocity && isDisplacement;
6114
+ animation.lastVelocity = velocity;
6115
+ animation.lastTime = time;
6116
+ } // Trails aren't done until their parents conclude
6117
 
 
 
6118
 
6119
+ if (isAnimated && !config.toValues[valIdx].done) endOfAnimation = false;
 
 
6120
 
6121
+ if (endOfAnimation) {
6122
+ // Ensure that we end up with a round value
6123
+ if (animation.value !== to) position = to;
6124
+ animation.done = true;
6125
+ } else isActive = true;
6126
 
6127
+ animation.setValue(position);
6128
+ animation.lastPosition = position;
6129
+ } // Keep track of updated values only when necessary
 
 
 
 
 
 
 
 
 
 
6130
 
 
 
 
6131
 
6132
+ if (controller.props.onFrame) controller.values[config.name] = config.interpolation.getValue();
6133
+ } // Update callbacks in the end of the frame
6134
 
 
 
6135
 
6136
+ if (controller.props.onFrame) controller.props.onFrame(controller.values); // Either call onEnd or next frame
 
 
 
 
 
 
6137
 
6138
+ if (!isActive) {
6139
+ controllers.delete(controller);
6140
+ controller.stop(true);
6141
+ }
6142
+ } // Loop over as long as there are controllers ...
 
 
6143
 
 
 
 
 
 
 
 
6144
 
6145
+ if (controllers.size) {
6146
+ if (manualFrameloop) manualFrameloop();else requestFrame(update);
6147
+ } else {
6148
+ active = false;
6149
+ }
6150
 
6151
+ return active;
6152
+ };
6153
 
6154
+ var start = function start(controller) {
6155
+ if (!controllers.has(controller)) controllers.add(controller);
 
 
 
 
 
6156
 
6157
+ if (!active) {
6158
+ active = true;
6159
+ if (manualFrameloop) requestFrame(manualFrameloop);else requestFrame(update);
 
 
 
6160
  }
6161
+ };
6162
 
6163
+ var stop = function stop(controller) {
6164
+ if (controllers.has(controller)) controllers.delete(controller);
6165
+ };
6166
+
6167
+ function createInterpolator(range, output, extrapolate) {
6168
+ if (typeof range === 'function') {
6169
+ return range;
6170
  }
6171
 
6172
+ if (Array.isArray(range)) {
6173
+ return createInterpolator({
6174
+ range: range,
6175
+ output: output,
6176
+ extrapolate: extrapolate
6177
+ });
6178
+ }
6179
 
6180
+ if (interpolation && typeof range.output[0] === 'string') {
6181
+ return interpolation(range);
6182
+ }
 
 
 
 
 
6183
 
6184
+ var config = range;
6185
+ var outputRange = config.output;
6186
+ var inputRange = config.range || [0, 1];
6187
+ var extrapolateLeft = config.extrapolateLeft || config.extrapolate || 'extend';
6188
+ var extrapolateRight = config.extrapolateRight || config.extrapolate || 'extend';
 
 
 
6189
 
6190
+ var easing = config.easing || function (t) {
6191
+ return t;
6192
+ };
 
 
 
6193
 
6194
+ return function (input) {
6195
+ var range = findRange(input, inputRange);
6196
+ return interpolate(input, inputRange[range], inputRange[range + 1], outputRange[range], outputRange[range + 1], easing, extrapolateLeft, extrapolateRight, config.map);
6197
+ };
6198
  }
6199
 
6200
+ function interpolate(input, inputMin, inputMax, outputMin, outputMax, easing, extrapolateLeft, extrapolateRight, map) {
6201
+ var result = map ? map(input) : input; // Extrapolate
 
 
 
 
6202
 
6203
+ if (result < inputMin) {
6204
+ if (extrapolateLeft === 'identity') return result;else if (extrapolateLeft === 'clamp') result = inputMin;
6205
+ }
6206
+
6207
+ if (result > inputMax) {
6208
+ if (extrapolateRight === 'identity') return result;else if (extrapolateRight === 'clamp') result = inputMax;
6209
+ }
6210
+
6211
+ if (outputMin === outputMax) return outputMin;
6212
+ if (inputMin === inputMax) return input <= inputMin ? outputMin : outputMax; // Input Range
6213
+
6214
+ if (inputMin === -Infinity) result = -result;else if (inputMax === Infinity) result = result - inputMin;else result = (result - inputMin) / (inputMax - inputMin); // Easing
6215
+
6216
+ result = easing(result); // Output Range
6217
+
6218
+ if (outputMin === -Infinity) result = -result;else if (outputMax === Infinity) result = result + outputMin;else result = result * (outputMax - outputMin) + outputMin;
6219
+ return result;
6220
  }
6221
 
6222
+ function findRange(input, inputRange) {
6223
+ for (var i = 1; i < inputRange.length - 1; ++i) {
6224
+ if (inputRange[i] >= input) break;
6225
+ }
 
 
 
 
 
 
 
6226
 
6227
+ return i - 1;
6228
+ }
6229
 
6230
+ var AnimatedInterpolation =
6231
+ /*#__PURE__*/
6232
+ function (_AnimatedArray) {
6233
+ _inheritsLoose(AnimatedInterpolation, _AnimatedArray);
6234
 
6235
+ function AnimatedInterpolation(parents, range, output, extrapolate) {
6236
+ var _this;
6237
 
6238
+ _this = _AnimatedArray.call(this) || this;
6239
+ _this.calc = void 0;
6240
+ _this.payload = parents instanceof AnimatedArray && !(parents instanceof AnimatedInterpolation) ? parents.getPayload() : Array.isArray(parents) ? parents : [parents];
6241
+ _this.calc = createInterpolator(range, output, extrapolate);
6242
+ return _this;
6243
+ }
 
 
 
 
6244
 
6245
+ var _proto = AnimatedInterpolation.prototype;
6246
+
6247
+ _proto.getValue = function getValue() {
6248
+ return this.calc.apply(this, this.payload.map(function (value) {
6249
+ return value.getValue();
 
 
 
 
 
 
 
 
 
 
 
 
 
6250
  }));
 
 
 
 
 
 
 
 
 
 
 
 
 
6251
  };
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6252
 
6253
+ _proto.updateConfig = function updateConfig(range, output, extrapolate) {
6254
+ this.calc = createInterpolator(range, output, extrapolate);
6255
+ };
6256
 
6257
+ _proto.interpolate = function interpolate(range, output, extrapolate) {
6258
+ return new AnimatedInterpolation(this, range, output, extrapolate);
6259
+ };
 
 
 
 
6260
 
6261
+ return AnimatedInterpolation;
6262
+ }(AnimatedArray);
 
6263
 
6264
+ var interpolate$1 = function interpolate(parents, range, output) {
6265
+ return parents && new AnimatedInterpolation(parents, range, output);
6266
+ };
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6267
 
6268
+ var config = {
6269
+ default: {
6270
+ tension: 170,
6271
+ friction: 26
6272
+ },
6273
+ gentle: {
6274
+ tension: 120,
6275
+ friction: 14
6276
+ },
6277
+ wobbly: {
6278
+ tension: 180,
6279
+ friction: 12
6280
+ },
6281
+ stiff: {
6282
+ tension: 210,
6283
+ friction: 20
6284
+ },
6285
+ slow: {
6286
+ tension: 280,
6287
+ friction: 60
6288
+ },
6289
+ molasses: {
6290
+ tension: 280,
6291
+ friction: 120
6292
+ }
6293
+ };
6294
 
6295
+ /** API
6296
+ * useChain(references, timeSteps, timeFrame)
6297
+ */
 
 
 
 
6298
 
6299
+ function useChain(refs, timeSteps, timeFrame) {
6300
+ if (timeFrame === void 0) {
6301
+ timeFrame = 1000;
6302
+ }
 
6303
 
6304
+ var previous = React.useRef();
6305
+ React.useEffect(function () {
6306
+ if (is.equ(refs, previous.current)) refs.forEach(function (_ref) {
6307
+ var current = _ref.current;
6308
+ return current && current.start();
6309
+ });else if (timeSteps) {
6310
+ refs.forEach(function (_ref2, index) {
6311
+ var current = _ref2.current;
6312
 
6313
+ if (current) {
6314
+ var ctrls = current.controllers;
 
 
 
 
 
 
 
 
 
 
6315
 
6316
+ if (ctrls.length) {
6317
+ var t = timeFrame * timeSteps[index];
6318
+ ctrls.forEach(function (ctrl) {
6319
+ ctrl.queue = ctrl.queue.map(function (e) {
6320
+ return _extends({}, e, {
6321
+ delay: e.delay + t
6322
+ });
6323
+ });
6324
+ ctrl.start();
6325
+ });
6326
+ }
6327
+ }
6328
+ });
6329
+ } else refs.reduce(function (q, _ref3, rI) {
6330
+ var current = _ref3.current;
6331
+ return q = q.then(function () {
6332
+ return current.start();
6333
+ });
6334
+ }, Promise.resolve());
6335
+ previous.current = refs;
6336
+ });
6337
+ }
6338
 
6339
+ /**
6340
+ * Animated works by building a directed acyclic graph of dependencies
6341
+ * transparently when you render your Animated components.
6342
+ *
6343
+ * new Animated.Value(0)
6344
+ * .interpolate() .interpolate() new Animated.Value(1)
6345
+ * opacity translateY scale
6346
+ * style transform
6347
+ * View#234 style
6348
+ * View#123
6349
+ *
6350
+ * A) Top Down phase
6351
+ * When an AnimatedValue is updated, we recursively go down through this
6352
+ * graph in order to find leaf nodes: the views that we flag as needing
6353
+ * an update.
6354
+ *
6355
+ * B) Bottom Up phase
6356
+ * When a view is flagged as needing an update, we recursively go back up
6357
+ * in order to build the new value that it needs. The reason why we need
6358
+ * this two-phases process is to deal with composite props such as
6359
+ * transform which can receive values from multiple parents.
6360
+ */
6361
+ function addAnimatedStyles(node, styles) {
6362
+ if ('update' in node) {
6363
+ styles.add(node);
6364
+ } else {
6365
+ node.getChildren().forEach(function (child) {
6366
+ return addAnimatedStyles(child, styles);
6367
+ });
6368
+ }
6369
+ }
6370
 
6371
+ var AnimatedValue =
6372
+ /*#__PURE__*/
6373
+ function (_Animated) {
6374
+ _inheritsLoose(AnimatedValue, _Animated);
6375
 
6376
+ function AnimatedValue(_value) {
6377
+ var _this;
 
 
 
 
6378
 
6379
+ _this = _Animated.call(this) || this;
6380
+ _this.animatedStyles = new Set();
6381
+ _this.value = void 0;
6382
+ _this.startPosition = void 0;
6383
+ _this.lastPosition = void 0;
6384
+ _this.lastVelocity = void 0;
6385
+ _this.startTime = void 0;
6386
+ _this.lastTime = void 0;
6387
+ _this.done = false;
6388
 
6389
+ _this.setValue = function (value, flush) {
6390
+ if (flush === void 0) {
6391
+ flush = true;
6392
+ }
6393
 
6394
+ _this.value = value;
6395
+ if (flush) _this.flush();
6396
+ };
6397
 
6398
+ _this.value = _value;
6399
+ _this.startPosition = _value;
6400
+ _this.lastPosition = _value;
6401
+ return _this;
6402
+ }
6403
 
6404
+ var _proto = AnimatedValue.prototype;
 
6405
 
6406
+ _proto.flush = function flush() {
6407
+ if (this.animatedStyles.size === 0) {
6408
+ addAnimatedStyles(this, this.animatedStyles);
6409
+ }
6410
 
6411
+ this.animatedStyles.forEach(function (animatedStyle) {
6412
+ return animatedStyle.update();
6413
+ });
6414
+ };
 
 
 
6415
 
6416
+ _proto.clearStyles = function clearStyles() {
6417
+ this.animatedStyles.clear();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6418
  };
 
6419
 
6420
+ _proto.getValue = function getValue() {
6421
+ return this.value;
6422
+ };
6423
 
6424
+ _proto.interpolate = function interpolate(range, output, extrapolate) {
6425
+ return new AnimatedInterpolation(this, range, output, extrapolate);
6426
+ };
6427
 
6428
+ return AnimatedValue;
6429
+ }(Animated);
6430
 
6431
+ var AnimatedValueArray =
6432
+ /*#__PURE__*/
6433
+ function (_AnimatedArray) {
6434
+ _inheritsLoose(AnimatedValueArray, _AnimatedArray);
6435
 
6436
+ function AnimatedValueArray(values) {
6437
+ var _this;
6438
 
6439
+ _this = _AnimatedArray.call(this) || this;
6440
+ _this.payload = values.map(function (n) {
6441
+ return new AnimatedValue(n);
6442
+ });
6443
+ return _this;
6444
+ }
6445
+
6446
+ var _proto = AnimatedValueArray.prototype;
6447
+
6448
+ _proto.setValue = function setValue(value, flush) {
6449
+ var _this2 = this;
6450
+
6451
+ if (flush === void 0) {
6452
+ flush = true;
6453
  }
6454
 
6455
+ if (Array.isArray(value)) {
6456
+ if (value.length === this.payload.length) {
6457
+ value.forEach(function (v, i) {
6458
+ return _this2.payload[i].setValue(v, flush);
6459
+ });
6460
+ }
6461
+ } else {
6462
+ this.payload.forEach(function (p) {
6463
+ return p.setValue(value, flush);
6464
+ });
6465
+ }
6466
+ };
6467
 
6468
+ _proto.getValue = function getValue() {
6469
+ return this.payload.map(function (v) {
6470
+ return v.getValue();
6471
+ });
6472
+ };
6473
 
6474
+ _proto.interpolate = function interpolate(range, output) {
6475
+ return new AnimatedInterpolation(this, range, output);
6476
+ };
6477
 
6478
+ return AnimatedValueArray;
6479
+ }(AnimatedArray);
 
 
 
6480
 
6481
+ var G = 0;
 
 
 
6482
 
6483
+ var Controller =
6484
+ /*#__PURE__*/
6485
+ function () {
6486
+ function Controller() {
6487
+ var _this = this;
6488
 
6489
+ this.id = void 0;
6490
+ this.idle = true;
6491
+ this.hasChanged = false;
6492
+ this.guid = 0;
6493
+ this.local = 0;
6494
+ this.props = {};
6495
+ this.merged = {};
6496
+ this.animations = {};
6497
+ this.interpolations = {};
6498
+ this.values = {};
6499
+ this.configs = [];
6500
+ this.listeners = [];
6501
+ this.queue = [];
6502
+ this.localQueue = void 0;
6503
 
6504
+ this.getValues = function () {
6505
+ return _this.interpolations;
 
 
 
6506
  };
6507
 
6508
+ this.id = G++;
6509
+ }
6510
+ /** update(props)
6511
+ * This function filters input props and creates an array of tasks which are executed in .start()
6512
+ * Each task is allowed to carry a delay, which means it can execute asnychroneously */
6513
 
 
 
6514
 
6515
+ var _proto = Controller.prototype;
6516
 
6517
+ _proto.update = function update$$1(args) {
6518
+ //this._id = n + this.id
6519
+ if (!args) return this; // Extract delay and the to-prop from props
6520
 
6521
+ var _ref = interpolateTo(args),
6522
+ _ref$delay = _ref.delay,
6523
+ delay = _ref$delay === void 0 ? 0 : _ref$delay,
6524
+ to = _ref.to,
6525
+ props = _objectWithoutPropertiesLoose(_ref, ["delay", "to"]);
6526
 
6527
+ if (is.arr(to) || is.fun(to)) {
6528
+ // If config is either a function or an array queue it up as is
6529
+ this.queue.push(_extends({}, props, {
6530
+ delay: delay,
6531
+ to: to
6532
+ }));
6533
+ } else if (to) {
6534
+ // Otherwise go through each key since it could be delayed individually
6535
+ var ops = {};
6536
+ Object.entries(to).forEach(function (_ref2) {
6537
+ var _to;
6538
 
6539
+ var k = _ref2[0],
6540
+ v = _ref2[1];
6541
 
6542
+ // Fetch delay and create an entry, consisting of the to-props, the delay, and basic props
6543
+ var entry = _extends({
6544
+ to: (_to = {}, _to[k] = v, _to),
6545
+ delay: callProp(delay, k)
6546
+ }, props);
 
6547
 
6548
+ var previous = ops[entry.delay] && ops[entry.delay].to;
6549
+ ops[entry.delay] = _extends({}, ops[entry.delay], entry, {
6550
+ to: _extends({}, previous, entry.to)
6551
+ });
6552
+ });
6553
+ this.queue = Object.values(ops);
6554
+ } // Sort queue, so that async calls go last
6555
 
 
6556
 
6557
+ this.queue = this.queue.sort(function (a, b) {
6558
+ return a.delay - b.delay;
6559
+ }); // Diff the reduced props immediately (they'll contain the from-prop and some config)
 
6560
 
6561
+ this.diff(props);
6562
+ return this;
6563
+ }
6564
+ /** start(onEnd)
6565
+ * This function either executes a queue, if present, or starts the frameloop, which animates */
6566
+ ;
6567
 
6568
+ _proto.start = function start$$1(onEnd) {
6569
+ var _this2 = this;
 
6570
 
6571
+ // If a queue is present we must excecute it
6572
+ if (this.queue.length) {
6573
+ this.idle = false; // Updates can interrupt trailing queues, in that case we just merge values
 
 
6574
 
6575
+ if (this.localQueue) {
6576
+ this.localQueue.forEach(function (_ref3) {
6577
+ var _ref3$from = _ref3.from,
6578
+ from = _ref3$from === void 0 ? {} : _ref3$from,
6579
+ _ref3$to = _ref3.to,
6580
+ to = _ref3$to === void 0 ? {} : _ref3$to;
6581
+ if (is.obj(from)) _this2.merged = _extends({}, from, _this2.merged);
6582
+ if (is.obj(to)) _this2.merged = _extends({}, _this2.merged, to);
6583
+ });
6584
+ } // The guid helps us tracking frames, a new queue over an old one means an override
6585
+ // We discard async calls in that caseÍ
6586
 
 
 
 
6587
 
6588
+ var local = this.local = ++this.guid;
6589
+ var queue = this.localQueue = this.queue;
6590
+ this.queue = []; // Go through each entry and execute it
6591
 
6592
+ queue.forEach(function (_ref4, index) {
6593
+ var delay = _ref4.delay,
6594
+ props = _objectWithoutPropertiesLoose(_ref4, ["delay"]);
 
 
 
6595
 
6596
+ var cb = function cb(finished) {
6597
+ if (index === queue.length - 1 && local === _this2.guid && finished) {
6598
+ _this2.idle = true;
6599
+ if (_this2.props.onRest) _this2.props.onRest(_this2.merged);
6600
+ }
6601
 
6602
+ if (onEnd) onEnd();
6603
+ }; // Entries can be delayed, ansyc or immediate
6604
 
 
6605
 
6606
+ var async = is.arr(props.to) || is.fun(props.to);
6607
 
6608
+ if (delay) {
6609
+ setTimeout(function () {
6610
+ if (local === _this2.guid) {
6611
+ if (async) _this2.runAsync(props, cb);else _this2.diff(props).start(cb);
6612
+ }
6613
+ }, delay);
6614
+ } else if (async) _this2.runAsync(props, cb);else _this2.diff(props).start(cb);
6615
+ });
6616
+ } // Otherwise we kick of the frameloop
6617
+ else {
6618
+ if (is.fun(onEnd)) this.listeners.push(onEnd);
6619
+ if (this.props.onStart) this.props.onStart();
6620
 
6621
+ start(this);
6622
+ }
6623
 
6624
+ return this;
6625
+ };
 
 
 
 
 
 
6626
 
6627
+ _proto.stop = function stop$$1(finished) {
6628
+ this.listeners.forEach(function (onEnd) {
6629
+ return onEnd(finished);
6630
+ });
6631
+ this.listeners = [];
6632
+ return this;
6633
+ }
6634
+ /** Pause sets onEnd listeners free, but also removes the controller from the frameloop */
6635
+ ;
6636
+
6637
+ _proto.pause = function pause(finished) {
6638
+ this.stop(true);
6639
+ if (finished) stop(this);
6640
+ return this;
6641
+ };
6642
+
6643
+ _proto.runAsync = function runAsync(_ref5, onEnd) {
6644
+ var _this3 = this;
6645
+
6646
+ var delay = _ref5.delay,
6647
+ props = _objectWithoutPropertiesLoose(_ref5, ["delay"]);
6648
+
6649
+ var local = this.local; // If "to" is either a function or an array it will be processed async, therefor "to" should be empty right now
6650
+ // If the view relies on certain values "from" has to be present
6651
+
6652
+ var queue = Promise.resolve(undefined);
6653
+
6654
+ if (is.arr(props.to)) {
6655
+ var _loop = function _loop(i) {
6656
+ var index = i;
6657
+
6658
+ var fresh = _extends({}, props, interpolateTo(props.to[index]));
6659
+
6660
+ if (is.arr(fresh.config)) fresh.config = fresh.config[index];
6661
+ queue = queue.then(function () {
6662
+ //this.stop()
6663
+ if (local === _this3.guid) return new Promise(function (r) {
6664
+ return _this3.diff(fresh).start(r);
6665
+ });
6666
+ });
6667
+ };
6668
+
6669
+ for (var i = 0; i < props.to.length; i++) {
6670
+ _loop(i);
6671
+ }
6672
+ } else if (is.fun(props.to)) {
6673
+ var index = 0;
6674
+ var last;
6675
+ queue = queue.then(function () {
6676
+ return props.to( // next(props)
6677
+ function (p) {
6678
+ var fresh = _extends({}, props, interpolateTo(p));
6679
+
6680
+ if (is.arr(fresh.config)) fresh.config = fresh.config[index];
6681
+ index++; //this.stop()
6682
+
6683
+ if (local === _this3.guid) return last = new Promise(function (r) {
6684
+ return _this3.diff(fresh).start(r);
6685
+ });
6686
+ return;
6687
+ }, // cancel()
6688
+ function (finished) {
6689
+ if (finished === void 0) {
6690
+ finished = true;
6691
+ }
6692
+
6693
+ return _this3.stop(finished);
6694
+ }).then(function () {
6695
+ return last;
6696
+ });
6697
+ });
6698
+ }
6699
+
6700
+ queue.then(onEnd);
6701
+ };
6702
+
6703
+ _proto.diff = function diff(props) {
6704
+ var _this4 = this;
6705
+
6706
+ this.props = _extends({}, this.props, props);
6707
+ var _this$props = this.props,
6708
+ _this$props$from = _this$props.from,
6709
+ from = _this$props$from === void 0 ? {} : _this$props$from,
6710
+ _this$props$to = _this$props.to,
6711
+ to = _this$props$to === void 0 ? {} : _this$props$to,
6712
+ _this$props$config = _this$props.config,
6713
+ config = _this$props$config === void 0 ? {} : _this$props$config,
6714
+ reverse = _this$props.reverse,
6715
+ attach = _this$props.attach,
6716
+ reset = _this$props.reset,
6717
+ immediate = _this$props.immediate; // Reverse values when requested
6718
+
6719
+ if (reverse) {
6720
+ var _ref6 = [to, from];
6721
+ from = _ref6[0];
6722
+ to = _ref6[1];
6723
+ } // This will collect all props that were ever set, reset merged props when necessary
6724
+
6725
+
6726
+ this.merged = _extends({}, from, this.merged, to);
6727
+ this.hasChanged = false; // Attachment handling, trailed springs can "attach" themselves to a previous spring
6728
+
6729
+ var target = attach && attach(this); // Reduces input { name: value } pairs into animated values
6730
+
6731
+ this.animations = Object.entries(this.merged).reduce(function (acc, _ref7) {
6732
+ var name = _ref7[0],
6733
+ value = _ref7[1];
6734
+ // Issue cached entries, except on reset
6735
+ var entry = acc[name] || {}; // Figure out what the value is supposed to be
6736
+
6737
+ var isNumber = is.num(value);
6738
+ var isString = is.str(value) && !value.startsWith('#') && !/\d/.test(value) && !colorNames[value];
6739
+ var isArray = is.arr(value);
6740
+ var isInterpolation = !isNumber && !isArray && !isString;
6741
+ var fromValue = !is.und(from[name]) ? from[name] : value;
6742
+ var toValue = isNumber || isArray ? value : isString ? value : 1;
6743
+ var toConfig = callProp(config, name);
6744
+ if (target) toValue = target.animations[name].parent;
6745
+ var parent = entry.parent,
6746
+ interpolation$$1 = entry.interpolation,
6747
+ toValues = toArray(target ? toValue.getPayload() : toValue),
6748
+ animatedValues;
6749
+ var newValue = value;
6750
+ if (isInterpolation) newValue = interpolation({
6751
+ range: [0, 1],
6752
+ output: [value, value]
6753
+ })(1);
6754
+ var currentValue = interpolation$$1 && interpolation$$1.getValue(); // Change detection flags
6755
+
6756
+ var isFirst = is.und(parent);
6757
+ var isActive = !isFirst && entry.animatedValues.some(function (v) {
6758
+ return !v.done;
6759
+ });
6760
+ var currentValueDiffersFromGoal = !is.equ(newValue, currentValue);
6761
+ var hasNewGoal = !is.equ(newValue, entry.previous);
6762
+ var hasNewConfig = !is.equ(toConfig, entry.config); // Change animation props when props indicate a new goal (new value differs from previous one)
6763
+ // and current values differ from it. Config changes trigger a new update as well (though probably shouldn't?)
6764
+
6765
+ if (reset || hasNewGoal && currentValueDiffersFromGoal || hasNewConfig) {
6766
+ var _extends2;
6767
+
6768
+ // Convert regular values into animated values, ALWAYS re-use if possible
6769
+ if (isNumber || isString) parent = interpolation$$1 = entry.parent || new AnimatedValue(fromValue);else if (isArray) parent = interpolation$$1 = entry.parent || new AnimatedValueArray(fromValue);else if (isInterpolation) {
6770
+ var prev = entry.interpolation && entry.interpolation.calc(entry.parent.value);
6771
+ prev = prev !== void 0 && !reset ? prev : fromValue;
6772
+
6773
+ if (entry.parent) {
6774
+ parent = entry.parent;
6775
+ parent.setValue(0, false);
6776
+ } else parent = new AnimatedValue(0);
6777
+
6778
+ var range = {
6779
+ output: [prev, value]
6780
+ };
6781
+
6782
+ if (entry.interpolation) {
6783
+ interpolation$$1 = entry.interpolation;
6784
+ entry.interpolation.updateConfig(range);
6785
+ } else interpolation$$1 = parent.interpolate(range);
6786
+ }
6787
+ toValues = toArray(target ? toValue.getPayload() : toValue);
6788
+ animatedValues = toArray(parent.getPayload());
6789
+ if (reset && !isInterpolation) parent.setValue(fromValue, false);
6790
+ _this4.hasChanged = true; // Reset animated values
6791
+
6792
+ animatedValues.forEach(function (value) {
6793
+ value.startPosition = value.value;
6794
+ value.lastPosition = value.value;
6795
+ value.lastVelocity = isActive ? value.lastVelocity : undefined;
6796
+ value.lastTime = isActive ? value.lastTime : undefined;
6797
+ value.startTime = now();
6798
+ value.done = false;
6799
+ value.animatedStyles.clear();
6800
+ }); // Set immediate values
6801
+
6802
+ if (callProp(immediate, name)) {
6803
+ parent.setValue(isInterpolation ? toValue : value, false);
6804
+ }
6805
+
6806
+ return _extends({}, acc, (_extends2 = {}, _extends2[name] = _extends({}, entry, {
6807
+ name: name,
6808
+ parent: parent,
6809
+ interpolation: interpolation$$1,
6810
+ animatedValues: animatedValues,
6811
+ toValues: toValues,
6812
+ previous: newValue,
6813
+ config: toConfig,
6814
+ fromValues: toArray(parent.getValue()),
6815
+ immediate: callProp(immediate, name),
6816
+ initialVelocity: withDefault(toConfig.velocity, 0),
6817
+ clamp: withDefault(toConfig.clamp, false),
6818
+ precision: withDefault(toConfig.precision, 0.01),
6819
+ tension: withDefault(toConfig.tension, 170),
6820
+ friction: withDefault(toConfig.friction, 26),
6821
+ mass: withDefault(toConfig.mass, 1),
6822
+ duration: toConfig.duration,
6823
+ easing: withDefault(toConfig.easing, function (t) {
6824
+ return t;
6825
+ }),
6826
+ decay: toConfig.decay
6827
+ }), _extends2));
6828
+ } else {
6829
+ if (!currentValueDiffersFromGoal) {
6830
+ var _extends3;
6831
+
6832
+ // So ... the current target value (newValue) appears to be different from the previous value,
6833
+ // which normally constitutes an update, but the actual value (currentValue) matches the target!
6834
+ // In order to resolve this without causing an animation update we silently flag the animation as done,
6835
+ // which it technically is. Interpolations also needs a config update with their target set to 1.
6836
+ if (isInterpolation) {
6837
+ parent.setValue(1, false);
6838
+ interpolation$$1.updateConfig({
6839
+ output: [newValue, newValue]
6840
+ });
6841
+ }
6842
+
6843
+ parent.done = true;
6844
+ _this4.hasChanged = true;
6845
+ return _extends({}, acc, (_extends3 = {}, _extends3[name] = _extends({}, acc[name], {
6846
+ previous: newValue
6847
+ }), _extends3));
6848
+ }
6849
+
6850
+ return acc;
6851
+ }
6852
+ }, this.animations);
6853
+
6854
+ if (this.hasChanged) {
6855
+ // Make animations available to frameloop
6856
+ this.configs = Object.values(this.animations);
6857
+ this.values = {};
6858
+ this.interpolations = {};
6859
+
6860
+ for (var key in this.animations) {
6861
+ this.interpolations[key] = this.animations[key].interpolation;
6862
+ this.values[key] = this.animations[key].interpolation.getValue();
6863
+ }
6864
+ }
6865
+
6866
+ return this;
6867
+ };
6868
+
6869
+ _proto.destroy = function destroy() {
6870
+ this.stop();
6871
+ this.props = {};
6872
+ this.merged = {};
6873
+ this.animations = {};
6874
+ this.interpolations = {};
6875
+ this.values = {};
6876
+ this.configs = [];
6877
+ this.local = 0;
6878
+ };
6879
+
6880
+ return Controller;
6881
+ }();
6882
+
6883
+ /** API
6884
+ * const props = useSprings(number, [{ ... }, { ... }, ...])
6885
+ * const [props, set] = useSprings(number, (i, controller) => ({ ... }))
6886
+ */
6887
+
6888
+ var useSprings = function useSprings(length, props) {
6889
+ var mounted = React.useRef(false);
6890
+ var ctrl = React.useRef();
6891
+ var isFn = is.fun(props); // The controller maintains the animation values, starts and stops animations
6892
+
6893
+ var _useMemo = React.useMemo(function () {
6894
+ // Remove old controllers
6895
+ if (ctrl.current) {
6896
+ ctrl.current.map(function (c) {
6897
+ return c.destroy();
6898
+ });
6899
+ ctrl.current = undefined;
6900
+ }
6901
+
6902
+ var ref;
6903
+ return [new Array(length).fill().map(function (_, i) {
6904
+ var ctrl = new Controller();
6905
+ var newProps = isFn ? callProp(props, i, ctrl) : props[i];
6906
+ if (i === 0) ref = newProps.ref;
6907
+ ctrl.update(newProps);
6908
+ if (!ref) ctrl.start();
6909
+ return ctrl;
6910
+ }), ref];
6911
+ }, [length]),
6912
+ controllers = _useMemo[0],
6913
+ ref = _useMemo[1];
6914
+
6915
+ ctrl.current = controllers; // The hooks reference api gets defined here ...
6916
+
6917
+ var api = React.useImperativeHandle(ref, function () {
6918
+ return {
6919
+ start: function start() {
6920
+ return Promise.all(ctrl.current.map(function (c) {
6921
+ return new Promise(function (r) {
6922
+ return c.start(r);
6923
+ });
6924
+ }));
6925
+ },
6926
+ stop: function stop(finished) {
6927
+ return ctrl.current.forEach(function (c) {
6928
+ return c.stop(finished);
6929
+ });
6930
+ },
6931
+
6932
+ get controllers() {
6933
+ return ctrl.current;
6934
+ }
6935
+
6936
+ };
6937
+ }); // This function updates the controllers
6938
+
6939
+ var updateCtrl = React.useMemo(function () {
6940
+ return function (updateProps) {
6941
+ return ctrl.current.map(function (c, i) {
6942
+ c.update(isFn ? callProp(updateProps, i, c) : updateProps[i]);
6943
+ if (!ref) c.start();
6944
+ });
6945
+ };
6946
+ }, [length]); // Update controller if props aren't functional
6947
+
6948
+ React.useEffect(function () {
6949
+ if (mounted.current) {
6950
+ if (!isFn) updateCtrl(props);
6951
+ } else if (!ref) ctrl.current.forEach(function (c) {
6952
+ return c.start();
6953
+ });
6954
+ }); // Update mounted flag and destroy controller on unmount
6955
+
6956
+ React.useEffect(function () {
6957
+ return mounted.current = true, function () {
6958
+ return ctrl.current.forEach(function (c) {
6959
+ return c.destroy();
6960
+ });
6961
+ };
6962
+ }, []); // Return animated props, or, anim-props + the update-setter above
6963
+
6964
+ var propValues = ctrl.current.map(function (c) {
6965
+ return c.getValues();
6966
+ });
6967
+ return isFn ? [propValues, updateCtrl, function (finished) {
6968
+ return ctrl.current.forEach(function (c) {
6969
+ return c.pause(finished);
6970
+ });
6971
+ }] : propValues;
6972
+ };
6973
+
6974
+ /** API
6975
+ * const props = useSpring({ ... })
6976
+ * const [props, set] = useSpring(() => ({ ... }))
6977
+ */
6978
+
6979
+ var useSpring = function useSpring(props) {
6980
+ var isFn = is.fun(props);
6981
+
6982
+ var _useSprings = useSprings(1, isFn ? props : [props]),
6983
+ result = _useSprings[0],
6984
+ set = _useSprings[1],
6985
+ pause = _useSprings[2];
6986
+
6987
+ return isFn ? [result[0], set, pause] : result;
6988
+ };
6989
+
6990
+ /** API
6991
+ * const trails = useTrail(number, { ... })
6992
+ * const [trails, set] = useTrail(number, () => ({ ... }))
6993
+ */
6994
+
6995
+ var useTrail = function useTrail(length, props) {
6996
+ var mounted = React.useRef(false);
6997
+ var isFn = is.fun(props);
6998
+ var updateProps = callProp(props);
6999
+ var instances = React.useRef();
7000
+
7001
+ var _useSprings = useSprings(length, function (i, ctrl) {
7002
+ if (i === 0) instances.current = [];
7003
+ instances.current.push(ctrl);
7004
+ return _extends({}, updateProps, {
7005
+ config: callProp(updateProps.config, i),
7006
+ attach: i > 0 && function () {
7007
+ return instances.current[i - 1];
7008
+ }
7009
+ });
7010
+ }),
7011
+ result = _useSprings[0],
7012
+ set = _useSprings[1],
7013
+ pause = _useSprings[2]; // Set up function to update controller
7014
+
7015
+
7016
+ var updateCtrl = React.useMemo(function () {
7017
+ return function (props) {
7018
+ return set(function (i, ctrl) {
7019
+ var last = props.reverse ? i === 0 : length - 1 === i;
7020
+ var attachIdx = props.reverse ? i + 1 : i - 1;
7021
+ var attachController = instances.current[attachIdx];
7022
+ return _extends({}, props, {
7023
+ config: callProp(props.config || updateProps.config, i),
7024
+ attach: attachController && function () {
7025
+ return attachController;
7026
+ }
7027
+ });
7028
+ });
7029
+ };
7030
+ }, [length, updateProps.reverse]); // Update controller if props aren't functional
7031
+
7032
+ React.useEffect(function () {
7033
+ return void (mounted.current && !isFn && updateCtrl(props));
7034
+ }); // Update mounted flag and destroy controller on unmount
7035
+
7036
+ React.useEffect(function () {
7037
+ return void (mounted.current = true);
7038
+ }, []);
7039
+ return isFn ? [result, updateCtrl, pause] : result;
7040
+ };
7041
+
7042
+ /** API
7043
+ * const transitions = useTransition(items, itemKeys, { ... })
7044
+ * const [transitions, update] = useTransition(items, itemKeys, () => ({ ... }))
7045
+ */
7046
+
7047
+ var guid = 0;
7048
+ var ENTER = 'enter';
7049
+ var LEAVE = 'leave';
7050
+ var UPDATE = 'update';
7051
+
7052
+ var mapKeys = function mapKeys(items, keys) {
7053
+ return (typeof keys === 'function' ? items.map(keys) : toArray(keys)).map(String);
7054
+ };
7055
+
7056
+ var get = function get(props) {
7057
+ var items = props.items,
7058
+ _props$keys = props.keys,
7059
+ keys = _props$keys === void 0 ? function (item) {
7060
+ return item;
7061
+ } : _props$keys,
7062
+ rest = _objectWithoutPropertiesLoose(props, ["items", "keys"]);
7063
+
7064
+ items = toArray(items !== void 0 ? items : null);
7065
+ return _extends({
7066
+ items: items,
7067
+ keys: mapKeys(items, keys)
7068
+ }, rest);
7069
+ };
7070
+
7071
+ function useTransition(input, keyTransform, config) {
7072
+ var props = _extends({
7073
+ items: input,
7074
+ keys: keyTransform || function (i) {
7075
+ return i;
7076
+ }
7077
+ }, config);
7078
+
7079
+ var _get = get(props),
7080
+ _get$lazy = _get.lazy,
7081
+ lazy = _get$lazy === void 0 ? false : _get$lazy,
7082
+ _get$unique = _get.unique,
7083
+ _get$reset = _get.reset,
7084
+ reset = _get$reset === void 0 ? false : _get$reset,
7085
+ enter = _get.enter,
7086
+ leave = _get.leave,
7087
+ update = _get.update,
7088
+ onDestroyed = _get.onDestroyed,
7089
+ keys = _get.keys,
7090
+ items = _get.items,
7091
+ onFrame = _get.onFrame,
7092
+ _onRest = _get.onRest,
7093
+ onStart = _get.onStart,
7094
+ ref = _get.ref,
7095
+ extra = _objectWithoutPropertiesLoose(_get, ["lazy", "unique", "reset", "enter", "leave", "update", "onDestroyed", "keys", "items", "onFrame", "onRest", "onStart", "ref"]);
7096
+
7097
+ var forceUpdate = useForceUpdate();
7098
+ var mounted = React.useRef(false);
7099
+ var state = React.useRef({
7100
+ mounted: false,
7101
+ first: true,
7102
+ deleted: [],
7103
+ current: {},
7104
+ transitions: [],
7105
+ prevProps: {},
7106
+ paused: !!props.ref,
7107
+ instances: !mounted.current && new Map(),
7108
+ forceUpdate: forceUpdate
7109
+ });
7110
+ React.useImperativeHandle(props.ref, function () {
7111
+ return {
7112
+ start: function start() {
7113
+ return Promise.all(Array.from(state.current.instances).map(function (_ref) {
7114
+ var c = _ref[1];
7115
+ return new Promise(function (r) {
7116
+ return c.start(r);
7117
+ });
7118
+ }));
7119
+ },
7120
+ stop: function stop(finished) {
7121
+ return Array.from(state.current.instances).forEach(function (_ref2) {
7122
+ var c = _ref2[1];
7123
+ return c.stop(finished);
7124
+ });
7125
+ },
7126
+
7127
+ get controllers() {
7128
+ return Array.from(state.current.instances).map(function (_ref3) {
7129
+ var c = _ref3[1];
7130
+ return c;
7131
+ });
7132
+ }
7133
+
7134
+ };
7135
+ }); // Update state
7136
+
7137
+ state.current = diffItems(state.current, props);
7138
+
7139
+ if (state.current.changed) {
7140
+ // Update state
7141
+ state.current.transitions.forEach(function (transition) {
7142
+ var slot = transition.slot,
7143
+ from = transition.from,
7144
+ to = transition.to,
7145
+ config = transition.config,
7146
+ trail = transition.trail,
7147
+ key = transition.key,
7148
+ item = transition.item;
7149
+ if (!state.current.instances.has(key)) state.current.instances.set(key, new Controller()); // update the map object
7150
+
7151
+ var ctrl = state.current.instances.get(key);
7152
+
7153
+ var newProps = _extends({}, extra, {
7154
+ to: to,
7155
+ from: from,
7156
+ config: config,
7157
+ ref: ref,
7158
+ onRest: function onRest(values) {
7159
+ if (state.current.mounted) {
7160
+ if (transition.destroyed) {
7161
+ // If no ref is given delete destroyed items immediately
7162
+ if (!ref && !lazy) cleanUp(state, key);
7163
+ if (onDestroyed) onDestroyed(item);
7164
+ } // A transition comes to rest once all its springs conclude
7165
+
7166
+
7167
+ var curInstances = Array.from(state.current.instances);
7168
+ var active = curInstances.some(function (_ref4) {
7169
+ var c = _ref4[1];
7170
+ return !c.idle;
7171
+ });
7172
+ if (!active && (ref || lazy) && state.current.deleted.length > 0) cleanUp(state);
7173
+ if (_onRest) _onRest(item, slot, values);
7174
+ }
7175
+ },
7176
+ onStart: onStart && function () {
7177
+ return onStart(item, slot);
7178
+ },
7179
+ onFrame: onFrame && function (values) {
7180
+ return onFrame(item, slot, values);
7181
+ },
7182
+ delay: trail,
7183
+ reset: reset && slot === ENTER // Update controller
7184
+
7185
+ });
7186
+
7187
+ ctrl.update(newProps);
7188
+ if (!state.current.paused) ctrl.start();
7189
+ });
7190
+ }
7191
+
7192
+ React.useEffect(function () {
7193
+ state.current.mounted = mounted.current = true;
7194
+ return function () {
7195
+ state.current.mounted = mounted.current = false;
7196
+ Array.from(state.current.instances).map(function (_ref5) {
7197
+ var c = _ref5[1];
7198
+ return c.destroy();
7199
+ });
7200
+ state.current.instances.clear();
7201
+ };
7202
+ }, []);
7203
+ return state.current.transitions.map(function (_ref6) {
7204
+ var item = _ref6.item,
7205
+ slot = _ref6.slot,
7206
+ key = _ref6.key;
7207
+ return {
7208
+ item: item,
7209
+ key: key,
7210
+ state: slot,
7211
+ props: state.current.instances.get(key).getValues()
7212
+ };
7213
+ });
7214
+ }
7215
+
7216
+ function cleanUp(state, filterKey) {
7217
+ var deleted = state.current.deleted;
7218
+
7219
+ var _loop = function _loop() {
7220
+ if (_isArray) {
7221
+ if (_i >= _iterator.length) return "break";
7222
+ _ref8 = _iterator[_i++];
7223
+ } else {
7224
+ _i = _iterator.next();
7225
+ if (_i.done) return "break";
7226
+ _ref8 = _i.value;
7227
+ }
7228
+
7229
+ var _ref7 = _ref8;
7230
+ var key = _ref7.key;
7231
+
7232
+ var filter = function filter(t) {
7233
+ return t.key !== key;
7234
+ };
7235
+
7236
+ if (is.und(filterKey) || filterKey === key) {
7237
+ state.current.instances.delete(key);
7238
+ state.current.transitions = state.current.transitions.filter(filter);
7239
+ state.current.deleted = state.current.deleted.filter(filter);
7240
+ }
7241
+ };
7242
+
7243
+ for (var _iterator = deleted, _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _iterator[Symbol.iterator]();;) {
7244
+ var _ref8;
7245
+
7246
+ var _ret = _loop();
7247
+
7248
+ if (_ret === "break") break;
7249
+ }
7250
+
7251
+ state.current.forceUpdate();
7252
+ }
7253
+
7254
+ function diffItems(_ref9, props) {
7255
+ var first = _ref9.first,
7256
+ prevProps = _ref9.prevProps,
7257
+ state = _objectWithoutPropertiesLoose(_ref9, ["first", "prevProps"]);
7258
+
7259
+ var _get2 = get(props),
7260
+ items = _get2.items,
7261
+ keys = _get2.keys,
7262
+ initial = _get2.initial,
7263
+ from = _get2.from,
7264
+ enter = _get2.enter,
7265
+ leave = _get2.leave,
7266
+ update = _get2.update,
7267
+ _get2$trail = _get2.trail,
7268
+ trail = _get2$trail === void 0 ? 0 : _get2$trail,
7269
+ unique = _get2.unique,
7270
+ config = _get2.config,
7271
+ _get2$order = _get2.order,
7272
+ order = _get2$order === void 0 ? [ENTER, LEAVE, UPDATE] : _get2$order;
7273
+
7274
+ var _get3 = get(prevProps),
7275
+ _keys = _get3.keys,
7276
+ _items = _get3.items;
7277
+
7278
+ var current = _extends({}, state.current);
7279
+
7280
+ var deleted = [].concat(state.deleted); // Compare next keys with current keys
7281
+
7282
+ var currentKeys = Object.keys(current);
7283
+ var currentSet = new Set(currentKeys);
7284
+ var nextSet = new Set(keys);
7285
+ var added = keys.filter(function (item) {
7286
+ return !currentSet.has(item);
7287
+ });
7288
+ var removed = state.transitions.filter(function (item) {
7289
+ return !item.destroyed && !nextSet.has(item.originalKey);
7290
+ }).map(function (i) {
7291
+ return i.originalKey;
7292
+ });
7293
+ var updated = keys.filter(function (item) {
7294
+ return currentSet.has(item);
7295
+ });
7296
+ var delay = -trail;
7297
+
7298
+ while (order.length) {
7299
+ var changeType = order.shift();
7300
+
7301
+ switch (changeType) {
7302
+ case ENTER:
7303
+ {
7304
+ added.forEach(function (key, index) {
7305
+ // In unique mode, remove fading out transitions if their key comes in again
7306
+ if (unique && deleted.find(function (d) {
7307
+ return d.originalKey === key;
7308
+ })) deleted = deleted.filter(function (t) {
7309
+ return t.originalKey !== key;
7310
+ });
7311
+ var keyIndex = keys.indexOf(key);
7312
+ var item = items[keyIndex];
7313
+ var slot = first && initial !== void 0 ? 'initial' : ENTER;
7314
+ current[key] = {
7315
+ slot: slot,
7316
+ originalKey: key,
7317
+ key: unique ? String(key) : guid++,
7318
+ item: item,
7319
+ trail: delay = delay + trail,
7320
+ config: callProp(config, item, slot),
7321
+ from: callProp(first ? initial !== void 0 ? initial || {} : from : from, item),
7322
+ to: callProp(enter, item)
7323
+ };
7324
+ });
7325
+ break;
7326
+ }
7327
+
7328
+ case LEAVE:
7329
+ {
7330
+ removed.forEach(function (key) {
7331
+ var keyIndex = _keys.indexOf(key);
7332
+
7333
+ var item = _items[keyIndex];
7334
+ var slot = LEAVE;
7335
+ deleted.unshift(_extends({}, current[key], {
7336
+ slot: slot,
7337
+ destroyed: true,
7338
+ left: _keys[Math.max(0, keyIndex - 1)],
7339
+ right: _keys[Math.min(_keys.length, keyIndex + 1)],
7340
+ trail: delay = delay + trail,
7341
+ config: callProp(config, item, slot),
7342
+ to: callProp(leave, item)
7343
+ }));
7344
+ delete current[key];
7345
+ });
7346
+ break;
7347
+ }
7348
 
7349
+ case UPDATE:
7350
+ {
7351
+ updated.forEach(function (key) {
7352
+ var keyIndex = keys.indexOf(key);
7353
+ var item = items[keyIndex];
7354
+ var slot = UPDATE;
7355
+ current[key] = _extends({}, current[key], {
7356
+ item: item,
7357
+ slot: slot,
7358
+ trail: delay = delay + trail,
7359
+ config: callProp(config, item, slot),
7360
+ to: callProp(update, item)
7361
+ });
7362
+ });
7363
+ break;
7364
+ }
7365
+ }
7366
+ }
7367
+
7368
+ var out = keys.map(function (key) {
7369
+ return current[key];
7370
+ }); // This tries to restore order for deleted items by finding their last known siblings
7371
+ // only using the left sibling to keep order placement consistent for all deleted items
7372
+
7373
+ deleted.forEach(function (_ref10) {
7374
+ var left = _ref10.left,
7375
+ right = _ref10.right,
7376
+ item = _objectWithoutPropertiesLoose(_ref10, ["left", "right"]);
7377
+
7378
+ var pos; // Was it the element on the left, if yes, move there ...
7379
+
7380
+ if ((pos = out.findIndex(function (t) {
7381
+ return t.originalKey === left;
7382
+ })) !== -1) pos += 1; // And if nothing else helps, move it to the start ¯\_(ツ)_/¯
7383
+
7384
+ pos = Math.max(0, pos);
7385
+ out = [].concat(out.slice(0, pos), [item], out.slice(pos));
7386
+ });
7387
+ return _extends({}, state, {
7388
+ changed: added.length || removed.length || updated.length,
7389
+ first: first && added.length === 0,
7390
+ transitions: out,
7391
+ current: current,
7392
+ deleted: deleted,
7393
+ prevProps: props
7394
+ });
7395
+ }
7396
+
7397
+ var AnimatedStyle =
7398
+ /*#__PURE__*/
7399
+ function (_AnimatedObject) {
7400
+ _inheritsLoose(AnimatedStyle, _AnimatedObject);
7401
+
7402
+ function AnimatedStyle(style) {
7403
+ var _this;
7404
+
7405
+ if (style === void 0) {
7406
+ style = {};
7407
+ }
7408
+
7409
+ _this = _AnimatedObject.call(this) || this;
7410
+
7411
+ if (style.transform && !(style.transform instanceof Animated)) {
7412
+ style = applyAnimatedValues.transform(style);
7413
+ }
7414
+
7415
+ _this.payload = style;
7416
+ return _this;
7417
+ }
7418
+
7419
+ return AnimatedStyle;
7420
+ }(AnimatedObject);
7421
+
7422
+ // http://www.w3.org/TR/css3-color/#svg-color
7423
+ var colors = {
7424
+ transparent: 0x00000000,
7425
+ aliceblue: 0xf0f8ffff,
7426
+ antiquewhite: 0xfaebd7ff,
7427
+ aqua: 0x00ffffff,
7428
+ aquamarine: 0x7fffd4ff,
7429
+ azure: 0xf0ffffff,
7430
+ beige: 0xf5f5dcff,
7431
+ bisque: 0xffe4c4ff,
7432
+ black: 0x000000ff,
7433
+ blanchedalmond: 0xffebcdff,
7434
+ blue: 0x0000ffff,
7435
+ blueviolet: 0x8a2be2ff,
7436
+ brown: 0xa52a2aff,
7437
+ burlywood: 0xdeb887ff,
7438
+ burntsienna: 0xea7e5dff,
7439
+ cadetblue: 0x5f9ea0ff,
7440
+ chartreuse: 0x7fff00ff,
7441
+ chocolate: 0xd2691eff,
7442
+ coral: 0xff7f50ff,
7443
+ cornflowerblue: 0x6495edff,
7444
+ cornsilk: 0xfff8dcff,
7445
+ crimson: 0xdc143cff,
7446
+ cyan: 0x00ffffff,
7447
+ darkblue: 0x00008bff,
7448
+ darkcyan: 0x008b8bff,
7449
+ darkgoldenrod: 0xb8860bff,
7450
+ darkgray: 0xa9a9a9ff,
7451
+ darkgreen: 0x006400ff,
7452
+ darkgrey: 0xa9a9a9ff,
7453
+ darkkhaki: 0xbdb76bff,
7454
+ darkmagenta: 0x8b008bff,
7455
+ darkolivegreen: 0x556b2fff,
7456
+ darkorange: 0xff8c00ff,
7457
+ darkorchid: 0x9932ccff,
7458
+ darkred: 0x8b0000ff,
7459
+ darksalmon: 0xe9967aff,
7460
+ darkseagreen: 0x8fbc8fff,
7461
+ darkslateblue: 0x483d8bff,
7462
+ darkslategray: 0x2f4f4fff,
7463
+ darkslategrey: 0x2f4f4fff,
7464
+ darkturquoise: 0x00ced1ff,
7465
+ darkviolet: 0x9400d3ff,
7466
+ deeppink: 0xff1493ff,
7467
+ deepskyblue: 0x00bfffff,
7468
+ dimgray: 0x696969ff,
7469
+ dimgrey: 0x696969ff,
7470
+ dodgerblue: 0x1e90ffff,
7471
+ firebrick: 0xb22222ff,
7472
+ floralwhite: 0xfffaf0ff,
7473
+ forestgreen: 0x228b22ff,
7474
+ fuchsia: 0xff00ffff,
7475
+ gainsboro: 0xdcdcdcff,
7476
+ ghostwhite: 0xf8f8ffff,
7477
+ gold: 0xffd700ff,
7478
+ goldenrod: 0xdaa520ff,
7479
+ gray: 0x808080ff,
7480
+ green: 0x008000ff,
7481
+ greenyellow: 0xadff2fff,
7482
+ grey: 0x808080ff,
7483
+ honeydew: 0xf0fff0ff,
7484
+ hotpink: 0xff69b4ff,
7485
+ indianred: 0xcd5c5cff,
7486
+ indigo: 0x4b0082ff,
7487
+ ivory: 0xfffff0ff,
7488
+ khaki: 0xf0e68cff,
7489
+ lavender: 0xe6e6faff,
7490
+ lavenderblush: 0xfff0f5ff,
7491
+ lawngreen: 0x7cfc00ff,
7492
+ lemonchiffon: 0xfffacdff,
7493
+ lightblue: 0xadd8e6ff,
7494
+ lightcoral: 0xf08080ff,
7495
+ lightcyan: 0xe0ffffff,
7496
+ lightgoldenrodyellow: 0xfafad2ff,
7497
+ lightgray: 0xd3d3d3ff,
7498
+ lightgreen: 0x90ee90ff,
7499
+ lightgrey: 0xd3d3d3ff,
7500
+ lightpink: 0xffb6c1ff,
7501
+ lightsalmon: 0xffa07aff,
7502
+ lightseagreen: 0x20b2aaff,
7503
+ lightskyblue: 0x87cefaff,
7504
+ lightslategray: 0x778899ff,
7505
+ lightslategrey: 0x778899ff,
7506
+ lightsteelblue: 0xb0c4deff,
7507
+ lightyellow: 0xffffe0ff,
7508
+ lime: 0x00ff00ff,
7509
+ limegreen: 0x32cd32ff,
7510
+ linen: 0xfaf0e6ff,
7511
+ magenta: 0xff00ffff,
7512
+ maroon: 0x800000ff,
7513
+ mediumaquamarine: 0x66cdaaff,
7514
+ mediumblue: 0x0000cdff,
7515
+ mediumorchid: 0xba55d3ff,
7516
+ mediumpurple: 0x9370dbff,
7517
+ mediumseagreen: 0x3cb371ff,
7518
+ mediumslateblue: 0x7b68eeff,
7519
+ mediumspringgreen: 0x00fa9aff,
7520
+ mediumturquoise: 0x48d1ccff,
7521
+ mediumvioletred: 0xc71585ff,
7522
+ midnightblue: 0x191970ff,
7523
+ mintcream: 0xf5fffaff,
7524
+ mistyrose: 0xffe4e1ff,
7525
+ moccasin: 0xffe4b5ff,
7526
+ navajowhite: 0xffdeadff,
7527
+ navy: 0x000080ff,
7528
+ oldlace: 0xfdf5e6ff,
7529
+ olive: 0x808000ff,
7530
+ olivedrab: 0x6b8e23ff,
7531
+ orange: 0xffa500ff,
7532
+ orangered: 0xff4500ff,
7533
+ orchid: 0xda70d6ff,
7534
+ palegoldenrod: 0xeee8aaff,
7535
+ palegreen: 0x98fb98ff,
7536
+ paleturquoise: 0xafeeeeff,
7537
+ palevioletred: 0xdb7093ff,
7538
+ papayawhip: 0xffefd5ff,
7539
+ peachpuff: 0xffdab9ff,
7540
+ peru: 0xcd853fff,
7541
+ pink: 0xffc0cbff,
7542
+ plum: 0xdda0ddff,
7543
+ powderblue: 0xb0e0e6ff,
7544
+ purple: 0x800080ff,
7545
+ rebeccapurple: 0x663399ff,
7546
+ red: 0xff0000ff,
7547
+ rosybrown: 0xbc8f8fff,
7548
+ royalblue: 0x4169e1ff,
7549
+ saddlebrown: 0x8b4513ff,
7550
+ salmon: 0xfa8072ff,
7551
+ sandybrown: 0xf4a460ff,
7552
+ seagreen: 0x2e8b57ff,
7553
+ seashell: 0xfff5eeff,
7554
+ sienna: 0xa0522dff,
7555
+ silver: 0xc0c0c0ff,
7556
+ skyblue: 0x87ceebff,
7557
+ slateblue: 0x6a5acdff,
7558
+ slategray: 0x708090ff,
7559
+ slategrey: 0x708090ff,
7560
+ snow: 0xfffafaff,
7561
+ springgreen: 0x00ff7fff,
7562
+ steelblue: 0x4682b4ff,
7563
+ tan: 0xd2b48cff,
7564
+ teal: 0x008080ff,
7565
+ thistle: 0xd8bfd8ff,
7566
+ tomato: 0xff6347ff,
7567
+ turquoise: 0x40e0d0ff,
7568
+ violet: 0xee82eeff,
7569
+ wheat: 0xf5deb3ff,
7570
+ white: 0xffffffff,
7571
+ whitesmoke: 0xf5f5f5ff,
7572
+ yellow: 0xffff00ff,
7573
+ yellowgreen: 0x9acd32ff
7574
+ };
7575
+
7576
+ // const INTEGER = '[-+]?\\d+';
7577
+ var NUMBER = '[-+]?\\d*\\.?\\d+';
7578
+ var PERCENTAGE = NUMBER + '%';
7579
+
7580
+ function call() {
7581
+ for (var _len = arguments.length, parts = new Array(_len), _key = 0; _key < _len; _key++) {
7582
+ parts[_key] = arguments[_key];
7583
+ }
7584
 
7585
+ return '\\(\\s*(' + parts.join(')\\s*,\\s*(') + ')\\s*\\)';
7586
+ }
 
 
 
 
7587
 
7588
+ var rgb = new RegExp('rgb' + call(NUMBER, NUMBER, NUMBER));
7589
+ var rgba = new RegExp('rgba' + call(NUMBER, NUMBER, NUMBER, NUMBER));
7590
+ var hsl = new RegExp('hsl' + call(NUMBER, PERCENTAGE, PERCENTAGE));
7591
+ var hsla = new RegExp('hsla' + call(NUMBER, PERCENTAGE, PERCENTAGE, NUMBER));
7592
+ var hex3 = /^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/;
7593
+ var hex4 = /^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/;
7594
+ var hex6 = /^#([0-9a-fA-F]{6})$/;
7595
+ var hex8 = /^#([0-9a-fA-F]{8})$/;
7596
 
7597
+ /*
7598
+ https://github.com/react-community/normalize-css-color
 
 
 
 
 
7599
 
7600
+ BSD 3-Clause License
 
 
 
 
7601
 
7602
+ Copyright (c) 2016, React Community
7603
+ All rights reserved.
 
 
 
7604
 
7605
+ Redistribution and use in source and binary forms, with or without
7606
+ modification, are permitted provided that the following conditions are met:
 
 
 
 
 
 
 
 
 
7607
 
7608
+ * Redistributions of source code must retain the above copyright notice, this
7609
+ list of conditions and the following disclaimer.
 
 
7610
 
7611
+ * Redistributions in binary form must reproduce the above copyright notice,
7612
+ this list of conditions and the following disclaimer in the documentation
7613
+ and/or other materials provided with the distribution.
 
7614
 
7615
+ * Neither the name of the copyright holder nor the names of its
7616
+ contributors may be used to endorse or promote products derived from
7617
+ this software without specific prior written permission.
7618
 
7619
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
7620
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
7621
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
7622
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
7623
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
7624
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
7625
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
7626
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
7627
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
7628
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
7629
+ */
7630
+ function normalizeColor(color) {
7631
+ var match;
7632
 
7633
+ if (typeof color === 'number') {
7634
+ return color >>> 0 === color && color >= 0 && color <= 0xffffffff ? color : null;
7635
+ } // Ordered based on occurrences on Facebook codebase
 
 
 
 
 
 
 
 
7636
 
 
 
 
 
 
 
 
 
 
 
 
7637
 
7638
+ if (match = hex6.exec(color)) return parseInt(match[1] + 'ff', 16) >>> 0;
7639
+ if (colors.hasOwnProperty(color)) return colors[color];
 
 
 
 
7640
 
7641
+ if (match = rgb.exec(color)) {
7642
+ return (parse255(match[1]) << 24 | // r
7643
+ parse255(match[2]) << 16 | // g
7644
+ parse255(match[3]) << 8 | // b
7645
+ 0x000000ff) >>> // a
7646
+ 0;
7647
  }
7648
 
7649
+ if (match = rgba.exec(color)) {
7650
+ return (parse255(match[1]) << 24 | // r
7651
+ parse255(match[2]) << 16 | // g
7652
+ parse255(match[3]) << 8 | // b
7653
+ parse1(match[4])) >>> // a
7654
+ 0;
7655
+ }
7656
 
7657
+ if (match = hex3.exec(color)) {
7658
+ return parseInt(match[1] + match[1] + // r
7659
+ match[2] + match[2] + // g
7660
+ match[3] + match[3] + // b
7661
+ 'ff', // a
7662
+ 16) >>> 0;
7663
+ } // https://drafts.csswg.org/css-color-4/#hex-notation
7664
 
 
 
7665
 
7666
+ if (match = hex8.exec(color)) return parseInt(match[1], 16) >>> 0;
 
7667
 
7668
+ if (match = hex4.exec(color)) {
7669
+ return parseInt(match[1] + match[1] + // r
7670
+ match[2] + match[2] + // g
7671
+ match[3] + match[3] + // b
7672
+ match[4] + match[4], // a
7673
+ 16) >>> 0;
7674
+ }
7675
 
7676
+ if (match = hsl.exec(color)) {
7677
+ return (hslToRgb(parse360(match[1]), // h
7678
+ parsePercentage(match[2]), // s
7679
+ parsePercentage(match[3]) // l
7680
+ ) | 0x000000ff) >>> // a
7681
+ 0;
7682
+ }
7683
 
7684
+ if (match = hsla.exec(color)) {
7685
+ return (hslToRgb(parse360(match[1]), // h
7686
+ parsePercentage(match[2]), // s
7687
+ parsePercentage(match[3]) // l
7688
+ ) | parse1(match[4])) >>> // a
7689
+ 0;
7690
+ }
7691
 
7692
+ return null;
7693
+ }
 
 
7694
 
7695
+ function hue2rgb(p, q, t) {
7696
+ if (t < 0) t += 1;
7697
+ if (t > 1) t -= 1;
7698
+ if (t < 1 / 6) return p + (q - p) * 6 * t;
7699
+ if (t < 1 / 2) return q;
7700
+ if (t < 2 / 3) return p + (q - p) * (2 / 3 - t) * 6;
7701
+ return p;
7702
+ }
7703
 
7704
+ function hslToRgb(h, s, l) {
7705
+ var q = l < 0.5 ? l * (1 + s) : l + s - l * s;
7706
+ var p = 2 * l - q;
7707
+ var r = hue2rgb(p, q, h + 1 / 3);
7708
+ var g = hue2rgb(p, q, h);
7709
+ var b = hue2rgb(p, q, h - 1 / 3);
7710
+ return Math.round(r * 255) << 24 | Math.round(g * 255) << 16 | Math.round(b * 255) << 8;
7711
+ }
7712
 
7713
+ function parse255(str) {
7714
+ var int = parseInt(str, 10);
7715
+ if (int < 0) return 0;
7716
+ if (int > 255) return 255;
7717
+ return int;
7718
+ }
7719
 
7720
+ function parse360(str) {
7721
+ var int = parseFloat(str);
7722
+ return (int % 360 + 360) % 360 / 360;
7723
+ }
7724
+
7725
+ function parse1(str) {
7726
+ var num = parseFloat(str);
7727
+ if (num < 0) return 0;
7728
+ if (num > 1) return 255;
7729
+ return Math.round(num * 255);
7730
+ }
7731
 
7732
+ function parsePercentage(str) {
7733
+ // parseFloat conveniently ignores the final %
7734
+ var int = parseFloat(str);
7735
+ if (int < 0) return 0;
7736
+ if (int > 100) return 1;
7737
+ return int / 100;
7738
+ }
7739
 
7740
+ function colorToRgba(input) {
7741
+ var int32Color = normalizeColor(input);
7742
+ if (int32Color === null) return input;
7743
+ int32Color = int32Color || 0;
7744
+ var r = (int32Color & 0xff000000) >>> 24;
7745
+ var g = (int32Color & 0x00ff0000) >>> 16;
7746
+ var b = (int32Color & 0x0000ff00) >>> 8;
7747
+ var a = (int32Color & 0x000000ff) / 255;
7748
+ return "rgba(" + r + ", " + g + ", " + b + ", " + a + ")";
7749
+ } // Problem: https://github.com/animatedjs/animated/pull/102
7750
+ // Solution: https://stackoverflow.com/questions/638565/parsing-scientific-notation-sensibly/658662
7751
 
 
 
 
7752
 
7753
+ var stringShapeRegex = /[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g; // Covers rgb, rgba, hsl, hsla
7754
+ // Taken from https://gist.github.com/olmokramer/82ccce673f86db7cda5e
7755
 
7756
+ var colorRegex = /(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi; // Covers color names (transparent, blue, etc.)
 
 
7757
 
7758
+ var colorNamesRegex = new RegExp("(" + Object.keys(colors).join('|') + ")", 'g');
7759
  /**
7760
+ * Supports string shapes by extracting numbers so new values can be computed,
7761
+ * and recombines those values into new strings of the same shape. Supports
7762
+ * things like:
7763
  *
7764
+ * rgba(123, 42, 99, 0.36) // colors
7765
+ * -45deg // values with units
7766
+ * 0 2px 2px 0px rgba(0, 0, 0, 0.12) // box shadows
7767
  */
 
 
 
7768
 
7769
+ var createStringInterpolator = function createStringInterpolator(config) {
7770
+ // Replace colors with rgba
7771
+ var outputRange = config.output.map(function (rangeValue) {
7772
+ return rangeValue.replace(colorRegex, colorToRgba);
7773
+ }).map(function (rangeValue) {
7774
+ return rangeValue.replace(colorNamesRegex, colorToRgba);
7775
+ });
7776
+ var outputRanges = outputRange[0].match(stringShapeRegex).map(function () {
7777
+ return [];
7778
+ });
7779
+ outputRange.forEach(function (value) {
7780
+ value.match(stringShapeRegex).forEach(function (number, i) {
7781
+ return outputRanges[i].push(+number);
7782
+ });
7783
+ });
7784
+ var interpolations = outputRange[0].match(stringShapeRegex).map(function (_value, i) {
7785
+ return createInterpolator(_extends({}, config, {
7786
+ output: outputRanges[i]
7787
+ }));
7788
+ });
7789
+ return function (input) {
7790
+ var i = 0;
7791
+ return outputRange[0] // 'rgba(0, 100, 200, 0)'
7792
+ // ->
7793
+ // 'rgba(${interpolations[0](input)}, ${interpolations[1](input)}, ...'
7794
+ .replace(stringShapeRegex, function () {
7795
+ return interpolations[i++](input);
7796
+ }) // rgba requires that the r,g,b are integers.... so we want to round them, but we *dont* want to
7797
+ // round the opacity (4th column).
7798
+ .replace(/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi, function (_, p1, p2, p3, p4) {
7799
+ return "rgba(" + Math.round(p1) + ", " + Math.round(p2) + ", " + Math.round(p3) + ", " + p4 + ")";
7800
+ });
7801
+ };
7802
+ };
7803
 
7804
+ var isUnitlessNumber = {
7805
+ animationIterationCount: true,
7806
+ borderImageOutset: true,
7807
+ borderImageSlice: true,
7808
+ borderImageWidth: true,
7809
+ boxFlex: true,
7810
+ boxFlexGroup: true,
7811
+ boxOrdinalGroup: true,
7812
+ columnCount: true,
7813
+ columns: true,
7814
+ flex: true,
7815
+ flexGrow: true,
7816
+ flexPositive: true,
7817
+ flexShrink: true,
7818
+ flexNegative: true,
7819
+ flexOrder: true,
7820
+ gridRow: true,
7821
+ gridRowEnd: true,
7822
+ gridRowSpan: true,
7823
+ gridRowStart: true,
7824
+ gridColumn: true,
7825
+ gridColumnEnd: true,
7826
+ gridColumnSpan: true,
7827
+ gridColumnStart: true,
7828
+ fontWeight: true,
7829
+ lineClamp: true,
7830
+ lineHeight: true,
7831
+ opacity: true,
7832
+ order: true,
7833
+ orphans: true,
7834
+ tabSize: true,
7835
+ widows: true,
7836
+ zIndex: true,
7837
+ zoom: true,
7838
+ // SVG-related properties
7839
+ fillOpacity: true,
7840
+ floodOpacity: true,
7841
+ stopOpacity: true,
7842
+ strokeDasharray: true,
7843
+ strokeDashoffset: true,
7844
+ strokeMiterlimit: true,
7845
+ strokeOpacity: true,
7846
+ strokeWidth: true
7847
+ };
7848
 
7849
+ var prefixKey = function prefixKey(prefix, key) {
7850
+ return prefix + key.charAt(0).toUpperCase() + key.substring(1);
7851
+ };
 
 
 
 
 
 
7852
 
7853
+ var prefixes = ['Webkit', 'Ms', 'Moz', 'O'];
7854
+ isUnitlessNumber = Object.keys(isUnitlessNumber).reduce(function (acc, prop) {
7855
+ prefixes.forEach(function (prefix) {
7856
+ return acc[prefixKey(prefix, prop)] = acc[prop];
7857
+ });
7858
+ return acc;
7859
+ }, isUnitlessNumber);
 
 
 
7860
 
7861
+ function dangerousStyleValue(name, value, isCustomProperty) {
7862
+ if (value == null || typeof value === 'boolean' || value === '') return '';
7863
+ if (!isCustomProperty && typeof value === 'number' && value !== 0 && !(isUnitlessNumber.hasOwnProperty(name) && isUnitlessNumber[name])) return value + 'px'; // Presumes implicit 'px' suffix for unitless numbers
 
 
 
 
 
 
 
 
 
 
 
7864
 
7865
+ return ('' + value).trim();
7866
  }
7867
 
7868
+ var attributeCache = {};
7869
+ injectCreateAnimatedStyle(function (style) {
7870
+ return new AnimatedStyle(style);
7871
+ });
7872
+ injectDefaultElement('div');
7873
+ injectStringInterpolator(createStringInterpolator);
7874
+ injectColorNames(colors);
7875
+ injectApplyAnimatedValues(function (instance, props) {
7876
+ if (instance.nodeType && instance.setAttribute !== undefined) {
7877
+ var style = props.style,
7878
+ children = props.children,
7879
+ scrollTop = props.scrollTop,
7880
+ scrollLeft = props.scrollLeft,
7881
+ attributes = _objectWithoutPropertiesLoose(props, ["style", "children", "scrollTop", "scrollLeft"]);
7882
 
7883
+ var filter = instance.nodeName === 'filter' || instance.parentNode && instance.parentNode.nodeName === 'filter';
7884
+ if (scrollTop !== void 0) instance.scrollTop = scrollTop;
7885
+ if (scrollLeft !== void 0) instance.scrollLeft = scrollLeft; // Set textContent, if children is an animatable value
7886
 
7887
+ if (children !== void 0) instance.textContent = children; // Set styles ...
7888
 
7889
+ for (var styleName in style) {
7890
+ if (!style.hasOwnProperty(styleName)) continue;
7891
+ var isCustomProperty = styleName.indexOf('--') === 0;
7892
+ var styleValue = dangerousStyleValue(styleName, style[styleName], isCustomProperty);
7893
+ if (styleName === 'float') styleName = 'cssFloat';
7894
+ if (isCustomProperty) instance.style.setProperty(styleName, styleValue);else instance.style[styleName] = styleValue;
7895
+ } // Set attributes ...
7896
 
 
 
 
 
 
 
 
 
 
 
 
7897
 
7898
+ for (var name in attributes) {
7899
+ // Attributes are written in dash case
7900
+ var dashCase = filter ? name : attributeCache[name] || (attributeCache[name] = name.replace(/([A-Z])/g, function (n) {
7901
+ return '-' + n.toLowerCase();
7902
+ }));
7903
+ if (typeof instance.getAttribute(dashCase) !== 'undefined') instance.setAttribute(dashCase, attributes[name]);
7904
+ }
7905
+
7906
+ return;
7907
+ } else return false;
7908
+ }, function (style) {
7909
+ return style;
7910
+ });
7911
+
7912
+ var domElements = ['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', // SVG
7913
+ 'circle', 'clipPath', 'defs', 'ellipse', 'foreignObject', 'g', 'image', 'line', 'linearGradient', 'mask', 'path', 'pattern', 'polygon', 'polyline', 'radialGradient', 'rect', 'stop', 'svg', 'text', 'tspan'];
7914
+ // Extend animated with all the available THREE elements
7915
+ var apply = merge(createAnimatedComponent, false);
7916
+ var extendedAnimated = apply(domElements);
7917
 
7918
+ exports.apply = apply;
7919
+ exports.config = config;
7920
+ exports.update = update;
7921
+ exports.animated = extendedAnimated;
7922
+ exports.a = extendedAnimated;
7923
+ exports.interpolate = interpolate$1;
7924
+ exports.Globals = Globals;
7925
+ exports.useSpring = useSpring;
7926
+ exports.useTrail = useTrail;
7927
+ exports.useTransition = useTransition;
7928
+ exports.useChain = useChain;
7929
+ exports.useSprings = useSprings;
7930
 
 
 
 
7931
 
7932
+ /***/ }),
 
 
7933
 
7934
+ /***/ 183:
7935
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
 
 
 
7936
 
7937
+ "use strict";
7938
+ /* WEBPACK VAR INJECTION */(function(global) {/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(10);
7939
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
7940
+ /* harmony import */ var _babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(38);
7941
+ /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
7942
+ /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
7943
 
 
 
 
7944
 
 
 
 
 
 
 
 
 
 
7945
 
 
 
 
7946
 
 
 
7947
 
7948
+ var MAX_SIGNED_31_BIT_INT = 1073741823;
7949
+ var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : {};
 
 
 
 
 
7950
 
7951
+ function getUniqueId() {
7952
+ var key = '__global_unique_id__';
7953
+ return commonjsGlobal[key] = (commonjsGlobal[key] || 0) + 1;
7954
+ }
7955
+
7956
+ function objectIs(x, y) {
7957
+ if (x === y) {
7958
+ return x !== 0 || 1 / x === 1 / y;
7959
  } else {
7960
+ return x !== x && y !== y;
 
 
7961
  }
 
 
7962
  }
7963
 
7964
+ function createEventEmitter(value) {
7965
+ var handlers = [];
7966
+ return {
7967
+ on: function on(handler) {
7968
+ handlers.push(handler);
7969
+ },
7970
+ off: function off(handler) {
7971
+ handlers = handlers.filter(function (h) {
7972
+ return h !== handler;
7973
+ });
7974
+ },
7975
+ get: function get() {
7976
+ return value;
7977
+ },
7978
+ set: function set(newValue, changedBits) {
7979
+ value = newValue;
7980
+ handlers.forEach(function (handler) {
7981
+ return handler(value, changedBits);
7982
+ });
7983
+ }
7984
+ };
7985
+ }
7986
 
7987
+ function onlyChild(children) {
7988
+ return Array.isArray(children) ? children[0] : children;
7989
+ }
7990
 
7991
+ function createReactContext(defaultValue, calculateChangedBits) {
7992
+ var _Provider$childContex, _Consumer$contextType;
 
7993
 
7994
+ var contextProp = '__create-react-context-' + getUniqueId() + '__';
 
 
7995
 
7996
+ var Provider = /*#__PURE__*/function (_Component) {
7997
+ Object(_babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"])(Provider, _Component);
7998
 
7999
+ function Provider() {
8000
+ var _this;
8001
 
8002
+ _this = _Component.apply(this, arguments) || this;
8003
+ _this.emitter = createEventEmitter(_this.props.value);
8004
+ return _this;
8005
+ }
8006
 
8007
+ var _proto = Provider.prototype;
 
8008
 
8009
+ _proto.getChildContext = function getChildContext() {
8010
+ var _ref;
8011
 
8012
+ return _ref = {}, _ref[contextProp] = this.emitter, _ref;
8013
+ };
8014
 
8015
+ _proto.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {
8016
+ if (this.props.value !== nextProps.value) {
8017
+ var oldValue = this.props.value;
8018
+ var newValue = nextProps.value;
8019
+ var changedBits;
8020
 
8021
+ if (objectIs(oldValue, newValue)) {
8022
+ changedBits = 0;
8023
+ } else {
8024
+ changedBits = typeof calculateChangedBits === 'function' ? calculateChangedBits(oldValue, newValue) : MAX_SIGNED_31_BIT_INT;
8025
 
8026
+ if (false) {}
 
 
8027
 
8028
+ changedBits |= 0;
8029
 
8030
+ if (changedBits !== 0) {
8031
+ this.emitter.set(nextProps.value, changedBits);
8032
+ }
8033
+ }
8034
+ }
8035
+ };
8036
 
8037
+ _proto.render = function render() {
8038
+ return this.props.children;
8039
+ };
8040
 
8041
+ return Provider;
8042
+ }(react__WEBPACK_IMPORTED_MODULE_0__["Component"]);
 
 
 
 
 
 
8043
 
8044
+ Provider.childContextTypes = (_Provider$childContex = {}, _Provider$childContex[contextProp] = prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.object.isRequired, _Provider$childContex);
 
 
 
 
 
 
8045
 
8046
+ var Consumer = /*#__PURE__*/function (_Component2) {
8047
+ Object(_babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"])(Consumer, _Component2);
 
 
 
8048
 
8049
+ function Consumer() {
8050
+ var _this2;
 
 
 
 
 
 
 
 
 
 
 
8051
 
8052
+ _this2 = _Component2.apply(this, arguments) || this;
8053
+ _this2.state = {
8054
+ value: _this2.getValue()
8055
+ };
 
 
 
8056
 
8057
+ _this2.onUpdate = function (newValue, changedBits) {
8058
+ var observedBits = _this2.observedBits | 0;
8059
 
8060
+ if ((observedBits & changedBits) !== 0) {
8061
+ _this2.setState({
8062
+ value: _this2.getValue()
8063
+ });
8064
+ }
8065
+ };
8066
 
8067
+ return _this2;
8068
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8069
 
8070
+ var _proto2 = Consumer.prototype;
8071
 
8072
+ _proto2.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {
8073
+ var observedBits = nextProps.observedBits;
8074
+ this.observedBits = observedBits === undefined || observedBits === null ? MAX_SIGNED_31_BIT_INT : observedBits;
8075
+ };
8076
 
8077
+ _proto2.componentDidMount = function componentDidMount() {
8078
+ if (this.context[contextProp]) {
8079
+ this.context[contextProp].on(this.onUpdate);
8080
+ }
8081
 
8082
+ var observedBits = this.props.observedBits;
8083
+ this.observedBits = observedBits === undefined || observedBits === null ? MAX_SIGNED_31_BIT_INT : observedBits;
8084
+ };
8085
 
8086
+ _proto2.componentWillUnmount = function componentWillUnmount() {
8087
+ if (this.context[contextProp]) {
8088
+ this.context[contextProp].off(this.onUpdate);
8089
+ }
8090
+ };
8091
 
8092
+ _proto2.getValue = function getValue() {
8093
+ if (this.context[contextProp]) {
8094
+ return this.context[contextProp].get();
8095
+ } else {
8096
+ return defaultValue;
8097
+ }
8098
+ };
8099
 
8100
+ _proto2.render = function render() {
8101
+ return onlyChild(this.props.children)(this.state.value);
8102
+ };
8103
 
8104
+ return Consumer;
8105
+ }(react__WEBPACK_IMPORTED_MODULE_0__["Component"]);
8106
 
8107
+ Consumer.contextTypes = (_Consumer$contextType = {}, _Consumer$contextType[contextProp] = prop_types__WEBPACK_IMPORTED_MODULE_2___default.a.object, _Consumer$contextType);
8108
+ return {
8109
+ Provider: Provider,
8110
+ Consumer: Consumer
8111
+ };
8112
+ }
8113
 
8114
+ var index = react__WEBPACK_IMPORTED_MODULE_0___default.a.createContext || createReactContext;
 
 
 
 
 
 
 
8115
 
8116
+ /* harmony default export */ __webpack_exports__["a"] = (index);
 
 
 
 
 
 
 
8117
 
8118
+ /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(84)))
 
 
 
 
 
 
 
8119
 
8120
+ /***/ }),
 
 
 
 
 
 
 
8121
 
8122
+ /***/ 184:
8123
+ /***/ (function(module, exports, __webpack_require__) {
 
 
 
 
 
 
8124
 
8125
+ var isarray = __webpack_require__(307)
 
 
 
 
 
 
 
8126
 
 
 
 
8127
  /**
8128
+ * Expose `pathToRegexp`.
 
 
8129
  */
8130
+ module.exports = pathToRegexp
8131
+ module.exports.parse = parse
8132
+ module.exports.compile = compile
8133
+ module.exports.tokensToFunction = tokensToFunction
8134
+ module.exports.tokensToRegExp = tokensToRegExp
8135
 
 
 
 
8136
  /**
8137
+ * The main path matching regexp utility.
8138
  *
8139
+ * @type {RegExp}
8140
  */
8141
+ var PATH_REGEXP = new RegExp([
8142
+ // Match escaped characters that would otherwise appear in future matches.
8143
+ // This allows the user to escape special characters that won't transform.
8144
+ '(\\\\.)',
8145
+ // Match Express-style parameters and un-named parameters with a prefix
8146
+ // and optional suffixes. Matches appear as:
8147
+ //
8148
+ // "/:test(\\d+)?" => ["/", "test", "\d+", undefined, "?", undefined]
8149
+ // "/route(\\d+)" => [undefined, undefined, undefined, "\d+", undefined, undefined]
8150
+ // "/*" => ["/", undefined, undefined, undefined, undefined, "*"]
8151
+ '([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))'
8152
+ ].join('|'), 'g')
8153
 
 
 
 
8154
  /**
8155
+ * Parse a string for the raw tokens.
8156
  *
8157
+ * @param {string} str
8158
+ * @param {Object=} options
8159
+ * @return {!Array}
 
8160
  */
8161
+ function parse (str, options) {
8162
+ var tokens = []
8163
+ var key = 0
8164
+ var index = 0
8165
+ var path = ''
8166
+ var defaultDelimiter = options && options.delimiter || '/'
8167
+ var res
8168
 
8169
+ while ((res = PATH_REGEXP.exec(str)) != null) {
8170
+ var m = res[0]
8171
+ var escaped = res[1]
8172
+ var offset = res.index
8173
+ path += str.slice(index, offset)
8174
+ index = offset + m.length
 
 
 
 
 
 
 
 
 
8175
 
8176
+ // Ignore already escaped sequences.
8177
+ if (escaped) {
8178
+ path += escaped[1]
8179
+ continue
8180
+ }
8181
 
8182
+ var next = str[index]
8183
+ var prefix = res[2]
8184
+ var name = res[3]
8185
+ var capture = res[4]
8186
+ var group = res[5]
8187
+ var modifier = res[6]
8188
+ var asterisk = res[7]
8189
 
8190
+ // Push the current path onto the tokens.
8191
+ if (path) {
8192
+ tokens.push(path)
8193
+ path = ''
8194
+ }
8195
 
8196
+ var partial = prefix != null && next != null && next !== prefix
8197
+ var repeat = modifier === '+' || modifier === '*'
8198
+ var optional = modifier === '?' || modifier === '*'
8199
+ var delimiter = res[2] || defaultDelimiter
8200
+ var pattern = capture || group
8201
 
8202
+ tokens.push({
8203
+ name: name || key++,
8204
+ prefix: prefix || '',
8205
+ delimiter: delimiter,
8206
+ optional: optional,
8207
+ repeat: repeat,
8208
+ partial: partial,
8209
+ asterisk: !!asterisk,
8210
+ pattern: pattern ? escapeGroup(pattern) : (asterisk ? '.*' : '[^' + escapeString(delimiter) + ']+?')
8211
+ })
8212
+ }
8213
 
8214
+ // Match any characters still remaining.
8215
+ if (index < str.length) {
8216
+ path += str.substr(index)
8217
+ }
8218
 
8219
+ // If the path exists, push it onto the end.
8220
+ if (path) {
8221
+ tokens.push(path)
8222
+ }
8223
 
8224
+ return tokens
8225
+ }
8226
 
8227
+ /**
8228
+ * Compile a string to a template function for the path.
8229
+ *
8230
+ * @param {string} str
8231
+ * @param {Object=} options
8232
+ * @return {!function(Object=, Object=)}
8233
+ */
8234
+ function compile (str, options) {
8235
+ return tokensToFunction(parse(str, options), options)
8236
+ }
8237
 
8238
+ /**
8239
+ * Prettier encoding of URI path segments.
8240
+ *
8241
+ * @param {string}
8242
+ * @return {string}
8243
+ */
8244
+ function encodeURIComponentPretty (str) {
8245
+ return encodeURI(str).replace(/[\/?#]/g, function (c) {
8246
+ return '%' + c.charCodeAt(0).toString(16).toUpperCase()
8247
+ })
8248
+ }
8249
 
8250
+ /**
8251
+ * Encode the asterisk parameter. Similar to `pretty`, but allows slashes.
8252
+ *
8253
+ * @param {string}
8254
+ * @return {string}
8255
+ */
8256
+ function encodeAsterisk (str) {
8257
+ return encodeURI(str).replace(/[?#]/g, function (c) {
8258
+ return '%' + c.charCodeAt(0).toString(16).toUpperCase()
8259
+ })
8260
  }
8261
 
8262
+ /**
8263
+ * Expose a method for transforming tokens into the path function.
8264
+ */
8265
+ function tokensToFunction (tokens, options) {
8266
+ // Compile all the tokens into regexps.
8267
+ var matches = new Array(tokens.length)
8268
 
8269
+ // Compile all the patterns before compilation.
8270
+ for (var i = 0; i < tokens.length; i++) {
8271
+ if (typeof tokens[i] === 'object') {
8272
+ matches[i] = new RegExp('^(?:' + tokens[i].pattern + ')$', flags(options))
8273
+ }
8274
+ }
8275
 
8276
+ return function (obj, opts) {
8277
+ var path = ''
8278
+ var data = obj || {}
8279
+ var options = opts || {}
8280
+ var encode = options.pretty ? encodeURIComponentPretty : encodeURIComponent
8281
 
8282
+ for (var i = 0; i < tokens.length; i++) {
8283
+ var token = tokens[i]
8284
 
8285
+ if (typeof token === 'string') {
8286
+ path += token
8287
 
8288
+ continue
8289
+ }
8290
 
8291
+ var value = data[token.name]
8292
+ var segment
8293
 
8294
+ if (value == null) {
8295
+ if (token.optional) {
8296
+ // Prepend partial segment prefixes.
8297
+ if (token.partial) {
8298
+ path += token.prefix
8299
+ }
8300
 
8301
+ continue
8302
+ } else {
8303
+ throw new TypeError('Expected "' + token.name + '" to be defined')
8304
+ }
8305
+ }
8306
 
8307
+ if (isarray(value)) {
8308
+ if (!token.repeat) {
8309
+ throw new TypeError('Expected "' + token.name + '" to not repeat, but received `' + JSON.stringify(value) + '`')
8310
+ }
8311
 
8312
+ if (value.length === 0) {
8313
+ if (token.optional) {
8314
+ continue
8315
+ } else {
8316
+ throw new TypeError('Expected "' + token.name + '" to not be empty')
8317
+ }
8318
+ }
8319
 
8320
+ for (var j = 0; j < value.length; j++) {
8321
+ segment = encode(value[j])
8322
 
8323
+ if (!matches[i].test(segment)) {
8324
+ throw new TypeError('Expected all "' + token.name + '" to match "' + token.pattern + '", but received `' + JSON.stringify(segment) + '`')
8325
+ }
 
8326
 
8327
+ path += (j === 0 ? token.prefix : token.delimiter) + segment
 
 
8328
  }
 
 
 
 
 
 
 
 
8329
 
8330
+ continue
8331
+ }
8332
 
8333
+ segment = token.asterisk ? encodeAsterisk(value) : encode(value)
8334
 
8335
+ if (!matches[i].test(segment)) {
8336
+ throw new TypeError('Expected "' + token.name + '" to match "' + token.pattern + '", but received "' + segment + '"')
8337
+ }
8338
 
8339
+ path += token.prefix + segment
8340
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
8341
 
8342
+ return path
8343
+ }
8344
+ }
8345
 
8346
  /**
8347
+ * Escape a regular expression string.
8348
+ *
8349
+ * @param {string} str
8350
+ * @return {string}
8351
  */
8352
+ function escapeString (str) {
8353
+ return str.replace(/([.+*?=^!:${}()[\]|\/\\])/g, '\\$1')
8354
+ }
8355
 
8356
+ /**
8357
+ * Escape the capturing group by escaping special characters and meaning.
8358
+ *
8359
+ * @param {string} group
8360
+ * @return {string}
8361
+ */
8362
+ function escapeGroup (group) {
8363
+ return group.replace(/([=!:$\/()])/g, '\\$1')
8364
+ }
8365
 
 
 
 
 
 
 
 
 
 
8366
  /**
8367
+ * Attach the keys as a property of the regexp.
8368
  *
8369
+ * @param {!RegExp} re
8370
+ * @param {Array} keys
8371
+ * @return {!RegExp}
8372
+ */
8373
+ function attachKeys (re, keys) {
8374
+ re.keys = keys
8375
+ return re
8376
+ }
8377
+
8378
+ /**
8379
+ * Get the flags for a regexp from the options.
8380
  *
8381
+ * @param {Object} options
8382
+ * @return {string}
8383
  */
8384
+ function flags (options) {
8385
+ return options && options.sensitive ? '' : 'i'
8386
+ }
8387
 
8388
+ /**
8389
+ * Pull out keys from a regexp.
8390
+ *
8391
+ * @param {!RegExp} path
8392
+ * @param {!Array} keys
8393
+ * @return {!RegExp}
8394
+ */
8395
+ function regexpToRegexp (path, keys) {
8396
+ // Use a negative lookahead to match only capturing groups.
8397
+ var groups = path.source.match(/\((?!\?)/g)
8398
 
8399
+ if (groups) {
8400
+ for (var i = 0; i < groups.length; i++) {
8401
+ keys.push({
8402
+ name: i,
8403
+ prefix: null,
8404
+ delimiter: null,
8405
+ optional: false,
8406
+ repeat: false,
8407
+ partial: false,
8408
+ asterisk: false,
8409
+ pattern: null
8410
+ })
8411
+ }
8412
  }
8413
 
8414
+ return attachKeys(path, keys)
 
8415
  }
8416
+
8417
  /**
8418
+ * Transform an array into a regexp.
 
 
 
 
 
8419
  *
8420
+ * @param {!Array} path
8421
+ * @param {Array} keys
8422
+ * @param {!Object} options
8423
+ * @return {!RegExp}
8424
+ */
8425
+ function arrayToRegexp (path, keys, options) {
8426
+ var parts = []
 
 
 
 
 
8427
 
8428
+ for (var i = 0; i < path.length; i++) {
8429
+ parts.push(pathToRegexp(path[i], keys, options).source)
8430
  }
8431
 
8432
+ var regexp = new RegExp('(?:' + parts.join('|') + ')', flags(options))
8433
+
8434
+ return attachKeys(regexp, keys)
8435
  }
8436
+
8437
  /**
8438
+ * Create a path regexp from string input.
8439
  *
8440
+ * @param {string} path
8441
+ * @param {!Array} keys
8442
+ * @param {!Object} options
8443
+ * @return {!RegExp}
8444
  */
8445
+ function stringToRegexp (path, keys, options) {
8446
+ return tokensToRegExp(parse(path, options), keys, options)
 
8447
  }
8448
 
8449
+ /**
8450
+ * Expose a function for taking tokens and returning a RegExp.
8451
+ *
8452
+ * @param {!Array} tokens
8453
+ * @param {(Array|Object)=} keys
8454
+ * @param {Object=} options
8455
+ * @return {!RegExp}
8456
+ */
8457
+ function tokensToRegExp (tokens, keys, options) {
8458
+ if (!isarray(keys)) {
8459
+ options = /** @type {!Object} */ (keys || options)
8460
+ keys = []
8461
+ }
8462
 
8463
+ options = options || {}
8464
 
8465
+ var strict = options.strict
8466
+ var end = options.end !== false
8467
+ var route = ''
8468
 
8469
+ // Iterate over the tokens and create our regexp string.
8470
+ for (var i = 0; i < tokens.length; i++) {
8471
+ var token = tokens[i]
 
 
 
 
 
 
 
 
 
 
8472
 
8473
+ if (typeof token === 'string') {
8474
+ route += escapeString(token)
8475
+ } else {
8476
+ var prefix = escapeString(token.prefix)
8477
+ var capture = '(?:' + token.pattern + ')'
8478
 
8479
+ keys.push(token)
 
 
8480
 
8481
+ if (token.repeat) {
8482
+ capture += '(?:' + prefix + capture + ')*'
8483
+ }
8484
 
8485
+ if (token.optional) {
8486
+ if (!token.partial) {
8487
+ capture = '(?:' + prefix + '(' + capture + '))?'
8488
+ } else {
8489
+ capture = prefix + '(' + capture + ')?'
8490
+ }
8491
+ } else {
8492
+ capture = prefix + '(' + capture + ')'
8493
+ }
8494
 
8495
+ route += capture
8496
+ }
8497
+ }
8498
 
8499
+ var delimiter = escapeString(options.delimiter || '/')
8500
+ var endsWithDelimiter = route.slice(-delimiter.length) === delimiter
8501
 
8502
+ // In non-strict mode we allow a slash at the end of match. If the path to
8503
+ // match already ends with a slash, we remove it for consistency. The slash
8504
+ // is valid at the end of a path match, not in the middle. This is important
8505
+ // in non-ending mode, where "/test/" shouldn't match "/test//route".
8506
+ if (!strict) {
8507
+ route = (endsWithDelimiter ? route.slice(0, -delimiter.length) : route) + '(?:' + delimiter + '(?=$))?'
8508
+ }
8509
 
8510
+ if (end) {
8511
+ route += '$'
8512
+ } else {
8513
+ // In non-ending mode, we need the capturing groups to match as much as
8514
+ // possible by using a positive lookahead to the end or next path segment.
8515
+ route += strict && endsWithDelimiter ? '' : '(?=' + delimiter + '|$)'
8516
+ }
8517
 
8518
+ return attachKeys(new RegExp('^' + route, flags(options)), keys)
8519
+ }
8520
 
8521
  /**
8522
+ * Normalize the given path string, returning a regular expression.
 
8523
  *
8524
+ * An empty array can be passed in for the keys, which will hold the
8525
+ * placeholder key descriptions. For example, using `/user/:id`, `keys` will
8526
+ * contain `[{ name: 'id', delimiter: '/', optional: false, repeat: false }]`.
8527
+ *
8528
+ * @param {(string|RegExp|Array)} path
8529
+ * @param {(Array|Object)=} keys
8530
+ * @param {Object=} options
8531
+ * @return {!RegExp}
8532
  */
8533
+ function pathToRegexp (path, keys, options) {
8534
+ if (!isarray(keys)) {
8535
+ options = /** @type {!Object} */ (keys || options)
8536
+ keys = []
8537
+ }
8538
 
8539
+ options = options || {}
8540
+
8541
+ if (path instanceof RegExp) {
8542
+ return regexpToRegexp(path, /** @type {!Array} */ (keys))
8543
+ }
8544
+
8545
+ if (isarray(path)) {
8546
+ return arrayToRegexp(/** @type {!Array} */ (path), /** @type {!Array} */ (keys), options)
8547
+ }
8548
+
8549
+ return stringToRegexp(/** @type {string} */ (path), /** @type {!Array} */ (keys), options)
8550
  }
8551
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8552
 
8553
+ /***/ }),
 
 
 
8554
 
8555
+ /***/ 19:
8556
+ /***/ (function(module, exports, __webpack_require__) {
 
8557
 
8558
+ var arrayWithoutHoles = __webpack_require__(57);
 
 
8559
 
8560
+ var iterableToArray = __webpack_require__(58);
 
 
 
8561
 
8562
+ var unsupportedIterableToArray = __webpack_require__(40);
8563
 
8564
+ var nonIterableSpread = __webpack_require__(59);
 
 
 
 
 
 
 
 
 
 
 
 
 
8565
 
8566
+ function _toConsumableArray(arr) {
8567
+ return arrayWithoutHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableSpread();
8568
+ }
8569
 
8570
+ module.exports = _toConsumableArray;
 
8571
 
8572
+ /***/ }),
8573
+
8574
+ /***/ 196:
8575
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
8576
+
8577
+ "use strict";
8578
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return getUnreadNotesCount; });
8579
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return hasValidNotes; });
8580
+ /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3);
8581
+ /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_0__);
8582
+ /**
8583
+ * External dependencies
8584
+ */
8585
+
8586
+ /**
8587
+ * Get the count of the unread notes from the received list.
8588
+ *
8589
+ * @param {Array} notes - List of notes, contains read and unread notes.
8590
+ * @param {number} lastRead - The timestamp that the user read a note.
8591
+ * @return {number} - Unread notes count.
8592
+ */
8593
+
8594
+ function getUnreadNotesCount(notes, lastRead) {
8595
+ var unreadNotes = Object(lodash__WEBPACK_IMPORTED_MODULE_0__["filter"])(notes, function (note) {
8596
+ var isDeleted = note.is_deleted,
8597
+ dateCreatedGmt = note.date_created_gmt,
8598
+ status = note.status;
8599
+
8600
+ if (!isDeleted) {
8601
+ var unread = !lastRead || !dateCreatedGmt || new Date(dateCreatedGmt + 'Z').getTime() > lastRead;
8602
+ return unread && status === 'unactioned';
8603
+ }
8604
+ });
8605
+ return unreadNotes.length;
 
 
8606
  }
8607
+ /**
8608
+ * Verifies if there are any valid notes in the list.
8609
+ *
8610
+ * @param {Array} notes - List of notes, contains read and unread notes.
8611
+ * @return {boolean} - Whether there are valid notes or not.
8612
+ */
8613
 
8614
+ function hasValidNotes(notes) {
8615
+ var validNotes = Object(lodash__WEBPACK_IMPORTED_MODULE_0__["filter"])(notes, function (note) {
8616
+ var isDeleted = note.is_deleted;
8617
+ return !isDeleted;
8618
+ });
8619
+ return validNotes.length > 0;
8620
+ }
8621
 
8622
  /***/ }),
8623
 
8624
+ /***/ 197:
8625
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
8626
 
8627
  "use strict";
8628
+ /* harmony import */ var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(36);
8629
+ /* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(55);
8630
+ /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(0);
8631
+ /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__);
8632
+
8633
+
8634
+
8635
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
8636
+
8637
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
8638
+
8639
  /**
8640
+ * WordPress dependencies
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8641
  */
8642
 
8643
+ /** @typedef {{icon: JSX.Element, size?: number} & import('@wordpress/primitives').SVGProps} IconProps */
8644
 
8645
+ /**
8646
+ * Return an SVG icon.
8647
+ *
8648
+ * @param {IconProps} props icon is the SVG component to render
8649
+ * size is a number specifiying the icon size in pixels
8650
+ * Other props will be passed to wrapped SVG component
8651
+ *
8652
+ * @return {JSX.Element} Icon component
8653
+ */
8654
 
8655
+ function Icon(_ref) {
8656
+ var icon = _ref.icon,
8657
+ _ref$size = _ref.size,
8658
+ size = _ref$size === void 0 ? 24 : _ref$size,
8659
+ props = Object(_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"])(_ref, ["icon", "size"]);
8660
 
8661
+ return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_2__["cloneElement"])(icon, _objectSpread({
8662
+ width: size,
8663
+ height: size
8664
+ }, props));
8665
  }
8666
+
8667
+ /* harmony default export */ __webpack_exports__["a"] = (Icon);
8668
  //# sourceMappingURL=index.js.map
 
8669
 
8670
  /***/ }),
8671
 
8672
+ /***/ 2:
8673
  /***/ (function(module, exports) {
8674
 
8675
+ (function() { module.exports = this["wp"]["i18n"]; }());
8676
 
8677
  /***/ }),
8678
 
8679
+ /***/ 20:
8680
  /***/ (function(module, exports) {
8681
 
8682
+ (function() { module.exports = this["wp"]["compose"]; }());
8683
 
8684
  /***/ }),
8685
 
8686
+ /***/ 21:
8687
+ /***/ (function(module, exports) {
 
 
8688
 
8689
+ (function() { module.exports = this["wc"]["navigation"]; }());
 
8690
 
8691
+ /***/ }),
8692
 
8693
+ /***/ 22:
8694
+ /***/ (function(module, exports) {
 
 
 
 
8695
 
8696
+ (function() { module.exports = this["wc"]["data"]; }());
 
 
 
8697
 
8698
+ /***/ }),
 
 
 
8699
 
8700
+ /***/ 23:
8701
+ /***/ (function(module, exports) {
 
8702
 
8703
+ (function() { module.exports = this["wp"]["url"]; }());
 
 
8704
 
8705
+ /***/ }),
 
 
8706
 
8707
+ /***/ 24:
8708
+ /***/ (function(module, exports) {
8709
 
8710
+ function _extends() {
8711
+ module.exports = _extends = Object.assign || function (target) {
8712
+ for (var i = 1; i < arguments.length; i++) {
8713
+ var source = arguments[i];
8714
 
8715
+ for (var key in source) {
8716
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
8717
+ target[key] = source[key];
8718
+ }
8719
+ }
8720
+ }
8721
 
8722
+ return target;
8723
+ };
 
8724
 
8725
+ return _extends.apply(this, arguments);
8726
+ }
8727
 
8728
+ module.exports = _extends;
 
8729
 
8730
+ /***/ }),
 
8731
 
8732
+ /***/ 25:
8733
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
8734
 
8735
+ "use strict";
8736
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return ADMIN_URL; });
8737
+ /* unused harmony export COUNTRIES */
8738
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return CURRENCY; });
8739
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return LOCALE; });
8740
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return ORDER_STATUSES; });
8741
+ /* unused harmony export SITE_TITLE */
8742
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return WC_ASSET_URL; });
8743
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return getSetting; });
8744
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return setSetting; });
8745
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return getAdminLink; });
8746
+ /* harmony import */ var _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(31);
8747
+ /* harmony import */ var _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__);
8748
+ /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2);
8749
+ /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__);
8750
 
8751
 
8752
+ /**
8753
+ * External dependencies
8754
+ */
8755
+ // Remove mutable data from settings object to prevent access. Data stores should be used instead.
8756
 
8757
+ var mutableSources = ['wcAdminSettings', 'preloadSettings'];
8758
+ var settings = (typeof wcSettings === "undefined" ? "undefined" : _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default()(wcSettings)) === 'object' ? wcSettings : {};
8759
+ var SOURCE = Object.keys(settings).reduce(function (source, key) {
8760
+ if (!mutableSources.includes(key)) {
8761
+ source[key] = settings[key];
8762
+ }
8763
 
8764
+ return source;
8765
+ }, {});
8766
+ var ADMIN_URL = SOURCE.adminUrl;
8767
+ var COUNTRIES = SOURCE.countries;
8768
+ var CURRENCY = SOURCE.currency;
8769
+ var LOCALE = SOURCE.locale;
8770
+ var ORDER_STATUSES = SOURCE.orderStatuses;
8771
+ var SITE_TITLE = SOURCE.siteTitle;
8772
+ var WC_ASSET_URL = SOURCE.wcAssetUrl;
8773
+ /**
8774
+ * Retrieves a setting value from the setting state.
8775
+ *
8776
+ * @param {string} name The identifier for the setting.
8777
+ * @param {*} [fallback=false] The value to use as a fallback
8778
+ * if the setting is not in the
8779
+ * state.
8780
+ * @param {Function} [filter=( val ) => val] A callback for filtering the
8781
+ * value before it's returned.
8782
+ * Receives both the found value
8783
+ * (if it exists for the key) and
8784
+ * the provided fallback arg.
8785
+ *
8786
+ * @return {*} The value present in the settings state for the given
8787
+ * name.
8788
+ */
8789
 
8790
+ function getSetting(name) {
8791
+ var fallback = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
8792
+ var filter = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : function (val) {
8793
+ return val;
8794
+ };
8795
 
8796
+ if (mutableSources.includes(name)) {
8797
+ throw new Error(Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Mutable settings should be accessed via data store.'));
8798
+ }
8799
 
8800
+ var value = SOURCE.hasOwnProperty(name) ? SOURCE[name] : fallback;
8801
+ return filter(value, fallback);
8802
+ }
8803
  /**
8804
+ * Sets a value to a property on the settings state.
8805
+ *
8806
+ * NOTE: This feature is to be removed in favour of data stores when a full migration
8807
+ * is complete.
8808
+ *
8809
+ * @deprecated
8810
+ *
8811
+ * @param {string} name The setting property key for the
8812
+ * setting being mutated.
8813
+ * @param {*} value The value to set.
8814
+ * @param {Function} [filter=( val ) => val] Allows for providing a callback
8815
+ * to sanitize the setting (eg.
8816
+ * ensure it's a number)
8817
  */
8818
 
8819
+ function setSetting(name, value) {
8820
+ var filter = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : function (val) {
8821
+ return val;
8822
+ };
8823
 
8824
+ if (mutableSources.includes(name)) {
8825
+ throw new Error(Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__["__"])('Mutable settings should be mutated via data store.'));
8826
+ }
8827
 
8828
+ SOURCE[name] = filter(value);
8829
+ }
 
 
 
 
 
 
8830
  /**
8831
+ * Returns a string with the site's wp-admin URL appended. JS version of `admin_url`.
 
8832
  *
8833
+ * @param {string} path Relative path.
8834
+ * @return {string} Full admin URL.
 
 
 
 
 
 
 
 
 
8835
  */
8836
 
8837
+ function getAdminLink(path) {
8838
+ return (ADMIN_URL || '') + path;
8839
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8840
 
8841
+ /***/ }),
 
 
8842
 
8843
+ /***/ 26:
8844
+ /***/ (function(module, exports) {
 
 
 
 
8845
 
8846
+ (function() { module.exports = this["wp"]["apiFetch"]; }());
 
 
8847
 
8848
+ /***/ }),
 
 
 
 
 
 
8849
 
8850
+ /***/ 27:
8851
+ /***/ (function(module, exports) {
 
 
 
 
 
 
8852
 
8853
+ (function() { module.exports = this["wc"]["tracks"]; }());
 
 
 
 
 
 
 
 
8854
 
8855
+ /***/ }),
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8856
 
8857
+ /***/ 277:
8858
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
 
 
 
8859
 
8860
+ "use strict";
8861
+ /* WEBPACK VAR INJECTION */(function(process) {/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
8862
+ /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
8863
+ /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3);
8864
+ /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_1__);
8865
+ /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(6);
8866
+ /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
8867
+ /* harmony import */ var _wordpress_a11y__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(140);
8868
+ /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(2);
8869
+ /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__);
8870
+ /* harmony import */ var _wordpress_warning__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(278);
8871
+ /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(4);
8872
+ /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_6__);
8873
 
 
 
 
 
8874
 
8875
+ /**
8876
+ * External dependencies
8877
+ */
 
8878
 
 
 
 
 
8879
 
 
 
 
 
8880
 
 
 
 
 
8881
 
 
 
 
 
8882
 
 
 
 
 
8883
 
 
 
 
 
 
8884
 
8885
+ var NOTICE_TIMEOUT = 10000;
8886
+ /** @typedef {import('@wordpress/element').WPElement} WPElement */
 
 
 
8887
 
8888
+ /**
8889
+ * Custom hook which announces the message with the given politeness, if a
8890
+ * valid message is provided.
8891
+ *
8892
+ * @param {string|WPElement} [message] Message to announce.
8893
+ * @param {'polite'|'assertive'} politeness Politeness to announce.
8894
+ */
8895
 
8896
+ function useSpokenMessage(message, politeness) {
8897
+ var spokenMessage = typeof message === 'string' ? message : Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["renderToString"])(message);
8898
+ Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["useEffect"])(function () {
8899
+ if (spokenMessage) {
8900
+ Object(_wordpress_a11y__WEBPACK_IMPORTED_MODULE_3__[/* speak */ "a"])(spokenMessage, politeness);
8901
+ }
8902
+ }, [spokenMessage, politeness]);
8903
  }
8904
 
8905
+ function Snackbar(_ref, ref) {
8906
+ var className = _ref.className,
8907
+ children = _ref.children,
8908
+ _ref$spokenMessage = _ref.spokenMessage,
8909
+ spokenMessage = _ref$spokenMessage === void 0 ? children : _ref$spokenMessage,
8910
+ _ref$politeness = _ref.politeness,
8911
+ politeness = _ref$politeness === void 0 ? 'polite' : _ref$politeness,
8912
+ _ref$actions = _ref.actions,
8913
+ actions = _ref$actions === void 0 ? [] : _ref$actions,
8914
+ _ref$onRemove = _ref.onRemove,
8915
+ onRemove = _ref$onRemove === void 0 ? lodash__WEBPACK_IMPORTED_MODULE_1__["noop"] : _ref$onRemove,
8916
+ _ref$icon = _ref.icon,
8917
+ icon = _ref$icon === void 0 ? null : _ref$icon,
8918
+ _ref$explicitDismiss = _ref.explicitDismiss,
8919
+ explicitDismiss = _ref$explicitDismiss === void 0 ? false : _ref$explicitDismiss,
8920
+ _ref$onDismiss = _ref.onDismiss,
8921
+ onDismiss = _ref$onDismiss === void 0 ? null : _ref$onDismiss;
8922
+ onDismiss = onDismiss || lodash__WEBPACK_IMPORTED_MODULE_1__["noop"];
 
 
 
 
 
8923
 
8924
+ function dismissMe(event) {
8925
+ if (event && event.preventDefault) {
8926
+ event.preventDefault();
8927
+ }
 
 
 
8928
 
8929
+ onDismiss();
8930
+ onRemove();
8931
+ }
8932
 
8933
+ function onActionClick(event, onClick) {
8934
+ event.stopPropagation();
8935
+ onRemove();
 
 
 
 
 
 
 
8936
 
8937
+ if (onClick) {
8938
+ onClick(event);
8939
+ }
8940
+ }
8941
 
8942
+ useSpokenMessage(spokenMessage, politeness); // Only set up the timeout dismiss if we're not explicitly dismissing.
8943
 
8944
+ Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["useEffect"])(function () {
8945
+ var timeoutHandle = setTimeout(function () {
8946
+ if (!explicitDismiss) {
8947
+ onDismiss();
8948
+ onRemove();
8949
+ }
8950
+ }, NOTICE_TIMEOUT);
8951
+ return function () {
8952
+ return clearTimeout(timeoutHandle);
8953
+ };
8954
+ }, [explicitDismiss, onDismiss, onRemove]);
8955
+ var classes = classnames__WEBPACK_IMPORTED_MODULE_2___default()(className, 'components-snackbar', {
8956
+ 'components-snackbar-explicit-dismiss': !!explicitDismiss
8957
+ });
8958
 
8959
+ if (actions && actions.length > 1) {
8960
+ // we need to inform developers that snackbar only accepts 1 action
8961
+ typeof process !== "undefined" && process.env && "production" !== "production" ? Object(_wordpress_warning__WEBPACK_IMPORTED_MODULE_5__[/* default */ "a"])('Snackbar can only have 1 action, use Notice if your message require many messages') : void 0; // return first element only while keeping it inside an array
 
 
 
 
 
 
 
 
 
 
 
 
8962
 
8963
+ actions = [actions[0]];
8964
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8965
 
8966
+ var snackbarContentClassnames = classnames__WEBPACK_IMPORTED_MODULE_2___default()('components-snackbar__content', {
8967
+ 'components-snackbar__content-with-icon': !!icon
8968
+ });
8969
+ return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("div", {
8970
+ ref: ref,
8971
+ className: classes,
8972
+ onClick: !explicitDismiss ? dismissMe : lodash__WEBPACK_IMPORTED_MODULE_1__["noop"],
8973
+ tabIndex: "0",
8974
+ role: !explicitDismiss ? 'button' : '',
8975
+ onKeyPress: !explicitDismiss ? dismissMe : lodash__WEBPACK_IMPORTED_MODULE_1__["noop"],
8976
+ "aria-label": !explicitDismiss ? Object(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__["__"])('Dismiss this notice') : ''
8977
+ }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("div", {
8978
+ className: snackbarContentClassnames
8979
+ }, icon && Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("div", {
8980
+ className: "components-snackbar__icon"
8981
+ }, icon), children, actions.map(function (_ref2, index) {
8982
+ var label = _ref2.label,
8983
+ _onClick = _ref2.onClick,
8984
+ url = _ref2.url;
8985
+ return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_components__WEBPACK_IMPORTED_MODULE_6__["Button"], {
8986
+ key: index,
8987
+ href: url,
8988
+ isTertiary: true,
8989
+ onClick: function onClick(event) {
8990
+ return onActionClick(event, _onClick);
8991
+ },
8992
+ className: "components-snackbar__action"
8993
+ }, label);
8994
+ }), explicitDismiss && Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("span", {
8995
+ role: "button",
8996
+ "aria-label": "Dismiss this notice",
8997
+ tabIndex: "0",
8998
+ className: "components-snackbar__dismiss-button",
8999
+ onClick: dismissMe,
9000
+ onKeyPress: dismissMe
9001
+ }, "\u2715")));
9002
  }
 
 
 
9003
 
9004
+ /* harmony default export */ __webpack_exports__["a"] = (Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["forwardRef"])(Snackbar));
9005
+ /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(125)))
9006
 
9007
+ /***/ }),
9008
 
9009
+ /***/ 278:
9010
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
9011
 
9012
+ "use strict";
9013
+ /* WEBPACK VAR INJECTION */(function(process) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return warning; });
9014
+ function isDev() {
9015
+ return typeof process !== 'undefined' && process.env && "production" !== 'production';
9016
+ }
9017
  /**
9018
+ * Shows a warning with `message` if environment is not `production`.
9019
+ *
9020
+ * @param {string} message Message to show in the warning.
9021
+ *
9022
+ * @example
9023
+ * ```js
9024
+ * import warning from '@wordpress/warning';
9025
+ *
9026
+ * function MyComponent( props ) {
9027
+ * if ( ! props.title ) {
9028
+ * warning( '`props.title` was not passed' );
9029
+ * }
9030
+ * ...
9031
+ * }
9032
+ * ```
9033
  */
9034
 
 
 
 
9035
 
9036
+ function warning(message) {
9037
+ if (!isDev()) {
9038
+ return;
9039
+ } // eslint-disable-next-line no-console
9040
 
9041
 
9042
+ console.warn(message); // Throwing an error and catching it immediately to improve debugging
9043
+ // A consumer can use 'pause on caught exceptions'
9044
+ // https://github.com/facebook/react/issues/4216
 
 
 
 
 
 
 
9045
 
9046
+ try {
9047
+ throw Error(message);
9048
+ } catch (x) {// do nothing
9049
+ }
9050
+ }
9051
+ //# sourceMappingURL=index.js.map
9052
+ /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(125)))
9053
 
9054
+ /***/ }),
 
 
 
9055
 
9056
+ /***/ 279:
9057
+ /***/ (function(module, exports) {
9058
 
9059
+ (function() { module.exports = this["wc"]["customerEffortScore"]; }());
 
 
9060
 
9061
+ /***/ }),
 
9062
 
9063
+ /***/ 286:
9064
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
9065
+
9066
+ "use strict";
 
 
 
 
 
 
 
 
9067
 
9068
+ // EXPORTS
9069
+ __webpack_require__.d(__webpack_exports__, "a", function() { return /* reexport */ customer_effort_score_tracks_container; });
9070
 
9071
+ // UNUSED EXPORTS: CustomerEffortScoreTracks
9072
 
9073
+ // NAMESPACE OBJECT: ./client/customer-effort-score-tracks/data/actions.js
9074
+ var actions_namespaceObject = {};
9075
+ __webpack_require__.r(actions_namespaceObject);
9076
+ __webpack_require__.d(actions_namespaceObject, "setCesSurveyQueue", function() { return setCesSurveyQueue; });
9077
+ __webpack_require__.d(actions_namespaceObject, "addCesSurvey", function() { return addCesSurvey; });
9078
+ __webpack_require__.d(actions_namespaceObject, "addCesSurveyForAnalytics", function() { return addCesSurveyForAnalytics; });
9079
 
9080
+ // NAMESPACE OBJECT: ./client/customer-effort-score-tracks/data/resolvers.js
9081
+ var resolvers_namespaceObject = {};
9082
+ __webpack_require__.r(resolvers_namespaceObject);
9083
+ __webpack_require__.d(resolvers_namespaceObject, "getCesSurveyQueue", function() { return resolvers_getCesSurveyQueue; });
9084
 
9085
+ // NAMESPACE OBJECT: ./client/customer-effort-score-tracks/data/selectors.js
9086
+ var selectors_namespaceObject = {};
9087
+ __webpack_require__.r(selectors_namespaceObject);
9088
+ __webpack_require__.d(selectors_namespaceObject, "getCesSurveyQueue", function() { return selectors_getCesSurveyQueue; });
9089
 
9090
+ // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/toConsumableArray.js
9091
+ var toConsumableArray = __webpack_require__(19);
9092
+ var toConsumableArray_default = /*#__PURE__*/__webpack_require__.n(toConsumableArray);
9093
 
9094
+ // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/defineProperty.js
9095
+ var defineProperty = __webpack_require__(5);
9096
+ var defineProperty_default = /*#__PURE__*/__webpack_require__.n(defineProperty);
9097
 
9098
+ // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/slicedToArray.js
9099
+ var slicedToArray = __webpack_require__(18);
9100
+ var slicedToArray_default = /*#__PURE__*/__webpack_require__.n(slicedToArray);
 
 
9101
 
9102
+ // EXTERNAL MODULE: external {"this":["wp","element"]}
9103
+ var external_this_wp_element_ = __webpack_require__(0);
 
 
 
9104
 
9105
+ // EXTERNAL MODULE: ./node_modules/prop-types/index.js
9106
+ var prop_types = __webpack_require__(1);
9107
+ var prop_types_default = /*#__PURE__*/__webpack_require__.n(prop_types);
9108
 
9109
+ // EXTERNAL MODULE: external {"this":["wc","tracks"]}
9110
+ var external_this_wc_tracks_ = __webpack_require__(27);
 
 
 
 
 
 
 
 
9111
 
9112
+ // EXTERNAL MODULE: external {"this":["wc","customerEffortScore"]}
9113
+ var external_this_wc_customerEffortScore_ = __webpack_require__(279);
9114
+ var external_this_wc_customerEffortScore_default = /*#__PURE__*/__webpack_require__.n(external_this_wc_customerEffortScore_);
 
9115
 
9116
+ // EXTERNAL MODULE: external {"this":["wp","compose"]}
9117
+ var external_this_wp_compose_ = __webpack_require__(20);
 
 
 
9118
 
9119
+ // EXTERNAL MODULE: external {"this":["wp","data"]}
9120
+ var external_this_wp_data_ = __webpack_require__(11);
9121
 
9122
+ // EXTERNAL MODULE: external {"this":["wc","data"]}
9123
+ var external_this_wc_data_ = __webpack_require__(22);
 
9124
 
9125
+ // EXTERNAL MODULE: external {"this":["wp","i18n"]}
9126
+ var external_this_wp_i18n_ = __webpack_require__(2);
9127
 
9128
+ // CONCATENATED MODULE: ./client/customer-effort-score-tracks/customer-effort-score-tracks.js
9129
 
9130
 
9131
 
9132
 
 
 
 
 
 
 
 
 
9133
 
9134
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
9135
+
9136
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { defineProperty_default()(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
9137
 
9138
  /**
9139
  * External dependencies
9142
 
9143
 
9144
 
 
 
 
9145
 
9146
 
9147
 
9148
 
9149
+ var SHOWN_FOR_ACTIONS_OPTION_NAME = 'woocommerce_ces_shown_for_actions';
9150
+ var ADMIN_INSTALL_TIMESTAMP_OPTION_NAME = 'woocommerce_admin_install_timestamp';
9151
+ var ALLOW_TRACKING_OPTION_NAME = 'woocommerce_allow_tracking';
9152
  /**
9153
+ * A CustomerEffortScore wrapper that uses tracks to track the selected
9154
+ * customer effort score.
 
 
9155
  *
9156
+ * @param {Object} props Component props.
9157
+ * @param {string} props.action The action name sent to Tracks.
9158
+ * @param {Object} props.trackProps Additional props sent to Tracks.
9159
+ * @param {string} props.label The label displayed in the modal.
9160
+ * @param {string} props.onSubmitLabel The label displayed upon survey submission.
9161
+ * @param {Array} props.cesShownForActions The array of actions that the CES modal has been shown for.
9162
+ * @param {boolean} props.allowTracking Whether tracking is allowed or not.
9163
+ * @param {boolean} props.resolving Are values still being resolved.
9164
+ * @param {number} props.storeAgeInWeeks The age of the store in weeks.
9165
+ * @param {Function} props.updateOptions Function to update options.
9166
+ * @param {Function} props.createNotice Function to create a snackbar.
9167
  */
9168
 
9169
+ function CustomerEffortScoreTracks(_ref) {
9170
+ var action = _ref.action,
9171
+ trackProps = _ref.trackProps,
9172
+ label = _ref.label,
9173
+ _ref$onSubmitLabel = _ref.onSubmitLabel,
9174
+ onSubmitLabel = _ref$onSubmitLabel === void 0 ? Object(external_this_wp_i18n_["__"])('Thank you for your feedback!', 'woocommerce-admin') : _ref$onSubmitLabel,
9175
+ cesShownForActions = _ref.cesShownForActions,
9176
+ allowTracking = _ref.allowTracking,
9177
  resolving = _ref.resolving,
9178
+ storeAgeInWeeks = _ref.storeAgeInWeeks,
9179
+ updateOptions = _ref.updateOptions,
9180
+ createNotice = _ref.createNotice;
9181
+
9182
+ var _useState = Object(external_this_wp_element_["useState"])(false),
9183
+ _useState2 = slicedToArray_default()(_useState, 2),
9184
+ modalShown = _useState2[0],
9185
+ setModalShown = _useState2[1];
9186
 
9187
  if (resolving) {
9188
  return null;
9189
+ } // Don't show if tracking is disallowed.
 
 
 
 
 
 
 
 
9190
 
 
 
 
 
 
 
 
 
 
 
9191
 
9192
+ if (!allowTracking) {
9193
+ return null;
9194
+ } // We only want to return null early if the modal was already shown
9195
+ // for this action *before* this component was initially instantiated.
9196
+ //
9197
+ // We want to make sure we still render CustomerEffortScore below
9198
+ // (we don't want to return null early), if the modal was shown for this
9199
+ // instantiation, so that the component doesn't go away while we are
9200
+ // still showing it.
9201
 
 
 
 
 
9202
 
9203
+ if (cesShownForActions.indexOf(action) !== -1 && !modalShown) {
9204
+ return null;
9205
+ }
 
 
 
 
 
 
9206
 
9207
+ var onNoticeShown = function onNoticeShown() {
9208
+ Object(external_this_wc_tracks_["recordEvent"])('ces_snackbar_view', _objectSpread({
9209
+ action: action,
9210
+ store_age: storeAgeInWeeks
9211
+ }, trackProps));
9212
  };
 
 
 
9213
 
9214
+ var addActionToShownOption = function addActionToShownOption() {
9215
+ updateOptions(defineProperty_default()({}, SHOWN_FOR_ACTIONS_OPTION_NAME, [action].concat(toConsumableArray_default()(cesShownForActions))));
 
 
 
 
 
 
 
 
 
 
 
 
9216
  };
 
 
 
9217
 
9218
+ var onNoticeDismissed = function onNoticeDismissed() {
9219
+ Object(external_this_wc_tracks_["recordEvent"])('ces_snackbar_dismiss', _objectSpread({
9220
+ action: action,
9221
+ store_age: storeAgeInWeeks
9222
+ }, trackProps));
9223
+ addActionToShownOption();
9224
+ };
9225
 
9226
+ var onModalShown = function onModalShown() {
9227
+ setModalShown(true);
9228
+ Object(external_this_wc_tracks_["recordEvent"])('ces_view', _objectSpread({
9229
+ action: action,
9230
+ store_age: storeAgeInWeeks
9231
+ }, trackProps));
9232
+ addActionToShownOption();
9233
+ };
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9234
 
9235
+ var recordScore = function recordScore(score, comments) {
9236
+ Object(external_this_wc_tracks_["recordEvent"])('ces_feedback', _objectSpread({
9237
+ action: action,
9238
+ score: score,
9239
+ comments: comments || '',
9240
+ store_age: storeAgeInWeeks
9241
+ }, trackProps));
9242
+ createNotice('success', onSubmitLabel);
9243
+ };
9244
 
9245
+ return Object(external_this_wp_element_["createElement"])(external_this_wc_customerEffortScore_default.a, {
9246
+ recordScoreCallback: recordScore,
9247
+ label: label,
9248
+ onNoticeShownCallback: onNoticeShown,
9249
+ onNoticeDismissedCallback: onNoticeDismissed,
9250
+ onModalShownCallback: onModalShown,
9251
+ icon: Object(external_this_wp_element_["createElement"])("span", {
9252
+ style: {
9253
+ height: 21,
9254
+ width: 21
9255
+ },
9256
+ role: "img",
9257
+ "aria-label": Object(external_this_wp_i18n_["__"])('Pencil icon', 'woocommerce-admin')
9258
+ }, "\u270F\uFE0F")
9259
+ });
9260
+ }
9261
 
9262
+ CustomerEffortScoreTracks.propTypes = {
9263
+ /**
9264
+ * The action name sent to Tracks.
9265
+ */
9266
+ action: prop_types_default.a.string.isRequired,
9267
 
9268
+ /**
9269
+ * Additional props sent to Tracks.
9270
+ */
9271
+ trackProps: prop_types_default.a.object,
9272
 
9273
+ /**
9274
+ * The label displayed in the modal.
9275
+ */
9276
+ label: prop_types_default.a.string.isRequired,
9277
 
9278
+ /**
9279
+ * The label for the snackbar that appears upon survey submission.
9280
+ */
9281
+ onSubmitLabel: prop_types_default.a.string,
9282
 
9283
+ /**
9284
+ * The array of actions that the CES modal has been shown for.
9285
+ */
9286
+ cesShownForActions: prop_types_default.a.arrayOf(prop_types_default.a.string).isRequired,
9287
 
9288
+ /**
9289
+ * Whether tracking is allowed or not.
9290
+ */
9291
+ allowTracking: prop_types_default.a.bool,
9292
 
9293
+ /**
9294
+ * Whether props are still being resolved.
9295
+ */
9296
+ resolving: prop_types_default.a.bool.isRequired,
9297
 
9298
+ /**
9299
+ * The age of the store in weeks.
9300
+ */
9301
+ storeAgeInWeeks: prop_types_default.a.number,
9302
 
9303
+ /**
9304
+ * Function to update options.
9305
+ */
9306
+ updateOptions: prop_types_default.a.func,
9307
 
9308
+ /**
9309
+ * Function to create a snackbar
9310
+ */
9311
+ createNotice: prop_types_default.a.func
9312
+ };
9313
 
9314
+ function getStoreAgeInWeeks(adminInstallTimestamp) {
9315
+ if (adminInstallTimestamp === 0) {
9316
+ return null;
9317
+ } // Date.now() is ms since Unix epoch, adminInstallTimestamp is in
9318
+ // seconds since Unix epoch.
9319
 
 
 
 
 
 
 
 
 
 
 
9320
 
9321
+ var storeAgeInMs = Date.now() - adminInstallTimestamp * 1000;
9322
+ var storeAgeInWeeks = Math.round(storeAgeInMs / external_this_wc_data_["WEEK"]);
9323
+ return storeAgeInWeeks;
9324
+ }
9325
 
9326
+ /* harmony default export */ var customer_effort_score_tracks = (Object(external_this_wp_compose_["compose"])(Object(external_this_wp_data_["withSelect"])(function (select) {
9327
+ var _select = select(external_this_wc_data_["OPTIONS_STORE_NAME"]),
9328
+ getOption = _select.getOption,
9329
+ isResolving = _select.isResolving;
9330
 
9331
+ var cesShownForActions = getOption(SHOWN_FOR_ACTIONS_OPTION_NAME) || [];
9332
+ var adminInstallTimestamp = getOption(ADMIN_INSTALL_TIMESTAMP_OPTION_NAME) || 0;
9333
+ var storeAgeInWeeks = getStoreAgeInWeeks(adminInstallTimestamp);
9334
+ var allowTrackingOption = getOption(ALLOW_TRACKING_OPTION_NAME) || 'no';
9335
+ var allowTracking = allowTrackingOption === 'yes';
9336
+ var resolving = isResolving('getOption', [SHOWN_FOR_ACTIONS_OPTION_NAME]) || storeAgeInWeeks === null || isResolving('getOption', [ADMIN_INSTALL_TIMESTAMP_OPTION_NAME]) || isResolving('getOption', [ALLOW_TRACKING_OPTION_NAME]);
9337
+ return {
9338
+ cesShownForActions: cesShownForActions,
9339
+ allowTracking: allowTracking,
9340
+ storeAgeInWeeks: storeAgeInWeeks,
9341
+ resolving: resolving
9342
+ };
9343
+ }), Object(external_this_wp_data_["withDispatch"])(function (dispatch) {
9344
+ var _dispatch = dispatch(external_this_wc_data_["OPTIONS_STORE_NAME"]),
9345
+ updateOptions = _dispatch.updateOptions;
9346
 
9347
+ var _dispatch2 = dispatch('core/notices'),
9348
+ createNotice = _dispatch2.createNotice;
9349
 
9350
+ return {
9351
+ updateOptions: updateOptions,
9352
+ createNotice: createNotice
9353
+ };
9354
+ }))(CustomerEffortScoreTracks));
9355
+ // EXTERNAL MODULE: ./client/customer-effort-score-tracks/data/constants.js
9356
+ var constants = __webpack_require__(76);
9357
 
9358
+ // EXTERNAL MODULE: external {"this":["wp","dataControls"]}
9359
+ var external_this_wp_dataControls_ = __webpack_require__(17);
9360
 
9361
+ // CONCATENATED MODULE: ./client/customer-effort-score-tracks/data/action-types.js
9362
+ var TYPES = {
9363
+ SET_CES_SURVEY_QUEUE: 'SET_CES_SURVEY_QUEUE',
9364
+ ADD_CES_SURVEY: 'ADD_CES_SURVEY'
9365
+ };
9366
+ /* harmony default export */ var action_types = (TYPES);
9367
+ // CONCATENATED MODULE: ./client/customer-effort-score-tracks/data/actions.js
9368
  /**
9369
  * External dependencies
9370
  */
9371
 
 
 
 
 
 
 
 
 
9372
  /**
9373
  * Internal dependencies
9374
  */
9375
 
9376
 
9377
+ /**
9378
+ * Initialize the state
9379
+ *
9380
+ * @param {Object} queue initial queue
9381
+ */
9382
 
9383
+ function setCesSurveyQueue(queue) {
9384
+ return {
9385
+ type: action_types.SET_CES_SURVEY_QUEUE,
9386
+ queue: queue
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9387
  };
9388
+ }
9389
+ /**
9390
+ * Add a new CES track to the state.
9391
+ *
9392
+ * @param {string} action action name for the survey
9393
+ * @param {string} label label for the snackback
9394
+ * @param {string} pageNow value of window.pagenow
9395
+ * @param {string} adminPage value of window.adminpage
9396
+ * @param {string} onsubmit_label label for the snackback onsubmit
9397
+ */
9398
 
9399
+ function addCesSurvey(action, label) {
9400
+ var pageNow = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : window.pagenow;
9401
+ var adminPage = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : window.adminpage;
9402
+ var onsubmit_label = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : undefined;
9403
+ return {
9404
+ type: action_types.ADD_CES_SURVEY,
9405
+ action: action,
9406
+ label: label,
9407
+ pageNow: pageNow,
9408
+ adminPage: adminPage,
9409
+ onsubmit_label: onsubmit_label
9410
+ };
9411
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9412
  /**
9413
+ * Add a new CES survey track for the pages in Analytics menu
9414
  */
9415
 
9416
+ function addCesSurveyForAnalytics() {
9417
+ return addCesSurvey('analytics_filtered', Object(external_this_wp_i18n_["__"])('How easy was it to filter your store analytics?', 'woocommerce-admin'), 'woocommerce_page_wc-admin', 'woocommerce_page_wc-admin');
9418
+ }
9419
+ // EXTERNAL MODULE: ./node_modules/@babel/runtime/regenerator/index.js
9420
+ var regenerator = __webpack_require__(8);
9421
+ var regenerator_default = /*#__PURE__*/__webpack_require__.n(regenerator);
9422
 
9423
+ // CONCATENATED MODULE: ./client/customer-effort-score-tracks/data/resolvers.js
9424
 
9425
 
9426
+ var _marked = /*#__PURE__*/regenerator_default.a.mark(resolvers_getCesSurveyQueue);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9427
 
9428
+ /**
9429
+ * External dependencies
9430
+ */
 
 
 
 
 
 
 
 
 
9431
 
9432
+ /**
9433
+ * Internal dependencies
9434
+ */
 
 
 
 
 
 
 
 
 
9435
 
 
 
9436
 
9437
 
9438
+ function resolvers_getCesSurveyQueue() {
9439
+ var response;
9440
+ return regenerator_default.a.wrap(function getCesSurveyQueue$(_context) {
9441
+ while (1) {
9442
+ switch (_context.prev = _context.next) {
9443
+ case 0:
9444
+ _context.next = 2;
9445
+ return Object(external_this_wp_dataControls_["apiFetch"])({
9446
+ path: "".concat(constants["a" /* API_NAMESPACE */], "/options?options=").concat(constants["b" /* QUEUE_OPTION_NAME */])
9447
+ });
9448
 
9449
+ case 2:
9450
+ response = _context.sent;
9451
 
9452
+ if (!response) {
9453
+ _context.next = 8;
9454
+ break;
9455
+ }
9456
 
9457
+ _context.next = 6;
9458
+ return setCesSurveyQueue(response[constants["b" /* QUEUE_OPTION_NAME */]] || []);
9459
 
9460
+ case 6:
9461
+ _context.next = 9;
9462
+ break;
9463
 
9464
+ case 8:
9465
+ throw new Error();
9466
 
9467
+ case 9:
9468
+ case "end":
9469
+ return _context.stop();
9470
+ }
9471
+ }
9472
+ }, _marked);
9473
+ }
9474
+ // CONCATENATED MODULE: ./client/customer-effort-score-tracks/data/selectors.js
9475
+ function selectors_getCesSurveyQueue(state) {
9476
+ return state.queue;
9477
+ }
9478
+ // CONCATENATED MODULE: ./client/customer-effort-score-tracks/data/reducer.js
9479
 
9480
 
9481
 
9482
+ function reducer_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
9483
 
9484
+ function reducer_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { reducer_ownKeys(Object(source), true).forEach(function (key) { defineProperty_default()(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { reducer_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
9485
 
9486
  /**
9487
  * Internal dependencies
9488
  */
9489
 
9490
+ var DEFAULT_STATE = {
9491
+ queue: []
9492
+ };
9493
 
9494
+ var reducer_reducer = function reducer() {
9495
+ var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : DEFAULT_STATE;
9496
+ var action = arguments.length > 1 ? arguments[1] : undefined;
9497
 
9498
+ switch (action.type) {
9499
+ case action_types.SET_CES_SURVEY_QUEUE:
9500
+ return reducer_objectSpread(reducer_objectSpread({}, state), {}, {
9501
+ queue: action.queue
9502
+ });
9503
 
9504
+ case action_types.ADD_CES_SURVEY:
9505
+ // Prevent duplicate
9506
+ var hasDuplicate = state.queue.filter(function (track) {
9507
+ return track.action === action.action;
9508
+ });
9509
 
9510
+ if (hasDuplicate.length) {
9511
+ return state;
9512
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9513
 
9514
+ var newTrack = {
9515
+ action: action.action,
9516
+ label: action.label,
9517
+ pagenow: action.pageNow,
9518
+ adminpage: action.adminPage,
9519
+ onSubmitLabel: action.onSubmitLabel
9520
+ };
9521
+ return reducer_objectSpread(reducer_objectSpread({}, state), {}, {
9522
+ queue: [].concat(toConsumableArray_default()(state.queue), [newTrack])
9523
+ });
9524
 
9525
+ default:
9526
+ return state;
9527
+ }
9528
+ };
9529
 
9530
+ /* harmony default export */ var data_reducer = (reducer_reducer);
9531
+ // CONCATENATED MODULE: ./client/customer-effort-score-tracks/data/index.js
9532
+ /**
9533
+ * External dependencies
9534
+ */
9535
 
 
 
 
 
9536
 
9537
+ /**
9538
+ * Internal dependencies
9539
+ */
9540
 
 
 
 
 
 
 
 
9541
 
 
 
 
 
 
 
9542
 
9543
 
 
 
 
9544
 
9545
 
9546
+ /* harmony default export */ var data = (Object(external_this_wp_data_["registerStore"])(constants["c" /* STORE_KEY */], {
9547
+ actions: actions_namespaceObject,
9548
+ selectors: selectors_namespaceObject,
9549
+ resolvers: resolvers_namespaceObject,
9550
+ controls: external_this_wp_dataControls_["controls"],
9551
+ reducer: data_reducer
9552
+ }));
9553
+ // CONCATENATED MODULE: ./client/customer-effort-score-tracks/customer-effort-score-tracks-container.js
9554
 
 
 
 
 
9555
 
9556
+ /**
9557
+ * External dependencies
9558
+ */
 
9559
 
 
 
 
 
 
9560
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9561
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9562
 
9563
+ /**
9564
+ * Internal dependencies
9565
+ */
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9566
 
 
 
 
 
9567
 
 
 
 
 
 
 
9568
 
9569
 
9570
  /**
9571
+ * Maps the queue of CES tracks surveys to CustomerEffortScoreTracks
9572
+ * components. Note that generally there will only be a single survey per page
9573
+ * however this is designed to be flexible if multiple surveys per page are
9574
+ * added in the future.
9575
+ *
9576
+ * @param {Object} props Component props.
9577
+ * @param {Array} props.queue The queue of surveys.
9578
+ * @param {boolean} props.resolving Whether the queue is resolving.
9579
+ * @param {Function} props.clearQueue Sets up clearing of the queue on the next page load.
9580
  */
9581
 
9582
+ function CustomerEffortScoreTracksContainer(_ref) {
9583
+ var queue = _ref.queue,
9584
+ resolving = _ref.resolving,
9585
+ clearQueue = _ref.clearQueue;
9586
+
9587
+ if (resolving) {
9588
+ return null;
9589
+ }
9590
 
9591
+ var queueForPage = queue.filter(function (item) {
9592
+ return item.pagenow === window.pagenow && item.adminpage === window.adminpage;
9593
+ });
9594
 
9595
+ if (queueForPage.length) {
9596
+ clearQueue();
9597
+ }
9598
 
9599
+ return Object(external_this_wp_element_["createElement"])(external_this_wp_element_["Fragment"], null, queueForPage.map(function (item, index) {
9600
+ return Object(external_this_wp_element_["createElement"])(customer_effort_score_tracks, {
9601
+ key: index,
9602
+ action: item.action,
9603
+ label: item.label,
9604
+ onSubmitLabel: item.onsubmit_label,
9605
+ trackProps: item.props || {}
9606
+ });
9607
+ }));
9608
+ }
9609
 
9610
+ CustomerEffortScoreTracksContainer.propTypes = {
9611
+ /**
9612
+ * The queue of CES tracks surveys to display.
9613
+ */
9614
+ queue: prop_types_default.a.arrayOf(prop_types_default.a.object),
9615
 
9616
+ /**
9617
+ * If the queue option is being resolved.
9618
+ */
9619
+ resolving: prop_types_default.a.bool,
9620
 
9621
+ /**
9622
+ * Set up clearing the queue on the next page load.
9623
+ */
9624
+ clearQueue: prop_types_default.a.func
9625
  };
9626
+ /* harmony default export */ var customer_effort_score_tracks_container = (Object(external_this_wp_compose_["compose"])(Object(external_this_wp_data_["withSelect"])(function (select) {
9627
+ var _select = select(constants["c" /* STORE_KEY */]),
9628
+ getCesSurveyQueue = _select.getCesSurveyQueue,
9629
+ isResolving = _select.isResolving;
9630
+
9631
+ var queue = getCesSurveyQueue();
9632
+ var resolving = isResolving('getOption', [constants["b" /* QUEUE_OPTION_NAME */]]);
9633
+ return {
9634
+ queue: queue,
9635
+ resolving: resolving
9636
+ };
9637
+ }), Object(external_this_wp_data_["withDispatch"])(function (dispatch) {
9638
+ var _dispatch = dispatch(external_this_wc_data_["OPTIONS_STORE_NAME"]),
9639
+ updateOptions = _dispatch.updateOptions;
9640
+
9641
+ return {
9642
+ clearQueue: function clearQueue() {
9643
+ // This sets an option that should be used on the next page
9644
+ // load to clear the CES tracks queue for the current page (see
9645
+ // CustomerEffortScoreTracks.php) - clearing the queue
9646
+ // directly puts this into an infinite loop which is picked
9647
+ // up by React.
9648
+ updateOptions({
9649
+ woocommerce_clear_ces_tracks_queue_for_page: {
9650
+ pagenow: window.pagenow,
9651
+ adminpage: window.adminpage
9652
+ }
9653
+ });
9654
+ }
9655
+ };
9656
+ }))(CustomerEffortScoreTracksContainer));
9657
+ // CONCATENATED MODULE: ./client/customer-effort-score-tracks/index.js
9658
+
9659
 
 
 
9660
 
9661
  /***/ }),
9662
 
9667
 
9668
  /***/ }),
9669
 
9670
+ /***/ 294:
9671
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
9672
 
9673
  "use strict";
9675
  /* WEBPACK VAR INJECTION */(function(global) {/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
9676
  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
9677
  /* harmony import */ var _wordpress_notices__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(469);
9678
+ /* harmony import */ var _woocommerce_data__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(22);
9679
  /* harmony import */ var _woocommerce_data__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_woocommerce_data__WEBPACK_IMPORTED_MODULE_2__);
9680
+ /* harmony import */ var _stylesheets_index_scss__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(296);
9681
  /* harmony import */ var _stylesheets_index_scss__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_stylesheets_index_scss__WEBPACK_IMPORTED_MODULE_3__);
9682
+ /* harmony import */ var _layout__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(141);
9683
  /* harmony import */ var _customer_effort_score_tracks__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(286);
 
9684
 
9685
 
9686
  /**
9695
 
9696
 
9697
 
 
9698
  // Modify webpack pubilcPath at runtime based on location of WordPress Plugin.
9699
  // eslint-disable-next-line no-undef,camelcase
9700
 
9736
  Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["render"])(Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])("div", {
9737
  className: "woocommerce-layout"
9738
  }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_layout__WEBPACK_IMPORTED_MODULE_4__[/* PrimaryLayout */ "c"], null)), wpBody.insertBefore(noticeContainer, wrap));
 
 
 
 
 
 
9739
  } // Render the CustomerEffortScoreTracksContainer only if
9740
  // the feature flag is enabled.
9741
 
9747
  Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["render"])(Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_customer_effort_score_tracks__WEBPACK_IMPORTED_MODULE_5__[/* CustomerEffortScoreTracksContainer */ "a"], null), root.insertBefore(document.createElement('div'), null));
9748
  })();
9749
  }
9750
+ /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(84)))
9751
+
9752
+ /***/ }),
9753
+
9754
+ /***/ 296:
9755
+ /***/ (function(module, exports, __webpack_require__) {
9756
+
9757
+ // extracted by mini-css-extract-plugin
9758
 
9759
  /***/ }),
9760
 
9787
  /***/ }),
9788
 
9789
  /***/ 30:
9790
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
 
 
 
9791
 
9792
+ "use strict";
9793
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return Navigation; });
9794
+ /* unused harmony export NavigationBackButton */
9795
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return NavigationGroup; });
9796
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return NavigationMenu; });
9797
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return NavigationItem; });
9798
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return Text; });
9799
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return useSlot; });
9800
+ /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4);
9801
+ /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_0__);
9802
+ /**
9803
+ * External dependencies
9804
+ */
9805
 
9806
+ /**
9807
+ * Prioritize exports of non-experimental components over experimental.
9808
+ */
9809
 
9810
+ var Navigation = _wordpress_components__WEBPACK_IMPORTED_MODULE_0__["Navigation"] || _wordpress_components__WEBPACK_IMPORTED_MODULE_0__["__experimentalNavigation"];
9811
+ var NavigationBackButton = _wordpress_components__WEBPACK_IMPORTED_MODULE_0__["NavigationBackButton"] || _wordpress_components__WEBPACK_IMPORTED_MODULE_0__["__experimentalNavigationBackButton"];
9812
+ var NavigationGroup = _wordpress_components__WEBPACK_IMPORTED_MODULE_0__["NavigationGroup"] || _wordpress_components__WEBPACK_IMPORTED_MODULE_0__["__experimentalNavigationGroup"];
9813
+ var NavigationMenu = _wordpress_components__WEBPACK_IMPORTED_MODULE_0__["NavigationMenu"] || _wordpress_components__WEBPACK_IMPORTED_MODULE_0__["__experimentalNavigationMenu"];
9814
+ var NavigationItem = _wordpress_components__WEBPACK_IMPORTED_MODULE_0__["NavigationItem"] || _wordpress_components__WEBPACK_IMPORTED_MODULE_0__["__experimentalNavigationItem"];
9815
+ var Text = _wordpress_components__WEBPACK_IMPORTED_MODULE_0__["Text"] || _wordpress_components__WEBPACK_IMPORTED_MODULE_0__["__experimentalText"];
9816
+ var useSlot = _wordpress_components__WEBPACK_IMPORTED_MODULE_0__["useSlot"] || _wordpress_components__WEBPACK_IMPORTED_MODULE_0__["__experimentalUseSlot"];
9817
 
9818
  /***/ }),
9819
 
9832
  /***/ }),
9833
 
9834
  /***/ 302:
9835
+ /***/ (function(module, exports, __webpack_require__) {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9836
 
9837
+ // extracted by mini-css-extract-plugin
 
 
 
 
 
 
 
 
9838
 
9839
+ /***/ }),
 
 
 
 
9840
 
9841
+ /***/ 303:
9842
+ /***/ (function(module, exports, __webpack_require__) {
 
 
 
9843
 
9844
+ // extracted by mini-css-extract-plugin
 
9845
 
9846
  /***/ }),
9847
 
9848
+ /***/ 304:
9849
  /***/ (function(module, exports, __webpack_require__) {
9850
 
9851
  // extracted by mini-css-extract-plugin
9852
 
9853
  /***/ }),
9854
 
9855
+ /***/ 305:
9856
+ /***/ (function(module, exports, __webpack_require__) {
9857
+
9858
+ var setPrototypeOf = __webpack_require__(72);
9859
 
9860
  function _inheritsLoose(subClass, superClass) {
9861
  subClass.prototype = Object.create(superClass.prototype);
9862
  subClass.prototype.constructor = subClass;
9863
+ setPrototypeOf(subClass, superClass);
9864
  }
9865
 
9866
  module.exports = _inheritsLoose;
9867
 
9868
  /***/ }),
9869
 
9870
+ /***/ 306:
9871
  /***/ (function(module, exports, __webpack_require__) {
9872
 
9873
  // extracted by mini-css-extract-plugin
9874
 
9875
  /***/ }),
9876
 
9877
+ /***/ 307:
9878
  /***/ (function(module, exports) {
9879
 
9880
  module.exports = Array.isArray || function (arr) {
9882
  };
9883
 
9884
 
 
 
 
 
 
 
 
9885
  /***/ }),
9886
 
9887
  /***/ 31:
9888
+ /***/ (function(module, exports) {
9889
 
9890
+ function _typeof(obj) {
9891
+ "@babel/helpers - typeof";
 
 
 
 
 
 
 
 
 
 
 
9892
 
9893
+ if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
9894
+ module.exports = _typeof = function _typeof(obj) {
9895
+ return typeof obj;
9896
+ };
9897
+ } else {
9898
+ module.exports = _typeof = function _typeof(obj) {
9899
+ return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
9900
+ };
9901
+ }
9902
 
9903
+ return _typeof(obj);
9904
+ }
9905
+
9906
+ module.exports = _typeof;
 
 
 
9907
 
9908
  /***/ }),
9909
 
9935
  /***/ 34:
9936
  /***/ (function(module, exports, __webpack_require__) {
9937
 
9938
+ var objectWithoutPropertiesLoose = __webpack_require__(97);
9939
 
9940
  function _objectWithoutProperties(source, excluded) {
9941
  if (source == null) return {};
10003
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
10004
 
10005
  "use strict";
10006
+
10007
+ // EXPORTS
10008
+ __webpack_require__.d(__webpack_exports__, "a", function() { return /* binding */ _inheritsLoose; });
10009
+
10010
+ // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
10011
+ function _setPrototypeOf(o, p) {
10012
+ _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
10013
+ o.__proto__ = p;
10014
+ return o;
10015
+ };
10016
+
10017
+ return _setPrototypeOf(o, p);
10018
+ }
10019
+ // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/inheritsLoose.js
10020
+
10021
  function _inheritsLoose(subClass, superClass) {
10022
  subClass.prototype = Object.create(superClass.prototype);
10023
  subClass.prototype.constructor = subClass;
10024
+ _setPrototypeOf(subClass, superClass);
10025
  }
10026
 
10027
  /***/ }),
10028
 
10029
+ /***/ 4:
10030
+ /***/ (function(module, exports) {
10031
+
10032
+ (function() { module.exports = this["wp"]["components"]; }());
10033
+
10034
+ /***/ }),
10035
+
10036
+ /***/ 40:
10037
  /***/ (function(module, exports, __webpack_require__) {
10038
 
10039
  var arrayLikeToArray = __webpack_require__(37);
10044
  var n = Object.prototype.toString.call(o).slice(8, -1);
10045
  if (n === "Object" && o.constructor) n = o.constructor.name;
10046
  if (n === "Map" || n === "Set") return Array.from(o);
10047
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen);
10048
+ }
 
 
 
 
 
 
 
10049
 
10050
+ module.exports = _unsupportedIterableToArray;
10051
 
10052
  /***/ }),
10053
 
10054
+ /***/ 41:
10055
  /***/ (function(module, exports) {
10056
 
10057
  (function() { module.exports = this["wp"]["htmlEntities"]; }());
10058
 
10059
  /***/ }),
10060
 
10061
+ /***/ 42:
10062
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
10063
 
10064
  "use strict";
10080
 
10081
  /***/ }),
10082
 
10083
+ /***/ 43:
10084
  /***/ (function(module, exports) {
10085
 
10086
  (function() { module.exports = this["wp"]["hooks"]; }());
10087
 
10088
  /***/ }),
10089
 
10090
+ /***/ 44:
10091
  /***/ (function(module, exports) {
10092
 
10093
  function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
10151
  __webpack_require__.d(selectors_namespaceObject, "getNotices", function() { return getNotices; });
10152
 
10153
  // EXTERNAL MODULE: external {"this":["wp","data"]}
10154
+ var external_this_wp_data_ = __webpack_require__(11);
10155
 
10156
  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + 3 modules
10157
+ var toConsumableArray = __webpack_require__(82);
10158
 
10159
  // EXTERNAL MODULE: external "lodash"
10160
  var external_lodash_ = __webpack_require__(3);
10522
  }
10523
  //# sourceMappingURL=selectors.js.map
10524
  // EXTERNAL MODULE: ./node_modules/@wordpress/a11y/build-module/index.js + 4 modules
10525
+ var build_module = __webpack_require__(140);
10526
 
10527
  // CONCATENATED MODULE: ./node_modules/@wordpress/notices/build-module/store/controls.js
10528
  /**
10571
 
10572
  /***/ }),
10573
 
10574
+ /***/ 481:
10575
  /***/ (function(module, exports) {
10576
 
10577
  (function() { module.exports = this["wc"]["csvExport"]; }());
10584
  "use strict";
10585
 
10586
 
10587
+ var stringify = __webpack_require__(90);
10588
+ var parse = __webpack_require__(91);
10589
  var formats = __webpack_require__(52);
10590
 
10591
  module.exports = {
10595
  };
10596
 
10597
 
10598
+ /***/ }),
10599
+
10600
+ /***/ 497:
10601
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
10602
+
10603
+ "use strict";
10604
+ /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
10605
+ /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
10606
+ /* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(67);
10607
+
10608
+
10609
+ /**
10610
+ * WordPress dependencies
10611
+ */
10612
+
10613
+ var close = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__[/* SVG */ "b"], {
10614
+ xmlns: "http://www.w3.org/2000/svg",
10615
+ viewBox: "0 0 24 24"
10616
+ }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement"])(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__[/* Path */ "a"], {
10617
+ 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"
10618
+ }));
10619
+ /* harmony default export */ __webpack_exports__["a"] = (close);
10620
+ //# sourceMappingURL=close.js.map
10621
+
10622
  /***/ }),
10623
 
10624
  /***/ 5:
10735
 
10736
  "use strict";
10737
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _objectWithoutProperties; });
10738
+ /* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(42);
10739
 
10740
  function _objectWithoutProperties(source, excluded) {
10741
  if (source == null) return {};
10815
  /***/ }),
10816
 
10817
  /***/ 6:
10818
+ /***/ (function(module, exports, __webpack_require__) {
10819
 
10820
+ /*!
10821
+ Copyright (c) 2017 Jed Watson.
10822
+ Licensed under the MIT License (MIT), see
10823
+ http://jedwatson.github.io/classnames
10824
+ */
10825
+ /* global define */
10826
+
10827
+ (function () {
10828
+ 'use strict';
10829
+
10830
+ var hasOwn = {}.hasOwnProperty;
10831
+
10832
+ function classNames () {
10833
+ var classes = [];
10834
+
10835
+ for (var i = 0; i < arguments.length; i++) {
10836
+ var arg = arguments[i];
10837
+ if (!arg) continue;
10838
+
10839
+ var argType = typeof arg;
10840
+
10841
+ if (argType === 'string' || argType === 'number') {
10842
+ classes.push(arg);
10843
+ } else if (Array.isArray(arg) && arg.length) {
10844
+ var inner = classNames.apply(null, arg);
10845
+ if (inner) {
10846
+ classes.push(inner);
10847
+ }
10848
+ } else if (argType === 'object') {
10849
+ for (var key in arg) {
10850
+ if (hasOwn.call(arg, key) && arg[key]) {
10851
+ classes.push(key);
10852
+ }
10853
+ }
10854
+ }
10855
+ }
10856
+
10857
+ return classes.join(' ');
10858
+ }
10859
+
10860
+ if ( true && module.exports) {
10861
+ classNames.default = classNames;
10862
+ module.exports = classNames;
10863
+ } else if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {
10864
+ // register as 'classnames', consistent with npm package name
10865
+ define('classnames', [], function () {
10866
+ return classNames;
10867
+ });
10868
+ } else {
10869
+ window.classNames = classNames;
10870
+ }
10871
+ }());
10872
 
 
10873
 
10874
  /***/ }),
10875
 
10930
  /***/ }),
10931
 
10932
  /***/ 67:
10933
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
10934
+
10935
+ "use strict";
10936
+ /* unused harmony export Circle */
10937
+ /* unused harmony export G */
10938
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return Path; });
10939
+ /* unused harmony export Polygon */
10940
+ /* unused harmony export Rect */
10941
+ /* unused harmony export Defs */
10942
+ /* unused harmony export RadialGradient */
10943
+ /* unused harmony export LinearGradient */
10944
+ /* unused harmony export Stop */
10945
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return SVG; });
10946
+ /* harmony import */ var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(36);
10947
+ /* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(55);
10948
+ /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(6);
10949
+ /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
10950
+ /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(0);
10951
+ /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__);
10952
+
10953
+
10954
+
10955
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
10956
+
10957
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
10958
+
10959
+ /**
10960
+ * External dependencies
10961
+ */
10962
+
10963
+ /**
10964
+ * WordPress dependencies
10965
+ */
10966
+
10967
+
10968
+ /** @typedef {{isPressed?: boolean} & import('react').ComponentPropsWithoutRef<'svg'>} SVGProps */
10969
+
10970
+ /**
10971
+ * @param {import('react').ComponentPropsWithoutRef<'circle'>} props
10972
+ *
10973
+ * @return {JSX.Element} Circle component
10974
+ */
10975
+
10976
+ var Circle = function Circle(props) {
10977
+ return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__["createElement"])('circle', props);
10978
+ };
10979
+ /**
10980
+ * @param {import('react').ComponentPropsWithoutRef<'g'>} props
10981
+ *
10982
+ * @return {JSX.Element} G component
10983
+ */
10984
+
10985
+ var G = function G(props) {
10986
+ return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__["createElement"])('g', props);
10987
+ };
10988
+ /**
10989
+ * @param {import('react').ComponentPropsWithoutRef<'path'>} props
10990
+ *
10991
+ * @return {JSX.Element} Path component
10992
+ */
10993
+
10994
+ var Path = function Path(props) {
10995
+ return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__["createElement"])('path', props);
10996
+ };
10997
+ /**
10998
+ * @param {import('react').ComponentPropsWithoutRef<'polygon'>} props
10999
+ *
11000
+ * @return {JSX.Element} Polygon component
11001
+ */
11002
+
11003
+ var Polygon = function Polygon(props) {
11004
+ return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__["createElement"])('polygon', props);
11005
+ };
11006
+ /**
11007
+ * @param {import('react').ComponentPropsWithoutRef<'rect'>} props
11008
+ *
11009
+ * @return {JSX.Element} Rect component
11010
+ */
11011
+
11012
+ var Rect = function Rect(props) {
11013
+ return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__["createElement"])('rect', props);
11014
+ };
11015
+ /**
11016
+ * @param {import('react').ComponentPropsWithoutRef<'defs'>} props
11017
+ *
11018
+ * @return {JSX.Element} Defs component
11019
+ */
11020
+
11021
+ var Defs = function Defs(props) {
11022
+ return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__["createElement"])('defs', props);
11023
+ };
11024
+ /**
11025
+ * @param {import('react').ComponentPropsWithoutRef<'radialGradient'>} props
11026
+ *
11027
+ * @return {JSX.Element} RadialGradient component
11028
+ */
11029
+
11030
+ var RadialGradient = function RadialGradient(props) {
11031
+ return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__["createElement"])('radialGradient', props);
11032
+ };
11033
+ /**
11034
+ * @param {import('react').ComponentPropsWithoutRef<'linearGradient'>} props
11035
+ *
11036
+ * @return {JSX.Element} LinearGradient component
11037
+ */
11038
+
11039
+ var LinearGradient = function LinearGradient(props) {
11040
+ return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__["createElement"])('linearGradient', props);
11041
+ };
11042
+ /**
11043
+ * @param {import('react').ComponentPropsWithoutRef<'stop'>} props
11044
+ *
11045
+ * @return {JSX.Element} Stop component
11046
+ */
11047
+
11048
+ var Stop = function Stop(props) {
11049
+ return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__["createElement"])('stop', props);
11050
+ };
11051
+ /**
11052
+ *
11053
+ * @param {SVGProps} props isPressed indicates whether the SVG should appear as pressed.
11054
+ * Other props will be passed through to svg component.
11055
+ *
11056
+ * @return {JSX.Element} Stop component
11057
+ */
11058
+
11059
+ var SVG = function SVG(_ref) {
11060
+ var className = _ref.className,
11061
+ isPressed = _ref.isPressed,
11062
+ props = Object(_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"])(_ref, ["className", "isPressed"]);
11063
+
11064
+ var appliedProps = _objectSpread(_objectSpread({}, props), {}, {
11065
+ className: classnames__WEBPACK_IMPORTED_MODULE_2___default()(className, {
11066
+ 'is-pressed': isPressed
11067
+ }) || undefined,
11068
+ role: 'img',
11069
+ 'aria-hidden': true,
11070
+ focusable: false
11071
+ }); // Disable reason: We need to have a way to render HTML tag for web.
11072
+ // eslint-disable-next-line react/forbid-elements
11073
+
11074
+
11075
+ return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__["createElement"])("svg", appliedProps);
11076
+ };
11077
+ //# sourceMappingURL=index.js.map
11078
+
11079
+ /***/ }),
11080
+
11081
+ /***/ 68:
11082
  /***/ (function(module, exports, __webpack_require__) {
11083
 
11084
  /**
11833
 
11834
  /***/ }),
11835
 
11836
+ /***/ 69:
11837
  /***/ (function(module, exports, __webpack_require__) {
11838
 
11839
  "use strict";
12092
 
12093
  /***/ }),
12094
 
12095
+ /***/ 7:
12096
+ /***/ (function(module, exports) {
12097
+
12098
+ function _getPrototypeOf(o) {
12099
+ module.exports = _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
12100
+ return o.__proto__ || Object.getPrototypeOf(o);
12101
+ };
12102
+ return _getPrototypeOf(o);
12103
+ }
12104
+
12105
+ module.exports = _getPrototypeOf;
12106
+
12107
+ /***/ }),
12108
+
12109
+ /***/ 70:
12110
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
12111
 
12112
  "use strict";
12123
 
12124
  /***/ }),
12125
 
12126
+ /***/ 71:
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
12127
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
12128
 
12129
  "use strict";
13185
  /***/ 72:
13186
  /***/ (function(module, exports) {
13187
 
13188
+ function _setPrototypeOf(o, p) {
13189
+ module.exports = _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
13190
+ o.__proto__ = p;
13191
+ return o;
13192
+ };
13193
+
13194
+ return _setPrototypeOf(o, p);
13195
+ }
13196
+
13197
+ module.exports = _setPrototypeOf;
13198
+
13199
+ /***/ }),
13200
+
13201
+ /***/ 75:
13202
+ /***/ (function(module, exports) {
13203
+
13204
  (function() { module.exports = this["wp"]["date"]; }());
13205
 
13206
  /***/ }),
13207
 
13208
+ /***/ 76:
13209
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
13210
 
13211
  "use strict";
13218
 
13219
  /***/ }),
13220
 
13221
+ /***/ 77:
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
13222
  /***/ (function(module, exports, __webpack_require__) {
13223
 
13224
  "use strict";
13231
 
13232
 
13233
 
13234
+ var ReactPropTypesSecret = __webpack_require__(78);
13235
 
13236
  function emptyFunction() {}
13237
  function emptyFunctionWithReset() {}
13290
 
13291
  /***/ }),
13292
 
13293
+ /***/ 78:
13294
  /***/ (function(module, exports, __webpack_require__) {
13295
 
13296
  "use strict";
13313
  /***/ 8:
13314
  /***/ (function(module, exports, __webpack_require__) {
13315
 
13316
+ module.exports = __webpack_require__(68);
13317
 
13318
 
13319
  /***/ }),
13320
 
13321
+ /***/ 82:
13322
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
13323
 
13324
  "use strict";
13327
  __webpack_require__.d(__webpack_exports__, "a", function() { return /* binding */ _toConsumableArray; });
13328
 
13329
  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
13330
+ var arrayLikeToArray = __webpack_require__(70);
13331
 
13332
  // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js
13333
 
13339
  if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter);
13340
  }
13341
  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
13342
+ var unsupportedIterableToArray = __webpack_require__(94);
13343
 
13344
  // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js
13345
  function _nonIterableSpread() {
13356
 
13357
  /***/ }),
13358
 
13359
+ /***/ 84:
13360
  /***/ (function(module, exports) {
13361
 
13362
  var g;
13383
 
13384
  /***/ }),
13385
 
13386
+ /***/ 9:
13387
+ /***/ (function(module, exports) {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
13388
 
13389
+ function _assertThisInitialized(self) {
13390
+ if (self === void 0) {
13391
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
13392
  }
13393
 
13394
+ return self;
13395
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
13396
 
13397
+ module.exports = _assertThisInitialized;
 
 
 
 
 
 
13398
 
13399
  /***/ }),
13400
 
13401
+ /***/ 90:
13402
  /***/ (function(module, exports, __webpack_require__) {
13403
 
13404
  "use strict";
13405
 
13406
 
13407
+ var utils = __webpack_require__(69);
13408
  var formats = __webpack_require__(52);
13409
  var has = Object.prototype.hasOwnProperty;
13410
 
13684
 
13685
  /***/ }),
13686
 
13687
+ /***/ 91:
13688
  /***/ (function(module, exports, __webpack_require__) {
13689
 
13690
  "use strict";
13691
 
13692
 
13693
+ var utils = __webpack_require__(69);
13694
 
13695
  var has = Object.prototype.hasOwnProperty;
13696
  var isArray = Array.isArray;
13949
 
13950
  /***/ }),
13951
 
13952
+ /***/ 94:
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
13953
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
13954
 
13955
  "use strict";
13956
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _unsupportedIterableToArray; });
13957
+ /* harmony import */ var _babel_runtime_helpers_esm_arrayLikeToArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(70);
13958
 
13959
  function _unsupportedIterableToArray(o, minLen) {
13960
  if (!o) return;
13967
 
13968
  /***/ }),
13969
 
13970
+ /***/ 95:
13971
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
13972
 
13973
  "use strict";
13980
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return isWCAdmin; });
13981
  /* harmony import */ var _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(19);
13982
  /* harmony import */ var _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__);
13983
+ /* harmony import */ var _wordpress_html_entities__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(41);
13984
  /* harmony import */ var _wordpress_html_entities__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_html_entities__WEBPACK_IMPORTED_MODULE_1__);
13985
  /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(3);
13986
  /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_2__);
14130
 
14131
  /***/ }),
14132
 
14133
+ /***/ 97:
14134
  /***/ (function(module, exports) {
14135
 
14136
  function _objectWithoutPropertiesLoose(source, excluded) {
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={21:0},o={21:0};function i(e){var t=function(e){return a.p+"chunks/"+({7:"activity-panels-help",8:"activity-panels-inbox",9:"analytics-report",10:"analytics-report-categories",11:"analytics-report-coupons",12:"analytics-report-customers",13:"analytics-report-downloads",14:"analytics-report-orders",15:"analytics-report-products",16:"analytics-report-revenue",17:"analytics-report-stock",18:"analytics-report-taxes",19:"analytics-report-variations",20:"analytics-settings",27:"customizable-dashboard",28:"dashboard",29:"dashboard-charts",32:"homescreen",34:"leaderboards",36:"marketing-overview",46:"profile-wizard",47:"store-alerts",48:"store-performance",49:"task-list",51:"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,3:1,4:1,7:1,9:1,14:1,20:1,28:1,29:1,32:1,34:1,36:1,46: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 p=document.createElement("link");p.rel="stylesheet",p.type="text/css",p.setAttribute("data-webpack",!0),p.onload=t,p.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],p.parentNode.removeChild(p),n(a)},p.href=i,window.wcAdminAssets&&window.wcAdminAssets.version&&(p.href+="?ver="+window.wcAdminAssets.version),document.getElementsByTagName("head")[0].appendChild(p)})).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=295)}({0:function(e,t){!function(){e.exports=this.wp.element}()},1:function(e,t,n){e.exports=n(75)()},10:function(e,t){!function(){e.exports=this.React}()},11:function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},110:function(e,t){!function(){e.exports=this.wc.currency}()},12: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}},120:function(e,t,n){"use strict";n.d(t,"a",(function(){return y}));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 v})),n.d(o,"findNext",(function(){return b}));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)&&("AREA"!==e.nodeName||function(e){var t=e.closest("map[name]");if(!t)return!1;var n=document.querySelector('img[usemap="#'+t.name+'"]');return!!n&&a(n)}(e))}))}var u=n(3);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 p(e){return e.element}function d(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(d).map(p).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 v(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.activeElement,t=c(document.body),n=t.indexOf(e);return t.length=n,Object(u.last)(m(t))}function b(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.activeElement,t=c(document.body),n=t.indexOf(e),r=t.slice(n+1).filter((function(t){return!e.contains(t)}));return Object(u.first)(m(r))}var y={focusable:r,tabbable:o}},121: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(10),a=(o=i)&&o.__esModule?o:{default:o};e.exports=t.default},125: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 p(){l&&u&&(l=!1,u.length?s=u.concat(s):f=-1,s.length&&d())}function d(){if(!l){var e=c(p);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(d)},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}},126:function(e,t,n){"use strict";e.exports=n(152)},13:function(e,t,n){var r=n(74);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)}},137:function(e,t,n){"use strict";var r=n(2),o=n(42),i=n(0),a=n(25),c=Object(a.g)("manageStock","no"),u=Object(i.lazy)((function(){return Promise.all([n.e(0),n.e(16)]).then(n.bind(null,482))})),s=Object(i.lazy)((function(){return Promise.all([n.e(0),n.e(3),n.e(15)]).then(n.bind(null,478))})),l=Object(i.lazy)((function(){return Promise.all([n.e(0),n.e(19)]).then(n.bind(null,483))})),f=Object(i.lazy)((function(){return Promise.all([n.e(0),n.e(5),n.e(14)]).then(n.bind(null,484))})),p=Object(i.lazy)((function(){return Promise.all([n.e(0),n.e(3),n.e(10)]).then(n.bind(null,480))})),d=Object(i.lazy)((function(){return Promise.all([n.e(0),n.e(11)]).then(n.bind(null,485))})),m=Object(i.lazy)((function(){return Promise.all([n.e(0),n.e(18)]).then(n.bind(null,486))})),h=Object(i.lazy)((function(){return Promise.all([n.e(0),n.e(13)]).then(n.bind(null,487))})),v=Object(i.lazy)((function(){return Promise.all([n.e(0),n.e(17)]).then(n.bind(null,479))})),b=Object(i.lazy)((function(){return Promise.all([n.e(0),n.e(12)]).then(n.bind(null,481))}));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:p,navArgs:{id:"woocommerce-analytics-categories"}},{report:"coupons",title:Object(r.__)("Coupons","woocommerce-admin"),component:d,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:v,navArgs:{id:"woocommerce-analytics-stock"}}:null,{report:"customers",title:Object(r.__)("Customers","woocommerce-admin"),component:b},{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)}},138:function(e,t,n){"use strict";var r=n(126),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,p=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,m=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(m){var o=d(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),v=0;v<a.length;++v){var b=a[v];if(!(i[b]||r&&r[b]||h&&h[b]||c&&c[b])){var y=p(n,b);try{s(t,b,y)}catch(e){}}}}return t}},139:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(20),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}},14:function(e,t,n){var r=n(30),o=n(9);e.exports=function(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?o(e):t}},140:function(e,t){!function(){e.exports=this.wp.plugins}()},141:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(54),o=n(2);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")}))},142:function(e,t,n){"use strict";n.d(t,"c",(function(){return wt})),n.d(t,"b",(function(){return _t})),n.d(t,"a",(function(){return kt}));var r=n(24),o=n.n(r),i=n(34),a=n.n(i),c=n(5),u=n.n(c),s=n(11),l=n.n(s),f=n(12),p=n.n(f),d=n(13),m=n.n(d),h=n(14),v=n.n(h),b=n(6),y=n.n(b),g=n(0),w=n(18),O=n(15),j=n(38),E=n(10),_=n.n(E),k=n(1),x=n.n(k),S=n(70),P=n(183),C=n(56),A=n(32),T=n(184),N=n.n(T),R=(n(126),n(41)),L=(n(138),function(e){var t=Object(P.a)();return t.displayName=e,t}("Router-History")),M=function(e){var t=Object(P.a)();return t.displayName=e,t}("Router"),D=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(M.Provider,{value:{history:this.props.history,location:this.state.location,match:t.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},_.a.createElement(L.Provider,{children:this.props.children||null,value:this.props.history}))},t}(_.a.Component);_.a.Component;_.a.Component;var I={},V=0;function F(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=I[n]||(I[n]={});if(r[e])return r[e];var o=[],i={regexp:N()(e,o,t),keys:o};return V<1e4&&(r[e]=i,V++),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),p=e===l;return i&&!p?null:{path:n,url:"/"===n&&""===l?"/":l,isExact:p,params:a.reduce((function(e,t,n){return e[t.name]=f[n],e}),{})}}),null)}var q=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(M.Consumer,null,(function(t){t||Object(C.a)(!1);var n=e.props.location||t.location,r=e.props.computedMatch?e.props.computedMatch:e.props.path?F(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(M.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 U(e){return"/"===e.charAt(0)?e:"/"+e}function B(e,t){if(!e)return t;var n=U(e);return 0!==t.pathname.indexOf(n)?t:Object(A.a)({},t,{pathname:t.pathname.substr(n.length)})}function H(e){return"string"==typeof e?e:Object(S.d)(e)}function z(e){return function(){Object(C.a)(!1)}}function $(){}_.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(M.Consumer,null,(function(t){t||Object(C.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?F(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 Q=n(3),G=n(49),Y=n(47),Z=n(21),K=n(25),J=n(23),X=n(28),ee=(n(298),n(42)),te=n(2),ne=n(137),re=n(94);function oe(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=y()(e);if(t){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return v()(this,n)}}var ie=Object(g.lazy)((function(){return n.e(9).then(n.bind(null,576))})),ae=Object(g.lazy)((function(){return n.e(20).then(n.bind(null,593))})),ce=Object(g.lazy)((function(){return n.e(28).then(n.bind(null,577))})),ue=Object(g.lazy)((function(){return Promise.all([n.e(1),n.e(2),n.e(52),n.e(4),n.e(32)]).then(n.bind(null,590))})),se=Object(g.lazy)((function(){return Promise.all([n.e(2),n.e(36)]).then(n.bind(null,594))})),le=Object(g.lazy)((function(){return n.e(46).then(n.bind(null,591))})),fe=function(){var e=[],t=[["",wcSettings.woocommerceTranslation]];return e.push({container:ue,path:"/",breadcrumbs:[].concat(t,[Object(te.__)("Home","woocommerce-admin")]),wpOpenMenu:"toplevel_page_woocommerce",navArgs:{id:"woocommerce-home"}}),window.wcAdminFeatures.analytics&&(e.push({container:ce,path:"/analytics/overview",breadcrumbs:[].concat(t,[["/analytics/overview",Object(te.__)("Analytics","woocommerce-admin")],Object(te.__)("Overview","woocommerce-admin")]),wpOpenMenu:"toplevel_page_wc-admin-path--analytics-overview",navArgs:{id:"woocommerce-analytics-overview"}}),e.push({container:ae,path:"/analytics/settings",breadcrumbs:[].concat(t,[["/analytics/revenue",Object(te.__)("Analytics","woocommerce-admin")],Object(te.__)("Settings","woocommerce-admin")]),wpOpenMenu:"toplevel_page_wc-admin-path--analytics-overview",navArgs:{id:"woocommerce-analytics-settings"}}),e.push({container:ie,path:"/customers",breadcrumbs:[].concat(t,[Object(te.__)("Customers","woocommerce-admin")]),wpOpenMenu:"toplevel_page_woocommerce",navArgs:{id:"woocommerce-analytics-customers"}}),e.push({container:ie,path:"/analytics/:report",breadcrumbs:function(e){var n=e.match,r=Object(Q.find)(Object(ne.a)(),{report:n.params.report});return r?[].concat(t,[["/analytics/revenue",Object(te.__)("Analytics","woocommerce-admin")],r.title]):[]},wpOpenMenu:"toplevel_page_wc-admin-path--analytics-overview"})),window.wcAdminFeatures.marketing&&e.push({container:se,path:"/marketing",breadcrumbs:[].concat(t,[["/marketing",Object(te.__)("Marketing","woocommerce-admin")],Object(te.__)("Overview","woocommerce-admin")]),wpOpenMenu:"toplevel_page_woocommerce-marketing",navArgs:{id:"woocommerce-marketing-overview"}}),window.wcAdminFeatures.onboarding&&e.push({container:le,path:"/setup-wizard",breadcrumbs:[].concat(t,[["/setup-wizard",Object(te.__)("Setup Wizard","woocommerce-admin")]])}),Object(ee.applyFilters)("woocommerce_admin_pages_list",e)},pe=function(e){m()(n,e);var t=oe(n);function n(){return l()(this,n),t.apply(this,arguments)}return p()(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(Q.omit)(e.query,"chartType","filter","paged"),n=Object(Q.omit)(this.props.query,"chartType","filter","paged");e.query.paged>1&&!Object(Q.isEqual)(t,n)&&Object(Z.getHistory)().replace(Object(Z.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(g.createElement)(g.Suspense,{fallback:Object(g.createElement)(Y.Spinner,null)},Object(g.createElement)(t.container,{params:i,path:o,pathMatch:t.path,query:r}))}}]),n}(g.Component);window.wpNavMenuUrlUpdate=function(e){var t=Object(Z.getPersistedQuery)(e),n=Object(Z.getQueryExcludedScreens)();Array.from(document.querySelectorAll("#adminmenu a")).forEach((function(e){return function(e,t,n){if(Object(re.f)(e.href)){var r=Object(Q.last)(e.href.split("?")),o=Object(G.parse)(r),i=o.path||"homescreen",a=Object(Z.getScreenFromPath)(i),c=n.includes(a),u="admin.php?"+Object(G.stringify)(Object.assign(o,c?{}:t));e.href=u,e.onclick=function(e){e.preventDefault(),Object(Z.getHistory)().push(u)}}}(e,t,n)}))},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(7),me=n.n(de),he=n(40),ve=n(31),be=(n(299),n(4)),ye=n(121),ge=n.n(ye),we=n(302),Oe=n(197),je=Object(g.createElement)(Oe.b,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(g.createElement)(Oe.a,{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"})),Ee=(n(300),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=me()("woocommerce-layout__activity-panel-toggle-bubble",{"has-unread":a});return Object(g.createElement)("div",{className:c},Object(g.createElement)("svg",{height:n,width:o,viewBox:"0 0 24 24"},Object(g.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"})))});Ee.propTypes={height:x.a.number,width:x.a.number,hasUnread:x.a.bool};var _e=Ee,ke=n(196);var xe=n(20),Se=n.n(xe),Pe=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=me()("woocommerce-layout__activity-panel-tab",{"is-active":a&&i,"has-unread":o}),s="activity-panel-tab-".concat(r);return Object(g.createElement)(be.Button,{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(g.createElement)("span",{className:"screen-reader-text"},Object(te.__)("unread activity","woocommerce-admin")))},Ce=function(e){var t=e.tabs,n=e.onTabClick,r=e.selectedTab,i=e.tabOpen,a=void 0!==i&&i,c=Object(g.useState)({tabOpen:a,currentTab:r}),u=Se()(c,2),s=u[0],l=s.tabOpen,f=s.currentTab,p=u[1];return Object(g.useEffect)((function(){p({tabOpen:a,currentTab:r})}),[a,r]),Object(g.createElement)(be.NavigableMenu,{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(g.createElement)(r,o()({key:t},i))}return Object(g.createElement)(Pe,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}),p({tabOpen:t,currentTab:e.name}),n(e,t)}}))})))},Ae=function(){return Object(g.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(g.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(g.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=function(){return Object(g.createElement)(g.Fragment,null,Object(g.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(g.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(g.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(g.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(g.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(te.__)("Display","woocommerce-admin"))},Ne=[{value:"single_column",label:Object(g.createElement)(g.Fragment,null,Object(g.createElement)((function(){return Object(g.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(g.createElement)("rect",{x:"0.5",y:"0.5",width:"11",height:"13",strokeWidth:"1"}))}),null),Object(te.__)("Single column","woocommerce-admin"))},{value:"two_columns",label:Object(g.createElement)(g.Fragment,null,Object(g.createElement)((function(){return Object(g.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(g.createElement)("rect",{x:"0.5",y:"0.5",width:"7",height:"13",strokeWidth:"1"}),Object(g.createElement)("rect",{x:"9.5",y:"0.5",width:"7",height:"13",strokeWidth:"1"}))}),null),Object(te.__)("Two columns","woocommerce-admin"))}],Re=function(){var e=Object(O.useSelect)((function(e){return(0,e(J.OPTIONS_STORE_NAME).getOption)("woocommerce_default_homepage_layout")||"single_column"})),t=Object(J.useUserPreferences)(),n=t.updateUserPreferences,r=t.homepage_layout;return Object(g.createElement)(be.DropdownMenu,{icon:Object(g.createElement)(Te,null),label:Object(te.__)("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(g.createElement)(be.MenuGroup,{className:"woocommerce-layout__homescreen-display-options",label:Object(te.__)("Layout","woocommerce-admin")},Object(g.createElement)(be.MenuItemsChoice,{choices:Ne,onSelect:function(e){n({homepage_layout:e}),o(),Object(X.recordEvent)("homescreen_display_option",{display_option:e})},value:r||e}))}))},Le=Object(g.createElement)(Oe.b,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(g.createElement)(Oe.a,{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"})),Me=(n(301),"highlight-tooltip__show");function De(e){var t=e.title,n=e.closeButtonText,r=e.content,o=e.show,i=void 0===o||o,a=e.id,c=e.onClose,u=e.delay,s=e.onShow,l=void 0===s?Q.noop:s,f=Object(g.useState)(u>0?null:i),p=Se()(f,2),d=p[0],m=p[1],h=Object(g.useState)(null),v=Se()(h,2),b=v[0],y=v[1];Object(g.useEffect)((function(){var e,t=document.getElementById(a);if(t&&!b){var n=t.parentElement;(e=document.createElement("div")).classList.add("highlight-tooltip__container"),n.appendChild(e),y(e)}var r=w(e);return function(){e&&e.parentElement.removeChild(e);r&&clearTimeout(r)}}),[]),Object(g.useEffect)((function(){!d&&b&&b.classList.remove(Me)}),[d]),Object(g.useEffect)((function(){i!==d&&null!==d&&b&&(m(i),i?b&&w(b):b.classList.remove(Me))}),[i]);var w=function(e){var t=null;return u>0?t=setTimeout((function(){t=null,e&&e.classList.add(Me),m(i),l()}),u):d||(e&&e.classList.add(Me),m(!0),l()),t},O=function(){m(!1),c&&c()};return b?Object(g.createPortal)(Object(g.createElement)("div",{className:"highlight-tooltip__portal"},d?Object(g.createElement)(g.Fragment,null,Object(g.createElement)(be.IsolatedEventContainer,{className:"highlight-tooltip__overlay"}),Object(g.createElement)(be.Popover,{className:"highlight-tooltip__popover",noArrow:!1,focusOnMount:"container"},Object(g.createElement)(be.Card,{size:"medium"},Object(g.createElement)(be.CardHeader,null,t,Object(g.createElement)(be.Button,{isSmall:!0,onClick:O,icon:Le})),Object(g.createElement)(be.CardBody,null,r||null),Object(g.createElement)(be.CardFooter,{isBorderless:!0},Object(g.createElement)(be.Button,{size:"small",isPrimary:!0,onClick:O},n||Object(te.__)("Close","woocommerce-admin")))))):null),b):null}De.propTypes={id:x.a.string.isRequired,title:x.a.string.isRequired,closeButtonText:x.a.string.isRequired,content:x.a.oneOfType([x.a.string,x.a.node]),show:x.a.bool,onClose:x.a.func,delay:x.a.number,onShow:x.a.func};var Ie=n(120);var Ve=["button","submit"];function Fe(e){var t=Object(g.useRef)(e);Object(g.useEffect)((function(){t.current=e}),[e]);var n=Object(g.useRef)(!1),r=Object(g.useRef)(),o=Object(g.useCallback)((function(){clearTimeout(r.current)}),[]);Object(g.useEffect)((function(){return function(){return o()}}),[]),Object(g.useEffect)((function(){e||o()}),[e,o]);var i=Object(g.useCallback)((function(e){var t=e.type,r=e.target;Object(Q.includes)(["mouseup","touchend"],t)?n.current=!1:function(e){if(!(e instanceof window.HTMLElement))return!1;switch(e.nodeName){case"A":case"BUTTON":return!0;case"INPUT":return Object(Q.includes)(Ve,e.type)}return!1}(r)&&(n.current=!0)}),[]),a=Object(g.useCallback)((function(e){e.persist(),n.current||(r.current=setTimeout((function(){document.hasFocus()?"function"==typeof t.current&&t.current(e):e.preventDefault()}),0))}),[]);return{onFocus:o,onMouseDown:i,onMouseUp:i,onTouchStart:i,onTouchEnd:i,onBlur:a}}var qe=function(e){var t=e.content,n=e.isPanelOpen,r=e.currentTab,i=e.isPanelSwitching,a=e.tab,c=e.closePanel,u=e.clearPanel,s=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"firstElement",t=Object(g.useRef)(e);return Object(g.useEffect)((function(){t.current=e}),[e]),Object(g.useCallback)((function(e){if(e&&!1!==t.current&&!e.contains(e.ownerDocument.activeElement)){var n=e;if("firstElement"===t.current){var r=Ie.a.tabbable.find(e)[0];r&&(n=r)}n.focus()}}),[])}(),l=Fe((function(e){var t=e.target.closest(".woocommerce-inbox-dismiss-confirmation_modal")||e.target.closest(".components-snackbar__action");n&&!t&&c()}));if(!a)return Object(g.createElement)("div",{className:"woocommerce-layout__activity-panel-wrapper"});if(!t)return null;var f=me()("woocommerce-layout__activity-panel-wrapper",{"is-open":n,"is-switching":i});return Object(g.createElement)("div",o()({className:f,tabIndex:0,role:"tabpanel","aria-label":a.title,onTransitionEnd:u,onAnimationEnd:u},l,{ref:s}),Object(g.createElement)("div",{className:"woocommerce-layout__activity-panel-content",key:"activity-panel-"+r,id:"activity-panel-"+r},Object(g.createElement)(g.Suspense,{fallback:Object(g.createElement)(Y.Spinner,null)},t)))};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,r=y()(e);if(t){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return v()(this,n)}}var Be=Object(g.lazy)((function(){return Promise.all([n.e(53),n.e(6),n.e(7)]).then(n.bind(null,587))})),He=Object(g.lazy)((function(){return Promise.all([n.e(1),n.e(2),n.e(4),n.e(8)]).then(n.bind(null,574))})),ze=function(e){m()(n,e);var t=Ue(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 p()(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.setupTaskListComplete,r=e.setupTaskListHidden,o=e.query,i=o.task&&!o.path&&(!0===t||!1===r&&!1===n);return i}},{key:"getTabs",value:function(){var e=this,t=this.props,n=t.hasUnreadNotes,r=t.isEmbedded,o=t.setupTaskListComplete,i=t.setupTaskListHidden,a=t.updateOptions,c=this.isPerformingSetupTask(),u=(r||!this.isHomescreen())&&!c,s=this.isHomescreen()&&!r||c,l=!r&&this.isHomescreen()&&!c,f=!o&&!i&&!c&&(!this.isHomescreen()||r),p=u?{name:"inbox",title:Object(te.__)("Inbox","woocommerce-admin"),icon:Object(g.createElement)("i",{className:"material-icons-outlined"},"inbox"),unread:n}:null,d=f?{name:"setup",title:Object(te.__)("Store Setup","woocommerce-admin"),icon:Object(g.createElement)(Ae,null),onClick:function(){return window.location.href!==Object(K.f)("admin.php?page=wc-admin")&&("no"===i?e.redirectToHomeScreen():a({woocommerce_task_list_hidden:"no"}).then(e.redirectToHomeScreen)),null}}:null,m=s?{name:"help",title:Object(te.__)("Help","woocommerce-admin"),icon:Object(g.createElement)(we.a,{icon:je})}:null;return[p,d,l?{component:Re}:null,m].filter(Boolean)}},{key:"getPanelContent",value:function(e){var t=this.props.query.task;switch(e){case"inbox":return Object(g.createElement)(He,null);case"help":return Object(g.createElement)(Be,{taskName:t});default:return null}}},{key:"redirectToHomeScreen",value:function(){Object(re.f)(window.location.href)?Object(Z.getHistory)().push(Object(Z.getNewPath)({},"/",{})):window.location.href=Object(K.f)("admin.php?page=wc-admin")}},{key:"closedHelpPanelHighlight",value:function(){var e=this.props.userPreferencesData;Object(X.recordEvent)("help_tooltip_click"),e&&e.updateUserPreferences&&e.updateUserPreferences({help_panel_highlight_shown:"yes"})}},{key:"shouldShowHelpTooltip",value:function(){var e=this.props,t=e.userPreferencesData,n=e.trackedCompletedTasks,r=e.query.task,o=t&&t.task_list_tracked_started_tasks,i=t&&t.help_panel_highlight_shown;return!(!(r&&"yes"!==i&&(o||{})[r]>1)||n.includes(r))}},{key:"render",value:function(){var e=this,t=this.getTabs(),n=this.state,r=n.mobileOpen,o=n.currentTab,i=n.isPanelOpen,a=Object(Q.uniqueId)("activity-panel-header_"),c=me()("woocommerce-layout__activity-panel",{"is-mobile-open":this.state.mobileOpen}),u=this.shouldShowHelpTooltip(),s=t.some((function(e){return e.unread})),l=s?Object(te.__)("View Activity Panel, you have unread activity","woocommerce-admin"):Object(te.__)("View Activity Panel","woocommerce-admin");return Object(g.createElement)("div",null,Object(g.createElement)(Y.H,{id:a,className:"screen-reader-text"},Object(te.__)("Store Activity","woocommerce-admin")),Object(g.createElement)(Y.Section,{component:"aside",id:"woocommerce-activity-panel","aria-labelledby":a},Object(g.createElement)(be.Button,{onClick:function(){e.toggleMobile()},label:r?Object(te.__)("Close Activity Panel","woocommerce-admin"):l,"aria-expanded":r,className:"woocommerce-layout__activity-panel-mobile-toggle"},r?Object(g.createElement)(ge.a,null):Object(g.createElement)(_e,{hasUnread:s})),Object(g.createElement)("div",{className:c},Object(g.createElement)(Ce,{tabs:t,tabOpen:i,selectedTab:o,onTabClick:function(t,n){t.onClick?t.onClick():e.togglePanel(t,n)}}),Object(g.createElement)(qe,{isPanelOpen:!0,currentTab:!0,isPanelSwitching:!0,tab:Object(Q.find)(this.getTabs(),{name:o}),content:this.getPanelContent(o),closePanel:function(){return e.closePanel()},clearPanel:function(){return e.clearPanel()}}))),u?Object(g.createElement)(De,{delay:1e3,title:Object(te.__)("We're here for help","woocommerce-admin"),content:Object(te.__)("If you have any questions, feel free to explore the WooCommerce docs listed here.","woocommerce-admin"),closeButtonText:Object(te.__)("Got it","woocommerce-admin"),id:"activity-panel-tab-help",onClose:function(){return e.closedHelpPanelHighlight()},onShow:function(){return Object(X.recordEvent)("help_tooltip_view")}}):null)}}]),n}(g.Component);ze.defaultProps={getHistory:Z.getHistory};var $e=Object(w.compose)(Object(O.withSelect)((function(e){var t=function(e){var t=e(J.NOTES_STORE_NAME),n=t.getNotes,r=t.getNotesError,o=t.isResolving,i=(0,e(J.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:J.QUERY_DEFAULTS.pageSize,status:"unactioned",type:J.QUERY_DEFAULTS.noteTypes,orderby:"date",order:"desc"},u=n(c),s=Boolean(r("getNotes",[c])),l=o("getNotes",[c]);return s||l?null:Object(ke.a)(u,a)>0}(e),n=e(J.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"]),setupTaskListComplete:i,setupTaskListHidden:a,trackedCompletedTasks:r("woocommerce_task_list_tracked_completed_tasks")||[]}})),Object(O.withDispatch)((function(e){return{updateOptions:e(J.OPTIONS_STORE_NAME).updateOptions}})))(ze),We=function(){return/iPhone|iPad|iPod/i.test(window.navigator.userAgent)?"ios":/Android/i.test(window.navigator.userAgent)?"android":"unknown"},Qe=function(){return Object(g.createElement)("svg",{width:"37",height:"37",viewBox:"0 0 92 92",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(g.createElement)("rect",{width:"92",height:"92",rx:"21.3953",fill:"#7F54B3"}),Object(g.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"}))},Ge=(n(303),function(e){var t=e.onInstall,n=e.onDismiss;Object(g.useEffect)((function(){var e=document.getElementsByClassName("woocommerce-layout")[0];return"android"===We()&&e&&e.classList.add("woocommerce-layout__show-app-banner"),function(){e&&e.classList.remove("woocommerce-layout__show-app-banner")}}),[]);var r=Object(g.useState)(!1),o=Se()(r,2),i=o[0],a=o[1];return"android"!==We()||i?null:Object(g.createElement)("div",{className:"woocommerce-mobile-app-banner"},Object(g.createElement)(be.Icon,{icon:"no-alt","data-testid":"dismiss-btn",onClick:function(){n(),a(!0),Object(X.recordEvent)("wcadmin_mobile_android_banner_click",{action:"dismiss"})}}),Object(g.createElement)(Qe,null),Object(g.createElement)("div",{className:"woocommerce-mobile-app-banner__description"},Object(g.createElement)("p",{className:"woocommerce-mobile-app-banner__description__text"},Object(te.__)("Run your store from anywhere","woocommerce-admin")),Object(g.createElement)("p",{className:"woocommerce-mobile-app-banner__description__text"},Object(te.__)("Download the WooCommerce app","woocommerce-admin"))),Object(g.createElement)(be.Button,{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(te.__)("Install","woocommerce-admin")))}),Ye=n(139);function Ze(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 Ke(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ze(Object(n),!0).forEach((function(t){u()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ze(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Je=function(e){var t=e.sections,n=e.isEmbedded,r=void 0!==n&&n,o=e.query,i=Object(g.useRef)(null),c=Object(K.g)("siteTitle",""),u=t.slice(-1)[0],s=Object(Ye.a)(),l=Object(J.useUserPreferences)(),f=l.updateUserPreferences,p=a()(l,["updateUserPreferences"]),d="yes"===p.android_app_banner_dismissed,m=me()("woocommerce-layout__header",{"is-scrolled":s});Object(g.useEffect)((function(){if(!r){var e=t.map((function(e){return Array.isArray(e)?e[1]:e})).reverse().join(" &lsaquo; "),n=Object(he.decodeEntities)(Object(te.sprintf)(Object(te.__)("%1$s &lsaquo; %2$s &#8212; WooCommerce","woocommerce-admin"),e,c));document.title!==n&&(document.title=n)}}),[r,t,c]);var h=function(){f({android_app_banner_dismissed:"yes"})};return Object(g.createElement)("div",{className:m,ref:i},!d&&Object(g.createElement)(Ge,{onDismiss:h,onInstall:h}),Object(g.createElement)(ve.f,{className:"woocommerce-layout__header-heading",as:"h1",variant:"subtitle.small"},Object(he.decodeEntities)(u)),window.wcAdminFeatures["activity-panels"]&&Object(g.createElement)($e,{isEmbedded:r,query:o,userPreferencesData:Ke(Ke({},p),{},{updateUserPreferences:f})}))};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=y()(e);if(t){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return v()(this,n)}}var et=function(e){m()(n,e);var t=Xe(n);function n(){return l()(this,n),t.apply(this,arguments)}return p()(n,[{key:"render",value:function(){return Object(g.createElement)("div",{id:"woocommerce-layout__notice-list",className:"woocommerce-layout__notice-list"})}}]),n}(g.Component),tt=n(8),nt=n.n(tt),rt=n(43),ot=n.n(rt),it=n(182),at=n(277);var ct=function(e){var t=e.notices,n=e.className,r=e.children,i=e.onRemove,a=void 0===i?Q.noop:i,c=e.onRemove2,u=void 0===c?Q.noop:c,s=Object(w.useReducedMotion)(),l=Object(g.useState)((function(){return new WeakMap})),f=Se()(l,1)[0],p=Object(it.useTransition)(t,(function(e){return e.id}),{from:{opacity:0,height:0},enter:function(e){return function(){var t=ot()(nt.a.mark((function t(n){return nt.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=ot()(nt.a.mark((function e(t){return nt.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=me()("components-snackbar-list",n);var d=function(e){return function(){a(e.id),u(e.id)}};return Object(g.createElement)("div",{className:n},r,p.map((function(e){var t=e.item,n=e.key,r=e.props;return Object(g.createElement)(it.animated.div,{key:n,style:r},Object(g.createElement)("div",{className:"components-snackbar-list__notice-container",ref:function(e){return e&&f.set(t,e)}},Object(g.createElement)(at.a,o()({},Object(Q.omit)(t,["content"]),{onRemove:d(t)}),t.content)))})))};n(305);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=y()(e);if(t){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return v()(this,n)}}var st=function(e){m()(n,e);var t=ut(n);function n(){return l()(this,n),t.apply(this,arguments)}return p()(n,[{key:"render",value:function(){var e=this.props,t=e.className,n=e.notices,r=e.onRemove,o=e.onRemove2,i=me()("woocommerce-transient-notices","components-notices__snackbar",t);return Object(g.createElement)(ct,{notices:n,className:i,onRemove:r,onRemove2:o})}}]),n}(g.Component);st.propTypes={className:x.a.string,notices:x.a.array};var lt=Object(w.compose)(Object(O.withSelect)((function(e){var t=e("core/notices").getNotices(),n=e("core/notices2").getNotices();return{notices:t.concat(n)}})),Object(O.withDispatch)((function(e){return{onRemove:e("core/notices").removeNotice,onRemove2:e("core/notices2").removeNotice}})))(st),ft=n(140),pt=n(86);function dt(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 mt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?dt(Object(n),!0).forEach((function(t){u()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ht(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 vt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ht(Object(n),!0).forEach((function(t){u()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ht(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function bt(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=y()(e);if(t){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return v()(this,n)}}Object(ft.registerPlugin)("wc-admin-navigation",{render:function(){var e=Object(g.useState)(Object(Z.getPersistedQuery)()),t=Se()(e,2),n=t[0],r=t[1],o=function(e){return Object(Z.getQueryExcludedScreens)().includes(Object(Z.getScreenFromPath)(e))};if(Object(g.useEffect)((function(){return Object(pt.a)((function(){setTimeout((function(){o()||r(Object(Z.getPersistedQuery)())}),0)}))}),[]),!Object(re.f)(window.location.href))return null;var i=Object(ne.a)().filter((function(e){return e.navArgs})),a=fe().filter((function(e){return e.navArgs})).map((function(e){return"/analytics/settings"===e.path?mt(mt({},e),{},{breadcrumbs:[Object(te.__)("Analytics","woocommerce-admin")]}):e}));return Object(g.createElement)(g.Fragment,null,a.map((function(e){return Object(g.createElement)(Z.WooNavigationItem,{item:e.navArgs.id,key:e.navArgs.id},Object(g.createElement)(Y.Link,{className:"components-button",href:Object(Z.getNewPath)(o(e.path)?{}:n,e.path,{}),type:"wc-admin"},e.breadcrumbs[e.breadcrumbs.length-1]))})),i.map((function(e){return Object(g.createElement)(Z.WooNavigationItem,{item:e.navArgs.id,key:e.navArgs.id},Object(g.createElement)(Y.Link,{className:"components-button",href:Object(Z.getNewPath)(o(e.report)?{}:n,"/analytics/".concat(e.report),{}),type:"wc-admin"},e.title))})))}});var yt=Object(g.lazy)((function(){return Promise.all([n.e(1),n.e(47)]).then(n.bind(null,595))})),gt=Object(g.lazy)((function(){return n.e(51).then(n.bind(null,522))})),wt=function(e){m()(n,e);var t=bt(n);function n(){return l()(this,n),t.apply(this,arguments)}return p()(n,[{key:"render",value:function(){var e=this.props.children;return Object(g.createElement)("div",{className:"woocommerce-layout__primary",id:"woocommerce-layout__primary"},window.wcAdminFeatures["store-alerts"]&&Object(g.createElement)(g.Suspense,{fallback:Object(g.createElement)(Y.Spinner,null)},Object(g.createElement)(yt,null)),Object(g.createElement)(et,null),e)}}]),n}(g.Component),Ot=function(e){m()(n,e);var t=bt(n);function n(){return l()(this,n),t.apply(this,arguments)}return p()(n,[{key:"componentDidMount",value:function(){this.recordPageViewTrack()}},{key:"componentDidUpdate",value:function(e){var t=Object(Q.get)(e,"location.pathname"),n=Object(Q.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,vt({is_embedded:!0},i))}else{var c=Object(Q.get)(this.props,"location.pathname");if(c){var u=c.substring(1).replace(/\//g,"_");0===u.length&&(u="home_screen"),Object(X.recordPageView)(u,vt({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(Z.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(g.createElement)("div",{className:"woocommerce-layout"},Object(g.createElement)(Je,{sections:Object(Q.isFunction)(c)?c(this.props):c,isEmbedded:t,query:u}),Object(g.createElement)(lt,null),!t&&Object(g.createElement)(wt,null,Object(g.createElement)("div",{className:"woocommerce-layout__main"},Object(g.createElement)(pe,o()({},n,{query:u})))),t&&this.isWCPaySettingsPage()&&Object(g.createElement)(g.Suspense,{fallback:null},Object(g.createElement)(gt,null)))}}]),n}(g.Component);Ot.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 jt=Object(w.compose)(Object(J.withPluginsHydration)(vt(vt({},window.wcSettings.plugins||{}),{},{jetpackStatus:window.wcSettings.dataEndpoints&&window.wcSettings.dataEndpoints.jetpackStatus||!1})),Object(O.withSelect)((function(e,t){if(!t.isEmbedded){var n=e(J.PLUGINS_STORE_NAME),r=n.getActivePlugins,o=n.getInstalledPlugins,i=n.isJetpackConnected;return{activePlugins:r(),isJetpackConnected:i(),installedPlugins:o()}}})))(Ot),Et=function(e){m()(n,e);var t=bt(n);function n(){return l()(this,n),t.apply(this,arguments)}return p()(n,[{key:"render",value:function(){return Object(g.createElement)(D,{history:Object(Z.getHistory)()},Object(g.createElement)(W,null,fe().map((function(e){return Object(g.createElement)(q,{key:e.path,path:e.path,exact:!0,render:function(t){return Object(g.createElement)(jt,o()({page:e},t))}})}))))}}]),n}(g.Component),_t=Object(w.compose)(window.wcSettings.preloadOptions?Object(J.withOptionsHydration)(vt({},window.wcSettings.preloadOptions)):Q.identity)(Et),kt=Object(w.compose)(window.wcSettings.preloadOptions?Object(J.withOptionsHydration)(vt({},window.wcSettings.preloadOptions)):Q.identity)((function(){return Object(g.createElement)(jt,{page:{breadcrumbs:Object(K.g)("embedBreadcrumbs",[])},isEmbedded:!0})}))},143:function(e,t){!function(){e.exports=this.wc.number}()},15:function(e,t){!function(){e.exports=this.wp.data}()},152: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,p=r?Symbol.for("react.concurrent_mode"):60111,d=r?Symbol.for("react.forward_ref"):60112,m=r?Symbol.for("react.suspense"):60113,h=r?Symbol.for("react.suspense_list"):60120,v=r?Symbol.for("react.memo"):60115,b=r?Symbol.for("react.lazy"):60116,y=r?Symbol.for("react.block"):60121,g=r?Symbol.for("react.fundamental"):60117,w=r?Symbol.for("react.responder"):60118,O=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 p:case a:case u:case c:case m:return e;default:switch(e=e&&e.$$typeof){case l:case d:case b:case v:case s:return e;default:return t}}case i:return t}}}function E(e){return j(e)===p}t.AsyncMode=f,t.ConcurrentMode=p,t.ContextConsumer=l,t.ContextProvider=s,t.Element=o,t.ForwardRef=d,t.Fragment=a,t.Lazy=b,t.Memo=v,t.Portal=i,t.Profiler=u,t.StrictMode=c,t.Suspense=m,t.isAsyncMode=function(e){return E(e)||j(e)===f},t.isConcurrentMode=E,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)===d},t.isFragment=function(e){return j(e)===a},t.isLazy=function(e){return j(e)===b},t.isMemo=function(e){return j(e)===v},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===p||e===u||e===c||e===m||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===b||e.$$typeof===v||e.$$typeof===s||e.$$typeof===l||e.$$typeof===d||e.$$typeof===g||e.$$typeof===w||e.$$typeof===O||e.$$typeof===y)},t.typeOf=j},16:function(e,t){!function(){e.exports=this.moment}()},17:function(e,t){!function(){e.exports=this.wp.dataControls}()},18:function(e,t){!function(){e.exports=this.wp.compose}()},182: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(24)),i=r(n(96)),a=n(10),c=r(a),u=r(n(304)),s=r(n(9)),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 p(e,t){return l.und(e)||l.nul(e)?t:e}function d(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 v,b,y=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}(),g=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 y&&e.addChild(s(t))}))},t.detach=function(){return t.payload.forEach((function(e){return e instanceof y&&e.removeChild(s(t))}))},t}return u(t,e),t}(y),w=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 y&&e.addChild(s(t))}))},t.detach=function(){return Object.values(t.payload).forEach((function(e){return e instanceof y&&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 y)&&(t[n]=r instanceof y?r[e?"getAnimatedValue":"getValue"]():r)}return t},n.getAnimatedValue=function(){return this.getValue(!0)},t}(y);function O(e,t){v={fn:e,transform:t}}function j(e){b=e}var E,_=function(e){return"undefined"!=typeof window?window.requestAnimationFrame(e):-1},k=function(e){"undefined"!=typeof window&&window.cancelAnimationFrame(e)};function x(e){E=e}var S,P=function(){return Date.now()};function C(e){S=e}var A,T,N=function(e){return e.current};function R(e){A=e}var L=Object.freeze({get applyAnimatedValues(){return v},injectApplyAnimatedValues:O,get colorNames(){return b},injectColorNames:j,get requestFrame(){return _},get cancelFrame(){return k},injectFrame:function(e,t){_=e,k=t},get interpolation(){return E},injectStringInterpolator:x,get now(){return P},injectNow:function(e){P=e},get defaultElement(){return S},injectDefaultElement:C,get animatedApi(){return N},injectAnimatedApi:function(e){N=e},get createAnimatedStyle(){return A},injectCreateAnimatedStyle:R,get manualFrameloop(){return T},injectManualFrameloop:function(e){T=e}}),M=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}(w),D=!1,I=new Set,V=function e(){if(!D)return!1;var t=P(),n=I,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,p=0;p<s.animatedValues.length;p++){var d=s.animatedValues[p];if(!d.done){var m=s.fromValues[p],h=s.toValues[p],v=d.lastPosition,b=h instanceof y,g=Array.isArray(s.initialVelocity)?s.initialVelocity[p]:s.initialVelocity;if(b&&(h=h.getValue()),s.immediate)d.setValue(h),d.done=!0;else if("string"!=typeof m&&"string"!=typeof h){if(void 0!==s.duration)v=m+s.easing((t-d.startTime)/s.duration)*(h-m),l=t>=d.startTime+s.duration;else if(s.decay)v=m+g/(1-.998)*(1-Math.exp(-(1-.998)*(t-d.startTime))),(l=Math.abs(d.lastPosition-v)<.1)&&(h=v);else{f=void 0!==d.lastTime?d.lastTime:t,g=void 0!==d.lastVelocity?d.lastVelocity:s.initialVelocity,t>f+64&&(f=t);for(var w=Math.floor(t-f),O=0;O<w;++O){v+=1*(g+=1*((-s.tension*(v-h)+-s.friction*g)/s.mass)/1e3)/1e3}var j=!(!s.clamp||0===s.tension)&&(m<h?v>h:v<h),E=Math.abs(g)<=s.precision,k=0===s.tension||Math.abs(h-v)<=s.precision;l=j||E&&k,d.lastVelocity=g,d.lastTime=t}b&&!s.toValues[p].done&&(l=!1),l?(d.value!==h&&(v=h),d.done=!0):c=!0,d.setValue(v),d.lastPosition=v}else d.setValue(h),d.done=!0}}a.props.onFrame&&(a.values[s.name]=s.interpolation.getValue())}a.props.onFrame&&a.props.onFrame(a.values),c||(I.delete(a),a.stop(!0))}return I.size?T?T():_(e):D=!1,D};function F(e,t,n){if("function"==typeof e)return e;if(Array.isArray(e))return F({range:e,output:t,extrapolate:n});if(E&&"string"==typeof e.output[0])return E(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 q=function(e){function t(n,r,o,i){var a;return(a=e.call(this)||this).calc=void 0,a.payload=n instanceof g&&!(n instanceof t)?n.getPayload():Array.isArray(n)?n:[n],a.calc=F(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=F(e,t,n)},n.interpolate=function(e,n,r){return new t(this,e,n,r)},t}(g);var U=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 q(this,e,t,n)},t}(y),B=function(e){function t(t){var n;return(n=e.call(this)||this).payload=t.map((function(e){return new U(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 q(this,e,t)},t}(g),H=0,z=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=H++}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,I.has(t)||I.add(t),D||(D=!0,_(T||V));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,I.has(t)&&I.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,p=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[p]),p++,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,v=n.reset,y=n.immediate;if(f){var g=[c,i];i=g[0],c=g[1]}this.merged=o({},i,this.merged,c),this.hasChanged=!1;var w=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)&&!b[a],h=l.arr(a),g=!u&&!h&&!f,O=l.und(i[r])?a:i[r],j=u||h||f?a:1,_=m(s,r);w&&(j=w.animations[r].parent);var k,x=c.parent,S=c.interpolation,C=d(w?j.getPayload():j),A=a;g&&(A=E({range:[0,1],output:[a,a]})(1));var T,N=S&&S.getValue(),R=!l.und(x)&&c.animatedValues.some((function(e){return!e.done})),L=!l.equ(A,N),M=!l.equ(A,c.previous),D=!l.equ(_,c.config);if(v||M&&L||D){var I;if(u||f)x=S=c.parent||new U(O);else if(h)x=S=c.parent||new B(O);else if(g){var V=c.interpolation&&c.interpolation.calc(c.parent.value);V=void 0===V||v?O:V,c.parent?(x=c.parent).setValue(0,!1):x=new U(0);var F={output:[V,a]};c.interpolation?(S=c.interpolation,c.interpolation.updateConfig(F)):S=x.interpolate(F)}return C=d(w?j.getPayload():j),k=d(x.getPayload()),v&&!g&&x.setValue(O,!1),t.hasChanged=!0,k.forEach((function(e){e.startPosition=e.value,e.lastPosition=e.value,e.lastVelocity=R?e.lastVelocity:void 0,e.lastTime=R?e.lastTime:void 0,e.startTime=P(),e.done=!1,e.animatedStyles.clear()})),m(y,r)&&x.setValue(g?j:a,!1),o({},e,((I={})[r]=o({},c,{name:r,parent:x,interpolation:S,animatedValues:k,toValues:C,previous:A,config:_,fromValues:d(x.getValue()),immediate:m(y,r),initialVelocity:p(_.velocity,0),clamp:p(_.clamp,!1),precision:p(_.precision,.01),tension:p(_.tension,170),friction:p(_.friction,26),mass:p(_.mass,1),duration:_.duration,easing:p(_.easing,(function(e){return e})),decay:_.decay}),I))}return L?e:(g&&(x.setValue(1,!1),S.updateConfig({output:[A,A]})),x.done=!0,t.hasChanged=!0,o({},e,((T={})[r]=o({},e[r],{previous:A}),T)))}),this.animations),this.hasChanged)for(var O in this.configs=Object.values(this.animations),this.values={},this.interpolations={},this.animations)this.interpolations[O]=this.animations[O].interpolation,this.values[O]=this.animations[O].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}(),$=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 z,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},W=0,Q=function(e,t){return("function"==typeof t?e.map(t):d(t)).map(String)},G=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=d(void 0!==t?t:null),o({items:t,keys:Q(t,r)},a)};function Y(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 Z=function(e){function t(t){var n;return void 0===t&&(t={}),n=e.call(this)||this,!t.transform||t.transform instanceof y||(t=v.transform(t)),n.payload=t,n}return u(t,e),t}(w),K={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},J="[-+]?\\d*\\.?\\d+";function X(){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"+X(J,J,J)),te=new RegExp("rgba"+X(J,J,J,J)),ne=new RegExp("hsl"+X(J,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%")),re=new RegExp("hsla"+X(J,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%",J)),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 pe(e){var t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function de(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:K.hasOwnProperty(t)?K[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|pe(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]),de(n[2]),de(n[3])))>>>0:(n=re.exec(t))?(se(fe(n[1]),de(n[2]),de(n[3]))|pe(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,ve=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,be=new RegExp("("+Object.keys(K).join("|")+")","g"),ye={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},ge=["Webkit","Ms","Moz","O"];function we(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||ye.hasOwnProperty(e)&&ye[e]?(""+t).trim():t+"px"}ye=Object.keys(ye).reduce((function(e,t){return ge.forEach((function(n){return e[function(e,t){return e+t.charAt(0).toUpperCase()+t.substring(1)}(n,t)]=e[t]})),e}),ye);var Oe={};R((function(e){return new Z(e)})),C("div"),x((function(e){var t=e.output.map((function(e){return e.replace(ve,me)})).map((function(e){return e.replace(be,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 F(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(K),O((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=we(s,n[s],l);"float"===s&&(s="cssFloat"),l?e.style.setProperty(s,f):e.style[s]=f}for(var p in c){var d=u?p:Oe[p]||(Oe[p]=p.replace(/([A-Z])/g,(function(e){return"-"+e.toLowerCase()})));void 0!==e.getAttribute(d)&&e.setAttribute(d,c[p])}}),(function(e){return e}));var je,Ee,_e=(je=function(e){return a.forwardRef((function(t,n){var r=f(),u=a.useRef(!0),s=a.useRef(null),p=a.useRef(null),d=a.useCallback((function(e){var t=s.current;s.current=new M(e,(function(){var e=!1;p.current&&(e=v.fn(p.current,s.current.getAnimatedValue())),p.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 N(p,u,r)})),d(t);var m,h=s.current.getValue(),b=(h.scrollTop,h.scrollLeft,i(h,["scrollTop","scrollLeft"])),y=(m=e,!l.fun(m)||m.prototype instanceof c.Component?function(e){return p.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({},b,{ref:y}))}))},void 0===(Ee=!1)&&(Ee=!0),function(e){return(l.arr(e)?e:Object.keys(e)).reduce((function(e,t){var n=Ee?t[0].toLowerCase()+t.substring(1):t;return e[n]=je(n),e}),je)}),ke=_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=V,t.animated=ke,t.a=ke,t.interpolate=function(e,t,n){return e&&new q(e,t,n)},t.Globals=L,t.useSpring=function(e){var t=l.fun(e),n=$(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=$(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],p=u[2],d=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&&d(t)})),a.useEffect((function(){n.current=!0}),[]),r?[s,d,p]:s},t.useTransition=function(e,t,n){var r=o({items:e,keys:t||function(e){return e}},n),c=G(r),u=c.lazy,s=void 0!==u&&u,l=(c.unique,c.reset),p=void 0!==l&&l,d=(c.enter,c.leave,c.update,c.onDestroyed),h=(c.keys,c.items,c.onFrame),v=c.onRest,b=c.onStart,y=c.ref,g=i(c,["lazy","unique","reset","enter","leave","update","onDestroyed","keys","items","onFrame","onRest","onStart","ref"]),w=f(),O=a.useRef(!1),j=a.useRef({mounted:!1,first:!0,deleted:[],current:{},transitions:[],prevProps:{},paused:!!r.ref,instances:!O.current&&new Map,forceUpdate:w});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=G(t),u=c.items,s=c.keys,l=c.initial,f=c.from,p=c.enter,d=c.leave,h=c.update,v=c.trail,b=void 0===v?0:v,y=c.unique,g=c.config,w=c.order,O=void 0===w?["enter","leave","update"]:w,j=G(r),E=j.keys,_=j.items,k=o({},a.current),x=[].concat(a.deleted),S=Object.keys(k),P=new Set(S),C=new Set(s),A=s.filter((function(e){return!P.has(e)})),T=a.transitions.filter((function(e){return!e.destroyed&&!C.has(e.originalKey)})).map((function(e){return e.originalKey})),N=s.filter((function(e){return P.has(e)})),R=-b;for(;O.length;){switch(O.shift()){case"enter":A.forEach((function(e,t){y&&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";k[e]={slot:i,originalKey:e,key:y?String(e):W++,item:o,trail:R+=b,config:m(g,o,i),from:m(n&&void 0!==l?l||{}:f,o),to:m(p,o)}}));break;case"leave":T.forEach((function(e){var t=E.indexOf(e),n=_[t];x.unshift(o({},k[e],{slot:"leave",destroyed:!0,left:E[Math.max(0,t-1)],right:E[Math.min(E.length,t+1)],trail:R+=b,config:m(g,n,"leave"),to:m(d,n)})),delete k[e]}));break;case"update":N.forEach((function(e){var t=s.indexOf(e),n=u[t];k[e]=o({},k[e],{item:n,slot:"update",trail:R+=b,config:m(g,n,"update"),to:m(h,n)})}))}}var L=s.map((function(e){return k[e]}));return x.forEach((function(e){var t,n=e.left,r=(e.right,i(e,["left","right"]));-1!==(t=L.findIndex((function(e){return e.originalKey===n})))&&(t+=1),t=Math.max(0,t),L=[].concat(L.slice(0,t),[r],L.slice(t))})),o({},a,{changed:A.length||T.length||N.length,first:n&&0===A.length,transitions:L,current:k,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 z);var l=j.current.instances.get(c),f=o({},g,{to:r,from:n,config:i,ref:y,onRest:function(n){j.current.mounted&&(e.destroyed&&(y||s||Y(j,c),d&&d(u)),!Array.from(j.current.instances).some((function(e){return!e[1].idle}))&&(y||s)&&j.current.deleted.length>0&&Y(j),v&&v(u,t,n))},onStart:b&&function(){return b(u,t)},onFrame:h&&function(e){return h(u,t,e)},delay:a,reset:p&&"enter"===t});l.update(f),j.current.paused||l.start()})),a.useEffect((function(){return j.current.mounted=O.current=!0,function(){j.current.mounted=O.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=$},183:function(e,t,n){"use strict";(function(e){var r=n(10),o=n.n(r),i=n(38),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 p=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 p.contextTypes=((o={})[l]=c.a.object,o),{Provider:f,Consumer:p}};t.a=l}).call(this,n(82))},184:function(e,t,n){var r=n(306);e.exports=d,e.exports.parse=i,e.exports.compile=function(e,t){return c(i(e,t),t)},e.exports.tokensToFunction=c,e.exports.tokensToRegExp=p;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],p=n[1],d=n.index;if(c+=e.slice(a,d),a=d+f.length,p)c+=p[1];else{var m=e[a],h=n[2],v=n[3],b=n[4],y=n[5],g=n[6],w=n[7];c&&(r.push(c),c="");var O=null!=h&&null!=m&&m!==h,j="+"===g||"*"===g,E="?"===g||"*"===g,_=n[2]||l,k=b||y;r.push({name:v||i++,prefix:h||"",delimiter:_,optional:E,repeat:j,partial:O,asterisk:!!w,pattern:k?s(k):w?".*":"[^"+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,p=c[l.name];if(null==p){if(l.optional){l.partial&&(i+=l.prefix);continue}throw new TypeError('Expected "'+l.name+'" to be defined')}if(r(p)){if(!l.repeat)throw new TypeError('Expected "'+l.name+'" to not repeat, but received `'+JSON.stringify(p)+"`");if(0===p.length){if(l.optional)continue;throw new TypeError('Expected "'+l.name+'" to not be empty')}for(var d=0;d<p.length;d++){if(f=u(p[d]),!n[s].test(f))throw new TypeError('Expected all "'+l.name+'" to match "'+l.pattern+'", but received `'+JSON.stringify(f)+"`");i+=(0===d?l.prefix:l.delimiter)+f}}else{if(f=l.asterisk?encodeURI(p).replace(/[?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})):u(p),!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 p(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 p=u(s.prefix),d="(?:"+s.pattern+")";t.push(s),s.repeat&&(d+="(?:"+p+d+")*"),a+=d=s.optional?s.partial?p+"("+d+")?":"(?:"+p+"("+d+"))?":p+"("+d+")"}}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 d(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(d(e[o],t,n).source);return l(new RegExp("(?:"+r.join("|")+")",f(n)),t)}(e,t,n):function(e,t,n){return p(i(e,n),t,n)}(e,t,n)}},19:function(e,t,n){var r=n(57),o=n(58),i=n(39),a=n(59);e.exports=function(e){return r(e)||o(e)||i(e)||a()}},196:function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return i}));var r=n(3);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}},197:function(e,t,n){"use strict";n.d(t,"a",(function(){return l})),n.d(t,"b",(function(){return f}));var r=n(36),o=n(55),i=n(7),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)("path",e)},f=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)}},2:function(e,t){!function(){e.exports=this.wp.i18n}()},20:function(e,t,n){var r=n(60),o=n(61),i=n(39),a=n(62);e.exports=function(e,t){return r(e)||o(e,t)||i(e,t)||a()}},21:function(e,t){!function(){e.exports=this.wc.navigation}()},22:function(e,t){!function(){e.exports=this.wp.url}()},23:function(e,t){!function(){e.exports=this.wc.data}()},24: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},25: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 p})),n.d(t,"e",(function(){return d})),n.d(t,"g",(function(){return m})),n.d(t,"h",(function(){return h})),n.d(t,"f",(function(){return v}));var r=n(30),o=n.n(r),i=n(2),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,p=u.orderStatuses,d=(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 v(e){return(s||"")+e}},27:function(e,t){!function(){e.exports=this.wp.apiFetch}()},277:function(e,t,n){"use strict";(function(e){var r=n(0),o=n(3),i=n(7),a=n.n(i),c=n(141),u=n(2),s=(n(278),n(4));t.a=Object(r.forwardRef)((function(t,n){var i=t.className,l=t.children,f=t.spokenMessage,p=void 0===f?l:f,d=t.politeness,m=void 0===d?"polite":d,h=t.actions,v=void 0===h?[]:h,b=t.onRemove,y=void 0===b?o.noop:b,g=t.icon,w=void 0===g?null:g,O=t.explicitDismiss,j=void 0!==O&&O,E=t.onDismiss,_=void 0===E?null:E;function k(e){e&&e.preventDefault&&e.preventDefault(),_(),y()}_=_||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])}(p,m),Object(r.useEffect)((function(){var e=setTimeout((function(){j||(_(),y())}),1e4);return function(){return clearTimeout(e)}}),[j,_,y]);var x=a()(i,"components-snackbar",{"components-snackbar-explicit-dismiss":!!j});v&&v.length>1&&(void 0!==e&&e.env,v=[v[0]]);var S=a()("components-snackbar__content",{"components-snackbar__content-with-icon":!!w});return Object(r.createElement)("div",{ref:n,className:x,onClick:j?o.noop:k,tabIndex:"0",role:j?"":"button",onKeyPress:j?o.noop:k,"aria-label":j?"":Object(u.__)("Dismiss this notice")},Object(r.createElement)("div",{className:S},w&&Object(r.createElement)("div",{className:"components-snackbar__icon"},w),l,v.map((function(e,t){var n=e.label,o=e.onClick,i=e.url;return Object(r.createElement)(s.Button,{key:t,href:i,isTertiary:!0,onClick:function(e){return function(e,t){e.stopPropagation(),y(),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:k,onKeyPress:k},"✕")))}))}).call(this,n(125))},278: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(125))},279:function(e,t){!function(){e.exports=this.wc.customerEffortScore}()},28:function(e,t){!function(){e.exports=this.wc.tracks}()},286:function(e,t,n){"use strict";n.d(t,"a",(function(){return B}));var r={};n.r(r),n.d(r,"setCesSurveyQueue",(function(){return C})),n.d(r,"addCesSurvey",(function(){return A})),n.d(r,"addCesSurveyForAnalytics",(function(){return T}));var o={};n.r(o),n.d(o,"getCesSurveyQueue",(function(){return M}));var i={};n.r(i),n.d(i,"getCesSurveyQueue",(function(){return D}));var a=n(19),c=n.n(a),u=n(5),s=n.n(u),l=n(20),f=n.n(l),p=n(0),d=n(1),m=n.n(d),h=n(28),v=n(279),b=n.n(v),y=n(18),g=n(15),w=n(23),O=n(2);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 E(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(O.__)("Thank you for your feedback!","woocommerce-admin"):o,a=e.cesShownForActions,u=e.allowTracking,l=e.resolving,d=e.storeAgeInWeeks,m=e.updateOptions,v=e.createNotice,y=Object(p.useState)(!1),g=f()(y,2),w=g[0],j=g[1];if(l)return null;if(!u)return null;if(-1!==a.indexOf(t)&&!w)return null;var _=function(){m(s()({},"woocommerce_ces_shown_for_actions",[t].concat(c()(a))))};return Object(p.createElement)(b.a,{recordScoreCallback:function(e,r){Object(h.recordEvent)("ces_feedback",E({action:t,score:e,comments:r||"",store_age:d},n)),v("success",i)},label:r,onNoticeShownCallback:function(){Object(h.recordEvent)("ces_snackbar_view",E({action:t,store_age:d},n))},onNoticeDismissedCallback:function(){Object(h.recordEvent)("ces_snackbar_dismiss",E({action:t,store_age:d},n)),_()},onModalShownCallback:function(){j(!0),Object(h.recordEvent)("ces_view",E({action:t,store_age:d},n)),_()},icon:Object(p.createElement)("span",{style:{height:21,width:21},role:"img","aria-label":Object(O.__)("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 k=Object(y.compose)(Object(g.withSelect)((function(e){var t=e(w.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/w.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(g.withDispatch)((function(e){return{updateOptions:e(w.OPTIONS_STORE_NAME).updateOptions,createNotice:e("core/notices").createNotice}})))(_),x=n(73),S=n(17),P={SET_CES_SURVEY_QUEUE:"SET_CES_SURVEY_QUEUE",ADD_CES_SURVEY:"ADD_CES_SURVEY"};function C(e){return{type:P.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:P.ADD_CES_SURVEY,action:e,label:t,pageNow:n,adminPage:r,onsubmit_label:o}}function T(){return A("analytics_filtered",Object(O.__)("How easy was it to filter your store analytics?","woocommerce-admin"),"woocommerce_page_wc-admin","woocommerce_page_wc-admin")}var N=n(8),R=n.n(N),L=R.a.mark(M);function M(){var e;return R.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(S.apiFetch)({path:"".concat(x.a,"/options?options=").concat(x.b)});case 2:if(!(e=t.sent)){t.next=8;break}return t.next=6,C(e[x.b]||[]);case 6:t.next=9;break;case 8:throw new Error;case 9:case"end":return t.stop()}}),L)}function D(e){return e.queue}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 V(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){s()(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 F={queue:[]},q=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:F,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case P.SET_CES_SURVEY_QUEUE:return V(V({},e),{},{queue:t.queue});case P.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 V(V({},e),{},{queue:[].concat(c()(e.queue),[r])});default:return e}};Object(g.registerStore)(x.c,{actions:r,selectors:i,resolvers:o,controls:S.controls,reducer:q});function U(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(p.createElement)(p.Fragment,null,o.map((function(e,t){return Object(p.createElement)(k,{key:t,action:e.action,label:e.label,onSubmitLabel:e.onsubmit_label,trackProps:e.props||{}})})))}U.propTypes={queue:m.a.arrayOf(m.a.object),resolving:m.a.bool,clearQueue:m.a.func};var B=Object(y.compose)(Object(g.withSelect)((function(e){var t=e(x.c),n=t.getCesSurveyQueue,r=t.isResolving;return{queue:n(),resolving:r("getOption",[x.b])}})),Object(g.withDispatch)((function(e){var t=e(w.OPTIONS_STORE_NAME).updateOptions;return{clearQueue:function(){t({woocommerce_clear_ces_tracks_queue_for_page:{pagenow:window.pagenow,adminpage:window.adminpage}})}}})))(U)},287:function(e,t,n){"use strict";var r=n(0),o=n(140),i=n(21),a=n(23),c=(n(307),n(20)),u=n.n(c),s=n(5),l=n.n(s),f=n(2),p=n(18),d=n(31),m=n(28),h=n(15),v=n(86),b=n(4),y=n(40),g=n(302),w=n(197),O=Object(r.createElement)(w.b,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(r.createElement)(w.a,{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"})),j=n(25),E=n(7),_=n.n(E),k=n(3),x=n(139),S=function(){var e=Object(j.g)("siteTitle",""),t=Object(j.g)("siteUrl",""),n=Object(x.a)(),o=Object(r.useState)(document.body.classList.contains(!1)),i=u()(o,2),a=i[0],c=i[1],s="is-wc-nav-folded",l="is-wc-nav-expanded",p=function(){document.body.classList.add(s),document.body.classList.remove(l),c(!0)},d=function(){document.body.classList.remove(s),document.body.classList.add(l),c(!1)},m=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.body.clientWidth;e<=960?p():d()};Object(r.useEffect)((function(){m();for(var e=0,t=[{eventName:"orientationchange",handler:function(e){return m(e.target.screen.availWidth)}},{eventName:"resize",handler:Object(k.debounce)((function(){return m()}),200)}];e<t.length;e++){var n=t[e],r=n.eventName,o=n.handler;window.addEventListener(r,o,!1)}Object(v.a)((function(){return m()}))}),[]);var w=Object(r.createElement)(g.a,{size:"36px",icon:O}),E=Object(h.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}})),S=E.isRequestingSiteIcon,P=E.siteIconUrl;P?w=Object(r.createElement)("img",{alt:Object(f.__)("Site Icon"),src:P}):S&&(w=null);var C=_()("woocommerce-navigation-header",{"is-scrolled":n});return Object(r.createElement)("div",{className:C},Object(r.createElement)(b.Button,{onClick:function(){document.body.classList.contains(s)?d():p()},className:"woocommerce-navigation-header__site-icon","aria-label":"Fold navigation",role:"switch","aria-checked":a?"true":"false"},w),Object(r.createElement)(b.Button,{href:t,className:"woocommerce-navigation-header__site-title",as:"span"},Object(y.decodeEntities)(e)))},P=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(m.recordEvent)("navigation_click",{menu_item:e})};return o&&!t.isCategory?Object(r.createElement)(d.d,{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)(d.d,{key:t.id,item:t.id,title:t.title,href:t.url,navigateToMenu:!t.url&&t.id,onClick:function(){return a(t.id)}})};function C(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?C(Object(n),!0).forEach((function(t){l()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):C(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var T=Object(p.compose)(Object(h.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=window.wcNavigation,o=n.rootBackLabel,i=n.rootBackUrl,a=t.reduce((function(e,t){return t.isCategory?A(A({},e),{},l()({},t.id,t)):e}),{woocommerce:{capability:"manage_woocommerce",id:"woocommerce",isCategory:!0,menuId:"primary",migrate:!0,order:10,parent:"",title:"WooCommerce"}}),c=Object.values(a),s=Object(r.useState)("woocommerce-home"),p=u()(s,2),h=p[0],b=p[1],y=Object(r.useState)("woocommerce"),g=u()(y,2),w=g[0],O=g[1];Object(r.useEffect)((function(){var e=Object(v.b)(t);return e&&(b(e),O(e.parent)),Object(v.a)((function(){setTimeout((function(){var e=Object(v.b)(t);e&&b(e)}),0)}))}),[t]);var j=Object(r.useMemo)((function(){return t.reduce((function(e,t){return e[t.parent]||(e[t.parent]={}),"woocommerce"!==t.parent&&a[t.parent]&&a[t.parent].menuId!==t.menuId||(e[t.parent][t.menuId]||(e[t.parent][t.menuId]=[]),e[t.parent][t.menuId].push(t)),e}),{})}),[t]),E=Object(r.useRef)(null),_=function(e){Object(m.recordEvent)("navigation_back_click",{category:e})},k="woocommerce"===w&&i;return Object(r.createElement)("div",{className:"woocommerce-navigation"},Object(r.createElement)(S,null),Object(r.createElement)("div",{className:"woocommerce-navigation__wrapper",ref:E},Object(r.createElement)(d.a,{activeItem:h?h.id:null,activeMenu:w,onActivateMenu:function(){E&&E.current&&(E.current.scrollTop=0),O.apply(void 0,arguments)}},k&&Object(r.createElement)(d.b,{className:"woocommerce-navigation__back-to-dashboard",href:i,backButtonLabel:o,onClick:function(){return _("woocommerce")}}),c.map((function(e){var t=j[e.id]||{},n=t.primary,o=t.secondary,i=t.plugins;return Object(r.createElement)(d.e,{key:e.id,title:e.title,menu:e.id,parentMenu:e.parent,backButtonLabel:e.backButtonLabel||null,onBackButtonClick:k?null:function(){return _(e.id)}},!!n&&Object(r.createElement)(d.c,null,n.map((function(e){return Object(r.createElement)(P,{key:e.id,item:e})}))),!!i&&Object(r.createElement)(d.c,{title:"woocommerce"===e.id?Object(f.__)("Extensions","woocommerce-admin"):null},i.map((function(e){return Object(r.createElement)(P,{key:e.id,item:e})}))),!!o&&Object(r.createElement)(d.c,{onBackButtonClick:function(){return _(e.id)}},o.map((function(e){return Object(r.createElement)(P,{key:e.id,item:e})}))))})))))})),N=Object(a.withNavigationHydration)(window.wcNavigation)((function(){return Object(r.createElement)(i.NavSlotFillProvider,null,Object(r.createElement)(T,null),Object(r.createElement)(o.PluginArea,null))}));t.a=N},29:function(e,t){!function(){e.exports=this.wc.date}()},295:function(e,t,n){"use strict";n.r(t),function(e){var t=n(0),r=(n(469),n(23)),o=(n(297),n(142)),i=n(286),a=n(287);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 p=document.getElementById("wpbody-content"),d=p.querySelector(".wrap.woocommerce")||p.querySelector('[class="wrap"]'),m=document.createElement("div");Object(t.render)(Object(t.createElement)("div",{className:"woocommerce-layout"},Object(t.createElement)(o.c,null)),p.insertBefore(m,d))}var h,v=document.getElementById("woocommerce-embedded-navigation");v&&Object(t.render)(Object(t.createElement)(a.a,null),v),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(82))},297:function(e,t,n){},298:function(e,t,n){},299:function(e,t,n){},3:function(e,t){!function(){e.exports=this.lodash}()},30: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},300:function(e,t,n){},301:function(e,t,n){},302:function(e,t,n){"use strict";var r=n(36),o=n(55),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))}},303:function(e,t,n){},304:function(e,t){e.exports=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}},305:function(e,t,n){},306:function(e,t){e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},307:function(e,t,n){},31:function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return a})),n.d(t,"e",(function(){return c})),n.d(t,"d",(function(){return u})),n.d(t,"f",(function(){return s})),n.d(t,"g",(function(){return l}));var r=n(4),o=r.Navigation||r.__experimentalNavigation,i=r.NavigationBackButton||r.__experimentalNavigationBackButton,a=r.NavigationGroup||r.__experimentalNavigationGroup,c=r.NavigationMenu||r.__experimentalNavigationMenu,u=r.NavigationItem||r.__experimentalNavigationItem,s=r.Text||r.__experimentalText,l=r.useSlot||r.__experimentalUseSlot},32: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}))},34:function(e,t,n){var r=n(96);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}},36: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}))},37: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}},38: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}))},39:function(e,t,n){var r=n(37);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}}},4:function(e,t){!function(){e.exports=this.wp.components}()},40:function(e,t){!function(){e.exports=this.wp.htmlEntities}()},41: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}))},42:function(e,t){!function(){e.exports=this.wp.hooks}()},43: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)}))}}},469:function(e,t,n){"use strict";var r={};n.r(r),n.d(r,"createNotice",(function(){return h})),n.d(r,"createSuccessNotice",(function(){return v})),n.d(r,"createInfoNotice",(function(){return b})),n.d(r,"createErrorNotice",(function(){return y})),n.d(r,"createWarningNotice",(function(){return g})),n.d(r,"removeNotice",(function(){return w}));var o={};n.r(o),n.d(o,"getNotices",(function(){return j}));var i=n(15),a=n(80),c=n(3),u=n(36);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})),p=n(8),d=n.n(p),m=d.a.mark(h);function h(){var e,t,n,r,o,i,a,u,s,l,f,p,h,v,b,y,g=arguments;return d.a.wrap((function(d){for(;;)switch(d.prev=d.next){case 0:if(e=g.length>0&&void 0!==g[0]?g[0]:"info",t=g.length>1?g[1]:void 0,n=g.length>2&&void 0!==g[2]?g[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,p=n.actions,h=void 0===p?[]:p,v=n.type,b=void 0===v?"default":v,y=n.__unstableHTML,t=String(t),!o){d.next=8;break}return d.next=8,{type:"SPEAK",message:t,ariaLive:"snackbar"===b?"polite":"assertive"};case 8:return d.next=10,{type:"CREATE_NOTICE",context:s,notice:{id:f,status:e,content:t,__unstableHTML:y,isDismissible:a,actions:h,type:b}};case 10:case"end":return d.stop()}}),m)}function v(e,t){return h("success",e,t)}function b(e,t){return h("info",e,t)}function y(e,t){return h("error",e,t)}function g(e,t){return h("warning",e,t)}function w(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"global";return{type:"REMOVE_NOTICE",id:e,context:t}}var O=[];function j(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"global";return e[t]||O}var E=n(141),_={SPEAK:function(e){Object(E.a)(e.message,e.ariaLive||"assertive")}};Object(i.registerStore)("core/notices",{reducer:f,actions:r,selectors:o,controls:_})},47:function(e,t){!function(){e.exports=this.wc.components}()},477:function(e,t){!function(){e.exports=this.wc.csvExport}()},49:function(e,t,n){"use strict";var r=n(87),o=n(88),i=n(52);e.exports={formats:i,parse:o,stringify:r}},5: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}},50:function(e,t){!function(){e.exports=this.ReactDOM}()},52:function(e,t,n){"use strict";var r=String.prototype.replace,o=/%20/g,i="RFC1738",a="RFC3986";e.exports={default:a,formatters:{RFC1738:function(e){return r.call(e,o,"+")},RFC3986:function(e){return String(e)}},RFC1738:i,RFC3986:a}},54: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}))},55:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(41);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}},56:function(e,t,n){"use strict";t.a=function(e,t){if(!e)throw new Error("Invariant failed")}},57:function(e,t,n){var r=n(37);e.exports=function(e){if(Array.isArray(e))return r(e)}},58:function(e,t){e.exports=function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}},59: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.")}},6: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},60:function(e,t){e.exports=function(e){if(Array.isArray(e))return e}},61: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}}},62: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.")}},67: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 E(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 k()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=w(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 p(){}function d(){}var m={};m[o]=function(){return this};var h=Object.getPrototypeOf,v=h&&h(h(_([])));v&&v!==t&&n.call(v,o)&&(m=v);var b=d.prototype=f.prototype=Object.create(m);function y(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function g(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 w(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,w(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 O(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 E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,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:k}}function k(){return{value:void 0,done:!0}}return p.prototype=b.constructor=d,d.constructor=p,p.displayName=c(d,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,c(e,a,"GeneratorFunction")),e.prototype=Object.create(b),e},e.awrap=function(e){return{__await:e}},y(g.prototype),g.prototype[i]=function(){return this},e.AsyncIterator=g,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new g(u(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(b),c(b,a,"Generator"),b[o]=function(){return this},b.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=_,E.prototype={constructor:E,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)}},68:function(e,t,n){"use strict";var r=n(52),o=Object.prototype.hasOwnProperty,i=Array.isArray,a=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),c=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:c,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 o=t[r],a=o.obj[o.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(i(n)){for(var r=[],o=0;o<n.length;++o)void 0!==n[o]&&r.push(n[o]);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,o,i){if(0===e.length)return e;var c=e;if("symbol"==typeof e?c=Symbol.prototype.toString.call(e):"string"!=typeof e&&(c=String(e)),"iso-8859-1"===n)return escape(c).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var u="",s=0;s<c.length;++s){var l=c.charCodeAt(s);45===l||46===l||95===l||126===l||l>=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122||i===r.RFC1738&&(40===l||41===l)?u+=c.charAt(s):l<128?u+=a[l]:l<2048?u+=a[192|l>>6]+a[128|63&l]:l<55296||l>=57344?u+=a[224|l>>12]+a[128|l>>6&63]+a[128|63&l]:(s+=1,l=65536+((1023&l)<<10|1023&c.charCodeAt(s)),u+=a[240|l>>18]+a[128|l>>12&63]+a[128|l>>6&63]+a[128|63&l])}return u},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(i(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,r){if(!n)return t;if("object"!=typeof n){if(i(t))t.push(n);else{if(!t||"object"!=typeof t)return[t,n];(r&&(r.plainObjects||r.allowPrototypes)||!o.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(n);var a=t;return i(t)&&!i(n)&&(a=c(t,r)),i(t)&&i(n)?(n.forEach((function(n,i){if(o.call(t,i)){var a=t[i];a&&"object"==typeof a&&n&&"object"==typeof n?t[i]=e(a,n,r):t.push(n)}else t[i]=n})),t):Object.keys(n).reduce((function(t,i){var a=n[i];return o.call(t,i)?t[i]=e(t[i],a,r):t[i]=a,t}),a)}}},69: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}))},7: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}()},70:function(e,t,n){"use strict";n.d(t,"a",(function(){return w})),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 d}));var r=n(32);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,p=a.length;p>=0;p--){var d=a[p];"."===d?i(a,p):".."===d?(i(a,p),f++):f&&(i(a,p),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(56);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 p(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function d(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 v(){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 b=!("undefined"==typeof window||!window.document||!window.document.createElement);function y(e,t){t(window.confirm(e))}function g(){try{return window.history.state||{}}catch(e){return{}}}function w(e){void 0===e&&(e={}),b||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,w=void 0===h?y:h,O=a.keyLength,j=void 0===O?6:O,E=e.basename?p(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 E&&(i=f(i,E)),m(i,r,n)}function k(){return Math.random().toString(36).substr(2,j)}var x=v();function S(e){Object(r.a)(F,e),F.length=n.length,x.notifyListeners(F.location,F.action)}function P(e){(function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")})(e)||T(_(e.state))}function C(){T(_(g()))}var A=!1;function T(e){if(A)A=!1,S();else{x.confirmTransitionTo(e,"POP",w,(function(t){t?S({action:"POP",location:e}):function(e){var t=F.location,n=R.indexOf(t.key);-1===n&&(n=0);var r=R.indexOf(e.key);-1===r&&(r=0);var o=n-r;o&&(A=!0,M(o))}(e)}))}}var N=_(g()),R=[N.key];function L(e){return E+d(e)}function M(e){n.go(e)}var D=0;function I(e){1===(D+=e)&&1===e?(window.addEventListener("popstate",P),i&&window.addEventListener("hashchange",C)):0===D&&(window.removeEventListener("popstate",P),i&&window.removeEventListener("hashchange",C))}var V=!1;var F={length:n.length,action:"POP",location:N,createHref:L,push:function(e,t){var r=m(e,t,k(),F.location);x.confirmTransitionTo(r,"PUSH",w,(function(e){if(e){var t=L(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=R.indexOf(F.location.key),s=R.slice(0,c+1);s.push(r.key),R=s,S({action:"PUSH",location:r})}else window.location.href=t}}))},replace:function(e,t){var r=m(e,t,k(),F.location);x.confirmTransitionTo(r,"REPLACE",w,(function(e){if(e){var t=L(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=R.indexOf(F.location.key);-1!==c&&(R[c]=r.key),S({action:"REPLACE",location:r})}else window.location.replace(t)}}))},go:M,goBack:function(){M(-1)},goForward:function(){M(1)},block:function(e){void 0===e&&(e=!1);var t=x.setPrompt(e);return V||(I(1),V=!0),function(){return V&&(V=!1,I(-1)),t()}},listen:function(e){var t=x.appendListener(e);return I(1),function(){I(-1),t()}}};return F}function O(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=v();function f(e){Object(r.a)(w,e),w.length=w.entries.length,l.notifyListeners(w.location,w.action)}function p(){return Math.random().toString(36).substr(2,s)}var h=O(c,0,i.length-1),b=i.map((function(e){return m(e,void 0,"string"==typeof e?p():e.key||p())})),y=d;function g(e){var t=O(w.index+e,0,w.entries.length-1),r=w.entries[t];l.confirmTransitionTo(r,"POP",n,(function(e){e?f({action:"POP",location:r,index:t}):f()}))}var w={length:b.length,action:"POP",location:b[h],index:h,entries:b,createHref:y,push:function(e,t){var r=m(e,t,p(),w.location);l.confirmTransitionTo(r,"PUSH",n,(function(e){if(e){var t=w.index+1,n=w.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,p(),w.location);l.confirmTransitionTo(r,"REPLACE",n,(function(e){e&&(w.entries[w.index]=r,f({action:"REPLACE",location:r}))}))},go:g,goBack:function(){g(-1)},goForward:function(){g(1)},canGo:function(e){var t=w.index+e;return t>=0&&t<w.entries.length},block:function(e){return void 0===e&&(e=!1),l.setPrompt(e)},listen:function(e){return l.appendListener(e)}};return w}},72:function(e,t){!function(){e.exports=this.wp.date}()},73: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"},74: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},75:function(e,t,n){"use strict";var r=n(76);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}},76:function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},8:function(e,t,n){e.exports=n(67)},80:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(69);var o=n(93);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.")}()}},82: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},86:function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return s}));var r=n(20),o=n.n(r),i=n(25),a=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},c=function(e){var t=e.replace(/[-\/\\^$*+?.()|[\]{}]/gi,"\\$&").split(/\\\?|#/),n=o()(t,3),r=n[0],i=n[1],a=n[2],c=a?"(.*#".concat(a,"$)"):"";return"^"+r+(i?i.split("&").reduce((function(e,t){return"".concat(e,"(?=.*[?|&]").concat(t,"(&|$|#))")}),""):"")+c},u=function(e){var t,n,r;return window.wcNavigation.historyPatched||(t=window.history,n=t.pushState,r=t.replaceState,t.pushState=function(e){var r=new CustomEvent("pushstate",{state:e});return window.dispatchEvent(r),n.apply(t,arguments)},t.replaceState=function(e){var n=new CustomEvent("replacestate",{state:e});return window.dispatchEvent(n),r.apply(t,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)}},s=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=a(t),o=e.href;if(r===o)return Number.MAX_SAFE_INTEGER;var i=c(r),u=new RegExp(n||i,"i");return(decodeURIComponent(o).match(u)||[]).length}}(window.location,Object(i.f)(e.url),e.matchExpression);r>0&&r>=n&&(n=r,t=e)})),t||null}},87:function(e,t,n){"use strict";var r=n(68),o=n(52),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,p={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},d=function e(t,n,o,i,a,u,l,f,d,m,h,v,b,y){var g,w=t;if("function"==typeof l?w=l(n,w):w instanceof Date?w=m(w):"comma"===o&&c(w)&&(w=r.maybeMap(w,(function(e){return e instanceof Date?m(e):e}))),null===w){if(i)return u&&!b?u(n,p.encoder,y,"key",h):n;w=""}if("string"==typeof(g=w)||"number"==typeof g||"boolean"==typeof g||"symbol"==typeof g||"bigint"==typeof g||r.isBuffer(w))return u?[v(b?n:u(n,p.encoder,y,"key",h))+"="+v(u(w,p.encoder,y,"value",h))]:[v(n)+"="+v(String(w))];var O,j=[];if(void 0===w)return j;if("comma"===o&&c(w))O=[{value:w.length>0?w.join(",")||null:void 0}];else if(c(l))O=l;else{var E=Object.keys(w);O=f?E.sort(f):E}for(var _=0;_<O.length;++_){var k=O[_],x="object"==typeof k&&void 0!==k.value?k.value:w[k];if(!a||null!==x){var S=c(w)?"function"==typeof o?o(n,k):n:n+(d?"."+k:"["+k+"]");s(j,e(x,S,o,i,a,u,l,f,d,m,h,v,b,y))}}return j};e.exports=function(e,t){var n,r=e,u=function(e){if(!e)return p;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||p.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=p.filter;return("function"==typeof e.filter||c(e.filter))&&(a=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:p.addQueryPrefix,allowDots:void 0===e.allowDots?p.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:p.charsetSentinel,delimiter:void 0===e.delimiter?p.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:p.encode,encoder:"function"==typeof e.encoder?e.encoder:p.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:p.encodeValuesOnly,filter:a,format:n,formatter:r,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:p.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:p.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:p.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 v=n[h];u.skipNulls&&null===r[v]||s(f,d(r[v],v,m,u.strictNullHandling,u.skipNulls,u.encode?u.encoder:null,u.filter,u.sort,u.allowDots,u.serializeDate,u.format,u.formatter,u.encodeValuesOnly,u.charset))}var b=f.join(u.delimiter),y=!0===u.addQueryPrefix?"?":"";return u.charsetSentinel&&("iso-8859-1"===u.charset?y+="utf8=%26%2310003%3B&":y+="utf8=%E2%9C%93&"),b.length>0?y+b:""}},88:function(e,t,n){"use strict";var r=n(68),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,p=l.split(t.delimiter,f),d=-1,m=t.charset;if(t.charsetSentinel)for(n=0;n<p.length;++n)0===p[n].indexOf("utf8=")&&("utf8=%E2%9C%93"===p[n]?m="utf-8":"utf8=%26%2310003%3B"===p[n]&&(m="iso-8859-1"),d=n,n=p.length);for(n=0;n<p.length;++n)if(n!==d){var h,v,b=p[n],y=b.indexOf("]="),g=-1===y?b.indexOf("="):y+1;-1===g?(h=t.decoder(b,a.decoder,m,"key"),v=t.strictNullHandling?null:""):(h=t.decoder(b.slice(0,g),a.decoder,m,"key"),v=r.maybeMap(u(b.slice(g+1),t),(function(e){return t.decoder(e,a.decoder,m,"value")}))),v&&t.interpretNumericEntities&&"iso-8859-1"===m&&(v=c(v)),b.indexOf("[]=")>-1&&(v=i(v)?[v]:v),o.call(s,h)?s[h]=r.combine(s[h],v):s[h]=v}return s}(e,n):e,f=n.plainObjects?Object.create(null):{},p=Object.keys(l),d=0;d<p.length;++d){var m=p[d],h=s(m,l[m],n,"string"==typeof e);f=r.merge(f,h,n)}return r.compact(f)}},9: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}},93:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(69);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}}},94: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 d})),n.d(t,"f",(function(){return m}));var r=n(19),o=n.n(r),i=n(40),a=n(3),c=n(25);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=p(e,t,n),o=r.map((function(e){return e.id||e.product}));return o}function f(e,t){var n={};n.products=p(e,!0,t),n.remainingProducts=p(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 p(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&&d(a.price)>0&&(t||!a.is_installed)&&o.push(a),o}function d(e){return Number(Object(i.decodeEntities)(e).replace(/[^0-9.-]+/g,""))}function m(e){return/admin.php\?page=wc-admin/.test(e)}},96: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}}});
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={21:0},o={21:0};function i(e){var t=function(e){return a.p+"chunks/"+({7:"activity-panels-help",8:"activity-panels-inbox",9:"analytics-report",10:"analytics-report-categories",11:"analytics-report-coupons",12:"analytics-report-customers",13:"analytics-report-downloads",14:"analytics-report-orders",15:"analytics-report-products",16:"analytics-report-revenue",17:"analytics-report-stock",18:"analytics-report-taxes",19:"analytics-report-variations",20:"analytics-settings",27:"customizable-dashboard",28:"dashboard",29:"dashboard-charts",32:"homescreen",34:"leaderboards",36:"marketing-overview",46:"profile-wizard",47:"store-alerts",48:"store-performance",49:"task-list",51:"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,3:1,4:1,7:1,9:1,14:1,20:1,28:1,29:1,32:1,34:1,36:1,46: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=294)}({0:function(e,t){!function(){e.exports=this.wp.element}()},1:function(e,t,n){e.exports=n(77)()},10:function(e,t){!function(){e.exports=this.React}()},11:function(e,t){!function(){e.exports=this.wp.data}()},111:function(e,t){!function(){e.exports=this.wc.currency}()},12:function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},121:function(e,t,n){"use strict";n.d(t,"a",(function(){return y}));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 v})),n.d(o,"findNext",(function(){return b}));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(3);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 v(e){var t=c(e.ownerDocument.body),n=t.indexOf(e);return t.length=n,Object(u.last)(m(t))}function b(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 y={focusable:r,tabbable:o}},122: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(10),a=(o=i)&&o.__esModule?o:{default:o};e.exports=t.default},125: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}},126:function(e,t,n){"use strict";e.exports=n(152)},13: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}},137:function(e,t,n){"use strict";var r=n(2),o=n(43),i=n(25),a=n(0),c=Object(i.g)("manageStock","no"),u=Object(a.lazy)((function(){return Promise.all([n.e(0),n.e(16)]).then(n.bind(null,486))})),s=Object(a.lazy)((function(){return Promise.all([n.e(0),n.e(3),n.e(15)]).then(n.bind(null,482))})),l=Object(a.lazy)((function(){return Promise.all([n.e(0),n.e(19)]).then(n.bind(null,487))})),f=Object(a.lazy)((function(){return Promise.all([n.e(0),n.e(5),n.e(14)]).then(n.bind(null,488))})),d=Object(a.lazy)((function(){return Promise.all([n.e(0),n.e(3),n.e(10)]).then(n.bind(null,484))})),p=Object(a.lazy)((function(){return Promise.all([n.e(0),n.e(11)]).then(n.bind(null,489))})),m=Object(a.lazy)((function(){return Promise.all([n.e(0),n.e(18)]).then(n.bind(null,490))})),h=Object(a.lazy)((function(){return Promise.all([n.e(0),n.e(13)]).then(n.bind(null,491))})),v=Object(a.lazy)((function(){return Promise.all([n.e(0),n.e(17)]).then(n.bind(null,483))})),b=Object(a.lazy)((function(){return Promise.all([n.e(0),n.e(12)]).then(n.bind(null,485))}));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:v,navArgs:{id:"woocommerce-analytics-stock"}}:null,{report:"customers",title:Object(r.__)("Customers","woocommerce-admin"),component:b},{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)}},138:function(e,t,n){"use strict";var r=n(126),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),v=0;v<a.length;++v){var b=a[v];if(!(i[b]||r&&r[b]||h&&h[b]||c&&c[b])){var y=d(n,b);try{s(t,b,y)}catch(e){}}}}return t}},139:function(e,t){!function(){e.exports=this.wp.plugins}()},14:function(e,t,n){var r=n(72);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)}},140:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(54),o=n(2);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")}))},141:function(e,t,n){"use strict";n.d(t,"c",(function(){return zt})),n.d(t,"b",(function(){return Wt})),n.d(t,"a",(function(){return Qt}));var r=n(24),o=n.n(r),i=n(34),a=n.n(i),c=n(5),u=n.n(c),s=n(12),l=n.n(s),f=n(13),d=n.n(f),p=n(14),m=n.n(p),h=n(15),v=n.n(h),b=n(7),y=n.n(b),g=n(0),w=n(20),O=n(11),j=n(38),E=n(10),_=n.n(E),k=n(1),x=n.n(k),S=n(71),C=n(183),P=n(56),A=n(32),T=n(184),N=n.n(T),R=(n(126),n(42)),L=(n(138),function(e){var t=Object(C.a)();return t.displayName=e,t}("Router-History")),M=function(e){var t=Object(C.a)();return t.displayName=e,t}("Router"),I=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(M.Provider,{value:{history:this.props.history,location:this.state.location,match:t.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},_.a.createElement(L.Provider,{children:this.props.children||null,value:this.props.history}))},t}(_.a.Component);_.a.Component;_.a.Component;var D={},V=0;function F(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=D[n]||(D[n]={});if(r[e])return r[e];var o=[],i={regexp:N()(e,o,t),keys:o};return V<1e4&&(r[e]=i,V++),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 B=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(M.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?F(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(M.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 U(e){return"/"===e.charAt(0)?e:"/"+e}function q(e,t){if(!e)return t;var n=U(e);return 0!==t.pathname.indexOf(n)?t:Object(A.a)({},t,{pathname:t.pathname.substr(n.length)})}function z(e){return"string"==typeof e?e:Object(S.d)(e)}function H(e){return function(){Object(P.a)(!1)}}function $(){}_.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(M.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?F(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 Q=n(3),G=n(49),Y=n(47),Z=n(21),K=n(25),J=n(22),X=n(27),ee=(n(297),n(43)),te=n(2),ne=n(137),re=n(95);function oe(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=y()(e);if(t){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return v()(this,n)}}var ie=Object(g.lazy)((function(){return n.e(9).then(n.bind(null,589))})),ae=Object(g.lazy)((function(){return n.e(20).then(n.bind(null,608))})),ce=Object(g.lazy)((function(){return n.e(28).then(n.bind(null,590))})),ue=Object(g.lazy)((function(){return Promise.all([n.e(1),n.e(2),n.e(52),n.e(4),n.e(32)]).then(n.bind(null,605))})),se=Object(g.lazy)((function(){return Promise.all([n.e(2),n.e(36)]).then(n.bind(null,609))})),le=Object(g.lazy)((function(){return Promise.all([n.e(53),n.e(46)]).then(n.bind(null,606))})),fe=Object(g.lazy)((function(){return Promise.all([n.e(53),n.e(46)]).then(n.bind(null,601))})),de=function(){var e=[],t=[["",wcSettings.woocommerceTranslation]];return e.push({container:ue,path:"/",breadcrumbs:[].concat(t,[Object(te.__)("Home","woocommerce-admin")]),wpOpenMenu:"toplevel_page_woocommerce",navArgs:{id:"woocommerce-home"},capability:"manage_woocommerce"}),window.wcAdminFeatures.analytics&&(e.push({container:ce,path:"/analytics/overview",breadcrumbs:[].concat(t,[["/analytics/overview",Object(te.__)("Analytics","woocommerce-admin")],Object(te.__)("Overview","woocommerce-admin")]),wpOpenMenu:"toplevel_page_wc-admin-path--analytics-overview",navArgs:{id:"woocommerce-analytics-overview"},capability:"view_woocommerce_reports"}),e.push({container:ae,path:"/analytics/settings",breadcrumbs:[].concat(t,[["/analytics/revenue",Object(te.__)("Analytics","woocommerce-admin")],Object(te.__)("Settings","woocommerce-admin")]),wpOpenMenu:"toplevel_page_wc-admin-path--analytics-overview",navArgs:{id:"woocommerce-analytics-settings"},capability:"view_woocommerce_reports"}),e.push({container:ie,path:"/customers",breadcrumbs:[].concat(t,[Object(te.__)("Customers","woocommerce-admin")]),wpOpenMenu:"toplevel_page_woocommerce",navArgs:{id:"woocommerce-analytics-customers"},capability:"view_woocommerce_reports"}),e.push({container:ie,path:"/analytics/:report",breadcrumbs:function(e){var n=e.match,r=Object(Q.find)(Object(ne.a)(),{report:n.params.report});return r?[].concat(t,[["/analytics/revenue",Object(te.__)("Analytics","woocommerce-admin")],r.title]):[]},wpOpenMenu:"toplevel_page_wc-admin-path--analytics-overview",capability:"view_woocommerce_reports"})),window.wcAdminFeatures.marketing&&e.push({container:se,path:"/marketing",breadcrumbs:[].concat(t,[["/marketing",Object(te.__)("Marketing","woocommerce-admin")],Object(te.__)("Overview","woocommerce-admin")]),wpOpenMenu:"toplevel_page_woocommerce-marketing",navArgs:{id:"woocommerce-marketing-overview"},capability:"view_woocommerce_reports"}),window.wcAdminFeatures.onboarding&&e.push({container:le,path:"/setup-wizard",breadcrumbs:[].concat(t,[["/setup-wizard",Object(te.__)("Setup Wizard","woocommerce-admin")]]),capability:"manage_woocommerce"}),window.wcAdminFeatures.settings&&e.push({container:fe,path:"/settings/:page",breadcrumbs:function(e){var n=e.match,r=Object(K.g)("settingsPages"),o=r[n.params.page];return o?[].concat(t,[[r.general?"/settings/general":"/settings/".concat(Object.keys(r)[0]),Object(te.__)("Settings","woocommerce-admin")],o]):[]},wpOpenMenu:"toplevel_page_woocommerce",capability:"manage_woocommerce"}),Object(ee.applyFilters)("woocommerce_admin_pages_list",e)},pe=function(e){m()(n,e);var t=oe(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(Q.omit)(e.query,"chartType","filter","paged"),n=Object(Q.omit)(this.props.query,"chartType","filter","paged");e.query.paged>1&&!Object(Q.isEqual)(t,n)&&Object(Z.getHistory)().replace(Object(Z.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(g.createElement)(g.Suspense,{fallback:Object(g.createElement)(Y.Spinner,null)},Object(g.createElement)(t.container,{params:i,path:o,pathMatch:t.path,query:r}))}}]),n}(g.Component);window.wpNavMenuUrlUpdate=function(e){var t=Object(Z.getPersistedQuery)(e),n=Object(Z.getQueryExcludedScreens)();Array.from(document.querySelectorAll("#adminmenu a")).forEach((function(e){return function(e,t,n){if(Object(re.f)(e.href)){var r=Object(Q.last)(e.href.split("?")),o=Object(G.parse)(r),i=o.path||"homescreen",a=Object(Z.getScreenFromPath)(i),c=n.includes(a),u="admin.php?"+Object(G.stringify)(Object.assign(o,c?{}:t));e.href=u,e.onclick=function(e){e.preventDefault(),Object(Z.getHistory)().push(u)}}}(e,t,n)}))},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 me=n(6),he=n.n(me),ve=n(41),be=n(30),ye=(n(298),n(18)),ge=n.n(ye),we=n(4),Oe=n(122),je=n.n(Oe),Ee=n(197),_e=n(67),ke=Object(g.createElement)(_e.b,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(g.createElement)(_e.a,{fillRule:"evenodd",d:"M6 5.5h12a.5.5 0 01.5.5v7H14a2 2 0 11-4 0H5.5V6a.5.5 0 01.5-.5zm-.5 9V18a.5.5 0 00.5.5h12a.5.5 0 00.5-.5v-3.5h-3.337a3.5 3.5 0 01-6.326 0H5.5zM4 13V6a2 2 0 012-2h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2v-5z",clipRule:"evenodd"})),xe=Object(g.createElement)(_e.b,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(g.createElement)(_e.a,{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"})),Se=(n(299),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=he()("woocommerce-layout__activity-panel-toggle-bubble",{"has-unread":a});return Object(g.createElement)("div",{className:c},Object(g.createElement)("svg",{height:n,width:o,viewBox:"0 0 24 24"},Object(g.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"})))});Se.propTypes={height:x.a.number,width:x.a.number,hasUnread:x.a.bool};var Ce=Se,Pe=n(196),Ae={page:1,per_page:J.QUERY_DEFAULTS.pageSize,status:"unactioned",type:J.QUERY_DEFAULTS.noteTypes,orderby:"date",order:"desc"};function Te(e){var t=e(J.NOTES_STORE_NAME),n=t.getNotes,r=t.getNotesError,o=t.isResolving,i=(0,e(J.USER_STORE_NAME).getCurrentUser)(),a=parseInt(i&&i.woocommerce_meta&&i.woocommerce_meta.activity_panel_inbox_last_read,10);if(!a)return null;n(Ae);var c=Boolean(r("getNotes",[Ae])),u=o("getNotes",[Ae]);if(c||u)return null;var s=n(Ae);return Object(Pe.a)(s,a)>0}var Ne=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=he()("woocommerce-layout__activity-panel-tab",{"is-active":a&&i,"has-unread":o}),s="activity-panel-tab-".concat(r);return Object(g.createElement)(we.Button,{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(g.createElement)("span",{className:"screen-reader-text"},Object(te.__)("unread activity","woocommerce-admin")))},Re=function(e){var t=e.tabs,n=e.onTabClick,r=e.selectedTab,i=e.tabOpen,a=void 0!==i&&i,c=Object(g.useState)({tabOpen:a,currentTab:r}),u=ge()(c,2),s=u[0],l=s.tabOpen,f=s.currentTab,d=u[1];return Object(g.useEffect)((function(){d({tabOpen:a,currentTab:r})}),[a,r]),Object(g.createElement)(we.NavigableMenu,{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(g.createElement)(r,o()({key:t},i))}return Object(g.createElement)(Ne,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)}}))})))},Le=function(){return Object(g.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(g.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(g.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"}))},Me=function(){return Object(g.createElement)(g.Fragment,null,Object(g.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(g.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(g.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(g.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(g.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(te.__)("Display","woocommerce-admin"))},Ie=[{value:"single_column",label:Object(g.createElement)(g.Fragment,null,Object(g.createElement)((function(){return Object(g.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(g.createElement)("rect",{x:"0.5",y:"0.5",width:"11",height:"13",strokeWidth:"1"}))}),null),Object(te.__)("Single column","woocommerce-admin"))},{value:"two_columns",label:Object(g.createElement)(g.Fragment,null,Object(g.createElement)((function(){return Object(g.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(g.createElement)("rect",{x:"0.5",y:"0.5",width:"7",height:"13",strokeWidth:"1"}),Object(g.createElement)("rect",{x:"9.5",y:"0.5",width:"7",height:"13",strokeWidth:"1"}))}),null),Object(te.__)("Two columns","woocommerce-admin"))}],De=function(){var e=Object(O.useSelect)((function(e){return(0,e(J.OPTIONS_STORE_NAME).getOption)("woocommerce_default_homepage_layout")||"single_column"})),t=Object(J.useUserPreferences)(),n=t.updateUserPreferences,r=t.homepage_layout;return Object(g.createElement)(we.DropdownMenu,{icon:Object(g.createElement)(Me,null),label:Object(te.__)("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(g.createElement)(we.MenuGroup,{className:"woocommerce-layout__homescreen-display-options",label:Object(te.__)("Layout","woocommerce-admin")},Object(g.createElement)(we.MenuItemsChoice,{choices:Ie,onSelect:function(e){n({homepage_layout:e}),o(),Object(X.recordEvent)("homescreen_display_option",{display_option:e})},value:r||e}))}))},Ve=n(497),Fe=(n(300),"highlight-tooltip__show");function Be(e){var t=e.title,n=e.closeButtonText,r=e.content,o=e.show,i=void 0===o||o,a=e.id,c=e.onClose,u=e.delay,s=e.onShow,l=void 0===s?Q.noop:s,f=e.useAnchor,d=void 0!==f&&f,p=Object(g.useState)(u>0?null:i),m=ge()(p,2),h=m[0],v=m[1],b=Object(g.useState)(null),y=ge()(b,2),w=y[0],O=y[1],j=Object(g.useState)(null),E=ge()(j,2),_=E[0],k=E[1];function x(){if(d){var e=document.getElementById(a);k(e.getBoundingClientRect())}}Object(g.useEffect)((function(){var e,t,n=document.getElementById(a);n&&!w&&(d?(t=document.createElement("div"),document.body.appendChild(t)):t=n.parentElement,(e=document.createElement("div")).classList.add("highlight-tooltip__container"),t.appendChild(e),O(e));var r=S(e);return function(){if(e){var t=e.parentElement;t.removeChild(e),d&&t.remove()}r&&clearTimeout(r)}}),[]),Object(g.useEffect)((function(){!h&&w&&w.classList.remove(Fe)}),[h]),Object(g.useEffect)((function(){i!==h&&null!==h&&w&&(v(i),i?w&&S(w):w.classList.remove(Fe))}),[i]),Object(g.useLayoutEffect)((function(){return window.addEventListener("resize",x),function(){return window.removeEventListener("resize",x)}}),[]);var S=function(e){var t=null;return u>0?t=setTimeout((function(){t=null,C(e)}),u):h||C(e),t},C=function(e){var t=document.getElementById(a);t&&d&&k(t.getBoundingClientRect()),e&&e.classList.add(Fe),v(!0),l()},P=function(){v(!1),c&&c()};return w?Object(g.createPortal)(Object(g.createElement)("div",{className:"highlight-tooltip__portal"},h?Object(g.createElement)(g.Fragment,null,Object(g.createElement)(we.IsolatedEventContainer,{className:"highlight-tooltip__overlay"}),Object(g.createElement)(we.Popover,{className:"highlight-tooltip__popover",noArrow:!1,anchorRect:_,focusOnMount:"container"},Object(g.createElement)(we.Card,{size:"medium"},Object(g.createElement)(we.CardHeader,null,t,Object(g.createElement)(we.Button,{isSmall:!0,onClick:P,icon:Ve.a})),Object(g.createElement)(we.CardBody,null,r||null),Object(g.createElement)(we.CardFooter,{isBorderless:!0},Object(g.createElement)(we.Button,{size:"small",isPrimary:!0,onClick:P},n||Object(te.__)("Close","woocommerce-admin")))))):null),w):null}Be.propTypes={id:x.a.string.isRequired,title:x.a.string.isRequired,closeButtonText:x.a.string.isRequired,content:x.a.oneOfType([x.a.string,x.a.node]),show:x.a.bool,onClose:x.a.func,delay:x.a.number,onShow:x.a.func,useAnchor:x.a.bool};var Ue=n(121);var qe=["button","submit"];function ze(e){var t=Object(g.useRef)(e);Object(g.useEffect)((function(){t.current=e}),[e]);var n=Object(g.useRef)(!1),r=Object(g.useRef)(),o=Object(g.useCallback)((function(){clearTimeout(r.current)}),[]);Object(g.useEffect)((function(){return function(){return o()}}),[]),Object(g.useEffect)((function(){e||o()}),[e,o]);var i=Object(g.useCallback)((function(e){var t=e.type,r=e.target;Object(Q.includes)(["mouseup","touchend"],t)?n.current=!1:function(e){if(!(e instanceof window.HTMLElement))return!1;switch(e.nodeName){case"A":case"BUTTON":return!0;case"INPUT":return Object(Q.includes)(qe,e.type)}return!1}(r)&&(n.current=!0)}),[]),a=Object(g.useCallback)((function(e){e.persist(),n.current||(r.current=setTimeout((function(){document.hasFocus()?"function"==typeof t.current&&t.current(e):e.preventDefault()}),0))}),[]);return{onFocus:o,onMouseDown:i,onMouseUp:i,onTouchStart:i,onTouchEnd:i,onBlur:a}}var He=function(e){var t=e.content,n=e.isPanelOpen,r=e.isPanelSwitching,i=e.currentTab,a=e.tab,c=e.closePanel,u=e.clearPanel,s=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"firstElement",t=Object(g.useRef)(e);return Object(g.useEffect)((function(){t.current=e}),[e]),Object(g.useCallback)((function(e){if(e&&!1!==t.current&&!e.contains(e.ownerDocument.activeElement)){var n=e;if("firstElement"===t.current){var r=Ue.a.tabbable.find(e)[0];r&&(n=r)}n.focus()}}),[])}(),l=ze((function(e){var t=e.target.closest(".woocommerce-inbox-dismiss-confirmation_modal")||e.target.closest(".components-snackbar__action");n&&!t&&c()})),f=Object(g.useRef)(null),d=Object(g.useCallback)((function(e){f.current=e,s(e)}),[]);if(!a)return Object(g.createElement)("div",{className:"woocommerce-layout__activity-panel-wrapper"});if(!t)return null;var p=he()("woocommerce-layout__activity-panel-wrapper",{"is-open":n,"is-switching":r});return Object(g.createElement)("div",o()({className:p,tabIndex:0,role:"tabpanel","aria-label":a.title,onTransitionEnd:function(e){e&&"transform"===e.propertyName&&(u(),f.current&&n&&a&&s(f.current))}},l,{ref:d}),Object(g.createElement)("div",{className:"woocommerce-layout__activity-panel-content",key:"activity-panel-"+i,id:"activity-panel-"+i},Object(g.createElement)(g.Suspense,{fallback:Object(g.createElement)(Y.Spinner,null)},t)))},$e=Object(g.lazy)((function(){return Promise.all([n.e(54),n.e(6),n.e(7)]).then(n.bind(null,602))})),We=Object(g.lazy)((function(){return Promise.all([n.e(1),n.e(2),n.e(4),n.e(8)]).then(n.bind(null,587))})),Qe=function(e){var t,n,r,o=e.isEmbedded,i=e.query,a=e.userPreferencesData,c=Object(g.useState)(""),u=ge()(c,2),s=u[0],l=u[1],f=Object(g.useState)(!1),d=ge()(f,2),p=d[0],m=d[1],h=Object(g.useState)(!1),v=ge()(h,2),b=v[0],y=v[1],w=Object(g.useState)(!1),j=ge()(w,2),E=j[0],_=j[1],k=Object(O.useSelect)((function(e){var t=e(J.OPTIONS_STORE_NAME),n=t.getOption,r=t.isResolving;return{hasUnreadNotes:Te(e),requestingTaskListOptions:r("getOption",["woocommerce_task_list_complete"])||r("getOption",["woocommerce_task_list_hidden"]),setupTaskListComplete:"yes"===n("woocommerce_task_list_complete"),setupTaskListHidden:"yes"===n("woocommerce_task_list_hidden"),trackedCompletedTasks:n("woocommerce_task_list_tracked_completed_tasks")||[]}})),x=k.hasUnreadNotes,S=k.requestingTaskListOptions,C=k.setupTaskListComplete,P=k.setupTaskListHidden,A=k.trackedCompletedTasks,T=Object(O.useDispatch)(J.OPTIONS_STORE_NAME).updateOptions,N=Object(J.useUser)().currentUserCan,R=function(){return"wc-admin"===i.page&&!i.path},L=function(){return i.task&&!i.path&&(!0===S||!1===P&&!1===C)},M=function(){var e={name:"inbox",title:Object(te.__)("Inbox","woocommerce-admin"),icon:Object(g.createElement)(Ee.a,{icon:ke}),unread:x,visible:(o||!R())&&!L()},t={name:"setup",title:Object(te.__)("Store Setup","woocommerce-admin"),icon:Object(g.createElement)(Le,null),onClick:function(){return window.location.href!==Object(K.f)("admin.php?page=wc-admin")&&("no"===P?I():T({woocommerce_task_list_hidden:"no"}).then(I)),null},visible:N("manage_woocommerce")&&!C&&!P&&!L()&&(!R()||o)},n={name:"help",title:Object(te.__)("Help","woocommerce-admin"),icon:Object(g.createElement)(Ee.a,{icon:xe}),visible:R()&&!o||L()};return[e,t,{component:De,visible:!o&&R()&&!L()},n].filter((function(e){return e.visible}))},I=function(){Object(re.f)(window.location.href)?Object(Z.getHistory)().push(Object(Z.getNewPath)({},"/",{})):window.location.href=Object(K.f)("admin.php?page=wc-admin")},D=M(),V=Object(Q.uniqueId)("activity-panel-header_"),F=he()("woocommerce-layout__activity-panel",{"is-mobile-open":E}),B=(t=i.task,n=a&&a.task_list_tracked_started_tasks,r=a&&a.help_panel_highlight_shown,!(!(t&&"yes"!==r&&(n||{})[t]>1)||A.includes(t))),U=D.some((function(e){return e.unread})),q=U?Object(te.__)("View Activity Panel, you have unread activity","woocommerce-admin"):Object(te.__)("View Activity Panel","woocommerce-admin");return Object(g.createElement)("div",null,Object(g.createElement)(Y.H,{id:V,className:"screen-reader-text"},Object(te.__)("Store Activity","woocommerce-admin")),Object(g.createElement)(Y.Section,{component:"aside",id:"woocommerce-activity-panel","aria-labelledby":V},Object(g.createElement)(we.Button,{onClick:function(){!function(){var e=M();l(E?"":e[0].name),_(!E),m(!E)}()},label:E?Object(te.__)("Close Activity Panel","woocommerce-admin"):q,"aria-expanded":E,className:"woocommerce-layout__activity-panel-mobile-toggle"},E?Object(g.createElement)(je.a,null):Object(g.createElement)(Ce,{hasUnread:U})),Object(g.createElement)("div",{className:F},Object(g.createElement)(Re,{tabs:D,tabOpen:p,selectedTab:s,onTabClick:function(e,t){var n,r,o;e.onClick?e.onClick():(n=t,r=e.name,o=r!==s&&""!==s&&n&&p,l(r),_(n),m(n),y(o))}}),Object(g.createElement)(He,{currentTab:!0,isPanelOpen:p,isPanelSwitching:b,tab:Object(Q.find)(M(),{name:s}),content:function(e){var t=i.task;switch(e){case"inbox":return Object(g.createElement)(We,null);case"help":return Object(g.createElement)($e,{taskName:t});default:return null}}(s),closePanel:function(){m(!1)},clearPanel:function(){p||(y(!1),l(""))}}))),B?Object(g.createElement)(Be,{delay:1e3,useAnchor:!0,title:Object(te.__)("We're here for help","woocommerce-admin"),content:Object(te.__)("If you have any questions, feel free to explore the WooCommerce docs listed here.","woocommerce-admin"),closeButtonText:Object(te.__)("Got it","woocommerce-admin"),id:"activity-panel-tab-help",onClose:function(){return Object(X.recordEvent)("help_tooltip_click"),void(a&&a.updateUserPreferences&&a.updateUserPreferences({help_panel_highlight_shown:"yes"}))},onShow:function(){return Object(X.recordEvent)("help_tooltip_view")}}):null)};Qe.defaultProps={getHistory:Z.getHistory};var Ge=Qe,Ye=function(){return/iPhone|iPad|iPod/i.test(window.navigator.userAgent)?"ios":/Android/i.test(window.navigator.userAgent)?"android":"unknown"},Ze=function(){return Object(g.createElement)("svg",{width:"37",height:"37",viewBox:"0 0 92 92",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(g.createElement)("rect",{width:"92",height:"92",rx:"21.3953",fill:"#7F54B3"}),Object(g.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"}))},Ke=(n(301),function(e){var t=e.onInstall,n=e.onDismiss;Object(g.useEffect)((function(){var e=document.getElementsByClassName("woocommerce-layout")[0];return"android"===Ye()&&e&&e.classList.add("woocommerce-layout__show-app-banner"),function(){e&&e.classList.remove("woocommerce-layout__show-app-banner")}}),[]);var r=Object(g.useState)(!1),o=ge()(r,2),i=o[0],a=o[1];return"android"!==Ye()||i?null:Object(g.createElement)("div",{className:"woocommerce-mobile-app-banner"},Object(g.createElement)(we.Icon,{icon:"no-alt","data-testid":"dismiss-btn",onClick:function(){n(),a(!0),Object(X.recordEvent)("wcadmin_mobile_android_banner_click",{action:"dismiss"})}}),Object(g.createElement)(Ze,null),Object(g.createElement)("div",{className:"woocommerce-mobile-app-banner__description"},Object(g.createElement)("p",{className:"woocommerce-mobile-app-banner__description__text"},Object(te.__)("Run your store from anywhere","woocommerce-admin")),Object(g.createElement)("p",{className:"woocommerce-mobile-app-banner__description__text"},Object(te.__)("Download the WooCommerce app","woocommerce-admin"))),Object(g.createElement)(we.Button,{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(te.__)("Install","woocommerce-admin")))});function Je(){var e=Object(g.useState)(!1),t=ge()(e,2),n=t[0],r=t[1],o=Object(g.useRef)(null);return Object(g.useEffect)((function(){var e=function(){r(window.pageYOffset>20)},t=function(){o.current=window.requestAnimationFrame(e)};return window.addEventListener("scroll",t),function(){window.removeEventListener("scroll",t),window.cancelAnimationFrame(o.current)}}),[]),n}var Xe=n(139),et=(n(302),n(19)),tt=n.n(et);function nt(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 rt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nt(Object(n),!0).forEach((function(t){u()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ot=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},it=function(e){var t=e.replace(/[-\/\\^$*+?.()|[\]{}]/gi,"\\$&").split(/\\\?|#/),n=ge()(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},at=function(e){var t,n,r;return window.wcNavigation.historyPatched||(t=window.history,n=t.pushState,r=t.replaceState,t.pushState=function(e){var r=new CustomEvent("pushstate",{state:e});return window.dispatchEvent(r),n.apply(t,arguments)},t.replaceState=function(e){var n=new CustomEvent("replacestate",{state:e});return window.dispatchEvent(n),r.apply(t,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)}},ct=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=ot(t),o=e.href;if(r===o)return Number.MAX_SAFE_INTEGER;var i=it(r),a=new RegExp(n||i,"i");return(decodeURIComponent(o).match(a)||[]).length}}(window.location,Object(K.f)(e.url),e.matchExpression);r>0&&r>=n&&(n=r,t=e)})),t||null},ut=["primary","favorites","plugins","secondary"],st={woocommerce:{id:"woocommerce",isCategory:!0,menuId:"primary",migrate:!0,order:10,parent:"",title:"WooCommerce"}},lt=function(e){return e.sort((function(e,t){return e.order===t.order?e.title.localeCompare(t.title):e.order-t.order}))},ft=Object(g.createElement)(_e.b,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(g.createElement)(_e.a,{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"})),dt=function(){var e=Object(K.g)("siteTitle",""),t=Object(K.g)("homeUrl",""),n=Je(),r=Object(g.useState)(document.body.classList.contains(!1)),o=ge()(r,2),i=o[0],a=o[1],c="is-wc-nav-folded",u="is-wc-nav-expanded",s=function(){document.body.classList.add(c),document.body.classList.remove(u),a(!0)},l=function(){document.body.classList.remove(c),document.body.classList.add(u),a(!1)},f=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.body.clientWidth;e<=960?s():l()};Object(g.useEffect)((function(){f();for(var e=0,t=[{eventName:"orientationchange",handler:function(e){return f(e.target.screen.availWidth)}},{eventName:"resize",handler:Object(Q.debounce)((function(){return f()}),200)}];e<t.length;e++){var n=t[e],r=n.eventName,o=n.handler;window.addEventListener(r,o,!1)}at((function(){return f()}))}),[]);var d=Object(g.createElement)(Ee.a,{size:"36px",icon:ft}),p=Object(O.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}})),m=p.isRequestingSiteIcon,h=p.siteIconUrl;h?d=Object(g.createElement)("img",{alt:Object(te.__)("Site Icon"),src:h}):m&&(d=null);var v=he()("woocommerce-navigation-header",{"is-scrolled":n});return Object(g.createElement)("div",{className:v},Object(g.createElement)(we.Button,{onClick:function(){document.body.classList.contains(c)?l():s()},className:"woocommerce-navigation-header__site-icon","aria-label":"Fold navigation",role:"switch","aria-checked":i?"true":"false"},d),Object(g.createElement)(we.Button,{href:t,className:"woocommerce-navigation-header__site-title",as:"span"},Object(ve.decodeEntities)(e)))},pt=(n(303),n(304),function(e){var t=e.id,n=Object(O.useSelect)((function(e){return{favorites:e(J.NAVIGATION_STORE_NAME).getFavorites(),isResolving:e(J.NAVIGATION_STORE_NAME).isResolving("getFavorites")}})),r=n.favorites,o=n.isResolving,i=Object(O.useDispatch)(J.NAVIGATION_STORE_NAME),a=i.addFavorite,c=i.removeFavorite,u=r.includes(t);return o?null:Object(g.createElement)(we.Button,{id:"woocommerce-navigation-favorite-button",className:"woocommerce-navigation-favorite-button",isTertiary:!0,onClick:function(){(u?c:a)(t),Object(X.recordEvent)("navigation_favorite",{id:t,action:u?"unfavorite":"favorite"})},icon:u?"star-filled":"star-empty","aria-label":u?Object(te.__)("Add this item to your favorites.","woocommerce-admin"):Object(te.__)("Remove this item from your favorites.","woocommerce-admin")})}),mt="woocommerce_navigation_favorites_tooltip_hidden",ht=function(){var e=Object(O.useSelect)((function(e){var t=e(J.OPTIONS_STORE_NAME),n=t.getOption,r=t.isResolving;return{isFavoritesResolving:e(J.NAVIGATION_STORE_NAME).isResolving("getFavorites"),isOptionResolving:r("getOption",[mt]),isTooltipHidden:"yes"===n(mt)}})),t=e.isFavoritesResolving,n=e.isOptionResolving,r=e.isTooltipHidden,o=Object(O.useDispatch)(J.OPTIONS_STORE_NAME).updateOptions;return t||r||n||document.body.classList.contains("is-wc-nav-folded")?null:Object(g.createElement)(Be,{delay:1e3,title:Object(te.__)("Introducing favorites","woocommerce-admin"),content:Object(te.__)("You can now favorite your extensions to pin them in the top level of the navigation.","woocommerce-admin"),closeButtonText:Object(te.__)("Got it","woocommerce-admin"),id:"woocommerce-navigation-favorite-button",onClose:function(){return o(u()({},mt,"yes"))},useAnchor:!0})},vt=function(e){var t=e.category,n=t.id,r=t.title,o="woocommerce-navigation-category-title";return["plugins","favorites"].includes(t.menuId)?Object(g.createElement)("span",{className:o},Object(g.createElement)("span",{className:"".concat(o,"__text")},r),Object(g.createElement)(pt,{id:n}),Object(g.createElement)(ht,null)):Object(g.createElement)("span",{className:o},r)},bt=function(e){var t=e.item,n=Object(Z.useNavSlot)("woocommerce_navigation_"+t.id),r=Boolean(n.fills&&n.fills.length),o=function(e){Object(X.recordEvent)("navigation_click",{menu_item:e})};return r&&!t.isCategory?Object(g.createElement)(be.c,{key:t.id,item:t.id},Object(g.createElement)("div",{onClick:function(){return o(t.id)}},Object(g.createElement)(Z.WooNavigationItem.Slot,{name:t.id}))):Object(g.createElement)(be.c,{key:t.id,item:t.id,title:t.title,href:t.url,navigateToMenu:!t.url&&t.id,onClick:function(){return o(t.id)},hideIfTargetMenuEmpty:!0})},yt=function(e){var t=e.category,n=e.onBackClick,r=e.pluginItems,o=e.primaryItems;if(!o.length&&!r.length)return null;var i=window.wcNavigation,a=i.rootBackLabel,c=i.rootBackUrl,u="woocommerce"===t.id&&c;return Object(g.createElement)(be.d,{title:Object(g.createElement)(vt,{category:t}),menu:t.id,parentMenu:t.parent,backButtonLabel:u?a:t.backButtonLabel||null,onBackButtonClick:u?function(){n("woocommerce"),window.location=c}:function(){return n(t.id)}},!!o.length&&Object(g.createElement)(be.b,null,o.map((function(e){return Object(g.createElement)(bt,{key:e.id,item:e})}))),!!r.length&&Object(g.createElement)(be.b,{title:"woocommerce"===t.id?Object(te.__)("Extensions","woocommerce-admin"):null},r.map((function(e){return Object(g.createElement)(bt,{key:e.id,item:e})}))))},gt=function(e){var t=e.category,n=e.items,r=e.onBackClick;if(!n.length)return null;var o="woocommerce"===t.id;return Object(g.createElement)(be.d,{className:"components-navigation__menu-secondary",title:!o&&Object(g.createElement)(vt,{category:t}),menu:t.id,parentMenu:t.parent,backButtonLabel:t.backButtonLabel||null,onBackButtonClick:o?null:function(){return r(t.id)}},Object(g.createElement)(be.b,{onBackButtonClick:function(){return r(t.id)}},n.map((function(e){return Object(g.createElement)(bt,{key:e.id,item:e})}))))},wt=Object(w.compose)(Object(O.withSelect)((function(e){var t=e(J.NAVIGATION_STORE_NAME),n=t.getActiveItem,r=t.getMenuItems;return{activeItem:n(),menuItems:r()}})))((function(e){var t=e.menuItems;Object(g.useEffect)((function(){document.documentElement.classList.remove("wp-toolbar"),document.body.classList.add("has-woocommerce-navigation");var e=document.getElementById("adminmenumain");e&&e.classList.add("folded")}),[]);var n=Object(g.useState)("woocommerce-home"),r=ge()(n,2),o=r[0],i=r[1],a=Object(g.useState)("woocommerce"),c=ge()(a,2),u=c[0],s=c[1];Object(g.useEffect)((function(){var e=ct(t);return e&&o!==e&&(i(e),s(e.parent)),at((function(){setTimeout((function(){var e=ct(t);e&&i(e)}),0)}))}),[t]);var l=Object(J.useUser)().currentUserCan,f=Object(g.useMemo)((function(){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=rt({},st),r=lt(e).reduce((function(e,r){return e[r.parent]||(e[r.parent]={},ut.forEach((function(t){e[r.parent][t]=[]}))),e[r.parent][r.menuId]?(t&&r.capability&&!t(r.capability)||(r.isCategory&&(n[r.id]=r),e[r.parent][r.menuId].push(r)),e):e}),{});return{items:r,categories:n}}(t,l)}),[t,l]),d=f.categories,p=f.items,m=Object(g.useRef)(null),h=function(e){Object(X.recordEvent)("navigation_back_click",{category:e})},v="woocommerce"===u,b=he()("woocommerce-navigation",{"is-root":v});return Object(g.createElement)("div",{className:b},Object(g.createElement)(dt,null),Object(g.createElement)("div",{className:"woocommerce-navigation__wrapper",ref:m},Object(g.createElement)(be.a,{activeItem:o?o.id:null,activeMenu:u,onActivateMenu:function(){m&&m.current&&(m.current.scrollTop=0),s.apply(void 0,arguments)}},Object.values(d).map((function(e){var t=p[e.id];return!!t&&[Object(g.createElement)(yt,{key:e.id,category:e,onBackClick:h,primaryItems:[].concat(tt()(t.primary),tt()(t.favorites)),pluginItems:t.plugins}),Object(g.createElement)(gt,{key:"secondary/".concat(e.id),category:e,onBackClick:h,items:t.secondary})]})))))})),Ot=Object(J.withNavigationHydration)(window.wcNavigation)((function(){return Object(g.createElement)(Z.NavSlotFillProvider,null,Object(g.createElement)(wt,null),Object(g.createElement)(Xe.PluginArea,null))}));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 Et(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}var _t=function(e){var t=e.sections,n=e.isEmbedded,r=void 0!==n&&n,o=e.query,i=Object(g.useRef)(null),c=Object(K.g)("siteTitle",""),u=t.slice(-1)[0],s=Je(),l=Object(J.useUserPreferences)(),f=l.updateUserPreferences,d=a()(l,["updateUserPreferences"]),p="yes"===d.android_app_banner_dismissed,m=null,h=he()("woocommerce-layout__header",{"is-scrolled":s});Object(g.useLayoutEffect)((function(){return v(),window.addEventListener("resize",v),function(){window.removeEventListener("resize",v);var e=document.querySelector("#wpbody");e&&(e.style.marginTop=null)}}),[p]);var v=function(){clearTimeout(m),m=setTimeout((function(){var e=document.querySelector("#wpbody");e&&i.current&&(e.style.marginTop="".concat(i.current.offsetHeight,"px"))}),200)};Object(g.useEffect)((function(){if(!r){var e=t.map((function(e){return Array.isArray(e)?e[1]:e})).reverse().join(" &lsaquo; "),n=Object(ve.decodeEntities)(Object(te.sprintf)(Object(te.__)("%1$s &lsaquo; %2$s &#8212; WooCommerce","woocommerce-admin"),e,c));document.title!==n&&(document.title=n)}}),[r,t,c]);var b=function(){f({android_app_banner_dismissed:"yes"})};return Object(g.createElement)("div",{className:h,ref:i},!p&&Object(g.createElement)(Ke,{onDismiss:b,onInstall:b}),Object(g.createElement)("div",{className:"woocommerce-layout__header-wrapper"},window.wcAdminFeatures.navigation&&Object(g.createElement)(Ot,null),Object(g.createElement)(be.e,{className:"woocommerce-layout__header-heading",as:"h1",variant:"subtitle.small"},Object(ve.decodeEntities)(u)),window.wcAdminFeatures["activity-panels"]&&Object(g.createElement)(Ge,{isEmbedded:r,query:o,userPreferencesData:Et(Et({},d),{},{updateUserPreferences:f})})))};function kt(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=y()(e);if(t){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return v()(this,n)}}var xt=function(e){m()(n,e);var t=kt(n);function n(){return l()(this,n),t.apply(this,arguments)}return d()(n,[{key:"render",value:function(){return Object(g.createElement)("div",{id:"woocommerce-layout__notice-list",className:"woocommerce-layout__notice-list"})}}]),n}(g.Component),St=n(8),Ct=n.n(St),Pt=n(44),At=n.n(Pt),Tt=n(182),Nt=n(277);var Rt=function(e){var t=e.notices,n=e.className,r=e.children,i=e.onRemove,a=void 0===i?Q.noop:i,c=e.onRemove2,u=void 0===c?Q.noop:c,s=Object(w.useReducedMotion)(),l=Object(g.useState)((function(){return new WeakMap})),f=ge()(l,1)[0],d=Object(Tt.useTransition)(t,(function(e){return e.id}),{from:{opacity:0,height:0},enter:function(e){return function(){var t=At()(Ct.a.mark((function t(n){return Ct.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=At()(Ct.a.mark((function e(t){return Ct.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=he()("components-snackbar-list",n);var p=function(e){return function(){a(e.id),u(e.id)}};return Object(g.createElement)("div",{className:n},r,d.map((function(e){var t=e.item,n=e.key,r=e.props;return Object(g.createElement)(Tt.animated.div,{key:n,style:r},Object(g.createElement)("div",{className:"components-snackbar-list__notice-container",ref:function(e){return e&&f.set(t,e)}},Object(g.createElement)(Nt.a,o()({},Object(Q.omit)(t,["content"]),{onRemove:p(t)}),t.content)))})))};n(306);function Lt(e){var t=Object(O.useDispatch)("core/notices").removeNotice,n=Object(O.useDispatch)("core/notices2").removeNotice,r=Object(O.useSelect)((function(e){return{notices:e("core/notices").getNotices(),notices2:e("core/notices2").getNotices()}})),o=e.className,i=he()("woocommerce-transient-notices","components-notices__snackbar",o),a=function(){var e=r.notices,t=r.notices2,n=void 0===t?[]:t;return e.concat(n)}();return Object(g.createElement)(Rt,{notices:a,className:i,onRemove:t,onRemove2:n})}Lt.propTypes={className:x.a.string,notices:x.a.array};var Mt=Lt;function It(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 Dt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?It(Object(n),!0).forEach((function(t){u()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):It(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Vt(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 Ft(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vt(Object(n),!0).forEach((function(t){u()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Bt(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=y()(e);if(t){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return v()(this,n)}}Object(Xe.registerPlugin)("wc-admin-navigation",{render:function(){var e=Object(g.useState)(Object(Z.getPersistedQuery)()),t=ge()(e,2),n=t[0],r=t[1],o=function(e){return Object(Z.getQueryExcludedScreens)().includes(Object(Z.getScreenFromPath)(e))};if(Object(g.useEffect)((function(){return at((function(){setTimeout((function(){o()||r(Object(Z.getPersistedQuery)())}),0)}))}),[]),!Object(re.f)(window.location.href))return null;var i=Object(ne.a)().filter((function(e){return e.navArgs})),a=de().filter((function(e){return e.navArgs})).map((function(e){return"/analytics/settings"===e.path?Dt(Dt({},e),{},{breadcrumbs:[Object(te.__)("Analytics","woocommerce-admin")]}):e}));return Object(g.createElement)(g.Fragment,null,a.map((function(e){return Object(g.createElement)(Z.WooNavigationItem,{item:e.navArgs.id,key:e.navArgs.id},Object(g.createElement)(Y.Link,{className:"components-button",href:Object(Z.getNewPath)(o(e.path)?{}:n,e.path,{}),type:"wc-admin"},e.breadcrumbs[e.breadcrumbs.length-1]))})),i.map((function(e){return Object(g.createElement)(Z.WooNavigationItem,{item:e.navArgs.id,key:e.navArgs.id},Object(g.createElement)(Y.Link,{className:"components-button",href:Object(Z.getNewPath)(o(e.report)?{}:n,"/analytics/".concat(e.report),{}),type:"wc-admin"},e.title))})))}});var Ut=Object(g.lazy)((function(){return Promise.all([n.e(1),n.e(47)]).then(n.bind(null,611))})),qt=Object(g.lazy)((function(){return n.e(51).then(n.bind(null,527))})),zt=function(e){m()(n,e);var t=Bt(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(g.createElement)("div",{className:"woocommerce-layout__primary",id:"woocommerce-layout__primary"},window.wcAdminFeatures["store-alerts"]&&Object(g.createElement)(g.Suspense,{fallback:Object(g.createElement)(Y.Spinner,null)},Object(g.createElement)(Ut,null)),Object(g.createElement)(xt,null),e)}}]),n}(g.Component),Ht=function(e){m()(n,e);var t=Bt(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(Q.get)(e,"location.pathname"),n=Object(Q.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,Ft({is_embedded:!0},i))}else{var c=Object(Q.get)(this.props,"location.pathname");if(c){var u=c.substring(1).replace(/\//g,"_");0===u.length&&(u="home_screen"),Object(X.recordPageView)(u,Ft({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(Z.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(g.createElement)("div",{className:"woocommerce-layout"},Object(g.createElement)(_t,{sections:Object(Q.isFunction)(c)?c(this.props):c,isEmbedded:t,query:u}),Object(g.createElement)(Mt,null),!t&&Object(g.createElement)(zt,null,Object(g.createElement)("div",{className:"woocommerce-layout__main"},Object(g.createElement)(pe,o()({},n,{query:u})))),t&&this.isWCPaySettingsPage()&&Object(g.createElement)(g.Suspense,{fallback:null},Object(g.createElement)(qt,null)))}}]),n}(g.Component);Ht.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 $t=Object(w.compose)(Object(J.withPluginsHydration)(Ft(Ft({},window.wcSettings.plugins||{}),{},{jetpackStatus:window.wcSettings.dataEndpoints&&window.wcSettings.dataEndpoints.jetpackStatus||!1})),Object(O.withSelect)((function(e,t){if(!t.isEmbedded){var n=e(J.PLUGINS_STORE_NAME),r=n.getActivePlugins,o=n.getInstalledPlugins,i=n.isJetpackConnected;return{activePlugins:r(),isJetpackConnected:i(),installedPlugins:o()}}})))(Ht),Wt=Object(w.compose)(window.wcSettings.preloadOptions?Object(J.withOptionsHydration)(Ft({},window.wcSettings.preloadOptions)):Q.identity)((function(){var e=Object(J.useUser)().currentUserCan;return Object(g.createElement)(I,{history:Object(Z.getHistory)()},Object(g.createElement)(W,null,de().filter((function(t){return!t.capability||e(t.capability)})).map((function(e){return Object(g.createElement)(B,{key:e.path,path:e.path,exact:!0,render:function(t){return Object(g.createElement)($t,o()({page:e},t))}})}))))})),Qt=Object(w.compose)(window.wcSettings.preloadOptions?Object(J.withOptionsHydration)(Ft({},window.wcSettings.preloadOptions)):Q.identity)((function(){return Object(g.createElement)($t,{page:{breadcrumbs:Object(K.g)("embedBreadcrumbs",[])},isEmbedded:!0})}))},142:function(e,t){!function(){e.exports=this.wc.number}()},15:function(e,t,n){var r=n(31),o=n(9);e.exports=function(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?o(e):t}},152: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,v=r?Symbol.for("react.memo"):60115,b=r?Symbol.for("react.lazy"):60116,y=r?Symbol.for("react.block"):60121,g=r?Symbol.for("react.fundamental"):60117,w=r?Symbol.for("react.responder"):60118,O=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 b:case v:case s:return e;default:return t}}case i:return t}}}function E(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=b,t.Memo=v,t.Portal=i,t.Profiler=u,t.StrictMode=c,t.Suspense=m,t.isAsyncMode=function(e){return E(e)||j(e)===f},t.isConcurrentMode=E,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)===b},t.isMemo=function(e){return j(e)===v},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===b||e.$$typeof===v||e.$$typeof===s||e.$$typeof===l||e.$$typeof===p||e.$$typeof===g||e.$$typeof===w||e.$$typeof===O||e.$$typeof===y)},t.typeOf=j},16:function(e,t){!function(){e.exports=this.moment}()},17:function(e,t){!function(){e.exports=this.wp.dataControls}()},18:function(e,t,n){var r=n(60),o=n(61),i=n(40),a=n(62);e.exports=function(e,t){return r(e)||o(e,t)||i(e,t)||a()}},182: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(24)),i=r(n(97)),a=n(10),c=r(a),u=r(n(305)),s=r(n(9)),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 v,b,y=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}(),g=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 y&&e.addChild(s(t))}))},t.detach=function(){return t.payload.forEach((function(e){return e instanceof y&&e.removeChild(s(t))}))},t}return u(t,e),t}(y),w=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 y&&e.addChild(s(t))}))},t.detach=function(){return Object.values(t.payload).forEach((function(e){return e instanceof y&&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 y)&&(t[n]=r instanceof y?r[e?"getAnimatedValue":"getValue"]():r)}return t},n.getAnimatedValue=function(){return this.getValue(!0)},t}(y);function O(e,t){v={fn:e,transform:t}}function j(e){b=e}var E,_=function(e){return"undefined"!=typeof window?window.requestAnimationFrame(e):-1},k=function(e){"undefined"!=typeof window&&window.cancelAnimationFrame(e)};function x(e){E=e}var S,C=function(){return Date.now()};function P(e){S=e}var A,T,N=function(e){return e.current};function R(e){A=e}var L=Object.freeze({get applyAnimatedValues(){return v},injectApplyAnimatedValues:O,get colorNames(){return b},injectColorNames:j,get requestFrame(){return _},get cancelFrame(){return k},injectFrame:function(e,t){_=e,k=t},get interpolation(){return E},injectStringInterpolator:x,get now(){return C},injectNow:function(e){C=e},get defaultElement(){return S},injectDefaultElement:P,get animatedApi(){return N},injectAnimatedApi:function(e){N=e},get createAnimatedStyle(){return A},injectCreateAnimatedStyle:R,get manualFrameloop(){return T},injectManualFrameloop:function(e){T=e}}),M=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}(w),I=!1,D=new Set,V=function e(){if(!I)return!1;var t=C(),n=D,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],v=p.lastPosition,b=h instanceof y,g=Array.isArray(s.initialVelocity)?s.initialVelocity[d]:s.initialVelocity;if(b&&(h=h.getValue()),s.immediate)p.setValue(h),p.done=!0;else if("string"!=typeof m&&"string"!=typeof h){if(void 0!==s.duration)v=m+s.easing((t-p.startTime)/s.duration)*(h-m),l=t>=p.startTime+s.duration;else if(s.decay)v=m+g/(1-.998)*(1-Math.exp(-(1-.998)*(t-p.startTime))),(l=Math.abs(p.lastPosition-v)<.1)&&(h=v);else{f=void 0!==p.lastTime?p.lastTime:t,g=void 0!==p.lastVelocity?p.lastVelocity:s.initialVelocity,t>f+64&&(f=t);for(var w=Math.floor(t-f),O=0;O<w;++O){v+=1*(g+=1*((-s.tension*(v-h)+-s.friction*g)/s.mass)/1e3)/1e3}var j=!(!s.clamp||0===s.tension)&&(m<h?v>h:v<h),E=Math.abs(g)<=s.precision,k=0===s.tension||Math.abs(h-v)<=s.precision;l=j||E&&k,p.lastVelocity=g,p.lastTime=t}b&&!s.toValues[d].done&&(l=!1),l?(p.value!==h&&(v=h),p.done=!0):c=!0,p.setValue(v),p.lastPosition=v}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||(D.delete(a),a.stop(!0))}return D.size?T?T():_(e):I=!1,I};function F(e,t,n){if("function"==typeof e)return e;if(Array.isArray(e))return F({range:e,output:t,extrapolate:n});if(E&&"string"==typeof e.output[0])return E(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 B=function(e){function t(n,r,o,i){var a;return(a=e.call(this)||this).calc=void 0,a.payload=n instanceof g&&!(n instanceof t)?n.getPayload():Array.isArray(n)?n:[n],a.calc=F(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=F(e,t,n)},n.interpolate=function(e,n,r){return new t(this,e,n,r)},t}(g);var U=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 B(this,e,t,n)},t}(y),q=function(e){function t(t){var n;return(n=e.call(this)||this).payload=t.map((function(e){return new U(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 B(this,e,t)},t}(g),z=0,H=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=z++}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,D.has(t)||D.add(t),I||(I=!0,_(T||V));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,D.has(t)&&D.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,v=n.reset,y=n.immediate;if(f){var g=[c,i];i=g[0],c=g[1]}this.merged=o({},i,this.merged,c),this.hasChanged=!1;var w=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)&&!b[a],h=l.arr(a),g=!u&&!h&&!f,O=l.und(i[r])?a:i[r],j=u||h||f?a:1,_=m(s,r);w&&(j=w.animations[r].parent);var k,x=c.parent,S=c.interpolation,P=p(w?j.getPayload():j),A=a;g&&(A=E({range:[0,1],output:[a,a]})(1));var T,N=S&&S.getValue(),R=!l.und(x)&&c.animatedValues.some((function(e){return!e.done})),L=!l.equ(A,N),M=!l.equ(A,c.previous),I=!l.equ(_,c.config);if(v||M&&L||I){var D;if(u||f)x=S=c.parent||new U(O);else if(h)x=S=c.parent||new q(O);else if(g){var V=c.interpolation&&c.interpolation.calc(c.parent.value);V=void 0===V||v?O:V,c.parent?(x=c.parent).setValue(0,!1):x=new U(0);var F={output:[V,a]};c.interpolation?(S=c.interpolation,c.interpolation.updateConfig(F)):S=x.interpolate(F)}return P=p(w?j.getPayload():j),k=p(x.getPayload()),v&&!g&&x.setValue(O,!1),t.hasChanged=!0,k.forEach((function(e){e.startPosition=e.value,e.lastPosition=e.value,e.lastVelocity=R?e.lastVelocity:void 0,e.lastTime=R?e.lastTime:void 0,e.startTime=C(),e.done=!1,e.animatedStyles.clear()})),m(y,r)&&x.setValue(g?j:a,!1),o({},e,((D={})[r]=o({},c,{name:r,parent:x,interpolation:S,animatedValues:k,toValues:P,previous:A,config:_,fromValues:p(x.getValue()),immediate:m(y,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}),D))}return L?e:(g&&(x.setValue(1,!1),S.updateConfig({output:[A,A]})),x.done=!0,t.hasChanged=!0,o({},e,((T={})[r]=o({},e[r],{previous:A}),T)))}),this.animations),this.hasChanged)for(var O in this.configs=Object.values(this.animations),this.values={},this.interpolations={},this.animations)this.interpolations[O]=this.animations[O].interpolation,this.values[O]=this.animations[O].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}(),$=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 H,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},W=0,Q=function(e,t){return("function"==typeof t?e.map(t):p(t)).map(String)},G=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:Q(t,r)},a)};function Y(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 Z=function(e){function t(t){var n;return void 0===t&&(t={}),n=e.call(this)||this,!t.transform||t.transform instanceof y||(t=v.transform(t)),n.payload=t,n}return u(t,e),t}(w),K={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},J="[-+]?\\d*\\.?\\d+";function X(){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"+X(J,J,J)),te=new RegExp("rgba"+X(J,J,J,J)),ne=new RegExp("hsl"+X(J,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%")),re=new RegExp("hsla"+X(J,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%",J)),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:K.hasOwnProperty(t)?K[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,ve=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,be=new RegExp("("+Object.keys(K).join("|")+")","g"),ye={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},ge=["Webkit","Ms","Moz","O"];function we(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||ye.hasOwnProperty(e)&&ye[e]?(""+t).trim():t+"px"}ye=Object.keys(ye).reduce((function(e,t){return ge.forEach((function(n){return e[function(e,t){return e+t.charAt(0).toUpperCase()+t.substring(1)}(n,t)]=e[t]})),e}),ye);var Oe={};R((function(e){return new Z(e)})),P("div"),x((function(e){var t=e.output.map((function(e){return e.replace(ve,me)})).map((function(e){return e.replace(be,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 F(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(K),O((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=we(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:Oe[d]||(Oe[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,Ee,_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 M(e,(function(){var e=!1;d.current&&(e=v.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 N(d,u,r)})),p(t);var m,h=s.current.getValue(),b=(h.scrollTop,h.scrollLeft,i(h,["scrollTop","scrollLeft"])),y=(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({},b,{ref:y}))}))},void 0===(Ee=!1)&&(Ee=!0),function(e){return(l.arr(e)?e:Object.keys(e)).reduce((function(e,t){var n=Ee?t[0].toLowerCase()+t.substring(1):t;return e[n]=je(n),e}),je)}),ke=_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=V,t.animated=ke,t.a=ke,t.interpolate=function(e,t,n){return e&&new B(e,t,n)},t.Globals=L,t.useSpring=function(e){var t=l.fun(e),n=$(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=$(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=G(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),v=c.onRest,b=c.onStart,y=c.ref,g=i(c,["lazy","unique","reset","enter","leave","update","onDestroyed","keys","items","onFrame","onRest","onStart","ref"]),w=f(),O=a.useRef(!1),j=a.useRef({mounted:!1,first:!0,deleted:[],current:{},transitions:[],prevProps:{},paused:!!r.ref,instances:!O.current&&new Map,forceUpdate:w});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=G(t),u=c.items,s=c.keys,l=c.initial,f=c.from,d=c.enter,p=c.leave,h=c.update,v=c.trail,b=void 0===v?0:v,y=c.unique,g=c.config,w=c.order,O=void 0===w?["enter","leave","update"]:w,j=G(r),E=j.keys,_=j.items,k=o({},a.current),x=[].concat(a.deleted),S=Object.keys(k),C=new Set(S),P=new Set(s),A=s.filter((function(e){return!C.has(e)})),T=a.transitions.filter((function(e){return!e.destroyed&&!P.has(e.originalKey)})).map((function(e){return e.originalKey})),N=s.filter((function(e){return C.has(e)})),R=-b;for(;O.length;){switch(O.shift()){case"enter":A.forEach((function(e,t){y&&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";k[e]={slot:i,originalKey:e,key:y?String(e):W++,item:o,trail:R+=b,config:m(g,o,i),from:m(n&&void 0!==l?l||{}:f,o),to:m(d,o)}}));break;case"leave":T.forEach((function(e){var t=E.indexOf(e),n=_[t];x.unshift(o({},k[e],{slot:"leave",destroyed:!0,left:E[Math.max(0,t-1)],right:E[Math.min(E.length,t+1)],trail:R+=b,config:m(g,n,"leave"),to:m(p,n)})),delete k[e]}));break;case"update":N.forEach((function(e){var t=s.indexOf(e),n=u[t];k[e]=o({},k[e],{item:n,slot:"update",trail:R+=b,config:m(g,n,"update"),to:m(h,n)})}))}}var L=s.map((function(e){return k[e]}));return x.forEach((function(e){var t,n=e.left,r=(e.right,i(e,["left","right"]));-1!==(t=L.findIndex((function(e){return e.originalKey===n})))&&(t+=1),t=Math.max(0,t),L=[].concat(L.slice(0,t),[r],L.slice(t))})),o({},a,{changed:A.length||T.length||N.length,first:n&&0===A.length,transitions:L,current:k,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 H);var l=j.current.instances.get(c),f=o({},g,{to:r,from:n,config:i,ref:y,onRest:function(n){j.current.mounted&&(e.destroyed&&(y||s||Y(j,c),p&&p(u)),!Array.from(j.current.instances).some((function(e){return!e[1].idle}))&&(y||s)&&j.current.deleted.length>0&&Y(j),v&&v(u,t,n))},onStart:b&&function(){return b(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=O.current=!0,function(){j.current.mounted=O.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=$},183:function(e,t,n){"use strict";(function(e){var r=n(10),o=n.n(r),i=n(38),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(84))},184:function(e,t,n){var r=n(307);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],v=n[3],b=n[4],y=n[5],g=n[6],w=n[7];c&&(r.push(c),c="");var O=null!=h&&null!=m&&m!==h,j="+"===g||"*"===g,E="?"===g||"*"===g,_=n[2]||l,k=b||y;r.push({name:v||i++,prefix:h||"",delimiter:_,optional:E,repeat:j,partial:O,asterisk:!!w,pattern:k?s(k):w?".*":"[^"+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)}},19:function(e,t,n){var r=n(57),o=n(58),i=n(40),a=n(59);e.exports=function(e){return r(e)||o(e)||i(e)||a()}},196:function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return i}));var r=n(3);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}},197:function(e,t,n){"use strict";var r=n(36),o=n(55),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))}},2:function(e,t){!function(){e.exports=this.wp.i18n}()},20:function(e,t){!function(){e.exports=this.wp.compose}()},21:function(e,t){!function(){e.exports=this.wc.navigation}()},22:function(e,t){!function(){e.exports=this.wc.data}()},23:function(e,t){!function(){e.exports=this.wp.url}()},24: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},25: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 v}));var r=n(31),o=n.n(r),i=n(2),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 v(e){return(s||"")+e}},26:function(e,t){!function(){e.exports=this.wp.apiFetch}()},27:function(e,t){!function(){e.exports=this.wc.tracks}()},277:function(e,t,n){"use strict";(function(e){var r=n(0),o=n(3),i=n(6),a=n.n(i),c=n(140),u=n(2),s=(n(278),n(4));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,v=void 0===h?[]:h,b=t.onRemove,y=void 0===b?o.noop:b,g=t.icon,w=void 0===g?null:g,O=t.explicitDismiss,j=void 0!==O&&O,E=t.onDismiss,_=void 0===E?null:E;function k(e){e&&e.preventDefault&&e.preventDefault(),_(),y()}_=_||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||(_(),y())}),1e4);return function(){return clearTimeout(e)}}),[j,_,y]);var x=a()(i,"components-snackbar",{"components-snackbar-explicit-dismiss":!!j});v&&v.length>1&&(void 0!==e&&e.env,v=[v[0]]);var S=a()("components-snackbar__content",{"components-snackbar__content-with-icon":!!w});return Object(r.createElement)("div",{ref:n,className:x,onClick:j?o.noop:k,tabIndex:"0",role:j?"":"button",onKeyPress:j?o.noop:k,"aria-label":j?"":Object(u.__)("Dismiss this notice")},Object(r.createElement)("div",{className:S},w&&Object(r.createElement)("div",{className:"components-snackbar__icon"},w),l,v.map((function(e,t){var n=e.label,o=e.onClick,i=e.url;return Object(r.createElement)(s.Button,{key:t,href:i,isTertiary:!0,onClick:function(e){return function(e,t){e.stopPropagation(),y(),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:k,onKeyPress:k},"✕")))}))}).call(this,n(125))},278: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(125))},279:function(e,t){!function(){e.exports=this.wc.customerEffortScore}()},286:function(e,t,n){"use strict";n.d(t,"a",(function(){return q}));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 T}));var o={};n.r(o),n.d(o,"getCesSurveyQueue",(function(){return M}));var i={};n.r(i),n.d(i,"getCesSurveyQueue",(function(){return I}));var a=n(19),c=n.n(a),u=n(5),s=n.n(u),l=n(18),f=n.n(l),d=n(0),p=n(1),m=n.n(p),h=n(27),v=n(279),b=n.n(v),y=n(20),g=n(11),w=n(22),O=n(2);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 E(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(O.__)("Thank you for your feedback!","woocommerce-admin"):o,a=e.cesShownForActions,u=e.allowTracking,l=e.resolving,p=e.storeAgeInWeeks,m=e.updateOptions,v=e.createNotice,y=Object(d.useState)(!1),g=f()(y,2),w=g[0],j=g[1];if(l)return null;if(!u)return null;if(-1!==a.indexOf(t)&&!w)return null;var _=function(){m(s()({},"woocommerce_ces_shown_for_actions",[t].concat(c()(a))))};return Object(d.createElement)(b.a,{recordScoreCallback:function(e,r){Object(h.recordEvent)("ces_feedback",E({action:t,score:e,comments:r||"",store_age:p},n)),v("success",i)},label:r,onNoticeShownCallback:function(){Object(h.recordEvent)("ces_snackbar_view",E({action:t,store_age:p},n))},onNoticeDismissedCallback:function(){Object(h.recordEvent)("ces_snackbar_dismiss",E({action:t,store_age:p},n)),_()},onModalShownCallback:function(){j(!0),Object(h.recordEvent)("ces_view",E({action:t,store_age:p},n)),_()},icon:Object(d.createElement)("span",{style:{height:21,width:21},role:"img","aria-label":Object(O.__)("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 k=Object(y.compose)(Object(g.withSelect)((function(e){var t=e(w.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/w.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(g.withDispatch)((function(e){return{updateOptions:e(w.OPTIONS_STORE_NAME).updateOptions,createNotice:e("core/notices").createNotice}})))(_),x=n(76),S=n(17),C={SET_CES_SURVEY_QUEUE:"SET_CES_SURVEY_QUEUE",ADD_CES_SURVEY:"ADD_CES_SURVEY"};function P(e){return{type:C.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:C.ADD_CES_SURVEY,action:e,label:t,pageNow:n,adminPage:r,onsubmit_label:o}}function T(){return A("analytics_filtered",Object(O.__)("How easy was it to filter your store analytics?","woocommerce-admin"),"woocommerce_page_wc-admin","woocommerce_page_wc-admin")}var N=n(8),R=n.n(N),L=R.a.mark(M);function M(){var e;return R.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(S.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()}}),L)}function I(e){return e.queue}function D(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 V(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){s()(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 F={queue:[]},B=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:F,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case C.SET_CES_SURVEY_QUEUE:return V(V({},e),{},{queue:t.queue});case C.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 V(V({},e),{},{queue:[].concat(c()(e.queue),[r])});default:return e}};Object(g.registerStore)(x.c,{actions:r,selectors:i,resolvers:o,controls:S.controls,reducer:B});function U(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)(k,{key:t,action:e.action,label:e.label,onSubmitLabel:e.onsubmit_label,trackProps:e.props||{}})})))}U.propTypes={queue:m.a.arrayOf(m.a.object),resolving:m.a.bool,clearQueue:m.a.func};var q=Object(y.compose)(Object(g.withSelect)((function(e){var t=e(x.c),n=t.getCesSurveyQueue,r=t.isResolving;return{queue:n(),resolving:r("getOption",[x.b])}})),Object(g.withDispatch)((function(e){var t=e(w.OPTIONS_STORE_NAME).updateOptions;return{clearQueue:function(){t({woocommerce_clear_ces_tracks_queue_for_page:{pagenow:window.pagenow,adminpage:window.adminpage}})}}})))(U)},29:function(e,t){!function(){e.exports=this.wc.date}()},294:function(e,t,n){"use strict";n.r(t),function(e){var t=n(0),r=(n(469),n(22)),o=(n(296),n(141)),i=n(286);n.p=e.wcAdminAssets.path;var a,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))}window.wcAdminFeatures&&!0===window.wcAdminFeatures["customer-effort-score-tracks"]&&(a=c||u,Object(t.render)(Object(t.createElement)(i.a,null),a.insertBefore(document.createElement("div"),null)))}.call(this,n(84))},296:function(e,t,n){},297:function(e,t,n){},298:function(e,t,n){},299:function(e,t,n){},3:function(e,t){!function(){e.exports=this.lodash}()},30:function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return i})),n.d(t,"d",(function(){return a})),n.d(t,"c",(function(){return c})),n.d(t,"e",(function(){return u})),n.d(t,"f",(function(){return s}));var r=n(4),o=r.Navigation||r.__experimentalNavigation,i=(r.NavigationBackButton||r.__experimentalNavigationBackButton,r.NavigationGroup||r.__experimentalNavigationGroup),a=r.NavigationMenu||r.__experimentalNavigationMenu,c=r.NavigationItem||r.__experimentalNavigationItem,u=r.Text||r.__experimentalText,s=r.useSlot||r.__experimentalUseSlot},300:function(e,t,n){},301:function(e,t,n){},302:function(e,t,n){},303:function(e,t,n){},304:function(e,t,n){},305:function(e,t,n){var r=n(72);e.exports=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,r(e,t)}},306:function(e,t,n){},307:function(e,t){e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},31: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},32: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}))},34:function(e,t,n){var r=n(97);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}},36: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}))},37: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}},38: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){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,r(e,t)}n.d(t,"a",(function(){return o}))},4:function(e,t){!function(){e.exports=this.wp.components}()},40:function(e,t,n){var r=n(37);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}}},41:function(e,t){!function(){e.exports=this.wp.htmlEntities}()},42: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}))},43:function(e,t){!function(){e.exports=this.wp.hooks}()},44: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)}))}}},469:function(e,t,n){"use strict";var r={};n.r(r),n.d(r,"createNotice",(function(){return h})),n.d(r,"createSuccessNotice",(function(){return v})),n.d(r,"createInfoNotice",(function(){return b})),n.d(r,"createErrorNotice",(function(){return y})),n.d(r,"createWarningNotice",(function(){return g})),n.d(r,"removeNotice",(function(){return w}));var o={};n.r(o),n.d(o,"getNotices",(function(){return j}));var i=n(11),a=n(82),c=n(3),u=n(36);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(8),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,v,b,y,g=arguments;return p.a.wrap((function(p){for(;;)switch(p.prev=p.next){case 0:if(e=g.length>0&&void 0!==g[0]?g[0]:"info",t=g.length>1?g[1]:void 0,n=g.length>2&&void 0!==g[2]?g[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,v=n.type,b=void 0===v?"default":v,y=n.__unstableHTML,t=String(t),!o){p.next=8;break}return p.next=8,{type:"SPEAK",message:t,ariaLive:"snackbar"===b?"polite":"assertive"};case 8:return p.next=10,{type:"CREATE_NOTICE",context:s,notice:{id:f,status:e,content:t,__unstableHTML:y,isDismissible:a,actions:h,type:b}};case 10:case"end":return p.stop()}}),m)}function v(e,t){return h("success",e,t)}function b(e,t){return h("info",e,t)}function y(e,t){return h("error",e,t)}function g(e,t){return h("warning",e,t)}function w(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"global";return{type:"REMOVE_NOTICE",id:e,context:t}}var O=[];function j(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"global";return e[t]||O}var E=n(140),_={SPEAK:function(e){Object(E.a)(e.message,e.ariaLive||"assertive")}};Object(i.registerStore)("core/notices",{reducer:f,actions:r,selectors:o,controls:_})},47:function(e,t){!function(){e.exports=this.wc.components}()},481:function(e,t){!function(){e.exports=this.wc.csvExport}()},49:function(e,t,n){"use strict";var r=n(90),o=n(91),i=n(52);e.exports={formats:i,parse:o,stringify:r}},497:function(e,t,n){"use strict";var r=n(0),o=n(67),i=Object(r.createElement)(o.b,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.a,{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},5: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}},50:function(e,t){!function(){e.exports=this.ReactDOM}()},52:function(e,t,n){"use strict";var r=String.prototype.replace,o=/%20/g,i="RFC1738",a="RFC3986";e.exports={default:a,formatters:{RFC1738:function(e){return r.call(e,o,"+")},RFC3986:function(e){return String(e)}},RFC1738:i,RFC3986:a}},54: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}))},55:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(42);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}},56:function(e,t,n){"use strict";t.a=function(e,t){if(!e)throw new Error("Invariant failed")}},57:function(e,t,n){var r=n(37);e.exports=function(e){if(Array.isArray(e))return r(e)}},58:function(e,t){e.exports=function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}},59: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.")}},6: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}()},60:function(e,t){e.exports=function(e){if(Array.isArray(e))return e}},61: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}}},62: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.")}},67:function(e,t,n){"use strict";n.d(t,"a",(function(){return l})),n.d(t,"b",(function(){return f}));var r=n(36),o=n(55),i=n(6),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)("path",e)},f=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)}},68: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 E(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 k()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=w(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,v=h&&h(h(_([])));v&&v!==t&&n.call(v,o)&&(m=v);var b=p.prototype=f.prototype=Object.create(m);function y(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function g(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 w(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,w(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 O(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 E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,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:k}}function k(){return{value:void 0,done:!0}}return d.prototype=b.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(b),e},e.awrap=function(e){return{__await:e}},y(g.prototype),g.prototype[i]=function(){return this},e.AsyncIterator=g,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new g(u(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(b),c(b,a,"Generator"),b[o]=function(){return this},b.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=_,E.prototype={constructor:E,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)}},69:function(e,t,n){"use strict";var r=n(52),o=Object.prototype.hasOwnProperty,i=Array.isArray,a=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),c=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:c,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 o=t[r],a=o.obj[o.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(i(n)){for(var r=[],o=0;o<n.length;++o)void 0!==n[o]&&r.push(n[o]);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,o,i){if(0===e.length)return e;var c=e;if("symbol"==typeof e?c=Symbol.prototype.toString.call(e):"string"!=typeof e&&(c=String(e)),"iso-8859-1"===n)return escape(c).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var u="",s=0;s<c.length;++s){var l=c.charCodeAt(s);45===l||46===l||95===l||126===l||l>=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122||i===r.RFC1738&&(40===l||41===l)?u+=c.charAt(s):l<128?u+=a[l]:l<2048?u+=a[192|l>>6]+a[128|63&l]:l<55296||l>=57344?u+=a[224|l>>12]+a[128|l>>6&63]+a[128|63&l]:(s+=1,l=65536+((1023&l)<<10|1023&c.charCodeAt(s)),u+=a[240|l>>18]+a[128|l>>12&63]+a[128|l>>6&63]+a[128|63&l])}return u},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(i(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,r){if(!n)return t;if("object"!=typeof n){if(i(t))t.push(n);else{if(!t||"object"!=typeof t)return[t,n];(r&&(r.plainObjects||r.allowPrototypes)||!o.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(n);var a=t;return i(t)&&!i(n)&&(a=c(t,r)),i(t)&&i(n)?(n.forEach((function(n,i){if(o.call(t,i)){var a=t[i];a&&"object"==typeof a&&n&&"object"==typeof n?t[i]=e(a,n,r):t.push(n)}else t[i]=n})),t):Object.keys(n).reduce((function(t,i){var a=n[i];return o.call(t,i)?t[i]=e(t[i],a,r):t[i]=a,t}),a)}}},7: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},70: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}))},71:function(e,t,n){"use strict";n.d(t,"a",(function(){return w})),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(32);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(56);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 v(){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 b=!("undefined"==typeof window||!window.document||!window.document.createElement);function y(e,t){t(window.confirm(e))}function g(){try{return window.history.state||{}}catch(e){return{}}}function w(e){void 0===e&&(e={}),b||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,w=void 0===h?y:h,O=a.keyLength,j=void 0===O?6:O,E=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 E&&(i=f(i,E)),m(i,r,n)}function k(){return Math.random().toString(36).substr(2,j)}var x=v();function S(e){Object(r.a)(F,e),F.length=n.length,x.notifyListeners(F.location,F.action)}function C(e){(function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")})(e)||T(_(e.state))}function P(){T(_(g()))}var A=!1;function T(e){if(A)A=!1,S();else{x.confirmTransitionTo(e,"POP",w,(function(t){t?S({action:"POP",location:e}):function(e){var t=F.location,n=R.indexOf(t.key);-1===n&&(n=0);var r=R.indexOf(e.key);-1===r&&(r=0);var o=n-r;o&&(A=!0,M(o))}(e)}))}}var N=_(g()),R=[N.key];function L(e){return E+p(e)}function M(e){n.go(e)}var I=0;function D(e){1===(I+=e)&&1===e?(window.addEventListener("popstate",C),i&&window.addEventListener("hashchange",P)):0===I&&(window.removeEventListener("popstate",C),i&&window.removeEventListener("hashchange",P))}var V=!1;var F={length:n.length,action:"POP",location:N,createHref:L,push:function(e,t){var r=m(e,t,k(),F.location);x.confirmTransitionTo(r,"PUSH",w,(function(e){if(e){var t=L(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=R.indexOf(F.location.key),s=R.slice(0,c+1);s.push(r.key),R=s,S({action:"PUSH",location:r})}else window.location.href=t}}))},replace:function(e,t){var r=m(e,t,k(),F.location);x.confirmTransitionTo(r,"REPLACE",w,(function(e){if(e){var t=L(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=R.indexOf(F.location.key);-1!==c&&(R[c]=r.key),S({action:"REPLACE",location:r})}else window.location.replace(t)}}))},go:M,goBack:function(){M(-1)},goForward:function(){M(1)},block:function(e){void 0===e&&(e=!1);var t=x.setPrompt(e);return V||(D(1),V=!0),function(){return V&&(V=!1,D(-1)),t()}},listen:function(e){var t=x.appendListener(e);return D(1),function(){D(-1),t()}}};return F}function O(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=v();function f(e){Object(r.a)(w,e),w.length=w.entries.length,l.notifyListeners(w.location,w.action)}function d(){return Math.random().toString(36).substr(2,s)}var h=O(c,0,i.length-1),b=i.map((function(e){return m(e,void 0,"string"==typeof e?d():e.key||d())})),y=p;function g(e){var t=O(w.index+e,0,w.entries.length-1),r=w.entries[t];l.confirmTransitionTo(r,"POP",n,(function(e){e?f({action:"POP",location:r,index:t}):f()}))}var w={length:b.length,action:"POP",location:b[h],index:h,entries:b,createHref:y,push:function(e,t){var r=m(e,t,d(),w.location);l.confirmTransitionTo(r,"PUSH",n,(function(e){if(e){var t=w.index+1,n=w.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(),w.location);l.confirmTransitionTo(r,"REPLACE",n,(function(e){e&&(w.entries[w.index]=r,f({action:"REPLACE",location:r}))}))},go:g,goBack:function(){g(-1)},goForward:function(){g(1)},canGo:function(e){var t=w.index+e;return t>=0&&t<w.entries.length},block:function(e){return void 0===e&&(e=!1),l.setPrompt(e)},listen:function(e){return l.appendListener(e)}};return w}},72: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},75:function(e,t){!function(){e.exports=this.wp.date}()},76: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"},77:function(e,t,n){"use strict";var r=n(78);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}},78:function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},8:function(e,t,n){e.exports=n(68)},82:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(70);var o=n(94);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.")}()}},84: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},9: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}},90:function(e,t,n){"use strict";var r=n(69),o=n(52),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,v,b,y){var g,w=t;if("function"==typeof l?w=l(n,w):w instanceof Date?w=m(w):"comma"===o&&c(w)&&(w=r.maybeMap(w,(function(e){return e instanceof Date?m(e):e}))),null===w){if(i)return u&&!b?u(n,d.encoder,y,"key",h):n;w=""}if("string"==typeof(g=w)||"number"==typeof g||"boolean"==typeof g||"symbol"==typeof g||"bigint"==typeof g||r.isBuffer(w))return u?[v(b?n:u(n,d.encoder,y,"key",h))+"="+v(u(w,d.encoder,y,"value",h))]:[v(n)+"="+v(String(w))];var O,j=[];if(void 0===w)return j;if("comma"===o&&c(w))O=[{value:w.length>0?w.join(",")||null:void 0}];else if(c(l))O=l;else{var E=Object.keys(w);O=f?E.sort(f):E}for(var _=0;_<O.length;++_){var k=O[_],x="object"==typeof k&&void 0!==k.value?k.value:w[k];if(!a||null!==x){var S=c(w)?"function"==typeof o?o(n,k):n:n+(p?"."+k:"["+k+"]");s(j,e(x,S,o,i,a,u,l,f,p,m,h,v,b,y))}}return j};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,format:n,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 v=n[h];u.skipNulls&&null===r[v]||s(f,p(r[v],v,m,u.strictNullHandling,u.skipNulls,u.encode?u.encoder:null,u.filter,u.sort,u.allowDots,u.serializeDate,u.format,u.formatter,u.encodeValuesOnly,u.charset))}var b=f.join(u.delimiter),y=!0===u.addQueryPrefix?"?":"";return u.charsetSentinel&&("iso-8859-1"===u.charset?y+="utf8=%26%2310003%3B&":y+="utf8=%E2%9C%93&"),b.length>0?y+b:""}},91:function(e,t,n){"use strict";var r=n(69),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,v,b=d[n],y=b.indexOf("]="),g=-1===y?b.indexOf("="):y+1;-1===g?(h=t.decoder(b,a.decoder,m,"key"),v=t.strictNullHandling?null:""):(h=t.decoder(b.slice(0,g),a.decoder,m,"key"),v=r.maybeMap(u(b.slice(g+1),t),(function(e){return t.decoder(e,a.decoder,m,"value")}))),v&&t.interpretNumericEntities&&"iso-8859-1"===m&&(v=c(v)),b.indexOf("[]=")>-1&&(v=i(v)?[v]:v),o.call(s,h)?s[h]=r.combine(s[h],v):s[h]=v}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)}},94:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(70);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}}},95: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(19),o=n.n(r),i=n(41),a=n(3),c=n(25);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)}},97: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}}});
dist/app/style.css CHANGED
@@ -1 +1 @@
1
- .woocommerce-page .wrap{margin:0}.woocommerce-page #wpcontent,.woocommerce-page.woocommerce_page_wc-admin #wpbody-content{padding:0;overflow-x:hidden!important;min-height:calc(100vh - 32px)}@media (min-width:783px){.woocommerce-page #wpbody-content{padding-left:0}}@media (max-width:782px){.woocommerce-page .wp-responsive-open #woocommerce-embedded-root,.woocommerce-page .wp-responsive-open #wpbody{position:relative;right:-14.5em}.woocommerce-page #wpbody-content,.woocommerce-page #wpcontent{min-height:calc(100vh - 46px)}}@media (min-width:961px){.woocommerce-page #toplevel_page_wcadmin--analytics.menu-top>a:focus,.woocommerce-page #toplevel_page_woocommerce.menu-top>a:focus{padding-bottom:1px}}.woocommerce-layout *{box-sizing:border-box}#wpfooter{display:none}.woocommerce_page_wc-admin .wp-responsive-open .woocommerce-layout__header{margin-left:2px}.woocommerce_page_wc-admin .woocommerce-filters-date__content:not(.is-mobile){z-index:2}@media (max-width:600px){#wpadminbar{position:fixed}}@media (max-width:782px){.jetpack-masterbar #wpadminbar #wp-admin-bar-menu-toggle{margin-top:-10px}.jetpack-masterbar #wpwrap .woocommerce-layout__header-heading{padding-left:60px}.jetpack-masterbar.wp-admin .wrap h1,.jetpack-masterbar.wp-admin .wrap h2{padding-left:0}}.woocommerce-page .wp-has-current-submenu:after{right:0;content:" ";height:0;width:0;position:absolute;pointer-events:none;border:8px solid transparent;border-right-color:#f1f1f1;top:0;margin-top:10px}@media (max-width:960px){.woocommerce-page .wp-has-current-submenu:after{border-width:4px;margin-top:14px}}:root{--large-gap:40px;--main-gap:24px}@media (max-width:960px){:root{--large-gap:24px}}@media (max-width:782px){:root{--large-gap:16px;--main-gap:16px}}@keyframes loading-fade{0%{opacity:.7}50%{opacity:1}to{opacity:.7}}.woocommerce-layout select:hover{color:#1e1e1e}.woocommerce-layout select.components-select-control__input{max-width:100%;line-height:1}body.woocommerce-page .components-button.is-primary:not(:disabled),body.woocommerce-page .components-snackbar .components-button.is-tertiary,body.woocommerce-page .components-snackbar .components-button.is-tertiary:not(:disabled):not([aria-disabled=true]):hover{color:#fff}.woocommerce-embed-page #wpbody .woocommerce-layout,.woocommerce-embed-page .woocommerce-layout__notice-list-hide+.wrap{padding-top:70px}.woocommerce-embed-page #wpbody-content,.woocommerce-embed-page #wpcontent{overflow-x:initial!important}.woocommerce-embed-page #wpbody-content{padding-top:0}.woocommerce-embed-page #wpbody-content .notice{margin-top:15px}.woocommerce-embed-page .wrap{padding:0 20px}@media (max-width:782px){.woocommerce-embed-page .wrap p.search-box{width:calc(100% - 40px)}}.woocommerce-embed-page .wrap .wrap{padding:0}.woocommerce-embed-page #woocommerce-embedded-root.is-embed-loading+#wpbody .wrap{padding-top:100px}@media (max-width:782px){.woocommerce-embed-page #woocommerce-embedded-root.is-embed-loading+#wpbody .wrap{padding-top:30px}}.woocommerce-embed-page #screen-meta,.woocommerce-embed-page #screen-meta-links{top:60px}.woocommerce-embed-page #screen-meta{border-right:0;margin:0}.woocommerce-embed-page #screen-meta-links{position:relative}.woocommerce-embed-page .notice{padding:1px 12px}.woocommerce-embed-page .woocommerce-layout__header.is-scrolled{box-shadow:0 8px 16px 0 rgba(85,93,102,.3)}.woocommerce-embed-page .woocommerce-layout__header .woocommerce-layout__header-heading{margin-top:0;margin-bottom:0}.woocommerce-embed-page #screen-meta-links.is-hidden-by-notices,.woocommerce-embed-page #screen-meta.is-hidden-by-notices{display:none!important}.woocommerce-embed-page .woocommerce-layout__primary{margin:0}@media (max-width:782px){.woocommerce-embed-page .woocommerce-layout__primary{padding-top:10px}}@keyframes isLoaded{0%{opacity:0}to{opacity:1}}.woocommerce-embed-page .woocommerce-layout__activity-panel-tabs{animation:isLoaded;animation-duration:2s}.woocommerce-embed-page .woocommerce-layout__notice-list-show{margin-top:10px;margin-bottom:16px}@media (max-width:600px){.woocommerce-embed-page .woocommerce-layout__notice-list-show{margin-top:80px;margin-bottom:-16px}}@media (min-width:601px) and (max-width:782px){.woocommerce-embed-page .woocommerce-layout__notice-list-show{margin-top:32px}}@media (min-width:783px){.woocommerce-embed-page .woocommerce-layout__activity-panel-mobile-toggle{display:none}}.woocommerce-embed-page .woocommerce-activity-card__actions a.components-button:not(.is-primary){color:#757575}.woocommerce-layout{margin:0;padding:0}.woocommerce-layout__primary{margin:80px 0 0 40px;margin:80px 0 0 var(--large-gap)}@media (min-width:961px){.woocommerce-layout__primary{margin-top:100px}}@media (max-width:782px){.woocommerce-layout__primary{margin-top:60px}}.woocommerce-layout .woocommerce-layout__main{padding-right:40px;padding-right:var(--large-gap);max-width:100%}.woocommerce-admin-is-loading #adminmenumain,.woocommerce-admin-is-loading #wpadminbar,.woocommerce-admin-is-loading #wpbody-content,.woocommerce-admin-is-loading #wpcontent,.woocommerce-admin-is-loading #wpfooter,.woocommerce-admin-is-loading .components-modal__screen-overlay,.woocommerce-admin-is-loading .error,.woocommerce-admin-is-loading .notice,.woocommerce-admin-is-loading .update-nag,.woocommerce-admin-is-loading .updated,.woocommerce-admin-is-loading .woocommerce-layout__header,.woocommerce-admin-is-loading .woocommerce-message,.woocommerce-admin-is-loading .woocommerce-store-alerts,.woocommerce-page .update-nag{display:none}.woocommerce-admin-full-screen{background:#f6f7f7;color:#50575e;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;margin-top:-32px}.woocommerce-admin-full-screen #wpwrap{top:0}.woocommerce-admin-full-screen #wpbody-content{min-height:100vh}.woocommerce-admin-full-screen #adminmenumain,.woocommerce-admin-full-screen #wpcontent>*,.woocommerce-admin-full-screen .error,.woocommerce-admin-full-screen .notice,.woocommerce-admin-full-screen .update-nag,.woocommerce-admin-full-screen .updated,.woocommerce-admin-full-screen .woocommerce-layout__header,.woocommerce-admin-full-screen .woocommerce-message,.woocommerce-admin-full-screen .woocommerce-store-alerts{display:none}.woocommerce-admin-full-screen #wpcontent{margin-left:0!important}.woocommerce-admin-full-screen #wpcontent>#wpbody{display:block}.woocommerce-onboarding .muriel-component{margin-top:16px;margin-bottom:16px}.woocommerce-onboarding .components-base-control.has-error{margin-bottom:32px!important;border-color:#d63638}@media (max-width:782px){.woocommerce-onboarding .components-base-control.has-error{margin-bottom:44px!important}}.woocommerce-onboarding .components-base-control.has-error .components-base-control__help{top:100%;left:12px;position:absolute;margin-top:4px;font-size:12px;font-style:normal;color:#d63638}.woocommerce-onboarding .components-form-toggle{display:inline-block}.woocommerce-onboarding .components-form-toggle label{font-size:14px}.woocommerce-onboarding .components-form-toggle .components-base-control{display:inline-block}.woocommerce-onboarding .components-form-toggle .components-base-control__field{margin-bottom:0}.woocommerce-page .components-modal__frame .components-button.is-button,.woocommerce-profile-wizard__body .components-button.is-button,.woocommerce-task-dashboard__container .components-button.is-button{height:48px;padding-left:25px;padding-right:25px;text-align:center;font-size:14px;line-height:36px;font-weight:500;align-items:center}.woocommerce-page .components-modal__frame .components-button.is-button:disabled,.woocommerce-profile-wizard__body .components-button.is-button:disabled,.woocommerce-task-dashboard__container .components-button.is-button:disabled{cursor:not-allowed}.components-modal__frame.woocommerce-usage-modal{width:600px;max-width:100%}.components-modal__frame.woocommerce-usage-modal .components-modal__header{border-bottom:0;margin-bottom:0}.components-modal__frame.woocommerce-usage-modal .woocommerce-usage-modal__wrapper{flex-grow:1;display:flex;flex-direction:column}.components-modal__frame.woocommerce-usage-modal .woocommerce-usage-modal__wrapper a{color:#50575e}.components-modal__frame.woocommerce-usage-modal .woocommerce-usage-modal__wrapper button.is-primary{align-self:flex-end}.components-modal__frame.woocommerce-usage-modal .woocommerce-usage-modal__actions{display:flex;justify-content:flex-end;margin-top:16px}.components-modal__frame.woocommerce-usage-modal .woocommerce-usage-modal__actions button{margin-left:16px}.woocommerce-payments__usage-modal .components-modal__header{height:auto;padding:24px 24px 0}.woocommerce-payments__usage-modal .components-modal__header .components-modal__header-heading{font-size:24px;line-height:32px;margin:0 0 24px}.woocommerce-payments__usage-modal .woocommerce-payments__usage-modal-message{padding:16px 0;font-size:16px;line-height:24px}.woocommerce-payments__usage-modal .woocommerce-payments__usage-footer{display:flex;justify-content:flex-end;padding:16px 0}.woocommerce-payments__usage-modal .woocommerce-payments__usage-footer button{margin-left:16px}.components-modal__frame.woocommerce-cart-modal{width:600px;max-width:100%}.components-modal__frame.woocommerce-cart-modal .components-modal__header{border-bottom:0;margin-bottom:16px;margin-top:16px}.components-modal__frame.woocommerce-cart-modal .components-modal__header button{display:none}.components-modal__frame.woocommerce-cart-modal .components-modal__header-heading{font-style:normal;font-weight:400;font-size:24px;line-height:32px}.components-modal__frame.woocommerce-cart-modal .woocommerce-list{margin-top:4px}.components-modal__frame.woocommerce-cart-modal .woocommerce-list .woocommerce-list__item:first-child{border-top:1px solid #dcdcde}.components-modal__frame.woocommerce-cart-modal .woocommerce-list__item{border-bottom:1px solid #dcdcde}.components-modal__frame.woocommerce-cart-modal .woocommerce-cart-modal__help-text{font-size:16px;line-height:24px}.components-modal__frame.woocommerce-cart-modal .woocommerce-cart-modal__actions{text-align:right}.components-modal__frame.woocommerce-cart-modal .woocommerce-cart-modal__actions button.is-link{margin-right:16px;text-decoration:none;font-weight:600;font-size:14px}.components-modal__frame.woocommerce-cart-modal .woocommerce-cart-modal__actions button.is-primary{align-self:flex-end}.woocommerce-layout__header{background:#fff;box-sizing:border-box;padding:0;min-height:60px;position:fixed;width:100%;top:32px;z-index:1001}.woocommerce-layout__header.is-scrolled{box-shadow:0 8px 8px 0 rgba(85,93,102,.3)}@media (max-width:782px){.woocommerce-layout__header{flex-flow:row wrap;top:46px}}.woocommerce-layout__header .woocommerce-layout__header-breadcrumbs-wrapper{display:flex;justify-content:space-between;flex-direction:row}.woocommerce-layout__header .woocommerce-layout__header-heading{display:flex;align-items:center;padding:0 0 0 40px;padding:0 0 0 var(--large-gap);flex:1 auto;height:60px;line-height:60px;background:#fff;font-weight:600;font-size:14px;text-transform:capitalize}.has-woocommerce-navigation .woocommerce-layout__header{top:0}.woocommerce-page #contextual-help-link-wrap,.woocommerce-page #screen-options-link-wrap{margin-top:-1px}.woocommerce-layout__activity-panel{display:flex;flex-direction:row;align-items:center;position:fixed;right:0;top:32px;height:60px}@media (max-width:782px){.woocommerce-layout__activity-panel{position:relative;background:#fff;margin:0;padding:0;width:100vw;display:none;flex:1 100%}}@media (min-width:783px) and (max-width:960px){.woocommerce-layout__activity-panel{max-width:280px}}@media (min-width:1281px){.woocommerce-layout__activity-panel{max-width:400px}}.woocommerce-layout__activity-panel.is-mobile-open{display:flex}.woocommerce-layout__activity-panel-tabs{width:100%;display:flex;height:60px;justify-content:flex-end}.woocommerce-layout__activity-panel-tabs .dashicon,.woocommerce-layout__activity-panel-tabs .gridicon{width:100%}.woocommerce-layout__activity-panel-tabs svg{width:24px;height:24px}.woocommerce-layout__activity-panel-tabs svg.woocommerce-layout__activity-panel-tab-icon{fill:none}.woocommerce-layout__activity-panel-tabs svg.woocommerce-layout__activity-panel-tab-icon path,.woocommerce-layout__activity-panel-tabs svg.woocommerce-layout__activity-panel-tab-icon rect{stroke:currentColor}.woocommerce-layout__activity-panel-tabs svg.setup-progress path:first-child{stroke:"#DCDCDE"}.woocommerce-layout__activity-panel-tabs .woocommerce-layout__homescreen-display-options svg.woocommerce-layout__activity-panel-tab-icon{height:14px}.woocommerce-layout__activity-panel-tabs .components-icon-button{display:initial;text-indent:0;border-radius:0}.woocommerce-layout__activity-panel-tabs .components-icon-button.has-text svg{margin:0}.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab{display:flex;flex-direction:column;justify-content:center;align-items:center;position:relative;border:none;outline:none;cursor:pointer;background-color:#fff;max-width:-webkit-min-content;max-width:min-content;min-width:80px;width:100%;height:60px;color:#757575;white-space:nowrap}.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab:before{background-color:#007cba;background-color:var(--wp-admin-theme-color);bottom:0;content:"";height:0;opacity:0;transition-property:height,opacity;transition-duration:.3s;transition-timing-function:ease-in-out;left:0;position:absolute;right:0}.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab.is-active,.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab.is-opened{color:#1e1e1e;box-shadow:none}.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab.is-active:before,.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab.is-opened:before{height:3px;opacity:1}.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab.has-unread:after,.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab.woocommerce-layout__activity-panel-tab-wordpress-notices:after{content:" ";position:absolute;padding:1px;background:#d94f4f;border:2px solid #fff;width:4px;height:4px;display:inline-block;border-radius:50%;top:8px;left:50%}@media (min-width:783px) and (max-width:960px){.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab.has-unread:after,.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab.woocommerce-layout__activity-panel-tab-wordpress-notices:after{right:18px;left:auto;margin-left:0}}@media (min-width:961px){.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab.has-unread:after,.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab.woocommerce-layout__activity-panel-tab-wordpress-notices:after{right:28px;left:auto;margin-left:0}}.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab.components-button:not(:disabled):not([aria-disabled=true]):hover,.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab:hover{background-color:#f0f0f0;box-shadow:none}.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab.components-button:not(:disabled):not([aria-disabled=true]):hover.has-unread:after,.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab.components-button:not(:disabled):not([aria-disabled=true]):hover.woocommerce-layout__activity-panel-tab-wordpress-notices:after,.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab:hover.has-unread:after,.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab:hover.woocommerce-layout__activity-panel-tab-wordpress-notices:after{border-color:#e0e0e0}.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab.components-button:not(:disabled):not([aria-disabled=true]):focus,.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab:focus{box-shadow:inset -1px -1px 0 #757575,inset 1px 1px 0 #757575}@media (max-width:782px){.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab.display-options{display:none}}.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-popover{margin-top:0;z-index:1001}.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-popover .components-menu-group{padding:12px}.woocommerce-layout__activity-panel-mobile-toggle{margin-right:10px;max-width:48px;height:60px;position:absolute;right:0;bottom:0}@media (min-width:783px){.woocommerce-layout__activity-panel-mobile-toggle{display:none}}.wp-responsive-open .woocommerce-layout__activity-panel-mobile-toggle{display:none}.woocommerce-layout__activity-panel-toggle-bubble.has-unread:after{content:" ";position:absolute;padding:1px;background:#ca4a1f;border:2px solid #fff;width:4px;height:4px;display:inline-block;border-radius:50%;top:6px;right:4px}@keyframes tabSwitch{0%,to{transform:translateX(0)}50%{transform:translateX(100px)}}.woocommerce-layout__activity-panel-wrapper{height:calc(100vh - 166px);background:#f0f0f0;width:510px;transform:translateX(100%);transition-property:transform box-shadow;transition-duration:.3s;transition-timing-function:ease-in-out;position:fixed;right:0;top:166px;z-index:1000;overflow-x:hidden;overflow-y:auto}@media (max-width:782px){.woocommerce-layout__activity-panel-wrapper{width:100%}}@media screen and (prefers-reduced-motion:reduce){.woocommerce-layout__activity-panel-wrapper{transition-duration:1ms}}@media (min-width:783px){.woocommerce-layout__activity-panel-wrapper{height:calc(100vh - 92px);top:92px}}.has-woocommerce-navigation .woocommerce-layout__activity-panel-wrapper{height:calc(100vh - 120px);top:120px}@media (min-width:783px){.has-woocommerce-navigation .woocommerce-layout__activity-panel-wrapper{height:calc(100vh - 60px);top:60px}}.woocommerce-layout__activity-panel-wrapper.is-open{transform:none;box-shadow:0 12px 12px 0 rgba(85,93,102,.3)}.woocommerce-layout__activity-panel-wrapper.is-switching{animation:tabSwitch;animation-duration:.3s}@media screen and (prefers-reduced-motion:reduce){.woocommerce-layout__activity-panel-wrapper.is-switching{animation:none}}.woocommerce-layout__activity-panel-wrapper .woocommerce-empty-content{padding-left:24px;padding-right:24px}.woocommerce-layout__activity-panel-avatar-flag-overlay{position:relative;top:-12px}.woocommerce-layout__activity-panel-avatar-flag-overlay .woocommerce-flag{position:relative;top:16px;border:2px solid #fff}.woocommerce-layout__notice-list-hide{display:none}.has-woocommerce-navigation .woocommerce-layout__activity-panel{top:0}.highlight-tooltip__container{position:absolute;width:0;height:0}.highlight-tooltip__container.highlight-tooltip__show{top:0;left:0;width:100%;height:100%}.highlight-tooltip__portal{width:100%;height:100%;position:relative}.highlight-tooltip__portal .highlight-tooltip__overlay{position:fixed;top:0;right:0;bottom:0;left:0;background-color:rgba(0,0,0,.35);z-index:100000;animation:edit-post__fade-in-animation .2s ease-out 0s;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.highlight-tooltip__portal .highlight-tooltip__overlay{animation-duration:1ms}}.highlight-tooltip__popover .components-card{min-width:360px}.highlight-tooltip__popover .components-card__header{font-size:16px;font-size:1rem;font-weight:600;height:60px}.highlight-tooltip__popover .components-card__footer{justify-content:flex-end}.woocommerce-layout__show-app-banner{padding-top:56px}@media (min-width:783px){.woocommerce-layout__show-app-banner{padding-top:0}}.woocommerce-mobile-app-banner{background-color:#3c2861;width:100%;display:flex;height:56px;align-items:center;padding:0 6px 0 4px}@media (min-width:401px){.woocommerce-mobile-app-banner{padding:0 13px 0 10px}}@media (min-width:783px){.woocommerce-mobile-app-banner{display:none}}.woocommerce-mobile-app-banner .dashicon{fill:#fff;margin-right:10px}.woocommerce-mobile-app-banner .components-button.is-secondary{margin-left:auto;color:#fff;box-shadow:inset 0 0 0 1px #fff}.woocommerce-mobile-app-banner .components-button.is-secondary:active,.woocommerce-mobile-app-banner .components-button.is-secondary:hover{color:#fff;box-shadow:inset 0 0 0 1px #fff;background:none}.woocommerce-mobile-app-banner .woocommerce-mobile-app-banner__description{color:#fff;margin-left:8px}@media (min-width:401px){.woocommerce-mobile-app-banner .woocommerce-mobile-app-banner__description{margin-left:13px}}.woocommerce-mobile-app-banner .woocommerce-mobile-app-banner__description .woocommerce-mobile-app-banner__description__text{margin:0;font-size:10px}.woocommerce-mobile-app-banner .woocommerce-mobile-app-banner__description .woocommerce-mobile-app-banner__description__text:first-child{font-weight:700}@media (min-width:401px){.woocommerce-mobile-app-banner .woocommerce-mobile-app-banner__description .woocommerce-mobile-app-banner__description__text{margin-left:13px;font-size:13px}}.woocommerce-transient-notices{position:fixed;bottom:12px;left:176px;z-index:99999}@media (max-width:960px){.woocommerce-transient-notices{left:50px}}@media (max-width:782px){.woocommerce-transient-notices{left:16px}}.woocommerce-profile-wizard__body .woocommerce-transient-notices{left:unset}.woocommerce-profile-wizard__body .woocommerce-transient-notices .components-snackbar{margin-left:auto;margin-right:auto}.components-snackbar.components-snackbar-explicit-dismiss{cursor:default}.components-snackbar .components-snackbar__content-with-icon{margin-left:32px}.components-snackbar .components-snackbar__icon{position:absolute;top:24px;left:26px}.components-snackbar .components-snackbar__dismiss-button{margin-left:32px;cursor:pointer}:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-20:#005a87}body.admin-color-light{--wp-admin-theme-color:#0085ba;--wp-admin-theme-color-darker-10:#0073a1;--wp-admin-theme-color-darker-20:#006187}body.admin-color-modern{--wp-admin-theme-color:#3858e9;--wp-admin-theme-color-darker-10:#2145e6;--wp-admin-theme-color-darker-20:#183ad6}body.admin-color-blue{--wp-admin-theme-color:#096484;--wp-admin-theme-color-darker-10:#07526c;--wp-admin-theme-color-darker-20:#064054}body.admin-color-coffee{--wp-admin-theme-color:#46403c;--wp-admin-theme-color-darker-10:#383330;--wp-admin-theme-color-darker-20:#2b2724}body.admin-color-ectoplasm{--wp-admin-theme-color:#523f6d;--wp-admin-theme-color-darker-10:#46365d;--wp-admin-theme-color-darker-20:#3a2c4d}body.admin-color-midnight{--wp-admin-theme-color:#e14d43;--wp-admin-theme-color-darker-10:#dd382d;--wp-admin-theme-color-darker-20:#d02c21}body.admin-color-ocean{--wp-admin-theme-color:#627c83;--wp-admin-theme-color-darker-10:#576e74;--wp-admin-theme-color-darker-20:#4c6066}body.admin-color-sunrise{--wp-admin-theme-color:#dd823b;--wp-admin-theme-color-darker-10:#d97426;--wp-admin-theme-color-darker-20:#c36922}.woocommerce-navigation h2{color:inherit}.woocommerce-navigation .components-navigation__menu{display:flex;flex-direction:column;height:100%}.woocommerce-navigation .components-navigation__group+.components-navigation__group{margin-top:24px}.woocommerce-navigation .components-navigation__item{margin-bottom:0}.woocommerce-navigation .components-navigation__item a.components-button{padding:6px 16px}.woocommerce-navigation .components-navigation__item:not(:hover) a.components-button{color:#949494}.woocommerce-navigation .components-navigation__item.is-active a.components-button{color:#fff}.woocommerce-navigation .woocommerce-navigation__back-to-dashboard{margin-top:24px}.woocommerce-navigation-header{display:flex;align-items:center;border:none;border-radius:0;height:auto}.woocommerce-navigation-header .woocommerce-navigation-header__site-icon.components-button{padding:12px;height:60px;color:#fff}.woocommerce-navigation-header .woocommerce-navigation-header__site-icon.components-button:focus,.woocommerce-navigation-header .woocommerce-navigation-header__site-icon.components-button:hover,.woocommerce-navigation-header .woocommerce-navigation-header__site-icon.components-button:not([aria-disabled=true]):active{color:#fff}.woocommerce-navigation-header .woocommerce-navigation-header__site-title.components-button{padding-left:0;color:#ccc;font-weight:600}.woocommerce-navigation-header .woocommerce-navigation-header__site-title.components-button:active,.woocommerce-navigation-header .woocommerce-navigation-header__site-title.components-button:focus,.woocommerce-navigation-header .woocommerce-navigation-header__site-title.components-button:hover{color:#e0e0e0}.has-woocommerce-navigation{margin-top:-32px}.has-woocommerce-navigation .screen-reader-shortcut:focus{top:7px}.has-woocommerce-navigation #adminmenuback,.has-woocommerce-navigation #adminmenuwrap,.has-woocommerce-navigation #wpadminbar{display:none!important}.has-woocommerce-navigation.woocommerce_page_wc-settings .woo-nav-tab-wrapper,.has-woocommerce-navigation.woocommerce_page_wc-status .woo-nav-tab-wrapper{display:none}.has-woocommerce-navigation.woocommerce_page_wc-settings .woocommerce .subsubsub,.has-woocommerce-navigation.woocommerce_page_wc-status .woocommerce .subsubsub{font-size:14px;margin:5px 0}.has-woocommerce-navigation #wpcontent,.has-woocommerce-navigation #wpfooter{margin-left:240px}@media (max-width:960px){.has-woocommerce-navigation #wpcontent,.has-woocommerce-navigation #wpfooter{margin-left:0}}.has-woocommerce-navigation #woocommerce-embedded-navigation{position:fixed;top:0;left:0;width:240px;height:100%;box-sizing:border-box;background-color:#1e1e1e;z-index:1100}@media (max-width:960px){.has-woocommerce-navigation #woocommerce-embedded-navigation{width:60px;height:60px}}.has-woocommerce-navigation .woocommerce-navigation__wrapper{overflow-y:auto;height:calc(100vh - 60px)}.has-woocommerce-navigation .components-navigation{box-sizing:border-box}.has-woocommerce-navigation.is-wc-nav-expanded #woocommerce-embedded-navigation{width:240px;height:100%}.has-woocommerce-navigation.is-wc-nav-folded #wpcontent,.has-woocommerce-navigation.is-wc-nav-folded #wpfooter{margin-left:0}.has-woocommerce-navigation.is-wc-nav-folded .woocommerce-layout__header{margin-left:60px}.has-woocommerce-navigation.is-wc-nav-folded #woocommerce-embedded-navigation{width:60px;height:60px}.has-woocommerce-navigation.is-wc-nav-folded #woocommerce-embedded-navigation .woocommerce-navigation-header.is-scrolled{box-shadow:0 8px 8px 0 rgba(85,93,102,.3)}.has-woocommerce-navigation.is-wc-nav-folded #woocommerce-embedded-navigation .woocommerce-navigation-header>*{display:none}.has-woocommerce-navigation.is-wc-nav-folded #woocommerce-embedded-navigation .woocommerce-navigation-header__site-icon{display:block}.has-woocommerce-navigation.is-wc-nav-folded #woocommerce-embedded-navigation .components-navigation{display:none}.has-woocommerce-navigation.is-wc-nav-folded .woocommerce-transient-notices{left:16px}.has-woocommerce-navigation .woocommerce-transient-notices{left:256px}@media (max-width:782px){.has-woocommerce-navigation .woocommerce-transient-notices{left:16px}}
1
+ .woocommerce-page .wrap{margin:0}.woocommerce-page #wpcontent,.woocommerce-page.woocommerce_page_wc-admin #wpbody-content{padding:0;overflow-x:hidden!important;min-height:calc(100vh - 32px)}@media (min-width:783px){.woocommerce-page #wpbody-content{padding-left:0}}@media (max-width:782px){.woocommerce-page .wp-responsive-open #woocommerce-embedded-root,.woocommerce-page .wp-responsive-open #wpbody{position:relative;right:-14.5em}.woocommerce-page #wpbody-content,.woocommerce-page #wpcontent{min-height:calc(100vh - 46px)}}@media (min-width:961px){.woocommerce-page #toplevel_page_wcadmin--analytics.menu-top>a:focus,.woocommerce-page #toplevel_page_woocommerce.menu-top>a:focus{padding-bottom:1px}}#wpbody,.woocommerce-layout *{box-sizing:border-box}#wpbody{display:inline-block;width:100%;padding-top:0;margin-top:60px}#wpfooter{display:none}.woocommerce_page_wc-admin .woocommerce-filters-date__content:not(.is-mobile){z-index:2}@media (max-width:600px){#wpadminbar{position:fixed}html.wp-toolbar{padding-top:46px}}@media (max-width:782px){.jetpack-masterbar #wpadminbar #wp-admin-bar-menu-toggle{margin-top:-10px}.jetpack-masterbar #wpwrap .woocommerce-layout__header-heading{padding-left:60px}.jetpack-masterbar.wp-admin .wrap h1,.jetpack-masterbar.wp-admin .wrap h2{padding-left:0}}.woocommerce-page .wp-has-current-submenu:after{right:0;content:" ";height:0;width:0;position:absolute;pointer-events:none;border:8px solid transparent;border-right-color:#f1f1f1;top:0;margin-top:10px}@media (max-width:960px){.woocommerce-page .wp-has-current-submenu:after{border-width:4px;margin-top:14px}}:root{--large-gap:40px;--main-gap:24px}@media (max-width:960px){:root{--large-gap:24px}}@media (max-width:782px){:root{--large-gap:16px;--main-gap:16px}}@keyframes loading-fade{0%{opacity:.7}50%{opacity:1}to{opacity:.7}}.woocommerce-layout select:hover{color:#1e1e1e}.woocommerce-layout select.components-select-control__input{max-width:100%;line-height:1}body.woocommerce-page .components-button.is-primary:not(:disabled),body.woocommerce-page .components-snackbar .components-button.is-tertiary,body.woocommerce-page .components-snackbar .components-button.is-tertiary:not(:disabled):not([aria-disabled=true]):hover{color:#fff}.woocommerce-embed-page #wpbody .woocommerce-layout,.woocommerce-embed-page .woocommerce-layout__notice-list-hide+.wrap{padding-top:10px}.woocommerce-embed-page #wpbody-content,.woocommerce-embed-page #wpcontent{overflow-x:initial!important}.woocommerce-embed-page #wpbody-content{padding-top:0}.woocommerce-embed-page #wpbody-content .notice{margin-top:15px}.woocommerce-embed-page .wrap{padding:0 20px}@media (max-width:782px){.woocommerce-embed-page .wrap p.search-box{width:calc(100% - 40px)}}.woocommerce-embed-page .wrap .wrap{padding:0}.woocommerce-embed-page #screen-meta{border-right:0;margin:0}.woocommerce-embed-page #screen-meta-links{position:relative}.woocommerce-embed-page .notice{padding:1px 12px}.woocommerce-embed-page .woocommerce-layout__header.is-scrolled{box-shadow:0 8px 16px 0 rgba(85,93,102,.3)}.woocommerce-embed-page .woocommerce-layout__header .woocommerce-layout__header-heading{margin-top:0;margin-bottom:0}.woocommerce-embed-page #screen-meta-links.is-hidden-by-notices,.woocommerce-embed-page #screen-meta.is-hidden-by-notices{display:none!important}.woocommerce-embed-page .woocommerce-layout__primary{margin:0}@media (max-width:782px){.woocommerce-embed-page .woocommerce-layout__primary{padding-top:10px}}@keyframes isLoaded{0%{opacity:0}to{opacity:1}}.woocommerce-embed-page .woocommerce-layout__activity-panel-tabs{animation:isLoaded;animation-duration:2s}.woocommerce-embed-page .woocommerce-layout__notice-list-show{margin-top:10px;margin-bottom:16px}@media (max-width:600px){.woocommerce-embed-page .woocommerce-layout__notice-list-show{margin-top:80px;margin-bottom:-16px}}@media (min-width:601px) and (max-width:782px){.woocommerce-embed-page .woocommerce-layout__notice-list-show{margin-top:32px}}.woocommerce-embed-page .woocommerce-activity-card__actions a.components-button:not(.is-primary){color:#757575}.woocommerce-layout{margin:0;padding:0}.woocommerce-layout__primary{margin:var(--large-gap) 0 0 var(--large-gap)}@media (max-width:782px){.woocommerce-layout__primary{margin-top:20px}}.woocommerce-layout .woocommerce-layout__main{padding-right:40px;padding-right:var(--large-gap);max-width:100%}.woocommerce-admin-is-loading #adminmenumain,.woocommerce-admin-is-loading #wpadminbar,.woocommerce-admin-is-loading #wpbody-content,.woocommerce-admin-is-loading #wpcontent,.woocommerce-admin-is-loading #wpfooter,.woocommerce-admin-is-loading .components-modal__screen-overlay,.woocommerce-admin-is-loading .error,.woocommerce-admin-is-loading .notice,.woocommerce-admin-is-loading .update-nag,.woocommerce-admin-is-loading .updated,.woocommerce-admin-is-loading .woocommerce-layout__header,.woocommerce-admin-is-loading .woocommerce-message,.woocommerce-admin-is-loading .woocommerce-store-alerts,.woocommerce-page .update-nag{display:none}.woocommerce-admin-full-screen{background:#f6f7f7;color:#50575e;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif}.woocommerce-admin-full-screen #wpwrap{top:0}.woocommerce-admin-full-screen #wpbody-content{min-height:100vh}.woocommerce-admin-full-screen #adminmenumain,.woocommerce-admin-full-screen #wpcontent>*,.woocommerce-admin-full-screen .error,.woocommerce-admin-full-screen .notice,.woocommerce-admin-full-screen .update-nag,.woocommerce-admin-full-screen .updated,.woocommerce-admin-full-screen .woocommerce-layout__header,.woocommerce-admin-full-screen .woocommerce-message,.woocommerce-admin-full-screen .woocommerce-store-alerts{display:none}.woocommerce-admin-full-screen #wpcontent{margin-left:0!important}.woocommerce-admin-full-screen #wpcontent>#wpbody{display:block;margin-top:0!important}.woocommerce-admin-full-screen.has-woocommerce-navigation #wpbody{padding-left:0}.is-wp-toolbar-disabled #wpadminbar{display:none!important}.wp-toolbar .is-wp-toolbar-disabled{margin-top:-32px}@media (max-width:600px){.wp-toolbar .is-wp-toolbar-disabled{margin-top:-46px}}.woocommerce-onboarding .muriel-component{margin-top:16px;margin-bottom:16px}.woocommerce-onboarding .components-base-control.has-error{margin-bottom:32px!important;border-color:#d63638}@media (max-width:782px){.woocommerce-onboarding .components-base-control.has-error{margin-bottom:44px!important}}.woocommerce-onboarding .components-base-control.has-error .components-base-control__help{top:100%;left:12px;position:absolute;margin-top:4px;font-size:12px;font-style:normal;color:#d63638}.woocommerce-onboarding .components-form-toggle{display:inline-block}.woocommerce-onboarding .components-form-toggle label{font-size:14px}.woocommerce-onboarding .components-form-toggle .components-base-control{display:inline-block}.woocommerce-onboarding .components-form-toggle .components-base-control__field{margin-bottom:0}.woocommerce-page .components-modal__frame .components-button.is-button,.woocommerce-profile-wizard__body .components-button.is-button,.woocommerce-task-dashboard__container .components-button.is-button{height:48px;padding-left:25px;padding-right:25px;text-align:center;font-size:14px;line-height:36px;font-weight:500;align-items:center}.woocommerce-page .components-modal__frame .components-button.is-button:disabled,.woocommerce-profile-wizard__body .components-button.is-button:disabled,.woocommerce-task-dashboard__container .components-button.is-button:disabled{cursor:not-allowed}.components-modal__header .components-button svg+span{display:none}.components-modal__frame.woocommerce-usage-modal{width:600px;max-width:100%}.components-modal__frame.woocommerce-usage-modal .components-modal__header{border-bottom:0;margin-bottom:0}.components-modal__frame.woocommerce-usage-modal .woocommerce-usage-modal__wrapper{flex-grow:1;display:flex;flex-direction:column}.components-modal__frame.woocommerce-usage-modal .woocommerce-usage-modal__wrapper a{color:#50575e}.components-modal__frame.woocommerce-usage-modal .woocommerce-usage-modal__wrapper button.is-primary{align-self:flex-end}.components-modal__frame.woocommerce-usage-modal .woocommerce-usage-modal__actions{display:flex;justify-content:flex-end;margin-top:16px}.components-modal__frame.woocommerce-usage-modal .woocommerce-usage-modal__actions button{margin-left:16px}.woocommerce-payments__usage-modal .components-modal__header{height:auto;padding:24px 24px 0}.woocommerce-payments__usage-modal .components-modal__header .components-modal__header-heading{font-size:24px;line-height:32px;margin:0 0 24px}.woocommerce-payments__usage-modal .woocommerce-payments__usage-modal-message{padding:16px 0;font-size:16px;line-height:24px}.woocommerce-payments__usage-modal .woocommerce-payments__usage-footer{display:flex;justify-content:flex-end;padding:16px 0}.woocommerce-payments__usage-modal .woocommerce-payments__usage-footer button{margin-left:16px}.components-modal__frame.woocommerce-cart-modal{width:600px;max-width:100%}.components-modal__frame.woocommerce-cart-modal .components-modal__header{border-bottom:0;margin-bottom:16px;margin-top:16px}.components-modal__frame.woocommerce-cart-modal .components-modal__header button{display:none}.components-modal__frame.woocommerce-cart-modal .components-modal__header-heading{font-style:normal;font-weight:400;font-size:24px;line-height:32px}.components-modal__frame.woocommerce-cart-modal .woocommerce-list{margin-top:4px}.components-modal__frame.woocommerce-cart-modal .woocommerce-list .woocommerce-list__item:first-child{border-top:1px solid #dcdcde}.components-modal__frame.woocommerce-cart-modal .woocommerce-list__item{border-bottom:1px solid #dcdcde}.components-modal__frame.woocommerce-cart-modal .woocommerce-cart-modal__help-text{font-size:16px;line-height:24px}.components-modal__frame.woocommerce-cart-modal .woocommerce-cart-modal__actions{text-align:right}.components-modal__frame.woocommerce-cart-modal .woocommerce-cart-modal__actions button.is-link{margin-right:16px;text-decoration:none;font-weight:600;font-size:14px}.components-modal__frame.woocommerce-cart-modal .woocommerce-cart-modal__actions button.is-primary{align-self:flex-end}.woocommerce-layout__header{background:#fff;box-sizing:border-box;padding:0;position:fixed;width:calc(100% - 160px);top:32px;z-index:1001}.woocommerce-layout__header.is-scrolled{box-shadow:0 8px 8px 0 rgba(85,93,102,.3)}.woocommerce-layout__header .woocommerce-layout__header-wrapper{display:flex;align-items:center;min-height:60px}@media (max-width:782px){.woocommerce-layout__header{flex-flow:row wrap;top:46px;width:100%}}@media (min-width:783px) and (max-width:960px){.woocommerce-layout__header{width:calc(100% - 36px)}}.woocommerce-layout__header .woocommerce-layout__header-breadcrumbs-wrapper{display:flex;justify-content:space-between;flex-direction:row}.woocommerce-layout__header .woocommerce-layout__header-heading{display:flex;align-items:center;padding:0 0 0 40px;padding:0 0 0 var(--large-gap);flex:1 auto;height:60px;background:#fff;font-weight:600;font-size:14px;text-transform:capitalize}.is-wp-toolbar-disabled .woocommerce-layout__header{top:0}.has-woocommerce-navigation .woocommerce-layout__header{left:0;width:100%}.woocommerce-page #contextual-help-link-wrap,.woocommerce-page #screen-options-link-wrap{margin-top:-1px}.wp-responsive-open .woocommerce-layout__header{margin-left:2px}.woocommerce-layout__activity-panel{display:flex;flex-direction:row;align-items:center;height:60px}@media (max-width:782px){.woocommerce-layout__activity-panel{position:absolute;top:100%;background:#fff;margin:0;padding:0;width:100vw;display:none;flex:1 100%;right:0}}@media (min-width:783px) and (max-width:960px){.woocommerce-layout__activity-panel{max-width:280px}}@media (min-width:1281px){.woocommerce-layout__activity-panel{max-width:400px}}.woocommerce-layout__activity-panel.is-mobile-open{display:flex}.woocommerce-layout__activity-panel-tabs{width:100%;display:flex;height:60px;justify-content:flex-end}.woocommerce-layout__activity-panel-tabs .dashicon,.woocommerce-layout__activity-panel-tabs .gridicon{width:100%}.woocommerce-layout__activity-panel-tabs svg{width:24px;height:24px}.woocommerce-layout__activity-panel-tabs svg.woocommerce-layout__activity-panel-tab-icon{fill:none}.woocommerce-layout__activity-panel-tabs svg.woocommerce-layout__activity-panel-tab-icon path,.woocommerce-layout__activity-panel-tabs svg.woocommerce-layout__activity-panel-tab-icon rect{stroke:currentColor}.woocommerce-layout__activity-panel-tabs svg.setup-progress path:first-child{stroke:"#DCDCDE"}.woocommerce-layout__activity-panel-tabs .woocommerce-layout__homescreen-display-options svg.woocommerce-layout__activity-panel-tab-icon{height:14px}.woocommerce-layout__activity-panel-tabs .components-icon-button{display:initial;text-indent:0;border-radius:0}.woocommerce-layout__activity-panel-tabs .components-icon-button.has-text svg{margin:0}.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab{display:flex;flex-direction:column;justify-content:center;align-items:center;position:relative;border:none;outline:none;cursor:pointer;background-color:#fff;max-width:-webkit-min-content;max-width:min-content;min-width:80px;width:100%;height:60px;color:#757575;white-space:nowrap}.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab:before{background-color:#007cba;background-color:var(--wp-admin-theme-color);bottom:0;content:"";height:0;opacity:0;transition-property:height,opacity;transition-duration:.3s;transition-timing-function:ease-in-out;left:0;position:absolute;right:0}.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab.is-active,.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab.is-opened{color:#1e1e1e;box-shadow:none}.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab.is-active:before,.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab.is-opened:before{height:3px;opacity:1}.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab.has-unread:after,.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab.woocommerce-layout__activity-panel-tab-wordpress-notices:after{content:" ";position:absolute;padding:1px;background:#d94f4f;border:2px solid #fff;width:4px;height:4px;display:inline-block;border-radius:50%;top:8px;left:50%}@media (min-width:783px) and (max-width:960px){.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab.has-unread:after,.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab.woocommerce-layout__activity-panel-tab-wordpress-notices:after{right:18px;left:auto;margin-left:0}}@media (min-width:961px){.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab.has-unread:after,.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab.woocommerce-layout__activity-panel-tab-wordpress-notices:after{right:28px;left:auto;margin-left:0}}.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab.components-button:not(:disabled):not([aria-disabled=true]):hover,.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab:hover{background-color:#f0f0f0;box-shadow:none}.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab.components-button:not(:disabled):not([aria-disabled=true]):hover.has-unread:after,.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab.components-button:not(:disabled):not([aria-disabled=true]):hover.woocommerce-layout__activity-panel-tab-wordpress-notices:after,.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab:hover.has-unread:after,.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab:hover.woocommerce-layout__activity-panel-tab-wordpress-notices:after{border-color:#e0e0e0}.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab.components-button:not(:disabled):not([aria-disabled=true]):focus,.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab:focus{box-shadow:inset -1px -1px 0 #757575,inset 1px 1px 0 #757575}@media (max-width:782px){.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab.display-options{display:none}}.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-popover{margin-top:0;z-index:1001}.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-popover .components-menu-group{padding:12px}.woocommerce-layout__activity-panel-mobile-toggle.components-button{margin-right:10px;max-width:48px}@media (min-width:783px){.woocommerce-layout__activity-panel-mobile-toggle.components-button{display:none;height:100%}}.wp-responsive-open .woocommerce-layout__activity-panel-mobile-toggle{display:none}.woocommerce-layout__activity-panel-toggle-bubble.has-unread:after{content:" ";position:absolute;padding:1px;background:#ca4a1f;border:2px solid #fff;width:4px;height:4px;display:inline-block;border-radius:50%;top:6px;right:4px}@keyframes tabSwitch{0%,to{transform:translateX(0)}50%{transform:translateX(100px)}}.woocommerce-layout__activity-panel-wrapper{height:calc(100vh - 166px);background:#f0f0f0;width:510px;transform:translateX(100%);transition-property:transform box-shadow;transition-duration:.3s;transition-timing-function:ease-in-out;position:fixed;right:0;top:166px;z-index:1000;overflow-x:hidden;overflow-y:auto}@media (max-width:782px){.woocommerce-layout__activity-panel-wrapper{width:100%}}@media screen and (prefers-reduced-motion:reduce){.woocommerce-layout__activity-panel-wrapper{transition-duration:1ms}}@media (min-width:783px){.woocommerce-layout__activity-panel-wrapper{height:calc(100vh - 92px);top:92px}}.has-woocommerce-navigation .woocommerce-layout__activity-panel-wrapper{height:calc(100vh - 120px);top:120px}@media (min-width:783px){.has-woocommerce-navigation .woocommerce-layout__activity-panel-wrapper{height:calc(100vh - 60px);top:60px}}.woocommerce-layout__activity-panel-wrapper.is-open{transform:none;box-shadow:0 12px 12px 0 rgba(85,93,102,.3)}.woocommerce-layout__activity-panel-wrapper.is-switching{animation:tabSwitch;animation-duration:.3s}@media screen and (prefers-reduced-motion:reduce){.woocommerce-layout__activity-panel-wrapper.is-switching{animation:none}}.woocommerce-layout__activity-panel-wrapper .woocommerce-empty-content{padding-left:24px;padding-right:24px}.woocommerce-layout__activity-panel-avatar-flag-overlay{position:relative;top:-12px}.woocommerce-layout__activity-panel-avatar-flag-overlay .woocommerce-flag{position:relative;top:16px;border:2px solid #fff}.woocommerce-layout__notice-list-hide{display:none}.highlight-tooltip__container{position:absolute;width:0;height:0}.highlight-tooltip__container.highlight-tooltip__show{top:0;left:0;width:100%;height:100%}.highlight-tooltip__portal{width:100%;height:100%;position:relative}.highlight-tooltip__portal .highlight-tooltip__overlay{position:fixed;top:0;right:0;bottom:0;left:0;background-color:rgba(0,0,0,.35);z-index:100000;animation:edit-post__fade-in-animation .2s ease-out 0s;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.highlight-tooltip__portal .highlight-tooltip__overlay{animation-duration:1ms}}.highlight-tooltip__popover .components-card{min-width:360px}.highlight-tooltip__popover .components-card__header{font-size:16px;font-size:1rem;font-weight:600;height:60px}.highlight-tooltip__popover .components-card__footer{justify-content:flex-end}.woocommerce-layout__show-app-banner{padding-top:56px}@media (min-width:783px){.woocommerce-layout__show-app-banner{padding-top:0}}.woocommerce-mobile-app-banner{background-color:#3c2861;width:100%;display:flex;height:56px;align-items:center;padding:0 6px 0 4px}@media (min-width:401px){.woocommerce-mobile-app-banner{padding:0 13px 0 10px}}@media (min-width:783px){.woocommerce-mobile-app-banner{display:none}}.woocommerce-mobile-app-banner .dashicon{fill:#fff;margin-right:10px}.woocommerce-mobile-app-banner .components-button.is-secondary{margin-left:auto;color:#fff;box-shadow:inset 0 0 0 1px #fff}.woocommerce-mobile-app-banner .components-button.is-secondary:active,.woocommerce-mobile-app-banner .components-button.is-secondary:hover{color:#fff;box-shadow:inset 0 0 0 1px #fff;background:none}.woocommerce-mobile-app-banner .woocommerce-mobile-app-banner__description{color:#fff;margin-left:8px}@media (min-width:401px){.woocommerce-mobile-app-banner .woocommerce-mobile-app-banner__description{margin-left:13px}}.woocommerce-mobile-app-banner .woocommerce-mobile-app-banner__description .woocommerce-mobile-app-banner__description__text{margin:0;font-size:10px}.woocommerce-mobile-app-banner .woocommerce-mobile-app-banner__description .woocommerce-mobile-app-banner__description__text:first-child{font-weight:700}@media (min-width:401px){.woocommerce-mobile-app-banner .woocommerce-mobile-app-banner__description .woocommerce-mobile-app-banner__description__text{margin-left:13px;font-size:13px}}.woocommerce-navigation{display:-ms-grid;display:grid;-ms-grid-rows:-webkit-min-content 1fr;-ms-grid-rows:min-content 1fr;grid-template-rows:-webkit-min-content 1fr;grid-template-rows:min-content 1fr;height:100%}.woocommerce-navigation h2>span{width:100%}.woocommerce-navigation .components-navigation__menu{overflow-y:auto;margin-bottom:0;padding-bottom:24px}.woocommerce-navigation .components-navigation__group+.components-navigation__group{margin-top:24px}.woocommerce-navigation .components-navigation__item{margin-bottom:0}.woocommerce-navigation .components-navigation__item a.components-button{padding:6px 16px}.woocommerce-navigation .components-navigation__item:not(:hover) a.components-button{color:#949494}.woocommerce-navigation .components-navigation__item.is-active a.components-button{color:#fff}.woocommerce-navigation .components-navigation{height:100%}.woocommerce-navigation .components-navigation>div{height:100%;display:-ms-grid;display:grid;-ms-grid-rows:1fr -webkit-min-content;-ms-grid-rows:1fr min-content;grid-template-rows:1fr -webkit-min-content;grid-template-rows:1fr min-content}.woocommerce-navigation.is-root .components-navigation__menu-secondary{border-top:1px solid #2c3338;margin:0 -8px;padding:16px 8px 12px}.woocommerce-navigation-header{display:flex;align-items:center;border:none;border-radius:0;height:auto}.woocommerce-navigation-header .woocommerce-navigation-header__site-icon.components-button{padding:12px;height:60px;color:#fff}.woocommerce-navigation-header .woocommerce-navigation-header__site-icon.components-button:focus,.woocommerce-navigation-header .woocommerce-navigation-header__site-icon.components-button:hover,.woocommerce-navigation-header .woocommerce-navigation-header__site-icon.components-button:not([aria-disabled=true]):active{color:#fff}.woocommerce-navigation-header .woocommerce-navigation-header__site-title.components-button{padding-left:0;color:#ccc;font-weight:600}.woocommerce-navigation-header .woocommerce-navigation-header__site-title.components-button:active,.woocommerce-navigation-header .woocommerce-navigation-header__site-title.components-button:focus,.woocommerce-navigation-header .woocommerce-navigation-header__site-title.components-button:hover{color:#e0e0e0}.woocommerce-navigation{position:relative;width:240px;box-sizing:border-box;background-color:#1e1e1e;z-index:1100}@media (max-width:960px){.woocommerce-navigation{width:60px;height:60px}}.woocommerce-navigation .components-navigation{box-sizing:border-box}.woocommerce-navigation__wrapper{background-color:#1e1e1e;position:absolute;top:60px;width:100%;height:calc(100vh - 92px);overflow-y:auto}.is-wp-toolbar-disabled .woocommerce-navigation__wrapper{height:calc(100vh - 60px)}body.is-wc-nav-expanded .woocommerce-navigation{width:240px;height:100%}body.is-wc-nav-folded .woocommerce-navigation{width:60px;height:60px;overflow:hidden}body.is-wc-nav-folded .woocommerce-navigation .woocommerce-navigation-header>*{display:none}body.is-wc-nav-folded .woocommerce-navigation .woocommerce-navigation-header__site-icon{display:block}body.is-wc-nav-folded .woocommerce-navigation .components-navigation{display:none}body.is-wc-nav-folded .woocommerce-transient-notices{left:16px}body.is-wc-nav-folded #wpbody{padding-left:0}.has-woocommerce-navigation #adminmenuback,.has-woocommerce-navigation #adminmenuwrap{display:none!important}.has-woocommerce-navigation.woocommerce_page_wc-settings .woo-nav-tab-wrapper,.has-woocommerce-navigation.woocommerce_page_wc-status .woo-nav-tab-wrapper{display:none}.has-woocommerce-navigation.woocommerce_page_wc-settings .woocommerce .subsubsub,.has-woocommerce-navigation.woocommerce_page_wc-status .woocommerce .subsubsub{font-size:14px;margin:5px 0}.has-woocommerce-navigation #wpcontent,.has-woocommerce-navigation #wpfooter{margin-left:0}@media (max-width:960px){.has-woocommerce-navigation #wpcontent,.has-woocommerce-navigation #wpfooter{margin-left:0}}.has-woocommerce-navigation #wpbody{padding-left:240px}@media (max-width:960px){.has-woocommerce-navigation #wpbody{padding-left:0}}.has-woocommerce-navigation .woocommerce-layout__header.is-embed-loading:before{content:"";position:fixed;width:240px;height:100%;background:#1e1e1e}@media (max-width:960px){.has-woocommerce-navigation .woocommerce-layout__header.is-embed-loading:before{width:60px;height:60px}}.has-woocommerce-navigation #woocommerce-embedded-root.is-embed-loading{margin-bottom:-32px}.has-woocommerce-navigation:not(.is-wp-toolbar-disabled) #wpbody-content{margin-top:32px}.woocommerce-navigation-category-title{display:flex;align-items:center}.woocommerce-navigation-category-title .woocommerce-navigation-favorite-button{margin-left:auto}.woocommerce-navigation-favorite-button.components-button .dashicon{margin:0}.woocommerce-navigation-favorite-button.components-button .dashicons-star-empty{color:#949494}.woocommerce-navigation-favorite-button.components-button .dashicons-star-filled{color:#ffb900}:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-20:#005a87}body.admin-color-light{--wp-admin-theme-color:#0085ba;--wp-admin-theme-color-darker-10:#0073a1;--wp-admin-theme-color-darker-20:#006187}body.admin-color-modern{--wp-admin-theme-color:#3858e9;--wp-admin-theme-color-darker-10:#2145e6;--wp-admin-theme-color-darker-20:#183ad6}body.admin-color-blue{--wp-admin-theme-color:#096484;--wp-admin-theme-color-darker-10:#07526c;--wp-admin-theme-color-darker-20:#064054}body.admin-color-coffee{--wp-admin-theme-color:#46403c;--wp-admin-theme-color-darker-10:#383330;--wp-admin-theme-color-darker-20:#2b2724}body.admin-color-ectoplasm{--wp-admin-theme-color:#523f6d;--wp-admin-theme-color-darker-10:#46365d;--wp-admin-theme-color-darker-20:#3a2c4d}body.admin-color-midnight{--wp-admin-theme-color:#e14d43;--wp-admin-theme-color-darker-10:#dd382d;--wp-admin-theme-color-darker-20:#d02c21}body.admin-color-ocean{--wp-admin-theme-color:#627c83;--wp-admin-theme-color-darker-10:#576e74;--wp-admin-theme-color-darker-20:#4c6066}body.admin-color-sunrise{--wp-admin-theme-color:#dd823b;--wp-admin-theme-color-darker-10:#d97426;--wp-admin-theme-color-darker-20:#c36922}.woocommerce-transient-notices{position:fixed;bottom:12px;left:176px;z-index:99999}@media (max-width:960px){.woocommerce-transient-notices{left:50px}}@media (max-width:782px){.woocommerce-transient-notices{left:16px}}.woocommerce-profile-wizard__body .woocommerce-transient-notices{left:unset}.woocommerce-profile-wizard__body .woocommerce-transient-notices .components-snackbar{margin-left:auto;margin-right:auto}.components-snackbar.components-snackbar-explicit-dismiss{cursor:default}.components-snackbar .components-snackbar__content-with-icon{margin-left:32px}.components-snackbar .components-snackbar__icon{position:absolute;top:24px;left:26px}.components-snackbar .components-snackbar__dismiss-button{margin-left:32px;cursor:pointer}
dist/app/style.rtl.css CHANGED
@@ -1 +1 @@
1
- .woocommerce-page .wrap{margin:0}.woocommerce-page #wpcontent,.woocommerce-page.woocommerce_page_wc-admin #wpbody-content{padding:0;overflow-x:hidden!important;min-height:calc(100vh - 32px)}@media (min-width:783px){.woocommerce-page #wpbody-content{padding-right:0}}@media (max-width:782px){.woocommerce-page .wp-responsive-open #woocommerce-embedded-root,.woocommerce-page .wp-responsive-open #wpbody{position:relative;left:-14.5em}.woocommerce-page #wpbody-content,.woocommerce-page #wpcontent{min-height:calc(100vh - 46px)}}@media (min-width:961px){.woocommerce-page #toplevel_page_wcadmin--analytics.menu-top>a:focus,.woocommerce-page #toplevel_page_woocommerce.menu-top>a:focus{padding-bottom:1px}}.woocommerce-layout *{box-sizing:border-box}#wpfooter{display:none}.woocommerce_page_wc-admin .wp-responsive-open .woocommerce-layout__header{margin-right:2px}.woocommerce_page_wc-admin .woocommerce-filters-date__content:not(.is-mobile){z-index:2}@media (max-width:600px){#wpadminbar{position:fixed}}@media (max-width:782px){.jetpack-masterbar #wpadminbar #wp-admin-bar-menu-toggle{margin-top:-10px}.jetpack-masterbar #wpwrap .woocommerce-layout__header-heading{padding-right:60px}.jetpack-masterbar.wp-admin .wrap h1,.jetpack-masterbar.wp-admin .wrap h2{padding-right:0}}.woocommerce-page .wp-has-current-submenu:after{left:0;content:" ";height:0;width:0;position:absolute;pointer-events:none;border:8px solid transparent;border-left-color:#f1f1f1;top:0;margin-top:10px}@media (max-width:960px){.woocommerce-page .wp-has-current-submenu:after{border-width:4px;margin-top:14px}}:root{--large-gap:40px;--main-gap:24px}@media (max-width:960px){:root{--large-gap:24px}}@media (max-width:782px){:root{--large-gap:16px;--main-gap:16px}}@keyframes loading-fade{0%{opacity:.7}50%{opacity:1}to{opacity:.7}}.woocommerce-layout select:hover{color:#1e1e1e}.woocommerce-layout select.components-select-control__input{max-width:100%;line-height:1}body.woocommerce-page .components-button.is-primary:not(:disabled),body.woocommerce-page .components-snackbar .components-button.is-tertiary,body.woocommerce-page .components-snackbar .components-button.is-tertiary:not(:disabled):not([aria-disabled=true]):hover{color:#fff}.woocommerce-embed-page #wpbody .woocommerce-layout,.woocommerce-embed-page .woocommerce-layout__notice-list-hide+.wrap{padding-top:70px}.woocommerce-embed-page #wpbody-content,.woocommerce-embed-page #wpcontent{overflow-x:initial!important}.woocommerce-embed-page #wpbody-content{padding-top:0}.woocommerce-embed-page #wpbody-content .notice{margin-top:15px}.woocommerce-embed-page .wrap{padding:0 20px}@media (max-width:782px){.woocommerce-embed-page .wrap p.search-box{width:calc(100% - 40px)}}.woocommerce-embed-page .wrap .wrap{padding:0}.woocommerce-embed-page #woocommerce-embedded-root.is-embed-loading+#wpbody .wrap{padding-top:100px}@media (max-width:782px){.woocommerce-embed-page #woocommerce-embedded-root.is-embed-loading+#wpbody .wrap{padding-top:30px}}.woocommerce-embed-page #screen-meta,.woocommerce-embed-page #screen-meta-links{top:60px}.woocommerce-embed-page #screen-meta{border-left:0;margin:0}.woocommerce-embed-page #screen-meta-links{position:relative}.woocommerce-embed-page .notice{padding:1px 12px}.woocommerce-embed-page .woocommerce-layout__header.is-scrolled{box-shadow:0 8px 16px 0 rgba(85,93,102,.3)}.woocommerce-embed-page .woocommerce-layout__header .woocommerce-layout__header-heading{margin-top:0;margin-bottom:0}.woocommerce-embed-page #screen-meta-links.is-hidden-by-notices,.woocommerce-embed-page #screen-meta.is-hidden-by-notices{display:none!important}.woocommerce-embed-page .woocommerce-layout__primary{margin:0}@media (max-width:782px){.woocommerce-embed-page .woocommerce-layout__primary{padding-top:10px}}@keyframes isLoaded{0%{opacity:0}to{opacity:1}}.woocommerce-embed-page .woocommerce-layout__activity-panel-tabs{animation:isLoaded;animation-duration:2s}.woocommerce-embed-page .woocommerce-layout__notice-list-show{margin-top:10px;margin-bottom:16px}@media (max-width:600px){.woocommerce-embed-page .woocommerce-layout__notice-list-show{margin-top:80px;margin-bottom:-16px}}@media (min-width:601px) and (max-width:782px){.woocommerce-embed-page .woocommerce-layout__notice-list-show{margin-top:32px}}@media (min-width:783px){.woocommerce-embed-page .woocommerce-layout__activity-panel-mobile-toggle{display:none}}.woocommerce-embed-page .woocommerce-activity-card__actions a.components-button:not(.is-primary){color:#757575}.woocommerce-layout{margin:0;padding:0}.woocommerce-layout__primary{margin:80px 40px 0 0;margin:80px var(--large-gap) 0 0}@media (min-width:961px){.woocommerce-layout__primary{margin-top:100px}}@media (max-width:782px){.woocommerce-layout__primary{margin-top:60px}}.woocommerce-layout .woocommerce-layout__main{padding-left:40px;padding-left:var(--large-gap);max-width:100%}.woocommerce-admin-is-loading #adminmenumain,.woocommerce-admin-is-loading #wpadminbar,.woocommerce-admin-is-loading #wpbody-content,.woocommerce-admin-is-loading #wpcontent,.woocommerce-admin-is-loading #wpfooter,.woocommerce-admin-is-loading .components-modal__screen-overlay,.woocommerce-admin-is-loading .error,.woocommerce-admin-is-loading .notice,.woocommerce-admin-is-loading .update-nag,.woocommerce-admin-is-loading .updated,.woocommerce-admin-is-loading .woocommerce-layout__header,.woocommerce-admin-is-loading .woocommerce-message,.woocommerce-admin-is-loading .woocommerce-store-alerts,.woocommerce-page .update-nag{display:none}.woocommerce-admin-full-screen{background:#f6f7f7;color:#50575e;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;margin-top:-32px}.woocommerce-admin-full-screen #wpwrap{top:0}.woocommerce-admin-full-screen #wpbody-content{min-height:100vh}.woocommerce-admin-full-screen #adminmenumain,.woocommerce-admin-full-screen #wpcontent>*,.woocommerce-admin-full-screen .error,.woocommerce-admin-full-screen .notice,.woocommerce-admin-full-screen .update-nag,.woocommerce-admin-full-screen .updated,.woocommerce-admin-full-screen .woocommerce-layout__header,.woocommerce-admin-full-screen .woocommerce-message,.woocommerce-admin-full-screen .woocommerce-store-alerts{display:none}.woocommerce-admin-full-screen #wpcontent{margin-right:0!important}.woocommerce-admin-full-screen #wpcontent>#wpbody{display:block}.woocommerce-onboarding .muriel-component{margin-top:16px;margin-bottom:16px}.woocommerce-onboarding .components-base-control.has-error{margin-bottom:32px!important;border-color:#d63638}@media (max-width:782px){.woocommerce-onboarding .components-base-control.has-error{margin-bottom:44px!important}}.woocommerce-onboarding .components-base-control.has-error .components-base-control__help{top:100%;right:12px;position:absolute;margin-top:4px;font-size:12px;font-style:normal;color:#d63638}.woocommerce-onboarding .components-form-toggle{display:inline-block}.woocommerce-onboarding .components-form-toggle label{font-size:14px}.woocommerce-onboarding .components-form-toggle .components-base-control{display:inline-block}.woocommerce-onboarding .components-form-toggle .components-base-control__field{margin-bottom:0}.woocommerce-page .components-modal__frame .components-button.is-button,.woocommerce-profile-wizard__body .components-button.is-button,.woocommerce-task-dashboard__container .components-button.is-button{height:48px;padding-right:25px;padding-left:25px;text-align:center;font-size:14px;line-height:36px;font-weight:500;align-items:center}.woocommerce-page .components-modal__frame .components-button.is-button:disabled,.woocommerce-profile-wizard__body .components-button.is-button:disabled,.woocommerce-task-dashboard__container .components-button.is-button:disabled{cursor:not-allowed}.components-modal__frame.woocommerce-usage-modal{width:600px;max-width:100%}.components-modal__frame.woocommerce-usage-modal .components-modal__header{border-bottom:0;margin-bottom:0}.components-modal__frame.woocommerce-usage-modal .woocommerce-usage-modal__wrapper{flex-grow:1;display:flex;flex-direction:column}.components-modal__frame.woocommerce-usage-modal .woocommerce-usage-modal__wrapper a{color:#50575e}.components-modal__frame.woocommerce-usage-modal .woocommerce-usage-modal__wrapper button.is-primary{align-self:flex-end}.components-modal__frame.woocommerce-usage-modal .woocommerce-usage-modal__actions{display:flex;justify-content:flex-end;margin-top:16px}.components-modal__frame.woocommerce-usage-modal .woocommerce-usage-modal__actions button{margin-right:16px}.woocommerce-payments__usage-modal .components-modal__header{height:auto;padding:24px 24px 0}.woocommerce-payments__usage-modal .components-modal__header .components-modal__header-heading{font-size:24px;line-height:32px;margin:0 0 24px}.woocommerce-payments__usage-modal .woocommerce-payments__usage-modal-message{padding:16px 0;font-size:16px;line-height:24px}.woocommerce-payments__usage-modal .woocommerce-payments__usage-footer{display:flex;justify-content:flex-end;padding:16px 0}.woocommerce-payments__usage-modal .woocommerce-payments__usage-footer button{margin-right:16px}.components-modal__frame.woocommerce-cart-modal{width:600px;max-width:100%}.components-modal__frame.woocommerce-cart-modal .components-modal__header{border-bottom:0;margin-bottom:16px;margin-top:16px}.components-modal__frame.woocommerce-cart-modal .components-modal__header button{display:none}.components-modal__frame.woocommerce-cart-modal .components-modal__header-heading{font-style:normal;font-weight:400;font-size:24px;line-height:32px}.components-modal__frame.woocommerce-cart-modal .woocommerce-list{margin-top:4px}.components-modal__frame.woocommerce-cart-modal .woocommerce-list .woocommerce-list__item:first-child{border-top:1px solid #dcdcde}.components-modal__frame.woocommerce-cart-modal .woocommerce-list__item{border-bottom:1px solid #dcdcde}.components-modal__frame.woocommerce-cart-modal .woocommerce-cart-modal__help-text{font-size:16px;line-height:24px}.components-modal__frame.woocommerce-cart-modal .woocommerce-cart-modal__actions{text-align:left}.components-modal__frame.woocommerce-cart-modal .woocommerce-cart-modal__actions button.is-link{margin-left:16px;text-decoration:none;font-weight:600;font-size:14px}.components-modal__frame.woocommerce-cart-modal .woocommerce-cart-modal__actions button.is-primary{align-self:flex-end}.woocommerce-layout__header{background:#fff;box-sizing:border-box;padding:0;min-height:60px;position:fixed;width:100%;top:32px;z-index:1001}.woocommerce-layout__header.is-scrolled{box-shadow:0 8px 8px 0 rgba(85,93,102,.3)}@media (max-width:782px){.woocommerce-layout__header{flex-flow:row wrap;top:46px}}.woocommerce-layout__header .woocommerce-layout__header-breadcrumbs-wrapper{display:flex;justify-content:space-between;flex-direction:row}.woocommerce-layout__header .woocommerce-layout__header-heading{display:flex;align-items:center;padding:0 40px 0 0;padding:0 var(--large-gap) 0 0;flex:1 auto;height:60px;line-height:60px;background:#fff;font-weight:600;font-size:14px;text-transform:capitalize}.has-woocommerce-navigation .woocommerce-layout__header{top:0}.woocommerce-page #contextual-help-link-wrap,.woocommerce-page #screen-options-link-wrap{margin-top:-1px}.woocommerce-layout__activity-panel{display:flex;flex-direction:row;align-items:center;position:fixed;left:0;top:32px;height:60px}@media (max-width:782px){.woocommerce-layout__activity-panel{position:relative;background:#fff;margin:0;padding:0;width:100vw;display:none;flex:1 100%}}@media (min-width:783px) and (max-width:960px){.woocommerce-layout__activity-panel{max-width:280px}}@media (min-width:1281px){.woocommerce-layout__activity-panel{max-width:400px}}.woocommerce-layout__activity-panel.is-mobile-open{display:flex}.woocommerce-layout__activity-panel-tabs{width:100%;display:flex;height:60px;justify-content:flex-end}.woocommerce-layout__activity-panel-tabs .dashicon,.woocommerce-layout__activity-panel-tabs .gridicon{width:100%}.woocommerce-layout__activity-panel-tabs svg{width:24px;height:24px}.woocommerce-layout__activity-panel-tabs svg.woocommerce-layout__activity-panel-tab-icon{fill:none}.woocommerce-layout__activity-panel-tabs svg.woocommerce-layout__activity-panel-tab-icon path,.woocommerce-layout__activity-panel-tabs svg.woocommerce-layout__activity-panel-tab-icon rect{stroke:currentColor}.woocommerce-layout__activity-panel-tabs svg.setup-progress path:first-child{stroke:"#DCDCDE"}.woocommerce-layout__activity-panel-tabs .woocommerce-layout__homescreen-display-options svg.woocommerce-layout__activity-panel-tab-icon{height:14px}.woocommerce-layout__activity-panel-tabs .components-icon-button{display:initial;text-indent:0;border-radius:0}.woocommerce-layout__activity-panel-tabs .components-icon-button.has-text svg{margin:0}.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab{display:flex;flex-direction:column;justify-content:center;align-items:center;position:relative;border:none;outline:none;cursor:pointer;background-color:#fff;max-width:-webkit-min-content;max-width:min-content;min-width:80px;width:100%;height:60px;color:#757575;white-space:nowrap}.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab:before{background-color:#007cba;background-color:var(--wp-admin-theme-color);bottom:0;content:"";height:0;opacity:0;transition-property:height,opacity;transition-duration:.3s;transition-timing-function:ease-in-out;right:0;position:absolute;left:0}.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab.is-active,.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab.is-opened{color:#1e1e1e;box-shadow:none}.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab.is-active:before,.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab.is-opened:before{height:3px;opacity:1}.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab.has-unread:after,.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab.woocommerce-layout__activity-panel-tab-wordpress-notices:after{content:" ";position:absolute;padding:1px;background:#d94f4f;border:2px solid #fff;width:4px;height:4px;display:inline-block;border-radius:50%;top:8px;right:50%}@media (min-width:783px) and (max-width:960px){.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab.has-unread:after,.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab.woocommerce-layout__activity-panel-tab-wordpress-notices:after{left:18px;right:auto;margin-right:0}}@media (min-width:961px){.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab.has-unread:after,.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab.woocommerce-layout__activity-panel-tab-wordpress-notices:after{left:28px;right:auto;margin-right:0}}.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab.components-button:not(:disabled):not([aria-disabled=true]):hover,.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab:hover{background-color:#f0f0f0;box-shadow:none}.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab.components-button:not(:disabled):not([aria-disabled=true]):hover.has-unread:after,.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab.components-button:not(:disabled):not([aria-disabled=true]):hover.woocommerce-layout__activity-panel-tab-wordpress-notices:after,.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab:hover.has-unread:after,.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab:hover.woocommerce-layout__activity-panel-tab-wordpress-notices:after{border-color:#e0e0e0}.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab.components-button:not(:disabled):not([aria-disabled=true]):focus,.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab:focus{box-shadow:inset 1px -1px 0 #757575,inset -1px 1px 0 #757575}@media (max-width:782px){.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab.display-options{display:none}}.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-popover{margin-top:0;z-index:1001}.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-popover .components-menu-group{padding:12px}.woocommerce-layout__activity-panel-mobile-toggle{margin-left:10px;max-width:48px;height:60px;position:absolute;left:0;bottom:0}@media (min-width:783px){.woocommerce-layout__activity-panel-mobile-toggle{display:none}}.wp-responsive-open .woocommerce-layout__activity-panel-mobile-toggle{display:none}.woocommerce-layout__activity-panel-toggle-bubble.has-unread:after{content:" ";position:absolute;padding:1px;background:#ca4a1f;border:2px solid #fff;width:4px;height:4px;display:inline-block;border-radius:50%;top:6px;left:4px}@keyframes tabSwitch{0%,to{transform:translateX(0)}50%{transform:translateX(-100px)}}.woocommerce-layout__activity-panel-wrapper{height:calc(100vh - 166px);background:#f0f0f0;width:510px;transform:translateX(-100%);transition-property:transform box-shadow;transition-duration:.3s;transition-timing-function:ease-in-out;position:fixed;left:0;top:166px;z-index:1000;overflow-x:hidden;overflow-y:auto}@media (max-width:782px){.woocommerce-layout__activity-panel-wrapper{width:100%}}@media screen and (prefers-reduced-motion:reduce){.woocommerce-layout__activity-panel-wrapper{transition-duration:1ms}}@media (min-width:783px){.woocommerce-layout__activity-panel-wrapper{height:calc(100vh - 92px);top:92px}}.has-woocommerce-navigation .woocommerce-layout__activity-panel-wrapper{height:calc(100vh - 120px);top:120px}@media (min-width:783px){.has-woocommerce-navigation .woocommerce-layout__activity-panel-wrapper{height:calc(100vh - 60px);top:60px}}.woocommerce-layout__activity-panel-wrapper.is-open{transform:none;box-shadow:0 12px 12px 0 rgba(85,93,102,.3)}.woocommerce-layout__activity-panel-wrapper.is-switching{animation:tabSwitch;animation-duration:.3s}@media screen and (prefers-reduced-motion:reduce){.woocommerce-layout__activity-panel-wrapper.is-switching{animation:none}}.woocommerce-layout__activity-panel-wrapper .woocommerce-empty-content{padding-right:24px;padding-left:24px}.woocommerce-layout__activity-panel-avatar-flag-overlay{position:relative;top:-12px}.woocommerce-layout__activity-panel-avatar-flag-overlay .woocommerce-flag{position:relative;top:16px;border:2px solid #fff}.woocommerce-layout__notice-list-hide{display:none}.has-woocommerce-navigation .woocommerce-layout__activity-panel{top:0}.highlight-tooltip__container{position:absolute;width:0;height:0}.highlight-tooltip__container.highlight-tooltip__show{top:0;right:0;width:100%;height:100%}.highlight-tooltip__portal{width:100%;height:100%;position:relative}.highlight-tooltip__portal .highlight-tooltip__overlay{position:fixed;top:0;left:0;bottom:0;right:0;background-color:rgba(0,0,0,.35);z-index:100000;animation:edit-post__fade-in-animation .2s ease-out 0s;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.highlight-tooltip__portal .highlight-tooltip__overlay{animation-duration:1ms}}.highlight-tooltip__popover .components-card{min-width:360px}.highlight-tooltip__popover .components-card__header{font-size:16px;font-size:1rem;font-weight:600;height:60px}.highlight-tooltip__popover .components-card__footer{justify-content:flex-end}.woocommerce-layout__show-app-banner{padding-top:56px}@media (min-width:783px){.woocommerce-layout__show-app-banner{padding-top:0}}.woocommerce-mobile-app-banner{background-color:#3c2861;width:100%;display:flex;height:56px;align-items:center;padding:0 4px 0 6px}@media (min-width:401px){.woocommerce-mobile-app-banner{padding:0 10px 0 13px}}@media (min-width:783px){.woocommerce-mobile-app-banner{display:none}}.woocommerce-mobile-app-banner .dashicon{fill:#fff;margin-left:10px}.woocommerce-mobile-app-banner .components-button.is-secondary{margin-right:auto;color:#fff;box-shadow:inset 0 0 0 1px #fff}.woocommerce-mobile-app-banner .components-button.is-secondary:active,.woocommerce-mobile-app-banner .components-button.is-secondary:hover{color:#fff;box-shadow:inset 0 0 0 1px #fff;background:none}.woocommerce-mobile-app-banner .woocommerce-mobile-app-banner__description{color:#fff;margin-right:8px}@media (min-width:401px){.woocommerce-mobile-app-banner .woocommerce-mobile-app-banner__description{margin-right:13px}}.woocommerce-mobile-app-banner .woocommerce-mobile-app-banner__description .woocommerce-mobile-app-banner__description__text{margin:0;font-size:10px}.woocommerce-mobile-app-banner .woocommerce-mobile-app-banner__description .woocommerce-mobile-app-banner__description__text:first-child{font-weight:700}@media (min-width:401px){.woocommerce-mobile-app-banner .woocommerce-mobile-app-banner__description .woocommerce-mobile-app-banner__description__text{margin-right:13px;font-size:13px}}.woocommerce-transient-notices{position:fixed;bottom:12px;right:176px;z-index:99999}@media (max-width:960px){.woocommerce-transient-notices{right:50px}}@media (max-width:782px){.woocommerce-transient-notices{right:16px}}.woocommerce-profile-wizard__body .woocommerce-transient-notices{right:unset}.woocommerce-profile-wizard__body .woocommerce-transient-notices .components-snackbar{margin-right:auto;margin-left:auto}.components-snackbar.components-snackbar-explicit-dismiss{cursor:default}.components-snackbar .components-snackbar__content-with-icon{margin-right:32px}.components-snackbar .components-snackbar__icon{position:absolute;top:24px;right:26px}.components-snackbar .components-snackbar__dismiss-button{margin-right:32px;cursor:pointer}:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-20:#005a87}body.admin-color-light{--wp-admin-theme-color:#0085ba;--wp-admin-theme-color-darker-10:#0073a1;--wp-admin-theme-color-darker-20:#006187}body.admin-color-modern{--wp-admin-theme-color:#3858e9;--wp-admin-theme-color-darker-10:#2145e6;--wp-admin-theme-color-darker-20:#183ad6}body.admin-color-blue{--wp-admin-theme-color:#096484;--wp-admin-theme-color-darker-10:#07526c;--wp-admin-theme-color-darker-20:#064054}body.admin-color-coffee{--wp-admin-theme-color:#46403c;--wp-admin-theme-color-darker-10:#383330;--wp-admin-theme-color-darker-20:#2b2724}body.admin-color-ectoplasm{--wp-admin-theme-color:#523f6d;--wp-admin-theme-color-darker-10:#46365d;--wp-admin-theme-color-darker-20:#3a2c4d}body.admin-color-midnight{--wp-admin-theme-color:#e14d43;--wp-admin-theme-color-darker-10:#dd382d;--wp-admin-theme-color-darker-20:#d02c21}body.admin-color-ocean{--wp-admin-theme-color:#627c83;--wp-admin-theme-color-darker-10:#576e74;--wp-admin-theme-color-darker-20:#4c6066}body.admin-color-sunrise{--wp-admin-theme-color:#dd823b;--wp-admin-theme-color-darker-10:#d97426;--wp-admin-theme-color-darker-20:#c36922}.woocommerce-navigation h2{color:inherit}.woocommerce-navigation .components-navigation__menu{display:flex;flex-direction:column;height:100%}.woocommerce-navigation .components-navigation__group+.components-navigation__group{margin-top:24px}.woocommerce-navigation .components-navigation__item{margin-bottom:0}.woocommerce-navigation .components-navigation__item a.components-button{padding:6px 16px}.woocommerce-navigation .components-navigation__item:not(:hover) a.components-button{color:#949494}.woocommerce-navigation .components-navigation__item.is-active a.components-button{color:#fff}.woocommerce-navigation .woocommerce-navigation__back-to-dashboard{margin-top:24px}.woocommerce-navigation-header{display:flex;align-items:center;border:none;border-radius:0;height:auto}.woocommerce-navigation-header .woocommerce-navigation-header__site-icon.components-button{padding:12px;height:60px;color:#fff}.woocommerce-navigation-header .woocommerce-navigation-header__site-icon.components-button:focus,.woocommerce-navigation-header .woocommerce-navigation-header__site-icon.components-button:hover,.woocommerce-navigation-header .woocommerce-navigation-header__site-icon.components-button:not([aria-disabled=true]):active{color:#fff}.woocommerce-navigation-header .woocommerce-navigation-header__site-title.components-button{padding-right:0;color:#ccc;font-weight:600}.woocommerce-navigation-header .woocommerce-navigation-header__site-title.components-button:active,.woocommerce-navigation-header .woocommerce-navigation-header__site-title.components-button:focus,.woocommerce-navigation-header .woocommerce-navigation-header__site-title.components-button:hover{color:#e0e0e0}.has-woocommerce-navigation{margin-top:-32px}.has-woocommerce-navigation .screen-reader-shortcut:focus{top:7px}.has-woocommerce-navigation #adminmenuback,.has-woocommerce-navigation #adminmenuwrap,.has-woocommerce-navigation #wpadminbar{display:none!important}.has-woocommerce-navigation.woocommerce_page_wc-settings .woo-nav-tab-wrapper,.has-woocommerce-navigation.woocommerce_page_wc-status .woo-nav-tab-wrapper{display:none}.has-woocommerce-navigation.woocommerce_page_wc-settings .woocommerce .subsubsub,.has-woocommerce-navigation.woocommerce_page_wc-status .woocommerce .subsubsub{font-size:14px;margin:5px 0}.has-woocommerce-navigation #wpcontent,.has-woocommerce-navigation #wpfooter{margin-right:240px}@media (max-width:960px){.has-woocommerce-navigation #wpcontent,.has-woocommerce-navigation #wpfooter{margin-right:0}}.has-woocommerce-navigation #woocommerce-embedded-navigation{position:fixed;top:0;right:0;width:240px;height:100%;box-sizing:border-box;background-color:#1e1e1e;z-index:1100}@media (max-width:960px){.has-woocommerce-navigation #woocommerce-embedded-navigation{width:60px;height:60px}}.has-woocommerce-navigation .woocommerce-navigation__wrapper{overflow-y:auto;height:calc(100vh - 60px)}.has-woocommerce-navigation .components-navigation{box-sizing:border-box}.has-woocommerce-navigation.is-wc-nav-expanded #woocommerce-embedded-navigation{width:240px;height:100%}.has-woocommerce-navigation.is-wc-nav-folded #wpcontent,.has-woocommerce-navigation.is-wc-nav-folded #wpfooter{margin-right:0}.has-woocommerce-navigation.is-wc-nav-folded .woocommerce-layout__header{margin-right:60px}.has-woocommerce-navigation.is-wc-nav-folded #woocommerce-embedded-navigation{width:60px;height:60px}.has-woocommerce-navigation.is-wc-nav-folded #woocommerce-embedded-navigation .woocommerce-navigation-header.is-scrolled{box-shadow:0 8px 8px 0 rgba(85,93,102,.3)}.has-woocommerce-navigation.is-wc-nav-folded #woocommerce-embedded-navigation .woocommerce-navigation-header>*{display:none}.has-woocommerce-navigation.is-wc-nav-folded #woocommerce-embedded-navigation .woocommerce-navigation-header__site-icon{display:block}.has-woocommerce-navigation.is-wc-nav-folded #woocommerce-embedded-navigation .components-navigation{display:none}.has-woocommerce-navigation.is-wc-nav-folded .woocommerce-transient-notices{right:16px}.has-woocommerce-navigation .woocommerce-transient-notices{right:256px}@media (max-width:782px){.has-woocommerce-navigation .woocommerce-transient-notices{right:16px}}
1
+ .woocommerce-page .wrap{margin:0}.woocommerce-page #wpcontent,.woocommerce-page.woocommerce_page_wc-admin #wpbody-content{padding:0;overflow-x:hidden!important;min-height:calc(100vh - 32px)}@media (min-width:783px){.woocommerce-page #wpbody-content{padding-right:0}}@media (max-width:782px){.woocommerce-page .wp-responsive-open #woocommerce-embedded-root,.woocommerce-page .wp-responsive-open #wpbody{position:relative;left:-14.5em}.woocommerce-page #wpbody-content,.woocommerce-page #wpcontent{min-height:calc(100vh - 46px)}}@media (min-width:961px){.woocommerce-page #toplevel_page_wcadmin--analytics.menu-top>a:focus,.woocommerce-page #toplevel_page_woocommerce.menu-top>a:focus{padding-bottom:1px}}#wpbody,.woocommerce-layout *{box-sizing:border-box}#wpbody{display:inline-block;width:100%;padding-top:0;margin-top:60px}#wpfooter{display:none}.woocommerce_page_wc-admin .woocommerce-filters-date__content:not(.is-mobile){z-index:2}@media (max-width:600px){#wpadminbar{position:fixed}html.wp-toolbar{padding-top:46px}}@media (max-width:782px){.jetpack-masterbar #wpadminbar #wp-admin-bar-menu-toggle{margin-top:-10px}.jetpack-masterbar #wpwrap .woocommerce-layout__header-heading{padding-right:60px}.jetpack-masterbar.wp-admin .wrap h1,.jetpack-masterbar.wp-admin .wrap h2{padding-right:0}}.woocommerce-page .wp-has-current-submenu:after{left:0;content:" ";height:0;width:0;position:absolute;pointer-events:none;border:8px solid transparent;border-left-color:#f1f1f1;top:0;margin-top:10px}@media (max-width:960px){.woocommerce-page .wp-has-current-submenu:after{border-width:4px;margin-top:14px}}:root{--large-gap:40px;--main-gap:24px}@media (max-width:960px){:root{--large-gap:24px}}@media (max-width:782px){:root{--large-gap:16px;--main-gap:16px}}@keyframes loading-fade{0%{opacity:.7}50%{opacity:1}to{opacity:.7}}.woocommerce-layout select:hover{color:#1e1e1e}.woocommerce-layout select.components-select-control__input{max-width:100%;line-height:1}body.woocommerce-page .components-button.is-primary:not(:disabled),body.woocommerce-page .components-snackbar .components-button.is-tertiary,body.woocommerce-page .components-snackbar .components-button.is-tertiary:not(:disabled):not([aria-disabled=true]):hover{color:#fff}.woocommerce-embed-page #wpbody .woocommerce-layout,.woocommerce-embed-page .woocommerce-layout__notice-list-hide+.wrap{padding-top:10px}.woocommerce-embed-page #wpbody-content,.woocommerce-embed-page #wpcontent{overflow-x:initial!important}.woocommerce-embed-page #wpbody-content{padding-top:0}.woocommerce-embed-page #wpbody-content .notice{margin-top:15px}.woocommerce-embed-page .wrap{padding:0 20px}@media (max-width:782px){.woocommerce-embed-page .wrap p.search-box{width:calc(100% - 40px)}}.woocommerce-embed-page .wrap .wrap{padding:0}.woocommerce-embed-page #screen-meta{border-left:0;margin:0}.woocommerce-embed-page #screen-meta-links{position:relative}.woocommerce-embed-page .notice{padding:1px 12px}.woocommerce-embed-page .woocommerce-layout__header.is-scrolled{box-shadow:0 8px 16px 0 rgba(85,93,102,.3)}.woocommerce-embed-page .woocommerce-layout__header .woocommerce-layout__header-heading{margin-top:0;margin-bottom:0}.woocommerce-embed-page #screen-meta-links.is-hidden-by-notices,.woocommerce-embed-page #screen-meta.is-hidden-by-notices{display:none!important}.woocommerce-embed-page .woocommerce-layout__primary{margin:0}@media (max-width:782px){.woocommerce-embed-page .woocommerce-layout__primary{padding-top:10px}}@keyframes isLoaded{0%{opacity:0}to{opacity:1}}.woocommerce-embed-page .woocommerce-layout__activity-panel-tabs{animation:isLoaded;animation-duration:2s}.woocommerce-embed-page .woocommerce-layout__notice-list-show{margin-top:10px;margin-bottom:16px}@media (max-width:600px){.woocommerce-embed-page .woocommerce-layout__notice-list-show{margin-top:80px;margin-bottom:-16px}}@media (min-width:601px) and (max-width:782px){.woocommerce-embed-page .woocommerce-layout__notice-list-show{margin-top:32px}}.woocommerce-embed-page .woocommerce-activity-card__actions a.components-button:not(.is-primary){color:#757575}.woocommerce-layout{margin:0;padding:0}.woocommerce-layout__primary{margin:var(--large-gap) var(--large-gap) 0 0}@media (max-width:782px){.woocommerce-layout__primary{margin-top:20px}}.woocommerce-layout .woocommerce-layout__main{padding-left:40px;padding-left:var(--large-gap);max-width:100%}.woocommerce-admin-is-loading #adminmenumain,.woocommerce-admin-is-loading #wpadminbar,.woocommerce-admin-is-loading #wpbody-content,.woocommerce-admin-is-loading #wpcontent,.woocommerce-admin-is-loading #wpfooter,.woocommerce-admin-is-loading .components-modal__screen-overlay,.woocommerce-admin-is-loading .error,.woocommerce-admin-is-loading .notice,.woocommerce-admin-is-loading .update-nag,.woocommerce-admin-is-loading .updated,.woocommerce-admin-is-loading .woocommerce-layout__header,.woocommerce-admin-is-loading .woocommerce-message,.woocommerce-admin-is-loading .woocommerce-store-alerts,.woocommerce-page .update-nag{display:none}.woocommerce-admin-full-screen{background:#f6f7f7;color:#50575e;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif}.woocommerce-admin-full-screen #wpwrap{top:0}.woocommerce-admin-full-screen #wpbody-content{min-height:100vh}.woocommerce-admin-full-screen #adminmenumain,.woocommerce-admin-full-screen #wpcontent>*,.woocommerce-admin-full-screen .error,.woocommerce-admin-full-screen .notice,.woocommerce-admin-full-screen .update-nag,.woocommerce-admin-full-screen .updated,.woocommerce-admin-full-screen .woocommerce-layout__header,.woocommerce-admin-full-screen .woocommerce-message,.woocommerce-admin-full-screen .woocommerce-store-alerts{display:none}.woocommerce-admin-full-screen #wpcontent{margin-right:0!important}.woocommerce-admin-full-screen #wpcontent>#wpbody{display:block;margin-top:0!important}.woocommerce-admin-full-screen.has-woocommerce-navigation #wpbody{padding-right:0}.is-wp-toolbar-disabled #wpadminbar{display:none!important}.wp-toolbar .is-wp-toolbar-disabled{margin-top:-32px}@media (max-width:600px){.wp-toolbar .is-wp-toolbar-disabled{margin-top:-46px}}.woocommerce-onboarding .muriel-component{margin-top:16px;margin-bottom:16px}.woocommerce-onboarding .components-base-control.has-error{margin-bottom:32px!important;border-color:#d63638}@media (max-width:782px){.woocommerce-onboarding .components-base-control.has-error{margin-bottom:44px!important}}.woocommerce-onboarding .components-base-control.has-error .components-base-control__help{top:100%;right:12px;position:absolute;margin-top:4px;font-size:12px;font-style:normal;color:#d63638}.woocommerce-onboarding .components-form-toggle{display:inline-block}.woocommerce-onboarding .components-form-toggle label{font-size:14px}.woocommerce-onboarding .components-form-toggle .components-base-control{display:inline-block}.woocommerce-onboarding .components-form-toggle .components-base-control__field{margin-bottom:0}.woocommerce-page .components-modal__frame .components-button.is-button,.woocommerce-profile-wizard__body .components-button.is-button,.woocommerce-task-dashboard__container .components-button.is-button{height:48px;padding-right:25px;padding-left:25px;text-align:center;font-size:14px;line-height:36px;font-weight:500;align-items:center}.woocommerce-page .components-modal__frame .components-button.is-button:disabled,.woocommerce-profile-wizard__body .components-button.is-button:disabled,.woocommerce-task-dashboard__container .components-button.is-button:disabled{cursor:not-allowed}.components-modal__header .components-button svg+span{display:none}.components-modal__frame.woocommerce-usage-modal{width:600px;max-width:100%}.components-modal__frame.woocommerce-usage-modal .components-modal__header{border-bottom:0;margin-bottom:0}.components-modal__frame.woocommerce-usage-modal .woocommerce-usage-modal__wrapper{flex-grow:1;display:flex;flex-direction:column}.components-modal__frame.woocommerce-usage-modal .woocommerce-usage-modal__wrapper a{color:#50575e}.components-modal__frame.woocommerce-usage-modal .woocommerce-usage-modal__wrapper button.is-primary{align-self:flex-end}.components-modal__frame.woocommerce-usage-modal .woocommerce-usage-modal__actions{display:flex;justify-content:flex-end;margin-top:16px}.components-modal__frame.woocommerce-usage-modal .woocommerce-usage-modal__actions button{margin-right:16px}.woocommerce-payments__usage-modal .components-modal__header{height:auto;padding:24px 24px 0}.woocommerce-payments__usage-modal .components-modal__header .components-modal__header-heading{font-size:24px;line-height:32px;margin:0 0 24px}.woocommerce-payments__usage-modal .woocommerce-payments__usage-modal-message{padding:16px 0;font-size:16px;line-height:24px}.woocommerce-payments__usage-modal .woocommerce-payments__usage-footer{display:flex;justify-content:flex-end;padding:16px 0}.woocommerce-payments__usage-modal .woocommerce-payments__usage-footer button{margin-right:16px}.components-modal__frame.woocommerce-cart-modal{width:600px;max-width:100%}.components-modal__frame.woocommerce-cart-modal .components-modal__header{border-bottom:0;margin-bottom:16px;margin-top:16px}.components-modal__frame.woocommerce-cart-modal .components-modal__header button{display:none}.components-modal__frame.woocommerce-cart-modal .components-modal__header-heading{font-style:normal;font-weight:400;font-size:24px;line-height:32px}.components-modal__frame.woocommerce-cart-modal .woocommerce-list{margin-top:4px}.components-modal__frame.woocommerce-cart-modal .woocommerce-list .woocommerce-list__item:first-child{border-top:1px solid #dcdcde}.components-modal__frame.woocommerce-cart-modal .woocommerce-list__item{border-bottom:1px solid #dcdcde}.components-modal__frame.woocommerce-cart-modal .woocommerce-cart-modal__help-text{font-size:16px;line-height:24px}.components-modal__frame.woocommerce-cart-modal .woocommerce-cart-modal__actions{text-align:left}.components-modal__frame.woocommerce-cart-modal .woocommerce-cart-modal__actions button.is-link{margin-left:16px;text-decoration:none;font-weight:600;font-size:14px}.components-modal__frame.woocommerce-cart-modal .woocommerce-cart-modal__actions button.is-primary{align-self:flex-end}.woocommerce-layout__header{background:#fff;box-sizing:border-box;padding:0;position:fixed;width:calc(100% - 160px);top:32px;z-index:1001}.woocommerce-layout__header.is-scrolled{box-shadow:0 8px 8px 0 rgba(85,93,102,.3)}.woocommerce-layout__header .woocommerce-layout__header-wrapper{display:flex;align-items:center;min-height:60px}@media (max-width:782px){.woocommerce-layout__header{flex-flow:row wrap;top:46px;width:100%}}@media (min-width:783px) and (max-width:960px){.woocommerce-layout__header{width:calc(100% - 36px)}}.woocommerce-layout__header .woocommerce-layout__header-breadcrumbs-wrapper{display:flex;justify-content:space-between;flex-direction:row}.woocommerce-layout__header .woocommerce-layout__header-heading{display:flex;align-items:center;padding:0 40px 0 0;padding:0 var(--large-gap) 0 0;flex:1 auto;height:60px;background:#fff;font-weight:600;font-size:14px;text-transform:capitalize}.is-wp-toolbar-disabled .woocommerce-layout__header{top:0}.has-woocommerce-navigation .woocommerce-layout__header{right:0;width:100%}.woocommerce-page #contextual-help-link-wrap,.woocommerce-page #screen-options-link-wrap{margin-top:-1px}.wp-responsive-open .woocommerce-layout__header{margin-right:2px}.woocommerce-layout__activity-panel{display:flex;flex-direction:row;align-items:center;height:60px}@media (max-width:782px){.woocommerce-layout__activity-panel{position:absolute;top:100%;background:#fff;margin:0;padding:0;width:100vw;display:none;flex:1 100%;left:0}}@media (min-width:783px) and (max-width:960px){.woocommerce-layout__activity-panel{max-width:280px}}@media (min-width:1281px){.woocommerce-layout__activity-panel{max-width:400px}}.woocommerce-layout__activity-panel.is-mobile-open{display:flex}.woocommerce-layout__activity-panel-tabs{width:100%;display:flex;height:60px;justify-content:flex-end}.woocommerce-layout__activity-panel-tabs .dashicon,.woocommerce-layout__activity-panel-tabs .gridicon{width:100%}.woocommerce-layout__activity-panel-tabs svg{width:24px;height:24px}.woocommerce-layout__activity-panel-tabs svg.woocommerce-layout__activity-panel-tab-icon{fill:none}.woocommerce-layout__activity-panel-tabs svg.woocommerce-layout__activity-panel-tab-icon path,.woocommerce-layout__activity-panel-tabs svg.woocommerce-layout__activity-panel-tab-icon rect{stroke:currentColor}.woocommerce-layout__activity-panel-tabs svg.setup-progress path:first-child{stroke:"#DCDCDE"}.woocommerce-layout__activity-panel-tabs .woocommerce-layout__homescreen-display-options svg.woocommerce-layout__activity-panel-tab-icon{height:14px}.woocommerce-layout__activity-panel-tabs .components-icon-button{display:initial;text-indent:0;border-radius:0}.woocommerce-layout__activity-panel-tabs .components-icon-button.has-text svg{margin:0}.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab{display:flex;flex-direction:column;justify-content:center;align-items:center;position:relative;border:none;outline:none;cursor:pointer;background-color:#fff;max-width:-webkit-min-content;max-width:min-content;min-width:80px;width:100%;height:60px;color:#757575;white-space:nowrap}.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab:before{background-color:#007cba;background-color:var(--wp-admin-theme-color);bottom:0;content:"";height:0;opacity:0;transition-property:height,opacity;transition-duration:.3s;transition-timing-function:ease-in-out;right:0;position:absolute;left:0}.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab.is-active,.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab.is-opened{color:#1e1e1e;box-shadow:none}.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab.is-active:before,.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab.is-opened:before{height:3px;opacity:1}.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab.has-unread:after,.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab.woocommerce-layout__activity-panel-tab-wordpress-notices:after{content:" ";position:absolute;padding:1px;background:#d94f4f;border:2px solid #fff;width:4px;height:4px;display:inline-block;border-radius:50%;top:8px;right:50%}@media (min-width:783px) and (max-width:960px){.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab.has-unread:after,.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab.woocommerce-layout__activity-panel-tab-wordpress-notices:after{left:18px;right:auto;margin-right:0}}@media (min-width:961px){.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab.has-unread:after,.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab.woocommerce-layout__activity-panel-tab-wordpress-notices:after{left:28px;right:auto;margin-right:0}}.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab.components-button:not(:disabled):not([aria-disabled=true]):hover,.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab:hover{background-color:#f0f0f0;box-shadow:none}.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab.components-button:not(:disabled):not([aria-disabled=true]):hover.has-unread:after,.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab.components-button:not(:disabled):not([aria-disabled=true]):hover.woocommerce-layout__activity-panel-tab-wordpress-notices:after,.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab:hover.has-unread:after,.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab:hover.woocommerce-layout__activity-panel-tab-wordpress-notices:after{border-color:#e0e0e0}.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab.components-button:not(:disabled):not([aria-disabled=true]):focus,.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab:focus{box-shadow:inset 1px -1px 0 #757575,inset -1px 1px 0 #757575}@media (max-width:782px){.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-tab.display-options{display:none}}.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-popover{margin-top:0;z-index:1001}.woocommerce-layout__activity-panel-tabs .woocommerce-layout__activity-panel-popover .components-menu-group{padding:12px}.woocommerce-layout__activity-panel-mobile-toggle.components-button{margin-left:10px;max-width:48px}@media (min-width:783px){.woocommerce-layout__activity-panel-mobile-toggle.components-button{display:none;height:100%}}.wp-responsive-open .woocommerce-layout__activity-panel-mobile-toggle{display:none}.woocommerce-layout__activity-panel-toggle-bubble.has-unread:after{content:" ";position:absolute;padding:1px;background:#ca4a1f;border:2px solid #fff;width:4px;height:4px;display:inline-block;border-radius:50%;top:6px;left:4px}@keyframes tabSwitch{0%,to{transform:translateX(0)}50%{transform:translateX(-100px)}}.woocommerce-layout__activity-panel-wrapper{height:calc(100vh - 166px);background:#f0f0f0;width:510px;transform:translateX(-100%);transition-property:transform box-shadow;transition-duration:.3s;transition-timing-function:ease-in-out;position:fixed;left:0;top:166px;z-index:1000;overflow-x:hidden;overflow-y:auto}@media (max-width:782px){.woocommerce-layout__activity-panel-wrapper{width:100%}}@media screen and (prefers-reduced-motion:reduce){.woocommerce-layout__activity-panel-wrapper{transition-duration:1ms}}@media (min-width:783px){.woocommerce-layout__activity-panel-wrapper{height:calc(100vh - 92px);top:92px}}.has-woocommerce-navigation .woocommerce-layout__activity-panel-wrapper{height:calc(100vh - 120px);top:120px}@media (min-width:783px){.has-woocommerce-navigation .woocommerce-layout__activity-panel-wrapper{height:calc(100vh - 60px);top:60px}}.woocommerce-layout__activity-panel-wrapper.is-open{transform:none;box-shadow:0 12px 12px 0 rgba(85,93,102,.3)}.woocommerce-layout__activity-panel-wrapper.is-switching{animation:tabSwitch;animation-duration:.3s}@media screen and (prefers-reduced-motion:reduce){.woocommerce-layout__activity-panel-wrapper.is-switching{animation:none}}.woocommerce-layout__activity-panel-wrapper .woocommerce-empty-content{padding-right:24px;padding-left:24px}.woocommerce-layout__activity-panel-avatar-flag-overlay{position:relative;top:-12px}.woocommerce-layout__activity-panel-avatar-flag-overlay .woocommerce-flag{position:relative;top:16px;border:2px solid #fff}.woocommerce-layout__notice-list-hide{display:none}.highlight-tooltip__container{position:absolute;width:0;height:0}.highlight-tooltip__container.highlight-tooltip__show{top:0;right:0;width:100%;height:100%}.highlight-tooltip__portal{width:100%;height:100%;position:relative}.highlight-tooltip__portal .highlight-tooltip__overlay{position:fixed;top:0;left:0;bottom:0;right:0;background-color:rgba(0,0,0,.35);z-index:100000;animation:edit-post__fade-in-animation .2s ease-out 0s;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.highlight-tooltip__portal .highlight-tooltip__overlay{animation-duration:1ms}}.highlight-tooltip__popover .components-card{min-width:360px}.highlight-tooltip__popover .components-card__header{font-size:16px;font-size:1rem;font-weight:600;height:60px}.highlight-tooltip__popover .components-card__footer{justify-content:flex-end}.woocommerce-layout__show-app-banner{padding-top:56px}@media (min-width:783px){.woocommerce-layout__show-app-banner{padding-top:0}}.woocommerce-mobile-app-banner{background-color:#3c2861;width:100%;display:flex;height:56px;align-items:center;padding:0 4px 0 6px}@media (min-width:401px){.woocommerce-mobile-app-banner{padding:0 10px 0 13px}}@media (min-width:783px){.woocommerce-mobile-app-banner{display:none}}.woocommerce-mobile-app-banner .dashicon{fill:#fff;margin-left:10px}.woocommerce-mobile-app-banner .components-button.is-secondary{margin-right:auto;color:#fff;box-shadow:inset 0 0 0 1px #fff}.woocommerce-mobile-app-banner .components-button.is-secondary:active,.woocommerce-mobile-app-banner .components-button.is-secondary:hover{color:#fff;box-shadow:inset 0 0 0 1px #fff;background:none}.woocommerce-mobile-app-banner .woocommerce-mobile-app-banner__description{color:#fff;margin-right:8px}@media (min-width:401px){.woocommerce-mobile-app-banner .woocommerce-mobile-app-banner__description{margin-right:13px}}.woocommerce-mobile-app-banner .woocommerce-mobile-app-banner__description .woocommerce-mobile-app-banner__description__text{margin:0;font-size:10px}.woocommerce-mobile-app-banner .woocommerce-mobile-app-banner__description .woocommerce-mobile-app-banner__description__text:first-child{font-weight:700}@media (min-width:401px){.woocommerce-mobile-app-banner .woocommerce-mobile-app-banner__description .woocommerce-mobile-app-banner__description__text{margin-right:13px;font-size:13px}}.woocommerce-navigation{display:-ms-grid;display:grid;-ms-grid-rows:-webkit-min-content 1fr;-ms-grid-rows:min-content 1fr;grid-template-rows:-webkit-min-content 1fr;grid-template-rows:min-content 1fr;height:100%}.woocommerce-navigation h2>span{width:100%}.woocommerce-navigation .components-navigation__menu{overflow-y:auto;margin-bottom:0;padding-bottom:24px}.woocommerce-navigation .components-navigation__group+.components-navigation__group{margin-top:24px}.woocommerce-navigation .components-navigation__item{margin-bottom:0}.woocommerce-navigation .components-navigation__item a.components-button{padding:6px 16px}.woocommerce-navigation .components-navigation__item:not(:hover) a.components-button{color:#949494}.woocommerce-navigation .components-navigation__item.is-active a.components-button{color:#fff}.woocommerce-navigation .components-navigation{height:100%}.woocommerce-navigation .components-navigation>div{height:100%;display:-ms-grid;display:grid;-ms-grid-rows:1fr -webkit-min-content;-ms-grid-rows:1fr min-content;grid-template-rows:1fr -webkit-min-content;grid-template-rows:1fr min-content}.woocommerce-navigation.is-root .components-navigation__menu-secondary{border-top:1px solid #2c3338;margin:0 -8px;padding:16px 8px 12px}.woocommerce-navigation-header{display:flex;align-items:center;border:none;border-radius:0;height:auto}.woocommerce-navigation-header .woocommerce-navigation-header__site-icon.components-button{padding:12px;height:60px;color:#fff}.woocommerce-navigation-header .woocommerce-navigation-header__site-icon.components-button:focus,.woocommerce-navigation-header .woocommerce-navigation-header__site-icon.components-button:hover,.woocommerce-navigation-header .woocommerce-navigation-header__site-icon.components-button:not([aria-disabled=true]):active{color:#fff}.woocommerce-navigation-header .woocommerce-navigation-header__site-title.components-button{padding-right:0;color:#ccc;font-weight:600}.woocommerce-navigation-header .woocommerce-navigation-header__site-title.components-button:active,.woocommerce-navigation-header .woocommerce-navigation-header__site-title.components-button:focus,.woocommerce-navigation-header .woocommerce-navigation-header__site-title.components-button:hover{color:#e0e0e0}.woocommerce-navigation{position:relative;width:240px;box-sizing:border-box;background-color:#1e1e1e;z-index:1100}@media (max-width:960px){.woocommerce-navigation{width:60px;height:60px}}.woocommerce-navigation .components-navigation{box-sizing:border-box}.woocommerce-navigation__wrapper{background-color:#1e1e1e;position:absolute;top:60px;width:100%;height:calc(100vh - 92px);overflow-y:auto}.is-wp-toolbar-disabled .woocommerce-navigation__wrapper{height:calc(100vh - 60px)}body.is-wc-nav-expanded .woocommerce-navigation{width:240px;height:100%}body.is-wc-nav-folded .woocommerce-navigation{width:60px;height:60px;overflow:hidden}body.is-wc-nav-folded .woocommerce-navigation .woocommerce-navigation-header>*{display:none}body.is-wc-nav-folded .woocommerce-navigation .woocommerce-navigation-header__site-icon{display:block}body.is-wc-nav-folded .woocommerce-navigation .components-navigation{display:none}body.is-wc-nav-folded .woocommerce-transient-notices{right:16px}body.is-wc-nav-folded #wpbody{padding-right:0}.has-woocommerce-navigation #adminmenuback,.has-woocommerce-navigation #adminmenuwrap{display:none!important}.has-woocommerce-navigation.woocommerce_page_wc-settings .woo-nav-tab-wrapper,.has-woocommerce-navigation.woocommerce_page_wc-status .woo-nav-tab-wrapper{display:none}.has-woocommerce-navigation.woocommerce_page_wc-settings .woocommerce .subsubsub,.has-woocommerce-navigation.woocommerce_page_wc-status .woocommerce .subsubsub{font-size:14px;margin:5px 0}.has-woocommerce-navigation #wpcontent,.has-woocommerce-navigation #wpfooter{margin-right:0}@media (max-width:960px){.has-woocommerce-navigation #wpcontent,.has-woocommerce-navigation #wpfooter{margin-right:0}}.has-woocommerce-navigation #wpbody{padding-right:240px}@media (max-width:960px){.has-woocommerce-navigation #wpbody{padding-right:0}}.has-woocommerce-navigation .woocommerce-layout__header.is-embed-loading:before{content:"";position:fixed;width:240px;height:100%;background:#1e1e1e}@media (max-width:960px){.has-woocommerce-navigation .woocommerce-layout__header.is-embed-loading:before{width:60px;height:60px}}.has-woocommerce-navigation #woocommerce-embedded-root.is-embed-loading{margin-bottom:-32px}.has-woocommerce-navigation:not(.is-wp-toolbar-disabled) #wpbody-content{margin-top:32px}.woocommerce-navigation-category-title{display:flex;align-items:center}.woocommerce-navigation-category-title .woocommerce-navigation-favorite-button{margin-right:auto}.woocommerce-navigation-favorite-button.components-button .dashicon{margin:0}.woocommerce-navigation-favorite-button.components-button .dashicons-star-empty{color:#949494}.woocommerce-navigation-favorite-button.components-button .dashicons-star-filled{color:#ffb900}:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-20:#005a87}body.admin-color-light{--wp-admin-theme-color:#0085ba;--wp-admin-theme-color-darker-10:#0073a1;--wp-admin-theme-color-darker-20:#006187}body.admin-color-modern{--wp-admin-theme-color:#3858e9;--wp-admin-theme-color-darker-10:#2145e6;--wp-admin-theme-color-darker-20:#183ad6}body.admin-color-blue{--wp-admin-theme-color:#096484;--wp-admin-theme-color-darker-10:#07526c;--wp-admin-theme-color-darker-20:#064054}body.admin-color-coffee{--wp-admin-theme-color:#46403c;--wp-admin-theme-color-darker-10:#383330;--wp-admin-theme-color-darker-20:#2b2724}body.admin-color-ectoplasm{--wp-admin-theme-color:#523f6d;--wp-admin-theme-color-darker-10:#46365d;--wp-admin-theme-color-darker-20:#3a2c4d}body.admin-color-midnight{--wp-admin-theme-color:#e14d43;--wp-admin-theme-color-darker-10:#dd382d;--wp-admin-theme-color-darker-20:#d02c21}body.admin-color-ocean{--wp-admin-theme-color:#627c83;--wp-admin-theme-color-darker-10:#576e74;--wp-admin-theme-color-darker-20:#4c6066}body.admin-color-sunrise{--wp-admin-theme-color:#dd823b;--wp-admin-theme-color-darker-10:#d97426;--wp-admin-theme-color-darker-20:#c36922}.woocommerce-transient-notices{position:fixed;bottom:12px;right:176px;z-index:99999}@media (max-width:960px){.woocommerce-transient-notices{right:50px}}@media (max-width:782px){.woocommerce-transient-notices{right:16px}}.woocommerce-profile-wizard__body .woocommerce-transient-notices{right:unset}.woocommerce-profile-wizard__body .woocommerce-transient-notices .components-snackbar{margin-right:auto;margin-left:auto}.components-snackbar.components-snackbar-explicit-dismiss{cursor:default}.components-snackbar .components-snackbar__content-with-icon{margin-right:32px}.components-snackbar .components-snackbar__icon{position:absolute;top:24px;right:26px}.components-snackbar .components-snackbar__dismiss-button{margin-right:32px;cursor:pointer}
dist/chunks/0.js CHANGED
@@ -1,6 +1,6 @@
1
  (window["__wcAdmin_webpackJsonp"] = window["__wcAdmin_webpackJsonp"] || []).push([[0],{
2
 
3
- /***/ 493:
4
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
5
 
6
  "use strict";
@@ -8,9 +8,9 @@
8
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return CurrencyContext; });
9
  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
10
  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
11
- /* harmony import */ var _wordpress_hooks__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(42);
12
  /* harmony import */ var _wordpress_hooks__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_hooks__WEBPACK_IMPORTED_MODULE_1__);
13
- /* harmony import */ var _woocommerce_currency__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(110);
14
  /* harmony import */ var _woocommerce_currency__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_woocommerce_currency__WEBPACK_IMPORTED_MODULE_2__);
15
  /* harmony import */ var _woocommerce_wc_admin_settings__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(25);
16
  /**
@@ -31,19 +31,19 @@ var CurrencyContext = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["cr
31
 
32
  /***/ }),
33
 
34
- /***/ 494:
35
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
36
 
37
  "use strict";
38
- /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(11);
39
  /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);
40
- /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(12);
41
  /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);
42
- /* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(13);
43
  /* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__);
44
- /* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(14);
45
  /* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__);
46
- /* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(6);
47
  /* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__);
48
  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(0);
49
  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_5__);
@@ -148,45 +148,45 @@ ReportError.defaultProps = {
148
 
149
  /***/ }),
150
 
151
- /***/ 500:
152
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
153
 
154
  "use strict";
155
  /* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5);
156
  /* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
157
- /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(11);
158
  /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__);
159
- /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(12);
160
  /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__);
161
  /* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(9);
162
  /* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3__);
163
- /* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(13);
164
  /* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__);
165
- /* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(14);
166
  /* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_5__);
167
- /* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(6);
168
  /* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6__);
169
  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(0);
170
  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_7__);
171
- /* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(18);
172
  /* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_wordpress_compose__WEBPACK_IMPORTED_MODULE_8__);
173
  /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(1);
174
  /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_9__);
175
  /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(3);
176
  /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_10__);
177
- /* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(15);
178
  /* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(_wordpress_data__WEBPACK_IMPORTED_MODULE_11__);
179
  /* harmony import */ var _woocommerce_components__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(47);
180
  /* harmony import */ var _woocommerce_components__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(_woocommerce_components__WEBPACK_IMPORTED_MODULE_12__);
181
  /* harmony import */ var _woocommerce_wc_admin_settings__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(25);
182
- /* harmony import */ var _woocommerce_data__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(23);
183
  /* harmony import */ var _woocommerce_data__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(_woocommerce_data__WEBPACK_IMPORTED_MODULE_14__);
184
  /* harmony import */ var _woocommerce_date__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(29);
185
  /* harmony import */ var _woocommerce_date__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(_woocommerce_date__WEBPACK_IMPORTED_MODULE_15__);
186
- /* harmony import */ var _woocommerce_tracks__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(28);
187
  /* harmony import */ var _woocommerce_tracks__WEBPACK_IMPORTED_MODULE_16___default = /*#__PURE__*/__webpack_require__.n(_woocommerce_tracks__WEBPACK_IMPORTED_MODULE_16__);
188
- /* harmony import */ var _lib_currency_context__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(493);
189
- /* harmony import */ var _customer_effort_score_tracks_data_constants__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(73);
190
 
191
 
192
 
@@ -423,7 +423,7 @@ ReportFilters.propTypes = {
423
 
424
  /***/ }),
425
 
426
- /***/ 501:
427
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
428
 
429
  "use strict";
@@ -441,7 +441,7 @@ var defineProperty = __webpack_require__(5);
441
  var defineProperty_default = /*#__PURE__*/__webpack_require__.n(defineProperty);
442
 
443
  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/slicedToArray.js
444
- var slicedToArray = __webpack_require__(20);
445
  var slicedToArray_default = /*#__PURE__*/__webpack_require__.n(slicedToArray);
446
 
447
  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/objectWithoutProperties.js
@@ -455,16 +455,16 @@ var external_this_wp_element_ = __webpack_require__(0);
455
  var external_this_wp_components_ = __webpack_require__(4);
456
 
457
  // EXTERNAL MODULE: external {"this":["wp","hooks"]}
458
- var external_this_wp_hooks_ = __webpack_require__(42);
459
 
460
  // EXTERNAL MODULE: external {"this":["wp","compose"]}
461
- var external_this_wp_compose_ = __webpack_require__(18);
462
 
463
  // EXTERNAL MODULE: ./node_modules/@wordpress/dom/build-module/index.js + 2 modules
464
- var build_module = __webpack_require__(120);
465
 
466
  // EXTERNAL MODULE: external {"this":["wp","data"]}
467
- var external_this_wp_data_ = __webpack_require__(15);
468
 
469
  // EXTERNAL MODULE: external "lodash"
470
  var external_lodash_ = __webpack_require__(3);
@@ -483,13 +483,13 @@ var external_this_wc_components_ = __webpack_require__(47);
483
  var external_this_wc_navigation_ = __webpack_require__(21);
484
 
485
  // EXTERNAL MODULE: external {"this":["wc","csvExport"]}
486
- var external_this_wc_csvExport_ = __webpack_require__(477);
487
 
488
  // EXTERNAL MODULE: external {"this":["wc","data"]}
489
- var external_this_wc_data_ = __webpack_require__(23);
490
 
491
  // EXTERNAL MODULE: external {"this":["wc","tracks"]}
492
- var external_this_wc_tracks_ = __webpack_require__(28);
493
 
494
  // CONCATENATED MODULE: ./client/analytics/components/report-table/download-icon.js
495
 
@@ -508,7 +508,7 @@ var external_this_wc_tracks_ = __webpack_require__(28);
508
  }));
509
  });
510
  // EXTERNAL MODULE: ./client/analytics/components/report-error/index.js
511
- var report_error = __webpack_require__(494);
512
 
513
  // CONCATENATED MODULE: ./client/analytics/components/report-table/utils.js
514
 
@@ -562,7 +562,7 @@ function extendTableData(select, props, queriedTableData) {
562
  });
563
  }
564
  // EXTERNAL MODULE: ./client/analytics/components/report-table/style.scss
565
- var style = __webpack_require__(561);
566
 
567
  // CONCATENATED MODULE: ./client/analytics/components/report-table/index.js
568
 
@@ -1143,7 +1143,7 @@ var EMPTY_OBJECT = {};
1143
 
1144
  /***/ }),
1145
 
1146
- /***/ 561:
1147
  /***/ (function(module, exports, __webpack_require__) {
1148
 
1149
  // extracted by mini-css-extract-plugin
1
  (window["__wcAdmin_webpackJsonp"] = window["__wcAdmin_webpackJsonp"] || []).push([[0],{
2
 
3
+ /***/ 498:
4
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
5
 
6
  "use strict";
8
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return CurrencyContext; });
9
  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
10
  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
11
+ /* harmony import */ var _wordpress_hooks__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(43);
12
  /* harmony import */ var _wordpress_hooks__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_hooks__WEBPACK_IMPORTED_MODULE_1__);
13
+ /* harmony import */ var _woocommerce_currency__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(111);
14
  /* harmony import */ var _woocommerce_currency__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_woocommerce_currency__WEBPACK_IMPORTED_MODULE_2__);
15
  /* harmony import */ var _woocommerce_wc_admin_settings__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(25);
16
  /**
31
 
32
  /***/ }),
33
 
34
+ /***/ 499:
35
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
36
 
37
  "use strict";
38
+ /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(12);
39
  /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);
40
+ /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(13);
41
  /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);
42
+ /* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(14);
43
  /* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__);
44
+ /* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(15);
45
  /* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__);
46
+ /* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(7);
47
  /* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__);
48
  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(0);
49
  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_5__);
148
 
149
  /***/ }),
150
 
151
+ /***/ 505:
152
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
153
 
154
  "use strict";
155
  /* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5);
156
  /* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
157
+ /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(12);
158
  /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__);
159
+ /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(13);
160
  /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__);
161
  /* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(9);
162
  /* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3__);
163
+ /* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(14);
164
  /* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__);
165
+ /* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(15);
166
  /* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_5__);
167
+ /* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(7);
168
  /* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6__);
169
  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(0);
170
  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_7__);
171
+ /* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(20);
172
  /* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_wordpress_compose__WEBPACK_IMPORTED_MODULE_8__);
173
  /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(1);
174
  /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_9__);
175
  /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(3);
176
  /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_10__);
177
+ /* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(11);
178
  /* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(_wordpress_data__WEBPACK_IMPORTED_MODULE_11__);
179
  /* harmony import */ var _woocommerce_components__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(47);
180
  /* harmony import */ var _woocommerce_components__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(_woocommerce_components__WEBPACK_IMPORTED_MODULE_12__);
181
  /* harmony import */ var _woocommerce_wc_admin_settings__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(25);
182
+ /* harmony import */ var _woocommerce_data__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(22);
183
  /* harmony import */ var _woocommerce_data__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(_woocommerce_data__WEBPACK_IMPORTED_MODULE_14__);
184
  /* harmony import */ var _woocommerce_date__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(29);
185
  /* harmony import */ var _woocommerce_date__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(_woocommerce_date__WEBPACK_IMPORTED_MODULE_15__);
186
+ /* harmony import */ var _woocommerce_tracks__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(27);
187
  /* harmony import */ var _woocommerce_tracks__WEBPACK_IMPORTED_MODULE_16___default = /*#__PURE__*/__webpack_require__.n(_woocommerce_tracks__WEBPACK_IMPORTED_MODULE_16__);
188
+ /* harmony import */ var _lib_currency_context__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(498);
189
+ /* harmony import */ var _customer_effort_score_tracks_data_constants__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(76);
190
 
191
 
192
 
423
 
424
  /***/ }),
425
 
426
+ /***/ 506:
427
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
428
 
429
  "use strict";
441
  var defineProperty_default = /*#__PURE__*/__webpack_require__.n(defineProperty);
442
 
443
  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/slicedToArray.js
444
+ var slicedToArray = __webpack_require__(18);
445
  var slicedToArray_default = /*#__PURE__*/__webpack_require__.n(slicedToArray);
446
 
447
  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/objectWithoutProperties.js
455
  var external_this_wp_components_ = __webpack_require__(4);
456
 
457
  // EXTERNAL MODULE: external {"this":["wp","hooks"]}
458
+ var external_this_wp_hooks_ = __webpack_require__(43);
459
 
460
  // EXTERNAL MODULE: external {"this":["wp","compose"]}
461
+ var external_this_wp_compose_ = __webpack_require__(20);
462
 
463
  // EXTERNAL MODULE: ./node_modules/@wordpress/dom/build-module/index.js + 2 modules
464
+ var build_module = __webpack_require__(121);
465
 
466
  // EXTERNAL MODULE: external {"this":["wp","data"]}
467
+ var external_this_wp_data_ = __webpack_require__(11);
468
 
469
  // EXTERNAL MODULE: external "lodash"
470
  var external_lodash_ = __webpack_require__(3);
483
  var external_this_wc_navigation_ = __webpack_require__(21);
484
 
485
  // EXTERNAL MODULE: external {"this":["wc","csvExport"]}
486
+ var external_this_wc_csvExport_ = __webpack_require__(481);
487
 
488
  // EXTERNAL MODULE: external {"this":["wc","data"]}
489
+ var external_this_wc_data_ = __webpack_require__(22);
490
 
491
  // EXTERNAL MODULE: external {"this":["wc","tracks"]}
492
+ var external_this_wc_tracks_ = __webpack_require__(27);
493
 
494
  // CONCATENATED MODULE: ./client/analytics/components/report-table/download-icon.js
495
 
508
  }));
509
  });
510
  // EXTERNAL MODULE: ./client/analytics/components/report-error/index.js
511
+ var report_error = __webpack_require__(499);
512
 
513
  // CONCATENATED MODULE: ./client/analytics/components/report-table/utils.js
514
 
562
  });
563
  }
564
  // EXTERNAL MODULE: ./client/analytics/components/report-table/style.scss
565
+ var style = __webpack_require__(574);
566
 
567
  // CONCATENATED MODULE: ./client/analytics/components/report-table/index.js
568
 
1143
 
1144
  /***/ }),
1145
 
1146
+ /***/ 574:
1147
  /***/ (function(module, exports, __webpack_require__) {
1148
 
1149
  // extracted by mini-css-extract-plugin
dist/chunks/0.min.js CHANGED
@@ -1 +1 @@
1
- (window.__wcAdmin_webpackJsonp=window.__wcAdmin_webpackJsonp||[]).push([[0],{493:function(e,t,r){"use strict";r.d(t,"b",(function(){return l})),r.d(t,"a",(function(){return u}));var a=r(0),n=r(42),o=r(110),c=r.n(o),i=r(25),s=c()(i.b),l=function(e){var t=s.getCurrencyConfig(),r=Object(n.applyFilters)("woocommerce_admin_report_currency",t,e);return c()(r)},u=Object(a.createContext)(s)},494:function(e,t,r){"use strict";var a=r(11),n=r.n(a),o=r(12),c=r.n(o),i=r(13),s=r.n(i),l=r(14),u=r.n(l),d=r(6),p=r.n(d),m=r(0),b=r(2),f=r(1),y=r.n(f),g=r(47),O=r(25);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,a=p()(e);if(t){var n=p()(this).constructor;r=Reflect.construct(a,arguments,n)}else r=a.apply(this,arguments);return u()(this,r)}}var j=function(e){s()(r,e);var t=h(r);function r(){return n()(this,r),t.apply(this,arguments)}return c()(r,[{key:"render",value:function(){var e,t,r,a,n=this.props,o=n.className,c=n.isError,i=n.isEmpty;return c?(e=Object(b.__)("There was an error getting your stats. Please try again.","woocommerce-admin"),t=Object(b.__)("Reload","woocommerce-admin"),a=function(){window.location.reload()}):i&&(e=Object(b.__)("No results could be found for this date range.","woocommerce-admin"),t=Object(b.__)("View Orders","woocommerce-admin"),r=Object(O.f)("edit.php?post_type=shop_order")),Object(m.createElement)(g.EmptyContent,{className:o,title:e,actionLabel:t,actionURL:r,actionCallback:a})}}]),r}(m.Component);j.propTypes={className:y.a.string,isError:y.a.bool,isEmpty:y.a.bool},j.defaultProps={className:""},t.a=j},500:function(e,t,r){"use strict";var a=r(5),n=r.n(a),o=r(11),c=r.n(o),i=r(12),s=r.n(i),l=r(9),u=r.n(l),d=r(13),p=r.n(d),m=r(14),b=r.n(m),f=r(6),y=r.n(f),g=r(0),O=r(18),h=r(1),j=r.n(h),v=r(3),_=r(15),w=r(47),S=r(25),E=r(23),C=r(29),D=r(28),R=r(493),P=r(73);function F(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,a)}return r}function k(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?F(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):F(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,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 r,a=y()(e);if(t){var n=y()(this).constructor;r=Reflect.construct(a,arguments,n)}else r=a.apply(this,arguments);return b()(this,r)}}var x=function(e){p()(r,e);var t=q(r);function r(){var e;return c()(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",k({report:r},Object(v.omitBy)(e,v.isUndefined)))}},{key:"onFilterSelect",value:function(e){var t=this.props,r=t.report,a=t.addCesSurveyForAnalytics,n=e.filter||e["filter-variations"];["single_product","single_category","single_coupon","single_variation"].includes(n)&&a(),Object(D.recordEvent)("analytics_filter",{report:r,filter:e.filter||"all"})}},{key:"onAdvancedFilterAction",value:function(e,t){var r=this.props,a=r.report,n=r.addCesSurveyForAnalytics;switch(e){case"add":Object(D.recordEvent)("analytics_filters_add",{report:a,filter:t.key});break;case"remove":Object(D.recordEvent)("analytics_filters_remove",{report:a,filter:t.key});break;case"filter":var o=Object.keys(t).reduce((function(e,r){return e[Object(v.snakeCase)(r)]=t[r],e}),{});n(),Object(D.recordEvent)("analytics_filters_filter",k({report:a},o));break;case"clear_all":Object(D.recordEvent)("analytics_filters_clear_all",{report:a});break;case"match":Object(D.recordEvent)("analytics_filters_all_any",{report:a,value:t.match})}}},{key:"render",value:function(){var e=this.props,t=e.advancedFilters,r=e.filters,a=e.path,n=e.query,o=e.showDatePicker,c=e.defaultDateRange,i=Object(C.getDateParamsFromQuery)(n,c),s=i.period,l=i.compare,u=i.before,d=i.after,p=Object(C.getCurrentDates)(n,c),m={period:s,compare:l,before:u,after:d,primaryDate:p.primary,secondaryDate:p.secondary},b=this.context;return Object(g.createElement)(w.ReportFilters,{query:n,siteLocale:S.c.siteLocale,currency:b.getCurrencyConfig(),path:a,filters:r,advancedFilters:t,showDatePicker:o,onDateSelect:this.onDateSelect,onFilterSelect:this.onFilterSelect,onAdvancedFilterAction:this.onAdvancedFilterAction,dateQuery:m,isoDateFormat:C.isoDateFormat})}}]),r}(g.Component);x.contextType=R.a,t.a=Object(O.compose)(Object(_.withSelect)((function(e){return{defaultDateRange:e(E.SETTINGS_STORE_NAME).getSetting("wc_admin","wcAdminSettings").woocommerce_default_date_range}})),Object(_.withDispatch)((function(e){return{addCesSurveyForAnalytics:e(P.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}},501:function(e,t,r){"use strict";var a=r(24),n=r.n(a),o=r(19),c=r.n(o),i=r(5),s=r.n(i),l=r(20),u=r.n(l),d=r(34),p=r.n(d),m=r(0),b=r(4),f=r(42),y=r(18),g=r(120),O=r(15),h=r(3),j=r(2),v=r(1),_=r.n(v),w=r(47),S=r(21),E=r(477),C=r(23),D=r(28),R=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"}))},P=r(494);function F(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,a)}return r}function k(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?F(Object(r),!0).forEach((function(t){s()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):F(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}r(561);function q(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,a)}return r}function x(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?q(Object(r),!0).forEach((function(t){s()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):q(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var A=function(e){var t=e.getHeadersContent,r=e.getRowsContent,a=e.getSummary,o=e.isRequesting,i=e.primaryData,l=e.tableData,d=e.endpoint,y=(e.itemIdField,e.tableQuery,e.compareBy),O=e.compareParam,v=e.searchBy,_=e.labels,F=void 0===_?{}:_,k=p()(e,["getHeadersContent","getRowsContent","getSummary","isRequesting","primaryData","tableData","endpoint","itemIdField","tableQuery","compareBy","compareParam","searchBy","labels"]),q=e.query,A=e.columnPrefsKey,T=l.items,N=l.query,Q=q[O]?Object(S.getIdsFromQuery)(q[y]):[],B=Object(m.useState)(Q),I=u()(B,2),L=I[0],M=I[1],U=Object(m.useRef)(null),V=Object(C.useUserPreferences)(),z=V.updateUserPreferences,H=p()(V,["updateUserPreferences"]);if(l.isError||i.isError)return Object(m.createElement)(P.a,{isError:!0});var G=[];A&&(G=H&&H[A]?H[A]:G);var J,K,Y,W,X=function(e,n,o){var c=a?a(n,o):null;return Object(f.applyFilters)("woocommerce_admin_report_table",{endpoint:d,headers:t(),rows:r(e),totals:n,summary:c,items:T})},Z=function(t){var r=e.ids;M(t?r:[])},$=function(t,r){var a=e.ids;if(r)M(Object(h.uniq)([a[t]].concat(c()(L))));else{var n=L.indexOf(a[t]);M([].concat(c()(L.slice(0,n)),c()(L.slice(n+1))))}},ee=function(t){var r=e.ids,a=void 0===r?[]:r,n=-1!==L.indexOf(a[t]);return{display:Object(m.createElement)(b.CheckboxControl,{onChange:Object(h.partial)($,t),checked:n}),value:!1}},te=o||l.isRequesting||i.isRequesting,re=Object(h.get)(i,["data","totals"],{}),ae=T.totalResults,ne=ae>0,oe=Object(S.getSearchWords)(q).map((function(e){return{key:e,label:e}})),ce=T.data,ie=X(ce,re,ae),se=ie.headers,le=ie.rows,ue=ie.summary;y&&(le=le.map((function(e,t){return[ee(t)].concat(c()(e))})),se=[(J=e.ids,K=void 0===J?[]:J,Y=K.length>0,W=Y&&K.length===L.length,{cellClassName:"is-checkbox-column",key:"compare",label:Object(m.createElement)(b.CheckboxControl,{onChange:Z,"aria-label":Object(j.__)("Select All"),checked:W,disabled:!Y}),required:!0})].concat(c()(se)));var de=function(e,t){return t?e.map((function(e){return x(x({},e),{},{visible:e.required||!t.includes(e.key)})})):e.map((function(e){return x(x({},e),{},{visible:e.required||!e.hiddenByDefault})}))}(se,G);return Object(m.createElement)(m.Fragment,null,Object(m.createElement)("div",{className:"woocommerce-report-table__scroll-point",ref:U,"aria-hidden":!0}),Object(m.createElement)(w.TableCard,n()({className:"woocommerce-report-table",hasSearch:!!v,actions:[y&&Object(m.createElement)(w.CompareButton,{key:"compare",className:"woocommerce-table__compare",count:L.length,helpText:F.helpText||Object(j.__)("Check at least two items below to compare","woocommerce-admin"),onClick:function(){y&&Object(S.onQueryChange)("compare")(y,O,L.join(","))},disabled:!ne},F.compareButton||Object(j.__)("Compare","woocommerce-admin")),v&&Object(m.createElement)(w.Search,{allowFreeTextSearch:!0,inlineTags:!0,key:"search",onChange:function(t){var r,a=e.baseSearchQuery,n=t.map((function(e){return e.label.replace(",","%2C")}));n.length?Object(S.updateQueryString)(x(x((r={filter:void 0},s()(r,O,void 0),s()(r,v,void 0),r),a),{},{search:Object(h.uniq)(n).join(",")})):Object(S.updateQueryString)({search:void 0});Object(D.recordEvent)("analytics_table_filter",{report:d})},placeholder:F.placeholder||Object(j.__)("Search by item name","woocommerce-admin"),selected:oe,showClearButton:!0,type:v,disabled:!ne}),ne&&Object(m.createElement)(b.Button,{key:"download",className:"woocommerce-table__download-button",disabled:te,onClick:function(){var t=e.createNotice,r=e.startExport,a=e.title,n=Object.assign({},q),o=T.data,c=T.totalResults,i="browser";if(delete n.extended_info,n.search&&delete n[v],o&&o.length===c){var s=X(o,c),l=s.headers,u=s.rows;Object(E.downloadCSVFile)(Object(E.generateCSVFileName)(a,n),Object(E.generateCSVDataFromTable)(l,u))}else i="email",r(d,N).then((function(){return t("success",Object(j.sprintf)(Object(j.__)("Your %s Report will be emailed to you.","woocommerce-admin"),a))})).catch((function(e){return t("error",e.message||Object(j.sprintf)(Object(j.__)("There was a problem exporting your %s Report. Please try again.","woocommerce-admin"),a))}));Object(D.recordEvent)("analytics_table_download",{report:d,rows:c,downloadType:i})}},Object(m.createElement)(R,null),Object(m.createElement)("span",{className:"woocommerce-table__download-button__label"},F.downloadButton||Object(j.__)("Download","woocommerce-admin")))],headers:de,isLoading:te,onQueryChange:S.onQueryChange,onColumnsChange:function(e,t){var r=se.map((function(e){return e.key})).filter((function(t){return!e.includes(t)}));if(A){var a=s()({},A,r);z(a)}if(t){var n={report:d,column:t,status:e.includes(t)?"on":"off"};Object(D.recordEvent)("analytics_table_header_toggle",n)}},onSort:function(e,t){Object(S.onQueryChange)("sort")(e,t);var r={report:d,column:e,direction:t};Object(D.recordEvent)("analytics_table_sort",r)},onPageChange:function(e,t){U.current.scrollIntoView();var r=U.current.nextSibling.querySelector(".woocommerce-table__table"),a=g.a.focusable.find(r);a.length&&a[0].focus(),t&&("goto"===t?Object(D.recordEvent)("analytics_table_go_to_page",{report:d,page:e}):Object(D.recordEvent)("analytics_table_page_click",{report:d,direction:t}))},rows:le,rowsPerPage:parseInt(N.per_page,10)||C.QUERY_DEFAULTS.pageSize,summary:ue,totalRows:ae},k)))};A.propTypes={baseSearchQuery:_.a.object,compareBy:_.a.string,compareParam:_.a.string,columnPrefsKey:_.a.string,endpoint:_.a.string,extendItemsMethodNames:_.a.shape({getError:_.a.string,isRequesting:_.a.string,load:_.a.string}),extendedItemsStoreName:_.a.string,getHeadersContent:_.a.func.isRequired,getRowsContent:_.a.func.isRequired,getSummary:_.a.func,itemIdField:_.a.string,labels:_.a.shape({compareButton:_.a.string,downloadButton:_.a.string,helpText:_.a.string,placeholder:_.a.string}),primaryData:_.a.object,searchBy:_.a.string,summaryFields:_.a.arrayOf(_.a.string),tableData:_.a.object.isRequired,tableQuery:_.a.object,title:_.a.string.isRequired},A.defaultProps={primaryData:{},tableData:{items:{data:[],totalResults:0},query:{}},tableQuery:{},compareParam:"filter",downloadable:!1,onSearch:h.noop,baseSearchQuery:{}};var T=[],N={};t.a=Object(y.compose)(Object(O.withSelect)((function(e,t){var r=t.endpoint,a=t.getSummary,n=t.isRequesting,o=t.itemIdField,c=t.query,i=t.tableData,s=t.tableQuery,l=t.filters,u=t.advancedFilters,d=t.summaryFields;if(n||c.search&&(!c[r]||!c[r].length))return N;var p=e(C.SETTINGS_STORE_NAME).getSetting("wc_admin","wcAdminSettings").woocommerce_default_date_range,m="categories"===r?"products":r,b=a?Object(C.getReportChartData)({endpoint:m,dataType:"primary",query:c,select:e,filters:l,advancedFilters:u,defaultDateRange:p,fields:d}):N,f=function(e,t,r){var a=t.extendItemsMethodNames,n=t.extendedItemsStoreName,o=t.itemIdField,c=r.items.data;if(!(Array.isArray(c)&&c.length&&a&&o))return r;var i=e(n),s=i[a.getError],l=i[a.isRequesting],u=i[a.load],d={include:c.map((function(e){return e[o]})).join(","),per_page:c.length},p=u(d),m=!!l&&l(d),b=!!s&&s(d),f=c.map((function(e){var t=Object(h.first)(p.filter((function(t){return e.id===t.id})));return k(k({},e),t)})),y=r.isRequesting||m,g=r.isError||b;return k(k({},r),{},{isRequesting:y,isError:g,items:k(k({},r.items),{},{data:f})})}(e,t,i||Object(C.getReportTableData)({endpoint:r,query:c,select:e,tableQuery:s,filters:l,advancedFilters:u,defaultDateRange:p}));return{primaryData:b,ids:o&&f.items.data?f.items.data.map((function(e){return e[o]})):T,tableData:f,query:c}})),Object(O.withDispatch)((function(e){var t=e(C.EXPORT_STORE_NAME).startExport;return{createNotice:e("core/notices").createNotice,startExport:t}})))(A)},561:function(e,t,r){}}]);
1
+ (window.__wcAdmin_webpackJsonp=window.__wcAdmin_webpackJsonp||[]).push([[0],{498:function(e,t,r){"use strict";r.d(t,"b",(function(){return l})),r.d(t,"a",(function(){return u}));var a=r(0),n=r(43),o=r(111),c=r.n(o),i=r(25),s=c()(i.b),l=function(e){var t=s.getCurrencyConfig(),r=Object(n.applyFilters)("woocommerce_admin_report_currency",t,e);return c()(r)},u=Object(a.createContext)(s)},499:function(e,t,r){"use strict";var a=r(12),n=r.n(a),o=r(13),c=r.n(o),i=r(14),s=r.n(i),l=r(15),u=r.n(l),d=r(7),p=r.n(d),m=r(0),b=r(2),f=r(1),y=r.n(f),g=r(47),O=r(25);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,a=p()(e);if(t){var n=p()(this).constructor;r=Reflect.construct(a,arguments,n)}else r=a.apply(this,arguments);return u()(this,r)}}var j=function(e){s()(r,e);var t=h(r);function r(){return n()(this,r),t.apply(this,arguments)}return c()(r,[{key:"render",value:function(){var e,t,r,a,n=this.props,o=n.className,c=n.isError,i=n.isEmpty;return c?(e=Object(b.__)("There was an error getting your stats. Please try again.","woocommerce-admin"),t=Object(b.__)("Reload","woocommerce-admin"),a=function(){window.location.reload()}):i&&(e=Object(b.__)("No results could be found for this date range.","woocommerce-admin"),t=Object(b.__)("View Orders","woocommerce-admin"),r=Object(O.f)("edit.php?post_type=shop_order")),Object(m.createElement)(g.EmptyContent,{className:o,title:e,actionLabel:t,actionURL:r,actionCallback:a})}}]),r}(m.Component);j.propTypes={className:y.a.string,isError:y.a.bool,isEmpty:y.a.bool},j.defaultProps={className:""},t.a=j},505:function(e,t,r){"use strict";var a=r(5),n=r.n(a),o=r(12),c=r.n(o),i=r(13),s=r.n(i),l=r(9),u=r.n(l),d=r(14),p=r.n(d),m=r(15),b=r.n(m),f=r(7),y=r.n(f),g=r(0),O=r(20),h=r(1),j=r.n(h),v=r(3),_=r(11),w=r(47),S=r(25),E=r(22),C=r(29),D=r(27),R=r(498),P=r(76);function F(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,a)}return r}function k(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?F(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):F(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,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 r,a=y()(e);if(t){var n=y()(this).constructor;r=Reflect.construct(a,arguments,n)}else r=a.apply(this,arguments);return b()(this,r)}}var x=function(e){p()(r,e);var t=q(r);function r(){var e;return c()(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",k({report:r},Object(v.omitBy)(e,v.isUndefined)))}},{key:"onFilterSelect",value:function(e){var t=this.props,r=t.report,a=t.addCesSurveyForAnalytics,n=e.filter||e["filter-variations"];["single_product","single_category","single_coupon","single_variation"].includes(n)&&a(),Object(D.recordEvent)("analytics_filter",{report:r,filter:e.filter||"all"})}},{key:"onAdvancedFilterAction",value:function(e,t){var r=this.props,a=r.report,n=r.addCesSurveyForAnalytics;switch(e){case"add":Object(D.recordEvent)("analytics_filters_add",{report:a,filter:t.key});break;case"remove":Object(D.recordEvent)("analytics_filters_remove",{report:a,filter:t.key});break;case"filter":var o=Object.keys(t).reduce((function(e,r){return e[Object(v.snakeCase)(r)]=t[r],e}),{});n(),Object(D.recordEvent)("analytics_filters_filter",k({report:a},o));break;case"clear_all":Object(D.recordEvent)("analytics_filters_clear_all",{report:a});break;case"match":Object(D.recordEvent)("analytics_filters_all_any",{report:a,value:t.match})}}},{key:"render",value:function(){var e=this.props,t=e.advancedFilters,r=e.filters,a=e.path,n=e.query,o=e.showDatePicker,c=e.defaultDateRange,i=Object(C.getDateParamsFromQuery)(n,c),s=i.period,l=i.compare,u=i.before,d=i.after,p=Object(C.getCurrentDates)(n,c),m={period:s,compare:l,before:u,after:d,primaryDate:p.primary,secondaryDate:p.secondary},b=this.context;return Object(g.createElement)(w.ReportFilters,{query:n,siteLocale:S.c.siteLocale,currency:b.getCurrencyConfig(),path:a,filters:r,advancedFilters:t,showDatePicker:o,onDateSelect:this.onDateSelect,onFilterSelect:this.onFilterSelect,onAdvancedFilterAction:this.onAdvancedFilterAction,dateQuery:m,isoDateFormat:C.isoDateFormat})}}]),r}(g.Component);x.contextType=R.a,t.a=Object(O.compose)(Object(_.withSelect)((function(e){return{defaultDateRange:e(E.SETTINGS_STORE_NAME).getSetting("wc_admin","wcAdminSettings").woocommerce_default_date_range}})),Object(_.withDispatch)((function(e){return{addCesSurveyForAnalytics:e(P.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}},506:function(e,t,r){"use strict";var a=r(24),n=r.n(a),o=r(19),c=r.n(o),i=r(5),s=r.n(i),l=r(18),u=r.n(l),d=r(34),p=r.n(d),m=r(0),b=r(4),f=r(43),y=r(20),g=r(121),O=r(11),h=r(3),j=r(2),v=r(1),_=r.n(v),w=r(47),S=r(21),E=r(481),C=r(22),D=r(27),R=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"}))},P=r(499);function F(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,a)}return r}function k(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?F(Object(r),!0).forEach((function(t){s()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):F(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}r(574);function q(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,a)}return r}function x(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?q(Object(r),!0).forEach((function(t){s()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):q(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var A=function(e){var t=e.getHeadersContent,r=e.getRowsContent,a=e.getSummary,o=e.isRequesting,i=e.primaryData,l=e.tableData,d=e.endpoint,y=(e.itemIdField,e.tableQuery,e.compareBy),O=e.compareParam,v=e.searchBy,_=e.labels,F=void 0===_?{}:_,k=p()(e,["getHeadersContent","getRowsContent","getSummary","isRequesting","primaryData","tableData","endpoint","itemIdField","tableQuery","compareBy","compareParam","searchBy","labels"]),q=e.query,A=e.columnPrefsKey,T=l.items,N=l.query,Q=q[O]?Object(S.getIdsFromQuery)(q[y]):[],B=Object(m.useState)(Q),I=u()(B,2),L=I[0],M=I[1],U=Object(m.useRef)(null),V=Object(C.useUserPreferences)(),z=V.updateUserPreferences,H=p()(V,["updateUserPreferences"]);if(l.isError||i.isError)return Object(m.createElement)(P.a,{isError:!0});var G=[];A&&(G=H&&H[A]?H[A]:G);var J,K,Y,W,X=function(e,n,o){var c=a?a(n,o):null;return Object(f.applyFilters)("woocommerce_admin_report_table",{endpoint:d,headers:t(),rows:r(e),totals:n,summary:c,items:T})},Z=function(t){var r=e.ids;M(t?r:[])},$=function(t,r){var a=e.ids;if(r)M(Object(h.uniq)([a[t]].concat(c()(L))));else{var n=L.indexOf(a[t]);M([].concat(c()(L.slice(0,n)),c()(L.slice(n+1))))}},ee=function(t){var r=e.ids,a=void 0===r?[]:r,n=-1!==L.indexOf(a[t]);return{display:Object(m.createElement)(b.CheckboxControl,{onChange:Object(h.partial)($,t),checked:n}),value:!1}},te=o||l.isRequesting||i.isRequesting,re=Object(h.get)(i,["data","totals"],{}),ae=T.totalResults,ne=ae>0,oe=Object(S.getSearchWords)(q).map((function(e){return{key:e,label:e}})),ce=T.data,ie=X(ce,re,ae),se=ie.headers,le=ie.rows,ue=ie.summary;y&&(le=le.map((function(e,t){return[ee(t)].concat(c()(e))})),se=[(J=e.ids,K=void 0===J?[]:J,Y=K.length>0,W=Y&&K.length===L.length,{cellClassName:"is-checkbox-column",key:"compare",label:Object(m.createElement)(b.CheckboxControl,{onChange:Z,"aria-label":Object(j.__)("Select All"),checked:W,disabled:!Y}),required:!0})].concat(c()(se)));var de=function(e,t){return t?e.map((function(e){return x(x({},e),{},{visible:e.required||!t.includes(e.key)})})):e.map((function(e){return x(x({},e),{},{visible:e.required||!e.hiddenByDefault})}))}(se,G);return Object(m.createElement)(m.Fragment,null,Object(m.createElement)("div",{className:"woocommerce-report-table__scroll-point",ref:U,"aria-hidden":!0}),Object(m.createElement)(w.TableCard,n()({className:"woocommerce-report-table",hasSearch:!!v,actions:[y&&Object(m.createElement)(w.CompareButton,{key:"compare",className:"woocommerce-table__compare",count:L.length,helpText:F.helpText||Object(j.__)("Check at least two items below to compare","woocommerce-admin"),onClick:function(){y&&Object(S.onQueryChange)("compare")(y,O,L.join(","))},disabled:!ne},F.compareButton||Object(j.__)("Compare","woocommerce-admin")),v&&Object(m.createElement)(w.Search,{allowFreeTextSearch:!0,inlineTags:!0,key:"search",onChange:function(t){var r,a=e.baseSearchQuery,n=t.map((function(e){return e.label.replace(",","%2C")}));n.length?Object(S.updateQueryString)(x(x((r={filter:void 0},s()(r,O,void 0),s()(r,v,void 0),r),a),{},{search:Object(h.uniq)(n).join(",")})):Object(S.updateQueryString)({search:void 0});Object(D.recordEvent)("analytics_table_filter",{report:d})},placeholder:F.placeholder||Object(j.__)("Search by item name","woocommerce-admin"),selected:oe,showClearButton:!0,type:v,disabled:!ne}),ne&&Object(m.createElement)(b.Button,{key:"download",className:"woocommerce-table__download-button",disabled:te,onClick:function(){var t=e.createNotice,r=e.startExport,a=e.title,n=Object.assign({},q),o=T.data,c=T.totalResults,i="browser";if(delete n.extended_info,n.search&&delete n[v],o&&o.length===c){var s=X(o,c),l=s.headers,u=s.rows;Object(E.downloadCSVFile)(Object(E.generateCSVFileName)(a,n),Object(E.generateCSVDataFromTable)(l,u))}else i="email",r(d,N).then((function(){return t("success",Object(j.sprintf)(Object(j.__)("Your %s Report will be emailed to you.","woocommerce-admin"),a))})).catch((function(e){return t("error",e.message||Object(j.sprintf)(Object(j.__)("There was a problem exporting your %s Report. Please try again.","woocommerce-admin"),a))}));Object(D.recordEvent)("analytics_table_download",{report:d,rows:c,downloadType:i})}},Object(m.createElement)(R,null),Object(m.createElement)("span",{className:"woocommerce-table__download-button__label"},F.downloadButton||Object(j.__)("Download","woocommerce-admin")))],headers:de,isLoading:te,onQueryChange:S.onQueryChange,onColumnsChange:function(e,t){var r=se.map((function(e){return e.key})).filter((function(t){return!e.includes(t)}));if(A){var a=s()({},A,r);z(a)}if(t){var n={report:d,column:t,status:e.includes(t)?"on":"off"};Object(D.recordEvent)("analytics_table_header_toggle",n)}},onSort:function(e,t){Object(S.onQueryChange)("sort")(e,t);var r={report:d,column:e,direction:t};Object(D.recordEvent)("analytics_table_sort",r)},onPageChange:function(e,t){U.current.scrollIntoView();var r=U.current.nextSibling.querySelector(".woocommerce-table__table"),a=g.a.focusable.find(r);a.length&&a[0].focus(),t&&("goto"===t?Object(D.recordEvent)("analytics_table_go_to_page",{report:d,page:e}):Object(D.recordEvent)("analytics_table_page_click",{report:d,direction:t}))},rows:le,rowsPerPage:parseInt(N.per_page,10)||C.QUERY_DEFAULTS.pageSize,summary:ue,totalRows:ae},k)))};A.propTypes={baseSearchQuery:_.a.object,compareBy:_.a.string,compareParam:_.a.string,columnPrefsKey:_.a.string,endpoint:_.a.string,extendItemsMethodNames:_.a.shape({getError:_.a.string,isRequesting:_.a.string,load:_.a.string}),extendedItemsStoreName:_.a.string,getHeadersContent:_.a.func.isRequired,getRowsContent:_.a.func.isRequired,getSummary:_.a.func,itemIdField:_.a.string,labels:_.a.shape({compareButton:_.a.string,downloadButton:_.a.string,helpText:_.a.string,placeholder:_.a.string}),primaryData:_.a.object,searchBy:_.a.string,summaryFields:_.a.arrayOf(_.a.string),tableData:_.a.object.isRequired,tableQuery:_.a.object,title:_.a.string.isRequired},A.defaultProps={primaryData:{},tableData:{items:{data:[],totalResults:0},query:{}},tableQuery:{},compareParam:"filter",downloadable:!1,onSearch:h.noop,baseSearchQuery:{}};var T=[],N={};t.a=Object(y.compose)(Object(O.withSelect)((function(e,t){var r=t.endpoint,a=t.getSummary,n=t.isRequesting,o=t.itemIdField,c=t.query,i=t.tableData,s=t.tableQuery,l=t.filters,u=t.advancedFilters,d=t.summaryFields;if(n||c.search&&(!c[r]||!c[r].length))return N;var p=e(C.SETTINGS_STORE_NAME).getSetting("wc_admin","wcAdminSettings").woocommerce_default_date_range,m="categories"===r?"products":r,b=a?Object(C.getReportChartData)({endpoint:m,dataType:"primary",query:c,select:e,filters:l,advancedFilters:u,defaultDateRange:p,fields:d}):N,f=function(e,t,r){var a=t.extendItemsMethodNames,n=t.extendedItemsStoreName,o=t.itemIdField,c=r.items.data;if(!(Array.isArray(c)&&c.length&&a&&o))return r;var i=e(n),s=i[a.getError],l=i[a.isRequesting],u=i[a.load],d={include:c.map((function(e){return e[o]})).join(","),per_page:c.length},p=u(d),m=!!l&&l(d),b=!!s&&s(d),f=c.map((function(e){var t=Object(h.first)(p.filter((function(t){return e.id===t.id})));return k(k({},e),t)})),y=r.isRequesting||m,g=r.isError||b;return k(k({},r),{},{isRequesting:y,isError:g,items:k(k({},r.items),{},{data:f})})}(e,t,i||Object(C.getReportTableData)({endpoint:r,query:c,select:e,tableQuery:s,filters:l,advancedFilters:u,defaultDateRange:p}));return{primaryData:b,ids:o&&f.items.data?f.items.data.map((function(e){return e[o]})):T,tableData:f,query:c}})),Object(O.withDispatch)((function(e){var t=e(C.EXPORT_STORE_NAME).startExport;return{createNotice:e("core/notices").createNotice,startExport:t}})))(A)},574:function(e,t,r){}}]);
dist/chunks/1.js CHANGED
@@ -1,6 +1,6 @@
1
  (window["__wcAdmin_webpackJsonp"] = window["__wcAdmin_webpackJsonp"] || []).push([[1],{
2
 
3
- /***/ 508:
4
  /***/ (function(module, exports, __webpack_require__) {
5
 
6
  /*! @license DOMPurify | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.2.2/LICENSE */
1
  (window["__wcAdmin_webpackJsonp"] = window["__wcAdmin_webpackJsonp"] || []).push([[1],{
2
 
3
+ /***/ 513:
4
  /***/ (function(module, exports, __webpack_require__) {
5
 
6
  /*! @license DOMPurify | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.2.2/LICENSE */
dist/chunks/1.min.js CHANGED
@@ -1,2 +1,2 @@
1
  /*! For license information please see 1.min.js.LICENSE.txt */
2
- (window.__wcAdmin_webpackJsonp=window.__wcAdmin_webpackJsonp||[]).push([[1],{508:function(e,t,n){e.exports=function(){"use strict";var e=Object.hasOwnProperty,t=Object.setPrototypeOf,n=Object.isFrozen,r=Object.getPrototypeOf,o=Object.getOwnPropertyDescriptor,i=Object.freeze,a=Object.seal,l=Object.create,c="undefined"!=typeof Reflect&&Reflect,s=c.apply,u=c.construct;s||(s=function(e,t,n){return e.apply(t,n)}),i||(i=function(e){return e}),a||(a=function(e){return e}),u||(u=function(e,t){return new(Function.prototype.bind.apply(e,[null].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(t))))});var m,f=w(Array.prototype.forEach),p=w(Array.prototype.pop),d=w(Array.prototype.push),g=w(String.prototype.toLowerCase),h=w(String.prototype.match),y=w(String.prototype.replace),v=w(String.prototype.indexOf),b=w(String.prototype.trim),T=w(RegExp.prototype.test),A=(m=TypeError,function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return u(m,t)});function w(e){return function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return s(e,t,r)}}function x(e,r){t&&t(e,null);for(var o=r.length;o--;){var i=r[o];if("string"==typeof i){var a=g(i);a!==i&&(n(r)||(r[o]=a),i=a)}e[i]=!0}return e}function S(t){var n=l(null),r=void 0;for(r in t)s(e,t,[r])&&(n[r]=t[r]);return n}function _(e,t){for(;null!==e;){var n=o(e,t);if(n){if(n.get)return w(n.get);if("function"==typeof n.value)return w(n.value)}e=r(e)}return null}var k=i(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),R=i(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),D=i(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),E=i(["animate","color-profile","cursor","discard","fedropshadow","feimage","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),N=i(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),L=i(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),O=i(["#text"]),M=i(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns"]),F=i(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),C=i(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),I=i(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),z=a(/\{\{[\s\S]*|[\s\S]*\}\}/gm),H=a(/<%[\s\S]*|[\s\S]*%>/gm),U=a(/^data-[\-\w.\u00B7-\uFFFF]/),j=a(/^aria-[\-\w]+$/),P=a(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),B=a(/^(?:\w+script|data):/i),W=a(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),G="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};function q(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var K=function(){return"undefined"==typeof window?null:window},V=function(e,t){if("object"!==(void 0===e?"undefined":G(e))||"function"!=typeof e.createPolicy)return null;var n=null;t.currentScript&&t.currentScript.hasAttribute("data-tt-policy-suffix")&&(n=t.currentScript.getAttribute("data-tt-policy-suffix"));var r="dompurify"+(n?"#"+n:"");try{return e.createPolicy(r,{createHTML:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+r+" could not be created."),null}};return function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:K(),n=function(t){return e(t)};if(n.version="2.2.6",n.removed=[],!t||!t.document||9!==t.document.nodeType)return n.isSupported=!1,n;var r=t.document,o=t.document,a=t.DocumentFragment,l=t.HTMLTemplateElement,c=t.Node,s=t.Element,u=t.NodeFilter,m=t.NamedNodeMap,w=void 0===m?t.NamedNodeMap||t.MozNamedAttrMap:m,Y=t.Text,J=t.Comment,X=t.DOMParser,$=t.trustedTypes,Z=s.prototype,Q=_(Z,"cloneNode"),ee=_(Z,"nextSibling"),te=_(Z,"childNodes"),ne=_(Z,"parentNode");if("function"==typeof l){var re=o.createElement("template");re.content&&re.content.ownerDocument&&(o=re.content.ownerDocument)}var oe=V($,r),ie=oe&&ze?oe.createHTML(""):"",ae=o,le=ae.implementation,ce=ae.createNodeIterator,se=ae.getElementsByTagName,ue=ae.createDocumentFragment,me=r.importNode,fe={};try{fe=S(o).documentMode?o.documentMode:{}}catch(e){}var pe={};n.isSupported=le&&void 0!==le.createHTMLDocument&&9!==fe;var de=z,ge=H,he=U,ye=j,ve=B,be=W,Te=P,Ae=null,we=x({},[].concat(q(k),q(R),q(D),q(N),q(O))),xe=null,Se=x({},[].concat(q(M),q(F),q(C),q(I))),_e=null,ke=null,Re=!0,De=!0,Ee=!1,Ne=!1,Le=!1,Oe=!1,Me=!1,Fe=!1,Ce=!1,Ie=!0,ze=!1,He=!0,Ue=!0,je=!1,Pe={},Be=x({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),We=null,Ge=x({},["audio","video","img","source","image","track"]),qe=null,Ke=x({},["alt","class","for","id","label","name","pattern","placeholder","summary","title","value","style","xmlns"]),Ve=null,Ye=o.createElement("form"),Je=function(e){Ve&&Ve===e||(e&&"object"===(void 0===e?"undefined":G(e))||(e={}),e=S(e),Ae="ALLOWED_TAGS"in e?x({},e.ALLOWED_TAGS):we,xe="ALLOWED_ATTR"in e?x({},e.ALLOWED_ATTR):Se,qe="ADD_URI_SAFE_ATTR"in e?x(S(Ke),e.ADD_URI_SAFE_ATTR):Ke,We="ADD_DATA_URI_TAGS"in e?x(S(Ge),e.ADD_DATA_URI_TAGS):Ge,_e="FORBID_TAGS"in e?x({},e.FORBID_TAGS):{},ke="FORBID_ATTR"in e?x({},e.FORBID_ATTR):{},Pe="USE_PROFILES"in e&&e.USE_PROFILES,Re=!1!==e.ALLOW_ARIA_ATTR,De=!1!==e.ALLOW_DATA_ATTR,Ee=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Ne=e.SAFE_FOR_TEMPLATES||!1,Le=e.WHOLE_DOCUMENT||!1,Fe=e.RETURN_DOM||!1,Ce=e.RETURN_DOM_FRAGMENT||!1,Ie=!1!==e.RETURN_DOM_IMPORT,ze=e.RETURN_TRUSTED_TYPE||!1,Me=e.FORCE_BODY||!1,He=!1!==e.SANITIZE_DOM,Ue=!1!==e.KEEP_CONTENT,je=e.IN_PLACE||!1,Te=e.ALLOWED_URI_REGEXP||Te,Ne&&(De=!1),Ce&&(Fe=!0),Pe&&(Ae=x({},[].concat(q(O))),xe=[],!0===Pe.html&&(x(Ae,k),x(xe,M)),!0===Pe.svg&&(x(Ae,R),x(xe,F),x(xe,I)),!0===Pe.svgFilters&&(x(Ae,D),x(xe,F),x(xe,I)),!0===Pe.mathMl&&(x(Ae,N),x(xe,C),x(xe,I))),e.ADD_TAGS&&(Ae===we&&(Ae=S(Ae)),x(Ae,e.ADD_TAGS)),e.ADD_ATTR&&(xe===Se&&(xe=S(xe)),x(xe,e.ADD_ATTR)),e.ADD_URI_SAFE_ATTR&&x(qe,e.ADD_URI_SAFE_ATTR),Ue&&(Ae["#text"]=!0),Le&&x(Ae,["html","head","body"]),Ae.table&&(x(Ae,["tbody"]),delete _e.tbody),i&&i(e),Ve=e)},Xe=x({},["mi","mo","mn","ms","mtext"]),$e=x({},["foreignobject","desc","title","annotation-xml"]),Ze=x({},R);x(Ze,D),x(Ze,E);var Qe=x({},N);x(Qe,L);var et="http://www.w3.org/1998/Math/MathML",tt="http://www.w3.org/2000/svg",nt="http://www.w3.org/1999/xhtml",rt=function(e){var t=ne(e);t&&t.tagName||(t={namespaceURI:nt,tagName:"template"});var n=g(e.tagName),r=g(t.tagName);if(e.namespaceURI===tt)return t.namespaceURI===nt?"svg"===n:t.namespaceURI===et?"svg"===n&&("annotation-xml"===r||Xe[r]):Boolean(Ze[n]);if(e.namespaceURI===et)return t.namespaceURI===nt?"math"===n:t.namespaceURI===tt?"math"===n&&$e[r]:Boolean(Qe[n]);if(e.namespaceURI===nt){if(t.namespaceURI===tt&&!$e[r])return!1;if(t.namespaceURI===et&&!Xe[r])return!1;var o=x({},["title","style","font","a","script"]);return!Qe[n]&&(o[n]||!Ze[n])}return!1},ot=function(e){d(n.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=ie}catch(t){e.remove()}}},it=function(e,t){try{d(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){d(n.removed,{attribute:null,from:t})}t.removeAttribute(e)},at=function(e){var t=void 0,n=void 0;if(Me)e="<remove></remove>"+e;else{var r=h(e,/^[\r\n\t ]+/);n=r&&r[0]}var i=oe?oe.createHTML(e):e;try{t=(new X).parseFromString(i,"text/html")}catch(e){}if(!t||!t.documentElement){var a=(t=le.createHTMLDocument("")).body;a.parentNode.removeChild(a.parentNode.firstElementChild),a.outerHTML=i}return e&&n&&t.body.insertBefore(o.createTextNode(n),t.body.childNodes[0]||null),se.call(t,Le?"html":"body")[0]},lt=function(e){return ce.call(e.ownerDocument||e,e,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT,(function(){return u.FILTER_ACCEPT}),!1)},ct=function(e){return!(e instanceof Y||e instanceof J||"string"==typeof e.nodeName&&"string"==typeof e.textContent&&"function"==typeof e.removeChild&&e.attributes instanceof w&&"function"==typeof e.removeAttribute&&"function"==typeof e.setAttribute&&"string"==typeof e.namespaceURI&&"function"==typeof e.insertBefore)},st=function(e){return"object"===(void 0===c?"undefined":G(c))?e instanceof c:e&&"object"===(void 0===e?"undefined":G(e))&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},ut=function(e,t,r){pe[e]&&f(pe[e],(function(e){e.call(n,t,r,Ve)}))},mt=function(e){var t=void 0;if(ut("beforeSanitizeElements",e,null),ct(e))return ot(e),!0;if(h(e.nodeName,/[\u0080-\uFFFF]/))return ot(e),!0;var r=g(e.nodeName);if(ut("uponSanitizeElement",e,{tagName:r,allowedTags:Ae}),!st(e.firstElementChild)&&(!st(e.content)||!st(e.content.firstElementChild))&&T(/<[/\w]/g,e.innerHTML)&&T(/<[/\w]/g,e.textContent))return ot(e),!0;if(!Ae[r]||_e[r]){if(Ue&&!Be[r])for(var o=ne(e),i=te(e),a=i.length-1;a>=0;--a)o.insertBefore(Q(i[a],!0),ee(e));return ot(e),!0}return e instanceof s&&!rt(e)?(ot(e),!0):"noscript"!==r&&"noembed"!==r||!T(/<\/no(script|embed)/i,e.innerHTML)?(Ne&&3===e.nodeType&&(t=e.textContent,t=y(t,de," "),t=y(t,ge," "),e.textContent!==t&&(d(n.removed,{element:e.cloneNode()}),e.textContent=t)),ut("afterSanitizeElements",e,null),!1):(ot(e),!0)},ft=function(e,t,n){if(He&&("id"===t||"name"===t)&&(n in o||n in Ye))return!1;if(De&&T(he,t));else if(Re&&T(ye,t));else{if(!xe[t]||ke[t])return!1;if(qe[t]);else if(T(Te,y(n,be,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==v(n,"data:")||!We[e])if(Ee&&!T(ve,y(n,be,"")));else if(n)return!1}return!0},pt=function(e){var t=void 0,r=void 0,o=void 0,i=void 0;ut("beforeSanitizeAttributes",e,null);var a=e.attributes;if(a){var l={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:xe};for(i=a.length;i--;){var c=t=a[i],s=c.name,u=c.namespaceURI;if(r=b(t.value),o=g(s),l.attrName=o,l.attrValue=r,l.keepAttr=!0,l.forceKeepAttr=void 0,ut("uponSanitizeAttribute",e,l),r=l.attrValue,!l.forceKeepAttr&&(it(s,e),l.keepAttr))if(T(/\/>/i,r))it(s,e);else{Ne&&(r=y(r,de," "),r=y(r,ge," "));var m=e.nodeName.toLowerCase();if(ft(m,o,r))try{u?e.setAttributeNS(u,s,r):e.setAttribute(s,r),p(n.removed)}catch(e){}}}ut("afterSanitizeAttributes",e,null)}},dt=function e(t){var n=void 0,r=lt(t);for(ut("beforeSanitizeShadowDOM",t,null);n=r.nextNode();)ut("uponSanitizeShadowNode",n,null),mt(n)||(n.content instanceof a&&e(n.content),pt(n));ut("afterSanitizeShadowDOM",t,null)};return n.sanitize=function(e,o){var i=void 0,l=void 0,s=void 0,u=void 0,m=void 0;if(e||(e="\x3c!--\x3e"),"string"!=typeof e&&!st(e)){if("function"!=typeof e.toString)throw A("toString is not a function");if("string"!=typeof(e=e.toString()))throw A("dirty is not a string, aborting")}if(!n.isSupported){if("object"===G(t.toStaticHTML)||"function"==typeof t.toStaticHTML){if("string"==typeof e)return t.toStaticHTML(e);if(st(e))return t.toStaticHTML(e.outerHTML)}return e}if(Oe||Je(o),n.removed=[],"string"==typeof e&&(je=!1),je);else if(e instanceof c)1===(l=(i=at("\x3c!----\x3e")).ownerDocument.importNode(e,!0)).nodeType&&"BODY"===l.nodeName||"HTML"===l.nodeName?i=l:i.appendChild(l);else{if(!Fe&&!Ne&&!Le&&-1===e.indexOf("<"))return oe&&ze?oe.createHTML(e):e;if(!(i=at(e)))return Fe?null:ie}i&&Me&&ot(i.firstChild);for(var f=lt(je?e:i);s=f.nextNode();)3===s.nodeType&&s===u||mt(s)||(s.content instanceof a&&dt(s.content),pt(s),u=s);if(u=null,je)return e;if(Fe){if(Ce)for(m=ue.call(i.ownerDocument);i.firstChild;)m.appendChild(i.firstChild);else m=i;return Ie&&(m=me.call(r,m,!0)),m}var p=Le?i.outerHTML:i.innerHTML;return Ne&&(p=y(p,de," "),p=y(p,ge," ")),oe&&ze?oe.createHTML(p):p},n.setConfig=function(e){Je(e),Oe=!0},n.clearConfig=function(){Ve=null,Oe=!1},n.isValidAttribute=function(e,t,n){Ve||Je({});var r=g(e),o=g(t);return ft(r,o,n)},n.addHook=function(e,t){"function"==typeof t&&(pe[e]=pe[e]||[],d(pe[e],t))},n.removeHook=function(e){pe[e]&&p(pe[e])},n.removeHooks=function(e){pe[e]&&(pe[e]=[])},n.removeAllHooks=function(){pe={}},n}()}()}}]);
1
  /*! For license information please see 1.min.js.LICENSE.txt */
2
+ (window.__wcAdmin_webpackJsonp=window.__wcAdmin_webpackJsonp||[]).push([[1],{513:function(e,t,n){e.exports=function(){"use strict";var e=Object.hasOwnProperty,t=Object.setPrototypeOf,n=Object.isFrozen,r=Object.getPrototypeOf,o=Object.getOwnPropertyDescriptor,i=Object.freeze,a=Object.seal,l=Object.create,c="undefined"!=typeof Reflect&&Reflect,s=c.apply,u=c.construct;s||(s=function(e,t,n){return e.apply(t,n)}),i||(i=function(e){return e}),a||(a=function(e){return e}),u||(u=function(e,t){return new(Function.prototype.bind.apply(e,[null].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(t))))});var m,f=w(Array.prototype.forEach),p=w(Array.prototype.pop),d=w(Array.prototype.push),g=w(String.prototype.toLowerCase),h=w(String.prototype.match),y=w(String.prototype.replace),v=w(String.prototype.indexOf),b=w(String.prototype.trim),T=w(RegExp.prototype.test),A=(m=TypeError,function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return u(m,t)});function w(e){return function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return s(e,t,r)}}function x(e,r){t&&t(e,null);for(var o=r.length;o--;){var i=r[o];if("string"==typeof i){var a=g(i);a!==i&&(n(r)||(r[o]=a),i=a)}e[i]=!0}return e}function S(t){var n=l(null),r=void 0;for(r in t)s(e,t,[r])&&(n[r]=t[r]);return n}function _(e,t){for(;null!==e;){var n=o(e,t);if(n){if(n.get)return w(n.get);if("function"==typeof n.value)return w(n.value)}e=r(e)}return null}var k=i(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),R=i(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),D=i(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),E=i(["animate","color-profile","cursor","discard","fedropshadow","feimage","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),N=i(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),L=i(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),O=i(["#text"]),M=i(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns"]),F=i(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),C=i(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),I=i(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),z=a(/\{\{[\s\S]*|[\s\S]*\}\}/gm),H=a(/<%[\s\S]*|[\s\S]*%>/gm),U=a(/^data-[\-\w.\u00B7-\uFFFF]/),j=a(/^aria-[\-\w]+$/),P=a(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),B=a(/^(?:\w+script|data):/i),W=a(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),G="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};function q(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var K=function(){return"undefined"==typeof window?null:window},V=function(e,t){if("object"!==(void 0===e?"undefined":G(e))||"function"!=typeof e.createPolicy)return null;var n=null;t.currentScript&&t.currentScript.hasAttribute("data-tt-policy-suffix")&&(n=t.currentScript.getAttribute("data-tt-policy-suffix"));var r="dompurify"+(n?"#"+n:"");try{return e.createPolicy(r,{createHTML:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+r+" could not be created."),null}};return function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:K(),n=function(t){return e(t)};if(n.version="2.2.6",n.removed=[],!t||!t.document||9!==t.document.nodeType)return n.isSupported=!1,n;var r=t.document,o=t.document,a=t.DocumentFragment,l=t.HTMLTemplateElement,c=t.Node,s=t.Element,u=t.NodeFilter,m=t.NamedNodeMap,w=void 0===m?t.NamedNodeMap||t.MozNamedAttrMap:m,Y=t.Text,J=t.Comment,X=t.DOMParser,$=t.trustedTypes,Z=s.prototype,Q=_(Z,"cloneNode"),ee=_(Z,"nextSibling"),te=_(Z,"childNodes"),ne=_(Z,"parentNode");if("function"==typeof l){var re=o.createElement("template");re.content&&re.content.ownerDocument&&(o=re.content.ownerDocument)}var oe=V($,r),ie=oe&&ze?oe.createHTML(""):"",ae=o,le=ae.implementation,ce=ae.createNodeIterator,se=ae.getElementsByTagName,ue=ae.createDocumentFragment,me=r.importNode,fe={};try{fe=S(o).documentMode?o.documentMode:{}}catch(e){}var pe={};n.isSupported=le&&void 0!==le.createHTMLDocument&&9!==fe;var de=z,ge=H,he=U,ye=j,ve=B,be=W,Te=P,Ae=null,we=x({},[].concat(q(k),q(R),q(D),q(N),q(O))),xe=null,Se=x({},[].concat(q(M),q(F),q(C),q(I))),_e=null,ke=null,Re=!0,De=!0,Ee=!1,Ne=!1,Le=!1,Oe=!1,Me=!1,Fe=!1,Ce=!1,Ie=!0,ze=!1,He=!0,Ue=!0,je=!1,Pe={},Be=x({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),We=null,Ge=x({},["audio","video","img","source","image","track"]),qe=null,Ke=x({},["alt","class","for","id","label","name","pattern","placeholder","summary","title","value","style","xmlns"]),Ve=null,Ye=o.createElement("form"),Je=function(e){Ve&&Ve===e||(e&&"object"===(void 0===e?"undefined":G(e))||(e={}),e=S(e),Ae="ALLOWED_TAGS"in e?x({},e.ALLOWED_TAGS):we,xe="ALLOWED_ATTR"in e?x({},e.ALLOWED_ATTR):Se,qe="ADD_URI_SAFE_ATTR"in e?x(S(Ke),e.ADD_URI_SAFE_ATTR):Ke,We="ADD_DATA_URI_TAGS"in e?x(S(Ge),e.ADD_DATA_URI_TAGS):Ge,_e="FORBID_TAGS"in e?x({},e.FORBID_TAGS):{},ke="FORBID_ATTR"in e?x({},e.FORBID_ATTR):{},Pe="USE_PROFILES"in e&&e.USE_PROFILES,Re=!1!==e.ALLOW_ARIA_ATTR,De=!1!==e.ALLOW_DATA_ATTR,Ee=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Ne=e.SAFE_FOR_TEMPLATES||!1,Le=e.WHOLE_DOCUMENT||!1,Fe=e.RETURN_DOM||!1,Ce=e.RETURN_DOM_FRAGMENT||!1,Ie=!1!==e.RETURN_DOM_IMPORT,ze=e.RETURN_TRUSTED_TYPE||!1,Me=e.FORCE_BODY||!1,He=!1!==e.SANITIZE_DOM,Ue=!1!==e.KEEP_CONTENT,je=e.IN_PLACE||!1,Te=e.ALLOWED_URI_REGEXP||Te,Ne&&(De=!1),Ce&&(Fe=!0),Pe&&(Ae=x({},[].concat(q(O))),xe=[],!0===Pe.html&&(x(Ae,k),x(xe,M)),!0===Pe.svg&&(x(Ae,R),x(xe,F),x(xe,I)),!0===Pe.svgFilters&&(x(Ae,D),x(xe,F),x(xe,I)),!0===Pe.mathMl&&(x(Ae,N),x(xe,C),x(xe,I))),e.ADD_TAGS&&(Ae===we&&(Ae=S(Ae)),x(Ae,e.ADD_TAGS)),e.ADD_ATTR&&(xe===Se&&(xe=S(xe)),x(xe,e.ADD_ATTR)),e.ADD_URI_SAFE_ATTR&&x(qe,e.ADD_URI_SAFE_ATTR),Ue&&(Ae["#text"]=!0),Le&&x(Ae,["html","head","body"]),Ae.table&&(x(Ae,["tbody"]),delete _e.tbody),i&&i(e),Ve=e)},Xe=x({},["mi","mo","mn","ms","mtext"]),$e=x({},["foreignobject","desc","title","annotation-xml"]),Ze=x({},R);x(Ze,D),x(Ze,E);var Qe=x({},N);x(Qe,L);var et="http://www.w3.org/1998/Math/MathML",tt="http://www.w3.org/2000/svg",nt="http://www.w3.org/1999/xhtml",rt=function(e){var t=ne(e);t&&t.tagName||(t={namespaceURI:nt,tagName:"template"});var n=g(e.tagName),r=g(t.tagName);if(e.namespaceURI===tt)return t.namespaceURI===nt?"svg"===n:t.namespaceURI===et?"svg"===n&&("annotation-xml"===r||Xe[r]):Boolean(Ze[n]);if(e.namespaceURI===et)return t.namespaceURI===nt?"math"===n:t.namespaceURI===tt?"math"===n&&$e[r]:Boolean(Qe[n]);if(e.namespaceURI===nt){if(t.namespaceURI===tt&&!$e[r])return!1;if(t.namespaceURI===et&&!Xe[r])return!1;var o=x({},["title","style","font","a","script"]);return!Qe[n]&&(o[n]||!Ze[n])}return!1},ot=function(e){d(n.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=ie}catch(t){e.remove()}}},it=function(e,t){try{d(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){d(n.removed,{attribute:null,from:t})}t.removeAttribute(e)},at=function(e){var t=void 0,n=void 0;if(Me)e="<remove></remove>"+e;else{var r=h(e,/^[\r\n\t ]+/);n=r&&r[0]}var i=oe?oe.createHTML(e):e;try{t=(new X).parseFromString(i,"text/html")}catch(e){}if(!t||!t.documentElement){var a=(t=le.createHTMLDocument("")).body;a.parentNode.removeChild(a.parentNode.firstElementChild),a.outerHTML=i}return e&&n&&t.body.insertBefore(o.createTextNode(n),t.body.childNodes[0]||null),se.call(t,Le?"html":"body")[0]},lt=function(e){return ce.call(e.ownerDocument||e,e,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT,(function(){return u.FILTER_ACCEPT}),!1)},ct=function(e){return!(e instanceof Y||e instanceof J||"string"==typeof e.nodeName&&"string"==typeof e.textContent&&"function"==typeof e.removeChild&&e.attributes instanceof w&&"function"==typeof e.removeAttribute&&"function"==typeof e.setAttribute&&"string"==typeof e.namespaceURI&&"function"==typeof e.insertBefore)},st=function(e){return"object"===(void 0===c?"undefined":G(c))?e instanceof c:e&&"object"===(void 0===e?"undefined":G(e))&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},ut=function(e,t,r){pe[e]&&f(pe[e],(function(e){e.call(n,t,r,Ve)}))},mt=function(e){var t=void 0;if(ut("beforeSanitizeElements",e,null),ct(e))return ot(e),!0;if(h(e.nodeName,/[\u0080-\uFFFF]/))return ot(e),!0;var r=g(e.nodeName);if(ut("uponSanitizeElement",e,{tagName:r,allowedTags:Ae}),!st(e.firstElementChild)&&(!st(e.content)||!st(e.content.firstElementChild))&&T(/<[/\w]/g,e.innerHTML)&&T(/<[/\w]/g,e.textContent))return ot(e),!0;if(!Ae[r]||_e[r]){if(Ue&&!Be[r])for(var o=ne(e),i=te(e),a=i.length-1;a>=0;--a)o.insertBefore(Q(i[a],!0),ee(e));return ot(e),!0}return e instanceof s&&!rt(e)?(ot(e),!0):"noscript"!==r&&"noembed"!==r||!T(/<\/no(script|embed)/i,e.innerHTML)?(Ne&&3===e.nodeType&&(t=e.textContent,t=y(t,de," "),t=y(t,ge," "),e.textContent!==t&&(d(n.removed,{element:e.cloneNode()}),e.textContent=t)),ut("afterSanitizeElements",e,null),!1):(ot(e),!0)},ft=function(e,t,n){if(He&&("id"===t||"name"===t)&&(n in o||n in Ye))return!1;if(De&&T(he,t));else if(Re&&T(ye,t));else{if(!xe[t]||ke[t])return!1;if(qe[t]);else if(T(Te,y(n,be,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==v(n,"data:")||!We[e])if(Ee&&!T(ve,y(n,be,"")));else if(n)return!1}return!0},pt=function(e){var t=void 0,r=void 0,o=void 0,i=void 0;ut("beforeSanitizeAttributes",e,null);var a=e.attributes;if(a){var l={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:xe};for(i=a.length;i--;){var c=t=a[i],s=c.name,u=c.namespaceURI;if(r=b(t.value),o=g(s),l.attrName=o,l.attrValue=r,l.keepAttr=!0,l.forceKeepAttr=void 0,ut("uponSanitizeAttribute",e,l),r=l.attrValue,!l.forceKeepAttr&&(it(s,e),l.keepAttr))if(T(/\/>/i,r))it(s,e);else{Ne&&(r=y(r,de," "),r=y(r,ge," "));var m=e.nodeName.toLowerCase();if(ft(m,o,r))try{u?e.setAttributeNS(u,s,r):e.setAttribute(s,r),p(n.removed)}catch(e){}}}ut("afterSanitizeAttributes",e,null)}},dt=function e(t){var n=void 0,r=lt(t);for(ut("beforeSanitizeShadowDOM",t,null);n=r.nextNode();)ut("uponSanitizeShadowNode",n,null),mt(n)||(n.content instanceof a&&e(n.content),pt(n));ut("afterSanitizeShadowDOM",t,null)};return n.sanitize=function(e,o){var i=void 0,l=void 0,s=void 0,u=void 0,m=void 0;if(e||(e="\x3c!--\x3e"),"string"!=typeof e&&!st(e)){if("function"!=typeof e.toString)throw A("toString is not a function");if("string"!=typeof(e=e.toString()))throw A("dirty is not a string, aborting")}if(!n.isSupported){if("object"===G(t.toStaticHTML)||"function"==typeof t.toStaticHTML){if("string"==typeof e)return t.toStaticHTML(e);if(st(e))return t.toStaticHTML(e.outerHTML)}return e}if(Oe||Je(o),n.removed=[],"string"==typeof e&&(je=!1),je);else if(e instanceof c)1===(l=(i=at("\x3c!----\x3e")).ownerDocument.importNode(e,!0)).nodeType&&"BODY"===l.nodeName||"HTML"===l.nodeName?i=l:i.appendChild(l);else{if(!Fe&&!Ne&&!Le&&-1===e.indexOf("<"))return oe&&ze?oe.createHTML(e):e;if(!(i=at(e)))return Fe?null:ie}i&&Me&&ot(i.firstChild);for(var f=lt(je?e:i);s=f.nextNode();)3===s.nodeType&&s===u||mt(s)||(s.content instanceof a&&dt(s.content),pt(s),u=s);if(u=null,je)return e;if(Fe){if(Ce)for(m=ue.call(i.ownerDocument);i.firstChild;)m.appendChild(i.firstChild);else m=i;return Ie&&(m=me.call(r,m,!0)),m}var p=Le?i.outerHTML:i.innerHTML;return Ne&&(p=y(p,de," "),p=y(p,ge," ")),oe&&ze?oe.createHTML(p):p},n.setConfig=function(e){Je(e),Oe=!0},n.clearConfig=function(){Ve=null,Oe=!1},n.isValidAttribute=function(e,t,n){Ve||Je({});var r=g(e),o=g(t);return ft(r,o,n)},n.addHook=function(e,t){"function"==typeof t&&(pe[e]=pe[e]||[],d(pe[e],t))},n.removeHook=function(e){pe[e]&&p(pe[e])},n.removeHooks=function(e){pe[e]&&(pe[e]=[])},n.removeAllHooks=function(){pe={}},n}()}()}}]);
dist/chunks/2.js CHANGED
@@ -1,6 +1,6 @@
1
  (window["__wcAdmin_webpackJsonp"] = window["__wcAdmin_webpackJsonp"] || []).push([[2],{
2
 
3
- /***/ 293:
4
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
5
 
6
  "use strict";
@@ -9,9 +9,9 @@
9
  var esm_extends = __webpack_require__(32);
10
 
11
  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
12
- var objectWithoutPropertiesLoose = __webpack_require__(41);
13
 
14
- // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/inheritsLoose.js
15
  var inheritsLoose = __webpack_require__(38);
16
 
17
  // EXTERNAL MODULE: ./node_modules/prop-types/index.js
@@ -775,13 +775,13 @@ CSSTransition_CSSTransition.propTypes = false ? undefined : {};
775
 
776
  /***/ }),
777
 
778
- /***/ 294:
779
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
780
 
781
  "use strict";
782
 
783
  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
784
- var objectWithoutPropertiesLoose = __webpack_require__(41);
785
 
786
  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
787
  var esm_extends = __webpack_require__(32);
@@ -794,7 +794,7 @@ function _assertThisInitialized(self) {
794
 
795
  return self;
796
  }
797
- // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/inheritsLoose.js
798
  var inheritsLoose = __webpack_require__(38);
799
 
800
  // EXTERNAL MODULE: ./node_modules/prop-types/index.js
1
  (window["__wcAdmin_webpackJsonp"] = window["__wcAdmin_webpackJsonp"] || []).push([[2],{
2
 
3
+ /***/ 292:
4
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
5
 
6
  "use strict";
9
  var esm_extends = __webpack_require__(32);
10
 
11
  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
12
+ var objectWithoutPropertiesLoose = __webpack_require__(42);
13
 
14
+ // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/inheritsLoose.js + 1 modules
15
  var inheritsLoose = __webpack_require__(38);
16
 
17
  // EXTERNAL MODULE: ./node_modules/prop-types/index.js
775
 
776
  /***/ }),
777
 
778
+ /***/ 293:
779
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
780
 
781
  "use strict";
782
 
783
  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
784
+ var objectWithoutPropertiesLoose = __webpack_require__(42);
785
 
786
  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
787
  var esm_extends = __webpack_require__(32);
794
 
795
  return self;
796
  }
797
+ // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/inheritsLoose.js + 1 modules
798
  var inheritsLoose = __webpack_require__(38);
799
 
800
  // EXTERNAL MODULE: ./node_modules/prop-types/index.js
dist/chunks/2.min.js CHANGED
@@ -1 +1 @@
1
- (window.__wcAdmin_webpackJsonp=window.__wcAdmin_webpackJsonp||[]).push([[2],{293:function(e,t,n){"use strict";var i=n(32),s=n(41),r=n(38);n(1);function a(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}var o=n(10),l=n.n(o),c=n(50),u=n.n(c),p=!1,d=n(64),f=function(e){function t(t,n){var i;i=e.call(this,t,n)||this;var s,r=n&&!n.isMounting?t.enter:t.appear;return i.appearStatus=null,t.in?r?(s="exited",i.appearStatus="entering"):s="entered":s=t.unmountOnExit||t.mountOnEnter?"unmounted":"exited",i.state={status:s},i.nextCallback=null,i}Object(r.a)(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&"unmounted"===t.status?{status:"exited"}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?"entering"!==n&&"entered"!==n&&(t="entering"):"entering"!==n&&"entered"!==n||(t="exiting")}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,i=this.props.timeout;return e=t=n=i,null!=i&&"number"!=typeof i&&(e=i.exit,t=i.enter,n=void 0!==i.appear?i.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){void 0===e&&(e=!1),null!==t?(this.cancelNextCallback(),"entering"===t?this.performEnter(e):this.performExit()):this.props.unmountOnExit&&"exited"===this.state.status&&this.setState({status:"unmounted"})},n.performEnter=function(e){var t=this,n=this.props.enter,i=this.context?this.context.isMounting:e,s=this.props.nodeRef?[i]:[u.a.findDOMNode(this),i],r=s[0],a=s[1],o=this.getTimeouts(),l=i?o.appear:o.enter;!e&&!n||p?this.safeSetState({status:"entered"},(function(){t.props.onEntered(r)})):(this.props.onEnter(r,a),this.safeSetState({status:"entering"},(function(){t.props.onEntering(r,a),t.onTransitionEnd(l,(function(){t.safeSetState({status:"entered"},(function(){t.props.onEntered(r,a)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),i=this.props.nodeRef?void 0:u.a.findDOMNode(this);t&&!p?(this.props.onExit(i),this.safeSetState({status:"exiting"},(function(){e.props.onExiting(i),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:"exited"},(function(){e.props.onExited(i)}))}))}))):this.safeSetState({status:"exited"},(function(){e.props.onExited(i)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(i){n&&(n=!1,t.nextCallback=null,e(i))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:u.a.findDOMNode(this),i=null==e&&!this.props.addEndListener;if(n&&!i){if(this.props.addEndListener){var s=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],r=s[0],a=s[1];this.props.addEndListener(r,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if("unmounted"===e)return null;var t=this.props,n=t.children,i=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,Object(s.a)(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return l.a.createElement(d.a.Provider,{value:null},"function"==typeof n?n(e,i):l.a.cloneElement(l.a.Children.only(n),i))},t}(l.a.Component);function h(){}f.contextType=d.a,f.propTypes={},f.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:h,onEntering:h,onEntered:h,onExit:h,onExiting:h,onExited:h},f.UNMOUNTED="unmounted",f.EXITED="exited",f.ENTERING="entering",f.ENTERED="entered",f.EXITING="exiting";var E=f,m=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return i=t,void((n=e).classList?n.classList.remove(i):"string"==typeof n.className?n.className=a(n.className,i):n.setAttribute("class",a(n.className&&n.className.baseVal||"",i)));var n,i}))},x=function(e){function t(){for(var t,n=arguments.length,i=new Array(n),s=0;s<n;s++)i[s]=arguments[s];return(t=e.call.apply(e,[this].concat(i))||this).appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,n){var i=t.resolveArguments(e,n),s=i[0],r=i[1];t.removeClasses(s,"exit"),t.addClass(s,r?"appear":"enter","base"),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var i=t.resolveArguments(e,n),s=i[0],r=i[1]?"appear":"enter";t.addClass(s,r,"active"),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var i=t.resolveArguments(e,n),s=i[0],r=i[1]?"appear":"enter";t.removeClasses(s,r),t.addClass(s,r,"done"),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"appear"),t.removeClasses(n,"enter"),t.addClass(n,"exit","base"),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.resolveArguments(e)[0];t.addClass(n,"exit","active"),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"exit"),t.addClass(n,"exit","done"),t.props.onExited&&t.props.onExited(e)},t.resolveArguments=function(e,n){return t.props.nodeRef?[t.props.nodeRef.current,e]:[e,n]},t.getClassNames=function(e){var n=t.props.classNames,i="string"==typeof n,s=i?""+(i&&n?n+"-":"")+e:n[e];return{baseClassName:s,activeClassName:i?s+"-active":n[e+"Active"],doneClassName:i?s+"-done":n[e+"Done"]}},t}Object(r.a)(t,e);var n=t.prototype;return n.addClass=function(e,t,n){var i=this.getClassNames(t)[n+"ClassName"],s=this.getClassNames("enter").doneClassName;"appear"===t&&"done"===n&&s&&(i+=" "+s),"active"===n&&e&&e.scrollTop,i&&(this.appliedClasses[t][n]=i,function(e,t){e&&t&&t.split(" ").forEach((function(t){return i=t,void((n=e).classList?n.classList.add(i):function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}(n,i)||("string"==typeof n.className?n.className=n.className+" "+i:n.setAttribute("class",(n.className&&n.className.baseVal||"")+" "+i)));var n,i}))}(e,i))},n.removeClasses=function(e,t){var n=this.appliedClasses[t],i=n.base,s=n.active,r=n.done;this.appliedClasses[t]={},i&&m(e,i),s&&m(e,s),r&&m(e,r)},n.render=function(){var e=this.props,t=(e.classNames,Object(s.a)(e,["classNames"]));return l.a.createElement(E,Object(i.a)({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(l.a.Component);x.defaultProps={classNames:""},x.propTypes={};t.a=x},294:function(e,t,n){"use strict";var i=n(41),s=n(32);var r=n(38),a=(n(1),n(10)),o=n.n(a),l=n(64);function c(e,t){var n=Object.create(null);return e&&a.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&Object(a.isValidElement)(e)?t(e):e}(e)})),n}function u(e,t,n){return null!=n[t]?n[t]:e.props[t]}function p(e,t,n){var i=c(e.children),s=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var i,s=Object.create(null),r=[];for(var a in e)a in t?r.length&&(s[a]=r,r=[]):r.push(a);var o={};for(var l in t){if(s[l])for(i=0;i<s[l].length;i++){var c=s[l][i];o[s[l][i]]=n(c)}o[l]=n(l)}for(i=0;i<r.length;i++)o[r[i]]=n(r[i]);return o}(t,i);return Object.keys(s).forEach((function(r){var o=s[r];if(Object(a.isValidElement)(o)){var l=r in t,c=r in i,p=t[r],d=Object(a.isValidElement)(p)&&!p.props.in;!c||l&&!d?c||!l||d?c&&l&&Object(a.isValidElement)(p)&&(s[r]=Object(a.cloneElement)(o,{onExited:n.bind(null,o),in:p.props.in,exit:u(o,"exit",e),enter:u(o,"enter",e)})):s[r]=Object(a.cloneElement)(o,{in:!1}):s[r]=Object(a.cloneElement)(o,{onExited:n.bind(null,o),in:!0,exit:u(o,"exit",e),enter:u(o,"enter",e)})}})),s}var d=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},f=function(e){function t(t,n){var i,s=(i=e.call(this,t,n)||this).handleExited.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(i));return i.state={contextValue:{isMounting:!0},handleExited:s,firstRender:!0},i}Object(r.a)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,i,s=t.children,r=t.handleExited;return{children:t.firstRender?(n=e,i=r,c(n.children,(function(e){return Object(a.cloneElement)(e,{onExited:i.bind(null,e),in:!0,appear:u(e,"appear",n),enter:u(e,"enter",n),exit:u(e,"exit",n)})}))):p(e,s,r),firstRender:!1}},n.handleExited=function(e,t){var n=c(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=Object(s.a)({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,s=Object(i.a)(e,["component","childFactory"]),r=this.state.contextValue,a=d(this.state.children).map(n);return delete s.appear,delete s.enter,delete s.exit,null===t?o.a.createElement(l.a.Provider,{value:r},a):o.a.createElement(l.a.Provider,{value:r},o.a.createElement(t,s,a))},t}(o.a.Component);f.propTypes={},f.defaultProps={component:"div",childFactory:function(e){return e}};t.a=f},64:function(e,t,n){"use strict";var i=n(10),s=n.n(i);t.a=s.a.createContext(null)}}]);
1
+ (window.__wcAdmin_webpackJsonp=window.__wcAdmin_webpackJsonp||[]).push([[2],{292:function(e,t,n){"use strict";var i=n(32),s=n(42),r=n(38);n(1);function a(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}var o=n(10),l=n.n(o),c=n(50),u=n.n(c),p=!1,d=n(64),f=function(e){function t(t,n){var i;i=e.call(this,t,n)||this;var s,r=n&&!n.isMounting?t.enter:t.appear;return i.appearStatus=null,t.in?r?(s="exited",i.appearStatus="entering"):s="entered":s=t.unmountOnExit||t.mountOnEnter?"unmounted":"exited",i.state={status:s},i.nextCallback=null,i}Object(r.a)(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&"unmounted"===t.status?{status:"exited"}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?"entering"!==n&&"entered"!==n&&(t="entering"):"entering"!==n&&"entered"!==n||(t="exiting")}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,i=this.props.timeout;return e=t=n=i,null!=i&&"number"!=typeof i&&(e=i.exit,t=i.enter,n=void 0!==i.appear?i.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){void 0===e&&(e=!1),null!==t?(this.cancelNextCallback(),"entering"===t?this.performEnter(e):this.performExit()):this.props.unmountOnExit&&"exited"===this.state.status&&this.setState({status:"unmounted"})},n.performEnter=function(e){var t=this,n=this.props.enter,i=this.context?this.context.isMounting:e,s=this.props.nodeRef?[i]:[u.a.findDOMNode(this),i],r=s[0],a=s[1],o=this.getTimeouts(),l=i?o.appear:o.enter;!e&&!n||p?this.safeSetState({status:"entered"},(function(){t.props.onEntered(r)})):(this.props.onEnter(r,a),this.safeSetState({status:"entering"},(function(){t.props.onEntering(r,a),t.onTransitionEnd(l,(function(){t.safeSetState({status:"entered"},(function(){t.props.onEntered(r,a)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),i=this.props.nodeRef?void 0:u.a.findDOMNode(this);t&&!p?(this.props.onExit(i),this.safeSetState({status:"exiting"},(function(){e.props.onExiting(i),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:"exited"},(function(){e.props.onExited(i)}))}))}))):this.safeSetState({status:"exited"},(function(){e.props.onExited(i)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(i){n&&(n=!1,t.nextCallback=null,e(i))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:u.a.findDOMNode(this),i=null==e&&!this.props.addEndListener;if(n&&!i){if(this.props.addEndListener){var s=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],r=s[0],a=s[1];this.props.addEndListener(r,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if("unmounted"===e)return null;var t=this.props,n=t.children,i=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,Object(s.a)(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return l.a.createElement(d.a.Provider,{value:null},"function"==typeof n?n(e,i):l.a.cloneElement(l.a.Children.only(n),i))},t}(l.a.Component);function h(){}f.contextType=d.a,f.propTypes={},f.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:h,onEntering:h,onEntered:h,onExit:h,onExiting:h,onExited:h},f.UNMOUNTED="unmounted",f.EXITED="exited",f.ENTERING="entering",f.ENTERED="entered",f.EXITING="exiting";var E=f,m=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return i=t,void((n=e).classList?n.classList.remove(i):"string"==typeof n.className?n.className=a(n.className,i):n.setAttribute("class",a(n.className&&n.className.baseVal||"",i)));var n,i}))},x=function(e){function t(){for(var t,n=arguments.length,i=new Array(n),s=0;s<n;s++)i[s]=arguments[s];return(t=e.call.apply(e,[this].concat(i))||this).appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,n){var i=t.resolveArguments(e,n),s=i[0],r=i[1];t.removeClasses(s,"exit"),t.addClass(s,r?"appear":"enter","base"),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var i=t.resolveArguments(e,n),s=i[0],r=i[1]?"appear":"enter";t.addClass(s,r,"active"),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var i=t.resolveArguments(e,n),s=i[0],r=i[1]?"appear":"enter";t.removeClasses(s,r),t.addClass(s,r,"done"),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"appear"),t.removeClasses(n,"enter"),t.addClass(n,"exit","base"),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.resolveArguments(e)[0];t.addClass(n,"exit","active"),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"exit"),t.addClass(n,"exit","done"),t.props.onExited&&t.props.onExited(e)},t.resolveArguments=function(e,n){return t.props.nodeRef?[t.props.nodeRef.current,e]:[e,n]},t.getClassNames=function(e){var n=t.props.classNames,i="string"==typeof n,s=i?""+(i&&n?n+"-":"")+e:n[e];return{baseClassName:s,activeClassName:i?s+"-active":n[e+"Active"],doneClassName:i?s+"-done":n[e+"Done"]}},t}Object(r.a)(t,e);var n=t.prototype;return n.addClass=function(e,t,n){var i=this.getClassNames(t)[n+"ClassName"],s=this.getClassNames("enter").doneClassName;"appear"===t&&"done"===n&&s&&(i+=" "+s),"active"===n&&e&&e.scrollTop,i&&(this.appliedClasses[t][n]=i,function(e,t){e&&t&&t.split(" ").forEach((function(t){return i=t,void((n=e).classList?n.classList.add(i):function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}(n,i)||("string"==typeof n.className?n.className=n.className+" "+i:n.setAttribute("class",(n.className&&n.className.baseVal||"")+" "+i)));var n,i}))}(e,i))},n.removeClasses=function(e,t){var n=this.appliedClasses[t],i=n.base,s=n.active,r=n.done;this.appliedClasses[t]={},i&&m(e,i),s&&m(e,s),r&&m(e,r)},n.render=function(){var e=this.props,t=(e.classNames,Object(s.a)(e,["classNames"]));return l.a.createElement(E,Object(i.a)({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(l.a.Component);x.defaultProps={classNames:""},x.propTypes={};t.a=x},293:function(e,t,n){"use strict";var i=n(42),s=n(32);var r=n(38),a=(n(1),n(10)),o=n.n(a),l=n(64);function c(e,t){var n=Object.create(null);return e&&a.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&Object(a.isValidElement)(e)?t(e):e}(e)})),n}function u(e,t,n){return null!=n[t]?n[t]:e.props[t]}function p(e,t,n){var i=c(e.children),s=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var i,s=Object.create(null),r=[];for(var a in e)a in t?r.length&&(s[a]=r,r=[]):r.push(a);var o={};for(var l in t){if(s[l])for(i=0;i<s[l].length;i++){var c=s[l][i];o[s[l][i]]=n(c)}o[l]=n(l)}for(i=0;i<r.length;i++)o[r[i]]=n(r[i]);return o}(t,i);return Object.keys(s).forEach((function(r){var o=s[r];if(Object(a.isValidElement)(o)){var l=r in t,c=r in i,p=t[r],d=Object(a.isValidElement)(p)&&!p.props.in;!c||l&&!d?c||!l||d?c&&l&&Object(a.isValidElement)(p)&&(s[r]=Object(a.cloneElement)(o,{onExited:n.bind(null,o),in:p.props.in,exit:u(o,"exit",e),enter:u(o,"enter",e)})):s[r]=Object(a.cloneElement)(o,{in:!1}):s[r]=Object(a.cloneElement)(o,{onExited:n.bind(null,o),in:!0,exit:u(o,"exit",e),enter:u(o,"enter",e)})}})),s}var d=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},f=function(e){function t(t,n){var i,s=(i=e.call(this,t,n)||this).handleExited.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(i));return i.state={contextValue:{isMounting:!0},handleExited:s,firstRender:!0},i}Object(r.a)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,i,s=t.children,r=t.handleExited;return{children:t.firstRender?(n=e,i=r,c(n.children,(function(e){return Object(a.cloneElement)(e,{onExited:i.bind(null,e),in:!0,appear:u(e,"appear",n),enter:u(e,"enter",n),exit:u(e,"exit",n)})}))):p(e,s,r),firstRender:!1}},n.handleExited=function(e,t){var n=c(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=Object(s.a)({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,s=Object(i.a)(e,["component","childFactory"]),r=this.state.contextValue,a=d(this.state.children).map(n);return delete s.appear,delete s.enter,delete s.exit,null===t?o.a.createElement(l.a.Provider,{value:r},a):o.a.createElement(l.a.Provider,{value:r},o.a.createElement(t,s,a))},t}(o.a.Component);f.propTypes={},f.defaultProps={component:"div",childFactory:function(e){return e}};t.a=f},64:function(e,t,n){"use strict";var i=n(10),s=n.n(i);t.a=s.a.createContext(null)}}]);
dist/chunks/3.js CHANGED
@@ -1,6 +1,6 @@
1
  (window["__wcAdmin_webpackJsonp"] = window["__wcAdmin_webpackJsonp"] || []).push([[3],{
2
 
3
- /***/ 495:
4
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
5
 
6
  "use strict";
@@ -13,18 +13,18 @@
13
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return getTaxRateLabels; });
14
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return getVariationName; });
15
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return getVariationLabels; });
16
- /* harmony import */ var _wordpress_url__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(22);
17
  /* harmony import */ var _wordpress_url__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_url__WEBPACK_IMPORTED_MODULE_0__);
18
- /* harmony import */ var _wordpress_api_fetch__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(27);
19
  /* harmony import */ var _wordpress_api_fetch__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_api_fetch__WEBPACK_IMPORTED_MODULE_1__);
20
  /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(3);
21
  /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_2__);
22
  /* harmony import */ var _woocommerce_navigation__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(21);
23
  /* harmony import */ var _woocommerce_navigation__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_woocommerce_navigation__WEBPACK_IMPORTED_MODULE_3__);
24
- /* harmony import */ var _woocommerce_data__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(23);
25
  /* harmony import */ var _woocommerce_data__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_woocommerce_data__WEBPACK_IMPORTED_MODULE_4__);
26
  /* harmony import */ var _woocommerce_wc_admin_settings__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(25);
27
- /* harmony import */ var _analytics_report_taxes_utils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(496);
28
  /**
29
  * External dependencies
30
  */
@@ -150,7 +150,7 @@ var getVariationLabels = getRequestByIdString(function (_ref3) {
150
 
151
  /***/ }),
152
 
153
- /***/ 496:
154
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
155
 
156
  "use strict";
@@ -169,7 +169,7 @@ function getTaxCode(tax) {
169
 
170
  /***/ }),
171
 
172
- /***/ 497:
173
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
174
 
175
  "use strict";
@@ -181,23 +181,23 @@ var defineProperty = __webpack_require__(5);
181
  var defineProperty_default = /*#__PURE__*/__webpack_require__.n(defineProperty);
182
 
183
  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/classCallCheck.js
184
- var classCallCheck = __webpack_require__(11);
185
  var classCallCheck_default = /*#__PURE__*/__webpack_require__.n(classCallCheck);
186
 
187
  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/createClass.js
188
- var createClass = __webpack_require__(12);
189
  var createClass_default = /*#__PURE__*/__webpack_require__.n(createClass);
190
 
191
  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/inherits.js
192
- var inherits = __webpack_require__(13);
193
  var inherits_default = /*#__PURE__*/__webpack_require__.n(inherits);
194
 
195
  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js
196
- var possibleConstructorReturn = __webpack_require__(14);
197
  var possibleConstructorReturn_default = /*#__PURE__*/__webpack_require__.n(possibleConstructorReturn);
198
 
199
  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/getPrototypeOf.js
200
- var getPrototypeOf = __webpack_require__(6);
201
  var getPrototypeOf_default = /*#__PURE__*/__webpack_require__.n(getPrototypeOf);
202
 
203
  // EXTERNAL MODULE: external {"this":["wp","element"]}
@@ -207,13 +207,13 @@ var external_this_wp_element_ = __webpack_require__(0);
207
  var external_this_wp_i18n_ = __webpack_require__(2);
208
 
209
  // EXTERNAL MODULE: external {"this":["wp","compose"]}
210
- var external_this_wp_compose_ = __webpack_require__(18);
211
 
212
  // EXTERNAL MODULE: external {"this":["wp","date"]}
213
- var external_this_wp_date_ = __webpack_require__(72);
214
 
215
  // EXTERNAL MODULE: external {"this":["wp","data"]}
216
- var external_this_wp_data_ = __webpack_require__(15);
217
 
218
  // EXTERNAL MODULE: external "lodash"
219
  var external_lodash_ = __webpack_require__(3);
@@ -226,16 +226,16 @@ var prop_types_default = /*#__PURE__*/__webpack_require__.n(prop_types);
226
  var external_this_wc_components_ = __webpack_require__(47);
227
 
228
  // EXTERNAL MODULE: external {"this":["wc","data"]}
229
- var external_this_wc_data_ = __webpack_require__(23);
230
 
231
  // EXTERNAL MODULE: external {"this":["wc","date"]}
232
  var external_this_wc_date_ = __webpack_require__(29);
233
 
234
  // EXTERNAL MODULE: ./client/lib/currency-context.js
235
- var currency_context = __webpack_require__(493);
236
 
237
  // EXTERNAL MODULE: ./client/analytics/components/report-error/index.js
238
- var report_error = __webpack_require__(494);
239
 
240
  // EXTERNAL MODULE: external {"this":["wc","navigation"]}
241
  var external_this_wc_navigation_ = __webpack_require__(21);
@@ -680,7 +680,7 @@ report_chart_ReportChart.defaultProps = {
680
 
681
  /***/ }),
682
 
683
- /***/ 498:
684
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
685
 
686
  "use strict";
@@ -715,28 +715,28 @@ function getSelectedChart(chartName) {
715
 
716
  /***/ }),
717
 
718
- /***/ 499:
719
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
720
 
721
  "use strict";
722
  /* unused harmony export ReportSummary */
723
- /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(11);
724
  /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);
725
- /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(12);
726
  /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);
727
- /* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(13);
728
  /* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__);
729
- /* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(14);
730
  /* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__);
731
- /* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(6);
732
  /* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__);
733
  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(0);
734
  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_5__);
735
  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(2);
736
  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__);
737
- /* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(18);
738
  /* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_wordpress_compose__WEBPACK_IMPORTED_MODULE_7__);
739
- /* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(15);
740
  /* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_wordpress_data__WEBPACK_IMPORTED_MODULE_8__);
741
  /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(1);
742
  /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_9__);
@@ -744,16 +744,16 @@ function getSelectedChart(chartName) {
744
  /* harmony import */ var _woocommerce_navigation__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(_woocommerce_navigation__WEBPACK_IMPORTED_MODULE_10__);
745
  /* harmony import */ var _woocommerce_components__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(47);
746
  /* harmony import */ var _woocommerce_components__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(_woocommerce_components__WEBPACK_IMPORTED_MODULE_11__);
747
- /* harmony import */ var _woocommerce_number__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(143);
748
  /* harmony import */ var _woocommerce_number__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(_woocommerce_number__WEBPACK_IMPORTED_MODULE_12__);
749
- /* harmony import */ var _woocommerce_data__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(23);
750
  /* harmony import */ var _woocommerce_data__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(_woocommerce_data__WEBPACK_IMPORTED_MODULE_13__);
751
  /* harmony import */ var _woocommerce_date__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(29);
752
  /* harmony import */ var _woocommerce_date__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(_woocommerce_date__WEBPACK_IMPORTED_MODULE_14__);
753
- /* harmony import */ var _woocommerce_tracks__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(28);
754
  /* harmony import */ var _woocommerce_tracks__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(_woocommerce_tracks__WEBPACK_IMPORTED_MODULE_15__);
755
- /* harmony import */ var _report_error__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(494);
756
- /* harmony import */ var _lib_currency_context__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(493);
757
 
758
 
759
 
@@ -1032,7 +1032,7 @@ ReportSummary.contextType = _lib_currency_context__WEBPACK_IMPORTED_MODULE_17__[
1032
 
1033
  /***/ }),
1034
 
1035
- /***/ 507:
1036
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1037
 
1038
  "use strict";
@@ -1054,31 +1054,31 @@ function isLowStock(status, quantity, threshold) {
1054
 
1055
  /***/ }),
1056
 
1057
- /***/ 525:
1058
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1059
 
1060
  "use strict";
1061
- /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(11);
1062
  /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);
1063
- /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(12);
1064
  /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);
1065
  /* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(9);
1066
  /* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_2__);
1067
- /* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(13);
1068
  /* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__);
1069
- /* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(14);
1070
  /* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__);
1071
- /* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(6);
1072
  /* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__);
1073
  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(0);
1074
  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__);
1075
  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(2);
1076
  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_7__);
1077
- /* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(18);
1078
  /* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_wordpress_compose__WEBPACK_IMPORTED_MODULE_8__);
1079
- /* harmony import */ var _wordpress_html_entities__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(40);
1080
  /* harmony import */ var _wordpress_html_entities__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_wordpress_html_entities__WEBPACK_IMPORTED_MODULE_9__);
1081
- /* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(15);
1082
  /* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(_wordpress_data__WEBPACK_IMPORTED_MODULE_10__);
1083
  /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(3);
1084
  /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_11__);
@@ -1086,16 +1086,16 @@ function isLowStock(status, quantity, threshold) {
1086
  /* harmony import */ var _woocommerce_navigation__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(_woocommerce_navigation__WEBPACK_IMPORTED_MODULE_12__);
1087
  /* harmony import */ var _woocommerce_components__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(47);
1088
  /* harmony import */ var _woocommerce_components__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(_woocommerce_components__WEBPACK_IMPORTED_MODULE_13__);
1089
- /* harmony import */ var _woocommerce_number__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(143);
1090
  /* harmony import */ var _woocommerce_number__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(_woocommerce_number__WEBPACK_IMPORTED_MODULE_14__);
1091
  /* harmony import */ var _woocommerce_wc_admin_settings__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(25);
1092
- /* harmony import */ var _woocommerce_data__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(23);
1093
  /* harmony import */ var _woocommerce_data__WEBPACK_IMPORTED_MODULE_16___default = /*#__PURE__*/__webpack_require__.n(_woocommerce_data__WEBPACK_IMPORTED_MODULE_16__);
1094
- /* harmony import */ var _categories_breadcrumbs__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(526);
1095
- /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(507);
1096
- /* harmony import */ var _components_report_table__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(501);
1097
- /* harmony import */ var _lib_currency_context__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(493);
1098
- /* harmony import */ var _style_scss__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(562);
1099
  /* harmony import */ var _style_scss__WEBPACK_IMPORTED_MODULE_21___default = /*#__PURE__*/__webpack_require__.n(_style_scss__WEBPACK_IMPORTED_MODULE_21__);
1100
 
1101
 
@@ -1400,20 +1400,20 @@ ProductsReportTable.contextType = _lib_currency_context__WEBPACK_IMPORTED_MODULE
1400
 
1401
  /***/ }),
1402
 
1403
- /***/ 526:
1404
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1405
 
1406
  "use strict";
1407
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return CategoryBreadcrumbs; });
1408
- /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(11);
1409
  /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);
1410
- /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(12);
1411
  /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);
1412
- /* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(13);
1413
  /* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__);
1414
- /* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(14);
1415
  /* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__);
1416
- /* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(6);
1417
  /* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__);
1418
  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(0);
1419
  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_5__);
@@ -1515,7 +1515,7 @@ var CategoryBreadcrumbs = /*#__PURE__*/function (_Component) {
1515
 
1516
  /***/ }),
1517
 
1518
- /***/ 562:
1519
  /***/ (function(module, exports, __webpack_require__) {
1520
 
1521
  // extracted by mini-css-extract-plugin
1
  (window["__wcAdmin_webpackJsonp"] = window["__wcAdmin_webpackJsonp"] || []).push([[3],{
2
 
3
+ /***/ 500:
4
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
5
 
6
  "use strict";
13
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return getTaxRateLabels; });
14
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return getVariationName; });
15
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return getVariationLabels; });
16
+ /* harmony import */ var _wordpress_url__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(23);
17
  /* harmony import */ var _wordpress_url__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_url__WEBPACK_IMPORTED_MODULE_0__);
18
+ /* harmony import */ var _wordpress_api_fetch__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(26);
19
  /* harmony import */ var _wordpress_api_fetch__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_api_fetch__WEBPACK_IMPORTED_MODULE_1__);
20
  /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(3);
21
  /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_2__);
22
  /* harmony import */ var _woocommerce_navigation__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(21);
23
  /* harmony import */ var _woocommerce_navigation__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_woocommerce_navigation__WEBPACK_IMPORTED_MODULE_3__);
24
+ /* harmony import */ var _woocommerce_data__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(22);
25
  /* harmony import */ var _woocommerce_data__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_woocommerce_data__WEBPACK_IMPORTED_MODULE_4__);
26
  /* harmony import */ var _woocommerce_wc_admin_settings__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(25);
27
+ /* harmony import */ var _analytics_report_taxes_utils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(501);
28
  /**
29
  * External dependencies
30
  */
150
 
151
  /***/ }),
152
 
153
+ /***/ 501:
154
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
155
 
156
  "use strict";
169
 
170
  /***/ }),
171
 
172
+ /***/ 502:
173
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
174
 
175
  "use strict";
181
  var defineProperty_default = /*#__PURE__*/__webpack_require__.n(defineProperty);
182
 
183
  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/classCallCheck.js
184
+ var classCallCheck = __webpack_require__(12);
185
  var classCallCheck_default = /*#__PURE__*/__webpack_require__.n(classCallCheck);
186
 
187
  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/createClass.js
188
+ var createClass = __webpack_require__(13);
189
  var createClass_default = /*#__PURE__*/__webpack_require__.n(createClass);
190
 
191
  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/inherits.js
192
+ var inherits = __webpack_require__(14);
193
  var inherits_default = /*#__PURE__*/__webpack_require__.n(inherits);
194
 
195
  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js
196
+ var possibleConstructorReturn = __webpack_require__(15);
197
  var possibleConstructorReturn_default = /*#__PURE__*/__webpack_require__.n(possibleConstructorReturn);
198
 
199
  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/getPrototypeOf.js
200
+ var getPrototypeOf = __webpack_require__(7);
201
  var getPrototypeOf_default = /*#__PURE__*/__webpack_require__.n(getPrototypeOf);
202
 
203
  // EXTERNAL MODULE: external {"this":["wp","element"]}
207
  var external_this_wp_i18n_ = __webpack_require__(2);
208
 
209
  // EXTERNAL MODULE: external {"this":["wp","compose"]}
210
+ var external_this_wp_compose_ = __webpack_require__(20);
211
 
212
  // EXTERNAL MODULE: external {"this":["wp","date"]}
213
+ var external_this_wp_date_ = __webpack_require__(75);
214
 
215
  // EXTERNAL MODULE: external {"this":["wp","data"]}
216
+ var external_this_wp_data_ = __webpack_require__(11);
217
 
218
  // EXTERNAL MODULE: external "lodash"
219
  var external_lodash_ = __webpack_require__(3);
226
  var external_this_wc_components_ = __webpack_require__(47);
227
 
228
  // EXTERNAL MODULE: external {"this":["wc","data"]}
229
+ var external_this_wc_data_ = __webpack_require__(22);
230
 
231
  // EXTERNAL MODULE: external {"this":["wc","date"]}
232
  var external_this_wc_date_ = __webpack_require__(29);
233
 
234
  // EXTERNAL MODULE: ./client/lib/currency-context.js
235
+ var currency_context = __webpack_require__(498);
236
 
237
  // EXTERNAL MODULE: ./client/analytics/components/report-error/index.js
238
+ var report_error = __webpack_require__(499);
239
 
240
  // EXTERNAL MODULE: external {"this":["wc","navigation"]}
241
  var external_this_wc_navigation_ = __webpack_require__(21);
680
 
681
  /***/ }),
682
 
683
+ /***/ 503:
684
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
685
 
686
  "use strict";
715
 
716
  /***/ }),
717
 
718
+ /***/ 504:
719
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
720
 
721
  "use strict";
722
  /* unused harmony export ReportSummary */
723
+ /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(12);
724
  /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);
725
+ /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(13);
726
  /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);
727
+ /* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(14);
728
  /* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__);
729
+ /* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(15);
730
  /* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__);
731
+ /* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(7);
732
  /* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__);
733
  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(0);
734
  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_5__);
735
  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(2);
736
  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__);
737
+ /* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(20);
738
  /* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_wordpress_compose__WEBPACK_IMPORTED_MODULE_7__);
739
+ /* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(11);
740
  /* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_wordpress_data__WEBPACK_IMPORTED_MODULE_8__);
741
  /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(1);
742
  /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_9__);
744
  /* harmony import */ var _woocommerce_navigation__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(_woocommerce_navigation__WEBPACK_IMPORTED_MODULE_10__);
745
  /* harmony import */ var _woocommerce_components__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(47);
746
  /* harmony import */ var _woocommerce_components__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(_woocommerce_components__WEBPACK_IMPORTED_MODULE_11__);
747
+ /* harmony import */ var _woocommerce_number__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(142);
748
  /* harmony import */ var _woocommerce_number__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(_woocommerce_number__WEBPACK_IMPORTED_MODULE_12__);
749
+ /* harmony import */ var _woocommerce_data__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(22);
750
  /* harmony import */ var _woocommerce_data__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(_woocommerce_data__WEBPACK_IMPORTED_MODULE_13__);
751
  /* harmony import */ var _woocommerce_date__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(29);
752
  /* harmony import */ var _woocommerce_date__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(_woocommerce_date__WEBPACK_IMPORTED_MODULE_14__);
753
+ /* harmony import */ var _woocommerce_tracks__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(27);
754
  /* harmony import */ var _woocommerce_tracks__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(_woocommerce_tracks__WEBPACK_IMPORTED_MODULE_15__);
755
+ /* harmony import */ var _report_error__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(499);
756
+ /* harmony import */ var _lib_currency_context__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(498);
757
 
758
 
759
 
1032
 
1033
  /***/ }),
1034
 
1035
+ /***/ 512:
1036
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1037
 
1038
  "use strict";
1054
 
1055
  /***/ }),
1056
 
1057
+ /***/ 530:
1058
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1059
 
1060
  "use strict";
1061
+ /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(12);
1062
  /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);
1063
+ /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(13);
1064
  /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);
1065
  /* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(9);
1066
  /* harmony import */ var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_2__);
1067
+ /* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(14);
1068
  /* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_3__);
1069
+ /* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(15);
1070
  /* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__);
1071
+ /* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(7);
1072
  /* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__);
1073
  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(0);
1074
  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_6__);
1075
  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(2);
1076
  /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_7__);
1077
+ /* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(20);
1078
  /* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_wordpress_compose__WEBPACK_IMPORTED_MODULE_8__);
1079
+ /* harmony import */ var _wordpress_html_entities__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(41);
1080
  /* harmony import */ var _wordpress_html_entities__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_wordpress_html_entities__WEBPACK_IMPORTED_MODULE_9__);
1081
+ /* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(11);
1082
  /* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(_wordpress_data__WEBPACK_IMPORTED_MODULE_10__);
1083
  /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(3);
1084
  /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_11__);
1086
  /* harmony import */ var _woocommerce_navigation__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(_woocommerce_navigation__WEBPACK_IMPORTED_MODULE_12__);
1087
  /* harmony import */ var _woocommerce_components__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(47);
1088
  /* harmony import */ var _woocommerce_components__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(_woocommerce_components__WEBPACK_IMPORTED_MODULE_13__);
1089
+ /* harmony import */ var _woocommerce_number__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(142);
1090
  /* harmony import */ var _woocommerce_number__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(_woocommerce_number__WEBPACK_IMPORTED_MODULE_14__);
1091
  /* harmony import */ var _woocommerce_wc_admin_settings__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(25);
1092
+ /* harmony import */ var _woocommerce_data__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(22);
1093
  /* harmony import */ var _woocommerce_data__WEBPACK_IMPORTED_MODULE_16___default = /*#__PURE__*/__webpack_require__.n(_woocommerce_data__WEBPACK_IMPORTED_MODULE_16__);
1094
+ /* harmony import */ var _categories_breadcrumbs__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(531);
1095
+ /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(512);
1096
+ /* harmony import */ var _components_report_table__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(506);
1097
+ /* harmony import */ var _lib_currency_context__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(498);
1098
+ /* harmony import */ var _style_scss__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(575);
1099
  /* harmony import */ var _style_scss__WEBPACK_IMPORTED_MODULE_21___default = /*#__PURE__*/__webpack_require__.n(_style_scss__WEBPACK_IMPORTED_MODULE_21__);
1100
 
1101
 
1400
 
1401
  /***/ }),
1402
 
1403
+ /***/ 531:
1404
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1405
 
1406
  "use strict";
1407
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return CategoryBreadcrumbs; });
1408
+ /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(12);
1409
  /* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);
1410
+ /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(13);
1411
  /* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);
1412
+ /* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(14);
1413
  /* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__);
1414
+ /* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(15);
1415
  /* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__);
1416
+ /* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(7);
1417
  /* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__);
1418
  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(0);
1419
  /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_5__);
1515
 
1516
  /***/ }),
1517
 
1518
+ /***/ 575:
1519
  /***/ (function(module, exports, __webpack_require__) {
1520
 
1521
  // extracted by mini-css-extract-plugin
dist/chunks/3.min.js CHANGED
@@ -1 +1 @@
1
- (window.__wcAdmin_webpackJsonp=window.__wcAdmin_webpackJsonp||[]).push([[3],{495:function(e,t,r){"use strict";r.d(t,"e",(function(){return m})),r.d(t,"a",(function(){return d})),r.d(t,"b",(function(){return f})),r.d(t,"c",(function(){return p})),r.d(t,"d",(function(){return y})),r.d(t,"f",(function(){return b})),r.d(t,"h",(function(){return g})),r.d(t,"g",(function(){return v}));var a=r(22),n=r(27),o=r.n(n),i=r(3),c=r(21),s=r(23),u=r(25),l=r(496);function m(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.identity;return function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1?arguments[1]:void 0,i="function"==typeof e?e(n):e,s=Object(c.getIdsFromQuery)(r);if(s.length<1)return Promise.resolve([]);var u={include:s.join(","),per_page:s.length};return o()({path:Object(a.addQueryArgs)(i,u)}).then((function(e){return e.map(t)}))}}m(s.NAMESPACE+"/products/attributes",(function(e){return{key:e.id,label:e.name}}));var d=m(s.NAMESPACE+"/products/categories",(function(e){return{key:e.id,label:e.name}})),f=m(s.NAMESPACE+"/coupons",(function(e){return{key:e.id,label:e.code}})),p=m(s.NAMESPACE+"/customers",(function(e){return{key:e.id,label:e.name}})),y=m(s.NAMESPACE+"/products",(function(e){return{key:e.id,label:e.name}})),b=m(s.NAMESPACE+"/taxes",(function(e){return{key:e.id,label:Object(l.a)(e)}}));function g(e){var t=e.attributes,r=e.name,a=Object(u.g)("variationTitleAttributesSeparator"," - ");if(r.indexOf(a)>-1)return r;var n=t.map((function(e){return e.option})).join(", ");return n?r+a+n:r}var v=m((function(e){var t=e.products;return t?s.NAMESPACE+"/products/".concat(t,"/variations"):s.NAMESPACE+"/variations"}),(function(e){return{key:e.id,label:g(e)}}))},496:function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var a=r(2);function n(e){return[e.country,e.state,e.name||Object(a.__)("TAX","woocommerce-admin"),e.priority].map((function(e){return e.toString().toUpperCase().trim()})).filter(Boolean).join("-")}},497:function(e,t,r){"use strict";var a=r(5),n=r.n(a),o=r(11),i=r.n(o),c=r(12),s=r.n(c),u=r(13),l=r.n(u),m=r(14),d=r.n(m),f=r(6),p=r.n(f),y=r(0),b=r(2),g=r(18),v=r(72),h=r(15),O=r(3),j=r(1),_=r.n(j),R=r(47),k=r(23),w=r(29),C=r(493),S=r(494),D=r(21);function E(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,a)}return r}function q(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?E(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):E(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}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 r,a=p()(e);if(t){var n=p()(this).constructor;r=Reflect.construct(a,arguments,n)}else r=a.apply(this,arguments);return d()(this,r)}}var T=function(e){l()(r,e);var t=P(r);function r(){return i()(this,r),t.apply(this,arguments)}return s()(r,[{key:"shouldComponentUpdate",value:function(e){return e.isRequesting!==this.props.isRequesting||e.primaryData.isRequesting!==this.props.primaryData.isRequesting||e.secondaryData.isRequesting!==this.props.secondaryData.isRequesting||!Object(O.isEqual)(e.query,this.props.query)}},{key:"getItemChartData",value:function(){var e=this.props,t=e.primaryData,r=e.selectedChart;return t.data.intervals.map((function(e){var t={};return e.subtotals.segments.forEach((function(e){if(e.segment_label){var a=t[e.segment_label]?e.segment_label+" (#"+e.segment_id+")":e.segment_label;t[e.segment_id]={label:a,value:e.subtotals[r.key]||0}}})),q({date:Object(v.format)("Y-m-d\\TH:i:s",e.date_start)},t)}))}},{key:"getTimeChartData",value:function(){var e=this.props,t=e.query,r=e.primaryData,a=e.secondaryData,n=e.selectedChart,o=e.defaultDateRange,i=Object(w.getIntervalForQuery)(t),c=Object(w.getCurrentDates)(t,o),s=c.primary,u=c.secondary;return r.data.intervals.map((function(e,r){var o=Object(w.getPreviousDate)(e.date_start,s.after,u.after,t.compare,i),c=a.data.intervals[r];return{date:Object(v.format)("Y-m-d\\TH:i:s",e.date_start),primary:{label:"".concat(s.label," (").concat(s.range,")"),labelDate:e.date_start,value:e.subtotals[n.key]||0},secondary:{label:"".concat(u.label," (").concat(u.range,")"),labelDate:o.format("YYYY-MM-DD HH:mm:ss"),value:c&&c.subtotals[n.key]||0}}}))}},{key:"getTimeChartTotals",value:function(){var e=this.props,t=e.primaryData,r=e.secondaryData,a=e.selectedChart;return{primary:Object(O.get)(t,["data","totals",a.key],null),secondary:Object(O.get)(r,["data","totals",a.key],null)}}},{key:"renderChart",value:function(e,t,r,a){var n=this.props,o=n.emptySearchResults,i=n.filterParam,c=n.interactiveLegend,s=n.itemsLabel,u=n.legendPosition,l=n.path,m=n.query,d=n.selectedChart,f=n.showHeaderControls,p=n.primaryData,g=Object(w.getIntervalForQuery)(m),v=Object(w.getAllowedIntervalsForQuery)(m),h=Object(w.getDateFormatsForInterval)(g,p.data.intervals.length),O=o?Object(b.__)("No data for the current search","woocommerce-admin"):Object(b.__)("No data for the selected date range","woocommerce-admin"),j=this.context,_=j.formatAmount,C=j.getCurrencyConfig;return Object(y.createElement)(R.Chart,{allowedIntervals:v,data:r,dateParser:"%Y-%m-%dT%H:%M:%S",emptyMessage:O,filterParam:i,interactiveLegend:c,interval:g,isRequesting:t,itemsLabel:s,legendPosition:u,legendTotals:a,mode:e,path:l,query:m,screenReaderFormat:h.screenReaderFormat,showHeaderControls:f,title:d.label,tooltipLabelFormat:h.tooltipLabelFormat,tooltipTitle:"time-comparison"===e&&d.label||null,tooltipValueFormat:Object(k.getTooltipValueFormat)(d.type,_),chartType:Object(w.getChartTypeForQuery)(m),valueType:d.type,xFormat:h.xFormat,x2Format:h.x2Format,currency:C()})}},{key:"renderItemComparison",value:function(){var e=this.props,t=e.isRequesting,r=e.primaryData;if(r.isError)return Object(y.createElement)(S.a,{isError:!0});var a=t||r.isRequesting,n=this.getItemChartData();return this.renderChart("item-comparison",a,n)}},{key:"renderTimeComparison",value:function(){var e=this.props,t=e.isRequesting,r=e.primaryData,a=e.secondaryData;if(!r||r.isError||a.isError)return Object(y.createElement)(S.a,{isError:!0});var n=t||r.isRequesting||a.isRequesting,o=this.getTimeChartData(),i=this.getTimeChartTotals();return this.renderChart("time-comparison",n,o,i)}},{key:"render",value:function(){return"item-comparison"===this.props.mode?this.renderItemComparison():this.renderTimeComparison()}}]),r}(y.Component);T.contextType=C.a,T.propTypes={filters:_.a.array,isRequesting:_.a.bool,itemsLabel:_.a.string,limitProperties:_.a.array,mode:_.a.string,path:_.a.string.isRequired,primaryData:_.a.object,query:_.a.object.isRequired,secondaryData:_.a.object,selectedChart:_.a.shape({key:_.a.string.isRequired,label:_.a.string.isRequired,order:_.a.oneOf(["asc","desc"]),orderby:_.a.string,type:_.a.oneOf(["average","number","currency"]).isRequired}).isRequired},T.defaultProps={isRequesting:!1,primaryData:{data:{intervals:[]},isError:!1,isRequesting:!1},secondaryData:{data:{intervals:[]},isError:!1,isRequesting:!1}};t.a=Object(g.compose)(Object(h.withSelect)((function(e,t){var r=t.charts,a=t.endpoint,n=t.filters,o=t.isRequesting,i=t.limitProperties,c=t.query,s=t.advancedFilters,u=i||[a],l=function e(t,r){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!t||0===t.length)return null;var n=t.slice(0),o=n.pop();if(o.showFilters(r,a)){var i=Object(D.flattenFilters)(o.filters),c=r[o.param]||o.defaultValue||"all";return Object(O.find)(i,{value:c})}return e(n,r,a)}(n,c),m=Object(O.get)(l,["settings","param"]),d=t.mode||function(e,t){if(e&&t){var r=Object(O.get)(e,["settings","param"]);if(!r||Object.keys(t).includes(r))return Object(O.get)(e,["chartMode"])}return null}(l,c)||"time-comparison",f=e(k.SETTINGS_STORE_NAME).getSetting("wc_admin","wcAdminSettings").woocommerce_default_date_range,p={mode:d,filterParam:m,defaultDateRange:f};if(o)return p;var y=u.some((function(e){return c[e]&&c[e].length}));if(c.search&&!y)return q(q({},p),{},{emptySearchResults:!0});var b=r&&r.map((function(e){return e.key})),g=Object(k.getReportChartData)({endpoint:a,dataType:"primary",query:c,select:e,limitBy:u,filters:n,advancedFilters:s,defaultDateRange:f,fields:b});if("item-comparison"===d)return q(q({},p),{},{primaryData:g});var v=Object(k.getReportChartData)({endpoint:a,dataType:"secondary",query:c,select:e,limitBy:u,filters:n,advancedFilters:s,defaultDateRange:f,fields:b});return q(q({},p),{},{primaryData:g,secondaryData:v})})))(T)},498:function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var a=r(3);function n(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=Object(a.find)(t,{key:e});return r||t[0]}},499:function(e,t,r){"use strict";var a=r(11),n=r.n(a),o=r(12),i=r.n(o),c=r(13),s=r.n(c),u=r(14),l=r.n(u),m=r(6),d=r.n(m),f=r(0),p=r(2),y=r(18),b=r(15),g=r(1),v=r.n(g),h=r(21),O=r(47),j=r(143),_=r(23),R=r(29),k=r(28),w=r(494),C=r(493);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 r,a=d()(e);if(t){var n=d()(this).constructor;r=Reflect.construct(a,arguments,n)}else r=a.apply(this,arguments);return l()(this,r)}}var D=function(e){s()(r,e);var t=S(r);function r(){return n()(this,r),t.apply(this,arguments)}return i()(r,[{key:"formatVal",value:function(e,t){var r=this.context,a=r.formatAmount,n=r.getCurrencyConfig;return"currency"===t?a(e):Object(j.formatValue)(n(),t,e)}},{key:"getValues",value:function(e,t){var r=this.props,a=r.emptySearchResults,n=r.summaryData.totals,o=n.primary?n.primary[e]:0,i=n.secondary?n.secondary[e]:0,c=a?0:o,s=a?0:i;return{delta:Object(j.calculateDelta)(c,s),prevValue:this.formatVal(s,t),value:this.formatVal(c,t)}}},{key:"render",value:function(){var e=this,t=this.props,r=t.charts,a=t.query,n=t.selectedChart,o=t.summaryData,i=t.endpoint,c=t.report,s=t.defaultDateRange,u=o.isError,l=o.isRequesting;if(u)return Object(f.createElement)(w.a,{isError:!0});if(l)return Object(f.createElement)(O.SummaryListPlaceholder,{numberOfItems:r.length});var m=Object(R.getDateParamsFromQuery)(a,s).compare;return Object(f.createElement)(O.SummaryList,null,(function(t){var a=t.onToggle;return r.map((function(t){var r=t.key,o=t.order,s=t.orderby,u=t.label,l=t.type,d={chart:r};s&&(d.orderby=s),o&&(d.order=o);var y=Object(h.getNewPath)(d),b=n.key===r,g=e.getValues(r,l),v=g.delta,j=g.prevValue,_=g.value;return Object(f.createElement)(O.SummaryNumber,{key:r,delta:v,href:y,label:u,prevLabel:"previous_period"===m?Object(p.__)("Previous Period:","woocommerce-admin"):Object(p.__)("Previous Year:","woocommerce-admin"),prevValue:j,selected:b,value:_,onLinkClickCallback:function(){a&&a(),Object(k.recordEvent)("analytics_chart_tab_click",{report:c||i,key:r})}})}))}))}}]),r}(f.Component);D.propTypes={charts:v.a.array.isRequired,endpoint:v.a.string.isRequired,limitProperties:v.a.array,query:v.a.object.isRequired,selectedChart:v.a.shape({key:v.a.string.isRequired,label:v.a.string.isRequired,order:v.a.oneOf(["asc","desc"]),orderby:v.a.string,type:v.a.oneOf(["average","number","currency"]).isRequired}).isRequired,summaryData:v.a.object,report:v.a.string},D.defaultProps={summaryData:{totals:{primary:{},secondary:{}},isError:!1}},D.contextType=C.a,t.a=Object(y.compose)(Object(b.withSelect)((function(e,t){var r=t.charts,a=t.endpoint,n=t.limitProperties,o=t.query,i=t.filters,c=t.advancedFilters,s=n||[a],u=s.some((function(e){return o[e]&&o[e].length}));if(o.search&&!u)return{emptySearchResults:!0};var l=r&&r.map((function(e){return e.key})),m=e(_.SETTINGS_STORE_NAME).getSetting("wc_admin","wcAdminSettings").woocommerce_default_date_range;return{summaryData:Object(_.getSummaryNumbers)({endpoint:a,query:o,select:e,limitBy:s,filters:i,advancedFilters:c,defaultDateRange:m,fields:l}),defaultDateRange:m}})))(D)},507:function(e,t,r){"use strict";function a(e,t,r){return!!t&&(e&&t<=r==="instock")}r.d(t,"a",(function(){return a}))},525:function(e,t,r){"use strict";var a=r(11),n=r.n(a),o=r(12),i=r.n(o),c=r(9),s=r.n(c),u=r(13),l=r.n(u),m=r(14),d=r.n(m),f=r(6),p=r.n(f),y=r(0),b=r(2),g=r(18),v=r(40),h=r(15),O=r(3),j=r(21),_=r(47),R=r(143),k=r(25),w=r(23),C=r(526),S=r(507),D=r(501),E=r(493);r(562);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 r,a=p()(e);if(t){var n=p()(this).constructor;r=Reflect.construct(a,arguments,n)}else r=a.apply(this,arguments);return d()(this,r)}}var P=Object(k.g)("manageStock","no"),T=Object(k.g)("stockStatuses",{}),A=function(e){l()(r,e);var t=q(r);function r(){var e;return n()(this,r),(e=t.call(this)).getHeadersContent=e.getHeadersContent.bind(s()(e)),e.getRowsContent=e.getRowsContent.bind(s()(e)),e.getSummary=e.getSummary.bind(s()(e)),e}return i()(r,[{key:"getHeadersContent",value:function(){return[{label:Object(b.__)("Product Title","woocommerce-admin"),key:"product_name",required:!0,isLeftAligned:!0,isSortable:!0},{label:Object(b.__)("SKU","woocommerce-admin"),key:"sku",hiddenByDefault:!0,isSortable:!0},{label:Object(b.__)("Items Sold","woocommerce-admin"),key:"items_sold",required:!0,defaultSort:!0,isSortable:!0,isNumeric:!0},{label:Object(b.__)("Net Sales","woocommerce-admin"),screenReaderLabel:Object(b.__)("Net Sales","woocommerce-admin"),key:"net_revenue",required:!0,isSortable:!0,isNumeric:!0},{label:Object(b.__)("Orders","woocommerce-admin"),key:"orders_count",isSortable:!0,isNumeric:!0},{label:Object(b.__)("Category","woocommerce-admin"),key:"product_cat"},{label:Object(b.__)("Variations","woocommerce-admin"),key:"variations",isSortable:!0},"yes"===P?{label:Object(b.__)("Status","woocommerce-admin"),key:"stock_status"}:null,"yes"===P?{label:Object(b.__)("Stock","woocommerce-admin"),key:"stock",isNumeric:!0}:null].filter(Boolean)}},{key:"getRowsContent",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=this.props.query,a=Object(j.getPersistedQuery)(r),n=this.context,o=n.render,i=n.formatDecimal,c=n.getCurrencyConfig,s=c();return Object(O.map)(t,(function(t){var n=t.product_id,c=t.items_sold,u=t.net_revenue,l=t.orders_count,m=t.extended_info||{},d=m.category_ids,f=m.low_stock_amount,p=m.manage_stock,g=m.sku,h=m.stock_status,O=m.stock_quantity,w=m.variations,D=void 0===w?[]:w,E=Object(v.decodeEntities)(m.name),q=Object(j.getNewPath)(a,"/analytics/orders",{filter:"advanced",product_includes:n}),A=Object(j.getNewPath)(a,"/analytics/products",{filter:"single_product",products:n}),N=e.props.categories,F=d&&d.map((function(e){return N.get(e)})).filter(Boolean)||[],x=Object(S.a)(h,O,f)?Object(y.createElement)(_.Link,{href:Object(k.f)("post.php?action=edit&post="+n),type:"wp-admin"},Object(b._x)("Low","Indication of a low quantity","woocommerce-admin")):T[h];return[{display:Object(y.createElement)(_.Link,{href:A,type:"wc-admin"},E),value:E},{display:g,value:g},{display:Object(R.formatValue)(s,"number",c),value:c},{display:o(u),value:i(u)},{display:Object(y.createElement)(_.Link,{href:q,type:"wc-admin"},l),value:l},{display:Object(y.createElement)("div",{className:"woocommerce-table__product-categories"},F[0]&&Object(y.createElement)(C.a,{category:F[0],categories:N}),F.length>1&&Object(y.createElement)(_.Tag,{label:Object(b.sprintf)(Object(b._x)("+%d more","categories","woocommerce-admin"),F.length-1),popoverContents:F.map((function(e){return Object(y.createElement)(C.a,{category:e,categories:N,key:e.id,query:r})}))})),value:F.map((function(e){return e.name})).join(", ")},{display:Object(R.formatValue)(s,"number",D.length),value:D.length},"yes"===P?{display:p?x:Object(b.__)("N/A","woocommerce-admin"),value:p?T[h]:null}:null,"yes"===P?{display:p?Object(R.formatValue)(s,"number",O):Object(b.__)("N/A","woocommerce-admin"),value:O}:null].filter(Boolean)}))}},{key:"getSummary",value:function(e){var t=e.products_count,r=void 0===t?0:t,a=e.items_sold,n=void 0===a?0:a,o=e.net_revenue,i=void 0===o?0:o,c=e.orders_count,s=void 0===c?0:c,u=this.context,l=u.formatAmount,m=(0,u.getCurrencyConfig)();return[{label:Object(b._n)("product","products",r,"woocommerce-admin"),value:Object(R.formatValue)(m,"number",r)},{label:Object(b._n)("item sold","items sold",n,"woocommerce-admin"),value:Object(R.formatValue)(m,"number",n)},{label:Object(b.__)("net sales","woocommerce-admin"),value:l(i)},{label:Object(b._n)("orders","orders",s,"woocommerce-admin"),value:Object(R.formatValue)(m,"number",s)}]}},{key:"render",value:function(){var e=this.props,t=e.advancedFilters,r=e.baseSearchQuery,a=e.filters,n=e.hideCompare,o=e.isRequesting,i=e.query,c={helpText:Object(b.__)("Check at least two products below to compare","woocommerce-admin"),placeholder:Object(b.__)("Search by product name or SKU","woocommerce-admin")};return Object(y.createElement)(D.a,{compareBy:n?void 0:"products",endpoint:"products",getHeadersContent:this.getHeadersContent,getRowsContent:this.getRowsContent,getSummary:this.getSummary,summaryFields:["products_count","items_sold","net_revenue","orders_count"],itemIdField:"product_id",isRequesting:o,labels:c,query:i,searchBy:"products",baseSearchQuery:r,tableQuery:{orderby:i.orderby||"items_sold",order:i.order||"desc",extended_info:!0,segmentby:i.segmentby},title:Object(b.__)("Products","woocommerce-admin"),columnPrefsKey:"products_report_columns",filters:a,advancedFilters:t})}}]),r}(y.Component);A.contextType=E.a,t.a=Object(g.compose)(Object(h.withSelect)((function(e,t){var r=t.query;if(t.isRequesting||r.search&&(!r.products||!r.products.length))return{};var a=e(w.ITEMS_STORE_NAME),n=a.getItems,o=a.getItemsError,i=a.isResolving,c={per_page:-1};return{categories:n("categories",c),isError:Boolean(o("categories",c)),isRequesting:i("getItems",["categories",c])}})))(A)},526:function(e,t,r){"use strict";r.d(t,"a",(function(){return h}));var a=r(11),n=r.n(a),o=r(12),i=r.n(o),c=r(13),s=r.n(c),u=r(14),l=r.n(u),m=r(6),d=r.n(m),f=r(0),p=r(3),y=r(4),b=r(47),g=r(21);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 r,a=d()(e);if(t){var n=d()(this).constructor;r=Reflect.construct(a,arguments,n)}else r=a.apply(this,arguments);return l()(this,r)}}var h=function(e){s()(r,e);var t=v(r);function r(){return n()(this,r),t.apply(this,arguments)}return i()(r,[{key:"getCategoryAncestorIds",value:function(e,t){for(var r=[],a=e.parent;a;)r.unshift(a),a=t.get(a).parent;return r}},{key:"getCategoryAncestors",value:function(e,t){var r=this.getCategoryAncestorIds(e,t);if(r.length)return 1===r.length?t.get(Object(p.first)(r)).name+" › ":2===r.length?t.get(Object(p.first)(r)).name+" › "+t.get(Object(p.last)(r)).name+" › ":t.get(Object(p.first)(r)).name+" … "+t.get(Object(p.last)(r)).name+" › "}},{key:"render",value:function(){var e=this.props,t=e.categories,r=e.category,a=e.query,n=Object(g.getPersistedQuery)(a);return r?Object(f.createElement)("div",{className:"woocommerce-table__breadcrumbs"},this.getCategoryAncestors(r,t),Object(f.createElement)(b.Link,{href:Object(g.getNewPath)(n,"/analytics/categories",{filter:"single_category",categories:r.id}),type:"wc-admin"},r.name)):Object(f.createElement)(y.Spinner,null)}}]),r}(f.Component)},562:function(e,t,r){}}]);
1
+ (window.__wcAdmin_webpackJsonp=window.__wcAdmin_webpackJsonp||[]).push([[3],{500:function(e,t,r){"use strict";r.d(t,"e",(function(){return m})),r.d(t,"a",(function(){return d})),r.d(t,"b",(function(){return f})),r.d(t,"c",(function(){return p})),r.d(t,"d",(function(){return y})),r.d(t,"f",(function(){return b})),r.d(t,"h",(function(){return g})),r.d(t,"g",(function(){return v}));var a=r(23),n=r(26),o=r.n(n),i=r(3),c=r(21),s=r(22),u=r(25),l=r(501);function m(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.identity;return function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1?arguments[1]:void 0,i="function"==typeof e?e(n):e,s=Object(c.getIdsFromQuery)(r);if(s.length<1)return Promise.resolve([]);var u={include:s.join(","),per_page:s.length};return o()({path:Object(a.addQueryArgs)(i,u)}).then((function(e){return e.map(t)}))}}m(s.NAMESPACE+"/products/attributes",(function(e){return{key:e.id,label:e.name}}));var d=m(s.NAMESPACE+"/products/categories",(function(e){return{key:e.id,label:e.name}})),f=m(s.NAMESPACE+"/coupons",(function(e){return{key:e.id,label:e.code}})),p=m(s.NAMESPACE+"/customers",(function(e){return{key:e.id,label:e.name}})),y=m(s.NAMESPACE+"/products",(function(e){return{key:e.id,label:e.name}})),b=m(s.NAMESPACE+"/taxes",(function(e){return{key:e.id,label:Object(l.a)(e)}}));function g(e){var t=e.attributes,r=e.name,a=Object(u.g)("variationTitleAttributesSeparator"," - ");if(r.indexOf(a)>-1)return r;var n=t.map((function(e){return e.option})).join(", ");return n?r+a+n:r}var v=m((function(e){var t=e.products;return t?s.NAMESPACE+"/products/".concat(t,"/variations"):s.NAMESPACE+"/variations"}),(function(e){return{key:e.id,label:g(e)}}))},501:function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var a=r(2);function n(e){return[e.country,e.state,e.name||Object(a.__)("TAX","woocommerce-admin"),e.priority].map((function(e){return e.toString().toUpperCase().trim()})).filter(Boolean).join("-")}},502:function(e,t,r){"use strict";var a=r(5),n=r.n(a),o=r(12),i=r.n(o),c=r(13),s=r.n(c),u=r(14),l=r.n(u),m=r(15),d=r.n(m),f=r(7),p=r.n(f),y=r(0),b=r(2),g=r(20),v=r(75),h=r(11),O=r(3),j=r(1),_=r.n(j),R=r(47),k=r(22),w=r(29),C=r(498),S=r(499),D=r(21);function E(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,a)}return r}function q(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?E(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):E(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}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 r,a=p()(e);if(t){var n=p()(this).constructor;r=Reflect.construct(a,arguments,n)}else r=a.apply(this,arguments);return d()(this,r)}}var T=function(e){l()(r,e);var t=P(r);function r(){return i()(this,r),t.apply(this,arguments)}return s()(r,[{key:"shouldComponentUpdate",value:function(e){return e.isRequesting!==this.props.isRequesting||e.primaryData.isRequesting!==this.props.primaryData.isRequesting||e.secondaryData.isRequesting!==this.props.secondaryData.isRequesting||!Object(O.isEqual)(e.query,this.props.query)}},{key:"getItemChartData",value:function(){var e=this.props,t=e.primaryData,r=e.selectedChart;return t.data.intervals.map((function(e){var t={};return e.subtotals.segments.forEach((function(e){if(e.segment_label){var a=t[e.segment_label]?e.segment_label+" (#"+e.segment_id+")":e.segment_label;t[e.segment_id]={label:a,value:e.subtotals[r.key]||0}}})),q({date:Object(v.format)("Y-m-d\\TH:i:s",e.date_start)},t)}))}},{key:"getTimeChartData",value:function(){var e=this.props,t=e.query,r=e.primaryData,a=e.secondaryData,n=e.selectedChart,o=e.defaultDateRange,i=Object(w.getIntervalForQuery)(t),c=Object(w.getCurrentDates)(t,o),s=c.primary,u=c.secondary;return r.data.intervals.map((function(e,r){var o=Object(w.getPreviousDate)(e.date_start,s.after,u.after,t.compare,i),c=a.data.intervals[r];return{date:Object(v.format)("Y-m-d\\TH:i:s",e.date_start),primary:{label:"".concat(s.label," (").concat(s.range,")"),labelDate:e.date_start,value:e.subtotals[n.key]||0},secondary:{label:"".concat(u.label," (").concat(u.range,")"),labelDate:o.format("YYYY-MM-DD HH:mm:ss"),value:c&&c.subtotals[n.key]||0}}}))}},{key:"getTimeChartTotals",value:function(){var e=this.props,t=e.primaryData,r=e.secondaryData,a=e.selectedChart;return{primary:Object(O.get)(t,["data","totals",a.key],null),secondary:Object(O.get)(r,["data","totals",a.key],null)}}},{key:"renderChart",value:function(e,t,r,a){var n=this.props,o=n.emptySearchResults,i=n.filterParam,c=n.interactiveLegend,s=n.itemsLabel,u=n.legendPosition,l=n.path,m=n.query,d=n.selectedChart,f=n.showHeaderControls,p=n.primaryData,g=Object(w.getIntervalForQuery)(m),v=Object(w.getAllowedIntervalsForQuery)(m),h=Object(w.getDateFormatsForInterval)(g,p.data.intervals.length),O=o?Object(b.__)("No data for the current search","woocommerce-admin"):Object(b.__)("No data for the selected date range","woocommerce-admin"),j=this.context,_=j.formatAmount,C=j.getCurrencyConfig;return Object(y.createElement)(R.Chart,{allowedIntervals:v,data:r,dateParser:"%Y-%m-%dT%H:%M:%S",emptyMessage:O,filterParam:i,interactiveLegend:c,interval:g,isRequesting:t,itemsLabel:s,legendPosition:u,legendTotals:a,mode:e,path:l,query:m,screenReaderFormat:h.screenReaderFormat,showHeaderControls:f,title:d.label,tooltipLabelFormat:h.tooltipLabelFormat,tooltipTitle:"time-comparison"===e&&d.label||null,tooltipValueFormat:Object(k.getTooltipValueFormat)(d.type,_),chartType:Object(w.getChartTypeForQuery)(m),valueType:d.type,xFormat:h.xFormat,x2Format:h.x2Format,currency:C()})}},{key:"renderItemComparison",value:function(){var e=this.props,t=e.isRequesting,r=e.primaryData;if(r.isError)return Object(y.createElement)(S.a,{isError:!0});var a=t||r.isRequesting,n=this.getItemChartData();return this.renderChart("item-comparison",a,n)}},{key:"renderTimeComparison",value:function(){var e=this.props,t=e.isRequesting,r=e.primaryData,a=e.secondaryData;if(!r||r.isError||a.isError)return Object(y.createElement)(S.a,{isError:!0});var n=t||r.isRequesting||a.isRequesting,o=this.getTimeChartData(),i=this.getTimeChartTotals();return this.renderChart("time-comparison",n,o,i)}},{key:"render",value:function(){return"item-comparison"===this.props.mode?this.renderItemComparison():this.renderTimeComparison()}}]),r}(y.Component);T.contextType=C.a,T.propTypes={filters:_.a.array,isRequesting:_.a.bool,itemsLabel:_.a.string,limitProperties:_.a.array,mode:_.a.string,path:_.a.string.isRequired,primaryData:_.a.object,query:_.a.object.isRequired,secondaryData:_.a.object,selectedChart:_.a.shape({key:_.a.string.isRequired,label:_.a.string.isRequired,order:_.a.oneOf(["asc","desc"]),orderby:_.a.string,type:_.a.oneOf(["average","number","currency"]).isRequired}).isRequired},T.defaultProps={isRequesting:!1,primaryData:{data:{intervals:[]},isError:!1,isRequesting:!1},secondaryData:{data:{intervals:[]},isError:!1,isRequesting:!1}};t.a=Object(g.compose)(Object(h.withSelect)((function(e,t){var r=t.charts,a=t.endpoint,n=t.filters,o=t.isRequesting,i=t.limitProperties,c=t.query,s=t.advancedFilters,u=i||[a],l=function e(t,r){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!t||0===t.length)return null;var n=t.slice(0),o=n.pop();if(o.showFilters(r,a)){var i=Object(D.flattenFilters)(o.filters),c=r[o.param]||o.defaultValue||"all";return Object(O.find)(i,{value:c})}return e(n,r,a)}(n,c),m=Object(O.get)(l,["settings","param"]),d=t.mode||function(e,t){if(e&&t){var r=Object(O.get)(e,["settings","param"]);if(!r||Object.keys(t).includes(r))return Object(O.get)(e,["chartMode"])}return null}(l,c)||"time-comparison",f=e(k.SETTINGS_STORE_NAME).getSetting("wc_admin","wcAdminSettings").woocommerce_default_date_range,p={mode:d,filterParam:m,defaultDateRange:f};if(o)return p;var y=u.some((function(e){return c[e]&&c[e].length}));if(c.search&&!y)return q(q({},p),{},{emptySearchResults:!0});var b=r&&r.map((function(e){return e.key})),g=Object(k.getReportChartData)({endpoint:a,dataType:"primary",query:c,select:e,limitBy:u,filters:n,advancedFilters:s,defaultDateRange:f,fields:b});if("item-comparison"===d)return q(q({},p),{},{primaryData:g});var v=Object(k.getReportChartData)({endpoint:a,dataType:"secondary",query:c,select:e,limitBy:u,filters:n,advancedFilters:s,defaultDateRange:f,fields:b});return q(q({},p),{},{primaryData:g,secondaryData:v})})))(T)},503:function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var a=r(3);function n(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=Object(a.find)(t,{key:e});return r||t[0]}},504:function(e,t,r){"use strict";var a=r(12),n=r.n(a),o=r(13),i=r.n(o),c=r(14),s=r.n(c),u=r(15),l=r.n(u),m=r(7),d=r.n(m),f=r(0),p=r(2),y=r(20),b=r(11),g=r(1),v=r.n(g),h=r(21),O=r(47),j=r(142),_=r(22),R=r(29),k=r(27),w=r(499),C=r(498);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 r,a=d()(e);if(t){var n=d()(this).constructor;r=Reflect.construct(a,arguments,n)}else r=a.apply(this,arguments);return l()(this,r)}}var D=function(e){s()(r,e);var t=S(r);function r(){return n()(this,r),t.apply(this,arguments)}return i()(r,[{key:"formatVal",value:function(e,t){var r=this.context,a=r.formatAmount,n=r.getCurrencyConfig;return"currency"===t?a(e):Object(j.formatValue)(n(),t,e)}},{key:"getValues",value:function(e,t){var r=this.props,a=r.emptySearchResults,n=r.summaryData.totals,o=n.primary?n.primary[e]:0,i=n.secondary?n.secondary[e]:0,c=a?0:o,s=a?0:i;return{delta:Object(j.calculateDelta)(c,s),prevValue:this.formatVal(s,t),value:this.formatVal(c,t)}}},{key:"render",value:function(){var e=this,t=this.props,r=t.charts,a=t.query,n=t.selectedChart,o=t.summaryData,i=t.endpoint,c=t.report,s=t.defaultDateRange,u=o.isError,l=o.isRequesting;if(u)return Object(f.createElement)(w.a,{isError:!0});if(l)return Object(f.createElement)(O.SummaryListPlaceholder,{numberOfItems:r.length});var m=Object(R.getDateParamsFromQuery)(a,s).compare;return Object(f.createElement)(O.SummaryList,null,(function(t){var a=t.onToggle;return r.map((function(t){var r=t.key,o=t.order,s=t.orderby,u=t.label,l=t.type,d={chart:r};s&&(d.orderby=s),o&&(d.order=o);var y=Object(h.getNewPath)(d),b=n.key===r,g=e.getValues(r,l),v=g.delta,j=g.prevValue,_=g.value;return Object(f.createElement)(O.SummaryNumber,{key:r,delta:v,href:y,label:u,prevLabel:"previous_period"===m?Object(p.__)("Previous Period:","woocommerce-admin"):Object(p.__)("Previous Year:","woocommerce-admin"),prevValue:j,selected:b,value:_,onLinkClickCallback:function(){a&&a(),Object(k.recordEvent)("analytics_chart_tab_click",{report:c||i,key:r})}})}))}))}}]),r}(f.Component);D.propTypes={charts:v.a.array.isRequired,endpoint:v.a.string.isRequired,limitProperties:v.a.array,query:v.a.object.isRequired,selectedChart:v.a.shape({key:v.a.string.isRequired,label:v.a.string.isRequired,order:v.a.oneOf(["asc","desc"]),orderby:v.a.string,type:v.a.oneOf(["average","number","currency"]).isRequired}).isRequired,summaryData:v.a.object,report:v.a.string},D.defaultProps={summaryData:{totals:{primary:{},secondary:{}},isError:!1}},D.contextType=C.a,t.a=Object(y.compose)(Object(b.withSelect)((function(e,t){var r=t.charts,a=t.endpoint,n=t.limitProperties,o=t.query,i=t.filters,c=t.advancedFilters,s=n||[a],u=s.some((function(e){return o[e]&&o[e].length}));if(o.search&&!u)return{emptySearchResults:!0};var l=r&&r.map((function(e){return e.key})),m=e(_.SETTINGS_STORE_NAME).getSetting("wc_admin","wcAdminSettings").woocommerce_default_date_range;return{summaryData:Object(_.getSummaryNumbers)({endpoint:a,query:o,select:e,limitBy:s,filters:i,advancedFilters:c,defaultDateRange:m,fields:l}),defaultDateRange:m}})))(D)},512:function(e,t,r){"use strict";function a(e,t,r){return!!t&&(e&&t<=r==="instock")}r.d(t,"a",(function(){return a}))},530:function(e,t,r){"use strict";var a=r(12),n=r.n(a),o=r(13),i=r.n(o),c=r(9),s=r.n(c),u=r(14),l=r.n(u),m=r(15),d=r.n(m),f=r(7),p=r.n(f),y=r(0),b=r(2),g=r(20),v=r(41),h=r(11),O=r(3),j=r(21),_=r(47),R=r(142),k=r(25),w=r(22),C=r(531),S=r(512),D=r(506),E=r(498);r(575);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 r,a=p()(e);if(t){var n=p()(this).constructor;r=Reflect.construct(a,arguments,n)}else r=a.apply(this,arguments);return d()(this,r)}}var P=Object(k.g)("manageStock","no"),T=Object(k.g)("stockStatuses",{}),A=function(e){l()(r,e);var t=q(r);function r(){var e;return n()(this,r),(e=t.call(this)).getHeadersContent=e.getHeadersContent.bind(s()(e)),e.getRowsContent=e.getRowsContent.bind(s()(e)),e.getSummary=e.getSummary.bind(s()(e)),e}return i()(r,[{key:"getHeadersContent",value:function(){return[{label:Object(b.__)("Product Title","woocommerce-admin"),key:"product_name",required:!0,isLeftAligned:!0,isSortable:!0},{label:Object(b.__)("SKU","woocommerce-admin"),key:"sku",hiddenByDefault:!0,isSortable:!0},{label:Object(b.__)("Items Sold","woocommerce-admin"),key:"items_sold",required:!0,defaultSort:!0,isSortable:!0,isNumeric:!0},{label:Object(b.__)("Net Sales","woocommerce-admin"),screenReaderLabel:Object(b.__)("Net Sales","woocommerce-admin"),key:"net_revenue",required:!0,isSortable:!0,isNumeric:!0},{label:Object(b.__)("Orders","woocommerce-admin"),key:"orders_count",isSortable:!0,isNumeric:!0},{label:Object(b.__)("Category","woocommerce-admin"),key:"product_cat"},{label:Object(b.__)("Variations","woocommerce-admin"),key:"variations",isSortable:!0},"yes"===P?{label:Object(b.__)("Status","woocommerce-admin"),key:"stock_status"}:null,"yes"===P?{label:Object(b.__)("Stock","woocommerce-admin"),key:"stock",isNumeric:!0}:null].filter(Boolean)}},{key:"getRowsContent",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=this.props.query,a=Object(j.getPersistedQuery)(r),n=this.context,o=n.render,i=n.formatDecimal,c=n.getCurrencyConfig,s=c();return Object(O.map)(t,(function(t){var n=t.product_id,c=t.items_sold,u=t.net_revenue,l=t.orders_count,m=t.extended_info||{},d=m.category_ids,f=m.low_stock_amount,p=m.manage_stock,g=m.sku,h=m.stock_status,O=m.stock_quantity,w=m.variations,D=void 0===w?[]:w,E=Object(v.decodeEntities)(m.name),q=Object(j.getNewPath)(a,"/analytics/orders",{filter:"advanced",product_includes:n}),A=Object(j.getNewPath)(a,"/analytics/products",{filter:"single_product",products:n}),N=e.props.categories,F=d&&d.map((function(e){return N.get(e)})).filter(Boolean)||[],x=Object(S.a)(h,O,f)?Object(y.createElement)(_.Link,{href:Object(k.f)("post.php?action=edit&post="+n),type:"wp-admin"},Object(b._x)("Low","Indication of a low quantity","woocommerce-admin")):T[h];return[{display:Object(y.createElement)(_.Link,{href:A,type:"wc-admin"},E),value:E},{display:g,value:g},{display:Object(R.formatValue)(s,"number",c),value:c},{display:o(u),value:i(u)},{display:Object(y.createElement)(_.Link,{href:q,type:"wc-admin"},l),value:l},{display:Object(y.createElement)("div",{className:"woocommerce-table__product-categories"},F[0]&&Object(y.createElement)(C.a,{category:F[0],categories:N}),F.length>1&&Object(y.createElement)(_.Tag,{label:Object(b.sprintf)(Object(b._x)("+%d more","categories","woocommerce-admin"),F.length-1),popoverContents:F.map((function(e){return Object(y.createElement)(C.a,{category:e,categories:N,key:e.id,query:r})}))})),value:F.map((function(e){return e.name})).join(", ")},{display:Object(R.formatValue)(s,"number",D.length),value:D.length},"yes"===P?{display:p?x:Object(b.__)("N/A","woocommerce-admin"),value:p?T[h]:null}:null,"yes"===P?{display:p?Object(R.formatValue)(s,"number",O):Object(b.__)("N/A","woocommerce-admin"),value:O}:null].filter(Boolean)}))}},{key:"getSummary",value:function(e){var t=e.products_count,r=void 0===t?0:t,a=e.items_sold,n=void 0===a?0:a,o=e.net_revenue,i=void 0===o?0:o,c=e.orders_count,s=void 0===c?0:c,u=this.context,l=u.formatAmount,m=(0,u.getCurrencyConfig)();return[{label:Object(b._n)("product","products",r,"woocommerce-admin"),value:Object(R.formatValue)(m,"number",r)},{label:Object(b._n)("item sold","items sold",n,"woocommerce-admin"),value:Object(R.formatValue)(m,"number",n)},{label:Object(b.__)("net sales","woocommerce-admin"),value:l(i)},{label:Object(b._n)("orders","orders",s,"woocommerce-admin"),value:Object(R.formatValue)(m,"number",s)}]}},{key:"render",value:function(){var e=this.props,t=e.advancedFilters,r=e.baseSearchQuery,a=e.filters,n=e.hideCompare,o=e.isRequesting,i=e.query,c={helpText:Object(b.__)("Check at least two products below to compare","woocommerce-admin"),placeholder:Object(b.__)("Search by product name or SKU","woocommerce-admin")};return Object(y.createElement)(D.a,{compareBy:n?void 0:"products",endpoint:"products",getHeadersContent:this.getHeadersContent,getRowsContent:this.getRowsContent,getSummary:this.getSummary,summaryFields:["products_count","items_sold","net_revenue","orders_count"],itemIdField:"product_id",isRequesting:o,labels:c,query:i,searchBy:"products",baseSearchQuery:r,tableQuery:{orderby:i.orderby||"items_sold",order:i.order||"desc",extended_info:!0,segmentby:i.segmentby},title:Object(b.__)("Products","woocommerce-admin"),columnPrefsKey:"products_report_columns",filters:a,advancedFilters:t})}}]),r}(y.Component);A.contextType=E.a,t.a=Object(g.compose)(Object(h.withSelect)((function(e,t){var r=t.query;if(t.isRequesting||r.search&&(!r.products||!r.products.length))return{};var a=e(w.ITEMS_STORE_NAME),n=a.getItems,o=a.getItemsError,i=a.isResolving,c={per_page:-1};return{categories:n("categories",c),isError:Boolean(o("categories",c)),isRequesting:i("getItems",["categories",c])}})))(A)},531:function(e,t,r){"use strict";r.d(t,"a",(function(){return h}));var a=r(12),n=r.n(a),o=r(13),i=r.n(o),c=r(14),s=r.n(c),u=r(15),l=r.n(u),m=r(7),d=r.n(m),f=r(0),p=r(3),y=r(4),b=r(47),g=r(21);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 r,a=d()(e);if(t){var n=d()(this).constructor;r=Reflect.construct(a,arguments,n)}else r=a.apply(this,arguments);return l()(this,r)}}var h=function(e){s()(r,e);var t=v(r);function r(){return n()(this,r),t.apply(this,arguments)}return i()(r,[{key:"getCategoryAncestorIds",value:function(e,t){for(var r=[],a=e.parent;a;)r.unshift(a),a=t.get(a).parent;return r}},{key:"getCategoryAncestors",value:function(e,t){var r=this.getCategoryAncestorIds(e,t);if(r.length)return 1===r.length?t.get(Object(p.first)(r)).name+" › ":2=